/* ==========================================================================
   GFXDeck 3.0 — Complete Design System & Storefront Stylesheet
   Built with Evon UI/UX Skill Methodology (/ui-ux)
   ========================================================================== */

/* ---------- 0. Self-Hosted Vietnamese-Ready Typography (T1, T4, T5) ---------- */
@font-face {
  font-family: "Be Vietnam Pro";
  src: url("/assets/storefront/fonts/BeVietnamPro-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Be Vietnam Pro";
  src: url("/assets/storefront/fonts/BeVietnamPro-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Be Vietnam Pro";
  src: url("/assets/storefront/fonts/BeVietnamPro-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Be Vietnam Pro";
  src: url("/assets/storefront/fonts/BeVietnamPro-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- 1. Brand & Semantic Tokens (tokens.css, M1–M33, P3) ---------- */
:root,
html[data-theme="light"],
html[data-theme-effective="light"],
.force-light {
  color-scheme: light;

  /* Single primary font family across UI; hierarchy by weight & size (T2, T3) */
  --app-font: "Be Vietnam Pro", "Outfit", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-sans: var(--app-font);
  --font-display: "Outfit", "Be Vietnam Pro", ui-sans-serif, system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Brand Accent — Spot 1 of 2: Light Mode (WCAG AA >= 4.5:1 with #ffffff) */
  --primary: #d5410f;
  --primary-hover: #b8360a;
  --primary-foreground: #ffffff;
  --primary-light: rgba(213, 65, 15, 0.08);
  --gfx-brand-vivid: #f04e18;

  /* Surface Hierarchy (M1: page canvas light gray, cards white) */
  --background: #f4f5f7;
  --surface: #ffffff;
  --surface-overlay: #ffffff;
  --foreground: #18181b;
  --muted: #636772;

  /* Two Border Tokens Only (M14): decorative hairline vs functional control border */
  --border: #eaecef;
  --border-strong: #d8dce3;
  --tab-rail: color-mix(in srgb, var(--foreground) 10%, transparent);
  --tab-selected: color-mix(in srgb, var(--foreground) 8%, transparent);

  /* Floating Layer Elevation Only (M15) */
  --elevation-popover: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.06);
  --elevation-modal: 0 20px 25px -5px rgb(0 0 0 / 0.12), 0 8px 10px -6px rgb(0 0 0 / 0.08);

  /* Interactive Overlays & Fills (M18, M21, I10) */
  --item-hover: #f4f5f7;
  --secondary: #e7e8ec;
  --secondary-hover: #dbdce2;
  --background-hover: #e4e6eb;
  --surface-hover: #f8f9fb;
  --button-hover-surface: #f1f2f5;
  --button-hover-page: #e4e5e9;
  --button-hover: var(--button-hover-page);

  --shadow-segment-track: inset 0 0 0 1px rgb(0 0 0 / 0.05), inset 0 1px 2px rgb(0 0 0 / 0.04);
  --shadow-segment-thumb: 0 0 0 1px rgb(0 0 0 / 0.04), 0 1px 2px rgb(0 0 0 / 0.06), 0 2px 6px -2px rgb(0 0 0 / 0.08);

  /* Input Focus Ring (I13) */
  --ring-focus: rgba(217, 67, 16, 0.14);
  --border-focus: var(--primary);

  /* Semantic Status Colors (M7, M30, I4) */
  --danger: #c70036;
  --danger-bg: rgb(255 32 86 / 0.1);
  --danger-bg-hover: rgb(255 32 86 / 0.15);

  --error: #fb2c36;
  --error-ring: rgb(251 44 54 / 0.1);
  --error-text: #d91b24;
  --error-bg: #fef2f2;
  --error-border: #ffc9c9;
  --error-strong: #b91c1c;

  --success-bg: #ecfdf5;
  --success: #047857;
  --warning-bg: #fffbeb;
  --warning: #b45309;
  --neutral-bg: #f4f4f5;
  --neutral: #52525b;

  /* 4 Border Radius Tiers Only (F1, Locked Rule 10) */
  --radius-sm: 0.5rem;    /* 8px: controls < 40px */
  --radius: 0.75rem;      /* 12px: controls >= 40px (buttons, inputs, menu items) */
  --radius-lg: 1rem;      /* 16px: cards, dropdown frames, modals */
  --radius-full: 9999px;  /* pills, chips, badges, avatars */

  /* Bridge Legacy Storefront Variables */
  --bg: var(--background);
  --bg-elevated: var(--surface);
  --surface-1: var(--surface);
  --surface-2: #f8f9fb;
  --surface-3: var(--secondary);
  --text: var(--foreground);
  --text-muted: var(--muted);
  --text-faint: #717580;
  --accent: var(--primary);
  --accent-strong: var(--primary-hover);
  --accent-soft: var(--primary-light);
  --line: var(--border);
  --line-strong: var(--border-strong);
  --shadow: none;

  /* Bridge --sf-* Storefront Tokens to GFXDeck 3.0 Light Mode */
  --sf-page-bg: var(--background);
  --sf-surface: var(--surface);
  --sf-surface-elevated: #f8f9fb;
  --sf-surface-soft: #f4f5f7;
  --sf-surface-glass: rgba(255, 255, 255, 0.94);
  --sf-border: var(--border);
  --sf-border-subtle: #f1f3f5;
  --sf-border-strong: var(--border-strong);
  --sf-border-hover: rgba(217, 67, 16, 0.35);
  --sf-text-primary: var(--foreground);
  --sf-text-secondary: var(--muted);
  --sf-text-muted: #717580;
  --sf-ink: var(--foreground);
  --sf-muted: var(--muted);
  --sf-line: var(--border);
  --sf-inverse: #ffffff;
  --sf-red: var(--primary);
  --sf-red-hover: var(--primary-hover);
  --sf-red-active: #9a2c07;
  --sf-red-subtle: var(--primary-light);
  --sf-accent: var(--primary);
  --sf-accent-hover: var(--primary-hover);
  --sf-accent-dark: var(--primary-hover);
  --sf-accent-coral: var(--gfx-brand-vivid);
  --sf-field: var(--surface);
  --sf-panel-soft: #f8f9fb;
  --sf-disabled: var(--secondary);
  --sf-shadow-cta: 0 4px 12px rgba(217, 67, 16, 0.18);
  --sf-gradient-accent: linear-gradient(135deg, var(--primary) 0%, var(--gfx-brand-vivid) 100%);
  --sf-gradient-membership: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  --sf-gradient-hero-glow: var(--surface);
}

/* Dark Mode — Spot 2 of 2 (M21–M23, M31–M33) */
html[data-theme="dark"],
html[data-theme-effective="dark"],
.force-dark {
  color-scheme: dark;

  --primary: #d94310;
  --primary-hover: #f04e18;
  --primary-foreground: #ffffff;
  --primary-light: rgba(255, 105, 51, 0.14);
  --gfx-brand-vivid: #ff6933;

  /* Progressive Dark Surface Elevation: background < card < overlay (M21) */
  --background: #0b0d13;
  --surface: #121620;
  --surface-overlay: #181d2a;
  --foreground: #eef1f7;
  --muted: #949cb0;

  /* Subtle translucent borders in Dark Mode (M23) */
  --border: rgba(160, 180, 220, 0.12);
  --border-strong: rgba(160, 180, 220, 0.18);
  --tab-rail: color-mix(in srgb, var(--foreground) 12%, transparent);
  --tab-selected: color-mix(in srgb, var(--foreground) 10%, transparent);

  --elevation-popover: 0 10px 15px -3px rgb(0 0 0 / 0.5), 0 4px 6px -4px rgb(0 0 0 / 0.5);
  --elevation-modal: 0 20px 25px -5px rgb(0 0 0 / 0.6), 0 8px 10px -6px rgb(0 0 0 / 0.6);

  --item-hover: rgb(255 255 255 / 0.05);
  --secondary: rgb(255 255 255 / 0.08);
  --secondary-hover: rgb(255 255 255 / 0.13);
  --background-hover: #181d2a;
  --surface-hover: #161b27;
  --button-hover-surface: rgb(255 255 255 / 0.08);
  --button-hover-page: rgb(255 255 255 / 0.08);
  --button-hover: var(--button-hover-page);

  --shadow-segment-track: inset 0 0 0 1px var(--border), inset 0 1px 2px rgb(0 0 0 / 0.4);
  --shadow-segment-thumb: 0 0 0 1px var(--border-strong), inset 0 1px 0 rgb(255 255 255 / 0.06), 0 1px 2px rgb(0 0 0 / 0.5);

  --ring-focus: rgba(255, 105, 51, 0.18);
  --border-focus: rgba(255, 105, 51, 0.55);

  --danger: #ff637e;
  --danger-bg: rgb(255 32 86 / 0.12);
  --danger-bg-hover: rgb(255 32 86 / 0.18);

  --error: #fb2c36;
  --error-ring: rgb(251 44 54 / 0.15);
  --error-text: #ff6467;
  --error-bg: rgb(251 44 54 / 0.12);
  --error-border: rgb(251 44 54 / 0.3);
  --error-strong: #ff6467;

  --success-bg: rgb(0 188 125 / 0.15);
  --success: #00d492;
  --warning-bg: rgb(254 154 0 / 0.15);
  --warning: #ff8904;
  --neutral-bg: rgb(113 113 123 / 0.15);
  --neutral: #a1a1aa;

  /* Bridge Legacy Storefront Variables */
  --bg: var(--background);
  --bg-elevated: var(--surface);
  --surface-1: var(--surface);
  --surface-2: #161b27;
  --surface-3: var(--secondary);
  --text: var(--foreground);
  --text-muted: var(--muted);
  --text-faint: #848da3;
  --accent: var(--gfx-brand-vivid);
  --accent-strong: var(--primary);
  --accent-soft: var(--primary-light);
  --line: var(--border);
  --line-strong: var(--border-strong);
  --shadow: none;

  /* Bridge --sf-* Storefront Tokens to GFXDeck 3.0 Dark Mode */
  --sf-page-bg: var(--background);
  --sf-surface: var(--surface);
  --sf-surface-elevated: var(--surface-overlay);
  --sf-surface-soft: #151a26;
  --sf-surface-glass: rgba(18, 22, 32, 0.94);
  --sf-border: var(--border);
  --sf-border-subtle: rgba(160, 180, 220, 0.08);
  --sf-border-strong: var(--border-strong);
  --sf-border-hover: rgba(255, 105, 51, 0.45);
  --sf-text-primary: var(--foreground);
  --sf-text-secondary: var(--muted);
  --sf-text-muted: #848da3;
  --sf-ink: var(--foreground);
  --sf-muted: var(--muted);
  --sf-line: var(--border);
  --sf-inverse: #ffffff;
  --sf-red: var(--primary);
  --sf-red-hover: var(--primary-hover);
  --sf-red-active: #b8360a;
  --sf-red-subtle: var(--primary-light);
  --sf-accent: var(--gfx-brand-vivid);
  --sf-accent-hover: #ff8255;
  --sf-accent-dark: var(--gfx-brand-vivid);
  --sf-accent-coral: var(--gfx-brand-vivid);
  --sf-field: #0f131c;
  --sf-panel-soft: #151a26;
  --sf-disabled: rgba(255, 255, 255, 0.08);
  --sf-shadow-cta: 0 8px 22px rgba(217, 67, 16, 0.25);
  --sf-gradient-accent: linear-gradient(135deg, var(--primary) 0%, var(--gfx-brand-vivid) 100%);
  --sf-gradient-membership: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  --sf-gradient-hero-glow: var(--surface);
}

@media (prefers-color-scheme: dark) {
  html[data-theme="system"]:not([data-theme-effective="light"]) {
    color-scheme: dark;
    --primary: #d94310;
    --primary-hover: #f04e18;
    --primary-foreground: #ffffff;
    --primary-light: rgba(255, 105, 51, 0.14);
    --gfx-brand-vivid: #ff6933;
    --background: #0b0d13;
    --surface: #121620;
    --surface-overlay: #181d2a;
    --foreground: #eef1f7;
    --muted: #949cb0;
    --border: rgba(160, 180, 220, 0.12);
    --border-strong: rgba(160, 180, 220, 0.18);
    --tab-rail: color-mix(in srgb, var(--foreground) 12%, transparent);
    --tab-selected: color-mix(in srgb, var(--foreground) 10%, transparent);
    --elevation-popover: 0 10px 15px -3px rgb(0 0 0 / 0.5), 0 4px 6px -4px rgb(0 0 0 / 0.5);
    --elevation-modal: 0 20px 25px -5px rgb(0 0 0 / 0.6), 0 8px 10px -6px rgb(0 0 0 / 0.6);
    --item-hover: rgb(255 255 255 / 0.05);
    --secondary: rgb(255 255 255 / 0.08);
    --secondary-hover: rgb(255 255 255 / 0.13);
    --background-hover: #181d2a;
    --surface-hover: #161b27;
    --button-hover-surface: rgb(255 255 255 / 0.08);
    --button-hover-page: rgb(255 255 255 / 0.08);
    --button-hover: var(--button-hover-page);
    --ring-focus: rgba(255, 105, 51, 0.18);
    --border-focus: rgba(255, 105, 51, 0.55);
    --danger: #ff637e;
    --danger-bg: rgb(255 32 86 / 0.12);
    --danger-bg-hover: rgb(255 32 86 / 0.18);
    --error: #fb2c36;
    --error-ring: rgb(251 44 54 / 0.15);
    --error-text: #ff6467;
    --error-bg: rgb(251 44 54 / 0.12);
    --error-border: rgb(251 44 54 / 0.3);
    --error-strong: #ff6467;
    --success-bg: rgb(0 188 125 / 0.15);
    --success: #00d492;
    --warning-bg: rgb(254 154 0 / 0.15);
    --warning: #ff8904;
    --neutral-bg: rgb(113 113 123 / 0.15);
    --neutral: #a1a1aa;
    --bg: var(--background);
    --bg-elevated: var(--surface);
    --surface-1: var(--surface);
    --surface-2: #161b27;
    --surface-3: var(--secondary);
    --text: var(--foreground);
    --text-muted: var(--muted);
    --text-faint: #848da3;
    --accent: var(--gfx-brand-vivid);
    --accent-strong: var(--primary);
    --accent-soft: var(--primary-light);
    --line: var(--border);
    --line-strong: var(--border-strong);
    --sf-page-bg: var(--background);
    --sf-surface: var(--surface);
    --sf-surface-elevated: var(--surface-overlay);
    --sf-surface-soft: #151a26;
    --sf-surface-glass: rgba(18, 22, 32, 0.94);
    --sf-border: var(--border);
    --sf-border-subtle: rgba(160, 180, 220, 0.08);
    --sf-border-strong: var(--border-strong);
    --sf-border-hover: rgba(255, 105, 51, 0.45);
    --sf-text-primary: var(--foreground);
    --sf-text-secondary: var(--muted);
    --sf-text-muted: #848da3;
    --sf-ink: var(--foreground);
    --sf-muted: var(--muted);
    --sf-line: var(--border);
    --sf-inverse: #ffffff;
    --sf-red: var(--primary);
    --sf-red-hover: var(--primary-hover);
    --sf-red-active: #b8360a;
    --sf-red-subtle: var(--primary-light);
    --sf-accent: var(--gfx-brand-vivid);
    --sf-accent-hover: #ff8255;
    --sf-accent-dark: var(--gfx-brand-vivid);
    --sf-accent-coral: var(--gfx-brand-vivid);
    --sf-field: #0f131c;
    --sf-panel-soft: #151a26;
    --sf-disabled: rgba(255, 255, 255, 0.08);
    --sf-shadow-cta: 0 8px 22px rgba(217, 67, 16, 0.25);
    --sf-gradient-accent: linear-gradient(135deg, var(--primary) 0%, var(--gfx-brand-vivid) 100%);
    --sf-gradient-membership: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    --sf-gradient-hero-glow: var(--surface);
  }
}

/* ---------- 2. Auto-Hiding 4px Scrollbar & Base Reset (I18, T1, R1) ---------- */
* { --scrollbar-thumb: transparent; }
*:hover { --scrollbar-thumb: color-mix(in srgb, var(--foreground) 16%, transparent); }
.is-scrolling { --scrollbar-thumb: color-mix(in srgb, var(--foreground) 28%, transparent); }
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 9999px; }
::-webkit-scrollbar-thumb:hover { background: color-mix(in srgb, var(--foreground) 40%, transparent); }

@supports not selector(::-webkit-scrollbar) {
  * { scrollbar-width: thin; scrollbar-color: transparent transparent; }
  *:hover { scrollbar-color: color-mix(in srgb, var(--foreground) 18%, transparent) transparent; }
  .is-scrolling { scrollbar-color: color-mix(in srgb, var(--foreground) 28%, transparent) transparent; }
}

.scrollbar-clean {
  scrollbar-width: none;
}
.scrollbar-clean::-webkit-scrollbar {
  display: none;
}

html, body {
  background-color: var(--background) !important;
  background-image: none !important;
  color: var(--foreground) !important;
  font-family: var(--app-font) !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

.storefront-skip {
  background: var(--primary) !important;
  color: var(--primary-foreground) !important;
}

.gfx-svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.storefront-shell {
  width: min(1360px, calc(100% - 32px));
  margin-inline: auto;
}
@media (min-width: 640px) {
  .storefront-shell {
    width: min(1360px, calc(100% - 48px));
  }
}

/* Hide browser native search cancel icon (input.md) */
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
}

/* ---------- 3. Official GFXDeck Logo Presentation (Section 4) ---------- */
.gfx-logo {
  display: block;
  height: 30px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  /* Light mode: turns white/silver DECK to dark charcoal while preserving orange-red GFX */
  filter: url(#gfxdeck-logo-light-filter);
}
html[data-theme="dark"] .gfx-logo,
html[data-theme-effective="dark"] .gfx-logo,
.force-dark .gfx-logo {
  filter: none;
}
@media (prefers-color-scheme: dark) {
  html[data-theme="system"]:not([data-theme-effective="light"]) .gfx-logo {
    filter: none;
  }
}

/* ---------- 4. Buttons & Form Controls (components/button.md, input.md) ---------- */
.gfx-btn,
.storefront-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--foreground);
  font-family: var(--app-font);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: anywhere;
  max-width: 100%;
  cursor: pointer;
  outline: none;
  box-shadow: none !important;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}
.gfx-btn:hover,
.storefront-button:hover {
  background: var(--button-hover);
  color: var(--foreground);
  transform: none !important;
}
.gfx-btn svg,
.storefront-button svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.gfx-btn--primary,
.storefront-button-primary {
  border-color: transparent !important;
  background: var(--primary) !important;
  color: var(--primary-foreground) !important;
  font-weight: 600;
}
.gfx-btn--primary:hover,
.storefront-button-primary:hover {
  background: var(--primary-hover) !important;
  color: var(--primary-foreground) !important;
}
.gfx-btn--secondary,
.storefront-button-secondary {
  border-color: transparent !important;
  background: var(--secondary) !important;
  color: var(--foreground) !important;
}
.gfx-btn--secondary:hover,
.storefront-button-secondary:hover {
  background: var(--secondary-hover) !important;
}
.gfx-btn--ghost,
.storefront-button-ghost {
  border-color: transparent !important;
  background: transparent !important;
  color: var(--muted) !important;
}
.gfx-btn--ghost:hover,
.storefront-button-ghost:hover {
  background: color-mix(in srgb, var(--foreground) 6%, transparent) !important;
  color: var(--foreground) !important;
}
.gfx-btn:disabled,
.storefront-button:disabled,
.gfx-btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ---------- 5. Global Two-Row Floating Header (Section 6) ---------- */
.gfx-hdr {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--surface);
  border-bottom: 1px solid var(--border-strong);
  transition: box-shadow 150ms ease, background-color 150ms ease;
}
.gfx-hdr.is-scrolled {
  box-shadow: var(--elevation-popover);
}

/* Row 1: Brand Left, Tools Right */
.gfx-hdr__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  padding-block: 8px;
}
.gfx-hdr__brand {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  text-decoration: none;
  outline: none;
  flex-shrink: 0;
}
.gfx-hdr__tools {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

/* Header Icon Buttons & Triggers */
.gfx-icon-btn,
.gfx-avatar-btn,
.gfx-locale-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  min-width: 38px;
  padding-inline: 9px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  outline: none;
  user-select: none;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}
.gfx-icon-btn::-webkit-details-marker,
.gfx-avatar-btn::-webkit-details-marker,
.gfx-locale-btn::-webkit-details-marker,
.gfx-nav__link::-webkit-details-marker {
  display: none;
}
.gfx-icon-btn:hover,
.gfx-avatar-btn:hover,
.gfx-locale-btn:hover,
details[open] > .gfx-icon-btn,
details[open] > .gfx-avatar-btn,
details[open] > .gfx-locale-btn {
  background: var(--item-hover);
  color: var(--foreground);
}
.gfx-avatar-btn {
  border-color: var(--border-strong);
  background: var(--surface);
  color: var(--foreground);
  border-radius: var(--radius-sm);
}
.gfx-locale-btn {
  padding-inline: 10px;
  border-color: var(--border);
}
.gfx-icon-btn svg,
.gfx-avatar-btn svg,
.gfx-locale-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.gfx-theme-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.gfx-theme-icon[hidden] {
  display: none !important;
}

/* Header Membership & Services CTAs (Row 1) */
.gfx-membership-cta,
.gfx-services-cta {
  min-height: 36px;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 600;
  gap: 6px;
  flex-shrink: 0;
  white-space: nowrap;
}
.gfx-membership-cta svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.5;
}
.gfx-services-cta {
  border: 1px solid var(--border-strong) !important;
  background: var(--surface) !important;
  color: var(--foreground) !important;
}
.gfx-services-cta:hover,
.gfx-services-cta[aria-current="page"] {
  background: var(--secondary) !important;
  border-color: var(--border-strong) !important;
  color: var(--foreground) !important;
}
.gfx-services-cta svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: var(--primary);
  stroke-width: 1.85;
}
.gfx-membership-cta--mobile {
  display: none;
}

