:root {
  --bg: #050507;
  --surface: rgba(13, 14, 18, 0.94);
  --surface-strong: #000000;
  --surface-soft: rgba(24, 26, 32, 0.85);
  --border: rgba(255, 255, 255, 0.12);
  --border-bright: rgba(255, 255, 255, 0.24);
  --text: #ffffff;
  --muted: #a1a1aa;
  --cyan: #3b82f6;
  --indigo: #2563eb;
  --gold: #fbbf24;
  --gold-soft: rgba(251, 191, 36, 0.14);
  --emerald: #10b981;
  --emerald-soft: rgba(16, 185, 129, 0.14);
  --danger: #f43f5e;
  --danger-soft: rgba(244, 63, 94, 0.14);
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
  --font-sans: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'Cascadia Mono', 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.hidden {
  display: none !important;
}

.bg-ambient {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(110px);
  opacity: 0.08;
}

.orb-1 {
  width: 520px;
  height: 520px;
  top: -160px;
  left: -120px;
  background: radial-gradient(circle, #38bdf8, transparent 70%);
}

.orb-2 {
  width: 540px;
  height: 540px;
  bottom: -180px;
  right: -120px;
  background: radial-gradient(circle, #818cf8, transparent 70%);
}

/* Loading */
.center-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.loader-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: var(--muted);
}

.spinner {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid var(--border);
  border-top-color: var(--cyan);
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Auth Shell */
.auth-shell {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 32px 24px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: var(--cyan);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.badge-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}

.auth-hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.08;
  margin: 20px 0 16px;
  letter-spacing: -0.03em;
}

.hero-copy {
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.65;
  max-width: 520px;
  margin: 0 0 28px;
}

.hero-copy strong {
  color: var(--text);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.feature-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  backdrop-filter: blur(16px);
}

.feature-val {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 4px;
}

.feature-lbl {
  font-size: 0.82rem;
  color: var(--muted);
}

.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px;
  background: rgba(7, 11, 20, 0.65);
  border-radius: var(--radius-md);
  margin-bottom: 22px;
}

.auth-tab {
  border: none;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.94rem;
  padding: 10px;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.16s ease;
}

.auth-tab.active {
  background: var(--surface-soft);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--border-bright);
}

.auth-form, .google-custom-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 0.84rem;
  font-weight: 600;
  color: #cbd5e1;
}

.field input {
  width: 100%;
  background: rgba(7, 11, 20, 0.72);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: 11px 13px;
  font-size: 0.96rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.16);
}

.password-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.password-wrap input {
  padding-right: 64px;
}

.password-wrap .icon-btn {
  position: absolute;
  right: 8px;
}

.icon-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
}

.icon-btn:hover {
  color: var(--text);
  background: rgba(148, 163, 184, 0.12);
}

.form-error {
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--danger-soft);
  border: 1px solid rgba(244, 63, 94, 0.35);
  color: #fecdd3;
  font-size: 0.88rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 11px 18px;
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-full {
  width: 100%;
}

.btn-lg {
  padding: 13px 26px;
  font-size: 1rem;
}

.btn-sm {
  padding: 7px 12px;
  font-size: 0.84rem;
  border-radius: 9px;
}

.btn-primary {
  background: linear-gradient(135deg, #0284c7, #4f46e5);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(56, 189, 248, 0.22);
}

.btn-primary:hover:not(:disabled) {
  filter: brightness(1.1);
}

.btn-secondary {
  background: var(--surface-soft);
  border-color: var(--border-bright);
  color: var(--text);
}

.btn-secondary:hover:not(:disabled) {
  background: rgba(51, 65, 85, 0.72);
}

.btn-danger {
  background: var(--danger-soft);
  border-color: rgba(244, 63, 94, 0.35);
  color: #fda4af;
}

.btn-danger:hover:not(:disabled) {
  background: rgba(244, 63, 94, 0.24);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--muted);
}

.btn-ghost:hover:not(:disabled) {
  color: var(--text);
  border-color: var(--border-bright);
  background: rgba(148, 163, 184, 0.08);
}

