:root {
    --brand-green: #2FA84F;
    --brand-blue: #1F6FB2;
    --brand-green-strong: #258b42;
    --brand-blue-strong: #19588d;
    --ink-900: #0d2942;
    --ink-700: #355269;
    --bg-100: #f4f8fc;
    --bg-gradient: linear-gradient(135deg, #e8eef5 0%, #d4dde6 100%);
    --white: #ffffff;
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
}

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Trebuchet MS", "Lucida Sans Unicode", "Verdana", sans-serif;
    background: var(--bg-gradient);
    color: var(--ink-900);
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
}

/* Banner */
.banner {
    position: relative;
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    background: 
        linear-gradient(135deg, rgba(31, 111, 178, 0.08) 0%, rgba(47, 168, 79, 0.08) 100%),
        radial-gradient(ellipse at top right, rgba(47, 168, 79, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at bottom left, rgba(31, 111, 178, 0.1) 0%, transparent 50%),
        var(--bg-gradient);
    overflow: hidden;
}

.banner-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.banner > *:not(.banner-video-bg) {
    position: relative;
    z-index: 2;
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    pointer-events: none;
}

/* Banner Header */
.banner-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
    position: relative;
    z-index: 10;
}

.banner-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--ink-900);
}

.banner-logo img {
    height: 50px;
    width: auto;
}

.banner-logo-text {
    display: flex;
    flex-direction: column;
}

.banner-logo-name {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--brand-blue-strong);
}

.banner-logo-sub {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--brand-green);
    font-weight: 600;
}

.banner-home-icon {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--ink-700);
    font-size: 1rem;
    padding: 0.6rem 1rem;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-soft);
}

.banner-home-icon:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.banner-home-icon span {
    font-size: 1.2rem;
}

/* Banner Content */
.banner-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 3rem 4rem;
    position: relative;
    z-index: 10;
}

.banner-text {
    max-width: 55%;
    animation: slideInLeft 0.8s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.banner-tagline {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--brand-green);
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(47, 168, 79, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(47, 168, 79, 0.2);
}

.banner-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 1rem;
    background: linear-gradient(135deg, var(--brand-blue-strong) 0%, var(--brand-green-strong) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.banner-subtitle {
    font-size: 1.5rem;
    color: var(--ink-700);
    margin: 0 0 2rem;
    font-weight: 500;
}

.banner-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--brand-green) 0%, var(--brand-green-strong) 100%);
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(47, 168, 79, 0.4);
    transition: all 0.3s ease;
}

.banner-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(47, 168, 79, 0.5);
}

.banner-cta-icon {
    font-size: 1.3rem;
}

/* Banner Image */
.banner-image {
    max-width: 40%;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: slideInRight 0.8s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.banner-image img {
    max-width: 100%;
    max-height: 450px;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.15));
}

/* Wave Divider */
.banner-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: var(--white);
    clip-path: polygon(
        0% 100%,
        0% 30%,
        5% 35%,
        10% 25%,
        15% 32%,
        20% 22%,
        25% 30%,
        30% 18%,
        35% 28%,
        40% 20%,
        45% 26%,
        50% 15%,
        55% 25%,
        60% 18%,
        65% 28%,
        70% 22%,
        75% 30%,
        80% 25%,
        85% 35%,
        90% 28%,
        95% 38%,
        100% 30%,
        100% 100%
    );
}

/* Responsive */
@media (max-width: 1024px) {
    .banner-content {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }
    
    .banner-text {
        max-width: 100%;
        margin-bottom: 2rem;
    }
    
    .banner-image {
        max-width: 80%;
    }
    
    .banner-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .banner-header {
        padding: 1rem;
    }
    
    .banner-content {
        padding: 1rem;
    }
    
    .banner-title {
        font-size: 2rem;
    }
    
    .banner-subtitle {
        font-size: 1.2rem;
    }
    
    .banner-image {
        max-width: 100%;
    }
    
    .banner-logo-name {
        font-size: 1.1rem;
    }
}

/* Info Section */
.info-section {
    background: var(--white);
    padding: 4rem 3rem;
    margin-top: -1px;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 3rem;
}

.info-card {
    background: linear-gradient(135deg, #f8fafc 0%, #eef2f6 100%);
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--brand-green);
}

.info-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--brand-blue-strong);
    margin: 0 0 1rem;
    line-height: 1.3;
}

.info-text {
    font-size: 1rem;
    color: var(--ink-700);
    line-height: 1.7;
    margin: 0;
}

.info-cta {
    text-align: center;
    margin-top: 2rem;
}

