/* Traedol — video marketplace */
:root {
  --blue: #004AAD;
  --blue-deep: #00347D;
  --blue-soft: #E8F0FB;
  --ink: #13203A;
  --muted: #5B6780;
  --line: #E1E6EF;
  --paper: #F3F5F9;
  --white: #FFFFFF;
  --yellow: #FFC72C;
  --green: #0E7C53;
  --green-soft: #E3F4EC;
  --red: #B42318;
  --red-soft: #FDECEA;
  --amber: #8A5300;
  --amber-soft: #FFF3D6;
  --radius: 10px;
  --font-head: 'Jost', 'Avenir Next', 'Segoe UI', sans-serif;
  --font-body: 'Instrument Sans', 'Segoe UI', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.55; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); font-weight: 700; }
h2 { font-size: 1.45rem; font-weight: 600; }
h3 { font-size: 1.12rem; font-weight: 600; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
svg { width: 1em; height: 1em; }

/* Buttons & forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 15px/1 var(--font-body); padding: 12px 18px; border-radius: 8px; border: 1.5px solid var(--blue); background: var(--blue); color: var(--white); cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--blue-deep); border-color: var(--blue-deep); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--blue); }
.btn-ghost:hover { background: var(--blue-soft); color: var(--blue-deep); }
.btn-green { background: var(--green); border-color: var(--green); }
.btn-green:hover { background: #0a6342; border-color: #0a6342; }
.btn-red { background: var(--white); color: var(--red); border-color: #E7B4AE; }
.btn-red:hover { background: var(--red-soft); border-color: var(--red); }
.btn-sm { padding: 8px 12px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--blue); cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.link-danger { color: var(--red); }

label, .label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.hint { display: block; font-weight: 400; color: var(--muted); font-size: .85rem; margin-top: 4px; }
input:not([type]), input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=url], input[type=search], select, textarea {
  width: 100%; font: 16px/1.4 var(--font-body); color: var(--ink); background: var(--white); border: 1.5px solid #CBD3E1; border-radius: 8px; padding: 11px 12px;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,74,173,.15); }
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--blue); }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.field-error { color: var(--red); font-size: .88rem; margin-top: 4px; }
input[type=file] { font: 15px var(--font-body); }

.flashes { margin-top: 16px; }
.flash { padding: 12px 16px; border-radius: 8px; margin-bottom: 10px; font-weight: 500; border: 1px solid; }
.flash-success { background: var(--green-soft); border-color: #A8DCC4; color: #0a5c3d; }
.flash-error { background: var(--red-soft); border-color: #F1B8B2; color: var(--red); }
.flash-info { background: var(--blue-soft); border-color: #BBD0EE; color: var(--blue-deep); }

.badge { display: inline-block; font-size: .78rem; font-weight: 600; padding: 3px 9px; border-radius: 99px; white-space: nowrap; }
.tone-green { background: var(--green-soft); color: var(--green); }
.tone-amber { background: var(--amber-soft); color: var(--amber); }
.tone-red { background: var(--red-soft); color: var(--red); }
.tone-blue { background: var(--blue-soft); color: var(--blue); }
.tone-grey { background: #ECEFF4; color: #4A5468; }

.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 20px; }
.panel h2 { font-size: 1.2rem; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.panel-head h2 { margin: 0; }

/* Header */
.promo-strip { background: var(--blue-deep); color: #fff; font-size: .84rem; }
.promo-row { display: flex; align-items: center; gap: 8px; min-height: 34px; }
.promo-row .ui-ico { width: 16px; height: 16px; color: var(--yellow); flex-shrink: 0; }
.promo-row span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.promo-row a { color: var(--yellow); font-weight: 600; margin-left: auto; white-space: nowrap; }
.ui-ico { width: 22px; height: 22px; flex-shrink: 0; }
.topbar { background: var(--white); color: var(--ink); position: sticky; top: 0; z-index: 30; box-shadow: 0 1px 0 var(--line); }
.topbar-row { display: flex; align-items: center; gap: 22px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--blue); text-decoration: none; flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.brand-logo { width: 44px; height: 44px; border-radius: 8px; }
.brand-word { font: 700 18px/1 var(--font-head); letter-spacing: .3em; margin-right: -.3em; }
.topsearch { flex: 1; display: flex; align-items: center; max-width: 640px; border: 1.5px solid #C9D3E3; border-radius: 10px; overflow: hidden; background: var(--white); }
.topsearch:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,74,173,.12); }
.topsearch-ico { padding-left: 12px; color: var(--muted); display: grid; }
.topsearch-ico .ui-ico { width: 20px; height: 20px; }
.topsearch input { border: 0; border-radius: 0; padding: 11px 10px; box-shadow: none !important; }
.topsearch button { border: 0; background: var(--blue); color: var(--white); font: 600 15px var(--font-body); padding: 0 22px; align-self: stretch; cursor: pointer; }
.topsearch button:hover { background: var(--blue-deep); }
.top-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.top-link { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-weight: 600; padding: 8px 8px; border-radius: 8px; }
.top-link:hover { background: var(--paper); text-decoration: none; color: var(--blue); }
.icon-link { position: relative; color: var(--ink); padding: 8px; display: grid; place-items: center; border-radius: 8px; }
.icon-link:hover { background: var(--paper); color: var(--blue); }
.dot-count { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; border-radius: 9px; background: #E5202B; color: #fff; font: 700 11px/18px var(--font-body); text-align: center; padding: 0 4px; }
.btn-sell { background: var(--yellow); color: var(--ink); border-color: var(--yellow); padding: 10px 20px; margin-left: 6px; }
.btn-sell:hover { background: #ffd65c; border-color: #ffd65c; color: var(--ink); }
.menu { position: relative; }
.menu summary { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 6px 8px; color: var(--ink); font-weight: 600; border-radius: 8px; }
.menu summary:hover { background: var(--paper); }
.menu summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; right: 0; top: calc(100% + 8px); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 32px rgba(19,32,58,.16); min-width: 230px; padding: 6px; z-index: 40; }
.menu-panel a { display: block; padding: 10px 12px; border-radius: 6px; color: var(--ink); }
.menu-panel a:hover { background: var(--paper); text-decoration: none; }
.avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.avatar.sm { width: 32px; height: 32px; font-size: 12px; }
.avatar.lg { width: 76px; height: 76px; font-size: 26px; }
.avatar-initials { display: inline-grid; place-items: center; background: var(--blue-soft); color: var(--blue); font: 700 15px var(--font-head); }

.marketbar { background: var(--white); border-top: 1px solid var(--line); }
.marketbar-row { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.marketbar-row::-webkit-scrollbar { display: none; }
.marketbar a { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); padding: 10px 11px; font-size: .88rem; font-weight: 500; white-space: nowrap; border-bottom: 3px solid transparent; }
.marketbar a:hover { color: var(--blue); text-decoration: none; }
.marketbar a.is-on { color: var(--blue); border-bottom-color: var(--blue); font-weight: 600; }
.mb-ico { width: 18px; height: 18px; color: var(--mc, var(--blue)); }
.marketbar .ui-ico { width: 18px; height: 18px; color: var(--blue); }
.mb-all { font-weight: 700 !important; }
.is-home .marketbar { display: none; }

/* Mobile bottom bar */
.tabbar { display: none; }

/* Video thumbnails — fill the frame and crop YouTube's black bars */
.vthumb { position: absolute; inset: 0; overflow: hidden; background: #0d1a33; }
.vthumb img { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); max-width: none; }
.vthumb.is-wide img { height: 133.4%; width: auto; }
.vthumb.is-vertical img { width: 237.1%; height: auto; }
.frame-wide .vthumb.is-wide img { width: 100%; height: auto; }
.frame-wide .vthumb.is-vertical img { width: 100%; height: auto; }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.grid-dense { grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 12px; }
.card { position: relative; background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid transparent; display: flex; flex-direction: column; transition: box-shadow .15s, border-color .15s; }
.card:hover { box-shadow: 0 6px 20px rgba(19,32,58,.12); border-color: var(--line); }
.card-media { position: relative; aspect-ratio: 1 / 1; }
.card-media-link { position: absolute; inset: 0; display: block; }
.card-flag { position: absolute; left: 10px; top: 10px; background: var(--ink); color: var(--white); font-size: .75rem; font-weight: 600; padding: 4px 8px; border-radius: 5px; pointer-events: none; }
.card-flag.is-featured { background: var(--blue); }
.play { width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--yellow); color: var(--ink); display: grid; place-items: center; cursor: pointer; font-size: 24px; box-shadow: 0 6px 18px rgba(0,0,0,.28); transition: transform .15s ease; }
.play svg { margin-left: 3px; }
.play:hover { transform: scale(1.08); }
.card .play { position: absolute; left: 12px; bottom: 12px; }
.save { position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.94); color: transparent; display: grid; place-items: center; cursor: pointer; font-size: 20px; }
.save path { stroke: var(--ink); }
.save.is-saved { color: #E0245E; }
.save.is-saved path { stroke: #E0245E; }
.card-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 3px; flex: 1; position: relative; }
.card-title { font: 400 .92rem/1.35 var(--font-body); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.card-title a { color: var(--ink); }
.card-price { font: 700 1.12rem/1.2 var(--font-head); margin: 4px 0 0; color: var(--ink); }
.card-old { margin: 0; font-size: .82rem; color: var(--muted); }
.card-off { position: absolute; left: 10px; top: 10px; background: #FFE9E6; color: #D92D20; font: 700 .8rem var(--font-body); padding: 3px 7px; border-radius: 5px; pointer-events: none; }
.card-tag { position: absolute; right: 10px; bottom: 12px; font-size: .7rem; font-weight: 600; color: var(--blue); background: var(--blue-soft); padding: 2px 7px; border-radius: 99px; }
.card-meta { margin: auto 0 0; padding-top: 6px; font-size: .78rem; color: var(--muted); display: flex; flex-direction: column; line-height: 1.35; }
.card-shop { display: inline-flex; align-items: center; gap: 4px; }
.card-meta > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: calc(100% - 64px); }
.tick { color: var(--blue); width: 14px; height: 14px; flex-shrink: 0; }

/* Video modal */
.video-modal { border: 0; padding: 0; background: transparent; max-width: min(960px, 94vw); width: 100%; }
.video-modal::backdrop { background: rgba(8,16,32,.86); }
.video-modal-inner { position: relative; }
.video-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; }
.video-modal.is-vertical { max-width: min(420px, 94vw); }
.video-modal.is-vertical .video-frame { aspect-ratio: 9 / 16; max-height: 80vh; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-close { position: absolute; top: -46px; right: 0; background: none; border: 0; color: var(--white); font-size: 36px; line-height: 1; cursor: pointer; }
.video-modal-link { margin-top: 12px; background: var(--white); color: var(--blue); border-color: var(--white); }

/* Home */
.home { padding-top: 16px; }
.hero-grid { display: grid; grid-template-columns: 228px minmax(0, 1fr) 240px; gap: 14px; align-items: stretch; }
.cat-side { background: var(--white); border-radius: var(--radius); padding: 10px 6px; }
.cat-side h2 { font-size: .95rem; margin: 4px 10px 6px; }
.cat-side ul { list-style: none; margin: 0; padding: 0; }
.cat-side a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 7px; color: var(--ink); font-size: .9rem; }
.cat-side a:hover { background: var(--paper); color: var(--blue); text-decoration: none; }
.cat-side a span { flex: 1; }
.cs-ico { width: 20px; height: 20px; color: var(--mc); flex-shrink: 0; }
.cat-side .ui-ico { width: 14px; height: 14px; color: #A3ADBF; }

.slider { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--blue); min-height: 380px; }
.slides { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.slides::-webkit-scrollbar { display: none; }
.slide { position: relative; flex: 0 0 100%; scroll-snap-align: start; min-height: 380px; color: #fff; }
.slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,32,80,.86) 0%, rgba(0,32,80,.55) 45%, rgba(0,32,80,0) 75%); }
.slide-plain { background: var(--blue); }
.slide-plain::after { display: none; }
.slide-text { position: relative; z-index: 1; max-width: 470px; padding: 52px 44px 52px 72px; }
.slide-text h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; line-height: 1.08; margin-bottom: 12px; }
.slide-text p { font-size: 1.05rem; color: rgba(255,255,255,.9); margin-bottom: 22px; }
.slide-text .btn { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.slide-text .btn:hover { background: #ffd65c; border-color: #ffd65c; }
.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--ink); display: grid; place-items: center; cursor: pointer; z-index: 2; box-shadow: 0 2px 10px rgba(0,0,0,.2); }
.slider-btn:hover { background: #fff; }
.slider-btn .ui-ico { width: 20px; height: 20px; }
.slider-btn.prev { left: 12px; }
.slider-btn.next { right: 12px; }
.slider-dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 7px; z-index: 2; }
.slider-dots button { width: 9px; height: 9px; border-radius: 9px; border: 0; padding: 0; background: rgba(255,255,255,.55); cursor: pointer; transition: width .2s; }
.slider-dots button.is-on { width: 26px; background: var(--yellow); }

