/* SKILLEVADE Admin - Design System (übernommen aus globals.css) */

/* ── CSS-Variablen ─────────────────────────────────────── */
:root {
  color-scheme: dark;
  --primary-bg: #070707;
  --secondary-bg: #0f0f0f;
  --accent-color: #e94e1b;
  --accent-hover: #f25018;
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --border-color: #2a2a2a;
  --card-bg: #1a1a1a;

  /* Apple-craft tokens */
  --text-tertiary: rgba(255, 255, 255, 0.45);
  --text-quaternary: rgba(255, 255, 255, 0.28);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --ease-out-soft: cubic-bezier(0.22, 1, 0.36, 1);

  /* Glass Control Variables */
  --glass-blur: 12px;
  --glass-opacity: 0.08;
  --glass-saturation: 180%;
  --glass-brightness: 100%;
  --glass-border-opacity: 0.2;
  --glass-light: rgba(255, 255, 255, 0.1);
  --glass-dark: rgba(0, 0, 0, 0.2);
  --glass-reflex-light: 0.9;
  --glass-reflex-dark: 1.5;
}

* { box-sizing: border-box; }

html, body {
  max-width: 100%;
  /* clip, not hidden: overflow-x:hidden makes the other axis a scroll container,
     which silently kills every position:sticky on the page. clip does not. */
  overflow-x: clip;
}

/* Overscroll oben/unten: dunkle Zone statt UA-Weiß, kein Rubber-Band-Snap */
html {
  background: #070707;
  overscroll-behavior-y: none;
}

body {
  background: linear-gradient(135deg, #070707 0%, #0f0f0f 100%);
  color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  min-height: 100vh;
  padding-left: env(safe-area-inset-left, 0);
  padding-right: env(safe-area-inset-right, 0);
  padding-bottom: env(safe-area-inset-bottom, 0);
}

body.app-modal-open {
  overflow: hidden;
}

img, video, svg, iframe {
  max-width: 100%;
}

pre {
  max-width: 100%;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

code {
  overflow-wrap: anywhere;
}

.app-notice {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  width: 100%;
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.app-notice--success {
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.18) 0%, rgba(12, 28, 18, 0.94) 100%);
  border-color: rgba(34, 197, 94, 0.26);
}

.app-notice--error {
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.18) 0%, rgba(28, 12, 14, 0.94) 100%);
  border-color: rgba(248, 113, 113, 0.3);
}

.app-notice__copy {
  flex: 1 1 auto;
  min-width: 0;
}

.app-notice__eyebrow {
  margin: 0;
  font-size: 0.69rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.app-notice--success .app-notice__eyebrow {
  color: #86efac;
}

.app-notice--error .app-notice__eyebrow {
  color: #fca5a5;
}

.app-notice__message {
  margin-top: 0.45rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #ffffff;
}

.app-notice__dismiss {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.68);
  cursor: pointer;
  transition: all 0.18s ease;
}

.app-notice__dismiss:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.app-confirm[hidden] {
  display: none !important;
}

.app-confirm {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.app-confirm__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.74);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.app-confirm__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 34rem);
  padding: 1.25rem;
  border-radius: 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(17, 17, 17, 0.96) 0%, rgba(10, 10, 10, 0.98) 100%);
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.app-confirm__close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.18s ease;
}

.app-confirm__close:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.app-confirm__title {
  margin: 0;
  padding-right: 2.75rem;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
}

.app-confirm__message {
  margin: 0.9rem 0 0;
  font-size: 0.96rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
  white-space: pre-line;
}

.app-confirm__actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.app-confirm__cancel,
.app-confirm__confirm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.72rem 1.1rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}

.app-confirm__cancel {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.82);
}

.app-confirm__cancel:hover {
  background: rgba(255, 255, 255, 0.11);
  color: #ffffff;
}

.app-confirm__confirm {
  background: rgba(233, 78, 27, 0.18);
  color: #ffffff;
  border-color: rgba(233, 78, 27, 0.32);
}

.app-confirm__confirm:hover {
  background: rgba(233, 78, 27, 0.26);
}

.app-confirm[data-variant="warning"] .app-confirm__confirm {
  background: rgba(251, 191, 36, 0.16);
  border-color: rgba(251, 191, 36, 0.28);
  color: #fef3c7;
}

.app-confirm[data-variant="warning"] .app-confirm__confirm:hover {
  background: rgba(251, 191, 36, 0.24);
}

.app-confirm[data-variant="danger"] .app-confirm__confirm {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(248, 113, 113, 0.34);
  color: #ffffff;
}

.app-confirm[data-variant="danger"] .app-confirm__confirm:hover {
  background: rgba(239, 68, 68, 0.26);
}

@media (max-width: 640px) {
  .app-notice {
    padding: 0.9rem 0.95rem;
    gap: 0.8rem;
  }

  .app-notice__message {
    font-size: 0.9rem;
  }

  .app-confirm {
    align-items: flex-end;
    padding: 0.85rem;
  }

  .app-confirm__dialog {
    width: 100%;
    padding: 1.05rem;
    border-radius: 1.2rem;
  }

  .app-confirm__actions {
    flex-direction: column-reverse;
  }

  .app-confirm__cancel,
  .app-confirm__confirm {
    width: 100%;
    justify-content: center;
  }
}

/* ── Frosted Glass (exakt aus globals.css) ─────────────── */
.frosted-glass,
.card {
  position: relative;
  background: rgba(24, 24, 27, 0.55);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top-color: rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.05),
    0 12px 32px -12px rgba(0, 0, 0, 0.55),
    0 4px 12px -6px rgba(0, 0, 0, 0.4);
}

.frosted-glass:hover {
  background: rgba(30, 30, 34, 0.62);
  border-color: rgba(255, 255, 255, 0.1);
  border-top-color: rgba(255, 255, 255, 0.16);
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.06),
    0 16px 40px -14px rgba(0, 0, 0, 0.6),
    0 6px 16px -8px rgba(0, 0, 0, 0.45);
}

/* Karten/Panels ohne Hover-Lift */
.frosted-glass.no-hover:hover {
  transform: none;
  background: rgba(30, 30, 34, 0.62);
  border-color: rgba(255, 255, 255, 0.1);
  border-top-color: rgba(255, 255, 255, 0.16);
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.06),
    0 16px 40px -14px rgba(0, 0, 0, 0.6),
    0 6px 16px -8px rgba(0, 0, 0, 0.45);
}

