@import "https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700&family=Inter:wght@300;400;500&family=Nunito:wght@400;600;700;800;900&display=swap";


@layer components;

/*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */

@layer properties {
  @supports (((-webkit-hyphens: none)) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color: rgb(from red r g b)))) {
    *, :before, :after, ::backdrop {
      --tw-translate-x: 0;
      --tw-translate-y: 0;
      --tw-translate-z: 0;
      --tw-rotate-x: initial;
      --tw-rotate-y: initial;
      --tw-rotate-z: initial;
      --tw-skew-x: initial;
      --tw-skew-y: initial;
      --tw-space-y-reverse: 0;
      --tw-border-style: solid;
      --tw-leading: initial;
      --tw-font-weight: initial;
      --tw-tracking: initial;
      --tw-shadow: 0 0 #0000;
      --tw-shadow-color: initial;
      --tw-shadow-alpha: 100%;
      --tw-inset-shadow: 0 0 #0000;
      --tw-inset-shadow-color: initial;
      --tw-inset-shadow-alpha: 100%;
      --tw-ring-color: initial;
      --tw-ring-shadow: 0 0 #0000;
      --tw-inset-ring-color: initial;
      --tw-inset-ring-shadow: 0 0 #0000;
      --tw-ring-inset: initial;
      --tw-ring-offset-width: 0px;
      --tw-ring-offset-color: #fff;
      --tw-ring-offset-shadow: 0 0 #0000;
      --tw-outline-style: solid;
      --tw-blur: initial;
      --tw-brightness: initial;
      --tw-contrast: initial;
      --tw-grayscale: initial;
      --tw-hue-rotate: initial;
      --tw-invert: initial;
      --tw-opacity: initial;
      --tw-saturate: initial;
      --tw-sepia: initial;
      --tw-drop-shadow: initial;
      --tw-drop-shadow-color: initial;
      --tw-drop-shadow-alpha: 100%;
      --tw-drop-shadow-size: initial;
      --tw-backdrop-blur: initial;
      --tw-backdrop-brightness: initial;
      --tw-backdrop-contrast: initial;
      --tw-backdrop-grayscale: initial;
      --tw-backdrop-hue-rotate: initial;
      --tw-backdrop-invert: initial;
      --tw-backdrop-opacity: initial;
      --tw-backdrop-saturate: initial;
      --tw-backdrop-sepia: initial;
      --tw-duration: initial;
      --tw-ease: initial;
      --tw-content: "";
    }
  }
}

@layer theme {
  :root, :host {
    --font-sans: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji",
      "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
      "Courier New", monospace;
    --color-red-500: oklch(63.7% .237 25.331);
    --color-amber-400: oklch(82.8% .189 84.429);
    --color-amber-500: oklch(76.9% .188 70.08);
    --color-emerald-400: oklch(76.5% .177 163.223);
    --color-emerald-500: oklch(69.6% .17 162.48);
    --color-emerald-950: oklch(26.2% .051 172.552);
    --color-cyan-400: oklch(78.9% .154 211.53);
    --color-cyan-500: oklch(71.5% .143 215.221);
    --color-blue-400: oklch(70.7% .165 254.624);
    --color-blue-500: oklch(62.3% .214 259.815);
    --color-violet-400: oklch(70.2% .183 293.541);
    --color-violet-500: oklch(60.6% .25 292.717);
    --color-rose-400: oklch(71.2% .194 13.428);
    --color-rose-500: oklch(64.5% .246 16.439);
    --color-zinc-100: oklch(96.7% .001 286.375);
    --color-zinc-200: oklch(92% .004 286.32);
    --color-zinc-300: oklch(87.1% .006 286.286);
    --color-zinc-400: oklch(70.5% .015 286.067);
    --color-zinc-500: oklch(55.2% .016 285.938);
    --color-zinc-600: oklch(44.2% .017 285.786);
    --color-zinc-700: oklch(37% .013 285.805);
    --color-zinc-800: oklch(27.4% .006 286.033);
    --color-zinc-950: oklch(14.1% .005 285.823);
    --color-white: #fff;
    --spacing: .25rem;
    --text-sm: .875rem;
    --text-sm--line-height: calc(1.25 / .875);
    --text-xl: 1.25rem;
    --text-xl--line-height: calc(1.75 / 1.25);
    --text-5xl: 3rem;
    --text-5xl--line-height: 1;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --tracking-tight: -.025em;
    --tracking-wider: .05em;
    --leading-relaxed: 1.625;
    --radius-md: .375rem;
    --radius-lg: .5rem;
    --radius-xl: .75rem;
    --ease-in: cubic-bezier(.4, 0, 1, 1);
    --ease-out: cubic-bezier(0, 0, .2, 1);
    --ease-in-out: cubic-bezier(.4, 0, .2, 1);
    --animate-spin: spin 1s linear infinite;
    --animate-pulse: pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;
    --blur-sm: 8px;
    --blur-xl: 24px;
    --default-transition-duration: .15s;
    --default-transition-timing-function: cubic-bezier(.4, 0, .2, 1);
    --default-font-family: var(--font-sans);
    --default-mono-font-family: var(--font-mono);
  }
}

@layer base {
  *, :after, :before, ::backdrop {
    box-sizing: border-box;
    border: 0 solid;
    margin: 0;
    padding: 0;
  }

  ::file-selector-button {
    box-sizing: border-box;
    border: 0 solid;
    margin: 0;
    padding: 0;
  }

  html, :host {
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    line-height: 1.5;
    font-family: var(--default-font-family, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");
    font-feature-settings: var(--default-font-feature-settings, normal);
    font-variation-settings: var(--default-font-variation-settings, normal);
    -webkit-tap-highlight-color: transparent;
  }

  hr {
    height: 0;
    color: inherit;
    border-top-width: 1px;
  }

  abbr:where([title]) {
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted;
  }

  h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
  }

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

  b, strong {
    font-weight: bolder;
  }

  code, kbd, samp, pre {
    font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
    font-feature-settings: var(--default-mono-font-feature-settings, normal);
    font-variation-settings: var(--default-mono-font-variation-settings, normal);
    font-size: 1em;
  }

  small {
    font-size: 80%;
  }

  sub, sup {
    vertical-align: baseline;
    font-size: 75%;
    line-height: 0;
    position: relative;
  }

  sub {
    bottom: -.25em;
  }

  sup {
    top: -.5em;
  }

  table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse;
  }

  :-moz-focusring {
    outline: auto;
  }

  progress {
    vertical-align: baseline;
  }

  summary {
    display: list-item;
  }

  ol, ul, menu {
    list-style: none;
  }

  img, svg, video, canvas, audio, iframe, embed, object {
    vertical-align: middle;
    display: block;
  }

  img, video {
    max-width: 100%;
    height: auto;
  }

  button, input, select, optgroup, textarea {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    opacity: 1;
    background-color: #0000;
    border-radius: 0;
  }

  ::file-selector-button {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    opacity: 1;
    background-color: #0000;
    border-radius: 0;
  }

  :where(select:is([multiple], [size])) optgroup {
    font-weight: bolder;
  }

  :where(select:is([multiple], [size])) optgroup option {
    padding-inline-start: 20px;
  }

  ::file-selector-button {
    margin-inline-end: 4px;
  }

  ::placeholder {
    opacity: 1;
  }

  @supports (not ((-webkit-appearance: -apple-pay-button))) or (contain-intrinsic-size: 1px) {
    ::placeholder {
      color: currentColor;
    }

    @supports (color: color-mix(in lab, red, red)) {
      ::placeholder {
        color: color-mix(in oklab, currentcolor 50%, transparent);
      }
    }
  }

  textarea {
    resize: vertical;
  }

  ::-webkit-search-decoration {
    -webkit-appearance: none;
  }

  ::-webkit-date-and-time-value {
    min-height: 1lh;
    text-align: inherit;
  }

  ::-webkit-datetime-edit {
    display: inline-flex;
  }

  ::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
  }

  ::-webkit-datetime-edit {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-year-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-month-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-day-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-hour-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-minute-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-second-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-millisecond-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-meridiem-field {
    padding-block: 0;
  }

  ::-webkit-calendar-picker-indicator {
    line-height: 1;
  }

  :-moz-ui-invalid {
    box-shadow: none;
  }

  button, input:where([type="button"], [type="reset"], [type="submit"]) {
    appearance: button;
  }

  ::file-selector-button {
    appearance: button;
  }

  ::-webkit-inner-spin-button {
    height: auto;
  }

  ::-webkit-outer-spin-button {
    height: auto;
  }

  [hidden]:where(:not([hidden="until-found"])) {
    display: none !important;
  }
}

@layer utilities {
  .pointer-events-none {
    pointer-events: none;
  }

  .collapse {
    visibility: collapse;
  }

  .visible {
    visibility: visible;
  }

  .absolute {
    position: absolute;
  }

  .fixed {
    position: fixed;
  }

  .relative {
    position: relative;
  }

  .static {
    position: static;
  }

  .sticky {
    position: sticky;
  }

  .inset-0 {
    inset: calc(var(--spacing) * 0);
  }

  .start {
    inset-inline-start: var(--spacing);
  }

  .end {
    inset-inline-end: var(--spacing);
  }

  .top-0 {
    top: calc(var(--spacing) * 0);
  }

  .bottom-0 {
    bottom: calc(var(--spacing) * 0);
  }

  .bottom-8 {
    bottom: calc(var(--spacing) * 8);
  }

  .left-0 {
    left: calc(var(--spacing) * 0);
  }

  .left-1\/2 {
    left: 50%;
  }

  .z-10 {
    z-index: 10;
  }

  .z-\[1100\] {
    z-index: 1100;
  }

  .z-\[1200\] {
    z-index: 1200;
  }

  .mt-0\.5 {
    margin-top: calc(var(--spacing) * .5);
  }

  .mt-1 {
    margin-top: calc(var(--spacing) * 1);
  }

  .mb-2 {
    margin-bottom: calc(var(--spacing) * 2);
  }

  .mb-4 {
    margin-bottom: calc(var(--spacing) * 4);
  }

  .ml-1 {
    margin-left: calc(var(--spacing) * 1);
  }

  .ml-1\.5 {
    margin-left: calc(var(--spacing) * 1.5);
  }

  .ml-4 {
    margin-left: calc(var(--spacing) * 4);
  }

  .block {
    display: block;
  }

  .flex {
    display: flex;
  }

  .flex\! {
    display: flex !important;
  }

  .grid {
    display: grid;
  }

  .hidden {
    display: none;
  }

  .inline {
    display: inline;
  }

  .inline-block {
    display: inline-block;
  }

  .inline-flex {
    display: inline-flex;
  }

  .table {
    display: table;
  }

  .h-2\.5 {
    height: calc(var(--spacing) * 2.5);
  }

  .h-4 {
    height: calc(var(--spacing) * 4);
  }

  .h-5 {
    height: calc(var(--spacing) * 5);
  }

  .h-6 {
    height: calc(var(--spacing) * 6);
  }

  .h-8 {
    height: calc(var(--spacing) * 8);
  }

  .h-9 {
    height: calc(var(--spacing) * 9);
  }

  .h-10 {
    height: calc(var(--spacing) * 10);
  }

  .h-\[22px\] {
    height: 22px;
  }

  .max-h-\[50vh\] {
    max-height: 50vh;
  }

  .max-h-\[300px\] {
    max-height: 300px;
  }

  .min-h-screen {
    min-height: 100vh;
  }

  .w-2\.5 {
    width: calc(var(--spacing) * 2.5);
  }

  .w-5 {
    width: calc(var(--spacing) * 5);
  }

  .w-6 {
    width: calc(var(--spacing) * 6);
  }

  .w-8 {
    width: calc(var(--spacing) * 8);
  }

  .w-9 {
    width: calc(var(--spacing) * 9);
  }

  .w-10 {
    width: calc(var(--spacing) * 10);
  }

  .w-\[2px\] {
    width: 2px;
  }

  .w-\[90\%\] {
    width: 90%;
  }

  .w-full {
    width: 100%;
  }

  .max-w-\[400px\] {
    max-width: 400px;
  }

  .max-w-\[680px\] {
    max-width: 680px;
  }

  .flex-1 {
    flex: 1;
  }

  .shrink-0 {
    flex-shrink: 0;
  }

  .grow {
    flex-grow: 1;
  }

  .-translate-x-1\/2 {
    --tw-translate-x: calc(calc(1 / 2 * 100%) * -1);
    translate: var(--tw-translate-x) var(--tw-translate-y);
  }

  .transform {
    transform: var(--tw-rotate-x, ) var(--tw-rotate-y, ) var(--tw-rotate-z, ) var(--tw-skew-x, ) var(--tw-skew-y, );
  }

  .animate-pulse {
    animation: var(--animate-pulse);
  }

  .animate-spin {
    animation: var(--animate-spin);
  }

  .cursor-pointer {
    cursor: pointer;
  }

  .resize {
    resize: both;
  }

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

  .flex-col {
    flex-direction: column;
  }

  .items-center {
    align-items: center;
  }

  .items-start {
    align-items: flex-start;
  }

  .justify-between {
    justify-content: space-between;
  }

  .justify-center {
    justify-content: center;
  }

  .gap-1 {
    gap: calc(var(--spacing) * 1);
  }

  .gap-1\.5 {
    gap: calc(var(--spacing) * 1.5);
  }

  .gap-2 {
    gap: calc(var(--spacing) * 2);
  }

  .gap-3 {
    gap: calc(var(--spacing) * 3);
  }

  .gap-4 {
    gap: calc(var(--spacing) * 4);
  }

  .gap-5 {
    gap: calc(var(--spacing) * 5);
  }

  :where(.space-y-3 > :not(:last-child)) {
    --tw-space-y-reverse: 0;
    margin-block-start: calc(calc(var(--spacing) * 3) * var(--tw-space-y-reverse));
    margin-block-end: calc(calc(var(--spacing) * 3) * calc(1 - var(--tw-space-y-reverse)));
  }

  :where(.space-y-4 > :not(:last-child)) {
    --tw-space-y-reverse: 0;
    margin-block-start: calc(calc(var(--spacing) * 4) * var(--tw-space-y-reverse));
    margin-block-end: calc(calc(var(--spacing) * 4) * calc(1 - var(--tw-space-y-reverse)));
  }

  :where(.space-y-5 > :not(:last-child)) {
    --tw-space-y-reverse: 0;
    margin-block-start: calc(calc(var(--spacing) * 5) * var(--tw-space-y-reverse));
    margin-block-end: calc(calc(var(--spacing) * 5) * calc(1 - var(--tw-space-y-reverse)));
  }

  :where(.space-y-6 > :not(:last-child)) {
    --tw-space-y-reverse: 0;
    margin-block-start: calc(calc(var(--spacing) * 6) * var(--tw-space-y-reverse));
    margin-block-end: calc(calc(var(--spacing) * 6) * calc(1 - var(--tw-space-y-reverse)));
  }

  .truncate {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
  }

  .overflow-hidden {
    overflow: hidden;
  }

  .overflow-y-auto {
    overflow-y: auto;
  }

  .scroll-smooth {
    scroll-behavior: smooth;
  }

  .rounded {
    border-radius: .25rem;
  }

  .rounded-\[5px\] {
    border-radius: 5px;
  }

  .rounded-\[8px\] {
    border-radius: 8px;
  }

  .rounded-\[16px\] {
    border-radius: 16px;
  }

  .rounded-\[20px\] {
    border-radius: 20px;
  }

  .rounded-\[24px\] {
    border-radius: 24px;
  }

  .rounded-full {
    border-radius: 3.40282e38px;
  }

  .rounded-lg {
    border-radius: var(--radius-lg);
  }

  .rounded-md {
    border-radius: var(--radius-md);
  }

  .rounded-xl {
    border-radius: var(--radius-xl);
  }

  .border {
    border-style: var(--tw-border-style);
    border-width: 1px;
  }

  .border-2 {
    border-style: var(--tw-border-style);
    border-width: 2px;
  }

  .border-\[3px\] {
    border-style: var(--tw-border-style);
    border-width: 3px;
  }

  .border-\[\#8b5cf6\]\/40 {
    border-color: oklab(60.5631% .0845415 -.201932 / .4);
  }

  .border-\[\#8b5cf6\]\/50 {
    border-color: oklab(60.5631% .0845415 -.201932 / .5);
  }

  .border-amber-400\/20 {
    border-color: #fcbb0033;
  }

  @supports (color: color-mix(in lab, red, red)) {
    .border-amber-400\/20 {
      border-color: color-mix(in oklab, var(--color-amber-400) 20%, transparent);
    }
  }

  .border-amber-500\/30 {
    border-color: #f99c004d;
  }

  @supports (color: color-mix(in lab, red, red)) {
    .border-amber-500\/30 {
      border-color: color-mix(in oklab, var(--color-amber-500) 30%, transparent);
    }
  }

  .border-blue-500\/30 {
    border-color: #3080ff4d;
  }

  @supports (color: color-mix(in lab, red, red)) {
    .border-blue-500\/30 {
      border-color: color-mix(in oklab, var(--color-blue-500) 30%, transparent);
    }
  }

  .border-cyan-500\/30 {
    border-color: #00b7d74d;
  }

  @supports (color: color-mix(in lab, red, red)) {
    .border-cyan-500\/30 {
      border-color: color-mix(in oklab, var(--color-cyan-500) 30%, transparent);
    }
  }

  .border-emerald-500\/10 {
    border-color: #00bb7f1a;
  }

  @supports (color: color-mix(in lab, red, red)) {
    .border-emerald-500\/10 {
      border-color: color-mix(in oklab, var(--color-emerald-500) 10%, transparent);
    }
  }

  .border-emerald-500\/30 {
    border-color: #00bb7f4d;
  }

  @supports (color: color-mix(in lab, red, red)) {
    .border-emerald-500\/30 {
      border-color: color-mix(in oklab, var(--color-emerald-500) 30%, transparent);
    }
  }

  .border-red-500 {
    border-color: var(--color-red-500);
  }

  .border-rose-500\/20 {
    border-color: #ff235733;
  }

  @supports (color: color-mix(in lab, red, red)) {
    .border-rose-500\/20 {
      border-color: color-mix(in oklab, var(--color-rose-500) 20%, transparent);
    }
  }

  .border-rose-500\/30 {
    border-color: #ff23574d;
  }

  @supports (color: color-mix(in lab, red, red)) {
    .border-rose-500\/30 {
      border-color: color-mix(in oklab, var(--color-rose-500) 30%, transparent);
    }
  }

  .border-transparent {
    border-color: #0000;
  }

  .border-violet-500\/30 {
    border-color: #8d54ff4d;
  }

  @supports (color: color-mix(in lab, red, red)) {
    .border-violet-500\/30 {
      border-color: color-mix(in oklab, var(--color-violet-500) 30%, transparent);
    }
  }

  .border-zinc-600\/30 {
    border-color: #52525c4d;
  }

  @supports (color: color-mix(in lab, red, red)) {
    .border-zinc-600\/30 {
      border-color: color-mix(in oklab, var(--color-zinc-600) 30%, transparent);
    }
  }

  .border-zinc-700 {
    border-color: var(--color-zinc-700);
  }

  .border-zinc-700\/80 {
    border-color: #3f3f46cc;
  }

  @supports (color: color-mix(in lab, red, red)) {
    .border-zinc-700\/80 {
      border-color: color-mix(in oklab, var(--color-zinc-700) 80%, transparent);
    }
  }

  .border-zinc-800 {
    border-color: var(--color-zinc-800);
  }

  .border-t-\[\#8b5cf6\] {
    border-top-color: #8b5cf6;
  }

  .border-t-transparent {
    border-top-color: #0000;
  }

  .bg-\[\#1a1b23\] {
    background-color: #1a1b23;
  }

  .bg-\[\#8b5cf6\] {
    background-color: #8b5cf6;
  }

  .bg-\[\#8b5cf6\]\/20 {
    background-color: oklab(60.5631% .0845415 -.201932 / .2);
  }

  .bg-\[\#18181b\]\/95 {
    background-color: oklab(21.0331% .00160407 -.0056366 / .95);
  }

  .bg-amber-400\/10 {
    background-color: #fcbb001a;
  }

  @supports (color: color-mix(in lab, red, red)) {
    .bg-amber-400\/10 {
      background-color: color-mix(in oklab, var(--color-amber-400) 10%, transparent);
    }
  }

  .bg-emerald-500 {
    background-color: var(--color-emerald-500);
  }

  .bg-emerald-500\/5 {
    background-color: #00bb7f0d;
  }

  @supports (color: color-mix(in lab, red, red)) {
    .bg-emerald-500\/5 {
      background-color: color-mix(in oklab, var(--color-emerald-500) 5%, transparent);
    }
  }

  .bg-emerald-500\/20 {
    background-color: #00bb7f33;
  }

  @supports (color: color-mix(in lab, red, red)) {
    .bg-emerald-500\/20 {
      background-color: color-mix(in oklab, var(--color-emerald-500) 20%, transparent);
    }
  }

  .bg-rose-500\/10 {
    background-color: #ff23571a;
  }

  @supports (color: color-mix(in lab, red, red)) {
    .bg-rose-500\/10 {
      background-color: color-mix(in oklab, var(--color-rose-500) 10%, transparent);
    }
  }

  .bg-rose-500\/20 {
    background-color: #ff235733;
  }

  @supports (color: color-mix(in lab, red, red)) {
    .bg-rose-500\/20 {
      background-color: color-mix(in oklab, var(--color-rose-500) 20%, transparent);
    }
  }

  .bg-transparent {
    background-color: #0000;
  }

  .bg-zinc-800\/20 {
    background-color: #27272a33;
  }

  @supports (color: color-mix(in lab, red, red)) {
    .bg-zinc-800\/20 {
      background-color: color-mix(in oklab, var(--color-zinc-800) 20%, transparent);
    }
  }

  .bg-zinc-800\/30 {
    background-color: #27272a4d;
  }

  @supports (color: color-mix(in lab, red, red)) {
    .bg-zinc-800\/30 {
      background-color: color-mix(in oklab, var(--color-zinc-800) 30%, transparent);
    }
  }

  .bg-zinc-800\/50 {
    background-color: #27272a80;
  }

  @supports (color: color-mix(in lab, red, red)) {
    .bg-zinc-800\/50 {
      background-color: color-mix(in oklab, var(--color-zinc-800) 50%, transparent);
    }
  }

  .bg-zinc-950 {
    background-color: var(--color-zinc-950);
  }

  .bg-zinc-950\/40 {
    background-color: #09090b66;
  }

  @supports (color: color-mix(in lab, red, red)) {
    .bg-zinc-950\/40 {
      background-color: color-mix(in oklab, var(--color-zinc-950) 40%, transparent);
    }
  }

  .p-3\.5 {
    padding: calc(var(--spacing) * 3.5);
  }

  .p-4 {
    padding: calc(var(--spacing) * 4);
  }

  .p-5 {
    padding: calc(var(--spacing) * 5);
  }

  .p-6 {
    padding: calc(var(--spacing) * 6);
  }

  .px-2\.5 {
    padding-inline: calc(var(--spacing) * 2.5);
  }

  .px-3 {
    padding-inline: calc(var(--spacing) * 3);
  }

  .px-4 {
    padding-inline: calc(var(--spacing) * 4);
  }

  .px-6 {
    padding-inline: calc(var(--spacing) * 6);
  }

  .px-8 {
    padding-inline: calc(var(--spacing) * 8);
  }

  .py-1\.5 {
    padding-block: calc(var(--spacing) * 1.5);
  }

  .py-3\.5 {
    padding-block: calc(var(--spacing) * 3.5);
  }

  .py-8 {
    padding-block: calc(var(--spacing) * 8);
  }

  .py-10 {
    padding-block: calc(var(--spacing) * 10);
  }

  .py-50 {
    padding-block: calc(var(--spacing) * 50);
  }

  .pt-2 {
    padding-top: calc(var(--spacing) * 2);
  }

  .pr-4 {
    padding-right: calc(var(--spacing) * 4);
  }

  .pb-8 {
    padding-bottom: calc(var(--spacing) * 8);
  }

  .pb-10 {
    padding-bottom: calc(var(--spacing) * 10);
  }

  .pb-12 {
    padding-bottom: calc(var(--spacing) * 12);
  }

  .pl-2 {
    padding-left: calc(var(--spacing) * 2);
  }

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

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

  .align-middle {
    vertical-align: middle;
  }

  .font-mono {
    font-family: var(--font-mono);
  }

  .font-sans {
    font-family: var(--font-sans);
  }

  .text-5xl {
    font-size: var(--text-5xl);
    line-height: var(--tw-leading, var(--text-5xl--line-height));
  }

  .text-sm {
    font-size: var(--text-sm);
    line-height: var(--tw-leading, var(--text-sm--line-height));
  }

  .text-xl {
    font-size: var(--text-xl);
    line-height: var(--tw-leading, var(--text-xl--line-height));
  }

  .text-\[10px\] {
    font-size: 10px;
  }

  .text-\[11px\] {
    font-size: 11px;
  }

  .text-\[12px\] {
    font-size: 12px;
  }

  .text-\[13px\] {
    font-size: 13px;
  }

  .text-\[14px\] {
    font-size: 14px;
  }

  .text-\[16px\] {
    font-size: 16px;
  }

  .text-\[20px\] {
    font-size: 20px;
  }

  .leading-relaxed {
    --tw-leading: var(--leading-relaxed);
    line-height: var(--leading-relaxed);
  }

  .font-bold {
    --tw-font-weight: var(--font-weight-bold);
    font-weight: var(--font-weight-bold);
  }

  .font-medium {
    --tw-font-weight: var(--font-weight-medium);
    font-weight: var(--font-weight-medium);
  }

  .font-semibold {
    --tw-font-weight: var(--font-weight-semibold);
    font-weight: var(--font-weight-semibold);
  }

  .tracking-\[0\.15em\] {
    --tw-tracking: .15em;
    letter-spacing: .15em;
  }

  .tracking-tight {
    --tw-tracking: var(--tracking-tight);
    letter-spacing: var(--tracking-tight);
  }

  .tracking-wider {
    --tw-tracking: var(--tracking-wider);
    letter-spacing: var(--tracking-wider);
  }

  .whitespace-nowrap {
    white-space: nowrap;
  }

  .text-\[\#8b5cf6\] {
    color: #8b5cf6;
  }

  .text-amber-400 {
    color: var(--color-amber-400);
  }

  .text-blue-400 {
    color: var(--color-blue-400);
  }

  .text-cyan-400 {
    color: var(--color-cyan-400);
  }

  .text-emerald-400 {
    color: var(--color-emerald-400);
  }

  .text-emerald-950 {
    color: var(--color-emerald-950);
  }

  .text-rose-400 {
    color: var(--color-rose-400);
  }

  .text-violet-400 {
    color: var(--color-violet-400);
  }

  .text-white {
    color: var(--color-white);
  }

  .text-zinc-200 {
    color: var(--color-zinc-200);
  }

  .text-zinc-300 {
    color: var(--color-zinc-300);
  }

  .text-zinc-400 {
    color: var(--color-zinc-400);
  }

  .text-zinc-500 {
    color: var(--color-zinc-500);
  }

  .text-zinc-600 {
    color: var(--color-zinc-600);
  }

  .capitalize {
    text-transform: capitalize;
  }

  .uppercase {
    text-transform: uppercase;
  }

  .italic {
    font-style: italic;
  }

  .underline {
    text-decoration-line: underline;
  }

  .shadow {
    --tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, #0000001a), 0 1px 2px -1px var(--tw-shadow-color, #0000001a);
    box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
  }

  .shadow-\[0_0_20px_rgba\(16\,185\,129\,0\.5\)\] {
    --tw-shadow: 0 0 20px var(--tw-shadow-color, #10b98180);
    box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
  }

  .shadow-\[0_20px_50px_rgba\(0\,0\,0\,0\.5\)\] {
    --tw-shadow: 0 20px 50px var(--tw-shadow-color, #00000080);
    box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
  }

  .shadow-\[0_30px_100px_rgba\(0\,0\,0\,0\.8\)\] {
    --tw-shadow: 0 30px 100px var(--tw-shadow-color, #000c);
    box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
  }

  .outline {
    outline-style: var(--tw-outline-style);
    outline-width: 1px;
  }

  .blur {
    --tw-blur: blur(8px);
    filter: var(--tw-blur, ) var(--tw-brightness, ) var(--tw-contrast, ) var(--tw-grayscale, ) var(--tw-hue-rotate, ) var(--tw-invert, ) var(--tw-saturate, ) var(--tw-sepia, ) var(--tw-drop-shadow, );
  }

  .filter {
    filter: var(--tw-blur, ) var(--tw-brightness, ) var(--tw-contrast, ) var(--tw-grayscale, ) var(--tw-hue-rotate, ) var(--tw-invert, ) var(--tw-saturate, ) var(--tw-sepia, ) var(--tw-drop-shadow, );
  }

  .backdrop-blur-sm {
    --tw-backdrop-blur: blur(var(--blur-sm));
    -webkit-backdrop-filter: var(--tw-backdrop-blur, ) var(--tw-backdrop-brightness, ) var(--tw-backdrop-contrast, ) var(--tw-backdrop-grayscale, ) var(--tw-backdrop-hue-rotate, ) var(--tw-backdrop-invert, ) var(--tw-backdrop-opacity, ) var(--tw-backdrop-saturate, ) var(--tw-backdrop-sepia, );
    backdrop-filter: var(--tw-backdrop-blur, ) var(--tw-backdrop-brightness, ) var(--tw-backdrop-contrast, ) var(--tw-backdrop-grayscale, ) var(--tw-backdrop-hue-rotate, ) var(--tw-backdrop-invert, ) var(--tw-backdrop-opacity, ) var(--tw-backdrop-saturate, ) var(--tw-backdrop-sepia, );
  }

  .backdrop-blur-xl {
    --tw-backdrop-blur: blur(var(--blur-xl));
    -webkit-backdrop-filter: var(--tw-backdrop-blur, ) var(--tw-backdrop-brightness, ) var(--tw-backdrop-contrast, ) var(--tw-backdrop-grayscale, ) var(--tw-backdrop-hue-rotate, ) var(--tw-backdrop-invert, ) var(--tw-backdrop-opacity, ) var(--tw-backdrop-saturate, ) var(--tw-backdrop-sepia, );
    backdrop-filter: var(--tw-backdrop-blur, ) var(--tw-backdrop-brightness, ) var(--tw-backdrop-contrast, ) var(--tw-backdrop-grayscale, ) var(--tw-backdrop-hue-rotate, ) var(--tw-backdrop-invert, ) var(--tw-backdrop-opacity, ) var(--tw-backdrop-saturate, ) var(--tw-backdrop-sepia, );
  }

  .transition {
    transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to, opacity, box-shadow, transform, translate, scale, rotate, filter, -webkit-backdrop-filter, backdrop-filter, display, content-visibility, overlay, pointer-events;
    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
    transition-duration: var(--tw-duration, var(--default-transition-duration));
  }

  .transition-all {
    transition-property: all;
    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
    transition-duration: var(--tw-duration, var(--default-transition-duration));
  }

  .transition-colors {
    transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to;
    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
    transition-duration: var(--tw-duration, var(--default-transition-duration));
  }

  .transition-opacity {
    transition-property: opacity;
    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
    transition-duration: var(--tw-duration, var(--default-transition-duration));
  }

  .duration-300 {
    --tw-duration: .3s;
    transition-duration: .3s;
  }

  .ease-in {
    --tw-ease: var(--ease-in);
    transition-timing-function: var(--ease-in);
  }

  .ease-in-out {
    --tw-ease: var(--ease-in-out);
    transition-timing-function: var(--ease-in-out);
  }

  .ease-out {
    --tw-ease: var(--ease-out);
    transition-timing-function: var(--ease-out);
  }

  .outline-none {
    --tw-outline-style: none;
    outline-style: none;
  }

  .select-none {
    -webkit-user-select: none;
    user-select: none;
  }

  .before\:absolute:before {
    content: var(--tw-content);
    position: absolute;
  }

  .before\:inset-0:before {
    content: var(--tw-content);
    inset: calc(var(--spacing) * 0);
  }

  .before\:ml-\[25px\]:before {
    content: var(--tw-content);
    margin-left: 25px;
  }

  .before\:h-full:before {
    content: var(--tw-content);
    height: 100%;
  }

  .before\:w-px:before {
    content: var(--tw-content);
    width: 1px;
  }

  .before\:-translate-x-px:before {
    content: var(--tw-content);
    --tw-translate-x: -1px;
    translate: var(--tw-translate-x) var(--tw-translate-y);
  }

  .before\:bg-zinc-800:before {
    content: var(--tw-content);
    background-color: var(--color-zinc-800);
  }

  @media (hover: hover) {
    .hover\:bg-\[\#7c3aed\]:hover {
      background-color: #7c3aed;
    }

    .hover\:bg-\[\#18181b\]:hover {
      background-color: #18181b;
    }

    .hover\:bg-zinc-800\/40:hover {
      background-color: #27272a66;
    }

    @supports (color: color-mix(in lab, red, red)) {
      .hover\:bg-zinc-800\/40:hover {
        background-color: color-mix(in oklab, var(--color-zinc-800) 40%, transparent);
      }
    }
  }

  @media (min-width: 40rem) {
    .sm\:grid-cols-2 {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sm\:p-6 {
      padding: calc(var(--spacing) * 6);
    }
  }

  .\[\&\>h3\]\:mb-2 > h3 {
    margin-bottom: calc(var(--spacing) * 2);
  }

  .\[\&\>h3\]\:text-\[16px\] > h3 {
    font-size: 16px;
  }

  .\[\&\>h3\]\:font-semibold > h3 {
    --tw-font-weight: var(--font-weight-semibold);
    font-weight: var(--font-weight-semibold);
  }

  .\[\&\>h3\]\:text-zinc-100 > h3 {
    color: var(--color-zinc-100);
  }

  .\[\&\>li\]\:mb-1 > li {
    margin-bottom: calc(var(--spacing) * 1);
  }

  .\[\&\>ol\]\:mb-3 > ol {
    margin-bottom: calc(var(--spacing) * 3);
  }

  .\[\&\>ol\]\:ml-5 > ol {
    margin-left: calc(var(--spacing) * 5);
  }

  .\[\&\>ol\]\:list-decimal > ol {
    list-style-type: decimal;
  }

  .\[\&\>p\]\:mb-3 > p, .\[\&\>ul\]\:mb-3 > ul {
    margin-bottom: calc(var(--spacing) * 3);
  }

  .\[\&\>ul\]\:ml-5 > ul {
    margin-left: calc(var(--spacing) * 5);
  }

  .\[\&\>ul\]\:list-disc > ul {
    list-style-type: disc;
  }

  s.\[\&\\s\>h3\]\:mb-2 > h3 {
    margin-bottom: calc(var(--spacing) * 2);
  }

  s.\[\&\\s\>h3\]\:text-\[16px\] > h3 {
    font-size: 16px;
  }

  s.\[\&\\s\>h3\]\:font-semibold > h3 {
    --tw-font-weight: var(--font-weight-semibold);
    font-weight: var(--font-weight-semibold);
  }

  s.\[\&\\s\>h3\]\:text-zinc-100 > h3 {
    color: var(--color-zinc-100);
  }

  s.\[\&\\s\>li\]\:mb-1 > li {
    margin-bottom: calc(var(--spacing) * 1);
  }

  s.\[\&\\s\>ol\]\:mb-3 > ol {
    margin-bottom: calc(var(--spacing) * 3);
  }

  s.\[\&\\s\>ol\]\:ml-5 > ol {
    margin-left: calc(var(--spacing) * 5);
  }

  s.\[\&\\s\>ol\]\:list-decimal > ol {
    list-style-type: decimal;
  }

  s.\[\&\\s\>p\]\:mb-3 > p, s.\[\&\\s\>ul\]\:mb-3 > ul {
    margin-bottom: calc(var(--spacing) * 3);
  }

  s.\[\&\\s\>ul\]\:ml-5 > ul {
    margin-left: calc(var(--spacing) * 5);
  }

  s.\[\&\\s\>ul\]\:list-disc > ul {
    list-style-type: disc;
  }
}

:root {
  --black: #000;
  --void: #050505;
  --deep: #0a0a0a;
  --surface: #0f0f0f;
  --raised: #161616;
  --ghost: #1e1e1e;
  --border: #ffffff12;
  --border-md: #ffffff21;
  --border-hi: #ffffff38;
  --white: #fff;
  --off-white: #e8e8e8;
  --dim: #888;
  --muted: #444;
  --red: #b83232;
  --red-hi: #e04040;
  --red-glow: #b8323224;
  --green: #2ecc71;
  --green-dim: #2ecc711a;
  --amber: #e67e22;
  --blue: #3498db;
  --sidebar-w: 240px;
  --font-display: "Barlow Condensed", sans-serif;
  --font-body: "Barlow", sans-serif;
  --font-mono: "Share Tech Mono", monospace;
  --page-x: clamp(16px, 4vw, 44px);
  --page-y: clamp(20px, 3.5vw, 38px);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --radius: 6px;
  --shine: #ffffff05;
  --overlay: #050505eb;
  --canvas-bg: #09090d;
  --header-bg: #09090dd9;
}

[data-theme="light"] {
  --black: #fdfdfd;
  --void: #fff;
  --deep: #f8f8f8;
  --surface: #f4f4f4;
  --raised: #ececec;
  --ghost: #e0e0e0;
  --border: #0000000f;
  --border-md: #0000001f;
  --border-hi: #0003;
  --white: #000;
  --off-white: #0a0a0a;
  --dim: #444;
  --muted: #666;
  --shine: #0000000a;
  --overlay: #ffffffeb;
  --canvas-bg: #f8f8fa;
  --header-bg: #ffffffd9;
}

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

html {
  scroll-behavior: smooth !important;
}

body {
  background: var(--black);
  color: var(--off-white);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  padding-top: var(--safe-top);
  padding-bottom: var(--safe-bottom);
  font-weight: 300;
  line-height: 1.65;
  overflow-x: hidden;
}

::-webkit-scrollbar {
  width: 3px;
}

::-webkit-scrollbar-track {
  background: var(--black);
}

::-webkit-scrollbar-thumb {
  background: var(--muted);
  border-radius: 2px;
}

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

input, textarea, button, [contenteditable="true"] {
  -webkit-user-select: auto;
  user-select: auto;
  font-family: inherit;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes blink {
  0%, 100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

@keyframes ping {
  0% {
    opacity: 1;
    transform: scale(1);
  }

  100% {
    opacity: 0;
    transform: scale(2);
  }
}

@keyframes wavePulse {
  0%, 100% {
    opacity: .5;
    transform: scaleY(1);
  }

  50% {
    opacity: 1;
    transform: scaleY(1.8);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(120%);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideOutRight {
  from {
    opacity: 1;
    transform: translateX(0);
  }

  to {
    opacity: 0;
    transform: translateX(120%);
  }
}

.fade-up {
  animation: .45s both fadeUp;
}

.fade-up-1 {
  animation: .45s 60ms both fadeUp;
}

.fade-up-2 {
  animation: .45s .12s both fadeUp;
}

.fade-up-3 {
  animation: .45s .18s both fadeUp;
}

.fade-up-4 {
  animation: .45s .24s both fadeUp;
}

.fade-up-5 {
  animation: .45s .3s both fadeUp;
}

@keyframes pulseArnold {
  0% {
    transform: scale(1);
    box-shadow: 0 0 #e0404066;
  }

  50% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px #e0404000;
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 #e0404000;
  }
}

@keyframes slideUpArnold {
  from {
    opacity: 0;
    transform: translateY(20px) scale(.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.arnold-fab {
  animation: 2.5s ease-in-out infinite pulseArnold;
}

.arnold-window {
  animation: .3s cubic-bezier(.175, .885, .32, 1.275) both slideUpArnold;
}

@keyframes appEntry {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

#root {
  animation: .25s ease-out appEntry;
}

.main-area::-webkit-scrollbar {
  width: 6px;
}

.main-area::-webkit-scrollbar-track {
  background: none;
}

.main-area::-webkit-scrollbar-thumb {
  background: #94a3b833;
  border-radius: 9999px;
}

.main-area::-webkit-scrollbar-thumb:hover {
  background: #e0404080;
}

.sidebar-nav::-webkit-scrollbar {
  width: 4px;
}

.sidebar-nav::-webkit-scrollbar-track {
  background: none;
}

.sidebar-nav::-webkit-scrollbar-thumb {
  background: #94a3b833;
  border-radius: 9999px;
}

.capacitor-android body, .capacitor-ios body {
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

.capacitor-android {
  --status-bar-bg: #0a0a0a;
}

@property --tw-translate-x {
  syntax: "*";
  inherits: false;
  initial-value: 0;
}

@property --tw-translate-y {
  syntax: "*";
  inherits: false;
  initial-value: 0;
}

@property --tw-translate-z {
  syntax: "*";
  inherits: false;
  initial-value: 0;
}

@property --tw-rotate-x {
  syntax: "*";
  inherits: false
}

@property --tw-rotate-y {
  syntax: "*";
  inherits: false
}

@property --tw-rotate-z {
  syntax: "*";
  inherits: false
}

@property --tw-skew-x {
  syntax: "*";
  inherits: false
}

@property --tw-skew-y {
  syntax: "*";
  inherits: false
}

@property --tw-space-y-reverse {
  syntax: "*";
  inherits: false;
  initial-value: 0;
}

@property --tw-border-style {
  syntax: "*";
  inherits: false;
  initial-value: solid;
}

@property --tw-leading {
  syntax: "*";
  inherits: false
}

@property --tw-font-weight {
  syntax: "*";
  inherits: false
}

@property --tw-tracking {
  syntax: "*";
  inherits: false
}

@property --tw-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}

@property --tw-shadow-color {
  syntax: "*";
  inherits: false
}

@property --tw-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}

@property --tw-inset-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}

@property --tw-inset-shadow-color {
  syntax: "*";
  inherits: false
}

@property --tw-inset-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}

@property --tw-ring-color {
  syntax: "*";
  inherits: false
}

@property --tw-ring-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}

@property --tw-inset-ring-color {
  syntax: "*";
  inherits: false
}

@property --tw-inset-ring-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}

@property --tw-ring-inset {
  syntax: "*";
  inherits: false
}

@property --tw-ring-offset-width {
  syntax: "<length>";
  inherits: false;
  initial-value: 0;
}

@property --tw-ring-offset-color {
  syntax: "*";
  inherits: false;
  initial-value: #fff;
}

@property --tw-ring-offset-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}

@property --tw-outline-style {
  syntax: "*";
  inherits: false;
  initial-value: solid;
}

@property --tw-blur {
  syntax: "*";
  inherits: false
}

@property --tw-brightness {
  syntax: "*";
  inherits: false
}

@property --tw-contrast {
  syntax: "*";
  inherits: false
}

@property --tw-grayscale {
  syntax: "*";
  inherits: false
}

@property --tw-hue-rotate {
  syntax: "*";
  inherits: false
}

@property --tw-invert {
  syntax: "*";
  inherits: false
}

@property --tw-opacity {
  syntax: "*";
  inherits: false
}

@property --tw-saturate {
  syntax: "*";
  inherits: false
}

@property --tw-sepia {
  syntax: "*";
  inherits: false
}

@property --tw-drop-shadow {
  syntax: "*";
  inherits: false
}

@property --tw-drop-shadow-color {
  syntax: "*";
  inherits: false
}

@property --tw-drop-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}

@property --tw-drop-shadow-size {
  syntax: "*";
  inherits: false
}

@property --tw-backdrop-blur {
  syntax: "*";
  inherits: false
}

@property --tw-backdrop-brightness {
  syntax: "*";
  inherits: false
}

@property --tw-backdrop-contrast {
  syntax: "*";
  inherits: false
}

@property --tw-backdrop-grayscale {
  syntax: "*";
  inherits: false
}

@property --tw-backdrop-hue-rotate {
  syntax: "*";
  inherits: false
}

@property --tw-backdrop-invert {
  syntax: "*";
  inherits: false
}

@property --tw-backdrop-opacity {
  syntax: "*";
  inherits: false
}

@property --tw-backdrop-saturate {
  syntax: "*";
  inherits: false
}

@property --tw-backdrop-sepia {
  syntax: "*";
  inherits: false
}

@property --tw-duration {
  syntax: "*";
  inherits: false
}

@property --tw-ease {
  syntax: "*";
  inherits: false
}

@property --tw-content {
  syntax: "*";
  inherits: false;
  initial-value: "";
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  50% {
    opacity: .5;
  }
}
/* ═══════════════════════════════════════════════════════════════════════════
   DREAM PHYSIQUE AI — ATHLETE AUTH PORTAL (Login.css)
   - Harmonized with Mastercard / Luminous Porcelain Design System (Home.css)
   - Soft Radiant Canvas with Amber/Scarlet Glows
   - Geometric Grotesque Typography ('Outfit', 'Plus Jakarta Sans')
   - Floating Elevated Porcelain Card & Pill Segmented Controls
   - 100% Responsive for All Screen Sizes (Mobile, Tablet, Desktop)
   - Seamless Light & Dark Theme Support
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --lu-font-display: 'Outfit', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --lu-font-body: 'Plus Jakarta Sans', 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Porcelain Palette */
  --lu-canvas-bg: #f8f8fa;
  --lu-card-bg: #ffffff;
  --lu-card-surface: #fbfbfe;
  --lu-card-raised: #f1f2f6;
  --lu-input-bg: #ffffff;
  --lu-input-border: rgba(0, 0, 0, 0.12);
  --lu-input-focus: #e04040;
  --lu-input-focus-glow: rgba(224, 64, 64, 0.15);
  --lu-border-subtle: rgba(0, 0, 0, 0.07);
  --lu-border-light: rgba(0, 0, 0, 0.12);
  --lu-text-primary: #09090b;
  --lu-text-secondary: #475569;
  --lu-text-muted: #64748b;
  --lu-text-light: #94a3b8;
  
  --lu-red-primary: #e04040;
  --lu-red-gradient: linear-gradient(135deg, #ff4747 0%, #e04040 60%, #b82828 100%);
  --lu-red-glow: 0 12px 28px rgba(224, 64, 64, 0.28);
  
  --lu-shadow-card: 0 24px 60px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(0, 0, 0, 0.02);
  --lu-shadow-pill: 0 8px 24px rgba(0, 0, 0, 0.06), 0 2px 6px rgba(0, 0, 0, 0.03);
}

[data-theme="dark"] {
  --lu-canvas-bg: #0b0b10;
  --lu-card-bg: #14141f;
  --lu-card-surface: #1a1a28;
  --lu-card-raised: #222234;
  --lu-input-bg: #161622;
  --lu-input-border: rgba(255, 255, 255, 0.14);
  --lu-input-focus: #ff4d4d;
  --lu-input-focus-glow: rgba(255, 77, 77, 0.25);
  --lu-border-subtle: rgba(255, 255, 255, 0.08);
  --lu-border-light: rgba(255, 255, 255, 0.16);
  --lu-text-primary: #ffffff;
  --lu-text-secondary: #cbd5e1;
  --lu-text-muted: #94a3b8;
  --lu-text-light: #64748b;
  
  --lu-shadow-card: 0 30px 80px rgba(0, 0, 0, 0.6), 0 4px 20px rgba(0, 0, 0, 0.4);
  --lu-shadow-pill: 0 16px 40px rgba(0, 0, 0, 0.35), 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* ── PAGE CANVAS ─────────────────────────────────────────────────── */
.lu-page {
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--lu-canvas-bg);
  background-image: 
    radial-gradient(ellipse at 85% 12%, rgba(255, 149, 0, 0.08) 0%, transparent 55%),
    radial-gradient(ellipse at 15% 25%, rgba(224, 64, 64, 0.07) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 75%, rgba(46, 204, 113, 0.04) 0%, transparent 60%);
  color: var(--lu-text-primary);
  font-family: var(--lu-font-body);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  padding: 12px 12px 32px;
  box-sizing: border-box;
}

[data-theme="dark"] .lu-page {
  background-image: 
    radial-gradient(ellipse at 85% 12%, rgba(255, 149, 0, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse at 15% 25%, rgba(224, 64, 64, 0.14) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 75%, rgba(46, 204, 113, 0.07) 0%, transparent 60%);
}

@media (min-width: 768px) {
  .lu-page {
    padding: 16px 24px 40px;
  }
}

/* Background watermark text */
.lu-watermark {
  position: fixed;
  bottom: -3%;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--lu-font-display);
  font-weight: 800;
  font-size: clamp(60px, 16vw, 210px);
  color: var(--lu-text-primary);
  opacity: 0.025;
  letter-spacing: -2px;
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
  z-index: 0;
}

/* ── FLOATING TOPBAR ─────────────────────────────────────────────── */
.lu-topbar-wrapper {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto 16px;
}

.lu-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--lu-card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--lu-border-subtle);
  border-radius: 9999px;
  box-shadow: var(--lu-shadow-pill);
  transition: all 0.3s ease;
}

@media (min-width: 640px) {
  .lu-topbar {
    padding: 12px 24px;
  }
}

.lu-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.lu-brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: contain;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.lu-brand:hover .lu-brand-logo {
  transform: scale(1.06) rotate(-2deg);
}

.lu-brand-text {
  font-family: var(--lu-font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--lu-text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.lu-brand-badge {
  font-size: 10px;
  font-weight: 600;
  background: rgba(224, 64, 64, 0.1);
  color: var(--lu-red-primary);
  padding: 2px 7px;
  border-radius: 9999px;
  letter-spacing: 0.5px;
}

.lu-topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lu-live-badge {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--lu-text-muted);
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 9999px;
  background: var(--lu-card-raised);
}

@media (min-width: 640px) {
  .lu-live-badge {
    display: inline-flex;
  }
}

.lu-dot-live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
  animation: lu-pulse 2s infinite ease-in-out;
}

@keyframes lu-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.lu-gym-link {
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  color: var(--lu-text-primary);
  background: var(--lu-card-raised);
  border: 1px solid var(--lu-border-subtle);
  padding: 8px 14px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.lu-gym-link:hover {
  background: var(--lu-card-bg);
  border-color: var(--lu-border-light);
  transform: translateY(-1px);
}

/* ── MAIN CONTENT & CENTERED CARD ────────────────────────────────── */
.lu-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 8px 24px;
  position: relative;
  z-index: 2;
}

.lu-card-wrapper {
  width: 100%;
  max-width: 450px;
  margin: 0 auto;
}

.lu-card {
  position: relative;
  background: linear-gradient(180deg, var(--lu-card-bg) 0%, var(--lu-card-surface) 100%);
  border: 1px solid var(--lu-border-subtle);
  border-radius: 28px;
  box-shadow: var(--lu-shadow-card);
  padding: clamp(24px, 5vw, 36px);
  box-sizing: border-box;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

@media (min-width: 640px) {
  .lu-card {
    border-radius: 34px;
  }
}

/* Subtle top radiant accent */
.lu-card-top-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ff4747 0%, #ff9500 50%, #e04040 100%);
  opacity: 0.9;
}

/* ── CARD HEADER ─────────────────────────────────────────────────── */
.lu-header {
  text-align: center;
  margin-bottom: 22px;
}

.lu-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--lu-red-primary);
  background: rgba(224, 64, 64, 0.08);
  padding: 4px 12px;
  border-radius: 9999px;
  margin-bottom: 12px;
}

