/* ============================================
   RESORT APP DESIGN SYSTEM
   Apple-Style Glassmorphism
   Adapted from Evolving AI Systems
   visionOS / iOS / macOS material language
   ============================================ */

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

/* Inter 4 variable (self-hosted): weight axis 100-900 plus optical sizing,
   so large titles render tight/display-like and small UI text stays open. */
@font-face {
  font-family: 'InterVariable';
  src: url('/fonts/InterVariable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* ── Typography scale (the only sizes allowed in UI chrome) ── */
  --font-stack: 'InterVariable', -apple-system, BlinkMacSystemFont, 'Segoe UI',
    Roboto, Helvetica, Arial, sans-serif;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fs-display: 40px;  --lh-display: 48px;
  --fs-page: 32px;     --lh-page: 38px;
  --fs-panel: 24px;    --lh-panel: 30px;
  --fs-section: 20px;  --lh-section: 26px;
  --fs-card: 16px;     --lh-card: 22px;
  --fs-body: 16px;     --lh-body: 24px;
  --fs-label: 14px;    --lh-label: 20px;
  --fs-caption: 12px;  --lh-caption: 16px;
  --fs-micro: 11px;    --lh-micro: 14px;

  /* ── Spacing scale ── */
  --space-4: 4px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-24: 24px;
  --space-32: 32px;
  --space-48: 48px;
  --space-64: 64px;

  /* ── Surfaces ── */
  --surface-0: #E7E9EE; /* app background — visibly deeper than cards */
  --surface-1: #FBFBFC; /* content surface — soft paper, never pure white */
  --surface-2: #FDFDFE; /* elevated panel; pair with --shadow-2 */

  /* Atmospheric background deeper warm tone (legacy; prefer --surface-0) */
  --canvas: #A8C2F3;

  /* ── Liquid glass material ── */
  --glass-1-bg: rgba(255, 255, 255, 0.65);   /* nav / toolbars */
  --glass-1-blur: 20px;
  --glass-2-bg: rgba(255, 255, 255, 0.72);   /* popovers / overlays */
  --glass-2-blur: 28px;
  --glass-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  --overlay-scrim: rgba(0, 0, 0, 0.32);
  --blur-sm: 12px;
  --blur-md: 20px;
  --blur-lg: 28px;
  /* Legacy glass aliases (values re-pointed to the calmer recipe) */
  --glass-bg: var(--glass-1-bg);
  --glass-bg-hover: rgba(255, 255, 255, 0.78);
  --glass-bg-strong: rgba(255, 255, 255, 0.92);
  --glass-border: rgba(255, 255, 255, 0.35);
  --glass-highlight: rgba(255, 255, 255, 0.8);
  --glass-blur: var(--blur-md);
  --glass-saturate: 1.4;
  --admin-glass-inner: rgba(255, 255, 255, 0.55);

  /* Intense blue accent (reference: vivid elements popping on glass) */
  --accent: #2F6BFF;
  --accent-hover: #1F55E0;
  --accent-tint: rgba(47, 107, 255, 0.12);
  --accent-glow: rgba(47, 107, 255, 0.45);
  --accent-rgb: 47, 107, 255;
  /* Intense orange counterpart for warm accent elements */
  --accent-orange: #F97316;
  --accent-orange-glow: rgba(249, 115, 22, 0.45);
  --accent-color: var(--accent);
  --primary: var(--accent);

  /* Secondary liquid tones — DEPRECATED: use --status-* / --accent instead.
     Kept defined for existing rules only; do not use in new CSS. */
  --cyan: #0891B2;
  --sky: #0EA5E9;
  --orange: #EA580C;
  --coral: #DC2626;
  --blue: var(--accent);
  --green: #16A34A;
  --amber: #B45309;

  /* Semantic status tokens (Wave 2) — components express meaning, not hue.
     New code uses these; raw tones above stay for existing rules. */
  --status-ok: #1A7F4B;
  --status-warn: #B25E09;
  --status-danger: #CE2C31;
  --status-info: #0E7490;
  --status-ok-tint: #E7F4EC;
  --status-warn-tint: #FBF0E0;
  --status-danger-tint: #FDEBEC;
  --status-info-tint: #E3F2F7;
  --status-warning-border: rgba(234, 88, 12, 0.35);
  --semantic-dirty: #B45309;
  --success: var(--status-ok);
  --danger: var(--status-danger);

  /* Surface tokens (Wave 2) */
  --surface-base: var(--canvas);
  --surface-raised: var(--glass-bg);
  --surface-overlay: rgba(255, 255, 255, 0.92);

  /* Density variables (Wave 2): standard by default; body[data-density]
     switches the scale (compact for dense staff tables, guest for touch). */
  --density-pad-y: 12px;
  --density-pad-x: 18px;
  --density-gap: 12px;
  --density-row-h: 44px;

  /* Text hierarchy dark on light — Apple neutral family, never pure black.
     Tertiary is for 12px metadata/placeholders only, never functional labels. */
  --text-primary: #111318;
  --text-secondary: #43474F;
  --text-tertiary: #787C85;
  --text-quaternary: #A8ACB4;
  --text-muted: var(--text-tertiary);
  /* Meta / supporting lines on frosted glass (readability between secondary & tertiary) */
  --text-meta-on-glass: #565A63;

  /* ── Borders ── */
  --border-light: rgba(0, 0, 0, 0.08);
  --border-subtle: rgba(0, 0, 0, 0.06);

  /* ── Soft tactility (neumorphism blend): controls only, never panels.
     Rest = gently extruded; pressed = shallow inset. ── */
  --soft-raise:
    0 2px 4px rgba(70, 60, 40, 0.12),
    0 6px 14px rgba(70, 60, 40, 0.12),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.95),
    inset 0 -2px 3px rgba(70, 60, 40, 0.08);
  --soft-raise-lg:
    0 4px 8px rgba(70, 60, 40, 0.14),
    0 12px 24px rgba(70, 60, 40, 0.16),
    inset 0 1.5px 0 rgba(255, 255, 255, 1),
    inset 0 -2px 3px rgba(70, 60, 40, 0.08);
  --soft-inset:
    inset 2px 3px 8px rgba(70, 60, 40, 0.20),
    inset -1px -2px 4px rgba(255, 255, 255, 0.85);
  --soft-well:
    inset 1px 2px 5px rgba(70, 60, 40, 0.10),
    inset 0 0 1px rgba(70, 60, 40, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.8);

  /* ── Elevation: 3 levels + none. Use spacing/borders before shadows. ── */
  --shadow-1: 0 1px 2px rgba(16, 24, 40, 0.05), 0 2px 8px rgba(16, 24, 40, 0.05);
  --shadow-2: 0 2px 4px rgba(16, 24, 40, 0.06), 0 8px 24px rgba(16, 24, 40, 0.10);
  --shadow-3: 0 8px 16px rgba(16, 24, 40, 0.10), 0 24px 48px rgba(16, 24, 40, 0.16);
  --shadow-sm: var(--shadow-1);
  --shadow-md: var(--shadow-2);
  --shadow-lg: var(--shadow-3);

  /* ── Z-index scale ── */
  --z-content: 1;
  --z-sticky: 100;
  --z-nav: 1000;
  --z-popover: 1100;
  --z-overlay: 1200;
  --z-modal: 1300;
  --z-toast: 1400;
  
  /* Inner glow simulates glass thickness on light */
  --inner-glow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    inset 0 -1px 0 rgba(255, 255, 255, 0.4),
    inset 1px 0 0 rgba(255, 255, 255, 0.5),
    inset -1px 0 0 rgba(255, 255, 255, 0.5);

  /* Layout */
  --max-w: 960px;
  --max-w-sm: 640px;

  /* ── Radius scale ── */
  --radius-6: 6px;
  --radius-8: 8px;
  --radius-12: 12px;
  --radius-16: 16px;
  --radius-20: 20px;
  --radius-24: 24px;
  --pill: 999px;
  /* Legacy radius aliases */
  --radius: 20px;
  --radius-s: 14px;
  --radius-m: 12px;
  --radius-sm: 8px;
  --radius-xs: 10px;

  /* Motion */
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-xs: 100ms;
  --dur-sm: 160ms;
  --dur-md: 240ms;
  --dur-lg: 320ms;
  --dur: var(--dur-md);
}

