/* Customer design system. Shared with the homepage, including account flows. */
body.ah-body.ah-customer-system {
  --ah-body: var(--ah-text);
  --ah-customer-glass: rgba(18, 19, 23, .88);
  --ah-customer-card-surface: rgb(18, 19, 23);
  --ah-customer-glass-edge: rgba(229, 227, 218, .12);
  --ah-customer-glass-edge-hover: rgba(229, 227, 218, .22);
  /* Canonical Tactical Palette Design Tokens (Apple Spatial + Resident Evil Tactical) */
  --tp-bg-matte: #0c0d11;
  --tp-chassis-bg: rgba(12, 13, 17, 0.96);
  --tp-surface-glass: rgba(14, 15, 19, 0.84);
  --tp-surface-card: #14161c;
  --tp-surface-elevated: #1a1d24;
  --tp-surface-sunken: #08090b;

  --tp-text-primary: #F5F5F7;
  --tp-text-secondary: #B8B6AA;
  --tp-text-muted: #7E7D75;

  --tp-status-success: #7A9374;
  --tp-status-success-bg: rgba(122, 147, 116, 0.14);
  --tp-status-warning: #C48E59;
  --tp-status-warning-bg: rgba(196, 142, 89, 0.14);
  --tp-status-danger: #B84A39;
  --tp-status-danger-bg: rgba(184, 74, 57, 0.14);
  --tp-status-info: #648299;
  --tp-status-info-bg: rgba(100, 130, 153, 0.14);

  --tp-border-subtle: rgba(255, 255, 255, 0.08);
  --tp-border-active: rgba(255, 255, 255, 0.18);
  --tp-bevel-top: inset 0 1px 0 rgba(255, 255, 255, 0.10);
  --tp-bevel-bottom: inset 0 -1px 0 rgba(0, 0, 0, 0.65);
  --tp-shadow-chassis: 0 32px 80px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.12);

  /* Apple Cupertino Inset Bento Radii */
  --tp-radius-chassis: 24px;
  --tp-radius-card: 18px;
  --tp-radius-control: 12px;
  --tp-radius-pill: 980px;

  /* Shared customer palette mapped to canonical tokens */
  --ah-bg: var(--tp-bg-matte);
  --ah-surface: var(--tp-surface-card);
  --ah-panel: var(--tp-surface-elevated);
  --ah-paper: var(--tp-text-primary);
  --ah-soft: var(--tp-text-secondary);
  --ah-muted: var(--tp-text-muted);
  --ah-line: var(--tp-border-subtle);
  --ah-control-border: rgba(229, 227, 218, .16);
  --ah-control-border-hover: rgba(229, 227, 218, .36);
  --ah-control-fill: #1a1c22;
  --ah-control-hover: #242730;
  --ah-action: #f0ece1;
  --ah-action-hover: #ffffff;
  --ah-action-fill: #f0ece1;
  --ah-action-fill-hover: #ffffff;
  --ah-action-ink: #0c0d11;
  --ah-accent: #f0ece1;
  --ah-warning: var(--tp-status-warning);
  --ah-success: var(--tp-status-success);
  --ah-success-fill: #273125;
  --ah-success-hover: #313d2f;
  --ah-danger: var(--tp-status-danger);
  --ah-danger-fill: #3b2520;
  --ah-danger-hover: #4d2f28;
  --ah-danger-border-hover: var(--tp-status-danger);
  --ah-monitor: #b8b6aa;
  --ah-signal-ash: #c9c8c0;
  --ah-signal-rust: #9a7057;
  /* 4/8px rhythm; preserve page-specific layout while sharing its scale. */
  --ah-space-xs: 4px;
  --ah-space-sm: 8px;
  --ah-space-md: 12px;
  --ah-space-lg: 16px;
  --ah-space-xl: 24px;
  --ah-space-2xl: 32px;
  --ah-space-3xl: 48px;
  --ah-space-4xl: 64px;
  /* Two-tier Apple Container Alignment & Three-tier Radius System */
  --ah-max-w-grid: 1200px;
  --ah-max-w-reading: 1040px;
  --ah-radius-panel: var(--tp-radius-chassis);
  --ah-radius-card: var(--tp-radius-card);
  --ah-radius-control: var(--tp-radius-control);
  --ah-radius-badge: 4px;
  --ah-radius-tag: 4px;
  --ah-radius-pill: var(--tp-radius-pill);
  /* Tactical Payload & Status Tokens (Zero Neon) */
  --ah-cargo-steel: #6b8cae;
  --ah-cargo-steel-text: #adc2d9;
  --ah-cargo-steel-fill: rgba(107, 140, 174, 0.14);
  --ah-cargo-steel-border: rgba(107, 140, 174, 0.34);
  --ah-vip-brass: #c4a16a;
  --ah-vip-brass-text: #dfc18d;
  --ah-vip-brass-fill: rgba(196, 161, 106, 0.12);
  --ah-vip-brass-border: rgba(196, 161, 106, 0.42);
  --ah-olive-verified: #7A9374;
  --ah-olive-verified-text: #a9bc9a;
  --ah-olive-verified-fill: rgba(122, 147, 116, 0.14);
  --ah-olive-verified-border: rgba(122, 147, 116, 0.38);
  --ah-rust-critical: #B84333;
  --ah-rust-critical-text: #e09f87;
  --ah-rust-critical-fill: rgba(184, 67, 51, 0.14);
  --ah-rust-critical-border: rgba(184, 67, 51, 0.42);
  /* Legacy checkout and ticket markup uses these aliases. */
  --color-surface: var(--ah-panel);
  --color-text: var(--ah-paper);
  --color-error: var(--ah-danger-fill);
  --color-success: var(--ah-success-fill);

  /* Tactical Hardware Depth Tokens (Apple Precision × Post-Apocalyptic Matte) */
  --ah-shadow-card: 0 10px 28px -6px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  --ah-shadow-card-hover: 0 16px 36px -8px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  --ah-shadow-recessed: inset 0 2px 5px rgba(0, 0, 0, 0.65), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  --ah-shadow-keycap: 0 4px 12px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

body.ah-body.ah-customer-system {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  flex-direction: column;
}
body.ah-body.ah-customer-system > .ah-main {
  flex: 1 0 auto;
  width: 100%;
}
body.ah-body.ah-customer-system > .ah-footer {
  flex: 0 0 auto;
}

/* Three roles: display headings, readable copy, monospace file metadata. */
/* Thai marks need open line boxes and neutral tracking to prevent crowding. */
.ah-customer-system.ah-body .ah-main {
  font-family: var(--ah-text);
  font-size: 16px;
  line-height: 1.7;
  padding-inline: 32px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-optical-sizing: auto;
  font-feature-settings: "ccmp" 1, "mark" 1, "mkmk" 1, "cv02" 1, "cv03" 1, "cv04" 1, "cv11" 1, "tnum" 1;
}
.ah-customer-system.ah-body .ah-main :is(h1, h2, h3, h4) {
  font-family: var(--ah-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.38;
  text-wrap: pretty;
  overflow-wrap: anywhere;
  scroll-margin-top: 128px;
}
.ah-customer-system.ah-body .ah-main :is(.ah-section-head h1, .ah-articles-heading h1,
  .ah-article-heading h1, .ah-ticket-page > h1, .ah-checkout > h1,
  .ah-customer-page > h1, .mp-page-title) {
  font-size: clamp(30px, 3.8vw, 48px);
  letter-spacing: -0.01em;
  line-height: 1.35;
}
.ah-customer-system.ah-body .ah-main :is(.ah-auth h1, .ah-sec-header h1) {
  font-size: clamp(26px, 3.2vw, 36px);
  letter-spacing: -0.01em;
  line-height: 1.38;
}
.ah-customer-system.ah-body .ah-main :is(h2) {
  line-height: 1.4;
  letter-spacing: 0em;
}
.ah-customer-system.ah-body .ah-main :is(h3, h4) {
  line-height: 1.45;
  letter-spacing: 0em;
}
.ah-customer-system.ah-body .ah-main :is(.ah-eyebrow, .ah-index, .ah-detail-index,
  .ah-results-count, .ah-owned-date, .ah-card-type, .mp-section-num) {
  font-family: var(--ah-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .02em;
  line-height: 1.5;
  color: var(--ah-soft);
  font-variant-numeric: tabular-nums;
}
.ah-customer-system.ah-body .ah-main :is(.ah-auth-lede, .ah-article-body,
  .ah-detail-description, .ah-artist-bio-preview, .mp-page-subtitle) {
  font-family: var(--ah-text);
  font-size: 16px;
  line-height: 1.72;
  color: var(--ah-soft);
}
.ah-customer-system.ah-body .ah-main :is(.ah-article-body, .ah-detail-description) {
  overflow-wrap: anywhere;
}

/* Global Thai Vowel & Tone Mark Protection (prevent clipping & floating) */
.ah-customer-system.ah-body :is(button, .ah-button, .tp-seg-btn, .tp-checkout-btn,
  .tp-cta-pill-primary, .tp-campaign-cta-btn, .ah-poster-cta-btn, .tp-sync-btn) {
  line-height: 1.45;
  letter-spacing: 0.01em;
}
.ah-customer-system.ah-body :is(.ah-article-excerpt, .ah-home-event-copy p,
  .ah-event-info p, .ah-artist-bio-preview) {
  padding-top: 0.08em;
  padding-bottom: 0.05em;
}

/* Tactile hardware surfaces: Apple precision bento with tactical soot finish */
.ah-customer-system.ah-body .ah-main :is(.ah-event-card, .ah-home-event-card,
  .ah-artist-card, .ah-article-card, .ah-auth, .ah-sec-panel, .ah-summary,
  .ah-ticket-option, .ah-owned-ticket, .ah-ticket-detail, .ah-empty, .ah-filters,
  .mp-section, .mp-upload-zone, .ah-article-images-manager, .ah-portfolio-card) {
  background-color: var(--ah-surface);
  border: 1px solid var(--ah-line);
  border-radius: var(--ah-radius-panel);
  box-shadow: var(--ah-shadow-card);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.2s ease;
}
.ah-customer-system.ah-body .ah-main :is(.ah-article-copy, .ah-artist-copy,
  .ah-event-info, .ah-home-event-copy, .ah-detail-info, .ah-detail-copy) {
  background-color: var(--ah-surface);
  color: var(--ah-paper);
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .ah-customer-system.ah-body .ah-main :is(.ah-artist-card, .ah-article-card,
    .ah-event-card, .ah-owned-ticket, .ah-portfolio-card):hover {
    border-color: var(--ah-control-border-hover);
    box-shadow: var(--ah-shadow-card-hover);
    transform: translateY(-2px);
  }
}
.ah-customer-system.ah-body .ah-main :is(.ah-artist-card, .ah-article-card,
  .ah-event-card, .ah-owned-ticket, .ah-portfolio-card):focus-within {
  border-color: var(--ah-control-border-hover);
  box-shadow: var(--ah-shadow-card-hover);
}
.ah-customer-system.ah-body .ah-main :is(.ah-artist-list-image-placeholder > span,
  .ah-sec-header-icon, .ah-sec-row-icon, .ah-verify-icon, .mp-avatar-ring) {
  background: var(--ah-panel);
  border-color: var(--ah-control-border);
  color: var(--ah-action);
  box-shadow: none;
}
.ah-customer-system.ah-body .ah-main :is(.ah-artist-list-image-link, .ah-article-card-cover,
  .ah-event-art, .mp-avatar-ring) {
  border-radius: var(--ah-radius-control);
}

/* ==========================================================================
   Floating Frosted Capsule Header (Ref 2 & Apple Dynamic Island Architecture)
   ========================================================================== */
.ah-customer-system .ah-header {
  --ah-header-surface: var(--ah-customer-card-surface);
  --ah-header-edge: var(--ah-customer-glass-edge);
  --ah-header-edge-strong: var(--ah-customer-glass-edge-hover);
  --ah-header-control: rgba(255, 255, 255, 0.05);
  --ah-header-control-hover: rgba(255, 255, 255, 0.10);
  --ah-header-control-active: rgba(255, 255, 255, 0.14);
  --ah-header-pearl: var(--ah-paper, #e5e3da);
  position: sticky;
  top: max(14px, env(safe-area-inset-top, 14px));
  z-index: 1000;
  width: min(1140px, calc(100% - 32px));
  height: 56px;
  min-height: 56px;
  margin-inline: auto;
  padding: 0 14px 0 20px;
  border-radius: 980px;
  background: var(--ah-header-surface);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid var(--ah-header-edge);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.55),
    0 4px 12px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-sizing: border-box;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.ah-customer-system .ah-header:hover {
  border-color: var(--ah-header-edge-strong);
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.65),
    0 6px 16px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.ah-customer-system .ah-brand-logo {
  display: block;
  height: 22px !important;
  width: auto !important;
  max-width: 165px !important;
  object-fit: contain;
}

/* Zone 1: Brand Logo */
.ah-customer-system .ah-brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  z-index: 2;
}

.ah-customer-system .ah-header-actions {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

/* Zone 2: Centered Nav Cluster (Symmetrical Apple Navigation Island) */
.ah-customer-system .ah-nav-center-cluster {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(4px, 1vw, 8px);
  flex: 1 1 auto;
  min-width: 0;
  margin-inline: auto;
  z-index: 1;
}

.ah-customer-system .ah-header .ah-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0;
  background: transparent;
  border: none;
  min-width: 0;
}

.ah-customer-system .ah-header .ah-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 6px clamp(8px, 1vw, 14px);
  border-radius: 980px;
  color: var(--ah-soft);
  font-size: clamp(12px, 0.95vw, 13.5px);
  font-weight: 500;
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: color 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.ah-customer-system .ah-header .ah-nav a:hover {
  color: var(--ah-header-pearl);
  background: var(--ah-header-control-hover);
}

.ah-customer-system .ah-header .ah-nav a[aria-current="page"] {
  color: var(--ah-header-pearl);
  background: var(--ah-header-control-active);
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* Shop Tactile Capsule Button */
.ah-customer-system .ah-header .tp-nav-shop-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px clamp(10px, 1.2vw, 16px);
  border-radius: 980px;
  background: #ffffff;
  color: #08090c;
  border: 1px solid rgba(255, 255, 255, 0.85);
  font-family: var(--ah-text, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Anuphan", "IBM Plex Sans Thai", system-ui, sans-serif);
  font-size: clamp(12px, 0.95vw, 13px);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  flex: 0 0 auto;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.25),
    0 4px 12px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(0, 0, 0, 0.12);
  transition: transform 0.16s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.16s ease,
              box-shadow 0.16s ease,
              border-color 0.16s ease;
  white-space: nowrap;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.ah-customer-system .ah-header .tp-nav-shop-pill:hover {
  background: #ffffff;
  transform: translateY(-1px) scale(1.02);
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.2),
    0 6px 18px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

.ah-customer-system .ah-header .tp-nav-shop-pill:active {
  transform: scale(0.97);
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.4),
    inset 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: transform 0.08s ease-out;
}

.ah-customer-system .ah-header .tp-nav-shop-pill[aria-current="page"] {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.4), 0 4px 14px rgba(0, 0, 0, 0.5);
}

/* Zone 3: Right Account Capsule */
.ah-customer-system .ah-header .ah-account {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  z-index: 2;
  flex: 0 0 auto;
}

.ah-customer-system .ah-user-capsule {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 4px 12px 4px 5px;
  border-radius: 980px;
  background: var(--ah-header-control);
  border: 1px solid var(--ah-header-edge);
  color: var(--ah-header-pearl);
  font-family: var(--ah-mono);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 210px;
}

.ah-customer-system .ah-user-capsule:hover {
  background: var(--ah-header-control-hover);
  color: var(--ah-header-pearl);
  border-color: var(--ah-header-edge-strong);
  transform: scale(1.02);
}

.ah-customer-system .ah-user-capsule .ah-user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--ah-header-control-active);
  color: var(--ah-header-pearl);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.ah-customer-system .ah-user-capsule .ah-user-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: clamp(80px, 12vw, 150px);
}

