/* ==========================================================================
   StatusSphere — "Synthetix Social" design system
   Translated from the Google Stitch project canvas into CSS custom properties
   plus a curated, pre-compiled utility layer.

   Why pre-compiled: the app targets cPanel/Plesk shared hosting where Node is
   usually unavailable. This file is the production stylesheet and needs no
   build step. `tailwind.config.js` + `resources/css/app.css` carry the exact
   same tokens for anyone who wants to rebuild with the real Tailwind pipeline.

   Sections
     1. Tokens
     2. Base / reset
     3. Layout utilities
     4. Spacing utilities
     5. Typography utilities
     6. Colour utilities
     7. Border / radius utilities
     8. Effects (shadow, blur, opacity, transition)
     9. Components (glass, shimmer, cards, buttons, inputs, nav)
    10. Animations
    11. Responsive variants (md:, lg:)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Surfaces — Deep Indigo foundation */
  --surface: #0b1326;
  --surface-dim: #0b1326;
  --surface-bright: #31394d;
  --surface-container-lowest: #060e20;
  --surface-container-low: #131b2e;
  --surface-container: #171f33;
  --surface-container-high: #222a3d;
  --surface-container-highest: #2d3449;
  --surface-variant: #2d3449;
  --background: #0b1326;

  /* Content */
  --on-surface: #dae2fd;
  --on-surface-variant: #c7c4d8;
  --on-background: #dae2fd;
  --inverse-surface: #dae2fd;
  --inverse-on-surface: #283044;

  /* Outlines */
  --outline: #918fa1;
  --outline-variant: #464555;

  /* Primary — Indigo (trust) */
  --primary: #c3c0ff;
  --on-primary: #1d00a5;
  --primary-container: #4f46e5;
  --on-primary-container: #dad7ff;
  --inverse-primary: #4d44e3;
  --primary-fixed: #e2dfff;
  --primary-fixed-dim: #c3c0ff;
  --on-primary-fixed: #0f0069;
  --on-primary-fixed-variant: #3323cc;
  --surface-tint: #c3c0ff;

  /* Secondary — Vibrant Emerald (growth / earnings) */
  --secondary: #4edea3;
  --on-secondary: #003824;
  --secondary-container: #00a572;
  --on-secondary-container: #00311f;
  --secondary-fixed: #6ffbbe;
  --secondary-fixed-dim: #4edea3;
  --on-secondary-fixed: #002113;
  --on-secondary-fixed-variant: #005236;

  /* Tertiary — Radiant Gold (premium / boosted) */
  --tertiary: #ffb95f;
  --on-tertiary: #472a00;
  --tertiary-container: #885500;
  --on-tertiary-container: #ffd4a4;
  --tertiary-fixed: #ffddb8;
  --tertiary-fixed-dim: #ffb95f;
  --on-tertiary-fixed: #2a1700;
  --on-tertiary-fixed-variant: #653e00;

  /* Error — crisp red-orange against the indigo base */
  --error: #ffb4ab;
  --on-error: #690005;
  --error-container: #93000a;
  --on-error-container: #ffdad6;

  /* Brand channel colours for the 1-tap CTAs */
  --whatsapp: #25d366;
  --telegram: #0088cc;

  /* Gold gradient used by premium buttons */
  --gold-from: #f59e0b;
  --gold-to: #d97706;

  /* Spacing — 4px base, 8px rhythm */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --gutter: 16px;
  --container-max: 1280px;
  --feed-max: 640px;

  /* Radii */
  --radius-sm: 0.25rem;
  --radius: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  /* Type */
  --font-display: 'Geist', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  /* Elevation — ultra-soft indigo-tinted glow */
  --shadow-glow: 0 8px 32px rgba(79, 70, 229, 0.18);
  --shadow-glow-sm: 0 4px 14px rgba(79, 70, 229, 0.15);
  --shadow-emerald: 0 4px 20px rgba(78, 222, 163, 0.18);
  --shadow-gold: 0 4px 20px rgba(245, 158, 11, 0.22);
  --shadow-modal: 0 24px 64px rgba(0, 0, 0, 0.55);
}

