/* ==========================================================================
   CARWASH LIMITED — HYDRO-SILK CERAMIC DESIGN SYSTEM  ·  core layer
   Porcelain-blue luminous surfaces, deep sapphire velvet anchors, refractive
   droplet highlights and butter-smooth motion. Shared by every page.
   --------------------------------------------------------------------------
   Layers:  cw-core (this)  ->  cw-public / cw-member / cw-admin / cw-pay
   ========================================================================== */

/* ---------------------------------------------------------------- 1. TOKENS */
:root {
  /* Hydro palette */
  --mist:      #F3F8FE;
  --cloud:     #EAF2FC;
  --frost:     #DCE9FA;
  --ice:       #B8D7FA;
  --sky:       #38B6FF;
  --azure:     #007BFF;
  --cobalt:    #004EC2;
  --sapphire:  #071E47;
  --midnight:  #04122D;
  --ink:       #0C1D3A;
  --slate:     #5A7194;
  --white:     #FFFFFF;

  /* semantic */
  --good:      #0E9F6E;
  --good-soft: #E6F7F1;
  --warn:      #B4690E;
  --warn-soft: #FDF4E3;
  --bad:       #DC2626;
  --bad-soft:  #FEF0F0;

  /* typography */
  --f-sans:    'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-display: 'Outfit', var(--f-sans);
  --f-emblem:  'Exo 2', var(--f-display);
  --f-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* radii */
  --r-xs: 10px;
  --r-sm: 14px;
  --r-md: 20px;
  --r-lg: 26px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* elevation */
  --e-1: 0 2px 6px rgba(7, 30, 71, .04);
  --e-2: 0 10px 26px -16px rgba(7, 30, 71, .14), 0 2px 6px rgba(7, 30, 71, .03);
  --e-3: 0 20px 44px -22px rgba(7, 30, 71, .16), 0 2px 6px rgba(7, 30, 71, .04);
  --e-4: 0 30px 62px -26px rgba(4, 24, 62, .26), 0 4px 14px rgba(0, 123, 255, .07);
  --e-deep: 0 26px 52px -22px rgba(4, 18, 45, .56);

  /* motion */
  --ease-silk: cubic-bezier(.22, 1, .36, 1);
  --ease-soft: cubic-bezier(.16, 1, .3, 1);
  --ease-pop:  cubic-bezier(.34, 1.56, .64, 1);
  --t-fast: .18s;
  --t-med:  .32s;
  --t-slow: .65s;

  /* layout */
  --wrap: 1180px;
  --app:  560px;
  --dock-h: 74px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-color: var(--ice) transparent;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100dvh;
}

body {
  background-color: var(--mist);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 15px;
  line-height: 1.6;
  font-weight: 450;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
  overflow-x: clip;
}