.lu-title {
  font-family: var(--lu-font-display);
  font-size: clamp(24px, 4.5vw, 32px);
  font-weight: 700;
  color: var(--lu-text-primary);
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  line-height: 1.15;
}

.lu-subtitle {
  font-size: 13px;
  color: var(--lu-text-muted);
  line-height: 1.5;
  margin: 0;
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
}

/* ── MODE TOGGLE (Pill Segmented Control) ─────────────────────────── */
.lu-toggle {
  display: flex;
  background: var(--lu-card-raised);
  border-radius: 9999px;
  padding: 4px;
  margin-bottom: 24px;
  border: 1px solid var(--lu-border-subtle);
  position: relative;
}

.lu-toggle-btn {
  flex: 1;
  padding: 10px 14px;
  border: none;
  background: transparent;
  color: var(--lu-text-muted);
  font-family: var(--lu-font-body);
  font-size: 13px;
  font-weight: 600;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.lu-toggle-btn.active {
  background: var(--lu-card-bg);
  color: var(--lu-text-primary);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
}

/* ── FORM FIELDS ─────────────────────────────────────────────────── */
.lu-fields {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.lu-field {
  display: flex;
  flex-direction: column;
}

.lu-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--lu-text-secondary);
  margin-bottom: 6px;
}

.lu-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.lu-input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 16px;
  background: var(--lu-input-bg);
  border: 1px solid var(--lu-input-border);
  border-radius: 14px;
  font-family: var(--lu-font-body);
  font-size: 14px;
  color: var(--lu-text-primary);
  outline: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.lu-input::placeholder {
  color: var(--lu-text-light);
  font-weight: 400;
}

.lu-input:focus {
  border-color: var(--lu-input-focus);
  box-shadow: 0 0 0 3px var(--lu-input-focus-glow);
}

.lu-input-pw {
  padding-right: 46px;
}

.lu-eye-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lu-text-muted);
  border-radius: 8px;
  transition: color 0.15s ease;
}

.lu-eye-btn:hover {
  color: var(--lu-text-primary);
}

/* ── GOALS & LEVEL CAPSULES ───────────────────────────────────────── */
.lu-options-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--lu-text-muted);
  margin-bottom: 8px;
}

.lu-goals-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 4px;
}

.lu-levels-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 4px;
}

.lu-pill-choice {
  background: var(--lu-card-raised);
  border: 1px solid var(--lu-border-subtle);
  border-radius: 12px;
  padding: 9px 8px;
  font-family: var(--lu-font-body);
  font-size: 12px;
  font-weight: 600;
  color: var(--lu-text-secondary);
  text-align: center;
  cursor: pointer;
  text-transform: capitalize;
  transition: all 0.2s ease;
  user-select: none;
}

.lu-pill-choice:hover {
  border-color: var(--lu-border-light);
  color: var(--lu-text-primary);
}

.lu-pill-choice.active {
  background: rgba(224, 64, 64, 0.08);
  border-color: var(--lu-red-primary);
  color: var(--lu-red-primary);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(224, 64, 64, 0.12);
}

/* ── ERROR MESSAGE ───────────────────────────────────────────────── */
.lu-error {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: #dc2626;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 12px;
  padding: 10px 14px;
  animation: lu-shake 0.35s ease-in-out;
}

@keyframes lu-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

/* ── AGREEMENT CHECKBOX ──────────────────────────────────────────── */
.lu-agree {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 4px;
}

.lu-checkbox {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--lu-red-primary);
}

.lu-agree-label {
  font-size: 12px;
  color: var(--lu-text-muted);
  line-height: 1.5;
  cursor: pointer;
}

.lu-agree-link {
  color: var(--lu-text-primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s ease;
}

.lu-agree-link:hover {
  color: var(--lu-red-primary);
}

/* ── SUBMIT BUTTON ───────────────────────────────────────────────── */
.lu-submit-btn {
  width: 100%;
  height: 48px;
  border: none;
  border-radius: 9999px;
  background: var(--lu-red-gradient);
  color: #ffffff;
  font-family: var(--lu-font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: var(--lu-red-glow);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  margin-top: 6px;
}

.lu-submit-btn:hover:not(:disabled) {
  transform: translateY(-1.5px) scale(1.005);
  box-shadow: 0 16px 36px rgba(224, 64, 64, 0.36);
}

.lu-submit-btn:active:not(:disabled) {
  transform: translateY(0);
}

.lu-submit-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.lu-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: lu-spin 0.6s linear infinite;
}

@keyframes lu-spin {
  to { transform: rotate(360deg); }
}

/* ── DIVIDER & OAUTH ─────────────────────────────────────────────── */
.lu-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 16px;
}

.lu-divider-line {
  flex: 1;
  height: 1px;
  background: var(--lu-border-subtle);
}

.lu-divider-text {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--lu-text-light);
}

.lu-oauth-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
}

.lu-native-google-btn {
  width: 100%;
  height: 46px;
  background: #ffffff;
  color: #111827;
  border: 1px solid #d1d5db;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.lu-native-google-btn:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}

/* ── FOOTER TRUST BADGE ──────────────────────────────────────────── */
.lu-trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  color: var(--lu-text-muted);
  margin-top: 22px;
  text-align: center;
}

/* ── MOBILE OPTIMIZATIONS ────────────────────────────────────────── */
@media (max-width: 480px) {
  .lu-page {
    padding: 8px 8px 24px;
  }
  
  .lu-card {
    padding: 22px 18px;
    border-radius: 24px;
  }
  
  .lu-brand-text {
    font-size: 13px;
  }
  
  .lu-gym-link {
    font-size: 11px;
    padding: 6px 10px;
  }
  
  .lu-toggle-btn {
    padding: 8px 10px;
    font-size: 12px;
  }

  .lu-goals-grid {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .lu-levels-row {
    gap: 6px;
  }

  .lu-pill-choice {
    font-size: 11px;
    padding: 8px 4px;
  }
}
/* ═══════════════════════════════════════════════════════════════════════════
   ATHLETE OVERVIEW DASHBOARD (Dashboard.css)
   - Harmonized with Mastercard / Luminous Porcelain Design System (Home.css)
   - Executive Biometric & Performance Overview
   - Dual-Column Bento Grid with High-Precision Data Alignments
   - 100% Responsive for All Screen Sizes (Mobile, Tablet, Desktop)
   - Seamless Light & Dark Theme Support ([data-theme="dark"])
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --dash-font-display: 'Outfit', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --dash-font-body: 'Plus Jakarta Sans', 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Porcelain Color Tokens */
  --dash-canvas-bg: #f8f8fa;
  --dash-card-bg: #ffffff;
  --dash-card-surface: #fbfbfe;
  --dash-card-raised: #f1f2f6;
  --dash-border-subtle: rgba(0, 0, 0, 0.07);
  --dash-border-light: rgba(0, 0, 0, 0.12);
  --dash-text-primary: #09090b;
  --dash-text-secondary: #475569;
  --dash-text-muted: #64748b;
  --dash-text-light: #94a3b8;

  --dash-red-primary: #e04040;
  --dash-red-gradient: linear-gradient(135deg, #ff4747 0%, #e04040 60%, #b82828 100%);
  --dash-red-glow: 0 8px 24px rgba(224, 64, 64, 0.25);

  --dash-shadow-card: 0 16px 40px rgba(0, 0, 0, 0.04), 0 2px 6px rgba(0, 0, 0, 0.02);
  --dash-shadow-pill: 0 4px 14px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] {
  --dash-canvas-bg: #0b0b10;
  --dash-card-bg: #14141f;
  --dash-card-surface: #1a1a28;
  --dash-card-raised: #222234;
  --dash-border-subtle: rgba(255, 255, 255, 0.08);
  --dash-border-light: rgba(255, 255, 255, 0.16);
  --dash-text-primary: #ffffff;
  --dash-text-secondary: #cbd5e1;
  --dash-text-muted: #94a3b8;
  --dash-text-light: #64748b;

  --dash-shadow-card: 0 20px 50px rgba(0, 0, 0, 0.5), 0 4px 16px rgba(0, 0, 0, 0.3);
  --dash-shadow-pill: 0 8px 24px rgba(0, 0, 0, 0.35);
}

/* ── PAGE CANVAS ─────────────────────────────────────────────────── */
.dash-page {
  padding: clamp(16px, 3.5vw, 36px) clamp(16px, 4vw, 44px);
  max-width: 1360px;
  margin: 0 auto;
  font-family: var(--dash-font-body);
  color: var(--dash-text-primary);
  background-color: var(--dash-canvas-bg);
  background-image: 
    radial-gradient(ellipse at 85% 8%, rgba(255, 149, 0, 0.07) 0%, transparent 55%),
    radial-gradient(ellipse at 15% 15%, rgba(224, 64, 64, 0.06) 0%, transparent 50%);
  min-height: 100vh;
  box-sizing: border-box;
}

[data-theme="dark"] .dash-page {
  background-image: 
    radial-gradient(ellipse at 85% 8%, rgba(255, 149, 0, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse at 15% 15%, rgba(224, 64, 64, 0.14) 0%, transparent 50%);
}

/* ── HEADER ROW ──────────────────────────────────────────────────── */
.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: clamp(20px, 3vw, 32px);
  flex-wrap: wrap;
}

.dash-header-left {
  display: flex;
  flex-direction: column;
}

.dash-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 600;
  color: #10b981;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 4px 12px;
  border-radius: 9999px;
  width: fit-content;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.dash-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
  animation: dashPulse 2s infinite ease-in-out;
}

@keyframes dashPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.85); opacity: 0.5; }
}

.dash-title {
  font-family: var(--dash-font-display);
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--dash-text-primary);
  line-height: 1.15;
  margin: 0 0 6px;
}

.dash-name-accent {
  background: linear-gradient(135deg, #ff4747 0%, #ff9500 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.dash-subtitle {
  font-size: 13.5px;
  color: var(--dash-text-secondary);
  line-height: 1.5;
  margin: 0;
  max-width: 520px;
}

.dash-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dash-action-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  background: var(--dash-red-gradient);
  color: #ffffff;
  border: none;
  border-radius: 9999px;
  font-family: var(--dash-font-display);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--dash-red-glow);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.dash-action-btn-primary:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 12px 28px rgba(224, 64, 64, 0.35);
}

.dash-action-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--dash-card-bg);
  color: var(--dash-text-secondary);
  border: 1px solid var(--dash-border-subtle);
  border-radius: 9999px;
  font-family: var(--dash-font-body);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.dash-action-btn-ghost:hover {
  color: var(--dash-text-primary);
  border-color: var(--dash-border-light);
  transform: translateY(-1px);
}

/* ── PROGRAM HERO BANNER (Active Transformation) ──────────────────── */
.dash-program-hero {
  background: linear-gradient(180deg, var(--dash-card-bg) 0%, var(--dash-card-surface) 100%);
  border: 1px solid var(--dash-border-subtle);
  border-radius: 24px;
  padding: clamp(20px, 3vw, 28px);
  margin-bottom: clamp(20px, 3vw, 28px);
  box-shadow: var(--dash-shadow-card);
  position: relative;
  overflow: hidden;
}

.dash-program-hero-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ff4747 0%, #ff9500 50%, #10b981 100%);
}

.dash-program-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.dash-program-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--dash-red-primary);
  margin-bottom: 4px;
}

.dash-program-headline {
  font-family: var(--dash-font-display);
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--dash-text-primary);
  margin: 0;
}

.dash-program-bar-wrap {
  margin-bottom: 20px;
}

.dash-program-bar-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--dash-text-muted);
  margin-bottom: 6px;
}

.dash-program-bar {
  height: 6px;
  background: var(--dash-card-raised);
  border-radius: 9999px;
  overflow: hidden;
}

.dash-program-bar-fill {
  height: 100%;
  background: var(--dash-red-gradient);
  border-radius: 9999px;
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.dash-program-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.dash-program-block {
  background: var(--dash-card-raised);
  border: 1px solid var(--dash-border-subtle);
  border-radius: 14px;
  padding: 12px 16px;
}

.dash-program-block-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--dash-text-muted);
  margin-bottom: 4px;
}

.dash-program-block-val {
  font-family: var(--dash-font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--dash-text-primary);
}

.dash-program-block-sub {
  font-size: 11px;
  color: var(--dash-text-muted);
  margin-top: 2px;
}

/* ── KPI METRICS CARDS (4-COLUMN GRID) ────────────────────────────── */
.dash-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: clamp(20px, 3vw, 28px);
}

.dash-kpi-card {
  background: linear-gradient(180deg, var(--dash-card-bg) 0%, var(--dash-card-surface) 100%);
  border: 1px solid var(--dash-border-subtle);
  border-radius: 20px;
  padding: 18px 20px;
  box-shadow: var(--dash-shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.dash-kpi-card:hover {
  border-color: var(--dash-border-light);
  transform: translateY(-2px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.06);
}

.dash-kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.dash-kpi-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dash-kpi-icon-wrap.vol { background: rgba(224, 64, 64, 0.08); color: var(--dash-red-primary); }
.dash-kpi-icon-wrap.ses { background: rgba(255, 149, 0, 0.08); color: #f59e0b; }
.dash-kpi-icon-wrap.cal { background: rgba(239, 68, 68, 0.08); color: #ef4444; }
.dash-kpi-icon-wrap.stk { background: rgba(16, 185, 129, 0.08); color: #10b981; }

.dash-kpi-delta {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.dash-kpi-delta.good { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.dash-kpi-delta.warn { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
.dash-kpi-delta.neutral { background: var(--dash-card-raised); color: var(--dash-text-muted); }

.dash-kpi-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--dash-text-secondary);
  margin-bottom: 4px;
}

.dash-kpi-val-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.dash-kpi-number {
  font-family: var(--dash-font-display);
  font-size: clamp(24px, 3.2vw, 32px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--dash-text-primary);
  line-height: 1;
}

.dash-kpi-unit {
  font-size: 12px;
  font-weight: 600;
  color: var(--dash-text-muted);
}

/* ── BENTO GRID (ANALYTICS & RECENT SESSIONS + COACH INSIGHT) ─────── */
.dash-main-grid {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 20px;
  align-items: start;
}

.dash-left-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.dash-right-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ── VOLUME CHART CARD ───────────────────────────────────────────── */
.dash-card {
  background: linear-gradient(180deg, var(--dash-card-bg) 0%, var(--dash-card-surface) 100%);
  border: 1px solid var(--dash-border-subtle);
  border-radius: 24px;
  padding: clamp(18px, 2.5vw, 26px);
  box-shadow: var(--dash-shadow-card);
}

.dash-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.dash-card-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dash-card-title {
  font-family: var(--dash-font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--dash-text-primary);
  margin: 0;
  letter-spacing: -0.01em;
}

.dash-card-badge {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--dash-red-primary);
  background: rgba(224, 64, 64, 0.08);
  padding: 3px 8px;
  border-radius: 9999px;
  letter-spacing: 0.5px;
}

.dash-chart-container {
  height: 220px;
  width: 100%;
  margin-top: 6px;
}

/* ── RECENT SESSIONS LIST / TABLE CARD ───────────────────────────── */
.dash-sessions-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dash-session-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--dash-card-raised);
  border: 1px solid var(--dash-border-subtle);
  cursor: pointer;
  transition: all 0.2s ease;
}

.dash-session-row:hover {
  background: var(--dash-card-bg);
  border-color: var(--dash-border-light);
  transform: translateX(3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.dash-session-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dash-session-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(224, 64, 64, 0.08);
  color: var(--dash-red-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dash-session-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--dash-text-primary);
}

.dash-session-meta {
  font-size: 11px;
  color: var(--dash-text-muted);
  margin-top: 2px;
}

.dash-session-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dash-session-badge {
  font-size: 10px;
  font-weight: 700;
  color: #10b981;
  background: rgba(16, 185, 129, 0.09);
  padding: 3px 8px;
  border-radius: 9999px;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ── AI COACH INSIGHT CARD (Right Column) ────────────────────────── */
.dash-coach-card {
  background: linear-gradient(180deg, var(--dash-card-bg) 0%, var(--dash-card-surface) 100%);
  border: 1px solid var(--dash-border-subtle);
  border-radius: 24px;
  padding: clamp(20px, 3vw, 26px);
  box-shadow: var(--dash-shadow-card);
  position: relative;
  overflow: hidden;
}

.dash-coach-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.dash-coach-avatar {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--dash-card-raised);
  padding: 2px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
}

.dash-coach-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  object-fit: cover;
}

.dash-coach-name {
  font-family: var(--dash-font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--dash-text-primary);
  line-height: 1.2;
}

.dash-coach-role {
  font-size: 11px;
  color: var(--dash-red-primary);
  font-weight: 600;
}

.dash-coach-bubble {
  background: var(--dash-card-raised);
  border: 1px solid var(--dash-border-subtle);
  border-radius: 16px;
  padding: 14px 16px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--dash-text-secondary);
  margin-bottom: 16px;
}

[data-theme="dark"] .dash-coach-bubble {
  color: #e2e8f0;
}

.dash-coach-btn {
  width: 100%;
  padding: 10px 16px;
  background: var(--dash-red-gradient);
  color: #ffffff;
  border: none;
  border-radius: 9999px;
  font-family: var(--dash-font-display);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: var(--dash-red-glow);
  transition: all 0.2s ease;
}

.dash-coach-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(224, 64, 64, 0.35);
}

/* ── QUICK SHORTCUTS CARD ────────────────────────────────────────── */
.dash-shortcuts-card {
  background: var(--dash-card-bg);
  border: 1px solid var(--dash-border-subtle);
  border-radius: 24px;
  padding: 20px;
  box-shadow: var(--dash-shadow-card);
}

.dash-shortcuts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.dash-shortcut-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  background: var(--dash-card-raised);
  border: 1px solid var(--dash-border-subtle);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
  cursor: pointer;
}

.dash-shortcut-item:hover {
  background: var(--dash-card-bg);
  border-color: var(--dash-border-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.dash-shortcut-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--dash-text-primary);
}

.dash-shortcut-desc {
  font-size: 11px;
  color: var(--dash-text-muted);
}

/* ── RESPONSIVE BREAKPOINTS ──────────────────────────────────────── */
@media (max-width: 1080px) {
  .dash-main-grid {
    grid-template-columns: 1fr;
  }
  
  .dash-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .dash-page {
    padding: 14px 12px 32px;
  }

  .dash-program-grid {
    grid-template-columns: 1fr;
  }

  .dash-kpi-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .dash-title {
    font-size: 24px;
  }

  .dash-header-actions {
    width: 100%;
  }

  .dash-action-btn-primary,
  .dash-action-btn-ghost {
    flex: 1;
    justify-content: center;
  }
}
/* ═══════════════════════════════════════════════════════════════════════════
   WORKOUT COMMAND CENTER & STUDIO (Workout.css)
   - Luminous Porcelain Design System (Home.css, Dashboard.css)
   - Dual-Pane Widescreen Bento Layout (Active Deck + Exercise Vault Studio)
   - High-Precision Touch Ergonomics & Real-Time Biomechanical Split
   - 100% Responsive: Full Studio on Desktop, Fluid Ergonomics on Mobile
   - Native Light & Dark Mode ([data-theme="dark"])
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --wk-font-display: 'Outfit', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --wk-font-body: 'Plus Jakarta Sans', 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --wk-font-mono: 'Share Tech Mono', monospace, ui-monospace;

  /* Porcelain Palette */
  --wk-canvas-bg: #f8f8fa;
  --wk-card-bg: #ffffff;
  --wk-card-surface: #fbfbfe;
  --wk-card-raised: #f1f2f6;
  --wk-border-subtle: rgba(0, 0, 0, 0.07);
  --wk-border-light: rgba(0, 0, 0, 0.12);
  --wk-text-primary: #09090b;
  --wk-text-secondary: #475569;
  --wk-text-muted: #64748b;
  --wk-text-light: #94a3b8;

  --wk-red-primary: #e04040;
  --wk-red-gradient: linear-gradient(135deg, #ff4747 0%, #e04040 60%, #b82828 100%);
  --wk-red-glow: 0 8px 24px rgba(224, 64, 64, 0.25);

  --wk-green-primary: #10b981;
  --wk-green-glow: 0 4px 16px rgba(16, 185, 129, 0.3);

  --wk-shadow-card: 0 16px 40px rgba(0, 0, 0, 0.04), 0 2px 6px rgba(0, 0, 0, 0.02);
  --wk-shadow-floating: 0 20px 50px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] {
  --wk-canvas-bg: #0b0b10;
  --wk-card-bg: #14141f;
  --wk-card-surface: #1a1a28;
  --wk-card-raised: #222234;
  --wk-border-subtle: rgba(255, 255, 255, 0.08);
  --wk-border-light: rgba(255, 255, 255, 0.16);
  --wk-text-primary: #ffffff;
  --wk-text-secondary: #cbd5e1;
  --wk-text-muted: #94a3b8;
  --wk-text-light: #64748b;

  --wk-shadow-card: 0 20px 50px rgba(0, 0, 0, 0.5), 0 4px 16px rgba(0, 0, 0, 0.3);
  --wk-shadow-floating: 0 24px 60px rgba(0, 0, 0, 0.6);
}

/* ── FULLSPACE PAGE CANVAS ───────────────────────────────────────── */
.wk-studio-page {
  padding: clamp(16px, 2.5vw, 28px) clamp(16px, 3vw, 36px);
  max-width: 1480px;
  width: 100%;
  margin: 0 auto;
  font-family: var(--wk-font-body);
  color: var(--wk-text-primary);
  background-color: var(--wk-canvas-bg);
  background-image: 
    radial-gradient(ellipse at 85% 8%, rgba(255, 149, 0, 0.07) 0%, transparent 55%),
    radial-gradient(ellipse at 15% 15%, rgba(224, 64, 64, 0.06) 0%, transparent 50%);
  min-height: 100vh;
  box-sizing: border-box;
  position: relative;
}

[data-theme="dark"] .wk-studio-page {
  background-image: 
    radial-gradient(ellipse at 85% 8%, rgba(255, 149, 0, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse at 15% 15%, rgba(224, 64, 64, 0.14) 0%, transparent 50%);
}

/* ── COMMAND CENTER HEADER ROW ───────────────────────────────────── */
.wk-command-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.wk-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.wk-session-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(224, 64, 64, 0.08);
  color: var(--wk-red-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wk-header-info {
  display: flex;
  flex-direction: column;
}

.wk-session-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.wk-live-recording-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #10b981;
  background: rgba(16, 185, 129, 0.09);
  padding: 3px 9px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.wk-live-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.7);
  animation: wkPulse 1.8s infinite ease-in-out;
}

@keyframes wkPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.85); opacity: 0.4; }
}

.wk-header-date {
  font-size: 11px;
  color: var(--wk-text-muted);
  font-weight: 500;
}

.wk-session-title-input {
  font-family: var(--wk-font-display);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--wk-text-primary);
  background: transparent;
  border: none;
  outline: none;
  padding: 0;
  margin: 0;
  width: auto;
  max-width: 440px;
}

.wk-session-title-input:hover {
  text-decoration: underline dotted rgba(0, 0, 0, 0.2);
}

.wk-session-title-input:focus {
  text-decoration: none;
}

/* Header Right: Controls */
.wk-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wk-timer-cockpit {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--wk-card-bg);
  border: 1px solid var(--wk-border-subtle);
  border-radius: 9999px;
  padding: 6px 14px;
  box-shadow: var(--wk-shadow-card);
}

.wk-timer-dial {
  font-family: var(--wk-font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--wk-text-primary);
  letter-spacing: 1px;
}

.wk-timer-toggle-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.wk-timer-toggle-btn.play {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
}

.wk-timer-toggle-btn.play:hover {
  background: #10b981;
  color: #ffffff;
  transform: scale(1.05);
}

.wk-timer-toggle-btn.pause {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
}

.wk-timer-toggle-btn.pause:hover {
  background: #f59e0b;
  color: #ffffff;
}

.wk-finish-session-btn {
  padding: 10px 20px;
  border-radius: 9999px;
  border: none;
  background: var(--wk-red-gradient);
  color: #ffffff;
  font-family: var(--wk-font-display);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--wk-red-glow);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.wk-finish-session-btn:hover:not(:disabled) {
  transform: translateY(-1.5px);
  box-shadow: 0 12px 28px rgba(224, 64, 64, 0.35);
}

.wk-finish-session-btn.saved {
  background: var(--wk-green-primary);
  box-shadow: var(--wk-green-glow);
}

/* ── HUD METRICS STRIP (Total Sets, Volume, Muscle Focus) ────────── */
.wk-hud-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}

.wk-hud-card {
  background: linear-gradient(180deg, var(--wk-card-bg) 0%, var(--wk-card-surface) 100%);
  border: 1px solid var(--wk-border-subtle);
  border-radius: 18px;
  padding: 14px 18px;
  box-shadow: var(--wk-shadow-card);
  display: flex;
  align-items: center;
  gap: 12px;
}

