/* =============================================
   ClassTeller — Ultra Premium Design System
   Zero-lag: GPU-only animations (transform+opacity)
   ============================================= */

/* ---------- Design Tokens ---------- */
:root {
  --font-heading: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --color-bg: #f4f2ee;
  --color-surface: rgba(255,255,255,.78);
  --color-surface-hover: rgba(255,255,255,.92);
  --color-surface-alt: rgba(245,243,239,.6);
  --color-border: rgba(0,0,0,.06);
  --color-border-strong: rgba(0,0,0,.1);
  --color-text: #1a1a1a;
  --color-text-secondary: #6b6b6b;
  --color-text-tertiary: #9a9a9a;

  --color-accent: #6c5ce7;
  --color-accent-light: #a29bfe;
  --color-accent-glow: rgba(108,92,231,.15);
  --color-accent-gradient: linear-gradient(135deg, #6c5ce7, #a29bfe, #74b9ff);
  --color-success: #00b894;
  --color-warning: #fdcb6e;
  --color-danger: #ff7675;

  --shadow-xs: 0 1px 2px rgba(0,0,0,.04);
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 4px 12px rgba(0,0,0,.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,.06), 0 12px 40px rgba(0,0,0,.04);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.08), 0 24px 60px rgba(0,0,0,.05);
  --shadow-glow: 0 0 0 1px var(--color-accent-glow), 0 8px 32px rgba(108,92,231,.12);

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --ease-out: cubic-bezier(.22,1,.36,1);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);
  --ease-smooth: cubic-bezier(.4,0,.2,1);
}

:root.dark {
  --color-bg: #0a0a0f;
  --color-surface: rgba(22,22,30,.72);
  --color-surface-hover: rgba(30,30,42,.85);
  --color-surface-alt: rgba(18,18,26,.5);
  --color-border: rgba(255,255,255,.06);
  --color-border-strong: rgba(255,255,255,.1);
  --color-text: #ececf1;
  --color-text-secondary: #8e8ea0;
  --color-text-tertiary: #5a5a6e;

  --color-accent: #a29bfe;
  --color-accent-light: #c4b5fd;
  --color-accent-glow: rgba(162,155,254,.18);
  --color-accent-gradient: linear-gradient(135deg, #a29bfe, #c4b5fd, #74b9ff);

  --shadow-sm: 0 1px 3px rgba(0,0,0,.3), 0 4px 12px rgba(0,0,0,.2);
  --shadow-md: 0 4px 16px rgba(0,0,0,.3), 0 12px 40px rgba(0,0,0,.15);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.35), 0 24px 60px rgba(0,0,0,.2);
  --shadow-glow: 0 0 0 1px var(--color-accent-glow), 0 8px 32px rgba(162,155,254,.15);
}

/* ---------- Reset ---------- */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-family: var(--font-body); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; }
body {
  background: var(--color-bg);
  color: var(--color-text);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  transition: background .5s var(--ease-smooth), color .4s var(--ease-smooth);
}
::selection { background: rgba(108,92,231,.2); color: var(--color-text); }

/* ---------- Ambient Background ---------- */
.ambient-bg {
  position: fixed; inset: 0; z-index: -1;
  overflow: hidden; pointer-events: none;
}
.blob {
  position: absolute; border-radius: 50%;
  will-change: transform;
  opacity: .5;
}
.blob-1 {
  width: 600px; height: 600px;
  top: -15%; right: -10%;
  background: radial-gradient(circle, rgba(108,92,231,.12), transparent 70%);
  animation: drift1 22s ease-in-out infinite alternate;
}
.blob-2 {
  width: 500px; height: 500px;
  bottom: -10%; left: -8%;
  background: radial-gradient(circle, rgba(116,185,255,.1), transparent 70%);
  animation: drift2 26s ease-in-out infinite alternate;
}
.blob-3 {
  width: 400px; height: 400px;
  top: 40%; left: 50%;
  background: radial-gradient(circle, rgba(162,155,254,.08), transparent 70%);
  animation: drift3 30s ease-in-out infinite alternate;
}
:root.dark .blob-1 { background: radial-gradient(circle, rgba(162,155,254,.1), transparent 70%); }
:root.dark .blob-2 { background: radial-gradient(circle, rgba(116,185,255,.07), transparent 70%); }
:root.dark .blob-3 { background: radial-gradient(circle, rgba(108,92,231,.06), transparent 70%); }

