/* Enterprise SaaS visual system shared by the administrator and agency portals. */
:root {
  /* One semantic palette for the storefront, administrator portal and login. */
  --color-primary: #2563eb;
  --color-primary-hover: #1d4ed8;
  --color-primary-active: #1e40af;
  --color-primary-soft: #eff6ff;
  --color-on-primary: #ffffff;
  --color-app-background: #f3f6fa;
  --color-surface: #ffffff;
  --color-surface-subtle: #f8fafc;
  --color-surface-hover: #f1f5f9;
  --color-border: #dbe3ee;
  --color-border-strong: #b8c6d9;
  --color-text-primary: #172033;
  --color-text-secondary: #475569;
  --color-text-muted: #64748b;
  --color-text-disabled: #94a3b8;
  --color-nav-background: #0f2747;
  --color-nav-hover: #17375e;
  --color-nav-text: #eaf1fb;
  --color-success: #047857;
  --color-success-soft: #ecfdf5;
  --color-warning: #92400e;
  --color-warning-soft: #fffbeb;
  --color-danger: #b42318;
  --color-danger-soft: #fff1f2;
  --shadow-surface: 0 0 0 1px rgba(15, 39, 71, .05), 0 8px 24px rgba(15, 39, 71, .07);
  --shadow-surface-hover: 0 0 0 1px rgba(37, 99, 235, .14), 0 12px 28px rgba(15, 39, 71, .1);
  --saas-primary: #3b82f6;
  --saas-primary-alt: #4f7cff;
  --saas-primary-hover: #5b96ff;
  --saas-success: #22c55e;
  --saas-warning: #f59e0b;
  --saas-danger: #ef4444;
  --saas-background: #071a2d;
  --saas-sidebar: #091e33;
  --saas-card: #0f2742;
  --saas-card-raised: #112c49;
  --saas-card-hover: #173554;
  --saas-input: #16324e;
  --saas-border: rgba(255, 255, 255, .05);
  --saas-text-primary: #f8fafc;
  --saas-text-secondary: #c7d2e3;
  --saas-text-description: #8ea6c1;
  --saas-text-disabled: #60748a;
  --saas-card-shadow: 0 10px 30px rgba(0, 0, 0, .18);
  --premium-bg: var(--saas-background);
  --premium-bg-soft: var(--saas-card);
  --premium-surface: var(--saas-card);
  --premium-surface-strong: var(--saas-card-raised);
  --premium-surface-hover: var(--saas-card-hover);
  --premium-border: var(--saas-border);
  --premium-border-strong: rgba(79, 124, 255, .55);
  --premium-text: var(--saas-text-primary);
  --premium-text-secondary: var(--saas-text-secondary);
  --premium-muted: var(--saas-text-description);
  --premium-disabled: var(--saas-text-disabled);
  --premium-cyan: var(--saas-primary);
  --premium-teal: var(--saas-primary-alt);
  --premium-gold: var(--saas-warning);
  --premium-danger: var(--saas-danger);
  --premium-success: var(--saas-success);
  --premium-shadow: var(--saas-card-shadow);
  --premium-radius: 12px;
  --premium-backdrop:
    radial-gradient(circle at 82% 8%, rgba(59, 130, 246, .1), transparent 32rem),
    radial-gradient(circle at 20% 75%, rgba(79, 124, 255, .07), transparent 36rem);
  --premium-pattern:
    linear-gradient(rgba(148, 163, 184, .018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, .018) 1px, transparent 1px);
  --premium-pattern-size: 44px 44px;
}

.premium-admin,
.premium-agency,
.premium-login {
  --ink: var(--premium-text);
  --muted: var(--premium-muted);
  --line: var(--premium-border);
  --page: var(--premium-bg);
  --nav: var(--saas-sidebar);
  --nav-soft: var(--saas-sidebar);
  --primary: var(--saas-primary);
  --primary-dark: #2563eb;
  --panel: var(--premium-surface);
  --soft: var(--saas-card-raised);
  --shadow: var(--premium-shadow);
  background: var(--premium-backdrop), var(--premium-bg);
  color: var(--premium-text);
  font-family: "HarmonyOS Sans SC", "MiSans", "OPPOSans", "Source Han Sans SC", "Noto Sans SC", "PingFang SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 500;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

:is(.premium-admin, .premium-agency, .premium-login)[data-theme-background="graphite"] {
  --premium-bg: #151a21;
  --premium-bg-soft: #1d242d;
  --premium-surface: rgba(38, 46, 57, .95);
  --premium-surface-strong: #303b48;
  --premium-surface-hover: #3a4756;
  --premium-border: rgba(186, 199, 214, .22);
  --premium-border-strong: rgba(202, 216, 231, .46);
  --nav: #1a2028;
  --nav-soft: #35414f;
  --panel: var(--premium-surface);
  --soft: rgba(43, 52, 64, .82);
  --admin-surface-inset: rgba(30, 37, 46, .94);
  --admin-surface-raised: rgba(48, 59, 72, .96);
  --admin-surface-hover: rgba(58, 71, 86, .98);
  --admin-surface-selected: rgba(48, 77, 82, .96);
  --admin-outline: rgba(186, 199, 214, .22);
  --admin-outline-strong: rgba(202, 216, 231, .46);
  --agency-surface-inset: #1e252e;
  --agency-surface-raised: #303b48;
  --agency-surface-hover: #3a4756;
}

:is(.premium-admin, .premium-agency, .premium-login)[data-theme-background="emerald"] {
  --premium-bg: #0b211f;
  --premium-bg-soft: #102f2b;
  --premium-surface: rgba(21, 61, 55, .95);
  --premium-surface-strong: #194a43;
  --premium-surface-hover: #205b52;
  --premium-border: rgba(118, 211, 189, .24);
  --premium-border-strong: rgba(102, 228, 196, .48);
  --nav: #0d2a27;
  --nav-soft: #1e514a;
  --panel: var(--premium-surface);
  --soft: rgba(24, 70, 63, .82);
  --admin-surface-inset: rgba(15, 47, 43, .94);
  --admin-surface-raised: rgba(25, 74, 67, .96);
  --admin-surface-hover: rgba(32, 91, 82, .98);
  --admin-surface-selected: rgba(28, 91, 76, .96);
  --admin-outline: rgba(118, 211, 189, .24);
  --admin-outline-strong: rgba(102, 228, 196, .48);
  --agency-surface-inset: #0f2f2b;
  --agency-surface-raised: #194a43;
  --agency-surface-hover: #205b52;
}

:is(.premium-admin, .premium-agency, .premium-login)[data-theme-background="burgundy"] {
  --premium-bg: #27151c;
  --premium-bg-soft: #351d26;
  --premium-surface: rgba(68, 37, 49, .95);
  --premium-surface-strong: #53303e;
  --premium-surface-hover: #633b4a;
  --premium-border: rgba(226, 163, 183, .23);
  --premium-border-strong: rgba(240, 172, 195, .48);
  --nav: #321923;
  --nav-soft: #5a3040;
  --panel: var(--premium-surface);
  --soft: rgba(76, 42, 55, .82);
  --admin-surface-inset: rgba(53, 29, 38, .94);
  --admin-surface-raised: rgba(83, 48, 62, .96);
  --admin-surface-hover: rgba(99, 59, 74, .98);
  --admin-surface-selected: rgba(91, 54, 72, .96);
  --admin-outline: rgba(226, 163, 183, .23);
  --admin-outline-strong: rgba(240, 172, 195, .48);
  --agency-surface-inset: #351d26;
  --agency-surface-raised: #53303e;
  --agency-surface-hover: #633b4a;
}

:is(.premium-admin, .premium-agency, .premium-login)[data-theme-background="sky"] {
  --premium-bg: #24465c;
  --premium-bg-soft: #2c5369;
  --premium-surface: rgba(51, 91, 114, .96);
  --premium-surface-strong: #396278;
  --premium-surface-hover: #416f84;
  --premium-border: rgba(205, 232, 243, .3);
  --premium-border-strong: rgba(185, 234, 245, .58);
  --nav: #1f4054;
  --nav-soft: #426d82;
  --panel: var(--premium-surface);
  --soft: rgba(54, 96, 118, .88);
  --admin-surface-inset: rgba(44, 82, 103, .94);
  --admin-surface-raised: rgba(57, 98, 120, .97);
  --admin-surface-hover: rgba(65, 111, 132, .98);
  --admin-surface-selected: rgba(52, 109, 120, .96);
  --admin-outline: rgba(205, 232, 243, .28);
  --admin-outline-strong: rgba(185, 234, 245, .58);
  --agency-surface-inset: #2c5267;
  --agency-surface-raised: #396278;
  --agency-surface-hover: #416f84;
}

:is(.premium-admin, .premium-agency, .premium-login)[data-theme-background="silver"] {
  --premium-bg: #39434d;
  --premium-bg-soft: #424d58;
  --premium-surface: rgba(71, 83, 95, .96);
  --premium-surface-strong: #4c5965;
  --premium-surface-hover: #566573;
  --premium-border: rgba(223, 231, 238, .28);
  --premium-border-strong: rgba(225, 237, 246, .54);
  --nav: #303a43;
  --nav-soft: #596775;
  --panel: var(--premium-surface);
  --soft: rgba(74, 87, 99, .9);
  --admin-surface-inset: rgba(64, 76, 87, .95);
  --admin-surface-raised: rgba(76, 89, 101, .97);
  --admin-surface-hover: rgba(86, 101, 115, .98);
  --admin-surface-selected: rgba(68, 105, 113, .96);
  --admin-outline: rgba(223, 231, 238, .25);
  --admin-outline-strong: rgba(199, 235, 241, .54);
  --agency-surface-inset: #404c57;
  --agency-surface-raised: #4c5965;
  --agency-surface-hover: #566573;
}

:is(.premium-admin, .premium-agency, .premium-login)[data-theme-background="sage"] {
  --premium-bg: #294a43;
  --premium-bg-soft: #31564e;
  --premium-surface: rgba(54, 90, 82, .96);
  --premium-surface-strong: #3f665d;
  --premium-surface-hover: #487269;
  --premium-border: rgba(198, 231, 220, .28);
  --premium-border-strong: rgba(178, 237, 218, .55);
  --nav: #234039;
  --nav-soft: #4a7067;
  --panel: var(--premium-surface);
  --soft: rgba(58, 96, 87, .9);
  --admin-surface-inset: rgba(48, 83, 75, .95);
  --admin-surface-raised: rgba(63, 102, 93, .97);
  --admin-surface-hover: rgba(72, 114, 105, .98);
  --admin-surface-selected: rgba(52, 112, 99, .96);
  --admin-outline: rgba(198, 231, 220, .25);
  --admin-outline-strong: rgba(178, 237, 218, .55);
  --agency-surface-inset: #30534b;
  --agency-surface-raised: #3f665d;
  --agency-surface-hover: #487269;
}

:is(.premium-admin, .premium-agency, .premium-login)[data-theme-background="clay"] {
  --premium-bg: #543d42;
  --premium-bg-soft: #5f464c;
  --premium-surface: rgba(96, 72, 78, .96);
  --premium-surface-strong: #664d53;
  --premium-surface-hover: #725960;
  --premium-border: rgba(240, 219, 224, .27);
  --premium-border-strong: rgba(244, 205, 216, .54);
  --nav: #49353a;
  --nav-soft: #765c63;
  --panel: var(--premium-surface);
  --soft: rgba(101, 76, 82, .9);
  --admin-surface-inset: rgba(88, 66, 72, .95);
  --admin-surface-raised: rgba(102, 77, 83, .97);
  --admin-surface-hover: rgba(114, 89, 96, .98);
  --admin-surface-selected: rgba(104, 82, 91, .96);
  --admin-outline: rgba(240, 219, 224, .24);
  --admin-outline-strong: rgba(244, 205, 216, .54);
  --agency-surface-inset: #584248;
  --agency-surface-raised: #664d53;
  --agency-surface-hover: #725960;
}

:is(.premium-admin, .premium-agency, .premium-login)[data-theme-text="pearl"] {
  --premium-text: #fffaf0;
  --premium-muted: #eee2ce;
}

:is(.premium-admin, .premium-agency, .premium-login)[data-theme-text="mist"] {
  --premium-text: #e8f1f5;
  --premium-muted: #d1e0e7;
}

:is(.premium-admin, .premium-agency, .premium-login)[data-theme-text="warm"] {
  --premium-text: #f8eee6;
  --premium-muted: #ead6c7;
}

.premium-agency[data-theme-background] {
  --agency-copy: var(--premium-text);
  --agency-copy-muted: var(--premium-muted);
}

:is(.premium-admin, .premium-agency, .premium-login)[data-theme-backdrop="velvet"] {
  --premium-backdrop:
    linear-gradient(145deg, rgba(255, 255, 255, .035), transparent 34%),
    linear-gradient(315deg, rgba(59, 130, 246, .085), transparent 45%);
  --premium-pattern: linear-gradient(120deg, rgba(255, 255, 255, .025), transparent 42%, rgba(255, 255, 255, .018));
  --premium-pattern-size: auto;
}

:is(.premium-admin, .premium-agency, .premium-login)[data-theme-backdrop="grid"] {
  --premium-backdrop: linear-gradient(135deg, rgba(59, 130, 246, .075), transparent 48%);
  --premium-pattern:
    linear-gradient(rgba(170, 221, 235, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(170, 221, 235, .04) 1px, transparent 1px);
  --premium-pattern-size: 32px 32px;
}

:is(.premium-admin, .premium-agency, .premium-login)[data-theme-backdrop="solid"] {
  --premium-backdrop: linear-gradient(transparent, transparent);
  --premium-pattern: linear-gradient(transparent, transparent);
  --premium-pattern-size: auto;
}

.premium-admin::before,
.premium-agency::before,
.premium-login::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: var(--premium-pattern);
  background-size: var(--premium-pattern-size);
  mask-image: linear-gradient(to bottom, #000, transparent 78%);
}

.premium-admin .app-shell,
.premium-agency .topbar,
.premium-agency .layout,
.premium-login .login-shell { position: relative; z-index: 1; }

.premium-admin :is(button, input, select, textarea, [role="button"], [role="link"]):focus-visible,
.premium-agency :is(button, input, select, textarea, [role="button"], [role="link"]):focus-visible {
  outline: 2px solid var(--saas-primary-alt);
  outline-offset: 3px;
}

.premium-admin .tab > i,
.premium-agency .tab > i {
  transition-property: color, opacity, scale;
  transition-duration: 180ms;
  transition-timing-function: cubic-bezier(.2, 0, 0, 1);
}

.premium-admin .admin-hero,
.premium-agency .agency-hero { isolation: isolate; }

.premium-motion-aurora {
  position: absolute;
  top: -42%;
  right: -12%;
  z-index: 0;
  width: min(620px, 58vw);
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
  background:
    radial-gradient(circle at 42% 48%, rgba(96, 165, 250, .2), transparent 34%),
    radial-gradient(circle at 58% 52%, rgba(59, 130, 246, .18), transparent 62%);
  filter: blur(10px);
  opacity: .7;
  mix-blend-mode: screen;
  will-change: transform, opacity;
}

.premium-admin .admin-hero-copy,
.premium-admin .admin-hero-actions,
.premium-agency .agency-hero-content,
.premium-agency .agency-hero .mall-toolbar { z-index: 1; }

.premium-agency :is(.mall-card-cover img, .agency-feature-card img, .mall-product-image img) {
  transition-property: transform, filter;
  transition-duration: 420ms;
  transition-timing-function: cubic-bezier(.2, 0, 0, 1);
  will-change: transform;
}

.premium-agency :is(.mall-card, .agency-feature-card, .mall-product-card):hover :is(.mall-card-cover img, .agency-feature-card img, .mall-product-image img) {
  transform: scale(1.035);
  filter: saturate(1.06) contrast(1.02);
}

.premium-admin :is(.dashboard-block, .admin-hero-kpis .kpi),
.premium-agency :is(.agency-home-section, .agency-rail-card, .agency-feature-card) {
  transition-property: border-color, background-color, box-shadow, transform;
  transition-duration: 220ms;
  transition-timing-function: cubic-bezier(.2, 0, 0, 1);
}

.premium-admin .dashboard-block:hover,
.premium-agency :is(.agency-home-section, .agency-rail-card, .agency-feature-card):hover {
  border-color: rgba(79, 124, 255, .28);
  box-shadow: var(--saas-card-shadow);
}

.premium-admin button,
.premium-agency button {
  min-height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--saas-primary);
  color: var(--saas-text-primary);
  box-shadow: 0 8px 20px rgba(59, 130, 246, .25);
}

.premium-admin button:hover,
.premium-agency button:hover {
  background: var(--saas-primary-hover);
  color: var(--saas-text-primary);
  box-shadow: 0 10px 24px rgba(59, 130, 246, .3);
}

.premium-admin button.secondary,
.premium-agency button.secondary,
.premium-admin button.ghost,
.premium-agency button.ghost {
  border: 0;
  background: rgba(255, 255, 255, .05);
  color: var(--saas-text-secondary);
  box-shadow: none;
}

.premium-admin button.secondary:hover,
.premium-agency button.secondary:hover,
.premium-admin button.ghost:hover,
.premium-agency button.ghost:hover {
  background: rgba(255, 255, 255, .08);
  color: var(--saas-text-primary);
}

.premium-admin input,
.premium-admin select,
.premium-admin textarea,
.premium-agency input,
.premium-agency select,
.premium-agency textarea {
  min-height: 44px;
  border-color: transparent;
  border-radius: 12px;
  background-color: var(--saas-input);
  color: var(--premium-text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
}

.premium-admin input::placeholder,
.premium-admin textarea::placeholder,
.premium-agency input::placeholder,
.premium-agency textarea::placeholder {
  color: var(--saas-text-description);
  opacity: 1;
}

.premium-admin input:focus,
.premium-admin select:focus,
.premium-admin textarea:focus,
.premium-agency input:focus,
.premium-agency select:focus,
.premium-agency textarea:focus {
  outline: 0;
  border-color: transparent;
  box-shadow: 0 0 0 2px var(--saas-primary-alt);
}

.premium-admin label,
.premium-agency label { color: var(--saas-text-secondary); }

.premium-admin .panel,
.premium-agency .panel,
.premium-admin .dashboard-block,
.premium-admin .settings-section,
.premium-agency .mall-product-card,
.premium-agency .mall-order-side {
  border-color: var(--premium-border);
  background: var(--premium-surface);
  box-shadow: var(--premium-shadow);
}

.premium-admin .panel,
.premium-agency .panel { border-radius: var(--premium-radius); }

.premium-admin .panel-head,
.premium-agency .panel-head {
  border-bottom-color: rgba(123, 189, 231, .12);
}

.premium-admin h1,
.premium-admin h2,
.premium-admin h3,
.premium-agency h1,
.premium-agency h2,
.premium-agency h3 { color: var(--premium-text); font-weight: 700; }

.premium-admin .table-wrap,
.premium-agency .table-wrap {
  border-color: var(--premium-border);
  background: rgba(15, 39, 62, .78);
}

.premium-admin table,
.premium-agency table { color: #d8e8f5; }

.premium-admin th,
.premium-agency th {
  border-bottom-color: rgba(100, 183, 228, .2);
  background: #173e5d;
  color: #b7d1df;
}

.premium-admin td,
.premium-agency td { border-bottom-color: rgba(111, 175, 212, .11); }

.premium-admin tbody tr:hover td,
.premium-agency tbody tr:hover td,
.premium-admin .order-table tbody tr:hover td { background: rgba(57, 116, 147, .22); }

.premium-admin .empty,
.premium-agency .empty,
.premium-admin .notice,
.premium-agency .notice {
  border-color: rgba(112, 187, 228, .22);
  background: rgba(18, 46, 71, .78);
  color: var(--premium-muted);
}

/* Administrator portal */
.premium-admin .app-shell { grid-template-columns: 260px minmax(0, 1fr); }

.premium-admin .sidebar {
  z-index: 20;
  padding: 26px 16px;
  border-right: 1px solid var(--saas-border);
  background: var(--saas-sidebar);
  box-shadow: 12px 0 32px rgba(0, 0, 0, .12);
  overflow-y: auto;
  scrollbar-width: thin;
}

.premium-admin .brand {
  position: relative;
  padding: 4px 10px 30px;
  border-bottom-color: var(--saas-border);
}

.premium-admin .brand::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: -1px;
  left: 10px;
  height: 1px;
  background: linear-gradient(90deg, rgba(59, 130, 246, .55), transparent 72%);
}

.premium-admin .brand-logo {
  width: 42px;
  height: 42px;
  border: 1px solid var(--saas-border);
  border-radius: 12px;
  background: var(--saas-card-raised);
  box-shadow: var(--saas-card-shadow);
}

.premium-admin .brand strong { color: var(--saas-text-primary); font-size: 18px; font-weight: 700; }
.premium-admin .brand > span { color: var(--saas-text-description); font-weight: 400; }

.premium-admin .tabs { gap: 6px; margin-top: 15px; }

.premium-admin .tab {
  position: relative;
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  padding: 0 14px;
  color: var(--saas-text-description);
  font-weight: 500;
  box-shadow: none;
}

.premium-admin .tab:hover {
  background: rgba(59, 130, 246, .12);
  color: var(--saas-text-secondary);
}

.premium-admin .tab.active {
  background: linear-gradient(90deg, #3b82f6, #2563eb);
  color: #fff;
  box-shadow: inset 4px 0 0 #60a5fa, 0 8px 20px rgba(37, 99, 235, .2);
}

.premium-admin .tab.active::after { display: none; }

.premium-admin .layout { padding: 22px 26px 44px; }

.premium-admin .pagebar {
  min-height: 58px;
  margin-bottom: 16px;
  padding: 0 4px 14px;
  border-bottom: 1px solid rgba(77, 176, 228, .14);
}

.premium-admin .pagebar h1 { font-size: 23px; font-weight: 700; }
.premium-admin .pagebar p { color: var(--premium-muted); }

.premium-admin #dashboard {
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.premium-admin #dashboard > .panel-head { display: none; }

.premium-admin .admin-hero {
  position: relative;
  min-height: 310px;
  overflow: hidden;
  border: 1px solid var(--saas-border);
  border-radius: 16px;
  padding: clamp(28px, 4vw, 48px);
  background-image:
    linear-gradient(90deg, rgba(8, 25, 43, .84) 0%, rgba(13, 39, 62, .66) 42%, rgba(10, 29, 48, .22) 75%),
    linear-gradient(180deg, rgba(9, 28, 47, .08), rgba(7, 22, 38, .58)),
    url("./premium-thailand-hero.png");
  background-position: center;
  background-size: cover;
  box-shadow: var(--saas-card-shadow);
}

.premium-admin .admin-hero-copy { position: relative; z-index: 1; width: min(720px, 100%); }

.premium-admin .admin-hero-eyebrow,
.premium-agency .agency-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 0;
  border-radius: 999px;
  padding: 0 11px;
  background: rgba(59, 130, 246, .16);
  color: #93c5fd;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
}

.premium-admin .admin-hero h2 {
  margin: 16px 0 8px;
  font-size: clamp(30px, 3vw, 46px);
  line-height: 1.16;
  letter-spacing: -.02em;
}

.premium-admin .admin-hero p { margin: 0; color: var(--saas-text-secondary); font-size: 15px; font-weight: 400; }

.premium-admin .admin-hero-kpis {
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 10px;
  margin: 28px 0 0;
}

.premium-admin .admin-hero-kpis .kpi {
  border-color: rgba(101, 196, 235, .2);
  border-radius: 12px;
  padding: 14px 15px;
  background: rgba(22, 55, 82, .7);
  backdrop-filter: blur(12px);
}

.premium-admin .admin-hero-kpis .kpi span { color: #96b3c9; }
.premium-admin .admin-hero-kpis .kpi strong { color: #fff; font-size: 22px; font-variant-numeric: tabular-nums; }

.premium-admin .dashboard-grid {
  grid-template-columns: minmax(0, 1.25fr) minmax(330px, .75fr);
  gap: 16px;
  margin-top: 16px;
}

.premium-admin .dashboard-block { border-radius: 16px; padding: 20px; }
.premium-admin .dashboard-block h3 { color: #e9f6ff; }

.premium-admin .health-item {
  border-bottom-color: rgba(103, 175, 214, .12);
  padding: 10px 2px 12px;
}

.premium-admin .health-item strong { color: var(--premium-cyan); font-variant-numeric: tabular-nums; }

.premium-admin .quick-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.premium-admin .quick-actions button { min-height: 44px; height: auto; }
.premium-admin .quick-actions button:last-child { grid-column: 1 / -1; }

.premium-admin .kpi,
.premium-admin .ops-card,
.premium-admin .detail-item,
.premium-admin .price-layer,
.premium-admin .settings-hub-intro,
.premium-admin .employee-permission,
.premium-admin button.settings-entry {
  border-color: var(--premium-border);
  background: rgba(24, 56, 84, .8);
  color: var(--premium-text);
}

.premium-admin .kpi strong,
.premium-admin .ops-card strong,
.premium-admin .price-layer strong,
.premium-admin .settings-entry-title { color: var(--premium-text); }

.premium-admin .appearance-choice {
  background: var(--admin-surface-raised);
  color: var(--premium-text);
  box-shadow: 0 0 0 1px var(--premium-border), 0 8px 20px rgba(0, 6, 18, .1);
}

.premium-admin .appearance-choice:hover {
  background: var(--premium-surface-hover);
  box-shadow: 0 0 0 1px var(--premium-border-strong), 0 10px 24px rgba(0, 6, 18, .18);
}

.premium-admin .appearance-choice:has(input:checked) {
  background: var(--admin-surface-selected);
  box-shadow: 0 0 0 2px var(--premium-cyan), 0 10px 26px rgba(0, 10, 24, .22);
}

.premium-admin .appearance-choice-check {
  background: rgba(169, 189, 203, .16);
}

.premium-admin .appearance-choice:has(input:checked) .appearance-choice-check {
  background: var(--premium-cyan);
  color: #071a2f;
}

.premium-admin .appearance-preview-note {
  background: var(--admin-surface-inset);
  color: var(--premium-muted);
  box-shadow: inset 0 0 0 1px var(--premium-border);
}

.premium-admin .appearance-preview-note.success {
  background: rgba(27, 105, 78, .42);
  color: #c8f7df;
  box-shadow: inset 0 0 0 1px rgba(91, 222, 169, .42);
}

.premium-admin .appearance-preview-note.error {
  background: rgba(135, 47, 60, .42);
  color: #ffd6da;
  box-shadow: inset 0 0 0 1px rgba(255, 126, 139, .45);
}

/* Agency portal */
.premium-agency { --shell-max: none; --shell-gutter: 24px; }

.premium-agency .topbar {
  position: sticky;
  min-height: 72px;
  border-bottom: 1px solid rgba(72, 176, 229, .16);
  background: rgba(12, 36, 57, .96);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 36px rgba(0, 5, 16, .24);
}

.premium-agency .topbar-inner { min-height: 72px; }
.premium-agency .brand { font-size: 18px; color: #f1f8ff; }

.premium-agency .brand-logo {
  border: 1px solid rgba(241, 199, 120, .28);
  border-radius: 12px;
  background: rgba(33, 48, 63, .78);
}

.premium-agency .brand-copy { display: grid; gap: 2px; }
.premium-agency .brand-copy small { color: #718ca5; font-size: 11px; font-weight: 600; letter-spacing: .08em; }
.premium-agency .userbar { color: #90aac1; }
.premium-agency .userbar strong { color: var(--premium-gold); font-variant-numeric: tabular-nums; }

@media (min-width: 961px) {
  .premium-agency .agency-top-strip {
    position: fixed;
    top: 72px;
    bottom: 0;
    left: 0;
    z-index: 1030;
    width: 224px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    margin: 0;
    padding: 24px 14px;
    border: 0;
    border-right: 1px solid rgba(72, 176, 229, .15);
    background:
      radial-gradient(circle at 14% 12%, rgba(55, 157, 194, .13), transparent 15rem),
      linear-gradient(180deg, #102e47, #0c253b);
    box-shadow: 16px 0 40px rgba(3, 17, 29, .14);
  }

  .premium-agency .agency-top-strip .tabs {
    width: 100%;
    display: grid;
    gap: 8px;
    overflow: visible;
  }

  .premium-agency .agency-top-strip::before {
    content: "采购导航";
    padding: 0 10px;
    color: #65849e;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .16em;
  }

  .premium-agency .agency-top-strip .tab {
    width: 100%;
    justify-content: flex-start;
    border-color: transparent;
    background: transparent;
    color: #92aac0;
    text-align: left;
    box-shadow: none;
  }

  .premium-agency .agency-top-strip .tab:hover {
    border-color: rgba(79, 124, 255, .18);
    background: rgba(46, 96, 126, .4);
    color: #fff;
  }

  .premium-agency .agency-top-strip .tab.active {
    border-color: rgba(79, 124, 255, .35);
    background: linear-gradient(90deg, rgba(42, 166, 168, .68), rgba(31, 96, 132, .58));
    color: #fff;
    box-shadow: inset 4px 0 0 #60a5fa, 0 10px 26px rgba(37, 99, 235, .18);
  }

  .premium-agency .agency-announcement-ticker {
    margin-top: auto;
    border-color: rgba(241, 199, 120, .2);
    background: rgba(21, 38, 54, .72);
    color: #d6c093;
  }

  .premium-agency .layout {
    width: auto;
    margin: 20px 24px 48px 248px;
  }
}

.premium-agency .panel { padding: clamp(18px, 1.7vw, 28px); }

.premium-agency #mall {
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.premium-agency #mall > .panel-head { display: none; }

.premium-agency .agency-hero {
  position: relative;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border: 1px solid rgba(77, 199, 239, .23);
  border-radius: 18px;
  padding: clamp(28px, 4vw, 52px);
  background-image:
    linear-gradient(90deg, rgba(8, 25, 42, .83), rgba(14, 40, 61, .48) 52%, rgba(9, 28, 46, .12)),
    linear-gradient(180deg, rgba(11, 31, 49, .05), rgba(8, 26, 43, .56)),
    url("./premium-thailand-hero.png");
  background-position: center;
  background-size: cover;
  box-shadow: 0 26px 64px rgba(0, 6, 18, .34);
}

.premium-agency .agency-hero-content { width: min(680px, 100%); }

.premium-agency .agency-hero h2 {
  margin: 16px 0 7px;
  color: #fff3dd;
  font-family: "STSong", "SimSun", "Songti SC", serif;
  font-size: clamp(38px, 5vw, 68px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: .08em;
  text-shadow: 0 8px 26px rgba(0, 0, 0, .34);
}

.premium-agency .agency-hero-content > p {
  margin: 0;
  color: #c0d6e4;
  font-size: clamp(14px, 1.5vw, 18px);
  letter-spacing: .12em;
}

.premium-agency .agency-hero .mall-toolbar {
  margin: 26px 0 0;
  border-color: rgba(133, 207, 233, .2);
  border-radius: 14px;
  padding: 10px;
  background: rgba(18, 51, 75, .72);
  backdrop-filter: blur(14px);
}

.premium-agency .agency-hero .mall-search-form input {
  min-height: 48px;
  border-color: rgba(178, 213, 232, .25);
  border-radius: 10px;
  background-color: rgba(246, 251, 255, .95);
  color: #102033;
}

.premium-agency .agency-hero .mall-search-form button { min-height: 48px; }
.premium-agency .agency-hero .mall-location-filter { color: #b8cfdf; }
.premium-agency .agency-hero .mall-location-filter select { min-height: 48px; }

.premium-agency .mall-result-summary { margin: 16px 3px 12px; color: #7f9ab2; }
.premium-agency .mall-result-summary strong { color: var(--premium-cyan); }

.premium-agency .mall-grid {
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 16px;
}

.premium-agency .mall-card {
  grid-template-rows: 190px minmax(0, 1fr);
  border-color: var(--premium-border);
  border-radius: 15px;
  background: rgba(22, 54, 82, .94);
  box-shadow: 0 14px 35px rgba(3, 18, 31, .18);
}

.premium-agency .mall-card:hover,
.premium-agency .mall-card:focus-visible {
  border-color: rgba(51, 222, 231, .5);
  background: #1c4a6b;
  box-shadow: 0 0 0 1px rgba(79, 124, 255, .2), 0 22px 48px rgba(3, 20, 34, .26);
  transform: translateY(-4px);
}

.premium-agency .mall-card-cover { height: 190px; background: #153a57; }
.premium-agency .mall-card-cover::after { box-shadow: inset 0 -58px 62px rgba(0, 10, 25, .52), inset 0 0 0 1px rgba(98, 203, 239, .1); }
.premium-agency .mall-card-body { gap: 10px; padding: 17px 18px 18px; }
.premium-agency .mall-card-body h3 { color: #f2f8fc; font-size: 16px; line-height: 1.45; }
.premium-agency .mall-card-body p { color: #a9bfd0; font-size: 13px; line-height: 1.7; -webkit-line-clamp: 5; }
.premium-agency .mall-card-foot { border-top-color: rgba(114, 180, 218, .12); color: #738da5; }

.premium-agency .mall-content-tag,
.premium-agency .badge {
  border: 1px solid rgba(79, 124, 255, .18);
  background: rgba(59, 130, 246, .14);
  color: #93c5fd;
}

.premium-agency .mall-toolbar,
.premium-agency .filter-bar,
.premium-agency .status-guide,
.premium-agency .grid,
.premium-agency .metric,
.premium-agency .step,
.premium-agency .order-card,
.premium-agency .mall-content-item,
.premium-agency .mall-content-rich,
.premium-agency .mall-product-variant,
.premium-agency .ticket-spec-option,
.premium-agency .traveller-recognizer {
  border-color: var(--premium-border);
  background: rgba(20, 49, 76, .82);
  color: var(--premium-text);
}

.premium-agency .mall-detail-top,
.premium-agency .mall-content-section,
.premium-agency .mall-scenic-gallery { color: var(--premium-text); }

.premium-agency .mall-detail-cover,
.premium-agency .mall-detail-media-stage,
.premium-agency .mall-detail-media-frame,
.premium-agency .mall-scenic-carousel,
.premium-agency .mall-scenic-stage,
.premium-agency .mall-scenic-photo { background: #102c46; }

.premium-agency .mall-detail-copy p,
.premium-agency .mall-detail-intro,
.premium-agency .mall-content-rich,
.premium-agency .mall-product-intro,
.premium-agency .mall-product-detail-list div,
.premium-agency .mall-location-detail-list div { color: #9db3c6; }

.premium-agency .mall-product-title strong,
.premium-agency .mall-product-family-head h4,
.premium-agency .mall-position-product-main strong,
.premium-agency .mall-content-item strong,
.premium-agency .mall-location-detail-list b,
.premium-agency .mall-product-detail-list b { color: #eaf6ff; }

.premium-agency .mall-product-price,
.premium-agency .unit-price-amount { color: var(--premium-gold); }

.premium-agency .modal,
.premium-admin .modal {
  border: 1px solid rgba(84, 184, 231, .22);
  border-radius: 16px;
  background: #133551;
  color: var(--premium-text);
  box-shadow: 0 32px 90px rgba(0, 4, 14, .58);
}

.premium-agency .modal-head,
.premium-admin .modal-head,
.premium-agency .modal-actions,
.premium-admin .modal-actions,
.premium-agency #orderDetailModal .modal-head,
.premium-agency #orderDetailModal .modal-actions {
  border-color: rgba(103, 178, 218, .16);
  background: #19405e;
}

.premium-agency .modal p,
.premium-admin .modal p { color: #9eb5c8; }

/* Keep the agency order workflow legible inside the dark modal shell. */
.premium-agency #orderDetailModal .modal {
  border-radius: 18px;
  box-shadow: 0 34px 96px rgba(0, 4, 14, .64), inset 0 1px 0 rgba(255, 255, 255, .035);
}

.premium-agency #orderDetailModal #agencyOrderDetail {
  color: #dcebf5;
  scrollbar-color: #41647f #07182b;
}

.premium-agency #orderDetailModal .confirm-grid { gap: 12px; }

.premium-agency #orderDetailModal .confirm-item,
.premium-agency #orderDetailModal .booking-confirmation-agency-panel,
.premium-agency #orderDetailModal .booking-confirmation-item,
.premium-agency #orderDetailModal .email-record-detail-item,
.premium-agency #orderDetailModal .invoice-detail-card,
.premium-agency #orderDetailModal .product-traveller-group,
.premium-agency #orderDetailModal .verification-card,
.premium-agency #orderDetailModal .detail-refund-card,
.premium-agency #orderDetailModal .detail-refund-meta > div,
.premium-agency #orderDetailModal .detail-refund-component,
.premium-agency #orderDetailModal .detail-status-latest {
  border-color: rgba(96, 177, 219, .18);
  background: rgba(22, 57, 84, .9);
  color: #eaf6ff;
  box-shadow: 0 10px 26px rgba(0, 7, 20, .16), inset 0 1px 0 rgba(255, 255, 255, .025);
}

.premium-agency #orderDetailModal .confirm-item,
.premium-agency #orderDetailModal .booking-confirmation-item,
.premium-agency #orderDetailModal .email-record-detail-item,
.premium-agency #orderDetailModal .detail-refund-meta > div { border-radius: 10px; }

.premium-agency #orderDetailModal .confirm-item > span,
.premium-agency #orderDetailModal .booking-confirmation-item > span,
.premium-agency #orderDetailModal .email-record-detail-item > span,
.premium-agency #orderDetailModal .detail-refund-meta span,
.premium-agency #orderDetailModal .detail-refund-card-head span,
.premium-agency #orderDetailModal .detail-status-time,
.premium-agency #orderDetailModal .product-traveller-group-title span,
.premium-agency #orderDetailModal .product-traveller-group-count,
.premium-agency #orderDetailModal .invoice-detail-row span { color: #89a7bd; }

.premium-agency #orderDetailModal .confirm-item strong,
.premium-agency #orderDetailModal .booking-confirmation-item strong,
.premium-agency #orderDetailModal .email-record-detail-item strong,
.premium-agency #orderDetailModal .detail-refund-meta strong,
.premium-agency #orderDetailModal .detail-refund-component strong,
.premium-agency #orderDetailModal .detail-status-title,
.premium-agency #orderDetailModal .invoice-detail-row strong,
.premium-agency #orderDetailModal .remote-order-code { color: #eef8ff; }

.premium-agency #orderDetailModal .remote-order-line,
.premium-agency #orderDetailModal .product-traveller-group-head,
.premium-agency #orderDetailModal .product-position-summary,
.premium-agency #orderDetailModal .traveller-verification-toolbar,
.premium-agency #orderDetailModal .email-record-detail-body {
  border-color: rgba(96, 177, 219, .16);
  background: rgba(15, 42, 65, .94);
  color: #dcebf5;
}

.premium-agency #orderDetailModal .product-position-content,
.premium-agency #orderDetailModal .product-position-area,
.premium-agency #orderDetailModal .detail-status-line,
.premium-agency #orderDetailModal .detail-status-reason,
.premium-agency #orderDetailModal .traveller-verification-select-all { color: #dcebf5; }

.premium-agency #orderDetailModal .product-position-floor,
.premium-agency #orderDetailModal .product-position-chip {
  border-color: rgba(34, 197, 94, .36);
  background: rgba(22, 101, 52, .28);
  color: #86efac;
}

.premium-agency #orderDetailModal .verification-qr,
.premium-agency #orderDetailModal .traveller-verification-qr {
  border-color: rgba(255, 255, 255, .12);
  background: #fff;
  outline: 1px solid rgba(255, 255, 255, .1);
  outline-offset: -1px;
}

.premium-agency #orderDetailModal .verification-meta,
.premium-agency #orderDetailModal .traveller-verification-code { color: #9db4c6; }

.premium-agency #orderDetailModal .verification-save-link {
  border-color: rgba(79, 124, 255, .26);
  background: rgba(59, 130, 246, .12);
  color: #93c5fd;
}

.premium-agency #orderDetailModal .detail-history-details { border-top-color: rgba(105, 179, 218, .2); }

/* Product selection follows the same navy, teal and gold hierarchy as the reference. */
.premium-agency .mall-product-grid {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 14px;
}

.premium-agency .mall-product-card {
  border: 1px solid rgba(89, 177, 221, .18);
  background: rgba(22, 55, 83, .94);
  box-shadow: 0 14px 34px rgba(3, 18, 31, .17), inset 0 1px 0 rgba(255, 255, 255, .035);
}

.premium-agency .mall-product-card:hover {
  border-color: rgba(79, 124, 255, .36);
  background: rgba(29, 71, 102, .96);
  box-shadow: 0 18px 42px rgba(3, 18, 31, .22), inset 0 1px 0 rgba(255, 255, 255, .045);
}

.premium-agency .mall-product-card.selected {
  background: rgba(59, 130, 246, .14);
  box-shadow: 0 0 0 2px rgba(79, 124, 255, .68), 0 18px 42px rgba(0, 9, 24, .34);
}

.premium-agency .mall-product-family-toggle,
.premium-agency .mall-product-variant {
  border-color: rgba(91, 181, 224, .16);
  background: rgba(17, 45, 69, .84);
  color: #e9f5fc;
  box-shadow: inset 0 0 0 1px rgba(99, 189, 229, .1);
}

.premium-agency .mall-product-family-toggle:hover,
.premium-agency .mall-product-family-toggle[aria-expanded="true"],
.premium-agency .mall-product-variant.selected {
  background: rgba(29, 79, 108, .94);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(79, 124, 255, .42);
}

.premium-agency .mall-product-family-toggle[aria-expanded="true"] .mall-product-family-head p,
.premium-agency .mall-product-family-chevron { color: #60a5fa; }

.premium-agency .mall-product-family-count,
.premium-agency .mall-product-spec,
.premium-agency .mall-product-offset,
.premium-agency .mall-product-position-badge {
  border: 1px solid rgba(79, 124, 255, .24);
  background: rgba(59, 130, 246, .14);
  color: #93c5fd;
}

.premium-agency .mall-product-image {
  border-color: rgba(255, 255, 255, .1);
  background: #102d47;
}

.premium-agency .mall-product-image-main {
  outline-color: rgba(255, 255, 255, .1);
}

.premium-agency .quantity-stepper {
  border-color: rgba(101, 181, 222, .22);
  background: #12324d;
}

.premium-agency .quantity-stepper button {
  background: rgba(28, 70, 100, .9);
  color: #dff5ff;
}

.premium-agency .quantity-stepper input {
  border-color: rgba(101, 181, 222, .2);
  background: #12324d;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.premium-agency #batch.batch-as-mall-order .order-actions {
  background: #133551;
  box-shadow: 0 -14px 30px rgba(0, 7, 18, .24);
}

.premium-agency button {
  transition-property: transform, background-color, border-color, color, box-shadow;
  transition-duration: 160ms;
  transition-timing-function: cubic-bezier(.2, 0, 0, 1);
}

.premium-agency button:active:not(:disabled) { transform: scale(.96); }

@media (max-width: 1200px) {
  .premium-admin .admin-hero-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .premium-admin .dashboard-grid { grid-template-columns: 1fr; }
  .premium-agency .userbar button { padding: 0 10px; }
}

@media (max-width: 960px) {
  .premium-admin .app-shell { display: block; }
  .premium-admin .sidebar { position: static; height: auto; overflow: visible; }
  .premium-admin .tabs { display: flex; }
  .premium-admin .layout { padding: 18px 14px 32px; }
  .premium-agency .agency-top-strip {
    border-bottom-color: rgba(81, 182, 230, .16);
    background: rgba(12, 36, 57, .96);
  }
  .premium-agency .layout { width: calc(100% - 24px); margin: 16px auto 30px; }
  .premium-agency .agency-hero { min-height: 410px; }
}

@media (max-width: 680px) {
  .premium-admin .admin-hero,
  .premium-agency .agency-hero { padding: 24px 18px; }
  .premium-admin .admin-hero-kpis { grid-template-columns: 1fr 1fr; }
  .premium-admin .quick-actions { grid-template-columns: 1fr; }
  .premium-admin .quick-actions button:last-child { grid-column: auto; }
  .premium-agency .agency-hero h2 { font-size: 40px; }
  .premium-agency .agency-hero .mall-toolbar { align-items: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  .premium-admin *,
  .premium-agency * { scroll-behavior: auto !important; }
  .premium-admin .panel.active,
  .premium-agency .panel.active { animation: none; }
  .premium-agency .mall-card,
  .premium-admin .tab,
  .premium-agency .tab { transition: none; }
  .premium-motion-aurora { display: none; }
  .premium-agency :is(.mall-card-cover img, .agency-feature-card img, .mall-product-image img) {
    transition: none;
    transform: none !important;
    filter: none !important;
  }
}

@media (max-width: 960px) {
  .premium-motion-aurora { opacity: .42; filter: blur(16px); }
}

/* V2 fidelity pass: denser dashboard composition and agency commerce rail. */
.premium-brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(77, 210, 249, .28);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(22, 155, 223, .92), rgba(47, 91, 223, .88));
  color: #eaf9ff;
  font-size: 20px;
  box-shadow: 0 10px 26px rgba(0, 119, 201, .28), inset 0 1px 0 rgba(255, 255, 255, .3);
}

.brand-main:has(.brand-logo:not([hidden])) .premium-brand-mark,
.premium-agency .brand:has(.brand-logo:not([hidden])) .premium-brand-mark { display: none; }

.premium-admin .tab {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 6px;
  align-items: center;
  gap: 9px;
  background-image: none;
}

.premium-admin .tab > i { color: #6f91ad; font-size: 14px; text-align: center; }
.premium-admin .tab:hover > i,
.premium-admin .tab.active > i { color: #dbeafe; }

.premium-admin .layout { padding: 3px 8px 34px 12px; }

.premium-admin .pagebar {
  min-height: 58px;
  margin-bottom: 10px;
  padding: 0 4px 10px;
}

.premium-admin .pagebar h1 { font-size: 21px; }
.premium-admin .pagebar p { margin-top: 3px; font-size: 12px; }
.premium-admin .pagebar .actions button { height: 38px; font-size: 12px; }

.premium-admin .admin-hero {
  min-height: 252px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  align-items: stretch;
  gap: 18px;
  padding: 16px 20px;
  background-position: 58% 53%;
}

.premium-admin .admin-hero-copy {
  width: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.premium-admin .admin-hero-eyebrow,
.premium-agency .agency-hero-eyebrow {
  width: fit-content;
  min-height: 24px;
  font-size: 10px;
}

.premium-admin .admin-hero h2 {
  margin: 9px 0 4px;
  font-size: clamp(28px, 2.15vw, 34px);
}

.premium-admin .admin-hero p { font-size: 13px; }

.premium-admin .admin-hero-kpis {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.premium-admin .admin-hero-kpis .kpi {
  position: relative;
  min-height: 66px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-content: center;
  column-gap: 8px;
  padding: 10px 11px;
}

.premium-admin .admin-hero-kpis .kpi > i {
  grid-row: 1 / 3;
  align-self: center;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(59, 130, 246, .14);
  color: #60a5fa;
  font-size: 12px;
}

.premium-admin .admin-hero-kpis .kpi span { margin: 0; font-size: 10px; }
.premium-admin .admin-hero-kpis .kpi strong { font-size: 17px; line-height: 1.2; }

.premium-admin .admin-hero-actions {
  position: relative;
  z-index: 1;
  min-width: 0;
  border: 1px solid rgba(99, 194, 235, .18);
  border-radius: 14px;
  padding: 12px;
  background: rgba(18, 48, 73, .78);
  backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035);
}

.premium-admin .dashboard-section-head,
.premium-agency .agency-section-head,
.premium-agency .agency-rail-head {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.premium-admin .dashboard-section-head > div,
.premium-agency .agency-section-head > div,
.premium-agency .agency-rail-head > div { min-width: 0; }

.premium-admin .dashboard-section-head span,
.premium-agency .agency-section-head span,
.premium-agency .agency-rail-head span {
  display: block;
  margin-bottom: 3px;
  color: #60a5fa;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .16em;
}
.premium-agency .agency-section-head span,
.premium-agency .agency-rail-head span { font-size: 11px; line-height: 1.35; overflow-wrap: anywhere; }

.premium-admin .dashboard-section-head h3,
.premium-agency .agency-section-head h3,
.premium-agency .agency-rail-head h3 { margin: 0; font-size: 16px; }

.premium-admin .dashboard-section-head > small,
.premium-agency .agency-section-head > small { color: #7690a7; font-size: 10px; }

.premium-agency .agency-section-head > small {
  max-width: 55%;
  color: #8da8bb;
  font-size: 12px;
  line-height: 1.45;
  text-align: right;
  text-wrap: pretty;
  overflow-wrap: anywhere;
}

.premium-admin .admin-quick-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-top: 8px;
}

.premium-admin .admin-quick-grid button,
.premium-admin .admin-quick-grid button:last-child {
  grid-column: auto;
  min-width: 0;
  min-height: 66px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-color: rgba(101, 200, 239, .16);
  padding: 8px 4px;
  color: #cfe3f2;
  text-align: center;
  font-size: 9px;
}

.premium-admin .admin-quick-grid button i {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(59, 130, 246, .42), rgba(79, 124, 255, .18));
  color: #93c5fd;
  font-size: 14px;
  box-shadow: inset 0 0 0 1px rgba(96, 165, 250, .16), 0 8px 18px rgba(0, 8, 22, .22);
}

.premium-admin .dashboard-command-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(260px, .7fr) minmax(320px, .95fr);
  gap: 12px;
  margin-top: 12px;
}

.premium-admin .dashboard-command-grid .dashboard-block {
  min-width: 0;
  min-height: 256px;
  padding: 16px;
}

.premium-admin .dashboard-more,
.premium-agency .agency-rail-head button {
  width: auto;
  height: auto;
  min-height: 26px;
  border: 0;
  padding: 0 4px;
  background: transparent;
  color: #60a5fa;
  box-shadow: none;
  font-size: 10px;
}

.premium-admin .agency-balance-list { max-height: 190px; gap: 0; margin-top: 10px; }

.premium-admin .agency-balance-row {
  min-height: 42px;
  border-bottom-color: rgba(96, 170, 209, .12);
  padding: 6px 2px;
}

.premium-admin .agency-balance-row strong { font-size: 12px; }
.premium-admin .agency-balance-row span { margin-top: 2px; font-size: 9px; }
.premium-admin .agency-balance-row > div:last-child { color: var(--premium-gold); font-size: 13px; font-weight: 900; }

.premium-admin .dashboard-health-panel .health-list { gap: 0; margin-top: 8px; }

.premium-admin .dashboard-health-panel .health-item {
  min-height: 34px;
  padding: 7px 0;
}

.premium-admin .dashboard-health-panel .health-item span { color: #96aec1; font-size: 11px; }
.premium-admin .dashboard-health-panel .health-item span i { width: 18px; color: #60a5fa; text-align: center; }
.premium-admin .dashboard-health-panel .health-item strong { font-size: 13px; }

.premium-admin .dashboard-api-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 3px 10px;
  margin-top: 10px;
  border: 1px solid rgba(85, 190, 232, .16);
  border-radius: 10px;
  padding: 10px 11px;
  background: rgba(25, 62, 91, .74);
}

.premium-admin .dashboard-api-summary span { color: #8ba5ba; font-size: 10px; }
.premium-admin .dashboard-api-summary strong { grid-row: 1 / 3; grid-column: 2; color: #60a5fa; font-size: 16px; font-variant-numeric: tabular-nums; }
.premium-admin .dashboard-api-summary small { color: #607b92; font-size: 9px; }

.premium-admin .dashboard-order-list { display: grid; gap: 1px; margin-top: 9px; }

.premium-admin .dashboard-order-item {
  width: 100%;
  min-height: 39px;
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border: 0;
  border-bottom: 1px solid rgba(88, 164, 204, .1);
  border-radius: 0;
  padding: 5px 1px;
  background: transparent;
  color: inherit;
  box-shadow: none;
  text-align: left;
}

.premium-admin .dashboard-order-item:hover { background: rgba(27, 91, 128, .18); }
.premium-admin .dashboard-order-dot { width: 6px; height: 6px; border-radius: 50%; background: #3b82f6; box-shadow: 0 0 9px rgba(59, 130, 246, .45); }
.premium-admin .dashboard-order-copy,
.premium-admin .dashboard-order-side { min-width: 0; display: grid; gap: 2px; }
.premium-admin .dashboard-order-copy strong { overflow: hidden; color: #dcebf5; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.premium-admin .dashboard-order-copy small { overflow: hidden; color: #68849a; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.premium-admin .dashboard-order-side { justify-items: end; }
.premium-admin .dashboard-order-side strong { color: var(--premium-gold); font-size: 10px; }
.premium-admin .dashboard-order-side small { color: #50dca5; font-size: 8px; }
.dashboard-empty-compact { min-height: 86px; display: grid; place-items: center; color: #6f8a9f; font-size: 11px; }

/* Agency home mirrors the reference's main-commerce + account-rail composition. */
.premium-agency .premium-brand-mark {
  border-color: rgba(242, 199, 120, .3);
  background: linear-gradient(145deg, #d3a457, #8b6a35);
  color: #fff2d4;
  box-shadow: 0 10px 25px rgba(90, 56, 14, .28), inset 0 1px 0 rgba(255, 255, 255, .3);
}

@media (min-width: 961px) {
  .premium-agency .topbar,
  .premium-agency .topbar-inner { min-height: 64px; }

  .premium-agency .agency-top-strip {
    top: 64px;
    width: 216px;
  }

  .premium-agency .layout {
    margin: 14px 18px 48px 229px;
  }

  .premium-agency .agency-top-strip .tab {
    grid-template-columns: 22px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
  }
  .premium-agency .agency-top-strip .tab i { color: #6f90aa; text-align: center; }
  .premium-agency .agency-top-strip .tab:hover i,
  .premium-agency .agency-top-strip .tab.active i { color: #dbeafe; }
}

.premium-agency .agency-home-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  align-items: start;
  gap: 14px;
}

.premium-agency .agency-home-main,
.premium-agency .agency-home-rail { min-width: 0; display: grid; gap: 12px; }

.premium-agency .agency-hero {
  min-height: 356px;
  padding: 28px 30px 24px;
  background-position: 58% 52%;
}

.premium-agency .agency-hero-content { width: min(560px, 100%); }

.premium-agency .agency-hero h2 {
  margin: 12px 0 5px;
  font-size: clamp(40px, 4vw, 58px);
  letter-spacing: .06em;
}

.premium-agency .agency-hero-content > p { font-size: 14px; }

.premium-agency .agency-hero .mall-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(250px, .72fr) auto;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 8px;
}

.premium-agency .agency-hero .mall-search-form { min-width: 0; }
.premium-agency .agency-hero .mall-search-form input,
.premium-agency .agency-hero .mall-search-form button,
.premium-agency .agency-hero .mall-location-filter select { min-height: 44px; height: 44px; }
.premium-agency .agency-hero .mall-toolbar > span { color: #c2d5e2; font-size: 13px; line-height: 1.5; white-space: normal; }

.premium-agency .agency-featured-section,
.premium-agency .agency-mall-directory,
.premium-agency .agency-rail-card {
  border: 1px solid var(--premium-border);
  border-radius: 15px;
  background: rgba(21, 52, 79, .92);
  box-shadow: 0 18px 42px rgba(3, 18, 31, .17), inset 0 1px 0 rgba(255, 255, 255, .035);
}

.premium-agency .agency-featured-section { padding: 14px; }

.premium-agency .agency-featured-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 11px;
}

.premium-agency .agency-feature-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(105, 181, 221, .15);
  border-radius: 11px;
  background: #193f5d;
  color: inherit;
  text-decoration: none;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.premium-agency .agency-feature-card:hover,
.premium-agency .agency-feature-card:focus-visible {
  border-color: rgba(79, 124, 255, .5);
  box-shadow: 0 14px 28px rgba(0, 7, 18, .3);
  transform: translateY(-3px);
}

.premium-agency .agency-feature-image { position: relative; isolation: isolate; height: 118px; overflow: hidden; background: #193e5b; }
.premium-agency .agency-feature-image img { display: block; }
.premium-agency .agency-feature-image-backdrop { position: absolute; inset: -12px; z-index: 0; width: calc(100% + 24px); height: calc(100% + 24px); object-fit: cover; opacity: .42; filter: blur(12px) saturate(.9); transform: scale(1.04); }
.premium-agency .agency-feature-image-main { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; object-position: center; outline: 1px solid rgba(255, 255, 255, .1); outline-offset: -1px; }
.premium-agency .agency-feature-image::after { content: ""; position: absolute; inset: 45% 0 0; z-index: 2; background: linear-gradient(180deg, transparent, rgba(2, 11, 22, .55)); pointer-events: none; }
.premium-agency .agency-feature-image > span { position: absolute; top: 7px; left: 7px; z-index: 3; border-radius: 5px; padding: 4px 8px; background: #ef6f43; color: #fff; font-size: 10px; font-weight: 900; }
.premium-agency .agency-feature-copy { min-width: 0; display: grid; gap: 6px; padding: 11px; }
.premium-agency .agency-feature-copy h4 { min-height: 39px; display: -webkit-box; margin: 0; overflow: hidden; color: #e9f5fc; font-size: 14px; line-height: 1.4; text-wrap: balance; overflow-wrap: anywhere; word-break: break-word; text-overflow: ellipsis; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.premium-agency .agency-feature-copy > small { display: -webkit-box; overflow: hidden; color: #8ca6ba; font-size: 11px; line-height: 1.4; text-wrap: pretty; overflow-wrap: anywhere; word-break: break-word; text-overflow: ellipsis; white-space: normal; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.premium-agency .agency-feature-copy > div { min-width: 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.premium-agency .agency-feature-copy > div strong { min-width: 0; color: var(--premium-gold); font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.premium-agency .agency-feature-copy > div span { flex: 0 0 auto; border: 1px solid rgba(242, 199, 120, .25); border-radius: 6px; padding: 5px 7px; color: #e9d3a5; font-size: 11px; line-height: 1.2; }

.premium-agency .agency-benefit-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid var(--premium-border);
  border-radius: 14px;
  min-height: 74px;
  padding: 10px 12px;
  background: rgba(21, 52, 79, .92);
  box-shadow: 0 14px 34px rgba(3, 18, 31, .14);
}

.premium-agency .agency-benefit-strip > div {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  border-right: 1px solid rgba(109, 177, 214, .11);
  padding: 5px 10px;
}
.premium-agency .agency-benefit-strip > div:last-child { border-right: 0; }
.premium-agency .agency-benefit-strip i { width: 29px; height: 29px; flex: 0 0 29px; display: grid; place-items: center; border-radius: 50%; background: rgba(191, 143, 65, .16); color: var(--premium-gold); font-size: 12px; }
.premium-agency .agency-benefit-strip span { min-width: 0; display: grid; gap: 2px; }
.premium-agency .agency-benefit-strip strong { color: #dae9f3; font-size: 12px; line-height: 1.35; overflow-wrap: anywhere; }
.premium-agency .agency-benefit-strip small { display: -webkit-box; overflow: hidden; color: #829caf; font-size: 10px; line-height: 1.4; text-wrap: pretty; overflow-wrap: anywhere; text-overflow: ellipsis; white-space: normal; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

.premium-agency .agency-mall-directory { padding: 14px; }
.premium-agency .agency-mall-directory .mall-result-summary { margin-top: -18px; }
.premium-agency .agency-mall-directory .mall-grid { margin-top: 13px; }

.premium-agency .agency-rail-card { padding: 15px; }
.premium-agency .agency-rail-head > i { color: var(--premium-gold); font-size: 17px; }

.premium-agency .agency-account-balance {
  display: grid;
  gap: 5px;
  margin-top: 13px;
  border: 1px solid rgba(118, 187, 224, .16);
  border-radius: 11px;
  padding: 13px;
  background: rgba(30, 69, 97, .78);
}

.premium-agency .agency-account-balance span { color: #9bb4c6; font-size: 12px; line-height: 1.4; }
.premium-agency .agency-account-balance strong { color: #f0f7fb; font-size: 18px; line-height: 1.25; overflow-wrap: anywhere; }
.premium-agency .agency-account-balance small { color: #819bae; font-size: 10px; line-height: 1.4; overflow-wrap: anywhere; }

.premium-agency .agency-account-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 12px;
  background: rgba(98, 170, 209, .11);
}
.premium-agency .agency-account-metrics > div { min-width: 0; display: grid; gap: 4px; padding: 10px 8px; background: #173a57; }
.premium-agency .agency-account-metrics span { color: #91aabc; font-size: 10px; line-height: 1.35; overflow-wrap: anywhere; }
.premium-agency .agency-account-metrics strong { display: -webkit-box; overflow: hidden; color: #dcecf6; font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; text-overflow: ellipsis; white-space: normal; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

.premium-agency .agency-rail-action {
  width: 100%;
  min-height: 44px;
  margin-top: 12px;
  border-color: rgba(242, 199, 120, .28);
  background: rgba(111, 79, 31, .32);
  color: #f1d59e;
  box-shadow: none;
  font-size: 12px;
}

.premium-agency .agency-promo-card {
  position: relative;
  min-height: 158px;
  overflow: hidden;
  border: 1px solid rgba(90, 197, 233, .2);
  border-radius: 15px;
  padding: 20px;
  background-image: linear-gradient(90deg, rgba(10, 30, 48, .82), rgba(15, 43, 64, .18)), url("./premium-thailand-hero.png");
  background-position: 72% 62%;
  background-size: cover;
  box-shadow: 0 16px 36px rgba(0, 6, 18, .24);
}
.premium-agency .agency-promo-card > span { color: var(--premium-gold); font-size: 10px; font-weight: 900; line-height: 1.4; letter-spacing: .16em; }
.premium-agency .agency-promo-card h3 { margin: 8px 0 3px; color: #fff0d2; font-family: "STSong", "SimSun", serif; font-size: 24px; }
.premium-agency .agency-promo-card p { width: min(210px, 75%); margin: 0; color: #b8ccda; font-size: 12px; line-height: 1.5; text-wrap: pretty; overflow-wrap: anywhere; }
.premium-agency .agency-promo-card button { width: auto; min-height: 40px; margin-top: 15px; border-color: rgba(242, 199, 120, .3); padding: 0 14px; background: rgba(193, 142, 62, .9); color: #17120c; box-shadow: none; font-size: 12px; }

.premium-agency .agency-home-order-list { display: grid; gap: 1px; margin-top: 10px; }
.premium-agency .agency-home-order {
  width: 100%;
  min-height: 64px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border: 0;
  border-bottom: 1px solid rgba(99, 170, 209, .1);
  border-radius: 0;
  padding: 7px 0;
  background: transparent;
  color: inherit;
  box-shadow: none;
  text-align: left;
}
.premium-agency .agency-home-order:hover { background: rgba(25, 86, 121, .16); }
.premium-agency .agency-home-order-thumb { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: rgba(59, 130, 246, .14); color: #60a5fa; }
.premium-agency .agency-home-order-copy,
.premium-agency .agency-home-order-state { min-width: 0; display: grid; gap: 3px; }
.premium-agency .agency-home-order-copy strong { display: -webkit-box; overflow: hidden; color: #d9e9f4; font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; text-overflow: ellipsis; white-space: normal; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.premium-agency .agency-home-order-copy small { overflow: hidden; color: #819bad; font-size: 10px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.premium-agency .agency-home-order-state { justify-items: end; }
.premium-agency .agency-home-order-state strong { color: var(--premium-gold); font-size: 11px; line-height: 1.35; }
.premium-agency .agency-home-order-state small { color: #66e0ad; font-size: 10px; line-height: 1.35; }

/* Quick order follows the same softened scenic-mall system. */
.premium-agency { color-scheme: dark; }

.premium-agency #quickOrder {
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.premium-agency .quick-order-card {
  gap: 20px;
  margin: 0;
  border: 1px solid var(--premium-border);
  border-radius: 16px;
  padding: clamp(22px, 2.5vw, 34px);
  background:
    radial-gradient(circle at 92% 4%, rgba(59, 130, 246, .1), transparent 24rem),
    linear-gradient(145deg, var(--premium-surface-strong), var(--premium-surface));
  box-shadow: var(--premium-shadow);
}

.premium-agency .quick-order-title { align-items: center; gap: 14px; }
.premium-agency .quick-order-icon {
  flex-basis: 52px;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 15px;
  background: linear-gradient(145deg, #3b82f6, #2563eb);
  color: #fff;
  box-shadow: 0 8px 20px rgba(59, 130, 246, .25);
}
.premium-agency .quick-order-title h2 { color: #f3fbff; font-size: clamp(22px, 2vw, 28px); letter-spacing: .01em; }
.premium-agency .quick-order-title p { max-width: 820px; margin-top: 7px; color: #96b2c7; font-size: 14px; }
.premium-agency .quick-order-step {
  min-height: 32px;
  border: 1px solid rgba(79, 124, 255, .2);
  padding: 0 12px;
  background: rgba(59, 130, 246, .12);
  color: #93c5fd;
  box-shadow: none;
  letter-spacing: .03em;
}

.premium-agency .quick-order-compose {
  grid-template-columns: minmax(0, 1fr) minmax(190px, 224px);
  gap: 14px;
  align-items: stretch;
}
.premium-agency #quickOrderText {
  min-height: 164px;
  border-color: rgba(91, 196, 255, .22);
  border-radius: 12px;
  padding: 14px 16px;
  background: rgba(13, 39, 61, .84);
  color: #e9f7ff;
  resize: vertical;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
}
.premium-agency #quickOrderText:focus { border-color: transparent; box-shadow: 0 0 0 2px var(--saas-primary-alt), 0 12px 28px rgba(0, 0, 0, .18); }
.premium-agency .quick-order-actions { display: grid; grid-template-rows: 1fr auto auto; }
.premium-agency .quick-order-actions button { width: 100%; min-height: 48px; }
.premium-agency #quickOrderRecognize { font-size: 15px; }

.premium-agency .quick-order-status {
  min-height: 38px;
  display: flex;
  align-items: center;
  border-radius: 10px;
  padding: 8px 12px;
  background: rgba(24, 56, 83, .78);
  color: #9eb7ca;
  box-shadow: inset 0 0 0 1px rgba(100, 181, 221, .12);
}
.premium-agency .quick-order-status.success { background: rgba(8, 69, 64, .36); color: #75e7bc; box-shadow: inset 0 0 0 1px rgba(77, 225, 168, .2); }
.premium-agency .quick-order-status.error { background: rgba(93, 25, 39, .34); color: #ff9da4; box-shadow: inset 0 0 0 1px rgba(255, 112, 121, .22); }

.premium-agency .quick-order-result {
  gap: 18px;
  border: 1px solid rgba(95, 187, 230, .16);
  border-radius: 16px;
  padding: clamp(16px, 2vw, 22px);
  background: rgba(17, 45, 69, .82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
}
.premium-agency .quick-order-result-head { padding-bottom: 12px; border-bottom: 1px solid rgba(100, 183, 228, .13); }
.premium-agency .quick-order-result-head h3,
.premium-agency .quick-order-products-title strong { color: #eaf8ff; }
.premium-agency .quick-order-result-head span,
.premium-agency .quick-order-products-title span,
.premium-agency .quick-order-product-source { color: #819fb5; }
.premium-agency .quick-order-product-row {
  border-radius: 12px;
  padding: 12px;
  background: rgba(24, 56, 83, .76);
  box-shadow: inset 0 0 0 1px rgba(99, 179, 219, .13);
}
.premium-agency .quick-order-fields input,
.premium-agency .quick-order-fields select,
.premium-agency .quick-order-product-row input,
.premium-agency .quick-order-product-row select { background: rgba(13, 39, 61, .88); }
.premium-agency .quick-order-check { background: rgba(22, 101, 77, .34); color: #78e5b2; }
.premium-agency .quick-order-check.missing { background: rgba(120, 77, 19, .38); color: #f4cc7a; }
.premium-agency #quickOrderApply { min-height: 48px; }

.premium-agency .stable-date-input { border-radius: 10px 0 0 10px; }
.premium-agency .stable-date-trigger {
  border-color: rgba(122, 182, 222, .26);
  border-left: 0;
  border-radius: 0 10px 10px 0;
  background: rgba(13, 38, 61, .88);
  color: #8ab0c8;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
}
.premium-agency .stable-date-trigger:hover { border-color: var(--premium-border-strong); background: var(--premium-surface-hover); color: #93c5fd; box-shadow: none; }
.premium-agency .stable-date-popover {
  border: 1px solid rgba(87, 205, 240, .25);
  background: #143550;
  box-shadow: 0 26px 78px rgba(3, 16, 29, .42), inset 0 1px 0 rgba(255, 255, 255, .045);
}
.premium-agency .stable-date-head strong { color: #eefaff; font-variant-numeric: tabular-nums; }
.premium-agency .stable-date-nav,
.premium-agency .stable-date-today {
  border-color: transparent;
  background: #235575;
  color: #93c5fd;
  box-shadow: none;
}
.premium-agency .stable-date-nav:hover,
.premium-agency .stable-date-today:hover { background: #2c6788; color: #fff; box-shadow: none; }
.premium-agency .stable-date-weekdays { color: #7798b0; }
.premium-agency .stable-date-day { border-color: transparent; background: transparent; color: #d9eaf4; box-shadow: none; }
.premium-agency .stable-date-day:hover:not(:disabled) { background: #285d7c; color: #fff; box-shadow: none; }
.premium-agency .stable-date-day.outside { color: #58758b; }
.premium-agency .stable-date-day.today { box-shadow: inset 0 0 0 1px rgba(79, 124, 255, .42); }
.premium-agency .stable-date-day.selected { background: linear-gradient(90deg, #3b82f6, #2563eb); color: #fff; box-shadow: 0 8px 18px rgba(59, 130, 246, .25); }
.premium-agency .stable-date-day:disabled { background: transparent; color: #385269; }
.premium-agency .stable-date-nav:active,
.premium-agency .stable-date-day:active,
.premium-agency .stable-date-today:active,
.premium-agency .stable-date-trigger:active { transform: none; }
.premium-agency .stable-date-foot { border-top-color: rgba(100, 183, 228, .15); color: #7e9db4; }
.premium-agency .quick-order-handoff { background: rgba(59, 130, 246, .12); color: #93c5fd; box-shadow: inset 0 0 0 1px rgba(79, 124, 255, .2); }

@media (max-width: 1420px) {
  .premium-admin .admin-hero { grid-template-columns: minmax(0, 1fr) 340px; }
  .premium-admin .dashboard-command-grid { grid-template-columns: minmax(0, 1fr) minmax(250px, .72fr); }
  .premium-admin .dashboard-orders-panel { grid-column: 1 / -1; }
  .premium-agency .agency-home-shell { grid-template-columns: minmax(0, 1fr) 300px; }
  .premium-agency .agency-featured-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .premium-agency .agency-feature-card:nth-child(5) { display: none; }
}

@media (max-width: 1100px) {
  .premium-admin .admin-hero { grid-template-columns: 1fr; }
  .premium-admin .admin-hero-actions { display: none; }
  .premium-agency .agency-home-shell { grid-template-columns: 1fr; }
  .premium-agency .agency-home-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .premium-agency .agency-recent-card { grid-column: 1 / -1; }
  .premium-agency .agency-featured-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .premium-admin .admin-hero { min-height: 0; }
  .premium-admin .admin-hero-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .premium-admin .dashboard-command-grid { grid-template-columns: 1fr; }
  .premium-admin .dashboard-orders-panel { grid-column: auto; }
  .premium-agency .agency-hero .mall-toolbar { grid-template-columns: 1fr; }
  .premium-agency .mall-grid { grid-template-columns: 1fr; }
  .premium-agency .agency-section-head { align-items: flex-start; flex-direction: column; }
  .premium-agency .agency-section-head > small { max-width: none; text-align: left; }
  .premium-agency .agency-featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .premium-agency .agency-feature-card:nth-child(5) { display: block; }
  .premium-agency .agency-benefit-strip { grid-template-columns: 1fr 1fr; }
  .premium-agency .agency-benefit-strip > div { border-right: 0; }
  .premium-agency .agency-home-rail { grid-template-columns: 1fr; }
  .premium-agency .agency-recent-card { grid-column: auto; }
  .premium-agency .quick-order-compose { grid-template-columns: 1fr; }
  .premium-agency .quick-order-actions { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
}

@media (max-width: 520px) {
  .premium-agency .agency-featured-grid,
  .premium-agency .agency-benefit-strip { grid-template-columns: 1fr; }
  .premium-agency .agency-benefit-strip > div { min-height: 56px; }
}

/* Administrator portal: complete the softened surface system for legacy modules. */
.premium-admin {
  --admin-surface-inset: var(--saas-card);
  --admin-surface-raised: var(--saas-card-raised);
  --admin-surface-hover: var(--saas-card-hover);
  --admin-surface-selected: rgba(59, 130, 246, .16);
  --admin-outline: var(--saas-border);
  --admin-outline-strong: rgba(79, 124, 255, .55);
  color-scheme: dark;
}

.premium-admin button:not(:disabled):active { transform: scale(.96); }
.premium-admin select option { background: #12324d; color: var(--premium-text); }
.premium-admin input[type="checkbox"],
.premium-admin input[type="radio"] { accent-color: var(--premium-cyan); }

/* Inset sections sit inside the main panel and replace the old pale page blocks. */
.premium-admin .settings-hub-intro,
.premium-admin .smtp-settings-status,
.premium-admin .platform-logo-panel,
.premium-admin .employee-empty,
.premium-admin .product-batch-toolbar,
.premium-admin .order-rule-panel,
.premium-admin .refund-rule-panel,
.premium-admin .advance-booking-rule,
.premium-admin .date-change-rule,
.premium-admin .position-editor-head,
.premium-admin .scenic-sync-panel,
.premium-admin .ttc-config-advanced,
.premium-admin .filter-bar,
.premium-admin .booking-action-panel,
.premium-admin .booking-confirmation-panel,
.premium-admin .booking-reason-panel,
.premium-admin .booking-confirmation-upload,
.premium-admin .agency-price-empty,
.premium-admin .product-visibility-editor,
.premium-admin .refund-products,
.premium-admin .inventory-price-form,
.premium-admin .inventory-calendar-toolbar,
.premium-admin .inventory-calendar-head,
.premium-admin .inventory-side,
.premium-admin .agency-group-panel,
.premium-admin .price-main-filters,
.premium-admin .multi-picker-toolbar,
.premium-admin .orders-filter,
.premium-admin .mall-admin-list-panel,
.premium-admin .mall-admin-step-intro,
.premium-admin .mall-product-setup-section,
.premium-admin .mall-email-template-panel,
.premium-admin .mall-scenic-preview,
.premium-admin .mall-media-grid,
.premium-admin .mall-admin-location-group,
.premium-admin .mall-location-fields,
.premium-admin .mall-purchase-notice-editor,
.premium-admin .rich-text-toolbar,
.premium-admin .mall-product-toolbar {
  border-color: var(--admin-outline);
  background: var(--admin-surface-inset);
  color: #cfe0ed;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
}

/* Raised cards and editor rows need a visible, but restrained, second layer. */
.premium-admin button.settings-entry,
.premium-admin .settings-section,
.premium-admin .smtp-security-option,
.premium-admin .employee-permission,
.premium-admin .booking-mode-option,
.premium-admin .product-editor-tab,
.premium-admin .refund-tier-config,
.premium-admin .refund-tier-row,
.premium-admin .position-floor-editor,
.premium-admin .position-item-editor,
.premium-admin .booking-confirmation-value,
.premium-admin .booking-attachment-item,
.premium-admin .booking-history-row,
.premium-admin .detail-item,
.premium-admin .price-row,
.premium-admin .product-price-summary div,
.premium-admin .price-layer,
.premium-admin .product-setup-step,
.premium-admin .product-visibility-summary,
.premium-admin .product-visibility-mode-card,
.premium-admin .refund-product-row,
.premium-admin .inventory-price-preview,
.premium-admin .inventory-group-row,
.premium-admin .agency-group-row,
.premium-admin .multi-picker-option,
.premium-admin .detail-status-latest,
.premium-admin .product-traveller-group,
.premium-admin .product-position-summary,
.premium-admin .recharge-success-item,
.premium-admin .mall-admin-list-stat,
.premium-admin .mall-admin-list-row,
.premium-admin .mall-admin-list-empty,
.premium-admin .mall-admin-step,
.premium-admin .mall-admin-stage,
.premium-admin .mall-admin-completion-item,
.premium-admin .mall-email-send-toggle,
.premium-admin .mall-email-mode-option,
.premium-admin .mall-email-template-card,
.premium-admin .mall-media-card,
.premium-admin .rich-text-editor,
.premium-admin .mall-product-row {
  border-color: var(--admin-outline);
  background: var(--admin-surface-raised);
  color: var(--premium-text);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .015), 0 8px 20px rgba(0, 6, 18, .12);
}

.premium-admin button.settings-entry:hover,
.premium-admin .employee-permission:hover,
.premium-admin .product-editor-tab:hover,
.premium-admin .booking-mode-option:hover,
.premium-admin .product-visibility-mode-option:hover .product-visibility-mode-card,
.premium-admin .multi-picker-option:hover,
.premium-admin .order-catalog-suggestion:hover,
.premium-admin .order-catalog-suggestion:focus-visible,
.premium-admin .mall-admin-step:hover,
.premium-admin .mall-admin-list-row:hover,
.premium-admin .mall-product-row:hover {
  border-color: var(--admin-outline-strong);
  background: var(--admin-surface-hover);
  color: #f4fbff;
}

.premium-admin button.settings-entry[aria-expanded="true"],
.premium-admin .product-editor-tab.active,
.premium-admin .product-setup-step.active,
.premium-admin .product-visibility-mode-option:has(input:checked) .product-visibility-mode-card,
.premium-admin .inventory-day.selected,
.premium-admin .multi-picker-option:has(input:checked),
.premium-admin .mall-admin-list-row.active,
.premium-admin .mall-admin-step.active,
.premium-admin .mall-product-row.is-selected {
  border-color: var(--admin-outline-strong);
  background: var(--admin-surface-selected);
  color: #effcff;
  box-shadow: inset 3px 0 0 var(--premium-cyan), 0 8px 24px rgba(0, 10, 24, .2);
}

/* Search results, menus, tables and calendars are elevated above inset sections. */
.premium-admin .product-scenic-toggle,
.premium-admin .product-scenic-options,
.premium-admin .multi-picker,
.premium-admin .inventory-calendar,
.premium-admin .detail-panel,
.premium-admin .order-catalog-suggestions,
.premium-admin .order-catalog-suggestion,
.premium-admin .order-table-wrap,
.premium-admin .table-wrap,
.premium-admin .quantity-stepper,
.premium-admin .modal,
.premium-admin .modal-head,
.premium-admin .modal-actions {
  border-color: var(--admin-outline);
  background: #12334f;
  color: var(--premium-text);
}

.premium-admin .product-editor-tabs {
  border-color: var(--admin-outline);
  background: linear-gradient(#12334f 82%, rgba(18, 51, 79, .92));
}

.premium-admin .detail-panel h3,
.premium-admin .product-traveller-group-head,
.premium-admin .order-table th,
.premium-admin .rich-text-toolbar {
  border-color: var(--admin-outline);
  background: #1b4868;
  color: #bed4e1;
}

.premium-admin .order-table tbody tr:nth-child(even) td,
.premium-admin .product-table tr.is-partially-selected td { background: rgba(24, 58, 85, .58); }
.premium-admin .order-table tbody tr:hover td,
.premium-admin .product-table tr:hover td { background: rgba(40, 89, 116, .56); }
.premium-admin .product-table tr.is-selected td { background: rgba(59, 130, 246, .12); }

.premium-admin .inventory-day {
  border-color: rgba(111, 191, 232, .13);
  background: #173b58;
  color: #dcebf5;
}
.premium-admin .inventory-day:hover { background: #245675; }
.premium-admin .inventory-day.outside { background: #102b43; color: #7890a3; }
.premium-admin .inventory-calendar-head span { color: #86a7bd; }

.premium-admin .quantity-stepper input { border-color: transparent; background: #12334f; }
.premium-admin .quantity-stepper button { background: #235575; color: #d3edf4; box-shadow: none; }
.premium-admin .quantity-stepper button:hover { background: #2c6788; }

.premium-admin .multi-picker-check {
  border-color: #51748d;
  background: #12334f;
  color: #fff;
}
.premium-admin .multi-picker-option input:checked + .multi-picker-check {
  border-color: var(--premium-cyan);
  background: #1699aa;
}

.premium-admin .platform-logo-preview,
.premium-admin .product-image-preview,
.premium-admin .mall-scenic-preview img,
.premium-admin .rich-text-surface img {
  border-color: var(--admin-outline);
  background: #143752;
  color: var(--premium-muted);
  outline: 1px solid rgba(255, 255, 255, .1);
  outline-offset: -1px;
}

.premium-admin .modal-mask { background: rgba(0, 7, 18, .78); backdrop-filter: blur(7px); }
.premium-admin .modal {
  border: 1px solid var(--admin-outline);
  box-shadow: 0 30px 90px rgba(0, 4, 14, .64), inset 0 1px 0 rgba(255, 255, 255, .035);
}
.premium-admin .modal-head { box-shadow: 0 1px 0 rgba(105, 183, 226, .13); }
.premium-admin .modal-actions { box-shadow: 0 -1px 0 rgba(105, 183, 226, .13); }

/* The mall wizard had the largest uninterrupted white areas. */
.premium-admin .mall-admin-wizard-actions {
  background: linear-gradient(180deg, rgba(18, 51, 79, 0), #12334f 28%, #12334f);
}
.premium-admin .mall-admin-thumb { background: #245776; color: #b8d8e6; }
.premium-admin button.mall-admin-item,
.premium-admin button.mall-admin-item:hover {
  border: 0;
  border-radius: 8px;
  padding: 0;
  background: transparent;
  color: var(--premium-text);
  box-shadow: none;
}
.premium-admin .mall-admin-list-row:hover { transform: translateY(-1px); }
.premium-admin .mall-admin-item-title { color: #edf8ff; }
.premium-admin .mall-admin-item-meta { color: #a9bdcb; }
.premium-admin .mall-admin-thumb img {
  outline: 1px solid rgba(255, 255, 255, .1);
  outline-offset: -1px;
}
.premium-admin .mall-admin-search-clear { color: #7896ab; }
.premium-admin .mall-admin-search-clear:hover { background: #245776; color: #f0f9fc; }
.premium-admin .mall-admin-step-index { background: #245776; color: #bdd7e3; }
.premium-admin .mall-admin-step.active .mall-admin-step-index { background: #168fa6; color: #fff; }
.premium-admin .mall-admin-list-row.active {
  box-shadow: inset 0 0 0 2px var(--premium-cyan), 0 10px 24px rgba(0, 10, 24, .22);
}
.premium-admin .mall-admin-list-row.active .mall-admin-item-title { color: #fff; }

/* Keep semantic states legible without returning to bright white or pastel cards. */
.premium-admin .form-error,
.premium-admin .notice.danger,
.premium-admin .product-editor-tab.has-error {
  border-color: rgba(255, 112, 121, .42);
  background: rgba(100, 24, 38, .36);
  color: #ffb0b6;
}
.premium-admin .notice.success,
.premium-admin .recharge-success-head,
.premium-admin .mall-admin-completion-item.done,
.premium-admin .mall-admin-step.completed:not(.active) {
  border-color: rgba(77, 225, 168, .34);
  background: rgba(19, 85, 64, .34);
  color: #8ff0c5;
}
.premium-admin .remote-spec-constraint,
.premium-admin .booking-attention,
.premium-admin .mall-admin-completion-item.todo,
.premium-admin .mall-admin-pill.warn {
  border-color: rgba(242, 199, 120, .35);
  background: rgba(102, 71, 24, .32);
  color: #f1d18f;
}
.premium-admin .booking-attention.urgent,
.premium-admin .status-danger,
.premium-admin .status-danger-soft {
  background: rgba(112, 29, 42, .42);
  color: #ffabb2;
}
.premium-admin .status-warn { background: rgba(111, 68, 21, .42); color: #f4cb82; }
.premium-admin .status-refunded { background: rgba(80, 49, 126, .42); color: #d8bbff; }

.premium-admin .regular-price-form input[readonly],
.premium-admin .inventory-side input[readonly],
.premium-admin .advance-booking-sentence :disabled,
.premium-admin .date-change-dependent :disabled {
  border-color: rgba(111, 191, 232, .1);
  background: #102b43;
  color: #91a8b9;
}

.premium-admin h1,
.premium-admin h2,
.premium-admin h3 { text-wrap: balance; }
.premium-admin .kpi strong,
.premium-admin .inventory-price-preview strong,
.premium-admin .order-table .order-count { font-variant-numeric: tabular-nums; }

/* Agency portal: finish the dark surface system for the legacy order workflow.
   Several ID-scoped rules in agency.html intentionally win over generic theme
   selectors, so these overrides match that specificity instead of leaving pale
   cards underneath the light premium text. */
.premium-agency {
  --agency-surface-inset: var(--saas-card);
  --agency-surface-raised: var(--saas-card-raised);
  --agency-surface-hover: var(--saas-card-hover);
  --agency-outline: var(--saas-border);
  --agency-outline-strong: rgba(79, 124, 255, .55);
  --agency-copy: var(--saas-text-primary);
  --agency-copy-muted: var(--saas-text-description);
}

.premium-agency #batch.batch-as-mall-order .mall-order-side {
  border-color: var(--agency-outline);
  background: var(--saas-card-raised);
  color: var(--agency-copy);
  box-shadow: 0 20px 55px rgba(2, 12, 24, .28), inset 0 1px 0 rgba(255, 255, 255, .035);
  scrollbar-color: #56758c #102b43;
}

.premium-agency #batch.batch-as-mall-order .step,
.premium-agency #batch.batch-as-mall-order .metric,
.premium-agency #batch.batch-as-mall-order .traveller-recognizer {
  border-color: var(--agency-outline);
  background: var(--agency-surface-raised);
  color: var(--agency-copy);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
}

.premium-agency #batch.batch-as-mall-order .step > div span,
.premium-agency #batch.batch-as-mall-order .metric span,
.premium-agency #batch.batch-as-mall-order .traveller-recognizer-status,
.premium-agency #batch.batch-as-mall-order .order-submit-brief span {
  color: var(--agency-copy-muted);
}

.premium-agency #batch.batch-as-mall-order .metric strong,
.premium-agency #batch.batch-as-mall-order .unit-price-plain {
  color: var(--agency-copy);
  font-variant-numeric: tabular-nums;
}

.premium-agency #batch.batch-as-mall-order .unit-price-plain,
.premium-agency #batch.batch-as-mall-order .order-submit-brief strong { color: var(--premium-gold); }

.premium-agency #batch.batch-as-mall-order .traveller-recognizer.dragging {
  border-color: var(--agency-outline-strong);
  background: rgba(59, 130, 246, .12);
  box-shadow: inset 0 0 0 2px rgba(79, 124, 255, .18);
}

.premium-agency #batch.batch-as-mall-order .traveller-recognizer .order-field-excel {
  border-bottom-color: var(--agency-outline);
}

.premium-agency .period-trigger,
.premium-agency .period-menu,
.premium-agency .period-option {
  border-color: var(--agency-outline);
  background: var(--agency-surface-raised);
  color: var(--agency-copy);
  box-shadow: none;
}

.premium-agency .period-trigger:hover,
.premium-agency .period-option:hover {
  border-color: var(--agency-outline-strong);
  background: var(--agency-surface-hover);
  color: #f4fbff;
  box-shadow: none;
}

.premium-agency .period-trigger-main strong,
.premium-agency .period-option-time strong { color: var(--agency-copy); }
.premium-agency .period-trigger-main span,
.premium-agency .period-option-time span { color: var(--agency-copy-muted); }
.premium-agency .period-chevron { color: #60a5fa; }
.premium-agency .period-option.selected {
  border-color: var(--premium-cyan);
  background: rgba(59, 130, 246, .14);
  color: var(--premium-text);
  box-shadow: inset 3px 0 0 var(--premium-cyan);
}
.premium-agency .period-option.sold-out {
  border-color: rgba(255, 112, 121, .35);
  background: rgba(100, 24, 38, .36);
  color: #ffb0b6;
}

.premium-agency .resource-position-panel,
.premium-agency .resource-position-toolbar,
.premium-agency .resource-seat-map,
.premium-agency .resource-position-product-group,
.premium-agency .resource-position-empty {
  border-color: var(--agency-outline);
  background: var(--agency-surface-inset);
  color: var(--agency-copy);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
}

.premium-agency .mall-product-position-slot .resource-position-panel,
.premium-agency .resource-position-product-group { background: var(--agency-surface-raised); }
.premium-agency .resource-position-product-head { border-color: var(--agency-outline); }
.premium-agency .resource-position-title strong,
.premium-agency .resource-position-product-head strong { color: var(--agency-copy); }
.premium-agency .resource-position-title span,
.premium-agency .resource-position-product-head span,
.premium-agency .resource-position-legend,
.premium-agency .resource-seat-map-stats { color: var(--agency-copy-muted); }

.premium-agency .resource-floor-tab {
  border-color: var(--agency-outline);
  background: #1a4563;
  color: #dcecf6;
  box-shadow: none;
}
.premium-agency .resource-floor-tab:hover {
  border-color: var(--agency-outline-strong);
  background: var(--agency-surface-hover);
  color: #fff;
  box-shadow: none;
}
.premium-agency .resource-floor-tab.active {
  border-color: var(--premium-cyan);
  background: linear-gradient(90deg, #3b82f6, #2563eb);
  color: #fff;
  box-shadow: 0 8px 20px rgba(59, 130, 246, .25);
}
.premium-agency .resource-position-legend i { background: currentColor; }
.premium-agency .resource-position-legend .available,
.premium-agency .resource-seat-map-stats .available { color: #22b879; }
.premium-agency .resource-position-legend .selected { color: var(--storefront-accent); }
.premium-agency .resource-position-legend .sold,
.premium-agency .resource-seat-map-stats .sold { color: #94a3b8; }
.premium-agency .resource-seat-map-head { border-bottom-color: var(--agency-outline); }
.premium-agency .resource-seat-map-title { background: #214f6d; color: #d9edf5; }
.premium-agency .resource-seat-map-title i { background: var(--premium-cyan); }

.premium-agency .resource-position-card {
  border-color: transparent;
  background: var(--agency-surface-raised);
  color: var(--agency-copy);
  box-shadow: 0 0 0 1px var(--agency-outline), 0 4px 12px rgba(5, 19, 33, .08);
}
.premium-agency .resource-position-card:hover:not(:disabled) {
  border-color: transparent;
  background: var(--agency-surface-hover);
  color: var(--agency-copy);
  box-shadow: 0 0 0 1px var(--storefront-accent), 0 8px 18px rgba(37, 99, 235, .14);
}
.premium-agency .resource-position-card.selected {
  border-color: transparent;
  background: var(--storefront-accent);
  color: #fff;
  box-shadow: 0 0 0 1px var(--storefront-accent), 0 9px 20px rgba(37, 99, 235, .24);
}
.premium-agency .resource-position-card:disabled {
  border-color: transparent;
  background: var(--agency-surface-inset);
  color: var(--premium-disabled);
  box-shadow: 0 0 0 1px var(--agency-outline);
  opacity: 1;
}
.premium-agency .resource-position-status { background: rgba(34, 184, 121, .14); color: #119868; }
.premium-agency .resource-position-card.selected .resource-position-status { background: rgba(255, 255, 255, .2); color: inherit; }
.premium-agency .resource-position-card:disabled .resource-position-status { background: rgba(100, 116, 139, .14); color: inherit; }

.premium-agency[data-frontend-theme-style="dark_chic"] .resource-position-card.selected { color: #07131c; }

.premium-agency .traveller-recognizer .order-field-excel { border-bottom-color: var(--agency-outline); }
.premium-agency .traveller-image-upload {
  border: 1px solid var(--agency-outline);
  background: #1a4563;
  color: #dcecf6;
}
.premium-agency .traveller-image-upload:hover { border-color: var(--agency-outline-strong); background: var(--agency-surface-hover); }

.premium-agency .confirm-item,
.premium-agency .booking-confirmation-agency-panel,
.premium-agency .booking-confirmation-item,
.premium-agency .booking-confirmation-attachment,
.premium-agency .code {
  border-color: var(--agency-outline);
  background: var(--agency-surface-raised);
  color: var(--agency-copy);
}
.premium-agency .confirm-item > span,
.premium-agency .booking-confirmation-item > span { color: var(--agency-copy-muted); }
.premium-agency .confirm-product-line { border-color: var(--agency-outline); }
.premium-agency .confirm-product-line .confirm-product-name { color: var(--agency-copy); }
.premium-agency .confirm-product-line .confirm-product-meta { color: var(--agency-copy-muted); }
.premium-agency .confirm-offset-item {
  border-color: rgba(83, 186, 255, .34);
  background: rgba(36, 91, 151, .34);
}
.premium-agency .confirm-offset-item strong { color: #a9d2ff; }

.premium-agency .result {
  border-color: rgba(77, 225, 168, .34);
  background: rgba(19, 85, 64, .34);
  color: #a5f1d1;
}

.premium-agency #refundModal #refundAmountText,
.premium-agency #refundModal .refund-search,
.premium-agency #refundModal .refund-travellers,
.premium-agency #refundModal .refund-row,
.premium-agency #refundModal .refund-products,
.premium-agency #refundModal .refund-product-row,
.premium-agency #refundModal .refund-search-empty {
  border-color: var(--agency-outline);
  background: var(--agency-surface-raised);
  color: var(--agency-copy);
}
.premium-agency #refundModal .modal-head,
.premium-agency #refundModal .modal-actions {
  border-color: var(--agency-outline);
  background: var(--saas-card-hover);
}
.premium-agency #refundModal .refund-row.refund-row-matched {
  border-color: var(--agency-outline-strong);
  background: rgba(36, 91, 151, .38);
}

.premium-agency .photo-lightbox-actions,
.premium-agency .mall-scenic-actions {
  border-color: var(--agency-outline);
  background: var(--saas-card-raised);
  color: var(--agency-copy);
}

.premium-agency .hint,
.premium-agency .mall-product-stock.danger,
.premium-agency .mall-product-detail-list div.mall-product-rule-alert b,
.premium-agency .mall-product-detail-list div.mall-product-rule-alert span { color: #ff9da4; }
.premium-agency .mall-product-stock.warn { color: #f2cf88; }
.premium-agency .mall-product-detail-list div.refund-rule-danger {
  border: 0;
  padding: 0;
  background: transparent;
}
.premium-agency .mall-product-detail-list div.refund-rule-danger b,
.premium-agency .mall-product-detail-list div.refund-rule-danger span { color: #ffb0b6; }

.premium-agency input:disabled,
.premium-agency select:disabled,
.premium-agency textarea:disabled {
  border-color: transparent;
  background: var(--saas-card);
  color: var(--saas-text-disabled);
  opacity: 1;
}
.premium-agency button:disabled {
  border: 0;
  background: rgba(255, 255, 255, .04);
  color: var(--saas-text-disabled);
  box-shadow: none;
  cursor: not-allowed;
}

.premium-agency h1,
.premium-agency h2,
.premium-agency h3 { text-wrap: balance; }
.premium-agency .metric strong,
.premium-agency .unit-price-plain,
.premium-agency .order-submit-brief strong,
.premium-agency .period-trigger-main strong { font-variant-numeric: tabular-nums; }

.premium-admin .product-order-mode-editor {
  min-width: 0;
  margin: 0;
  padding: 16px;
  border: 0;
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px rgba(79, 124, 255, .2), 0 12px 30px rgba(2, 12, 27, .14);
  background: rgba(12, 38, 61, .72);
}
.premium-admin .product-order-mode-editor legend { padding: 0 6px; color: var(--premium-text); font-weight: 800; }
.premium-admin .product-order-mode-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.premium-admin .product-order-mode-choice,
.premium-admin .product-real-name-option {
  display: flex;
  min-height: 64px;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border-radius: 10px;
  background: rgba(22, 58, 87, .78);
  box-shadow: inset 0 0 0 1px rgba(111, 191, 232, .16);
}
.premium-admin .product-traveller-mode-choice { display: grid; gap: 10px; }
.premium-admin .product-order-mode-primary,
.premium-admin .product-real-name-option { display: flex; align-items: flex-start; gap: 10px; }
.premium-admin .product-real-name-option {
  min-height: 0;
  margin-top: 0;
  padding: 10px;
  background: rgba(8, 31, 50, .58);
}
.premium-admin .product-order-mode-editor input[type="checkbox"] {
  width: 20px;
  min-width: 20px;
  height: 20px;
  min-height: 20px;
  margin: 0;
  padding: 0;
  flex: 0 0 auto;
  box-shadow: none;
}
.premium-admin .product-order-mode-editor input[type="checkbox"]:focus,
.premium-admin .product-order-mode-editor input[type="checkbox"]:focus-visible {
  border-color: transparent;
  outline: 0;
  box-shadow: none;
}
.premium-admin .product-order-mode-choice:has(> input[type="checkbox"]:focus-visible),
.premium-admin .product-traveller-mode-choice:has(> .product-order-mode-primary > input[type="checkbox"]:focus-visible),
.premium-admin .product-real-name-option:has(> input[type="checkbox"]:focus-visible) {
  box-shadow: inset 0 0 0 2px rgba(37, 99, 235, .26);
}
.premium-admin .product-order-mode-editor span span,
.premium-admin .product-order-mode-editor label > span { display: grid; gap: 4px; }
.premium-admin .product-order-mode-editor small { color: var(--premium-muted); line-height: 1.5; }
.premium-admin .product-order-mode-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 8px; }
.premium-admin .product-order-mode-summary strong,
.premium-admin .product-order-mode-summary span { padding: 4px 8px; border-radius: 999px; font-size: 12px; }
.premium-admin .product-order-mode-summary strong { color: #93c5fd; background: rgba(59, 130, 246, .14); }
.premium-admin .product-order-mode-summary span { color: #ffe3a3; background: rgba(135, 91, 17, .3); }

.premium-agency .mall-order-mode-selector {
  display: flex;
  min-width: 0;
  width: fit-content;
  max-width: 100%;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.premium-agency .mall-order-mode-selector > legend { width: 100%; margin-bottom: 2px; padding: 0; color: #eefaff; font-weight: 800; }
.premium-agency .mall-order-mode-option {
  display: flex;
  min-height: 40px;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border-radius: 10px;
  background: rgba(22, 58, 87, .78);
  box-shadow: inset 0 0 0 1px rgba(111, 191, 232, .16);
}
.premium-agency .mall-order-mode-option:has(input:checked) { box-shadow: inset 0 0 0 2px rgba(79, 124, 255, .72); }
.premium-agency .mall-order-mode-option input { width: 18px; min-width: 18px; height: 18px; min-height: 18px; margin: 0; padding: 0; box-shadow: none; }
.premium-agency .mall-order-mode-option span { display: grid; gap: 1px; }
.premium-agency .mall-order-mode-option small { color: #a9bfce; line-height: 1.25; }

.premium-admin .mall-admin-order-mode-editor { width: fit-content; max-width: 100%; }
.premium-admin .mall-admin-order-mode-option { min-height: 40px; background: var(--premium-surface-strong); color: var(--premium-text); box-shadow: inset 0 0 0 1px var(--premium-border); }
.premium-admin .mall-admin-order-mode-option:has(input:checked) { background: rgba(59, 130, 246, .14); box-shadow: inset 0 0 0 2px var(--saas-primary-alt); }
.premium-admin .mall-admin-order-mode-option input[type="checkbox"] { width: 18px; min-width: 18px; height: 18px; min-height: 18px; margin: 0; padding: 0; box-shadow: none; }

/* Enterprise SaaS refinement layer: keep legacy modules on one restrained token system. */
.premium-admin :is(p, small, .muted, .field-help, .settings-entry-description),
.premium-agency :is(p, small, .muted, .field-help) {
  color: var(--premium-muted);
  font-weight: 400;
}

.premium-admin :is(.panel, .dashboard-block, .settings-section, .kpi, .ops-card),
.premium-agency :is(.panel, .agency-home-section, .agency-rail-card, .agency-feature-card, .mall-card, .mall-product-card) {
  border: 1px solid var(--premium-border);
  border-radius: 12px;
  background: var(--premium-surface);
  box-shadow: var(--premium-shadow);
}

.premium-admin :is(.admin-hero, .settings-hub-intro),
.premium-agency :is(.agency-hero, .mall-order-side) { border-radius: 16px; }

.premium-admin :is(.modal, [role="dialog"]),
.premium-agency :is(.modal, [role="dialog"]) { border-radius: 14px; }

.premium-admin :is(.badge, .tag, .pill, .status-badge, .mall-admin-pill),
.premium-agency :is(.badge, .tag, .pill, .status-badge, .mall-content-tag) {
  border-radius: 999px;
}

.premium-admin :is(.filter-bar, .orders-filter, .settings-hub-intro, .settings-section),
.premium-agency :is(.mall-toolbar, .filter-bar, .status-guide, .grid, .metric, .step, .order-card, .mall-content-item, .mall-content-rich, .mall-product-variant, .ticket-spec-option, .traveller-recognizer) {
  border-color: var(--premium-border);
  background: var(--premium-surface-strong);
  color: var(--premium-text);
  box-shadow: none;
}

.premium-admin :is(.table-wrap, .order-table-wrap, .inventory-calendar, .detail-panel, .modal),
.premium-agency :is(.table-wrap, .modal, .period-menu) {
  border-color: var(--premium-border);
  background: var(--premium-surface-strong);
  color: var(--premium-text);
}

.premium-admin :is(th, .order-table th, .detail-panel h3),
.premium-agency th {
  border-color: var(--premium-border);
  background: var(--premium-surface-hover);
  color: var(--premium-text-secondary);
  font-weight: 500;
}

.premium-admin tbody tr:hover td,
.premium-agency tbody tr:hover td,
.premium-admin .order-table tbody tr:hover td { background: rgba(59, 130, 246, .08); }

.premium-admin :is(input, select, textarea):disabled,
.premium-agency :is(input, select, textarea):disabled {
  border-color: transparent;
  background: var(--premium-surface);
  color: var(--premium-disabled);
  opacity: 1;
}

.premium-admin button:disabled,
.premium-agency button:disabled {
  border: 0;
  background: rgba(255, 255, 255, .04);
  color: var(--premium-disabled);
  box-shadow: none;
}

.premium-admin .appearance-choice {
  border: 1px solid var(--premium-border);
  border-radius: 12px;
  background: var(--admin-surface-raised);
  box-shadow: none;
}
.premium-admin .appearance-choice:hover {
  border-color: rgba(79, 124, 255, .35);
  background: var(--admin-surface-hover);
  box-shadow: none;
}
.premium-admin .appearance-choice:has(input:checked) {
  border-color: var(--saas-primary-alt);
  background: rgba(59, 130, 246, .14);
  box-shadow: 0 0 0 1px var(--saas-primary-alt), 0 8px 20px rgba(59, 130, 246, .16);
}
.premium-admin .appearance-choice:has(input:checked) .appearance-choice-check {
  background: var(--saas-primary);
  color: #fff;
}

.premium-admin .modal-mask,
.premium-agency .modal-mask { background: rgba(3, 12, 24, .8); backdrop-filter: blur(8px); }
.premium-admin :is(.modal-head, .modal-actions),
.premium-agency :is(.modal-head, .modal-actions),
.premium-agency #orderDetailModal :is(.modal-head, .modal-actions),
.premium-agency #refundModal :is(.modal-head, .modal-actions) {
  border-color: var(--premium-border);
  background: var(--premium-surface-hover);
}
.premium-admin .modal,
.premium-agency .modal {
  border: 1px solid var(--premium-border);
  background: var(--premium-surface-strong);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .38);
}

.premium-admin .mall-admin-wizard-actions,
.premium-agency #batch.batch-as-mall-order .order-actions {
  background: var(--premium-surface-strong);
  box-shadow: 0 -10px 24px rgba(0, 0, 0, .14);
}

.premium-admin :is(.quantity-stepper, .quantity-stepper input, .multi-picker-check),
.premium-agency :is(.quantity-stepper, .quantity-stepper input) {
  border-color: var(--premium-border);
  background: var(--saas-input);
  color: var(--premium-text);
}
.premium-admin .quantity-stepper button,
.premium-agency .quantity-stepper button {
  background: rgba(255, 255, 255, .05);
  color: var(--premium-text-secondary);
  box-shadow: none;
}
.premium-admin .quantity-stepper button:hover,
.premium-agency .quantity-stepper button:hover { background: rgba(255, 255, 255, .08); }

.premium-agency .topbar {
  border-bottom-color: var(--premium-border);
  background: rgba(7, 26, 45, .94);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .14);
}
.premium-agency .brand { color: var(--premium-text); font-weight: 700; }
.premium-agency .brand-copy small,
.premium-agency .userbar { color: var(--premium-muted); font-weight: 400; }

@media (min-width: 961px) {
  .premium-agency .agency-top-strip {
    width: 260px;
    padding: 28px 16px;
    border-right: 1px solid var(--premium-border);
    background: var(--saas-sidebar);
    box-shadow: 12px 0 32px rgba(0, 0, 0, .12);
  }
  .premium-agency .agency-top-strip::before {
    color: var(--premium-disabled);
    font-weight: 500;
  }
  .premium-agency .agency-top-strip .tab {
    min-height: 44px;
    border: 0;
    border-radius: 12px;
    color: var(--premium-muted);
    font-weight: 500;
  }
  .premium-agency .agency-top-strip .tab:hover {
    background: rgba(59, 130, 246, .12);
    color: var(--premium-text-secondary);
  }
  .premium-agency .agency-top-strip .tab.active {
    background: linear-gradient(90deg, #3b82f6, #2563eb);
    color: #fff;
    box-shadow: inset 4px 0 0 #60a5fa, 0 8px 20px rgba(37, 99, 235, .2);
  }
  .premium-agency .layout { margin-left: 284px; }
}

.premium-agency .agency-hero {
  border-color: var(--premium-border);
  box-shadow: var(--premium-shadow);
}
.premium-agency .agency-hero h2 {
  color: var(--premium-text);
  font-family: inherit;
  font-size: clamp(34px, 4vw, 58px);
  font-weight: 700;
  letter-spacing: -.02em;
}
.premium-agency .agency-hero-content > p {
  color: var(--premium-text-secondary);
  font-weight: 400;
  letter-spacing: .04em;
}
.premium-agency .agency-hero .mall-toolbar {
  border-color: var(--premium-border);
  background: rgba(15, 39, 66, .82);
}
.premium-agency .agency-hero .mall-search-form input {
  border-color: transparent;
  border-radius: 12px;
  background: var(--saas-input);
  color: var(--premium-text);
}

.premium-agency :is(.mall-card, .mall-product-card) {
  background: var(--premium-surface-strong);
  box-shadow: var(--premium-shadow);
}
.premium-agency :is(.mall-card, .mall-product-card):hover {
  border-color: rgba(79, 124, 255, .3);
  background: var(--premium-surface-hover);
  box-shadow: var(--premium-shadow);
}
.premium-agency .mall-product-card.selected {
  border-color: var(--saas-primary-alt);
  background: rgba(59, 130, 246, .14);
  box-shadow: 0 0 0 1px var(--saas-primary-alt), var(--premium-shadow);
}
.premium-agency :is(.mall-content-tag, .badge) {
  border: 0;
  background: rgba(59, 130, 246, .14);
  color: #93c5fd;
}
.premium-agency :is(.mall-card-body p, .mall-detail-copy p, .mall-detail-intro, .mall-content-rich, .mall-product-intro, .mall-product-detail-list div, .mall-location-detail-list div) {
  color: var(--premium-muted);
  font-weight: 400;
}
.premium-agency :is(.mall-card-body h3, .mall-product-title strong, .mall-product-family-head h4, .mall-position-product-main strong, .mall-content-item strong, .mall-location-detail-list b, .mall-product-detail-list b) {
  color: var(--premium-text);
  font-weight: 700;
}

.premium-admin .product-order-mode-editor,
.premium-agency .mall-order-mode-selector {
  border-radius: 14px;
  background: var(--premium-surface);
  box-shadow: inset 0 0 0 1px var(--premium-border);
}
.premium-admin :is(.product-order-mode-choice, .product-real-name-option),
.premium-agency .mall-order-mode-option {
  border-radius: 12px;
  background: var(--premium-surface-strong);
  box-shadow: inset 0 0 0 1px var(--premium-border);
}
.premium-agency .mall-order-mode-option:has(input:checked) {
  background: rgba(59, 130, 246, .14);
  box-shadow: inset 0 0 0 2px var(--saas-primary-alt);
}

.premium-login .login-card,
.premium-login .login-panel {
  border: 1px solid var(--premium-border);
  border-radius: 16px;
  background: var(--premium-surface);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
}

/* Curated storefront theme studio: three complete conversion-focused presets. */
.premium-admin .theme-studio {
  grid-template-columns: minmax(280px, .82fr) minmax(360px, 1.18fr);
  align-items: start;
  gap: 20px;
}
.premium-admin .theme-preset-list { gap: 12px; }
.premium-admin .theme-preset-card {
  position: relative;
  display: grid;
  gap: 6px;
  min-height: 148px;
  padding: 16px;
  border-radius: 16px;
  background: var(--admin-surface-raised);
  color: var(--premium-text);
  box-shadow: inset 0 0 0 1px var(--premium-border);
  cursor: pointer;
  transition-property: background-color, box-shadow, transform;
  transition-duration: 180ms;
  transition-timing-function: cubic-bezier(.2, 0, 0, 1);
}
.premium-admin .theme-preset-card:hover {
  background: var(--admin-surface-hover);
  box-shadow: inset 0 0 0 1px var(--premium-border-strong), 0 12px 28px rgba(0, 0, 0, .12);
  transform: translateY(-2px);
}
.premium-admin .theme-preset-card:active { transform: scale(.96); }
.premium-admin .theme-preset-card:focus-within { outline: 3px solid rgba(79, 124, 255, .32); outline-offset: 3px; }
.premium-admin .theme-preset-card:has(input:checked) {
  background: color-mix(in srgb, var(--preset-accent) 12%, var(--admin-surface-raised));
  box-shadow: inset 0 0 0 2px var(--preset-accent), 0 14px 32px color-mix(in srgb, var(--preset-accent) 18%, transparent);
}
.premium-admin .theme-preset-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.premium-admin .theme-preset-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.premium-admin .theme-preset-swatch {
  display: flex;
  align-items: center;
  gap: 5px;
  width: 86px;
  height: 36px;
  padding: 7px;
  border-radius: 11px;
  background: var(--preset-surface);
  box-shadow: inset 0 0 0 1px rgba(127, 127, 127, .18);
}
.premium-admin .theme-preset-swatch i { display: block; width: 18px; height: 18px; border-radius: 6px; background: var(--preset-accent); }
.premium-admin .theme-preset-swatch i:nth-child(2) { opacity: .58; }
.premium-admin .theme-preset-swatch i:nth-child(3) { opacity: .25; }
.premium-admin .theme-preset-card .appearance-choice-check { width: 24px; height: 24px; flex-basis: 24px; }
.premium-admin .theme-preset-card:has(input:checked) .appearance-choice-check { background: var(--preset-accent); color: #071a2d; }
.premium-admin .theme-preset-card strong { font-size: 16px; text-wrap: balance; }
.premium-admin .theme-preset-card small { color: var(--preset-accent); font-size: 12px; font-weight: 800; letter-spacing: .04em; }
.premium-admin .theme-preset-card > span:last-child { color: var(--premium-muted); font-size: 13px; font-weight: 400; line-height: 1.6; text-wrap: pretty; }
.premium-admin .ticket-theme-preview {
  position: sticky;
  top: 22px;
  overflow: hidden;
  border-radius: 24px;
  padding: 12px;
  background: #0b1523;
  box-shadow: 0 26px 64px rgba(0, 0, 0, .28), inset 0 0 0 1px rgba(255, 255, 255, .1);
}
.premium-admin .ticket-theme-preview-bar { display: flex; align-items: center; justify-content: space-between; min-height: 34px; padding: 0 5px 10px; color: #c7d2e3; font-size: 11px; }
.premium-admin .ticket-theme-preview-bar > span { display: flex; gap: 5px; }
.premium-admin .ticket-theme-preview-bar i { display: block; width: 8px; height: 8px; border-radius: 50%; background: #40536a; }
.premium-admin .ticket-preview-screen { overflow: hidden; min-height: 490px; border-radius: 18px; background: var(--preview-page); color: var(--preview-text); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); }
.premium-admin .ticket-preview-hero {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 24px;
  background-image: var(--preview-hero-overlay), url("./premium-thailand-hero.png");
  background-position: center;
  background-size: cover;
  color: #fff;
}
.premium-admin .ticket-preview-eyebrow { width: max-content; border-radius: 999px; padding: 6px 10px; background: var(--preview-label); font-size: 11px; font-weight: 800; backdrop-filter: blur(10px); }
.premium-admin .ticket-preview-hero > strong { max-width: 12ch; font-size: clamp(25px, 3vw, 36px); line-height: 1.12; text-wrap: balance; }
.premium-admin .ticket-preview-price { color: var(--preview-accent); font-size: 34px; font-weight: 900; font-variant-numeric: tabular-nums; }
.premium-admin .ticket-preview-price small { color: inherit; font-size: 16px; }
.premium-admin .ticket-preview-price em { color: inherit; font-size: 12px; font-style: normal; }
.premium-admin .ticket-preview-content { display: grid; gap: 14px; padding: 18px; }
.premium-admin .ticket-preview-guarantees { display: flex; gap: 8px; flex-wrap: wrap; }
.premium-admin .ticket-preview-guarantees span { border-radius: 999px; padding: 6px 9px; background: var(--preview-tag-bg); color: var(--preview-tag-text); font-size: 11px; font-weight: 800; }
.premium-admin .ticket-preview-copy { display: grid; gap: 5px; border-radius: var(--preview-radius); padding: 14px; background: var(--preview-surface); box-shadow: var(--preview-card-shadow); }
.premium-admin .ticket-preview-copy strong { color: var(--preview-text); font-size: 14px; }
.premium-admin .ticket-preview-copy span { color: var(--preview-muted); font-size: 12px; line-height: 1.6; }
.premium-admin .ticket-preview-stock { display: flex; justify-content: space-between; gap: 12px; color: var(--preview-muted); font-size: 12px; }
.premium-admin .ticket-preview-stock b { color: var(--preview-stock); font-variant-numeric: tabular-nums; }
.premium-admin .ticket-preview-content button { min-height: 48px; border-radius: var(--preview-button-radius); background: var(--preview-button); color: var(--preview-button-text); box-shadow: var(--preview-button-shadow); }
.premium-admin .ticket-theme-preview > p { margin: 10px 8px 3px; color: #8ea6c1; font-size: 11px; line-height: 1.55; text-align: center; }
.premium-admin .theme-studio[data-theme-preview="high_end"] {
  --preview-page: #f7fafc;
  --preview-text: #1a365d;
  --preview-muted: #59697b;
  --preview-accent: #f0cf68;
  --preview-surface: #fff;
  --preview-label: rgba(26, 54, 93, .75);
  --preview-tag-bg: #edf2f7;
  --preview-tag-text: #1a365d;
  --preview-stock: #b7791f;
  --preview-radius: 16px;
  --preview-button-radius: 16px;
  --preview-card-shadow: 0 4px 12px rgba(0, 0, 0, .05);
  --preview-button: linear-gradient(135deg, #1a365d, #274d7c 58%, #d4af37);
  --preview-button-text: #fff;
  --preview-button-shadow: 0 10px 24px rgba(26, 54, 93, .22);
  --preview-hero-overlay: linear-gradient(90deg, rgba(12, 31, 54, .86), rgba(17, 44, 75, .28));
}
.premium-admin .theme-studio[data-theme-preview="nature"] {
  --preview-page: linear-gradient(145deg, #fff6d8, #d8f8e9);
  --preview-text: #374151;
  --preview-muted: #5f6d67;
  --preview-accent: #fde68a;
  --preview-surface: rgba(255, 255, 255, .72);
  --preview-label: rgba(6, 95, 70, .68);
  --preview-tag-bg: rgba(16, 185, 129, .12);
  --preview-tag-text: #047857;
  --preview-stock: #b45309;
  --preview-radius: 24px;
  --preview-button-radius: 999px;
  --preview-card-shadow: 0 12px 28px rgba(6, 95, 70, .12), inset 0 0 0 1px rgba(255, 255, 255, .74);
  --preview-button: #10b981;
  --preview-button-text: #fff;
  --preview-button-shadow: 0 10px 24px rgba(16, 185, 129, .24);
  --preview-hero-overlay: linear-gradient(0deg, rgba(6, 78, 59, .72), rgba(16, 185, 129, .08));
}
.premium-admin .theme-studio[data-theme-preview="dark_chic"] {
  --preview-page: #111827;
  --preview-text: #f8fafc;
  --preview-muted: #9ca3af;
  --preview-accent: #00f2fe;
  --preview-surface: #1f2937;
  --preview-label: rgba(0, 242, 254, .16);
  --preview-tag-bg: rgba(0, 242, 254, .1);
  --preview-tag-text: #67f7ff;
  --preview-stock: #f59e0b;
  --preview-radius: 16px;
  --preview-button-radius: 12px;
  --preview-card-shadow: inset 0 0 0 1px rgba(0, 242, 254, .35), 0 10px 26px rgba(0, 0, 0, .26);
  --preview-button: linear-gradient(90deg, #00dbe7, #00f2fe);
  --preview-button-text: #07131c;
  --preview-button-shadow: 0 0 9px rgba(0, 242, 254, .72), 0 0 28px rgba(0, 242, 254, .34);
  --preview-hero-overlay: linear-gradient(90deg, rgba(5, 9, 17, .96), rgba(17, 24, 39, .3));
}
.premium-admin .theme-studio > :is(.appearance-preview-note, .actions) { grid-column: 1 / -1; }

/* Shared semantic storefront tokens. */
.premium-agency[data-frontend-theme-style] {
  --storefront-radius: 16px;
  --storefront-button-radius: 12px;
  --storefront-accent: var(--premium-cyan);
  --storefront-price: var(--premium-gold);
  --storefront-card-shadow: var(--premium-shadow);
}
.premium-agency[data-frontend-theme-style] :is(.mall-card, .mall-product-card, .mall-order-side, .mall-content-section, .mall-scenic-gallery) { border-radius: var(--storefront-radius); }
.premium-agency[data-frontend-theme-style] :is(.mall-product-price, .mall-price, [class*="price"]) { color: var(--storefront-price); font-variant-numeric: tabular-nums; }
.premium-agency[data-frontend-theme-style] :is(.mall-search-form button, .mall-order-side button, .order-actions button, .quick-order-actions button) {
  min-height: 44px;
  border-radius: var(--storefront-button-radius);
  transition-property: transform, box-shadow, background-color, color;
  transition-duration: 180ms;
  transition-timing-function: cubic-bezier(.2, 0, 0, 1);
}
.premium-agency[data-frontend-theme-style] :is(.mall-search-form button, .mall-order-side button, .order-actions button, .quick-order-actions button):active:not(:disabled) { transform: scale(.96); }

/* Theme 1: premium business. */
.premium-agency[data-frontend-theme-style="high_end"] {
  --premium-bg: #f7fafc;
  --premium-bg-soft: #edf2f7;
  --premium-surface: #fff;
  --premium-surface-strong: #fff;
  --premium-surface-hover: #f8fbff;
  --premium-border: rgba(26, 54, 93, .12);
  --premium-border-strong: rgba(212, 175, 55, .7);
  --premium-text: #1a1a1a;
  --premium-text-secondary: #3f4f61;
  --premium-muted: #59697b;
  --premium-disabled: #8c98a6;
  --premium-cyan: #1a365d;
  --premium-teal: #d4af37;
  --premium-gold: #b7791f;
  --premium-shadow: 0 4px 12px rgba(0, 0, 0, .05);
  --agency-copy: #1a1a1a;
  --agency-copy-muted: #59697b;
  --agency-surface-inset: #edf2f7;
  --agency-surface-raised: #fff;
  --agency-surface-hover: #f8fbff;
  --storefront-accent: #1a365d;
  --storefront-price: #b7791f;
  --storefront-radius: 16px;
  --storefront-button-radius: 16px;
  --storefront-card-shadow: 0 4px 12px rgba(0, 0, 0, .05);
  background: #f7fafc;
  color: #1a1a1a;
}
.premium-agency[data-frontend-theme-style="high_end"]::before { opacity: 0; }
.premium-agency[data-frontend-theme-style="high_end"] .topbar { background: rgba(26, 54, 93, .97); }
.premium-agency[data-frontend-theme-style="high_end"] .agency-hero {
  border-color: rgba(212, 175, 55, .36);
  background-image: linear-gradient(90deg, rgba(17, 40, 69, .9), rgba(26, 54, 93, .5) 58%, rgba(26, 54, 93, .12)), url("./premium-thailand-hero.png");
  box-shadow: 0 20px 48px rgba(26, 54, 93, .18);
}
.premium-agency[data-frontend-theme-style="high_end"] .agency-hero h2 { color: #fff; font-family: inherit; letter-spacing: -.02em; }
.premium-agency[data-frontend-theme-style="high_end"] .agency-hero-content > p { color: #edf2f7; }
.premium-agency[data-frontend-theme-style="high_end"] .agency-hero .mall-toolbar { border-color: rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .9); }
.premium-agency[data-frontend-theme-style="high_end"] .agency-hero .mall-location-filter { color: #1a365d; }
.premium-agency[data-frontend-theme-style="high_end"] :is(.panel, .agency-home-section, .agency-rail-card, .agency-feature-card, .mall-card, .mall-product-card, .mall-order-side) {
  border-color: rgba(26, 54, 93, .1);
  background: #fff;
  color: #1a1a1a;
  box-shadow: var(--storefront-card-shadow);
}
.premium-agency[data-frontend-theme-style="high_end"] :is(.mall-card, .mall-product-card):hover { border-color: rgba(212, 175, 55, .62); background: #fff; box-shadow: 0 14px 34px rgba(26, 54, 93, .11); }
.premium-agency[data-frontend-theme-style="high_end"] .mall-product-card.selected { border-color: #d4af37; background: #fffdf4; box-shadow: 0 0 0 1px #d4af37, 0 14px 34px rgba(26, 54, 93, .1); }
.premium-agency[data-frontend-theme-style="high_end"] :is(.mall-card-body h3, .mall-product-title strong, .mall-product-family-head h4, .mall-content-item strong) { color: #1a1a1a; }
.premium-agency[data-frontend-theme-style="high_end"] :is(.mall-card-body p, .mall-detail-copy p, .mall-detail-intro, .mall-content-rich, .mall-product-intro) { color: #595959; }
.premium-agency[data-frontend-theme-style="high_end"] :is(.mall-content-tag, .badge) { background: #edf2f7; color: #1a365d; }
.premium-agency[data-frontend-theme-style="high_end"] :is(.mall-search-form button, .mall-order-side button, .order-actions button, .quick-order-actions button) { background: linear-gradient(135deg, #1a365d, #274d7c 62%, #d4af37); color: #fff; box-shadow: 0 9px 20px rgba(26, 54, 93, .2); }
.premium-agency[data-frontend-theme-style="high_end"] :is(.mall-search-form button, .mall-order-side button, .order-actions button, .quick-order-actions button):hover:not(:disabled) { box-shadow: 0 14px 30px rgba(26, 54, 93, .26); transform: scale(1.02); }

/* Theme 2: immersive nature holiday. */
.premium-agency[data-frontend-theme-style="nature"] {
  --premium-bg: #eaf8f1;
  --premium-bg-soft: rgba(255, 255, 255, .58);
  --premium-surface: rgba(255, 255, 255, .72);
  --premium-surface-strong: rgba(255, 255, 255, .78);
  --premium-surface-hover: rgba(255, 255, 255, .9);
  --premium-border: rgba(6, 95, 70, .1);
  --premium-border-strong: rgba(16, 185, 129, .58);
  --premium-text: #374151;
  --premium-text-secondary: #43544d;
  --premium-muted: #5f6d67;
  --premium-disabled: #8a9992;
  --premium-cyan: #10b981;
  --premium-teal: #f4c95d;
  --premium-gold: #b45309;
  --premium-shadow: 0 14px 36px rgba(6, 95, 70, .1);
  --agency-copy: #374151;
  --agency-copy-muted: #5f6d67;
  --agency-surface-inset: rgba(255, 255, 255, .56);
  --agency-surface-raised: rgba(255, 255, 255, .76);
  --agency-surface-hover: rgba(255, 255, 255, .9);
  --storefront-accent: #10b981;
  --storefront-price: #b45309;
  --storefront-radius: 24px;
  --storefront-button-radius: 999px;
  --storefront-card-shadow: 0 14px 36px rgba(6, 95, 70, .1), inset 0 0 0 1px rgba(255, 255, 255, .72);
  background: radial-gradient(circle at 8% 12%, rgba(253, 230, 138, .72), transparent 32rem), radial-gradient(circle at 92% 30%, rgba(16, 185, 129, .23), transparent 34rem), linear-gradient(145deg, #fff8df, #daf7e9 56%, #c7efe0);
  color: #374151;
}
.premium-agency[data-frontend-theme-style="nature"]::before { opacity: .3; }
.premium-agency[data-frontend-theme-style="nature"] .topbar { border-bottom-color: rgba(255, 255, 255, .54); background: rgba(6, 95, 70, .84); backdrop-filter: blur(16px); }
.premium-agency[data-frontend-theme-style="nature"] .agency-hero { border: 0; border-radius: 24px; background: linear-gradient(0deg, rgba(6, 78, 59, .68), rgba(16, 185, 129, .05)); box-shadow: 0 24px 58px rgba(6, 95, 70, .18); }
.premium-agency[data-frontend-theme-style="nature"] .agency-hero::before {
  content: "";
  position: absolute;
  inset: -3%;
  z-index: -1;
  background: url("./premium-thailand-hero.png") center / cover no-repeat;
  animation: storefront-nature-arrival 4s cubic-bezier(.2, 0, 0, 1) both;
  will-change: transform, filter;
}
@keyframes storefront-nature-arrival {
  from { transform: scale(1.08); filter: saturate(.72) blur(3px); }
  to { transform: scale(1); filter: saturate(1.06) blur(0); }
}
.premium-agency[data-frontend-theme-style="nature"] .agency-hero h2 { color: #fff; font-family: inherit; letter-spacing: -.025em; }
.premium-agency[data-frontend-theme-style="nature"] .agency-hero-content > p { color: rgba(255, 255, 255, .88); }
.premium-agency[data-frontend-theme-style="nature"] .agency-hero .mall-toolbar { border-color: rgba(255, 255, 255, .56); border-radius: 24px; background: rgba(255, 255, 255, .72); backdrop-filter: blur(12px); }
.premium-agency[data-frontend-theme-style="nature"] .agency-hero .mall-location-filter { color: #374151; }
.premium-agency[data-frontend-theme-style="nature"] :is(.panel, .agency-home-section, .agency-rail-card, .agency-feature-card, .mall-card, .mall-product-card, .mall-order-side) {
  border-color: rgba(255, 255, 255, .58);
  border-radius: 24px;
  background: rgba(255, 255, 255, .72);
  color: #374151;
  box-shadow: var(--storefront-card-shadow);
  backdrop-filter: blur(12px);
}
.premium-agency[data-frontend-theme-style="nature"] :is(.mall-card, .mall-product-card):hover { border-color: rgba(16, 185, 129, .34); background: rgba(255, 255, 255, .9); box-shadow: 0 20px 44px rgba(6, 95, 70, .14); }
.premium-agency[data-frontend-theme-style="nature"] .mall-product-card.selected { border-color: #10b981; background: rgba(236, 253, 245, .9); box-shadow: 0 0 0 1px #10b981, 0 18px 38px rgba(6, 95, 70, .13); }
.premium-agency[data-frontend-theme-style="nature"] :is(.mall-card-body h3, .mall-product-title strong, .mall-product-family-head h4, .mall-content-item strong) { color: #374151; }
.premium-agency[data-frontend-theme-style="nature"] :is(.mall-card-body p, .mall-detail-copy p, .mall-detail-intro, .mall-content-rich, .mall-product-intro) { color: #5f6d67; }
.premium-agency[data-frontend-theme-style="nature"] :is(.mall-content-tag, .badge) { background: rgba(16, 185, 129, .12); color: #047857; }
.premium-agency[data-frontend-theme-style="nature"] :is(.mall-search-form button, .mall-order-side button, .order-actions button, .quick-order-actions button) { border-radius: 999px; background: #10b981; color: #fff; box-shadow: 0 10px 24px rgba(16, 185, 129, .24); }
.premium-agency[data-frontend-theme-style="nature"] :is(.mall-search-form button, .mall-order-side button, .order-actions button, .quick-order-actions button):hover:not(:disabled) { background: #059669; box-shadow: 0 14px 30px rgba(16, 185, 129, .3); transform: translateY(-1px); }

/* Theme 3: minimal dark luxury. */
.premium-agency[data-frontend-theme-style="dark_chic"] {
  --premium-bg: #111827;
  --premium-bg-soft: #172033;
  --premium-surface: #1f2937;
  --premium-surface-strong: #1f2937;
  --premium-surface-hover: #263347;
  --premium-border: rgba(0, 242, 254, .22);
  --premium-border-strong: rgba(0, 242, 254, .72);
  --premium-text: #f8fafc;
  --premium-text-secondary: #d1d5db;
  --premium-muted: #9ca3af;
  --premium-disabled: #6b7280;
  --premium-cyan: #00f2fe;
  --premium-teal: #67f7ff;
  --premium-gold: #f59e0b;
  --premium-shadow: 0 18px 44px rgba(0, 0, 0, .28);
  --agency-copy: #f8fafc;
  --agency-copy-muted: #9ca3af;
  --agency-surface-inset: #151e2d;
  --agency-surface-raised: #1f2937;
  --agency-surface-hover: #263347;
  --storefront-accent: #00f2fe;
  --storefront-price: #f59e0b;
  --storefront-radius: 16px;
  --storefront-button-radius: 12px;
  --storefront-card-shadow: 0 18px 44px rgba(0, 0, 0, .28);
  background: #111827;
  color: #f8fafc;
}
.premium-agency[data-frontend-theme-style="dark_chic"]::before {
  opacity: .52;
  background-image: linear-gradient(rgba(0, 242, 254, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 242, 254, .04) 1px, transparent 1px), radial-gradient(circle at 78% 18%, rgba(0, 242, 254, .08), transparent 28rem);
  background-size: 36px 36px, 36px 36px, auto;
}
.premium-agency[data-frontend-theme-style="dark_chic"] .topbar { border-bottom-color: rgba(0, 242, 254, .16); background: rgba(9, 14, 24, .96); }
.premium-agency[data-frontend-theme-style="dark_chic"] .agency-hero { border-color: rgba(0, 242, 254, .34); background-image: linear-gradient(90deg, rgba(5, 9, 17, .96), rgba(17, 24, 39, .5) 58%, rgba(17, 24, 39, .12)), url("./premium-thailand-hero.png"); box-shadow: 0 0 0 1px rgba(0, 242, 254, .12), 0 24px 64px rgba(0, 0, 0, .42); }
.premium-agency[data-frontend-theme-style="dark_chic"] .agency-hero h2 { color: #00f2fe; font-family: inherit; letter-spacing: -.02em; text-shadow: 0 0 26px rgba(0, 242, 254, .28); }
.premium-agency[data-frontend-theme-style="dark_chic"] .agency-hero-content > p { color: #c4cad3; }
.premium-agency[data-frontend-theme-style="dark_chic"] .agency-hero .mall-toolbar { border-color: rgba(0, 242, 254, .22); background: rgba(17, 24, 39, .82); }
.premium-agency[data-frontend-theme-style="dark_chic"] :is(.panel, .agency-home-section, .agency-rail-card, .agency-feature-card, .mall-card, .mall-product-card, .mall-order-side) { border-color: rgba(0, 242, 254, .22); background: #1f2937; color: #f8fafc; box-shadow: var(--storefront-card-shadow); }
.premium-agency[data-frontend-theme-style="dark_chic"] :is(.mall-card, .mall-product-card):hover { border-color: rgba(0, 242, 254, .62); background: #263347; box-shadow: 0 0 0 1px rgba(0, 242, 254, .2), 0 20px 48px rgba(0, 0, 0, .34); }
.premium-agency[data-frontend-theme-style="dark_chic"] .mall-product-card.selected { border-color: #00f2fe; background: #1b2d3d; box-shadow: 0 0 0 1px #00f2fe, 0 0 26px rgba(0, 242, 254, .15); }
.premium-agency[data-frontend-theme-style="dark_chic"] :is(.mall-card-body h3, .mall-product-title strong, .mall-product-family-head h4, .mall-content-item strong) { color: #f8fafc; }
.premium-agency[data-frontend-theme-style="dark_chic"] :is(.mall-card-body p, .mall-detail-copy p, .mall-detail-intro, .mall-content-rich, .mall-product-intro) { color: #9ca3af; }
.premium-agency[data-frontend-theme-style="dark_chic"] :is(.mall-content-tag, .badge) { border: 1px solid rgba(0, 242, 254, .28); background: rgba(0, 242, 254, .08); color: #67f7ff; }
.premium-agency[data-frontend-theme-style="dark_chic"] :is(.mall-search-form button, .mall-order-side button, .order-actions button, .quick-order-actions button) { background: linear-gradient(90deg, #00dbe7, #00f2fe); color: #07131c; box-shadow: 0 0 10px rgba(0, 242, 254, .68), 0 0 30px rgba(0, 242, 254, .25); }
.premium-agency[data-frontend-theme-style="dark_chic"] :is(.mall-search-form button, .mall-order-side button, .order-actions button, .quick-order-actions button):hover:not(:disabled) { box-shadow: 0 0 14px rgba(0, 242, 254, .82), 0 0 38px rgba(0, 242, 254, .34); transform: translateY(-1px); }

@media (min-width: 961px) {
  .premium-agency[data-frontend-theme-style="high_end"] .agency-top-strip { border-right-color: rgba(26, 54, 93, .1); background: #fff; box-shadow: 12px 0 32px rgba(26, 54, 93, .08); }
  .premium-agency[data-frontend-theme-style="high_end"] .agency-top-strip .tab { color: #59697b; }
  .premium-agency[data-frontend-theme-style="high_end"] .agency-top-strip .tab:hover { background: #edf2f7; color: #1a365d; }
  .premium-agency[data-frontend-theme-style="high_end"] .agency-top-strip .tab.active { background: linear-gradient(90deg, #1a365d, #274d7c); color: #fff; box-shadow: inset 4px 0 0 #d4af37, 0 8px 20px rgba(26, 54, 93, .18); }
  .premium-agency[data-frontend-theme-style="nature"] .agency-top-strip { border-right-color: rgba(255, 255, 255, .58); background: rgba(255, 255, 255, .68); box-shadow: 12px 0 32px rgba(6, 95, 70, .08); backdrop-filter: blur(16px); }
  .premium-agency[data-frontend-theme-style="nature"] .agency-top-strip .tab { border-radius: 999px; color: #52645c; }
  .premium-agency[data-frontend-theme-style="nature"] .agency-top-strip .tab:hover { background: rgba(16, 185, 129, .1); color: #047857; }
  .premium-agency[data-frontend-theme-style="nature"] .agency-top-strip .tab.active { background: #10b981; color: #fff; box-shadow: 0 8px 20px rgba(16, 185, 129, .22); }
  .premium-agency[data-frontend-theme-style="dark_chic"] .agency-top-strip { border-right-color: rgba(0, 242, 254, .14); background: #0d1421; box-shadow: 12px 0 32px rgba(0, 0, 0, .24); }
  .premium-agency[data-frontend-theme-style="dark_chic"] .agency-top-strip .tab { color: #9ca3af; }
  .premium-agency[data-frontend-theme-style="dark_chic"] .agency-top-strip .tab:hover { background: rgba(0, 242, 254, .08); color: #67f7ff; }
  .premium-agency[data-frontend-theme-style="dark_chic"] .agency-top-strip .tab.active { background: rgba(0, 242, 254, .12); color: #00f2fe; box-shadow: inset 3px 0 0 #00f2fe, 0 0 24px rgba(0, 242, 254, .1); }
}

@media (max-width: 920px) {
  .premium-admin .theme-studio { grid-template-columns: 1fr; }
  .premium-admin .ticket-theme-preview { position: relative; top: auto; }
}
@media (max-width: 720px) {
  .premium-admin .ticket-preview-screen { min-height: 430px; }
  .premium-admin .ticket-preview-hero { min-height: 200px; padding: 20px; }
  .premium-agency[data-frontend-theme-style] :is(.mall-grid, .mall-product-grid, .mall-order-layout) { grid-template-columns: 1fr; }
  .premium-agency[data-frontend-theme-style] .agency-hero { min-height: 430px; border-radius: var(--storefront-radius); padding: 24px 18px; }
  .premium-agency[data-frontend-theme-style] .agency-hero .mall-toolbar { border-radius: var(--storefront-radius); }
  .premium-agency[data-frontend-theme-style] :is(.mall-card, .mall-product-card, .mall-order-side) { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .premium-admin .theme-preset-card,
  .premium-agency[data-frontend-theme-style] :is(.mall-search-form button, .mall-order-side button, .order-actions button, .quick-order-actions button) { transition: none; }
  .premium-admin .theme-preset-card:hover,
  .premium-admin .theme-preset-card:active,
  .premium-agency[data-frontend-theme-style] :is(.mall-search-form button, .mall-order-side button, .order-actions button, .quick-order-actions button):hover:not(:disabled),
  .premium-agency[data-frontend-theme-style] :is(.mall-search-form button, .mall-order-side button, .order-actions button, .quick-order-actions button):active:not(:disabled) { transform: none; }
  .premium-agency[data-frontend-theme-style="nature"] .agency-hero::before { animation: none; transform: none; filter: none; }
}

/* Login follows the same tenant storefront preset. */
.premium-login[data-frontend-theme-style="high_end"] {
  --premium-bg: #f7fafc;
  --premium-surface: rgba(255, 255, 255, .96);
  --premium-surface-strong: #fff;
  --premium-text: #1a1a1a;
  --premium-text-secondary: #3f4f61;
  --premium-muted: #59697b;
  --premium-border: rgba(26, 54, 93, .12);
  --primary: #1a365d;
  background: linear-gradient(90deg, rgba(247, 250, 252, .98), rgba(247, 250, 252, .74)), url("./premium-thailand-hero.png") center / cover fixed;
  color: #1a1a1a;
}
.premium-login[data-frontend-theme-style="nature"] {
  --premium-bg: #eaf8f1;
  --premium-surface: rgba(255, 255, 255, .72);
  --premium-surface-strong: rgba(255, 255, 255, .82);
  --premium-text: #374151;
  --premium-text-secondary: #43544d;
  --premium-muted: #5f6d67;
  --premium-border: rgba(255, 255, 255, .62);
  --primary: #10b981;
  background: linear-gradient(135deg, rgba(253, 230, 138, .76), rgba(16, 185, 129, .34)), url("./premium-thailand-hero.png") center / cover fixed;
  color: #374151;
}
.premium-login[data-frontend-theme-style="dark_chic"] {
  --premium-bg: #111827;
  --premium-surface: rgba(31, 41, 55, .94);
  --premium-surface-strong: #1f2937;
  --premium-text: #f8fafc;
  --premium-text-secondary: #d1d5db;
  --premium-muted: #9ca3af;
  --premium-border: rgba(0, 242, 254, .24);
  --primary: #00dbe7;
  background: linear-gradient(90deg, rgba(5, 9, 17, .97), rgba(17, 24, 39, .72)), url("./premium-thailand-hero.png") center / cover fixed;
  color: #f8fafc;
}
.premium-login[data-frontend-theme-style] .card {
  border: 1px solid var(--premium-border);
  border-radius: 20px;
  background: var(--premium-surface);
  color: var(--premium-text);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .2);
}
.premium-login[data-frontend-theme-style="nature"] .card { border-radius: 24px; backdrop-filter: blur(12px); }
.premium-login[data-frontend-theme-style="dark_chic"] .card { box-shadow: 0 0 0 1px rgba(0, 242, 254, .12), 0 24px 70px rgba(0, 0, 0, .42); }
.premium-login[data-frontend-theme-style] :is(.intro p, .intro-item span, .card p, .role-note) { color: var(--premium-muted); }
.premium-login[data-frontend-theme-style] :is(.intro h1, .intro-item strong, .card h2, label) { color: var(--premium-text); }
.premium-login[data-frontend-theme-style="high_end"] button[type="submit"] { border-radius: 16px; background: linear-gradient(135deg, #1a365d, #274d7c 62%, #d4af37); box-shadow: 0 10px 24px rgba(26, 54, 93, .2); }
.premium-login[data-frontend-theme-style="nature"] button[type="submit"] { border-radius: 999px; background: #10b981; box-shadow: 0 10px 24px rgba(16, 185, 129, .24); }
.premium-login[data-frontend-theme-style="dark_chic"] button[type="submit"] { background: linear-gradient(90deg, #00dbe7, #00f2fe); color: #07131c; box-shadow: 0 0 10px rgba(0, 242, 254, .68), 0 0 30px rgba(0, 242, 254, .25); }

/* Reference-aligned agency storefront.
   The high-end preset uses a dark navigation shell and clear light commerce
   surfaces, matching the established scenic-order layout instead of mixing
   dark-theme text tokens into white cards. */
body.premium-agency[data-frontend-theme-style="high_end"] {
  --premium-bg: #f4f7fb;
  --premium-bg-soft: #f7f9fc;
  --premium-surface: #ffffff;
  --premium-surface-strong: #ffffff;
  --premium-surface-hover: #f7f9fd;
  --premium-border: #e3e9f2;
  --premium-border-strong: #2f66f6;
  --premium-text: #15213d;
  --premium-text-secondary: #35435d;
  --premium-muted: #66758c;
  --premium-disabled: #9aa8bb;
  --premium-cyan: #2f66f6;
  --premium-teal: #2563eb;
  --premium-gold: #2563eb;
  --premium-shadow: 0 10px 30px rgba(27, 46, 80, .07);
  --agency-copy: #15213d;
  --agency-copy-muted: #66758c;
  --agency-surface-inset: #f7f9fc;
  --agency-surface-raised: #ffffff;
  --agency-surface-hover: #f4f7fc;
  --agency-outline: #e3e9f2;
  --agency-outline-strong: #2f66f6;
  --storefront-accent: #2f66f6;
  --storefront-price: #2563eb;
  --storefront-radius: 12px;
  --storefront-button-radius: 8px;
  --storefront-card-shadow: 0 10px 30px rgba(27, 46, 80, .07);
  --topbar-height: 72px;
  background: #f4f7fb;
  color: #15213d;
  color-scheme: light;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
}

body.premium-agency[data-frontend-theme-style="high_end"]::before,
body.premium-agency[data-frontend-theme-style="high_end"] .premium-motion-aurora { display: none; }

body.premium-agency[data-frontend-theme-style="high_end"] :is(p, small, .muted, .field-help) {
  color: #66758c;
  font-weight: 400;
}

body.premium-agency[data-frontend-theme-style="high_end"] :is(h1, h2, h3, h4, strong, label) {
  color: #15213d;
}

body.premium-agency[data-frontend-theme-style="high_end"] :is(.metric strong, .unit-price-plain, .order-submit-brief strong, .agency-account-balance strong, .agency-account-metrics strong) {
  font-variant-numeric: tabular-nums;
}

body.premium-agency[data-frontend-theme-style="high_end"] .topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1100;
  min-height: 72px;
  padding: 0 24px 0 18px;
  border: 0;
  border-bottom: 1px solid #e6ebf3;
  background: linear-gradient(90deg, #061b3c 0 224px, #ffffff 224px);
  box-shadow: 0 5px 20px rgba(26, 45, 78, .06);
  backdrop-filter: none;
}

body.premium-agency[data-frontend-theme-style="high_end"] .topbar-inner {
  width: 100%;
  min-height: 72px;
  max-width: none;
  margin: 0;
}

body.premium-agency[data-frontend-theme-style="high_end"] .brand {
  width: 206px;
  flex: 0 0 206px;
  color: #ffffff;
  font-size: 18px;
  line-height: 1.25;
}

body.premium-agency[data-frontend-theme-style="high_end"] .premium-brand-mark,
body.premium-agency[data-frontend-theme-style="high_end"] .brand-logo {
  width: 40px;
  height: 40px;
  flex-basis: 40px;
  border: 0;
  border-radius: 8px;
  background: #ffffff;
  color: #2f66f6;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .15);
}

body.premium-agency[data-frontend-theme-style="high_end"] .brand-copy > span { color: #ffffff; }
body.premium-agency[data-frontend-theme-style="high_end"] .brand-copy small {
  color: #9fb2d1;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
}

body.premium-agency[data-frontend-theme-style="high_end"] .userbar {
  color: #52627a;
  gap: 10px;
  font-size: 14px;
}

body.premium-agency[data-frontend-theme-style="high_end"] .userbar strong { color: #2f66f6; }
body.premium-agency[data-frontend-theme-style="high_end"] .userbar button.secondary {
  min-height: 38px;
  border: 1px solid #dfe6f0;
  border-radius: 18px;
  padding: 0 14px;
  background: #ffffff;
  color: #253451;
  box-shadow: none;
  font-size: 13px;
  font-weight: 600;
}

body.premium-agency[data-frontend-theme-style="high_end"] .userbar button.secondary:hover {
  border-color: #b9cae5;
  background: #f5f8fd;
  color: #1f55dc;
}

@media (min-width: 961px) {
  body.premium-agency[data-frontend-theme-style="high_end"] .agency-top-strip {
    position: fixed;
    inset: 72px auto 0 0;
    z-index: 1040;
    width: 224px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    margin: 0;
    padding: 28px 14px 18px;
    border: 0;
    background: #061b3c;
    box-shadow: 8px 0 24px rgba(13, 35, 70, .08);
  }

  body.premium-agency[data-frontend-theme-style="high_end"] .agency-top-strip::before {
    padding: 0 10px;
    color: #7790b6;
    font-size: 12px;
    letter-spacing: .08em;
  }

  body.premium-agency[data-frontend-theme-style="high_end"] .agency-top-strip .tabs {
    width: 100%;
    display: grid;
    gap: 7px;
    overflow: visible;
  }

  body.premium-agency[data-frontend-theme-style="high_end"] .agency-top-strip .tab {
    width: 100%;
    min-height: 48px;
    justify-content: flex-start;
    gap: 12px;
    border: 0;
    border-radius: 8px;
    padding: 0 14px;
    background: transparent;
    color: #d1def2;
    box-shadow: none;
    text-align: left;
    font-size: 15px;
    font-weight: 600;
  }

  body.premium-agency[data-frontend-theme-style="high_end"] .agency-top-strip .tab i {
    width: 18px;
    color: #a8bcda;
    text-align: center;
  }

  body.premium-agency[data-frontend-theme-style="high_end"] .agency-top-strip .tab:hover {
    background: rgba(47, 102, 246, .18);
    color: #ffffff;
  }

  body.premium-agency[data-frontend-theme-style="high_end"] .agency-top-strip .tab.active {
    background: linear-gradient(90deg, #1764ee, #0755ce);
    color: #ffffff;
    box-shadow: 0 8px 22px rgba(0, 92, 220, .28);
  }

  body.premium-agency[data-frontend-theme-style="high_end"] .agency-top-strip .tab.active i { color: #ffffff; }
  body.premium-agency[data-frontend-theme-style="high_end"] .agency-announcement-ticker {
    margin-top: auto;
    border: 1px solid rgba(130, 166, 221, .2);
    border-radius: 10px;
    background: rgba(11, 48, 92, .9);
    color: #cfe0f7;
  }

  body.premium-agency[data-frontend-theme-style="high_end"] .layout {
    width: auto;
    margin: 0 20px 48px 244px;
    padding-top: 92px;
  }
}

body.premium-agency[data-frontend-theme-style="high_end"] :is(.panel, .agency-home-section, .agency-rail-card, .agency-feature-card, .mall-card, .mall-product-card, .mall-order-side) {
  border: 1px solid #e3e9f2;
  background: #ffffff;
  color: #15213d;
  box-shadow: 0 8px 24px rgba(31, 49, 82, .06);
}

body.premium-agency[data-frontend-theme-style="high_end"] .panel { padding: 20px; }
body.premium-agency[data-frontend-theme-style="high_end"] #mall {
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

body.premium-agency[data-frontend-theme-style="high_end"] .agency-home-shell { gap: 16px; }
body.premium-agency[data-frontend-theme-style="high_end"] .agency-home-main { gap: 16px; }
body.premium-agency[data-frontend-theme-style="high_end"] .agency-home-rail { gap: 16px; }

body.premium-agency[data-frontend-theme-style="high_end"] .agency-hero {
  min-height: 320px;
  border: 0;
  border-radius: 12px;
  padding: 34px;
  background-image:
    linear-gradient(90deg, rgba(4, 24, 55, .9), rgba(4, 31, 69, .56) 58%, rgba(4, 31, 69, .1)),
    url("./premium-thailand-hero.png");
  box-shadow: 0 10px 26px rgba(25, 47, 82, .12);
}

body.premium-agency[data-frontend-theme-style="high_end"] .agency-hero h2 {
  margin: 12px 0 4px;
  color: #ffffff;
  font-family: inherit;
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.03em;
  text-shadow: 0 4px 18px rgba(0, 0, 0, .25);
}

body.premium-agency[data-frontend-theme-style="high_end"] .agency-hero-content > p {
  color: #d7e4f6;
  font-size: 15px;
  letter-spacing: .04em;
}

body.premium-agency[data-frontend-theme-style="high_end"] .agency-hero-eyebrow {
  border: 1px solid rgba(150, 192, 255, .24);
  background: rgba(31, 94, 190, .34);
  color: #cfe3ff;
}

body.premium-agency[data-frontend-theme-style="high_end"] .agency-hero .mall-toolbar {
  margin-top: 22px;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 10px;
  padding: 9px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 8px 24px rgba(8, 28, 60, .16);
  backdrop-filter: blur(8px);
}

body.premium-agency[data-frontend-theme-style="high_end"] .agency-hero .mall-location-filter { color: #35435d; }
body.premium-agency[data-frontend-theme-style="high_end"] .agency-hero :is(input, select) {
  min-height: 44px;
  border-color: #d5dfec;
  border-radius: 8px;
  background-color: #f7f9fc;
  color: #15213d;
}

body.premium-agency[data-frontend-theme-style="high_end"] :is(input, select, textarea) {
  border-color: #d5dfec;
  background: #ffffff;
  color: #15213d;
  font-size: 14px;
}

body.premium-agency[data-frontend-theme-style="high_end"] :is(input, textarea)::placeholder { color: #8998ac; opacity: 1; }
body.premium-agency[data-frontend-theme-style="high_end"] :is(input, select, textarea):focus {
  outline: 0;
  border-color: #2f66f6;
  box-shadow: 0 0 0 3px rgba(47, 102, 246, .13);
}

body.premium-agency[data-frontend-theme-style="high_end"] button {
  border-radius: 8px;
  background: #2f66f6;
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(47, 102, 246, .18);
  font-size: 14px;
  font-weight: 600;
}

body.premium-agency[data-frontend-theme-style="high_end"] button:hover:not(:disabled) {
  background: #2558dd;
  color: #ffffff;
}

body.premium-agency[data-frontend-theme-style="high_end"] button.ghost {
  border: 1px solid #dbe4ef;
  background: #ffffff;
  color: #35435d;
  box-shadow: none;
}

body.premium-agency[data-frontend-theme-style="high_end"] button.ghost:hover:not(:disabled) {
  border-color: #aebfda;
  background: #f5f8fd;
  color: #1f55dc;
}

body.premium-agency[data-frontend-theme-style="high_end"] button:disabled {
  border: 0;
  background: #d8e0eb;
  color: #8897aa;
  box-shadow: none;
}

body.premium-agency[data-frontend-theme-style="high_end"] :is(.agency-featured-section, .agency-benefit-strip, .agency-mall-directory) {
  border: 1px solid #e3e9f2;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(31, 49, 82, .05);
}

body.premium-agency[data-frontend-theme-style="high_end"] .agency-featured-section,
body.premium-agency[data-frontend-theme-style="high_end"] .agency-mall-directory { padding: 16px; }
body.premium-agency[data-frontend-theme-style="high_end"] .agency-section-head > div > span,
body.premium-agency[data-frontend-theme-style="high_end"] .agency-rail-head span {
  color: #2f66f6;
  font-size: 11px;
  letter-spacing: .12em;
}

body.premium-agency[data-frontend-theme-style="high_end"] .agency-section-head h3,
body.premium-agency[data-frontend-theme-style="high_end"] .agency-rail-head h3 {
  color: #15213d;
  font-size: 18px;
}

body.premium-agency[data-frontend-theme-style="high_end"] .agency-section-head > small { color: #66758c; font-size: 12px; }
body.premium-agency[data-frontend-theme-style="high_end"] .agency-featured-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

body.premium-agency[data-frontend-theme-style="high_end"] .agency-feature-card {
  overflow: hidden;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(31, 49, 82, .06);
}

body.premium-agency[data-frontend-theme-style="high_end"] .agency-feature-card:hover {
  border-color: #b7c8e2;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(31, 49, 82, .11);
}

body.premium-agency[data-frontend-theme-style="high_end"] .agency-feature-image { min-height: 130px; }
body.premium-agency[data-frontend-theme-style="high_end"] .agency-feature-copy h4 {
  min-height: 40px;
  color: #15213d;
  font-size: 14px;
  font-weight: 700;
}

body.premium-agency[data-frontend-theme-style="high_end"] .agency-feature-copy > small { color: #66758c; font-size: 12px; }
body.premium-agency[data-frontend-theme-style="high_end"] .agency-feature-copy > div strong {
  color: #2563eb;
  font-size: 15px;
}

body.premium-agency[data-frontend-theme-style="high_end"] .agency-feature-copy > div span {
  border-color: #cbd9ec;
  color: #2f66f6;
  font-size: 12px;
}

body.premium-agency[data-frontend-theme-style="high_end"] .agency-benefit-strip {
  overflow: hidden;
  color: #15213d;
}

body.premium-agency[data-frontend-theme-style="high_end"] .agency-benefit-strip > div { border-right-color: #e8edf4; }
body.premium-agency[data-frontend-theme-style="high_end"] .agency-benefit-strip i {
  background: #edf3ff;
  color: #2f66f6;
}

body.premium-agency[data-frontend-theme-style="high_end"] .agency-benefit-strip strong { color: #263550; font-size: 13px; }
body.premium-agency[data-frontend-theme-style="high_end"] .agency-benefit-strip small { color: #738197; font-size: 11px; }

body.premium-agency[data-frontend-theme-style="high_end"] .agency-rail-card { border-radius: 12px; }
body.premium-agency[data-frontend-theme-style="high_end"] .agency-account-balance {
  border-radius: 10px;
  background: #f3f7fd;
}

body.premium-agency[data-frontend-theme-style="high_end"] .agency-account-balance span { color: #66758c; font-size: 13px; }
body.premium-agency[data-frontend-theme-style="high_end"] .agency-account-balance strong { color: #15213d; font-size: 22px; }
body.premium-agency[data-frontend-theme-style="high_end"] .agency-account-balance small { color: #738197; font-size: 12px; }
body.premium-agency[data-frontend-theme-style="high_end"] .agency-account-metrics > div {
  border-color: #e6ebf3;
  background: #ffffff;
}

body.premium-agency[data-frontend-theme-style="high_end"] .agency-account-metrics span { color: #66758c; font-size: 12px; }
body.premium-agency[data-frontend-theme-style="high_end"] .agency-account-metrics strong { color: #15213d; font-size: 14px; }
body.premium-agency[data-frontend-theme-style="high_end"] .agency-rail-action {
  border: 0;
  background: #2f66f6;
  color: #ffffff;
}

body.premium-agency[data-frontend-theme-style="high_end"] .agency-promo-card :is(h3, p) { color: #ffffff; }
body.premium-agency[data-frontend-theme-style="high_end"] .agency-promo-card > span { color: #8fbdff; }
body.premium-agency[data-frontend-theme-style="high_end"] .agency-promo-card button {
  border: 0;
  background: #2f66f6;
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(47, 102, 246, .24);
}

body.premium-agency[data-frontend-theme-style="high_end"] .agency-recent-card :is(.agency-home-order, .dashboard-empty-compact) {
  color: #52627a;
}

body.premium-agency[data-frontend-theme-style="high_end"] .agency-home-order {
  border-color: #e6ebf3;
  background: #f8fafd;
  box-shadow: none;
}

body.premium-agency[data-frontend-theme-style="high_end"] .agency-home-order-copy strong { color: #263550; font-size: 13px; }
body.premium-agency[data-frontend-theme-style="high_end"] .agency-home-order-copy small { color: #738197; font-size: 11px; }
body.premium-agency[data-frontend-theme-style="high_end"] .agency-home-order-state strong { color: #2563eb; font-size: 12px; }

body.premium-agency[data-frontend-theme-style="high_end"] .mall-result-summary { color: #66758c; }
body.premium-agency[data-frontend-theme-style="high_end"] .mall-result-summary strong { color: #2f66f6; }
body.premium-agency[data-frontend-theme-style="high_end"] .mall-grid {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}

body.premium-agency[data-frontend-theme-style="high_end"] .mall-card {
  grid-template-rows: 180px minmax(0, 1fr);
  border-radius: 10px;
  background: #ffffff;
}

body.premium-agency[data-frontend-theme-style="high_end"] .mall-card:hover,
body.premium-agency[data-frontend-theme-style="high_end"] .mall-card:focus-visible {
  border-color: #a9bee0;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(31, 49, 82, .1);
  transform: translateY(-2px);
}

body.premium-agency[data-frontend-theme-style="high_end"] .mall-card-body h3 { color: #15213d; font-size: 16px; }
body.premium-agency[data-frontend-theme-style="high_end"] .mall-card-body p { color: #66758c; font-size: 13px; }
body.premium-agency[data-frontend-theme-style="high_end"] .mall-card-foot {
  border-top-color: #e7ecf3;
  color: #738197;
}

body.premium-agency[data-frontend-theme-style="high_end"] :is(.mall-content-tag, .badge, .mall-product-family-count, .mall-product-spec, .mall-product-offset, .mall-product-position-badge) {
  border: 1px solid #d5e2fb;
  background: #eef4ff;
  color: #2f66f6;
}

body.premium-agency[data-frontend-theme-style="high_end"] :is(.mall-toolbar, .filter-bar, .status-guide, .grid, .metric, .step, .order-card, .mall-content-item, .mall-content-rich, .mall-product-variant, .ticket-spec-option, .traveller-recognizer) {
  border-color: #e3e9f2;
  background: #ffffff;
  color: #15213d;
}

body.premium-agency[data-frontend-theme-style="high_end"] .mall-detail-top {
  border: 1px solid #e3e9f2;
  border-radius: 12px;
  padding: 16px;
  background: #ffffff;
  color: #15213d;
  box-shadow: 0 8px 24px rgba(31, 49, 82, .05);
}

body.premium-agency[data-frontend-theme-style="high_end"] .mall-detail-toolbar {
  min-height: 44px;
  justify-content: flex-end;
  margin: 0 0 12px;
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

body.premium-agency[data-frontend-theme-style="high_end"] .mall-detail-copy h3 { color: #15213d; font-size: 26px; }
body.premium-agency[data-frontend-theme-style="high_end"] :is(.mall-detail-copy p, .mall-detail-intro, .mall-content-rich, .mall-product-intro, .mall-product-detail-list div, .mall-location-detail-list div) {
  color: #5d6d83;
}

body.premium-agency[data-frontend-theme-style="high_end"] .mall-content-section {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin: 12px 0;
  border: 1px solid #e3e9f2;
  border-radius: 10px;
  padding: 10px 12px;
  background: #ffffff;
}

body.premium-agency[data-frontend-theme-style="high_end"] .mall-content-section > h3 {
  margin: 0;
  color: #263550;
  font-size: 15px;
}

body.premium-agency[data-frontend-theme-style="high_end"] .mall-content-section .mall-content-grid { grid-template-columns: 1fr; }
body.premium-agency[data-frontend-theme-style="high_end"] .mall-content-section .mall-content-item {
  min-height: 0;
  border: 0;
  padding: 6px 8px;
  background: #f8fafd;
  box-shadow: none;
}

body.premium-agency[data-frontend-theme-style="high_end"] :is(.mall-product-title strong, .mall-product-family-head h4, .mall-position-product-main strong, .mall-content-item strong, .mall-location-detail-list b, .mall-product-detail-list b) {
  color: #15213d;
}

body.premium-agency[data-frontend-theme-style="high_end"] .mall-order-note {
  border-color: #bfe8cd;
  background: #f0fbf4;
  color: #237342;
}

body.premium-agency[data-frontend-theme-style="high_end"] #batch.batch-as-mall-order {
  padding: 0;
  background: transparent;
  box-shadow: none;
}

body.premium-agency[data-frontend-theme-style="high_end"] #batch.batch-as-mall-order > .panel-head,
body.premium-agency[data-frontend-theme-style="high_end"] #batch.batch-as-mall-order .mall-order-products-pane,
body.premium-agency[data-frontend-theme-style="high_end"] #batch.batch-as-mall-order .mall-order-side {
  border: 1px solid #e3e9f2;
  border-radius: 12px;
  background: #ffffff;
  color: #15213d;
  box-shadow: 0 8px 24px rgba(31, 49, 82, .05);
}

body.premium-agency[data-frontend-theme-style="high_end"] #batch.batch-as-mall-order .mall-order-layout {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 390px);
  gap: 16px;
}

body.premium-agency[data-frontend-theme-style="high_end"] #batch.batch-as-mall-order > .panel-head { padding: 16px 18px; }
body.premium-agency[data-frontend-theme-style="high_end"] #batch.batch-as-mall-order .mall-order-products-pane { padding: 18px; }
body.premium-agency[data-frontend-theme-style="high_end"] #batch.batch-as-mall-order .mall-order-side {
  padding: 18px;
  background: #ffffff;
  scrollbar-color: #b8c8dd #f2f5f9;
}

body.premium-agency[data-frontend-theme-style="high_end"] #batch.batch-as-mall-order .mall-order-side .grid {
  grid-template-columns: minmax(0, 1fr);
}

body.premium-agency[data-frontend-theme-style="high_end"] #batch.batch-as-mall-order .mall-order-side :is(.order-field-contact-name, .order-field-date, .order-field-contact-id, .order-field-contact-tel, .order-field-contact-email, .order-field-period, .contact-default-option) {
  grid-column: 1;
  grid-row: auto;
}

body.premium-agency[data-frontend-theme-style="high_end"] #batch.batch-as-mall-order .step {
  border-color: #e2e9f3;
  background: #f6f8fc;
}

body.premium-agency[data-frontend-theme-style="high_end"] #batch.batch-as-mall-order .step:first-child {
  border-color: #c9dafa;
  background: #eef4ff;
}

body.premium-agency[data-frontend-theme-style="high_end"] #batch.batch-as-mall-order .step:first-child .step-num { background: #2f66f6; }
body.premium-agency[data-frontend-theme-style="high_end"] #batch.batch-as-mall-order .step > div span,
body.premium-agency[data-frontend-theme-style="high_end"] #batch.batch-as-mall-order .metric span,
body.premium-agency[data-frontend-theme-style="high_end"] #batch.batch-as-mall-order .traveller-recognizer-status,
body.premium-agency[data-frontend-theme-style="high_end"] #batch.batch-as-mall-order .order-submit-brief span { color: #66758c; }

body.premium-agency[data-frontend-theme-style="high_end"] #batch.batch-as-mall-order :is(.metric, .traveller-recognizer) {
  border-color: #e3e9f2;
  background: #f8fafd;
  color: #15213d;
}

body.premium-agency[data-frontend-theme-style="high_end"] #batch.batch-as-mall-order :is(.metric strong, .unit-price-plain) { color: #15213d; }
body.premium-agency[data-frontend-theme-style="high_end"] :is(.mall-product-price, .unit-price-amount, #batch.batch-as-mall-order .unit-price-plain, #batch.batch-as-mall-order .order-submit-brief strong) { color: #2563eb; }

body.premium-agency[data-frontend-theme-style="high_end"] .mall-product-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 12px;
}

body.premium-agency[data-frontend-theme-style="high_end"] .mall-product-grid:has(> .mall-product-card:only-child) {
  grid-template-columns: minmax(0, 1fr);
}

body.premium-agency[data-frontend-theme-style="high_end"] .mall-product-grid:has(> .mall-product-card:only-child) > .mall-product-card {
  grid-template-columns: 180px minmax(0, 1fr);
  align-items: start;
  column-gap: 18px;
}

body.premium-agency[data-frontend-theme-style="high_end"] .mall-product-grid:has(> .mall-product-card:only-child) > .mall-product-card > .mall-product-image {
  grid-column: 1;
  grid-row: 1 / span 5;
  height: auto;
  min-height: 0;
  aspect-ratio: auto;
}

body.premium-agency[data-frontend-theme-style="high_end"] .mall-product-grid:has(> .mall-product-card:only-child) > .mall-product-card > :not(.mall-product-image):not(.mall-product-position-slot) {
  grid-column: 2;
}

body.premium-agency[data-frontend-theme-style="high_end"] .mall-product-grid:has(> .mall-product-card:only-child) > .mall-product-card > .mall-product-position-slot {
  grid-column: 1 / -1;
}

body.premium-agency[data-frontend-theme-style="high_end"] .mall-product-grid:has(> .mall-product-family-card:only-child) > .mall-product-family-card:has(> .mall-product-family-toggle[aria-expanded="true"]) {
  grid-template-columns: minmax(0, 1fr);
}

body.premium-agency[data-frontend-theme-style="high_end"] .mall-product-grid:has(> .mall-product-family-card:only-child) > .mall-product-family-card:has(> .mall-product-family-toggle[aria-expanded="true"]) > :not(.mall-product-position-slot) {
  grid-column: 1;
}

body.premium-agency[data-frontend-theme-style="high_end"] .mall-product-card {
  border-color: #e3e9f2;
  background: #ffffff;
  box-shadow: 0 3px 12px rgba(31, 49, 82, .05);
}

body.premium-agency[data-frontend-theme-style="high_end"] .mall-product-card:hover {
  border-color: #b5c7e2;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(31, 49, 82, .09);
}

body.premium-agency[data-frontend-theme-style="high_end"] .mall-product-card.selected {
  border-color: #2f66f6;
  background: #f5f8ff;
  box-shadow: 0 0 0 1px #2f66f6, 0 10px 24px rgba(47, 102, 246, .1);
}

body.premium-agency[data-frontend-theme-style="high_end"] :is(.mall-product-family-toggle, .mall-product-variant) {
  border-color: #e3e9f2;
  background: #f8fafd;
  color: #263550;
  box-shadow: none;
}

body.premium-agency[data-frontend-theme-style="high_end"] :is(.mall-product-family-toggle:hover, .mall-product-family-toggle[aria-expanded="true"], .mall-product-variant.selected) {
  border-color: #b9cbea;
  background: #eef4ff;
  color: #1f55dc;
  box-shadow: inset 0 0 0 1px rgba(47, 102, 246, .35);
}

body.premium-agency[data-frontend-theme-style="high_end"] .mall-product-image {
  border-color: #dfe6ef;
  background: #edf1f6;
}

body.premium-agency[data-frontend-theme-style="high_end"] .mall-product-image-main { outline-color: rgba(0, 0, 0, .1); }
body.premium-agency[data-frontend-theme-style="high_end"] .mall-order-mode-selector {
  border: 1px solid #dde6f2;
  background: #f8fafd;
  box-shadow: none;
}

body.premium-agency[data-frontend-theme-style="high_end"] .mall-order-mode-selector > legend {
  color: #263550;
  font-size: 14px;
  font-weight: 700;
}

body.premium-agency[data-frontend-theme-style="high_end"] .mall-order-mode-selector > legend small {
  color: #738197;
  font-size: 12px;
  font-weight: 400;
}

body.premium-agency[data-frontend-theme-style="high_end"] .mall-order-mode-option {
  background: #ffffff;
  color: #263550;
  box-shadow: inset 0 0 0 1px #dfe6f0;
}

body.premium-agency[data-frontend-theme-style="high_end"] .mall-order-mode-option:has(input:checked) {
  background: #eef4ff;
  box-shadow: inset 0 0 0 2px #2f66f6;
}

body.premium-agency[data-frontend-theme-style="high_end"] .mall-order-mode-option small { color: #66758c; }
body.premium-agency[data-frontend-theme-style="high_end"] .quantity-stepper {
  border-color: #d8e1ec;
  background: #ffffff;
}

body.premium-agency[data-frontend-theme-style="high_end"] .quantity-stepper button {
  background: #f1f5fb;
  color: #2f66f6;
  box-shadow: none;
}

body.premium-agency[data-frontend-theme-style="high_end"] .quantity-stepper input {
  border-color: #d8e1ec;
  background: #ffffff;
  color: #15213d;
}

body.premium-agency[data-frontend-theme-style="high_end"] #batch.batch-as-mall-order .order-actions {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #ffffff 24%, #ffffff);
  box-shadow: none;
}

body.premium-agency[data-frontend-theme-style="high_end"] :is(.mall-search-form button, .mall-order-side button:not(.ghost), .order-actions button:not(.ghost), .quick-order-actions button:not(.ghost)) {
  border: 0;
  background: #2f66f6;
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(47, 102, 246, .18);
}

body.premium-agency[data-frontend-theme-style="high_end"] :is(.mall-search-form button, .mall-order-side button:not(.ghost), .order-actions button:not(.ghost), .quick-order-actions button:not(.ghost)):hover:not(:disabled) {
  background: #2558dd;
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(47, 102, 246, .24);
}

body.premium-agency[data-frontend-theme-style="high_end"] .quick-order-card {
  border: 1px solid #dce6f4;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(31, 49, 82, .06);
}

body.premium-agency[data-frontend-theme-style="high_end"] .quick-order-title h2 { color: #15213d; }
body.premium-agency[data-frontend-theme-style="high_end"] .quick-order-title p { color: #66758c; }
body.premium-agency[data-frontend-theme-style="high_end"] .quick-order-result { background: #f8fafd; }

body.premium-agency[data-frontend-theme-style="high_end"] .modal {
  border: 1px solid #e0e7f0;
  border-radius: 12px;
  background: #ffffff;
  color: #15213d;
  box-shadow: 0 28px 80px rgba(22, 38, 68, .22);
}

body.premium-agency[data-frontend-theme-style="high_end"] :is(.modal-head, .modal-actions, #orderDetailModal .modal-head, #orderDetailModal .modal-actions) {
  border-color: #e6ebf3;
  background: #f8fafd;
}

body.premium-agency[data-frontend-theme-style="high_end"] .modal p { color: #66758c; }
body.premium-agency[data-frontend-theme-style="high_end"] #orderDetailModal #agencyOrderDetail {
  color: #35435d;
  scrollbar-color: #b7c6da #f1f4f8;
}

body.premium-agency[data-frontend-theme-style="high_end"] #orderDetailModal :is(.confirm-item, .booking-confirmation-agency-panel, .booking-confirmation-item, .email-record-detail-item, .invoice-detail-card, .product-traveller-group, .verification-card, .detail-refund-card, .detail-refund-meta > div, .detail-refund-component, .detail-status-latest) {
  border-color: #e3e9f2;
  background: #ffffff;
  color: #15213d;
  box-shadow: 0 4px 14px rgba(31, 49, 82, .05);
}

@media (max-width: 1100px) {
  body.premium-agency[data-frontend-theme-style="high_end"] #batch.batch-as-mall-order .mall-order-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "products" "side";
  }
  body.premium-agency[data-frontend-theme-style="high_end"] #batch.batch-as-mall-order .mall-order-side {
    position: static;
    max-height: none;
    overflow: visible;
  }
}

@media (max-width: 1200px) {
  body.premium-agency[data-frontend-theme-style="high_end"] .userbar > span { display: none; }
  body.premium-agency[data-frontend-theme-style="high_end"] .agency-featured-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  body.premium-agency[data-frontend-theme-style="high_end"] .topbar {
    position: sticky;
    padding: 0 14px;
    background: #061b3c;
  }
  body.premium-agency[data-frontend-theme-style="high_end"] .brand { width: auto; flex-basis: auto; }
  body.premium-agency[data-frontend-theme-style="high_end"] .userbar { color: #d1def2; }
  body.premium-agency[data-frontend-theme-style="high_end"] .userbar strong { color: #ffffff; }
  body.premium-agency[data-frontend-theme-style="high_end"] .userbar button.secondary { border-color: rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .08); color: #ffffff; }
  body.premium-agency[data-frontend-theme-style="high_end"] .agency-top-strip {
    border-bottom: 1px solid #e3e9f2;
    background: #ffffff;
  }
  body.premium-agency[data-frontend-theme-style="high_end"] .agency-top-strip .tab { color: #52627a; }
  body.premium-agency[data-frontend-theme-style="high_end"] .agency-top-strip .tab.active { background: #2f66f6; color: #ffffff; }
  body.premium-agency[data-frontend-theme-style="high_end"] .layout { width: calc(100% - 24px); margin: 16px auto 32px; padding-top: 0; }
  body.premium-agency[data-frontend-theme-style="high_end"] .agency-home-shell { grid-template-columns: 1fr; }
  body.premium-agency[data-frontend-theme-style="high_end"] .agency-featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  body.premium-agency[data-frontend-theme-style="high_end"] .topbar-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
  }
  body.premium-agency[data-frontend-theme-style="high_end"] .userbar {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
    gap: 8px;
  }
  body.premium-agency[data-frontend-theme-style="high_end"] .userbar #balanceText,
  body.premium-agency[data-frontend-theme-style="high_end"] .userbar .language-switch { grid-column: 1 / -1; }
  body.premium-agency[data-frontend-theme-style="high_end"] .userbar .language-switch { width: 100%; justify-content: flex-start; }
  body.premium-agency[data-frontend-theme-style="high_end"] .userbar .language-switch select { min-width: 0; flex: 1; }
  body.premium-agency[data-frontend-theme-style="high_end"] .userbar button.secondary {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    height: auto;
    white-space: normal;
  }
  body.premium-agency[data-frontend-theme-style="high_end"] .agency-hero { min-height: 390px; padding: 24px 18px; }
  body.premium-agency[data-frontend-theme-style="high_end"] .agency-hero h2 { font-size: 36px; }
  body.premium-agency[data-frontend-theme-style="high_end"] .agency-hero .mall-search-form {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }
  body.premium-agency[data-frontend-theme-style="high_end"] .agency-hero .mall-search-form button { min-width: 64px; }
  body.premium-agency[data-frontend-theme-style="high_end"] .agency-hero .mall-location-filter {
    width: 100%;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
  }
  body.premium-agency[data-frontend-theme-style="high_end"] :is(.agency-featured-grid, .mall-grid, .mall-product-grid) { grid-template-columns: 1fr; }
  body.premium-agency[data-frontend-theme-style="high_end"] .mall-product-grid:has(> .mall-product-card:only-child) > .mall-product-card { grid-template-columns: 1fr; }
  body.premium-agency[data-frontend-theme-style="high_end"] .mall-product-grid:has(> .mall-product-card:only-child) > .mall-product-card > .mall-product-image,
  body.premium-agency[data-frontend-theme-style="high_end"] .mall-product-grid:has(> .mall-product-card:only-child) > .mall-product-card > :not(.mall-product-position-slot) { grid-column: 1; grid-row: auto; }
}

/* Unified enterprise palette and readability layer.
   This intentionally loads last so legacy modules cannot reintroduce mixed
   yellow, green and dark-blue surfaces or low-contrast micro typography. */
.premium-admin,
.premium-admin[data-theme-background],
.premium-admin[data-theme-text],
.premium-admin[data-theme-backdrop] {
  --saas-primary: var(--color-primary);
  --saas-primary-alt: var(--color-primary);
  --saas-primary-hover: var(--color-primary-hover);
  --saas-success: var(--color-success);
  --saas-warning: var(--color-warning);
  --saas-danger: var(--color-danger);
  --saas-background: var(--color-app-background);
  --saas-sidebar: var(--color-nav-background);
  --saas-card: var(--color-surface-subtle);
  --saas-card-raised: var(--color-surface);
  --saas-card-hover: var(--color-surface-hover);
  --saas-input: var(--color-surface);
  --saas-border: var(--color-border);
  --saas-text-primary: var(--color-text-primary);
  --saas-text-secondary: var(--color-text-secondary);
  --saas-text-description: var(--color-text-muted);
  --saas-text-disabled: var(--color-text-disabled);
  --saas-card-shadow: var(--shadow-surface);
  --premium-bg: var(--color-app-background);
  --premium-bg-soft: var(--color-surface-subtle);
  --premium-surface: var(--color-surface);
  --premium-surface-strong: var(--color-surface);
  --premium-surface-hover: var(--color-surface-hover);
  --premium-border: var(--color-border);
  --premium-border-strong: var(--color-primary);
  --premium-text: var(--color-text-primary);
  --premium-text-secondary: var(--color-text-secondary);
  --premium-muted: var(--color-text-muted);
  --premium-disabled: var(--color-text-disabled);
  --premium-cyan: var(--color-primary);
  --premium-teal: var(--color-primary-hover);
  --premium-gold: var(--color-primary);
  --premium-danger: var(--color-danger);
  --premium-success: var(--color-success);
  --premium-shadow: var(--shadow-surface);
  --premium-backdrop: linear-gradient(180deg, var(--color-app-background), #eef3f8);
  --premium-pattern:
    linear-gradient(rgba(15, 39, 71, .018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 39, 71, .018) 1px, transparent 1px);
  --ink: var(--color-text-primary);
  --muted: var(--color-text-muted);
  --line: var(--color-border);
  --page: var(--color-app-background);
  --nav: var(--color-nav-background);
  --nav-soft: var(--color-nav-hover);
  --primary: var(--color-primary);
  --primary-dark: var(--color-primary-hover);
  --panel: var(--color-surface);
  --soft: var(--color-surface-subtle);
  --shadow: var(--shadow-surface);
  --admin-surface-inset: var(--color-surface-subtle);
  --admin-surface-raised: var(--color-surface);
  --admin-surface-hover: var(--color-surface-hover);
  --admin-surface-selected: var(--color-primary-soft);
  --admin-outline: var(--color-border);
  --admin-outline-strong: var(--color-primary);
  background: var(--premium-backdrop);
  color: var(--color-text-primary);
  color-scheme: light;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.55;
}

.premium-admin .sidebar {
  --saas-card-raised: var(--color-nav-hover);
  --saas-border: rgba(255, 255, 255, .1);
  --saas-text-primary: var(--color-nav-text);
  --saas-text-secondary: #d7e3f2;
  --saas-text-description: #aebfd3;
  color: var(--color-nav-text);
  box-shadow: 8px 0 24px rgba(15, 39, 71, .12);
}

.premium-admin .sidebar .tab:hover {
  background: rgba(255, 255, 255, .08);
  color: var(--color-nav-text);
}

.premium-admin .sidebar .tab.active {
  background: var(--color-primary);
  color: var(--color-on-primary);
  box-shadow: inset 4px 0 0 #93c5fd, 0 8px 20px rgba(3, 12, 28, .2);
}

.premium-admin .pagebar {
  border-bottom-color: var(--color-border);
}

.premium-admin .pagebar :is(h1, p),
.premium-admin :is(.panel-head h2, .panel-head h3, .dashboard-block h3) {
  color: var(--color-text-primary);
}

.premium-admin :is(.panel, .dashboard-block, .kpi, .ops-card, .settings-section, .appearance-choice, .detail-item, .price-layer, button.settings-entry) {
  border-color: var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-primary);
  box-shadow: var(--shadow-surface);
}

.premium-admin :is(.settings-hub-intro, .smtp-settings-status, .platform-logo-panel, .employee-empty, .product-batch-toolbar, .order-rule-panel, .refund-rule-panel, .advance-booking-rule, .date-change-rule, .position-editor-head, .scenic-sync-panel, .ttc-config-advanced, .filter-bar, .booking-action-panel, .booking-confirmation-panel, .booking-reason-panel, .booking-confirmation-upload, .agency-price-empty, .product-visibility-editor, .refund-products, .inventory-price-form, .inventory-calendar-toolbar, .inventory-calendar-head, .inventory-side, .agency-group-panel, .price-main-filters, .multi-picker-toolbar, .orders-filter, .mall-admin-list-panel, .mall-admin-step-intro, .mall-product-setup-section, .mall-email-template-panel, .mall-scenic-preview, .mall-media-grid, .mall-admin-location-group, .mall-location-fields, .mall-purchase-notice-editor, .rich-text-toolbar, .mall-product-toolbar) {
  border-color: var(--color-border);
  background: var(--color-surface-subtle);
  color: var(--color-text-secondary);
  box-shadow: inset 0 0 0 1px rgba(15, 39, 71, .015);
}

.premium-admin :is(button.settings-entry, .settings-section, .smtp-security-option, .employee-permission, .booking-mode-option, .product-editor-tab, .refund-tier-config, .refund-tier-row, .position-floor-editor, .position-item-editor, .booking-confirmation-value, .booking-attachment-item, .booking-history-row, .detail-item, .price-row, .product-price-summary div, .price-layer, .product-setup-step, .product-visibility-summary, .product-visibility-mode-card, .refund-product-row, .inventory-price-preview, .inventory-group-row, .agency-group-row, .multi-picker-option, .detail-status-latest, .product-traveller-group, .product-position-summary, .recharge-success-item, .mall-admin-list-stat, .mall-admin-list-row, .mall-admin-list-empty, .mall-admin-step, .mall-admin-stage, .mall-admin-completion-item, .mall-email-send-toggle, .mall-email-mode-option, .mall-email-template-card, .mall-media-card, .rich-text-editor, .mall-product-row) {
  border-color: var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-primary);
  box-shadow: var(--shadow-surface);
}

.premium-admin :is(button.settings-entry, .employee-permission, .product-editor-tab, .booking-mode-option, .multi-picker-option, .mall-admin-step, .mall-admin-list-row, .mall-product-row):hover {
  border-color: #93b4ec;
  background: var(--color-surface-hover);
  color: var(--color-text-primary);
  box-shadow: var(--shadow-surface-hover);
}

.premium-admin button.mall-admin-list-stat {
  min-height: 44px;
  border: 0;
  background: var(--color-surface);
  color: var(--color-text-primary);
  box-shadow: var(--shadow-surface);
}

.premium-admin button.mall-admin-list-stat:hover {
  border-color: #93b4ec;
  background: var(--color-surface-hover);
  color: var(--color-text-primary);
  box-shadow: var(--shadow-surface-hover);
}

.premium-admin button.mall-admin-list-stat[aria-pressed="true"] {
  background: var(--color-primary-soft);
  color: var(--color-text-primary);
  box-shadow: inset 0 -3px 0 var(--color-primary), var(--shadow-surface);
}

.premium-admin :is(button.settings-entry[aria-expanded="true"], .product-editor-tab.active, .product-setup-step.active, .inventory-day.selected, .multi-picker-option:has(input:checked), .mall-admin-list-row.active, .mall-admin-step.active, .mall-product-row.is-selected) {
  border-color: var(--color-primary);
  background: var(--color-primary-soft);
  color: var(--color-text-primary);
  box-shadow: inset 3px 0 0 var(--color-primary), var(--shadow-surface);
}

.premium-admin :is(.product-scenic-toggle, .product-scenic-options, .multi-picker, .inventory-calendar, .detail-panel, .order-catalog-suggestions, .order-catalog-suggestion, .order-table-wrap, .table-wrap, .quantity-stepper, .modal, .modal-head, .modal-actions, .product-editor-tabs) {
  border-color: var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-primary);
}

.premium-admin :is(.detail-panel h3, .product-traveller-group-head, .order-table th, .rich-text-toolbar) {
  border-color: var(--color-border);
  background: var(--color-surface-subtle);
  color: var(--color-text-secondary);
}

.premium-admin .order-table tbody tr:nth-child(even) td,
.premium-admin .product-table tr.is-partially-selected td { background: #f8fafc; }
.premium-admin .order-table tbody tr:hover td,
.premium-admin .product-table tr:hover td { background: var(--color-primary-soft); }
.premium-admin .product-table tr.is-selected td { background: #e8f1ff; }

.premium-admin .inventory-day {
  border-color: var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-primary);
}
.premium-admin .inventory-day:hover { background: var(--color-surface-hover); }
.premium-admin .inventory-day.outside { background: var(--color-surface-subtle); color: var(--color-text-disabled); }
.premium-admin .inventory-calendar-head span { color: var(--color-text-secondary); }

.premium-admin .quantity-stepper input { border-color: var(--color-border); background: var(--color-surface); color: var(--color-text-primary); }
.premium-admin .quantity-stepper button { background: var(--color-primary-soft); color: var(--color-primary); box-shadow: none; }
.premium-admin .quantity-stepper button:hover { background: #dbeafe; }

.premium-admin :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
  min-height: 44px;
  border-color: var(--color-border-strong);
  background: var(--color-surface);
  color: var(--color-text-primary);
  font-size: 14px;
  font-weight: 400;
}

.premium-admin :is(input, textarea)::placeholder { color: var(--color-text-muted); opacity: 1; }
.premium-admin :is(input, select, textarea):focus {
  border-color: var(--color-primary);
  outline: 3px solid rgba(37, 99, 235, .16);
  outline-offset: 1px;
}

.premium-admin :where(button:not(.tab):not(.ghost):not(.secondary):not(.mall-admin-item):not(.settings-entry)) {
  background: var(--color-primary);
  color: var(--color-on-primary);
}
.premium-admin :where(button:not(.tab):not(.ghost):not(.secondary):not(.mall-admin-item):not(.settings-entry):hover:not(:disabled)) { background: var(--color-primary-hover); }
.premium-admin button.ghost { background: var(--color-surface-hover); color: var(--color-text-primary); }
.premium-admin button.secondary { background: #e2e8f0; color: var(--color-text-primary); }
.premium-admin button:disabled { background: #e2e8f0; color: var(--color-text-disabled); cursor: not-allowed; }

/* Compound navigation buttons keep their own surfaces and readable supporting copy. */
.premium-admin .mall-admin-step {
  min-height: 76px;
  height: auto;
  background: var(--color-surface);
  color: var(--color-text-primary);
}
.premium-admin .mall-admin-step:hover { background: var(--color-surface-hover); }
.premium-admin .mall-admin-step.active {
  background: var(--color-primary-soft);
  color: var(--color-text-primary);
}
.premium-admin .mall-admin-step-copy strong { color: var(--color-text-primary); }
.premium-admin .mall-admin-step-copy span {
  color: var(--color-text-secondary);
  font-size: 13px;
  line-height: 1.45;
}

.premium-admin :is(.platform-logo-preview, .product-image-preview, .mall-scenic-preview img, .rich-text-surface img) {
  border-color: var(--color-border);
  background: var(--color-surface-subtle);
  color: var(--color-text-muted);
  outline-color: rgba(0, 0, 0, .1);
}

.premium-admin .modal-mask { background: rgba(15, 23, 42, .56); backdrop-filter: blur(6px); }
.premium-admin .modal { box-shadow: 0 28px 80px rgba(15, 39, 71, .22); }
.premium-admin :is(.modal-head, .modal-actions) { box-shadow: none; }
.premium-admin .mall-admin-wizard-actions { background: linear-gradient(180deg, rgba(255, 255, 255, 0), #ffffff 28%, #ffffff); }
.premium-admin .mall-admin-thumb { background: var(--color-primary-soft); color: var(--color-primary); }
.premium-admin .mall-admin-item-title { color: var(--color-text-primary); }
.premium-admin .mall-admin-item-meta { color: var(--color-text-muted); }
.premium-admin .mall-admin-thumb img { outline-color: rgba(0, 0, 0, .1); }
.premium-admin .mall-admin-search-clear { color: var(--color-text-muted); }
.premium-admin .mall-admin-search-clear:hover { background: var(--color-surface-hover); color: var(--color-text-primary); }
.premium-admin .mall-admin-step-index { background: #e2e8f0; color: var(--color-text-secondary); }
.premium-admin .mall-admin-step.active .mall-admin-step-index { background: var(--color-primary); color: var(--color-on-primary); }
.premium-admin .mall-admin-list-row.active .mall-admin-item-title { color: var(--color-text-primary); }

.premium-admin :is(.form-error, .notice.danger, .product-editor-tab.has-error, .booking-attention.urgent, .status-danger, .status-danger-soft) {
  border-color: #fecaca;
  background: var(--color-danger-soft);
  color: var(--color-danger);
}
.premium-admin :is(.notice.success, .recharge-success-head, .mall-admin-completion-item.done, .mall-admin-step.completed:not(.active)) {
  border-color: #a7f3d0;
  background: var(--color-success-soft);
  color: var(--color-success);
}
.premium-admin :is(.remote-spec-constraint, .booking-attention, .mall-admin-completion-item.todo, .mall-admin-pill.warn, .status-warn) {
  border-color: #fde68a;
  background: var(--color-warning-soft);
  color: var(--color-warning);
}
.premium-admin .status-refunded { background: #f5f3ff; color: #6d28d9; }

.premium-admin :is(.regular-price-form input[readonly], .inventory-side input[readonly], .advance-booking-sentence :disabled, .date-change-dependent :disabled) {
  border-color: var(--color-border);
  background: #eef2f7;
  color: var(--color-text-muted);
}

.premium-admin :is(h1, h2, h3, h4),
body.premium-agency[data-frontend-theme-style="high_end"] :is(h1, h2, h3, h4) { text-wrap: balance; }

.premium-admin :is(p, li, small, .muted, .field-help),
body.premium-agency[data-frontend-theme-style="high_end"] :is(p, li, small, .muted, .field-help) {
  line-height: 1.6;
  text-wrap: pretty;
}

.premium-admin :is(small, .field-help, .pagebar p, .admin-hero-kpis .kpi span, .dashboard-health-panel .health-item span, .dashboard-api-summary span, .dashboard-api-summary small, .dashboard-order-copy strong, .dashboard-order-copy small, .dashboard-order-side strong, .dashboard-order-side small, .dashboard-empty-compact, .agency-balance-row span),
body.premium-agency[data-frontend-theme-style="high_end"] :is(small, .agency-section-head > small, .agency-benefit-strip small, .agency-account-balance small, .agency-account-metrics span, .agency-home-order-copy small, .agency-home-order-state small) {
  font-size: 12px;
}

.premium-admin :is(label, th, button, input, select, textarea) { font-size: 14px; }
.premium-admin :is(.kpi strong, .inventory-price-preview strong, .order-table .order-count, [class*="price"], [class*="amount"]),
body.premium-agency[data-frontend-theme-style="high_end"] :is(.metric strong, .unit-price-plain, .order-submit-brief strong, [class*="price"], [class*="amount"]) {
  font-variant-numeric: tabular-nums;
}

body.premium-agency[data-frontend-theme-style="high_end"] {
  --premium-bg: var(--color-app-background);
  --premium-bg-soft: var(--color-surface-subtle);
  --premium-surface: var(--color-surface);
  --premium-surface-strong: var(--color-surface);
  --premium-surface-hover: var(--color-surface-hover);
  --premium-border: var(--color-border);
  --premium-border-strong: var(--color-primary);
  --premium-text: var(--color-text-primary);
  --premium-text-secondary: var(--color-text-secondary);
  --premium-muted: var(--color-text-muted);
  --premium-disabled: var(--color-text-disabled);
  --premium-cyan: var(--color-primary);
  --premium-teal: var(--color-primary-hover);
  --premium-gold: var(--color-primary);
  --agency-copy: var(--color-text-primary);
  --agency-copy-muted: var(--color-text-muted);
  --agency-surface-inset: var(--color-surface-subtle);
  --agency-surface-raised: var(--color-surface);
  --agency-surface-hover: var(--color-surface-hover);
  --agency-outline: var(--color-border);
  --agency-outline-strong: var(--color-primary);
  --storefront-accent: var(--color-primary);
  --storefront-price: var(--color-primary-hover);
  --storefront-card-shadow: var(--shadow-surface);
  background: var(--color-app-background);
  color: var(--color-text-primary);
  font-size: 15px;
  line-height: 1.55;
}

body.premium-agency[data-frontend-theme-style="high_end"] :is(button, input, select, textarea) { font-size: 14px; }
body.premium-agency[data-frontend-theme-style="high_end"] :is(.agency-featured-section, .agency-benefit-strip, .agency-mall-directory, .agency-rail-card, .mall-card, .mall-product-card, .mall-order-side, .quick-order-card, .modal) {
  border-color: var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-primary);
  box-shadow: var(--shadow-surface);
}

body.premium-agency[data-frontend-theme-style="high_end"] :is(.agency-feature-card, .mall-card, .mall-product-card):hover {
  border-color: #93b4ec;
  background: var(--color-surface);
  box-shadow: var(--shadow-surface-hover);
}

body.premium-agency[data-frontend-theme-style="high_end"] :is(.agency-top-strip .tab.active, .mall-search-form button, .mall-order-side button:not(.ghost), .order-actions button:not(.ghost), .quick-order-actions button:not(.ghost)) {
  background: var(--color-primary);
  color: var(--color-on-primary);
  box-shadow: 0 8px 20px rgba(37, 99, 235, .2);
}

body.premium-agency[data-frontend-theme-style="high_end"] :is(.agency-top-strip .tab.active, .mall-search-form button, .mall-order-side button:not(.ghost), .order-actions button:not(.ghost), .quick-order-actions button:not(.ghost)):hover:not(:disabled) {
  background: var(--color-primary-hover);
  color: var(--color-on-primary);
}

body.premium-agency[data-frontend-theme-style="high_end"] :is(.mall-content-tag, .badge, .mall-product-family-count, .mall-product-spec, .mall-product-offset, .mall-product-position-badge) {
  border-color: #bfdbfe;
  background: var(--color-primary-soft);
  color: var(--color-primary-active);
}

@media (max-width: 680px) {
  .premium-admin,
  body.premium-agency[data-frontend-theme-style="high_end"] { font-size: 16px; }
  .premium-admin :is(input, select, textarea),
  body.premium-agency[data-frontend-theme-style="high_end"] :is(input, select, textarea) { font-size: 16px; }
}

/* Agency scenic mall dark reference palette.
   This is intentionally scoped to the default agency storefront preset so the
   administrator portal and the optional nature/dark-chic presets keep their
   existing appearance. Layout and commerce behavior are unchanged. */
body.premium-agency[data-frontend-theme-style="high_end"] {
  --premium-bg: #06182b;
  --premium-bg-soft: #0a2036;
  --premium-surface: #0e2944;
  --premium-surface-strong: #12324f;
  --premium-surface-hover: #173b5b;
  --premium-border: rgba(151, 184, 219, .18);
  --premium-border-strong: rgba(48, 201, 214, .58);
  --premium-text: #f4f8ff;
  --premium-text-secondary: #c8d5e5;
  --premium-muted: #a9bad0;
  --premium-disabled: #71869e;
  --premium-cyan: #30c9d6;
  --premium-teal: #19aebc;
  --premium-gold: #f3c969;
  --agency-copy: #f4f8ff;
  --agency-copy-muted: #a9bad0;
  --agency-surface-inset: #0a2036;
  --agency-surface-raised: #12324f;
  --agency-surface-hover: #173b5b;
  --agency-outline: rgba(151, 184, 219, .18);
  --agency-outline-strong: rgba(48, 201, 214, .58);
  --storefront-accent: #30c9d6;
  --storefront-price: #f3c969;
  --storefront-card-shadow: 0 16px 38px rgba(0, 8, 22, .24);
  background: #06182b;
  color: #f4f8ff;
  color-scheme: dark;
}

body.premium-agency[data-frontend-theme-style="high_end"]::before,
body.premium-agency[data-frontend-theme-style="high_end"] .premium-motion-aurora { display: none; }

body.premium-agency[data-frontend-theme-style="high_end"] :is(p, li, small, .muted, .field-help) {
  color: #a9bad0;
}

body.premium-agency[data-frontend-theme-style="high_end"] :is(h1, h2, h3, h4, strong) { color: #f4f8ff; }
body.premium-agency[data-frontend-theme-style="high_end"] label { color: #c8d5e5; }

body.premium-agency[data-frontend-theme-style="high_end"] .topbar {
  border-bottom-color: rgba(151, 184, 219, .14);
  background: #041426;
  box-shadow: 0 12px 34px rgba(0, 7, 20, .3);
}

body.premium-agency[data-frontend-theme-style="high_end"] :is(.premium-brand-mark, .brand-logo) {
  border: 1px solid rgba(243, 201, 105, .24);
  background: #0e2944;
  color: #f3c969;
  box-shadow: 0 8px 22px rgba(0, 7, 20, .28);
}

body.premium-agency[data-frontend-theme-style="high_end"] .brand-copy small,
body.premium-agency[data-frontend-theme-style="high_end"] .userbar { color: #9fb2ca; }
body.premium-agency[data-frontend-theme-style="high_end"] .userbar strong { color: #f3c969; }

body.premium-agency[data-frontend-theme-style="high_end"] .userbar button.secondary,
body.premium-agency[data-frontend-theme-style="high_end"] button.ghost {
  border-color: rgba(151, 184, 219, .2);
  background: #102d49;
  color: #dbe6f3;
  box-shadow: none;
}

body.premium-agency[data-frontend-theme-style="high_end"] .userbar button.secondary:hover,
body.premium-agency[data-frontend-theme-style="high_end"] button.ghost:hover:not(:disabled) {
  border-color: rgba(48, 201, 214, .48);
  background: #173b5b;
  color: #ffffff;
}

@media (min-width: 961px) {
  body.premium-agency[data-frontend-theme-style="high_end"] .agency-top-strip {
    border-right: 1px solid rgba(151, 184, 219, .12);
    background: #05172a;
    box-shadow: 10px 0 28px rgba(0, 7, 20, .22);
  }

  body.premium-agency[data-frontend-theme-style="high_end"] .agency-top-strip::before { color: #7189a7; }
  body.premium-agency[data-frontend-theme-style="high_end"] .agency-top-strip .tab { color: #aebed2; }
  body.premium-agency[data-frontend-theme-style="high_end"] .agency-top-strip .tab i { color: #91a8c3; }
  body.premium-agency[data-frontend-theme-style="high_end"] .agency-top-strip .tab:hover {
    background: rgba(48, 201, 214, .1);
    color: #eef8ff;
  }
  body.premium-agency[data-frontend-theme-style="high_end"] .agency-top-strip .tab.active {
    background: #087883;
    color: #ffffff;
    box-shadow: inset 3px 0 0 #43d7df, 0 10px 24px rgba(4, 139, 151, .24);
  }
  body.premium-agency[data-frontend-theme-style="high_end"] .agency-top-strip .tab.active i { color: #ffffff; }
  body.premium-agency[data-frontend-theme-style="high_end"] .agency-announcement-ticker {
    border-color: rgba(151, 184, 219, .18);
    background: #0a233b;
    color: #b8c9dd;
  }
}

body.premium-agency[data-frontend-theme-style="high_end"] :is(.panel, .agency-home-section, .agency-rail-card, .agency-feature-card, .mall-card, .mall-product-card, .mall-order-side, .quick-order-card, .modal) {
  border-color: rgba(151, 184, 219, .18);
  background: #0e2944;
  color: #f4f8ff;
  box-shadow: 0 16px 38px rgba(0, 8, 22, .24);
}

body.premium-agency[data-frontend-theme-style="high_end"] :is(.agency-feature-card, .mall-card, .mall-product-card):hover,
body.premium-agency[data-frontend-theme-style="high_end"] :is(.mall-card, .mall-product-card):focus-visible {
  border-color: rgba(48, 201, 214, .52);
  background: #12324f;
  box-shadow: 0 0 0 1px rgba(48, 201, 214, .1), 0 20px 42px rgba(0, 8, 22, .32);
}

body.premium-agency[data-frontend-theme-style="high_end"] #mall,
body.premium-agency[data-frontend-theme-style="high_end"] #batch.batch-as-mall-order {
  background: transparent;
  box-shadow: none;
}

body.premium-agency[data-frontend-theme-style="high_end"] .agency-hero {
  box-shadow: 0 18px 42px rgba(0, 8, 22, .32);
}

body.premium-agency[data-frontend-theme-style="high_end"] .agency-hero .mall-toolbar {
  border-color: rgba(151, 184, 219, .2);
  background: rgba(8, 31, 52, .92);
  box-shadow: 0 12px 28px rgba(0, 8, 22, .26);
}

body.premium-agency[data-frontend-theme-style="high_end"] .agency-hero .mall-location-filter { color: #c8d5e5; }
body.premium-agency[data-frontend-theme-style="high_end"] :is(input, select, textarea),
body.premium-agency[data-frontend-theme-style="high_end"] .agency-hero :is(input, select) {
  border-color: rgba(151, 184, 219, .2);
  background: #0a2138;
  color: #f4f8ff;
}

body.premium-agency[data-frontend-theme-style="high_end"] :is(input, textarea)::placeholder { color: #8398b1; }
body.premium-agency[data-frontend-theme-style="high_end"] :is(input, select, textarea):focus {
  border-color: #30c9d6;
  box-shadow: 0 0 0 3px rgba(48, 201, 214, .15);
}

body.premium-agency[data-frontend-theme-style="high_end"] button {
  background: #16879a;
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(4, 92, 111, .24);
}

body.premium-agency[data-frontend-theme-style="high_end"] button:hover:not(:disabled) {
  background: #1c98aa;
  color: #ffffff;
}

body.premium-agency[data-frontend-theme-style="high_end"] :is(.mall-search-form button, .mall-order-side button:not(.ghost), .order-actions button:not(.ghost), .quick-order-actions button:not(.ghost)) {
  border: 0;
  background: #f3c969;
  color: #182338;
  box-shadow: 0 10px 24px rgba(196, 145, 42, .24);
}

body.premium-agency[data-frontend-theme-style="high_end"] :is(.mall-search-form button, .mall-order-side button:not(.ghost), .order-actions button:not(.ghost), .quick-order-actions button:not(.ghost)):hover:not(:disabled) {
  background: #ffd982;
  color: #111c30;
  box-shadow: 0 12px 28px rgba(196, 145, 42, .3);
}

body.premium-agency[data-frontend-theme-style="high_end"] button:disabled {
  border-color: transparent;
  background: #18344f;
  color: #71869e;
  box-shadow: none;
}

body.premium-agency[data-frontend-theme-style="high_end"] :is(.agency-featured-section, .agency-benefit-strip, .agency-mall-directory) {
  border-color: rgba(151, 184, 219, .16);
  background: #0c2741;
  box-shadow: 0 14px 34px rgba(0, 8, 22, .2);
}

body.premium-agency[data-frontend-theme-style="high_end"] :is(.agency-section-head > div > span, .agency-rail-head span) { color: #43d7df; }
body.premium-agency[data-frontend-theme-style="high_end"] :is(.agency-section-head h3, .agency-rail-head h3, .agency-feature-copy h4) { color: #f4f8ff; }
body.premium-agency[data-frontend-theme-style="high_end"] :is(.agency-section-head > small, .agency-feature-copy > small) { color: #9dafc4; }
body.premium-agency[data-frontend-theme-style="high_end"] .agency-feature-copy > div strong { color: #f3c969; }
body.premium-agency[data-frontend-theme-style="high_end"] .agency-feature-copy > div span { border-color: rgba(48, 201, 214, .28); color: #61dce4; }
body.premium-agency[data-frontend-theme-style="high_end"] .agency-benefit-strip > div { border-right-color: rgba(151, 184, 219, .12); }
body.premium-agency[data-frontend-theme-style="high_end"] .agency-benefit-strip i { background: rgba(48, 201, 214, .1); color: #43d7df; }
body.premium-agency[data-frontend-theme-style="high_end"] .agency-benefit-strip strong { color: #eaf3ff; }
body.premium-agency[data-frontend-theme-style="high_end"] .agency-benefit-strip small { color: #93a7bf; }

body.premium-agency[data-frontend-theme-style="high_end"] .agency-account-balance,
body.premium-agency[data-frontend-theme-style="high_end"] .agency-account-metrics > div,
body.premium-agency[data-frontend-theme-style="high_end"] .agency-home-order {
  border-color: rgba(151, 184, 219, .14);
  background: #0a2138;
}

body.premium-agency[data-frontend-theme-style="high_end"] .agency-account-balance span,
body.premium-agency[data-frontend-theme-style="high_end"] .agency-account-balance small,
body.premium-agency[data-frontend-theme-style="high_end"] .agency-account-metrics span,
body.premium-agency[data-frontend-theme-style="high_end"] .agency-home-order-copy small { color: #9dafc4; }
body.premium-agency[data-frontend-theme-style="high_end"] :is(.agency-account-balance strong, .agency-account-metrics strong, .agency-home-order-copy strong) { color: #f4f8ff; }
body.premium-agency[data-frontend-theme-style="high_end"] .agency-home-order-state strong { color: #43d7df; }

body.premium-agency[data-frontend-theme-style="high_end"] .mall-result-summary { color: #9dafc4; }
body.premium-agency[data-frontend-theme-style="high_end"] .mall-result-summary strong { color: #f3c969; }
body.premium-agency[data-frontend-theme-style="high_end"] .mall-card { background: #0e2944; }
body.premium-agency[data-frontend-theme-style="high_end"] .mall-card-body h3 { color: #f4f8ff; }
body.premium-agency[data-frontend-theme-style="high_end"] .mall-card-body p { color: #a9bad0; }
body.premium-agency[data-frontend-theme-style="high_end"] .mall-card-foot { border-top-color: rgba(151, 184, 219, .12); color: #93a7bf; }

body.premium-agency[data-frontend-theme-style="high_end"] :is(.mall-content-tag, .badge, .mall-product-family-count, .mall-product-spec, .mall-product-offset, .mall-product-position-badge) {
  border-color: rgba(48, 201, 214, .24);
  background: rgba(48, 201, 214, .09);
  color: #61dce4;
}

body.premium-agency[data-frontend-theme-style="high_end"] :is(.mall-toolbar, .filter-bar, .status-guide, .grid, .metric, .step, .order-card, .mall-content-item, .mall-content-rich, .mall-product-variant, .ticket-spec-option, .traveller-recognizer) {
  border-color: rgba(151, 184, 219, .16);
  background: #0a2138;
  color: #f4f8ff;
}

body.premium-agency[data-frontend-theme-style="high_end"] .mall-detail-top,
body.premium-agency[data-frontend-theme-style="high_end"] .mall-content-section {
  border-color: rgba(151, 184, 219, .16);
  background: #0e2944;
  color: #f4f8ff;
  box-shadow: 0 14px 34px rgba(0, 8, 22, .2);
}

body.premium-agency[data-frontend-theme-style="high_end"] .mall-detail-copy h3,
body.premium-agency[data-frontend-theme-style="high_end"] .mall-content-section > h3,
body.premium-agency[data-frontend-theme-style="high_end"] :is(.mall-product-title strong, .mall-product-family-head h4, .mall-position-product-main strong, .mall-content-item strong, .mall-location-detail-list b, .mall-product-detail-list b) { color: #f4f8ff; }

body.premium-agency[data-frontend-theme-style="high_end"] :is(.mall-detail-copy p, .mall-detail-intro, .mall-content-rich, .mall-product-intro, .mall-product-detail-list div, .mall-location-detail-list div) { color: #a9bad0; }
body.premium-agency[data-frontend-theme-style="high_end"] .mall-content-section .mall-content-item { background: #0a2138; }

body.premium-agency[data-frontend-theme-style="high_end"] .mall-order-note {
  border-color: rgba(52, 211, 153, .3);
  background: rgba(18, 110, 82, .22);
  color: #85e6bf;
}

body.premium-agency[data-frontend-theme-style="high_end"] #batch.batch-as-mall-order > .panel-head,
body.premium-agency[data-frontend-theme-style="high_end"] #batch.batch-as-mall-order .mall-order-products-pane,
body.premium-agency[data-frontend-theme-style="high_end"] #batch.batch-as-mall-order .mall-order-side {
  border-color: rgba(151, 184, 219, .16);
  background: #0e2944;
  color: #f4f8ff;
  box-shadow: 0 16px 38px rgba(0, 8, 22, .24);
}

body.premium-agency[data-frontend-theme-style="high_end"] #batch.batch-as-mall-order .step,
body.premium-agency[data-frontend-theme-style="high_end"] #batch.batch-as-mall-order :is(.metric, .traveller-recognizer) {
  border-color: rgba(151, 184, 219, .15);
  background: #0a2138;
  color: #f4f8ff;
}

body.premium-agency[data-frontend-theme-style="high_end"] #batch.batch-as-mall-order .step:first-child {
  border-color: rgba(48, 201, 214, .36);
  background: rgba(48, 201, 214, .08);
}

body.premium-agency[data-frontend-theme-style="high_end"] #batch.batch-as-mall-order .step:first-child .step-num { background: #16879a; }
body.premium-agency[data-frontend-theme-style="high_end"] #batch.batch-as-mall-order :is(.step > div span, .metric span, .traveller-recognizer-status, .order-submit-brief span) { color: #9dafc4; }
body.premium-agency[data-frontend-theme-style="high_end"] #batch.batch-as-mall-order :is(.metric strong, .unit-price-plain),
body.premium-agency[data-frontend-theme-style="high_end"] :is(.mall-product-price, .unit-price-amount, #batch.batch-as-mall-order .unit-price-plain, #batch.batch-as-mall-order .order-submit-brief strong) { color: #f3c969; }

body.premium-agency[data-frontend-theme-style="high_end"] .mall-product-card {
  border-color: rgba(151, 184, 219, .16);
  background: #0e2944;
  box-shadow: 0 10px 26px rgba(0, 8, 22, .2);
}

body.premium-agency[data-frontend-theme-style="high_end"] .mall-product-card.selected {
  border-color: #30c9d6;
  background: #12324f;
  box-shadow: 0 0 0 1px rgba(48, 201, 214, .62), 0 14px 32px rgba(0, 8, 22, .28);
}

body.premium-agency[data-frontend-theme-style="high_end"] :is(.mall-product-family-toggle, .mall-product-variant) {
  border-color: rgba(151, 184, 219, .16);
  background: #0a2138;
  color: #dfe9f5;
  box-shadow: none;
}

body.premium-agency[data-frontend-theme-style="high_end"] :is(.mall-product-family-toggle:hover, .mall-product-family-toggle[aria-expanded="true"], .mall-product-variant.selected) {
  border-color: rgba(48, 201, 214, .42);
  background: #12324f;
  color: #61dce4;
  box-shadow: inset 0 0 0 1px rgba(48, 201, 214, .3);
}

body.premium-agency[data-frontend-theme-style="high_end"] .mall-product-image {
  border-color: rgba(151, 184, 219, .16);
  background: #081d32;
}
body.premium-agency[data-frontend-theme-style="high_end"] .mall-product-image-main { outline-color: rgba(255, 255, 255, .1); }

body.premium-agency[data-frontend-theme-style="high_end"] .mall-order-mode-selector {
  border-color: rgba(151, 184, 219, .16);
  background: #0a2138;
  box-shadow: none;
}

body.premium-agency[data-frontend-theme-style="high_end"] .mall-order-mode-selector > legend { color: #f4f8ff; }
body.premium-agency[data-frontend-theme-style="high_end"] .mall-order-mode-selector > legend small,
body.premium-agency[data-frontend-theme-style="high_end"] .mall-order-mode-option small { color: #9dafc4; }
body.premium-agency[data-frontend-theme-style="high_end"] .mall-order-mode-option {
  background: #0e2944;
  color: #e5eef8;
  box-shadow: inset 0 0 0 1px rgba(151, 184, 219, .18);
}
body.premium-agency[data-frontend-theme-style="high_end"] .mall-order-mode-option:has(input:checked) {
  background: rgba(48, 201, 214, .09);
  box-shadow: inset 0 0 0 2px #30c9d6;
}

body.premium-agency[data-frontend-theme-style="high_end"] .quantity-stepper {
  border-color: rgba(151, 184, 219, .18);
  background: #0a2138;
}
body.premium-agency[data-frontend-theme-style="high_end"] .quantity-stepper button { background: #173b5b; color: #61dce4; }
body.premium-agency[data-frontend-theme-style="high_end"] .quantity-stepper input { border-color: rgba(151, 184, 219, .18); background: #081d32; color: #f4f8ff; }
body.premium-agency[data-frontend-theme-style="high_end"] #batch.batch-as-mall-order .order-actions {
  border-top: 1px solid rgba(151, 184, 219, .12);
  background: #0e2944;
}

body.premium-agency[data-frontend-theme-style="high_end"] .quick-order-result { background: #0a2138; }
body.premium-agency[data-frontend-theme-style="high_end"] :is(.modal-head, .modal-actions, #orderDetailModal .modal-head, #orderDetailModal .modal-actions) {
  border-color: rgba(151, 184, 219, .14);
  background: #0a2138;
}
body.premium-agency[data-frontend-theme-style="high_end"] .modal p,
body.premium-agency[data-frontend-theme-style="high_end"] #orderDetailModal #agencyOrderDetail { color: #a9bad0; }
body.premium-agency[data-frontend-theme-style="high_end"] #orderDetailModal :is(.confirm-item, .booking-confirmation-agency-panel, .booking-confirmation-item, .email-record-detail-item, .invoice-detail-card, .product-traveller-group, .verification-card, .detail-refund-card, .detail-refund-meta > div, .detail-refund-component, .detail-status-latest) {
  border-color: rgba(151, 184, 219, .16);
  background: #0a2138;
  color: #f4f8ff;
  box-shadow: 0 8px 22px rgba(0, 8, 22, .18);
}

@media (max-width: 960px) {
  body.premium-agency[data-frontend-theme-style="high_end"] .topbar { background: #041426; }
  body.premium-agency[data-frontend-theme-style="high_end"] .userbar { color: #b7c7da; }
  body.premium-agency[data-frontend-theme-style="high_end"] .userbar strong { color: #f3c969; }
  body.premium-agency[data-frontend-theme-style="high_end"] .agency-top-strip {
    border-bottom-color: rgba(151, 184, 219, .14);
    background: #081d32;
  }
  body.premium-agency[data-frontend-theme-style="high_end"] .agency-top-strip .tab { color: #aebed2; }
  body.premium-agency[data-frontend-theme-style="high_end"] .agency-top-strip .tab.active { background: #087883; color: #ffffff; }
}

/* Agency reference dashboard: deep navy, warm gold and compact operator density. */
body.premium-agency {
  --premium-bg: #031426;
  --premium-surface: #0a263e;
  --premium-surface-strong: #102f4a;
  --premium-surface-hover: #153a58;
  --premium-border: rgba(132, 176, 211, .16);
  --premium-border-strong: rgba(38, 205, 207, .54);
  --premium-text: #f4f7fb;
  --premium-muted: #8da8be;
  --premium-cyan: #20c5ca;
  --premium-gold: #f0c778;
  --saas-primary: #0c7f88;
  --saas-primary-hover: #10959c;
  --saas-input: #102f4a;
  --agency-copy: #f4f7fb;
  --agency-copy-muted: #8da8be;
  --agency-surface-inset: #071d32;
  --agency-surface-raised: #102f4a;
  --agency-surface-hover: #153a58;
  --agency-outline: rgba(132, 176, 211, .16);
  --agency-outline-strong: rgba(38, 205, 207, .54);
  min-height: 100vh;
  background:
    radial-gradient(circle at 78% 6%, rgba(20, 108, 142, .12), transparent 34rem),
    linear-gradient(180deg, #031426 0%, #05192d 100%);
  color: var(--premium-text);
}

body.premium-agency::before { opacity: .24; }

body.premium-agency .topbar {
  min-height: 64px;
  border-bottom: 1px solid rgba(132, 176, 211, .13);
  background: rgba(2, 15, 29, .97);
  box-shadow: 0 12px 34px rgba(0, 7, 20, .24);
  backdrop-filter: blur(18px);
}

body.premium-agency .topbar-inner {
  width: 100%;
  max-width: none;
  min-height: 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 0 20px;
}

body.premium-agency .brand { min-width: 0; gap: 11px; }
body.premium-agency :is(.premium-brand-mark, .brand-logo) {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 10px;
  background: rgba(240, 199, 120, .12);
  color: var(--premium-gold);
  box-shadow: inset 0 0 0 1px rgba(240, 199, 120, .22);
}
body.premium-agency .brand-copy { gap: 1px; }
body.premium-agency .brand-copy > span { color: #f7f4ec; font-size: 16px; font-weight: 800; letter-spacing: .03em; }
body.premium-agency .brand-copy small { color: #718aa0; font-size: 10px; letter-spacing: .08em; }

body.premium-agency .agency-primary-nav {
  min-width: 0;
  height: 64px;
  display: flex;
  align-items: stretch;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
body.premium-agency .agency-primary-nav::-webkit-scrollbar { display: none; }
body.premium-agency .agency-primary-nav button {
  position: relative;
  min-width: 72px;
  min-height: 64px;
  border: 0;
  border-radius: 0;
  padding: 0 15px;
  background: transparent;
  color: #a9bbcd;
  box-shadow: none;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition-property: color, background-color;
  transition-duration: 160ms;
  transition-timing-function: cubic-bezier(.2, 0, 0, 1);
}
body.premium-agency .agency-primary-nav button::after {
  content: "";
  position: absolute;
  right: 16px;
  bottom: 7px;
  left: 16px;
  height: 2px;
  border-radius: 999px;
  background: var(--premium-cyan);
  opacity: 0;
  transform: scaleX(.45);
  transition-property: opacity, transform;
  transition-duration: 180ms;
  transition-timing-function: cubic-bezier(.2, 0, 0, 1);
}
body.premium-agency .agency-primary-nav button:hover { background: rgba(255, 255, 255, .025); color: #f4f8fc; box-shadow: none; }
body.premium-agency .agency-primary-nav button.active { color: #ffffff; }
body.premium-agency .agency-primary-nav button.active::after { opacity: 1; transform: scaleX(1); }
body.premium-agency .agency-primary-nav button:active { transform: scale(.96); }

body.premium-agency .userbar { min-width: 0; gap: 10px; color: #9eb2c6; }
body.premium-agency .agency-balance-summary { display: grid; justify-items: end; gap: 1px; padding-right: 3px; }
body.premium-agency .agency-balance-summary small { color: #718aa0; font-size: 9px; font-weight: 700; line-height: 1.2; }
body.premium-agency .agency-balance-summary strong { color: var(--premium-gold); font-size: 14px; line-height: 1.2; font-variant-numeric: tabular-nums; }

body.premium-agency .agency-account-menu { position: relative; }
body.premium-agency .agency-account-menu summary {
  min-height: 42px;
  display: grid;
  grid-template-columns: 30px minmax(72px, auto) 12px;
  align-items: center;
  gap: 8px;
  border-radius: 10px;
  padding: 4px 8px 4px 5px;
  color: #e8f0f7;
  cursor: pointer;
  list-style: none;
  transition-property: background-color, box-shadow;
  transition-duration: 160ms;
}
body.premium-agency .agency-account-menu summary::-webkit-details-marker { display: none; }
body.premium-agency .agency-account-menu summary:hover,
body.premium-agency .agency-account-menu[open] summary { background: rgba(255, 255, 255, .055); box-shadow: inset 0 0 0 1px rgba(132, 176, 211, .12); }
body.premium-agency .agency-account-menu summary > span:nth-child(2) { overflow: hidden; font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
body.premium-agency .agency-account-menu summary > i { color: #718aa0; font-size: 9px; transition-property: transform; transition-duration: 160ms; }
body.premium-agency .agency-account-menu[open] summary > i { transform: rotate(180deg); }
body.premium-agency .agency-account-avatar { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(145deg, #20c5ca, #0d7f88); color: #032128; }
body.premium-agency .agency-account-popover {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  z-index: 1300;
  width: 196px;
  display: grid;
  gap: 6px;
  border: 1px solid rgba(132, 176, 211, .18);
  border-radius: 12px;
  padding: 9px;
  background: #0a2239;
  box-shadow: 0 18px 44px rgba(0, 7, 20, .42);
}
body.premium-agency .agency-account-popover button.secondary {
  width: 100%;
  min-height: 40px;
  justify-content: flex-start;
  border-radius: 8px;
  padding: 0 11px;
  background: transparent;
  color: #cbd8e5;
  box-shadow: none;
  font-size: 12px;
}
body.premium-agency .agency-account-popover button.secondary:hover { background: #12324f; color: #ffffff; }

@media (min-width: 961px) {
  body.premium-agency .agency-top-strip {
    top: 64px;
    bottom: 0;
    width: 216px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    border-right: 1px solid rgba(132, 176, 211, .12);
    padding: 18px 12px 16px;
    background: #04172a;
    box-shadow: 10px 0 28px rgba(0, 7, 20, .17);
  }
  body.premium-agency .agency-top-strip::before { content: "采购导航"; padding: 0 11px; color: #6f879d; font-size: 10px; font-weight: 800; letter-spacing: .14em; }
  body.premium-agency .agency-top-strip .tabs { display: grid; gap: 5px; }
  body.premium-agency .agency-top-strip .tab {
    min-height: 48px;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 10px;
    border: 0;
    border-radius: 10px;
    padding: 0 13px;
    background: transparent;
    color: #9fb2c7;
    box-shadow: none;
    font-size: 13px;
    font-weight: 700;
    text-align: left;
  }
  body.premium-agency .agency-top-strip .tab i { color: #7790a8; text-align: center; }
  body.premium-agency .agency-top-strip .tab:hover { background: rgba(32, 197, 202, .08); color: #eef8fc; }
  body.premium-agency .agency-top-strip .tab.active {
    background: linear-gradient(90deg, rgba(9, 123, 132, .92), rgba(7, 70, 92, .58));
    color: #ffffff;
    box-shadow: inset 3px 0 0 #43d7d9, 0 10px 24px rgba(0, 103, 114, .2);
  }
  body.premium-agency .agency-top-strip .tab.active i { color: #7bf4ef; }
  body.premium-agency .agency-announcement-ticker { margin-top: auto; }
  body.premium-agency .layout { width: auto; max-width: none; margin: 0 0 0 216px; padding: 14px 18px 36px; }
}

body.premium-agency .panel { border-radius: 12px; }
body.premium-agency #mall { padding: 0; background: transparent; box-shadow: none; }
body.premium-agency .agency-home-shell { grid-template-columns: minmax(0, 1fr) 390px; gap: 14px; }
body.premium-agency .agency-home-main,
body.premium-agency .agency-home-rail { gap: 12px; }

body.premium-agency .agency-hero {
  min-height: 350px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid rgba(132, 176, 211, .16);
  border-radius: 13px;
  padding: 34px 42px 24px;
  background-image:
    linear-gradient(90deg, rgba(2, 17, 32, .92) 0%, rgba(3, 25, 43, .54) 46%, rgba(3, 19, 34, .06) 76%),
    linear-gradient(180deg, rgba(0, 0, 0, .02), rgba(2, 15, 29, .58)),
    url("./premium-thailand-hero.png");
  background-position: 58% 52%;
  background-size: cover;
  box-shadow: 0 18px 42px rgba(0, 8, 22, .32), inset 0 0 0 1px rgba(255, 255, 255, .025);
}
body.premium-agency .agency-hero-content { width: min(680px, 100%); }
body.premium-agency .agency-hero-eyebrow { color: #9cc6d5; font-size: 10px; letter-spacing: .12em; }
body.premium-agency .agency-hero h2 {
  margin: 10px 0 4px;
  color: #fff8ec;
  font-family: "STSong", "SimSun", serif;
  font-size: clamp(42px, 4vw, 58px);
  font-weight: 800;
  letter-spacing: .06em;
  line-height: 1.08;
  text-wrap: balance;
  text-shadow: 0 2px 20px rgba(0, 0, 0, .36);
}
body.premium-agency .agency-hero-content > p { color: #d1dce6; font-size: 14px; letter-spacing: .08em; }
body.premium-agency .agency-hero .mall-toolbar {
  width: min(900px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, .72fr) auto;
  align-items: center;
  gap: 9px;
  margin: 20px 0 0;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 11px;
  padding: 8px;
  background: rgba(7, 29, 49, .88);
  box-shadow: 0 12px 28px rgba(0, 8, 22, .26);
  backdrop-filter: blur(14px);
}
body.premium-agency .agency-hero .mall-search-form { min-width: 0; }
body.premium-agency .agency-hero :is(input, select) { min-height: 44px; height: 44px; border: 0; border-radius: 8px; background: #12324f; color: #eef5fb; box-shadow: none; }
body.premium-agency .agency-hero .mall-search-form button { min-height: 44px; height: 44px; border-radius: 8px; background: #0d858d; color: #ffffff; box-shadow: 0 8px 18px rgba(0, 115, 125, .22); }
body.premium-agency .agency-hero .mall-toolbar > span { color: #a7bdcf; font-size: 11px; }
body.premium-agency .agency-hero-quicklinks { min-height: 30px; display: flex; align-items: center; gap: 7px; margin-top: 10px; overflow: hidden; }
body.premium-agency .agency-hero-quicklinks > span { flex: 0 0 auto; color: #c8d4df; font-size: 11px; }
body.premium-agency .agency-hero-quicklinks a {
  max-width: 132px;
  overflow: hidden;
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(27, 66, 93, .78);
  color: #b9cbd9;
  font-size: 10px;
  font-weight: 700;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
  transition-property: background-color, color, transform;
  transition-duration: 150ms;
}
body.premium-agency .agency-hero-quicklinks a:hover { background: #0d858d; color: #ffffff; transform: translateY(-1px); }

body.premium-agency :is(.agency-featured-section, .agency-mall-directory, .agency-rail-card) {
  border: 1px solid rgba(132, 176, 211, .15);
  border-radius: 12px;
  background: rgba(8, 31, 51, .94);
  box-shadow: 0 14px 34px rgba(0, 8, 22, .2), inset 0 1px 0 rgba(255, 255, 255, .025);
}
body.premium-agency :is(.agency-featured-section, .agency-mall-directory) { padding: 14px; }
body.premium-agency .agency-section-head span,
body.premium-agency .agency-rail-head span { color: #3fc7cf; }
body.premium-agency .agency-section-head h3,
body.premium-agency .agency-rail-head h3 { color: #f0f4f8; }
body.premium-agency .agency-featured-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; }
body.premium-agency .agency-feature-card {
  border: 1px solid rgba(132, 176, 211, .14);
  border-radius: 9px;
  background: #0d2942;
  box-shadow: none;
}
body.premium-agency .agency-feature-card:hover,
body.premium-agency .agency-feature-card:focus-visible { border-color: rgba(32, 197, 202, .5); background: #12324f; transform: translateY(-3px); box-shadow: 0 14px 28px rgba(0, 7, 18, .3); }
body.premium-agency .agency-feature-image { height: 126px; background: #071d32; }
body.premium-agency .agency-feature-image-backdrop { display: none; }
body.premium-agency .agency-feature-image-main { object-fit: cover; outline-color: rgba(255, 255, 255, .1); }
body.premium-agency .agency-feature-copy { gap: 5px; padding: 10px; }
body.premium-agency .agency-feature-copy h4 { min-height: 20px; color: #edf4fa; font-size: 13px; -webkit-line-clamp: 1; }
body.premium-agency .agency-feature-copy > small { color: #7894aa; -webkit-line-clamp: 1; }
body.premium-agency .agency-feature-copy > div strong { color: var(--premium-gold); font-size: 14px; font-variant-numeric: tabular-nums; }
body.premium-agency .agency-feature-copy > div span { border-color: rgba(240, 199, 120, .2); color: #dfc58f; }

body.premium-agency .agency-benefit-strip {
  min-height: 72px;
  border: 1px solid rgba(132, 176, 211, .14);
  border-radius: 12px;
  background: rgba(8, 31, 51, .94);
  box-shadow: 0 12px 30px rgba(0, 8, 22, .18);
}
body.premium-agency .agency-benefit-strip i { background: rgba(240, 199, 120, .12); color: var(--premium-gold); }
body.premium-agency .agency-benefit-strip strong { color: #dce7f0; }
body.premium-agency .agency-benefit-strip small { color: #7792a8; }

body.premium-agency .agency-account-balance { border-color: rgba(132, 176, 211, .14); background: #102f4a; }
body.premium-agency .agency-account-balance strong { color: #f2f6fa; font-variant-numeric: tabular-nums; }
body.premium-agency .agency-account-metrics { background: rgba(132, 176, 211, .1); }
body.premium-agency .agency-account-metrics > div { background: #0c2943; }
body.premium-agency .agency-account-metrics strong { color: #e5eef6; font-variant-numeric: tabular-nums; }
body.premium-agency .agency-rail-action { border-color: rgba(240, 199, 120, .2); background: rgba(105, 76, 31, .3); color: #eacb91; }
body.premium-agency .agency-promo-card { min-height: 166px; border-radius: 12px; }
body.premium-agency .agency-home-order { border-bottom-color: rgba(132, 176, 211, .1); }
body.premium-agency .agency-home-order:hover { background: rgba(32, 197, 202, .06); }
body.premium-agency .agency-home-order-state strong { color: var(--premium-gold); font-variant-numeric: tabular-nums; }

body.premium-agency :is(.mall-card, .mall-product-card, .quick-order-card, .modal, .mall-order-side) {
  border-color: rgba(132, 176, 211, .16);
  background: #0a263e;
  color: #f4f7fb;
  box-shadow: 0 14px 34px rgba(0, 8, 22, .22);
}
body.premium-agency :is(input, select, textarea) { border-color: transparent; background-color: #102f4a; color: #f4f7fb; }
body.premium-agency :is(input, textarea)::placeholder { color: #7892a8; }
body.premium-agency button:not(.agency-primary-nav button) { border-radius: 9px; }
body.premium-agency button:active:not(:disabled) { transform: scale(.96); }
body.premium-agency :is(.mall-product-price, .unit-price-amount) { color: var(--premium-gold); font-variant-numeric: tabular-nums; }

@media (max-width: 1500px) {
  body.premium-agency .topbar-inner { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding-inline: 14px; }
  body.premium-agency .agency-primary-nav button { min-width: 64px; padding-inline: 10px; }
  body.premium-agency .agency-home-shell { grid-template-columns: minmax(0, 1fr) 320px; }
  body.premium-agency .agency-featured-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  body.premium-agency .agency-feature-card:nth-child(5) { display: none; }
}

@media (max-width: 1180px) {
  body.premium-agency .topbar-inner { grid-template-columns: minmax(0, 1fr) auto; }
  body.premium-agency .agency-primary-nav button:nth-child(n + 5) { display: none; }
  body.premium-agency .agency-home-shell { grid-template-columns: 1fr; }
  body.premium-agency .agency-home-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.premium-agency .agency-recent-card { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  body.premium-agency .topbar { position: sticky; min-height: 64px; padding: 0; background: #031426; }
  body.premium-agency .topbar-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; padding: 8px 14px; }
  body.premium-agency .agency-primary-nav { grid-column: 1 / -1; order: 3; height: 44px; }
  body.premium-agency .agency-primary-nav button { min-height: 44px; height: 44px; }
  body.premium-agency .agency-account-menu summary { grid-template-columns: 30px 12px; }
  body.premium-agency .agency-account-menu summary > span:nth-child(2) { display: none; }
  body.premium-agency .agency-top-strip { background: #071d32; }
  body.premium-agency .agency-top-strip .tab { color: #a9bbcd; }
  body.premium-agency .agency-top-strip .tab.active { background: #0c7f88; color: #ffffff; }
  body.premium-agency .layout { width: calc(100% - 24px); margin: 14px auto 30px; padding: 0; }
  body.premium-agency .agency-hero { min-height: 360px; padding: 24px 20px; }
}

@media (max-width: 760px) {
  body.premium-agency .agency-balance-summary { display: none; }
  body.premium-agency .agency-primary-nav button:nth-child(n + 4) { display: none; }
  body.premium-agency .agency-hero .mall-toolbar { grid-template-columns: 1fr; }
  body.premium-agency .agency-hero-quicklinks { flex-wrap: wrap; overflow: visible; }
  body.premium-agency .agency-featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.premium-agency .agency-feature-card:nth-child(5) { display: block; }
  body.premium-agency .agency-home-rail { grid-template-columns: 1fr; }
  body.premium-agency .agency-recent-card { grid-column: auto; }
}

@media (max-width: 520px) {
  body.premium-agency .brand-copy small { display: none; }
  body.premium-agency .agency-primary-nav button { flex: 1 0 auto; }
  body.premium-agency .agency-featured-grid { grid-template-columns: 1fr; }
  body.premium-agency .agency-hero h2 { font-size: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  body.premium-agency .agency-primary-nav button::after,
  body.premium-agency .agency-account-menu summary > i,
  body.premium-agency .agency-hero-quicklinks a { transition: none; }
}

/* Administrator clarity refinement.
   The enterprise button rule above must never paint navigation or functional
   cards as primary actions. These final rules also restore dark copy on the
   light report tables that replaced the former dark portal surfaces. */
.premium-admin {
  --admin-page-glow: rgba(37, 99, 235, .07);
  --admin-card-shadow:
    0 0 0 1px rgba(15, 39, 71, .055),
    0 2px 5px rgba(15, 39, 71, .035),
    0 18px 42px rgba(15, 39, 71, .065);
  --admin-card-shadow-hover:
    0 0 0 1px rgba(37, 99, 235, .18),
    0 8px 18px rgba(37, 99, 235, .08),
    0 22px 48px rgba(15, 39, 71, .09);
  background:
    radial-gradient(circle at 78% -8%, var(--admin-page-glow), transparent 34rem),
    linear-gradient(180deg, #f7f9fc 0%, #f2f5f9 100%);
  letter-spacing: .005em;
}

.premium-admin::before {
  background-image:
    linear-gradient(rgba(15, 39, 71, .02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 39, 71, .02) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, #000, transparent 62%);
}

.premium-admin .app-shell { grid-template-columns: 248px minmax(0, 1fr); }

.premium-admin .sidebar {
  padding: 24px 14px 20px;
  border-right: 1px solid rgba(255, 255, 255, .08);
  background:
    radial-gradient(circle at 20% 2%, rgba(59, 130, 246, .18), transparent 18rem),
    linear-gradient(180deg, #102b4d 0%, #0c223d 58%, #091c33 100%);
  box-shadow: 12px 0 36px rgba(15, 39, 71, .12);
}

.premium-admin .brand {
  padding: 2px 8px 24px;
  border-bottom-color: rgba(255, 255, 255, .1);
}

.premium-admin .brand::after {
  right: 8px;
  left: 8px;
  background: linear-gradient(90deg, rgba(96, 165, 250, .7), rgba(96, 165, 250, 0));
}

.premium-admin .brand-main { gap: 12px; }
.premium-admin .brand strong { color: #f8fbff; font-size: 18px; font-weight: 750; letter-spacing: .01em; }
.premium-admin .brand > span { margin-top: 9px; color: #a9bdd4; font-size: 12px; }
.premium-admin .tabs { gap: 4px; margin-top: 18px; }

.premium-admin .sidebar .tab {
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0 12px;
  background: transparent;
  color: #b8c8da;
  box-shadow: none;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: .01em;
  transition-property: background-color, border-color, color, transform, box-shadow;
  transition-duration: 160ms;
  transition-timing-function: cubic-bezier(.2, 0, 0, 1);
}

.premium-admin .sidebar .tab > i { color: #7f9ab7; font-size: 14px; }
.premium-admin .sidebar .tab:hover {
  border-color: rgba(147, 197, 253, .14);
  background: rgba(255, 255, 255, .075);
  color: #f2f7fd;
  transform: translateX(2px);
}
.premium-admin .sidebar .tab:hover > i { color: #a9ccff; }
.premium-admin .sidebar .tab.active {
  border-color: rgba(147, 197, 253, .24);
  background: linear-gradient(135deg, #326fe9, #2558c9);
  color: #ffffff;
  box-shadow: inset 3px 0 0 #93c5fd, 0 10px 24px rgba(2, 12, 30, .24);
}
.premium-admin .sidebar .tab.active > i { color: #dbeafe; }

.premium-admin .layout { padding: 20px 28px 48px; }
.premium-admin .pagebar {
  min-height: 68px;
  margin-bottom: 16px;
  border: 0;
  border-radius: 16px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 0 0 1px rgba(15, 39, 71, .05), 0 10px 30px rgba(15, 39, 71, .045);
  backdrop-filter: blur(16px);
}
.premium-admin .pagebar h1 { color: #132238; font-size: 22px; font-weight: 760; }
.premium-admin .pagebar p { margin-top: 4px; color: #5d6c80; font-size: 13px; }

.premium-admin .panel:not(#dashboard) {
  border: 0;
  border-radius: 18px;
  padding: clamp(20px, 2vw, 28px);
  background: rgba(255, 255, 255, .96);
  box-shadow: var(--admin-card-shadow);
}
.premium-admin .panel-head {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e7edf5;
}
.premium-admin .panel-head h2 { color: #15243a; font-size: 21px; font-weight: 760; }

.premium-admin .settings-hub { gap: 20px; }
.premium-admin .settings-hub-intro {
  border: 0;
  border-radius: 14px;
  padding: 15px 17px;
  background: linear-gradient(135deg, #f5f8fd, #f8fbff);
  color: #5d6c80;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, .07);
  font-size: 14px;
}
.premium-admin .settings-hub-intro strong { color: #203047; }
.premium-admin .settings-hub-grid { gap: 16px; }

.premium-admin button.settings-entry {
  min-height: 134px;
  border: 0;
  border-radius: 16px;
  padding: 18px;
  background: #ffffff;
  color: #172033;
  box-shadow: var(--admin-card-shadow);
  transition-property: background-color, box-shadow, transform;
  transition-duration: 180ms;
  transition-timing-function: cubic-bezier(.2, 0, 0, 1);
}
.premium-admin button.settings-entry:hover {
  background: #ffffff;
  color: #172033;
  box-shadow: var(--admin-card-shadow-hover);
  transform: translateY(-2px);
}
.premium-admin button.settings-entry[aria-expanded="true"] {
  background: linear-gradient(135deg, #f8fbff, #f2f7ff);
  color: #172033;
  box-shadow: inset 3px 0 0 #2563eb, var(--admin-card-shadow-hover);
}
.premium-admin .settings-entry-icon {
  border-radius: 12px;
  background: linear-gradient(145deg, #edf4ff, #e4efff);
  color: #2563eb;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, .08);
}
.premium-admin .settings-entry-title { color: #172033; font-size: 16px; font-weight: 780; }
.premium-admin .settings-entry-description { color: #5b6a7e; font-size: 13px; font-weight: 450; }
.premium-admin .settings-entry-meta { color: #315f9d; font-size: 12px; }
.premium-admin .settings-entry-chevron { color: #8ca0b7; }
.premium-admin button.settings-entry:hover .settings-entry-chevron,
.premium-admin button.settings-entry[aria-expanded="true"] .settings-entry-chevron { color: #2563eb; }

.premium-admin .settings-section {
  border: 0;
  border-radius: 16px;
  padding: 22px;
  background: #ffffff;
  box-shadow: var(--admin-card-shadow);
}
.premium-admin .settings-section-head h3 { color: #172033; font-size: 18px; }
.premium-admin .settings-section-head p { color: #5b6a7e; font-size: 14px; }

.premium-admin .filter-bar,
.premium-admin .orders-filter,
.premium-admin .price-main-filters {
  gap: 10px;
  border: 0;
  border-radius: 14px;
  padding: 13px;
  background: #f6f8fb;
  color: #5b6a7e;
  box-shadow: inset 0 0 0 1px #dce5f0;
}
.premium-admin .filter-bar > span,
.premium-admin .orders-filter > span { color: #5b6a7e; font-size: 13px; font-weight: 650; }

.premium-admin :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
  border-color: #cbd7e6;
  border-radius: 11px;
  background: #ffffff;
  color: #1f2d42;
  box-shadow: 0 1px 2px rgba(15, 39, 71, .025);
}

.premium-admin button.ghost,
.premium-admin button.secondary {
  border: 1px solid transparent;
  border-radius: 11px;
  background: #f0f4f8;
  color: #233248;
  box-shadow: none;
  transition-property: background-color, border-color, color, transform, box-shadow;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}
.premium-admin button.ghost:hover:not(:disabled),
.premium-admin button.secondary:hover:not(:disabled) {
  border-color: #d3dfed;
  background: #e8eef6;
  color: #172033;
  box-shadow: 0 6px 16px rgba(15, 39, 71, .06);
}

.premium-admin .report-block { margin-top: 26px; }
.premium-admin .report-title { margin-bottom: 13px; }
.premium-admin .report-title h2 { color: #172033; font-size: 19px; font-weight: 760; }
.premium-admin .report-subtext { color: #64748b; font-size: 13px; }

.premium-admin :is(.table-wrap, .order-table-wrap) {
  overflow: hidden;
  border: 0;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 0 0 1px #dbe4ef, 0 8px 22px rgba(15, 39, 71, .04);
}
.premium-admin table { background: #ffffff; color: #29384d; }
.premium-admin th,
.premium-admin .order-table th {
  border-bottom: 1px solid #dbe4ef;
  background: #f3f6fa;
  color: #46566d;
  font-size: 13px;
  font-weight: 760;
  letter-spacing: .02em;
}
.premium-admin td,
.premium-admin .order-table td {
  border-bottom-color: #e8edf4;
  background: #ffffff;
  color: #334155;
  font-size: 14px;
  font-weight: 500;
}
.premium-admin tbody tr:nth-child(even) td,
.premium-admin .order-table tbody tr:nth-child(even) td { background: #fbfcfe; }
.premium-admin tbody tr:hover td,
.premium-admin .order-table tbody tr:hover td { background: #f1f6ff; color: #1f2d42; }
.premium-admin td a { color: #1d4ed8; }
.premium-admin td [class*="amount"],
.premium-admin td [class*="price"] { color: #1f3f72; font-weight: 700; }

@media (max-width: 1200px) {
  .premium-admin .app-shell { grid-template-columns: 224px minmax(0, 1fr); }
  .premium-admin .layout { padding-inline: 20px; }
}

@media (max-width: 960px) {
  .premium-admin .app-shell { display: block; }
  .premium-admin .sidebar { padding: 14px; }
  .premium-admin .sidebar .tabs { display: flex; gap: 8px; margin-top: 12px; }
  .premium-admin .sidebar .tab { flex: 0 0 auto; min-width: 126px; }
  .premium-admin .layout { padding: 16px 14px 34px; }
  .premium-admin .pagebar { border-radius: 14px; }
}

@media (max-width: 680px) {
  .premium-admin .pagebar { align-items: flex-start; padding: 14px; }
  .premium-admin .pagebar .actions { width: 100%; }
  .premium-admin .pagebar .actions button { flex: 1 1 140px; }
  .premium-admin .panel:not(#dashboard) { border-radius: 14px; padding: 18px 14px; }
  .premium-admin .settings-hub-grid { grid-template-columns: 1fr; }
  .premium-admin button.settings-entry { min-height: 116px; }
  .premium-admin .filter-bar { align-items: stretch; }
  .premium-admin .filter-bar > * { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .premium-admin .sidebar .tab,
  .premium-admin button.settings-entry,
  .premium-admin button.ghost,
  .premium-admin button.secondary { transition: none; }
  .premium-admin .sidebar .tab:hover,
  .premium-admin button.settings-entry:hover { transform: none; }
}

/* Agency high-end light workspace.
   The default agency preset uses one Chinese sans-serif stack and a calm white
   workspace. Blue is reserved for actions and selected states; the scenic hero
   remains the only deliberately photographic dark surface. */
body.premium-agency[data-frontend-theme-style="high_end"] {
  --premium-bg: #f3f6fa;
  --premium-bg-soft: #f8fafc;
  --premium-surface: #ffffff;
  --premium-surface-strong: #ffffff;
  --premium-surface-hover: #f6f9fd;
  --premium-border: #dbe4ef;
  --premium-border-strong: #b9c9dc;
  --premium-text: #172033;
  --premium-text-secondary: #475569;
  --premium-muted: #64748b;
  --premium-disabled: #94a3b8;
  --premium-cyan: #2563eb;
  --premium-teal: #2563eb;
  --premium-gold: #b7791f;
  --saas-primary: #2563eb;
  --saas-primary-hover: #1d4ed8;
  --saas-input: #ffffff;
  --saas-card-raised: #ffffff;
  --saas-card-hover: #f8fafc;
  --saas-text-primary: #172033;
  --saas-text-secondary: #475569;
  --saas-text-description: #64748b;
  --agency-copy: #172033;
  --agency-copy-muted: #64748b;
  --agency-surface-inset: #f8fafc;
  --agency-surface-raised: #ffffff;
  --agency-surface-hover: #f6f9fd;
  --agency-outline: #dbe4ef;
  --agency-outline-strong: #b9c9dc;
  --storefront-accent: #2563eb;
  --storefront-price: #b7791f;
  --storefront-card-shadow: 0 12px 32px rgba(15, 39, 71, .08);
  min-height: 100vh;
  background:
    radial-gradient(circle at 84% 0%, rgba(37, 99, 235, .055), transparent 30rem),
    #f3f6fa;
  color: #172033;
  color-scheme: light;
  font-family: "HarmonyOS Sans SC", "MiSans", "OPPOSans", "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.premium-agency[data-frontend-theme-style="high_end"]::before {
  opacity: .34;
  background-image:
    linear-gradient(rgba(37, 99, 235, .018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, .018) 1px, transparent 1px);
  background-size: 32px 32px;
}

body.premium-agency[data-frontend-theme-style="high_end"] :is(button, input, select, textarea, table) { font: inherit; }
body.premium-agency[data-frontend-theme-style="high_end"] :is(.agency-hero h2, .agency-promo-card h3) {
  font-family: inherit;
  letter-spacing: -.025em;
}
body.premium-agency[data-frontend-theme-style="high_end"] :is(h1, h2, h3, h4, strong) { color: #172033; }
body.premium-agency[data-frontend-theme-style="high_end"] :is(p, li, small, .muted, .field-help) { color: #64748b; }
body.premium-agency[data-frontend-theme-style="high_end"] label { color: #475569; }

body.premium-agency[data-frontend-theme-style="high_end"] .topbar {
  border-bottom: 1px solid #e2e8f0;
  background: rgba(255, 255, 255, .97);
  color: #172033;
  box-shadow: 0 8px 24px rgba(15, 39, 71, .055);
  backdrop-filter: blur(18px);
}
body.premium-agency[data-frontend-theme-style="high_end"] :is(.premium-brand-mark, .brand-logo) {
  border: 1px solid #dbe7f5;
  background: #f5f9ff;
  color: #2563eb;
  box-shadow: 0 6px 16px rgba(37, 99, 235, .09);
}
body.premium-agency[data-frontend-theme-style="high_end"] .brand-copy > span { color: #172033; }
body.premium-agency[data-frontend-theme-style="high_end"] .brand-copy small { color: #64748b; }
body.premium-agency[data-frontend-theme-style="high_end"] .agency-primary-nav button { color: #64748b; }
body.premium-agency[data-frontend-theme-style="high_end"] .agency-primary-nav button:hover {
  background: #f6f9fd;
  color: #1e3a5f;
}
body.premium-agency[data-frontend-theme-style="high_end"] .agency-primary-nav button.active { color: #1d4ed8; }
body.premium-agency[data-frontend-theme-style="high_end"] .agency-primary-nav button::after { background: #2563eb; }
body.premium-agency[data-frontend-theme-style="high_end"] .userbar { color: #64748b; }
body.premium-agency[data-frontend-theme-style="high_end"] .agency-balance-summary small { color: #64748b; }
body.premium-agency[data-frontend-theme-style="high_end"] .agency-balance-summary strong { color: #9a6700; }
body.premium-agency[data-frontend-theme-style="high_end"] .agency-account-menu summary { color: #334155; }
body.premium-agency[data-frontend-theme-style="high_end"] .agency-account-menu summary:hover,
body.premium-agency[data-frontend-theme-style="high_end"] .agency-account-menu[open] summary {
  background: #f3f6fa;
  box-shadow: inset 0 0 0 1px #dbe4ef;
}
body.premium-agency[data-frontend-theme-style="high_end"] .agency-account-avatar {
  background: #eaf2ff;
  color: #2563eb;
}
body.premium-agency[data-frontend-theme-style="high_end"] .agency-account-popover {
  border-color: #dbe4ef;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(15, 39, 71, .16);
}
body.premium-agency[data-frontend-theme-style="high_end"] .agency-account-popover button.secondary { color: #334155; }
body.premium-agency[data-frontend-theme-style="high_end"] .agency-account-popover button.secondary:hover {
  background: #eef4fc;
  color: #1d4ed8;
}

@media (min-width: 961px) {
  body.premium-agency[data-frontend-theme-style="high_end"] .agency-top-strip {
    border-right: 1px solid #e2e8f0;
    background: #ffffff;
    box-shadow: 8px 0 24px rgba(15, 39, 71, .045);
  }
  body.premium-agency[data-frontend-theme-style="high_end"] .agency-top-strip::before { color: #94a3b8; }
  body.premium-agency[data-frontend-theme-style="high_end"] .agency-top-strip .tab,
  body.premium-agency[data-frontend-theme-style="high_end"] .agency-top-strip .tab i { color: #64748b; }
  body.premium-agency[data-frontend-theme-style="high_end"] .agency-top-strip .tab:hover {
    background: #f3f6fa;
    color: #1e3a5f;
  }
  body.premium-agency[data-frontend-theme-style="high_end"] .agency-top-strip .tab.active {
    background: #eaf2ff;
    color: #1d4ed8;
    box-shadow: inset 3px 0 0 #2563eb;
  }
  body.premium-agency[data-frontend-theme-style="high_end"] .agency-top-strip .tab.active i { color: #2563eb; }
  body.premium-agency[data-frontend-theme-style="high_end"] .agency-announcement-ticker {
    border-color: #dbe4ef;
    background: #f8fafc;
    color: #475569;
  }
}

body.premium-agency[data-frontend-theme-style="high_end"] .layout { background: transparent; }
body.premium-agency[data-frontend-theme-style="high_end"] :is(
  .panel,
  .agency-featured-section,
  .agency-mall-directory,
  .agency-rail-card,
  .agency-feature-card,
  .mall-card,
  .mall-product-card,
  .mall-product-variant,
  .mall-order-side,
  .quick-order-card,
  .quick-order-result,
  .modal,
  .order-card,
  .traveller-recognizer,
  .resource-position-panel,
  .duplicate-order-card
) {
  border-color: #dbe4ef;
  background: #ffffff;
  color: #172033;
  box-shadow: 0 12px 32px rgba(15, 39, 71, .075);
}
body.premium-agency[data-frontend-theme-style="high_end"] #mall,
body.premium-agency[data-frontend-theme-style="high_end"] #batch.batch-as-mall-order,
body.premium-agency[data-frontend-theme-style="high_end"] #quickOrder {
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}
body.premium-agency[data-frontend-theme-style="high_end"] :is(.agency-feature-card, .mall-card, .mall-product-card):hover,
body.premium-agency[data-frontend-theme-style="high_end"] :is(.mall-card, .mall-product-card):focus-visible {
  border-color: #b9cff4;
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, .08), 0 18px 38px rgba(15, 39, 71, .11);
}

body.premium-agency[data-frontend-theme-style="high_end"] .agency-hero {
  border-color: rgba(15, 39, 71, .14);
  box-shadow: 0 16px 36px rgba(15, 39, 71, .14);
}
body.premium-agency[data-frontend-theme-style="high_end"] .agency-hero h2 { color: #fff8ec; }
body.premium-agency[data-frontend-theme-style="high_end"] .agency-hero :is(.agency-hero-eyebrow, p) { color: #e2e8f0; }
body.premium-agency[data-frontend-theme-style="high_end"] .agency-hero .mall-toolbar {
  border-color: rgba(255, 255, 255, .42);
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 12px 28px rgba(0, 8, 22, .18);
}
body.premium-agency[data-frontend-theme-style="high_end"] .agency-hero .mall-location-filter,
body.premium-agency[data-frontend-theme-style="high_end"] .agency-hero .mall-toolbar > span { color: #475569; }
body.premium-agency[data-frontend-theme-style="high_end"] .agency-hero-quicklinks > span { color: #e2e8f0; }

body.premium-agency[data-frontend-theme-style="high_end"] :is(.grid, .step, .metric, .quick-order-product-row, .ticket-spec-panel-inner, .confirm-item, .booking-confirmation-agency-panel) {
  border-color: #e2e8f0;
  background: #f8fafc;
  color: #172033;
  box-shadow: none;
}
body.premium-agency[data-frontend-theme-style="high_end"] :is(.panel-head, .modal-head, .modal-actions) { border-color: #e2e8f0; }
body.premium-agency[data-frontend-theme-style="high_end"] .modal-actions { background: #f8fafc; }
body.premium-agency[data-frontend-theme-style="high_end"] :is(.agency-section-head span, .agency-rail-head span) { color: #2563eb; }
body.premium-agency[data-frontend-theme-style="high_end"] :is(.agency-section-head h3, .agency-rail-head h3, .agency-feature-copy h4, .mall-product-card h3, .mall-card h3) { color: #172033; }
body.premium-agency[data-frontend-theme-style="high_end"] :is(.agency-section-head p, .agency-rail-card p, .mall-product-card p, .mall-card p) { color: #64748b; }
body.premium-agency[data-frontend-theme-style="high_end"] :is(.agency-feature-image, .mall-card-image) { background: #eef2f7; }
body.premium-agency[data-frontend-theme-style="high_end"] :is(.agency-feature-image-main, .mall-card-image img) { outline-color: rgba(15, 39, 71, .1); }

body.premium-agency[data-frontend-theme-style="high_end"] :is(input, select, textarea),
body.premium-agency[data-frontend-theme-style="high_end"] .agency-hero :is(input, select) {
  border-color: #cbd7e6;
  background: #ffffff;
  color: #172033;
  box-shadow: inset 0 1px 1px rgba(15, 39, 71, .025);
}
body.premium-agency[data-frontend-theme-style="high_end"] :is(input, textarea)::placeholder { color: #64748b; opacity: 1; }
body.premium-agency[data-frontend-theme-style="high_end"] :is(input, select, textarea):focus {
  border-color: #2563eb;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .14);
}
body.premium-agency[data-frontend-theme-style="high_end"] :is(.email-select-trigger, .email-select-menu, .period-trigger, .period-menu, .stable-date-popover) {
  border-color: #cbd7e6;
  background: #ffffff;
  color: #172033;
}
body.premium-agency[data-frontend-theme-style="high_end"] :is(.email-select-option, .period-option, .stable-date-day) { color: #334155; }
body.premium-agency[data-frontend-theme-style="high_end"] :is(.email-select-option:hover, .period-option:hover, .stable-date-day:hover) { background: #eef4fc; }

body.premium-agency[data-frontend-theme-style="high_end"] button {
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(37, 99, 235, .16);
}
body.premium-agency[data-frontend-theme-style="high_end"] button:hover:not(:disabled) { background: #1d4ed8; }
body.premium-agency[data-frontend-theme-style="high_end"] button.ghost,
body.premium-agency[data-frontend-theme-style="high_end"] button.secondary {
  border: 1px solid #dbe4ef;
  background: #f1f5f9;
  color: #334155;
  box-shadow: none;
}
body.premium-agency[data-frontend-theme-style="high_end"] button.ghost:hover:not(:disabled),
body.premium-agency[data-frontend-theme-style="high_end"] button.secondary:hover:not(:disabled) {
  border-color: #c7d5e6;
  background: #e8eef6;
  color: #172033;
}
body.premium-agency[data-frontend-theme-style="high_end"] button:disabled {
  background: #e2e8f0;
  color: #94a3b8;
  box-shadow: none;
}

/* Calendar state hierarchy: neutral days, muted past dates, one clear selection. */
body.premium-agency[data-frontend-theme-style="high_end"] .stable-date-popover {
  border-color: rgba(148, 163, 184, .32);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, .035), 0 24px 64px rgba(15, 39, 71, .18);
}
body.premium-agency[data-frontend-theme-style="high_end"] .stable-date-head strong {
  color: #172033;
  font-size: 17px;
  letter-spacing: -.01em;
}
body.premium-agency[data-frontend-theme-style="high_end"] .stable-date-nav,
body.premium-agency[data-frontend-theme-style="high_end"] .stable-date-today {
  border: 1px solid #dbe7f5;
  background: #f3f7fd;
  color: #2563eb;
  box-shadow: none;
  transition-property: background-color, border-color, color, transform;
  transition-duration: 140ms;
  transition-timing-function: ease-out;
}
body.premium-agency[data-frontend-theme-style="high_end"] .stable-date-nav:hover:not(:disabled),
body.premium-agency[data-frontend-theme-style="high_end"] .stable-date-today:hover:not(:disabled) {
  border-color: #bfd2ee;
  background: #eaf2ff;
  color: #1d4ed8;
}
body.premium-agency[data-frontend-theme-style="high_end"] .stable-date-nav:active:not(:disabled),
body.premium-agency[data-frontend-theme-style="high_end"] .stable-date-today:active:not(:disabled) { transform: scale(.96); }
body.premium-agency[data-frontend-theme-style="high_end"] .stable-date-nav:disabled {
  border-color: #edf1f6;
  background: #f8fafc;
  color: #cbd5e1;
  box-shadow: none;
}
body.premium-agency[data-frontend-theme-style="high_end"] .stable-date-weekdays {
  color: #7b8ba1;
  font-size: 11px;
  letter-spacing: .06em;
}
body.premium-agency[data-frontend-theme-style="high_end"] .stable-date-day {
  border: 1px solid transparent;
  background: #ffffff;
  color: #334155;
  box-shadow: none;
}
body.premium-agency[data-frontend-theme-style="high_end"] .stable-date-day:hover:not(:disabled) {
  border-color: #d7e5fa;
  background: #eef5ff;
  color: #1d4ed8;
  box-shadow: none;
}
body.premium-agency[data-frontend-theme-style="high_end"] .stable-date-day.outside:not(.selected):not(.past) {
  color: #94a3b8;
  background: #fbfcfe;
}
body.premium-agency[data-frontend-theme-style="high_end"] .stable-date-day.today:not(.selected) {
  border-color: #93b8f5;
  background: #f5f9ff;
  color: #1d4ed8;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, .06);
}
body.premium-agency[data-frontend-theme-style="high_end"] .stable-date-day.selected {
  border-color: #2563eb;
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 7px 16px rgba(37, 99, 235, .22);
}
body.premium-agency[data-frontend-theme-style="high_end"] .stable-date-day.past:disabled {
  border-color: transparent;
  background: #f5f7fa;
  color: #c0cad7;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 1;
}
body.premium-agency[data-frontend-theme-style="high_end"] .stable-date-day.past.outside:disabled {
  background: #fafbfc;
  color: #d6dde6;
}
body.premium-agency[data-frontend-theme-style="high_end"] .stable-date-foot {
  border-top-color: #e7edf5;
  color: #64748b;
}

body.premium-agency[data-frontend-theme-style="high_end"] .quick-order-card {
  gap: 20px;
  border-radius: 18px;
  padding: clamp(22px, 2vw, 30px);
}
body.premium-agency[data-frontend-theme-style="high_end"] .quick-order-icon {
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(37, 99, 235, .2);
}
body.premium-agency[data-frontend-theme-style="high_end"] .quick-order-title h2 { color: #172033; }
body.premium-agency[data-frontend-theme-style="high_end"] .quick-order-title p { color: #64748b; }
body.premium-agency[data-frontend-theme-style="high_end"] .quick-order-step {
  background: #eaf2ff;
  color: #1d4ed8;
  box-shadow: inset 0 0 0 1px #cfe0fa;
}
body.premium-agency[data-frontend-theme-style="high_end"] .quick-order-compose textarea {
  min-height: 190px;
  background: #fbfcfe;
  line-height: 1.7;
}
body.premium-agency[data-frontend-theme-style="high_end"] .quick-order-status {
  border: 1px solid #dbe7f5;
  border-radius: 10px;
  padding: 12px 14px;
  background: #f5f9ff;
  color: #475569;
}
body.premium-agency[data-frontend-theme-style="high_end"] .mall-product-card.selected,
body.premium-agency[data-frontend-theme-style="high_end"] .mall-product-variant.selected {
  border-color: #93b4ed;
  background: #eff6ff;
  color: #172033;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, .34);
}
body.premium-agency[data-frontend-theme-style="high_end"] .mall-order-mode-selector > legend { color: #172033; }
body.premium-agency[data-frontend-theme-style="high_end"] .quantity-stepper { border-color: #dbe4ef; background: #f8fafc; }

body.premium-agency[data-frontend-theme-style="high_end"] :is(.table-wrap, .order-table-wrap) {
  overflow: hidden;
  border-color: #dbe4ef;
  background: #ffffff;
  box-shadow: 0 6px 20px rgba(15, 39, 71, .045);
}
body.premium-agency[data-frontend-theme-style="high_end"] table { background: #ffffff; color: #334155; }
body.premium-agency[data-frontend-theme-style="high_end"] th {
  border-bottom-color: #dbe4ef;
  background: #f3f6fa;
  color: #475569;
}
body.premium-agency[data-frontend-theme-style="high_end"] td {
  border-bottom-color: #e8edf4;
  background: #ffffff;
  color: #334155;
}
body.premium-agency[data-frontend-theme-style="high_end"] tbody tr:nth-child(even) td { background: #fbfcfe; }
body.premium-agency[data-frontend-theme-style="high_end"] tbody tr:hover td { background: #f1f6ff; }

body.premium-agency[data-frontend-theme-style="high_end"] .modal-mask { background: rgba(15, 23, 42, .48); }
body.premium-agency[data-frontend-theme-style="high_end"] :is(#refundModal, #mallAgreementModal, #orderDetailModal) .modal-head {
  border-color: #e2e8f0;
  background: #ffffff;
}
body.premium-agency[data-frontend-theme-style="high_end"] :is(#refundModal, #mallAgreementModal, #orderDetailModal) .modal-actions {
  border-color: #e2e8f0;
  background: #f8fafc;
}
body.premium-agency[data-frontend-theme-style="high_end"] #mallAgreementModal .modal {
  border-color: #cbd5e1;
  box-shadow: 0 30px 90px rgba(15, 23, 42, .28);
}
body.premium-agency[data-frontend-theme-style="high_end"] #mallAgreementModal .modal-head {
  border-bottom: 3px solid #2563eb;
  padding-bottom: 16px;
}
body.premium-agency[data-frontend-theme-style="high_end"] #mallAgreementTitle {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #0f172a;
  font-size: 20px;
  font-weight: 900;
}
body.premium-agency[data-frontend-theme-style="high_end"] #mallAgreementTitle::before {
  content: "!";
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #2563eb;
  color: #ffffff;
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
}
body.premium-agency[data-frontend-theme-style="high_end"] #mallAgreementShop {
  margin: 14px 24px 0;
  border-left: 4px solid #f59e0b;
  border-radius: 8px;
  padding: 10px 13px;
  background: #fffbeb;
  color: #78350f;
  font-size: 15px;
  font-weight: 700;
}
body.premium-agency[data-frontend-theme-style="high_end"] #mallAgreementContent {
  border: 1px solid #bfdbfe;
  border-left: 5px solid #2563eb;
  background: #f8fbff;
  color: #172033;
  font-size: 17px;
  font-weight: 600;
  box-shadow: 0 8px 22px rgba(37, 99, 235, .08);
}
body.premium-agency[data-frontend-theme-style="high_end"] #mallAgreementContent :is(p, div, li, span, blockquote):not(
  .rt-color-default,
  .rt-color-red,
  .rt-color-orange,
  .rt-color-green,
  .rt-color-blue,
  .rt-color-purple
) {
  color: #172033;
}
body.premium-agency[data-frontend-theme-style="high_end"] #mallAgreementContent .mall-agreement-lead {
  margin-bottom: 14px;
  color: #334155;
  font-weight: 700;
}
body.premium-agency[data-frontend-theme-style="high_end"] #mallAgreementContent .mall-agreement-key-line {
  margin: 8px 0;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 9px 12px;
  background: #eff6ff;
  color: #0f3b73;
  font-size: 17px;
  font-weight: 900;
  box-shadow: inset 4px 0 0 #2563eb;
}
body.premium-agency[data-frontend-theme-style="high_end"] #mallAgreementContent strong,
body.premium-agency[data-frontend-theme-style="high_end"] #mallAgreementContent b {
  color: #0f172a;
  font-weight: 900;
}
body.premium-agency[data-frontend-theme-style="high_end"] #mallAgreementHint {
  color: #92400e;
  font-size: 14px;
  font-weight: 800;
}
body.premium-agency[data-frontend-theme-style="high_end"] #mallAgreementHint.ready {
  color: #166534;
}
body.premium-agency[data-frontend-theme-style="high_end"] #orderDetailModal #agencyOrderDetail {
  color: #475569;
  scrollbar-color: #b8c6d8 #f1f5f9;
}
body.premium-agency[data-frontend-theme-style="high_end"] #orderDetailModal :is(.confirm-item, .booking-confirmation-agency-panel, .booking-confirmation-item, .email-record-detail-item, .invoice-detail-card, .product-traveller-group, .verification-card, .detail-refund-card, .detail-refund-meta > div, .detail-refund-component, .detail-status-latest) {
  border-color: #e2e8f0;
  background: #ffffff;
  color: #172033;
  box-shadow: 0 4px 14px rgba(15, 39, 71, .05);
}
body.premium-agency[data-frontend-theme-style="high_end"] #orderDetailModal :is(.confirm-item > span, .booking-confirmation-item span, .email-record-detail-item span, .invoice-detail-row span) { color: #64748b; }
body.premium-agency[data-frontend-theme-style="high_end"] #orderDetailModal :is(.confirm-item strong, .booking-confirmation-item strong, .email-record-detail-item strong, .invoice-detail-row strong, .remote-order-code) { color: #172033; }
body.premium-agency[data-frontend-theme-style="high_end"] :is(.notice.success, .quick-order-status.success) { color: #166534; }
body.premium-agency[data-frontend-theme-style="high_end"] :is(.notice.error, .quick-order-status.error) { color: #b91c1c; }

@media (max-width: 960px) {
  body.premium-agency[data-frontend-theme-style="high_end"] .topbar,
  body.premium-agency[data-frontend-theme-style="high_end"] .agency-top-strip {
    background: rgba(255, 255, 255, .97);
  }
  body.premium-agency[data-frontend-theme-style="high_end"] .agency-top-strip {
    border-bottom-color: #e2e8f0;
    box-shadow: 0 8px 20px rgba(15, 39, 71, .05);
  }
  body.premium-agency[data-frontend-theme-style="high_end"] .agency-top-strip .tab { color: #64748b; }
  body.premium-agency[data-frontend-theme-style="high_end"] .agency-top-strip .tab.active { background: #eaf2ff; color: #1d4ed8; }
}

@media (max-width: 680px) {
  body.premium-agency[data-frontend-theme-style="high_end"] { font-size: 16px; }
  body.premium-agency[data-frontend-theme-style="high_end"] :is(input, select, textarea) { font-size: 16px; }
  body.premium-agency[data-frontend-theme-style="high_end"] .quick-order-card { padding: 18px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  body.premium-agency[data-frontend-theme-style="high_end"] :is(.agency-primary-nav button, .agency-top-strip .tab, .agency-feature-card, .mall-card, .mall-product-card, button) {
    transition: none;
  }
  body.premium-agency[data-frontend-theme-style="high_end"] :is(.agency-feature-card, .mall-card, .mall-product-card):hover { transform: none; }
}

/* Administrator white-surface correction.
   Native selects and the price center must not inherit legacy dark, blue,
   green, or gray fills. State remains visible through borders and text. */
.premium-admin select,
.premium-admin select option,
.premium-admin select optgroup {
  background-color: #ffffff;
  color: #172033;
  color-scheme: light;
}
.premium-admin select option:checked,
.premium-admin select option:hover,
.premium-admin select option:focus {
  background: #ffffff linear-gradient(0deg, #ffffff, #ffffff);
  color: #172033;
  -webkit-text-fill-color: #172033;
}
.premium-admin select option:disabled { background: #ffffff; color: #64748b; }

.premium-admin :is(
  .price-main-filters,
  .price-agency-scope-panel,
  .price-layer,
  .inventory-price-form,
  .inventory-calendar,
  .inventory-calendar-toolbar,
  .inventory-calendar-head,
  .inventory-side,
  .inventory-price-preview,
  .agency-group-panel,
  .multi-picker,
  .multi-picker-toolbar,
  .multi-picker-option
) {
  background: #ffffff;
  color: #172033;
}
.premium-admin .price-main-filters,
.premium-admin .price-agency-scope-panel,
.premium-admin .price-layer,
.premium-admin .inventory-side,
.premium-admin .agency-group-panel {
  border-color: #d7e1ed;
  box-shadow: 0 0 0 1px rgba(15, 39, 71, .02), 0 8px 22px rgba(15, 39, 71, .045);
}
.premium-admin .price-agency-scope-head span { color: #475569; }
.premium-admin .price-agency-scope-panel select { border-color: #cbd7e6; background: #ffffff; }
.premium-admin .price-selector-layout :is(button.ghost, button.secondary) { background: #ffffff; border-color: #d7e1ed; }
.premium-admin .price-selector-layout :is(button.ghost, button.secondary):hover:not(:disabled) { background: #ffffff; border-color: #93b4ec; }
.premium-admin .multi-picker-count { border: 1px solid #bfdbfe; background: #ffffff; color: #1d4ed8; }
.premium-admin .multi-picker-option:hover { border-color: #93b4ec; background: #ffffff; color: #172033; }
.premium-admin .multi-picker-option:has(input:checked) {
  border-color: #2563eb;
  background: #ffffff;
  color: #172033;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, .18);
}
.premium-admin .inventory-day,
.premium-admin .inventory-day:hover,
.premium-admin .inventory-day.outside,
.premium-admin .inventory-day.selected { background: #ffffff; }
.premium-admin .inventory-day.selected { box-shadow: inset 0 0 0 2px #2563eb; }
.premium-admin :is(.regular-price-form input[readonly], .inventory-side input[readonly]) { background: #ffffff; color: #172033; }
.premium-admin :is(#merchantPricing, #merchantInventory) :is(.filter-bar, .multi-picker-toolbar, .notice, .empty) { background: #ffffff; }
.premium-admin :is(#merchantPricing, #merchantInventory) th,
.premium-admin :is(#merchantPricing, #merchantInventory) td,
.premium-admin :is(#merchantPricing, #merchantInventory) tbody tr:nth-child(even) td,
.premium-admin :is(#merchantPricing, #merchantInventory) tbody tr:hover td { background: #ffffff; }

/* Agency unified white-surface correction.
   Structural surfaces stay white throughout the purchasing portal. Blue is
   reserved for actions, focus, and current-location indicators. */
body.premium-agency[data-frontend-theme-style="high_end"] {
  --premium-bg: #ffffff;
  --premium-bg-soft: #ffffff;
  --premium-surface: #ffffff;
  --premium-surface-strong: #ffffff;
  --premium-surface-hover: #ffffff;
  --agency-surface-inset: #ffffff;
  --agency-surface-raised: #ffffff;
  --agency-surface-hover: #ffffff;
  --saas-input: #ffffff;
  --saas-card-raised: #ffffff;
  --saas-card-hover: #ffffff;
  background: #ffffff;
  color: #172033;
  color-scheme: light;
}

body.premium-agency[data-frontend-theme-style="high_end"] :is(
  .topbar,
  .topbar-inner,
  .layout,
  .panel,
  .agency-top-strip,
  .agency-announcement-ticker,
  .agency-featured-section,
  .agency-mall-directory,
  .agency-rail-card,
  .agency-benefit-strip,
  .agency-benefit-strip > div,
  .agency-account-balance,
  .agency-account-metrics,
  .agency-account-metrics > div,
  .agency-home-order,
  .dashboard-empty-compact,
  .mall-card,
  .mall-product-card,
  .mall-product-variant,
  .mall-product-floor-section,
  .mall-product-floor-section.unassigned,
  .mall-order-side,
  .quick-order-card,
  .quick-order-result,
  .quick-order-product-row,
  .quick-order-confirmation,
  .quick-order-check,
  .quick-order-check.missing,
  .filter-bar,
  .status-guide,
  .grid,
  .metric,
  .step,
  .order-card,
  .empty,
  .table-wrap,
  .order-table-wrap,
  .modal,
  .modal-head,
  .modal-actions,
  .mall-content-item,
  .mall-content-rich,
  .ticket-spec-option,
  .traveller-recognizer,
  .resource-position-panel,
  .resource-position-card,
  .duplicate-order-card
) {
  background: #ffffff;
  color: #172033;
}

body.premium-agency[data-frontend-theme-style="high_end"] :is(
  .panel,
  .agency-featured-section,
  .agency-mall-directory,
  .agency-rail-card,
  .agency-benefit-strip,
  .agency-account-balance,
  .agency-account-metrics > div,
  .agency-home-order,
  .filter-bar,
  .grid,
  .metric,
  .step,
  .order-card,
  .empty,
  .table-wrap,
  .order-table-wrap
) { border-color: #dbe4ef; }

body.premium-agency[data-frontend-theme-style="high_end"] :is(
  .agency-account-balance span,
  .agency-account-balance small,
  .agency-account-metrics span,
  .agency-home-order-copy small,
  .agency-home-order-state small,
  .dashboard-empty-compact,
  .empty,
  .filter-bar > span
) { color: #64748b; }

body.premium-agency[data-frontend-theme-style="high_end"] :is(
  .agency-account-balance strong,
  .agency-account-metrics strong,
  .agency-home-order-copy strong,
  .agency-benefit-strip strong
) { color: #172033; }

body.premium-agency[data-frontend-theme-style="high_end"] .agency-benefit-strip > div { border-right-color: #e2e8f0; }
body.premium-agency[data-frontend-theme-style="high_end"] .agency-benefit-strip i,
body.premium-agency[data-frontend-theme-style="high_end"] .agency-home-order-thumb,
body.premium-agency[data-frontend-theme-style="high_end"] .agency-account-avatar {
  border: 1px solid #bfdbfe;
  background: #ffffff;
  color: #2563eb;
}
body.premium-agency[data-frontend-theme-style="high_end"] .agency-home-order-state strong { color: #2563eb; }
body.premium-agency[data-frontend-theme-style="high_end"] .agency-home-order:hover {
  border-color: #93b4ec;
  background: #ffffff;
  box-shadow: inset 3px 0 0 #2563eb;
}

body.premium-agency[data-frontend-theme-style="high_end"] .agency-primary-nav button,
body.premium-agency[data-frontend-theme-style="high_end"] .agency-primary-nav button:hover,
body.premium-agency[data-frontend-theme-style="high_end"] .agency-primary-nav button.active {
  background: #ffffff;
  box-shadow: none;
}
body.premium-agency[data-frontend-theme-style="high_end"] .agency-primary-nav button { color: #475569; }
body.premium-agency[data-frontend-theme-style="high_end"] .agency-primary-nav button:hover,
body.premium-agency[data-frontend-theme-style="high_end"] .agency-primary-nav button.active { color: #1d4ed8; }

body.premium-agency[data-frontend-theme-style="high_end"] .agency-top-strip .tab,
body.premium-agency[data-frontend-theme-style="high_end"] .agency-top-strip .tab:hover,
body.premium-agency[data-frontend-theme-style="high_end"] .agency-top-strip .tab.active {
  background: #ffffff;
  color: #475569;
  box-shadow: none;
}
body.premium-agency[data-frontend-theme-style="high_end"] .agency-top-strip .tab:hover { color: #1d4ed8; }
body.premium-agency[data-frontend-theme-style="high_end"] .agency-top-strip .tab.active {
  color: #1d4ed8;
  box-shadow: inset 3px 0 0 #2563eb;
}
body.premium-agency[data-frontend-theme-style="high_end"] .agency-top-strip .tab.active i { color: #2563eb; }

body.premium-agency[data-frontend-theme-style="high_end"] .agency-account-popover,
body.premium-agency[data-frontend-theme-style="high_end"] .agency-account-popover button.secondary,
body.premium-agency[data-frontend-theme-style="high_end"] .agency-account-popover button.secondary:hover,
body.premium-agency[data-frontend-theme-style="high_end"] button.ghost,
body.premium-agency[data-frontend-theme-style="high_end"] button.secondary,
body.premium-agency[data-frontend-theme-style="high_end"] button.ghost:hover:not(:disabled),
body.premium-agency[data-frontend-theme-style="high_end"] button.secondary:hover:not(:disabled) {
  background: #ffffff;
  color: #334155;
  box-shadow: none;
}
body.premium-agency[data-frontend-theme-style="high_end"] .agency-account-popover button.secondary:hover,
body.premium-agency[data-frontend-theme-style="high_end"] button.ghost:hover:not(:disabled),
body.premium-agency[data-frontend-theme-style="high_end"] button.secondary:hover:not(:disabled) {
  border-color: #93b4ec;
  color: #1d4ed8;
}

body.premium-agency[data-frontend-theme-style="high_end"] :is(
  .mall-content-tag,
  .badge,
  .mall-product-family-count,
  .mall-product-spec,
  .mall-product-offset,
  .mall-product-position-badge,
  .mall-product-floor-section-head span,
  .mall-product-floor-section.unassigned .mall-product-floor-section-head span,
  .quick-order-step,
  .agency-hero-quicklinks a
) {
  border: 1px solid #bfdbfe;
  background: #ffffff;
  color: #1d4ed8;
  box-shadow: none;
}

body.premium-agency[data-frontend-theme-style="high_end"] :is(select, select option, select optgroup) {
  background-color: #ffffff;
  color: #172033;
  color-scheme: light;
}
body.premium-agency[data-frontend-theme-style="high_end"] select option:checked,
body.premium-agency[data-frontend-theme-style="high_end"] select option:hover,
body.premium-agency[data-frontend-theme-style="high_end"] select option:focus {
  background: #ffffff linear-gradient(0deg, #ffffff, #ffffff);
  color: #172033;
  -webkit-text-fill-color: #172033;
}

body.premium-agency[data-frontend-theme-style="high_end"] table,
body.premium-agency[data-frontend-theme-style="high_end"] th,
body.premium-agency[data-frontend-theme-style="high_end"] td,
body.premium-agency[data-frontend-theme-style="high_end"] tbody tr:nth-child(even) td,
body.premium-agency[data-frontend-theme-style="high_end"] tbody tr:hover td {
  background: #ffffff;
}
body.premium-agency[data-frontend-theme-style="high_end"] th { color: #475569; }
body.premium-agency[data-frontend-theme-style="high_end"] td { color: #334155; }

body.premium-agency[data-frontend-theme-style="high_end"] .mall-product-card.selected,
body.premium-agency[data-frontend-theme-style="high_end"] .mall-product-variant.selected,
body.premium-agency[data-frontend-theme-style="high_end"] .resource-position-card.selected {
  background: #ffffff;
  color: #172033;
  box-shadow: inset 0 0 0 2px #2563eb;
}

/* Scenic mall white-surface lock.
   The legacy reference palette below uses highly specific selectors, so the
   storefront's final light contract must match that specificity. Structural
   mall surfaces stay white; blue is limited to actions and selected outlines. */
body.premium-agency[data-frontend-theme-style="high_end"] .mall-toolbar,
body.premium-agency[data-frontend-theme-style="high_end"] .mall-detail-top,
body.premium-agency[data-frontend-theme-style="high_end"] .mall-content-section,
body.premium-agency[data-frontend-theme-style="high_end"] .mall-content-section .mall-content-item,
body.premium-agency[data-frontend-theme-style="high_end"] #batch.batch-as-mall-order > .panel-head,
body.premium-agency[data-frontend-theme-style="high_end"] #batch.batch-as-mall-order .mall-order-products-pane,
body.premium-agency[data-frontend-theme-style="high_end"] #batch.batch-as-mall-order .mall-order-side,
body.premium-agency[data-frontend-theme-style="high_end"] #batch.batch-as-mall-order .step,
body.premium-agency[data-frontend-theme-style="high_end"] #batch.batch-as-mall-order :is(.metric, .traveller-recognizer),
body.premium-agency[data-frontend-theme-style="high_end"] .mall-product-card,
body.premium-agency[data-frontend-theme-style="high_end"] :is(.mall-product-family-toggle, .mall-product-variant),
body.premium-agency[data-frontend-theme-style="high_end"] .mall-order-mode-selector,
body.premium-agency[data-frontend-theme-style="high_end"] .mall-order-mode-option,
body.premium-agency[data-frontend-theme-style="high_end"] .quantity-stepper,
body.premium-agency[data-frontend-theme-style="high_end"] #batch.batch-as-mall-order .order-actions,
body.premium-agency[data-frontend-theme-style="high_end"] .quick-order-result,
body.premium-agency[data-frontend-theme-style="high_end"] :is(.modal-head, .modal-actions, #orderDetailModal .modal-head, #orderDetailModal .modal-actions) {
  border-color: #dbe4ef;
  background: #ffffff;
  color: #172033;
  box-shadow: none;
}

body.premium-agency[data-frontend-theme-style="high_end"] .mall-detail-top,
body.premium-agency[data-frontend-theme-style="high_end"] #batch.batch-as-mall-order > .panel-head,
body.premium-agency[data-frontend-theme-style="high_end"] #batch.batch-as-mall-order .mall-order-products-pane,
body.premium-agency[data-frontend-theme-style="high_end"] #batch.batch-as-mall-order .mall-order-side {
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, .06),
    0 1px 2px -1px rgba(0, 0, 0, .06),
    0 2px 4px rgba(0, 0, 0, .04);
}

body.premium-agency[data-frontend-theme-style="high_end"] .mall-detail-toolbar {
  border: 0;
  background: #ffffff;
  box-shadow: none;
}

body.premium-agency[data-frontend-theme-style="high_end"] .mall-detail-copy h3,
body.premium-agency[data-frontend-theme-style="high_end"] .mall-content-section > h3,
body.premium-agency[data-frontend-theme-style="high_end"] :is(.mall-product-title strong, .mall-product-family-head h4, .mall-position-product-main strong, .mall-content-item strong, .mall-location-detail-list b, .mall-product-detail-list b),
body.premium-agency[data-frontend-theme-style="high_end"] #batch.batch-as-mall-order :is(.metric strong, .unit-price-plain),
body.premium-agency[data-frontend-theme-style="high_end"] .mall-order-mode-selector > legend {
  color: #172033;
}

body.premium-agency[data-frontend-theme-style="high_end"] :is(.mall-detail-copy p, .mall-detail-intro, .mall-content-rich, .mall-product-intro, .mall-product-detail-list div, .mall-location-detail-list div),
body.premium-agency[data-frontend-theme-style="high_end"] #batch.batch-as-mall-order :is(.step > div span, .metric span, .traveller-recognizer-status, .order-submit-brief span),
body.premium-agency[data-frontend-theme-style="high_end"] .mall-order-mode-selector > legend small,
body.premium-agency[data-frontend-theme-style="high_end"] .mall-order-mode-option small {
  color: #64748b;
}

body.premium-agency[data-frontend-theme-style="high_end"] #batch.batch-as-mall-order .step:first-child,
body.premium-agency[data-frontend-theme-style="high_end"] .mall-product-card.selected,
body.premium-agency[data-frontend-theme-style="high_end"] :is(.mall-product-family-toggle:hover, .mall-product-family-toggle[aria-expanded="true"], .mall-product-variant.selected),
body.premium-agency[data-frontend-theme-style="high_end"] .mall-order-mode-option:has(input:checked) {
  border-color: #93b4ec;
  background: #ffffff;
  color: #172033;
  box-shadow: inset 0 0 0 2px rgba(37, 99, 235, .42);
}

body.premium-agency[data-frontend-theme-style="high_end"] .mall-product-image {
  border-color: transparent;
  background: transparent;
}
body.premium-agency[data-frontend-theme-style="high_end"] .mall-product-image-main { outline-color: rgba(0, 0, 0, .1); }
body.premium-agency[data-frontend-theme-style="high_end"] .quantity-stepper button {
  background: #ffffff;
  color: #2563eb;
}
body.premium-agency[data-frontend-theme-style="high_end"] .quantity-stepper input {
  border-color: #dbe4ef;
  background: #ffffff;
  color: #172033;
}

/* Administrator neutral content-surface normalization.
   Legacy dark theme rules styled every plain notice and empty state as a dark
   panel. These utilities are reused across announcements, agencies, orders,
   finance, reports, products, tenants and mall administration, so their final
   surface contract must be defined once at the end of the cascade. */
.premium-admin :is(
  .empty,
  .employee-empty,
  .agency-price-empty,
  .mall-admin-list-empty,
  .mall-scenic-empty,
  .mall-admin-location-empty,
  .order-catalog-empty
) {
  border-color: var(--color-border-strong);
  background: var(--color-surface);
  color: var(--color-text-muted);
  box-shadow: none;
}

.premium-admin .empty {
  border: 1px dashed var(--color-border-strong);
  border-radius: 10px;
  line-height: 1.6;
  text-align: center;
  text-wrap: pretty;
}

.premium-admin .empty strong { color: var(--color-text-secondary); }

.premium-admin .notice:not(.danger):not(.success) {
  border: 1px solid var(--color-border);
  border-left: 3px solid #93b4ec;
  background: var(--color-surface);
  color: var(--color-text-secondary);
  box-shadow: none;
  line-height: 1.65;
  text-wrap: pretty;
}

/* Agency scenic-mall order contrast correction.
   The light storefront contract must win over the older ID-scoped dark order
   workspace rules. Keep the scenic hero as the single dark feature surface. */
body.premium-agency[data-frontend-theme-style="high_end"] .mall-detail-toolbar {
  border-color: #dbe4ef;
  background: #ffffff;
  color: #172033;
  box-shadow: 0 4px 14px rgba(15, 39, 71, .055);
}

body.premium-agency[data-frontend-theme-style="high_end"] .mall-order-note {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
  box-shadow: none;
}

body.premium-agency[data-frontend-theme-style="high_end"] #batch.batch-as-mall-order > .panel-head,
body.premium-agency[data-frontend-theme-style="high_end"] #batch.batch-as-mall-order .mall-order-products-pane,
body.premium-agency[data-frontend-theme-style="high_end"] #batch.batch-as-mall-order .mall-order-side {
  border-color: #dbe4ef;
  background: #ffffff;
  color: #172033;
  box-shadow: 0 10px 28px rgba(15, 39, 71, .07);
}

body.premium-agency[data-frontend-theme-style="high_end"] #batch.batch-as-mall-order > .panel-head h2,
body.premium-agency[data-frontend-theme-style="high_end"] #batch.batch-as-mall-order .mall-order-products-head h3,
body.premium-agency[data-frontend-theme-style="high_end"] #batch.batch-as-mall-order .step strong {
  color: #172033;
}

body.premium-agency[data-frontend-theme-style="high_end"] #batch.batch-as-mall-order .mall-order-products-head span,
body.premium-agency[data-frontend-theme-style="high_end"] #batch.batch-as-mall-order :is(.step > div span, .metric span, .traveller-recognizer-status, .order-submit-brief span) {
  color: #64748b;
}

body.premium-agency[data-frontend-theme-style="high_end"] #batch.batch-as-mall-order .step,
body.premium-agency[data-frontend-theme-style="high_end"] #batch.batch-as-mall-order :is(.metric, .traveller-recognizer) {
  border-color: #e2e8f0;
  background: #f8fafc;
  color: #172033;
  box-shadow: none;
}

body.premium-agency[data-frontend-theme-style="high_end"] #batch.batch-as-mall-order .step:first-child {
  border-color: #bfdbfe;
  background: #eff6ff;
}

body.premium-agency[data-frontend-theme-style="high_end"] #batch.batch-as-mall-order .step:first-child .step-num {
  background: #2563eb;
  color: #ffffff;
}

body.premium-agency[data-frontend-theme-style="high_end"] #batch.batch-as-mall-order .mall-order-mode-selector {
  border-color: #dbe4ef;
  background: #f8fafc;
  color: #172033;
  box-shadow: none;
}

body.premium-agency[data-frontend-theme-style="high_end"] #batch.batch-as-mall-order .mall-order-mode-option {
  background: #ffffff;
  color: #334155;
  box-shadow: inset 0 0 0 1px #dbe4ef;
}

body.premium-agency[data-frontend-theme-style="high_end"] #batch.batch-as-mall-order .mall-order-mode-option:has(input:checked) {
  background: #eff6ff;
  color: #172033;
  box-shadow: inset 0 0 0 2px #2563eb;
}

body.premium-agency[data-frontend-theme-style="high_end"] #batch.batch-as-mall-order .quantity-stepper {
  border-color: #dbe4ef;
  background: #ffffff;
}

body.premium-agency[data-frontend-theme-style="high_end"] #batch.batch-as-mall-order .quantity-stepper button {
  background: #f8fafc;
  color: #2563eb;
  box-shadow: none;
}

body.premium-agency[data-frontend-theme-style="high_end"] #batch.batch-as-mall-order .quantity-stepper input {
  border-color: #dbe4ef;
  background: #ffffff;
  color: #172033;
}

body.premium-agency[data-frontend-theme-style="high_end"] #batch.batch-as-mall-order .order-actions {
  border-top-color: #e2e8f0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #ffffff 22%, #ffffff);
}

body.premium-agency[data-frontend-theme-style="high_end"] :is(
  .resource-position-toolbar,
  .resource-seat-map,
  .resource-position-product-group,
  .resource-position-empty
) {
  border-color: #dbe4ef;
  background: #f8fafc;
  color: #172033;
  box-shadow: none;
}

body.premium-agency[data-frontend-theme-style="high_end"] .resource-position-product-group { background: #ffffff; }
body.premium-agency[data-frontend-theme-style="high_end"] .resource-position-product-head { border-color: #dbe4ef; }
body.premium-agency[data-frontend-theme-style="high_end"] :is(.resource-position-title strong, .resource-position-product-head strong) { color: #172033; }
body.premium-agency[data-frontend-theme-style="high_end"] :is(.resource-position-title span, .resource-position-product-head span, .resource-position-legend, .resource-seat-map-stats) { color: #64748b; }

body.premium-agency[data-frontend-theme-style="high_end"] .resource-floor-tab {
  border-color: #dbe4ef;
  background: #ffffff;
  color: #334155;
  box-shadow: none;
}

body.premium-agency[data-frontend-theme-style="high_end"] .resource-floor-tab:hover:not(.active) {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}

body.premium-agency[data-frontend-theme-style="high_end"] .resource-floor-tab.active {
  border-color: #2563eb;
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(37, 99, 235, .2);
}

body.premium-agency[data-frontend-theme-style="high_end"] .resource-seat-map-title {
  background: #eaf2ff;
  color: #1d4ed8;
}

body.premium-agency[data-frontend-theme-style="high_end"] .resource-position-card.selected {
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 0 0 1px #1d4ed8, 0 9px 20px rgba(37, 99, 235, .22);
}

body.premium-agency[data-frontend-theme-style="high_end"] .resource-position-card:disabled {
  background: #f1f5f9;
  color: #718096;
  box-shadow: 0 0 0 1px rgba(100, 116, 139, .14);
}

/* Agency position-product copy contrast safeguard.
   Position product details live inside a white seat-group surface, so they
   must not inherit the legacy dark-storefront light copy. */
body.premium-agency[data-frontend-theme-style="high_end"] .resource-position-product-head .mall-position-product-main > strong {
  color: #172033;
}

body.premium-agency[data-frontend-theme-style="high_end"] .resource-position-product-head .mall-position-product-main > span:not(.mall-position-product-offset) {
  color: #475569;
}

body.premium-agency[data-frontend-theme-style="high_end"] .resource-position-product-head .mall-position-product-main > span > b {
  color: #1d4ed8;
}

body.premium-agency[data-frontend-theme-style="high_end"] .resource-position-product-head .mall-position-product-rules .mall-product-detail-list > div > b {
  color: #334155;
}

body.premium-agency[data-frontend-theme-style="high_end"] .resource-position-product-head .mall-position-product-rules .mall-product-detail-list > div.mall-product-rule-alert > span {
  color: #b91c1c;
}

/* Quick-order input white-surface correction.
   The original ID-scoped rule predates the light storefront and otherwise
   leaves the main paste area as the only dark panel inside the white card. */
body.premium-agency[data-frontend-theme-style="high_end"] #quickOrderText {
  border: 1px solid #cbd7e6;
  background: #ffffff;
  color: #172033;
  caret-color: #2563eb;
  box-shadow:
    inset 0 1px 1px rgba(15, 39, 71, .025),
    0 0 0 1px rgba(15, 39, 71, .02);
}

body.premium-agency[data-frontend-theme-style="high_end"] #quickOrderText::placeholder {
  color: #64748b;
  opacity: 1;
}

body.premium-agency[data-frontend-theme-style="high_end"] #quickOrderText:focus {
  border-color: #2563eb;
  background: #ffffff;
  color: #172033;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .14);
}

/* Agency order-detail white-surface contrast correction.
   The light workspace loads after the legacy dark modal theme, so every
   nested order surface and text role must be restored together. */
body.premium-agency[data-frontend-theme-style="high_end"] #orderDetailModal :is(
  .remote-order-line,
  .product-traveller-group-head,
  .product-position-summary,
  .traveller-verification-toolbar,
  .email-record-detail-body
) {
  border-color: #dbe4ef;
  background: #f8fafc;
  color: #334155;
}

body.premium-agency[data-frontend-theme-style="high_end"] #orderDetailModal :is(
  .confirm-item > span,
  .booking-confirmation-item span,
  .email-record-detail-item span,
  .invoice-detail-row span,
  .detail-refund-meta span,
  .detail-refund-card-head span,
  .detail-status-time,
  .product-traveller-group-title span,
  .product-traveller-group-count,
  .remote-order-label,
  .platform-order-no,
  .product-position-summary > span,
  .product-position-field > span,
  .verification-meta,
  .verification-meta span,
  .traveller-verification-code,
  .traveller-verification-empty,
  .traveller-verification-bulk-actions > span
) {
  color: #64748b;
}

body.premium-agency[data-frontend-theme-style="high_end"] #orderDetailModal :is(
  h3,
  .confirm-item strong,
  .booking-confirmation-item strong,
  .email-record-detail-item strong,
  .invoice-detail-row strong,
  .detail-refund-card-head strong,
  .detail-refund-meta strong,
  .detail-refund-component strong,
  .detail-status-title,
  .product-traveller-group-title strong,
  .verification-meta strong,
  .remote-order-code,
  .product-position-area
) {
  color: #172033;
}

body.premium-agency[data-frontend-theme-style="high_end"] #orderDetailModal :is(
  .product-position-content,
  .detail-status-line,
  .detail-refund-component span,
  .traveller-verification-select-all
) {
  color: #475569;
}

body.premium-agency[data-frontend-theme-style="high_end"] #orderDetailModal .detail-status-reason {
  color: #172033;
}

body.premium-agency[data-frontend-theme-style="high_end"] #orderDetailModal #agencyOrderDetail p:not(.detail-status-reason) {
  color: #475569;
}

body.premium-agency[data-frontend-theme-style="high_end"] #orderDetailModal :is(
  .product-position-floor,
  .product-position-chip
) {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

body.premium-agency[data-frontend-theme-style="high_end"] #orderDetailModal :is(
  .verification-qr,
  .traveller-verification-qr
) {
  border-color: #dbe4ef;
  background: #ffffff;
  outline: 1px solid rgba(0, 0, 0, .1);
  outline-offset: -1px;
}

body.premium-agency[data-frontend-theme-style="high_end"] #orderDetailModal .status-pill {
  background: #e2e8f0;
  color: #334155;
}

body.premium-agency[data-frontend-theme-style="high_end"] #orderDetailModal .verification-save-link {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}

body.premium-agency[data-frontend-theme-style="high_end"] #orderDetailModal .detail-history-details {
  border-top-color: #dbe4ef;
}

body.premium-agency[data-frontend-theme-style="high_end"] #orderDetailModal .detail-history-details summary {
  color: #1d4ed8;
}

/* Mall and traveller neutral-control palette.
   The highlighted controls called out in the mall-management and traveller
   entry flows use white-gray surfaces while preserving distinct interaction
   and selected states through neutral borders, copy, and shadow depth. */
.premium-admin #addMallAdmin,
.premium-admin [data-mall-product-sync],
.premium-admin .mall-product-filter-group .filter-chip,
body.premium-agency[data-frontend-theme-style="high_end"] .traveller-image-upload {
  border: 1px solid #d7e1ed;
  background: #f1f5f9;
  color: #334155;
  box-shadow: 0 1px 2px rgba(15, 39, 71, .04);
  transition-property: background-color, border-color, color, box-shadow, transform;
  transition-duration: 150ms;
  transition-timing-function: cubic-bezier(.2, 0, 0, 1);
}

.premium-admin #addMallAdmin:hover:not(:disabled),
.premium-admin [data-mall-product-sync]:hover:not(:disabled),
.premium-admin .mall-product-filter-group .filter-chip:hover:not(:disabled),
body.premium-agency[data-frontend-theme-style="high_end"] .traveller-image-upload:hover {
  border-color: #bdc9d8;
  background: #e8eef5;
  color: #172033;
  box-shadow: 0 5px 14px rgba(15, 39, 71, .07);
}

.premium-admin .mall-product-filter-group .filter-chip.active {
  border-color: #aebac9;
  background: #e2e8f0;
  color: #172033;
  box-shadow: inset 0 0 0 1px rgba(51, 65, 85, .08);
}

.premium-admin .mall-admin-step.active {
  border-color: #c4cfdd;
  background: #f8fafc;
  color: #172033;
  box-shadow: inset 3px 0 0 #94a3b8, 0 8px 20px rgba(15, 39, 71, .07);
}

.premium-admin .mall-admin-step.active .mall-admin-step-index {
  background: #e2e8f0;
  color: #334155;
  box-shadow: inset 0 0 0 1px #cbd5e1;
}

.premium-admin [data-mall-product-management] .status-info {
  background: #e9eef4;
  color: #475569;
}

/* Scenic mall home carousel and discovery layout. */
body.premium-agency .agency-hero,
body.premium-agency[data-frontend-theme-style="high_end"] .agency-hero {
  position: relative;
  isolation: isolate;
  width: min(1120px, calc(100% - 64px));
  min-height: clamp(560px, 42vw, 700px);
  align-self: center;
  margin-inline: auto;
  overflow: hidden;
  justify-content: center;
  padding: 40px clamp(32px, 4vw, 64px);
  background: #061a30;
  cursor: zoom-in;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
body.premium-agency .agency-hero.is-swiping { cursor: grabbing; }
body.premium-agency .agency-hero:focus-visible { outline: 3px solid #60a5fa; outline-offset: 3px; }

body.premium-agency .agency-hero-media,
body.premium-agency .agency-hero-slide,
body.premium-agency .agency-hero-shade {
  position: absolute;
  inset: 0;
}

body.premium-agency .agency-hero-media { z-index: -3; overflow: hidden; }
body.premium-agency .agency-hero-slide {
  margin: 0;
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
  transform: scale(1.035);
  background:
    radial-gradient(circle at 72% 42%, rgba(45, 111, 145, .34), transparent 48%),
    linear-gradient(135deg, #071a2d 0%, #0c2a43 52%, #071827 100%);
}
body.premium-agency .agency-hero-slide.is-active { visibility: visible; opacity: 1; transform: scale(1); }
body.premium-agency .agency-hero-media-backdrop {
  position: absolute;
  inset: -20px;
  z-index: 0;
  width: calc(100% + 40px);
  height: calc(100% + 40px);
  display: block;
  object-fit: cover;
  object-position: center;
  opacity: 1;
  filter: blur(9px) brightness(.78) saturate(1.16);
  transform: scale(1.045);
  pointer-events: none;
}
body.premium-agency .agency-hero-video-backdrop {
  background:
    radial-gradient(circle at 75% 40%, rgba(78, 166, 198, .82), transparent 44%),
    radial-gradient(circle at 40% 80%, rgba(19, 105, 142, .72), transparent 50%),
    linear-gradient(135deg, #0b2942, #123d50);
}
body.premium-agency .agency-hero-media-main {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: 82% center;
  background: transparent;
  filter: drop-shadow(0 18px 36px rgba(0, 0, 0, .38));
}
body.premium-agency .agency-hero-shade {
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(2, 17, 32, .7) 0%, rgba(3, 25, 43, .38) 38%, rgba(3, 19, 34, .08) 66%, rgba(3, 19, 34, 0) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, .02) 52%, rgba(2, 15, 29, .26) 100%);
}
body.premium-agency .agency-hero-content,
body.premium-agency[data-frontend-theme-style="high_end"] .agency-hero-content {
  position: relative;
  z-index: 2;
  width: min(500px, 44%);
  align-self: flex-start;
  margin: auto 0;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 20px;
  padding: clamp(22px, 2.4vw, 34px);
  background: linear-gradient(135deg, rgba(3, 22, 38, .62), rgba(5, 30, 48, .36));
  box-shadow: 0 22px 52px rgba(0, 8, 22, .24), inset 0 1px 0 rgba(255, 255, 255, .08);
  backdrop-filter: blur(14px) saturate(1.12);
  -webkit-backdrop-filter: blur(14px) saturate(1.12);
  pointer-events: none;
}

body.premium-agency .agency-home-discovery {
  display: grid;
  gap: 10px;
  border-radius: 12px;
  padding: 12px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(15, 39, 71, .08), 0 12px 30px rgba(15, 39, 71, .07);
}
body.premium-agency .agency-home-discovery .mall-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, .8fr) auto;
  align-items: center;
  gap: 10px;
  margin: 0;
  border: 0;
  padding: 0;
  background: transparent;
}
body.premium-agency .agency-home-discovery :is(input, select) { min-height: 46px; height: 46px; }
body.premium-agency .agency-home-discovery .mall-search-form button { min-height: 46px; height: 46px; }
body.premium-agency .agency-home-discovery .mall-toolbar > span { color: #64748b; font-size: 12px; }
body.premium-agency .agency-home-discovery .mall-location-label svg { color: #64748b; }
body.premium-agency .agency-home-discovery .mall-location-control {
  min-height: 46px;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 0 0 1px #cbd5e1, 0 1px 2px rgba(15, 23, 42, .04);
}
body.premium-agency .agency-home-discovery .mall-location-control:focus-within {
  background: #ffffff;
  box-shadow: 0 0 0 1px #94a3b8, 0 0 0 3px rgba(148, 163, 184, .15), 0 4px 12px rgba(15, 23, 42, .06);
}
body.premium-agency .agency-home-discovery .mall-location-control #mallLocationSearch,
body.premium-agency .agency-home-discovery .mall-location-control #mallLocationSearch:focus,
body.premium-agency .agency-home-discovery .mall-location-control #mallLocationSearch:focus-visible {
  border: 0;
  background: transparent;
  color: #172033;
  outline: 0;
  box-shadow: none;
}
body.premium-agency .agency-home-discovery button.mall-location-action,
body.premium-agency .agency-home-discovery button.mall-location-option {
  border: 0;
  color: #334155;
  box-shadow: none;
}
body.premium-agency .agency-home-discovery button.mall-location-action {
  min-height: 40px;
  border-radius: 8px;
  background: transparent;
}
body.premium-agency .agency-home-discovery button.mall-location-action:hover,
body.premium-agency .agency-home-discovery button.mall-location-action:focus-visible {
  background: #f1f5f9;
  color: #334155;
  box-shadow: none;
}
body.premium-agency .agency-home-discovery .mall-location-options {
  border-radius: 12px;
  background: #f8fafc;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, .09), 0 16px 36px rgba(15, 23, 42, .14);
}
body.premium-agency .agency-home-discovery button.mall-location-option {
  min-height: 50px;
  border-radius: 8px;
  background: #ffffff;
  color: #1e293b;
}
body.premium-agency .agency-home-discovery button.mall-location-option:hover,
body.premium-agency .agency-home-discovery button.mall-location-option:focus-visible {
  background: #f1f5f9;
  color: #0f172a;
  box-shadow: none;
}
body.premium-agency .agency-home-discovery button.mall-location-option[aria-selected="true"] {
  background: #eef2f7;
  color: #0f172a;
  box-shadow: inset 3px 0 0 #94a3b8;
}
body.premium-agency .agency-home-discovery button.mall-location-option[aria-selected="true"] .mall-location-option-count {
  background: #e2e8f0;
  color: #334155;
}
body.premium-agency .agency-home-discovery .agency-hero-quicklinks { margin-top: 0; padding: 0 2px; overflow: visible; }
body.premium-agency .agency-home-discovery .agency-hero-quicklinks > span { color: #64748b; }
body.premium-agency .agency-home-discovery .agency-hero-quicklinks a {
  background: #eef4ff;
  color: #1d4ed8;
  box-shadow: inset 0 0 0 1px #d8e5fb;
}
body.premium-agency .agency-home-discovery .agency-hero-quicklinks a:hover { background: #2563eb; color: #fff; }

body.premium-agency .agency-feature-image { position: relative; height: 150px; overflow: hidden; background: #eef2f7; }
body.premium-agency .agency-feature-image-backdrop {
  position: absolute;
  inset: -16px;
  width: calc(100% + 32px);
  height: calc(100% + 32px);
  display: block;
  object-fit: cover;
  opacity: .3;
  filter: blur(16px) saturate(.88);
  transform: scale(1.04);
}
body.premium-agency .agency-feature-image-main {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  outline: 1px solid rgba(0, 0, 0, .1);
  outline-offset: -1px;
}
body.premium-agency .agency-feature-image > span { z-index: 2; }

@media (max-width: 780px) {
  body.premium-agency .agency-hero,
  body.premium-agency[data-frontend-theme-style="high_end"] .agency-hero {
    width: 100%;
    max-width: none;
    min-height: 440px;
    margin-inline: 0;
    justify-content: flex-end;
    padding: 24px 20px;
  }
  body.premium-agency .agency-hero-media-main { object-position: center; }
  body.premium-agency .agency-hero-media-backdrop {
    opacity: 1;
    filter: blur(8px) brightness(.82) saturate(1.14);
  }
  body.premium-agency .agency-hero-shade {
    background:
      linear-gradient(180deg, rgba(2, 17, 32, .02) 0%, rgba(2, 17, 32, .08) 44%, rgba(2, 17, 32, .7) 100%),
      linear-gradient(90deg, rgba(2, 17, 32, .12), rgba(2, 17, 32, 0) 50%, rgba(2, 17, 32, .12));
  }
  body.premium-agency .agency-hero-content,
  body.premium-agency[data-frontend-theme-style="high_end"] .agency-hero-content {
    width: 100%;
    margin: auto 0 0;
    border-radius: 16px;
    padding: 18px;
    background: linear-gradient(135deg, rgba(3, 22, 38, .62), rgba(5, 30, 48, .38));
    backdrop-filter: blur(10px) saturate(1.08);
    -webkit-backdrop-filter: blur(10px) saturate(1.08);
  }
  body.premium-agency .agency-home-discovery .mall-toolbar { grid-template-columns: 1fr; }
  body.premium-agency .agency-home-discovery .mall-location-filter { width: 100%; min-width: 0; }
  body.premium-agency .agency-home-discovery .agency-hero-quicklinks { flex-wrap: wrap; }
}

@media (max-width: 480px) {
  body.premium-agency .agency-hero,
  body.premium-agency[data-frontend-theme-style="high_end"] .agency-hero { min-height: 420px; }
}

@media (prefers-reduced-motion: reduce) {
  body.premium-agency .agency-hero-slide { transform: none; }
}

/* Adaptive mall detail media keeps every source image visible at its natural orientation. */
body.premium-agency[data-frontend-theme-style="high_end"] :is(.mall-detail-media, .mall-detail-media-stage, .mall-detail-media-frame:not(.mall-detail-media-video)) {
  background: #fff !important;
}

body.premium-agency[data-frontend-theme-style="high_end"] .mall-detail-media-video {
  background: #0f172a;
}

/* Recommended-highlight posters read as one continuous visual instead of
   individually padded thumbnails. The outer rich-content frame owns the edge. */
body.premium-agency .mall-content-section-highlights .mall-content-rich {
  overflow: hidden;
  padding: 0;
}

body.premium-agency .mall-content-section-highlights .mall-content-rich :is(p, div):has(> img) {
  margin: 0;
}

body.premium-agency .mall-content-section-highlights .mall-content-rich img {
  width: 100%;
  max-width: none;
  max-height: none;
  height: auto;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  object-fit: cover;
}

body.premium-agency .mall-content-section.mall-content-section-highlights {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

body.premium-agency .mall-content-section.mall-content-section-highlights > h3 {
  width: min(100%, 760px);
  justify-self: center;
  text-align: left;
  text-wrap: balance;
}

body.premium-agency .mall-content-section-highlights .mall-content-collapse {
  width: min(100%, 760px);
  min-width: 0;
  justify-self: center;
}

body.premium-agency .mall-content-section-highlights .mall-content-collapse-viewport {
  position: relative;
  min-width: 0;
}

body.premium-agency .mall-content-section-highlights .mall-content-collapse.is-collapsible:not(.is-expanded) .mall-content-collapse-viewport {
  max-height: var(--mall-highlight-collapsed-height, 420px);
  overflow: hidden;
  border-radius: 8px;
}

body.premium-agency .mall-content-section-highlights .mall-content-collapse-fade {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  height: 104px;
  display: none;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 94%);
}

body.premium-agency .mall-content-section-highlights .mall-content-collapse.is-collapsible:not(.is-expanded) .mall-content-collapse-fade {
  display: block;
}

body.premium-agency .mall-content-section-highlights .mall-content-toggle {
  min-width: 188px;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 10px auto 0;
  border-color: #cbd8e8;
  background: #fff;
  color: #31527a;
  box-shadow: 0 3px 10px rgba(31, 49, 82, .08);
  transition-property: color, background-color, border-color, box-shadow, scale;
  transition-duration: 160ms;
  transition-timing-function: cubic-bezier(.2, 0, 0, 1);
}

body.premium-agency .mall-content-section-highlights .mall-content-toggle[hidden] {
  display: none;
}

body.premium-agency .mall-content-section-highlights .mall-content-toggle:hover:not(:disabled) {
  border-color: #8eadd3;
  background: #f8fbff;
  color: #1f4f8b;
  box-shadow: 0 5px 14px rgba(31, 79, 139, .12);
}

body.premium-agency .mall-content-section-highlights .mall-content-toggle:active:not(:disabled) {
  scale: .96;
}

body.premium-agency .mall-content-section-highlights .mall-content-toggle-icon {
  font-size: 18px;
  line-height: 1;
  transform: translateY(-1px) rotate(0deg);
  transition-property: transform;
  transition-duration: 160ms;
  transition-timing-function: cubic-bezier(.2, 0, 0, 1);
}

body.premium-agency .mall-content-section-highlights .mall-content-collapse.is-expanded .mall-content-toggle-icon {
  transform: translateY(1px) rotate(180deg);
}

/* Mall information uses a single active panel instead of laying every edited
   introduction block out at once. Text entries also stay in one reading column. */
body.premium-agency[data-frontend-theme-style="high_end"] .mall-info-panel.mall-content-section {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  margin: 0;
  padding: 18px;
}

body.premium-agency[data-frontend-theme-style="high_end"] .mall-info-panel.mall-content-section > h3 {
  width: min(100%, 760px);
  justify-self: center;
  font-size: 18px;
}

body.premium-agency[data-frontend-theme-style="high_end"] .mall-info-panel .mall-content-grid {
  grid-template-columns: minmax(0, 1fr);
}

@media (prefers-reduced-motion: reduce) {
  body.premium-agency .mall-info-panel:not([hidden]) { animation: none; }
}

/* These full-height carousel buttons are invisible click targets. */
body.premium-agency[data-frontend-theme-style="high_end"] button.mall-scenic-nav,
body.premium-agency[data-frontend-theme-style="high_end"] button.mall-scenic-nav:hover:not(:disabled),
body.premium-agency[data-frontend-theme-style="high_end"] button.mall-scenic-nav:active:not(:disabled) {
  border-radius: 0;
  background: transparent !important;
  color: transparent;
  box-shadow: none;
  transform: none;
}

body.premium-agency[data-frontend-theme-style="high_end"] .mall-detail-media[data-media-orientation="portrait"],
body.premium-agency[data-frontend-theme-style="high_end"] .mall-detail-media[data-media-orientation="square"] {
  box-shadow: 0 14px 32px rgba(15, 39, 71, .12);
}

/* Keep native checkboxes compact across every premium form and table. */
.premium-admin input[type="checkbox"],
body.premium-agency input[type="checkbox"] {
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 0;
  padding: 0;
  flex: 0 0 auto;
  vertical-align: middle;
  box-shadow: none;
}

.premium-admin input[type="checkbox"]:focus,
body.premium-agency input[type="checkbox"]:focus {
  border-color: transparent;
  outline: 0;
  box-shadow: none;
}

.premium-admin input[type="checkbox"]:focus-visible,
body.premium-agency input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--saas-primary-alt);
  outline-offset: 2px;
  box-shadow: none;
}

/* Keep the mall result count and page-size selector in normal document flow. */
body.premium-agency .agency-mall-directory .mall-directory-meta {
  margin: 12px 2px 14px;
}

body.premium-agency .agency-mall-directory .mall-directory-meta .mall-result-summary {
  margin: 0;
}

/* Agency selectable-product contrast: make purchasable cards easy to scan. */
body.premium-agency[data-frontend-theme-style="high_end"] :is(.mall-product-title strong, .mall-product-family-head h4) {
  color: #0f172a;
  font-weight: 800;
}

body.premium-agency[data-frontend-theme-style="high_end"] .mall-product-title > span:not(.mall-product-spec) {
  color: #475569;
  font-weight: 600;
}

body.premium-agency[data-frontend-theme-style="high_end"] .mall-product-price {
  color: #b45309;
  font-weight: 800;
}

body.premium-agency[data-frontend-theme-style="high_end"] .mall-product-detail-list div.mall-product-rule-alert > b {
  color: #172033;
}

body.premium-agency[data-frontend-theme-style="high_end"] .mall-product-detail-list div.mall-product-rule-alert > span {
  color: #dc2626;
  font-weight: 700;
}

body.premium-agency[data-frontend-theme-style="high_end"] .mall-product-buy > button[data-mall-product-select].ghost {
  border: 1px solid #93c5fd;
  background: #eff6ff;
  color: #1d4ed8;
  box-shadow: 0 1px 2px rgba(37, 99, 235, .08);
  font-weight: 800;
}

body.premium-agency[data-frontend-theme-style="high_end"] .mall-product-buy > button[data-mall-product-select].ghost:hover:not(:disabled) {
  border-color: #60a5fa;
  background: #dbeafe;
  color: #1e40af;
}

body.premium-agency[data-frontend-theme-style="high_end"] .mall-product-buy > button[data-mall-product-select]:not(.ghost) {
  border-color: #2563eb;
  background: #2563eb;
  color: #ffffff;
  font-weight: 800;
}

body.premium-agency[data-frontend-theme-style="high_end"] .mall-product-stock {
  color: #475569;
  font-weight: 600;
}

body.premium-agency[data-frontend-theme-style="high_end"] .mall-product-stock.warn {
  color: #a16207;
  font-weight: 700;
}

body.premium-agency[data-frontend-theme-style="high_end"] .mall-product-stock.danger {
  color: #dc2626;
  font-weight: 700;
}

/* Storefront directory covers use the portrait artwork ratio supplied by malls. */
body.premium-agency[data-frontend-theme-style="high_end"] .agency-mall-directory .mall-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr));
  align-items: stretch;
  gap: 16px;
}

body.premium-agency[data-frontend-theme-style="high_end"] .agency-mall-directory .mall-card {
  grid-template-rows: auto var(--mall-card-body-height);
}

body.premium-agency[data-frontend-theme-style="high_end"] .agency-mall-directory .mall-card-cover {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
}

body.premium-agency[data-frontend-theme-style="high_end"] .agency-mall-directory .mall-card-entry-hint {
  height: auto;
  aspect-ratio: 3 / 4;
}

@media (max-width: 680px) {
  body.premium-agency[data-frontend-theme-style="high_end"] .agency-mall-directory .mall-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(190px, 100%), 1fr));
  }
}

/* Make the purchasable specification the primary heading inside each variant card. */
body.premium-agency[data-frontend-theme-style="high_end"] .mall-product-title .mall-product-spec {
  min-height: 40px;
  border: 2px solid #60a5fa;
  border-radius: 12px;
  padding: 0 16px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.25;
  box-shadow: 0 4px 10px rgba(37, 99, 235, .14);
}

/* Product master-detail workbench: keep catalog rows light and data-dense even
   when the high-end theme applies its global primary-button treatment. */
body.premium-agency[data-frontend-theme-style="high_end"] .mall-product-workbench {
  border-color: #dbe5f1;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
}

body.premium-agency[data-frontend-theme-style="high_end"] .mall-product-catalog {
  border-color: #dbe5f1;
  background: #fbfdff;
}

body.premium-agency[data-frontend-theme-style="high_end"] .mall-product-catalog-search input {
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  padding-left: 34px;
  background-color: #fff;
  background-image: none;
  color: #1e293b;
  box-shadow: none;
}

body.premium-agency[data-frontend-theme-style="high_end"] .mall-product-catalog-tools select {
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  background: #fff;
  color: #1e293b;
  box-shadow: none;
}

body.premium-agency[data-frontend-theme-style="high_end"] button.mall-product-family-item,
body.premium-agency[data-frontend-theme-style="high_end"] button.mall-product-family-item:hover:not(:disabled),
body.premium-agency[data-frontend-theme-style="high_end"] button.mall-product-family-item:active:not(:disabled) {
  height: auto;
  border: 0;
  border-bottom: 1px solid #e2e8f0;
  border-radius: 0;
  background: transparent;
  color: #1e293b;
  box-shadow: none;
  transform: none;
}

body.premium-agency[data-frontend-theme-style="high_end"] button.mall-product-family-item:hover:not(:disabled) {
  background: #f8fbff;
  box-shadow: inset 3px 0 0 #93c5fd;
}

body.premium-agency[data-frontend-theme-style="high_end"] button.mall-product-family-item.active,
body.premium-agency[data-frontend-theme-style="high_end"] button.mall-product-family-item.active:hover:not(:disabled) {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1e293b;
  box-shadow: inset 3px 0 0 #2563eb, inset 0 0 0 1px #bfdbfe;
}

body.premium-agency[data-frontend-theme-style="high_end"] .mall-product-family-item-copy strong,
body.premium-agency[data-frontend-theme-style="high_end"] .mall-product-detail-copy h4,
body.premium-agency[data-frontend-theme-style="high_end"] .mall-product-spec-name strong {
  color: #172033;
}

body.premium-agency[data-frontend-theme-style="high_end"] .mall-product-family-item-copy small,
body.premium-agency[data-frontend-theme-style="high_end"] .mall-product-detail-meta,
body.premium-agency[data-frontend-theme-style="high_end"] .mall-product-spec-requirement {
  color: #64748b;
}

body.premium-agency[data-frontend-theme-style="high_end"] .mall-product-family-item-price {
  color: #d97706;
}

body.premium-agency[data-frontend-theme-style="high_end"] .mall-product-family-item-stock {
  color: #15803d;
}

body.premium-agency[data-frontend-theme-style="high_end"] .mall-product-family-item-stock.warn {
  color: #b45309;
}

body.premium-agency[data-frontend-theme-style="high_end"] .mall-product-family-item-stock.danger {
  color: #dc2626;
}

body.premium-agency[data-frontend-theme-style="high_end"] .mall-product-spec-row.selected {
  background: #eff6ff;
  box-shadow: inset 3px 0 0 #2563eb;
}

body.premium-agency[data-frontend-theme-style="high_end"] .mall-product-spec-action > button {
  border: 1px solid #93c5fd;
  border-radius: 8px;
  background: #fff;
  color: #2563eb;
  box-shadow: none;
}

body.premium-agency[data-frontend-theme-style="high_end"] .mall-product-spec-action > button:hover:not(:disabled) {
  border-color: #2563eb;
  background: #eff6ff;
  color: #1d4ed8;
  box-shadow: none;
}

body.premium-agency[data-frontend-theme-style="high_end"] .mall-product-spec-action > button.is-selected,
body.premium-agency[data-frontend-theme-style="high_end"] .mall-product-spec-action > button.is-selected:hover:not(:disabled) {
  border-color: #2563eb;
  background: #2563eb;
  color: #fff;
}

/* Ticket resource scenic picker stays neutral and uses the admin success color,
   instead of inheriting the global blue primary-button treatment. */
.premium-admin button.ticket-resource-scenic {
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--color-text-primary);
  box-shadow: none;
}

.premium-admin button.ticket-resource-scenic:hover {
  border: 0;
  background: #f7fbfa;
  color: var(--color-text-primary);
  box-shadow: none;
}

.premium-admin button.ticket-resource-scenic.is-selected,
.premium-admin button.ticket-resource-scenic.is-selected:hover {
  border: 0;
  background: #f7fbfa;
  color: var(--color-text-primary);
  box-shadow: none;
}

.premium-admin button.ticket-resource-scenic-clear {
  width: 28px;
  height: 28px;
  min-height: 28px;
  border: 1px solid #cbd5e1;
  border-radius: 50%;
  padding: 0;
  background: #ffffff;
  color: #64748b;
  box-shadow: none;
}

.premium-admin button.ticket-resource-scenic-clear:hover:not(:disabled) {
  border-color: #94a3b8;
  background: #eef2f7;
  color: #0f172a;
  box-shadow: none;
}

/* Administrator sales overview — selected homepage concept, 2026-07-28. */
.premium-admin #dashboard.panel {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.premium-admin:has(#dashboard.active) .pagebar {
  margin-bottom: 0;
  border: 0;
  border-radius: 0;
  padding-right: 4px;
  padding-left: 4px;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.premium-admin #dashboardContent,
.premium-admin .sales-dashboard {
  min-width: 0;
}

.premium-admin .sales-dashboard {
  display: grid;
  gap: 10px;
  color: #172033;
}

.premium-admin .sales-dashboard-toolbar {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  padding: 0 2px;
}

.premium-admin .sales-dashboard-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.premium-admin .sales-dashboard-actions > button {
  width: auto;
  min-width: 112px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 750;
}

.premium-admin .sales-dashboard-actions > button i {
  margin-right: 6px;
}

.premium-admin .sales-period-select {
  min-width: 126px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px;
  margin: 0;
  border: 1px solid #dbe3ee;
  border-radius: 9px;
  padding: 0 10px;
  background: #fff;
  color: #64748b;
  font-size: 11px;
  font-weight: 650;
}

.premium-admin .sales-period-select select {
  min-width: 72px;
  min-height: 38px;
  border: 0;
  padding: 0 22px 0 0;
  background-color: transparent;
  box-shadow: none;
  color: #172033;
  font-size: 12px;
  font-weight: 750;
}

.premium-admin .sales-period-select select:focus {
  outline: 0;
  box-shadow: none;
}

.premium-admin .sales-date-range {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #dbe3ee;
  border-radius: 9px;
  padding: 0 13px;
  background: #fff;
  color: #52627a;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.premium-admin .sales-dashboard .admin-hero {
  min-height: auto;
  display: block;
  border: 1px solid #dbe3ee;
  border-radius: 14px;
  padding: 0;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 39, 71, .05);
}

.premium-admin .sales-dashboard .admin-hero::before,
.premium-admin .sales-dashboard .admin-hero::after {
  display: none;
}

.premium-admin .sales-dashboard .admin-hero-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
}

.premium-admin .sales-dashboard .admin-hero-kpis .sales-kpi {
  position: relative;
  min-width: 0;
  min-height: 108px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  grid-template-rows: auto;
  align-items: center;
  column-gap: 15px;
  border: 0;
  border-right: 1px solid #e7ecf2;
  border-radius: 0;
  padding: 22px 24px;
  background: #fff;
  box-shadow: none;
}

.premium-admin .sales-dashboard .admin-hero-kpis .sales-kpi:last-child {
  border-right: 0;
}

.premium-admin .sales-dashboard .admin-hero-kpis .sales-kpi > i {
  grid-row: auto;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 20px;
}

.premium-admin .sales-kpi-blue > i {
  background: #e8f1ff;
  color: #2563eb;
}

.premium-admin .sales-kpi-teal > i {
  background: #e4f7f1;
  color: #0f9f77;
}

.premium-admin .sales-kpi-amber > i {
  background: #fff2df;
  color: #f59e0b;
}

.premium-admin .sales-kpi-red > i {
  background: #ffe7ea;
  color: #ef4f5f;
}

.premium-admin .sales-dashboard .admin-hero-kpis .sales-kpi > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.premium-admin .sales-dashboard .admin-hero-kpis .sales-kpi span {
  margin: 0;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
}

.premium-admin .sales-dashboard .admin-hero-kpis .sales-kpi strong {
  overflow: hidden;
  color: #0f1f3a;
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 850;
  line-height: 1.15;
  letter-spacing: -.03em;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.premium-admin .sales-kpi-delta {
  color: #7a889d;
  font-size: 10px;
  line-height: 1.4;
}

.premium-admin .sales-kpi-delta i {
  margin: 0 2px 0 5px;
  font-size: 9px;
}

.premium-admin .sales-kpi-delta.positive {
  color: #079455;
}

.premium-admin .sales-kpi-delta.negative {
  color: #dc3545;
}

.premium-admin .sales-dashboard-main-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.46fr) minmax(300px, .86fr);
  gap: 10px;
}

.premium-admin .sales-dashboard-lower-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(330px, .72fr) minmax(0, 1.45fr);
  gap: 10px;
}

.premium-admin .sales-dashboard .dashboard-block {
  min-width: 0;
  border: 1px solid #dbe3ee;
  border-radius: 14px;
  padding: 18px 20px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 39, 71, .045);
}

.premium-admin .sales-trend-panel,
.premium-admin .sales-ranking-panel {
  min-height: 310px;
}

.premium-admin .sales-channel-panel,
.premium-admin .sales-orders-panel {
  min-height: 235px;
}

.premium-admin .sales-section-head {
  align-items: flex-start;
}

.premium-admin .sales-section-head > div:first-child {
  display: grid;
  gap: 3px;
}

.premium-admin .sales-section-head h3 {
  color: #172033;
  font-size: 16px;
  font-weight: 800;
}

.premium-admin .sales-section-head p {
  margin: 0;
  color: #7a889d;
  font-size: 10px;
}

.premium-admin .sales-trend-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.premium-admin .sales-metric-toggle {
  display: inline-flex;
  align-items: center;
  border-radius: 18px;
  padding: 3px;
  background: #f1f4f8;
}

.premium-admin .sales-metric-toggle button,
.premium-admin .sales-metric-toggle button:hover:not(:disabled),
.premium-admin .sales-metric-toggle button:active:not(:disabled) {
  width: auto;
  min-width: 58px;
  min-height: 28px;
  border: 0;
  border-radius: 15px;
  padding: 0 12px;
  background: transparent;
  color: #718096;
  box-shadow: none;
  transform: none;
  font-size: 10px;
  font-weight: 750;
}

.premium-admin .sales-metric-toggle button.active,
.premium-admin .sales-metric-toggle button.active:hover:not(:disabled) {
  background: #2563eb;
  color: #fff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, .2);
}

.premium-admin .sales-period-change {
  color: #2563eb;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.premium-admin .sales-period-change.negative {
  color: #dc3545;
}

.premium-admin .sales-chart-legend {
  min-height: 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  color: #7a889d;
  font-size: 10px;
}

.premium-admin .sales-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.premium-admin .sales-chart-legend span::before {
  width: 18px;
  height: 2px;
  display: block;
  background: #2563eb;
  content: "";
}

.premium-admin .sales-chart-legend .previous::before {
  height: 1px;
  border-top: 1px dashed #94a3b8;
  background: transparent;
}

.premium-admin .sales-trend-canvas-wrap {
  width: 100%;
  height: 220px;
  min-width: 0;
}

.premium-admin #dashboardTrendChart {
  width: 100%;
  height: 100%;
  display: block;
}

.premium-admin .sales-ranking-list {
  display: grid;
  gap: 15px;
  margin-top: 22px;
}

.premium-admin .sales-ranking-row {
  min-width: 0;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
}

.premium-admin .sales-ranking-index {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  background: #cbd5e1;
  color: #fff;
  font-size: 10px;
  font-weight: 850;
}

.premium-admin .sales-ranking-index.rank-1 {
  background: #f5a800;
}

.premium-admin .sales-ranking-index.rank-3 {
  background: #f07a3f;
}

.premium-admin .sales-ranking-main {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.premium-admin .sales-ranking-meta {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 44px;
  align-items: center;
  gap: 10px;
}

.premium-admin .sales-ranking-meta strong {
  overflow: hidden;
  color: #29364d;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.premium-admin .sales-ranking-meta span {
  color: #172033;
  font-size: 11px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.premium-admin .sales-ranking-meta small {
  color: #52627a;
  font-size: 10px;
  text-align: right;
}

.premium-admin .sales-ranking-track {
  height: 6px;
  overflow: hidden;
  border-radius: 6px;
  background: #eef2f7;
}

.premium-admin .sales-ranking-track span {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: #2563eb;
}

.premium-admin .sales-channel-layout {
  min-height: 135px;
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  margin-top: 10px;
}

.premium-admin .sales-channel-chart-wrap {
  width: 116px;
  height: 116px;
  position: relative;
  justify-self: center;
}

.premium-admin #dashboardChannelChart {
  width: 100%;
  height: 100%;
  display: block;
}

.premium-admin .sales-channel-total {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 1px;
  text-align: center;
  pointer-events: none;
}

.premium-admin .sales-channel-total strong {
  color: #172033;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.premium-admin .sales-channel-total span {
  color: #8996a8;
  font-size: 9px;
}

.premium-admin .sales-channel-list {
  min-width: 0;
  display: grid;
  gap: 11px;
}

.premium-admin .sales-channel-row {
  min-width: 0;
  display: grid;
  grid-template-columns: 8px minmax(64px, 1fr) auto 38px;
  align-items: center;
  gap: 8px;
  font-variant-numeric: tabular-nums;
}

.premium-admin .sales-channel-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2563eb;
}

.premium-admin .sales-channel-dot.channel-2 {
  background: #14b8a6;
}

.premium-admin .sales-channel-dot.channel-3 {
  background: #f59e0b;
}

.premium-admin .sales-channel-dot.channel-4 {
  background: #7c5ce7;
}

.premium-admin .sales-channel-row strong {
  overflow: hidden;
  color: #334155;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.premium-admin .sales-channel-row span:not(.sales-channel-dot) {
  color: #172033;
  font-size: 10px;
  font-weight: 750;
}

.premium-admin .sales-channel-row small {
  color: #52627a;
  font-size: 10px;
  text-align: right;
}

.premium-admin .sales-channel-period {
  display: block;
  margin-top: 4px;
  color: #94a3b8;
  font-size: 9px;
}

.premium-admin .sales-orders-scroll {
  min-width: 0;
  overflow-x: auto;
  margin-top: 8px;
}

.premium-admin .sales-orders-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  color: #475569;
  font-size: 10px;
  table-layout: fixed;
}

.premium-admin .sales-orders-table th {
  height: 30px;
  border-bottom: 1px solid #e7ecf2;
  background: transparent;
  color: #7a889d;
  font-size: 9px;
  font-weight: 650;
  text-align: left;
}

.premium-admin .sales-orders-table th:nth-child(1) {
  width: 21%;
}

.premium-admin .sales-orders-table th:nth-child(2) {
  width: 19%;
}

.premium-admin .sales-orders-table th:nth-child(3) {
  width: 19%;
}

.premium-admin .sales-orders-table th:nth-child(4) {
  width: 13%;
}

.premium-admin .sales-orders-table th:nth-child(5) {
  width: 15%;
}

.premium-admin .sales-orders-table th:nth-child(6) {
  width: 13%;
}

.premium-admin .sales-orders-table td {
  height: 30px;
  overflow: hidden;
  border-bottom: 1px solid #edf1f5;
  padding: 0 6px 0 0;
  background: transparent;
  color: #52627a;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.premium-admin .sales-orders-table tr[data-go-tab] {
  cursor: pointer;
}

.premium-admin .sales-orders-table tbody tr:hover td,
.premium-admin .sales-orders-table tbody tr:focus td {
  background: #f7faff;
}

.premium-admin .sales-orders-table td strong {
  color: #31415a;
  font-size: 9px;
  font-weight: 700;
}

.premium-admin .sales-order-status {
  display: inline-flex;
  min-height: 21px;
  align-items: center;
  border: 1px solid #b7ebce;
  border-radius: 4px;
  padding: 0 5px;
  background: #edfdf4;
  color: #079455;
  font-size: 9px;
  font-weight: 750;
}

.premium-admin .sales-order-status.warning {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #d97706;
}

.premium-admin .sales-order-status.danger {
  border-color: #fecaca;
  background: #fff1f2;
  color: #dc3545;
}

.premium-admin .sales-insight {
  min-height: 72px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  border: 1px solid #cfe0ff;
  border-radius: 13px;
  padding: 12px 20px;
  background: #f7faff;
  color: #31415a;
}

.premium-admin .sales-insight-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  font-size: 15px;
}

.premium-admin .sales-insight > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.premium-admin .sales-insight strong {
  color: #24334a;
  font-size: 13px;
  line-height: 1.4;
}

.premium-admin .sales-insight small {
  color: #7a889d;
  font-size: 10px;
}

.premium-admin .sales-insight .dashboard-more {
  color: #2563eb;
  font-size: 10px;
  font-weight: 750;
  white-space: nowrap;
}

.premium-admin .sales-dashboard .dashboard-more,
.premium-admin .sales-dashboard .dashboard-more:hover:not(:disabled),
.premium-admin .sales-dashboard .dashboard-more:active:not(:disabled) {
  width: auto;
  min-height: 28px;
  border: 0;
  padding: 0 2px;
  background: transparent;
  color: #2563eb;
  box-shadow: none;
  transform: none;
  font-size: 10px;
  font-weight: 700;
}

.premium-admin .sales-dashboard .dashboard-empty-compact {
  min-height: 170px;
  border: 0;
  background: transparent;
  color: #94a3b8;
  box-shadow: none;
}

@media (max-width: 1240px) {
  .premium-admin .sales-dashboard-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .premium-admin .sales-dashboard-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .premium-admin .sales-dashboard .admin-hero-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .premium-admin .sales-dashboard .admin-hero-kpis .sales-kpi:nth-child(2) {
    border-right: 0;
  }

  .premium-admin .sales-dashboard .admin-hero-kpis .sales-kpi:nth-child(-n + 2) {
    border-bottom: 1px solid #e7ecf2;
  }

  .premium-admin .sales-dashboard-main-grid,
  .premium-admin .sales-dashboard-lower-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .premium-admin .sales-dashboard {
    gap: 10px;
  }

  .premium-admin .sales-date-range {
    order: 4;
  }

  .premium-admin .sales-dashboard-actions > button {
    min-width: 0;
    flex: 1 1 140px;
  }

  .premium-admin .sales-period-select,
  .premium-admin .sales-date-range {
    flex: 1 1 100%;
  }

  .premium-admin .sales-dashboard .admin-hero-kpis {
    grid-template-columns: 1fr;
  }

  .premium-admin .sales-dashboard .admin-hero-kpis .sales-kpi,
  .premium-admin .sales-dashboard .admin-hero-kpis .sales-kpi:nth-child(2) {
    min-height: 96px;
    border-right: 0;
    border-bottom: 1px solid #e7ecf2;
    padding: 16px 18px;
  }

  .premium-admin .sales-dashboard .admin-hero-kpis .sales-kpi:last-child {
    border-bottom: 0;
  }

  .premium-admin .sales-dashboard .dashboard-block {
    padding: 16px;
  }

  .premium-admin .sales-section-head,
  .premium-admin .sales-trend-controls {
    align-items: flex-start;
    flex-direction: column;
  }

  .premium-admin .sales-channel-layout {
    grid-template-columns: 1fr;
  }

  .premium-admin .sales-channel-chart-wrap {
    width: 150px;
    height: 150px;
  }

  .premium-admin .sales-insight {
    grid-template-columns: 38px minmax(0, 1fr);
    padding: 14px;
  }

  .premium-admin .sales-insight .dashboard-more {
    grid-column: 2;
    justify-self: start;
  }
}

/* Administrator white action-control palette.
   Blue remains available for focus rings, borders, copy and data visualization,
   while every formerly solid-blue administrator control now uses the same
   white surface as the rest of the workspace. */
.premium-admin :where(
  button:not(.tab):not(.ghost):not(.secondary):not(.danger):not(.mall-admin-item):not(.settings-entry)
):not(:disabled) {
  border: 1px solid #cbd7e6;
  background: #ffffff;
  color: #233248;
  box-shadow: 0 4px 12px rgba(15, 39, 71, .06);
}

.premium-admin :where(
  button:not(.tab):not(.ghost):not(.secondary):not(.danger):not(.mall-admin-item):not(.settings-entry)
):hover:not(:disabled) {
  border-color: #93b4ec;
  background: #ffffff;
  color: #172033;
  box-shadow: 0 7px 18px rgba(15, 39, 71, .09);
}

.premium-admin :where(
  button:not(.tab):not(.ghost):not(.secondary):not(.danger):not(.mall-admin-item):not(.settings-entry)
):active:not(:disabled) {
  background: #ffffff;
  box-shadow: 0 2px 7px rgba(15, 39, 71, .07);
}

.premium-admin button.danger:not(:disabled),
.premium-admin button.danger:hover:not(:disabled),
.premium-admin button.danger:active:not(:disabled) {
  border: 1px solid #f1b8bd;
  background: #ffffff;
  color: #b4232f;
  box-shadow: 0 4px 12px rgba(180, 35, 47, .06);
}

.premium-admin button.danger:hover:not(:disabled) {
  border-color: #df8f98;
  color: #961b27;
  box-shadow: 0 7px 18px rgba(180, 35, 47, .09);
}

.premium-admin :is(.platform-logo-upload, .mall-hero-upload, .mall-media-upload) {
  border: 1px solid #cbd7e6;
  background: #ffffff;
  color: #233248;
  box-shadow: 0 4px 12px rgba(15, 39, 71, .06);
}

.premium-admin :is(.platform-logo-upload, .mall-hero-upload, .mall-media-upload):hover {
  border-color: #93b4ec;
  background: #ffffff;
  color: #172033;
  box-shadow: 0 7px 18px rgba(15, 39, 71, .09);
}

.premium-admin .sidebar .tab.active,
.premium-admin .sidebar .tab.active:hover {
  border-color: #d7e1ed;
  background: #ffffff;
  color: #172033;
  box-shadow: inset 3px 0 0 #94a3b8, 0 10px 24px rgba(2, 12, 30, .2);
}

.premium-admin .sidebar .tab.active > i,
.premium-admin .sidebar .tab.active:hover > i {
  color: #475569;
}

.premium-admin :is(
  .appearance-choice:has(input:checked) .appearance-choice-check,
  .product-editor-tab.active .product-editor-tab-index,
  .product-setup-step.active .product-setup-step-index,
  .multi-picker-option input:checked + .multi-picker-check,
  .mall-admin-page-number[aria-current="page"]
) {
  border: 1px solid #b8c6d8;
  background: #ffffff;
  color: #334155;
  box-shadow: inset 0 0 0 1px rgba(51, 65, 85, .04);
}

.premium-admin .inventory-quick-select .inventory-quick-chip.active,
.premium-admin .inventory-quick-select .inventory-quick-chip[aria-pressed="true"] {
  border-color: #94a3b8 !important;
  background: #ffffff !important;
  color: #172033 !important;
  box-shadow: inset 0 0 0 1px rgba(51, 65, 85, .06) !important;
}

.premium-admin .quantity-stepper button,
.premium-admin .quantity-stepper button:hover:not(:disabled) {
  border: 0;
  background: #ffffff;
  color: #334155;
  box-shadow: none;
}

.premium-admin .sales-metric-toggle button.active,
.premium-admin .sales-metric-toggle button.active:hover:not(:disabled) {
  border: 1px solid #b8c6d8;
  background: #ffffff;
  color: #172033;
  box-shadow: 0 3px 9px rgba(15, 39, 71, .08);
}

.premium-admin .mall-admin-scenic-copy[data-copied="true"] {
  border: 1px solid #bbf7d0;
  background: #ffffff;
  color: #166534;
  box-shadow: none;
}

/* Keep global actions in a size-stable workspace header. Module navigation now
   expands in context beneath its parent item in the sidebar. */
.premium-admin .workspace-header {
  position: sticky;
  top: 12px;
  z-index: 30;
  margin-bottom: 16px;
  overflow: clip;
  border: 1px solid #dbe5f1;
  border-radius: 16px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 8px 24px rgba(15, 39, 71, .065);
  backdrop-filter: blur(16px);
  overflow-anchor: none;
}

.premium-admin .workspace-header .pagebar {
  min-height: 68px;
  margin: 0;
  border: 0;
  border-radius: 0;
  padding: 12px 16px;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.premium-admin .sidebar-module {
  display: grid;
  min-width: 0;
}

.premium-admin .sidebar-module > .tab {
  padding-right: 34px;
}

.premium-admin .sidebar-module > .tab::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 15px;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-65%) rotate(45deg);
  opacity: .7;
  transition: transform 160ms ease;
}

.premium-admin .sidebar-module > .tab[aria-expanded="true"]::after {
  transform: translateY(-35%) rotate(225deg);
}

.premium-admin .sidebar .module-subnav-group {
  display: grid;
  align-items: stretch;
  gap: 3px;
  min-width: 0;
  margin: 3px 0 7px 24px;
  padding: 3px 0 3px 11px;
  border-left: 1px solid rgba(147, 197, 253, .28);
  animation: admin-subnav-enter 160ms ease-out both;
}

@keyframes admin-subnav-enter {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.premium-admin .module-subnav-title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.premium-admin .module-subnav-title > i { color: #93c5fd; }

.premium-admin .sidebar .module-subnav-button {
  width: 100%;
  min-height: 34px;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 7px 10px;
  background: transparent;
  color: #9fb3ca;
  box-shadow: none;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
  white-space: normal;
}

.premium-admin .sidebar .module-subnav-button:hover:not(:disabled) {
  border-color: rgba(147, 197, 253, .14);
  background: rgba(255, 255, 255, .07);
  color: #f2f7fd;
  box-shadow: none;
  transform: none;
}

.premium-admin .sidebar .module-subnav-button.active,
.premium-admin .sidebar .module-subnav-button.active:hover:not(:disabled) {
  border-color: rgba(191, 219, 254, .2);
  background: rgba(255, 255, 255, .11);
  color: #ffffff;
  box-shadow: inset 2px 0 0 #93c5fd;
}

.premium-admin .sidebar .module-subnav-button > i { color: #7896b5; }
.premium-admin .sidebar .module-subnav-button.active > i { color: #bfdbfe; }

@media (max-width: 960px) {
  .premium-admin .workspace-header { top: 8px; margin-bottom: 12px; }
  .premium-admin .sidebar-module { flex: 0 0 180px; }
  .premium-admin .sidebar-module > .tab { width: 100%; min-width: 0; }
  .premium-admin .sidebar .module-subnav-group { margin-left: 20px; }
}

@media (max-width: 680px) {
  .premium-admin .workspace-header { border-radius: 14px; }
  .premium-admin .workspace-header .pagebar { padding: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .premium-admin .sidebar .module-subnav-group { animation: none; }
  .premium-admin .sidebar-module > .tab::after { transition: none; }
}