.hero-side { display: grid; grid-template-rows: repeat(3, 1fr); gap: 14px; }
.hs-card { display: flex; gap: 12px; align-items: flex-start; background: var(--white); border-radius: var(--radius); padding: 16px; color: var(--muted); font-size: .86rem; line-height: 1.4; }
.hs-card:hover { text-decoration: none; box-shadow: 0 4px 14px rgba(19,32,58,.1); }
.hs-card strong { display: block; color: var(--ink); font-size: .98rem; margin-bottom: 3px; }
.hs-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; }
.hs-ico.is-green { background: var(--green-soft); color: var(--green); }
.hs-ico.is-blue { background: var(--blue-soft); color: var(--blue); }
.hs-ico.is-yellow { background: #FFF4D1; color: #9A6B00; }

.circles-wrap { margin-top: 14px; }
.circles { background: var(--white); border-radius: var(--radius); padding: 18px 10px; display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 6px; }
.circle { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; color: var(--ink); font-size: .8rem; font-weight: 500; line-height: 1.25; padding: 4px; border-radius: 10px; }
.circle:hover { text-decoration: none; color: var(--blue); }
.circle-ico { width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; background: #EEF2F8; background: color-mix(in srgb, var(--mc) 13%, white); color: var(--mc); transition: transform .15s; }
.circle:hover .circle-ico { transform: translateY(-2px); }
.cc-ico { width: 30px; height: 30px; }

.shelf { margin-top: 18px; }
.shelf-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--mc, var(--blue)); color: #fff; padding: 11px 16px; border-radius: var(--radius) var(--radius) 0 0; }
.shelf-head h2 { margin: 0; font-size: 1.12rem; display: flex; align-items: center; gap: 9px; }
.shelf-head a { color: #fff; font-weight: 600; font-size: .9rem; display: inline-flex; align-items: center; gap: 2px; }
.shelf-head a .ui-ico { width: 16px; height: 16px; }
.shelf-head.is-deals { background: #D92D20; }
.shelf-head.is-plain { background: var(--white); color: var(--ink); border-bottom: 1px solid var(--line); }
.shelf-head.is-plain a { color: var(--blue); }
.sh-ico { width: 22px; height: 22px; }
.shelf-row { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 5 * 10px) / 6); gap: 10px; overflow-x: auto; background: var(--white); padding: 12px; border-radius: 0 0 var(--radius) var(--radius); scroll-snap-type: x proximity; scrollbar-width: thin; }
.shelf-row .card { scroll-snap-align: start; border-color: var(--line); }
.shelf .grid { background: var(--white); padding: 12px; border-radius: 0 0 var(--radius) var(--radius); }
.shelf .grid .card { border-color: var(--line); }

.escrow-strip { margin-top: 30px; }
.escrow-strip h2 { font-size: 1.35rem; margin-bottom: 14px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; list-style: none; margin: 0; padding: 0; }
.step { background: var(--white); border-radius: var(--radius); padding: 18px; }
.step-n { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--blue); color: var(--white); font: 700 .95rem var(--font-head); margin-bottom: 10px; }
.step h3 { font-size: 1rem; }
.step p { color: var(--muted); font-size: .92rem; margin: 0; }
.sell-band { background: var(--ink); color: var(--white); border-radius: var(--radius); padding: 28px 30px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin: 24px 0 0; }
.sell-band h2 { margin: 0 0 6px; }
.sell-band p { margin: 0; color: rgba(255,255,255,.78); }
.sell-band .btn { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }

