:root {
    --primary: #5cb85c;
    /* Green from logo 'q' opacity/style */
    --secondary: #d9534f;
    /* Red from logo 'p' */
    --accent: #5e5e5e;
    /* Grey text */
    --dark-bg: #f4f6f8;
    /* Light grey background */
    --text-main: #333333;
    --text-muted: #666666;
    --glass-bg: rgba(255, 255, 255, 0.7);
    /* More opaque for light theme */
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    --font-main: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--dark-bg);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background Gradients */
.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top left, #ffffff, var(--dark-bg));
    z-index: -2;
}

.glass-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.4;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -100px;
    left: -100px;
    animation: float 10s infinite alternate;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: var(--secondary);
    bottom: 10%;
    right: -50px;
    animation: float 12s infinite alternate-reverse;
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(30px, 50px);
    }
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.glass-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    /* Whiter header */
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 100;
    padding: 1rem 0;
}


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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    cursor: pointer;
    /* Removed text gradient as we now use an image */
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--text-main);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-left: auto;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    background: rgba(0, 0, 0, 0.05);
    /* Darker background for toggle */
    border-radius: 20px;
    padding: 2px;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 4px 10px;
    font-size: 0.8rem;
    cursor: pointer;
    border-radius: 18px;
    transition: all 0.3s;
}

.lang-btn.active {
    background: white;
    /* White active state */
    color: var(--primary);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Buttons */
.cta-btn {
    padding: 10px 24px;
    border-radius: 50px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.cta-btn.small {
    padding: 8px 20px;
    font-size: 0.9rem;
}

.cta-btn.primary {
    background: linear-gradient(135deg, var(--primary), #4cae4c);
    color: white;
    box-shadow: 0 4px 15px rgba(92, 184, 92, 0.3);
}

.cta-btn.secondary {
    background: white;
    color: var(--text-main);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(92, 184, 92, 0.4);
}

.cta-btn.danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
}

.cta-btn.danger:hover {
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.cta-btn.warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border: none;
}

.cta-btn.warning:hover {
    box-shadow: 0 4px 15px rgba(217, 119, 6, 0.3);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text-main);
    /* Dark hamburger menu */
}

/* Hero Section */
.hero-section {
    padding-top: 140px;
    padding-bottom: 80px;
    display: flex;
    align-items: center;
    min-height: 90vh;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
}

.hero-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-cta {
    display: flex;
    gap: 1rem;
}

/* Glass Cards */
.glass-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    /* Softer shadow */
}

.hero-visual {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-card {
    width: 100%;
    max-width: 380px;
    position: relative;
    z-index: 2;
}

.card-header {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.card-amount {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.card-graph {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    height: 100px;
}

.bar {
    width: 100%;
    background: rgba(0, 0, 0, 0.05);
    /* Darker placeholder bars */
    border-radius: 4px;
    transition: height 1s ease;
}

.bar.active {
    background: var(--secondary);
    /* Red highlight bar */
    box-shadow: 0 0 15px rgba(217, 83, 79, 0.3);
}

.float-card {
    position: absolute;
    padding: 0.8rem 1.2rem;
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 3;
    animation: float 6s infinite ease-in-out;
    background: white;
    /* Solid white float cards */
}

.float-1 {
    top: 20px;
    right: -10px;
    border-left: 4px solid var(--primary);
}

.float-2 {
    bottom: 20px;
    left: -20px;
    animation-delay: 2s;
    border-left: 4px solid var(--secondary);
}

/* Features */
.features-section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    background: none;
    /* Remove gradient text for cleaner look */
    color: var(--text-main);
    -webkit-text-fill-color: initial;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 2rem;
    border-radius: 20px;
    transition: transform 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.feature-card:hover {
    transform: translateY(-5px);
    background: white;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.feature-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.feature-card p {
    color: var(--text-muted);
}

/* How It Works Section */
.how-it-works-section {
    padding: 80px 0;
    background: white;
}

.how-it-works-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hiw-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
    line-height: 1.2;
}

.hiw-text h3 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem 0;
    color: var(--secondary);
}

.hiw-lead {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--secondary);
    padding-left: 1rem;
}

.hiw-text p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.hiw-list {
    list-style: none;
    margin-bottom: 1.5rem;
}

.hiw-list li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-main);
}