/* Header Notification Bell & Badge */
.storefront-report-notifications {
  position: relative;
}
.storefront-report-bell {
  position: relative;
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  padding: 0 !important;
  border-radius: var(--radius-sm) !important;
}
.storefront-report-bell > svg {
  width: 16px !important;
  height: 16px !important;
}
.storefront-report-notification-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: var(--radius-full);
  background: var(--primary) !important;
  color: var(--primary-foreground) !important;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 17px;
  text-align: center;
  box-shadow: 0 0 0 2px var(--surface);
}
.storefront-report-notification-badge[hidden] {
  display: none !important;
}
.storefront-report-notification-panel {
  width: min(340px, calc(100vw - 24px));
  padding: 14px !important;
}

/* Row 2: Taxonomy Navigation Bar — Mathematically Centered */
.gfx-hdr__bottom {
  border-top: 1px solid var(--border);
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gfx-nav {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.gfx-nav__list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 4px 0;
  flex-wrap: wrap;
}
.gfx-nav__item {
  position: relative;
}
.gfx-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 36px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  color: color-mix(in srgb, var(--foreground) 78%, transparent);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  list-style: none;
  outline: none;
  user-select: none;
  transition: background-color 150ms ease, color 150ms ease;
}
.gfx-nav__link:hover,
details[open] > .gfx-nav__link {
  background: var(--item-hover);
  color: var(--foreground);
}
.gfx-nav__link[aria-current="page"] {
  background: var(--tab-selected);
  color: var(--foreground);
  font-weight: 600;
}
.gfx-caret {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 1.75px solid currentColor;
  border-bottom: 1.75px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  opacity: 0.65;
  transition: transform 150ms ease;
}
details[open] > .gfx-nav__link .gfx-caret {
  transform: rotate(-135deg) translateY(-1px);
}

