:root {
  color-scheme: light;
  --bg: #f4f7f8;
  --sf: #fff;
  --ink: #122a33;
  --mut: #60757c;
  --line: #dce6e9;
  --br: #0e6678;
  --hero: #103f4b;
  --gold: #f2b63d;
  --gold-hover: #e6a923;
  --sh: 0 12px 32px rgba(18, 54, 65, .09);
  --sh-lg: 0 24px 70px rgba(18, 54, 65, .16);
  --radius: 16px;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0b171b;
    --sf: #11242a;
    --ink: #eaf2f3;
    --mut: #9ab0b6;
    --line: #294149;
    --br: #69c5d6;
    --hero: #102f39;
    --gold: #f2b63d;
    --gold-hover: #ffd06a;
    --sh: 0 12px 32px rgba(0, 0, 0, .24);
    --sh-lg: 0 24px 70px rgba(0, 0, 0, .4);
  }
}

* { box-sizing: border-box; }

html { min-width: 0; scroll-behavior: smooth; }

body {
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 system-ui, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--br); text-underline-offset: 3px; }
a:hover { color: var(--hero); }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--br) 55%, transparent);
  outline-offset: 3px;
}

h1, h2 {
  margin: 0 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.16;
  letter-spacing: -.025em;
}
h1 { font-size: clamp(28px, 4vw, 36px); }
h2 { font-size: 22px; }
h3 { line-height: 1.3; }
p { margin-top: 0; }

.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: var(--br);
  font: 700 23px/1.2 Georgia, "Times New Roman", serif;
  letter-spacing: -.04em;
  text-decoration: none;
}
.logo img { display: block; width: 42px; height: 42px; flex: 0 0 auto; border-radius: 11px; object-fit: contain; }
.logo:hover { color: var(--hero); }
.logo.light { color: #fff; }
.top .logo { margin: 0; }
.top .logo img { width: 48px; height: 48px; }

.wrap {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 20px 28px 48px;
}
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 56px;
  margin-bottom: 44px;
}
.top > span { display: flex; align-items: center; gap: 8px; }

.btn, button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: var(--gold);
  color: #382800;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.btn { padding: 12px 19px; }
button { padding: 11px 18px; }
.btn:hover, button:hover {
  background: var(--gold-hover);
  color: #382800;
  box-shadow: 0 5px 14px rgba(104, 75, 12, .13);
  transform: translateY(-1px);
}
.btn:active, button:active { transform: translateY(0); }
.btn:disabled, button:disabled { cursor: wait; opacity: .65; transform: none; }
.btn.ghost, button.ghost {
  border-color: var(--line);
  background: var(--sf);
  color: var(--ink);
  box-shadow: none;
}
.btn.ghost:hover, button.ghost:hover { border-color: var(--br); color: var(--br); }
.sm { min-height: 38px; padding: 8px 13px; font-size: 14px; }
.big { min-height: 52px; padding: 15px 25px; font-size: 16px; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  padding: 18px 0 54px;
}
.hero h1 { max-width: 610px; font-size: clamp(38px, 5.4vw, 60px); }
.lead {
  max-width: 570px;
  margin: 0 0 26px;
  color: var(--mut);
  font-size: clamp(17px, 2vw, 19px);
  line-height: 1.7;
}
.demo {
  position: relative;
  display: flex;
  min-height: 360px;
  align-items: center;
  justify-content: center;
  gap: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 28px;
  background:
    radial-gradient(ellipse at 18% 20%, rgba(86, 190, 192, .32), transparent 38%),
    radial-gradient(ellipse at 90% 85%, rgba(242, 182, 61, .22), transparent 40%),
    linear-gradient(145deg, #123f4a, #092a34);
  padding: 28px;
  box-shadow: var(--sh-lg);
}
.demo .cover {
  width: 150px;
  min-width: 130px;
  border-left-width: 8px;
  border-radius: 5px 14px 14px 5px;
  background: linear-gradient(155deg, #17758a, #103f4b 72%);
  font-size: 15px;
  transform: rotate(-5deg);
}
.demo-card {
  display: grid;
  width: min(190px, 55%);
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--sf);
  padding: 18px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, .2);
  transform: translateY(10px);
}
.demo-card small { color: var(--mut); font-size: 12px; }
.demo-card b { line-height: 1.35; }
.demo-card span { color: var(--br); font-size: 22px; font-weight: 800; }
.demo-card i {
  border-radius: 8px;
  background: var(--gold);
  color: #382800;
  padding: 9px;
  font-size: 13px;
  font-style: normal;
  font-weight: 750;
  text-align: center;
}

.feat { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feat > div {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--sf);
  padding: 23px;
  box-shadow: var(--sh);
}
.feat b { font-size: 17px; }
.feat p { margin: 7px 0 0; color: var(--mut); font-size: 14px; }

