/* ============================================================
   Bio Studio — Main Stylesheet
   Design system: emerald/teal primary, slate neutrals, shadcn-inspired.
   ============================================================ */

/* ── Design Tokens ───────────────────────────────────────── */
:root{
  /* Brand */
  --primary:#10b981; --primary-600:#059669; --primary-700:#047857;
  --primary-fg:#ffffff;
  --gradient:linear-gradient(135deg,#10b981,#059669);
  --gradient-violet:linear-gradient(135deg,#8b5cf6,#6366f1);
  --gradient-rose:linear-gradient(135deg,#f43f5e,#d97706,#fbbf24);

  /* Neutrals (slate) */
  --bg:#f8fafc; --bg-soft:#f1f5f9;
  --card:#ffffff; --card-fg:#0f172a;
  --fg:#0f172a; --muted:#64748b; --muted-2:#94a3b8;
  --border:#e2e8f0; --border-2:#cbd5e1;
  --input:#ffffff; --ring:#10b981;

  /* Status */
  --emerald:#10b981; --emerald-soft:#ecfdf5; --emerald-border:#a7f3d0; --emerald-fg:#065f46;
  --amber:#f59e0b;   --amber-soft:#fef3c7;   --amber-border:#fde68a;   --amber-fg:#92400e;
  --rose:#f43f5e;    --rose-soft:#fef2f2;    --rose-border:#fecaca;    --rose-fg:#991b1b;
  --violet:#8b5cf6;  --violet-soft:#f5f3ff;  --violet-border:#ddd6fe;  --violet-fg:#5b21b6;
  --sky:#0ea5e9;     --sky-soft:#f0f9ff;     --sky-border:#bae6fd;     --sky-fg:#075985;
  --teal:#14b8a6;    --teal-soft:#f0fdfa;    --teal-border:#99f6e4;    --teal-fg:#115e59;
  --indigo:#6366f1;  --indigo-soft:#eef2ff;  --indigo-border:#c7d2fe;  --indigo-fg:#3730a3;
  --slate:#64748b;   --slate-soft:#f1f5f9;   --slate-border:#e2e8f0;   --slate-fg:#334155;
  --zinc:#71717a;    --zinc-soft:#f4f4f5;    --zinc-border:#e4e4e7;    --zinc-fg:#3f3f46;

  /* Radius */
  --r-sm:6px; --r:8px; --r-md:10px; --r-lg:12px; --r-xl:16px; --r-2xl:20px; --r-full:9999px;

  /* Shadow */
  --shadow-sm:0 1px 2px rgba(0,0,0,.05);
  --shadow:0 1px 3px rgba(0,0,0,.08),0 1px 2px rgba(0,0,0,.04);
  --shadow-md:0 4px 6px -1px rgba(0,0,0,.08),0 2px 4px -2px rgba(0,0,0,.05);
  --shadow-lg:0 10px 15px -3px rgba(0,0,0,.08),0 4px 6px -4px rgba(0,0,0,.05);

  --sidebar-w:260px;
  --topbar-h:64px;
}

/* ── Reset ───────────────────────────────────────────────── */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;
  background:var(--bg); color:var(--fg); line-height:1.5; -webkit-font-smoothing:antialiased;
  font-size:14px;
}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
button{font-family:inherit;cursor:pointer;border:none;background:none}
input,textarea,select{font-family:inherit;font-size:inherit}
ul,ol{list-style:none}

/* ── Layout utilities ────────────────────────────────────── */
.container{width:100%;max-width:1200px;margin:0 auto;padding:0 16px}
.container-lg{max-width:1100px}
.container-sm{max-width:480px}
.min-h-screen{min-height:100vh}
.flex{display:flex} .inline-flex{display:inline-flex}
.flex-col{flex-direction:column} .flex-row{flex-direction:row}
.flex-1{flex:1 1 0%} .flex-wrap{flex-wrap:wrap}
.items-center{align-items:center} .items-start{align-items:flex-start} .items-end{align-items:flex-end}
.justify-center{justify-content:center} .justify-between{justify-content:space-between}
.justify-end{justify-content:flex-end} .justify-start{justify-content:flex-start}
.gap-1{gap:4px} .gap-2{gap:8px} .gap-3{gap:12px} .gap-4{gap:16px} .gap-6{gap:24px} .gap-8{gap:32px}
.grid{display:grid}
.grid-2{grid-template-columns:repeat(2,1fr)}
.grid-3{grid-template-columns:repeat(3,1fr)}
.grid-4{grid-template-columns:repeat(4,1fr)}
.grid-auto{grid-template-columns:repeat(auto-fill,minmax(220px,1fr))}
.w-full{width:100%} .w-auto{width:auto} .w-8{width:32px} .w-10{width:40px}
.h-full{height:100%} .min-h-0{min-height:0}
.text-center{text-align:center} .text-left{text-align:left} .text-right{text-align:right}
.relative{position:relative} .absolute{position:absolute} .fixed{position:fixed} .sticky{position:sticky}
.hidden{display:none !important}
.cursor-pointer{cursor:pointer} .cursor-not-allowed{cursor:not-allowed}
.overflow-hidden{overflow:hidden} .overflow-auto{overflow:auto} .overflow-x-auto{overflow-x:auto}
.flex-shrink-0{flex-shrink:0}
.mx-auto{margin-left:auto;margin-right:auto}
.mt-1{margin-top:4px} .mt-2{margin-top:8px} .mt-3{margin-top:12px} .mt-4{margin-top:16px} .mt-6{margin-top:24px} .mt-8{margin-top:32px}
.mb-1{margin-bottom:4px} .mb-2{margin-bottom:8px} .mb-3{margin-bottom:12px} .mb-4{margin-bottom:16px} .mb-6{margin-bottom:24px} .mb-8{margin-bottom:32px}
.p-2{padding:8px} .p-3{padding:12px} .p-4{padding:16px} .p-6{padding:24px} .p-8{padding:32px}
.px-2{padding-left:8px;padding-right:8px} .px-3{padding-left:12px;padding-right:12px} .px-4{padding-left:16px;padding-right:16px} .px-6{padding-left:24px;padding-right:24px}
.py-2{padding-top:8px;padding-bottom:8px} .py-3{padding-top:12px;padding-bottom:12px} .py-4{padding-top:16px;padding-bottom:16px} .py-6{padding-top:24px;padding-bottom:24px}
.rounded-sm{border-radius:var(--r-sm)} .rounded{border-radius:var(--r)} .rounded-md{border-radius:var(--r-md)} .rounded-lg{border-radius:var(--r-lg)} .rounded-xl{border-radius:var(--r-xl)} .rounded-2xl{border-radius:var(--r-2xl)} .rounded-full{border-radius:var(--r-full)}
.border{border:1px solid var(--border)} .border-t{border-top:1px solid var(--border)} .border-b{border-bottom:1px solid var(--border)} .border-l{border-left:1px solid var(--border)} .border-r{border-right:1px solid var(--border)}
.shadow-sm{box-shadow:var(--shadow-sm)} .shadow{box-shadow:var(--shadow)} .shadow-md{box-shadow:var(--shadow-md)} .shadow-lg{box-shadow:var(--shadow-lg)}
.bg-card{background:var(--card)} .bg-soft{background:var(--bg-soft)} .bg-primary{background:var(--primary)} .bg-white{background:#fff}
.text-white{color:#fff} .text-muted{color:var(--muted)} .text-muted-2{color:var(--muted-2)} .text-primary{color:var(--primary)} .text-fg{color:var(--fg)}
.font-medium{font-weight:500} .font-semibold{font-weight:600} .font-bold{font-weight:700}
.text-xs{font-size:11px} .text-sm{font-size:13px} .text-base{font-size:14px} .text-lg{font-size:16px} .text-xl{font-size:18px} .text-2xl{font-size:22px} .text-3xl{font-size:28px} .text-4xl{font-size:34px}
.uppercase{text-transform:uppercase} .capitalize{text-transform:capitalize} .tracking-wide{letter-spacing:.05em}
.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.flex-wrap{flex-wrap:wrap}
.opacity-50{opacity:.5} .opacity-70{opacity:.7} .opacity-100{opacity:1}
.transition{transition:all .2s ease}

/* ── Typography ──────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6{font-weight:700;line-height:1.25;color:var(--fg)}
h1{font-size:2rem} h2{font-size:1.5rem} h3{font-size:1.25rem} h4{font-size:1rem}
.gradient-text{background:var(--gradient);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}

/* ── Buttons ─────────────────────────────────────────────── */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:6px;
  padding:9px 16px;border-radius:var(--r-md);font-size:14px;font-weight:600;
  border:1px solid transparent;cursor:pointer;transition:all .15s ease;white-space:nowrap;
  line-height:1.2; text-decoration:none;
}
.btn:disabled{opacity:.5;cursor:not-allowed}
.btn-primary{background:var(--gradient);color:#fff;border:0}
.btn-primary:hover:not(:disabled){filter:brightness(1.05);box-shadow:0 4px 12px rgba(16,185,129,.3)}
.btn-outline{background:transparent;color:var(--fg);border:1px solid var(--border)}
.btn-outline:hover:not(:disabled){background:var(--bg-soft);border-color:var(--border-2)}
.btn-ghost{background:transparent;color:var(--fg)}
.btn-ghost:hover:not(:disabled){background:var(--bg-soft)}
.btn-danger{background:#fee2e2;color:#991b1b;border:1px solid #fecaca}
.btn-danger:hover:not(:disabled){background:#fecaca}
.btn-violet{background:var(--gradient-violet);color:#fff;border:0}
.btn-violet:hover:not(:disabled){filter:brightness(1.05)}
.btn-sm{padding:6px 12px;font-size:13px;border-radius:var(--r)}
.btn-lg{padding:12px 24px;font-size:16px}
.btn-icon{padding:8px;width:36px;height:36px;border-radius:var(--r)}
.btn-block{display:flex;width:100%}
.btn-loading{position:relative;color:transparent !important;pointer-events:none}
.btn-loading::after{content:'';position:absolute;width:16px;height:16px;border:2px solid rgba(255,255,255,.4);border-top-color:#fff;border-radius:50%;animation:spin .6s linear infinite}
.btn-outline.btn-loading::after,.btn-ghost.btn-loading::after{border-color:rgba(0,0,0,.2);border-top-color:var(--fg)}

/* ── Cards ───────────────────────────────────────────────── */
.card{background:var(--card);border:1px solid var(--border);border-radius:var(--r-xl);box-shadow:var(--shadow-sm);overflow:hidden}
.card-header{padding:20px 24px;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.card-title{font-size:16px;font-weight:700}
.card-desc{font-size:13px;color:var(--muted);margin-top:2px}
.card-body{padding:24px}
.card-footer{padding:16px 24px;border-top:1px solid var(--border);background:var(--bg-soft)}

/* ── Inputs ──────────────────────────────────────────────── */
.input,.textarea,.select{
  width:100%;padding:9px 12px;border:1px solid var(--border-2);border-radius:var(--r-md);
  background:var(--input);color:var(--fg);font-size:14px;transition:border-color .15s,box-shadow .15s;
  outline:none;
}
.input:focus,.textarea:focus,.select:focus{border-color:var(--ring);box-shadow:0 0 0 3px rgba(16,185,129,.15)}
.input::placeholder,.textarea::placeholder{color:var(--muted-2)}
.textarea{min-height:80px;resize:vertical}
.input-error{border-color:#f43f5e !important;box-shadow:0 0 0 3px rgba(244,63,94,.12) !important}
.label{display:block;font-size:13px;font-weight:600;margin-bottom:6px;color:var(--fg)}
.label .req{color:#f43f5e}
.form-group{margin-bottom:16px}
.input-group{position:relative}
.input-group .input{padding-left:38px}
.input-group .input-icon{position:absolute;left:12px;top:50%;transform:translateY(-50%);color:var(--muted-2);width:16px;height:16px}
.input-hint{font-size:12px;color:var(--muted);margin-top:4px}
.input-error-msg{font-size:12px;color:#f43f5e;margin-top:4px;display:flex;align-items:center;gap:4px}
.checkbox{display:inline-flex;align-items:center;gap:8px;cursor:pointer;font-size:14px}
.checkbox input{width:16px;height:16px;accent-color:var(--primary)}
.switch{position:relative;display:inline-block;width:42px;height:24px}
.switch input{opacity:0;width:0;height:0}
.switch .slider{position:absolute;inset:0;background:var(--border-2);border-radius:var(--r-full);transition:.2s;cursor:pointer}
.switch .slider::before{content:'';position:absolute;width:18px;height:18px;left:3px;top:3px;background:#fff;border-radius:50%;transition:.2s}
.switch input:checked + .slider{background:var(--primary)}
.switch input:checked + .slider::before{transform:translateX(18px)}

/* ── Badges ──────────────────────────────────────────────── */
.badge{display:inline-flex;align-items:center;gap:4px;padding:2px 8px;border-radius:var(--r-full);font-size:11px;font-weight:600;line-height:1.5;white-space:nowrap}
.badge-dot{width:6px;height:6px;border-radius:50%;background:currentColor}
.status-emerald{background:var(--emerald-soft);color:var(--emerald-fg);border:1px solid var(--emerald-border)}
.status-amber{background:var(--amber-soft);color:var(--amber-fg);border:1px solid var(--amber-border)}
.status-rose{background:var(--rose-soft);color:var(--rose-fg);border:1px solid var(--rose-border)}
.status-violet{background:var(--violet-soft);color:var(--violet-fg);border:1px solid var(--violet-border)}
.status-sky{background:var(--sky-soft);color:var(--sky-fg);border:1px solid var(--sky-border)}
.status-teal{background:var(--teal-soft);color:var(--teal-fg);border:1px solid var(--teal-border)}
.status-indigo{background:var(--indigo-soft);color:var(--indigo-fg);border:1px solid var(--indigo-border)}
.status-slate{background:var(--slate-soft);color:var(--slate-fg);border:1px solid var(--slate-border)}
.status-zinc{background:var(--zinc-soft);color:var(--zinc-fg);border:1px solid var(--zinc-border)}
.badge-primary{background:var(--emerald-soft);color:var(--emerald-fg)}
.badge-premium{background:var(--gradient-violet);color:#fff}

/* ── Tables ──────────────────────────────────────────────── */
.table{width:100%;border-collapse:collapse;font-size:13px}
.table th{text-align:left;padding:10px 12px;font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);border-bottom:1px solid var(--border);background:var(--bg-soft)}
.table td{padding:12px;border-bottom:1px solid var(--border);vertical-align:middle}
.table tr:hover td{background:var(--bg-soft)}
.table tr:last-child td{border-bottom:0}

/* ── Tabs ────────────────────────────────────────────────── */
.tabs{display:flex;gap:2px;border-bottom:1px solid var(--border);overflow-x:auto}
.tab{padding:10px 16px;font-size:14px;font-weight:500;color:var(--muted);border-bottom:2px solid transparent;cursor:pointer;white-space:nowrap;transition:all .15s}
.tab:hover{color:var(--fg)}
.tab.active{color:var(--primary);border-bottom-color:var(--primary)}
.tab-panel{padding:20px 0}

/* ── Modal ───────────────────────────────────────────────── */
.modal-overlay{position:fixed;inset:0;background:rgba(0,0,0,.5);backdrop-filter:blur(2px);z-index:1000;display:flex;align-items:center;justify-content:center;padding:16px;animation:fadein .15s ease}
.modal{background:var(--card);border-radius:var(--r-2xl);box-shadow:var(--shadow-lg);max-width:520px;width:100%;max-height:90vh;overflow-y:auto;animation:slideup .2s ease}
.modal-lg{max-width:720px}
.modal-xl{max-width:900px}
.modal-header{padding:20px 24px;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;background:var(--card);z-index:1}
.modal-title{font-size:18px;font-weight:700}
.modal-body{padding:24px}
.modal-footer{padding:16px 24px;border-top:1px solid var(--border);display:flex;justify-content:flex-end;gap:8px;position:sticky;bottom:0;background:var(--card)}
.modal-close{width:32px;height:32px;border-radius:var(--r);display:grid;place-items:center;color:var(--muted);cursor:pointer}
.modal-close:hover{background:var(--bg-soft);color:var(--fg)}

/* ── Sidebar (dashboard) ─────────────────────────────────── */
.dash-shell{display:flex;min-height:100vh;background:var(--bg)}
.sidebar{width:var(--sidebar-w);background:var(--card);border-right:1px solid var(--border);display:flex;flex-direction:column;position:fixed;top:0;left:0;bottom:0;z-index:40;transition:transform .25s ease}
.sidebar-brand{padding:18px 20px;border-bottom:1px solid var(--border);display:flex;align-items:center;gap:10px}
.sidebar-brand .mark{width:32px;height:32px;border-radius:8px;background:var(--gradient);display:grid;place-items:center;color:#fff;font-size:16px}
.sidebar-nav{flex:1;padding:12px;overflow-y:auto}
.sidebar-section{font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.06em;color:var(--muted-2);padding:12px 12px 6px}
.sidebar-item{display:flex;align-items:center;gap:10px;padding:9px 12px;border-radius:var(--r-md);font-size:14px;font-weight:500;color:var(--muted);cursor:pointer;width:100%;text-align:left;position:relative;transition:all .12s}
.sidebar-item:hover{background:var(--bg-soft);color:var(--fg)}
.sidebar-item.active{background:linear-gradient(90deg,rgba(16,185,129,.1),rgba(20,184,166,.08));color:var(--fg)}
.sidebar-item.active::before{content:'';position:absolute;left:0;top:50%;transform:translateY(-50%);width:3px;height:24px;border-radius:0 3px 3px 0;background:var(--gradient)}
.sidebar-item.active svg{color:var(--primary)}
.sidebar-item svg{width:18px;height:18px;flex-shrink:0}
.sidebar-item .badge{margin-left:auto}
.sidebar-upgrade{margin:auto 12px 12px;padding:16px;border-radius:var(--r-lg);border:1px solid rgba(139,92,246,.2);background:linear-gradient(135deg,rgba(139,92,246,.06),rgba(168,85,247,.04))}
.dash-main{flex:1;margin-left:var(--sidebar-w);display:flex;flex-direction:column;min-width:0}
.topbar{height:var(--topbar-h);background:var(--card);border-bottom:1px solid var(--border);display:flex;align-items:center;gap:12px;padding:0 24px;position:sticky;top:0;z-index:30}
.dash-content{flex:1;padding:24px;max-width:1280px;width:100%}

/* ── Mobile sidebar toggle ───────────────────────────────── */
.sidebar-toggle{display:none}
@media(max-width:900px){
  .sidebar{transform:translateX(-100%)}
  .sidebar.open{transform:translateX(0);box-shadow:var(--shadow-lg)}
  .dash-main{margin-left:0}
  .sidebar-toggle{display:grid}
  .sidebar-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.4);z-index:35;display:none}
  .sidebar-backdrop.open{display:block}
}

/* ── Footer ──────────────────────────────────────────────── */
.app-footer{margin-top:auto;background:var(--card);border-top:1px solid var(--border)}
.app-footer .inner{max-width:1200px;margin:0 auto;padding:40px 16px;display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:32px}
.app-footer h4{font-size:14px;font-weight:600;margin-bottom:12px}
.app-footer ul li{margin-bottom:8px}
.app-footer a{font-size:13px;color:var(--muted);transition:color .15s}
.app-footer a:hover{color:var(--fg)}
.app-footer .bottom{max-width:1200px;margin:0 auto;padding:16px;border-top:1px solid var(--border);display:flex;justify-content:space-between;align-items:center;font-size:13px;color:var(--muted);flex-wrap:wrap;gap:8px}
@media(max-width:700px){.app-footer .inner{grid-template-columns:1fr 1fr}}

/* ── Landing page ────────────────────────────────────────── */
.landing-nav{position:sticky;top:0;z-index:50;background:rgba(248,250,252,.85);backdrop-filter:blur(10px);border-bottom:1px solid var(--border)}
.landing-nav .inner{max-width:1200px;margin:0 auto;padding:12px 16px;display:flex;align-items:center;justify-content:space-between}
.landing-nav .brand{display:flex;align-items:center;gap:8px;font-weight:700;font-size:18px}
.landing-nav .brand .mark{width:32px;height:32px;border-radius:8px;background:var(--gradient);display:grid;place-items:center;color:#fff}
.landing-nav .links{display:flex;align-items:center;gap:20px}
.landing-nav .links a{font-size:14px;color:var(--muted);transition:color .15s}
.landing-nav .links a:hover{color:var(--fg)}
.hero{position:relative;overflow:hidden;padding:80px 16px 60px;text-align:center}
.hero-bg{position:absolute;inset:0;background:radial-gradient(ellipse at top,rgba(16,185,129,.12),transparent 60%),radial-gradient(ellipse at bottom right,rgba(20,184,166,.08),transparent 50%);z-index:-1}
.hero h1{font-size:clamp(2rem,5vw,3.5rem);font-weight:800;letter-spacing:-.02em;line-height:1.1;margin-bottom:16px}
.hero .lead{font-size:clamp(1rem,2vw,1.25rem);color:var(--muted);max-width:640px;margin:0 auto 28px}
.hero .cta{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}
.hero-stats{display:flex;gap:32px;justify-content:center;margin-top:48px;flex-wrap:wrap}
.hero-stat{text-align:center}
.hero-stat .num{font-size:28px;font-weight:800;background:var(--gradient);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
.hero-stat .lbl{font-size:13px;color:var(--muted)}
.section{padding:60px 16px}
.section-title{text-align:center;margin-bottom:40px}
.section-title h2{font-size:clamp(1.5rem,3vw,2.25rem);font-weight:800;margin-bottom:8px}
.section-title p{color:var(--muted);font-size:16px}
.feature-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:20px;max-width:1100px;margin:0 auto}
.feature-card{background:var(--card);border:1px solid var(--border);border-radius:var(--r-xl);padding:24px;transition:all .2s}
.feature-card:hover{box-shadow:var(--shadow-md);transform:translateY(-2px)}
.feature-card .icon{width:44px;height:44px;border-radius:var(--r-md);background:var(--emerald-soft);display:grid;place-items:center;color:var(--primary);margin-bottom:14px}
.feature-card h3{font-size:17px;margin-bottom:6px}
.feature-card p{font-size:14px;color:var(--muted)}
.pricing-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:20px;max-width:900px;margin:0 auto}
.pricing-card{background:var(--card);border:1px solid var(--border);border-radius:var(--r-2xl);padding:28px;position:relative}
.pricing-card.featured{border-color:var(--primary);box-shadow:0 0 0 1px var(--primary),var(--shadow-md)}
.pricing-card .name{font-size:14px;font-weight:600;color:var(--muted);text-transform:uppercase;letter-spacing:.05em}
.pricing-card .price{font-size:36px;font-weight:800;margin:8px 0}
.pricing-card .price small{font-size:14px;font-weight:500;color:var(--muted)}
.pricing-card ul{margin:16px 0}
.pricing-card ul li{padding:6px 0;font-size:14px;color:var(--muted);display:flex;align-items:center;gap:8px}
.pricing-card ul li::before{content:'✓';color:var(--primary);font-weight:700}
.testimonial-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:20px;max-width:1100px;margin:0 auto}
.testimonial{background:var(--card);border:1px solid var(--border);border-radius:var(--r-xl);padding:24px}
.testimonial .stars{color:#f59e0b;margin-bottom:10px}
.testimonial p{font-size:14px;color:var(--fg);margin-bottom:14px;font-style:italic}
.testimonial .who{display:flex;align-items:center;gap:10px}
.testimonial .who img{width:36px;height:36px;border-radius:50%}
.testimonial .who .n{font-weight:600;font-size:14px}
.testimonial .who .r{font-size:12px;color:var(--muted)}

/* ── Auth pages ──────────────────────────────────────────── */
.auth-wrap{min-height:100vh;display:flex;flex-direction:column}
.auth-page{flex:1;display:grid;grid-template-columns:1fr 1fr;gap:0}
@media(max-width:800px){.auth-page{grid-template-columns:1fr}}
.auth-hero{background:var(--gradient);color:#fff;padding:48px;display:flex;flex-direction:column;justify-content:center;position:relative;overflow:hidden}
.auth-hero::before{content:'';position:absolute;inset:0;background:radial-gradient(circle at 20% 80%,rgba(255,255,255,.15),transparent 50%),radial-gradient(circle at 80% 20%,rgba(255,255,255,.1),transparent 40%)}
.auth-hero .content{position:relative;z-index:1}
.auth-hero h1{color:#fff;font-size:2rem;margin-bottom:12px}
.auth-hero p{opacity:.9;font-size:15px;max-width:380px}
.auth-hero .features{margin-top:32px;display:flex;flex-direction:column;gap:14px}
.auth-hero .feature{display:flex;align-items:center;gap:10px;font-size:14px;opacity:.95}
.auth-form-side{padding:48px 24px;display:flex;align-items:center;justify-content:center}
.auth-card{width:100%;max-width:420px}
.auth-card .logo{display:flex;align-items:center;gap:8px;font-weight:700;font-size:20px;margin-bottom:24px;justify-content:center}
.auth-card .logo .mark{width:36px;height:36px;border-radius:8px;background:var(--gradient);display:grid;place-items:center;color:#fff}
.demo-fill{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.demo-fill button{font-size:12px;padding:5px 10px;border-radius:var(--r-full);border:1px solid var(--border);background:var(--bg-soft);cursor:pointer;transition:all .15s}
.demo-fill button:hover{background:var(--emerald-soft);border-color:var(--emerald-border);color:var(--emerald-fg)}

/* ── Dashboard stat cards ────────────────────────────────── */
.stat-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px;margin-bottom:24px}
.stat-card{background:var(--card);border:1px solid var(--border);border-radius:var(--r-xl);padding:18px;box-shadow:var(--shadow-sm)}
.stat-card .top{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
.stat-card .icon{width:36px;height:36px;border-radius:var(--r-md);display:grid;place-items:center}
.stat-card .icon.emerald{background:var(--emerald-soft);color:var(--emerald-fg)}
.stat-card .icon.amber{background:var(--amber-soft);color:var(--amber-fg)}
.stat-card .icon.violet{background:var(--violet-soft);color:var(--violet-fg)}
.stat-card .icon.sky{background:var(--sky-soft);color:var(--sky-fg)}
.stat-card .icon.rose{background:var(--rose-soft);color:var(--rose-fg)}
.stat-card .val{font-size:24px;font-weight:800;line-height:1}
.stat-card .lbl{font-size:12px;color:var(--muted);margin-top:4px;text-transform:capitalize}
.stat-card .trend{font-size:12px;font-weight:600;margin-top:6px}
.stat-card .trend.up{color:var(--emerald)} .stat-card .trend.down{color:var(--rose)}

/* ── Product / link cards ────────────────────────────────── */
.item-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:16px}
.item-card{background:var(--card);border:1px solid var(--border);border-radius:var(--r-xl);overflow:hidden;transition:all .2s}
.item-card:hover{box-shadow:var(--shadow-md)}
.item-card .img{aspect-ratio:1;background:var(--bg-soft);position:relative;overflow:hidden}
.item-card .img img{width:100%;height:100%;object-fit:cover}
.item-card .body{padding:14px}
.item-card .name{font-weight:600;font-size:14px;margin-bottom:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.item-card .meta{display:flex;align-items:center;justify-content:space-between;font-size:12px;color:var(--muted)}
.item-card .price{font-weight:700;color:var(--fg)}
.link-row{display:flex;align-items:center;gap:12px;padding:12px;border:1px solid var(--border);border-radius:var(--r-lg);background:var(--card);margin-bottom:8px;transition:all .15s}
.link-row:hover{box-shadow:var(--shadow-sm)}
.link-row .drag{color:var(--muted-2);cursor:grab}
.link-row .icon-box{width:36px;height:36px;border-radius:var(--r-md);background:var(--bg-soft);display:grid;place-items:center;color:var(--primary);flex-shrink:0}
.link-row .info{flex:1;min-width:0}
.link-row .info .t{font-weight:600;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.link-row .info .u{font-size:12px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* ── Toast ───────────────────────────────────────────────── */
.toast-container{position:fixed;top:16px;right:16px;z-index:2000;display:flex;flex-direction:column;gap:8px;max-width:360px}
.toast{background:var(--card);border:1px solid var(--border);border-radius:var(--r-md);padding:12px 16px;box-shadow:var(--shadow-lg);display:flex;align-items:flex-start;gap:10px;animation:slidein .2s ease;font-size:14px;border-left:4px solid var(--primary)}
.toast.error{border-left-color:var(--rose)}
.toast.success{border-left-color:var(--emerald)}
.toast.warn{border-left-color:var(--amber)}
.toast .msg{flex:1}
.toast .close{color:var(--muted);cursor:pointer;font-size:18px;line-height:1}

/* ── Empty state ─────────────────────────────────────────── */
.empty-state{text-align:center;padding:48px 24px;color:var(--muted)}
.empty-state .icon{width:56px;height:56px;border-radius:50%;background:var(--bg-soft);display:grid;place-items:center;margin:0 auto 16px;color:var(--muted-2)}
.empty-state h3{font-size:16px;color:var(--fg);margin-bottom:6px}
.empty-state p{font-size:14px;max-width:360px;margin:0 auto 16px}

/* ── Avatar ──────────────────────────────────────────────── */
.avatar{border-radius:50%;object-fit:cover;background:var(--bg-soft)}
.avatar-sm{width:28px;height:28px}
.avatar-md{width:36px;height:36px}
.avatar-lg{width:48px;height:48px}
.avatar-xl{width:80px;height:80px}

/* ── Bio page (public storefront) ────────────────────────── */
.bio-page{min-height:100vh;background:var(--bio-bg,#f8fafc);color:var(--bio-text,#0f172a);font-family:'Inter',sans-serif}
.bio-cover{height:140px;background:var(--bio-gradient);position:relative}
.bio-container{max-width:640px;margin:-60px auto 0;padding:0 16px 60px;position:relative;z-index:1}
.bio-avatar{width:110px;height:110px;border-radius:50%;border:5px solid var(--bio-card,#fff);background:var(--bio-card,#fff);margin:0 auto;overflow:hidden}
.bio-avatar img{width:100%;height:100%;object-fit:cover}
.bio-name{text-align:center;font-size:24px;font-weight:800;margin-top:14px;color:var(--bio-text)}
.bio-handle{text-align:center;color:var(--bio-muted);font-size:14px}
.bio-bio{text-align:center;color:var(--bio-text);font-size:14px;max-width:480px;margin:10px auto 0}
.bio-badges{display:flex;gap:8px;justify-content:center;margin:14px 0}
.bio-section-title{text-align:center;font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.08em;color:var(--bio-muted);margin:28px 0 12px}
.bio-link{display:block;background:var(--bio-card,#fff);color:var(--bio-text);border:1px solid var(--bio-border,#e2e8f0);border-radius:var(--r-lg);padding:14px 16px;margin-bottom:10px;font-weight:600;text-align:center;transition:all .15s;text-decoration:none}
.bio-link:hover{transform:translateY(-1px);box-shadow:var(--shadow-md)}
.bio-product{background:var(--bio-card,#fff);border:1px solid var(--bio-border,#e2e8f0);border-radius:var(--r-lg);overflow:hidden;margin-bottom:12px;cursor:pointer;transition:all .15s}
.bio-product:hover{box-shadow:var(--shadow-md)}
.bio-product .img{aspect-ratio:16/9;background:var(--bio-bg-soft,#f1f5f9);overflow:hidden}
.bio-product .img img{width:100%;height:100%;object-fit:cover}
.bio-product .body{padding:14px}
.bio-product .name{font-weight:700;font-size:15px;color:var(--bio-text)}
.bio-product .desc{font-size:13px;color:var(--bio-muted);margin:4px 0}
.bio-product .price{font-weight:800;color:var(--bio-primary,#10b981);font-size:16px}
.bio-social{display:flex;gap:10px;justify-content:center;margin:14px 0}
.bio-social a{width:36px;height:36px;border-radius:50%;background:var(--bio-card,#fff);border:1px solid var(--bio-border,#e2e8f0);display:grid;place-items:center;color:var(--bio-text);transition:all .15s}
.bio-social a:hover{background:var(--bio-primary,#10b981);color:#fff;border-color:var(--bio-primary,#10b981)}

/* ── Stores page ─────────────────────────────────────────── */
.stores-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:20px}
.store-card{background:var(--card);border:1px solid var(--border);border-radius:var(--r-xl);overflow:hidden;transition:all .2s;cursor:pointer}
.store-card:hover{box-shadow:var(--shadow-md);transform:translateY(-2px)}
.store-card .cover{height:80px;background:var(--gradient)}
.store-card .body{padding:16px;text-align:center;margin-top:-30px}
.store-card .avatar{margin:0 auto 10px;border:4px solid var(--card)}
.store-card .name{font-weight:700;font-size:15px}
.store-card .tagline{font-size:13px;color:var(--muted);margin:4px 0 8px}

/* ── Admin ───────────────────────────────────────────────── */
.admin-stat{display:flex;align-items:center;gap:14px;padding:16px;background:var(--card);border:1px solid var(--border);border-radius:var(--r-lg)}
.admin-stat .icon{width:44px;height:44px;border-radius:var(--r-md);display:grid;place-items:center;flex-shrink:0}
.admin-stat .num{font-size:22px;font-weight:800}
.admin-stat .lbl{font-size:12px;color:var(--muted)}

/* ── Animations ──────────────────────────────────────────── */
@keyframes spin{to{transform:rotate(360deg)}}
@keyframes fadein{from{opacity:0}to{opacity:1}}
@keyframes slideup{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
@keyframes slidein{from{opacity:0;transform:translateX(20px)}to{opacity:1;transform:translateX(0)}}
.spin{animation:spin .6s linear infinite}
.spinner{width:18px;height:18px;border:2px solid var(--border-2);border-top-color:var(--primary);border-radius:50%;animation:spin .6s linear infinite}
.skeleton{background:linear-gradient(90deg,var(--bg-soft) 25%,var(--border) 37%,var(--bg-soft) 63%);background-size:400% 100%;animation:shimmer 1.4s ease infinite}
@keyframes shimmer{0%{background-position:100% 0}100%{background-position:-100% 0}}

/* ── Scrollbar ───────────────────────────────────────────── */
::-webkit-scrollbar{width:8px;height:8px}
::-webkit-scrollbar-track{background:transparent}
::-webkit-scrollbar-thumb{background:var(--border-2);border-radius:4px}
::-webkit-scrollbar-thumb:hover{background:var(--muted-2)}
.scroll-area{max-height:380px;overflow-y:auto}

/* ── Responsive helpers ──────────────────────────────────── */
@media(max-width:640px){
  .grid-2,.grid-3,.grid-4{grid-template-columns:1fr}
  .stat-grid{grid-template-columns:1fr 1fr}
  .dash-content{padding:16px}
  .topbar{padding:0 16px}
  .hide-sm{display:none !important}
  .modal{max-width:100%}
}
@media(max-width:420px){
  .stat-grid{grid-template-columns:1fr}
}

/* ── Misc ────────────────────────────────────────────────── */
.divider{height:1px;background:var(--border);margin:16px 0}
.mono{font-family:ui-monospace,'SF Mono',Menlo,monospace}
.tag{display:inline-block;padding:2px 8px;background:var(--bg-soft);border:1px solid var(--border);border-radius:var(--r-sm);font-size:11px;font-weight:500;color:var(--muted)}
.nowrap{white-space:nowrap}
.code-block{background:#0f172a;color:#e2e8f0;padding:14px;border-radius:var(--r-md);font-family:monospace;font-size:13px;overflow-x:auto}
.progress{height:8px;background:var(--bg-soft);border-radius:var(--r-full);overflow:hidden}
.progress-bar{height:100%;background:var(--gradient);border-radius:var(--r-full);transition:width .3s}
