/*
 * Slotivo PR4f — BARBERSHOP KOSTUR 4 design tokens.
 *
 * Defines:
 *   1. Color, spacing, font CSS variables, scoped per STIL via the
 *      `data-slotivo-stil="S1|S2|S3|S4"` attribute on the root element.
 *   2. A focused set of utility classes (.bg-on-surface, .text-primary,
 *      …) that map to those variables, scoped under
 *      `body[class*='slotivo-kostur-d']` so they cannot leak into the
 *      rest of the app.
 *
 * Per-STIL theming: only the COLOR section changes between stilovi.
 * Spacing + fonts + utility shape stay identical.
 */

/* -------------------------------------------------------------------------
 * 1. KOSTUR 4 — STIL 1 (game-ui) defaults — cinematic gold
 * ------------------------------------------------------------------------- */
body[class*='slotivo-kostur-d'][data-slotivo-stil='S1'],
body[class*='slotivo-kostur-d']:not([data-slotivo-stil]) {
  --surface-dim: #131313;
  --surface: #131313;
  --background: #131313;
  --surface-variant: #353534;
  --surface-bright: #3a3939;
  --surface-container: #201f1f;
  --surface-container-low: #1c1b1b;
  --surface-container-lowest: #0e0e0e;
  --surface-container-high: #2a2a2a;
  --surface-container-highest: #353534;
  --surface-glass: rgba(26, 26, 26, 0.6);
  --surface-tint: #e9c349;
  --on-surface: #e5e2e1;
  --on-surface-variant: #d0c5af;
  --on-background: #e5e2e1;
  --outline: #99907c;
  --outline-variant: #4d4635;
  --primary: #f2ca50;
  --primary-fixed: #ffe088;
  --primary-fixed-dim: #e9c349;
  --on-primary: #3c2f00;
  --on-primary-fixed: #241a00;
  --on-primary-fixed-variant: #574500;
  --primary-container: #d4af37;
  --on-primary-container: #554300;
  --secondary: #c8c6c5;
  --on-secondary: #313030;
  --secondary-fixed: #e5e2e1;
  --on-secondary-fixed: #1c1b1b;
  --on-secondary-fixed-variant: #474746;
  --secondary-fixed-dim: #c8c6c5;
  --secondary-container: #474746;
  --on-secondary-container: #b7b5b4;
  --tertiary: #d0cdcd;
  --on-tertiary: #303030;
  --tertiary-fixed: #e4e2e1;
  --on-tertiary-fixed: #1b1c1c;
  --on-tertiary-fixed-variant: #474746;
  --tertiary-fixed-dim: #c8c6c5;
  --tertiary-container: #b4b2b2;
  --on-tertiary-container: #454545;
  --inverse-surface: #e5e2e1;
  --inverse-on-surface: #313030;
  --inverse-primary: #735c00;
  --error: #ffb4ab;
  --on-error: #690005;
  --error-container: #93000a;
  --on-error-container: #ffdad6;
  --glass-border: rgba(212, 175, 55, 0.2);
  --glass-border-active: rgba(242, 202, 80, 1);
}

/* -------------------------------------------------------------------------
 * 1b. KOSTUR 4 — STIL 2 (game-cinematicbarber-ui) — same gold base
 * ------------------------------------------------------------------------- */
body[class*='slotivo-kostur-d'][data-slotivo-stil='S2'] {
  --surface-dim: #131313;
  --surface: #131313;
  --background: #131313;
  --surface-variant: #353534;
  --surface-bright: #3a3939;
  --surface-container: #201f1f;
  --surface-container-low: #1c1b1b;
  --surface-container-lowest: #0e0e0e;
  --surface-container-high: #2a2a2a;
  --surface-container-highest: #353534;
  --surface-glass: rgba(26, 26, 26, 0.65);
  --surface-tint: #e9c349;
  --on-surface: #e5e2e1;
  --on-surface-variant: #d0c5af;
  --on-background: #e5e2e1;
  --outline: #99907c;
  --outline-variant: #4d4635;
  --primary: #f2ca50;
  --primary-fixed: #ffe088;
  --primary-fixed-dim: #e9c349;
  --on-primary: #3c2f00;
  --on-primary-fixed: #241a00;
  --on-primary-fixed-variant: #574500;
  --primary-container: #d4af37;
  --on-primary-container: #554300;
  --secondary: #c8c6c5;
  --on-secondary: #313030;
  --secondary-fixed: #e5e2e1;
  --on-secondary-fixed: #1c1b1b;
  --on-secondary-fixed-variant: #474746;
  --secondary-fixed-dim: #c8c6c5;
  --secondary-container: #474746;
  --on-secondary-container: #b7b5b4;
  --tertiary: #d0cdcd;
  --on-tertiary: #303030;
  --tertiary-fixed: #e4e2e1;
  --on-tertiary-fixed: #1b1c1c;
  --on-tertiary-fixed-variant: #474746;
  --tertiary-fixed-dim: #c8c6c5;
  --tertiary-container: #b4b2b2;
  --on-tertiary-container: #454545;
  --inverse-surface: #e5e2e1;
  --inverse-on-surface: #313030;
  --inverse-primary: #735c00;
  --error: #ffb4ab;
  --on-error: #690005;
  --error-container: #93000a;
  --on-error-container: #ffdad6;
  --glass-border: rgba(212, 175, 55, 0.25);
  --glass-border-active: rgba(242, 202, 80, 1);
}

