/* =============================================================
   MINO FITNESS — Proposal Sample Site
   Design system: Energy Gradient (purple → pink → orange)
   Pure static. All imagery via CSS gradients / inline SVG.
   ============================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Brand gradient stops */
  --c-purple: #7C3AED;
  --c-violet: #6D28D9;
  --c-pink:   #EC4899;
  --c-orange: #F97316;
  --c-amber:  #FB923C;

  --grad-brand: linear-gradient(135deg, #7C3AED 0%, #EC4899 50%, #F97316 100%);
  --grad-brand-soft: linear-gradient(135deg, rgba(124,58,237,.12), rgba(249,115,22,.12));
  --grad-dark: linear-gradient(160deg, #1A1633 0%, #2B1B4D 55%, #3D1F52 100%);

  /* Neutrals */
  --ink:      #1A1A2E;
  --ink-2:    #4B4B63;
  --muted:    #8A8AA3;
  --line:     #ECECF3;
  --surface:  #FFFFFF;
  --bg:       #F7F7FB;
  --bg-2:     #F0EEF8;

  /* State */
  --ok: #16A34A;
  --warn: #F59E0B;
  --danger: #EF4444;

  /* Shape */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 3px rgba(26,26,46,.06), 0 1px 2px rgba(26,26,46,.04);
  --shadow-md: 0 8px 24px rgba(26,26,46,.08);
  --shadow-lg: 0 20px 50px rgba(76,29,149,.18);
  --shadow-brand: 0 12px 30px rgba(124,58,237,.35);

  --ease: cubic-bezier(.22,.61,.36,1);
  --nav-h: 68px;

  --font: "Pretendard", "Apple SD Gothic Neo", "Segoe UI", -apple-system,
          BlinkMacSystemFont, "Malgun Gothic", system-ui, sans-serif;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img, svg { display: block; max-width: 100%; }
ul { list-style: none; }
input, textarea, select { font-family: inherit; }

/* ---------- Layout helpers ---------- */
.container { width: min(1180px, 92vw); margin-inline: auto; }
.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }
.grad-text {
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--c-violet);
  background: var(--grad-brand-soft);
  padding: 7px 14px; border-radius: var(--r-pill);
}
.section-title { font-size: clamp(26px, 4vw, 40px); font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; }
.section-lead { color: var(--ink-2); font-size: 17px; margin-top: 14px; max-width: 560px; }
.center { text-align: center; }
.center .section-lead { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 15px; font-weight: 700; line-height: 1;
  padding: 14px 24px; border-radius: var(--r-pill);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--grad-brand); color: #fff; box-shadow: var(--shadow-brand); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 38px rgba(124,58,237,.45); }
