/* ═══════════════════════════════════════════════════════════════
   AXIONIX DESIGN SYSTEM v3.0 — Premium Korean Photobooth
   Foundation CSS — Tokens, Reset, Utilities, Animations
   ═══════════════════════════════════════════════════════════════ */

/* ── 1. DESIGN TOKENS ───────────────────────────────────────── */

:root {
  /* ── Color Palette — Warm Pastel Korean Aesthetic ── */

  /* Primary — Soft Rose Pink */
  --color-primary: #FF6FAE;
  --color-primary-hover: #FF52A0;
  --color-primary-active: #E84893;
  --color-primary-light: #FFF0F6;
  --color-primary-subtle: #FFEAF4;
  --color-primary-10: rgba(255, 111, 174, 0.10);
  --color-primary-20: rgba(255, 111, 174, 0.20);
  --color-primary-30: rgba(255, 111, 174, 0.30);

  /* Secondary — Soft Lavender */
  --color-secondary: #A78BFA;
  --color-secondary-hover: #9370F5;
  --color-secondary-active: #7C5CE0;
  --color-secondary-light: #F5F3FF;
  --color-secondary-subtle: #EDE9FE;
  --color-secondary-10: rgba(167, 139, 250, 0.10);
  --color-secondary-20: rgba(167, 139, 250, 0.20);

  /* Accent — Warm Honey */
  --color-accent: #FFD166;
  --color-accent-hover: #FFCA47;
  --color-accent-active: #F5B82E;
  --color-accent-light: #FFFBEB;
  --color-accent-subtle: #FFF8E1;

  /* Tertiary — Soft Mint */
  --color-mint: #6EE7B7;
  --color-mint-light: #ECFDF5;
  --color-mint-subtle: #D1FAE5;

  /* Tertiary — Soft Sky */
  --color-sky: #7DD3FC;
  --color-sky-light: #F0F9FF;
  --color-sky-subtle: #E0F2FE;

  /* Tertiary — Warm Peach */
  --color-peach: #FDBA74;
  --color-peach-light: #FFF7ED;
  --color-peach-subtle: #FFEDD5;

  /* Status Colors */
  --color-success: #34D399;
  --color-success-hover: #10B981;
  --color-success-light: #ECFDF5;
  --color-success-subtle: #D1FAE5;
  --color-success-text: #065F46;

  --color-warning: #FBBF24;
  --color-warning-hover: #F59E0B;
  --color-warning-light: #FFFBEB;
  --color-warning-subtle: #FEF3C7;
  --color-warning-text: #92400E;

  --color-danger: #FB7185;
  --color-danger-hover: #F43F5E;
  --color-danger-light: #FFF1F2;
  --color-danger-subtle: #FFE4E6;
  --color-danger-text: #9F1239;

  --color-info: #60A5FA;
  --color-info-hover: #3B82F6;
  --color-info-light: #EFF6FF;
  --color-info-subtle: #DBEAFE;

  /* ── Surfaces — Warm & Soft ── */
  --bg-page: #FDF8F5;
  --bg-surface: #FFFFFF;
  --bg-elevated: #FFFFFF;
  --bg-subtle: #FAF5F2;
  --bg-muted: #F5EFEB;
  --bg-inset: #F0EAE5;
  --bg-overlay: rgba(30, 20, 40, 0.55);
  --bg-overlay-light: rgba(255, 255, 255, 0.85);

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-bg-strong: rgba(255, 255, 255, 0.88);
  --glass-bg-subtle: rgba(255, 255, 255, 0.45);
  --glass-border: rgba(255, 255, 255, 0.50);
  --glass-blur: blur(20px);
  --glass-blur-strong: blur(32px);

  /* ── Borders ── */
  --border-default: #F0E6E0;
  --border-subtle: #F7F0EC;
  --border-strong: #E5DAD4;
  --border-focus: var(--color-primary);
  --border-focus-ring: 0 0 0 3px rgba(255, 111, 174, 0.20);

  /* ── Text ── */
  --text-primary: #1E1B2E;
  --text-secondary: #6B6580;
  --text-tertiary: #A09AB0;
  --text-quaternary: #C8C4D4;
  --text-inverse: #FFFFFF;
  --text-link: var(--color-primary);
  --text-on-primary: #FFFFFF;

  /* ── Typography ── */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Nunito', 'Inter', -apple-system, sans-serif;
  --font-cute: 'Fredoka', 'Nunito', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', monospace;

  /* Font Sizes */
  --text-2xs: 0.625rem;      /* 10px */
  --text-xs: 0.6875rem;      /* 11px */
  --text-sm: 0.8125rem;      /* 13px */
  --text-base: 0.9375rem;    /* 15px */
  --text-md: 1rem;            /* 16px */
  --text-lg: 1.125rem;        /* 18px */
  --text-xl: 1.3125rem;      /* 21px */
  --text-2xl: 1.5rem;        /* 24px */
  --text-3xl: 1.875rem;      /* 30px */
  --text-4xl: 2.25rem;       /* 36px */
  --text-5xl: 3rem;          /* 48px */
  --text-6xl: 3.75rem;       /* 60px */
  --text-7xl: 4.5rem;        /* 72px */
  --text-8xl: 6rem;          /* 96px */

  /* Line Heights */
  --leading-none: 1;
  --leading-tight: 1.15;
  --leading-snug: 1.3;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  --leading-loose: 2;

  /* Font Weights */
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-extrabold: 800;

  /* Letter Spacing */
  --tracking-tighter: -0.05em;
  --tracking-tight: -0.02em;
  --tracking-normal: 0;
  --tracking-wide: 0.02em;
  --tracking-wider: 0.05em;
  --tracking-widest: 0.1em;

  /* ── Spacing Scale ── */
  --space-0: 0;
  --space-px: 1px;
  --space-0-5: 2px;
  --space-1: 4px;
  --space-1-5: 6px;
  --space-2: 8px;
  --space-2-5: 10px;
  --space-3: 12px;
  --space-3-5: 14px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 32px;
  --space-9: 36px;
  --space-10: 40px;
  --space-11: 44px;
  --space-12: 48px;
  --space-14: 56px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;

  /* ── Border Radius — Soft & Rounded ── */
  --radius-none: 0;
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-3xl: 28px;
  --radius-4xl: 36px;
  --radius-full: 9999px;

  /* ── Shadows — Soft & Warm ── */
  --shadow-xs: 0 1px 2px rgba(30, 27, 46, 0.03);
  --shadow-sm: 0 2px 8px rgba(30, 27, 46, 0.04), 0 1px 2px rgba(30, 27, 46, 0.02);
  --shadow-md: 0 4px 16px rgba(30, 27, 46, 0.06), 0 2px 4px rgba(30, 27, 46, 0.02);
  --shadow-lg: 0 8px 32px rgba(30, 27, 46, 0.08), 0 4px 8px rgba(30, 27, 46, 0.03);
  --shadow-xl: 0 16px 48px rgba(30, 27, 46, 0.10), 0 8px 16px rgba(30, 27, 46, 0.04);
  --shadow-2xl: 0 24px 64px rgba(30, 27, 46, 0.14), 0 12px 24px rgba(30, 27, 46, 0.05);
  --shadow-inner: inset 0 2px 4px rgba(30, 27, 46, 0.04);

  /* Colored Glow Shadows */
  --shadow-primary: 0 8px 32px rgba(255, 111, 174, 0.18);
  --shadow-primary-lg: 0 16px 48px rgba(255, 111, 174, 0.25);
  --shadow-primary-glow: 0 0 24px rgba(255, 111, 174, 0.20);
  --shadow-secondary: 0 8px 32px rgba(167, 139, 250, 0.18);
  --shadow-secondary-lg: 0 16px 48px rgba(167, 139, 250, 0.25);
  --shadow-accent: 0 8px 32px rgba(255, 209, 102, 0.20);
  --shadow-success: 0 8px 32px rgba(52, 211, 153, 0.20);

  /* Card shadows */
  --shadow-card: 0 2px 12px rgba(30, 27, 46, 0.05), 0 1px 3px rgba(30, 27, 46, 0.02);
  --shadow-card-hover: 0 12px 40px rgba(30, 27, 46, 0.10), 0 4px 12px rgba(30, 27, 46, 0.04);
  --shadow-card-float: 0 20px 60px rgba(30, 27, 46, 0.12), 0 8px 20px rgba(30, 27, 46, 0.05);

  /* ── Transitions ── */
  --ease-default: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --ease-smooth: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-elastic: cubic-bezier(0.175, 0.885, 0.32, 1.275);

  --duration-instant: 75ms;
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --duration-slow: 400ms;
  --duration-slower: 600ms;
  --duration-slowest: 1000ms;

  /* ── Z-Index Scale ── */
  --z-below: -1;
  --z-base: 0;
  --z-raised: 1;
  --z-dropdown: 10;
  --z-sticky: 20;
  --z-overlay: 30;
  --z-modal: 40;
  --z-popover: 50;
  --z-toast: 60;
  --z-tooltip: 70;
  --z-max: 9999;

  /* ── Layout ── */
  --sidebar-width: 272px;
  --sidebar-collapsed: 72px;
  --header-height: 64px;
  --content-max-width: 1320px;

  /* ── Gradient Presets ── */
  --gradient-primary: linear-gradient(135deg, #FF6FAE, #A78BFA);
  --gradient-primary-subtle: linear-gradient(135deg, #FFF0F6, #F5F3FF);
  --gradient-warm: linear-gradient(135deg, #FF6FAE, #FFD166);
  --gradient-cool: linear-gradient(135deg, #A78BFA, #7DD3FC);
  --gradient-sunset: linear-gradient(135deg, #FB7185, #FBBF24);
  --gradient-mint: linear-gradient(135deg, #6EE7B7, #7DD3FC);
  --gradient-page: linear-gradient(180deg, #FDF8F5 0%, #FFF0F6 50%, #F5F3FF 100%);
  --gradient-page-warm: linear-gradient(135deg, #FDF8F5, #FFF0F6, #FFFBEB);
  --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.8), rgba(255,255,255,0.4));
}


/* ── DARK THEME (Admin) ───────────────────────────────────── */

[data-theme="dark"],
.theme-dark {
  --bg-page: #0C0A14;
  --bg-surface: #151221;
  --bg-elevated: #1A1630;
  --bg-subtle: #1E1A2E;
  --bg-muted: #252140;
  --bg-inset: #110E1C;
  --bg-overlay: rgba(0, 0, 0, 0.65);
  --bg-overlay-light: rgba(21, 18, 33, 0.90);

  --glass-bg: rgba(21, 18, 33, 0.72);
  --glass-bg-strong: rgba(21, 18, 33, 0.88);
  --glass-bg-subtle: rgba(21, 18, 33, 0.45);
  --glass-border: rgba(255, 255, 255, 0.08);

  --border-default: rgba(255, 255, 255, 0.08);
  --border-subtle: rgba(255, 255, 255, 0.05);
  --border-strong: rgba(255, 255, 255, 0.12);

  --text-primary: #F0EDF5;
  --text-secondary: #9B95AD;
  --text-tertiary: #6B6580;
  --text-quaternary: #4A4560;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2), 0 1px 2px rgba(0, 0, 0, 0.15);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.25), 0 2px 4px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3), 0 4px 8px rgba(0, 0, 0, 0.2);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.35), 0 8px 16px rgba(0, 0, 0, 0.2);
  --shadow-2xl: 0 24px 64px rgba(0, 0, 0, 0.45);
  --shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.15);

  --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.2), 0 1px 3px rgba(0, 0, 0, 0.15);
  --shadow-card-hover: 0 12px 40px rgba(0, 0, 0, 0.3), 0 4px 12px rgba(0, 0, 0, 0.2);
  --shadow-card-float: 0 20px 60px rgba(0, 0, 0, 0.35);

  --gradient-page: linear-gradient(180deg, #0C0A14 0%, #151221 100%);
}


/* ── 2. CSS RESET ───────────────────────────────────────────── */

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

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text-primary);
  background-color: var(--bg-page);
  min-height: 100vh;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
  font-weight: var(--weight-bold);
}

p {
  overflow-wrap: break-word;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* Remove default spinner from number inputs */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type="number"] { -moz-appearance: textfield; }


/* ── 3. TYPOGRAPHY SCALE ────────────────────────────────────── */

.text-2xs { font-size: var(--text-2xs); line-height: var(--leading-normal); }
.text-xs { font-size: var(--text-xs); line-height: var(--leading-normal); }
.text-sm { font-size: var(--text-sm); line-height: var(--leading-normal); }
.text-base { font-size: var(--text-base); line-height: var(--leading-normal); }
.text-md { font-size: var(--text-md); line-height: var(--leading-normal); }
.text-lg { font-size: var(--text-lg); line-height: var(--leading-snug); }
.text-xl { font-size: var(--text-xl); line-height: var(--leading-snug); }
.text-2xl { font-size: var(--text-2xl); line-height: var(--leading-tight); }
.text-3xl { font-size: var(--text-3xl); line-height: var(--leading-tight); }
.text-4xl { font-size: var(--text-4xl); line-height: var(--leading-tight); }
.text-5xl { font-size: var(--text-5xl); line-height: var(--leading-none); }

/* Heading styles — Premium Display */
.heading-1 {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: var(--weight-extrabold);
  line-height: var(--leading-none);
  letter-spacing: var(--tracking-tight);
  color: var(--text-primary);
}

.heading-2 {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--text-primary);
}

.heading-3 {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  color: var(--text-primary);
}

.heading-4 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-snug);
  color: var(--text-primary);
}

