.auth-modal { width: min(540px, calc(100vw - 28px)); max-height: calc(100vh - 40px); overflow: auto; padding: 28px; border: 1px solid rgba(217, 244, 91, .22); background: radial-gradient(circle at 30% 0%, rgba(217,244,91,.12), transparent 34%), linear-gradient(180deg, #111a12 0%, #07100b 100%); color: #f6fff2; box-shadow: 0 24px 80px rgba(0, 0, 0, .46); position: fixed; z-index: 70; top: 50%; left: 50%; transform: translate(-50%, -46%); opacity: 0; pointer-events: none; transition: .2s ease; }
.auth-modal.is-visible { transform: translate(-50%, -50%); opacity: 1; pointer-events: auto; }
.auth-modal h2 { margin: 0 0 8px; font-size: 27px; letter-spacing: 0; }
.auth-modal p { margin: 0 0 18px; color: #b9c8b9; font-size: 12px; line-height: 1.8; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 16px; border: 1px solid var(--line); }
.auth-tabs button { min-height: 42px; border: 0; background: transparent; color: #c4d1c4; font-weight: 800; cursor: pointer; }
.auth-tabs button.is-active { background: #f4f7ef; color: #08100b; }
.auth-form { display: grid; gap: 11px; }
.auth-form label { display: grid; gap: 6px; color: #b9c8b9; font-size: 10px; font-weight: 800; }
.auth-form input { min-height: 46px; padding: 0 13px; border: 1px solid rgba(217,244,91,.22); background: rgba(255,255,255,.06); color: #f6fff2; font-size: 13px; outline: 0; }
.auth-form input::placeholder { color: #8f9c90; opacity: 1; }
.auth-form input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(41, 209, 130, .16); }
.auth-error { min-height: 18px; color: #ff8d78; font-size: 10px; line-height: 1.6; }
.auth-code-row { display: grid; grid-template-columns: 1fr 128px; gap: 8px; }
.auth-code-row .secondary-button { min-height: 42px; justify-content: center; white-space: nowrap; }
.google-auth-button { min-height: 46px; margin-top: 2px; justify-content: center; border-radius: 999px; background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.04)); color: #f6fff2; border-color: rgba(255,255,255,.16); }
.google-auth-button:hover { border-color: rgba(217,244,91,.55); color: #f6fff2; }
.google-g { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; margin-right: 8px; background: #f7fff7; color: #1a73e8; font: 900 14px Arial, sans-serif; }
.auth-divider { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; color: #8fa18f; font-size: 10px; font-weight: 800; }
.auth-divider::before, .auth-divider::after { content: ""; height: 1px; background: rgba(217,244,91,.16); }
.auth-legal { display: none; color: #94a394; font-size: 10px; line-height: 1.7; text-align: center; }
@media (max-width: 560px) {
  .auth-code-row { grid-template-columns: 1fr; }
  .auth-modal { padding: 22px; }
}
.account-panel { width: min(420px, calc(100vw - 24px)); padding: 22px; border: 1px solid var(--line-strong); background: var(--surface); box-shadow: 0 18px 60px rgba(15, 19, 18, .18); position: fixed; z-index: 70; top: 72px; right: 22px; opacity: 0; pointer-events: none; transform: translateY(-8px); transition: .18s ease; }
.account-panel.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.account-panel h2 { margin: 0 0 4px; font-size: 18px; }
.account-panel p { margin: 0 0 16px; color: var(--muted); font-size: 10px; line-height: 1.7; }
.account-actions { display: grid; gap: 8px; }
.account-actions a { text-decoration: none; justify-content: center; }
.account-stat { margin-bottom: 14px; padding: 12px; border: 1px solid var(--line); background: var(--surface-2); display: grid; gap: 6px; font-size: 10px; }
.account-stat span { color: var(--muted); }
.admin-dashboard { display: grid; gap: 16px; }
.admin-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.admin-stat { padding: 16px; border: 1px solid var(--line); background: var(--surface); }
.admin-stat span { display: block; margin-bottom: 8px; color: var(--muted); font-size: 9px; }
.admin-stat strong { font: 800 25px "Roboto Mono", monospace; }
.admin-panel { border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.admin-panel header { min-height: 54px; padding: 0 16px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.admin-panel h2 { margin: 0; font-size: 16px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 10px; }
.admin-table th, .admin-table td { padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.admin-table th { color: var(--muted); font-size: 8px; text-transform: uppercase; }
.admin-table td strong { display: block; margin-bottom: 4px; }
.admin-table td span { color: var(--muted); }
.admin-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.mini-button { min-height: 28px; padding: 0 9px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); font-size: 8px; font-weight: 700; cursor: pointer; }
.mini-button:hover { border-color: var(--green); color: var(--green); }
.mini-button.is-danger:hover { border-color: #a6422d; color: #a6422d; }
.admin-log { padding: 14px 16px; color: var(--muted); font-size: 10px; white-space: pre-wrap; }

@media (max-width: 720px) {
  .account-panel { top: 62px; right: 10px; }
  .admin-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-panel { overflow-x: auto; }
  .admin-table { min-width: 720px; }
}