/* Dropdown Panels (layouts/overlay.md, M19: 16px outer = 12px inner + 4px padding, gap 4px) */
.gfx-menu {
  position: relative;
}
details:not([open]) > .gfx-menu__panel {
  display: none !important;
}
.gfx-menu__panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 100;
  min-width: 244px;
  padding: 4px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface-overlay);
  box-shadow: var(--elevation-popover);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.gfx-menu__panel--right {
  left: auto;
  right: 0;
}
.gfx-menu__label {
  display: block;
  padding: 8px 12px 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gfx-menu__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: var(--radius);
  border: 0;
  background: transparent;
  color: var(--foreground);
  font-family: var(--app-font);
  font-size: 0.875rem;
  font-weight: 400;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  outline: none;
  transition: background-color 150ms ease, color 150ms ease;
}
.gfx-menu__item:hover,
.gfx-menu__item:focus-visible {
  background: var(--item-hover);
  color: var(--foreground);
}
.gfx-menu__item[aria-current="page"],
.gfx-menu__item[aria-current="true"],
.gfx-menu__item[aria-pressed="true"] {
  background: var(--secondary);
  font-weight: 500;
}
.gfx-menu__item--strong {
  font-weight: 600;
}
/* Danger menu item: neutral at rest, rose on hover (I4, Locked Rule 1 & 2) */
.gfx-menu__item--danger:hover,
.gfx-menu__item--danger:focus-visible {
  background: var(--danger-bg);
  color: var(--danger);
}
/* Full-bleed divider inside dropdown (F25) */
.gfx-menu__sep {
  display: block;
  height: 1px;
  margin: 2px -4px;
  background: var(--border);
}