.wk-hud-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wk-hud-icon.sets { background: rgba(224, 64, 64, 0.08); color: var(--wk-red-primary); }
.wk-hud-icon.vol  { background: rgba(255, 149, 0, 0.08); color: #f59e0b; }
.wk-hud-icon.mus  { background: rgba(59, 130, 246, 0.08); color: #3b82f6; }
.wk-hud-icon.rst  { background: rgba(16, 185, 129, 0.08); color: #10b981; }

.wk-hud-text {
  display: flex;
  flex-direction: column;
}

.wk-hud-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--wk-text-muted);
}

.wk-hud-val {
  font-family: var(--wk-font-display);
  font-size: 17px;
  font-weight: 800;
  color: var(--wk-text-primary);
  line-height: 1.2;
}

/* ── WIDESCREEN DUAL-PANE BENTO STUDIO ───────────────────────────── */
.wk-studio-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 24px;
  align-items: start;
}

/* ═══════════════════════════════════════════════════════════════════
   LEFT PANE: ACTIVE LOGGING DECK
   ═══════════════════════════════════════════════════════════════════ */
.wk-deck-pane {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Progress bar banner */
.wk-deck-progress-card {
  background: var(--wk-card-bg);
  border: 1px solid var(--wk-border-subtle);
  border-radius: 18px;
  padding: 14px 18px;
  box-shadow: var(--wk-shadow-card);
}

.wk-deck-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 8px;
}

.wk-deck-progress-title {
  color: var(--wk-text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.wk-deck-progress-pct {
  color: var(--wk-red-primary);
  font-weight: 700;
}

.wk-deck-progress-bar-bg {
  height: 6px;
  background: var(--wk-card-raised);
  border-radius: 9999px;
  overflow: hidden;
}

.wk-deck-progress-bar-fill {
  height: 100%;
  background: var(--wk-red-gradient);
  border-radius: 9999px;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Active Exercise Cards */
.wk-exercise-card {
  background: linear-gradient(180deg, var(--wk-card-bg) 0%, var(--wk-card-surface) 100%);
  border: 1px solid var(--wk-border-subtle);
  border-radius: 22px;
  padding: clamp(16px, 2vw, 22px);
  box-shadow: var(--wk-shadow-card);
  transition: border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}

.wk-exercise-card:hover {
  border-color: var(--wk-border-light);
}

.wk-card-accent-pill {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ff4747 0%, #ff9500 50%, #e04040 100%);
}

.wk-exercise-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.wk-exercise-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wk-exercise-index-box {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--wk-card-raised);
  color: var(--wk-red-primary);
  font-family: var(--wk-font-display);
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wk-exercise-name {
  font-family: var(--wk-font-display);
  font-size: clamp(17px, 2.2vw, 21px);
  font-weight: 700;
  color: var(--wk-text-primary);
  line-height: 1.2;
}

.wk-exercise-tags {
  display: flex;
  gap: 6px;
  font-size: 11px;
  color: var(--wk-text-muted);
  margin-top: 2px;
}

.wk-tag-muscle {
  color: var(--wk-red-primary);
  font-weight: 600;
}

.wk-remove-ex-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--wk-border-subtle);
  background: var(--wk-card-raised);
  color: var(--wk-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.wk-remove-ex-btn:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border-color: #ef4444;
}

/* Set Table Alignment Grid */
.wk-sets-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wk-sets-table-header {
  display: grid;
  grid-template-columns: 46px 1.2fr 1fr 1fr 52px;
  gap: 10px;
  padding: 0 8px 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--wk-text-muted);
  align-items: center;
  text-align: center;
}

.wk-sets-table-header .align-left {
  text-align: left;
}

.wk-set-row {
  display: grid;
  grid-template-columns: 46px 1.2fr 1fr 1fr 52px;
  gap: 10px;
  align-items: center;
  padding: 6px 8px;
  border-radius: 12px;
  background: var(--wk-card-raised);
  border: 1px solid var(--wk-border-subtle);
  transition: all 0.2s ease;
}

.wk-set-row.completed {
  background: rgba(16, 185, 129, 0.06);
  border-color: rgba(16, 185, 129, 0.25);
}

.wk-set-badge {
  font-family: var(--wk-font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--wk-text-muted);
  text-align: center;
}

.wk-set-row.completed .wk-set-badge {
  color: var(--wk-green-primary);
}

.wk-set-prev {
  font-size: 12px;
  color: var(--wk-text-muted);
  text-align: left;
  font-weight: 500;
}

.wk-set-input-box {
  width: 100%;
  padding: 8px 6px;
  background: var(--wk-card-bg);
  border: 1px solid var(--wk-border-light);
  border-radius: 10px;
  text-align: center;
  font-family: var(--wk-font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--wk-text-primary);
  outline: none;
  transition: all 0.15s ease;
  box-sizing: border-box;
}

.wk-set-input-box:focus {
  border-color: var(--wk-red-primary);
  box-shadow: 0 0 0 2px rgba(224, 64, 64, 0.15);
}

.wk-set-row.completed .wk-set-input-box {
  background: transparent;
  border-color: transparent;
  color: var(--wk-text-muted);
}

.wk-check-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--wk-border-light);
  background: var(--wk-card-bg);
  color: var(--wk-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  margin: 0 auto;
}

.wk-check-btn:hover {
  border-color: var(--wk-green-primary);
  color: var(--wk-green-primary);
  transform: scale(1.08);
}

.wk-check-btn.checked {
  background: var(--wk-green-primary);
  border-color: var(--wk-green-primary);
  color: #ffffff;
  box-shadow: var(--wk-green-glow);
}

/* Exercise Footer: Sets Add/Remove + Volume */
.wk-exercise-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--wk-border-subtle);
  flex-wrap: wrap;
  gap: 10px;
}

.wk-volume-summary {
  font-size: 12px;
  color: var(--wk-text-muted);
}

.wk-volume-summary strong {
  color: var(--wk-text-primary);
}

.wk-set-action-btns {
  display: flex;
  gap: 8px;
}

.wk-btn-set-ctrl {
  padding: 6px 14px;
  background: var(--wk-card-bg);
  border: 1px solid var(--wk-border-subtle);
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--wk-text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.wk-btn-set-ctrl:hover {
  background: var(--wk-card-raised);
  border-color: var(--wk-border-light);
  color: var(--wk-text-primary);
}

.wk-btn-set-ctrl.add {
  color: var(--wk-red-primary);
  border-color: rgba(224, 64, 64, 0.2);
  background: rgba(224, 64, 64, 0.05);
}

.wk-btn-set-ctrl.add:hover {
  background: var(--wk-red-primary);
  color: #ffffff;
}

/* Empty State / Protocol Launchers */
.wk-empty-deck-card {
  background: linear-gradient(180deg, var(--wk-card-bg) 0%, var(--wk-card-surface) 100%);
  border: 1px solid var(--wk-border-subtle);
  border-radius: 24px;
  padding: clamp(28px, 4vw, 44px) 24px;
  text-align: center;
  box-shadow: var(--wk-shadow-card);
}

.wk-empty-icon-wrap {
  width: 58px;
  height: 58px;
  border-radius: 20px;
  background: rgba(224, 64, 64, 0.08);
  color: var(--wk-red-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.wk-empty-title {
  font-family: var(--wk-font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--wk-text-primary);
  margin: 0 0 8px;
}

.wk-empty-desc {
  font-size: 13.5px;
  color: var(--wk-text-muted);
  max-width: 480px;
  margin: 0 auto 26px;
  line-height: 1.5;
}

.wk-quick-protocols-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  text-align: left;
}

.wk-protocol-tile {
  background: var(--wk-card-raised);
  border: 1px solid var(--wk-border-subtle);
  border-radius: 16px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.wk-protocol-tile:hover {
  border-color: var(--wk-red-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(224, 64, 64, 0.12);
}

.wk-protocol-name {
  font-family: var(--wk-font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--wk-text-primary);
  margin-bottom: 4px;
}

.wk-protocol-sub {
  font-size: 11px;
  color: var(--wk-text-muted);
  line-height: 1.4;
  margin-bottom: 12px;
}

.wk-protocol-action {
  font-size: 11px;
  font-weight: 700;
  color: var(--wk-red-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ═══════════════════════════════════════════════════════════════════
   RIGHT PANE: EXERCISE VAULT & ANATOMICAL STUDIO
   ═══════════════════════════════════════════════════════════════════ */
.wk-vault-pane {
  background: linear-gradient(180deg, var(--wk-card-bg) 0%, var(--wk-card-surface) 100%);
  border: 1px solid var(--wk-border-subtle);
  border-radius: 24px;
  padding: clamp(16px, 2vw, 22px);
  box-shadow: var(--wk-shadow-card);
  position: sticky;
  top: 16px;
  max-height: calc(100vh - 32px);
  display: flex;
  flex-direction: column;
}

/* Vault Segmented Tabs */
.wk-vault-tabs {
  display: flex;
  background: var(--wk-card-raised);
  border-radius: 9999px;
  padding: 4px;
  margin-bottom: 16px;
  border: 1px solid var(--wk-border-subtle);
}

.wk-vault-tab-btn {
  flex: 1;
  padding: 7px 12px;
  border: none;
  background: transparent;
  color: var(--wk-text-muted);
  font-family: var(--wk-font-body);
  font-size: 12px;
  font-weight: 600;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.wk-vault-tab-btn.active {
  background: var(--wk-card-bg);
  color: var(--wk-text-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Search bar inside vault */
.wk-vault-search-box {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.wk-vault-search-icon {
  position: absolute;
  left: 14px;
  color: var(--wk-text-muted);
  pointer-events: none;
}

.wk-vault-search-input {
  width: 100%;
  padding: 10px 14px 10px 40px;
  background: var(--wk-card-raised);
  border: 1px solid var(--wk-border-subtle);
  border-radius: 12px;
  font-family: var(--wk-font-body);
  font-size: 13.5px;
  color: var(--wk-text-primary);
  outline: none;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.wk-vault-search-input:focus {
  border-color: var(--wk-red-primary);
  background: var(--wk-card-bg);
  box-shadow: 0 0 0 2px rgba(224, 64, 64, 0.12);
}

/* Category Filter Chips */
.wk-vault-categories {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 12px;
  scrollbar-width: none;
}

.wk-vault-categories::-webkit-scrollbar {
  display: none;
}

.wk-vault-cat-pill {
  padding: 5px 12px;
  background: var(--wk-card-raised);
  border: 1px solid var(--wk-border-subtle);
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
  color: var(--wk-text-secondary);
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.wk-vault-cat-pill:hover {
  color: var(--wk-text-primary);
}

.wk-vault-cat-pill.active {
  background: rgba(224, 64, 64, 0.08);
  border-color: var(--wk-red-primary);
  color: var(--wk-red-primary);
  font-weight: 700;
}

/* Vault Scrollable Exercises Feed */
.wk-vault-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 4px;
}

.wk-vault-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--wk-card-raised);
  border: 1px solid var(--wk-border-subtle);
  border-radius: 14px;
  transition: all 0.15s ease;
  cursor: pointer;
}

.wk-vault-item:hover {
  background: var(--wk-card-bg);
  border-color: var(--wk-border-light);
  transform: translateX(2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.wk-vault-item-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--wk-text-primary);
  margin-bottom: 2px;
}

.wk-vault-item-meta {
  display: flex;
  gap: 6px;
  font-size: 10.5px;
}

.wk-vault-tag {
  color: var(--wk-red-primary);
  background: rgba(224, 64, 64, 0.08);
  padding: 1px 6px;
  border-radius: 6px;
  font-weight: 600;
}

.wk-vault-equip {
  color: var(--wk-text-muted);
}

.wk-vault-add-pill {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--wk-card-bg);
  border: 1px solid var(--wk-border-light);
  color: var(--wk-text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.wk-vault-item:hover .wk-vault-add-pill {
  background: var(--wk-red-gradient);
  border-color: transparent;
  color: #ffffff;
  transform: scale(1.1);
}

/* Vault Tab 2: Analytics & Muscle Split */
.wk-vault-analytics-box {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 8px 4px;
}

.wk-split-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wk-split-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: var(--wk-text-secondary);
}

.wk-split-bar-bg {
  height: 6px;
  background: var(--wk-card-raised);
  border-radius: 9999px;
  overflow: hidden;
}

.wk-split-bar-fill {
  height: 100%;
  border-radius: 9999px;
  transition: width 0.4s ease;
}

/* ── FLOATING REST TIMER CAPSULE ─────────────────────────────────── */
.wk-floating-rest {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--wk-card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--wk-border-light);
  border-radius: 20px;
  padding: 12px 18px;
  box-shadow: var(--wk-shadow-floating);
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 9999;
  animation: restSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.wk-rest-digits {
  font-family: var(--wk-font-mono);
  font-size: 26px;
  font-weight: 700;
  color: var(--wk-text-primary);
  line-height: 1;
}

.wk-rest-plus-btn {
  padding: 5px 10px;
  border-radius: 9999px;
  background: var(--wk-card-raised);
  border: 1px solid var(--wk-border-subtle);
  font-size: 11px;
  font-weight: 700;
  color: var(--wk-text-primary);
  cursor: pointer;
}

.wk-rest-close-btn {
  background: none;
  border: none;
  color: var(--wk-text-muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
}

/* ── WORKOUT HISTORY ROWS (Bottom of Deck) ────────────────────────── */
.wk-history-section {
  margin-top: 36px;
}

.wk-history-header {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--wk-text-muted);
  margin-bottom: 12px;
}

.wk-history-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--wk-card-bg);
  border: 1px solid var(--wk-border-subtle);
  border-radius: 16px;
  margin-bottom: 10px;
  box-shadow: var(--wk-shadow-card);
  transition: all 0.2s ease;
}

.wk-history-row:hover {
  border-color: var(--wk-border-light);
  transform: translateX(2px);
}

.wk-history-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--wk-text-primary);
}

.wk-history-sub {
  font-size: 11.5px;
  color: var(--wk-text-muted);
  margin-top: 2px;
}

/* ── RESPONSIVE BREAKPOINTS ──────────────────────────────────────── */
@media (max-width: 1080px) {
  .wk-studio-grid {
    grid-template-columns: 1fr;
  }

  .wk-vault-pane {
    position: relative;
    top: 0;
    max-height: 520px;
  }

  .wk-hud-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .wk-studio-page {
    padding: 12px 10px 40px;
  }

  .wk-hud-strip {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .wk-hud-card {
    padding: 10px 12px;
  }

  .wk-quick-protocols-grid {
    grid-template-columns: 1fr;
  }

  .wk-sets-table-header,
  .wk-set-row {
    grid-template-columns: 36px 1fr 64px 64px 44px;
    gap: 6px;
  }

  .wk-set-input-box {
    padding: 6px 2px;
    font-size: 13px;
  }

  .wk-command-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .wk-header-right {
    width: 100%;
    justify-content: space-between;
  }

  .wk-floating-rest {
    bottom: 16px;
    right: 16px;
    left: 16px;
    justify-content: space-between;
  }
}
/* ═══════════════════════════════════════════════════════════════════════════
   ATHLETE PROGRESSION & TELEMETRY STUDIO (Progress.css)
   - Luminous Porcelain Design System
   - Widescreen Executive Layout (max-width: 1540px)
   - Recharts Visual Telemetry (Strength Velocity & Body Composition)
   - Personal Records (PRs) Hall of Fame & Visual Transformation Vault
   - Native Light & Dark Mode ([data-theme="dark"])
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --prog-font-display: 'Outfit', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --prog-font-body: 'Plus Jakarta Sans', 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --prog-font-mono: 'Share Tech Mono', monospace, ui-monospace;

  /* Porcelain Light Mode Palette */
  --prog-canvas-bg: #f8f8fa;
  --prog-card-bg: #ffffff;
  --prog-card-surface: #fbfbfe;
  --prog-card-raised: #f1f2f6;
  --prog-border-subtle: rgba(0, 0, 0, 0.07);
  --prog-border-medium: rgba(0, 0, 0, 0.12);
  --prog-text-primary: #09090b;
  --prog-text-secondary: #475569;
  --prog-text-muted: #64748b;
  --prog-text-light: #94a3b8;

  --prog-red-primary: #e04040;
  --prog-red-gradient: linear-gradient(135deg, #ff4747 0%, #e04040 60%, #b82828 100%);
  --prog-red-glow: 0 10px 28px rgba(224, 64, 64, 0.22);
  --prog-red-tint: rgba(224, 64, 64, 0.06);

  --prog-green-primary: #10b981;
  --prog-green-tint: rgba(16, 185, 129, 0.08);

  --prog-blue-primary: #3b82f6;
  --prog-blue-tint: rgba(59, 130, 246, 0.08);

  --prog-amber-primary: #f59e0b;
  --prog-amber-tint: rgba(245, 158, 11, 0.08);

  --prog-shadow-card: 0 16px 40px rgba(0, 0, 0, 0.04), 0 2px 6px rgba(0, 0, 0, 0.02);
  --prog-shadow-elevated: 0 24px 60px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.03);
}

[data-theme="dark"] {
  --prog-canvas-bg: #0b0b10;
  --prog-card-bg: #14141f;
  --prog-card-surface: #1a1a28;
  --prog-card-raised: #222234;
  --prog-border-subtle: rgba(255, 255, 255, 0.08);
  --prog-border-medium: rgba(255, 255, 255, 0.16);
  --prog-text-primary: #ffffff;
  --prog-text-secondary: #cbd5e1;
  --prog-text-muted: #94a3b8;
  --prog-text-light: #64748b;

  --prog-red-tint: rgba(224, 64, 64, 0.14);
  --prog-green-tint: rgba(16, 185, 129, 0.14);
  --prog-blue-tint: rgba(59, 130, 246, 0.14);
  --prog-amber-tint: rgba(245, 158, 11, 0.14);

  --prog-shadow-card: 0 20px 50px rgba(0, 0, 0, 0.5), 0 4px 16px rgba(0, 0, 0, 0.3);
  --prog-shadow-elevated: 0 28px 70px rgba(0, 0, 0, 0.65);
}

/* ── STUDIO PAGE CANVAS ───────────────────────────────────────────── */
.prog-studio-page {
  padding: clamp(16px, 2.5vw, 32px) clamp(16px, 3vw, 40px);
  max-width: 1540px;
  width: 100%;
  margin: 0 auto;
  font-family: var(--prog-font-body);
  color: var(--prog-text-primary);
  background-color: var(--prog-canvas-bg);
  background-image: 
    radial-gradient(ellipse at 85% 6%, rgba(224, 64, 64, 0.06) 0%, transparent 45%),
    radial-gradient(ellipse at 15% 15%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
  min-height: calc(100vh - 65px);
  box-sizing: border-box;
}

[data-theme="dark"] .prog-studio-page {
  background-image: 
    radial-gradient(ellipse at 85% 6%, rgba(224, 64, 64, 0.12) 0%, transparent 45%),
    radial-gradient(ellipse at 15% 15%, rgba(59, 130, 246, 0.08) 0%, transparent 50%);
}

/* ── COMMAND HEADER ──────────────────────────────────────────────── */
.prog-command-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.prog-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.prog-header-icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--prog-red-tint);
  border: 1px solid rgba(224, 64, 64, 0.2);
  color: var(--prog-red-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(224, 64, 64, 0.15);
}

.prog-badge-kicker {
  font-family: var(--prog-font-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--prog-red-primary);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.prog-header-title {
  font-family: var(--prog-font-display);
  font-size: clamp(24px, 3.2vw, 36px);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 0;
  line-height: 1.1;
  color: var(--prog-text-primary);
}

.prog-crimson-accent {
  background: var(--prog-red-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.prog-header-sub {
  font-size: 13px;
  color: var(--prog-text-secondary);
  margin-top: 4px;
}

.prog-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.prog-badge-capsule {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--prog-card-bg);
  border: 1px solid var(--prog-border-medium);
  border-radius: 999px;
  font-family: var(--prog-font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--prog-text-secondary);
  box-shadow: var(--prog-shadow-card);
}

/* ── 4-STAT DELTA KPI DECK ───────────────────────────────────────── */
.prog-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.prog-kpi-card {
  background: var(--prog-card-bg);
  border: 1px solid var(--prog-border-subtle);
  border-radius: 18px;
  padding: 20px 22px;
  box-shadow: var(--prog-shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.prog-kpi-card:hover {
  transform: translateY(-2px);
  border-color: var(--prog-border-medium);
  box-shadow: var(--prog-shadow-elevated);
}

.prog-kpi-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.prog-kpi-label {
  font-family: var(--prog-font-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--prog-text-muted);
  font-weight: 700;
  text-transform: uppercase;
}

.prog-kpi-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prog-kpi-value {
  font-family: var(--prog-font-display);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  line-height: 1;
}

.prog-kpi-sub {
  font-family: var(--prog-font-mono);
  font-size: 11px;
  color: var(--prog-text-muted);
}

/* ── CHARTS SPLIT ROW ────────────────────────────────────────────── */
.prog-charts-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 22px;
  margin-bottom: 24px;
}

.prog-chart-card {
  background: var(--prog-card-bg);
  border: 1px solid var(--prog-border-subtle);
  border-radius: 22px;
  padding: 24px;
  box-shadow: var(--prog-shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.prog-chart-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.prog-chart-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.prog-chart-title {
  font-family: var(--prog-font-display);
  font-size: 18px;
  font-weight: 800;
  color: var(--prog-text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.prog-chart-subtitle {
  font-size: 12px;
  color: var(--prog-text-muted);
}

.prog-chart-legend {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.prog-legend-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--prog-font-mono);
  font-size: 11px;
  color: var(--prog-text-secondary);
}

.prog-legend-indicator {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}

.prog-chart-wrapper {
  width: 100%;
  height: 280px;
}

/* ── PERSONAL RECORDS HALL OF FAME ───────────────────────────────── */
.prog-pr-section {
  background: var(--prog-card-bg);
  border: 1px solid var(--prog-border-subtle);
  border-radius: 22px;
  padding: 24px;
  box-shadow: var(--prog-shadow-card);
  margin-bottom: 24px;
}

.prog-pr-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.prog-pr-title {
  font-family: var(--prog-font-display);
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.prog-pr-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.prog-pr-card {
  background: var(--prog-card-surface);
  border: 1px solid var(--prog-border-subtle);
  border-radius: 16px;
  padding: 18px 20px;
  position: relative;
  overflow: hidden;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.prog-pr-card:hover {
  transform: translateY(-2px);
  border-color: var(--prog-border-medium);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.prog-pr-rank-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.prog-pr-lift-name {
  font-family: var(--prog-font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--prog-text-primary);
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prog-pr-weight {
  font-family: var(--prog-font-display);
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  color: var(--prog-text-primary);
  margin-bottom: 12px;
}

.prog-pr-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--prog-font-mono);
  font-size: 10px;
}

.prog-pr-tag {
  color: var(--prog-green-primary);
  background: var(--prog-green-tint);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
}

.prog-pr-date {
  color: var(--prog-text-muted);
}

/* ── VISUAL TRANSFORMATION VAULT (PHOTOS) ────────────────────────── */
.prog-photos-section {
  background: var(--prog-card-bg);
  border: 1px solid var(--prog-border-subtle);
  border-radius: 22px;
  padding: 24px;
  box-shadow: var(--prog-shadow-card);
}

.prog-photos-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.prog-photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 14px;
}

.prog-photo-thumb {
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--prog-border-subtle);
  background: var(--prog-card-surface);
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
}

.prog-photo-thumb:hover {
  transform: scale(1.02);
  border-color: var(--prog-red-primary);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.prog-photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.prog-photo-upload-card {
  aspect-ratio: 1;
  border-radius: 14px;
  border: 2px dashed var(--prog-border-medium);
  background: var(--prog-card-surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.prog-photo-upload-card:hover {
  border-color: var(--prog-red-primary);
  background: var(--prog-red-tint);
}

.prog-photo-upload-text {
  font-family: var(--prog-font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--prog-text-secondary);
}

/* ── RESPONSIVE ADAPTATIONS ─────────────────────────────────────── */
@media (max-width: 1200px) {
  .prog-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .prog-charts-grid {
    grid-template-columns: 1fr;
  }
  .prog-pr-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .prog-studio-page {
    padding: 16px 12px 60px;
  }
  .prog-command-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .prog-header-right {
    width: 100%;
    justify-content: space-between;
  }
  .prog-kpi-grid {
    grid-template-columns: 1fr;
  }
  .prog-pr-grid {
    grid-template-columns: 1fr;
  }
  .prog-photos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* ═══════════════════════════════════════════════════════════════════════════
   INTELLIGENT FUEL ARCHITECTURE & NUTRITION (Nutrition.css)
   - Luminous Porcelain Design System
   - Widescreen 2x2 Bento Meal Command Center & Macro Telemetry Hub
   - 100% Responsive: Full Studio on Desktop, Fluid Ergonomics on Mobile
   - Native Light & Dark Mode ([data-theme="dark"])
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --nutr-font-display: 'Outfit', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --nutr-font-body: 'Plus Jakarta Sans', 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --nutr-font-mono: 'Share Tech Mono', monospace, ui-monospace;

  /* Porcelain Light Palette */
  --nutr-canvas-bg: #f8f8fa;
  --nutr-card-bg: #ffffff;
  --nutr-card-surface: #fbfbfe;
  --nutr-card-raised: #f1f2f6;
  --nutr-border-subtle: rgba(0, 0, 0, 0.07);
  --nutr-border-medium: rgba(0, 0, 0, 0.12);
  --nutr-text-primary: #09090b;
  --nutr-text-secondary: #475569;
  --nutr-text-muted: #64748b;
  --nutr-text-light: #94a3b8;

  --nutr-red-primary: #e04040;
  --nutr-red-gradient: linear-gradient(135deg, #ff4747 0%, #e04040 60%, #b82828 100%);
  --nutr-red-glow: 0 10px 28px rgba(224, 64, 64, 0.22);
  --nutr-red-tint: rgba(224, 64, 64, 0.06);

  --nutr-blue-primary: #3b82f6;
  --nutr-blue-tint: rgba(59, 130, 246, 0.08);

  --nutr-amber-primary: #f59e0b;
  --nutr-amber-tint: rgba(245, 158, 11, 0.08);

  --nutr-green-primary: #10b981;
  --nutr-green-tint: rgba(16, 185, 129, 0.08);

  --nutr-shadow-card: 0 16px 40px rgba(0, 0, 0, 0.04), 0 2px 6px rgba(0, 0, 0, 0.02);
  --nutr-shadow-elevated: 0 24px 60px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.03);
  --nutr-shadow-modal: 0 30px 90px rgba(0, 0, 0, 0.25), 0 10px 30px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
  --nutr-canvas-bg: #0b0b10;
  --nutr-card-bg: #14141f;
  --nutr-card-surface: #1a1a28;
  --nutr-card-raised: #222234;
  --nutr-border-subtle: rgba(255, 255, 255, 0.08);
  --nutr-border-medium: rgba(255, 255, 255, 0.16);
  --nutr-text-primary: #ffffff;
  --nutr-text-secondary: #cbd5e1;
  --nutr-text-muted: #94a3b8;
  --nutr-text-light: #64748b;

  --nutr-red-tint: rgba(224, 64, 64, 0.14);
  --nutr-blue-tint: rgba(59, 130, 246, 0.14);
  --nutr-amber-tint: rgba(245, 158, 11, 0.14);
  --nutr-green-tint: rgba(16, 185, 129, 0.14);

  --nutr-shadow-card: 0 20px 50px rgba(0, 0, 0, 0.5), 0 4px 16px rgba(0, 0, 0, 0.3);
  --nutr-shadow-elevated: 0 28px 70px rgba(0, 0, 0, 0.65);
  --nutr-shadow-modal: 0 36px 100px rgba(0, 0, 0, 0.85);
}

/* ── STUDIO PAGE CANVAS ───────────────────────────────────────────── */
.nutr-studio-page {
  padding: clamp(16px, 2.5vw, 32px) clamp(16px, 3vw, 40px);
  max-width: 1540px;
  width: 100%;
  margin: 0 auto;
  font-family: var(--nutr-font-body);
  color: var(--nutr-text-primary);
  background-color: var(--nutr-canvas-bg);
  background-image: 
    radial-gradient(ellipse at 80% 4%, rgba(16, 185, 129, 0.06) 0%, transparent 45%),
    radial-gradient(ellipse at 15% 12%, rgba(224, 64, 64, 0.06) 0%, transparent 50%);
  min-height: calc(100vh - 65px);
  box-sizing: border-box;
}

[data-theme="dark"] .nutr-studio-page {
  background-image: 
    radial-gradient(ellipse at 80% 4%, rgba(16, 185, 129, 0.1) 0%, transparent 45%),
    radial-gradient(ellipse at 15% 12%, rgba(224, 64, 64, 0.12) 0%, transparent 50%);
}

/* ── HEADER ROW ──────────────────────────────────────────────────── */
.nutr-command-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.nutr-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nutr-header-icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--nutr-green-tint);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: var(--nutr-green-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.18);
}

.nutr-badge-kicker {
  font-family: var(--nutr-font-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--nutr-green-primary);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nutr-header-title {
  font-family: var(--nutr-font-display);
  font-size: clamp(24px, 3.2vw, 36px);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 0;
  line-height: 1.1;
  color: var(--nutr-text-primary);
}

.nutr-crimson-accent {
  background: var(--nutr-red-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nutr-header-sub {
  font-size: 13px;
  color: var(--nutr-text-secondary);
  margin-top: 4px;
}

.nutr-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.nutr-date-capsule {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--nutr-card-bg);
  border: 1px solid var(--nutr-border-medium);
  border-radius: 999px;
  font-family: var(--nutr-font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--nutr-text-secondary);
  box-shadow: var(--nutr-shadow-card);
}

.nutr-status-capsule {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  font-family: var(--nutr-font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.nutr-status-capsule.deficit {
  background: var(--nutr-green-tint);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--nutr-green-primary);
}

.nutr-status-capsule.surplus {
  background: var(--nutr-red-tint);
  border: 1px solid rgba(224, 64, 64, 0.3);
  color: var(--nutr-red-primary);
}

/* ── MACRO & CALORIE TELEMETRY HERO DECK ──────────────────────────── */
.nutr-telemetry-deck {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

/* Calories Card */
.nutr-cal-hero-card {
  background: var(--nutr-card-bg);
  border: 1px solid var(--nutr-border-subtle);
  border-radius: 20px;
  padding: 22px 24px;
  box-shadow: var(--nutr-shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

.nutr-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nutr-card-label {
  font-family: var(--nutr-font-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--nutr-text-muted);
  font-weight: 700;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nutr-cal-stats-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.nutr-stat-item-label {
  font-family: var(--nutr-font-mono);
  font-size: 10px;
  color: var(--nutr-text-muted);
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.nutr-stat-item-val {
  font-family: var(--nutr-font-display);
  font-size: clamp(20px, 2.2vw, 24px);
  font-weight: 700;
  color: var(--nutr-text-primary);
}

.nutr-hero-eaten-val {
  font-family: var(--nutr-font-display);
  font-size: clamp(34px, 4vw, 44px);
  font-weight: 800;
  line-height: 1;
}

/* Energy Progress Bar */
.nutr-progress-bar-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nutr-progress-track {
  height: 8px;
  background: var(--nutr-card-raised);
  border-radius: 999px;
  overflow: hidden;
}

.nutr-progress-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.nutr-progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--nutr-font-mono);
  font-size: 10px;
  color: var(--nutr-text-muted);
}

/* Macro Glass Cards (Protein, Carbs, Fats) */
.nutr-macro-card {
  background: var(--nutr-card-bg);
  border: 1px solid var(--nutr-border-subtle);
  border-radius: 20px;
  padding: 22px 20px;
  box-shadow: var(--nutr-shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.nutr-macro-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--nutr-shadow-elevated);
}

.nutr-macro-badge {
  font-family: var(--nutr-font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
}

.nutr-macro-values {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.nutr-macro-current {
  font-family: var(--nutr-font-display);
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
}

.nutr-macro-target {
  font-family: var(--nutr-font-mono);
  font-size: 13px;
  color: var(--nutr-text-muted);
}

.nutr-macro-sub {
  font-size: 12px;
  color: var(--nutr-text-secondary);
  line-height: 1.4;
}

/* ── ANDREA AI SYNTHESIS BANNER ──────────────────────────────────── */
.nutr-ai-banner {
  background: linear-gradient(135deg, rgba(224, 64, 64, 0.04) 0%, rgba(16, 185, 129, 0.04) 100%);
  border: 1px solid var(--nutr-border-medium);
  border-left: 4px solid var(--nutr-red-primary);
  border-radius: 18px;
  padding: 18px 22px;
  margin-bottom: 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  box-shadow: var(--nutr-shadow-card);
}

.nutr-ai-avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--nutr-red-gradient);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(224, 64, 64, 0.25);
}

.nutr-ai-content {
  flex: 1;
}

.nutr-ai-kicker {
  font-family: var(--nutr-font-mono);
  font-size: 10px;
  color: var(--nutr-red-primary);
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: 4px;
}

.nutr-ai-text {
  font-size: 13px;
  line-height: 1.6;
  color: var(--nutr-text-secondary);
}

/* ── 2x2 BENTO MEAL COMMAND CENTER ───────────────────────────────── */
.nutr-meals-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-bottom: 40px;
}

.nutr-meal-card {
  background: var(--nutr-card-bg);
  border: 1px solid var(--nutr-border-subtle);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--nutr-shadow-card);
  display: flex;
  flex-direction: column;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.nutr-meal-card:hover {
  border-color: var(--nutr-border-medium);
  box-shadow: var(--nutr-shadow-elevated);
}

/* Meal Header */
.nutr-meal-header {
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--nutr-border-subtle);
  background: var(--nutr-card-surface);
}

.nutr-meal-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nutr-meal-emoji-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--nutr-card-raised);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.nutr-meal-name {
  font-family: var(--nutr-font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--nutr-text-primary);
}

.nutr-meal-cals-pill {
  font-family: var(--nutr-font-mono);
  font-size: 11px;
  color: var(--nutr-text-muted);
  margin-top: 2px;
}

.nutr-meal-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: var(--nutr-card-bg);
  border: 1px solid var(--nutr-red-primary);
  color: var(--nutr-red-primary);
  border-radius: 10px;
  font-family: var(--nutr-font-mono);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
}

.nutr-meal-add-btn:hover {
  background: var(--nutr-red-gradient);
  color: #ffffff;
  box-shadow: var(--nutr-red-glow);
}

/* Meal mini progress strip */
.nutr-meal-progress-strip {
  height: 3px;
  background: var(--nutr-card-raised);
  width: 100%;
}

.nutr-meal-progress-fill {
  height: 100%;
  transition: width 0.4s ease;
}

/* Food Items List */
.nutr-food-list {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.nutr-food-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  border-bottom: 1px solid var(--nutr-border-subtle);
  transition: background 0.15s ease;
}

.nutr-food-row:hover {
  background: var(--nutr-card-surface);
}

.nutr-food-row-left {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1;
}

.nutr-food-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--nutr-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nutr-food-qty-pill {
  font-family: var(--nutr-font-mono);
  font-size: 11px;
  color: var(--nutr-text-muted);
}

.nutr-food-row-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nutr-micro-macros {
  display: flex;
  gap: 6px;
}

.nutr-micro-tag {
  font-family: var(--nutr-font-mono);
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 6px;
  font-weight: 600;
}

.nutr-food-cal-badge {
  font-family: var(--nutr-font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--nutr-text-primary);
  min-width: 50px;
  text-align: right;
}

.nutr-food-delete-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--nutr-border-subtle);
  color: var(--nutr-text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.nutr-food-delete-btn:hover {
  background: var(--nutr-red-tint);
  border-color: var(--nutr-red-primary);
  color: var(--nutr-red-primary);
}

/* Meal Empty State */
.nutr-meal-empty {
  padding: 28px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--nutr-text-muted);
  font-size: 13px;
}

.nutr-meal-empty-cta {
  background: none;
  border: none;
  color: var(--nutr-red-primary);
  font-family: var(--nutr-font-mono);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.5px;
}

.nutr-meal-empty-cta:hover {
  text-decoration: underline;
}

/* Meal Footer Subtotals */
.nutr-meal-footer {
  padding: 10px 20px;
  background: var(--nutr-card-raised);
  border-top: 1px solid var(--nutr-border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--nutr-font-mono);
  font-size: 11px;
}

.nutr-meal-footer-macros {
  display: flex;
  gap: 12px;
}

.nutr-meal-footer-cals {
  font-weight: 700;
  color: var(--nutr-text-primary);
}

/* ═══════════════════════════════════════════════════════════════════
   PRO-GRADE FOOD DATABASE EXPLORER MODAL
   ═══════════════════════════════════════════════════════════════════ */
.nutr-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.nutr-modal-container {
  background: var(--nutr-card-bg);
  border: 1px solid var(--nutr-border-medium);
  border-radius: 24px;
  width: 100%;
  max-width: 960px;
  height: 85vh;
  max-height: 800px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--nutr-shadow-modal);
  overflow: hidden;
}

.nutr-modal-head {
  padding: 20px 24px;
  border-bottom: 1px solid var(--nutr-border-subtle);
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--nutr-card-surface);
}

.nutr-modal-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nutr-modal-title {
  font-family: var(--nutr-font-display);
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nutr-modal-meal-tag {
  font-family: var(--nutr-font-mono);
  font-size: 11px;
  color: var(--nutr-red-primary);
  background: var(--nutr-red-tint);
  border: 1px solid rgba(224, 64, 64, 0.2);
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 700;
}

.nutr-modal-close-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--nutr-card-raised);
  border: 1px solid var(--nutr-border-subtle);
  color: var(--nutr-text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.nutr-modal-close-btn:hover {
  background: var(--nutr-card-bg);
  color: var(--nutr-text-primary);
}

/* Modal Search & Categories */
.nutr-modal-search-box {
  position: relative;
  width: 100%;
}

.nutr-modal-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--nutr-text-muted);
}

.nutr-modal-search-input {
  width: 100%;
  padding: 12px 36px 12px 42px;
  background: var(--nutr-card-bg);
  border: 1px solid var(--nutr-border-subtle);
  border-radius: 12px;
  color: var(--nutr-text-primary);
  font-family: var(--nutr-font-body);
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.nutr-modal-search-input:focus {
  border-color: var(--nutr-red-primary);
  box-shadow: 0 0 0 3px rgba(224, 64, 64, 0.1);
}

.nutr-modal-cats-scroll {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.nutr-modal-cat-pill {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--nutr-card-bg);
  border: 1px solid var(--nutr-border-subtle);
  color: var(--nutr-text-secondary);
  font-size: 11px;
  font-family: var(--nutr-font-mono);
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.nutr-modal-cat-pill.active {
  background: var(--nutr-red-primary);
  border-color: var(--nutr-red-primary);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(224, 64, 64, 0.25);
}

/* Modal Body Split Pane */
.nutr-modal-body-split {
  flex: 1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  min-height: 0;
}

.nutr-modal-food-list {
  overflow-y: auto;
  border-right: 1px solid var(--nutr-border-subtle);
  scrollbar-width: thin;
}

.nutr-modal-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--nutr-border-subtle);
  cursor: pointer;
  transition: all 0.15s ease;
}

.nutr-modal-item-row:hover {
  background: var(--nutr-card-surface);
}

.nutr-modal-item-row.selected {
  background: var(--nutr-red-tint);
  border-left: 4px solid var(--nutr-red-primary);
}

.nutr-modal-item-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--nutr-text-primary);
  margin-bottom: 3px;
}

.nutr-modal-item-macros {
  font-family: var(--nutr-font-mono);
  font-size: 11px;
  color: var(--nutr-text-muted);
}

.nutr-modal-item-cals {
  font-family: var(--nutr-font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--nutr-text-primary);
  text-align: right;
}

/* Modal Portion & Calculator Right Pane */
.nutr-modal-calc-pane {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--nutr-card-surface);
  overflow-y: auto;
}

.nutr-calc-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.nutr-calc-selected-name {
  font-family: var(--nutr-font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--nutr-text-primary);
}

/* Stepper & Presets */
.nutr-calc-stepper-box {
  background: var(--nutr-card-bg);
  border: 1px solid var(--nutr-border-subtle);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nutr-calc-stepper-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nutr-stepper-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--nutr-card-raised);
  border: 1px solid var(--nutr-border-subtle);
  color: var(--nutr-text-primary);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.nutr-stepper-btn:hover {
  background: var(--nutr-red-primary);
  color: #ffffff;
  border-color: var(--nutr-red-primary);
}

.nutr-stepper-input {
  width: 80px;
  text-align: center;
  padding: 8px;
  font-family: var(--nutr-font-mono);
  font-size: 18px;
  font-weight: 700;
  border: 1px solid var(--nutr-border-medium);
  border-radius: 10px;
  background: var(--nutr-card-bg);
  color: var(--nutr-text-primary);
  outline: none;
}

.nutr-calc-presets {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.nutr-preset-btn {
  padding: 4px 10px;
  background: var(--nutr-card-raised);
  border: 1px solid var(--nutr-border-subtle);
  border-radius: 6px;
  font-family: var(--nutr-font-mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--nutr-text-secondary);
  cursor: pointer;
}

.nutr-preset-btn:hover {
  background: var(--nutr-card-bg);
  color: var(--nutr-text-primary);
}

/* Live Macro Grid */
.nutr-live-macro-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.nutr-live-macro-card {
  padding: 10px 8px;
  background: var(--nutr-card-bg);
  border: 1px solid var(--nutr-border-subtle);
  border-radius: 12px;
  text-align: center;
}

.nutr-live-macro-val {
  font-family: var(--nutr-font-mono);
  font-size: 15px;
  font-weight: 800;
}

.nutr-live-macro-lbl {
  font-family: var(--nutr-font-mono);
  font-size: 9px;
  color: var(--nutr-text-muted);
  margin-top: 2px;
}

.nutr-add-log-btn {
  width: 100%;
  padding: 14px;
  background: var(--nutr-red-gradient);
  border: none;
  border-radius: 12px;
  color: #ffffff;
  font-family: var(--nutr-font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: var(--nutr-red-glow);
  transition: all 0.2s ease;
  margin-top: 18px;
}

.nutr-add-log-btn:hover:not(:disabled) {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.nutr-add-log-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ── RESPONSIVE ADAPTATIONS ─────────────────────────────────────── */
@media (max-width: 1240px) {
  .nutr-telemetry-deck {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 960px) {
  .nutr-meals-grid {
    grid-template-columns: 1fr;
  }
  .nutr-modal-body-split {
    grid-template-columns: 1fr;
  }
  .nutr-modal-food-list {
    border-right: none;
    border-bottom: 1px solid var(--nutr-border-subtle);
    max-height: 280px;
  }
}

@media (max-width: 640px) {
  .nutr-studio-page {
    padding: 16px 12px 60px;
  }
  .nutr-telemetry-deck {
    grid-template-columns: 1fr;
  }
  .nutr-command-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .nutr-header-right {
    width: 100%;
    justify-content: space-between;
  }
  .nutr-modal-container {
    height: 92vh;
    border-radius: 20px 20px 0 0;
    margin-top: auto;
  }
  .nutr-live-macro-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* ═══════════════════════════════════════════════════════════════════════════
   ANDREA AI COACH — MASTERPORCELAIN DESIGN SYSTEM (Coach.css)
   - Harmonized with Home.jsx, Login.jsx & GymAuth.jsx
   - Luminous Porcelain Canvas with Ambient Warm Radiance
   - Adaptive Light / Dark Surfaces with Elegant Shadows
   - Responsive Touch Targets & Fluid Scrolling for Mobile, Tablet, Desktop
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --coach-font-display: 'Outfit', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --coach-font-body: 'Plus Jakarta Sans', 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Porcelain Palette */
  --coach-canvas-bg: #f8f8fa;
  --coach-card-bg: #ffffff;
  --coach-card-surface: #f9f9fc;
  --coach-card-raised: #f1f2f6;
  --coach-border-subtle: rgba(0, 0, 0, 0.07);
  --coach-border-light: rgba(0, 0, 0, 0.12);
  --coach-text-primary: #09090b;
  --coach-text-secondary: #475569;
  --coach-text-muted: #64748b;
  --coach-text-light: #94a3b8;

  --coach-red-primary: #e04040;
  --coach-red-gradient: linear-gradient(135deg, #ff4747 0%, #e04040 60%, #b82828 100%);
  --coach-red-glow: 0 8px 24px rgba(224, 64, 64, 0.25);

  --coach-bubble-ai-bg: #ffffff;
  --coach-bubble-ai-border: rgba(0, 0, 0, 0.08);
  --coach-bubble-ai-text: #09090b;
  --coach-bubble-ai-shadow: 0 4px 24px rgba(0, 0, 0, 0.04), 0 1px 4px rgba(0, 0, 0, 0.02);

  --coach-input-bg: #ffffff;
  --coach-input-border: rgba(0, 0, 0, 0.12);
  --coach-input-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);

  --coach-chip-bg: #ffffff;
  --coach-chip-border: rgba(0, 0, 0, 0.08);
  --coach-chip-text: #334155;
}

[data-theme="dark"] {
  --coach-canvas-bg: #0b0b10;
  --coach-card-bg: #14141f;
  --coach-card-surface: #1a1a28;
  --coach-card-raised: #222234;
  --coach-border-subtle: rgba(255, 255, 255, 0.08);
  --coach-border-light: rgba(255, 255, 255, 0.16);
  --coach-text-primary: #ffffff;
  --coach-text-secondary: #cbd5e1;
  --coach-text-muted: #94a3b8;
  --coach-text-light: #64748b;

  --coach-bubble-ai-bg: #161624;
  --coach-bubble-ai-border: rgba(255, 255, 255, 0.08);
  --coach-bubble-ai-text: #f8fafc;
  --coach-bubble-ai-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);

  --coach-input-bg: #141420;
  --coach-input-border: rgba(255, 255, 255, 0.14);
  --coach-input-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);

  --coach-chip-bg: #1a1a28;
  --coach-chip-border: rgba(255, 255, 255, 0.09);
  --coach-chip-text: #cbd5e1;
}

/* ── MAIN CONTAINER ──────────────────────────────────────────────── */
.coach-container {
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background-color: var(--coach-canvas-bg);
  background-image: 
    radial-gradient(ellipse at 85% 10%, rgba(255, 149, 0, 0.06) 0%, transparent 55%),
    radial-gradient(ellipse at 15% 20%, rgba(224, 64, 64, 0.05) 0%, transparent 50%);
  font-family: var(--coach-font-body);
  color: var(--coach-text-primary);
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .coach-container {
  background-image: 
    radial-gradient(ellipse at 85% 10%, rgba(255, 149, 0, 0.1) 0%, transparent 55%),
    radial-gradient(ellipse at 15% 20%, rgba(224, 64, 64, 0.12) 0%, transparent 50%);
}

.coach-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
  position: relative;
}

/* ── HEADER CARD / TOPBAR ────────────────────────────────────────── */
.coach-header {
  padding: 12px clamp(14px, 3vw, 24px);
  background: var(--coach-card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--coach-border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
  z-index: 10;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.02);
}

.coach-identity {
  display: flex;
  align-items: center;
  gap: 12px;
}

.coach-avatar-wrap {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--coach-card-raised);
  padding: 2px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
}

.coach-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  object-fit: cover;
}

.coach-avatar-pulse {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10b981;
  border: 2px solid var(--coach-card-bg);
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.6);
}

.coach-titles {
  display: flex;
  flex-direction: column;
}

.coach-title {
  font-family: var(--coach-font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: var(--coach-text-primary);
  line-height: 1.2;
  display: flex;
  align-items: center;
  gap: 6px;
}

.coach-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 9999px;
  background: rgba(224, 64, 64, 0.08);
  color: var(--coach-red-primary);
  letter-spacing: 0.5px;
}

.coach-status-sub {
  font-size: 11px;
  color: var(--coach-text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.coach-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.coach-status-dot.connected {
  background: #10b981;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.5);
}

.coach-status-dot.error {
  background: #ef4444;
}

.coach-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.coach-telemetry-pill {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--coach-text-secondary);
  background: var(--coach-card-raised);
  border: 1px solid var(--coach-border-subtle);
  padding: 6px 12px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.coach-telemetry-count {
  font-weight: 700;
  color: #10b981;
}

.coach-telemetry-count.warning {
  color: #ef4444;
}

.coach-upgrade-btn {
  background: var(--coach-red-gradient);
  color: #ffffff;
  border: none;
  font-family: var(--coach-font-display);
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 9999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: var(--coach-red-glow);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.coach-upgrade-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(224, 64, 64, 0.35);
}

/* ── MESSAGES SCROLL AREA ────────────────────────────────────────── */
.coach-messages-area {
  flex: 1;
  overflow-y: auto;
  padding: clamp(16px, 3vw, 24px) clamp(12px, 3.5vw, 24px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  scroll-behavior: smooth;
}

.coach-load-earlier {
  align-self: center;
  padding: 7px 16px;
  background: var(--coach-card-bg);
  border: 1px solid var(--coach-border-subtle);
  border-radius: 9999px;
  color: var(--coach-text-muted);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.coach-load-earlier:hover {
  color: var(--coach-text-primary);
  border-color: var(--coach-border-light);
  transform: translateY(-1px);
}

/* ── MESSAGE ROWS ────────────────────────────────────────────────── */
.coach-msg-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  animation: coachSlide 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.coach-msg-row.user {
  flex-direction: row-reverse;
}

.coach-msg-avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  flex-shrink: 0;
  overflow: hidden;
  margin-top: 2px;
}

.coach-user-avatar {
  background: var(--coach-red-gradient);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(224, 64, 64, 0.25);
}

.coach-msg-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: min(85%, 620px);
}

.coach-msg-row.user .coach-msg-col {
  align-items: flex-end;
}

.coach-sender-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--coach-text-muted);
  letter-spacing: 0.3px;
  padding: 0 4px;
}

/* ── AI BUBBLE ───────────────────────────────────────────────────── */
.coach-bubble-ai {
  background: var(--coach-bubble-ai-bg);
  border: 1px solid var(--coach-bubble-ai-border);
  border-radius: 6px 20px 20px 20px;
  padding: 16px 20px;
  color: var(--coach-bubble-ai-text);
  box-shadow: var(--coach-bubble-ai-shadow);
  line-height: 1.7;
}

/* ── USER BUBBLE ─────────────────────────────────────────────────── */
.coach-bubble-user {
  background: var(--coach-red-gradient);
  color: #ffffff;
  border-radius: 20px 6px 20px 20px;
  padding: 12px 18px;
  box-shadow: var(--coach-red-glow);
  font-size: 14.5px;
  line-height: 1.6;
}

/* ── FORMATTED CONTENT INSIDE AI BUBBLE ──────────────────────────── */
.ai-formatted-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ai-para {
  font-size: 14px;
  line-height: 1.75;
  color: var(--coach-text-secondary);
  margin: 0;
}

[data-theme="dark"] .ai-para {
  color: #e2e8f0;
}

.ai-strong {
  font-weight: 700;
  color: var(--coach-text-primary);
}

.ai-em {
  font-style: italic;
  color: var(--coach-text-muted);
}

.ai-heading {
  font-family: var(--coach-font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--coach-text-primary);
  margin-top: 10px;
  margin-bottom: 2px;
  letter-spacing: 0.1px;
}

.ai-section-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--coach-red-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 12px;
  margin-bottom: 4px;
}

.ai-bullet {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--coach-text-secondary);
  padding: 2px 0;
}

.ai-bullet-dot {
  color: var(--coach-red-primary);
  font-weight: 700;
  font-size: 12px;
  margin-top: 1px;
}

.ai-spacer {
  height: 8px;
}

.ai-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  font-weight: 600;
  color: var(--coach-red-primary);
  background: rgba(224, 64, 64, 0.08);
  border: 1px solid rgba(224, 64, 64, 0.2);
  border-radius: 6px;
  padding: 1px 7px;
  text-decoration: none;
  transition: all 0.15s ease;
  vertical-align: middle;
  margin: 0 2px;
}

.ai-link:hover {
  background: var(--coach-red-primary);
  color: #ffffff;
}

/* Evidence drawer */
.ai-evidence-box {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--coach-card-raised);
  border: 1px solid var(--coach-border-subtle);
}

.ai-evidence-toggle {
  background: transparent;
  border: none;
  font-size: 11px;
  font-weight: 700;
  color: var(--coach-text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  letter-spacing: 0.5px;
  padding: 0;
}

.ai-evidence-toggle:hover {
  color: var(--coach-text-primary);
}

.ai-evidence-content {
  margin-top: 8px;
  font-size: 12px;
  color: var(--coach-text-muted);
  line-height: 1.6;
  border-top: 1px solid var(--coach-border-subtle);
  padding-top: 8px;
}

/* ── THINKING SHIMMER ────────────────────────────────────────────── */
.coach-thinking-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  animation: coachSlide 0.25s ease-out forwards;
}

.coach-thinking-bubble {
  background: var(--coach-card-bg);
  border: 1px solid var(--coach-border-light);
  border-radius: 6px 18px 18px 18px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
}

.coach-dot-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--coach-red-primary);
  animation: dotPulse 1.2s infinite ease-in-out;
}

