/* ============================================================
   DESIGN SYSTEM — PLAY TESTERS HUB (GEN Z BENTO REWRITE)
   ============================================================ */

:root {
    --bg-dark: #070709;
    --bg-card: #0F0F13;
    --border-color: rgba(255, 255, 255, 0.05);
    --border-hover: rgba(255, 255, 255, 0.12);
    
    --primary: #4F46E5;        /* Indigo */
    --primary-hover: #6366F1;
    --primary-glow: rgba(79, 70, 229, 0.15);
    
    --accent: #10B981;         /* Emerald Green */
    --accent-hover: #34D399;
    
    --premium: #F59E0B;        /* Amber */
    --premium-glow: rgba(245, 158, 11, 0.15);
    
    --text-primary: #FFFFFF;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
    
    --success: #10B981;
    --danger: #EF4444;
    
    --font-sans: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-display: 'Outfit', 'Space Grotesk', -apple-system, sans-serif;
    
    --border-radius-lg: 16px;
    --border-radius-md: 12px;
    --border-radius-sm: 8px;
    
    --transition-smooth: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset & Base Styles ────────────────────────────────── */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Subtle background developer grid lines */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: center;
    pointer-events: none;
    z-index: 0;
}

a {
    color: var(--primary-hover);
    text-decoration: none;
    transition: var(--transition-smooth);
}
a:hover {
    color: #fff;
}

/* ── Typography & Headings ──────────────────────────────── */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.gradient-text {
    background: linear-gradient(135deg, #FFF 30%, var(--text-muted) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ── Bento Grid & Glass Panels ──────────────────────────── */
.glass-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.glass-panel:hover {
    border-color: var(--border-hover);
}

/* ── Container Layouts ──────────────────────────────────── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 10;
}

/* ── Navbar ────────────────────────────────────────────── */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
    padding: 0 2rem;
    border-bottom: 1px solid var(--border-color);
    background: rgba(7, 7, 9, 0.8);
    backdrop-filter: blur(12px);
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.25rem;
    color: #fff;
    cursor: pointer;
}

.nav-brand svg {
    width: 24px;
    height: 24px;
    color: var(--primary-hover);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* ── Buttons & Action Handles ───────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--primary);
    color: #fff;
}
.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--primary-glow);
}

.btn-secondary-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}
.btn-secondary-outline:hover {
    border-color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
}

.btn-google-login {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: #fff;
    color: #000;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-sm);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.btn-google-login:hover {
    background: #f1f1f1;
    transform: translateY(-2px);
}

.btn-nav-admin {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
}
.btn-nav-admin:hover {
    background: rgba(255,255,255,0.05);
    color: #fff;
    border-color: var(--border-hover);
}

/* ── Hero Section (Ultra Clean & Bento style) ───────────── */
.hero-section {
    padding: 10rem 1rem 6rem;
    text-align: center;
    max-width: 850px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    background: rgba(79, 70, 229, 0.08);
    border: 1px solid rgba(79, 70, 229, 0.2);
    color: var(--primary-hover);
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    font-family: var(--font-display);
    letter-spacing: -0.03em;
}

.hero-sub {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.hero-cta-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 4rem;
}

/* Stats Layout */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 4rem;
}

.stat-card {
    padding: 2rem;
    text-align: left;
}

.stat-num {
    font-size: 2.25rem;
    font-weight: 800;
    font-family: var(--font-display);
    color: #fff;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
    font-weight: 600;
}

/* ── Trusted Ticker ────────────────────────────────────── */
.logo-ticker-section {
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
    position: relative;
}

.logo-ticker-title {
    text-align: center;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 2rem;
}

.logo-ticker-container {
    display: flex;
    overflow: hidden;
    width: 100%;
}

.logo-ticker-track {
    display: flex;
    gap: 4rem;
    animation: ticker 30s linear infinite;
    white-space: nowrap;
}

.logo-ticker-item {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ── Why Us Section (Clean Bento Grid) ──────────────────── */
.why-us-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.why-us-card {
    padding: 2rem;
    text-align: left;
}

.why-us-icon {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-hover);
}

.why-us-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

/* ── Timeline Section ───────────────────────────────────── */
.timeline-section {
    margin: 5rem 0;
    padding: 3rem;
}