.heading-5 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-snug);
  color: var(--text-primary);
}

.heading-6 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-snug);
  color: var(--text-primary);
}

/* Cute heading (Fredoka) — for customer-facing fun titles */
.heading-cute {
  font-family: var(--font-cute);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
}

.overline {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.caption {
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
}

.body-sm { font-size: var(--text-sm); color: var(--text-secondary); }
.body { font-size: var(--text-base); color: var(--text-primary); }
.body-lg { font-size: var(--text-lg); color: var(--text-primary); }

.label {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-primary);
  display: block;
  margin-bottom: var(--space-1-5);
}

/* Text colors */
.text-primary { color: var(--text-primary) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-tertiary { color: var(--text-tertiary) !important; }
.text-inverse { color: var(--text-inverse) !important; }
.text-success { color: var(--color-success-text) !important; }
.text-danger { color: var(--color-danger-text) !important; }
.text-warning { color: var(--color-warning-text) !important; }
.text-accent { color: var(--color-primary) !important; }

/* Text alignment */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* Font weight */
.font-regular { font-weight: var(--weight-regular); }
.font-medium { font-weight: var(--weight-medium); }
.font-semibold { font-weight: var(--weight-semibold); }
.font-bold { font-weight: var(--weight-bold); }
.font-extrabold { font-weight: var(--weight-extrabold); }

/* Truncation */
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Gradient text */
.text-gradient-primary {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-warm {
  background: var(--gradient-warm);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-cool {
  background: var(--gradient-cool);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}


/* ── 4. UTILITY CLASSES ─────────────────────────────────────── */

/* Display */
.hidden { display: none !important; }
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }

/* Flex utilities */
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }
.flex-shrink-0 { flex-shrink: 0; }
.flex-grow { flex-grow: 1; }
.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.items-stretch { align-items: stretch; }
.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }
.self-center { align-self: center; }
.self-end { align-self: flex-end; }

