/* FeetMora — gallery theme. Wine / black / champagne gold. */
:root, [data-theme="dark"] {
  --bg: #121014; --surface: #1E1A1F; --surface-2: #27222A; --line: #3A3238; --line-soft: #2B252C;
  --text: #F5EDE6; --muted: #B8ABA5; --faint: #85797A;
  --wine: #7A1F35; --wine-hi: #9A2944; --gold: #D4B26A; --gold-soft: rgba(212,178,106,.14); --blush: #E8C4B8;
  --ok: #7FB89A; --warn: #E2B45A; --bad: #E07A7A; --ice: #A9CFE0;
  --shadow: 0 18px 50px -20px rgba(0,0,0,.65);
  --serif: "Cormorant Garamond", Georgia, serif; --sans: "Inter", system-ui, -apple-system, Segoe UI, sans-serif;
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #FAF6F1; --surface: #FFFFFF; --surface-2: #F3ECE4; --line: #E2D6CB; --line-soft: #EDE4DA;
  --text: #1E1A1F; --muted: #6C5F5C; --faint: #998B86; --wine: #7A1F35; --wine-hi: #922640; --gold: #A9853A; --gold-soft: rgba(169,133,58,.12);
  --shadow: 0 18px 44px -24px rgba(60,30,30,.35); color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.6 var(--sans); min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--gold); }
img { max-width: 100%; display: block; }
h1, h2, h3, .serif { font-family: var(--serif); font-weight: 500; letter-spacing: .01em; line-height: 1.1; margin: 0 0 .4em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1em; }
small, .muted { color: var(--muted); }
.faint { color: var(--faint); }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.section { padding: 64px 0; }
.section-sm { padding: 36px 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .22em; font-size: .72rem; color: var(--gold); font-weight: 600; margin-bottom: .8em; display: block; }
.rule { height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); border: 0; margin: 40px 0; }
.center { text-align: center; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 960px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 600px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } .section { padding: 44px 0; } }

