* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #040506;
    color: #e6e6e6;
    line-height: 1.6;
    font-size: clamp(14px, 3.5vw, 18px);
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

:root {
    --accent: #ff6363;
    --accent-hover: #ff7b7b;
    --accent-grad: linear-gradient(135deg, #ff6363 0%, #ff8a5c 100%);
    --accent-muted: rgba(255, 99, 99, 0.15);
    --purple: #bf7fff;
    --purple-grad: linear-gradient(135deg, #bf7fff 0%, #7d8aff 100%);
    --purple-muted: rgba(191, 127, 255, 0.12);
    --info-muted: rgba(94, 172, 252, 0.12);
    --bg-card: #0c0d0e;
    --bg-recessed: #080809;
    --bg-darker: #020203;
    --text-primary: #e6e6e6;
    --text-secondary: #9a9a9c;
    --text-tertiary: #6e6e70;
    --border: rgba(255,255,255,0.06);
    --border-strong: rgba(255,255,255,0.1);
    --surface: rgba(255,255,255,0.03);
    --surface-hover: rgba(255,255,255,0.05);
    --surface-active: rgba(255,255,255,0.08);
    --radius-md: 20px;
    --radius-lg: 22px;
    --radius-xl: 24px;
    --radius-pill: 9999px;
    --ios-radius: 28px;
    /* Font scale */
    --font-xs: 11px;
    --font-sm: 12px;
    --font-md: 13px;
    --font-base: 14px;
    --font-lg: 15px;
    --font-xl: 16px;
    --font-2xl: 18px;
    --font-3xl: 20px;
    --font-4xl: 22px;
    --font-5xl: 24px;
    --font-6xl: 28px;
    --font-7xl: 32px;
    --font-8xl: 36px;
    --font-9xl: 44px;
}

.container { max-width: 1200px; width: 100%; margin: 0 auto; padding: 0 clamp(16px, 5vw, 32px); }

/* ====== RESET ====== */
html { overflow-x: hidden; width: 100%; }
body { overflow-x: hidden; width: 100%; }
*, *::before, *::after { box-sizing: border-box; }

/* ====== LAYOUT ====== */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
    position: relative;
    z-index: 1;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: var(--bg-darker);
    border-right: 1px solid var(--border);
    padding: 24px 0;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 100;
    display: flex;
    flex-direction: column;
}
.sidebar-logo {
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(14px, 3vw, 17px);
    font-weight: 700;
    padding: 0 clamp(16px, 4vw, 24px) clamp(12px, 3vw, 20px);
    background: var(--accent-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0;
}
.sidebar-section-label.current-page {
    color: var(--accent);
}
.sidebar-user {
    padding: clamp(8px, 2vw, 12px) clamp(16px, 4vw, 24px) clamp(12px, 3vw, 20px);
    border-bottom: 1px solid var(--border);
    margin-bottom: 4px;
}
.sidebar-user-name {
    font-size: var(--font-xl);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: clamp(2px, 1vw, 4px);
}
.sidebar-user-role {
    font-size: var(--font-md);
    color: var(--text-tertiary);
    font-family: 'JetBrains Mono', monospace;
}
.sidebar-nav { flex: 1; padding: 4px 12px; }
.sidebar-nav-divider {
    height: 1px;
    background: var(--glass-line, var(--border));
    margin: 12px 16px;
}
.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: clamp(10px, 2vw, 14px);
    padding: clamp(10px, 2.5vw, 14px) clamp(12px, 3vw, 16px);
    color: var(--text-tertiary);
    font-size: var(--font-xl);
    font-weight: 500;
    border-radius: var(--ios-radius);
    transition: background-color var(--anim-hover) ease, border-color var(--anim-hover) ease, color var(--anim-hover) ease, transform var(--anim-hover) ease;
    cursor: pointer;
}
.sidebar-nav a:hover {
    background: var(--surface-hover);
    color: var(--text-primary);
}
.sidebar-nav a.active {
    background: var(--accent-muted);
    color: var(--accent);
}
.sidebar-nav a .nav-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sidebar-footer {
    padding: 12px 12px 16px;
    border-top: 1px solid var(--border);
}
.sidebar-footer a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    color: var(--text-tertiary);
    font-size: var(--font-xl);
    font-weight: 500;
    border-radius: var(--ios-radius);
    justify-content: center;
    transition: background-color var(--anim-hover) ease, border-color var(--anim-hover) ease, color var(--anim-hover) ease, transform var(--anim-hover) ease;
    cursor: pointer;
}
.sidebar-footer a:hover {
    background: var(--surface-hover);
    color: var(--accent);
}

/* Mobile hamburger menu */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 1000;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--ios-radius);
    padding: 8px;
    cursor: pointer;
    color: var(--text-secondary);
}
.mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(4,5,6,0.95);
    backdrop-filter: blur(24px);
    z-index: 999;
    padding: 80px 20px 20px;
    overflow-y: auto;
}
.mobile-menu-overlay.active {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.admin-mobile-nav {
    display: none;
    flex-direction: column;
    gap: 8px;
}
.admin-mobile-nav .sidebar-nav-divider {
    margin: 0;
}
.admin-mobile-link {
    display: none;
}
.mobile-menu-overlay a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--ios-radius);
    color: var(--text-secondary);
    font-weight: 500;
    text-decoration: none;
    transition: background-color var(--anim-hover) ease, border-color var(--anim-hover) ease, color var(--anim-hover) ease, transform var(--anim-hover) ease;
}
.mobile-menu-overlay a:hover,
.mobile-menu-overlay a.active {
    background: var(--surface-hover);
    border-color: rgba(255,99,99,0.3);
    color: var(--text-primary);
}
.mobile-menu-overlay a .nav-icon {
    width: 20px;
    height: 20px;
}

/* Main content */
.main-content {
    margin-left: 260px;
    flex: 1;
    padding: clamp(24px, 5vw, 48px) 0;
}
.main-content .container { max-width: 1040px; }

/* Page header */
.page-header {
    margin-bottom: 32px;
    position: relative;
    max-width: 100%;
}
.page-title {
    font-size: clamp(24px, 5vw, var(--font-3xl));
    font-weight: 700;
    margin-bottom: clamp(4px, 1vw, 8px);
    letter-spacing: -0.02em;
    position: relative;
    display: inline-block;
    max-width: 100%;
    word-wrap: break-word;
}
.page-title::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 48px;
    height: 4px;
    background: var(--accent-grad);
    border-radius: 2px;
}
.page-subtitle {
    font-size: clamp(14px, 3.5vw, 17px);
    color: var(--text-secondary);
    margin-top: clamp(8px, 2vw, 16px);
}

/* ====== NOTE VIEWER CONTENT STYLES ====== */
.note-viewer-content {
    position: relative;
}

/* Main title */
.note-main-title {
    font-size: var(--font-6xl);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 36px;
    padding-bottom: 20px;
    position: relative;
    line-height: 1.3;
    letter-spacing: -0.01em;
}
.note-main-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 100%;
    background: var(--note-color, #ff6363);
    opacity: 0.4;
}

/* Section header */
.note-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 32px 0 20px 0;
    padding: 0;
}
.note-section-header-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: var(--note-color, #5eb5ff);
    opacity: 0.15;
    flex-shrink: 0;
}
.note-section-header-icon svg {
    width: 16px;
    height: 16px;
    stroke: var(--note-color, #5eb5ff);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.note-section-title {
    font-size: var(--font-3xl);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

/* Info block (definitions, explanations) */
.note-info-block {
    background: var(--bg-recessed);
    border: 1px solid var(--border);
    border-left: 3px solid var(--note-color, #5eb5ff);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 18px 22px;
    margin: 18px 0;
}
.note-info-title {
    font-size: var(--font-lg);
    font-weight: 700;
    color: var(--note-color, #5eb5ff);
    margin-bottom: 8px;
    font-family: 'JetBrains Mono', monospace;
}
.note-info-text {
    font-size: var(--font-lg);
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Bullet list */
.note-bullet-list {
    padding-left: 0;
    margin: 16px 0;
    list-style: none;
}
.note-bullet-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    font-size: var(--font-lg);
    line-height: 1.6;
    color: var(--text-secondary);
}
.note-bullet-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--note-color, #5eb5ff);
}
.note-bullet-list li:last-child {
    margin-bottom: 0;
}

/* Numbered steps */
.note-steps-card {
    background: var(--bg-recessed);
    border: 1px solid var(--border);
    border-radius: var(--ios-radius);
    padding: 24px;
    margin: 20px 0;
}
.note-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}
.note-step:last-child {
    margin-bottom: 0;
}
.note-step-num {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--note-color, #5eb5ff);
    color: var(--text-primary);
    border-radius: 50%;
    font-family: 'JetBrains Mono', monospace;
    font-size: var(--font-md);
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}
.note-step-text {
    font-size: var(--font-lg);
    color: var(--text-secondary);
    line-height: 1.6;
    padding-top: 3px;
    flex: 1;
}

/* Highlight block (главная идея, важно) */
.note-highlight-card {
    background: rgba(255,149,0,0.06);
    border: 1px solid rgba(255,149,0,0.2);
    border-left: 3px solid #ff9500;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 18px 22px;
    margin: 20px 0;
}
.note-highlight-label {
    font-size: var(--font-sm);
    font-weight: 700;
    color: var(--warning);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}
.note-highlight-text {
    font-size: var(--font-lg);
    line-height: 1.6;
    color: var(--text-primary);
    font-weight: 500;
}

/* Warning block */
.note-warning-card {
    background: rgba(255,99,99,0.06);
    border: 1px solid rgba(255,99,99,0.15);
    border-left: 3px solid #ff6363;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 18px 22px;
    margin: 20px 0;
}
.note-warning-text {
    font-size: var(--font-lg);
    line-height: 1.6;
    color: var(--accent);
    font-weight: 500;
}

/* Tip block */
.note-tip-card {
    background: rgba(48,209,88,0.06);
    border: 1px solid rgba(48,209,88,0.15);
    border-left: 3px solid #30d158;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 18px 22px;
    margin: 20px 0;
}
.note-tip-text {
    font-size: var(--font-lg);
    line-height: 1.6;
    color: var(--success);
    font-weight: 500;
}

/* Code block */
.note-code-block {
    background: var(--bg-darker);
    border: 1px solid var(--border);
    border-radius: var(--ios-radius);
    padding: 18px 22px;
    margin: 16px 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: var(--font-md);
    line-height: 1.6;
    color: var(--text-primary);
    overflow-x: auto;
}
.note-code-keyword {
    color: var(--purple);
    font-weight: 600;
}
.note-code-function {
    color: var(--info);
}
.note-code-number {
    color: var(--warning);
}
.note-code-string {
    color: var(--success);
}
.note-code-comment {
    color: var(--text-tertiary);
    font-style: italic;
}

/* Formula block */
.note-formula-block {
    background: rgba(94,172,252,0.06);
    border: 1px solid rgba(94,172,252,0.2);
    border-radius: var(--ios-radius);
    padding: 18px 24px;
    margin: 16px 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: var(--font-lg);
    color: var(--text-primary);
    text-align: center;
    letter-spacing: 0.02em;
    font-weight: 500;
}

/* Main card */
.note-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0.01) 100%);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    margin-bottom: 20px;
    overflow: hidden;
    transition: border-color var(--anim-hover) var(--ease-out);
}

.note-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 24px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.02);
}

.note-card-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.note-card-icon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.note-card-title {
    font-size: var(--font-3xl);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.note-card-text {
    font-size: var(--font-lg);
    line-height: 1.7;
    color: #c8c8ca;
    padding: 18px 24px;
    font-weight: 400;
}

/* Highlight card (важно, главная идея) */
.note-highlight-card {
    background: linear-gradient(135deg, rgba(255,149,0,0.08) 0%, rgba(255,149,0,0.03) 100%);
    border: 1px solid rgba(255,149,0,0.25);
    border-left: 4px solid #ff9500;
    border-radius: 16px;
    margin-bottom: 20px;
    overflow: hidden;
}

.note-highlight-card .note-card-header {
    background: rgba(255,149,0,0.08);
    border-bottom-color: rgba(255,149,0,0.15);
}

.note-highlight-card .note-card-title {
    color: var(--warning);
    font-weight: 700;
}

/* Steps */
.note-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: background 0.15s ease;
}
.note-step:last-child {
    border-bottom: none;
}
.note-step-num {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--note-color, #5eb5ff);
    color: var(--text-primary);
    border-radius: 50%;
    font-size: var(--font-md);
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(94, 181, 255, 0.2);
}
.note-step-text {
    font-size: var(--font-lg);
    line-height: 1.6;
    color: #d0d0d2;
    padding-top: 3px;
    flex: 1;
    font-weight: 400;
}