.btn-ghost { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.btn-ghost:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { border: 1.5px solid rgba(255,255,255,.5); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-sm { padding: 9px 16px; font-size: 13px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

/* ---------- Badges / chips ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: var(--r-pill);
}
.badge-brand { background: var(--grad-brand-soft); color: var(--c-violet); }
.badge-ok { background: rgba(22,163,74,.12); color: var(--ok); }
.badge-warn { background: rgba(245,158,11,.14); color: #B45309; }
.badge-muted { background: var(--bg-2); color: var(--muted); }

/* =============================================================
   NAVBAR (injected by main.js)
   ============================================================= */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(255,255,255,.8);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; width: min(1180px,94vw); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.brand .logo-mark {
  width: 34px; height: 34px; border-radius: 10px; background: var(--grad-brand);
  display: grid; place-items: center; color: #fff; font-size: 18px; box-shadow: var(--shadow-brand);
}
.nav-left { display: flex; align-items: center; gap: 22px; }
/* segmented tab toggle (홈 | 쇼핑몰) — grouped pill next to the logo */
.seg-toggle { display: inline-flex; align-items: center; gap: 3px; background: var(--bg-2); border-radius: var(--r-pill); padding: 5px; }
.seg {
  font-size: 14.5px; font-weight: 700; color: var(--ink-2);
  padding: 8px 20px; border-radius: var(--r-pill); transition: color .16s, background .2s var(--ease), box-shadow .2s var(--ease);
}
.seg:hover { color: var(--ink); }
.seg.active { color: #fff; background: var(--grad-brand); box-shadow: var(--shadow-brand); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.cart-btn { position: relative; width: 42px; height: 42px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; font-size: 18px; transition:.16s; }
.cart-btn:hover { background: var(--bg-2); }
.cart-count {
  position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px;
  background: var(--c-orange); color: #fff; font-size: 11px; font-weight: 800;
  border-radius: var(--r-pill); display: grid; place-items: center; border: 2px solid #fff;
  transform: scale(0); transition: transform .25s var(--ease);
}
.cart-count.show { transform: scale(1); }

/* =============================================================
   HERO (landing)
   ============================================================= */
.hero { position: relative; background: var(--grad-dark); color: #fff; overflow: hidden; padding: 96px 0 120px; }
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; z-index: 0;
}
.hero::before { width: 420px; height: 420px; background: var(--c-purple); top: -120px; right: -60px; }
.hero::after { width: 380px; height: 380px; background: var(--c-orange); bottom: -140px; left: -80px; }
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero-eyebrow { background: rgba(255,255,255,.12); color: #fff; }
.hero h1 { font-size: clamp(34px, 5.2vw, 60px); font-weight: 900; line-height: 1.08; letter-spacing: -0.03em; margin: 20px 0 18px; }
.hero h1 .grad-text { background: linear-gradient(120deg, #FBBF24, #EC4899); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero p.lead { font-size: 18px; color: rgba(255,255,255,.82); max-width: 480px; }
.hero-cta { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 30px; margin-top: 44px; }
.hero-stats .stat b { font-size: 30px; font-weight: 900; display: block; line-height: 1; }
.hero-stats .stat span { font-size: 13px; color: rgba(255,255,255,.65); }

/* Hero visual — floating device mock */
.hero-visual { position: relative; height: 440px; }
.glass-card {
  position: absolute; background: rgba(255,255,255,.1); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.18); border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  padding: 20px; color: #fff;
}
.gc-main { inset: 20px 40px 60px 40px; display: flex; flex-direction: column; gap: 14px; }
.gc-ring { width: 132px; height: 132px; border-radius: 50%; margin: 6px auto 0;
  background: conic-gradient(var(--c-orange) 0 78%, rgba(255,255,255,.15) 78% 100%);
  display: grid; place-items: center; position: relative; }
.gc-ring::after { content: ""; position: absolute; inset: 12px; border-radius: 50%; background: #241a3d; }
.gc-ring b { position: relative; z-index: 1; font-size: 26px; font-weight: 900; }
.gc-ring span { position: relative; z-index: 1; font-size: 11px; color: rgba(255,255,255,.7); }
.gc-bars { display: flex; align-items: flex-end; gap: 8px; height: 72px; padding: 0 4px; }
.gc-bars i { flex: 1; border-radius: 6px 6px 0 0; background: var(--grad-brand); opacity: .85; }
.gc-float { animation: floaty 5s var(--ease) infinite; }
.gc-pill { top: 24px; right: -10px; padding: 12px 16px; display: flex; gap: 10px; align-items: center; animation-delay: -2.5s; }
.gc-pill .dot { width: 34px; height: 34px; border-radius: 10px; background: var(--grad-brand); display: grid; place-items: center; font-size: 16px; }
.gc-pill small { display: block; color: rgba(255,255,255,.65); font-size: 11px; }
.gc-pill b { font-size: 14px; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* =============================================================
   CARDS / GRIDS (features, products, dashboards)
   ============================================================= */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.card-pad { padding: 26px; }
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.feature .ico {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  font-size: 24px; color: #fff; background: var(--grad-brand); margin-bottom: 16px; box-shadow: var(--shadow-brand);
}
.feature h3 { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.feature p { color: var(--ink-2); font-size: 15px; }

/* Product card */
.product { overflow: hidden; display: flex; flex-direction: column; }
.product .thumb { aspect-ratio: 4/3; position: relative; display: grid; place-items: center; }
.product .thumb .emoji { font-size: 64px; filter: drop-shadow(0 8px 12px rgba(0,0,0,.15)); }
.product .thumb .tag { position: absolute; top: 12px; left: 12px; }
.product .thumb .wish { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.9); display: grid; place-items: center; font-size: 16px; transition: .16s; }
.product .thumb .wish:hover { transform: scale(1.12); }
.product .thumb .wish.on { color: var(--c-pink); }
.product .p-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product .p-cat { font-size: 12px; font-weight: 700; color: var(--muted); }
.product .p-name { font-size: 16px; font-weight: 800; }
.product .p-rate { font-size: 13px; color: var(--ink-2); }
.product .p-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 8px; }
.product .p-price { font-size: 19px; font-weight: 900; }
.product .p-price small { font-size: 13px; color: var(--muted); font-weight: 600; text-decoration: line-through; margin-right: 6px; }

/* thumb gradient variants */
.t-1 { background: linear-gradient(135deg,#A78BFA,#7C3AED); }
.t-2 { background: linear-gradient(135deg,#FDBA74,#F97316); }
.t-3 { background: linear-gradient(135deg,#F9A8D4,#EC4899); }
.t-4 { background: linear-gradient(135deg,#93C5FD,#6366F1); }
.t-5 { background: linear-gradient(135deg,#6EE7B7,#10B981); }

/* =============================================================
   AUTH (login)
   ============================================================= */
.auth-wrap { min-height: calc(100vh - var(--nav-h)); display: grid; grid-template-columns: 1fr 1fr; }
.auth-aside { background: var(--grad-dark); color: #fff; padding: 60px; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.auth-aside::before { content:""; position:absolute; width:360px; height:360px; border-radius:50%; background:var(--c-purple); filter: blur(80px); opacity:.5; top:-80px; left:-60px; }
.auth-aside::after { content:""; position:absolute; width:320px; height:320px; border-radius:50%; background:var(--c-orange); filter: blur(80px); opacity:.45; bottom:-90px; right:-60px; }
.auth-aside > * { position: relative; z-index: 1; }
.auth-aside h2 { font-size: 34px; font-weight: 900; line-height: 1.2; margin: 18px 0; }
.auth-aside ul { display: grid; gap: 14px; margin-top: 24px; }
.auth-aside li { display: flex; gap: 12px; align-items: center; color: rgba(255,255,255,.85); }
.auth-aside li .chk { width: 26px; height: 26px; border-radius: 8px; background: rgba(255,255,255,.14); display: grid; place-items: center; font-size: 14px; }
.auth-main { display: grid; place-items: center; padding: 40px; }
.auth-card { width: min(420px, 100%); }
.auth-card h3 { font-size: 26px; font-weight: 900; }
.auth-card .sub { color: var(--ink-2); margin: 8px 0 28px; }
.role-switch { display: flex; gap: 8px; background: var(--bg-2); padding: 6px; border-radius: var(--r-pill); margin-bottom: 24px; }
.role-switch button { flex: 1; padding: 11px; border-radius: var(--r-pill); font-weight: 700; font-size: 14px; color: var(--ink-2); transition:.18s; }
.role-switch button.active { background: #fff; color: var(--c-violet); box-shadow: var(--shadow-sm); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 7px; }
.field input {
  width: 100%; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  font-size: 15px; transition: .16s; background: var(--surface);
}
.field input:focus { outline: none; border-color: var(--c-purple); box-shadow: 0 0 0 4px rgba(124,58,237,.12); }
.auth-hint { font-size: 12.5px; color: var(--muted); text-align: center; margin-top: 16px; }

/* =============================================================
   DASHBOARD shell (member / trainer)
   ============================================================= */
.dash { display: grid; grid-template-columns: 250px 1fr; min-height: calc(100vh - var(--nav-h)); }
.side { background: var(--surface); border-right: 1px solid var(--line); padding: 24px 16px; position: sticky; top: var(--nav-h); height: calc(100vh - var(--nav-h)); overflow-y: auto; }
.side .me { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: var(--r-md); background: var(--grad-brand-soft); margin-bottom: 18px; }
.avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--grad-brand); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 17px; flex-shrink: 0; }
.avatar.lg { width: 72px; height: 72px; font-size: 26px; }
.side .me b { display: block; font-size: 15px; }
.side .me span { font-size: 12.5px; color: var(--ink-2); }
.side-nav { display: grid; gap: 4px; }
.side-nav button {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: 11px 14px; border-radius: var(--r-sm); font-size: 14.5px; font-weight: 600; color: var(--ink-2); transition: .16s;
}
.side-nav button .i { font-size: 17px; width: 22px; text-align: center; }
.side-nav button:hover { background: var(--bg-2); color: var(--ink); }
.side-nav button.active { background: var(--grad-brand); color: #fff; box-shadow: var(--shadow-brand); }
.side-nav .grp { font-size: 11px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding: 16px 14px 6px; }

.dash-main { padding: 32px 36px; overflow-x: hidden; }
.dash-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 26px; flex-wrap: wrap; gap: 16px; }
.dash-head h1 { font-size: 27px; font-weight: 900; }
.dash-head p { color: var(--ink-2); margin-top: 4px; }

.view { display: none; animation: fadeUp .4s var(--ease); }
.view.active { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Stat tiles */
.stat-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; margin-bottom: 24px; }
.stat-tile { padding: 20px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.stat-tile .st-top { display: flex; align-items: center; justify-content: space-between; }
.stat-tile .st-ico { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; font-size: 19px; color: #fff; background: var(--grad-brand); }
.stat-tile b { font-size: 28px; font-weight: 900; display: block; margin-top: 12px; line-height: 1; }
.stat-tile span { font-size: 13px; color: var(--ink-2); }
.stat-tile .trend { font-size: 12px; font-weight: 700; }
.trend.up { color: var(--ok); }
.trend.down { color: var(--danger); }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-sm); }
.panel-head { padding: 18px 22px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.panel-head h3 { font-size: 17px; font-weight: 800; }
.panel-body { padding: 22px; }

/* Table */
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 14px; border-bottom: 1px solid var(--line); font-size: 14.5px; vertical-align: middle; }
.tbl tr:last-child td { border-bottom: none; }
.tbl tr:hover td { background: var(--bg); }
.u-cell { display: flex; align-items: center; gap: 11px; }

/* Progress */
.pbar { height: 8px; border-radius: var(--r-pill); background: var(--bg-2); overflow: hidden; }
.pbar > i { display: block; height: 100%; border-radius: var(--r-pill); background: var(--grad-brand); }

/* Log / timeline */
.timeline { display: grid; gap: 0; }
.tl-item { display: grid; grid-template-columns: 20px 1fr; gap: 16px; }
.tl-dot { position: relative; }
.tl-dot::before { content:""; position:absolute; left: 5px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--grad-brand); box-shadow: 0 0 0 4px rgba(124,58,237,.14); }
.tl-dot::after { content:""; position:absolute; left: 10px; top: 18px; bottom: -6px; width: 2px; background: var(--line); }
.tl-item:last-child .tl-dot::after { display: none; }
.tl-body { padding-bottom: 22px; }
.tl-body .t { font-size: 12px; color: var(--muted); font-weight: 700; }
.tl-body h4 { font-size: 15px; font-weight: 800; margin: 3px 0 4px; }
.tl-body p { font-size: 14px; color: var(--ink-2); }

/* =============================================================
   CHAT (member↔trainer messaging + chatbot both reuse)
   ============================================================= */
.chat-shell { display: grid; grid-template-columns: 260px 1fr; height: 560px; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-sm); }
.chat-list { border-right: 1px solid var(--line); overflow-y: auto; }
.chat-list .ci { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); cursor: pointer; transition: .14s; }
.chat-list .ci:hover { background: var(--bg); }
.chat-list .ci.active { background: var(--grad-brand-soft); }
.chat-list .ci b { font-size: 14px; }
.chat-list .ci small { color: var(--muted); font-size: 12.5px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.chat-main { display: flex; flex-direction: column; }
.chat-top { padding: 14px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; }
.chat-body { flex: 1; overflow-y: auto; padding: 20px; background: var(--bg); display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 72%; padding: 11px 15px; border-radius: 16px; font-size: 14.5px; line-height: 1.5; }
.msg.them { background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 4px; align-self: flex-start; }
.msg.me { background: var(--grad-brand); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.msg .time { display: block; font-size: 10.5px; opacity: .6; margin-top: 4px; }
.chat-input { padding: 14px 16px; border-top: 1px solid var(--line); display: flex; gap: 10px; }
.chat-input input { flex: 1; padding: 12px 16px; border: 1.5px solid var(--line); border-radius: var(--r-pill); font-size: 14.5px; }
.chat-input input:focus { outline: none; border-color: var(--c-purple); }
.chat-send { width: 46px; height: 46px; border-radius: 50%; background: var(--grad-brand); color: #fff; display: grid; place-items: center; font-size: 18px; box-shadow: var(--shadow-brand); flex-shrink: 0; }

/* =============================================================
   FLOATING CHATBOT (injected by main.js, all pages)
   ============================================================= */
.bot-fab {
  position: fixed; right: 26px; bottom: 26px; z-index: 200;
  width: 62px; height: 62px; border-radius: 50%; background: var(--grad-brand); color: #fff;
  display: grid; place-items: center; font-size: 26px; box-shadow: var(--shadow-brand);
  transition: transform .2s var(--ease);
}
.bot-fab:hover { transform: scale(1.08) rotate(6deg); }
.bot-fab .ping { position: absolute; inset: 0; border-radius: 50%; background: var(--c-purple); opacity: .5; animation: ping 2.4s var(--ease) infinite; z-index: -1; }
@keyframes ping { 0% { transform: scale(1); opacity: .5; } 70%,100% { transform: scale(1.7); opacity: 0; } }

.bot-panel {
  position: fixed; right: 26px; bottom: 100px; z-index: 200;
  width: min(380px, calc(100vw - 40px)); height: 520px;
  background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line);
  transform: translateY(20px) scale(.96); opacity: 0; pointer-events: none;
  transition: transform .24s var(--ease), opacity .24s var(--ease);
}
.bot-panel.open { transform: none; opacity: 1; pointer-events: auto; }
.bot-head { background: var(--grad-dark); color: #fff; padding: 18px 20px; display: flex; align-items: center; gap: 12px; }
.bot-head .avatar { background: rgba(255,255,255,.16); }
.bot-head b { font-size: 15px; }
.bot-head small { font-size: 12px; color: rgba(255,255,255,.7); display: flex; align-items: center; gap: 5px; }
.bot-head small::before { content:""; width: 7px; height: 7px; border-radius: 50%; background: #4ADE80; }
.bot-head .x { margin-left: auto; font-size: 20px; color: #fff; opacity: .8; }
.bot-body { flex: 1; overflow-y: auto; padding: 18px; background: var(--bg); display: flex; flex-direction: column; gap: 10px; }
.bot-msg { max-width: 82%; padding: 11px 14px; border-radius: 15px; font-size: 14px; line-height: 1.55; }
.bot-msg.bot { background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 4px; align-self: flex-start; }
.bot-msg.user { background: var(--grad-brand); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.bot-quick { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 18px 12px; background: var(--bg); }
.bot-quick button { font-size: 12.5px; font-weight: 600; padding: 8px 13px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface); color: var(--c-violet); transition:.14s; }
.bot-quick button:hover { background: var(--grad-brand-soft); }
.bot-input { padding: 12px 14px; border-top: 1px solid var(--line); display: flex; gap: 9px; background: var(--surface); }
.bot-input input { flex: 1; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: var(--r-pill); font-size: 14px; }
.bot-input input:focus { outline: none; border-color: var(--c-purple); }
.bot-input button { width: 42px; height: 42px; border-radius: 50%; background: var(--grad-brand); color: #fff; display: grid; place-items: center; font-size: 16px; flex-shrink: 0; }
.typing { display: inline-flex; gap: 4px; padding: 4px 2px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing i:nth-child(2){ animation-delay:.2s; } .typing i:nth-child(3){ animation-delay:.4s; }
@keyframes blink { 0%,60%,100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

/* =============================================================
   CART DRAWER (injected by main.js)
   ============================================================= */
.drawer-scrim { position: fixed; inset: 0; background: rgba(20,16,40,.45); z-index: 300; opacity: 0; pointer-events: none; transition: opacity .25s; }
.drawer-scrim.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; height: 100%; width: min(400px, 92vw); background: var(--surface); z-index: 301; box-shadow: -20px 0 50px rgba(0,0,0,.15); transform: translateX(100%); transition: transform .3s var(--ease); display: flex; flex-direction: column; }
.drawer.open { transform: none; }
.drawer-head { padding: 20px 22px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.drawer-head h3 { font-size: 18px; font-weight: 800; }
.drawer-body { flex: 1; overflow-y: auto; padding: 14px 22px; }
.cart-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-item .ci-thumb { width: 60px; height: 60px; border-radius: 12px; display: grid; place-items: center; font-size: 28px; flex-shrink: 0; }
.cart-item .ci-info { flex: 1; }
.cart-item .ci-info b { font-size: 14.5px; display: block; }
.cart-item .ci-info .price { font-weight: 800; margin-top: 4px; }
.qty { display: inline-flex; align-items: center; gap: 10px; margin-top: 8px; background: var(--bg-2); border-radius: var(--r-pill); padding: 3px; }
.qty button { width: 26px; height: 26px; border-radius: 50%; background: #fff; font-weight: 800; box-shadow: var(--shadow-sm); }
.qty span { min-width: 20px; text-align: center; font-weight: 700; font-size: 14px; }
.ci-remove { color: var(--muted); font-size: 13px; align-self: flex-start; }
.ci-remove:hover { color: var(--danger); }
.drawer-foot { padding: 20px 22px; border-top: 1px solid var(--line); }
.drawer-foot .row { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 14px; color: var(--ink-2); }
.drawer-foot .row.total { font-size: 18px; font-weight: 900; color: var(--ink); margin: 12px 0 16px; }
.cart-empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.cart-empty .big { font-size: 52px; margin-bottom: 12px; }

/* =============================================================
   TOAST (injected)
   ============================================================= */
.toast-wrap { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 400; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.toast { background: var(--ink); color: #fff; padding: 13px 20px; border-radius: var(--r-pill); font-size: 14px; font-weight: 600; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 10px; animation: toastIn .3s var(--ease); }
.toast .ic { font-size: 16px; }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* =============================================================
   FOOTER
   ============================================================= */
.footer { background: #14121F; color: rgba(255,255,255,.7); padding: 56px 0 30px; margin-top: 40px; }
.footer .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; }
.footer .brand { color: #fff; margin-bottom: 12px; }
.footer p { font-size: 14px; max-width: 280px; }
.footer h5 { color: #fff; font-size: 14px; font-weight: 800; margin-bottom: 14px; }
.footer li { margin-bottom: 9px; font-size: 14px; }
.footer li a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; font-size: 13px; flex-wrap: wrap; gap: 10px; }

/* =============================================================
   CTA band
   ============================================================= */
.cta-band { background: var(--grad-brand); border-radius: var(--r-lg); padding: 56px; color: #fff; text-align: center; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.cta-band h2 { font-size: clamp(26px,4vw,38px); font-weight: 900; }
.cta-band p { opacity: .9; margin: 12px 0 26px; font-size: 17px; }

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .grid-3 { grid-template-columns: repeat(2,1fr); }
  .stat-row { grid-template-columns: repeat(2,1fr); }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .dash { grid-template-columns: 1fr; }
  .side { position: static; height: auto; display: flex; gap: 14px; align-items: center; overflow-x: auto; padding: 14px; }
  .side .me { margin: 0; flex-shrink: 0; }
  .side-nav { grid-auto-flow: column; grid-template-rows: 1fr; }
  .side-nav .grp { display: none; }
  .side-nav button { white-space: nowrap; }
  .chat-shell { grid-template-columns: 1fr; }
  .chat-list { display: none; }
  .footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .nav-left { gap: 10px; }
  .brand { font-size: 17px; }
  .seg { padding: 7px 13px; font-size: 13.5px; }
  .nav-actions { gap: 7px; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .section { padding: 60px 0; }
  .cta-band { padding: 36px 24px; }
  .dash-main { padding: 20px 16px; }
  .footer .cols { grid-template-columns: 1fr; }
  /* tables scroll horizontally inside their panel instead of squishing */
  .panel-body { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .tbl { min-width: 520px; }
  .tbl th, .tbl td { white-space: nowrap; }
}
