/* Black, high-contrast CRM visual system. Loaded after the page and component styles. */
:root {
  color-scheme: dark;
  --crm-bg: #000;
  --crm-surface: #101012;
  --crm-surface-raised: #19191d;
  --crm-line: rgba(255, 255, 255, .12);
  --crm-text: #f5f5f7;
  --crm-muted: #a1a1a6;
  --crm-accent: #f5f5f7;
  --crm-accent-contrast: #050505;
  --crm-focus: #a1a1a6;
  --crm-radius: 16px;
  --crm-shadow: 0 12px 36px rgba(0, 0, 0, .32);
  --bg: #000;
  --panel: #101012;
  --panel2: #19191d;
  --line: rgba(255,255,255,.12);
  --text: #f5f5f7;
  --muted: #a1a1a6;
  --purple: #d2d2d7;
  --purple2: #f5f5f7;
  --radius: 16px;
}

html { background: #000; }
body.adrenaline-ui {
  color: var(--crm-text);
  background: #000;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.adrenaline-ui :where(h1,h2,h3,h4) {
  color: #f5f5f7;
  line-height: 1.12;
  letter-spacing: -.035em;
  text-wrap: balance;
}
body.adrenaline-ui h1 { font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 650; }
body.adrenaline-ui h2 { font-size: clamp(1.45rem, 2.5vw, 2.15rem); font-weight: 620; }
body.adrenaline-ui :where(p, .muted, small, .text-muted, .hint, .subtitle) { color: #a1a1a6; }
body.adrenaline-ui :where(a) { color: #f5f5f7; text-underline-offset: .2em; }
body.adrenaline-ui :where(a:hover) { color: #fff; }

body.adrenaline-ui :where(header, .site-header, .topbar, .crm-header, .nav-shell) {
  background: rgba(0, 0, 0, .94);
  border-color: var(--crm-line);
  backdrop-filter: saturate(180%) blur(18px);
}
body.adrenaline-ui :where(nav a, .nav-link, .menu-link, .tab, .subnav a) {
  color: #a1a1a6;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}
body.adrenaline-ui :where(nav a:hover, .nav-link:hover, .menu-link:hover, .tab:hover, .subnav a:hover) { color: #fff; }
body.adrenaline-ui :where(.active, [aria-current="page"], .tab.active, .nav-link.active) {
  color: #fff;
}

body.adrenaline-ui :where(.panel, .card, .section, .metric, .stat-card, .table-wrap, .filter-panel, .form-panel, .content-card, .modal-content, .calendar-day, .calendar-event) {
  color: var(--crm-text);
  background-color: #101012;
  background-image: linear-gradient(145deg, rgba(255,255,255,.035), transparent 52%);
  border-color: var(--crm-line);
  border-radius: var(--crm-radius);
  box-shadow: 0 1px 0 rgba(255,255,255,.025) inset;
}
body.adrenaline-ui :where(.page, main, .container, .content, .page-content) { color: var(--crm-text); }
body.adrenaline-ui :where(hr, .divider, .section-header, .table thead, table thead) { border-color: var(--crm-line); }
body.adrenaline-ui :where(table, .table) { color: var(--crm-text); border-color: var(--crm-line); }
body.adrenaline-ui :where(th, .table th) {
  color: #a1a1a6;
  background: #0a0a0b;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .045em;
  text-transform: uppercase;
}
body.adrenaline-ui :where(td, .table td) { border-color: rgba(255,255,255,.09); }
body.adrenaline-ui :where(tbody tr:hover, .table tbody tr:hover) { background: rgba(255,255,255,.045); }

body.adrenaline-ui :where(input, select, textarea, .form-control, .form-select) {
  min-height: 44px;
  color: #f5f5f7;
  background-color: #09090a;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 10px;
  font: inherit;
}
body.adrenaline-ui textarea { min-height: 100px; }
body.adrenaline-ui :where(input, select, textarea, .form-control, .form-select)::placeholder { color: #8e8e93; opacity: 1; }
body.adrenaline-ui :where(input, select, textarea, button, a, .form-control, .form-select):focus-visible {
  outline: 2px solid #a1a1a6;
  outline-offset: 2px;
  border-color: #d2d2d7;
}
body.adrenaline-ui :where(button, .btn, .button, input[type="submit"]) {
  min-height: 42px;
  color: #f5f5f7;
  background: #1c1c1e;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  font: inherit;
  font-size: .9rem;
  font-weight: 570;
  transition: transform .16s ease, background-color .16s ease, border-color .16s ease;
}
body.adrenaline-ui :where(button:hover, .btn:hover, .button:hover, input[type="submit"]:hover) {
  color: #fff;
  background: #29292c;
  border-color: rgba(255,255,255,.3);
}
body.adrenaline-ui :where(.btn-primary, .button-primary, button.primary, .primary-action) {
  color: #050505;
  background: linear-gradient(180deg, #fff, #e5e5ea);
  border-color: #f5f5f7;
  font-weight: 650;
}
body.adrenaline-ui :where(.btn-primary:hover, .button-primary:hover, button.primary:hover, .primary-action:hover) {
  color: #000;
  background: #fff;
}
body.adrenaline-ui :where(.badge, .pill, .tag, .status-badge) {
  color: #d2d2d7;
  background: #202023;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
}
body.adrenaline-ui :where(.alert, .flash, .notice) { border-radius: 12px; }
body.adrenaline-ui :where(.pagination, .pager) { color: #d2d2d7; }
body.adrenaline-ui :where(.pagination .active, .pager .active) { color: #000; background: #f5f5f7; }
body.adrenaline-ui :where(.modal, .dropdown-menu, .popover) {
  color: var(--crm-text);
  background: #161618;
  border: 1px solid var(--crm-line);
  border-radius: 14px;
  box-shadow: var(--crm-shadow);
}
body.adrenaline-ui :where(.modal-header, .modal-footer) { border-color: var(--crm-line); }
body.adrenaline-ui ::selection { color: #000; background: #d2d2d7; }

/* Storefront-inspired home: quiet monochrome accents and generous spacing. */
body.adrenaline-ui.page-home {
  color: #f5f5f7;
  background: #000;
}
body.adrenaline-ui.page-home :where(.site-home-edition, .site-home-direction, .home-card-number, .home-card-kicker) { color: #a1a1a6; }
body.adrenaline-ui.page-home :where(.home-card, .home-tile, .home-hero-card) {
  color: #f5f5f7;
  background: linear-gradient(145deg, #151517, #09090a 70%);
  border-color: rgba(255,255,255,.12);
  border-radius: 20px;
  box-shadow: 0 1px 0 rgba(255,255,255,.035) inset;
}
body.adrenaline-ui.page-home :where(.home-card:hover, .home-tile:hover, .home-hero-card:hover) {
  border-color: rgba(255,255,255,.26);
  background: linear-gradient(145deg, #1b1b1e, #0b0b0c 70%);
}
body.adrenaline-ui.page-home :where(.home-card::before, .home-tile::before, .home-hero-card::before) {
  background: linear-gradient(90deg, #f5f5f7, rgba(245,245,247,.12));
}
body.adrenaline-ui.page-home :where(.home-card-icon, .home-tile-icon, .home-icon) {
  color: #f5f5f7;
  background: #202023;
  border-color: rgba(255,255,255,.18);
}
body.adrenaline-ui.page-home :where(.home-card-cta, .home-tile-cta) { color: #f5f5f7; }

@media (max-width: 760px) {
  body.adrenaline-ui { font-size: 15px; }
  body.adrenaline-ui :where(.panel, .card, .section, .metric, .stat-card, .table-wrap, .filter-panel, .form-panel, .content-card) { border-radius: 13px; }
  body.adrenaline-ui :where(input, select, textarea, .form-control, .form-select) { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  body.adrenaline-ui *, body.adrenaline-ui *::before, body.adrenaline-ui *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* Final overrides for legacy page rules that intentionally use !important. */
body.adrenaline-ui {
  color: #f5f5f7 !important;
  background: #000 !important;
  font-size: 15px !important;
}
body.adrenaline-ui :focus-visible,
body.auth-page :focus-visible { outline-color: #d2d2d7 !important; }
body.adrenaline-ui .role-header {
  background: rgba(0,0,0,.94) !important;
  border-bottom-color: rgba(255,255,255,.12) !important;
}
body.adrenaline-ui .site-brand-catalog { color: #f5f5f7 !important; font-size: 12px !important; }
body.adrenaline-ui .site-brand-services,
body.adrenaline-ui .site-brand-return { color: #a1a1a6 !important; font-size: 11px !important; }
body.adrenaline-ui .site-service-rail { color: #a1a1a6 !important; font-size: 12px !important; }
body.adrenaline-ui .current-section strong { font-size: 14px !important; }
body.adrenaline-ui .date-chip,
body.adrenaline-ui .logout-link { color: #d2d2d7 !important; font-size: 13px !important; }
body.adrenaline-ui .user-chip strong { color: #f5f5f7 !important; font-size: 13px !important; }
body.adrenaline-ui .user-chip span { color: #a1a1a6 !important; font-size: 12px !important; }
body.adrenaline-ui .current-section {
  border-color: rgba(255,255,255,.14) !important;
  background: #151517 !important;
}
body.adrenaline-ui .current-section-icon {
  border-color: rgba(255,255,255,.2) !important;
  background: #232326 !important;
  color: #f5f5f7 !important;
}
body.adrenaline-ui .current-section strong { color: #f5f5f7 !important; }
body.adrenaline-ui :where(.topbar-title, .page-title, .section-title, .panel-head h2) { color: #f5f5f7 !important; }
body.adrenaline-ui :where(.topbar-sub, .panel-head p, .current-section small) {
  color: #a1a1a6 !important;
  font-size: 13px !important;
}
body.adrenaline-ui .panel {
  background: linear-gradient(150deg,rgba(255,255,255,.035),transparent 58%),#101012 !important;
  border-color: rgba(255,255,255,.12) !important;
  box-shadow: 0 1px 0 rgba(255,255,255,.025) inset !important;
}
body.adrenaline-ui .metric {
  background: linear-gradient(150deg,rgba(255,255,255,.035),transparent 65%),#101012 !important;
  border-color: rgba(255,255,255,.12) !important;
}
body.adrenaline-ui .metric::before { background: linear-gradient(180deg,#f5f5f7,#77777c) !important; }
body.adrenaline-ui .metric.accent {
  border-color: rgba(255,255,255,.2) !important;
  background: linear-gradient(145deg,rgba(255,255,255,.09),rgba(255,255,255,.015) 72%),#101012 !important;
}
body.adrenaline-ui .metric span { color: #a1a1a6 !important; font-size: 12px !important; }
body.adrenaline-ui .metric strong { color: #f5f5f7 !important; }
body.adrenaline-ui .section-subtab { color: #a1a1a6 !important; font-size: 13px !important; }
body.adrenaline-ui .section-subtab.active {
  color: #050505 !important;
  background: #f5f5f7 !important;
  box-shadow: none !important;
}
body.adrenaline-ui .section-subtab.active b { color: #050505 !important; background: rgba(0,0,0,.08) !important; }
body.adrenaline-ui :where(input,select,textarea,.form-control,.form-select):focus {
  border-color: #d2d2d7 !important;
  box-shadow: 0 0 0 3px rgba(210,210,215,.14) !important;
}
body.adrenaline-ui .form-section { color: #d2d2d7 !important; font-size: 12px !important; }
body.adrenaline-ui :where(.btn-primary, .button-primary, button.primary, .primary-action, button[type="submit"]) {
  color: #050505 !important;
  background: linear-gradient(180deg,#fff,#e5e5ea) !important;
  border-color: #f5f5f7 !important;
  box-shadow: none !important;
}
body.adrenaline-ui :where(.btn-primary:hover, .button-primary:hover, button.primary:hover, .primary-action:hover, button[type="submit"]:hover) {
  background: #fff !important;
}
body.adrenaline-ui .logout-link:hover {
  border-color: rgba(255,255,255,.32) !important;
  background: rgba(255,255,255,.08) !important;
}
body.adrenaline-ui :where(.form-grid label, label) { color: #d2d2d7 !important; font-size: 13px !important; }

body.adrenaline-ui.page-home {
  background: radial-gradient(ellipse at 50% -20%,rgba(255,255,255,.07),transparent 48%),#000 !important;
}
body.adrenaline-ui.page-home .role-header {
  background: rgba(0,0,0,.94) !important;
  border-bottom-color: rgba(255,255,255,.12) !important;
}
body.adrenaline-ui.page-home .site-brand-catalog,
body.adrenaline-ui.page-home .site-home-intro h1,
body.adrenaline-ui.page-home .home-header-title strong { color: #f5f5f7 !important; }
body.adrenaline-ui.page-home .site-brand-services,
body.adrenaline-ui.page-home .home-header-title small { color: #a1a1a6 !important; }
body.adrenaline-ui.page-home .role-home-intro { border-bottom-color: rgba(255,255,255,.12) !important; }
body.adrenaline-ui.page-home .site-home-logo-wrap {
  border-color: rgba(255,255,255,.14) !important;
  background: radial-gradient(circle at 50% 25%,rgba(255,255,255,.09),rgba(255,255,255,.015) 70%) !important;
}
body.adrenaline-ui.page-home .site-home-edition { color: #d2d2d7 !important; font-size: 12px !important; }
body.adrenaline-ui.page-home .site-home-directions { color: #a1a1a6 !important; font-size: 12px !important; }
body.adrenaline-ui.page-home .site-home-directions span {
  border-color: rgba(255,255,255,.14) !important;
  background: rgba(255,255,255,.035) !important;
}
body.adrenaline-ui.page-home .site-home-intro p { color: #b8b8bd !important; font-size: 15px !important; }
body.adrenaline-ui.page-home .role-home-card {
  border-color: rgba(255,255,255,.13) !important;
  background: linear-gradient(145deg,rgba(255,255,255,.055),rgba(255,255,255,.012) 54%),#101012 !important;
  box-shadow: 0 1px 0 rgba(255,255,255,.035) inset,0 18px 48px rgba(0,0,0,.24) !important;
}
body.adrenaline-ui.page-home .role-home-card::before { background: linear-gradient(90deg,#f5f5f7,rgba(245,245,247,.1)) !important; }
body.adrenaline-ui.page-home .role-home-card:hover {
  border-color: rgba(255,255,255,.28) !important;
  background: linear-gradient(145deg,rgba(255,255,255,.085),rgba(255,255,255,.018) 60%),#141416 !important;
}
body.adrenaline-ui.page-home .role-home-card:focus-visible { outline-color: #d2d2d7 !important; }
body.adrenaline-ui.page-home .role-home-icon,
body.adrenaline-ui.page-home .orders-card .role-home-icon,
body.adrenaline-ui.page-home .retail-card .role-home-icon,
body.adrenaline-ui.page-home .users-card .role-home-icon {
  color: #f5f5f7 !important;
  background: #202023 !important;
  border-color: rgba(255,255,255,.17) !important;
}
body.adrenaline-ui.page-home .role-home-number,
body.adrenaline-ui.page-home .role-home-card h2,
body.adrenaline-ui.page-home .role-home-card-footer strong { color: #f5f5f7 !important; }
body.adrenaline-ui.page-home .role-home-card p { color: #b8b8bd !important; font-size: 14px !important; }
body.adrenaline-ui.page-home .role-home-card-footer { border-top-color: rgba(255,255,255,.12) !important; }
body.adrenaline-ui.page-home .role-home-card-footer span { color: #a1a1a6 !important; font-size: 11px !important; }
body.adrenaline-ui.page-home .role-home-card-footer b,
body.adrenaline-ui.page-home .orders-card .role-home-card-footer b,
body.adrenaline-ui.page-home .retail-card .role-home-card-footer b,
body.adrenaline-ui.page-home .users-card .role-home-card-footer b {
  color: #d2d2d7 !important;
  background: rgba(255,255,255,.045) !important;
  border-color: rgba(255,255,255,.15) !important;
}
body.adrenaline-ui.page-home .role-home-note {
  color: #a1a1a6 !important;
  background: rgba(255,255,255,.025) !important;
  border-color: rgba(255,255,255,.12) !important;
  font-size: 13px !important;
}
body.adrenaline-ui.page-home .role-home-note strong { color: #f5f5f7 !important; }

body.adrenaline-ui .btn {
  min-height: 44px !important;
  padding: 0 17px !important;
  border-radius: 999px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}
body.adrenaline-ui .btn.primary {
  color: #050505 !important;
  background: linear-gradient(180deg,#fff,#e5e5ea) !important;
  border: 1px solid #f5f5f7 !important;
  box-shadow: none !important;
}
body.adrenaline-ui .btn.primary:hover { background: #fff !important; }
body.adrenaline-ui .btn.secondary,
body.adrenaline-ui .btn.ghost {
  color: #f5f5f7 !important;
  background: #1c1c1e !important;
  border-color: rgba(255,255,255,.18) !important;
}
body.adrenaline-ui .btn.small-btn { min-height: 38px !important; font-size: 12px !important; }
body.adrenaline-ui table { font-size: 13px !important; }
body.adrenaline-ui th { color: #b8b8bd !important; background: #0a0a0b !important; font-size: 11px !important; }
body.adrenaline-ui td { color: #e5e5ea; }

/* Login and registration screens */
body.auth-page {
  color: #f5f5f7 !important;
  background: radial-gradient(ellipse at 50% -15%,rgba(255,255,255,.075),transparent 48%),#000 !important;
  font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif !important;
  font-size: 15px !important;
}
body.auth-page .auth-card {
  max-width: 560px;
  color: #f5f5f7 !important;
  background: linear-gradient(150deg,#171719,#09090a 70%) !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  border-radius: 22px !important;
  box-shadow: 0 24px 80px rgba(0,0,0,.5) !important;
}
body.auth-page .auth-heading h1 { color: #f5f5f7 !important; font-size: 30px !important; font-weight: 620 !important; }
body.auth-page :where(.auth-heading p,.auth-form label,.auth-brand span,.auth-first-note span) { color: #a1a1a6 !important; font-size: 14px !important; }
body.auth-page :where(input,select,textarea) {
  min-height: 46px;
  color: #f5f5f7 !important;
  background: #09090a !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  border-radius: 11px !important;
  font-size: 15px !important;
}
body.auth-page .auth-first-note {
  color: #b8b8bd !important;
  background: rgba(255,255,255,.035) !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  border-radius: 14px !important;
}
body.auth-page .auth-first-note strong { color: #f5f5f7 !important; }
body.auth-page .auth-form .btn.primary,
body.auth-page .auth-submit {
  min-height: 46px !important;
  color: #050505 !important;
  background: linear-gradient(180deg,#fff,#e5e5ea) !important;
  border: 1px solid #f5f5f7 !important;
  border-radius: 999px !important;
  font-size: 14px !important;
}
body.auth-page :where(.auth-message,.auth-message.error) { border-radius: 12px !important; }

/* Public product catalog */
body.public-shop {
  color: #f5f5f7 !important;
  background: #000 !important;
  font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif !important;
  font-size: 15px !important;
}
body.public-shop :where(.shop-header,.shop-filter-shell,.shop-product-card,.shop-empty,.shop-product-info,.shop-product-feature-grid>div,.shop-footer) {
  color: #f5f5f7 !important;
  background-color: #101012 !important;
  border-color: rgba(255,255,255,.13) !important;
}
body.public-shop .shop-header { background: rgba(0,0,0,.94) !important; }
body.public-shop :where(.shop-header-copy span,.shop-hero p,.shop-filter-shell label,.shop-results-head span,.shop-product-specs,.shop-product-note,.shop-footer span) {
  color: #a1a1a6 !important;
  font-size: 14px !important;
}
body.public-shop :where(.shop-hero h1,.shop-product-info h1,.shop-product-title,.shop-price strong,.shop-product-page-price strong) { color: #f5f5f7 !important; }
body.public-shop :where(.shop-filter-shell,.shop-product-card,.shop-empty,.shop-product-info,.shop-product-feature-grid>div) { border-radius: 16px !important; }
body.public-shop :where(.shop-filters input,.shop-filters select) {
  min-height: 44px;
  color: #f5f5f7 !important;
  background: #09090a !important;
  border-color: rgba(255,255,255,.18) !important;
  border-radius: 10px !important;
  font-size: 15px !important;
}
body.public-shop .shop-product-card:hover { background: #171719 !important; border-color: rgba(255,255,255,.26) !important; }
body.public-shop :where(.shop-primary-button,.shop-details-button) {
  color: #050505 !important;
  background: linear-gradient(180deg,#fff,#e5e5ea) !important;
  border: 1px solid #f5f5f7 !important;
  border-radius: 999px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
}
body.public-shop :where(.shop-reset-button,.shop-share-button) {
  color: #f5f5f7 !important;
  background: #1c1c1e !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  border-radius: 999px !important;
}
body.public-shop .shop-product-category,
body.public-shop .shop-stock { border: 1px solid rgba(255,255,255,.14) !important; border-radius: 999px !important; }
body.public-shop .shop-footer { border-top: 1px solid rgba(255,255,255,.12) !important; }

/* Printable order card remains paper-friendly when printed. */
body.card-page {
  color: #f5f5f7 !important;
  background: #000 !important;
  font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif !important;
}
body.card-page .tech-card {
  color: #f5f5f7 !important;
  background: linear-gradient(150deg,#171719,#09090a 65%) !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  border-radius: 20px !important;
  box-shadow: 0 18px 50px rgba(0,0,0,.35) !important;
}
body.card-page :where(.tech-grid>div,.tech-section) {
  color: #f5f5f7 !important;
  background: #101012 !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  border-radius: 14px !important;
}
body.card-page :where(.tech-grid span,.tech-section span,.tech-card-top span,.tech-responsible) { color: #a1a1a6 !important; font-size: 13px !important; }
body.card-page :where(.tech-grid strong,.tech-section strong,.tech-card-top strong,.tech-date) { color: #f5f5f7 !important; }
body.card-page .tech-section.money-note { background: #14191a !important; }
@media print {
  body.card-page, body.card-page .tech-card, body.card-page :where(.tech-grid>div,.tech-section) {
    color: #111 !important;
    background: #fff !important;
    box-shadow: none !important;
    border-color: #bbb !important;
  }
  body.card-page :where(.tech-grid span,.tech-section span,.tech-card-top span,.tech-responsible) { color: #555 !important; }
}