.btn-google {
  background: #ffffff;
  color: #0f172a;
  font-weight: 600;
}

.btn-google:hover:not(:disabled) {
  background: #f1f5f9;
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.micro-hint {
  margin: 10px 0 0;
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
}

/* Dashboard */
.dash-shell {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 24px 48px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(18px);
  margin-bottom: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(99, 102, 241, 0.25));
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.brand-title {
  font-weight: 700;
  font-size: 1.05rem;
}

.brand-sub {
  font-size: 0.78rem;
  color: var(--muted);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.exp-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--gold-soft);
  border: 1px solid rgba(251, 191, 36, 0.32);
  font-size: 0.85rem;
  font-weight: 700;
}

.lvl-tag {
  color: #fde68a;
}

.exp-val {
  color: var(--gold);
}

.auth-shell > *,
.dash-grid > * {
  min-width: 0;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
  padding: 5px 10px 5px 6px;
  background: rgba(7, 11, 20, 0.55);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.avatar {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.85rem;
  background: linear-gradient(135deg, #38bdf8, #6366f1);
  color: #fff;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.user-meta {
  line-height: 1.2;
  min-width: 0;
}

.user-name {
  font-size: 0.83rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}

.user-email {
  font-size: 0.72rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}

.provider-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.14);
  color: #cbd5e1;
}

.dash-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 24px;
  align-items: start;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.panel-header.compact h2 {
  margin: 0;
  font-size: 1.05rem;
}

.muted-tag {
  font-size: 0.78rem;
  color: var(--muted);
}

.label-input-wrap {
  flex: 1;
}

.session-label-input {
  width: 100%;
  background: rgba(7, 11, 20, 0.55);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 600;
  padding: 9px 12px;
  outline: none;
}

.session-label-input:focus {
  border-color: var(--cyan);
}