/* Bullets */
.note-bullet-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 24px;
    transition: background 0.15s ease;
}
.note-bullet-dot {
    width: 8px;
    height: 8px;
    background: var(--note-color, #5eb5ff);
    border-radius: 50%;
    margin-top: 7px;
    flex-shrink: 0;
    box-shadow: 0 0 8px rgba(94, 181, 255, 0.3);
}
.note-bullet-text {
    font-size: var(--font-lg);
    line-height: 1.6;
    color: #c8c8ca;
    padding-top: 2px;
    font-weight: 400;
}

/* Definitions */
.note-definition {
    padding: 18px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    background: rgba(94, 172, 252, 0.03);
}
.note-definition:last-child {
    border-bottom: none;
}
.note-definition-key {
    font-size: var(--font-md);
    font-weight: 700;
    color: var(--note-color, #5eb5ff);
    margin-bottom: 6px;
    font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.note-definition-value {
    font-size: var(--font-lg);
    line-height: 1.6;
    color: #d8d8da;
    font-weight: 400;
}

/* Formula */
.note-formula {
    background: rgba(94,172,252,0.08);
    border: 1px solid rgba(94,172,252,0.2);
    border-radius: 12px;
    padding: 18px 24px;
    margin: 14px 24px;
    font-family: 'JetBrains Mono', monospace;
    font-size: var(--font-base);
    color: #e6e6e6;
    text-align: center;
    font-weight: 500;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 12px rgba(94, 172, 252, 0.08);
}

/* Code */
.note-code {
    background: #08090a;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 18px 24px;
    margin: 14px 24px;
    font-family: 'JetBrains Mono', monospace;
    font-size: var(--font-md);
    line-height: 1.7;
    color: #e6e6e6;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.3);
}

/* Text paragraph */
.note-text-paragraph {
    font-size: var(--font-lg);
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 20px;
    padding: 18px 22px;
    background: var(--bg-recessed);
    border: 1px solid var(--border);
    border-radius: var(--ios-radius);
}
.note-text-paragraph:last-child {
    margin-bottom: 0;
}
.note-text-paragraph strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Note viewer animations — unified system in dashboard-brand.css */
/* Disabled by default for performance (see brand.css) */

/* ====== NOTE VIEWER (popup card style) ====== */
.note-viewer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(4, 5, 6, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: background-color var(--anim-hover) ease, border-color var(--anim-hover) ease, color var(--anim-hover) ease, transform var(--anim-hover) ease;
}
.note-viewer-backdrop.active {
    opacity: 1;
    visibility: visible;
}
.note-viewer-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.92);
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
    border-radius: var(--ios-radius);
    padding: 0;
    z-index: 10000;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.02);
    opacity: 0;
    visibility: hidden;
    transition: background-color var(--anim-hover) ease, border-color var(--anim-hover) ease, color var(--anim-hover) ease, transform var(--anim-hover) ease;
}
.note-viewer-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}
.note-viewer-popup.closing {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.92);
}
/* Top accent bar */
.note-viewer-accent {
    height: 3px;
    background: linear-gradient(90deg, var(--note-color, var(--accent)), var(--note-color, var(--accent))60 50%, transparent);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}
/* Header */
.note-viewer-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 28px 32px 24px;
    border-bottom: 1px solid var(--border);
    position: relative;
}
.note-viewer-header-left {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 1;
    min-width: 0;
}
.note-viewer-number {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--note-muted, var(--accent-muted));
    border: 1px solid var(--note-border, rgba(255, 99, 99, 0.2));
    border-radius: var(--ios-radius);
    font-family: 'JetBrains Mono', monospace;
    font-size: var(--font-4xl);
    font-weight: 800;
    color: var(--note-color, var(--accent));
    flex-shrink: 0;
}
.note-viewer-title-group {
    flex: 1;
    min-width: 0;
}
.note-viewer-category {
    font-size: var(--font-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--note-color, var(--accent));
    margin-bottom: 4px;
    opacity: 0.8;
}
.note-viewer-title {
    font-size: var(--font-3xl);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}
.note-viewer-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 6px;
}
.note-viewer-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: var(--font-sm);
    color: var(--text-tertiary);
}
.note-viewer-meta-item svg {
    width: 13px;
    height: 13px;
    opacity: 0.6;
}
.note-viewer-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--ios-radius);
    color: var(--text-tertiary);
    cursor: pointer;
    transition: background-color var(--anim-hover) ease, border-color var(--anim-hover) ease, color var(--anim-hover) ease, transform var(--anim-hover) ease;
    flex-shrink: 0;
}
.note-viewer-close:hover {
    background: var(--surface-hover);
    color: var(--text-primary);
    border-color: var(--border-strong);
}
.note-viewer-close svg {
    width: 18px;
    height: 18px;
}
/* Content */
.note-viewer-content {
    max-height: calc(80vh - 140px);
    overflow-y: auto;
    padding: 32px 36px 36px;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}
.note-viewer-content::-webkit-scrollbar {
    width: 7px;
}
.note-viewer-content::-webkit-scrollbar-track {
    background: transparent;
}
.note-viewer-content::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}
.note-viewer-content::-webkit-scrollbar-thumb:hover {
    background: var(--border-strong);
}
.note-viewer-text {
    font-size: var(--font-xl);
    line-height: 1.8;
    color: var(--text-primary);
}
.note-viewer-text .note-bullet-list {
    padding-left: 0;
    margin: 20px 0;
}
.note-viewer-text .note-bullet-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 16px;
    line-height: 1.65;
}
.note-viewer-text p {
    margin-bottom: 16px;
}
.note-viewer-text strong {
    color: var(--text-primary);
    font-weight: 600;
}
.note-viewer-text em {
    color: var(--text-secondary);
    font-style: italic;
}

/* ====== SECTIONS (fade+slide style, like auth modal on main page) ====== */
.section {
    display: none;
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
}
.section-title {
    font-size: var(--font-3xl);
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
}
.section-title::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--accent-grad);
    border-radius: 2px;
    flex-shrink: 0;
}

/* Cards — unified hover in dashboard-brand.css */

/* Homework start cards - improved */
.hw-start-screen { display: flex; flex-direction: column; gap: 20px; }
.hw-start-card {
    display: flex; align-items: center; gap: 32px;
    padding: 24px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--ios-radius); cursor: pointer;
    position: relative; overflow: hidden;
    transition: background-color var(--anim-hover) ease, border-color var(--anim-hover) ease, color var(--anim-hover) ease, transform var(--anim-hover) ease;
}
.hw-start-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: var(--accent-grad);
    opacity: 0;
    transition: opacity var(--anim-hover) var(--ease-out);
    border-radius: var(--ios-radius);
}
.hw-start-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-grad);
    opacity: 0;
    transition: opacity var(--anim-hover) var(--ease-out);
}
/* hw-start-card hover — unified border/shadow in brand.css, ::before/::after here */
.hw-start-card:hover::before { opacity: 0.04; }
.hw-start-card:hover::after { opacity: 1; }
.hw-start-icon {
    width: 64px; height: 64px; display: flex; align-items: center; justify-content: center;
    background: var(--accent-muted);
    border: 1px solid rgba(255,99,99,0.15);
    border-radius: var(--ios-radius);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    transition: background-color var(--anim-hover) ease, border-color var(--anim-hover) ease, color var(--anim-hover) ease, transform var(--anim-hover) ease;
}
.hw-start-icon svg { width: 32px; height: 32px; transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.hw-start-card:hover .hw-start-icon {
    transform: scale(1.05);
}
.hw-start-card:hover .hw-start-icon svg {
    transform: scale(1.1);
}
.hw-start-info { flex: 1; position: relative; z-index: 1; }
.hw-start-title {
    font-size: var(--font-4xl); font-weight: 700; color: var(--text-primary); margin-bottom: 4px;
}
.hw-start-subtitle { font-size: var(--font-xl); color: var(--text-secondary); }
.hw-start-arrow {
    width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
    color: var(--text-tertiary); transition: background-color var(--anim-hover) ease, border-color var(--anim-hover) ease, color var(--anim-hover) ease, transform var(--anim-hover) ease;
    position: relative; z-index: 1;
}
.hw-start-arrow svg {
    width: 24px; height: 24px;
    stroke: currentColor; stroke-width: 2;
    fill: none; stroke-linecap: round; stroke-linejoin: round;
}
.hw-start-card:hover .hw-start-arrow {
    color: var(--accent); transform: translateX(4px);
}
.hw-start-card.external-card { background: var(--bg-card); border-color: var(--border); }
.hw-start-card.external-card .hw-start-icon {
    background: var(--purple-muted);
    border-color: rgba(191,127,255,0.15);
}
.hw-start-card.external-card:hover { border-color: rgba(191,127,255,0.3);
}
.hw-start-card.external-card:hover::before { background: var(--purple-grad); }

/* Homework section cards */
.hw-section-list { display: flex; flex-direction: column; gap: 12px; }
.hw-section-card {
    display: flex; align-items: center; gap: 24px; padding: 24px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--ios-radius); cursor: pointer;
    transition: background-color var(--anim-hover) ease, border-color var(--anim-hover) ease, color var(--anim-hover) ease, transform var(--anim-hover) ease;
    position: relative;
    overflow: hidden;
}
.hw-section-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--accent-grad);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    opacity: 0;
    transition: opacity var(--anim-hover) var(--ease-out);
}
/* hw-section-card hover — unified border/shadow in brand.css, ::before accent here */
.hw-section-card:hover::before { opacity: 1; }
.hw-section-card:hover {
    background: var(--surface-hover);
}
.hw-section-card-num {
    min-width: 100px; width: auto; height: 64px; display: flex; align-items: center; justify-content: center;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--ios-radius); flex-shrink: 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: var(--font-2xl); font-weight: 700; color: var(--text-primary);
    white-space: nowrap;
    padding: 0 16px;
}
.hw-section-card-info { flex: 1; min-width: 0; }
.hw-section-card-title { font-size: var(--font-2xl); font-weight: 600; color: var(--text-primary); margin-bottom: 8px; }
.hw-section-card-bar { width: 100%; height: 6px; background: var(--bg-recessed); border-radius: 3px; overflow: hidden; }
.hw-section-card-bar-fill { height: 100%; border-radius: 3px; transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.hw-section-card-bar-fill.low { background: #ff6363; }
.hw-section-card-bar-fill.mid { background: #ff9500; }
.hw-section-card-bar-fill.high { background: #30d158; }
.hw-section-card-pct { font-family: 'JetBrains Mono', monospace; font-size: var(--font-2xl); font-weight: 600; color: var(--text-secondary); flex-shrink: 0; min-width: 60px; text-align: right; }
.hw-section-card-pct.done { color: var(--success); }
.hw-section-card-check { font-size: var(--font-5xl); color: var(--success); flex-shrink: 0; }

/* Back button */
.hw-back-btn-v2 {
    display: inline-flex; align-items: center; gap: 8px; padding: 14px 24px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--ios-radius); color: var(--text-secondary); font-size: var(--font-xl);
    font-weight: 500; cursor: pointer; margin-bottom: 32px; font-family: inherit;
    transition: background-color var(--anim-hover) ease, border-color var(--anim-hover) ease, color var(--anim-hover) ease, transform var(--anim-hover) ease;
}
.hw-back-btn-v2:hover { background: var(--surface-hover); color: var(--text-primary); }

/* Task card */
.hw-task-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--ios-radius); padding: 24px;
    margin-bottom: 20px; transition: background-color var(--anim-hover) ease, border-color var(--anim-hover) ease, color var(--anim-hover) ease, transform var(--anim-hover) ease;
}
/* hw-task-card hover — unified in dashboard-brand.css */
.hw-task-card-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.hw-task-card-number {
    font-family: 'JetBrains Mono', monospace; font-size: var(--font-base); font-weight: 600;
    padding: 6px 14px; border-radius: var(--radius-pill);
    background: var(--accent-muted); color: var(--accent);
}
.hw-task-card-status { font-size: var(--font-base); font-weight: 600; padding: 6px 14px; border-radius: var(--radius-pill); }
.hw-task-card-status.ok { color: var(--success); background: rgba(48,209,88,0.12); }
.hw-task-card-status.revealed { color: var(--accent); background: rgba(255,99,99,0.12); }
.hw-task-card-status.progress { color: var(--warning); background: rgba(255,149,0,0.12); }
.hw-task-card-status.progress::after { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #ff9500; margin-left: 6px; }
.hw-task-card-status.none { color: var(--text-tertiary); background: rgba(154,154,156,0.12); }
.hw-task-card-desc {
    font-size: var(--font-xl); color: var(--text-secondary); line-height: 1.6;
    margin-bottom: 20px; padding: 20px; background: var(--bg-recessed);
    border-radius: var(--ios-radius); border-left: 3px solid var(--accent);
    white-space: pre-wrap;
}
.hw-task-card-placeholder {
    font-size: var(--font-xl); color: var(--text-tertiary); font-style: italic;
    margin-bottom: 20px; padding: 20px; background: var(--bg-recessed);
    border-radius: var(--ios-radius); text-align: center;
}
.hw-task-card-actions { display: flex; gap: 12px; align-items: stretch; margin-top: 20px; }
.hw-task-card-input {
    flex: 1; padding: 16px 20px; background: var(--bg-recessed);
    border: 1px solid var(--border); border-radius: var(--ios-radius);
    color: var(--text-primary); font-size: var(--font-xl); font-family: 'JetBrains Mono', monospace; outline: none;
}
.hw-task-card-input:focus { border-color: var(--accent); }
.hw-task-card-submit {
    padding: 16px 32px; background: var(--accent); color: var(--on-accent);
    border: none; border-radius: var(--ios-radius); font-size: var(--font-xl); font-weight: 600;
    cursor: pointer; font-family: inherit;
}
.hw-task-card-submit:hover { background: var(--accent-hover); }
.hw-task-card-submit:disabled { opacity: 0.4; cursor: not-allowed; }
.hw-task-card-giveup {
    display: inline-flex; align-items: center; gap: 8px; margin-top: 16px;
    padding: 12px 20px; background: transparent; border: 1px solid var(--border);
    border-radius: var(--ios-radius); color: var(--text-tertiary); font-size: var(--font-base);
    cursor: pointer; font-family: inherit;
}
.hw-task-card-giveup:hover { border-color: rgba(255,99,99,0.3); color: var(--text-secondary); }
.hw-task-card-answer {
    margin-top: 16px; padding: 20px; background: rgba(48,209,88,0.08);
    border: 1px solid rgba(48,209,88,0.2); border-radius: var(--radius-lg);
}
.hw-task-card-answer-label { font-size: var(--font-sm); color: var(--success); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; }
.hw-task-card-answer-text { font-family: 'JetBrains Mono', monospace; font-size: var(--font-xl); color: var(--success); font-weight: 600; }
.hw-task-card-attempts { display: flex; align-items: center; gap: 8px; margin-top: 16px; }
.hw-task-card-attempt-dot {
    width: 10px; height: 10px; border-radius: 50%; background: var(--accent);
}
.hw-task-card-attempt-dot.used { background: var(--text-tertiary); opacity: 0.3; }

/* Carousel */
.hw-carousel-track { display: flex; transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
.hw-carousel-slide { flex: 0 0 100%; min-width: 100%; }
.hw-carousel-btn {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--surface); border: 1px solid var(--border);
    color: var(--text-primary); font-size: var(--font-5xl); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background-color var(--anim-hover) ease, border-color var(--anim-hover) ease, color var(--anim-hover) ease, transform var(--anim-hover) ease;
}
.hw-carousel-btn:hover {
    background: var(--surface-hover); border-color: var(--border-strong);
}
.hw-carousel-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.hw-carousel-dots { display: flex; gap: 10px; }
.hw-carousel-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--text-tertiary); border: none; cursor: pointer;
    transition: background-color var(--anim-hover) ease, border-color var(--anim-hover) ease, color var(--anim-hover) ease, transform var(--anim-hover) ease;
}
.hw-carousel-dot.active { background: var(--accent); width: 24px; border-radius: 4px; }
.hw-carousel-nav {
    display: flex; justify-content: center; align-items: center; gap: 20px;
    padding: 20px 0;
    margin-top: 20px;
    border-top: 1px solid var(--border);
}