@keyframes dotPulse {
  0%, 100% { transform: scale(0.8); opacity: 0.4; }
  50% { transform: scale(1.3); opacity: 1; }
}

/* ── QUICK SUGGESTION CHIPS ──────────────────────────────────────── */
.coach-suggestions {
  margin-top: 8px;
}

.coach-suggestions-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--coach-text-muted);
  margin-bottom: 10px;
}

.coach-chips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.coach-chip {
  padding: 8px 16px;
  background: var(--coach-chip-bg);
  border: 1px solid var(--coach-chip-border);
  border-radius: 9999px;
  color: var(--coach-chip-text);
  font-family: var(--coach-font-body);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.coach-chip:hover {
  border-color: var(--coach-red-primary);
  color: var(--coach-red-primary);
  transform: translateY(-1.5px);
  box-shadow: 0 6px 14px rgba(224, 64, 64, 0.1);
}

/* ── BOTTOM INPUT BAR ────────────────────────────────────────────── */
.coach-input-wrapper {
  padding: 12px clamp(12px, 3vw, 24px) clamp(14px, 3vw, 20px);
  background: var(--coach-card-bg);
  border-top: 1px solid var(--coach-border-subtle);
  flex-shrink: 0;
  z-index: 10;
}

.coach-input-box {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  background: var(--coach-card-raised);
  border: 1px solid var(--coach-border-light);
  border-radius: 18px;
  padding: 8px 8px 8px 16px;
  box-shadow: var(--coach-input-shadow);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.coach-input-box:focus-within {
  border-color: var(--coach-red-primary);
  box-shadow: 0 0 0 3px rgba(224, 64, 64, 0.12);
}

.coach-textarea {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--coach-text-primary);
  font-family: var(--coach-font-body);
  font-size: 14px;
  line-height: 1.5;
  resize: none;
  max-height: 110px;
  padding: 6px 0;
}

.coach-textarea::placeholder {
  color: var(--coach-text-light);
}

.coach-send-btn {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--coach-red-gradient);
  border: none;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: var(--coach-red-glow);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.coach-send-btn:hover:not(:disabled) {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(224, 64, 64, 0.35);
}

.coach-send-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.coach-input-footnote {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  padding: 0 4px;
  font-size: 10.5px;
  color: var(--coach-text-muted);
}

/* ── ANIMATIONS ──────────────────────────────────────────────────── */
@keyframes coachSlide {
  0% { opacity: 0; transform: translateY(12px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ── RESPONSIVE ADAPTATIONS ──────────────────────────────────────── */
@media (max-width: 640px) {
  .coach-header {
    padding: 10px 14px;
  }
  
  .coach-titles .coach-status-sub {
    font-size: 10px;
  }

  .coach-telemetry-pill {
    padding: 4px 8px;
    font-size: 10px;
  }

  .coach-upgrade-btn {
    padding: 6px 12px;
    font-size: 11px;
  }

  .coach-bubble-ai {
    padding: 13px 15px;
    border-radius: 4px 16px 16px 16px;
  }

  .coach-msg-col {
    max-width: 88%;
  }

  .coach-chips-grid {
    flex-direction: column;
    gap: 6px;
  }

  .coach-chip {
    width: 100%;
    justify-content: flex-start;
  }
}
/* ═══════════════════════════════════════════════════════════════════════════
   MASTERCARD-INSPIRED DESIGN SYSTEM FOR DREAM PHYSIQUE AI (Home.css)
   - Luminous Porcelain & Radiant Color-Graded Luxury Surfaces (No Harsh Black Boxes!)
   - Geometric Grotesque Typography ('Outfit', 'Plus Jakarta Sans')
   - Floating Elevated Capsule Navbar
   - Dual Intersecting Biometric Kinetic Lenses ("Human Will" ✕ "Neural AI")
   - Smooth Scroll-Triggered Unfolding Phone Preview
   - Tactile Card Stacking & Smooth Reveal Transitions
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --mc-font-headline: 'Outfit', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --mc-font-body: 'Plus Jakarta Sans', 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Luminous Luxury Porcelain Palette */
  --mc-canvas-bg: #f8f8fa;
  --mc-card-bg: #ffffff;
  --mc-card-surface: #f9f9fc;
  --mc-card-raised: #f1f2f6;
  --mc-pill-nav-bg: #ffffff;
  --mc-pill-nav-text: #09090b;
  --mc-pill-nav-border: rgba(0, 0, 0, 0.08);
  --mc-pill-nav-hover: rgba(0, 0, 0, 0.04);
  --mc-border-subtle: rgba(0, 0, 0, 0.07);
  --mc-border-light: rgba(0, 0, 0, 0.12);
  --mc-red-accent: #e04040;
  --mc-red-gradient: linear-gradient(135deg, #ff4747 0%, #e04040 60%, #b82828 100%);
  --mc-text-primary: #09090b;
  --mc-text-secondary: #475569;
  --mc-text-muted: #64748b;
  --mc-radius-card: 38px;
  --mc-radius-inner: 24px;
  --mc-radius-pill: 9999px;
  --mc-shadow-card: 0 20px 60px rgba(0, 0, 0, 0.05), 0 4px 16px rgba(0, 0, 0, 0.02);
  --mc-shadow-pill: 0 12px 30px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] {
  --mc-canvas-bg: #0b0b10;
  --mc-card-bg: #14141f;
  --mc-card-surface: #1a1a28;
  --mc-card-raised: #222234;
  --mc-pill-nav-bg: #181824;
  --mc-pill-nav-text: #ffffff;
  --mc-pill-nav-border: rgba(255, 255, 255, 0.14);
  --mc-pill-nav-hover: rgba(255, 255, 255, 0.08);
  --mc-border-subtle: rgba(255, 255, 255, 0.08);
  --mc-border-light: rgba(255, 255, 255, 0.16);
  --mc-text-primary: #ffffff;
  --mc-text-secondary: #a1a1aa;
  --mc-text-muted: #71717a;
  --mc-shadow-card: 0 30px 80px rgba(0, 0, 0, 0.6), 0 4px 16px rgba(0, 0, 0, 0.4);
  --mc-shadow-pill: 0 16px 40px rgba(0, 0, 0, 0.35), 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* ── WRAPPER & AMBIENT COLOR GRADED CANVAS ── */
.dl-home {
  background-color: var(--mc-canvas-bg);
  background-image: 
    radial-gradient(ellipse at 85% 12%, rgba(255, 149, 0, 0.08) 0%, transparent 55%),
    radial-gradient(ellipse at 15% 25%, rgba(224, 64, 64, 0.07) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 65%, rgba(46, 204, 113, 0.05) 0%, transparent 60%);
  font-family: var(--mc-font-body);
  color: var(--mc-text-primary);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  padding: 12px 12px 24px;
}

[data-theme="dark"] .dl-home {
  background-image: 
    radial-gradient(ellipse at 85% 12%, rgba(255, 149, 0, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse at 15% 25%, rgba(224, 64, 64, 0.14) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 65%, rgba(46, 204, 113, 0.08) 0%, transparent 60%);
}

@media (min-width: 1024px) {
  .dl-home {
    padding: 16px 20px 32px;
  }
}

/* ── COMMON SECTION STRUCTURE (Radiant Color-Graded Luxury Cards) ── */
.dl-section {
  max-width: 1360px;
  margin: 28px auto;
  border-radius: var(--mc-radius-card);
  background: linear-gradient(180deg, #ffffff 0%, #fbfbfe 100%);
  border: 1px solid var(--mc-border-subtle);
  box-shadow: var(--mc-shadow-card);
  overflow: hidden;
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

[data-theme="dark"] .dl-section {
  background: radial-gradient(ellipse at 85% 20%, rgba(255, 149, 0, 0.12) 0%, transparent 60%),
              radial-gradient(ellipse at 15% 35%, rgba(224, 64, 64, 0.1) 0%, transparent 55%),
              linear-gradient(180deg, #1f1f2e 0%, #171724 100%);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.45);
}

.dl-section.show {
  opacity: 1;
  transform: translateY(0);
}

/* ── HERO SECTION (Luminous Porcelain Canvas with Warm Gradient) ── */
.dl-hero {
  max-width: 1360px;
  margin: 0 auto 28px;
  border-radius: var(--mc-radius-card);
  background: radial-gradient(ellipse at 85% 20%, rgba(255, 149, 0, 0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 15% 35%, rgba(224, 64, 64, 0.07) 0%, transparent 55%),
              linear-gradient(180deg, #ffffff 0%, #fafafc 100%);
  border: 1px solid var(--mc-border-subtle);
  box-shadow: var(--mc-shadow-card);
  overflow: hidden;
  position: relative;
  min-height: 94vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-theme="dark"] .dl-hero {
  background: radial-gradient(ellipse at 85% 20%, rgba(255, 149, 0, 0.16) 0%, transparent 60%),
              radial-gradient(ellipse at 15% 35%, rgba(224, 64, 64, 0.14) 0%, transparent 55%),
              linear-gradient(180deg, #1e1e2d 0%, #151522 100%);
  border-color: rgba(255, 255, 255, 0.12);
}

.dl-hero.show {
  opacity: 1;
  transform: translateY(0);
}

/* ── FLOATING PILL NAVBAR ── */
.dl-nav {
  position: fixed;
  top: 24px;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  pointer-events: none;
  padding: 0 16px;
  transition: all 0.35s ease;
}

.dl-nav-inner {
  pointer-events: auto;
  width: 100%;
  max-width: 1220px;
  height: 68px;
  border-radius: var(--mc-radius-pill);
  background: var(--mc-pill-nav-bg);
  color: var(--mc-pill-nav-text);
  border: 1px solid var(--mc-pill-nav-border);
  box-shadow: var(--mc-shadow-pill);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px 0 24px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.dl-nav.solid .dl-nav-inner {
  transform: translateY(-4px) scale(0.99);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
}

/* Brand Logo inside Pill */
.dl-nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  text-decoration: none;
}

.dl-nav-logo img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: contain;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.dl-nav-logo-text {
  font-family: var(--mc-font-headline);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--mc-pill-nav-text);
  display: flex;
  align-items: center;
  gap: 4px;
}

.dl-nav-logo-text .accent {
  color: var(--mc-red-accent);
  font-weight: 800;
}

/* Pill Navigation Links (Center) */
.mc-nav-links {
  display: none;
  align-items: center;
  gap: 8px;
}

@media (min-width: 920px) {
  .mc-nav-links {
    display: flex;
  }
}

.mc-nav-link {
  font-family: var(--mc-font-headline);
  font-size: 14px;
  font-weight: 500;
  color: var(--mc-pill-nav-text);
  opacity: 0.88;
  padding: 8px 16px;
  border-radius: var(--mc-radius-pill);
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.mc-nav-link:hover {
  opacity: 1;
  background: var(--mc-pill-nav-hover);
  transform: translateY(-1px);
}

/* Right Nav Actions */
.dl-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Circular Search/Action Button */
.mc-circle-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: transparent;
  color: var(--mc-pill-nav-text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

[data-theme="dark"] .mc-circle-btn {
  border-color: rgba(255, 255, 255, 0.2);
}

.mc-circle-btn:hover {
  background: rgba(0, 0, 0, 0.06);
  transform: scale(1.05);
}

[data-theme="dark"] .mc-circle-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Theme Toggle inside Pill */
.mc-theme-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(0, 0, 0, 0.03);
  color: var(--mc-pill-nav-text);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

[data-theme="dark"] .mc-theme-btn {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
}

.mc-theme-btn:hover {
  background: rgba(0, 0, 0, 0.06);
  transform: scale(1.05);
}

/* Pill CTA Buttons */
.dl-btn-primary {
  padding: 10px 22px;
  background: #09090b;
  color: #ffffff;
  border: none;
  border-radius: var(--mc-radius-pill);
  font-family: var(--mc-font-headline);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.dl-btn-primary:hover {
  background: var(--mc-red-accent);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(224, 64, 64, 0.3);
}

.dl-btn-ghost {
  padding: 10px 18px;
  background: transparent;
  color: var(--mc-pill-nav-text);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: var(--mc-radius-pill);
  font-family: var(--mc-font-headline);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
}

[data-theme="dark"] .dl-btn-ghost {
  border-color: rgba(255, 255, 255, 0.2);
}

.dl-btn-ghost:hover {
  background: var(--mc-pill-nav-hover);
  border-color: rgba(0, 0, 0, 0.25);
  transform: translateY(-1px);
}

.dl-nav-user {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 5px 12px 5px 6px;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--mc-radius-pill);
  transition: all 0.2s ease;
}

.dl-nav-user:hover {
  background: rgba(0, 0, 0, 0.07);
  transform: translateY(-1px);
}

.dl-nav-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--mc-red-accent);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

.dl-nav-user span {
  font-size: 13px;
  font-weight: 600;
  color: var(--mc-pill-nav-text);
}

/* ── HERO BACKGROUND & VECTORS ── */
.dl-hero-bg-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  z-index: 0;
  opacity: 0.12;
  filter: saturate(1.1);
}

[data-theme="dark"] .dl-hero-bg-image {
  opacity: 0.25;
}

.dl-hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 75% 30%, rgba(224, 64, 64, 0.05) 0%, transparent 60%),
              linear-gradient(to bottom, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.85) 60%, #ffffff 100%);
  z-index: 0;
}

[data-theme="dark"] .dl-hero-bg-overlay {
  background: radial-gradient(circle at 75% 30%, rgba(224, 64, 64, 0.08) 0%, transparent 60%),
              linear-gradient(to bottom, rgba(16, 16, 24, 0.3) 0%, rgba(16, 16, 24, 0.85) 60%, #161624 100%);
}

.mc-hero-arc {
  position: absolute;
  top: 0;
  right: 0;
  width: 65%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.8;
}

.dl-hero-grid {
  position: relative;
  z-index: 2;
  max-width: 1260px;
  margin: 0 auto;
  padding: clamp(110px, 14vw, 150px) 24px 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

.dl-hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 900px;
}

.mc-hero-kicker {
  font-family: var(--mc-font-headline);
  font-size: clamp(20px, 3.2vw, 34px);
  font-weight: 500;
  color: var(--mc-text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  opacity: 0.95;
}

/* Modern Statement Container & 3D Interactive Canvas */
.mc-statement-container {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 6px 0 16px;
  cursor: pointer;
  perspective: 1200px;
  transform-style: preserve-3d;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.mc-statement-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 130%;
  background: radial-gradient(ellipse at center, rgba(224, 64, 64, 0.12) 0%, rgba(255, 149, 0, 0.08) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(35px);
  animation: statementGlowPulse 4s ease-in-out infinite alternate;
}

@keyframes statementGlowPulse {
  0% { opacity: 0.55; transform: translate(-50%, -50%) scale(0.96); }
  100% { opacity: 0.95; transform: translate(-50%, -50%) scale(1.08); }
}

.mc-statement-badge {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--mc-radius-pill);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(224, 64, 64, 0.22);
  box-shadow: 0 4px 18px rgba(224, 64, 64, 0.08);
  font-family: var(--mc-font-headline);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #e04040;
  margin-bottom: 14px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s ease;
}

[data-theme="dark"] .mc-statement-badge {
  background: rgba(28, 28, 40, 0.85);
  border-color: rgba(224, 64, 64, 0.35);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.mc-statement-container:hover .mc-statement-badge {
  border-color: rgba(224, 64, 64, 0.55);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(224, 64, 64, 0.18);
}

.mc-statement-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2ecc71;
  box-shadow: 0 0 8px #2ecc71;
  animation: dl-pulse 1.6s ease-in-out infinite;
}

.dl-hero-title {
  position: relative;
  z-index: 2;
  font-family: var(--mc-font-headline);
  font-size: clamp(42px, 7.5vw, 88px);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 0.98;
  margin-bottom: 12px;
  text-transform: uppercase;
}

/* Line 1: WE HATE (Liquid Chromium Sheen) */
.dl-headline-hate {
  display: block;
  position: relative;
  color: #09090b;
  background: linear-gradient(
    115deg,
    #09090b 20%,
    #475569 40%,
    #e2e8f0 50%,
    #475569 60%,
    #09090b 80%
  );
  background-size: 240% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: metallicLightSweep 4.5s ease-in-out infinite;
  transition: letter-spacing 0.3s ease;
}

[data-theme="dark"] .dl-headline-hate {
  background: linear-gradient(
    115deg,
    #ffffff 20%,
    #94a3b8 40%,
    #ffffff 50%,
    #64748b 60%,
    #ffffff 80%
  );
  background-size: 240% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

@keyframes metallicLightSweep {
  0% { background-position: 120% 0; }
  55% { background-position: -40% 0; }
  100% { background-position: -40% 0; }
}

/* Line 2: HOSPITALS (Fluid Gradient + Heartbeat Pulse) */
.dl-headline-hospitals-wrap {
  display: block;
  position: relative;
  margin-top: 8px;
}

.dl-headline-hospitals {
  display: inline-block;
  position: relative;
  background: linear-gradient(
    135deg,
    #ff3333 0%,
    #e04040 25%,
    #ff8a00 50%,
    #e04040 75%,
    #ff3333 100%
  );
  background-size: 260% 260%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: 
    hospitalGradientFlow 5s ease-in-out infinite,
    cardiacHeartbeat 2.8s ease-in-out infinite;
  filter: drop-shadow(0 14px 38px rgba(224, 64, 64, 0.35));
  transform-origin: center center;
  transition: filter 0.3s ease;
}

@keyframes hospitalGradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes cardiacHeartbeat {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 12px 35px rgba(224, 64, 64, 0.3));
  }
  14% {
    transform: scale(1.036);
    filter: drop-shadow(0 18px 48px rgba(224, 64, 64, 0.65)) drop-shadow(0 0 22px rgba(255, 149, 0, 0.45));
  }
  26% {
    transform: scale(1);
    filter: drop-shadow(0 12px 35px rgba(224, 64, 64, 0.3));
  }
  38% {
    transform: scale(1.022);
    filter: drop-shadow(0 16px 42px rgba(224, 64, 64, 0.5));
  }
  50% {
    transform: scale(1);
    filter: drop-shadow(0 12px 35px rgba(224, 64, 64, 0.3));
  }
}

/* Biometric EKG Cardiac Lifeline */
.mc-ekg-line-container {
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 22px;
  pointer-events: none;
  overflow: visible;
}

.mc-ekg-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.mc-ekg-base-path {
  stroke: rgba(224, 64, 64, 0.22);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

[data-theme="dark"] .mc-ekg-base-path {
  stroke: rgba(224, 64, 64, 0.3);
}

.mc-ekg-active-path {
  stroke: url(#ekgPulseGradient);
  stroke-width: 3.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 90 450;
  stroke-dashoffset: 540;
  animation: ekgDashFlow 2.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  filter: drop-shadow(0 0 8px rgba(255, 80, 80, 0.85));
}

@keyframes ekgDashFlow {
  0% { stroke-dashoffset: 540; }
  100% { stroke-dashoffset: -90; }
}

.mc-ekg-photon-glow {
  position: absolute;
  top: 50%;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 12px 3px #ff3838, 0 0 24px 6px #ff8a00;
  transform: translateY(-50%);
  animation: photonTravel 2.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  pointer-events: none;
}

@keyframes photonTravel {
  0% { left: 0%; opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

.mc-statement-container:hover .dl-headline-hospitals {
  animation-duration: 3s, 1.6s;
  filter: drop-shadow(0 18px 55px rgba(224, 64, 64, 0.75)) drop-shadow(0 0 35px rgba(255, 149, 0, 0.5));
}

.dl-hero-subtitle {
  font-family: var(--mc-font-headline);
  font-size: clamp(14px, 2.2vw, 18px);
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--mc-text-primary);
  margin-bottom: 24px;
}

.dl-hero-desc {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 24px 28px;
  border-radius: var(--mc-radius-inner);
  border: 1px solid rgba(0, 0, 0, 0.08);
  margin-bottom: 34px;
  max-width: 740px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .dl-hero-desc {
  background: rgba(24, 24, 34, 0.7);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.dl-hero-desc p {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--mc-text-secondary);
}

.dl-hero-desc strong {
  color: var(--mc-text-primary);
  font-weight: 600;
}

.dl-hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 32px;
}

.dl-btn-primary.lg {
  padding: 16px 36px;
  font-size: 16px;
  font-weight: 600;
  background: var(--mc-red-gradient);
  box-shadow: 0 10px 28px rgba(224, 64, 64, 0.3);
}

.dl-btn-primary.lg:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 36px rgba(224, 64, 64, 0.4);
}

.dl-btn-ghost.lg.dl-btn-ghost-hero {
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 600;
  color: var(--mc-text-primary);
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

[data-theme="dark"] .dl-btn-ghost.lg.dl-btn-ghost-hero {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.dl-btn-ghost.lg.dl-btn-ghost-hero:hover {
  background: rgba(0, 0, 0, 0.07);
  transform: translateY(-2px);
}

.dl-hero-checks {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 24px;
}

.dl-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--mc-text-secondary);
  background: rgba(0, 0, 0, 0.02);
  padding: 6px 14px;
  border-radius: var(--mc-radius-pill);
  border: 1px solid var(--mc-border-subtle);
}

[data-theme="dark"] .dl-check {
  background: rgba(255, 255, 255, 0.04);
}

.dl-check-icon {
  color: #2ecc71;
  font-weight: 700;
}

.dl-trust-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.dl-trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--mc-text-muted);
  padding: 6px 16px;
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid var(--mc-border-subtle);
  border-radius: var(--mc-radius-pill);
}

[data-theme="dark"] .dl-trust-badge {
  background: rgba(255, 255, 255, 0.04);
}

.mc-media-pill {
  position: absolute;
  bottom: 28px;
  left: 32px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--mc-radius-pill);
  padding: 6px 12px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .mc-media-pill {
  background: rgba(20, 20, 28, 0.7);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}

.mc-media-btn {
  background: transparent;
  border: none;
  color: var(--mc-text-primary);
  opacity: 0.85;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.mc-media-btn:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.06);
  transform: scale(1.1);
}

[data-theme="dark"] .mc-media-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* ═══════════════════════════════════════════════════════════════════════════
   VFX: DUAL INTERSECTING KINETIC LENSES (Biometric Apertures)
   ═══════════════════════════════════════════════════════════════════════════ */
.mc-lens-tabs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--mc-radius-pill);
  margin-top: 36px;
  margin-bottom: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 10;
}

[data-theme="dark"] .mc-lens-tabs {
  background: rgba(24, 24, 34, 0.8);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.mc-lens-tab-btn {
  padding: 8px 18px;
  border-radius: var(--mc-radius-pill);
  border: none;
  background: transparent;
  font-family: var(--mc-font-headline);
  font-size: 13px;
  font-weight: 600;
  color: var(--mc-text-secondary);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 6px;
}

.mc-lens-tab-btn:hover {
  color: var(--mc-text-primary);
}

.mc-lens-tab-btn.active {
  background: var(--mc-red-gradient);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(224, 64, 64, 0.35);
}

.mc-lens-stage {
  perspective: 1200px;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mc-lens-duo-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s cubic-bezier(0.1, 0.9, 0.2, 1);
  transform-style: preserve-3d;
  width: 100%;
}

.mc-lens-duo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 480px;
  padding: 40px 0;
}

.mc-lens {
  position: relative;
  width: clamp(280px, 32vw, 420px);
  height: clamp(280px, 32vw, 420px);
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.04);
  border: 4px solid #ffffff;
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
  z-index: 2;
  cursor: pointer;
  background: #f4f4f7;
}

[data-theme="dark"] .mc-lens {
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.65);
  border-color: rgba(255, 255, 255, 0.15);
  background: #111116;
}

.mc-lens:hover {
  transform: scale(1.02);
}

.mc-lens.human-lens {
  margin-right: -80px;
  box-shadow: 0 0 0 3px rgba(224, 64, 64, 0.45), 0 25px 60px rgba(0, 0, 0, 0.12);
}

.mc-lens.neural-lens {
  margin-left: -80px;
  z-index: 3;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.45), 0 25px 60px rgba(0, 0, 0, 0.12);
}

.mc-lens-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.mc-lens:hover .mc-lens-media {
  transform: scale(1.06);
}

.mc-lens-fusion-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 154, 30, 0.45) 0%, rgba(224, 64, 64, 0.25) 50%, transparent 75%);
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 4;
  animation: pulse-core 3s ease-in-out infinite alternate;
}

[data-theme="dark"] .mc-lens-fusion-core {
  mix-blend-mode: screen;
}

@keyframes pulse-core {
  0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.6; }
  100% { transform: translate(-50%, -50%) scale(1.25); opacity: 0.95; }
}