/* --------------------------------------------------------------------------
   2. Base / reset
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: var(--background);
  color: var(--on-surface);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.has-custom-bg {
  background-image: var(--site-bg-image);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

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

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

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

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

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.2; }

::selection { background: var(--primary-container); color: var(--on-primary-container); }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--outline-variant); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--outline); }

.no-scrollbar { scrollbar-width: none; -ms-overflow-style: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }

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

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  user-select: none;
}
.material-symbols-outlined.fill { font-variation-settings: 'FILL' 1; }

/* --------------------------------------------------------------------------
   3. Layout
   -------------------------------------------------------------------------- */
.block { display: block; }
.inline-block { display: inline-block; }
.inline-flex { display: inline-flex; }
.flex { display: flex; }
.grid { display: grid; }
.hidden { display: none; }
.contents { display: contents; }

.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1 1 0%; }
.flex-none { flex: none; }
.flex-shrink-0 { flex-shrink: 0; }
.grow { flex-grow: 1; }

.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.items-baseline { align-items: baseline; }
.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-start { align-self: flex-start; }
.self-center { align-self: center; }
.self-end { align-self: flex-end; }

.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.col-span-2 { grid-column: span 2 / span 2; }
.col-span-full { grid-column: 1 / -1; }

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.static { position: static; }

.inset-0 { inset: 0; }
.inset-x-0 { left: 0; right: 0; }
.top-0 { top: 0; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.top-2 { top: 8px; }
.right-2 { right: 8px; }
.bottom-4 { bottom: 16px; }
.right-4 { right: 16px; }

.z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }
.z-100 { z-index: 100; }

.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.overflow-x-auto { overflow-x: auto; }
.overflow-y-auto { overflow-y: auto; }
.overflow-visible { overflow: visible; }

.w-full { width: 100%; }
.w-auto { width: auto; }
.w-4 { width: 16px; }
.w-5 { width: 20px; }
.w-6 { width: 24px; }
.w-8 { width: 32px; }
.w-10 { width: 40px; }
.w-12 { width: 48px; }
.w-16 { width: 64px; }
.w-20 { width: 80px; }
.w-24 { width: 96px; }
.w-64 { width: 256px; }
.w-72 { width: 288px; }

.h-full { height: 100%; }
.h-auto { height: auto; }
.h-screen { height: 100vh; }
.h-1 { height: 4px; }
.h-4 { height: 16px; }
.h-5 { height: 20px; }
.h-6 { height: 24px; }
.h-8 { height: 32px; }
.h-10 { height: 40px; }
.h-12 { height: 48px; }
.h-16 { height: 64px; }
.h-20 { height: 80px; }
.h-24 { height: 96px; }

.min-h-screen { min-height: 100vh; }
.min-w-0 { min-width: 0; }
.max-w-full { max-width: 100%; }
.max-w-sm { max-width: 384px; }
.max-w-md { max-width: 448px; }
.max-w-lg { max-width: 512px; }
.max-w-feed { max-width: var(--feed-max); }
.max-w-container { max-width: var(--container-max); }

.mx-auto { margin-left: auto; margin-right: auto; }
.ml-auto { margin-left: auto; }
.mt-auto { margin-top: auto; }

.aspect-square { aspect-ratio: 1 / 1; }
.aspect-video { aspect-ratio: 16 / 9; }
.aspect-story { aspect-ratio: 9 / 16; }

.object-cover { object-fit: cover; }
.object-contain { object-fit: contain; }

.pointer-events-none { pointer-events: none; }
.pointer-events-auto { pointer-events: auto; }
.cursor-pointer { cursor: pointer; }
.cursor-not-allowed { cursor: not-allowed; }
.select-none { user-select: none; }

/* --------------------------------------------------------------------------
   4. Spacing (4px base, 8px rhythm)
   -------------------------------------------------------------------------- */
.gap-xs { gap: var(--space-xs); }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }

.p-xs { padding: var(--space-xs); }
.p-sm { padding: var(--space-sm); }
.p-md { padding: var(--space-md); }
.p-lg { padding: var(--space-lg); }
.p-xl { padding: var(--space-xl); }
.p-0 { padding: 0; }