.hw-empty { text-align: center; padding: 60px 24px; color: var(--text-tertiary); font-size: var(--font-xl); }
.card-title {
    font-size: var(--font-2xl);
    font-weight: 600;
    margin-bottom: 14px;
    color: var(--text-primary);
}
.card-body {
    font-size: var(--font-xl);
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Grid */
.grid {
    display: grid;
    gap: 16px;
}
.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: 1024px) {
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* Calendar widget stub */
.calendar-stub {
    background: var(--bg-recessed);
    border: 2px dashed var(--border);
    border-radius: var(--ios-radius);
    padding: 60px 40px;
    text-align: center;
}
.calendar-stub-icon {
    font-size: var(--font-9xl);
    margin-bottom: 16px;
    opacity: 0.5;
}
.calendar-stub-text {
    font-size: var(--font-xl);
    color: var(--text-tertiary);
}

/* Link stub */
.link-stub {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: var(--bg-recessed);
    border: 1px solid var(--border);
    border-radius: var(--ios-radius);
    margin-bottom: 12px;
}
.link-stub-label {
    font-size: var(--font-base);
    font-weight: 600;
    color: var(--text-primary);
    min-width: 140px;
}
.link-stub-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: var(--font-md);
    color: var(--text-tertiary);
}
.link-stub-copy {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--ios-radius);
    padding: 6px 12px;
    color: var(--text-tertiary);
    font-size: var(--font-sm);
    cursor: pointer;
    transition: background-color var(--anim-hover) ease, border-color var(--anim-hover) ease, color var(--anim-hover) ease, transform var(--anim-hover) ease;
}
.link-stub-copy:hover {
    background: var(--surface-hover);
    color: var(--text-primary);
}

/* Stats counter */
.stat-item {
    text-align: center;
    padding: 28px;
}
.stat-value {
    font-size: var(--font-9xl);
    font-weight: 800;
    background: var(--accent-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 6px;
}
.stat-label {
    font-size: var(--font-base);
    color: var(--text-tertiary);
}

/* Progress stub */
.progress-stub {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    gap: 12px;
}
.progress-placeholder {
    width: 100%;
    height: 8px;
    background: var(--bg-recessed);
    border-radius: 4px;
    overflow: hidden;
}
.progress-bar {
    height: 100%;
    background: var(--accent-grad);
    border-radius: 4px;
    transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Achievements grid */
.achievement {
    text-align: center;
    padding: 24px 16px;
}
.giveaway-card {
    background: linear-gradient(135deg, rgba(255,99,99,0.08) 0%, rgba(191,127,255,0.08) 100%);
    border: 1px solid rgba(255,99,99,0.2);
    border-radius: var(--ios-radius);
    padding: 24px;
    text-align: center;
}
.nav-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--text-tertiary);
}
.sidebar-nav a:hover .nav-icon,
.sidebar-nav a.active .nav-icon {
    color: inherit;
}
.achievement-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 10px;
    color: var(--text-tertiary);
    opacity: 0.3;
}
.achievement-icon svg {
    width: 100%;
    height: 100%;
}
.achievement-name {
    font-size: var(--font-base);
    color: var(--text-tertiary);
}

.menu-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: var(--text-secondary);
}
/* Menu list */
.menu-list a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--ios-radius);
    margin-bottom: 10px;
    color: var(--text-secondary);
    font-size: var(--font-xl);
    font-weight: 500;
    transition: background 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                color 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}
.menu-list a:hover {
    background: var(--surface-hover);
    border-color: rgba(255,99,99,0.3);
    color: var(--text-primary);
    box-shadow: 0 8px 32px rgba(255,99,99,0.12), 0 0 0 1px rgba(255,99,99,0.08);
    transform: translateX(4px);
}


/* Toast — unified system in dashboard-brand.css */
.toast:hover { transform: scale(1.02); }

/* Home link */
.home-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-tertiary);
    font-size: var(--font-md);
    margin-bottom: 24px;
    transition: color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}
.home-link:hover { color: var(--accent); }

