/* Officera PWA - Premium Light Design System v3.0 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    --primary: #1E40AF;
    --primary-light: #3B82F6;
    --primary-dark: #1E3A5F;
    --accent-gold: #B8860B;
    --accent-gold-light: #D4A843;
    --success: #059669;
    --success-light: #10B981;
    --warning: #D97706;
    --danger: #DC2626;
    --dark: #111827;
    --text-primary: #1F2937;
    --text-secondary: #4B5563;
    --text-muted: #6B7280;
    --bg-body: #F3F4F6;
    --bg-white: #FFFFFF;
    --bg-light: #F9FAFB;
    --border-color: #E5E7EB;
    --border-light: #F3F4F6;
    --card-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --card-shadow-hover: 0 10px 25px -5px rgba(0,0,0,0.1), 0 4px 10px -3px rgba(0,0,0,0.05);
    --radius: 14px;
    --radius-sm: 10px;
    --radius-lg: 18px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

::selection {
    background: var(--primary-light);
    color: white;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #D1D5DB; border-radius: 10px; }

html { scroll-behavior: smooth; }

body {
    background: var(--bg-body);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

/* ===== TOP NAV ===== */
.top-nav {
    position: sticky;
    top: 0;
    width: 100%;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.top-nav .nav-logo {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.top-nav .nav-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.top-nav .nav-actions a, .top-nav .nav-actions button {
    font-size: 0.8rem;
    font-weight: 700;
    padding: 7px 14px;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-fast);
    border: none;
}

.nav-link-ghost {
    color: var(--text-secondary);
    background: transparent;
}
.nav-link-ghost:hover {
    color: var(--primary);
    background: var(--bg-light);
}

.nav-link-primary {
    background: var(--primary);
    color: white !important;
    box-shadow: 0 2px 8px rgba(30,64,175,0.25);
}
.nav-link-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30,64,175,0.35);
}

.nav-link-success {
    background: var(--success);
    color: white !important;
}

/* ===== APP CONTAINER ===== */
.app-container {
    width: 100%;
    max-width: 540px;
    margin: 0 auto;
    padding: 20px 16px;
}

/* ===== HERO SECTION ===== */
.hero-section {
    text-align: center;
    padding: 36px 16px 32px;
    margin-bottom: 20px;
    background: linear-gradient(145deg, var(--primary) 0%, #1D4ED8 50%, #1E40AF 100%);
    border-radius: var(--radius-lg);
    color: white;
    box-shadow: 0 8px 30px rgba(30,64,175,0.2);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.06);
    border-radius: 50%;
}

.hero-section h1 {
    font-size: 1.65rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
    position: relative;
}

.hero-section .gold-text {
    color: #FCD34D;
}

.hero-section .hero-subtitle {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.5;
    margin-bottom: 20px;
}

.hero-section .hero-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.hero-section .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    color: white;
    padding: 7px 14px;
    border-radius: 30px;
    font-size: 0.78rem;
    font-weight: 700;
    animation: pulse 3s ease-in-out infinite;
}

/* ===== BRAND HEADER ===== */
.brand-header {
    text-align: center;
    padding: 22px 16px;
    margin-bottom: 18px;
    background: linear-gradient(145deg, var(--primary) 0%, #1D4ED8 100%);
    color: white;
    border-radius: var(--radius);
    box-shadow: 0 4px 16px rgba(30,64,175,0.15);
    position: relative;
    overflow: hidden;
}

.brand-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #FCD34D, var(--primary-light), #FCD34D);
}

.brand-header h1 {
    font-size: 1.35rem;
    font-weight: 900;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.brand-header p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.75);
}

/* ===== CARDS ===== */
.card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 22px;
    margin-bottom: 18px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--card-shadow-hover);
}

.card-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ===== FEATURE GRID ===== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 22px;
}

.feature-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 18px 14px;
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--card-shadow-hover);
}