.timeline-title {
    text-align: center;
    font-size: 1.75rem;
    margin-bottom: 3rem;
}

.timeline-flow {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    position: relative;
}

.timeline-step {
    text-align: left;
    position: relative;
}

.timeline-node {
    width: 32px;
    height: 32px;
    background: var(--bg-dark);
    border: 2px solid var(--primary-hover);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.95rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.timeline-step h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.timeline-step p {
    font-size: 0.88rem;
    color: var(--text-secondary);
}

/* ── Comparison Table ───────────────────────────────────── */
.comparison-section {
    margin: 6rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.comparison-table-wrapper {
    max-width: 900px;
    margin: 3rem auto 0;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
}

.comparison-table th, .comparison-table td {
    padding: 1.25rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
    background: rgba(255,255,255,0.02);
    color: var(--text-primary);
    font-weight: 700;
}

.comparison-table td.highlight {
    background: rgba(79, 70, 229, 0.03);
    color: var(--text-primary);
    font-weight: 600;
}

.comparison-badge {
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
}

.comparison-badge.success {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.comparison-badge.danger {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

/* ── Testimonials Grid ──────────────────────────────────── */
.testimonials-section {
    margin: 6rem 0;
}

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

.testimonial-card {
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.92rem;
    line-height: 1.6;
    flex-grow: 1;
}

.testimonial-user {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

.testimonial-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 1px solid var(--border-color);
}

.testimonial-info h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
}

.testimonial-info span {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* ── Pricing Grid ───────────────────────────────────────── */
.pricing-section {
    margin: 6rem auto;
    max-width: 900px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.pricing-card {
    padding: 2.5rem;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.pricing-card.premium-card {
    border-color: rgba(245, 158, 11, 0.25);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.03) 0%, rgba(15, 15, 19, 0.9) 100%);
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.pricing-price {
    font-size: 3rem;
    font-weight: 900;
    font-family: var(--font-display);
    color: #fff;
    margin: 1rem 0;
}

.pricing-price span {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.pricing-features {
    list-style: none;
    margin: 1.5rem 0 2.5rem;
    flex-grow: 1;
}

.pricing-features li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pricing-features li::before {
    content: "✓";
    color: var(--accent);
    font-weight: 800;
}

.pricing-card.premium-card .pricing-features li::before {
    color: var(--premium);
}

/* ── FAQ Section ────────────────────────────────────────── */
.faq-section {
    margin: 6rem 0;
}

.faq-container {
    max-width: 800px;
    margin: 3rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.faq-q {
    width: 100%;
    background: none;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 0.75rem 0;
}

.faq-q span {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-a p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    padding-top: 0.5rem;
    line-height: 1.6;
}

/* ── Dashboard Portal Interface ─────────────────────────── */
.dashboard-portal {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 2rem;
    min-height: calc(100vh - 120px);
    margin-top: 90px;
    margin-bottom: 40px;
}

.dashboard-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    border-right: 1px solid var(--border-color);
    padding-right: 1.5rem;
}

.sidebar-brand {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.15rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-nav {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.sidebar-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius-sm);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    transition: var(--transition-smooth);
}

.sidebar-nav-link:hover, .sidebar-nav-link.active {
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
}

.sidebar-nav-link svg {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.sidebar-nav-link:hover svg, .sidebar-nav-link.active svg {
    color: #fff;
}

.sidebar-list-btn {
    border: 1px dashed rgba(255, 255, 255, 0.15);
    background: transparent;
}

.sidebar-list-btn:hover {
    border-color: #fff;
    background: transparent;
}

/* Dashboard Main Content */
.dashboard-main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.welcome-banner {
    padding: 2.25rem;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.06) 0%, rgba(255, 255, 255, 0) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
}

.welcome-banner h2 {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
}

.welcome-banner p {
    color: var(--text-secondary);
    font-size: 0.92rem;
}

/* Checklist widget */
.checklist-card {
    padding: 2rem;
}

.checklist-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.checklist-item {
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    background: rgba(255,255,255,0.01);
}

.checklist-item.completed {
    border-color: rgba(16, 185, 129, 0.2);
    background: rgba(16, 185, 129, 0.02);
}

.checklist-num {
    width: 24px;
    height: 24px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.checklist-item.completed .checklist-num {
    background: var(--success);
    color: #fff;
}

.checklist-item h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.checklist-item p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Quick launch grid */
.quick-actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.quick-action-card {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    cursor: pointer;
    text-align: left;
}

.qa-icon {
    font-size: 1.75rem;
}

.quick-action-card h4 {
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}

.quick-action-card p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ── Tab Layouts ────────────────────────────────────────── */
.dash-tab-content {
    display: none;
    width: 100%;
}

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

.tab-page-title {
    font-size: 1.5rem;
    font-weight: 800;
}

/* Apps Grid */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.app-card {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.app-card-top {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.app-logo {
    width: 48px;
    height: 48px;
    border-radius: var(--border-radius-sm);
    background-size: cover;
    background-position: center;
    border: 1px solid var(--border-color);
}

.app-card-info {
    flex-grow: 1;
}

.app-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
}

.app-category-badge {
    display: inline-block;
    padding: 0.15rem 0.4rem;
    border: 1px solid var(--border-color);
    background: rgba(255,255,255,0.02);
    border-radius: 4px;
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.app-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 1.25rem 0;
    line-height: 1.5;
}

.app-progress-section {
    margin: 1.25rem 0;
}

.app-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.app-progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
}

.app-progress-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.4s ease;
}

.app-test-btn {
    width: 100%;
    text-align: center;
    padding: 0.6rem;
    font-size: 0.85rem;
}

/* ── Premium / Referral System Styling ────────────────── */
.app-card.premium-card {
    border-color: rgba(245, 158, 11, 0.25);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.03) 0%, rgba(15, 15, 19, 0.95) 100%);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.05);
}

.app-card.premium-card::before {
    content: "⚡ FEATURED";
    position: absolute;
    top: -8px;
    left: 12px;
    background: linear-gradient(90deg, #F59E0B, #D97706);
    color: #000;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    letter-spacing: 0.05em;
    z-index: 10;
}

.plan-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
}

.plan-card {
    display: block;
    padding: 1.25rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    position: relative;
    text-align: center;
    transition: var(--transition-smooth);
}

.plan-card:hover {
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.01);
}

.plan-card input[type="radio"] {
    position: absolute;
    top: 12px;
    right: 12px;
    accent-color: var(--primary);
    width: 14px;
    height: 14px;
    cursor: pointer;
}

.plan-card.premium-plan-card {
    border-color: rgba(245, 158, 11, 0.2);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.02) 0%, rgba(0, 0, 0, 0) 100%);
}