/* ── Glass Card (aus globals.css) ──────────────────────── */
.glass-card {
  --mouse-x: 50%;
  --mouse-y: 50%;
  background-color: rgba(255, 255, 255, var(--glass-opacity));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation)) brightness(var(--glass-brightness));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation)) brightness(var(--glass-brightness));
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, #fff calc(var(--glass-reflex-light) * 12%), transparent),
    inset 2px 3px 0px -2px color-mix(in srgb, #fff calc(var(--glass-reflex-light) * 80%), transparent),
    inset -2px -2px 0px -2px color-mix(in srgb, #fff calc(var(--glass-reflex-light) * 60%), transparent),
    inset -3px -8px 1px -6px color-mix(in srgb, #fff calc(var(--glass-reflex-light) * 40%), transparent),
    inset -0.5px -1px 4px 0px color-mix(in srgb, #000 calc(var(--glass-reflex-dark) * 18%), transparent),
    inset -1.5px 2.5px 0px -2px color-mix(in srgb, #000 calc(var(--glass-reflex-dark) * 25%), transparent),
    inset 0px 3px 4px -2px color-mix(in srgb, #000 calc(var(--glass-reflex-dark) * 22%), transparent),
    inset 2px -6.5px 1px -4px color-mix(in srgb, #000 calc(var(--glass-reflex-dark) * 12%), transparent),
    0px 1px 5px 0px color-mix(in srgb, #000 calc(var(--glass-reflex-dark) * 12%), transparent),
    0px 8px 20px 0px color-mix(in srgb, #000 calc(var(--glass-reflex-dark) * 10%), transparent);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(255,255,255,0.12), rgba(255,255,255,0.06) 30%, transparent 60%);
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  border-radius: 20px;
}
.glass-card:hover::before { opacity: 1; }
.glass-card > * { position: relative; z-index: 2; }

.glass-card:hover {
  background-color: color-mix(in srgb, #1a1a1a 28%, transparent);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, #e94e1b 25%, transparent),
    inset 2px 3px 0px -2px color-mix(in srgb, #fff calc(var(--glass-reflex-light) * 90%), transparent),
    inset -2px -2px 0px -2px color-mix(in srgb, #fff calc(var(--glass-reflex-light) * 70%), transparent),
    0px 12px 30px 0px color-mix(in srgb, #e94e1b 35%, transparent),
    0px 4px 16px 0px color-mix(in srgb, #000 calc(var(--glass-reflex-dark) * 15%), transparent);
}

/* ── Glass Header (aus globals.css) ────────────────────── */
.glass-header {
  background-color: color-mix(in srgb, #0a0a0a 75%, transparent);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, #fff calc(var(--glass-reflex-light) * 8%), transparent),
    inset 1.5px 2px 0px -1px color-mix(in srgb, #fff calc(var(--glass-reflex-light) * 50%), transparent),
    0px 4px 16px 0px color-mix(in srgb, #000 calc(var(--glass-reflex-dark) * 12%), transparent);
  border-bottom: 1px solid color-mix(in srgb, #fff 8%, transparent);
}

/* ── Glass Feature (aus globals.css) ───────────────────── */
.glass-feature {
  --mouse-x: 50%;
  --mouse-y: 50%;
  background-color: rgba(255, 255, 255, var(--glass-opacity));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation)) brightness(var(--glass-brightness));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation)) brightness(var(--glass-brightness));
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, #fff calc(var(--glass-reflex-light) * 15%), transparent),
    inset 2px 2px 0px -1px color-mix(in srgb, #fff calc(var(--glass-reflex-light) * 85%), transparent),
    0px 6px 16px 0px color-mix(in srgb, #000 calc(var(--glass-reflex-dark) * 10%), transparent);
  border-radius: 18px;
  position: relative;
  overflow: hidden;
}

.glass-feature:hover {
  background: linear-gradient(135deg, color-mix(in srgb, #e94e1b 12%, transparent) 0%, color-mix(in srgb, #ffffff 6%, transparent) 100%);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, #e94e1b 30%, transparent),
    0px 10px 28px 0px color-mix(in srgb, #e94e1b 25%, transparent);
}

/* ── Buttons ───────────────────────────────────────────── */
.btn-accent {
  background: #e94e1b;
  color: #000000;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  min-height: 44px;
  transition: transform 120ms var(--ease-out-soft), background 120ms ease;
}
.btn-accent:hover {
  background: #f25018;
  box-shadow: none;
}
.btn-accent:active { opacity: 0.92; transform: scale(0.97); }

.btn-ghost {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  cursor: pointer;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  min-height: 44px;
  transition: transform 120ms var(--ease-out-soft), background 120ms ease, border-color 120ms ease;
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.12);
  color: #ffffff;
  border-color: rgba(255,255,255,0.2);
}
.btn-ghost:active { transform: scale(0.97); }

/* ── Inputs ────────────────────────────────────────────── */
/* Unclassed controls need a readable fallback too. Zero specificity lets
   existing page controls keep their own geometry and backgrounds. */
:where(input:not([type="hidden"], [type="checkbox"], [type="radio"], [type="range"], [type="color"], [type="file"], [type="button"], [type="submit"], [type="reset"], [type="image"]), select, textarea) {
  background-color: var(--card-bg);
  color: var(--text-primary);
  caret-color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}
:where(input, textarea)::placeholder { color: var(--text-secondary); opacity: 1; }
:where(input, select, textarea):focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}
:where(select option, select optgroup) {
  background-color: var(--card-bg);
  color: var(--text-primary);
}
/* Chromium paints autofilled fields independently of normal backgrounds. */
input:is(:autofill, :-webkit-autofill) {
  -webkit-text-fill-color: var(--text-primary);
  caret-color: var(--text-primary);
  box-shadow: 0 0 0 1000px var(--card-bg) inset;
}
@media (forced-colors: active) {
  input:is(:autofill, :-webkit-autofill) {
    -webkit-text-fill-color: CanvasText;
    caret-color: CanvasText;
    box-shadow: none;
  }
}
.input,
.form-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 10px 14px;
  color: #ffffff;
  font-size: 14px;
}
.input::placeholder, .form-input::placeholder { color: var(--text-secondary); }
/* Keep the select arrow when the shared field focus color changes. */
.input:focus, .form-input:focus { border-color: #e94e1b; background-color: rgba(255,255,255,0.1); }

select.input, select.form-input {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='rgba(255,255,255,0.4)' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}
select.input option, select.form-input option { background: #1a1a1a; color: #ffffff; }

.core-release-table { min-inline-size: 48rem; }
.core-release-table td { vertical-align: top; }
.core-release-table td:first-child { min-inline-size: 12rem; }
.core-release-version {
  display: block;
  inline-size: 100%;
  min-block-size: 44px;
  color: var(--text-primary);
  padding: 10px 0;
  text-align: left;
  cursor: text;
  overflow-wrap: anywhere;
}
.core-release-select { min-inline-size: 5.5rem; }
.core-release-table fieldset:disabled { opacity: .5; }
.core-release-table button:disabled { cursor: not-allowed; }
.core-release-delete-button { color: #fca5a5; border-color: rgba(248,113,113,.45); }
.core-release-delete-button:hover:not(:disabled) { background: rgba(239,68,68,.12); border-color: #f87171; }
.core-release-status { margin-top: .5rem; max-inline-size: 20rem; }
.core-release-status:empty { display: none; }
.core-release-status--error { color: #f87171; }
.core-release-table [hidden] { display: none !important; }
.core-release-table [aria-busy="true"] :is(button, input, select) { cursor: progress; opacity: .65; }
.core-release-table thead tr { border-bottom: 1px solid rgba(255,255,255,0.06); }
.core-release-table tbody tr { border-bottom: 1px solid rgba(255,255,255,0.04); }
/* The exact URL stays in href/title/aria-label; only the visible text is
   shortened so a long installer path cannot stretch every row. */
.core-release-link-cell { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; min-inline-size: 0; }
.core-release-link {
  flex: 1 1 12rem;
  min-inline-size: 0;
  max-inline-size: 16rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #fff;
  text-decoration: underline;
}
.core-release-protected summary { padding-block: .375rem; cursor: pointer; }
.core-release-protected[open] summary { margin-bottom: .375rem; }
.core-release-protected p { max-inline-size: 26rem; }
.core-release-table fieldset { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; min-inline-size: 0; }
.core-release-table fieldset label { display: inline-flex; align-items: center; gap: .5rem; }

/* ── Nav Links (Sidebar) ───────────────────────────────── */
.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 120ms ease, color 120ms ease, transform 120ms var(--ease-out-soft);
}
.nav-link:hover {
  background: rgba(255,255,255,0.08);
  color: #ffffff;
  border-color: rgba(255,255,255,0.08);
}
.nav-link.active {
  background: rgba(255,255,255,0.1);
  color: #ffffff;
  border-color: rgba(255,255,255,0.15);
  font-weight: 600;
}
.nav-link:active { transform: scale(0.98); }

/* ── Badges ────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid transparent;
}
.badge-success { background: rgba(74, 222, 128, 0.15); color: #4ade80; border-color: rgba(74, 222, 128, 0.25); }
.badge-warning { background: rgba(250, 204, 21, 0.15); color: #facc15; border-color: rgba(250, 204, 21, 0.25); }
.badge-error   { background: rgba(248, 113, 113, 0.15); color: #f87171; border-color: rgba(248, 113, 113, 0.25); }
.badge-info    { background: rgba(96, 165, 250, 0.15); color: #60a5fa; border-color: rgba(96, 165, 250, 0.25); }
.badge-gray    { background: rgba(156, 163, 175, 0.15); color: #9ca3af; border-color: rgba(156, 163, 175, 0.2); }
.badge-accent  { background: rgba(233, 78, 27, 0.2); color: #e94e1b; border-color: rgba(233, 78, 27, 0.3); }

/* ── Tables ────────────────────────────────────────────── */
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 14px 20px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(18, 18, 20, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.admin-table tbody tr {
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.admin-table tbody tr:hover { background: rgba(255,255,255,0.04); }
.admin-table tbody td { padding: 14px 20px; font-size: 14px; }
.admin-table tbody tr:last-child { border-bottom: none; }

.clickable-row {
  cursor: pointer;
  position: relative;
  transition: background 120ms ease;
}
.clickable-row:active { background: rgba(233, 78, 27, 0.10); }

.clickable-row:focus-visible {
  outline: 2px solid rgba(233, 78, 27, 0.85);
  outline-offset: -2px;
  background: rgba(233, 78, 27, 0.08);
}

.clickable-row:hover td:first-child {
  box-shadow: inset 3px 0 0 rgba(233, 78, 27, 0.8);
}

/* Card whose summary area is click-to-open (admin discounts); same accent bar as .clickable-row */
.card-clickable {
  cursor: pointer;
  transition: background 120ms ease, box-shadow 120ms ease;
}
.card-clickable:hover {
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 3px 0 0 rgba(233, 78, 27, 0.8);
}
.card-clickable:active { background: rgba(233, 78, 27, 0.10); }
.card-clickable button,
.card-clickable a,
.card-clickable label { cursor: pointer; }

.row-action-cell {
  position: relative;
  z-index: 1;
}

.row-action-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.danger-button {
  min-height: 44px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  border: 1px solid rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
}

.danger-button:hover {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.45);
}

.danger-button:focus-visible {
  outline: 2px solid rgba(248, 113, 113, 0.9);
  outline-offset: 2px;
}
.danger-button:active { transform: scale(0.97); }

.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  text-decoration: none;
  color: rgba(255,255,255,0.82);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
}

.secondary-button:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.2);
}

.secondary-button:focus-visible {
  outline: 2px solid rgba(233, 78, 27, 0.85);
  outline-offset: 2px;
}
.secondary-button:active { transform: scale(0.97); }

/* ── Scrollbar (aus globals.css) ───────────────────────── */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--secondary-bg); }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #555; }
.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }

/* ── Icon Wrapper (aus globals.css) ───────────────────── */
.icon-wrapper {
  background: rgb(255, 255, 255) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border: 2px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 12px !important;
  padding: 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 80px !important;
  height: 80px !important;
}
.icon-wrapper:hover {
  border-color: rgba(234, 78, 27, 0.5) !important;
}

/* ── Alpine cloak ──────────────────────────────────────── */
[x-cloak] { display: none !important; }

/* ── Prevent iOS auto-zoom on input focus ───────────────── */
@media (max-width: 768px) {
  input, select, textarea { font-size: 16px !important; }
}

/* ── Action Links (Touch-freundliche Tap-Targets) ─────── */
.action-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  color: #e94e1b;
  text-decoration: none;
  transition: background 120ms ease, transform 120ms var(--ease-out-soft);
}
.action-link:active { transform: scale(0.97); }
.action-link:hover { background: rgba(233,78,27,0.12); }
.action-link.danger { color: #f87171; }
.action-link.danger:hover { background: rgba(248,113,113,0.12); }
.action-link.muted { color: #a0a0a0; }
.action-link.muted:hover { background: rgba(255,255,255,0.06); color: #ffffff; }

.responsive-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.responsive-page-header-main {
  min-width: 0;
  flex: 1 1 280px;
}

.responsive-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.responsive-actions > form {
  display: flex;
}

.stack-table td[data-label]::before {
  content: attr(data-label);
  display: none;
}

.admin-shell {
  --admin-sidebar-width: 18rem;
  --admin-sidebar-collapsed-width: 5.5rem;
  --integrations-subnav-width: 15rem;
  --integrations-subnav-collapsed-width: 4.75rem;
  --integrations-sidebar-left: var(--admin-sidebar-width);
}

.admin-sidebar {
  width: var(--admin-sidebar-width);
  overflow: visible;
}

.admin-main {
  margin-left: 0;
}

.admin-shell-phone .admin-sidebar {
  width: min(var(--admin-sidebar-width), calc(100vw - 2.5rem));
  max-width: calc(100vw - 2.5rem);
}

.admin-shell-desktop .admin-main {
  margin-left: var(--admin-sidebar-width);
}

.admin-shell-desktop.admin-sidebar-collapsed .admin-sidebar {
  width: var(--admin-sidebar-collapsed-width);
}

.admin-shell-desktop.admin-sidebar-collapsed {
  --integrations-sidebar-left: var(--admin-sidebar-collapsed-width);
}

.admin-shell-desktop.admin-sidebar-collapsed .admin-main {
  margin-left: var(--admin-sidebar-collapsed-width);
}

.admin-sidebar-header {
  position: static;
}

.admin-sidebar-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.admin-sidebar-rail-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  min-height: 4.5rem;
}

.admin-sidebar-toggle {
  display: inline-flex;
  position: static;
  width: 2.1rem;
  height: 2.1rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(7,7,7,0.92);
  color: rgba(255,255,255,0.72);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  flex: 0 0 auto;
}

.admin-sidebar-toggle:hover {
  background: rgba(233,78,27,0.18);
  color: #ffffff;
}

.admin-brand {
  min-width: 0;
  flex: 1 1 auto;
}

.admin-brand-copy,
.admin-nav-label,
.admin-section-heading,
.admin-footer-label {
  display: inline-block;
  min-width: 0;
  white-space: nowrap;
  opacity: 1;
}

.admin-footer form {
  display: flex;
  width: 100%;
}

.admin-shell-desktop.admin-sidebar-collapsed .admin-sidebar-header,
.admin-shell-desktop.admin-sidebar-collapsed .admin-sidebar nav,
.admin-shell-desktop.admin-sidebar-collapsed .admin-footer {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.admin-shell-desktop.admin-sidebar-collapsed .admin-sidebar-header {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.admin-shell-desktop.admin-sidebar-collapsed .admin-brand-copy,
.admin-shell-desktop.admin-sidebar-collapsed .admin-sidebar .admin-nav-label,
.admin-shell-desktop.admin-sidebar-collapsed .admin-section-heading,
.admin-shell-desktop.admin-sidebar-collapsed .admin-footer-label {
  width: 0;
  margin: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}

.admin-shell-desktop.admin-sidebar-collapsed .admin-sidebar .nav-link,
.admin-shell-desktop.admin-sidebar-collapsed .admin-footer .nav-link {
  justify-content: center;
  gap: 0;
  padding-left: 0;
  padding-right: 0;
}

.admin-shell-desktop.admin-sidebar-collapsed .admin-sidebar .nav-link svg,
.admin-shell-desktop.admin-sidebar-collapsed .admin-footer .nav-link svg {
  margin: 0;
}

.admin-shell-desktop.admin-sidebar-collapsed .admin-brand {
  justify-content: center;
}

.admin-shell-desktop.admin-sidebar-collapsed .admin-sidebar-toolbar {
  display: none;
}

.admin-shell-desktop.admin-sidebar-collapsed .admin-sidebar-rail-header {
  display: flex;
}

.admin-shell-desktop:not(.admin-sidebar-collapsed) .admin-sidebar-rail-header {
  display: none;
}

.admin-shell-desktop.admin-sidebar-collapsed .admin-brand-mark-rail {
  margin: 0 auto;
}

.admin-shell-phone .admin-sidebar-toolbar-phone {
  display: flex;
}

.integrations-shell {
  position: relative;
}

.integrations-layout {
  position: relative;
  min-height: 100%;
}

.integrations-mobile-subnav {
  position: sticky;
  top: calc(3.5rem + var(--site-banner-h, 0px));
  z-index: 15;
  padding: 0.35rem 0 0.25rem;
  background: linear-gradient(180deg, rgba(7, 7, 7, 0.96) 0%, rgba(7, 7, 7, 0.9) 100%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.integrations-mobile-subnav-panel {
  padding: 0.65rem;
  border-radius: 1rem;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(88,28,135,0.18) 0%, rgba(30,58,138,0.14) 48%, rgba(0,0,0,0.42) 100%);
  box-shadow: 0 16px 36px rgba(0,0,0,0.24);
}

.integrations-subnav-panel {
  height: 100%;
  padding: 1rem;
  border-radius: 0 1.25rem 1.25rem 0;
  border: 1px solid rgba(255,255,255,0.08);
  border-left: none;
  background: linear-gradient(180deg, rgba(88,28,135,0.22) 0%, rgba(30,58,138,0.18) 48%, rgba(0,0,0,0.45) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: none;
}

.integrations-subnav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.integrations-subnav-title-wrap {
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 1 1 auto;
}

.integrations-subnav-title {
  padding: 0 0.75rem;
  color: #e94e1b;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  white-space: nowrap;
}

.integrations-subnav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 9999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(7,7,7,0.92);
  color: rgba(255,255,255,0.72);
  box-shadow: 0 8px 24px rgba(0,0,0,0.28);
  flex: 0 0 auto;
}

.integrations-subnav-toggle:hover {
  background: rgba(233,78,27,0.18);
  color: #ffffff;
}

.integrations-subnav-nav {
  position: relative;
}

.integrations-subnav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.integrations-subnav-label {
  display: inline-block;
  min-width: 0;
  white-space: nowrap;
  opacity: 1;
}

.integrations-subnav-copy {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  flex-direction: column;
}

.integrations-subnav-meta {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.72rem;
  line-height: 1.35;
  color: rgba(255,255,255,0.44);
}

.integrations-subnav-link {
  min-height: 42px;
  align-items: flex-start;
}

.integrations-subnav-group {
  padding: 0 0.75rem;
  margin-bottom: 0.35rem;
  color: rgba(255,255,255,0.3);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  display: block;
  min-width: 0;
  opacity: 1;
}

/* Group separators for the mobile chip row. The chips scroll horizontally,
   so the label sits inline rather than above the group. */
.integrations-mobile-group {
  flex: 0 0 auto;
  padding-left: 0.35rem;
  color: rgba(255,255,255,0.3);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.integrations-mobile-group:not(:first-child) {
  padding-left: 0.9rem;
  border-left: 1px solid rgba(255,255,255,0.1);
}

.integrations-mobile-chip {
  flex: 0 0 auto;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.7);
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
}

.integrations-mobile-chip.active {
  border-color: rgba(233,78,27,0.35);
  background: rgba(233,78,27,0.18);
  color: #ffffff;
}

.integrations-nav-badge {
  flex-shrink: 0;
  align-self: center;
}

.integrations-subnav-link-open {
  border-color: rgba(233,78,27,0.26);
  background: linear-gradient(180deg, rgba(233,78,27,0.16) 0%, rgba(233,78,27,0.08) 100%);
  box-shadow: 0 10px 26px rgba(233,78,27,0.16);
}

.integrations-page-hero {
  padding: 1.5rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(255,255,255,0.08);
  background:
    radial-gradient(circle at top right, rgba(233,78,27,0.14), transparent 38%),
    linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
  box-shadow: 0 20px 42px rgba(0,0,0,0.22);
}

.integrations-page-hero-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  min-width: min(24rem, 100%);
}

.integrations-hero-detail {
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.78);
  font-size: 0.82rem;
  line-height: 1.5;
}

.integrations-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.25rem;
}

.integrations-status-card,
.integrations-attention-panel,
.integrations-context-card,
.integrations-module-card {
  padding: 1.5rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.045) 0%, rgba(255,255,255,0.02) 100%);
  box-shadow: 0 18px 38px rgba(0,0,0,0.18);
}

.integrations-status-card-metrics {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.integrations-status-metric {
  padding: 0.85rem 0.95rem;
  border-radius: 1rem;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.035);
  color: rgba(255,255,255,0.8);
  font-size: 0.86rem;
  line-height: 1.45;
}

.integrations-status-card-actions {
  margin-top: 1.25rem;
}

.integrations-attention-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.integrations-attention-item {
  display: block;
  padding: 1rem 1.05rem;
  border-radius: 1rem;
  border: 1px solid rgba(233,78,27,0.22);
  background: rgba(233,78,27,0.08);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.integrations-attention-item:hover {
  transform: translateY(-1px);
  border-color: rgba(233,78,27,0.34);
  background: rgba(233,78,27,0.12);
}

.integrations-empty-state {
  padding: 1rem 1.05rem;
  border-radius: 1rem;
  border: 1px dashed rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.025);
}

.integrations-summary-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.integrations-summary-item {
  padding: 1rem 1.05rem;
  border-radius: 1rem;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}

.integrations-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(280px, 0.84fr);
  gap: 1.5rem;
  align-items: start;
}

.integrations-link-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.integrations-link-item {
  display: flex;
  flex-direction: column;
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.integrations-link-item:hover {
  transform: translateY(-1px);
  border-color: rgba(233,78,27,0.26);
  background: rgba(233,78,27,0.08);
}

.integrations-accordion-card {
  position: relative;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.integrations-accordion-card-open {
  border-color: rgba(233,78,27,0.24);
  background:
    radial-gradient(circle at top right, rgba(233,78,27,0.1), transparent 38%),
    linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.025) 100%);
  box-shadow: 0 20px 42px rgba(0,0,0,0.22);
}

.integrations-accordion-card-closed {
  border-color: rgba(255,255,255,0.08);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.035) 0%, rgba(255,255,255,0.018) 100%);
}

.integrations-accordion-trigger {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 0;
}

.integrations-accordion-trigger:hover .integrations-accordion-summary {
  color: rgba(255,255,255,0.82) !important;
}

.integrations-accordion-summary {
  max-width: 54rem;
  transition: color 160ms ease;
}

.integrations-accordion-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-top: 0.125rem;
  border-radius: 9999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 160ms ease, color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.integrations-accordion-card-open .integrations-accordion-chevron {
  border-color: rgba(233,78,27,0.28);
  background: rgba(233,78,27,0.14);
}

.integrations-accordion-body {
  margin-top: 1.5rem;
}

.admin-shell-desktop .integrations-subnav-fixed {
  position: fixed;
  top: calc(var(--site-banner-h, 0px) + 0.75rem);
  bottom: 0.75rem;
  left: var(--integrations-sidebar-left);
  width: var(--integrations-subnav-width);
  overflow-y: auto;
  z-index: 15;
}

.admin-shell-desktop.admin-sidebar-collapsed .integrations-subnav-fixed {
  left: var(--integrations-sidebar-left);
}

.admin-shell-desktop .integrations-content-shell {
  padding-left: var(--integrations-subnav-width);
}

/* Flash lives in the layout above the fixed sub-nav: keep it clear of the panel. */
.admin-shell-desktop:has(.integrations-subnav-fixed) .admin-flash {
  padding-left: calc(var(--integrations-subnav-width) + 2rem);
}

.admin-shell-desktop.integrations-sidebar-collapsed:has(.integrations-subnav-fixed) .admin-flash {
  padding-left: calc(var(--integrations-subnav-collapsed-width) + 2rem);
}

.admin-shell-desktop.integrations-sidebar-collapsed .integrations-subnav-fixed {
  width: var(--integrations-subnav-collapsed-width);
}

.admin-shell-desktop.integrations-sidebar-collapsed .integrations-content-shell {
  padding-left: var(--integrations-subnav-collapsed-width);
}

.admin-shell-desktop.integrations-sidebar-collapsed .integrations-subnav-header {
  justify-content: center;
}

.admin-shell-desktop.integrations-sidebar-collapsed .integrations-subnav-title-wrap {
  flex: 0 0 auto;
}

/* The link labels and group headings must collapse with the panel — without
   them in this list they overflow the 4.75rem collapsed width. */
.admin-shell-desktop.integrations-sidebar-collapsed .integrations-subnav-title,
.admin-shell-desktop.integrations-sidebar-collapsed .integrations-subnav-copy,
.admin-shell-desktop.integrations-sidebar-collapsed .integrations-subnav-label,
.admin-shell-desktop.integrations-sidebar-collapsed .integrations-subnav-group,
.admin-shell-desktop.integrations-sidebar-collapsed .integrations-nav-badge {
  width: 0;
  margin: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}

/* The heading text is hidden above, but the two groups must stay
   distinguishable when collapsed — carry the separation as a rule instead. */
.admin-shell-desktop.integrations-sidebar-collapsed .integrations-subnav-group-split + a {
  margin-top: 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 0.75rem;
}

.admin-shell-desktop.integrations-sidebar-collapsed .integrations-subnav-link {
  justify-content: center;
  gap: 0;
  padding-left: 0;
  padding-right: 0;
}

.admin-shell-phone .integrations-content-shell,
.admin-shell-phone .integrations-content {
  padding-left: 0;
}

.admin-shell-phone .admin-sidebar-toggle {
  display: none !important;
}

.admin-shell-phone .admin-sidebar-rail-header {
  display: none !important;
}

.admin-shell-phone .integrations-subnav-fixed {
  display: none !important;
}

.admin-shell-phone .admin-main {
  margin-left: 0;
  width: 100%;
  max-width: 100%;
}

@media (max-width: 1280px) {
  .integrations-detail-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  .integrations-page-hero,
  .integrations-status-card,
  .integrations-attention-panel,
  .integrations-context-card,
  .integrations-module-card {
    padding: 1.2rem;
  }

  .integrations-page-hero-details,
  .integrations-summary-strip {
    grid-template-columns: minmax(0, 1fr);
  }
}

.integrations-subnav-fixed {
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.12) transparent;
}

.integrations-subnav-fixed::-webkit-scrollbar {
  width: 8px;
}

.integrations-subnav-fixed::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.12);
  border-radius: 9999px;
}

/* ── Creator dashboard and preview ─────────────────────── */
.creator-dashboard {
  min-height: calc(100vh - 120px);
  background: #050505;
  color: #ffffff;
}

.creator-dashboard__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 3vw, 2rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 5, 5, 0.92);
}

.creator-dashboard__brand,
.creator-dashboard__account {
  display: flex;
  align-items: center;
  min-width: 0;
}

.creator-dashboard__brand {
  gap: 0.75rem;
}

.creator-dashboard__logo {
  width: auto;
  height: 1.9rem;
  flex: 0 0 auto;
}

.creator-dashboard__brand-title,
.creator-dashboard__brand-subtitle,
.creator-kicker {
  margin: 0;
  letter-spacing: 0;
}

.creator-dashboard__brand-title {
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.2;
}

.creator-dashboard__brand-subtitle {
  margin-top: 0.12rem;
  font-size: 0.75rem;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.45);
  overflow-wrap: anywhere;
}

.creator-dashboard__account {
  justify-content: flex-end;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.54);
  font-size: 0.86rem;
}

.creator-dashboard__account span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.creator-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.creator-icon-button:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
}

.creator-icon-button svg,
.creator-code button svg,
.creator-comp-row__icon svg {
  width: 1rem;
  height: 1rem;
}

.creator-dashboard__shell {
  width: min(100%, 56rem);
  margin: 0 auto;
  padding: clamp(1.25rem, 3vw, 2.5rem) 1rem 2.5rem;
}

.creator-dashboard__intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.creator-kicker {
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.creator-dashboard__intro h1 {
  margin: 0.25rem 0 0;
  color: #ffffff;
  font-size: 1.8rem;
  font-weight: 850;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.creator-code {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
  min-width: 0;
}

.creator-code > span {
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.75rem;
  font-weight: 700;
}

.creator-code button {
  display: inline-flex;
  align-items: center;
  max-width: min(100%, 18rem);
  min-height: 2.6rem;
  gap: 0.55rem;
  padding: 0 0.8rem;
  border: 1px solid rgba(233, 78, 27, 0.32);
  border-radius: 8px;
  background: rgba(233, 78, 27, 0.12);
  color: #ffffff;
  cursor: pointer;
}

.creator-code button strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.98rem;
}

.creator-comp-panel {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: #030303;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.4);
}

.creator-comp-panel--preview {
  box-shadow: none;
}

.creator-comp-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.35rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.creator-comp-row__label,
.creator-bonus__heading {
  display: flex;
  align-items: flex-start;
  min-width: 0;
  gap: 0.9rem;
}

.creator-comp-row__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.78);
}

.creator-comp-row h2,
.creator-bonus h2,
.creator-admin-preview__copy h2 {
  margin: 0;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 760;
  line-height: 1.25;
}

.creator-comp-row p,
.creator-bonus p,
.creator-admin-preview__copy p {
  margin: 0.45rem 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.95rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.creator-comp-row__value {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex: 0 0 auto;
  min-width: 8rem;
  text-align: right;
}

.creator-comp-row__value strong {
  color: #ffffff;
  font-size: 2rem;
  font-weight: 850;
  line-height: 1;
}

.creator-comp-row__value span {
  margin-top: 0.4rem;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.82rem;
}

.creator-rate-list {
  display: grid;
  justify-items: end;
  gap: 0.42rem;
  flex: 0 0 auto;
  min-width: 10rem;
  color: #ffffff;
  text-align: right;
}

.creator-rate-list strong {
  font-size: 1.25rem;
  font-weight: 850;
  line-height: 1.2;
}

.creator-metric-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.creator-metric-strip div {
  min-width: 0;
  padding: 1rem 1.5rem;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.creator-metric-strip div:last-child {
  border-right: none;
}

.creator-metric-strip span {
  display: block;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.75rem;
  font-weight: 700;
}

.creator-metric-strip strong {
  display: block;
  margin-top: 0.25rem;
  color: #ffffff;
  font-size: 1rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.creator-bonus {
  padding: 1.35rem 1.5rem 1.5rem;
}

.creator-table-wrap {
  width: 100%;
  margin-top: 1.25rem;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
}

.creator-bonus-table {
  width: 100%;
  min-width: 33rem;
  border-collapse: collapse;
  color: #ffffff;
  font-size: 0.95rem;
}

.creator-bonus-table th {
  padding: 0.9rem 1rem;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.8rem;
  font-weight: 800;
  text-align: left;
}

.creator-bonus-table td {
  padding: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  vertical-align: middle;
}

.creator-bonus-table td:first-child,
.creator-bonus-table th:first-child {
  width: 7rem;
  text-align: center;
}

.creator-bonus-table td:last-child,
.creator-bonus-table th:last-child {
  width: 8rem;
  text-align: right;
}

.creator-bonus-table td strong,
.creator-bonus-table td span {
  display: block;
  overflow-wrap: anywhere;
}

.creator-bonus-table td span {
  margin-top: 0.2rem;
  color: rgba(255, 255, 255, 0.55);
}

.creator-bonus-table tr.is-achieved td {
  background: rgba(34, 197, 94, 0.035);
}

.creator-status-pill {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 4.8rem;
  min-height: 1.8rem;
  padding: 0 0.65rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.72) !important;
  font-size: 0.78rem;
  font-weight: 780;
  white-space: nowrap;
}

.creator-status-pill--done {
  background: rgba(34, 197, 94, 0.14);
  color: #86efac !important;
}

.creator-empty-state {
  margin-top: 1.25rem;
  padding: 1rem;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.95rem;
}

.creator-dashboard__footnote {
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, 0.34);
  font-size: 0.8rem;
  text-align: center;
}

.creator-notice {
  margin-bottom: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
}

.creator-notice--success {
  border: 1px solid rgba(34, 197, 94, 0.3);
  background: rgba(34, 197, 94, 0.1);
  color: #86efac;
}

.creator-notice--error {
  border: 1px solid rgba(239, 68, 68, 0.34);
  background: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
}

.creator-admin-preview {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.55fr);
  gap: 1.25rem;
  align-items: start;
}

.creator-admin-preview__copy {
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

@media (max-width: 900px) {
  .creator-admin-preview {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .creator-dashboard__topbar,
  .creator-dashboard__intro,
  .creator-comp-row {
    align-items: stretch;
    flex-direction: column;
  }

  .creator-dashboard__account {
    width: 100%;
    justify-content: space-between;
  }

  .creator-code {
    align-items: stretch;
  }

  .creator-code button {
    justify-content: space-between;
    max-width: 100%;
  }

  .creator-code-settings__form {
    grid-template-columns: minmax(0, 1fr);
  }

  .creator-comp-row__value,
  .creator-rate-list {
    align-items: flex-start;
    justify-items: start;
    min-width: 0;
    text-align: left;
  }

  .creator-comp-row__value strong {
    font-size: 1.5rem;
  }

  .creator-rate-list strong {
    font-size: 1.05rem;
  }

  .creator-metric-strip {
    grid-template-columns: minmax(0, 1fr);
  }

  .creator-metric-strip div {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .creator-metric-strip div:last-child {
    border-bottom: none;
  }

  .creator-comp-row,
  .creator-bonus {
    padding: 1.1rem;
  }
}

/* -- SKILLEVADE 2.0 public sections --------------------- */
.home-platform-section,
.home-partner-section,
.partner-section {
  background: #070707;
  padding-top: clamp(3.5rem, 7vw, 6rem);
  padding-bottom: clamp(3.5rem, 7vw, 6rem);
}

.home-platform-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.home-platform-card {
  appearance: none;
  position: relative;
  min-height: clamp(8rem, 14vw, 10rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: clamp(1rem, 2vw, 1.5rem);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.07), rgba(255,255,255,0.02)),
    #0b0b0b;
  color: #ffffff;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.home-platform-card:hover,
.home-platform-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.22);
  box-shadow: 0 20px 44px rgba(0,0,0,0.28);
}

.home-platform-card.is-active {
  transform: translateY(-4px);
  border-color: rgba(233,78,27,0.46);
  box-shadow: 0 20px 44px rgba(0,0,0,0.28), 0 0 0 1px rgba(233,78,27,0.08);
  background:
    linear-gradient(145deg, rgba(233,78,27,0.18), rgba(255,255,255,0.04)),
    #0b0b0b;
}

.home-platform-card:focus-visible {
  outline: 2px solid rgba(233,78,27,0.74);
  outline-offset: 3px;
}

.home-platform-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.35), transparent 68%);
  pointer-events: none;
}

