/* ═══════════════════════════════════════════════════════════
   SpeakScorer — Premium Design System  ·  "Konuş, parla."
   Futuristic, energetic gamified dark theme · Glassmorphism · Neon Accents
   Inspired by: AI-generated mockup visuals (cyan/teal/neon-green palette)
   Fonts: Unbounded (display) · Sora (headings) · Plus Jakarta Sans (body)
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Sora:wght@500;600;700;800&family=Unbounded:wght@600;700;800&display=swap');

:root {
    /* ── Backgrounds ───────────────────────── */
    --bg-base: #0a0e1a;
    --bg-deep: #060a14;
    --bg-elev: #0f1729;
    --surface-1: rgba(255, 255, 255, 0.05);
    --surface-2: rgba(255, 255, 255, 0.08);
    --surface-3: rgba(255, 255, 255, 0.12);
    --glass: rgba(12, 20, 38, 0.65);
    --glass-strong: rgba(8, 14, 28, 0.85);

    /* ── Text ──────────────────────────────── */
    --text-1: #f0f4ff;
    --text-2: #b0bcd0;
    --text-3: #6b7a8d;

    /* ── Borders ───────────────────────────── */
    --border: rgba(255, 255, 255, 0.09);
    --border-strong: rgba(255, 255, 255, 0.15);
    --border-accent: rgba(34, 211, 238, 0.5);

    /* ── Brand / Accents ───────────────────── */
    --brand-1: #06b6d4;   /* Cyan */
    --brand-2: #22d3ee;   /* Light Cyan */
    --brand-3: #10b981;   /* Emerald */
    --brand: #22d3ee;
    --brand-soft: rgba(34, 211, 238, 0.14);

    --lime: #a3e635;      /* Energy / XP */
    --cyan: #22d3ee;      /* Data */
    --amber: #f59e0b;
    --fire-1: #f97316;
    --fire-2: #ef4444;
    --green: #10b981;
    --red: #f43f5e;

    /* ── Signature gradients ───────────────── */
    --grad-brand: linear-gradient(135deg, #06b6d4 0%, #22d3ee 50%, #10b981 100%);
    --grad-brand-soft: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(16, 185, 129, 0.2));
    --grad-energy: linear-gradient(135deg, #a3e635, #10b981);
    --grad-data: linear-gradient(135deg, #06b6d4, #22d3ee);
    --grad-fire: linear-gradient(135deg, #f97316, #ef4444);
    --grad-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);

    /* ── Glow shadows ──────────────────────── */
    --glow-brand: 0 8px 32px 0 rgba(6, 182, 212, 0.4);
    --glow-fire: 0 8px 24px -4px rgba(239, 68, 68, 0.55);
    --glow-success: 0 8px 24px -4px rgba(16, 185, 129, 0.55);
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 12px 36px -8px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 32px 64px -16px rgba(0, 0, 0, 0.9);

    /* ── Radius ────────────────────────────── */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;

    /* ── Spacing ───────────────────────────── */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;

    /* ── Font families ─────────────────────── */
    --font-display: 'Unbounded', system-ui, sans-serif;
    --font-head: 'Sora', system-ui, sans-serif;
    --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

    /* ── Font sizes (fluid) ────────────────── */
    --font-xs: 0.75rem;
    --font-sm: 0.875rem;
    --font-md: 1rem;
    --font-lg: 1.125rem;
    --font-xl: clamp(1.2rem, 1rem + 0.7vw, 1.45rem);
    --font-2xl: clamp(1.4rem, 1.1rem + 1.4vw, 1.9rem);
    --font-3xl: clamp(1.9rem, 1.4rem + 2.4vw, 2.8rem);

    /* ── Layout ────────────────────────────── */
    --sidebar-width: 270px;
    --rail-width: 88px;
    --topbar-height: 64px;
    --bottomnav-height: 72px;
}

/* ── Reset ─────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-body);
    background: var(--bg-base);
    color: var(--text-1);
    line-height: 1.6;
    min-height: 100vh;
    min-height: 100dvh;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

/* Atmospheric background: aurora blobs + noise grain */
body::before {
    content: '';
    position: fixed;
    inset: -25vmax;
    z-index: -2;
    background:
        radial-gradient(42vmax 42vmax at 8% 5%, rgba(6, 182, 212, 0.25), transparent 70%),
        radial-gradient(38vmax 38vmax at 90% 10%, rgba(16, 185, 129, 0.2), transparent 70%),
        radial-gradient(45vmax 45vmax at 82% 88%, rgba(34, 211, 238, 0.18), transparent 70%),
        radial-gradient(35vmax 35vmax at 15% 92%, rgba(163, 230, 53, 0.12), transparent 70%);
    filter: blur(20px);
    animation: auroraDrift 30s ease-in-out infinite alternate;
}
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.4;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
}

a { color: var(--brand); text-decoration: none; transition: color 0.25s, filter 0.25s; }
a:hover { color: #67e8f9; filter: drop-shadow(0 0 8px rgba(34, 211, 238, 0.5)); }

::selection { background: rgba(6, 182, 212, 0.4); color: #fff; }

/* Custom scrollbar */
* { scrollbar-width: thin; scrollbar-color: var(--surface-3) transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: var(--surface-2); border-radius: 99px; border: 2px solid transparent; background-clip: padding-box; }
*::-webkit-scrollbar-thumb:hover { background: var(--surface-3); background-clip: padding-box; }

/* ── Typography ────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.25; letter-spacing: -0.02em; color: var(--text-1); }
h1 { font-size: var(--font-2xl); }
h2 { font-size: var(--font-xl); }
h3 { font-size: var(--font-lg); }

.text-gradient {
    background: var(--grad-brand);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
    filter: drop-shadow(0 2px 10px rgba(34, 211, 238, 0.3));
}

/* ── Utilities ─────────────────────────────── */
.hidden { display: none !important; }
.text-center { text-align: center; }
.text-sm { font-size: var(--font-sm); }
.text-xs { font-size: var(--font-xs); }
.text-muted { color: var(--text-3); }
.text-secondary { color: var(--text-2); }
.mb-sm { margin-bottom: var(--space-sm); } .mb-md { margin-bottom: var(--space-md); } .mb-lg { margin-bottom: var(--space-lg); }
.mt-sm { margin-top: var(--space-sm); } .mt-lg { margin-top: var(--space-lg); }
.w-full { width: 100%; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }

/* ═══════════════════════════════════════════════
   AUTH / LANDING
   ═══════════════════════════════════════════════ */
.auth-page {
    display: flex; align-items: center; justify-content: center;
    min-height: 100vh; min-height: 100dvh;
    padding: var(--space-lg);
    position: relative;
}
.auth-card {
    width: 100%; max-width: 460px;
    background: var(--glass-strong);
    backdrop-filter: blur(25px) saturate(160%);
    -webkit-backdrop-filter: blur(25px) saturate(160%);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-xl);
    padding: clamp(1.75rem, 5vw, 3rem);
    box-shadow: var(--shadow-lg), 0 0 40px rgba(139, 92, 246, 0.08);
    position: relative;
    overflow: hidden;
    animation: rise 0.8s cubic-bezier(.16,1,0.3,1) both;
}
.auth-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: var(--grad-brand);
}
.auth-header { text-align: center; margin-bottom: var(--space-xl); }
.auth-header .logo {
    width: 80px; height: 80px; margin: 0 auto var(--space-md);
    display: grid; place-items: center;
    font-size: 2.4rem;
    background: var(--grad-brand);
    border-radius: var(--radius-lg);
    box-shadow: var(--glow-brand);
    animation: floaty 6s ease-in-out infinite;
}
.auth-header h1 { font-family: var(--font-display); font-size: 2.2rem; font-weight: 800; letter-spacing: -0.04em; }
.auth-header p { color: var(--text-2); font-size: var(--font-sm); margin-top: 6px; }

