/* =====================================================================
   Izmir Cicekcilik — Design Tokens & Core Components (v1.0, Phase 1)
   Single source for Web (ASP.NET Core Razor) and Flutter ThemeData.
   Token names map 1:1 to Flutter: --color-brand  ->  AppColors.brand
                                    --space-4      ->  AppSpacing.s4
                                    --radius-md    ->  AppRadius.md
   ===================================================================== */
:root {
  /* ---- Brand palette (from WEB/style.css, unchanged hex values) ---- */
  --color-brand: #E2000F;          /* legacy --red        4.95:1 on white */
  --color-brand-ink: #B8000C;      /* red text on pastel  5.69:1 on #FFE3E0 */
  --color-brand-pastel: #FFE3E0;   /* legacy --red-pastel */
  --color-ink: #111111;            /* legacy --black      primary CTA, text */
  --color-success: #149500;        /* legacy --green      icons / large text only (3.94:1) */
  --color-success-ink: #117A00;    /* green text & green button fill (5.52:1) */
  --color-success-pastel: #E6F4E3;
  --color-highlight: #FFF131;      /* legacy --yellow     "Bütçeme Göre" */
  --color-highlight-pastel: #FFFCD6;
  --color-highlight-ink: #6A5A00;  /* text on yellow pastel 6.55:1 */
  --color-info: #40C0F1;           /* legacy --blue       decorative only */
  --color-info-ink: #0A6F96;       /* text on white 5.63:1, on pastel 4.81:1 */
  --color-info-pastel: #D9F1FA;

  /* ---- Neutrals ---- */
  --color-white: #FFFFFF;
  --color-surface: #FFFFFF;
  --color-surface-muted: #F9F9F9;  /* legacy --light-gray */
  --color-surface-sunken: #F2F2F2;
  --color-border: #EEEEEE;         /* legacy --border */
  --color-border-strong: #D6D6D6;
  --color-text: #111111;
  --color-text-secondary: #555555; /* legacy --dark-gray 7.46:1 */
  --color-text-muted: #6B6B6B;     /* replaces #999 for text: 5.33:1 (AA) */
  --color-text-disabled: #999999;  /* legacy --gray: disabled/decor only */
  --color-scrim: rgba(17,17,17,.48);

  /* ---- Typography (Montserrat) ---- */
  --font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --fs-display: 40px; --lh-display: 48px;
  --fs-h1: 32px;      --lh-h1: 40px;
  --fs-h2: 24px;      --lh-h2: 32px;
  --fs-h3: 20px;      --lh-h3: 28px;
  --fs-title: 16px;   --lh-title: 24px;
  --fs-body: 14px;    --lh-body: 22px;
  --fs-body-sm: 13px; --lh-body-sm: 20px;
  --fs-caption: 12px; --lh-caption: 16px;
  --fs-overline: 11px;--lh-overline: 16px;
  --fw-regular: 400; --fw-medium: 500; --fw-semibold: 600; --fw-bold: 700; --fw-black: 800;

  /* ---- Spacing: 4/8 grid ---- */
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 20px;
  --space-6: 24px; --space-8: 32px; --space-10: 40px; --space-12: 48px; --space-16: 64px; --space-20: 80px;

  /* ---- Radius (draft was 0px everywhere; softened slightly, still crisp) ---- */
  --radius-none: 0px; --radius-xs: 2px; --radius-sm: 4px; --radius-md: 8px;
  --radius-lg: 12px; --radius-xl: 20px; --radius-pill: 999px;

  /* ---- Elevation ---- */
  --shadow-1: 0 1px 3px rgba(17,17,17,.08);
  --shadow-2: 0 4px 12px rgba(17,17,17,.08);
  --shadow-3: 0 12px 32px rgba(17,17,17,.14);
  --shadow-sheet: 0 -8px 32px rgba(17,17,17,.16);

  /* ---- Sizing ---- */
  --tap-min: 44px; --input-h: 48px; --btn-h: 48px; --btn-h-sm: 36px; --btn-h-lg: 56px;
  --container: 1280px; --gutter: 24px;
  --focus-ring: 0 0 0 2px #FFFFFF, 0 0 0 4px #111111;

  /* ---- Motion ---- */
  --dur-fast: 120ms; --dur-base: 200ms; --dur-slow: 320ms;
  --ease-standard: cubic-bezier(.2,0,0,1); --ease-emph: cubic-bezier(.3,0,0,1.3);

  /* legacy aliases (keep old class names working while migrating) */
  --red: var(--color-brand); --black: var(--color-ink); --green: var(--color-success);
  --gray: var(--color-text-disabled); --dark-gray: var(--color-text-secondary);
  --light-gray: var(--color-surface-muted); --border: var(--color-border);
}