/* FAQ animation */
.card[data-faq] .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
}
.card[data-faq].expanded .faq-answer {
    max-height: 200px;
    opacity: 1;
}
.card[data-faq] span:last-child {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.card[data-faq].expanded span:last-child {
    transform: rotate(90deg);
}

/* ====== HELP SECTION ====== */
.help-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.help-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--ios-radius);
    cursor: pointer;
    overflow: hidden;
    transition: border-color var(--anim-hover) var(--ease-out), box-shadow var(--anim-hover) var(--ease-out);
}
.help-card:hover {
    border-color: var(--border-strong);
}
.help-card.expanded {
    border-color: var(--border-strong);
    box-shadow: 0 4px 24px rgba(0,0,0,0.2);
}
.help-card-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 24px;
    user-select: none;
    position: relative;
}
.help-card.expanded .help-card-header {
    border-bottom: 1px solid var(--border);
    padding-bottom: 16px;
}
/* Left accent bar */
.help-card-accent {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    border-radius: 0 2px 2px 0;
    opacity: 0;
    transition: opacity var(--anim-hover) var(--ease-out);
    opacity: 1;
}
.help-card-accent.attempts { background: #ff9500; }
.help-card-accent.password { background: #5eb5ff; }
.help-card-accent.lesson { background: #ff6363; }
.help-card-accent.payment { background: #30d158; }
.help-card-accent.reschedule { background: #bf7fff; }
.help-card-accent.vpn { background: #5eacfc; }
/* Number badge */
.help-num {
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--ios-radius);
    font-family: 'JetBrains Mono', monospace;
    font-size: var(--font-base); font-weight: 600;
    color: var(--text-tertiary);
    flex-shrink: 0;
    transition: background-color var(--anim-hover) ease, border-color var(--anim-hover) ease, color var(--anim-hover) ease, transform var(--anim-hover) ease;
}
.help-card.expanded .help-num {
    background: var(--accent-muted);
    border-color: rgba(255,99,99,0.2);
    color: var(--accent);
}
.help-question {
    flex: 1;
    font-size: var(--font-xl); font-weight: 600;
    color: var(--text-primary);
    line-height: 1.5;
    padding-top: 2px;
}
.help-chevron {
    width: 24px; height: 24px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; margin-top: 2px;
    color: var(--text-tertiary);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), color var(--anim-hover) var(--ease-out);
}
.help-card.expanded .help-chevron {
    transform: rotate(180deg);
    color: var(--text-secondary);
}
.help-chevron svg {
    width: 18px; height: 18px;
    stroke: currentColor; fill: none;
    stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
/* Answer body */
.help-body {
    max-height: 0; overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.help-card.expanded .help-body {
    max-height: 1200px;
}
.help-content {
    padding: 18px 24px 22px 72px;
    font-size: var(--font-lg);
    color: var(--text-secondary);
    line-height: 1.75;
}
@media (max-width: 768px) {
    .help-content { padding-left: 24px; }
}
/* Highlight block */
.help-highlight {
    background: var(--bg-recessed);
    border: 1px solid var(--border);
    border-radius: var(--ios-radius);
    padding: 16px 20px;
    margin: 12px 0;
}
.help-highlight-label {
    font-size: var(--font-xs); font-weight: 600;
    color: var(--text-tertiary);
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.help-highlight-row {
    display: flex; gap: 8px;
    margin-bottom: 6px;
}
.help-highlight-row:last-child { margin-bottom: 0; }
.help-highlight-key {
    font-size: var(--font-md); color: var(--text-tertiary);
    white-space: nowrap;
}
.help-highlight-val {
    font-size: var(--font-lg); font-weight: 600;
    color: var(--text-primary);
    font-family: 'JetBrains Mono', monospace;
    word-break: break-all;
}
/* Warning */
.help-warning {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 14px 18px;
    background: rgba(255,149,0,0.08);
    border: 1px solid rgba(255,149,0,0.15);
    border-radius: var(--ios-radius);
    margin-top: 16px;
    font-size: var(--font-base); color: var(--warning);
    line-height: 1.6;
}
.help-warning svg {
    width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px;
    stroke: #ff9500; fill: none;
    stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
/* Code block */
.help-code {
    background: var(--bg-darker);
    border: 1px solid var(--border);
    border-radius: var(--ios-radius);
    padding: 14px 18px;
    margin: 12px 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: var(--font-sm);
    color: var(--text-secondary);
    word-break: break-all;
    line-height: 1.6;
    user-select: all; cursor: text;
    transition: border-color var(--anim-hover) var(--ease-out);
}
.help-code-label {
    font-size: var(--font-xs); font-weight: 600;
    color: var(--text-tertiary);
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: flex; align-items: center; gap: 8px;
}
.help-code-label svg {
    width: 14px; height: 14px;
    stroke: var(--text-tertiary); fill: none;
    stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
/* App tags */
.help-apps {
    display: flex; flex-wrap: wrap; gap: 8px;
    margin: 12px 0;
}
.help-app-tag {
    padding: 8px 16px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--ios-radius);
    font-size: var(--font-base); font-weight: 500;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    transition: background-color var(--anim-hover) ease, border-color var(--anim-hover) ease, color var(--anim-hover) ease, transform var(--anim-hover) ease;
}
.help-app-tag:hover {
    background: var(--surface-hover);
    border-color: rgba(255,99,99,0.2);
}
/* Steps */
.help-steps { margin: 12px 0; display: flex; flex-direction: column; gap: 10px; }
.help-step { display: flex; align-items: flex-start; gap: 14px; }
.help-step-num {
    width: 26px; height: 26px;
    display: flex; align-items: center; justify-content: center;
    background: var(--accent-muted);
    border-radius: 50%;
    font-family: 'JetBrains Mono', monospace;
    font-size: var(--font-sm); font-weight: 700;
    color: var(--accent);
    flex-shrink: 0; margin-top: 1px;
}
.help-step-text {
    font-size: var(--font-lg); color: var(--text-secondary);
    line-height: 1.6; padding-top: 2px;
}
.help-step-text b { color: var(--text-primary); font-weight: 600; }
/* Purple CTA */
.help-cta {
    display: flex; align-items: center; gap: 12px;
    padding: 16px 20px;
    background: var(--purple-muted);
    border: 1px solid rgba(191,127,255,0.15);
    border-radius: var(--ios-radius);
    margin-top: 16px;
    font-size: var(--font-base);
    color: var(--purple);
    line-height: 1.6;
}
.help-cta svg {
    width: 18px; height: 18px; flex-shrink: 0;
    stroke: #bf7fff; fill: none;
    stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.help-cta a {
    color: var(--purple);
    text-decoration: underline;
    transition: color var(--anim-hover) var(--ease-out);
}

/* ====== FAQ / HELP SECTION ====== */
.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Quick actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 48px;
}
@media (max-width: 900px) {
    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }
}
.quick-action-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--ios-radius);
    padding: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
    cursor: pointer;
    transition: background-color var(--anim-hover) ease, border-color var(--anim-hover) ease, color var(--anim-hover) ease, transform var(--anim-hover) ease;
}
/* quick-action-card hover — unified in dashboard-brand.css */
.quick-action-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-muted);
    border: 1px solid rgba(255,99,99,0.15);
    border-radius: var(--ios-radius);
}
.quick-action-icon.purple { background: var(--purple-muted); border-color: rgba(191,127,255,0.15); }
.quick-action-icon.blue { background: var(--info-muted); border-color: rgba(94,172,252,0.15); }
.quick-action-icon.green { background: rgba(48,209,88,0.12); border-color: rgba(48,209,88,0.15); }
.quick-action-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--accent);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.quick-action-icon.purple svg { stroke: var(--purple); }
.quick-action-icon.blue svg { stroke: #5eacfc; }
.quick-action-icon.green svg { stroke: #30d158; }
.quick-action-label {
    font-size: var(--font-xl);
    font-weight: 600;
    color: var(--text-primary);
}
.quick-action-desc {
    font-size: var(--font-base);
    color: var(--text-tertiary);
    line-height: 1.4;
}

/* Info blocks */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 48px;
}
@media (max-width: 900px) {
    .info-grid {
        grid-template-columns: 1fr;
    }
}
.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--ios-radius);
    padding: 32px;
    transition: background-color var(--anim-hover) ease, border-color var(--anim-hover) ease, color var(--anim-hover) ease, transform var(--anim-hover) ease;
}
/* info-card hover — unified in dashboard-brand.css */
.info-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}
.info-card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--ios-radius);
}
.info-card-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--accent);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.info-card-title {
    font-size: var(--font-2xl);
    font-weight: 600;
    color: var(--text-primary);
}
.info-card-body {
    font-size: var(--font-xl);
    color: var(--text-secondary);
    line-height: 1.6;
}
.info-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: var(--font-base);
    font-weight: 600;
    color: var(--accent);
    margin-top: 16px;
    transition: background-color var(--anim-hover) ease, border-color var(--anim-hover) ease, color var(--anim-hover) ease, transform var(--anim-hover) ease;
}
.info-card-link:hover {
    gap: 10px;
}
.info-card-link svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Contact cards */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 20px;
    margin-top: 48px;
}
@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}
.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--ios-radius);
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: background-color var(--anim-hover) ease, border-color var(--anim-hover) ease, color var(--anim-hover) ease, transform var(--anim-hover) ease;
}
/* contact-card hover — unified in dashboard-brand.css */
.contact-card-method {
    display: flex;
    align-items: center;
    gap: 16px;
}
.contact-card-text {
    min-width: 0;
    overflow-wrap: anywhere;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.contact-method-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--ios-radius);
    font-size: var(--font-5xl);
}
.contact-method-icon.tg { background: rgba(94,172,252,0.15); }
.contact-method-icon.email { background: rgba(191,127,255,0.15); }
.contact-method-icon.time { background: rgba(48,209,88,0.15); }
.contact-method-label {
    font-size: var(--font-md);
    color: var(--text-tertiary);
}
.contact-method-value {
    font-size: var(--font-lg);
    font-weight: 600;
    color: var(--text-primary);
}
.contact-card-info {
    font-size: var(--font-xl);
    color: var(--text-secondary);
    line-height: 1.6;
    padding-top: 16px;
    margin-top: 16px;
    border-top: 1px solid var(--border);
}
.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--ios-radius);
    cursor: pointer;
    overflow: hidden;
    position: relative;
    transition: border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.faq-item:hover {
    border-color: rgba(255,99,99,0.25);
    box-shadow: 0 4px 20px rgba(255,99,99,0.08), 0 0 0 1px rgba(255,99,99,0.06);
}
.faq-item.expanded {
    border-color: rgba(255,99,99,0.3);
    box-shadow: 0 8px 32px rgba(255,99,99,0.12), 0 0 0 1px rgba(255,99,99,0.1);
}
.faq-item-header {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 32px;
    user-select: none;
    position: relative;
    transition: background var(--anim-hover) var(--ease-out);
    background: var(--surface-hover);
}
.faq-item.expanded .faq-item-header {
    border-bottom: 1px solid var(--border);
    padding-bottom: 32px;
    background: transparent;
}
/* Left accent bar */
.faq-item-accent {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    border-radius: 0 2px 2px 0;
    opacity: 0;
    transition: opacity var(--anim-hover) var(--ease-out);
    opacity: 1;
}
.faq-item-accent.attempts { background: #ff9500; }
.faq-item-accent.password { background: #5eb5ff; }
.faq-item-accent.lesson { background: #ff6363; }
.faq-item-accent.payment { background: #30d158; }
.faq-item-accent.reschedule { background: #bf7fff; }
.faq-item-accent.vpn { background: #5eacfc; }
/* Icon */
.faq-item-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--ios-radius);
    flex-shrink: 0;
    transition: background-color var(--anim-hover) ease, border-color var(--anim-hover) ease, color var(--anim-hover) ease, transform var(--anim-hover) ease;
}
.faq-item-icon svg {
    width: 24px;
    height: 24px;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}
.faq-item-icon.attempts {
    background: rgba(255,149,0,0.1);
    border: 1px solid rgba(255,149,0,0.12);
    color: var(--warning);
}
.faq-item-icon.attempts svg { stroke: #ff9500; }
.faq-item-icon.password {
    background: rgba(94,181,255,0.1);
    border: 1px solid rgba(94,181,255,0.12);
    color: var(--info);
}
.faq-item-icon.password svg { stroke: #5eb5ff; }
.faq-item-icon.lesson {
    background: rgba(255,99,99,0.1);
    border: 1px solid rgba(255,99,99,0.12);
    color: var(--accent);
}
.faq-item-icon.lesson svg { stroke: #ff6363; }
.faq-item-icon.payment {
    background: rgba(48,209,88,0.1);
    border: 1px solid rgba(48,209,88,0.12);
    color: var(--success);
}
.faq-item-icon.payment svg { stroke: #30d158; }
.faq-item-icon.reschedule {
    background: rgba(191,127,255,0.1);
    border: 1px solid rgba(191,127,255,0.12);
    color: var(--purple);
}
.faq-item-icon.reschedule svg { stroke: #bf7fff; }
.faq-item-icon.vpn {
    background: rgba(94,172,252,0.1);
    border: 1px solid rgba(94,172,252,0.12);
    color: var(--info);
}
.faq-item-icon.vpn svg { stroke: #5eacfc; }
.faq-item.expanded .faq-item-icon {
    transform: none;
}
.faq-item-content {
    flex: 1;
    min-width: 0;
}
.faq-item-question {
    font-size: var(--font-2xl);
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.5;
    transition: color var(--anim-hover) var(--ease-out);
    padding-top: 0;
}
.faq-item.expanded .faq-item-question {
    color: var(--accent);
}
.faq-item-toggle {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--text-tertiary);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                color 0.3s ease;
}
.faq-item.expanded .faq-item-toggle {
    transform: rotate(90deg);
    color: var(--accent);
}
.faq-item-toggle svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
/* Answer wrapper - smooth open/close with scale + fade */
.faq-item-answer-wrapper {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-item.expanded .faq-item-answer-wrapper {
    max-height: 1500px;
    opacity: 1;
    transform: translateY(0);
}

/* Category progress animation (same as FAQ) */
.cat-progress-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--ios-radius);
    cursor: pointer;
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
    transition: border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
/* cat-progress-item hover — unified in dashboard-brand.css */
.cat-progress-item.expanded {
    border-color: rgba(255,99,99,0.3);
    box-shadow: 0 8px 32px rgba(255,99,99,0.12), 0 0 0 1px rgba(255,99,99,0.1);
}
.cat-progress-item-header {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 28px 32px;
    user-select: none;
    position: relative;
    transition: background var(--anim-hover) var(--ease-out);
    background: var(--surface-hover);
}
.cat-progress-item.expanded .cat-progress-item-header {
    border-bottom: 1px solid var(--border);
    padding-bottom: 28px;
    background: transparent;
}
.cat-progress-item-accent {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    border-radius: 0 2px 2px 0;
    opacity: 0;
    transition: opacity var(--anim-hover) var(--ease-out);
    opacity: 1;
}
.cat-progress-item-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--ios-radius);
    flex-shrink: 0;
    transition: background-color var(--anim-hover) ease, border-color var(--anim-hover) ease, color var(--anim-hover) ease, transform var(--anim-hover) ease;
}
.cat-progress-item-icon svg {
    width: 24px;
    height: 24px;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}
.cat-progress-item-content {
    flex: 1;
    min-width: 0;
}
.cat-progress-item-question {
    font-size: var(--font-2xl);
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.5;
    transition: color var(--anim-hover) var(--ease-out);
    padding-top: 0;
}
.cat-progress-item.expanded .cat-progress-item-question {
    color: var(--accent);
}
.cat-progress-item-toggle {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--text-tertiary);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                color 0.3s ease;
}
.cat-progress-item.expanded .cat-progress-item-toggle {
    transform: rotate(90deg);
    color: var(--accent);
}
.cat-progress-item-toggle svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.cat-progress-item-answer-wrapper {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.cat-progress-item.expanded .cat-progress-item-answer-wrapper {
    max-height: 2000px;
    opacity: 1;
    transform: translateY(0);
}
.cat-progress-item-answer {
    padding: 20px 32px 24px 32px;
}

/* Topic item animation */
.topic-progress-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--ios-radius);
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    margin-bottom: 10px;
}
/* topic-progress-item hover — unified in dashboard-brand.css */
.topic-progress-item.expanded {
    border-color: rgba(255,99,99,0.3);
    box-shadow: 0 8px 32px rgba(255,99,99,0.12);
}
.topic-progress-item-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 24px;
    user-select: none;
    transition: background var(--anim-hover) var(--ease-out);
    background: var(--surface-hover);
}
.topic-progress-item.expanded .topic-progress-item-header {
    border-bottom: 1px solid var(--border);
    padding-bottom: 14px;
}
.topic-progress-item-toggle {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--text-tertiary);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.topic-progress-item.expanded .topic-progress-item-toggle {
    transform: rotate(90deg);
    color: var(--accent);
}
.topic-progress-item-toggle svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.topic-progress-item-answer-wrapper {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.topic-progress-item.expanded .topic-progress-item-answer-wrapper {
    max-height: 1000px;
    opacity: 1;
    transform: translateY(0);
}
.topic-progress-item-answer {
    padding: 16px 20px 20px 20px;
}
.faq-item-answer {
    padding: 20px 32px 24px 80px;
    font-size: var(--font-xl);
    color: var(--text-secondary);
    line-height: 1.6;
}
@media (max-width: 768px) {
    .faq-item-answer {
        padding-left: 32px;
    }
}
/* FAQ answer rich content */
.faq-answer-text {
    font-size: var(--font-lg);
    color: var(--text-secondary);
    line-height: 1.7;
}
.faq-answer-text b {
    color: var(--text-primary);
    font-weight: 600;
}
.faq-answer-text + .faq-answer-text {
    padding-top: 4px;
}
.faq-highlight-box {
    background: var(--bg-recessed);
    border: 1px solid var(--border);
    border-radius: var(--ios-radius);
    padding: 24px 28px;
    margin: 16px 0;
}
.faq-highlight-box-label {
    font-size: var(--font-xs);
    font-weight: 600;
    color: var(--text-tertiary);
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.faq-highlight-box-label svg {
    width: 13px;
    height: 13px;
    stroke: var(--text-tertiary);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.faq-highlight-row {
    display: flex;
    gap: 8px;
    margin-bottom: 6px;
    align-items: baseline;
}
.faq-highlight-row:last-child {
    margin-bottom: 0;
}
.faq-highlight-key {
    font-size: var(--font-md);
    color: var(--text-tertiary);
    min-width: 80px;
    white-space: nowrap;
}
.faq-highlight-val {
    font-size: var(--font-base);
    font-weight: 600;
    color: var(--text-primary);
    font-family: 'JetBrains Mono', monospace;
    word-break: break-all;
}
.faq-steps-list {
    margin: 16px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.faq-step-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.faq-step-num {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,149,0,0.12);
    border-radius: 50%;
    font-family: 'JetBrains Mono', monospace;
    font-size: var(--font-md);
    font-weight: 700;
    color: var(--warning);
    flex-shrink: 0;
}
.faq-step-text {
    font-size: var(--font-xl);
    color: var(--text-secondary);
    line-height: 1.6;
    padding-top: 3px;
}
.faq-step-text b {
    color: var(--text-primary);
    font-weight: 600;
}
.faq-warning-box {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(255,149,0,0.08);
    border: 1px solid rgba(255,149,0,0.15);
    border-radius: var(--ios-radius);
    margin-top: 20px;
    font-size: var(--font-lg);
    color: var(--warning);
    line-height: 1.6;
}
.faq-warning-box svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 2px;
    stroke: #ff9500;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.faq-app-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0;
}
.faq-app-tag {
    padding: 8px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--ios-radius);
    font-size: var(--font-base);
    font-weight: 500;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    transition: background-color var(--anim-hover) ease, border-color var(--anim-hover) ease, color var(--anim-hover) ease, transform var(--anim-hover) ease;
}
.faq-app-tag:hover {
    background: var(--surface-hover);
    border-color: rgba(94,172,252,0.3);
}
/* VPN download buttons */
.faq-platform-section {
    margin-top: 16px;
}
.faq-platform-title {
    font-size: var(--font-xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.faq-platform-title svg {
    width: 20px;
    height: 20px;
    stroke: #5eacfc;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.faq-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: linear-gradient(135deg, #5eacfc 0%, #3d8db8 100%);
    border: none;
    border-radius: var(--ios-radius);
    color: var(--text-primary);
    font-size: var(--font-lg);
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    cursor: pointer;
    transition: background-color var(--anim-hover) ease, border-color var(--anim-hover) ease, color var(--anim-hover) ease, transform var(--anim-hover) ease;
    margin-bottom: 8px;
}
/* faq-download-btn hover — unified in dashboard-brand.css */
.faq-download-btn svg {
    width: 18px;
    height: 18px;
    stroke: #ffffff;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.faq-download-btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 8px;
}
.faq-code-block {
    background: var(--bg-darker);
    border: 1px solid var(--border);
    border-radius: var(--ios-radius);
    padding: 16px 20px;
    margin: 16px 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: var(--font-sm);
    color: var(--text-secondary);
    word-break: break-all;
    line-height: 1.6;
    user-select: all;
    cursor: text;
    position: relative;
    transition: border-color var(--anim-hover) var(--ease-out);
    border-color: rgba(94,172,252,0.3);
}
.faq-cta-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(191,127,255,0.1);
    border: 1px solid rgba(191,127,255,0.2);
    border-radius: var(--ios-radius);
    margin-top: 16px;
    font-size: var(--font-lg);
    color: var(--purple);
    line-height: 1.6;
}
.faq-cta-box svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    stroke: #bf7fff;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.faq-cta-box a {
    color: var(--purple);
    text-decoration: underline;
    transition: color var(--anim-hover) var(--ease-out);
    color: #d4a8ff;
}

/* VPN code block with copy button */
.faq-vpn-code-wrapper {
    position: relative;
    margin: 14px 0;
}
.faq-vpn-code-wrapper .faq-code-block {
    padding-right: 52px;
}
.faq-vpn-code-label {
    font-size: var(--font-xs);
    font-weight: 600;
    color: var(--text-tertiary);
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.faq-vpn-code-label svg {
    width: 14px;
    height: 14px;
    stroke: var(--text-tertiary);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.faq-copy-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-tertiary);
    cursor: pointer;
    transition: background-color var(--anim-hover) ease, border-color var(--anim-hover) ease, color var(--anim-hover) ease, transform var(--anim-hover) ease;
    z-index: 2;
}
.faq-copy-btn:hover {
    background: var(--surface-hover);
    color: var(--info);
    border-color: rgba(94,172,252,0.3);
}
.faq-copy-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.faq-copy-btn.copied {
    color: var(--success);
    border-color: rgba(48,209,88,0.3);
    background: rgba(48,209,88,0.1);
}
.faq-copy-btn.copied svg {
    stroke: #30d158;
}
.faq-toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--bg-card);
    border: 1px solid rgba(48,209,88,0.3);
    color: var(--success);
    font-size: var(--font-base);
    font-weight: 500;
    padding: 12px 24px;
    border-radius: var(--ios-radius);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    opacity: 0;
    transition: background-color var(--anim-hover) ease, border-color var(--anim-hover) ease, color var(--anim-hover) ease, transform var(--anim-hover) ease;
    z-index: 10000;
    pointer-events: none;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
}
.faq-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.faq-toast svg {
    width: 16px;
    height: 16px;
    stroke: #30d158;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.faq-payment-highlight {
    background: rgba(48,209,88,0.08);
    border: 1px solid rgba(48,209,88,0.15);
}
.faq-reschedule-rule {
    display: flex;
    gap: 12px;
    padding: 14px 18px;
    background: var(--surface);
    border-radius: var(--ios-radius);
    margin: 10px 0;
    font-size: var(--font-lg);
    color: var(--text-secondary);
    line-height: 1.6;
    border-left: 3px solid transparent;
}
.faq-reschedule-rule.warning {
    border-left-color: #ff9500;
    background: rgba(255,149,0,0.06);
}
.faq-reschedule-rule.good {
    border-left-color: #30d158;
    background: rgba(48,209,88,0.06);
}
.faq-reschedule-rule svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Event card hover — unified transition in brand.css */
.event-card {
/* event-card hover — unified in dashboard-brand.css */
}

/* Event card clickable variant — unified transition in brand.css */
.event-card-clickable {
/* event-card-clickable hover — unified in dashboard-brand.css */
}

/* Calendar cell hover — unified transition in brand.css */
.calendar-cell:hover:not(.is-today):not(.is-past) {
    background: var(--surface-hover);
}

/* Upcoming event item — unified transition in brand.css */
.upcoming-event-item {
/* upcoming-event-item hover — unified in dashboard-brand.css */
}

/* ====== HOMEWORK ====== */
.hw-container { }
.hw-stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.hw-stat-card { text-align: center; padding: 20px 16px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.hw-stat-num { font-size: var(--font-7xl); font-weight: 800; background: var(--accent-grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hw-stat-label { font-size: var(--font-md); color: var(--text-tertiary); margin-top: 4px; }
.hw-section-list { display: flex; flex-direction: column; gap: 8px; }
.hw-section-item { display: flex; align-items: center; gap: 16px; padding: 18px 22px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); cursor: pointer; transition: background-color var(--anim-hover) ease, border-color var(--anim-hover) ease, color var(--anim-hover) ease, transform var(--anim-hover) ease; }
/* hw-section-item hover — unified in dashboard-brand.css */
.hw-section-num { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--ios-radius); font-family: 'JetBrains Mono', monospace; font-size: var(--font-xl); font-weight: 700; color: var(--text-primary); flex-shrink: 0; }
.hw-section-info { flex: 1; }
.hw-section-title { font-size: var(--font-xl); font-weight: 600; color: var(--text-primary); }
.hw-section-meta { font-size: var(--font-md); color: var(--text-tertiary); margin-top: 2px; }
.hw-section-pct { font-family: 'JetBrains Mono', monospace; font-size: var(--font-base); font-weight: 600; color: var(--text-secondary); }
.hw-section-pct.done { color: var(--success); }
.hw-mini-bar { width: 100%; height: 4px; background: var(--bg-recessed); border-radius: 2px; overflow: hidden; margin-top: 6px; }
.hw-mini-bar-fill { height: 100%; background: var(--accent-grad); border-radius: 2px; }
.hw-back-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--ios-radius); color: var(--text-secondary); font-size: var(--font-base); font-weight: 500; cursor: pointer; margin-bottom: 20px; font-family: inherit; }
.hw-back-btn:hover { background: var(--surface-hover); color: var(--text-primary); }
.hw-task-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; margin-bottom: 16px; }
.hw-task-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.hw-task-number { font-family: 'JetBrains Mono', monospace; font-size: var(--font-md); font-weight: 600; color: var(--accent); background: var(--accent-muted); padding: 4px 10px; border-radius: var(--radius-pill); }
.hw-task-status { font-size: var(--font-md); font-weight: 600; padding: 4px 12px; border-radius: var(--radius-pill); }
.hw-task-status.ok { color: var(--success); background: rgba(48,209,88,0.12); }
.hw-task-status.attempting { color: var(--text-secondary); background: var(--surface); }
.hw-task-desc { font-size: var(--font-lg); color: var(--text-secondary); line-height: 1.7; margin-bottom: 20px; padding: 16px; background: var(--bg-recessed); border-radius: var(--radius-lg); border-left: 3px solid var(--accent); white-space: pre-wrap; }
.hw-task-stub { font-size: var(--font-lg); color: var(--text-tertiary); font-style: italic; margin-bottom: 20px; padding: 16px; background: var(--bg-recessed); border-radius: var(--radius-lg); text-align: center; }
.hw-input-row { display: flex; gap: 10px; align-items: stretch; margin-top: 16px; }
.hw-input { flex: 1; padding: 14px 18px; background: var(--bg-recessed); border: 1px solid var(--border); border-radius: var(--radius-lg); color: var(--text-primary); font-size: var(--font-lg); font-family: 'JetBrains Mono', monospace; outline: none; }
.hw-input:focus { border-color: var(--accent); }
.hw-submit-btn { padding: 14px 28px; background: var(--accent); color: var(--on-accent); border: none; border-radius: var(--radius-lg); font-size: var(--font-lg); font-weight: 600; cursor: pointer; font-family: inherit; }
.hw-submit-btn:hover { background: var(--accent-hover); }
.hw-submit-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.hw-giveup-btn { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 10px 18px; background: transparent; border: 1px solid var(--border); border-radius: var(--radius-lg); color: var(--text-tertiary); font-size: var(--font-md); cursor: pointer; font-family: inherit; }
.hw-giveup-btn:hover { border-color: rgba(255,99,99,0.3); color: var(--text-secondary); }
.hw-answer-reveal { margin-top: 14px; padding: 16px; background: rgba(48,209,88,0.08); border: 1px solid rgba(48,209,88,0.2); border-radius: var(--radius-lg); }
.hw-answer-reveal-label { font-size: var(--font-sm); color: var(--success); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; }
.hw-answer-reveal-text { font-family: 'JetBrains Mono', monospace; font-size: var(--font-xl); color: var(--success); font-weight: 600; }
.hw-attempts-row { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.hw-attempt-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.hw-attempt-dot.used { background: var(--text-tertiary); opacity: 0.3; }
.hw-nav-row { display: flex; gap: 10px; margin-top: 16px; }
.hw-nav-btn { padding: 10px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--ios-radius); color: var(--text-secondary); font-size: var(--font-base); font-weight: 500; cursor: pointer; font-family: inherit; }
.hw-nav-btn:hover { background: var(--surface-hover); color: var(--text-primary); }
.hw-nav-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.hw-tabs { display: flex; gap: 8px; margin-bottom: 24px; }
.hw-tab { padding: 10px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--ios-radius); font-size: var(--font-base); font-weight: 500; color: var(--text-tertiary); cursor: pointer; font-family: inherit; }
.hw-tab:hover { color: var(--text-primary); }
.hw-tab.active { background: var(--accent); color: var(--on-accent); border-color: var(--accent); font-weight: 600; }
.hw-empty { text-align: center; padding: 60px 24px; color: var(--text-tertiary); }
.hw-complete-banner { display: flex; align-items: center; gap: 12px; padding: 20px 24px; background: rgba(48,209,88,0.08); border: 1px solid rgba(48,209,88,0.2); border-radius: var(--radius-lg); margin-bottom: 20px; }
.hw-complete-icon { font-size: var(--font-6xl); }
.hw-complete-text { font-size: var(--font-lg); font-weight: 600; color: var(--success); }
.hw-complete-pct { font-family: 'JetBrains Mono', monospace; font-size: var(--font-base); color: var(--success); }