@keyframes drift1 {
  0%   { transform: translate(0,0) scale(1); }
  100% { transform: translate(-80px,100px) scale(1.1); }
}
@keyframes drift2 {
  0%   { transform: translate(0,0) scale(1); }
  100% { transform: translate(60px,-80px) scale(1.15); }
}
@keyframes drift3 {
  0%   { transform: translate(0,0) scale(1); }
  100% { transform: translate(-40px,60px) scale(.9); }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  padding: 12px 16px;
}
.header-inner {
  max-width: 800px;
  margin: 0 auto;
  background: var(--color-surface);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  transition: background .4s ease, border-color .4s ease, box-shadow .4s ease;
}

/* Logo */
.logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--color-text);
  flex-shrink: 0;
}
.logo-icon {
  width: 34px; height: 34px;
  border-radius: var(--radius-sm);
  background: var(--color-accent-gradient);
  display: grid; place-items: center;
  color: #fff;
  box-shadow: 0 2px 8px var(--color-accent-glow);
  transition: transform .3s var(--ease-spring);
}
.logo-icon svg { width: 18px; height: 18px; }
.logo:hover .logo-icon { transform: scale(1.08) rotate(-3deg); }
.logo-text {
  font-family: var(--font-heading);
  font-weight: 700; font-size: 1.15rem;
  letter-spacing: -.01em;
  background: var(--color-accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Nav Tabs */
.nav-tabs {
  display: flex;
  align-items: center;
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 4px;
  gap: 2px;
  position: relative;
}
.nav-indicator {
  position: absolute;
  height: calc(100% - 8px);
  border-radius: var(--radius-sm);
  background: var(--color-accent);
  box-shadow: 0 2px 10px var(--color-accent-glow);
  transition: left .35s var(--ease-out), width .35s var(--ease-out);
  z-index: 0;
  top: 4px;
}
.nav-tab {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 5px;
  padding: 7px 14px;
  font-family: var(--font-body);
  font-size: .82rem; font-weight: 600;
  color: var(--color-text-secondary);
  background: none; border: none; cursor: pointer;
  border-radius: var(--radius-sm);
  transition: color .25s ease, transform .25s var(--ease-spring);
  white-space: nowrap;
}
.nav-tab:hover { color: var(--color-text); transform: translateY(-1px); }
.nav-tab.active { color: #fff; }
.tab-icon { width: 14px; height: 14px; flex-shrink: 0; }

/* Header Actions */
.header-actions {
  display: flex; align-items: center; gap: 8px;
  flex-shrink: 0;
}
.live-clock {
  display: flex; align-items: center; gap: 5px;
  padding: 6px 12px;
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: .78rem; font-weight: 500;
  color: var(--color-text-secondary);
  letter-spacing: .02em;
  transition: background .3s ease, border-color .3s ease;
}
.clock-icon { width: 13px; height: 13px; opacity: .6; }

/* Theme Button */
.theme-btn {
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-surface-alt);
  cursor: pointer;
  display: grid; place-items: center;
  position: relative;
  overflow: hidden;
  transition: background .3s ease, border-color .3s ease, transform .25s var(--ease-spring);
}
.theme-btn:hover { background: var(--color-surface-hover); transform: scale(1.05); }
.theme-btn:active { transform: scale(.95); }
.theme-icon { width: 18px; height: 18px; position: absolute; transition: opacity .3s ease, transform .4s var(--ease-spring); }
.sun-icon { opacity: 1; transform: rotate(0deg) scale(1); color: #f39c12; }
.moon-icon { opacity: 0; transform: rotate(-90deg) scale(.5); color: var(--color-accent-light); }
:root.dark .sun-icon { opacity: 0; transform: rotate(90deg) scale(.5); }
:root.dark .moon-icon { opacity: 1; transform: rotate(0deg) scale(1); }

/* ---------- Main Content ---------- */
.main-content {
  flex: 1;
  width: 100%; max-width: 800px;
  margin: 0 auto;
  padding: 20px 16px 40px;
}

/* Views */
.view { display: none; }
.view--active { display: block; animation: viewIn .4s var(--ease-out) both; }
.view--exiting { animation: viewOut .28s ease-in both; }

@keyframes viewIn {
  from { opacity: 0; transform: translateY(16px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes viewOut {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to   { opacity: 0; transform: translateY(-12px) scale(.98); }
}

/* ---------- Card System ---------- */
.ct-card {
  background: var(--color-surface);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease-spring),
              box-shadow .3s ease,
              border-color .3s ease,
              background .4s ease;
}
.ct-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-border-strong);
}
.ct-card--glow:hover {
  box-shadow: var(--shadow-glow);
  border-color: var(--color-accent);
}
.ct-card--active {
  border-color: var(--color-accent);
  background: linear-gradient(135deg, var(--color-accent-glow), var(--color-surface));
  box-shadow: var(--shadow-glow);
}

/* Card Title */
.ct-card__header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.ct-card__title {
  font-family: var(--font-heading);
  font-weight: 700; font-size: 1.05rem;
  color: var(--color-text);
  display: flex; align-items: center; gap: 8px;
}
.ct-card__title svg { width: 18px; height: 18px; color: var(--color-accent); }

/* Status Badge */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: .7rem; font-weight: 600;
  letter-spacing: .02em;
  border: 1px solid transparent;
  transition: background .25s ease, color .25s ease;
}
.badge--live {
  background: rgba(0,184,148,.12);
  color: var(--color-success);
  border-color: rgba(0,184,148,.2);
}
.badge--live::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-success);
  animation: livePulse 1.5s ease infinite;
}
@keyframes livePulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(.8); }
}
.badge--accent {
  background: var(--color-accent-glow);
  color: var(--color-accent);
  border-color: rgba(108,92,231,.2);
}
.badge--muted {
  background: var(--color-surface-alt);
  color: var(--color-text-tertiary);
  border-color: var(--color-border);
}

