:root {
  --ink: #1b1518;
  --ink-soft: #433a3e;
  --muted: #71666a;
  --muted-2: #756a6e;
  --paper: #f7f4ef;
  --paper-2: #f1ece5;
  --surface: rgba(255, 255, 255, .84);
  --surface-solid: #fffdfa;
  --surface-dark: #181114;
  --surface-dark-2: #23191d;
  --wine: #6f3847;
  --wine-deep: #4d2430;
  --wine-soft: #efe3e5;
  --gold: #b99558;
  --gold-soft: #e7d8ba;
  --line: rgba(49, 35, 40, .10);
  --line-strong: rgba(49, 35, 40, .16);
  --ok: #2e7257;
  --ok-soft: #e4f1e9;
  --warn: #9c6828;
  --warn-soft: #f7edda;
  --danger: #a44a50;
  --danger-soft: #f8e7e8;
  --shadow-1: 0 1px 1px rgba(37, 25, 30, .02), 0 12px 35px rgba(37, 25, 30, .05);
  --shadow-2: 0 28px 90px rgba(32, 20, 25, .13);
  --radius-xs: 10px;
  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --sidebar: 276px;
  --ease: cubic-bezier(.2,.78,.26,1);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--paper); scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--paper);
  font-family: "IRANYekanXFaNum", "Segoe UI", Tahoma, Arial, sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body::selection { background: var(--wine-soft); color: var(--wine-deep); }