.feature-card .feature-icon { font-size: 1.6rem; margin-bottom: 8px; display: block; }
.feature-card h3 { font-size: 0.88rem; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.feature-card p { font-size: 0.76rem; color: var(--text-muted); line-height: 1.4; }

/* ===== TESTIMONIAL ===== */
.testimonial-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 10px;
}

.testimonial-card .quote { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.5; font-style: italic; margin-bottom: 8px; }
.testimonial-card .author { font-size: 0.78rem; font-weight: 700; color: var(--primary); }

/* ===== STEP GUIDE ===== */
.step-guide {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-light);
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    font-size: 0.86rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.step-item:hover {
    background: #EFF6FF;
    border-color: var(--primary-light);
}

.step-number {
    width: 28px;
    height: 28px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.8rem;
    flex-shrink: 0;
}

/* ===== PAYMENT INFO BOX ===== */
.payment-info-box {
    background: linear-gradient(145deg, #EFF6FF 0%, #DBEAFE 100%);
    border: 1.5px dashed #93C5FD;
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 18px;
}

.payment-info-box h3 {
    font-size: 0.95rem;
    color: var(--primary);
    margin-bottom: 10px;
    font-weight: 800;
}

.payment-method-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 0;
    border-bottom: 1px solid rgba(59,130,246,0.15);
}
.payment-method-row:last-child { border-bottom: none; }

