/* 
  AKUN PREMIUM Light Theme - Centered Layout & Square 1:1 Icons
  Dominant 3 Colors: White (Putih #FFFFFF), Blue (Biru #00529C), Orange (#FF6B00)
  Clean, Bright & Highly Readable Mobile-First Interface
*/

:root {
    --bri-navy: #002D62;
    --bri-blue: #00529C;
    --bri-blue-light: #e8f2fc;
    --bri-orange: #FF6B00;
    --bri-orange-hover: #e05e00;
    --bri-orange-light: #fff2e8;
    
    --bg-bright: #F4F7FA;
    --bg-card: #FFFFFF;
    --bg-card-alt: #F8FAFC;
    --bg-input: #FFFFFF;
    
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --text-light: #475569;
    
    --border-color: #e2e8f0;
    --border-blue: #cbd5e1;
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 6px 20px rgba(0, 59, 115, 0.08);
    --shadow-lg: 0 12px 30px rgba(0, 59, 115, 0.12);
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-bright);
    color: var(--text-dark);
    min-height: 100vh;
    padding-bottom: 40px;
}

/* Header Bright Style */
.app-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #00529C;
    border-bottom: 3px solid var(--bri-orange);
    padding: 14px 20px;
    box-shadow: 0 4px 14px rgba(0, 82, 156, 0.2);
}

.header-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #ffffff;
}

.brand-icon {
    width: 44px;
    height: 44px;
    background: #FF6B00;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(255, 107, 0, 0.3);
}

.brand-title {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 1.25rem;
    font-weight: 900;
    line-height: 1;
    color: #ffffff;
}

.brand-name span {
    color: #FF6B00;
}

.brand-sub {
    font-size: 0.7rem;
    color: #dbeafe;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-top: 3px;
}

/* Header Action Buttons (Kembali ke Toko, dll) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-header {
    background: #FF6B00;
    color: #ffffff;
    border: 2px solid #FF6B00;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-weight: 800;
    font-size: 0.85rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    box-shadow: 0 4px 14px rgba(255, 107, 0, 0.35);
    cursor: pointer;
    line-height: 1;
}

.btn-header:hover {
    background: #ffffff;
    color: #FF6B00;
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(255, 255, 255, 0.4);
}

.btn-header i {
    font-size: 0.95rem;
}

/* Navigation Filter Pills */
.filter-section {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    justify-content: center;
}

.filter-btn {
    background: #ffffff;
    color: #00529C;
    border: 1px solid #cbd5e1;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
    background: #00529C;
    color: #ffffff;
    border-color: #00529C;
    box-shadow: 0 4px 10px rgba(0, 82, 156, 0.2);
}

/* Main Container */
.container {
    max-width: 1100px;
    margin: 24px auto;
    padding: 0 16px;
}

/* Search Bar Bright Theme Centered */
.search-box {
    position: relative;
    margin-bottom: 24px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.search-input {
    width: 100%;
    background: #ffffff;
    border: 2px solid #cbd5e1;
    border-radius: var(--radius-full);
    padding: 14px 20px 14px 48px;
    color: var(--text-dark);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.search-input:focus {
    border-color: #FF6B00;
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.2);
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #FF6B00;
    font-size: 1.1rem;
}

/* Hero Banner Bright Theme Centered */
.hero-banner {
    max-width: 1100px;
    margin: 30px auto 10px auto;
    padding: 0;
}

.hero-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-top: 5px solid #FF6B00;
    border-radius: var(--radius-lg);
    padding: 28px 20px;
    box-shadow: var(--shadow-md);
    text-align: center;
}

.hero-title {
    font-size: 1.65rem;
    font-weight: 900;
    line-height: 1.25;
    margin-bottom: 8px;
    color: #00529C;
    text-align: center;
}

.hero-title span {
    color: #FF6B00;
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    max-width: 650px;
    margin: 0 auto;
    text-align: center;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
    justify-content: center;
}

.badge-item {
    background: var(--bri-blue-light);
    border: 1px solid #bfdbfe;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    color: #00529C;
    display: flex;
    align-items: center;
    gap: 6px;
}

.badge-item.highlight {
    background: #FF6B00;
    color: #ffffff;
    border-color: #FF6B00;
}

/* Product Grid & Square 1:1 Aspect Ratio Icons */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 16px;
}

@media (max-width: 600px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

.product-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.product-card:hover {
    transform: translateY(-3px);
    border-color: #FF6B00;
    box-shadow: var(--shadow-md);
}

/* Perfect Square 1:1 Icon Container for HP and PC */
.product-img-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    position: relative;
    background: #f8fafc;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.product-card:hover .product-img {
    transform: scale(1.03);
}

.product-tag {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    background: #FF6B00;
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    white-space: nowrap;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.12);
    z-index: 2;
}

.product-body {
    padding: 8px 10px 10px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex-grow: 1;
}

.product-title {
    font-size: 0.86rem;
    font-weight: 800;
    color: #00529C;
    line-height: 1.25;
    margin-bottom: 2px;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    width: 100%;
}