/* ------------------------------ base ------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
.ic-root, .ic-root * { font-family: var(--font-family); }
.ic-root { color: var(--color-text); background: var(--color-surface); font-size: var(--fs-body); line-height: var(--lh-body); -webkit-font-smoothing: antialiased; }
.ic-root h1, .ic-root h2, .ic-root h3, .ic-root h4, .ic-root p, .ic-root ul, .ic-root ol, .ic-root figure { margin: 0; padding: 0; }
.ic-root ul, .ic-root ol { list-style: none; }
.ic-root img { display: block; max-width: 100%; }
.ic-root a { color: inherit; text-decoration: none; }
.ic-root a.link { color: var(--color-text); text-decoration: underline; text-underline-offset: 3px; font-weight: var(--fw-semibold); }
.ic-root a.link:hover { color: var(--color-brand); }
.ic-root button, .ic-root input, .ic-root select, .ic-root textarea { font: inherit; color: inherit; }
.ic-root :focus-visible { outline: none; box-shadow: var(--focus-ring); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { width: 20px; height: 20px; object-fit: contain; flex-shrink: 0; display: inline-block; }
.ic-sm { width: 16px; height: 16px; } .ic-lg { width: 24px; height: 24px; }
.ic-inv { filter: invert(1); }
.ic-red { filter: invert(14%) sepia(97%) saturate(6000%) hue-rotate(352deg) brightness(88%); }
.ic-muted { opacity: .55; }

/* ---------------------------- typography -------------------------- */
.t-display { font-size: var(--fs-display); line-height: var(--lh-display); font-weight: var(--fw-black); letter-spacing: -.02em; }
.t-h1 { font-size: var(--fs-h1); line-height: var(--lh-h1); font-weight: var(--fw-bold); letter-spacing: -.01em; }
.t-h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); font-weight: var(--fw-bold); }
.t-h3 { font-size: var(--fs-h3); line-height: var(--lh-h3); font-weight: var(--fw-semibold); }
.t-title { font-size: var(--fs-title); line-height: var(--lh-title); font-weight: var(--fw-semibold); }
.t-body { font-size: var(--fs-body); line-height: var(--lh-body); }
.t-body-sm { font-size: var(--fs-body-sm); line-height: var(--lh-body-sm); }
.t-caption { font-size: var(--fs-caption); line-height: var(--lh-caption); }
.t-overline { font-size: var(--fs-overline); line-height: var(--lh-overline); font-weight: var(--fw-bold); letter-spacing: .08em; text-transform: uppercase; }
.t-muted { color: var(--color-text-muted); } .t-secondary { color: var(--color-text-secondary); }
.t-brand { color: var(--color-brand); } .t-success { color: var(--color-success-ink); } .t-info { color: var(--color-info-ink); }
.t-strong { font-weight: var(--fw-bold); } .t-medium { font-weight: var(--fw-medium); } .t-semibold { font-weight: var(--fw-semibold); }
.t-center { text-align: center; } .t-right { text-align: right; } .t-pretty { text-wrap: pretty; }
.t-strike { text-decoration: line-through; }
.tnum { font-variant-numeric: tabular-nums; }