/* ---------- Now View Components ---------- */
.now-hero {
  text-align: center;
  margin-bottom: 20px;
}
.now-hero__greeting {
  font-family: var(--font-heading);
  font-size: 1.6rem; font-weight: 700;
  color: var(--color-text);
  margin-bottom: 4px;
}
.now-hero__sub {
  color: var(--color-text-secondary);
  font-size: .88rem;
}

/* Progress Ring */
.progress-ring-wrap {
  display: flex; justify-content: center;
  margin: 16px 0 8px;
}
.progress-ring {
  position: relative;
  width: 100px; height: 100px;
}
.progress-ring svg { transform: rotate(-90deg); }
.progress-ring__bg { stroke: var(--color-border); fill: none; stroke-width: 5; }
.progress-ring__fill {
  fill: none; stroke-width: 5;
  stroke: var(--color-accent);
  stroke-linecap: round;
  transition: stroke-dashoffset .6s var(--ease-out);
}
.progress-ring__text {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: .82rem; font-weight: 600;
  color: var(--color-accent);
}

/* Current class card */
.current-class {
  display: flex; align-items: flex-start; gap: 14px;
}
.current-class__icon {
  width: 42px; height: 42px; flex-shrink: 0;
  border-radius: var(--radius-md);
  background: var(--color-accent-gradient);
  display: grid; place-items: center;
  color: #fff;
  box-shadow: 0 4px 12px var(--color-accent-glow);
}
.current-class__icon svg { width: 20px; height: 20px; }
.current-class__info { flex: 1; min-width: 0; }
.current-class__subject {
  font-family: var(--font-heading);
  font-weight: 700; font-size: 1.1rem;
  color: var(--color-text);
  margin-bottom: 4px;
}
.current-class__meta {
  display: flex; flex-wrap: wrap; gap: 12px;
  font-size: .8rem; color: var(--color-text-secondary);
}
.current-class__meta-item {
  display: flex; align-items: center; gap: 4px;
}
.current-class__meta-item svg { width: 13px; height: 13px; opacity: .65; }