.px-gutter { padding-left: var(--gutter); padding-right: var(--gutter); }
.px-sm { padding-left: var(--space-sm); padding-right: var(--space-sm); }
.px-md { padding-left: var(--space-md); padding-right: var(--space-md); }
.px-lg { padding-left: var(--space-lg); padding-right: var(--space-lg); }
.px-2 { padding-left: 8px; padding-right: 8px; }
.px-3 { padding-left: 12px; padding-right: 12px; }
.px-4 { padding-left: 16px; padding-right: 16px; }

.py-xs { padding-top: var(--space-xs); padding-bottom: var(--space-xs); }
.py-sm { padding-top: var(--space-sm); padding-bottom: var(--space-sm); }
.py-md { padding-top: var(--space-md); padding-bottom: var(--space-md); }
.py-lg { padding-top: var(--space-lg); padding-bottom: var(--space-lg); }
.py-1 { padding-top: 4px; padding-bottom: 4px; }
.py-2 { padding-top: 8px; padding-bottom: 8px; }
.py-3 { padding-top: 12px; padding-bottom: 12px; }
.py-4 { padding-top: 16px; padding-bottom: 16px; }

.pt-md { padding-top: var(--space-md); }
.pt-lg { padding-top: var(--space-lg); }
.pb-md { padding-bottom: var(--space-md); }
.pb-lg { padding-bottom: var(--space-lg); }
.pb-xl { padding-bottom: var(--space-xl); }
/* Safe-area bottom padding clears the mobile home indicator. */
.pb-nav { padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }

.mb-xs { margin-bottom: var(--space-xs); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mt-xs { margin-top: var(--space-xs); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.space-y-sm > * + * { margin-top: var(--space-sm); }
.space-y-md > * + * { margin-top: var(--space-md); }
.space-y-lg > * + * { margin-top: var(--space-lg); }

.divide-y > * + * { border-top: 1px solid rgba(70, 69, 85, 0.3); }

/* --------------------------------------------------------------------------
   5. Typography
   -------------------------------------------------------------------------- */
.font-display { font-family: var(--font-display); }
.font-body { font-family: var(--font-body); }
.font-mono, .font-data { font-family: var(--font-mono); }

.text-display {
  font-family: var(--font-display);
  font-size: 48px; font-weight: 700; line-height: 1.1; letter-spacing: -0.02em;
}
.text-headline {
  font-family: var(--font-display);
  font-size: 32px; font-weight: 600; line-height: 1.2;
}
.text-headline-sm {
  font-family: var(--font-display);
  font-size: 24px; font-weight: 600; line-height: 1.2;
}
.text-body { font-size: 16px; font-weight: 400; line-height: 1.6; }
.text-body-sm { font-size: 14px; font-weight: 400; line-height: 1.5; }
.text-data {
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 500; line-height: 1; letter-spacing: 0.05em;
}
.text-micro { font-size: 10px; line-height: 1.2; letter-spacing: 0.04em; }
.text-14 { font-size: 14px; }
.text-16 { font-size: 16px; }
.text-18 { font-size: 18px; }
.text-20 { font-size: 20px; }
.text-24 { font-size: 24px; }

.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

.uppercase { text-transform: uppercase; }
.capitalize { text-transform: capitalize; }
.tracking-wide { letter-spacing: 0.05em; }
.tracking-tight { letter-spacing: -0.02em; }
.leading-tight { line-height: 1.2; }
.leading-relaxed { line-height: 1.7; }

.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.break-words { overflow-wrap: anywhere; }
.whitespace-nowrap { white-space: nowrap; }
.whitespace-pre-line { white-space: pre-line; }

.underline { text-decoration: underline; }
.hover\:underline:hover { text-decoration: underline; }

/* Currency figures never jitter while a balance animates. */
.tabular { font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------------------
   6. Colour
   -------------------------------------------------------------------------- */
.text-on-surface { color: var(--on-surface); }
.text-on-surface-variant { color: var(--on-surface-variant); }
.text-outline { color: var(--outline); }
.text-outline-variant { color: var(--outline-variant); }
.text-primary { color: var(--primary); }
.text-primary-container { color: var(--primary-container); }
.text-on-primary-container { color: var(--on-primary-container); }
.text-secondary { color: var(--secondary); }
.text-on-secondary-container { color: var(--on-secondary-container); }
.text-tertiary { color: var(--tertiary); }
.text-on-tertiary-container { color: var(--on-tertiary-container); }
.text-error { color: var(--error); }
.text-white { color: #fff; }
.text-whatsapp { color: var(--whatsapp); }
.text-telegram { color: var(--telegram); }

.bg-background { background-color: var(--background); }
.bg-surface { background-color: var(--surface); }
.bg-surface-container-lowest { background-color: var(--surface-container-lowest); }
.bg-surface-container-low { background-color: var(--surface-container-low); }
.bg-surface-container { background-color: var(--surface-container); }
.bg-surface-container-high { background-color: var(--surface-container-high); }
.bg-surface-container-highest { background-color: var(--surface-container-highest); }
.bg-surface-variant { background-color: var(--surface-variant); }
.bg-surface-bright { background-color: var(--surface-bright); }
.bg-primary { background-color: var(--primary); }
.bg-primary-container { background-color: var(--primary-container); }
.bg-secondary { background-color: var(--secondary); }
.bg-secondary-container { background-color: var(--secondary-container); }
.bg-tertiary { background-color: var(--tertiary); }
.bg-tertiary-container { background-color: var(--tertiary-container); }
.bg-error-container { background-color: var(--error-container); }
.bg-transparent { background-color: transparent; }

/* Tinted fills — the glassmorphic layering the design system calls for */
.bg-primary-10 { background-color: rgba(79, 70, 229, 0.1); }
.bg-primary-20 { background-color: rgba(79, 70, 229, 0.2); }
.bg-secondary-10 { background-color: rgba(78, 222, 163, 0.1); }
.bg-secondary-20 { background-color: rgba(78, 222, 163, 0.2); }
.bg-tertiary-10 { background-color: rgba(255, 185, 95, 0.1); }
.bg-tertiary-20 { background-color: rgba(255, 185, 95, 0.2); }
.bg-error-10 { background-color: rgba(255, 180, 171, 0.12); }
.bg-black-40 { background-color: rgba(0, 0, 0, 0.4); }
.bg-black-60 { background-color: rgba(0, 0, 0, 0.6); }
.bg-scrim { background-color: rgba(11, 19, 38, 0.82); }
.bg-whatsapp-20 { background-color: rgba(37, 211, 102, 0.18); }
.bg-telegram-20 { background-color: rgba(0, 136, 204, 0.18); }

.bg-gold-gradient { background-image: linear-gradient(90deg, var(--gold-from), var(--gold-to)); }
.bg-indigo-gradient { background-image: linear-gradient(135deg, #4f46e5, #7c3aed); }

/* --------------------------------------------------------------------------
   7. Borders & radii
   -------------------------------------------------------------------------- */
.border { border: 1px solid var(--outline-variant); }
.border-0 { border: 0; }
.border-t { border-top: 1px solid var(--outline-variant); }
.border-b { border-bottom: 1px solid var(--outline-variant); }
.border-r { border-right: 1px solid var(--outline-variant); }
.border-2 { border-width: 2px; border-style: solid; }

.border-subtle { border-color: rgba(70, 69, 85, 0.3); }
.border-outline { border-color: var(--outline); }
.border-primary { border-color: var(--primary-container); }
.border-secondary { border-color: var(--secondary); }
.border-tertiary { border-color: var(--tertiary); }
.border-error { border-color: var(--error); }
.border-whatsapp { border-color: rgba(37, 211, 102, 0.5); }
.border-telegram { border-color: rgba(0, 136, 204, 0.5); }
.border-transparent { border-color: transparent; }

.rounded-sm { border-radius: var(--radius-sm); }
.rounded { border-radius: var(--radius); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: var(--radius-full); }
.rounded-t-xl { border-top-left-radius: var(--radius-xl); border-top-right-radius: var(--radius-xl); }

/* --------------------------------------------------------------------------
   8. Effects
   -------------------------------------------------------------------------- */
.shadow-glow { box-shadow: var(--shadow-glow); }
.shadow-glow-sm { box-shadow: var(--shadow-glow-sm); }
.shadow-emerald { box-shadow: var(--shadow-emerald); }
.shadow-gold { box-shadow: var(--shadow-gold); }
.shadow-modal { box-shadow: var(--shadow-modal); }
.shadow-none { box-shadow: none; }

.blur-glow { filter: blur(60px); }
.backdrop { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.backdrop-xl { backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }

.opacity-0 { opacity: 0; }
.opacity-50 { opacity: 0.5; }
.opacity-60 { opacity: 0.6; }
.opacity-80 { opacity: 0.8; }
.opacity-100 { opacity: 1; }

.transition { transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1); }
.transition-colors { transition: background-color 0.25s, border-color 0.25s, color 0.25s; }
.transition-transform { transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1); }

.hover\:scale-105:hover { transform: scale(1.05); }
.hover\:scale-125:hover { transform: scale(1.25); }
.active\:scale-95:active { transform: scale(0.95); }
.active\:scale-90:active { transform: scale(0.9); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --------------------------------------------------------------------------
   9. Components
   -------------------------------------------------------------------------- */

/* Level 2 (Float): semi-transparent glass — nav bars, wallet overlays */
.glass-panel {
  background: rgba(30, 41, 59, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(70, 69, 85, 0.3);
}

.glass-card {
  background: rgba(30, 41, 59, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(51, 65, 85, 0.5);
}

/* Level 3 (Modal): high-contrast glass with a gold hairline */
.glass-modal {
  background: rgba(23, 31, 51, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 185, 95, 0.28);
  box-shadow: var(--shadow-modal);
}

.glass-bar {
  background: rgba(34, 42, 61, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-color: rgba(70, 69, 85, 0.24);
}

/* Ambient background orbs behind auth + wallet screens */
.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  z-index: -1;
  animation: pulse-glow 8s ease-in-out infinite alternate;
}
.bg-orb--indigo {
  top: -12%; left: -10%; width: 52vw; height: 52vw;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.16) 0%, rgba(11, 19, 38, 0) 70%);
}
.bg-orb--emerald {
  bottom: -20%; right: -10%; width: 60vw; height: 60vw;
  background: radial-gradient(circle, rgba(78, 222, 163, 0.08) 0%, rgba(11, 19, 38, 0) 70%);
}

/* Boosted "gold shimmer" ring — the premium signal across the whole app */
.gold-shimmer {
  background: linear-gradient(
    100deg,
    #f59e0b 0%, #ffddb8 20%, #d97706 40%, #f59e0b 60%, #ffddb8 80%, #f59e0b 100%
  );
  background-size: 300% 100%;
  animation: shimmer 3.2s linear infinite;
}

.shimmer-border { position: relative; }
.shimmer-border::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.5), transparent);
  background-size: 200% 100%;
  animation: shimmer 3s infinite linear;
  z-index: -1;
}

/* Story rings */
.ring-organic { padding: 2px; border-radius: var(--radius-full); background: var(--primary-container); }
.ring-seen { padding: 2px; border-radius: var(--radius-full); background: rgba(79, 70, 229, 0.3); }
.ring-boosted { padding: 3px; border-radius: var(--radius-full); }

.avatar-img {
  width: 100%; height: 100%;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 2px solid var(--background);
}

/* Broadcaster ticker */
.ticker-wrap {
  overflow: hidden;
  white-space: nowrap;
  padding: 8px 0;
  background: rgba(23, 31, 51, 0.6);
}
.ticker {
  display: inline-block;
  padding-left: 100%;
  animation: ticker 26s linear infinite;
}
.ticker-wrap:hover .ticker { animation-play-state: paused; }
.ticker > span { display: inline-block; margin-right: 48px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-sm);
  padding: 12px 20px;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 500; letter-spacing: 0.05em;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-primary {
  background: var(--primary-container);
  color: var(--on-primary-container);
  font-weight: 700;
  box-shadow: var(--shadow-glow-sm);
}
.btn-primary:hover:not(:disabled) { filter: brightness(1.12); box-shadow: var(--shadow-glow); }

/* "Growth/Earn" — withdraw, collect earnings */
.btn-growth {
  background: var(--secondary-container);
  color: var(--on-secondary-container);
  font-weight: 700;
  box-shadow: var(--shadow-emerald);
}
.btn-growth:hover:not(:disabled) { background: var(--secondary); }

/* Premium — boost post */
.btn-premium {
  background-image: linear-gradient(90deg, var(--gold-from), var(--gold-to));
  color: #fff; font-weight: 700;
  box-shadow: var(--shadow-gold);
}
.btn-premium:hover:not(:disabled) { filter: brightness(1.08); }

.btn-ghost {
  background: var(--surface-variant);
  color: var(--on-surface-variant);
  border: 1px solid rgba(70, 69, 85, 0.5);
}
.btn-ghost:hover:not(:disabled) { background: var(--surface-bright); color: var(--on-surface); }

.btn-danger { background: rgba(147, 0, 10, 0.25); color: var(--error); border: 1px solid rgba(255, 180, 171, 0.3); }
.btn-danger:hover:not(:disabled) { background: rgba(147, 0, 10, 0.4); }

.btn-whatsapp {
  background: rgba(37, 211, 102, 0.18);
  border: 1px solid rgba(37, 211, 102, 0.5);
  color: var(--whatsapp);
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.15);
}
.btn-whatsapp:hover { background: rgba(37, 211, 102, 0.3); }

.btn-telegram {
  background: rgba(0, 136, 204, 0.18);
  border: 1px solid rgba(0, 136, 204, 0.5);
  color: var(--telegram);
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(0, 136, 204, 0.15);
}
.btn-telegram:hover { background: rgba(0, 136, 204, 0.3); }

.btn-block { width: 100%; }
.btn-sm { padding: 8px 14px; }
.btn-icon { padding: 10px; border-radius: var(--radius-full); }

/* Inputs — dark well with an indigo glow on focus */
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label {
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 500; letter-spacing: 0.05em;
  color: var(--on-surface-variant);
  text-transform: uppercase;
}
.input, .select, .textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--surface-container-lowest);
  border: 1px solid rgba(70, 69, 85, 0.6);
  border-radius: var(--radius);
  color: var(--on-surface);
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input::placeholder, .textarea::placeholder { color: var(--outline); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--primary-container);
  box-shadow: 0 0 0 1px var(--primary-container), 0 0 15px rgba(79, 70, 229, 0.22);
}
.textarea { min-height: 120px; resize: vertical; }
.select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--outline) 50%),
                    linear-gradient(135deg, var(--outline) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 36px;
}
.input-error { border-color: var(--error); }
.field-error { color: var(--error); font-size: 13px; }