.btn-entra {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 3rem;
    background: #1a1a1a;
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-entra:hover {
    background: #333;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.btn-entra span {
    font-size: 1.3rem;
}

/* Responsive Info */
@media (max-width: 768px) {
    .info-section {
        padding: 2rem 1rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .info-card {
        padding: 1.5rem;
    }
    
    .info-title {
        font-size: 1.2rem;
    }
}

/* ============================
   HEADER
============================ */
.main-header {
    background: linear-gradient(90deg, var(--brand-blue-strong) 0%, var(--brand-blue) 50%, var(--brand-green) 100%);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.8rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}

.header-logo img {
    height: 42px;
    width: auto;
}

.header-logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: white;
}

.logo-sub {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.85);
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.8rem;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-weight: 600;
}

.auth-required {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}

.auth-required .sidebar-icon {
    filter: grayscale(1);
}

.nav-icon {
    font-size: 1rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ghc-widget {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 0.4rem 0.8rem;
    min-width: 70px;
}

.ghc-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.5px;
}

.ghc-value {
    font-size: 1rem;
    font-weight: 700;
    color: #7dffb3;
}

.btn-account {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    text-decoration: none;
    color: white;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.btn-account:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-register-header {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: var(--brand-green);
    border: none;
    border-radius: 25px;
    text-decoration: none;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease;
    margin-left: 0.5rem;
}

.btn-register-header:hover {
    background: #259c4f;
}

.account-section {
    display: flex;
    align-items: center;
}

.user-menu {
    position: relative;
}

.user-menu-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    color: white;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-menu-trigger:hover {
    background: rgba(255, 255, 255, 0.25);
}

.user-avatar {
    font-size: 1.2rem;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    display: none;
    z-index: 1000;
    overflow: hidden;
}

.user-dropdown.active {
    display: block;
}

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--ink-700);
    text-decoration: none;
    transition: background 0.2s ease;
}

.user-dropdown a:hover {
    background: #f1f5f9;
    color: var(--brand-green);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, var(--brand-blue-strong) 0%, #155 100%);
    padding: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 999;
}

.mobile-menu.active {
    display: block;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.mobile-nav .nav-link {
    padding: 0.8rem 1rem;
    border-radius: 8px;
}

/* ============================
   MAIN CONTENT & LAYOUT
============================ */
.main-content {
    min-height: calc(100vh - 200px);
}

/* Modo lector — ocupa exactamente el espacio disponible */
.main-content.reader-layout {
    min-height: unset;
    height: calc(100vh - 70px);
    overflow: hidden;
    display: flex;
    flex-direction: row;   /* fila: sidebar + contenido */
    max-width: 100% !important;
    margin: 0;
}

.main-content.with-sidebar {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    gap: 0;
}

/* Layout del Lector (Sin sidebar global, pantalla completa) */
.main-content.reader-layout {
    max-width: 100% !important;
    height: calc(100vh - 70px);
    overflow: hidden;
    margin: 0 !important;
    display: flex;
    flex-direction: column; /* el content-area ocupa todo */
}

.sidebar {
    width: 260px;
    min-width: 260px;
    background: white;
    border-right: 1px solid #e2e8f0;
    padding: 1.5rem 0;
    position: sticky;
    top: 70px;
    height: calc(100vh - 70px);
    overflow-y: auto;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0 0.8rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: var(--ink-700);
    font-size: 0.95rem;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.sidebar-link:hover {
    background: #f1f5f9;
    color: var(--brand-blue);
}

.sidebar-link.active {
    background: linear-gradient(135deg, rgba(47, 168, 79, 0.15) 0%, rgba(31, 111, 178, 0.1) 100%);
    color: var(--brand-green-strong);
    font-weight: 600;
    border-left: 3px solid var(--brand-green);
}

.sidebar-icon {
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
}

.content-area {
    flex: 1;
    min-height: 0;          /* permite que flex hijo encoja */
    padding: 2rem;
    background: var(--bg-gradient);
    overflow-y: auto;
}

/* Modo lector: sin padding, ocupa toda la altura disponible */
.content-area.reader-mode {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;          /* crítico para cadena flex anidada */
    height: 100%;           /* hereda la altura del main */
}

/* ============================
   FOOTER
============================ */
.main-footer {
    background: linear-gradient(180deg, #1a3a52 0%, #0f2535 100%);
    color: white;
    margin-top: auto;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem 1.5rem;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    gap: 3rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    margin-bottom: 1rem;
}

.footer-logo img {
    height: 38px;
    width: auto;
}

.footer-logo-text {
    display: flex;
    flex-direction: column;
}

.footer-logo-text .logo-name {
    font-size: 1.2rem;
}

.footer-logo-text .logo-sub {
    font-size: 0.6rem;
}

.footer-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 3rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-col h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--brand-green);
    margin: 0 0 0.5rem;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-tagline {
    color: var(--brand-green) !important;
    font-style: italic;
    margin-top: 0.3rem !important;
}

/* Responsive Header & Sidebar */
@media (max-width: 1024px) {
    .header-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-content.with-sidebar {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        min-width: auto;
        position: static;
        height: auto;
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
    }
    
    .sidebar-nav {
        flex-direction: row;
        flex-wrap: wrap;
        padding: 0.5rem;
    }
    
    .sidebar-link {
        flex: 1 1 auto;
        min-width: 120px;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0.6rem 1rem;
    }
    
    .header-right {
        display: none;
    }
    
    .footer-main {
        flex-direction: column;
        gap: 2rem;
    }
    
    .footer-links {
        flex-wrap: wrap;
        gap: 1.5rem;
    }
    
    .footer-col {
        min-width: 140px;
    }
}

/* ============================
   HOME PAGE
============================ */


.page-header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding: 1.5rem;
}

.page-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin: 0;
    background: linear-gradient(135deg, var(--brand-blue-strong) 0%, var(--brand-green-strong) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.home-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.home-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 20px;
    text-decoration: none;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.home-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    border-color: var(--brand-green);
}

.home-card-highlight {
    background: linear-gradient(135deg, var(--brand-green) 0%, var(--brand-green-strong) 100%);
    color: white;
}

.home-card-highlight:hover {
    border-color: var(--brand-blue);
}

.card-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(47, 168, 79, 0.15) 0%, rgba(31, 111, 178, 0.1) 100%);
    border-radius: 50%;
    margin-bottom: 1rem;
}