/* Density scales (Wave 2). Opt-in per page via <body data-density="…">. */
body[data-density='compact'] {
  --density-pad-y: 8px;
  --density-pad-x: 14px;
  --density-gap: 8px;
  --density-row-h: 36px;
}

body[data-density='guest'] {
  --density-pad-y: 16px;
  --density-pad-x: 20px;
  --density-gap: 16px;
  --density-row-h: 52px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-stack);
  font-optical-sizing: auto;
  font-feature-settings: 'liga' 1, 'calt' 1;
  font-weight: var(--fw-regular);
  letter-spacing: normal;
  color: var(--text-primary);
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
  background: linear-gradient(165deg, #C7D8F8 0%, #A8C2F3 45%, #8FACEE 100%);
  position: relative;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }

/* ============================================
   BACKGROUND MESH ambient colour visible
   through the glass cards
   ============================================ */

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

/* Static, quiet ambient wash. Motion must explain change, not decorate. */
.mesh-gradient {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 1;
}

.mesh-1 {
  width: 70vw; height: 70vw;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.55) 0%, rgba(190, 212, 255, 0.22) 45%, transparent 68%);
  top: -30%; left: -20%;
}

.mesh-2 {
  width: 65vw; height: 65vw;
  background: radial-gradient(circle, rgba(47, 107, 255, 0.50) 0%, rgba(47, 107, 255, 0.20) 45%, transparent 68%);
  top: 40%; right: -25%;
}