/* ====== HOMEWORK V2 ====== */
.hw-view { display: none; }
.hw-view.active { display: block; }
.hw-start-screen { display: flex; flex-direction: column; gap: 20px; }
.hw-start-card {
    display: flex; align-items: center; gap: 32px;
    padding: 32px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--ios-radius); cursor: pointer;
    transition: background-color var(--anim-hover) ease, border-color var(--anim-hover) ease, color var(--anim-hover) ease, transform var(--anim-hover) ease;
}
/* hw-start-card hover — unified in dashboard-brand.css */
.hw-start-icon {
    width: 64px; height: 64px; display: flex; align-items: center; justify-content: center;
    background: var(--accent-muted); border-radius: var(--ios-radius);
    font-size: var(--font-7xl); flex-shrink: 0;
}
.hw-start-info { flex: 1; }
.hw-start-title { font-size: var(--font-4xl); font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.hw-start-subtitle { font-size: var(--font-xl); color: var(--text-secondary); }
.hw-start-arrow { font-size: var(--font-5xl); color: var(--text-tertiary); transition: background-color var(--anim-hover) ease, border-color var(--anim-hover) ease, color var(--anim-hover) ease, transform var(--anim-hover) ease; }
.hw-start-card:hover .hw-start-arrow { color: var(--accent); transform: translateX(4px); }
.hw-section-card {
    display: flex; align-items: center; gap: 24px;
    padding: 32px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--ios-radius); cursor: pointer;
    transition: background-color var(--anim-hover) ease, border-color var(--anim-hover) ease, color var(--anim-hover) ease, transform var(--anim-hover) ease;
    position: relative;
    overflow: hidden;
}
.hw-section-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent-grad);
    opacity: 0;
    transition: opacity var(--anim-hover) var(--ease-out);
}
.hw-section-card-num {
    min-width: 100px; width: auto; height: 64px; display: flex; align-items: center; justify-content: center;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--ios-radius); flex-shrink: 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: var(--font-2xl); font-weight: 700; color: var(--text-primary);
    white-space: nowrap;
    padding: 0 16px;
}
.hw-section-card-info { flex: 1; min-width: 0; }
.hw-section-card-title { font-size: var(--font-2xl); font-weight: 600; color: var(--text-primary); margin-bottom: 8px; }
.hw-section-card-bar { width: 100%; height: 6px; background: var(--bg-recessed); border-radius: 3px; overflow: hidden; }
.hw-section-card-bar-fill { height: 100%; border-radius: 3px; transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.hw-section-card-bar-fill.low { background: #ff6363; }
.hw-section-card-bar-fill.mid { background: #ff9500; }
.hw-section-card-bar-fill.high { background: #30d158; }
.hw-section-card-pct { font-family: 'JetBrains Mono', monospace; font-size: var(--font-2xl); font-weight: 600; color: var(--text-secondary); flex-shrink: 0; min-width: 60px; text-align: right; }
.hw-section-card-pct.done { color: var(--success); }
.hw-section-card-check { font-size: var(--font-5xl); color: var(--success); flex-shrink: 0; }
.hw-task-card-v2 {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--ios-radius); padding: 32px;
    margin-bottom: 20px; transition: background-color var(--anim-hover) ease, border-color var(--anim-hover) ease, color var(--anim-hover) ease, transform var(--anim-hover) ease;
}
.hw-task-card-v2:hover { border-color: rgba(255,255,255,0.1); }
.hw-task-card-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.hw-task-card-number { font-family: 'JetBrains Mono', monospace; font-size: var(--font-base); font-weight: 600; padding: 6px 14px; border-radius: var(--radius-pill); }
.hw-task-card-status { font-size: var(--font-base); font-weight: 600; padding: 6px 14px; border-radius: var(--radius-pill); display: flex; align-items: center; gap: 8px; }
.hw-task-card-status-dot { width: 10px; height: 10px; border-radius: 50%; transition: background-color var(--anim-hover) ease, border-color var(--anim-hover) ease, color var(--anim-hover) ease, transform var(--anim-hover) ease; }
.hw-status-none { background: rgba(154,154,156,0.12); color: #6e6e70; }
.hw-status-none .hw-task-card-status-dot { background: #6e6e70; }
.hw-status-progress { background: rgba(255,149,0,0.12); color: var(--warning); }
.hw-status-progress .hw-task-card-status-dot { background: #ff9500; }
.hw-status-solved { background: rgba(48,209,88,0.12); color: var(--success); }
.hw-status-solved .hw-task-card-status-dot { background: #30d158; }
.hw-status-revealed { background: rgba(255,99,99,0.12); color: var(--accent); }
.hw-status-revealed .hw-task-card-status-dot { background: #ff6363; }
.hw-task-card-desc { font-size: var(--font-xl); color: var(--text-secondary); line-height: 1.6; margin-bottom: 20px; padding: 20px; background: var(--bg-recessed); border-radius: var(--radius-lg); border-left: 3px solid var(--accent); white-space: pre-wrap; }
.hw-task-card-placeholder { font-size: var(--font-xl); color: var(--text-tertiary); font-style: italic; margin-bottom: 20px; padding: 20px; background: var(--bg-recessed); border-radius: var(--ios-radius); text-align: center; }
.hw-task-card-actions { display: flex; gap: 12px; align-items: stretch; margin-top: 20px; }
.hw-task-card-input { flex: 1; padding: 16px 20px; background: var(--bg-recessed); border: 1px solid var(--border); border-radius: var(--radius-lg); color: var(--text-primary); font-size: var(--font-xl); font-family: 'JetBrains Mono', monospace; outline: none; }
.hw-task-card-input:focus { border-color: var(--accent); }
.hw-task-card-submit { padding: 16px 32px; background: var(--accent); color: var(--on-accent); border: none; border-radius: var(--radius-md); font-size: var(--font-xl); font-weight: 600; cursor: pointer; font-family: inherit; transition: background-color var(--anim-hover) ease, border-color var(--anim-hover) ease, color var(--anim-hover) ease, transform var(--anim-hover) ease; }
.hw-task-card-submit:hover { background: var(--accent-hover); }
.hw-task-card-submit:disabled { opacity: 0.4; cursor: not-allowed; }
.hw-task-card-giveup { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 12px 20px; background: transparent; border: 1px solid var(--border); border-radius: var(--radius-md); color: var(--text-tertiary); font-size: var(--font-base); cursor: pointer; font-family: inherit; transition: background-color var(--anim-hover) ease, border-color var(--anim-hover) ease, color var(--anim-hover) ease, transform var(--anim-hover) ease; }
.hw-task-card-giveup:hover { border-color: rgba(255,99,99,0.3); color: var(--text-secondary); }
.hw-task-card-answer { margin-top: 16px; padding: 20px; background: rgba(48,209,88,0.08); border: 1px solid rgba(48,209,88,0.2); border-radius: var(--radius-lg); }
.hw-task-card-answer-label { font-size: var(--font-sm); color: var(--success); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; }
.hw-task-card-answer-text { font-family: 'JetBrains Mono', monospace; font-size: var(--font-xl); color: var(--success); font-weight: 600; }
.hw-task-card-attempts { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.hw-task-card-attempt-dot { width: 10px; height: 10px; border-radius: 50%; transition: background-color var(--anim-hover) ease, border-color var(--anim-hover) ease, color var(--anim-hover) ease, transform var(--anim-hover) ease; }
.hw-task-card-nav { display: flex; gap: 12px; margin-top: 20px; }
.hw-task-card-nav-btn { padding: 12px 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); color: var(--text-secondary); font-size: var(--font-lg); font-weight: 500; cursor: pointer; font-family: inherit; transition: background-color var(--anim-hover) ease, border-color var(--anim-hover) ease, color var(--anim-hover) ease, transform var(--anim-hover) ease; }
.hw-task-card-nav-btn:hover { background: var(--surface-hover); color: var(--text-primary); }
.hw-task-card-nav-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.hw-back-btn-v2 { display: inline-flex; align-items: center; gap: 8px; padding: 14px 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); color: var(--text-secondary); font-size: var(--font-xl); font-weight: 500; cursor: pointer; margin-bottom: 32px; font-family: inherit; transition: background-color var(--anim-hover) ease, border-color var(--anim-hover) ease, color var(--anim-hover) ease, transform var(--anim-hover) ease; }
.hw-back-btn-v2:hover { background: var(--surface-hover); color: var(--text-primary); }

/* ====== UNIVERSAL NOTIFICATION (simple toast) ====== */
.universal-notif {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 10001;
    min-width: 320px;
    max-width: 480px;
    padding: 0;
    background: #0c0d0e;
    border: 1px solid;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    font-family: 'JetBrains Mono', monospace;
    font-size: var(--font-base);
    color: #e6e6e6;
    opacity: 0;
    transform: translateY(-16px);
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.universal-notif-content {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
}
.universal-notif.visible {
    opacity: 1;
    transform: translateY(0);
}
.universal-notif.removing {
    opacity: 0;
    transform: translateY(-16px);
}
.universal-notif.info {
    border-color: rgba(94,181,255,0.3);
}
.universal-notif.success {
    border-color: rgba(48,209,88,0.3);
}
.universal-notif.warning {
    border-color: rgba(255,149,0,0.3);
}
.universal-notif.error {
    border-color: rgba(255,99,99,0.3);
}
.attempt-heart.full svg {
    opacity: 1;
}
.attempt-heart.empty svg {
    fill: none;
    stroke-width: 2;
}
.attempt-heart.empty svg path {
    fill: none;
}
.warning .attempt-heart.full svg { fill: #e4c040; }
.warning .attempt-heart.empty svg { stroke: rgba(228,192,64,0.25); }
.danger .attempt-heart.full svg { fill: #f09030; }
.danger .attempt-heart.empty svg { stroke: rgba(240,144,48,0.25); }
.critical .attempt-heart.full svg { fill: #e05050; }
.critical .attempt-heart.empty svg { stroke: rgba(224,80,80,0.25); }
.attempts-notification-timer {
    height: 2px;
    background: rgba(255,255,255,0.06);
    margin: 0 16px 14px;
    border-radius: 1px;
    overflow: hidden;
}
.attempts-notification-timer-bar {
    height: 100%;
    border-radius: 1px;
    animation: attemptsBarDecrease 4s linear forwards;
}
.warning .attempts-notification-timer-bar { background: #e4c040; }
.danger .attempts-notification-timer-bar { background: #f09030; }
.critical .attempts-notification-timer-bar { background: #e05050; }

/* Minecraft-style pixel heart icon */
.pixel-heart {
    image-rendering: pixelated;
}

@media (max-width: 768px) {
    .attempts-notification {
        min-width: 280px;
        max-width: calc(100vw - 24px);
        top: 16px;
        right: 12px;
        left: 12px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        right: 12px;
        left: auto;
    }
    .sidebar {
        display: none;
    }
    .main-content {
        margin-left: 0;
        padding-top: 60px;
    }
    /* Auth tabs on same line */
    .auth-tabs {
        display: flex;
        flex-direction: row !important;
        justify-content: space-between;
    }
    .auth-tab {
        flex: 1;
        text-align: center;
    }
    /* Responsive sizing with clamp */
    .page-title {
        font-size: clamp(18px, 5vw, 28px) !important;
    }
    .section-title {
        font-size: clamp(16px, 4vw, 22px) !important;
        margin-bottom: clamp(12px, 3vw, 20px) !important;
        padding-bottom: 10px !important;
    }
    .card {
        padding: clamp(12px, 3vw, 24px) !important;
    }
    .stat-card {
        padding: clamp(12px, 3vw, 24px) !important;
    }
    .stat-value {
        font-size: clamp(24px, 6vw, 40px) !important;
    }
    .stat-label {
        font-size: clamp(11px, 3vw, 14px) !important;
    }
    .quick-action-card {
        padding: clamp(16px, 4vw, 32px) !important;
    }
    .quick-action-icon {
        width: clamp(40px, 10vw, 56px) !important;
        height: clamp(40px, 10vw, 56px) !important;
    }
    .contact-card {
        padding: clamp(12px, 3vw, 20px) !important;
    }
    .faq-item-question {
        font-size: clamp(14px, 3.5vw, 18px) !important;
    }
    .faq-item-answer {
        font-size: clamp(13px, 3vw, 16px) !important;
        padding: clamp(12px, 3vw, 20px) !important;
    }
    /* Tests grid fix */
    .grid-4 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }
    .grid-4 .card {
        padding: 16px 12px !important;
    }
    .grid-4 .card svg {
        width: 24px !important;
        height: 24px !important;
        margin-bottom: 8px !important;
    }
    /* Stats: tests stacked vertically */
    .stats-hero-grid {
        grid-template-columns: 1fr !important;
    }
    /* Stats: homework analytics stacked vertically */
    .stats-homework-grid {
        grid-template-columns: 1fr !important;
    }
    /* Category stats: stacked vertically */
    .cat-progress-item-answer > div[style*="grid-template-columns: repeat(3"] {
        grid-template-columns: 1fr !important;
    }
    /* Homework: all cards stacked vertically */
    .hw-number-list {
        grid-template-columns: 1fr !important;
    }
    .hw-section-list {
        grid-template-columns: 1fr !important;
    }
    /* Achievements: all cards stacked vertically */
    .achievements-hero-grid {
        grid-template-columns: 1fr !important;
    }
    .achievements-hero-grid .card[style*="grid-column: span 2"] {
        grid-column: span 1 !important;
    }
    /* Calendar: center on mobile only */
    #schedule > .page-header + h2 + div > div:first-child > div:first-child > div:first-child {
        text-align: center !important;
    }
    #schedule > .page-header + h2 + div > div:first-child > div:first-child > div:last-child {
        justify-content: center !important;
    }
    #schedule > .page-header + h2 + div > div:first-child > div:last-child {
        text-align: center !important;
        justify-content: center !important;
    }
    /* Charts: proper aspect ratio on mobile */
    .activity-chart-svg {
        aspect-ratio: 3 / 1 !important;
        height: auto !important;
    }
    /* Charts: proper scaling on mobile */
    #chartDiv {
        overflow-x: hidden !important;
        width: 100% !important;
    }
    #chartDiv svg {
        width: 100% !important;
        min-width: unset !important;
        max-width: 100% !important;
    }
    #chartDiv svg text {
        font-size: var(--font-xs) !important;
    }
    /* Calendar header: centered on mobile */
    #calHeaderRow {
        flex-direction: column !important;
        align-items: center !important;
        gap: 12px !important;
    }
    #calHeaderRow > div:first-child {
        flex-direction: column !important;
        align-items: center !important;
        gap: 12px !important;
    }
    #calHeaderRow > div:first-child > div:first-child > div:first-child {
        margin-bottom: 8px !important;
    }
    #calHeaderRow > div:first-child > div:last-child {
        justify-content: center !important;
    }
    #calTodayBtn {
        margin-top: 0 !important;
    }
    /* Homework categories: single column on mobile */
    #hwCategoriesStart {
        grid-template-columns: 1fr !important;
    }
    /* Stats hero cards: smaller on mobile */
    .stats-hero-card {
        padding: 20px !important;
        gap: 14px !important;
    }
    .stats-hero-icon {
        width: 44px !important;
        height: 44px !important;
    }
    .stats-hero-icon svg {
        width: 20px !important;
        height: 20px !important;
    }
    .stats-hero-value {
        font-size: var(--font-5xl) !important;
    }
    .stats-hero-label {
        font-size: var(--font-sm) !important;
    }
    /* Homework task cards: smaller on mobile */
    .hw-task-card {
        padding: 20px !important;
    }
    .hw-task-card-number {
        font-size: var(--font-sm) !important;
        padding: 4px 10px !important;
    }
    .hw-task-card-desc {
        font-size: var(--font-base) !important;
        padding: 14px !important;
    }
    .hw-task-card-input {
        font-size: var(--font-base) !important;
        padding: 12px 16px !important;
    }
    .hw-task-card-submit {
        padding: 12px 24px !important;
        font-size: var(--font-base) !important;
    }
    .hw-task-card-giveup {
        padding: 10px 16px !important;
        font-size: var(--font-sm) !important;
    }
    .hw-task-card-answer-text {
        font-size: var(--font-base) !important;
    }
    .hw-carousel-btn {
        width: 40px !important;
        height: 40px !important;
        font-size: var(--font-3xl) !important;
    }
    /* Homework section/start cards: smaller on mobile */
    .hw-start-card {
        padding: 20px !important;
        gap: 20px !important;
    }
    .hw-start-icon {
        width: 48px !important;
        height: 48px !important;
    }
    .hw-start-icon svg {
        width: 24px !important;
        height: 24px !important;
    }
    .hw-start-title {
        font-size: var(--font-xl) !important;
    }
    .hw-start-subtitle {
        font-size: var(--font-base) !important;
    }
    .hw-section-card {
        padding: 20px !important;
        gap: 16px !important;
    }
    .hw-section-card-num {
        min-width: 70px !important;
        height: 48px !important;
        font-size: var(--font-base) !important;
        padding: 0 12px !important;
    }
    .hw-section-card-title {
        font-size: var(--font-lg) !important;
        margin-bottom: 6px !important;
    }
    .hw-section-card-pct {
        font-size: var(--font-base) !important;
    }
    /* Homework task card content: smaller on mobile */
    .hw-task-card {
        padding: 16px !important;
    }
    .hw-task-card-header {
        margin-bottom: 12px !important;
        gap: 8px !important;
    }
    .hw-task-card-number {
        font-size: var(--font-xs) !important;
        padding: 4px 10px !important;
    }
    .hw-task-card-status {
        font-size: var(--font-xs) !important;
        padding: 4px 10px !important;
    }
    .hw-task-card-desc {
        font-size: var(--font-md) !important;
        padding: 12px !important;
        margin-bottom: 12px !important;
        line-height: 1.5 !important;
    }
    .hw-task-card-placeholder {
        font-size: var(--font-md) !important;
        padding: 12px !important;
    }
    .hw-task-card-actions {
        flex-direction: column !important;
        gap: 8px !important;
        margin-top: 12px !important;
    }
    .hw-task-card-input {
        font-size: var(--font-md) !important;
        padding: 12px 14px !important;
    }
    .hw-task-card-submit {
        padding: 12px 20px !important;
        font-size: var(--font-md) !important;
    }
    .hw-task-card-giveup {
        padding: 10px 14px !important;
        font-size: var(--font-xs) !important;
        margin-top: 12px !important;
    }
    .hw-task-card-answer {
        padding: 12px !important;
        margin-top: 12px !important;
    }
    .hw-task-card-answer-label {
        font-size: var(--font-xs) !important;
    }
    .hw-task-card-answer-text {
        font-size: var(--font-md) !important;
    }
    .hw-task-card-attempts {
        margin-top: 12px !important;
    }
    .hw-task-card-attempt-dot {
        width: 8px !important;
        height: 8px !important;
    }
    /* Homework carousel: smaller on mobile */
    .hw-carousel-btn {
        width: 36px !important;
        height: 36px !important;
        font-size: var(--font-2xl) !important;
    }
    .hw-carousel-nav {
        gap: 12px !important;
        padding: 12px 0 !important;
    }
    .hw-carousel-track {
        margin: 0 !important;
    }
    /* Stats cards: stacked vertically */
    .cat-progress-item-answer > div[style*="grid-template-columns: repeat(3"] {
        grid-template-columns: 1fr !important;
    }
    /* Homework stats: stacked vertically */
    .hw-stats-grid {
        grid-template-columns: 1fr !important;
    }
    /* Tests stats: stacked vertically */
    .tests-stats-grid {
        grid-template-columns: 1fr !important;
    }
    /* All inline grids stacked on mobile */
    div[style*="grid-template-columns: repeat(3, 1fr)"] {
        grid-template-columns: 1fr !important;
    }
    div[style*="grid-template-columns: repeat(4, 1fr)"] {
        grid-template-columns: 1fr !important;
    }
}

/* ====== АКТИВНОСТЬ ====== */
.activity-period-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.period-btn {
    padding: 10px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--ios-radius);
    color: var(--text-tertiary);
    font-size: var(--font-base);
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: background-color var(--anim-hover) ease, border-color var(--anim-hover) ease, color var(--anim-hover) ease, transform var(--anim-hover) ease;
}
.period-btn:hover {
    color: var(--text-primary);
    background: var(--surface-hover);
}
.period-btn.active {
    background: var(--accent);
    color: var(--on-accent);
    border-color: var(--accent);
    font-weight: 600;
}