.auth-tabs {
    display: flex; gap: 6px; margin-bottom: var(--space-xl);
    background: var(--surface-1); border: 1px solid var(--border);
    border-radius: var(--radius-full); padding: 5px;
}
.auth-tab {
    flex: 1; padding: 0.75rem; text-align: center;
    background: transparent; border: none; color: var(--text-2);
    border-radius: var(--radius-full); cursor: pointer;
    font-family: var(--font-body); font-weight: 700; font-size: var(--font-sm);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.auth-tab.active { background: var(--grad-brand); color: #fff; box-shadow: var(--glow-brand); }

/* ═══════════════════════════════════════════════
   APP SHELL  (sidebar · topbar · bottom nav)
   ═══════════════════════════════════════════════ */
.dashboard-layout { display: flex; min-height: 100vh; min-height: 100dvh; }

/* ── Sidebar ───────────────────────────────── */
.sidebar {
    width: var(--sidebar-width);
    background: var(--glass-strong);
    backdrop-filter: blur(25px) saturate(150%);
    -webkit-backdrop-filter: blur(25px) saturate(150%);
    border-right: 1px solid var(--border);
    display: flex; flex-direction: column;
    position: fixed; top: 0; left: 0; height: 100vh; height: 100dvh;
    z-index: 200;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.sidebar-brand {
    padding: var(--space-lg);
    display: flex; align-items: center; gap: var(--space-md);
    border-bottom: 1px solid var(--border);
}
.sidebar-brand .brand-icon {
    width: 44px; height: 44px; flex-shrink: 0;
    background: var(--grad-brand);
    border-radius: var(--radius-md);
    display: grid; place-items: center; font-size: 1.3rem;
    box-shadow: var(--glow-brand);
}
.sidebar-brand .brand-text {
    font-family: var(--font-display); font-size: 1.25rem; font-weight: 800;
    letter-spacing: -0.02em; color: var(--text-1); white-space: nowrap;
}
.sidebar-nav { list-style: none; padding: var(--space-md) var(--space-sm); flex: 1; overflow-y: auto; }
.sidebar-nav li { margin-bottom: 6px; }
.sidebar-nav li a {
    display: flex; align-items: center; gap: var(--space-md);
    padding: 0.8rem 1rem;
    border-radius: var(--radius-md);
    color: var(--text-2); font-weight: 600; font-size: var(--font-sm);
    position: relative; transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1); white-space: nowrap;
}
.sidebar-nav li a:hover { background: var(--surface-1); color: var(--text-1); transform: translateX(3px); }
.sidebar-nav li a.active { background: var(--brand-soft); color: var(--text-1); border: 1px solid rgba(6, 182, 212, 0.2); }
.sidebar-nav li a.active::before {
    content: ''; position: absolute; left: -8px; top: 50%; transform: translateY(-50%);
    width: 4px; height: 60%; border-radius: 99px; background: var(--grad-brand);
    box-shadow: var(--glow-brand);
}
.nav-icon { font-size: 1.3rem; width: 28px; text-align: center; flex-shrink: 0; }

.sidebar-user { padding: var(--space-md); border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: var(--space-md); }
.sidebar-user-info {
    display: flex; align-items: center; gap: var(--space-sm);
    padding: var(--space-sm); border-radius: var(--radius-md);
    background: var(--surface-1); cursor: pointer; transition: background 0.25s, border-color 0.25s;
    border: 1px solid transparent; width: 100%; text-align: left; font-family: inherit;
}
.sidebar-user-info:hover { background: var(--surface-2); border-color: rgba(255, 255, 255, 0.05); }
.user-avatar {
    width: 42px; height: 42px; flex-shrink: 0;
    border-radius: var(--radius-full);
    background: var(--grad-brand);
    display: grid; place-items: center;
    font-weight: 800; font-size: var(--font-sm); color: #fff;
    box-shadow: var(--glow-brand);
}
.sidebar-user .user-name { font-weight: 700; font-size: var(--font-sm); color: var(--text-1); }
.sidebar-user .user-role { font-size: var(--font-xs); color: var(--text-3); }
.sidebar-logout {
    display: flex; align-items: center; justify-content: center; gap: var(--space-sm);
    padding: 0.7rem; border-radius: var(--radius-md); border: 1px solid rgba(244, 63, 94, 0.25);
    background: rgba(244, 63, 94, 0.08); color: var(--red);
    cursor: pointer; font-family: var(--font-body); font-size: var(--font-sm); font-weight: 700;
    transition: all 0.25s; width: 100%;
}
.sidebar-logout:hover { background: rgba(244, 63, 94, 0.18); box-shadow: 0 4px 15px rgba(244, 63, 94, 0.15); }

/* ── Topbar (mobile / tablet) ──────────────── */
.topbar {
    display: none;
    position: sticky; top: 0; z-index: 150;
    height: var(--topbar-height);
    align-items: center; gap: var(--space-sm);
    padding: 0 var(--space-md);
    background: var(--glass-strong);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border-bottom: 1px solid var(--border);
}
.topbar .icon-btn { font-size: 1.5rem; }
.topbar-brand { display: flex; align-items: center; gap: var(--space-sm); font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; }
.topbar-brand .brand-icon {
    width: 36px; height: 36px; background: var(--grad-brand); border-radius: 10px;
    display: grid; place-items: center; font-size: 1.05rem; box-shadow: var(--glow-brand);
}
.icon-btn {
    width: 44px; height: 44px; flex-shrink: 0;
    display: grid; place-items: center;
    background: transparent; border: none; color: var(--text-1);
    border-radius: var(--radius-md); cursor: pointer; transition: background 0.25s;
}
.icon-btn:hover { background: var(--surface-1); }

/* ── Drawer scrim ──────────────────────────── */
.scrim {
    display: none; position: fixed; inset: 0; z-index: 190;
    background: rgba(4, 3, 7, 0.65); backdrop-filter: blur(3px);
    opacity: 0; transition: opacity 0.3s;
}
.scrim.open { display: block; opacity: 1; }

/* ── Bottom nav (mobile) ───────────────────── */
.bottomnav {
    display: none;
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 150;
    height: calc(var(--bottomnav-height) + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: var(--glass-strong);
    backdrop-filter: blur(25px) saturate(150%);
    -webkit-backdrop-filter: blur(25px) saturate(150%);
    border-top: 1px solid var(--border);
    align-items: stretch;
}
.bottomnav a {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 4px; color: var(--text-3); font-size: 0.7rem; font-weight: 700;
    min-width: 44px; position: relative; transition: color 0.25s; padding: 6px 2px;
}
.bottomnav a .nav-icon { font-size: 1.4rem; width: auto; transition: transform 0.25s; }
.bottomnav a.active { color: var(--text-1); }
.bottomnav a.active .nav-icon { transform: translateY(-3px) scale(1.15); }
.bottomnav a.active::after {
    content: ''; position: absolute; top: 4px; width: 28px; height: 3px; border-radius: 99px;
    background: var(--grad-brand); box-shadow: var(--glow-brand);
}

/* ── Main content ──────────────────────────── */
.dashboard-content {
    flex: 1; margin-left: var(--sidebar-width);
    padding: var(--space-xl) clamp(1rem, 4vw, 3rem);
    min-height: 100vh; min-width: 0;
}
.page-header {
    margin-bottom: var(--space-xl);
    display: flex; align-items: center; justify-content: space-between;
    gap: var(--space-md); flex-wrap: wrap;
    animation: rise 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.page-header h1 { font-size: var(--font-2xl); font-weight: 800; font-family: var(--font-display); }

/* ═══════════════════════════════════════════════
   CARDS & GLASSMORPHISM
   ═══════════════════════════════════════════════ */
.card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%), var(--glass);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: clamp(1.25rem, 3vw, 2.25rem);
    margin-bottom: var(--space-xl);
    box-shadow: var(--shadow-md), 0 8px 32px 0 rgba(0, 0, 0, 0.35);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.3s, box-shadow 0.3s;
    animation: rise 0.65s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.card:hover {
    transform: translateY(-5px);
    border-color: var(--border-accent);
    box-shadow: var(--shadow-lg), 0 0 25px rgba(6, 182, 212, 0.2);
}
/* Sublimal glass shine top edge */
.card::after {
    content: ''; position: absolute; inset: 0; border-radius: inherit;
    padding: 1px; pointer-events: none;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, transparent 40%, transparent 60%, rgba(255, 255, 255, 0.04) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}
.card-header { margin-bottom: var(--space-lg); }
.card-title { font-size: var(--font-lg); font-weight: 700; font-family: var(--font-head); }

/* Stat cards */
.stat-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.015) 100%), var(--glass);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    position: relative; overflow: hidden;
    box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.3s, box-shadow 0.3s;
    animation: rise 0.65s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.stat-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-accent);
    box-shadow: var(--shadow-lg), 0 12px 30px -5px rgba(6, 182, 212, 0.25);
}
.stat-card::after {
    content: ''; position: absolute; inset: 0; border-radius: inherit;
    padding: 1px; pointer-events: none;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0%, transparent 50%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}