/* -------------------------------------------------------------------------
 * 1c. KOSTUR 4 — STIL 3 (game-darktechbarber-ui)
 * ------------------------------------------------------------------------- */
body[class*='slotivo-kostur-d'][data-slotivo-stil='S3'] {
  --surface-dim: #0c1324;
  --surface: #0c1324;
  --background: #0c1324;
  --surface-variant: #2e3447;
  --surface-bright: #33394c;
  --surface-container: #191f31;
  --surface-container-low: #151b2d;
  --surface-container-lowest: #070d1f;
  --surface-container-high: #23293c;
  --surface-container-highest: #2e3447;
  --surface-glass: rgba(12, 19, 36, 0.75);
  --surface-tint: #c1c7cf;
  --on-surface: #dce1fb;
  --on-surface-variant: #c5c6cb;
  --on-background: #dce1fb;
  --outline: #8e9195;
  --outline-variant: #44474a;
  --primary: #ffffff;
  --primary-fixed: #dde3eb;
  --primary-fixed-dim: #c1c7cf;
  --on-primary: #2b3137;
  --on-primary-fixed: #161c22;
  --on-primary-fixed-variant: #41474e;
  --primary-container: #dde3eb;
  --on-primary-container: #5f656c;
  --secondary: #b9c7e0;
  --on-secondary: #233144;
  --secondary-fixed: #d5e3fd;
  --on-secondary-fixed: #0d1c2f;
  --on-secondary-fixed-variant: #3a485c;
  --secondary-fixed-dim: #b9c7e0;
  --secondary-container: #3c4a5e;
  --on-secondary-container: #abb9d2;
  --tertiary: #ffffff;
  --on-tertiary: #283044;
  --tertiary-fixed: #dae2fd;
  --on-tertiary-fixed: #131b2e;
  --on-tertiary-fixed-variant: #3f465c;
  --tertiary-fixed-dim: #bec6e0;
  --tertiary-container: #dae2fd;
  --on-tertiary-container: #5c647a;
  --inverse-surface: #dce1fb;
  --inverse-on-surface: #2a3043;
  --inverse-primary: #595f66;
  --error: #ffb4ab;
  --on-error: #690005;
  --error-container: #93000a;
  --on-error-container: #ffdad6;
  --glass-border: rgba(193, 199, 207, 0.2);
  --glass-border-active: rgba(255, 255, 255, 0.6);
}

/* -------------------------------------------------------------------------
 * 1d. KOSTUR 4 — STIL 4 (game-cyberbarber-ui)
 * ------------------------------------------------------------------------- */
body[class*='slotivo-kostur-d'][data-slotivo-stil='S4'] {
  --surface-dim: #131314;
  --surface: #131314;
  --background: #131314;
  --surface-variant: #353436;
  --surface-bright: #3a393a;
  --surface-container: #201f20;
  --surface-container-low: #1c1b1c;
  --surface-container-lowest: #0e0e0f;
  --surface-container-high: #2a2a2b;
  --surface-container-highest: #353436;
  --surface-glass: rgba(19, 19, 20, 0.75);
  --surface-tint: #00dbe9;
  --on-surface: #e5e2e3;
  --on-surface-variant: #b9cacb;
  --on-background: #e5e2e3;
  --outline: #849495;
  --outline-variant: #3b494b;
  --primary: #dbfcff;
  --primary-fixed: #7df4ff;
  --primary-fixed-dim: #00dbe9;
  --on-primary: #00363a;
  --on-primary-fixed: #002022;
  --on-primary-fixed-variant: #004f54;
  --primary-container: #00f0ff;
  --on-primary-container: #006970;
  --secondary: #ebb2ff;
  --on-secondary: #520072;
  --secondary-fixed: #f8d8ff;
  --on-secondary-fixed: #320047;
  --on-secondary-fixed-variant: #74009f;
  --secondary-fixed-dim: #ebb2ff;
  --secondary-container: #b600f8;
  --on-secondary-container: #fff6fc;
  --tertiary: #f6f5f5;
  --on-tertiary: #2f3131;
  --tertiary-fixed: #e2e2e2;
  --on-tertiary-fixed: #1a1c1c;
  --on-tertiary-fixed-variant: #454747;
  --tertiary-fixed-dim: #c6c6c7;
  --tertiary-container: #d9d9d9;
  --on-tertiary-container: #5d5f5f;
  --inverse-surface: #e5e2e3;
  --inverse-on-surface: #313031;
  --inverse-primary: #006970;
  --error: #ffb4ab;
  --on-error: #690005;
  --error-container: #93000a;
  --on-error-container: #ffdad6;
  --glass-border: rgba(0, 240, 255, 0.25);
  --glass-border-active: rgba(0, 240, 255, 0.8);
}

