/* App shell (vendor + admin panel), auth screens, storefront */

/* ---------- Panel ---------- */
.panel { --side: 252px; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--side); background: var(--ink-900); color: #cbd5e1; display: flex; flex-direction: column; z-index: 60; transform: translateX(-100%); transition: transform var(--t-med) var(--ease); }
.sidebar.is-open { transform: none; box-shadow: var(--shadow-3); }
.side-brand { display: flex; align-items: center; gap: 12px; padding: 20px 20px 14px; color: #fff; font-weight: 800; font-size: 17px; letter-spacing: -.02em; }
.logo-mark { width: 36px; height: 36px; border-radius: 11px; background: var(--grad); display: grid; place-items: center; color: #fff; font-weight: 800; box-shadow: 0 6px 16px -4px rgba(99,102,241,.7); }
.side-store { margin: 0 14px 10px; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.06); font-size: 13px; }
.side-store b { display: block; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-nav { flex: 1; overflow-y: auto; padding: 6px 12px; }
.side-nav .grp { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #64748b; padding: 14px 10px 6px; }
.side-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin: 2px 0; border-radius: 10px; color: #cbd5e1; font-weight: 500; transition: background var(--t-fast); }
.side-nav a:hover { background: rgba(255,255,255,.07); text-decoration: none; color: #fff; }
.side-nav a.is-on { background: var(--brand-600); color: #fff; box-shadow: 0 8px 18px -8px rgba(79,70,229,.9); }
.side-foot { padding: 14px; border-top: 1px solid rgba(255,255,255,.08); }
.side-foot .btn { width: 100%; background: rgba(255,255,255,.08); box-shadow: none; color: #e2e8f0; }
.scrim { position: fixed; inset: 0; background: rgba(11,18,32,.5); z-index: 55; display: none; } .scrim.is-open { display: block; }
.main { min-height: 100vh; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar h1 { font-size: 17px; margin: 0; flex: 1; }
.content { padding: 20px 16px 96px; width: 100%; max-width: 1240px; margin: 0 auto; flex: 1; }
.bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: flex; background: var(--surface); border-top: 1px solid var(--line); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 20px rgba(15,23,42,.06); }
.bottom-nav a, .bottom-nav button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; font-size: 11px; font-weight: 600; color: var(--ink-500); border: 0; background: none; border-radius: 10px; cursor: pointer; }
.bottom-nav a:hover { text-decoration: none; } .bottom-nav .is-on { color: var(--brand-600); background: var(--brand-50); }
@media (min-width: 900px) {
  .sidebar { transform: none; } .main { margin-left: var(--side); } .bottom-nav, .menu-btn { display: none !important; }
  .content { padding: 28px 32px 48px; } .topbar { padding: 14px 32px; } .topbar h1 { font-size: 20px; }
}
.setup-list { list-style: none; margin: 0; padding: 0; } .setup-list li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); } .setup-list li:last-child { border: 0; }
.setup-list .dot { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--ink-300); display: grid; place-items: center; color: #fff; flex: none; } .setup-list .done .dot { background: var(--ok); border-color: var(--ok); }
.variant-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-2); margin-bottom: 12px; position: relative; }
.variant-row .field { margin: 0; } .variant-row .span2 { grid-column: span 2; }
@media (max-width: 900px) { .variant-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } .variant-row .span2 { grid-column: span 2; } }
.img-grid { display: flex; gap: 10px; flex-wrap: wrap; } .img-grid label { position: relative; } .img-grid img { width: 84px; height: 84px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.img-grid .check { position: absolute; top: 4px; left: 4px; background: rgba(255,255,255,.9); border-radius: 6px; padding: 2px 4px; font-size: 11px; }
.price-tag { display: inline-flex; flex-direction: column; font-size: 12px; line-height: 1.3; }

/* ---------- Auth ---------- */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: radial-gradient(900px 500px at 10% -10%, #c7d2fe 0%, transparent 60%), radial-gradient(700px 500px at 100% 110%, #ddd6fe 0%, transparent 55%), var(--bg); }
.auth-card { width: 100%; max-width: 440px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-3); padding: 32px 28px; }
.auth-card.wide { max-width: 620px; }
.auth-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; font-weight: 800; font-size: 20px; color: var(--ink-900); }
.auth-card h1 { font-size: 22px; margin-bottom: 4px; } .auth-card .sub { color: var(--ink-500); margin-bottom: 22px; }
.auth-links { display: flex; justify-content: space-between; margin-top: 18px; font-size: 14px; flex-wrap: wrap; gap: 8px; }