.mesh-3 {
  width: 55vw; height: 55vw;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.50) 0%, rgba(249, 115, 22, 0.20) 45%, transparent 66%);
  bottom: -20%; left: 5%;
}

.mesh-4 {
  width: 55vw; height: 55vw;
  background: radial-gradient(circle, rgba(30, 64, 175, 0.42) 0%, rgba(30, 64, 175, 0.16) 45%, transparent 68%);
  bottom: 10%; right: 0%;
}

.mesh-5 {
  width: 50vw; height: 50vw;
  background: radial-gradient(circle, rgba(147, 183, 255, 0.38) 0%, rgba(147, 183, 255, 0.12) 42%, transparent 62%);
  top: 15%; left: 25%;
}

/* ============================================
   GLASS MATERIAL
   ============================================ */

.glass-card {
  position: relative;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(28px) saturate(1.55);
  -webkit-backdrop-filter: blur(28px) saturate(1.55);
  border-radius: var(--radius);
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  border-top-color: rgba(255, 255, 255, 1);
  box-shadow:
    0 24px 60px rgba(42, 74, 165, 0.26),
    0 6px 18px rgba(42, 74, 165, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transition: background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  overflow: hidden;
}

/* Single restrained specular highlight; no decorative color tints */
.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.28) 0%,
    rgba(255, 255, 255, 0.05) 25%,
    transparent 50%
  );
  pointer-events: none;
  z-index: 1;
}

@media (hover: hover) and (pointer: fine) {
  .glass-card:hover {
    background: rgba(255, 255, 255, 0.50);
    box-shadow:
      0 24px 60px rgba(42, 74, 165, 0.26),
      0 6px 18px rgba(42, 74, 165, 0.13),
      inset 0 1px 0 rgba(255, 255, 255, 0.95);
  }
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1 {
  font-size: var(--fs-page);
  line-height: var(--lh-page);
  font-weight: var(--fw-semibold);
  letter-spacing: -0.3px;
  color: var(--text-primary);
}

h2 {
  font-size: var(--fs-panel);
  line-height: var(--lh-panel);
  font-weight: var(--fw-semibold);
  letter-spacing: normal;
  color: var(--text-primary);
  margin-bottom: 20px;
}

h3 {
  font-size: var(--fs-card);
  line-height: var(--lh-card);
  font-weight: var(--fw-semibold);
  letter-spacing: normal;
  color: var(--text-primary);
  margin-bottom: 12px;
}

p { color: inherit; line-height: 1.65; }

/* ── Typography utilities (the fixed scale; no arbitrary sizes in components) ── */
.t-display {
  font-size: var(--fs-display); line-height: var(--lh-display);
  font-weight: var(--fw-semibold); letter-spacing: -0.5px;
  color: var(--text-primary);
}
.t-page-title {
  font-size: var(--fs-page); line-height: var(--lh-page);
  font-weight: var(--fw-semibold); letter-spacing: -0.3px;
  color: var(--text-primary);
}
.t-panel-title {
  font-size: var(--fs-panel); line-height: var(--lh-panel);
  font-weight: var(--fw-semibold); color: var(--text-primary);
}
.t-section-title {
  font-size: var(--fs-section); line-height: var(--lh-section);
  font-weight: var(--fw-semibold); color: var(--text-primary);
}
.t-card-title {
  font-size: var(--fs-card); line-height: var(--lh-card);
  font-weight: var(--fw-semibold); color: var(--text-primary);
}
.t-body {
  font-size: var(--fs-body); line-height: var(--lh-body);
  font-weight: var(--fw-regular);
}
.t-label {
  font-size: var(--fs-label); line-height: var(--lh-label);
  font-weight: var(--fw-medium);
}
.t-secondary {
  font-size: var(--fs-label); line-height: var(--lh-label);
  font-weight: var(--fw-regular); color: var(--text-secondary);
}
.t-caption {
  font-size: var(--fs-caption); line-height: var(--lh-caption);
  font-weight: var(--fw-regular); color: var(--text-tertiary);
}
/* The ONLY style allowed to be uppercase + tracked. Metadata kickers only. */
.t-micro {
  font-size: var(--fs-micro); line-height: var(--lh-micro);
  font-weight: var(--fw-medium); letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--text-tertiary);
}