.mc-orbit-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

.mc-orbit-ring.ring-scarlet {
  width: clamp(340px, 38vw, 490px);
  height: clamp(340px, 38vw, 490px);
  border: 1.5px dashed rgba(224, 64, 64, 0.4);
  left: 2%;
  animation: mc-spin 32s linear infinite;
}

.mc-orbit-ring.ring-amber {
  width: clamp(340px, 38vw, 490px);
  height: clamp(340px, 38vw, 490px);
  border: 1.5px dashed rgba(245, 158, 11, 0.45);
  right: 2%;
  animation: mc-spin-reverse 28s linear infinite;
}

@keyframes mc-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes mc-spin-reverse {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

.mc-trajectory-svg {
  position: absolute;
  inset: -60px;
  width: calc(100% + 120px);
  height: calc(100% + 120px);
  pointer-events: none;
  z-index: 5;
}

.mc-path-glow {
  stroke-dasharray: 12 16;
  animation: dash-flow 20s linear infinite;
}

@keyframes dash-flow {
  to { stroke-dashoffset: -1000; }
}

.mc-telemetry-badge {
  position: absolute;
  padding: 8px 16px;
  border-radius: var(--mc-radius-pill);
  font-family: var(--mc-font-headline);
  font-size: 11.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  white-space: nowrap;
  animation: float-telemetry 5s ease-in-out infinite;
  background: rgba(255, 255, 255, 0.95);
  color: #09090b;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .mc-telemetry-badge {
  background: rgba(18, 18, 24, 0.85);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.mc-telemetry-badge.pos-top-left { top: 10%; left: 0%; }
.mc-telemetry-badge.pos-bottom-right { bottom: 8%; right: 0%; animation-delay: -2.5s; }

@keyframes float-telemetry {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.mc-dot-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2ecc71;
  position: relative;
}

.mc-dot-pulse::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: #2ecc71;
  opacity: 0.4;
  animation: dl-pulse 2s infinite;
}

.mc-dot-pulse.amber { background: #f59e0b; }
.mc-dot-pulse.amber::after { background: #f59e0b; }
.mc-dot-pulse.scarlet { background: #e04040; }
.mc-dot-pulse.scarlet::after { background: #e04040; }

@media (max-width: 820px) {
  .mc-lens-duo { flex-direction: column; min-height: auto; }
  .mc-lens.human-lens { margin-right: 0; }
  .mc-lens.neural-lens { margin-left: 0; margin-top: -60px; }
  .mc-lens { width: 270px; height: 270px; }
  .mc-orbit-ring { display: none; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   SMOOTH SCROLL-TRIGGERED UNFOLDING PHONE PREVIEW SECTION
   ═══════════════════════════════════════════════════════════════════════════ */
.mc-scroll-phone-section {
  background: radial-gradient(ellipse at 50% 10%, rgba(224, 64, 64, 0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 85% 60%, rgba(255, 149, 0, 0.07) 0%, transparent 60%),
              linear-gradient(180deg, #ffffff 0%, #fafafc 100%);
  border: 1px solid rgba(224, 64, 64, 0.12);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 65px rgba(224, 64, 64, 0.04), 0 4px 20px rgba(0, 0, 0, 0.02);
}

[data-theme="dark"] .mc-scroll-phone-section {
  background: radial-gradient(ellipse at 50% 10%, rgba(224, 64, 64, 0.18) 0%, transparent 60%),
              radial-gradient(ellipse at 85% 60%, rgba(255, 149, 0, 0.12) 0%, transparent 60%),
              linear-gradient(180deg, #1f1f2e 0%, #161622 100%);
  border-color: rgba(224, 64, 64, 0.25);
  box-shadow: 0 30px 75px rgba(0, 0, 0, 0.5);
}

.mc-phone-scroll-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-top: 28px;
}

.mc-scroll-indicator-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 340px;
  margin-bottom: 20px;
}

.mc-scroll-indicator-label {
  font-family: var(--mc-font-headline);
  font-size: 12px;
  font-weight: 600;
  color: var(--mc-text-secondary);
  letter-spacing: 0.3px;
}

.mc-scroll-track {
  width: 100%;
  height: 5px;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 999px;
  overflow: hidden;
}

[data-theme="dark"] .mc-scroll-track {
  background: rgba(255, 255, 255, 0.12);
}

.mc-scroll-fill {
  height: 100%;
  background: var(--mc-red-gradient);
  border-radius: 999px;
  transition: width 0.15s ease-out;
}

.mc-scroll-phone-frame {
  width: 360px;
  max-width: 92vw;
  height: 640px;
  background: #ffffff;
  border-radius: 48px;
  border: 10px solid #edf0f5;
  box-shadow: 
    0 0 0 1px rgba(0, 0, 0, 0.06), 
    0 30px 80px rgba(0, 0, 0, 0.12), 
    0 0 50px rgba(224, 64, 64, 0.08);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease, box-shadow 0.4s ease;
  transform-style: preserve-3d;
}

[data-theme="dark"] .mc-scroll-phone-frame {
  background: #181826;
  border-color: #272738;
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.12), 
    0 35px 85px rgba(0, 0, 0, 0.6), 
    0 0 55px rgba(224, 64, 64, 0.18);
}

/* Phone Status Bar & Dynamic Island */
.dl-phone-status-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  color: var(--mc-text-primary);
  z-index: 30;
  pointer-events: none;
  background: transparent;
}

.dl-dynamic-island {
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 108px;
  height: 24px;
  background: #09090b;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  z-index: 35;
  transition: width 0.35s ease;
}

.dl-island-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2ecc71;
  box-shadow: 0 0 8px #2ecc71;
}

.dl-island-camera {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1e1e2d;
  border: 1px solid #334155;
}

.dl-chat-header {
  padding: 44px 18px 12px;
  border-bottom: 1px solid var(--mc-border-subtle);
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(180deg, #f8f9fd 0%, #ffffff 100%);
  position: relative;
  z-index: 10;
}

[data-theme="dark"] .dl-chat-header {
  background: linear-gradient(180deg, #202030 0%, #181826 100%);
}

.dl-chat-logo img {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.dl-chat-name {
  font-family: var(--mc-font-headline);
  font-size: 14px;
  font-weight: 700;
  color: var(--mc-text-primary);
  line-height: 1.2;
}

.dl-chat-status {
  font-size: 11px;
  color: #16a34a;
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
  margin-top: 1px;
}

.dl-chat-tag {
  margin-left: auto;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 4px 10px;
  border: 1px solid var(--mc-border-light);
  border-radius: var(--mc-radius-pill);
  color: var(--mc-text-muted);
  background: rgba(0, 0, 0, 0.02);
}

[data-theme="dark"] .dl-chat-tag {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  color: #a1a1aa;
}

/* Interactive Coach Chips */
.mc-phone-chips {
  display: flex;
  gap: 6px;
  padding: 8px 14px;
  background: #fbfbfe;
  border-bottom: 1px solid var(--mc-border-subtle);
  overflow-x: auto;
  scrollbar-width: none;
}

[data-theme="dark"] .mc-phone-chips {
  background: #1c1c2b;
}

.mc-phone-chip {
  padding: 4px 10px;
  border-radius: var(--mc-radius-pill);
  font-size: 10.5px;
  font-weight: 600;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--mc-text-secondary);
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.25s ease;
}

[data-theme="dark"] .mc-phone-chip {
  background: #242436;
  border-color: rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
}

.mc-phone-chip.active, .mc-phone-chip:hover {
  background: var(--mc-red-accent);
  color: #ffffff;
  border-color: var(--mc-red-accent);
  box-shadow: 0 2px 8px rgba(224, 64, 64, 0.25);
}

.dl-chat-body {
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  justify-content: flex-end;
  overflow-y: hidden;
  background: #fafafc;
}

[data-theme="dark"] .dl-chat-body {
  background: #141420;
}

.dl-chat-bubble {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.dl-chat-bubble.user { flex-direction: row-reverse; }
.dl-chat-bubble.show { opacity: 1; transform: translateY(0); }

.dl-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.dl-avatar img { width: 100%; height: 100%; object-fit: cover; }

.dl-user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #0f172a;
}

[data-theme="dark"] .dl-user-avatar {
  background: #272736;
  color: #ffffff;
}

.dl-message {
  max-width: 84%;
  padding: 10px 14px;
  font-size: 12px;
  line-height: 1.6;
  border-radius: 16px;
  white-space: pre-wrap;
  text-align: left;
}

.dl-message.assistant {
  background: #ffffff;
  color: #18181b;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-top-left-radius: 4px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
}

[data-theme="dark"] .dl-message.assistant {
  background: #222234;
  color: #f1f1f4;
  border-color: rgba(255, 255, 255, 0.1);
}

.dl-message.user {
  background: var(--mc-red-gradient);
  color: #ffffff;
  border-top-right-radius: 4px;
  box-shadow: 0 4px 16px rgba(224, 64, 64, 0.25);
}

.dl-chat-bubble-citation {
  margin-top: 6px;
  padding: 5px 10px;
  background: rgba(46, 204, 113, 0.1);
  border: 1px solid rgba(46, 204, 113, 0.25);
  border-radius: 8px;
  font-size: 10px;
  font-weight: 600;
  color: #16a34a;
}

/* Biometric Telemetry Bar inside Phone */
.mc-phone-telemetry {
  padding: 8px 14px;
  background: #f1f3f9;
  border-top: 1px solid var(--mc-border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-around;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--mc-text-secondary);
}

[data-theme="dark"] .mc-phone-telemetry {
  background: #1c1c2a;
  border-color: rgba(255, 255, 255, 0.08);
}

.mc-phone-telemetry-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.mc-phone-telemetry-item span {
  color: var(--mc-red-accent);
}

.dl-chat-footer {
  padding: 10px 14px;
  border-top: 1px solid var(--mc-border-subtle);
  background: #f9f9fc;
  display: flex;
  gap: 8px;
  align-items: center;
}

[data-theme="dark"] .dl-chat-footer {
  background: #1a1a28;
}

.dl-chat-input {
  flex: 1;
  padding: 8px 14px;
  background: #ffffff;
  border: 1px solid var(--mc-border-subtle);
  border-radius: var(--mc-radius-pill);
  font-size: 11.5px;
  color: var(--mc-text-muted);
  text-align: left;
}

[data-theme="dark"] .dl-chat-input {
  background: #242436;
}

.dl-chat-send {
  width: 32px;
  height: 32px;
  background: var(--mc-red-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(224, 64, 64, 0.3);
}

/* ═══════════════════════════════════════════════════════════════════════════
   BRIGHTER LUXURY COLOR GRADINGS FOR ALL REST OF SECTIONS
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── 3D VISUAL SHOWCASE SECTION ── */
.dl-3d-showcase {
  background: radial-gradient(ellipse at 50% 15%, rgba(255, 149, 0, 0.09) 0%, transparent 65%),
              radial-gradient(ellipse at 85% 65%, rgba(224, 64, 64, 0.07) 0%, transparent 60%),
              linear-gradient(180deg, #ffffff 0%, #fbfbfe 100%);
  border: 1px solid rgba(255, 149, 0, 0.16);
  box-shadow: 0 24px 60px rgba(255, 149, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.02);
}

[data-theme="dark"] .dl-3d-showcase {
  background: radial-gradient(ellipse at 50% 15%, rgba(255, 149, 0, 0.16) 0%, transparent 65%),
              linear-gradient(180deg, #1f1f2e 0%, #161622 100%);
  border-color: rgba(255, 149, 0, 0.25);
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.45);
}

/* ── EVIDENCE SECTION ── */
.dl-evidence-section {
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 20% 30%, rgba(46, 204, 113, 0.09) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 70%, rgba(224, 64, 64, 0.07) 0%, transparent 60%),
              linear-gradient(180deg, #ffffff 0%, #fafcfb 100%);
  border: 1px solid rgba(46, 204, 113, 0.16);
  box-shadow: 0 24px 60px rgba(46, 204, 113, 0.04), 0 4px 16px rgba(0, 0, 0, 0.02);
}

[data-theme="dark"] .dl-evidence-section {
  background: radial-gradient(ellipse at 20% 30%, rgba(46, 204, 113, 0.15) 0%, transparent 60%),
              linear-gradient(180deg, #1e1e2d 0%, #151522 100%);
  border-color: rgba(46, 204, 113, 0.25);
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.45);
}

.dl-evidence-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

@media (max-width: 850px) {
  .dl-evidence-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.dl-evidence-demo {
  width: 100%;
  max-width: 460px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--mc-radius-inner);
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06);
  min-height: 320px;
}

[data-theme="dark"] .dl-evidence-demo {
  background: #14141e;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.dl-evidence-chat {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.dl-evidence-msg {
  background: #f8f8fb;
  padding: 16px 20px;
  border-radius: 4px 18px 18px 18px;
  font-size: 14px;
  line-height: 1.6;
  border: 1px solid var(--mc-border-subtle);
  color: var(--mc-text-primary);
  flex: 1;
}

[data-theme="dark"] .dl-evidence-msg {
  background: #1c1c28;
}

.dl-evidence-tag-wrapper {
  margin-top: 14px;
  position: relative;
}

.dl-evidence-tag {
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--mc-radius-pill);
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--mc-text-secondary);
  display: inline-flex;
  cursor: pointer;
  transition: all 0.3s ease;
}

[data-theme="dark"] .dl-evidence-tag {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.dl-evidence-content-anim {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 20;
  margin-top: 8px;
  padding: 0 16px;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  font-size: 13px;
  line-height: 1.6;
  color: var(--mc-text-primary);
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease, padding 0.6s ease;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .dl-evidence-content-anim {
  background: #181824;
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.dl-evidence-citation-box {
  margin-top: 10px;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 8px;
  font-size: 11px;
}

[data-theme="dark"] .dl-evidence-citation-box {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

/* Evidence Animation States */
.phase-0 .dl-evidence-chat { opacity: 0; transform: translateY(15px); }
.phase-1 .dl-evidence-chat { opacity: 1; transform: translateY(0); transition: all 0.4s ease; }
.phase-2 .dl-evidence-chat { opacity: 1; transform: translateY(0); }
.phase-2 .dl-evidence-tag { opacity: 1; transform: translateY(0); }
.phase-3 .dl-evidence-chat { opacity: 1; transform: translateY(0); }
.phase-3 .dl-evidence-tag { opacity: 1; transform: translateY(0); background: rgba(224, 64, 64, 0.1); border-color: rgba(224, 64, 64, 0.3); color: var(--mc-red-accent); }
.phase-3 .dl-evidence-content-anim { max-height: 250px; opacity: 1; margin-top: 12px; padding: 14px; }
.phase-4 { opacity: 0; transition: opacity 0.6s ease; }

.dl-floating-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.dl-floating-img-wrapper {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0.35;
  transition: opacity 0.4s ease;
}

.dl-floating-img-wrapper:hover { opacity: 0.7; }

.dl-ai-img {
  width: 270px;
  height: 170px;
  object-fit: cover;
  border-radius: var(--mc-radius-inner);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .dl-ai-img {
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.dl-ai-img-label {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 6px 16px;
  border-radius: var(--mc-radius-pill);
  font-size: 11px;
  font-weight: 600;
  color: var(--mc-text-primary);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .dl-ai-img-label {
  background: rgba(18, 18, 24, 0.8);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.12);
}

.dl-floating-img-wrapper.card-1 { top: 10%; left: -4%; animation: roam-1 30s ease-in-out infinite alternate; }
.dl-floating-img-wrapper.card-2 { top: 55%; right: -4%; animation: roam-2 35s ease-in-out infinite alternate-reverse; }
.dl-floating-img-wrapper.card-3 { bottom: 5%; left: 35%; animation: roam-3 32s ease-in-out infinite alternate; }

@keyframes roam-1 {
  0% { transform: translate(0, 0) rotate(-2deg); }
  100% { transform: translate(15vw, 10vh) rotate(3deg); }
}
@keyframes roam-2 {
  0% { transform: translate(0, 0) rotate(2deg); }
  100% { transform: translate(-20vw, -15vh) rotate(-4deg); }
}
@keyframes roam-3 {
  0% { transform: translate(0, 0) rotate(-1deg); }
  100% { transform: translate(10vw, -10vh) rotate(2deg); }
}

/* ── HOW IT WORKS ── */
.dl-how {
  background: radial-gradient(ellipse at 75% 20%, rgba(255, 149, 0, 0.06) 0%, transparent 55%),
              linear-gradient(180deg, #fafafc 0%, #ffffff 100%);
  border: 1px solid var(--mc-border-subtle);
}

[data-theme="dark"] .dl-how {
  background: radial-gradient(ellipse at 75% 20%, rgba(255, 149, 0, 0.12) 0%, transparent 60%),
              linear-gradient(180deg, #1e1e2d 0%, #161622 100%);
  border-color: rgba(255, 255, 255, 0.1);
}

.dl-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(20px, 3vw, 32px);
}

.dl-step-card {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--mc-border-subtle);
  border-radius: var(--mc-radius-inner);
  padding: 38px 30px;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

[data-theme="dark"] .dl-step-card {
  background: #191924;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.dl-step-card:hover {
  transform: translateY(-6px);
  border-color: var(--mc-border-light);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.06);
}

.dl-step-number {
  position: absolute;
  top: -1px;
  left: 24px;
  font-family: var(--mc-font-headline);
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  background: var(--mc-red-accent);
  padding: 6px 14px;
  border-radius: 0 0 10px 10px;
}

.dl-step-icon {
  color: var(--mc-red-accent);
  margin-bottom: 18px;
  display: inline-block;
  transition: transform 0.3s ease;
}

.dl-step-card:hover .dl-step-icon { transform: scale(1.15) rotate(-4deg); }

.dl-step-card h3 {
  font-family: var(--mc-font-headline);
  font-size: 20px;
  font-weight: 700;
  color: var(--mc-text-primary);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.dl-step-card p {
  font-size: 14.5px;
  color: var(--mc-text-secondary);
  line-height: 1.65;
}

.dl-step-connector {
  position: relative;
  height: 2px;
  background: var(--mc-border-subtle);
  margin: 36px 15% 0;
  opacity: 0.5;
}

.dl-connector-line {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, var(--mc-red-accent), transparent);
  animation: dl-shimmer 3s infinite;
}

.dl-connector-dot {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mc-border-light);
}

/* ── SMART TRACKING & RECOVERY ── */
.dl-fitbod-feature {
  background: radial-gradient(ellipse at 80% 30%, rgba(224, 64, 64, 0.06) 0%, transparent 60%),
              linear-gradient(180deg, #ffffff 0%, #f9f9fc 100%);
  border: 1px solid var(--mc-border-subtle);
}

[data-theme="dark"] .dl-fitbod-feature {
  background: radial-gradient(ellipse at 80% 30%, rgba(224, 64, 64, 0.14) 0%, transparent 60%),
              linear-gradient(180deg, #1f1f2e 0%, #161622 100%);
  border-color: rgba(255, 255, 255, 0.1);
}

.dl-fitbod-feature.alt {
  background: radial-gradient(ellipse at 20% 30%, rgba(46, 204, 113, 0.06) 0%, transparent 60%),
              linear-gradient(180deg, #fafafc 0%, #ffffff 100%);
  border: 1px solid var(--mc-border-subtle);
}

[data-theme="dark"] .dl-fitbod-feature.alt {
  background: radial-gradient(ellipse at 20% 30%, rgba(46, 204, 113, 0.12) 0%, transparent 60%),
              linear-gradient(180deg, #1d1d2b 0%, #151520 100%);
  border-color: rgba(255, 255, 255, 0.1);
}

.dl-feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 8vw, 80px);
  align-items: center;
}

.dl-image-card {
  position: relative;
  border-radius: var(--mc-radius-inner);
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.08);
  transition: transform 0.4s ease;
}

[data-theme="dark"] .dl-image-card {
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.dl-image-card:hover { transform: translateY(-4px) scale(1.01); }

.dl-main-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 4/5;
  border-radius: var(--mc-radius-inner);
}

.dl-overlay-badge {
  position: absolute;
  background: var(--mc-red-accent);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: var(--mc-radius-pill);
  font-family: var(--mc-font-headline);
  font-weight: 600;
  font-size: 13.5px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 25px rgba(224, 64, 64, 0.35);
}

.dl-badge-top { top: 32px; left: -10px; z-index: 10; }

.dl-overlay-chart {
  position: absolute;
  bottom: -20px;
  left: 30px;
  background: #ffffff;
  padding: 22px;
  border-radius: var(--mc-radius-inner);
  border: 1px solid var(--mc-border-light);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08);
  width: 250px;
  z-index: 10;
}

[data-theme="dark"] .dl-overlay-chart {
  background: #191924;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
}

.dl-chart-header { margin-bottom: 20px; }
.dl-chart-title { font-size: 11.5px; color: var(--mc-text-muted); margin-bottom: 4px; }
.dl-chart-val {
  font-size: 32px; font-family: var(--mc-font-headline); font-weight: 800;
  color: var(--mc-text-primary); display: flex; align-items: baseline; gap: 6px;
}
.dl-chart-unit { font-size: 12px; color: var(--mc-text-muted); font-weight: 500; }
.dl-chart-svg { width: 100%; height: 60px; overflow: visible; position: relative; z-index: 2; }
.dl-chart-grid { position: absolute; bottom: 24px; left: 24px; right: 24px; height: 60px; z-index: 1; pointer-events: none; }
.dl-grid-line { position: absolute; left: 0; right: 0; border-bottom: 1px dashed var(--mc-border-subtle); }

.dl-muscle-badge {
  position: absolute;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--mc-border-light);
  padding: 10px 18px;
  border-radius: var(--mc-radius-pill);
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
  z-index: 10;
}

[data-theme="dark"] .dl-muscle-badge {
  background: rgba(23, 23, 30, 0.85);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.dl-muscle-badge.top { top: 28%; right: -20px; }
.dl-muscle-badge.bottom { bottom: 18%; left: -20px; }

.dl-muscle-icon { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--mc-border-subtle); overflow: hidden; }
.dl-muscle-name { font-family: var(--mc-font-headline); font-size: 13.5px; font-weight: 600; color: var(--mc-text-primary); }
.dl-muscle-stat { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: var(--mc-radius-pill); }
.dl-muscle-stat.green { color: #16a34a; background: rgba(46, 204, 113, 0.12); }
.dl-muscle-stat.red { color: var(--mc-red-accent); background: rgba(224, 64, 64, 0.12); }

@media (max-width: 900px) {
  .dl-feature-split { grid-template-columns: 1fr; }
  .dl-feature-split.reverse .dl-feature-copy { order: 2; }
  .dl-feature-split.reverse .dl-feature-visual { order: 1; }
}

/* ── STATS BAR ── */
.dl-stats-bar {
  max-width: 1360px;
  margin: 28px auto;
  border-radius: var(--mc-radius-card);
  background: linear-gradient(180deg, #ffffff 0%, #fbfbfe 100%);
  border: 1px solid var(--mc-border-subtle);
  box-shadow: var(--mc-shadow-card);
  overflow: hidden;
}

[data-theme="dark"] .dl-stats-bar {
  background: radial-gradient(ellipse at 50% 10%, rgba(255, 149, 0, 0.12) 0%, transparent 60%),
              linear-gradient(180deg, #1f1f2e 0%, #171724 100%);
  border-color: rgba(255, 255, 255, 0.1);
}

.dl-stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(36px, 5vw, 54px) clamp(24px, 5vw, 64px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: clamp(20px, 3vw, 32px);
}

.dl-stat { text-align: center; opacity: 0; transform: translateY(16px); transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.dl-stat.show { opacity: 1; transform: translateY(0); }
.dl-stat-value {
  font-family: var(--mc-font-headline);
  font-size: clamp(38px, 5.5vw, 56px);
  font-weight: 800;
  color: var(--mc-text-primary);
  letter-spacing: -0.02em;
  line-height: 1;
}
.dl-stat-label { font-size: 13px; color: var(--mc-text-muted); margin-top: 8px; }

/* ── FEATURES ── */
.dl-features {
  background: radial-gradient(ellipse at 50% 10%, rgba(255, 149, 0, 0.06) 0%, transparent 60%),
              linear-gradient(180deg, #fafafc 0%, #ffffff 100%);
  border: 1px solid var(--mc-border-subtle);
}

[data-theme="dark"] .dl-features {
  background: radial-gradient(ellipse at 50% 10%, rgba(255, 149, 0, 0.14) 0%, transparent 60%),
              linear-gradient(180deg, #1f1f2e 0%, #161622 100%);
  border-color: rgba(255, 255, 255, 0.1);
}

.dl-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: clamp(16px, 2.5vw, 24px);
}

.dl-feature-card {
  position: relative;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--mc-border-subtle);
  border-radius: var(--mc-radius-inner);
  padding: 32px 26px;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

[data-theme="dark"] .dl-feature-card {
  background: #202030;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.dl-feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--mc-border-light);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.06);
}

.dl-feature-icon {
  color: var(--mc-red-accent);
  margin-bottom: 20px;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(224, 64, 64, 0.08);
  border-radius: 14px;
  transition: transform 0.3s ease;
}

.dl-feature-card:hover .dl-feature-icon { transform: scale(1.1); }
.dl-feature-card h3 { font-family: var(--mc-font-headline); font-size: 18px; font-weight: 700; color: var(--mc-text-primary); margin-bottom: 10px; }
.dl-feature-card p { font-size: 14px; color: var(--mc-text-secondary); line-height: 1.65; }

/* ── TESTIMONIALS ── */
.dl-testimonials {
  background: radial-gradient(ellipse at 30% 20%, rgba(224, 64, 64, 0.05) 0%, transparent 60%),
              linear-gradient(180deg, #ffffff 0%, #f9f9fc 100%);
  border: 1px solid var(--mc-border-subtle);
}

[data-theme="dark"] .dl-testimonials {
  background: radial-gradient(ellipse at 30% 20%, rgba(224, 64, 64, 0.12) 0%, transparent 60%),
              linear-gradient(180deg, #1e1e2d 0%, #151522 100%);
  border-color: rgba(255, 255, 255, 0.1);
}

.dl-testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(16px, 2.5vw, 24px);
}

.dl-testi-card {
  background: #ffffff;
  border: 1px solid var(--mc-border-subtle);
  border-radius: var(--mc-radius-inner);
  padding: 30px 26px;
  transition: all 0.35s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

[data-theme="dark"] .dl-testi-card {
  background: #202030;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.dl-testi-card:hover { transform: translateY(-4px); border-color: var(--mc-border-light); }
.dl-testi-stars { display: flex; gap: 4px; margin-bottom: 16px; }
.dl-testi-card p {
  font-size: 14.5px;
  color: var(--mc-text-secondary);
  line-height: 1.7;
  margin-bottom: 22px;
  font-style: italic;
}
.dl-testi-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dl-testi-name { font-family: var(--mc-font-headline); font-size: 14px; font-weight: 700; color: var(--mc-text-primary); }
.dl-testi-city { font-size: 12px; color: var(--mc-text-muted); }
.dl-testi-lift {
  font-size: 12px; font-weight: 600; color: var(--mc-red-accent);
  background: rgba(224, 64, 64, 0.08); padding: 4px 12px; border-radius: var(--mc-radius-pill);
  border: 1px solid rgba(224, 64, 64, 0.18);
}

/* ── PRICING CTA ── */
.dl-cta {
  background: radial-gradient(ellipse at 50% 0%, rgba(224, 64, 64, 0.12) 0%, transparent 75%),
              radial-gradient(ellipse at 85% 80%, rgba(255, 149, 0, 0.08) 0%, transparent 65%),
              linear-gradient(180deg, #ffffff 0%, #fbfbfe 100%);
  border: 1px solid rgba(224, 64, 64, 0.15);
}

[data-theme="dark"] .dl-cta {
  background: radial-gradient(ellipse at 50% 0%, rgba(224, 64, 64, 0.22) 0%, transparent 75%),
              radial-gradient(ellipse at 85% 80%, rgba(255, 149, 0, 0.14) 0%, transparent 65%),
              linear-gradient(180deg, #1e1e2d 0%, #151522 100%);
  border-color: rgba(224, 64, 64, 0.3);
}

.dl-cta-inner {
  max-width: 740px;
  margin: 0 auto;
  text-align: center;
  padding: clamp(64px, 8vw, 100px) 24px;
}

.dl-cta-desc {
  font-size: clamp(15px, 2vw, 17px);
  color: var(--mc-text-secondary);
  line-height: 1.7;
  margin-bottom: 38px;
}

.dl-cta-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── FOOTER ── */
.dl-footer {
  max-width: 1360px;
  margin: 28px auto 0;
  border-radius: var(--mc-radius-card);
  background: #f4f4f7;
  border: 1px solid var(--mc-border-subtle);
}

[data-theme="dark"] .dl-footer {
  background: #171724;
  border-color: rgba(255, 255, 255, 0.08);
}

.dl-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 36px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.dl-footer-brand { display: flex; align-items: center; gap: 10px; }
.dl-footer-brand img { width: 28px; height: 28px; border-radius: 50%; }
.dl-footer-brand span {
  font-family: var(--mc-font-headline); font-size: 15px; font-weight: 700;
  letter-spacing: -0.01em; color: var(--mc-text-primary);
}
.dl-footer-links { display: flex; gap: clamp(16px, 3vw, 32px); flex-wrap: wrap; }
.dl-footer-links span {
  font-size: 13.5px; color: var(--mc-text-muted); cursor: pointer; transition: color 0.2s;
}
.dl-footer-links span:hover { color: var(--mc-text-primary); }
.dl-footer-copy { font-size: 12px; color: var(--mc-text-muted); }

/* ── COMMON HEADERS & TITLES ── */
.dl-section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(64px, 7vw, 96px) clamp(24px, 5vw, 64px);
}

.dl-section-header { text-align: center; margin-bottom: clamp(40px, 6vw, 64px); }

.dl-section-tag {
  display: inline-block;
  font-family: var(--mc-font-headline);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--mc-red-accent);
  background: rgba(224, 64, 64, 0.08);
  border: 1px solid rgba(224, 64, 64, 0.2);
  padding: 6px 16px;
  border-radius: var(--mc-radius-pill);
  margin-bottom: 16px;
}

.dl-section-title {
  font-family: var(--mc-font-headline);
  font-size: clamp(32px, 5.5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--mc-text-primary);
  line-height: 1.08;
}

.gradient-text {
  background: var(--mc-red-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── SEARCH MODAL ── */
.mc-search-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 15vh;
  animation: fadeIn 0.2s ease;
}

.mc-search-modal-card {
  width: 90%;
  max-width: 600px;
  background: #ffffff;
  border: 1px solid var(--mc-border-light);
  border-radius: var(--mc-radius-inner);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

[data-theme="dark"] .mc-search-modal-card {
  background: #15151b;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8);
}

.mc-search-input-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--mc-border-subtle);
}

.mc-search-input {
  flex: 1;
  background: transparent;
  border: none;
  font-family: var(--mc-font-headline);
  font-size: 16px;
  color: var(--mc-text-primary);
  outline: none;
}

.mc-search-results {
  padding: 12px 16px;
  max-height: 300px;
  overflow-y: auto;
}

.mc-search-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--mc-text-primary);
  font-size: 14px;
}

.mc-search-item:hover {
  background: rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .mc-search-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes dl-shimmer { 0% { opacity: 0; } 50% { opacity: 1; } 100% { opacity: 0; } }
@keyframes dl-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  .dl-home { padding: 8px 8px 16px; }
  .dl-section, .dl-hero, .dl-stats-bar, .dl-footer { border-radius: 24px; margin-bottom: 16px; }
  .dl-nav-inner { height: 60px; padding: 0 14px; }
  .dl-hero-grid { padding: 90px 16px 40px; }
  .mc-media-pill { display: none; }
}
/* ═══════════════════════════════════════════════════════════════════════════
   PROGRAM INTAKE & ONBOARDING STUDIO (IntakeForm.css)
   - Luminous Porcelain Design System
   - Interactive Multi-Step Stepper & Adaptive Units Switcher
   - Tactile Goal Cards & Medical Profile Configuration
   - Native Light & Dark Mode ([data-theme="dark"])
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --if-font-display: 'Outfit', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --if-font-body: 'Plus Jakarta Sans', 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --if-font-mono: 'Share Tech Mono', monospace, ui-monospace;

  /* Porcelain Light Palette */
  --if-canvas-bg: #f8f8fa;
  --if-card-bg: #ffffff;
  --if-card-surface: #fbfbfe;
  --if-card-raised: #f1f2f6;
  --if-border-subtle: rgba(0, 0, 0, 0.07);
  --if-border-medium: rgba(0, 0, 0, 0.12);
  --if-text-primary: #09090b;
  --if-text-secondary: #475569;
  --if-text-muted: #64748b;
  --if-text-light: #94a3b8;

  --if-red-primary: #e04040;
  --if-red-gradient: linear-gradient(135deg, #ff4747 0%, #e04040 60%, #b82828 100%);
  --if-red-glow: 0 10px 28px rgba(224, 64, 64, 0.22);
  --if-red-tint: rgba(224, 64, 64, 0.06);

  --if-shadow-card: 0 20px 50px rgba(0, 0, 0, 0.05), 0 4px 12px rgba(0, 0, 0, 0.02);
  --if-shadow-elevated: 0 28px 70px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] {
  --if-canvas-bg: #0b0b10;
  --if-card-bg: #14141f;
  --if-card-surface: #1a1a28;
  --if-card-raised: #222234;
  --if-border-subtle: rgba(255, 255, 255, 0.08);
  --if-border-medium: rgba(255, 255, 255, 0.16);
  --if-text-primary: #ffffff;
  --if-text-secondary: #cbd5e1;
  --if-text-muted: #94a3b8;
  --if-text-light: #64748b;

  --if-red-tint: rgba(224, 64, 64, 0.14);
  --if-shadow-card: 0 24px 60px rgba(0, 0, 0, 0.5), 0 4px 16px rgba(0, 0, 0, 0.3);
  --if-shadow-elevated: 0 32px 80px rgba(0, 0, 0, 0.65);
}

/* ── PAGE CANVAS ─────────────────────────────────────────────────── */
.if-studio-page {
  min-height: calc(100vh - 65px);
  background-color: var(--if-canvas-bg);
  background-image: 
    radial-gradient(ellipse at 80% 5%, rgba(224, 64, 64, 0.07) 0%, transparent 45%),
    radial-gradient(ellipse at 15% 15%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 4vw, 48px) 16px;
  font-family: var(--if-font-body);
  box-sizing: border-box;
}

[data-theme="dark"] .if-studio-page {
  background-image: 
    radial-gradient(ellipse at 80% 5%, rgba(224, 64, 64, 0.14) 0%, transparent 45%),
    radial-gradient(ellipse at 15% 15%, rgba(59, 130, 246, 0.08) 0%, transparent 50%);
}

.if-form-wrapper {
  width: 100%;
  max-width: 580px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ── HEADER ──────────────────────────────────────────────────────── */
.if-header {
  text-align: center;
}

.if-kicker {
  font-family: var(--if-font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--if-red-primary);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.if-title {
  font-family: var(--if-font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 0 0 6px;
  color: var(--if-text-primary);
  line-height: 1.1;
}

.if-crimson-accent {
  background: var(--if-red-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.if-subtitle {
  font-size: 13px;
  color: var(--if-text-secondary);
}

/* ── STEPPER ─────────────────────────────────────────────────────── */
.if-stepper-box {
  display: flex;
  gap: 8px;
}

.if-step-node {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
}

.if-step-bar {
  height: 4px;
  border-radius: 999px;
  background: var(--if-card-raised);
  transition: background 0.3s ease;
}

.if-step-bar.active {
  background: var(--if-red-gradient);
  box-shadow: 0 0 10px rgba(224, 64, 64, 0.4);
}

.if-step-lbl {
  font-family: var(--if-font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--if-text-muted);
  transition: color 0.3s ease;
}

.if-step-lbl.active {
  color: var(--if-text-primary);
}

/* ── FORM CARD ───────────────────────────────────────────────────── */
.if-card {
  background: var(--if-card-bg);
  border: 1px solid var(--if-border-subtle);
  border-radius: 24px;
  padding: clamp(24px, 4vw, 36px);
  box-shadow: var(--if-shadow-card);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.if-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.if-field-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--if-text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.if-field-hint {
  font-size: 11px;
  color: var(--if-text-muted);
}

.if-input {
  width: 100%;
  padding: 13px 16px;
  background: var(--if-card-surface);
  border: 1px solid var(--if-border-subtle);
  border-radius: 12px;
  color: var(--if-text-primary);
  font-size: 14px;
  font-family: var(--if-font-body);
  outline: none;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.if-input:focus {
  border-color: var(--if-red-primary);
  background: var(--if-card-bg);
  box-shadow: 0 0 0 3px rgba(224, 64, 64, 0.1);
}

/* Unit switcher pills */
.if-unit-switcher {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}

.if-unit-btn {
  padding: 5px 14px;
  border-radius: 8px;
  font-family: var(--if-font-mono);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid var(--if-border-subtle);
  background: var(--if-card-raised);
  color: var(--if-text-secondary);
  transition: all 0.15s ease;
}

.if-unit-btn.active {
  background: var(--if-red-gradient);
  border-color: var(--if-red-primary);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(224, 64, 64, 0.25);
}

/* Gender / Segmented Switcher */
.if-segmented-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.if-segment-btn {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--if-border-subtle);
  background: var(--if-card-surface);
  color: var(--if-text-secondary);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
}

.if-segment-btn:hover {
  background: var(--if-card-raised);
  color: var(--if-text-primary);
}

.if-segment-btn.active {
  background: var(--if-red-tint);
  border-color: var(--if-red-primary);
  color: var(--if-red-primary);
  box-shadow: 0 2px 10px rgba(224, 64, 64, 0.15);
}

/* Goal selection cards */
.if-goals-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.if-goal-card {
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid var(--if-border-subtle);
  background: var(--if-card-surface);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all 0.2s ease;
  text-align: left;
}

.if-goal-card:hover {
  background: var(--if-card-raised);
  border-color: var(--if-border-medium);
}

.if-goal-card.active {
  background: var(--if-red-tint);
  border-color: var(--if-red-primary);
  box-shadow: 0 4px 16px rgba(224, 64, 64, 0.12);
}

.if-goal-title {
  font-family: var(--if-font-display);
  font-size: 15px;
  font-weight: 800;
  color: var(--if-text-primary);
}

.if-goal-card.active .if-goal-title {
  color: var(--if-red-primary);
}

.if-goal-desc {
  font-size: 12px;
  color: var(--if-text-muted);
  margin-top: 2px;
}

/* Activity Level cards */
.if-activity-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.if-activity-card {
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--if-border-subtle);
  background: var(--if-card-surface);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.15s ease;
}

.if-activity-card:hover {
  background: var(--if-card-raised);
}

.if-activity-card.active {
  background: var(--if-red-tint);
  border-color: var(--if-red-primary);
}

/* Confirm rows */
.if-confirm-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--if-border-subtle);
  font-size: 13px;
}

.if-confirm-key {
  font-family: var(--if-font-mono);
  font-size: 11px;
  color: var(--if-text-muted);
  letter-spacing: 0.5px;
}

.if-confirm-val {
  font-weight: 700;
  color: var(--if-text-primary);
  text-transform: capitalize;
}

/* Action Buttons */
.if-actions-row {
  display: flex;
  gap: 12px;
}

.if-btn-back {
  flex: 1;
  padding: 14px;
  background: var(--if-card-surface);
  border: 1px solid var(--if-border-subtle);
  border-radius: 14px;
  color: var(--if-text-secondary);
  font-family: var(--if-font-mono);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.if-btn-back:hover {
  background: var(--if-card-raised);
  color: var(--if-text-primary);
}

.if-btn-next {
  flex: 2;
  padding: 14px;
  background: var(--if-red-gradient);
  border: none;
  border-radius: 14px;
  color: #ffffff;
  font-family: var(--if-font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: var(--if-red-glow);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.if-btn-next:hover:not(:disabled) {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.if-btn-next:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Error message */
.if-error-msg {
  padding: 12px 16px;
  background: var(--if-red-tint);
  border: 1px solid rgba(224, 64, 64, 0.3);
  border-radius: 10px;
  color: var(--if-red-primary);
  font-size: 12px;
  font-family: var(--if-font-mono);
}
.pcc-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
}

.pcc-header {
  padding: 16px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pcc-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--red-hi);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
}

.pcc-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-family: var(--font-body);
}

.pcc-msg-wrapper {
  display: flex;
  width: 100%;
}

.pcc-msg-left { justify-content: flex-start; }
.pcc-msg-right { justify-content: flex-end; }

.pcc-msg-bubble {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
}

.ai-bubble {
  background: var(--raised);
  color: var(--white);
  border-bottom-left-radius: 4px;
  border: 1px solid var(--border-md);
}

.user-bubble {
  background: var(--red);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.pcc-input-area {
  display: flex;
  padding: 12px;
  background: rgba(255,255,255,0.02);
  border-top: 1px solid var(--border);
  gap: 8px;
}

.pcc-input {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border-md);
  color: var(--white);
  padding: 10px 14px;
  border-radius: 20px;
  font-size: 14px;
  outline: none;
  font-family: var(--font-body);
  transition: border-color 0.2s;
}

.pcc-input:focus {
  border-color: var(--red-hi);
}

.pcc-send-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: var(--red-hi);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.1s, opacity 0.2s;
}

.pcc-send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pcc-send-btn:not(:disabled):active {
  transform: scale(0.95);
}

/* Typing indicator dots */
.pcc-dot {
  width: 6px;
  height: 6px;
  background: var(--dim);
  border-radius: 50%;
  animation: pcc-bounce 1.4s infinite ease-in-out both;
}

@keyframes pcc-bounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

/* ── RESPONSIVE LAYOUT LOGIC ── */

/* Desktop mode */
.pcc-desktop-wrapper {
  display: block;
  height: calc(100vh - var(--page-y) * 2); /* Fit roughly to screen height */
  position: sticky;
  top: var(--page-y);
}

.mobile-only {
  display: none !important;
}

/* Mobile mode */
@media (max-width: 900px) {
  .pcc-desktop-wrapper {
    display: none !important;
  }
  
  .mobile-only {
    display: flex !important;
  }

  .pcc-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--red-hi);
    color: #fff;
    font-size: 24px;
    border: none;
    box-shadow: 0 4px 16px rgba(184, 50, 50, 0.4);
    z-index: 99;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  .pcc-mobile-drawer {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 100;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }

  /* Make container fill bottom sheet on mobile */
  .pcc-mobile-drawer .pcc-container {
    height: 80vh;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    margin-bottom: -20px; /* Pull to bottom edge */
    box-shadow: 0 -4px 24px rgba(0,0,0,0.3);
  }

  .pcc-close-btn {
    background: none;
    border: none;
    color: var(--dim);
    font-size: 20px;
    padding: 8px;
    cursor: pointer;
  }
}

@media (max-width: 900px) {
  .pcc-sidebar {
    width: 0 !important;
    flex-shrink: 1 !important;
  }
}/* ═══════════════════════════════════════════════════════════════════════════
   PROGRAM COMMAND CENTER & DASHBOARD (ProgramDashboard.css)
   - Luminous Porcelain Design System
   - Dual-Pane Widescreen Architecture (Program Deck + Andrea AI Coach Chat)
   - Interactive Macro Cards, Workout Splits, and Check-in Protocols
   - Native Light & Dark Mode ([data-theme="dark"])
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --pd-font-display: 'Outfit', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --pd-font-body: 'Plus Jakarta Sans', 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --pd-font-mono: 'Share Tech Mono', monospace, ui-monospace;

  /* Porcelain Light Palette */
  --pd-canvas-bg: #f8f8fa;
  --pd-card-bg: #ffffff;
  --pd-card-surface: #fbfbfe;
  --pd-card-raised: #f1f2f6;
  --pd-border-subtle: rgba(0, 0, 0, 0.07);
  --pd-border-medium: rgba(0, 0, 0, 0.12);
  --pd-text-primary: #09090b;
  --pd-text-secondary: #475569;
  --pd-text-muted: #64748b;
  --pd-text-light: #94a3b8;

  --pd-red-primary: #e04040;
  --pd-red-gradient: linear-gradient(135deg, #ff4747 0%, #e04040 60%, #b82828 100%);
  --pd-red-glow: 0 10px 28px rgba(224, 64, 64, 0.22);
  --pd-red-tint: rgba(224, 64, 64, 0.06);

  --pd-green-primary: #10b981;
  --pd-green-tint: rgba(16, 185, 129, 0.08);

  --pd-blue-primary: #3b82f6;
  --pd-blue-tint: rgba(59, 130, 246, 0.08);

  --pd-amber-primary: #f59e0b;
  --pd-amber-tint: rgba(245, 158, 11, 0.08);

  --pd-shadow-card: 0 16px 40px rgba(0, 0, 0, 0.04), 0 2px 6px rgba(0, 0, 0, 0.02);
  --pd-shadow-elevated: 0 24px 60px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.03);
}

[data-theme="dark"] {
  --pd-canvas-bg: #0b0b10;
  --pd-card-bg: #14141f;
  --pd-card-surface: #1a1a28;
  --pd-card-raised: #222234;
  --pd-border-subtle: rgba(255, 255, 255, 0.08);
  --pd-border-medium: rgba(255, 255, 255, 0.16);
  --pd-text-primary: #ffffff;
  --pd-text-secondary: #cbd5e1;
  --pd-text-muted: #94a3b8;
  --pd-text-light: #64748b;

  --pd-red-tint: rgba(224, 64, 64, 0.14);
  --pd-green-tint: rgba(16, 185, 129, 0.14);
  --pd-blue-tint: rgba(59, 130, 246, 0.14);
  --pd-amber-tint: rgba(245, 158, 11, 0.14);

  --pd-shadow-card: 0 20px 50px rgba(0, 0, 0, 0.5), 0 4px 16px rgba(0, 0, 0, 0.3);
  --pd-shadow-elevated: 0 28px 70px rgba(0, 0, 0, 0.65);
}

/* ── STUDIO CANVAS ────────────────────────────────────────────────── */
.pd-studio-page {
  padding: clamp(16px, 2.5vw, 32px) clamp(16px, 3vw, 40px);
  max-width: 1540px;
  width: 100%;
  margin: 0 auto;
  font-family: var(--pd-font-body);
  color: var(--pd-text-primary);
  background-color: var(--pd-canvas-bg);
  background-image: 
    radial-gradient(ellipse at 85% 6%, rgba(224, 64, 64, 0.06) 0%, transparent 45%),
    radial-gradient(ellipse at 15% 15%, rgba(16, 185, 129, 0.05) 0%, transparent 50%);
  min-height: calc(100vh - 65px);
  box-sizing: border-box;
}

[data-theme="dark"] .pd-studio-page {
  background-image: 
    radial-gradient(ellipse at 85% 6%, rgba(224, 64, 64, 0.12) 0%, transparent 45%),
    radial-gradient(ellipse at 15% 15%, rgba(16, 185, 129, 0.08) 0%, transparent 50%);
}

/* ── DUAL-PANE WIDESCREEN LAYOUT ─────────────────────────────────── */
.pd-dual-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
  align-items: start;
}

.pd-main-deck {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.pd-chat-column {
  position: sticky;
  top: 80px;
  max-height: calc(100vh - 100px);
}

/* ── PROGRAM HEADER ──────────────────────────────────────────────── */
.pd-header-card {
  background: var(--pd-card-bg);
  border: 1px solid var(--pd-border-subtle);
  border-radius: 22px;
  padding: 24px 28px;
  box-shadow: var(--pd-shadow-card);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.pd-badge-kicker {
  font-family: var(--pd-font-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--pd-red-primary);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pd-header-title {
  font-family: var(--pd-font-display);
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 0;
  line-height: 1.1;
  color: var(--pd-text-primary);
}

.pd-crimson-accent {
  background: var(--pd-red-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pd-header-summary {
  font-size: 13px;
  color: var(--pd-text-secondary);
  line-height: 1.6;
  max-width: 680px;
  margin-top: 4px;
}

.pd-phase-capsule {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--pd-card-surface);
  border: 1px solid var(--pd-border-medium);
  font-family: var(--pd-font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--pd-text-secondary);
}

/* Progress bar */
.pd-progress-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pd-progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--pd-font-mono);
  font-size: 11px;
  font-weight: 700;
}

.pd-progress-track {
  height: 8px;
  background: var(--pd-card-raised);
  border-radius: 999px;
  overflow: hidden;
}

.pd-progress-fill {
  height: 100%;
  background: var(--pd-red-gradient);
  border-radius: 999px;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 10px rgba(224, 64, 64, 0.4);
}

/* ── SEGMENTED NAVIGATION TABS ───────────────────────────────────── */
.pd-tabs-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.pd-tabs-nav::-webkit-scrollbar {
  display: none;
}

.pd-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 12px;
  background: var(--pd-card-bg);
  border: 1px solid var(--pd-border-subtle);
  color: var(--pd-text-secondary);
  font-family: var(--pd-font-display);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  box-shadow: var(--pd-shadow-card);
}

.pd-tab-btn:hover {
  background: var(--pd-card-surface);
  border-color: var(--pd-border-medium);
  color: var(--pd-text-primary);
}

.pd-tab-btn.active {
  background: var(--pd-red-gradient);
  border-color: var(--pd-red-primary);
  color: #ffffff;
  box-shadow: var(--pd-red-glow);
}

.pd-tab-btn.can-checkin {
  border-color: rgba(16, 185, 129, 0.4);
  color: var(--pd-green-primary);
}

/* ── MACRO ARCHITECTURE CARD ─────────────────────────────────────── */
.pd-macro-card {
  background: var(--pd-card-bg);
  border: 1px solid var(--pd-border-subtle);
  border-radius: 22px;
  padding: 24px;
  box-shadow: var(--pd-shadow-card);
}

.pd-macro-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 16px;
}

.pd-macro-col {
  background: var(--pd-card-surface);
  border: 1px solid var(--pd-border-subtle);
  border-radius: 16px;
  padding: 16px 14px;
  text-align: center;
}

.pd-macro-val {
  font-family: var(--pd-font-display);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  line-height: 1;
}

.pd-macro-unit {
  font-family: var(--pd-font-mono);
  font-size: 11px;
  color: var(--pd-text-muted);
  margin-top: 3px;
}

.pd-macro-lbl {
  font-family: var(--pd-font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-top: 4px;
  text-transform: uppercase;
}

.pd-macro-reasoning {
  margin-top: 18px;
  padding: 14px 18px;
  background: var(--pd-card-surface);
  border-left: 3px solid var(--pd-red-primary);
  border-radius: 12px;
  font-size: 13px;
  color: var(--pd-text-secondary);
  line-height: 1.6;
}

/* ── WORKOUT SPLIT VIEW ─────────────────────────────────────────── */
.pd-week-selector {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 20px;
  scrollbar-width: none;
}

.pd-week-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--pd-font-mono);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid var(--pd-border-subtle);
  background: var(--pd-card-bg);
  color: var(--pd-text-secondary);
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.pd-week-btn.active {
  background: var(--pd-red-gradient);
  border-color: var(--pd-red-primary);
  color: #ffffff;
  box-shadow: var(--pd-red-glow);
}

.pd-week-btn.completed {
  background: var(--pd-green-tint);
  border-color: rgba(16, 185, 129, 0.3);
  color: var(--pd-green-primary);
}

.pd-days-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pd-day-card {
  background: var(--pd-card-bg);
  border: 1px solid var(--pd-border-subtle);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--pd-shadow-card);
}

.pd-day-head {
  padding: 14px 20px;
  background: var(--pd-card-surface);
  border-bottom: 1px solid var(--pd-border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pd-day-title {
  font-family: var(--pd-font-display);
  font-size: 16px;
  font-weight: 700;
}

.pd-day-badge {
  font-family: var(--pd-font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 6px;
}

.pd-exercises-table {
  padding: 8px 20px 14px;
}

.pd-ex-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--pd-border-subtle);
  gap: 12px;
}

.pd-ex-row:last-child {
  border-bottom: none;
}

.pd-ex-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--pd-text-primary);
}

.pd-ex-notes {
  font-size: 12px;
  color: var(--pd-text-muted);
  margin-top: 2px;
}

.pd-ex-metrics {
  display: flex;
  gap: 12px;
  font-family: var(--pd-font-mono);
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

/* ── SUPPLEMENT STACK ────────────────────────────────────────────── */
.pd-supplements-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pd-supplement-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 20px;
  background: var(--pd-card-bg);
  border: 1px solid var(--pd-border-subtle);
  border-radius: 16px;
  box-shadow: var(--pd-shadow-card);
}

.pd-supp-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--pd-green-tint);
  color: var(--pd-green-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── CHECK-IN PROTOCOL ───────────────────────────────────────────── */
.pd-checkin-card {
  background: var(--pd-card-bg);
  border: 1px solid var(--pd-border-subtle);
  border-radius: 22px;
  padding: 24px;
  box-shadow: var(--pd-shadow-card);
}

.pd-form-group {
  margin-bottom: 18px;
}

.pd-form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--pd-text-primary);
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
}

.pd-input-text {
  width: 100%;
  padding: 12px 16px;
  background: var(--pd-card-surface);
  border: 1px solid var(--pd-border-subtle);
  border-radius: 12px;
  color: var(--pd-text-primary);
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
}

.pd-input-text:focus {
  border-color: var(--pd-red-primary);
}

.pd-submit-btn {
  width: 100%;
  padding: 14px;
  background: var(--pd-red-gradient);
  color: #ffffff;
  border: none;
  border-radius: 14px;
  font-family: var(--pd-font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: var(--pd-red-glow);
  transition: all 0.2s ease;
}

.pd-submit-btn:hover:not(:disabled) {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

/* ── EMPTY & COMPLETION STATES ───────────────────────────────────── */
.pd-empty-card {
  background: var(--pd-card-bg);
  border: 1px solid var(--pd-border-subtle);
  border-radius: 24px;
  padding: 60px 24px;
  text-align: center;
  box-shadow: var(--pd-shadow-card);
  max-width: 560px;
  margin: 40px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.pd-empty-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--pd-red-tint);
  color: var(--pd-red-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── RESPONSIVE ADAPTATIONS ─────────────────────────────────────── */
@media (max-width: 1100px) {
  .pd-dual-layout {
    grid-template-columns: 1fr;
  }
  .pd-chat-column {
    position: static;
    max-height: none;
  }
}

@media (max-width: 680px) {
  .pd-studio-page {
    padding: 16px 12px 60px;
  }
  .pd-macro-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* ═══════════════════════════════════════════════════════════════════════════
   BIOMECHANICAL FORM CORRECTION & KINETICS STUDIO (FormCorrection.css)
   - Luminous Porcelain Design System
   - Dual-Pane High-Precision Kinetic Stage & Movement Vault
   - 100% Responsive: Full Studio Command Center on Desktop, Fluid on Mobile
   - Native Light & Dark Mode ([data-theme="dark"])
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --fc-font-display: 'Outfit', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --fc-font-body: 'Plus Jakarta Sans', 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --fc-font-mono: 'Share Tech Mono', monospace, ui-monospace;

  /* Porcelain Light Mode Palette */
  --fc-canvas-bg: #f8f8fa;
  --fc-card-bg: #ffffff;
  --fc-card-surface: #fbfbfe;
  --fc-card-raised: #f1f2f6;
  --fc-border-subtle: rgba(0, 0, 0, 0.07);
  --fc-border-medium: rgba(0, 0, 0, 0.12);
  --fc-text-primary: #09090b;
  --fc-text-secondary: #475569;
  --fc-text-muted: #64748b;
  --fc-text-light: #94a3b8;

  --fc-red-primary: #e04040;
  --fc-red-gradient: linear-gradient(135deg, #ff4747 0%, #e04040 60%, #b82828 100%);
  --fc-red-glow: 0 10px 28px rgba(224, 64, 64, 0.22);
  --fc-red-tint: rgba(224, 64, 64, 0.06);

  --fc-shadow-card: 0 16px 40px rgba(0, 0, 0, 0.04), 0 2px 6px rgba(0, 0, 0, 0.02);
  --fc-shadow-elevated: 0 20px 50px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.03);
}

[data-theme="dark"] {
  --fc-canvas-bg: #0b0b10;
  --fc-card-bg: #14141f;
  --fc-card-surface: #1a1a28;
  --fc-card-raised: #222234;
  --fc-border-subtle: rgba(255, 255, 255, 0.08);
  --fc-border-medium: rgba(255, 255, 255, 0.16);
  --fc-text-primary: #ffffff;
  --fc-text-secondary: #cbd5e1;
  --fc-text-muted: #94a3b8;
  --fc-text-light: #64748b;

  --fc-red-tint: rgba(224, 64, 64, 0.12);
  --fc-shadow-card: 0 20px 50px rgba(0, 0, 0, 0.5), 0 4px 16px rgba(0, 0, 0, 0.3);
  --fc-shadow-elevated: 0 24px 60px rgba(0, 0, 0, 0.65);
}

/* ── STUDIO CANVAS ────────────────────────────────────────────────── */
.fc-studio-page {
  padding: clamp(16px, 2.5vw, 32px) clamp(16px, 3vw, 40px);
  max-width: 1540px;
  width: 100%;
  margin: 0 auto;
  font-family: var(--fc-font-body);
  color: var(--fc-text-primary);
  background-color: var(--fc-canvas-bg);
  background-image: 
    radial-gradient(ellipse at 80% 5%, rgba(224, 64, 64, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 15% 15%, rgba(59, 130, 246, 0.04) 0%, transparent 45%);
  min-height: calc(100vh - 65px);
  box-sizing: border-box;
}

[data-theme="dark"] .fc-studio-page {
  background-image: 
    radial-gradient(ellipse at 80% 5%, rgba(224, 64, 64, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 15% 15%, rgba(59, 130, 246, 0.08) 0%, transparent 45%);
}

/* ── HEADER ───────────────────────────────────────────────────────── */
.fc-command-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.fc-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.fc-header-icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--fc-red-tint);
  border: 1px solid rgba(224, 64, 64, 0.2);
  color: var(--fc-red-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(224, 64, 64, 0.15);
}

.fc-badge-kicker {
  font-family: var(--fc-font-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--fc-red-primary);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.fc-header-title {
  font-family: var(--fc-font-display);
  font-size: clamp(24px, 3.2vw, 36px);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 0;
  line-height: 1.1;
  color: var(--fc-text-primary);
}

.fc-crimson-accent {
  background: var(--fc-red-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.fc-header-sub {
  font-size: 13px;
  color: var(--fc-text-secondary);
  margin-top: 4px;
}

.fc-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fc-quota-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: var(--fc-card-bg);
  border: 1px solid var(--fc-border-medium);
  border-radius: 999px;
  font-family: var(--fc-font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: var(--fc-shadow-card);
}

.fc-quota-pill.pro {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.3);
  color: #10b981;
}

.fc-quota-pill.limit-warn {
  background: rgba(224, 64, 64, 0.08);
  border-color: rgba(224, 64, 64, 0.3);
  color: var(--fc-red-primary);
}

.fc-quota-dots {
  display: flex;
  gap: 4px;
}

.fc-quota-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--fc-card-raised);
}

.fc-quota-dot.used {
  background: var(--fc-red-primary);
  box-shadow: 0 0 6px rgba(224, 64, 64, 0.5);
}

.fc-quota-dot.available {
  background: #10b981;
}

.fc-upgrade-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--fc-red-gradient);
  color: #ffffff;
  border: none;
  border-radius: 999px;
  font-family: var(--fc-font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: var(--fc-red-glow);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.fc-upgrade-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

/* ── DUAL PANE STUDIO LAYOUT ─────────────────────────────────────── */
.fc-studio-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 28px;
  align-items: start;
}

/* ── LEFT PANE: MOVEMENT VAULT ───────────────────────────────────── */
.fc-vault-sidebar {
  background: var(--fc-card-bg);
  border: 1px solid var(--fc-border-subtle);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--fc-shadow-card);
  display: flex;
  flex-direction: column;
  height: calc(100vh - 120px);
  max-height: 860px;
  min-height: 580px;
  box-sizing: border-box;
  position: sticky;
  top: 80px;
  overflow: hidden;
}

.fc-vault-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
  margin-bottom: 14px;
}

.fc-vault-title {
  font-family: var(--fc-font-display);
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.fc-vault-count-badge {
  font-family: var(--fc-font-mono);
  font-size: 11px;
  background: var(--fc-card-raised);
  padding: 3px 8px;
  border-radius: 999px;
  color: var(--fc-text-muted);
  font-weight: 600;
}

/* Search Input */
.fc-search-box {
  position: relative;
  width: 100%;
  flex-shrink: 0;
  margin-bottom: 12px;
}

.fc-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--fc-text-muted);
  pointer-events: none;
}

.fc-search-input {
  width: 100%;
  padding: 12px 38px 12px 40px;
  background: var(--fc-card-surface);
  border: 1px solid var(--fc-border-subtle);
  border-radius: 12px;
  color: var(--fc-text-primary);
  font-family: var(--fc-font-body);
  font-size: 13px;
  box-sizing: border-box;
  outline: none;
  transition: all 0.2s ease;
}

.fc-search-input:focus {
  border-color: var(--fc-red-primary);
  background: var(--fc-card-bg);
  box-shadow: 0 0 0 3px rgba(224, 64, 64, 0.1);
}

.fc-search-clear {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--fc-text-muted);
  cursor: pointer;
  display: flex;
  padding: 4px;
  border-radius: 50%;
}

.fc-search-clear:hover {
  color: var(--fc-text-primary);
}

/* Muscle Group Filter Chips */
.fc-filter-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  flex-shrink: 0;
  padding: 2px 0 10px 0;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--fc-border-subtle);
  scrollbar-width: none;
}

.fc-filter-chips::-webkit-scrollbar {
  display: none;
}

.fc-filter-chip {
  flex-shrink: 0;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--fc-card-surface);
  border: 1px solid var(--fc-border-subtle);
  color: var(--fc-text-secondary);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  font-family: var(--fc-font-mono);
  box-sizing: border-box;
  line-height: normal;
}

.fc-filter-chip:hover {
  background: var(--fc-card-raised);
  color: var(--fc-text-primary);
}

.fc-filter-chip.active {
  background: var(--fc-red-primary);
  border-color: var(--fc-red-primary);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(224, 64, 64, 0.28);
}

/* Movement Card List */
.fc-exercise-list {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: var(--fc-border-medium) transparent;
}

.fc-exercise-list::-webkit-scrollbar {
  width: 4px;
}

.fc-exercise-list::-webkit-scrollbar-track {
  background: transparent;
}

.fc-exercise-list::-webkit-scrollbar-thumb {
  background: var(--fc-border-medium);
  border-radius: 4px;
}

.fc-exercise-card {
  flex-shrink: 0;
  min-height: 68px;
  padding: 12px 16px;
  background: var(--fc-card-surface);
  border: 1px solid var(--fc-border-subtle);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

.fc-exercise-card:hover {
  transform: translateY(-1px);
  background: var(--fc-card-raised);
  border-color: var(--fc-border-medium);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.fc-exercise-card.selected {
  background: var(--fc-card-bg);
  border-color: var(--fc-red-primary);
  box-shadow: 0 6px 20px rgba(224, 64, 64, 0.14);
}

.fc-exercise-card.selected::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--fc-red-gradient);
}

.fc-card-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  flex: 1;
}

.fc-card-name {
  font-family: var(--fc-font-display);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--fc-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fc-exercise-card.selected .fc-card-name {
  color: var(--fc-red-primary);
}

.fc-card-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.fc-badge-muscle {
  font-family: var(--fc-font-mono);
  font-size: 10px;
  padding: 2px 7px;
  background: var(--fc-card-raised);
  border-radius: 6px;
  color: var(--fc-text-secondary);
  font-weight: 600;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.fc-badge-equip {
  font-family: var(--fc-font-mono);
  font-size: 10px;
  padding: 2px 7px;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid var(--fc-border-subtle);
  border-radius: 6px;
  color: var(--fc-text-muted);
  line-height: 1.2;
}

[data-theme="dark"] .fc-badge-equip {
  background: rgba(255, 255, 255, 0.04);
}

.fc-card-arrow {
  color: var(--fc-text-muted);
  opacity: 0.6;
  flex-shrink: 0;
  margin-left: 8px;
  transition: all 0.2s ease;
}

.fc-exercise-card:hover .fc-card-arrow,
.fc-exercise-card.selected .fc-card-arrow {
  opacity: 1;
  color: var(--fc-red-primary);
  transform: translateX(3px);
}

.fc-card-locked {
  opacity: 0.6;
}

/* Limit banner in sidebar */
.fc-limit-banner {
  flex-shrink: 0;
  background: var(--fc-red-tint);
  border: 1px solid rgba(224, 64, 64, 0.25);
  border-radius: 14px;
  padding: 14px 16px;
  margin-top: 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fc-limit-banner-title {
  font-family: var(--fc-font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--fc-red-primary);
  letter-spacing: 1px;
}

.fc-limit-banner-desc {
  font-size: 12px;
  color: var(--fc-text-secondary);
  line-height: 1.4;
}

/* ── RIGHT PANE: KINETIC INSPECTION STAGE ────────────────────────── */
.fc-kinetic-stage {
  background: var(--fc-card-bg);
  border: 1px solid var(--fc-border-subtle);
  border-radius: 24px;
  padding: clamp(20px, 3.5vw, 36px);
  box-shadow: var(--fc-shadow-card);
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-height: 600px;
}

/* Stage Header */
.fc-stage-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--fc-border-subtle);
}

.fc-stage-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fc-stage-title {
  font-family: var(--fc-font-display);
  font-size: clamp(26px, 3.6vw, 42px);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 0;
  line-height: 1.1;
  color: var(--fc-text-primary);
}

.fc-stage-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.fc-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--fc-font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--fc-card-surface);
  border: 1px solid var(--fc-border-subtle);
  color: var(--fc-text-secondary);
}

.fc-meta-pill.highlight {
  background: var(--fc-red-tint);
  border-color: rgba(224, 64, 64, 0.2);
  color: var(--fc-red-primary);
}

.fc-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--fc-red-primary);
  box-shadow: 0 0 6px rgba(224, 64, 64, 0.6);
  animation: ping 1.8s infinite;
}

.fc-cinema-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 10px;
  background: var(--fc-card-surface);
  border: 1px solid var(--fc-border-subtle);
  color: var(--fc-text-secondary);
  font-family: var(--fc-font-mono);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.fc-cinema-link:hover {
  background: var(--fc-card-raised);
  border-color: var(--fc-border-medium);
  color: var(--fc-text-primary);
}

/* ── CINEMA VIDEO STAGE ─────────────────────────────────────────── */
.fc-video-container {
  position: relative;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--fc-shadow-elevated);
  background: #000000;
  border: 1px solid var(--fc-border-medium);
}

.fc-video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.fc-video-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.fc-video-topbar {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  z-index: 2;
}

.fc-video-tag {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 6px;
  font-family: var(--fc-font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── BIOMECHANICAL TELEMETRY CARDS ───────────────────────────────── */
.fc-telemetry-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.fc-telemetry-card {
  padding: 16px 18px;
  background: var(--fc-card-surface);
  border: 1px solid var(--fc-border-subtle);
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.fc-telemetry-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--fc-card-raised);
  color: var(--fc-red-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fc-telemetry-label {
  font-family: var(--fc-font-mono);
  font-size: 10px;
  color: var(--fc-text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.fc-telemetry-value {
  font-family: var(--fc-font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--fc-text-primary);
}

/* ── DEEP-DIVE GRID (PROTOCOL & FAULTS) ─────────────────────────── */
.fc-deepdive-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* Execution Protocol Card */
.fc-protocol-card {
  background: var(--fc-card-surface);
  border: 1px solid var(--fc-border-subtle);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.fc-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--fc-border-subtle);
}

.fc-section-title {
  font-family: var(--fc-font-display);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--fc-text-primary);
}

.fc-steps-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

.fc-step-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  position: relative;
}

.fc-step-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--fc-card-raised);
  border: 1px solid var(--fc-border-medium);
  color: var(--fc-text-primary);
  font-family: var(--fc-font-display);
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.fc-step-body {
  flex: 1;
  font-size: 13px;
  line-height: 1.6;
  color: var(--fc-text-secondary);
  padding-top: 3px;
}

/* Critical Faults Card */
.fc-faults-card {
  background: var(--fc-card-surface);
  border: 1px solid rgba(224, 64, 64, 0.2);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.fc-faults-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(224, 64, 64, 0.15);
}

.fc-faults-title {
  font-family: var(--fc-font-display);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--fc-red-primary);
}

.fc-fault-count-badge {
  font-family: var(--fc-font-mono);
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(224, 64, 64, 0.1);
  color: var(--fc-red-primary);
  font-weight: 700;
}

.fc-faults-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fc-fault-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  background: var(--fc-red-tint);
  border: 1px solid rgba(224, 64, 64, 0.18);
  border-radius: 12px;
}

.fc-fault-icon {
  color: var(--fc-red-primary);
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  margin-top: 2px;
}

.fc-fault-text {
  font-size: 13px;
  line-height: 1.5;
  color: var(--fc-text-secondary);
}

/* ── ANDREA AI BIOMECHANICAL CUE CARD ────────────────────────────── */
.fc-coach-banner {
  background: linear-gradient(135deg, rgba(224, 64, 64, 0.05) 0%, rgba(59, 130, 246, 0.05) 100%);
  border: 1px solid var(--fc-border-medium);
  border-radius: 16px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.fc-coach-avatar {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--fc-red-gradient);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(224, 64, 64, 0.25);
}

.fc-coach-text-wrap {
  flex: 1;
}

.fc-coach-kicker {
  font-family: var(--fc-font-mono);
  font-size: 10px;
  color: var(--fc-red-primary);
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 2px;
}

.fc-coach-advice {
  font-size: 13px;
  color: var(--fc-text-secondary);
  line-height: 1.5;
}

/* ── EMPTY STATE ─────────────────────────────────────────────────── */
.fc-empty-stage {
  padding: 80px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px;
}

.fc-empty-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--fc-card-surface);
  border: 1px solid var(--fc-border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fc-red-primary);
  box-shadow: var(--fc-shadow-card);
}