/* Upcoming list */
.upcoming-list { display: flex; flex-direction: column; gap: 8px; }
.upcoming-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: transform .25s var(--ease-spring), background .25s ease, border-color .25s ease;
}
.upcoming-item:hover {
  transform: translateX(4px);
  background: var(--color-surface-hover);
  border-color: var(--color-border-strong);
}
.upcoming-item__time {
  font-family: var(--font-mono);
  font-size: .75rem; font-weight: 500;
  color: var(--color-accent);
  min-width: 90px;
  flex-shrink: 0;
}
.upcoming-item__subject {
  font-weight: 600; font-size: .88rem;
  color: var(--color-text);
  flex: 1; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.upcoming-item__detail {
  font-size: .75rem;
  color: var(--color-text-tertiary);
  display: flex; align-items: center; gap: 4px;
}
.upcoming-item__detail svg { width: 12px; height: 12px; }

/* Done card */
.done-card {
  text-align: center; padding: 32px 20px;
}
.done-card__icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0,184,148,.12), rgba(0,184,148,.04));
  display: grid; place-items: center;
  margin: 0 auto 12px;
  color: var(--color-success);
}
.done-card__icon svg { width: 28px; height: 28px; }
.done-card__title {
  font-family: var(--font-heading);
  font-weight: 700; font-size: 1.1rem;
  color: var(--color-text);
  margin-bottom: 4px;
}
.done-card__desc {
  font-size: .85rem;
  color: var(--color-text-secondary);
}

/* ---------- Daily View ---------- */
.day-pills {
  display: flex; gap: 6px; flex-wrap: wrap;
  margin-bottom: 16px;
}
.day-pill {
  padding: 7px 16px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: .8rem; font-weight: 600;
  color: var(--color-text-secondary);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: all .25s var(--ease-spring);
}
.day-pill:hover {
  color: var(--color-text);
  background: var(--color-surface-hover);
  border-color: var(--color-border-strong);
  transform: translateY(-1px);
}
.day-pill.active {
  color: #fff;
  background: var(--color-accent);
  border-color: var(--color-accent);
  box-shadow: 0 4px 14px var(--color-accent-glow);
  transform: translateY(-1px) scale(1.03);
}

/* Schedule Cards */
.schedule-list { display: flex; flex-direction: column; gap: 8px; }

.schedule-card {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  transition: transform .28s var(--ease-spring),
              box-shadow .3s ease,
              border-color .3s ease,
              background .3s ease;
  opacity: 0;
  transform: translateY(12px);
}
.schedule-card.show {
  animation: cardIn .38s var(--ease-out) forwards;
}
.schedule-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-border-strong);
}

.schedule-card--active {
  border-color: var(--color-accent);
  background: linear-gradient(135deg, var(--color-accent-glow), var(--color-surface));
  box-shadow: var(--shadow-glow);
}

.schedule-card--free {
  opacity: .55;
  border-style: dashed;
}

.schedule-card__time {
  font-family: var(--font-mono);
  font-size: .75rem; font-weight: 500;
  color: var(--color-accent);
  min-width: 85px; flex-shrink: 0;
  display: flex; flex-direction: column;
  line-height: 1.5;
}
.schedule-card__time-range { color: var(--color-text-tertiary); font-size: .68rem; }