/* Tabular numerals for aligned prices, KPIs, occupancy, dates */
.tnum { font-variant-numeric: tabular-nums; }
.glass-table, table { font-variant-numeric: tabular-nums; }

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: var(--fw-medium);
  font-size: var(--fs-label);
  line-height: var(--lh-label);
  letter-spacing: normal;
  padding: 10px 22px;
  border-radius: var(--radius-12);
  transition: background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  cursor: pointer;
  border: none;
}

/* 3D glowing primary: vivid blue orb-like depth */
.btn-primary {
  position: relative;
  background: linear-gradient(180deg, #5A8CFF 0%, var(--accent) 55%, #1D4FD8 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow:
    0 8px 22px var(--accent-glow),
    0 2px 6px rgba(29, 79, 216, 0.35),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.5),
    inset 0 -3px 6px rgba(21, 52, 150, 0.45);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #6B99FF 0%, #3D77FF 55%, #2459E6 100%);
  box-shadow:
    0 12px 30px var(--accent-glow),
    0 3px 8px rgba(29, 79, 216, 0.40),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.55),
    inset 0 -3px 6px rgba(21, 52, 150, 0.45);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
  background: linear-gradient(180deg, #2E62E8 0%, #2456D6 55%, #1B46BE 100%);
  box-shadow:
    0 4px 12px var(--accent-glow),
    inset 0 3px 7px rgba(10, 30, 90, 0.45);
}

.btn-primary:disabled {
  background: var(--text-quaternary);
  border-color: rgba(0, 0, 0, 0.04);
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.5;
}

.btn-ghost {
  background: var(--surface-1);
  color: var(--text-primary);
  border: 1px solid rgba(16, 24, 40, 0.14);
  box-shadow: var(--soft-raise);
}

.btn-ghost:hover {
  background: #F7F8FA;
  color: var(--text-primary);
  border-color: rgba(16, 24, 40, 0.22);
  box-shadow: var(--soft-raise-lg);
}

.btn-ghost:active {
  background: rgba(255, 255, 255, 0.40);
  box-shadow: var(--soft-inset);
}

.btn-lg { padding: 12px 32px; font-size: var(--fs-body); line-height: var(--lh-label); }
.btn-sm { padding: 6px 16px; font-size: var(--fs-label); }

/* ============================================
   FORM INPUTS
   ============================================ */

/* Inputs are solid, readable soft wells: gently recessed, never glassy. */
.glass-input {
  width: 100%;
  padding: 10px 14px;
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: var(--lh-label);
  color: var(--text-primary);
  background: #F5F6F8;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-12);
  outline: none;
  box-shadow: var(--soft-well);
  transition: border-color var(--dur-sm) var(--ease), box-shadow var(--dur-sm) var(--ease), background-color var(--dur-sm) var(--ease);
}

.glass-input::placeholder { color: var(--text-tertiary); }

.glass-input:focus {
  background: var(--surface-1);
  border-color: var(--accent);
  box-shadow: var(--soft-well), 0 0 0 3px var(--accent-tint);
}