/* Gap */
.gap-0-5 { gap: var(--space-0-5); }
.gap-1 { gap: var(--space-1); }
.gap-1-5 { gap: var(--space-1-5); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-5 { gap: var(--space-5); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }
.gap-10 { gap: var(--space-10); }
.gap-12 { gap: var(--space-12); }

/* Spacing (margin & padding) */
.m-0 { margin: 0; }
.m-auto { margin: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mt-auto { margin-top: auto; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-5); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.ml-auto { margin-left: auto; }
.mr-auto { margin-right: auto; }
.my-2 { margin-top: var(--space-2); margin-bottom: var(--space-2); }
.my-4 { margin-top: var(--space-4); margin-bottom: var(--space-4); }

.p-0 { padding: 0; }
.p-1 { padding: var(--space-1); }
.p-2 { padding: var(--space-2); }
.p-3 { padding: var(--space-3); }
.p-4 { padding: var(--space-4); }
.p-5 { padding: var(--space-5); }
.p-6 { padding: var(--space-6); }
.p-8 { padding: var(--space-8); }
.p-10 { padding: var(--space-10); }
.px-2 { padding-left: var(--space-2); padding-right: var(--space-2); }
.px-3 { padding-left: var(--space-3); padding-right: var(--space-3); }
.px-4 { padding-left: var(--space-4); padding-right: var(--space-4); }
.px-5 { padding-left: var(--space-5); padding-right: var(--space-5); }
.px-6 { padding-left: var(--space-6); padding-right: var(--space-6); }
.py-1 { padding-top: var(--space-1); padding-bottom: var(--space-1); }
.py-2 { padding-top: var(--space-2); padding-bottom: var(--space-2); }
.py-3 { padding-top: var(--space-3); padding-bottom: var(--space-3); }
.py-4 { padding-top: var(--space-4); padding-bottom: var(--space-4); }
.py-6 { padding-top: var(--space-6); padding-bottom: var(--space-6); }

/* Width & Height */
.w-full { width: 100%; }
.h-full { height: 100%; }
.min-h-screen { min-height: 100vh; }
.h-screen { height: 100vh; }
.w-screen { width: 100vw; }
.max-w-xs { max-width: 360px; }
.max-w-sm { max-width: 480px; }
.max-w-md { max-width: 640px; }
.max-w-lg { max-width: 768px; }
.max-w-xl { max-width: 960px; }
.max-w-2xl { max-width: 1280px; }
.max-w-3xl { max-width: 1440px; }

/* Position */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }

/* Overflow */
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.overflow-y-auto { overflow-y: auto; }
.overflow-x-hidden { overflow-x: hidden; }

/* Border radius */
.rounded-xs { border-radius: var(--radius-xs); }
.rounded-sm { border-radius: var(--radius-sm); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-2xl { border-radius: var(--radius-2xl); }
.rounded-3xl { border-radius: var(--radius-3xl); }
.rounded-4xl { border-radius: var(--radius-4xl); }
.rounded-full { border-radius: var(--radius-full); }

/* Opacity */
.opacity-0 { opacity: 0; }
.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }
.opacity-100 { opacity: 1; }

/* Pointer events */
.pointer-events-none { pointer-events: none; }
.select-none { user-select: none; }
.cursor-pointer { cursor: pointer; }
.cursor-default { cursor: default; }

/* White-space */
.whitespace-nowrap { white-space: nowrap; }


/* ── 5. FOCUS & ACCESSIBILITY ───────────────────────────────── */

/* Premium focus ring */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

:focus:not(:focus-visible) {
  outline: none;
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}


/* ── 6. SCROLLBAR STYLING ───────────────────────────────────── */

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--border-default);
  border-radius: var(--radius-full);
  transition: background var(--duration-fast) var(--ease-default);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-tertiary);
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--border-default) transparent;
}