.status-badge {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status-idle {
  background: rgba(148, 163, 184, 0.14);
  color: #cbd5e1;
}

.status-running {
  background: rgba(56, 189, 248, 0.16);
  color: var(--cyan);
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.status-paused {
  background: var(--gold-soft);
  color: var(--gold);
  border: 1px solid rgba(251, 191, 36, 0.35);
}

.status-completed {
  background: var(--emerald-soft);
  color: var(--emerald);
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.reward-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  margin-bottom: 16px;
  border-radius: var(--radius-md);
  background: var(--emerald-soft);
  border: 1px solid rgba(16, 185, 129, 0.38);
}

.reward-banner-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.reward-spark {
  font-size: 1.4rem;
  color: var(--gold);
}

.reward-banner strong {
  display: block;
  color: #6ee7b7;
  font-size: 0.98rem;
}

.reward-banner p {
  margin: 2px 0 0;
  color: #cbd5e1;
  font-size: 0.82rem;
}

/* Ring Stage */
.ring-stage {
  position: relative;
  width: min(292px, 68vw);
  height: min(292px, 68vw);
  margin: 8px auto 22px;
  display: grid;
  place-items: center;
}

.progress-ring {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ring-track {
  fill: none;
  stroke: rgba(148, 163, 184, 0.14);
  stroke-width: 12;
}

.ring-fill {
  fill: none;
  stroke: url(#ringGradient);
  stroke-width: 12;
  stroke-linecap: round;
  stroke-dasharray: 703.72;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.2s linear;
}

.ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 18px;
}

.timer-digits {
  font-family: var(--font-mono);
  font-size: clamp(1.95rem, 7.5vw, 2.75rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.reward-preview {
  margin-top: 8px;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--gold);
  background: var(--gold-soft);
  padding: 4px 10px;
  border-radius: 999px;
}

/* Configurator */
.configurator {
  background: rgba(7, 11, 20, 0.45);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 20px;
  transition: opacity 0.18s ease;
}

.configurator.locked {
  opacity: 0.55;
  pointer-events: none;
}

/* Timer Mode Switch (Normal Timer vs Pomodoro Technique) */
.timer-mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px;
  background: #08080b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  margin-bottom: 16px;
}

.timer-mode-btn {
  border: none;
  background: transparent;
  color: #a1a1aa;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 9px 12px;
  border-radius: 9px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.timer-mode-btn:hover:not(:disabled) {
  color: #ffffff;
}

.timer-mode-btn.active {
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.35);
}

.timer-mode-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.pomo-step-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 1.15rem;
  width: 36px;
  height: 40px;
  cursor: pointer;
}

.pomo-step-btn:hover {
  background: rgba(148, 163, 184, 0.12);
  color: var(--text);
}

.pomo-preset-chip {
  border: 1px solid var(--border);
  background: rgba(30, 41, 59, 0.55);
  color: #cbd5e1;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pomo-preset-chip:hover {
  border-color: #3b82f6;
  color: #ffffff;
}

.pomo-preset-chip.active {
  background: rgba(37, 99, 235, 0.22);
  border-color: #3b82f6;
  color: #93c5fd;
}

.hms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.hms-box label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 6px;
}

.range-hint {
  color: var(--muted);
  font-weight: 500;
}

.stepper {
  display: flex;
  align-items: center;
  background: #08080c;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.stepper:focus-within {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.step-btn {
  border: none;
  background: transparent;
  color: #cbd5e1;
  font-size: 1.25rem;
  font-weight: 700;
  width: 44px;
  height: 46px;
  cursor: pointer;
}

.step-btn:hover {
  background: rgba(59, 130, 246, 0.14);
  color: #ffffff;
}

.stepper input {
  width: 100%;
  min-width: 0;
  height: 46px;
  border: none;
  background: transparent;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 700;
  text-align: center;
  outline: none;
  -moz-appearance: textfield;
}

.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.duration-hint {
  margin: 10px 0 12px;
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
}

.presets-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.preset-chip {
  border: 1px solid var(--border);
  background: rgba(30, 41, 59, 0.55);
  color: #cbd5e1;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.preset-chip:hover {
  border-color: var(--cyan);
  color: var(--text);
}

.preset-chip.active {
  background: rgba(56, 189, 248, 0.18);
  border-color: var(--cyan);
  color: var(--cyan);
}

.controls-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Side Column */
.side-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.exp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.eyebrow {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.big-exp {
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold);
  margin-top: 2px;
}

.level-badge {
  text-align: right;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  background: rgba(99, 102, 241, 0.14);
  border: 1px solid rgba(129, 140, 248, 0.3);
}

.level-num {
  font-size: 0.92rem;
  font-weight: 800;
  color: #c7d2fe;
}

.level-title {
  font-size: 0.76rem;
  color: var(--muted);
}

.xp-bar-wrap {
  margin-bottom: 18px;
}

.xp-bar-track {
  height: 9px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.14);
  overflow: hidden;
}

.xp-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #38bdf8, #fbbf24);
  transition: width 0.35s ease;
}

.xp-bar-caption {
  margin-top: 6px;
  font-size: 0.78rem;
  color: var(--muted);
}

.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.mini-stat {
  background: rgba(7, 11, 20, 0.45);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 10px;
  text-align: center;
}

.mini-label {
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 4px;
}

.mini-value {
  font-size: 1rem;
  font-weight: 700;
}

.accent-gold {
  color: var(--gold);
}

.accent-fire {
  color: #fb923c;
}

.streak-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.14);
  border: 1px solid rgba(251, 146, 60, 0.36);
  color: #fed7aa;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.14s ease, background 0.15s ease;
}

.streak-pill:hover {
  background: rgba(249, 115, 22, 0.22);
  transform: translateY(-1px);
}

.hot-tag {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 2px 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f97316, #ef4444);
  color: #ffffff;
}

