:root {
    --bg-main: #0B0E14;
    --bg-card: rgba(21, 25, 36, 0.6);
    --bg-card-hover: rgba(31, 36, 51, 0.8);
    --bg-header: rgba(11, 14, 20, 0.85);

    --border-subtle: rgba(255, 255, 255, 0.05);
    --border-glow: rgba(99, 102, 241, 0.3);

    --text-pure: #ffffff;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --accent-primary: #6366f1;
    /* Indigo */
    --accent-secondary: #ec4899;
    /* Pink */
    --accent-success: #10b981;
    /* Green */
    --accent-warning: #f59e0b;
    /* Amber */

    --progress-bg: rgba(255, 255, 255, 0.1);
    --progress-fill: linear-gradient(90deg, #38bdf8, #818cf8);
    --progress-complete: linear-gradient(90deg, #34d399, #10b981);

    --locked-bg: rgba(15, 17, 26, 0.8);
    --locked-text: #475569;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}


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

/* Header */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--bg-header);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 40px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    font-size: 1.5rem;
    color: var(--accent-primary);
    filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.6));
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(90deg, #fff, #94a3b8);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.user-stats {
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
}

/* XP Dropdown */
.xp-container {
    position: relative;
    display: inline-block;
}

.xp-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    padding: 12px 16px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 100;
}

.xp-container:hover .xp-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(5px);
}

.xp-level-header {
    font-weight: 700;
    color: var(--text-pure);
    margin-bottom: 8px;
    text-align: center;
    font-size: 1.1rem;
}

.xp-progress-bar-container {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.xp-progress-fill {
    height: 100%;
    background: var(--accent-primary);
    width: 0%;
    transition: width 0.3s ease;
}

.xp-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: center;
}

.stat i {
    border-radius: 20px;
    border: 1px solid var(--border-subtle);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.stat:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
}

.stat.streak i {
    color: #f97316;
}

.stat.xp {
    color: var(--accent-primary);
}

.stat.xp span {
    color: var(--text-pure);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: white;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
    transition: transform 0.2s ease;
}

.user-avatar:hover {
    transform: scale(1.05);
}

/* Main Content */
.hero-section {
    text-align: left;
    margin-bottom: 40px;
}

.hero-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.hero-section p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Units Container */
.units-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-bottom: 60px;
}

/* Unit Card */
.unit-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.unit-card:not(.locked) {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.unit-card:not(.locked):hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.unit-card.locked {
    background: var(--locked-bg);
    opacity: 0.6;
    cursor: not-allowed;
}

/* Unit Header */
.unit-header {
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.unit-header:hover {
    background: rgba(255, 255, 255, 0.02);
}

.unit-title-group {
    display: flex;
    align-items: center;
    gap: 16px;
}

.unit-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(99, 102, 241, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--accent-primary);
    font-size: 1.4rem;
}

.locked .unit-icon {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

.unit-title {
    font-size: 1.25rem;
    font-weight: 600;
}

.locked .unit-title {
    color: var(--locked-text);
}

.toggle-icon {
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.unit-card.expanded .toggle-icon {
    transform: rotate(180deg);
}

/* Sections List */
.sections-list {
    display: none;
    padding: 0 24px 24px 24px;
    border-top: 1px solid var(--border-subtle);
    animation: slideDown 0.3s ease forwards;
}

.unit-card.expanded .sections-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 24px;
}

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

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

/* Section Item */
.section-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: background 0.2s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.section-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--border-subtle);
}