.checkbox {
  width: 18px; height: 18px;
  accent-color: var(--primary-container);
  cursor: pointer;
}

/* Toggle switch */
.switch { position: relative; display: inline-block; width: 48px; height: 26px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch-track {
  position: absolute; inset: 0;
  background: var(--surface-container-highest);
  border: 1px solid rgba(70, 69, 85, 0.6);
  border-radius: var(--radius-full);
  transition: background 0.25s, border-color 0.25s;
}
.switch-track::before {
  content: '';
  position: absolute; top: 2px; left: 2px;
  width: 20px; height: 20px;
  background: var(--outline);
  border-radius: 50%;
  transition: transform 0.25s, background 0.25s;
}
.switch input:checked + .switch-track { background: var(--primary-container); border-color: var(--primary-container); }
.switch input:checked + .switch-track::before { transform: translateX(22px); background: #fff; }
.switch input:focus-visible + .switch-track { box-shadow: 0 0 0 2px var(--primary); }

/* Badges & chips */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 500; letter-spacing: 0.05em;
}
.badge-secure { background: var(--surface-container); color: var(--outline); border: 1px solid rgba(70, 69, 85, 0.4); }
.badge-premium { background: rgba(255, 185, 95, 0.14); color: var(--tertiary); border: 1px solid rgba(255, 185, 95, 0.3); }
.badge-earn { background: rgba(78, 222, 163, 0.14); color: var(--secondary); }
.badge-alert { background: rgba(255, 180, 171, 0.14); color: var(--error); }
.badge-info { background: rgba(79, 70, 229, 0.18); color: var(--primary); }

/* Status cards */
.status-card {
  background: var(--surface-container);
  border: 1px solid rgba(70, 69, 85, 0.3);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.status-card--boosted { position: relative; }
.status-card--boosted::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, #f59e0b, transparent);
  background-size: 200% 100%;
  animation: shimmer 3s linear infinite;
  z-index: 2;
}
/* Glass footer separates creator media from platform social/financial data */
.status-card__footer {
  background: rgba(34, 42, 61, 0.4);
  border-top: 1px solid rgba(70, 69, 85, 0.2);
  padding: var(--space-sm) var(--space-md);
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.05em;
  color: var(--outline);
}

/* Text status canvas */
.text-status {
  display: flex; align-items: center; justify-content: center;
  min-height: 260px;
  padding: var(--space-xl) var(--space-lg);
  border-radius: var(--radius-lg);
  font-family: var(--font-display);
  font-size: 24px; font-weight: 600; line-height: 1.35;
  overflow-wrap: anywhere;
}

/* KPI tile */
.stat-tile {
  position: relative;
  overflow: hidden;
  padding: 20px;
  border-radius: var(--radius-xl);
  display: flex; flex-direction: column; justify-content: space-between;
}
.stat-tile__orb {
  position: absolute; top: -32px; right: -32px;
  width: 96px; height: 96px; border-radius: 50%;
  filter: blur(28px);
  transition: transform 0.7s;
}
.stat-tile:hover .stat-tile__orb { transform: scale(1.5); }

/* Segmented story progress */
.progress-track { flex: 1; height: 3px; background: rgba(79, 70, 229, 0.25); border-radius: var(--radius-full); overflow: hidden; }
.progress-fill { height: 100%; background: var(--primary); border-radius: var(--radius-full); width: 0; }

/* Voice waveform */
.waveform { display: flex; align-items: center; gap: 2px; height: 48px; }
.waveform__bar {
  width: 3px;
  min-height: 4px;
  border-radius: 2px;
  background: var(--primary);
  opacity: 0.5;
  transition: opacity 0.2s, background 0.2s;
}
.waveform__bar.is-played { opacity: 1; background: var(--secondary); }

/* Alerts */
.alert {
  display: flex; align-items: flex-start; gap: var(--space-sm);
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid;
  font-size: 14px;
}
.alert-success { background: rgba(78, 222, 163, 0.1); border-color: rgba(78, 222, 163, 0.35); color: var(--secondary); }
.alert-warning { background: rgba(255, 185, 95, 0.1); border-color: rgba(255, 185, 95, 0.35); color: var(--tertiary); }
.alert-error { background: rgba(255, 180, 171, 0.1); border-color: rgba(255, 180, 171, 0.35); color: var(--error); }
.alert-info { background: rgba(79, 70, 229, 0.12); border-color: rgba(79, 70, 229, 0.35); color: var(--primary); }

/* Navigation */
.nav-link {
  display: flex; align-items: center; gap: var(--space-md);
  padding: 12px 16px;
  border-radius: var(--radius-lg);
  color: var(--on-surface-variant);
  transition: all 0.3s;
}
.nav-link:hover { background: rgba(45, 52, 73, 0.4); padding-left: 20px; }
.nav-link.is-active { background: var(--primary-container); color: var(--on-primary-container); font-weight: 700; }
.nav-link.is-active:hover { padding-left: 16px; }

.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: space-around; align-items: center;
  padding: 8px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  background: rgba(45, 52, 73, 0.8);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid rgba(70, 69, 85, 0.2);
  border-top-left-radius: var(--radius-xl);
  border-top-right-radius: var(--radius-xl);
  box-shadow: 0 -4px 20px rgba(79, 70, 229, 0.15);
}
.bottom-nav a {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 4px 16px;
  border-radius: var(--radius-full);
  color: var(--on-surface-variant);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em;
  transition: all 0.2s;
}
.bottom-nav a.is-active { color: var(--primary); background: rgba(79, 70, 229, 0.2); }
.bottom-nav a:active { transform: scale(0.9); }