.streak-popup {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 20px;
  margin-bottom: 22px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.16), rgba(234, 88, 12, 0.08) 55%, rgba(15, 23, 42, 0.9));
  border: 1px solid rgba(251, 146, 60, 0.42);
  box-shadow: 0 16px 40px rgba(249, 115, 22, 0.14);
  backdrop-filter: blur(18px);
  animation: streakPopIn 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes streakPopIn {
  from {
    opacity: 0;
    transform: translateY(-12px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.streak-popup-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 240px;
}

.streak-icon-orb {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: radial-gradient(circle at 30% 30%, rgba(251, 191, 36, 0.35), rgba(249, 115, 22, 0.25));
  border: 1px solid rgba(251, 146, 60, 0.5);
  box-shadow: 0 0 20px rgba(249, 115, 22, 0.28);
}

.streak-fire-lg {
  font-size: 1.65rem;
  line-height: 1;
}

.streak-popup-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffedd5;
}

.streak-popup-msg {
  margin: 4px 0 0;
  font-size: 0.9rem;
  color: #fed7aa;
  line-height: 1.45;
}

.streak-popup-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.streak-best-pill {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(7, 11, 20, 0.55);
  border: 1px solid rgba(251, 146, 60, 0.3);
  color: #fdba74;
}

.mini-stats-4 {
  grid-template-columns: repeat(2, 1fr);
}

/* Task Logger */
.task-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.task-title-input {
  width: 100%;
  background: rgba(7, 11, 20, 0.7);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.92rem;
  outline: none;
}

.task-title-input:focus {
  border-color: var(--cyan);
}

.task-duration-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.task-time-field {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(7, 11, 20, 0.7);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px 10px;
  flex: 1;
}

.task-time-field input {
  width: 100%;
  min-width: 0;
  border: none;
  background: transparent;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
  outline: none;
}

.task-time-field span {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
}

.task-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 290px;
  overflow-y: auto;
}

.task-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #09090d;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.task-item.completed {
  opacity: 0.72;
  border-color: rgba(16, 185, 129, 0.25);
}

.task-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.task-item-title {
  font-size: 0.94rem;
  font-weight: 600;
  color: #ffffff;
}

.task-item-meta {
  font-size: 0.76rem;
  color: var(--muted);
}

.task-item-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

/* Full-Screen Dark Black + Blue Glow Focus Mode */
.focus-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #000000;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: hidden;
}

.focus-glow-aura {
  position: absolute;
  width: min(76vw, 620px);
  height: min(76vw, 620px);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(37, 99, 235, 0.48) 0%,
    rgba(56, 189, 248, 0.22) 34%,
    rgba(29, 78, 216, 0.08) 56%,
    rgba(0, 0, 0, 0) 74%
  );
  filter: blur(28px);
  pointer-events: none;
  animation: blueAuraPulse 4.5s ease-in-out infinite;
}

.focus-overlay.is-paused .focus-glow-aura {
  opacity: 0.45;
  animation-play-state: paused;
}

@keyframes blueAuraPulse {
  0%, 100% {
    transform: scale(0.95);
    opacity: 0.85;
  }
  50% {
    transform: scale(1.07);
    opacity: 1;
  }
}

.focus-center {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
}

.focus-task-label {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(147, 197, 253, 0.85);
}

