/* ============================================================
   USER PANEL – WITH VIDEO BACKGROUND (like login.php)
   ============================================================ */

:root {
    --primary: #f4a261;
    --secondary: #ff8c42;
    --accent: #d4af37;
    --bg-card: rgba(0, 0, 0, 0.25);
    --border-card: rgba(255, 255, 245, 0.2);
    --text-primary: #fff6e8;
    --text-secondary: #f9e6cf;
    --text-muted: rgba(255, 255, 245, 0.6);
    --danger: #e74c3c;
    --success: #4caf50;
    --info: #4fc3f7;
    --radius-lg: 48px;
    --radius-md: 24px;
    --radius-sm: 16px;
    --transition: 0.3s ease;
    --font: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Cinzel', serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font);
    color: var(--text-primary);
    min-height: 100vh;
    padding-top: 80px;
    line-height: 1.5;
    position: relative;
}

/* ========== VIDEO BACKGROUND STYLES (exactly as login.php) ========== */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}
.video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}
.overlay-mist {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 20%, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.35) 100%);
    z-index: -1;
    pointer-events: none;
}
.sikh-bg-motif {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 140px;
    height: 140px;
    opacity: 0.5;
    pointer-events: none;
    z-index: -1;
}
.sikh-bg-motif svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 4px rgba(244, 162, 97, 0.6));
}
.ek-onkar-bg {
    position: fixed;
    top: 8%;
    left: 4%;
    font-size: 4.8rem;
    font-weight: 800;
    font-family: 'Inter', sans-serif;
    letter-spacing: 6px;
    color: rgba(255, 215, 140, 0.35);
    pointer-events: none;
    z-index: -1;
    white-space: nowrap;
    transform: rotate(-6deg);
    text-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
@media (max-width: 550px) {
    .sikh-bg-motif { width: 90px; height: 90px; bottom: 1rem; right: 1rem; opacity: 0.45; }
    .ek-onkar-bg { font-size: 2.5rem; top: 3%; left: 3%; }
}

/* ========== HEADER (glass, fixed) ========== */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 245, 0.15);
    padding: 0 1.5rem;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.home-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #0f0f1a;
    padding: 0.4rem 1.2rem;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(244, 162, 97, 0.3);
    white-space: nowrap;
}

.home-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(244, 162, 97, 0.5);
}

.site-title {
    font-size: 1.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    white-space: nowrap;
    font-family: var(--font-heading);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.3rem;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-links {
    display: flex;
    gap: 0.3rem;
    flex-wrap: wrap;
}

.nav-links a {
    color: rgba(255, 255, 245, 0.8);
    text-decoration: none;
    padding: 0.4rem 0.9rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
    background: rgba(244, 162, 97, 0.15);
    color: var(--primary);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 245, 0.8);
    flex-wrap: wrap;
}

.user-menu {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.user-menu img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--primary);
}

.user-icon {
    font-size: 1.4rem;
    color: var(--primary);
}

.dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 245, 0.2);
    border-radius: 16px;
    padding: 0.5rem 0;
    min-width: 160px;
    display: none;
    z-index: 1001;
}

.dropdown.show {
    display: block;
}

.dropdown a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.dropdown a:hover {
    background: rgba(244, 162, 97, 0.1);
    color: var(--primary);
}

.badge-pill {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #0f0f1a;
    padding: 0.2rem 0.9rem;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255,255,245,0.3);
    white-space: nowrap;
}

.search-toggle {
    background: none;
    border: none;
    color: rgba(255, 255, 245, 0.8);
    font-size: 1.1rem;
    cursor: pointer;
}

.search-box {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    padding: 0.5rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 245, 0.1);
}

.search-box.active {
    display: block;
}

.search-box input {
    width: 100%;
    padding: 0.6rem;
    background: rgba(255, 255, 245, 0.08);
    border: 1px solid rgba(255, 255, 245, 0.2);
    border-radius: 40px;
    color: #fff;
    font-family: inherit;
}

/* ========== MAIN CONTAINER ========== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ========== GLASS CARDS ========== */
.card {
    background: rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 245, 0.25);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    font-family: var(--font-heading);
    background: linear-gradient(135deg, #fff5e6, #fad19e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 245, 0.2);
    border-radius: 24px;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-3px);
    border-color: rgba(244, 162, 97, 0.5);
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.3rem;
}

/* ========== BUTTONS (glassy gradient) ========== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(212, 138, 60, 0.25);
    backdrop-filter: blur(4px);
    color: #fff6e8;
    border: 1px solid rgba(255, 220, 150, 0.6);
    padding: 0.6rem 1.5rem;
    border-radius: 44px;
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    font-family: inherit;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(105deg, rgba(212, 138, 60, 0.85), rgba(244, 162, 97, 0.9));
    transition: left 0.5s ease;
    z-index: -1;
}

.btn:hover::before {
    left: 0;
}

.btn:hover {
    color: #1c1c2a;
    border-color: transparent;
    transform: translateY(-2px);
}

.btn:disabled {
    opacity: 0.5;
    pointer-events: none;
}

.btn-sm {
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
}

.btn-outline {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 245, 215, 0.5);
}

.btn-danger {
    background: rgba(231, 76, 60, 0.3);
    border-color: #e74c3c;
}

.btn-success {
    background: rgba(76, 175, 80, 0.3);
    border-color: #4caf50;
}

.btn-edit {
    background: rgba(79, 195, 247, 0.3);
    border-color: #4fc3f7;
}

/* ========== FORMS ========== */
label {
    display: block;
    margin-top: 1.2rem;
    font-weight: 600;
    color: #fff2e0;
    font-size: 0.85rem;
}

.required {
    color: var(--danger);
}