.section-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-name {
    font-weight: 500;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.section-toggle-icon {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.section-item.expanded .section-toggle-icon {
    transform: rotate(180deg);
}

.section-progress-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* Progress Bar */
.progress-container {
    width: 100%;
    height: 8px;
    background: var(--progress-bg);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    /* Default 0, will be updated by JS */
    background: var(--progress-fill);
    border-radius: 4px;
    transition: width 1s cubic-bezier(0.1, 0.8, 0.2, 1);
}

.progress-bar.complete {
    background: var(--progress-complete);
}

/* Word List Dropdown */
.words-dropdown {
    display: none;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    margin-top: 12px;
    border: 1px solid var(--border-subtle);
    animation: slideDown 0.3s ease forwards;
}

.section-item.expanded .words-dropdown {
    display: flex;
}

/* Word Layout & Statuses */
.word-row {
    display: inline-flex;
    flex-direction: row;
    align-items: baseline;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
    border-left: 4px solid var(--text-muted);
    /* Default Grey */
    transition: background 0.2s ease;
}

.word-row:hover {
    background: rgba(255, 255, 255, 0.08);
}

.word-term {
    font-weight: 600;
    color: var(--text-pure);
}

.word-translation {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

/* Status Colors (Grey handled by default border) */
.status--1 {
    /* Red - wrong last attempt */
    border-left-color: #ef4444;
}

.status-1 {
    /* Yellow - correct x1 */
    border-left-color: #eab308;
}

.status-2 {
    /* Green - correct x2 */
    border-left-color: #22c55e;
}

.status-3 {
    /* Blue - correct x3 */
    border-left-color: #3b82f6;
}

.status-4 {
    /* Mastered - correct x4 */
    border-left-color: #a855f7;
}

.status-4 .word-term {
    color: #d8b4fe;
    text-shadow: 0 0 5px rgba(168, 85, 247, 0.5);
}

/* Practice Button */
.practice-btn {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.practice-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

/* Prevent Practice button click from bubbling to section toggle */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.section-title-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Color Key Bar */
.color-key-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 20px;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    width: fit-content;
}

.key-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.key-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    background-color: var(--text-muted);
}

.key-item.status--1 .key-color {
    background-color: #ef4444;
}

.key-item.status-1 .key-color {
    background-color: #eab308;
}

.key-item.status-2 .key-color {
    background-color: #22c55e;
}

.key-item.status-3 .key-color {
    background-color: #3b82f6;
}

.key-item.status-4 .key-color {
    background-color: #a855f7;
}

/* =====================
   PRACTICE MODE STYLES
   ===================== */
.practice-container {
    padding-top: 20px;
}

.practice-nav {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
}

.back-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}

.back-btn:hover {
    color: var(--text-pure);
    transform: translateX(-4px);
}

.practice-selectors {
    display: flex;
    gap: 12px;
    flex-grow: 1;
}

.hero-select {
    background: var(--bg-card);
    color: var(--text-pure);
    border: 1px solid var(--border-subtle);
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    font-weight: 500;
    max-width: 300px;
    outline: none;
}

.hero-select:focus {
    border-color: var(--accent-primary);
}

.round-progress-container {
    width: 150px;
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.round-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 10px;
}

.practice-view {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}

.practice-view.active {
    display: flex;
    animation: fadeIn 0.4s ease forwards;
}

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

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

/* Cards (Config & Summary) */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    min-width: 400px;
    backdrop-filter: blur(10px);
}

.card h2 {
    font-size: 2rem;
    margin-bottom: 8px;
}

.card p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.input-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 16px;
}

.input-group label,
.preset-container label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    display: block;
}

.input-group input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid var(--border-subtle);
    color: var(--text-pure);
    padding: 14px 16px;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1.05rem;
    outline: none;
    transition: all 0.2s ease;
}

.input-group input:focus {
    border-color: var(--accent-primary);
    background: rgba(0, 0, 0, 0.5);
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.3), 0 0 10px rgba(99, 102, 241, 0.2);
}

.preset-container label {
    text-align: center;
}

.preset-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}

.preset-btn {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-subtle);
    color: var(--text-pure);
    padding: 10px 20px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.preset-btn:hover {
    background: rgba(255, 255, 255, 0.05);
}

.preset-btn.active {
    background: rgba(99, 102, 241, 0.2);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.3);
}