.focus-timer-digits {
  font-family: var(--font-mono);
  font-size: clamp(4rem, 15vw, 9.5rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: #ffffff;
  text-shadow:
    0 0 20px rgba(56, 189, 248, 0.95),
    0 0 56px rgba(37, 99, 235, 0.85),
    0 0 115px rgba(59, 130, 246, 0.55);
}

.focus-status-text {
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(191, 219, 254, 0.78);
}

.focus-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.focus-btn {
  min-width: 120px;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid rgba(96, 165, 250, 0.32);
  background: rgba(15, 23, 42, 0.65);
  color: #e0f2fe;
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: transform 0.12s ease, background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.focus-btn:hover {
  background: rgba(30, 58, 138, 0.55);
  border-color: rgba(125, 211, 252, 0.65);
  box-shadow: 0 0 22px rgba(56, 189, 248, 0.25);
}

.focus-btn:active {
  transform: translateY(1px);
}

.focus-btn-primary {
  background: rgba(37, 99, 235, 0.35);
  border-color: rgba(96, 165, 250, 0.65);
  color: #ffffff;
}

.focus-btn-end {
  border-color: rgba(244, 63, 94, 0.4);
  color: #fecdd3;
}

.focus-btn-end:hover {
  background: rgba(190, 18, 60, 0.32);
  border-color: rgba(251, 113, 133, 0.7);
  box-shadow: 0 0 22px rgba(244, 63, 94, 0.25);
}

/* Floating Circular AI Button & Clean Big-Screen Black Modal */
.ai-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 120;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 1px solid rgba(59, 130, 246, 0.55);
  background: #2563eb;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.42), 0 0 18px rgba(59, 130, 246, 0.28);
  transition: transform 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.ai-fab:hover {
  transform: translateY(-2px);
  background: #3b82f6;
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.55), 0 0 24px rgba(59, 130, 246, 0.4);
}

.ai-fab-spark {
  font-size: 0.96rem;
  line-height: 1;
}

.ai-fab-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.ai-drawer {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
}

.ai-modal-dialog {
  width: min(1040px, calc(100vw - 24px));
  height: min(88vh, 820px);
  display: flex;
  flex-direction: column;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.9);
  overflow: hidden;
  animation: streakPopIn 0.18s ease;
}

.ai-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: #000000;
}

.ai-drawer-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ai-drawer-title-wrap h3 {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 700;
  color: #ffffff;
}

.ai-drawer-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3b82f6;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.85);
}

.ai-key-status {
  display: block;
  font-size: 0.8rem;
  color: #a1a1aa;
  margin-top: 2px;
}

.ai-drawer-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ai-quota-pill {
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #93c5fd;
  background: rgba(37, 99, 235, 0.16);
  border: 1px solid rgba(59, 130, 246, 0.45);
  white-space: nowrap;
}

.ai-quota-pill.exhausted {
  color: #fecdd3;
  background: rgba(127, 29, 29, 0.3);
  border-color: rgba(244, 63, 94, 0.45);
}

.ai-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #0a0a0d;
  color: #ffffff;
  font-size: 1rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.ai-close-btn:hover {
  background: #141419;
  border-color: rgba(255, 255, 255, 0.3);
}

.ai-tasks-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 26px;
  background: #050507;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ai-tasks-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #a1a1aa;
  margin-right: 4px;
}

.ai-task-pill {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #0d0d12;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.ai-task-pill:hover {
  background: #16161e;
  border-color: rgba(255, 255, 255, 0.35);
}

.ai-task-pill.done {
  color: #a1a1aa;
  text-decoration: line-through;
}

.ai-task-empty {
  font-size: 0.84rem;
  color: #a1a1aa;
}

.ai-quick-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 26px;
  background: #000000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-chip {
  border: 1px solid rgba(59, 130, 246, 0.65);
  background: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 8px 15px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 0 14px rgba(37, 99, 235, 0.32), inset 0 0 8px rgba(59, 130, 246, 0.12);
  transition: transform 0.12s ease, border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.ai-chip:hover:not(:disabled) {
  transform: translateY(-1px);
  background: rgba(30, 58, 138, 0.65);
  border-color: #60a5fa;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.55), inset 0 0 10px rgba(96, 165, 250, 0.22);
}

.ai-chip:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.ai-messages {
  flex: 1;
  overflow-y: auto;
  padding: 24px 26px;
  background: #000000;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ai-msg {
  max-width: 82%;
  padding: 14px 18px;
  border-radius: 14px;
  font-size: 0.98rem;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
  color: #ffffff;
}

.ai-msg-user {
  align-self: flex-end;
  background: #071226;
  border: 1px solid rgba(59, 130, 246, 0.6);
  box-shadow: 0 0 16px rgba(37, 99, 235, 0.26);
  color: #ffffff;
}