.home-card-highlight .card-icon {
    background: rgba(255, 255, 255, 0.25);
}

.card-icon i {
    font-size: 2rem;
    color: var(--brand-green);
}

.home-card-highlight .card-icon i {
    color: white;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: var(--brand-blue-strong);
}

.home-card-highlight .card-title {
    color: white;
}

.card-text {
    font-size: 0.95rem;
    color: var(--ink-700);
    margin: 0;
    line-height: 1.5;
}

.home-card-highlight .card-text {
    color: rgba(255, 255, 255, 0.9);
}

/* Locked Cards */
.home-card-locked {
    position: relative;
    opacity: 0.6;
    cursor: not-allowed;
}

.home-card-locked .card-icon {
    opacity: 0.5;
}

.home-card-locked .card-title,
.home-card-locked .card-text {
    opacity: 0.5;
}

.lock-overlay {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.lock-overlay i {
    font-size: 1rem;
    color: var(--ink-500);
}

/* Action Buttons */
.home-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.btn-action {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 2rem;
    background: #1a1a1a;
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-action:hover {
    background: #333;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.btn-action i {
    font-size: 1.2rem;
}

.btn-register {
    background: linear-gradient(135deg, var(--brand-green) 0%, var(--brand-green-strong) 100%);
}

.btn-register:hover {
    background: linear-gradient(135deg, var(--brand-green-strong) 0%, #1e7a35 100%);
    box-shadow: 0 10px 25px rgba(47, 168, 79, 0.4);
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 2rem 1rem;
    overflow-y: auto;
    align-items: flex-start;
}

/* Fix for SweetAlert2 over higher z-index modals */
.swal2-container {
    z-index: 3000 !important;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 24px;
    max-width: 500px;
    width: 100%;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;
    overflow: hidden;
    margin: auto;
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-slides {
    max-width: 600px;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border: none;
    background: #f1f5f9;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 100;
}

.modal-close:hover {
    background: #e2e8f0;
}

.modal-close i {
    font-size: 1.2rem;
    color: var(--ink-700);
}

/* Slides */
.modal-slide {
    display: none;
}

.modal-slide.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-body {
    padding: 2.5rem;
    text-align: center;
}

.modal-body.modal-final {
    padding: 3rem 2rem;
}

.modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--brand-green) 0%, var(--brand-green-strong) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-icon-large {
    width: 100px;
    height: 100px;
}

.modal-icon-large i {
    font-size: 3rem;
}

.modal-icon i {
    font-size: 2.5rem;
    color: white;
}

.modal-title {
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0 0 0.5rem;
    color: var(--brand-blue-strong);
    line-height: 1.3;
}

.modal-subtitle {
    font-size: 1rem;
    color: var(--brand-green);
    font-weight: 600;
    margin: 0 0 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.modal-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-green), var(--brand-blue));
    margin: 0 auto 1.5rem;
    border-radius: 2px;
}

.modal-question {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--brand-blue-strong);
    margin: 1rem 0;
}