.plan-card.premium-plan-card input[type="radio"] {
    accent-color: var(--premium);
}

/* Wallet Card Styles */
.wallet-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}
@media (max-width: 768px) {
    .wallet-container { grid-template-columns: 1fr; }
}

.wallet-balance-card {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.08) 0%, rgba(16, 185, 129, 0.02) 100%);
    border: 1px solid rgba(79, 70, 229, 0.2);
    border-radius: var(--border-radius-md);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.wallet-balance-amount {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--premium);
    font-family: var(--font-display);
    margin: 0.5rem 0;
    letter-spacing: -0.02em;
}

.ref-link-box {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 0.5rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.ref-link-input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 0.8rem;
    flex-grow: 1;
    outline: none;
    width: 100%;
    font-family: monospace;
}

.ref-copy-btn {
    background: var(--primary);
    border: none;
    color: white;
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
    transition: var(--transition-smooth);
}

.ref-copy-btn:hover {
    background: #fff;
    color: #000;
}

/* Leaderboard Ranking Badges */
.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-weight: 800;
    font-size: 0.75rem;
}
.rank-1 { background: linear-gradient(135deg, #FFD700, #FFA500); color: #000; }
.rank-2 { background: linear-gradient(135deg, #E2E8F0, #94A3B8); color: #000; }
.rank-3 { background: linear-gradient(135deg, #FFEDD5, #C2410C); color: #fff; }
.rank-other { background: rgba(255,255,255,0.05); color: var(--text-secondary); border: 1px solid var(--border-color); }

/* Tables in panels */
.table-wrapper {
    overflow-x: auto;
    width: 100%;
}

.leaderboard-table, .comparison-table {
    width: 100%;
    border-collapse: collapse;
}

.leaderboard-table th, .leaderboard-table td {
    padding: 0.85rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.88rem;
}

.leaderboard-table th {
    color: var(--text-muted);
    font-weight: 600;
}

/* Forms & Modals */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1.25rem;
    text-align: left;
}

.form-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-control {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 0.65rem 0.85rem;
    color: #fff;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition-smooth);
}

.form-control:focus {
    border-color: var(--primary-hover);
    background: rgba(255, 255, 255, 0.04);
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius-sm);
    background-color: var(--primary);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    transition: var(--transition-smooth);
}
.btn-submit:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 8px 24px var(--primary-glow);
}

/* ── Modal Design ───────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1100;
    padding: 1.5rem;
}

.modal-box {
    width: 100%;
    max-width: 500px;
    padding: 2.25rem;
}

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

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Alert notifications */
.alert {
    padding: 0.85rem 1rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid transparent;
}
.alert-danger {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.2);
    color: #F87171;
}
.alert-success {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.2);
    color: #34D399;
}

/* Spinner */
.spinner {
    width: 24px;
    height: 24px;
    border: 2px solid rgba(255,255,255,0.1);
    border-top-color: var(--primary-hover);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Toast */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 0.85rem 1.5rem;
    border-radius: var(--border-radius-sm);
    z-index: 2000;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    animation: slideUp 0.3s ease;
}
.toast-success {
    background: var(--bg-card);
    border: 1px solid var(--accent);
    color: #fff;
}
.toast-error {
    background: var(--bg-card);
    border: 1px solid var(--danger);
    color: #fff;
}

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

/* ── Mobile menu drawer ────────────────────────────────── */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    width: 24px;
    z-index: 1000;
}
.hamburger span {
    width: 100%;
    height: 2px;
    background: #fff;
    transition: var(--transition-smooth);
}
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-menu-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 140;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}
.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-tab-bar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: 64px;
    background: rgba(15, 15, 19, 0.95);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 999;
    padding-bottom: env(safe-area-inset-bottom);
}