.markets-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.market-card { display: flex; gap: 14px; align-items: center; background: var(--white); border-radius: var(--radius); padding: 16px; color: var(--ink); }
.market-card:hover { text-decoration: none; box-shadow: 0 6px 18px rgba(19,32,58,.1); }
.market-card .circle-ico { width: 56px; height: 56px; flex-shrink: 0; }
.market-card strong { display: block; font-size: 1rem; }
.market-card small { color: var(--muted); font-size: .84rem; }

/* Listing page */
.crumbs { font-size: .88rem; color: var(--muted); margin: 18px 0 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--muted); }
.crumbs span[aria-hidden] { color: #A6AFC0; }
.product { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, 1fr); gap: 28px; align-items: start; }
.player { position: relative; background: #000; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; }
.player.is-vertical { height: min(78vh, 720px); width: auto; max-width: 100%; aspect-ratio: 9 / 16; margin: 0 auto; background: #000; }
.player-wrap-vertical { background: #0b1220; border-radius: var(--radius); padding: 0; display: flex; justify-content: center; }
.player button.player-start { position: absolute; inset: 0; border: 0; padding: 0; background: none; cursor: pointer; width: 100%; }
.player .vthumb.is-wide img { width: 100%; height: auto; }
.player .vthumb.is-vertical img { width: 237.1%; height: auto; }
.player.is-vertical .vthumb.is-vertical img { height: 100%; width: auto; }
.player-start .play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 74px; height: 74px; font-size: 34px; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-note { font-size: .85rem; color: var(--muted); margin-top: 8px; }
.buybox { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: sticky; top: 130px; }
.buybox h1 { font-size: 1.5rem; margin-bottom: 10px; }
.price-lg { font: 700 2rem/1.1 var(--font-head); margin: 0 0 4px; }
.price-lg s { font: 500 1rem var(--font-body); color: var(--muted); margin-left: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 16px; }
.chip { font-size: .82rem; background: var(--paper); border: 1px solid var(--line); border-radius: 99px; padding: 4px 10px; color: var(--ink); }
.buy-actions { display: grid; gap: 10px; margin: 18px 0; }
.escrow-note { display: flex; gap: 10px; background: var(--green-soft); color: #0a5c3d; border-radius: 8px; padding: 12px 14px; font-size: .9rem; }
.escrow-note svg { width: 22px; height: 22px; color: var(--green); flex-shrink: 0; margin-top: 1px; }
.seller { display: flex; gap: 12px; align-items: center; padding-top: 16px; margin-top: 16px; border-top: 1px solid var(--line); }
.seller strong { display: flex; align-items: center; gap: 4px; }
.seller-meta { font-size: .85rem; color: var(--muted); }
.stars { color: #C7CEDB; letter-spacing: 1px; }
.stars .on { color: #F2A900; }
.desc { white-space: pre-line; }
.spec { display: grid; grid-template-columns: 150px 1fr; gap: 8px 16px; margin: 0; }
.spec dt { color: var(--muted); }
.spec dd { margin: 0; font-weight: 500; }
.review { padding: 14px 0; border-top: 1px solid var(--line); }
.review:first-of-type { border-top: 0; }

/* Store */
.store-head { background: var(--white); border-bottom: 1px solid var(--line); padding: 28px 0; }
.store-head-row { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.store-head h1 { margin: 0 0 4px; display: flex; align-items: center; gap: 8px; }
.store-head h1 .tick { width: 22px; height: 22px; }
.store-facts { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: .92rem; }

/* Browse */
.browse { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 26px; align-items: start; margin-top: 22px; }
.filters { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; position: sticky; top: 130px; }
.filters h2 { font-size: 1rem; margin-bottom: 12px; }
.filters .field { margin-bottom: 14px; }
.browse-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.browse-head h1 { margin: 0; }
.browse-head select { width: auto; }
.page-intro { color: var(--muted); max-width: 60ch; margin-top: 4px; }
.empty { background: var(--white); border: 1px dashed #C4CDDC; border-radius: var(--radius); padding: 40px 24px; text-align: center; color: var(--muted); }
.empty h2, .empty h3 { color: var(--ink); }
.empty-page { padding: 60px 16px; }
.pagination { display: flex; gap: 6px; justify-content: center; margin: 30px 0; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 8px 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--white); color: var(--ink); font-weight: 500; }
.pagination span[aria-current] { background: var(--blue); border-color: var(--blue); color: var(--white); }
.pagination a:hover { border-color: var(--blue); text-decoration: none; }

/* Auth & content pages */
.auth { max-width: 460px; margin: 40px auto 60px; }
.auth .panel { padding: 30px; }
.auth h1 { font-size: 1.8rem; }
.prose { max-width: 70ch; }
.prose h3 { margin-top: 1.4em; }
.prose img { border-radius: var(--radius); }
.content-page { padding: 34px 16px 50px; }

/* Account */
.account { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 26px; padding-top: 26px; padding-bottom: 50px; align-items: start; }
.account-nav { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; position: sticky; top: 130px; }
.account-who { display: flex; gap: 10px; align-items: center; padding: 6px 6px 14px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.account-who strong { display: block; font-size: .95rem; line-height: 1.2; }
.account-who span { font-size: .82rem; color: var(--muted); }
.account-nav nav a { display: block; padding: 9px 10px; border-radius: 7px; color: var(--ink); font-size: .94rem; font-weight: 500; }
.account-nav nav a:hover { background: var(--paper); text-decoration: none; }
.account-nav nav a.is-on { background: var(--blue-soft); color: var(--blue); font-weight: 600; }
.account-nav .nav-cta { color: var(--blue); font-weight: 600; }
.nav-group { display: block; font-size: .78rem; color: var(--muted); padding: 14px 10px 4px; font-weight: 600; }
.account-main > h1 { margin-bottom: 18px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.stat b { display: block; font: 700 1.55rem/1.2 var(--font-head); }
.stat span { color: var(--muted); font-size: .88rem; }
.stat.is-green b { color: var(--green); }
.stat a { color: inherit; }

.table-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-weight: 600; color: var(--muted); font-size: .82rem; background: #FAFBFD; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; white-space: nowrap; }
.t-item { display: flex; gap: 12px; align-items: center; min-width: 220px; }
.t-thumb { position: relative; width: 64px; height: 64px; border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.t-thumb .vthumb.is-wide img { height: 133.4%; }
.t-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.t-actions form { margin: 0; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 16px; }
.tabs a { padding: 8px 14px; border-radius: 99px; background: var(--white); border: 1px solid var(--line); color: var(--ink); font-size: .9rem; font-weight: 500; }
.tabs a.is-on { background: var(--ink); color: var(--white); border-color: var(--ink); }
.tabs a:hover { text-decoration: none; border-color: var(--ink); }
.tabs a .n { opacity: .7; margin-left: 4px; }

/* Order page */
.order-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr); gap: 22px; align-items: start; }
.order-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.order-top h1 { margin: 0 0 6px; }
.progress { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 0 0 22px; padding: 0; list-style: none; }
.progress li { font-size: .8rem; color: var(--muted); border-top: 4px solid var(--line); padding-top: 8px; font-weight: 500; }
.progress li.done { border-color: var(--green); color: var(--ink); }
.progress li.now { border-color: var(--blue); color: var(--blue); font-weight: 700; }
.bank-card { background: var(--ink); color: var(--white); border-radius: var(--radius); padding: 20px; margin: 14px 0; }
.bank-card dl { display: grid; grid-template-columns: 130px 1fr; gap: 8px 12px; margin: 0; }
.bank-card dt { color: rgba(255,255,255,.65); }
.bank-card dd { margin: 0; font-weight: 600; font-size: 1.05rem; }
.bank-card .big { font: 700 1.5rem var(--font-head); letter-spacing: .04em; }
.copy-btn { background: rgba(255,255,255,.14); border: 0; color: var(--white); border-radius: 6px; font: 600 .78rem var(--font-body); padding: 4px 8px; margin-left: 8px; cursor: pointer; vertical-align: middle; }
.sumlist { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; margin: 0; }
.sumlist dt { color: var(--muted); }
.sumlist dd { margin: 0; text-align: right; font-weight: 500; }
.sumlist .total { font: 700 1.15rem var(--font-head); color: var(--ink); padding-top: 8px; border-top: 1px solid var(--line); }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 16px 22px; }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--blue); }
.timeline li::after { content: ""; position: absolute; left: 8px; top: 18px; bottom: 0; width: 1px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline .when { font-size: .8rem; color: var(--muted); }
.timeline .who { font-size: .8rem; font-weight: 600; color: var(--muted); }
.action-box { border: 2px solid var(--blue); }
.action-box.is-green { border-color: var(--green); }
.action-box.is-red { border-color: var(--red); }
.order-item { display: flex; gap: 14px; align-items: center; }
.order-item .t-thumb { width: 84px; height: 84px; }

/* Messages */
.convos { list-style: none; margin: 0; padding: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.convos li + li { border-top: 1px solid var(--line); }
.convos a { display: flex; gap: 12px; padding: 14px; color: var(--ink); align-items: center; }
.convos a:hover { background: var(--paper); text-decoration: none; }
.convos .unread strong::after { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); margin-left: 6px; vertical-align: middle; }
.convo-text { flex: 1; min-width: 0; }
.convo-text p { margin: 0; color: var(--muted); font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; max-height: 60vh; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.bubble { max-width: 78%; padding: 10px 14px; border-radius: 14px; background: var(--paper); align-self: flex-start; white-space: pre-line; }
.bubble.mine { align-self: flex-end; background: var(--blue); color: var(--white); }
.bubble time { display: block; font-size: .72rem; opacity: .7; margin-top: 4px; }
.offer-card { align-self: center; width: min(100%, 360px); border: 2px solid var(--blue); border-radius: var(--radius); padding: 14px 16px; background: var(--white); text-align: center; }
.offer-card b { display: block; font: 700 1.5rem var(--font-head); }
.compose { display: flex; gap: 10px; margin-top: 12px; }
.compose textarea { min-height: 52px; height: 52px; }

/* Footer */
.sitefoot { background: var(--ink); color: rgba(255,255,255,.75); margin-top: 60px; padding: 44px 0 20px; font-size: .93rem; }
.sitefoot a { color: rgba(255,255,255,.85); }
.sitefoot a:hover { color: var(--white); }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 30px; }
.sitefoot h2 { font: 600 1rem var(--font-head); color: var(--white); margin-bottom: 12px; }
.sitefoot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-brand p { margin-top: 12px; max-width: 32ch; }
.foot-escrow { display: flex; gap: 8px; align-items: flex-start; color: var(--white); }
.foot-escrow svg { width: 20px; height: 20px; color: var(--green); flex-shrink: 0; }
.foot-contact { margin-top: 14px; }
.foot-base { border-top: 1px solid rgba(255,255,255,.12); margin-top: 30px; padding-top: 16px; font-size: .85rem; }

/* Admin */
.admin-body { background: var(--paper); }
.admin { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; background: linear-gradient(to right, var(--ink) 240px, var(--paper) 240px); }
.admin-side { background: var(--ink); color: var(--white); padding: 20px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; }
.admin-side .brand { padding: 4px 10px 22px; color: #fff; }
.sitefoot .brand { color: #fff; }
.admin-side nav a { display: flex; justify-content: space-between; align-items: center; padding: 9px 10px; border-radius: 7px; color: rgba(255,255,255,.78); font-size: .93rem; font-weight: 500; }
.admin-side nav a:hover { background: rgba(255,255,255,.07); color: var(--white); text-decoration: none; }
.admin-side nav a.is-on { background: var(--blue); color: var(--white); }
.count { background: var(--yellow); color: var(--ink); font-size: .74rem; padding: 1px 8px; border-radius: 99px; }
.admin-side-foot { margin-top: auto; padding: 16px 10px 0; display: grid; gap: 8px; font-size: .88rem; }
.admin-side-foot a { color: rgba(255,255,255,.7); }
.admin-main { min-width: 0; }
.admin-top { display: flex; align-items: center; gap: 14px; padding: 16px 26px; background: var(--white); border-bottom: 1px solid var(--line); }
.admin-top h1 { margin: 0; font-size: 1.4rem; }
.admin-who { margin-left: auto; display: flex; gap: 8px; align-items: center; font-weight: 500; font-size: .92rem; }
.admin-menu-btn { display: none; background: none; border: 0; font-size: 26px; color: var(--ink); cursor: pointer; padding: 0; }
.admin-main > .flash { margin: 16px 26px 0; }
.admin-content { padding: 24px 26px 50px; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.toolbar input, .toolbar select { width: auto; min-width: 180px; padding: 9px 12px; }
.inline-form { display: inline-flex; gap: 6px; align-items: center; margin: 0; }
.inline-form input, .inline-form select { width: auto; padding: 7px 10px; font-size: 14px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 8px 14px; margin: 0; font-size: .94rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-word; }
.proof-img { max-height: 420px; border: 1px solid var(--line); border-radius: 8px; }

/* Admin icon picker */
.icon-pick { display: grid; grid-template-columns: repeat(auto-fill, 44px); gap: 6px; }
.icon-pick label { margin: 0; cursor: pointer; }
.icon-pick input { position: absolute; opacity: 0; }
.icon-pick span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; border: 1.5px solid var(--line); color: var(--ink); }
.icon-pick .cc-ico { width: 24px; height: 24px; }
.icon-pick input:checked + span { border-color: var(--blue); background: var(--blue-soft); color: var(--blue); }
.icon-pick input:focus-visible + span { outline: 3px solid var(--yellow); }

/* Responsive */
@media (max-width: 1180px) {
  .hero-grid { grid-template-columns: 210px minmax(0, 1fr); }
  .hero-side { grid-column: 1 / -1; grid-template-rows: none; grid-template-columns: repeat(3, 1fr); }
  .circles { grid-template-columns: repeat(6, minmax(0, 1fr)); row-gap: 14px; }
  .shelf-row { grid-auto-columns: calc((100% - 4 * 10px) / 5); }
}
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .cat-side { display: none; }
  .is-home .marketbar { display: block; }
  .shelf-row { grid-auto-columns: calc((100% - 3 * 10px) / 4); }
  .product { grid-template-columns: 1fr; }
  .buybox { position: static; }
  .steps { grid-template-columns: 1fr 1fr; }
  .order-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  body { padding-bottom: 64px; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; background: var(--white); border-top: 1px solid var(--line); padding: 6px 0 calc(6px + env(safe-area-inset-bottom)); }
  .tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .7rem; font-weight: 600; color: var(--muted); }
  .tabbar a:hover { text-decoration: none; }
  .tabbar a.is-on { color: var(--blue); }
  .tabbar .tab-sell { color: var(--ink); }
  .tabbar .tab-sell .ui-ico { color: var(--blue); width: 26px; height: 26px; margin-top: -2px; }
  .tabbar .dot-count { top: -4px; right: calc(50% - 22px); }
  .hide-sm { display: none; }
  .top-link span { display: none; }
  .btn-sell { display: none; }
  .promo-row a { display: none; }
  .hero-side { display: none; }
  .slider, .slide { min-height: 230px; }
  .slide-text { padding: 26px 22px 40px; max-width: 78%; }
  .slide-text p { font-size: .92rem; margin-bottom: 14px; }
  .slider-btn { display: none; }
  .circles { display: flex; overflow-x: auto; padding: 14px 8px; scrollbar-width: none; }
  .circles::-webkit-scrollbar { display: none; }
  .circle { flex: 0 0 82px; }
  .circle-ico { width: 54px; height: 54px; }
  .cc-ico { width: 26px; height: 26px; }
  .shelf-row { grid-auto-columns: 44%; padding: 10px; gap: 8px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .topbar-row { flex-wrap: wrap; height: auto; padding-top: 12px; padding-bottom: 12px; row-gap: 10px; }
  .topsearch { order: 3; flex-basis: 100%; max-width: none; }
  .menu-name { display: none; }
  .browse, .account { grid-template-columns: minmax(0, 1fr); }
  .account-nav, .account-main { min-width: 0; }
  .filters, .account-nav { position: static; }
  .filters { display: none; }
  .filters.is-open { display: block; }
  .filter-toggle { display: inline-flex !important; }
  .account-nav nav { display: flex; overflow-x: auto; gap: 4px; }
  .account-nav nav a { white-space: nowrap; }
  .nav-group { display: none; }
  .account-who { display: none; }
  .account-nav { padding: 6px; }
  .admin { grid-template-columns: 1fr; background: var(--paper); }
  .admin-side { position: fixed; left: 0; top: 0; z-index: 50; width: 260px; transform: translateX(-100%); transition: transform .2s; }
  .admin-side.is-open { transform: none; box-shadow: 0 0 0 100vmax rgba(0,0,0,.4); }
  .admin-menu-btn { display: block; }
  .admin-content { padding: 18px 16px 40px; }
  .admin-top { padding: 14px 16px; }
  .admin-main > .flash { margin: 12px 16px 0; }
  .admin-who { display: none; }
  .two-col { grid-template-columns: 1fr; }
  .progress { grid-template-columns: repeat(5, minmax(0,1fr)); }
  .progress li { font-size: .7rem; }
}
@media (max-width: 560px) {
  .brand-word { display: none; }
  .brand-logo { width: 40px; height: 40px; }
  .topsearch button { padding: 0 14px; }
  .grid-dense { grid-template-columns: 1fr 1fr; gap: 8px; }
  .shelf .grid { padding: 8px; }
  .home { padding-top: 10px; }
  .slide-text h2 { font-size: 1.35rem; }
  .card-title { font-size: .86rem; }
  .grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card-body { padding: 10px; }
  .card-price { font-size: 1.05rem; }
  .play { width: 42px; height: 42px; font-size: 19px; }
  .field-row, .field-row-3 { grid-template-columns: 1fr; gap: 0; }
  .steps { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .brand-word { font-size: 15px; letter-spacing: .32em; margin-right: -.32em; }
  .btn-sell { padding: 9px 14px; }
  .top-link { padding: 6px 2px; }
  .spec, .kv, .bank-card dl { grid-template-columns: 1fr; gap: 2px; }
  .spec dd, .kv dd, .bank-card dd { margin-bottom: 8px; }
  .panel { padding: 16px; }
}
.filter-toggle { display: none !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