/* ── 7. SELECTION ───────────────────────────────────────────── */

::selection {
  background: var(--color-primary-20);
  color: var(--text-primary);
}


/* ── 8. KEYFRAME ANIMATIONS ─────────────────────────────────── */

/* Fade In */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Fade In Up */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Fade In Down */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Fade In Scale (Spring) */
@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

/* Slide In Right */
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(24px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Slide In Left */
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-24px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Scale In (Spring bounce) */
@keyframes scaleIn {
  0% { opacity: 0; transform: scale(0.88); }
  50% { opacity: 1; transform: scale(1.03); }
  100% { opacity: 1; transform: scale(1); }
}

/* Bounce Pop */
@keyframes bouncePop {
  0% { transform: scale(1); }
  30% { transform: scale(1.1); }
  60% { transform: scale(0.96); }
  100% { transform: scale(1); }
}

/* Button Press (Spring) */
@keyframes buttonPress {
  0% { transform: scale(1); }
  50% { transform: scale(0.95); }
  100% { transform: scale(1); }
}

/* Gentle Float */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Gentle Float with slight rotation */
@keyframes floatRotate {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-8px) rotate(1.5deg); }
  50% { transform: translateY(-12px) rotate(0deg); }
  75% { transform: translateY(-5px) rotate(-1.5deg); }
}