footer, .foot {
  margin-top: 28px;
  border-top: 1px solid var(--line);
  color: var(--mut);
  padding: 13px 0 0;
  text-align: center;
  font-size: 12px;
}
.foot a { display: inline-block; margin: 0; }
.foot-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0;
  overflow: visible;
  white-space: nowrap;
  font-size: 12px;
}
.foot-links > * + *::before { margin: 0 8px; color: var(--mut); content: "·"; }
.foot-links > a, .foot-contact summary { padding: 2px 0; }
.foot-contact { position: relative; }
.foot-contact summary { color: var(--br); cursor: pointer; list-style: none; }
.foot-contact summary:hover { color: var(--hero); }
.foot-contact summary::-webkit-details-marker { display: none; }
.foot-contact summary::after { margin-left: 5px; content: "▾"; font-size: 11px; }
.foot-contact[open] summary::after { content: "▴"; }
.foot-contact-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  z-index: 20;
  display: grid;
  justify-items: center;
  gap: 6px;
  width: min(240px, calc(100vw - 32px));
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--sf);
  box-shadow: var(--sh-lg);
}
.foot-contact-qr { display: block; width: 144px; height: 144px; border-radius: 8px; background: #fff; object-fit: contain; }
.foot-contact-hint { color: var(--mut); font-size: 12px; }
.foot-contact-panel > a { margin: 0; overflow-wrap: anywhere; }
.foot-copyright { margin: 4px 0 0; padding: 0; border: 0; font-size: clamp(8px, 2.7vw, 11px); letter-spacing: -.02em; white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); }
.support-widget { position: fixed; right: 20px; bottom: 18px; z-index: 45; }
.support-chat-toggle { position: relative; isolation: isolate; display: flex; min-width: 118px; min-height: 50px; align-items: center; gap: 8px; overflow: visible; border: 0; border-radius: 999px; background: var(--br); color: #fff; padding: 10px 17px 10px 54px; box-shadow: var(--sh-lg); cursor: pointer; }
.support-chat-toggle::before { position: absolute; z-index: -1; top: 50%; left: 3px; width: 42px; height: 42px; border: 2px solid transparent; border-top-color: color-mix(in srgb, var(--gold) 90%, white); border-right-color: color-mix(in srgb, var(--gold) 35%, transparent); border-radius: 50%; content: ""; transform: translateY(-50%); animation: support-orbit 2.8s linear infinite; }
.support-icon { position: absolute; left: 14px; font-size: 18px; line-height: 1; }
.support-word { animation: support-word 4s ease-in-out infinite; }
@keyframes support-orbit { to { transform: translateY(-50%) rotate(360deg); } }
@keyframes support-word { 0%, 15%, 85%, 100% { opacity: .35; } 35%, 65% { opacity: 1; } }
.support-chat-toggle:hover { background: var(--hero); color: #fff; }
.support-chat-panel { position: absolute; right: 0; bottom: 62px; display: grid; grid-template-rows: auto minmax(120px, 1fr) auto; width: min(370px, calc(100vw - 28px)); height: min(530px, calc(100vh - 105px)); overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--sf); color: var(--ink); box-shadow: var(--sh-lg); }
.support-chat-panel[hidden] { display: none; }
.support-chat-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding: 13px 15px; }
.support-chat-header > div { display: grid; }
.support-chat-header small { color: var(--mut); font-size: 11px; }
.support-chat-header button { width: 34px; min-height: 34px; border: 1px solid var(--line); border-radius: 50%; background: transparent; font-size: 21px; cursor: pointer; }
.support-chat-messages { overflow: auto; padding: 12px; }
.support-message { max-width: 90%; margin: 0 0 10px; border-radius: 12px; padding: 9px 11px; }
.support-message.from-user { margin-left: auto; background: color-mix(in srgb, var(--br) 13%, var(--sf)); }
.support-message.from-support { margin-right: auto; background: var(--bg); }
.support-message b { font-size: 12px; }
.support-message p { margin: 3px 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; }
.support-message time,.support-pending { color: var(--mut); font-size: 11px; }
.support-pending { margin: -4px 0 10px 6px; }
.support-chat-panel form { border-top: 1px solid var(--line); padding: 10px; }
.support-chat-panel textarea { min-height: 58px; margin-bottom: 7px; resize: vertical; font-size: 14px; }
.support-chat-panel form button { width: 100%; margin: 0; }
.help-dialog details { border-top: 1px solid var(--line); padding: 12px 2px; }
.help-dialog details summary { cursor: pointer; font-weight: 700; }
.help-dialog details p { margin: 8px 0 0; }
.help-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.help-dialog-actions button { width: auto; margin: 0; }
.notice-detail-panel { max-height: min(84vh, 760px); overflow: auto; }
.notice-detail-body { margin: 12px 0; border-radius: 10px; background: var(--bg); padding: 12px; }
.notice-detail-body p { margin: 4px 0 0; white-space: pre-line; overflow-wrap: anywhere; }
.notice-detail-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 14px 0; }
.notice-detail-meta div { border: 1px solid var(--line); border-radius: 9px; padding: 9px; }
.notice-detail-meta dt { color: var(--mut); font-size: 12px; }
.notice-detail-meta dd { margin: 3px 0 0; overflow-wrap: anywhere; }
.notice-detail-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.notice-detail-actions button { width: auto; margin: 0; }
.my-product-links { display: grid; justify-items: start; gap: 6px; }
.my-product-links b { color: var(--mut); font-size: 12px; }
.my-product-links button { margin: 0; }
.share-links-dialog { max-width: 540px; }
.share-links-heading { display: flex; align-items: center; gap: 12px; margin: 0 36px 20px 0; }
.share-links-heading > span { display: grid; width: 44px; height: 44px; flex: 0 0 44px; place-items: center; border-radius: 13px; background: color-mix(in srgb, var(--br) 12%, var(--sf)); font-size: 21px; }
.share-links-heading h2,.share-links-heading p { margin: 0; }
.share-links-heading p { margin-top: 4px; color: var(--mut); font-size: 13px; }
.share-link-card { margin: 12px 0; border: 1px solid var(--line); border-radius: 13px; background: var(--bg); padding: 12px; }
.share-link-card label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 700; }
.share-link-card > div { display: flex; align-items: center; gap: 8px; }
.share-link-card input { min-width: 0; flex: 1; margin: 0; font-size: 13px; }
.share-link-card button { flex: 0 0 auto; margin: 0; }
.share-links-dialog .copy-feedback { min-height: 20px; margin: 8px 0 0; color: var(--br); font-size: 13px; }
.admin-support-thread { margin: 18px 0; border: 1px solid var(--line); border-radius: 14px; background: var(--sf); padding: 14px; }
.admin-support-thread > header { margin-bottom: 12px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.admin-support-thread > header h2,.admin-support-thread > header p { margin: 0; }
.admin-support-thread > header p { color: var(--mut); font-size: 13px; }
.admin-support-message,.admin-support-reply { margin: 10px 0; border-radius: 10px; background: var(--bg); padding: 10px 12px; }
.admin-support-reply { margin-left: 24px; background: color-mix(in srgb, var(--br) 10%, var(--sf)); }
.admin-support-message p,.admin-support-reply p { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.admin-ticket { margin: 10px 0; border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.admin-ticket .section-head small { display: block; color: var(--mut); }
.admin-ticket-reply { display: flex; align-items: end; gap: 10px; margin-top: 10px; }
.admin-ticket-reply label { flex: 1; }
.admin-ticket-reply input { margin: 4px 0 0; }
.admin-ticket-reply button { width: auto; margin: 0 0 4px; }

@media (max-width: 520px) {
  .support-widget { right: 12px; bottom: 12px; }
  .support-chat-panel { width: calc(100vw - 24px); }
  .admin-ticket-reply { align-items: stretch; flex-direction: column; }
  .admin-ticket-reply button { width: 100%; }
}

.auth { display: grid; min-height: 100vh; grid-template-columns: 1fr 1fr; }
.auth aside {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(ellipse at 20% 15%, rgba(80, 183, 190, .23), transparent 42%),
    linear-gradient(150deg, var(--hero), #082b35);
  color: #fff;
  padding: clamp(28px, 6vw, 72px);
}
.auth aside h2 { max-width: 440px; font-size: clamp(30px, 4vw, 44px); }
.auth aside p { max-width: 390px; color: rgba(255,255,255,.78); }
.auth section { display: flex; align-items: center; justify-content: center; padding: 32px 22px; }
.card {
  width: 100%;
  max-width: 430px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--sf);
  padding: clamp(22px, 4vw, 34px);
  box-shadow: var(--sh);
}
.mlogo { display: none; }
.google {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 8px;
  border-color: var(--line);
  background: var(--sf);
  color: var(--ink);
}
.google:hover { border-color: var(--br); background: var(--bg); color: var(--ink); }
.google svg { width: 20px; height: 20px; }
.google-notice {
  margin: 0 0 12px;
  border: 1px solid color-mix(in srgb, var(--gold) 68%, var(--line));
  border-radius: 10px;
  background: color-mix(in srgb, var(--gold) 13%, var(--sf));
  color: var(--ink);
  padding: 11px 13px;
  font-size: 14px;
  line-height: 1.45;
}
.google-notice[hidden] { display: none; }
.or { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: var(--mut); font-size: 13px; }
.or::before, .or::after { height: 1px; flex: 1; background: var(--line); content: ""; }

input, select, textarea {
  display: block;
  width: 100%;
  min-height: 46px;
  margin: 0 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--sf);
  color: var(--ink);
  padding: 11px 13px;
  transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}
textarea { min-height: 110px; resize: vertical; }
input::placeholder, textarea::placeholder { color: color-mix(in srgb, var(--mut) 78%, transparent); }
input:focus, select:focus, textarea:focus {
  border-color: var(--br);
  outline: 0;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--br) 14%, transparent);
}
input[readonly] { background: var(--bg); color: var(--mut); }
input[type="checkbox"], input[type="radio"] { width: auto; min-height: auto; accent-color: var(--br); }
label { display: block; margin: 0 0 7px; color: var(--ink); font-size: 14px; font-weight: 650; }
form button { width: 100%; margin-top: 4px; }
.plain { display: flex; min-height: 100vh; flex-direction: column; max-width: 680px; margin: 0 auto; padding: 30px 20px; }
.plain > .foot { width: 100%; margin-top: auto; }