/* -------------------------------------------------------------------------
 * 2. Spacing scale (shared by all stilovi in K4)
 * ------------------------------------------------------------------------- */
body[class*='slotivo-kostur-d'] {
  --margin-mobile: 16px;
  --margin: 32px;
  --margin-desktop: 64px;
  --container-max: 1280px;
  --gutter: 16px;
  --unit: 4px;
  --stack-sm: 8px;
  --stack-md: 20px;
  --stack-lg: 40px;
  --container-padding: 24px;
}

/* -------------------------------------------------------------------------
 * 3. Utility classes — background colors
 * ------------------------------------------------------------------------- */
body[class*='slotivo-kostur-d'] .bg-background        { background-color: var(--background); }
body[class*='slotivo-kostur-d'] .bg-surface           { background-color: var(--surface); }
body[class*='slotivo-kostur-d'] .bg-surface-dim       { background-color: var(--surface-dim); }
body[class*='slotivo-kostur-d'] .bg-surface-variant   { background-color: var(--surface-variant); }
body[class*='slotivo-kostur-d'] .bg-surface-bright    { background-color: var(--surface-bright); }
body[class*='slotivo-kostur-d'] .bg-surface-container { background-color: var(--surface-container); }
body[class*='slotivo-kostur-d'] .bg-surface-container-low     { background-color: var(--surface-container-low); }
body[class*='slotivo-kostur-d'] .bg-surface-container-lowest  { background-color: var(--surface-container-lowest); }
body[class*='slotivo-kostur-d'] .bg-surface-container-high    { background-color: var(--surface-container-high); }
body[class*='slotivo-kostur-d'] .bg-surface-container-highest { background-color: var(--surface-container-highest); }
body[class*='slotivo-kostur-d'] .bg-on-surface         { background-color: var(--on-surface); }
body[class*='slotivo-kostur-d'] .bg-on-surface-variant { background-color: var(--on-surface-variant); }
body[class*='slotivo-kostur-d'] .bg-on-background      { background-color: var(--on-background); }
body[class*='slotivo-kostur-d'] .bg-primary            { background-color: var(--primary); }
body[class*='slotivo-kostur-d'] .bg-primary-container  { background-color: var(--primary-container); }
body[class*='slotivo-kostur-d'] .bg-secondary          { background-color: var(--secondary); }
body[class*='slotivo-kostur-d'] .bg-secondary-container { background-color: var(--secondary-container); }
body[class*='slotivo-kostur-d'] .bg-tertiary           { background-color: var(--tertiary); }
body[class*='slotivo-kostur-d'] .bg-tertiary-fixed-dim { background-color: var(--tertiary-fixed-dim); }
body[class*='slotivo-kostur-d'] .bg-tertiary-container { background-color: var(--tertiary-container); }
body[class*='slotivo-kostur-d'] .bg-outline           { background-color: var(--outline); }
body[class*='slotivo-kostur-d'] .bg-outline-variant   { background-color: var(--outline-variant); }
body[class*='slotivo-kostur-d'] .bg-error             { background-color: var(--error); }