/* Header Collapsible Search Bar */
.gfx-hdr__search {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding-block: 10px;
}
.gfx-hdr__search[hidden] {
  display: none !important;
}
.gfx-search-field {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 720px;
  margin-inline: auto;
  padding: 4px 6px 4px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--surface);
}
.gfx-search-field:focus-within {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 2px var(--ring-focus);
}
.gfx-search-field > svg {
  width: 18px;
  height: 18px;
  color: var(--muted);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  flex-shrink: 0;
}
.gfx-search-field input[type="search"] {
  flex: 1;
  min-width: 0;
  height: 36px;
  border: 0 !important;
  background: transparent !important;
  color: var(--foreground) !important;
  font-size: 1rem;
  outline: none !important;
  box-shadow: none !important;
  padding: 0;
}
@media (min-width: 768px) {
  .gfx-search-field input[type="search"] {
    font-size: 0.875rem;
  }
}

/* Mobile Hamburger Toggle */
.gfx-nav-toggle {
  display: none;
}
.gfx-burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 18px;
  height: 18px;
}
.gfx-burger span {
  display: block;
  width: 100%;
  height: 1.75px;
  border-radius: 9999px;
  background: currentColor;
  transition: transform 150ms ease, opacity 150ms ease;
}
.gfx-hdr.is-nav-open .gfx-burger span:nth-child(1) {
  transform: translateY(5.75px) rotate(45deg);
}
.gfx-hdr.is-nav-open .gfx-burger span:nth-child(2) {
  opacity: 0;
}
.gfx-hdr.is-nav-open .gfx-burger span:nth-child(3) {
  transform: translateY(-5.75px) rotate(-45deg);
}
.gfx-nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 85;
  background: rgb(0 0 0 / 0.35);
}
.gfx-nav-backdrop[hidden] {
  display: none !important;
}

@media (max-width: 1100px) {
  .gfx-nav-toggle {
    display: inline-flex;
  }
  .gfx-hdr__bottom {
    border-top: 0;
    min-height: 0;
  }
  .gfx-nav {
    position: fixed;
    top: 61px;
    right: 0;
    bottom: 0;
    z-index: 95;
    width: min(360px, 100vw);
    background: var(--surface);
    border-left: 1px solid var(--border);
    box-shadow: var(--elevation-modal);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 16px;
    overflow-y: auto;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 250ms cubic-bezier(0.22, 1, 0.36, 1), visibility 250ms;
  }
  .gfx-nav.is-open {
    transform: translateX(0);
    visibility: visible;
  }
  .gfx-nav__list {
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    flex-shrink: 0;
    gap: 4px;
    width: 100%;
  }
  .gfx-nav__link {
    width: 100%;
    justify-content: space-between;
    min-height: 42px;
    border-radius: var(--radius);
    font-size: 0.9375rem;
  }
  .gfx-nav__panel {
    position: static;
    box-shadow: none;
    border: 0;
    border-left: 1px solid var(--border-strong);
    border-radius: 0;
    margin: 4px 0 4px 12px;
    padding: 0 0 0 8px;
    background: transparent;
  }
  .gfx-membership-cta--top span {
    display: none;
  }
  .gfx-membership-cta--top {
    padding-inline: 10px;
  }
  .gfx-services-cta--top {
    padding-inline: 10px;
    font-size: 0.75rem;
  }
  .gfx-membership-cta--mobile {
    display: inline-flex;
    width: 100%;
    min-height: 44px;
    margin-top: 12px;
  }
}
@media (max-width: 480px) {
  .gfx-hdr__top.storefront-shell {
    width: calc(100% - 24px);
    min-height: 52px;
    padding: 6px 0;
    gap: 6px;
  }
  .gfx-nav {
    top: 53px;
  }
  .gfx-logo,
  .gfx-hdr__brand-logo {
    height: 18px;
  }
  .gfx-hdr__tools {
    gap: 3px;
  }
  .gfx-icon-btn,
  .gfx-chip-btn,
  .gfx-avatar-btn,
  .gfx-locale-btn,
  .storefront-report-bell {
    height: 30px !important;
    min-width: 30px !important;
    width: 30px !important;
    padding-inline: 0 !important;
  }
  .gfx-icon-btn svg,
  .gfx-avatar-btn svg,
  .gfx-locale-btn svg,
  .storefront-report-bell svg {
    width: 16px;
    height: 16px;
  }
  .gfx-membership-cta--top,
  .gfx-hide-sm {
    display: none !important;
  }
  .gfx-services-cta--top,
  .gfx-services-btn--top {
    min-height: 30px;
    height: 30px;
    padding: 0 7px;
    font-size: 0.75rem;
    gap: 0;
  }
  .gfx-services-cta--top svg,
  .gfx-services-btn--top svg {
    display: none;
  }
  .gfx-locale-btn span {
    display: none;
  }
}

/* ---------- 6. Homepage Hero (Section 7.1) ---------- */
.gfxdeck-home {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-bottom: 48px;
}

.gfxdeck-hero {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border-bottom: 1px solid var(--border-strong);
  padding-block: 36px 32px;
}
.gfxdeck-hero__waves {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  color: var(--gfx-brand-vivid);
}
.gfxdeck-hero__wave {
  position: absolute;
  top: 50%;
  width: clamp(180px, 24vw, 340px);
  height: auto;
  transform: translateY(-50%);
}
.gfxdeck-hero__wave--left {
  left: -12px;
}
.gfxdeck-hero__wave--right {
  right: -12px;
}
@media (max-width: 767px) {
  .gfxdeck-hero {
    padding-block: 24px 20px;
  }
  .gfxdeck-hero__wave {
    width: 130px;
    opacity: 0.45;
  }
}

.gfxdeck-hero__inner {
  position: relative;
  z-index: 1;
}
.gfxdeck-hero__content {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.gfxdeck-hero__content h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.625rem, 2.8vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--foreground);
  text-wrap: balance;
}
.gfxdeck-hero__subtitle {
  margin: 0;
  max-width: 56ch;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--muted);
  text-wrap: balance;
}

