:root { --gold: #c9a227; --bg: #0b0b0c; --panel: #17171a; --line: #2a2a2e; --text: #f2f2f2; --muted: #a7a7ad; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
.topbar { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--bg); z-index: 5; }
.brand { font-weight: 900; letter-spacing: 1px; }
.crown { display: inline-block; background: var(--gold); color: #111; border-radius: 8px; padding: 4px 8px; margin-right: 8px; }
.topnav { display: flex; gap: 8px; flex-wrap: wrap; }
.wrap { max-width: 1060px; margin: 0 auto; padding: 20px; }
.hero h1 { font-size: 44px; line-height: 1.05; margin: 10px 0; }
.gold { color: var(--gold); }
.lede { color: var(--muted); max-width: 720px; }
.hero-stats { display: flex; gap: 16px; margin: 16px 0 30px; }
.stat b { display: block; font-size: 22px; color: var(--gold); }
.stat span { color: var(--muted); font-size: 13px; }
h2 { margin-top: 34px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px; text-align: center; }
.tile { width: 72px; height: 72px; margin: 0 auto 10px; border-radius: 16px; background: linear-gradient(135deg, #c9a227, #7a5f0e); color: #111; font-weight: 900; font-size: 26px; display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile.wordmark span { font-size: 15px; line-height: 1.15; text-align: center; padding: 0 6px; }
.card h3 { margin: 6px 0 12px; font-size: 16px; }
.btn { border: 0; border-radius: 10px; padding: 10px 16px; cursor: pointer; font-weight: 700; }
.btn-gold { background: var(--gold); color: #111; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.foot { color: var(--muted); margin: 40px 0 80px; font-size: 13px; }
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.65); display: flex; align-items: flex-start; justify-content: center; padding: 30px 12px; z-index: 20; overflow-y: auto; }
.modal.hidden { display: none; }
.modal-box { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 22px; width: 100%; max-width: 520px; position: relative; }
.modal-x { position: absolute; top: 10px; right: 12px; background: none; border: 0; color: var(--muted); font-size: 18px; cursor: pointer; }
label { display: block; margin: 12px 0; color: var(--muted); font-size: 14px; }
input[type="text"], input[type="number"] { display: block; width: 100%; margin-top: 6px; padding: 11px; border-radius: 10px; border: 1px solid var(--line); background: #101012; color: var(--text); }
.msg { color: var(--gold); min-height: 20px; }
.tabs { display: flex; gap: 8px; margin: 12px 0; }
.tab { background: #101012; color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px; cursor: pointer; }
.tab.active { border-color: var(--gold); color: var(--gold); }
.tabpane.hidden { display: none; }
.paymethod { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin: 8px 0; display: flex; justify-content: space-between; align-items: center; }
.paymethod.locked { opacity: .55; }
.badge { font-size: 12px; border-radius: 999px; padding: 3px 9px; }
.badge.ok { background: #1d4d2b; color: #b6f3c9; }
.badge.lock { background: #3a3a3e; color: #ccc; }
.chat-fab { position: fixed; right: 18px; bottom: 18px; z-index: 15; background: var(--gold); color: #111; border: 0; border-radius: 999px; padding: 14px 20px; font-weight: 800; cursor: pointer; box-shadow: 0 6px 24px rgba(0,0,0,.5); }
.chat-panel { position: fixed; right: 18px; bottom: 76px; z-index: 16; width: 340px; max-width: calc(100vw - 36px); background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.chat-panel.hidden { display: none; }
.chat-head { background: var(--gold); color: #111; font-weight: 800; padding: 12px 14px; display: flex; justify-content: space-between; }
.chat-head button { background: none; border: 0; cursor: pointer; font-size: 16px; }
.chat-msgs { height: 260px; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.bubble { max-width: 85%; padding: 9px 12px; border-radius: 12px; font-size: 14px; }
.bubble.me { align-self: flex-end; background: #2a2a2e; }
.bubble.them { align-self: flex-start; background: #3a2f05; border: 1px solid var(--gold); }
.chat-form { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.chat-form input { width: 100%; padding: 10px; border-radius: 10px; border: 1px solid var(--line); background: #101012; color: var(--text); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #222; border: 1px solid var(--gold); padding: 10px 16px; border-radius: 999px; display: none; z-index: 30; }
.row { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin: 10px 0; }
.mono { font-family: ui-monospace, monospace; }