.shell { display: grid; min-height: 100vh; grid-template-columns: 240px minmax(0, 1fr); }
nav { border-right: 1px solid var(--line); background: var(--sf); padding: 22px 14px; overflow-y: auto; }
.nav-group { margin-top: 18px; padding-top: 10px; border-top: 1px solid var(--line); }
.nav-group:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.nav-group > span {
  display: block;
  margin: 0 8px 8px;
  color: var(--mut);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
nav a:not(.logo) { display: block; margin-bottom: 3px; border-radius: 10px; color: var(--ink); padding: 10px 12px; text-decoration: none; }
nav a:not(.logo):hover { background: color-mix(in srgb, var(--br) 8%, var(--sf)); color: var(--br); }
nav a.on { background: var(--br); color: #fff; }
main { max-width: 900px; padding: 28px 26px; }
.shell > main { display: flex; min-height: 100vh; flex-direction: column; }
.shell > main > .foot { width: 100%; margin-top: auto; }
main > h1 { margin-bottom: 18px; }
main > h2 { margin-top: 26px; }
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--sf);
  padding: 15px 17px;
}
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 13px; }
.cards > div {
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--sf);
  padding: 17px;
  box-shadow: var(--sh);
}
.cards span { display: block; color: var(--mut); font-size: 13px; }
.cards b { font-size: 23px; }
.prod { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 22px; align-items: center; margin-bottom: 22px; }
.cover {
  display: flex;
  aspect-ratio: 3 / 4;
  flex-direction: column;
  justify-content: space-between;
  border-left: 9px solid var(--gold);
  border-radius: 6px 14px 14px 6px;
  background: linear-gradient(145deg, var(--br), var(--hero));
  color: #fff;
  padding: 17px;
  font-family: Georgia, "Times New Roman", serif;
  box-shadow: var(--sh);
}
.price { margin: 0 0 12px; font-size: 30px; font-weight: 800; }
.mut, .muted-card { color: var(--mut); }
.msg { margin: 10px 0; color: #bd3b35; }
.msg.ok { color: #168052; }
.box, .notice {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--br);
  border-radius: 12px;
  background: var(--sf);
  padding: 16px;
}
.tbl { width: 100%; border-collapse: collapse; background: var(--sf); color: var(--ink); }
.tbl th, .tbl td { border-bottom: 1px solid var(--line); padding: 12px; text-align: left; font-size: 14px; }
.tbl th { color: var(--mut); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.tblw { overflow-x: auto; border: 1px solid var(--line); border-radius: 13px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.admin-user-list { display: grid; gap: 10px; margin: 14px 0; }
.admin-user-card { display: flex; align-items: center; gap: 14px; border: 1px solid var(--line); border-radius: 13px; background: var(--sf); padding: 14px; }
.admin-user-avatar { display: grid; width: 42px; height: 42px; flex: 0 0 42px; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--br) 12%, var(--sf)); color: var(--br); font-weight: 800; }
.admin-user-info { display: grid; min-width: 0; flex: 1; gap: 2px; overflow-wrap: anywhere; }
.admin-user-info > span, .admin-user-info > small { color: var(--mut); font-size: 13px; }
.status-admin, .status-blocked { justify-self: start; border-radius: 999px; padding: 2px 8px; font-size: 12px; }
.status-admin { background: #dbeafe; color: #1e40af; }
.status-blocked { background: #fee2e2; color: #991b1b; }
.admin-user-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.admin-product-filters { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(170px, .4fr); gap: 10px; margin: 14px 0 6px; }
.admin-product-filters input, .admin-product-filters select { margin: 0; }
.admin-product-list { display: grid; gap: 12px; }
.admin-product-card { border: 1px solid var(--line); border-radius: 14px; background: var(--sf); padding: 14px; }
.admin-product-summary { display: flex; align-items: flex-start; gap: 14px; }
.admin-product-cover { display: grid; width: 96px; height: 96px; flex: 0 0 96px; place-items: center; overflow: hidden; border-radius: 10px; background: var(--bg); color: var(--mut); font-size: 12px; }
.admin-product-cover img { display: block; width: 100%; height: 100%; object-fit: contain; }
.admin-product-main { min-width: 0; flex: 1; }
.admin-product-main .section-head { align-items: flex-start; margin: 0; }
.admin-product-main h2 { margin: 0 0 6px; overflow-wrap: anywhere; font-family: inherit; font-size: 18px; letter-spacing: 0; }
.admin-product-main p { margin: 8px 0 2px; color: var(--mut); }
.admin-product-main small { color: var(--mut); }
.admin-product-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.admin-product-details { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.admin-product-details summary { color: var(--br); font-weight: 700; cursor: pointer; }
.admin-product-details dl { display: grid; grid-template-columns: minmax(150px, .3fr) minmax(0, 1fr); gap: 6px 12px; }
.admin-product-details dt { color: var(--mut); font-weight: 700; }
.admin-product-details dd { margin: 0; overflow-wrap: anywhere; white-space: pre-line; }
.admin-products-table{min-width:1020px}
.admin-products-table th,.admin-products-table td{vertical-align:middle}
.admin-products-table td:first-child{width:82px}
.admin-products-table .admin-product-cover{width:64px;height:64px}
.admin-products-table td:nth-child(2){min-width:200px;white-space:normal}
.admin-products-table .admin-product-details{max-width:320px}
.admin-archived-date{display:block;color:var(--mut);margin-top:4px}
.status-archived{background:#e5e7eb;color:#374151}
.product-moderation-note { display: block; max-width: 220px; margin-top: 4px; color: #92400e; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin: 18px 0; }
.product-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--sf);
  color: var(--ink);
  padding: 14px;
  text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.product-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--br) 45%, var(--line)); box-shadow: var(--sh); color: var(--ink); }
.product-card img, .product-card .product-cover-empty { width: 100%; aspect-ratio: 4 / 3; border-radius: 11px; background: var(--bg); object-fit: contain; }
.product-card .product-cover-empty { display: grid; place-items: center; background: linear-gradient(135deg, var(--hero), var(--br)); color: #fff; font-size: 24px; font-weight: 800; }
.product-card .product-price { color: var(--br); font-size: 20px; font-weight: 800; }
.rating { color: #b7791f; white-space: nowrap; }
.product-toolbar { display: grid; grid-template-columns: minmax(220px, 2fr) repeat(2, minmax(170px, 1fr)); gap: 12px; align-items: end; margin: 18px 0 8px; }
.my-products-list { display: grid; gap: 12px; margin: 16px 0; }
.my-product-card { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 18px; align-items: center; border: 1px solid var(--line); border-radius: 16px; background: var(--sf); color: var(--ink); padding: 14px; }
.my-product-cover { width: 150px; height: 118px; overflow: hidden; border-radius: 11px; background: var(--bg); }
.my-product-cover img, .my-product-cover .product-cover-empty { display: grid; width: 100%; height: 100%; object-fit: contain; }
.my-product-cover .product-cover-empty { place-items: center; background: linear-gradient(135deg, var(--hero), var(--br)); color: #fff; font-size: 24px; font-weight: 800; }
.my-product-details { min-width: 0; }
.my-product-heading, .my-product-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px 18px; flex-wrap: wrap; }
.my-product-heading h2 { margin: 0; font-size: 18px; overflow-wrap: anywhere; }
.my-product-meta { justify-content: flex-start; margin-top: 8px; color: var(--mut); font-size: 13px; }
.product-status { display: inline-flex; align-items: center; border-radius: 999px; padding: 5px 10px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.status-approved { background: #dcfce7; color: #166534; }
.status-pending { background: #fef3c7; color: #92400e; }
.status-rejected { background: #fee2e2; color: #991b1b; }
.status-draft { background: #e2e8f0; color: #334155; }
.status-suspended { background: #e5e7eb; color: #374151; }
.my-product-actions { margin-bottom: 0; }
.product-card-link { display: flex; flex-direction: column; gap: 8px; color: inherit; text-decoration: none; }
.product-card .product-card-cover { overflow: hidden; border-radius: 11px; background: var(--bg); }
.product-card .product-card-cover img, .product-card .product-card-cover .product-cover-empty { display: grid; width: 100%; aspect-ratio: 4 / 3; object-fit: contain; }
.product-card-description { margin: 0; color: var(--mut); font-size: 14px; line-height: 1.5; }
.product-more { align-self: flex-start; }
.product-description-dialog { width: min(620px, calc(100% - 32px)); max-height: 80vh; overflow: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--sf); color: var(--ink); padding: 22px; box-shadow: var(--sh); }
.product-description-dialog::backdrop { background: #07101899; }
.product-description-dialog h2 { margin: 0; font-size: 20px; }
.product-card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.product-card-message { overflow-wrap: anywhere; }
.checkout-head { margin: 18px 0; }
.checkout-head h1 { margin: 8px 0; overflow-wrap: anywhere; }
.checkout-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(340px, 1.1fr); gap: 22px; align-items: start; margin: 18px 0 24px; }
.checkout-product, .checkout-panel { min-width: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--sf); padding: 20px; box-shadow: var(--sh); }
.checkout-product h2, .checkout-panel h2 { margin-top: 6px; overflow-wrap: anywhere; }
.checkout-cover { display: grid; min-height: 220px; max-height: 420px; overflow: hidden; place-items: center; border-radius: 12px; background: var(--bg); }
.checkout-cover img { display: block; width: 100%; max-height: 420px; object-fit: contain; }
.checkout-cover-empty { display: grid; width: 100%; min-height: 220px; place-items: center; background: linear-gradient(135deg, var(--hero), var(--br)); color: #fff; font-size: 40px; font-weight: 800; }
.checkout-total { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 14px; }
.checkout-total b { color: var(--br); font-size: 23px; }
.payment-methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)); gap: 10px; margin: 16px 0; border: 0; padding: 0; }
.payment-methods legend { margin-bottom: 8px; font-weight: 700; }
.payment-option { display: flex; align-items: center; gap: 9px; margin: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); padding: 11px; }
.payment-option input { margin: 0; }
.checkout-submit { width: 100%; justify-content: center; }
.checkout-trust { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 18px; border-radius: 11px; background: var(--bg); padding: 13px; font-size: 14px; }
.checkout-legal { color: var(--mut); font-size: 13px; line-height: 1.55; }
.checkout-payment-notice { font-size: 14px; }
.checkout-payment-notice p { margin-bottom: 0; }
.store-head { display: flex; align-items: center; gap: 18px; margin: 14px 0; border: 1px solid var(--line); border-radius: 16px; background: var(--sf); padding: 22px; }
.store-head .av { width: 72px; height: 72px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.stepper { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0; }
.stepper span { border: 1px solid var(--line); border-radius: 999px; background: var(--sf); color: var(--mut); padding: 7px 12px; font-size: 13px; }
.stepper .active { border-color: var(--br); background: var(--br); color: #fff; }
.loading { display: grid; min-height: 45vh; place-content: center; color: var(--mut); text-align: center; }
.spinner { width: 34px; height: 34px; margin: 0 auto 12px; border: 4px solid var(--line); border-top-color: var(--br); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.modal {
  position: fixed;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 17, 22, .62);
  inset: 0;
  padding: 18px;
  backdrop-filter: blur(3px);
}
.modal-box {
  position: relative;
  width: 100%;
  max-width: 600px;
  max-height: min(84vh, 900px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--sf);
  color: var(--ink);
  padding: 28px;
  box-shadow: var(--sh-lg);
}
.modal-box h2 { font-size: 23px; }
.modal-box p { font-size: 15px; }
.x {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  min-height: 36px;
  border-color: var(--line);
  border-radius: 50%;
  background: var(--sf);
  color: var(--ink);
  padding: 0;
  font-size: 23px;
  line-height: 1;
}
.x:hover { background: var(--bg); color: var(--ink); }
.chk { display: flex; align-items: flex-start; gap: 10px; margin: 10px 0 14px; font-size: 14px; }
.chk input { width: auto; margin: 4px 0 0; }
.seg { display: flex; gap: 10px; margin: 0 0 8px; }
.seg label { display: flex; flex: 1; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px; padding: 10px; cursor: pointer; }
.seg input { width: auto; margin: 0; }

@media (max-width: 900px) {
  .wrap { padding-right: 22px; padding-left: 22px; }
  .hero { grid-template-columns: minmax(0, 1fr) minmax(280px, .9fr); gap: 30px; }
  .demo { min-height: 310px; padding: 20px; }
  .shell { grid-template-columns: 220px minmax(0, 1fr); }
  main { padding: 24px 20px; }
}

@media (max-width: 700px) {
  .wrap { padding: 14px 18px 34px; }
  .foot-links { gap: 6px 12px; }
  .foot-contact { gap: 5px 8px; }
  .top { margin-bottom: 28px; }
  .top > span { gap: 6px; }
  .top .btn { padding-right: 11px; padding-left: 11px; }
  .hero { grid-template-columns: 1fr; gap: 30px; padding: 12px 0 36px; }
  .hero h1 { max-width: 560px; font-size: clamp(36px, 9vw, 48px); }
  .lead { font-size: 17px; }
  .demo { min-height: 280px; }
  .feat { grid-template-columns: 1fr; gap: 11px; }
  .feat > div { padding: 19px; }
  .auth { grid-template-columns: 1fr; }
  .auth aside { display: none; }
  .auth section { min-height: 100vh; padding: 24px 16px; }
  .mlogo { display: inline-flex; }
  .shell { display: block; }
  main { padding: 20px 16px; }
  .prod { grid-template-columns: 1fr; }
  .prod .cover { max-width: 210px; }
  .row { align-items: flex-start; flex-direction: column; }
  .row input { max-width: 100%; }
  .store-head { align-items: flex-start; padding: 17px; }
  .modal-box { padding: 25px 20px; }
  .product-toolbar { grid-template-columns: 1fr 1fr; }
  .product-toolbar label:first-child { grid-column: 1 / -1; }
  .my-product-card { grid-template-columns: 110px minmax(0, 1fr); gap: 12px; padding: 11px; }
  .my-product-cover { width: 110px; height: 100px; }
  .my-product-heading h2 { font-size: 16px; }
  .my-product-meta { gap: 7px 12px; font-size: 12px; }
  .checkout-layout { grid-template-columns: 1fr; gap: 14px; }
  .checkout-product, .checkout-panel { padding: 16px; }
  .admin-user-card { align-items: flex-start; flex-wrap: wrap; }
  .admin-user-info { min-width: calc(100% - 65px); }
  .admin-user-actions { width: 100%; justify-content: flex-start; }
  .admin-user-actions button { flex: 1; }
  .admin-product-filters { grid-template-columns: 1fr; }
  .admin-product-summary { flex-direction: column; }
  .admin-product-main { width: 100%; }
  .admin-product-main .section-head { flex-wrap: wrap; }
  .admin-product-details dl { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .top { align-items: flex-start; flex-direction: column; }
  .top > span { width: 100%; }
  .top > span .btn { flex: 1; }
  .demo { min-height: 250px; gap: 10px; padding: 14px; }
  .demo .cover { width: 125px; min-width: 112px; padding: 12px; font-size: 13px; }
  .demo-card { width: 56%; padding: 13px; }
  .demo-card b { font-size: 14px; }
  .demo-card span { font-size: 19px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards > div { padding: 13px; }
  .cards b { font-size: 19px; }
  .product-toolbar { grid-template-columns: 1fr; }
  .product-toolbar label:first-child { grid-column: auto; }
  .my-product-card { grid-template-columns: 1fr; }
  .my-product-cover { width: 100%; height: 170px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

.product-toolbar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  margin: 18px 0 8px;
  padding: 4px 2px 10px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.product-toolbar input,
.product-toolbar select,
.product-toolbar button {
  flex: 0 0 auto;
  width: auto;
  min-height: 42px;
  margin: 0;
}
.product-toolbar input[type="search"] { flex: 1 0 220px; }
.product-toolbar select { min-width: 128px; }
.product-toolbar input[type="number"] { width: 120px; }
.my-products-table-wrap { width: 100%; margin: 12px 0 16px; overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.my-products-table { width: max-content; min-width: 100%; }
.my-products-table th,
.my-products-table td { padding: 10px; white-space: nowrap; vertical-align: middle; }
.my-products-table th:nth-child(2),
.my-products-table td:nth-child(2) { width: 220px; white-space: normal; }
.my-products-table td.my-product-title { min-width: 200px; max-width: 240px; }
.my-product-title strong { display: block; overflow-wrap: anywhere; }
.my-product-title button { margin-top: 6px; }
.my-products-table .my-product-cover { display: grid; width: 64px; height: 64px; place-items: center; overflow: hidden; border-radius: 9px; background: var(--bg); }
.my-products-table .my-product-cover img { display: block; width: 100%; height: 100%; object-fit: contain; }
.my-products-table .product-cover-empty { display: grid; width: 100%; height: 100%; place-items: center; background: linear-gradient(135deg, var(--hero), var(--br)); color: #fff; font-weight: 800; }
.my-products-table .product-status { padding: 5px 9px; }
.copy-feedback { display: block; min-height: 18px; color: #168052; font-size: 12px; }
.product-pagination { margin: 12px 0; }

@media (max-width: 700px) {
  .product-toolbar { display: flex; flex-wrap: nowrap; }
  .product-toolbar input[type="search"] { flex-basis: 210px; }
  .my-products-table { min-width: 1900px; }
}

.shop-filters {
  display: flex;
  flex-wrap: nowrap;
  gap: 9px;
  overflow-x: auto;
  margin: 14px 0 18px;
  padding: 4px 2px 10px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.shop-filters input,
.shop-filters select {
  flex: 0 0 auto;
  width: auto;
  min-width: 132px;
  min-height: 42px;
  margin: 0;
}
.shop-filters input[type="search"] { flex: 1 0 220px; }
.shop-filters input[type="number"] { width: 120px; min-width: 120px; }
.storefront .product-grid,
.shell>main .product-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
  gap: 16px;
}
.storefront .product-card,
.shell>main .product-card {
  min-width: 0;
  min-height: 100%;
  gap: 8px;
  padding: 12px;
}
.product-card-cover {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  padding: 0;
  cursor: pointer;
}
.product-card-cover:hover { transform: none; box-shadow: none; }
.product-card-cover-inner {
  display: grid;
  width: 100%;
  aspect-ratio: 1 / 1;
  place-items: center;
  overflow: hidden;
  border-radius: inherit;
}
.product-card-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.product-card .product-card-cover .product-card-cover-inner img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}
.product-card .product-card-cover .product-card-cover-inner .product-cover-empty { width: 100%; height: 100%; aspect-ratio: 1 / 1; }
.product-card-cover .product-cover-empty {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  background: linear-gradient(135deg, var(--hero), var(--br));
  color: #fff;
  font-size: 30px;
  font-weight: 800;
}
.product-card-title {
  display: -webkit-box;
  min-height: 2.6em;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  padding: 0;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.3;
  text-align: left;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.product-card-title:hover {
  background: transparent;
  color: var(--br);
  box-shadow: none;
  transform: none;
}
.product-card-rating { min-height: 1.5em; font-size: 13px; }
.product-card-price { color: var(--br); font-size: 19px; font-weight: 850; }
.product-card-actions { display: flex; align-items: stretch; gap: 7px; }
.product-card-actions > * { flex: 1 1 0; min-width: 0; }
.product-card-message { min-height: 18px; font-size: 12px; }
.product-detail-layout { display: grid; grid-template-columns: minmax(180px, .75fr) minmax(0, 1.25fr); gap: 20px; margin-top: 16px; }
.product-detail-cover {
  display: grid;
  min-height: 240px;
  place-items: center;
  overflow: hidden;
  border-radius: 12px;
  background: var(--bg);
}
.product-detail-cover img { display: block; width: 100%; max-height: 360px; object-fit: contain; }
.product-detail-cover .product-cover-empty { display: grid; width: 100%; height: 100%; min-height: 240px; place-items: center; background: linear-gradient(135deg, var(--hero), var(--br)); color: #fff; font-size: 40px; font-weight: 800; }
.product-detail-description { max-height: 42vh; overflow-y: auto; white-space: pre-line; }
.product-description-dialog { width: min(760px, calc(100% - 32px)); }
.shop-pagination { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.shop-pagination .current { border-color: var(--br); background: var(--br); color: #fff; }

@media (max-width: 1100px) {
  .storefront .product-grid,
  .shell>main .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 850px) {
  .storefront .product-grid,
  .shell>main .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
}
@media (max-width: 520px) {
  .storefront .product-grid,
  .shell>main .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .storefront .product-card,
  .shell>main .product-card { padding: 9px; }
  .product-card-actions { flex-direction: column; }
  .product-card-actions > * { flex-basis: auto; }
  .product-detail-layout { grid-template-columns: 1fr; }
  .product-detail-cover { max-height: 300px; }
  .shop-pagination { gap: 5px; }
  .shop-pagination button { min-width: 38px; padding: 8px; }
}
.plain.storefront { width: min(1440px, 100%); max-width: 1440px; }

body { overflow-x: hidden; }
img, svg, video, canvas { max-width: 100%; }
button, .btn { touch-action: manipulation; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline-offset: 2px;
}
.shell > main { min-width: 0; }
.shell > main > * { min-width: 0; }
.shell > main .section-head { margin-bottom: 12px; }
.shell > main .foot { margin-top: auto; }
.shell > main .chart-card { width: 100%; min-width: 0; }
.shell > main .chart-bars { width: 100%; }
.shell > main .tblw { min-width: 0; }
.shell > main .metric-card:focus-visible { outline-offset: 3px; }
.shell > main .withdrawal-form { min-width: 0; }
.shell > main .withdrawal-form input,
.shell > main .withdrawal-form select { width: 100%; }
.withdrawal-request-info { min-width: 0; }
.withdrawal-request-details { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 4px 0; }
.withdrawal-request-details span { min-width: 0; overflow-wrap: anywhere; }
.demo { min-width: 0; }

@media (max-width: 768px) {
  .wrap { padding: 12px 14px 28px; }
  .top { min-height: 48px; margin-bottom: 14px; }
  .top .logo img { width: 38px; height: 38px; }
  .top .logo { font-size: 19px; }
  .hero { gap: 18px; padding: 8px 0 24px; }
  .hero h1 { font-size: clamp(29px, 8vw, 40px); }
  .lead { margin-bottom: 18px; font-size: 15px; line-height: 1.55; }
  .demo { min-height: 190px; border-radius: 20px; }
  .feat { grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 9px; }
  .feat > div { padding: 13px; }
  .shell > main .tbl.my-products-table { min-width: 1900px; }
  .product-toolbar, .shop-filters { max-width: 100%; }
  .product-description-dialog { padding: 16px; }
  .product-description-dialog, .app-dialog, .modal-box { max-width: calc(100vw - 24px); }
  .modal { padding: 12px; }
  .modal-box { padding: 20px 16px; }
  .support-chat-panel { right: 0; bottom: 56px; width: min(360px, calc(100vw - 24px)); height: min(480px, calc(100dvh - 90px)); }
  .support-chat-toggle { width: 48px; min-width: 48px; height: 48px; min-height: 48px; justify-content: center; padding: 0; }
  .support-chat-toggle::before { left: 3px; }
  .support-icon { position: static; }
  .support-word { display: none; }
}

@media (max-width: 380px) {
  .wrap { padding-right: 11px; padding-left: 11px; }
  .top > span { flex-wrap: wrap; }
  .hero h1 { font-size: 28px; }
  .featured-product { gap: 9px; padding: 10px; }
  .featured-product-info small { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

.landing-page { display: flex; min-height: 100vh; flex-direction: column; }
.landing-page > .foot { width: 100%; margin-top: auto; }
.landing-page .top { margin-bottom: 26px; }
.landing-nav, .landing-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.landing-eyebrow { display: inline-block; margin-bottom: 9px; color: var(--br); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.landing-hero { position: relative; isolation: isolate; grid-template-columns: minmax(0, 1fr) minmax(300px, .85fr); gap: clamp(24px, 5vw, 64px); padding: 42px clamp(20px, 5vw, 60px); border: 1px solid color-mix(in srgb, var(--br) 20%, var(--line)); border-radius: 26px; background: radial-gradient(ellipse at 87% 14%, color-mix(in srgb, var(--gold) 18%, transparent), transparent 34%), linear-gradient(135deg, color-mix(in srgb, var(--br) 8%, var(--sf)), var(--sf) 70%); box-shadow: var(--sh); }
.landing-hero h1 { font-size: clamp(36px, 5vw, 58px); }
.landing-trust-note { max-width: 560px; margin: 16px 0 0; color: var(--mut); font-size: 12px; }
.landing-hero-feature { min-height: 290px; border-radius: 20px; }
.hero-sample { display: grid; width: min(100%, 390px); gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 17px; background: var(--sf); color: var(--ink); box-shadow: var(--sh-lg); }
.hero-sample-badge { justify-self: start; border-radius: 999px; background: color-mix(in srgb, var(--br) 10%, var(--sf)); color: var(--br); padding: 4px 9px; font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.hero-sample-product { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: center; gap: 14px; }
.hero-sample-art { display: grid; min-height: 116px; align-content: center; justify-items: center; gap: 7px; overflow: hidden; border-radius: 12px; color: #fff; padding: 8px; text-align: center; }
.hero-sample-art > span { font-size: 36px; line-height: 1; }
.hero-sample-art > small { font-size: 10px; font-weight: 750; }
.hero-sample-art-book { background: linear-gradient(145deg, #267a67, #12493f); }
.hero-sample-art-course { background: linear-gradient(145deg, #6262ac, #383567); }
.hero-sample-art-template { background: linear-gradient(145deg, #d06c7a, #8b3f63); }
.hero-sample-art-software { background: linear-gradient(145deg, #4081a9, #23516e); }
.hero-sample-art-app { background: linear-gradient(145deg, #dc904d, #a95538); }
.hero-sample-art-license { background: linear-gradient(145deg, #aa8a38, #69501b); }
.hero-sample-info { display: grid; min-width: 0; gap: 5px; }
.hero-sample-info > small, .hero-sample-info > span { color: var(--mut); font-size: 10px; }
.hero-sample-info > b { font-size: 15px; line-height: 1.3; }
.hero-sample-info > strong { color: var(--br); font-size: 20px; }
.hero-sample-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 5px 12px; border-top: 1px solid var(--line); padding-top: 9px; color: var(--mut); font-size: 10px; }
.landing-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 22px 0 38px; }
.landing-stats article { display: grid; gap: 2px; padding: 17px 20px; border: 1px solid var(--line); border-radius: 15px; background: var(--sf); box-shadow: var(--sh); }
.landing-stats article b { color: var(--br); font-size: clamp(22px, 3vw, 30px); line-height: 1.2; }
.landing-stats article span { color: var(--mut); font-size: 13px; }
.landing-stats>p { grid-column: 1/-1; margin: 0; color: var(--mut); font-size: 11px; }
.landing-section { margin: 42px 0; padding: clamp(18px, 4vw, 34px); border: 1px solid var(--line); border-radius: 22px; background: var(--sf); box-shadow: var(--sh); }
.landing-section-heading { max-width: 720px; margin-bottom: 18px; }
.landing-section-heading h2, .landing-security h2, .landing-cta h2 { margin-bottom: 7px; font-size: clamp(24px, 3vw, 34px); }
.landing-section-heading p, .landing-security p, .landing-feature-grid p, .landing-app-card p, .landing-cta p { margin: 0; color: var(--mut); }
.landing-products { grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }
.landing-admin-featured { border-color: color-mix(in srgb, var(--gold) 70%, var(--line)); }
.landing-admin-featured-badge { align-self: flex-start; border-radius: 999px; background: color-mix(in srgb, var(--gold) 22%, var(--sf)); color: var(--ink); padding: 4px 9px; font-size: 10px; font-weight: 750; }
.landing-empty { padding: 22px; border: 1px dashed var(--line); border-radius: 15px; background: var(--bg); }
.landing-empty p { margin: 5px 0 0; color: var(--mut); }
.landing-feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 20px 0; }
.landing-feature-grid article { padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: color-mix(in srgb, var(--bg) 60%, var(--sf)); transition: transform .18s ease, box-shadow .18s ease; }
.landing-feature-grid article:hover { transform: translateY(-2px); box-shadow: var(--sh); }
.landing-feature-grid article>span { font-size: 24px; }
.landing-feature-grid h3 { margin: 7px 0; font-size: 16px; }
.landing-feature-grid p { font-size: 13px; }
.landing-security { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, .55fr); gap: 22px; align-items: center; }
.landing-app-card { display: flex; align-items: flex-start; gap: 12px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg); }
.landing-app-card>span { font-size: 28px; }
.landing-app-card h3 { margin: 0 0 4px; }
.coming-soon { display: inline-block; margin-top: 9px; padding: 4px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--mut); font-size: 11px; }
.landing-cta { margin: 40px 0; padding: clamp(22px, 4vw, 40px); border-radius: 22px; background: linear-gradient(135deg, var(--hero), var(--br)); color: #fff; text-align: center; }
.landing-cta p { margin-bottom: 17px; color: rgba(255,255,255,.82); }
.landing-cta .btn { background: var(--gold); color: #382800; }
.admin-featured-setting { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin: 0 0 16px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--sf); }
.admin-featured-setting h2 { margin: 0 0 4px; }
.admin-featured-setting p { margin: 0; }
.admin-featured-setting form { display: flex; min-width: min(100%, 420px); align-items: flex-end; gap: 8px; }
.admin-featured-setting label { flex: 1; }
.latest-sales { margin: 14px 0 20px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--sf); }
.latest-sales h2 { margin: 0 0 10px; }
.latest-sales article { display: grid; grid-template-columns: minmax(0, 1fr) minmax(140px, .8fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.latest-sales article span { color: var(--mut); font-size: 13px; }
.latest-sales article strong { white-space: nowrap; }
.danger { border-color: #b91c1c !important; background: #b91c1c !important; color: #fff !important; }
@media (max-width: 768px) {
  .landing-page .top { align-items: flex-start; }
  .landing-nav { justify-content: flex-end; gap: 5px; }
  .landing-nav .btn { min-height: 34px; padding: 6px 9px; font-size: 12px; }
  .landing-hero { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 22px 16px; border-radius: 18px; }
  .landing-hero h1 { font-size: clamp(30px, 8vw, 42px); }
  .landing-hero-feature { min-height: 220px; }
  .landing-stats { gap: 7px; margin: 14px 0 24px; }
  .landing-stats article { padding: 10px; }
  .landing-stats article span { font-size: 11px; }
  .landing-section { margin: 24px 0; padding: 16px; border-radius: 16px; }
  .landing-feature-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; margin: 14px 0; }
  .landing-feature-grid article { padding: 13px; }
  .landing-security { grid-template-columns: minmax(0, 1fr); }
  .latest-sales article { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; }
  .latest-sales article span { grid-column: 1; }
  .latest-sales article strong { grid-column: 2; grid-row: 1/3; }
  .admin-featured-setting form { min-width: 0; width: 100%; }
}
@media (max-width: 420px) {
  .landing-page .top { flex-wrap: wrap; }
  .landing-nav { width: 100%; justify-content: flex-start; }
  .landing-actions { align-items: stretch; }
  .landing-actions .btn { flex: 1 1 140px; }
  .landing-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .landing-stats article:last-of-type { grid-column: 1/-1; }
}
@media (prefers-reduced-motion: reduce) {
  .support-chat-toggle::before, .support-word { animation: none; }
  .landing-feature-grid article { transition: none; }
}
.landing-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.landing-stat-icon { font-size: 22px; line-height: 1; }
.landing-stats article { min-width: 0; }
.landing-stats article b { font-size: clamp(16px, 2vw, 21px); }
.landing-benefit-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 768px) {
  .wrap { padding: 14px 16px 30px; }
  .top { gap: 10px; margin-bottom: 26px; }
  .hero { gap: 20px; padding: 10px 0 30px; }
  .lead { margin-bottom: 18px; font-size: 16px; }
  .btn.big { min-height: 46px; padding: 12px 17px; font-size: 14px; }
  .shell > main { padding: 16px 14px; }
  .shell > nav { padding: 16px 12px; }
  .shell > main .row { gap: 9px; margin-bottom: 8px; padding: 10px 12px; }
  .shell > main .cards > div { padding: 11px; }
  .landing-benefit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .landing-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .landing-stats article:last-of-type { grid-column: auto; }
}
@media (max-width: 420px) {
  .wrap { padding-right: 12px; padding-left: 12px; }
  .landing-hero h1 { font-size: clamp(28px, 8vw, 36px); }
  .landing-section { margin: 18px 0; padding: 13px; }
  .landing-benefit-grid { gap: 7px; }
  .landing-benefit-grid article { padding: 10px; }
  .landing-stats article { padding: 9px; }
  .landing-stats article b { font-size: 15px; }
  .foot { margin-top: 20px; padding-top: 10px; }
  .foot-links { justify-content: space-between; gap: 0; font-size: clamp(8px, 2.55vw, 10px); letter-spacing: -.04em; }
  .foot-links > * + *::before { margin: 0 3px; }
  .foot-links > a, .foot-contact summary { padding: 2px 0; }
  .foot-contact summary::after { margin-left: 2px; font-size: 9px; }
  .foot-copyright { margin-top: 3px; font-size: clamp(8px, 2.5vw, 9px); }
}

@media (min-width: 421px) and (max-width: 460px) {
  .foot-links { justify-content: space-between; gap: 0; font-size: clamp(10px, 2.4vw, 11px); letter-spacing: -.03em; }
  .foot-links > * + *::before { margin: 0 3px; }
}