/* opacity-modifier helpers */
body[class*='slotivo-kostur-d'] .bg-background\/40     { background-color: color-mix(in srgb, var(--background) 40%, transparent); }
body[class*='slotivo-kostur-d'] .bg-background\/50     { background-color: color-mix(in srgb, var(--background) 50%, transparent); }
body[class*='slotivo-kostur-d'] .bg-background\/80     { background-color: color-mix(in srgb, var(--background) 80%, transparent); }
body[class*='slotivo-kostur-d'] .bg-background\/90     { background-color: color-mix(in srgb, var(--background) 90%, transparent); }
body[class*='slotivo-kostur-d'] .bg-background\/95     { background-color: color-mix(in srgb, var(--background) 95%, transparent); }
body[class*='slotivo-kostur-d'] .bg-surface-container\/80 { background-color: color-mix(in srgb, var(--surface-container) 80%, transparent); }
body[class*='slotivo-kostur-d'] .bg-primary\/10        { background-color: color-mix(in srgb, var(--primary) 10%, transparent); }
body[class*='slotivo-kostur-d'] .bg-primary\/90        { background-color: color-mix(in srgb, var(--primary) 90%, transparent); }
body[class*='slotivo-kostur-d'] .bg-tertiary\/20       { background-color: color-mix(in srgb, var(--tertiary) 20%, transparent); }
body[class*='slotivo-kostur-d'] .bg-secondary\/90      { background-color: color-mix(in srgb, var(--secondary) 90%, transparent); }

body[class*='slotivo-kostur-d'] .hover\:bg-primary:hover            { background-color: var(--primary); }
body[class*='slotivo-kostur-d'] .hover\:bg-primary\/10:hover        { background-color: color-mix(in srgb, var(--primary) 10%, transparent); }
body[class*='slotivo-kostur-d'] .hover\:bg-primary\/90:hover        { background-color: color-mix(in srgb, var(--primary) 90%, transparent); }
body[class*='slotivo-kostur-d'] .hover\:bg-tertiary:hover           { background-color: var(--tertiary); }
body[class*='slotivo-kostur-d'] .hover\:bg-tertiary-fixed-dim:hover { background-color: var(--tertiary-fixed-dim); }
body[class*='slotivo-kostur-d'] .hover\:bg-surface:hover            { background-color: var(--surface); }
body[class*='slotivo-kostur-d'] .hover\:bg-surface-container:hover  { background-color: var(--surface-container); }
body[class*='slotivo-kostur-d'] .hover\:bg-surface-container-high:hover    { background-color: var(--surface-container-high); }
body[class*='slotivo-kostur-d'] .hover\:bg-surface-container-highest:hover { background-color: var(--surface-container-highest); }
body[class*='slotivo-kostur-d'] .hover\:bg-outline-variant:hover    { background-color: var(--outline-variant); }
body[class*='slotivo-kostur-d'] .hover\:bg-secondary\/90:hover      { background-color: color-mix(in srgb, var(--secondary) 90%, transparent); }

/* -------------------------------------------------------------------------
 * 4. Utility classes — text colors
 * ------------------------------------------------------------------------- */
body[class*='slotivo-kostur-d'] .text-on-surface          { color: var(--on-surface); }
body[class*='slotivo-kostur-d'] .text-on-surface-variant  { color: var(--on-surface-variant); }
body[class*='slotivo-kostur-d'] .text-on-background       { color: var(--on-background); }
body[class*='slotivo-kostur-d'] .text-primary             { color: var(--primary); }
body[class*='slotivo-kostur-d'] .text-on-primary          { color: var(--on-primary); }
body[class*='slotivo-kostur-d'] .text-primary-container     { color: var(--primary-container); }
body[class*='slotivo-kostur-d'] .text-on-primary-container { color: var(--on-primary-container); }
body[class*='slotivo-kostur-d'] .text-secondary           { color: var(--secondary); }
body[class*='slotivo-kostur-d'] .text-on-secondary        { color: var(--on-secondary); }
body[class*='slotivo-kostur-d'] .text-on-secondary-container { color: var(--on-secondary-container); }
body[class*='slotivo-kostur-d'] .text-tertiary            { color: var(--tertiary); }
body[class*='slotivo-kostur-d'] .text-on-tertiary         { color: var(--on-tertiary); }
body[class*='slotivo-kostur-d'] .text-on-tertiary-container { color: var(--on-tertiary-container); }
body[class*='slotivo-kostur-d'] .text-outline             { color: var(--outline); }
body[class*='slotivo-kostur-d'] .text-outline-variant     { color: var(--outline-variant); }
body[class*='slotivo-kostur-d'] .text-background          { color: var(--background); }
body[class*='slotivo-kostur-d'] .text-error               { color: var(--error); }
body[class*='slotivo-kostur-d'] .text-secondary-container { color: var(--secondary-container); }

body[class*='slotivo-kostur-d'] .text-on-surface-variant\/50 { color: color-mix(in srgb, var(--on-surface-variant) 50%, transparent); }

