:root {
  color-scheme: dark;
  --gold: #be840a;
  --gold-light: #e6b749;
  --text: #f9fafb;
  --muted: #a4adbd;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  color: var(--text);
  background: radial-gradient(ellipse at 50% 12%, rgba(190, 132, 10, .07), transparent 52%),
    linear-gradient(135deg, #030712, #0b101a 48%, #000);
  font: 16px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold-light); text-underline-offset: 4px; }
a:hover { color: #f6d28b; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 5px; }

.skip-link { position: absolute; top: -100px; left: 16px; z-index: 1; padding: 8px 16px; background: #111827; }
.skip-link:focus { top: 10px; }

.site-header {
  width: 100%;
  min-height: 88px;
  padding: 22px max(24px, calc((100vw - 1200px) / 2));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  background: rgba(3, 7, 18, .6);
}

.meowcoin-brand { display: inline-flex; gap: 12px; align-items: center; color: #fff; text-decoration: none; font-size: 22px; font-weight: 700; letter-spacing: -.6px; }
.meowcoin-brand img { display: block; width: 42px; height: 40px; }
.product-name { font-size: 15px; font-weight: 650; text-decoration: none; color: #f9fafb; white-space: nowrap; }
.product-name span { color: var(--gold-light); }
.account-nav { display: flex; align-items: center; gap: 24px; }
.account-nav > a:first-child { color: var(--muted); font-size: 13px; text-decoration: none; }
.account-nav > a:first-child:hover { color: var(--gold-light); }

.page-content { flex: 1; width: 100%; padding: clamp(40px, 7vh, 76px) 20px; display: flex; align-items: flex-start; justify-content: center; }
.account-panel { width: 100%; max-width: 500px; border: 1px solid #2c3038; border-top: 2px solid var(--gold); border-radius: 14px; padding: 36px 38px; background: rgba(12, 16, 25, .95); box-shadow: 0 22px 65px rgba(0, 0, 0, .28); }
h1 { margin: 0 0 12px; font-size: 30px; line-height: 1.2; font-weight: 700; letter-spacing: -.9px; }
h2 { margin: 28px 0 12px; font-size: 19px; line-height: 1.3; }
ol { padding-left: 22px; color: var(--muted); font-size: 14px; }
li { margin-bottom: 12px; }
p { margin: 0 0 22px; color: var(--muted); font-size: 14px; line-height: 1.65; }
p:last-child { margin-bottom: 0; }
form { margin-top: 26px; }
label { display: block; margin: 0 0 20px; color: #e5e7eb; font-size: 13px; font-weight: 550; }
input { display: block; width: 100%; min-height: 48px; margin-top: 8px; padding: 11px 13px; border: 1px solid #374151; border-radius: 7px; background: #050912; color: #fff; font: inherit; font-size: 16px; transition: border-color .15s, box-shadow .15s; }
input:hover { border-color: #5a606c; }
input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(190, 132, 10, .18); }
input[type="hidden"] { display: none; }
button { display: block; width: 100%; min-height: 48px; margin-top: 6px; padding: 12px 20px; border: 0; border-radius: 7px; background: var(--gold); color: #0b0c10; font: inherit; font-size: 14px; font-weight: 750; cursor: pointer; transition: background .15s; }
button:hover { background: #d69b20; }
.secondary-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 16px; margin-top: 26px; font-size: 13px; }
.note { margin-top: 22px; font-size: 12px; line-height: 1.65; }
.error { color: #f5a6a6; }
code { display: block; max-width: 100%; padding: 12px; margin: 8px 0; border: 1px solid #303643; border-radius: 6px; background: #030712; color: #f6d28b; overflow-wrap: anywhere; font-size: 12px; }
.totp-qr { width: 244px; max-width: 100%; margin: 24px auto; background: #fff; }
.totp-qr svg { display: block; width: 100%; height: auto; }
.totp-secret { text-align: center; letter-spacing: .06em; }
.site-footer { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; padding: 20px 24px 28px; color: #8c95a7; font-size: 12px; }
.site-footer a { color: #a4adbd; text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); }

@media (max-width: 540px) {
  .site-header { min-height: 76px; padding: 18px 20px; gap: 14px; }
  .meowcoin-brand { gap: 9px; font-size: 19px; }
  .meowcoin-brand img { width: 34px; height: 33px; }
  .product-name { font-size: 12px; }
  .account-nav { flex-direction: column-reverse; align-items: flex-end; gap: 2px; }
  .account-nav > a:first-child { font-size: 11px; }
  .page-content { padding: 32px 16px; }
  .account-panel { padding: 28px 24px; border-radius: 12px; }
  h1 { font-size: 28px; }
  .secondary-links { flex-direction: column; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  input, button { transition: none; }
}
details { margin-top: 28px; border-top: 1px solid #303643; padding-top: 18px; } summary { cursor: pointer; color: #a4adbd; font-size: 13px; } details[open] summary { margin-bottom: 18px; } .device-code { font-size: 22px; letter-spacing: .12em; text-align: center; }
