/* Fonts are served from this site (no Google Fonts), so no visitor data goes to third parties */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/inter-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/inter-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Rajdhani'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/rajdhani-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Rajdhani'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/rajdhani-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Rajdhani'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/rajdhani-latin-700-normal.woff2') format('woff2'); }

/* Next Gen Productions: colours taken from the logo */
:root {
  --bg: #140732;
  --bg-2: #1b0d40;
  --panel: #21124d;
  --panel-2: #2a1860;
  --line: #3a2678;
  --text: #ece4fb;
  --muted: #a99bd0;
  --lav: #d3bdee;
  --lav-2: #ad7de1;
  --purple: #7042a5;
  --pink: #d73a91;
  --grad: linear-gradient(135deg, #ad7de1 0%, #d73a91 100%);
  --ok: #4fd1a5;
  --warn: #f2b84b;
  --err: #ff6b8a;
  --radius: 14px;
  --head: 'Rajdhani', 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.6 'Inter', 'Segoe UI', system-ui, sans-serif;
  min-height: 100vh; display: flex; flex-direction: column;
  background-image: radial-gradient(1200px 500px at 85% -10%, rgba(215,58,145,.12), transparent 60%), radial-gradient(900px 500px at -10% 10%, rgba(173,125,225,.10), transparent 60%);
  background-attachment: fixed;
}
main { flex: 1; }
a { color: var(--lav); text-decoration: none; }
a:hover { color: #fff; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; letter-spacing: .02em; line-height: 1.15; margin: 0 0 .5rem; }
h1 { font-size: 2.3rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.15rem; }
code { background: var(--bg-2); border: 1px solid var(--line); border-radius: 5px; padding: 0 .3em; font-size: .9em; }
.wrap { width: min(1220px, 100% - 2.5rem); margin-inline: auto; }
.section { padding: 2.2rem 0; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .62rem 1.15rem; border-radius: 10px; border: 1px solid transparent;
  font: 600 .95rem/1.2 'Inter', sans-serif; cursor: pointer; color: #fff; background: var(--panel-2);
  transition: transform .12s, box-shadow .2s, background .2s, border-color .2s; text-decoration: none;
}
.btn:hover { transform: translateY(-1px); color: #fff; }
.btn-primary { background: var(--grad); box-shadow: 0 6px 22px -8px rgba(215,58,145,.7); }
.btn-primary:hover { box-shadow: 0 10px 28px -8px rgba(215,58,145,.9); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--lav); }
.btn-ghost:hover { border-color: var(--lav-2); background: rgba(173,125,225,.08); }
.btn-discord { background: #5865f2; }
.btn-discord:hover { background: #4752c4; }
.btn-danger { background: transparent; border-color: rgba(255,107,138,.5); color: var(--err); }
.btn-danger:hover { background: rgba(255,107,138,.12); color: var(--err); }
.btn-lg { padding: .85rem 1.5rem; font-size: 1.02rem; }
.btn-sm { padding: .35rem .7rem; font-size: .82rem; border-radius: 8px; }
.btn-block { width: 100%; }
.icon-btn { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg-2); color: var(--lav); cursor: pointer; font-size: .95rem; }
.icon-btn:hover:not(:disabled) { border-color: var(--lav-2); }
.icon-btn:disabled { opacity: .35; cursor: default; }
.icon-btn.danger:hover { border-color: var(--err); color: var(--err); }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(20,7,50,.82); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(58,38,120,.7); }
.topbar-inner { display: flex; align-items: center; gap: 1.5rem; height: 70px; }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--lav); }
.brand-text { display: flex; flex-direction: column; font-family: var(--head); line-height: 1; }
.brand-text b { font-size: 1.35rem; letter-spacing: .06em; color: var(--lav); }
.brand-text small { font-size: .7rem; letter-spacing: .38em; color: var(--lav-2); margin-top: 2px; }
.mainnav { display: flex; align-items: center; gap: .3rem; margin-left: auto; }
.mainnav > a, .mainnav .dropdown-trigger { padding: .55rem .85rem; border-radius: 9px; color: var(--text); font-weight: 500; display: inline-flex; align-items: center; gap: .35rem; }
.mainnav > a:hover, .mainnav .dropdown:hover > .dropdown-trigger { background: rgba(173,125,225,.12); color: #fff; }
.mainnav a.active, .mainnav .dropdown.active > .dropdown-trigger { color: #fff; background: rgba(173,125,225,.16); }
.account { margin-left: .5rem; }
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 210px; padding: .45rem;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 40px -12px rgba(0,0,0,.6);
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: .15s;
}
.dropdown-right .dropdown-menu { left: auto; right: 0; }
.dropdown::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 10px; }
.dropdown:hover .dropdown-menu, .dropdown:focus-within .dropdown-menu, .dropdown.open .dropdown-menu { opacity: 1; visibility: visible; transform: none; }
.dropdown-menu a, .dropdown-menu button { display: block; width: 100%; text-align: left; padding: .5rem .75rem; border-radius: 8px; color: var(--text); background: none; border: 0; font: inherit; cursor: pointer; }
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--panel-2); color: #fff; }
.dropdown-menu form { margin: 0; border-top: 1px solid var(--line); margin-top: .3rem; padding-top: .3rem; }
.user-chip { display: flex; align-items: center; gap: .5rem; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: .25rem .8rem .25rem .25rem; color: var(--text); font: 500 .9rem 'Inter', sans-serif; cursor: pointer; }
.user-chip img { width: 30px; height: 30px; border-radius: 50%; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; cursor: pointer; padding: .5rem; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--lav); margin: 5px 0; border-radius: 2px; }