.hiw-list li::before {
    content: "✓";
    color: var(--primary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.hiw-final {
    font-weight: 600;
    color: var(--primary) !important;
    font-size: 1.1rem;
    margin-top: 1.5rem;
}

.hiw-video {
    display: flex;
    justify-content: center;
}

.video-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #000;
    color: white;
    cursor: pointer;
    transition: transform 0.3s;
    position: relative;
    overflow: hidden;
}

.video-placeholder::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(92, 184, 92, 0.2), rgba(217, 83, 79, 0.2));
    z-index: 1;
}

.video-placeholder:hover {
    transform: scale(1.02);
}

.play-button {
    font-size: 3rem;
    margin-bottom: 1rem;
    z-index: 2;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.video-placeholder p {
    z-index: 2;
    font-weight: 600;
}

/* Download/CTA Section */
.download-section {
    padding: 80px 0;
}

.download-box {
    text-align: center;
    padding: 4rem 2rem;
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.download-box h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.download-box p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Footer */
footer {
    padding: 60px 0 30px;
    background-color: white;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    margin-top: 60px;
    font-size: 0.95rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: var(--text-muted);
    margin: 1rem 0;
    max-width: 300px;
}

.footer-logo {
    height: 32px;
    display: inline-block;
}

.footer-col h4 {
    color: var(--text-main);
    font-weight: 600;
    margin-bottom: 1.2rem;
    font-size: 1rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.03);
    color: var(--text-muted);
    transition: all 0.3s;
}

.social-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.footer-bottom-links a {
    color: var(--text-muted);
    text-decoration: none;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .footer-brand p {
        margin: 1rem auto;
    }

    .social-links {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Responsive */
@media (max-width: 768px) {

    .hero-content,
    .how-it-works-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .how-it-works-content {
        display: flex;
        /* Flexbox allows easier ordering if needed */
        flex-direction: column-reverse;
        /* Put video on top? Or keep text first? Let's keep text first for now, but flex handles equal width nicely */
        /* Actually grid-template-columns 1fr matches hero behavior, let's stick to that for consistency, but explicitly ensuring it works */
        display: grid;
    }

    .hiw-lead {
        border-left: none;
        border-top: 4px solid var(--secondary);
        padding-left: 0;
        padding-top: 1rem;
    }

    .hiw-list li {
        text-align: left;
        /* Keep list aligned left even if centered text */
        display: inline-block;
        /* Or distinct block */
    }

    .hiw-list {
        text-align: left;
        display: inline-block;
    }
}

/* --- Dashboard Styles --- */
.dashboard-body {
    background-color: #f8fafc;
    /* Slightly flatter background for admin */
}

.dashboard-main {
    padding-top: 100px;
    padding-bottom: 40px;
}

.page-title {
    margin-bottom: 2rem;
    font-size: 2rem;
    color: var(--text-main);
}

/* Dashboard Nav */
.dash-links {
    display: flex;
    gap: 2rem;
    margin-left: 3rem;
    margin-right: auto;
}

.dash-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.3s;
}

.mobile-logout {
    display: none;
}

.dash-links a.active,
.dash-links a:hover {
    color: var(--primary);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    border-left: 1px solid rgba(0, 0, 0, 0.1);
    padding-left: 1.5rem;
}

.header-balance {
    font-weight: 600;
    font-size: 1rem;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-main);
    border-radius: 8px;
    margin-right: 0.5rem;
}

.logout-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-muted);
    transition: color 0.2s;
}

.logout-btn:hover {
    color: var(--secondary);
}