.home-platform-card__preview {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.home-platform-card__preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: right center;
}

.home-platform-card__window {
  position: absolute;
  inset: 0.9rem;
  display: grid;
  grid-template-columns: 0.48fr 0.52fr;
  gap: 0.65rem;
}

.home-platform-card__window::before,
.home-platform-card__window::after,
.home-platform-card__window span {
  content: "";
  display: block;
  border-radius: 6px;
  background: rgba(255,255,255,0.08);
}

.home-platform-card__window::before {
  grid-row: span 3;
  background:
    linear-gradient(180deg, rgba(233,78,27,0.28), rgba(233,78,27,0.08)),
    rgba(255,255,255,0.08);
}

.home-platform-card__window::after {
  height: 1.2rem;
  background: rgba(233,78,27,0.82);
}

.home-platform-card__preview--console {
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-platform-card__console {
  width: min(68%, 13rem);
  aspect-ratio: 16 / 9;
  border: 8px solid rgba(255,255,255,0.14);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 46%, rgba(233,78,27,0.24), transparent 34%),
    linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.02));
  box-shadow: 0 14px 28px rgba(0,0,0,0.34);
}

.home-platform-card__eyebrow {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: max-content;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 850;
  text-transform: uppercase;
}

.home-platform-card__eyebrow img {
  width: 1.1rem;
  height: 1.1rem;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.home-platform-card__title {
  position: relative;
  z-index: 2;
  margin-top: 0.4rem;
  font-size: clamp(1.15rem, 2.4vw, 1.65rem);
  font-weight: 900;
  line-height: 1;
}

.home-platform-card__copy {
  position: relative;
  z-index: 2;
  margin-top: 0.4rem;
  max-width: 65%;
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
}

.home-platform-preview {
  margin-top: 1rem;
}

.home-platform-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(18rem, 0.88fr);
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: stretch;
  padding: clamp(1rem, 3vw, 1.6rem);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.055), rgba(255,255,255,0.018)),
    #0a0a0a;
}

.home-platform-panel[hidden] {
  display: none;
}

.home-platform-panel__visual {
  min-height: clamp(18rem, 35vw, 28rem);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  background:
    radial-gradient(circle at 22% 16%, rgba(233,78,27,0.18), transparent 31%),
    linear-gradient(145deg, rgba(255,255,255,0.055), rgba(255,255,255,0.015)),
    #050505;
}

.home-platform-panel .home-platform-panel__visual--product-art {
  min-height: 0;
  aspect-ratio: 3 / 2;
  align-self: center;
  padding: 0;
  background: #080808;
}

.home-platform-panel__visual--product-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.home-platform-panel__visual--screenshots {
  flex-direction: column;
  gap: 0.8rem;
  padding: clamp(0.65rem, 1.5vw, 1rem);
  perspective: 1400px;
}

.home-platform-panel__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(0.25rem, 2vw, 1.2rem);
}

.home-platform-panel__label {
  margin: 0 0 0.75rem;
  color: #e94e1b;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.home-platform-panel__copy h3 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 950;
  line-height: 0.98;
}

.home-platform-panel__copy p:not(.home-platform-panel__label) {
  margin: 1rem 0 0;
  color: rgba(255,255,255,0.58);
  font-size: 1rem;
  line-height: 1.7;
}

.home-platform-feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.35rem;
}

.home-platform-feature-list span,
.home-platform-feature-list button {
  min-height: 2.2rem;
  display: inline-flex;
  align-items: center;
  padding: 0 0.85rem;
  border: 1px solid rgba(233,78,27,0.22);
  border-radius: 999px;
  background: rgba(233,78,27,0.1);
  color: rgba(255,255,255,0.88);
  font-size: 0.78rem;
  font-weight: 800;
}

.home-platform-feature-list button {
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.home-platform-feature-list button:hover,
.home-platform-feature-list button.is-active {
  background: rgba(233,78,27,0.28);
  border-color: rgba(233,78,27,0.6);
}

.home-platform-explain {
  margin-top: 0.85rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  min-height: 1.3em;
  line-height: 1.5;
}

.home-platform-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.home-platform-actions a {
  min-height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.25rem;
  border: 1px solid rgba(233,78,27,0.46);
  border-radius: 8px;
  color: #e94e1b;
  font-size: 0.86rem;
  font-weight: 850;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.home-platform-actions a.btn-accent {
  color: #ffffff;
}

.home-platform-panel__visual--dns-preview {
  align-items: stretch;
  justify-content: stretch;
  padding: 1rem;
}

.home-platform-panel__visual--console-shot {
  padding: clamp(0.65rem, 1.5vw, 1rem);
}

.home-platform-panel__visual--console-shot img {
  width: 100%;
  height: 100%;
  max-height: 28rem;
  display: block;
  object-fit: contain;
  object-position: center;
  border-radius: 8px;
  box-shadow: 0 22px 56px rgba(0,0,0,0.38);
}

.dns-preview {
  width: 100%;
  color: #ffffff;
}

.dns-preview__card {
  width: 100%;
  border: 1px solid rgba(233,78,27,0.28);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(18,18,18,0.98) 0%, rgba(8,8,8,0.98) 100%);
  box-shadow: 0 24px 64px rgba(0,0,0,0.34);
  padding: 1.25rem;
}

.dns-preview__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(233,78,27,0.2);
}

.dns-preview__eyebrow,
.dns-preview__premium-label {
  margin: 0;
  color: #e94e1b;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.dns-preview__header h3 {
  margin: 0.35rem 0 0;
  color: #ffffff;
  font-size: 1.65rem;
  line-height: 1;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.dns-preview__status {
  flex: 0 0 auto;
  min-height: 2rem;
  display: inline-flex;
  align-items: center;
  padding: 0 0.75rem;
  border: 1px solid rgba(34,197,94,0.3);
  border-radius: 999px;
  background: rgba(34,197,94,0.12);
  color: #86efac;
  font-size: 0.76rem;
  font-weight: 800;
}

.dns-preview__dns-box {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.dns-preview__dns-box div,
.dns-preview__saved,
.dns-preview__form {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
}

.dns-preview__dns-box div {
  min-width: 0;
  padding: 0.85rem;
}

.dns-preview__dns-box span,
.dns-preview__saved span,
.dns-preview__form label,
.dns-preview__section-title small {
  display: block;
  color: rgba(255,255,255,0.5);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.dns-preview__dns-box strong {
  display: block;
  margin-top: 0.35rem;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.dns-preview__form {
  margin-top: 0.75rem;
  padding: 0.9rem;
}

.dns-preview__input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.6rem;
  margin-top: 0.55rem;
}

.dns-preview__input-row span {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(233,78,27,0.42);
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 850;
}

.dns-preview__input-row button {
  min-height: 2.75rem;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #e94e1b 0%, #ff6b3d 100%);
  color: #ffffff;
  padding: 0 0.95rem;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dns-preview__form p {
  margin: 0.75rem 0 0;
  color: rgba(255,255,255,0.64);
  font-size: 0.84rem;
  line-height: 1.55;
}

.dns-preview__saved {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
  padding: 0.85rem;
}

.dns-preview__saved strong {
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 850;
}

.dns-preview__countries {
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.dns-preview__section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.dns-preview__section-title span {
  color: #e94e1b;
  font-size: 1rem;
  font-weight: 900;
}

.dns-preview__country-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
}

.dns-preview__country-grid--premium {
  margin-top: 0.55rem;
}

.dns-preview__premium-label {
  margin-top: 0.85rem;
  color: #ffd0bd;
}

.dns-preview__country {
  min-width: 0;
  min-height: 4.65rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border: 1px solid rgba(233,78,27,0.28);
  border-radius: 8px;
  background: rgba(233,78,27,0.08);
  color: #ffffff;
  padding: 0.5rem;
  font: inherit;
}

.dns-preview__country.active {
  border-color: rgba(255,255,255,0.38);
  background: linear-gradient(135deg, rgba(233,78,27,0.92) 0%, rgba(255,107,61,0.88) 100%);
}

.dns-preview__country img {
  width: 2.3rem;
  height: 1.55rem;
  object-fit: cover;
  border-radius: 4px;
}

.dns-preview__country span {
  max-width: 100%;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 850;
  text-align: center;
  overflow-wrap: anywhere;
}

.dns-preview--home .dns-preview__card {
  box-shadow: none;
  padding: 1rem;
}

.dns-preview--home .dns-preview__header h3 {
  font-size: 1.25rem;
}

.dns-preview--home .dns-preview__dns-box {
  grid-template-columns: 1fr;
}

.dns-preview--home .dns-preview__saved {
  grid-template-columns: 1fr;
  gap: 0.3rem;
}

.dns-preview--home .dns-preview__country-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dns-demo-page {
  min-height: 100vh;
  padding: 7rem 1rem 4rem;
  background:
    radial-gradient(ellipse 80% 42% at 50% 0%, rgba(233,78,27,0.14) 0%, transparent 68%),
    #070707;
}

.dns-demo-page__inner {
  width: min(100%, 72rem);
  margin: 0 auto;
}

.dns-demo-page__copy {
  max-width: 44rem;
  margin: 0 auto 1.5rem;
  text-align: center;
}

.dns-demo-page__copy p {
  margin: 0 0 0.65rem;
  color: #e94e1b;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.dns-demo-page__copy h1 {
  margin: 0;
  color: #ffffff;
  font-size: 3rem;
  line-height: 1;
  font-weight: 950;
}

.dns-demo-page__copy span {
  display: block;
  margin-top: 0.9rem;
  color: rgba(255,255,255,0.62);
  font-size: 1rem;
  line-height: 1.65;
}

@media (max-width: 900px) {
  .dns-preview__saved {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .dns-preview__country-grid,
  .dns-preview--home .dns-preview__country-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .home-platform-panel__visual--dns-preview {
    padding: 0.6rem;
  }

  .dns-preview__card {
    padding: 0.85rem;
  }

  .dns-preview__header {
    flex-direction: column;
    gap: 0.7rem;
  }

  .dns-preview__header h3 {
    font-size: 1.3rem;
  }

  .dns-preview__dns-box,
  .dns-preview__input-row {
    grid-template-columns: 1fr;
  }

  .dns-preview__input-row button {
    width: 100%;
  }

  .dns-preview__section-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.25rem;
  }

  .dns-demo-page {
    padding: 5.5rem 0.75rem 2.5rem;
  }

  .dns-demo-page__copy h1 {
    font-size: 2.1rem;
  }
}

.core-preview-frame {
  width: min(100%, 46rem);
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  background: #090909;
  box-shadow: 0 28px 70px rgba(0,0,0,0.44);
}

.core-preview-frame--screenshots {
  aspect-ratio: 1498 / 898;
  padding: 0;
  background: #080808;
}

.core-preview-shot {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
}

.core-preview-thumbs {
  width: min(100%, 46rem);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.core-preview-thumbs img {
  width: 100%;
  aspect-ratio: 1498 / 898;
  display: block;
  object-fit: cover;
  object-position: center top;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
}

.core-preview-stage {
  position: relative;
  width: min(100%, 48rem);
  min-height: clamp(19rem, 34vw, 29rem);
  isolation: isolate;
  transform-style: preserve-3d;
}

.core-preview-stage::before {
  content: "";
  position: absolute;
  inset: 12% 7% 5%;
  border-radius: 999px;
  background: radial-gradient(circle at 50% 50%, rgba(233,78,27,0.28), transparent 64%);
  filter: blur(22px);
  opacity: 0.72;
  transform: translateZ(-80px);
}

.core-preview-card {
  position: absolute;
  display: block;
  width: min(74%, 36rem);
  aspect-ratio: 1498 / 898;
  object-fit: cover;
  object-position: center top;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 8px;
  background: #080808;
  box-shadow: 0 26px 70px rgba(0,0,0,0.48);
  transform-style: preserve-3d;
}

.core-preview-card--main {
  z-index: 4;
  left: 17%;
  top: 10%;
  transform: rotateX(7deg) rotateY(-17deg) rotateZ(-3deg);
}

.core-preview-card--left {
  z-index: 3;
  left: 2%;
  top: 28%;
  width: min(48%, 23rem);
  opacity: 0.96;
  transform: rotateX(6deg) rotateY(18deg) rotateZ(7deg) translateZ(-54px);
}

.core-preview-card--right {
  z-index: 2;
  right: 1%;
  top: 30%;
  width: min(47%, 22.5rem);
  opacity: 0.9;
  transform: rotateX(5deg) rotateY(-24deg) rotateZ(-8deg) translateZ(-86px);
}

.core-preview-card--back {
  z-index: 1;
  left: 33%;
  top: 3%;
  width: min(45%, 21rem);
  opacity: 0.68;
  filter: saturate(0.88) brightness(0.82);
  transform: rotateX(8deg) rotateY(-11deg) rotateZ(9deg) translateZ(-130px);
}

.core-preview-titlebar {
  height: 2.6rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: #121212;
}

.core-preview-titlebar span {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.22);
}

.core-preview-titlebar strong {
  margin-left: 0.45rem;
  color: rgba(255,255,255,0.72);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.core-preview-body {
  height: calc(100% - 2.6rem);
  display: grid;
  grid-template-columns: 5rem 1fr;
}

.core-preview-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 1.1rem 0.9rem;
  border-right: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.025);
}

.core-preview-sidebar span {
  height: 2.1rem;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
}

.core-preview-sidebar span.is-active {
  background: rgba(233,78,27,0.78);
}

.core-preview-main {
  display: grid;
  grid-template-rows: 1.05fr 0.85fr 3rem;
  gap: 1rem;
  padding: clamp(1rem, 3vw, 1.65rem);
}

.core-preview-hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(1rem, 3vw, 1.5rem);
  border: 1px solid rgba(233,78,27,0.18);
  border-radius: 8px;
  background:
    radial-gradient(circle at 88% 24%, rgba(233,78,27,0.28), transparent 28%),
    linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.025));
}

.core-preview-hero p,
.core-preview-hero strong,
.core-preview-hero span {
  margin: 0;
}

.core-preview-hero p {
  color: #e94e1b;
  font-size: clamp(0.72rem, 1.6vw, 0.9rem);
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.core-preview-hero strong {
  margin-top: 0.4rem;
  color: #ffffff;
  font-size: clamp(2.2rem, 6vw, 4.9rem);
  font-weight: 950;
  line-height: 0.9;
}

.core-preview-hero span {
  margin-top: 0.65rem;
  color: rgba(255,255,255,0.52);
  font-size: clamp(0.85rem, 1.8vw, 1rem);
}

.core-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.core-preview-grid span {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.025));
}

.core-preview-action {
  width: min(14rem, 70%);
  border-radius: 8px;
  background: linear-gradient(135deg, #e94e1b, #ff6b35);
}

.console-preview-frame {
  width: min(100%, 39rem);
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.console-preview-screen {
  width: min(100%, 33rem);
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 12px solid rgba(255,255,255,0.14);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 44%, rgba(233,78,27,0.24), transparent 34%),
    linear-gradient(145deg, rgba(255,255,255,0.09), rgba(255,255,255,0.025)),
    #0b0b0b;
  box-shadow: 0 30px 70px rgba(0,0,0,0.38);
}

.console-preview-screen span {
  width: 4.2rem;
  height: 4.2rem;
  border: 1px solid rgba(233,78,27,0.36);
  border-radius: 8px;
  background:
    url('/static/public/images/logos/skillevade_skull_white.webp') center / 72% auto no-repeat,
    rgba(233,78,27,0.1);
  opacity: 0.8;
}

.console-preview-screen strong {
  margin-top: 1rem;
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 3.8rem);
  font-weight: 950;
  line-height: 1;
}

.console-preview-screen p {
  margin: 0.65rem 0 0;
  color: rgba(255,255,255,0.52);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-partner-band {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255,255,255,0.055), rgba(233,78,27,0.08));
}

.home-partner-band__copy h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1;
}

.home-partner-band__copy p {
  max-width: 38rem;
  margin: 1rem 0 0;
  color: rgba(255,255,255,0.58);
  font-size: 1rem;
  line-height: 1.65;
}

.home-partner-cta,
.partner-primary-action,
.partner-submit,
.creator-payout-submit {
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  margin-top: 1.4rem;
  padding-left: 1.4rem;
  padding-right: 1.4rem;
}

.home-partner-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.home-partner-benefits div,
.partner-benefits div,
.partner-steps div,
.creator-future-grid span {
  padding: 1rem;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
}

