/* ==========================================================================
   CSS Design System - Gemini Ultra (Bright Clean Style)
   ========================================================================== */

:root {
    /* Colors - Light Theme */
    --color-bg-dark: #f6f8fb;
    --color-bg-panel: rgba(255, 255, 255, 0.8);
    --color-text-primary: #0f172a;
    --color-text-secondary: #475569;
    --color-text-muted: #94a3b8;
    
    --color-primary: #2563eb;      /* Vibrant Blue */
    --color-secondary: #7c3aed;    /* Vibrant Violet */
    --color-accent: #db2777;       /* Vibrant Pink */
    
    --gemini-gradient: linear-gradient(135deg, #1a73e8 0%, #7b1fa2 50%, #d81b60 100%);
    --text-gradient-style: linear-gradient(135deg, #1d4ed8 10%, #6d28d9 50%, #be185d 90%);
    
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--color-bg-dark);
    background-image: 
        radial-gradient(at 0% 0%, rgba(96, 165, 250, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(192, 132, 252, 0.15) 0px, transparent 50%),
        radial-gradient(at 50% 100%, rgba(244, 114, 182, 0.1) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--color-text-primary);
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-x: hidden; /* prevent horizontal scroll on mobile */
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

.text-gradient {
    background: var(--text-gradient-style);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-text-primary);
    text-decoration: none;
}

.logo-icon {
    background: var(--gemini-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-link {
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 50px;
}

.nav-link-primary {
    background: var(--gemini-gradient);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.2);
}

.nav-link-primary:hover {
    transform: translateY(-1px);
    opacity: 0.95;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.35);
    color: #ffffff;
}

.nav-link-secondary {
    color: var(--color-text-secondary);
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-link-secondary:hover {
    background: rgba(0, 0, 0, 0.06);
    color: var(--color-text-primary);
    border-color: rgba(0, 0, 0, 0.1);
}

/* Main Grid Layout */
.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 0;
    gap: 30px;
}

.main-grid {
    display: grid;
    grid-template-columns: 0.65fr 1.35fr;
    gap: 30px;
}

/* Common Panels */
.panel {
    background: var(--color-bg-panel);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: var(--border-radius-lg);
    padding: 30px;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.02);
    display: flex;
    flex-direction: column;
}

.panel-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

.panel-subtitle {
    color: var(--color-text-secondary);
    font-size: 0.85rem;
    margin-bottom: 24px;
}

/* Pricing Panel Inner Details */
.price-tables {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.price-table-block {
    background: #ffffff;
    border: 1px solid rgba(241, 245, 249, 0.9);
    border-radius: var(--border-radius-md);
    padding: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.01), 0 2px 4px -2px rgba(0, 0, 0, 0.01);
}

.block-header {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    display: inline-block;
    align-self: flex-start;
}

.badge-purple {
    background: rgba(124, 58, 237, 0.08);
    color: #6d28d9;
    border: 1px solid rgba(124, 58, 237, 0.15);
}

.badge-blue {
    background: rgba(37, 99, 235, 0.08);
    color: #1d4ed8;
    border: 1px solid rgba(37, 99, 235, 0.15);
}

.block-desc {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.rows-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    padding: 10px 14px;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-smooth);
}

.price-row:hover {
    background: #ffffff;
    border-color: rgba(96, 165, 250, 0.3);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.03);
}

.price-row .duration {
    font-size: 0.85rem;
    font-weight: 500;
}

.price-row .price {
    font-size: 1.1rem;
    font-weight: 700;
}

.price-group {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.price-avg {
    font-size: 0.7rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

/* Addon Bar */
.addon-bar {
    background: rgba(245, 158, 11, 0.04);
    border: 1px dashed rgba(245, 158, 11, 0.25);
    border-radius: var(--border-radius-md);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.addon-tag {
    background: #f59e0b;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
    white-space: nowrap;
}

.addon-text {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
}

/* Contact / QR Panel Inner Details */
.contact-panel {
    align-items: center;
    text-align: center;
}

.qr-box {
    background: #ffffff;
    padding: 14px;
    border-radius: var(--border-radius-md);
    margin-bottom: 20px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.04);
    width: 170px;
    height: 170px;
}

.qr-img {
    width: 100%;
    height: 100%;
    border-radius: 4px;
}

.wechat-copy-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin-top: 10px;
}

.wechat-id {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--color-text-primary);
}