.available-words {
    font-size: 0.9rem;
    color: var(--accent-primary);
    margin-bottom: 24px;
    text-align: left;
    width: 100%;
}

/* Buttons */
.primary-btn {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s ease;
    width: 100%;
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.warning-btn {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s ease;
    width: 100%;
}

.warning-btn:hover {
    background: rgba(239, 68, 68, 0.2);
}

.hidden {
    display: none !important;
}

/* Summary Stats */
.summary-stats {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 32px;
}

.summary-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-val {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
}

#summary-correct {
    color: #10b981;
}

#summary-missed {
    color: #ef4444;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 8px;
}

.summary-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}


/* FLASHCARD UI */
.flashcard-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 600px;
    gap: 20px;
    padding-top: 40px;
}

.status-pill {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.status--1-pill {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.status-0-pill {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

.status-1-pill {
    background: rgba(234, 179, 8, 0.15);
    color: #eab308;
}

.status-2-pill {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.status-3-pill {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.status-4-pill {
    background: rgba(168, 85, 247, 0.2);
    color: #d8b4fe;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.4);
}

.english-word-display {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
    background: linear-gradient(90deg, #fff, #cbd5e1);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.practice-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid var(--border-subtle);
    border-radius: 12px;
    padding: 16px;
    font-size: 1.5rem;
    color: var(--text-pure);
    text-align: center;
    font-family: inherit;
    font-weight: 500;
    outline: none;
    transition: all 0.2s ease;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5);
    margin-top: 20px;
}

.practice-input:focus {
    border-color: var(--accent-primary);
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5), 0 0 0 4px rgba(99, 102, 241, 0.15);
}

.practice-input.error {
    border-color: #ef4444;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.05);
}

.correction-hint {
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-pure);
}

#correct-spanish {
    color: #22c55e;
    font-weight: 700;
}

.hint-msg {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: inline-block;
    margin-top: 8px;
}

/* Accent Virtual Keyboard */
.accent-buttons {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.accent-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-pure);
    font-size: 1.2rem;
    font-weight: 500;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
}

.accent-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--text-secondary);
}

/* Animations */
.anim-pop {
    animation: celebratePop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes celebratePop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
        box-shadow: 0 0 20px currentColor;
    }

    100% {
        transform: scale(1);
    }
}

.anim-shake {
    animation: shakeLeftRight 0.4s ease forwards;
}

@keyframes shakeLeftRight {

    0%,
    100% {
        transform: translateX(0);
    }

    20%,
    60% {
        transform: translateX(-8px);
    }

    40%,
    80% {
        transform: translateX(8px);
    }
}

/* =====================
   AUTH MODE STYLES
   ===================== */
.auth-main {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
}

.auth-card {
    max-width: 480px;
    width: 100%;
    padding: 48px 40px;
}

.auth-form {
    margin-top: 24px;
}

.auth-error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    padding: 10px;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 16px;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 24px 0;
    color: var(--text-muted);
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-subtle);
}

.auth-divider span {
    padding: 0 10px;
    font-size: 0.85rem;
    font-weight: 500;
}

.google-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    background: white;
    color: #333;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-family: inherit;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.google-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.google-icon {
    width: 20px;
    height: 20px;
}

/* Nav Auth */
.auth-nav-btn {
    padding: 8px 16px;
    font-size: 0.9rem;
    width: auto;
}

.user-profile-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-profile-pic {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid var(--accent-primary);
}

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

.logout-btn:hover {
    color: #ef4444;
}

/* Responsive */
@media (max-width: 768px) {
    .user-stats {
        gap: 12px;
    }

    .stat {
        padding: 6px 12px;
        font-size: 0.85rem;
    }

    .stat span {
        display: none;
        /* Hide labels on mobile to save space */
    }

    .hero-section h2 {
        font-size: 2rem;
    }

    .unit-header {
        padding: 16px;
    }
}