.ai-msg-bot {
  align-self: flex-start;
  background: #09090d;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.ai-msg-error {
  align-self: flex-start;
  background: rgba(127, 29, 29, 0.25);
  border: 1px solid rgba(244, 63, 94, 0.45);
  color: #fecdd3;
}

.ai-form {
  display: flex;
  gap: 12px;
  padding: 18px 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: #000000;
}

.ai-form input {
  flex: 1;
  min-width: 0;
  background: #0a0a0e;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  color: #ffffff;
  padding: 14px 18px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ai-form input::placeholder {
  color: #71717a;
}

.ai-form input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.22);
}

.ai-send-btn {
  border: none;
  border-radius: 12px;
  background: #2563eb;
  color: #ffffff;
  font-size: 0.98rem;
  font-weight: 700;
  padding: 14px 26px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
  transition: background 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}

.ai-send-btn:hover {
  background: #3b82f6;
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.45);
}

.ai-send-btn:active {
  transform: translateY(1px);
}

.ai-send-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.history-empty {
  color: var(--muted);
  font-size: 0.9rem;
  padding: 12px 0;
  text-align: center;
}

.history-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 360px;
  overflow-y: auto;
}

.history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 13px;
  border-radius: 11px;
  background: rgba(7, 11, 20, 0.48);
  border: 1px solid var(--border);
}

.history-title {
  font-size: 0.9rem;
  font-weight: 600;
}

.history-meta {
  font-size: 0.76rem;
  color: var(--muted);
  margin-top: 2px;
}

.history-exp {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--gold);
  white-space: nowrap;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-card {
  width: 100%;
  max-width: 430px;
  background: var(--surface-strong);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.google-modal-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.google-modal-brand h2 {
  margin: 0;
  font-size: 1.12rem;
}

.modal-sub {
  margin: 10px 0 16px;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.5;
}

.google-accounts-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.google-account-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(7, 11, 20, 0.55);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.google-account-row:hover {
  border-color: var(--cyan);
  background: rgba(56, 189, 248, 0.08);
}

.g-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  background: #2563eb;
  color: #fff;
}

.g-avatar.g-alt {
  background: #7c3aed;
}

.g-info {
  display: flex;
  flex-direction: column;
}

.g-info strong {
  font-size: 0.9rem;
}

.g-info span {
  font-size: 0.78rem;
  color: var(--muted);
}

@media (max-width: 960px) {
  .auth-shell {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 24px 18px 40px;
    align-content: start;
  }
  .dash-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .dash-shell {
    padding: 16px 16px 92px;
  }
}