/* ---------- flash ---------- */
.flashes { margin-top: 1rem; }
.flash { padding: .8rem 1rem; border-radius: 10px; margin: .5rem 0; border: 1px solid; font-size: .93rem; }
.flash-success { background: rgba(79,209,165,.1); border-color: rgba(79,209,165,.45); color: #b8f3dc; }
.flash-error { background: rgba(255,107,138,.1); border-color: rgba(255,107,138,.45); color: #ffc6d2; }
.flash-warning { background: rgba(242,184,75,.1); border-color: rgba(242,184,75,.45); color: #ffe2a8; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 3rem 0 2.5rem; text-align: center; }
.hero-glow { position: absolute; inset: -40% 20% auto; height: 520px; background: radial-gradient(closest-side, rgba(173,125,225,.22), transparent); pointer-events: none; }
.hero-inner { position: relative; }
.hero-logo { width: min(440px, 80%); height: auto; filter: drop-shadow(0 18px 50px rgba(215,58,145,.25)); }
.hero-text { max-width: 640px; margin: .5rem auto 1.4rem; color: var(--muted); font-size: 1.1rem; }
.hero-actions { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }
.hero-stats { display: flex; justify-content: center; gap: 2.8rem; margin-top: 2.2rem; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats b { font: 700 2rem var(--head); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-stats span { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; }

/* ---------- sections / cards ---------- */
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; flex-wrap: wrap; }
.page-head h1 { margin: 0; display: flex; align-items: center; gap: .7rem; }
.crumbs { color: var(--muted); font-size: .85rem; margin-bottom: .4rem; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--lav); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.2rem; }
.card { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--text); transition: transform .18s, border-color .18s, box-shadow .18s; }
.card:hover { transform: translateY(-4px); border-color: var(--lav-2); box-shadow: 0 18px 40px -18px rgba(173,125,225,.55); color: var(--text); }
.card-img { position: relative; aspect-ratio: 16 / 10; background: var(--bg-2); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-img img { transform: scale(1.04); }
.card-noimg { display: grid; place-items: center; width: 100%; height: 100%; }
.card-noimg img { width: 38% !important; height: auto !important; object-fit: contain !important; opacity: .45; }
.price-tag { position: absolute; top: .7rem; right: .7rem; background: rgba(20,7,50,.85); border: 1px solid var(--line); padding: .2rem .6rem; border-radius: 999px; font: 700 .85rem var(--head); letter-spacing: .06em; }
.price-tag.free { background: var(--grad); border-color: transparent; }
.draft-tag { position: absolute; top: .7rem; left: .7rem; background: var(--warn); color: #2a1a00; padding: .15rem .55rem; border-radius: 6px; font: 700 .75rem var(--head); }
.card-body { padding: .9rem 1rem 1.1rem; }
.card-body h3 { margin: .15rem 0 .3rem; }
.card-body p { margin: 0; color: var(--muted); font-size: .88rem; }
.card-cat { display: inline-block; font: 600 .72rem 'Inter', sans-serif; text-transform: uppercase; letter-spacing: .12em; color: var(--lav-2); }
.empty { padding: 2.5rem; text-align: center; background: var(--panel); border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.4rem; }
.cta { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-top: 1.5rem; padding: 1.8rem 2rem; border-radius: 18px; background: linear-gradient(120deg, rgba(112,66,165,.45), rgba(215,58,145,.25)); border: 1px solid var(--line); }
.cta h2 { margin: 0 0 .25rem; }
.cta p { margin: 0; color: var(--lav); }

/* ---------- listings page ---------- */
.cat-pills { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.cat-pills a { padding: .4rem .95rem; border-radius: 999px; border: 1px solid var(--line); color: var(--lav); font-size: .9rem; }
.cat-pills a:hover { border-color: var(--lav-2); }
.cat-pills a.active { background: var(--grad); border-color: transparent; color: #fff; }
.filters { display: flex; gap: .6rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.filters input[type=search] { flex: 1; min-width: 200px; }

/* ---------- forms ---------- */
input[type=text], input[type=url], input[type=search], select, textarea {
  width: 100%; background: var(--bg-2); color: var(--text); border: 1px solid var(--line); border-radius: 10px;
  padding: .62rem .8rem; font: inherit; transition: border-color .15s, box-shadow .15s;
}
.filters select, .filters input { width: auto; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--lav-2); box-shadow: 0 0 0 3px rgba(173,125,225,.2); }
textarea { resize: vertical; min-height: 60px; }
.form label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 1rem; }
.form label small { font-weight: 400; color: var(--muted); margin-left: .3rem; }
.form label > input, .form label > textarea, .form label > select { margin-top: .35rem; font-weight: 400; }
.form label.check { display: flex; align-items: center; gap: .5rem; font-weight: 500; }
.form h2 { font-size: 1.2rem; margin-bottom: .9rem; }
.form .btn-block + .btn-block { margin-top: .55rem; }
.req { color: var(--pink); }
.hint { display: block; margin-top: .35rem; font-weight: 400; color: var(--muted); }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 4px; margin-bottom: 1rem; }
.seg label { margin: 0; text-align: center; padding: .45rem; border-radius: 7px; cursor: pointer; }
.seg input { display: none; }
.seg label:has(input:checked) { background: var(--grad); }
.dropzone { display: flex !important; align-items: center; justify-content: center; text-align: center; border: 2px dashed var(--line); border-radius: 12px; padding: 1.4rem; cursor: pointer; background: rgba(173,125,225,.04); transition: .15s; position: relative; }
.dropzone:hover, .dropzone.drag { border-color: var(--lav-2); background: rgba(173,125,225,.1); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone small { color: var(--muted); font-weight: 400; }
.small-zone { padding: 1rem; }
.upload-preview { display: flex; flex-wrap: wrap; gap: .5rem; margin: -.4rem 0 1rem; }
.upload-preview .pv { width: 84px; height: 60px; border-radius: 8px; overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); display: grid; place-items: center; font-size: .7rem; color: var(--muted); text-align: center; padding: 2px; word-break: break-all; }
.upload-preview .pv img { width: 100%; height: 100%; object-fit: cover; }
.upload-preview .pv.file { width: auto; padding: .3rem .7rem; height: auto; font-size: .85rem; }
.current-file { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .6rem .8rem; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line); margin-bottom: .8rem; font-size: .9rem; }
.current-file label { margin: 0 !important; }

/* ---------- listing detail ---------- */
.listing-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 2rem; align-items: start; margin-top: .6rem; }
.gallery-stage { position: relative; aspect-ratio: 16 / 9; background: #0c041f; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.slide { position: absolute; inset: 0; display: none; }
.slide.active { display: block; animation: fade .25s; }
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }
.slide img, .slide video { width: 100%; height: 100%; object-fit: contain; display: block; }
.slide img[data-zoom] { cursor: zoom-in; }
.slide iframe { width: 100%; height: 100%; border: 0; }
.slide-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem 1rem .7rem; background: linear-gradient(transparent, rgba(12,4,31,.9)); font-size: .9rem; pointer-events: none; }
.gal-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(211,189,238,.3); background: rgba(20,7,50,.7); color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer; display: grid; place-items: center; padding-bottom: 4px; transition: .15s; }
.gal-nav:hover { background: var(--purple); }
.gal-nav.prev { left: .8rem; } .gal-nav.next { right: .8rem; }
.gal-count { position: absolute; top: .8rem; right: .8rem; background: rgba(20,7,50,.75); padding: .15rem .6rem; border-radius: 999px; font-size: .8rem; }
.gallery-thumbs { display: flex; gap: .55rem; margin-top: .7rem; overflow-x: auto; padding-bottom: .3rem; }
.thumb { position: relative; flex: 0 0 104px; height: 66px; border-radius: 9px; overflow: hidden; border: 2px solid transparent; background: var(--bg-2); padding: 0; cursor: pointer; opacity: .6; transition: .15s; }
.thumb.active, .thumb:hover { opacity: 1; border-color: var(--lav-2); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .play, .m-thumb .play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; text-shadow: 0 0 8px #000; font-size: 1.1rem; }
.thumb-video { display: grid; place-items: center; height: 100%; color: var(--lav); font-size: 1.1rem; line-height: 1; }
.thumb-video small { font-size: .6rem; letter-spacing: .15em; }
.listing-side h1 { font-size: 2.1rem; margin: .25rem 0 .5rem; }
.summary { color: var(--muted); margin: 0 0 1.2rem; }
.buy-box { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; display: grid; gap: .65rem; }
.price-line { display: flex; align-items: baseline; justify-content: space-between; }
.price-big { font: 700 2rem var(--head); }
.price-big.free { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fav-btn .heart { color: var(--muted); transition: .15s; }
.fav-btn.on .heart { color: var(--pink); }
.meta { display: grid; grid-template-columns: auto 1fr; gap: .35rem 1rem; margin: 1.2rem 0 0; font-size: .9rem; }
.meta dt { color: var(--muted); }
.meta dd { margin: 0; }
.listing-desc { margin-top: 2.2rem; max-width: 860px; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(8,2,22,.95); display: grid; place-items: center; cursor: zoom-out; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 96vw; max-height: 94vh; object-fit: contain; }
.lightbox button { position: absolute; top: 1rem; right: 1.2rem; background: none; border: 0; color: #fff; font-size: 2.4rem; cursor: pointer; }

/* ---------- prose ---------- */
.prose h2, .prose h3, .prose h4 { margin: 1.4rem 0 .5rem; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose p { margin: 0 0 1rem; }
.prose ul { margin: 0 0 1rem; padding-left: 1.3rem; }
.prose li { margin: .2rem 0; }
.prose li::marker { color: var(--pink); }
.prose a { text-decoration: underline; text-decoration-color: rgba(211,189,238,.4); }
.prose > :last-child { margin-bottom: 0; }

/* ---------- dashboard / tables ---------- */
.profile-head { display: flex; align-items: center; gap: 1.2rem; margin-bottom: 2rem; flex-wrap: wrap; }
.profile-head img { width: 72px; height: 72px; border-radius: 50%; border: 3px solid var(--lav-2); }
.profile-head h1 { font-size: 1.9rem; margin: 0; }
.profile-head p { margin: 0; }
.profile-head .btn { margin-left: auto; }
.table-wrap { padding: 0; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font: 600 .75rem 'Inter', sans-serif; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); padding: .8rem 1rem; border-bottom: 1px solid var(--line); }
.table td { padding: .7rem 1rem; border-bottom: 1px solid rgba(58,38,120,.5); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: rgba(173,125,225,.05); }
.t-thumb { width: 72px; }
.t-thumb img { width: 64px; height: 40px; object-fit: cover; border-radius: 6px; display: block; }
.user-cell { display: flex; align-items: center; gap: .5rem; }
.user-cell img { width: 24px; height: 24px; border-radius: 50%; }
.status { display: inline-block; font: 700 .72rem 'Inter', sans-serif; text-transform: uppercase; letter-spacing: .08em; padding: .2rem .55rem; border-radius: 6px; vertical-align: middle; }
.status-published { background: rgba(79,209,165,.15); color: var(--ok); }
.status-draft { background: rgba(242,184,75,.15); color: var(--warn); }

/* ---------- admin ---------- */
.admin-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: .6rem .7rem .6rem 1rem; margin-bottom: 1.6rem; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.admin-title { font: 700 1.1rem var(--head); display: flex; align-items: center; gap: .6rem; }
.badge { background: var(--grad); color: #fff; font: 700 .7rem 'Inter', sans-serif; letter-spacing: .12em; padding: .2rem .5rem; border-radius: 6px; }
.admin-nav, .tabs { display: flex; gap: .3rem; flex-wrap: wrap; }
.admin-nav a, .tabs a { padding: .45rem .85rem; border-radius: 9px; color: var(--lav); font-weight: 500; font-size: .92rem; }
.admin-nav a:hover, .tabs a:hover { background: rgba(173,125,225,.1); }
.admin-nav a.active, .tabs a.active { background: var(--panel-2); color: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.6rem; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; }
.stat b { display: block; font: 700 1.9rem var(--head); }
.stat span { color: var(--muted); font-size: .82rem; }
.edit-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.4rem; align-items: start; }
.edit-main, .edit-side { display: grid; gap: 1.4rem; }
.sticky { position: sticky; top: 86px; z-index: 10; box-shadow: 0 14px 30px -10px rgba(8,2,22,.9); }
.media-list { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .5rem; }
.media-list li { display: flex; align-items: center; gap: .8rem; padding: .5rem; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; }
.media-list li.dragging { opacity: .4; }
.media-list li.over { border-color: var(--lav-2); }
.media-list li:first-child { border-color: var(--purple); }
.media-list li:first-child .m-type::after { content: ' · COVER'; color: var(--pink); }
.drag { cursor: grab; color: var(--muted); letter-spacing: -2px; padding: 0 .2rem; }
.m-thumb { position: relative; width: 96px; height: 60px; flex: 0 0 96px; border-radius: 7px; overflow: hidden; background: #0c041f; }
.m-thumb img, .m-thumb video { width: 100%; height: 100%; object-fit: cover; }
.m-info { flex: 1; display: grid; gap: .3rem; min-width: 0; }
.m-type { font: 600 .7rem 'Inter', sans-serif; text-transform: uppercase; letter-spacing: .1em; color: var(--lav-2); }
.m-info input { padding: .4rem .6rem; font-size: .88rem; }
.m-actions { display: flex; gap: .3rem; }
.danger-zone { display: flex; gap: .8rem; justify-content: flex-end; margin-top: 1.4rem; padding-top: 1.4rem; border-top: 1px solid var(--line); flex-wrap: wrap; }
.danger-zone form { margin: 0; }
.cat-row { display: flex; align-items: center; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid rgba(58,38,120,.5); }
.cat-row:last-child { border-bottom: 0; }
.cat-rename { display: flex; gap: .5rem; flex: 1; margin: 0; }
.cat-rename input { max-width: 320px; }
.cat-actions { display: flex; gap: .3rem; margin: 0; }
.cat-new { padding-top: 1rem; }
.cat-new input { max-width: 320px; }
.saving-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(8,2,22,.8); display: grid; place-items: center; text-align: center; }
.saving-overlay[hidden] { display: none; }
.spinner { width: 46px; height: 46px; margin: 0 auto 1rem; border-radius: 50%; border: 4px solid var(--line); border-top-color: var(--pink); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg) } }

/* ---------- contact form ---------- */
.contact-form { margin-top: 1.5rem; }
.contact-form h2 { margin-bottom: .2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
input[type=email] { width: 100%; background: var(--bg-2); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: .62rem .8rem; font: inherit; }
input:disabled { opacity: .7; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sent-box { text-align: center; padding: 1rem 0; }
.sent-icon { width: 56px; height: 56px; margin: 0 auto .8rem; border-radius: 50%; background: var(--grad); display: grid; place-items: center; font-size: 1.6rem; }
.admin-nav .count { background: var(--pink); color: #fff; border-radius: 999px; font-size: .72rem; padding: .05rem .45rem; margin-left: .2rem; }
.msg { margin-bottom: 1rem; }
.msg-head { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; margin-bottom: .6rem; }
.msg-head .type { font: 700 .72rem 'Inter', sans-serif; text-transform: uppercase; letter-spacing: .1em; padding: .2rem .55rem; border-radius: 6px; background: var(--panel-2); color: var(--lav); }
.msg-head .type.Commission { background: rgba(215,58,145,.2); color: #ffb3dc; }
.msg-head .type.Support { background: rgba(242,184,75,.15); color: var(--warn); }
.msg-body { white-space: pre-wrap; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: .8rem 1rem; margin: 0 0 .8rem; font-size: .93rem; }
.msg-meta { display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; font-size: .85rem; color: var(--muted); }
.msg-meta b { color: var(--text); font-weight: 500; }
.msg-actions { display: flex; gap: .5rem; margin-top: .8rem; flex-wrap: wrap; }
.msg-actions form { margin: 0; }
.msg.handled { opacity: .7; }
@media (max-width: 700px) { .form-row { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.footer { margin-top: 3rem; border-top: 1px solid var(--line); background: rgba(12,4,31,.5); }
.footer-inner { display: flex; align-items: center; gap: 2rem; padding: 1.8rem 0; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: .7rem; }
.footer-brand small { color: var(--muted); }
.footer nav { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.footer nav a { color: var(--muted); }
.footer nav a:hover { color: var(--lav); }
.copy { color: var(--muted); width: 100%; font-size: .8rem; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .listing-layout, .edit-grid { grid-template-columns: minmax(0, 1fr); }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .sticky { position: static; }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .mainnav { display: none; position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--bg); border-bottom: 1px solid var(--line); padding: .8rem 1.2rem 1.2rem; }
  .nav-open .mainnav { display: flex; }
  .mainnav .dropdown-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: none; padding: 0 0 0 1rem; display: none; }
  .mainnav .dropdown.open .dropdown-menu { display: block; }
  .account { margin-left: 0; }
  .user-chip span, .btn-discord.btn:not(.btn-lg) { font-size: 0; gap: 0; }
  .btn-discord.btn:not(.btn-lg) { padding: .6rem .7rem; }
  h1 { font-size: 1.9rem; }
  .hero-stats { gap: 1.6rem; }
}

[data-confirm].armed { background: var(--err) !important; border-color: var(--err) !important; color: #fff !important; width: auto; }
.icon-btn.armed { font-size: .7rem; padding: 0 .4rem; }

.checklist { background: rgba(242,184,75,.08); border: 1px solid rgba(242,184,75,.4); border-radius: 10px; padding: .7rem .9rem; margin-bottom: .8rem; font-size: .88rem; color: #ffe2a8; }
.checklist ul { margin: .35rem 0 0; padding-left: 1.1rem; }
.checklist.ready { background: rgba(79,209,165,.08); border-color: rgba(79,209,165,.4); color: #b8f3dc; font-weight: 600; }

.field-label { font-weight: 600; font-size: .9rem; margin-bottom: .45rem; }
.field-label small { font-weight: 400; color: var(--muted); margin-left: .3rem; }
.chip-picks { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.form label.chip-pick { margin: 0; font-weight: 500; cursor: pointer; }
.chip-pick input { display: none; }
.chip-pick span { display: inline-block; padding: .35rem .75rem; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-2); font-size: .85rem; color: var(--lav); transition: .15s; }
.chip-pick span:hover { border-color: var(--lav-2); }
.chip-pick input:checked + span { background: var(--grad); border-color: transparent; color: #fff; }
.chip-pick input:checked + span::before { content: '✓ '; }
.cat-chips { display: flex; flex-wrap: wrap; gap: .3rem .9rem; }
.cat-panel { margin-bottom: 1.6rem; padding: 1rem 1.2rem; }
.cat-panel-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: .7rem; }
.cat-panel-head h2 { font-size: 1.15rem; margin: 0; }
.cat-chip-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.cat-chip { display: inline-flex; align-items: center; gap: .45rem; margin: 0; padding: .25rem .35rem .25rem .8rem; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-2); font-size: .88rem; }
.cat-chip a { color: var(--text); }
.cat-chip small { color: var(--muted); font-size: .75rem; }
.cat-chip button { border: 0; background: none; color: var(--muted); cursor: pointer; width: 22px; height: 22px; border-radius: 50%; font-size: .75rem; }
.cat-chip button:hover { color: var(--err); background: rgba(255,107,138,.12); }
.cat-chip button.armed { width: auto; border-radius: 999px; padding: 0 .5rem; }
.cat-add { display: inline-flex; gap: .4rem; margin: 0 0 0 auto; }
.cat-add input { width: 260px; padding: .35rem .7rem; font-size: .88rem; }

/* ---------- conversations ---------- */
.thread { display: grid; gap: .8rem; margin: 1rem 0; }
.bubble { max-width: 85%; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: .8rem 1rem; }
.bubble.staff { justify-self: end; background: linear-gradient(135deg, rgba(112,66,165,.45), rgba(215,58,145,.22)); border-color: rgba(173,125,225,.5); }
.bubble-head { display: flex; gap: .5rem; align-items: baseline; flex-wrap: wrap; margin-bottom: .35rem; font-size: .88rem; }
.bubble-body { white-space: pre-wrap; font-size: .95rem; }
.dm { font-size: .72rem; font-weight: 600; padding: .05rem .45rem; border-radius: 5px; }
.dm-sent { background: rgba(79,209,165,.15); color: var(--ok); }
.dm-failed { background: rgba(255,107,138,.15); color: var(--err); }
.dm-off { background: var(--bg-2); color: var(--muted); }
.type-pill { display: inline-block; font: 700 .7rem 'Inter', sans-serif; text-transform: uppercase; letter-spacing: .1em; padding: .2rem .55rem; border-radius: 6px; background: var(--panel-2); color: var(--lav); vertical-align: middle; }
.type-pill.Commission { background: rgba(215,58,145,.2); color: #ffb3dc; }
.type-pill.Support { background: rgba(242,184,75,.15); color: var(--warn); }
.status:not([class*=status-]) { background: var(--bg-2); color: var(--muted); }

/* ---------- Discord bot dashboard ---------- */
.bot-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.bot-ident { display: flex; align-items: center; gap: .8rem; }
.bot-ident img, .bot-avatar-ph { width: 48px; height: 48px; border-radius: 50%; background: var(--panel-2); display: grid; place-items: center; font-size: 1.4rem; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: .3rem; vertical-align: middle; }
.dot-on { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.dot-wait { background: var(--warn); }
.dot-off { background: var(--err); }
.steps { margin: .4rem 0 0; padding-left: 1.2rem; }
.steps li { margin: .35rem 0; }
.cmd-list { list-style: none; padding: 0; margin: .5rem 0 0; display: grid; gap: .45rem; }
.tips { padding-left: 1.1rem; margin: .3rem 0 0; }
.tips li { margin: .4rem 0; }
.checks { display: grid; gap: .2rem; margin-bottom: .8rem; }
.checks label.check { margin: 0 !important; }
.color-input { width: 100%; height: 42px; padding: 3px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; margin-top: .35rem; }
.role-row { display: grid; grid-template-columns: 1.4fr 1.2fr 70px 120px 32px; gap: .45rem; margin-bottom: .45rem; align-items: center; }
.role-row select, .role-row input { padding: .5rem .6rem; font-size: .88rem; }
.emoji-input { text-align: center; }
.form-row > input { margin-bottom: .55rem; }
/* Discord-style preview */
.dc-preview { background: #313338; border-radius: 10px; padding: .9rem .8rem; font: 15px/1.375 'Inter', 'Segoe UI', sans-serif; color: #dbdee1; }
.dc-msg { display: flex; gap: .75rem; }
.dc-av { width: 40px; height: 40px; border-radius: 50%; background: #1e1f22; flex: 0 0 40px; }
.dc-body { min-width: 0; flex: 1; }
.dc-name { font-weight: 600; color: #f2f3f5; font-size: .95rem; }
.dc-bot { background: #5865f2; color: #fff; font-size: .62rem; padding: .05rem .3rem; border-radius: 3px; vertical-align: middle; }
.dc-time { color: #949ba4; font-size: .72rem; font-weight: 400; margin-left: .2rem; }
.dc-content { margin: .15rem 0 .3rem; font-size: .92rem; }
.dc-ping { background: rgba(88,101,242,.3); color: #c9cdfb; border-radius: 3px; padding: 0 2px; }
.dc-embed { display: flex; gap: .8rem; margin-top: .3rem; background: #2b2d31; border-left: 4px solid; border-radius: 4px; padding: .55rem .8rem .7rem; max-width: 100%; }
.dc-embed-main { min-width: 0; flex: 1; }
.dc-author { display: flex; align-items: center; gap: .4rem; font-size: .8rem; font-weight: 600; color: #f2f3f5; margin: .2rem 0 .3rem; }
.dc-author img { width: 22px; height: 22px; border-radius: 50%; }
.dc-title { font-weight: 700; color: #f2f3f5; font-size: .95rem; margin: .2rem 0; }
.dc-title.link { color: #00a8fc; }
.dc-desc { font-size: .85rem; margin-top: .2rem; word-wrap: break-word; }
.dc-desc a { color: #00a8fc; }
.dc-desc .h { display: block; font-size: 1rem; margin-top: .3rem; }
.dc-image { display: block; max-width: 100%; border-radius: 4px; margin-top: .6rem; }
.dc-thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 4px; }
.dc-footer { font-size: .72rem; color: #b5bac1; margin-top: .5rem; }
.dc-buttons { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .45rem; }
.dc-btn { background: #4e5058; color: #fff; font-size: .82rem; font-weight: 500; padding: .3rem .8rem; border-radius: 4px; }
@media (max-width: 700px) { .role-row { grid-template-columns: 1fr 1fr; } }
.form input[type=file] { display: block; width: 100%; margin-top: .35rem; padding: .5rem; background: var(--bg-2); border: 1px dashed var(--line); border-radius: 10px; color: var(--muted); font: inherit; font-size: .85rem; cursor: pointer; }
.form input[type=file]::file-selector-button { background: var(--panel-2); color: var(--text); border: 1px solid var(--line); border-radius: 7px; padding: .3rem .7rem; margin-right: .6rem; cursor: pointer; font: inherit; }

.join-banner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1rem 1.2rem; margin-bottom: 1.6rem; border-radius: 14px; background: linear-gradient(120deg, rgba(88,101,242,.25), rgba(173,125,225,.12)); border: 1px solid rgba(88,101,242,.5); }
.contact-form .join-banner { margin: .6rem 0 1rem; }

/* ---------- stats ---------- */
.stat-row-6 { grid-template-columns: repeat(6, 1fr); }
.stat-row-6 .stat b { font-size: 1.6rem; }
.chart-panel { margin-bottom: 1.6rem; }
.chart-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: .6rem; }
.chart-head h2 { margin: 0; font-size: 1.2rem; }
.legend { display: flex; gap: 1rem; font-size: .85rem; color: var(--muted); }
.legend i, .chart-tip i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: .35rem; vertical-align: -1px; }
.chart svg { display: block; width: 100%; height: auto; }
.chart .ax { fill: var(--muted); font-size: 11px; font-family: 'Inter', sans-serif; }
.chart .endlabel { fill: var(--text); font-size: 12px; font-family: 'Inter', sans-serif; }
.chart-tip { position: absolute; pointer-events: none; background: #120632; border: 1px solid var(--line); border-radius: 9px; padding: .5rem .7rem; font-size: .82rem; min-width: 140px; box-shadow: 0 10px 24px -8px rgba(0,0,0,.7); }
.chart-tip div { display: flex; align-items: center; gap: .1rem; color: var(--muted); }
.chart-tip span { margin-left: auto; padding-left: 1rem; color: var(--text); font-weight: 600; }
.chart-table { margin-top: .6rem; font-size: .85rem; }
.chart-table summary { cursor: pointer; color: var(--lav); }
.chart-table table { margin-top: .5rem; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.minibar { height: 4px; background: var(--bg-2); border-radius: 4px; margin-top: .3rem; max-width: 260px; }
.minibar i { display: block; height: 100%; background: #a07bdc; border-radius: 4px; }
@media (max-width: 1100px) { .stat-row-6 { grid-template-columns: repeat(3, 1fr); } }

.alert-users { display: grid; gap: .4rem; margin-bottom: .8rem; }
.alert-user { display: flex; align-items: center; gap: .55rem; margin: 0; padding: .35rem .4rem .35rem .5rem; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; font-size: .9rem; }
.alert-user img { width: 26px; height: 26px; border-radius: 50%; }
.alert-user span { flex: 1; }

.copy a { color: var(--muted); text-decoration: underline; text-decoration-color: rgba(169,155,208,.4); }
.buy-box small.center { text-align: center; display: block; }