/* Top bar */
.notice-bar { background: var(--wine); color: #fff; text-align: center; font-size: .85rem; padding: 6px 16px; }
.top { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line-soft); }
.top-in { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 1.6rem; font-weight: 600; letter-spacing: .02em; }
.logo em { color: var(--gold); font-style: italic; font-weight: 500; }
.main-nav { display: flex; gap: 22px; margin-right: auto; }
.main-nav a { font-size: .9rem; color: var(--muted); padding: 6px 0; border-bottom: 1px solid transparent; }
.main-nav a.on, .main-nav a:hover { color: var(--text); border-color: var(--gold); }
.top-right { display: flex; align-items: center; gap: 10px; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--text); cursor: pointer; }
.icon-btn:hover { border-color: var(--gold); color: var(--gold); }
.icon-btn .dot { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--wine); color: #fff; font-size: .68rem; display: grid; place-items: center; padding: 0 4px; }
.burger { display: none; }
.coin-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 30px; font-size: .85rem; font-weight: 600; }
.coin { width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #F3DFA8, var(--gold) 55%, #8E6E2C); box-shadow: inset 0 0 0 1.5px rgba(0,0,0,.18); display: inline-block; flex: none; }
.pass-pill { font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; padding: 5px 10px; border-radius: 30px; font-weight: 600; }
.pp-basic { background: #EFE6D8; color: #3d3226; } .pp-gold { background: linear-gradient(135deg,#E9D29A,#B8913F); color: #2a1f08; }
.pp-diamond { background: linear-gradient(135deg,#D7EBF4,#8DBBD0); color: #10303d; } .pp-premium { background: var(--wine); color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.menu { position: relative; }
.avatar-btn { border: 0; padding: 0; background: none; cursor: pointer; }
.avatar-btn img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 1px solid var(--gold); }
.menu-pop { display: none; position: absolute; right: 0; top: 48px; min-width: 230px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 8px; }
.menu.open .menu-pop { display: block; }
.menu-head { padding: 8px 10px 10px; border-bottom: 1px solid var(--line-soft); margin-bottom: 6px; display: flex; flex-direction: column; }
.menu-pop a, .menu-pop button { display: block; width: 100%; text-align: left; padding: 8px 10px; border-radius: 8px; font-size: .9rem; background: none; border: 0; color: var(--text); cursor: pointer; font-family: inherit; }
.menu-pop a:hover, .menu-pop button:hover { background: var(--surface-2); color: var(--text); }
@media (max-width: 980px) {
  .burger { display: inline-grid; }
  .main-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px 16px; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
  .top-in { gap: 12px; }
}
@media (max-width: 520px) { .logo span { font-size: 1.3rem; } .pass-pill { display: none; } .btn-ghost.btn-sm { display: none; } }

/* Buttons & forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 40px; background: var(--wine); color: #fff; border: 1px solid var(--wine); font: 600 .9rem var(--sans); letter-spacing: .02em; cursor: pointer; transition: background .25s, border-color .25s, transform .25s; white-space: nowrap; }
.btn:hover { background: var(--wine-hi); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: #1b140a; }
.btn-gold:hover { background: #e3c27c; color: #1b140a; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: transparent; border-color: var(--gold); color: var(--gold); }
.btn-sm { padding: 7px 14px; font-size: .82rem; }
.btn-block { width: 100%; }
.btn-danger { background: transparent; border-color: var(--bad); color: var(--bad); }
.btn-danger:hover { background: var(--bad); color: #fff; }
.btn[disabled], .btn.disabled { opacity: .45; pointer-events: none; }
.link { color: var(--gold); border-bottom: 1px solid transparent; }
.link:hover { border-color: var(--gold); }
label { display: block; font-size: .82rem; color: var(--muted); margin: 0 0 6px; font-weight: 500; }
.field { margin-bottom: 16px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=search], input[type=url], select, textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 11px 14px; font: inherit; outline: none; transition: border-color .2s; }
input:focus, select:focus, textarea:focus { border-color: var(--gold); }
textarea { min-height: 110px; resize: vertical; }
input[type=file] { color: var(--muted); font-size: .85rem; max-width: 100%; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--muted); margin-bottom: 12px; }
.check input { margin-top: 4px; accent-color: var(--wine); }
.hint { font-size: .78rem; color: var(--faint); margin-top: 5px; }

/* Cards & panels */
.card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: 16px; padding: 24px; }
.card h3 { margin-bottom: .6em; }
.card-tight { padding: 16px; }
.stat { background: var(--surface); border: 1px solid var(--line-soft); border-radius: 14px; padding: 18px; }
.stat b { display: block; font-family: var(--serif); font-size: 2rem; font-weight: 500; line-height: 1.1; }
.stat small { text-transform: uppercase; letter-spacing: .12em; font-size: .68rem; }
.flashes { margin-top: 16px; }
.flash { padding: 12px 16px; border-radius: 10px; margin-bottom: 10px; font-size: .9rem; border: 1px solid var(--line); background: var(--surface); }
.flash-success { border-color: rgba(127,184,154,.5); } .flash-error { border-color: rgba(224,122,122,.6); color: #f2b5b5; }
[data-theme="light"] .flash-error { color: #9b2a2a; }
.flash-info { border-color: var(--gold-soft); }
.badge { display: inline-block; font-size: .7rem; padding: 3px 9px; border-radius: 20px; border: 1px solid var(--line); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.b-ok { color: var(--ok); border-color: currentColor; } .b-warn { color: var(--warn); border-color: currentColor; } .b-bad { color: var(--bad); border-color: currentColor; } .b-gold { color: var(--gold); border-color: currentColor; }
.empty { text-align: center; padding: 56px 16px; color: var(--muted); border: 1px dashed var(--line); border-radius: 16px; }
.empty .serif { font-size: 1.6rem; color: var(--text); }
table.t { width: 100%; border-collapse: collapse; font-size: .88rem; }
.t th { text-align: left; font-weight: 600; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.t td { padding: 12px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.t-wrap { overflow-x: auto; border: 1px solid var(--line-soft); border-radius: 14px; background: var(--surface); }
.pager { display: flex; gap: 6px; justify-content: center; margin: 28px 0; flex-wrap: wrap; }
.pager a, .pager span { min-width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; font-size: .85rem; }
.pager .cur { background: var(--wine); border-color: var(--wine); color: #fff; }
.pos { color: var(--ok); } .neg { color: var(--bad); }

/* Hero */
.hero { position: relative; padding: 70px 0 60px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -40% -20% auto auto; width: 70%; height: 140%; background: radial-gradient(closest-side, rgba(122,31,53,.32), transparent); pointer-events: none; }
.hero-in { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; position: relative; }
.hero h1 em { color: var(--gold); font-style: italic; }
.hero .lead { font-size: 1.12rem; color: var(--muted); max-width: 520px; margin-bottom: 28px; }
.hero-proof { display: flex; gap: 28px; margin-top: 34px; flex-wrap: wrap; }
.hero-proof div { font-size: .8rem; color: var(--muted); }
.hero-proof b { display: block; font-family: var(--serif); font-size: 1.8rem; color: var(--text); font-weight: 500; }
.hero-wall { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; transform: rotate(-2deg); }
.hero-wall .hw { border-radius: 4px; overflow: hidden; aspect-ratio: 3/4; background: var(--surface-2); border: 8px solid #F5EDE6; box-shadow: var(--shadow); animation: drift 14s ease-in-out infinite alternate; }
[data-theme="dark"] .hero-wall .hw { border-color: #241E25; outline: 1px solid rgba(212,178,106,.35); }
.hero-wall .hw:nth-child(2) { margin-top: 40px; animation-delay: -4s; } .hero-wall .hw:nth-child(5) { margin-top: -40px; animation-delay: -8s; }
.hero-wall .hw img { width: 100%; height: 100%; object-fit: cover; }
.hw-art { width: 100%; height: 100%; background: linear-gradient(160deg, var(--a, #3a1b26), var(--b, #1a1418)); display: grid; place-items: center; }
@keyframes drift { from { transform: translateY(0); } to { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .hero-wall .hw { animation: none; } }
@media (max-width: 900px) { .hero-in { grid-template-columns: 1fr; } .hero-wall { transform: none; } }

/* Gallery frames */
.frames { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 26px; }
.frame { display: block; }
.frame-img { position: relative; aspect-ratio: 4/5; overflow: hidden; background: var(--surface-2); border: 6px solid var(--surface); outline: 1px solid var(--line); box-shadow: var(--shadow); }
.frame-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.frame:hover .frame-img img { transform: scale(1.04); }
.frame-cap { padding: 12px 2px 0; display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; }
.frame-title { font-family: var(--serif); font-size: 1.2rem; line-height: 1.2; }
.frame-meta { grid-column: 1; font-size: .8rem; color: var(--muted); }
.frame-cap .tag { grid-column: 2; grid-row: 1; align-self: start; }
.frame-count { grid-column: 2; grid-row: 2; font-size: .72rem; color: var(--faint); text-align: right; }
.tag { font-size: .66rem; text-transform: uppercase; letter-spacing: .1em; padding: 3px 8px; border-radius: 20px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; font-weight: 600; }
.tag-premium { color: var(--gold); border-color: var(--gold); } .tag-members { color: var(--blush); border-color: rgba(232,196,184,.5); } .tag-public { color: var(--ok); border-color: rgba(127,184,154,.5); }
.lv { display: inline-grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; background: var(--gold); color: #1b140a; font-size: .6rem; font-style: normal; font-weight: 700; vertical-align: 1px; }
.rail-head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 26px; gap: 16px; }
.rail-head h2 { margin: 0; }

/* Seller cards */
.sellers { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; }
.seller-card { display: block; background: var(--surface); border: 1px solid var(--line-soft); border-radius: 16px; overflow: hidden; transition: border-color .3s, transform .3s; }
.seller-card:hover { border-color: var(--gold); transform: translateY(-3px); color: var(--text); }
.sc-cover { height: 130px; background: linear-gradient(150deg, #3a1b26, #1a1418); }
.sc-cover img { width: 100%; height: 100%; object-fit: cover; }
.sc-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 3px solid var(--surface); margin: -32px 0 0 16px; position: relative; background: var(--surface-2); }
.sc-body { padding: 8px 16px 18px; }
.sc-body strong { font-family: var(--serif); font-size: 1.3rem; font-weight: 500; }
.sc-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; align-items: center; }
.sc-tags span { font-size: .7rem; color: var(--muted); border: 1px solid var(--line); border-radius: 20px; padding: 2px 8px; }
.sc-tags .sw, .sw { width: 16px; height: 16px; padding: 0 !important; border-radius: 50%; background: var(--c); border: 1px solid rgba(255,255,255,.3) !important; display: inline-block; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 26px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 30px; font-size: .84rem; color: var(--muted); background: transparent; cursor: pointer; font-family: inherit; }
.chip:hover, .chip.on { border-color: var(--gold); color: var(--text); }
.chip.on { background: var(--gold-soft); }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.swatch { width: 28px; height: 28px; border-radius: 50%; background: var(--c); border: 2px solid var(--line); cursor: pointer; display: inline-block; transition: transform .2s; }
.swatch.on, .swatch:hover { transform: scale(1.12); border-color: var(--gold); }
.filter-side { display: grid; grid-template-columns: 250px 1fr; gap: 34px; }
.filter-side aside .card { position: sticky; top: 90px; }
.filter-side aside h4 { font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin: 18px 0 10px; }
@media (max-width: 860px) { .filter-side { grid-template-columns: 1fr; } .filter-side aside .card { position: static; } }

/* Seller profile */
.profile-cover { height: 280px; background: linear-gradient(150deg, #3a1b26 0%, #121014 80%); position: relative; overflow: hidden; }
.profile-cover img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.profile-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 40%, var(--bg)); }
.profile-head { display: flex; gap: 24px; align-items: flex-end; margin-top: -80px; position: relative; flex-wrap: wrap; }
.profile-head .pav { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; border: 4px solid var(--bg); outline: 1px solid var(--gold); background: var(--surface); }
.profile-head h1 { margin: 0; }
.profile-actions { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.menu-list .mi { display: flex; justify-content: space-between; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.menu-list .mi:last-child { border-bottom: 0; }
.price { font-family: var(--serif); font-size: 1.3rem; color: var(--gold); white-space: nowrap; }

/* Album */
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.album-grid .piece { position: relative; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.album-grid .piece img, .album-grid video { width: 100%; display: block; }
.locked-wall { position: relative; border-radius: 18px; overflow: hidden; min-height: 460px; background: var(--surface); }
.locked-wall .blur-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; filter: saturate(.8); min-height: 460px; align-content: start; }
.locked-wall .blur-grid img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.lock-panel { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(rgba(18,16,20,.35), rgba(18,16,20,.75)); padding: 20px; }
.lock-box { background: var(--surface); border: 1px solid var(--gold); border-radius: 18px; padding: 30px; max-width: 420px; text-align: center; box-shadow: var(--shadow); }
.no-save img, .no-save video { -webkit-user-drag: none; user-select: none; -webkit-touch-callout: none; }

/* Pass cards */
.pass { container-type: inline-size; position: relative; aspect-ratio: 1.586; border-radius: 18px; padding: 6.5% 7%; display: flex; flex-direction: column; color: #1b140a; overflow: hidden; box-shadow: 0 24px 50px -22px rgba(0,0,0,.7), inset 0 0 0 1px rgba(255,255,255,.25); background-size: cover; background-position: center; isolation: isolate; }
.pass::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.35) 45%, transparent 60%); transform: translateX(-120%); transition: transform 1.4s ease; z-index: 1; pointer-events: none; }
.pass:hover::after { transform: translateX(120%); }
.pass > * { position: relative; z-index: 2; }
.pass-basic { background-image: linear-gradient(135deg, #FBF6EE, #E6DACA); }
.pass-gold { background-image: linear-gradient(135deg, #F2DFA7 0%, #D4B26A 45%, #A47D33 100%); }
.pass-diamond { background-image: linear-gradient(135deg, #EAF5FA 0%, #A9CFE0 50%, #6F9DB4 100%); color: #0f2a36; }
.pass-premium { background-image: radial-gradient(circle at 80% 10%, #9A2944, #5A1426 55%, #2B0A13); color: var(--gold); box-shadow: 0 24px 50px -22px rgba(0,0,0,.8), inset 0 0 0 2px #D4B26A, inset 0 0 0 6px #5A1426, inset 0 0 0 7px rgba(212,178,106,.55); }
.pass.has-img { background-color: #222; }
.pass.has-img .pass-name, .pass.has-img .pass-code, .pass.has-img .pass-foot, .pass.has-img .pass-brand { text-shadow: 0 1px 8px rgba(0,0,0,.35); }
.pass-top { display: flex; justify-content: space-between; align-items: center; }
.pass-brand { font-family: var(--serif); font-size: clamp(.8rem, 6cqw, 1.4rem); font-weight: 600; letter-spacing: .04em; }
.pass-chip { width: 12cqw; height: 9cqw; border-radius: 6px; background: linear-gradient(135deg, #F4E3B0, #B99245); box-shadow: inset 0 0 0 1px rgba(0,0,0,.2); }
.pass-premium .pass-chip { background: linear-gradient(135deg, #F4E3B0, #D4B26A); }
.pass-name { font-family: var(--serif); font-size: 9.5cqw; margin-top: auto; line-height: 1; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; white-space: nowrap; }
.pass-name em { font-weight: 400; text-transform: none; letter-spacing: .02em; font-size: .8em; }
.pass-code { font-family: ui-monospace, Menlo, monospace; letter-spacing: .12em; font-size: 3.9cqw; opacity: .85; margin: 2.5cqw 0 3.5cqw; white-space: nowrap; }
.pass-foot { display: flex; justify-content: space-between; font-size: 3.7cqw; font-weight: 600; line-height: 1.25; }
.pass-foot small { display: block; font-size: 2.6cqw; text-transform: uppercase; letter-spacing: .16em; opacity: .7; color: inherit; }
.pass.dim { filter: grayscale(.4) brightness(.8); }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
@media (max-width: 1100px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .plans { grid-template-columns: 1fr; } }
.plan { background: var(--surface); border: 1px solid var(--line-soft); border-radius: 20px; padding: 18px 18px 24px; display: flex; flex-direction: column; gap: 14px; }
.plan.current { border-color: var(--gold); }
.plan.feature { border-color: var(--wine-hi); box-shadow: 0 0 0 1px var(--wine-hi); }
.plan h3 { margin: 6px 0 0; font-size: 1.6rem; }
.plan .tagline { color: var(--muted); font-size: .88rem; margin: 0; }
.plan .amount { font-family: var(--serif); font-size: 2.6rem; line-height: 1; }
.plan .amount s { font-size: 1.1rem; color: var(--faint); margin-left: 8px; }
.plan .per { font-size: .8rem; color: var(--muted); }
.plan ul { list-style: none; margin: 0; padding: 0; font-size: .88rem; flex: 1; }
.plan li { padding: 6px 0 6px 22px; position: relative; border-bottom: 1px solid var(--line-soft); }
.plan li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 9px; height: 5px; border-left: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold); transform: rotate(-45deg); }
.plan .quote { font-size: .8rem; padding: 10px 12px; background: var(--surface-2); border-radius: 10px; color: var(--muted); }
.compare td, .compare th { text-align: center; } .compare td:first-child, .compare th:first-child { text-align: left; }

/* Coins */
.packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px; }
.pack { background: var(--surface); border: 1px solid var(--line-soft); border-radius: 18px; padding: 24px 20px; text-align: center; position: relative; }
.pack:hover { border-color: var(--gold); }
.pack .big { font-family: var(--serif); font-size: 2.6rem; line-height: 1; display: flex; align-items: center; justify-content: center; gap: 10px; }
.pack .big .coin { width: 24px; height: 24px; }
.pack .bonus { color: var(--ok); font-size: .82rem; font-weight: 600; min-height: 1.4em; }
.pack .label { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); background: var(--gold); color: #1b140a; font-size: .66rem; text-transform: uppercase; letter-spacing: .14em; padding: 3px 10px; border-radius: 20px; font-weight: 700; }

/* Steps */
.steps { counter-reset: s; display: grid; gap: 18px; grid-template-columns: repeat(4, minmax(0,1fr)); }
.steps > div { counter-increment: s; padding: 22px; border-top: 1px solid var(--gold); }
.steps > div::before { content: "0" counter(s); font-family: var(--serif); font-size: 2.2rem; color: var(--gold); display: block; line-height: 1; margin-bottom: 12px; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Auth */
.auth { max-width: 460px; margin: 50px auto; }
.auth .card { padding: 32px; }
.tabs { display: flex; gap: 6px; background: var(--bg); border: 1px solid var(--line); border-radius: 30px; padding: 4px; margin-bottom: 22px; }
.tabs a, .tabs label { flex: 1; text-align: center; padding: 8px; border-radius: 30px; font-size: .85rem; color: var(--muted); cursor: pointer; margin: 0; }
.tabs .on, .tabs input:checked + span { background: var(--wine); color: #fff; }
.tabs input { display: none; }
.tabs label span { display: block; padding: 8px; border-radius: 30px; margin: -8px; }

/* Dashboard layout */
.dash { display: grid; grid-template-columns: 230px 1fr; gap: 30px; padding: 30px 0 60px; }
.dash-nav { display: flex; flex-direction: column; gap: 2px; }
.dash-nav a { padding: 10px 14px; border-radius: 10px; font-size: .9rem; color: var(--muted); display: flex; justify-content: space-between; }
.dash-nav a:hover { background: var(--surface); color: var(--text); }
.dash-nav a.on { background: var(--surface); color: var(--text); box-shadow: inset 2px 0 0 var(--gold); }
.dash-nav .n { background: var(--wine); color: #fff; border-radius: 10px; padding: 0 7px; font-size: .72rem; line-height: 18px; height: 18px; }
.dash-nav h5 { font-size: .66rem; text-transform: uppercase; letter-spacing: .16em; color: var(--faint); margin: 18px 14px 6px; font-weight: 600; }
.dash-main h1 { font-size: 2.2rem; }
@media (max-width: 860px) { .dash { grid-template-columns: 1fr; } .dash-nav { flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 6px; } .dash-nav a { white-space: nowrap; border: 1px solid var(--line); } .dash-nav h5 { display: none; } }

/* Chat */
.chat { display: grid; grid-template-columns: 300px 1fr; height: calc(100vh - 180px); min-height: 480px; border: 1px solid var(--line-soft); border-radius: 18px; overflow: hidden; background: var(--surface); margin: 24px 0 40px; }
.chat-list { border-right: 1px solid var(--line-soft); overflow-y: auto; }
.chat-list a { display: flex; gap: 10px; padding: 14px; border-bottom: 1px solid var(--line-soft); align-items: center; }
.chat-list a.on { background: var(--surface-2); box-shadow: inset 2px 0 0 var(--gold); }
.chat-list img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.chat-list .cl-meta { flex: 1; min-width: 0; }
.chat-list .cl-meta small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-main { display: flex; flex-direction: column; min-height: 0; }
.chat-head { padding: 14px 18px; border-bottom: 1px solid var(--line-soft); display: flex; align-items: center; gap: 10px; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 8px; background: var(--bg); }
.msg { max-width: 72%; padding: 10px 14px; border-radius: 16px; background: var(--surface-2); font-size: .92rem; word-wrap: break-word; align-self: flex-start; }
.msg.me { align-self: flex-end; background: var(--wine); color: #fff; }
.msg small { display: block; font-size: .68rem; opacity: .65; margin-top: 3px; }
.msg.tip { background: var(--gold-soft); border: 1px solid var(--gold); color: var(--text); align-self: center; text-align: center; }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line-soft); align-items: flex-end; }
.chat-form textarea { min-height: 44px; max-height: 140px; height: 44px; border-radius: 22px; padding: 11px 16px; }
@media (max-width: 760px) { .chat { grid-template-columns: 1fr; height: auto; } .chat-list { max-height: 200px; border-right: 0; border-bottom: 1px solid var(--line-soft); } .chat-msgs { min-height: 50vh; } }

/* Prose pages */
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; font-size: 1.9rem; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; } .prose li { margin-bottom: .4em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0 1.6em; font-size: .9rem; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 9px 8px; text-align: left; }

/* Footer */
.foot { border-top: 1px solid var(--line-soft); margin-top: 60px; padding: 48px 0 26px; background: var(--surface); }
.foot-in { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 28px; }
.foot h4 { font-size: .7rem; text-transform: uppercase; letter-spacing: .16em; color: var(--gold); margin: 6px 0 12px; }
.foot-in a:not(.logo) { display: block; font-size: .86rem; color: var(--muted); padding: 3px 0; }
.foot-brand p { color: var(--muted); font-size: .86rem; max-width: 330px; margin-top: 12px; }
.foot-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line-soft); margin-top: 32px; padding-top: 18px; font-size: .76rem; color: var(--faint); }
@media (max-width: 900px) { .foot-in { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* Admin */
.admin-top { background: var(--surface); border-bottom: 1px solid var(--line-soft); }
.mod-item { display: grid; grid-template-columns: 160px 1fr auto; gap: 18px; padding: 16px; border-bottom: 1px solid var(--line-soft); align-items: start; }
.mod-item img { width: 160px; height: 160px; object-fit: cover; border-radius: 8px; background: var(--surface-2); }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.thumbs img, .thumbs video { width: 120px; height: 120px; object-fit: cover; border-radius: 8px; background: var(--surface-2); }
@media (max-width: 700px) { .mod-item { grid-template-columns: 1fr; } }
.kv { display: grid; grid-template-columns: 160px 1fr; gap: 6px 14px; font-size: .9rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.inline-form { display: inline; }
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: none; }