@media (max-width: 640px) {
  .auth-shell {
    padding: 18px 14px 36px;
    gap: 20px;
  }
  .auth-hero h1 {
    font-size: clamp(1.65rem, 6.8vw, 2.2rem);
    margin: 14px 0 10px;
  }
  .hero-copy {
    font-size: 0.94rem;
    margin-bottom: 18px;
  }
  .feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .feature-item {
    padding: 11px 10px;
  }
  .feature-val {
    font-size: 0.92rem;
  }
  .feature-lbl {
    font-size: 0.72rem;
    line-height: 1.3;
  }
  .auth-card {
    padding: 20px 16px;
    border-radius: 16px;
  }
  .field input {
    font-size: 16px;
  }
  .dash-shell {
    padding: 12px 12px 92px;
  }
  .topbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px 14px;
    margin-bottom: 16px;
    border-radius: 16px;
  }
  .topbar-right {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }
  .user-chip {
    flex: 1 1 auto;
    min-width: 0;
  }
  .user-name,
  .user-email {
    max-width: 120px;
  }
  .streak-popup {
    padding: 14px;
    gap: 12px;
    margin-bottom: 16px;
    border-radius: 16px;
  }
  .streak-popup-right {
    width: 100%;
    justify-content: space-between;
  }
  .panel {
    padding: 18px 14px;
    border-radius: 16px;
  }
  .panel-header {
    gap: 8px;
    margin-bottom: 14px;
  }
  .session-label-input {
    font-size: 16px;
  }
  .timer-mode-btn {
    font-size: 0.82rem;
    padding: 8px 8px;
  }
  .ring-stage {
    width: min(240px, 64vw);
    height: min(240px, 64vw);
    margin: 6px auto 18px;
  }
  .configurator {
    padding: 12px 10px;
    margin-bottom: 16px;
  }
  .hms-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .hms-box label {
    font-size: 0.72rem;
    white-space: nowrap;
  }
  .range-hint {
    display: none;
  }
  .step-btn,
  .pomo-step-btn {
    width: 32px;
    height: 42px;
    font-size: 1.05rem;
  }
  .stepper input {
    height: 42px;
    font-size: 1rem;
  }
  .controls-row .btn-lg {
    flex: 1 1 130px;
    padding: 12px 16px;
  }
  .task-duration-row {
    flex-wrap: wrap;
  }
  .task-duration-row .btn {
    width: 100%;
  }
  .focus-overlay {
    padding: 16px;
  }
  .focus-timer-digits {
    font-size: clamp(2.8rem, 15vw, 5.5rem);
  }
  .focus-controls {
    width: 100%;
    gap: 10px;
  }
  .focus-btn {
    flex: 1 1 92px;
    min-width: 0;
    padding: 12px 14px;
    font-size: 0.9rem;
  }
  .ai-fab {
    right: 14px;
    bottom: 14px;
    width: 54px;
    height: 54px;
  }
  .ai-drawer {
    padding: 8px;
  }
  .ai-modal-dialog {
    width: calc(100vw - 16px);
    height: 92dvh;
    border-radius: 16px;
  }
  .ai-drawer-header,
  .ai-tasks-bar,
  .ai-quick-prompts,
  .ai-messages,
  .ai-form {
    padding-left: 14px;
    padding-right: 14px;
  }
  .ai-msg {
    max-width: 92%;
    font-size: 0.92rem;
  }
  .ai-form input {
    font-size: 16px;
    padding: 12px 14px;
  }
  .ai-send-btn {
    padding: 12px 18px;
  }
  .support-qr-card {
    padding: 24px 18px 20px;
  }
}

@media (max-width: 380px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .mini-stats {
    grid-template-columns: 1fr 1fr;
  }
  .hms-grid {
    gap: 6px;
  }
  .step-btn,
  .pomo-step-btn {
    width: 26px;
  }
}

/* Creator Support QR Pop-Up (shown after completing a focus timer) */
.support-qr-backdrop {
  position: fixed;
  inset: 0;
  z-index: 165;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
}

.support-qr-card {
  position: relative;
  width: min(390px, calc(100vw - 28px));
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  padding: 28px 24px 24px;
  text-align: center;
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.9), 0 0 36px rgba(37, 99, 235, 0.18);
  animation: streakPopIn 0.22s ease;
}

.support-qr-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #0b0b0f;
  color: #ffffff;
  font-size: 0.92rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.support-qr-close:hover {
  background: #16161d;
  border-color: rgba(255, 255, 255, 0.35);
}

.support-qr-goal {
  display: inline-block;
  margin-bottom: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.18);
  border: 1px solid rgba(59, 130, 246, 0.5);
  color: #93c5fd;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.support-qr-title {
  margin: 0 0 10px;
  font-size: 1.15rem;
  line-height: 1.3;
  font-weight: 700;
  color: #ffffff;
}

.support-qr-copy {
  margin: 0 0 18px;
  font-size: 0.86rem;
  line-height: 1.55;
  color: #d4d4d8;
}

.support-qr-box {
  width: 196px;
  height: 196px;
  margin: 0 auto 14px;
  padding: 8px;
  border-radius: 16px;
  background: #0a0a0d;
  border: 1px solid rgba(251, 191, 36, 0.38);
  box-shadow: 0 0 24px rgba(251, 191, 36, 0.14);
}

.support-qr-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 10px;
}

.support-qr-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 auto 14px;
  padding: 10px 20px;
  border-radius: 10px;
  background: #2563eb;
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
  transition: background 0.15s ease, transform 0.12s ease;
}