input,
textarea,
select {
    width: 100%;
    padding: 0.8rem 1rem;
    margin-top: 0.4rem;
    background: rgba(10, 12, 22, 0.28);
    border: 1px solid rgba(255, 245, 215, 0.5);
    border-radius: 40px;
    color: white;
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(244, 162, 97, 0.4);
    background: rgba(10, 12, 22, 0.5);
}

select option {
    background: #1e1e2a;
    color: white;
}

textarea {
    border-radius: 24px;
    resize: vertical;
}

.row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 600px) {
    .row {
        grid-template-columns: 1fr;
    }
}

/* ========== TABLES ========== */
.table-wrapper {
    background: rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 245, 0.2);
    border-radius: 24px;
    overflow-x: auto;
    margin-bottom: 2rem;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 0.9rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 245, 0.1);
    white-space: nowrap;
}

th {
    background: rgba(255, 255, 245, 0.05);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background: rgba(255, 255, 245, 0.02);
}

/* ========== BADGES ========== */
.badge-stat {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-stat.passed {
    background: rgba(76, 175, 80, 0.2);
    color: #81c784;
}

.badge-stat.failed {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
}

.badge-stat.active {
    background: rgba(76, 175, 80, 0.2);
    color: #81c784;
}

.badge-stat.upcoming {
    background: rgba(255, 152, 0, 0.2);
    color: #ff9800;
}

.badge-stat.past {
    background: rgba(158, 158, 158, 0.2);
    color: #9e9e9e;
}

/* ========== MODAL ========== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: #1a1a2e;
    border-radius: 32px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    border: 1px solid rgba(255, 255, 245, 0.2);
    backdrop-filter: blur(12px);
}

.modal h3 {
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.modal .btn {
    margin-right: 0.5rem;
}

/* ========== PAGINATION ========== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    padding: 0.5rem 1rem;
    border-radius: 40px;
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 245, 0.2);
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.pagination a:hover {
    background: rgba(244, 162, 97, 0.2);
    border-color: var(--primary);
}

.pagination .current {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #0f0f1a;
    font-weight: 600;
    border-color: transparent;
}

/* ========== MESSAGES ========== */
.msg {
    padding: 0.8rem 1.2rem;
    border-radius: 40px;
    margin-bottom: 1rem;
    font-weight: 500;
    backdrop-filter: blur(8px);
    background: rgba(0, 0, 0, 0.3);
}

.msg.success {
    background: rgba(76, 175, 80, 0.15);
    border-left: 4px solid var(--success);
    color: #a5d6a7;
}

.msg.error {
    background: rgba(231, 76, 60, 0.15);
    border-left: 4px solid var(--danger);
    color: #ef9a9a;
}

/* ========== FOOTER ========== */
.site-footer {
    text-align: center;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
    border-top: 1px solid rgba(255, 255, 245, 0.1);
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 3rem;
}

.site-footer a {
    color: var(--primary);
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

/* ========== PARCHMENT VARIANT (quiz pages) ========== */
.parchment-card {
    background: linear-gradient(135deg, #fef7e0 0%, #f9eac3 40%, #f5e0b1 80%, #eed9a8 100%);
    border: 8px double #8b5a2b;
    border-radius: 12px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.6), inset 0 0 80px rgba(139, 69, 19, 0.2);
    padding: 2.5rem;
    color: #3e2c1b;
    position: relative;
    z-index: 1;
}

.parchment-card::after {
    content: "";
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 1px solid rgba(139, 69, 19, 0.3);
    border-radius: 4px;
    pointer-events: none;
}

.parchment-card h1,
.parchment-card h2 {
    font-family: 'Cinzel', serif;
    color: #5c3a1e;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
    .site-header {
        padding: 0.5rem 1rem;
        height: auto;
    }
    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(12px);
        border-radius: 0 0 24px 24px;
        padding: 0.5rem;
        margin-top: 0.5rem;
    }
    .nav-links.show {
        display: flex;
    }
    .hamburger {
        display: flex;
    }
    .header-left {
        flex: 1;
        justify-content: space-between;
    }
    .header-right {
        width: 100%;
        justify-content: flex-end;
    }
    body {
        padding-top: 140px;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .site-header {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    .header-left,
    .header-right {
        width: 100%;
        justify-content: center;
    }
    .header-right {
        margin-top: 0.5rem;
    }
    body {
        padding-top: 180px;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .btn {
        width: 100%;
        justify-content: center;
    }
    .row {
        grid-template-columns: 1fr;
    }
}

/* ========== VIDEO BACKGROUND STYLES (exactly as login.php) ========== */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}
.video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}
.overlay-mist {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 20%, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.35) 100%);
    z-index: -1;
    pointer-events: none;
}
.sikh-bg-motif {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 140px;
    height: 140px;
    opacity: 0.5;
    pointer-events: none;
    z-index: -1;
}
.sikh-bg-motif svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 4px rgba(244, 162, 97, 0.6));
}
.ek-onkar-bg {
    position: fixed;
    top: 8%;
    left: 4%;
    font-size: 4.8rem;
    font-weight: 800;
    font-family: 'Inter', sans-serif;
    letter-spacing: 6px;
    color: rgba(255, 215, 140, 0.35);
    pointer-events: none;
    z-index: -1;
    white-space: nowrap;
    transform: rotate(-6deg);
    text-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
@media (max-width: 550px) {
    .sikh-bg-motif { width: 90px; height: 90px; bottom: 1rem; right: 1rem; opacity: 0.45; }
    .ek-onkar-bg { font-size: 2.5rem; top: 3%; left: 3%; }
}

/* ========== LEADERBOARD SPECIFIC STYLES ========== */

/* Animated gradient orbs (behind content) */
.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.35;
    animation: floatOrb 20s infinite alternate ease-in-out;
}
.orb-1 { width: 60vw; height: 60vw; background: #f4a261; top: -20vh; left: -20vw; animation-duration: 25s; }
.orb-2 { width: 50vw; height: 50vw; background: #e76f51; bottom: -30vh; right: -20vw; animation-duration: 30s; animation-delay: 2s; }
.orb-3 { width: 45vw; height: 45vw; background: #ffb347; top: 40%; right: 5%; animation-duration: 18s; }
@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); opacity: 0.3; }
    100% { transform: translate(8%, 12%) scale(1.15); opacity: 0.5; }
}