.home-partner-benefits strong,
.partner-benefits strong {
  display: block;
  color: #ffffff;
  font-size: 1rem;
}

.home-partner-benefits span,
.partner-benefits span {
  display: block;
  margin-top: 0.35rem;
  color: rgba(255,255,255,0.52);
  font-size: 0.92rem;
  line-height: 1.45;
}

.partner-hero {
  min-height: calc(100vh - 4rem);
  display: flex;
  align-items: center;
  padding-top: 5rem;
  padding-bottom: 3rem;
  background:
    radial-gradient(circle at 76% 20%, rgba(233,78,27,0.16), transparent 30%),
    linear-gradient(180deg, #070707, #0a0a0a);
}

.partner-shell {
  width: min(100%, 76rem);
  margin: 0 auto;
}

.partner-hero .partner-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.85fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

.partner-brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.partner-brand-mark img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(233,78,27,0.35));
}

.partner-brand-mark span {
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

.partner-kicker {
  margin: 0 0 0.8rem;
  color: #e94e1b;
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.partner-hero__copy h1,
.partner-section h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2.3rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 0.98;
}

.partner-section h2 {
  font-size: clamp(1.9rem, 4vw, 3.1rem);
}

.partner-hero__copy p,
.partner-muted {
  max-width: 42rem;
  margin: 1rem 0 0;
  color: rgba(255,255,255,0.58);
  font-size: 1rem;
  line-height: 1.65;
}

.partner-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.partner-secondary-action {
  min-height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.2rem;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.82);
  font-weight: 800;
  text-decoration: none;
}

.partner-hero__actions .partner-primary-action {
  margin-top: 0;
}

/* Stylised preview of the Creator Hub. It replaced the 10%/15% tier panel,
   which showed an applicant the tier above them before they knew what the
   programme was. Numbers are illustrative -- partner.preview.note says so. */
.partner-preview {
  padding: 1rem;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
}

.partner-preview__chrome {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.partner-preview__chrome span {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
}

.partner-preview__chrome strong {
  margin-left: 0.5rem;
  color: rgba(255,255,255,0.6);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.partner-preview__tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  margin-top: 1rem;
}

.partner-preview__tiles div {
  padding: 0.8rem 0.7rem;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  background: rgba(0,0,0,0.25);
}

.partner-preview__tiles span {
  display: block;
  color: rgba(255,255,255,0.45);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.partner-preview__tiles strong {
  display: block;
  margin-top: 0.3rem;
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1.1;
}

.partner-preview__code {
  color: #e94e1b !important;
  font-size: 0.95rem !important;
  letter-spacing: 0.04em;
}

.partner-preview__chart {
  width: 100%;
  height: 4.5rem;
  margin-top: 1rem;
}

.partner-preview__chart polyline {
  fill: none;
  stroke: #e94e1b;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.partner-preview__note {
  margin-top: 0.7rem;
  color: rgba(255,255,255,0.38);
  font-size: 0.72rem;
  text-align: right;
}

@media (max-width: 520px) {
  .partner-preview__tiles {
    grid-template-columns: 1fr;
  }
}

.partner-grid-2,
.partner-application {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.partner-benefits,
.partner-steps,
.partner-bonus-list {
  display: grid;
  gap: 0.85rem;
}

.partner-steps {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.partner-steps span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(233,78,27,0.16);
  color: #ffd4c4;
  font-weight: 900;
}

.partner-steps strong {
  display: block;
  margin-top: 0.8rem;
  color: #ffffff;
  line-height: 1.25;
}

.partner-section-heading {
  margin-bottom: 1.6rem;
}

.partner-bonus-list {
  margin-top: 1.4rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.partner-bonus-list span {
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(233,78,27,0.22);
  border-radius: 8px;
  background: rgba(233,78,27,0.08);
  color: rgba(255,255,255,0.78);
  font-weight: 800;
}

.partner-form,
.creator-payout-form {
  display: grid;
  gap: 1rem;
}

.partner-form {
  padding: clamp(1.1rem, 3vw, 1.6rem);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 8px;
  background: linear-gradient(160deg, rgba(255,255,255,0.07), rgba(233,78,27,0.05));
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}

.partner-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.partner-form label,
.creator-payout-form label {
  display: grid;
  gap: 0.45rem;
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  font-weight: 800;
}

.partner-form input:not([type="checkbox"], [type="radio"]),
.partner-form select,
.creator-payout-form input:not([type="checkbox"], [type="radio"]),
.creator-payout-form select,
.creator-payout-form textarea {
  min-height: 3rem;
  width: 100%;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  background: rgba(0,0,0,0.28);
  color: #ffffff;
  padding: 0 0.9rem;
  font-weight: 650;
}

.creator-payout-form textarea {
  min-height: 6rem;
  padding-top: 0.8rem;
  resize: vertical;
}

.partner-form small {
  min-height: 1.2rem;
  color: rgba(255,255,255,0.42);
  font-weight: 700;
}

.partner-form small.is-ok {
  color: #86efac;
}

.partner-form small.is-warn,
.partner-form-error {
  color: #fca5a5;
}

.partner-form-error {
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: 8px;
  background: rgba(239,68,68,0.08);
  font-size: 0.9rem;
}

/* ── Creator Hub 2.0 ─────────────────────────────────── */
.creator-dashboard--hub .creator-dashboard__shell {
  width: min(100%, 72rem);
}

.creator-tabs {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  margin-bottom: 1.4rem;
  padding-bottom: 0.2rem;
}

.creator-tabs a {
  flex: 0 0 auto;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.64);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.creator-tabs a.is-active {
  border-color: rgba(233,78,27,0.42);
  background: rgba(233,78,27,0.14);
  color: #ffffff;
}

.creator-status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.creator-status-card,
.creator-panel,
.creator-bonus-focus,
.creator-asset-card {
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  background: rgba(255,255,255,0.045);
}

.creator-status-card {
  min-height: 8.3rem;
  padding: 1rem;
}

.creator-status-card--wide {
  grid-column: span 2;
}

.creator-status-card span,
.creator-status-card small {
  display: block;
  color: rgba(255,255,255,0.48);
  font-size: 0.78rem;
  font-weight: 750;
}

.creator-status-card strong {
  display: block;
  margin: 0.5rem 0 0.35rem;
  color: #ffffff;
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 900;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.creator-bonus-focus {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.9fr);
  gap: 1.25rem;
  align-items: center;
  margin-bottom: 1rem;
  padding: clamp(1.2rem, 3vw, 1.7rem);
  background: linear-gradient(135deg, rgba(233,78,27,0.16), rgba(255,255,255,0.045));
}

.creator-bonus-focus h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.5rem, 4vw, 2.35rem);
  font-weight: 900;
  line-height: 1.05;
}

.creator-bonus-focus p {
  margin: 0.7rem 0 0;
  color: rgba(255,255,255,0.58);
}

.creator-bonus-focus__bar {
  height: 1rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(0,0,0,0.34);
}

.creator-bonus-focus__bar span {
  display: block;
  min-width: 0.8rem;
  max-width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #e94e1b, #ff8a4c);
}

.creator-bonus-focus__numbers {
  display: flex;
  justify-content: space-between;
  margin-top: 0.6rem;
  color: rgba(255,255,255,0.54);
  font-size: 0.85rem;
  font-weight: 800;
}

.creator-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
}

.creator-panel {
  padding: clamp(1rem, 3vw, 1.4rem);
}

.creator-panel__heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.creator-panel__heading h2,
.creator-panel h2 {
  margin: 0;
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 900;
}

.creator-panel__text {
  margin: 1rem 0 0;
  color: rgba(255,255,255,0.58);
  line-height: 1.55;
}

.creator-code-settings {
  margin-bottom: 1rem;
}

.creator-code-settings__form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: end;
  margin-top: 1rem;
}

.creator-code-settings__form label {
  display: grid;
  gap: 0.4rem;
}

.creator-code-settings__form label span {
  color: rgba(255,255,255,0.48);
  font-size: 0.78rem;
  font-weight: 800;
}

.creator-code-settings__form input {
  width: 100%;
  min-height: 2.8rem;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  background: rgba(0,0,0,0.28);
  color: #ffffff;
  font: 800 0.96rem/1 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  outline: none;
  padding: 0 0.85rem;
  text-transform: uppercase;
}

.creator-code-settings__form input:focus {
  border-color: rgba(233,78,27,0.62);
}

.creator-code-settings__form .creator-discord-button {
  margin-top: 0;
  border-color: rgba(233,78,27,0.38);
  background: rgba(233,78,27,0.16);
  color: #ffffff;
}

.creator-bonus-tier-grid,
.creator-future-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 1rem;
}

.creator-bonus-tier-grid div {
  padding: 0.9rem;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
}

.creator-bonus-tier-grid div.is-achieved {
  border-color: rgba(34,197,94,0.3);
  background: rgba(34,197,94,0.08);
}

.creator-bonus-tier-grid span,
.creator-future-grid span {
  color: rgba(255,255,255,0.52);
  font-size: 0.85rem;
  font-weight: 800;
}

.creator-bonus-tier-grid strong {
  display: block;
  margin-top: 0.3rem;
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 900;
}

.creator-bonus-ladder {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
  margin-top: 1rem;
}

.creator-bonus-ladder__row {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.9rem;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  background: rgba(255,255,255,0.03);
}

/* Partial progress towards a milestone. Orange while in progress, green once
   the row is achieved, so "on the way" stays distinct from "done". */
.creator-bonus-ladder__fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(90deg, rgba(233,78,27,0.32), rgba(233,78,27,0.12));
  transition: width 0.35s ease;
  pointer-events: none;
}

.creator-bonus-ladder__row.is-achieved .creator-bonus-ladder__fill {
  background: linear-gradient(90deg, rgba(34,197,94,0.26), rgba(34,197,94,0.10));
}

.creator-bonus-ladder__sales,
.creator-bonus-ladder__plus {
  position: relative;
  z-index: 1;
}

.creator-bonus-ladder__row.is-achieved {
  border-color: rgba(34,197,94,0.28);
  background: rgba(34,197,94,0.07);
}

.creator-bonus-ladder__sales {
  font-size: 0.88rem;
  font-weight: 800;
  color: rgba(255,255,255,0.52);
}

.creator-bonus-ladder__row.is-achieved .creator-bonus-ladder__sales {
  color: rgba(255,255,255,0.78);
}

.creator-bonus-ladder__plus {
  font-size: 1rem;
  font-weight: 900;
  color: #ffffff;
}

.creator-bonus-ladder__row.is-achieved .creator-bonus-ladder__plus {
  color: #4ade80;
}

.creator-bonus-ladder__infinity {
  margin-top: 0.2rem;
  padding: 0.6rem 0.9rem;
  border: 1px dashed rgba(233,78,27,0.38);
  border-radius: 8px;
  background: rgba(233,78,27,0.06);
  text-align: center;
}

.creator-bonus-ladder__infinity-label {
  font-size: 0.83rem;
  font-weight: 800;
  color: rgba(233,78,27,0.9);
}

