/* ==========================================
   Aurora Meta Assist — Styles
   ========================================== */

/* ---------- CSS Variables ---------- */
:root {
    --bg-primary: #0a0a1a;
    --bg-secondary: #111128;
    --bg-card: rgba(20, 20, 50, 0.6);
    --bg-card-hover: rgba(30, 30, 70, 0.7);
    --bg-glass: rgba(255, 255, 255, 0.03);
    --border-glass: rgba(255, 255, 255, 0.08);

    --text-primary: #e8e8f0;
    --text-secondary: #8888aa;
    --text-muted: #555577;

    --aurora-purple: #7c3aed;
    --aurora-cyan: #06b6d4;
    --aurora-green: #10b981;
    --aurora-pink: #ec4899;
    --aurora-amber: #f59e0b;

    --gradient-aurora: linear-gradient(135deg, #7c3aed 0%, #06b6d4 50%, #10b981 100%);
    --gradient-meta: linear-gradient(135deg, #7c3aed, #a855f7);
    --gradient-mini: linear-gradient(135deg, #06b6d4, #22d3ee);
    --gradient-micro: linear-gradient(135deg, #10b981, #34d399);

    --win-color: #10b981;
    --loss-color: #ef4444;
    --neutral-color: #6366f1;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.5);
    --shadow-glow-purple: 0 0 30px rgba(124, 58, 237, 0.3);
    --shadow-glow-cyan: 0 0 30px rgba(6, 182, 212, 0.3);

    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 14px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
}

a {
    color: var(--aurora-cyan);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--aurora-purple);
}

/* ---------- Screens ---------- */
.screen {
    display: none;
    min-height: 100vh;
}

.screen.active {
    display: flex;
    flex-direction: column;
}

/* ==========================================
   LOGIN SCREEN
   ========================================== */
.aurora-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background:
        radial-gradient(ellipse 80% 60% at 20% 20%, rgba(124, 58, 237, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse 60% 80% at 80% 80%, rgba(6, 182, 212, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse 70% 50% at 50% 50%, rgba(16, 185, 129, 0.08) 0%, transparent 60%),
        var(--bg-primary);
    animation: auroraPulse 8s ease-in-out infinite alternate;
}

@keyframes auroraPulse {
    0% { opacity: 0.8; }
    50% { opacity: 1; }
    100% { opacity: 0.9; }
}

#login-screen {
    justify-content: center;
    align-items: center;
}

.login-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    padding: 48px 40px;
    background: var(--bg-card);
    backdrop-filter: blur(24px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg), var(--shadow-glow-purple);
    animation: loginSlideUp 0.6s ease-out;
}

@keyframes loginSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.login-logo {
    text-align: center;
    margin-bottom: 36px;
}

.logo-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    animation: logoSpin 12s linear infinite;
}

@keyframes logoSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.logo-icon svg {
    width: 100%;
    height: 100%;
}

.login-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.login-title span {
    background: var(--gradient-aurora);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 6px;
}

/* ---------- Login Form ---------- */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper input {
    width: 100%;
    padding: 14px 48px 14px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 0.95rem;
    transition: all var(--transition-normal);
    outline: none;
}

.input-wrapper input:focus {
    border-color: var(--aurora-purple);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.input-wrapper input::placeholder {
    color: var(--text-muted);
}

.btn-icon {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: color var(--transition-fast);
}

.btn-icon:hover {
    color: var(--text-primary);
}

.btn-icon svg {
    width: 18px;
    height: 18px;
}

.btn-primary {
    width: 100%;
    padding: 14px;
    background: var(--gradient-aurora);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-glow-purple);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-text, .btn-loader {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.hidden {
    display: none !important;
}

.error-msg {
    color: var(--loss-color);
    font-size: 0.85rem;
    padding: 10px 14px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--radius-sm);
}

.login-hint {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ==========================================
   DASHBOARD SCREEN
   ========================================== */
#dashboard-screen {
    background:
        radial-gradient(ellipse 60% 40% at 10% 10%, rgba(124, 58, 237, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse 40% 60% at 90% 90%, rgba(6, 182, 212, 0.05) 0%, transparent 60%),
        var(--bg-primary);
}

/* ---------- Header ---------- */
.dash-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 28px;
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-glass);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-logo svg {
    width: 28px;
    height: 28px;
}

.header-left h2 {
    font-size: 1.1rem;
    font-weight: 600;
}

.header-left h2 span {
    background: var(--gradient-aurora);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.connection-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--win-color);
    box-shadow: 0 0 8px var(--win-color);
    animation: dotPulse 2s ease-in-out infinite;
}

.status-dot.disconnected {
    background: var(--loss-color);
    box-shadow: 0 0 8px var(--loss-color);
    animation: none;
}

@keyframes dotPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.account-info {
    display: flex;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.btn-ghost {
    background: none;
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font);
    font-size: 0.85rem;
}

.btn-ghost:hover {
    border-color: var(--aurora-purple);
    color: var(--text-primary);
    background: rgba(124, 58, 237, 0.1);
}

.btn-ghost:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font);
    font-size: 0.85rem;
}