/* Khanda motif */
.khanda-bg {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 110px;
    height: 110px;
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}
.khanda-bg svg { width: 100%; height: 100%; filter: drop-shadow(0 0 3px rgba(244, 162, 97, 0.5)); }

/* Leaderboard container */
.lb-container {
    max-width: 650px;
    width: 90%;
    margin: 2rem auto;
    position: relative;
    z-index: 2;
}

/* Tier card */
.tier-card {
    background: rgba(0, 0, 0, 0.35);
    border-radius: 36px;
    padding: 1rem 1.2rem;
    margin-bottom: 1.8rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: space-between;
    border: 1px solid rgba(255, 215, 140, 0.2);
}
.tier-left { display: flex; align-items: center; gap: 1rem; }
.tier-rank-circle { width: 65px; height: 65px; position: relative; }
.tier-info h4 { font-size: 1rem; font-weight: 600; margin: 0; }
.tier-info p { font-size: 0.8rem; color: #ddd0bc; margin: 0; }
.tier-badge {
    background: rgba(244, 162, 97, 0.2);
    border-radius: 40px;
    padding: 0.4rem 1rem;
    text-align: center;
}
.tier-badge span { font-weight: 700; font-size: 1rem; }

/* Period tabs */
.period-tabs {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}
.period-tab {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 140, 0.3);
    padding: 0.45rem 1.1rem;
    border-radius: 40px;
    color: #fef2e2;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}
.period-tab.active, .period-tab:hover {
    background: #f4a261;
    color: #12121c;
    border-color: #f4a261;
    transform: translateY(-2px);
}

/* Hero rank 1 */
.hero-rank-1 {
    background: linear-gradient(135deg, rgba(244, 162, 97, 0.15), rgba(0, 0, 0, 0.2));
    border-radius: 48px;
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 215, 140, 0.3);
}
.hero-avatar-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto;
}
.hero-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f4a261;
    background: #2a2a3a;
}
.hero-crown {
    position: absolute;
    top: -28px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2.2rem;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
}
.hero-rank-badge {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: #f4a261;
    color: #12121c;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    border: 2px solid #fff3e0;
}
.hero-name { font-size: 1.3rem; font-weight: 700; margin-top: 0.8rem; }
.hero-pill {
    background: #f4a261;
    color: #12121c;
    display: inline-block;
    padding: 0.3rem 1.2rem;
    border-radius: 40px;
    font-weight: 600;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

/* Leaderboard list */
.lb-list {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    margin-bottom: 1.5rem;
}
.lb-item {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(4px);
    border-radius: 60px;
    padding: 0.6rem 1rem;
    transition: all 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.lb-item:hover {
    transform: translateX(5px);
    background: rgba(244, 162, 97, 0.1);
    border-color: rgba(244, 162, 97, 0.3);
}
.is-current-user {
    border: 1.5px solid #f4a261;
    background: rgba(244, 162, 97, 0.15);
}
.item-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1rem;
    background: #333;
}
.item-info { flex: 1; }
.item-name { font-weight: 600; font-size: 0.95rem; }
.item-subtext { font-size: 0.7rem; color: #cabfa5; }
.you-badge {
    background: #f4a261;
    color: #12121c;
    padding: 0.1rem 0.5rem;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 600;
    margin-left: 0.4rem;
}
.item-rank {
    width: 34px;
    height: 34px;
    background: rgba(255, 215, 140, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

/* Quiz section cards */
.quiz-section { margin-top: 2rem; }
.quiz-card {
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(4px);
    border-radius: 32px;
    padding: 1.2rem;
    margin-bottom: 1.2rem;
    border: 1px solid rgba(255, 215, 140, 0.2);
}
.quiz-card h3 {
    color: #f4a261;
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
}
.quiz-user-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(244, 162, 97, 0.1);
    border-radius: 28px;
    padding: 0.5rem 1rem;
    margin-top: 0.8rem;
    font-size: 0.8rem;
}

/* Progress chart container */
.progress-chart {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 28px;
    padding: 0.5rem;
    margin-bottom: 1.8rem;
    height: 180px;
}

/* Footer buttons (if needed) */
.footer-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0 1rem;
    flex-wrap: wrap;
}

/* ========== PROFILE PAGE STYLES ========== */

.profile-container {
    max-width: 1100px;
    width: 90%;
    margin: 2rem auto 3rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.profile-card {
    background: var(--bg-card);
    backdrop-filter: blur(18px);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: clamp(1.8rem, 4vw, 2.5rem);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.profile-top {
    display: flex;
    align-items: center;
    gap: clamp(1.5rem, 4vw, 2.5rem);
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.avatar-img, .avatar-placeholder {
    width: clamp(100px, 18vw, 140px);
    height: clamp(100px, 18vw, 140px);
    border-radius: 50%;
    border: 4px solid var(--primary);
    box-shadow: 0 0 30px rgba(255,179,71,0.35);
    object-fit: cover;
}

.avatar-placeholder {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 700;
    color: #0f0f1a;
}

.profile-name {
    font-size: clamp(1.8rem, 5vw, 2.4rem);
    font-weight: 700;
}

.badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 1.3rem;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.9rem;
}

.pill-badge {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #0f0f1a;
}

.pill-points {
    background: rgba(255,179,71,0.12);
    border: 1px solid rgba(255,179,71,0.3);
    color: var(--primary);
}

.completeness-wrapper {
    text-align: center;
}

.completeness-ring {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: conic-gradient(var(--primary) var(--completeness, 0%), rgba(255,255,255,0.08) var(--completeness, 0%));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 0 auto 0.4rem;
}

.completeness-ring::before {
    content: "";
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #0a0a14;
    position: absolute;
}

.completeness-value {
    position: relative;
    z-index: 1;
    font-weight: 700;
    color: var(--primary);
}

.detail-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (max-width: 700px) {
    .detail-cards {
        grid-template-columns: 1fr;
    }
}

.detail-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-md);
    padding: 1.5rem;
}

.detail-card h3 {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary);
    margin-bottom: 1rem;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    margin-bottom: 0.9rem;
    color: var(--text-secondary);
}

.edit-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.edit-tabs .tab {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-secondary);
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 500;
    transition: 0.3s;
}