body[class*='slotivo-kostur-d'] .hover\:text-on-surface:hover     { color: var(--on-surface); }
body[class*='slotivo-kostur-d'] .hover\:text-primary:hover        { color: var(--primary); }
body[class*='slotivo-kostur-d'] .hover\:text-on-primary:hover    { color: var(--on-primary); }
body[class*='slotivo-kostur-d'] .hover\:text-tertiary:hover       { color: var(--tertiary); }
body[class*='slotivo-kostur-d'] .hover\:text-on-tertiary:hover    { color: var(--on-tertiary); }
body[class*='slotivo-kostur-d'] .hover\:text-outline:hover        { color: var(--outline); }
body[class*='slotivo-kostur-d'] .hover\:text-background:hover     { color: var(--background); }

body[class*='slotivo-kostur-d'] .placeholder\:text-outline-variant::placeholder {
  color: var(--outline-variant);
}

/* -------------------------------------------------------------------------
 * 5. Utility classes — borders
 * ------------------------------------------------------------------------- */
body[class*='slotivo-kostur-d'] .border-outline         { border-color: var(--outline); }
body[class*='slotivo-kostur-d'] .border-outline-variant { border-color: var(--outline-variant); }
body[class*='slotivo-kostur-d'] .border-on-surface      { border-color: var(--on-surface); }
body[class*='slotivo-kostur-d'] .border-primary         { border-color: var(--primary); }
body[class*='slotivo-kostur-d'] .border-secondary       { border-color: var(--secondary); }
body[class*='slotivo-kostur-d'] .border-secondary-container { border-color: var(--secondary-container); }
body[class*='slotivo-kostur-d'] .border-tertiary        { border-color: var(--tertiary); }
body[class*='slotivo-kostur-d'] .border-tertiary-container { border-color: var(--tertiary-container); }
body[class*='slotivo-kostur-d'] .border-background      { border-color: var(--background); }

body[class*='slotivo-kostur-d'] .border-outline-variant\/20 { border-color: color-mix(in srgb, var(--outline-variant) 20%, transparent); }
body[class*='slotivo-kostur-d'] .border-outline-variant\/30 { border-color: color-mix(in srgb, var(--outline-variant) 30%, transparent); }
body[class*='slotivo-kostur-d'] .border-outline-variant\/50 { border-color: color-mix(in srgb, var(--outline-variant) 50%, transparent); }
body[class*='slotivo-kostur-d'] .border-primary\/10         { border-color: color-mix(in srgb, var(--primary) 10%, transparent); }
body[class*='slotivo-kostur-d'] .border-primary\/20         { border-color: color-mix(in srgb, var(--primary) 20%, transparent); }
body[class*='slotivo-kostur-d'] .border-primary\/30         { border-color: color-mix(in srgb, var(--primary) 30%, transparent); }
body[class*='slotivo-kostur-d'] .border-primary\/50         { border-color: color-mix(in srgb, var(--primary) 50%, transparent); }
body[class*='slotivo-kostur-d'] .border-tertiary\/20        { border-color: color-mix(in srgb, var(--tertiary) 20%, transparent); }
body[class*='slotivo-kostur-d'] .border-tertiary\/30        { border-color: color-mix(in srgb, var(--tertiary) 30%, transparent); }
body[class*='slotivo-kostur-d'] .border-tertiary\/50        { border-color: color-mix(in srgb, var(--tertiary) 50%, transparent); }

body[class*='slotivo-kostur-d'] .hover\:border-outline:hover         { border-color: var(--outline); }
body[class*='slotivo-kostur-d'] .hover\:border-outline-variant:hover   { border-color: var(--outline-variant); }
body[class*='slotivo-kostur-d'] .hover\:border-on-surface:hover      { border-color: var(--on-surface); }
body[class*='slotivo-kostur-d'] .hover\:border-primary:hover         { border-color: var(--primary); }
body[class*='slotivo-kostur-d'] .hover\:border-tertiary:hover        { border-color: var(--tertiary); }
body[class*='slotivo-kostur-d'] .hover\:border-secondary:hover       { border-color: var(--secondary); }

body[class*='slotivo-kostur-d'] .focus\:border-on-surface:focus   { border-color: var(--on-surface); }
body[class*='slotivo-kostur-d'] .focus\:border-primary:focus      { border-color: var(--primary); }
body[class*='slotivo-kostur-d'] .focus\:border-secondary:focus    { border-color: var(--secondary); }
body[class*='slotivo-kostur-d'] .focus\:border-tertiary:focus     { border-color: var(--tertiary); }

body[class*='slotivo-kostur-d'] .focus\:ring-tertiary:focus {
  --tw-ring-color: var(--tertiary);
  box-shadow: 0 0 0 1px var(--tertiary);
}

