/* NVT.Shop — shared palette. Change these tokens to update every component. */
:root {
  --page: #f4f3f0;
  --surface: #ffffff;
  --surface-soft: #eeece7;
  --ink: #292623;
  --muted: #69635d;
  --line: #ded9d2;
  --brand: #8e2d32;
  --brand-hover: #702329;
  --brand-soft: #f7eceb;
  --gold: #80602d;
  --gold-soft: #f1e8d8;
  --footer: #292623;
  color-scheme: light;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 120px; }
body { margin: 0; color: var(--ink); background: var(--page); font-size: 1rem; line-height: 1.55; letter-spacing: -.005em; }
button, input, select { font: inherit; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { border: 0; background: none; color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:disabled { opacity: .6; cursor: not-allowed; }
img { display: block; max-width: 100%; }
input, select { min-width: 0; }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--brand); outline-offset: 4px;
}
[hidden] { display: none !important; }
.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 28px; }
.skip-link { position: fixed; top: -150px; left: 16px; z-index: 100; padding: 12px 18px; background: #fff; color: #000; border: 2px solid var(--brand); }
.skip-link:focus { top: 10px; }
.announcement { padding: 8px 16px; background: var(--brand); color: #fff; text-align: center; font-size: .8125rem; }
.announcement > span:first-child { margin-right: 16px; font-weight: 700; }
.demo-label { margin-left: 20px; padding-left: 20px; border-left: 1px solid #ffffff60; }

/* Header proportions and typography are tuned for a compact, balanced storefront. */
.nvt-header { position: sticky; top: 0; z-index: 10; background: #fff; color: #000; border-bottom: 1px solid var(--line); font-family: inherit; }
.header-inner { min-height: 82px; padding-block: 4px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.nvt-logo { flex: 0 1 220px; min-width: 90px; line-height: 0; }
.nvt-logo img { width: 100%; height: auto; max-height: 74px; object-fit: contain; }
.nvt-header nav { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 28px; }
.nvt-header nav > a, .nvt-header nav > button, .nvt-header summary { display: flex; align-items: center; min-height: 42px; padding: 9px 0; color: #000; font-family: inherit; font-size: 1rem; font-weight: 600; line-height: 1.35; white-space: nowrap; }
.nvt-header .active { text-decoration: underline; text-decoration-color: var(--brand); text-decoration-thickness: 2px; text-underline-offset: 9px; }
.nvt-header nav > a:hover, .nvt-header nav > button:hover, .nvt-header summary:hover { text-decoration: underline; text-underline-offset: 6px; }
.account-menu { position: relative; }
.account-menu summary { list-style: none; cursor: pointer; gap: 9px; }
.account-menu summary::-webkit-details-marker { display: none; }
.account-options { position: absolute; right: 0; top: calc(100% + 10px); min-width: 175px; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px #29262314; }
.account-options button { display: block; width: 100%; min-height: 42px; padding: 10px 14px; text-align: left; font-family: inherit; font-size: .9375rem; font-weight: 500; line-height: 1.4; }
.account-options button:hover { background: var(--surface-soft); }

/* Buttons, type and reusable surfaces. */
.button { display: inline-flex; justify-content: center; align-items: center; gap: 20px; min-height: 46px; padding: 11px 19px; background: var(--surface); border: 1px solid #bcb4aa; border-radius: 6px; font-size: .9375rem; font-weight: 700; transition: background .18s, border-color .18s; }
.button:hover { background: var(--surface-soft); border-color: var(--muted); }
.primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
.full { width: 100%; }
.eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: 1.6px; color: var(--gold); }
h1, h2 { font-family: inherit; }
h1 { font-size: clamp(2.1rem, 3.4vw, 2.9rem); line-height: 1.12; letter-spacing: -.035em; margin: 14px 0 18px; }
.accent { color: var(--brand); }
h2 { font-size: 1.75rem; font-weight: 700; line-height: 1.25; letter-spacing: -.025em; margin: 7px 0 0; }

.quick-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 32px; }
.quick-links > a, .quick-links > button { display: flex; align-items: center; gap: 13px; min-width: 0; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 16px; }
.quick-links > :hover { border-color: #b5a48f; }
.quick-links b { display: block; font-size: .9375rem; line-height: 1.35; }
.quick-links small { display: block; font-size: .8125rem; color: var(--muted); margin-top: 3px; }
.quick-links > * > span:last-child { margin-left: auto; color: var(--muted); }
.service-icon { display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; background: var(--gold-soft); color: var(--gold); border-radius: 7px; }
.service-icon svg { width: 21px; height: 21px; }

/* Catalogue: neutral background, white cards, quieter filters. */
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.sample { font-size: .8125rem; color: var(--muted); }
/* Account category boxes: same grouping as the supplied reference, refined for the current NVT.Shop visual system. */
.account-category-showcase { margin: 0 0 28px; }
.account-category-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.account-category-head-reg { margin-top: 4px; }
.account-category-title { display: flex; align-items: center; gap: 9px; min-width: 0; }
.account-category-title > span { width: 4px; height: 22px; flex: 0 0 4px; border-radius: 999px; background: linear-gradient(180deg, var(--brand), var(--gold)); }
.account-category-title h3 { margin: 0; font-size: 1.02rem; line-height: 1.3; letter-spacing: -.015em; color: var(--brand); }
.account-category-all { min-height: 38px; padding: 7px 12px; border: 1px solid #cfc7bd; border-radius: 999px; background: #fff; color: var(--muted); font-size: .8125rem; font-weight: 700; transition: border-color .18s, background .18s, color .18s; }
.account-category-all span { display: inline-grid; place-items: center; min-width: 22px; height: 22px; margin-left: 5px; padding-inline: 5px; border-radius: 999px; background: var(--surface-soft); color: var(--ink); font-size: .75rem; }
.account-category-all:hover { border-color: var(--brand); color: var(--brand); }
.account-category-note { color: var(--muted); font-size: .8125rem; }
.account-category-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 14px 0 24px; }
.account-category-grid-reg { margin-bottom: 6px; }
.account-category-card { position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden; text-align: left; border: 1px solid #d8d1c8; border-radius: 14px; background: #fff; box-shadow: 0 7px 24px #2926230a; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.account-category-card:before { content: ''; position: absolute; z-index: 2; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--brand), #b56753 52%, var(--gold)); opacity: 0; transition: opacity .18s ease; }
.account-category-card:hover, .account-category-card:focus-visible { transform: translateY(-3px); border-color: #b59b89; box-shadow: 0 14px 30px #29262314; }
.account-category-card:hover:before, .account-category-card:focus-visible:before { opacity: 1; }
.account-category-media { position: relative; display: block; width: 100%; aspect-ratio: 1.82; overflow: hidden; background: #24272d; }
.account-category-media:after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, #00000008 35%, #1816149c 100%); pointer-events: none; }
.account-category-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.account-category-card:hover .account-category-media img { transform: scale(1.035); }
.account-category-media-premium img { object-position: center 43%; }
.account-category-kicker { position: absolute; z-index: 1; left: 11px; bottom: 10px; display: inline-flex; align-items: center; min-height: 28px; padding: 5px 9px; border: 1px solid #ffffff4a; border-radius: 999px; background: #1f1d1bd4; color: #fff; backdrop-filter: blur(7px); font-size: .6875rem; font-weight: 800; letter-spacing: .07em; }
.account-category-body { display: flex; flex-direction: column; gap: 8px; padding: 13px 13px 12px; }
.account-category-name { display: block; min-height: 2.7em; color: var(--ink); font-size: .875rem; font-weight: 800; line-height: 1.35; letter-spacing: -.01em; }
.account-category-stock { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .75rem; }
.account-category-stock svg { width: 15px; height: 15px; flex: 0 0 15px; color: var(--brand); }
.account-category-stock strong { color: var(--ink); font-weight: 700; }
.account-category-cta { display: flex; align-items: center; justify-content: space-between; min-height: 42px; margin-top: auto; padding: 9px 13px; border-top: 1px solid #eee9e3; background: #fbfaf8; color: var(--brand); font-size: .75rem; font-weight: 800; letter-spacing: .02em; transition: background .18s, color .18s; }
.account-category-cta > span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--brand-soft); font-size: 1rem; transition: transform .18s; }
.account-category-card:hover .account-category-cta > span { transform: translateX(2px); }
.account-category-card-reg { width: 100%; max-width: none; }

.price { color: var(--brand); font-size: 1.14rem; font-weight: 800; line-height: 1.35; white-space: nowrap; }

.help-banner { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 40px 0; padding: 26px 30px; background: var(--gold-soft); border: 1px solid #d9c8a8; border-radius: 8px; }
.help-banner h2 { font-size: 1.6rem; }
.help-banner p { color: #655b4e; font-size: 1rem; margin-bottom: 0; }
.help-banner .button { flex-shrink: 0; }

/* A warm charcoal footer anchors the light page. */
footer { background: var(--footer); color: #eee8df; border-top: 3px solid #9c7740; }
.footer-main { display: flex; align-items: center; gap: 24px; padding-block: 26px; }
.footer-logo { width: 205px; height: auto; }
.footer-main p { margin-right: auto; font-size: .875rem; color: #d0c6b9; }
.footer-main button { min-height: 44px; font-size: .875rem; white-space: nowrap; }
.footer-main button:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; padding-block: 19px; border-top: 1px solid #514b44; font-size: .8125rem; color: #c7bdb0; }
footer :focus-visible { outline-color: #e3c796; }

.pre-wrap { white-space: pre-wrap; overflow-wrap: anywhere; }

/* Dialogs use the same surfaces, buttons and form fields as the catalogue. */
dialog { width: calc(100% - 32px); max-width: 540px; max-height: 90dvh; padding: 24px; background: #fff; color: var(--ink); border: 1px solid #bcb2a6; border-radius: 10px; overscroll-behavior: contain; scrollbar-gutter: stable; }
dialog::backdrop { background: #292623a6; }
.modal-top { position: sticky; top: -24px; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 8px 0; background: #fff; }
.modal-top button { min-width: 44px; min-height: 44px; font-size: 1.875rem; line-height: 1; }
dialog h2 { margin: 15px 0; font-size: 1.8rem; }
dialog p, dialog li { color: var(--muted); font-size: 1rem; line-height: 1.75; }
dialog li { margin-bottom: 10px; }
dialog label { display: block; margin: 15px 0; font-size: 1rem; }
dialog input { display: block; width: 100%; min-height: 48px; margin-top: 7px; padding: 10px; color: var(--ink); background: #fff; border: 1px solid #bbb2a7; border-radius: 5px; }
input::placeholder { color: #777069; opacity: 1; }
.notice { padding: 13px 15px; border: 1px solid #d9c8a8; border-radius: 6px; background: #f8f2e7; color: #69522b; font-size: .875rem; line-height: 1.7; }
dialog .notice { color: #69522b; font-size: .875rem; }
dialog .switch { width: 100%; min-height: 44px; margin-top: 14px; color: var(--brand); font-size: .9375rem; text-decoration: underline; text-underline-offset: 3px; }
.detail-image { width: 100%; height: auto; aspect-ratio: 1.8; object-fit: cover; border-radius: 6px; margin-top: 14px; }
.detail-data { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0; }
.detail-data > div { padding: 13px; background: var(--surface-soft); border-radius: 6px; font-size: .875rem; color: var(--muted); }
.detail-data b { display: block; margin-top: 4px; color: var(--ink); }
.method { display: block; width: 100%; text-align: left; padding: 16px; margin: 12px 0; border: 1px solid var(--line); border-radius: 6px; font-size: 1rem; }
.method:hover { background: var(--surface-soft); border-color: #b5a48f; }
.method small { display: block; color: var(--muted); font-size: .875rem; margin-top: 5px; }
.form-feedback { color: #38583d !important; font-size: .9375rem !important; }
#toast { display: none; position: fixed; z-index: 30; bottom: 24px; left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 32px); border: 1px solid #65594e; background: var(--footer); color: #fff; padding: 13px 20px; border-radius: 6px; font-size: .9375rem; box-shadow: 0 4px 20px #29262320; }
#toast.toast-visible { display: block; }
body.modal-open { overflow: hidden; }

/* Responsive sizes: readable controls and no fixed-width content. */
@media (max-width: 1100px) {
  .account-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nvt-header nav { gap: 20px; }
  .nvt-logo { flex-basis: 205px; }
  .nvt-header nav > a, .nvt-header nav > button, .nvt-header summary { font-size: .9375rem; }
  .quick-links > a, .quick-links > button { padding: 14px; gap: 10px; }
  .quick-links .service-icon { display: none; }
  .footer-main { flex-wrap: wrap; }
  .footer-main p { flex-basis: 35%; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 95px; }
  .container { padding-inline: 16px; }
  .announcement { font-size: .75rem; }
  .announcement > span:first-child, .demo-label { display: none; }
  .header-inner { min-height: 70px; padding-inline: 8px; gap: 10px; }
  .nvt-logo { flex: 1 1 150px; min-width: 72px; max-width: 165px; }
  .nvt-header nav { gap: 10px; }
  .nvt-header nav > a, .nvt-header nav > button { font-size: .9rem; }
  .nvt-header summary { min-width: 30px; justify-content: center; }
  .nvt-header summary span { display: none; }
  h1 { font-size: 2.4rem; }
  h2 { font-size: 1.55rem; }
  .quick-links { grid-template-columns: 1fr; gap: 8px; margin-bottom: 28px; }
  .quick-links .service-icon { display: grid; }
  .quick-links > a, .quick-links > button { padding: 13px 16px; gap: 14px; }
  .section-heading { display: block; }
  .sample { display: inline-block; margin-top: 10px; }
  .account-category-head { align-items: flex-start; }
  .account-category-note { display: none; }
  .account-category-grid { gap: 12px; margin-top: 12px; }
  .account-category-name { min-height: 0; }
  .help-banner { display: block; padding: 26px; margin: 30px 0; }
  .help-banner .button { margin-top: 22px; }
  .footer-main { gap: 16px 24px; }
  .footer-main .brand, .footer-main p { flex-basis: 100%; margin: 0; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}
@media (max-width: 420px) {
  .account-category-head { align-items: center; gap: 10px; }
  .account-category-title h3 { font-size: .95rem; }
  .account-category-all { min-height: 36px; padding-inline: 10px; font-size: .75rem; }
  .account-category-grid { grid-template-columns: 1fr; }
  .account-category-media { aspect-ratio: 2.05; }
  .account-category-body { padding: 12px 13px 11px; }
  .account-category-cta { min-height: 40px; }
  .header-inner { gap: 6px; padding-inline: 6px; }
  .nvt-header nav { gap: 7px; }
  .nvt-header nav > a, .nvt-header nav > button { font-size: .8125rem; }
  .nvt-logo { min-width: 68px; }
  h1 { font-size: 2.05rem; }
  dialog { padding: 18px; }
  .modal-top { top: -18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { scroll-behavior: auto !important; transition: none !important; }
}

/* Requested section directly below the header: leaderboard + original GIF. */
.top-showcase { display: grid; grid-template-columns: 320px minmax(0, 1fr); align-items: stretch; gap: 20px; margin: 20px 0 18px; }
.top-ranking { display: flex; flex-direction: column; padding: 0; margin: 0; overflow: hidden; border: 2px solid #ff8844; border-radius: 12px; background: #fff; }
.top-ranking-heading { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 12px 15px; background: #ff8844; color: #63300d; }
.top-ranking-heading h1 { margin: 0; font-family: inherit; font-size: 1.35rem; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
.top-ranking-heading small { margin-left: auto; font-size: .75rem; }
.top-ranking .rank-tabs { display: flex; justify-content: flex-start; gap: 8px; margin: 10px 10px 2px; padding: 0; background: transparent; }
.top-ranking .rank-tabs button { flex: 0 1 80px; min-height: 36px; padding: 6px 11px; border: 1px solid #d7dce1; border-radius: 5px; background: #fff; color: #666; font-size: .8125rem; font-weight: 700; }
.top-ranking .rank-tabs .selected { border-color: #ff8844; background: #ff8844; color: #63300d; box-shadow: none; }
.top-ranking #leaders { display: flex; flex-direction: column; justify-content: space-evenly; flex: 1; padding: 6px 14px 11px; }
.top-ranking .leader { display: flex; align-items: center; gap: 9px; min-height: 49px; padding: 7px 0; }
.top-ranking .leader > span { flex: 0 0 24px; width: 24px; text-align: center; font-size: .9375rem; color: #6a6a6a; font-weight: 700; }
.top-ranking .leader:nth-child(-n+3) > span { font-size: 0; }
.top-ranking .leader:nth-child(-n+3) > span:before { content: '♛'; font-size: 1.5rem; }
.top-ranking .leader:nth-child(1) > span { color: #b9830c; }
.top-ranking .leader:nth-child(2) > span { color: #697e97; }
.top-ranking .leader:nth-child(3) > span { color: #ac651f; }
.top-ranking .avatar { display: grid; place-items: center; border-radius: 50%; font-size: .75rem; flex: 0 0 31px; width: 31px; height: 31px; border: 1px solid #e0dbd5; background: #f7f5f2; color: #63300d; }
.top-ranking .leader b { flex: 1; min-width: 0; font-size: .875rem; }
.top-ranking .leader small { flex-shrink: 0; padding: 3px 8px; border-radius: 20px; background: #ff8844; color: #63300d; font-size: .71875rem; font-weight: 700; white-space: nowrap; }
.top-gif { position: relative; min-width: 0; min-height: 0; aspect-ratio: 627 / 313; border-radius: 12px; overflow: hidden; background: #19202a; }
.top-gif img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 1100px) { .top-showcase { grid-template-columns: 290px minmax(0, 1fr); gap: 18px; } .top-ranking #leaders { padding-inline: 12px; } .top-ranking .leader { gap: 8px; } }
@media (max-width: 760px) { .top-showcase { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 20px; } .top-ranking { order: 0; } .top-ranking .leader { min-height: 50px; } .top-ranking #leaders { padding-inline: 20px; } .top-gif { min-height: 0; } }


/* V10 — dedicated category/account listing page. Scoped so the homepage stays unchanged. */
.account-list-page { --list-accent: #ff8844; --list-accent-strong: #f56f28; background: #fff9ee; }
.account-list-main { padding-top: 22px; padding-bottom: 46px; }
.catalog-breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; color: #777069; font-size: .8125rem; }
.catalog-breadcrumb a:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.catalog-breadcrumb b { color: #383b42; font-weight: 700; }
.account-list-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.account-list-heading h1 { margin: 5px 0 7px; font-size: clamp(1.85rem, 3vw, 2.55rem); }
.account-list-heading p { max-width: 720px; margin: 0; color: #6d7179; }
.back-category { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; min-height: 42px; padding: 9px 14px; border: 1px solid #e4ddd2; border-radius: 10px; background: #fff; color: #555b64; font-size: .875rem; font-weight: 700; box-shadow: 0 6px 18px #5b463510; }
.back-category:hover { border-color: var(--list-accent); color: #b64b14; }
.account-category-tabs { display: flex; gap: 8px; margin: -4px 0 16px; padding: 4px 2px 8px; overflow-x: auto; scrollbar-width: thin; overscroll-behavior-inline: contain; }
.account-category-tabs a { flex: 0 0 auto; min-height: 38px; padding: 8px 12px; border: 1px solid #e2ddd5; border-radius: 999px; background: #fff; color: #636a73; font-size: .78rem; font-weight: 800; white-space: nowrap; transition: border-color .18s, background .18s, color .18s, transform .18s; }
.account-category-tabs a:hover { border-color: #f0a46e; color: #b54b17; transform: translateY(-1px); }
.account-category-tabs a.active { border-color: var(--list-accent); background: #fff0e6; color: #a84415; box-shadow: inset 0 0 0 1px #ff88441e; }
.account-filter-shell { position: relative; margin-bottom: 28px; padding: 18px 20px 20px; border: 1px solid #dfe4ec; border-radius: 14px; background: #fff; box-shadow: 0 10px 30px #5142300a; overflow: hidden; }
.account-filter-shell:before { content: ''; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--list-accent), #ffb36f 48%, #8e2d32); }
.account-filter-shell.costume-open { overflow: visible; }
.account-filter-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 16px; }
.account-filter-grid label { min-width: 0; }
.filter-label { display: flex; align-items: center; gap: 7px; min-height: 23px; margin-bottom: 7px; color: #586272; font-size: .75rem; font-weight: 800; letter-spacing: .01em; }
.filter-label > span { color: #77869a; font-size: .875rem; }
.account-filter-grid input, .account-filter-grid select { width: 100%; min-height: 44px; margin: 0; padding: 9px 13px; border: 1px solid #d9e0e9; border-radius: 7px; background: #f8fafc; color: #3b4654; font-size: .875rem; outline: none; transition: border-color .18s, background .18s, box-shadow .18s; }
.account-filter-grid input::placeholder { color: #89909a; }
.account-filter-grid input:focus, .account-filter-grid select:focus { border-color: var(--list-accent); background: #fff; box-shadow: 0 0 0 3px #ff884416; }
.costume-search { position: relative; grid-column: 1 / -1; min-width: 0; }
.costume-search-label { display: block; }
.costume-combobox { position: relative; }
.costume-combobox #account-costume { padding-right: 42px; }
.costume-clear { position: absolute; z-index: 3; top: 50%; right: 8px; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; transform: translateY(-50%); background: transparent; color: #7a828d; font-size: 1.2rem; line-height: 1; cursor: pointer; }
.costume-clear:hover, .costume-clear:focus-visible { background: #edf1f5; color: #404854; outline: none; }
.costume-hint { display: block; margin-top: 6px; color: #7b8490; font-size: .7rem; line-height: 1.35; }
.costume-suggestions { position: absolute; z-index: 25; top: calc(100% + 6px); left: 0; right: 0; max-height: 320px; overflow-y: auto; border: 1px solid #dfe4ec; border-radius: 10px; background: #fff; box-shadow: 0 14px 34px #24304226; }
.costume-suggestion { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px; width: 100%; min-height: 46px; padding: 9px 12px; border: 0; border-bottom: 1px solid #eef1f4; background: #fff; color: #3d4652; text-align: left; cursor: pointer; }
.costume-suggestion:last-child { border-bottom: 0; }
.costume-suggestion:hover, .costume-suggestion.is-active { background: #fff5ed; }
.costume-suggestion-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .82rem; font-weight: 800; }
.costume-suggestion-count { flex: 0 0 auto; color: #8a5a39; font-size: .69rem; font-weight: 800; white-space: nowrap; }
.costume-suggestion-empty { padding: 12px; color: #7a828d; font-size: .78rem; text-align: center; }
.filter-actions { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.account-filter-submit { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-width: 345px; min-height: 46px; padding: 10px 22px; border-radius: 7px; background: var(--list-accent); color: #fff; font-size: .875rem; font-weight: 900; letter-spacing: .01em; box-shadow: 0 8px 18px #ff884426; transition: transform .18s, background .18s, box-shadow .18s; }
.account-filter-submit:hover { transform: translateY(-1px); background: var(--list-accent-strong); box-shadow: 0 11px 23px #ff884433; }
.account-filter-submit span { font-size: .72rem; transform: rotate(0deg); }
.account-filter-reset { min-height: 44px; padding: 8px 13px; color: #707782; font-size: .8125rem; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.account-filter-live { display: inline-flex; align-items: center; gap: 7px; margin-left: auto; color: #64706d; font-size: .75rem; font-weight: 700; }
.account-filter-live i { width: 7px; height: 7px; border-radius: 50%; background: #25a56a; box-shadow: 0 0 0 4px #25a56a18; }
.account-active-filters { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; margin-top: 14px; padding-top: 14px; border-top: 1px solid #edf0f3; }
.account-active-title { color: #6c737c; font-size: .72rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.account-filter-chips { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; min-width: 0; }
.account-filter-chips button { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 5px 9px; border: 1px solid #ead8cb; border-radius: 999px; background: #fff7f1; color: #8f4b24; font-size: .7rem; font-weight: 800; }
.account-filter-chips button:hover { border-color: var(--list-accent); background: #fff1e7; }
.account-filter-chips button span { font-size: 1rem; line-height: 1; }
#account-clear-filters { margin-left: auto; min-height: 34px; padding: 5px 4px; color: #6c737c; font-size: .72rem; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.account-results-section { scroll-margin-top: 110px; }
.account-results-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin: 0 0 14px; padding: 0 2px; }
.result-kicker { display: block; margin-bottom: 3px; color: #a14f25; font-size: .6875rem; font-weight: 900; letter-spacing: .12em; }
.account-results-toolbar h2 { margin: 0; color: #3c4149; font-size: 1.15rem; letter-spacing: -.015em; }
.account-results-toolbar p { margin: 0; color: #747b84; font-size: .8125rem; text-align: right; }
.inventory-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.inventory-card { content-visibility: auto; contain-intrinsic-size: 330px; position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid #ebe6de; border-radius: 14px; background: #fff; box-shadow: 0 9px 24px #5b463512; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.inventory-card:hover, .inventory-card:focus-within { transform: translateY(-4px); border-color: #f5b081; box-shadow: 0 17px 35px #6c4e381d; }
.inventory-media { position: relative; aspect-ratio: 1.68; overflow: hidden; background: #202633; }
.inventory-media:after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, #0c111b45 0, transparent 34%, transparent 66%, #10151d3d 100%); pointer-events: none; }
.inventory-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.inventory-card:hover .inventory-media img { transform: scale(1.035); }
.inventory-code, .inventory-status { position: absolute; z-index: 2; top: 9px; display: inline-flex; align-items: center; min-height: 27px; padding: 5px 8px; border: 1px solid #ffffff40; border-radius: 7px; background: #242731de; color: #fff; backdrop-filter: blur(7px); font-size: .6875rem; font-weight: 900; box-shadow: 0 3px 9px #0002; }
.inventory-code { left: 9px; }
.inventory-status { right: 9px; gap: 5px; background: #0d744ddc; }
.inventory-status i { width: 6px; height: 6px; border-radius: 50%; background: #91ffc8; box-shadow: 0 0 0 3px #8cffc426; }
.inventory-body { display: flex; flex-direction: column; flex: 1; padding: 10px 12px 12px; }
.inventory-meta-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; margin-bottom: 9px; }
.inventory-meta-row span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 6px 8px; border: 1px solid #e1e7ee; border-radius: 6px; background: #f5f8fb; color: #657080; font-size: .6875rem; font-weight: 700; }
.inventory-meta-row span:last-child { min-width: 64px; text-align: center; }
.inventory-card h3 { margin: 0 0 9px; color: #303640; font-size: .875rem; line-height: 1.35; }
.inventory-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: auto; margin-bottom: 10px; }
.inventory-chips span { padding: 4px 7px; border-radius: 999px; background: #fff6ee; color: #985324; font-size: .625rem; font-weight: 800; }
.inventory-contact { display: flex; align-items: center; justify-content: center; gap: 7px; width: 100%; min-height: 38px; padding: 8px 10px; border-radius: 7px; background: linear-gradient(90deg, #ff8844, #ff6a35); color: #fff; font-size: .6875rem; font-weight: 900; letter-spacing: .01em; box-shadow: 0 7px 15px #ff743024; transition: filter .18s, transform .18s; }
.inventory-contact:hover { filter: saturate(1.08) brightness(.98); transform: translateY(-1px); }
.inventory-contact span { font-size: .55rem; }
.inventory-footer { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; margin-top: auto; padding: 12px; border-top: 1px solid #eeeae4; background: #fffdf9; }
.inventory-footer strong { color: #f28a00; font-size: 1.05rem; font-weight: 900; white-space: nowrap; }
.inventory-detail { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 8px 12px; border-radius: 8px; background: var(--list-accent); color: #fff; font-size: .6875rem; font-weight: 900; transition: background .18s; }
.inventory-detail:hover { background: var(--list-accent-strong); }
.account-empty { padding: 65px 20px; text-align: center; border: 1px dashed #d5c9bb; border-radius: 14px; background: #fff; }
.account-empty > span { display: block; margin-bottom: 6px; color: var(--list-accent); font-size: 2rem; }
.account-empty h3 { margin: 0 0 6px; }
.account-empty p { margin: 0 0 16px; color: #747b84; }
.account-empty button { min-height: 40px; padding: 8px 14px; border: 1px solid #dfd6cb; border-radius: 7px; background: #fff; font-weight: 700; }
.account-load-wrap { margin: 24px 0 0; text-align: center; }
.account-load-wrap .button { min-width: 230px; }
.account-load-wrap p { margin: 8px 0 0; color: #777f89; font-size: .75rem; }

@media (max-width: 1050px) {
  .inventory-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
}
@media (max-width: 820px) {
  .account-filter-live { width: 100%; margin-left: 0; }
  .account-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .costume-search { grid-column: 1 / -1; }
  .inventory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .account-filter-submit { min-width: 260px; }
}
@media (max-width: 620px) {
  .account-list-main { padding-top: 16px; }
  .account-list-heading { align-items: flex-start; flex-direction: column; gap: 13px; }
  .back-category { min-height: 38px; }
  .account-category-tabs { margin-inline: -3px; padding-bottom: 10px; }
  .account-filter-shell { padding: 16px 13px 15px; border-radius: 12px; }
  .account-filter-grid { grid-template-columns: 1fr; gap: 12px; }
  .costume-search { grid-column: auto; }
  .filter-actions { align-items: stretch; flex-direction: column; }
  .account-filter-submit { width: 100%; min-width: 0; }
  .account-filter-reset { align-self: center; }
  .account-filter-live { justify-content: center; }
  .account-active-filters { align-items: flex-start; }
  #account-clear-filters { margin-left: 0; }
  .account-results-toolbar { align-items: flex-start; flex-direction: column; gap: 5px; }
  .account-results-toolbar p { text-align: left; }
  .inventory-grid { grid-template-columns: 1fr; gap: 13px; }
  .inventory-media { aspect-ratio: 1.9; }
}
/* Shared account/order rows. */
.order-row { padding: 18px 0; border-bottom: 1px solid #ddd; }
.order-row p { overflow-wrap: anywhere; }
.account-options b, .account-options p { padding: 8px 16px; }

/* Admin workspace */
.admin-page { min-height: 100vh; background: #f5f6f8; color: #24262b; }
.admin-page .skip-link { z-index: 200; }
.admin-layout { min-height: 100vh; display: grid; grid-template-columns: 250px minmax(0, 1fr); }
.admin-sidebar { position: sticky; top: 0; z-index: 40; height: 100vh; display: flex; flex-direction: column; padding: 22px 16px 18px; background: #24262b; color: #f7f8fa; border-right: 1px solid #17191d; }
.admin-brand-row { display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 2px 8px 18px; border-bottom: 1px solid #ffffff18; }
.admin-brand { display: block; width: 150px; line-height: 0; }
.admin-brand img { width: 100%; height: auto; max-height: 52px; object-fit: contain; filter: brightness(0) invert(1); }
.admin-sidebar-close { display: none; margin-left: auto; width: 42px; height: 42px; color: #fff; font-size: 1.8rem; }
.admin-sidebar-label { margin: 22px 12px 8px; color: #a8adb6; font-size: .66rem; font-weight: 800; letter-spacing: .12em; }
.admin-nav { display: grid; gap: 5px; }
.admin-nav button { display: flex; align-items: center; gap: 12px; min-height: 46px; width: 100%; padding: 10px 12px; border-radius: 9px; color: #c9cdd4; text-align: left; font-size: .875rem; font-weight: 650; transition: background .16s, color .16s; }
.admin-nav button > span:first-child { width: 24px; color: #9da3ad; text-align: center; font-size: 1rem; }
.admin-nav button:hover { background: #ffffff0d; color: #fff; }
.admin-nav button.active { background: #8e2d32; color: #fff; box-shadow: inset 0 0 0 1px #ffffff12; }
.admin-nav button.active > span:first-child { color: #fff; }
.admin-sidebar-footer { display: grid; gap: 4px; margin-top: auto; padding-top: 16px; border-top: 1px solid #ffffff18; }
.admin-sidebar-footer a, .admin-sidebar-footer button { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 9px 12px; border-radius: 8px; color: #bfc3ca; font-size: .8125rem; text-align: left; }
.admin-sidebar-footer a:hover, .admin-sidebar-footer button:hover { background: #ffffff0d; color: #fff; }
.admin-sidebar-backdrop { display: none; }
.admin-workspace { min-width: 0; }
.admin-topbar { position: sticky; top: 0; z-index: 30; min-height: 78px; padding: 13px 28px; display: flex; align-items: center; justify-content: space-between; gap: 24px; background: #ffffffed; border-bottom: 1px solid #e1e4e8; backdrop-filter: blur(12px); }
.admin-topbar-start, .admin-topbar-actions, .admin-user-chip { display: flex; align-items: center; }
.admin-topbar-start { gap: 14px; min-width: 0; }
.admin-topbar-actions { gap: 12px; }
.admin-topbar h1 { margin: 1px 0 0; font-size: 1.15rem; letter-spacing: -.02em; }
.admin-eyebrow { margin: 0; color: #8b9098; font-size: .625rem; font-weight: 850; letter-spacing: .11em; }
.admin-menu-toggle { display: none; width: 42px; height: 42px; border: 1px solid #dadde2; border-radius: 9px; background: #fff; font-size: 1.15rem; }
.admin-icon-button { width: 40px; height: 40px; border: 1px solid #dfe2e7; border-radius: 9px; background: #fff; color: #4b5058; font-size: 1.15rem; }
.admin-icon-button:hover { background: #f6f7f8; }
.admin-user-chip { gap: 9px; padding: 5px 9px 5px 5px; border: 1px solid #e0e3e7; border-radius: 10px; background: #fff; }
.admin-user-avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: #f5e8e8; color: #8e2d32; font-weight: 900; }
.admin-user-chip span:last-child { display: grid; }
.admin-user-chip small { color: #8b9098; font-size: .625rem; line-height: 1.2; }
.admin-user-chip strong { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .78rem; line-height: 1.35; }
.admin-main { max-width: 1500px; margin: 0 auto; padding: 28px; }
.admin-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 16px; }
.admin-section-heading h2 { margin: 3px 0 0; font-size: 1.45rem; letter-spacing: -.025em; }
.admin-section-note, .admin-last-refresh { margin: 0; color: #81868f; font-size: .75rem; }
.admin-last-refresh { white-space: nowrap; }
.admin-view { outline: none; }
.admin-login-card { max-width: 560px; margin: 10vh auto; padding: 44px; border: 1px solid #e0e3e7; border-radius: 18px; background: #fff; text-align: center; box-shadow: 0 18px 50px #1f253012; }
.admin-login-card h2 { margin: 8px 0 10px; font-size: 1.6rem; }
.admin-login-card p:not(.admin-eyebrow) { color: #70757d; }
.admin-login-card .button { margin: 6px 3px; }
.admin-login-icon { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 16px; border-radius: 15px; background: #f8eeee; font-size: 1.5rem; }
.admin-card { margin-bottom: 18px; padding: 22px; border: 1px solid #e1e4e8; border-radius: 14px; background: #fff; box-shadow: 0 7px 24px #20273308; }
.admin-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.admin-card-head h3 { margin: 2px 0 0; font-size: 1rem; letter-spacing: -.01em; }
.admin-card-head p { max-width: 760px; margin: 5px 0 0; color: #7a8089; font-size: .8rem; line-height: 1.55; }
.admin-card-kicker { color: #9a6266; font-size: .625rem; font-weight: 850; letter-spacing: .11em; }
.admin-link-button { min-height: 36px; padding: 5px 4px; color: #8e2d32; font-size: .75rem; font-weight: 750; }
.admin-metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.admin-metric { min-width: 0; display: flex; align-items: flex-start; gap: 14px; padding: 18px; border: 1px solid #e1e4e8; border-radius: 13px; background: #fff; box-shadow: 0 6px 20px #20273307; }
.admin-metric-icon { flex: 0 0 42px; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; background: #f7ecec; color: #8e2d32; font-size: 1rem; font-weight: 900; }
.admin-metric p, .admin-metric small { margin: 0; color: #81868e; font-size: .68rem; }
.admin-metric strong { display: block; margin: 2px 0 1px; font-size: 1.35rem; letter-spacing: -.035em; overflow-wrap: anywhere; }
.admin-dashboard-grid { display: grid; grid-template-columns: .88fr 1.12fr; gap: 18px; }
.admin-operation-list { display: grid; }
.admin-operation-list button { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; padding: 10px 2px; border-bottom: 1px solid #eef0f2; text-align: left; font-size: .8rem; }
.admin-operation-list button:last-child { border-bottom: 0; }
.admin-operation-list button:hover span { color: #8e2d32; }
.admin-operation-list button span { display: flex; align-items: center; gap: 9px; color: #5c6169; }
.admin-operation-list button strong { font-size: .95rem; }
.admin-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #7f8791; }
.admin-dot.success { background: #2aa06b; }.admin-dot.warning { background: #d99a2b; }.admin-dot.danger { background: #c64f55; }.admin-dot.muted { background: #9da3ad; }
.admin-quick-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.admin-quick-grid button, .admin-quick-grid a { min-height: 94px; display: grid; grid-template-columns: 34px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 10px; align-content: center; padding: 14px; border: 1px solid #e7e9ed; border-radius: 10px; background: #fafbfc; text-align: left; }
.admin-quick-grid button:hover, .admin-quick-grid a:hover { border-color: #d5b3b5; background: #fffafa; }
.admin-quick-grid > * > span { grid-row: 1 / 3; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: #f3e6e7; color: #8e2d32; font-weight: 900; }
.admin-quick-grid b { font-size: .78rem; }.admin-quick-grid small { color: #858a92; font-size: .66rem; line-height: 1.35; }
.table-scroll { width: 100%; overflow: auto; border: 1px solid #eceef1; border-radius: 10px; scrollbar-gutter: stable; }
.admin-table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: .76rem; }
.admin-table th { position: sticky; top: 0; z-index: 1; padding: 10px 12px; background: #f7f8fa; color: #737982; border-bottom: 1px solid #e7e9ed; text-align: left; font-size: .63rem; font-weight: 850; letter-spacing: .045em; text-transform: uppercase; }
.admin-table td { padding: 11px 12px; border-bottom: 1px solid #eef0f2; vertical-align: middle; }
.admin-table tbody tr:last-child td { border-bottom: 0; }
.admin-table tbody tr:hover { background: #fbfbfc; }
.admin-table code { padding: 2px 5px; border-radius: 4px; background: #f4f5f6; color: #4f555d; font-size: .7rem; }
.admin-cell-sub { display: block; margin-top: 3px; color: #858a92; font-size: .66rem; }
.admin-empty-row td { padding: 28px; color: #8a8f97; text-align: center; }
.admin-thumb { width: 58px; height: 42px; object-fit: cover; border: 1px solid #e3e5e8; border-radius: 7px; background: #eef0f2; }
.admin-status { display: inline-flex; align-items: center; min-height: 25px; padding: 4px 8px; border-radius: 999px; background: #eef0f2; color: #666d76; font-size: .65rem; font-weight: 800; white-space: nowrap; }
.admin-status-available, .admin-status-paid, .admin-status-matched { background: #e9f7f0; color: #21764f; }
.admin-status-hidden, .admin-status-pending { background: #fff4de; color: #8e651c; }
.admin-status-sold, .admin-status-cancelled { background: #f1f2f4; color: #737983; }
.admin-status-unmatched { background: #fce9e9; color: #a43f45; }
.admin-row-actions { display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.admin-action { min-height: 31px; padding: 5px 9px; border: 1px solid #dde0e4; border-radius: 7px; background: #fff; color: #545a62; font-size: .68rem; font-weight: 750; }
.admin-action:hover { background: #f6f7f8; }
.admin-action.warning { color: #97661e; }.admin-action.positive { color: #26714f; }
.admin-locked { color: #92979e; font-size: .7rem; }
.admin-toolbar { display: flex; align-items: end; gap: 10px; margin: 0 0 14px; }
.admin-toolbar > label:not(.admin-search) { display: grid; gap: 4px; color: #767b83; font-size: .65rem; font-weight: 750; }
.admin-search { flex: 1 1 380px; position: relative; }
.admin-search > span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #8c9198; }
.admin-search input { width: 100%; padding-left: 34px !important; }
.admin-count-pill { margin-left: auto; padding: 7px 10px; border-radius: 999px; background: #f0f1f3; color: #737981; font-size: .68rem; font-weight: 750; white-space: nowrap; }
.admin-form label, .admin-toolbar label { color: #545a62; font-size: .76rem; font-weight: 700; }
.admin-form input:not([type="checkbox"]), .admin-form select, .admin-form textarea, .admin-toolbar input, .admin-toolbar select { display: block; width: 100%; min-height: 42px; margin-top: 5px; padding: 8px 10px; border: 1px solid #d8dce1; border-radius: 8px; background: #fff; color: #292d33; outline: none; }
.admin-form textarea { min-height: 84px; resize: vertical; }
.admin-form input:focus, .admin-form select:focus, .admin-form textarea:focus, .admin-toolbar input:focus, .admin-toolbar select:focus { border-color: #ad777a; box-shadow: 0 0 0 3px #8e2d3210; }
.admin-form-grid { display: grid; gap: 13px; }.admin-form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.admin-import-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px; }
.admin-import-steps span { display: flex; align-items: center; gap: 8px; padding: 9px 11px; border-radius: 8px; background: #f7f8fa; color: #697079; font-size: .7rem; font-weight: 700; }
.admin-import-steps b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #8e2d32; color: #fff; font-size: .65rem; }
.admin-file-drop { position: relative; min-height: 155px; display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 20px; border: 1px dashed #cfd3d9; border-radius: 11px; background: #fafbfc; text-align: center; cursor: pointer; }
.admin-file-drop:hover { border-color: #ad777a; background: #fffafa; }
.admin-file-drop input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0 !important; padding: 0 !important; opacity: 0; cursor: pointer; }
.admin-file-drop small { color: #8a9098; font-size: .65rem; }.admin-file-drop em { margin-top: 5px; color: #8e2d32; font-size: .68rem; font-style: normal; font-weight: 750; }
.admin-file-icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 4px; border-radius: 10px; background: #f2e5e6; color: #8e2d32; font-size: .65rem; font-weight: 900; }
.admin-import-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 14px; }
.admin-import-result { margin-top: 16px; }
.admin-alert { padding: 12px 14px; margin: 10px 0; border: 1px solid #dfe3e7; border-radius: 9px; background: #f7f8fa; color: #5e646d; font-size: .76rem; }
.admin-alert.success { border-color: #cce8da; background: #eff9f4; color: #286a4d; }
.admin-alert.error { border-color: #efd0d2; background: #fff1f1; color: #9a4045; }
.admin-alert.info { border-color: #d9e1ec; background: #f1f5fa; color: #56687e; }
.admin-tip-card { padding-block: 16px; }.admin-tip-card h3 { margin: 0 0 4px; font-size: .82rem; }.admin-tip-card p { margin: 0; color: #767c84; font-size: .72rem; }
.admin-tip-card code { padding: 2px 5px; background: #f4f5f6; border-radius: 4px; }
.admin-loading { min-height: 220px; display: grid; place-items: center; align-content: center; gap: 10px; color: #7e848c; font-size: .78rem; }
.admin-spinner { width: 28px; height: 28px; border: 3px solid #e0e3e7; border-top-color: #8e2d32; border-radius: 50%; animation: admin-spin .75s linear infinite; }
@keyframes admin-spin { to { transform: rotate(360deg); } }
.admin-mini-metrics { display: flex; gap: 10px; margin-bottom: 16px; }.admin-mini-metrics span { padding: 9px 12px; border: 1px solid #e0e3e7; border-radius: 9px; background: #fff; color: #70767e; font-size: .72rem; }.admin-mini-metrics b { color: #8e2d32; }
.admin-inline-form { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(220px, 1fr) auto; align-items: end; gap: 10px; }
.admin-inline-form > p { grid-column: 1 / -1; margin: 0; color: #a14349; font-size: .72rem; }
.admin-inline-form .button { min-height: 42px; }
.admin-wrap { display: block; min-width: 180px; max-width: 420px; white-space: normal; overflow-wrap: anywhere; }
.admin-edit-image-row { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 14px; margin-bottom: 14px; align-items: center; }
.admin-edit-image-row img { width: 180px; aspect-ratio: 1.6; object-fit: cover; border: 1px solid #e0e3e7; border-radius: 9px; background: #f1f2f3; }
.admin-edit-image-row small { display: block; margin-top: 6px; color: #737981; font-size: .68rem; }
.admin-check-grid { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.admin-check-grid label { display: inline-flex; align-items: center; gap: 7px; min-height: 37px; padding: 7px 10px; border: 1px solid #e0e3e7; border-radius: 8px; background: #fafbfc; }
.admin-check-grid input { width: 16px; height: 16px; accent-color: #8e2d32; }
.admin-modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.admin-page button:disabled, .admin-page .button:disabled { opacity: .55; cursor: wait; }

@media (max-width: 1180px) {
  .admin-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-dashboard-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .admin-layout { display: block; }
  .admin-sidebar { position: fixed; left: 0; top: 0; width: min(290px, 88vw); transform: translateX(-105%); transition: transform .2s ease; box-shadow: 20px 0 50px #10121840; }
  .admin-menu-open .admin-sidebar { transform: translateX(0); }
  .admin-menu-open { overflow: hidden; }
  .admin-sidebar-close, .admin-menu-toggle { display: block; }
  .admin-sidebar-backdrop { position: fixed; inset: 0; z-index: 35; display: block; width: 100%; height: 100%; background: #17191d80; }
  .admin-topbar { padding-inline: 18px; }
  .admin-main { padding: 20px 18px; }
  .admin-user-chip small { display: none; }
  .admin-form-grid.two { grid-template-columns: 1fr; }
  .admin-inline-form { grid-template-columns: 1fr 1fr; }
  .admin-inline-form .button { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .admin-topbar { min-height: 68px; padding: 10px 13px; }
  .admin-topbar-actions { gap: 6px; }
  .admin-user-chip { padding-right: 5px; }.admin-user-chip span:last-child { display: none; }
  .admin-main { padding: 15px 12px 28px; }
  .admin-section-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
  .admin-section-heading h2 { font-size: 1.25rem; }
  .admin-metric-grid { grid-template-columns: 1fr; gap: 9px; }
  .admin-metric { padding: 14px; }
  .admin-card { padding: 15px; border-radius: 11px; }
  .admin-card-head { flex-direction: column; }
  .admin-card-head > .button { width: 100%; }
  .admin-quick-grid { grid-template-columns: 1fr; }
  .admin-import-steps { grid-template-columns: 1fr; }
  .admin-import-actions { flex-direction: column; }.admin-import-actions .button { width: 100%; }
  .admin-toolbar { align-items: stretch; flex-direction: column; }
  .admin-count-pill { align-self: flex-start; margin-left: 0; }
  .admin-mini-metrics { flex-direction: column; }
  .admin-inline-form { grid-template-columns: 1fr; }
  .admin-inline-form .button { grid-column: auto; }
  .admin-edit-image-row { grid-template-columns: 1fr; }.admin-edit-image-row img { width: 100%; max-width: 280px; }
  .admin-modal-actions { flex-direction: column-reverse; }.admin-modal-actions .button { width: 100%; }
  .admin-login-card { padding: 28px 18px; margin-top: 6vh; }
  .admin-table { min-width: 0; }
  .admin-table thead { display: none; }
  .admin-table, .admin-table tbody, .admin-table tr, .admin-table td { display: block; width: 100%; }
  .admin-table tr { padding: 10px 12px; border-bottom: 1px solid #eceef1; }
  .admin-table tr:last-child { border-bottom: 0; }
  .admin-table td { display: grid; grid-template-columns: minmax(88px, .42fr) 1fr; gap: 10px; padding: 6px 0; border: 0; }
  .admin-table td::before { content: attr(data-label); color: #858a92; font-size: .62rem; font-weight: 800; text-transform: uppercase; }
  .admin-empty-row td { display: block; text-align: center; }.admin-empty-row td::before { display: none; }
}

/* V11.3 - dedicated account detail page inspired by the supplied purchase layout. */
.account-detail-page { background: #fff8e9; }
.account-detail-page .nvt-header { box-shadow: 0 1px 0 #eadfce; }
.account-detail-shell { min-height: calc(100vh - 120px); padding: 22px 0 52px; background:
  radial-gradient(circle at 35% 46%, #fff2cf 0, #fff7e8 34%, transparent 56%),
  linear-gradient(180deg, #fff9ec 0%, #fff7e6 100%); }
.account-detail-breadcrumb { margin: 0 0 16px; color: #85796c; font-size: .82rem; }
.account-detail-breadcrumb a:hover { color: var(--brand); }
.account-detail-loading { min-height: 420px; display: grid; place-items: center; color: #7e7367; font-weight: 700; }
.account-detail-layout { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(340px, .9fr); gap: 22px; align-items: start; }
.account-detail-gallery-column { min-width: 0; }
.account-detail-gallery-card { min-width: 0; }
.account-detail-gallery-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 0 0 14px; }
.detail-page-kicker { display: block; margin-bottom: 5px; color: #a1632e; font-size: .68rem; font-weight: 900; letter-spacing: .12em; }
.account-detail-gallery-head h1 { margin: 0; font-size: clamp(1.25rem, 2.3vw, 1.9rem); line-height: 1.18; letter-spacing: -.025em; }
.detail-page-back { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 8px 12px; border: 1px solid #decdb7; border-radius: 10px; background: #ffffffb8; color: #735841; font-size: .8rem; font-weight: 800; }
.detail-page-back:hover { border-color: #bb9c7f; background: #fff; }
.account-detail-main-media { margin: 0; overflow: hidden; border: 2px solid #e4b51a; border-radius: 12px; background: #16191f; box-shadow: 0 10px 28px #7b5d2221; }
.account-detail-main-media img { display: block; width: 100%; height: auto; min-height: 320px; max-height: none; object-fit: contain; background: #111; }
.account-detail-image-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 48px; margin-top: 9px; padding: 9px 13px; border: 1px solid #eadbc7; border-radius: 10px; background: #ffffffb8; color: #776b5e; font-size: .76rem; }
.account-detail-image-toolbar a { color: #86562d; font-weight: 850; }
.account-detail-image-toolbar a:hover { text-decoration: underline; text-underline-offset: 3px; }
.account-detail-thumbnails { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; margin-top: 10px; }
.account-detail-thumb { padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 9px; background: #fff; box-shadow: 0 4px 12px #6c573115; transition: transform .16s, border-color .16s, box-shadow .16s; }
.account-detail-thumb:hover { transform: translateY(-2px); }
.account-detail-thumb.is-active { border-color: #ef9c47; box-shadow: 0 0 0 3px #ef9c4724; }
.account-detail-thumb img { width: 100%; aspect-ratio: 1.45; object-fit: cover; }

.account-detail-buy-column { min-width: 0; }
.account-detail-purchase-card { position: sticky; top: 104px; padding: 14px; border: 1px solid #eadfcf; border-radius: 16px; background: #fff; box-shadow: 0 12px 34px #6d563414; }
.account-detail-code-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-bottom: 12px; }
.account-detail-code-row > div { min-width: 0; }
.account-detail-code-label { margin-right: 5px; color: #3d3934; font-weight: 800; }
.account-detail-code-row strong { color: #24211f; font-size: 1.22rem; letter-spacing: -.015em; }
.account-detail-status { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: #eaf8ef; color: #22925e; font-size: .61rem; font-weight: 900; letter-spacing: .035em; }
.account-detail-status i { width: 6px; height: 6px; border-radius: 50%; background: #27b56f; box-shadow: 0 0 0 4px #27b56f15; }
.account-detail-price-box { display: grid; place-items: center; min-height: 82px; padding: 14px; border: 1px solid #f0dca9; border-radius: 12px; background: #fff9e9; text-align: center; }
.account-detail-price-box span { color: #8d8276; font-size: .78rem; }
.account-detail-price-box strong { margin-top: 2px; color: #ff8249; font-size: clamp(1.75rem, 3vw, 2.25rem); line-height: 1; letter-spacing: -.025em; }
.account-detail-spec-section { margin-top: 15px; }
.account-detail-spec-section h2, .account-detail-extra h2 { margin: 0 0 8px; font-size: .95rem; letter-spacing: -.01em; }
.account-detail-spec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.account-detail-spec { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 46px; padding: 9px 11px; border: 1px solid #edf0f3; border-radius: 9px; background: #f8f9fa; color: #2f3438; }
.account-detail-spec-wide { grid-column: 1 / -1; }
.account-detail-spec span { color: #525960; font-size: .69rem; font-weight: 750; line-height: 1.25; }
.account-detail-spec strong { color: #25292e; font-size: .76rem; text-align: right; overflow-wrap: anywhere; }
.account-detail-total-box { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 72px; margin-top: 15px; padding: 14px 13px; border-radius: 12px; background: #f6f8fa; }
.account-detail-total-box > span { font-size: .9rem; font-weight: 850; }
.account-detail-total-box > div { text-align: right; }
.account-detail-total-box small { display: block; color: #8d8f92; font-size: .7rem; text-decoration: line-through; }
.account-detail-total-box strong { display: block; color: #ff7442; font-size: 1.35rem; line-height: 1.1; }
.account-detail-support { display: flex; align-items: center; gap: 9px; min-height: 42px; margin-top: 12px; padding: 9px 11px; border: 1px dashed #e9b759; border-radius: 10px; background: #fff9ed; color: #84582c; font-size: .7rem; font-weight: 850; }
.account-detail-support:hover { background: #fff4dc; }
.account-detail-support-icon { display: grid; place-items: center; flex: 0 0 21px; width: 21px; height: 21px; border-radius: 50%; background: #ff813d; color: #fff; font-size: .7rem; letter-spacing: -2px; }
.account-detail-action-row { display: flex; width: 100%; margin-top: 11px; }
.account-detail-buy-button { flex: 1; min-height: 48px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 10px 16px; border-radius: 9px; background: #ff824b; color: #6c411f; font-size: .84rem; font-weight: 950; letter-spacing: .01em; box-shadow: 0 8px 18px #ff82452b; transition: transform .16s, background .16s, box-shadow .16s; }
.account-detail-buy-button:hover:not(:disabled) { transform: translateY(-1px); background: #ff7336; box-shadow: 0 10px 24px #ff824542; }
.account-detail-important { margin-top: 12px; padding: 12px; border: 1px solid #f1c8c3; border-radius: 11px; background: #fff4f2; color: #d64f4a; }
.account-detail-important > strong { font-size: .7rem; }
.account-detail-important ul { margin: 8px 0 0; padding-left: 17px; }
.account-detail-important li { margin: 4px 0; color: #a75750; font-size: .68rem; line-height: 1.5; }
.account-detail-extra { margin-top: 12px; padding: 12px; border: 1px solid #eee6dc; border-radius: 10px; background: #fffdfa; }
.account-detail-extra p { margin: 0; color: #6d6258; font-size: .76rem; line-height: 1.55; overflow-wrap: anywhere; }
.account-detail-error { min-height: 500px; display: grid; place-items: center; align-content: center; gap: 10px; text-align: center; }
.account-detail-error > span { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #fff0e3; color: #dd783d; font-size: 1.5rem; font-weight: 900; }
.account-detail-error h1 { margin: 0; font-size: 1.8rem; }
.account-detail-error p { margin: 0 0 8px; color: #7e7368; }

@media (min-width: 1280px) {
  .account-detail-page .container { max-width: 1380px; }
  .account-detail-layout { grid-template-columns: minmax(0, 2.05fr) minmax(360px, .9fr); gap: 28px; }
}
@media (max-width: 980px) {
  .account-detail-layout { grid-template-columns: 1fr; }
  .account-detail-purchase-card { position: static; }
  .account-detail-main-media img { min-height: 0; }
}
@media (max-width: 680px) {
  .account-detail-shell { padding-top: 14px; }
  .account-detail-breadcrumb { margin-bottom: 10px; }
  .account-detail-gallery-head { align-items: flex-start; flex-direction: column; gap: 10px; }
  .detail-page-back { min-height: 34px; padding: 6px 10px; }
  .account-detail-main-media { border-width: 1px; border-radius: 9px; }
  .account-detail-image-toolbar { align-items: flex-start; flex-direction: column; gap: 4px; }
  .account-detail-thumbnails { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  .account-detail-purchase-card { padding: 12px; border-radius: 13px; }
  .account-detail-code-row strong { font-size: 1.08rem; }
  .account-detail-price-box { min-height: 74px; }
  .account-detail-spec-grid { grid-template-columns: 1fr 1fr; }
  .account-detail-action-row { width: 100%; }
}
@media (max-width: 420px) {
  .account-detail-spec-grid { grid-template-columns: 1fr; }
  .account-detail-spec-wide { grid-column: auto; }
  .account-detail-thumbnails { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Floating Zalo + back to top */
.floating-tools {
  position: fixed;
  right: 22px;
  bottom: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.floating-tools a,
.floating-tools button {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.16);
  font-weight: 800;
  transition: transform .2s, opacity .2s;
}
.floating-tools a:hover,
.floating-tools button:hover { transform: translateY(-3px); }
.floating-zalo {
  color: #087cff;
  font-size: .78rem;
  border: 1px solid #e7e7e7;
}
.floating-top {
  background: #ff8148 !important;
  color: #fff;
  font-size: 1.35rem;
  opacity: 0;
  pointer-events: none;
}
.floating-top.show {
  opacity: 1;
  pointer-events: auto;
}
@media(max-width:680px){
  .floating-tools{right:14px;bottom:18px}
  .floating-tools a,.floating-tools button{width:48px;height:48px}
}

/* Account dropdown optimization */
.account-options {
  min-width: 230px;
  padding: 10px;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0,0,0,.12);
}
.account-user {
  padding: 6px 10px 12px;
  margin-bottom: 8px;
  border-bottom: 1px solid #eee8df;
}
.account-user b {
  display: block;
  color: #171717;
  font-size: 1rem;
  margin-bottom: 8px;
}
.account-user p {
  margin: 0;
  color: #666;
  font-size: .9rem;
}
.account-user strong {
  color: #ff6b35;
  font-weight: 800;
}
.account-actions {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.account-actions button,
.account-actions a {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #252525;
  font-family: inherit;
  font-size: .92rem;
  font-weight: 600;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
}
.account-actions button:hover,
.account-actions a:hover {
  background: #fff2e8;
  color: #ef6c2e;
}

/* Modern authentication modal */
.auth-box { padding: 8px 4px 0; }
.auth-brand { text-align:center; margin-bottom:24px; }
.auth-brand span { display:grid; place-items:center; width:64px; height:64px; margin:0 auto 14px; border-radius:50%; background:#f7ead5; font-size:30px; }
.auth-brand h2 { margin:0 0 8px; font-size:1.65rem; font-weight:800; }
.auth-brand p { margin:0; color:var(--muted); font-size:.95rem; }
.auth-box label { margin:14px 0; font-weight:700; color:var(--ink); }
.auth-box input { border-radius:12px; padding:12px 15px; border-color:#d8d0c5; transition:.2s; }
.auth-box input:focus { outline:none; border-color:var(--brand); box-shadow:0 0 0 4px #b68b5220; }
.auth-submit { height:50px; margin-top:12px; border-radius:12px; font-weight:800; }
.auth-switch { border-radius:10px; margin-top:18px!important; background:#faf7f2; text-decoration:none!important; }
.auth-switch:hover { background:#f3eadc; }
.auth-help { text-align:center; font-size:.85rem!important; margin-top:16px; }