/* Centered Wide Rounded Hero Search Bar */
.gfxdeck-hero-search {
  position: relative;
  width: 100%;
  max-width: 640px;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 4px 6px 4px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.gfxdeck-hero-search:focus-within {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 2px var(--ring-focus);
}
.gfxdeck-hero-search__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  flex-shrink: 0;
}
.gfxdeck-hero-search__icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.gfxdeck-hero-search input[type="search"] {
  flex: 1;
  min-width: 0;
  height: 38px;
  border: 0 !important;
  background: transparent !important;
  color: var(--foreground) !important;
  font-family: var(--app-font);
  font-size: 1rem;
  padding: 0 4px;
  outline: none !important;
  box-shadow: none !important;
}
@media (min-width: 768px) {
  .gfxdeck-hero-search input[type="search"] {
    font-size: 0.875rem;
  }
}
.gfxdeck-hero-search input[type="search"]::placeholder {
  color: var(--muted);
}
.gfxdeck-hero-search__submit {
  min-height: 38px;
  padding: 0 20px;
  border-radius: var(--radius-full) !important;
  font-size: 0.875rem;
  font-weight: 600;
  flex-shrink: 0;
}

/* Popular Search Chips */
.gfxdeck-hero__chips {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 100%;
  margin-top: 4px;
}
.gfxdeck-hero__chips-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  flex-shrink: 0;
}
.gfxdeck-hero__chips-list {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 100%;
  padding: 2px 4px;
}
.gfxdeck-chip {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: var(--radius-full);
  background: color-mix(in srgb, var(--foreground) 6%, transparent);
  color: color-mix(in srgb, var(--foreground) 78%, transparent);
  font-size: 0.75rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color 150ms ease, color 150ms ease;
}
.gfxdeck-chip:hover {
  background: color-mix(in srgb, var(--foreground) 12%, transparent);
  color: var(--foreground);
}

/* ---------- 7. Homepage Sections, Tabs & 5-Column Shelves (Section 7.2 & 7.3) ---------- */
.gfxdeck-home-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.gfxdeck-section-header,
.gfxdeck-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.gfxdeck-section-header__left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  min-width: 0;
}
.gfxdeck-section-header h2,
.gfxdeck-section-heading h2 {
  margin: 0;
  font-size: 1.125rem; /* lg: 18px, 1 step above card base/sm (budgets.md) */
  font-weight: 600;
  line-height: 1.35;
  color: var(--foreground);
}
.gfxdeck-section-heading p {
  margin: 4px 0 0;
  font-size: 0.875rem;
  color: var(--muted);
}

/* View All Link (I7, card.md: text link h-8, no horizontal padding, underline on hover) */
.gfxdeck-view-all {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0;
  color: color-mix(in srgb, var(--foreground) 75%, transparent);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  flex-shrink: 0;
  transition: color 150ms ease;
}
.gfxdeck-view-all:hover {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Tabs (small-controls.md: boxed h-9 rounded-lg, uniform font-medium so no shift N1) */
.gfxdeck-tabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  max-width: 100%;
  padding: 2px;
}
.gfxdeck-tabs a,
.gfxdeck-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: transparent;
  color: color-mix(in srgb, var(--foreground) 72%, transparent);
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color 150ms ease, color 150ms ease;
}
.gfxdeck-tabs a:hover,
.gfxdeck-tab:hover {
  background: color-mix(in srgb, var(--foreground) 5%, transparent);
  color: var(--foreground);
}
.gfxdeck-tabs a[aria-current="page"],
.gfxdeck-tab.is-active,
.gfxdeck-tab[aria-current="page"] {
  background: var(--tab-selected);
  color: var(--foreground);
}

/* 5-Column Desktop Shelf Grid (Section 4 & 7.2/7.3) */
.resource-grid,
.gfxdeck-card-grid,
.gfxdeck-course-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 14px;
}
@media (min-width: 480px) {
  .resource-grid,
  .gfxdeck-card-grid,
  .gfxdeck-course-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 768px) {
  .resource-grid,
  .gfxdeck-card-grid,
  .gfxdeck-course-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
}
@media (min-width: 1024px) {
  .resource-grid,
  .gfxdeck-card-grid,
  .gfxdeck-course-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (min-width: 1200px) {
  .gfxdeck-card-grid--5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

/* ---------- 8. Resource & Course Cards (M13, M15, F1, F22, N12) ---------- */
.resource-card,
.gfx-card,
.gfxdeck-course-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: var(--radius-lg) !important;
  border: 1px solid var(--border) !important;
  background: var(--surface) !important;
  box-shadow: none !important;
  overflow: hidden;
  transition: border-color 150ms ease, background-color 150ms ease !important;
}
.resource-card:hover,
.gfx-card:hover,
.gfxdeck-course-card:hover {
  border-color: var(--border-strong) !important;
  transform: none !important;
  box-shadow: none !important;
}

.resource-card-media-wrap,
.gfxdeck-course-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--item-hover);
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  display: block;
}
.resource-card-media,
.gfxdeck-course-card__media {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}
.resource-card-media img,
.gfxdeck-course-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.resource-card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: var(--item-hover);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 12px;
  text-align: center;
}

/* Badges on Card Media (Max 2 overlays per V1c) */
.resource-card-floating-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 4px;
  pointer-events: none;
}
.rc-badge,
.access-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 22px;
  padding: 0 8px;
  border-radius: var(--radius-full);
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.rc-badge-free,
.access-free {
  background: var(--success-bg) !important;
  color: var(--success) !important;
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.06);
}
.rc-badge-membership,
.access-membership {
  background: rgb(24 24 27 / 0.84) !important;
  color: #ffffff !important;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.14);
}
.gfx-card__software {
  position: absolute;
  bottom: 8px;
  right: 8px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: rgb(24 24 27 / 0.78);
  padding: 3px;
  pointer-events: none;
}
.gfx-card__software-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Card Body (N12: 2-line title clamp, clear group spacing, tabular-nums stats) */
.resource-card-body,
.gfxdeck-course-card__body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  flex: 1;
  min-width: 0;
}
.resource-card-title,
.gfxdeck-course-card__body h2,
.gfxdeck-course-card__body h3 {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--foreground);
  min-width: 0;
}
.resource-card-link,
.gfxdeck-course-card__body a {
  color: var(--foreground);
  text-decoration: none;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-wrap: pretty;
  word-break: break-word;
}
.resource-card-link:hover,
.gfxdeck-course-card__body a:hover {
  color: var(--primary);
}

.resource-card-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
  min-width: 0;
}
.resource-card-category {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.resource-card-stats {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: var(--muted);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
}
.resource-view-count,
.resource-download-count {
  display: inline-flex;
  align-items: center;
  gap: 3.5px;
}

/* ---------- 9. Pagination (small-controls.md: h-9 min-w-9 rounded-lg, tabular-nums) ---------- */
.gfxdeck-pagination,
.catalog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 8px;
  flex-wrap: nowrap;
}
.gfxdeck-pagination a,
.gfxdeck-page-btn,
.catalog-pagination a,
.catalog-pagination span.is-current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  min-width: 36px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: transparent;
  color: color-mix(in srgb, var(--foreground) 72%, transparent);
  font-size: 0.875rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  transition: background-color 150ms ease, color 150ms ease;
}
.gfxdeck-pagination a:hover,
.gfxdeck-page-btn:hover:not(.is-disabled):not(.is-active),
.catalog-pagination a:hover {
  background: color-mix(in srgb, var(--foreground) 6%, transparent);
  color: var(--foreground);
}
.gfxdeck-pagination a[aria-current="page"],
.gfxdeck-page-btn.is-active,
.gfxdeck-page-btn[aria-current="page"],
.catalog-pagination a[aria-current="page"],
.catalog-pagination span.is-current {
  background: var(--secondary);
  color: var(--foreground);
  font-weight: 600;
}
.gfxdeck-page-btn.is-disabled {
  opacity: 0.38;
  cursor: not-allowed;
}
.gfxdeck-page-ellipsis,
.gfxdeck-pagination span:not(.gfxdeck-page-btn) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  min-width: 28px;
  color: var(--muted);
  font-size: 0.875rem;
}