.btn-copy {
    width: 100%;
    white-space: nowrap;
    justify-content: center;
    background: var(--gemini-gradient);
    color: #ffffff;
    border: none;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-smooth);
}

.btn-copy:hover {
    transform: translateY(-1px);
    opacity: 0.95;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.toast-message {
    font-size: 0.75rem;
    color: var(--color-primary);
    margin-top: 10px;
    min-height: 18px;
    font-weight: 500;
    opacity: 0;
    transform: translateY(5px);
    transition: var(--transition-smooth);
}

.toast-message.show {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
.footer {
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    padding: 24px 0;
    background: #ffffff;
    text-align: center;
}

.footer-content p {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.footer-link {
    text-decoration: underline;
    color: var(--color-text-secondary);
}

.footer-link:hover {
    color: var(--color-text-primary);
}

/* 2FA Entry Banner */
.banner-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    margin-bottom: 24px;
    background: rgba(124, 58, 237, 0.03);
    border: 1px solid rgba(124, 58, 237, 0.12) !important;
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.02);
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.banner-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--border-radius-sm);
    background: rgba(124, 58, 237, 0.08);
    color: #7c3aed;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.banner-text h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 3px;
    color: var(--color-text-primary);
}

.banner-text p {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
}

.btn-banner {
    background: var(--gemini-gradient);
    color: #ffffff;
    border: none;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-smooth);
    white-space: nowrap;
}

.btn-banner:hover {
    transform: translateY(-1px);
    opacity: 0.95;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}


/* ============================================
   MOBILE RESPONSIVE DESIGN (≤ 820px)
   ============================================ */
@media (max-width: 820px) {

    /* --- Header / Nav --- */
    .header { padding: 10px 0; }
    .nav-actions { gap: 6px; }
    .logo-text { display: none; } /* keep only icon on small screens */
    .logo { gap: 4px; }
    .btn-lang {
        padding: 6px 8px;
        font-size: 0.72rem;
    }
    .nav-link {
        padding: 6px 10px;
        font-size: 0.72rem;
    }
    .nav-link-secondary { display: none; } /* hide 2FA button on mobile to save space */

    /* --- Main grid stacks vertically --- */
    .main-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        width: 100%;
    }
    .main-content { padding: 16px 0; gap: 16px; }
    .container { width: 94%; }

    /* --- Panels --- */
    .panel { padding: 20px 16px; }
    .panel-title { font-size: 1.2rem; }

    /* --- Pricing tables stacks to single column --- */
    .price-tables {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    /* Price row – consistent single-line layout on mobile */
    .price-row {
        flex-wrap: nowrap;
        gap: 4px;
        padding: 8px 10px;
        align-items: center;
    }
    .price-row .duration {
        font-size: 0.78rem;
        white-space: nowrap;
        flex-shrink: 0;
        min-width: 48px;
    }
    .price-action {
        gap: 6px;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: flex-end;
        flex: 1;
        min-width: 0;
    }
    .price-group {
        align-items: flex-end;
        min-width: 0;
    }
    .price-row .price {
        font-size: 0.95rem;
        white-space: nowrap;
    }
    .price-avg {
        font-size: 0.65rem;
        white-space: nowrap;
    }
    .btn-buy-mini {
        padding: 5px 8px;
        font-size: 0.72rem;
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* --- Contact section --- */
    .contact-methods {
        gap: 12px;
    }
    .contact-method {
        min-width: 130px;
        max-width: 160px;
    }
    .qr-box {
        width: 140px;
        height: 140px;
    }
    .contact-cards-container { gap: 12px; }

    /* --- Banner panel --- */
    .banner-panel {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 16px;
    }
    .btn-banner {
        width: 100%;
        justify-content: center;
    }

    /* --- FAQ --- */
    .faq-header { padding: 16px; }
    .faq-content { padding: 16px; }
    .faq-question { font-size: 0.9rem; }
}

/* FAQ Section Styles */
.faq-container {
    margin-top: 30px;
    width: 100%;
    max-width: 1100px;
}

.faq-panel {
    text-align: left;
    width: 100%;
}

.faq-title {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text-primary);
}