.stat-icon {
    width: 54px; height: 54px; border-radius: var(--radius-md);
    display: grid; place-items: center; font-size: 1.6rem; margin-bottom: var(--space-md);
    background: var(--surface-2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.stat-card:nth-child(1) .stat-icon { color: var(--brand-1); background: rgba(6, 182, 212, 0.2); }
.stat-card:nth-child(2) .stat-icon { color: var(--cyan); background: rgba(34, 211, 238, 0.2); }
.stat-card:nth-child(3) .stat-icon { color: var(--amber); background: rgba(245, 158, 11, 0.2); }
.stat-card:nth-child(4) .stat-icon { color: var(--red); background: rgba(244, 63, 94, 0.2); }

.stat-value { font-family: var(--font-display); font-size: var(--font-2xl); font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.stat-label { font-size: 0.7rem; color: var(--text-3); margin-top: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }

/* Task cards */
.task-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%), var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.3s, box-shadow 0.3s;
    animation: rise 0.65s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.task-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-accent);
    box-shadow: var(--shadow-lg), 0 8px 24px -5px rgba(6, 182, 212, 0.2);
}

/* ═══════════════════════════════════════════════
   GRID
   ═══════════════════════════════════════════════ */
.grid { display: grid; gap: var(--space-xl); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1200px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px)  { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.chart-box { position: relative; width: 100%; height: clamp(240px, 35vw, 340px); }

/* ═══════════════════════════════════════════════
   TABLES
   ═══════════════════════════════════════════════ */
.table-container { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-md); border: 1px solid var(--border); background: rgba(255, 255, 255, 0.01); }
table { width: 100%; border-collapse: collapse; }
thead th {
    padding: 1rem 1.25rem; text-align: left;
    font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px;
    color: var(--text-3); border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.015);
}
tbody td { padding: 1rem 1.25rem; font-size: var(--font-sm); color: var(--text-2); border-bottom: 1px solid var(--border); }
tbody tr { transition: background 0.2s; }
tbody tr:hover { background: var(--surface-1); }
tbody tr:last-child td { border-bottom: none; }