.modal-text {
    font-size: 0.95rem;
    color: var(--ink-700);
    line-height: 1.7;
    margin: 0 0 1rem;
    text-align: left;
}

.modal-text-large {
    font-size: 1.2rem;
    text-align: center;
}

.modal-text strong {
    color: var(--brand-green-strong);
    font-weight: 700;
}

.modal-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    text-align: left;
}

.modal-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0;
    color: var(--ink-700);
    font-size: 0.95rem;
    border-bottom: 1px solid #f1f5f9;
}

.modal-list li:last-child {
    border-bottom: none;
}

.modal-list li i {
    font-size: 1.3rem;
    color: var(--brand-green);
    min-width: 24px;
}

.modal-list-warning li i {
    color: #f59e0b;
}

/* Navigation */
.modal-nav {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.5rem;
}

.modal-btn-next,
.modal-btn-prev,
.modal-btn-finish {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-btn-next {
    background: linear-gradient(135deg, var(--brand-green) 0%, var(--brand-green-strong) 100%);
    color: white;
    margin-left: auto;
}

.modal-btn-next:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(47, 168, 79, 0.4);
}

.modal-btn-prev {
    background: #f1f5f9;
    color: var(--ink-700);
}

.modal-btn-prev:hover {
    background: #e2e8f0;
}

.modal-btn-finish {
    background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-strong) 100%);
    color: white;
    margin-left: auto;
}

.modal-btn-finish:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(31, 111, 178, 0.4);
}

/* Progress Dots */
.modal-progress {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background: #f8fafc;
    flex-wrap: wrap;
}

.progress-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e2e8f0;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.progress-dot.active {
    background: var(--brand-green);
    transform: scale(1.2);
}

/* Journey Steps */
.journey-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.5rem 0;
}

.journey-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, rgba(47, 168, 79, 0.15) 0%, rgba(31, 111, 178, 0.1) 100%);
    border-radius: 12px;
    min-width: 80px;
}

.journey-number {
    width: 28px;
    height: 28px;
    background: var(--brand-green);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.journey-text {
    font-size: 0.8rem;
    color: var(--brand-blue-strong);
    font-weight: 600;
}

.journey-arrow {
    color: var(--brand-green);
    font-size: 1.2rem;
}

/* Final Slide */
.final-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.final-step {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(47, 168, 79, 0.1) 0%, rgba(31, 111, 178, 0.05) 100%);
    border-radius: 12px;
    color: var(--brand-blue-strong);
    font-weight: 600;
    font-size: 1rem;
}

.final-step i {
    font-size: 1.5rem;
    color: var(--brand-green);
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-body {
        padding: 1.5rem;
    }
    
    .modal-title {
        font-size: 1.3rem;
    }
    
    .modal-slides {
        max-width: 100%;
    }
    
    .modal-nav {
        flex-direction: column;
    }
    
    .modal-btn-next,
    .modal-btn-prev,
    .modal-btn-finish {
        width: 100%;
        justify-content: center;
    }
    
    .journey-steps {
        gap: 0.3rem;
    }
    
    .journey-step {
        min-width: 60px;
        padding: 0.5rem;
    }
    
    .journey-arrow {
        display: none;
    }
    
    .home-cards {
        grid-template-columns: 1fr;
    }
    
    .page-title {
        font-size: 1.6rem;
    }
    
    .home-actions {
        flex-direction: column;
    }
    
    .btn-action {
        width: 100%;
        justify-content: center;
    }
}

/* ============================
   REGISTER MODAL
============================ */
.register-modal {
    max-width: 520px;
}

.register-step {
    display: none;
}

.register-step.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

.register-header {
    text-align: center;
    padding: 2rem 2rem 1rem;
    background: linear-gradient(135deg, rgba(47, 168, 79, 0.05) 0%, rgba(31, 111, 178, 0.05) 100%);
    border-bottom: 1px solid #f1f5f9;
}

.register-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--brand-green) 0%, var(--brand-blue) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.register-icon i {
    font-size: 2rem;
    color: white;
}

.register-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--brand-blue-strong);
    margin: 0 0 0.5rem;
}

.register-subtitle {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--brand-green-strong);
    margin: 0 0 0.5rem;
}

.register-desc {
    font-size: 0.95rem;
    color: var(--ink-700);
    margin: 0;
}