.support-qr-download-btn:hover {
  background: #3b82f6;
}

.support-qr-download-btn:active {
  transform: translateY(1px);
}

.support-qr-footer {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.support-qr-footer strong {
  font-size: 0.88rem;
  color: #ffffff;
}

.support-qr-footer span {
  font-size: 0.76rem;
  color: #a1a1aa;
}

/* 5-Second Metallic Silver R-Code Studios Intro */
.studio-intro {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: #000000;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: hidden;
  cursor: pointer;
  opacity: 1;
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.65s ease;
}

.studio-intro.is-leaving {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.studio-intro-aura {
  position: absolute;
  width: min(88vw, 760px);
  height: min(46vh, 360px);
  border-radius: 50%;
  background: radial-gradient(
    ellipse at center,
    rgba(226, 232, 240, 0.22) 0%,
    rgba(148, 163, 184, 0.1) 40%,
    rgba(0, 0, 0, 0) 74%
  );
  filter: blur(28px);
  animation: studioAuraPulse 5s ease-in-out forwards;
}

.studio-intro-beam {
  position: absolute;
  inset: -40%;
  background: linear-gradient(
    115deg,
    transparent 38%,
    rgba(255, 255, 255, 0.06) 47%,
    rgba(226, 232, 240, 0.16) 50%,
    rgba(255, 255, 255, 0.06) 53%,
    transparent 62%
  );
  transform: translateX(-60%);
  animation: studioBeamSweep 4.6s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
  pointer-events: none;
}

.studio-intro-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.studio-intro-rule {
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #e2e8f0, #ffffff, #e2e8f0, transparent);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.55);
  animation: studioRuleExpand 1.4s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}

.studio-intro-rule-bottom {
  animation-delay: 0.55s;
}

.studio-intro-title {
  margin: 0;
  font-size: clamp(1.65rem, 7.2vw, 5.4rem);
  font-weight: 900;
  letter-spacing: clamp(0.08em, 1.8vw, 0.18em);
  line-height: 1.08;
  text-transform: uppercase;
  background: linear-gradient(
    110deg,
    #64748b 0%,
    #cbd5e1 18%,
    #ffffff 32%,
    #94a3b8 46%,
    #f8fafc 58%,
    #ffffff 70%,
    #94a3b8 85%,
    #e2e8f0 100%
  );
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 22px rgba(255, 255, 255, 0.38)) drop-shadow(0 0 54px rgba(203, 213, 225, 0.22));
  opacity: 0;
  transform: scale(0.92);
  animation:
    studioTitleReveal 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards,
    studioSilverShimmer 3.8s linear 0.6s infinite;
}

.studio-intro-sub {
  margin: 0;
  font-size: clamp(0.74rem, 1.4vw, 0.96rem);
  font-weight: 700;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: #cbd5e1;
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.35);
  opacity: 0;
  transform: translateY(8px);
  animation: studioSubReveal 1s ease 0.9s forwards;
}

@keyframes studioTitleReveal {
  0% {
    opacity: 0;
    transform: scale(0.92);
    letter-spacing: 0.28em;
  }
  100% {
    opacity: 1;
    transform: scale(1);
    letter-spacing: 0.18em;
  }
}

@keyframes studioSilverShimmer {
  0% {
    background-position: 180% 0;
  }
  100% {
    background-position: -60% 0;
  }
}

@keyframes studioSubReveal {
  to {
    opacity: 0.92;
    transform: translateY(0);
  }
}

@keyframes studioRuleExpand {
  to {
    width: min(72vw, 460px);
  }
}

@keyframes studioAuraPulse {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  25% {
    opacity: 1;
    transform: scale(1.04);
  }
  80% {
    opacity: 0.95;
    transform: scale(1.08);
  }
  100% {
    opacity: 0.6;
    transform: scale(1.12);
  }
}

@keyframes studioBeamSweep {
  0% {
    transform: translateX(-65%);
  }
  100% {
    transform: translateX(70%);
  }
}