.ah-customer-system .ah-user-capsule .ah-user-gear-icon {
  flex-shrink: 0;
  opacity: 0.75;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.ah-customer-system .ah-user-capsule:hover .ah-user-gear-icon {
  transform: rotate(45deg);
  opacity: 1;
}

.ah-customer-system .ah-header .ah-wallet {
  min-height: 36px;
  padding: 5px 14px;
  font-size: 12.5px;
  border-color: var(--ah-header-edge);
  background: var(--ah-header-control);
  color: var(--ah-header-pearl);
}

.ah-customer-system .ah-header .ah-wallet:hover {
  border-color: var(--ah-header-edge-strong);
  background: var(--ah-header-control-hover);
  color: var(--ah-header-pearl);
}

/* Fluid Desktop, Laptop & Tablet Harmony (768px - 1080px) */
@media (min-width: 768px) and (max-width: 1080px) {
  .ah-customer-system .ah-header {
    width: calc(100% - 32px);
    height: 56px;
    min-height: 56px;
    padding: 0 12px 0 16px;
    gap: 8px;
  }
  .ah-customer-system .ah-brand-logo {
    height: 20px !important;
    width: auto !important;
    max-width: 150px !important;
  }
  .ah-customer-system .ah-nav-center-cluster {
    display: flex !important;
    gap: 4px;
  }
  .ah-customer-system .ah-header .ah-nav {
    gap: 1px;
  }
  .ah-customer-system .ah-header .ah-nav a {
    min-height: 32px;
    padding: 4px 8px;
    font-size: 12px;
  }
  .ah-customer-system .ah-header .tp-nav-shop-pill {
    min-height: 32px;
    padding: 4px 11px;
    font-size: 11.5px;
  }
  .ah-customer-system .ah-header-actions {
    gap: 6px;
  }
  .ah-customer-system .ah-user-capsule .ah-user-name {
    max-width: 80px;
  }
  .ah-customer-system .ah-mobile-explore {
    display: none !important;
  }
}

@media (min-width: 768px) and (max-width: 880px) {
  .ah-customer-system .ah-brand-logo {
    height: 18px !important;
    width: auto !important;
    max-width: 135px !important;
  }
  .ah-customer-system .ah-header .ah-nav a {
    padding: 4px 6px;
    font-size: 11.5px;
  }
  .ah-customer-system .ah-header .tp-nav-shop-pill {
    padding: 4px 8px;
    font-size: 11px;
  }
}

/* Mobile Symmetrical Layout (< 768px) */
@media (max-width: 767px) {
  .ah-customer-system .ah-header {
    top: max(8px, env(safe-area-inset-top, 8px));
    width: calc(100% - 20px) !important;
    max-width: calc(100vw - 20px) !important;
    height: 52px !important;
    min-height: 52px !important;
    padding: 0 10px 0 16px !important;
    margin: 8px auto 12px !important;
    border-radius: 980px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    box-sizing: border-box !important;
    gap: clamp(6px, 1.5vw, 12px) !important;
    overflow: visible !important;
  }
  .ah-customer-system .ah-brand {
    display: inline-flex !important;
    align-items: center !important;
    flex: 0 1 auto !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }
  .ah-customer-system .ah-brand-logo {
    height: 18px !important;
    width: auto !important;
    max-width: clamp(96px, 26vw, 132px) !important;
    object-fit: contain !important;
    display: block !important;
  }
  .ah-customer-system .ah-nav-center-cluster {
    display: none !important;
  }
  .ah-customer-system .ah-header-actions {
    display: inline-flex !important;
    align-items: center !important;
    flex: 0 0 auto !important;
    gap: clamp(4px, 1.2vw, 6px) !important;
    margin-left: auto !important;
  }
  .ah-customer-system .ah-header .ah-account {
    display: inline-flex !important;
    align-items: center !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    gap: 0 !important;
  }
  .ah-customer-system .ah-mobile-explore > summary,
  .ah-customer-system .ah-header .ah-cart-capsule,
  .ah-customer-system .ah-header .ah-bell-capsule,
  .ah-customer-system .ah-header .ah-user-capsule,
  .ah-customer-system .ah-header .ah-login-link {
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    border-radius: 50% !important;
    padding: 0 !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
  }
  .ah-customer-system .ah-user-capsule .ah-user-avatar,
  .ah-customer-system .ah-user-capsule .ah-user-name {
    display: none !important;
  }
  .ah-customer-system .ah-user-capsule .ah-user-gear-icon {
    display: block !important;
    width: 18px !important;
    height: 18px !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .ah-customer-system .ah-header .ah-login-link span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .ah-customer-system .ah-header .ah-cart-badge,
  .ah-customer-system .ah-header .ah-bell-badge {
    top: -3px !important;
    right: -3px !important;
    min-width: 16px !important;
    height: 16px !important;
    font-size: 10px !important;
    padding: 0 4px !important;
  }
}

/* ==========================================================================
   Apple Inset Grouped Settings Modal Sheet
   ========================================================================== */
.ah-settings-dialog {
  border: none;
  background: transparent;
  padding: 0;
  margin: auto;
  max-width: 100vw;
  max-height: 100vh;
  max-height: 100dvh;
  outline: none;
  z-index: 2000;
}

.ah-settings-dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: ahBackdropFade 0.25s ease-out;
}

@keyframes ahBackdropFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.ah-settings-sheet {
  width: min(520px, calc(100vw - 32px));
  max-height: 85vh;
  max-height: 85dvh;
  background: rgba(12, 13, 17, 0.98);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 28px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  overscroll-behavior: contain;
  box-sizing: border-box;
  animation: ahSheetScaleUp 0.26s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes ahSheetScaleUp {
  from { opacity: 0; transform: scale(0.96) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.ah-sheet-handle {
  display: none;
  width: 36px;
  height: 5px;
  border-radius: 980px;
  background: rgba(255, 255, 255, 0.24);
  margin: 10px auto 4px;
}

.ah-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.ah-sheet-title {
  margin: 0;
  font-family: var(--ah-display);
  font-size: 18px;
  font-weight: 700;
  color: #f0ece1;
  letter-spacing: -0.01em;
}

.ah-sheet-close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(240, 236, 225, 0.65);
  cursor: pointer;
  position: relative;
  touch-action: manipulation;
  transition: all 0.18s ease;
}

.ah-sheet-close-btn::before {
  content: "";
  position: absolute;
  inset: -6px;
}

.ah-sheet-close-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.ah-sheet-scrollable {
  padding: 20px 24px;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  scroll-padding-block: 16px;
  scrollbar-width: thin;
  scrollbar-color: rgba(230, 228, 220, 0.18) transparent;
  scrollbar-gutter: stable;
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1 1 auto;
  min-height: 0;
}

/* ==========================================================================
   Apple ID Inset Profile Card in Settings Sheet (Apple Tactical Dark)
   ========================================================================== */
.ah-settings-dialog .ah-profile-card {
  position: relative;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  padding: 18px 20px;
  margin-bottom: 4px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ah-settings-dialog .ah-profile-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.ah-settings-dialog .ah-profile-card-glow {
  display: none !important;
}

.ah-settings-dialog .ah-profile-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ah-settings-dialog .ah-profile-avatar {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ah-display);
  font-size: 18px;
  font-weight: 700;
  color: #f0ece1;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  letter-spacing: 0.02em;
}

.ah-settings-dialog .ah-profile-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  flex: 1;
}

.ah-settings-dialog .ah-profile-name {
  margin: 0;
  font-family: var(--ah-display);
  font-size: 17px;
  font-weight: 700;
  color: #f0ece1;
  letter-spacing: -0.015em;
  line-height: 1.25;
  word-break: break-word;
}

.ah-settings-dialog .ah-profile-badges-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.ah-settings-dialog .ah-profile-badges-row .ah-role-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 8px;
  border-radius: 6px;
  font-family: var(--ah-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* Zero-Neon Role Badges */
.ah-settings-dialog .ah-role-owner {
  background: rgba(196, 81, 75, 0.15) !important;
  border: 1px solid rgba(196, 81, 75, 0.35) !important;
  color: #c4514b !important;
}

.ah-settings-dialog .ah-role-crew {
  background: rgba(122, 147, 116, 0.15) !important;
  border: 1px solid rgba(122, 147, 116, 0.35) !important;
  color: #7a9374 !important;
}

.ah-settings-dialog .ah-role-artist {
  background: rgba(100, 210, 255, 0.14) !important;
  border: 1px solid rgba(100, 210, 255, 0.32) !important;
  color: #64d2ff !important;
}

.ah-settings-dialog .ah-role-member {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: #f0ece1 !important;
}

.ah-settings-dialog .ah-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 22px;
  padding: 2px 8px;
  border-radius: 6px;
  font-family: var(--ah-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.ah-settings-dialog .ah-status-verified {
  background: rgba(122, 147, 116, 0.14);
  border: 1px solid rgba(122, 147, 116, 0.32);
  color: #7a9374;
}

.ah-settings-dialog .ah-status-unverified {
  background: rgba(196, 142, 89, 0.14);
  border: 1px solid rgba(196, 142, 89, 0.32);
  color: #c48e59;
}

.ah-settings-dialog .ah-status-2fa {
  background: rgba(100, 210, 255, 0.14);
  border: 1px solid rgba(100, 210, 255, 0.32);
  color: #64d2ff;
}

.ah-settings-dialog .ah-profile-email-box {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 2px;
  max-width: 100%;
  box-sizing: border-box;
}

.ah-settings-dialog .ah-profile-email-box svg {
  color: rgba(240, 236, 225, 0.45);
  flex-shrink: 0;
}

.ah-settings-dialog .ah-profile-email-text {
  font-family: var(--ah-mono);
  font-size: 11.5px;
  color: rgba(240, 236, 225, 0.85);
  letter-spacing: 0.015em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ah-settings-dialog .ah-settings-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ah-settings-dialog .ah-group-label {
  font-family: var(--ah-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(240, 236, 225, 0.45);
  text-transform: uppercase;
  padding-left: 6px;
}

.ah-settings-dialog .ah-group-list {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.ah-settings-dialog .ah-settings-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  min-height: 56px;
  text-decoration: none;
  color: #f0ece1;
  font-size: 13.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  background: transparent;
  width: 100%;
  box-sizing: border-box;
  text-align: left;
  border-radius: 0;
}

.ah-settings-dialog .ah-settings-item:last-child {
  border-bottom: none;
}

.ah-settings-dialog .ah-settings-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.ah-settings-dialog .ah-settings-item:active {
  background: rgba(255, 255, 255, 0.09);
}

/* Apple Inset Squircle Icon Glyph Frames (32x32px) */
.ah-item-squircle {
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.ah-settings-item:hover .ah-item-squircle {
  transform: scale(1.06);
}

.ah-item-squircle.is-olive {
  background: rgba(122, 147, 116, 0.16);
  color: #7a9374;
  border: 1px solid rgba(122, 147, 116, 0.3);
}

.ah-item-squircle.is-amber {
  background: rgba(196, 142, 89, 0.16);
  color: #c48e59;
  border: 1px solid rgba(196, 142, 89, 0.3);
}

.ah-item-squircle.is-crimson {
  background: rgba(196, 81, 75, 0.16);
  color: #c4514b;
  border: 1px solid rgba(196, 81, 75, 0.3);
}

.ah-item-squircle.is-cyan {
  background: rgba(100, 210, 255, 0.14);
  color: #64d2ff;
  border: 1px solid rgba(100, 210, 255, 0.28);
}

.ah-item-squircle.is-slate {
  background: rgba(255, 255, 255, 0.07);
  color: #f0ece1;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.ah-settings-dialog .ah-item-text {
  display: block;
  font-weight: 600;
  line-height: 1.35;
  color: #f0ece1;
}

.ah-settings-dialog .ah-item-copy {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.ah-settings-dialog .ah-item-description {
  display: block;
  color: rgba(240, 236, 225, 0.55);
  font-size: 11.5px;
  font-weight: 400;
  line-height: 1.4;
}

.ah-settings-dialog .ah-item-badge {
  font-family: var(--ah-mono);
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 980px;
  background: rgba(196, 142, 89, 0.15);
  border: 1px solid rgba(196, 142, 89, 0.3);
  color: #c48e59;
}

.ah-settings-dialog .ah-item-arrow {
  color: rgba(240, 236, 225, 0.3);
  font-size: 16px;
  transition: transform 0.15s ease, color 0.15s ease;
}

.ah-settings-dialog .ah-settings-item:hover .ah-item-arrow {
  color: rgba(240, 236, 225, 0.7);
  transform: translateX(2px);
}

/* Grounded Sticky Bottom Dock for Logout */
.ah-settings-dialog .ah-sheet-dock {
  padding: 14px 24px max(16px, env(safe-area-inset-bottom, 16px));
  background: rgba(10, 11, 14, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.ah-settings-dialog .ah-sheet-dock form {
  margin: 0;
  width: 100%;
}

.ah-settings-dialog .ah-logout-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  width: 100%;
  padding: 12px 16px;
  min-height: 48px;
  border-radius: 12px;
  background: rgba(196, 81, 75, 0.08);
  border: 1px solid rgba(196, 81, 75, 0.24);
  color: #f0ece1;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
  box-sizing: border-box;
}

.ah-settings-dialog .ah-logout-btn:hover {
  background: rgba(196, 81, 75, 0.16);
  border-color: rgba(196, 81, 75, 0.4);
  transform: translateY(-1px);
}

.ah-settings-dialog .ah-logout-btn:active {
  transform: scale(0.99);
}

.ah-settings-dialog .ah-logout-btn .ah-item-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
  text-align: left;
}

.ah-settings-dialog .ah-logout-btn .ah-item-text {
  font-size: 13.5px;
  font-weight: 700;
  color: #c4514b;
}

.ah-settings-dialog .ah-logout-btn .ah-item-description {
  font-size: 11.5px;
  color: rgba(240, 236, 225, 0.5);
}

@media (max-width: 767px) {
  .ah-settings-dialog {
    margin: 0 !important;
    top: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .ah-settings-sheet {
    width: 100% !important;
    border-radius: 28px 28px 0 0 !important;
    max-height: 88vh !important;
    max-height: 88dvh !important;
    border-bottom: none !important;
    border-left: none !important;
    border-right: none !important;
    padding-bottom: 0 !important;
    animation: ahSheetSlideUp 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }
  @keyframes ahSheetSlideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
  }
  .ah-sheet-handle {
    display: block !important;
  }
}

/* ==========================================================================
   iOS Floating Bottom Tab Bar (Mobile Only)
   ========================================================================== */
.ah-mobile-tab-bar {
  display: none;
}

@media (max-width: 767px) {
  /* Default safe padding on main content to prevent tab bar overlap */
  body.ah-customer-system .ah-main {
    padding-bottom: calc(76px + env(safe-area-inset-bottom, 16px));
  }

  /* Suppress global mobile tab bar on pages with a dedicated primary CTA dock (Fitts's Law) */
  body:has(:is(.ah-mobile-docked-bar, .tp-detail-docked-bar, .ah-checkout-dock, .ah-order-dock, .ah-mobile-order-dock)) .ah-mobile-tab-bar {
    display: none !important;
  }
  body:has(:is(.ah-mobile-docked-bar, .tp-detail-docked-bar, .ah-checkout-dock, .ah-mobile-order-dock)) .ah-main {
    padding-bottom: calc(96px + env(safe-area-inset-bottom, 16px)) !important;
  }

  .ah-mobile-tab-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1200;
    height: calc(56px + env(safe-area-inset-bottom, 0px));
    padding: 4px 8px max(6px, env(safe-area-inset-bottom, 6px));
    box-sizing: border-box;
    background: rgba(14, 15, 19, 0.94);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    border-top: 1px solid rgba(229, 227, 218, 0.14);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: space-around;
  }

  .ah-tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    flex: 1;
    min-height: 48px;
    min-width: 48px;
    color: var(--tp-muted);
    text-decoration: none;
    transition: color 0.18s ease, transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-radius: 12px;
    position: relative;
    user-select: none;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  .ah-tab-item:active {
    transform: scale(0.92);
  }

  .ah-tab-icon-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
  }

  .ah-tab-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  .ah-tab-badge {
    position: absolute;
    top: -4px;
    right: -8px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    box-sizing: border-box;
    border-radius: 99px;
    background: #c93b2b;
    color: #ffffff;
    font-family: var(--ah-mono, ui-monospace, monospace);
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
    pointer-events: none;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  .ah-tab-label {
    font-family: var(--ah-mono);
    font-size: 10px;
    letter-spacing: 0.03em;
    font-weight: 500;
    line-height: 1;
  }

  .ah-tab-item:hover,
  .ah-tab-item.is-active {
    color: #ffffff;
  }

  .ah-tab-item.is-active .ah-tab-icon {
    transform: scale(1.08);
    stroke: #7A9374;
  }

  .ah-tab-item.is-active .ah-tab-label {
    font-weight: 700;
    color: #ffffff;
  }

  .ah-tab-item.is-active::after {
    content: '';
    display: block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #7A9374;
    box-shadow: 0 0 6px rgba(122, 147, 116, 0.8);
    margin-top: -1px;
  }
}

.ah-mobile-order-dock { display: none; }

@media (max-width: 767px) {
  .ah-mobile-order-dock {
    position: fixed;
    inset: auto 0 0;
    z-index: 1201;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(132px, auto);
    align-items: center;
    gap: 12px;
    min-height: 72px;
    padding: 10px 14px max(10px, env(safe-area-inset-bottom, 10px));
    border-top: 1px solid rgba(229, 227, 218, 0.16);
    background: rgba(14, 15, 19, 0.97);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.48);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    box-sizing: border-box;
  }

  body:has(.ah-mobile-order-dock) .ah-main {
    padding-bottom: calc(104px + env(safe-area-inset-bottom, 16px)) !important;
  }

  .ah-mobile-order-dock__total {
    display: grid;
    gap: 3px;
    min-width: 0;
  }

  .ah-mobile-order-dock__total > span {
    color: var(--tp-muted, #a4a5a8);
    font-size: 11px;
    line-height: 1.35;
  }

.ah-mobile-order-dock__total > .ah-mobile-order-dock__step {
  color: var(--ah-muted, #a4a5a8);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.025em;
}

  .ah-mobile-order-dock__total > strong {
    color: var(--ah-paper, #e5e3da);
    font-size: 18px;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
  }

  .ah-mobile-order-dock__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 8px 14px;
    border: 1px solid rgba(229, 227, 218, 0.24);
    border-radius: 14px;
    background: var(--ah-paper, #e5e3da);
    color: #151619;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    touch-action: manipulation;
    box-sizing: border-box;
  }

  .ah-mobile-order-dock__button:focus-visible {
    outline: 2px solid #f2cf55;
    outline-offset: 3px;
  }

  .ah-mobile-order-dock__button[aria-disabled="true"],
  .ah-mobile-order-dock__button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
  }
}

.ah-event-results {
  transition: opacity .18s ease;
}
.ah-event-results[aria-busy="true"] {
  opacity: .55;
  pointer-events: none;
}
.ah-event-results:focus { outline: none; }

/* Tickets: clean reading surface with salvage details kept to the edges. */
.ah-customer-system.ah-body .ah-main .ah-owned-ticket-page {
  width: min(900px, 100%);
}
.ah-customer-system.ah-body .ah-main .ah-ticket-section-title {
  margin: 36px 0 14px;
  padding-top: 18px;
  border-top: 1px solid var(--ah-line);
  font-size: clamp(19px, 2.4vw, 23px);
}
.ah-customer-system.ah-body .ah-main .ah-owned-ticket {
  position: relative;
  padding: 20px;
  border-color: var(--ah-control-border);
  border-radius: var(--ah-radius-panel);
  background: var(--ah-surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 2px 4px rgba(0, 0, 0, .18);
  transition: border-color .16s ease, box-shadow .16s ease;
}
.ah-customer-system.ah-body .ah-main a.ah-owned-ticket:hover,
.ah-customer-system.ah-body .ah-main a.ah-owned-ticket:focus-visible {
  border-color: var(--ah-control-border-hover);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 3px 8px rgba(0, 0, 0, .24);
}
.ah-customer-system.ah-body .ah-main a.ah-owned-ticket:focus-visible {
  outline: 2px solid var(--ah-action);
  outline-offset: 3px;
}
.ah-customer-system.ah-body .ah-main .ah-owned-ticket--order {
  cursor: default;
}
.ah-customer-system.ah-body .ah-main .ah-owned-ticket h3 {
  margin: 8px 0;
  font-size: clamp(18px, 2.4vw, 23px);
  line-height: 1.45;
}
.ah-customer-system.ah-body .ah-main .ah-owned-ticket p {
  margin: 8px 0;
  color: var(--ah-soft);
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.ah-customer-system.ah-body .ah-main .ah-demo-badge[data-ticket-state="valid"] {
  border-color: color-mix(in srgb, var(--ah-success) 42%, var(--ah-line));
  background: var(--ah-success-fill);
  color: var(--ah-success);
}
.ah-customer-system.ah-body .ah-main .ah-demo-badge[data-ticket-state="checked-in"] {
  border-color: var(--ah-control-border);
  background: var(--ah-panel);
  color: var(--ah-soft);
}
.ah-customer-system.ah-body .ah-main .ah-demo-badge[data-ticket-state="refund-pending"] {
  border-color: color-mix(in srgb, var(--ah-warning) 48%, var(--ah-line));
  background: color-mix(in srgb, var(--ah-warning) 12%, var(--ah-surface));
  color: var(--ah-warning);
}
.ah-customer-system.ah-body .ah-main .ah-demo-badge[data-ticket-state="revoked"] {
  border-color: color-mix(in srgb, var(--ah-danger) 48%, var(--ah-line));
  background: var(--ah-danger-fill);
  color: var(--ah-danger);
}
.ah-customer-system.ah-body .ah-main .ah-ticket-pass {
  border-color: rgba(23, 23, 25, .14);
  border-radius: var(--ah-radius-panel);
  box-shadow: 0 3px 10px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .7);
}
.ah-customer-system.ah-body .ah-main .ah-ticket-qr {
  border-radius: var(--ah-radius-control);
}
.ah-customer-system.ah-body .ah-main .ah-ticket-qr-status {
  max-width: 100%;
  padding: 8px 10px;
  border: 1px solid rgba(23, 23, 25, .16);
  border-radius: 4px;
  background: #f1f0eb;
  color: #343431;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.ah-customer-system.ah-body .ah-main .ah-ticket-qr-status--used {
  border-color: #8e4d39;
  background: #8e4d39;
  color: #fff;
}
@media (max-width: 480px) {
  .ah-customer-system.ah-body .ah-main .ah-owned-ticket { padding: 16px; }
  .ah-customer-system.ah-body .ah-main .ah-ticket-section-title { margin-top: 28px; }
}

.ah-mobile-drawer-trigger {
  position: relative;
  z-index: 1201;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: auto;
  min-width: 76px;
  min-height: 36px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 980px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--ah-paper);
  font: 600 12px/1 var(--ah-text);
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
  -webkit-tap-highlight-color: transparent;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.ah-mobile-drawer-trigger::before {
  content: "MENU";
  font-family: var(--ah-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--tp-chalk);
}
.ah-mobile-drawer[open] .ah-mobile-drawer-trigger::before {
  content: "CLOSE";
}
.ah-mobile-drawer-trigger:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
  color: #ffffff;
}
.ah-mobile-drawer-trigger:active {
  transform: scale(0.96);
}
.ah-mobile-drawer-trigger::-webkit-details-marker { display: none; }
.ah-mobile-drawer-trigger:focus-visible,
.ah-side-drawer :is(a, button):focus-visible {
  outline: 2px solid var(--ah-action-hover);
  outline-offset: 3px;
}
.ah-mobile-drawer-glyph {
  display: flex;
  flex: 0 0 16px;
  flex-direction: column;
  justify-content: space-between;
  width: 16px;
  height: 12px;
}
.ah-mobile-drawer-glyph span {
  width: 100%;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .2s ease, opacity .16s ease;
}
.ah-mobile-drawer[open] .ah-mobile-drawer-glyph span:first-child { transform: translateY(5px) rotate(45deg); }
.ah-mobile-drawer[open] .ah-mobile-drawer-glyph span:nth-child(2) { opacity: 0; }
.ah-mobile-drawer[open] .ah-mobile-drawer-glyph span:last-child { transform: translateY(-5px) rotate(-45deg); }
.ah-mobile-drawer-scrim {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgba(0, 0, 0, .66);
  opacity: 0;
  visibility: hidden;
  transition: opacity .24s ease, visibility .24s ease;
}
.ah-mobile-drawer[open] .ah-mobile-drawer-scrim { opacity: 1; visibility: visible; }
.ah-side-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 1202;
  display: flex;
  flex-direction: column;
  gap: 0;
  width: min(480px, calc(100vw - 24px));
  height: 100vh;
  height: 100dvh;
  padding: max(14px, env(safe-area-inset-top)) 20px max(16px, env(safe-area-inset-bottom));
  overflow: auto;
  overscroll-behavior: contain;
  border-left: 1px solid var(--ah-control-border);
  background:
    repeating-linear-gradient(0deg, transparent 0 3px, rgba(229, 227, 218, .025) 3px 4px),
    radial-gradient(rgba(229, 227, 218, .08) .55px, transparent .8px) 0 0 / 5px 5px,
    linear-gradient(155deg, var(--ah-panel), var(--ah-bg) 68%);
  color: var(--ah-paper);
  box-shadow: -22px 0 64px rgba(0, 0, 0, .48), inset 1px 0 rgba(229, 227, 218, .08);
  transform: translateX(102%);
  visibility: hidden;
  transition: transform .34s cubic-bezier(.2, .75, .25, 1), visibility .34s;
}
.ah-mobile-drawer[open] .ah-side-drawer { transform: translateX(0); visibility: visible; }
.ah-side-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0 16px;
  border-bottom: 1px solid var(--ah-line);
}
.ah-side-drawer-kicker,
.ah-side-drawer-label,
.ah-side-drawer-foot,
.ah-side-drawer-monitor {
  color: var(--ah-soft);
  font: 11px var(--ah-mono);
  letter-spacing: .08em;
}
.ah-side-drawer-head h2 {
  margin: 3px 0 0;
  color: var(--ah-paper);
  font: 600 23px/1.2 var(--ah-display);
  letter-spacing: -.025em;
}
.ah-side-drawer-close {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--ah-control-border);
  border-radius: var(--ah-radius-control);
  background: var(--ah-control-fill);
  color: var(--ah-paper);
  font: 300 26px/1 var(--ah-text);
  cursor: pointer;
}
.ah-side-drawer-monitor {
  display: grid;
  grid-template-columns: auto minmax(40px, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  margin: 12px 0 20px;
  padding: 0 10px;
  border: 1px solid var(--ah-line);
  background: rgba(0, 0, 0, .18);
  font-size: 9px;
  white-space: nowrap;
}
.ah-side-drawer-monitor svg { width: 100%; height: 20px; overflow: visible; }
.ah-side-drawer-monitor path {
  fill: none;
  stroke: var(--ah-monitor);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 3px var(--ah-monitor));
  animation: ah-monitor-pulse 2.8s ease-in-out infinite;
}
.ah-side-drawer-nav,
.ah-side-drawer-account { display: grid; gap: 6px; }
.ah-side-drawer-nav { padding-bottom: 18px; border-bottom: 1px solid var(--ah-line); }
.ah-side-drawer-label { margin: 0 0 5px; text-transform: uppercase; }
.ah-side-drawer-nav a,
.ah-side-drawer-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid var(--ah-line);
  background: rgba(21, 23, 19, .72);
  color: var(--ah-paper);
  font: 500 14px/1.4 var(--ah-text);
  text-decoration: none;
  transition: border-color .16s ease, background-color .16s ease;
}
.ah-side-drawer-nav a:hover,
.ah-side-drawer-action:hover { border-color: var(--ah-control-border-hover); background: var(--ah-control-hover); }
.ah-side-drawer-nav a > span:last-child { color: var(--ah-muted); font: 11px var(--ah-mono); }
.ah-side-drawer-account { padding-top: 18px; }
.ah-side-drawer-user {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--ah-line);
  background: rgba(0, 0, 0, .2);
}
.ah-side-drawer-user-mark {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--ah-control-border);
  color: var(--ah-action);
  font: 12px var(--ah-mono);
}
.ah-side-drawer-user > span:last-child { display: grid; min-width: 0; gap: 3px; }
.ah-side-drawer-user strong { overflow: hidden; color: var(--ah-paper); font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.ah-side-drawer-user small { color: var(--ah-muted); font: 10px var(--ah-mono); letter-spacing: .06em; }
.ah-side-drawer-primary { border-color: var(--ah-action); background: var(--ah-control-hover); }
.ah-side-drawer-logout { margin-top: 5px; }
.ah-side-drawer-logout button {
  width: 100%;
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid var(--ah-line);
  background: transparent;
  color: var(--ah-danger-border-hover);
  font: 500 14px var(--ah-text);
  text-align: left;
  cursor: pointer;
}
.ah-side-drawer-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 22px;
  font-size: 9px;
}
.ah-body.ah-mobile-drawer-open { overflow: hidden; }
.ah-body.ah-mobile-drawer-open .ah-header {
  background: var(--ah-header-surface);
  border-color: var(--ah-header-edge-strong);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  backdrop-filter: blur(28px) saturate(180%);
  box-shadow:
    0 20px 48px rgba(0, 0, 0, .65),
    0 6px 16px rgba(0, 0, 0, .35),
    inset 0 1px 0 rgba(255, 255, 255, .12);
}
@media (min-width: 1024px) {
  .ah-side-drawer { width: min(480px, calc(100vw - 32px)); padding-inline: 28px; }
}
@keyframes ah-monitor-pulse {
  0%, 82%, 100% { opacity: .72; }
  86% { opacity: 1; }
}
@media (max-width: 419px) {
  .ah-side-drawer { padding-inline: 16px; }
  .ah-side-drawer-foot { font-size: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .ah-mobile-drawer-glyph span,
  .ah-mobile-drawer-scrim,
  .ah-side-drawer,
  .ah-side-drawer-monitor path { transition: none; animation: none; }
  .ah-mobile-drawer[open] .ah-side-drawer { transform: none; }
}

/* One control shape; primary actions use ash, secondary actions use charcoal. */
.ah-customer-system.ah-body .ah-main :is(.ah-button, .ah-btn-tactile, .ah-btn-secondary,
  .ah-article-cta, .ah-artist-event-link, .ah-filter-submit, .mp-submit-btn,
  .mp-btn-secondary, .ah-pagination a, .ah-event-media-switch button) {
  min-height: 44px;
  border-radius: var(--ah-radius-control);
  font-family: var(--ah-text);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  border: 1px solid var(--ah-control-border);
  background: var(--ah-control-fill);
  color: var(--ah-paper);
  box-shadow: none;
  text-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  touch-action: manipulation;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.ah-customer-system.ah-body .ah-main :is(.ah-button-bright, .ah-btn-primary,
  .ah-btn-tactile:not(.ah-btn-secondary), .ah-article-cta, .ah-filter-submit,
  .mp-submit-btn) {
  background: var(--ah-action-fill);
  border-color: var(--ah-action-fill);
  color: var(--ah-action-ink);
  font-weight: 600;
}
.ah-customer-system.ah-body .ah-main :is(.ah-button, .ah-btn-tactile, .ah-btn-secondary,
  .ah-artist-event-link, .mp-btn-secondary, .ah-pagination a,
  .ah-event-media-switch button):hover:not(:disabled) {
  background: var(--ah-control-hover);
  border-color: var(--ah-control-border-hover);
  color: var(--ah-paper);
  box-shadow: none;
  transform: none;
}
.ah-customer-system.ah-body .ah-main :is(.ah-button-bright, .ah-btn-primary,
  .ah-btn-tactile:not(.ah-btn-secondary), .ah-article-cta, .ah-filter-submit,
  .mp-submit-btn):hover:not(:disabled) {
  background: var(--ah-action-fill-hover);
  border-color: var(--ah-action-fill-hover);
  color: var(--ah-action-ink);
}
.ah-customer-system.ah-body .ah-main :is(.ah-btn-danger, .ah-danger-button) {
  background: var(--ah-danger-fill);
  border-color: var(--ah-danger-border-hover);
  color: var(--ah-paper);
}
.ah-customer-system.ah-body .ah-main :is(.ah-btn-danger, .ah-danger-button):hover:not(:disabled) {
  background: var(--ah-danger-hover);
  color: var(--ah-paper);
}
.ah-customer-system.ah-body .ah-main :is(button, input, select, textarea):disabled {
  opacity: .55;
  cursor: not-allowed;
}
.ah-customer-system.ah-body .ah-main :is(a, button, input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--ah-action);
  outline-offset: 3px;
}
.ah-customer-system.ah-body .ah-main .ah-text-link {
  color: var(--ah-soft);
  text-underline-offset: 4px;
}
.ah-customer-system.ah-body .ah-main .ah-text-link:hover { color: var(--ah-paper); }
.ah-customer-system .ah-pagination { flex-wrap: wrap; gap: 12px; }

/* Account, musician and checkout forms share legible, solid input surfaces. */
.ah-customer-system.ah-body .ah-main :is(.ah-form, .ah-auth, .ah-checkout,
  .ah-security-view, .mp-section, .ah-writing-form, .ah-application-page,
  .ah-filters, .ah-article-images-manager)
  :is(input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]), select, textarea) {
  max-width: 100%;
  min-height: 44px;
  padding: 12px 14px;
  border: 1px solid var(--ah-control-border);
  border-radius: var(--ah-radius-control);
  background: var(--ah-panel);
  color: var(--ah-paper);
  font-family: var(--ah-text);
  font-size: 16px;
  line-height: 1.5;
  box-shadow: none;
  color-scheme: dark;
}
.ah-customer-system.ah-body .ah-main :is(input, textarea)::placeholder { color: var(--ah-muted); }
.ah-customer-system.ah-body .ah-main :is(.ah-form label, .mp-field-label) {
  color: var(--ah-paper);
  font-family: var(--ah-text);
  font-size: 14px;
  font-weight: 500;
}
.ah-customer-system.ah-body .ah-main :is(.helptext, .ah-field-hint, .mp-field-hint,
  .ah-auth-switch, .ah-verify-hint) {
  color: var(--ah-soft);
  font-size: 14px;
  line-height: 1.6;
}
.ah-customer-system.ah-body .ah-main :is(.errorlist, .ah-form-error, .ah-form-errors,
  .mp-field-error) { color: #d7a68c; }
.ah-customer-system.ah-body .ah-main :is(.ah-status-pill, .ah-demo-badge, .ah-email-chip) {
  border-radius: var(--ah-radius-badge);
  font-family: var(--ah-text);
  line-height: 1.5;
}
.ah-customer-system.ah-body .ah-main .ah-demo-badge { color: var(--ah-paper); }
.ah-customer-system.ah-body .ah-main :is(.mp-section-head, .mp-cover-preview,
  .ah-sec-inline-challenge) {
  background: var(--ah-panel);
  border-color: var(--ah-control-border);
  box-shadow: none;
}

/* Fluid Clamp Typography & Apple Spatial Rhythm across all customer pages */
.ah-customer-system.ah-body .ah-main :is(.ah-section-head h1, .ah-articles-heading h1,
  .ah-article-heading h1, .ah-ticket-page > h1, .ah-checkout > h1,
  .ah-customer-page > h1, .mp-page-title, .ah-artists-heading h1, .ah-portfolio-archive-heading h1) {
  font-size: clamp(28px, 4.5vw, 42px) !important;
  letter-spacing: -0.02em !important;
  line-height: 1.15 !important;
  font-weight: 700 !important;
}

.ah-customer-system.ah-body .ah-main :is(.ah-section-head h2, .ah-articles-heading h2,
  .ah-article-heading h2, .ah-artists-heading h2, .ah-portfolio-archive-heading h2) {
  font-size: clamp(22px, 3.2vw, 30px) !important;
  letter-spacing: -0.015em !important;
  line-height: 1.25 !important;
  font-weight: 600 !important;
}

.ah-customer-system.ah-body .ah-main :is(.ah-section-head, .ah-articles-heading,
  .ah-writer-head, .ah-artists-heading, .ah-portfolio-archive-heading) {
  margin-block-end: clamp(28px, 4vw, 44px) !important;
}

@media (max-width: 767px) {
  .ah-customer-system.ah-body .ah-main :is(.ah-btn-tactile, .mp-submit-btn) {
    white-space: normal;
    text-align: center;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ah-customer-system.ah-body .ah-main :is(a, button, input, select, textarea) { transition: none; }
}

/* Featured articles have older, more specific link-color rules. */
.ah-customer-system.ah-body .ah-main .ah-article-card.is-featured .ah-article-cta {
  color: var(--ah-action-ink);
  background: var(--ah-action-fill);
  border-color: var(--ah-action-fill);
}
.ah-customer-system.ah-body .ah-main .ah-article-card.is-featured .ah-article-cta:hover {
  color: var(--ah-action-ink);
  background: var(--ah-action-fill-hover);
  border-color: var(--ah-action-fill-hover);
}

/* Search icon and input share one control boundary. */
.ah-customer-system.ah-body .ah-main .ah-search-control {
  background: var(--ah-panel);
  border: 1px solid var(--ah-control-border);
  border-radius: var(--ah-radius-control);
  box-shadow: none;
}
.ah-customer-system.ah-body .ah-main #event-search {
  min-width: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.ah-customer-system.ah-body .ah-main #event-search:focus-visible { outline: none; }
.ah-customer-system.ah-body .ah-main .ah-search-control:focus-within {
  outline: 2px solid var(--ah-action);
  outline-offset: 3px;
}

/* Shared page rhythm: Two-tier Apple alignment (1180px Grid/Directory/Commerce, 1040px Reading/Dossier/Receipt). */
.ah-customer-system.ah-body .ah-main > :is(.ah-home, .ah-events, .ah-event-index,
  .ah-articles-page, .ah-article-index, .ah-artists-page, .ah-portfolio-archive) {
  width: min(100%, var(--ah-max-w-grid, 1180px));
  max-width: var(--ah-max-w-grid, 1180px);
  margin-inline: auto;
}
.ah-customer-system.ah-body .ah-main > :is(.ah-customer-page, .ah-ticket-page,
  .ah-checkout, .ah-security-hub, .ah-account-page, .ah-event-file, .ah-portfolio-detail) {
  width: min(100%, var(--ah-max-w-reading, 1040px));
  max-width: var(--ah-max-w-reading, 1040px);
  margin-inline: auto;
}
.ah-customer-system.ah-body .ah-main .ah-article-detail {
  width: min(100%, var(--ah-max-w-reading, 1040px));
  max-width: var(--ah-max-w-reading, 1040px);
  margin-inline: auto;
  line-height: 1.75;
}
.ah-customer-system.ah-body .ah-main :is(.ah-form, .mp-form, .ah-auth, .ah-sec-panel) :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
  border-color: var(--ah-control-border);
  border-radius: var(--ah-radius-control);
  background-color: var(--ah-panel);
  color: var(--ah-paper);
}
.ah-customer-system.ah-body .ah-main :is(.ah-form, .mp-form, .ah-auth, .ah-sec-panel) :is(input, select, textarea):focus-visible {
  outline: 2px solid var(--ah-action);
  outline-offset: 3px;
}
.ah-customer-system.ah-body .ah-main :is(.ah-form, .mp-form, .ah-auth, .ah-sec-panel) label { color: var(--ah-paper); }
.ah-customer-system.ah-body .ah-main :is(.ah-form, .mp-form, .ah-auth, .ah-sec-panel) :is(input, textarea)::placeholder { color: var(--ah-muted); opacity: 1; }
.ah-customer-system.ah-body .ah-main :is(button, input[type="submit"], a[class*="-btn"], a[class*="-button"], a[class*="-action"], a[class*="-pill"]) {
  min-width: 44px;
  min-height: 44px;
  box-sizing: border-box;
}
.ah-customer-system.ah-body .ah-main :is(.ah-button, .ah-button-bright, .ah-filter-submit,
  .ah-article-cta, .ah-artist-event-link, .ah-account-menu a, .ah-account-menu button) {
  min-height: 44px;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms ease;
}
.ah-customer-system.ah-body .ah-nav a[aria-current="page"] { color: var(--ah-paper); text-decoration: underline; text-decoration-color: var(--ah-action); text-underline-offset: 7px; }
.ah-signal-hud { opacity: .48; }
.ah-signal-static { opacity: .02; }
.ah-customer-system:not(.ah-archive-theme) :is(.ah-signal-hud, .ah-signal-channel) { display: none; }
@media (max-width: 767px) {
  .ah-customer-system.ah-body .ah-main {
    padding-inline: max(16px, env(safe-area-inset-left)) max(16px, env(safe-area-inset-right));
  }
  .ah-customer-system.ah-body .ah-main > :is(.ah-home, .ah-events, .ah-event-index,
    .ah-articles-page, .ah-article-index, .ah-artists-page,
    .ah-customer-page, .ah-ticket-page, .ah-checkout, .ah-security-hub, .ah-account-page) {
    width: 100%;
  }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .ah-customer-system.ah-body .ah-main { padding-inline: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .ah-customer-system.ah-body .ah-main :is(.ah-button, .ah-button-bright, .ah-filter-submit,
    .ah-article-cta, .ah-artist-event-link, .ah-account-menu a, .ah-account-menu button) { transition: none; }
}

/* Shared component rhythm. Page gimmicks stay in their page stylesheets. */
.ah-customer-system.ah-body .ah-main :is(.ah-event-grid, .ah-article-list,
  .ah-artists-grid, .ah-home-event-grid, .ah-owned-tickets) {
  gap: clamp(var(--ah-space-lg), 2vw, var(--ah-space-xl));
}
.ah-customer-system.ah-body .ah-main .ah-event-grid.is-list { gap: 0; }

/* Unified Apple Progressive 3-2-1 Grid across all customer pages */
.ah-customer-system .ah-main :is(.ah-event-grid:not(.is-list), .ah-home-event-grid, .ah-artists-grid, .ah-portfolio-grid, .ah-article-list, .ah-product-grid) {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 28px);
}

@media (min-width: 768px) and (max-width: 1023px) {
  .ah-customer-system .ah-main :is(.ah-event-grid:not(.is-list), .ah-home-event-grid, .ah-artists-grid, .ah-portfolio-grid, .ah-article-list, .ah-product-grid) {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 20px !important;
  }
}

@media (max-width: 767px) {
  .ah-customer-system .ah-main :is(.ah-event-grid:not(.is-list), .ah-home-event-grid, .ah-artists-grid, .ah-portfolio-grid, .ah-article-list, .ah-product-grid) {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
}
.ah-customer-system.ah-body .ah-main :is(.ah-section-head, .ah-articles-heading,
  .ah-writer-head, .ah-artists-heading, .ah-portfolio-archive-heading) {
  margin-block-end: var(--ah-space-xl);
}
.ah-customer-system.ah-body .ah-main :is(.ah-event-card, .ah-home-event-card,
  .ah-artist-card, .ah-article-card, .ah-auth, .ah-sec-panel, .ah-summary,
  .ah-ticket-option, .ah-owned-ticket, .ah-ticket-detail, .ah-empty, .ah-filters,
  .ah-booking-event, .ah-booking-breakdown, .ah-ticket-pass, .ah-writer-list,
  .ah-portfolio-dialog, .ah-portfolio-empty, .musician-sheet, .mp-section,
  .mp-upload-zone, .ah-article-images-manager) {
  border-color: var(--ah-line);
  border-radius: var(--ah-radius-panel);
}
.ah-customer-system.ah-body .ah-main :is(.ah-event-card, .ah-home-event-card,
  .ah-artist-card, .ah-article-card, .ah-auth, .ah-sec-panel, .ah-summary,
  .ah-ticket-option, .ah-owned-ticket, .ah-ticket-detail, .ah-empty, .ah-filters,
  .ah-booking-event, .ah-booking-breakdown, .ah-ticket-pass, .ah-writer-list,
  .ah-writer-row, .ah-portfolio-dialog, .ah-portfolio-empty, .musician-sheet,
  .mp-section, .mp-upload-zone, .ah-article-images-manager) {
  background-color: var(--ah-surface);
  background-image: none;
  color: var(--ah-paper);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.ah-customer-system.ah-body .ah-main :is(.ah-event-card, .ah-home-event-card,
  .ah-artist-card, .ah-article-card, .ah-owned-ticket):is(:hover, :focus-within) {
  border-color: var(--ah-control-border-hover);
  transform: none;
}

/* One label shape. Meaningful state keeps its muted semantic color. */
.ah-customer-system.ah-body :is(.ah-role-badge, .ah-dock-badge,
  .ah-item-badge, .ah-status-pill, .ah-demo-badge, .ah-email-chip,
  .ah-writer-badge, .ah-social-pill, .ah-ticket-status-badge,
  .ah-home-event-status, .ah-home-featured-status, .ah-cover-status,
  .ah-serp-pill, .ah-serp-tag, .ah-tag-chip, .quest-badge-tag,
  .quest-score-pill, .ah-sec-badge-ok, .ah-sec-row-status, .mp-section-badge,
  .mp-status-pill, .ah-tag-stamped, .ah-card-type, .ah-event-access-label,
  .ah-mock-pill) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--ah-space-xs);
  min-height: 24px;
  max-width: 100%;
  padding: 3px var(--ah-space-sm);
  border: 1px solid var(--ah-line);
  border-radius: var(--ah-radius-badge);
  background-color: rgba(229, 227, 218, .045);
  color: var(--ah-soft);
  font-family: var(--ah-mono);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: .035em;
  text-decoration: none;
  box-shadow: none;
}
.ah-customer-system.ah-body :is(.ah-role-artist, .ah-status-pill.green,
  .ah-writer-badge.is-published, .ah-sec-badge-ok, .ah-sec-row-status.is-ok,
  .mp-status-pill.is-active, .ah-home-event-status.is-ongoing,
  .ah-home-featured-status.is-ongoing, .ah-serp-pill.good,
  .ah-demo-badge[data-ticket-state="valid"],
  .ah-demo-badge[data-order-state="paid"]) {
  border-color: rgba(169, 188, 154, .38);
  background-color: rgba(169, 188, 154, .09);
  color: #c3d2b7;
}
.ah-customer-system.ah-body :is(.ah-status-pill.is-warning,
  .ah-writer-badge.is-pending, .ah-cover-status.is-warning,
  .ah-serp-pill.warning, .ah-demo-badge[data-ticket-state="refund-pending"],
  .ah-demo-badge[data-order-state="pending"],
  .ah-demo-badge[data-order-state="refund_pending"],
  .ah-ticket-status-badge[data-status="low"]) {
  border-color: rgba(196, 161, 106, .42);
  background-color: rgba(196, 161, 106, .09);
  color: #dfc38f;
}
.ah-customer-system.ah-body :is(.ah-status-pill.is-danger,
  .ah-writer-badge.is-rejected, .ah-role-owner, .ah-cover-status.is-error,
  .ah-demo-badge[data-ticket-state="revoked"],
  .ah-demo-badge[data-order-state="failed"], .ah-demo-badge[data-order-state="expired"],
  .ah-ticket-status-badge[data-status="sold_out"],
  .ah-ticket-status-badge[data-status="cancelled"]) {
  border-color: rgba(194, 141, 112, .42);
  background-color: rgba(194, 141, 112, .09);
  color: #dbac91;
}

/* All action types use the same control geometry and visible state changes. */
.ah-customer-system.ah-body .ah-main :is(.ah-writer-primary, .ah-writer-filter,
  .ah-writer-filters a, .ah-writer-search-btn, .ah-event-filter-toggle,
  .ah-social-pill, .ah-quantity-control button) {
  min-height: 44px;
  border: 1px solid var(--ah-control-border);
  border-radius: var(--ah-radius-control);
  background: var(--ah-control-fill);
  color: var(--ah-paper);
  font: 500 14px/1.5 var(--ah-text);
  box-shadow: none;
  text-shadow: none;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.ah-customer-system.ah-body .ah-main .ah-writer-primary {
  border-color: var(--ah-action-fill);
  background: var(--ah-action-fill);
  color: var(--ah-action-ink);
  font-weight: 600;
}
.ah-customer-system.ah-body .ah-main :is(.ah-writer-primary, .ah-writer-filter,
  .ah-writer-filters a, .ah-writer-search-btn, .ah-event-filter-toggle,
  .ah-social-pill, .ah-quantity-control button):is(:hover, :focus-visible):not(:disabled) {
  border-color: var(--ah-control-border-hover);
  background-color: var(--ah-control-hover);
  color: var(--ah-paper);
}
.ah-customer-system.ah-body .ah-main .ah-writer-primary:is(:hover, :focus-visible):not(:disabled) {
  border-color: var(--ah-action-fill-hover);
  background-color: var(--ah-action-fill-hover);
  color: var(--ah-action-ink);
}
.ah-customer-system.ah-body .ah-main :is(.ah-writer-primary, .ah-writer-filter,
  .ah-writer-filters a, .ah-writer-search-btn, .ah-event-filter-toggle,
  .ah-social-pill, .ah-quantity-control button):focus-visible {
  outline: 2px solid var(--ah-action-hover);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  .ah-customer-system.ah-body .ah-main :is(.ah-writer-primary, .ah-writer-filter,
    .ah-writer-filters a, .ah-writer-search-btn, .ah-event-filter-toggle,
    .ah-social-pill, .ah-quantity-control button, button) { transition: none; }
}
.ah-customer-system.ah-body .ah-main button:not(.tp-cctv-seg-btn):not(.tp-hero-corner-capsule *) {
  min-height: 44px;
  border-radius: var(--ah-radius-control);
  font-family: var(--ah-text);
  transition-property: background-color, border-color, color, opacity;
  transition-duration: .15s;
  transition-timing-function: ease;
}
.ah-customer-system.ah-body .ah-main :is(button, .ah-writer-primary,
  .ah-writer-filters a, .ah-writer-search-btn, .ah-event-filter-toggle,
  .ah-social-pill, .ah-quantity-control button, .ah-button, .ah-btn-tactile,
  .ah-btn-secondary, .ah-article-cta, .ah-filter-submit, .ah-pagination a):active:not(:disabled) {
  transform: none;
  opacity: .88;
}
.ah-customer-system.ah-body .ah-main .ah-writer-filters a[aria-current="page"] {
  border-color: var(--ah-control-border-hover);
  background: var(--ah-control-hover);
  color: var(--ah-paper);
}

/* Subtle tactile depth for customer controls; keep the CCTV hero controls untouched. */
.ah-customer-system.ah-body :is(button:not(.ah-mobile-drawer-scrim), input[type="submit"], summary.ah-hamburger-btn, summary.ah-mobile-drawer-trigger,
  a.ah-button, a.ah-btn-tactile, a.ah-btn-secondary, a.ah-article-cta,
  a.ah-artist-event-link, a.ah-filter-submit, .ah-pagination a,
  .ah-profile-dock-btn, .ah-settings-item, .ah-side-drawer-action,
  .ah-writer-filters a, .ah-writer-action, .ah-social-pill, .ah-footer-social a, .ah-wallet):not(.ah-home .ah-hero *) {
  box-shadow: 0 2px 0 rgba(0, 0, 0, .42), inset 0 1px rgba(255, 255, 255, .055);
  transition: background-color .15s ease, border-color .15s ease, color .15s ease,
    box-shadow .15s ease, transform .15s ease;
}
.ah-customer-system.ah-body :is(.ah-button-bright, .ah-btn-primary,
  .ah-btn-tactile:not(.ah-btn-secondary), .ah-article-cta, .ah-filter-submit,
  .mp-submit-btn, .ah-writer-primary, input[type="submit"]):not(.ah-home .ah-hero *) {
  box-shadow: 0 3px 0 rgba(0, 0, 0, .42), inset 0 1px rgba(255, 255, 255, .36);
}
.ah-customer-system.ah-body :is(button:not(.ah-mobile-drawer-scrim), input[type="submit"], summary.ah-hamburger-btn, summary.ah-mobile-drawer-trigger,
  a.ah-button, a.ah-btn-tactile, a.ah-btn-secondary, a.ah-article-cta,
  a.ah-artist-event-link, a.ah-filter-submit, .ah-pagination a,
  .ah-profile-dock-btn, .ah-settings-item, .ah-side-drawer-action,
  .ah-writer-filters a, .ah-writer-action, .ah-social-pill, .ah-footer-social a, .ah-wallet):not(.ah-home .ah-hero *):hover:not(:disabled) {
  box-shadow: 0 3px 0 rgba(0, 0, 0, .42), inset 0 1px rgba(255, 255, 255, .08);
  transform: translateY(-1px);
}
.ah-customer-system.ah-body :is(button:not(.ah-mobile-drawer-scrim), input[type="submit"], summary.ah-hamburger-btn, summary.ah-mobile-drawer-trigger,
  a.ah-button, a.ah-btn-tactile, a.ah-btn-secondary, a.ah-article-cta,
  a.ah-artist-event-link, a.ah-filter-submit, .ah-pagination a,
  .ah-profile-dock-btn, .ah-settings-item, .ah-side-drawer-action,
  .ah-writer-filters a, .ah-writer-action, .ah-social-pill, .ah-footer-social a, .ah-wallet):not(.ah-home .ah-hero *):active:not(:disabled) {
  box-shadow: 0 0 0 rgba(0, 0, 0, .42), inset 0 1px rgba(255, 255, 255, .06);
  transform: translateY(1px);
}
.ah-customer-system.ah-body :is(button:not(.ah-mobile-drawer-scrim), input[type="submit"], summary.ah-hamburger-btn, summary.ah-mobile-drawer-trigger,
  a.ah-button, a.ah-btn-tactile, a.ah-btn-secondary, a.ah-article-cta,
  a.ah-artist-event-link, a.ah-filter-submit, .ah-pagination a,
  .ah-profile-dock-btn, .ah-settings-item, .ah-side-drawer-action,
  .ah-writer-filters a, .ah-writer-action, .ah-social-pill, .ah-footer-social a, .ah-wallet):not(.ah-home .ah-hero *):focus-visible {
  outline: 2px solid var(--ah-action-hover);
  outline-offset: 3px;
}
.ah-customer-system.ah-body :is(button.ah-text-link, button.ah-link-subtle):not(.ah-home .ah-hero *) {
  box-shadow: inset 0 -1px rgba(229, 227, 218, .35);
}
.ah-customer-system.ah-body :is(button, input[type="submit"]):disabled {
  box-shadow: none;
  transform: none;
}

.ah-customer-system .ah-mobile-drawer-trigger {
  min-width: 44px;
  min-height: 44px;
}
.ah-customer-system .ah-main :is(button, input[type="submit"], .ah-pagination a,
  .ah-filter-submit, .ah-article-cta, .ah-artist-event-link, .ah-profile-dock-btn,
  .ah-settings-item, .ah-side-drawer-action, .ah-social-pill, .ah-wallet) {
  min-height: 44px;
  scroll-margin-block: 88px;
}
.ah-customer-system .ah-footer {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: clamp(64px, 8vw, 96px) 0 0 !important;
  padding: clamp(48px, 6vw, 64px) 0 clamp(48px, 6vw, 64px) !important;
  border-radius: 0 !important;
  background: #000000 !important;
  border-top: 1px solid rgba(229, 227, 218, 0.12) !important;
  border-bottom: none !important;
  border-left: none !important;
  border-right: none !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
}

.ah-customer-system .ah-footer-container {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 1fr) minmax(300px, 1.15fr);
  align-items: start;
  gap: 24px clamp(24px, 3vw, 44px);
  width: min(1140px, calc(100% - 48px));
  margin-inline: auto;
  box-sizing: border-box;
}

.ah-customer-system .ah-footer-container:not(:has(.ah-footer-group)) {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

@media (min-width: 768px) and (max-width: 1023px) {
  .ah-customer-system .ah-footer {
    padding-bottom: calc(96px + env(safe-area-inset-bottom, 16px)) !important;
  }
}
@media (max-width: 767px) {
  .ah-customer-system .ah-footer {
    padding: 40px 0 calc(96px + env(safe-area-inset-bottom, 16px)) !important;
    margin-top: 48px !important;
  }

  .ah-customer-system .ah-footer-container {
    grid-template-columns: 1fr;
    gap: 32px;
    width: calc(100% - 32px);
  }

  .ah-customer-system.ah-body .ah-main :is(.ah-button-bright, .ah-button-primary-action,
    .ah-cta-pill-primary, .ah-refund-submit-btn, .ah-filter-submit, .ah-article-cta,
    .tp-booking-btn, .tp-checkout-btn, .tp-add-btn, .tp-campaign-cta-btn,
    .ah-form button[type="submit"], .ah-auth button[type="submit"],
    .ah-checkout button[type="submit"]) {
    width: 100%;
    max-width: 100%;
    min-height: 48px;
    box-sizing: border-box;
    justify-content: center;
    text-align: center;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ah-customer-system.ah-body :is(button:not(.ah-mobile-drawer-scrim), input[type="submit"], summary.ah-hamburger-btn, summary.ah-mobile-drawer-trigger,
    a.ah-button, a.ah-btn-tactile, a.ah-btn-secondary, a.ah-article-cta,
    a.ah-artist-event-link, a.ah-filter-submit, .ah-pagination a,
    .ah-profile-dock-btn, .ah-settings-item, .ah-side-drawer-action,
    .ah-writer-filters a, .ah-writer-action, .ah-social-pill, .ah-footer-social a, .ah-wallet):not(.ah-home .ah-hero *) {
    transition: none;
    transform: none;
  }
}

/* One shared, simulated CCTV background for customer and artist pages. */
.ah-atmosphere-cctv .ah-signal-code {
  position: absolute;
  inset: 0;
  color: var(--ah-signal-ash);
  pointer-events: none;
  user-select: none;
  /* Keep the recovered terminal fragments strongest in the outer gutters. */
  -webkit-mask-image: linear-gradient(90deg, #000, #000 8%, rgba(0,0,0,.18) 35% 65%, #000 92%);
  mask-image: linear-gradient(90deg, #000, #000 8%, rgba(0,0,0,.18) 35% 65%, #000 92%);
}
.ah-signal-code::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: .045;
  background:
    repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 96px),
    repeating-linear-gradient(0deg, currentColor 0 1px, transparent 1px 96px);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30% 70%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 30% 70%, transparent);
}
.ah-signal-code-feed {
  position: absolute;
  width: max-content;
  max-width: 32vw;
  margin: 0;
  overflow: hidden;
  opacity: .32;
  font: 10px/1.9 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .045em;
  animation: ah-terminal-drift 48s ease-in-out infinite alternate;
}
.ah-signal-code-feed--left { top: 19%; left: 24px; }
.ah-signal-code-feed--right {
  right: 24px;
  bottom: 12%;
  color: var(--ah-signal-rust);
  animation-delay: -24s;
}
@keyframes ah-terminal-drift {
  to { transform: translateY(-24px); }
}
body:is(.ah-signal-paused, .ah-signal-hidden) :is(.ah-signal-code-feed, .ah-cctv-drift) {
  animation-play-state: paused;
}
@media (max-width: 767px) {
  .ah-signal-code { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .ah-signal-code-feed { animation: none; }
}
@media (forced-colors: active) {
  .ah-signal-code { display: none; }
}
.ah-atmosphere-cctv .ah-signal-static { display: none; }
.ah-atmosphere-cctv .ah-signal-backdrop::before { opacity: .04; }
.ah-atmosphere-cctv .ah-signal-camera {
  opacity: var(--ah-camera-opacity, 0.65);
  -webkit-mask-image: none !important;
  mask-image: none !important;
}
.ah-atmosphere-cctv .ah-cctv-drift {
  position: absolute;
  inset: -512px 0;
  pointer-events: none;
  background: repeating-linear-gradient(180deg,
    transparent 0 144px,
    color-mix(in srgb, var(--ah-action) 6%, transparent) 144px 146px,
    transparent 146px 151px,
    color-mix(in srgb, var(--ah-monitor) 4%, transparent) 151px 155px,
    transparent 155px 382px,
    color-mix(in srgb, var(--ah-action) 4%, transparent) 382px 383px,
    transparent 383px 512px);
  -webkit-mask-image: linear-gradient(90deg,
    #000 0 13%, transparent 13% 18%, #000 18% 43%,
    transparent 43% 48%, #000 48% 72%, transparent 72% 77%, #000 77%);
  mask-image: linear-gradient(90deg,
    #000 0 13%, transparent 13% 18%, #000 18% 43%,
    transparent 43% 48%, #000 48% 72%, transparent 72% 77%, #000 77%);
  animation: ah-cctv-drift 38s linear infinite;
}
@keyframes ah-cctv-drift {
  to { transform: translateY(512px); }
}
.ah-atmosphere-cctv .ah-signal-backdrop::after {
  position: absolute;
  inset: -128px 0;
  content: "";
  opacity: .08;
  pointer-events: none;
  background: var(--ah-grain) 0 0 / 128px 128px repeat;
  animation: ah-cctv-noise 24s linear infinite;
}
.ah-atmosphere-cctv .ah-signal-static::before,
.ah-atmosphere-cctv .ah-signal-static::after,
.ah-atmosphere-cctv :is(.ah-signal-hud, .ah-signal-channel) { display: none; }
.ah-atmosphere-cctv .ah-signal-sort { display: none !important; animation: none !important; }
.ah-atmosphere-cctv .ah-signal-camera::before,
.ah-atmosphere-cctv .ah-signal-camera::after { opacity: 0 !important; }
.ah-atmosphere-cctv .ah-signal-tools { margin-left: auto; }
.ah-atmosphere-cctv .ah-signal-recording {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ah-monitor);
  white-space: nowrap;
}
@keyframes ah-cctv-noise {
  to { transform: translateY(128px); }
}
/* Homepage footage texture stays behind content, using uniform clean layers (Apple Inc. Refined) */
.ah-atmosphere-cctv.ah-footage-background .ah-signal-backdrop::before {
  opacity: .08;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.5) 0 1px, transparent 1.2px),
    radial-gradient(circle, rgba(0,0,0,.6) 0 1px, transparent 1.2px);
  background-size: 97px 113px, 131px 89px;
  background-position: 11px 23px, 47px 61px;
  background-repeat: repeat, repeat;
  -webkit-mask-image: none !important;
  mask-image: none !important;
}
.ah-atmosphere-cctv.ah-footage-background .ah-signal-backdrop::after {
  opacity: .08;
}
.ah-atmosphere-cctv.ah-footage-background .ah-signal-camera {
  opacity: var(--ah-camera-opacity, 0.65) !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
}
body.ah-atmosphere-cctv.ah-signal-paused .ah-signal-backdrop::after { animation-play-state: paused; }
body.ah-atmosphere-cctv.ah-signal-hidden .ah-signal-backdrop::after { animation-play-state: paused; }
@media (forced-colors: active) {
  .ah-atmosphere-cctv .ah-signal-backdrop::after { display: none; }
}

/* Keep artwork visible and put opaque reading surfaces only behind copy. */
body.ah-customer-system .ah-main :is(
  .ah-event-card, .ah-article-card:not(.is-featured), .ah-artist-card,
  .ah-portfolio-card, .ah-owned-ticket, .ah-ticket-pass,
  .ah-article-hero, .ah-artist-portrait
) {
  border-color: rgba(229, 227, 218, .3);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .48), inset 0 1px 0 rgba(255, 255, 255, .08);
}

body.ah-customer-system .ah-main :is(
  .ah-event-card-body, .ah-article-copy, .ah-artist-card-body, .ah-artist-copy,
  .ah-portfolio-card figcaption,
  .ah-ticket-page-header, .ah-smart-gate-content,
  .ah-author-card, .ah-author-form-panel, .ah-section-head,
  .ah-articles-heading, .ah-artists-heading
) {
  min-width: 0;
  padding: clamp(12px, 2vw, 24px);
  border: 1px solid rgba(229, 227, 218, .22);
  border-radius: var(--ah-radius-card, 16px);
  background: rgba(18, 20, 24, .88);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .46), inset 0 1px 0 rgba(255, 255, 255, .07);
}

body.ah-customer-system .ah-main .ah-event-card-body {
  background: var(--ah-customer-card-surface);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border-color: var(--ah-customer-glass-edge);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, .55),
    0 4px 12px rgba(0, 0, 0, .3),
    inset 0 1px 0 rgba(255, 255, 255, .08);
}