.register-form {
    padding: 1.5rem 2rem 2rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ink-700);
    margin-bottom: 0.5rem;
}

.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="tel"],
.form-group input[type="text"] {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--brand-green);
    box-shadow: 0 0 0 3px rgba(47, 168, 79, 0.15);
}

.register-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 1.5rem 0;
}

.progress-step {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--ink-700);
    transition: all 0.3s ease;
}

.progress-step.active {
    background: var(--brand-green);
    color: white;
}

.progress-line {
    width: 60px;
    height: 3px;
    background: #e2e8f0;
    border-radius: 2px;
}

.btn-register-next,
.btn-register-submit {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--brand-green) 0%, var(--brand-green-strong) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-register-next:hover,
.btn-register-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(47, 168, 79, 0.35);
}

.btn-register-prev {
    padding: 1rem 1.5rem;
    background: #f1f5f9;
    color: var(--ink-700);
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-register-prev:hover {
    background: #e2e8f0;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.form-actions .btn-register-prev {
    flex: 1;
}

.form-actions .btn-register-submit {
    flex: 2;
}

/* ID Type Selector */
.id-type-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.id-type-option {
    cursor: pointer;
}

.id-type-option input {
    display: none;
}

.id-type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0.5rem;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.id-type-option input:checked + .id-type-card {
    border-color: var(--brand-green);
    background: rgba(47, 168, 79, 0.1);
}

.id-type-card i {
    font-size: 1.8rem;
    color: var(--ink-700);
}

.id-type-option input:checked + .id-type-card i {
    color: var(--brand-green);
}

.id-type-card span {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ink-700);
    text-align: center;
}

/* Verification Method Selector */
.verification-method-selector {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.verification-option {
    cursor: pointer;
}

.verification-option input {
    display: none;
}

.verification-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0.5rem;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.verification-option input:checked + .verification-card {
    border-color: var(--brand-green);
    background: rgba(47, 168, 79, 0.1);
}

.verification-card i {
    font-size: 1.8rem;
    color: var(--ink-700);
}

.verification-option input:checked + .verification-card i {
    color: var(--brand-green);
}

.verification-card span {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ink-700);
    text-align: center;
}

/* Verification Input */
.verification-input {
    font-size: 1.5rem;
    letter-spacing: 0.5rem;
    text-align: center;
    font-weight: 700;
}

/* Resend Code */
.resend-code {
    text-align: center;
    margin-top: 1rem;
    color: var(--ink-500);
}

.resend-code a {
    color: var(--brand-green);
    font-weight: 600;
}

.resend-code a:hover {
    text-decoration: underline;
}

/* DOB Selector */
.dob-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.dob-selector select {
    width: 100%;
    padding: 0.85rem 0.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dob-selector select:focus {
    outline: none;
    border-color: var(--brand-green);
}

/* Upload Zone */
.upload-zone {
    border: 2px dashed #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
}

.upload-zone:hover {
    border-color: var(--brand-green);
    background: rgba(47, 168, 79, 0.05);
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.upload-content i {
    font-size: 2.5rem;
    color: var(--brand-green);
}

.upload-content p {
    margin: 0;
    font-weight: 600;
    color: var(--ink-700);
}

.upload-content span {
    font-size: 0.85rem;
    color: var(--ink-500);
}

.upload-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(47, 168, 79, 0.1);
    border-radius: 8px;
}

.upload-preview i {
    font-size: 2rem;
    color: var(--brand-green);
}

.upload-preview p {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ink-700);
}

.remove-file {
    font-size: 0.85rem;
    color: #dc3545;
    cursor: pointer;
    text-decoration: underline;
}

/* Security Badges */
.security-badges {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.security-badges span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    color: var(--ink-500);
}

.security-badges i {
    font-size: 1rem;
    color: var(--brand-green);
}

/* Register Success */
.register-success {
    text-align: center;
    padding: 3rem 2rem;
}

.success-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--brand-green) 0%, var(--brand-green-strong) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.success-icon i {
    font-size: 3rem;
    color: white;
}

.register-success h2 {
    font-size: 1.8rem;
    color: var(--brand-green-strong);
    margin: 0 0 1rem;
}

.register-success p {
    font-size: 1rem;
    color: var(--ink-700);
    margin: 0 0 2rem;
}

.btn-start-learning {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--brand-green) 0%, var(--brand-green-strong) 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-start-learning:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(47, 168, 79, 0.4);
}