/* ------------------------------ layout ---------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.stack { display: flex; flex-direction: column; }
.row { display: flex; flex-direction: row; align-items: center; }
.wrap { flex-wrap: wrap; } .between { justify-content: space-between; } .center { justify-content: center; align-items: center; }
.start { align-items: flex-start; } .grow { flex: 1 1 auto; min-width: 0; }
.gap-1 { gap: 4px; } .gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; } .gap-5 { gap: 20px; } .gap-6 { gap: 24px; } .gap-8 { gap: 32px; } .gap-10 { gap: 40px; } .gap-12 { gap: 48px; } .gap-16 { gap: 64px; }
.grid { display: grid; gap: var(--space-4); }
.grid-auto-160 { grid-template-columns: repeat(auto-fill, minmax(min(160px,100%),1fr)); }
.grid-auto-220 { grid-template-columns: repeat(auto-fill, minmax(min(220px,100%),1fr)); }
.grid-auto-280 { grid-template-columns: repeat(auto-fit, minmax(min(280px,100%),1fr)); }
.grid-auto-360 { grid-template-columns: repeat(auto-fit, minmax(min(360px,100%),1fr)); }
.split { display: flex; flex-wrap: wrap; gap: var(--space-8); align-items: flex-start; }
.split > .main { flex: 999 1 560px; min-width: 0; }
.split > .aside { flex: 1 1 340px; min-width: 0; }
.divider { height: 1px; background: var(--color-border); border: 0; width: 100%; }
.section { padding-block: var(--space-12); }
.surface-muted { background: var(--color-surface-muted); }
.p-4 { padding: 16px; } .p-5 { padding: 20px; } .p-6 { padding: 24px; } .p-8 { padding: 32px; }

/* ------------------------------ buttons --------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--btn-h); padding: 0 20px; border-radius: var(--radius-sm); border: 1px solid transparent; font-size: 15px; font-weight: var(--fw-semibold); line-height: 1; cursor: pointer; white-space: nowrap; transition: background var(--dur-fast), transform var(--dur-fast), box-shadow var(--dur-fast); background: var(--color-ink); color: #fff; text-decoration: none; }
.btn:hover { background: #2B2B2B; } .btn:active { transform: scale(.98); }
.btn-primary { background: var(--color-ink); color: #fff; }
.btn-brand { background: var(--color-brand); color: #fff; } .btn-brand:hover { background: #C4000D; }
.btn-success { background: var(--color-success-ink); color: #fff; } .btn-success:hover { background: #0E6600; }
.btn-secondary { background: #fff; color: var(--color-ink); border-color: var(--color-ink); } .btn-secondary:hover { background: var(--color-surface-muted); }
.btn-ghost { background: transparent; color: var(--color-ink); } .btn-ghost:hover { background: var(--color-surface-sunken); }
.btn-highlight { background: var(--color-highlight); color: var(--color-ink); } .btn-highlight:hover { background: #F2E200; }
.btn:disabled, .btn.is-disabled { background: var(--color-border); color: var(--color-text-disabled); border-color: transparent; cursor: not-allowed; transform: none; }
.btn.is-loading { color: transparent; position: relative; pointer-events: none; }
.btn.is-loading::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; animation: ic-spin .7s linear infinite; }
.btn-secondary.is-loading::after, .btn-ghost.is-loading::after { border-color: rgba(17,17,17,.2); border-top-color: #111; }
.btn-sm { min-height: var(--btn-h-sm); padding: 0 14px; font-size: 13px; }
.btn-lg { min-height: var(--btn-h-lg); padding: 0 28px; font-size: 16px; }
.btn-block { width: 100%; }
.icon-btn { width: var(--tap-min); height: var(--tap-min); display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-pill); background: transparent; border: 0; cursor: pointer; position: relative; flex-shrink: 0; }
.icon-btn:hover { background: var(--color-surface-sunken); }
.icon-btn.on-image { background: rgba(255,255,255,.92); box-shadow: var(--shadow-1); }
.count-badge { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--color-brand); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.link-btn { background: none; border: 0; padding: 0; min-height: var(--tap-min); display: inline-flex; align-items: center; gap: 6px; font-weight: var(--fw-semibold); cursor: pointer; color: var(--color-ink); text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------------- forms ---------------------------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.label { font-size: 13px; font-weight: var(--fw-semibold); color: var(--color-text); }
.label .req { color: var(--color-brand); }
.input, .select, .textarea { width: 100%; min-height: var(--input-h); padding: 0 14px; border: 1px solid var(--color-border-strong); border-radius: var(--radius-sm); background: #fff; font-size: 15px; transition: border-color var(--dur-fast), box-shadow var(--dur-fast); }
.textarea { padding: 12px 14px; min-height: 120px; resize: vertical; line-height: 22px; }
.input::placeholder, .textarea::placeholder { color: #8A8A8A; }
.input:hover, .select:hover { border-color: #9E9E9E; }
.input:focus, .input.is-focus, .select:focus, .textarea:focus, .textarea.is-focus { outline: none; border-color: var(--color-ink); box-shadow: 0 0 0 3px rgba(17,17,17,.12); }
.input.is-error, .select.is-error, .textarea.is-error { border-color: var(--color-brand); box-shadow: 0 0 0 3px rgba(226,0,15,.12); }
.input.is-valid { border-color: var(--color-success-ink); }
.input:disabled { background: var(--color-surface-sunken); color: var(--color-text-disabled); }
.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap .input { padding-left: 44px; }
.input-wrap > .ic { position: absolute; left: 14px; }
.input-wrap > .suffix { position: absolute; right: 6px; }
.help { font-size: 12px; line-height: 16px; color: var(--color-text-muted); }
.error-text { font-size: 12px; line-height: 16px; color: var(--color-brand-ink); font-weight: var(--fw-semibold); display: flex; gap: 6px; align-items: center; }
.counter { font-size: 12px; color: var(--color-text-muted); text-align: right; }
.check { display: flex; gap: 10px; align-items: flex-start; min-height: var(--tap-min); padding-top: 12px; cursor: pointer; font-size: 13px; line-height: 20px; }
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--color-ink); flex-shrink: 0; }
.switch { position: relative; width: 44px; height: 26px; border-radius: 13px; background: var(--color-border-strong); flex-shrink: 0; border: 0; cursor: pointer; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-1); transition: transform var(--dur-base); }
.switch.is-on { background: var(--color-ink); } .switch.is-on::after { transform: translateX(18px); }

/* option tiles (radio cards), segmented control, chips */
.opt { display: flex; gap: 12px; align-items: center; min-height: 56px; padding: 12px 16px; border: 1px solid var(--color-border-strong); border-radius: var(--radius-md); background: #fff; cursor: pointer; text-align: left; width: 100%; }
.opt:hover { border-color: #9E9E9E; }
.opt.is-active { border: 2px solid var(--color-ink); padding: 11px 15px; background: #fff; }
.opt .dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #9E9E9E; flex-shrink: 0; }
.opt.is-active .dot { border: 6px solid var(--color-ink); }
.seg { display: inline-flex; padding: 4px; border-radius: var(--radius-md); background: var(--color-surface-sunken); gap: 4px; }
.seg > button { min-height: 40px; padding: 0 16px; border: 0; border-radius: 6px; background: transparent; font-weight: var(--fw-semibold); font-size: 14px; cursor: pointer; color: var(--color-text-secondary); }
.seg > button.is-active { background: #fff; color: var(--color-ink); box-shadow: var(--shadow-1); }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: var(--radius-pill); border: 1px solid var(--color-border-strong); background: #fff; font-size: 13px; font-weight: var(--fw-medium); cursor: pointer; white-space: nowrap; color: var(--color-ink); }
.chip:hover { border-color: var(--color-ink); }
.chip.is-active { background: var(--color-ink); color: #fff; border-color: var(--color-ink); }
.chip.is-disabled { background: var(--color-surface-muted); color: var(--color-text-disabled); border-style: dashed; cursor: not-allowed; text-decoration: line-through; }
.chip-sm { min-height: 32px; padding: 0 10px; font-size: 12px; }

/* date tiles + time slots */
.date-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 84px; min-height: 64px; padding: 8px 10px; border: 1px solid var(--color-border-strong); border-radius: var(--radius-md); background: #fff; cursor: pointer; }
.date-tile b { font-size: 14px; } .date-tile small { font-size: 12px; color: var(--color-text-muted); }
.date-tile.is-active { border: 2px solid var(--color-ink); background: #fff; }
.date-tile.is-active small { color: var(--color-ink); }
.slot { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 48px; padding: 0 14px; border: 1px solid var(--color-border-strong); border-radius: var(--radius-sm); background: #fff; font-size: 14px; font-weight: var(--fw-medium); cursor: pointer; width: 100%; }
.slot.is-active { border: 2px solid var(--color-ink); padding: 0 13px; font-weight: var(--fw-bold); }
.slot.is-full { background: var(--color-surface-muted); color: var(--color-text-disabled); cursor: not-allowed; }
.slot.is-full .slot-note { color: var(--color-text-muted); }
.slot-note { font-size: 11px; font-weight: var(--fw-semibold); }

/* ------------------------------ badges ---------------------------- */
.badge { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px; border-radius: var(--radius-xs); font-size: 11px; font-weight: var(--fw-bold); letter-spacing: .02em; white-space: nowrap; }
.badge-discount { background: var(--color-brand); color: #fff; }
.badge-sameday { background: var(--color-ink); color: #fff; }
.badge-free { background: var(--color-success-pastel); color: var(--color-success-ink); }
.badge-budget { background: var(--color-highlight); color: var(--color-ink); }
.badge-info { background: var(--color-info-pastel); color: var(--color-info-ink); }
.badge-warn { background: var(--color-brand-pastel); color: var(--color-brand-ink); }
.badge-neutral { background: var(--color-surface-sunken); color: var(--color-text-secondary); }
.badge-outline { background: #fff; border: 1px solid var(--color-border-strong); color: var(--color-ink); }
.status { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: var(--radius-pill); font-size: 12px; font-weight: 700; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status-new { background: var(--color-info-pastel); color: var(--color-info-ink); }
.status-prep { background: var(--color-highlight-pastel); color: var(--color-highlight-ink); }
.status-way { background: #EFE7FF; color: #5B2FB8; }
.status-done { background: var(--color-success-pastel); color: var(--color-success-ink); }
.status-cancel { background: var(--color-brand-pastel); color: var(--color-brand-ink); }

/* ------------------------------- price ---------------------------- */
.price { display: inline-flex; align-items: baseline; font-weight: var(--fw-bold); color: var(--color-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.price .int { font-size: 18px; } .price .dec { font-size: 12px; font-weight: var(--fw-semibold); }
.price.lg .int { font-size: 28px; } .price.lg .dec { font-size: 15px; }
.price.sale { color: var(--color-brand); }
.price-old { font-size: 13px; color: var(--color-text-muted); text-decoration: line-through; font-variant-numeric: tabular-nums; }

/* --------------------------- info boxes --------------------------- */
.note { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border-radius: var(--radius-md); font-size: 13px; line-height: 20px; }
.note-info { background: var(--color-info-pastel); color: #0B4A63; }
.note-warn { background: var(--color-brand-pastel); color: var(--color-brand-ink); }
.note-success { background: var(--color-success-pastel); color: #0D5C00; }
.note-highlight { background: var(--color-highlight-pastel); color: var(--color-highlight-ink); }
.note-neutral { background: var(--color-surface-muted); color: var(--color-text-secondary); }

/* ----------------------------- cards ------------------------------ */
.card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md); }
.card-pad { padding: 20px; }
.card-elev { box-shadow: var(--shadow-2); border-color: transparent; }

/* product card */
.pcard { position: relative; display: flex; flex-direction: column; gap: 8px; min-width: 0; color: var(--color-ink); }
.pcard .media { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-md); overflow: hidden; background: var(--color-surface-muted); }
.pcard .media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-standard); }
.pcard:hover .media img { transform: scale(1.03); }
.pcard .fav { position: absolute; top: 8px; right: 8px; }
.pcard .tags { position: absolute; left: 8px; top: 8px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.pcard .code { font-size: 11px; color: var(--color-text-muted); font-weight: var(--fw-medium); letter-spacing: .02em; }
.pcard .name { font-size: 14px; line-height: 20px; font-weight: var(--fw-semibold); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard .eta { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: var(--fw-semibold); color: var(--color-success-ink); }
.pcard .eta.tomorrow { color: var(--color-text-secondary); }
.pcard .price-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }

/* ---------------------------- skeleton ---------------------------- */
.skel { background: linear-gradient(90deg, #F0F0F0 0%, #F7F7F7 40%, #F0F0F0 80%); background-size: 200% 100%; animation: ic-shimmer 1.4s linear infinite; border-radius: var(--radius-sm); }
.skel-text { height: 12px; } .skel-title { height: 16px; } .skel-media { aspect-ratio: 4/5; border-radius: var(--radius-md); }

/* ------------------------- empty / error -------------------------- */
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 40px 24px; }
.empty .art { width: 96px; height: 96px; border-radius: 50%; background: var(--color-surface-muted); display: flex; align-items: center; justify-content: center; }
.empty .art .ic { width: 40px; height: 40px; opacity: .7; }
.empty.error .art { background: var(--color-brand-pastel); }

/* -------------------------- toast / modal ------------------------- */
.toast { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 12px 16px; border-radius: var(--radius-md); background: var(--color-ink); color: #fff; font-size: 14px; box-shadow: var(--shadow-3); max-width: 420px; }
.toast .act { margin-left: auto; color: var(--color-highlight); font-weight: 700; background: none; border: 0; min-height: 36px; cursor: pointer; }
.toast-success { background: var(--color-success-ink); } .toast-error { background: var(--color-brand-ink); }
.scrim { background: var(--color-scrim); }
.modal { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-3); width: 100%; max-width: 560px; overflow: hidden; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 16px 16px 24px; border-bottom: 1px solid var(--color-border); }
.modal-body { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.modal-foot { padding: 16px 24px; border-top: 1px solid var(--color-border); display: flex; gap: 12px; justify-content: flex-end; }
.sheet { background: #fff; border-radius: var(--radius-xl) var(--radius-xl) 0 0; box-shadow: var(--shadow-sheet); display: flex; flex-direction: column; }
.sheet-grip { width: 40px; height: 4px; border-radius: 2px; background: var(--color-border-strong); margin: 8px auto 4px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px 20px; }
.sheet-body { padding: 8px 20px 20px; display: flex; flex-direction: column; gap: 16px; }

/* -------------------------- tabs / accordion ---------------------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--color-border); overflow-x: auto; }
.tabs > a, .tabs > button { min-height: 48px; padding: 0 16px; border: 0; background: none; font-weight: var(--fw-semibold); color: var(--color-text-muted); border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.tabs > .is-active { color: var(--color-ink); border-bottom-color: var(--color-brand); }
.acc { border-bottom: 1px solid var(--color-border); }
.acc-head { display: flex; justify-content: space-between; align-items: center; min-height: 56px; width: 100%; background: none; border: 0; font-weight: 600; font-size: 15px; cursor: pointer; text-align: left; padding: 0; }
.acc-body { padding-bottom: 16px; color: var(--color-text-secondary); }

/* ------------------------------ stepper --------------------------- */
.stepper { display: flex; align-items: center; gap: 8px; }
.step { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--color-text-muted); white-space: nowrap; }
.step .num { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--color-border-strong); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; background: #fff; }
.step.is-active { color: var(--color-ink); } .step.is-active .num { background: var(--color-brand); border-color: var(--color-brand); color: #fff; }
.step.is-done { color: var(--color-ink); } .step.is-done .num { background: var(--color-ink); border-color: var(--color-ink); color: #fff; }
.step-line { flex: 1 1 24px; height: 2px; background: var(--color-border-strong); min-width: 16px; }
.step-line.is-done { background: var(--color-ink); }
.substeps { display: flex; gap: 6px; }
.substeps span { flex: 1; height: 4px; border-radius: 2px; background: var(--color-border); }
.substeps span.is-done { background: var(--color-ink); } .substeps span.is-active { background: var(--color-brand); }

/* ----------------------------- timeline --------------------------- */
.timeline { display: flex; flex-direction: column; }
.tl-item { display: grid; grid-template-columns: 32px 1fr; gap: 12px; position: relative; padding-bottom: 20px; }
.tl-item::before { content: ""; position: absolute; left: 15px; top: 30px; bottom: 0; width: 2px; background: var(--color-border-strong); }
.tl-item:last-child::before { display: none; }
.tl-item.is-done::before { background: var(--color-ink); }
.tl-dot { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--color-border-strong); background: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: var(--color-text-muted); }
.tl-item.is-done .tl-dot { background: var(--color-ink); border-color: var(--color-ink); color: #fff; }
.tl-item.is-current .tl-dot { background: var(--color-brand); border-color: var(--color-brand); color: #fff; box-shadow: 0 0 0 6px var(--color-brand-pastel); }

/* ------------------------------ header ---------------------------- */
.app-bar { background: #EC7533; color: #fff; font-size: 15px; font-weight: 700; }
.app-bar .container { display: flex; justify-content: center; align-items: center; gap: 8px; min-height: 44px; flex-wrap: wrap; padding-block: 6px; text-align: center; }
.app-bar a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 767px) { .app-bar { font-size: 13px; } }
.site-header { background: #fff; border-bottom: 1px solid var(--color-border); }
.hdr-row { display: flex; align-items: center; gap: 24px; min-height: 80px; flex-wrap: wrap; padding-block: 12px; }
.hdr-logo img { height: 40px; width: auto; }
.hdr-search { flex: 1 1 320px; min-width: 0; position: relative; }
.hdr-search .input { padding-left: 44px; height: 48px; background: var(--color-surface-muted); border-color: var(--color-surface-muted); }
.hdr-actions { display: flex; align-items: center; gap: 4px; }
.hdr-action { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 10px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 600; position: relative; }
.hdr-action:hover { background: var(--color-surface-muted); }
.zone-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border: 1px solid var(--color-border-strong); border-radius: var(--radius-pill); font-size: 13px; background: #fff; cursor: pointer; white-space: nowrap; }
.zone-pill small { display: block; font-size: 11px; color: var(--color-text-muted); line-height: 14px; }
.zone-pill b { display: block; font-size: 13px; line-height: 16px; }
.zone-pill.is-empty { border-color: var(--color-brand); background: var(--color-brand-pastel); }
.mainnav { border-top: 1px solid var(--color-border); }
.mainnav .container { display: flex; gap: 4px; overflow-x: auto; }
.mainnav a { min-height: 48px; display: inline-flex; align-items: center; padding: 0 14px; font-size: 13px; font-weight: 700; letter-spacing: .02em; white-space: nowrap; border-bottom: 2px solid transparent; }
.mainnav a:hover, .mainnav a.is-active { border-bottom-color: var(--color-brand); }
.cutoff { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.cutoff .clock { font-variant-numeric: tabular-nums; background: var(--color-highlight); color: var(--color-ink); padding: 2px 6px; border-radius: 3px; font-weight: 800; }

/* ------------------------------ footer ---------------------------- */
.site-footer { background: var(--color-surface-muted); border-top: 1px solid var(--color-border); padding-block: 48px 24px; }
.site-footer h4 { font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; margin: 0 0 12px; }
.site-footer li a { display: inline-flex; min-height: 32px; align-items: center; font-size: 13px; color: var(--color-text-secondary); }
.site-footer li a:hover { color: var(--color-ink); text-decoration: underline; }
.trust-row { display: flex; flex-wrap: wrap; gap: 16px 32px; padding-block: 20px; border-block: 1px solid var(--color-border); }
.trust { display: flex; gap: 10px; align-items: center; font-size: 13px; font-weight: 600; }
.trust .ic { width: 24px; height: 24px; }

/* ------------------- checkout bars & order summary ---------------- */
.co-head { border-bottom: 1px solid var(--color-border); background: #fff; }
.co-head .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; flex-wrap: wrap; }
.summary { background: var(--color-surface-muted); border-radius: var(--radius-md); padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.sum-line { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 12px; border-top: 1px solid var(--color-border-strong); font-weight: 800; font-size: 16px; }
.bottom-bar { background: #fff; border-top: 1px solid var(--color-border); box-shadow: 0 -4px 16px rgba(17,17,17,.06); padding: 12px 16px; display: flex; align-items: center; gap: 12px; }
.bottom-bar .total small { display: block; font-size: 11px; color: var(--color-text-muted); }

/* ------------------------- mobile device frame -------------------- */
.phone { width: 390px; height: 844px; border-radius: 48px; overflow: hidden; position: relative; background: #fff; box-shadow: 0 0 0 10px #1C1C1C, 0 0 0 11px #3A3A3A, 0 24px 48px rgba(0,0,0,.18); display: flex; flex-direction: column; flex-shrink: 0; }
.phone-safe-top { height: 54px; flex-shrink: 0; }
.phone-body { flex: 1 1 auto; overflow: hidden; display: flex; flex-direction: column; min-height: 0; position: relative; }
.phone-scroll { flex: 1 1 auto; overflow: hidden; min-height: 0; }
.phone-home { height: 34px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.phone-home::after { content: ""; width: 134px; height: 5px; border-radius: 3px; background: #111; }
.phone-caption { width: 390px; display: flex; flex-direction: column; gap: 4px; }
.phone-caption b { font-size: 14px; } .phone-caption span { font-size: 12px; color: var(--color-text-muted); }
.appbar { display: flex; align-items: center; gap: 4px; min-height: 56px; padding: 0 8px; }
.appbar .ttl { flex: 1; font-size: 17px; font-weight: 700; text-align: center; }
.tabbar { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); border-top: 1px solid var(--color-border); background: #fff; flex-shrink: 0; }
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 56px; font-size: 10.5px; font-weight: 600; color: var(--color-text-muted); position: relative; }
.tabbar a.is-active { color: var(--color-ink); }
.tabbar a.is-active::before { content: ""; position: absolute; top: 0; width: 28px; height: 3px; border-radius: 0 0 3px 3px; background: var(--color-brand); }
.tabbar a .count-badge { top: 4px; right: 22%; }
.list-row { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 16px; border-bottom: 1px solid var(--color-border); font-size: 15px; font-weight: 500; }
.list-row .grow { min-width: 0; }

/* ------------------------------- admin ---------------------------- */
.admin { display: flex; flex-wrap: wrap; min-height: 100%; background: var(--color-surface-muted); }
.admin-side { flex: 1 1 240px; max-width: 260px; background: var(--color-ink); color: #fff; padding: 20px 12px; display: flex; flex-direction: column; gap: 4px; }
.admin-side a { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 12px; border-radius: 6px; font-size: 13px; font-weight: 500; color: #CFCFCF; }
.admin-side a:hover { background: #222; color: #fff; }
.admin-side a.is-active { background: #fff; color: var(--color-ink); font-weight: 700; }
.admin-side .grp { font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #9E9E9E; padding: 16px 12px 6px; }
.admin-main { flex: 999 1 640px; min-width: 0; padding: 24px 32px 48px; display: flex; flex-direction: column; gap: 24px; }
.kpi { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 16px 20px; display: flex; flex-direction: column; gap: 4px; }
.kpi .v { font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }
.kpi .d { font-size: 12px; font-weight: 700; }
.tbl-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md); }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 760px; }
.tbl th { text-align: left; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--color-text-muted); background: #fff; padding: 12px 16px; border-bottom: 1px solid var(--color-border); white-space: nowrap; }
.tbl td { padding: 12px 16px; border-bottom: 1px solid var(--color-border); vertical-align: middle; }
.tbl tr:hover td { background: #FCFCFC; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.thumb { width: 44px; height: 52px; border-radius: 4px; object-fit: cover; background: var(--color-surface-muted); }
.bar { height: 8px; border-radius: 4px; background: var(--color-border); overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--color-ink); }

/* -------------------------- canvas annotation --------------------- */
.anno { font-size: 12px; line-height: 18px; color: var(--color-text-secondary); background: #FFFDF0; border: 1px dashed #D9C94A; border-radius: 6px; padding: 8px 12px; }
.anno b { color: var(--color-ink); }
.sheet-label { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--color-text-muted); }

/* --------------------------- micro-motion ------------------------- */
@keyframes ic-spin { to { transform: rotate(360deg); } }
@keyframes ic-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@keyframes ic-heart { 0% { transform: scale(1); } 30% { transform: scale(1.35); } 60% { transform: scale(.9); } 100% { transform: scale(1); } }
@keyframes ic-bump { 0% { transform: scale(1); } 40% { transform: scale(1.25); } 100% { transform: scale(1); } }
@keyframes ic-fly { 0% { transform: translate(0,0) scale(1); opacity: 1; } 100% { transform: translate(var(--fly-x,240px), var(--fly-y,-320px)) scale(.2); opacity: 0; } }
@keyframes ic-slide-up { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
.anim-heart { animation: ic-heart 420ms var(--ease-emph); }
.anim-bump { animation: ic-bump 360ms var(--ease-emph); }
.anim-in { animation: ic-slide-up var(--dur-slow) var(--ease-standard) both; }
@media (prefers-reduced-motion: reduce) { .ic-root *, .ic-root *::before, .ic-root *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; } }

/* ----------------------------- responsive ------------------------- */
@media (max-width: 900px) {
  :root { --gutter: 16px; }
  .hdr-row { gap: 12px; min-height: 64px; }
  .hdr-logo img { height: 30px; }
  .hdr-search { order: 3; flex-basis: 100%; }
  .hdr-action .lbl { display: none; }
  .section { padding-block: 32px; }
  .t-display { font-size: 28px; line-height: 36px; }
  .t-h1 { font-size: 24px; line-height: 32px; }
  .hide-mobile { display: none !important; }
}
@media (min-width: 901px) { .show-mobile { display: none !important; } }