body.ah-customer-system .ah-main .ah-event-index .ah-event-card-body {
  background-color: var(--ah-customer-card-surface);
}

body.ah-customer-system .ah-main .ah-event-index .ah-section-head.tp-events-header.tp-events-header-chassis,
body.ah-customer-system .ah-main .ah-event-index .tp-events-header-chassis {
  position: relative;
  border-radius: 24px !important;
  background: rgba(13, 14, 18, 0.96) !important;
  backdrop-filter: blur(28px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(180%) !important;
  border: 1px solid rgba(229, 227, 218, 0.14) !important;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  padding: clamp(24px, 4vw, 36px) !important;
  margin-top: 8px !important;
  margin-bottom: 32px !important;
  box-sizing: border-box;
}

body.ah-customer-system .ah-main .ah-article-index .ah-articles-heading,
body.ah-customer-system .ah-main .ah-artists-page .ah-artists-heading,
body.ah-customer-system .ah-main :is(.ah-portfolio-archive, .ah-portfolio-detail) :is(.tp-portfolio-header-chassis, .tp-portfolio-detail-chassis) {
  position: relative;
  border-radius: 24px !important;
  background: rgba(13, 14, 18, 0.96) !important;
  backdrop-filter: blur(28px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(180%) !important;
  border: 1px solid rgba(229, 227, 218, 0.14) !important;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  padding: clamp(24px, 4vw, 36px) !important;
  margin-top: 8px !important;
  margin-bottom: 32px !important;
  box-sizing: border-box;
}

body.ah-customer-system .ah-main .ah-portfolio-detail .ah-portfolio-hud-panel {
  border-radius: 20px !important;
  background: rgba(13, 14, 18, 0.96) !important;
  backdrop-filter: blur(28px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(180%) !important;
  border: 1px solid rgba(229, 227, 218, 0.14) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  padding: clamp(20px, 3vw, 28px) !important;
}

body.ah-customer-system .ah-main .ah-portfolio-detail .ah-portfolio-detail-figure {
  border-radius: 20px !important;
  background: #08090c !important;
  border: 1px solid rgba(229, 227, 218, 0.14) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

body.ah-customer-system .ah-main .ah-portfolio-archive .ah-portfolio-card {
  border-radius: 20px !important;
  background: rgba(13, 14, 18, 0.96) !important;
  border: 1px solid rgba(229, 227, 218, 0.12) !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

body.ah-customer-system .ah-main .ah-portfolio-archive .ah-portfolio-card figcaption {
  background: rgba(10, 11, 14, 0.90) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-left: none !important;
  border-right: none !important;
  border-bottom: none !important;
  border-radius: 0 0 20px 20px !important;
}

@supports (backdrop-filter: blur(16px)) {
  body.ah-customer-system .ah-main :is(
    .ah-event-card, .ah-article-card:not(.is-featured), .ah-artist-card,
    .ah-portfolio-card, .ah-owned-ticket, .ah-ticket-pass
  ) {
    background-color: rgba(20, 22, 18, .78);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }
}

body.ah-customer-system :is(.tp-commerce-container, section[aria-labelledby="cart-title"], section[aria-labelledby="checkout-title"]) {
  --ah-com-glass: rgba(18, 20, 24, .88);
}

body.ah-customer-system :is(.tp-merch-card, .tp-cart-card, .tp-summary-card, .tp-checkout-card, .tp-address-card, .tp-related-card) {
  background: rgba(18, 20, 24, 0.88);
  border-color: rgba(229, 227, 218, .20);
  box-shadow: 0 16px 38px rgba(0, 0, 0, .62), inset 0 1px 0 rgba(255, 255, 255, .09);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
}

/* Unified Customer Backdrop: All customer pages share the exact same telemetry HUD code feeds as the homepage */
body.ah-customer-system .ah-signal-code {
  display: block;
}

body.ah-customer-system .ah-main :is(h1, .tp-commerce-main-title, .tp-events-main-title) {
  text-shadow: 0 2px 18px rgba(0, 0, 0, .9);
}

body.ah-customer-system .ah-main :is(.tp-stacked-event-body, .ah-portfolio-detail-dossier) {
  min-width: 0;
  padding: clamp(12px, 2vw, 24px);
  border: 1px solid rgba(229, 227, 218, .22);
  border-radius: var(--ah-radius-card, 16px);
  background: rgba(20, 22, 18, .96);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .46), inset 0 1px 0 rgba(255, 255, 255, .07);
}

body.ah-customer-system .ah-main .ah-portfolio-archive-heading .ah-portfolio-feed-tag {
  padding: 6px 9px;
  border: 1px solid rgba(229, 227, 218, .22);
  border-radius: 8px;
  background: rgba(20, 22, 18, .96);
  color: var(--ah-soft, #b8b6aa);
}

body.ah-customer-system .ah-main :is(.ah-event-card, .ah-article-card, .ah-artist-card, .ah-portfolio-card):focus-within {
  outline: 2px solid var(--ah-paper, #e5e3da);
  outline-offset: 3px;
}

@media (forced-colors: active) {
  body.ah-customer-system .ah-main :is(.ah-event-card-body, .ah-article-copy, .ah-artist-card-body, .ah-portfolio-hud-panel, .ah-ticket-page-header, .tp-stacked-event-body, .tp-shop-body) {
    border: 1px solid CanvasText;
    background: Canvas;
    color: CanvasText;
    box-shadow: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ah-atmosphere-cctv .ah-signal-backdrop::after { animation: none; }
  .ah-atmosphere-cctv .ah-cctv-drift { animation: none; }
}

/* Compact explore menu inside the customer navbar on mobile only (<768px). */
.ah-mobile-explore { display: none !important; }
@media (max-width: 767px) {
  .ah-customer-system .ah-mobile-explore {
    display: block !important;
    position: static;
    flex: 0 0 auto;
    z-index: 1002;
  }
  .ah-customer-system .ah-header .ah-cart-capsule {
    margin-right: 0;
  }
  .ah-mobile-explore > summary {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid var(--ah-header-edge);
    border-radius: 980px;
    background: var(--ah-header-surface);
    color: var(--ah-header-pearl);
    box-shadow: 0 4px 12px rgba(0,0,0,.3), inset 0 1px rgba(255,255,255,.08);
    cursor: pointer;
    list-style: none;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 160ms ease, border-color 160ms ease, transform 160ms cubic-bezier(0.16, 1, 0.3, 1);
  }
  .ah-mobile-explore > summary::-webkit-details-marker { display: none; }
  .ah-mobile-explore > summary:hover {
    border-color: var(--ah-header-edge-strong);
    background: var(--ah-header-control-hover);
  }
  .ah-mobile-explore[open] > summary {
    border-color: var(--ah-header-edge-strong);
    background: var(--ah-header-control-active);
    color: #ffffff;
  }
  .ah-mobile-explore > summary:active {
    transform: scale(.96);
  }
  .ah-mobile-explore > summary svg {
    display: block;
    width: 20px;
    height: 20px;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .ah-mobile-explore[open] > summary svg {
    transform: rotate(90deg);
  }
  .ah-mobile-explore > summary:focus-visible {
    outline: 2px solid var(--ah-action);
    outline-offset: 2px;
  }
  .ah-mobile-explore nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    padding: 8px;
    margin: 0;
    border: 1px solid var(--ah-header-edge);
    border-radius: 20px;
    background: rgba(18, 19, 23, .96);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    backdrop-filter: blur(28px) saturate(180%);
    box-shadow: 0 20px 48px rgba(0,0,0,.65), 0 4px 16px rgba(0,0,0,.35), inset 0 1px rgba(255,255,255,.1);
    box-sizing: border-box;
    max-height: calc(100dvh - 84px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 1002;
    animation: ahMobileExploreFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .ah-mobile-explore nav a {
    display: flex;
    min-height: 48px;
    align-items: center;
    gap: 12px;
    padding: 0 14px;
    border-radius: 12px;
    color: var(--ah-paper);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 150ms ease, color 150ms ease, transform 150ms cubic-bezier(0.16, 1, 0.3, 1);
  }
  .ah-mobile-explore nav a svg {
    display: block;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: .82;
  }
  .ah-mobile-explore nav a[aria-current="page"] {
    background: var(--ah-header-control-active);
    color: #ffffff;
    font-weight: 600;
  }
  .ah-mobile-explore nav a[aria-current="page"] svg {
    opacity: 1;
    stroke: #ffffff;
  }
  .ah-mobile-explore nav a:focus-visible {
    outline: 2px solid var(--ah-action);
    outline-offset: -2px;
  }
  .ah-mobile-explore nav a:hover {
    background: var(--ah-header-control-hover);
    color: #ffffff;
  }
  .ah-mobile-explore nav a:active {
    transform: scale(.98);
    background: var(--ah-header-control-active);
  }
  .ah-mobile-explore nav a .ah-explore-arrow {
    margin-left: auto;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.35);
    transition: transform 0.16s ease, color 0.16s ease;
  }
  .ah-mobile-explore nav a:hover .ah-explore-arrow {
    color: #ffffff;
    transform: translateX(2px);
  }
}

@keyframes ahMobileExploreFadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .ah-mobile-explore > summary,
  .ah-mobile-explore nav a { transition: none; }
}
@media (max-width: 400px) {
  .ah-customer-system .ah-header {
    padding: 0 8px 0 14px !important;
    gap: 6px !important;
  }
  .ah-customer-system .ah-brand-logo {
    max-width: clamp(90px, 24vw, 116px) !important;
  }
  .ah-customer-system .ah-header-actions {
    gap: 4px !important;
  }
  .ah-customer-system .ah-mobile-explore > summary,
  .ah-customer-system .ah-header .ah-cart-capsule,
  .ah-customer-system .ah-header .ah-bell-capsule,
  .ah-customer-system .ah-header .ah-user-capsule,
  .ah-customer-system .ah-header .ah-login-link {
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
  }
  .ah-customer-system .ah-user-capsule .ah-user-gear-icon {
    width: 17px !important;
    height: 17px !important;
  }
  .ah-customer-system .ah-mobile-explore > summary svg,
  .ah-customer-system .ah-header .ah-cart-capsule svg,
  .ah-customer-system .ah-header .ah-bell-capsule svg {
    width: 16px !important;
    height: 16px !important;
  }
}

@media (max-width: 360px) {
  .ah-customer-system .ah-header {
    width: calc(100% - 14px) !important;
    max-width: calc(100vw - 14px) !important;
    padding: 0 6px 0 10px !important;
    gap: 4px !important;
  }
  .ah-customer-system .ah-brand-logo {
    height: 16px !important;
    max-width: 92px !important;
  }
  .ah-customer-system .ah-header-actions {
    gap: 3px !important;
  }
  .ah-customer-system .ah-mobile-explore > summary,
  .ah-customer-system .ah-header .ah-cart-capsule,
  .ah-customer-system .ah-header .ah-bell-capsule,
  .ah-customer-system .ah-header .ah-user-capsule,
  .ah-customer-system .ah-header .ah-login-link {
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
  }
  .ah-customer-system .ah-user-capsule .ah-user-gear-icon {
    width: 15px !important;
    height: 15px !important;
  }
  .ah-customer-system .ah-mobile-explore > summary svg,
  .ah-customer-system .ah-header .ah-cart-capsule svg,
  .ah-customer-system .ah-header .ah-bell-capsule svg {
    width: 15px !important;
    height: 15px !important;
  }
}

/* Safe Zones & Global Overflow Prevention (Apple Responsive Standard) */
html {
  overflow-x: clip;
}
html:has(body.ah-customer-system) {
  overflow-x: clip;
}


body.ah-customer-system {
  overflow-x: clip;
  width: 100%;
  max-width: 100vw;
  position: relative;
}
.ah-customer-system img,
.ah-customer-system video,
.ah-customer-system svg,
.ah-customer-system canvas {
  max-width: 100%;
}

/* ==========================================================================
   Unified Tactical HUD Tags, Cross-Sell Bento & Form Telemetry (Zero-Neon)
   ========================================================================== */
.tp-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: var(--ah-radius-tag, 4px);
  font-family: var(--ah-mono);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  vertical-align: middle;
  border: 1px solid var(--ah-control-border);
  background: rgba(229, 227, 218, 0.08);
  color: var(--ah-paper);
}

.tp-tag--ticket,
.tp-tag--pass {
  background: rgba(229, 227, 218, 0.09);
  border-color: rgba(229, 227, 218, 0.24);
  color: var(--ah-paper);
}

.tp-tag--merch,
.tp-tag--cargo,
.tp-tag--early {
  background: var(--ah-cargo-steel-fill);
  border-color: var(--ah-cargo-steel-border);
  color: var(--ah-cargo-steel-text);
}

.tp-tag--vip {
  background: var(--ah-vip-brass-fill);
  border-color: var(--ah-vip-brass-border);
  color: var(--ah-vip-brass-text);
}

.tp-tag--low,
.tp-tag--critical {
  background: var(--ah-rust-critical-fill);
  border-color: var(--ah-rust-critical-border);
  color: var(--ah-rust-critical-text);
}

.tp-tag--verified {
  background: var(--ah-olive-verified-fill);
  border-color: var(--ah-olive-verified-border);
  color: var(--ah-olive-verified-text);
}

.tp-tag-inline {
  margin-right: 6px;
}

.tp-tag-block {
  margin-bottom: 8px;
}

/* Shared Tactical Cross-Sell Bento Module (Events, Artists, Products) */
.tp-cross-sell-bento {
  position: relative;
  margin-top: 32px;
  padding: 24px 26px;
  background: var(--tp-surface-glass, rgba(14, 15, 19, 0.84));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--tp-border-subtle, rgba(229, 227, 218, 0.12));
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), var(--tp-bevel-top, inset 0 1px 0 rgba(255, 255, 255, 0.08)), var(--tp-bevel-bottom, inset 0 -1px 0 rgba(0, 0, 0, 0.60));
  border-radius: var(--ah-radius-panel, 20px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.tp-cross-sell-copy,
.tp-cross-sell-bento-copy {
  flex: 1;
  min-width: 240px;
}

.tp-cross-sell-title,
.tp-cross-sell-bento-title {
  font-family: var(--ah-display);
  font-size: clamp(17px, 1.8vw, 20px);
  font-weight: 700;
  color: var(--ah-paper);
  margin: 8px 0 4px 0;
  line-height: 1.38;
}

.tp-cross-sell-desc,
.tp-cross-sell-bento-desc {
  font-family: var(--ah-text);
  font-size: 14px;
  color: var(--ah-soft);
  margin: 0;
  line-height: 1.6;
}

.tp-cross-sell-bento-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
}

.tp-cross-sell-cta,
.tp-cross-sell-bento-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 22px;
  border-radius: var(--ah-radius-pill, 980px);
  background: rgba(229, 227, 218, 0.08);
  border: 1px solid var(--ah-control-border);
  color: var(--ah-paper);
  font-family: var(--ah-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.tp-cross-sell-cta:hover,
.tp-cross-sell-cta:focus-visible,
.tp-cross-sell-bento-cta:hover,
.tp-cross-sell-bento-cta:focus-visible {
  background: rgba(229, 227, 218, 0.15);
  border-color: var(--ah-control-border-hover);
  color: #ffffff;
}

@media (max-width: 767px) {
  body.ah-customer-system .ah-main .tp-cross-sell-bento {
    box-sizing: border-box;
    min-width: 0;
    align-items: stretch;
    gap: 16px;
    padding: 18px 16px;
  }

  body.ah-customer-system .ah-main .tp-cross-sell-bento-copy {
    min-width: 0;
    max-width: 100%;
  }

  body.ah-customer-system .ah-main :is(.tp-cross-sell-bento-header, .tp-cross-sell-bento-actions) {
    width: 100%;
    min-width: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  body.ah-customer-system .ah-main .tp-cross-sell-bento-cta {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: 46px;
    justify-content: center;
    white-space: normal;
    text-align: center;
  }
}

/* Von Restorff Floating Tactical Badges on Product Cards */
.tp-floating-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  padding: 3px 8px;
  border-radius: var(--ah-radius-tag, 4px);
  font-family: var(--ah-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.tp-floating-badge--preorder {
  background: rgba(196, 161, 106, 0.92);
  color: #111216;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.tp-floating-badge--low {
  background: rgba(184, 67, 51, 0.92);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.tp-text-verified {
  color: var(--ah-olive-verified-text, #a9bc9a) !important;
}

/* Tactical Corner Brackets (Shared across Dossiers, Pedestals, Cross-Sell) */
.tp-crate-bracket {
  position: absolute;
  width: 10px;
  height: 10px;
  border-color: rgba(229, 227, 218, 0.28);
  border-style: solid;
  pointer-events: none;
  z-index: 2;
}
.tp-crate-bracket--tl { top: 10px; left: 10px; border-width: 1.5px 0 0 1.5px; }
.tp-crate-bracket--tr { top: 10px; right: 10px; border-width: 1.5px 1.5px 0 0; }
.tp-crate-bracket--bl { bottom: 10px; left: 10px; border-width: 0 0 1.5px 1.5px; }
.tp-crate-bracket--br { bottom: 10px; right: 10px; border-width: 0 1.5px 1.5px 0; }

/* Postel's Law Inline Field Error & Address Recall Banner */
.tp-field-error {
  display: none;
  margin-top: 6px;
  color: var(--ah-rust-critical-text);
  font-family: var(--ah-mono);
  font-size: 12px;
  line-height: 1.45;
  letter-spacing: 0.02em;
}

.tp-field-error.is-visible {
  display: block;
}

.tp-recalled-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  background: var(--ah-olive-verified-fill);
  border: 1px solid var(--ah-olive-verified-border);
  padding: 10px 14px;
  border-radius: var(--ah-radius-control, 12px);
  font-size: 12.5px;
  color: var(--ah-olive-verified-text);
  margin-bottom: 16px;
}

.tp-recalled-banner-info {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tp-recalled-clear-btn {
  background: transparent;
  border: none;
  color: var(--ah-rust-critical-text);
  cursor: pointer;
  font-family: var(--ah-mono);
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 2px 4px;
}

.tp-recalled-clear-btn:hover {
  color: #ffffff;
}

/* Preserve the full identity card inside the scrollable account settings sheet. */
.ah-settings-dialog .ah-sheet-scrollable {
  flex: 1 1 auto;
  min-height: 0;
}

.ah-settings-dialog .ah-profile-card {
  flex: 0 0 auto;
  min-height: fit-content;
  box-sizing: border-box;
}

.ah-settings-dialog .ah-profile-header {
  min-height: 52px;
}

/* Unverified Email Persistent Status Banner (Apple Unified Material) */
.ah-unverified-email-banner {
  position: relative;
  z-index: 90;
  width: min(1140px, calc(100% - 32px));
  margin: 26px auto 0;
  background: var(--ah-header-surface, rgb(18, 19, 23));
  border: 1px solid var(--ah-header-edge, rgba(229, 227, 218, 0.12));
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), 0 4px 12px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  padding: 11px 18px;
  box-sizing: border-box;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.ah-unverified-email-banner:hover {
  border-color: var(--ah-header-edge-strong, rgba(229, 227, 218, 0.22));
}

.ah-unverified-email-inner {
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 13.5px;
  color: #F5F5F7;
}

.ah-unverified-message-group {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
}

.ah-unverified-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #C48E59;
  box-shadow: 0 0 10px rgba(196, 142, 89, 0.75);
  flex-shrink: 0;
}

.ah-unverified-text {
  line-height: 1.45;
  color: #d1cebe;
  font-size: 13px;
  letter-spacing: -0.01em;
}

.ah-unverified-text strong {
  color: #F5F5F7;
  font-family: var(--ah-mono, ui-monospace, monospace);
  font-weight: 600;
  padding: 1px 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 6px;
  word-break: break-all;
}

.ah-unverified-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(196, 142, 89, 0.16);
  border: 1px solid rgba(196, 142, 89, 0.45);
  color: #e5b98a;
  padding: 6px 14px;
  border-radius: 980px;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap !important;
  flex-shrink: 0;
  min-height: 34px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10);
  transition: transform 0.14s cubic-bezier(0.16, 1, 0.3, 1), background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.ah-unverified-action-btn:hover {
  background: #C48E59;
  color: #0A0D0B;
  border-color: #C48E59;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(196, 142, 89, 0.35), inset 0 1px 0 #ffffff;
}

.ah-unverified-action-btn:active {
  transform: scale(0.97);
}

@media (max-width: 767px) {
  .ah-unverified-email-banner {
    width: calc(100% - 20px) !important;
    max-width: calc(100vw - 20px) !important;
    margin: 18px auto 0;
    padding: 10px 14px;
    border-radius: 14px;
  }
}

@media (max-width: 640px) {
  .ah-unverified-email-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .ah-unverified-message-group {
    align-items: flex-start;
  }

  .ah-unverified-dot {
    margin-top: 5px;
  }

  .ah-unverified-action-btn {
    align-self: stretch;
    width: 100%;
    min-height: 38px;
  }
}

@media (max-width: 360px) {
  .ah-unverified-email-banner {
    width: calc(100% - 14px) !important;
    max-width: calc(100vw - 14px) !important;
    margin: 14px auto 0;
    padding: 9px 12px;
  }
  .ah-unverified-text {
    font-size: 12px;
  }
}

/* ==========================================================================
   Register Page (Sign Up) Apple-Grade Polish & Bento Chassis (Tactical Dark)
   ========================================================================== */

/* Layout & Proportions */
.tp-register-layout {
  display: grid;
  grid-template-columns: 45% 55%;
  width: min(940px, 94vw);
  min-height: 580px;
  margin: clamp(36px, 5vh, 72px) auto clamp(48px, 6vh, 88px);
  border: 1px solid rgba(229, 227, 218, 0.14) !important;
  border-radius: 20px !important;
  background: rgba(13, 14, 18, 0.96) !important;
  backdrop-filter: blur(28px) !important;
  -webkit-backdrop-filter: blur(28px) !important;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.52) !important;
}

/* Left Artwork */
.tp-register-art {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  background: #08090c !important;
}

.tp-register-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: saturate(0.85) contrast(1.05);
}

.tp-register-art::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(8, 9, 12, 0.15) 0%, rgba(8, 9, 12, 0.88) 100%);
  pointer-events: none;
}

.ah-login-art-content {
  position: absolute;
  z-index: 2;
  bottom: 32px;
  left: 28px;
  right: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ah-login-art-tag {
  display: inline-flex;
  align-items: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #8e8d85;
  text-transform: uppercase;
}

.ah-login-art-title {
  margin: 0;
  font-size: clamp(24px, 2.3vw, 32px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.025em;
  color: #ffffff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}

.ah-login-art-title span {
  color: rgba(255, 255, 255, 0.72);
}

/* Right Card & Form */
.tp-register-card {
  padding: clamp(32px, 4.5vw, 48px) clamp(28px, 4vw, 44px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: transparent !important;
  border: 0 !important;
}

.tp-register-form p {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.tp-register-form label {
  font-size: 13px;
  font-weight: 500;
  color: #d8d7d2;
  letter-spacing: -0.01em;
}

.tp-register-form label::after {
  content: "" !important;
}

.tp-register-form input {
  min-height: 48px;
  padding: 10px 14px;
  font-size: 15px;
  border: 1px solid rgba(229, 227, 218, 0.18) !important;
  border-radius: 10px !important;
  background: #141519 !important;
  color: #ffffff !important;
  box-shadow: none !important;
  transition: border-color 0.16s ease;
}

.tp-register-form input::placeholder {
  color: #656460;
  font-size: 14px;
}

/* Single Layer Sharp Focus (No double borders) */
.ah-customer-system .tp-register-form input:focus,
.ah-customer-system .tp-register-form input:focus-visible {
  outline: none !important;
  border-color: rgba(255, 255, 255, 0.6) !important;
  box-shadow: none !important;
}

/* Username and General Helptext */
.tp-register-form .helptext {
  font-size: 12px;
  line-height: 1.45;
  color: #8e8d85;
  margin-top: 4px;
}

/* Password Spec Rules (Micro 2-Column Grid) */
.ah-password-rules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 12px;
  font-size: 12px;
  line-height: 1.4;
  color: #8e8d85;
  margin-top: 6px;
}

.ah-password-rules span {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

/* Password Control & Embedded Toggle Button */
.tp-register-form .ah-password-control {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.tp-register-form .ah-password-control input {
  width: 100%;
  padding-right: 56px !important;
}

.tp-register-form .ah-password-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  height: 32px;
  min-height: unset !important;
  padding: 0 10px !important;
  border: 0 !important;
  outline: none !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #8e8d85 !important;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.15s ease;
  z-index: 2;
}

.tp-register-form .ah-password-toggle:hover {
  color: #ffffff !important;
}

/* Main CTA Button: ลบเส้นคั่นกลาง | ออก */
.ah-customer-system .ah-main .tp-register-submit {
  width: 100%;
  min-height: 48px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
  border-radius: 10px !important;
  font-size: 15px;
  font-weight: 600;
}

.ah-customer-system .ah-main .tp-register-submit > span[aria-hidden="true"],
.ah-customer-system .ah-main .tp-register-submit > .tp-btn-arrow {
  border-left: none !important;
  padding-left: 0 !important;
  min-width: auto !important;
  min-height: auto !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
}

/* Bottom Links */
.tp-register-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(229, 227, 218, 0.12) !important;
  font-size: 13px;
}

.tp-register-reset {
  color: #8e8d85;
  text-decoration: none;
  transition: color 0.15s ease;
}

.tp-register-reset:hover {
  color: #ffffff;
}

.ah-login-switch {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #8e8d85;
  text-decoration: none;
  font-size: 13px;
}

.ah-login-switch-highlight {
  color: #ffffff;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: color 0.15s ease;
}

.ah-login-switch:hover .ah-login-switch-highlight {
  color: #e5e3da;
  text-decoration: underline;
}

/* Responsive Overrides (< 1024px) */
@media (max-width: 1023px) {
  .tp-register-layout {
    display: flex !important;
    flex-direction: column !important;
    width: min(500px, 92vw) !important;
    min-height: auto !important;
    margin: 24px auto 56px !important;
    border-radius: 18px !important;
  }

  .tp-register-art {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    height: 180px !important;
    min-height: 180px !important;
    max-height: 180px !important;
    flex-shrink: 0 !important;
  }

  .tp-register-art .ah-login-art-content {
    bottom: 16px;
    left: 20px;
    right: 20px;
    gap: 4px;
  }

  .tp-register-art .ah-login-art-tag {
    font-size: 10px;
  }

  .tp-register-art .ah-login-art-title {
    font-size: 20px;
    line-height: 1.2;
  }

  .tp-register-art .ah-login-art-title br {
    display: none;
  }

  .tp-register-art .ah-login-art-title span {
    margin-left: 6px;
  }

  .tp-register-card {
    padding: 26px 20px 30px !important;
    width: 100% !important;
  }
}

@media (max-width: 480px) {
  .ah-password-rules {
    grid-template-columns: 1fr;
    gap: 3px;
  }
}

/* Article Index Eyebrow & Green Pulse Dot Alignment */
.ah-customer-system .ah-articles-heading .tp-articles-badge-row .ah-eyebrow,
.ah-customer-system .tp-articles-badge-row .tp-article-eyebrow {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
}

.ah-customer-system .tp-articles-badge-row .tp-radar-dot-pulse {
  width: 6px !important;
  height: 6px !important;
  border-radius: 50%;
  background: var(--tp-status-success, #7a9374) !important;
  box-shadow: 0 0 4px rgba(122, 147, 116, 0.4) !important;
  margin: 0 !important;
  transform: none !important;
}

/* ==========================================================================
   CANONICAL APPLE BENTO GRID & TACTICAL CTA CORE SYSTEM (Zero-Neon Protocol)
   ========================================================================== */

/* 1. Master Obsidian Bento Chassis */
.ah-master-chassis {
  width: 100%;
  max-width: var(--ah-max-w-grid, 1200px);
  margin: 0 auto;
  background: var(--tp-chassis-bg, rgba(12, 13, 17, 0.96));
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--tp-border-subtle, rgba(255, 255, 255, 0.08));
  border-radius: var(--tp-radius-chassis, 24px);
  box-shadow: var(--tp-shadow-chassis, 0 32px 80px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.12));
  padding: 32px;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

@media (max-width: 767px) {
  .ah-master-chassis {
    padding: 18px 14px !important;
    border-radius: 18px !important;
  }
}

/* 2. Apple Bento Grid */
.ah-bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 991px) {
  .ah-bento-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* 3. Inset Bento Card */
.ah-bento-card {
  background: var(--tp-surface-card, #14161c);
  border: 1px solid var(--tp-border-subtle, rgba(255, 255, 255, 0.08));
  border-radius: var(--tp-radius-card, 18px);
  padding: 24px;
  box-sizing: border-box;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.ah-bento-card:hover {
  border-color: var(--tp-border-active, rgba(255, 255, 255, 0.18));
}

@media (max-width: 767px) {
  .ah-bento-card {
    padding: 16px;
    border-radius: 16px;
  }
}

/* 4. Unified Apple Tactile Off-White Metal CTA (Approved Brand Standard) */
:is(.ah-btn-primary, .ah-btn-tactile-primary, .ah-cta-primary, .ah-checkout-cta) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 12px 28px;
  background: #f0ece1 !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  border-radius: var(--tp-radius-pill, 980px) !important;
  color: #0c0d11 !important;
  font-family: var(--tp-font-sans, var(--ah-text));
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  touch-action: manipulation;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
  transition: transform 0.12s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.16s ease, background-color 0.16s ease, opacity 0.2s ease;
  text-decoration: none;
  box-sizing: border-box;
}

:is(.ah-btn-primary, .ah-btn-tactile-primary, .ah-cta-primary, .ah-checkout-cta):hover:not(:disabled) {
  background: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
  color: #0c0d11 !important;
}

:is(.ah-btn-primary, .ah-btn-tactile-primary, .ah-cta-primary, .ah-checkout-cta):active:not(:disabled) {
  transform: scale(0.97) !important;
  background: #e2ded4 !important;
}

:is(.ah-btn-primary, .ah-btn-tactile-primary, .ah-cta-primary, .ah-checkout-cta):disabled,
:is(.ah-btn-primary, .ah-btn-tactile-primary, .ah-cta-primary, .ah-checkout-cta)[aria-disabled="true"] {
  opacity: 0.38 !important;
  cursor: not-allowed !important;
  background: rgba(240, 236, 225, 0.12) !important;
  color: rgba(240, 236, 225, 0.4) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: none !important;
  transform: none !important;
}

/* 5. Tactile Glass Secondary Button */
:is(.ah-btn-secondary, .ah-btn-tactile-secondary) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 22px;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: var(--tp-radius-pill, 980px) !important;
  color: var(--tp-text-primary, #f5f5f7) !important;
  font-family: var(--tp-font-sans, var(--ah-text));
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  touch-action: manipulation;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
  text-decoration: none;
  box-sizing: border-box;
}

:is(.ah-btn-secondary, .ah-btn-tactile-secondary):hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.14) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

:is(.ah-btn-secondary, .ah-btn-tactile-secondary):active:not(:disabled) {
  transform: scale(0.97);
}

/* 6. Tactical Hazard Button */
:is(.ah-btn-danger, .ah-btn-destructive, .ah-btn-tactical-danger) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 20px;
  background: rgba(184, 74, 57, 0.14) !important;
  border: 1px solid rgba(184, 74, 57, 0.38) !important;
  border-radius: var(--tp-radius-pill, 980px) !important;
  color: #d9625b !important;
  font-family: var(--tp-font-sans, var(--ah-text));
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
  text-decoration: none;
  box-sizing: border-box;
}

:is(.ah-btn-danger, .ah-btn-destructive, .ah-btn-tactical-danger):hover:not(:disabled) {
  background: rgba(184, 74, 57, 0.25) !important;
  border-color: rgba(184, 74, 57, 0.6) !important;
  color: #ff857d !important;
  transform: translateY(-1px);
}

:is(.ah-btn-danger, .ah-btn-destructive, .ah-btn-tactical-danger):active:not(:disabled) {
  transform: scale(0.97);
}

/* 7. Tactical Stencil Tags & HUD Telemetry Badges */
.ah-tag-pass {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: var(--tp-radius-pill, 980px);
  background: var(--ah-vip-brass-fill, rgba(196, 161, 106, 0.12));
  border: 1px solid var(--ah-vip-brass-border, rgba(196, 161, 106, 0.42));
  color: var(--ah-vip-brass-text, #dfc18d);
  font-family: var(--tp-font-mono, var(--ah-mono));
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.ah-tag-cargo {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: var(--tp-radius-pill, 980px);
  background: var(--ah-cargo-steel-fill, rgba(107, 140, 174, 0.14));
  border: 1px solid var(--ah-cargo-steel-border, rgba(107, 140, 174, 0.34));
  color: var(--ah-cargo-steel-text, #adc2d9);
  font-family: var(--tp-font-mono, var(--ah-mono));
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* ==========================================================================
   APPLE TACTICAL OBSIDIAN SLAB: EMAIL VERIFICATION HUB (/verify-email/)
   Resident Evil / Evil Dead Aesthetic × Zero Neon × Symmetrical Apple Hub
   ========================================================================== */
.ah-auth.ah-verify-card.tp-verify-card {
  width: min(440px, calc(100% - 32px));
  max-width: 440px;
  margin: clamp(36px, 6vh, 72px) auto clamp(48px, 8vh, 88px);
  padding: clamp(32px, 5vw, 44px) clamp(22px, 4vw, 36px);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(20, 24, 28, 0.98) 0%, rgba(12, 14, 18, 0.99) 100%) !important;
  border: 1px solid rgba(122, 147, 116, 0.24) !important;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.70), 0 4px 16px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.16), inset 0 -1px 0 rgba(0, 0, 0, 0.6) !important;
  backdrop-filter: blur(28px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(160%) !important;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

/* Tactical Specular Top Bevel */
.ah-auth.ah-verify-card.tp-verify-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  pointer-events: none;
}

/* Tactical Telemetry Stencil Badge */
.tp-verify-hud-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  border-radius: 980px;
  background: rgba(122, 147, 116, 0.12);
  border: 1px solid rgba(122, 147, 116, 0.28);
  color: #7A9374;
  font-family: var(--ah-mono, ui-monospace, monospace);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  text-transform: uppercase;
  white-space: nowrap !important;
}

/* Symmetrical Centered Icon Squircle */
.tp-verify-card .ah-verify-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.tp-verify-card .ah-verify-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(14, 18, 22, 0.92);
  border: 1px solid rgba(122, 147, 116, 0.32);
  color: #7A9374; /* Canonical Tactical Olive */
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 20px rgba(122, 147, 116, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.tp-verify-card .ah-verify-icon-confirm {
  color: #F5F5F7;
  border-color: rgba(245, 245, 247, 0.32);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 20px rgba(245, 245, 247, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.20);
}

.tp-verify-card .ah-verify-icon-expired {
  color: #c4514b;
  border-color: rgba(196, 81, 75, 0.32);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 20px rgba(196, 81, 75, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.tp-verify-card .ah-verify-icon svg {
  width: 26px;
  height: 26px;
}

/* Eyebrow & Main Headings */
.tp-verify-card .ah-eyebrow {
  margin: 0 0 6px;
  color: #a8a29e;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
}

.tp-verify-card h1 {
  margin: 0 0 10px;
  font-family: var(--ah-display, sans-serif);
  font-size: clamp(24px, 3.2vw, 30px);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.025em;
  color: #F5F5F7;
  text-align: center;
}

.tp-verify-card .ah-auth-lede {
  margin: 0 auto 20px;
  max-width: 340px;
  color: #9c9a94;
  font-size: 13.5px;
  line-height: 1.55;
  text-align: center;
}

/* Symmetrical Monospace Email Chip */
.tp-verify-card .ah-email-chip-wrap {
  display: flex;
  justify-content: center;
  margin: 0 0 20px;
  min-width: 0;
  width: 100%;
}

.tp-verify-card .ah-email-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 100%;
  padding: 8px 18px;
  border-radius: 980px;
  background: rgba(10, 12, 16, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.25);
  font-family: var(--ah-mono, ui-monospace, monospace);
  font-size: 13px;
  color: #F5F5F7;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap !important;
  box-sizing: border-box;
}

.tp-verify-card .ah-email-chip svg {
  width: 14px;
  height: 14px;
  color: #7A9374;
  flex-shrink: 0;
}

/* Inset Terminal Guidance Box */
.tp-verify-card .ah-verify-hint {
  padding: 14px 18px;
  margin: 0 0 24px;
  border-radius: 14px;
  background: rgba(10, 12, 16, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
  font-size: 13px;
  line-height: 1.6;
  color: #a8a29e;
  text-align: left;
}

.tp-verify-card .tp-verify-hint-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.tp-verify-card .tp-verify-hint-item + .tp-verify-hint-item {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.tp-verify-card .tp-verify-hint-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7A9374;
  margin-top: 7px;
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(122, 147, 116, 0.6);
}

.tp-verify-card .ah-verify-hint strong {
  color: #F5F5F7;
}

/* Apple Titanium White Primary Action Button */
.tp-verify-card .ah-btn-tactile,
.tp-verify-card .tp-verify-btn {
  width: 100%;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 12px;
  background: #F5F5F7 !important;
  border: 1px solid rgba(255, 255, 255, 0.85) !important;
  color: #0A0D0B !important;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35), inset 0 1px 0 #ffffff !important;
  transition: transform 0.12s cubic-bezier(0.16, 1, 0.3, 1), background 0.15s ease, box-shadow 0.15s ease;
  box-sizing: border-box;
  white-space: nowrap !important;
}

.tp-verify-card .ah-btn-tactile:hover:not(:disabled),
.tp-verify-card .tp-verify-btn:hover:not(:disabled) {
  background: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45), inset 0 1px 0 #ffffff !important;
}

.tp-verify-card .ah-btn-tactile:active:not(:disabled),
.tp-verify-card .tp-verify-btn:active:not(:disabled) {
  transform: scale(0.98);
  background: #e8e8ed !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25) !important;
}

.tp-verify-card .ah-btn-tactile:focus-visible,
.tp-verify-card .tp-verify-btn:focus-visible {
  outline: 2px solid #F5F5F7;
  outline-offset: 3px;
}

.tp-verify-card .tp-btn-arrow {
  display: inline-block;
  font-size: 15px;
  transition: transform 0.15s ease;
}

.tp-verify-card .ah-btn-tactile:hover .tp-btn-arrow,
.tp-verify-card .tp-verify-btn:hover .tp-btn-arrow {
  transform: translate(2px, -2px);
}

/* Symmetrical Footer Switch & Logout Capsule */
.tp-verify-card .ah-auth-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  color: #a8a29e;
  text-align: center;
  flex-wrap: wrap;
}

.tp-verify-card .ah-inline-form {
  display: inline-flex;
  align-items: center;
}

.tp-verify-card .ah-text-link,
.tp-verify-card .tp-verify-logout-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #F5F5F7 !important;
  font-weight: 500;
  font-size: 13px;
  padding: 4px 8px;
  border-radius: 6px;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: all 0.15s ease;
  white-space: nowrap !important;
  min-height: 44px;
}

.tp-verify-card .ah-text-link:hover,
.tp-verify-card .tp-verify-logout-btn:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.08);
}

/* Responsive Scaling */
@media (max-width: 480px) {
  .ah-auth.ah-verify-card.tp-verify-card {
    padding: 28px 18px 22px;
    border-radius: 20px;
    margin: 24px auto 48px;
    width: 100%;
  }

  .tp-verify-card h1 {
    font-size: 22px;
  }

  .tp-verify-card .ah-auth-lede {
    font-size: 13px;
    margin-bottom: 16px;
  }

  .tp-verify-card .ah-verify-hint {
    padding: 12px 14px;
    font-size: 12.5px;
  }

  .tp-verify-card .ah-email-chip {
    font-size: 12px;
    padding: 7px 14px;
  }
}

@media (max-width: 360px) {
  .ah-auth.ah-verify-card.tp-verify-card {
    padding: 24px 14px 18px;
  }

  .tp-verify-card .ah-btn-tactile,
  .tp-verify-card .tp-verify-btn {
    font-size: 13.5px;
    padding: 10px 16px;
  }
}

/* ==========================================================================
   CUSTOMER PASSWORD CHANGE & APPLE AUTH VERIFY SLAB
   Theme: Apple.inc (Cupertino Bento & Settings) + Tactical Dark (Resident Evil / Evil Dead, Zero Neon)
   Jakob's Law Compliant: Apple Inset Preferences, Grounded Action Shelf & Tabular OTP
   ========================================================================== */

.ah-auth.ah-verify-card.ah-auth-apple {
  width: min(480px, calc(100% - 28px)) !important;
  max-width: 480px !important;
  margin: clamp(32px, 5vh, 64px) auto clamp(48px, 8vh, 88px) !important;
  padding: clamp(28px, 5vw, 40px) clamp(20px, 4vw, 36px) !important;
  border-radius: 24px !important;
  background: linear-gradient(180deg, rgba(20, 24, 28, 0.98) 0%, rgba(12, 14, 18, 0.99) 100%) !important;
  border: 1px solid rgba(122, 147, 116, 0.24) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.70), 0 4px 16px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.16), inset 0 -1px 0 rgba(0, 0, 0, 0.6) !important;
  backdrop-filter: blur(28px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(160%) !important;
  text-align: center !important;
  position: relative !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "SF Pro", "Helvetica Neue", Helvetica, Arial, sans-serif !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Tactical Specular Top Bevel */
.ah-auth.ah-verify-card.ah-auth-apple::before {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  left: 12% !important;
  right: 12% !important;
  height: 1px !important;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent) !important;
  pointer-events: none !important;
}

/* Centered Icon Squircle */
.ah-auth.ah-verify-card.ah-auth-apple .ah-verify-icon-wrap {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-bottom: 16px !important;
}

.ah-auth.ah-verify-card.ah-auth-apple .ah-verify-icon {
  width: 54px !important;
  height: 54px !important;
  border-radius: 16px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(196, 142, 89, 0.12) !important;
  border: 1px solid rgba(196, 142, 89, 0.3) !important;
  color: #c48e59 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
  flex-shrink: 0 !important;
}

.ah-auth.ah-verify-card.ah-auth-apple .ah-verify-icon.ah-verify-icon--success {
  background: rgba(122, 147, 116, 0.14) !important;
  border-color: rgba(122, 147, 116, 0.35) !important;
  color: #7a9374 !important;
  box-shadow: 0 0 20px rgba(122, 147, 116, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
}

.ah-auth.ah-verify-card.ah-auth-apple .ah-verify-icon svg {
  width: 26px !important;
  height: 26px !important;
}

/* Eyebrow & Titles */
.ah-auth.ah-verify-card.ah-auth-apple .ah-eyebrow {
  text-align: center !important;
  font-family: var(--ah-mono, ui-monospace, "SF Mono", monospace) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: #71717a !important;
  margin: 0 0 6px !important;
}

.ah-auth.ah-verify-card.ah-auth-apple h1 {
  text-align: center !important;
  font-size: clamp(22px, 3vw, 26px) !important;
  font-weight: 700 !important;
  color: #f5f4ef !important;
  letter-spacing: -0.022em !important;
  margin: 0 0 8px !important;
  line-height: 1.25 !important;
}

.ah-auth.ah-verify-card.ah-auth-apple .ah-auth-lede {
  text-align: center !important;
  max-width: 380px !important;
  margin: 0 auto 22px !important;
  font-size: 13.5px !important;
  color: #a8a29e !important;
  line-height: 1.5 !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
}

/* Form Layout & Spacing */
.ah-auth.ah-verify-card.ah-auth-apple .ah-form {
  text-align: left !important;
  margin: 0 !important;
}

.ah-auth.ah-verify-card.ah-auth-apple .ah-form p {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  margin: 0 0 16px !important;
  text-align: left !important;
}

.ah-auth.ah-verify-card.ah-auth-apple .ah-form label,
.ah-auth.ah-verify-card.ah-auth-apple .ah-field-label {
  display: block !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  color: #e5e3da !important;
  font-family: var(--ah-mono, ui-monospace, "SF Mono", monospace) !important;
  margin-bottom: 2px !important;
}

/* Tactile Inputs */
.ah-auth.ah-verify-card.ah-auth-apple input[type="password"],
.ah-auth.ah-verify-card.ah-auth-apple input[type="text"],
.ah-auth.ah-verify-card.ah-auth-apple input.ah-input {
  width: 100% !important;
  min-height: 48px !important;
  height: 48px !important;
  padding: 0 16px !important;
  border-radius: 12px !important;
  background: rgba(0, 0, 0, 0.55) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: #ffffff !important;
  font-size: 14.5px !important;
  box-sizing: border-box !important;
  transition: all 0.18s ease !important;
}

.ah-auth.ah-verify-card.ah-auth-apple input:focus {
  outline: none !important;
  border-color: rgba(122, 147, 116, 0.7) !important;
  box-shadow: 0 0 0 3px rgba(122, 147, 116, 0.18) !important;
}

/* Apple Inset Rule Callout (Helptext) */
.ah-auth.ah-verify-card.ah-auth-apple .helptext,
.ah-auth.ah-verify-card.ah-auth-apple ul.helptext {
  display: block !important;
  margin: 8px 0 0 !important;
  padding: 10px 14px !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  color: #9c9a94 !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
  text-align: left !important;
  box-sizing: border-box !important;
}

.ah-auth.ah-verify-card.ah-auth-apple ul.helptext {
  list-style: disc inside !important;
}

.ah-auth.ah-verify-card.ah-auth-apple ul.helptext li {
  margin-bottom: 4px !important;
}

.ah-auth.ah-verify-card.ah-auth-apple ul.helptext li:last-child {
  margin-bottom: 0 !important;
}

/* Error List Validation Styling */
.ah-auth.ah-verify-card.ah-auth-apple ul.errorlist {
  list-style: none !important;
  padding: 10px 14px !important;
  margin: 0 0 14px !important;
  border-radius: 10px !important;
  background: rgba(196, 81, 75, 0.14) !important;
  border: 1px solid rgba(196, 81, 75, 0.35) !important;
  color: #fca5a5 !important;
  font-size: 12.5px !important;
  line-height: 1.45 !important;
  text-align: left !important;
  box-sizing: border-box !important;
}

.ah-auth.ah-verify-card.ah-auth-apple ul.errorlist li {
  display: flex !important;
  align-items: flex-start !important;
  gap: 6px !important;
}

/* OTP Verification Row Ergonomics */
.ah-auth.ah-verify-card.ah-auth-apple div:has(> .ah-otp-input, > input[name="code"]) {
  display: flex !important;
  gap: 10px !important;
  align-items: stretch !important;
  margin-bottom: 12px !important;
}

.ah-auth.ah-verify-card.ah-auth-apple .ah-otp-input,
.ah-auth.ah-verify-card.ah-auth-apple input[name="code"] {
  width: 160px !important;
  min-height: 48px !important;
  padding: 0 12px !important;
  font-size: 20px !important;
  font-family: var(--ah-mono, ui-monospace, "SF Mono", monospace) !important;
  letter-spacing: 0.28em !important;
  text-align: center !important;
  font-weight: 700 !important;
  font-feature-settings: "tnum" !important;
  font-variant-numeric: tabular-nums !important;
  flex: 1 1 auto !important;
}

.ah-auth.ah-verify-card.ah-auth-apple .ah-link-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 40px !important;
  color: #9c9a94 !important;
  font-size: 12.5px !important;
  cursor: pointer !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
  transition: color 0.16s ease !important;
  padding: 4px 8px !important;
  background: none !important;
  border: 0 !important;
}

.ah-auth.ah-verify-card.ah-auth-apple .ah-link-btn:hover {
  color: #ffffff !important;
}

/* Grounded Full-Width Action Shelf ("ไม่มีปุ่มลอย") */
.ah-auth.ah-verify-card.ah-auth-apple .ah-btn-tactile {
  width: 100% !important;
  min-height: 50px !important;
  padding: 10px 20px !important;
  border-radius: 980px !important;
  font-size: 14.5px !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  cursor: pointer !important;
  text-decoration: none !important;
  user-select: none !important;
  box-sizing: border-box !important;
  white-space: nowrap !important;
  border: 1px solid transparent !important;
  transition: transform 0.14s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.16s ease, background-color 0.16s ease, border-color 0.16s ease !important;
}

.ah-auth.ah-verify-card.ah-auth-apple .ah-btn-tactile:not(.ah-btn-secondary) {
  background: #f5f5f7 !important;
  color: #0c0d11 !important;
  border-color: rgba(255, 255, 255, 0.6) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
}

.ah-auth.ah-verify-card.ah-auth-apple .ah-btn-tactile:not(.ah-btn-secondary):hover {
  background: #ffffff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

.ah-auth.ah-verify-card.ah-auth-apple .ah-btn-secondary {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #e5e3da !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25) !important;
}

.ah-auth.ah-verify-card.ah-auth-apple .ah-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
}

.ah-auth.ah-verify-card.ah-auth-apple .ah-btn-tactile:active {
  transform: scale(0.98) !important;
}

.ah-auth.ah-verify-card.ah-auth-apple .ah-btn-tactile:focus-visible {
  outline: 2px solid rgba(122, 147, 116, 0.7) !important;
  outline-offset: 2px !important;
}

/* Grounded Footer Shelf & Apple Capsule Back Button */
.ah-auth.ah-verify-card.ah-auth-apple > div:last-child {
  margin-top: 24px !important;
  padding-top: 16px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  text-align: center !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
}

.ah-auth.ah-verify-card.ah-auth-apple > div:last-child a:not(.ah-btn-tactile) {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  min-height: 42px !important;
  padding: 0 16px !important;
  border-radius: 980px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #e5e3da !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-sizing: border-box !important;
}

.ah-auth.ah-verify-card.ah-auth-apple > div:last-child a:not(.ah-btn-tactile):hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
  transform: translateX(-2px) !important;
}

/* Mobile Responsive Ergonomics (< 480px) */
@media (max-width: 480px) {
  .ah-auth.ah-verify-card.ah-auth-apple {
    width: 100% !important;
    padding: 24px 18px 20px !important;
    border-radius: 20px !important;
    margin: 20px auto 44px !important;
  }

  .ah-auth.ah-verify-card.ah-auth-apple h1 {
    font-size: 21px !important;
  }

  .ah-auth.ah-verify-card.ah-auth-apple .ah-auth-lede {
    font-size: 13px !important;
    margin-bottom: 18px !important;
  }

  /* OTP row stacked on mobile so button & digits don't squeeze */
  .ah-auth.ah-verify-card.ah-auth-apple div:has(> .ah-otp-input, > input[name="code"]) {
    flex-direction: column !important;
    gap: 10px !important;
  }

  .ah-auth.ah-verify-card.ah-auth-apple .ah-otp-input,
  .ah-auth.ah-verify-card.ah-auth-apple input[name="code"] {
    width: 100% !important;
    min-height: 50px !important;
    font-size: 22px !important;
  }

  .ah-auth.ah-verify-card.ah-auth-apple div:has(> .ah-otp-input, > input[name="code"]) .ah-btn-tactile {
    width: 100% !important;
  }

  .ah-auth.ah-verify-card.ah-auth-apple > div:last-child a:not(.ah-btn-tactile) {
    width: 100% !important;
    min-height: 44px !important;
  }
}