/* -------------------------------------------------------------------------
 * 6. Utility classes — selection / opacity
 * ------------------------------------------------------------------------- */
body[class*='slotivo-kostur-d'] .selection\:bg-tertiary ::selection,
body[class*='slotivo-kostur-d'].selection\:bg-tertiary ::selection {
  background-color: var(--tertiary);
}

body[class*='slotivo-kostur-d'] .selection\:text-on-tertiary ::selection,
body[class*='slotivo-kostur-d'].selection\:text-on-tertiary ::selection {
  color: var(--on-tertiary);
}

body[class*='slotivo-kostur-d'] .hover\:opacity-80:hover { opacity: 0.8; }
body[class*='slotivo-kostur-d'] .hover\:opacity-90:hover { opacity: 0.9; }

/* -------------------------------------------------------------------------
 * 7. Spacing utilities
 * ------------------------------------------------------------------------- */
body[class*='slotivo-kostur-d'] .px-gutter              { padding-left: var(--gutter); padding-right: var(--gutter); }
body[class*='slotivo-kostur-d'] .px-container-padding   { padding-left: var(--container-padding); padding-right: var(--container-padding); }
body[class*='slotivo-kostur-d'] .px-margin-mobile       { padding-left: var(--margin-mobile); padding-right: var(--margin-mobile); }
body[class*='slotivo-kostur-d'] .p-container-padding  { padding: var(--container-padding); }
body[class*='slotivo-kostur-d'] .py-stack-lg            { padding-top: var(--stack-lg); padding-bottom: var(--stack-lg); }
body[class*='slotivo-kostur-d'] .py-stack-md            { padding-top: var(--stack-md); padding-bottom: var(--stack-md); }
body[class*='slotivo-kostur-d'] .pt-stack-lg            { padding-top: var(--stack-lg); }
body[class*='slotivo-kostur-d'] .pb-stack-lg            { padding-bottom: var(--stack-lg); }
body[class*='slotivo-kostur-d'] .mb-stack-lg            { margin-bottom: var(--stack-lg); }
body[class*='slotivo-kostur-d'] .mb-stack-md            { margin-bottom: var(--stack-md); }
body[class*='slotivo-kostur-d'] .mb-stack-sm            { margin-bottom: var(--stack-sm); }
body[class*='slotivo-kostur-d'] .mt-stack-md            { margin-top: var(--stack-md); }
body[class*='slotivo-kostur-d'] .mt-stack-lg            { margin-top: var(--stack-lg); }
body[class*='slotivo-kostur-d'] .gap-gutter             { gap: var(--gutter); }
body[class*='slotivo-kostur-d'] .gap-unit               { gap: var(--unit); }
body[class*='slotivo-kostur-d'] .gap-stack-sm           { gap: var(--stack-sm); }
body[class*='slotivo-kostur-d'] .gap-stack-md           { gap: var(--stack-md); }
body[class*='slotivo-kostur-d'] .gap-stack-lg           { gap: var(--stack-lg); }
body[class*='slotivo-kostur-d'] .max-w-container-max    { max-width: var(--container-max); }

@media (min-width: 768px) {
  body[class*='slotivo-kostur-d'] .md\:ml-80 { margin-left: 20rem; }
}

/* -------------------------------------------------------------------------
 * 8. Typography — font families & sizes
 * ------------------------------------------------------------------------- */
body[class*='slotivo-kostur-d'] .font-display-lg,
body[class*='slotivo-kostur-d'] .font-headline-md,
body[class*='slotivo-kostur-d'] .font-headline-sm {
  font-family: 'Playfair Display', Georgia, serif;
}

body[class*='slotivo-kostur-d'] .font-body-md,
body[class*='slotivo-kostur-d'] .font-body-lg {
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
}

body[class*='slotivo-kostur-d'] .font-label-caps,
body[class*='slotivo-kostur-d'] .font-ui-button {
  font-family: 'Geist', system-ui, sans-serif;
}

body[class*='slotivo-kostur-d'] .text-display-lg   { font-size: 48px; line-height: 1.1; letter-spacing: -0.02em; font-weight: 700; }
body[class*='slotivo-kostur-d'] .text-headline-md  { font-size: 32px; line-height: 1.2; font-weight: 600; }
body[class*='slotivo-kostur-d'] .text-headline-sm  { font-size: 24px; line-height: 1.2; font-weight: 600; }
body[class*='slotivo-kostur-d'] .text-body-lg      { font-size: 18px; line-height: 1.6; font-weight: 400; }
body[class*='slotivo-kostur-d'] .text-body-md      { font-size: 16px; line-height: 1.5; font-weight: 400; }
body[class*='slotivo-kostur-d'] .text-label-caps   { font-size: 12px; line-height: 1; letter-spacing: 0.15em; font-weight: 600; }
body[class*='slotivo-kostur-d'] .text-ui-button    { font-size: 14px; line-height: 1; letter-spacing: 0.05em; font-weight: 500; }