.fc-empty-title {
  font-family: var(--fc-font-display);
  font-size: 24px;
  font-weight: 800;
  margin: 0;
  color: var(--fc-text-primary);
}

.fc-empty-desc {
  font-size: 14px;
  color: var(--fc-text-muted);
  max-width: 360px;
  line-height: 1.6;
}

/* ── RESPONSIVE ADAPTATIONS ─────────────────────────────────────── */
@media (max-width: 1180px) {
  .fc-studio-layout {
    grid-template-columns: 320px 1fr;
    gap: 20px;
  }
  .fc-telemetry-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  .fc-studio-layout {
    grid-template-columns: 1fr;
  }
  .fc-vault-sidebar {
    position: static;
    height: auto;
    max-height: 520px;
  }
  .fc-deepdive-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .fc-studio-page {
    padding: 16px 12px 60px;
  }
  .fc-command-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .fc-header-right {
    width: 100%;
    justify-content: space-between;
  }
  .fc-vault-sidebar {
    padding: 16px;
    border-radius: 16px;
  }
  .fc-kinetic-stage {
    padding: 18px 14px;
    border-radius: 18px;
  }
}
/* ═══════════════════════════════════════════════════════════════════
   GYM AI ASSISTANT — Right sidebar slide-out chat panel
   ═══════════════════════════════════════════════════════════════════ */

.ga-ai-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  justify-content: flex-end;
  animation: ga-ai-fadein 0.2s ease-out;
}

@keyframes ga-ai-fadein {
  from { opacity: 0; }
  to { opacity: 1; }
}

.ga-ai-panel {
  width: 100%;
  max-width: 420px;
  background: #111;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  animation: ga-ai-slidein 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}

@keyframes ga-ai-slidein {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

/* ── Header ──────────────────────────────────────────────────────── */
.ga-ai-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.ga-ai-title {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ga-ai-title h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}
.ga-ai-title p {
  margin: 2px 0 0;
  font-size: 11px;
  color: #9aa0a6;
  letter-spacing: 0.5px;
}

.ga-ai-icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(26,115,232,0.2), rgba(138,180,248,0.2));
  color: #8ab4f8;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(138,180,248,0.2);
}

.ga-ai-close {
  background: none;
  border: none;
  color: #9aa0a6;
  cursor: pointer;
  padding: 4px;
  display: flex;
  transition: color 0.2s;
}
.ga-ai-close:hover {
  color: #fff;
}

/* ── Messages ────────────────────────────────────────────────────── */
.ga-ai-messages {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.ga-ai-messages::-webkit-scrollbar {
  width: 6px;
}
.ga-ai-messages::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
}

.ga-ai-msg-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  max-width: 90%;
}
.ga-ai-msg-row.user {
  margin-left: auto;
  flex-direction: row-reverse;
}

.ga-ai-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
}
.ga-ai-msg-row.assistant .ga-ai-avatar {
  background: rgba(26,115,232,0.15);
  color: #8ab4f8;
  border: 1px solid rgba(26,115,232,0.3);
}
.ga-ai-msg-row.user .ga-ai-avatar {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.ga-ai-msg-bubble {
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
  color: #e8eaed;
}
.ga-ai-msg-row.assistant .ga-ai-msg-bubble {
  background: rgba(255,255,255,0.05);
  border-top-left-radius: 4px;
}
.ga-ai-msg-row.user .ga-ai-msg-bubble {
  background: #1a73e8;
  color: #fff;
  border-top-right-radius: 4px;
}

/* Markdown formatting */
.ga-ai-p {
  margin-bottom: 8px;
}
.ga-ai-p:last-child {
  margin-bottom: 0;
}
.ga-ai-li {
  display: flex;
  margin-bottom: 6px;
  padding-left: 12px;
  position: relative;
}
.ga-ai-li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #8ab4f8;
}

/* Typing indicator */
.ga-ai-typing {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 14px 18px !important;
}
.ga-ai-dot {
  width: 5px;
  height: 5px;
  background: #8ab4f8;
  border-radius: 50%;
  animation: ga-ai-bounce 1.4s infinite ease-in-out both;
}
.ga-ai-dot:nth-child(1) { animation-delay: -0.32s; }
.ga-ai-dot:nth-child(2) { animation-delay: -0.16s; }
@keyframes ga-ai-bounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

/* ── Input Area ──────────────────────────────────────────────────── */
.ga-ai-input-area {
  padding: 20px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.2);
}