.mobile-tab-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.65rem;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
    font-family: var(--font-sans);
}

.mobile-tab-btn.active {
    color: var(--primary-hover);
}

.mobile-tab-btn svg {
    width: 18px;
    height: 18px;
}

/* ── Responsive Rules ───────────────────────────────────── */
@media (min-width: 769px) {
    .hamburger { display: none !important; }
    .mobile-menu-overlay { display: none !important; }
    .mobile-tab-bar { display: none !important; }
}

@media (max-width: 768px) {
    .hamburger { display: flex; }
    .navbar { padding: 0 1.25rem; }
    
    #navbarAuth {
        position: fixed; top: 72px; right: -100%;
        width: 250px; height: calc(100vh - 72px);
        background: var(--bg-dark);
        border-left: 1px solid var(--border-color);
        flex-direction: column; align-items: flex-start;
        padding: 2rem 1.5rem; gap: 1.5rem;
        z-index: 150; transition: right 0.3s ease;
    }
    #navbarAuth.mobile-open { right: 0; }
    #navbarAuth .btn-nav-admin, #navbarAuth .user-profile-badge { width: 100%; }

    #dashboardView { flex-direction: column; margin-top: 72px; }
    .dashboard-sidebar { display: none; }
    .mobile-tab-bar { display: flex; }
    
    .dashboard-main {
        padding: 1.5rem 1.25rem;
        padding-bottom: calc(80px + env(safe-area-inset-bottom));
        min-height: calc(100vh - 72px);
    }
    
    .tab-header-row { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .tab-header-row .btn { width: 100%; }
    .apps-grid { grid-template-columns: 1fr; }
    .quick-actions-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
    .why-us-grid { grid-template-columns: 1fr; }
    .timeline-flow { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; }
    .checklist-row { grid-template-columns: 1fr; }
    
    .hero-section { padding: 8rem 1rem 4rem; }
    .hero-title { font-size: 2.25rem; }
    .hero-cta-group { flex-direction: column; width: 100%; }
    .hero-cta-group > * { width: 100%; }
    
    footer { padding-bottom: calc(80px + 1rem) !important; }
}