.activity-chart-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--ios-radius);
    padding: 16px;
    margin-bottom: 24px;
}
.activity-chart-svg {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16 / 9;
}

/* Тултип */
.chart-tooltip {
    position: fixed;
    background: rgba(12, 13, 14, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-strong);
    border-radius: 16px;
    padding: 16px 20px;
    pointer-events: none;
    opacity: 0;
    transform: translateY(8px);
    transition: background-color var(--anim-hover) ease, border-color var(--anim-hover) ease, color var(--anim-hover) ease, transform var(--anim-hover) ease;
    z-index: 1000;
    min-width: 180px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}
.chart-tooltip.visible {
    opacity: 1;
    transform: translateY(0);
}
.tooltip-date {
    font-size: var(--font-base);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}
.tooltip-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: var(--font-4xl);
    font-weight: 700;
    margin-bottom: 6px;
}
.tooltip-details {
    font-size: var(--font-md);
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ====== STATS REDESIGN ====== */

/* Hero stats row */
.stats-hero-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}
@media (max-width: 1024px) {
    .stats-hero-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .stats-hero-grid { grid-template-columns: 1fr; }
}
.stats-hero-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--ios-radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: background-color var(--anim-hover) ease, border-color var(--anim-hover) ease, color var(--anim-hover) ease, transform var(--anim-hover) ease;
    position: relative;
    overflow: hidden;
}
.stats-hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    opacity: 0;
    transition: opacity var(--anim-hover) var(--ease-out);
}
.stats-hero-card:hover::before { opacity: 1; }
.stats-hero-card:hover {
    border-color: rgba(255,99,99,0.25);
    background: var(--surface-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.stats-hero-card.hero-accent::before { background: var(--accent-grad); }
.stats-hero-card.hero-blue::before { background: linear-gradient(135deg, #5eb5ff 0%, #5eacfc 100%); }
.stats-hero-card.hero-orange::before { background: linear-gradient(135deg, #ff9500 0%, #ffb340 100%); }
.stats-hero-card.hero-green::before { background: linear-gradient(135deg, #30d158 0%, #63e08a 100%); }
.stats-hero-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--ios-radius);
    flex-shrink: 0;
}
.stats-hero-icon.hero-accent { background: var(--accent-muted); border: 1px solid rgba(255,99,99,0.15); }
.stats-hero-icon.hero-blue { background: var(--info-muted); border: 1px solid rgba(94,172,252,0.15); }
.stats-hero-icon.hero-orange { background: rgba(255,149,0,0.12); border: 1px solid rgba(255,149,0,0.15); }
.stats-hero-icon.hero-green { background: rgba(48,209,88,0.12); border: 1px solid rgba(48,209,88,0.15); }
.stats-hero-icon svg { width: 24px; height: 24px; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.stats-hero-icon.hero-accent svg { stroke: var(--accent); }
.stats-hero-icon.hero-blue svg { stroke: #5eb5ff; }
.stats-hero-icon.hero-orange svg { stroke: #ff9500; }
.stats-hero-icon.hero-green svg { stroke: #30d158; }
.stats-hero-value {
    font-size: var(--font-6xl);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2px;
}
.stats-hero-value.hero-accent { background: var(--accent-grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stats-hero-value.hero-blue { color: var(--info); font-family: 'JetBrains Mono', monospace; }
.stats-hero-value.hero-orange { color: var(--warning); font-family: 'JetBrains Mono', monospace; }
.stats-hero-value.hero-green { color: var(--success); font-family: 'JetBrains Mono', monospace; }
.stats-hero-label {
    font-size: var(--font-md);
    color: var(--text-tertiary);
}

/* Secondary stats */
.stats-secondary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 32px;
}
@media (max-width: 900px) {
    .stats-secondary-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .stats-secondary-grid { grid-template-columns: 1fr; }
}
.stats-secondary-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--ios-radius);
    padding: 16px;
    text-align: center;
    transition: background-color var(--anim-hover) ease, border-color var(--anim-hover) ease, color var(--anim-hover) ease, transform var(--anim-hover) ease;
}
.stats-secondary-card:hover {
    border-color: rgba(255,255,255,0.1);
    background: var(--surface-hover);
}
.stats-secondary-value {
    font-size: var(--font-5xl);
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 2px;
}
.stats-secondary-label {
    font-size: var(--font-sm);
    color: var(--text-tertiary);
}

/* Category progress */
.category-progress-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--ios-radius);
    padding: 16px;
    margin-bottom: 12px;
    transition: background-color var(--anim-hover) ease, border-color var(--anim-hover) ease, color var(--anim-hover) ease, transform var(--anim-hover) ease;
}
.category-progress-item:hover {
    border-color: rgba(255,255,255,0.1);
    background: var(--surface-hover);
}
.category-progress-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.category-progress-name {
    font-size: var(--font-xl);
    font-weight: 600;
    color: var(--text-primary);
}
.category-progress-pct {
    font-size: var(--font-2xl);
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
}
.category-progress-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-darker);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 14px;
}
.category-progress-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.category-progress-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.category-meta-item {
    font-size: var(--font-md);
    color: var(--text-tertiary);
    display: flex;
    align-items: center;
    gap: 6px;
}
.category-meta-item span {
    font-weight: 600;
}

/* Test history card */
.test-history-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--ios-radius);
    padding: 16px;
    margin-bottom: 12px;
    transition: background-color var(--anim-hover) ease, border-color var(--anim-hover) ease, color var(--anim-hover) ease, transform var(--anim-hover) ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.test-history-item:hover {
    border-color: rgba(255,255,255,0.1);
    background: var(--surface-hover);
}
.test-history-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    min-width: 0;
}
.test-history-score {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--ios-radius);
    flex-shrink: 0;
    font-size: var(--font-3xl);
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
}
.test-history-score.high { background: rgba(48,209,88,0.12); color: var(--success); }
.test-history-score.mid { background: rgba(255,149,0,0.12); color: var(--warning); }
.test-history-score.low { background: rgba(255,99,99,0.12); color: var(--accent); }
.test-history-info {
    flex: 1;
    min-width: 0;
}
.test-history-name {
    font-size: var(--font-base);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.test-history-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: var(--font-md);
    color: var(--text-tertiary);
}
.test-history-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Chart tooltip */
.chart-tooltip {
    position: fixed;
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
    border-radius: var(--ios-radius);
    padding: 14px 18px;
    pointer-events: none;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity var(--anim-hover) var(--ease-out), transform var(--anim-hover) var(--ease-out);
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    min-width: 180px;
}
.chart-tooltip.visible {
    opacity: 1;
    transform: translateY(0);
}
.tooltip-date {
    font-size: var(--font-md);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}
.tooltip-value {
    font-size: var(--font-5xl);
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 4px;
}
.tooltip-details {
    font-size: var(--font-md);
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ====== DIFFICULT QUESTIONS ACCORDION ====== */
.diff-q-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--ios-radius);
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    margin-bottom: 12px;
}
.diff-q-item:hover {
    border-color: rgba(255,99,99,0.25);
    box-shadow: 0 4px 20px rgba(255,99,99,0.08), 0 0 0 1px rgba(255,99,99,0.06);
}
.diff-q-item.expanded {
    border-color: rgba(255,99,99,0.3);
    box-shadow: 0 8px 32px rgba(255,99,99,0.12), 0 0 0 1px rgba(255,99,99,0.1);
}
.diff-q-item-header {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 28px 32px;
    user-select: none;
    position: relative;
    transition: background var(--anim-hover) var(--ease-out);
    background: var(--surface-hover);
}
.diff-q-item.expanded .diff-q-item-header {
    border-bottom: 1px solid var(--border);
    padding-bottom: 28px;
    background: transparent;
}
/* Left accent bar */
.diff-q-item-accent {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    border-radius: 0 2px 2px 0;
    opacity: 0;
    transition: opacity var(--anim-hover) var(--ease-out);
    opacity: 1;
}
.diff-q-item-accent.critical { background: #ff6363; }
.diff-q-item-accent.high { background: #ff8a5c; }
.diff-q-item-accent.medium { background: #ff9500; }
.diff-q-item-accent.low { background: #bf7fff; }
.diff-q-item-accept.very-low { background: #5eb5ff; }
/* Rank badge */
.diff-q-rank {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--ios-radius);
    flex-shrink: 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: var(--font-2xl);
    font-weight: 800;
    transition: background-color var(--anim-hover) ease, border-color var(--anim-hover) ease, color var(--anim-hover) ease, transform var(--anim-hover) ease;
}
.diff-q-rank.rank-1 { background: rgba(255,99,99,0.12); border: 1px solid rgba(255,99,99,0.2); color: var(--accent); }
.diff-q-rank.rank-2 { background: rgba(255,138,92,0.12); border: 1px solid rgba(255,138,92,0.2); color: #ff8a5c; }
.diff-q-rank.rank-3 { background: rgba(255,149,0,0.12); border: 1px solid rgba(255,149,0,0.2); color: var(--warning); }
.diff-q-rank.rank-4 { background: rgba(191,127,255,0.12); border: 1px solid rgba(191,127,255,0.2); color: var(--purple); }
.diff-q-rank.rank-5 { background: rgba(94,172,252,0.12); border: 1px solid rgba(94,172,252,0.2); color: var(--info); }
/* Question info */
.diff-q-content {
    flex: 1;
    min-width: 0;
}
.diff-q-question {
    font-size: var(--font-2xl);
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.5;
    transition: color var(--anim-hover) var(--ease-out);
    padding-top: 0;
}
.diff-q-item.expanded .diff-q-question {
    color: var(--accent);
}
.diff-q-meta {
    font-size: var(--font-md);
    color: var(--text-tertiary);
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.diff-q-error-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 10px;
    border-radius: var(--ios-radius);
    font-size: var(--font-md);
    font-weight: 600;
}
.diff-q-error-badge.critical { background: rgba(255,99,99,0.12); color: var(--accent); }
.diff-q-error-badge.high { background: rgba(255,138,92,0.12); color: #ff8a5c; }
.diff-q-error-badge.medium { background: rgba(255,149,0,0.12); color: var(--warning); }
.diff-q-error-badge.low { background: rgba(191,127,255,0.12); color: var(--purple); }
.diff-q-error-badge.very-low { background: rgba(94,172,252,0.12); color: var(--info); }
/* Error bar */
.diff-q-bar-container {
    flex: 1;
    min-width: 120px;
}
.diff-q-bar-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}
.diff-q-bar-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: var(--font-base);
    font-weight: 600;
}
.diff-q-bar-track {
    height: 6px;
    background: var(--bg-recessed);
    border-radius: 3px;
    overflow: hidden;
}
.diff-q-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
/* Toggle icon */
.diff-q-toggle {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--text-tertiary);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                color 0.3s ease;
}
.diff-q-item.expanded .diff-q-toggle {
    transform: rotate(90deg);
    color: var(--accent);
}
.diff-q-toggle svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
/* Answer wrapper - smooth open/close with scale + fade */
.diff-q-answer-wrapper {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.diff-q-item.expanded .diff-q-answer-wrapper {
    max-height: 2000px;
    opacity: 1;
    transform: translateY(0);
}
.diff-q-answer {
    padding: 20px 32px 24px 32px;
}

/* ====== ACHIEVEMENTS ====== */
/* Achievement hero stats */
.achievement-hero-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 48px;
}
@media (max-width: 1024px) {
    .achievement-hero-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .achievement-hero-grid { grid-template-columns: 1fr; }
}
.achievement-hero-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--ios-radius);
    padding: 28px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: background-color var(--anim-hover) ease, border-color var(--anim-hover) ease, color var(--anim-hover) ease, transform var(--anim-hover) ease;
    position: relative;
    overflow: hidden;
}
.achievement-hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    opacity: 0;
    transition: opacity var(--anim-hover) var(--ease-out);
}
.achievement-hero-card:hover::before { opacity: 1; }
.achievement-hero-card:hover {
    border-color: rgba(255,99,99,0.25);
    background: var(--surface-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.achievement-hero-card.hero-accent::before { background: var(--accent-grad); }
.achievement-hero-card.hero-blue::before { background: linear-gradient(135deg, #5eb5ff 0%, #5eacfc 100%); }
.achievement-hero-card.hero-orange::before { background: linear-gradient(135deg, #ff9500 0%, #ffb340 100%); }
.achievement-hero-card.hero-green::before { background: linear-gradient(135deg, #30d158 0%, #63e08a 100%); }
.achievement-hero-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--ios-radius);
    flex-shrink: 0;
}
.achievement-hero-icon.hero-accent { background: var(--accent-muted); border: 1px solid rgba(255,99,99,0.15); }
.achievement-hero-icon.hero-blue { background: var(--info-muted); border: 1px solid rgba(94,172,252,0.15); }
.achievement-hero-icon.hero-orange { background: rgba(255,149,0,0.12); border: 1px solid rgba(255,149,0,0.15); }
.achievement-hero-icon.hero-green { background: rgba(48,209,88,0.12); border: 1px solid rgba(48,209,88,0.15); }
.achievement-hero-icon svg { width: 24px; height: 24px; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.achievement-hero-icon.hero-accent svg { stroke: var(--accent); }
.achievement-hero-icon.hero-blue svg { stroke: #5eb5ff; }
.achievement-hero-icon.hero-orange svg { stroke: #ff9500; }
.achievement-hero-icon.hero-green svg { stroke: #30d158; }
.achievement-hero-value {
    font-size: var(--font-7xl);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 4px;
}
.achievement-hero-value.hero-accent { background: var(--accent-grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.achievement-hero-value.hero-blue { color: var(--info); font-family: 'JetBrains Mono', monospace; }
.achievement-hero-value.hero-orange { color: var(--warning); font-family: 'JetBrains Mono', monospace; }
.achievement-hero-value.hero-green { color: var(--success); font-family: 'JetBrains Mono', monospace; }
.achievement-hero-label {
    font-size: var(--font-base);
    color: var(--text-tertiary);
}

/* Achievement cards grid */
.achievement-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--ios-radius);
    padding: 24px;
    transition: background-color var(--anim-hover) ease, border-color var(--anim-hover) ease, color var(--anim-hover) ease, transform var(--anim-hover) ease;
    position: relative;
    overflow: hidden;
}
.achievement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-grad);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    opacity: 0;
    transition: opacity var(--anim-hover) var(--ease-out);
}
.achievement-card:hover::before { opacity: 1; }
.achievement-card:hover {
    background: var(--surface-hover);
    border-color: rgba(255,99,99,0.25);
    box-shadow: 0 8px 32px rgba(255,99,99,0.1), 0 0 0 1px rgba(255,99,99,0.05);
}
.achievement-card.achieved::before { opacity: 1; background: #30d158; }
.achievement-card.achieved {
    border-color: rgba(48,209,88,0.3);
    background: rgba(48,209,88,0.03);
}
.achievement-card.locked {
    opacity: 0.6;
}
.achievement-card.locked:hover {
    opacity: 0.8;
}
.achievement-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}
.achievement-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--ios-radius);
    flex-shrink: 0;
}
.achievement-icon.achieved {
    background: rgba(48,209,88,0.12);
    border: 1px solid rgba(48,209,88,0.2);
}
.achievement-icon.achieved svg { stroke: #30d158; }
.achievement-icon.in-progress {
    background: var(--accent-muted);
    border: 1px solid rgba(255,99,99,0.15);
}
.achievement-icon.in-progress svg { stroke: var(--accent); }
.achievement-icon.locked {
    background: var(--surface);
    border: 1px solid var(--border);
}
.achievement-icon.locked svg { stroke: var(--text-tertiary); }
.achievement-icon svg {
    width: 24px;
    height: 24px;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}
.achievement-info {
    flex: 1;
    min-width: 0;
}
.achievement-title {
    font-size: var(--font-xl);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.achievement-category {
    font-size: var(--font-sm);
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.achievement-badge {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(48,209,88,0.12);
    border-radius: 50%;
    flex-shrink: 0;
}
.achievement-badge svg {
    width: 16px;
    height: 16px;
    stroke: #30d158;
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.achievement-progress {
    margin-top: 12px;
}
.achievement-progress-bar {
    width: 100%;
    height: 6px;
    background: var(--bg-darker);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}
.achievement-progress-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.achievement-progress-fill.achieved {
    background: #30d158;
}
.achievement-progress-fill.in-progress {
    background: var(--accent-grad);
}
.achievement-progress-fill.locked {
    background: var(--text-tertiary);
    opacity: 0.3;
}
.achievement-progress-text {
    font-size: var(--font-md);
    color: var(--text-secondary);
    font-family: 'JetBrains Mono', monospace;
}
.achievement-next {
    margin-top: 8px;
    font-size: var(--font-sm);
    color: var(--text-tertiary);
}

/* Single achievement cards */
.achievement-single {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--ios-radius);
    padding: 24px;
    transition: background-color var(--anim-hover) ease, border-color var(--anim-hover) ease, color var(--anim-hover) ease, transform var(--anim-hover) ease;
}
.achievement-single:hover {
    border-color: rgba(255,99,99,0.3);
    background: var(--surface-hover);
}
.achievement-single.achieved {
    border-color: rgba(48,209,88,0.3);
    background: rgba(48,209,88,0.03);
}
.achievement-accent {
    color: var(--accent);
    font-weight: 600;
}
.friend-code-section {
    margin-top: 16px;
    padding: 16px;
    background: var(--bg-recessed);
    border: 1px solid var(--border);
    border-radius: var(--ios-radius);
}
.friend-code-label {
    font-size: var(--font-sm);
    color: var(--text-tertiary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.friend-code-value {
    font-size: var(--font-3xl);
    font-weight: 700;
    color: var(--accent);
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}
.friend-code-input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--ios-radius);
    color: var(--text-primary);
    font-size: var(--font-xl);
    font-family: 'JetBrains Mono', monospace;
    margin-top: 8px;
    outline: none;
    margin-bottom: 12px;
}
.friend-code-input:focus {
    border-color: var(--accent);
}
.friend-code-btn {
    width: 100%;
    padding: 12px 24px;
    background: var(--accent);
    color: var(--on-accent);
    border: none;
    border-radius: var(--ios-radius);
    font-size: var(--font-base);
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background-color var(--anim-hover) ease, border-color var(--anim-hover) ease, color var(--anim-hover) ease, transform var(--anim-hover) ease;
}
.friend-code-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}
.friend-code-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}
.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-primary);
    border-radius: var(--ios-radius);
    font-size: var(--font-base);
    font-weight: 600;
    text-decoration: none;
    transition: background-color var(--anim-hover) ease, border-color var(--anim-hover) ease, color var(--anim-hover) ease, transform var(--anim-hover) ease;
    cursor: pointer;
    font-family: inherit;
}
.action-btn:hover {
    background: var(--surface-hover);
    border-color: rgba(255,99,99,0.3);
    transform: translateY(-1px);
}

/* ====== EDUCATIONAL PLANS ====== */
.ep-category-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--ios-radius);
    margin-bottom: 20px;
    overflow: hidden;
    transition: background-color var(--anim-hover) ease, border-color var(--anim-hover) ease, color var(--anim-hover) ease, transform var(--anim-hover) ease;
}
/* ep-category-card hover — unified in dashboard-brand.css */
.ep-category-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 28px;
    cursor: pointer;
    user-select: none;
    transition: background var(--anim-hover) var(--ease-out);
    background: var(--surface-hover);
}
.ep-category-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--ios-radius);
    flex-shrink: 0;
}
.ep-category-icon svg {
    width: 28px;
    height: 28px;
}
.ep-category-info {
    flex: 1;
    min-width: 0;
}
.ep-category-name {
    font-size: var(--font-3xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.ep-category-meta {
    font-size: var(--font-base);
    color: var(--text-tertiary);
}
.ep-category-progress {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    min-width: 120px;
}
.ep-category-pct {
    font-family: 'JetBrains Mono', monospace;
    font-size: var(--font-5xl);
    font-weight: 700;
}
.ep-category-bar {
    width: 120px;
    height: 6px;
    background: var(--bg-darker);
    border-radius: 3px;
    overflow: hidden;
}
.ep-category-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.ep-category-toggle {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--text-tertiary);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.ep-category-card.expanded .ep-category-toggle {
    transform: rotate(180deg);
}
.ep-category-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.ep-category-card.expanded .ep-category-body {
    max-height: 5000px;
}
.ep-category-content {
    padding: 0 28px 24px 28px;
}
.ep-task-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--ios-radius);
    padding: 0;
    margin-bottom: 12px;
    transition: background-color var(--anim-hover) ease, border-color var(--anim-hover) ease, color var(--anim-hover) ease, transform var(--anim-hover) ease;
    overflow: hidden;
    position: relative;
}
.ep-task-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--task-accent, var(--accent));
    border-radius: 0 2px 2px 0;
    opacity: 0;
    transition: opacity var(--anim-hover) var(--ease-out);
    margin-bottom: 0;
}
/* ep-task-item hover — unified in dashboard-brand.css */
.ep-task-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px 16px 24px;
}
.ep-task-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: var(--font-md);
    font-weight: 600;
    padding: 6px 12px;
    border-radius: var(--ios-radius);
    flex-shrink: 0;
}
.ep-task-title {
    font-size: var(--font-xl);
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
    line-height: 1.4;
}
.ep-progress-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 24px 16px 24px;
}
.ep-progress-btn {
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: var(--ios-radius);
    background: var(--bg-card);
    color: var(--text-tertiary);
    font-size: var(--font-md);
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
    cursor: pointer;
    transition: background-color var(--anim-hover) ease, border-color var(--anim-hover) ease, color var(--anim-hover) ease, transform var(--anim-hover) ease;
}
.ep-progress-btn:hover {
    border-color: rgba(255,99,99,0.25);
    color: var(--text-primary);
}
.ep-progress-btn.active {
    color: var(--on-accent);
    font-weight: 700;
}
.ep-progress-btn[data-pct="0"].active {
    background: var(--text-tertiary);
    border-color: var(--text-tertiary);
}
.ep-progress-btn[data-pct="25"].active {
    background: #6e6e70;
    border-color: #6e6e70;
}
.ep-progress-btn[data-pct="50"].active {
    background: #ff9500;
    border-color: #ff9500;
}
.ep-progress-btn[data-pct="75"].active {
    background: #5eb5ff;
    border-color: #5eb5ff;
}
.ep-progress-btn[data-pct="100"].active {
    background: #30d158;
    border-color: #30d158;
}
.ep-task-progress-bar {
    width: 100%;
    height: 6px;
    background: var(--bg-darker);
    border-radius: 3px;
    overflow: hidden;
    padding: 0 24px 20px 24px;
}
.ep-task-progress-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.ep-student-name-input {
    width: 100%;
    padding: 14px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--ios-radius);
    color: var(--text-primary);
    font-size: var(--font-xl);
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color var(--anim-hover) var(--ease-out);
    border-color: var(--accent);
}
.ep-student-name-input::placeholder {
    color: var(--text-tertiary);
}
.ep-generate-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: var(--accent-grad);
    color: var(--on-accent);
    border: none;
    border-radius: var(--ios-radius);
    font-size: var(--font-xl);
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: background-color var(--anim-hover) ease, border-color var(--anim-hover) ease, color var(--anim-hover) ease, transform var(--anim-hover) ease;
    box-shadow: 0 4px 20px rgba(255,99,99,0.25);
}
.ep-generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255,99,99,0.35);
}
.ep-generate-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}
.ep-label {
    display: block;
    font-size: clamp(12px, 3vw, 14px);
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: clamp(8px, 2vw, 12px);
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.05em;
}