/* -------------------------------------------------------------------------
 * 9. Material Symbols
 * ------------------------------------------------------------------------- */
body[class*='slotivo-kostur-d'] .material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
}

body[class*='slotivo-kostur-d'] .material-symbols-outlined.fill {
  font-variation-settings: 'FILL' 1, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

/* -------------------------------------------------------------------------
 * 10. Game UI utilities (K4 HTML markup)
 * ------------------------------------------------------------------------- */
body[class*='slotivo-kostur-d'] .glass-panel {
  background: var(--surface-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border, rgba(212, 175, 55, 0.2));
}

body[class*='slotivo-kostur-d'] .glass-panel-active {
  background: rgba(26, 26, 26, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border-active, rgba(242, 202, 80, 1));
  box-shadow: 0 0 15px rgba(242, 202, 80, 0.3);
}

body[class*='slotivo-kostur-d'] .input-underline {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--glass-border, rgba(212, 175, 55, 0.3));
  border-radius: 0;
  color: var(--on-surface);
  width: 100%;
}

body[class*='slotivo-kostur-d'] .input-underline:focus {
  outline: none;
  box-shadow: none;
  border-bottom: 2px solid var(--primary-container);
}

body[class*='slotivo-kostur-d'] .gold-glow:focus-within {
  border-color: var(--primary-container);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

body[class*='slotivo-kostur-d'] .btn-gold {
  background-color: var(--primary-container);
  color: var(--on-primary);
  transition: all 0.3s ease;
}

body[class*='slotivo-kostur-d'] .btn-gold:hover {
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
  transform: scale(0.98);
}

body[class*='slotivo-kostur-d'] .subpage-header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 4rem;
}

body[class*='slotivo-kostur-d'] .subpage-header-spacer {
  width: 1px;
}

body[class*='slotivo-kostur-d'] .border-primary\/20 { border-color: color-mix(in srgb, var(--primary) 20%, transparent); }
body[class*='slotivo-kostur-d'] .border-primary\/30 { border-color: color-mix(in srgb, var(--primary) 30%, transparent); }
body[class*='slotivo-kostur-d'] .bg-primary\/5       { background-color: color-mix(in srgb, var(--primary) 5%, transparent); }
body[class*='slotivo-kostur-d'] .bg-primary\/10       { background-color: color-mix(in srgb, var(--primary) 10%, transparent); }
body[class*='slotivo-kostur-d'] .bg-surface\/80       { background-color: color-mix(in srgb, var(--surface) 80%, transparent); }
body[class*='slotivo-kostur-d'] .bg-surface\/95       { background-color: color-mix(in srgb, var(--surface) 95%, transparent); }
body[class*='slotivo-kostur-d'] .text-primary-container { color: var(--primary-container); }

body[class*='slotivo-kostur-d'] select.appearance-none {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: none !important;
}

body[class*='slotivo-kostur-d'] .hide-scrollbar::-webkit-scrollbar,
body[class*='slotivo-kostur-d'] .no-scrollbar::-webkit-scrollbar { display: none; }
body[class*='slotivo-kostur-d'] .hide-scrollbar,
body[class*='slotivo-kostur-d'] .no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

body[class*='slotivo-kostur-d'] ::-webkit-scrollbar         { width: 8px; }
body[class*='slotivo-kostur-d'] ::-webkit-scrollbar-track   { background: var(--surface-dim); }
body[class*='slotivo-kostur-d'] ::-webkit-scrollbar-thumb   { background: var(--surface-variant); border-radius: 4px; }
body[class*='slotivo-kostur-d'] ::-webkit-scrollbar-thumb:hover { background: var(--primary-container); }

/* -------------------------------------------------------------------------
 * 11. tech-panel — S3 (dark-tech white brackets)
 * ------------------------------------------------------------------------- */