.faq-title i {
    color: var(--color-primary);
}

/* Language Selector Styles */
.lang-selector {
    position: relative;
    display: inline-block;
}

.btn-lang {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--color-text-secondary);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-smooth);
}

.btn-lang:hover {
    background: rgba(0, 0, 0, 0.06);
    color: var(--color-text-primary);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
    padding: 6px;
    display: none;
    flex-direction: column;
    min-width: 120px;
    z-index: 200;
}

.lang-dropdown.show {
    display: flex;
}

.lang-option {
    padding: 8px 12px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    transition: var(--transition-smooth);
}

.lang-option:hover {
    background: rgba(0, 0, 0, 0.03);
    color: var(--color-text-primary);
}

.lang-option.active {
    background: rgba(37, 99, 235, 0.05);
    color: var(--color-primary);
    font-weight: 700;
}

/* Accordion FAQ Styles */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.03);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition-smooth);
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.01);
}

.faq-item:hover {
    border-color: rgba(37, 99, 235, 0.15);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.02);
}

.faq-header {
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.faq-question {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.faq-icon-arrow {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon-arrow {
    transform: rotate(180deg);
    color: var(--color-primary);
}

.faq-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #f8fafc;
}

.faq-content {
    padding: 20px 24px;
    font-size: 0.88rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    border-top: 1px solid #f1f5f9;
}

.faq-content strong {
    color: var(--color-primary);
}

.faq-content a.step-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
}

.faq-content a.step-link:hover {
    text-decoration: underline;
}

/* Checkout Modal */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}
.modal-content {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px;
    width: 90%;
    max-width: 420px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    position: relative;
    transform: translateY(20px);
    transition: all 0.3s ease;
}
.modal-overlay.show .modal-content {
    transform: translateY(0);
}
.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--color-text-muted);
    cursor: pointer;
}
.modal-close:hover {
    color: var(--color-accent);
}
.modal-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--color-text-primary);
    text-align: center;
}
.order-summary {
    background: #f8fafc;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
}
.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: var(--color-text-secondary);
}
.summary-row:last-child { margin-bottom: 0; }
.highlight-text {
    font-weight: 700;
    color: var(--color-primary);
}
.highlight-price {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--color-accent);
}
.modal-note {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-align: center;
    margin-top: 16px;
}
html[dir="rtl"] .modal-close {
    right: auto;
    left: 15px;
}
.price-row { cursor: pointer; }

/* Mini Buy Button in Price Row */
.price-action {
    display: flex;
    align-items: center;
    gap: 15px;
}
.btn-buy-mini {
    background: #FFC439; /* PayPal Yellow */
    color: #003087; /* PayPal Blue */
    border: none;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.price-row:hover .btn-buy-mini {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(255, 196, 57, 0.3);
}

/* Dual Contact Methods Layout */
.contact-methods {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 10px 0;
}
.contact-method {
    flex: 1;
    min-width: 150px;
    max-width: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.contact-method-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 0.9rem;
}
.contact-method-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-text-primary);
}
.contact-method .qr-box {
    width: 100%;
}
.contact-method .qr-img {
    width: 100%;
    max-width: 140px;
    border-radius: 12px;
}
.btn-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #25D366;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 10px 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition-smooth);
    width: 100%;
    white-space: nowrap;
}
.btn-whatsapp:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(37,211,102,0.35);
}

/* Contact Cards Container */
.contact-cards-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 40px;
}
.contact-card {
    margin-top: 0 !important;
    flex: 1;
    min-width: 300px;
    max-width: 400px;
}
.whatsapp-card .qr-wrapper {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    padding: 3px;
}
.whatsapp-card .qr-wrapper::before, .whatsapp-card .qr-wrapper::after {
    display: none;
}