.glass-input.error {
  border-color: var(--status-danger);
  box-shadow: 0 0 0 3px var(--status-danger-tint);
}

textarea.glass-input { 
  resize: vertical; 
  min-height: 80px; 
  font-family: inherit; 
}

select.glass-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23475569' d='M6 8L2 4h8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

/* Logout: standard secondary button (pill is semantic here) */
.logout-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: var(--fw-medium);
  font-size: var(--fs-label);
  line-height: var(--lh-label);
  padding: 8px 20px;
  border: 1px solid var(--border-light);
  border-radius: var(--pill);
  cursor: pointer;
  color: var(--text-secondary);
  background: var(--surface-1);
  box-shadow: var(--soft-raise);
  transition: background-color var(--dur-sm) var(--ease), color var(--dur-sm) var(--ease), box-shadow var(--dur-sm) var(--ease);
}

.logout-btn:hover {
  color: var(--text-primary);
  background: #F5F5F7;
  box-shadow: var(--soft-raise-lg);
}

.logout-btn:active {
  background: #EDEDF0;
  box-shadow: var(--soft-inset);
}

/* ============================================
   TABLES
   ============================================ */

.glass-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.glass-table thead {
  background: rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.glass-table th {
  text-align: left;
  padding: 12px 16px;
  font-weight: var(--fw-medium);
  font-size: 13px;
  letter-spacing: normal;
  color: var(--text-secondary);
}

.glass-table td {
  padding: 12px 16px;
  color: var(--text-primary);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.glass-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* ============================================
   BADGES & STATUS
   ============================================ */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--pill);
  font-size: var(--fs-caption);
  line-height: var(--lh-caption);
  font-weight: var(--fw-medium);
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--border-subtle);
}

.badge-success {
  background: var(--status-ok-tint);
  color: var(--status-ok);
  border-color: rgba(22, 163, 74, 0.25);
}

.badge-warning {
  background: rgba(249, 115, 22, 0.16);
  color: #C2410C;
  border-color: rgba(249, 115, 22, 0.40);
}

.badge-error {
  background: var(--status-danger-tint);
  color: var(--status-danger);
  border-color: rgba(220, 38, 38, 0.25);
}

.badge-info {
  background: var(--accent-tint);
  color: var(--accent);
  border-color: rgba(62, 99, 221, 0.25);
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-up { opacity: 0; animation: fadeUp 0.6s var(--ease-out) forwards; }
.fade-up-d1 { animation-delay: 0.06s; }
.fade-up-d2 { animation-delay: 0.12s; }
.fade-up-d3 { animation-delay: 0.18s; }
.fade-up-d4 { animation-delay: 0.24s; }

/* ============================================
   HEADER (Fixed Glass Pill)
   ============================================ */

.glass-header {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: var(--max-w);
  height: 48px;
  z-index: var(--z-nav);
  border-radius: var(--pill);
  background: var(--glass-1-bg);
  backdrop-filter: blur(var(--glass-1-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-1-blur)) saturate(var(--glass-saturate));
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

.glass-header-inner {
  max-width: 100%;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

/* ============================================
   CONTAINER
   ============================================ */

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .glass-header {
    width: calc(100% - 24px);
  }
  
  .container {
    padding: 0 16px;
  }
}

/* Full-width opt-in — applied selectively; does not affect inline/icon/header buttons */
@media (max-width: 480px) {
  .btn-block-mobile {
    width: 100%;
    justify-content: center;
  }
}

/* ── Mobile mesh performance: reduce blur, drop one blob ── */
@media (max-width: 768px) {
  .mesh-gradient {
    filter: blur(60px);
  }

  .mesh-5 {
    display: none;
  }
}

/* ============================================
   ACCESSIBILITY PREFERENCES
   ============================================ */

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

/* Readability over aesthetics: opaque fallback for every glass surface. */
@media (prefers-reduced-transparency: reduce) {
  .glass-card,
  .glass-header,
  .nav-tabs,
  .header.glass-card,
  .app-context-bar,
  .smoobu-banner,
  .today-section,
  .overview-kpis-section,
  .overview-operations-status {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: linear-gradient(155deg, #F3F2FA 0%, #F8F1E6 100%) !important;
  }
}
