/* Unshared shared surface tokens + controls (homepage + dashboard) */
@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap");

:root {
  --u-bg: #07070c;
  --u-bg-elevated: #12121c;
  --u-bg-soft: rgba(255, 255, 255, 0.04);
  --u-surface: rgba(255, 255, 255, 0.05);
  --u-surface-hover: rgba(255, 255, 255, 0.08);
  --u-border: rgba(255, 255, 255, 0.1);
  --u-border-strong: rgba(255, 255, 255, 0.18);
  --u-text: #f3f5fb;
  --u-text-muted: rgba(243, 245, 251, 0.7);
  --u-text-faint: rgba(243, 245, 251, 0.45);
  --u-shadow: 0 22px 60px rgba(0, 0, 0, 0.35);
  --u-glow: 0 14px 40px rgba(var(--u-primary-rgb, 231, 76, 60), 0.28);
  --u-font: "Outfit", Inter, system-ui, sans-serif;
  --card-bg: var(--u-surface);
  --card-border: var(--u-border);
  --card-hover: var(--u-surface-hover);
  color-scheme: dark;
}

html[data-theme="light"] {
  --u-bg: #eef1f7;
  --u-bg-elevated: #ffffff;
  --u-bg-soft: rgba(15, 23, 42, 0.04);
  --u-surface: #ffffff;
  --u-surface-hover: #f8fafc;
  --u-border: rgba(15, 23, 42, 0.1);
  --u-border-strong: rgba(15, 23, 42, 0.16);
  --u-text: #0f172a;
  --u-text-muted: rgba(15, 23, 42, 0.68);
  --u-text-faint: rgba(15, 23, 42, 0.45);
  --u-shadow: 0 18px 44px rgba(15, 23, 42, 0.1);
  --u-glow: 0 12px 30px rgba(var(--u-primary-rgb, 231, 76, 60), 0.18);
  color-scheme: light;
}

html { font-size: calc(16px * var(--u-font-scale, 1)); }

body {
  font-family: var(--u-font);
  color: var(--u-text);
  background: var(--u-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(var(--u-primary-rgb, 231, 76, 60), 0.35);
  color: #fff;
}

a { color: var(--u-accent, #7c5cff); }
a:hover { color: var(--u-primary, #e74c3c); }

:focus-visible {
  outline: 2px solid rgba(var(--u-accent-rgb, 124, 92, 255), 0.85);
  outline-offset: 2px;
}

.u-theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--u-border);
  background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  color: var(--u-text);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--u-shadow);
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.u-theme-toggle:hover {
  transform: translateY(-1px);
  border-color: var(--u-border-strong);
}
.u-theme-toggle .u-theme-icon-light { display: none; }
html[data-theme="light"] .u-theme-toggle .u-theme-icon-light { display: inline-block; }
html[data-theme="light"] .u-theme-toggle .u-theme-icon-dark { display: none; }

.u-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(var(--u-primary-rgb, 231, 76, 60), 0.14);
  border: 1px solid rgba(var(--u-primary-rgb, 231, 76, 60), 0.3);
  color: var(--u-text);
  font-size: 12px;
  font-weight: 700;
}

.u-glass {
  background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.02));
  border: 1px solid var(--u-border);
  border-radius: calc(var(--u-radius, 16px) + 4px);
  backdrop-filter: blur(16px);
}

#u-holiday-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 9998;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  #u-holiday-layer { display: none !important; }
}
html[data-u-motion="reduced"] #u-holiday-layer { display: none !important; }