/* ---------- Storefront ---------- */
.shop-top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.shop-top .wrap { display: flex; align-items: center; gap: 14px; padding-top: 12px; padding-bottom: 12px; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--ink-900); letter-spacing: -.02em; white-space: nowrap; } .brand:hover { text-decoration: none; }
.shop-search { flex: 1; position: relative; max-width: 640px; }
.shop-search input { width: 100%; height: 46px; padding: 0 16px 0 44px; border-radius: var(--r-pill); border: 1.5px solid var(--line); background: var(--surface-2); }
.shop-search input:focus { outline: none; border-color: var(--brand-500); background: var(--surface); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-500) 18%, transparent); }
.shop-search .i { position: absolute; left: 15px; top: 13px; color: var(--ink-400); }
.shop-actions { display: flex; gap: 6px; align-items: center; margin-left: auto; }
.icon-btn { position: relative; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-700); border: 0; background: transparent; cursor: pointer; } .icon-btn:hover { background: var(--surface-2); text-decoration: none; }
.cart-count { position: absolute; top: 2px; right: 0; min-width: 19px; height: 19px; border-radius: 99px; background: var(--accent); color: #1f1300; font-size: 11px; font-weight: 800; display: grid; place-items: center; padding: 0 5px; }
@media (max-width: 760px) { .shop-top .wrap { flex-wrap: wrap; } .shop-search { order: 3; flex: 1 1 100%; max-width: none; } .brand span.t { display: none; } .hide-sm { display: none !important; } }
.hero { margin: 18px 0 8px; border-radius: 28px; padding: 40px 32px; color: #fff; background: var(--grad); position: relative; overflow: hidden; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.1); }
.hero::before { width: 280px; height: 280px; right: -60px; top: -80px; } .hero::after { width: 180px; height: 180px; right: 120px; bottom: -90px; }
.hero h1 { color: #fff; font-size: clamp(26px, 5vw, 40px); max-width: 560px; margin-bottom: 10px; } .hero p { opacity: .9; max-width: 480px; font-size: 16px; }
.hero .btn { background: #fff; color: var(--brand-700); box-shadow: 0 10px 24px -8px rgba(0,0,0,.4); }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; margin: 28px 0 14px; } .sec-head h2 { margin: 0; font-size: 21px; }
.cat-row { display: grid; grid-auto-flow: column; grid-auto-columns: 104px; gap: 12px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; } .cat-row::-webkit-scrollbar { display: none; }
.cat-tile { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px 8px; text-align: center; color: var(--ink-800); font-size: 13px; font-weight: 600; transition: transform var(--t-med) var(--ease), box-shadow var(--t-med); }
.cat-tile:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow-2); } .cat-tile .em { font-size: 30px; display: block; margin-bottom: 4px; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 16px; }
@media (max-width: 480px) { .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
.pcard { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; color: inherit; transition: transform var(--t-med) var(--ease), box-shadow var(--t-med); }
.pcard:hover { text-decoration: none; transform: translateY(-4px); box-shadow: var(--shadow-2); }
.pcard .pimg { aspect-ratio: 1 / 1; background: var(--surface-2); overflow: hidden; } .pcard .pimg img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); } .pcard:hover .pimg img { transform: scale(1.05); }
.pcard .pbody { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.pcard .pname { font-weight: 600; color: var(--ink-900); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.8em; }
.pcard .pstore { font-size: 12px; color: var(--ink-500); } .pcard .pprice { margin-top: auto; padding-top: 6px; font-weight: 800; color: var(--brand-700); font-size: 16px; }
.pcard .pprice small { font-weight: 500; color: var(--ink-500); font-size: 12px; }
.product-page { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 32px; margin-top: 20px; } @media (max-width: 860px) { .product-page { grid-template-columns: 1fr; gap: 18px; } }
.gallery .main-img { aspect-ratio: 1/1; border-radius: 22px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); } .gallery .main-img img { width: 100%; height: 100%; object-fit: cover; }
.gallery .thumbs { display: flex; gap: 10px; margin-top: 10px; overflow-x: auto; } .gallery .thumbs img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; border: 2px solid var(--line); cursor: pointer; } .gallery .thumbs img.is-on { border-color: var(--brand-600); }
.big-price { font-size: 32px; font-weight: 800; color: var(--brand-700); letter-spacing: -.02em; }
.opt-list { display: flex; gap: 8px; flex-wrap: wrap; } .opt { position: relative; } .opt input { position: absolute; opacity: 0; }
.opt span { display: block; padding: 9px 16px; border: 1.5px solid var(--line); border-radius: 12px; font-weight: 600; cursor: pointer; background: var(--surface); } .opt input:checked + span { border-color: var(--brand-600); background: var(--brand-50); color: var(--brand-700); } .opt input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--brand-500) 45%, transparent); }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; } .stepper button { width: 42px; height: 44px; border: 0; background: none; cursor: pointer; color: var(--ink-700); font-size: 18px; } .stepper button:hover { background: var(--surface-2); } .stepper input { width: 52px; height: 44px; border: 0; text-align: center; font-weight: 700; background: transparent; -moz-appearance: textfield; } .stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start; } @media (max-width: 900px) { .cart-layout { grid-template-columns: 1fr; } }
.cart-item { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; } .cart-item img { width: 76px; height: 76px; border-radius: 14px; object-fit: cover; background: var(--surface-2); }
.sum-row { display: flex; justify-content: space-between; padding: 6px 0; } .sum-row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; font-size: 18px; font-weight: 800; color: var(--ink-900); }
.shop-foot { margin-top: 56px; background: var(--ink-900); color: #94a3b8; padding: 36px 0 110px; } .shop-foot a { color: #cbd5e1; } .shop-foot .brand { color: #fff; }
.shop-bottom { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: flex; background: var(--surface); border-top: 1px solid var(--line); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); }
.shop-bottom a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; font-weight: 600; color: var(--ink-500); padding: 6px 0; border-radius: 10px; position: relative; } .shop-bottom a:hover { text-decoration: none; } .shop-bottom a.is-on { color: var(--brand-600); background: var(--brand-50); }
@media (min-width: 900px) { .shop-bottom { display: none; } .shop-foot { padding-bottom: 36px; } }
.store-cover { height: 180px; border-radius: 24px; background: var(--grad); background-size: cover; background-position: center; } .store-head { display: flex; gap: 16px; align-items: flex-end; margin: -40px 20px 0; position: relative; flex-wrap: wrap; }
.store-logo { width: 84px; height: 84px; border-radius: 22px; border: 4px solid var(--bg); background: var(--surface); display: grid; place-items: center; font-size: 30px; font-weight: 800; color: var(--brand-600); overflow: hidden; box-shadow: var(--shadow-2); } .store-logo img { width: 100%; height: 100%; object-fit: cover; }
.track { display: flex; gap: 0; margin: 18px 0; } .track .st { flex: 1; text-align: center; font-size: 12px; font-weight: 600; color: var(--ink-400); position: relative; } .track .st::before { content: ""; display: block; width: 20px; height: 20px; border-radius: 50%; margin: 0 auto 6px; background: var(--line); position: relative; z-index: 1; } .track .st.on { color: var(--ink-800); } .track .st.on::before { background: var(--ok); }
.track .st::after { content: ""; position: absolute; top: 9px; left: -50%; width: 100%; height: 2px; background: var(--line); } .track .st:first-child::after { display: none; } .track .st.on::after { background: var(--ok); }
.install-card { position: fixed; z-index: 95; left: 12px; right: 12px; bottom: 84px; max-width: 440px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-3); padding: 14px; display: none; gap: 12px; align-items: center; } .install-card.is-show { display: flex; }