@media (max-width: 720px) {
    table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    table, tbody, tr, td { display: block; width: 100%; }
    tbody tr {
        background: var(--surface-1); border: 1px solid var(--border);
        border-radius: var(--radius-md); padding: var(--space-sm) var(--space-md);
        margin-bottom: var(--space-md);
    }
    tbody td {
        display: flex; justify-content: space-between; align-items: center; gap: var(--space-md);
        padding: 0.65rem 0; border-bottom: 1px solid var(--border); text-align: right;
    }
    tbody td:last-child { border-bottom: none; }
    tbody td::before {
        content: attr(data-label); font-weight: 700; color: var(--text-3);
        font-size: var(--font-xs); text-transform: uppercase; letter-spacing: 0.5px; text-align: left;
    }
    tbody td[data-label=""]::before { content: none; }
}

/* ═══════════════════════════════════════════════
   BADGES
   ═══════════════════════════════════════════════ */
.badge {
    display: inline-flex; align-items: center;
    padding: 0.35rem 0.85rem; border-radius: var(--radius-full);
    font-size: 0.7rem; font-weight: 700; letter-spacing: 0.5px; white-space: nowrap;
    border: 1px solid transparent;
}
.badge-primary { background: rgba(6, 182, 212, 0.15); color: #67e8f9; border-color: rgba(6, 182, 212, 0.3); }
.badge-success { background: rgba(16, 185, 129, 0.12); color: #34d399; border-color: rgba(16, 185, 129, 0.25); }
.badge-warning { background: rgba(245, 158, 11, 0.12); color: #fbbf24; border-color: rgba(245, 158, 11, 0.25); }
.badge-danger  { background: rgba(244, 63, 94, 0.12); color: #f87171; border-color: rgba(244, 63, 94, 0.25); }
.badge-info    { background: rgba(6, 182, 212, 0.12); color: #22d3ee; border-color: rgba(6, 182, 212, 0.25); }

/* ═══════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: var(--space-sm);
    padding: 0.75rem 1.5rem; min-height: 46px;
    border: 1px solid transparent; border-radius: var(--radius-full);
    font-family: var(--font-body); font-size: var(--font-sm); font-weight: 700;
    cursor: pointer; transition: transform 0.2s, box-shadow 0.25s, background 0.25s, filter 0.25s;
    position: relative; overflow: hidden; white-space: nowrap;
}
.btn:active { transform: scale(0.96); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

.btn-primary { background: var(--grad-brand); color: #fff; background-size: 150% 150%; box-shadow: var(--glow-brand); }
.btn-primary:hover:not(:disabled) { transform: translateY(-2px) scale(1.02); filter: brightness(1.1); background-position: 100% 0; box-shadow: 0 10px 25px rgba(6, 182, 212, 0.5), 0 0 12px rgba(16, 185, 129, 0.3); }
.btn-secondary { background: var(--surface-2); color: var(--text-1); border-color: var(--border); }
.btn-secondary:hover:not(:disabled) { background: var(--surface-3); transform: translateY(-2px); border-color: var(--border-strong); }
.btn-success { background: var(--grad-energy); color: #051a0b; box-shadow: var(--glow-success); }
.btn-success:hover:not(:disabled) { transform: translateY(-2px) scale(1.02); filter: brightness(1.08); box-shadow: 0 10px 25px rgba(16, 185, 129, 0.5); }
.btn-danger { background: linear-gradient(135deg, #f43f5e, #be123c); color: #fff; box-shadow: var(--glow-fire); }
.btn-danger:hover:not(:disabled) { transform: translateY(-2px) scale(1.02); filter: brightness(1.08); box-shadow: 0 10px 25px rgba(244, 63, 94, 0.5); }
.btn-info { background: var(--grad-data); color: #fff; }
.btn-info:hover:not(:disabled) { transform: translateY(-2px) scale(1.02); filter: brightness(1.1); }
.btn-sm { padding: 0.5rem 1rem; min-height: 38px; font-size: var(--font-xs); }
.btn-lg { padding: 1rem 2.25rem; min-height: 54px; font-size: var(--font-md); }

/* ── Ribbon overlay ── */
.btn-primary::after {
    content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%); transition: transform 0.6s ease;
}
.btn-primary:hover::after { transform: translateX(100%); }

/* ═══════════════════════════════════════════════
   FORMS
   ═══════════════════════════════════════════════ */
.form-group { margin-bottom: var(--space-lg); }
.form-label { display: block; font-size: var(--font-sm); font-weight: 700; color: var(--text-2); margin-bottom: var(--space-sm); }
.form-input, .form-select, .form-textarea {
    width: 100%; padding: 0.85rem 1.1rem; min-height: 48px;
    background: rgba(255, 255, 255, 0.02); border: 1px solid var(--border);
    border-radius: var(--radius-md); color: var(--text-1);
    font-family: var(--font-body); font-size: var(--font-md);
    transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-3); }
.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none; border-color: var(--brand);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.25);
}
.form-select { appearance: none; -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%238a85a3' stroke-width='2.2'%3E%3Cpath d='M3 5l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 1.1rem center; padding-right: 2.5rem;
}
.form-select option { background: var(--bg-elev); color: var(--text-1); }
.form-textarea { resize: vertical; min-height: 110px; line-height: 1.6; }

/* ═══════════════════════════════════════════════
   ALERTS
   ═══════════════════════════════════════════════ */
.alert {
    padding: 0.95rem 1.25rem; border-radius: var(--radius-md);
    font-size: var(--font-sm); font-weight: 600; margin-bottom: var(--space-lg);
    display: flex; align-items: center; gap: var(--space-sm);
    border: 1px solid; animation: slideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(12px); box-shadow: var(--shadow-md);
}
.alert-success { background: rgba(16, 185, 129, 0.12); color: #34d399; border-color: rgba(16, 185, 129, 0.3); }
.alert-error   { background: rgba(244, 63, 94, 0.12); color: #f87171; border-color: rgba(244, 63, 94, 0.3); }
.alert-warning { background: rgba(245, 158, 11, 0.12); color: #fbbf24; border-color: rgba(245, 158, 11, 0.3); }
.alert-info    { background: rgba(34, 211, 238, 0.12); color: #22d3ee; border-color: rgba(34, 211, 238, 0.3); }

/* Floating toast variant */
.alert.toast {
    position: fixed; top: calc(var(--topbar-height) + 16px); right: 16px; left: 16px;
    max-width: 440px; margin-left: auto; z-index: 400;
}

/* ═══════════════════════════════════════════════
   EMPTY · SPINNER
   ═══════════════════════════════════════════════ */
.empty-state { text-align: center; padding: var(--space-2xl) var(--space-lg); color: var(--text-3); }
.empty-icon { font-size: 3.5rem; margin-bottom: var(--space-md); opacity: 0.85; animation: floaty 4.5s ease-in-out infinite; }

.spinner {
    width: 48px; height: 48px; border-radius: 50%;
    border: 3.5px solid var(--surface-2); border-top-color: var(--brand);
    animation: spin 0.85s linear infinite;
    box-shadow: var(--glow-brand);
}

/* ═══════════════════════════════════════════════
   GAMIFICATION & PREMIUM STATS
   ═══════════════════════════════════════════════ */
/* XP / Level banner */
.level-banner {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%), var(--glass-strong);
    border: 1px solid rgba(6, 182, 212, 0.25);
    border-radius: var(--radius-xl);
    padding: var(--space-xl) var(--space-lg);
    margin-bottom: var(--space-xl);
    position: relative; overflow: hidden;
    box-shadow: var(--shadow-md), 0 0 25px rgba(6, 182, 212, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    animation: rise 0.65s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.level-chip {
    display: inline-grid; place-items: center;
    width: 60px; height: 60px; border-radius: var(--radius-md);
    background: var(--grad-brand); box-shadow: var(--glow-brand);
    font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.xp-bar { height: 16px; background: var(--surface-2); border-radius: var(--radius-full); overflow: hidden; position: relative; border: 1px solid var(--border); }
.xp-bar-fill {
    height: 100%; width: 0; border-radius: var(--radius-full);
    background: linear-gradient(90deg, #a3e635, #10b981);
    transition: width 1.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative; overflow: hidden;
    box-shadow: 0 0 14px rgba(16, 185, 129, 0.7), 0 0 6px rgba(34, 211, 238, 0.4);
}
.xp-bar-fill::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transform: translateX(-100%); animation: shimmer 2.5s ease-in-out infinite;
}

/* Streak flame */
.streak-chip { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--amber); font-family: var(--font-display); }
.streak-flame { font-size: 1.5rem; display: inline-block; transform-origin: bottom center; animation: flicker 1.8s ease-in-out infinite; filter: drop-shadow(0 0 8px rgba(245,158,11,0.6)); }

/* Badge tiles */
.badge-tile {
    text-align: center; padding: var(--space-lg);
    background: rgba(255, 255, 255, 0.015); border: 1px solid var(--border);
    border-radius: var(--radius-lg); transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.3s, box-shadow 0.3s;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}
.badge-tile:hover:not(.locked) {
    transform: translateY(-6px) scale(1.03);
    border-color: var(--border-accent);
    box-shadow: var(--shadow-md), 0 8px 25px -5px rgba(6, 182, 212, 0.25);
}
.badge-tile .badge-emoji { font-size: 2.6rem; filter: drop-shadow(0 4px 12px rgba(6, 182, 212, 0.4)); margin-bottom: var(--space-sm); }
.badge-tile.locked { opacity: 0.3; filter: grayscale(0.8); cursor: not-allowed; }

/* Score circle */
.score-circle {
    width: 116px; height: 116px; border-radius: 50%;
    display: grid; place-items: center; position: relative;
    --val: 0;
    background: conic-gradient(var(--score-color, var(--brand)) calc(var(--val) * 3.6deg), var(--surface-2) 0deg);
    box-shadow: var(--shadow-sm);
    transition: background 0.3s;
}
.score-circle::before { content: ''; position: absolute; inset: 10px; border-radius: 50%; background: var(--bg-elev); box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.5); }
.score-circle .score-value { position: relative; font-family: var(--font-display); font-size: var(--font-2xl); font-weight: 800; text-shadow: 0 0 10px rgba(255, 255, 255, 0.15); }

/* Leaderboard rows + podium */
.rank-badge { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 0.8rem; font-weight: 800; flex-shrink: 0; }
.rank-1 { background: linear-gradient(135deg, #fef08a, #d97706); color: #451a03; box-shadow: 0 0 20px rgba(217,119,6,0.55), inset 0 1px 0 rgba(255, 255, 255, 0.3); border: 1px solid rgba(255, 255, 255, 0.15); }
.rank-2 { background: linear-gradient(135deg, #f3f4f6, #6b7280); color: #111827; box-shadow: 0 0 12px rgba(107,114,128,0.25); }
.rank-3 { background: linear-gradient(135deg, #fcd34d, #9a3412); color: #fff; box-shadow: 0 0 12px rgba(154,52,18,0.3); }
.rank-default { background: var(--surface-2); color: var(--text-2); border: 1px solid rgba(255, 255, 255, 0.02); }

.lb-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); padding: 0.85rem 1rem; border-radius: var(--radius-md); transition: background 0.2s, transform 0.2s; }
.lb-row + .lb-row { border-top: 1px solid var(--border); }
.lb-row:hover { background: rgba(255, 255, 255, 0.015); transform: translateX(2px); }
.lb-row.is-me { background: var(--brand-soft); border: 1px solid var(--border-accent); border-radius: var(--radius-md); box-shadow: 0 0 15px rgba(6, 182, 212, 0.12); }

.podium { display: flex; align-items: flex-end; justify-content: center; gap: var(--space-lg); padding: var(--space-md) 0 var(--space-xl); }
.podium-spot { display: flex; flex-direction: column; align-items: center; gap: var(--space-sm); flex: 1; max-width: 140px; }
.podium-ava { width: 60px; height: 60px; border-radius: 50%; background: var(--grad-brand); display: grid; place-items: center; font-weight: 800; color: #fff; font-size: 1.3rem; box-shadow: var(--glow-brand); border: 2px solid rgba(255, 255, 255, 0.1); position: relative; }
.podium-spot:first-child .podium-ava { width: 72px; height: 72px; font-size: 1.5rem; border-color: #f59e0b; }
.podium-bar { width: 100%; border-radius: var(--radius-md) var(--radius-md) 0 0; display: grid; place-items: start center; padding-top: 10px; font-family: var(--font-display); font-weight: 800; color: rgba(255,255,255,0.9); animation: growUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both; box-shadow: var(--shadow-md); position: relative; }
.podium-bar::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255, 255, 255, 0.15), transparent); border-radius: inherit; pointer-events: none; }
.podium-1 .podium-bar { height: 110px; background: linear-gradient(180deg, #fef08a, #d97706); color: #451a03; border: 1px solid rgba(251, 191, 36, 0.2); }
.podium-2 .podium-bar { height: 80px; background: linear-gradient(180deg, #f3f4f6, #4b5563); color: #f3f4f6; border: 1px solid rgba(255, 255, 255, 0.05); }
.podium-3 .podium-bar { height: 60px; background: linear-gradient(180deg, #fcd34d, #78350f); color: #fef3c7; border: 1px solid rgba(245, 158, 11, 0.1); }
.podium-name { font-size: 0.75rem; font-weight: 700; text-align: center; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 4px; }
.podium-score { font-family: var(--font-display); font-weight: 800; color: var(--text-1); font-size: var(--font-xs); }

/* ═══════════════════════════════════════════════
   RECORD PAGE & AUDIO MIC PULSE
   ═══════════════════════════════════════════════ */
.record-btn {
    width: 110px; height: 110px; border-radius: 50%;
    border: 4px solid rgba(6, 182, 212, 0.3); cursor: pointer; position: relative;
    background: var(--grad-brand); box-shadow: 0 0 35px rgba(6, 182, 212, 0.35), inset 0 2px 4px rgba(255,255,255,0.2);
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.25s, border-color 0.25s;
    -webkit-tap-highlight-color: transparent;
}
.record-btn:hover { transform: scale(1.08); border-color: rgba(255, 255, 255, 0.4); box-shadow: 0 0 45px rgba(6, 182, 212, 0.55), 0 0 20px rgba(16, 185, 129, 0.35); }
.record-btn:active { transform: scale(0.93); }
.record-btn::before {
    content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
    width: 38px; height: 38px; background: #fff; border-radius: 50%; transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.record-btn.recording { background: linear-gradient(135deg, #f97316, #ef4444); box-shadow: 0 0 45px rgba(239, 68, 68, 0.6), 0 0 20px rgba(249, 115, 22, 0.4); border-color: rgba(255, 255, 255, 0.45); animation: recPulse 1.4s ease infinite; }
.record-btn.recording::before { border-radius: 8px; width: 30px; height: 30px; }
.record-btn:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }

.waveform-bar { width: 4px; background: var(--brand); border-radius: 99px; transition: height 0.12s, background-color 0.3s; }
.record-btn.recording ~ .waveform-container .waveform-bar { background-color: var(--fire-2); }

/* ═══════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════ */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
@keyframes popIn { 0% { opacity: 0; transform: scale(0.65); } 60% { transform: scale(1.05); } 100% { opacity: 1; transform: scale(1); } }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes shimmer { 0% { transform: translateX(-100%); } 60%,100% { transform: translateX(250%); } }
@keyframes flicker { 0%,100% { transform: scale(1) rotate(-3deg); } 50% { transform: scale(1.15) rotate(3deg); } }
@keyframes recPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6), 0 0 20px rgba(239, 68, 68, 0.2); } 50% { box-shadow: 0 0 0 24px rgba(239, 68, 68, 0), 0 0 10px rgba(239, 68, 68, 0); } }
@keyframes wave { 0%,100% { height: 8px; } 50% { height: 42px; } }
@keyframes auroraDrift { 0% { transform: translate(0,0) scale(1); } 100% { transform: translate(3vmax,-3vmax) scale(1.06); } }
@keyframes growUp { from { height: 0 !important; opacity: 0; } }

/* Staggered page-load reveal helpers */
.stagger > * { animation: rise 0.6s cubic-bezier(0.16, 1, 0.3, 1) both; }
.stagger > *:nth-child(1) { animation-delay: 0.05s; }
.stagger > *:nth-child(2) { animation-delay: 0.11s; }
.stagger > *:nth-child(3) { animation-delay: 0.17s; }
.stagger > *:nth-child(4) { animation-delay: 0.23s; }
.stagger > *:nth-child(5) { animation-delay: 0.29s; }
.stagger > *:nth-child(6) { animation-delay: 0.35s; }

/* ═══════════════════════════════════════════════
   RESPONSIVE SHELL SWITCHING
   ═══════════════════════════════════════════════ */

/* Tablet: icon rail that expands on hover/focus or via .expanded toggle */
@media (max-width: 1024px) and (min-width: 721px) {
    .sidebar { width: var(--rail-width); overflow: hidden; }
    .sidebar .brand-text, .sidebar-nav li a span:not(.nav-icon), .sidebar-user-info .user-meta, .sidebar-logout span { display: none; }
    .sidebar-brand { justify-content: center; padding: var(--space-md) 0; }
    .sidebar-nav li a { justify-content: center; padding: 0.8rem; }
    .sidebar-nav li a.active::before { left: 2px; }
    .sidebar-user-info { justify-content: center; }
    .sidebar-logout { padding: 0.7rem 0; }
    .dashboard-content { margin-left: var(--rail-width); }

    .sidebar:hover, .sidebar:focus-within, .sidebar.expanded {
        width: var(--sidebar-width); box-shadow: var(--shadow-lg); overflow: visible;
    }
    .sidebar:hover .brand-text, .sidebar:focus-within .brand-text, .sidebar.expanded .brand-text,
    .sidebar:hover .sidebar-nav li a span, .sidebar:focus-within .sidebar-nav li a span, .sidebar.expanded .sidebar-nav li a span,
    .sidebar:hover .sidebar-user-info .user-meta, .sidebar:focus-within .sidebar-user-info .user-meta, .sidebar.expanded .sidebar-user-info .user-meta,
    .sidebar:hover .sidebar-logout span, .sidebar:focus-within .sidebar-logout span, .sidebar.expanded .sidebar-logout span { display: inline; }
    .sidebar:hover .sidebar-brand, .sidebar:focus-within .sidebar-brand, .sidebar.expanded .sidebar-brand { justify-content: flex-start; padding: var(--space-lg); }
    .sidebar:hover .sidebar-nav li a, .sidebar:focus-within .sidebar-nav li a, .sidebar.expanded .sidebar-nav li a { justify-content: flex-start; padding: 0.8rem 1rem; }
    .sidebar:hover .sidebar-user-info, .sidebar:focus-within .sidebar-user-info, .sidebar.expanded .sidebar-user-info { justify-content: flex-start; }
    .sidebar:hover .sidebar-logout, .sidebar:focus-within .sidebar-logout, .sidebar.expanded .sidebar-logout { padding: 0.7rem; }
    .topbar { display: none; }
}

/* Phone: drawer sidebar + topbar + bottom nav */
@media (max-width: 720px) {
    .topbar { display: flex; }
    .bottomnav { display: flex; }
    .sidebar {
        transform: translateX(-100%);
        width: min(84vw, 340px);
        box-shadow: var(--shadow-lg);
    }
    .sidebar.open { transform: translateX(0); }
    .dashboard-content {
        margin-left: 0;
        padding: var(--space-md) var(--space-md) calc(var(--bottomnav-height) + var(--space-xl));
    }
    .page-header h1 { font-size: var(--font-xl); }
}

/* Desktop: hide mobile chrome */
@media (min-width: 1025px) {
    .topbar, .bottomnav { display: none; }
}

/* ═══════════════════════════════════════════════
   NEON RING (SVG donut/gauge) — paylaşılan
   Kılavuz görselleri #2 & #3 için mor→cyan halkalar
   ═══════════════════════════════════════════════ */
.neon-ring { position: relative; display: inline-grid; place-items: center; }
.neon-ring svg { width: 100%; height: 100%; display: block; transform: rotate(-90deg); }
.neon-ring .ring-track { fill: none; stroke: rgba(255,255,255,0.07); }
.neon-ring .ring-val { fill: none; stroke-linecap: round; transition: stroke-dashoffset 1.3s cubic-bezier(0.16,1,0.3,1); filter: drop-shadow(0 0 5px rgba(168,85,247,0.5)); }
.neon-ring .ring-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1.15; }
.neon-ring .ring-big { font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; color: var(--text-1); }
.neon-ring .ring-small { font-size: var(--font-xs); color: var(--text-3); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }

/* ═══════════════════════════════════════════════
   ÖĞRETMEN NOTLANDIRMA PANELİ — kılavuz görseli #2
   ═══════════════════════════════════════════════ */
.dash-head { margin-bottom: var(--space-lg); }
.dash-head .sub { color: var(--text-3); font-size: var(--font-sm); margin-top: 2px; }

.grade-shell { display: grid; grid-template-columns: 230px minmax(0,1fr) 290px 280px; gap: var(--space-md); align-items: start; }
@media (max-width: 1400px) {
    .grade-shell { grid-template-columns: 220px minmax(0,1fr) 290px; }
    .grade-shell .stats-rail { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
    .grade-shell .stats-rail > * { flex: 1; min-width: 230px; }
}
@media (max-width: 1000px) {
    .grade-shell { grid-template-columns: 1fr 1fr; }
    .grade-shell .panel.sub-list-panel { grid-column: 1 / -1; }
}
@media (max-width: 680px) { .grade-shell { grid-template-columns: 1fr; } }

.panel { background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01)), var(--glass); border: 1px solid var(--border); border-radius: var(--radius-xl); box-shadow: var(--shadow-md); }
.panel-title { font-family: var(--font-head); font-weight: 800; font-size: var(--font-md); padding: var(--space-md) var(--space-lg); }

/* Sol: gönderim/öğrenci listesi */
.sub-list { padding: var(--space-sm); max-height: 620px; overflow-y: auto; }
.sub-list-head { display: flex; justify-content: space-between; padding: 0.4rem 0.75rem var(--space-sm); font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: var(--text-3); border-bottom: 1px solid var(--border); }
.sub-row { display: flex; align-items: center; gap: var(--space-sm); width: 100%; text-align: left; padding: 0.7rem 0.75rem; border: 1px solid transparent; border-radius: var(--radius-md); background: transparent; cursor: pointer; font-family: inherit; transition: background 0.2s, border-color 0.2s; }
.sub-row:hover { background: var(--surface-1); }
.sub-row.active { background: rgba(168,85,247,0.10); border-color: rgba(168,85,247,0.45); }
.sub-row .sr-ava { width: 38px; height: 38px; flex-shrink: 0; border-radius: 50%; background: linear-gradient(135deg,#a855f7,#22d3ee); display: grid; place-items: center; font-weight: 800; color: #fff; font-size: 0.85rem; }
.sub-row .sr-main { flex: 1; min-width: 0; }
.sub-row .sr-name { font-weight: 700; color: var(--text-1); font-size: var(--font-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sub-row .sr-status { font-size: var(--font-xs); }
.sub-row .sr-time { font-size: 0.7rem; color: var(--text-3); text-align: right; flex-shrink: 0; }
.dot-status { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 5px; vertical-align: middle; }
.dot-graded { background: var(--green); box-shadow: 0 0 6px rgba(16,185,129,0.7); }
.dot-pending { background: var(--amber); box-shadow: 0 0 6px rgba(245,158,11,0.7); }

/* Orta: oynatıcı + transkript */
.player { padding: var(--space-lg); }
.player h3 { font-size: var(--font-lg); }
.player .sub-prompt { color: var(--text-3); font-size: var(--font-sm); margin-bottom: var(--space-md); }
.wave-display { display: flex; align-items: center; justify-content: center; gap: 2px; height: 130px; padding: var(--space-md); background: radial-gradient(80% 120% at 50% 50%, rgba(34,211,238,0.10), transparent 70%); border-radius: var(--radius-lg); margin-bottom: var(--space-md); overflow: hidden; }
.wave-display span { width: 3px; border-radius: 99px; background: linear-gradient(180deg, #22d3ee, #a855f7); opacity: 0.85; }
.player audio { width: 100%; margin-top: var(--space-sm); }
.transcript-box { margin-top: var(--space-md); font-size: var(--font-sm); line-height: 1.7; color: var(--text-2); padding: var(--space-md); background: rgba(255,255,255,0.02); border: 1px solid var(--border); border-radius: var(--radius-md); max-height: 160px; overflow-y: auto; }

/* Notlandırma sliderları */
.grade-panel { padding: var(--space-lg); }
.grade-crit { margin-bottom: var(--space-md); }
.grade-crit-head { display: flex; justify-content: space-between; font-size: var(--font-sm); font-weight: 700; margin-bottom: 6px; }
.grade-crit-head .val { font-family: var(--font-display); color: #c4b5fd; }
.grade-slider { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 99px; background: var(--surface-2); outline: none; cursor: pointer; }
.grade-slider::-webkit-slider-runnable-track { height: 8px; border-radius: 99px; }
.grade-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 3px solid #a855f7; box-shadow: 0 0 10px rgba(168,85,247,0.7); margin-top: -6px; cursor: pointer; }
.grade-slider::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid #a855f7; box-shadow: 0 0 10px rgba(168,85,247,0.7); cursor: pointer; }
.grade-slider::-moz-range-track { height: 8px; border-radius: 99px; background: var(--surface-2); }
.overall-box { display: flex; align-items: center; justify-content: space-between; padding: 0.85rem 1.1rem; margin: var(--space-md) 0; border: 1px solid rgba(168,85,247,0.4); border-radius: var(--radius-md); background: linear-gradient(135deg, rgba(168,85,247,0.12), rgba(34,211,238,0.08)); }
.overall-box .label { font-weight: 700; font-size: var(--font-sm); }
.overall-box .score { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* Sağ: sınıf istatistikleri */
.stats-rail { display: flex; flex-direction: column; gap: var(--space-lg); }
.stats-card { padding: var(--space-lg); text-align: center; }
.stats-card h4 { font-size: var(--font-sm); color: var(--text-2); margin-bottom: var(--space-md); font-weight: 700; }
.award-row { display: flex; gap: var(--space-sm); justify-content: center; flex-wrap: wrap; }
.award-badge { display: flex; flex-direction: column; align-items: center; gap: 5px; width: 78px; padding: var(--space-sm); border: 1px solid var(--border); border-radius: var(--radius-md); background: rgba(255,255,255,0.015); cursor: pointer; transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s; font-family: inherit; }
.award-badge:hover:not(:disabled) { transform: translateY(-4px); border-color: rgba(168,85,247,0.5); box-shadow: 0 8px 20px -6px rgba(168,85,247,0.4); }
.award-badge:disabled { opacity: 0.4; cursor: not-allowed; }
.award-badge .ab-ico { font-size: 1.6rem; filter: drop-shadow(0 3px 8px rgba(168,85,247,0.4)); }
.award-badge .ab-name { font-size: 0.62rem; font-weight: 700; color: var(--text-2); line-height: 1.15; }

/* ═══════════════════════════════════════════════
   ÖĞRENCİ OYUNLAŞTIRMA PANOSU — kılavuz görseli #3
   ═══════════════════════════════════════════════ */
.gami-grid { display: grid; grid-template-columns: 360px minmax(0,1fr); gap: var(--space-lg); align-items: start; }
@media (max-width: 1024px) { .gami-grid { grid-template-columns: 1fr; } }

.level-card { padding: var(--space-xl) var(--space-lg); }
.level-id { display: flex; align-items: center; gap: var(--space-md); margin-bottom: var(--space-lg); }
.level-orb { position: relative; width: 64px; height: 64px; flex-shrink: 0; border-radius: 50%; background: conic-gradient(from 0deg, #22d3ee, #a855f7, #d946ef, #22d3ee); display: grid; place-items: center; box-shadow: 0 0 24px rgba(168,85,247,0.5); }
.level-orb::before { content: ''; position: absolute; inset: 5px; border-radius: 50%; background: var(--bg-elev); }
.level-orb span { position: relative; font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; }
.level-name { font-family: var(--font-head); font-weight: 800; font-size: var(--font-lg); }
.level-tag { display: inline-block; margin-top: 3px; font-size: 0.62rem; font-weight: 800; letter-spacing: 0.6px; text-transform: uppercase; color: #c4b5fd; padding: 2px 10px; border-radius: 99px; border: 1px solid rgba(168,85,247,0.4); background: rgba(168,85,247,0.12); }
.level-big { font-family: var(--font-display); font-weight: 800; font-size: 2.2rem; line-height: 1; }
.xp-row { display: flex; justify-content: space-between; align-items: baseline; margin: var(--space-md) 0 6px; }
.xp-row .xp-nums { font-size: var(--font-sm); color: var(--text-3); font-weight: 700; }

.streak-week { margin-top: var(--space-lg); }
.streak-week .sw-head { display: flex; align-items: center; gap: 10px; margin-bottom: var(--space-md); }
.streak-week .sw-fire { font-size: 1.7rem; filter: drop-shadow(0 0 8px rgba(245,158,11,0.6)); animation: flicker 1.8s ease-in-out infinite; }
.streak-week .sw-count { font-family: var(--font-display); font-weight: 800; color: var(--amber); font-size: 1.05rem; }
.day-dots { display: grid; grid-template-columns: repeat(7,1fr); gap: 8px; }
.day-dot { display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 0.66rem; color: var(--text-3); font-weight: 700; }
.day-dot .dd-circle { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border); font-size: 0.8rem; }
.day-dot.on .dd-circle { background: linear-gradient(135deg,#10b981,#22d3ee); border-color: transparent; color: #04130c; box-shadow: 0 0 12px rgba(16,185,129,0.5); }

.badge-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--space-md); margin-top: var(--space-md); }
.badge-cell { text-align: center; padding: var(--space-md) var(--space-sm); border: 1px solid var(--border); border-radius: var(--radius-lg); background: rgba(255,255,255,0.015); }
.badge-cell .bc-ring { width: 58px; height: 58px; margin: 0 auto 8px; border-radius: 50%; display: grid; place-items: center; font-size: 1.5rem; border: 2px solid; background: var(--bg-elev); }
.badge-cell.on .bc-ring { border-color: #22d3ee; box-shadow: 0 0 16px rgba(34,211,238,0.45); }
.badge-cell.off .bc-ring { border-color: var(--border); filter: grayscale(1); opacity: 0.5; }
.badge-cell .bc-name { font-size: 0.66rem; font-weight: 700; color: var(--text-2); line-height: 1.2; }
.badge-cell.off .bc-name { color: var(--text-3); }
.badge-cell .bc-lock { font-size: 0.6rem; color: var(--text-3); }

.quickstat { padding: var(--space-md) var(--space-lg); display: flex; flex-direction: column; gap: 2px; }
.quickstat .qs-label { font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.7px; color: var(--text-3); }
.quickstat .qs-val { font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; }
.activity-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); padding: 0.7rem 0.9rem; border-radius: var(--radius-md); }
.activity-row + .activity-row { border-top: 1px solid var(--border); }
.activity-row.hot { background: linear-gradient(135deg, rgba(16,185,129,0.12), rgba(34,211,238,0.06)); border: 1px solid rgba(16,185,129,0.3); }
.activity-row .ar-date { font-size: var(--font-xs); color: var(--text-3); font-weight: 700; white-space: nowrap; }
.activity-row .ar-text { flex: 1; min-width: 0; font-size: var(--font-sm); color: var(--text-1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.activity-row .ar-pts { font-weight: 800; font-size: var(--font-sm); color: #34d399; white-space: nowrap; }

/* ═══════════════════════════════════════════════
   REDUCED MOTION
   ═══════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}