.btn-secondary:hover {
    border-color: var(--aurora-cyan);
    color: var(--text-primary);
    background: rgba(6, 182, 212, 0.1);
}

/* ---------- Main Content ---------- */
.dash-main {
    flex: 1;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.section-header h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* ---------- Card Base ---------- */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all var(--transition-normal);
}

.card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.12);
}

/* ---------- Balance Card ---------- */
.balance-card {
    text-align: center;
    padding: 40px 32px;
    position: relative;
    overflow: hidden;
}

.balance-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(124, 58, 237, 0.05) 0%, transparent 50%);
    animation: balanceGlow 6s ease-in-out infinite alternate;
}

@keyframes balanceGlow {
    0% { transform: translate(0, 0); }
    100% { transform: translate(10%, -10%); }
}

.balance-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.balance-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.balance-updated {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.balance-value {
    font-size: 3.5rem;
    font-weight: 800;
    background: var(--gradient-aurora);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 12px 0;
    letter-spacing: -1px;
    position: relative;
    z-index: 1;
    animation: balancePop 0.4s ease-out;
}

@keyframes balancePop {
    0% { transform: scale(0.95); opacity: 0.7; }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); opacity: 1; }
}

.balance-change {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.balance-change .change-value {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--win-color);
}

.balance-change .change-value.negative {
    color: var(--loss-color);
}

.balance-change .change-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ---------- Meta Cards ---------- */
.metas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 16px;
}

.meta-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    overflow: hidden;
}

.meta-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.meta-major::after {
    background: var(--gradient-meta);
}

.meta-mini::after {
    background: var(--gradient-mini);
}

.meta-micro::after {
    background: var(--gradient-micro);
}

.meta-icon {
    font-size: 1.8rem;
}

.meta-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.meta-title {
    font-size: 1.1rem;
    font-weight: 700;
}

.meta-increment {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.meta-progress-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.meta-progress-bar {
    height: 10px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}

.meta-progress-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
}

.meta-major .meta-progress-fill {
    background: var(--gradient-meta);
    box-shadow: 0 0 10px rgba(124, 58, 237, 0.4);
}

.meta-mini .meta-progress-fill {
    background: var(--gradient-mini);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.4);
}

.meta-micro .meta-progress-fill {
    background: var(--gradient-micro);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.meta-progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}

.meta-progress-text span:first-child {
    font-weight: 600;
    color: var(--text-primary);
}

.meta-progress-text span:last-child {
    color: var(--text-muted);
}

.meta-achieved {
    font-size: 0.8rem;
    color: var(--text-secondary);
    padding-top: 4px;
    border-top: 1px solid var(--border-glass);
}

/* ---------- Stats Grid ---------- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}

.stat-card {
    text-align: center;
    padding: 20px 16px;
}

.stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-win .stat-value {
    color: var(--win-color);
}

.stat-loss .stat-value {
    color: var(--loss-color);
}

.stat-profit .stat-value.positive {
    color: var(--win-color);
}

.stat-profit .stat-value.negative {
    color: var(--loss-color);
}

.stats-period {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ---------- Operations Table ---------- */
.ops-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.select-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 0.85rem;
    cursor: pointer;
    outline: none;
    transition: border-color var(--transition-fast);
}

.select-input:focus {
    border-color: var(--aurora-purple);
}