body.no-scroll { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
svg { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }

.ambient { position: fixed; pointer-events: none; z-index: 0; filter: blur(2px); opacity: .55; }
.ambient-one { width: 420px; height: 420px; left: -180px; top: -180px; border-radius: 50%; background: radial-gradient(circle, rgba(185,149,88,.12), transparent 68%); }
.ambient-two { width: 520px; height: 520px; right: 20%; bottom: -360px; border-radius: 50%; background: radial-gradient(circle, rgba(111,56,71,.09), transparent 70%); }

.app-shell { min-height: 100vh; position: relative; z-index: 1; }
.sidebar {
  position: fixed;
  inset: 0 0 0 auto;
  width: var(--sidebar);
  height: 100vh;
  padding: 22px 18px 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(185,149,88,.12), transparent 30%),
    linear-gradient(180deg, #1b1316 0%, #151012 100%);
  color: #f9f3f2;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 60;
  border-left: 1px solid rgba(255,255,255,.035);
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.12) transparent;
}
.sidebar::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.012) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.01) 1px, transparent 1px); background-size: 28px 28px; mask-image: linear-gradient(to bottom, #000, transparent 65%); }
.sidebar-top { display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 1; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-orbit { width: 46px; height: 46px; border: 1px solid rgba(231,216,186,.45); border-radius: 50%; display: grid; place-items: center; position: relative; flex: 0 0 auto; }
.brand-orbit::before { content: ""; position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--gold-soft); top: -3px; box-shadow: 0 0 14px rgba(231,216,186,.8); }
.brand-gem { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(145deg, #8d5866, #5d2f3b); color: #fff; font-family: Georgia, serif; font-weight: 700; font-size: 17px; box-shadow: inset 0 1px 0 rgba(255,255,255,.2); }
.brand-copy { display: grid; min-width: 0; }
.brand-copy strong { font-size: 16px; font-weight: 750; letter-spacing: -.02em; }
.brand-copy small { color: #9f9095; font-family: Georgia, serif; font-size: 8px; letter-spacing: .14em; margin-top: 4px; direction: ltr; }
.sidebar-close { display: none; }

.nav-caption { color: #7f7075; font-size: 10px; font-weight: 650; letter-spacing: .02em; margin: 34px 10px 10px; }
.nav-caption-space { margin-top: 24px; }
.primary-nav { display: grid; gap: 4px; position: relative; z-index: 1; }
.nav-link { min-height: 46px; padding: 0 12px; border-radius: 14px; display: grid; grid-template-columns: 30px 1fr 6px; align-items: center; gap: 10px; color: #baaeb1; font-size: 13px; font-weight: 550; position: relative; transition: color .2s var(--ease), background .2s var(--ease), transform .2s var(--ease); }
.nav-link::before { content: ""; position: absolute; inset: 5px; border: 1px solid transparent; border-radius: 11px; pointer-events: none; }
.nav-link:hover { color: #fff; background: rgba(255,255,255,.038); transform: translateX(-2px); }
.nav-link.active { color: #fff; background: rgba(255,255,255,.068); }
.nav-link.active::before { border-color: rgba(231,216,186,.07); }
.nav-link i { width: 5px; height: 5px; border-radius: 50%; background: transparent; transition: .2s; }
.nav-link.active i { background: var(--gold-soft); box-shadow: 0 0 13px rgba(231,216,186,.55); }
.nav-icon { width: 30px; height: 30px; display: grid; place-items: center; color: #8f7d82; transition: color .2s; }
.nav-icon svg { width: 19px; height: 19px; }
.nav-link.active .nav-icon, .nav-link:hover .nav-icon { color: #dccabf; }
.compact-nav .nav-link { min-height: 42px; }
.sidebar-spacer { flex: 1; min-height: 26px; }
.sidebar-card { position: relative; z-index: 1; margin: 20px 2px 14px; padding: 16px; border: 1px solid rgba(231,216,186,.12); border-radius: 18px; background: linear-gradient(145deg, rgba(185,149,88,.07), rgba(255,255,255,.025)); overflow: hidden; }
.sidebar-card::after { content: "◇"; position: absolute; left: -8px; bottom: -27px; font-size: 80px; color: rgba(231,216,186,.045); transform: rotate(8deg); }
.sidebar-card-kicker { display: block; color: #a9998f; font: 8px/1.4 Georgia, serif; letter-spacing: .13em; direction: ltr; margin-bottom: 8px; }
.sidebar-card strong { display: block; font-size: 12px; line-height: 1.9; font-weight: 600; color: #e8dfe1; max-width: 180px; }
.sidebar-card a { display: inline-flex; gap: 7px; align-items: center; margin-top: 12px; color: #cdb88f; font-size: 10px; position: relative; z-index: 1; }
.user-card { position: relative; z-index: 1; padding: 12px 6px 2px; border-top: 1px solid rgba(255,255,255,.06); display: grid; grid-template-columns: 36px 1fr 34px; gap: 10px; align-items: center; }
.avatar { width: 36px; height: 36px; border-radius: 13px; display: grid; place-items: center; background: #2a1f23; border: 1px solid rgba(255,255,255,.07); color: #eadbdd; font-weight: 700; }
.user-copy { min-width: 0; display: grid; }
.user-copy strong { font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-copy span { color: #7e7074; font-size: 9px; margin-top: 3px; }
.icon-button { width: 38px; height: 38px; display: inline-grid; place-items: center; border: 0; border-radius: 12px; background: transparent; color: inherit; cursor: pointer; transition: background .2s, color .2s, transform .2s; }
.icon-button:hover { background: rgba(255,255,255,.06); }
.icon-button:active { transform: scale(.96); }
.logout-button { color: #8e7e82; }
.logout-button:hover { color: #e7d8da; }

.sidebar-scrim { display: none; position: fixed; inset: 0; z-index: 55; border: 0; background: rgba(20,13,16,.48); backdrop-filter: blur(8px); }
.main { min-height: 100vh; margin-right: var(--sidebar); position: relative; }
.topbar { min-height: 126px; padding: 28px 42px 18px; display: flex; align-items: center; justify-content: space-between; gap: 28px; position: sticky; top: 0; z-index: 40; background: linear-gradient(to bottom, rgba(247,244,239,.96) 65%, rgba(247,244,239,.78) 84%, transparent); backdrop-filter: blur(14px); }
.topbar-leading { display: flex; align-items: center; gap: 14px; min-width: 0; }
.mobile-menu { display: none; flex: 0 0 auto; background: rgba(255,255,255,.7); border: 1px solid var(--line); }
.page-heading { min-width: 0; }
.eyebrow { display: flex; align-items: center; gap: 7px; color: var(--muted-2); font-size: 8px; line-height: 1; letter-spacing: .13em; font-family: Georgia, serif; direction: ltr; justify-content: flex-end; margin-bottom: 10px; }
.live-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(185,149,88,.09); }
.page-heading h1 { margin: 0; font-size: clamp(22px, 2.1vw, 31px); line-height: 1.15; font-weight: 770; letter-spacing: -.04em; }
.page-heading p { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.topbar-actions { display: flex; align-items: center; gap: 9px; flex: 0 0 auto; }
.search-trigger { height: 42px; min-width: 176px; border: 1px solid var(--line); background: rgba(255,255,255,.68); color: var(--muted); border-radius: 14px; padding: 0 12px; display: flex; align-items: center; gap: 9px; cursor: pointer; box-shadow: 0 1px 0 rgba(255,255,255,.7) inset; transition: background .2s, border .2s, transform .2s; }
.search-trigger:hover { background: #fff; border-color: var(--line-strong); transform: translateY(-1px); }
.search-trigger svg { width: 16px; height: 16px; }
.search-trigger span { font-size: 11px; flex: 1; text-align: right; }
kbd { font: 9px/1 "Segoe UI", sans-serif; color: #8f8387; border: 1px solid rgba(49,35,40,.12); background: rgba(255,255,255,.8); box-shadow: 0 1px 0 rgba(0,0,0,.03); border-radius: 6px; padding: 4px 6px; }

.content { padding: 4px 42px 54px; max-width: 1680px; margin: 0 auto; }
.page-enter { animation: pageEnter .48s var(--ease) both; transform-origin: 50% 0; }
@keyframes pageEnter { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
.app-footer { padding: 0 42px 26px; color: var(--muted-2); font-size: 9px; display: flex; justify-content: space-between; gap: 20px; opacity: .8; }
.app-footer span:last-child { font-family: Georgia, serif; direction: ltr; letter-spacing: .06em; }

/* Core surfaces */
.panel, .kpi, .mini-card, .portal-links a, .lux-card { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); backdrop-filter: blur(16px); }
.panel { border-radius: var(--radius-lg); padding: 22px; margin-bottom: 18px; position: relative; overflow: hidden; }
.panel::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.95), transparent); pointer-events: none; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.panel-head h3 { margin: 0; font-size: 14px; font-weight: 740; letter-spacing: -.02em; }
.panel-head p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.panel-head > a, .text-link { color: var(--wine); font-size: 10px; font-weight: 650; display: inline-flex; align-items: center; gap: 5px; }
.panel-head > a:hover, .text-link:hover { color: var(--wine-deep); }

.btn { min-height: 40px; border: 1px solid var(--line-strong); background: rgba(255,255,255,.76); color: var(--ink-soft); border-radius: 13px; padding: 9px 14px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 650; font-size: 11px; transition: transform .2s var(--ease), box-shadow .2s, background .2s, border .2s; }
.btn:hover { transform: translateY(-1px); border-color: rgba(111,56,71,.25); background: #fff; box-shadow: 0 10px 24px rgba(50,34,40,.07); }
.btn:active { transform: translateY(0) scale(.985); }
.btn.primary { border-color: transparent; color: #fff; background: var(--surface-dark); box-shadow: 0 8px 20px rgba(24,17,20,.16); }
.btn.primary:hover { background: #26191e; box-shadow: 0 12px 30px rgba(24,17,20,.22); }
.btn.wine { background: var(--wine); border-color: var(--wine); color: #fff; }
.btn.soft { background: var(--wine-soft); border-color: transparent; color: var(--wine-deep); box-shadow: none; }
.btn svg { width: 15px; height: 15px; }

.kpi-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpi-grid.compact { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpi { min-height: 132px; padding: 18px; border-radius: 22px; position: relative; overflow: hidden; transition: transform .22s var(--ease), border .22s, box-shadow .22s; }
.kpi:hover { transform: translateY(-2px); border-color: rgba(111,56,71,.14); box-shadow: 0 18px 40px rgba(38,25,31,.07); }
.kpi::after { content: ""; width: 62px; height: 62px; border: 1px solid rgba(185,149,88,.13); border-radius: 50%; position: absolute; left: -24px; top: -22px; }
.kpi span, .kpi small { display: block; color: var(--muted); font-size: 10px; line-height: 1.65; }
.kpi strong { display: block; margin: 18px 0 3px; font-size: clamp(20px, 1.7vw, 28px); line-height: 1; letter-spacing: -.04em; font-weight: 760; }
.kpi small { color: var(--muted-2); }
.kpi .trend { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; color: var(--ok); font-size: 9px; }

.two-col { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(310px, .8fr); gap: 18px; align-items: start; }
.three-col { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.muted { color: var(--muted); }

/* Dashboard signature */
.dashboard-stage { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(310px, .72fr); gap: 18px; margin-bottom: 18px; }
.hero-card { min-height: 278px; border-radius: 32px; color: #fff; padding: 28px; position: relative; overflow: hidden; background: #1a1215; box-shadow: 0 26px 70px rgba(26,18,21,.16); }
.hero-card::before { content: ""; position: absolute; width: 360px; height: 360px; left: -115px; top: -138px; border: 1px solid rgba(231,216,186,.18); border-radius: 50%; box-shadow: 0 0 0 34px rgba(231,216,186,.035), 0 0 0 72px rgba(231,216,186,.02); }
.hero-card::after { content: "◇"; position: absolute; left: 24px; bottom: -46px; color: rgba(231,216,186,.07); font: 180px/1 Georgia, serif; transform: rotate(-6deg); }
.hero-kicker { color: #9f8f94; font: 9px/1.4 Georgia, serif; direction: ltr; letter-spacing: .14em; }
.hero-card h2 { margin: 22px 0 10px; max-width: 580px; font-size: clamp(24px, 2.5vw, 39px); line-height: 1.55; letter-spacing: -.04em; font-weight: 700; position: relative; z-index: 1; }
.hero-card h2 em { color: #d7bc86; font-style: normal; }
.hero-card > p { max-width: 520px; color: #a99ba0; font-size: 11px; line-height: 2; margin: 0; position: relative; z-index: 1; }
.hero-metrics { display: flex; gap: 30px; align-items: end; margin-top: 30px; position: relative; z-index: 1; }
.hero-metric span { display: block; color: #7f7075; font-size: 9px; }
.hero-metric strong { display: block; color: #f5edef; font-size: 16px; margin-top: 4px; }
.hero-divider { width: 1px; height: 32px; background: rgba(255,255,255,.08); }

.radar-card { border-radius: 32px; padding: 23px; background: linear-gradient(160deg, rgba(255,255,255,.9), rgba(255,252,247,.72)); border: 1px solid var(--line); box-shadow: var(--shadow-1); min-height: 278px; display: flex; flex-direction: column; }
.radar-head { display: flex; align-items: center; justify-content: space-between; }
.radar-head span:first-child { font-size: 11px; font-weight: 720; }
.radar-head .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 5px rgba(46,114,87,.08); }
.radar-list { display: grid; gap: 12px; margin-top: 24px; }
.radar-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; }
.radar-label { display: grid; gap: 4px; }
.radar-label span { font-size: 10px; color: var(--ink-soft); }
.radar-label small { font-size: 8px; color: var(--muted-2); }
.radar-value { min-width: 36px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--paper-2); color: var(--ink); font-size: 11px; font-weight: 720; }
.radar-track { grid-column: 1 / -1; height: 4px; border-radius: 99px; background: #eee8e3; overflow: hidden; }
.radar-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--wine), #a97d88); }

.sales-chart { min-height: 250px; display: flex; flex-direction: column; }
.chart-meta { display: flex; gap: 28px; margin-bottom: 20px; }
.chart-meta div { display: grid; gap: 5px; }
.chart-meta span { color: var(--muted); font-size: 9px; }
.chart-meta strong { font-size: 17px; }
.bars { height: 154px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; align-items: end; border-bottom: 1px solid var(--line); padding: 0 4px; }
.bar-item { height: 100%; display: flex; align-items: end; justify-content: center; position: relative; }
.bar-item i { width: min(32px, 60%); min-height: 5px; border-radius: 10px 10px 3px 3px; background: linear-gradient(to top, #76505a, #b9999f); position: relative; transition: height .45s var(--ease), transform .2s; }
.bar-item:hover i { transform: translateY(-2px); background: linear-gradient(to top, var(--wine-deep), var(--wine)); }
.bar-item i::after { content: attr(data-value); position: absolute; bottom: calc(100% + 7px); left: 50%; transform: translateX(-50%); white-space: nowrap; font-style: normal; font-size: 8px; color: var(--muted); opacity: 0; transition: .2s; }
.bar-item:hover i::after { opacity: 1; }
.bar-item span { position: absolute; top: calc(100% + 8px); font-size: 8px; color: var(--muted-2); white-space: nowrap; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 0 -6px; padding: 0 6px 4px; scrollbar-width: thin; scrollbar-color: #d5cdca transparent; }
table { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 730px; }
th, td { text-align: right; padding: 14px 12px; border-bottom: 1px solid rgba(49,35,40,.075); font-size: 11px; white-space: nowrap; vertical-align: middle; }
th { color: var(--muted-2); font-size: 9px; font-weight: 650; letter-spacing: .01em; background: transparent; }
tbody tr { transition: background .16s; }
tbody tr:hover { background: rgba(111,56,71,.025); }
tbody tr:last-child td { border-bottom: 0; }
td > a { font-weight: 680; }
.product-cell { display: flex; align-items: center; gap: 11px; }
.product-cell img, .thumb-placeholder { width: 44px; height: 44px; border-radius: 14px; object-fit: cover; background: var(--wine-soft); display: grid; place-items: center; color: var(--wine); border: 1px solid rgba(111,56,71,.07); }
.product-cell strong { max-width: 260px; overflow: hidden; text-overflow: ellipsis; display: block; }
.row-number { direction: ltr; font-variant-numeric: tabular-nums; }

.badge, .stock { display: inline-flex; align-items: center; justify-content: center; min-height: 25px; padding: 4px 9px; border-radius: 99px; font-size: 9px; font-weight: 650; line-height: 1; background: var(--wine-soft); color: var(--wine-deep); }
.badge::before, .stock::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .55; margin-left: 6px; }
.badge.success, .stock-in { background: var(--ok-soft); color: var(--ok); }
.badge.warning, .stock-low { background: var(--warn-soft); color: var(--warn); }
.badge.danger, .stock-out { background: var(--danger-soft); color: var(--danger); }
.badge.neutral { background: #efebe8; color: #6e6266; }
.empty { text-align: center !important; padding: 38px 18px !important; color: var(--muted); }

/* Lists and alerts */
.stack-list { display: grid; gap: 8px; }
.stack-item { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 13px; border: 1px solid rgba(49,35,40,.07); background: rgba(255,255,255,.46); border-radius: 15px; transition: border .2s, transform .2s; }
.stack-item:hover { border-color: rgba(111,56,71,.15); transform: translateX(-2px); }
.stack-item strong, .stack-item span { display: block; }
.stack-item strong { font-size: 10px; }
.stack-item span { color: var(--muted); font-size: 8px; margin-top: 5px; }
.stack-item b { min-width: 32px; height: 29px; display: grid; place-items: center; border-radius: 10px; background: var(--danger-soft); color: var(--danger); font-size: 10px; }
.alert { padding: 12px 14px; border: 1px solid rgba(164,74,80,.13); background: var(--danger-soft); color: var(--danger); border-radius: 14px; font-size: 10px; margin-bottom: 16px; }

/* Inputs & forms */
.filters { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid rgba(49,35,40,.07); }
.filters input, .filters select, .grid-form input, .grid-form select, .grid-form textarea, .form-stack input, .form-stack select, .form-stack textarea, .command-head input {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.72);
  color: var(--ink);
  border-radius: 13px;
  padding: 10px 12px;
  min-height: 41px;
  outline: none;
  transition: border .2s, box-shadow .2s, background .2s;
}
.filters input { min-width: 255px; }
.filters select { min-width: 150px; }
.filters input:focus, .filters select:focus, .grid-form input:focus, .grid-form select:focus, .grid-form textarea:focus, .form-stack input:focus, .form-stack select:focus, .form-stack textarea:focus { border-color: rgba(111,56,71,.35); background: #fff; box-shadow: 0 0 0 4px rgba(111,56,71,.06); }
.filters input::placeholder, .grid-form input::placeholder, .form-stack input::placeholder { color: #b6adb0; }
.grid-form { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.grid-form label, .form-stack label { display: grid; gap: 7px; color: var(--ink-soft); font-size: 10px; font-weight: 600; }
.grid-form textarea { min-height: 120px; resize: vertical; line-height: 1.9; }
.span-2 { grid-column: span 2; }
.form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; margin-top: 8px; }
.error { color: var(--danger); font-size: 9px; }
.form-stack { display: grid; gap: 14px; margin-top: 16px; }
.form-panel { padding: 26px; }
.inline-form { display: flex; align-items: center; gap: 7px; }
.inline-form input { width: 82px; min-height: 35px; border: 1px solid var(--line); border-radius: 11px; background: #fff; padding: 7px 9px; outline: none; }

/* pagination */
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 18px; }
.pagination a, .pagination span { min-height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; font-size: 9px; }
.pagination a { padding: 0 12px; background: #fff; border: 1px solid var(--line); color: var(--wine); }
.pagination span { padding: 0 9px; color: var(--muted); }

/* Order timeline */
.timeline { position: relative; display: grid; gap: 0; }
.timeline::before { content: ""; position: absolute; right: 8px; top: 14px; bottom: 14px; width: 1px; background: linear-gradient(var(--gold-soft), var(--line)); }
.timeline-item { position: relative; padding: 8px 28px 18px 0; }
.timeline-item::before { content: ""; position: absolute; right: 4px; top: 14px; width: 9px; height: 9px; border: 2px solid var(--surface-solid); border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 1px rgba(185,149,88,.35); }
.timeline-item strong { font-size: 10px; }
.timeline-item span { display: block; color: var(--muted-2); font-size: 8px; margin-top: 5px; }
.timeline-item p { margin: 7px 0 0; color: var(--muted); font-size: 9px; line-height: 1.8; }

/* customer portal */
.portal-links { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; background: transparent; border: 0; box-shadow: none; backdrop-filter: none; }
.portal-links a { min-height: 128px; border-radius: 22px; padding: 18px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; font-size: 11px; font-weight: 700; transition: transform .2s, box-shadow .2s, border .2s; }
.portal-links a::after { content: "↗"; align-self: flex-end; color: var(--muted-2); font-size: 14px; font-weight: 400; }
.portal-links a:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(38,25,31,.07); border-color: rgba(111,56,71,.15); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.mini-card { border-radius: 22px; padding: 20px; min-height: 128px; }
.mini-card strong, .mini-card span { display: block; }
.mini-card strong { font-size: 12px; }
.mini-card span, .mini-card p { color: var(--muted); font-size: 10px; line-height: 1.9; }
.profile-card { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.profile-card > div { border: 1px solid var(--line); border-radius: 17px; padding: 17px; background: rgba(255,255,255,.5); }
.profile-card span, .profile-card strong { display: block; }
.profile-card span { color: var(--muted); font-size: 9px; margin-bottom: 8px; }
.profile-card strong { font-size: 12px; }

/* integrations */
.integration-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.integration-card h3 { margin: 0 0 6px; font-size: 14px; }
.integration-card p { margin: 0; font-size: 10px; }
.sync-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; padding-top: 17px; border-top: 1px solid var(--line); }

/* Toast */
.toast-stack { position: fixed; left: 28px; top: 24px; z-index: 95; display: grid; gap: 8px; pointer-events: none; }
.toast { min-width: 260px; max-width: 360px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.94); box-shadow: var(--shadow-2); backdrop-filter: blur(14px); display: flex; align-items: center; gap: 9px; font-size: 10px; animation: toastIn .32s var(--ease) both; }
.toast > span { width: 7px; height: 7px; border-radius: 50%; background: var(--wine); }
.toast.success > span { background: var(--ok); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-7px); } }

/* Command palette */
.command-layer { position: fixed; inset: 0; z-index: 120; display: grid; place-items: start center; padding-top: min(14vh, 120px); visibility: hidden; opacity: 0; transition: opacity .18s, visibility .18s; }
.command-layer.open { visibility: visible; opacity: 1; }
.command-backdrop { position: absolute; inset: 0; border: 0; background: rgba(24,16,19,.42); backdrop-filter: blur(10px); cursor: default; }
.command-box { width: min(620px, calc(100vw - 30px)); max-height: min(660px, 76vh); border-radius: 24px; background: #fffdfa; border: 1px solid rgba(255,255,255,.55); box-shadow: 0 36px 120px rgba(25,15,19,.27); position: relative; z-index: 1; overflow: hidden; transform: translateY(-8px) scale(.985); transition: transform .22s var(--ease); }
.command-layer.open .command-box { transform: none; }
.command-head { height: 62px; display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.command-head svg { color: var(--muted); width: 18px; height: 18px; }
.command-head input { flex: 1; border: 0; background: transparent; box-shadow: none !important; padding: 0; min-height: 40px; font-size: 12px; }
.command-caption { padding: 13px 18px 7px; color: var(--muted-2); font-size: 8px; font-weight: 650; }
.command-list { padding: 4px 9px 10px; overflow-y: auto; max-height: 470px; }
.command-list a { min-height: 58px; border-radius: 14px; padding: 8px 10px; display: grid; grid-template-columns: 38px 1fr 20px; gap: 9px; align-items: center; transition: background .15s; }
.command-list a:hover, .command-list a.active { background: var(--wine-soft); }
.command-list a[hidden] { display: none; }
.command-symbol { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 12px; display: grid; place-items: center; color: var(--wine); background: #fff; }
.command-list a div { display: grid; gap: 3px; }
.command-list strong { font-size: 10px; }
.command-list small { color: var(--muted); font-size: 8px; }
.command-list b { color: var(--muted-2); font-size: 11px; font-weight: 400; opacity: 0; }
.command-list a:hover b, .command-list a.active b { opacity: 1; }
.command-footer { height: 38px; padding: 0 14px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: flex-end; gap: 16px; color: var(--muted-2); font-size: 8px; }
.command-footer span { display: flex; align-items: center; gap: 4px; }

/* Auth */
body.is-auth { background: #171114; }
.auth-main { min-height: 100vh; position: relative; overflow: hidden; background: #171114; display: grid; place-items: center; padding: 26px; }
.auth-main::before { content: ""; position: absolute; width: min(72vw, 940px); aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(231,216,186,.09); box-shadow: 0 0 0 70px rgba(231,216,186,.018), 0 0 0 150px rgba(231,216,186,.012); left: -24%; top: -52%; }
.auth-main::after { content: "◇"; position: absolute; font: min(54vw, 560px)/1 Georgia, serif; color: rgba(231,216,186,.025); right: -5vw; bottom: -16vw; transform: rotate(15deg); }
.auth-content { width: 100%; position: relative; z-index: 1; }
.auth-card { width: min(440px, 100%); margin: auto; border: 1px solid rgba(255,255,255,.07); border-radius: 30px; background: rgba(255,255,255,.965); padding: 30px; box-shadow: 0 40px 130px rgba(0,0,0,.34); }
.auth-brand { margin-bottom: 30px; color: var(--ink); }
.auth-brand .brand-copy small { color: var(--muted); }
.auth-card h2 { margin: 0; font-size: 23px; letter-spacing: -.04em; }
.auth-card > p { margin: 9px 0 0; font-size: 10px; line-height: 1.9; }
.auth-card .btn.primary { margin-top: 4px; min-height: 45px; }
.auth-note { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted-2); font-size: 8px; text-align: center; }

/* utility */
.reveal { opacity: 0; transform: translateY(9px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.reveal.revealed { opacity: 1; transform: none; }
.copy-button.copied { color: var(--ok); }

@media (max-width: 1320px) {
  .kpi-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .dashboard-stage { grid-template-columns: 1.4fr .8fr; }
}
@media (max-width: 1080px) {
  :root { --sidebar: 250px; }
  .topbar, .content { padding-right: 28px; padding-left: 28px; }
  .two-col, .dashboard-stage { grid-template-columns: 1fr; }
  .radar-card { min-height: auto; }
  .portal-links { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .sidebar { width: min(286px, 86vw); transform: translateX(105%); transition: transform .3s var(--ease); box-shadow: -30px 0 90px rgba(24,16,19,.18); }
  .sidebar.open { transform: none; }
  .sidebar-close { display: inline-grid; color: #9f9095; }
  .sidebar-is-open .sidebar-scrim { display: block; }
  .main { margin-right: 0; }
  .mobile-menu { display: inline-grid; }
  .topbar { min-height: 112px; padding-top: 18px; }
  .search-trigger { min-width: 42px; width: 42px; padding: 0; justify-content: center; }
  .search-trigger span, .search-trigger kbd { display: none; }
  .cards { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 680px) {
  .topbar { padding: 16px 16px 14px; align-items: flex-start; min-height: 100px; }
  .content { padding: 5px 14px 36px; }
  .app-footer { padding: 0 16px 20px; }
  .app-footer span:last-child { display: none; }
  .page-heading p { max-width: 240px; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
  .eyebrow { display: none; }
  .page-heading h1 { font-size: 21px; margin-top: 3px; }
  .kpi-grid, .kpi-grid.compact { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; }
  .kpi { min-height: 108px; padding: 14px; border-radius: 18px; }
  .kpi strong { margin-top: 14px; font-size: 21px; }
  .hero-card { min-height: 310px; padding: 22px; border-radius: 25px; }
  .hero-card h2 { margin-top: 18px; font-size: 25px; }
  .hero-metrics { gap: 16px; flex-wrap: wrap; }
  .radar-card, .panel { border-radius: 22px; padding: 17px; }
  .grid-form { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .filters { display: grid; grid-template-columns: 1fr; }
  .filters input, .filters select, .filters .btn { width: 100%; min-width: 0; }
  .portal-links, .cards { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .profile-card { grid-template-columns: 1fr; }
  .topbar-actions .btn span.optional { display: none; }
  .toast-stack { left: 12px; right: 12px; top: 12px; }
  .toast { min-width: 0; max-width: none; }
  .command-layer { padding-top: 7vh; }
}
@media (max-width: 430px) {
  .kpi-grid, .kpi-grid.compact { grid-template-columns: 1fr 1fr; }
  .portal-links, .cards { grid-template-columns: 1fr; }
  .topbar-actions { gap: 5px; }
  .btn { padding-inline: 11px; }
  .hero-card h2 { font-size: 23px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Page-specific composition */
.product-cell > div:last-child { min-width: 0; }
.product-cell > div:last-child > span { display: block; font-size: 8px; margin-top: 5px; }
.product-editor { align-items: start; }
.product-editor aside { position: sticky; top: 132px; }
.editor-side { overflow: visible; }
.product-editor-preview { display: block; width: 100%; max-height: 240px; object-fit: contain; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.product-editor input[type="file"] { width: 100%; min-width: 0; padding: 10px; }
.product-editor details { display: grid; gap: 12px; }
.product-editor details[open] label { display: grid; gap: 7px; margin-top: 12px; }
.editor-note { margin-top: 18px; padding: 14px; display: grid; grid-template-columns: 28px 1fr; gap: 9px; border: 1px solid rgba(185,149,88,.15); border-radius: 15px; background: rgba(231,216,186,.12); }
.editor-note > span { color: var(--gold); font: 20px/1 Georgia, serif; }
.editor-note p { margin: 0; color: #746967; font-size: 9px; line-height: 1.95; }
.editor-actions { margin-top: 20px; padding-top: 17px; border-top: 1px solid var(--line); }
.feature-toggle { display: flex !important; grid-template-columns: none !important; align-items: center; gap: 9px !important; min-height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.58); cursor: pointer; }
.feature-toggle input { width: 16px !important; height: 16px !important; min-height: 0 !important; accent-color: var(--wine); box-shadow: none !important; }

.order-summary { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1px; margin-bottom: 18px; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; background: var(--line); box-shadow: var(--shadow-1); }
.order-summary > div { min-height: 102px; padding: 18px; background: rgba(255,255,255,.84); display: flex; flex-direction: column; justify-content: center; gap: 9px; }
.order-summary > div > span { color: var(--muted); font-size: 9px; }
.order-summary > div > strong { font-size: 12px; }
.customer-identity { display: flex; align-items: center; gap: 11px; margin: 18px 0; }
.customer-identity .avatar { color: var(--wine); background: var(--wine-soft); border: 0; }
.customer-identity div:last-child { display: grid; gap: 4px; }
.customer-identity strong { font-size: 11px; }
.customer-identity span { color: var(--muted); font-size: 9px; }
.address-box { padding: 13px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); color: var(--muted); font-size: 9px; line-height: 1.9; margin-bottom: 12px; }
.customer-sheet .btn { width: 100%; }

.inventory-overview { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin-bottom: 18px; }
.inventory-stat { min-height: 154px; padding: 20px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow-1); position: relative; overflow: hidden; transition: transform .2s, border .2s, box-shadow .2s; }
.inventory-stat:hover, .inventory-stat.active { transform: translateY(-2px); border-color: rgba(111,56,71,.18); box-shadow: 0 18px 44px rgba(38,25,31,.075); }
.inventory-stat span, .inventory-stat small, .inventory-stat strong { display: block; position: relative; z-index: 1; }
.inventory-stat span { color: var(--muted); font-size: 10px; }
.inventory-stat strong { margin-top: 18px; font-size: 31px; letter-spacing: -.04em; }
.inventory-stat small { color: var(--muted-2); font-size: 8px; margin-top: 5px; }
.inventory-stat i { position: absolute; width: 86px; height: 86px; left: -18px; bottom: -28px; border-radius: 50%; background: var(--wine-soft); opacity: .55; }
.inventory-stat.warning i { background: var(--warn-soft); }
.inventory-stat.danger i { background: var(--danger-soft); }
.inventory-stat.active::after { content: ""; position: absolute; right: 20px; bottom: 18px; width: 6px; height: 6px; border-radius: 50%; background: var(--wine); box-shadow: 0 0 0 5px rgba(111,56,71,.07); }

.crm-intro { min-height: 190px; border-radius: 28px; background: linear-gradient(120deg, #201619, #171114); color: #fff; margin-bottom: 18px; padding: 28px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 30px; align-items: center; position: relative; overflow: hidden; }
.crm-intro::after { content: "◎"; position: absolute; left: -18px; bottom: -90px; font: 210px/1 Georgia, serif; color: rgba(231,216,186,.04); }
.crm-kicker { color: #9d8f94; font: 8px/1.4 Georgia, serif; letter-spacing: .16em; direction: ltr; }
.crm-intro h2 { margin: 12px 0 0; font-size: clamp(20px, 2vw, 31px); line-height: 1.6; font-weight: 680; letter-spacing: -.04em; }
.crm-intro p { margin: 0; color: #a99ba0; font-size: 10px; line-height: 2.1; max-width: 430px; position: relative; z-index: 1; }
.customer-cell { display: flex; align-items: center; gap: 10px; }
.customer-dot { width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; background: var(--wine-soft); color: var(--wine); font-size: 10px; font-weight: 750; }
.loyalty-pill { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 99px; background: rgba(185,149,88,.12); color: #82652f; font-size: 9px; font-weight: 700; }

.report-strip { display: grid; grid-template-columns: 1.7fr repeat(3, .7fr); border: 1px solid var(--line); border-radius: 28px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow-1); margin-bottom: 18px; }
.report-strip > div { min-height: 154px; padding: 22px; border-left: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; }
.report-strip > div:last-child { border-left: 0; }
.report-strip span, .report-strip small { color: var(--muted); font-size: 9px; }
.report-strip strong { margin: 10px 0 4px; font-size: 23px; letter-spacing: -.04em; }
.report-main { background: #1b1316; color: #fff; position: relative; overflow: hidden; }
.report-main::after { content: "⌁"; position: absolute; left: -8px; bottom: -52px; color: rgba(231,216,186,.05); font: 140px/1 Georgia, serif; }
.report-main > span, .report-main p { color: #9f9095; }
.report-main strong { font-size: clamp(25px, 2.5vw, 38px); color: #f8f1f2; position: relative; z-index: 1; }
.report-main strong small { color: #bdaa86; font-size: 10px; }
.report-main p { margin: 3px 0 0; font-size: 9px; position: relative; z-index: 1; }
.rank { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 10px; background: var(--paper-2); color: var(--muted); font: 10px/1 Georgia, serif; }

.integration-hero { min-height: 210px; padding: 26px; margin-bottom: 18px; border-radius: 28px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); display: grid; grid-template-columns: 78px 1fr auto; gap: 20px; align-items: center; }
.integration-mark { width: 70px; height: 70px; border-radius: 22px; display: grid; place-items: center; background: #96588a; color: #fff; font: 700 28px/1 Georgia, serif; box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 14px 30px rgba(90,46,83,.14); }
.integration-copy > span { color: var(--muted-2); font: 8px/1.4 Georgia, serif; letter-spacing: .14em; direction: ltr; }
.integration-copy h2 { margin: 8px 0 7px; font-size: 21px; letter-spacing: -.035em; }
.integration-copy p { margin: 0; max-width: 650px; color: var(--muted); font-size: 9px; line-height: 1.95; }
.integration-state { min-width: 180px; padding: 13px; border: 1px solid var(--line); border-radius: 16px; display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.48); }
.state-light { width: 9px; height: 9px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 0 5px rgba(164,74,80,.08); flex: 0 0 auto; }
.state-light.on { background: var(--ok); box-shadow: 0 0 0 5px rgba(46,114,87,.08); }
.integration-state div { display: grid; gap: 3px; }
.integration-state strong { font-size: 9px; }
.integration-state small { color: var(--muted); font-size: 8px; }
.sync-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); }
.sync-grid form { margin: 0; }
.sync-tile { width: 100%; min-height: 86px; border: 1px solid var(--line); border-radius: 17px; background: rgba(255,255,255,.55); padding: 13px; display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; text-align: right; color: var(--ink); cursor: pointer; transition: border .2s, transform .2s, background .2s; }
.sync-tile:hover { border-color: rgba(111,56,71,.18); background: #fff; transform: translateY(-2px); }
.sync-tile > span { width: 34px; height: 34px; border-radius: 11px; background: var(--wine-soft); color: var(--wine); display: grid; place-items: center; font-size: 15px; }
.sync-tile div { display: grid; gap: 3px; }
.sync-tile strong { font-size: 10px; }
.sync-tile small { color: var(--muted-2); font-size: 8px; direction: ltr; text-align: right; }
.sync-tile b { color: var(--wine); font-size: 9px; font-weight: 650; }

.settings-layout { grid-template-columns: minmax(0,1.6fr) minmax(280px,.7fr); }
.settings-guide { min-height: 360px; background: #1b1316; color: #fff; padding: 26px; }
.settings-guide::before { display: none; }
.settings-gem { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: #d8c08c; border: 1px solid rgba(231,216,186,.18); font: 22px/1 Georgia, serif; margin-bottom: 40px; }
.settings-kicker { color: #827277; font: 8px/1 Georgia, serif; letter-spacing: .14em; }
.settings-guide h3 { font-size: 21px; line-height: 1.6; margin: 10px 0; }
.settings-guide p, .settings-guide small { color: #9e9094; font-size: 9px; line-height: 2; }
.settings-divider { height: 1px; background: rgba(255,255,255,.07); margin: 24px 0 18px; }

.member-hero { min-height: 230px; border-radius: 30px; padding: 28px; margin-bottom: 18px; background: #1b1316; color: #fff; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px; position: relative; overflow: hidden; }
.member-hero::after { content: "◇"; position: absolute; left: -10px; bottom: -75px; font: 200px/1 Georgia, serif; color: rgba(231,216,186,.05); transform: rotate(-8deg); }
.member-kicker { color: #94858a; font: 8px/1.4 Georgia, serif; letter-spacing: .16em; direction: ltr; }
.member-hero h2 { margin: 14px 0 8px; font-size: clamp(22px,2.4vw,34px); letter-spacing: -.04em; }
.member-hero p { color: #9d8f93; font-size: 10px; line-height: 2; margin: 0; max-width: 520px; }
.member-score { min-width: 150px; aspect-ratio: 1; border: 1px solid rgba(231,216,186,.13); border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; z-index: 1; }
.member-score::before { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(231,216,186,.05); border-radius: 50%; }
.member-score span { color: #827277; font-size: 8px; }
.member-score strong { color: #d9c18d; font-size: 30px; margin: 6px 0; }
.member-score small { color: #6f6065; font: 7px/1 Georgia, serif; letter-spacing: .08em; }

.loyalty-hero { min-height: 205px; border-radius: 28px; margin-bottom: 18px; padding: 28px; background: linear-gradient(120deg, #efe5d3, #f8f4ec); border: 1px solid rgba(185,149,88,.16); display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; }
.loyalty-hero > div { min-width: 190px; }
.loyalty-hero span { display: block; color: #9d8352; font: 8px/1.4 Georgia, serif; letter-spacing: .13em; direction: ltr; }
.loyalty-hero strong { display: block; font-size: 52px; line-height: 1; margin: 10px 0; color: #5f4a25; letter-spacing: -.05em; }
.loyalty-hero small { color: #8d7953; font-size: 9px; }
.loyalty-hero p { color: #77694e; font-size: 10px; line-height: 2; max-width: 520px; }

.profile-shell { min-height: 180px; margin-bottom: 18px; padding: 24px; border-radius: 28px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); display: grid; grid-template-columns: 78px 1fr auto; align-items: center; gap: 18px; }
.profile-monogram { width: 72px; height: 72px; display: grid; place-items: center; border-radius: 24px; background: #1b1316; color: #eadbdd; font-size: 25px; font-weight: 750; }
.profile-name span { color: var(--muted-2); font: 8px/1.4 Georgia, serif; letter-spacing: .13em; }
.profile-name h2 { margin: 7px 0 5px; font-size: 21px; }
.profile-name p { margin: 0; color: var(--muted); font-size: 9px; }
.profile-score { min-width: 100px; padding-right: 20px; border-right: 1px solid var(--line); }
.profile-score span { display: block; color: var(--muted); font-size: 9px; }
.profile-score strong { display: block; font-size: 26px; margin-top: 5px; color: var(--wine); }

.card-symbol { width: 32px; height: 32px; border-radius: 11px; display: grid !important; place-items: center; background: var(--wine-soft); color: var(--wine) !important; margin-bottom: 17px; font: 16px/1 Georgia, serif; }
.coupon-code { direction: ltr; text-align: right; font-family: "Segoe UI", sans-serif; letter-spacing: .06em; }
.review-stars { color: var(--gold); font-size: 12px; direction: ltr; text-align: right; margin-bottom: 14px; letter-spacing: .08em; }
.auth-kicker { display: block; color: var(--muted-2); font: 8px/1 Georgia, serif; letter-spacing: .14em; direction: ltr; margin-bottom: 9px; }

@media (max-width: 1080px) {
  .product-editor aside { position: static; }
  .report-strip { grid-template-columns: 1.3fr repeat(3,.7fr); }
  .integration-hero { grid-template-columns: 66px 1fr; }
  .integration-state { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .order-summary { grid-template-columns: repeat(2,1fr); }
  .inventory-overview { grid-template-columns: 1fr 1fr; }
  .inventory-overview .inventory-stat:first-child { grid-column: 1/-1; }
  .crm-intro { grid-template-columns: 1fr; gap: 16px; }
  .report-strip { grid-template-columns: 1fr 1fr; }
  .report-main { grid-column: 1/-1; }
  .report-strip > div { border-bottom: 1px solid var(--line); }
  .sync-grid { grid-template-columns: 1fr; }
  .settings-layout { grid-template-columns: 1fr; }
  .member-hero { grid-template-columns: 1fr; }
  .member-score { min-width: 130px; width: 130px; justify-self: start; }
  .loyalty-hero { grid-template-columns: 1fr; gap: 14px; }
  .profile-shell { grid-template-columns: 62px 1fr; }
  .profile-monogram { width: 60px; height: 60px; border-radius: 20px; }
  .profile-score { grid-column: 1/-1; border-right: 0; border-top: 1px solid var(--line); padding: 13px 0 0; }
}
@media (max-width: 480px) {
  .order-summary { grid-template-columns: 1fr; }
  .inventory-overview { grid-template-columns: 1fr; }
  .inventory-overview .inventory-stat:first-child { grid-column: auto; }
  .report-strip { grid-template-columns: 1fr; }
  .report-main { grid-column: auto; }
  .integration-hero { grid-template-columns: 52px 1fr; padding: 18px; }
  .integration-mark { width: 50px; height: 50px; border-radius: 16px; font-size: 20px; }
  .integration-copy h2 { font-size: 17px; }
  .member-score { width: 116px; min-width: 116px; }
}

/* =========================================================
   V3 TYPOGRAPHY + CUSTOMER EXPERIENCE
   Larger type scale, calmer density, dedicated customer UI.
   ========================================================= */

/* Management typography scale */
body { font-size: 15px; line-height: 1.75; }
.brand-copy strong { font-size: 18px; }
.brand-copy small { font-size: 9px; }
.nav-caption { font-size: 12px; }
.nav-link { min-height: 50px; font-size: 14.5px; font-weight: 620; }
.sidebar-card strong { font-size: 14px; }
.sidebar-card a { font-size: 12px; }
.user-copy strong { font-size: 13px; }
.user-copy span { font-size: 11px; }
.eyebrow { font-size: 10px; }
.page-heading h1 { font-size: clamp(29px, 2.6vw, 42px); line-height: 1.22; }
.page-heading p { font-size: 14px; max-width: 720px; }
.search-trigger span { font-size: 13px; }
.app-footer { font-size: 11px; }
.panel-head h3 { font-size: 17px; }
.panel-head p { font-size: 12.5px; line-height: 1.8; }
.panel-head > a, .text-link { font-size: 12.5px; }
.btn { min-height: 44px; font-size: 13px; padding: 10px 16px; }
.kpi span, .kpi small { font-size: 12px; }
.kpi strong { font-size: clamp(25px, 2vw, 34px); }
.kpi .trend { font-size: 11px; }
.hero-card h2 { font-size: clamp(30px, 3vw, 46px); }
.hero-card > p { font-size: 13.5px; }
.hero-metric span { font-size: 11px; }
.hero-metric strong { font-size: 19px; }
.radar-head span:first-child { font-size: 14px; }
.radar-label span { font-size: 12.5px; }
.radar-label small { font-size: 10.5px; }
.radar-value { font-size: 13px; }
.chart-meta span { font-size: 11px; }
.chart-meta strong { font-size: 20px; }
th, td { font-size: 13px; padding: 16px 13px; }
th { font-size: 11px; }
.badge, .stock { min-height: 29px; font-size: 11px; }
.stack-item strong { font-size: 12.5px; }
.stack-item span { font-size: 10.5px; }
.stack-item b { font-size: 12px; }
.alert { font-size: 12px; }
.grid-form label, .form-stack label { font-size: 12.5px; }
.filters input, .filters select, .grid-form input, .grid-form select, .grid-form textarea, .form-stack input, .form-stack select, .form-stack textarea { font-size: 14px; min-height: 46px; }
.error, .field-error { font-size: 11.5px; }
.pagination a, .pagination span { font-size: 11px; }
.timeline-item strong { font-size: 13px; }
.timeline-item span { font-size: 10.5px; }
.timeline-item p { font-size: 12px; }
.integration-card h3 { font-size: 17px; }
.integration-card p { font-size: 12.5px; }
.toast { font-size: 12px; }
.command-head input { font-size: 14px; }
.command-caption { font-size: 10.5px; }
.command-list strong { font-size: 13px; }
.command-list small { font-size: 11px; }
.command-footer { font-size: 10px; }
.product-cell > div:last-child > span { font-size: 10.5px; }
.editor-note p, .address-box, .crm-intro p, .integration-copy p, .settings-guide p, .settings-guide small { font-size: 11.5px; }
.order-summary > div > span, .customer-identity span, .report-strip span, .report-strip small, .integration-state small, .sync-tile small { font-size: 11px; }
.order-summary > div > strong, .customer-identity strong, .sync-tile strong { font-size: 13.5px; }
.inventory-stat span { font-size: 12px; }
.inventory-stat small { font-size: 10.5px; }
.crm-intro h2 { font-size: clamp(27px, 2.6vw, 39px); }
.customer-dot { font-size: 12px; }
.loyalty-pill { font-size: 11px; }
.report-strip strong { font-size: 28px; }
.integration-copy h2 { font-size: 26px; }
.integration-state strong { font-size: 12px; }
.sync-tile b { font-size: 11px; }
.settings-guide h3 { font-size: 27px; }

@media (max-width: 680px) {
  .page-heading h1 { font-size: 25px; }
  .page-heading p { font-size: 12.5px; }
  .nav-link { font-size: 14px; }
  .kpi strong { font-size: 24px; }
  .hero-card h2 { font-size: 30px; }
  th, td { font-size: 12px; }
}

/* Auth v2 */
.auth-main { padding: 24px; background: #120d0f; }
.auth-content { max-width: 1180px; margin: auto; }
.auth-stage { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(420px, .78fr); min-height: min(720px, calc(100vh - 48px)); border: 1px solid rgba(255,255,255,.07); border-radius: 38px; overflow: hidden; box-shadow: 0 40px 140px rgba(0,0,0,.35); background: #1a1215; }
.auth-story { padding: 52px; color: #fff; display: flex; flex-direction: column; justify-content: space-between; position: relative; isolation: isolate; overflow: hidden; background:
  radial-gradient(circle at 15% 18%, rgba(185,149,88,.18), transparent 26%),
  radial-gradient(circle at 76% 72%, rgba(111,56,71,.34), transparent 40%),
  linear-gradient(145deg, #1a1215, #25171c 58%, #151012); }
.auth-story::before { content: ""; position: absolute; width: 440px; height: 440px; border: 1px solid rgba(231,216,186,.12); border-radius: 50%; left: -160px; bottom: -165px; box-shadow: 0 0 0 62px rgba(231,216,186,.02), 0 0 0 124px rgba(231,216,186,.012); z-index: -1; }
.auth-story::after { content: "◇"; position: absolute; left: 28px; bottom: -42px; font: 240px/1 Georgia, serif; color: rgba(231,216,186,.045); z-index: -1; transform: rotate(-10deg); }
.auth-story-code::after { content: "✦"; font-size: 190px; bottom: -25px; }
.auth-story-brand { display: flex; align-items: center; gap: 13px; }
.auth-story-gem { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid rgba(231,216,186,.28); border-radius: 50%; color: #e8d6ad; font: 700 19px/1 Georgia, serif; box-shadow: inset 0 0 0 7px rgba(231,216,186,.035); }
.auth-story-brand div { display: grid; gap: 3px; }
.auth-story-brand strong { font-size: 19px; }
.auth-story-brand small { color: #9f8f94; font: 9px/1.3 Georgia, serif; letter-spacing: .12em; direction: ltr; }
.auth-story-copy { max-width: 620px; position: relative; z-index: 2; }
.auth-story-copy > span { color: #bda579; font: 10px/1.4 Georgia, serif; letter-spacing: .16em; direction: ltr; }
.auth-story-copy h1 { margin: 18px 0 18px; font-size: clamp(38px, 4.4vw, 64px); line-height: 1.35; letter-spacing: -.055em; font-weight: 700; }
.auth-story-copy h1 em { font-style: normal; color: #d8bd86; }
.auth-story-copy p { margin: 0; max-width: 520px; color: #b2a5a9; font-size: 15px; line-height: 2.05; }
.auth-story-foot { display: flex; align-items: center; gap: 14px; color: #7e6f74; font: 9px/1 Georgia, serif; letter-spacing: .13em; direction: ltr; }
.auth-story-foot i { width: 56px; height: 1px; background: #6b575d; }
.auth-card.auth-card-v2 { width: 100%; max-width: none; margin: 0; border: 0; border-radius: 0; box-shadow: none; padding: 64px 54px; background: #fbf8f3; display: flex; flex-direction: column; justify-content: center; }
.auth-mobile-brand { display: none; }
.auth-card-v2 .auth-kicker { margin-bottom: 12px; color: #a48957; font-size: 10px; }
.auth-card-v2 h2 { font-size: 34px; line-height: 1.35; }
.auth-lead { font-size: 14px !important; line-height: 2 !important; color: var(--muted); max-width: 380px; }
.otp-form { display: grid; gap: 18px; margin-top: 30px; }
.phone-field { display: grid; gap: 9px; color: var(--ink-soft); font-size: 13px; font-weight: 680; }
.phone-control { height: 58px; display: flex; align-items: center; border: 1px solid var(--line-strong); background: #fff; border-radius: 17px; overflow: hidden; transition: border .2s, box-shadow .2s; }
.phone-control:focus-within { border-color: rgba(111,56,71,.42); box-shadow: 0 0 0 5px rgba(111,56,71,.06); }
.phone-control b { height: 100%; min-width: 68px; display: grid; place-items: center; direction: ltr; border-left: 1px solid var(--line); color: var(--muted); font-size: 13px; font-weight: 600; background: #faf7f2; }
.phone-control input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; padding: 0 17px; background: transparent; direction: ltr; text-align: left; font-size: 17px; font-variant-numeric: tabular-nums; letter-spacing: .03em; }
.auth-submit { min-height: 58px; border: 0; border-radius: 17px; background: #1a1215; color: #fff; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; box-shadow: 0 14px 34px rgba(26,18,21,.16); transition: transform .2s, box-shadow .2s, background .2s; }
.auth-submit:hover { transform: translateY(-2px); background: #2a1a20; box-shadow: 0 20px 44px rgba(26,18,21,.22); }
.auth-submit i { font-style: normal; font-size: 19px; color: #dbc390; }
.auth-security { display: grid; grid-template-columns: 28px 1fr; gap: 10px; margin-top: 22px; padding: 15px; border-radius: 15px; background: rgba(231,216,186,.17); color: #75664c; }
.auth-security > span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(157,131,82,.25); color: #8c713d; }
.auth-security p { margin: 0; font-size: 11.5px; line-height: 1.9; }
.auth-terms { margin-top: 18px; color: var(--muted-2); font-size: 10.5px; text-align: center; }
.auth-alert { margin-top: 18px; padding: 13px 14px; border-radius: 14px; background: var(--danger-soft); color: var(--danger); font-size: 12px; }
.field-error { color: var(--danger); line-height: 1.6; }
.auth-back { align-self: flex-start; margin-bottom: 22px; color: var(--muted); font-size: 12px; font-weight: 650; }
.auth-back:hover { color: var(--wine); }
.otp-fieldset { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 8px; }
.otp-digit { width: 100%; height: 62px; border: 1px solid var(--line-strong); border-radius: 15px; background: #fff; text-align: center; outline: none; font: 700 24px/1 "Segoe UI", sans-serif; color: var(--ink); transition: border .2s, transform .2s, box-shadow .2s; }
.otp-digit:focus { border-color: rgba(111,56,71,.5); box-shadow: 0 0 0 4px rgba(111,56,71,.06); transform: translateY(-2px); }
.otp-error { text-align: center; }
.resend-row { margin-top: 18px; display: flex; align-items: center; justify-content: center; gap: 7px; color: var(--muted); font-size: 12px; }
.resend-row form { margin: 0; }
.resend-row button { padding: 0; border: 0; background: transparent; color: var(--wine); font: inherit; font-weight: 700; cursor: pointer; }
.debug-otp { margin-top: 20px; border: 1px dashed rgba(156,104,40,.28); background: var(--warn-soft); border-radius: 15px; padding: 12px 15px; display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; }
.debug-otp span { font-size: 10px; color: var(--warn); }
.debug-otp strong { grid-row: 1/3; grid-column: 2; font: 700 20px/1 "Segoe UI",sans-serif; letter-spacing: .15em; direction: ltr; }
.debug-otp small { color: #90754f; font-size: 9px; }

/* Customer private club */
body.customer-experience { --club-ink:#181214; --club-muted:#71666a; --club-paper:#f8f5f0; --club-gold:#b99a63; --club-wine:#6b3443; margin:0; min-height:100vh; color:var(--club-ink); background:
  radial-gradient(circle at 88% 0%, rgba(185,154,99,.11), transparent 24%),
  radial-gradient(circle at 9% 38%, rgba(107,52,67,.06), transparent 28%), #f8f5f0; font-size:16px; }
.customer-noise { position:fixed; inset:0; pointer-events:none; opacity:.035; z-index:0; background-image:radial-gradient(#3c2d32 .55px,transparent .55px); background-size:7px 7px; mask-image:linear-gradient(#000,transparent 84%); }
.club-header { position:sticky; top:0; z-index:70; padding:16px 24px 0; }
.club-header-inner { max-width:1400px; min-height:72px; margin:auto; padding:10px 12px 10px 16px; border:1px solid rgba(49,35,40,.08); border-radius:24px; background:rgba(255,253,250,.84); backdrop-filter:blur(18px); box-shadow:0 12px 44px rgba(40,26,31,.055); display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:28px; }
.club-brand { display:flex; align-items:center; gap:11px; }
.club-brand-mark { width:42px; height:42px; border:1px solid rgba(185,154,99,.28); border-radius:50%; display:grid; place-items:center; position:relative; }
.club-brand-mark i { position:absolute; inset:5px; border:1px solid rgba(107,52,67,.1); border-radius:50%; }
.club-brand-mark b { font:700 16px/1 Georgia,serif; color:var(--club-wine); }
.club-brand > span:last-child { display:grid; gap:2px; }
.club-brand strong { font-size:17px; }
.club-brand small { color:#9c8d92; font:8px/1 Georgia,serif; letter-spacing:.13em; direction:ltr; }
.club-nav { justify-self:center; display:flex; align-items:center; gap:4px; padding:4px; border-radius:16px; background:rgba(239,233,225,.6); }
.club-nav a { min-height:38px; padding:0 14px; border-radius:12px; display:grid; place-items:center; color:#7d7074; font-size:12.5px; font-weight:620; transition:.2s; }
.club-nav a:hover { color:var(--club-ink); background:rgba(255,255,255,.68); }
.club-nav a.active { color:#fff; background:#1a1215; box-shadow:0 8px 20px rgba(26,18,21,.12); }
.club-user-menu { display:flex; align-items:center; gap:7px; }
.club-user-pill { display:grid; grid-template-columns:34px auto; gap:9px; align-items:center; padding:4px 9px 4px 4px; border-radius:16px; transition:.2s; }
.club-user-pill:hover { background:#f1ece6; }
.club-avatar { width:34px; height:34px; display:grid; place-items:center; border-radius:12px; background:#efe5e7; color:var(--club-wine); font-size:13px; font-weight:800; }
.club-user-pill > span:last-child { display:grid; gap:1px; }
.club-user-pill strong { font-size:11.5px; max-width:120px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.club-user-pill small { direction:ltr; text-align:right; color:#9a8e92; font-size:8.5px; }
.club-logout,.club-admin-link { width:36px; height:36px; border:0; border-radius:12px; background:transparent; display:grid; place-items:center; color:#9b8f92; cursor:pointer; transition:.2s; }
.club-logout:hover,.club-admin-link:hover { background:#f1ece6; color:var(--club-wine); }
.club-logout svg { width:18px; height:18px; }
.club-main { max-width:1400px; margin:0 auto; padding:56px 32px 110px; position:relative; z-index:1; }
.club-page-head { display:flex; align-items:end; justify-content:space-between; gap:24px; margin-bottom:30px; }
.club-page-head > div > span { color:#9f8250; font:9px/1.3 Georgia,serif; letter-spacing:.16em; direction:ltr; display:block; margin-bottom:10px; }
.club-page-head h1 { margin:0; font-size:clamp(32px,3.2vw,48px); line-height:1.2; letter-spacing:-.045em; }
.club-page-head p { max-width:670px; margin:9px 0 0; color:var(--club-muted); font-size:14px; line-height:1.9; }
.club-toast-stack { position:fixed; left:24px; top:106px; z-index:100; display:grid; gap:8px; }
.club-toast { padding:12px 16px; border-radius:14px; background:#fff; border:1px solid rgba(49,35,40,.09); box-shadow:0 18px 48px rgba(40,26,31,.13); font-size:12px; }
.club-hero { min-height:390px; border-radius:36px; padding:44px; color:#fff; background:
  radial-gradient(circle at 8% 10%, rgba(185,154,99,.2), transparent 24%),
  radial-gradient(circle at 88% 90%, rgba(111,56,71,.25), transparent 34%),
  linear-gradient(135deg,#1a1215,#25181d 65%,#171013); box-shadow:0 30px 80px rgba(26,18,21,.16); display:grid; grid-template-columns:minmax(0,1.1fr) minmax(300px,.7fr); gap:46px; align-items:center; position:relative; overflow:hidden; }
.club-hero::after { content:"◇"; position:absolute; left:-24px; bottom:-84px; font:270px/1 Georgia,serif; color:rgba(231,216,186,.045); transform:rotate(-10deg); }
.club-hero-copy { position:relative; z-index:2; }
.club-eyebrow { color:#bda579; font:9px/1.4 Georgia,serif; letter-spacing:.15em; direction:ltr; }
.club-hero h2 { margin:18px 0 15px; font-size:clamp(37px,4vw,61px); line-height:1.34; letter-spacing:-.055em; font-weight:700; }
.club-hero h2 em { font-style:normal; color:#d8bd86; }
.club-hero p { margin:0; max-width:630px; color:#b2a5a9; font-size:14px; line-height:2.05; }
.club-hero-actions { display:flex; align-items:center; gap:18px; margin-top:28px; }
.club-btn { min-height:48px; padding:0 18px; border-radius:14px; display:inline-flex; align-items:center; gap:12px; font-size:12.5px; font-weight:700; transition:.2s; }
.club-btn-light { background:#fff; color:#1a1215; }
.club-btn:hover { transform:translateY(-2px); box-shadow:0 12px 30px rgba(0,0,0,.14); }
.club-text-link { color:#c8b9bd; font-size:12px; font-weight:650; }
.member-pass { aspect-ratio:1.58; width:min(100%,420px); justify-self:end; padding:25px; border:1px solid rgba(231,216,186,.2); border-radius:28px; background:linear-gradient(135deg,rgba(255,255,255,.09),rgba(255,255,255,.025)); backdrop-filter:blur(12px); box-shadow:inset 0 1px 0 rgba(255,255,255,.11),0 22px 60px rgba(0,0,0,.14); position:relative; z-index:2; display:flex; flex-direction:column; justify-content:space-between; overflow:hidden; }
.member-pass::after { content:""; position:absolute; width:180px; height:180px; border:1px solid rgba(231,216,186,.13); border-radius:50%; left:-55px; bottom:-82px; box-shadow:0 0 0 32px rgba(231,216,186,.02); }
.member-pass-top,.member-pass-bottom { display:flex; align-items:center; justify-content:space-between; gap:12px; position:relative; z-index:1; }
.member-pass-top span,.member-pass-center small { color:#a9999e; font:8px/1 Georgia,serif; letter-spacing:.15em; }
.member-pass-top i { color:#d6bc88; font:24px/1 Georgia,serif; font-style:normal; }
.member-pass-center { display:grid; gap:4px; position:relative; z-index:1; }
.member-pass-center strong { font:600 34px/1.15 Georgia,serif; letter-spacing:-.03em; color:#e7d0a1; }
.member-pass-center > span { color:#b5a7ab; font-size:11px; }
.member-pass-bottom > span { font-size:10px; color:#b6a8ac; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:64%; }
.member-pass-bottom b { font:600 11px/1 Georgia,serif; color:#d2bc90; letter-spacing:.04em; }
.club-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin:16px 0 26px; }
.club-metrics article { min-height:142px; padding:20px; border:1px solid rgba(49,35,40,.08); border-radius:24px; background:rgba(255,255,255,.72); box-shadow:0 12px 40px rgba(40,26,31,.035); display:flex; flex-direction:column; justify-content:center; position:relative; overflow:hidden; }
.club-metrics article::after { content:""; width:58px; height:58px; position:absolute; left:-24px; top:-25px; border:1px solid rgba(185,154,99,.13); border-radius:50%; }
.club-metrics span { color:var(--club-muted); font-size:11.5px; }
.club-metrics strong { margin:9px 0 5px; font-size:30px; line-height:1; letter-spacing:-.04em; }
.club-metrics small { color:#a3969a; font-size:10px; }
.club-dashboard-grid { display:grid; grid-template-columns:minmax(0,1.55fr) minmax(310px,.62fr); gap:16px; }
.club-panel { border:1px solid rgba(49,35,40,.08); border-radius:28px; background:rgba(255,255,255,.76); box-shadow:0 15px 50px rgba(40,26,31,.045); padding:25px; position:relative; overflow:hidden; }
.club-panel-head { display:flex; align-items:start; justify-content:space-between; gap:18px; margin-bottom:24px; }
.club-panel-head span { color:#aa8b55; font:8px/1 Georgia,serif; letter-spacing:.14em; direction:ltr; }
.club-panel-head h3 { margin:7px 0 0; font-size:18px; }
.club-panel-head a { color:var(--club-wine); font-size:11.5px; font-weight:650; }
.order-focus-head { display:flex; align-items:center; justify-content:space-between; gap:20px; }
.order-focus-head > div { display:grid; gap:3px; }
.order-focus-head small { color:#95898d; font-size:10px; }
.order-focus-head strong { font:700 23px/1 "Segoe UI",sans-serif; direction:ltr; }
.club-status { display:inline-flex; align-items:center; justify-content:center; min-height:31px; padding:0 11px; border-radius:99px; background:#efe7e9; color:var(--club-wine); font-size:10.5px; font-weight:700; }
.club-status.status-completed { background:#e5f1ea; color:#2e7257; }
.club-status.status-processing { background:#f7edda; color:#9c6828; }
.club-status.status-cancelled,.club-status.status-failed,.club-status.status-refunded { background:#f8e7e8; color:#a44a50; }
.journey-track { height:6px; border-radius:99px; background:#ece6e1; margin:28px 0 9px; position:relative; }
.journey-track i { position:absolute; top:0; right:0; bottom:0; left:auto; width:0; border-radius:inherit; background:linear-gradient(90deg,#a77a84,#6b3443); }
.journey-track > span { position:absolute; width:14px; height:14px; margin-right:-7px; top:50%; transform:translateY(-50%); border:3px solid #fff; border-radius:50%; background:#b99a63; box-shadow:0 0 0 1px rgba(185,154,99,.32); }
.journey-labels { display:flex; justify-content:space-between; color:#a29599; font-size:9px; }
.order-focus-meta { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin-top:24px; }
.order-focus-meta > div { padding:14px; border-radius:16px; background:#f6f1eb; display:grid; gap:4px; }
.order-focus-meta span { color:#94878b; font-size:9.5px; }
.order-focus-meta strong { font-size:11.5px; overflow:hidden; text-overflow:ellipsis; }
.club-score-panel { text-align:center; }
.club-score-panel .club-panel-head { text-align:right; }
.club-score-ring { --club-progress:0%; width:156px; height:156px; margin:8px auto 18px; border-radius:50%; display:grid; place-items:center; background:conic-gradient(#b99a63 var(--club-progress), #eee7dd 0); position:relative; }
.club-score-ring::before { content:""; position:absolute; inset:9px; border-radius:50%; background:#fffdfa; box-shadow:inset 0 0 0 1px rgba(49,35,40,.05); }
.club-score-ring > div { position:relative; z-index:1; display:grid; gap:4px; }
.club-score-ring strong { font:700 29px/1 Georgia,serif; color:#5e4a27; }
.club-score-ring span { color:#9b8051; font:8px/1 Georgia,serif; letter-spacing:.1em; }
.club-score-panel p { color:#817479; font-size:11.5px; line-height:1.9; }
.club-inline-button { display:inline-flex; align-items:center; gap:8px; margin-top:6px; color:var(--club-wine); font-size:11.5px; font-weight:700; }
.club-shortcuts { margin-top:16px; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.club-shortcuts a { min-height:120px; padding:18px; border:1px solid rgba(49,35,40,.08); border-radius:22px; background:rgba(255,255,255,.66); display:grid; grid-template-columns:34px 1fr auto; gap:12px; align-items:center; transition:.2s; }
.club-shortcuts a:hover { transform:translateY(-3px); background:#fff; box-shadow:0 16px 40px rgba(40,26,31,.06); }
.club-shortcuts i { width:34px; height:34px; border-radius:11px; display:grid; place-items:center; background:#efe5e7; color:var(--club-wine); font-style:normal; font:16px/1 Georgia,serif; }
.club-shortcuts div { display:grid; gap:5px; }
.club-shortcuts strong { font-size:12.5px; }
.club-shortcuts span { color:#95898d; font-size:9.5px; line-height:1.7; }
.club-shortcuts b { color:#b09f92; font-size:15px; font-weight:400; }
.club-empty { min-height:170px; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; color:#9b8f92; padding:28px; }
.club-empty > span { font:28px/1 Georgia,serif; color:#b99a63; margin-bottom:12px; }
.club-empty h3 { margin:0 0 6px; color:#3d3236; font-size:17px; }
.club-empty p { margin:0; max-width:430px; font-size:11.5px; line-height:1.9; }
.club-empty-large { min-height:340px; border:1px dashed rgba(49,35,40,.12); border-radius:28px; background:rgba(255,255,255,.5); grid-column:1/-1; }
.club-order-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.club-order-card { padding:25px; border:1px solid rgba(49,35,40,.08); border-radius:28px; background:rgba(255,255,255,.77); box-shadow:0 15px 45px rgba(40,26,31,.04); }
.club-order-card-head { display:flex; align-items:start; justify-content:space-between; gap:18px; }
.club-order-card-head > div { display:grid; gap:3px; }
.club-order-card-head > div > span { color:#a38b61; font:8px/1 Georgia,serif; letter-spacing:.13em; }
.club-order-card-head strong { font:700 21px/1.1 "Segoe UI",sans-serif; direction:ltr; }
.club-order-card-head small { color:#a3969a; font-size:9.5px; }
.order-card-journey p { margin:0; color:#786c70; font-size:10.5px; }
.order-products { min-height:72px; margin:20px 0; display:flex; align-items:center; gap:8px; }
.order-product-thumb { width:62px; height:62px; border-radius:17px; background:#f0e8e9; border:1px solid rgba(49,35,40,.07); display:grid; place-items:center; position:relative; overflow:hidden; color:var(--club-wine); }
.order-product-thumb img { width:100%; height:100%; object-fit:cover; }
.order-product-thumb > small { position:absolute; left:4px; bottom:4px; min-width:19px; height:19px; padding:0 5px; border-radius:7px; background:rgba(26,18,21,.83); color:#fff; display:grid; place-items:center; font-size:8px; }
.club-muted { color:#9d9195; font-size:10.5px; }
.club-order-footer { padding-top:17px; border-top:1px solid rgba(49,35,40,.07); display:grid; grid-template-columns:1fr 1fr; gap:15px; }
.club-order-footer > div { display:grid; gap:4px; }
.club-order-footer span { color:#978b8f; font-size:9.5px; }
.club-order-footer strong { font-size:12px; }
.ltr-value { direction:ltr; unicode-bidi:embed; font-variant-numeric:tabular-nums; }
.wishlist-gallery { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; }
.wish-product { min-width:0; }
.wish-product-media { aspect-ratio:1/1.12; border-radius:28px; overflow:hidden; position:relative; background:linear-gradient(145deg,#efe8e2,#e8dcdd); display:grid; place-items:center; color:#8f5a67; font:40px/1 Georgia,serif; }
.wish-product-media img { width:100%; height:100%; object-fit:cover; transition:transform .45s var(--ease); }
.wish-product:hover img { transform:scale(1.035); }
.wish-product-media i { position:absolute; top:12px; left:12px; width:37px; height:37px; border-radius:13px; display:grid; place-items:center; background:rgba(255,255,255,.86); color:var(--club-wine); font-style:normal; font-size:18px; backdrop-filter:blur(8px); }
.wish-product-copy { padding:14px 4px 0; }
.wish-product-copy > span { color:#ad9365; font:8px/1 Georgia,serif; letter-spacing:.12em; }
.wish-product-copy h3 { margin:7px 0 5px; font-size:14px; line-height:1.6; }
.wish-product-copy p { margin:0; color:#7e7276; font-size:11px; }
.address-gallery,.coupon-gallery,.review-gallery { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.club-address-card,.club-review-card { min-height:230px; padding:24px; border:1px solid rgba(49,35,40,.08); border-radius:28px; background:rgba(255,255,255,.72); position:relative; overflow:hidden; }
.club-address-card.is-default { border-color:rgba(185,154,99,.28); background:linear-gradient(145deg,rgba(255,255,255,.8),rgba(246,238,224,.68)); }
.address-card-top { display:flex; align-items:center; justify-content:space-between; }
.address-card-top > span { width:38px; height:38px; border-radius:13px; display:grid; place-items:center; background:#efe5e7; color:var(--club-wine); }
.address-card-top b { color:#8d7345; background:#f1e6d1; border-radius:99px; padding:5px 9px; font-size:9px; }
.club-address-card h3,.club-review-card h3 { margin:26px 0 8px; font-size:16px; }
.club-address-card p,.club-review-card p { color:#776c70; font-size:11.5px; line-height:1.95; }
.club-address-card > div:last-child { margin-top:20px; padding-top:14px; border-top:1px solid rgba(49,35,40,.07); display:flex; justify-content:space-between; gap:12px; color:#94888c; font-size:9.5px; }
.club-ticket { min-height:220px; border:1px solid rgba(185,154,99,.21); border-radius:28px; background:linear-gradient(135deg,#f0e3cd,#fbf7ef); display:grid; grid-template-columns:120px 1fr; overflow:hidden; position:relative; }
.club-ticket::before,.club-ticket::after { content:""; width:24px; height:24px; position:absolute; right:108px; border-radius:50%; background:#f8f5f0; z-index:2; }
.club-ticket::before { top:-12px; }
.club-ticket::after { bottom:-12px; }
.ticket-value { border-left:1px dashed rgba(122,95,49,.22); display:flex; flex-direction:column; align-items:center; justify-content:center; color:#6d5730; }
.ticket-value strong { font:700 28px/1 Georgia,serif; }
.ticket-value span { margin-top:7px; font-size:10px; }
.ticket-copy { padding:24px; display:flex; flex-direction:column; justify-content:center; }
.ticket-copy > span { color:#a88a57; font:8px/1 Georgia,serif; letter-spacing:.14em; }
.ticket-copy h3 { margin:10px 0 18px; font-size:14px; line-height:1.7; }
.ticket-copy button { width:100%; min-height:46px; border:1px solid rgba(122,95,49,.15); border-radius:13px; background:rgba(255,255,255,.45); display:flex; align-items:center; justify-content:space-between; padding:0 12px; cursor:pointer; color:#6d5730; }
.ticket-copy button b { font:700 13px/1 "Segoe UI",sans-serif; letter-spacing:.08em; }
.ticket-copy button small { font-size:9px; }
.club-review-stars { direction:ltr; text-align:right; color:#b99a63; letter-spacing:.08em; font-size:15px; }
.club-review-card h3 { margin-top:20px; }
.club-review-card > span { display:block; margin-top:18px; color:#a3969a; font-size:9.5px; }
.loyalty-stage { min-height:330px; padding:36px; border-radius:34px; background:linear-gradient(135deg,#e9d7b5,#f9f2e6 54%,#efe1c6); border:1px solid rgba(185,154,99,.2); display:grid; grid-template-columns:1fr auto; gap:40px; align-items:center; margin-bottom:16px; position:relative; overflow:hidden; }
.loyalty-stage::after { content:"◇"; position:absolute; left:-14px; bottom:-70px; font:220px/1 Georgia,serif; color:rgba(95,74,37,.06); }
.loyalty-stage-copy { position:relative; z-index:1; }
.loyalty-stage-copy > span { color:#917442; font:8px/1 Georgia,serif; letter-spacing:.15em; }
.loyalty-stage-copy > strong { display:block; margin:12px 0 2px; color:#59451f; font:700 clamp(55px,7vw,92px)/.95 Georgia,serif; letter-spacing:-.06em; }
.loyalty-stage-copy > small { color:#806a42; font-size:10px; }
.loyalty-stage-copy h2 { margin:24px 0 7px; font:600 24px/1.3 Georgia,serif; color:#5d4925; direction:ltr; text-align:right; }
.loyalty-stage-copy h2 em { font-family:inherit; font-style:normal; font-size:12px; color:#8f7547; margin-right:8px; }
.loyalty-stage-copy p { margin:0; color:#7d6841; font-size:11.5px; }
.club-score-ring.large { width:196px; height:196px; background:conic-gradient(#70572e var(--club-progress),rgba(255,255,255,.43) 0); position:relative; z-index:1; }
.club-score-ring.large::before { background:#f3e7d2; }
.loyalty-ledger { display:grid; }
.ledger-row { min-height:76px; display:grid; grid-template-columns:38px 1fr auto; gap:12px; align-items:center; border-bottom:1px solid rgba(49,35,40,.07); }
.ledger-row:last-child { border-bottom:0; }
.ledger-mark { width:34px; height:34px; border-radius:12px; display:grid; place-items:center; background:#e5f1ea; color:#2e7257; font-weight:800; }
.ledger-mark.negative { background:#f8e7e8; color:#a44a50; }
.ledger-row > div { display:grid; gap:4px; }
.ledger-row strong { font-size:12px; }
.ledger-row small { color:#9c9094; font-size:9px; }
.ledger-row b { font-size:11px; color:#5f4a25; }
.profile-identity { min-height:220px; padding:30px; border-radius:32px; background:#1a1215; color:#fff; display:grid; grid-template-columns:90px 1fr auto; gap:22px; align-items:center; margin-bottom:16px; position:relative; overflow:hidden; }
.profile-identity::after { content:"◇"; position:absolute; left:-12px; bottom:-55px; color:rgba(231,216,186,.05); font:180px/1 Georgia,serif; }
.profile-portrait { width:86px; height:86px; border:1px solid rgba(231,216,186,.2); border-radius:28px; display:grid; place-items:center; color:#e1c893; font-size:30px; font-weight:800; position:relative; }
.profile-portrait i { position:absolute; width:9px; height:9px; border-radius:50%; background:#2e7257; right:4px; bottom:4px; box-shadow:0 0 0 5px #1a1215; }
.profile-identity-copy > span,.profile-tier small { color:#99898e; font:8px/1 Georgia,serif; letter-spacing:.14em; }
.profile-identity-copy h2 { margin:9px 0 5px; font-size:25px; }
.profile-identity-copy p { margin:0; color:#a99ca0; font-size:11px; direction:ltr; text-align:right; }
.profile-tier { min-width:170px; padding-right:28px; border-right:1px solid rgba(255,255,255,.08); display:grid; gap:4px; position:relative; z-index:1; }
.profile-tier strong { margin-top:6px; color:#dec895; font:600 23px/1.15 Georgia,serif; }
.profile-tier > span { color:#a7989d; font-size:10px; }
.profile-layout { display:grid; grid-template-columns:minmax(0,1.4fr) minmax(280px,.55fr); gap:16px; }
.profile-detail-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.profile-detail-grid > div { min-height:92px; padding:15px; border-radius:16px; background:#f6f1eb; display:flex; flex-direction:column; justify-content:center; }
.profile-detail-grid span { color:#94888c; font-size:9.5px; }
.profile-detail-grid strong { margin-top:6px; font-size:12px; }
.verified-label { color:#2e7257 !important; margin-top:4px; font-size:8.5px !important; }
.profile-completion-card > span { color:#a68c5d; font:8px/1 Georgia,serif; letter-spacing:.13em; }
.profile-completion-card > strong { display:block; margin:14px 0; font:700 48px/1 Georgia,serif; color:#5d4825; }
.profile-completion-card > div { height:6px; border-radius:99px; background:#eee7dd; overflow:hidden; }
.profile-completion-card > div i { display:block; height:100%; border-radius:inherit; background:linear-gradient(90deg,#b99a63,#6b3443); }
.profile-completion-card p { color:#83777b; font-size:10.5px; line-height:1.9; }
.profile-completion-card a { color:var(--club-wine); font-size:11px; font-weight:700; }
.club-mobile-dock { display:none; }
.club-reveal { animation:clubEnter .48s var(--ease) both; }
@keyframes clubEnter { from { opacity:0; transform:translateY(9px); } to { opacity:1; transform:none; } }

@media (max-width:1080px) {
  .club-header-inner { grid-template-columns:auto 1fr auto; }
  .club-nav a { padding-inline:10px; }
  .club-user-pill > span:last-child { display:none; }
  .club-hero { grid-template-columns:1fr minmax(270px,.65fr); padding:34px; gap:28px; }
  .club-shortcuts { grid-template-columns:1fr 1fr; }
  .wishlist-gallery { grid-template-columns:repeat(3,1fr); }
}
@media (max-width:820px) {
  .club-header { padding:10px 12px 0; }
  .club-header-inner { min-height:64px; border-radius:20px; }
  .club-nav { display:none; }
  .club-header-inner { grid-template-columns:1fr auto; }
  .club-user-menu { justify-self:end; }
  .club-main { padding:38px 16px 108px; }
  .club-page-head { margin-bottom:22px; }
  .club-page-head h1 { font-size:32px; }
  .club-page-head p { font-size:12.5px; }
  .club-hero { grid-template-columns:1fr; min-height:auto; border-radius:30px; padding:30px; }
  .club-hero h2 { font-size:42px; }
  .member-pass { justify-self:start; width:min(100%,380px); }
  .club-metrics { grid-template-columns:1fr 1fr; }
  .club-dashboard-grid { grid-template-columns:1fr; }
  .club-score-panel { display:grid; grid-template-columns:1fr auto; text-align:right; align-items:center; }
  .club-score-panel .club-panel-head { grid-column:1/-1; }
  .club-score-panel p,.club-score-panel .club-inline-button { grid-column:1; }
  .club-score-ring { grid-column:2; grid-row:2/4; }
  .club-order-list { grid-template-columns:1fr; }
  .wishlist-gallery { grid-template-columns:1fr 1fr; }
  .address-gallery,.coupon-gallery,.review-gallery { grid-template-columns:1fr 1fr; }
  .loyalty-stage { grid-template-columns:1fr auto; padding:28px; }
  .profile-layout { grid-template-columns:1fr; }
  .club-mobile-dock { position:fixed; z-index:85; bottom:max(10px,env(safe-area-inset-bottom)); right:12px; left:12px; height:68px; padding:6px; border:1px solid rgba(49,35,40,.09); border-radius:22px; background:rgba(255,253,250,.91); backdrop-filter:blur(18px); box-shadow:0 18px 50px rgba(40,26,31,.14); display:grid; grid-template-columns:repeat(5,1fr); }
  .club-mobile-dock a { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; color:#978b8f; font-size:8px; font-weight:650; border-radius:16px; }
  .club-mobile-dock a.active { color:var(--club-wine); background:#f2e9eb; }
  .club-mobile-dock svg { width:19px; height:19px; }
}
@media (max-width:560px) {
  .club-header-inner { padding:8px 10px; }
  .club-brand strong { font-size:15px; }
  .club-brand small { display:none; }
  .club-user-pill { display:none; }
  .club-main { padding-top:30px; }
  .club-page-head h1 { font-size:29px; }
  .club-page-head p { line-height:1.8; }
  .club-hero { padding:24px; border-radius:26px; }
  .club-hero h2 { font-size:35px; }
  .club-hero p { font-size:12px; }
  .club-hero-actions { align-items:flex-start; flex-direction:column; gap:12px; }
  .member-pass { padding:19px; border-radius:23px; }
  .member-pass-center strong { font-size:27px; }
  .club-metrics { gap:8px; }
  .club-metrics article { min-height:118px; padding:15px; border-radius:20px; }
  .club-metrics strong { font-size:25px; }
  .club-panel,.club-order-card { padding:18px; border-radius:23px; }
  .order-focus-meta { grid-template-columns:1fr; }
  .club-score-panel { display:block; text-align:center; }
  .club-score-panel .club-panel-head { text-align:right; }
  .club-score-ring { margin-inline:auto; }
  .club-shortcuts { grid-template-columns:1fr; gap:8px; }
  .club-shortcuts a { min-height:90px; }
  .wishlist-gallery,.address-gallery,.coupon-gallery,.review-gallery { grid-template-columns:1fr; }
  .wish-product-media { aspect-ratio:1.08/1; }
  .club-ticket { grid-template-columns:94px 1fr; }
  .club-ticket::before,.club-ticket::after { right:82px; }
  .ticket-copy { padding:18px; }
  .loyalty-stage { grid-template-columns:1fr; gap:25px; padding:24px; }
  .club-score-ring.large { width:165px; height:165px; justify-self:center; }
  .profile-identity { grid-template-columns:70px 1fr; padding:22px; }
  .profile-portrait { width:66px; height:66px; border-radius:22px; font-size:24px; }
  .profile-tier { grid-column:1/-1; border-right:0; border-top:1px solid rgba(255,255,255,.08); padding:16px 0 0; }
  .profile-detail-grid { grid-template-columns:1fr; }
  .club-toast-stack { right:12px; left:12px; top:88px; }
  .club-toast { width:100%; }
}

@media (max-width:900px) {
  .auth-main { padding:0; display:block; }
  .auth-content { min-height:100vh; }
  .auth-stage { min-height:100vh; display:block; border:0; border-radius:0; background:#fbf8f3; }
  .auth-story { display:none; }
  .auth-card.auth-card-v2 { min-height:100vh; padding:44px max(24px,calc((100vw - 480px)/2)); }
  .auth-mobile-brand { display:flex; align-items:center; gap:10px; margin-bottom:60px; }
  .auth-mobile-brand span { width:40px; height:40px; display:grid; place-items:center; border:1px solid rgba(185,154,99,.28); border-radius:50%; color:var(--wine); font:700 16px/1 Georgia,serif; }
  .auth-mobile-brand strong { font-size:18px; }
}
@media (max-width:460px) {
  .auth-card.auth-card-v2 { padding:34px 20px; }
  .auth-mobile-brand { margin-bottom:48px; }
  .auth-card-v2 h2 { font-size:30px; }
  .auth-lead { font-size:13px !important; }
  .otp-fieldset { gap:5px; }
  .otp-digit { height:55px; border-radius:13px; font-size:21px; }
}

/* =========================================================
   FINAL AUDIT — accessibility, typography and customer actions
   ========================================================= */
html, body { max-width: 100%; overflow-x: hidden; }
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid rgba(111,56,71,.34);
  outline-offset: 3px;
}
.sidebar :where(a, button):focus-visible,
.club-hero :where(a, button):focus-visible,
.profile-identity :where(a, button):focus-visible {
  outline-color: rgba(231,216,186,.65);
}
.icon-button, .club-logout, .club-admin-link { min-width: 44px; min-height: 44px; }
.club-nav a { min-height: 44px; }

/* Management: remove visually tiny production text. */
.brand-copy small { font-size: 10.5px; }
.nav-caption { font-size: 12.5px; }
.sidebar-card-kicker { font-size: 10.5px; }
.sidebar-card a { font-size: 12.5px; }
.user-copy span { font-size: 12px; }
.eyebrow { font-size: 11.5px; }
.app-footer { font-size: 12px; }
.kpi .trend, .hero-metric span, .chart-meta span, th, .badge, .stock { font-size: 12px; }
.radar-label small, .stack-item span, .timeline-item span, .product-cell > div:last-child > span,
.inventory-stat small, .command-list small, .order-summary > div > span, .customer-identity span,
.report-strip span, .report-strip small, .integration-state small, .sync-tile small { font-size: 11.5px; }
.command-caption, .command-footer { font-size: 11.5px; }
.editor-note p, .address-box, .crm-intro p, .integration-copy p, .settings-guide p, .settings-guide small { font-size: 12.5px; }

/* Customer typography: editorial, but still readable. */
.club-brand small, .club-page-head > div > span, .club-eyebrow,
.member-pass-top span, .member-pass-center small, .club-panel-head span,
.loyalty-stage-copy > span, .profile-identity-copy > span, .profile-tier small,
.profile-completion-card > span { font-size: 10.5px; }
.club-nav a { font-size: 13.5px; }
.club-user-pill strong { font-size: 13px; }
.club-user-pill small { font-size: 11.5px; }
.club-toast { font-size: 13px; }
.club-btn { font-size: 13.5px; }
.club-text-link, .club-panel-head a { font-size: 13px; }
.member-pass-center > span, .member-pass-bottom > span, .member-pass-bottom b { font-size: 12px; }
.club-metrics span { font-size: 12.5px; }
.club-metrics small { font-size: 11.5px; }
.order-focus-head small, .club-status { font-size: 11.5px; }
.journey-labels { font-size: 11px; }
.order-focus-meta span, .order-focus-meta strong { font-size: 12.5px; }
.club-score-panel p, .club-inline-button, .club-shortcuts span { font-size: 12.5px; }
.club-empty p { font-size: 12.5px; }
.club-order-card small, .club-order-footer span { font-size: 11.5px; }
.wish-product-copy span, .address-card-top b, .ticket-copy > span,
.loyalty-stage-copy > small, .ledger-row small, .profile-detail-grid span,
.verified-label { font-size: 11.5px !important; }
.wish-product-copy p, .club-address-card p, .club-review-card p, .ledger-row strong,
.ledger-row b, .profile-identity-copy p, .profile-tier > span, .profile-detail-grid strong,
.profile-completion-card p, .profile-completion-card a { font-size: 12.5px; }
.club-mobile-dock a { font-size: 11px; min-height: 54px; }

.customer-action-layout { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(340px,.65fr); gap:16px; align-items:start; }
.customer-action-layout .address-gallery { grid-template-columns:repeat(2,minmax(0,1fr)); }
.customer-form-panel { position:sticky; top:108px; }
.club-form { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.club-form label { display:grid; gap:7px; color:#75696d; font-size:12.5px; font-weight:650; }
.club-form label > span { padding-inline:2px; }
.club-form input:not([type="checkbox"]), .club-form select, .club-form textarea {
  width:100%; min-height:48px; border:1px solid rgba(49,35,40,.14); border-radius:14px;
  background:#fffdfa; color:var(--club-ink); padding:11px 13px; font-size:14px; outline:0;
  transition:border .2s,box-shadow .2s,background .2s;
}
.club-form textarea { min-height:96px; resize:vertical; }
.club-form input:focus, .club-form select:focus, .club-form textarea:focus { border-color:rgba(107,52,67,.4); box-shadow:0 0 0 4px rgba(107,52,67,.06); background:#fff; }
.club-form input[type="checkbox"] { width:20px; height:20px; accent-color:var(--club-wine); }
.club-form .span-2 { grid-column:1/-1; }
.club-btn-dark { border:0; background:#1a1215; color:#fff; justify-content:center; cursor:pointer; }
.customer-card-actions { margin-top:18px; display:flex !important; gap:8px; align-items:center; }
.customer-card-actions form { margin:0; }
.club-mini-btn { min-height:38px; padding:0 13px; border:1px solid rgba(49,35,40,.1); border-radius:11px; background:#fff; color:var(--club-wine); font-size:12px; cursor:pointer; }
.club-mini-btn.danger { color:var(--danger); background:var(--danger-soft); border-color:rgba(164,74,80,.12); }
.verified-phone-row { margin-bottom:18px; padding:14px 16px; border:1px solid rgba(49,35,40,.08); border-radius:16px; background:#f7f1eb; display:flex; align-items:center; justify-content:space-between; gap:14px; }
.verified-phone-row > div { display:grid; gap:4px; }
.verified-phone-row span { color:#8a7d81; font-size:11.5px; }
.verified-phone-row strong { font-size:14px; }
.profile-edit-form { margin-top:6px; }
.wish-product-media form { position:absolute; top:12px; left:12px; z-index:3; }
.wish-remove { width:40px; height:40px; border:1px solid rgba(49,35,40,.1); border-radius:50%; background:rgba(255,253,250,.92); color:var(--club-wine); font-size:24px; line-height:1; display:grid; place-items:center; cursor:pointer; box-shadow:0 8px 22px rgba(40,26,31,.08); }
.wish-product-media > i { display:none; }

@media (max-width:900px) {
  .customer-action-layout { grid-template-columns:1fr; }
  .customer-action-layout .address-gallery { grid-template-columns:1fr 1fr; }
  .customer-form-panel { position:static; }
}
@media (max-width:560px) {
  .club-page-head p, .club-hero p { font-size:13.5px; }
  .customer-action-layout .address-gallery { grid-template-columns:1fr; }
  .club-form { grid-template-columns:1fr; }
  .club-form .span-2 { grid-column:auto; }
  .verified-phone-row { align-items:flex-start; flex-direction:column; }
  .club-mobile-dock a { font-size:10.5px; }
}
/* WCAG contrast corrections for small text on light surfaces. */
.club-brand small, .club-user-pill small, .club-metrics small, .club-order-card small,
.profile-detail-grid span, .verified-phone-row span, .club-mobile-dock a { color:#71666a; }
.club-metrics span, .order-focus-head small, .journey-labels, .club-order-footer span,
.wish-product-copy span, .ledger-row small, .profile-identity-copy p { color:#71666a; }
.filters input::placeholder, .grid-form input::placeholder, .form-stack input::placeholder,
.club-form input::placeholder, .club-form textarea::placeholder { color:#756a6e; opacity:1; }
/* Final contrast tuning: small text meets a stronger light-surface contrast target. */
.club-page-head > div > span, .club-panel-head span, .profile-completion-card > span,
.loyalty-stage-copy > span, .ticket-copy > span { color:#765f36; }
.club-empty p, .club-shortcuts span, .club-address-card p, .club-review-card p,
.profile-completion-card p, .order-focus-head small, .journey-labels { color:#71666a; }
.radar-track-neutral { background: repeating-linear-gradient(90deg,#eee8e3 0 8px,transparent 8px 13px); opacity:.7; }
.product-editor [hidden]{display:none!important}
.variant-attributes,.variant-rows{display:grid;gap:12px;margin:14px 0}
.variant-attribute{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr) auto;gap:10px;align-items:end}
.variant-attribute label,.variant-card label{display:grid;gap:6px}
.variant-card{border:1px solid var(--line);border-radius:14px;padding:14px;display:grid;gap:12px}
.variant-bulk{display:grid;gap:10px;border:1px dashed var(--line);border-radius:14px;padding:14px;margin-top:16px}
.variant-bulk .btn{justify-self:start}
.selected-image-preview{display:flex;flex-wrap:wrap;gap:8px}
.selected-image-preview img{width:72px;height:72px;object-fit:cover;border-radius:10px;border:1px solid var(--line)}
.extra-categories details{border:1px solid var(--line);border-radius:12px;padding:12px}
.extra-categories summary{cursor:pointer;font-weight:700}
.extra-categories summary small{font-weight:400;color:var(--muted)}
.extra-categories #extra-category-search{width:100%;margin:10px 0}
.extra-category-list{max-height:240px;overflow:auto;padding:4px}
.extra-category-list label{display:flex;align-items:center;gap:10px;font-size:13px;min-height:38px;cursor:pointer}
.product-editor .extra-category-list input[type="checkbox"]{width:18px;height:18px;min-width:18px;min-height:18px;margin:0;box-shadow:none}
.product-gallery-editor{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:10px;margin:12px 0}
.gallery-edit-item{display:grid;gap:8px;border:1px solid var(--line);border-radius:12px;padding:10px;min-width:0}
.gallery-edit-item label{display:grid;gap:5px;font-size:12px}
.gallery-edit-item input{min-width:0;width:100%}
.product-gallery-editor img{width:100%;height:120px;object-fit:cover;border-radius:10px}
@media(max-width:680px){.variant-attribute{grid-template-columns:1fr}.variant-attribute button{justify-self:start}}
