    /* =========== SPLASH SCREEN =========== */
    .splash {
      position: fixed; inset: 0; z-index: 9999; background: var(--bg);
      display: flex; flex-direction: column; align-items: center; justify-content: center;
      transition: opacity 0.5s, visibility 0.5s;
    }
    .splash.hide { opacity: 0; visibility: hidden; pointer-events: none; }
    .splash-name { font-size: 30px; font-weight: 900; letter-spacing: 4px; text-transform: uppercase; text-align: center; line-height: 1.08; }
    .splash-word { display: block; overflow: hidden; padding: 0 2px; }
    .splash-word > span { display: inline-block; transform: translateY(110%); animation: splashWordUp 0.55s cubic-bezier(0.2,0.8,0.2,1) both; }
    @keyframes splashWordUp { to { transform: translateY(0); } }
    .splash-sub { font-size: 10px; color: var(--text3); letter-spacing: 3px; text-transform: uppercase; margin-top: 10px; opacity: 0; transform: translateY(8px); animation: splashSubUp 0.5s ease both; }
    @keyframes splashSubUp { to { opacity: 1; transform: translateY(0); } }
    @media (prefers-reduced-motion: reduce) {
      .splash-word > span, .splash-sub { animation: none; transform: none; opacity: 1; }
    }

    /* =========== HEADER =========== */
    .header {
      position: sticky; top: 0; z-index: 100;
      background: var(--glass-header);
      backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
      -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
      border-bottom: 1px solid var(--glass-border);
      box-shadow: 0 4px 20px rgba(0,0,0,0.15);
      padding: 14px 20px;
      display: flex; align-items: center; justify-content: space-between;
    }
    .header.hidden { display: none; }
    .header-left { display: flex; align-items: center; gap: 10px; cursor: pointer; }
    .header-titles { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; }
.header h1 { font-size: 13px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; }
    .header-slogan { font-size: 9px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text3); }
    .header-right { display: flex; gap: 8px; align-items: center; }
    .header-btn {
      background: none; border: 1px solid var(--border); color: var(--text2);
      font-size: 11px; padding: 6px 12px; border-radius: 20px; cursor: pointer;
      font-family: inherit; letter-spacing: 0.5px; transition: all 0.2s;
      -webkit-tap-highlight-color: transparent;
    }
    .header-btn:active { background: var(--card-h); }
    .header-btn.active-nav { border-color: var(--text2); color: var(--text); }
    .hamburger-btn {
      background: none; border: none; color: var(--text); cursor: pointer;
      padding: 6px; display: flex; align-items: center; justify-content: center;
      -webkit-tap-highlight-color: transparent;
    }

    /* =========== MENU MODAL =========== */
    .menu-overlay {
      position: fixed; inset: 0; z-index: 300;
      background: var(--glass-overlay);
      backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
      opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s;
    }
    .menu-overlay.open { opacity: 1; visibility: visible; }
    .menu-panel {
      position: fixed; top: 0; right: 0; bottom: 0; z-index: 201;
      width: 280px; max-width: 85vw;
      background: var(--glass-bg);
      backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
      -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
      border-left: 1px solid var(--glass-border);
      box-shadow: -8px 0 40px rgba(0,0,0,0.3);
      transform: translateX(100%); transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
      display: flex; flex-direction: column;
    }
    .menu-overlay.open .menu-panel { transform: translateX(0); }
    .menu-header {
      padding: 28px 24px 20px; border-bottom: 1px solid var(--border);
      position: relative;
    }
    .menu-close {
      position: absolute; top: 12px; right: 12px; background: none; border: none;
      color: var(--text3); width: 32px; height: 32px; border-radius: 50%;
      display: flex; align-items: center; justify-content: center; cursor: pointer;
    }
    .menu-close:active { background: var(--card); }
    .menu-close svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; }
    .menu-user-name { font-size: 18px; font-weight: 800; color: var(--text); }
    .menu-user-email { font-size: 11px; color: var(--text3); margin-top: 2px; text-decoration: none; }
    .menu-user-email a, .student-meta a { color: inherit; text-decoration: none; pointer-events: none; }
    .menu-user-plan { font-size: 11px; color: #7189a8; margin-top: 6px; font-weight: 600; }
    .menu-nav { flex: 1; padding: 12px 0; overflow-y: auto; }
    .menu-item {
      display: flex; align-items: center; gap: 14px;
      padding: 14px 24px; cursor: pointer; transition: background 0.15s;
      font-size: 14px; font-weight: 500; color: var(--text);
      border: none; background: none; width: 100%; text-align: left; font-family: inherit;
    }
    .menu-item:active { background: var(--card); }
    @media (hover: hover) { .menu-item:hover { background: var(--card); } }
    .menu-item.active { color: #7189a8; }
    .menu-item svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
    .menu-item.danger { color: var(--red); margin-top: auto; }
    .menu-footer {
      padding: 16px 24px; border-top: 1px solid var(--border);
    }
    .menu-footer-item {
      display: flex; align-items: center; gap: 14px;
      padding: 12px 0; cursor: pointer; font-size: 14px; font-weight: 500;
      color: #8b7faa; border: none; background: none; width: 100%; text-align: left; font-family: inherit;
      transition: color 0.2s;
    }
    .menu-footer-item:active { color: #9b8ba4; }
    @media (hover: hover) { .menu-footer-item:hover { color: #9b8ba4; } }
    .menu-footer-item svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
    /* =========== CONTAINER =========== */
    .container { max-width: 480px; margin: 0 auto; padding: 10px; padding-bottom: max(16px, env(safe-area-inset-bottom)); transition: padding-bottom 0.25s ease; }
    .container.has-fab { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
    .container:has(> #authView.active) { padding: 0; }
    .view { display: none; }
    .view.active { display: block; }