.payment-label { font-size: 0.83rem; color: var(--text-secondary); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.payment-value { font-size: 0.95rem; font-weight: 800; color: var(--primary-dark); letter-spacing: 0.5px; }

/* ===== FORMS ===== */
.form-group { margin-bottom: 14px; }

.form-label {
    display: block;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.form-control, .form-select {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    background: var(--bg-white);
    color: var(--text-primary);
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
}

.form-control::placeholder { color: #9CA3AF; }

.form-control:focus, .form-select:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
}

/* ===== BUTTONS ===== */
.btn {
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
    position: relative;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 3px 10px rgba(30,64,175,0.2);
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(30,64,175,0.3);
    background: #1D4ED8;
}

.btn-secondary {
    background: var(--bg-light);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}
.btn-secondary:hover {
    background: var(--border-color);
    color: var(--text-primary);
}

.btn-success {
    background: var(--success);
    color: white;
    box-shadow: 0 3px 10px rgba(5,150,105,0.2);
}
.btn-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(5,150,105,0.3);
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-gold {
    background: linear-gradient(135deg, #D97706 0%, #B45309 100%);
    color: white;
    box-shadow: 0 3px 10px rgba(217,119,6,0.25);
}
.btn-gold:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(217,119,6,0.35);
}

.btn-whatsapp-big {
    background: #25D366;
    color: white;
    box-shadow: 0 3px 10px rgba(37,211,102,0.25);
}
.btn-whatsapp-big:hover {
    transform: translateY(-1px);
    background: #1EBE5A;
}

.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ===== STATUS & BADGES ===== */
.status-box {
    text-align: center;
    padding: 18px;
    background: var(--bg-light);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.status-badge {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.badge-pending { background: #FEF3C7; color: #92400E; }
.badge-approved { background: #D1FAE5; color: #065F46; }
.badge-rejected { background: #FEE2E2; color: #991B1B; }

.countdown-timer {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: 3px;
    margin: 12px 0;
    font-family: 'Inter', monospace;
}

.credentials-box {
    background: #ECFDF5;
    border: 1.5px dashed #6EE7B7;
    border-radius: var(--radius-sm);
    padding: 14px;
    margin: 14px 0;
    text-align: left;
}

.credentials-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 0;
    border-bottom: 1px solid var(--border-color);
}
.credentials-row:last-child { border-bottom: none; }

/* ===== MODAL ===== */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }

.modal-content {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 26px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    animation: fadeIn 0.25s ease;
}

/* ===== TOAST ===== */
.toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 2000; max-width: 330px; }
.toast {
    background: var(--text-primary);
    color: white;
    padding: 11px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.83rem;
    font-weight: 500;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: slideUp 0.35s cubic-bezier(0.16,1,0.3,1);
}

/* ===== TICKER ===== */
.ticker-wrapper {
    background: linear-gradient(135deg, var(--success) 0%, var(--success-light) 100%);
    color: white;
    padding: 9px 16px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 18px;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
}
.ticker-content { display: inline-block; animation: marquee 22s linear infinite; }

/* ===== STATS GRID ===== */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 14px 0; }
.stat-card {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px 6px;
    text-align: center;
}
.stat-card .value { font-size: 1rem; font-weight: 800; color: var(--primary); }
.stat-card .label { font-size: 0.66rem; color: var(--text-muted); margin-top: 2px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.3px; }

/* ===== SOCIAL ===== */
.social-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 10px 0; }
.btn-social {
    padding: 9px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: white;
    text-decoration: none;
    transition: var(--transition-fast);
}
.btn-social:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn-whatsapp { background: #25D366; }
.btn-facebook { background: #1877F2; }

/* ===== COURSE CARDS ===== */
.course-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    padding: 16px;
    margin-bottom: 12px;
    transition: var(--transition);
}
.course-card:hover { box-shadow: var(--card-shadow-hover); border-color: var(--primary-light); }

.course-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }

.badge-locked { background: #FEE2E2; color: #991B1B; padding: 4px 10px; border-radius: 20px; font-size: 0.73rem; font-weight: 700; }
.badge-unlocked { background: #D1FAE5; color: #065F46; padding: 4px 10px; border-radius: 20px; font-size: 0.73rem; font-weight: 700; }

.subject-item:hover { background: #EFF6FF; }

/* ===== DUAL COURSE BUY BUTTONS & EXPANDABLE BOXES ===== */
.course-actions-dual {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 12px;
}

.btn-action-wa {
    background: #25D366;
    color: white;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 10px 8px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: var(--transition-fast);
    text-decoration: none;
}
.btn-action-wa:hover { background: #1EBE5A; transform: translateY(-1px); }

.btn-action-direct {
    background: var(--primary);
    color: white;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 10px 8px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: var(--transition-fast);
    text-decoration: none;
}
.btn-action-direct:hover { background: #1D4ED8; transform: translateY(-1px); }

.expandable-wa-box {
    background: #ECFDF5;
    border: 1.5px dashed #6EE7B7;
    border-radius: var(--radius-sm);
    padding: 14px;
    margin-top: 12px;
    animation: slideUp 0.3s ease;
}

.expandable-direct-box {
    background: #EFF6FF;
    border: 1.5px dashed #93C5FD;
    border-radius: var(--radius-sm);
    padding: 14px;
    margin-top: 12px;
    animation: slideUp 0.3s ease;
}

/* ===== SECTION ===== */
.section-heading { font-size: 1.1rem; font-weight: 800; color: var(--text-primary); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }

/* ===== FOOTER ===== */
.footer {
    text-align: center;
    padding: 22px 16px;
    margin-top: 18px;
    font-size: 0.76rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
}
.footer a { color: var(--text-secondary); text-decoration: none; font-weight: 600; }
.footer a:hover { color: var(--primary); }

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 52px;
    height: 52px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 4px 16px rgba(37,211,102,0.4);
    text-decoration: none;
    z-index: 999;
    transition: var(--transition);
    animation: float 3s ease-in-out infinite;
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 20px rgba(37,211,102,0.5); }

/* ===== ANIMATIONS ===== */
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: scale(1); } }
@keyframes marquee { 0% { transform: translateX(100%); } 100% { transform: translateX(-100%); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.7; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

/* ===== RESPONSIVE ===== */
@media (max-width: 380px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-section h1 { font-size: 1.4rem; }
    .feature-grid { grid-template-columns: 1fr; }
}
