:root {
    --bg: #080b10 !important;
    --surface: #0e1218;
    --card: #131820;
    --card2: #171e28;
    --border: rgba(255,255,255,0.06);
    --border2: rgba(255,255,255,0.10);
    --accent: #3b82f6;
    --green: #22c55e;
    --red: #ef4444;
    --amber: #f59e0b;
    --purple: #a855f7;
    --text: #e2e8f0 !important;
    --muted: #64748b;
    --dim: #334155;
    --font: 'DM Sans', system-ui, sans-serif;
    --mono: 'DM Mono', monospace;
    --sidebar-width: 230px;
    --accent-dim: rgba(59,130,246,0.15);
    --accent-glow: rgba(59,130,246,0.35);
}

  *, *::before, *::after { box-sizing: border-box; }

  html, body {
    height: 100%;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 14px;
    margin: 0; padding: 0;
  }

  /* ── LAYOUT WRAPPER ── */
  .portal-wrapper {
    display: flex;
    height: 100vh;
    overflow: hidden;
  }

  /* ── SIDEBAR ── */
  .sidebar {
    width: var(--sidebar-width);
    flex-shrink: 0;
    background: var(--surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 24px 12px;
    gap: 4px;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 1040;
    transition: transform 0.3s ease;
  }
  .sidebar.collapsed { transform: translateX(-100%); }

  /* Overlay for mobile */
  .sidebar-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1039;
  }
  .sidebar-overlay.show { display: block; }

  .logo {
    display: flex; align-items: center; gap: 10px;
    padding: 0 8px 24px;
  }
  .logo-icon {
    width: 30px; height: 30px;
    background: var(--accent); border-radius: 7px;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 700; color: #fff; flex-shrink: 0;
  }
  .logo-text { font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.2; }
  .logo-sub  { font-size: 10px; color: var(--muted); }

  .nav-item {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 12px; border-radius: 8px;
    cursor: pointer; border: none; background: transparent;
    color: var(--muted); font-size: 13px; font-family: var(--font);
    transition: all 0.15s; text-align: left; width: 100%;
  }
  .nav-item:hover  { background: rgba(255,255,255,0.04); color: var(--text); }
  .nav-item.active { background: rgba(59,130,246,0.12); color: var(--accent); font-weight: 500; }
  .nav-dot { margin-left: auto; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); display: none; }
  .nav-item.active .nav-dot { display: block; }

  .sidebar-footer {
    margin-top: auto; padding-top: 16px;
    border-top: 1px solid var(--border);
    display: flex; align-items: center; gap: 10px;
    padding-left: 4px;
  }
  .avatar {
    width: 32px; height: 32px; border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 600; color: #fff; flex-shrink: 0;
  }
  .avatar-name { font-size: 12px; font-weight: 500; color: var(--text); line-height: 1.3; }
  .avatar-role { font-size: 11px; color: var(--muted); }

  /* ── MAIN AREA ── */
  .main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin-left: var(--sidebar-width);
    transition: margin-left 0.3s ease;
  }
  .main.full-width { margin-left: 0; }

  /* ── TOPBAR ── */
  .topbar {
    height: 54px; flex-shrink: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 20px; gap: 12px;
  }
  .topbar-left { display: flex; align-items: center; gap: 12px; }
  .topbar-title { font-size: 15px; font-weight: 600; color: var(--text); white-space: nowrap; }
  .hamburger {
    display: none;
    background: none; border: none; color: var(--muted);
    font-size: 20px; cursor: pointer; padding: 4px;
    line-height: 1;
  }
  .topbar-right { display: flex; align-items: center; gap: 14px; }
  .live-badge { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); white-space: nowrap; }
  .live-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--green); box-shadow: 0 0 6px var(--green);
    animation: pulse 2s infinite; flex-shrink: 0;
  }
  @keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }
  .topbar-date { font-size: 12px; color: var(--muted); font-family: var(--mono); white-space: nowrap; }
  .notif-btn {
    width: 30px; height: 30px; border-radius: 7px;
    background: var(--card); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 14px; transition: border-color 0.15s; flex-shrink: 0;
  }
  .notif-btn:hover { border-color: var(--border2); }

  /* ── TICKER STRIP ── */
  .index-strip {
    display: flex; gap: 0; overflow-x: auto; overflow-y: hidden;
    border-bottom: 1px solid var(--border);
    background: var(--surface); flex-shrink: 0;
    scrollbar-width: none;
  }
  .index-strip::-webkit-scrollbar { display: none; }
  .index-item {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 16px; border-right: 1px solid var(--border);
    font-size: 12px; white-space: nowrap; flex-shrink: 0;
  }
  .index-label { color: var(--muted); }
  .index-val   { color: var(--text); font-family: var(--mono); font-weight: 500; }
  .index-chg   { font-family: var(--mono); font-size: 11px; }

  /* ── CONTENT ── */
  .content {
    flex: 1; overflow-y: auto; padding: 20px;
    scrollbar-width: thin; scrollbar-color: var(--dim) transparent;
  }
  .tab-panel { display: none; }
  .tab-panel.active { display: block; }

  /* ── SKELETON ── */
  .skeleton {
    background: linear-gradient(90deg, var(--card) 25%, var(--card2) 50%, var(--card) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite; border-radius: 6px;
  }
  @keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }
  .skeleton-row   { height: 14px; margin: 6px 0; }
  .skeleton-title { height: 20px; width: 40%; margin-bottom: 12px; }

  /* ── METRIC CARDS ── */
  .metric-card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: 12px; padding: 18px 20px;
  }
  .metric-label {
    font-size: 10px; font-weight: 500; letter-spacing: .08em;
    text-transform: uppercase; color: var(--muted); margin-bottom: 8px;
  }
  .metric-value {
    font-size: 22px; font-weight: 600; color: var(--text);
    letter-spacing: -.03em; font-family: var(--mono);
  }
  .metric-sub { font-size: 12px; color: var(--muted); margin-top: 4px; }
  .metric-sub.green { color: var(--green); }
  .metric-sub.red   { color: var(--red); }

  /* ── CHART CARDS ── */
  .card-panel {
    background: var(--card); border: 1px solid var(--border);
    border-radius: 12px; padding: 20px 22px;
  }
  .card-header-row {
    display: flex; justify-content: space-between;
    align-items: flex-start; margin-bottom: 16px;
    gap: 10px; flex-wrap: wrap;
  }
  .card-label { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
  .card-sub   { font-size: 12px; color: var(--dim); margin-top: 3px; }
  .badge-pill {
    display: inline-flex; align-items: center;
    padding: 3px 9px; border-radius: 5px;
    font-size: 11px; font-weight: 500;
    background: rgba(34,197,94,.12); color: var(--green);
    white-space: nowrap;
  }

  /* Allocation legend */
  .alloc-legend { display: flex; flex-direction: column; gap: 9px; margin-top: 14px; }
  .alloc-row    { display: flex; align-items: center; justify-content: space-between; }
  .alloc-left   { display: flex; align-items: center; gap: 8px; }
  .alloc-dot    { width: 8px; height: 8px; border-radius: 2px; flex-shrink: 0; }
  .alloc-name   { font-size: 12px; color: var(--muted); }
  .alloc-pct    { font-size: 12px; font-weight: 500; color: var(--text); font-family: var(--mono); }

  /* ── HOLDINGS TABLE ── */
  .table-card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: 12px; overflow: hidden;
  }
  .table-header-bar {
    padding: 14px 20px; border-bottom: 1px solid var(--border);
    font-size: 10px; letter-spacing: .08em;
    text-transform: uppercase; color: var(--muted); font-weight: 500;
  }
  .holdings-table-wrap { overflow-x: auto; }
  .holdings-table {
    width: 100%; border-collapse: collapse; min-width: 560px;
  }
  .holdings-table thead th {
    padding: 10px 16px; font-size: 10px; font-weight: 500;
    letter-spacing: .06em; text-transform: uppercase; color: var(--dim);
    text-align: right; border-bottom: 1px solid var(--border);
    white-space: nowrap;
  }
  .holdings-table thead th:first-child { text-align: left; }
  .holdings-table tbody tr {
    border-bottom: 1px solid var(--border); transition: background .1s;
  }
  .holdings-table tbody tr:last-child { border-bottom: none; }
  .holdings-table tbody tr:hover { background: rgba(255,255,255,.02); }
  .holdings-table tbody td {
    padding: 13px 16px; text-align: right;
    font-size: 13px; color: var(--text); font-family: var(--mono);
    white-space: nowrap;
  }
  .holdings-table tbody td:first-child { text-align: left; font-family: var(--font); }
  .ticker-code { font-size: 13px; font-weight: 600; color: var(--text); font-family: var(--mono); }
  .sec-name    { font-size: 11px; color: var(--muted); margin-top: 2px; font-family: var(--font); }
  .type-badge  { font-size: 10px; font-weight: 500; padding: 3px 8px; border-radius: 4px; font-family: var(--font); white-space: nowrap; }
  .pos { color: var(--green); }
  .neg { color: var(--red); }

  /* ── RANGE BUTTONS ── */
  .range-btns { display: flex; gap: 3px; flex-wrap: wrap; }
  .range-btn {
    padding: 4px 10px; border-radius: 6px; border: none;
    cursor: pointer; font-size: 12px; font-family: var(--font);
    background: transparent; color: var(--muted); transition: all .15s;
  }
  .range-btn:hover  { color: var(--text); }
  .range-btn.active { background: var(--accent); color: #fff; }

  /* ── MONTHLY BARS ── */
  .monthly-bars {
    display: flex; gap: 4px; align-items: flex-end;
    height: 80px; margin-top: 8px;
  }
  .bar-wrap  { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
  .bar       { width: 100%; border-radius: 3px; }
  .bar-label { font-size: 9px; color: var(--dim); }

  /* ── METRIC ROWS ── */
  .metric-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 9px 0; border-bottom: 1px solid var(--border);
  }
  .metric-row:last-child { border-bottom: none; }
  .metric-row-label { font-size: 13px; color: var(--text); }
  .metric-row-sub   { font-size: 11px; color: var(--muted); margin-top: 2px; }
  .metric-row-val   { font-size: 14px; font-weight: 600; color: var(--text); font-family: var(--mono); flex-shrink: 0; margin-left: 12px; }

  /* ── NEWS ── */
  .filter-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
  .filter-btn {
    padding: 5px 14px; border-radius: 20px;
    border: 1px solid var(--border); background: transparent;
    color: var(--muted); font-size: 12px; font-family: var(--font);
    cursor: pointer; transition: all .15s;
  }
  .filter-btn:hover  { border-color: var(--border2); color: var(--text); }
  .filter-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }
  .news-item {
    background: var(--card); border: 1px solid var(--border);
    border-radius: 12px; padding: 18px 20px; border-left-width: 2px;
    margin-bottom: 12px; transition: background .15s;
  }
  .news-item:hover { background: var(--card2); }
  .news-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
  .news-tag    { font-size: 10px; font-weight: 500; padding: 2px 8px; border-radius: 4px; font-family: var(--font); }
  .news-source { font-size: 11px; color: var(--dim); }
  .news-time   { font-size: 11px; color: var(--dim); margin-left: auto; font-family: var(--mono); }
  .news-headline { font-size: 14px; color: var(--text); line-height: 1.5; font-weight: 500; }
  .news-summary  { font-size: 12px; color: var(--muted); margin-top: 6px; line-height: 1.5; }

  /* ── SETTINGS ── */
  .section-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; margin-bottom: 16px; }
  .section-head { padding: 14px 20px; border-bottom: 1px solid var(--border); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
  .section-body { padding: 20px; }
  .profile-row  { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
  .profile-avatar {
    width: 56px; height: 56px; border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; font-weight: 700; color: #fff; flex-shrink: 0;
  }
  .profile-name  { font-size: 16px; font-weight: 600; color: var(--text); }
  .profile-email { font-size: 13px; color: var(--muted); margin-top: 3px; }
  .verified-badge {
    display: inline-block; margin-top: 6px; font-size: 10px;
    padding: 2px 8px; border-radius: 4px;
    background: rgba(34,197,94,.12); color: var(--green); font-weight: 500;
  }
  .info-cell { padding: 11px 14px; background: var(--surface); border-radius: 8px; }
  .info-cell-label { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
  .info-cell-value { font-size: 13px; font-weight: 500; color: var(--text); }
  .toggle-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 20px; border-bottom: 1px solid var(--border);
  }
  .toggle-row:last-child { border-bottom: none; }
  .toggle-label { font-size: 13px; font-weight: 500; color: var(--text); }
  .toggle-sub   { font-size: 12px; color: var(--muted); margin-top: 3px; }
  .toggle {
    width: 40px; height: 22px; border-radius: 11px; position: relative;
    cursor: pointer; flex-shrink: 0; transition: background .2s;
  }
  .toggle.on  { background: var(--accent); }
  .toggle.off { background: var(--dim); }
  .toggle-knob { position: absolute; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .2s; }
  .toggle.on  .toggle-knob { left: 21px; }
  .toggle.off .toggle-knob { left: 3px; }
  .security-row { display: flex; justify-content: space-between; align-items: center; padding: 13px 20px; border-bottom: 1px solid var(--border); }
  .security-row:last-child { border-bottom: none; }
  .security-label { font-size: 13px; color: var(--text); }
  .security-val   { font-size: 13px; color: var(--muted); font-family: var(--mono); }
  .security-val.green { color: var(--green); }

  /* ── ERROR BANNER ── */
  .error-banner {
    background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.3);
    color: #fca5a5; border-radius: 8px; padding: 12px 16px;
    font-size: 13px; margin-bottom: 16px; display: none;
  }

  /* ── BENCHMARK LEGEND ── */
  .bench-legend { display: flex; gap: 20px; margin-top: 12px; flex-wrap: wrap; }
  .bench-legend-item { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
  .bench-line { width: 18px; height: 2px; border-radius: 2px; }

  /* ── RESPONSIVE ── */
  @media (max-width: 767px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .main { margin-left: 0 !important; }
    .hamburger { display: flex; align-items: center; justify-content: center; }
    .topbar-date { display: none; }
    .content { padding: 16px; }
    .metric-value { font-size: 18px; }
  }

  @media (min-width: 768px) {
    .sidebar { transform: translateX(0) !important; }
    .sidebar-overlay { display: none !important; }
  }

  /* Gap utility overrides for dark theme */
  .g-12 { gap: 12px !important; }
  .g-16 { gap: 16px !important; }
  .mb-16 { margin-bottom: 16px !important; }
  .mb-20 { margin-bottom: 20px !important; }

  /* ── LOGIN CARD ── */
  .login-wrap {
    width: 100%;
    max-width: 420px;
    animation: fadeUp 0.55s cubic-bezier(0.16,1,0.3,1) 0.1s both;
  }

  .login-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 36px 36px 32px;
    box-shadow:
      0 0 0 1px rgba(255,255,255,0.04) inset,
      0 32px 64px rgba(0,0,0,0.5),
      0 0 80px rgba(59,130,246,0.06);
    position: relative;
    overflow: hidden;
  }

  /* subtle top shine */
  .login-card::before {
    content: '';
    position: absolute;
    top: 0; left: 10%; right: 10%; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  }

  .card-eyebrow {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 8px;
    font-family: var(--mono);
  }
  .card-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.03em;
    margin-bottom: 4px;
  }
  .card-subtitle {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 28px;
  }

  /* ── FORM ── */
  .field-group { margin-bottom: 16px; }
  .field-label {
    display: block;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 7px;
  }

  .field-wrap { position: relative; }
  .field-icon {
    position: absolute;
    left: 13px; top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
    color: var(--dim);
    pointer-events: none;
    transition: color 0.2s;
  }

  .form-input {
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 9px;
    padding: 11px 14px 11px 40px;
    color: var(--text);
    font-size: 14px;
    font-family: var(--font);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    -webkit-appearance: none;
  }
  .form-input::placeholder { color: var(--dim); }
  .form-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-dim);
  }
  .form-input:focus + .field-icon,
  .field-wrap:focus-within .field-icon { color: var(--accent); }

  /* password toggle */
  .pw-toggle {
    position: absolute;
    right: 13px; top: 50%;
    transform: translateY(-50%);
    background: none; border: none;
    color: var(--dim); cursor: pointer;
    font-size: 14px; padding: 2px;
    transition: color 0.15s;
  }
  .pw-toggle:hover { color: var(--muted); }

  /* ── REMEMBER + FORGOT ── */
  .form-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    margin-top: 4px;
  }
  .remember-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 12px;
    color: var(--muted);
    user-select: none;
  }
  .remember-check {
    width: 15px; height: 15px;
    accent-color: var(--accent);
    cursor: pointer;
  }
  .forgot-link {
    font-size: 12px;
    color: var(--accent);
    text-decoration: none;
    transition: opacity 0.15s;
  }
  .forgot-link:hover { opacity: 0.75; }

  /* ── SUBMIT BUTTON ── */
  .btn-signin {
    width: 100%;
    padding: 12px;
    background: var(--accent);
    border: none;
    border-radius: 9px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    transition: opacity 0.15s, transform 0.1s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(59,130,246,0.35);
  }
  .btn-signin:hover {
    opacity: 0.92;
    box-shadow: 0 6px 28px rgba(59,130,246,0.45);
  }
  .btn-signin:active { transform: scale(0.99); }
  .btn-signin:disabled { opacity: 0.6; cursor: not-allowed; }

  /* shimmer on button */
  .btn-signin::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.15) 50%, transparent 60%);
    transform: translateX(-100%);
    transition: transform 0.5s;
  }
  .btn-signin:hover::after { transform: translateX(100%); }

  /* loading spinner */
  .btn-spinner {
    display: none;
    width: 16px; height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin: 0 auto;
  }
  @keyframes spin { to { transform: rotate(360deg); } }
  .btn-signin.loading .btn-text { display: none; }
  .btn-signin.loading .btn-spinner { display: block; }

  /* ── DIVIDER ── */
  .divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0;
    color: var(--dim);
    font-size: 11px;
    letter-spacing: .06em;
    text-transform: uppercase;
  }
  .divider::before, .divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
  }

  /* ── SSO BUTTON ── */
  .btn-sso {
    width: 100%;
    padding: 11px;
    background: transparent;
    border: 1px solid var(--border2);
    border-radius: 9px;
    color: var(--muted);
    font-size: 13px;
    font-family: var(--font);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.15s;
  }
  .btn-sso:hover {
    border-color: var(--border2);
    background: rgba(255,255,255,0.03);
    color: var(--text);
  }
  .sso-icon { font-size: 16px; }

  /* ── ERROR / SUCCESS STATES ── */
  .alert-box {
    display: none;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 12px;
    margin-bottom: 18px;
    align-items: center;
    gap: 8px;
  }
  .alert-box.show { display: flex; }
  .alert-error   { background:rgba(239,68,68,.1); border:1px solid rgba(239,68,68,.25); color:#fca5a5; }
  .alert-success { background:rgba(34,197,94,.1); border:1px solid rgba(34,197,94,.25); color:#86efac; }

  /* ── FOOTER ── */
  .card-footer-note {
    text-align: center;
    font-size: 11px;
    color: var(--dim);
    margin-top: 20px;
    line-height: 1.6;
  }
  .card-footer-note a { color: var(--muted); text-decoration: none; }
  .card-footer-note a:hover { color: var(--text); }

  /* ── BOTTOM LEGAL ── */
  .page-footer {
    text-align: center;
    padding: 16px;
    font-size: 11px;
    color: var(--dim);
    flex-shrink: 0;
    animation: fadeUp 0.5s ease 0.35s both;
  }
  .page-footer a { color: var(--dim); text-decoration: none; }
  .page-footer a:hover { color: var(--muted); }

  /* ── ANIMATIONS ── */
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  @keyframes fadeDown {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  /* ── MOBILE ── */
  @media (max-width: 480px) {
    .top-bar { padding: 18px 20px; }
    .login-card { padding: 28px 22px 24px; border-radius: 16px; }
    .card-title { font-size: 20px; }
    html, body { overflow-y: auto; }
  }