/* GOOF developer portal: shared look (same tokens as goof.gg). */
@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@800&family=Rubik:wght@400;500;600;700&display=swap');

:root {
  --bg: #08080b; --panel: #111116; --card: #17171d; --card2: #1e1e26; --line: #272731;
  --text: #fff; --muted: #a9a9b8; --pink: #ff1f9c; --pink-hi: #ff52b5;
  --ok: #3ddc97; --no: #ff5a6a; --gold: #ffc83d;
  --radius: 16px; --gutter: 24px; --bar: 64px;
  --font: 'Rubik', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Baloo 2', 'Rubik', system-ui, sans-serif;
}
@media (max-width: 640px) { :root { --gutter: 16px; } }

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.5; overflow-x: hidden; }
a { color: var(--pink-hi); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.15; margin: 0 0 12px; }
h1 { font-size: clamp(32px, 6vw, 56px); }
h2 { font-size: clamp(24px, 4vw, 34px); }
h3 { font-size: 20px; }
p { margin: 0 0 12px; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; }
code { background: var(--card2); padding: 2px 6px; border-radius: 6px; }
pre { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px; overflow-x: auto; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.hidden { display: none !important; }

/* Layout */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.page { padding-top: 32px; padding-bottom: 64px; }
.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.page-head h1 { font-size: clamp(28px, 5vw, 40px); margin: 0; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid-2 { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 50; height: var(--bar); background: rgba(8, 8, 11, .88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.topbar .wrap { height: 100%; display: flex; align-items: center; gap: 20px; }
.wordmark { font-family: var(--display); font-weight: 800; font-size: 28px; color: var(--text); letter-spacing: .5px; display: flex; align-items: baseline; gap: 8px; }
.wordmark:hover { text-decoration: none; }
.wordmark b { color: var(--pink); font-weight: 800; }
.wordmark span { font-family: var(--font); font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.nav { display: flex; gap: 4px; flex: 1; min-width: 0; }
.nav a { color: var(--muted); font-weight: 500; padding: 8px 12px; border-radius: 10px; white-space: nowrap; }
.nav a:hover { color: var(--text); background: var(--card); text-decoration: none; }
.nav a.active { color: var(--text); background: var(--card2); }
.account { position: relative; margin-left: auto; }
.account-btn { display: flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); color: var(--text); border-radius: 999px; padding: 4px 12px 4px 4px; cursor: pointer; font: inherit; max-width: 220px; }
.account-btn img, .avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--pink); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; flex: none; object-fit: cover; }
.account-btn .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 6px; box-shadow: 0 12px 40px rgba(0, 0, 0, .5); }
.menu a, .menu button { display: block; width: 100%; text-align: left; padding: 10px 12px; border-radius: 8px; color: var(--text); background: none; border: 0; font: inherit; cursor: pointer; }
.menu a:hover, .menu button:hover { background: var(--card2); text-decoration: none; }
.menu .menu-email { padding: 8px 12px; color: var(--muted); font-size: 13px; border-bottom: 1px solid var(--line); margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); font-size: 24px; cursor: pointer; padding: 4px 8px; }
@media (max-width: 720px) {
  .topbar .wrap { gap: 10px; }
  .nav-toggle { display: block; order: 3; }
  .account { order: 2; }
  .account-btn .name { display: none; }
  .account-btn { padding: 4px; }
  .nav { display: none; position: absolute; top: var(--bar); left: 0; right: 0; flex-direction: column; background: var(--panel); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 12px; }
  .topbar.open .nav { display: flex; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600; font-size: 15px; padding: 10px 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--card2); color: var(--text); cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, opacity .15s; }