/* Float with horizontal sway */
@keyframes floatSway {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(5px, -10px) rotate(2deg); }
  50% { transform: translate(-3px, -16px) rotate(-1deg); }
  75% { transform: translate(4px, -8px) rotate(1.5deg); }
}

/* Pulse */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Pulse Scale */
@keyframes pulseScale {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Pulse Glow (for status dots) */
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 var(--color-primary-30); }
  50% { box-shadow: 0 0 0 8px transparent; }
}

/* Dot Pulse (for loading) */
@keyframes dotPulse {
  0%, 80%, 100% { transform: scale(0); opacity: 0; }
  40% { transform: scale(1); opacity: 1; }
}

/* Shimmer (premium skeleton loading) */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Spin */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Sparkle */
@keyframes sparkle {
  0%, 100% { opacity: 0; transform: scale(0) rotate(0deg); }
  50% { opacity: 1; transform: scale(1) rotate(180deg); }
}

/* Sparkle twinkle */
@keyframes twinkle {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* Confetti fall */
@keyframes confettiFall {
  0% { transform: translateY(-100vh) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

/* Countdown number */
@keyframes countdownPop {
  0% { opacity: 0; transform: scale(2.5); }
  20% { opacity: 1; transform: scale(0.85); }
  40% { transform: scale(1.08); }
  60% { transform: scale(0.97); }
  80% { transform: scale(1); }
  100% { opacity: 0; transform: scale(0.7); }
}

/* Shake (for errors) */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-4px); }
  20%, 40%, 60%, 80% { transform: translateX(4px); }
}

