  :root{
    --navy-900:#0A1230;
    --navy-800:#111C4A;
    --navy-700:#1C2C6B;
    --navy-600:#2A3D8F;
    --gold-500:#F7990C;
    --gold-400:#F7990C;
    --gold-100:#FBE7CE;
    --font-head:'Estedad',Tahoma,sans-serif;
    --font-body:'Vazirmatn',Tahoma,sans-serif;

    /* semantic tokens — dark theme (default) */
    --surface:#080D24;
    --surface-2:#111938;
    --surface-3:#182252;
    --text-primary:#F3F4FA;
    --text-secondary:#A9ACC9;
    --text-muted:#7377A0;
    --border:rgba(255,255,255,.10);
    --border-strong:rgba(255,255,255,.18);
    --cheque-color:var(--gold-400);
    --img-grad-a:#1A2350;
    --img-grad-b:#111938;
    --input-bg:#0D1436;
    --shadow-card:0 10px 24px rgba(0,0,0,.35);

    /* brand-block tokens (header/hero/footer/CTA/side-nav/auth-visual) */
    --brand-bg:#0A1230;
    --brand-bg-2:#111C4A;
    --brand-bg-3:#1C2C6B;
    --brand-text:#FFFFFF;
    --brand-text-2:#C7CAE0;
    --brand-text-3:#9497B0;
    --brand-border:rgba(255,255,255,.10);
    --brand-border-strong:rgba(255,255,255,.18);
    --brand-tint:rgba(255,255,255,.04);
    --brand-tint-strong:rgba(255,255,255,.06);
    --brand-tag-bg:rgba(10,18,48,.85);
    --on-gold:#1A1A1A;
    --accent-text:var(--gold-400);
    --hero-glow-2:rgba(42,61,143,.5);
  }
  html[data-theme="light"]{
    --surface:#EEF0F3;
    --surface-2:#F8F9FB;
    --surface-3:#E9EBEF;
    --text-primary:#181C2B;
    --text-secondary:#5B5F70;
    --text-muted:#8A8DA0;
    --border:#DEE1E7;
    --border-strong:#CBCFD8;
    --cheque-color:#F7990C;
    --img-grad-a:#E7E9EE;
    --img-grad-b:#DCDFE6;
    --input-bg:#EEF0F3;
    --shadow-card:0 10px 24px rgba(24,28,43,.07);

    --brand-bg:#FFFFFF;
    --brand-bg-2:#F6F7F9;
    --brand-bg-3:#EEF0F3;
    --brand-text:#181C2B;
    --brand-text-2:#5B5F70;
    --brand-text-3:#8A8DA0;
    --brand-border:rgba(10,20,40,.10);
    --brand-border-strong:rgba(10,20,40,.18);
    --brand-tint:rgba(10,20,40,.035);
    --brand-tint-strong:rgba(10,20,40,.06);
    --brand-tag-bg:rgba(255,255,255,.9);
    --accent-text:#F7990C;
    --hero-glow-2:rgba(247,153,12,.10);
  }
  /* legacy aliases kept so existing rules below keep working */
  :root{
    --cream:var(--surface);
    --ink:var(--text-primary);
    --gray-600:var(--text-secondary);
    --gray-400:var(--text-muted);
    --line:var(--border);
    --white:var(--surface-2);
  }
  *{box-sizing:border-box;margin:0;padding:0}
  html.admin-page .notice-bar,
  html.admin-page header.site,
  html.admin-page .search-bar,
  html.admin-page footer,
  html.admin-page .welcome-overlay,
  html.admin-page .chat-fab,
  html.admin-page .chat-panel{display:none !important}
  .ic-flat{
    width:1em;height:1em;
    display:inline-block;
    vertical-align:-0.15em;
    fill:none;
    stroke:currentColor;
    stroke-width:1.8;
    stroke-linecap:round;
    stroke-linejoin:round;
    flex-shrink:0;
  }
  .ic-flat.filled{fill:currentColor;stroke:none}
  .icon-sun-ic,.icon-moon-ic{display:none}
  html[data-theme="dark"] .icon-moon-ic{display:inline-block}
  html[data-theme="light"] .icon-sun-ic{display:inline-block}
  html{scroll-behavior:smooth}
  body{
    font-family:var(--font-body);
    background:var(--cream);
    color:var(--ink);
    line-height:1.7;
    overflow-x:hidden;
  }
  img{max-width:100%;display:block}
  a{color:inherit;text-decoration:none}
  ul{list-style:none}
  .wrap{max-width:1180px;margin:0 auto;padding:0 24px}

  /* ---------- Site notice bar ---------- */
  .notice-bar{
    background:var(--gold-500);
    color:var(--on-gold);
    font-size:13.5px;
    font-weight:600;
    padding:10px 16px;
    display:flex;
    gap:8px;
    align-items:center;
    justify-content:center;
    text-align:center;
    flex-wrap:wrap;
    position:sticky;
    top:0;
    z-index:100;
  }
  .notice-bar .ic{font-size:14px}
  .notice-demo-dropdown{position:relative;flex-shrink:0}
  .notice-demo-trigger{
    display:flex;align-items:center;gap:5px;
    background:rgba(0,0,0,.08);border:1px solid rgba(0,0,0,.18);
    color:var(--on-gold);font-family:var(--font-body);font-weight:700;font-size:13px;
    padding:6px 13px;border-radius:100px;cursor:pointer;white-space:nowrap;
  }
  .notice-demo-trigger .caret{font-size:10px;transition:.15s}
  .notice-demo-dropdown:hover .notice-demo-trigger .caret{transform:rotate(180deg)}
  .notice-demo-menu{
    position:absolute;top:100%;left:0;margin-top:10px;
    background:var(--surface-2);border:1px solid var(--border);border-radius:12px;
    box-shadow:var(--shadow-card);min-width:220px;padding:8px;
    opacity:0;visibility:hidden;transform:translateY(6px);transition:.16s;z-index:150;
  }
  .notice-demo-dropdown:hover .notice-demo-menu,
  .notice-demo-dropdown:focus-within .notice-demo-menu{opacity:1;visibility:visible;transform:translateY(0)}
  .notice-demo-menu a{
    display:block;padding:10px 12px;border-radius:8px;
    font-size:13px;font-weight:600;color:var(--text-primary);text-align:right;
  }
  .notice-demo-menu a:hover{background:var(--surface-3)}
  /* ---------- Home search line ---------- */
  .search-bar{
    background:var(--surface-2);
    border-bottom:1px solid var(--border);
    padding:12px 0;
    position:sticky;top:var(--hdr-h,83px);z-index:89;
  }
  .search-box{
    max-width:620px;margin:0 auto;
    display:flex;align-items:center;gap:10px;
    background:var(--input-bg);
    border:1px solid var(--border);
    border-radius:999px;
    padding:6px 6px 6px 20px;
    animation:searchGlow 2.6s ease-in-out infinite;
  }
  @keyframes searchGlow{
    0%,100%{box-shadow:0 0 0 0 rgba(247,153,12,0), 0 0 14px 2px rgba(247,153,12,.18)}
    50%{box-shadow:0 0 0 0 rgba(247,153,12,0), 0 0 30px 8px rgba(247,153,12,.42)}
  }
  .search-btn{
    flex-shrink:0;
    background:var(--gold-500);
    color:var(--on-gold);
    border:none;border-radius:999px;
    padding:11px 26px;
    font-family:var(--font-body);font-weight:700;font-size:13.5px;
    cursor:pointer;
  }
  .search-box .search-ic{font-size:15px;color:var(--text-muted)}
  .search-box input{
    flex:1;border:none;background:transparent;outline:none;
    font-family:var(--font-body);font-size:14px;color:var(--text-primary);
  }
  .search-box input::placeholder{color:var(--text-muted)}

  .page{display:none}
  .page.active{display:block}

  /* ---------- Site header ---------- */
  header.site{
    background:var(--brand-bg);
    border-bottom:1px solid var(--brand-border);
    position:sticky;
    top:0;
    z-index:90;
  }
  nav.main{padding:14px 24px}
  nav.main .wrap{display:flex;align-items:center;justify-content:space-between;gap:24px}
  .logo{display:flex;align-items:center;gap:10px;color:var(--brand-text);font-family:var(--font-head);font-weight:800;font-size:20px}
  .logo .mark{
    width:38px;height:38px;border-radius:10px;
    background:var(--gold-500);
    display:flex;align-items:center;justify-content:center;
    color:var(--on-gold);font-weight:900;font-size:17px;font-family:var(--font-head);
  }
  .logo small{display:block;font-family:var(--font-body);font-weight:400;font-size:11px;color:var(--brand-text-3);margin-top:1px}
  .navlinks{display:flex;gap:30px;color:var(--brand-text-2);font-size:14.5px}
  .navlinks li{display:flex;align-items:center}
  .navlinks a{position:relative;padding:6px 0;transition:.15s;display:flex;align-items:center;gap:5px;line-height:1}
  .navlinks a:hover{color:var(--accent-text)}
  .has-dropdown{position:relative}
  .dropdown-trigger{cursor:pointer}
  .dropdown-trigger .caret{font-size:11px;transition:.15s;line-height:1}
  .has-dropdown:hover .dropdown-trigger .caret{transform:rotate(180deg)}
  .dropdown-menu{
    position:absolute;top:100%;right:-14px;margin-top:14px;
    background:var(--surface-2);
    border:1px solid var(--border);
    border-radius:12px;
    box-shadow:var(--shadow-card);
    min-width:220px;
    padding:8px;
    opacity:0;visibility:hidden;transform:translateY(6px);
    transition:.16s;
    z-index:50;
  }
  .has-dropdown:hover .dropdown-menu,
  .has-dropdown:focus-within .dropdown-menu{opacity:1;visibility:visible;transform:translateY(0)}
  .dropdown-menu .dm-item{position:relative}
  .dropdown-menu a{
    display:flex;align-items:center;gap:10px;
    padding:10px 12px;border-radius:8px;
    font-size:13.5px;color:var(--text-primary);
  }
  .dropdown-menu a:hover{background:var(--surface-3);color:var(--text-primary)}
  .dropdown-menu .dm-ic{font-size:15px}
  .dm-link{justify-content:space-between}
  .dm-caret{font-size:10px;color:var(--text-muted);margin-right:auto}
  .dropdown-submenu{
    position:absolute;top:0;right:100%;margin-right:8px;
    background:var(--surface-2);
    border:1px solid var(--border);
    border-radius:12px;
    box-shadow:var(--shadow-card);
    min-width:190px;
    padding:8px;
    opacity:0;visibility:hidden;transform:translateX(6px);
    transition:.16s;
    z-index:51;
  }
  .has-submenu:hover > .dropdown-submenu,
  .has-submenu:focus-within > .dropdown-submenu{opacity:1;visibility:visible;transform:translateX(0)}
  .support-chip{
    display:flex;align-items:center;gap:9px;
    color:var(--brand-text-2);
    font-size:12px;
    padding-left:14px;margin-left:2px;
    border-left:1px solid var(--brand-border);
  }
  .support-chip .ic{color:var(--accent-text);font-size:15px}
  .support-chip b{display:block;color:var(--brand-text);font-size:13px;font-weight:700;margin-top:2px}
  .navactions{display:flex;gap:10px;align-items:center}
  .header-left-group{display:flex;align-items:center;gap:12px}
  .nav-auth-group{display:flex;gap:10px;align-items:center}
  .hamburger-btn{
    display:none;width:40px;height:40px;border-radius:9px;
    background:var(--brand-tint);border:1px solid var(--brand-border);
    color:var(--brand-text);align-items:center;justify-content:center;cursor:pointer;flex-shrink:0;
  }
  .mobile-nav-panel{
    display:none;
    flex-direction:column;
    max-height:0;overflow:hidden;
    transition:max-height .22s ease;
  }
  .mobile-nav-panel.open{max-height:520px}
  .mobile-nav-panel a{
    padding:13px 24px;font-size:13.5px;color:var(--brand-text-2);
    border-top:1px solid var(--brand-border);display:flex;align-items:center;gap:9px;
  }
  .mobile-nav-panel a:hover{color:var(--accent-text)}
  .mobile-nav-divider{height:1px;background:var(--brand-border);margin:4px 0}
  .mobile-nav-tel{color:var(--accent-text) !important;font-weight:700}
  .cart-btn{
    position:relative;
    width:40px;height:40px;border-radius:9px;
    background:var(--brand-tint);
    border:1px solid var(--brand-border);
    color:var(--brand-text);
    display:flex;align-items:center;justify-content:center;
    cursor:pointer;font-size:16px;flex-shrink:0;
  }
  .cart-badge{
    position:absolute;top:-5px;left:-5px;
    background:var(--gold-500);color:var(--on-gold);
    font-size:10px;font-weight:700;
    min-width:17px;height:17px;border-radius:50%;
    display:flex;align-items:center;justify-content:center;
    padding:0 3px;
  }
  .partner-info{display:flex;flex-direction:column;line-height:1.5;padding:0 2px;cursor:pointer;border-radius:8px;transition:.15s}
  .partner-info:hover{background:var(--brand-tint)}
  .partner-info .partner-name{font-size:13px;font-weight:700;color:var(--brand-text)}
  .partner-info .partner-phone{font-size:11px;color:var(--brand-text-3);direction:ltr;text-align:right}
  .theme-toggle{
    width:40px;height:40px;border-radius:9px;
    background:var(--brand-tint);
    border:1px solid var(--brand-border);
    color:var(--accent-text);
    display:flex;align-items:center;justify-content:center;
    cursor:pointer;font-size:16px;flex-shrink:0;
    transition:.15s;
  }
  .theme-toggle:hover{border-color:var(--accent-text)}
  .btn{
    font-family:var(--font-body);
    font-weight:600;
    font-size:14px;
    padding:10px 20px;
    border-radius:8px;
    border:1px solid transparent;
    cursor:pointer;
    display:inline-flex;
    align-items:center;
    gap:8px;
  }
  .btn-gold{background:var(--gold-500);color:var(--on-gold)}
  .btn-gold:hover{background:var(--gold-400)}
  .btn-ghost{background:transparent;color:var(--brand-text);border-color:var(--brand-border-strong)}
  .btn-ghost:hover{border-color:var(--accent-text);color:var(--accent-text)}
  .btn-navy{background:var(--brand-bg-2);color:var(--brand-text);border:1px solid var(--brand-border-strong)}
  .btn-navy:hover{background:var(--brand-bg-3)}
  .btn-outline{background:transparent;color:var(--text-primary);border-color:var(--border-strong)}
  .btn-outline:hover{background:var(--text-primary);color:var(--surface)}
  .btn-block{width:100%;justify-content:center}

  /* ---------- Hero slider ---------- */
  .hero{position:relative;background:var(--brand-bg);overflow:hidden}
  .hero::before{
    content:"";position:absolute;inset:0;
    background:
      radial-gradient(ellipse 700px 500px at 85% 20%, rgba(247,153,12,.15), transparent 60%),
      radial-gradient(ellipse 500px 500px at 10% 90%, var(--hero-glow-2), transparent 60%);
    pointer-events:none;
  }
    .hero .wrap{
    position:relative;
    display:block;
    max-width:760px;
    padding:64px 24px 76px;
  }
  .hero-slides{display:grid}
  .slide{grid-area:1/1;visibility:hidden;pointer-events:none;opacity:0;align-self:start}
  .slide.active{visibility:visible;pointer-events:auto;opacity:1;animation:fadeIn .5s ease}
  @keyframes fadeIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
  .eyebrow-chip{
    display:inline-flex;align-items:center;gap:8px;
    background:rgba(247,153,12,.12);
    border:1px solid rgba(247,153,12,.35);
    color:var(--accent-text);
    padding:7px 14px;border-radius:100px;font-size:13px;margin-bottom:22px;
  }
  .eyebrow-chip .dot{width:6px;height:6px;border-radius:50%;background:var(--gold-500)}
  .hero h1{
    font-family:var(--font-head);
    color:var(--brand-text);
    font-size:42px;
    line-height:1.35;
    font-weight:800;
    margin-bottom:20px;
    max-width:600px;
  }
  .hero h1 .hl{color:var(--accent-text)}
  .hero p.lead{color:var(--brand-text-2);font-size:16.5px;max-width:520px;margin-bottom:32px}
  .hero-actions{display:flex;gap:14px;margin-bottom:40px;flex-wrap:wrap}
  .hero-stats{display:flex;gap:36px;flex-wrap:wrap}
  .hero-stats div b{display:block;font-family:var(--font-head);font-size:26px;color:var(--brand-text);font-weight:800}
  .hero-stats div span{font-size:13px;color:var(--brand-text-3)}

  .hero-visual{position:relative;height:380px}
  .hv-panel{
    position:absolute;inset:0;
    background:linear-gradient(160deg,var(--brand-bg-3),var(--brand-bg-2));
    border-radius:20px;
    border:1px solid var(--brand-border);
    overflow:hidden;
  }
  .hv-grid{position:absolute;inset:0;display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);gap:1px;padding:22px}
  .hv-cell{
    background:var(--brand-tint);
    border-radius:14px;
    display:flex;align-items:center;justify-content:center;
    font-size:26px;
  }
  .hv-cell.gold{background:var(--gold-500);}
  .hv-tag{
    position:absolute;bottom:18px;right:18px;left:18px;
    background:var(--brand-tag-bg);
    backdrop-filter:blur(6px);
    border:1px solid var(--brand-border);
    border-radius:12px;
    padding:14px 16px;
    color:var(--brand-text);
    font-size:13.5px;
    display:flex;justify-content:space-between;align-items:center;
  }
  .hv-tag b{font-family:var(--font-head);color:var(--accent-text);font-size:15px}

  .dots{display:flex;gap:8px;position:absolute;bottom:26px;right:24px;z-index:5}
  .hero .wrap{padding-bottom:56px}
  .dots button{width:8px;height:8px;border-radius:50%;border:none;background:var(--brand-border-strong);cursor:pointer;padding:0}
  .dots button.active{background:var(--gold-500);width:22px;border-radius:5px;transition:.2s}

  /* ---------- Trust strip ---------- */
  .trust{background:var(--white);border-bottom:1px solid var(--line)}
  .trust .wrap{display:flex;justify-content:space-between;padding:22px 24px;flex-wrap:wrap;gap:18px}
  .trust .item{display:flex;align-items:center;gap:10px;font-size:14px;color:var(--gray-600)}
  .trust .item .ic{color:var(--gold-500);font-size:18px}

  /* ---------- Section shell ---------- */
  section{padding:72px 0}
  .prod-carousel-section.single-carousel{padding:36px 0}
  .sec-head{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:36px;gap:20px;flex-wrap:wrap}
  .sec-head h2{font-family:var(--font-head);font-size:28px;font-weight:800;color:var(--text-primary)}
  .sec-head p{color:var(--gray-600);font-size:14.5px;margin-top:8px;max-width:440px}
  .sec-link{font-size:14px;font-weight:600;color:var(--text-primary);border-bottom:2px solid var(--gold-500);padding-bottom:3px;white-space:nowrap}

  /* categories */
  .cat-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:14px}
  .cat-card{
    background:var(--white);
    border:1px solid var(--line);
    border-radius:14px;
    padding:22px 14px;
    text-align:center;
    transition:.18s;
    cursor:pointer;
  }
  .cat-card:hover{border-color:var(--gold-500);transform:translateY(-3px);box-shadow:0 10px 24px rgba(10,18,48,.08)}
  .cat-card .ic{font-size:28px;margin-bottom:10px}
  .cat-card .name{font-size:13.5px;font-weight:600;color:var(--text-primary)}
  .cat-card .count{font-size:11.5px;color:var(--gray-400);margin-top:4px}

  /* value props */
  .values{background:var(--brand-bg);color:var(--brand-text)}
  .values .sec-head h2, .values .sec-head p{color:var(--brand-text)}
  .values .sec-head p{color:var(--brand-text-2)}
  .val-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
  .val-card{
    background:var(--brand-tint);
    border:1px solid var(--brand-border);
    border-radius:16px;
    padding:26px 22px;
  }
  .val-card .num{font-family:var(--font-head);color:var(--accent-text);font-size:15px;font-weight:800;margin-bottom:16px}
  .val-card h3{font-family:var(--font-head);font-size:17px;font-weight:700;margin-bottom:10px}
  .val-card p{font-size:13.5px;color:var(--brand-text-2)}

  /* steps */
  .steps{display:flex;gap:0;counter-reset:step}
  .step{flex:1;position:relative;padding:0 18px}
  .step:first-child{padding-right:0}
  .step:last-child{padding-left:0}
  .step-num{
    width:40px;height:40px;border-radius:50%;
    background:var(--brand-bg);color:var(--accent-text);
  }
  .step h4{font-family:var(--font-head);font-size:15.5px;font-weight:700;margin-bottom:8px;color:var(--text-primary)}
  .step p{font-size:13.5px;color:var(--gray-600)}
  .step-line{position:absolute;top:20px;right:calc(-50% + 20px);width:calc(100% - 40px);height:1px;background:var(--line)}
  .step:last-child .step-line{display:none}

  /* product teaser */
  .prod-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
  /* product carousel */
  .carousel-tabs{display:flex;gap:10px;margin-bottom:24px;overflow-x:auto;padding-bottom:4px}
  .ctab{
    flex-shrink:0;
    padding:9px 18px;border-radius:999px;
    border:1px solid var(--border);
    background:var(--surface-2);
    color:var(--text-secondary);
    font-family:var(--font-body);font-size:13px;font-weight:600;
    white-space:nowrap;cursor:pointer;
  }
  .ctab.active{background:var(--gold-500);color:var(--on-gold);border-color:var(--gold-500)}
  .carousel-wrap{display:flex;align-items:center;gap:0;position:relative}
  .car-arrow{position:absolute;top:38%;z-index:3;width:34px!important;height:34px!important;opacity:.92;box-shadow:0 2px 8px rgba(0,0,0,.35)}
  .car-prev{right:-6px}.car-next{left:-6px}
  @media (max-width:980px){.car-arrow{display:none!important}}
  .car-arrow{
    flex-shrink:0;width:40px;height:40px;border-radius:50%;
    border:1px solid var(--border);background:var(--surface-2);color:var(--text-primary);
    cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:16px;
  }
  .car-arrow:hover{border-color:var(--gold-500);color:var(--gold-500)}
  .carousel-track{flex:1;overflow:hidden;min-width:0;width:100%}
  .car-group{display:none;gap:16px;align-items:stretch;padding-bottom:6px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth}
  .car-group.active{display:flex}
  .car-group .prod-card{flex:0 0 calc((100% - 4*16px)/5);scroll-snap-align:start}
  .prod-card{
    background:var(--white);
    border:1px solid var(--line);
    border-radius:16px;
    overflow:hidden;
  }
  .prod-img{
    aspect-ratio:1/1;
    width:100%;
    background:linear-gradient(150deg,var(--img-grad-a),var(--img-grad-b));
    display:flex;align-items:center;justify-content:center;
    font-size:38px;
    position:relative;
  }
  .prod-badge{
    position:absolute;top:10px;right:10px;
    background:var(--brand-bg);color:var(--accent-text);
    font-size:10.5px;padding:4px 9px;border-radius:100px;font-weight:600;
  }
  .prod-card,.pc-card{display:flex;flex-direction:column;height:auto}
  .prod-body,.pc-body{flex:1;display:flex;flex-direction:column}
  .prod-body .pc-prices,.pc-body .pc-prices{margin-top:auto}
  .prod-img,.pc-img{position:relative}
  .oos-badge{position:absolute;top:10px;left:10px;z-index:2;background:#D93025;color:#fff;font-size:11px;font-weight:700;padding:4px 10px;border-radius:6px}

  @media (max-width:760px){
    .admin-chat-shell{height:calc(100vh - 170px);min-height:420px;grid-template-columns:1fr;position:relative}
    .admin-chat-list{display:block;overflow-y:auto;overflow-x:hidden;border-bottom:none}
    .admin-chat-item{flex-direction:row;text-align:right;min-width:0;border-left:none;border-bottom:1px solid var(--border);padding:14px 16px}
    .admin-chat-item.active{border-bottom:1px solid var(--border);border-right:none}
    .admin-chat-main{display:none;height:100%}
    .admin-chat-messages{height:auto}
    .admin-chat-shell.chat-open .admin-chat-list{display:none}
    .admin-chat-shell.chat-open .admin-chat-main{display:flex}
    .admin-chat-back{display:flex!important}
    .admin-chat-msg{max-width:85%}
  }
  .admin-chat-back{display:none;width:34px;height:34px;flex-shrink:0;border-radius:50%;border:1px solid var(--border);background:var(--surface-3);color:var(--text-primary);align-items:center;justify-content:center;cursor:pointer}
  .cust-row{flex-wrap:nowrap;justify-content:space-between}
  .cust-top{display:flex;align-items:center;gap:14px;flex:1;min-width:0}
  .cust-bottom{display:flex;align-items:center;gap:12px;flex-shrink:0}
  .cust-actions{flex-wrap:wrap}
  .cust-detail-btn{color:var(--gold-500);border-color:var(--gold-500)}
  .cust-toggle-wrap{flex-direction:row;gap:8px}
  .cust-toggle-label{font-size:11.5px;font-weight:600;color:var(--text-muted);min-width:44px}
  .cust-toggle-label.on{color:#1F7A4D}
  .cust-info{min-width:0}
  .cust-meta{flex-direction:row}
  @media (max-width:760px){
    .cust-row{flex-direction:column;align-items:stretch;gap:12px;padding:14px}
    .cust-top{align-items:flex-start}
    .cust-info{flex:1}
    .cust-meta{flex-direction:column;gap:3px;font-size:11.5px}
    .cust-toggle-wrap{flex-direction:column;align-items:center;gap:4px}
    .cust-toggle-wrap .toggle-switch{width:48px;height:27px}
    .cust-toggle-wrap .toggle-switch .knob{width:21px;height:21px}
    .cust-toggle-wrap .toggle-switch.on .knob{right:23px}
    .cust-bottom{flex-direction:column;align-items:stretch;border-top:1px solid var(--border);padding-top:12px}
    .cust-credit-badge{width:100%;justify-content:center;padding:10px 14px}
    .cust-credit-menu{right:0;left:0;min-width:0}
    .cust-actions{width:100%}
    .cust-action-btn{flex:1;justify-content:center;padding:11px 8px}
    .cust-detail-btn{flex:1 1 100%}
  }
  .prod-body{padding:16px}
  .prod-body .cat{font-size:11.5px;color:var(--gray-400);margin-bottom:4px}
  .prod-body .name{font-size:14px;font-weight:600;color:var(--text-primary);margin-bottom:10px}
  .prod-img.ptab,.prod-body .name.ptab,.pc-img.ptab,.pc-body .name.ptab{cursor:pointer}
  .prod-body .name.ptab:hover,.pc-body .name.ptab:hover{color:var(--gold-500);text-decoration:underline}
  .price-lock{
    display:flex;align-items:center;gap:8px;
    font-size:12.5px;color:var(--gray-400);
    background:var(--cream);border:1px dashed var(--line);
    border-radius:8px;padding:9px 10px;
  }
  .price-lock .ic{color:var(--gold-500)}

  /* CTA band */
  .cta-band{
    background:linear-gradient(120deg,var(--brand-bg-2),var(--brand-bg));
    border-radius:22px;
    padding:52px 48px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:30px;
    position:relative;
    overflow:hidden;
  }
  .cta-band::after{
    content:"";position:absolute;left:-40px;top:-40px;width:220px;height:220px;
    background:radial-gradient(circle,rgba(247,153,12,.18),transparent 70%);
  }
  .cta-band h3{font-family:var(--font-head);color:var(--brand-text);font-size:24px;font-weight:800;margin-bottom:10px;position:relative}
  .cta-band p{color:var(--brand-text-2);font-size:14.5px;position:relative}
  .cta-band .actions{display:flex;gap:12px;position:relative;flex-shrink:0}

  /* footer */
  /* brand strip carousel — empty 512x512 upload slots, admin-managed */
  .brand-strip-section{padding:36px 0 56px}
  .brand-strip-wrap{overflow:hidden;position:relative;-webkit-mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent);mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent)}
  .brand-strip-track{
    display:flex;align-items:center;gap:16px;
    width:max-content;
    animation:brandScroll 26s linear infinite;
  }
  .brand-strip-wrap:hover .brand-strip-track{animation-play-state:paused}
  @keyframes brandScroll{
    from{transform:translateX(-50%)}
    to{transform:translateX(0)}
  }
  .brand-slot{
    width:90px;height:90px;flex-shrink:0;
    border:1.5px dashed var(--border);border-radius:14px;
    background:var(--surface-2);
    display:flex;align-items:center;justify-content:center;
    color:var(--text-muted);opacity:.55;
  }
  .brand-slot .ic-flat{width:26px;height:26px}
  footer{background:var(--brand-bg);color:var(--brand-text-2);padding:60px 0 0;border-top:1px solid var(--brand-border)}
  .foot-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:40px;padding-bottom:44px;border-bottom:1px solid var(--brand-border)}
  .foot-grid h5{font-family:var(--font-head);color:var(--brand-text);font-size:14.5px;font-weight:700;margin-bottom:18px}
  .foot-grid ul li{margin-bottom:11px;font-size:13.5px}
  .foot-grid ul li a:hover{color:var(--accent-text)}
  .foot-bottom{display:flex;justify-content:space-between;padding:20px 0;font-size:12.5px;color:var(--brand-text-3);flex-wrap:wrap;gap:10px}

  .foot-currency{
    display:flex;align-items:center;gap:20px;flex-wrap:wrap;
    padding:22px 0;border-top:1px solid var(--brand-border);
  }
  .currency-item{display:flex;align-items:center;gap:8px}
  .currency-label{font-size:12px;color:var(--brand-text-3)}
  .currency-value{
    font-family:var(--font-head);font-weight:700;font-size:13px;color:var(--brand-text);
    background:var(--brand-tint);border:1px solid var(--brand-border);
    padding:5px 12px;border-radius:100px;direction:ltr;display:inline-block;
  }
  .currency-updated{font-size:10.5px;color:var(--brand-text-3);margin-right:auto}

  .foot-badges{
    display:flex;flex-wrap:wrap;gap:28px;
    padding:20px 0;border-top:1px solid var(--brand-border);
  }
  .foot-badges-group{display:flex;align-items:center;gap:10px}
  .foot-badges-label{font-size:11.5px;color:var(--brand-text-3);white-space:nowrap}
  .badge-slot{
    width:52px;height:52px;flex-shrink:0;
    border:1.5px dashed var(--brand-border);border-radius:10px;
    background:var(--brand-tint);color:var(--brand-text-3);
    display:flex;align-items:center;justify-content:center;
  }
  .badge-slot .ic-flat{width:20px;height:20px}


  /* ---------- Login/Register page ---------- */
  .auth-shell{
    min-height:640px;
    display:grid;
    grid-template-columns:1fr 1fr;
    background:var(--white);
  }
  .auth-visual{
    background:var(--brand-bg);
    color:var(--brand-text);
    padding:60px 50px;
    position:relative;
    overflow:hidden;
    display:flex;flex-direction:column;justify-content:space-between;
  }
  .auth-visual::before{
    content:"";position:absolute;inset:0;
    background:radial-gradient(ellipse 500px 400px at 80% 10%,rgba(247,153,12,.15),transparent 60%);
  }
  .auth-visual .top{position:relative}
  .auth-visual h2{font-family:var(--font-head);font-size:30px;font-weight:800;line-height:1.5;margin:24px 0 16px;max-width:380px}
  .auth-visual p{color:var(--brand-text-2);font-size:14.5px;max-width:360px}
  .auth-perks{position:relative;display:flex;flex-direction:column;gap:16px}
  .auth-accessories{display:flex;gap:12px;position:relative;margin-top:26px}
  .acc-ic{
    width:46px;height:46px;border-radius:12px;
    background:var(--brand-tint);
    border:1px solid var(--brand-border);
    display:flex;align-items:center;justify-content:center;
    font-size:22px;
    color:var(--accent-text);
  }
  .auth-perks .perk{display:flex;gap:12px;align-items:flex-start;font-size:13.5px;color:var(--brand-text-2)}
  .auth-perks .perk .ic{color:var(--accent-text);font-size:16px;margin-top:1px}
  .auth-form-wrap{display:flex;align-items:center;justify-content:center;padding:50px}
  .auth-form{width:100%;max-width:380px}
  .auth-tabs{display:flex;gap:6px;background:var(--cream);padding:5px;border-radius:10px;margin-bottom:32px}
  .auth-tabs button{
    flex:1;padding:10px;border:none;border-radius:7px;background:transparent;
    font-family:var(--font-body);font-weight:600;font-size:13.5px;color:var(--gray-600);cursor:pointer;
  }
  .auth-tabs button.active{background:var(--white);color:var(--text-primary);box-shadow:0 2px 6px rgba(10,18,48,.08)}
  .field{margin-bottom:18px}
  .field label{display:block;font-size:13px;font-weight:600;color:var(--text-primary);margin-bottom:8px}
  .field-hint{display:block;font-size:11.5px;color:var(--text-muted);margin-top:7px}
  /* ---------- Welcome / first-visit popup ---------- */
  .welcome-overlay{
    position:fixed;inset:0;z-index:200;
    background:rgba(8,13,36,.62);
    backdrop-filter:blur(3px);
    display:flex;align-items:center;justify-content:center;
    padding:20px;
    opacity:0;visibility:hidden;
    transition:.2s;
  }
  .welcome-overlay.show{opacity:1;visibility:visible}
  .welcome-modal{
    background:var(--surface-2);
    border:1px solid var(--border);
    border-radius:20px;
    max-width:420px;width:100%;
    padding:36px 32px 30px;
    text-align:center;
    position:relative;
    box-shadow:0 30px 60px rgba(0,0,0,.35);
    transform:translateY(14px) scale(.97);
    transition:.22s;
  }
  .welcome-overlay.show .welcome-modal{transform:translateY(0) scale(1)}
  .welcome-close{
    position:absolute;top:14px;left:14px;
    width:30px;height:30px;border-radius:50%;
    background:var(--surface-3);border:1px solid var(--border);
    color:var(--text-secondary);
    cursor:pointer;font-size:13px;
  }
  .welcome-badge{
    width:56px;height:56px;border-radius:16px;
    background:rgba(247,153,12,.14);
    border:1px solid rgba(247,153,12,.35);
    display:flex;align-items:center;justify-content:center;
    font-size:24px;margin:0 auto 20px;
    color:var(--accent-text);
  }
  .welcome-modal h3{font-family:var(--font-head);font-size:19px;font-weight:800;color:var(--text-primary);margin-bottom:12px;line-height:1.6}
  .welcome-modal p{font-size:13.5px;color:var(--text-secondary);line-height:1.9;margin-bottom:26px}
  .welcome-actions{display:flex;flex-direction:column;gap:10px}
  .welcome-later{
    font-family:var(--font-body);background:transparent;border:none;
    color:var(--text-muted);font-size:12.5px;cursor:pointer;padding:6px;
  }
  .welcome-later:hover{color:var(--text-secondary)}

  .otp-toggle{display:flex;gap:6px;background:var(--surface);padding:5px;border-radius:10px;margin-bottom:22px}
  .otp-toggle button{
    flex:1;padding:9px;border:none;border-radius:7px;background:transparent;
    font-family:var(--font-body);font-weight:600;font-size:12.5px;color:var(--text-secondary);cursor:pointer;
  }
  .otp-toggle button.active{background:var(--surface-2);color:var(--text-primary);box-shadow:0 2px 6px rgba(10,18,48,.08)}
  .otp-meta{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:var(--text-muted)}
  .otp-meta #otpTimer{color:var(--cheque-color);font-weight:600}
  .otp-meta button{
    font-family:var(--font-body);background:transparent;border:none;color:var(--gold-500);
    font-weight:600;font-size:12px;cursor:pointer;padding:0;
  }
  .otp-meta button:disabled{color:var(--text-muted);cursor:not-allowed}
  .field input,.field select,.field textarea{
    width:100%;padding:12px 14px;border:1px solid var(--line);border-radius:9px;
    font-family:var(--font-body);font-size:14px;background:var(--input-bg);
    color:var(--text-primary);
  }
  .field textarea{resize:vertical;line-height:1.8}
  .field input::placeholder,.field textarea::placeholder{color:var(--text-muted)}
  .field input:focus,.field select:focus,.field textarea:focus{outline:2px solid var(--gold-400);outline-offset:1px;background:var(--white);color:var(--text-primary)}
  .field-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}
  .auth-note{font-size:12.5px;color:var(--gray-400);text-align:center;margin-top:18px}
  .auth-note a{color:var(--text-primary);font-weight:600;border-bottom:1px solid var(--gold-500)}

  /* ---------- Catalog (locked) page ---------- */
  .catalog-shell{padding:36px 0 80px}
  /* product detail page */
  .product-shell{padding:28px 0 80px}
  .pd-topbar{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px;margin-bottom:22px}
  .breadcrumb{display:flex;gap:8px;align-items:center;font-size:12.5px;color:var(--text-muted);flex-wrap:wrap}
  .breadcrumb a{color:var(--text-secondary)}
  .breadcrumb a:hover{color:var(--gold-500)}
  .pd-shipchip{
    display:flex;align-items:center;gap:7px;
    background:var(--surface-2);border:1px solid var(--border);
    border-radius:100px;padding:7px 14px;
    font-size:12px;font-weight:600;color:var(--text-secondary);
  }
  .pd-shipchip .ic-flat{color:var(--gold-500)}

  .pd-grid{display:grid;grid-template-columns:1.05fr 1.3fr 0.85fr;gap:28px;align-items:start}

  .product-gallery-main{
    aspect-ratio:1/1;width:100%;
    border-radius:16px;
    overflow:hidden;
    background:linear-gradient(150deg,var(--img-grad-a),var(--img-grad-b));
    display:flex;align-items:center;justify-content:center;
    position:relative;
  }
  .product-gallery-main .ic-flat{width:120px;height:120px;color:var(--text-muted)}
  .product-gallery-main .prod-badge{position:absolute;top:14px;right:14px}
  .pd-gallery-actions{position:absolute;top:14px;left:14px;display:flex;flex-direction:column;gap:8px}
  .pd-icon-btn{
    width:34px;height:34px;border-radius:50%;
    background:var(--surface-2);border:1px solid var(--border);
    color:var(--text-secondary);cursor:pointer;
    display:flex;align-items:center;justify-content:center;font-size:15px;
  }
  .pd-icon-btn .ic-flat{width:16px;height:16px}
  .pd-icon-btn:hover{color:var(--gold-500);border-color:var(--gold-500)}
  .product-thumbs{display:flex;gap:10px;margin-top:14px}
  .product-thumb{
    width:60px;height:60px;border-radius:10px;
    background:linear-gradient(150deg,var(--img-grad-a),var(--img-grad-b));
    border:2px solid transparent;
    display:flex;align-items:center;justify-content:center;
    cursor:pointer;
  }
  .product-thumb .ic-flat{width:24px;height:24px;color:var(--text-muted)}
  .product-thumb.active{border-color:var(--gold-500)}

  .pd-details .cat{font-size:12.5px;color:var(--text-muted);margin-bottom:8px}
  .pd-details h1{font-family:var(--font-head);font-size:21px;font-weight:800;color:var(--text-primary);margin-bottom:8px;line-height:1.6}
  .pd-subtitle{font-size:12.5px;color:var(--text-muted);margin-bottom:18px;direction:ltr;text-align:right}
  .product-meta{display:flex;flex-direction:column;gap:8px;font-size:12.5px;color:var(--text-muted);margin-bottom:22px;padding-bottom:18px;border-bottom:1px solid var(--border)}
  .product-meta a{color:var(--text-secondary);border-bottom:1px solid var(--gold-500)}
  .pd-features-title{font-family:var(--font-head);font-size:14px;font-weight:700;color:var(--text-primary);margin-bottom:12px}
  .pd-features{list-style:none;display:flex;flex-direction:column;gap:9px;margin-bottom:22px}
  .pd-features li{position:relative;padding-right:16px;font-size:13px;color:var(--text-secondary)}
  .pd-features li::before{content:"";position:absolute;right:0;top:8px;width:5px;height:5px;border-radius:50%;background:var(--gold-500)}
  .pd-banner{
    background:var(--surface-2);border:1px solid var(--border);border-radius:12px;
    padding:14px 16px;font-size:12.5px;color:var(--text-secondary);
  }
  .pd-banner span{display:flex;align-items:center;gap:9px}
  .pd-banner .ic-flat{color:var(--gold-500);flex-shrink:0}

  .pd-buybox{
    background:var(--surface-2);border:1px solid var(--border);border-radius:16px;
    padding:22px;position:sticky;top:150px;
  }
  .pd-buybox-row{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}
  .pd-buybox-label{font-size:13px;font-weight:600;color:var(--text-secondary)}
  .color-swatches{display:flex;gap:8px}
  .swatch{
    width:26px;height:26px;border-radius:50%;border:2px solid transparent;cursor:pointer;
    display:flex;align-items:center;justify-content:center;color:#fff;font-size:12px;
    box-shadow:0 0 0 1px var(--border);
  }
  .swatch.active{border-color:var(--gold-500);box-shadow:0 0 0 1px var(--gold-500)}
  .swatch .ic-flat{width:12px;height:12px;stroke:#fff}
  .pd-divider{height:1px;background:var(--border);margin-bottom:18px}
  .pd-warranty{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--text-muted);margin-bottom:18px}
  .pd-warranty .ic-flat{color:var(--gold-500)}
  .pd-prices{display:flex;flex-direction:column;gap:8px;margin-bottom:18px}
  .pd-price-row{display:flex;justify-content:space-between;align-items:baseline;font-size:14px}
  .pd-price-row .lbl{color:var(--text-muted);font-size:12.5px}
  .pd-price-row .val{font-family:var(--font-head);font-weight:800;color:var(--text-primary);font-size:17px}
  .pd-price-row.cheque .val{color:var(--cheque-color);font-size:14px}
  .product-add-cart{width:100%;justify-content:center;gap:8px;font-size:13.5px;font-weight:700;padding:14px}

  .pd-trust-row{display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap;padding:22px 0;margin:32px 0;border-top:1px solid var(--border);border-bottom:1px solid var(--border)}
  .pd-trust-item{display:flex;align-items:center;gap:9px;font-size:12.5px;color:var(--text-secondary)}
  .pd-trust-item .ic-flat{color:var(--gold-500);width:19px;height:19px}

  .product-desc{margin-bottom:16px}
  .product-desc p{font-size:13.5px;color:var(--text-secondary);line-height:2}
  .product-specs table{font-size:13px}
  .product-specs td{color:var(--text-secondary)}
  .product-specs td:first-child{color:var(--text-muted);width:40%}

  /* installment calculator */
  .calc-sub{text-align:center;font-size:13px;color:var(--text-muted);margin:10px 0 28px}
  .calc-card{
    background:var(--surface-2);border:1px solid var(--border);border-radius:16px;
    padding:26px 24px;
  }
  .calc-range-row{
    display:flex;align-items:center;gap:14px;
    background:var(--input-bg);border:1px solid var(--border);border-radius:10px;
    padding:10px 14px;
  }
  .calc-range-row input[type="range"]{flex:1;accent-color:var(--gold-500)}
  .calc-range-val{
    background:rgba(224,146,71,.14);color:var(--cheque-color);
    padding:6px 12px;border-radius:8px;font-weight:700;font-size:13px;
    min-width:60px;text-align:center;flex-shrink:0;
  }
  .calc-result-box{
    margin-top:10px;background:rgba(224,146,71,.08);
    border:2px dashed rgba(224,146,71,.4);border-radius:14px;
    padding:24px 20px;text-align:center;
  }
  .calc-result-title{font-size:13px;color:var(--text-secondary);font-weight:600;margin-bottom:10px}
  .calc-result-value{font-family:var(--font-head);font-size:28px;font-weight:800;color:var(--cheque-color)}
  .calc-currency{font-size:13px;font-weight:400;color:var(--text-muted)}
  .calc-total-row{
    font-size:12.5px;color:var(--text-muted);margin-top:14px;
    padding-top:14px;border-top:1px solid rgba(224,146,71,.25);
  }
  .calc-total-row b{color:var(--text-primary);font-family:var(--font-head)}

  /* about page */
  .about-hero{background:var(--brand-bg)}
  .about-hero .wrap{padding:64px 24px}
  .about-hero h1{font-family:var(--font-head);color:var(--brand-text);font-size:32px;font-weight:800;margin:18px 0 14px;max-width:640px;line-height:1.5}
  .about-hero .hl{color:var(--accent-text)}
  .about-hero .lead{color:var(--brand-text-2);font-size:15px;max-width:600px}
  .about-grid{grid-template-columns:repeat(4,1fr)}

  /* FAQ accordion */
  .faq-list{display:flex;flex-direction:column;gap:12px}
  .faq-item{
    background:var(--surface-2);border:1px solid var(--border);border-radius:14px;
    overflow:hidden;transition:border-color .15s;
  }
  .faq-item.open{border-color:var(--gold-500)}
  .faq-question{
    width:100%;display:flex;align-items:center;gap:14px;
    padding:18px 20px;background:none;border:none;cursor:pointer;text-align:right;
    font-family:var(--font-body);
  }
  .faq-num{
    font-family:var(--font-head);font-weight:800;font-size:13px;color:var(--gold-500);
    flex-shrink:0;width:26px;
  }
  .faq-q-text{flex:1;font-size:14px;font-weight:600;color:var(--text-primary)}
  .faq-chevron{flex-shrink:0;color:var(--text-muted);transition:transform .2s}
  .faq-item.open .faq-chevron{transform:rotate(-90deg);color:var(--gold-500)}
  .faq-answer{
    max-height:0;overflow:hidden;transition:max-height .25s ease;
  }
  .faq-item.open .faq-answer{max-height:260px}
  .faq-answer p{
    padding:0 20px 20px 56px;font-size:13px;color:var(--text-secondary);line-height:1.9;
  }

  /* contact page */
  .contact-shell{padding:32px 0 80px}
  .contact-grid{display:grid;grid-template-columns:280px 1fr;gap:24px;align-items:start}
  .contact-info-list{display:flex;flex-direction:column;gap:14px}
  .contact-info-card{
    display:flex;align-items:center;gap:14px;
    background:var(--surface-2);border:1px solid var(--border);border-radius:14px;
    padding:16px;
  }
  .contact-info-ic{
    width:42px;height:42px;border-radius:10px;flex-shrink:0;
    background:rgba(224,146,71,.12);color:var(--cheque-color);
    display:flex;align-items:center;justify-content:center;
  }
  .contact-info-title{font-size:11.5px;color:var(--text-muted);margin-bottom:4px}
  .contact-info-val{font-size:13px;font-weight:700;color:var(--text-primary)}
  .contact-form-box{margin-bottom:0}

  @media (max-width:980px){
    .about-grid{grid-template-columns:repeat(2,1fr)}
    .contact-grid{grid-template-columns:1fr}
  }

  /* cart page */
  .cart-shell{padding:32px 24px 80px}
  @media (max-width:760px){.cart-shell{padding:24px 16px 72px}}
  .cart-title{font-family:var(--font-head);font-size:22px;font-weight:800;color:var(--text-primary);margin-bottom:24px}
  .cart-grid{display:grid;grid-template-columns:1fr 340px;gap:28px;align-items:start}
  .sm-modes{display:flex;flex-direction:column;gap:6px;margin:6px 0}
  .sm-mode{display:flex;align-items:center;justify-content:space-between;gap:8px;transition:.15s}
  .sm-mode.dim,.sm-mode.disabled{filter:blur(2px);opacity:.45;pointer-events:none}
  .sm-lbl{font-size:12px;font-weight:800;color:var(--text-secondary);line-height:1.35}
  .sm-lbl b{display:block;font-size:13px;color:var(--text-primary)}
  .sm-mode.cheque .sm-lbl b{color:var(--cheque-color)}
  .sm-modes.sm-flash{outline:2px solid var(--gold-500);outline-offset:3px;border-radius:8px}
  .cart-items{display:flex;flex-direction:column;gap:8px}
  .cart-item{
    display:flex;align-items:center;gap:10px;flex-wrap:wrap;
    background:var(--surface-2);border:1px solid var(--border);border-radius:12px;
    padding:8px 10px;
  }
  .cart-item-img{
    width:42px;height:42px;border-radius:8px;flex-shrink:0;
    background:linear-gradient(150deg,var(--img-grad-a),var(--img-grad-b));
    display:flex;align-items:center;justify-content:center;
  }
  .cart-item-img .ic-flat{width:20px;height:20px;color:var(--text-muted)}
  .cart-item-info{flex:1;min-width:0}
  .cart-item-info .cat{font-size:10.5px;color:var(--text-muted);margin-bottom:1px}
  .cart-item-info .name{font-size:13.5px;font-weight:600;color:var(--text-primary);margin-bottom:2px}
  .cart-item-info .unit-price{font-size:12px;color:var(--text-muted)}
  .cart-item-freeship{display:inline-flex;align-items:center;gap:5px;font-size:11px;color:var(--cheque-color);margin-top:6px}
  .cart-item-step-note{font-size:11px;color:var(--text-muted);margin-top:6px}
  .cart-item-right{display:flex;flex-direction:row;align-items:center;gap:8px;flex-shrink:0;flex-wrap:wrap}
  .cart-item-line-total{font-family:var(--font-head);font-weight:800;font-size:14px;color:var(--text-primary)}
  .cart-item-line-box{
    display:flex;flex-direction:column;gap:6px;
    background:var(--surface-3);border:1px solid var(--border);border-radius:10px;
    padding:5px 8px;min-width:0;
  }
  .cart-item-line-row{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:11px}
  .cart-item-line-row .lbl{color:var(--text-muted)}
  .cart-item-line-row .val{font-family:var(--font-head);font-weight:800;font-size:13px;color:var(--text-primary)}
  .cart-item-line-row.cheque .val{color:var(--cheque-color)}
  .cart-item-remove{color:#c62828;font-size:12px;font-weight:700;cursor:pointer;background:rgba(229,57,53,.1);border:1px solid #e53935;border-radius:7px;padding:3px 10px;font-family:var(--font-body)}
  .cart-item-move{margin-top:4px;padding:3px 9px;border-radius:7px;border:1px dashed var(--gold-500);background:transparent;color:var(--gold-500);font-family:var(--font-body);font-size:11px;font-weight:600;cursor:pointer}
  .cart-item-remove:hover{background:#e53935;color:#fff}
  .cart-empty{text-align:center;padding:60px 20px;color:var(--text-muted);font-size:13.5px}

  .cart-summary{
    background:var(--surface-2);border:1px solid var(--border);border-radius:16px;
    padding:22px;position:sticky;top:150px;
  }
  .freeship-banner{
    border-radius:10px;padding:12px 14px;font-size:12px;
    margin-bottom:18px;display:flex;align-items:center;gap:8px;
  }
  .freeship-banner.active{background:rgba(var(--rgb-cheque,138,75,18),.12);color:var(--cheque-color);border:1px solid rgba(224,146,71,.3)}
  .freeship-banner.pending{background:var(--surface-3);color:var(--text-secondary);border:1px solid var(--border)}
  .cart-summary-row{display:flex;justify-content:space-between;font-size:13px;color:var(--text-secondary);margin-bottom:12px}
  .cart-total-row{font-size:14.5px;font-weight:800;color:var(--text-primary)}
  .cart-total-row span:last-child{font-family:var(--font-head)}
  .cart-total-row.cheque span:last-child{color:var(--cheque-color)}
  .cart-shipping-free{color:var(--cheque-color);font-weight:700}
  .cart-checkout-note{font-size:11.5px;color:var(--text-muted);margin:16px 0 10px}
  .cart-pay-btn{margin-bottom:10px;font-size:13px}
  .cart-checkout-result{margin-top:6px}
  .cart-checkout-box{
    border-radius:12px;padding:16px;font-size:12.5px;line-height:1.9;
  }
  .cart-checkout-box.need-auth{background:var(--surface-3);color:var(--text-secondary);border:1px solid var(--border)}
  .cart-checkout-box.success{background:rgba(224,146,71,.1);color:var(--cheque-color);border:1px solid rgba(224,146,71,.3)}
  .cart-checkout-box a{display:inline-block;margin-top:10px}

  /* per-item cash/cheque price row */
  .cart-item-prices{display:flex;gap:14px;font-size:11.5px;color:var(--text-muted);margin-top:2px;flex-wrap:wrap}
  .cart-item-prices b{color:var(--text-secondary);font-weight:600}
  .cart-item-prices .cheque b{color:var(--cheque-color)}

  /* admin shipping settings */
  .admin-search-box{
    display:flex;align-items:center;gap:10px;
    background:var(--input-bg);border:1px solid var(--border);border-radius:10px;
    padding:10px 14px;margin-bottom:18px;position:relative;
  }
  .admin-search-box .ic-flat{color:var(--text-muted);flex-shrink:0}
  .admin-search-box input{
    flex:1;border:none;background:transparent;outline:none;
    font-family:var(--font-body);font-size:13.5px;color:var(--text-primary);
  }
  .admin-search-box input::placeholder{color:var(--text-muted)}
  .admin-search-spinner{
    width:15px;height:15px;border-radius:50%;flex-shrink:0;
    border:2px solid var(--border);border-top-color:var(--gold-500);
    opacity:0;transition:opacity .15s;
    animation:adminSpin .6s linear infinite;
  }
  .admin-search-spinner.show{opacity:1}
  @keyframes adminSpin{to{transform:rotate(360deg)}}
  .admin-ship-table{width:100%;font-size:13px}
  #adminShipTableWrap{overflow-x:auto}
  .admin-ship-table th{text-align:right;color:var(--text-muted);font-weight:600;padding:10px;border-bottom:1px solid var(--border);font-size:12px}
  .admin-ship-table td{padding:10px;border-bottom:1px solid var(--border);color:var(--text-secondary)}
  .admin-ship-table input{
    width:90px;padding:8px 10px;border:1px solid var(--border);border-radius:8px;
    background:var(--input-bg);color:var(--text-primary);font-family:var(--font-body);font-size:13px;text-align:center;
  }

  /* internal accounting sync page */
  .sync-header{display:flex;justify-content:space-between;align-items:flex-start;flex-wrap:wrap;gap:16px}
  .sync-subtitle{font-size:12.5px;color:var(--text-muted)}
  .sync-header-actions{text-align:left}
  .sync-btn .ic-flat{transition:transform .3s}
  .sync-btn.syncing .ic-flat{animation:syncSpin .8s linear infinite}
  @keyframes syncSpin{to{transform:rotate(360deg)}}
  .sync-status{font-size:11.5px;color:var(--text-muted);margin-top:8px}
  .sync-meta{font-size:11.5px;color:var(--text-muted);margin:14px 0}
  .sync-table-wrap{overflow-x:auto}
  .sync-grid{min-width:980px}
  .sync-row{
    display:grid;
    grid-template-columns: 120px 150px 1fr 110px 150px 150px;
    align-items:center;
    column-gap:12px;
  }
  .sync-row.sync-head{
    color:var(--text-muted);font-weight:600;font-size:12px;
    padding:10px 14px;border-bottom:1px solid var(--border);
  }
  #syncTableBody .sync-row{
    padding:14px;border-bottom:1px solid var(--border);
  }
  #syncTableBody .sync-row:last-child{border-bottom:none}
  #syncTableBody .sync-row:hover{background:var(--surface-3)}
  .sync-cell{overflow:hidden;text-overflow:ellipsis}
  .sync-empty-row{grid-template-columns:1fr !important;text-align:center;color:var(--text-muted);padding:30px !important}
  .sync-code{font-family:monospace;direction:ltr;text-align:left;display:block;overflow:hidden;text-overflow:ellipsis}
  .sync-name{color:var(--text-primary);font-weight:600;white-space:normal}
  .sync-cat{font-size:11px;color:var(--text-muted);margin-top:3px;white-space:normal}
  .stock-ok{color:#1F7A4D;font-weight:600}
  .stock-low{color:var(--cheque-color);font-weight:600}
  .stock-out{color:#C0392B;font-weight:600}

  /* floating support chat */
  .chat-fab{
    position:fixed;bottom:24px;left:24px;z-index:300;
    width:56px;height:56px;border-radius:50%;
    background:var(--gold-500);color:var(--on-gold);
    border:none;box-shadow:0 10px 24px rgba(0,0,0,.25);
    display:flex;align-items:center;justify-content:center;
    cursor:pointer;
  }
  .chat-fab .ic-flat{width:24px;height:24px;position:absolute;transition:.15s}
  .chat-fab-icon-close{opacity:0;transform:scale(.7)}
  .chat-fab.open .chat-fab-icon-open{opacity:0;transform:scale(.7)}
  .chat-fab.open .chat-fab-icon-close{opacity:1;transform:scale(1)}
  .chat-fab-dot{
    position:absolute;top:2px;left:2px;width:13px;height:13px;border-radius:50%;
    background:#1F7A4D;border:2px solid var(--surface);
  }
  .chat-fab-dot.offline{background:#8A8DA0}

  .chat-panel{
    position:fixed;bottom:92px;left:24px;z-index:300;
    width:340px;max-width:calc(100vw - 32px);
    height:460px;max-height:calc(100vh - 130px);
    background:var(--surface-2);border:1px solid var(--border);border-radius:18px;
    box-shadow:0 20px 50px rgba(0,0,0,.3);
    display:flex;flex-direction:column;overflow:hidden;
    opacity:0;visibility:hidden;transform:translateY(12px) scale(.97);
    transition:.18s;
  }
  .chat-panel.open{opacity:1;visibility:visible;transform:translateY(0) scale(1)}
  .chat-panel-head{
    display:flex;justify-content:space-between;align-items:center;
    padding:16px;background:var(--brand-bg);flex-shrink:0;
  }
  .chat-head-title{font-family:var(--font-head);font-weight:700;font-size:13.5px;color:var(--brand-text)}
  .chat-head-status{display:flex;align-items:center;gap:6px;font-size:11.5px;color:var(--brand-text-2);margin-top:5px}
  .chat-head-status .dot{width:7px;height:7px;border-radius:50%;background:#3EBD6D}
  .chat-head-status .dot.offline{background:#8A8DA0}
  .chat-panel-head .pd-icon-btn{background:var(--brand-tint);border-color:var(--brand-border);color:var(--brand-text)}

  .chat-offline-banner{
    display:none;align-items:center;gap:8px;flex-wrap:wrap;
    background:rgba(224,146,71,.12);color:var(--cheque-color);
    font-size:11.5px;padding:10px 14px;border-bottom:1px solid var(--border);
  }
  .chat-offline-banner.show{display:flex}
  .chat-offline-banner a{font-weight:700;color:var(--cheque-color);direction:ltr;display:inline-block}

  .chat-messages{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:12px}
  .chat-msg{display:flex;flex-direction:column;max-width:80%}
  .chat-msg-admin{align-self:flex-start}
  .chat-msg-user{align-self:flex-end;align-items:flex-end}
  .chat-msg-bubble{
    padding:10px 13px;border-radius:14px;font-size:12.5px;line-height:1.8;
    background:var(--surface-3);color:var(--text-primary);
  }
  .chat-msg-user .chat-msg-bubble{background:var(--gold-500);color:var(--on-gold);border-bottom-left-radius:4px}
  .chat-msg-admin .chat-msg-bubble{border-bottom-right-radius:4px}
  .chat-msg-time{font-size:10px;color:var(--text-muted);margin-top:4px}

  .chat-input-row{
    display:flex;align-items:center;gap:8px;
    padding:12px;border-top:1px solid var(--border);flex-shrink:0;
  }
  .chat-input-row input{
    flex:1;border:1px solid var(--border);border-radius:100px;
    padding:10px 14px;background:var(--input-bg);color:var(--text-primary);
    font-family:var(--font-body);font-size:12.5px;outline:none;
  }
  .chat-send-btn{
    width:36px;height:36px;border-radius:50%;flex-shrink:0;
    background:var(--gold-500);color:var(--on-gold);border:none;cursor:pointer;
    display:flex;align-items:center;justify-content:center;
  }
  .chat-send-btn .ic-flat{transform:rotate(180deg)}
  .chat-demo-toggle{
    text-align:center;font-size:10.5px;color:var(--text-muted);
    padding:8px 0 12px;cursor:pointer;text-decoration:underline;flex-shrink:0;
  }
  @media (max-width:480px){
    .chat-panel{left:16px;bottom:84px;width:calc(100vw - 32px)}
    .chat-fab{left:16px;bottom:16px}
  }

  /* admin chat inbox preview */
  .admin-chat-shell{
    display:grid;grid-template-columns:280px 1fr;
    border:1px solid var(--border);border-radius:16px;overflow:hidden;
    height:600px;background:var(--surface-2);
  }
  .admin-chat-list{border-left:1px solid var(--border);overflow-y:auto}
  .admin-chat-item{
    display:flex;align-items:center;gap:12px;padding:14px 16px;cursor:pointer;
    border-bottom:1px solid var(--border);position:relative;
  }
  .admin-chat-item:hover{background:var(--surface-3)}
  .admin-chat-item.active{background:var(--surface-3);border-right:3px solid var(--gold-500)}
  .admin-chat-avatar{
    width:40px;height:40px;border-radius:50%;flex-shrink:0;position:relative;
    background:var(--brand-tint);border:1px solid var(--brand-border);
    display:flex;align-items:center;justify-content:center;color:var(--text-secondary);font-weight:700;font-size:14px;
  }
  .admin-chat-avatar .presence-dot{
    position:absolute;bottom:-1px;left:-1px;width:10px;height:10px;border-radius:50%;
    background:#3EBD6D;border:2px solid var(--surface-2);
  }
  .admin-chat-avatar .presence-dot.offline{background:#8A8DA0}
  .admin-chat-item-info{flex:1;min-width:0}
  .admin-chat-item-name{font-size:13px;font-weight:700;color:var(--text-primary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .admin-chat-item-preview{font-size:11.5px;color:var(--text-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:3px}
  .admin-chat-item-meta{display:flex;flex-direction:column;align-items:flex-end;gap:6px;flex-shrink:0}
  .admin-chat-item-time{font-size:10px;color:var(--text-muted)}
  .admin-chat-unread{
    background:var(--gold-500);color:var(--on-gold);font-size:10px;font-weight:700;
    min-width:17px;height:17px;border-radius:50%;display:flex;align-items:center;justify-content:center;padding:0 3px;
  }

  .admin-chat-main{display:flex;flex-direction:column;min-width:0}
  .admin-chat-head{
    display:flex;align-items:center;gap:12px;padding:14px 16px;
    border-bottom:1px solid var(--border);flex-shrink:0;
  }
  .admin-chat-head .admin-chat-avatar{width:36px;height:36px;font-size:12.5px}
  .admin-chat-head-name{font-size:13.5px;font-weight:700;color:var(--text-primary)}
  .admin-chat-head-sub{font-size:11px;color:var(--text-muted);margin-top:2px}

  .admin-chat-messages{flex:1;overflow-y:auto;padding:18px;display:flex;flex-direction:column;gap:12px}
  .admin-chat-msg{display:flex;flex-direction:column;max-width:65%}
  .admin-chat-msg-customer{align-self:flex-start}
  .admin-chat-msg-admin{align-self:flex-end;align-items:flex-end}
  .admin-chat-bubble{padding:10px 14px;border-radius:14px;font-size:13px;line-height:1.8;background:var(--surface-3);color:var(--text-primary)}
  .admin-chat-msg-admin .admin-chat-bubble{background:var(--gold-500);color:var(--on-gold);border-bottom-left-radius:4px}
  .admin-chat-msg-customer .admin-chat-bubble{border-bottom-right-radius:4px}
  .admin-chat-time{font-size:10px;color:var(--text-muted);margin-top:4px}

  .admin-chat-input-row{display:flex;align-items:center;gap:10px;padding:14px;border-top:1px solid var(--border);flex-shrink:0}
  .admin-chat-input-row input{
    flex:1;border:1px solid var(--border);border-radius:100px;padding:11px 16px;
    background:var(--input-bg);color:var(--text-primary);font-family:var(--font-body);font-size:13px;outline:none;
  }
  @media (max-width:760px){
    .admin-chat-shell{grid-template-columns:1fr;height:auto}
    .admin-chat-list{display:flex;overflow-x:auto;border-left:none;border-bottom:1px solid var(--border)}
    .admin-chat-item{flex-direction:column;text-align:center;min-width:120px;border-bottom:none;border-left:1px solid var(--border)}
    .admin-chat-item.active{border-right:none;border-bottom:3px solid var(--gold-500)}
    .admin-chat-messages{height:360px}
  }

  /* field sales POS (standalone, mobile/tablet-first) */
  html.pos-page body{overflow-x:hidden}
  .pos-shell{
    max-width:640px;margin:0 auto;
    padding:14px 14px 90px;
  }
  .pos-topbar{
    display:flex;align-items:center;justify-content:space-between;
    padding:10px 4px 16px;
  }
  .pos-title{display:flex;align-items:center;gap:9px;font-family:var(--font-head);font-weight:800;font-size:16px;color:var(--text-primary)}
  .pos-title .ic-flat{color:var(--gold-500)}
  .pos-exit{
    width:34px;height:34px;border-radius:9px;
    background:var(--surface-2);border:1px solid var(--border);color:var(--text-muted);
    display:flex;align-items:center;justify-content:center;flex-shrink:0;
  }
  .pos-cats{display:flex;gap:8px;overflow-x:auto;padding-bottom:10px;margin-bottom:10px}
  .pos-cat-chip{
    flex-shrink:0;padding:9px 16px;border-radius:100px;
    border:1px solid var(--border);background:var(--surface-2);color:var(--text-secondary);
    font-family:var(--font-body);font-size:12.5px;font-weight:600;cursor:pointer;white-space:nowrap;
  }
  .pos-cat-chip.active{background:var(--gold-500);color:var(--on-gold);border-color:var(--gold-500)}

  .pos-customer-row{display:flex;gap:8px;margin-bottom:8px}
  .pos-customer-select{
    flex:1;min-width:0;padding:11px 12px;border:1px solid var(--border);border-radius:10px;
    background:var(--input-bg);color:var(--text-primary);font-family:var(--font-body);font-size:13px;
  }
  .pos-cust-search{position:relative;flex:1;min-width:0}
  .pos-cust-search input{width:100%}
  .pos-cust-spin{position:absolute;left:12px;top:13px}
  .pos-cust-chip{display:none;align-items:center;justify-content:space-between;gap:8px;padding:11px 12px;border:1px solid var(--gold-500);border-radius:10px;background:var(--surface-2);color:var(--text-primary);font-size:13px;font-weight:600}
  .pos-cust-chip button{border:none;background:var(--surface-3);color:var(--text-primary);width:24px;height:24px;border-radius:50%;cursor:pointer;font-size:16px;line-height:1}
  .pos-cust-search.selected input,.pos-cust-search.selected .pos-cust-spin{display:none}
  .pos-cust-search.selected .pos-cust-chip{display:flex}
  .pos-cust-results{display:none;position:absolute;top:100%;right:0;left:0;margin-top:6px;z-index:20;max-height:260px;overflow-y:auto;background:var(--surface-2);border:1px solid var(--border);border-radius:12px;box-shadow:var(--shadow-card)}
  .pos-cust-results.show{display:block}
  .pos-cust-item{padding:11px 14px;border-bottom:1px solid var(--border);cursor:pointer;display:flex;justify-content:space-between;gap:10px;font-size:13px;color:var(--text-primary)}
  .pos-cust-item:last-child{border-bottom:none}
  .pos-cust-item:hover{background:var(--surface-3)}
  .pos-cust-item small{color:var(--text-muted);direction:ltr;flex-shrink:0}
  .pos-cust-none{padding:14px;text-align:center;color:var(--text-muted);font-size:12.5px}
  .pos-sync-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
  .pos-sync-btn{display:flex;align-items:center;gap:7px;padding:9px 14px;border-radius:10px;border:1px solid var(--gold-500);background:var(--surface-2);color:var(--gold-500);font-family:var(--font-body);font-size:12.5px;font-weight:700;cursor:pointer}
  .pos-sync-btn .ic-flat{width:16px;height:16px}
  .pos-sync-btn.loading{opacity:.7;pointer-events:none}
  .pos-sync-btn.loading .ic-flat{animation:adminSpin .8s linear infinite}
  .pos-sync-meta{font-size:11px;color:var(--text-muted);text-align:left}
  .pos-product-prices{flex-wrap:wrap;align-items:center}
  .pos-stock{font-size:10.5px;font-weight:700;padding:2px 8px;border-radius:6px;color:#1F7A4D;background:rgba(31,122,77,.14)}
  .pos-stock.low{color:#B8860B;background:rgba(212,160,23,.18)}
  .pos-stock.out{color:#fff;background:#D93025}
  .pos-product-row.oos{opacity:.55}
  .pos-product-row.oos .pos-qty-btn.plus{pointer-events:none;opacity:.4}
  .cart-section-head{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 14px;border-radius:10px;font-size:13px;font-weight:700;margin:6px 0 2px;background:var(--surface-3);color:var(--text-primary);border-right:4px solid var(--gold-500)}
  .cart-section-head.cheque{border-right-color:var(--cheque-color)}
  .cart-section-head b{font-family:var(--font-head);font-size:13px}
  .cart-item-switch{margin-top:8px;padding:6px 10px;border-radius:8px;border:1px dashed var(--gold-500);background:transparent;color:var(--gold-500);font-family:var(--font-body);font-size:11.5px;font-weight:600;cursor:pointer}
  .cash-only-tag{display:inline-block;margin:4px 0;padding:3px 9px;border-radius:6px;font-size:11px;font-weight:700;color:#B8860B;background:rgba(212,160,23,.16);border:1px solid rgba(212,160,23,.4)}
  .cash-only-tag.sm{font-size:10.5px;padding:2px 8px;margin:0}
  html.guest .price-row,html.guest .cart-item-line-box{display:none!important}
  .pos-balance{display:none;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px;padding:9px 12px;border-radius:10px;background:var(--surface-2);border:1px solid var(--border);font-size:12.5px;color:var(--text-secondary)}
  .pos-balance.show{display:flex}
  .pos-balance b{font-family:var(--font-head);font-size:13px}
  .pos-balance .debt{color:#D93025}.pos-balance .credit{color:#1F7A4D}.pos-balance .zero{color:var(--text-muted)}
  .pos-new-cust-btn{
    flex-shrink:0;display:flex;align-items:center;gap:6px;
    padding:0 14px;border-radius:10px;border:1px solid var(--border);
    background:var(--surface-2);color:var(--text-secondary);font-family:var(--font-body);font-size:12.5px;font-weight:600;cursor:pointer;
  }
  .pos-new-cust-form{display:none;gap:8px;margin-bottom:10px}
  .pos-new-cust-form.show{display:flex;flex-wrap:wrap}
  .pos-new-cust-form input{
    flex:1;min-width:120px;padding:10px 12px;border:1px solid var(--border);border-radius:10px;
    background:var(--input-bg);color:var(--text-primary);font-family:var(--font-body);font-size:12.5px;
  }

  .pos-search-box{
    display:flex;align-items:center;gap:10px;
    background:var(--surface-2);border:1px solid var(--border);border-radius:12px;
    padding:12px 14px;margin-bottom:12px;
  }
  .pos-search-box .ic-flat{color:var(--text-muted);flex-shrink:0}
  .pos-search-box input{flex:1;border:none;background:transparent;outline:none;font-family:var(--font-body);font-size:13.5px;color:var(--text-primary)}
  .pos-search-box input::placeholder{color:var(--text-muted)}

  .pos-product-list{display:flex;flex-direction:column;gap:10px}
  .pos-product-row{
    display:flex;align-items:center;gap:12px;
    background:var(--surface-2);border:1px solid var(--border);border-radius:12px;
    padding:10px 12px;
  }
  .pos-product-img{
    width:44px;height:44px;border-radius:9px;flex-shrink:0;
    background:linear-gradient(150deg,var(--img-grad-a),var(--img-grad-b));
    display:flex;align-items:center;justify-content:center;color:var(--text-muted);
  }
  .pos-product-info{flex:1;min-width:0}
  .pos-product-name{font-size:13px;font-weight:600;color:var(--text-primary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .pos-product-prices{display:flex;gap:10px;font-size:11px;color:var(--text-muted);margin-top:3px}
  .pos-product-prices b{color:var(--text-secondary);font-weight:600}
  .pos-product-prices .cheque b{color:var(--cheque-color)}
  .pos-product-qty{display:flex;align-items:center;gap:6px;flex-shrink:0}
  .pos-qty-btn{
    width:28px;height:28px;border-radius:8px;border:1px solid var(--border);
    background:var(--surface-3);color:var(--text-primary);font-size:15px;font-weight:700;cursor:pointer;
    display:flex;align-items:center;justify-content:center;
  }
  .pos-qty-btn.plus{background:var(--gold-500);color:var(--on-gold);border-color:var(--gold-500)}
  .pos-qty-val{
    width:32px;min-width:32px;text-align:center;font-weight:700;font-size:13px;color:var(--text-primary);
    border:1px solid var(--border);border-radius:7px;background:var(--input-bg);
    padding:5px 2px;font-family:var(--font-body);
  }
  .pos-qty-val:focus{outline:2px solid var(--gold-400);outline-offset:1px}
  .pos-empty{text-align:center;color:var(--text-muted);padding:40px 16px;font-size:13px}
  .pos-product-img{cursor:pointer}
  .pos-img-popup{
    position:fixed;inset:0;z-index:320;
    background:rgba(8,13,36,.65);
    display:flex;align-items:center;justify-content:center;
    opacity:0;visibility:hidden;transition:.12s;
  }
  .pos-img-popup.show{opacity:1;visibility:visible}
  .pos-img-popup-box{
    width:90vw;height:90vh;max-width:90vw;max-height:90vh;border-radius:22px;overflow:hidden;
    background:linear-gradient(150deg,var(--img-grad-a),var(--img-grad-b));
    display:flex;align-items:center;justify-content:center;color:var(--text-muted);
    transform:scale(.9);transition:.15s;
  }
  .pos-img-popup.show .pos-img-popup-box{transform:scale(1)}
  .pos-img-popup-box .ic-flat{width:min(40vw,40vh);height:min(40vw,40vh)}
  .pos-img-popup-box img{width:100%;height:100%;object-fit:contain;background:#fff}

  .pos-cart-bar{
    position:fixed;bottom:0;right:0;left:0;z-index:250;
    display:flex;align-items:center;justify-content:space-between;
    background:var(--gold-500);color:var(--on-gold);
    padding:15px 20px;border:none;cursor:pointer;
    font-family:var(--font-body);font-size:13px;font-weight:700;
    box-shadow:0 -6px 20px rgba(0,0,0,.15);
  }
  .pos-cart-bar-left{display:flex;align-items:center;gap:8px}
  .pos-cart-bar-arrow{opacity:.85;font-weight:600}

  .pos-cart-overlay{
    position:fixed;inset:0;z-index:300;
    background:rgba(8,13,36,.55);
    display:flex;align-items:flex-end;justify-content:center;
    opacity:0;visibility:hidden;transition:.2s;
  }
  .pos-cart-overlay.show{opacity:1;visibility:visible}
  .pos-cart-sheet{
    width:100%;max-width:640px;max-height:88vh;
    background:var(--surface-2);border-radius:20px 20px 0 0;
    display:flex;flex-direction:column;
    transform:translateY(20px);transition:.2s;
  }
  .pos-cart-overlay.show .pos-cart-sheet{transform:translateY(0)}
  .pos-cart-sheet-head{
    display:flex;justify-content:space-between;align-items:center;
    padding:18px 20px;border-bottom:1px solid var(--border);
    font-family:var(--font-head);font-weight:700;font-size:15px;color:var(--text-primary);flex-shrink:0;
  }
  .pos-cart-sheet-head button{
    width:30px;height:30px;border-radius:50%;background:var(--surface-3);border:1px solid var(--border);
    color:var(--text-secondary);cursor:pointer;display:flex;align-items:center;justify-content:center;
  }
  .pos-cart-items{flex:1;overflow-y:auto;padding:14px 20px;display:flex;flex-direction:column;gap:12px}
  .pos-cart-item-row{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;padding-bottom:12px;border-bottom:1px solid var(--border)}
  .pos-cart-item-row:last-child{border-bottom:none;padding-bottom:0}
  .pos-cart-item-name{font-size:13px;font-weight:600;color:var(--text-primary)}
  .pos-cart-item-qty{font-size:11px;color:var(--text-muted);margin-top:3px}
  .pos-cart-item-totals{text-align:left;flex-shrink:0}
  .pos-cart-item-totals div{font-size:12px;font-family:var(--font-head);font-weight:700;color:var(--text-primary)}
  .pos-cart-item-totals .cheque{color:var(--cheque-color);font-size:11px;margin-top:2px}
  .pos-cart-summary{padding:16px 20px;border-top:1px solid var(--border);flex-shrink:0}
  .pos-sum-row{display:flex;justify-content:space-between;font-size:13px;color:var(--text-secondary);margin-bottom:8px}
  .pos-sum-row b{font-family:var(--font-head);color:var(--text-primary)}
  .pos-sum-row.cheque b{color:var(--cheque-color)}
  .pos-product-row{padding:12px 12px;gap:12px}
  .pos-product-img{width:78px;height:78px}
  .pos-product-name{font-size:15.5px!important;font-weight:800!important;white-space:normal!important;line-height:1.5}
  .pos-barcode{font-size:13px;font-weight:700;color:var(--text-secondary);direction:ltr;text-align:right;margin-top:2px;letter-spacing:.6px;font-family:monospace}
  .pos-product-prices{font-size:12.5px!important;font-weight:700}
  .pos-stock{font-size:12px!important;font-weight:800!important}
  .pos-modes{display:flex;flex-direction:column;gap:8px;flex-shrink:0}
  .pos-mode{display:flex;align-items:center;justify-content:space-between;gap:10px;transition:.15s}
  .pos-mode.dim{filter:blur(2px);opacity:.45;pointer-events:none}
  .pos-mode.disabled{filter:blur(2px);opacity:.4;pointer-events:none}
  .pos-mode-lbl{font-size:13px;font-weight:800;color:var(--text-secondary);min-width:92px;line-height:1.35}
  .pos-mode-lbl b{display:block;font-size:14px;font-weight:800;color:var(--text-primary)}
  .pos-mode.cheque .pos-mode-lbl b{color:var(--cheque-color)}
  .pos-qty-btn{width:36px!important;height:36px!important;font-size:20px!important;font-weight:800!important}
  .pos-qty-val{width:44px!important;min-width:44px!important;font-size:16px!important;font-weight:800!important;padding:7px 2px!important}
  .pos-cart-item-row>div:first-child{flex:1;min-width:0}
  .pos-cart-item-row{align-items:center!important;gap:8px!important;padding-bottom:8px!important}
  .pos-cart-item-name{font-size:14.5px!important;font-weight:800!important}
  .pos-cart-barcode{font-size:12px;font-weight:700;color:var(--text-secondary);direction:ltr;text-align:right;font-family:monospace;letter-spacing:.5px}
  .pos-cart-item-totals div{font-size:13.5px!important;font-weight:800!important}
  .pos-sum-row{font-size:14.5px!important;font-weight:700}
  .pos-sum-row b{font-size:15px!important;font-weight:800}
  .pos-cart-item-mode{font-size:12px;font-weight:800;color:var(--gold-500);margin-right:6px}
  .pos-cart-item-mode.cheque{color:var(--cheque-color)}
  .pos-pay-btn{
    flex:1;padding:13px;border-radius:11px;border:1px solid var(--border);
    background:var(--surface-3);color:var(--text-secondary);font-family:var(--font-body);font-weight:700;font-size:13px;cursor:pointer;
  }
  .pos-pay-btn.selected{background:var(--gold-500);color:var(--on-gold);border-color:var(--gold-500)}
  #posSubmitBtn{margin:0 20px 8px;width:calc(100% - 40px)}
  .pos-submit-result{padding:0 20px 20px;font-size:12px;color:var(--cheque-color);text-align:center;display:none}
  .pos-submit-result.show{display:block}

  /* admin customer management */
  .cust-list{display:flex;flex-direction:column;gap:12px}
  .cust-row{
    display:flex;align-items:center;gap:16px;flex-wrap:wrap;
    background:var(--surface-2);border:1px solid var(--border);border-radius:14px;
    padding:14px 18px;
  }
  .cust-avatar{
    width:44px;height:44px;border-radius:50%;flex-shrink:0;
    background:var(--surface-3);border:1px solid var(--border);
    display:flex;align-items:center;justify-content:center;color:var(--text-secondary);font-weight:700;font-size:15px;
  }
  .cust-info{flex:1;min-width:170px}
  .cust-name{font-size:13.5px;font-weight:700;color:var(--text-primary)}
  .cust-meta{font-size:11px;color:var(--text-muted);margin-top:5px;display:flex;gap:12px;flex-wrap:wrap}
  .cust-meta span{direction:ltr;display:inline-block}

  .cust-toggle-wrap{display:flex;flex-direction:column;align-items:center;gap:5px;flex-shrink:0}
  .cust-toggle-label{font-size:10px;color:var(--text-muted)}
  .toggle-switch{width:42px;height:23px;border-radius:100px;background:var(--surface-3);border:1px solid var(--border);position:relative;cursor:pointer;flex-shrink:0}
  .toggle-switch .knob{position:absolute;top:2px;right:2px;width:17px;height:17px;border-radius:50%;background:var(--text-muted);transition:.18s}
  .toggle-switch.on{background:rgba(31,122,77,.22);border-color:#1F7A4D}
  .toggle-switch.on .knob{right:21px;background:#1F7A4D}

  .cust-credit{position:relative;flex-shrink:0}
  .cust-credit-badge{
    padding:7px 14px;border-radius:100px;font-size:11px;font-weight:700;cursor:pointer;
    display:inline-flex;align-items:center;gap:6px;border:1px solid transparent;
  }
  .cust-credit-badge .dot{width:7px;height:7px;border-radius:50%}
  .cust-credit-badge[data-credit="green"]{background:rgba(31,122,77,.14);color:#1F7A4D}
  .cust-credit-badge[data-credit="green"] .dot{background:#1F7A4D}
  .cust-credit-badge[data-credit="yellow"]{background:rgba(212,160,23,.16);color:#B8860B}
  .cust-credit-badge[data-credit="yellow"] .dot{background:#D4A017}
  .cust-credit-badge[data-credit="orange"]{background:rgba(224,146,71,.16);color:var(--cheque-color)}
  .cust-credit-badge[data-credit="orange"] .dot{background:var(--gold-500)}
  .cust-credit-badge[data-credit="red"]{background:rgba(192,57,43,.14);color:#C0392B}
  .cust-credit-badge[data-credit="red"] .dot{background:#C0392B}
  .cust-credit-menu{
    position:absolute;top:100%;left:0;margin-top:8px;
    background:var(--surface-2);border:1px solid var(--border);border-radius:12px;
    box-shadow:var(--shadow-card);min-width:150px;padding:6px;z-index:60;
    opacity:0;visibility:hidden;transform:translateY(4px);transition:.14s;
  }
  .cust-credit-menu.show{opacity:1;visibility:visible;transform:translateY(0)}
  .cust-credit-option{
    display:flex;align-items:center;gap:8px;padding:8px 10px;border-radius:8px;
    font-size:12px;color:var(--text-primary);cursor:pointer;
  }
  .cust-credit-option:hover{background:var(--surface-3)}
  .cust-credit-option .dot{width:8px;height:8px;border-radius:50%;flex-shrink:0}
  .cust-credit-option[data-credit="green"] .dot{background:#1F7A4D}
  .cust-credit-option[data-credit="yellow"] .dot{background:#D4A017}
  .cust-credit-option[data-credit="orange"] .dot{background:var(--gold-500)}
  .cust-credit-option[data-credit="red"] .dot{background:#C0392B}

  .cust-actions{display:flex;gap:8px;flex-shrink:0}
  .cust-action-btn{
    display:flex;align-items:center;gap:6px;
    padding:8px 12px;border-radius:9px;border:1px solid var(--border);
    background:var(--surface-3);color:var(--text-secondary);font-size:11.5px;font-weight:600;
    cursor:pointer;font-family:var(--font-body);
  }
  .cust-action-btn:hover{border-color:var(--gold-500);color:var(--gold-500)}

  .cust-modal{max-width:560px;text-align:right}
  .cust-modal table{font-size:12.5px}
  .cust-modal th{text-align:right;color:var(--text-muted);font-weight:600;padding:9px;border-bottom:1px solid var(--border);font-size:11px}
  .cust-modal td{padding:9px;border-bottom:1px solid var(--border);color:var(--text-secondary)}
  .cust-modal-empty{text-align:center;color:var(--text-muted);padding:30px;font-size:12.5px}

  @media (max-width:640px){
    .cust-row{flex-direction:column;align-items:stretch}
    .cust-actions{justify-content:flex-end}
  }

  .catalog-head{
    background:var(--brand-bg);border-radius:18px;padding:32px 36px;margin-bottom:32px;
    display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap;position:relative;overflow:hidden;
  }
  .catalog-head::after{content:"";position:absolute;left:-30px;bottom:-40px;width:180px;height:180px;background:radial-gradient(circle,rgba(247,153,12,.15),transparent 70%)}
  .catalog-head h2{font-family:var(--font-head);color:var(--brand-text);font-size:22px;font-weight:800;margin-bottom:8px;position:relative}
  .catalog-head p{color:var(--brand-text-2);font-size:13.5px;position:relative}
  .catalog-layout{display:grid;grid-template-columns:240px 1fr;gap:28px}
  .filters{background:var(--white);border:1px solid var(--line);border-radius:14px;padding:22px;align-self:start}
  .filters h5{font-family:var(--font-head);font-size:14px;font-weight:700;margin-bottom:14px;color:var(--text-primary)}
  .filters .fgroup{margin-bottom:22px}
  .filters .fgroup label{display:flex;align-items:center;gap:9px;font-size:13.5px;color:var(--gray-600);margin-bottom:10px;cursor:pointer}
  .price-range-row{display:flex;align-items:center;gap:8px}
  .price-range-input{
    width:100%;min-width:0;padding:9px 10px;border:1px solid var(--line);border-radius:8px;
    background:var(--input-bg);color:var(--text-primary);font-family:var(--font-body);font-size:12.5px;text-align:center;
  }
  .price-range-row span{color:var(--text-muted);font-size:12px;flex-shrink:0}
  .toolbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}
  .toolbar .count{font-size:13.5px;color:var(--gray-600)}
  .toolbar select{padding:8px 12px;border:1px solid var(--line);border-radius:8px;font-family:var(--font-body);font-size:13px;background:var(--white);color:var(--text-primary)}
  .catalog-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
  .pc-card{background:var(--white);border:1px solid var(--line);border-radius:16px;overflow:hidden}
  .pc-img{aspect-ratio:1/1;width:100%;background:linear-gradient(150deg,var(--img-grad-a),var(--img-grad-b));display:flex;align-items:center;justify-content:center;font-size:34px}
  .pc-body{padding:16px}
  .pc-body .cat{font-size:11px;color:var(--gray-400);margin-bottom:4px}
  .pc-body .name{font-size:13.5px;font-weight:600;color:var(--text-primary);margin-bottom:12px;min-height:38px}
  .pc-prices{display:flex;flex-direction:column;gap:6px;margin-bottom:12px}
  .qty-cart-row{display:flex;align-items:center;gap:8px}
  .qty-stepper{
    display:flex;align-items:center;
    border:1px solid var(--border);border-radius:9px;
    overflow:hidden;flex-shrink:0;
  }
  .qty-btn{
    width:30px;height:32px;border:none;background:var(--surface-3);
    color:var(--text-primary);font-size:15px;font-weight:700;cursor:pointer;
    display:flex;align-items:center;justify-content:center;line-height:1;
  }
  .qty-btn:hover{background:var(--gold-500);color:var(--on-gold)}
  .qty-val{width:32px;text-align:center;font-size:13px;font-weight:700;color:var(--text-primary)}
  .add-cart-btn{
    flex:1;height:32px;border:none;border-radius:9px;
    background:var(--gold-500);color:var(--on-gold);
    display:flex;align-items:center;justify-content:center;
    cursor:pointer;font-size:15px;
  }
  .add-cart-btn:hover{opacity:.9}
  .pc-price-row{display:flex;justify-content:space-between;font-size:12.5px}
  .pc-price-row .lbl{color:var(--gray-400)}
  .pc-price-row .val{font-weight:700;color:var(--text-primary);font-family:var(--font-head)}
  .pc-price-row.cheque .val{color:var(--cheque-color)}
  .pc-stock{font-size:11.5px;color:#1F7A4D;display:flex;align-items:center;gap:5px;margin-bottom:12px}
  .pc-stock.out{color:#C0392B}
  .pc-stock.out .dot{background:#C0392B}
  .notify-stock-btn{display:flex;align-items:center;justify-content:center;gap:8px;font-size:12.5px}
  .notify-form{display:none;gap:8px;margin-top:2px}
  .notify-form.show{display:flex}
  .notify-form input{
    flex:1;min-width:0;padding:9px 12px;border:1px solid var(--border);border-radius:8px;
    background:var(--input-bg);color:var(--text-primary);font-family:var(--font-body);font-size:12.5px;outline:none;
  }
  .notify-submit-btn{flex-shrink:0;padding:9px 14px;font-size:12px}
  .notify-success{
    display:none;align-items:center;gap:7px;
    font-size:12px;color:var(--cheque-color);font-weight:600;
    background:rgba(224,146,71,.1);border:1px solid rgba(224,146,71,.3);
    border-radius:9px;padding:9px 12px;
  }
  .notify-success.show{display:flex}
  .pc-stock .dot{width:6px;height:6px;border-radius:50%;background:#1F7A4D}

  /* ---------- Dashboard page ---------- */
  .dash-shell{display:grid;grid-template-columns:240px 1fr;min-height:600px}
  .dash-side{background:var(--brand-bg);padding:28px 18px;color:var(--brand-text);border-left:1px solid var(--brand-border)}
  .dash-side .who{padding:0 10px 22px;border-bottom:1px solid var(--brand-border);margin-bottom:18px}
  .dash-side .who .name{font-weight:700;font-size:14.5px}
  .dash-side .who .role{font-size:12px;color:var(--accent-text);margin-top:4px}
  .dash-nav a{display:flex;align-items:center;gap:12px;padding:12px 12px;border-radius:9px;font-size:13.5px;color:var(--brand-text-2);margin-bottom:4px}
  .dash-nav a.active{background:rgba(247,153,12,.12);color:var(--accent-text);font-weight:600}
  .dash-main{padding:32px 36px;background:var(--cream)}
  .dash-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:28px}
  .dcard{background:var(--white);border:1px solid var(--line);border-radius:14px;padding:20px}
  .dcard .lbl{font-size:12.5px;color:var(--gray-400);margin-bottom:10px}
  .dcard .val{font-family:var(--font-head);font-size:22px;font-weight:800;color:var(--text-primary)}
  .dcard .val.gold{color:var(--cheque-color)}
  .dash-panel{background:var(--white);border:1px solid var(--line);border-radius:14px;padding:24px}
  .dash-panel h4{font-family:var(--font-head);font-size:15.5px;font-weight:700;margin-bottom:18px;color:var(--text-primary)}
  .dtab-panel{display:none}
  .dtab-panel.active{display:block}
  .addr-list{display:flex;flex-direction:column;gap:14px}
  .addr-card{border:1px solid var(--border);border-radius:12px;padding:16px}
  .addr-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}
  .addr-title{font-weight:700;font-size:13.5px;color:var(--text-primary)}
  .addr-card p{font-size:13px;color:var(--text-secondary);margin-bottom:6px}
  .addr-phone{font-size:12px;color:var(--text-muted);direction:ltr;display:inline-block}
  .addr-actions{display:flex;gap:14px;margin-top:10px}
  .addr-actions a{font-size:12.5px;font-weight:600;color:var(--text-primary);border-bottom:1px solid var(--gold-500)}
  .logout-panel{text-align:center;padding:44px 24px}
  .logout-panel p{color:var(--text-secondary);font-size:14px;margin:14px 0 26px}
  .logout-actions{display:flex;gap:12px;justify-content:center}
  table{width:100%;border-collapse:collapse;font-size:13px}
  th{text-align:right;color:var(--gray-400);font-weight:600;padding:10px;border-bottom:1px solid var(--line);font-size:12px}
  td{padding:12px 10px;border-bottom:1px solid var(--line)}
  .status{padding:4px 10px;border-radius:100px;font-size:11.5px;font-weight:600}
  .status.pending{background:#FBE4CE;color:#8A4B12}
  .status.approved{background:#DDF3E4;color:#1F7A4D}
  .status.paid{background:#E1E7FF;color:#2A3D8F}

  @media (max-width:1200px){
    .car-group .prod-card{flex:0 0 calc((100% - 3*16px)/3.3)}
  }
  @media (max-width:980px){
    .hero .wrap{grid-template-columns:1fr}
    .navlinks{display:none}
    .cat-grid{grid-template-columns:repeat(3,1fr)}
    .val-grid,.prod-grid,.foot-grid{grid-template-columns:repeat(2,1fr)}
    .steps{flex-direction:column;gap:24px}
    .step-line{display:none}
    .auth-shell,.dash-shell,.catalog-layout{grid-template-columns:1fr}
    .auth-visual{display:none}
    .catalog-grid{grid-template-columns:repeat(2,1fr)}
    .dash-side{display:none}
    .trust .wrap{justify-content:flex-start}
    .car-group .prod-card{flex:0 0 calc((100% - 16px)/1.5)}
    .pd-grid{grid-template-columns:1fr}
    .pd-buybox{position:static}
    .pd-trust-row{justify-content:flex-start}
    .cart-grid{grid-template-columns:1fr}
    .cart-summary{position:static}

    /* mobile header: logo mark + single icon auth + hamburger + theme toggle only */
    .logo small{display:none}
    .support-chip{display:none}
    #guestActions .btn-ghost{display:none}
    #guestActions .btn-gold{width:40px;height:40px;padding:0;border-radius:9px;display:flex;align-items:center;justify-content:center}
    .auth-btn-text{display:none}
    #partnerActions .partner-info{padding:0}
    .partner-info .partner-name,.partner-info .partner-phone{display:none}
    .hamburger-btn{display:flex}
    .mobile-nav-panel{display:flex}

    /* stacked, always-visible catalog filters on mobile */
    .catalog-layout{gap:16px}
    .filters{margin-bottom:4px}

    /* misc small-screen fixes */
    .about-grid{grid-template-columns:repeat(2,1fr)}
    .contact-grid{grid-template-columns:1fr}
    .admin-chat-shell{grid-template-columns:1fr;height:auto}
    .foot-currency,.foot-badges{gap:14px}
  }
  @media (max-width:560px){
    .cat-grid{grid-template-columns:repeat(2,1fr)}
    .catalog-grid{grid-template-columns:1fr}
    .val-grid,.prod-grid,.foot-grid,.about-grid{grid-template-columns:1fr}
    .pd-trust-row{grid-template-columns:1fr 1fr;display:grid;gap:12px}
    .cust-row{flex-direction:column;align-items:stretch}
    .cust-actions{justify-content:flex-end}
    .field-row{grid-template-columns:1fr}
    .search-btn{padding:10px 16px;font-size:12.5px}
    .hero-actions{flex-direction:column;align-items:stretch}
    .hero-actions .btn{justify-content:center}
    .cta-band{flex-direction:column;align-items:flex-start;gap:20px}
    .cta-band .actions{width:100%}
    .cta-band .actions .btn{flex:1;justify-content:center}
  }

    /* guest: hide prices until login */
    html.guest .pc-prices>*,html.guest .pd-prices>*,html.guest .cart-item-prices>*{display:none!important}
    html.guest .pc-prices::before,html.guest .pd-prices::before,html.guest .cart-item-prices::before{content:"قیمت پس از ورود نمایش داده می‌شود";display:block;padding:8px 10px;border:1px dashed #F7990C;border-radius:8px;color:#F7990C;font-size:12px;text-align:center}
    html.guest .price-range-group{display:none!important}
  
  /* ===== AMOLED theme (pure black) ===== */
  html[data-theme="amoled"]{
    --surface:#000;--surface-2:#000;--surface-3:#0D0D0D;
    --text-primary:#F5F5F5;--text-secondary:#B4B4B4;--text-muted:#828282;
    --border:rgba(255,255,255,.16);--border-strong:rgba(255,255,255,.28);
    --img-grad-a:#0D0D0D;--img-grad-b:#000;--input-bg:#000;--shadow-card:none;
    --brand-bg:#000;--brand-bg-2:#000;--brand-bg-3:#0D0D0D;
    --brand-border:rgba(255,255,255,.16);--brand-border-strong:rgba(255,255,255,.28);
    --brand-tint:rgba(255,255,255,.04);--brand-tint-strong:rgba(255,255,255,.07);--brand-tag-bg:rgba(0,0,0,.9);
    --hero-glow-2:rgba(0,0,0,0);
  }
  html[data-theme="amoled"] .icon-moon-ic{display:inline-block}
  html.admin-page #custModalOverlay{display:flex !important}

  /* ===== ADMIN PANEL ===== */
  .adm-shell{min-height:100vh;background:var(--surface);color:var(--text-primary)}
  .adm-top{
    position:sticky;top:0;z-index:180;display:flex;align-items:center;gap:12px;flex-wrap:wrap;
    padding:10px 18px;background:var(--brand-bg);border-bottom:1px solid var(--border);
  }
  .adm-burger{display:none;width:40px;height:40px;border-radius:10px;border:1px solid var(--border);background:var(--surface-3);color:var(--text-primary);cursor:pointer;align-items:center;justify-content:center;font-size:20px}
  .adm-logo{flex-shrink:0}
  .adm-search{position:relative;flex:1 1 230px;min-width:0}
  .adm-search .sb{display:flex;align-items:center;gap:8px;background:var(--input-bg);border:1px solid var(--border);border-radius:11px;padding:0 12px;height:42px}
  .adm-search .sb:focus-within{border-color:var(--gold-500)}
  .adm-search .sb .ic-flat{color:var(--text-muted);font-size:17px}
  .adm-search input{flex:1;min-width:0;border:none;background:transparent;outline:none;color:var(--text-primary);font-family:var(--font-body);font-size:13.5px}
  .adm-search input::placeholder{color:var(--text-muted)}
  .adm-results{display:none;position:absolute;top:100%;right:0;left:0;margin-top:6px;z-index:200;max-height:400px;overflow-y:auto;background:var(--surface-2);border:1px solid var(--border-strong);border-radius:12px;box-shadow:0 14px 34px rgba(0,0,0,.4)}
  .adm-results.show{display:block}
  .adm-res-group{padding:7px 14px;font-size:11.5px;font-weight:800;color:var(--gold-500);background:var(--surface-3)}
  .adm-res{display:flex;align-items:center;gap:11px;padding:10px 14px;cursor:pointer;border-bottom:1px solid var(--border)}
  .adm-res:last-child{border-bottom:none}
  .adm-res:hover,.adm-res.sel{background:var(--surface-3)}
  .adm-res-ic{width:36px;height:36px;border-radius:10px;background:var(--surface-3);border:1px solid var(--border);display:flex;align-items:center;justify-content:center;color:var(--gold-500);font-size:18px;flex-shrink:0}
  .adm-res-t{font-size:13.5px;font-weight:700;color:var(--text-primary)}
  .adm-res-s{font-size:11.5px;color:var(--text-muted);margin-top:1px}
  .adm-none{padding:16px;text-align:center;font-size:12.5px;color:var(--text-muted)}
  .adm-theme{display:flex;gap:3px;padding:3px;border-radius:11px;background:var(--surface-3);border:1px solid var(--border);flex-shrink:0}
  .adm-theme button{display:flex;align-items:center;gap:6px;height:34px;padding:0 11px;border:none;border-radius:8px;background:transparent;color:var(--text-secondary);font-family:var(--font-body);font-size:12px;font-weight:700;cursor:pointer}
  .adm-theme button.active{background:var(--gold-500);color:var(--on-gold)}
  .adm-theme .dot{width:13px;height:13px;border-radius:50%;background:#000;border:2px solid currentColor}
  .adm-user{position:relative;flex-shrink:0}
  .adm-user-btn{display:flex;align-items:center;gap:9px;padding:4px 10px 4px 6px;border-radius:12px;border:1px solid var(--border);background:var(--surface-3);color:var(--text-primary);cursor:pointer;font-family:var(--font-body)}
  .adm-avatar{width:34px;height:34px;border-radius:50%;background:var(--gold-500);color:var(--on-gold);display:flex;align-items:center;justify-content:center;font-size:18px;flex-shrink:0}
  .adm-user-name{font-size:13px;font-weight:800;line-height:1.3;text-align:right}
  .adm-user-role{font-size:11px;color:var(--text-muted);font-weight:600;text-align:right}
  .adm-user-menu{display:none;position:absolute;top:100%;left:0;margin-top:8px;width:250px;z-index:210;background:var(--surface-2);border:1px solid var(--border-strong);border-radius:14px;box-shadow:0 14px 34px rgba(0,0,0,.4);padding:14px}
  .adm-user-menu.show{display:block}
  .adm-user-menu .row{display:flex;justify-content:space-between;gap:10px;font-size:12.5px;padding:7px 0;border-bottom:1px solid var(--border);color:var(--text-secondary)}
  .adm-user-menu .row b{color:var(--text-primary);font-weight:700}
  .adm-user-menu a{display:flex;align-items:center;gap:8px;margin-top:10px;font-size:13px;font-weight:700;color:var(--text-primary);padding:8px 4px}
  .adm-body{display:grid;grid-template-columns:240px minmax(0,1fr);align-items:start}
  .adm-side{position:sticky;top:63px;height:calc(100vh - 63px);overflow-y:auto;padding:18px 12px;background:var(--brand-bg);border-left:1px solid var(--border);display:flex;flex-direction:column;gap:5px}
  .adm-nav{display:flex;align-items:center;gap:11px;padding:12px 13px;border-radius:11px;font-size:14px;font-weight:700;color:var(--text-secondary);cursor:pointer;border:none;background:none;font-family:var(--font-body);text-align:right;width:100%}
  .adm-nav .ic-flat{font-size:19px}
  .adm-nav:hover{background:var(--surface-3);color:var(--text-primary)}
  .adm-nav.active{background:var(--gold-500);color:var(--on-gold)}
  .adm-side hr{border:none;border-top:1px solid var(--border);margin:10px 0}
  .adm-main{padding:26px 24px 80px;min-width:0}
  .adm-view{display:none;padding:0 !important;margin:0}
  .adm-view.active{display:block}
  .adm-flash{animation:admFlash 1.6s ease}
  @keyframes admFlash{0%,60%{box-shadow:0 0 0 3px var(--gold-500);border-radius:12px}100%{box-shadow:0 0 0 0 transparent}}
  .adm-grid2{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:20px}
  .adm-dcard{cursor:pointer;transition:.15s}
  .adm-dcard:hover{border-color:var(--gold-500)}
  .adm-list-row{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid var(--border);font-size:13px}
  .adm-list-row:last-child{border-bottom:none}
  .adm-list-row small{display:block;color:var(--text-muted);font-size:11.5px}
  .adm-badge{font-size:11.5px;font-weight:800;padding:3px 10px;border-radius:7px;background:var(--surface-3);color:var(--text-secondary);white-space:nowrap}
  .adm-badge.warn{background:rgba(247,153,12,.16);color:var(--gold-500)}
  .adm-badge.bad{background:rgba(217,48,37,.16);color:#E5534B}
  .adm-bars{display:flex;align-items:flex-end;gap:10px;height:150px;padding-top:10px}
  .adm-bar{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:6px;height:100%;font-size:11px;color:var(--text-muted)}
  .adm-bar i{display:block;width:100%;max-width:36px;border-radius:7px 7px 0 0;background:var(--gold-500)}
  .adm-quick{display:flex;flex-wrap:wrap;gap:10px}
  .admin-chat-shell{height:calc(100vh - 210px)}
  .adm-side-veil{display:none}
  @media (max-width:900px){
    .adm-burger{display:flex}
    .adm-logo small{display:none}
    .adm-body{grid-template-columns:1fr}
    .adm-side{position:fixed;top:0;right:0;bottom:0;height:100vh;width:250px;z-index:400;transform:translateX(100%);transition:.2s;padding-top:70px}
    .adm-side.open{transform:none}
    .adm-side-veil.show{display:block;position:fixed;inset:0;z-index:390;background:rgba(0,0,0,.55)}
    .adm-main{padding:18px 14px 70px}
    .adm-theme button span{display:none}
    .adm-theme button{padding:0 8px;height:32px}
    .adm-top{padding:10px 12px}
    .adm-user-btn{padding:3px}
    .adm-logo{font-size:17px}
    .adm-user-meta{display:none}
    .adm-grid2{grid-template-columns:1fr}
    .adm-shell .dash-cards{grid-template-columns:1fr 1fr}
    .adm-shell{overflow-x:clip}
    .adm-shell .dcard .val{font-size:18px}
    .adm-search{flex:1 1 100%;order:10}
    .adm-top{gap:8px}
    .adm-logo{margin-left:auto}
  }

  /* ===== customers list (admin) ===== */
  .cr-grid{display:grid;grid-template-columns:52px 88px 132px 1.2fr 1.2fr 150px 100px;gap:12px;align-items:center}
  .cust-head{padding:0 27px 8px 21px;font-size:12px;font-weight:800;color:var(--text-muted)}
  .cust-list .cust-row{display:block;padding:14px 20px;border-right:6px solid var(--border-strong)}
  .cr-cell{font-size:14px;font-weight:700;color:var(--text-primary);min-width:0;overflow-wrap:anywhere}
  .cr-idx{color:var(--text-muted)}
  .cr-ltr{direction:ltr;text-align:right}
  .cr-name a{color:var(--text-primary);font-weight:800}
  .cr-name a:hover{color:var(--gold-500)}
  .cr-bal b{display:block;font-family:var(--font-head);font-size:14px}
  .cr-bal small{font-size:11.5px;font-weight:700;color:var(--text-muted)}
  .cr-debt{color:#E5534B}.cr-cred{color:#2FA36B}
  .cr-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:12px;padding-top:12px;border-top:1px solid var(--border)}
  .cust-list .cust-toggle-wrap{flex-direction:row;gap:8px}
  .cust-action-btn{font-size:12.5px!important;font-weight:700!important;padding:9px 13px!important}
  .cust-action-btn.cr-del{color:#E5534B;border-color:rgba(229,83,75,.5)}
  .cust-credit-badge{font-size:12.5px!important;font-weight:800!important;padding:8px 16px!important}
  .cust-row[data-credit="green"]{background:rgba(31,122,77,.13);border-color:rgba(31,122,77,.45);border-right-color:#1F7A4D}
  .cust-row[data-credit="yellow"]{background:rgba(212,160,23,.14);border-color:rgba(212,160,23,.45);border-right-color:#D4A017}
  .cust-row[data-credit="orange"]{background:rgba(240,120,30,.14);border-color:rgba(240,120,30,.5);border-right-color:#F0781E}
  .cust-row[data-credit="red"]{background:rgba(192,57,43,.15);border-color:rgba(192,57,43,.5);border-right-color:#C0392B}
  .cust-credit-badge[data-credit="orange"]{background:rgba(240,120,30,.18);color:#F0781E}
  .cust-credit-badge[data-credit="orange"] .dot,.cust-credit-option[data-credit="orange"] .dot{background:#F0781E}
  .cust-list .cust-toggle-label{font-size:12.5px;font-weight:800;min-width:50px}
  .cr-passbox{font-family:monospace;font-size:24px;font-weight:800;letter-spacing:2px;text-align:center;padding:18px;border-radius:12px;background:var(--surface-3);border:1px dashed var(--gold-500);color:var(--gold-500)}
  .cust-modal .field label{font-size:12.5px;font-weight:700}
  @media (max-width:900px){
    .cust-head{display:none}
    .cr-grid{grid-template-columns:1fr 1fr;gap:10px 14px}
    .cr-cell::before{content:attr(data-label);display:block;font-size:11px;font-weight:700;color:var(--text-muted);margin-bottom:1px}
    .cr-idx{display:none}
    .cust-list .cust-toggle-wrap::before{display:none}
    .cr-foot{flex-direction:column;align-items:stretch}
    .cust-list .cust-credit-badge{width:100%;justify-content:center}
    .cust-list .cust-actions{width:100%;flex-wrap:wrap}
    .cust-list .cust-action-btn{flex:1 1 45%;justify-content:center}
  }

  /* ===== customers: single-row layout, icon buttons ===== */
  .cr-grid{grid-template-columns:36px 62px 112px minmax(0,1fr) minmax(0,1fr) 112px 62px 104px 232px;gap:8px}
  .cust-head{padding:0 27px 8px 21px}
  .cust-list .cust-row{padding:12px 20px}
  .cust-list .cust-toggle-wrap{flex-direction:column;gap:3px;align-items:flex-start}
  .cust-list .cust-toggle-label{font-size:11.5px;min-width:0}
  .cust-credit-badge{padding:7px 10px!important;font-size:12px!important;white-space:nowrap}
  .cust-list .cust-actions{display:flex;gap:5px}
  .cust-action-btn.ic{width:34px;height:34px;padding:0!important;justify-content:center}
  .cust-action-btn.ic .ic-flat{font-size:17px}
  @media (max-width:1150px){
    .cust-head{display:none}
    .cr-grid{grid-template-columns:1fr 1fr;gap:10px 14px}
    .cr-cell::before{content:attr(data-label);display:block;font-size:11px;font-weight:700;color:var(--text-muted);margin-bottom:1px}
    .cr-idx{display:none}
    .cust-list .cust-toggle-wrap::before{display:none}
    .cr-grid>.cust-credit,.cr-grid>.cust-actions{grid-column:1/-1}
    .cust-list .cust-credit-badge{width:100%;justify-content:center}
    .cust-list .cust-action-btn.ic{flex:1;width:auto;height:40px}
  }

  /* ===== customers toolbar ===== */
  .cust-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:14px}
  .cust-tb-spacer{flex:1}
  .cust-tb-btn{display:inline-flex;align-items:center;gap:8px;font-size:13px!important;font-weight:800!important;padding:10px 16px!important;border-radius:11px!important;cursor:pointer;font-family:var(--font-body)}
  .cust-tb-btn .ic-flat{font-size:17px}
  .cust-tb-btn.loading{opacity:.7;pointer-events:none}
  .cust-tb-btn.loading .ic-flat{animation:adminSpin .8s linear infinite}
  .cust-sync-meta{font-size:12px;font-weight:600;color:var(--text-muted)}
  .cust-filter-count{display:none;min-width:20px;height:20px;border-radius:10px;align-items:center;justify-content:center;background:var(--gold-500);color:var(--on-gold);font-size:11px;padding:0 5px}
  .cust-filter-panel{display:none;flex-wrap:wrap;gap:16px 28px;margin-bottom:14px!important}
  .cust-filter-panel.show{display:flex}
  .cf-group{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
  .cf-title{font-size:12.5px;font-weight:800;color:var(--text-secondary);margin-left:4px}
  .cf-chip{display:inline-flex;align-items:center;gap:7px;padding:7px 13px;border-radius:100px;border:1px solid var(--border-strong);background:var(--surface-3);color:var(--text-secondary);font-family:var(--font-body);font-size:12.5px;font-weight:700;cursor:pointer}
  .cf-chip.on{background:var(--gold-500);color:var(--on-gold);border-color:var(--gold-500)}
  .cf-dot{width:9px;height:9px;border-radius:50%;display:inline-block}
  @media (max-width:640px){.cust-tb-btn span{font-size:12px}.cust-tb-spacer{display:none}}

  .cr-manual{display:block;font-size:11px;font-weight:800;color:var(--gold-500)}
  .cr-warn{margin-top:10px;padding:10px 14px;border-radius:10px;background:rgba(240,120,30,.16);border:1px dashed #F0781E;color:#F0781E;font-size:13.5px;font-weight:800;cursor:pointer}
  .cr-warn small{font-weight:700;opacity:.85;font-size:12px}
  #custModalBody{max-height:72vh;overflow-y:auto}
  .cust-modal textarea{width:100%;resize:vertical}

  /* ===== customers v3: sort, select, pager, profile, reports, mobile ===== */
  [hidden]{display:none !important}
  .cr-grid{grid-template-columns:24px 30px 58px 108px minmax(0,1fr) minmax(0,1fr) 106px 60px 100px 236px;gap:6px}
  .cust-list .cust-actions{gap:4px}
  .cust-action-btn.ic{width:30px;height:30px;position:relative}
  .cust-action-btn.ic .ic-flat{font-size:15px}
  .cr-dotbadge{position:absolute;top:-3px;left:-3px;width:9px;height:9px;border-radius:50%;background:#F0781E;border:2px solid var(--surface-2)}
  .cust-head .sortable{cursor:pointer;user-select:none;white-space:nowrap}
  .cust-head .sortable:hover{color:var(--gold-500)}
  .sarr{font-size:9px;margin-right:3px;opacity:.7}
  .cr-check{width:18px;height:18px;accent-color:var(--gold-500);cursor:pointer}
  .cr-sel{display:flex;align-items:center}
  .cr-tier{display:inline-block;margin-top:3px;padding:1px 8px;border-radius:6px;font-size:10.5px;font-weight:800;background:var(--surface-3);color:var(--text-secondary);border:1px solid var(--border)}
  .cr-tier.t-vip{background:rgba(247,153,12,.18);color:var(--gold-500);border-color:var(--gold-500)}
  .cr-tier.t-wholesale{color:#5AA9FF;border-color:rgba(90,169,255,.5)}
  .cr-pend{background:rgba(90,169,255,.14);border-color:#5AA9FF;color:#5AA9FF;cursor:default;display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
  .cr-rej{background:rgba(192,57,43,.14);border-color:#C0392B;color:#E5534B;cursor:default;display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
  .cr-pend-btns{display:flex;gap:6px}
  .cust-mini{padding:6px 12px;border-radius:8px;border:1px solid var(--border-strong);background:var(--surface-3);color:var(--text-primary);font-family:var(--font-body);font-size:12.5px;font-weight:800;cursor:pointer}
  .cust-mini.ok{background:#1F7A4D;border-color:#1F7A4D;color:#fff}
  .cust-mini.no{color:#E5534B;border-color:rgba(229,83,75,.55)}
  .cust-pending{display:none;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:10px 14px;border-radius:11px;background:rgba(90,169,255,.13);border:1px solid #5AA9FF;color:#5AA9FF;font-size:13.5px;margin-bottom:12px}
  .cust-pending.show{display:flex}
  .cust-tabs{display:flex;gap:8px;margin-bottom:14px}
  .cust-tab{padding:10px 20px;border-radius:11px;border:1px solid var(--border-strong);background:var(--surface-3);color:var(--text-secondary);font-family:var(--font-body);font-size:14px;font-weight:800;cursor:pointer}
  .cust-tab.active{background:var(--gold-500);border-color:var(--gold-500);color:var(--on-gold)}
  .cust-bulk{display:none;align-items:center;gap:8px;flex-wrap:wrap;padding:10px 14px;margin:10px 0;border-radius:11px;background:var(--surface-3);border:1px solid var(--gold-500);position:sticky;top:70px;z-index:40}
  .cust-bulk.show{display:flex}
  .cust-bulk select{padding:7px 10px;border-radius:8px;border:1px solid var(--border-strong);background:var(--input-bg);color:var(--text-primary);font-family:var(--font-body);font-size:12.5px;font-weight:700}
  .cust-pager{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:16px}
  .cp-size{font-size:13px;color:var(--text-secondary);font-weight:700}
  .cp-size select{padding:6px 10px;border-radius:8px;border:1px solid var(--border-strong);background:var(--input-bg);color:var(--text-primary);font-family:var(--font-body);font-weight:800}
  .cp-nums{display:flex;gap:5px;align-items:center;flex-wrap:wrap}
  .cp-btn{min-width:36px;height:36px;padding:0 8px;border-radius:9px;border:1px solid var(--border-strong);background:var(--surface-3);color:var(--text-primary);font-family:var(--font-body);font-size:13.5px;font-weight:800;cursor:pointer}
  .cp-btn.on{background:var(--gold-500);border-color:var(--gold-500);color:var(--on-gold)}
  .cp-btn:disabled{opacity:.4;cursor:default}
  .cp-dots{color:var(--text-muted)}
  .cust-toast{position:fixed;bottom:24px;left:50%;transform:translate(-50%,20px);z-index:600;background:var(--gold-500);color:var(--on-gold);padding:12px 22px;border-radius:12px;font-size:14px;font-weight:800;opacity:0;transition:.25s;max-width:90vw;text-align:center}
  .cust-toast.show{opacity:1;transform:translate(-50%,0)}
  .ci-row{display:flex;justify-content:space-between;gap:14px;padding:10px 0;border-bottom:1px solid var(--border);font-size:13.5px}
  .ci-row span{color:var(--text-muted);font-weight:700;flex-shrink:0}
  .ci-row b{text-align:left;font-weight:800;overflow-wrap:anywhere}
  .sms-preview{padding:12px 14px;border-radius:10px;background:var(--surface-3);border:1px dashed var(--border-strong);font-size:13.5px;line-height:1.9;white-space:pre-wrap}
  /* profile */
  .cp-top{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:14px}
  .cp-actions{display:flex;gap:8px;flex-wrap:wrap}
  .cp-title{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:16px 18px;border-radius:14px;border:1px solid var(--border);border-right:6px solid var(--border-strong);background:var(--surface-2);margin-bottom:16px}
  .cp-title[data-credit="green"]{border-right-color:#1F7A4D;background:rgba(31,122,77,.12)}
  .cp-title[data-credit="yellow"]{border-right-color:#D4A017;background:rgba(212,160,23,.13)}
  .cp-title[data-credit="orange"]{border-right-color:#F0781E;background:rgba(240,120,30,.13)}
  .cp-title[data-credit="red"]{border-right-color:#C0392B;background:rgba(192,57,43,.14)}
  .cp-name{font-family:var(--font-head);font-size:19px;font-weight:800}
  .cp-sub{font-size:12.5px;color:var(--text-muted);font-weight:600;line-height:1.8}
  .cp-badges{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-right:auto}
  .cp-tbl{overflow-x:auto}
  .cp-tbl table{width:100%;border-collapse:collapse;font-size:13px;min-width:320px}
  .cp-tbl th{text-align:right;color:var(--text-muted);font-weight:800;padding:9px;border-bottom:1px solid var(--border);font-size:12px;white-space:nowrap}
  .cp-tbl td{padding:9px;border-bottom:1px solid var(--border);color:var(--text-primary);font-weight:600}
  .cp-addr{display:flex;gap:12px;align-items:flex-start;padding:11px 0;border-bottom:1px solid var(--border);font-size:13.5px;flex-wrap:wrap}
  .cp-addr-btns{display:flex;gap:6px}
  .cp-addform,.cp-noteform{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
  .cp-addform input,.cp-noteform input,.cp-noteform select{flex:1 1 130px;min-width:0;padding:10px 12px;border:1px solid var(--border-strong);border-radius:10px;background:var(--input-bg);color:var(--text-primary);font-family:var(--font-body);font-size:13px}
  .cp-addform .wide,.cp-noteform .wide{flex:2 1 240px}
  .cp-noteform{margin:0 0 12px}
  .cp-note{display:flex;gap:10px;align-items:flex-start;padding:11px 0;border-bottom:1px solid var(--border);font-size:13.5px;flex-wrap:wrap}
  .cp-note.done{opacity:.55}
  .rp-filter{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:12px;font-size:13.5px;font-weight:700}
  .rp-filter input{width:64px;padding:6px 8px;text-align:center;border:1px solid var(--border-strong);border-radius:8px;background:var(--input-bg);color:var(--text-primary);font-family:var(--font-body);font-weight:800}
  .rp-link{color:var(--text-primary);font-weight:800}.rp-link small{color:var(--text-muted);font-weight:600}
  .rp-link:hover{color:var(--gold-500)}
  .rp-bar{margin-bottom:12px}.rp-bar-t{display:flex;justify-content:space-between;gap:8px;font-size:13px;margin-bottom:5px;flex-wrap:wrap}
  .rp-bar-b{height:8px;border-radius:5px;background:var(--surface-3);overflow:hidden}.rp-bar-b i{display:block;height:100%;background:var(--gold-500);border-radius:5px}
  .tier-row{display:flex;gap:10px;align-items:center;margin-bottom:10px;flex-wrap:wrap}
  .tier-row .tr-name{flex:1 1 160px;padding:10px 12px;border:1px solid var(--border-strong);border-radius:10px;background:var(--input-bg);color:var(--text-primary);font-family:var(--font-body);font-size:13.5px}
  .tier-row label{display:flex;align-items:center;gap:6px;font-size:13px;font-weight:700}
  .tier-row .tr-disc{width:64px;padding:9px;text-align:center;border:1px solid var(--border-strong);border-radius:10px;background:var(--input-bg);color:var(--text-primary);font-family:var(--font-body);font-weight:800}
  .cust-modal{width:calc(100vw - 24px)}
  @media (max-width:1280px){
    .cust-head{display:none}
    .cr-grid{grid-template-columns:1fr 1fr;gap:10px 14px}
    .cr-cell::before{content:attr(data-label);display:block;font-size:11px;font-weight:700;color:var(--text-muted);margin-bottom:1px}
    .cr-sel::before,.cr-idx{display:none}
    .cr-sel{grid-column:1/-1;justify-content:flex-start}
    .cust-list .cust-toggle-wrap::before{display:none}
    .cr-grid>.cust-credit,.cr-grid>.cust-actions{grid-column:1/-1}
    .cust-list .cust-credit-badge{width:100%;justify-content:center}
    .cust-list .cust-actions{flex-wrap:wrap;gap:6px}
    .cust-list .cust-action-btn.ic{flex:1 1 40px;width:auto;height:42px}
    .cust-action-btn.ic .ic-flat{font-size:18px}
  }
  @media (max-width:900px){
    .adm-grid2{grid-template-columns:1fr}
    .cust-bulk{top:64px}
  }
  @media (max-width:640px){
    .cust-toolbar .cust-tb-btn{flex:1 1 calc(50% - 8px);justify-content:center}
    .cust-toolbar .cust-tb-sync{flex:1 1 100%}
    .cust-sync-meta{flex:1 1 100%}
    .cust-tb-spacer{display:none}
    .cust-tab{flex:1;padding:10px 6px}
    .cust-pager{justify-content:center}
    .cp-top .cust-tb-btn{flex:1 1 auto;justify-content:center}
    .cp-badges{margin-right:0}
    .cust-filter-panel .cf-group{width:100%}
  }

  /* ===== mobile fixes for old admin tables ===== */
  @media (max-width:760px){
    .admin-ship-table thead{display:none}
    .admin-ship-table,.admin-ship-table tbody,.admin-ship-table tr,.admin-ship-table td{display:block;width:100%}
    .admin-ship-table tr{border:1px solid var(--border);border-radius:12px;padding:10px 12px;margin-bottom:10px;background:var(--surface-3)}
    .admin-ship-table td{border:none!important;padding:5px 0!important}
    .admin-ship-table td:first-child{font-weight:800;color:var(--text-primary);font-size:14px}
    .admin-ship-table td:nth-child(n+2)::before{display:block;font-size:11.5px;color:var(--text-muted);font-weight:700;margin-bottom:3px}
    .admin-ship-table td:nth-child(2)::before{content:'دسته‌بندی'}
    .admin-ship-table td:nth-child(3)::before{content:'حداقل تعداد ارسال رایگان (۰ = غیرفعال)'}
    .admin-ship-table td:nth-child(4)::before{content:'ضریب تعداد سفارش (۱ = بدون محدودیت)'}
    .admin-ship-table input{width:100%!important}
    .sync-grid{min-width:0}
    .sync-row.sync-head{display:none}
    #syncTableBody .sync-row{grid-template-columns:1fr 1fr;row-gap:10px}
    #syncTableBody .sync-row .sync-cell:nth-child(3){grid-column:1/-1;order:-1}
    #syncTableBody .sync-row .sync-cell::before{display:block;font-size:11px;color:var(--text-muted);font-weight:700}
    #syncTableBody .sync-row .sync-cell:nth-child(1)::before{content:'کد کالا'}
    #syncTableBody .sync-row .sync-cell:nth-child(2)::before{content:'بارکد'}
    #syncTableBody .sync-row .sync-cell:nth-child(4)::before{content:'موجودی'}
    #syncTableBody .sync-row .sync-cell:nth-child(5)::before{content:'قیمت نقدی'}
    #syncTableBody .sync-row .sync-cell:nth-child(6)::before{content:'قیمت چکی'}
    .sync-header{flex-direction:column;align-items:stretch;gap:12px}
    .sync-header-actions{align-items:stretch}
  }

  @media (max-width:900px){
    .admin-chat-shell{display:grid;grid-template-columns:1fr;height:calc(100vh - 200px);min-height:420px;position:relative}
    .admin-chat-list{display:block;height:100%;overflow-y:auto;overflow-x:hidden;border:none}
    .admin-chat-main{display:none;height:100%}
    .admin-chat-shell.chat-open .admin-chat-list{display:none}
    .admin-chat-shell.chat-open .admin-chat-main{display:flex}
    .admin-chat-back{display:flex!important}
    .admin-chat-item{flex-direction:row;text-align:right;min-width:0;border-left:none;border-bottom:1px solid var(--border)}
    .admin-chat-item.active{border-right:3px solid var(--gold-500);border-bottom:1px solid var(--border)}
    .admin-chat-messages{height:auto}
  }

  @media (max-width:900px){
    .adm-top{position:static}
    .adm-burger{position:fixed;bottom:18px;right:16px;z-index:380;width:52px;height:52px;border-radius:50%;background:var(--gold-500);color:var(--on-gold);border:none;box-shadow:0 6px 18px rgba(0,0,0,.45);font-size:24px}
    .cust-bulk{top:8px}
    .adm-side{padding-top:24px}
  }

  .demo-fab{position:fixed;bottom:24px;right:24px;z-index:290}
  .demo-fab .notice-demo-menu{top:auto;bottom:100%;left:auto;right:0;margin:0 0 10px}
  .demo-fab .notice-demo-trigger{box-shadow:0 4px 14px rgba(0,0,0,.4)}
  html.admin-page .demo-fab{display:none !important}

  /* ===== generic modal ===== */
  .adm-mo{position:fixed;inset:0;z-index:520;background:rgba(0,0,0,.62);display:none;align-items:center;justify-content:center;padding:14px}
  .adm-mo.show{display:flex}
  .adm-mo-box{width:100%;max-width:640px;max-height:92vh;overflow:auto;background:var(--surface-2);border:1px solid var(--border-strong);border-radius:16px;padding:20px;color:var(--text-primary)}
  .adm-mo-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px}
  .adm-mo-head h3{font-family:var(--font-head);font-size:17px;font-weight:800}
  .adm-mo-x{width:34px;height:34px;border-radius:50%;border:1px solid var(--border-strong);background:var(--surface-3);color:var(--text-primary);font-size:20px;cursor:pointer;line-height:1}
  .adm-mo input:not([type=checkbox]):not([type=file]),.adm-mo select,.adm-mo textarea,.sh-row input,.sh-row select,.au-row input,.au-row select,.of-amt,.st-row input:not([type=file]),.od-qty,.ord-sum-r input,.st-pane select{padding:10px 12px;border:1px solid var(--border-strong);border-radius:10px;background:var(--input-bg);color:var(--text-primary);font-family:var(--font-body);font-size:13.5px;min-width:0}
  .adm-mo .field{margin-bottom:12px}.adm-mo .field label{font-size:12.5px;font-weight:700}
  .adm-mo textarea{width:100%}
  .st-check{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:700}
  /* ===== settings ===== */
  .st-tabs{display:flex;gap:8px;overflow-x:auto;padding-bottom:8px;margin-bottom:14px;-webkit-overflow-scrolling:touch}
  .st-tab{flex-shrink:0;padding:10px 18px;border-radius:11px;border:1px solid var(--border-strong);background:var(--surface-3);color:var(--text-secondary);font-family:var(--font-body);font-size:13.5px;font-weight:800;cursor:pointer;white-space:nowrap}
  .st-tab.active{background:var(--gold-500);border-color:var(--gold-500);color:var(--on-gold)}
  .st-group{margin-bottom:16px}
  .st-desc{font-size:13px;color:var(--text-secondary);margin:-6px 0 14px;line-height:1.9}
  .st-desc code{background:var(--surface-3);border:1px solid var(--border);border-radius:6px;padding:0 6px;font-size:12px}
  .st-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}
  .st-full{grid-column:1/-1}
  .st-toggle-row{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:12px 0;border-bottom:1px solid var(--border)}
  .st-tl{font-size:14px;font-weight:700}
  .st-secret{display:flex;gap:8px}.st-secret input{flex:1;min-width:0}
  .st-eye{width:44px;border-radius:10px;border:1px solid var(--border-strong);background:var(--surface-3);color:var(--text-secondary);cursor:pointer;flex-shrink:0}
  .st-img{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
  .st-img-prev{width:72px;height:72px;border-radius:14px;border:1px dashed var(--border-strong);background:var(--surface-3);display:flex;align-items:center;justify-content:center;overflow:hidden;color:var(--text-muted);font-size:24px}
  .st-img-prev img{width:100%;height:100%;object-fit:contain;background:#fff}
  .st-img-btns{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
  .st-row{display:flex;gap:12px;align-items:flex-end;flex-wrap:wrap}
  .st-row .field{margin-bottom:0}
  .st-msg{margin:10px 0;font-size:13px;font-weight:700;min-height:18px}.st-msg.ok{color:#2FA36B}.st-msg.bad{color:#E5534B}
  .st-note{font-size:12px;color:var(--text-muted);margin-top:8px;line-height:1.9}
  .st-savebar{position:sticky;bottom:0;z-index:30;display:flex;gap:10px;justify-content:flex-end;padding:12px 0;background:linear-gradient(0deg,var(--surface) 70%,transparent)}
  .sh-row,.au-row{display:flex;gap:8px;align-items:center;margin-bottom:8px;flex-wrap:wrap}
  .sh-row>input:first-child{flex:2 1 160px}.sh-cost{flex:1 1 100px;text-align:left}.sh-eta{flex:1 1 130px}
  .au-row .au-name{flex:1 1 130px}.au-row .au-mob{flex:1 1 120px;text-align:left}.au-row select{flex:1 1 120px}
  .sms-row{margin-bottom:12px;padding:12px;border:1px solid var(--border);border-radius:12px;background:var(--surface-3)}
  .sms-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:8px;font-size:13.5px}
  .sms-row textarea{width:100%;padding:10px 12px;border:1px solid var(--border-strong);border-radius:10px;background:var(--input-bg);color:var(--text-primary);font-family:var(--font-body);font-size:13px}
  .field input.is-ro{opacity:.65;cursor:not-allowed}
  /* ===== products ===== */
  .pr-grid{display:grid;grid-template-columns:24px 54px minmax(0,2.4fr) 100px 88px 132px 78px 58px 140px;gap:6px;align-items:center}
  .or-grid{display:grid;grid-template-columns:24px 118px 88px minmax(0,1.5fr) 64px 112px 138px 130px 134px;gap:6px;align-items:center}
  .pr-img{width:48px;height:48px;border-radius:10px;background:var(--surface-3);border:1px solid var(--border);display:flex;align-items:center;justify-content:center;overflow:hidden;color:var(--text-muted);font-size:20px;cursor:pointer}
  .pr-img img{width:100%;height:100%;object-fit:cover}
  .pr-name{font-weight:800;font-size:14.5px;color:var(--text-primary);line-height:1.5}.pr-name:hover{color:var(--gold-500)}
  .pr-sub{font-size:11.5px;color:var(--text-muted);font-weight:600;font-family:monospace}
  .pr-tags{display:flex;gap:5px;flex-wrap:wrap;margin-top:3px}
  .pr-tag{font-size:10.5px;font-weight:800;padding:1px 8px;border-radius:6px;background:var(--surface-3);color:var(--text-secondary);border:1px solid var(--border)}
  .pr-tag.gold{background:rgba(247,153,12,.18);color:var(--gold-500);border-color:var(--gold-500)}.pr-tag.warn{color:#D4A017;border-color:rgba(212,160,23,.5)}.pr-tag.bad{color:#E5534B;border-color:rgba(229,83,75,.5)}
  .pr-stock{font-size:13px;font-weight:800;color:#2FA36B}.pr-stock.low{color:#D4A017}.pr-stock.out{color:#E5534B}
  .pr-price b{display:block;font-family:var(--font-head);font-size:14px}.pr-price small{display:block;font-size:12px;color:var(--text-muted);font-weight:700}.pr-price small.chq{color:var(--cheque-color)}.pr-price s{font-size:11px;color:var(--text-muted)}
  .prod-row.is-hidden{opacity:.6}
  .cust-action-btn.is-on{color:var(--gold-500);border-color:var(--gold-500)}.cust-action-btn.is-on .ic-flat{fill:var(--gold-500)}
  .prod-stats{grid-template-columns:repeat(6,1fr)!important}
  .pe-panel{margin-bottom:16px}
  .pe-meter{min-width:200px;margin-right:auto}.pe-meter-t{font-size:12.5px;font-weight:700;margin-bottom:5px}
  .pe-lock{font-size:11px;color:var(--gold-500);font-weight:700}
  .pe-final{padding:8px 12px;border-radius:10px;background:var(--surface-3);border:1px dashed var(--gold-500);font-size:13px;line-height:1.9}.pe-final .chq{color:var(--cheque-color)}
  .pe-imgs{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:10px}
  .pe-img{position:relative;aspect-ratio:1;border-radius:12px;overflow:hidden;border:1px solid var(--border-strong);background:var(--surface-3)}
  .pe-img img{width:100%;height:100%;object-fit:cover}
  .pe-img.main{border-color:var(--gold-500);box-shadow:0 0 0 2px var(--gold-500)}
  .pe-main{position:absolute;top:6px;right:6px;background:var(--gold-500);color:var(--on-gold);font-size:10.5px;font-weight:800;padding:1px 8px;border-radius:6px;display:none}.pe-img.main .pe-main{display:block}
  .pe-img-btns{position:absolute;left:0;right:0;bottom:0;display:flex;background:rgba(0,0,0,.6)}
  .pe-img-btns button{flex:1;border:none;background:none;color:#fff;padding:6px 0;cursor:pointer;font-size:14px}
  .pe-add{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;cursor:pointer;color:var(--text-secondary);font-size:12.5px;font-weight:700;border-style:dashed}.pe-add .ic-flat{font-size:26px}
  .spec-row .sp-k{flex:1 1 120px}.spec-row .sp-v{flex:2 1 160px}
  /* ===== orders ===== */
  .ord-tabs{display:flex;gap:8px;overflow-x:auto;padding-bottom:8px;margin-bottom:12px}
  .ord-tab{flex-shrink:0;display:flex;align-items:center;gap:8px;padding:9px 14px;border-radius:11px;border:1px solid var(--border-strong);background:var(--surface-3);color:var(--text-secondary);font-family:var(--font-body);font-size:13px;font-weight:800;cursor:pointer;white-space:nowrap}
  .ord-tab b{background:var(--surface);border-radius:8px;padding:0 8px;font-size:12px}
  .ord-tab.active{background:var(--c,var(--gold-500));border-color:var(--c,var(--gold-500));color:#fff}.ord-tab.active b{color:var(--text-primary)}
  .ord-badge{display:inline-block;padding:3px 11px;border-radius:100px;font-size:12px;font-weight:800;color:var(--c);background:rgba(128,128,160,.14);border:1px solid var(--c);white-space:nowrap}
  .ord-row{border-right:6px solid var(--c) !important}
  .ord-row[data-st="canceled"],.ord-row[data-st="returned"]{opacity:.75}
  .or-no{font-family:monospace;font-weight:800;font-size:13.5px;color:var(--text-primary)}.or-no:hover{color:var(--gold-500)}
  .or-sm{display:block;font-size:11.5px;color:var(--text-muted);font-weight:600}
  .or-total b{font-family:var(--font-head);font-size:14px}
  .or-pm{font-size:12.5px;font-weight:700}
  .pay-paid{color:#2FA36B!important}.pay-unpaid{color:#D4A017!important}.pay-refunded{color:#E5534B!important}
  .of-amt{width:130px}
  .ord-title{border-right-color:var(--c) !important;background:rgba(128,128,160,.1)}
  .ord-steps{display:flex;gap:8px;overflow-x:auto;margin-bottom:16px;padding-bottom:4px}
  .ord-step{flex:1;min-width:112px;display:flex;flex-direction:column;align-items:center;gap:6px;padding:10px 6px;border-radius:12px;background:var(--surface-2);border:1px solid var(--border);font-size:12px;font-weight:700;color:var(--text-muted);text-align:center}
  .ord-step i{width:28px;height:28px;border-radius:50%;background:var(--surface-3);border:1px solid var(--border-strong);display:flex;align-items:center;justify-content:center;font-style:normal;font-weight:800}
  .ord-step.done{color:#2FA36B;border-color:rgba(47,163,107,.5)}.ord-step.done i{background:#1F7A4D;color:#fff;border-color:#1F7A4D}
  .ord-step.now{color:var(--gold-500);border-color:var(--gold-500);background:rgba(247,153,12,.1)}.ord-step.now i{background:var(--gold-500);color:var(--on-gold);border-color:var(--gold-500)}
  .ord-sum{display:flex;justify-content:flex-start;margin-top:14px}
  .ord-sum-box{width:340px;max-width:100%;border:1px solid var(--border-strong);border-radius:12px;padding:12px 14px;background:var(--surface-3)}
  .ord-sum-r{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:6px 0;font-size:13.5px}.ord-sum-r span{color:var(--text-secondary);font-weight:700}
  .ord-sum-r input{width:140px;text-align:left}
  .ord-sum-g{border-top:1px solid var(--border-strong);margin-top:6px;padding-top:10px;font-size:15px}.ord-sum-g b{color:var(--gold-500);font-family:var(--font-head);font-size:16px}
  .od-qty{width:70px;text-align:center}
  .or-note{padding:10px 12px;border-radius:10px;background:var(--surface-3);font-size:13.5px;min-height:40px}
  .ord-tl{display:flex;flex-direction:column;gap:0}
  .ord-tl-i{display:flex;gap:12px;padding:10px 0;border-bottom:1px solid var(--border);align-items:flex-start;font-size:13.5px}
  .ord-tl-i i{width:12px;height:12px;border-radius:50%;margin-top:7px;flex-shrink:0}
  @media (max-width:1280px){
    .pr-grid,.or-grid{grid-template-columns:1fr 1fr;gap:10px 14px}
    .cust-head.pr-grid,.cust-head.or-grid{display:none}
    .pr-grid>.cr-sel,.or-grid>.cr-sel{grid-column:1/-1}
    .pr-grid>.pr-img,.pr-grid>.pr-info{grid-column:1/-1}
    .pr-img{width:72px;height:72px}
    .pr-grid>.cust-actions,.or-grid>.cust-actions{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:6px}
    .or-grid>.cr-cell:nth-child(4){grid-column:1/-1}
    .prod-stats{grid-template-columns:repeat(3,1fr)!important}
  }
  @media (max-width:760px){
    .st-grid{grid-template-columns:1fr}
    .prod-stats{grid-template-columns:1fr 1fr!important}
    .ord-sum-box{width:100%}
    .st-savebar .btn{flex:1}
    .st-savebar{padding-inline-start:70px}
    .adm-mo-box{padding:16px}
  }

  /* ===== sync chip ===== */
  .adm-sync{display:flex;align-items:center;gap:7px;padding:8px 12px;border-radius:12px;border:1px solid var(--border-strong);background:var(--surface-3);color:var(--text-primary);font-family:var(--font-body);font-size:12.5px;font-weight:800;cursor:pointer;flex-shrink:0;white-space:nowrap}
  .adm-sync small{color:var(--text-muted);font-weight:700;font-size:11.5px}
  .adm-sync:hover{border-color:var(--gold-500)}
  .adm-sync.spin .ic-flat{animation:admspin 1s linear infinite}
  @keyframes admspin{to{transform:rotate(-360deg)}}
  @media (max-width:1250px){ .adm-sync-t{display:none} }
  /* ===== reports ===== */
  .rp2-cards{grid-template-columns:repeat(6,1fr)!important}
  .rp2-chart{display:flex;align-items:flex-end;gap:6px;height:170px;overflow-x:auto;padding-top:10px}
  .rp2-col{flex:1 0 26px;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:4px;min-width:26px}
  .rp2-col i{display:block;width:70%;max-width:26px;background:linear-gradient(0deg,var(--gold-500),#FFC65C);border-radius:6px 6px 2px 2px}
  .rp2-col em{font-style:normal;font-size:10.5px;color:var(--text-secondary);font-weight:700}
  .rp2-col span{font-size:10.5px;color:var(--text-muted)}
  .rp2-row{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1.6fr) auto;gap:10px;align-items:center;padding:6px 0;font-size:13px}
  .rp2-l{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:700}
  .rp2-b{height:9px;border-radius:6px;background:var(--surface-3);overflow:hidden}.rp2-b i{display:block;height:100%;background:linear-gradient(90deg,#2A3D8F,#5AA9FF);border-radius:6px}
  .rp2-v{font-size:12px;color:var(--text-secondary);font-weight:700;white-space:nowrap}
  .rp2-split{height:14px;border-radius:8px;background:var(--cheque-color,#D4A017);overflow:hidden;margin-bottom:12px}.rp2-split i{display:block;height:100%;background:#2A7BE0}
  /* ===== system ===== */
  .sv-row{display:flex;align-items:center;gap:12px;padding:14px 16px;border:1px solid var(--border);border-radius:12px;background:var(--surface-2);margin-bottom:10px;flex-wrap:wrap}
  .sv-dot{width:12px;height:12px;border-radius:50%;flex-shrink:0;background:#9497B0}.sv-dot.ok{background:#2FA36B;box-shadow:0 0 0 4px rgba(47,163,107,.2)}.sv-dot.warn{background:#D4A017;box-shadow:0 0 0 4px rgba(212,160,23,.2)}.sv-dot.bad{background:#E5534B;box-shadow:0 0 0 4px rgba(229,83,75,.2)}
  .sv-main{flex:1 1 200px;min-width:0}.sv-main b{display:block;font-size:14.5px}.sv-main small{color:var(--text-muted);font-size:12.5px;font-weight:600}
  .sv-ping{font-size:12px;color:#2FA36B;font-weight:800;direction:ltr}
  .lg-row{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid var(--border);flex-wrap:wrap;font-size:13px}
  .lg-row:last-child{border-bottom:none}.lg-t{color:var(--text-muted);font-size:12px;min-width:118px}.lg-u{min-width:88px}.lg-x{flex:1 1 220px;color:var(--text-secondary)}
  /* ===== cms ===== */
  .bn-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:14px}
  .bn-card{border:1px solid var(--border-strong);border-radius:14px;background:var(--surface-2);overflow:hidden}.bn-card.off{opacity:.55}
  .bn-img{height:120px;background:var(--surface-3);display:flex;align-items:center;justify-content:center;color:var(--text-muted);font-size:26px}.bn-img img{width:100%;height:100%;object-fit:cover}
  .bn-body{padding:12px 14px}.bn-body b{display:block;font-size:14.5px}.bn-body small{color:var(--text-muted);font-size:12.5px}
  .bn-act{display:flex;gap:6px;align-items:center;padding:0 14px 12px;flex-wrap:wrap}
  .pg-grid{display:grid;grid-template-columns:minmax(0,3fr) 130px 80px 130px;gap:10px;align-items:center}
  .faq-grid{grid-template-columns:minmax(0,3.2fr) 110px 70px 170px}
  .pg-row{padding:12px 14px}
  /* ===== marketing ===== */
  .cp-prev{padding:14px;border-radius:14px;background:var(--surface-3);border:1px dashed var(--gold-500);font-size:13.5px;line-height:2;min-height:70px;white-space:pre-wrap}
  .cp-rlist{max-height:260px;overflow:auto}
  .ct-grid{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1.6fr) 110px 110px 84px 210px;gap:10px;align-items:center}
  .cart-row{padding:12px 14px}
  .ct-grid .cust-actions{display:flex;gap:6px;flex-wrap:wrap}
  @media (max-width:1280px){
    .rp2-cards{grid-template-columns:repeat(3,1fr)!important}
    .pg-grid,.faq-grid,.ct-grid{grid-template-columns:1fr 1fr}
    .pg-grid>.cr-cell:first-child,.faq-grid>.cr-cell:first-child,.ct-grid>.cr-cell:first-child,.ct-grid>.cust-actions,.pg-grid>.cust-actions{grid-column:1/-1}
  }
  @media (max-width:760px){
    .rp2-cards{grid-template-columns:1fr 1fr!important}
    .bn-grid{grid-template-columns:1fr}
    .rp2-row{grid-template-columns:1fr 1fr;}
    .rp2-row .rp2-b{grid-column:1/-1;order:3}
  }
/* mobile */
html{-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:transparent}
body{overflow-x:hidden}
a,button,.ptab,.qty-btn,.dtab,.adm-nav,.ctab,.cust-mini,.sm-mode{touch-action:manipulation}
img,svg,video{max-width:100%}
html.guest .sm-modes{display:none}
.rz-lock{display:block;margin:8px 0;padding:9px 10px;border-radius:9px;border:1px dashed var(--gold-500);color:var(--gold-500);font-size:12px;font-weight:700;text-align:center;cursor:pointer}
.rz-empty{padding:26px;text-align:center;color:var(--text-muted);font-size:14px}
.rz-toast{position:fixed;left:50%;bottom:calc(20px + env(safe-area-inset-bottom));transform:translateX(-50%);background:var(--surface-2);color:var(--text-primary);border:1px solid var(--gold-500);padding:11px 18px;border-radius:12px;font-size:13.5px;z-index:100000;max-width:90vw;box-shadow:0 10px 30px rgba(0,0,0,.35)}
.rz-toast.bad{border-color:#e53935}
.rz-announce{background:var(--gold-500);color:var(--on-gold);text-align:center;padding:8px 12px;font-size:13px;font-weight:700}
@media (max-width:760px){
  input,select,textarea{font-size:16px!important}
  .btn,button{min-height:42px}
  .qty-btn{min-width:38px;min-height:38px}
  header.site{padding-top:env(safe-area-inset-top)}
  .page{padding-bottom:calc(8px + env(safe-area-inset-bottom))}
  .dash-main table,.dash-panel table{display:block;overflow-x:auto;-webkit-overflow-scrolling:touch}
  .dash-main table td,.dash-main table th{white-space:nowrap}
  .cart-item{flex-direction:column;align-items:stretch}
  .cart-item-info{width:100%;flex-basis:100%}
  .cart-item-right{justify-content:space-between;width:100%}
  .sm-mode{min-height:44px}
  .sm-lbl{font-size:12.5px}
  .rz-toast{width:calc(100vw - 28px);text-align:center}
  .dtab-panel .cust-mini{padding:8px 10px;margin:2px 0}
}
@media (max-width:420px){
  .prod-card,.pc-card{min-width:0}
  .auth-form-wrap{padding:16px 12px}
}
@supports (height:100dvh){
  .adm-shell{min-height:100dvh}
  .admin-chat-shell{height:calc(100dvh - 210px)}
  @media (max-width:900px){.adm-side{height:100dvh}.admin-chat-shell{height:calc(100dvh - 200px)}}
  @media (max-width:760px){.admin-chat-shell{height:calc(100dvh - 170px)}}
}
.chat-panel{max-width:calc(100vw - 24px)}
.pos-sum-row .debt{color:#D93025}.pos-sum-row .credit{color:#1F7A4D}.pos-sum-row .zero{color:var(--text-muted)}
.pos-product-row{flex-direction:column!important;align-items:stretch!important;gap:8px!important}
.pos-product-row .pos-product-name{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;width:100%;margin:0}
.pos-row2{display:flex;align-items:center;gap:12px;width:100%}
.pos-row2 .pos-product-info{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px;align-items:flex-start}
.pos-row2 .pos-product-prices{margin:0}
.pos-row2 .pos-product-img{flex-shrink:0}
.pos-row2 .pos-modes{flex-shrink:0}
.pos-mode{flex-direction:column!important;align-items:stretch!important;gap:5px!important}
.pos-mode-lbl{min-width:0!important;display:flex;justify-content:space-between;align-items:baseline;gap:8px}
.pos-mode-lbl b{display:inline!important;font-size:13.5px!important}
.pos-mode .pos-product-qty{justify-content:space-between}
.pos-barcode{font-size:11.5px!important;direction:ltr;text-align:right;word-break:break-all;line-height:1.4}
html.rz-adm-boot header.site,html.rz-adm-boot footer,html.rz-adm-boot .hero,html.rz-adm-boot #page-home,html.rz-adm-boot .rz-announce,html.rz-adm-boot #chatFab,html.rz-adm-boot #chatPanel,html.rz-adm-boot #welcomeOverlay{display:none!important}
#rzAdmBoot{display:none;position:fixed;inset:0;z-index:99998;background:#0f1a3a;align-items:center;justify-content:center}
html.rz-adm-boot #rzAdmBoot{display:flex}
#rzAdmBoot .sp{width:34px;height:34px;border-radius:50%;border:3px solid rgba(245,197,66,.25);border-top-color:#f5c542;animation:rzspin .7s linear infinite}
@keyframes rzspin{to{transform:rotate(360deg)}}
.rz-lightbox{position:fixed;inset:0;z-index:99999;background:rgba(0,0,0,.82);display:flex;align-items:center;justify-content:center;opacity:0;visibility:hidden;transition:.2s;cursor:zoom-out;padding:16px}
.rz-lightbox.show{opacity:1;visibility:visible}
.rz-lightbox img{max-width:90vw;max-height:90vh;object-fit:contain;border-radius:10px;box-shadow:0 20px 60px rgba(0,0,0,.5)}
.adm-users-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr .8fr 1.4fr;gap:10px;align-items:center}
.adm-perm-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px 14px}
.adm-perm-item{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--text-secondary)}
.adm-perm-item.disabled{opacity:.5}
.cust-action-btn.danger{color:#e53935}
@media(max-width:900px){.adm-users-grid{grid-template-columns:1fr}.adm-users-grid>div{display:flex;justify-content:space-between;padding:2px 0}.adm-users-grid>div:not(:last-child)::before{content:attr(data-label)}}
/* دیتای حسابداری: وسط‌چین کردن همه‌ی ستون‌ها، لیست‌ها و باکس‌ها */
.adm-view[data-view="accounting"] .dcard{text-align:center}
.adm-view[data-view="accounting"] .sync-cell{text-align:center;display:flex;align-items:center;justify-content:center;flex-direction:column}
.adm-view[data-view="accounting"] .sync-code{text-align:center}
.adm-view[data-view="accounting"] .sync-name{text-align:center;width:100%}
.adm-view[data-view="accounting"] .sync-cat{text-align:center;width:100%}
.adm-view[data-view="accounting"] .sync-row.sync-head .sync-cell{justify-content:center}
.adm-view[data-view="accounting"] .admin-search-box{margin-left:auto;margin-right:auto}
.adm-view[data-view="accounting"] .cust-tabs{justify-content:center;display:flex}
.adm-view[data-view="accounting"] .sync-meta{text-align:center}
.adm-view[data-view="accounting"] .sync-header{text-align:center;flex-direction:column;align-items:center;gap:10px}
.adm-view[data-view="accounting"] .sync-header-actions{align-items:center}
.adm-view[data-view="accounting"] .sync-table-wrap{overflow-x:auto}
.adm-view[data-view="accounting"] #syncTableBody .sync-row,
.adm-view[data-view="accounting"] #syncCustTableBody .sync-row{
  background:var(--surface-2);border:1px solid var(--border);border-radius:12px;
  margin-bottom:10px;padding:14px 16px;border-bottom:1px solid var(--border) !important;
}
.adm-view[data-view="accounting"] #syncTableBody .sync-row:last-child,
.adm-view[data-view="accounting"] #syncCustTableBody .sync-row:last-child{margin-bottom:0}
.adm-view[data-view="accounting"] #syncTableBody .sync-row:hover,
.adm-view[data-view="accounting"] #syncCustTableBody .sync-row:hover{background:var(--surface-3);border-color:var(--gold-500)}
.adm-view[data-view="accounting"] .sync-row.sync-head{background:none;border:none;margin-bottom:6px;padding:10px 16px}
.acc-cust-grid .sync-row{grid-template-columns:110px 2.2fr 130px 150px !important}
#ckAddrList{display:flex;flex-direction:column;gap:10px}
.ck-addr-card{display:flex;align-items:flex-start;gap:10px;padding:13px 14px;border:1px solid var(--border);border-radius:12px;cursor:pointer;background:var(--surface-2)}
.ck-addr-card.active{border-color:var(--gold-500);background:var(--surface-3)}
.ck-addr-card .rd{width:17px;height:17px;border-radius:50%;border:2px solid var(--border-strong,var(--border));flex-shrink:0;margin-top:2px;position:relative}
.ck-addr-card.active .rd{border-color:var(--gold-500)}
.ck-addr-card.active .rd::after{content:"";position:absolute;inset:3px;border-radius:50%;background:var(--gold-500)}
.ck-addr-card b{display:block;font-size:13.5px;color:var(--text-primary);margin-bottom:3px}
.ck-addr-card span{font-size:12px;color:var(--text-muted);line-height:1.8}
.ck-ship-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px 14px;border:1px solid var(--border);border-radius:12px;cursor:pointer;background:var(--surface-2);margin-bottom:10px}
.ck-ship-row.active{border-color:var(--gold-500);background:var(--surface-3)}
.ck-ship-row .rd{width:17px;height:17px;border-radius:50%;border:2px solid var(--border-strong,var(--border));flex-shrink:0;position:relative}
.ck-ship-row.active .rd{border-color:var(--gold-500)}
.ck-ship-row.active .rd::after{content:"";position:absolute;inset:3px;border-radius:50%;background:var(--gold-500)}
.ck-ship-name{font-size:13.5px;font-weight:700;color:var(--text-primary)}
.ck-ship-eta{font-size:11.5px;color:var(--text-muted);margin-top:2px}
.ck-ship-cost{font-size:13px;font-weight:800;color:var(--text-primary)}
.ck-invoice-items{display:flex;flex-direction:column;gap:6px;max-height:220px;overflow-y:auto;margin-bottom:10px}
.ck-invoice-row{display:flex;justify-content:space-between;gap:8px;font-size:12.5px;color:var(--text-secondary)}

.lg-list{display:flex;flex-direction:column;gap:8px;margin:10px 0}
.lg-row{display:flex;align-items:center;gap:12px;padding:12px 14px;border:1px solid var(--border);border-radius:12px;background:var(--surface-2)}
.lg-ic{width:34px;height:34px;border-radius:10px;flex-shrink:0;display:flex;align-items:center;justify-content:center;background:var(--surface-3);color:var(--text-secondary)}
.lg-ic .ic-flat{width:17px;height:17px}
.lg-ic-order{background:rgba(31,122,77,.15);color:#1F7A4D}
.lg-ic-product{background:rgba(184,98,10,.15);color:#B8620A}
.lg-ic-customer{background:rgba(46,111,214,.15);color:#2E6FD6}
.lg-ic-settings{background:rgba(120,120,130,.18);color:#8a8a96}
.lg-ic-sms{background:rgba(184,98,10,.15);color:#B8620A}
.lg-ic-sync{background:rgba(46,111,214,.15);color:#2E6FD6}
.lg-ic-cms{background:rgba(184,98,10,.15);color:#B8620A}
.lg-ic-marketing{background:rgba(217,48,37,.13);color:#D93025}
.lg-ic-backup{background:rgba(31,122,77,.15);color:#1F7A4D}
.lg-ic-auth{background:rgba(120,120,130,.18);color:#8a8a96}
.lg-mid{flex:1;min-width:0}
.lg-top{display:flex;align-items:center;gap:8px;margin-bottom:2px}
.lg-u{font-size:13px}
.lg-x{font-size:13px;color:var(--text-secondary);line-height:1.7}
.lg-t{font-size:11.5px;color:var(--text-muted);white-space:nowrap;flex-shrink:0}
.lg-user-sel{padding:7px 12px;border-radius:100px;border:1px solid var(--border-strong);background:var(--surface-3);color:var(--text-secondary);font-family:var(--font-body);font-size:12.5px}
@media(max-width:640px){.lg-row{flex-wrap:wrap}.lg-t{width:100%;order:3;padding-right:46px}}
/* فروش حضوری سریع: عکس بزرگ‌تر، فونت درشت و بولد، برجسته‌سازی تراز مشتری */
.pos-row2 .pos-product-img{width:104px!important;height:104px!important;flex-shrink:0}
@media(max-width:760px){ .pos-row2 .pos-product-img{width:78px!important;height:78px!important} }
#page-pos .pos-product-name{font-size:16.5px;font-weight:800}
#page-pos .pos-stock,#page-pos .pos-barcode{font-size:14px;font-weight:700}
#page-pos .pos-mode-lbl{font-size:14px!important;font-weight:700!important}
#page-pos .pos-mode-lbl b{font-size:17px!important;font-weight:800!important}
#page-pos .qty-val,#page-pos .pos-qty-val{font-size:16px!important;font-weight:800!important}
#page-pos .pos-cart-item-name{font-size:15.5px;font-weight:800}
#page-pos .pos-cart-barcode{font-size:13px;font-weight:700}
#page-pos .pos-cart-item-totals{font-size:16px;font-weight:800}
#page-pos .pos-sum-row{font-size:15px!important;font-weight:700!important}
#page-pos .pos-sum-row b{font-size:17px!important;font-weight:800!important}
#page-pos .dash-panel h4,#page-pos .pos-customer-name,#page-pos .cust-mini{font-weight:800}
.pos-sum-row.pos-sum-highlight{
  border:none!important;margin-top:12px;padding:14px 16px!important;border-radius:14px;
  background:linear-gradient(135deg,rgba(245,197,66,.16),rgba(245,197,66,.06));
  border:1px solid var(--gold-500)!important;align-items:center;
}
.pos-sum-row.pos-sum-highlight span:first-child{font-size:14px!important;font-weight:800!important}
.pos-sum-row.pos-sum-highlight #posSumAfter{font-size:18px!important;font-weight:800!important}
.ord-bal-box{margin-top:14px;padding:12px 14px;border-radius:12px;background:linear-gradient(135deg,rgba(245,197,66,.16),rgba(245,197,66,.05));border:1px solid var(--gold-500);display:flex;flex-direction:column;gap:4px;font-size:12.5px}
.ord-bal-box span:nth-child(3){margin-top:6px;padding-top:8px;border-top:1px dashed var(--border)}
.ord-bal-box b{font-size:15px;font-weight:800}
.ord-bal-box b:last-child{font-size:16.5px}

/* فروش حضوری سریع: لیست دوستونه (کارت: عکس، نام + موجودی، دکمه‌های کم/زیاد) */
#page-pos #posProductList.pos-cards{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;align-items:stretch;box-sizing:border-box}
#page-pos #posProductList.pos-cards .pos-empty{grid-column:1/-1}
#page-pos #posProductList .pos-card{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:0!important;padding:0!important;overflow:hidden;background:var(--surface-2);border:1px solid var(--border);border-radius:14px;min-width:0}
#page-pos #posProductList .pos-card .pos-product-img{width:100%!important;height:auto!important;aspect-ratio:1/1;border-radius:0!important;flex-shrink:0;overflow:hidden;position:relative}
#page-pos #posProductList .pos-card .pos-product-img img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:0}
#page-pos #posProductList .pos-card .pos-product-img svg{width:38%;height:38%}
#page-pos #posProductList .pos-card-body{display:flex;flex-direction:column;gap:6px;padding:8px;flex:1;min-width:0}
#page-pos #posProductList .pos-card .pos-product-name{font-size:14.5px!important;font-weight:800!important;line-height:1.55;min-height:3.1em;white-space:normal!important;overflow:hidden!important;text-overflow:ellipsis!important;display:-webkit-box!important;-webkit-line-clamp:2;-webkit-box-orient:vertical;margin:0;width:100%}
#page-pos #posProductList .pos-card .pos-stock{align-self:flex-start;font-size:12.5px!important}
#page-pos #posProductList .pos-card .pos-modes{margin-top:auto;display:flex;flex-direction:column;gap:6px;width:100%}
#page-pos #posProductList .pos-card .pos-mode{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:5px!important;padding:6px;border:1px solid var(--border);border-radius:10px;background:var(--surface-3);min-width:0}
#page-pos #posProductList .pos-card .pos-mode-lbl{min-width:0!important;display:flex!important;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:2px 6px;font-size:13px!important}
#page-pos #posProductList .pos-card .pos-mode-lbl b{display:inline!important;font-size:14px!important}
#page-pos #posProductList .pos-card .pos-product-qty{width:100%;justify-content:space-between;gap:4px}
#page-pos #posProductList .pos-card .pos-qty-btn{width:38px!important;height:38px!important;flex:0 0 38px}
#page-pos #posProductList .pos-card .pos-qty-val{flex:1 1 auto;width:auto!important;min-width:0!important;padding:7px 2px!important}
@media (max-width:1024px){
  #page-pos #posProductList.pos-cards{width:100vw;margin-inline:calc(50% - 50vw);padding:0 3px;gap:6px}
}


/* دسته‌بندی‌های سایت: پنل مدیر */
.adm-view[data-view="categories"] .cat-blk{padding:14px}
.cat-row{display:flex;flex-direction:column;gap:10px}
.cat-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.cat-head b{font-size:14px;color:var(--text-primary)}
.cat-tools{display:flex;align-items:center;gap:6px;margin-right:auto}
.cat-tools [data-a="down"] svg{transform:rotate(-90deg)} .cat-tools [data-a="up"] svg{transform:rotate(90deg)}
.cat-grid{grid-template-columns:1fr 1fr!important}
.cat-linkf{grid-column:1/-1}
@media(min-width:1100px){.cat-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1.7fr)!important}.cat-linkf{grid-column:auto}}
.cat-toggle{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;border-radius:10px;border:1px solid var(--border);background:var(--surface-3);color:var(--text-primary);font:inherit;font-size:13px;font-weight:700;cursor:pointer}
.cat-toggle svg{width:16px;height:16px;transform:rotate(-90deg);transition:transform .15s}
.cat-toggle.open{border-color:var(--gold-500)} .cat-toggle.open svg{transform:rotate(90deg)}
.cat-link{display:flex;gap:8px;align-items:stretch}
.cat-link input{flex:1 1 auto;min-width:0}
.cat-link .btn{flex-shrink:0;white-space:nowrap}
@media(max-width:640px){.cat-grid{grid-template-columns:1fr!important}}
.cat-subs{margin:14px 10px 0 0;padding-right:12px;border-right:2px solid var(--border);display:flex;flex-direction:column;gap:14px}
.cat-sub-row{padding-bottom:14px;border-bottom:1px dashed var(--border)}
.cat-addsub{align-self:flex-start}
.filters .fgroup .fc-sub{padding-right:22px;font-size:.93em;opacity:.92}
.filters .fgroup small{opacity:.6}

.cat-in{margin-top:12px;padding:12px;border:1px solid var(--border);border-radius:12px;background:var(--surface-2)}
.cat-movef{margin:0!important;min-width:150px}
.cat-movef select{padding:6px 10px!important;font-size:13px!important;min-height:0!important}
.filters .fgroup .fc-group{font-weight:800;margin:12px 0 4px;font-size:.95em;color:var(--text-primary)}
.filters .fgroup .fc-group:first-child{margin-top:0}

/* انتخاب دسته‌بندی محصول (کادر جست‌وجوپذیر) */
.pe-combo{position:relative}
.pe-combo-list{position:absolute;inset-inline:0;top:calc(100% + 4px);z-index:60;max-height:260px;overflow:auto;background:var(--surface-2);border:1px solid var(--border);border-radius:12px;box-shadow:0 12px 30px rgba(0,0,0,.35)}
.pe-combo-list[hidden]{display:none}
.pe-opt{padding:9px 12px;cursor:pointer;border-bottom:1px solid var(--border)}
.pe-opt:last-child{border-bottom:none}
.pe-opt.act,.pe-opt:hover{background:var(--surface-3)}
.pe-opt small{display:block;opacity:.65;font-size:12px;margin-top:2px}
.pe-empty{padding:12px;color:var(--text-muted);font-size:13px}

.brand-row{display:flex;align-items:center;gap:8px;padding:6px 0}
.brand-row .field{flex:1 1 auto;margin:0}

.pe-cat3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
@media(max-width:760px){.pe-cat3{grid-template-columns:1fr}}
.pe-combo input:disabled{opacity:.55;cursor:not-allowed}
/* کادرهای جست‌وجوپذیر کوچک در نوار تغییر گروهی محصولات */
.cust-bulk .pe-combo.mini{position:relative;min-width:150px}
.cust-bulk .pe-combo.mini input[data-role="search"]{width:100%;padding:7px 10px;border-radius:9px;border:1px solid var(--border);background:var(--surface-3);color:var(--text-primary);font:inherit;font-size:13px}
.cust-bulk .pe-combo.mini .pe-combo-list{position:absolute;inset-inline:0;top:calc(100% + 4px);z-index:70;max-height:240px;overflow:auto;background:var(--surface-2);border:1px solid var(--border);border-radius:10px;box-shadow:0 12px 30px rgba(0,0,0,.35)}
.adm-mo-box.adm-mo-wide{max-width:520px}
.bulk-cat3{margin-bottom:16px;display:flex;flex-direction:column;gap:16px}
.bulk-cat3 .pe-combo{width:100%}
.bulk-cat3 .pe-combo input[data-role=search]{padding:11px 13px;font-size:14.5px}
.bulk-cat3 .pe-combo-list{max-height:280px}
/* اسپینر روی دکمه‌های ورود/ثبت‌نام هنگام پردازش */
.rz-btn-busy{pointer-events:none;opacity:.85;display:inline-flex!important;align-items:center;justify-content:center;gap:8px}
.rz-spin{width:16px;height:16px;border-radius:50%;border:2px solid rgba(255,255,255,.35);border-top-color:#fff;animation:adminSpin .7s linear infinite;flex-shrink:0}

  .brand-slot.has-img{border:1px solid var(--border);opacity:1;background:#fff;padding:8px;overflow:hidden}
  .brand-slot.has-img img{max-width:100%;max-height:100%;object-fit:contain;display:block}

  .dropdown-submenu .dm-item{position:relative}
  .dropdown-menu .dm-all{font-weight:800;color:var(--gold-500,#f5c542)}
  .dropdown-menu .dm-sep{height:1px;background:var(--border);margin:6px 4px}

  /* موبایل: منوی کشویی کناری */
  @media (max-width:980px){
    #mobileNavPanel{position:fixed;top:0;right:0;bottom:0;width:min(86vw,340px);max-height:none;z-index:1001;display:flex;flex-direction:column;
      background:var(--surface-2);border-left:1px solid var(--border);box-shadow:-10px 0 40px rgba(0,0,0,.35);transform:translateX(105%);transition:transform .25s ease;
      overflow-y:auto;overscroll-behavior:contain;padding:calc(10px + env(safe-area-inset-top)) 0 calc(16px + env(safe-area-inset-bottom))}
    #mobileNavPanel.open{transform:translateX(0);max-height:none}
    #mnpVeil{position:fixed;inset:0;background:rgba(0,0,0,.5);z-index:1000;opacity:0;visibility:hidden;transition:.25s}
    #mobileNavPanel.open + #mnpVeil{opacity:1;visibility:visible}
    html.mnp-lock,html.mnp-lock body{overflow:hidden}
    .mnp-head{display:flex;align-items:center;justify-content:space-between;padding:4px 16px 10px}
    .mnp-head b{font-size:15px;color:var(--text-primary)}
    .mnp-close{width:36px;height:36px;border-radius:9px;border:1px solid var(--border);background:none;color:var(--text-primary);font-size:22px;line-height:1;cursor:pointer}
    .mnp-quick{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:0 12px 12px;border-bottom:1px solid var(--border)}
    #mobileNavPanel .mnp-quick a{border:1px solid var(--border);border-radius:9px;padding:8px 10px;font-size:12px;justify-content:center;text-align:center;gap:5px;color:var(--text-primary)}
    #mobileNavPanel .mnp-quick a .ic-flat{width:14px;height:14px}
    .mnp-title{padding:14px 16px 6px;font-weight:800;font-size:14px;color:var(--gold-500,#f5c542)}
    .mnp-cats details{border-bottom:1px solid var(--border)}
    .mnp-cats details details{border-bottom:none;border-top:1px solid var(--border);background:rgba(127,127,127,.05)}
    .mnp-cats summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;padding:13px 16px;font-size:14px;color:var(--text-primary);font-weight:700}
    .mnp-cats details details summary{font-weight:600;font-size:13.5px;padding-right:28px}
    .mnp-cats summary::-webkit-details-marker{display:none}
    .mnp-cats summary::after{content:"◂";font-size:11px;color:var(--text-muted);transition:transform .2s}
    .mnp-cats details[open] > summary::after{transform:rotate(-90deg)}
    .mnp-cats details[open] > summary{color:var(--gold-500,#f5c542)}
    #mobileNavPanel .mnp-cats a{border-top:1px solid var(--border);padding:11px 16px 11px 16px;padding-right:30px;font-size:13px;color:var(--text-secondary,var(--text-primary))}
    #mobileNavPanel .mnp-cats details details a{padding-right:44px}
    #mobileNavPanel .mnp-cats > a{padding-right:16px;font-weight:700;font-size:14px;color:var(--text-primary);border-top:none;border-bottom:1px solid var(--border)}
    #mobileNavPanel .mnp-cats a.mnp-all{color:var(--gold-500,#f5c542);font-weight:700}
  }

  /* ================= انیمیشن‌ها و افکت‌های ریز ================= */
  @media (prefers-reduced-motion:no-preference){
    /* منوی موبایل: ورود فنری + ورود پلکانی آیتم‌ها */
    @media (max-width:980px){
      #mobileNavPanel{transition:transform .45s cubic-bezier(.22,1.2,.36,1),box-shadow .45s;border-radius:22px 0 0 22px}
      #mobileNavPanel:not(.open){transition:transform .3s cubic-bezier(.55,0,.8,.3)}
      #mnpVeil{backdrop-filter:blur(0);-webkit-backdrop-filter:blur(0);transition:opacity .35s,visibility .35s,backdrop-filter .35s}
      #mobileNavPanel.open + #mnpVeil{backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px)}
      #mobileNavPanel .mnp-head,#mobileNavPanel .mnp-quick a,#mobileNavPanel .mnp-title,#mobileNavPanel .mnp-cats > *{opacity:0;transform:translateX(24px)}
      #mobileNavPanel.open .mnp-head,#mobileNavPanel.open .mnp-quick a,#mobileNavPanel.open .mnp-title,#mobileNavPanel.open .mnp-cats > *{animation:rzSlideIn .45s cubic-bezier(.2,.9,.3,1.15) forwards}
      #mobileNavPanel.open .mnp-quick a:nth-child(1){animation-delay:.08s}
      #mobileNavPanel.open .mnp-quick a:nth-child(2){animation-delay:.12s}
      #mobileNavPanel.open .mnp-quick a:nth-child(3){animation-delay:.16s}
      #mobileNavPanel.open .mnp-quick a:nth-child(4){animation-delay:.2s}
      #mobileNavPanel.open .mnp-title{animation-delay:.24s}
      #mobileNavPanel.open .mnp-cats > *:nth-child(1){animation-delay:.28s}
      #mobileNavPanel.open .mnp-cats > *:nth-child(2){animation-delay:.32s}
      #mobileNavPanel.open .mnp-cats > *:nth-child(3){animation-delay:.36s}
      #mobileNavPanel.open .mnp-cats > *:nth-child(4){animation-delay:.4s}
      #mobileNavPanel.open .mnp-cats > *:nth-child(5){animation-delay:.44s}
      #mobileNavPanel.open .mnp-cats > *:nth-child(n+6){animation-delay:.48s}
      .mnp-close{transition:transform .35s cubic-bezier(.3,1.5,.5,1),background .2s}
      .mnp-close:active{transform:rotate(90deg) scale(.9)}
      #mobileNavPanel.open .mnp-close{animation:rzSpinIn .5s .1s both}
      .mnp-cats details[open] > :not(summary){animation:rzDrop .28s ease both}
      #mobileNavPanel .mnp-quick a:active,#mobileNavPanel .mnp-cats a:active,.mnp-cats summary:active{transform:scale(.97);background:rgba(245,197,66,.10)}
      .hamburger-btn{transition:transform .2s}
      .hamburger-btn:active{transform:scale(.88) rotate(-8deg)}
    }
    @keyframes rzSlideIn{to{opacity:1;transform:none}}
    @keyframes rzSpinIn{from{transform:rotate(-180deg) scale(.4);opacity:0}to{transform:none;opacity:1}}
    @keyframes rzDrop{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}

    /* کارت محصول */
    .prod-card,.pc-card{transition:transform .28s cubic-bezier(.2,.9,.3,1.2),box-shadow .28s,border-color .28s}
    .prod-card:hover,.pc-card:hover{transform:translateY(-5px);box-shadow:0 16px 34px rgba(10,18,48,.16);border-color:var(--gold-500,#f5c542)}
    .car-group{padding-top:8px;padding-bottom:14px}
    .prod-img,.pc-img{overflow:hidden}
    .prod-img img,.pc-img img{transition:transform .5s cubic-bezier(.2,.8,.2,1)}
    .prod-card:hover .prod-img img,.pc-card:hover .pc-img img{transform:scale(1.08)}
    .prod-img .ic-flat,.pc-img .ic-flat{transition:transform .45s cubic-bezier(.3,1.5,.5,1)}
    .prod-card:hover .prod-img .ic-flat,.pc-card:hover .pc-img .ic-flat{transform:scale(1.15) rotate(-6deg)}
    .prod-body .name,.pc-body .name{transition:color .2s}
    .prod-card:hover .name,.pc-card:hover .name{color:var(--accent-text)}
    .add-cart-btn,.qty-btn{transition:transform .18s,filter .18s}
    .add-cart-btn:hover{transform:scale(1.08);filter:brightness(1.08)}
    .add-cart-btn:active,.qty-btn:active{transform:scale(.88)}

    /* کارت دسته‌بندی و ارزش‌ها */
    .cat-card{transition:transform .28s cubic-bezier(.2,.9,.3,1.2),box-shadow .28s,border-color .28s}
    .cat-card .ic{transition:transform .45s cubic-bezier(.3,1.6,.5,1)}
    .cat-card:hover .ic{transform:translateY(-3px) scale(1.12) rotate(-6deg)}
    .cat-card:active{transform:scale(.97)}
    .val-card{transition:transform .28s,box-shadow .28s,border-color .28s}
    .val-card:hover{transform:translateY(-4px);box-shadow:0 14px 30px rgba(10,18,48,.12);border-color:var(--gold-500,#f5c542)}

    /* دکمه‌ها و لینک‌ها */
    .btn{transition:transform .18s,box-shadow .2s,background .2s,color .2s,border-color .2s}
    .btn:hover{transform:translateY(-2px);box-shadow:0 8px 18px rgba(0,0,0,.14)}
    .btn:active{transform:translateY(0) scale(.97)}
    .btn-gold{position:relative;overflow:hidden}
    .btn-gold::after{content:"";position:absolute;top:0;bottom:0;width:40%;left:-60%;background:linear-gradient(100deg,transparent,rgba(255,255,255,.45),transparent);transform:skewX(-20deg);pointer-events:none}
    .btn-gold:hover::after{animation:rzShine .7s ease}
    @keyframes rzShine{to{left:130%}}
    .sec-link{transition:letter-spacing .25s,color .2s}
    .sec-link:hover{letter-spacing:.3px;color:var(--accent-text)}
    .navlinks > li > a::after{content:"";position:absolute;right:0;left:0;bottom:-2px;height:2px;border-radius:2px;background:var(--gold-500,#f5c542);transform:scaleX(0);transform-origin:right;transition:transform .25s}
    .navlinks > li > a:hover::after{transform:scaleX(1)}
    .dropdown-menu a{transition:background .18s,padding .2s,color .18s}
    .dropdown-menu a:hover{padding-right:16px}
    .logo .mark{transition:transform .5s cubic-bezier(.3,1.6,.5,1)}
    .logo:hover .mark{transform:rotate(-12deg) scale(1.08)}
    .cart-btn,.hamburger-btn{transition:transform .2s,background .2s}
    .cart-btn:hover{transform:translateY(-2px)}
    .cart-badge{animation:rzPop .4s cubic-bezier(.3,1.8,.5,1)}
    @keyframes rzPop{from{transform:scale(0)}to{transform:scale(1)}}
    .ctab{transition:background .2s,color .2s,transform .18s}
    .ctab:hover{transform:translateY(-2px)}
    .car-arrow{transition:transform .2s,background .2s}
    .car-arrow:hover{transform:scale(1.1)}

    /* سوالات متداول و برندها */
    .faq-item{transition:border-color .25s,box-shadow .25s,transform .25s}
    .faq-item:hover{transform:translateX(-3px);box-shadow:0 8px 20px rgba(0,0,0,.08)}
    .faq-answer{transition:max-height .35s ease,opacity .35s}
    .faq-item:not(.open) .faq-answer{opacity:0}
    .brand-slot.has-img{transition:transform .3s,filter .3s,box-shadow .3s;filter:grayscale(.6)}
    .brand-slot.has-img:hover{transform:scale(1.1);filter:none;box-shadow:0 8px 20px rgba(0,0,0,.18)}

    /* ورودی‌ها */
    input,select,textarea{transition:border-color .2s,box-shadow .2s}
    input:focus,select:focus,textarea:focus{box-shadow:0 0 0 3px rgba(245,197,66,.22)}
    .search-box{transition:box-shadow .3s,transform .3s}
    .search-box:focus-within{transform:scale(1.01);box-shadow:0 10px 30px rgba(245,197,66,.18)}

    /* ظاهر شدن بخش‌ها هنگام اسکرول و تعویض صفحه */
    .rz-reveal{opacity:0;transform:translateY(22px);transition:opacity .6s ease,transform .6s cubic-bezier(.2,.8,.2,1)}
    .rz-reveal.rz-in{opacity:1;transform:none}
    .page.active{animation:rzPageIn .35s ease backwards}
    @keyframes rzPageIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
    html.admin-page .page.active{animation:none}
    .toast,.rz-toast{animation:rzToast .35s cubic-bezier(.3,1.5,.5,1)}
    @keyframes rzToast{from{opacity:0;transform:translateY(12px) scale(.95)}to{opacity:1;transform:none}}
  }

  /* تغییر تم: دایره‌ی بازشونده + چرخش آیکون */
  ::view-transition-old(root),::view-transition-new(root){animation:none;mix-blend-mode:normal}
  ::view-transition-old(root){z-index:1}
  ::view-transition-new(root){z-index:2}
  html.rz-theme-fade *,html.rz-theme-fade *::before,html.rz-theme-fade *::after{transition:background-color .5s ease,color .5s ease,border-color .5s ease,fill .5s ease,stroke .5s ease!important}
  @media (prefers-reduced-motion:no-preference){
    .theme-toggle.rz-theme-spin .ic-flat,.theme-toggle.rz-theme-spin svg{animation:rzThemeSpin .6s cubic-bezier(.3,1.5,.5,1)}
    @keyframes rzThemeSpin{0%{transform:rotate(0) scale(1)}40%{transform:rotate(200deg) scale(.5);opacity:.3}100%{transform:rotate(360deg) scale(1);opacity:1}}
  }

  /* کادر تعداد قابل تایپ */
  .qty-stepper .qty-inp{width:44px;min-width:0;border:none;background:transparent;color:inherit;font:inherit;font-weight:700;text-align:center;padding:0;outline:none;-moz-appearance:textfield;border-radius:6px}
  .qty-stepper .qty-inp:focus{background:rgba(245,197,66,.14);box-shadow:none}
  .qty-stepper .qty-inp:disabled{opacity:.5}
  .qty-stepper.qty-max{animation:rzShake .4s}
  @keyframes rzShake{20%{transform:translateX(-4px)}40%{transform:translateX(4px)}60%{transform:translateX(-3px)}80%{transform:translateX(2px)}}
  .qty-max-note{font-size:11.5px;color:#e53935;margin-top:4px;text-align:center;animation:rzDrop .25s ease both}

  /* فیلترهای کاتالوگ در موبایل */
  #rzFilterFab,#rzFilterVeil,.filters .mf-head,.filters .mf-foot{display:none}
  @media (max-width:980px){
    html.rz-cat-on #rzFilterFab{display:flex;position:fixed;right:16px;bottom:calc(20px + env(safe-area-inset-bottom));z-index:900;align-items:center;gap:7px;padding:12px 18px;border-radius:100px;border:none;
      background:var(--gold-500,#f5c542);color:#111;font:inherit;font-weight:800;font-size:14px;box-shadow:0 10px 26px rgba(0,0,0,.3);cursor:pointer;animation:rzPop .4s cubic-bezier(.3,1.6,.5,1)}
    #rzFilterFab .ic-flat{width:18px;height:18px}
    #rzFilterFab .mf-badge{font-style:normal;min-width:20px;height:20px;border-radius:10px;background:#111;color:#f5c542;font-size:11.5px;display:inline-flex;align-items:center;justify-content:center;padding:0 5px}
    html.mf-open #rzFilterFab{display:none}
    #page-catalog .filters{position:fixed;left:0;right:0;bottom:0;z-index:1002;margin:0;max-height:82vh;max-height:82dvh;overflow-y:auto;overscroll-behavior:contain;
      border-radius:22px 22px 0 0;padding:0 18px;transform:translateY(105%);transition:transform .38s cubic-bezier(.22,1.1,.36,1);box-shadow:0 -12px 40px rgba(0,0,0,.35);background:var(--surface-2)}
    html.mf-open #page-catalog .filters{transform:none}
    html.mf-open,html.mf-open body{overflow:hidden}
    #rzFilterVeil{display:block;position:fixed;inset:0;z-index:1001;background:rgba(0,0,0,.5);opacity:0;visibility:hidden;transition:.3s}
    html.mf-open #rzFilterVeil{opacity:1;visibility:visible}
    .filters .mf-head{display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:2;background:var(--surface-2);padding:14px 0 12px;margin-bottom:8px;border-bottom:1px solid var(--border)}
    .filters .mf-head::before{content:"";position:absolute;top:6px;left:50%;width:40px;height:4px;border-radius:4px;background:var(--border);transform:translateX(-50%)}
    .filters .mf-head b{font-size:16px}
    .filters .mf-x{width:34px;height:34px;border-radius:9px;border:1px solid var(--border);background:none;color:inherit;font-size:20px;cursor:pointer}
    .filters .mf-foot{display:flex;gap:8px;position:sticky;bottom:0;margin:14px -18px 0;padding:12px 18px calc(12px + env(safe-area-inset-bottom));background:var(--surface-2);border-top:1px solid var(--border)}
    .filters .mf-foot .mf-go{flex:1;justify-content:center}
    .filters .mf-clear{border:1px solid var(--border);background:none;color:inherit;font:inherit;border-radius:10px;padding:0 14px;cursor:pointer}
  }

  html.mf-open .chat-fab,html.mf-open #chatFab{opacity:0;pointer-events:none}

  /* فیلتر دسته‌بندی کشویی */
  .filters .fgroup .fc-node > .fc-kids{display:none}
  .filters .fgroup .fc-node.open > .fc-kids{display:block;animation:rzDrop .22s ease both}
  .filters .fgroup .fc-group.fc-tg{display:flex;justify-content:space-between;align-items:center;width:100%;background:none;border:none;border-bottom:1px solid var(--border);color:var(--text-primary);font:inherit;font-weight:800;padding:9px 2px;margin:0 0 6px;cursor:pointer;text-align:right}
  .filters .fgroup .fc-tg span,.filters .fgroup .fc-row .fc-tg{font-size:11px;color:var(--text-muted);transition:transform .2s}
  .filters .fgroup .fc-node.open > .fc-tg span,.filters .fgroup .fc-node.open > .fc-row .fc-tg{transform:rotate(-90deg);color:var(--gold-500,#f5c542)}
  .filters .fgroup .fc-grpnode > .fc-kids{padding-right:6px}
  .filters .fgroup .fc-row{display:flex;align-items:center;justify-content:space-between;gap:6px}
  .filters .fgroup .fc-row label{margin-bottom:0;flex:1}
  .filters .fgroup .fc-row .fc-tg{background:none;border:none;cursor:pointer;width:30px;height:30px;flex-shrink:0}
  .filters .fgroup .fc-catnode{margin-bottom:8px}
  .filters .fgroup .fc-catnode > .fc-kids{margin-top:8px}

  /* صفحه‌ی بارگذاری اولیه (تا محتوای واقعی آماده شود) */
  body:not(.rz-ready) > *:not(#rzLoader){visibility:hidden}
  #rzLoader{position:fixed;inset:0;z-index:99999;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;background:var(--bg,#0a1030);transition:opacity .45s ease,visibility .45s}
  body.rz-ready #rzLoader{opacity:0;visibility:hidden;pointer-events:none}
  .rzl-box{position:relative;width:78px;height:78px;display:flex;align-items:center;justify-content:center}
  .rzl-mark{width:52px;height:52px;border-radius:14px;background:#f5c542;color:#111;font-weight:900;font-size:26px;display:flex;align-items:center;justify-content:center;animation:rzlPulse 1.2s ease-in-out infinite}
  .rzl-ring{position:absolute;inset:0;border-radius:50%;border:3px solid rgba(245,197,66,.18);border-top-color:#f5c542;animation:rzlSpin .9s linear infinite}
  .rzl-txt{font-size:13.5px;color:var(--text-secondary,#aab);letter-spacing:.2px}
  @keyframes rzlSpin{to{transform:rotate(360deg)}}
  @keyframes rzlPulse{50%{transform:scale(.9)}}

  .adm-nav .msg-badge{font-style:normal;margin-right:auto;min-width:20px;height:20px;border-radius:10px;background:#e53935;color:#fff;font-size:11.5px;display:inline-flex;align-items:center;justify-content:center;padding:0 6px}
  .msg-item{margin-bottom:12px;border-right:4px solid transparent}
  .msg-item.unread{border-right-color:#f5c542;background:rgba(245,197,66,.06)}
  .msg-top{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin-bottom:8px}
  .msg-top a{color:var(--accent-text)} .msg-top small{margin-right:auto;opacity:.65}
  .msg-text{line-height:2;white-space:normal;word-break:break-word}
  .msg-act{display:flex;gap:8px;margin-top:10px;flex-wrap:wrap}