/* Educational Plan Navigation Tabs */
.ep-nav-tabs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.ep-nav-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--ios-radius);
    color: var(--text-tertiary);
    font-size: var(--font-lg);
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background-color var(--anim-hover) ease, border-color var(--anim-hover) ease, color var(--anim-hover) ease, transform var(--anim-hover) ease;
}
.ep-nav-tab:hover {
    background: var(--surface-hover);
    border-color: rgba(255,255,255,0.1);
    color: var(--text-primary);
}
.ep-nav-tab.active {
    background: var(--accent-muted);
    border-color: rgba(255,99,99,0.3);
    color: var(--accent);
}

/* Class Selector Buttons */
.ep-class-selector {
    display: flex;
    gap: 12px;
}
.ep-class-btn {
    flex: 1;
    padding: 14px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--ios-radius);
    color: var(--text-tertiary);
    font-size: var(--font-xl);
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
    cursor: pointer;
    transition: background-color var(--anim-hover) ease, border-color var(--anim-hover) ease, color var(--anim-hover) ease, transform var(--anim-hover) ease;
}
.ep-class-btn:hover {
    border-color: rgba(255,255,255,0.15);
    color: var(--text-primary);
}
.ep-class-btn.active {
    background: var(--accent-muted);
    border-color: rgba(255,99,99,0.3);
    color: var(--accent);
}