/* Slide up and fade out */
@keyframes slideUpOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-16px); }
}

/* Progress bar fill */
@keyframes progressFill {
  from { width: 0%; }
  to { width: 100%; }
}

/* Progress bar stripe */
@keyframes progressStripe {
  0% { background-position: 0 0; }
  100% { background-position: 40px 0; }
}

/* Gradient flow */
@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Heart float (for thank-you pages) */
@keyframes heartFloat {
  0% { opacity: 1; transform: translateY(0) scale(1); }
  50% { opacity: 0.8; transform: translateY(-40px) scale(1.1); }
  100% { opacity: 0; transform: translateY(-80px) scale(0.5); }
}

/* Bounce in (for modals) */
@keyframes bounceIn {
  0% { opacity: 0; transform: scale(0.85); }
  40% { opacity: 1; transform: scale(1.05); }
  70% { transform: scale(0.98); }
  100% { transform: scale(1); }
}

/* Slide in from bottom (for toasts) */
@keyframes slideInBottom {
  from { opacity: 0; transform: translateY(100%); }
  to { opacity: 1; transform: translateY(0); }
}

/* Wobble (cute interaction) */
@keyframes wobble {
  0%, 100% { transform: rotate(0deg); }
  15% { transform: rotate(-3deg); }
  30% { transform: rotate(2.5deg); }
  45% { transform: rotate(-2deg); }
  60% { transform: rotate(1.5deg); }
  75% { transform: rotate(-1deg); }
}

/* Ring expand (for selection) */
@keyframes ringExpand {
  0% { box-shadow: 0 0 0 0 var(--color-primary-30); }
  100% { box-shadow: 0 0 0 6px transparent; }
}


/* ── 9. ANIMATION UTILITY CLASSES ───────────────────────────── */