::selection { background: var(--azure); color: #fff; }

h1, h2, h3, h4, h5 {
  font-family: var(--f-display);
  color: var(--sapphire);
  letter-spacing: -.022em;
  line-height: 1.14;
  margin: 0;
  font-weight: 700;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
a { color: var(--cobalt); text-decoration: none; transition: color var(--t-fast) ease; }
a:hover { color: var(--azure); }
img, svg, canvas, video { display: block; max-width: 100%; }
svg { shape-rendering: geometricPrecision; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
code, kbd, samp { font-family: var(--f-mono); font-size: .92em; }
hr { border: 0; border-top: 1px solid var(--frost); margin: 20px 0; }
table { border-collapse: collapse; width: 100%; }
summary { cursor: pointer; }
summary::-webkit-details-marker { display: none; }
dl, dd { margin: 0; }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2.5px solid var(--azure);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Scrollbars — thin and glassy */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--ice), #9CC6F3);
  border: 3px solid var(--mist);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover { background: var(--azure); }
.no-scrollbar { scrollbar-width: none; -ms-overflow-style: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }

/* Skip link */
.skip, .sd-skip, .m-skip {
  position: fixed;
  left: 16px; top: 10px;
  z-index: 999;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  background: var(--sapphire);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  transform: translateY(-180%);
  transition: transform var(--t-med) var(--ease-pop);
}
.skip:focus, .sd-skip:focus, .m-skip:focus { transform: none; color: #fff; }

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

/* --------------------------------------------------- 3. AMBIENT BACKGROUNDS */
.cw-canvas-bg, body.cw-bg {
  background:
    radial-gradient(ellipse 90% 55% at 85% 2%, rgba(56, 182, 255, .20) 0%, rgba(0, 123, 255, .05) 48%, transparent 74%),
    radial-gradient(ellipse 75% 48% at 8% 32%, rgba(184, 215, 250, .34) 0%, transparent 64%),
    radial-gradient(ellipse 60% 40% at 92% 92%, rgba(125, 211, 252, .20) 0%, transparent 70%),
    linear-gradient(180deg, #EEF6FF 0%, #F7FBFF 52%, #F1F7FE 100%);
  background-attachment: fixed;
}

/* Fixed caustic droplet canvas painted by cw-core.js */
#cwAmbient {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Drifting aurora orbs */
.cw-aurora { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.cw-aurora i {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(64px);
  will-change: transform;
}
.cw-aurora i:nth-child(1) { width: 340px; height: 340px; top: -110px; right: -90px; background: rgba(56, 182, 255, .26); animation: auroraA 11s var(--ease-silk) infinite; }
.cw-aurora i:nth-child(2) { width: 300px; height: 300px; top: 40%; left: -110px; background: rgba(0, 123, 255, .16); animation: auroraB 13s var(--ease-silk) infinite; }
.cw-aurora i:nth-child(3) { width: 330px; height: 330px; bottom: -120px; right: 10px; background: rgba(125, 211, 252, .28); animation: auroraA 15s var(--ease-silk) infinite reverse; }

/* ------------------------------------------------------------- 4. SURFACES */
/* Frosted liquid-silk glass */
.cw-glass, .silk-glass {
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(24px) saturate(175%);
  -webkit-backdrop-filter: blur(24px) saturate(175%);
  border: 1px solid rgba(255, 255, 255, .92);
  box-shadow: var(--e-3), inset 0 1px 0 rgba(255, 255, 255, .95);
}

/* Opaque porcelain card (content-heavy areas, keeps text crisp) */
.cw-card {
  background: linear-gradient(160deg, #FFFFFF 0%, #FAFCFF 58%, #F4F9FF 100%);
  border: 1px solid var(--frost);
  border-radius: var(--r-lg);
  box-shadow: var(--e-2);
}

/* Deep sapphire ceramic velvet — contrast anchor */
.cw-velvet, .sapphire-velvet {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 88% 10%, rgba(56, 182, 255, .38) 0%, transparent 48%),
    radial-gradient(circle at 10% 92%, rgba(0, 123, 255, .28) 0%, transparent 50%),
    linear-gradient(145deg, #0A2861 0%, #061A3E 54%, #031028 100%);
  border: 1px solid rgba(125, 211, 252, .22);
  box-shadow: var(--e-deep), inset 0 1px 0 rgba(255, 255, 255, .22);
}
.cw-velvet h1, .cw-velvet h2, .cw-velvet h3, .cw-velvet h4,
.sapphire-velvet h1, .sapphire-velvet h2, .sapphire-velvet h3, .sapphire-velvet h4 { color: #fff; }

/* Velvet caustic sheen sweep */
.cw-velvet::after, .sapphire-velvet::after {
  content: '';
  position: absolute;
  inset: 0;
  width: 38%;
  background: linear-gradient(90deg, transparent, rgba(186, 230, 253, .13), transparent);
  transform: translateX(-180%) skewX(-18deg);
  animation: causticSweep 7.5s var(--ease-silk) infinite;
  pointer-events: none;
}

/* iOS spatial bento widget */
.cw-widget, .ios-widget {
  background: linear-gradient(155deg, rgba(255, 255, 255, .9) 0%, rgba(238, 246, 255, .8) 100%);
  backdrop-filter: blur(26px) saturate(190%);
  -webkit-backdrop-filter: blur(26px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, .96);
  box-shadow: 0 16px 36px -20px rgba(7, 30, 71, .16), var(--e-1), inset 0 1.5px 0 rgba(255, 255, 255, .98);
  transition: transform var(--t-fast) var(--ease-silk), box-shadow var(--t-fast) ease;
}
.cw-widget:active, .ios-widget:active { transform: scale(.975); }

/* Floating liquid-glass chrome (headers / docks) */
.cw-liquid-header {
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(28px) saturate(210%);
  -webkit-backdrop-filter: blur(28px) saturate(210%);
  border: 1.5px solid rgba(255, 255, 255, .96);
  box-shadow: 0 16px 36px -14px rgba(4, 24, 62, .24), 0 2px 8px rgba(0, 123, 255, .08), inset 0 1.5px 0 #fff;
}
.cw-liquid-dock {
  background: rgba(255, 255, 255, .84);
  backdrop-filter: blur(32px) saturate(220%);
  -webkit-backdrop-filter: blur(32px) saturate(220%);
  border: 1.5px solid rgba(255, 255, 255, .96);
  box-shadow: 0 22px 48px -12px rgba(4, 24, 62, .3), 0 4px 14px rgba(0, 123, 255, .13), inset 0 1.5px 0 #fff;
}

/* Dynamic island live-activity pill */
.cw-island {
  background: linear-gradient(145deg, #06142E 0%, #020A1A 100%);
  border: 1px solid rgba(125, 211, 252, .22);
  box-shadow: 0 10px 24px -8px rgba(2, 12, 32, .58), inset 0 1px 0 rgba(255, 255, 255, .14);
  transition: all var(--t-med) var(--ease-silk);
}

/* --------------------------------------------------------------- 5. BUTTONS */
.cw-btn, .m-button, .sd-btn, .btn, .pay-btn,
.cw-btn-soft, .sd-btn-ghost, .btn-outline-light, .pay-btn-ghost, .btn-hydro-soft, .cw-btn-onvelvet {
  --btn-pad: 13px 24px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: var(--btn-pad);
  border-radius: var(--r-pill);
  font-family: var(--f-sans);
  font-size: 14px;
  font-weight: 750;
  letter-spacing: -.008em;
  line-height: 1.2;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
  white-space: nowrap;
  cursor: pointer;
  transition: transform var(--t-fast) var(--ease-silk), filter var(--t-fast) ease,
              box-shadow var(--t-fast) ease, background-color var(--t-fast) ease, color var(--t-fast) ease;
}
.cw-btn svg, .m-button svg, .sd-btn svg, .btn svg, .pay-btn svg { width: 18px; height: 18px; flex: none; }

/* Primary — liquid cerulean with hydro sheen */
.cw-btn, .m-button, .sd-btn-gold, .btn-primary, .btn-gold, .pay-btn, .btn-hydro-primary {
  background: linear-gradient(135deg, #27A6FF 0%, #006CE6 56%, #0044B5 100%);
  color: #fff;
  box-shadow: 0 16px 32px -14px rgba(0, 108, 230, .5), inset 0 1.5px 0 rgba(255, 255, 255, .42);
}
.cw-btn::after, .m-button::after, .sd-btn-gold::after, .btn-primary::after, .btn-gold::after,
.pay-btn::after, .btn-hydro-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 44%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .36), transparent);
  transform: translateX(-220%) skewX(-22deg);
  animation: hydroGloss 5.2s cubic-bezier(.4, 0, .2, 1) infinite;
  pointer-events: none;
}
.cw-btn:hover, .m-button:hover, .sd-btn-gold:hover, .btn-primary:hover, .btn-gold:hover, .pay-btn:hover { filter: brightness(1.06); color: #fff; }
.cw-btn:active, .m-button:active, .sd-btn-gold:active, .btn-primary:active, .btn-gold:active, .pay-btn:active { transform: scale(.982); }

/* Soft frosted secondary */
.cw-btn-soft, .m-button.ghost, .m-button.is-ghost, .cw-btn.is-ghost, .sd-btn-ghost, .btn-outline-light, .pay-btn-ghost, .btn-hydro-soft {
  background: rgba(255, 255, 255, .9);
  color: var(--sapphire);
  border: 1px solid rgba(0, 108, 230, .16);
  box-shadow: 0 8px 20px -12px rgba(7, 30, 71, .16), inset 0 1px 0 #fff;
}
.cw-btn-soft::after, .m-button.ghost::after, .m-button.is-ghost::after, .cw-btn.is-ghost::after, .sd-btn-ghost::after,
.btn-outline-light::after, .pay-btn-ghost::after { display: none; }
.cw-btn-soft:hover, .m-button.ghost:hover, .m-button.is-ghost:hover, .cw-btn.is-ghost:hover, .sd-btn-ghost:hover, .btn-outline-light:hover, .pay-btn-ghost:hover {
  background: #fff;
  border-color: rgba(0, 123, 255, .42);
  color: var(--sapphire);
}

/* Ghost on dark velvet */
.cw-btn-onvelvet {
  background: rgba(255, 255, 255, .12);
  color: #E0F2FE;
  border: 1px solid rgba(125, 211, 252, .3);
  backdrop-filter: blur(10px);
}
.cw-btn-onvelvet::after { display: none; }
.cw-btn-onvelvet:hover { background: rgba(255, 255, 255, .2); color: #fff; }

/* Sizes & modifiers */
.sd-btn-sm, .btn-small, .cw-btn-sm { --btn-pad: 9px 17px; font-size: 12.5px; }
.sd-btn-lg, .cw-btn-lg { --btn-pad: 16px 30px; font-size: 15px; }
.sd-btn-block, .m-full, .cw-btn-block, .pay-btn-wide { display: flex; width: 100%; }

.cw-btn[disabled], .m-button[disabled], .sd-btn[disabled], .btn[disabled], .pay-btn[disabled],
.cw-btn:disabled, .m-button:disabled, .sd-btn:disabled, .btn:disabled {
  background: var(--frost);
  color: #93A7C4;
  box-shadow: none;
  cursor: not-allowed;
  filter: none;
  transform: none;
  border-color: var(--frost);
}
.cw-btn[disabled]::after, .m-button[disabled]::after, .btn[disabled]::after, .pay-btn[disabled]::after { display: none; }

.cw-btn-danger, .admin-danger { background: linear-gradient(135deg, #F97070 0%, #DC2626 60%, #9F1239 100%); box-shadow: 0 16px 32px -14px rgba(220, 38, 38, .45), inset 0 1.5px 0 rgba(255,255,255,.4); }

/* Icon button */
.cw-icon-btn, .m-icon-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .86);
  border: 1px solid var(--frost);
  color: var(--sapphire);
  box-shadow: var(--e-1);
  transition: all var(--t-fast) var(--ease-silk);
}
.cw-icon-btn:hover, .m-icon-button:hover { background: #fff; border-color: var(--ice); color: var(--azure); }
.cw-icon-btn:active, .m-icon-button:active { transform: scale(.92); }
.cw-icon-btn svg, .m-icon-button svg { width: 19px; height: 19px; }
.m-icon-button.active { background: var(--azure); border-color: var(--azure); color: #fff; }

/* ---------------------------------------------------------------- 6. FORMS */
.cw-input, .sd-input,
input:not([type]), input[type=text], input[type=tel], input[type=number], input[type=password],
input[type=email], input[type=search], input[type=url], input[type=date], textarea, select {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--r-sm);
  background: rgba(243, 248, 254, .88);
  border: 1.5px solid rgba(12, 29, 58, .09);
  box-shadow: inset 0 2px 5px rgba(7, 30, 71, .03);
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  transition: border-color .22s ease, background-color .22s ease, box-shadow .22s ease;
  appearance: none;
  -webkit-appearance: none;
}
textarea { min-height: 110px; resize: vertical; line-height: 1.55; font-weight: 500; }
select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235A7194' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 17px;
  padding-right: 42px;
  cursor: pointer;
}
input::placeholder, textarea::placeholder { color: rgba(90, 113, 148, .55); font-weight: 500; }

.cw-input:focus, .sd-input:focus, input:focus, textarea:focus, select:focus,
.hydro-input:focus-within, .cw-field:focus-within {
  background: #fff;
  border-color: var(--azure);
  box-shadow: 0 0 0 4px rgba(0, 123, 255, .11), 0 10px 24px -14px rgba(0, 123, 255, .3);
  outline: none;
}
input[type=checkbox], input[type=radio] {
  width: 18px; height: 18px;
  accent-color: var(--azure);
  padding: 0;
  box-shadow: none;
  cursor: pointer;
}
input[type=checkbox] { border-radius: 5px; }
input[type=file] { padding: 10px; font-size: 13px; font-weight: 600; }

/* Field wrapper */
.cw-field, .sd-field, .m-form label, label.cw-label {
  display: block;
  margin-bottom: 15px;
}
.cw-field > span:first-child, .sd-field > span:first-child, .m-form label > span:first-child {
  display: block;
  margin-bottom: 7px;
  font-size: 12.5px;
  font-weight: 750;
  color: var(--sapphire);
  letter-spacing: -.004em;
}
.req { color: var(--azure); }

/* Composite input shell (prefix / suffix) */
.cw-shell {
  display: flex;
  align-items: center;
  border-radius: var(--r-sm);
  background: rgba(243, 248, 254, .88);
  border: 1.5px solid rgba(12, 29, 58, .09);
  box-shadow: inset 0 2px 5px rgba(7, 30, 71, .03);
  overflow: hidden;
  transition: border-color .22s ease, background-color .22s ease, box-shadow .22s ease;
}
.cw-shell:focus-within { background: #fff; border-color: var(--azure); box-shadow: 0 0 0 4px rgba(0, 123, 255, .11), 0 10px 24px -14px rgba(0, 123, 255, .3); }
.cw-shell > input, .cw-shell > select { background: none; border: 0; box-shadow: none; border-radius: 0; }
.cw-shell > input:focus, .cw-shell > select:focus { box-shadow: none; background: none; }
.cw-shell-pre, .cw-shell-post {
  flex: none;
  padding: 0 4px 0 15px;
  font-family: var(--f-mono);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--slate);
}
.cw-shell-post { padding: 0 15px 0 4px; }
.cw-shell > select { width: auto; flex: none; border-right: 1px solid var(--frost); border-radius: 0; padding-left: 14px; font-family: var(--f-mono); font-size: 13px; color: var(--sapphire); }
.cw-shell > button { flex: none; padding: 0 14px; color: var(--slate); }
.cw-shell > button:hover { color: var(--azure); }
.cw-shell > button svg { width: 18px; height: 18px; }

/* Password reveal */
.sd-pw, .cw-pw { position: relative; display: block; }
.sd-pw input, .cw-pw input { padding-right: 96px; }
.sd-pw button, .cw-pw button {
  position: absolute;
  right: 7px; top: 50%;
  transform: translateY(-50%);
  padding: 7px 13px;
  border-radius: var(--r-pill);
  background: rgba(0, 123, 255, .09);
  color: var(--cobalt);
  font-size: 11.5px;
  font-weight: 750;
}
.sd-pw button:hover, .cw-pw button:hover { background: rgba(0, 123, 255, .17); }

/* Strength meter */
.cw-strength { display: flex; align-items: center; gap: 9px; margin-top: 8px; }
.cw-strength-track { flex: 1; height: 4px; border-radius: 999px; background: var(--frost); overflow: hidden; }
.cw-strength-bar { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--azure); transition: width var(--t-med) var(--ease-soft), background-color var(--t-med) ease; }
.cw-strength-bar.is-1 { background: #EF4444; }
.cw-strength-bar.is-2 { background: #F59E0B; }
.cw-strength-bar.is-3 { background: #3B82F6; }
.cw-strength-bar.is-4 { background: #0E9F6E; }
.cw-strength-label { font-family: var(--f-mono); font-size: 9px; font-weight: 700; color: var(--slate); letter-spacing: .1em; text-transform: uppercase; }

/* Checkbox row */
.sd-check, .cw-check {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 4px 0 16px;
  font-size: 12.5px;
  color: var(--slate);
  line-height: 1.55;
  cursor: pointer;
  user-select: none;
}
.sd-check input, .cw-check input { margin-top: 2px; flex: none; }

.bot-trap { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* --------------------------------------------------------------- 7. PIECES */
/* Eyebrow / kicker */
.cw-eyebrow, .sd-eyebrow, .m-kicker, .admin-eyebrow, .m-history-kicker, .m-download-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--f-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--azure);
}
.cw-velvet .cw-eyebrow, .sapphire-velvet .cw-eyebrow,
.cw-velvet .m-kicker, .sapphire-velvet .m-kicker { color: #7DD3FC; }
/* Lencana di atas panel gelap: versi terang dari lencana biasa. Varian
   status (baik/peringatan/gagal) sudah berlatar sendiri, jadi dibiarkan. */
.cw-velvet .cw-badge:not(.is-good):not(.is-warn):not(.is-bad),
.sapphire-velvet .cw-badge:not(.is-good):not(.is-warn):not(.is-bad) {
  background: rgba(125, 211, 252, .14);
  border-color: rgba(125, 211, 252, .34);
  color: #BAE6FD;
}
.cw-eyebrow::before, .m-download-kicker i {
  content: '';
  width: 6px; height: 6px;
  flex: none;
  border-radius: 50%;
  background: currentColor;
  animation: dotPulse 2.4s ease-in-out infinite;
}
.cw-eyebrow.no-dot::before { display: none; }

/* Accent inline text (legacy .sd-gold hook kept for template compatibility) */
.sd-gold, .is-gold, .cw-accent {
  background: linear-gradient(100deg, #1668E8 0%, #38C4FF 46%, #0062E6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--azure);
}

/* Badge / pill */
.cw-badge, .m-badge, .ac-pill, .m-member-tag, .user-chip, .pay-pill, .admin-live, .ac-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: rgba(0, 123, 255, .08);
  border: 1px solid rgba(0, 123, 255, .18);
  color: var(--cobalt);
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  white-space: nowrap;
}
.cw-badge svg, .m-badge svg, .m-member-tag svg { width: 13px; height: 13px; }
.cw-badge.is-good, .ac-status.is-on { background: var(--good-soft); border-color: rgba(14, 159, 110, .22); color: #0A7A54; }
.cw-badge.is-warn { background: var(--warn-soft); border-color: rgba(180, 105, 14, .22); color: var(--warn); }
.cw-badge.is-bad  { background: var(--bad-soft);  border-color: rgba(220, 38, 38, .2);  color: #B91C1C; }
.cw-badge.is-hot, .ac-pill.is-hot {
  background: linear-gradient(135deg, #27A6FF, #0044B5);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 16px -8px rgba(0, 108, 230, .6);
}

/* Stat tile */
.cw-stat {
  padding: 15px 16px;
  border-radius: var(--r-md);
  background: var(--mist);
  border: 1px solid var(--frost);
  text-align: center;
}
.cw-stat b, .cw-stat strong { display: block; font-family: var(--f-display); font-size: 19px; font-weight: 800; color: var(--sapphire); line-height: 1.05; }
.cw-stat small { display: block; margin-top: 5px; font-family: var(--f-mono); font-size: 9px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--slate); }

/* Money figure */
.cw-money, .m-wallet-amount, .m-price {
  font-family: var(--f-display);
  font-weight: 800;
  letter-spacing: -.028em;
  font-variant-numeric: tabular-nums;
  color: var(--sapphire);
}
.m-positive, .cw-money.is-up { color: #0A7A54; }
.cw-money.is-down { color: #B91C1C; }

/* Divider list */
.cw-divide > * + * { border-top: 1px solid var(--frost); }

/* Notice / alert */
.alert, .m-notice, .sd-alert, .m-info, .cw-note {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 14px 17px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .8);
  border: 1px solid var(--frost);
  border-left: 3px solid var(--azure);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.55;
  box-shadow: var(--e-1);
  margin-bottom: 16px;
}
.alert svg, .m-notice svg, .m-info svg, .cw-note svg { width: 19px; height: 19px; flex: none; color: var(--azure); margin-top: 1px; }
.alert-error, .m-notice.is-error, .sd-alert-error, .cw-note.is-bad {
  background: var(--bad-soft); border-color: rgba(220, 38, 38, .16); border-left-color: var(--bad); color: #8E1515;
}
.alert-error svg, .m-notice.is-error svg { color: var(--bad); }
.alert-success, .m-notice.is-success, .sd-alert-success, .cw-note.is-good {
  background: var(--good-soft); border-color: rgba(14, 159, 110, .18); border-left-color: var(--good); color: #0A6A4A;
}
.alert-success svg, .m-notice.is-success svg { color: var(--good); }

/* Empty state */
.m-empty, .cw-empty, .m-history-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
  padding: 38px 24px;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .62);
  border: 1px dashed var(--ice);
  text-align: center;
  color: var(--slate);
  font-size: 13.5px;
}
.m-empty svg, .cw-empty svg, .m-history-empty svg {
  width: 46px; height: 46px;
  color: var(--ice);
  animation: iconBob 3.1s ease-in-out infinite;
}
.m-empty b, .cw-empty b { display: block; color: var(--sapphire); font-family: var(--f-display); font-size: 15.5px; font-weight: 700; margin-bottom: 3px; }
.m-empty p, .cw-empty p { margin: 0; }

/* Toast */
.m-toast, .sd-toast, .toast, .pay-toast {
  position: fixed;
  left: 50%;
  bottom: calc(26px + var(--safe-b));
  z-index: 9999;
  transform: translate(-50%, 140%);
  max-width: min(440px, calc(100vw - 32px));
  padding: 13px 20px;
  border-radius: var(--r-pill);
  background: rgba(7, 30, 71, .95);
  backdrop-filter: blur(18px);
  color: #EAF4FF;
  font-size: 13.5px;
  font-weight: 650;
  text-align: center;
  box-shadow: 0 22px 48px -16px rgba(4, 18, 45, .6);
  opacity: 0;
  pointer-events: none;
  transition: transform .42s var(--ease-pop), opacity .3s ease;
}
.m-toast.visible, .sd-toast.show, .toast.show, .pay-toast.show { transform: translate(-50%, 0); opacity: 1; }

/* Rich stacked toast */
.cw-toasts {
  position: fixed;
  left: 50%;
  bottom: calc(22px + var(--safe-b));
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  width: min(440px, calc(100vw - 28px));
  transform: translateX(-50%);
  pointer-events: none;
}
.cw-toast {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid #fff;
  box-shadow: 0 20px 44px -18px rgba(4, 24, 62, .36);
  opacity: 0;
  transform: translateY(16px) scale(.97);
  transition: opacity .3s ease, transform .42s var(--ease-pop);
}
.cw-toast.is-in { opacity: 1; transform: none; }
.cw-toast i {
  flex: none;
  width: 32px; height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, #38B6FF, #0052CC);
  color: #fff;
}
.cw-toast i svg { width: 17px; height: 17px; }
.cw-toast.is-good i { background: linear-gradient(135deg, #34D399, #059669); }
.cw-toast.is-bad  i { background: linear-gradient(135deg, #FB7185, #DC2626); }
.cw-toast b { display: block; font-family: var(--f-display); font-size: 13.5px; font-weight: 750; color: var(--sapphire); }
.cw-toast span { display: block; font-size: 12px; color: var(--slate); line-height: 1.45; }

/* Route progress bar */
.m-progressbar, .cw-progressbar {
  position: fixed;
  left: 0; top: 0;
  z-index: 10000;
  height: 2.5px;
  width: 0;
  background: linear-gradient(90deg, #38B6FF, #fff, #007BFF);
  box-shadow: 0 0 12px rgba(56, 182, 255, .8);
  opacity: 0;
  pointer-events: none;
}
.m-progressbar.is-on, .cw-progressbar.is-on { opacity: 1; animation: routeBar 1.5s var(--ease-soft) forwards; }

/* Segmented switch */
.cw-seg {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 5px;
  padding: 5px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .82);
  border: 1px solid var(--frost);
  box-shadow: var(--e-1);
}
.cw-seg > * {
  padding: 11px 10px;
  border-radius: var(--r-pill);
  font-size: 12.5px;
  font-weight: 750;
  color: var(--slate);
  text-align: center;
  transition: all var(--t-fast) var(--ease-silk);
}
.cw-seg > *:hover { color: var(--sapphire); }
.cw-seg > .active, .cw-seg > [aria-current="page"] {
  background: var(--sapphire);
  color: #fff;
  box-shadow: 0 8px 18px -10px rgba(7, 30, 71, .5);
}

/* Accordion */
.cw-accordion > details, .m-details {
  border-radius: var(--r-md);
  border: 1px solid var(--frost);
  background: rgba(255, 255, 255, .7);
  margin-bottom: 11px;
  overflow: hidden;
  transition: box-shadow var(--t-fast) ease;
}
.cw-accordion > details[open], .m-details[open] { box-shadow: var(--e-2); background: #fff; }
.cw-accordion summary, .m-details > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 18px;
  font-family: var(--f-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--sapphire);
  list-style: none;
}
.cw-accordion summary::after, .m-details > summary::after {
  content: '+';
  flex: none;
  width: 25px; height: 25px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--cloud);
  color: var(--cobalt);
  font-family: var(--f-mono);
  font-size: 14px;
  transition: transform var(--t-med) var(--ease-pop), background-color var(--t-fast) ease;
}
.cw-accordion details[open] summary::after, .m-details[open] > summary::after { transform: rotate(45deg); background: var(--azure); color: #fff; }
.cw-accordion details > *:not(summary), .m-details > *:not(summary) { padding: 0 18px 17px; font-size: 13px; color: var(--slate); line-height: 1.65; }

/* Table */
.table, .cw-table, .admin-data-table {
  width: 100%;
  font-size: 13px;
  background: #fff;
  border-radius: var(--r-md);
  overflow: hidden;
}
.table th, .cw-table th, .admin-data-table th {
  padding: 12px 14px;
  background: var(--cloud);
  color: var(--sapphire);
  font-family: var(--f-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-align: left;
  white-space: nowrap;
}
.table td, .cw-table td, .admin-data-table td { padding: 13px 14px; border-top: 1px solid var(--frost); vertical-align: middle; }
.table tbody tr, .cw-table tbody tr { transition: background-color var(--t-fast) ease; }
.table tbody tr:hover, .cw-table tbody tr:hover { background: rgba(0, 123, 255, .035); }
.cw-table-wrap, .admin-table-wrap {
  overflow-x: auto;
  border-radius: var(--r-md);
  border: 1px solid var(--frost);
  box-shadow: var(--e-2);
  background: #fff;
}

/* Layout helpers */
.wrap, .sd-wrap, .cw-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.cw-app-wrap { width: 100%; max-width: var(--app); margin: 0 auto; padding: 0 16px; }
.section, .sd-section, .cw-section { padding: 76px 0; position: relative; }
.cw-head { max-width: 680px; margin-bottom: 36px; }
.cw-head h2 { font-size: clamp(26px, 4vw, 38px); margin: 10px 0 12px; }
.cw-head p, .sd-lead, .sd-sub { color: var(--slate); font-size: 15.5px; line-height: 1.68; }
.m-note, .sd-note, .muted { color: var(--slate); font-size: 12.5px; line-height: 1.6; }
.cw-grid { display: grid; gap: 18px; }
.cw-stack > * + * { margin-top: 16px; }
.cw-row { display: flex; align-items: center; gap: 12px; }
.cw-between { display: flex; align-items: center; justify-content: space-between; gap: 14px; }

/* ----------------------------------------------------------- 8. ANIMATIONS */
@keyframes hydroGloss {
  0%, 62% { transform: translateX(-220%) skewX(-22deg); }
  100%    { transform: translateX(380%) skewX(-22deg); }
}
@keyframes causticSweep {
  0%, 70% { transform: translateX(-180%) skewX(-18deg); }
  100%    { transform: translateX(360%) skewX(-18deg); }
}
@keyframes waveFloat   { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes dropPulse   { 0%, 100% { transform: scale(1); opacity: .92; } 50% { transform: scale(1.16); opacity: 1; } }
@keyframes dotPulse    { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.78); } }
@keyframes ceramicShimmer { 0% { transform: translateX(-140%); } 100% { transform: translateX(240%); } }
@keyframes softReveal  { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes auroraA     { 0%, 100% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(28px,-22px,0) scale(1.12); } }
@keyframes auroraB     { 0%, 100% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(-26px,24px,0) scale(1.09); } }
@keyframes haloSpin    { from { transform: rotate(0); } to { transform: rotate(360deg); } }
@keyframes prismPulse  { 0%, 100% { box-shadow: 0 0 0 0 rgba(56,182,255,.32); } 50% { box-shadow: 0 0 26px 4px rgba(56,182,255,.22); } }
@keyframes iconBob     { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-3.5px) rotate(-3deg); } }
@keyframes ticketTilt  { 0%, 100% { transform: rotate(-6deg) translateY(0); } 50% { transform: rotate(6deg) translateY(-3px); } }
@keyframes soundWaveBar{ 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }
@keyframes kenBurns    { 0%, 100% { transform: scale(1) translate3d(0,0,0); } 50% { transform: scale(1.055) translate3d(-6px,-3px,0); } }
@keyframes neonSweep   { 0% { transform: translateX(-120%) skewX(-18deg); opacity: 0; } 35% { opacity: .7; } 100% { transform: translateX(260%) skewX(-18deg); opacity: 0; } }
@keyframes routeBar    { 0% { width: 0; } 55% { width: 72%; } 100% { width: 100%; } }
@keyframes ripplePing  { 0% { transform: scale(.6); opacity: .8; } 100% { transform: scale(2.4); opacity: 0; } }
@keyframes floatY      { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes sheenSlide  { 0% { background-position: -220% 0; } 100% { background-position: 220% 0; } }
@keyframes popIn       { from { opacity: 0; transform: translateY(26px) scale(.96); } to { opacity: 1; transform: none; } }

.anim-wave-float   { animation: waveFloat 4.6s ease-in-out infinite; }
.anim-drop         { transform-box: fill-box; transform-origin: center; animation: dropPulse 3.2s ease-in-out infinite; }
.anim-drop-delay   { transform-box: fill-box; transform-origin: center; animation: dropPulse 3.2s ease-in-out .9s infinite; }
.anim-shimmer      { animation: ceramicShimmer 4.5s ease-in-out infinite; }
.anim-halo-spin    { animation: haloSpin 18s linear infinite; }
.anim-spin-wheel   { animation: haloSpin 9s linear infinite; }
.anim-prism-pulse  { animation: prismPulse 3.4s ease-in-out infinite; }
.anim-icon-bob     { animation: iconBob 3.1s ease-in-out infinite; }
.anim-ticket-tilt  { animation: ticketTilt 3.4s ease-in-out infinite; }
.anim-kenburns     { animation: kenBurns 12s ease-in-out infinite; }
.anim-neon-sweep   { animation: neonSweep 4.8s ease-in-out infinite; }
.anim-float        { animation: floatY 5.4s ease-in-out infinite; }
.view-soft-in      { animation: softReveal .34s var(--ease-soft) forwards; }

/* Live ping dot */
.cw-ping { position: relative; display: inline-flex; width: 8px; height: 8px; color: var(--sky); }
.cw-ping::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: currentColor;
  animation: ripplePing 1.8s var(--ease-soft) infinite;
}
.cw-ping::after { content: ''; position: relative; width: 100%; height: 100%; border-radius: 50%; background: currentColor; }

/* Equaliser bars */
.cw-eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 11px; }
.cw-eq i { display: block; width: 2px; height: 100%; border-radius: 999px; background: currentColor; }
.cw-eq i:nth-child(1) { transform-origin: bottom; animation: soundWaveBar 1.1s ease-in-out infinite; }
.cw-eq i:nth-child(2) { transform-origin: bottom; animation: soundWaveBar .85s ease-in-out .2s infinite; }
.cw-eq i:nth-child(3) { transform-origin: bottom; animation: soundWaveBar 1.25s ease-in-out .4s infinite; }

/* Scroll reveal choreography */
.reveal-stage, [data-reveal] {
  opacity: 0;
  transform: translateY(18px) scale(.988);
  transition: opacity var(--t-slow) var(--ease-soft), transform var(--t-slow) var(--ease-soft);
  transition-delay: var(--cw-d, 0ms);
}
.reveal-stage.is-visible, [data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal="left"]  { transform: translateX(-24px); }
[data-reveal="right"] { transform: translateX(24px); }
[data-reveal="zoom"]  { transform: scale(.94); }

[data-countup], [data-count] { font-variant-numeric: tabular-nums; }

/* Magnetic hover lift */
.cw-lift { transition: transform var(--t-med) var(--ease-silk), box-shadow var(--t-med) ease; }
.cw-lift:hover { transform: translateY(-4px); box-shadow: var(--e-4); }

/* Shimmer skeleton */
.cw-skeleton {
  background: linear-gradient(90deg, var(--cloud) 25%, #fff 50%, var(--cloud) 75%);
  background-size: 220% 100%;
  animation: sheenSlide 1.6s linear infinite;
  border-radius: var(--r-sm);
  color: transparent !important;
}

/* ---------------------------------------------------------- 9. PAGE LOADER */
.ap-loader, .cw-loader {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(56, 182, 255, .18), transparent 62%),
    linear-gradient(180deg, #EEF6FF, #F7FBFF);
  transition: opacity .5s ease, visibility .5s ease;
}
.ap-loader.is-done, .cw-loader.is-done { opacity: 0; visibility: hidden; }
.ap-loader-road, .cw-loader-road {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--sky), transparent);
  animation: ceramicShimmer 2.4s linear infinite;
}
.ap-loader-core, .cw-loader-core { display: flex; flex-direction: column; align-items: center; gap: 13px; }
.ap-loader-ring, .cw-loader-ring { position: relative; display: grid; place-items: center; width: 118px; height: 118px; }
.ap-loader-ring svg, .cw-loader-ring svg { position: absolute; inset: 0; }
.ap-loader-ring .c, .cw-loader-ring .c { stroke: rgba(0, 123, 255, .1); stroke-width: 2; }
.ap-loader-ring .t, .cw-loader-ring .t { stroke: rgba(0, 123, 255, .07); stroke-width: 6; }
.ap-loader-ring .a, .cw-loader-ring .a { stroke: var(--azure); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 90 240; transform-origin: center; animation: haloSpin 1.5s linear infinite; }
.ap-loader-ring .b, .cw-loader-ring .b { stroke: var(--sky); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 40 220; transform-origin: center; animation: haloSpin 2.6s linear infinite reverse; }
.ap-loader-ring img, .cw-loader-ring img { border-radius: 50%; }
.ap-loader-core strong, .cw-loader-core strong {
  font-family: var(--f-emblem);
  font-style: italic;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .14em;
  color: var(--sapphire);
}
.ap-loader-core small, .cw-loader-core small { font-family: var(--f-mono); font-size: 10.5px; color: var(--slate); letter-spacing: .06em; }
.ap-loader-bar, .cw-loader-bar { display: block; width: 168px; height: 3px; border-radius: 999px; background: var(--frost); overflow: hidden; }
.ap-loader-bar i, .cw-loader-bar i { display: block; height: 100%; width: 40%; border-radius: 999px; background: linear-gradient(90deg, var(--sky), var(--azure)); animation: ceramicShimmer 1.3s ease-in-out infinite; }

/* -------------------------------------------------------- 10. ACCESSIBILITY */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal-stage, [data-reveal] { opacity: 1 !important; transform: none !important; }
  #cwAmbient, .cw-aurora { display: none; }
}

@media (max-width: 720px) {
  body { font-size: 14.5px; }
  .section, .sd-section, .cw-section { padding: 52px 0; }
  .wrap, .sd-wrap, .cw-wrap { padding: 0 16px; }
  .cw-head { margin-bottom: 26px; }
}

/* ==========================================================================
   RUNTIME SUPPLEMENT — classes emitted by cw-core.js
   ========================================================================== */

/* Toast internals as the runtime builds them */
.cw-toast { pointer-events: auto; position: relative; }
.cw-toast.is-out { opacity: 0; transform: translateY(-10px) scale(.97); }
.cw-toast-ico {
  flex: none;
  width: 32px; height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, #38B6FF, #0052CC);
  color: #fff;
  font-style: normal;
}
.cw-toast-ico svg { width: 17px; height: 17px; }
.cw-toast.is-success .cw-toast-ico { background: linear-gradient(135deg, #34D399, #059669); }
.cw-toast.is-error   .cw-toast-ico { background: linear-gradient(135deg, #FB7185, #DC2626); }
.cw-toast.is-warn    .cw-toast-ico { background: linear-gradient(135deg, #FBBF24, #D97706); }
.cw-toast-body { flex: 1; min-width: 0; padding-right: 16px; }
.cw-toast-x {
  position: absolute;
  top: 7px; right: 8px;
  display: grid;
  place-items: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  color: var(--slate);
  font-size: 15px;
  line-height: 1;
  transition: all var(--t-fast) ease;
}
.cw-toast-x:hover { background: var(--cloud); color: var(--sapphire); }

/* Route progress ribbon */
.cw-route-bar {
  position: fixed;
  left: 0; top: 0;
  z-index: 10000;
  height: 2.5px;
  width: 0;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(90deg, #38B6FF, #007BFF 55%, #004EC2);
  box-shadow: 0 0 12px rgba(56, 182, 255, .8);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.cw-route-bar.is-active { opacity: 1; animation: routeBar 1.5s var(--ease-soft) infinite; }
.cw-route-bar.is-done { width: 100%; opacity: 0; }

/* In-button spinner for [data-js-submit] */
.cw-btn-spin {
  display: inline-block;
  flex: none;
  width: 14px; height: 14px;
  margin-right: 8px;
  vertical-align: -2px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-right-color: transparent;
  animation: haloSpin .72s linear infinite;
}
.is-loading { cursor: progress; }
button.is-loading, a.is-loading { pointer-events: none; }

/* Copy acknowledgement pulse */
.is-copied { animation: popIn .34s var(--ease-pop); }

/* Scroll lock while a drawer or sheet owns the view */
html.cw-lock, html.cw-lock body { overflow: hidden; }

/* Pointer-tilt lift */
.cw-lift {
  transform: perspective(900px) rotateY(var(--lift-x, 0deg)) rotateX(var(--lift-y, 0deg));
  transform-style: preserve-3d;
}
.cw-lift:hover { transform: perspective(900px) rotateY(var(--lift-x, 0deg)) rotateX(var(--lift-y, 0deg)) translateY(-4px); }

/* Progressive-enhancement gate: hide reveal targets only once JS is live */
html:not(.cw-ready) [data-reveal], html:not(.cw-ready) .reveal-stage { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .cw-route-bar.is-active { animation: none; width: 42%; }
  .cw-btn-spin { animation-duration: 1.6s; }
  .cw-lift, .cw-lift:hover { transform: none; }
}

/* ── Utilitas putar: dipakai pada arc SVG (rotor paket di /beranda).
   transform-box/origin wajib, karena elemen SVG berputar di sekitar
   kotak pandangnya sendiri, bukan di sekitar titik 0,0 kanvas. ── */
.anim-spin {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: haloSpin 2.6s linear infinite;
}
.anim-spin-slow { animation-duration: 6s; }

@media (prefers-reduced-motion: reduce) {
  .anim-spin, .anim-spin-slow { animation: none; }
}