/* ---------- 10. Empty States (components/empty-state.md: single muted sentence) ---------- */
.gfxdeck-empty-state,
.catalog-empty-state {
  margin: 0;
  padding: 28px 16px;
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
}

/* ---------- 11. Horizontal Membership Promo Banner (Section 7.4) ---------- */
.gfxdeck-membership-banner {
  margin-top: 8px;
}
.gfx-member-banner,
.membership-promo-banner.gfx-member-banner {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 20px !important;
  padding: 20px 24px !important;
  border-radius: var(--radius-lg) !important;
  border: 1px solid var(--border-strong) !important;
  background: var(--surface) !important;
  box-shadow: none !important;
  color: var(--foreground) !important;
}
.gfx-member-banner::before,
.membership-promo-banner.gfx-member-banner::before {
  display: none !important;
  content: none !important;
}
.gfx-member-banner__crown {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--primary-light);
  color: var(--primary);
  flex-shrink: 0;
}
.gfx-member-banner__crown svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
}
.gfx-member-banner__content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.gfx-member-banner__title,
.membership-promo-banner .gfx-member-banner__title,
.membership-promo-banner h2.gfx-member-banner__title {
  margin: 0 !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  letter-spacing: -0.01em !important;
  color: var(--foreground) !important;
}
.gfx-member-banner__benefits {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.gfx-member-banner__benefits li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: var(--muted);
}
.gfx-member-banner__check {
  color: var(--primary);
  font-weight: 700;
}
.gfx-member-banner__benefits svg {
  width: 15px;
  height: 15px;
  color: var(--success);
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.gfx-member-banner__cta {
  flex-shrink: 0;
}
@media (max-width: 767px) {
  .gfx-member-banner,
  .membership-promo-banner.gfx-member-banner {
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 16px !important;
    gap: 14px !important;
  }
  .gfx-member-banner__cta {
    width: 100% !important;
  }
}

/* Disable legacy section/card entrance fade-in to respect Evon UI/UX B4 motion budget */
.sf-motion .sf-section-enter,
.sf-motion .sf-card-enter,
.sf-motion .sf-grid-enter,
.sf-motion .sf-media-enter,
.sf-motion .sf-metadata-enter > div {
  animation: none !important;
  opacity: 1 !important;
  translate: none !important;
}

/* ---------- 12. Footer (storefront_end, M14: border-strong on page background) ---------- */
.storefront-footer.gfx-footer {
  margin-top: 48px;
  background: var(--surface) !important;
  border-top: 1px solid var(--border-strong) !important;
  color: var(--foreground) !important;
}
.gfx-footer__inner,
.gfx-footer__grid,
.storefront-footer .storefront-footer-inner.gfx-footer__inner,
.storefront-footer .storefront-footer-inner.gfx-footer__grid {
  display: grid !important;
  grid-template-columns: 1.35fr 0.85fr 0.85fr 1.25fr 1fr !important;
  gap: 28px !important;
  padding-block: 40px 32px !important;
}
.gfx-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.gfx-footer__logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.gfx-footer__logo {
  height: 28px !important;
  width: auto !important;
  max-width: 156px !important;
  object-fit: contain !important;
  transform: none !important;
}
.gfx-footer__tagline {
  margin: 0;
  max-width: 34ch;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--muted) !important;
}
.storefront-footer-column-title {
  margin: 0 0 12px;
  font-size: 0.8125rem !important;
  font-weight: 600 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  color: var(--foreground) !important;
}
.storefront-footer-link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px !important;
}
.storefront-footer-link-list a {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 28px;
  color: var(--muted) !important;
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 150ms ease;
}
.storefront-footer-link-list a:hover {
  color: var(--foreground) !important;
}
.storefront-footer-bottom {
  border-top: 1px solid var(--border) !important;
  padding-block: 16px !important;
}
.storefront-footer-copyright {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--muted) !important;
}
@media (max-width: 1180px) {
  .gfx-footer__inner,
  .gfx-footer__grid,
  .storefront-footer .storefront-footer-inner.gfx-footer__inner,
  .storefront-footer .storefront-footer-inner.gfx-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 24px !important;
  }
  .gfx-footer__brand {
    grid-column: 1 / -1;
  }
}
@media (max-width: 480px) {
  .gfx-footer__inner,
  .gfx-footer__grid,
  .storefront-footer .storefront-footer-inner.gfx-footer__inner,
  .storefront-footer .storefront-footer-inner.gfx-footer__grid {
    grid-template-columns: 1fr !important;
  }
}

/* ---------- 13. Catalog, Taxonomy, Search & Courses Pages (Sections 8, 9, 11) ---------- */
.gfxdeck-taxonomy-page,
.gfxdeck-courses-page,
.gfxdeck-course-detail,
.catalog-page,
.search-hub-page,
.services-catalog-page,
.pricing-page,
.membership-hub,
.account-page {
  padding-block: 24px 48px;
}

.gfxdeck-page-header,
.catalog-header,
.services-catalog-header {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.gfxdeck-page-header h1,
.catalog-header h1,
.services-catalog-header h1 {
  margin: 0;
  font-size: 1.25rem; /* xl: page title per budgets.md Locked Rule 11 */
  font-weight: 600;
  line-height: 1.3;
  color: var(--foreground);
}
.gfxdeck-page-header p,
.catalog-header p,
.services-catalog-header p {
  margin: 0;
  max-width: 65ch;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--muted);
}

.gfxdeck-breadcrumbs,
.resource-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--muted);
  overflow-x: auto;
  white-space: nowrap;
}
.gfxdeck-breadcrumbs a,
.resource-breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
  transition: color 150ms ease;
}
.gfxdeck-breadcrumbs a:hover,
.resource-breadcrumbs a:hover {
  color: var(--foreground);
}

.gfxdeck-chip-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding-top: 6px;
}
.gfxdeck-chip-nav a {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 14px;
  border-radius: var(--radius-full);
  background: color-mix(in srgb, var(--foreground) 6%, transparent);
  color: color-mix(in srgb, var(--foreground) 78%, transparent);
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color 150ms ease, color 150ms ease;
}
.gfxdeck-chip-nav a:hover {
  background: color-mix(in srgb, var(--foreground) 11%, transparent);
  color: var(--foreground);
}
.gfxdeck-chip-nav a[aria-current="page"] {
  background: var(--primary);
  color: var(--primary-foreground);
}

.gfxdeck-toolbar,
.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.gfxdeck-result-count {
  margin: 0;
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

/* Inputs & Selects across Catalog/Search/Account/Auth (input.md) */
input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="range"]),
select,
textarea {
  background-color: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--foreground);
  font-family: var(--app-font);
  font-size: 1rem;
  min-height: 44px;
  padding: 8px 14px;
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
@media (min-width: 768px) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="range"]),
  select,
  textarea {
    font-size: 0.875rem;
    min-height: 40px;
  }
}
input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="range"]):focus,
select:focus,
textarea:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 2px var(--ring-focus);
}

/* ---------- 14. Product Detail, Course Detail, Service Detail (Sections 10, 11, 12) ---------- */
.resource-detail-shell,
.gfxdeck-course-detail__hero,
.service-detail-card,
.pricing-card,
.auth-card,
.account-panel {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: none !important;
}

.gfxdeck-course-detail__hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 24px;
  padding: 24px;
  margin-bottom: 24px;
}
.gfxdeck-course-detail__media {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--item-hover);
}
.gfxdeck-course-detail__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gfxdeck-course-detail__summary {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.gfxdeck-course-detail__summary h1 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--foreground);
}
.gfxdeck-course-detail__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 8px;
}
@media (max-width: 860px) {
  .gfxdeck-course-detail__hero {
    grid-template-columns: 1fr;
    padding: 16px;
  }
}