/* Tables */
.table { width: 100%; border-collapse: collapse; text-align: left; }
.table th {
  padding: 14px 16px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.05em; text-transform: uppercase; color: var(--outline);
  background: rgba(6, 14, 32, 0.3);
  border-bottom: 1px solid rgba(70, 69, 85, 0.2);
}
.table td { padding: 14px 16px; border-bottom: 1px solid rgba(70, 69, 85, 0.16); font-size: 14px; }
.table tbody tr:hover { background: rgba(45, 52, 73, 0.2); }

/* Modal shell */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  background: rgba(11, 19, 38, 0.8);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.modal-panel {
  width: 100%; max-width: 480px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  animation: modal-in 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reaction bar */
.reaction-bar {
  display: flex; justify-content: space-between; align-items: center;
  gap: 4px;
  max-width: 300px; width: 100%;
  margin: 0 auto;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: rgba(34, 42, 61, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(70, 69, 85, 0.3);
}
.reaction-bar button { font-size: 24px; line-height: 1; transition: transform 0.2s; }
.reaction-bar button:hover { transform: scale(1.25); }
.reaction-bar button:active { transform: scale(0.9); }
.reaction-bar button.is-active { transform: scale(1.15); filter: drop-shadow(0 0 8px rgba(255, 185, 95, 0.6)); }

/* Floating emoji burst in the story viewer */
.emoji-float {
  position: absolute;
  bottom: 120px;
  font-size: 28px;
  pointer-events: none;
  animation: float-up 2.2s ease-out forwards;
}

/* Admin dot-grid backdrop */
.dot-grid {
  position: absolute; inset: 0;
  background-image: radial-gradient(var(--primary) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.03;
  pointer-events: none;
}

/* Prose for CMS content */
.prose { color: var(--on-surface-variant); line-height: 1.75; }
.prose h2 { font-size: 26px; margin: 32px 0 12px; color: var(--on-surface); }
.prose h3 { font-size: 20px; margin: 24px 0 10px; color: var(--on-surface); }
.prose p { margin-bottom: 16px; }
.prose ul, .prose ol { margin: 0 0 16px 22px; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--primary); text-decoration: underline; }
.prose img { border-radius: var(--radius-lg); margin: 20px 0; }
.prose blockquote {
  border-left: 3px solid var(--primary-container);
  padding-left: 16px; margin: 20px 0; color: var(--on-surface);
}
.prose code {
  font-family: var(--font-mono); font-size: 13px;
  background: var(--surface-container-lowest);
  padding: 2px 6px; border-radius: 4px;
}

/* Pagination (Laravel Tailwind preset hooks) */
.pagination { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; justify-content: center; margin-top: 24px; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 10px;
  border-radius: var(--radius);
  background: var(--surface-container);
  border: 1px solid rgba(70, 69, 85, 0.3);
  font-family: var(--font-mono); font-size: 12px;
  color: var(--on-surface-variant);
}
.pagination a:hover { background: var(--surface-container-high); color: var(--on-surface); }
.pagination [aria-current='page'] { background: var(--primary-container); color: var(--on-primary-container); border-color: var(--primary-container); }

/* --------------------------------------------------------------------------
   10. Animations
   -------------------------------------------------------------------------- */
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50%      { opacity: 0.65; transform: scale(1.05); }
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes float-up {
  0%   { opacity: 1; transform: translateY(0) scale(0.8); }
  40%  { opacity: 1; transform: translateY(-70px) scale(1.2); }
  100% { opacity: 0; transform: translateY(-190px) scale(0.9); }
}

@keyframes spin { to { transform: rotate(360deg); } }
.animate-spin { animation: spin 1s linear infinite; }

@keyframes soft-pulse { 50% { opacity: 0.45; } }
.animate-pulse { animation: soft-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }

/* --------------------------------------------------------------------------
   11. Responsive variants
   -------------------------------------------------------------------------- */
@media (min-width: 768px) {
  .md\:block { display: block; }
  .md\:flex { display: flex; }
  .md\:grid { display: grid; }
  .md\:hidden { display: none; }
  .md\:flex-row { flex-direction: row; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:ml-72 { margin-left: 288px; }
  .md\:px-0 { padding-left: 0; padding-right: 0; }
  .md\:p-xl { padding: var(--space-xl); }
  .md\:pb-0 { padding-bottom: 0; }
  .md\:text-display { font-size: 48px; letter-spacing: -0.02em; }
  .md\:w-auto { width: auto; }
}

@media (min-width: 1024px) {
  .lg\:block { display: block; }
  .lg\:flex { display: flex; }
  .lg\:grid { display: grid; }
  .lg\:hidden { display: none; }
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .lg\:col-span-2 { grid-column: span 2 / span 2; }
  .lg\:col-span-4 { grid-column: span 4 / span 4; }
  .lg\:col-span-8 { grid-column: span 8 / span 8; }
}

/* Print: strip the chrome, keep the content */
@media print {
  .bottom-nav, .glass-bar, .ticker-wrap, nav, .no-print { display: none !important; }
  body { background: #fff; color: #000; }
}