/* ---- Floating dock: modern bottom menu (panel + storefront) ---- */
.bottom-nav, .shop-bottom {
  left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); padding: 8px; gap: 4px; border: 1px solid rgba(255,255,255,.65); border-radius: 30px;
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(248,248,255,.86)); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 18px 40px rgba(49,46,129,.22), 0 4px 10px rgba(15,23,42,.08), inset 0 1px 0 #fff; max-width: 560px; margin: 0 auto;
}
.bottom-nav a, .bottom-nav button, .shop-bottom a {
  position: relative; min-height: 58px; justify-content: center; gap: 3px; padding: 6px 2px; border-radius: 22px; font-size: 11px; font-weight: 700; letter-spacing: .01em; color: var(--ink-500);
  transition: transform var(--t-med) var(--ease), background var(--t-med) var(--ease), color var(--t-fast), box-shadow var(--t-med) var(--ease); -webkit-tap-highlight-color: transparent;
}
.bottom-nav .i, .shop-bottom .i { width: 24px; height: 24px; transition: transform var(--t-med) var(--ease); }
.bottom-nav a:active, .bottom-nav button:active, .shop-bottom a:active { transform: scale(.92); }
.bottom-nav .is-on, .shop-bottom a.is-on {
  color: #fff; background: var(--grad); transform: translateY(-6px); box-shadow: 0 12px 22px rgba(99,102,241,.45), inset 0 1px 0 rgba(255,255,255,.35);
}
.bottom-nav .is-on .i, .shop-bottom a.is-on .i { transform: scale(1.12); }
.bottom-nav .is-on::after, .shop-bottom a.is-on::after { content: ""; position: absolute; bottom: -9px; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--brand-600); }
.shop-bottom a .cart-count { right: 14%; top: 4px; }
@media (max-width: 899px) { body:not(.pos-body) { padding-bottom: calc(104px + env(safe-area-inset-bottom)); } .toasts { bottom: calc(112px + env(safe-area-inset-bottom)); } }
:root[data-theme="dark"] .bottom-nav, :root[data-theme="dark"] .shop-bottom { background: linear-gradient(180deg, rgba(17,26,46,.92), rgba(15,23,42,.88)); border-color: rgba(255,255,255,.08); }
/* bigger dock icons */
.bottom-nav .i, .shop-bottom .i { width: 30px; height: 30px; }
.bottom-nav a, .bottom-nav button, .shop-bottom a { min-height: 66px; gap: 4px; }
.bottom-nav .is-on .i, .shop-bottom a.is-on .i { transform: scale(1.1); }
@media (max-width: 899px) { body:not(.pos-body) { padding-bottom: calc(112px + env(safe-area-inset-bottom)); } }