.product-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.25;
    margin-bottom: 4px;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.price-box {
    margin-top: auto;
    padding-top: 4px;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0px;
    width: 100%;
}

.original-price {
    font-size: 0.7rem;
    color: #94a3b8;
    text-decoration: line-through;
    text-align: center;
    line-height: 1.1;
}

.current-price {
    font-size: 1.12rem;
    font-weight: 900;
    color: #FF6B00;
    text-align: center;
    line-height: 1.1;
}

.btn-buy {
    width: 100%;
    margin-top: 5px;
    background: #FF6B00;
    color: #ffffff;
    border: none;
    padding: 7px 10px;
    border-radius: var(--radius-full);
    font-weight: 800;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    box-shadow: 0 3px 8px rgba(255, 107, 0, 0.2);
}

.btn-buy:hover {
    background: #e05e00;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(255, 107, 0, 0.35);
}

/* Modal Overlay Bright Theme */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 45, 98, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.modal-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: #ffffff;
    border-top: 5px solid #FF6B00;
    border-radius: var(--radius-lg);
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 24px;
    box-shadow: var(--shadow-lg);
    transform: scale(0.95);
    transition: var(--transition);
    text-align: center;
}

.modal-backdrop.active .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.modal-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #00529C;
}

.btn-close {
    background: #f1f5f9;
    border: none;
    color: #64748b;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-close:hover {
    color: #ffffff;
    background: #FF6B00;
}

/* Form Controls Bright Theme */
.form-group {
    margin-bottom: 16px;
    text-align: left;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #00529C;
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    color: var(--text-dark);
    font-size: 0.92rem;
    outline: none;
}

.form-input:focus {
    border-color: #FF6B00;
    box-shadow: 0 0 0 2px rgba(255, 107, 0, 0.2);
}

/* Summary Box in Modal Bright Theme */
.summary-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 14px;
    margin-bottom: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.88rem;
    margin-bottom: 8px;
    color: #475569;
}

.summary-row.total {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #cbd5e1;
    font-weight: 800;
    font-size: 1rem;
    color: #0f172a;
}

.summary-row.total .total-amount {
    color: #FF6B00;
}

/* QRIS Card & Timer Bright Theme */
.qris-card {
    text-align: center;
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 20px;
    border: 1px solid #e2e8f0;
}

.qris-img {
    max-width: 240px;
    width: 100%;
    border-radius: var(--radius-md);
    border: 4px solid #00529C;
    margin: 14px 0;
}

.timer-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff2e8;
    color: #FF6B00;
    border: 1px solid #FF6B00;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-weight: 800;
    font-size: 0.85rem;
}

.status-polling {
    margin-top: 14px;
    font-size: 0.85rem;
    color: #00529C;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 107, 0, 0.3);
    border-top-color: #FF6B00;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Admin Dashboard Tables Bright Theme */
.admin-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 14px;
    font-size: 0.88rem;
}

.admin-table th, .admin-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.admin-table th {
    background: #f1f5f9;
    color: #00529C;
    font-weight: 700;
}

.status-tag {
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
}

.status-pending { background: #fff2e8; color: #FF6B00; border: 1px solid #FF6B00; }
.status-paid { background: #dcfce7; color: #15803d; border: 1px solid #16a34a; }
.status-expired { background: #fee2e2; color: #dc2626; border: 1px solid #ef4444; }

/* Buttons Utility */
.btn-primary {
    background: #FF6B00;
    color: #ffffff;
    border: none;
    padding: 10px 18px;
    border-radius: var(--radius-full);
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(255, 107, 0, 0.2);
}

.btn-primary:hover {
    background: #e05e00;
}

.btn-secondary {
    background: #e8f2fc;
    color: #00529C;
    border: 1px solid #bfdbfe;
    padding: 10px 18px;
    border-radius: var(--radius-full);
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: #00529C;
    color: #ffffff;
}

.btn-danger {
    background: #ef4444;
    color: #ffffff;
    border: none;
    padding: 8px 12px;
    border-radius: var(--radius-full);
    font-weight: 700;
    cursor: pointer;
}

/* Copy code block */
.code-box {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: var(--radius-md);
    padding: 14px;
    font-family: 'Fira Code', monospace;
    font-size: 0.82rem;
    color: #a5f3fc;
    overflow-x: auto;
}

/* Floating Circular WhatsApp Button (Only Icon, No Text) */
.whatsapp-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    background: #25D366;
    color: #ffffff;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5);
    transition: var(--transition);
    animation: waPulse 2s infinite;
}

.whatsapp-fab:hover {
    background: #1fbe59;
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.7);
}

.whatsapp-fab i {
    font-size: 2rem;
}

@keyframes waPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 16px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@media (max-width: 600px) {
    .whatsapp-fab {
        bottom: 20px;
        right: 20px;
        width: 52px;
        height: 52px;
    }
    .whatsapp-fab i {
        font-size: 1.75rem;
    }
}