.gfxdeck-course-sections {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.gfxdeck-course-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
}
.gfxdeck-course-section h2 {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
}
.gfxdeck-course-lessons {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}
.gfxdeck-course-lessons li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}
.gfxdeck-course-lessons li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.gfxdeck-course-lessons small {
  font-size: 0.75rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

/* ---------- 15. Discovery Pages: Search, Taxonomy, Courses & Product Detail ---------- */
.gfxdeck-listing,
.gfxdeck-search-page,
.gfxdeck-course-page,
.gfxdeck-course-detail {
  padding-block: 24px 48px;
}

.detail-breadcrumb,
.storefront-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--muted) !important;
  margin-bottom: 16px;
}
.detail-breadcrumb a,
.storefront-breadcrumb a {
  color: var(--muted) !important;
  text-decoration: none;
  transition: color 150ms ease;
}
.detail-breadcrumb a:hover,
.storefront-breadcrumb a:hover {
  color: var(--foreground) !important;
}
.detail-breadcrumb [aria-current="page"],
.storefront-breadcrumb [aria-current="page"] {
  color: var(--foreground) !important;
  font-weight: 500;
  max-width: min(44ch, 100%);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gfxdeck-listing__heading,
.gfxdeck-search-heading,
.gfxdeck-page-heading {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.gfxdeck-listing__heading h1,
.gfxdeck-search-heading h1,
.gfxdeck-page-heading h1 {
  margin: 0;
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--foreground);
}
.gfxdeck-listing__heading p,
.gfxdeck-search-heading p,
.gfxdeck-page-heading p {
  margin: 0;
  max-width: 68ch;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--muted);
}
.gfxdeck-listing__count,
.gfxdeck-page-heading > span {
  display: inline-flex;
  align-self: flex-start;
  margin-top: 4px;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  background: var(--item-hover);
  font-size: 0.75rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

/* Search Page Controls */
.gfxdeck-search-form {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 680px;
  margin-bottom: 16px;
  padding: 6px 6px 6px 14px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-full);
}
.gfxdeck-search-form:focus-within {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--ring-focus);
}
.gfxdeck-search-form input[type="search"] {
  flex: 1;
  min-width: 0;
  min-height: 38px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 4px 8px !important;
  font-size: 0.9375rem !important;
  color: var(--foreground) !important;
}
.gfxdeck-search-form button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: var(--primary-foreground);
  font-family: var(--app-font);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 150ms ease;
}
.gfxdeck-search-form button[type="submit"]:hover {
  background: var(--primary-hover);
}

.gfxdeck-search-types {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.gfxdeck-search-types a {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}
.gfxdeck-search-types a:hover {
  color: var(--foreground);
  border-color: var(--border-strong);
}
.gfxdeck-search-types a[aria-current="page"] {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-foreground);
}

.gfxdeck-search-group {
  margin-bottom: 32px;
}
.gfxdeck-search-group__heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.gfxdeck-search-group__heading h2 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--foreground);
}
.gfxdeck-search-group__heading span {
  font-size: 0.8125rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.gfxdeck-search-result-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}
.gfxdeck-search-service-result {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  text-decoration: none;
  color: var(--foreground);
  transition: border-color 150ms ease;
}
.gfxdeck-search-service-result:hover {
  border-color: var(--border-strong);
}
.gfxdeck-search-service-result strong {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--foreground);
}
.gfxdeck-search-service-result span {
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--muted);
}

/* Course Card Category Pill & Course Detail Layout */
.gfxdeck-course-card__category {
  display: inline-flex;
  align-self: flex-start;
  margin: 0;
  padding: 3px 9px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.3;
}
.gfxdeck-course-card__body p {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.gfxdeck-course-detail__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 28px;
  align-items: start;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
}
.gfxdeck-course-detail__image {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #141821;
}
.gfxdeck-course-detail__content {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.gfxdeck-course-detail__content h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--foreground);
}
.gfxdeck-course-detail__description {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--muted);
}
.gfxdeck-course-detail__access-note {
  margin: 4px 0 0;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--item-hover);
  font-size: 0.8125rem;
  color: var(--muted);
}
@media (max-width: 860px) {
  .gfxdeck-course-detail__layout {
    grid-template-columns: 1fr;
    padding: 16px;
  }
}

/* Product Detail Page Refinements (Section 10) */
.px-resource-detail .px-gallery-frame,
.px-service-detail .px-gallery-frame {
  aspect-ratio: 16 / 9 !important;
  background: #141821 !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-lg) !important;
}
.px-resource-detail .px-gallery-main,
.px-service-detail .px-gallery-main {
  object-fit: cover !important;
}
@media (min-width: 1024px) {
  .px-resource-detail.product-experience .resource-detail-grid {
    grid-template-columns: minmax(0, 6fr) minmax(0, 4fr) !important;
    gap: 24px !important;
  }
  .px-resource-detail.product-experience .resource-detail-grid > .resource-detail-right-column {
    position: sticky !important;
    top: calc(var(--gfx-hdr-h, 114px) + 16px) !important;
  }
}
.px-resource-detail .resource-summary-panel {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-lg) !important;
}
.px-resource-detail .resource-panel-actions .resource-btn-primary,
.px-service-detail .px-buy-cta {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: var(--primary-foreground) !important;
  border-radius: var(--radius) !important;
  box-shadow: none !important;
  transition: background-color 150ms ease !important;
}
.px-resource-detail .resource-panel-actions .resource-btn-primary:hover:not(:disabled):not(.is-disabled),
.px-service-detail .px-buy-cta:hover:not(:disabled) {
  background: var(--primary-hover) !important;
  border-color: var(--primary-hover) !important;
}
.px-resource-detail .px-content-nav button[aria-selected="true"],
.px-service-detail .px-content-nav button[aria-selected="true"] {
  border-bottom-color: var(--primary) !important;
  color: var(--foreground) !important;
}
.px-resource-detail .resource-description-section.px-content-tabs,
.px-resource-detail .resource-legal-card {
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-lg) !important;
  background: var(--surface) !important;
  color: var(--foreground-secondary) !important;
}
.px-resource-detail .resource-fullwidth-heading,
.px-resource-detail .resource-legal-card :is(h2, h3, .resource-legal-heading) {
  color: var(--foreground) !important;
}
.px-resource-detail .resource-legal-icon {
  background: var(--item-hover) !important;
  color: var(--muted) !important;
}
.px-resource-detail a.resource-detail-tag-chip {
  text-decoration: none !important;
  background: var(--item-hover) !important;
  border-color: var(--border) !important;
  color: var(--foreground-secondary) !important;
}
.px-resource-detail a.resource-detail-tag-chip:hover,
.px-resource-detail a.resource-detail-tag-chip:focus-visible {
  border-color: var(--primary) !important;
  color: var(--primary) !important;
  background: color-mix(in srgb, var(--primary) 10%, var(--surface)) !important;
}

