  :root{
    --bg: #0B1120;
    --panel: #121A2E;
    --panel-2: #17203A;
    --line: rgba(232,236,244,0.10);
    --text: #E8ECF4;
    --muted: #8B93A8;
    --accent: #4C8DFF;
    --accent-2: #F2A93B;
    --accent-soft: rgba(76,141,255,0.14);
    --radius: 14px;
    --font-display: 'Space Grotesk', 'Hind Siliguri', sans-serif;
    --font-body: 'Hind Siliguri', 'Inter', sans-serif;
  }
  *{margin:0;padding:0;box-sizing:border-box;}
  html{scroll-behavior:smooth;}
  body{
    background:var(--bg);
    color:var(--text);
    font-family:var(--font-body);
    line-height:1.6;
    overflow-x:hidden;
  }
  h1,h2,h3,.brand{font-family:var(--font-display);}
  a{color:inherit;text-decoration:none;}
  .wrap{max-width:1180px;margin:0 auto;padding:0 28px;}
  img,svg{display:block;max-width:100%;}

  /* background texture */
  body::before{
    content:"";
    position:fixed; inset:0;
    background:
      radial-gradient(circle at 82% -10%, rgba(76,141,255,0.16), transparent 45%),
      radial-gradient(circle at -10% 40%, rgba(242,169,59,0.08), transparent 40%);
    pointer-events:none;
    z-index:0;
  }

  /* ---------- NAV ---------- */
  header{
    position:fixed; top:0; left:0; right:0; z-index:50;
    background:rgba(11,17,32,0.72);
    backdrop-filter:blur(14px);
    border-bottom:1px solid var(--line);
  }
  nav{
    display:flex; align-items:center; justify-content:space-between;
    padding:16px 28px; max-width:1180px; margin:0 auto;
  }
  .brand{font-size:22px; font-weight:700; letter-spacing:0.5px; display:flex; align-items:center; gap:8px;}
  .brand .dot{width:9px;height:9px;border-radius:50%;background:var(--accent); box-shadow:0 0 12px var(--accent);}
  .nav-links{display:flex; gap:34px; font-size:15px; color:var(--muted);}
  .nav-links a:hover{color:var(--text);}
  .nav-cta{
    background:var(--accent); color:#06101F; font-weight:600;
    padding:10px 20px; border-radius:999px; font-size:14px;
    transition:transform .2s ease, box-shadow .2s ease;
  }
  .nav-cta:hover{transform:translateY(-1px); box-shadow:0 8px 24px rgba(76,141,255,0.35);}
  .menu-toggle{display:none; background:none; border:none; color:var(--text); font-size:22px; cursor:pointer; margin-left:12px; padding:4px 6px;}
  .mobile-nav-panel{
    display:none; flex-direction:column; gap:2px; padding:10px 28px 18px;
    border-top:1px solid var(--line); background:rgba(11,17,32,0.98);
  }
  .mobile-nav-panel.open{ display:flex; }
  .mobile-nav-panel a{
    padding:13px 4px; font-size:15px; color:var(--muted); border-bottom:1px solid var(--line);
  }
  .mobile-nav-panel a:last-child{ border-bottom:none; }
  .mobile-nav-panel a:hover{ color:var(--text); }

  /* ---------- HERO ---------- */
  .hero{
    position:relative; z-index:1;
    padding:168px 0 100px;
    display:grid; grid-template-columns:1.05fr 0.95fr; gap:40px; align-items:center;
  }
  .eyebrow{
    display:inline-flex; align-items:center; gap:8px;
    font-size:13px; color:var(--accent-2); font-weight:600;
    letter-spacing:0.06em; text-transform:uppercase;
    background:rgba(242,169,59,0.10); border:1px solid rgba(242,169,59,0.25);
    padding:6px 14px; border-radius:999px; margin-bottom:22px;
  }
  .hero h1{
    font-size:clamp(34px, 5vw, 56px); font-weight:700; line-height:1.15;
    letter-spacing:-0.01em;
  }
  .hero h1 span{color:var(--accent);}
  .hero p.lead{
    margin-top:22px; font-size:18px; color:var(--muted); max-width:520px;
  }
  .hero-ctas{display:flex; gap:14px; margin-top:34px; flex-wrap:wrap;}
  .btn-primary{
    background:var(--accent); color:#06101F; font-weight:600; font-size:15px;
    padding:14px 28px; border-radius:999px;
    transition:transform .2s ease, box-shadow .2s ease;
  }
  .btn-primary:hover{transform:translateY(-2px); box-shadow:0 10px 30px rgba(76,141,255,0.35);}
  .btn-ghost{
    border:1px solid var(--line); color:var(--text); font-weight:600; font-size:15px;
    padding:14px 26px; border-radius:999px; transition:border-color .2s ease, background .2s ease;
  }
  .btn-ghost:hover{border-color:var(--accent); background:var(--accent-soft);}

  /* orbit signature graphic */
  .orbit-wrap{position:relative; aspect-ratio:1/1; max-width:460px; margin:0 auto;}
  .orbit-ring{position:absolute; border:1px solid var(--line); border-radius:50%;}
  .orbit-ring.r1{inset:0;}
  .orbit-ring.r2{inset:14%;}
  .hub{
    position:absolute; top:50%; left:50%; transform:translate(-50%,-50%);
    width:108px; height:108px; border-radius:50%;
    background:linear-gradient(145deg, var(--panel-2), var(--panel));
    border:1px solid rgba(76,141,255,0.4);
    display:flex; align-items:center; justify-content:center; text-align:center; padding:6px;
    font-family:var(--font-display); font-weight:700; font-size:15px; letter-spacing:0.4px; line-height:1.15; word-break:break-word;
    box-shadow:0 0 40px rgba(76,141,255,0.25), inset 0 0 20px rgba(76,141,255,0.08);
    z-index:3;
  }
  .node{
    position:absolute; width:82px; height:82px; border-radius:20px;
    background:var(--panel); border:1px solid var(--line);
    display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px;
    font-size:11px; color:var(--muted); font-weight:600; text-align:center;
    animation:orbit-float 6s ease-in-out infinite;
    z-index:2;
  }
  .node svg{width:22px;height:22px;stroke:var(--accent); fill:none; stroke-width:1.6;}
  .node.n1{top:-4%; left:50%; transform:translateX(-50%); animation-delay:0s;}
  .node.n2{bottom:6%; left:-2%; animation-delay:1.4s;}
  .node.n3{bottom:6%; right:-2%; animation-delay:2.8s;}
  @keyframes orbit-float{
    0%,100%{transform:translateY(0) translateX(var(--tx,0));}
    50%{transform:translateY(-8px) translateX(var(--tx,0));}
  }
  .node.n2{--tx:0px;}
  .orbit-dash{
    position:absolute; inset:0; animation:spin 26s linear infinite;
  }
  @keyframes spin{ to{ transform:rotate(360deg);} }

  @media (prefers-reduced-motion: reduce){
    .node, .orbit-dash{animation:none;}
  }

  /* ---------- SECTION HEADS ---------- */
  section{position:relative; z-index:1;}
  .section-pad{padding:96px 0;}
  .section-head{max-width:640px; margin-bottom:52px;}
  .section-head .eyebrow{margin-bottom:16px;}
  .section-head h2{font-size:clamp(26px,3.4vw,38px); font-weight:700; letter-spacing:-0.01em;}
  .section-head p{color:var(--muted); margin-top:14px; font-size:16px;}

  /* ---------- PRODUCT CATEGORY TABS ---------- */
  .cat-tabs{display:flex; gap:10px; margin-bottom:40px; flex-wrap:wrap;}
  .cat-tab{
    padding:10px 20px; border-radius:999px; border:1px solid var(--line);
    font-size:14px; font-weight:600; color:var(--muted); cursor:pointer;
    background:var(--panel); transition:all .2s ease;
  }
  .cat-tab.active{background:var(--accent); color:#06101F; border-color:var(--accent);}

  .card-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:22px;}
  .product-panel{display:none;}
  .product-panel.active{display:grid; grid-template-columns:repeat(3,1fr); gap:22px;}

  .card{
    background:linear-gradient(180deg, var(--panel), var(--panel-2));
    border:1px solid var(--line); border-radius:var(--radius);
    padding:26px; transition:transform .25s ease, border-color .25s ease;
  }
  .card:hover{transform:translateY(-4px); border-color:rgba(76,141,255,0.4);}
  .card .icon-badge{
    width:44px; height:44px; border-radius:12px; background:var(--accent-soft);
    display:flex; align-items:center; justify-content:center; margin-bottom:18px;
  }
  .card .icon-badge svg{width:22px;height:22px; stroke:var(--accent); fill:none; stroke-width:1.6;}
  .card h3{font-size:17px; font-weight:600; margin-bottom:8px;}
  .card p{font-size:14px; color:var(--muted); margin-bottom:18px;}
  .card .price-row{display:flex; align-items:center; justify-content:space-between; padding-top:16px; border-top:1px solid var(--line);}
  .card .price{font-family:var(--font-display); font-weight:700; color:var(--accent-2); font-size:16px;}
  .card .tag{font-size:11px; color:var(--muted); background:rgba(255,255,255,0.05); padding:4px 10px; border-radius:999px;}

  /* ---------- MARKETPLACE ---------- */
  .marketplace{
    background:var(--panel);
    border-top:1px solid var(--line); border-bottom:1px solid var(--line);
  }
  .mp-grid{display:grid; grid-template-columns:1fr 1fr; gap:60px; align-items:center;}
  .mp-features{list-style:none; margin-top:26px; display:flex; flex-direction:column; gap:18px;}
  .mp-features li{display:flex; gap:14px; align-items:flex-start; font-size:15px; color:var(--text);}
  .mp-features li .check{
    width:22px; height:22px; min-width:22px; border-radius:6px; background:rgba(76,141,255,0.16);
    display:flex; align-items:center; justify-content:center; margin-top:2px;
  }
  .mp-features li .check svg{width:13px; height:13px; stroke:var(--accent); fill:none; stroke-width:2.4;}
  .mp-features li span.desc{color:var(--muted); display:block; font-size:13.5px; margin-top:2px;}

  .mp-panel{
    background:linear-gradient(160deg, var(--panel-2), var(--bg));
    border:1px solid var(--line); border-radius:20px; padding:30px;
  }
  .mp-panel-head{display:flex; justify-content:space-between; align-items:center; margin-bottom:20px;}
  .mp-panel-head span{font-size:13px; color:var(--muted);}
  .mp-row{
    display:flex; align-items:center; justify-content:space-between;
    padding:14px 0; border-bottom:1px solid var(--line); font-size:14px;
  }
  .mp-row:last-child{border-bottom:none;}
  .mp-row .name{font-weight:600;}
  .mp-row .sub{color:var(--muted); font-size:12.5px;}
  .status-pill{font-size:11px; padding:4px 10px; border-radius:999px; font-weight:600;}
  .status-pill.live{background:rgba(76,141,255,0.16); color:var(--accent);}
  .status-pill.pending{background:rgba(242,169,59,0.16); color:var(--accent-2);}

  /* ---------- STATS ---------- */
  .stats-strip{
    display:grid; grid-template-columns:repeat(4,1fr); gap:24px;
    padding:70px 0; border-bottom:1px solid var(--line);
  }
  .stat h3{font-family:var(--font-display); font-size:clamp(28px,3vw,38px); color:var(--accent);}
  .stat p{color:var(--muted); font-size:14px; margin-top:6px;}

  /* ---------- CONTACT / FOOTER ---------- */
  .cta-band{
    text-align:center; padding:100px 0; position:relative; z-index:1;
  }
  .cta-band h2{font-size:clamp(28px,4vw,42px); font-weight:700; max-width:640px; margin:0 auto 18px;}
  .cta-band p{color:var(--muted); max-width:480px; margin:0 auto 34px;}

  footer{
    border-top:1px solid var(--line); padding:56px 0 30px; position:relative; z-index:1;
  }
  .foot-grid{display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:40px; margin-bottom:46px;}
  .foot-col h4{font-size:14px; margin-bottom:16px; color:var(--text);}
  .foot-col a, .foot-col p{color:var(--muted); font-size:14px; display:block; margin-bottom:10px;}
  .foot-col a:hover{color:var(--accent);}
  .foot-bottom{
    display:flex; justify-content:space-between; align-items:center;
    padding-top:26px; border-top:1px solid var(--line); font-size:13px; color:var(--muted); flex-wrap:wrap; gap:12px;
  }

  /* ---------- RESPONSIVE ---------- */
  @media (max-width: 880px){
    .hero{grid-template-columns:1fr; padding-top:150px;}
    .orbit-wrap{max-width:320px;}
    .nav-links{display:none;}
    .menu-toggle{display:block;}
    .card-grid, .product-panel.active{grid-template-columns:1fr 1fr;}
    .mp-grid{grid-template-columns:1fr;}
    .stats-strip{grid-template-columns:repeat(2,1fr);}
    .foot-grid{grid-template-columns:1fr 1fr;}
    .brand{font-size:17px;}
    .nav-cta{padding:8px 14px; font-size:12.5px;}
    nav{padding:14px 16px; gap:8px;}
  }
  @media (max-width: 400px){
    .nav-cta span, .nav-cta{ font-size:11.5px; padding:7px 10px; }
  }
  @media (max-width: 560px){
    .card-grid, .product-panel.active{grid-template-columns:1fr;}
    .foot-grid{grid-template-columns:1fr;}
    .stats-strip{grid-template-columns:1fr 1fr;}
  }

  :focus-visible{outline:2px solid var(--accent); outline-offset:3px;}

  /* ---------- ADMIN / EDIT MODE ---------- */
  .admin-btn{
    display:flex; align-items:center; gap:6px;
    border:1px solid var(--line); color:var(--muted); font-size:13px; font-weight:600;
    padding:9px 16px; border-radius:999px; background:transparent; cursor:pointer;
    margin-right:10px; transition:all .2s ease;
  }
  .admin-btn:hover{border-color:var(--accent); color:var(--text);}
  .admin-btn svg{width:15px;height:15px; stroke:currentColor; fill:none; stroke-width:1.8;}
  body.edit-mode [contenteditable="true"]{
    cursor:text; border-radius:6px; transition:box-shadow .15s ease;
  }
  body.edit-mode [contenteditable="true"]:hover{ box-shadow:0 0 0 2px rgba(76,141,255,0.35); }
  body.edit-mode [contenteditable="true"]:focus{ box-shadow:0 0 0 2px var(--accent); outline:none; }
  body.edit-mode .card, body.edit-mode .mp-panel{ position:relative; }

  .card-remove{
    display:none; position:absolute; top:10px; right:10px; width:26px; height:26px;
    border-radius:50%; background:rgba(255,80,80,0.14); border:1px solid rgba(255,80,80,0.4);
    color:#ff6b6b; align-items:center; justify-content:center; cursor:pointer; font-size:14px; line-height:1; z-index:5;
  }
  body.edit-mode .card{ padding-top:34px; }
  body.edit-mode .card-remove{ display:flex; }

  .card-add{
    border:1.5px dashed var(--line); border-radius:var(--radius);
    display:none; align-items:center; justify-content:center; flex-direction:column; gap:8px;
    color:var(--muted); font-size:14px; font-weight:600; cursor:pointer; min-height:170px;
    background:transparent; transition:all .2s ease;
  }
  .card-add:hover{ border-color:var(--accent); color:var(--accent); background:var(--accent-soft); }
  body.edit-mode .card-add{ display:flex; }
  .card-add svg{width:24px;height:24px; stroke:currentColor; fill:none; stroke-width:1.6;}

  .admin-toolbar{
    position:fixed; bottom:0; left:0; right:0; z-index:60;
    display:none; align-items:center; justify-content:center; gap:14px;
    padding:16px; background:rgba(11,17,32,0.92); backdrop-filter:blur(14px);
    border-top:1px solid var(--line);
  }
  body.edit-mode .admin-toolbar{ display:flex; }
  .toolbar-info{ font-size:13px; color:var(--muted); margin-right:10px; }
  .toolbar-btn{
    padding:10px 18px; border-radius:999px; font-size:14px; font-weight:600; cursor:pointer; border:1px solid var(--line);
    background:var(--panel); color:var(--text);
  }
  .toolbar-btn.primary{ background:var(--accent); color:#06101F; border-color:var(--accent); }
  .toolbar-btn.danger{ color:#ff6b6b; border-color:rgba(255,80,80,0.35); background:transparent; }

  .admin-modal-bg{
    position:fixed; inset:0; background:rgba(6,10,20,0.7); backdrop-filter:blur(4px);
    display:none; align-items:center; justify-content:center; z-index:100;
  }
  .admin-modal-bg.show{ display:flex; }
  .admin-modal{
    background:var(--panel-2); border:1px solid var(--line); border-radius:16px;
    padding:32px; width:320px; text-align:center;
  }
  .admin-modal h3{ font-size:17px; margin-bottom:8px; }
  .admin-modal p{ font-size:13px; color:var(--muted); margin-bottom:18px; }
  .admin-modal input{
    width:100%; padding:11px 14px; border-radius:10px; border:1px solid var(--line);
    background:var(--bg); color:var(--text); font-size:14px; margin-bottom:14px;
  }
  .admin-modal input:focus{ outline:none; border-color:var(--accent); }
  .admin-modal .err{ color:#ff6b6b; font-size:12.5px; margin-bottom:10px; display:none; }

  .toast{
    position:fixed; bottom:90px; left:50%; transform:translateX(-50%) translateY(20px);
    background:var(--accent); color:#06101F; font-weight:600; font-size:14px;
    padding:12px 22px; border-radius:999px; z-index:70; opacity:0; pointer-events:none;
    transition:all .3s ease;
  }
  .toast.show{ opacity:1; transform:translateX(-50%) translateY(0); }

/* ============================================================
   PORTAL / DASHBOARD (shared across portal.html)
============================================================ */
.portal-shell{ min-height:100vh; display:flex; flex-direction:column; }
.portal-header{
  border-bottom:1px solid var(--line); padding:18px 0;
  position:sticky; top:0; background:rgba(11,17,32,0.85); backdrop-filter:blur(12px); z-index:20;
}
.portal-header .wrap{ display:flex; align-items:center; justify-content:space-between; }
.portal-main{ flex:1; padding:56px 0 90px; position:relative; z-index:1; }
.auth-shell{ min-height:80vh; display:flex; align-items:center; justify-content:center; padding:40px 20px; }
.auth-card{
  width:100%; max-width:400px; background:var(--panel); border:1px solid var(--line);
  border-radius:18px; padding:36px;
}
.auth-card h2{ font-size:22px; margin-bottom:8px; }
.auth-card p.sub{ color:var(--muted); font-size:14px; margin-bottom:26px; }
.field{ margin-bottom:16px; }
.field label{ display:block; font-size:13px; color:var(--muted); margin-bottom:7px; font-weight:600; }
.field input, .field textarea, .field select{
  width:100%; padding:12px 14px; border-radius:10px; border:1px solid var(--line);
  background:var(--bg); color:var(--text); font-size:14px; font-family:var(--font-body);
}
.field input:focus, .field textarea:focus, .field select:focus{ outline:none; border-color:var(--accent); }
.field textarea{ resize:vertical; min-height:80px; }
.btn-block{ width:100%; }
.auth-switch{ text-align:center; margin-top:20px; font-size:13.5px; color:var(--muted); }
.auth-switch a{ color:var(--accent); font-weight:600; cursor:pointer; }
.form-error{ color:#ff6b6b; font-size:13px; margin-bottom:14px; display:none; }
.form-note{ font-size:12.5px; color:var(--muted); margin-top:10px; }

.status-banner{
  display:flex; align-items:center; gap:12px; padding:16px 20px; border-radius:14px;
  margin-bottom:34px; font-size:14px; border:1px solid var(--line);
}
.status-banner.pending{ background:rgba(242,169,59,0.10); border-color:rgba(242,169,59,0.3); color:var(--accent-2); }
.status-banner.approved{ background:rgba(76,141,255,0.10); border-color:rgba(76,141,255,0.3); color:var(--accent); }
.status-banner.rejected{ background:rgba(255,107,107,0.10); border-color:rgba(255,107,107,0.3); color:#ff6b6b; }

.dash-grid{ display:grid; grid-template-columns:280px 1fr; gap:36px; align-items:flex-start; }
.dash-side{ background:var(--panel); border:1px solid var(--line); border-radius:16px; padding:24px; }
.dash-side h3{ font-size:15px; margin-bottom:6px; }
.dash-side p{ font-size:13px; color:var(--muted); }
.dash-panel{ background:var(--panel); border:1px solid var(--line); border-radius:16px; padding:28px; margin-bottom:24px; }
.dash-panel h3{ font-size:17px; margin-bottom:18px; }
.dash-panel-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:18px; }

.product-row{
  display:grid; grid-template-columns:1fr 1fr 130px 110px 90px 36px; gap:12px; align-items:start;
  padding:14px 0; border-bottom:1px solid var(--line);
}
.product-row:last-child{ border-bottom:none; }
.product-row-remove{
  width:30px; height:30px; border-radius:8px; background:rgba(255,80,80,0.12); border:1px solid rgba(255,80,80,0.3);
  color:#ff6b6b; cursor:pointer; font-size:15px; align-self:center; justify-self:center;
}
.dash-empty{ text-align:center; color:var(--muted); font-size:14px; padding:30px 0; }

.vendor-card-admin{
  display:flex; justify-content:space-between; align-items:center; gap:16px;
  padding:16px 0; border-bottom:1px solid var(--line);
}
.vendor-card-admin:last-child{ border-bottom:none; }
.vendor-card-admin .v-name{ font-weight:600; font-size:15px; }
.vendor-card-admin .v-meta{ font-size:12.5px; color:var(--muted); margin-top:3px; }
.vendor-actions{ display:flex; gap:8px; }
.vendor-actions button{
  padding:8px 14px; border-radius:999px; font-size:12.5px; font-weight:600; cursor:pointer; border:1px solid var(--line);
  background:transparent; color:var(--text);
}
.vendor-actions .approve{ color:var(--accent); border-color:rgba(76,141,255,0.4); }
.vendor-actions .reject{ color:#ff6b6b; border-color:rgba(255,80,80,0.35); }

.loading-inline{ display:flex; align-items:center; gap:10px; color:var(--muted); font-size:14px; padding:30px 0; }
.spin{ width:18px; height:18px; border-radius:50%; border:2.5px solid rgba(76,141,255,0.25); border-top-color:var(--accent); animation:spin 0.8s linear infinite; }
@keyframes spin{ to{ transform:rotate(360deg); } }

/* marketplace vendor cards on the public site */
.vendor-card{
  background:linear-gradient(180deg, var(--panel), var(--panel-2)); border:1px solid var(--line);
  border-radius:var(--radius); padding:24px;
}
.vendor-card-head{ display:flex; align-items:center; gap:12px; margin-bottom:14px; }
.vendor-card-head img{ width:44px; height:44px; border-radius:10px; object-fit:cover; background:var(--panel-2); }
.vendor-card-head .vc-fallback{
  width:44px; height:44px; border-radius:10px; background:var(--accent-soft); color:var(--accent);
  display:flex; align-items:center; justify-content:center; font-weight:700; font-family:var(--font-display);
}
.vendor-card-head h4{ font-size:15px; }
.vendor-card-head span{ font-size:12.5px; color:var(--muted); }
.vendor-products{ display:flex; flex-direction:column; gap:10px; margin-top:14px; }
.vendor-product-item{ display:flex; justify-content:space-between; font-size:13.5px; border-top:1px solid var(--line); padding-top:10px; }
.vendor-product-item .vp-price{ color:var(--accent-2); font-weight:600; }

@media (max-width: 880px){
  .dash-grid{ grid-template-columns:1fr; }
  .product-row{ grid-template-columns:1fr; gap:8px; }
  .product-row-remove{ justify-self:start; }
}

/* ============================================================
   SALES LEDGER (admin dashboard)
============================================================ */
.ledger-summary-row{
  display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin-bottom:22px;
}
.ledger-summary-row.cols-4{ grid-template-columns:repeat(4,1fr); }
.ledger-summary-card{
  background:var(--bg); border:1px solid var(--line); border-radius:12px; padding:16px 18px;
}
.ledger-summary-card .label{ font-size:12.5px; color:var(--muted); margin-bottom:6px; }
.ledger-summary-card .value{ font-family:var(--font-display); font-size:20px; font-weight:700; color:var(--accent); }
.ledger-summary-card.due .value{ color:#ff9f5a; }
.ledger-summary-card.refunded .value{ color:var(--muted); }

.customer-group{ margin-bottom:26px; }
.customer-group-head{
  display:flex; justify-content:space-between; align-items:center;
  padding-bottom:10px; margin-bottom:10px; border-bottom:1px solid var(--line);
}
.customer-group-head .cg-name{ font-weight:700; font-size:15px; }
.customer-group-head .cg-meta{ font-size:12.5px; color:var(--muted); }
.customer-group-head .cg-total{ font-family:var(--font-display); font-weight:700; color:var(--accent-2); font-size:14px; }

.ledger-row{
  display:grid; grid-template-columns:1.3fr 1fr 90px 90px 1fr; gap:10px; align-items:center;
  padding:11px 0; border-bottom:1px solid var(--line); font-size:13.5px;
}
.lr-actions{ display:flex; gap:6px; justify-content:flex-end; flex-wrap:wrap; }
.ledger-row:last-child{ border-bottom:none; }
.ledger-row .lr-product{ font-weight:600; }
.ledger-row .lr-note{ font-size:12px; color:var(--muted); margin-top:2px; }
.ledger-row .lr-amount{ font-family:var(--font-display); font-weight:700; }
.ledger-row .lr-remove{
  width:26px; height:26px; border-radius:8px; background:rgba(255,80,80,0.12); border:1px solid rgba(255,80,80,0.3);
  color:#ff6b6b; cursor:pointer; font-size:14px;
}
.status-chip{ font-size:11px; padding:3px 10px; border-radius:999px; font-weight:600; display:inline-block; }
.status-chip.paid{ background:rgba(76,141,255,0.14); color:var(--accent); }
.status-chip.due{ background:rgba(255,159,90,0.14); color:#ff9f5a; }
.status-chip.refunded{ background:rgba(139,147,168,0.16); color:var(--muted); }

.lr-refund{
  font-size:11px; padding:6px 10px; border-radius:8px; font-weight:600; cursor:pointer;
  background:transparent; border:1px solid rgba(255,159,90,0.35); color:#ff9f5a; white-space:nowrap;
}
.lr-refund:hover{ background:rgba(255,159,90,0.1); }
.lr-refund:disabled{ opacity:0.5; cursor:not-allowed; }

.lr-invoice{
  font-size:11px; padding:6px 10px; border-radius:8px; font-weight:600; cursor:pointer;
  background:transparent; border:1px solid var(--line); color:var(--muted); white-space:nowrap;
}
.lr-invoice:hover{ color:var(--text); border-color:var(--accent); }

@media (max-width:880px){
  .ledger-summary-row{ grid-template-columns:1fr; }
  .ledger-summary-row.cols-4{ grid-template-columns:1fr; }
  .ledger-row{ grid-template-columns:1fr; }
}

/* ============================================================
   PROMO BANNER + POPUP + AD SLOTS
============================================================ */
.promo-banner{
  position:relative; z-index:80;
  display:flex; align-items:center; justify-content:center; gap:14px; flex-wrap:wrap;
  background:linear-gradient(90deg, var(--accent), #7aa9ff);
  color:#06101F; font-size:13.5px; font-weight:600; text-align:center;
  padding:10px 44px 10px 16px;
}
.promo-banner-btn{
  background:rgba(6,16,31,0.14); padding:5px 14px; border-radius:999px; font-size:12.5px; font-weight:700;
  white-space:nowrap;
}
.promo-banner-close{
  position:absolute; right:14px; top:50%; transform:translateY(-50%);
  background:none; border:none; color:#06101F; font-size:18px; cursor:pointer; line-height:1; opacity:0.7;
}
.promo-banner-close:hover{ opacity:1; }

.promo-popup-bg{
  position:fixed; inset:0; z-index:150; background:rgba(6,10,20,0.75); backdrop-filter:blur(4px);
  display:none; align-items:center; justify-content:center; padding:20px;
}
.promo-popup-bg.show{ display:flex; }
.promo-popup{
  position:relative; width:100%; max-width:420px; background:var(--panel-2); border:1px solid var(--line);
  border-radius:18px; padding:34px; text-align:center;
}
.promo-popup img{ width:100%; max-height:160px; object-fit:cover; border-radius:12px; margin-bottom:18px; }
.promo-popup h3{ font-size:20px; margin-bottom:10px; }
.promo-popup p{ color:var(--muted); font-size:14.5px; }
.promo-popup-close{
  position:absolute; top:14px; right:14px; width:30px; height:30px; border-radius:50%;
  background:rgba(255,255,255,0.06); border:1px solid var(--line); color:var(--text);
  font-size:16px; cursor:pointer;
}

.promo-popup-items{
  display:flex; gap:10px; overflow-x:auto; padding:4px 2px 10px; margin-top:14px;
  justify-content:center; flex-wrap:wrap;
}
.promo-popup-item{
  width:74px; flex-shrink:0; text-align:center;
}
.promo-popup-item img{
  width:74px; height:74px; object-fit:cover; border-radius:10px; margin-bottom:0;
  border:1px solid var(--line);
}
.promo-popup-item .ppi-fallback{
  width:74px; height:74px; border-radius:10px; background:var(--accent-soft); color:var(--accent);
  display:flex; align-items:center; justify-content:center; font-weight:700; font-family:var(--font-display);
}
.promo-popup-item span{
  display:block; font-size:11px; color:var(--muted); margin-top:6px; line-height:1.3;
  overflow:hidden; text-overflow:ellipsis; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical;
}

.ad-slot{
  margin:20px auto; min-height:90px; border:1px dashed var(--line); border-radius:12px;
  display:flex; align-items:center; justify-content:center; color:var(--muted); font-size:12.5px;
  position:relative;
}
.ad-slot-label{
  position:absolute; top:8px; left:14px; font-size:10.5px; letter-spacing:0.06em; text-transform:uppercase; color:var(--muted);
}

/* featured vendor badge */
.vendor-card.is-featured{ border-color:rgba(242,169,59,0.5); box-shadow:0 0 0 1px rgba(242,169,59,0.15); }
.featured-badge{
  font-size:10.5px; font-weight:700; letter-spacing:0.04em; color:var(--accent-2);
  background:rgba(242,169,59,0.14); border:1px solid rgba(242,169,59,0.3);
  padding:3px 9px; border-radius:999px; margin-left:8px; display:inline-block; vertical-align:middle;
}

/* admin promo settings form spacing reuses .dash-panel / .field already defined */
.toggle-row{ display:flex; align-items:center; justify-content:space-between; margin-bottom:16px; }
.toggle-row label{ font-size:14px; font-weight:600; }
.switch{ position:relative; width:44px; height:24px; }
.switch input{ opacity:0; width:0; height:0; }
.switch .slider{
  position:absolute; inset:0; background:var(--line); border-radius:999px; cursor:pointer; transition:background .2s ease;
}
.switch .slider::before{
  content:""; position:absolute; width:18px; height:18px; left:3px; top:3px; background:#fff; border-radius:50%; transition:transform .2s ease;
}
.switch input:checked + .slider{ background:var(--accent); }
.switch input:checked + .slider::before{ transform:translateX(20px); }

/* ============================================================
   ORDER / CONTACT CTAs
============================================================ */
.card-order-link{
  display:block; margin-top:14px; font-size:13px; font-weight:600; color:var(--accent);
  text-align:center; padding:9px; border-radius:999px; border:1px solid rgba(76,141,255,0.3);
  transition:background .2s ease;
}
.card-order-link:hover{ background:var(--accent-soft); }

.vendor-contact-btn{
  display:flex; align-items:center; justify-content:center; gap:8px;
  margin-top:16px; padding:10px; border-radius:999px; font-size:13px; font-weight:600;
  background:var(--accent); color:#06101F; text-align:center;
}
.vendor-contact-btn svg{ width:15px; height:15px; stroke:currentColor; fill:none; stroke-width:2; }
.vendor-contact-btn.email-style{ background:transparent; border:1px solid var(--line); color:var(--text); }

/* ============================================================
   FAQ ACCORDION
============================================================ */
.faq-list{ max-width:760px; }
.faq-item{
  border-bottom:1px solid var(--line);
}
.faq-question{
  width:100%; display:flex; align-items:center; justify-content:space-between; gap:16px;
  background:none; border:none; text-align:left; padding:20px 4px; cursor:pointer;
  font-family:var(--font-body); font-size:15.5px; font-weight:600; color:var(--text);
}
.faq-icon{
  flex-shrink:0; width:26px; height:26px; border-radius:50%; background:var(--panel);
  display:flex; align-items:center; justify-content:center; font-size:16px; color:var(--accent);
  transition:transform .25s ease;
}
.faq-item.open .faq-icon{ transform:rotate(45deg); }
.faq-answer{
  max-height:0; overflow:hidden; transition:max-height .3s ease, padding .3s ease;
  padding:0 4px;
}
.faq-answer p{ color:var(--muted); font-size:14.5px; line-height:1.7; padding-bottom:0; }
.faq-item.open .faq-answer{ max-height:220px; padding-bottom:20px; }

/* ============================================================
   TESTIMONIALS
============================================================ */
.testimonial-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.testimonial-card{
  background:linear-gradient(180deg, var(--panel), var(--panel-2));
  border:1px solid var(--line); border-radius:var(--radius); padding:26px;
}
.t-stars{ color:var(--accent-2); font-size:15px; letter-spacing:2px; margin-bottom:14px; }
.t-quote{ font-size:14.5px; color:var(--text); line-height:1.7; margin-bottom:22px; }
.t-author{ display:flex; align-items:center; gap:12px; }
.t-avatar{
  width:40px; height:40px; border-radius:50%; background:var(--accent-soft); color:var(--accent);
  display:flex; align-items:center; justify-content:center; font-weight:700; font-family:var(--font-display);
  flex-shrink:0;
}
.t-name{ font-size:13.5px; font-weight:600; }
.t-role{ font-size:12px; color:var(--muted); }

@media (max-width:880px){
  .testimonial-grid{ grid-template-columns:1fr; }
}

/* ============================================================
   NEWSLETTER
============================================================ */
.newsletter-band{
  padding:56px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line);
}
.newsletter-inner{
  display:flex; align-items:center; justify-content:space-between; gap:30px; flex-wrap:wrap;
}
.newsletter-inner h3{ font-size:19px; margin-bottom:6px; }
.newsletter-inner p{ color:var(--muted); font-size:13.5px; }
.newsletter-form{ display:flex; gap:10px; flex-wrap:wrap; }
.newsletter-form input{
  padding:12px 16px; border-radius:999px; border:1px solid var(--line);
  background:var(--panel); color:var(--text); font-size:14px; min-width:220px;
  font-family:var(--font-body);
}
.newsletter-form input:focus{ outline:none; border-color:var(--accent); }
.newsletter-form button{ white-space:nowrap; }

@media (max-width:700px){
  .newsletter-inner{ flex-direction:column; align-items:flex-start; }
  .newsletter-form{ width:100%; }
  .newsletter-form input{ flex:1; min-width:0; }
}

/* ============================================================
   LIVE CHAT WIDGET
============================================================ */
.chat-widget{ position:fixed; bottom:24px; right:24px; z-index:80; }
.chat-bubble{
  width:58px; height:58px; border-radius:50%; background:var(--accent); border:none;
  display:flex; align-items:center; justify-content:center; cursor:pointer; position:relative;
  box-shadow:0 10px 30px rgba(76,141,255,0.4); transition:transform .2s ease;
}
.chat-bubble:hover{ transform:translateY(-2px) scale(1.03); }
.chat-bubble svg{ width:24px; height:24px; stroke:#06101F; fill:none; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; position:absolute; transition:opacity .2s ease, transform .2s ease; }
.chat-bubble .chat-bubble-icon{ fill:#06101F; stroke:none; }
.chat-bubble .chat-close-icon{ opacity:0; transform:scale(0.5) rotate(-45deg); }
.chat-widget.open .chat-bubble .chat-bubble-icon{ opacity:0; transform:scale(0.5) rotate(45deg); }
.chat-widget.open .chat-bubble .chat-close-icon{ opacity:1; transform:scale(1) rotate(0); }
.chat-unread-dot{
  position:absolute; top:2px; right:2px; width:14px; height:14px; border-radius:50%;
  background:#ff6b6b; border:2px solid var(--bg);
}

.chat-panel{
  position:absolute; bottom:74px; right:0; width:340px; max-width:calc(100vw - 48px);
  height:460px; max-height:70vh; background:var(--panel); border:1px solid var(--line);
  border-radius:18px; box-shadow:0 20px 60px rgba(0,0,0,0.4);
  display:flex; flex-direction:column; overflow:hidden;
  opacity:0; transform:translateY(16px) scale(0.97); pointer-events:none;
  transition:opacity .2s ease, transform .2s ease;
}
.chat-widget.open .chat-panel{ opacity:1; transform:translateY(0) scale(1); pointer-events:auto; }

.chat-panel-header{
  padding:16px 18px; border-bottom:1px solid var(--line);
  background:linear-gradient(135deg, var(--panel-2), var(--panel));
}
.chat-panel-header strong{ display:block; font-size:14.5px; }
.chat-status-line{ font-size:12px; color:var(--muted); display:flex; align-items:center; gap:6px; }
.chat-status-line::before{ content:''; width:7px; height:7px; border-radius:50%; background:#4ade80; display:inline-block; }

.chat-messages{
  flex:1; overflow-y:auto; padding:16px; display:flex; flex-direction:column; gap:10px;
}
.chat-welcome{
  background:var(--bg); border:1px solid var(--line); border-radius:12px; padding:12px 14px;
  font-size:13px; color:var(--muted); align-self:flex-start; max-width:85%;
}
.chat-msg{
  max-width:80%; padding:10px 14px; border-radius:14px; font-size:13.5px; line-height:1.5;
  word-break:break-word; white-space:pre-wrap;
}
.chat-msg-visitor{ align-self:flex-end; background:var(--accent); color:#06101F; border-bottom-right-radius:4px; }
.chat-msg-admin{ align-self:flex-start; background:var(--bg); border:1px solid var(--line); color:var(--text); border-bottom-left-radius:4px; }
.chat-error{ text-align:center; color:#ff6b6b; font-size:13px; }

.chat-input-row{
  display:flex; gap:8px; padding:12px; border-top:1px solid var(--line); background:var(--panel);
}
.chat-input-row input{
  flex:1; padding:11px 14px; border-radius:999px; border:1px solid var(--line);
  background:var(--bg); color:var(--text); font-size:13.5px; font-family:var(--font-body);
}
.chat-input-row input:focus{ outline:none; border-color:var(--accent); }
.chat-input-row button{
  width:40px; height:40px; border-radius:50%; background:var(--accent); border:none;
  display:flex; align-items:center; justify-content:center; cursor:pointer; flex-shrink:0;
}
.chat-input-row button svg{ width:17px; height:17px; stroke:#06101F; fill:none; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }

@media (max-width:480px){
  .chat-widget{ bottom:16px; right:16px; }
  .chat-panel{ width:calc(100vw - 32px); height:65vh; bottom:72px; }
}

/* ============================================================
   ADMIN CHAT INBOX
============================================================ */
.chat-admin-shell{
  display:grid; grid-template-columns:300px 1fr; gap:20px; height:520px; margin-bottom:20px;
}
.chat-admin-list{
  background:var(--panel); border:1px solid var(--line); border-radius:16px; overflow-y:auto; padding:8px;
}
.chat-admin-row{
  display:flex; align-items:center; gap:10px; padding:12px; border-radius:12px; cursor:pointer;
  transition:background .15s ease; position:relative;
}
.chat-admin-row:hover{ background:var(--bg); }
.chat-admin-row.active{ background:var(--accent-soft); }
.chat-admin-row .car-avatar{
  width:38px; height:38px; border-radius:50%; background:var(--panel-2); color:var(--accent);
  display:flex; align-items:center; justify-content:center; font-weight:700; font-family:var(--font-display);
  flex-shrink:0; font-size:14px;
}
.chat-admin-row .car-body{ flex:1; min-width:0; }
.chat-admin-row .car-name{ font-size:13.5px; font-weight:600; display:flex; align-items:center; gap:6px; }
.chat-admin-row .car-preview{ font-size:12px; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.chat-admin-row .car-unread{ width:9px; height:9px; border-radius:50%; background:var(--accent); flex-shrink:0; }
.chat-admin-row .car-time{ font-size:10.5px; color:var(--muted); flex-shrink:0; }

.chat-admin-conversation{
  background:var(--panel); border:1px solid var(--line); border-radius:16px;
  display:flex; flex-direction:column; overflow:hidden;
}
.chat-admin-empty{ margin:auto; color:var(--muted); font-size:13.5px; text-align:center; padding:20px; }
.chat-admin-head{ padding:16px 18px; border-bottom:1px solid var(--line); font-weight:600; font-size:14px; }
.chat-admin-messages{ flex:1; overflow-y:auto; padding:16px; display:flex; flex-direction:column; gap:10px; }
.chat-admin-input-row{ display:flex; gap:8px; padding:12px; border-top:1px solid var(--line); }
.chat-admin-input-row input{
  flex:1; padding:11px 14px; border-radius:999px; border:1px solid var(--line);
  background:var(--bg); color:var(--text); font-size:13.5px; font-family:var(--font-body);
}
.chat-admin-input-row input:focus{ outline:none; border-color:var(--accent); }
.chat-admin-input-row button{
  padding:0 20px; border-radius:999px; background:var(--accent); color:#06101F; border:none;
  font-weight:600; font-size:13px; cursor:pointer;
}

@media (max-width:880px){
  .chat-admin-shell{ grid-template-columns:1fr; height:auto; }
  .chat-admin-list{ max-height:220px; }
  .chat-admin-conversation{ height:420px; }
}

/* ============================================================
   SOFTWARE PRODUCT DETAIL — link, modal, admin edit modal
============================================================ */
.sw-detail-link{
  display:block; width:100%; margin-top:10px; padding:0; background:none; border:none;
  color:var(--accent); font-size:13px; font-weight:600; text-align:left; cursor:pointer;
  font-family:var(--font-body);
}
.sw-detail-link:hover{ text-decoration:underline; }

.sw-modal-bg{
  position:fixed; inset:0; background:rgba(6,10,20,0.75); backdrop-filter:blur(6px);
  display:none; align-items:center; justify-content:center; z-index:150; padding:20px;
}
.sw-modal-bg.show{ display:flex; }
.sw-modal{
  background:var(--panel-2); border:1px solid var(--line); border-radius:20px;
  max-width:560px; width:100%; max-height:88vh; overflow-y:auto; position:relative;
}
.sw-modal-close{
  position:absolute; top:14px; right:14px; width:34px; height:34px; border-radius:50%;
  background:rgba(0,0,0,0.35); border:1px solid var(--line); color:#fff; font-size:18px;
  cursor:pointer; z-index:5;
}
.sw-modal-media{ width:100%; }
.sw-modal-media img{ width:100%; max-height:260px; object-fit:cover; display:block; }
.sw-modal-media iframe, .sw-modal-media video{
  width:100%; aspect-ratio:16/9; display:block; border:none;
}
.sw-modal-body{ padding:28px; }
.sw-modal-body h3{ font-size:20px; margin-bottom:8px; }
.sw-modal-price{ color:var(--accent-2); font-weight:700; font-family:var(--font-display); font-size:16px; margin-bottom:16px; }
.sw-modal-overview{ color:var(--text); font-size:14.5px; line-height:1.75; white-space:pre-wrap; }
.sw-modal-conditions{ margin-top:22px; padding-top:18px; border-top:1px solid var(--line); }
.sw-modal-conditions h4{ font-size:12.5px; text-transform:uppercase; letter-spacing:0.05em; color:var(--muted); margin-bottom:8px; }
.sw-modal-conditions div{ color:var(--muted); font-size:13.5px; line-height:1.7; white-space:pre-wrap; }
.sw-modal-empty{ color:var(--muted); font-size:14px; text-align:center; padding:20px 0; }

.sw-edit-modal{ max-width:600px; }
.sw-edit-modal .field textarea{ min-height:90px; }