.btn:hover { background: var(--line); text-decoration: none; }
.btn:disabled, .btn.disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--pink); border-color: var(--pink); color: #fff; }
.btn-primary:hover { background: var(--pink-hi); border-color: var(--pink-hi); }
.btn-ghost { background: transparent; }
.btn-ghost:hover { background: var(--card); }
.btn-danger { background: transparent; border-color: var(--no); color: var(--no); }
.btn-danger:hover { background: rgba(255, 90, 106, .12); }
.btn-sm { padding: 6px 12px; font-size: 13px; border-radius: 10px; }
.btn-lg { padding: 14px 24px; font-size: 17px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn-google { background: #fff; color: #1f1f1f; border-color: #fff; }
.btn-google:hover { background: #eaeaea; }

/* Cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; min-width: 0; }
.card-link { display: block; color: var(--text); transition: border-color .15s, transform .15s; }
.card-link:hover { border-color: var(--pink); text-decoration: none; transform: translateY(-2px); }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.card-title { font-weight: 700; font-size: 18px; margin: 0; overflow: hidden; text-overflow: ellipsis; }
.card-meta { color: var(--muted); font-size: 14px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; }
.stat-label { color: var(--muted); font-size: 13px; font-weight: 500; }
.stat-value { font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1.2; }

/* Forms */
.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .label { font-size: 14px; font-weight: 600; color: var(--muted); }
.input, .select, .textarea { width: 100%; font: inherit; font-size: 15px; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; outline: none; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--pink); }
.textarea { min-height: 96px; resize: vertical; }
.hint { font-size: 13px; color: var(--muted); }
.error-text { font-size: 14px; color: var(--no); }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--pink); }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.copy-row { display: flex; gap: 8px; }
.copy-row .input { font-family: ui-monospace, Menlo, monospace; font-size: 13px; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table th { color: var(--muted); font-weight: 600; background: var(--panel); font-size: 13px; }
.table tr:last-child td { border-bottom: 0; }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* Tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 24px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { background: none; border: 0; border-bottom: 2px solid transparent; color: var(--muted); font: inherit; font-weight: 600; padding: 12px 14px; cursor: pointer; white-space: nowrap; }
.tab:hover { color: var(--text); text-decoration: none; }
.tab.active { color: var(--text); border-bottom-color: var(--pink); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Badges (statuses) */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--card2); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-draft { color: var(--muted); }
.badge-review, .badge-pending, .badge-in_review { color: var(--gold); border-color: rgba(255, 200, 61, .35); background: rgba(255, 200, 61, .08); }
.badge-live, .badge-approved, .badge-ok { color: var(--ok); border-color: rgba(61, 220, 151, .35); background: rgba(61, 220, 151, .08); }
.badge-rejected, .badge-suspended, .badge-error { color: var(--no); border-color: rgba(255, 90, 106, .35); background: rgba(255, 90, 106, .08); }
.badge-pink { color: var(--pink-hi); border-color: rgba(255, 31, 156, .35); background: rgba(255, 31, 156, .08); }

/* Empty states */
.empty { text-align: center; padding: 48px 20px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }
.empty h3 { color: var(--text); }
.empty .btn { margin-top: 12px; }

/* Dialog */
.dialog { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); color: var(--text); padding: 24px; width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow-y: auto; }
.dialog::backdrop { background: rgba(0, 0, 0, .7); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; flex-wrap: wrap; }

/* Toasts */
.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: calc(100vw - 32px); max-width: 420px; }
.toast { background: var(--card2); border: 1px solid var(--line); color: var(--text); padding: 12px 18px; border-radius: 12px; font-size: 14px; box-shadow: 0 8px 30px rgba(0, 0, 0, .5); animation: toast-in .2s ease-out; pointer-events: auto; text-align: center; }
.toast-ok { border-color: var(--ok); }
.toast-error { border-color: var(--no); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Landing */
.hero { padding: 72px 0 48px; }
.hero p.lead { font-size: clamp(17px, 2.4vw, 21px); color: var(--muted); max-width: 680px; margin-bottom: 28px; }
.hero h1 b { color: var(--pink); }
.section { padding: 40px 0; }
.step-num { width: 36px; height: 36px; border-radius: 50%; background: var(--pink); color: #fff; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.pill { display: inline-block; padding: 8px 16px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-weight: 600; }
.footer { border-top: 1px solid var(--line); padding: 24px 0; color: var(--muted); font-size: 14px; }

/* Auth */
.auth-box { max-width: 420px; margin: 48px auto; }
.spinner { width: 28px; height: 28px; border: 3px solid var(--line); border-top-color: var(--pink); border-radius: 50%; animation: spin .8s linear infinite; margin: 40px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