.ga-ai-suggestions {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.ga-ai-suggestions::-webkit-scrollbar { display: none; }
.ga-ai-suggestions button {
  background: rgba(26,115,232,0.1);
  border: 1px solid rgba(26,115,232,0.3);
  color: #8ab4f8;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s;
}
.ga-ai-suggestions button:hover {
  background: rgba(26,115,232,0.2);
}

.ga-ai-input-box {
  position: relative;
  display: flex;
  align-items: flex-end;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 4px;
  transition: border-color 0.2s;
}
.ga-ai-input-box:focus-within {
  border-color: #1a73e8;
}

.ga-ai-input-box textarea {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  padding: 10px 12px;
  resize: none;
  outline: none;
  min-height: 40px;
  max-height: 120px;
  line-height: 1.4;
}
.ga-ai-input-box textarea::placeholder {
  color: #5f6368;
}

.ga-ai-send {
  background: #1a73e8;
  color: #fff;
  border: none;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin: 4px;
  flex-shrink: 0;
  transition: background 0.2s;
}
.ga-ai-send:hover:not(:disabled) {
  background: #1557b0;
}
.ga-ai-send:disabled {
  background: rgba(255,255,255,0.1);
  color: #5f6368;
  cursor: not-allowed;
}
/* ═══════════════════════════════════════════════════════════════════
   GYM CRM — Google Workspace / Chat-Inspired Layout
   Font: Google Sans / Inter · Clean whites & subtle borders
   ═══════════════════════════════════════════════════════════════════ */


:root {
  --gc-bg:         #F0F8FF;
  --gc-surface:    #FFFFFF;
  --gc-border:     rgba(0, 0, 0, 0.05);
  --gc-text:       #2C3E50;
  --gc-text-2:     #546E7A;
  --gc-text-3:     #90A4AE;
  --gc-accent:     #FF6B6B;
  --gc-accent-dark: #E84141;
  --gc-accent-bg:  #FFE3E3;
  --gc-red:        #FF4757;
  --gc-red-bg:     #FFEAA7;
  --gc-green:      #2ED573;
  --gc-green-bg:   #E4F8ED;
  --gc-amber:      #FFA502;
  --gc-amber-bg:   #FFF2CC;
  --gc-purple:     #9B59B6;
  --gc-rail-w:     72px;
  --gc-sidebar-w:  256px;
  --gc-topbar-h:   64px;
  --gc-right-w:    300px;
  --gc-font:       'Nunito', -apple-system, sans-serif;
  --gc-font-heading: 'Nunito', sans-serif;
  --gc-radius:     24px;
  --gc-shadow:     0 8px 24px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] {
  --gc-bg:         #1E1E2E;
  --gc-surface:    #27293D;
  --gc-border:     rgba(255, 255, 255, 0.05);
  --gc-text:       #F8F9FA;
  --gc-text-2:     #B2BEC3;
  --gc-text-3:     #636E72;
  --gc-accent:     #00D2D3;
  --gc-accent-dark: #00A8A8;
  --gc-accent-bg:  rgba(0, 210, 211, 0.15);
  --gc-red:        #FF6B81;
  --gc-red-bg:     rgba(255, 107, 129, 0.15);
  --gc-green:      #7BED9F;
  --gc-green-bg:   rgba(123, 237, 159, 0.15);
  --gc-amber:      #ECCC68;
  --gc-amber-bg:   rgba(236, 204, 104, 0.15);
  --gc-purple:     #D980FA;
}

/* ── RESET ── */
.gcr * { box-sizing: border-box; margin: 0; padding: 0; }

/* ── SHELL ── */
.gcr {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  font-family: var(--gc-font);
  background: var(--gc-bg);
  color: var(--gc-text);
  font-size: 14px;
  line-height: 1.5;
}

/* ═══════════════════════════════════════
   TOP BAR (like Google Workspace header)
   ═══════════════════════════════════════ */
.gcr-topbar {
  height: var(--gc-topbar-h);
  background: var(--gc-surface);
  border-bottom: 1px solid var(--gc-border);
  display: flex;
  align-items: center;
  padding: 0 16px 0 0;
  gap: 8px;
  flex-shrink: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.gcr-topbar-logo {
  width: var(--gc-sidebar-w);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 16px;
  flex-shrink: 0;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.gcr-topbar-logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #e04040, #c42020);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.gcr-topbar-title {
  font-size: 18px;
  font-family: var(--gc-font-heading);
  font-weight: 500;
  color: var(--gc-text);
  letter-spacing: -0.2px;
  white-space: nowrap;
}

.gcr-topbar-title span {
  color: var(--gc-accent);
}

.gcr-search-bar {
  flex: 1;
  max-width: 640px;
  margin: 0 24px;
  position: relative;
  display: flex;
  align-items: center;
}

.gcr-search-bar input {
  width: 100%;
  height: 44px;
  background: var(--gc-bg);
  border: 1px solid var(--gc-border);
  border-radius: 24px;
  padding: 0 44px 0 46px;
  font-size: 14px;
  font-family: var(--gc-font);
  color: var(--gc-text);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

.gcr-search-bar input:focus {
  background: var(--gc-surface);
  border-color: var(--gc-accent);
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.15);
}

.gcr-search-bar input::placeholder {
  color: var(--gc-text-3);
}

.gcr-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gc-text-3);
  pointer-events: none;
  font-size: 15px;
  line-height: 1;
}

/* Clear Button (Close Button 'x') */
.gcr-search-clear {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gc-bg);
  border: 1px solid var(--gc-border);
  color: var(--gc-text-3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all 0.15s ease;
  z-index: 2;
}

.gcr-search-clear:hover {
  background: var(--gc-accent);
  border-color: var(--gc-accent);
  color: #ffffff;
  transform: translateY(-50%) scale(1.08);
}

/* Also style search clear within table search bar */
.gcr-search .gcr-search-clear {
  position: static;
  transform: none;
  flex-shrink: 0;
}

.gcr-search .gcr-search-clear:hover {
  transform: scale(1.08);
}

/* Dropdown overlay styling */
.gcr-search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  width: 100%;
  background: var(--gc-surface);
  border: 1px solid var(--gc-border);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16), 0 2px 10px rgba(0, 0, 0, 0.06);
  z-index: 1050;
  overflow: hidden;
  max-height: 460px;
  overflow-y: auto;
  animation: gcrDropdownFadeIn 0.15s ease-out;
  backdrop-filter: blur(12px);
}

@keyframes gcrDropdownFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.gcr-dropdown-section-title {
  padding: 10px 16px 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--gc-text-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--gc-bg);
  border-bottom: 1px solid var(--gc-border);
}

.gcr-dropdown-count {
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 10px;
  background: var(--gc-surface);
  color: var(--gc-text-2);
  border: 1px solid var(--gc-border);
}

.gcr-search-dropdown-item {
  padding: 10px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--gc-border);
  transition: background 0.15s ease;
}

.gcr-search-dropdown-item:last-child {
  border-bottom: none;
}

.gcr-search-dropdown-item:hover {
  background: var(--gc-bg);
}

.gcr-dropdown-info {
  flex: 1;
  min-width: 0;
}

.gcr-dropdown-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.gcr-dropdown-name {
  font-weight: 600;
  font-size: 13px;
  color: var(--gc-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gcr-dropdown-sub {
  font-size: 12px;
  color: var(--gc-text-3);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gcr-dropdown-action {
  font-size: 11px;
  font-weight: 600;
  color: var(--gc-accent);
  opacity: 0;
  transform: translateX(-4px);
  transition: all 0.15s ease;
  white-space: nowrap;
}

.gcr-search-dropdown-item:hover .gcr-dropdown-action {
  opacity: 1;
  transform: translateX(0);
}

.gcr-dropdown-empty {
  padding: 32px 20px;
  text-align: center;
}

.gcr-dropdown-footer {
  padding: 8px 16px;
  font-size: 11px;
  color: var(--gc-text-3);
  background: var(--gc-bg);
  border-top: 1px solid var(--gc-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gcr-topbar-spacer { flex: 1; }

.gcr-topbar-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.gcr-icon-btn-top {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--gc-text-2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: background 0.15s;
}

.gcr-icon-btn-top:hover {
  background: rgba(0,0,0,0.06);
}

[data-theme="dark"] .gcr-icon-btn-top:hover {
  background: rgba(255,255,255,0.08);
}

.gcr-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e04040;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-left: 4px;
  letter-spacing: 0;
}

/* ═══════════════════════════════════════
   BODY — rail + sidebar + content + right
   ═══════════════════════════════════════ */
.gcr-body {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* ═══════════════════════════════════════
   ICON RAIL (narrow left, like Gmail)
   ═══════════════════════════════════════ */
.gcr-rail {
  width: var(--gc-rail-w);
  background: var(--gc-surface);
  border-right: 1px solid var(--gc-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 0;
  gap: 2px;
  flex-shrink: 0;
  overflow-y: auto;
}

.gcr-rail-item {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  background: transparent;
  transition: all 0.15s;
  position: relative;
  color: var(--gc-text-2);
  gap: 2px;
  font-family: var(--gc-font);
}

.gcr-rail-item:hover {
  background: var(--gc-accent-bg);
  color: var(--gc-accent);
}

.gcr-rail-item.active {
  background: var(--gc-accent-bg);
  color: var(--gc-accent);
}

.gcr-rail-icon { font-size: 20px; line-height: 1; }
.gcr-rail-label { font-size: 9px; font-weight: 500; letter-spacing: 0.3px; text-transform: uppercase; }

.gcr-rail-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--gc-red);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 8px;
  min-width: 16px;
  text-align: center;
}

.gcr-rail-divider {
  width: 32px;
  height: 1px;
  background: var(--gc-border);
  margin: 6px 0;
}

/* ═══════════════════════════════════════
   LEFT SIDEBAR (nav + filters)
   ═══════════════════════════════════════ */
.gcr-sidebar {
  width: var(--gc-sidebar-w);
  background: var(--gc-surface);
  border-right: 1px solid var(--gc-border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow-y: auto;
  padding-bottom: 16px;
}

.gcr-sidebar-section {
  padding: 16px 12px 8px;
}

.gcr-sidebar-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--gc-text-3);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 0 12px;
  margin-bottom: 4px;
}

.gcr-sidebar-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 10px 16px;
  border: none;
  background: transparent;
  border-radius: 24px;
  cursor: pointer;
  text-align: left;
  font-family: var(--gc-font);
  font-size: 14px;
  font-weight: 500;
  color: var(--gc-text-2);
  transition: all 0.15s;
  position: relative;
}

.gcr-sidebar-btn:hover {
  background: rgba(0,0,0,0.05);
  color: var(--gc-text);
}

.gcr-sidebar-btn.active {
  background: var(--gc-accent-bg);
  color: var(--gc-accent);
  font-weight: 600;
}

[data-theme="dark"] .gcr-sidebar-btn:hover {
  background: rgba(255,255,255,0.06);
}

.gcr-sidebar-btn-icon { font-size: 17px; width: 22px; text-align: center; flex-shrink: 0; }

.gcr-sidebar-btn-badge {
  margin-left: auto;
  background: var(--gc-red-bg);
  color: var(--gc-red);
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 10px;
}

.gcr-sidebar-divider {
  height: 1px;
  background: var(--gc-border);
  margin: 8px 16px;
}

.gcr-add-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  margin: 16px 12px;
  background: var(--gc-accent);
  color: #fff;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-family: var(--gc-font-heading);
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 6px 0 var(--gc-accent-dark), 0 10px 20px rgba(0,0,0,0.15);
  transform: translateY(0);
}

.gcr-add-btn:hover {
  background: var(--gc-accent);
  box-shadow: 0 6px 0 var(--gc-accent-dark), 0 10px 20px rgba(0,0,0,0.2);
  transform: translateY(-2px);
}

.gcr-add-btn:active {
  box-shadow: 0 0 0 var(--gc-accent-dark), 0 4px 8px rgba(0,0,0,0.1);
  transform: translateY(6px);
}

.gcr-add-btn-icon {
  width: 28px;
  height: 28px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 400;
}

/* ═══════════════════════════════════════
   MAIN CONTENT
   ═══════════════════════════════════════ */
.gcr-main {
  flex: 1;
  overflow-y: auto;
  background: var(--gc-bg);
  display: flex;
  flex-direction: column;
}

.gcr-main-inner {
  padding: 24px 28px;
  flex: 1;
}

/* ── Demo Banner ── */
.gcr-demo-banner {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding: 12px 20px; margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(124,77,255,0.08), rgba(26,115,232,0.06));
  border: 1px solid rgba(124,77,255,0.2); border-radius: 12px;
  font-size: 13px; color: var(--gc-text-2);
}
.gcr-demo-banner-actions { display: flex; align-items: center; gap: 8px; }
.gcr-demo-activate {
  padding: 6px 16px; background: var(--gc-purple); color: #fff; border: none;
  border-radius: 20px; font-size: 12px; font-weight: 600; cursor: pointer;
  font-family: var(--gc-font); transition: all 0.2s;
}
.gcr-demo-activate:hover { filter: brightness(1.15); }
.gcr-demo-dismiss {
  width: 28px; height: 28px; background: none; border: none;
  color: var(--gc-text-3); cursor: pointer; font-size: 18px;
  display: flex; align-items: center; justify-content: center; border-radius: 50%;
  transition: background 0.15s;
}
.gcr-demo-dismiss:hover { background: rgba(0,0,0,0.06); }

/* ── Page Header ── */
.gcr-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}

.gcr-page-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--gc-text);
  letter-spacing: -0.3px;
}

.gcr-page-subtitle {
  font-size: 13px;
  color: var(--gc-text-3);
  margin-top: 2px;
}

.gcr-page-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* ── Stat Cards ── */
.gcr-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.gcr-stat {
  background: var(--gc-surface);
  border: 1px solid var(--gc-border);
  border-radius: 16px;
  padding: 20px;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
  cursor: default;
}

.gcr-stat:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

[data-theme="dark"] .gcr-stat:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.gcr-stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.gcr-stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.gcr-stat-delta {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 10px;
}

.gcr-stat-delta.up { background: var(--gc-green-bg); color: var(--gc-green); }
.gcr-stat-delta.down { background: var(--gc-red-bg); color: var(--gc-red); }

.gcr-stat-value {
  font-size: 30px;
  font-weight: 700;
  color: var(--gc-text);
  line-height: 1;
  letter-spacing: -0.5px;
  font-family: var(--gc-font);
}

.gcr-stat-label {
  font-size: 12px;
  color: var(--gc-text-3);
  margin-top: 6px;
  font-weight: 500;
}

/* ── Section ── */
.gcr-section { margin-bottom: 28px; }

.gcr-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.gcr-section-head h2 {
  font-size: 16px;
  font-weight: 600;
  color: var(--gc-text);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── Filters bar ── */
.gcr-filters-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.gcr-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: var(--gc-surface);
  border: 1px solid var(--gc-border);
  border-radius: 24px;
  flex: 1;
  max-width: 340px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.gcr-search:focus-within {
  border-color: var(--gc-accent);
  box-shadow: 0 0 0 3px rgba(26,115,232,0.12);
}

.gcr-search input {
  background: none;
  border: none;
  outline: none;
  color: var(--gc-text);
  font-size: 13px;
  width: 100%;
  font-family: var(--gc-font);
}

.gcr-search input::placeholder { color: var(--gc-text-3); }

.gcr-chip-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.gcr-chip {
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid var(--gc-border);
  background: var(--gc-surface);
  color: var(--gc-text-2);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--gc-font);
  transition: all 0.15s;
  white-space: nowrap;
}

.gcr-chip:hover { border-color: var(--gc-accent); color: var(--gc-accent); }
.gcr-chip.active { background: var(--gc-accent-bg); border-color: var(--gc-accent); color: var(--gc-accent); font-weight: 600; }

/* ── Table Card ── */
.gcr-card {
  background: var(--gc-surface);
  border: 1px solid var(--gc-border);
  border-radius: 16px;
  overflow: hidden;
}

.gcr-table-wrap {
  overflow-x: auto;
}

.gcr-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.gcr-table thead {
  border-bottom: 1px solid var(--gc-border);
}

.gcr-table th {
  padding: 12px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--gc-text-3);
  white-space: nowrap;
  background: var(--gc-surface);
}

.gcr-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--gc-border);
  vertical-align: middle;
  color: var(--gc-text);
}

.gcr-table tbody tr:last-child td { border-bottom: none; }

.gcr-table tbody tr {
  cursor: pointer;
  transition: background 0.1s;
}

.gcr-table tbody tr:hover {
  background: rgba(26,115,232,0.04);
}

.gcr-member-cell { display: flex; align-items: center; gap: 12px; }

.gcr-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, #e04040, #c42020);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; color: #fff; flex-shrink: 0;
  letter-spacing: 0;
}

.gcr-avatar.sm { width: 30px; height: 30px; font-size: 12px; }

.gcr-member-name { font-weight: 500; font-size: 13px; color: var(--gc-text); }
.gcr-member-sub  { font-size: 11px; color: var(--gc-text-3); margin-top: 1px; }

/* ── Status Pills ── */
.gcr-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 12px;
  font-size: 11px; font-weight: 600; white-space: nowrap;
}

.gcr-pill.active   { background: var(--gc-green-bg);  color: var(--gc-green); }
.gcr-pill.at_risk, .gcr-pill.at-risk { background: var(--gc-amber-bg); color: var(--gc-amber); }
.gcr-pill.inactive  { background: rgba(128,134,139,0.1); color: var(--gc-text-3); }
.gcr-pill.churned   { background: var(--gc-red-bg); color: var(--gc-red); }
.gcr-pill.expired   { background: rgba(128,134,139,0.1); color: var(--gc-text-3); }

/* ── Dropout Bar ── */
.gcr-bar-wrap { display: flex; align-items: center; gap: 8px; min-width: 100px; }
.gcr-bar-track {
  flex: 1; height: 6px; background: var(--gc-bg); border-radius: 3px; overflow: hidden;
}
.gcr-bar { height: 100%; border-radius: 3px; transition: width 0.4s; }
.gcr-bar-val { font-size: 12px; color: var(--gc-text-2); font-weight: 600; min-width: 26px; text-align: right; }

/* ── Row Actions ── */
.gcr-row-acts { display: flex; gap: 4px; }
.gcr-icon-btn {
  width: 32px; height: 32px; border-radius: 8px; border: 1px solid transparent;
  background: none; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.15s; font-size: 14px; color: var(--gc-text-3);
}
.gcr-icon-btn:hover { background: var(--gc-accent-bg); color: var(--gc-accent); border-color: var(--gc-accent); }
.gcr-icon-btn:disabled { opacity: 0.3; cursor: not-allowed; }

/* ── Empty State ── */
.gcr-empty { text-align: center; color: var(--gc-text-3); padding: 48px 20px; }

/* ── Pagination ── */
.gcr-pagination {
  display: flex; align-items: center; justify-content: flex-end; gap: 8px;
  padding: 14px 16px; border-top: 1px solid var(--gc-border);
  font-size: 12px; color: var(--gc-text-2);
}

.gcr-pagination button {
  padding: 6px 16px; background: var(--gc-surface); border: 1px solid var(--gc-border);
  color: var(--gc-text-2); border-radius: 20px; cursor: pointer; font-family: var(--gc-font);
  font-size: 12px; font-weight: 500; transition: all 0.15s;
}
.gcr-pagination button:hover:not(:disabled) {
  border-color: var(--gc-accent); color: var(--gc-accent);
}
.gcr-pagination button:disabled { opacity: 0.4; cursor: not-allowed; }

/* ── At-Risk Cards ── */
.gcr-risk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.gcr-risk-card {
  background: var(--gc-surface); border: 1px solid var(--gc-border);
  border-radius: 16px; padding: 16px; cursor: pointer; transition: all 0.2s;
}
.gcr-risk-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); transform: translateY(-2px); border-color: var(--gc-amber); }
.gcr-risk-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.gcr-risk-name { font-weight: 600; font-size: 14px; }
.gcr-risk-meta { font-size: 11px; color: var(--gc-text-3); margin-bottom: 12px; display: flex; gap: 12px; }
.gcr-risk-btns { display: flex; gap: 8px; }
.gcr-dropout { padding: 3px 10px; border-radius: 10px; font-size: 12px; font-weight: 700; }
.gcr-dropout.warn { background: var(--gc-amber-bg); color: var(--gc-amber); }
.gcr-dropout.crit { background: var(--gc-red-bg); color: var(--gc-red); }

/* ═══════════════════════════════════════
   RIGHT SIDEBAR (activity / quick info)
   ═══════════════════════════════════════ */
.gcr-right {
  width: var(--gc-right-w);
  background: var(--gc-surface);
  border-left: 1px solid var(--gc-border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow-y: auto;
}

.gcr-right-header {
  padding: 20px 20px 12px;
  border-bottom: 1px solid var(--gc-border);
}

.gcr-right-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--gc-text);
  letter-spacing: -0.1px;
}

.gcr-right-section {
  padding: 16px 20px;
  border-bottom: 1px solid var(--gc-border);
}

.gcr-right-section:last-child { border-bottom: none; }

.gcr-right-section-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--gc-text-3);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
}

.gcr-right-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--gc-border);
  font-size: 13px;
}

.gcr-right-stat:last-child { border-bottom: none; }
.gcr-right-stat-label { color: var(--gc-text-2); }
.gcr-right-stat-val { font-weight: 600; color: var(--gc-text); }

.gcr-quick-action {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--gc-border);
  background: var(--gc-bg);
  border-radius: 12px;
  cursor: pointer;
  font-family: var(--gc-font);
  font-size: 13px;
  font-weight: 500;
  color: var(--gc-text-2);
  transition: all 0.15s;
  text-align: left;
  margin-bottom: 8px;
}

.gcr-quick-action:last-child { margin-bottom: 0; }

.gcr-quick-action:hover {
  border-color: var(--gc-accent);
  color: var(--gc-accent);
  background: var(--gc-accent-bg);
}

.gcr-activity-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 8px 0;
  border-bottom: 1px solid var(--gc-border);
  font-size: 12px;
}

.gcr-activity-item:last-child { border-bottom: none; }

.gcr-activity-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
}

.gcr-activity-text { color: var(--gc-text-2); line-height: 1.5; }
.gcr-activity-time { color: var(--gc-text-3); font-size: 11px; margin-top: 2px; }

/* ═══════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════ */
.gcr-btn-primary {
  padding: 10px 24px;
  background: var(--gc-accent);
  color: #fff;
  border: none;
  border-radius: 30px;
  text-transform: uppercase;
  font-family: var(--gc-font-heading);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 0 var(--gc-accent-dark), 0 6px 15px rgba(0,0,0,0.1);
  transform: translateY(0);
}
.gcr-btn-primary:hover { 
  background: var(--gc-accent); 
  box-shadow: 0 4px 0 var(--gc-accent-dark), 0 8px 20px rgba(0,0,0,0.15); 
  transform: translateY(-2px); 
}
.gcr-btn-primary:active { 
  box-shadow: 0 0 0 var(--gc-accent-dark), 0 2px 5px rgba(0,0,0,0.1); 
  transform: translateY(4px); 
}
.gcr-btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.gcr-btn-ghost {
  padding: 8px 16px;
  background: var(--gc-surface);
  color: var(--gc-text-2);
  border: 1px solid var(--gc-border);
  border-radius: var(--gc-radius);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s;
  font-family: var(--gc-font);
}
.gcr-btn-ghost:hover { border-color: var(--gc-accent); color: var(--gc-accent); }

.gcr-btn-warn {
  padding: 6px 14px; border-radius: 16px; font-size: 12px; font-weight: 600;
  border: none; cursor: pointer; display: inline-flex; align-items: center; gap: 4px;
  background: var(--gc-amber-bg); color: var(--gc-amber); transition: all 0.2s; font-family: var(--gc-font);
}
.gcr-btn-warn:hover { filter: brightness(0.95); }
.gcr-btn-warn:disabled { opacity: 0.4; }

.gcr-btn-ok {
  padding: 6px 14px; border-radius: 16px; font-size: 12px; font-weight: 600;
  border: none; cursor: pointer; display: inline-flex; align-items: center; gap: 4px;
  background: var(--gc-green-bg); color: var(--gc-green); transition: all 0.2s; font-family: var(--gc-font);
}
.gcr-btn-ok:hover { filter: brightness(0.95); }

/* ── Trainer / Report cards ── */
.gcr-trainer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.gcr-trainer-card {
  background: var(--gc-surface); border: 1px solid var(--gc-border);
  border-radius: 16px; padding: 18px; transition: all 0.2s;
}
.gcr-trainer-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.gcr-trainer-card.inactive { opacity: 0.5; }
.gcr-trainer-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.gcr-trainer-name { font-weight: 600; font-size: 14px; }
.gcr-trainer-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--gc-text-3); margin-bottom: 10px; }
.gcr-trainer-meta strong { color: var(--gc-text); }
.gcr-trainer-specs { display: flex; flex-wrap: wrap; gap: 4px; }
.gcr-spec-tag {
  padding: 3px 10px; font-size: 11px; border-radius: 12px;
  background: rgba(124,77,255,0.08); color: var(--gc-purple); font-weight: 600; text-transform: capitalize;
}

.gcr-report-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 24px; }
.gcr-report-card {
  background: var(--gc-surface); border: 1px solid var(--gc-border);
  border-radius: 16px; padding: 20px; text-align: center; overflow: hidden; position: relative;
}
.gcr-report-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; border-radius: 2px; }
.gcr-report-card.green::before  { background: var(--gc-green); }
.gcr-report-card.red::before    { background: var(--gc-red); }
.gcr-report-card.blue::before   { background: var(--gc-accent); }
.gcr-report-card.cyan::before   { background: #0097a7; }
.gcr-report-card.purple::before { background: var(--gc-purple); }
.gcr-report-card.amber::before  { background: var(--gc-amber); }
.gcr-report-val { font-size: 28px; font-weight: 700; font-family: var(--gc-font-heading); color: var(--gc-text); }
.gcr-report-lbl { font-size: 11px; color: var(--gc-text-3); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 6px; font-weight: 500; }

.gcr-top-list { display: flex; flex-direction: column; gap: 6px; }
.gcr-top-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 16px;
  background: var(--gc-surface); border: 1px solid var(--gc-border);
  border-radius: 12px; font-size: 13px;
}
.gcr-top-rank { font-weight: 800; color: var(--gc-accent); min-width: 24px; }
.gcr-top-name { flex: 1; font-weight: 500; }
.gcr-top-visits { color: var(--gc-text-3); font-size: 12px; }

/* ── Progress bar (trainer load) ── */
.gcr-progress { height: 6px; background: var(--gc-bg); border-radius: 3px; overflow: hidden; margin-top: 6px; }
.gcr-progress-bar { height: 100%; border-radius: 3px; background: var(--gc-accent); transition: width 0.4s; }

/* ═══════════════════════════════════════
   MODAL
   ═══════════════════════════════════════ */
.gcr-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1000;
  display: flex; align-items: center; justify-content: center; padding: 16px;
  backdrop-filter: blur(4px); animation: gcr-fade 0.15s ease;
}
@keyframes gcr-fade { from { opacity: 0; } }
.gcr-modal {
  background: var(--gc-surface); border-radius: 24px; padding: 28px;
  max-width: 440px; width: 100%;
  box-shadow: 0 24px 64px rgba(0,0,0,0.18); animation: gcr-slide 0.2s ease;
}
@keyframes gcr-slide { from { transform: translateY(12px); opacity: 0; } }
.gcr-modal h2 { font-size: 20px; font-weight: 600; margin: 0 0 20px 0; color: var(--gc-text); letter-spacing: -0.3px; }

.gcr-label {
  display: block; font-size: 11px; font-weight: 600; color: var(--gc-text-3);
  margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.5px;
}
.gcr-label input, .gcr-label select {
  display: block; width: 100%; margin-top: 6px; padding: 10px 14px;
  background: var(--gc-bg); border: 1px solid var(--gc-border);
  border-radius: 10px; color: var(--gc-text); font-size: 14px; font-family: var(--gc-font);
  transition: border-color 0.2s, box-shadow 0.2s; box-sizing: border-box; outline: none;
}
.gcr-label input:focus, .gcr-label select:focus {
  border-color: var(--gc-accent); box-shadow: 0 0 0 3px rgba(26,115,232,0.12);
}
.gcr-form-err { color: var(--gc-red); font-size: 12px; background: var(--gc-red-bg); padding: 8px 14px; border-radius: 10px; margin-bottom: 14px; }
.gcr-modal-btns { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }

/* ── Spinners / utility ── */
.gcr-spinner {
  width: 36px; height: 36px; border: 3px solid var(--gc-border);
  border-top-color: var(--gc-accent); border-radius: 50%;
  animation: gcr-spin 0.7s linear infinite;
}
@keyframes gcr-spin { to { transform: rotate(360deg); } }
.gcr-center { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 60vh; gap: 16px; text-align: center; }
.gcr-cta-icon { font-size: 48px; margin-bottom: 8px; }
.gcr-cta-box { max-width: 440px; }
.gcr-cta-box h2 { font-size: 22px; font-weight: 600; font-family: var(--gc-font-heading); margin-bottom: 8px; color: var(--gc-text); }
.gcr-dim { color: var(--gc-text-3); }
.gcr-dim-sm { color: var(--gc-text-3); font-size: 12px; }
.gcr-badge-count {
  font-size: 11px; color: var(--gc-text-3); background: var(--gc-bg);
  padding: 3px 10px; border-radius: 12px; border: 1px solid var(--gc-border);
}
.gcr-sub-title { font-size: 14px; font-weight: 600; color: var(--gc-text); margin: 20px 0 12px; display: flex; align-items: center; gap: 8px; }
.gcr-info-row {
  display: flex; gap: 24px; flex-wrap: wrap;
  padding: 12px 16px; background: var(--gc-accent-bg);
  border: 1px solid rgba(26,115,232,0.15); border-radius: 12px;
  font-size: 13px; color: var(--gc-text-2); margin-bottom: 20px;
}
.gcr-info-row strong { color: var(--gc-accent); }

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */
@media (max-width: 1200px) { .gcr-right { display: none; } }
@media (max-width: 900px)  { .gcr-sidebar { display: none; } }
@media (max-width: 640px)  {
  .gcr-rail { display: none; }
  .gcr-stats { grid-template-columns: repeat(2, 1fr); }
  .gcr-main-inner { padding: 16px; }
}

/* ═══════════════════════════════════════
   NEW COMPONENTS (Logo, Toasts, Charts)
   ═══════════════════════════════════════ */

/* ── Logo ── */
.gcr-topbar-logo-img { height: 32px; width: 32px; object-fit: contain; border-radius: 6px; }
.gcr-topbar-logo-text { display: flex; flex-direction: column; }
.gcr-topbar-logo-brand { font-size: 14px; font-weight: 700; letter-spacing: -0.3px; color: var(--gc-text); line-height: 1.2; }
.gcr-topbar-logo-sub { font-size: 11px; font-weight: 600; color: var(--gc-accent); text-transform: uppercase; letter-spacing: 0.5px; }

/* ── Toasts ── */
.gcr-toast-container {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  display: flex; flex-direction: column; gap: 12px; pointer-events: none;
}
.gcr-toast {
  pointer-events: auto; padding: 14px 20px; border-radius: 12px;
  background: var(--gc-surface); color: var(--gc-text);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-size: 14px; font-weight: 500; font-family: var(--gc-font);
  border-left: 4px solid var(--gc-accent);
  animation: gcr-toast-slide 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes gcr-toast-slide { from { transform: translateX(100%); opacity: 0; } }
.gcr-toast-success { border-left-color: var(--gc-green); }
.gcr-toast-error { border-left-color: var(--gc-red); }
.gcr-toast-warn { border-left-color: var(--gc-amber); }
.gcr-toast-info { border-left-color: var(--gc-accent); }
.gcr-toast-close { background: none; border: none; color: var(--gc-text-3); cursor: pointer; font-size: 18px; line-height: 1; padding: 0; }
.gcr-toast-close:hover { color: var(--gc-text); }

/* ── Revenue Chart ── */
.gcr-revenue-chart {
  display: flex; align-items: flex-end; justify-content: space-between;
  height: 240px; padding-top: 20px;
}
.gcr-rev-bar-group { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 1; }
.gcr-rev-bar-wrap {
  width: 48px; height: 180px; background: var(--gc-bg); border-radius: 8px 8px 0 0;
  display: flex; align-items: flex-end; overflow: hidden;
}
.gcr-rev-bar {
  width: 100%; background: var(--gc-accent); border-radius: 8px 8px 0 0;
  transition: height 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.gcr-rev-month { font-size: 12px; font-weight: 600; color: var(--gc-text-2); text-transform: uppercase; }
.gcr-rev-val { font-size: 11px; font-weight: 600; color: var(--gc-text); }

/* ── Import & Modals ── */
.gcr-import-example {
  background: var(--gc-bg); border: 1px solid var(--gc-border); border-radius: 8px;
  padding: 12px; font-family: monospace; font-size: 12px; color: var(--gc-text-2); margin-bottom: 20px;
}
.gcr-template-option {
  display: flex; align-items: flex-start; gap: 12px; padding: 14px;
  border: 1px solid var(--gc-border); border-radius: 12px; cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.gcr-template-option:hover { background: var(--gc-bg); }
.gcr-template-option.active { border-color: var(--gc-accent); background: var(--gc-accent-bg); }

/* ── Table Extensions ── */
.gcr-checkbox { width: 16px; height: 16px; accent-color: var(--gc-accent); cursor: pointer; }
tr.selected { background: var(--gc-accent-bg) !important; }
tr.selected:hover { background: var(--gc-accent-bg) !important; }

/* ── Demo Banner ── */
.gcr-demo-banner {
  background: var(--gc-accent-bg); border: 1px solid rgba(26,115,232,0.2);
  border-radius: 12px; padding: 12px 16px; margin-bottom: 24px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; color: var(--gc-text);
}
.gcr-demo-banner-actions { display: flex; gap: 12px; align-items: center; }
.gcr-demo-activate { background: var(--gc-accent); color: #fff; border: none; padding: 6px 12px; border-radius: 6px; font-weight: 600; font-size: 12px; cursor: pointer; }
.gcr-demo-dismiss { background: none; border: none; color: var(--gc-text-3); font-size: 18px; cursor: pointer; line-height: 1; }
.gcr-demo-badge { background: var(--gc-amber); color: #000; font-size: 10px; font-weight: 800; padding: 2px 6px; border-radius: 4px; letter-spacing: 0.5px; }

/* -- AI ASSISTANT FAB -- */
.gcr-fab-ai {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a73e8, #8ab4f8);
  color: #fff;
  border: none;
  box-shadow: 0 4px 16px rgba(26, 115, 232, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.gcr-fab-ai:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 6px 24px rgba(26, 115, 232, 0.6);
}
.gcr-fab-ai:active {
  transform: scale(0.95);
}

/* ═══════════════════════════════════════════════════════
   Dream Physique AI · Body Scan — Production CSS
   ═══════════════════════════════════════════════════════ */

.bs-root {
  position: fixed;
  inset: 0;
  background: var(--void);
  color: var(--white);
  font-family: var(--font-body);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 9999;
}

/* ── Header ──────────────────────────────────────────── */
.bs-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 12px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.85) 0%, transparent 100%);
  padding-top: max(20px, env(safe-area-inset-top));
}

.bs-header-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--white);
  opacity: 0.9;
}

.bs-back-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.5);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 0.2s;
}
.bs-back-btn:hover { background: rgba(255,255,255,0.12); }

/* ── Flash ────────────────────────────────────────────── */
.bs-flash {
  position: fixed; inset: 0;
  background: white;
  z-index: 9999;
  animation: bsFlash 0.5s ease-out forwards;
  pointer-events: none;
}
@keyframes bsFlash {
  0%   { opacity: 1; }
  100% { opacity: 0; }
}

/* ═══════════════════════════════════════════════════════
   CAMERA STAGE
   ═══════════════════════════════════════════════════════ */
.bs-camera-wrapper {
  position: relative;
  width: 100%; height: 100%;
  overflow: hidden;
  background: #000;
}

.bs-video {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* ── Overlay layer ────────────────────────────────────── */
.bs-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* ── Scanning frame (corner brackets) ────────────────── */
.bs-frame {
  position: absolute;
  top: 45%; left: 50%;
  transform: translate(-50%, -50%);
  width: 68%; max-width: 300px;
  height: 58vh; max-height: 460px;
  min-height: 350px;
  transition: border-color 0.3s;
}

.bs-corner {
  position: absolute;
  width: 36px; height: 36px;
  border-color: rgba(255,255,255,0.5);
  border-style: solid;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.bs-frame.aligned .bs-corner {
  border-color: var(--green);
  box-shadow: 0 0 12px rgba(46,204,113,0.6);
}
.bs-corner.tl { top: 0; left: 0;     border-width: 3px 0 0 3px; }
.bs-corner.tr { top: 0; right: 0;    border-width: 3px 3px 0 0; }
.bs-corner.bl { bottom: 0; left: 0;  border-width: 0 0 3px 3px; }
.bs-corner.br { bottom: 0; right: 0; border-width: 0 3px 3px 0; }

/* ── Scan beam ────────────────────────────────────────── */
.bs-scan-beam {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--green) 30%, rgba(46,204,113,0.8) 50%, var(--green) 70%, transparent 100%);
  box-shadow: 0 0 16px 4px rgba(46,204,113,0.35);
  animation: bsScan 2.4s cubic-bezier(0.4,0,0.2,1) infinite;
}
@keyframes bsScan {
  0%   { top: 0%;   opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* ── Body silhouette guide ────────────────────────────── */
.bs-silhouette-guide {
  position: absolute;
  top: 45%; left: 50%;
  transform: translate(-50%, -50%);
  width: 55%; max-width: 250px;
  height: 52vh; max-height: 420px;
  min-height: 320px;
  opacity: 0.5;
  pointer-events: none;
}
.bs-silhouette-guide svg { width: 100%; height: 100%; }

/* ── Countdown ────────────────────────────────────────── */
.bs-countdown-overlay {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  display: flex; flex-direction: column;
  align-items: center; gap: 12px;
  pointer-events: none;
}
.bs-countdown-ring {
  width: 100px; height: 100px;
  border-radius: 50%;
  border: 4px solid var(--green);
  box-shadow: 0 0 40px rgba(46,204,113,0.5);
  display: flex; align-items: center; justify-content: center;
  animation: bsRingPulse 1s ease infinite;
}
@keyframes bsRingPulse {
  0%,100% { transform: scale(1); }
  50%      { transform: scale(1.07); }
}
.bs-countdown-number {
  font-size: 52px;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--white);
  line-height: 1;
}
.bs-countdown-label {
  font-size: 13px;
  color: var(--white);
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.8;
}

/* ── Alignment score bar ──────────────────────────────── */
.bs-align-bar-wrapper {
  position: absolute;
  bottom: 160px; left: 24px; right: 24px;
  display: flex; flex-direction: column; gap: 6px;
}
.bs-align-label {
  font-size: 12px;
  color: var(--white);
  text-align: center;
  letter-spacing: 0.5px;
  opacity: 0.85;
  text-shadow: 0 1px 6px rgba(0,0,0,0.9);
}
.bs-align-track {
  height: 4px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
  overflow: hidden;
}
.bs-align-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.3s ease, background 0.3s ease;
}

/* ── Camera controls ──────────────────────────────────── */
.bs-controls {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 16px 24px max(28px, env(safe-area-inset-bottom));
  background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.6) 70%, transparent 100%);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  pointer-events: auto;
}
.bs-controls-instruction { text-align: center; }
.bs-controls-hint {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.5px;
}
.bs-controls-row {
  display: flex; align-items: center; justify-content: center; gap: 40px;
}