/* Generate Button Wrapper */
.ep-generate-wrapper {
    margin-bottom: 32px;
    text-align: center;
}

/* Students List */
.ep-students-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

/* Student Card — full stats-style design */
.ep-students-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}
@media (max-width: 768px) {
    .ep-students-list { grid-template-columns: 1fr; }
}
.ep-student-card {
    background: linear-gradient(180deg, var(--exchange-panel-2), var(--exchange-panel));
    border: 1px solid var(--border);
    border-radius: var(--ios-radius);
    padding: 24px;
    cursor: pointer;
    transition: border-color var(--anim-hover) var(--ease-out),
                background-color var(--anim-hover) var(--ease-out),
                box-shadow var(--anim-hover) var(--ease-out),
                transform var(--anim-hover) var(--ease-out);
    position: relative;
    overflow: hidden;
}
.ep-student-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-grad);
    opacity: 0;
    transition: opacity var(--anim-normal) var(--ease-out);
}
.ep-student-card:hover::before { opacity: 1; }
.ep-student-card:hover {
    border-color: var(--accent-border);
    background: var(--surface-hover);
    box-shadow: var(--panel-shadow);
    transform: translateY(-2px);
}
.ep-student-card.selected {
    border-color: var(--accent-border);
    background: var(--accent-muted);
}
.ep-student-card.selected::before { opacity: 1; }
.ep-student-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}
.ep-student-card-avatar {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-muted);
    border: 1px solid rgba(255,99,99,0.2);
    border-radius: var(--ios-radius);
    flex-shrink: 0;
}
.ep-student-card-avatar svg {
    width: 26px;
    height: 26px;
    stroke: var(--accent);
}
.ep-student-card-info {
    flex: 1;
    min-width: 0;
}
.ep-student-card-name {
    font-size: var(--font-2xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ep-student-card-meta {
    font-size: var(--font-base);
    color: var(--text-tertiary);
    font-family: 'JetBrains Mono', monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ep-student-card-selected {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--accent-muted);
    border: 1px solid var(--accent-border);
    border-radius: var(--ios-radius);
    color: var(--accent);
    font-size: var(--font-base);
    font-weight: 600;
    flex-shrink: 0;
}
.ep-student-card-selected svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
}
.ep-student-card-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}
.ep-student-card-stat {
    text-align: center;
}
.ep-student-card-stat-value {
    font-size: var(--font-3xl);
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-primary);
    margin-bottom: 2px;
}
.ep-student-card-stat-label {
    font-size: var(--font-xs);
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Empty State */
.ep-empty-state {
    text-align: center;
    padding: 40px;
    color: var(--text-tertiary);
    font-size: var(--font-xl);
}

/* Search Hint */
.ep-search-hint {
    margin-top: 12px;
    font-size: var(--font-base);
    color: var(--text-tertiary);
}

/* Content responsiveness. Sidebar geometry is owned by dashboard-brand.css. */
@media (max-width: 1024px) {
    .quick-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .info-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 768px) {
    .quick-actions { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
    .contact-card-method { flex-direction: column; align-items: flex-start; gap: 12px; }
    .ep-category-header { flex-direction: column; align-items: flex-start; }
    .ep-category-progress { flex-direction: row; min-width: 0; width: 100%; justify-content: space-between; }
    .ep-category-bar { width: 100%; }
    .ep-category-icon { width: 48px; height: 48px; }
    .ep-category-name { font-size: var(--font-2xl); }
}