.schedule-card__content { flex: 1; min-width: 0; }
.schedule-card__subject {
  font-weight: 600; font-size: .9rem;
  color: var(--color-text);
  margin-bottom: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.schedule-card__details {
  display: flex; gap: 14px;
  font-size: .75rem; color: var(--color-text-secondary);
}
.schedule-card__detail {
  display: flex; align-items: center; gap: 3px;
}
.schedule-card__detail svg { width: 12px; height: 12px; opacity: .6; }

/* Stagger animation */
@keyframes cardIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.schedule-card:nth-child(1) { animation-delay: .02s; }
.schedule-card:nth-child(2) { animation-delay: .05s; }
.schedule-card:nth-child(3) { animation-delay: .08s; }
.schedule-card:nth-child(4) { animation-delay: .11s; }
.schedule-card:nth-child(5) { animation-delay: .14s; }
.schedule-card:nth-child(6) { animation-delay: .17s; }
.schedule-card:nth-child(7) { animation-delay: .20s; }
.schedule-card:nth-child(8) { animation-delay: .23s; }

/* ---------- Weekly View ---------- */
.weekly-grid-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}
.weekly-grid {
  width: 100%; min-width: 680px;
  border-collapse: collapse;
  font-size: .78rem;
}
.weekly-grid th {
  padding: 12px 10px;
  text-align: left;
  font-family: var(--font-heading);
  font-size: .68rem; font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--color-text-tertiary);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface-alt);
  position: sticky; top: 0; z-index: 2;
}
.weekly-grid th:first-child { border-radius: var(--radius-lg) 0 0 0; }
.weekly-grid th:last-child  { border-radius: 0 var(--radius-lg) 0 0; }

.weekly-grid td {
  padding: 10px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
  vertical-align: top;
  transition: background .2s ease;
}
.weekly-grid tr:last-child td { border-bottom: none; }
.weekly-grid tbody tr:hover td { background: var(--color-surface-hover); }

.weekly-grid td:first-child {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .78rem;
  color: var(--color-accent);
  white-space: nowrap;
  min-width: 70px;
}
.weekly-cell { font-size: .74rem; line-height: 1.4; }
.weekly-cell--free { color: var(--color-text-tertiary); }

/* ---------- Day Stats ---------- */
.day-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}
.stat-card {
  padding: 14px 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  text-align: center;
  transition: transform .25s var(--ease-spring), box-shadow .25s ease;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-card__value {
  font-family: var(--font-heading);
  font-size: 1.3rem; font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 2px;
}
.stat-card__label {
  font-size: .72rem;
  color: var(--color-text-tertiary);
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* ---------- Section Headers ---------- */
.section-header {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 14px;
}
.section-header__icon {
  width: 28px; height: 28px;
  border-radius: var(--radius-sm);
  background: var(--color-accent-glow);
  display: grid; place-items: center;
  color: var(--color-accent);
}
.section-header__icon svg { width: 14px; height: 14px; }
.section-header__text {
  font-family: var(--font-heading);
  font-weight: 700; font-size: 1rem;
  color: var(--color-text);
}

/* ---------- Empty State ---------- */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--color-text-secondary);
}
.empty-state__icon {
  width: 48px; height: 48px; margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  display: grid; place-items: center;
  color: var(--color-text-tertiary);
}
.empty-state__icon svg { width: 22px; height: 22px; }
.empty-state__text { font-size: .88rem; }

/* ---------- Footer ---------- */
.site-footer {
  padding: 20px 16px 28px;
  text-align: center;
}
.footer-inner {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  font-size: .78rem;
  box-shadow: var(--shadow-xs);
  transition: transform .3s var(--ease-spring), box-shadow .3s ease;
}
.footer-inner:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.footer-text { color: var(--color-text-tertiary); }
.footer-author {
  font-family: var(--font-heading);
  font-weight: 700;
  background: var(--color-accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--color-border-strong); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-accent); }

/* ---------- Error Alert ---------- */
.error-alert {
  padding: 12px 16px;
  background: rgba(255,118,117,.08);
  border: 1px solid rgba(255,118,117,.2);
  border-radius: var(--radius-md);
  color: var(--color-danger);
  font-size: .85rem;
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px;
}
.error-alert svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .header-inner { flex-wrap: wrap; padding: 10px 12px; }
  .nav-tabs { order: 3; width: 100%; justify-content: center; }
  .nav-tab span { display: none; }
  .nav-tab { padding: 8px 16px; }
  .live-clock { display: none; }
  .now-hero__greeting { font-size: 1.3rem; }
  .schedule-card { padding: 12px; gap: 10px; }
  .schedule-card__time { min-width: 70px; }
  .day-stats { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 400px) {
  .logo-text { display: none; }
  .header-actions { gap: 6px; }
}