.creator-lang-switch {
  display: flex;
  align-items: center;
  gap: 0.28rem;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.creator-lang-switch a {
  color: rgba(255,255,255,0.3);
  text-decoration: none;
  transition: color 0.15s;
}

.creator-lang-switch a.is-active,
.creator-lang-switch a:hover {
  color: #ffffff;
}

.creator-lang-switch__sep {
  color: rgba(255,255,255,0.15);
}

.creator-discord-inline {
  color: #a5b4fc;
  font-weight: 700;
  text-decoration: none;
}

.creator-discord-inline:hover {
  text-decoration: underline;
}

.creator-visual-placeholder {
  border: 2px dashed rgba(233, 78, 27, 0.35);
  border-radius: 14px;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  margin-bottom: 1rem;
  background: rgba(233, 78, 27, 0.04);
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.8rem;
  font-style: italic;
  text-align: center;
}

.creator-visual-placeholder-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.creator-visual-placeholder--half {
  margin-bottom: 0;
}

@media (max-width: 600px) {
  .creator-visual-placeholder-row {
    grid-template-columns: 1fr;
  }
}

.creator-payout-steps {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.creator-payout-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.6rem 0.85rem;
  align-items: start;
}

.creator-payout-step__num {
  width: 1.7rem;
  height: 1.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(233,78,27,0.18);
  border: 1px solid rgba(233,78,27,0.35);
  color: #e94e1b;
  font-size: 0.78rem;
  font-weight: 900;
  flex-shrink: 0;
}

.creator-payout-step__label {
  font-size: 0.88rem;
  font-weight: 800;
  color: rgba(255,255,255,0.82);
  margin: 0;
  line-height: 1.7rem;
}

.creator-payout-step__text {
  grid-column: 2;
  font-size: 0.83rem;
  color: rgba(255,255,255,0.52);
  line-height: 1.5;
  margin: 0;
}

.creator-discord-button {
  min-height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
  padding: 0 1.1rem;
  border: 1px solid rgba(88,101,242,0.38);
  border-radius: 8px;
  background: rgba(88,101,242,0.16);
  color: #d7dcff;
  font-weight: 850;
  text-decoration: none;
}

.creator-invoice-helper__draft {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  background: rgba(0,0,0,0.3);
  color: rgba(255,255,255,0.86);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.82rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

.creator-invoice-helper__actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 0.9rem;
}

.creator-invoice-helper__warn {
  color: #f0b429;
  font-size: 0.8rem;
}

.creator-invoice-helper__vat {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.8rem;
}

.captcha-box { display: flex; align-items: center; gap: 0.6rem; padding: 0.7rem 0.9rem; border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; background: rgba(255,255,255,0.03); }
.captcha-box__dot { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: rgba(255,255,255,0.25); flex-shrink: 0; }
.captcha-box[data-state="solved"] .captcha-box__dot { background: #4ade80; }
.captcha-box__status { color: rgba(255,255,255,0.55); font-size: 0.8rem; }

.partner-form .partner-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-top: 0.4rem;
  color: rgba(255,255,255,0.62);
  font-size: 0.82rem;
  line-height: 1.45;
}

.partner-form .partner-consent input[type="checkbox"] {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  min-height: 0;
  padding: 0;
  margin: 0.15rem 0 0;
  accent-color: #e94e1b;
}

.partner-consent a {
  color: #e94e1b;
  text-decoration: underline;
}

/* ---- Free / Light / Pro comparison inside the Core offer dialog ---- */
.plan-dialog { width: min(70rem, calc(100vw - 1rem)); max-width: none; max-height: calc(100dvh - 1rem); margin: auto; padding: clamp(.75rem, 2vw, 1.5rem); border: 1px solid rgba(233,78,27,.5); border-radius: 18px; background: #101010; color: #fff; box-shadow: 0 28px 90px rgba(0,0,0,.75); overflow-y: auto; overscroll-behavior: contain; }
.plan-dialog::backdrop { background: rgba(0,0,0,.82); backdrop-filter: blur(4px); }
.plan-dialog__top { position: sticky; top: 0; z-index: 2; display: flex; justify-content: flex-end; pointer-events: none; }
.plan-dialog__close { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.2); border-radius: 10px; background: #262626; color: #fff; font-size: 1.7rem; line-height: 1; cursor: pointer; pointer-events: auto; }
.plan-dialog__close:hover, .plan-dialog__close:focus-visible { border-color: #ff9568; outline: 2px solid #ff9568; outline-offset: 2px; }
.home-plan-comparison { margin-top: -.5rem; }
.plan-shell { max-width: 64rem; margin: 0 auto; display: flex; flex-direction: column; gap: 1.5rem; }
.plan-head h2 { margin: 0 0 0.6rem; color: #fff; font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 900; letter-spacing: -0.02em; }
.plan-head p { margin: 0; color: rgba(255,255,255,0.62); max-width: 52ch; }
.plan-head .plan-eyebrow { margin-bottom: 0.7rem; color: rgba(255,255,255,0.42); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; }
.plan-scroll { overflow-x: auto; border-radius: 14px; }
.plan-table { width: 100%; min-width: 36rem; border-collapse: separate; border-spacing: 0; border: 1px solid rgba(255,255,255,0.09); border-radius: 14px; background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.015)); overflow: hidden; }
.plan-table th, .plan-table td { padding: 0.85rem 1rem; text-align: center; border-bottom: 1px solid rgba(255,255,255,0.09); }
.plan-table thead th { padding-block: 1.4rem 1.1rem; vertical-align: bottom; }
.plan-table th:first-child, .plan-table td:first-child { text-align: left; width: 42%; }
.plan-tier { display: flex; flex-direction: column; align-items: center; gap: 0.3rem; }
.plan-tier__name { color: #fff; font-size: 1.15rem; font-weight: 900; }
.plan-tier__note { color: rgba(255,255,255,0.42); font-size: 0.74rem; font-weight: 500; }
.plan-badge { display: inline-block; padding: 0.12rem 0.55rem; border-radius: 999px; background: #e94e1b; color: #fff; font-size: 0.62rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.plan-table .plan-col-pro { background: rgba(233,78,27,0.14); border-left: 1px solid rgba(233,78,27,0.45); border-right: 1px solid rgba(233,78,27,0.45); }
.plan-table thead .plan-col-pro { border-top: 2px solid #e94e1b; }
.plan-table .plan-group th { padding: 0.9rem 1rem 0.5rem; text-align: left; background: rgba(255,255,255,0.025); color: rgba(255,255,255,0.42); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; }
.plan-feature { color: #fff; font-weight: 600; font-size: 0.92rem; }
.plan-feature small { display: block; margin-top: 0.1rem; color: rgba(255,255,255,0.42); font-weight: 400; font-size: 0.76rem; }
.plan-beta { display: inline-block; margin-left: 0.4rem; padding: 0.05rem 0.45rem; border: 1px solid rgba(240,180,41,0.45); border-radius: 4px; color: #f0b429; font-size: 0.62rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; vertical-align: middle; }
.plan-tick, .plan-dash { display: inline-flex; align-items: center; justify-content: center; width: 1.5rem; height: 1.5rem; }
.plan-tick { border-radius: 50%; background: rgba(233,78,27,0.16); color: #e94e1b; }
.plan-tick svg { width: 0.85rem; height: 0.85rem; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.plan-dash::before { content: ""; width: 0.6rem; height: 2px; border-radius: 2px; background: rgba(255,255,255,0.18); }
.plan-cta-row td { border-bottom: 0; padding-block: 1.2rem; }
.plan-btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.6rem 1.1rem; border-radius: 10px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.05em; text-decoration: none; text-transform: uppercase; white-space: nowrap; }
.plan-btn--ghost { border: 1px solid rgba(255,255,255,0.09); background: rgba(255,255,255,0.035); color: #fff; }
.plan-legend { margin: 0; color: rgba(255,255,255,0.42); font-size: 0.76rem; }

/* ---- Free tier block on the home page ---- */
.home-free-section { padding-block: 3rem; }
.home-free { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1.6rem; align-items: center; padding: clamp(1.4rem, 4vw, 2.2rem); border: 1px solid rgba(233,78,27,0.45); border-radius: 16px; background: radial-gradient(circle at 12% 0%, rgba(233,78,27,0.2), transparent 55%), linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02)); }
.home-free__badge { display: inline-block; margin-bottom: 0.8rem; padding: 0.12rem 0.6rem; border-radius: 999px; background: #e94e1b; color: #fff; font-size: 0.62rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.home-free h2 { margin: 0; color: #fff; font-size: clamp(1.25rem, 3vw, 1.7rem); font-weight: 900; }
.home-free p { margin: 0.6rem 0 0; color: rgba(255,255,255,0.66); max-width: 44ch; }
.home-free__list { list-style: none; margin: 1.1rem 0 0; padding: 0; display: grid; gap: 0.45rem; color: #fff; font-size: 0.88rem; font-weight: 600; }
.home-free__actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; width: 100%; max-width: 23rem; justify-self: center; align-content: center; }
.home-free__actions > a, .home-free__actions > button { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 4rem; padding: 1rem 1.25rem; text-align: center; line-height: 1.3; font-size: 1rem; }
.home-free__actions > a.btn-accent { min-height: 4rem; }
.home-free__ghost { display: inline-flex; align-items: center; padding: 0.75rem 1.4rem; border: 1px solid rgba(255,255,255,0.12); border-radius: 12px; background: rgba(255,255,255,0.05); color: #fff; font: inherit; font-size: 0.9rem; font-weight: 700; text-decoration: none; cursor: pointer; }
.home-free__ghost:hover, .home-free__ghost:focus-visible { border-color: #ff9568; outline: 2px solid #ff9568; outline-offset: 2px; }
@media (max-width: 640px) { .home-free { grid-template-columns: 1fr; } }

/* ---- Showcase: creators and community partners ---- */
.home-creator-column { display: flex; flex-direction: column; align-items: center; gap: 0; padding-left: clamp(1.5rem, 3vw, 2.5rem); border-left: 1px solid rgba(255,255,255,0.09); }
.home-creator-kicker { margin: 0 0 0.9rem; color: #e94e1b; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; text-align: center; }
.showcase__slides { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 0.9rem; }
.showcase__card { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.3rem; border: 1px solid rgba(255,255,255,0.09); border-radius: 16px; background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02)); text-decoration: none; transition: border-color 0.2s ease, background 0.2s ease, opacity 0.2s ease; }
.showcase__card:hover, .showcase__card:focus-visible { border-color: rgba(233,78,27,0.4); background: rgba(233,78,27,0.07); }
.showcase__card:focus-visible { outline: 2px solid #e94e1b; outline-offset: 3px; }
.showcase__avatar { position: relative; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 4rem; height: 4rem; border-radius: 50%; background: rgba(233,78,27,0.18); color: #e94e1b; font-size: 1.5rem; font-weight: 900; overflow: hidden; }
.showcase__avatar::before { content: attr(data-initial); }
.showcase__avatar img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.showcase__body { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.showcase__body small { color: rgba(255,255,255,0.42); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.showcase__body strong { color: #fff; font-size: 1.15rem; font-weight: 800; overflow-wrap: anywhere; }
.showcase__cta { color: #e94e1b; font-size: 0.8rem; font-weight: 700; }
.showcase.is-enhanced .showcase__slides { display: flex; align-items: center; justify-content: center; gap: 1.5rem; max-width: none; }
.showcase.is-enhanced .showcase__slide { display: none; }
.showcase.is-enhanced .showcase__slide[data-role="current"],
.showcase.is-enhanced .showcase__slide[data-role="prev"],
.showcase.is-enhanced .showcase__slide[data-role="next"] { display: block; }
.showcase.is-enhanced .showcase__slide[data-role="prev"] { order: 0; }
.showcase.is-enhanced .showcase__slide[data-role="current"] { order: 1; }
.showcase.is-enhanced .showcase__slide[data-role="next"] { order: 2; }
.showcase.is-enhanced .showcase__card { flex-direction: column; align-items: center; text-align: center; gap: 0.6rem; padding: 0; border: 0; background: none; }
.showcase.is-enhanced .showcase__card:hover, .showcase.is-enhanced .showcase__card:focus-visible { background: none; border-color: transparent; }
.showcase.is-enhanced .showcase__slide[data-role="current"] .showcase__avatar { width: 12.75rem; height: 12.75rem; box-shadow: 0 0 0 4px rgba(233,78,27,0.6), 0 18px 50px rgba(0,0,0,0.55); }
.showcase.is-enhanced .showcase__slide[data-role="prev"] .showcase__avatar,
.showcase.is-enhanced .showcase__slide[data-role="next"] .showcase__avatar { width: 5.25rem; height: 5.25rem; }
.showcase.is-enhanced .showcase__slide[data-role="prev"] .showcase__card,
.showcase.is-enhanced .showcase__slide[data-role="next"] .showcase__card { opacity: 0.42; }
.showcase.is-enhanced .showcase__slide[data-role="prev"] .showcase__card:hover,
.showcase.is-enhanced .showcase__slide[data-role="next"] .showcase__card:hover,
.showcase.is-enhanced .showcase__slide[data-role="prev"] .showcase__card:focus-visible,
.showcase.is-enhanced .showcase__slide[data-role="next"] .showcase__card:focus-visible { opacity: 0.72; }
.showcase.is-enhanced .showcase__slide[data-role="prev"] .showcase__body,
.showcase.is-enhanced .showcase__slide[data-role="next"] .showcase__body { display: none; }
.showcase__dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 1.1rem; }
.showcase__dots button { width: 0.6rem; height: 0.6rem; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,0.2); cursor: pointer; }
.showcase__dots button.is-active { background: #e94e1b; }
.showcase__dots button:focus-visible { outline: 2px solid #e94e1b; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .showcase.is-enhanced .showcase__card { transition: none; } }

/* ---- Consolidated Platform/Features/Security tabs (2026-09-23) ---- */
.home-consolidated-tabs { display: flex; justify-content: center; gap: 0.6rem; margin-bottom: 2.2rem; flex-wrap: wrap; }
.home-consolidated-tab { padding: 0.65rem 1.3rem; border-radius: 999px; border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.03); color: rgba(255,255,255,0.6); font-size: 0.85rem; font-weight: 700; cursor: pointer; transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease; }
.home-consolidated-tab:hover { color: #fff; border-color: rgba(233,78,27,0.4); }
.home-consolidated-tab.is-active { background: #e94e1b; border-color: #e94e1b; color: #fff; }
.home-consolidated-tab:focus-visible { outline: 2px solid #e94e1b; outline-offset: 3px; }
.home-consolidated-panel[hidden] { display: none; }
.home-consolidated-security-lead { margin: 0 auto 1.2rem; max-width: 46ch; text-align: center; color: rgba(255,255,255,0.5); }
.home-security__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 0.9rem; }
.home-security__card { display: flex; flex-direction: column; gap: 0.4rem; padding: 1.2rem 1.3rem; border: 1px dashed rgba(255,255,255,0.18); border-radius: 14px; background: rgba(255,255,255,0.02); }
.home-security__card strong { color: #fff; font-size: 0.98rem; font-weight: 700; }
.home-security__card span { color: rgba(255,255,255,0.4); font-size: 0.82rem; }
@media (max-width: 640px) { .home-consolidated-tab { flex: 1 1 auto; text-align: center; } }
@media (max-width: 640px) {
  .showcase.is-enhanced .showcase__slide[data-role="prev"],
  .showcase.is-enhanced .showcase__slide[data-role="next"] {
    display: none;
  }
  .showcase.is-enhanced .showcase__slides {
    gap: 0;
  }
}

.creator-rules__list { margin: 0.9rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.55rem; }
.creator-rules__list li { position: relative; padding-left: 1.25rem; color: rgba(255,255,255,0.72); font-size: 0.9rem; line-height: 1.5; }
.creator-rules__list li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: #e94e1b; }
.creator-rules__count { margin: 1rem 0 0; padding-top: 0.9rem; border-top: 1px solid rgba(255,255,255,0.08); color: rgba(255,255,255,0.5); font-size: 0.82rem; }

.creator-trend .creator-panel__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.creator-trend__tabs {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.2rem;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
}

.creator-trend__tabs button {
  padding: 0.3rem 0.8rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255,255,255,0.55);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.creator-trend__tabs button.is-active {
  background: rgba(233,78,27,0.16);
  color: #e94e1b;
}

.creator-trend__panel[hidden] {
  display: none;
}

.creator-trend__svg {
  width: 100%;
  height: 7.5rem;
  margin-top: 1rem;
  overflow: visible;
}

.creator-trend__svg polyline {
  fill: none;
  stroke: #e94e1b;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.creator-trend__meta {
  display: flex;
  justify-content: space-between;
  margin-top: 0.75rem;
  color: rgba(255,255,255,0.45);
  font-size: 0.78rem;
}

.creator-mini-chart {
  min-height: 13rem;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: end;
  gap: 0.5rem;
  margin-top: 1rem;
}

.creator-mini-chart--daily {
  grid-template-columns: repeat(31, minmax(0, 1fr));
  gap: 0.25rem;
}

.creator-mini-chart div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
}

.creator-mini-chart span {
  width: 100%;
  max-height: 11rem;
  min-height: 0.45rem;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, #ff8a4c, #e94e1b);
}

.creator-mini-chart small {
  color: rgba(255,255,255,0.42);
  font-size: 0.68rem;
  writing-mode: vertical-rl;
  /* Fixed height keeps the bar baseline identical across charts whose
     labels differ in length (e.g. "01." vs "Sep 25"). */
  height: 3.2rem;
  flex-shrink: 0;
  overflow: hidden;
}

.creator-assets-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(8rem, 1fr);
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
}

.creator-asset-card {
  overflow: hidden;
  color: #ffffff;
  text-decoration: none;
}

.creator-asset-card__preview {
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.34);
}

.creator-asset-card__preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1rem;
}

.creator-asset-card__preview--dark {
  background: rgba(0,0,0,0.7);
}

.creator-asset-card > div:last-child {
  padding: 1rem;
}

.creator-asset-card span {
  color: #e94e1b;
  font-size: 0.75rem;
  font-weight: 850;
  text-transform: uppercase;
}

.creator-asset-card strong {
  display: block;
  margin-top: 0.35rem;
  font-size: 1rem;
}

.creator-asset-card p {
  margin: 0.4rem 0 0;
  color: rgba(255,255,255,0.52);
  font-size: 0.9rem;
  line-height: 1.45;
}

.creator-banner-generator {
  margin-bottom: 1rem;
}

.creator-product-assets {
  margin-bottom: 1rem;
}

.creator-banner-generator__grid {
  display: grid;
  grid-template-columns: minmax(16rem, 0.82fr) minmax(0, 1.18fr);
  gap: 1.25rem;
  align-items: start;
  margin-top: 1rem;
}

.creator-banner-generator__preview {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  background: #020202;
}

.creator-banner-generator__preview canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1060 / 1144;
}

.creator-banner-generator__controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  gap: 1rem;
  overflow-wrap: anywhere;
}

.creator-banner-generator__controls label {
  display: grid;
  min-width: 0;
  gap: 0.45rem;
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  font-weight: 800;
}

.creator-banner-generator__controls input {
  min-width: 0;
  max-width: 100%;
  min-height: 3rem;
  width: 100%;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  background: rgba(0,0,0,0.28);
  color: #ffffff;
  padding: 0 0.9rem;
  font-size: 1rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.creator-banner-generator__controls small,
.creator-banner-generator__hint {
  color: rgba(255,255,255,0.44);
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.45;
}

.creator-banner-generator__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.creator-banner-generator__actions button {
  flex: 1 1 10rem;
  min-width: 0;
  max-width: 100%;
  min-height: 3rem;
  margin-top: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}

.creator-banner-generator__hint {
  margin: 0;
}

.home-product-preview-grid {
  align-items: stretch;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-product-preview-card {
  min-width: 0;
}

.home-product-preview-media {
  position: relative;
  display: flex;
  flex: none;
  flex-direction: column;
}

/* Product art is square and carries its own logo and plan name. A fixed-height
   object-cover box cropped both, so the image keeps its ratio at every width. */
.home-product-preview-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

/* Positioned so the hover-scaled image cannot paint over the banner below it. */
.home-product-preview-title-banner {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 4.5rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  padding: 0.75rem 1.25rem;
  background: linear-gradient(135deg, rgba(20, 20, 20, 0.48), rgba(255, 255, 255, 0.1));
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
}

.home-product-preview-title-banner span {
  color: #fff;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.65);
  text-transform: uppercase;
}

.home-product-preview-title-brand {
  font-size: 0.98rem;
  letter-spacing: 0.12em;
}

.home-product-preview-title-plan {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

.home-product-preview-body {
  flex: 1 1 auto;
  min-width: 0;
}

.product-detail-media {
  position: relative;
}

.product-detail-title-banner {
  margin: 0;
}

/* Tablet: the art sits beside the purchase column instead of a full-width square above it. */
@media (min-width: 768px) and (max-width: 1023px) {
  .product-detail-layout { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 1.75rem; }
  .product-detail-aside { position: sticky; top: calc(5rem + var(--site-banner-h, 0px)); align-self: start; }
}

/* Phones: a smaller art tile, then duration, price and cart before the longer feature
   copy and plan comparison. Nothing is removed, only reordered. */
@media (max-width: 767px) {
  .product-detail-aside { width: min(100%, 16rem); margin-inline: auto; }
  .product-detail-info { display: flex; flex-direction: column; }
  .product-detail-info > .product-detail-badges { align-self: flex-start; }
  .product-detail-info > .product-detail-purchase { margin-bottom: 2rem; }
}

.home-product-preview-meta {
  gap: 1rem;
}

/* Two wide cards place the art beside the copy instead of a ~500px tall square. */
@media (min-width: 900px) and (max-width: 1279px) {
  .home-product-preview-card { flex-direction: row; }
  .home-product-preview-media { width: 44%; }
}

/* Four columns only once a card is ~290px wide; at 1024px they were ~230px. A filtered
   pair stays a two-card row rather than filling half of a four-column grid. */
@media (min-width: 1280px) {
  .home-product-preview-grid:not(.home-product-preview-grid--pair) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .home-product-preview-grid--pair .home-product-preview-card { flex-direction: row; }
  .home-product-preview-grid--pair .home-product-preview-media { width: 40%; }
}

@media (max-width: 900px) {
  .home-platform-panel,
  .home-partner-band,
  .home-partner-benefits,
  .partner-hero .partner-shell,
  .partner-grid-2,
  .partner-application,
  .creator-bonus-focus,
  .creator-dashboard-grid,
  .creator-banner-generator__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-creator-column {
    border-left: 0;
    padding-left: 0;
    margin-top: 1.5rem;
  }

  .partner-steps,
  .creator-status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .creator-status-card--wide {
    grid-column: span 2;
  }

  .home-platform-card {
    min-height: 8rem;
  }

  .home-platform-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-platform-panel__visual {
    min-height: 20rem;
  }

  .home-platform-panel__copy {
    text-align: center;
  }

  .home-platform-feature-list,
  .home-platform-actions {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .home-platform-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.55rem;
  }

  .home-platform-card {
    min-height: 6.4rem;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 0.75rem 1rem;
    text-align: left;
  }

  .home-platform-card__preview {
    display: block;
  }

  .home-platform-card__eyebrow {
    min-height: 1.65rem;
    padding: 0 0.65rem;
    font-size: 0.66rem;
  }

  .home-platform-card__title {
    margin-top: 0.55rem;
    font-size: 1rem;
    line-height: 1.08;
  }

  .home-platform-card__copy {
    display: none;
  }

  .home-platform-panel {
    padding: 0.75rem;
  }

  .home-platform-panel__visual {
    min-height: 16rem;
  }

  .home-platform-panel__visual--screenshots {
    min-height: 0;
    padding: 0.55rem;
  }

  .core-preview-stage {
    width: 100%;
    min-height: 18.8rem;
  }

  .core-preview-card {
    border-radius: 8px;
  }

  .core-preview-card--main {
    left: 8%;
    top: 6%;
    width: 84%;
    transform: rotateX(5deg) rotateY(-10deg) rotateZ(-2deg);
  }

  .core-preview-card--left {
    left: 2%;
    top: 52%;
    width: 44%;
    transform: rotateX(4deg) rotateY(12deg) rotateZ(6deg) translateZ(-40px);
  }

  .core-preview-card--right {
    right: 2%;
    top: 55%;
    width: 44%;
    transform: rotateX(4deg) rotateY(-13deg) rotateZ(-6deg) translateZ(-48px);
  }

  .core-preview-card--back {
    left: 31%;
    top: 2%;
    width: 40%;
    transform: rotateX(5deg) rotateY(-8deg) rotateZ(7deg) translateZ(-86px);
  }

  .core-preview-thumbs {
    gap: 0.45rem;
  }

  .home-platform-panel__copy h3 {
    font-size: 2rem;
  }

  .home-platform-actions a {
    width: 100%;
  }

  .core-preview-body {
    grid-template-columns: 3.8rem 1fr;
  }

  .core-preview-sidebar {
    padding: 0.85rem 0.65rem;
  }

  .core-preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .partner-steps,
  .partner-bonus-list,
  .partner-form-grid,
  .creator-status-grid,
  .creator-bonus-tier-grid,
  .creator-future-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .creator-status-card--wide {
    grid-column: auto;
  }

  .creator-mini-chart--daily {
    grid-template-columns: repeat(16, minmax(0, 1fr));
  }
}

/* ── Disable hover transforms on touch devices ────────── */
@media (hover: none) {
  .frosted-glass:hover {
    background: rgba(30, 30, 34, 0.62);
    border-color: rgba(255, 255, 255, 0.1);
    border-top-color: rgba(255, 255, 255, 0.16);
    box-shadow:
      inset 0 1px 0 0 rgba(255, 255, 255, 0.06),
      0 16px 40px -14px rgba(0, 0, 0, 0.6),
      0 6px 16px -8px rgba(0, 0, 0, 0.45);
  }
  .btn-accent:hover { box-shadow: none; }
  .danger-button:hover,
  .secondary-button:hover {
  }
  .clickable-row:hover td:first-child {
    box-shadow: none;
  }
}

@media (max-width: 768px) {
  .responsive-page-header {
    gap: 12px;
  }

  .responsive-actions {
    width: 100%;
    align-items: stretch;
  }

  .responsive-actions > *,
  .responsive-actions > form,
  .responsive-actions .btn-accent,
  .responsive-actions .btn-ghost,
  .responsive-actions .danger-button,
  .responsive-actions .secondary-button,
  .responsive-actions .action-link {
    width: 100%;
  }

  .row-action-group {
    width: 100%;
    justify-content: stretch;
  }

  .row-action-group > *,
  .row-action-group > form {
    width: 100%;
  }

  .row-action-group .secondary-button,
  .row-action-group .danger-button,
  .row-action-group .action-link {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   Hook editor — shared by /admin/hooks/{id} and the provisioning routing hook.
   The gutter is a sibling of the textarea, kept in sync by
   static/admin/js/hook-editor.js; both must share font metrics or the line
   numbers drift away from the lines they label.
   ========================================================================== */

.hook-tabs {
  display: flex;
  gap: 0.25rem;
  padding: 0 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  overflow-x: auto;
}

.hook-tab {
  padding: 0.65rem 0.95rem;
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.55);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  background: none;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  cursor: pointer;
}

.hook-tab:hover {
  color: rgba(255, 255, 255, 0.85);
}

.hook-tab[aria-selected="true"] {
  color: #ffffff;
  border-bottom-color: #e94e1b;
}

.hook-tab:focus-visible {
  outline: 2px solid #e94e1b;
  outline-offset: -2px;
}

.hook-panel[hidden] {
  display: none;
}

.code-editor {
  display: flex;
  align-items: stretch;
  border-radius: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.32);
  overflow: hidden;
}

.code-editor-gutter,
.code-editor-area {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.75rem;
  line-height: 1.65;
  padding: 0.7rem 0;
  border: 0;
}

.code-editor-gutter {
  flex: 0 0 auto;
  padding-left: 0.7rem;
  padding-right: 0.6rem;
  text-align: right;
  white-space: pre;
  color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.02);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  user-select: none;
  font-variant-numeric: tabular-nums;
}

.code-editor-area {
  flex: 1 1 auto;
  min-width: 0;
  padding-left: 0.8rem;
  padding-right: 0.8rem;
  background: transparent;
  color: rgba(255, 255, 255, 0.88);
  resize: vertical;
  white-space: pre;
  overflow-wrap: normal;
  overflow-x: auto;
  tab-size: 2;
}

.code-editor-area:focus {
  outline: none;
  box-shadow: none;
}

.code-editor:focus-within {
  border-color: rgba(233, 78, 27, 0.45);
}

.hook-env-row {
  display: grid;
  grid-template-columns: minmax(8rem, 1fr) minmax(10rem, 2fr) auto;
  gap: 0.5rem;
  align-items: center;
}

@media (max-width: 40rem) {
  .hook-env-row {
    grid-template-columns: 1fr;
  }
}

.hook-payload {
  max-height: 16rem;
  overflow: auto;
}

/* ==================================================================
   Apple-craft layer — Typografie, Fokus, Motion-Accessibility
   Leitfaden: emilkowalski/skills - apple-design (SS1, SS12, SS14, SS15, SS16)
   ================================================================== */

/* SS15 — Typo-Skala: groessenabhaengiges Tracking + Leading */
.t-display { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.5rem); line-height: 1.05; letter-spacing: -0.022em; font-weight: 700; }
.t-h1      { font-size: 1.5rem; line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }
.t-h2      { font-size: 1.0625rem; line-height: 1.25; letter-spacing: -0.014em; font-weight: 600; }
.t-body    { font-size: 0.9375rem; line-height: 1.55; letter-spacing: 0; }
.t-meta    { font-size: 0.8125rem; line-height: 1.45; letter-spacing: 0; color: var(--text-secondary); }
.t-eyebrow { font-size: 0.6875rem; line-height: 1; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: var(--text-tertiary); }

/* SS1 — konsistentes Fokus-/Press-Feedback */
a, button, [role="button"], summary, .nav-link, .action-link { -webkit-tap-highlight-color: transparent; }
:where(a, button, [role="button"]):focus-visible {
  outline: 2px solid rgba(233, 78, 27, 0.85);
  outline-offset: 2px;
  border-radius: 4px;
}

/* SS12 — interaktive Glas-Flaeche gibt beim Druck taktil nach */
a.frosted-glass:active,
button.frosted-glass:active,
.frosted-glass[role="button"]:active {
  transform: scale(0.985);
  transition: transform 120ms var(--ease-out-soft);
}

/* SS14 — Reduced Motion: Bewegung raus, Verstaendlichkeit bleibt */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .animate-fade-in, .animate-slide-up { animation: none !important; opacity: 1 !important; transform: none !important; }
  a.frosted-glass:active, button.frosted-glass:active,
  .btn-accent:active, .btn-ghost:active, .nav-link:active,
  .action-link:active, .secondary-button:active, .danger-button:active,
  .clickable-row:active { transform: none !important; }
}

/* SS14 — Reduced Transparency: Materialien werden fest */
@media (prefers-reduced-transparency: reduce) {
  .frosted-glass,
  .frosted-glass:hover,
  .frosted-glass.no-hover:hover {
    background: #17171a !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  .admin-table thead th { background: #121214 !important; backdrop-filter: none !important; }
}

/* SS14 — mehr Kontrast: definierte Raender statt zarter Schleier */
@media (prefers-contrast: more) {
  .frosted-glass { border-color: rgba(255, 255, 255, 0.4) !important; }
  .nav-link { color: rgba(255, 255, 255, 0.85); }
  .badge { border-width: 1px; }
  :root { --text-secondary: #c8c8c8; --text-tertiary: rgba(255, 255, 255, 0.7); }
}


/* ==================================================================
   Layout-Layer (Durchgang 2) — einheitliche Bausteine, Mobile-Härtung
   ================================================================== */

/* ---- Seiten-Shell: ersetzt p-4 sm:p-8 max-w-* ---- */
.page        { padding: clamp(16px, 4vw, 32px); min-width: 0; }
.page--narrow { max-width: 44rem; margin-inline: auto; }
.page--mid    { max-width: 64rem; margin-inline: auto; }
.page--wide   { max-width: 82rem; margin-inline: auto; }

/* Content-Spalte darf nie hinter der fixed Sidebar verschwinden,
   auch wenn admin-shell.js nicht lädt (statischer Desktop-Fallback). */
.admin-main { min-width: 0; }
@media (min-width: 1024px) {
  body.admin-shell .admin-main { margin-left: var(--admin-sidebar-width); }
}

/* ---- Page-Header: konsolidiert responsive-page-header + ad-hoc flex-between ---- */
.page-header,
.responsive-page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.page-header > :first-child,
.page-header__main,
.responsive-page-header-main { min-width: 0; flex: 1 1 260px; }
.page-header > :first-child > h1,
.page-header__main > h1 { margin: 0; }

.page-header__actions,
.responsive-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
/* die zweite+ direkte Zeile des Headers ist der Aktionsbereich */
.page-header > :not(:first-child),
.page-header > form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

/* ---- Buttons: 3+1, Geometrie gehört der Klasse ---- */
.btn-danger {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px; border-radius: var(--radius-md);
  font-weight: 600; font-size: 14px; line-height: 1;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  transition: transform 120ms var(--ease-out-soft), background 120ms ease, border-color 120ms ease;
}
.btn-danger:hover { background: rgba(239, 68, 68, 0.18); border-color: rgba(239, 68, 68, 0.45); }
.btn-danger:active { transform: scale(0.97); }

/* kleine Variante für Tabellen-/Inline-Aktionen */
.btn--sm { min-height: 36px; padding: 6px 14px; font-size: 12px; }

/* Alt-Namen als Alias, damit Teilmigration nicht bricht */
.danger-button    { border-radius: var(--radius-md); }
.secondary-button { border-radius: var(--radius-md); }

/* ---- Karten-Fläche: kanonisch ---- */
.card         { padding: 20px; border-radius: var(--radius-lg); }
.card--flush  { padding: 0; overflow: hidden; }
.card--pad-lg { padding: 24px; }

/* ---- Tabellen: Overflow-Fallback für nicht stackbare Raster ---- */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: inherit;
}

/* ---- Anti-Kollision: lange Mails/IDs/URLs brechen, statt zu überlaufen ----
   Admin tables opt out below (see "Admin tables follow their real width"):
   inherited `anywhere` lets table layout shrink text columns to one glyph. */
.card, .frosted-glass, .page-header__main { overflow-wrap: anywhere; }
.u-min0 { min-width: 0; }
.badge-row { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---- Mobil < 768: Aktionen volle Breite, Tabellen sauber gestapelt ---- */
@media (max-width: 768px) {
  .page-header { margin-bottom: 20px; }
  .page-header__actions,
  .responsive-actions,
  .page-header > :not(:first-child),
  .page-header > form { width: 100%; }
  .page-header__actions > *,
  .page-header > :not(:first-child) > *,
  .page-header > form > *,
  .page-header .btn-accent,
  .page-header .btn-ghost,
  .page-header .btn-danger { width: 100%; }

  /* Filter-/Suchformulare in Karten: umbrechen, Eingabe + Button volle Breite */
  .card > form, .frosted-glass > form { flex-wrap: wrap; }
  .card > form > .input, .frosted-glass > form > .input,
  .card > form > input, .frosted-glass > form > input { flex: 1 1 100%; min-width: 0; }
  .card > form > .btn-accent, .frosted-glass > form > .btn-accent,
  .card > form > .btn-ghost,  .frosted-glass > form > .btn-ghost { width: 100%; }
}

/* Public mobile and keyboard remediation, scoped away from the admin UI. */
.public-site :is(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid #ffac80 !important;
  outline-offset: 3px;
}
.skip-link { position: fixed; top: -8rem; left: 1rem; z-index: 100; padding: 1rem; background: #fff; color: #111; }
.skip-link:focus { top: 0.5rem; }
.mobile-nav-open { overflow: hidden; }

/* ==================================================================
   Admin usability pass — one resilient layout contract for every route.
   ================================================================== */

/* Every current and older template gets the same readable content rail.
   min-width: 0 is deliberate: it lets long identifiers wrap inside grids
   instead of forcing a second page-wide scrollbar. */
.admin-main > .page,
.admin-main > .admin-section {
  inline-size: 100%;
  max-inline-size: 96rem;
  margin-inline: auto;
}

.admin-main .page,
.admin-main .admin-section,
.admin-main :is(.grid, .flex, .table-wrap, .card, .frosted-glass) {
  min-width: 0;
}

.admin-main :is(input, select, textarea) {
  max-inline-size: 100%;
}

.admin-main :is(input[type="checkbox"], input[type="radio"]) {
  inline-size: 1.125rem;
  block-size: 1.125rem;
  flex: 0 0 auto;
  accent-color: #e94e1b;
}

/* Older e-mail administration routes predate the page component. Keep them
   readable and give their controls the same geometry as the modern pages. */
.admin-section {
  padding: clamp(1rem, 4vw, 2rem);
}

.admin-section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.admin-section__head h1 {
  margin: 0;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.admin-inline-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.625rem;
}

.admin-inline-form input {
  min-inline-size: min(100%, 15rem);
  min-block-size: 44px;
  padding: 0.625rem 0.875rem;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
}

.admin-inline-form button,
.admin-section .stack-cell-actions > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-block-size: 40px;
  padding: 0.5rem 0.875rem;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.07);
}

.admin-inline-form button:hover,
.admin-section .stack-cell-actions > a:hover {
  border-color: rgba(233, 78, 27, 0.5);
  background: rgba(233, 78, 27, 0.16);
}

.admin-empty {
  padding: 3rem 1rem;
  margin: 0;
  text-align: center;
  color: var(--text-secondary);
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
}

/* A single wrap point prevents a long label or a second action from pushing
   controls outside the card. Desktop layouts stay horizontal when they fit. */
.admin-main [class~="justify-between"] {
  column-gap: 0.875rem;
  row-gap: 0.75rem;
  flex-wrap: wrap;
}

.admin-main .page-header,
.admin-main .responsive-page-header {
  scroll-margin-top: 1rem;
}

/* Action labels must retain whole words even inside flexible table cells. */
.admin-main :is(.btn-accent, .btn-ghost, .btn-danger) {
  flex-shrink: 0;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
  line-height: 1.35;
  text-align: center;
}
.admin-main button {
  overflow-wrap: normal;
  word-break: normal;
  flex-shrink: 0;
}
.admin-main form.flex { flex-wrap: wrap; }
.admin-main .hook-tabs { flex-wrap: wrap; }
.admin-main .admin-table :is(th, .badge, .action-link) { white-space: nowrap; }
.admin-goal-edit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; align-items: end; }
.admin-goal-edit-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.5rem; }
@media (min-width: 1400px) {
  .admin-goal-edit-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 639px) {
  .admin-goal-edit-grid { grid-template-columns: minmax(0, 1fr); }
}
.admin-main :is(.btn-accent, .btn-ghost, .btn-danger) > svg {
  width: 1rem;
  height: 1rem;
  flex: 0 0 1rem;
}
.admin-main .page-header > :is(button, a) { flex-wrap: nowrap; }
.admin-mobile-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}
.admin-team-create {
  display: grid;
  grid-template-columns: minmax(12rem, 2fr) minmax(10rem, 2fr) minmax(9rem, 1fr) auto;
  align-items: end;
  gap: 0.75rem;
}
.admin-team-create > div { min-width: 0; }
.admin-team-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.625rem;
}
.admin-team-role {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.625rem;
}
.admin-team-role select { width: 9.5rem; }
.admin-team-role .btn-accent { min-width: 7.5rem; white-space: nowrap; }
.admin-team-actions > form { min-width: 0; }

@media (max-width: 1199px) {
  .admin-team-create { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .admin-team-create { grid-template-columns: minmax(0, 1fr); }
  .admin-team-create > button { width: 100%; }
}
/* Table view: role form above password reset in a cell sized for select +
   save. A right-aligned row in a narrower cell overflowed to the left and
   covered the "Created" column. */
@container admin-table (min-width: 64rem) {
  .admin-main .admin-table td.admin-team-actions-cell { min-inline-size: 21rem; }
  .admin-team-actions { flex-direction: column; align-items: flex-end; align-items: safe flex-end; }
}
@container admin-table (max-width: 23.99rem) {
  .admin-team-actions, .admin-team-role { flex-direction: column; align-items: stretch; }
  .admin-team-actions > form, .admin-team-role select, .admin-team-actions button { width: 100%; }
}

@media (max-width: 1023px) {
  .admin-shell-phone .admin-sidebar {
    overscroll-behavior: contain;
    box-shadow: 16px 0 48px rgba(0, 0, 0, 0.38);
  }

  .admin-shell-phone .admin-sidebar nav {
    padding-bottom: 1.5rem;
  }

  .admin-shell-phone .nav-link {
    min-block-size: 44px;
  }

  .admin-shell-phone .admin-footer {
    padding-bottom: max(1rem, env(safe-area-inset-bottom, 0));
  }
}

@media (max-width: 768px) {
  .admin-main > .page,
  .admin-main > .admin-section {
    max-inline-size: none;
  }

  .admin-main .page > .frosted-glass,
  .admin-main .page > .card,
  .admin-main .admin-section > .frosted-glass,
  .admin-main .admin-section > .card {
    border-radius: 1rem;
  }

  .admin-inline-form,
  .admin-main form.flex:not(.contents) {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .admin-inline-form input,
  .admin-inline-form button,
  .admin-main form.flex:not(.contents) > :is(.input, input, select, textarea, .btn-accent, .btn-ghost, .btn-danger) {
    inline-size: 100%;
    min-inline-size: 0;
  }

  .admin-main .page :is(.btn-accent, .btn-ghost, .btn-danger) {
    max-inline-size: 100%;
  }
}

/* ==================================================================
   Admin tables follow their real width.
   The expanded sidebar leaves ~678px of content at 1042px and detail grids
   nest tables in ~443px, so a viewport breakpoint cannot choose between
   table and cards. Every .table-wrap is a size container instead. It only
   holds tables (no fixed-position UI), so its containment cannot trap
   overlays such as the confirm modal or the integrations sub-navigation.
   ================================================================== */
.admin-main .table-wrap { container: admin-table / inline-size; }

/* Normal breaking keeps names, dates, SKUs and terms whole. Only marked long
   identifiers (mail addresses, URLs, IDs) may break at any character. */
.admin-main :is(.admin-table, .stack-table) { overflow-wrap: break-word; }
.admin-main .stack-table .admin-break { overflow-wrap: anywhere; }
/* Truncated free text keeps a bounded column in the table view. */
.admin-main .stack-table .admin-cell-clamp { max-inline-size: 12.5rem; }

@container admin-table (min-width: 64rem) {
  .admin-main .stack-table td :is(.badge, .font-mono, code) { white-space: nowrap; }
}

/* Card view: short fields share rows in an auto-filling grid instead of one
   full-width block per field; identifiers, multi-line cells and actions
   take a full row. */
@container admin-table (max-width: 63.99rem) {
  .admin-main .stack-table { display: block; inline-size: 100%; min-inline-size: 0; }
  .admin-main .stack-table thead { display: none; }
  .admin-main .stack-table > tbody { display: block; padding: 6px 12px; }
  .admin-main .stack-table > tbody:first-of-type { padding-top: 12px; }
  .admin-main .stack-table > tbody:last-of-type { padding-bottom: 12px; }
  .admin-main .stack-table > tbody > tr {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 7rem), 1fr));
    column-gap: 1rem;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    background: rgba(255,255,255,0.03);
  }
  .admin-main .stack-table > tbody > tr + tr { margin-top: 10px; }
  .admin-main .stack-table > tbody > tr.clickable-row:hover { box-shadow: inset 3px 0 0 rgba(233, 78, 27, 0.8); }
  .admin-main .stack-table > tbody > tr.clickable-row:hover > td:first-child { box-shadow: none; }
  .admin-main .stack-table > tbody > tr > td {
    display: block;
    min-inline-size: 0;
    padding: 0.375rem 0;
    border: 0;
    font-size: 14px;
    text-align: left !important;
  }
  .admin-main .stack-table > tbody > tr > td > * { min-inline-size: 0; max-inline-size: 100%; }
  /* Long event names may wrap inside a narrow card column instead of overflowing. */
  .admin-main .stack-table td .badge { max-inline-size: 100%; white-space: normal; }
  .admin-main .stack-table .admin-cell-clamp { max-inline-size: 100%; }
  .admin-main .stack-table td[data-label]::before {
    display: block;
    margin-bottom: 2px;
    color: rgba(255,255,255,0.42);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }
  .admin-main .stack-table td:is([data-label=""], .stack-cell-actions)::before { display: none; }
  .admin-main .stack-table > tbody > tr > td:first-child,
  .admin-main .stack-table > tbody > tr > td:is(.stack-cell-full, .stack-cell-wide, .stack-cell-actions),
  .admin-main .stack-table > tbody > tr > td:has(> div + div) { grid-column: 1 / -1; }
  /* Time-first log rows: the timestamp shares its row with the next field. */
  .admin-main .stack-table > tbody > tr > td.stack-cell-auto { grid-column: auto; }

  .admin-main .stack-table > tbody > tr > td.stack-cell-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding-top: 0.5rem;
  }
  /* The whole card already opens the record; a lone link only needs a corner.
     Rows with real form actions keep a full action row. */
  .admin-main .stack-table > tbody > tr.clickable-row > td.stack-cell-actions:not(:has(form)) {
    grid-column: -2 / -1;
    justify-self: end;
    padding-top: 0;
  }
  .admin-main .stack-table td.stack-cell-actions :is(.row-action-group, .responsive-actions) {
    inline-size: auto;
    justify-content: flex-end;
  }
  .admin-main .stack-table td.stack-cell-actions :is(.row-action-group, .responsive-actions) > * { inline-size: auto; }

  .admin-main .core-release-table td:first-child { min-inline-size: 0; }
  .admin-main .core-release-link { max-inline-size: 100%; }
}

@container admin-table (max-width: 23.99rem) {
  .admin-main .stack-table > tbody > tr:not(.clickable-row) > td.stack-cell-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .admin-main .stack-table > tbody > tr:not(.clickable-row) > td.stack-cell-actions :is(.btn-accent, .btn-ghost, .btn-danger, .action-link, .secondary-button, .danger-button, .row-action-group, .responsive-actions, .row-action-group > *, .responsive-actions > *) {
    inline-size: 100%;
    justify-content: center;
  }
}

/* Product detail: columns follow the page's own width. The page holds no
   fixed-position UI; the image editor modal is rendered as its sibling. */
.admin-product-page { container: admin-product / inline-size; }
.admin-product-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
.admin-product-aside {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 1.5rem;
  align-content: start;
}
/* Variant create/edit fields wrap by available width; nine fixed columns
   were unusable inside a narrow card. */
.admin-variant-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 8.5rem), 1fr));
  gap: 0.75rem;
  align-items: end;
}
@container admin-product (min-width: 60rem) {
  .admin-product-layout { grid-template-columns: minmax(0, 2fr) minmax(16rem, 1fr); }
  .admin-product-layout > .admin-product-wide { grid-column: 1 / -1; }
}

/* Integrations: when the content left beside both navigations would be
   cramped, admin-shell.js switches to the horizontal area tabs. */
body.admin-shell-desktop.admin-integrations-tabs .integrations-content-shell { padding-left: 0; }
body.admin-shell-desktop.admin-integrations-tabs:has(.integrations-subnav-fixed) .admin-flash { padding-left: 2rem; }
.public-site .mobile-menu-panel { max-height: calc(100vh - 4rem); max-height: calc(100dvh - 4rem); overflow-y: auto; overscroll-behavior: contain; }
.public-site .footer-grid-mobile > * { min-width: 0; }
.public-footer-links { display: grid; justify-items: start; gap: .5rem; }
.public-footer-link { display: block; color: rgba(255,255,255,.72); font-size: .875rem; line-height: 1.25rem; transition: color .15s; }
.public-footer-link:hover, .public-footer-link:focus-visible { color: #e94e1b; }
.public-footer-link--discord:hover, .public-footer-link--discord:focus-visible { color: #5865F2; }
/* Phones: brand on its own row, then Shop and Legal beside the longer Service list,
   so the footer is roughly half as tall without breaking link words. */
@media (max-width: 639px) {
  .public-site .public-footer { margin-top: 3.5rem; }
  .public-site .public-footer .public-shell { padding-block: 2.25rem 1.75rem; }
  .public-site .footer-grid-mobile { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 1rem; margin-bottom: 1.75rem; }
  .public-site .footer-grid-mobile > .public-footer-brand { grid-column: 1 / -1; margin-bottom: 0; }
  .public-site .footer-grid-mobile > .public-footer-shop { grid-column: 1; grid-row: 2; }
  .public-site .footer-grid-mobile > .public-footer-service { grid-column: 2; grid-row: 2 / span 2; }
  .public-site .footer-grid-mobile > .public-footer-legal { grid-column: 1; grid-row: 3; }
  .public-footer-links { gap: 0; }
  .public-footer-links > :is(a, button) { display: flex; align-items: center; min-height: 2.25rem; }
  .public-site .public-footer-heading { margin-bottom: .35rem; }
}
/* Below ~340px two columns would split "Einrichtungsanleitung"; stack instead. */
@media (max-width: 339px) {
  .public-site .footer-grid-mobile { grid-template-columns: minmax(0, 1fr); }
  .public-site .footer-grid-mobile > :is(.public-footer-shop, .public-footer-service, .public-footer-legal) { grid-column: 1; grid-row: auto; }
}
.guide-heading { overflow-wrap: anywhere; hyphens: auto; font-size: clamp(1.65rem, 6vw, 3rem); }
.checkout-discount-row { min-width: 0; }
.checkout-discount-row input { min-width: 0; width: 100%; }
.plan-scroll { max-height: 70vh; isolation: isolate; }
.plan-dialog .plan-scroll { max-height: none; }
/* The table must not establish a second scroll container for sticky cells. */
.plan-table { overflow: visible; }
.plan-table thead th { position: sticky; top: 0; z-index: 3; background: #171717; }
.plan-table .plan-feature, .plan-table thead th:first-child { position: sticky; left: 0; z-index: 2; background: #171717; box-shadow: 1px 0 #555; }
.plan-table thead th:first-child { z-index: 4; }
.plan-table thead .plan-col-pro { background: #382018; }
.showcase__dots { gap: 0.25rem; }
.showcase__dots button { width: 44px; height: 44px; background: transparent; display: grid; place-items: center; }
.showcase__dots button::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: #aaa; }
.showcase__dots button.is-active { background: transparent; }
.showcase__dots button.is-active::before { background: #ff9568; }
.public-site .home-product-preview-description { font-size: 0.875rem; line-height: 1.5; color: #bdbdbd !important; display: block; overflow: visible; }
.public-site .home-product-preview-meta p:last-child { font-size: 0.875rem; color: #bdbdbd !important; }
.faq-empty { padding: 1.5rem; text-align: center; }
.faq-empty button { margin-top: 1rem; }
@media (max-width: 639px) {
  .plan-table th:first-child, .plan-table td:first-child { width: 10rem; min-width: 10rem; max-width: 10rem; overflow-wrap: anywhere; }
}
@media (max-width: 359px) { .checkout-discount-row { flex-direction: column; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  .public-site *, .public-site *::before, .public-site *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

.video-consent { position: absolute; inset: 0; background: #171717; color: #eee; }
.video-consent__prompt { height: 100%; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 0.75rem; text-align: center; font-size: 0.875rem; }
.video-consent__prompt a { text-decoration: underline; }
.video-consent__prompt button { flex-shrink: 0; min-height: 44px; padding: 0.75rem; }
@media (max-width: 480px) { .video-consent__prompt { padding: 0.5rem; gap: 0.4rem; font-size: 0.8rem; } .video-consent__prompt button { padding: 0.5rem; } }
.video-consent__revoke { position: absolute; bottom: 0; left: 0; width: 100%; min-height: 44px; background: #222; color: #eee; font-size: 0.8rem; }
.public-site .plan-feature small, .public-site .plan-group th, .public-site .plan-tier__note { color: #bdbdbd; }

/* Keep Free as a fixed baseline while choosing the paid tier on phones. */
.plan-mobile-baseline, .plan-mobile-controls { display: none; }
@media (max-width: 639px) {
  .home-plan-comparison { margin-top: -.5rem; }
  .plan-mobile-baseline { display: block; padding: 1rem 1.25rem; border: 1px solid rgba(233,78,27,.4); border-radius: 14px; background: rgba(233,78,27,.08); }
  .plan-mobile-baseline h3 { margin: 0 0 .55rem; color: #fff; font-size: 1rem; }
  .plan-mobile-baseline ul { display: grid; gap: .3rem; margin: 0; padding-left: 1.25rem; color: #ddd; font-size: .875rem; list-style: disc; }
  .plan-mobile-baseline li::marker { color: #ff9568; }
  .plan-mobile-controls .plan-legend { color: #bdbdbd; font-size: .82rem; }
  .plan-mobile-controls { display: grid; gap: .65rem; }
  .plan-mobile-switch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
  .plan-mobile-switch button { min-height: 44px; border: 1px solid #666; border-radius: 10px; background: #222; color: #fff; font-weight: 700; }
  .plan-mobile-switch button.is-active { border-color: #ff9568; background: #512416; }
  .plan-page .plan-scroll { max-height: none; overflow-x: visible; overflow-y: visible; }
  .plan-page .plan-table { min-width: 0; width: 100%; table-layout: fixed; }
  .plan-page:not(.plan-mobile--pro) .plan-table tr > :nth-child(4),
  .plan-mobile--pro .plan-table tr > :nth-child(3) { display: none; }
  .plan-page .plan-table th, .plan-page .plan-table td { padding: .75rem .35rem; }
  .plan-page .plan-table th:first-child, .plan-page .plan-table td:first-child { width: 43%; min-width: 0; max-width: none; padding-inline: .65rem; }
  .plan-page .plan-table th:nth-child(2), .plan-page .plan-table td:nth-child(2),
  .plan-page .plan-table th:nth-child(3), .plan-page .plan-table td:nth-child(3),
  .plan-page .plan-table th:nth-child(4), .plan-page .plan-table td:nth-child(4) { width: 28.5%; }
  .plan-page .plan-tier__name { font-size: .95rem; }
  .plan-page .plan-tier__note { overflow-wrap: anywhere; font-size: .68rem; }
  .plan-page .plan-badge { font-size: .55rem; }
  .plan-page .plan-feature { font-size: .82rem; overflow-wrap: anywhere; }
  .plan-page .plan-feature small { font-size: .71rem; }
  .plan-page .plan-cta-row .plan-btn { white-space: normal; overflow-wrap: anywhere; padding: .55rem .35rem; font-size: .66rem; }
}

/* Compact, touch-friendly home layout on phones. */
.home-free__badge { animation: pulse-badge 2.4s ease-in-out infinite; padding: .5em 1.1em; font-size: .95em; }
.home-platform-icons { display: flex; justify-content: center; flex-wrap: wrap; gap: .875rem; margin-top: 1.375rem; }
.platform-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; min-width: 5.5rem; padding: .75rem 1.125rem; border: 1px solid rgba(255,255,255,.08); border-radius: 12px; background: rgba(255,255,255,.03); }
.platform-card__icon { width: 24px; height: 24px; object-fit: contain; filter: brightness(0) invert(1); }
.platform-card__label { color: #fff; font-size: .8rem; font-weight: 500; text-align: center; line-height: 1.2; }

@media (max-width: 639px) {
  .hero-shell .home-cta-stack { flex-direction: row; gap: .5rem; margin-bottom: .75rem; }
  .hero-shell .home-cta-stack a { flex: 1 1 0; min-width: 0; min-height: 4.25rem; display: inline-flex; align-items: center; justify-content: center; padding: .6rem .4rem; font-size: .88rem; line-height: 1.2; text-align: center; }

  .home-free { gap: 1.25rem; padding: 1.3rem; }
  .home-free__badge { animation: pulse-badge 2.4s ease-in-out infinite; padding: .42rem .8rem; font-size: .72rem; }
  .home-free h2 { font-size: 1.55rem; line-height: 1.16; }
  .home-free p { margin-top: .85rem; font-size: .94rem; line-height: 1.5; }
  .home-free__list { gap: .55rem; margin-top: 1rem; font-size: .88rem; line-height: 1.45; }
  .home-free__list li { position: relative; padding-left: 1rem; }
  .home-free__list li::before { content: ''; position: absolute; left: 0; top: .58em; width: .38rem; height: .38rem; border-radius: 50%; background: #ff9568; }
  .home-free__actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: .65rem; width: 100%; }
  .home-free__actions > a, .home-free__actions > button { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 3.4rem; padding: .75rem 1rem; font-size: .92rem; line-height: 1.2; text-align: center; border-radius: 12px; }
  .home-free__actions > a.btn-accent { min-height: 3.4rem; }

  .home-platform-icons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
  .home-platform-icons .platform-card { min-width: 0; min-height: 5.25rem; padding: .5rem .25rem; gap: .35rem; }
  .platform-card__icon { width: 22px; height: 22px; }
  .platform-card__label { font-size: .72rem; font-weight: 600; overflow-wrap: anywhere; }
  .home-platform-card__eyebrow { display: inline-flex; }
  .home-platform-card__title { margin-top: .3rem; font-size: .96rem; line-height: 1.1; }
  .home-platform-card { min-height: 6.4rem; }
  .home-platform-feature-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
  .home-platform-feature-list button { min-width: 0; min-height: 2.75rem; justify-content: center; padding: .35rem .45rem; font-size: .75rem; line-height: 1.2; text-align: center; }
  .home-platform-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
  .home-platform-actions a { width: 100%; min-width: 0; min-height: 3rem; padding: .5rem .4rem; font-size: .71rem; line-height: 1.2; letter-spacing: .02em; text-align: center; }
  .home-platform-actions a:only-child { grid-column: 1 / -1; }

  .showcase.is-enhanced .showcase__slide[data-role='current'] .showcase__avatar { width: 8.5rem; height: 8.5rem; }
  .home-creator-column { margin-top: 1.15rem; }

  /* Two compact product columns on phones; the square art comes from the base rules. */
  .public-site .home-product-preview-grid { gap: .65rem; }
  .home-product-preview-card { border-radius: 1rem; }
  .home-product-preview-title-banner { min-height: 3.2rem; padding: .4rem .35rem; }
  .home-product-preview-title-brand { font-size: .66rem; }
  .home-product-preview-title-plan { font-size: .65rem; }
  .home-product-preview-body { padding: .7rem; }
  .home-product-preview-body h3 { margin-bottom: .25rem; font-size: .82rem; line-height: 1.2; }
  .public-site .home-product-preview-description { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; margin-bottom: .6rem; font-size: .75rem; line-height: 1.35; }
  .home-product-preview-meta { flex-direction: column; align-items: stretch; gap: .55rem; margin-top: auto; padding-top: .7rem; }
  .home-product-preview-meta > span { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 2.75rem; padding: .45rem .55rem; font-size: .82rem; font-weight: 800; line-height: 1.1; }
  .home-product-preview-meta p:first-child { font-size: 1.15rem; line-height: 1; }
}

/* The app download remains visible throughout free-account onboarding. */
.core-download-card { margin-bottom: 1.5rem; padding: 1.25rem; border: 1px solid rgba(233,78,27,.4); border-radius: 1rem; background: rgba(233,78,27,.08); }
.core-download-card strong { display: block; color: #fff; font-size: 1.1rem; }
.core-download-card p { margin: .5rem 0 1rem; color: rgba(255,255,255,.72); font-size: .875rem; line-height: 1.6; }
.core-download-card .btn-accent { display: flex; justify-content: center; }

.language-control { border: 1px solid rgba(255,255,255,.18); border-radius: .65rem; padding: .6rem; min-width: 44px; min-height: 44px; background: rgba(255,255,255,.05); color: #fff; font-size: .8rem; cursor: pointer; }
.language-footer { display: block; padding: 0; border: 0; background: transparent; color: rgba(255,255,255,.72); font-size: .875rem; text-align: left; cursor: pointer; }
.language-control:hover, .language-footer:hover { color: #ff9568; }
.language-control:focus-visible, .language-highlight { outline: 2px solid #ff9568; outline-offset: 3px; }
.public-language-actions { position: relative; }
.language-dialog { position: absolute; inset: auto; z-index: 80; width: min(13rem, calc(100vw - 1.5rem)); margin: 0; padding: .4rem; border: 1px solid rgba(255,255,255,.18); border-radius: .9rem; background: #151515; color: #fff; box-shadow: 0 12px 32px rgba(0,0,0,.45); }
.language-options { display: grid; gap: .2rem; }
.language-options a { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: .65rem .8rem; border: 1px solid transparent; border-radius: .6rem; color: #fff; font-size: .875rem; }
.language-options a[aria-current], .language-options a:hover { border-color: rgba(233,78,27,.4); background: rgba(233,78,27,.12); }
.language-options a:focus-visible { outline: 2px solid #ff9568; outline-offset: -2px; }
.language-options span { color: rgba(255,255,255,.65); }
.public-site .header-download { gap: .55rem; border-color: rgba(233,78,27,.45); background: rgba(233,78,27,.1); color: #fff; font-size: .8rem; font-weight: 600; white-space: nowrap; }
.public-site .header-download:hover { border-color: #e94e1b; background: rgba(233,78,27,.18); }
.public-site .header-download:focus-visible { outline: 2px solid #ff9568; outline-offset: 3px; }
@media (max-width: 1023px) {
  .public-site .mobile-menu-panel { max-height: calc(100dvh - 4rem); overflow-y: auto; }
  .public-site .mobile-menu-link { display: flex; align-items: center; min-height: 48px; padding: .75rem .875rem; border-radius: .875rem; background-color: rgba(255,255,255,.04); }
  .public-site .mobile-menu-link.header-download { background-color: rgba(233,78,27,.1); justify-content: flex-start; }
}
@media (max-width: 479px) { .public-site .public-brand-name { display: none; } }

/* Creator identity and account actions share the Hub's single header. */
.hub-header--creator .hub-shell { max-width: 72rem; padding-inline: 1rem; }
.hub-header--creator .hub-header-shell { padding-block: 1rem; }
.hub-header--creator .hub-topbar { grid-template-columns: minmax(10rem, 1fr) auto; gap: 1rem; }
.hub-header--creator .hub-topbar-end { grid-column: 2; }
.hub-creator-email { min-width: 0; max-width: 20rem; overflow: hidden; text-overflow: ellipsis; color: var(--text-secondary); font-size: .8rem; white-space: nowrap; }
.hub-creator-signout-label { display: none; }
@media (max-width: 900px) and (min-width: 641px) {
  .hub-header--creator .hub-topbar { grid-template-columns: minmax(0, 1fr); }
  .hub-header--creator .hub-topbar-end { grid-column: 1; grid-row: 2; justify-self: stretch; }
  .hub-creator-email { margin-right: auto; }
}
@media (max-width: 640px) {
  .hub-header--creator .hub-topbar { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
  .hub-creator-email { grid-column: 1 / -1; grid-row: 2; max-width: 100%; }
  .hub-header--creator .hub-topbar-end > .hub-top-action,
  .hub-header--creator .hub-topbar-end form { grid-row: 3; }
  .hub-creator-signout-label { display: inline; }
}

/* Lexware uses progressive disclosure to keep daily bookkeeping separate from setup. */
#lexware-sync .lexware-eyebrow { margin: 0 0 0.4rem; color: var(--text-secondary); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
#lexware-sync .lexware-muted { color: var(--text-secondary); font-size: 0.8rem; line-height: 1.55; margin-bottom: 0; }
#lexware-sync .lexware-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.875rem; margin-bottom: 1rem; }
#lexware-sync .lexware-stat { padding: 1.125rem; box-shadow: none; }
#lexware-sync .lexware-stat h2, #lexware-sync .lexware-field-label { color: var(--text-secondary); font-size: 0.75rem; font-weight: 500; margin: 0 0 0.35rem; }
#lexware-sync .lexware-stat-value { display: flex; align-items: center; gap: 0.5rem; font-size: 1.5rem; line-height: 1.35; font-weight: 650; margin: 0.4rem 0; font-variant-numeric: tabular-nums; }
#lexware-sync .lexware-dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: #a0a0a0; flex-shrink: 0; }
#lexware-sync .lexware-dot--success { background: #4ade80; }
#lexware-sync .lexware-settings { padding: 0; margin-bottom: 1.75rem; box-shadow: none; scroll-margin-top: 1rem; }
#lexware-sync summary { cursor: pointer; min-height: 44px; }
#lexware-sync summary:focus-visible { outline: 2px solid var(--accent-color); outline-offset: 4px; border-radius: var(--radius-sm); }
#lexware-sync .lexware-summary { display: flex; align-items: center; gap: 0.75rem; padding: 1rem 1.25rem; list-style: none; }
#lexware-sync .lexware-summary::-webkit-details-marker { display: none; }
#lexware-sync .lexware-summary > :first-child { flex: 1; min-width: 0; }
#lexware-sync .lexware-summary strong { display: block; color: var(--text-primary); font-size: 0.875rem; font-weight: 600; }
#lexware-sync .lexware-summary > span > .lexware-muted { display: block; margin-top: 0.2rem; }
#lexware-sync .lexware-summary::after { content: ''; width: 0.45rem; height: 0.45rem; border-right: 1.5px solid var(--text-secondary); border-bottom: 1.5px solid var(--text-secondary); transform: rotate(45deg); margin: 0 0.2rem 0.2rem 0.4rem; flex-shrink: 0; }
#lexware-sync details[open] > .lexware-summary::after { transform: rotate(225deg); margin-bottom: -0.2rem; }
#lexware-sync .lexware-settings-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 1.75rem; border-top: 1px solid var(--border-color); padding: 1.25rem; }
#lexware-sync .lexware-settings-section { min-width: 0; }
#lexware-sync .lexware-settings-section h3 { font-size: 0.875rem; font-weight: 600; margin: 0 0 1rem; }
#lexware-sync .lexware-form { display: grid; gap: 0.875rem; }
#lexware-sync .lexware-field { display: grid; gap: 0.4rem; min-width: 0; font-size: 0.75rem; font-weight: 500; color: var(--text-secondary); }
#lexware-sync .lexware-field .input { min-width: 0; max-width: 100%; min-height: 44px; font-size: 0.875rem; font-weight: 400; }
#lexware-sync .lexware-field-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0.875rem; }
#lexware-sync .lexware-field--wide { grid-column: 1 / -1; }
#lexware-sync .lexware-check { display: flex; align-items: flex-start; gap: 0.625rem; font-size: 0.8rem; line-height: 1.6; cursor: pointer; padding-block: 0.25rem; }
#lexware-sync .lexware-check input { flex: 0 0 auto; width: 1rem; height: 1rem; margin-top: 0.15rem; accent-color: var(--accent-color); }
#lexware-sync .lexware-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.625rem; }
#lexware-sync .lexware-actions form { margin: 0; }
#lexware-sync .lexware-oss { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 1rem; }
#lexware-sync .lexware-mapping { border: 1px solid var(--border-color); border-radius: var(--radius-md); margin-top: 0.625rem; }
#lexware-sync .lexware-mapping > .lexware-summary { padding: 0.75rem 0.875rem; }
#lexware-sync .lexware-mapping-form { padding: 0.25rem 0.875rem 0.875rem; }
#lexware-sync .lexware-help { font-size: 0.8rem; color: var(--text-secondary); margin-top: 0.75rem; }
#lexware-sync .lexware-help > summary { display: flex; align-items: center; gap: 0.5rem; list-style: none; }
#lexware-sync .lexware-help > summary::before { content: '+'; color: var(--text-primary); }
#lexware-sync .lexware-help[open] > summary::before { content: '−'; }
#lexware-sync .lexware-help > summary::-webkit-details-marker { display: none; }
#lexware-sync .lexware-section-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
#lexware-sync .lexware-section-header h2 { font-size: 1.125rem; font-weight: 600; margin: 0; }
#lexware-sync .lexware-section-header .lexware-muted { margin-top: 0.2rem; }
#lexware-sync .lexware-search { display: flex; flex-wrap: wrap; gap: 0.625rem; align-items: end; margin-bottom: 1.125rem; }
#lexware-sync .lexware-search > label { flex: 1 1 16rem; max-width: 28rem; }
#lexware-sync .lexware-document-list { display: grid; gap: 0.75rem; }
#lexware-sync .lexware-document { padding: 1.125rem 1.25rem 0; box-shadow: none; min-width: 0; }
#lexware-sync .lexware-document-header { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem; }
#lexware-sync .lexware-document-title h3 { font-size: 0.9375rem; font-weight: 600; margin: 0; }
#lexware-sync .lexware-document-title h3 a:hover { color: var(--accent-color); }
#lexware-sync .lexware-document-title .lexware-muted { margin-top: 0.3rem; }
#lexware-sync .lexware-document .badge { white-space: normal; max-width: 100%; }
#lexware-sync .lexware-document-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.875rem; margin: 1rem 0; }
#lexware-sync .lexware-payment { min-width: 0; }
#lexware-sync .lexware-payment-value { font-size: 0.8rem; margin: 0; line-height: 1.55; }
#lexware-sync .lexware-notice { font-size: 0.8rem; line-height: 1.55; color: var(--text-secondary); padding: 0.625rem 0.75rem; background: rgba(255,255,255,0.04); border-radius: var(--radius-sm); margin: 0.75rem 0; overflow-wrap: anywhere; }
#lexware-sync .lexware-notice--warning { color: #fcd34d; background: rgba(250,204,21,0.07); }
#lexware-sync .lexware-document-details { border-top: 1px solid var(--border-color); }
#lexware-sync .lexware-document-details > summary { display: flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; color: var(--text-secondary); list-style: none; }
#lexware-sync .lexware-document-details > summary::-webkit-details-marker { display: none; }
#lexware-sync .lexware-document-details > summary::after { content: '+'; margin-left: auto; font-size: 1rem; }
#lexware-sync .lexware-document-details[open] > summary::after { content: '−'; }
#lexware-sync .lexware-detail-body { display: grid; gap: 0.875rem; padding-bottom: 1rem; }
#lexware-sync .lexware-metadata { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.875rem; margin: 0; }
#lexware-sync .lexware-metadata dt { font-size: 0.7rem; color: var(--text-secondary); margin-bottom: 0.2rem; }
#lexware-sync .lexware-metadata dd { font-size: 0.75rem; margin: 0; font-variant-numeric: tabular-nums; }
#lexware-sync .lexware-list-note { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.4rem 1.5rem; margin-top: 1rem; color: var(--text-secondary); font-size: 0.7rem; line-height: 1.55; }
#lexware-sync .lexware-list-note p { margin: 0; }
@media (max-width: 1199px) {
  #lexware-sync .lexware-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #lexware-sync .lexware-settings-body { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  #lexware-sync .lexware-settings-section + .lexware-settings-section { border-top: 1px solid var(--border-color); padding-top: 1.25rem; }
}
@media (max-width: 639px) {
  #lexware-sync .lexware-stat { padding: 0.875rem; }
  #lexware-sync .lexware-stat-value { font-size: 1.2rem; }
  #lexware-sync .lexware-settings-body { padding: 1rem; }
  #lexware-sync .lexware-summary { padding: 1rem; }
  #lexware-sync .lexware-summary > .badge { display: none; }
  #lexware-sync .lexware-search > label { flex-basis: 100%; max-width: none; }
  #lexware-sync .lexware-document { padding: 1rem 1rem 0; }
  #lexware-sync .lexware-document-footer { align-items: stretch; flex-direction: column; }
  #lexware-sync .lexware-metadata { grid-template-columns: minmax(0, 1fr); }
  #lexware-sync .lexware-actions .btn--sm, #lexware-sync .lexware-oss .btn--sm { min-height: 44px; }
}

#lexware-sync .lexware-warning { color: #fcd34d; }
#lexware-sync .lexware-success { color: #4ade80; }

/* Shop and hub typography: one system font, three weights, one tracking step.
   The pages mixed light/medium/semibold/bold/black and four tracking widths,
   which read as different fonts. Scoped to the shop and hub layouts so admin
   keeps its own scale. */
body:is(.public-site, .hub-site) .font-light,
body:is(.public-site, .hub-site) .font-normal { font-weight: 400; }
body:is(.public-site, .hub-site) .font-medium,
body:is(.public-site, .hub-site) .font-semibold { font-weight: 600; }
body:is(.public-site, .hub-site) .font-bold,
body:is(.public-site, .hub-site) .font-extrabold,
body:is(.public-site, .hub-site) .font-black { font-weight: 700; }
body:is(.public-site, .hub-site) .tracking-widest,
body:is(.public-site, .hub-site) .tracking-wider,
body:is(.public-site, .hub-site) .tracking-wide,
body:is(.public-site, .hub-site) .tracking-\[0\.08em\],
body:is(.public-site, .hub-site) .tracking-\[0\.16em\],
body:is(.public-site, .hub-site) .tracking-\[0\.18em\],
body:is(.public-site, .hub-site) .tracking-\[0\.2em\],
body:is(.public-site, .hub-site) .tracking-\[0\.24em\] { letter-spacing: 0.06em; }
body:is(.public-site, .hub-site) .hero-kicker,
body:is(.public-site, .hub-site) .hero-demo-badge { font-weight: 700; letter-spacing: 0.08em; }

/* Class rules from earlier in this file that still set off-scale weights or
   tracking, mapped onto the same scale (600/700, 0.06em/0.08em). */
body:is(.public-site, .hub-site) .partner-form input,
body:is(.public-site, .hub-site) .partner-form select,
body:is(.public-site, .hub-site) .creator-payout-form input,
body:is(.public-site, .hub-site) .creator-payout-form select,
body:is(.public-site, .hub-site) .creator-payout-form textarea,
body:is(.public-site, .hub-site) .plan-tier__note,
body:is(.public-site, .hub-site) .creator-banner-generator__controls small,
body:is(.public-site, .hub-site) .creator-banner-generator__hint,
body:is(.public-site, .hub-site) .platform-card__label { font-weight: 600; }
body:is(.public-site, .hub-site) .creator-kicker,
body:is(.public-site, .hub-site) .creator-dashboard__intro h1,
body:is(.public-site, .hub-site) .creator-bonus-table th,
body:is(.public-site, .hub-site) .home-platform-card__eyebrow,
body:is(.public-site, .hub-site) .home-platform-card__title,
body:is(.public-site, .hub-site) .home-platform-panel__copy h3,
body:is(.public-site, .hub-site) .home-platform-feature-list span,
body:is(.public-site, .hub-site) .home-platform-feature-list button,
body:is(.public-site, .hub-site) .dns-preview__header h3,
body:is(.public-site, .hub-site) .dns-preview__status,
body:is(.public-site, .hub-site) .dns-preview__dns-box span,
body:is(.public-site, .hub-site) .dns-preview__saved span,
body:is(.public-site, .hub-site) .dns-preview__form label,
body:is(.public-site, .hub-site) .dns-preview__section-title small,
body:is(.public-site, .hub-site) .dns-preview__dns-box strong,
body:is(.public-site, .hub-site) .dns-preview__input-row span,
body:is(.public-site, .hub-site) .dns-preview__saved strong,
body:is(.public-site, .hub-site) .dns-preview__section-title span,
body:is(.public-site, .hub-site) .dns-preview__country span,
body:is(.public-site, .hub-site) .dns-demo-page__copy h1,
body:is(.public-site, .hub-site) .home-partner-band__copy h2,
body:is(.public-site, .hub-site) .partner-kicker,
body:is(.public-site, .hub-site) .partner-hero__copy h1,
body:is(.public-site, .hub-site) .partner-section h2,
body:is(.public-site, .hub-site) .partner-secondary-action,
body:is(.public-site, .hub-site) .partner-preview__tiles strong,
body:is(.public-site, .hub-site) .partner-steps span,
body:is(.public-site, .hub-site) .partner-bonus-list span,
body:is(.public-site, .hub-site) .partner-form label,
body:is(.public-site, .hub-site) .creator-payout-form label,
body:is(.public-site, .hub-site) .creator-tabs a,
body:is(.public-site, .hub-site) .creator-status-card span,
body:is(.public-site, .hub-site) .creator-status-card small,
body:is(.public-site, .hub-site) .creator-status-card strong,
body:is(.public-site, .hub-site) .creator-bonus-focus h2,
body:is(.public-site, .hub-site) .creator-bonus-focus__numbers,
body:is(.public-site, .hub-site) .creator-panel__heading h2,
body:is(.public-site, .hub-site) .creator-panel h2,
body:is(.public-site, .hub-site) .creator-code-settings__form label span,
body:is(.public-site, .hub-site) .creator-bonus-ladder__sales,
body:is(.public-site, .hub-site) .creator-bonus-ladder__plus,
body:is(.public-site, .hub-site) .creator-bonus-ladder__infinity-label,
body:is(.public-site, .hub-site) .creator-payout-step__num,
body:is(.public-site, .hub-site) .creator-payout-step__label,
body:is(.public-site, .hub-site) .creator-discord-button,
body:is(.public-site, .hub-site) .plan-head h2,
body:is(.public-site, .hub-site) .plan-tier__name,
body:is(.public-site, .hub-site) .home-free h2,
body:is(.public-site, .hub-site) .showcase__avatar,
body:is(.public-site, .hub-site) .showcase__body strong,
body:is(.public-site, .hub-site) .creator-asset-card span,
body:is(.public-site, .hub-site) .creator-banner-generator__controls label,
body:is(.public-site, .hub-site) .creator-banner-generator__controls input,
body:is(.public-site, .hub-site) .home-product-preview-title-banner span,
body:is(.public-site, .hub-site) .home-product-preview-meta > span,
body:is(.public-site, .hub-site) .language-dialog h2 { font-weight: 700; }
body:is(.public-site, .hub-site) .home-platform-actions a,
body:is(.public-site, .hub-site) .dns-preview__input-row button { font-weight: 700; letter-spacing: 0.06em; }
body:is(.public-site, .hub-site) .home-platform-panel__label,
body:is(.public-site, .hub-site) .dns-preview__eyebrow,
body:is(.public-site, .hub-site) .dns-preview__premium-label,
body:is(.public-site, .hub-site) .dns-demo-page__copy p,
body:is(.public-site, .hub-site) .partner-brand-mark span,
body:is(.public-site, .hub-site) .plan-badge,
body:is(.public-site, .hub-site) .plan-beta,
body:is(.public-site, .hub-site) .home-free__badge { font-weight: 700; letter-spacing: 0.08em; }
body:is(.public-site, .hub-site) .partner-preview__code,
body:is(.public-site, .hub-site) .plan-btn,
body:is(.public-site, .hub-site) .home-product-preview-title-plan { letter-spacing: 0.06em; }
body:is(.public-site, .hub-site) .integrations-subnav-title,
body:is(.public-site, .hub-site) .integrations-subnav-group,
body:is(.public-site, .hub-site) .integrations-mobile-group,
body:is(.public-site, .hub-site) .plan-head .plan-eyebrow,
body:is(.public-site, .hub-site) .plan-table .plan-group th,
body:is(.public-site, .hub-site) .home-creator-kicker,
body:is(.public-site, .hub-site) .home-product-preview-title-brand { letter-spacing: 0.08em; }

/* Quiet headings and separators keep the catalog focused on its products. */
.shop-product-group + .shop-product-group { margin-top: 3rem; padding-top: 2.5rem; border-top: 1px solid rgba(255,255,255,.14); }
.shop-product-group-heading { margin: 0 0 1.5rem; text-align: left; }
.shop-product-group-heading h2 { margin: 0; color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; line-height: 1.2; }
.shop-card-features { display: grid; gap: .65rem; margin: 0 0 1.25rem; padding: 0; list-style: none; color: #fff; font-size: .875rem; line-height: 1.5; }
.shop-card-features li { display: flex; gap: .5rem; }
.shop-card-features .shop-feature-emphasis { color: #e94e1b; }
.shop-card-features li::before { content: "✓"; flex: none; color: #e94e1b; }
.shop-price-from { font-size: .7em; font-weight: 500; }
.product-detail-features { list-style: none; padding-left: 0; color: #bdbdbd; }
.product-detail-features svg { color: #e94e1b; margin-top: .15rem; }
.guide-category-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: .65rem; margin-bottom: 1.5rem; }
.guide-category-filters a { padding: .65rem 1.15rem; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; color: #bdbdbd; font-weight: 600; }
.guide-category-filters a[aria-current="page"] { background: #e94e1b; border-color: #e94e1b; color: #fff; }
.console-compatibility-trigger { display: flex; width: 100%; justify-content: center; gap: .5rem; padding: 1rem; margin: 0 0 1.25rem; border-radius: .85rem; font-weight: 800; }
.console-compatibility-dialog { width: min(42rem, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); overflow: auto; padding: 1.5rem; border: 1px solid #555; border-radius: 1rem; background: #111; color: #fff; }
.console-compatibility-dialog::backdrop { background: rgba(0,0,0,.75); }
.console-compatibility-dialog header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.console-compatibility-dialog h2 { font-size: 1.4rem; font-weight: 800; }
.console-compatibility-dialog h3 { font-weight: 800; margin: 1.25rem 0 .65rem; }
.console-compatibility-dialog p { color: #bdbdbd; line-height: 1.6; margin-bottom: .75rem; }
.console-compatibility-dialog a { color: #ff9b79; text-decoration: underline; }
.console-compatibility-dialog .compatibility-ipv4 { padding: .85rem; border: 1px solid #e94e1b; border-radius: .65rem; color: #fff; }
@media (max-width: 639px) { .shop-card-features { font-size: .78rem; gap: .5rem; } }

/* The compatibility check belongs with product details, outside purchase controls. */
.console-compatibility-section { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12); }
.console-compatibility-options { display: grid; gap: .75rem; margin: 1rem 0; }
.console-compatibility-options button, .console-compatibility-back { min-height: 48px; padding: .8rem 1rem; border: 1px solid #666; border-radius: .65rem; background: #222; color: #fff; text-align: left; line-height: 1.4; }
.console-compatibility-options button:hover, .console-compatibility-options button[aria-pressed="true"] { border-color: #e94e1b; background: #402318; }
.console-compatibility-back { display: block; margin-top: 1.25rem; }
.console-compatibility-dialog button:focus-visible, .console-compatibility-dialog a:focus-visible { outline: 2px solid #ff9b79; outline-offset: 3px; }
.console-compatibility-dialog header > button { min-width: 44px; min-height: 44px; }

/* The selected product and the single checkout action share the first phone viewport. */
.cart-item-layout { display: grid; grid-template-columns: 8rem minmax(0,1fr); gap: .75rem 1rem; align-items: start; }
.cart-item-image { grid-column: 1; grid-row: 1; width: 8rem; height: 8rem; }
.cart-item-details { grid-column: 2; grid-row: 1 / span 2; }
.cart-item-remove { grid-column: 1; grid-row: 2; }
.cart-item-remove button { width: 100%; }
@media (max-width: 767px) {
  .cart-page { padding: .75rem 1rem 1.5rem; }
  .cart-intro { flex-direction: row; align-items: center; gap: .5rem; margin-bottom: .75rem; }
  .cart-intro > div { min-width: 0; }
  .cart-intro h1 { font-size: clamp(1.25rem,6vw,1.5rem); line-height: 1.2; }
  .cart-intro p:first-child { font-size: .625rem; margin-bottom: .25rem; }
  .cart-intro-copy { display: none; }
  .cart-continue { min-height: 44px; flex-shrink: 0; padding: .5rem 0 .5rem .5rem; font-size: .75rem; background: transparent !important; border: 0 !important; }
  .cart-layout { gap: .75rem; }
  .cart-item { padding: .75rem; }
  .cart-item-layout { grid-template-columns: 5.5rem minmax(0,1fr); gap: .25rem .75rem; }
  .cart-item-image { width: 5.5rem; height: 5.5rem; border-radius: .75rem; }
  .cart-item-title { font-size: 1rem; line-height: 1.3; }
  .cart-item-heading { flex-direction: column; gap: .375rem; }
  .cart-item-variant { font-size: .75rem; line-height: 1.4; }
  .cart-item-price { text-align: left; }
  .cart-item-price > div:first-child { font-size: 1.125rem; line-height: 1.3; }
  .cart-item-tax-note { display: none; }
  .cart-item-availability { margin-top: .5rem; padding: .2rem .5rem; font-size: .6875rem; }
  .cart-item-remove button { min-height: 44px; padding: .375rem .25rem; font-size: .75rem; border: 0 !important; background: transparent !important; }
  .cart-item-error { margin-top: .5rem; padding: .5rem; font-size: .75rem; }
  .cart-summary-card { padding: .75rem; }
  .cart-summary-heading { font-size: .625rem; margin-bottom: .5rem; }
  .cart-totals { font-size: .75rem; }
  .cart-totals > div { font-size: .75rem; line-height: 1.5; }
  .cart-totals > div + div { margin-top: .375rem; }
  .cart-totals > div:last-child { padding-top: .5rem; }
  .cart-totals > div:last-child > span:first-child { font-size: .875rem; }
  .cart-totals > div:last-child > span:last-child { font-size: 1.375rem; line-height: 1.25; }
  .cart-checkout-action { margin-top: .75rem; }
  .cart-checkout { min-height: 48px; padding: .75rem; font-size: 1rem; }
  .cart-clear { margin-top: .25rem; }
  .cart-clear button { min-height: 44px; padding: .5rem; font-size: .75rem; background: transparent !important; border: 0 !important; }
}