.select-input option {
    background: var(--bg-secondary);
}

.table-card {
    padding: 0;
    overflow: hidden;
}

.table-wrapper {
    overflow-x: auto;
}

#ops-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

#ops-table thead {
    background: rgba(255, 255, 255, 0.03);
}

#ops-table th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-glass);
    white-space: nowrap;
}

#ops-table td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    white-space: nowrap;
}

#ops-table tbody tr {
    transition: background var(--transition-fast);
}

#ops-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

#ops-table .profit-positive {
    color: var(--win-color);
    font-weight: 600;
}

#ops-table .profit-negative {
    color: var(--loss-color);
    font-weight: 600;
}

.empty-row td {
    text-align: center;
    color: var(--text-muted);
    padding: 40px 16px !important;
}

.table-pagination {
    padding: 12px 16px;
    text-align: center;
    border-top: 1px solid var(--border-glass);
}

/* ---------- Achievements ---------- */
.achievements-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.empty-achievements {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

.empty-achievements span {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 12px;
}

.achievement-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    animation: achieveSlide 0.4s ease-out;
}

@keyframes achieveSlide {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.achievement-item .ach-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.achievement-item .ach-info {
    flex: 1;
}

.achievement-item .ach-type {
    font-weight: 600;
    font-size: 0.9rem;
}

.achievement-item .ach-value {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.achievement-item .ach-time {
    font-size: 0.72rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

.achievement-item.type-meta {
    border-left: 3px solid var(--aurora-purple);
}

.achievement-item.type-mini {
    border-left: 3px solid var(--aurora-cyan);
}

.achievement-item.type-micro {
    border-left: 3px solid var(--aurora-green);
}

/* ---------- Footer ---------- */
.dash-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 28px;
    border-top: 1px solid var(--border-glass);
    font-size: 0.75rem;
    color: var(--text-muted);
    flex-wrap: wrap;
    gap: 10px;
}

/* ---------- Toast Notifications ---------- */
#toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
    pointer-events: none;
}

.toast {
    padding: 14px 20px;
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.85rem;
    box-shadow: var(--shadow-md);
    pointer-events: auto;
    animation: toastIn 0.35s ease-out;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 380px;
}

.toast.removing {
    animation: toastOut 0.3s ease-in forwards;
}

.toast.success {
    border-left: 3px solid var(--win-color);
}

.toast.error {
    border-left: 3px solid var(--loss-color);
}

.toast.info {
    border-left: 3px solid var(--aurora-cyan);
}

.toast.achievement {
    border-left: 3px solid var(--aurora-amber);
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes toastOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(30px);
    }
}

/* ---------- Achievement Popup ---------- */
.achievement-popup {
    position: fixed;
    inset: 0;
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    animation: popupFadeIn 0.3s ease-out;
}

.achievement-popup.hidden {
    display: none;
}

.achievement-popup.removing {
    animation: popupFadeOut 0.5s ease-in forwards;
}

@keyframes popupFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes popupFadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.achievement-content {
    text-align: center;
    padding: 48px 60px;
    background: var(--bg-card);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg), 0 0 60px rgba(124, 58, 237, 0.2), 0 0 100px rgba(6, 182, 212, 0.1);
    animation: achievePopIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes achievePopIn {
    0% {
        opacity: 0;
        transform: scale(0.5) rotate(-5deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0);
    }
}

.achievement-icon {
    font-size: 4rem;
    margin-bottom: 16px;
    animation: achieveIconPulse 1s ease-in-out infinite alternate;
}

@keyframes achieveIconPulse {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

.achievement-title {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-aurora);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.achievement-detail {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .dash-header {
        padding: 12px 16px;
        flex-wrap: wrap;
        gap: 10px;
    }

    .header-right {
        gap: 10px;
    }

    .account-info {
        display: none;
    }

    .dash-main {
        padding: 16px;
        gap: 20px;
    }

    .balance-value {
        font-size: 2.5rem;
    }

    .metas-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .login-container {
        margin: 16px;
        padding: 32px 24px;
    }

    .ops-controls {
        flex-wrap: wrap;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .balance-value {
        font-size: 2rem;
    }

    .achievements-list {
        grid-template-columns: 1fr;
    }
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}