/* Responsive Register */
@media (max-width: 768px) {
    .register-modal {
        max-width: 100%;
        margin: 1rem;
    }
    
    .register-header {
        padding: 1.5rem 1rem 1rem;
    }
    
    .register-form {
        padding: 1rem;
    }
    
    .id-type-selector,
    .dob-selector {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .security-badges {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
}

/* Login Modal */
.login-step {
    display: none;
}

.login-step.active {
    display: block;
}

.login-footer {
    text-align: center;
    margin-top: 1rem;
    color: var(--ink-500);
}

.login-footer a {
    color: var(--brand-green);
    font-weight: 600;
}

.login-footer a:hover {
    text-decoration: underline;
}

/* Verification Required Modal */
.verify-modal {
    max-width: 420px;
    text-align: center;
}

.verify-required-content {
    padding: 2.5rem 2rem;
}

.verify-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.verify-icon i {
    font-size: 2.5rem;
    color: white;
}

.verify-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ink-900);
    margin-bottom: 0.75rem;
}

.verify-text {
    color: var(--ink-600);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.verify-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.verify-option {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--brand-green) 0%, #259c4f 100%);
    color: white;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.verify-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(47, 168, 79, 0.35);
}

.verify-option i {
    font-size: 1.3rem;
}

.verify-help {
    margin-top: 1.5rem;
    color: var(--ink-500);
    font-size: 0.9rem;
}

.verify-help a {
    color: var(--brand-green);
    font-weight: 600;
}

.verify-help a:hover {
    text-decoration: underline;
}

/* ============================
   REWARDS PAGE
============================ */
.rewards-header {
    margin-bottom: 2rem;
}

.rewards-hero {
    background: radial-gradient(circle at top right, var(--brand-green) 0%, var(--brand-blue-strong) 100%);
    border-radius: 24px;
    padding: 3rem;
    color: white;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    animation: fadeInDown 0.8s ease;
}

.rewards-hero::after {
    content: '💰';
    position: absolute;
    right: -20px;
    bottom: -20px;
    font-size: 15rem;
    opacity: 0.1;
    transform: rotate(-15deg);
}

.hero-balance-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.hero-balance-value {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.hero-balance-value span {
    font-size: 1.5rem;
    opacity: 0.8;
}

.hero-balance-usd {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    font-weight: 600;
}

.rewards-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.stat-card {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    box-shadow: var(--shadow-soft);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--brand-green);
}

.stat-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.stat-icon.locked { background: #fef3c7; color: #d97706; }
.stat-icon.unlocked { background: #dcfce7; color: #166534; }
.stat-icon.withdraw { background: #fee2e2; color: #991b1b; }

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--ink-700);
    font-weight: 600;
}

.stat-value {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--ink-900);
}

.history-card {
    background: white; 
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    padding: 2rem;
    border: 1px solid #e2e8f0;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.history-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--ink-900);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.history-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 0.8rem;
}

.history-tr {
    background: #f8fafc;
    border-radius: 16px;
    transition: transform 0.2s ease, background 0.2s ease;
}

.history-tr:hover {
    background: #f1f5f9;
    transform: scale(1.01);
}

.history-td {
    padding: 1.2rem;
    border: none;
}

.history-td:first-child { border-radius: 16px 0 0 16px; }
.history-td:last-child { border-radius: 0 16px 16px 0; }