.animate-fade-in { animation: fadeIn var(--duration-normal) var(--ease-out) both; }
.animate-fade-in-up { animation: fadeInUp var(--duration-slow) var(--ease-out) both; }
.animate-fade-in-down { animation: fadeInDown var(--duration-slow) var(--ease-out) both; }
.animate-fade-in-scale { animation: fadeInScale var(--duration-slow) var(--ease-spring) both; }
.animate-slide-in-right { animation: slideInRight var(--duration-slow) var(--ease-out) both; }
.animate-slide-in-left { animation: slideInLeft var(--duration-slow) var(--ease-out) both; }
.animate-scale-in { animation: scaleIn var(--duration-slow) var(--ease-spring) both; }
.animate-bounce-pop { animation: bouncePop var(--duration-slow) var(--ease-spring) both; }
.animate-bounce-in { animation: bounceIn var(--duration-slower) var(--ease-spring) both; }
.animate-float { animation: float 4s var(--ease-in-out) infinite; }
.animate-float-rotate { animation: floatRotate 6s var(--ease-in-out) infinite; }
.animate-float-sway { animation: floatSway 7s var(--ease-in-out) infinite; }
.animate-pulse { animation: pulse 2s var(--ease-in-out) infinite; }
.animate-pulse-scale { animation: pulseScale 2s var(--ease-in-out) infinite; }
.animate-pulse-glow { animation: pulseGlow 2s var(--ease-in-out) infinite; }
.animate-spin { animation: spin 1s linear infinite; }
.animate-wobble { animation: wobble 0.8s var(--ease-spring) both; }
.animate-shimmer {
  background: linear-gradient(90deg, var(--bg-subtle) 25%, var(--bg-muted) 50%, var(--bg-subtle) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s var(--ease-in-out) infinite;
}

/* Staggered animation delays */
.delay-0 { animation-delay: 0ms; }
.delay-1 { animation-delay: 50ms; }
.delay-2 { animation-delay: 100ms; }
.delay-3 { animation-delay: 150ms; }
.delay-4 { animation-delay: 200ms; }
.delay-5 { animation-delay: 250ms; }
.delay-6 { animation-delay: 300ms; }
.delay-7 { animation-delay: 350ms; }
.delay-8 { animation-delay: 400ms; }
.delay-9 { animation-delay: 500ms; }
.delay-10 { animation-delay: 600ms; }


/* ── 10. SKELETON LOADING ───────────────────────────────────── */

.skeleton {
  background: linear-gradient(
    90deg,
    var(--bg-subtle) 25%,
    var(--bg-muted) 50%,
    var(--bg-subtle) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s var(--ease-in-out) infinite;
  border-radius: var(--radius-md);
  color: transparent !important;
  pointer-events: none;
  user-select: none;
}

.skeleton * { visibility: hidden; }

.skeleton-text {
  height: 1em;
  width: 100%;
  margin-bottom: var(--space-2);
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg, var(--bg-subtle) 25%, var(--bg-muted) 50%, var(--bg-subtle) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s var(--ease-in-out) infinite;
}

.skeleton-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--bg-subtle) 25%, var(--bg-muted) 50%, var(--bg-subtle) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s var(--ease-in-out) infinite;
}

.skeleton-card {
  height: 200px;
  border-radius: var(--radius-xl);
  background: linear-gradient(90deg, var(--bg-subtle) 25%, var(--bg-muted) 50%, var(--bg-subtle) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s var(--ease-in-out) infinite;
}

.skeleton-circle {
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--bg-subtle) 25%, var(--bg-muted) 50%, var(--bg-subtle) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s var(--ease-in-out) infinite;
}


/* ── 11. TRANSITIONS ────────────────────────────────────────── */

.transition-all {
  transition: all var(--duration-normal) var(--ease-default);
}

.transition-colors {
  transition: color var(--duration-normal) var(--ease-default),
              background-color var(--duration-normal) var(--ease-default),
              border-color var(--duration-normal) var(--ease-default);
}

.transition-transform {
  transition: transform var(--duration-normal) var(--ease-spring);
}

.transition-shadow {
  transition: box-shadow var(--duration-normal) var(--ease-default);
}

.transition-opacity {
  transition: opacity var(--duration-normal) var(--ease-default);
}


/* ── 12. DECORATIVE BACKGROUNDS ─────────────────────────────── */

/* Warm gradient page background */
.bg-gradient-page {
  background: var(--gradient-page);
}

/* Subtle dot pattern overlay */
.bg-dots {
  background-image: radial-gradient(circle, var(--border-default) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Subtle grid pattern */
.bg-grid {
  background-image:
    linear-gradient(var(--border-subtle) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-subtle) 1px, transparent 1px);
  background-size: 40px 40px;
}
