@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --ink: #16221f;
  --muted: #71807a;
  --line: #dce7e1;
  --soft: #f4f8f5;
  --paper: #fbfdfb;
  --green: #0c8f68;
  --green-dark: #06634b;
  --mint: #dff5ea;
  --orange: #f5a149;
  --red: #d95d5d;
  --shadow: 0 18px 55px rgba(27, 60, 45, .10);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.6 'DM Sans', sans-serif; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.container { width: min(1120px, calc(100% - 40px)); margin: auto; }
.nav { height: 76px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgba(251,253,251,.88); backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 10; }
.nav-inner { display:flex; align-items:center; justify-content:space-between; gap:24px; min-width:0; }
.brand { display: flex; align-items: center; gap: 11px; font: 700 19px 'Space Grotesk', sans-serif; }
.brand-mark { width: 84px; height: 49px; aspect-ratio: 16 / 9; border-radius: 10px; background: var(--ink); color: white; display: grid; place-items: center; font: 700 18px 'Space Grotesk'; overflow: hidden; }
.brand-mark.has-image { background: transparent; border: 0; border-radius: 0; box-shadow: none; overflow: visible; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.nav-links { display: flex; align-items: center; gap: 22px; color: var(--ink); font-weight: 600; }
.nav-links a, .nav-logout { color: var(--ink); }
.nav-links a:hover { color: var(--green); }
.nav-logout { border:0; background:transparent; padding:0; color:var(--red); font-weight:600; }
.nav-logout:hover { color:#ad3d3d; }
.nav-actions { display: flex; gap: 10px; align-items: center; }
.btn { border: 0; border-radius: 11px; padding: 11px 17px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: .2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { color: white; background: var(--green); box-shadow: 0 7px 20px rgba(12,143,104,.18); }
.btn-primary:hover { background: var(--green-dark); }
.btn-soft { color: var(--green-dark); background: var(--mint); }
.btn-outline { color: var(--ink); background: transparent; border: 1px solid var(--line); }
.btn-danger { color: var(--red); background: #fff1f1; }
.btn-sm { padding: 8px 12px; border-radius: 9px; font-size: 13px; }
.hero { padding: 90px 0 75px; position: relative; overflow: hidden; }
.hero:after { content: ''; width: 560px; height: 560px; border-radius: 50%; background: #ecfaf1; position: absolute; right: -230px; top: -260px; z-index: -1; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 72px; align-items: center; }
.eyebrow { text-transform: uppercase; color: var(--green); font-size: 12px; font-weight: 700; letter-spacing: .15em; margin-bottom: 16px; }
h1, h2, h3 { font-family: 'Space Grotesk', sans-serif; line-height: 1.12; margin: 0; }
h1 { font-size: clamp(42px, 6vw, 72px); letter-spacing: -3px; max-width: 700px; }
h1 span { color: var(--green); }
.hero-copy { color: var(--muted); font-size: 17px; max-width: 540px; margin: 22px 0 29px; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 11px; }
.hero-note { display: flex; gap: 22px; flex-wrap: wrap; color: var(--muted); font-size: 13px; margin-top: 27px; }
.hero-note b { color: var(--ink); }
.hero-card { background: var(--ink); color: white; border-radius: 25px; padding: 28px; box-shadow: var(--shadow); transform: rotate(2deg); }
.hero-card-top { display: flex; justify-content: space-between; align-items: flex-start; color: #9eb5a9; font-size: 12px; }
.hero-card h3 { font-size: 30px; margin: 55px 0 28px; max-width: 300px; }
.hero-card .fake-lines { border-top: 1px solid #3e514b; padding-top: 18px; display: flex; justify-content: space-between; color: #9eb5a9; }
.section { padding: 72px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 27px; }
.section-head h2 { font-size: 34px; letter-spacing: -1.3px; }
.section-head p { color: var(--muted); margin: 6px 0 0; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; }
.product-card { background: white; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; transition: .2s ease; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #b6d6c5; }
.product-image { height: 180px; background: linear-gradient(135deg, #e1f5e8, #f8e7d4); display: grid; place-items: center; color: var(--green); font: 700 48px 'Space Grotesk'; overflow: hidden; }
.product-image img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.product-body { padding: 19px; display: flex; flex-direction: column; flex: 1; }
.product-category { display:inline-flex; align-items:center; width:max-content; max-width:100%; padding:5px 10px; margin-bottom:10px; border-radius:7px; background:var(--soft); color:var(--green-dark); font-size:11px; font-weight:700; letter-spacing:.02em; }
.product-body h3 { font-size: 19px; margin-bottom: 8px; }
.product-body p { color: var(--muted); font-size: 13px; margin: 0 0 18px; flex: 1; }
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price { font: 700 18px 'Space Grotesk'; }
.stock { color: var(--green); font-size: 12px; }
.empty-products { border: 1px dashed var(--line); border-radius: 16px; padding: 45px; color: var(--muted); text-align: center; grid-column: 1/-1; }
.catalog-section { padding-top:62px; }
.catalog-toolbar { display:grid; grid-template-columns:minmax(0,1fr) minmax(190px,260px) auto; align-items:end; gap:20px; margin-bottom:28px; }
.catalog-toolbar h2 { font-size:34px; letter-spacing:-1.3px; }
.catalog-search { display:flex; align-items:center; gap:8px; height:42px; padding:0 12px; border:1px solid var(--line); border-radius:10px; background:#fff; color:var(--green-dark); }
.catalog-search:focus-within { border-color:var(--green); box-shadow:0 0 0 3px rgba(12,143,104,.09); }
.catalog-search span { font-size:23px; line-height:1; }
.catalog-search input { width:100%; min-width:0; border:0; outline:0; background:transparent; color:var(--ink); font-size:13px; }
.category-scroller { display:flex; align-items:center; gap:8px; min-width:0; max-width:100%; }
.category-filters { display:flex; flex-wrap:nowrap; gap:9px; min-width:0; max-width:100%; overflow-x:auto; scrollbar-width:none; scroll-behavior:smooth; }
.category-filters::-webkit-scrollbar { display:none; }
.category-filter { flex:0 0 126px; height:42px; padding:0 16px; border:1px solid var(--line); border-radius:10px; background:#fff; color:var(--ink); font-size:13px; font-weight:700; transition:.2s ease; }
.category-filter:hover { border-color:#a8d5bd; color:var(--green-dark); transform:translateY(-1px); }
.category-filter.active { border-color:var(--green); background:var(--green); color:#fff; box-shadow:0 7px 20px rgba(12,143,104,.16); }
.category-scroll { flex:0 0 34px; width:34px; height:42px; border:1px solid var(--line); border-radius:10px; background:#fff; color:var(--green-dark); font:400 28px/1 'DM Sans'; display:grid; place-items:center; }
.category-scroll:hover { border-color:#a8d5bd; background:var(--mint); }
.catalog-product[hidden] { display:none; }
.catalog-empty[hidden] { display:none; }
.how { background: var(--soft); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { padding: 23px; background: white; border: 1px solid var(--line); border-radius: 16px; }
.step-num { color: var(--green); font: 700 26px 'Space Grotesk'; margin-bottom: 18px; }
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 13px; margin: 0; }
.footer { position:relative; border-top:0; margin-top:44px; padding:70px 0 22px; color:#fff; font-size:13px; background:#000; }
.footer-content, .footer-bottom { position:relative; z-index:1; }
.footer-content { display:flex; flex-direction:column; align-items:center; text-align:center; }
.footer-logo { width:min(360px,82vw); min-height:100px; display:flex; align-items:center; justify-content:center; }
.footer-logo img { display:block; width:100%; max-height:150px; object-fit:contain; border:0; border-radius:0; box-shadow:none; filter:none; }
.footer-logo > span { color:#fff; font:700 42px 'Space Grotesk'; }
.footer-description { max-width:900px; margin:28px auto 0; color:#fff; font-size:clamp(16px,2vw,22px); font-weight:700; line-height:1.9; }
.footer-socials { display:flex; justify-content:center; flex-wrap:wrap; gap:34px; margin-top:47px; }
.social-link { display:inline-flex; align-items:center; justify-content:center; padding:0; color:#fff; background:transparent; border:0; transition:.2s ease; }
.social-link:hover { color:#9ce4c2; border:0; transform:translateY(-2px); }
.social-link svg { width:32px; height:32px; fill:currentColor; stroke:currentColor; stroke-width:1.6; }
.social-link i { font-size:32px; line-height:1; }
.footer-links { display:flex; gap:18px; margin-top:38px; color:#fff; }
.footer-links a { color:inherit; font-weight:600; }
.footer-links a:hover { color:#fff; }
.footer-links i { margin-right:6px; }
.footer-bottom { display:flex; justify-content:space-between; gap:20px; margin-top:55px; padding-top:16px; border-top:0; color:#fff; font-size:12px; }
.auth-shell { min-height: calc(100vh - 77px); display: grid; place-items: center; padding: 40px 0; }
.auth-card, .panel-card { background: white; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.auth-card { width: min(440px, 100%); padding: 31px; }
.plain-auth-card { background:transparent; border:0; box-shadow:none; padding:0; }
.auth-page { position:relative; overflow:hidden; }
.auth-page:before { content:''; position:absolute; width:440px; height:440px; border-radius:50%; background:var(--mint); opacity:.55; right:-210px; top:-170px; z-index:-1; }
.auth-page:after { content:''; position:absolute; width:280px; height:280px; border-radius:50%; background:#fff1da; opacity:.55; left:-170px; bottom:-110px; z-index:-1; }
.plain-auth-card h1 { font-size:clamp(34px,5vw,48px); letter-spacing:-2px; }
.plain-auth-card .sub { max-width:390px; }
.auth-card h1 { font-size: 31px; letter-spacing: -1.2px; }
.auth-card .sub { color: var(--muted); margin: 8px 0 24px; }
.field { margin-bottom: 15px; }
.field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.input, .textarea, .select { width: 100%; padding: 12px 13px; border: 1px solid var(--line); background: #fbfdfb; border-radius: 10px; color: var(--ink); outline: none; }
.input:focus, .textarea:focus, .select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(12,143,104,.09); }
.textarea { min-height: 105px; resize: vertical; }
.form-error { color: var(--red); background: #fff4f4; border-radius: 9px; padding: 10px 12px; font-size: 13px; margin-bottom: 14px; display: none; }
.auth-forgot { text-align: right; margin-top: 13px; font-size: 13px; }
.auth-forgot a { color: var(--green); font-weight: 700; }
.auth-bottom { text-align: center; color: var(--muted); font-size: 13px; margin-top: 19px; }
.auth-bottom a { color: var(--green); font-weight: 700; }
.account { padding: 42px 0 70px; }
.account-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; }
.account-head h1 { font-size: 38px; letter-spacing: -1.5px; }
.account-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 18px; }
.balance-card { padding: 24px; border-radius: 18px; color: white; background: var(--ink); }
.balance-card .label { color: #a6beb1; font-size: 13px; }
.balance-amount { font: 700 34px 'Space Grotesk'; margin: 11px 0 22px; }
.panel-card { padding: 22px; box-shadow: none; }
.panel-card h2 { font-size: 20px; margin-bottom: 17px; }
.order-list { display: grid; gap: 10px; }
.order-row { padding: 14px; border: 1px solid var(--line); border-radius: 12px; display: flex; justify-content: space-between; gap: 15px; align-items: center; }
.order-row strong { display: block; }
.order-meta { color: var(--muted); font-size: 12px; }
.status { border-radius: 99px; padding: 4px 9px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.status.success { color: var(--green-dark); background: var(--mint); }
.status.pending { color: #9a620e; background: #fff1d8; }
.status.expired { color: var(--red); background: #fff1f1; }
.invoice-wrap { padding: 52px 0 75px; }
.invoice-layout { display: grid; grid-template-columns: .82fr 1.18fr; gap: 20px; align-items: start; }
.invoice-side { padding: 25px; background: var(--ink); color: white; border-radius: 20px; position: sticky; top: 100px; }
.invoice-side .eyebrow { color: #8bd7b5; }
.invoice-side h1 { font-size: 31px; letter-spacing: -1.2px; margin-bottom: 22px; }
.invoice-side p { color: #a6beb1; font-size: 13px; }
.invoice-main { padding: 27px; }
.invoice-main h2 { font-size: 23px; }
.invoice-code { color: var(--muted); font: 12px monospace; word-break: break-all; margin: 8px 0 22px; }
.qr-box { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 15px; width: min(300px, 100%); margin: 0 auto 20px; text-align: center; }
.qr-box img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; }
.invoice-info { border-top: 1px solid var(--line); padding-top: 15px; display: grid; gap: 9px; }
.info-row { display: flex; justify-content: space-between; gap: 15px; font-size: 13px; }
.info-row span { color: var(--muted); }
.success-box { background: var(--mint); border: 1px solid #bde8d0; border-radius: 13px; padding: 18px; color: var(--green-dark); }
.digital-data { background: var(--ink); color: #d9f7e9; border-radius: 11px; padding: 15px; margin-top: 12px; white-space: pre-wrap; font: 13px/1.65 monospace; word-break: break-word; }
.digital-access { display:grid; gap:10px; margin-top:12px; }
.digital-access-card { background:var(--ink); color:#d9f7e9; border-radius:11px; padding:13px; }
.digital-access-title { color:#8be0ba; font:700 12px 'Space Grotesk'; margin-bottom:8px; }
.digital-access-row { display:grid; grid-template-columns:52px minmax(0,1fr) auto; align-items:center; gap:8px; padding:7px 0; border-top:1px solid rgba(217,247,233,.15); font:13px/1.35 monospace; }
.digital-access-row > span:nth-child(2) { overflow-wrap:anywhere; }
.copy-btn { border:1px solid rgba(217,247,233,.35); border-radius:7px; background:transparent; color:#fff; padding:5px 8px; font:600 11px 'DM Sans'; cursor:pointer; }
.copy-btn:hover { background:rgba(217,247,233,.12); }
.polling { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-size: 13px; padding: 16px; }
.dot-loader { width: 14px; height: 14px; border: 2px solid #cae0d4; border-top-color: var(--green); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.mobile-menu { display: none; border: 0; background: transparent; color: var(--ink); padding: 9px 2px; width: 38px; }
.mobile-menu span { display:block; height:2px; width:22px; margin:4px auto; border-radius:99px; background:currentColor; transition:.2s ease; }
.mobile-menu.is-open span:nth-child(1) { transform:translateY(6px) rotate(45deg); }
.mobile-menu.is-open span:nth-child(2) { opacity:0; }
.mobile-menu.is-open span:nth-child(3) { transform:translateY(-6px) rotate(-45deg); }
.checkout-page { padding: 54px 0 82px; }
.checkout-layout { display:grid; grid-template-columns:minmax(0,.9fr) minmax(360px,.8fr); gap:clamp(48px,8vw,120px); align-items:center; }
.checkout-product { max-width:560px; }
.back-link { display:inline-flex; color:var(--muted); font-size:13px; margin-bottom:25px; }
.back-link:hover { color:var(--green); }
.checkout-product-image { height:300px; border-radius:24px; overflow:hidden; display:grid; place-items:center; background:linear-gradient(135deg,#dff5ea,#f8e7d4); color:var(--green); font:700 92px 'Space Grotesk'; margin-bottom:29px; }
.checkout-product-image img { width:100%; height:100%; object-fit:cover; border-radius:0; }
.checkout-product h1 { font-size:clamp(38px,5vw,58px); letter-spacing:-2px; }
.checkout-description { color:var(--muted); max-width:510px; margin:17px 0; white-space:pre-line; }
.product-detail-meta { display:flex; align-items:center; flex-wrap:wrap; gap:10px 16px; }
.product-detail-meta .product-category { margin:0; }
.checkout-stock { display:flex; align-items:center; gap:8px; color:var(--green-dark); font-size:13px; font-weight:700; }
.stock-dot { width:8px; height:8px; background:var(--green); border-radius:50%; box-shadow:0 0 0 5px var(--mint); margin:0 4px 0 3px; }
.checkout-sold { display:inline-flex; align-items:center; gap:4px; padding-left:16px; border-left:1px solid var(--line); color:var(--muted); font-size:13px; }
.checkout-sold strong { color:var(--ink); font:700 16px 'Space Grotesk'; }
.checkout-form-wrap { max-width:490px; width:100%; }
.checkout-form-wrap h2 { font-size:36px; letter-spacing:-1.2px; }
.checkout-sub { color:var(--muted); margin:10px 0 25px; }
.quantity-row { border-top:1px solid var(--line); border-bottom:1px solid var(--line); padding:17px 0; display:flex; align-items:center; justify-content:space-between; gap:20px; }
.quantity-row label { display:block; font-weight:700; font-size:14px; }
.quantity-row small,.field-hint { display:block; color:var(--muted); font-size:12px; margin-top:3px; }
.quantity-control { display:flex; align-items:center; border:1px solid var(--line); border-radius:11px; overflow:hidden; background:#fff; }
.quantity-button { border:0; background:transparent; color:var(--green-dark); width:38px; height:38px; font-size:21px; }
.quantity-button:hover { background:var(--mint); }
.quantity-control input { border:0; border-left:1px solid var(--line); border-right:1px solid var(--line); width:44px; height:38px; text-align:center; outline:0; font-weight:700; color:var(--ink); }
.quantity-control input::-webkit-inner-spin-button,.quantity-control input::-webkit-outer-spin-button { appearance:none; margin:0; }
.checkout-total { display:flex; align-items:center; justify-content:space-between; padding:20px 0 18px; }
.checkout-total span { color:var(--muted); }
.checkout-total strong { font:700 26px 'Space Grotesk'; }
.checkout-user { padding:12px 0; color:var(--green-dark); font-size:13px; }
.checkout-user span { color:var(--muted); margin-left:5px; }
.checkout-submit { width:100%; margin-top:5px; min-height:48px; }
@media (max-width: 800px) {
  .nav-links { display: none; position:absolute; left:14px; right:14px; top:calc(100% + 9px); padding:8px; flex-direction:column; align-items:stretch; gap:2px; border:1px solid var(--line); border-radius:14px; background:rgba(255,255,255,.98); box-shadow:var(--shadow); }
  .nav-links.is-open { display:flex; }
  .nav-links a { padding:11px 12px; border-radius:9px; }
  .nav-links a:hover { background:var(--soft); }
  .mobile-menu { display: block; }
  .nav-actions { margin-left:auto; }
  .hero-grid, .account-grid, .invoice-layout, .checkout-layout { grid-template-columns: 1fr; gap: 30px; }
  .hero-card { transform: none; max-width: 500px; }
  .invoice-side { position: static; }
  .product-grid, .steps { grid-template-columns: repeat(2, 1fr); }
   .catalog-toolbar { display:block; }
   .catalog-search { margin-top:20px; }
  .category-scroller { margin-top:22px; }
  .checkout-product,.checkout-form-wrap { max-width:none; }
   .track-invoice-layout { grid-template-columns:1fr; gap:30px; }
   .track-invoice-card { max-width:none; }
}
@media (max-width: 560px) {
  .container { width: min(100% - 28px, 1120px); }
  .nav { height: 67px; }
  .nav-actions .btn-outline { display: none; }
  .hero { padding: 60px 0 50px; }
  h1 { font-size: 44px; }
  .section { padding: 52px 0; }
  .section-head { display: block; }
  .section-head h2 { font-size: 29px; }
  .product-grid, .steps { grid-template-columns: 1fr; }
  .footer-row, .account-head { display: block; }
  .account-head .btn { margin-top: 15px; }
  .auth-card, .invoice-main { padding: 21px; }
  .checkout-page { padding:30px 0 55px; }
  .checkout-product-image { height:220px; margin-bottom:22px; }
  .checkout-form-wrap h2 { font-size:30px; }
  .quantity-row { align-items:flex-start; flex-direction:column; }
  .quantity-control { align-self:flex-start; }
  .checkout-user span { display:block; margin:3px 0 0; }
  .checkout-sold { padding-left:0; border-left:0; }
}
.admin-shell { display:flex; min-height:100vh; }
#appView[hidden] { display:none !important; }
#appView[style*="display: flex"] { display:flex !important; }
.admin-login { background:radial-gradient(circle at 18% 12%,#2e6555,transparent 28rem),radial-gradient(circle at 88% 90%,#1b493c,transparent 24rem),var(--ink); }
.admin-side { flex:0 0 250px; width:250px; position:sticky; top:0; height:100vh; z-index:60; overflow-y:auto; background:linear-gradient(180deg,#122f27 0%,#0c211b 100%) !important; }
.admin-main { flex:1; min-width:0; background:radial-gradient(circle at 92% 0%,rgba(223,245,234,.8),transparent 29rem),#f1f6f3; }
.admin-card { box-shadow:0 10px 28px rgba(27,60,45,.06); }
.category-admin-list { display:grid; gap:10px; }
.category-admin-row { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:15px 0; border-bottom:1px solid var(--line); }
.category-admin-row:last-child { border-bottom:0; padding-bottom:0; }
.category-admin-row > div:first-child { display:grid; gap:3px; }
.category-admin-row .muted { font-size:12px; }
.category-admin-empty { padding:24px 0; color:var(--muted); text-align:center; }
.system-settings-card { max-width:850px; }
.system-settings-note { display:grid; gap:4px; padding:14px 16px; margin:4px 0 20px; border:1px solid #c7e9d5; border-radius:11px; background:#f0fbf4; color:var(--green-dark); font-size:13px; }
.system-settings-note span { color:var(--muted); }
.system-settings-note code { padding:2px 5px; border-radius:5px; background:#dff5ea; color:var(--green-dark); font:600 12px monospace; }
.metric { position:relative; overflow:hidden; box-shadow:0 8px 20px rgba(27,60,45,.04); }
.metric:after { content:''; position:absolute; right:-18px; bottom:-26px; width:76px; height:76px; border-radius:50%; background:var(--mint); opacity:.7; }
.metric:nth-child(2):after { background:#e9e3ff; }
.metric:nth-child(3):after { background:#ffe8c8; }
.metric:nth-child(4):after { background:#ffe0e0; }
.admin-top { position:relative; }
.admin-top:after { content:'SANZSTORE / CONTROL CENTER'; display:block; position:absolute; right:0; top:4px; color:#b2c9be; font:700 10px 'Space Grotesk'; letter-spacing:.12em; }
.admin-mobilebar { display:none; }
@media (max-width:850px) {
  .admin-shell { display:block !important; }
  #appView[style*="display: flex"] { display:block !important; }
  .admin-shell { position:relative; }
  .admin-side { position:absolute !important; top:62px; left:0; right:0; bottom:auto !important; inset-block-end:auto; width:100%; height:auto !important; max-height:0; padding:0 17px !important; transform:none !important; overflow:hidden; gap:13px; transition:max-height .22s ease,padding .22s ease; box-shadow:0 18px 30px rgba(22,34,31,.18); }
  .admin-side nav { display:grid; overflow:visible; }
  .admin-shell.menu-open .admin-side { max-height:620px; padding:15px 17px !important; }
  .admin-side > div:last-child { margin-top:15px !important; }
  .admin-overlay { display:none !important; }
  .admin-main { padding:0 17px 24px; }
  .admin-top:after { display:none; }
  .admin-mobilebar { display:flex; align-items:center; justify-content:space-between; gap:14px; position:sticky; top:0; z-index:20; margin:0 -17px 20px; padding:12px 17px; background:rgba(241,246,243,.94); border-bottom:1px solid var(--line); backdrop-filter:blur(12px); }
  .admin-mobilebar button { border:1px solid var(--line); border-radius:10px; background:#fff; color:var(--ink); padding:9px 11px; font-weight:700; }
  .admin-mobilebar strong { font:700 16px 'Space Grotesk'; }
  .admin-grid { grid-template-columns:repeat(2,1fr); }
}
@media (max-width:550px) {
  .admin-grid { grid-template-columns:1fr 1fr; gap:9px; }
  .metric { padding:13px; }
  .metric strong { font-size:22px; }
  .admin-top h1 { font-size:30px; }
  .category-admin-row { align-items:flex-start; flex-direction:column; }
}
/* Mobile admin navigation: conventional left drawer with vertical links. */
@media (max-width:850px) {
  .admin-side { position:fixed !important; top:0 !important; left:0 !important; right:auto !important; bottom:0 !important; width:min(285px,86vw) !important; height:100vh !important; max-height:none !important; padding:23px 15px !important; transform:translateX(-110%) !important; overflow-y:auto !important; display:flex !important; flex-direction:column !important; gap:25px !important; }
  .admin-shell.menu-open .admin-side { transform:translateX(0) !important; }
  .admin-side nav { display:grid !important; grid-template-columns:1fr !important; gap:4px !important; overflow:visible !important; }
  .admin-side .side-link { width:100% !important; white-space:normal !important; }
  .admin-side > div:last-child { margin-top:auto !important; }
  .admin-overlay { position:fixed !important; inset:0 !important; display:none !important; background:rgba(22,34,31,.48); z-index:50; }
  .admin-shell.menu-open .admin-overlay { display:block !important; }
  .admin-mobilebar { z-index:20; }
}

/* Customer account, terms, and order detail layouts. */
.modal-bg { position:fixed; inset:0; display:none; place-items:center; padding:20px; background:rgba(22,34,31,.55); z-index:100; overflow-y:auto; }
.modal-bg.show { display:grid; }
.modal-box { width:min(560px,100%); max-height:calc(100vh - 40px); overflow:auto; padding:23px; background:#fff; border-radius:16px; box-shadow:0 20px 70px rgba(22,34,31,.25); }
.modal-head { display:flex; align-items:center; justify-content:space-between; gap:18px; margin-bottom:18px; }
.modal-head h2 { font-size:21px; }
.x { border:0; background:transparent; color:var(--muted); font-size:25px; line-height:1; padding:3px 6px; border-radius:7px; }
.x:hover { color:var(--ink); background:var(--soft); }
.account-modal-box .sub { color:var(--muted); margin:0 0 22px; }
.account-sidebar { display:grid; gap:18px; align-content:start; }
.account-side-links { display:grid; gap:9px; padding:14px; box-shadow:0 8px 25px rgba(27,60,45,.06); }
.account-side-links .btn { width:100%; }
.account-intro { color:var(--muted); margin:7px 0 0; }
.deposit-history-page { padding-top:32px; }
.deposit-history-page > .container > .back-link { display:inline-flex; margin-bottom:25px; }
.balance-button { width:100%; background:#8be0ba; color:var(--ink); box-shadow:none; }
.profile-card { box-shadow:0 8px 25px rgba(27,60,45,.06); }
.profile-card-head { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.profile-card-head h2 { margin:0; }
.icon-button { width:34px; height:34px; display:grid; place-items:center; border:1px solid var(--line); background:var(--soft); color:var(--green-dark); border-radius:9px; }
.icon-button:hover { border-color:#b6d6c5; background:var(--mint); }
.icon-button svg { width:17px; height:17px; fill:currentColor; }
.profile-details { display:grid; gap:4px; margin-top:16px; font-size:13px; }
.profile-details strong { font-size:16px; }
.profile-details span { color:var(--muted); }
.history-card { min-width:0; }
.history-head { display:flex; align-items:end; justify-content:space-between; gap:18px; padding-bottom:18px; border-bottom:1px solid var(--line); }
.history-head .eyebrow { margin-bottom:7px; }
.history-head h2 { margin:0; }
.history-note { color:var(--muted); font-size:12px; }
.history-list { display:grid; gap:10px; padding-top:15px; }
.history-item { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:16px; border:1px solid var(--line); border-radius:13px; background:#fff; }
.history-item:hover { border-color:#b6d6c5; box-shadow:0 6px 18px rgba(27,60,45,.05); }
.history-item-main { min-width:0; flex:1; }
.history-item-title { display:flex; align-items:center; gap:10px; justify-content:space-between; }
.history-item-title strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.history-meta { display:flex; flex-wrap:wrap; gap:5px 16px; margin-top:7px; color:var(--muted); font-size:12px; }
.history-detail-link { flex:none; }
.history-empty { color:var(--muted); text-align:center; padding:34px 15px; border:1px dashed var(--line); border-radius:12px; }
.admin-section-head { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; margin-bottom:17px; }
.admin-section-head h2 { margin-bottom:5px; }
.admin-section-head .history-note { white-space:nowrap; padding-top:4px; }
.admin-search-field { max-width:520px; margin-bottom:18px; }
.admin-table-wrap { overflow-x:auto; }
.admin-table td small { display:block; margin-top:4px; }
.deposit-admin-detail .detail-summary { margin-top:0; }
.footer a { color:#fff; font-weight:600; }
.footer a:hover { color:#fff; }
.terms-page, .order-detail-page { padding:54px 0 78px; }
.terms-layout { display:grid; grid-template-columns:.78fr 1.22fr; gap:clamp(30px,7vw,90px); align-items:start; }
.terms-hero { padding-top:28px; }
.terms-hero h1 { font-size:clamp(42px,5.5vw,66px); }
.terms-hero h1 span { color:var(--green); }
.terms-hero p { color:var(--muted); max-width:340px; margin:22px 0 28px; }
.terms-card { padding:30px; }
.terms-card-head, .settings-page-intro { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; }
.terms-card-head h2, .settings-page-intro h2 { font-size:23px; margin:0; }
.terms-icon { flex:none; width:38px; height:38px; display:grid; place-items:center; border-radius:12px; color:#fff; background:var(--green-dark); font-weight:700; }
.terms-copy { white-space:pre-wrap; color:var(--ink); line-height:1.85; margin-top:27px; padding-top:22px; border-top:1px solid var(--line); }
.terms-updated { color:var(--muted); font-size:12px; margin-top:25px; padding-top:15px; border-top:1px solid var(--line); }
.terms-admin-card { max-width:850px; }
.settings-page-intro { margin-bottom:24px; }
.settings-page-intro .eyebrow { margin-bottom:8px; }
.settings-page-intro p { margin:7px 0 0; }
.terms-editor { min-height:330px; line-height:1.65; }
.order-detail-grid { display:grid; grid-template-columns:minmax(0,1fr) 290px; gap:18px; align-items:start; }
.order-detail-card { padding:30px; }
.detail-title-row { display:flex; justify-content:space-between; align-items:flex-start; gap:18px; padding-bottom:23px; border-bottom:1px solid var(--line); }
.detail-title-row h1 { font-size:clamp(29px,4vw,43px); letter-spacing:-1.8px; }
.order-detail-id { color:var(--muted); font:12px monospace; word-break:break-all; margin:9px 0 0; }
.detail-summary { display:grid; grid-template-columns:repeat(2,1fr); gap:18px 25px; padding:23px 0; border-bottom:1px solid var(--line); }
.detail-summary div { display:grid; gap:3px; }
.detail-summary span { color:var(--muted); font-size:12px; }
.detail-summary strong { font-size:14px; }
.detail-access, .detail-pending { padding-top:25px; }
.detail-access .eyebrow { margin-bottom:7px; }
.detail-access h2, .detail-pending h2 { font-size:21px; }
.detail-pending p { color:var(--muted); margin:8px 0 18px; }
.order-help-card { background:var(--ink); color:#fff; }
.order-help-card h2 { margin:18px 0 8px; }
.order-help-card p { color:#a6beb1; font-size:13px; margin:0 0 20px; }
.order-help-card .btn-outline { color:#fff; border-color:#466057; width:100%; }
.track-invoice-page { min-width:0; padding:30px 0 82px; background:var(--paper); }
.track-back-link { display:inline-flex; margin-bottom:52px; }
.track-invoice-layout { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,520px); gap:clamp(35px,8vw,110px); align-items:center; min-width:0; }
.track-invoice-copy h1 { font-size:clamp(44px,6vw,70px); letter-spacing:-2.8px; }
.track-invoice-copy h1 span { color:var(--green); }
.track-invoice-copy p { max-width:440px; color:var(--muted); font-size:16px; margin:22px 0 0; }
.track-invoice-card { max-width:560px; min-width:0; padding:34px; border:1px solid #d4e8dc; border-radius:26px; box-shadow:0 18px 55px rgba(27,60,45,.08); background:#fff; }
.track-card-icon { width:43px; height:43px; display:grid; place-items:center; margin-bottom:22px; border-radius:14px; color:#fff; background:var(--green-dark); font:700 25px/1 Arial,sans-serif; }
.track-invoice-card .eyebrow { margin-bottom:10px; }
.track-invoice-card h2 { font-size:30px; letter-spacing:-.8px; }
.track-invoice-sub { color:var(--muted); font-size:13px; margin:9px 0 25px; }
.track-invoice-card .btn { width:100%; }
.track-card-note { display:flex; gap:8px; align-items:flex-start; margin-top:18px; color:var(--muted); font-size:12px; }
.track-card-note span { color:#fff; background:var(--green-dark); border-radius:50%; width:17px; height:17px; display:inline-grid; place-items:center; font-size:10px; font-weight:700; flex:none; }
.track-benefits { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; margin:60px 0 0; padding-top:22px; border-top:1px solid var(--line); }
.track-benefits div { display:grid; grid-template-columns:auto 1fr; column-gap:11px; align-items:baseline; }
.track-benefits span { grid-row:span 2; color:var(--green); font:700 12px monospace; }
.track-benefits strong { font-size:13px; }
.track-benefits small { color:var(--muted); font-size:12px; }
.admin-side { top:0 !important; align-self:flex-start; }
.admin-mobilebar { top:0 !important; }
@media (max-width:800px) {
  .terms-layout, .order-detail-grid { grid-template-columns:1fr; }
  .terms-hero { padding-top:0; }
  .order-detail-aside { order:-1; }
}
@media (max-width:560px) {
  .history-head { display:block; }
  .history-note { display:block; margin-top:7px; }
  .history-item { align-items:flex-start; flex-direction:column; }
  .history-detail-link { width:100%; }
  .terms-card, .order-detail-card { padding:21px; }
  .detail-title-row { display:block; }
  .detail-title-row .status { display:inline-block; margin-top:15px; }
  .detail-summary { grid-template-columns:1fr; gap:12px; }
}

@media (max-width:800px) {
  .track-invoice-page { padding-top:24px; }
  .track-back-link { margin-bottom:31px; }
  .track-invoice-layout { display:flex; flex-direction:column; gap:24px; align-items:stretch; }
  .track-invoice-copy { order:0; }
  .track-invoice-card { order:1; max-width:none; width:100%; }
  .track-invoice-copy h1 { font-size:clamp(38px,10vw,56px); letter-spacing:-2px; }
  .track-invoice-copy p { font-size:14px; margin-top:15px; }
  .track-benefits { margin-top:36px; }
}

@media (max-width:900px) {
  .track-invoice-page .container { width:min(calc(100% - 28px),1120px); min-width:0; }
  .track-invoice-layout,
  .track-invoice-copy,
  .track-invoice-card { width:100%; min-width:0; }
  .track-invoice-layout { display:flex; flex-direction:column; align-items:stretch; gap:24px; }
  .track-invoice-card { max-width:none; }
}

@media (max-width:560px) {
  .brand-mark { width:72px; height:41px; }
  .footer { padding-top:50px; }
  .footer-logo { min-height:78px; }
  .footer-logo img { max-height:115px; }
  .footer-description { margin-top:22px; font-size:16px; line-height:1.8; }
  .footer-socials { gap:27px; margin-top:34px; }
  .social-link svg { width:29px; height:29px; }
  .footer-links { gap:14px; margin-top:30px; }
  .footer-bottom { display:block; line-height:1.8; }
  .footer-bottom { margin-top:38px; }
  .footer-bottom span { display:block; }
  .footer-bottom span + span { margin-top:4px; }
  .track-invoice-page { padding-bottom:55px; }
  .track-invoice-card { padding:23px; border-radius:21px; }
  .track-card-icon { margin-bottom:18px; }
  .track-invoice-card h2 { font-size:25px; }
  .track-benefits { grid-template-columns:1fr; gap:16px; margin-top:32px; }
}