/* Update lang-btn to work as anchor */
.lang-btn {
    background: none;
    border: none;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.lang-btn:hover {
    background: rgba(0, 0, 0, 0.03);
    color: var(--text-main);
}

.lang-btn.active {
    background: rgba(0, 123, 255, 0.1);
    /* Light tint of primary */
    color: var(--primary);
    font-weight: 600;
}


/* Dashboard Grid System */
.dashboard-grid {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.summary-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.stat-card {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.stat-card h3 {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-trend {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.text-green {
    color: var(--primary);
}

.text-red {
    color: var(--secondary);
}

.highlight-card {
    border: 1px solid var(--primary);
    background: rgba(92, 184, 92, 0.05);
    /* Tint of primary */
}

/* Charts Grid */
.charts-grid {
    grid-template-columns: 2fr 1fr;
    min-height: 300px;
}

.chart-container {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

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

.simple-bar-chart {
    flex-grow: 1;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    padding-top: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.chart-bar-group {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    width: 40px;
}

.chart-bar {
    width: 100%;
    background: var(--primary);
    border-radius: 4px 4px 0 0;
    opacity: 0.8;
    color: white;
    font-size: 0.7rem;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 4px;
    transition: height 0.5s ease;
}

.chart-bar:hover {
    opacity: 1;
}

.chart-label {
    margin-top: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Pie Chart Styles */
.pie-chart-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.simple-pie-chart {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: conic-gradient(var(--primary) 0% 55%,
            var(--secondary) 55% 85%,
            #cbd5e1 85% 100%);
    margin-bottom: 1.5rem;
}

.pie-legend {
    width: 100%;
}

.legend-item {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px;
}

.color-1 {
    background: var(--primary);
}

.color-2 {
    background: var(--secondary);
}

.color-3 {
    background: #cbd5e1;
}

/* Activity Table */
.section-title-small {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.table-card {
    padding: 0;
    overflow-x: auto;
}

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

/* Sidebar Footer - Premium Styling */
.sidebar-footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.4);
}

.sidebar-balance {
    display: flex;
    flex-direction: column;
    padding: 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.2));
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border-radius: 16px;
    transition: transform 0.2s;
}

.sidebar-balance:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.sidebar-balance .label-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.sidebar-balance .amount-row {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.sidebar-balance .amount-row small {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}

/* Segmented Control Language Switcher */
.sidebar-lang {
    display: flex;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.04);
    padding: 4px;
    border-radius: 50px;
    /* Fully rounded pill */
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.sidebar-lang .lang-btn {
    flex: 1;
    justify-content: center;
    padding: 8px 0;
    font-size: 1.2rem;
    /* Flag size */
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    opacity: 0.6;
    filter: grayscale(0.5);
}

.sidebar-lang .lang-btn:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.5);
}

.sidebar-lang .lang-btn.active {
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    opacity: 1;
    filter: none;
    transform: scale(1.05);
}

/* Logout Button */
.sidebar-logout {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    margin-top: 0.5rem;
    color: var(--text-muted);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.sidebar-logout:hover {
    background: rgba(217, 83, 79, 0.1);
    color: var(--secondary);
    border-color: rgba(217, 83, 79, 0.2);
    transform: translateY(-1px);
}

.sidebar-logout i {
    transition: transform 0.3s ease;
}

.sidebar-logout:hover i {
    transform: translateX(3px);
    /* Slide icon out slightly */
}

.activity-table th,
.activity-table td {
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.activity-table th {
    background: rgba(0, 0, 0, 0.02);
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.user-cell {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 500;
}

.avatar-sm {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge.success {
    background: rgba(92, 184, 92, 0.15);
    color: var(--primary);
}

.badge.warning {
    background: rgba(217, 83, 79, 0.15);
    color: var(--secondary);
}

.badge.info {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-muted);
}

/* Dashboard Responsive */
@media (max-width: 900px) {
    .charts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {

    .dash-links,
    .header-balance,
    .user-menu span.user-name,
    .user-menu .logout-btn {
        display: none;
    }

    .mobile-logout {
        display: block !important;
        color: var(--secondary) !important;
        margin-top: 0.5rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
    }

    .mobile-balance {
        display: block !important;
        background: rgba(0, 0, 0, 0.05);
        color: var(--text-main);
        padding: 10px;
        border-radius: 8px;
        text-align: center;
        font-weight: 600;
        margin-bottom: 0.5rem;
        width: fit-content;
        /* Don't stretch */
    }

    /* Ensure mobile menu works for dashboard structure too */
    .dashboard-main {
        padding-top: 80px;
    }
}

.auth-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* Trust Section */
.trust-container {
    max-width: 800px;
}

.trust-card {
    padding: 2rem;
}

.trust-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.trust-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.trust-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

@media (max-width: 768px) {
    .glass-header nav {
        gap: 0.5rem;
    }

    .header-actions {
        gap: 0.5rem;
    }

    .hero-cta {
        justify-content: center;
    }

    .nav-links,
    .header-actions button.cta-btn {
        display: none;
    }

    /* Vanilla Dropdown Styles */
    .dropdown {
        position: relative;
        display: inline-block;
    }

    .dropdown-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 160px;
        z-index: 1000;
        background: white;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        padding: 0.5rem 0;
        list-style: none;
        margin-top: 0.5rem;
    }

    .dropdown.active .dropdown-menu {
        display: block;
        animation: fadeIn 0.2s ease-out;
    }

    .dropdown-item {
        display: block;
        width: 100%;
        padding: 0.5rem 1rem;
        clear: both;
        font-weight: 400;
        color: var(--text-main);
        text-align: inherit;
        text-decoration: none;
        white-space: nowrap;
        background-color: transparent;
        border: 0;
        transition: all 0.2s;
    }

    .dropdown-item:hover {
        background-color: rgba(0, 0, 0, 0.03);
        color: var(--primary);
    }

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

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Mobile Menu Active State */
    .nav-links.active,
    .dash-links.active {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: white;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
        animation: slideDown 0.3s ease-out;
    }

    /* Support Dropdown inside Mobile Menu */
    .nav-links.active .dropdown {
        width: 100%;
        text-align: left;
    }

    .nav-links.active .dropdown-menu {
        position: static !important;
        float: none !important;
        width: 100% !important;
        min-width: 0 !important;
        text-align: left;
        border: none !important;
        box-shadow: none !important;
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
        margin: 0 !important;
        background: transparent !important;
        transform: none !important;
        padding-left: 1.5rem !important;
    }

    .nav-links.active .dropdown-item {
        display: block;
        width: 100%;
        padding: 0.5rem 0 !important;
        color: var(--text-muted) !important;
        background: transparent !important;
        white-space: normal !important;
        border-radius: 0;
    }

    .nav-links.active .dropdown-item:hover,
    .nav-links.active .dropdown-item:focus,
    .nav-links.active .dropdown-item:active {
        background: transparent !important;
        color: var(--primary) !important;
        transform: translateX(5px);
    }

    /* Hide desktop language switcher on mobile */
    .header-actions .lang-switcher {
        display: none;
    }

    /* Mobile Language Switcher */
    .mobile-lang-switcher {
        display: flex !important;
        justify-content: center;
        gap: 1rem;
        width: 100%;
        padding-top: 1rem;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .mobile-menu-btn {
        display: flex;
    }

    .logo {
        z-index: 101;
    }
}

/* Default hidden state for mobile elements (Desktop view) */
.mobile-lang-switcher {
    display: none;
}



/* Mobile Navigation Buttons */
.mobile-nav-btn {
    display: none;
}

@media (max-width: 768px) {
    .mobile-nav-btn {
        display: block !important;
        width: 100%;
        margin-top: 0.5rem;
        text-align: center;
    }
}

/* --- Sidebar Layout --- */
.app-container {
    display: flex;
    min-height: 100vh;
}

.app-sidebar {
    width: 290px;
    position: relative;
    margin: 20px;
    /* Fit content height */
    height: auto;
    align-self: flex-start;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    transition: transform 0.3s ease-in-out;
}

/* Glassmorphism for sidebar */
.app-sidebar.glass-card {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    margin-bottom: 3rem;
    padding-left: 0.5rem;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-grow: 1;
}

.nav-item-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.nav-item-link:hover {
    background: rgba(255, 255, 255, 0.5);
    color: var(--text-main);
    transform: translateX(4px);
}

.nav-item-link.active {
    background: white;
    color: var(--primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    font-weight: 600;
}

.main-content {
    flex-grow: 1;
    /* margin-left removed for fluid flex layout */
    padding: 20px 40px;
    min-height: 100vh;
    min-width: 0;
    /* Critical for flex items to shrink with overflow content */
}

/* Header adjustments */
.dashboard-header {
    margin-bottom: 2rem;
    padding: 1rem 0;
    display: flex;
    justify-content: flex-end;
    /* Align actions to right */
    align-items: center;
}

/* Mobile Sidebar behavior */
@media (max-width: 991px) {
    .app-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        width: 290px;
        margin: 0;
        border-radius: 0;
        transform: translateX(-100%);
        background: rgba(255, 255, 255, 0.95);
        /* More opaque on mobile */
    }

    .app-sidebar.show {
        transform: translateX(0);
        box-shadow: 0 0 50px rgba(0, 0, 0, 0.2);
    }

    .main-content {
        margin-left: 0;
        padding: 20px;
    }

    .dashboard-header {
        justify-content: space-between;
        /* Show toggle on left */
    }

    /* Overlay when sidebar is open */
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.3);
        z-index: 999;
        display: none;
        backdrop-filter: blur(2px);
    }

    .sidebar-overlay.show {
        display: block;
    }
}

/* --- Collapsible Sidebar (Desktop) --- */
.sidebar-toggle-btn {
    position: absolute;
    top: 28px;
    right: -14px;
    /* On the border */
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1001;
    color: var(--text-muted);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    /* Bouncy transition */
    opacity: 0;
    transform: scale(0.5);
    pointer-events: none;
    /* Prevent accidental clicks when hidden */
}

.app-sidebar:hover .sidebar-toggle-btn {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.sidebar-toggle-btn:hover {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: scale(1.15);
    border-color: transparent;
}

/* Icon Rotation */
.sidebar-toggle-btn i {
    transition: transform 0.4s ease;
}

.app-container.collapsed .sidebar-toggle-btn i {
    transform: rotate(180deg);
}


.app-container.collapsed .app-sidebar {
    width: 88px;
    padding: 1.5rem 0.8rem;
}

/* Sub-menus */
.nav-item-parent {
    cursor: pointer;
    justify-content: space-between;
}

.nav-item-parent .chevron {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
    opacity: 0.6;
}

.nav-item-parent[aria-expanded="true"] .chevron {
    transform: rotate(180deg);
}

.nav-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.nav-submenu.show {
    max-height: 200px;
    /* Arbitrary limit for animation */
    opacity: 1;
    margin-bottom: 0.5rem;
}

.nav-sub-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px 10px 48px;
    /* Indent */
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s;
    border-radius: 12px;
}

.nav-sub-link:hover {
    color: var(--primary);
    background: rgba(255, 255, 255, 0.3);
}

.nav-sub-link.active {
    color: var(--primary);
    font-weight: 600;
    background: rgba(255, 255, 255, 0.5);
}

/* Collapsed state adjustments for submenus */
.app-container.collapsed .nav-item-parent .chevron,
.app-container.collapsed .nav-submenu {
    display: none !important;
}

.app-container.collapsed .main-content {
    margin-left: 120px;
    /* 88px + gap */
}

.app-container.collapsed .sidebar-logo img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.app-container.collapsed .nav-item-link span {
    display: none;
}

.app-container.collapsed .nav-item-link {
    justify-content: center;
    padding: 12px;
}

.app-container.collapsed .nav-item-link i {
    width: 24px;
    height: 24px;
    margin: 0;
}

/* Footer elements in collapsed state */
.app-container.collapsed .sidebar-footer {
    align-items: center;
}

.app-container.collapsed .sidebar-balance .amount-row,
.app-container.collapsed .sidebar-balance .label-row span {
    display: none;
}

.app-container.collapsed .sidebar-balance {
    padding: 10px;
    justify-content: center;
}

.app-container.collapsed .sidebar-balance .label-row {
    margin: 0;
}

.app-container.collapsed .sidebar-lang {
    flex-direction: column;
    width: 100%;
    border-radius: 20px;
    gap: 4px;
}

.app-container.collapsed .sidebar-lang .lang-btn {
    padding: 6px;
    font-size: 1.2rem;
}

.app-container.collapsed .sidebar-logout span {
    display: none;
}

.app-container.collapsed .sidebar-logout {
    justify-content: center;
    padding: 12px;
}

.app-container.collapsed .sidebar-logout:hover i {
    transform: none;
    /* No slide in collapsed */
    color: var(--secondary);
}

/* Hide toggle button on mobile */
@media (max-width: 991px) {
    .sidebar-toggle-btn {
        display: none !important;
    }
}

/* --- Premium Table Styles --- */
.premium-table {
    border-collapse: separate;
    border-spacing: 0 0.5rem;
    /* Row gaps */
    width: 100%;
    margin-bottom: 0;
}

.premium-table thead th {
    border: none;
    background: transparent;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 600;
    padding: 0 1.5rem 0.5rem 1.5rem;
}

.premium-table tbody tr {
    background: rgba(255, 255, 255, 0.4);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.01);
}

.premium-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.01);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.premium-table td {
    border: none;
    padding: 1rem 1.5rem;
    vertical-align: middle;
}

/* Round corners for the row card effect */
.premium-table td:first-child {
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

.premium-table td:last-child {
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

/* Table Avatar Circle */
.table-avatar-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 2px 5px rgba(92, 184, 92, 0.3);
}

/* --- Responsive Adjustments (Compact Desktop) --- */
@media (min-width: 992px) and (max-width: 1280px) {
    .app-sidebar {
        width: 220px;
        padding: 1.2rem;
    }

    .main-content {
        margin-left: 20px;
        /* 220px + 20px gap */
        padding: 20px;
    }

    .nav-item-link {
        padding: 10px 12px;
        gap: 8px;
        font-size: 0.9rem;
    }

    .sidebar-logo img {
        height: 32px;
        /* Smaller logo */
    }
}

/* Rank Styling */
.rank-badge {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
}

/* --- Premium Pagination --- */
.pagination {
    gap: 0.5rem;
}

.page-link {
    border: none;
    background: rgba(255, 255, 255, 0.4);
    color: var(--text-muted);
    font-weight: 600;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50% !important;
    /* Force pill/circle */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.page-link:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.page-item.active .page-link {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(92, 184, 92, 0.3);
}

.page-item.disabled .page-link {
    background: transparent;
    color: rgba(0, 0, 0, 0.2);
    box-shadow: none;
    transform: none;
    pointer-events: none;
}

/* Specific adjustment for Prev/Next text links if they are not circles */
.page-item:first-child .page-link,
.page-item:last-child .page-link {
    width: auto;
    padding: 0 1rem;
    border-radius: 20px !important;
}

/* Custom Success Alert to match Primary Button */
.alert-success {
    background: linear-gradient(135deg, var(--primary), #4cae4c);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(92, 184, 92, 0.3);
    backdrop-filter: blur(10px);
}

.alert-success .lucide {
    color: white !important;
}

/* Hero Slider */
.hero-slider {
    position: relative;
    width: 100%;
    /* Ensure height matches the content */
    min-height: 450px;
}

.hero-slide {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease-in-out;
    transform: translateY(20px);
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    position: relative;
    /* Make active slide relative so it takes up space */
}

/* Slider Controls */
.slider-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    z-index: 10;
    position: relative;
    /* New styles for visibility */
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(4px);
    padding: 10px 20px;
    border-radius: 30px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    /* Darker inactive */
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: var(--primary);
    /* Green active */
    transform: scale(1.2);
}

.slider-dot:hover {
    background: rgba(0, 0, 0, 0.4);
}

/* Responsive adjustments */
@media (max-width: 968px) {
    .hero-slide {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        position: relative;
    }

    .slider-controls {
        position: absolute;
        bottom: 430px;
        /* 400px visual + space */
        left: 50%;
        transform: translateX(-50%);
        width: max-content;
        margin-top: 0;
        z-index: 20;
    }

    .hero-visual {
        margin-top: 80px;
        /* Space for the dots */
    }
}

/* Google Auth Button */
.btn-google {
    border-radius: 12px;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: white;
    color: var(--text-main);
    transition: all 0.3s;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-google:hover {
    background: #f8f9fa;
    border-color: rgba(0, 0, 0, 0.2);
    color: var(--text-main);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}