/* ══════════════════════════════════════════════
   MUIRFA — Medical Marketplace — style.css
══════════════════════════════════════════════ */

/* ── DESIGN TOKENS ── */
:root {
    /* Brand */
    --teal: #00b894;
    --teal-d: #00977b;
    --teal-l: #e0faf4;
    --teal-2l: #f0fdf9;
    --blue: #0652DD;
    --blue-l: #eef2ff;
    /* Neutrals */
    --slate: #0a1628;
    --slate2: #162236;
    --ink: #1a2d44;
    --muted: #64788f;
    --border: #dde8f0;
    --border-2: #eaf1f8;
    --surface: #f5f9fc;
    --white: #ffffff;
    /* Status */
    --red: #e84545;
    --orange: #f0932b;
    --green: #16a34a;
    --gold: #f59e0b;
    /* Gradients */
    --grad: linear-gradient(135deg, #00b894 0%, #0652DD 100%);
    --grad-r: linear-gradient(135deg, #0652DD 0%, #00b894 100%);
    --grad-gold: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    /* Shadows */
    --shadow-xs: 0 1px 3px rgba(10, 22, 40, .06);
    --shadow-sm: 0 1px 4px rgba(10, 22, 40, .07);
    --shadow: 0 4px 16px rgba(10, 22, 40, .10);
    --shadow-lg: 0 12px 40px rgba(10, 22, 40, .14);
    --shadow-xl: 0 20px 60px rgba(10, 22, 40, .18);
    /* Radii */
    --r-sm: 8px;
    --r: 14px;
    --r-lg: 20px;
    --r-xl: 28px;
    /* Transitions */
    --ease: cubic-bezier(.4, 0, .2, 1);
  }
  
  /* ── RESET ── */
  *, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
  }
  html { scroll-behavior: smooth; font-size: 16px; }
  body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--surface);
    color: var(--ink);
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
  }
  img { display: block; max-width: 100%; }
  button { cursor: pointer; font-family: inherit; border: none; transition: all .2s var(--ease); }
  a { text-decoration: none; color: inherit; }
  input, select, textarea { font-family: inherit; }
  
  /* ── PAGE ROUTER ── */
  .page { display: none; min-height: 100vh; padding-bottom: 80px; }
  .page.active { display: block; }
  @media (min-width: 768px) { .page { padding-bottom: 0; } }
  
  /* ══════════════════════════════════════════════
     NAVBAR
  ══════════════════════════════════════════════ */
  .navbar {
    position: sticky;
    top: 0;
    z-index: 400;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid rgba(221, 232, 240, .7);
    height: 68px;
    transition: box-shadow .2s;
  }
  .navbar.scrolled { box-shadow: 0 2px 20px rgba(10, 22, 40, .08); }
  .nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 24px;
  }
  .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    flex-shrink: 0;
    font-family: 'Fraunces', serif;
    font-size: 22px;
    font-weight: 900;
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    user-select: none;
  }
  .logo-mark {
    width: 38px;
    height: 38px;
    background: var(--grad);
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 184, 148, .32);
    transition: transform .2s;
  }
  .logo:hover .logo-mark { transform: rotate(-5deg) scale(1.05); }
  .nav-links {
    display: none;
    align-items: center;
    gap: 2px;
    margin-left: 8px;
  }
  @media (min-width: 960px) { .nav-links { display: flex; } }
  .nav-link {
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
    transition: .2s;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
    position: relative;
  }
  .nav-link:hover, .nav-link.active {
    color: var(--teal);
    background: var(--teal-l);
  }
  .nav-link .new-dot {
    position: absolute;
    top: 4px;
    right: 6px;
    width: 5px;
    height: 5px;
    background: var(--red);
    border-radius: 50%;
  }
  .nav-search-wrap {
    flex: 1;
    max-width: 380px;
    margin: 0 12px;
    display: none;
  }
  @media (min-width: 768px) { .nav-search-wrap { display: flex; } }
  .nav-search {
    display: flex;
    align-items: center;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 12px;
    padding: 0 14px;
    gap: 8px;
    width: 100%;
    transition: .2s;
  }
  .nav-search:focus-within {
    border-color: var(--teal);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 184, 148, .12);
  }
  .nav-search input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 13.5px;
    font-weight: 500;
    flex: 1;
    padding: 10px 0;
    color: var(--ink);
  }
  .nav-search input::placeholder { color: var(--muted); }
  .nav-search-btn {
    background: var(--grad);
    border: none;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    transition: transform .15s;
  }
  .nav-search-btn:hover { transform: scale(1.08); }
  .nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
  .nav-icon-btn {
    position: relative;
    background: var(--surface);
    border: 1.5px solid var(--border);
    width: 40px;
    height: 40px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    transition: .2s;
  }
  .nav-icon-btn:hover { border-color: var(--teal); background: var(--teal-l); transform: translateY(-1px); }
  .nbadge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--red);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    min-width: 17px;
    height: 17px;
    border-radius: 20px;
    padding: 0 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    transition: transform .2s;
  }
  .nbadge.bump { animation: bump .25s ease; }
  @keyframes bump { 0%,100%{transform:scale(1)} 50%{transform:scale(1.5)} }
  .btn-login {
    padding: 8px 18px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    background: transparent;
    border: 1.5px solid var(--teal);
    color: var(--teal);
    transition: .2s;
  }
  .btn-login:hover { background: var(--teal); color: #fff; }
  .btn-signup {
    padding: 9px 20px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    background: var(--grad);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 184, 148, .28);
    display: none;
    align-items: center;
    gap: 6px;
  }
  @media (min-width: 640px) { .btn-signup { display: flex; } }
  .btn-signup:hover { opacity: .9; transform: translateY(-1px); }
  .hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: var(--surface);
    border: 1.5px solid var(--border);
    width: 40px;
    height: 40px;
    border-radius: 11px;
    align-items: center;
    justify-content: center;
    transition: .2s;
  }
  @media (min-width: 960px) { .hamburger { display: none; } }
  .hamburger:hover { border-color: var(--teal); background: var(--teal-l); }
  .hamburger span { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s; }
  .hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
  
  /* ══════════════════════════════════════════════
     MOBILE DRAWER
  ══════════════════════════════════════════════ */
  .mob-drawer {
    position: fixed;
    inset: 0;
    z-index: 500;
    pointer-events: none;
  }
  .mob-drawer-bg {
    position: absolute;
    inset: 0;
    background: rgba(10, 22, 40, .55);
    opacity: 0;
    transition: opacity .3s;
    backdrop-filter: blur(4px);
  }
  .mob-drawer-panel {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(320px, 85vw);
    background: #fff;
    transform: translateX(-100%);
    transition: transform .35s var(--ease);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
  }
  .mob-drawer.open { pointer-events: all; }
  .mob-drawer.open .mob-drawer-bg { opacity: 1; }
  .mob-drawer.open .mob-drawer-panel { transform: translateX(0); }
  .mob-drawer-head {
    padding: 20px 22px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
  }
  .mob-drawer-close {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--muted);
    transition: .2s;
  }
  .mob-drawer-close:hover { background: var(--border); }
  .mob-nav-section { padding: 16px 16px 0; }
  .mob-nav-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .8px;
    padding: 0 8px;
    margin-bottom: 8px;
  }
  .mob-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
    transition: .2s;
    margin-bottom: 2px;
  }
  .mob-nav-item:hover, .mob-nav-item.active { background: var(--teal-l); color: var(--teal); }
  .mob-nav-icon { font-size: 18px; width: 22px; text-align: center; }
  .mob-ctas {
    padding: 20px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
    border-top: 1px solid var(--border);
  }
  
  /* ══════════════════════════════════════════════
     BOTTOM NAV — MOBILE
  ══════════════════════════════════════════════ */
  .bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 300;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 8px 0 max(8px, env(safe-area-inset-bottom));
    box-shadow: 0 -4px 20px rgba(10, 22, 40, .08);
  }
  @media (min-width: 768px) { .bottom-nav { display: none; } }
  .bnav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 4px 0;
    font-size: 10px;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    transition: .2s;
    position: relative;
  }
  .bnav-item.active { color: var(--teal); }
  .bnav-icon { font-size: 21px; line-height: 1; }
  .bnav-item.active .bnav-icon { transform: translateY(-2px); }
  .bnav-badge {
    position: absolute;
    top: 2px;
    left: 50%;
    margin-left: 6px;
    background: var(--red);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    min-width: 15px;
    height: 15px;
    border-radius: 20px;
    padding: 0 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
  }
  
  /* ══════════════════════════════════════════════
     HERO
  ══════════════════════════════════════════════ */
  .hero {
    background: var(--white);
    padding: 40px 24px 48px;
    max-width: 1280px;
    margin: 0 auto;
  }
  @media (min-width: 900px) {
    .hero { display: flex; align-items: center; gap: 56px; padding: 64px 24px 72px; }
  }
  .hero-text { flex: 1; }
  .hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--teal-l), var(--blue-l));
    color: var(--teal-d);
    padding: 5px 14px 5px 8px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 184, 148, .25);
    animation: fadeSlide .5s ease both;
  }
  .hero-chip span {
    background: var(--grad);
    color: #fff;
    padding: 2px 9px;
    border-radius: 100px;
    font-size: 11px;
  }
  .hero h1 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(32px, 5vw, 58px);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 18px;
    color: var(--slate);
    animation: fadeSlide .5s .1s ease both;
  }
  .hero h1 em {
    display: block;
    font-style: normal;
    font-weight: 900;
    color: var(--teal);
    -webkit-text-fill-color: var(--teal);
    background: none;
    letter-spacing: -1.5px;
  }
  .hero-sub {
    font-size: clamp(14px, 2vw, 17px);
    color: var(--muted);
    line-height: 1.75;
    margin-bottom: 32px;
    max-width: 460px;
    animation: fadeSlide .5s .2s ease both;
  }
  .hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
    animation: fadeSlide .5s .3s ease both;
  }
  .hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    animation: fadeSlide .5s .4s ease both;
  }
  .trust-stat .num {
    font-family: 'Fraunces', serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--teal);
    line-height: 1;
  }
  .trust-stat .lbl { font-size: 12px; color: var(--muted); margin-top: 3px; }
  
  /* Hero Visual Card */
  .hero-visual {
    flex: 0 0 420px;
    background: linear-gradient(145deg, #e0faf4 0%, #eef2ff 100%);
    border-radius: var(--r-xl);
    padding: 24px;
    position: relative;
    overflow: hidden;
    margin-top: 40px;
    animation: fadeSlide .6s .2s ease both;
  }
  @media (min-width: 900px) { .hero-visual { margin-top: 0; } }
  .hero-visual::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 184, 148, .18), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
  }
  .hero-visual::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: -40px;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(6, 82, 221, .1), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
  }
  .hsearch {
    display: flex;
    background: #fff;
    border-radius: 12px;
    padding: 10px 14px;
    gap: 8px;
    align-items: center;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
  }
  .hsearch input {
    border: none;
    outline: none;
    flex: 1;
    font-size: 13px;
    font-weight: 500;
    background: transparent;
    color: var(--ink);
  }
  .hsearch input::placeholder { color: var(--muted); }
  .hsearch-btn {
    background: var(--grad);
    border: none;
    color: #fff;
    padding: 7px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
  }
  .hsearch-btn:hover { opacity: .9; }
  .mini-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .mini-card {
    background: #fff;
    border-radius: 14px;
    padding: 14px;
    cursor: pointer;
    transition: .25s;
    box-shadow: var(--shadow-sm);
    border: 1px solid transparent;
  }
  .mini-card:hover { border-color: var(--teal); transform: translateY(-3px); box-shadow: var(--shadow); }
  .mini-card .mi { font-size: 26px; margin-bottom: 8px; }
  .mini-card h5 { font-size: 12px; font-weight: 700; color: var(--ink); }
  .mini-card p { font-size: 11px; color: var(--muted); margin-top: 2px; }
  
  /* ══════════════════════════════════════════════
     SEARCH BARS
  ══════════════════════════════════════════════ */
  .qsearch-bar {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 14px 24px;
    display: none;
  }
  @media (min-width: 768px) { .qsearch-bar { display: block; } }
  .qsearch-inner {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
  }
  .qsearch-inner input, .qsearch-inner select {
    border: 1.5px solid var(--border);
    border-radius: 11px;
    padding: 11px 16px;
    font-size: 14px;
    outline: none;
    transition: .2s;
    background: #fff;
    color: var(--ink);
  }
  .qsearch-inner input { flex: 1; }
  .qsearch-inner input:focus, .qsearch-inner select:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(0, 184, 148, .1);
  }
  .qsearch-inner select { cursor: pointer; }
  .qsearch-inner .qbtn {
    background: var(--grad);
    color: #fff;
    padding: 11px 26px;
    border-radius: 11px;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
  }
  .qsearch-inner .qbtn:hover { opacity: .9; transform: translateY(-1px); }
  .mob-search-bar {
    padding: 12px 16px;
    background: #fff;
    border-bottom: 1px solid var(--border);
  }
  @media (min-width: 768px) { .mob-search-bar { display: none; } }
  .mob-search-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 100px;
    padding: 10px 16px;
  }
  .mob-search-pill input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    color: var(--ink);
  }
  .mob-search-pill input::placeholder { color: var(--muted); }
  
  /* ══════════════════════════════════════════════
     SECTION SCAFFOLDING
  ══════════════════════════════════════════════ */
  .section { padding: 48px 16px; }
  @media (min-width: 640px) { .section { padding: 56px 24px; } }
  .section-inner { max-width: 1280px; margin: 0 auto; }
  .section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 12px;
  }
  .section-title {
    font-family: 'Fraunces', serif;
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 700;
    color: var(--slate);
    line-height: 1.2;
  }
  .section-title span {
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  .section-sub { font-size: 14px; color: var(--muted); margin-top: 4px; }
  .view-all {
    font-size: 13px;
    font-weight: 700;
    color: var(--teal);
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 8px;
    transition: .2s;
  }
  .view-all:hover { background: var(--teal-l); }
  .divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 20px 0;
  }
  
  /* ══════════════════════════════════════════════
     CATEGORY GRID
  ══════════════════════════════════════════════ */
  .cat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }
  @media (min-width: 640px) { .cat-grid { grid-template-columns: repeat(4, 1fr); } }
  @media (min-width: 900px) { .cat-grid { grid-template-columns: repeat(8, 1fr); } }
  .cat-card {
    background: var(--white);
    border-radius: var(--r);
    padding: 16px 10px;
    text-align: center;
    cursor: pointer;
    transition: .25s;
    border: 1.5px solid transparent;
    box-shadow: var(--shadow-xs);
  }
  .cat-card:hover { border-color: var(--teal); transform: translateY(-4px); box-shadow: var(--shadow); }
  .cat-icon { font-size: 28px; margin-bottom: 8px; }
  .cat-name { font-size: 11px; font-weight: 700; color: var(--ink); margin-bottom: 2px; }
  .cat-cnt { font-size: 10px; color: var(--muted); }
  
  /* ══════════════════════════════════════════════
     PRODUCT CARDS
  ══════════════════════════════════════════════ */
  .prod-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  @media (min-width: 560px) { .prod-grid { grid-template-columns: repeat(3, 1fr); } }
  @media (min-width: 900px) { .prod-grid { grid-template-columns: repeat(4, 1fr); } }
  @media (min-width: 1200px) { .prod-grid { grid-template-columns: repeat(5, 1fr); } }
  
  .prod-card {
    background: var(--white);
    border-radius: var(--r);
    overflow: hidden;
    cursor: pointer;
    transition: .25s;
    border: 1.5px solid var(--border);
    position: relative;
    display: flex;
    flex-direction: column;
  }
  .prod-card:hover { border-color: var(--teal); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
  .prod-img {
    background: var(--surface);
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 52px;
    position: relative;
    overflow: hidden;
  }
  .prod-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s var(--ease);
    display: block;
  }
  .prod-card:hover .prod-img img { transform: scale(1.06); }
  .prod-img-fallback {
    font-size: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .prod-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 55%, rgba(0,0,0,.06) 100%);
    pointer-events: none;
    z-index: 1;
  }
  .prod-student-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    z-index: 2;
    background: var(--blue);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 100px;
  }
  .prod-tag {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--grad);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 100px;
    z-index: 2;
  }
  .prod-tag.red { background: var(--red); }
  .prod-tag.blue { background: var(--blue); }
  .prod-tag.gold { background: var(--grad-gold); }
  .prod-fav {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(0,0,0,.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    z-index: 2;
    transition: .2s;
    backdrop-filter: blur(4px);
  }
  .prod-fav:hover { background: #fff; transform: scale(1.1); }
  .prod-fav.on { background: #fff0f0; border-color: var(--red); }
  .prod-body { padding: 12px; flex: 1; display: flex; flex-direction: column; }
  .prod-brand { font-size: 10px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; margin-bottom: 4px; }
  .prod-name { font-size: 13px; font-weight: 700; color: var(--ink); line-height: 1.4; margin-bottom: 6px; flex: 1; }
  .prod-rating { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--muted); margin-bottom: 8px; }
  .prod-rating .stars { color: var(--gold); }
  .prod-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
  .prod-price { font-size: 14px; font-weight: 800; color: var(--ink); }
  .prod-old { font-size: 11px; color: var(--muted); text-decoration: line-through; margin-top: 1px; }
  .prod-add {
    background: var(--teal-l);
    border: 1.5px solid var(--teal);
    color: var(--teal);
    width: 32px;
    height: 32px;
    border-radius: 9px;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: .2s;
  }
  .prod-add:hover { background: var(--teal); color: #fff; }
  .prod-student {
    background: var(--blue-l);
    color: var(--blue);
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 100px;
    display: inline-block;
    margin-bottom: 6px;
  }
  
  /* ══════════════════════════════════════════════
     PROMO BANNER
  ══════════════════════════════════════════════ */
  .promo-banner {
    background: var(--grad);
    border-radius: var(--r-xl);
    padding: 32px 28px;
    color: #fff;
    position: relative;
    overflow: hidden;
  }
  .promo-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, .1);
    border-radius: 50%;
  }
  .promo-banner::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: 20%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, .06);
    border-radius: 50%;
  }
  .promo-banner h2 {
    font-family: 'Fraunces', serif;
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 700;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
  }
  .promo-banner p {
    font-size: 15px;
    opacity: .88;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    max-width: 420px;
  }
  .btn-promo {
    background: #fff;
    color: var(--teal-d);
    font-size: 14px;
    font-weight: 800;
    padding: 12px 28px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    position: relative;
    z-index: 1;
    transition: .2s;
  }
  .btn-promo:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.2); }
  
  /* ══════════════════════════════════════════════
     TRUST BAR
  ══════════════════════════════════════════════ */
  .trust-bar {
    background: var(--white);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
  }
  .trust-bar-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 12px;
  }
  .tb-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
  }
  .tb-item .tb-icon { font-size: 22px; }
  .tb-item strong { color: var(--ink); }
  
  /* ══════════════════════════════════════════════
     SEARCH PAGE
  ══════════════════════════════════════════════ */
  .search-layout {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 16px;
    display: flex;
    gap: 24px;
  }
  @media (min-width: 640px) { .search-layout { padding: 24px 24px; } }
  .filter-sidebar {
    width: 220px;
    flex-shrink: 0;
    display: none;
  }
  @media (min-width: 800px) { .filter-sidebar { display: block; } }
  .filter-card {
    background: var(--white);
    border-radius: var(--r);
    border: 1.5px solid var(--border);
    padding: 20px;
    margin-bottom: 12px;
  }
  .filter-title {
    font-size: 13px;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: .5px;
  }
  .filter-card ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
  .filter-card li {
    font-size: 13px;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
  }
  .filter-card li input[type="checkbox"] { accent-color: var(--teal); width: 15px; height: 15px; cursor: pointer; }
  .price-range { display: flex; gap: 8px; align-items: center; }
  .price-range input {
    flex: 1;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 12px;
    outline: none;
    width: 100%;
  }
  .price-range input:focus { border-color: var(--teal); }
  .search-main { flex: 1; min-width: 0; }
  .search-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 10px;
  }
  .result-count { font-size: 14px; font-weight: 600; color: var(--muted); }
  .result-count strong { color: var(--ink); }
  .sort-select {
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    background: var(--white);
    color: var(--ink);
    outline: none;
    cursor: pointer;
    transition: .2s;
  }
  .sort-select:focus { border-color: var(--teal); }
  .cat-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
  }
  .cat-pill {
    padding: 7px 14px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    background: var(--white);
    border: 1.5px solid var(--border);
    color: var(--muted);
    cursor: pointer;
    transition: .2s;
    white-space: nowrap;
  }
  .cat-pill:hover, .cat-pill.active { background: var(--teal); border-color: var(--teal); color: #fff; }
  
  /* ══════════════════════════════════════════════
     PRODUCT DETAIL
  ══════════════════════════════════════════════ */
  .detail-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 16px;
  }
  @media (min-width: 640px) { .detail-wrap { padding: 24px 24px; } }
  .detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    background: var(--white);
    border-radius: var(--r-xl);
    border: 1.5px solid var(--border);
    overflow: hidden;
  }
  @media (min-width: 760px) { .detail-grid { grid-template-columns: 1fr 1fr; } }
  .detail-media { padding: 28px; background: var(--surface); }
  .detail-main-img {
    background: var(--surface);
    border-radius: var(--r-lg);
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 100px;
    margin-bottom: 12px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
  }
  .detail-main-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--r-lg);
  }
  .detail-thumbs { display: flex; gap: 8px; }
  .detail-thumb {
    width: 52px;
    height: 52px;
    border-radius: 9px;
    background: var(--white);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
    transition: .2s;
  }
  .detail-thumb.active { border-color: var(--teal); background: var(--teal-l); }
  .detail-thumb:hover { border-color: var(--teal); }
  .detail-info { padding: 28px; }
  .detail-vendor { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 8px; }
  .detail-title { font-family: 'Fraunces', serif; font-size: clamp(20px, 2.5vw, 28px); font-weight: 700; color: var(--slate); margin-bottom: 10px; line-height: 1.3; }
  .detail-rating { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
  .detail-rating .stars { color: var(--gold); font-size: 14px; }
  .detail-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
  .dbadge {
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
  }
  .dbadge-g { background: #f0fdf4; color: var(--green); border: 1px solid #bbf7d0; }
  .dbadge-b { background: var(--blue-l); color: var(--blue); border: 1px solid #bfdbfe; }
  .dbadge-o { background: #fff7ed; color: var(--orange); border: 1px solid #fed7aa; }
  .detail-price-row { display: flex; align-items: flex-end; gap: 10px; margin-bottom: 20px; }
  .detail-price { font-size: 32px; font-weight: 900; color: var(--ink); }
  .detail-old-price { font-size: 16px; color: var(--muted); text-decoration: line-through; margin-bottom: 4px; }
  .detail-save { background: var(--red); color: #fff; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 100px; margin-bottom: 4px; }
  .qty-row { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
  .qty-label { font-size: 13px; font-weight: 700; color: var(--muted); }
  .qty-ctrl {
    display: flex;
    align-items: center;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
  }
  .qty-ctrl button {
    width: 38px;
    height: 38px;
    background: transparent;
    font-size: 18px;
    font-weight: 700;
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .2s;
  }
  .qty-ctrl button:hover { background: var(--teal-l); color: var(--teal); }
  .qty-ctrl span { min-width: 38px; text-align: center; font-size: 15px; font-weight: 700; }
  .detail-btns { display: flex; gap: 10px; margin-bottom: 20px; }
  .btn-addcart {
    flex: 1;
    background: var(--teal-l);
    border: 1.5px solid var(--teal);
    color: var(--teal-d);
    padding: 13px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 800;
    transition: .2s;
  }
  .btn-addcart:hover { background: var(--teal); color: #fff; }
  .btn-buynow {
    flex: 1;
    background: var(--grad);
    color: #fff;
    padding: 13px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 4px 14px rgba(0, 184, 148, .3);
  }
  .btn-buynow:hover { opacity: .9; transform: translateY(-1px); }
  .detail-desc { font-size: 14px; color: var(--muted); line-height: 1.8; }
  .spec-table { width: 100%; font-size: 13px; }
  .spec-table tr:nth-child(even) td { background: var(--surface); }
  .spec-table td { padding: 9px 14px; }
  .spec-table td:first-child { font-weight: 700; color: var(--ink); width: 40%; }
  .spec-table td:last-child { color: var(--muted); }
  
  /* ══════════════════════════════════════════════
     CART
  ══════════════════════════════════════════════ */
  .cart-wrap { max-width: 1280px; margin: 0 auto; padding: 24px 16px; }
  @media (min-width: 640px) { .cart-wrap { padding: 28px 24px; } }
  .cart-wrap h1 { font-family: 'Fraunces', serif; font-size: 26px; font-weight: 700; color: var(--slate); margin-bottom: 20px; }
  .cart-empty {
    text-align: center;
    padding: 60px 20px;
    background: var(--white);
    border-radius: var(--r-xl);
    border: 2px dashed var(--border);
  }
  .ce-icon { font-size: 64px; margin-bottom: 16px; opacity: .5; }
  .cart-empty p { font-size: 16px; color: var(--muted); margin-bottom: 24px; }
  .cart-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
  }
  @media (min-width: 900px) { .cart-layout { grid-template-columns: 1fr 360px; } }
  .cart-items-col { display: flex; flex-direction: column; gap: 12px; }
  .cart-item {
    background: var(--white);
    border-radius: var(--r);
    border: 1.5px solid var(--border);
    padding: 16px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    position: relative;
    transition: .2s;
  }
  .cart-item:hover { border-color: var(--teal-l); box-shadow: var(--shadow-sm); }
  .ci-img {
    width: 72px;
    height: 72px;
    background: var(--surface);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    flex-shrink: 0;
  }
  .ci-info { flex: 1; min-width: 0; }
  .ci-info h4 { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 3px; }
  .ci-info p { font-size: 12px; color: var(--muted); }
  .ci-price { font-size: 16px; font-weight: 800; color: var(--ink); }
  .ci-old { font-size: 12px; color: var(--muted); text-decoration: line-through; }
  .ci-del {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #fff5f5;
    border: 1px solid #fecaca;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .2s;
    color: var(--red);
  }
  .ci-del:hover { background: var(--red); color: #fff; }
  .order-sidebar {
    background: var(--white);
    border-radius: var(--r-lg);
    border: 1.5px solid var(--border);
    padding: 22px;
    position: sticky;
    top: 84px;
  }
  .order-sidebar h3 { font-family: 'Fraunces', serif; font-size: 18px; font-weight: 700; color: var(--slate); margin-bottom: 16px; }
  .sum-line { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 10px; color: var(--muted); }
  .sum-line span:last-child { font-weight: 700; color: var(--ink); }
  .sum-line.total { border-top: 2px solid var(--border); padding-top: 12px; margin-top: 4px; font-size: 16px; }
  .sum-line.total span:last-child { color: var(--teal-d); font-size: 18px; }
  .promo-row {
    display: flex;
    gap: 8px;
    margin: 14px 0;
  }
  .promo-row input {
    flex: 1;
    border: 1.5px solid var(--border);
    border-radius: 9px;
    padding: 9px 12px;
    font-size: 13px;
    outline: none;
    transition: .2s;
  }
  .promo-row input:focus { border-color: var(--teal); }
  .promo-row button {
    background: var(--teal);
    color: #fff;
    padding: 9px 14px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
  }
  .promo-row button:hover { background: var(--teal-d); }
  .btn-checkout {
    width: 100%;
    background: var(--grad);
    color: #fff;
    padding: 14px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 800;
    margin-top: 16px;
    box-shadow: 0 6px 20px rgba(0, 184, 148, .3);
    transition: .2s;
  }
  .btn-checkout:hover { opacity: .9; transform: translateY(-1px); }
  
  /* ══════════════════════════════════════════════
     CHECKOUT
  ══════════════════════════════════════════════ */
  .checkout-wrap { max-width: 1280px; margin: 0 auto; padding: 24px 16px; }
  @media (min-width: 640px) { .checkout-wrap { padding: 28px 24px; } }
  .checkout-body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
  }
  @media (min-width: 960px) { .checkout-body { grid-template-columns: 1fr 360px; } }
  .checkout-form-col h1 { font-family: 'Fraunces', serif; font-size: 26px; font-weight: 700; color: var(--slate); margin-bottom: 20px; }
  .form-card {
    background: var(--white);
    border-radius: var(--r);
    border: 1.5px solid var(--border);
    padding: 20px;
    margin-bottom: 14px;
  }
  .form-card h3 { font-size: 15px; font-weight: 800; color: var(--ink); margin-bottom: 14px; }
  .f-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
  }
  @media (max-width: 480px) { .f-grid { grid-template-columns: 1fr; } }
  .f-grid.full { grid-template-columns: 1fr; }
  .f-field { display: flex; flex-direction: column; gap: 4px; }
  .f-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .5px;
  }
  .f-input {
    border: 1.5px solid var(--border);
    border-radius: 9px;
    padding: 10px 13px;
    font-size: 13px;
    outline: none;
    background: #fff;
    color: var(--ink);
    transition: .2s;
    width: 100%;
  }
  .f-input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0, 184, 148, .1); }
  .radio-opts { display: flex; flex-direction: column; gap: 8px; }
  .radio-opt {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: .2s;
  }
  .radio-opt:hover { border-color: var(--teal); background: var(--teal-2l); }
  .radio-opt.sel { border-color: var(--teal); background: var(--teal-l); }
  .radio-opt input[type="radio"] { accent-color: var(--teal); }
  .ro-icon { font-size: 22px; flex-shrink: 0; }
  .ro-text strong { font-size: 13px; font-weight: 700; color: var(--ink); }
  .ro-text p { font-size: 12px; color: var(--muted); margin-top: 2px; }
  .btn-place {
    width: 100%;
    background: var(--grad);
    color: #fff;
    padding: 15px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 800;
    box-shadow: 0 6px 20px rgba(0, 184, 148, .3);
    transition: .2s;
  }
  .btn-place:hover { opacity: .9; transform: translateY(-1px); }
  
  /* ══════════════════════════════════════════════
     SUCCESS PAGE
  ══════════════════════════════════════════════ */
  .success-wrap {
    max-width: 560px;
    margin: 40px auto;
    padding: 20px 16px;
    text-align: center;
  }
  .success-icon { font-size: 72px; margin-bottom: 16px; animation: popIn .5s ease; }
  .success-wrap h1 { font-family: 'Fraunces', serif; font-size: 28px; font-weight: 700; color: var(--slate); margin-bottom: 10px; }
  .success-wrap p { font-size: 15px; color: var(--muted); line-height: 1.7; margin-bottom: 20px; }
  .order-id-badge {
    display: inline-block;
    background: var(--teal-l);
    color: var(--teal-d);
    font-family: monospace;
    font-size: 20px;
    font-weight: 800;
    padding: 12px 28px;
    border-radius: 12px;
    border: 1.5px solid rgba(0, 184, 148, .3);
    margin-bottom: 28px;
    letter-spacing: 1px;
  }
  .track-card {
    background: var(--white);
    border-radius: var(--r-lg);
    border: 1.5px solid var(--border);
    padding: 20px;
    margin-bottom: 28px;
    text-align: left;
  }
  .track-card h4 { font-size: 14px; font-weight: 800; color: var(--ink); margin-bottom: 16px; }
  .track-step { display: flex; gap: 14px; margin-bottom: 14px; align-items: flex-start; }
  .ts-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
  }
  .ts-dot.done { background: var(--teal); color: #fff; }
  .ts-dot.active { background: var(--blue); color: #fff; }
  .ts-dot.pending { background: var(--surface); border: 2px solid var(--border); color: var(--muted); }
  .ts-info strong { font-size: 13px; font-weight: 700; color: var(--ink); }
  .ts-info p { font-size: 12px; color: var(--muted); margin-top: 2px; }
  
  /* ══════════════════════════════════════════════
     SELLER PAGE
  ══════════════════════════════════════════════ */
  .seller-wrap { max-width: 1280px; margin: 0 auto; padding: 24px 16px 40px; }
  @media (min-width: 640px) { .seller-wrap { padding: 28px 24px 48px; } }
  .seller-hero-banner {
    background: var(--grad);
    border-radius: var(--r-xl);
    padding: 40px 32px;
    color: #fff;
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
  }
  .seller-hero-banner::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -5%;
    width: 350px;
    height: 350px;
    background: rgba(255, 255, 255, .09);
    border-radius: 50%;
  }
  .seller-hero-banner h1 { font-family: 'Fraunces', serif; font-size: clamp(22px, 3.5vw, 34px); font-weight: 700; margin-bottom: 12px; position: relative; z-index: 1; }
  .seller-hero-banner p { font-size: 15px; opacity: .88; margin-bottom: 24px; max-width: 440px; position: relative; z-index: 1; line-height: 1.7; }
  .btn-start-sell {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: var(--teal-d);
    font-size: 15px;
    font-weight: 800;
    padding: 13px 28px;
    border-radius: 12px;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .15);
    transition: .2s;
  }
  .btn-start-sell:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0, 0, 0, .2); }
  .seller-benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 28px; }
  @media (min-width: 640px) { .seller-benefits { grid-template-columns: repeat(3, 1fr); } }
  .ben-card {
    background: var(--white);
    border-radius: var(--r);
    border: 1.5px solid var(--border);
    padding: 20px;
    transition: .2s;
  }
  .ben-card:hover { border-color: var(--teal); transform: translateY(-2px); box-shadow: var(--shadow); }
  .ben-icon { font-size: 30px; margin-bottom: 10px; }
  .ben-card h3 { font-size: 14px; font-weight: 800; margin-bottom: 5px; color: var(--ink); }
  .ben-card p { font-size: 12px; color: var(--muted); line-height: 1.6; }
  .seller-form-card {
    background: var(--white);
    border-radius: var(--r-xl);
    border: 1.5px solid var(--border);
    padding: 28px;
    max-width: 680px;
    margin: 0 auto;
    box-shadow: var(--shadow);
  }
  .seller-form-card h2 { font-family: 'Fraunces', serif; font-size: 22px; font-weight: 700; margin-bottom: 4px; color: var(--slate); }
  .seller-form-card .sub { font-size: 13px; color: var(--muted); margin-bottom: 24px; }
  /* Step progress */
  .sbar { display: flex; align-items: center; margin-bottom: 28px; }
  .sbar-item { display: flex; align-items: center; gap: 6px; flex: 1; }
  .sbar-item:last-child { flex: 0; }
  .sbar-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
    transition: .3s;
    flex-shrink: 0;
  }
  .sbar-circle.act { background: var(--grad); border: none; color: #fff; }
  .sbar-circle.don { background: var(--green); border: none; color: #fff; }
  .sbar-line { flex: 1; height: 2px; background: var(--border); transition: .3s; min-width: 12px; }
  .sbar-line.don { background: var(--teal); }
  .sbar-lbl { font-size: 11px; color: var(--muted); font-weight: 600; margin-left: 4px; white-space: nowrap; }
  .sbar-lbl.act { color: var(--teal); }
  .form-step { display: none; }
  .form-step.active { display: block; }
  .f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
  @media (max-width: 480px) { .f-row { grid-template-columns: 1fr; } }
  .f-row.full { grid-template-columns: 1fr; }
  .form-btns { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; }
  .btn-back {
    background: var(--white);
    border: 1.5px solid var(--border);
    color: var(--ink);
    padding: 10px 22px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 700;
    transition: .2s;
  }
  .btn-back:hover { border-color: var(--teal); color: var(--teal); }
  .btn-next {
    background: var(--grad);
    color: #fff;
    border: none;
    padding: 10px 26px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 700;
    transition: .2s;
    box-shadow: 0 3px 10px rgba(0, 184, 148, .25);
  }
  .btn-next:hover { opacity: .9; transform: translateY(-1px); }
  
  /* ══════════════════════════════════════════════
     FAVORITES PAGE
  ══════════════════════════════════════════════ */
  .fav-empty {
    text-align: center;
    padding: 60px 20px;
    background: var(--white);
    border-radius: var(--r-xl);
    border: 2px dashed var(--border);
  }
  .fav-empty .fe-icon { font-size: 64px; margin-bottom: 16px; opacity: .5; }
  .fav-empty p { font-size: 16px; color: var(--muted); margin-bottom: 24px; }
  
  /* ══════════════════════════════════════════════
     MODAL
  ══════════════════════════════════════════════ */
  .modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 600;
    background: rgba(10, 22, 40, .55);
    backdrop-filter: blur(6px);
    align-items: flex-end;
    justify-content: center;
  }
  @media (min-width: 640px) { .modal-overlay { align-items: center; } }
  .modal-overlay.open { display: flex; }
  .modal-box {
    background: #fff;
    width: 100%;
    max-width: 440px;
    border-radius: 24px 24px 0 0;
    padding: 28px;
    position: relative;
    animation: slideUp .28s ease;
  }
  @media (min-width: 640px) {
    .modal-box { border-radius: 20px; animation: popIn .22s ease; }
  }
  .modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--surface);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 16px;
    color: var(--muted);
    transition: .2s;
  }
  .modal-close:hover { background: var(--border); }
  .modal-pull { width: 40px; height: 4px; background: var(--border); border-radius: 2px; margin: 0 auto 16px; }
  @media (min-width: 640px) { .modal-pull { display: none; } }
  .modal-tabs {
    display: flex;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
  }
  .modal-tab {
    flex: 1;
    border: none;
    background: transparent;
    padding: 9px;
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
    transition: .2s;
  }
  .modal-tab.active { background: var(--grad); color: #fff; }
  .modal-box h2 { font-family: 'Fraunces', serif; font-size: 22px; font-weight: 700; margin-bottom: 4px; color: var(--slate); }
  .modal-box .sub { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
  .m-field { margin-bottom: 13px; }
  .m-field label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: .5px;
  }
  .m-field input {
    width: 100%;
    border: 1.5px solid var(--border);
    border-radius: 9px;
    padding: 11px 13px;
    font-size: 14px;
    outline: none;
    transition: .2s;
    background: #fff;
    color: var(--ink);
  }
  .m-field input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0, 184, 148, .1); }
  .m-btn {
    width: 100%;
    background: var(--grad);
    color: #fff;
    border: none;
    padding: 13px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 800;
    margin-top: 6px;
    box-shadow: 0 4px 14px rgba(0, 184, 148, .28);
    transition: .2s;
  }
  .m-btn:hover { opacity: .9; }
  .m-switch { text-align: center; margin-top: 14px; font-size: 13px; color: var(--muted); }
  .m-switch a { color: var(--teal); font-weight: 700; cursor: pointer; }
  .social-login { display: flex; gap: 8px; margin-bottom: 14px; }
  .social-btn {
    flex: 1;
    border: 1.5px solid var(--border);
    background: #fff;
    border-radius: 10px;
    padding: 10px;
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: .2s;
  }
  .social-btn:hover { border-color: var(--teal); background: var(--teal-l); }
  .divider-or {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 14px;
  }
  .divider-or::before, .divider-or::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
  }
  
  /* ══════════════════════════════════════════════
     TOAST
  ══════════════════════════════════════════════ */
  .toast-stack {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 800;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    pointer-events: none;
  }
  @media (min-width: 768px) { .toast-stack { bottom: 28px; } }
  .toast {
    background: var(--slate2);
    color: #fff;
    padding: 11px 20px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    opacity: 0;
    transform: translateY(10px);
    transition: .3s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .2);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
  }
  .toast.show { opacity: 1; transform: translateY(0); }
  .toast.ts { background: #14532d; }
  .toast.te { background: #7f1d1d; }
  .toast.ti { background: var(--blue); }
  
  /* ══════════════════════════════════════════════
     BREADCRUMB
  ══════════════════════════════════════════════ */
  .bc {
    padding: 10px 24px;
    font-size: 12px;
    color: var(--muted);
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1280px;
    margin: 0 auto;
  }
  .bc-link { cursor: pointer; color: var(--teal); font-weight: 600; }
  .bc-link:hover { text-decoration: underline; }
  
  /* ══════════════════════════════════════════════
     BUTTONS (Global)
  ══════════════════════════════════════════════ */
  .btn-primary {
    background: var(--grad);
    color: #fff;
    padding: 13px 28px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 6px 20px rgba(0, 184, 148, .3);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: .2s;
  }
  .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0, 184, 148, .4); }
  .btn-secondary {
    background: #fff;
    color: var(--teal);
    border: 2px solid var(--teal);
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    transition: .2s;
  }
  .btn-secondary:hover { background: var(--teal-l); }
  
  /* ══════════════════════════════════════════════
     FOOTER
  ══════════════════════════════════════════════ */
  footer {
    background: var(--slate2);
    padding: 48px 24px 28px;
    color: rgba(255, 255, 255, .45);
  }
  .footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-bottom: 32px;
  }
  @media (min-width: 768px) { .footer-inner { grid-template-columns: 2fr 1fr 1fr 1fr; } }
  .f-brand p { font-size: 12px; line-height: 1.6; color: rgba(255, 255, 255, .4); margin-top: 10px; max-width: 220px; }
  .fcol h4 { color: #fff; font-size: 13px; font-weight: 700; margin-bottom: 12px; }
  .fcol ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
  .fcol ul a { color: rgba(255, 255, 255, .4); font-size: 12px; transition: .2s; }
  .fcol ul a:hover { color: var(--teal); }
  .footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
  }
  .footer-cert {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
  }
  .cert-badge {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 700;
    color: rgba(255,255,255,.6);
    display: flex;
    align-items: center;
    gap: 5px;
  }
  
  /* ══════════════════════════════════════════════
     ANIMATIONS
  ══════════════════════════════════════════════ */
  @keyframes fadeSlide {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes popIn {
    from { transform: scale(.92); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
  }
  @keyframes slideUp {
    from { transform: translateY(40px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
  }
  @keyframes spin {
    to { transform: rotate(360deg); }
  }
  
  /* ══════════════════════════════════════════════
     UTILITY
  ══════════════════════════════════════════════ */
  .hidden { display: none !important; }
  .text-center { text-align: center; }
  .skeleton {
    background: linear-gradient(90deg, var(--surface) 25%, var(--border) 50%, var(--surface) 75%);
    background-size: 200% 100%;
    animation: skeleton-anim 1.4s infinite;
    border-radius: 8px;
  }
  @keyframes skeleton-anim {
    from { background-position: 200% 0; }
    to { background-position: -200% 0; }
  }