/* Auth Split-Card & Centered Card Official Logo (Section 14) */
.auth-brand-logo-link,
.auth-card-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  margin-bottom: 12px;
}
.auth-brand-visual,
.auth-card-logo .gfx-logo {
  height: 30px !important;
  width: auto !important;
  max-width: 164px !important;
  object-fit: contain !important;
}
.auth-split-card {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: none !important;
}
.auth-brand-panel {
  background: var(--item-hover) !important;
  border-right: 1px solid var(--border) !important;
  color: var(--foreground) !important;
}
.auth-brand-panel h2 {
  color: var(--foreground) !important;
}
.auth-brand-panel p {
  color: var(--muted) !important;
}
.auth-btn-submit {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: var(--primary-foreground) !important;
  border-radius: var(--radius) !important;
  box-shadow: none !important;
}
.auth-btn-submit:hover {
  background: var(--primary-hover) !important;
  border-color: var(--primary-hover) !important;
  transform: none !important;
  box-shadow: none !important;
}
.auth-eyebrow {
  font-size: 0.75rem !important;
  line-height: 1.4 !important;
}
.auth-form-header > p:not(.auth-eyebrow),
.auth-brand-panel > p:not(.auth-eyebrow) {
  font-size: 0.875rem !important;
  line-height: 1.55 !important;
}
.auth-input-group label,
.auth-form label > span,
.account-form label > span {
  font-size: 0.8125rem !important;
  font-weight: 500 !important;
  color: var(--foreground) !important;
}
.auth-row-options {
  align-items: center !important;
}
.auth-checkbox-label {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  min-height: 32px !important;
  font-size: 0.8125rem !important;
  line-height: 1.45 !important;
  color: var(--muted) !important;
}
.auth-checkbox-label input[type="checkbox"] {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 18px !important;
  height: 18px !important;
  min-height: 18px !important;
  flex: 0 0 18px !important;
  margin: 0 !important;
  border: 1.5px solid var(--border-strong) !important;
  border-radius: 5px !important;
  background-color: var(--surface) !important;
  display: inline-grid !important;
  place-content: center !important;
  cursor: pointer !important;
  transition: background-color 150ms ease, border-color 150ms ease !important;
}
.auth-checkbox-label input[type="checkbox"]::before {
  content: "";
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--primary-foreground);
  border-bottom: 2px solid var(--primary-foreground);
  transform: translateY(-1px) rotate(-45deg) scale(0);
  transition: transform 120ms ease;
}
.auth-checkbox-label input[type="checkbox"]:checked {
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
}
.auth-checkbox-label input[type="checkbox"]:checked::before {
  transform: translateY(-1px) rotate(-45deg) scale(1);
}
.auth-link-red,
.auth-link-red-bold {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 28px !important;
  font-size: 0.8125rem !important;
}
.auth-switch-prompt {
  font-size: 0.8125rem !important;
}
.auth-legal-footer {
  font-size: 0.75rem !important;
  line-height: 1.6 !important;
}
.auth-legal-link {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
}
.input-with-icon .btn-pwd-toggle {
  position: absolute !important;
  right: 8px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  min-height: 34px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: var(--muted) !important;
  cursor: pointer !important;
  transition: color 150ms ease, background-color 150ms ease !important;
}
.input-with-icon .btn-pwd-toggle:hover,
.input-with-icon .btn-pwd-toggle:focus-visible {
  color: var(--foreground) !important;
  background: var(--secondary) !important;
}
.input-with-icon .btn-pwd-toggle:focus-visible {
  outline: 2px solid var(--ring) !important;
  outline-offset: 1px !important;
}
.input-with-icon .btn-pwd-toggle .pwd-toggle-icon[hidden] {
  display: none !important;
}
.auth-divider,
.auth-divider-line {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin: 20px 0 16px !important;
  color: var(--muted) !important;
  font-size: 0.8125rem !important;
  font-weight: 500 !important;
}
.auth-divider::before,
.auth-divider::after,
.auth-divider-line::before,
.auth-divider-line::after {
  content: "" !important;
  flex: 1 !important;
  height: 1px !important;
  background: var(--border) !important;
}
.google-auth-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  width: 100% !important;
  min-height: 46px !important;
  padding: 10px 16px !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  background: var(--surface) !important;
  color: var(--foreground) !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: background-color 150ms ease !important;
}
.google-auth-button:hover,
.google-auth-button:focus-visible {
  border-color: var(--border) !important;
  background: var(--item-active) !important;
}
.google-auth-button:focus-visible {
  outline: 2px solid var(--ring) !important;
  outline-offset: 2px !important;
}
.google-auth-button > span {
  display: inline !important;
  width: auto !important;
  height: auto !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  line-height: 1.4 !important;
}
.google-auth-icon {
  width: 18px !important;
  height: 18px !important;
  flex: 0 0 18px !important;
  display: block !important;
}

/* Homepage Clickable Section Headings & Digital Services Section */
.gfxdeck-section-header h2 .gfxdeck-section-title-link {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 6px;
  transition: color 150ms ease;
}
.gfxdeck-section-header h2 .gfxdeck-section-title-link:hover {
  color: var(--primary);
}
.gfxdeck-section-header h2 .gfxdeck-section-title-link:focus-visible {
  color: var(--primary);
  outline: 2px solid var(--ring);
  outline-offset: 4px;
}
.gfxdeck-home-services-grid {
  margin-top: 4px;
}

/* Pricing Card Admin Metadata Pills & Description */
.pricing-tier-card .tier-meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.pricing-tier-card .tier-meta-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--item-hover);
  color: var(--foreground-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
}
.pricing-tier-card .tier-description {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

/* ---------- 16. Floating Social Buttons Continuous Glow/Pulse & Catalog Promo Spacing ---------- */
.catalog-promo-wrap {
  margin-top: 32px;
}

@keyframes gfx-social-pulse-zalo {
  0%, 100% {
    box-shadow: 0 6px 18px rgb(0 104 255 / 0.28), 0 0 0 0 rgb(0 104 255 / 0.38);
  }
  50% {
    box-shadow: 0 8px 22px rgb(0 104 255 / 0.38), 0 0 0 7px rgb(0 104 255 / 0);
  }
}

@keyframes gfx-social-pulse-telegram {
  0%, 100% {
    box-shadow: 0 6px 18px rgb(36 161 222 / 0.28), 0 0 0 0 rgb(36 161 222 / 0.38);
  }
  50% {
    box-shadow: 0 8px 22px rgb(36 161 222 / 0.38), 0 0 0 7px rgb(36 161 222 / 0);
  }
}

.storefront-floating-contact-zalo {
  animation: gfx-social-pulse-zalo 2.8s cubic-bezier(0.22, 1, 0.36, 1) infinite;
  transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 200ms ease, border-color 200ms ease !important;
}
.storefront-floating-contact-telegram {
  animation: gfx-social-pulse-telegram 2.8s cubic-bezier(0.22, 1, 0.36, 1) 1.4s infinite;
  transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 200ms ease, border-color 200ms ease !important;
}
.storefront-floating-contact-link:hover,
.storefront-floating-contact-link:focus-visible {
  transform: none !important;
}
@media (prefers-reduced-motion: reduce) {
  .storefront-floating-contact-zalo,
  .storefront-floating-contact-telegram {
    animation: none !important;
  }
  .storefront-floating-contact-link:hover,
  .storefront-floating-contact-link:focus-visible {
    transform: none !important;
  }
}

/* ---------- 17. Unified Courses Catalog (/courses) ---------- */
.gfxdeck-courses-catalog {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.gfxdeck-courses-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 0;
}
.gfxdeck-courses-header__main {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.gfxdeck-courses-header__desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
  max-width: 72ch;
}
.gfxdeck-courses-controls {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.gfxdeck-courses-search {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.gfxdeck-courses-search input[type="search"] {
  flex: 1 1 240px;
  min-width: 0;
}
.gfxdeck-courses-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.gfxdeck-courses-subfilters {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  min-width: 0;
}
.gfx-course-card-badges {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: calc(100% - 20px);
  gap: 6px;
  flex-wrap: wrap;
}
.rc-badge-course-online,
.rc-badge-course-resource {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: var(--radius-full);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  backdrop-filter: blur(8px);
}
.rc-badge-course-online {
  background: rgb(15 23 42 / 0.78);
  color: #f8fafc;
  border: 1px solid rgb(255 255 255 / 0.16);
}
.rc-badge-course-resource {
  background: rgb(30 41 59 / 0.78);
  color: #e2e8f0;
  border: 1px solid rgb(255 255 255 / 0.16);
}
.gfx-course-card-excerpt {
  margin: 4px 0 8px;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.gfx-course-card-action {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
  margin-left: auto;
}
@media (max-width: 640px) {
  .gfxdeck-courses-controls {
    padding: 12px 14px;
  }
  .gfxdeck-courses-search button,
  .gfxdeck-courses-search a.gfx-btn {
    flex: 1 1 auto;
  }
}