.bs-icon-btn {
  width: 50px; height: 50px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}
.bs-icon-btn:hover { background: rgba(255,255,255,0.18); }

/* Shutter button */
.bs-shutter {
  width: 78px; height: 78px;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,0.8);
  background: transparent;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: transform 0.1s;
}
.bs-shutter:active { transform: scale(0.93); }
.bs-shutter-inner {
  width: 62px; height: 62px;
  border-radius: 50%;
  background: var(--white);
  transition: background 0.15s;
}
.bs-shutter:active .bs-shutter-inner { background: var(--off-white); }

/* ═══════════════════════════════════════════════════════
   ANALYSIS STAGE
   ═══════════════════════════════════════════════════════ */
.bs-analyze-root {
  position: relative;
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.bs-analyze-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: blur(24px) brightness(0.25) saturate(0.6);
  transform: scale(1.08);
}
.bs-analyze-content {
  position: relative;
  z-index: 2;
  display: flex; flex-direction: column; align-items: center;
  padding: 80px 28px 40px;
  width: 100%; max-width: 480px;
  gap: 24px;
}
.bs-analyze-logo {
  width: 68px; height: 68px;
  border-radius: 16px;
  box-shadow: 0 0 40px rgba(224,64,64,0.6);
  animation: bsLogoPulse 2s ease-in-out infinite;
}
@keyframes bsLogoPulse {
  0%,100% { transform: scale(1);    box-shadow: 0 0 24px rgba(224,64,64,0.5); }
  50%      { transform: scale(1.06); box-shadow: 0 0 52px rgba(224,64,64,0.8); }
}
.bs-analyze-title {
  font-size: 18px; font-weight: 600;
  text-align: center; color: var(--white);
  letter-spacing: 0.5px;
}

/* Steps */
.bs-steps {
  width: 100%;
  display: flex; flex-direction: column; gap: 10px;
}
.bs-step {
  display: flex; align-items: center; gap: 12px;
  font-size: 13px; color: var(--muted);
  transition: color 0.3s;
}
.bs-step.active { color: var(--white); }
.bs-step.done   { color: var(--green); }
.bs-step-dot {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  border: 1px solid var(--border-md);
  flex-shrink: 0;
  transition: border-color 0.3s, background 0.3s;
}
.bs-step.active .bs-step-dot { border-color: var(--red-hi); background: rgba(224,64,64,0.15); }
.bs-step.done   .bs-step-dot { border-color: var(--green);  background: rgba(46,204,113,0.15); }
.bs-step-spinner {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(224,64,64,0.3);
  border-top-color: var(--red-hi);
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.bs-step-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.5px; }

/* Progress bar */
.bs-progress-track {
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
}
.bs-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--red) 0%, var(--red-hi) 100%);
  border-radius: 2px;
  transition: width 0.6s ease;
  box-shadow: 0 0 10px rgba(224,64,64,0.5);
}
.bs-progress-pct { font-size: 11px; color: var(--muted); font-family: var(--font-mono); }

/* ═══════════════════════════════════════════════════════
   RESULT STAGE
   ═══════════════════════════════════════════════════════ */
.bs-result-root {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-bottom: max(40px, env(safe-area-inset-bottom));
  padding-top: 60px;
}

/* Sticky header */
.bsr-sticky-header {
  position: sticky;
  top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
  background: rgba(5,5,5,0.9);
  border-bottom: 1px solid var(--border);
}
.bsr-tag-chip {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--red-hi);
  background: rgba(224,64,64,0.1);
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid rgba(224,64,64,0.25);
}
.bsr-done-btn {
  padding: 7px 18px;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.bsr-done-btn:hover { background: var(--red-hi); }

/* Disclaimer banner */
.bsr-disclaimer {
  display: flex; align-items: flex-start; gap: 12px;
  margin: 16px 16px 0;
  padding: 14px 16px;
  background: rgba(230,126,34,0.08);
  border: 1px solid rgba(230,126,34,0.22);
  border-radius: 12px;
}
.bsr-disclaimer-icon { font-size: 18px; flex-shrink: 0; margin-top: 2px; }
.bsr-disclaimer p { font-size: 12px; color: var(--off-white); line-height: 1.6; }
.bsr-disclaimer strong { color: var(--amber); }

/* Hero photo */
.bsr-hero-photo {
  position: relative;
  margin: 20px 16px 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-md);
  max-height: 340px;
}
.bsr-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bsr-hero-badge {
  position: absolute; top: 14px; right: 14px;
  background: rgba(46,204,113,0.85);
  color: #fff;
  font-size: 10px;
  font-family: var(--font-mono);
  letter-spacing: 2px;
  padding: 4px 10px;
  border-radius: 4px;
}

/* Section */
.bsr-section {
  padding: 24px 16px 0;
}
.bsr-section-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.bsr-section-icon { font-size: 17px; }
.bsr-approx-badge {
  font-size: 10px;
  color: var(--amber);
  background: rgba(230,126,34,0.1);
  border: 1px solid rgba(230,126,34,0.2);
  padding: 2px 8px; border-radius: 4px;
  font-weight: 400;
  font-family: var(--font-mono);
  margin-left: auto;
}

/* Assessment text */
.bsr-assessment-text {
  font-size: 14px;
  color: var(--dim);
  line-height: 1.75;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
}

/* Metrics grid */
.bsr-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
@media (max-width: 360px) {
  .bsr-metrics-grid { grid-template-columns: 1fr 1fr; }
}

.bsr-metric-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 12px;
  display: flex; flex-direction: column;
  align-items: center; gap: 6px;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
  animation: bsCardIn 0.5s ease both;
}
.bsr-metric-card:hover { border-color: var(--border-hi); transform: translateY(-2px); }
@keyframes bsCardIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.bsr-metric-icon { font-size: 20px; }
.bsr-metric-label { font-size: 10px; color: var(--muted); letter-spacing: 0.5px; text-transform: uppercase; }
.bsr-metric-value { font-size: 18px; font-weight: 700; font-family: var(--font-display); line-height: 1.1; }
.bsr-metric-unit  { font-size: 11px; font-weight: 400; opacity: 0.7; margin-left: 1px; }
.bsr-metric-desc  { font-size: 10px; color: var(--muted); line-height: 1.4; text-align: center; }

/* Two column */
.bsr-two-col {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
@media (max-width: 380px) {
  .bsr-two-col { grid-template-columns: 1fr; }
}
.bsr-col-label {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.5px; margin-bottom: 10px;
  text-transform: uppercase;
}
.bsr-col-green { color: var(--green); }
.bsr-col-amber { color: var(--amber); }

/* Tags */
.bsr-tag-list { display: flex; flex-direction: column; gap: 6px; }
.bsr-tag {
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  line-height: 1.4;
}
.bsr-tag-strength { background: rgba(46,204,113,0.08); border: 1px solid rgba(46,204,113,0.2); color: var(--off-white); }
.bsr-tag-focus    { background: rgba(230,126,34,0.08); border: 1px solid rgba(230,126,34,0.2); color: var(--off-white); }

/* Roadmap card */
.bsr-roadmap-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.bsr-roadmap-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 18px;
}
.bsr-roadmap-icon { font-size: 24px; flex-shrink: 0; margin-top: 2px; }
.bsr-roadmap-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.bsr-roadmap-value { font-size: 13px; color: var(--off-white); line-height: 1.6; }
.bsr-divider { height: 1px; background: var(--border); }

/* Timeline */
.bsr-timeline { display: flex; flex-direction: column; }
.bsr-timeline-node { display: flex; align-items: flex-start; gap: 16px; }
.bsr-timeline-line { width: 2px; background: var(--border); margin-left: 19px; height: 24px; }
.bsr-timeline-dot {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; font-family: var(--font-mono);
  letter-spacing: 0.5px; flex-shrink: 0;
}
.bsr-dot-now { background: var(--ghost); border: 2px solid var(--border-hi); color: var(--dim); }
.bsr-dot-60  { background: rgba(230,126,34,0.15); border: 2px solid var(--amber); color: var(--amber); }
.bsr-dot-120 { background: rgba(224,64,64,0.15);  border: 2px solid var(--red-hi); color: var(--red-hi); }
.bsr-timeline-content { padding-bottom: 4px; }
.bsr-timeline-heading { font-size: 13px; font-weight: 600; color: var(--white); margin-bottom: 4px; }
.bsr-timeline-text    { font-size: 12px; color: var(--dim); line-height: 1.6; }

/* Use case box */
.bsr-usecase-box {
  margin: 24px 16px 0;
  padding: 22px 20px;
  background: rgba(52,152,219,0.06);
  border: 1px solid rgba(52,152,219,0.2);
  border-radius: 16px;
}
.bsr-usecase-icon { font-size: 28px; margin-bottom: 10px; }
.bsr-usecase-box h3 { font-size: 15px; font-weight: 600; color: var(--white); margin-bottom: 12px; }
.bsr-usecase-list { padding-left: 18px; display: flex; flex-direction: column; gap: 8px; }
.bsr-usecase-list li { font-size: 13px; color: var(--dim); line-height: 1.6; }
.bsr-usecase-list strong { color: var(--off-white); }

/* Enroll CTA */
.bsr-enroll-section { padding: 24px 16px 0; }
.bsr-enroll-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px 22px;
  position: relative;
  overflow: hidden;
}
.bsr-enroll-badge {
  display: inline-block;
  font-size: 9px; font-family: var(--font-mono);
  letter-spacing: 2px; color: var(--muted);
  border: 1px solid var(--border); border-radius: 3px;
  padding: 2px 8px; margin-bottom: 12px;
}
.bsr-enroll-title { font-size: 20px; font-weight: 700; color: var(--white); margin-bottom: 10px; }
.bsr-enroll-desc  { font-size: 13px; color: var(--dim); line-height: 1.65; margin-bottom: 20px; }
.bsr-enroll-actions { display: flex; flex-direction: column; gap: 10px; }
.bsr-enroll-btn { width: 100%; }

/* Footer disclaimer */
.bsr-footer-disclaimer {
  margin: 24px 16px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.bsr-footer-disclaimer p { font-size: 11px; color: var(--muted); line-height: 1.7; }
.bsr-footer-disclaimer strong { color: var(--dim); }

/* ── Shared Buttons ───────────────────────────────────── */
.bs-btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px;
  background: var(--red);
  color: #fff;
  border: none; border-radius: 10px;
  font-size: 14px; font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.bs-btn-primary:hover  { background: var(--red-hi); }
.bs-btn-primary:active { transform: scale(0.97); }

.bs-btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 28px;
  background: transparent;
  color: var(--off-white);
  border: 1px solid var(--border-md);
  border-radius: 10px;
  font-size: 14px; font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s;
}
.bs-btn-ghost:hover { border-color: var(--border-hi); }

/* ── Error Stage ─────────────────────────────────────── */
.bs-error-stage {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 40px 28px;
  text-align: center; gap: 16px;
}
.bs-error-icon  { font-size: 52px; }
.bs-error-title { font-size: 22px; font-weight: 700; color: var(--white); }
.bs-error-msg   { font-size: 14px; color: var(--dim); line-height: 1.65; max-width: 320px; }
.bs-error-actions { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 280px; }

/* ── Instruction Page Showcase ───────────────────────── */
.bs-hero-showcase {
  max-width: 440px;
  width: calc(100% - 32px);
  margin: 24px auto 8px;
  border-radius: 16px;
  border: 1px solid var(--border-hi);
  padding: 6px;
  background: var(--surface);
  box-shadow: 0 15px 40px rgba(0,0,0,0.4), inset 0 1px 0px rgba(255,255,255,0.05);
  animation: bs-float 6s ease-in-out infinite;
}
.bs-hero-showcase-img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  object-fit: cover;
}
[data-theme="light"] .bs-hero-showcase {
  background: #ffffff;
  border-color: rgba(0,0,0,0.12);
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}
@keyframes bs-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
/* ═══════════════════════════════════════════════════════════════════════════
   DREAM PHYSIQUE AI — GYM ENTERPRISE AUTH PORTAL (GymAuth.css)
   - Harmonized with Mastercard / Luminous Porcelain Design System (Home.css)
   - Luminous Porcelain Canvas with Ambient Amber & Scarlet Radiance
   - Geometric Grotesque Typography ('Outfit', 'Plus Jakarta Sans')
   - Dual-Column Responsive Grid (Enterprise Showcase + Porcelain Form)
   - Full Mobile, Tablet & Desktop Responsive Layouts
   - Native Dark Mode Support ([data-theme="dark"])
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --ga-font-display: 'Outfit', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --ga-font-body: 'Plus Jakarta Sans', 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Porcelain Color Tokens */
  --ga-canvas-bg: #f8f8fa;
  --ga-card-bg: #ffffff;
  --ga-card-surface: #fbfbfe;
  --ga-card-raised: #f1f2f6;
  --ga-card-border: rgba(0, 0, 0, 0.07);
  --ga-input-bg: #ffffff;
  --ga-input-border: rgba(0, 0, 0, 0.12);
  --ga-input-focus: #e04040;
  --ga-input-focus-glow: rgba(224, 64, 64, 0.14);
  --ga-border-subtle: rgba(0, 0, 0, 0.07);
  --ga-border-light: rgba(0, 0, 0, 0.12);
  --ga-text-primary: #09090b;
  --ga-text-secondary: #475569;
  --ga-text-muted: #64748b;
  --ga-text-light: #94a3b8;

  --ga-red-primary: #e04040;
  --ga-red-gradient: linear-gradient(135deg, #ff4747 0%, #e04040 60%, #b82828 100%);
  --ga-red-glow: 0 12px 28px rgba(224, 64, 64, 0.28);

  --ga-shadow-card: 0 24px 60px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(0, 0, 0, 0.02);
  --ga-shadow-pill: 0 8px 24px rgba(0, 0, 0, 0.06), 0 2px 6px rgba(0, 0, 0, 0.03);
}

[data-theme="dark"] {
  --ga-canvas-bg: #0b0b10;
  --ga-card-bg: #14141f;
  --ga-card-surface: #1a1a28;
  --ga-card-raised: #222234;
  --ga-card-border: rgba(255, 255, 255, 0.08);
  --ga-input-bg: #161622;
  --ga-input-border: rgba(255, 255, 255, 0.14);
  --ga-input-focus: #ff4d4d;
  --ga-input-focus-glow: rgba(255, 77, 77, 0.25);
  --ga-border-subtle: rgba(255, 255, 255, 0.08);
  --ga-border-light: rgba(255, 255, 255, 0.16);
  --ga-text-primary: #ffffff;
  --ga-text-secondary: #cbd5e1;
  --ga-text-muted: #94a3b8;
  --ga-text-light: #64748b;

  --ga-shadow-card: 0 30px 80px rgba(0, 0, 0, 0.6), 0 4px 20px rgba(0, 0, 0, 0.4);
  --ga-shadow-pill: 0 16px 40px rgba(0, 0, 0, 0.35), 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* ── WRAPPER & CANVAS ────────────────────────────────────────────── */
.ga {
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--ga-canvas-bg);
  background-image: 
    radial-gradient(ellipse at 85% 15%, rgba(255, 149, 0, 0.08) 0%, transparent 55%),
    radial-gradient(ellipse at 15% 25%, rgba(224, 64, 64, 0.07) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(46, 204, 113, 0.04) 0%, transparent 60%);
  color: var(--ga-text-primary);
  font-family: var(--ga-font-body);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  padding: 12px 12px 36px;
  box-sizing: border-box;
}

[data-theme="dark"] .ga {
  background-image: 
    radial-gradient(ellipse at 85% 15%, rgba(255, 149, 0, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse at 15% 25%, rgba(224, 64, 64, 0.14) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(46, 204, 113, 0.07) 0%, transparent 60%);
}

@media (min-width: 768px) {
  .ga {
    padding: 16px 24px 44px;
  }
}

/* ── FLOATING TOPBAR ─────────────────────────────────────────────── */
.ga-topbar-wrapper {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto 20px;
  position: relative;
  z-index: 10;
}

.ga-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  background: var(--ga-card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--ga-border-subtle);
  border-radius: 9999px;
  box-shadow: var(--ga-shadow-pill);
}

@media (min-width: 640px) {
  .ga-topbar {
    padding: 12px 24px;
  }
}

.ga-topbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.ga-topbar-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.ga-topbar-brand:hover .ga-topbar-logo {
  transform: scale(1.06) rotate(-2deg);
}

.ga-topbar-text {
  display: flex;
  flex-direction: column;
}

.ga-topbar-name {
  font-family: var(--ga-font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
  color: var(--ga-text-primary);
}

.ga-topbar-sub {
  font-size: 10px;
  letter-spacing: 0.5px;
  color: var(--ga-text-muted);
  font-weight: 500;
}

.ga-topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ga-topbar-status {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ga-text-muted);
  background: var(--ga-card-raised);
  padding: 4px 10px;
  border-radius: 9999px;
}

@media (min-width: 640px) {
  .ga-topbar-status {
    display: inline-flex;
  }
}

.ga-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.ga-dot-green {
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
  animation: ga-pulse 2s infinite ease-in-out;
}

@keyframes ga-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.ga-topbar-link {
  background: var(--ga-card-raised);
  border: 1px solid var(--ga-border-subtle);
  color: var(--ga-text-primary);
  font-size: 12px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 9999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.ga-topbar-link:hover {
  background: var(--ga-card-bg);
  border-color: var(--ga-border-light);
  transform: translateY(-1px);
}

/* ── BODY (2-COLUMN RESPONSIVE LAYOUT) ───────────────────────────── */
.ga-body {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  gap: 28px;
  align-items: stretch;
  position: relative;
  z-index: 2;
  flex: 1;
}

/* ── LEFT COLUMN: BENEFITS SHOWCASE CARD ─────────────────────────── */
.ga-left {
  flex: 1.1;
  background: linear-gradient(180deg, var(--ga-card-bg) 0%, var(--ga-card-surface) 100%);
  border: 1px solid var(--ga-card-border);
  border-radius: 28px;
  box-shadow: var(--ga-shadow-card);
  padding: clamp(28px, 4vw, 44px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .ga-left {
    border-radius: 34px;
  }
}

/* Soft ambient background glow in left card */
.ga-left-glow {
  position: absolute;
  top: -20%;
  right: -20%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(255, 149, 0, 0.12) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(40px);
}

.ga-left-inner {
  position: relative;
  z-index: 2;
}

.ga-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--ga-red-primary);
  background: rgba(224, 64, 64, 0.08);
  padding: 4px 12px;
  border-radius: 9999px;
  margin-bottom: 20px;
}

.ga-hero-title {
  font-family: var(--ga-font-display);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ga-text-primary);
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.ga-gradient {
  background: linear-gradient(135deg, #ff4747 0%, #ff9500 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ga-hero-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ga-text-secondary);
  margin: 0 0 32px;
  max-width: 480px;
}

/* Benefits list */
.ga-benefits {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.ga-benefit {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 18px;
  background: var(--ga-card-raised);
  border: 1px solid var(--ga-border-subtle);
  transition: all 0.25s ease;
}

.ga-benefit:hover {
  background: var(--ga-card-bg);
  border-color: var(--ga-border-light);
  transform: translateX(3px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.ga-benefit-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(224, 64, 64, 0.08);
  color: var(--ga-red-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.ga-benefit:hover .ga-benefit-icon {
  transform: scale(1.08);
}

.ga-benefit-title {
  font-family: var(--ga-font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--ga-text-primary);
  margin-bottom: 2px;
}

.ga-benefit-desc {
  font-size: 12px;
  color: var(--ga-text-muted);
  line-height: 1.45;
}

.ga-trust {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  color: var(--ga-text-muted);
  padding-top: 16px;
  border-top: 1px solid var(--ga-border-subtle);
}

.ga-trust svg {
  color: #10b981;
  flex-shrink: 0;
}

/* ── RIGHT COLUMN: FORM CARD ─────────────────────────────────────── */
.ga-right {
  flex: 1;
  display: flex;
  justify-content: center;
}

.ga-form-card {
  width: 100%;
  background: linear-gradient(180deg, var(--ga-card-bg) 0%, var(--ga-card-surface) 100%);
  border: 1px solid var(--ga-card-border);
  border-radius: 28px;
  box-shadow: var(--ga-shadow-card);
  padding: clamp(24px, 4vw, 36px);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

@media (min-width: 1024px) {
  .ga-form-card {
    border-radius: 34px;
  }
}

.ga-card-top-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ff4747 0%, #ff9500 50%, #e04040 100%);
}

.ga-form-header {
  text-align: center;
  margin-bottom: 20px;
}

.ga-form-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(224, 64, 64, 0.08);
  color: var(--ga-red-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.ga-form-title {
  font-family: var(--ga-font-display);
  font-size: clamp(22px, 3.5vw, 28px);
  font-weight: 700;
  color: var(--ga-text-primary);
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  line-height: 1.2;
}

.ga-form-subtitle {
  font-size: 13px;
  color: var(--ga-text-muted);
  line-height: 1.45;
  margin: 0;
}

/* ── MODE TOGGLE (Pill Segmented Control) ─────────────────────────── */
.ga-toggle {
  display: flex;
  background: var(--ga-card-raised);
  border-radius: 9999px;
  padding: 4px;
  margin-bottom: 20px;
  border: 1px solid var(--ga-border-subtle);
}

.ga-toggle-btn {
  flex: 1;
  padding: 9px 14px;
  border: none;
  background: transparent;
  color: var(--ga-text-muted);
  font-family: var(--ga-font-body);
  font-size: 13px;
  font-weight: 600;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
}

.ga-toggle-btn.active {
  background: var(--ga-card-bg);
  color: var(--ga-text-primary);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
}

/* ── FORM FIELDS ─────────────────────────────────────────────────── */
.ga-fields {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ga-field {
  display: flex;
  flex-direction: column;
}

.ga-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 0;
}

.ga-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--ga-text-secondary);
  margin-bottom: 5px;
}

.ga-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.ga-input {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 14px;
  background: var(--ga-input-bg);
  border: 1px solid var(--ga-input-border);
  border-radius: 12px;
  font-family: var(--ga-font-body);
  font-size: 13.5px;
  color: var(--ga-text-primary);
  outline: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.ga-input::placeholder {
  color: var(--ga-text-light);
}

.ga-input:focus {
  border-color: var(--ga-input-focus);
  box-shadow: 0 0 0 3px var(--ga-input-focus-glow);
}

.ga-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpolyline points='6,9 12,15 18,9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

.ga-select option {
  background: var(--ga-card-bg);
  color: var(--ga-text-primary);
}

.ga-input-pw {
  padding-right: 44px;
}

.ga-eye-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--ga-text-muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ga-eye-btn:hover {
  color: var(--ga-text-primary);
}

/* ── ERROR & SUCCESS MESSAGES ────────────────────────────────────── */
.ga-error {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: #dc2626;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 12px;
  padding: 10px 14px;
  animation: ga-shake 0.35s ease-in-out;
}

.ga-success {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: #059669;
  background: rgba(16, 185, 129, 0.09);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 12px;
  padding: 10px 14px;
}

@keyframes ga-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

/* ── AGREEMENT CHECKBOX ──────────────────────────────────────────── */
.ga-agree {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 4px;
}

.ga-agree input[type="checkbox"] {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--ga-red-primary);
}

.ga-agree label {
  font-size: 12px;
  color: var(--ga-text-muted);
  line-height: 1.5;
  cursor: pointer;
}

.ga-agree a {
  color: var(--ga-text-primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ga-agree a:hover {
  color: var(--ga-red-primary);
}

/* ── SUBMIT BUTTON ───────────────────────────────────────────────── */
.ga-submit {
  width: 100%;
  height: 48px;
  border: none;
  border-radius: 9999px;
  background: var(--ga-red-gradient);
  color: #ffffff;
  font-family: var(--ga-font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: var(--ga-red-glow);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  margin-top: 6px;
}

.ga-submit:hover:not(:disabled) {
  transform: translateY(-1.5px) scale(1.005);
  box-shadow: 0 16px 36px rgba(224, 64, 64, 0.36);
}

.ga-submit:active:not(:disabled) {
  transform: translateY(0);
}

.ga-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.ga-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: ga-spin 0.6s linear infinite;
}

@keyframes ga-spin {
  to { transform: rotate(360deg); }
}

/* ── OAUTH & DIVIDER ─────────────────────────────────────────────── */
.ga-oauth-container {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-bottom: 6px;
}

.ga-oauth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0 16px;
}

.ga-oauth-divider-line {
  flex: 1;
  height: 1px;
  background: var(--ga-border-subtle);
}

.ga-oauth-divider-text {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ga-text-light);
}

/* ── SWITCH MODE ─────────────────────────────────────────────────── */
.ga-switch {
  text-align: center;
  margin-top: 18px;
  font-size: 13px;
  color: var(--ga-text-muted);
}

.ga-switch button {
  background: none;
  border: none;
  color: var(--ga-text-primary);
  font-weight: 600;
  cursor: pointer;
  font-size: 13px;
  padding: 0;
  margin-left: 4px;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s ease;
}

.ga-switch button:hover {
  color: var(--ga-red-primary);
}

/* ── RESPONSIVE ADAPTATIONS (MOBILE & TABLET) ────────────────────── */
@media (max-width: 960px) {
  .ga-body {
    flex-direction: column-reverse;
    gap: 20px;
  }

  .ga-left {
    padding: 24px 20px;
    border-radius: 24px;
  }

  .ga-benefits {
    gap: 12px;
    margin-bottom: 20px;
  }

  .ga-form-card {
    border-radius: 24px;
  }
}

@media (max-width: 600px) {
  .ga {
    padding: 8px 8px 28px;
  }

  .ga-topbar {
    padding: 10px 14px;
  }

  .ga-topbar-sub {
    display: none;
  }

  .ga-field-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .ga-form-card {
    padding: 20px 16px;
    border-radius: 22px;
  }

  .ga-hero-title {
    font-size: 24px;
  }

  .ga-benefit {
    padding: 10px 12px;
  }
}
/* GymPricing.css */

.gp-page {
  min-height: 100vh;
  background-color: var(--gc-bg);
  color: var(--gc-text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  padding-bottom: 80px;
}

/* Header */
.gp-header {
  display: flex;
  align-items: center;
  padding: 24px 40px;
  border-bottom: 1px solid var(--gc-border);
  background: var(--gc-surface);
}

.gp-back {
  background: none;
  border: none;
  color: var(--gc-text-2);
  cursor: pointer;
  padding: 8px;
  margin-right: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.gp-back:hover {
  background: var(--gc-surface-hover);
  color: var(--gc-text);
}

.gp-logo {
  height: 32px;
  margin-right: 12px;
}

.gp-brand {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

/* Hero */
.gp-hero {
  text-align: center;
  padding: 80px 20px 40px;
  max-width: 800px;
  margin: 0 auto;
}

.gp-hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.gp-gradient-text {
  background: linear-gradient(135deg, #FFB800 0%, #FF8A00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gp-hero-sub {
  font-size: 1.25rem;
  color: var(--gc-text-2);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Alerts */
.gp-alert {
  max-width: 600px;
  margin: 0 auto 40px;
  padding: 16px 24px;
  border-radius: 12px;
  text-align: center;
  font-weight: 500;
  animation: slideDown 0.3s ease-out;
}

.gp-alert-error {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.gp-alert-success {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Cards Container */
.gp-cards {
  display: flex;
  justify-content: center;
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto 80px;
  padding: 0 20px;
  align-items: stretch;
}

/* Individual Card */
.gp-card {
  flex: 1;
  max-width: 400px;
  background: var(--gc-surface);
  border: 1px solid var(--gc-border);
  border-radius: 24px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.gp-card:hover {
  transform: translateY(-8px);
}

.gp-card-current {
  border-color: rgba(255, 255, 255, 0.2);
}

.gp-card-featured {
  border-color: rgba(255, 184, 0, 0.4);
  background: linear-gradient(180deg, var(--gc-surface) 0%, rgba(255, 184, 0, 0.03) 100%);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 184, 0, 0.2) inset;
}

.gp-card-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 200px;
  background: radial-gradient(circle, rgba(255, 184, 0, 0.15) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.gp-card-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.gp-card-icon {
  color: var(--gc-text-2);
}

.gp-icon-gold {
  color: #FFB800;
}

.gp-popular-badge {
  background: linear-gradient(135deg, #FFB800 0%, #FF8A00 100%);
  color: #000;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 12px;
  border-radius: 100px;
}

.gp-current-badge {
  background: rgba(255, 255, 255, 0.1);
  color: var(--gc-text);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 100px;
}

.gp-card-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.gp-card-price {
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.gp-price-amount {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.gp-price-period {
  font-size: 1rem;
  color: var(--gc-text-2);
  margin-left: 8px;
  font-weight: 500;
}

.gp-card-desc {
  color: var(--gc-text-2);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 32px;
  min-height: 70px;
  position: relative;
  z-index: 1;
}

.gp-feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 40px 0;
  flex: 1;
  position: relative;
  z-index: 1;
}

.gp-feature-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 16px;
  font-size: 0.95rem;
  color: var(--gc-text);
}

.gp-feature-icon {
  margin-right: 12px;
  margin-top: 2px;
}

.gp-icon-yes {
  color: #10b981;
}

.gp-icon-no {
  color: var(--gc-text-3);
}

.gp-feature-disabled {
  color: var(--gc-text-3);
  text-decoration: line-through;
}

/* Buttons */
.gp-btn {
  width: 100%;
  padding: 16px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  position: relative;
  z-index: 1;
}

.gp-btn-primary {
  background: var(--gc-primary);
  color: #fff;
}

.gp-btn-primary:hover:not(:disabled) {
  background: var(--gc-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(59, 130, 246, 0.2);
}

.gp-card-featured .gp-btn-primary {
  background: linear-gradient(135deg, #FFB800 0%, #FF8A00 100%);
  color: #000;
}

.gp-card-featured .gp-btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 184, 0, 0.3);
}

.gp-btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--gc-text-2);
  cursor: not-allowed;
}

.gp-btn:disabled {
  opacity: 0.7;
}

.gp-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Comparison Table */
.gp-comparison {
  max-width: 1000px;
  margin: 0 auto 80px;
  padding: 0 20px;
}

.gp-section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 40px;
}

.gp-table-wrap {
  background: var(--gc-surface);
  border: 1px solid var(--gc-border);
  border-radius: 24px;
  overflow: hidden;
}

.gp-table {
  width: 100%;
  border-collapse: collapse;
}

.gp-table th,
.gp-table td {
  padding: 20px 24px;
  text-align: left;
  border-bottom: 1px solid var(--gc-border);
}

.gp-table th {
  font-weight: 600;
  color: var(--gc-text-2);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(255, 255, 255, 0.02);
}

.gp-table th:first-child,
.gp-table td:first-child {
  width: 40%;
  font-weight: 500;
}

.gp-table td {
  color: var(--gc-text);
  font-size: 0.95rem;
}

.gp-table tr:last-child td {
  border-bottom: none;
}

.gp-th-growth,
.gp-td-growth {
  background: rgba(255, 184, 0, 0.03);
}

.gp-th-growth {
  color: #FFB800 !important;
}

.gp-val-text {
  font-weight: 500;
}

/* Trust */
.gp-trust {
  text-align: center;
  color: var(--gc-text-3);
  font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
  .gp-hero-title {
    font-size: 2.5rem;
  }
  .gp-cards {
    flex-direction: column;
    align-items: center;
  }
  .gp-card {
    width: 100%;
  }
  .gp-table-wrap {
    overflow-x: auto;
  }
  .gp-table th,
  .gp-table td {
    padding: 16px;
  }
}

/* ── Loading State ── */
.gp-loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  gap: 20px;
  color: var(--gc-text-2);
}
.gp-spinner-large {
  width: 44px;
  height: 44px;
  border: 3px solid var(--gc-border);
  border-top-color: var(--gc-primary);
  border-radius: 50%;
  animation: gp-spin 0.8s linear infinite;
}
@keyframes gp-spin { to { transform: rotate(360deg); } }

/* ── No-Gym Card ── */
.gp-no-gym-card {
  max-width: 520px;
  margin: 0 auto 48px;
  padding: 48px 40px;
  background: var(--gc-surface);
  border: 1px solid var(--gc-border);
  border-radius: 20px;
  text-align: center;
}
.gp-no-gym-icon {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(249,115,22,0.15), rgba(234,179,8,0.1));
  border: 1px solid rgba(249,115,22,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: var(--gc-primary);
}
.gp-no-gym-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.gp-no-gym-desc {
  color: var(--gc-text-2);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 32px;
}
.gp-no-gym-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 36px;
  text-align: left;
}
.gp-step {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  background: var(--gc-bg);
  border: 1px solid var(--gc-border);
  border-radius: 10px;
}
.gp-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gc-primary);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.gp-step-text {
  font-size: 0.9rem;
  color: var(--gc-text-2);
}
.gp-no-gym-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ── Preview badges ── */
.gp-free-badge {
  background: rgba(16,185,129,0.12);
  color: #10b981;
  border: 1px solid rgba(16,185,129,0.25);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.gp-preview-label {
  text-align: center;
  font-size: 0.85rem;
  color: var(--gc-text-3);
  margin-bottom: 20px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.gp-cards-preview .gp-card {
  opacity: 0.85;
}

/* ─────────────────────────────────────────────────────────
   GymDashboard Sidebar Upgrade CTA (gcr-upgrade-box)
───────────────────────────────────────────────────────── */
.gcr-upgrade-box {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 16px 8px;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(249,115,22,0.14) 0%, rgba(234,179,8,0.08) 100%);
  border: 1px solid rgba(249,115,22,0.35);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.22s ease;
}
.gcr-upgrade-box:hover {
  background: linear-gradient(135deg, rgba(249,115,22,0.22) 0%, rgba(234,179,8,0.14) 100%);
  border-color: rgba(249,115,22,0.6);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(249,115,22,0.18);
}
.gcr-upgrade-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(249,115,22,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.gcr-icon-gold { color: #f59e0b; }
.gcr-upgrade-text {
  flex: 1;
}
.gcr-upgrade-text h4 {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gc-text);
  margin: 0 0 2px;
}
.gcr-upgrade-text p {
  font-size: 0.72rem;
  color: var(--gc-text-3);
  margin: 0;
}

/* ════════════════════════════════════════════════════════════
   NEW: Rich Pricing Page Styles
════════════════════════════════════════════════════════════ */

/* No-gym inline banner */
.gp-no-gym-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 900px;
  margin: 0 auto 32px;
  padding: 14px 20px;
  background: rgba(249, 115, 22, 0.08);
  border: 1px solid rgba(249, 115, 22, 0.3);
  border-radius: 12px;
  color: var(--gc-text-2);
  font-size: 0.9rem;
  flex-wrap: wrap;
}
.gp-no-gym-banner strong { color: var(--gc-text); }
.gp-no-gym-banner svg { color: #f97316; flex-shrink: 0; }
.gp-no-gym-banner-btn {
  margin-left: auto;
  background: #f97316;
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}
.gp-no-gym-banner-btn:hover { background: #ea6700; }

/* Feature locked state on card */
.gp-feature-item--locked {
  opacity: 0.5;
}
.gp-feature-name--locked {
  text-decoration: line-through;
  color: var(--gc-text-3);
}
.gp-feature-limit {
  color: var(--gc-text-3);
  font-size: 0.8em;
}
.gp-feature-locked-tag {
  display: inline-block;
  margin-left: 8px;
  background: rgba(249, 115, 22, 0.12);
  color: #f97316;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 20px;
  vertical-align: middle;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.gp-icon-lock {
  color: var(--gc-text-3);
}

/* Growth highlights box */
.gp-growth-highlights {
  background: rgba(249, 115, 22, 0.05);
  border: 1px solid rgba(249, 115, 22, 0.2);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 20px;
}
.gp-growth-highlight-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: #f97316;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.gp-growth-highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--gc-text-2);
  margin-bottom: 8px;
  line-height: 1.4;
}
.gp-growth-highlight-item:last-child { margin-bottom: 0; }
.gp-growth-highlight-emoji {
  font-size: 1rem;
  flex-shrink: 0;
  line-height: 1.2;
}

/* Upgrade note below button */
.gp-upgrade-note {
  text-align: center;
  font-size: 0.75rem;
  color: var(--gc-text-3);
  margin-top: 10px;
}

/* Outline button */
.gp-btn-outline {
  background: transparent;
  border: 1px solid var(--gc-border);
  color: var(--gc-text-2);
  transition: all 0.2s;
}
.gp-btn-outline:hover {
  border-color: var(--gc-primary);
  color: var(--gc-text);
}

/* Large button variant */
.gp-btn-lg {
  padding: 16px 32px;
  font-size: 1rem;
  border-radius: 12px;
}

/* Comparison table: category rows */
.gp-cat-row td {
  background: var(--gc-bg) !important;
  color: var(--gc-text-3);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 10px 20px !important;
  border-bottom: none !important;
}

/* Locked rows in comparison table */
.gp-row-locked {
  opacity: 0.6;
}
.gp-row-lock-icon {
  margin-right: 6px;
  color: var(--gc-text-3);
  vertical-align: middle;
}
.gp-feat-name {
  vertical-align: middle;
}

/* Feature value badges */
.gp-feat-val {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 20px;
}
.gp-feat-yes {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}
.gp-feat-no {
  background: rgba(100, 100, 120, 0.08);
  color: var(--gc-text-3);
}
.gp-feat-limited {
  background: rgba(249, 115, 22, 0.1);
  color: #f97316;
}

/* Bottom CTA strip */
.gp-bottom-cta {
  max-width: 900px;
  margin: 0 auto 48px;
  padding: 40px 48px;
  background: linear-gradient(135deg, rgba(249,115,22,0.08), rgba(234,179,8,0.05));
  border: 1px solid rgba(249,115,22,0.25);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.gp-bottom-cta-text h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 6px;
}
.gp-bottom-cta-text p {
  font-size: 0.9rem;
  color: var(--gc-text-2);
  margin: 0;
}

@media (max-width: 640px) {
  .gp-bottom-cta {
    flex-direction: column;
    text-align: center;
    padding: 28px 24px;
  }
  .gp-no-gym-banner {
    flex-direction: column;
    text-align: center;
  }
  .gp-no-gym-banner-btn { margin: 0 auto; }
}