.activity-box {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.activity-icon-rounded {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    background: rgba(47, 168, 79, 0.1);
    color: var(--brand-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.activity-info h6 {
    margin: 0;
    font-weight: 800;
    color: var(--ink-900);
    font-size: 1rem;
}

.activity-info span {
    font-size: 0.85rem;
    color: var(--ink-500);
}

.status-pill {
    display: inline-flex;
    padding: 0.4rem 1rem;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.status-completed { background: #dcfce7; color: #166534; }
.status-pending { background: #fef3c7; color: #d97706; }

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 992px) {
    .rewards-stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .rewards-hero { padding: 2rem; }
    .hero-balance-value { font-size: 3rem; }
    .rewards-stats-grid { grid-template-columns: 1fr; }
    .history-card { padding: 1.5rem; }
    .history-tr { display: flex; flex-direction: column; margin-bottom: 1rem; }
    .history-td { padding: 0.5rem 1rem; }
    .history-td:first-child { padding-top: 1rem; border-radius: 16px 16px 0 0; }
    .history-td:last-child { padding-bottom: 1rem; border-radius: 0 0 16px 16px; text-align: left !important; }
}

/* ============================
   PRICING / SUBSCRIPTIONS
============================ */
.pricing-page {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.pricing-header {
    text-align: center;
    margin-bottom: 4rem;
}

.pricing-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 0 0.5rem;
    color: #1a1a1a;
    background: none;
    -webkit-text-fill-color: initial;
    text-shadow: none;
}

.pricing-subtitle {
    font-size: 1.15rem;
    color: #666;
    font-weight: 500;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 5rem;
}

.pricing-card {
    background: #fdfdfd;
    border-radius: 12px;
    padding: 2.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid #e1e1e1;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.plan-icon-top {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.plan-name {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: #333;
}

.plan-divider {
    width: 100%;
    height: 1px;
    background: #eee;
    margin: 1.5rem 0;
}

.plan-tagline {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 0;
    line-height: 1.5;
}

.plan-tagline-italic {
    font-style: italic;
    font-weight: 700;
    font-size: 1rem;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    width: 100%;
    text-align: left;
}

.plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
    color: #444;
}

.feature-dot {
    font-size: 1rem;
    margin-top: 0.2rem;
    color: #388e3c;
}

.btn-plan {
    width: 100%;
    padding: 0.8rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: auto;
    border: 2px solid #ccc;
    background: #fff;
    color: #333;
}

.btn-gray:hover { background: #f5f5f5; border-color: #999; }

/* Plan Individual (Green) */
.plan-individual {
    background: #3e8e41; /* Green from Image */
    color: white;
    border-color: #2e7031;
}

.plan-individual .plan-name,
.plan-individual .plan-tagline-italic,
.plan-individual .plan-features li {
    color: white;
}

.plan-individual .plan-divider { background: rgba(255, 255, 255, 0.2); }
.plan-individual .feature-dot { color: white; }

.btn-green-outline {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.btn-green-outline:hover {
    background: white;
    color: #3e8e41;
}

/* Plan Institutional (Blue) */
.plan-institutional {
    background: #1e52a4; /* Blue from Image */
    color: white;
    border-color: #153a74;
}

.plan-institutional .plan-name,
.plan-institutional .plan-tagline,
.plan-institutional .plan-features li {
    color: white;
}

.plan-institutional .plan-divider { background: rgba(255, 255, 255, 0.2); }
.plan-institutional .feature-dot { color: white; }

.btn-blue-outline {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.btn-blue-outline:hover {
    background: white;
    color: #1e52a4;
}

/* Institutional Pricing Table Section */
.institutional-pricing-section {
    max-width: 900px;
    margin: 0 auto 5rem;
    text-align: center;
}

.section-title {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: #333;
}

.table-container {
    overflow-x: auto;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
}

.pricing-table th {
    background: #f8f9fa;
    color: #444;
    font-weight: 700;
    padding: 1.25rem;
    text-align: center;
    border-bottom: 2px solid #ddd;
}

.pricing-table td {
    padding: 1.25rem;
    border-bottom: 1px solid #eee;
    color: #555;
    font-size: 0.95rem;
}

.pricing-table tr:hover {
    background: #fdfdfd;
}

.pricing-example {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    margin: 2rem 0;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* Bottom Actions Area */
.pricing-bottom {
    text-align: center;
    padding-top: 3rem;
    border-top: 1px solid #eee;
}

.bottom-tagline {
    font-size: 1.1rem;
    color: #444;
    font-weight: 700;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bottom-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.btn-bottom {
    padding: 1.2rem 2.8rem;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    color: white;
    transition: all 0.3s ease;
    min-width: 280px;
}

.btn-green {
    background: #3e8e41;
}

.btn-green:hover {
    background: #2e7031;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(62, 142, 65, 0.3);
}

.btn-blue {
    background: #1e52a4;
}

.btn-blue:hover {
    background: #153a74;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(30, 82, 164, 0.3);
}

@media (max-width: 992px) {
    .pricing-grid { grid-template-columns: 1fr 1fr; }
    .bottom-buttons { flex-direction: column; align-items: center; }
}

@media (max-width: 650px) {
    .pricing-grid { grid-template-columns: 1fr; }
    .pricing-title { font-size: 1.8rem; }
    .btn-bottom { width: 100%; min-width: unset; }
}

/* ============================
   MINING WIDGET (SIDEBAR)
============================ */
.mining-widget {
    margin: 1.5rem 1rem;
    padding: 1.25rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.mw-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.85rem;
}

.mw-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.4rem;
    box-shadow: 0 4px 10px rgba(255, 215, 0, 0.3);
}

.mw-title-wrap {
    flex: 1;
}

.mw-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mw-value {
    display: block;
    font-size: 1rem;
    font-weight: 800;
    color: #1e293b;
}

.mw-value small {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-left: 2px;
}

.mw-progress {
    height: 8px;
    background: #e2e8f0;
    border-radius: 99px;
    overflow: hidden;
    margin-bottom: 0.6rem;
}

.mw-bar {
    height: 100%;
    background: linear-gradient(90deg, #2FA84F 0%, #34d399 100%);
    border-radius: 99px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.mw-tip {
    font-size: 0.7rem;
    color: #94a3b8;
    margin: 0;
    font-style: italic;
}

/* ============================
   LESSON VIEW (UNIT)
============================ */
.lesson-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1.5rem 6rem;
}

.lesson-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    gap: 2rem;
    flex-wrap: wrap;
}

.lh-left {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.btn-back-lesson {
    width: 44px;
    height: 44px;
    background: white;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    text-decoration: none;
    font-size: 1.4rem;
    transition: all 0.2s;
}

.btn-back-lesson:hover {
    border-color: #1F6FB2;
    color: #1F6FB2;
    transform: translateX(-3px);
}

.lh-chap {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: #2FA84F;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
}

.lh-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.lesson-prog-wrap {
    min-width: 200px;
}

.lpw-text {
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 0.5rem;
    text-align: right;
}

.lpw-bar {
    height: 8px;
    background: #e2e8f0;
    border-radius: 99px;
    overflow: hidden;
}

.lpw-fill {
    height: 100%;
    background: linear-gradient(90deg, #1F6FB2 0%, #2FA84F 100%);
    border-radius: 99px;
}

/* Tabs */
.lesson-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
    background: #f1f5f9;
    padding: 0.4rem;
    border-radius: 14px;
}

.l-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.9rem;
    background: transparent;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
}

.l-tab.active {
    background: white;
    color: #1F6FB2;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.l-tab i {
    font-size: 1.4rem;
}

/* Content Pane */
.tab-pane {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-pane.active {
    display: block;
}

.media-card {
    background: white;
    border-radius: 24px;
    padding: 2.5rem;
    border: 1px solid #e1e1e1;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
}

/* Podcast Card */
.podcast-card {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.pc-art {
    width: 140px;
    height: 140px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: #1F6FB2;
}

.pc-info h3 { font-size: 1.4rem; font-weight: 800; margin: 0 0 0.5rem; }
.pc-info p { color: #64748b; font-size: 1rem; margin-bottom: 1.5rem; }

.simple-audio-player {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: #f8fafc;
    padding: 1rem 1.5rem;
    border-radius: 50px;
}

.sap-play {
    width: 44px;
    height: 44px;
    background: #1F6FB2;
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
}

.sap-wave {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 4px;
}

.wave-bar {
    width: 3px;
    background: #cbd5e1;
    border-radius: 3px;
}

.sap-time { font-size: 0.85rem; font-weight: 700; color: #64748b; }

/* Video Card */
.vc-frame {
    aspect-ratio: 16 / 9;
    background: #0f172a;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.vc-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.4);
    gap: 1rem;
}

.vc-placeholder i { font-size: 5rem; }

.vc-info h3 { font-size: 1.4rem; font-weight: 800; margin: 0 0 0.5rem; }
.vc-info p { color: #64748b; font-size: 1rem; }

/* Reading Card */
.reading-article {
    line-height: 1.8;
}

.reading-article h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: 1rem; }
.reading-article p { font-size: 1.1rem; color: #334155; margin-bottom: 1.5rem; }
.reading-article blockquote {
    border-left: 5px solid #2FA84F;
    padding: 1rem 2rem;
    background: #f0fdf4;
    font-style: italic;
    font-size: 1.15rem;
    margin: 2.5rem 0;
    border-radius: 0 12px 12px 0;
}

/* Lesson Footer */
.lesson-footer {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 4rem);
    max-width: 900px;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    padding: 1.2rem 2rem;
    border-radius: 100px;
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    gap: 2rem;
}

.lf-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 600;
}

.lf-info i { font-size: 1.2rem; color: #1F6FB2; }

.btn-take-exam {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    border: none;
    background: linear-gradient(90deg, #1F6FB2 0%, #2FA84F 100%);
    color: white;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(31, 111, 178, 0.3);
}

.btn-take-exam:hover {
    transform: translateY(-3px) scale(1.02);
    filter: brightness(1.1);
    box-shadow: 0 15px 30px rgba(31, 111, 178, 0.4);
}

@media (max-width: 768px) {
    .lesson-footer {
        flex-direction: column;
        border-radius: 20px;
        bottom: 1rem;
        gap: 1rem;
        padding: 1.5rem;
    }
    .btn-take-exam { width: 100%; justify-content: center; }
    .podcast-card { flex-direction: column; text-align: center; }
}
