@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --ink: #0a0a0a;
  --panel: #141414;
  --panel-2: #1c1c1c;
  --line: #2a2a2a;
  --teal: #19a7b8;
  --teal-dark: #0f7f8c;
  --text: #f2f4f5;
  --muted: #a7b0b5;
  --warn-bg: #10282c;
  --radius: 16px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--ink); color: var(--text); font-family: Inter, system-ui, sans-serif; font-size: 16px; line-height: 1.55; }
a { color: var(--teal); }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: 'Archivo Black', Inter, sans-serif; font-weight: 400; letter-spacing: .3px; margin: 0; line-height: 1.1; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.eyebrow { color: var(--teal); font-weight: 700; letter-spacing: 3px; font-size: 13px; text-transform: uppercase; margin: 0 0 6px; }
.muted { color: var(--muted); }
.hidden { display: none !important; }

/* header */
.top { background: #000; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; flex-wrap: wrap; }
.top img.logo { height: 48px; width: auto; }
.top .who { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--teal); color: #001; display: grid; place-items: center; font-weight: 700; }

/* buttons & inputs */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: 10px; border: 0; font: 600 15px Inter, sans-serif; cursor: pointer; text-decoration: none; }
.btn-teal { background: var(--teal); color: #001; }
.btn-teal:hover { background: #2ec0d1; }
.btn-ghost { background: transparent; color: var(--text); border: 1.5px solid #3a3a3a; }
.btn-ghost:hover { border-color: var(--teal); }
.btn[disabled] { opacity: .6; cursor: default; }
label.field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; }
textarea, input[type=text], select {
  width: 100%; background: #0f0f0f; color: var(--text); border: 1px solid #333; border-radius: 10px;
  padding: 12px; font: 15px Inter, sans-serif; min-height: 44px;
}
textarea { resize: vertical; }
textarea:focus, input:focus, select:focus, .btn:focus-visible, .chip:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

/* hero */
.hero { position: relative; min-height: 420px; display: flex; align-items: flex-end; background: #000 center/cover no-repeat; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.55) 55%, rgba(0,0,0,.15) 100%); }
.hero .wrap { position: relative; z-index: 1; padding-top: 72px; padding-bottom: 56px; }
.hero h1 { font-size: clamp(34px, 6vw, 60px); max-width: 680px; }
.hero p { max-width: 560px; color: #d9dee0; font-size: 18px; margin: 16px 0 24px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* sections & cards */
section.block { padding: 48px 0 8px; }
section.block h2 { font-size: clamp(26px, 4vw, 36px); margin-bottom: 8px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 20px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.card h3 { font-size: 22px; }
.saved { color: var(--teal); font-size: 14px; font-weight: 600; }

/* membership */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.stat { background: var(--panel-2); border-radius: 12px; padding: 12px; }
.stat .k { font-size: 12px; color: var(--muted); }
.stat .v { font-weight: 700; }
.pill { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 1px; padding: 3px 10px; border-radius: 999px; background: #123d24; color: #7ee0a3; }

/* rank */
.seg { display: inline-flex; gap: 4px; background: var(--panel-2); padding: 4px; border-radius: 12px; }
.seg button { border: 0; background: transparent; color: var(--muted); font: 600 14px Inter, sans-serif; padding: 8px 14px; border-radius: 9px; min-height: 40px; cursor: pointer; }
.seg button.on { background: var(--teal); color: #001; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid #333; background: #0f0f0f; color: var(--text); border-radius: 999px; padding: 8px 14px; min-height: 40px; font: 500 14px Inter, sans-serif; cursor: pointer; }
.chip.on { border-color: var(--teal); background: #0d2a2e; }
.swatch { width: 14px; height: 14px; border-radius: 3px; border: 1px solid #666; }
.belt { height: 44px; border-radius: 6px; display: flex; justify-content: flex-end; padding-right: 36px; border: 1px solid #333; }
.belt .tab { width: 100px; display: flex; gap: 6px; justify-content: center; padding: 6px 0; }
.belt .tab i { width: 6px; background: #fff; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--teal); margin-top: 2px; }

/* note + image */
.note { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); margin-top: 20px; }
.note .txt { background: var(--warn-bg); padding: 28px; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.note img { width: 100%; height: 100%; min-height: 240px; object-fit: cover; }
.banner { border-radius: var(--radius); overflow: hidden; margin-top: 20px; position: relative; }
.banner img { width: 100%; height: 240px; object-fit: cover; object-position: 70% center; }
.banner .cap { position: absolute; inset: 0 auto 0 0; width: min(420px, 60%); padding: 24px 28px; display: flex; flex-direction: column; justify-content: center; }
.banner .cap h3 { font-size: 26px; }

/* log */
.log { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); margin-top: 16px; overflow: hidden; }
.msgs { padding: 20px; display: flex; flex-direction: column; gap: 16px; max-height: 620px; overflow-y: auto; }
.msg { display: flex; gap: 12px; align-items: flex-start; }
.msg.me { flex-direction: row-reverse; }
.msg .av { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; background: #2a2a2a; }
.msg.staff .av { background: var(--teal); color: #001; }
.bubble { max-width: 640px; background: var(--panel-2); border-radius: 14px; padding: 12px 16px; }
.msg.me .bubble { background: #0e3a40; }
.bubble .meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.bubble .meta b { color: var(--text); font-size: 14px; }
.role { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 1px 8px; border-radius: 999px; background: #000; color: var(--teal); }
.bubble .text { white-space: pre-wrap; word-wrap: break-word; }
.composer { border-top: 1px solid var(--line); padding: 14px 20px; display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; background: #111; }
.composer textarea { flex: 1 1 280px; min-height: 48px; }
.composer select { width: auto; flex: 0 0 auto; }
.empty { color: var(--muted); text-align: center; padding: 28px 10px; }

/* login gate */
.gate { min-height: calc(100vh - 69px); display: grid; place-items: center; background: #000 center/cover no-repeat; position: relative; }
.gate::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.65); }
.gate .box { position: relative; z-index: 1; text-align: center; max-width: 520px; padding: 32px 24px; }
.gate h1 { font-size: clamp(30px, 5vw, 46px); margin-bottom: 14px; }

.err { background: #3a1414; border: 1px solid #6b2a2a; color: #ffd6d6; padding: 12px 16px; border-radius: 10px; margin: 16px 0; }
footer { color: var(--muted); font-size: 13px; text-align: center; padding: 40px 20px; }

/* staff dashboard */
.dash { display: flex; flex-wrap: wrap; gap: 20px; padding: 24px 0 40px; }
.dash .list { flex: 1 1 300px; max-width: 380px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; align-self: flex-start; }
.dash .list input { border-radius: 0; border: 0; border-bottom: 1px solid var(--line); }
.dash .rows { max-height: 70vh; overflow-y: auto; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; padding: 14px 16px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--text); text-align: left; cursor: pointer; font: 15px Inter, sans-serif; min-height: 56px; }
.row:hover, .row.on { background: var(--panel-2); }
.row small { color: var(--muted); display: block; font-size: 12px; }
.badge { background: var(--teal); color: #001; font-weight: 700; font-size: 12px; border-radius: 999px; padding: 2px 9px; }
.dash .main { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.facts .stat .v { font-weight: 500; white-space: pre-wrap; }