.edit-tabs .tab.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #0f0f1a;
    border-color: transparent;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 2.8rem;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--primary);
    font-size: 1.2rem;
}

.flash-msg {
    padding: 0.8rem 1.2rem;
    border-radius: 14px;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.flash-error {
    background: rgba(231,76,60,0.2);
    color: #e74c3c;
}

.flash-success {
    background: rgba(129,199,132,0.2);
    color: #81C784;
}

/* ==================== QUIZ STYLES ==================== */
/* (Previously inline in take_quiz.php) */

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body.quiz-body {
    background: #2b1e10 url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" opacity="0.08"><path d="M20 20 L80 20 L80 80 L20 80 Z" fill="none" stroke="%23d4af37" stroke-width="0.5"/><circle cx="50" cy="50" r="28" fill="none" stroke="%23d4af37" stroke-width="0.3"/><path d="M50 20 L50 80 M20 50 L80 50" stroke="%23d4af37" stroke-width="0.2"/></svg>') repeat;
    background-size: 120px;
    font-family: 'Cormorant Garamond', serif;
    padding-top: 90px;
    padding-bottom: 60px;
    position: relative;
}
.parchment {
    max-width: 950px; width: 90%; margin: 1rem auto;
    background: linear-gradient(135deg, #fef7e0, #eed9a8);
    border: 8px double #8b5a2b;
    border-radius: 28px;
    padding: 1.8rem;
}
.quiz-page h1 { font-family: 'Cinzel', serif; text-align: center; color: #5c3a1e; margin-bottom: 0.5rem; }
.quiz-meta { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.quiz-meta div { background: rgba(139,69,19,0.15); border: 1px solid #d4af37; border-radius: 40px; padding: 0.2rem 1rem; font-size: 0.85rem; color: #3e2c1b; }
.quiz-meta i { color: #d4af37; margin-right: 0.3rem; }
.style-selector { display: flex; gap: 1.5rem; justify-content: center; margin: 2rem 0; flex-wrap: wrap; }
.style-card { background: rgba(255,252,235,0.9); border: 2px solid #d4af37; border-radius: 24px; padding: 1.5rem; width: 200px; text-align: center; cursor: pointer; transition: 0.3s; }
.style-card:hover { transform: translateY(-5px); background: #fef7e0; }
.style-card i { font-size: 2.5rem; color: #d4af37; }
.style-card h3 { font-family: 'Cinzel', serif; margin: 0.5rem 0; color: #3e2c1b; }
.style-card p { color: #5c3a1e; font-size: 0.85rem; }
.quiz-container { display: none; }
.progress-bar { height: 6px; background: #e2cba4; border-radius: 4px; margin: 0.5rem 0; }
.progress-fill { width: 0%; height: 100%; background: #d4af37; transition: width 0.3s; }
.nav-buttons { display: flex; justify-content: space-between; gap: 1rem; margin: 1rem 0; }
.nav-btn { background: #d4af37; border: none; padding: 0.6rem; border-radius: 40px; font-weight: bold; cursor: pointer; flex: 1; text-align: center; color: #2b1e10; }
.submit-area { text-align: center; margin-top: 1rem; }
.submit-btn { background: linear-gradient(180deg, #d4af37, #b8860b); border: 2px solid #8b5a2b; padding: 0.8rem 2rem; border-radius: 50px; font-weight: bold; cursor: pointer; width: 100%; color: #2b1e10; }
.carousel-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 1rem; padding: 0.5rem; scrollbar-width: none; }
.carousel-track::-webkit-scrollbar { display: none; }
.question-card { flex: 0 0 90%; scroll-snap-align: start; background: #fffaf0; border: 2px solid #d4af37; border-radius: 28px; padding: 1.5rem; }
.question-text { font-size: 1.3rem; font-weight: 600; margin-bottom: 1.2rem; color: #3e2c1b; }
.options { display: flex; flex-direction: column; gap: 0.7rem; }
.option { background: #fef7e0; border: 1px solid #deb887; border-radius: 60px; padding: 0.7rem 1rem; cursor: pointer; display: flex; align-items: center; gap: 0.8rem; color: #3e2c1b; }
.option.selected { background: #d4af37; font-weight: bold; }
.option.disabled { opacity: 0.6; pointer-events: none; }
.dots { display: flex; justify-content: center; gap: 0.5rem; margin: 1rem 0; }
.dot { width: 8px; height: 8px; background: #c0a070; border-radius: 50%; cursor: pointer; }
.dot.active { background: #d4af37; width: 20px; border-radius: 4px; }
.dot.marked { border: 2px solid #d4af37; background: transparent; width: 12px; height: 12px; }
.chat-messages { height: 50vh; overflow-y: auto; padding: 0.5rem; display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1rem; background: rgba(255,252,235,0.5); border-radius: 20px; }
.message { display: flex; gap: 0.6rem; }
.bot-message { justify-content: flex-start; }
.user-message { justify-content: flex-end; }
.avatar { width: 32px; height: 32px; background: #d4af37; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #2b1e10; }
.bubble { max-width: 75%; padding: 0.6rem 1rem; border-radius: 20px; font-size: 1rem; background: #fffaf0; border: 1px solid #deb887; color: #3e2c1b; }
.user-message .bubble { background: #d4af37; color: #2b1e10; }
.chat-options { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.5rem; }
.chat-option { background: #f5e0b1; border: 1px solid #8b5a2b; border-radius: 40px; padding: 0.4rem 1rem; cursor: pointer; color: #3e2c1b; }
.chat-option:disabled { opacity: 0.5; cursor: not-allowed; }
.back-btn { background: #d4af37; border: none; padding: 0.4rem 1rem; border-radius: 40px; margin-bottom: 0.5rem; cursor: pointer; color: #2b1e10; }
.back-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Review button */
.review-btn {
    background: transparent;
    border: 1px solid #d4af37;
    color: #d4af37;
    font-size: 0.85rem;
    padding: 0.3rem 0.9rem;
    border-radius: 20px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.8rem;
    transition: all 0.2s;
    font-family: 'Cinzel', serif;
    font-weight: 600;
    user-select: none;
}
.review-btn:hover { background: rgba(212,175,55,0.15); }
.review-btn.marked { background: #d4af37; color: #2b1e10; border-color: #d4af37; }

/* Overlay & Warning Modal */
#startOverlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(30,10,0,0.95); z-index: 9999;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: #d4af37; font-family: 'Cinzel', serif; text-align: center; transition: opacity 0.5s;
}
#startOverlay.hidden { opacity: 0; pointer-events: none; }
#startOverlay h2 { font-size: 2.5rem; margin-bottom: 1rem; }
#startOverlay button {
    font-family: 'Cinzel', serif; font-weight: 700; font-size: 1.5rem;
    background: #d4af37; color: #2b1e10; border: none;
    padding: 1rem 2.5rem; border-radius: 50px; cursor: pointer;
    margin-top: 2rem; box-shadow: 0 0 20px rgba(212,175,55,0.6);
}
.warning-modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8); z-index: 10000;
    display: none; justify-content: center; align-items: center; text-align: center;
}
.warning-modal.active { display: flex; }
.warning-card {
    background: #fef7e0; color: #3e2c1b; padding: 2rem;
    border-radius: 20px; border: 3px solid #d4af37;
    max-width: 400px; width: 90%; font-family: 'Cormorant Garamond', serif;
}
.warning-card h3 { color: #b8860b; margin-bottom: 1rem; }
.warning-card button {
    background: #d4af37; color: #2b1e10; border: none;
    padding: 0.5rem 1.5rem; border-radius: 30px; font-weight: bold; cursor: pointer; margin-top: 1rem;
}

/* Custom Confirmation Modal */
.custom-confirm-modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.75); backdrop-filter: blur(6px);
    z-index: 20000; display: none; justify-content: center; align-items: center;
}
.custom-confirm-modal.active { display: flex; }
.confirm-card {
    background: linear-gradient(135deg, rgba(254,247,224,0.95), rgba(237,217,168,0.95));
    border: 3px solid #d4af37; border-radius: 24px;
    padding: 2.5rem 2rem; max-width: 400px; width: 90%;
    text-align: center; box-shadow: 0 20px 40px rgba(0,0,0,0.6), 0 0 30px rgba(212,175,55,0.3);
    font-family: 'Cormorant Garamond', serif; color: #3e2c1b;
}
.confirm-icon { font-size: 3rem; color: #d4af37; margin-bottom: 1rem; }
.confirm-card h3 { font-family: 'Cinzel', serif; font-size: 1.8rem; margin-bottom: 0.8rem; color: #5c3a1e; }
.confirm-card p { font-size: 1.1rem; margin-bottom: 2rem; color: #5c3a1e; line-height: 1.6; }
.confirm-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.confirm-btn {
    padding: 0.6rem 1.5rem; border-radius: 40px; font-weight: 700;
    font-family: 'Cinzel', serif; letter-spacing: 1px; cursor: pointer;
    transition: all 0.3s; font-size: 1rem; border: 2px solid transparent;
}
.confirm-cancel { background: #f5e0b1; color: #3e2c1b; border-color: #deb887; }
.confirm-cancel:hover { background: #eed9a8; transform: scale(1.02); }
.confirm-yes {
    background: linear-gradient(180deg, #d4af37, #b8860b);
    color: #2b1e10; border-color: #8b5a2b;
}
.confirm-yes:hover {
    background: linear-gradient(180deg, #e6c34a, #c59b0f);
    transform: scale(1.02); box-shadow: 0 0 15px rgba(212,175,55,0.5);
}

@media (max-width: 550px) {
    .style-card { width: 150px; padding: 1rem; }
    .question-text { font-size: 1.1rem; }
}

/* ========== PAGE HEADER (GLASS GREETING PANEL) ========== */
.page-header {
    background: rgba(0, 0, 0, 0.25);               /* dark glass base */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 215, 140, 0.25);   /* warm gold border */
    border-radius: 32px;
    padding: 2rem 2rem 1.5rem;
    margin: 1rem 0 2.5rem;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4),
                0 0 25px rgba(244, 162, 97, 0.15); /* soft orange glow */
    position: relative;
    overflow: hidden;
}

/* Subtle inner glow / light effect */
.page-header::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 40%, rgba(244, 162, 97, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

/* Heading inside the glass panel */
.page-header h1 {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 5vw, 2.4rem);
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #fff5e6, #fad19e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Icon inside the heading */
.page-header h1 i {
    font-size: 2rem;
    -webkit-text-fill-color: #f4a261;  /* solid icon color */
}

/* Subtitle text */
.page-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
    font-weight: 400;
}

/* ========== GLOBAL BODY BACKGROUND (dark for glass effect) ========== */
body {
    background: #0b0b14;
}

/* ========== PAGE HEADER (GLASS GREETING PANEL) ========== */
.page-header {
    background: rgba(0, 0, 0, 0.25);               /* dark glass base */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 215, 140, 0.25);   /* warm gold border */
    border-radius: 32px;
    padding: 2rem 2rem 1.5rem;
    margin: 1rem 0 2.5rem;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4),
                0 0 25px rgba(244, 162, 97, 0.15); /* soft orange glow */
    position: relative;
    overflow: hidden;
}

/* Subtle inner glow / light effect */
.page-header::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 40%, rgba(244, 162, 97, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

/* Heading inside the glass panel */
.page-header h1 {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 5vw, 2.4rem);
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #fff5e6, #fad19e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Icon inside the heading */
.page-header h1 i {
    font-size: 2rem;
    -webkit-text-fill-color: #f4a261;  /* solid icon color */
}

/* Subtitle text */
.page-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
    font-weight: 400;
}

/* ========== GLOBAL BODY BACKGROUND (dark for glass effect) ========== */
body {
    background: #0b0b14;
}

/* ========== QUIZ LIBRARY – FILTER BUTTONS ========== */
.filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.filter-btn {
    background: var(--bg-card);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border-card);
    color: var(--text-primary);
    padding: 0.5rem 1.4rem;
    border-radius: 30px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    user-select: none;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(244, 162, 97, 0.25);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-color: transparent;
    color: #1c1c2a;
    font-weight: 600;
    box-shadow: 0 0 15px rgba(244, 162, 97, 0.5);
}

.filter-sep {
    color: rgba(255, 255, 255, 0.3);
    margin: auto 0.5rem;
    user-select: none;
    font-size: 1rem;
}

/* ========== QUIZ CARDS (enhanced glassmorphism) ========== */
.quiz-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.quiz-card-enhanced {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(12px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.quiz-card-enhanced:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 30px rgba(255,179,71,0.25);
    border-color: rgba(255,179,71,0.4);
}

.card-thumb {
    height: 180px;
    background: linear-gradient(135deg, #2a2a3a, #1a1a2e);
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 1rem;
}

.card-thumb .badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.card-thumb .badge-pill {
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(12px);
    background: rgba(0,0,0,0.5);
    color: #fff;
}

.card-body {
    padding: 1.2rem 1.2rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-body h3 {
    font-size: 1.25rem;
    margin-bottom: 0.3rem;
    color: #fff;
}

.card-body p {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    line-height: 1.4;
    flex: 1;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.status-badge {
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.active { background: #4CAF50; color: #fff; }
.status-badge.upcoming { background: #FF9800; color: #fff; }
.status-badge.past { background: #9E9E9E; color: #fff; }

.lang-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0.5rem 0;
}

.lang-pill {
    background: rgba(255,179,71,0.15);
    border: 1px solid rgba(255,179,71,0.5);
    border-radius: 20px;
    padding: 0.2rem 0.7rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--primary);
    white-space: nowrap;
}

.meta-icons {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 0.5rem;
}

.meta-icons i { color: var(--primary); margin-right: 0.3rem; }

/* Category title & empty state */
.category-title {
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem;
    color: var(--primary);
}
.empty-state {
    text-align: center;
    padding: 3rem;
    opacity: 0.6;
}

/* ========== MY CERTIFICATES LIST ========== */
.cert-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cert-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    padding: 1.2rem 1.5rem;
    backdrop-filter: blur(12px);
    flex-wrap: wrap;
    gap: 1rem;
    transition: all 0.25s ease;
}

.cert-item:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.cert-info h3 {
    margin-bottom: 0.3rem;
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: 700;
}

.cert-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ===== Quiz Attempt Cards ===== */
.attempt-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    padding: 1.2rem 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.25s ease;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.attempt-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.attempt-info {
    flex: 2;
    min-width: 200px;
}

.attempt-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-dark, #5a3a1a);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.attempt-title i {
    color: var(--primary);
}

.attempt-date {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

.attempt-score {
    flex: 1;
    min-width: 130px;
    text-align: center;
}

/* Status badges */
.badge-status {
    display: inline-block;
    padding: 0.2rem 0.8rem;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-pass {
    background: var(--success);
    color: white;
}

.badge-fail {
    background: var(--danger);
    color: white;
}

/* Review button */
.btn-review {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 0.4rem 1rem;
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-review:hover {
    background: var(--primary);
    color: white;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px dashed var(--border-card);
}

.empty-state i {
    font-size: 4rem;
    color: var(--primary);
    opacity: 0.5;
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Primary button (if not already defined in user.css) */
.btn-primary {
    background: var(--primary);
    color: white;
    padding: 0.6rem 1.8rem;
    border-radius: 40px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.2s;
}

.btn-primary:hover {
    background: var(--primary-dark, #9b5e2c);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 680px) {
    .attempt-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    .attempt-score {
        text-align: center;
    }
    .attempt-info {
        text-align: center;
    }
    .btn-review {
        justify-content: center;
    }
}

/* My Quiz Attempts – fix invisible text */
.attempt-card .attempt-title {
    color: var(--text-primary, #ffffff);   /* bright on dark background */
}
.attempt-card .attempt-date {
    color: var(--text-secondary, #cccccc);
}
.attempt-card .badge-pill {                /* the category / level pills */
    color: #000000;                        /* black text on coloured pill */
    background-color: var(--primary, #FFB347); /* keep the background */
}
.attempt-score .score-text {
    color: var(--text-primary, #ffffff);
}

/* ============================================================
   USER PANEL – WITH VIDEO BACKGROUND (like login.php)
   ============================================================ */

:root {
    --primary: #f4a261;
    --secondary: #ff8c42;
    --accent: #d4af37;
    --bg-card: rgba(0, 0, 0, 0.25);
    --border-card: rgba(255, 255, 245, 0.2);
    --text-primary: #fff6e8;
    --text-secondary: #f9e6cf;
    --text-muted: rgba(255, 255, 245, 0.6);
    --danger: #e74c3c;
    --success: #4caf50;
    --info: #4fc3f7;
    --radius-lg: 48px;
    --radius-md: 24px;
    --radius-sm: 16px;
    --transition: 0.3s ease;
    --font: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Cinzel', serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font);
    color: var(--text-primary);
    min-height: 100vh;
    padding-top: 80px;
    line-height: 1.5;
    position: relative;
}

/* ========== VIDEO BACKGROUND STYLES (exactly as login.php) ========== */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}
.video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}
.overlay-mist {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 20%, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.35) 100%);
    z-index: -1;
    pointer-events: none;
}
.sikh-bg-motif {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 140px;
    height: 140px;
    opacity: 0.5;
    pointer-events: none;
    z-index: -1;
}
.sikh-bg-motif svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 4px rgba(244, 162, 97, 0.6));
}
.ek-onkar-bg {
    position: fixed;
    top: 8%;
    left: 4%;
    font-size: 4.8rem;
    font-weight: 800;
    font-family: 'Inter', sans-serif;
    letter-spacing: 6px;
    color: rgba(255, 215, 140, 0.35);
    pointer-events: none;
    z-index: -1;
    white-space: nowrap;
    transform: rotate(-6deg);
    text-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
@media (max-width: 550px) {
    .sikh-bg-motif { width: 90px; height: 90px; bottom: 1rem; right: 1rem; opacity: 0.45; }
    .ek-onkar-bg { font-size: 2.5rem; top: 3%; left: 3%; }
}

/* ========== HEADER (glass, fixed) ========== */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 245, 0.15);
    padding: 0 1.5rem;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.home-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #0f0f1a;
    padding: 0.4rem 1.2rem;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(244, 162, 97, 0.3);
    white-space: nowrap;
}

.home-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(244, 162, 97, 0.5);
}

.site-title {
    font-size: 1.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    white-space: nowrap;
    font-family: var(--font-heading);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.3rem;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-links {
    display: flex;
    gap: 0.3rem;
    flex-wrap: wrap;
}

.nav-links a {
    color: rgba(255, 255, 245, 0.8);
    text-decoration: none;
    padding: 0.4rem 0.9rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
    background: rgba(244, 162, 97, 0.15);
    color: var(--primary);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 245, 0.8);
    flex-wrap: wrap;
}

.user-menu {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.user-menu img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--primary);
}

.user-icon {
    font-size: 1.4rem;
    color: var(--primary);
}

.dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 245, 0.2);
    border-radius: 16px;
    padding: 0.5rem 0;
    min-width: 160px;
    display: none;
    z-index: 1001;
}

.dropdown.show {
    display: block;
}

.dropdown a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.dropdown a:hover {
    background: rgba(244, 162, 97, 0.1);
    color: var(--primary);
}

.badge-pill {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #0f0f1a;
    padding: 0.2rem 0.9rem;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255,255,245,0.3);
    white-space: nowrap;
}

.search-toggle {
    background: none;
    border: none;
    color: rgba(255, 255, 245, 0.8);
    font-size: 1.1rem;
    cursor: pointer;
}

.search-box {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    padding: 0.5rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 245, 0.1);
}

.search-box.active {
    display: block;
}

.search-box input {
    width: 100%;
    padding: 0.6rem;
    background: rgba(255, 255, 245, 0.08);
    border: 1px solid rgba(255, 255, 245, 0.2);
    border-radius: 40px;
    color: #fff;
    font-family: inherit;
}

/* ========== MAIN CONTAINER ========== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ========== GLASS CARDS ========== */
.card {
    background: rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 245, 0.25);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    font-family: var(--font-heading);
    background: linear-gradient(135deg, #fff5e6, #fad19e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 245, 0.2);
    border-radius: 24px;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-3px);
    border-color: rgba(244, 162, 97, 0.5);
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.3rem;
}

/* ========== BUTTONS (glassy gradient) ========== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(212, 138, 60, 0.25);
    backdrop-filter: blur(4px);
    color: #fff6e8;
    border: 1px solid rgba(255, 220, 150, 0.6);
    padding: 0.6rem 1.5rem;
    border-radius: 44px;
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    font-family: inherit;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(105deg, rgba(212, 138, 60, 0.85), rgba(244, 162, 97, 0.9));
    transition: left 0.5s ease;
    z-index: -1;
}

.btn:hover::before {
    left: 0;
}

.btn:hover {
    color: #1c1c2a;
    border-color: transparent;
    transform: translateY(-2px);
}

.btn:disabled {
    opacity: 0.5;
    pointer-events: none;
}

.btn-sm {
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
}

.btn-outline {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 245, 215, 0.5);
}

.btn-danger {
    background: rgba(231, 76, 60, 0.3);
    border-color: #e74c3c;
}

.btn-success {
    background: rgba(76, 175, 80, 0.3);
    border-color: #4caf50;
}

.btn-edit {
    background: rgba(79, 195, 247, 0.3);
    border-color: #4fc3f7;
}

/* ========== FORMS ========== */
label {
    display: block;
    margin-top: 1.2rem;
    font-weight: 600;
    color: #fff2e0;
    font-size: 0.85rem;
}

.required {
    color: var(--danger);
}

input,
textarea,
select {
    width: 100%;
    padding: 0.8rem 1rem;
    margin-top: 0.4rem;
    background: rgba(10, 12, 22, 0.28);
    border: 1px solid rgba(255, 245, 215, 0.5);
    border-radius: 40px;
    color: white;
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(244, 162, 97, 0.4);
    background: rgba(10, 12, 22, 0.5);
}

select option {
    background: #1e1e2a;
    color: white;
}

textarea {
    border-radius: 24px;
    resize: vertical;
}

.row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 600px) {
    .row {
        grid-template-columns: 1fr;
    }
}

/* ========== TABLES ========== */
.table-wrapper {
    background: rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 245, 0.2);
    border-radius: 24px;
    overflow-x: auto;
    margin-bottom: 2rem;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 0.9rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 245, 0.1);
    white-space: nowrap;
}

th {
    background: rgba(255, 255, 245, 0.05);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background: rgba(255, 255, 245, 0.02);
}

/* ========== BADGES ========== */
.badge-stat {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-stat.passed {
    background: rgba(76, 175, 80, 0.2);
    color: #81c784;
}

.badge-stat.failed {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
}

.badge-stat.active {
    background: rgba(76, 175, 80, 0.2);
    color: #81c784;
}

.badge-stat.upcoming {
    background: rgba(255, 152, 0, 0.2);
    color: #ff9800;
}

.badge-stat.past {
    background: rgba(158, 158, 158, 0.2);
    color: #9e9e9e;
}

/* ========== MODAL ========== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: #1a1a2e;
    border-radius: 32px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    border: 1px solid rgba(255, 255, 245, 0.2);
    backdrop-filter: blur(12px);
}

.modal h3 {
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.modal .btn {
    margin-right: 0.5rem;
}

/* ========== PAGINATION ========== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    padding: 0.5rem 1rem;
    border-radius: 40px;
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 245, 0.2);
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.pagination a:hover {
    background: rgba(244, 162, 97, 0.2);
    border-color: var(--primary);
}

.pagination .current {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #0f0f1a;
    font-weight: 600;
    border-color: transparent;
}

/* ========== MESSAGES ========== */
.msg {
    padding: 0.8rem 1.2rem;
    border-radius: 40px;
    margin-bottom: 1rem;
    font-weight: 500;
    backdrop-filter: blur(8px);
    background: rgba(0, 0, 0, 0.3);
}

.msg.success {
    background: rgba(76, 175, 80, 0.15);
    border-left: 4px solid var(--success);
    color: #a5d6a7;
}

.msg.error {
    background: rgba(231, 76, 60, 0.15);
    border-left: 4px solid var(--danger);
    color: #ef9a9a;
}

/* ========== FOOTER ========== */
.site-footer {
    text-align: center;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
    border-top: 1px solid rgba(255, 255, 245, 0.1);
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 3rem;
}

.site-footer a {
    color: var(--primary);
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

/* ============================================================
   GUEST LANDING PAGE STYLES (added for index.php guest view)
   ============================================================ */
body.guest-landing {
    padding-top: 0;
    background: #0b0b14;
}

.guest-logo-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem 0.5rem;
}

.guest-logo-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.guest-logo-img {
    height: 50px;
}

.logo-bar-title {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: var(--font-heading);
}

.glass-hero.landing-hero {
    max-width: 800px;
    margin: 2rem auto;
    background: rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 245, 0.25);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.hero-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.hero-icon i {
    filter: drop-shadow(0 0 8px var(--primary));
}

.glass-hero h1 {
    font-size: 2.2rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.glass-hero h1 span {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-tagline {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.landing-btn-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #0f0f1a;
    border: none;
}

.btn-outline-light {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.stats-row {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin: 3rem 0;
}

.stat-box {
    background: rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 245, 0.2);
    border-radius: 24px;
    padding: 1.5rem 2rem;
    text-align: center;
}

.stat-num {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.about-section {
    text-align: center;
    max-width: 800px;
    margin: 2rem auto;
    color: var(--text-secondary);
}

.about-section h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.why-join-heading {
    text-align: center;
    font-size: 2rem;
    margin: 3rem 0 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto 3rem;
    padding: 0 1rem;
}

.feature-card {
    background: rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 245, 0.2);
    border-radius: 24px;
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.faq-section {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.faq-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.faq-item {
    background: rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 245, 0.2);
    border-radius: 24px;
    padding: 1.2rem;
    margin-bottom: 1rem;
}

.faq-item h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.faq-item p {
    color: var(--text-secondary);
}

.landing-footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-top: 1px solid rgba(255, 255, 245, 0.1);
    margin-top: 2rem;
}

.lang-links {
    margin-bottom: 0.5rem;
}

.lang-links a {
    color: var(--primary);
    margin: 0 0.5rem;
    text-decoration: none;
}

.lang-links a:hover {
    text-decoration: underline;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
    .site-header {
        padding: 0.5rem 1rem;
        height: auto;
    }
    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(12px);
        border-radius: 0 0 24px 24px;
        padding: 0.5rem;
        margin-top: 0.5rem;
    }
    .nav-links.show {
        display: flex;
    }
    .hamburger {
        display: flex;
    }
    .header-left {
        flex: 1;
        justify-content: space-between;
    }
    .header-right {
        width: 100%;
        justify-content: flex-end;
    }
    body {
        padding-top: 140px;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .site-header {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    .header-left,
    .header-right {
        width: 100%;
        justify-content: center;
    }
    .header-right {
        margin-top: 0.5rem;
    }
    body {
        padding-top: 180px;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .btn {
        width: 100%;
        justify-content: center;
    }
    .row {
        grid-template-columns: 1fr;
    }
}