body[class*='slotivo-kostur-d'][data-slotivo-stil='S3'] .tech-panel {
  background-color: rgba(25, 31, 49, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid #2e3447;
  position: relative;
}
body[class*='slotivo-kostur-d'][data-slotivo-stil='S3'] .tech-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  border-top: 1px solid #ffffff;
  border-left: 1px solid #ffffff;
  opacity: 0.4;
}
body[class*='slotivo-kostur-d'][data-slotivo-stil='S3'] .tech-panel::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 8px;
  height: 8px;
  border-bottom: 1px solid #ffffff;
  border-right: 1px solid #ffffff;
  opacity: 0.4;
}
body[class*='slotivo-kostur-d'][data-slotivo-stil='S3'] .tech-panel-active {
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.1), inset 0 0 10px rgba(255, 255, 255, 0.05);
  position: relative;
}
body[class*='slotivo-kostur-d'][data-slotivo-stil='S3'] .tech-panel-active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  border-top: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
}
body[class*='slotivo-kostur-d'][data-slotivo-stil='S3'] .tech-panel-active::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  border-bottom: 2px solid #ffffff;
  border-right: 2px solid #ffffff;
}

/* -------------------------------------------------------------------------
 * 12. tech-panel — S4 (cyber cyan brackets)
 * ------------------------------------------------------------------------- */
body[class*='slotivo-kostur-d'][data-slotivo-stil='S4'] .tech-panel {
  background-color: rgba(32, 31, 32, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 240, 255, 0.2);
  position: relative;
}
body[class*='slotivo-kostur-d'][data-slotivo-stil='S4'] .tech-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  border-top: 1px solid #00f0ff;
  border-left: 1px solid #00f0ff;
  opacity: 0.5;
}
body[class*='slotivo-kostur-d'][data-slotivo-stil='S4'] .tech-panel::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 8px;
  height: 8px;
  border-bottom: 1px solid #00f0ff;
  border-right: 1px solid #00f0ff;
  opacity: 0.5;
}
body[class*='slotivo-kostur-d'][data-slotivo-stil='S4'] .tech-panel-active {
  background-color: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.8);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.2), inset 0 0 10px rgba(0, 240, 255, 0.1);
  position: relative;
}
body[class*='slotivo-kostur-d'][data-slotivo-stil='S4'] .tech-panel-active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  border-top: 2px solid #00f0ff;
  border-left: 2px solid #00f0ff;
}
body[class*='slotivo-kostur-d'][data-slotivo-stil='S4'] .tech-panel-active::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  border-bottom: 2px solid #00f0ff;
  border-right: 2px solid #00f0ff;
}

/* -------------------------------------------------------------------------
 * 13. Sidebar active state shadows — per stil
 * ------------------------------------------------------------------------- */
body[class*='slotivo-kostur-d'] #global-sidebar .global-nav-link.is-active {
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}
body[class*='slotivo-kostur-d'][data-slotivo-stil='S3'] #global-sidebar .global-nav-link.is-active {
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.08);
}
body[class*='slotivo-kostur-d'][data-slotivo-stil='S4'] #global-sidebar .global-nav-link.is-active {
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.15);
}

/* -------------------------------------------------------------------------
 * 14. cyber-glow focus wrapper — S3/S4 booking fields
 * ------------------------------------------------------------------------- */
body[class*='slotivo-kostur-d'][data-slotivo-stil='S3'] .cyber-glow:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.12);
}
body[class*='slotivo-kostur-d'][data-slotivo-stil='S4'] .cyber-glow:focus-within {
  border-color: #00f0ff;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

/* -------------------------------------------------------------------------
 * 15. input-underline overrides — S3/S4 use bordered box, not bottom-only
 * ------------------------------------------------------------------------- */
body[class*='slotivo-kostur-d'][data-slotivo-stil='S3'] .input-underline {
  background: rgba(25, 31, 49, 0.5);
  border: 1px solid #2e3447;
  border-bottom-color: #2e3447;
  border-radius: 0.125rem;
  color: var(--on-surface);
  padding-left: 12px;
  padding-right: 12px;
}
body[class*='slotivo-kostur-d'][data-slotivo-stil='S3'] .input-underline:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(35, 41, 60, 0.8);
  box-shadow: none;
}
body[class*='slotivo-kostur-d'][data-slotivo-stil='S4'] .input-underline {
  background: rgba(32, 31, 32, 0.5);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-bottom-color: rgba(0, 240, 255, 0.2);
  border-radius: 0.125rem;
  color: var(--on-surface);
  padding-left: 12px;
  padding-right: 12px;
}
body[class*='slotivo-kostur-d'][data-slotivo-stil='S4'] .input-underline:focus {
  outline: none;
  border-color: #00f0ff;
  background: rgba(32, 31, 32, 0.8);
  box-shadow: none;
}

/* -------------------------------------------------------------------------
 * 16. bg-surface-container-high/50 opacity helper (tech nav hover)
 * ------------------------------------------------------------------------- */
body[class*='slotivo-kostur-d'] .hover\:bg-surface-container-high\/50:hover {
  background-color: color-mix(in srgb, var(--surface-container-high) 50%, transparent);
}