/* ---- super admin extras ---- */
.imp-bar { position: sticky; top: 0; z-index: 80; display: flex; align-items: center; justify-content: center; gap: 14px; padding: 8px 14px; background: linear-gradient(90deg, #b45309, #d97706); color: #fff; font-size: 13px; flex-wrap: wrap; }
.imp-bar .btn { background: #fff; color: #92400e; min-height: 32px; }
.banner-row { display: grid; grid-auto-flow: column; grid-auto-columns: min(88%, 520px); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 0 14px; scrollbar-width: none; } .banner-row::-webkit-scrollbar { display: none; }
.banner { scroll-snap-align: start; min-height: 150px; border-radius: 20px; padding: 20px; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; color: #fff; background: var(--grad) center/cover; text-decoration: none; box-shadow: var(--shadow-2); }
.banner b { font-size: 20px; line-height: 1.2; } .banner span { opacity: .9; font-size: 14px; } .banner:hover { text-decoration: none; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 6px 14px; font-size: 14px; } .kv dt { color: var(--ink-500); } .kv dd { margin: 0; word-break: break-word; }
.store-loc{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:14px 0 0}.store-loc b{display:flex;align-items:center;gap:6px}

/* auth pages: professional floating footer dock */
.auth-wrap { padding-bottom: 120px; }
.auth-dock { position: fixed; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 50; display: flex; gap: 2px; width: min(560px, calc(100% - 24px)); padding: 7px;
  background: rgba(255,255,255,.82); -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px); border: 1px solid rgba(99,102,241,.14); border-radius: 22px; box-shadow: 0 12px 34px rgba(30,27,75,.16), 0 2px 6px rgba(30,27,75,.06); }
.auth-dock a { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 2px 8px; border-radius: 16px; font-size: 11px; font-weight: 600; letter-spacing: .01em; color: var(--ink-500); text-decoration: none; transition: background .2s, color .2s, transform .15s; }
.auth-dock a .i { width: 24px; height: 24px; }
.auth-dock a:hover { background: var(--brand-50); color: var(--brand-600); text-decoration: none; }
.auth-dock a:active { transform: scale(.94); }
.auth-dock a.is-on { color: #fff; background: linear-gradient(135deg, var(--brand-600), #7c3aed); box-shadow: 0 6px 16px rgba(79,70,229,.35); }
.auth-dock span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
:root[data-theme="dark"] .auth-dock { background: rgba(17,26,46,.88); border-color: rgba(255,255,255,.08); }
@media (max-width: 380px) { .auth-dock a { font-size: 10px; } .auth-dock a .i { width: 22px; height: 22px; } }

.loc-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:4px 0 14px}.loc-row .btn{display:inline-flex;align-items:center;gap:6px}

.wa-btn { display:inline-flex; align-items:center; justify-content:center; width:24px; height:24px; border-radius:50%; background:#25d366; color:#fff; vertical-align:middle; margin-left:4px; transition:transform .15s, box-shadow .15s; }
.wa-btn:hover { transform:scale(1.12); box-shadow:0 4px 10px rgba(37,211,102,.45); text-decoration:none; color:#fff; }

.track-strip { display:flex; flex-direction:row; align-items:center; gap:10px; flex-wrap:wrap; margin:18px 0 0; }
.track-strip b { display:flex; align-items:center; gap:6px; }
.track-strip .input { flex:1 1 170px; min-width:0; }

/* product card with buy buttons */
.pcard .pc-link { display:flex; flex-direction:column; flex:1; color:inherit; text-decoration:none; } .pcard .pc-link:hover { text-decoration:none; }
.pcard .pimg { position:relative; }
.pc-badge { position:absolute; left:8px; top:8px; background:rgba(15,23,42,.8); color:#fff; font-size:11px; font-weight:700; padding:3px 9px; border-radius:99px; }
.pcard.is-out .pimg img { filter:grayscale(.7); opacity:.7; }
.pactions { display:flex; gap:8px; padding:0 12px 12px; align-items:stretch; }
.pactions form { margin:0; display:flex; } .pactions .pbuy { flex:1; min-width:0; }
.pbtn-order, .pbtn-cart { display:inline-flex; align-items:center; justify-content:center; border:0; cursor:pointer; font-weight:700; font-size:13px; border-radius:12px; min-height:40px; text-decoration:none; transition:transform .15s, box-shadow .15s, background .15s; }
.pbtn-order { flex:1; width:100%; padding:0 10px; color:#fff; background:linear-gradient(135deg, var(--brand-600), #7c3aed); box-shadow:0 6px 14px -6px rgba(79,70,229,.6); white-space:nowrap; }
.pbtn-order:hover { text-decoration:none; color:#fff; transform:translateY(-1px); }
.pbtn-order.is-disabled { background:var(--surface-2); color:var(--ink-500); box-shadow:none; cursor:not-allowed; transform:none; }
.pbtn-cart { width:44px; flex:none; color:var(--brand-700); background:var(--brand-50); border:1px solid rgba(99,102,241,.25); }
.pbtn-cart:hover { background:var(--brand-100, #e0e7ff); text-decoration:none; transform:translateY(-1px); }
.pbtn-cart.is-done { color:#fff; background:#16a34a; border-color:#16a34a; }
.pbtn-order:active, .pbtn-cart:active { transform:scale(.95); }
@media (max-width: 380px) { .pbtn-order { font-size:12px; padding:0 6px; } .pbtn-cart { width:40px; } }

/* ===== stars, ratings ===== */
.stars { display: inline-block; font-size: 15px; letter-spacing: 1px; line-height: 1; background: linear-gradient(90deg, #f59e0b var(--p, 0%), #d5d9e2 var(--p, 0%)); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.stars-lg { font-size: 22px; }
.prating { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-500); text-decoration: none; min-height: 18px; }
.prating-lg { font-size: 14px; margin: 4px 0 2px; } .prating-lg .stars { font-size: 18px; } .prating:hover { text-decoration: none; color: var(--brand-600); }

/* ===== trust / feature strip ===== */
.trust-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 16px 0 0; }
.trust-item { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 14px; background: var(--surface-2, #f6f7fb); border: 1px solid var(--line); border-radius: 16px; font-weight: 600; font-size: 14.5px; text-align: center; transition: transform .2s, box-shadow .2s, background .2s; }
.trust-item:hover { transform: translateY(-2px); background: var(--surface); box-shadow: 0 10px 24px -12px rgba(30,27,75,.25); }
.trust-item .ti { color: var(--brand-600); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--brand-50); flex: none; }
@media (max-width: 700px) { .trust-row { grid-template-columns: 1fr 1fr; gap: 10px; } .trust-item { flex-direction: column; gap: 6px; padding: 12px 8px; font-size: 13px; } }

/* ===== hero slider ===== */
.hslider { position: relative; margin: 14px 0 0; border-radius: 24px; overflow: hidden; background: #1e1b4b; aspect-ratio: 21 / 8; min-height: 200px; box-shadow: 0 24px 50px -28px rgba(30,27,75,.55); isolation: isolate; }
.hs-track, .hs-slide { position: absolute; inset: 0; }
.hs-slide { opacity: 0; visibility: hidden; transform: scale(1.04); transition: opacity .9s ease, transform 1.2s ease, visibility 0s .9s; display: flex; align-items: center; }
.hs-slide.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity .9s ease, transform 1.2s ease; z-index: 1; }
.hs-slide.g0 { background: linear-gradient(120deg, #4f46e5, #7c3aed 60%, #db2777); } .hs-slide.g1 { background: linear-gradient(120deg, #0f766e, #0891b2 60%, #4f46e5); }
.hs-slide.g2 { background: linear-gradient(120deg, #be123c, #ea580c 60%, #f59e0b); } .hs-slide.g3 { background: linear-gradient(120deg, #1e3a8a, #2563eb 60%, #06b6d4); }
.hs-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hs-slide.is-on .hs-img { animation: hsKen 9s ease-out both; }
@keyframes hsKen { from { transform: scale(1.12); } to { transform: scale(1); } }
.hs-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,12,45,.78) 0%, rgba(15,12,45,.38) 45%, rgba(15,12,45,0) 75%); }
.hs-copy { position: relative; z-index: 2; padding: 0 clamp(20px, 6vw, 72px); max-width: min(640px, 92%); color: #fff; }
.hs-copy h2 { font-size: clamp(22px, 3.6vw, 44px); line-height: 1.1; margin: 0 0 10px; letter-spacing: -.02em; color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,.25); }
.hs-copy p { font-size: clamp(13px, 1.5vw, 18px); margin: 0 0 18px; color: rgba(255,255,255,.9); }
.hs-copy > * { opacity: 0; transform: translateY(18px); }
.hs-slide.is-on .hs-copy > * { animation: hsUp .7s cubic-bezier(.2,.7,.2,1) both; } .hs-slide.is-on .hs-copy > :nth-child(1) { animation-delay: .25s; } .hs-slide.is-on .hs-copy > :nth-child(2) { animation-delay: .4s; } .hs-slide.is-on .hs-copy > :nth-child(3) { animation-delay: .55s; }
@keyframes hsUp { to { opacity: 1; transform: none; } }
.hs-btn { display: inline-flex; align-items: center; gap: 6px; padding: 12px 22px; border-radius: 999px; background: #fff; color: #3730a3; font-weight: 700; font-size: 14.5px; text-decoration: none; box-shadow: 0 10px 24px -8px rgba(0,0,0,.4); transition: transform .2s, box-shadow .2s; }
.hs-btn:hover { transform: translateY(-2px) translateX(2px); text-decoration: none; box-shadow: 0 14px 28px -8px rgba(0,0,0,.45); }
.hs-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.16); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; display: grid; place-items: center; cursor: pointer; opacity: 0; transition: opacity .25s, background .2s; }
.hslider:hover .hs-nav, .hs-nav:focus-visible { opacity: 1; } .hs-nav:hover { background: rgba(255,255,255,.3); }
.hs-prev { left: 14px; } .hs-prev svg { transform: rotate(180deg); } .hs-next { right: 14px; }
.hs-dots { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 3; display: flex; gap: 8px; padding: 7px 10px; border-radius: 999px; background: rgba(15,12,45,.35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.hs-dots button { position: relative; width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px; background: rgba(255,255,255,.5); cursor: pointer; overflow: hidden; transition: width .35s; }
.hs-dots button.is-on { width: 34px; } .hs-dots button i { position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.hs-dots button.is-on i { transform: scaleX(1); } .hslider.run .hs-dots button.is-on i { transform: scaleX(0); animation: hsFill var(--dur, 5500ms) linear forwards; }
@keyframes hsFill { to { transform: scaleX(1); } }
@media (max-width: 700px) { .hslider { aspect-ratio: 16 / 10; border-radius: 18px; margin-top: 10px; } .hs-nav { display: none; } .hs-shade { background: linear-gradient(0deg, rgba(15,12,45,.8) 0%, rgba(15,12,45,.2) 70%); } .hs-slide { align-items: flex-end; padding-bottom: 38px; } .hs-btn { padding: 9px 16px; font-size: 13px; } }
@media (prefers-reduced-motion: reduce) { .hs-slide, .hs-slide.is-on, .hs-slide.is-on .hs-img { animation: none; transition: opacity .2s; } .hs-copy > * { opacity: 1; transform: none; animation: none !important; } }

/* ===== promo popup ===== */
.pp-back { position: fixed; inset: 0; z-index: 180; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(15,23,42,.55); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); opacity: 0; transition: opacity .3s; }
.pp-back[hidden] { display: none; } .pp-back.is-open { opacity: 1; }
.pp-card { position: relative; width: 100%; max-width: 420px; background: var(--surface); border-radius: 26px; overflow: hidden; box-shadow: 0 40px 90px -24px rgba(15,23,42,.6); transform: translateY(30px) scale(.94); transition: transform .45s cubic-bezier(.2,.9,.3,1.2); }
.pp-back.is-open .pp-card { transform: none; }
.pp-img img { display: block; width: 100%; max-height: 260px; object-fit: cover; }
.pp-body { padding: 20px 22px 18px; text-align: center; } .pp-body h3 { font-size: 21px; margin: 0 0 6px; letter-spacing: -.01em; } .pp-body p { margin: 0 0 16px; color: var(--ink-500); line-height: 1.5; }
.pp-x { position: absolute; right: 12px; top: 12px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(15,23,42,.55); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; transition: transform .2s, background .2s; } .pp-x:hover { background: #dc2626; transform: rotate(90deg); }
.pp-later { display: block; margin: 10px auto 0; background: none; border: 0; color: var(--ink-500); font-size: 13px; cursor: pointer; text-decoration: underline; }
@media (prefers-reduced-motion: reduce) { .pp-card, .pp-back { transition: none; } }

/* ===== product page: share + reviews ===== */
.share { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 16px 0 4px; }
.share-l { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-500); margin-right: 4px; }
.sh { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 0; cursor: pointer; color: #fff; text-decoration: none; transition: transform .18s, box-shadow .18s; }
.sh:hover { transform: translateY(-2px) scale(1.06); box-shadow: 0 8px 18px -6px rgba(0,0,0,.4); color: #fff; text-decoration: none; }
.sh-fb { background: #1877f2; } .sh-wa { background: #25d366; } .sh-tg { background: #229ed9; } .sh-cp, .sh-nat { background: #475569; } .sh-cp.is-done { background: #16a34a; }
.rv { margin-top: 28px; } .rv-grid { display: grid; grid-template-columns: 280px 1fr; gap: 16px; align-items: start; }
.rv-sum { text-align: center; } .rv-avg { font-size: 46px; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.rv-bars { margin-top: 12px; display: grid; gap: 6px; } .rv-bars > div { display: grid; grid-template-columns: 26px 1fr 22px; gap: 8px; align-items: center; font-size: 12px; color: var(--ink-500); }
.rv-bars i { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; } .rv-bars b { display: block; height: 100%; background: linear-gradient(90deg, #f59e0b, #fbbf24); border-radius: 99px; }
.rv-main { display: grid; gap: 12px; }
.rv-item { padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; } .rv-item p { margin: 8px 0 0; line-height: 1.55; white-space: pre-line; }
.rate-in { display: inline-flex; flex-direction: row-reverse; gap: 2px; margin: 8px 0; } .rate-in input { position: absolute; opacity: 0; pointer-events: none; }
.rate-in label { font-size: 32px; line-height: 1; color: #d5d9e2; cursor: pointer; transition: color .15s, transform .15s; } .rate-in label:hover, .rate-in label:hover ~ label, .rate-in input:checked ~ label { color: #f59e0b; } .rate-in label:hover { transform: scale(1.15); }
.rate-in input:focus-visible + label { outline: 2px solid var(--brand-600); border-radius: 6px; }
@media (max-width: 760px) { .rv-grid { grid-template-columns: 1fr; } }
:root[data-theme="dark"] .trust-item { background: #111a2e; }

/* product library: name dropdown, photo picker */
.combo { position: relative; }
.combo-list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 40; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 40px rgba(15,23,42,.18); max-height: 340px; overflow-y: auto; padding: 6px; }
.combo-list[hidden] { display: none; }
.combo-it { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; cursor: pointer; }
.combo-it:hover, .combo-it.is-act { background: var(--surface-2); }
.combo-it img, .combo-ph { width: 40px; height: 40px; border-radius: 9px; object-fit: cover; background: var(--surface-2); flex: none; border: 1px solid var(--line); }
.combo-tx { display: flex; flex-direction: column; min-width: 0; flex: 1; } .combo-tx b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .combo-tx span { font-size: 12px; color: var(--muted); }
.combo-tag { font-style: normal; font-size: 11px; font-weight: 600; color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); padding: 2px 8px; border-radius: 99px; }
.combo-new { border-top: 1px dashed var(--line); margin-top: 4px; border-radius: 0 0 10px 10px; }
.combo-plus { width: 40px; height: 40px; border-radius: 9px; background: var(--brand-soft, #e8efff); color: var(--brand, #2563eb); display: grid; place-items: center; font-size: 22px; flex: none; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; max-height: 52vh; overflow-y: auto; }
.pick-it { border: 2px solid var(--line); border-radius: 12px; background: var(--surface); padding: 0; overflow: hidden; cursor: pointer; text-align: left; }
.pick-it img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; } .pick-it span { display: block; font-size: 11px; padding: 4px 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.pick-it.is-on { border-color: var(--brand, #2563eb); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand, #2563eb) 25%, transparent); }
.qf { border-style: dashed; }
.pick-sz { display: block; font-style: normal; font-size: 10.5px; padding: 0 6px 5px; color: var(--muted); } .pick-sz.is-best { color: var(--ok); font-weight: 600; }

/* rich text editor */
.rte { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.rte-bar { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px; border-bottom: 1px solid var(--line); background: var(--surface-2); border-radius: 14px 14px 0 0; position: relative; z-index: 3; }
.rte-g { display: flex; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); } .rte-g > .rte-dd { display: flex; }
.rte-b { border: 0; background: transparent; min-width: 38px; height: 38px; padding: 0 9px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; cursor: pointer; color: var(--text, #111827); font: inherit; font-size: 14px; border-radius: 0; }
.rte-g > .rte-b:first-child, .rte-g > .rte-dd:first-child .rte-b { border-radius: 9px 0 0 9px; } .rte-g > :last-child.rte-b, .rte-g > .rte-dd:last-child .rte-b { border-radius: 0 9px 9px 0; }
.rte-g > * + * { border-left: 1px solid var(--line); } .rte-g > .rte-b + .rte-b, .rte-g > .rte-b + .rte-dd { border-left: 1px solid var(--line); }
.rte-b:hover, .rte-b.is-on { background: var(--surface-2); } .rte-wide { min-width: 120px; justify-content: space-between; } .rte-sm { min-width: 28px; padding: 0 6px; }
.rte-car { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; display: inline-block; }
.rte-hl { background: #fff200; color: #000; font-weight: 800; padding: 0 5px; border-radius: 3px; font-size: 15px; }
.rte-dd { position: relative; }
.rte-menu { display: none; position: absolute; top: calc(100% + 6px); left: 0; z-index: 30; min-width: 150px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 34px rgba(15,23,42,.2); padding: 6px; flex-direction: column; gap: 2px; }
.rte-menu.is-open { display: flex; } .rte-menu > button { border: 0; background: transparent; text-align: left; padding: 8px 10px; border-radius: 8px; cursor: pointer; font: inherit; color: inherit; } .rte-menu > button:hover { background: var(--surface-2); }
.rte-pal { flex-direction: row; flex-wrap: wrap; width: 190px; gap: 6px; } .rte-sw { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--line); cursor: pointer; padding: 0; }
.rte-row { display: flex; gap: 6px; width: 100%; } .rte-row button { flex: 1; border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 6px; cursor: pointer; font-size: 12px; color: inherit; }
.rte-pop { width: 260px; padding: 12px; gap: 10px; } .rte-pop label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); } .rte-pop input { border: 1px solid var(--line); border-radius: 8px; padding: 8px; font: inherit; background: var(--surface); color: inherit; }
.rte-ok, .rte-alt { border: 0; border-radius: 9px; padding: 9px; cursor: pointer; font: inherit; font-weight: 600; } .rte-ok { background: var(--brand, #2563eb); color: #fff; } .rte-alt { background: var(--surface-2); color: inherit; }
.rte-help span { font-size: 12px; color: var(--muted); }
.rte-area { min-height: 220px; max-height: 520px; overflow-y: auto; padding: 14px 16px; outline: 0; line-height: 1.65; border-radius: 0 0 14px 14px; }
.rte-area:empty::before { content: attr(data-ph); color: var(--muted); }
.rte-area:focus { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--brand, #2563eb) 30%, transparent); }
.rte-src { width: 100%; border: 0; border-radius: 0 0 14px 14px; font-family: ui-monospace, Menlo, monospace; font-size: 13px; }
.rte.is-full { position: fixed; inset: 0; z-index: 120; border-radius: 0; display: flex; flex-direction: column; } .rte.is-full .rte-area { flex: 1; max-height: none; } body.rte-lock { overflow: hidden; }
.rte-area img, .rt-view img { max-width: 100%; height: auto; border-radius: 8px; } .rte-area iframe, .rt-view iframe { max-width: 100%; aspect-ratio: 16/9; height: auto; border: 0; border-radius: 10px; }
.rte-area table, .rt-view table { border-collapse: collapse; width: 100%; margin: 8px 0; } .rte-area td, .rte-area th, .rt-view td, .rt-view th { border: 1px solid var(--line); padding: 6px 10px; text-align: left; } .rte-area th, .rt-view th { background: var(--surface-2); }
.rte-area blockquote, .rt-view blockquote { border-left: 4px solid var(--line); margin: 8px 0; padding: 4px 14px; color: var(--muted); }
.rt-view p { margin: 0 0 10px; } .rt-view ul, .rt-view ol { padding-left: 22px; margin: 0 0 10px; } .rt-view h2, .rt-view h3, .rt-view h4 { margin: 14px 0 8px; } .rt-view a { color: var(--brand, #2563eb); text-decoration: underline; }

/* camera scan effect: corner brackets + a laser line sweeping over the whole picture */
.scanbox { position: relative; width: 100%; aspect-ratio: 4/3; border-radius: 18px; overflow: hidden; background: #000; }
.scanbox video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scanbox, .scan-frame { --sc: #22c55e; }
.sb-c { position: absolute; width: 34px; height: 34px; border: 0 solid #fff; pointer-events: none; z-index: 2; filter: drop-shadow(0 0 4px rgba(0,0,0,.6)); }
.sb-tl { left: 12px; top: 12px; border-top-width: 4px; border-left-width: 4px; border-top-left-radius: 14px; }
.sb-tr { right: 12px; top: 12px; border-top-width: 4px; border-right-width: 4px; border-top-right-radius: 14px; }
.sb-bl { left: 12px; bottom: 12px; border-bottom-width: 4px; border-left-width: 4px; border-bottom-left-radius: 14px; }
.sb-br { right: 12px; bottom: 12px; border-bottom-width: 4px; border-right-width: 4px; border-bottom-right-radius: 14px; }
.sb-laser { position: absolute; left: 10px; right: 10px; top: 8%; height: 3px; border-radius: 3px; z-index: 2; pointer-events: none;
  background: linear-gradient(90deg, transparent, #ef4444 18%, #ff8a8a 50%, #ef4444 82%, transparent); box-shadow: 0 0 14px 3px rgba(239,68,68,.75), 0 0 40px 10px rgba(239,68,68,.25);
  animation: sb-sweep 2.1s cubic-bezier(.45,.05,.55,.95) infinite alternate; }
.sb-laser::after { content: ""; position: absolute; left: 0; right: 0; top: 3px; height: 70px; background: linear-gradient(rgba(239,68,68,.22), transparent); transform-origin: top; }
@keyframes sb-sweep { from { top: 6%; } to { top: calc(94% - 3px); } }
.sb-ok { position: absolute; inset: 0; display: grid; place-items: center; z-index: 3; font-size: 84px; color: #fff; background: rgba(34,197,94,.35); opacity: 0; transition: opacity .15s; pointer-events: none; }
.scanbox.hit { box-shadow: 0 0 0 4px #22c55e; } .scanbox.hit .sb-ok { opacity: 1; } .scanbox.hit .sb-c, .scan-overlay.hit .sb-c { border-color: #22c55e; } .scanbox.hit .sb-laser, .scan-overlay.hit .sb-laser { animation-play-state: paused; opacity: 0; }
@media (prefers-reduced-motion: reduce) { .sb-laser { animation-duration: 5s; } }

/* add products from server */
.srv-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px 16px; margin-bottom: 14px; position: sticky; top: 64px; z-index: 5; }
.srv-bar .btn { margin-left: auto; }
.srv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.srv-card { background: var(--surface); border: 2px solid var(--line); border-radius: 16px; padding: 10px; display: flex; flex-direction: column; gap: 10px; transition: border-color .15s, box-shadow .15s; }
.srv-card.is-on { border-color: var(--brand, #2563eb); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand, #2563eb) 18%, transparent); }
.srv-pick { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; position: relative; }
.srv-pick input { position: absolute; top: 6px; left: 6px; width: 20px; height: 20px; z-index: 2; accent-color: var(--brand, #2563eb); }
.srv-img { width: 84px; height: 84px; flex: none; border-radius: 12px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); } .srv-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.srv-tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .srv-tx b { font-size: 14px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.srv-price { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 6px; }
.srv-price { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .srv-price label { display: flex; flex-direction: column; gap: 3px; font-size: 11.5px; color: var(--muted); font-weight: 600; }

/* discounts */
.pc-off { position: absolute; top: 8px; left: 8px; background: #ef4444; color: #fff; font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 99px; box-shadow: 0 4px 10px rgba(239,68,68,.35); }
.pold { color: var(--muted); font-weight: 500; font-size: .82em; margin-left: 4px; }
.off-badge { display: inline-block; background: #ef4444; color: #fff; font-size: 13px; font-weight: 800; padding: 2px 10px; border-radius: 99px; vertical-align: middle; }
.pimg { position: relative; }
.srv-price { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .srv-price label { display: flex; flex-direction: column; gap: 3px; font-size: 11.5px; color: var(--muted); font-weight: 600; } .srv-price .input { min-height: 38px; }

/* Cash flow print: only the page content is printed */
@media print {
  body.panel .sidebar, body.panel .topbar, body.panel .bottom-nav, body.panel .scrim, body.panel .no-print, .imp-bar, .toasts { display: none !important; }
  body.panel .main { margin-left: 0 !important; padding: 0 !important; }
  body.panel .content { padding: 0 !important; }
  .card { box-shadow: none !important; border-color: #ccc !important; }
}

/* notification bell */
.bell { position: relative; display: inline-block; }
.bell-badge { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #dc2626; color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.bell-badge[hidden], .bell-panel[hidden] { display: none; }
.bell-panel { position: absolute; right: 0; top: 48px; width: min(360px, calc(100vw - 24px)); background: var(--surface, #fff); border: 1px solid var(--line, #e5e7eb); border-radius: 14px; box-shadow: 0 12px 32px rgba(15, 23, 42, .18); z-index: 80; overflow: hidden; text-align: left; }
.bell-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--line, #e5e7eb); }
.bell-list { max-height: 360px; overflow: auto; }
.bell-item { display: block; padding: 10px 14px; border-bottom: 1px solid var(--line, #eef0f3); color: inherit; text-decoration: none; }
.bell-item.is-new { background: rgba(37, 99, 235, .07); }
.bell-item .bt { display: block; font-weight: 600; font-size: 14px; }
.bell-item .bb { display: block; font-size: 13px; color: var(--muted, #64748b); margin-top: 2px; }
.bell-item .bw { display: block; font-size: 11px; color: var(--muted, #94a3b8); margin-top: 3px; }
.bell-empty { padding: 22px; text-align: center; color: var(--muted, #64748b); font-size: 14px; }
.bell-foot { padding: 10px 14px; border-top: 1px solid var(--line, #e5e7eb); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
