:root {
  --bg: #0f1115;
  --surface: #181b21;
  --surface-border: rgba(255, 255, 255, 0.08);
  --text-main: #ffffff;
  --text-muted: #8b929e;
  --accent: #0088ff;
  --accent-plus: #af52de;
  --radius: 18px;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }

body {
  background-color: var(--bg);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  width: 100%;
  max-width: 440px;
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.logo-area { text-align: center; margin-bottom: 24px; }
.logo-icon { font-size: 28px; color: var(--accent-plus); margin-bottom: 4px; }
.logo-area h1 { font-size: 24px; font-weight: 700; }
.logo-area h1 span { color: var(--accent-plus); }

.subtitle { color: var(--text-muted); font-size: 14px; line-height: 1.5; text-align: center; margin-bottom: 24px; }

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-google { background: #ffffff; color: #111111; }
.btn-google:hover { filter: brightness(0.95); }

.btn-primary { background: var(--accent); color: #ffffff; }
.btn-primary:hover { filter: brightness(1.1); }

.btn-plus { background: linear-gradient(135deg, #af52de, #0088ff); color: #ffffff; }
.btn-plus:hover { filter: brightness(1.1); transform: translateY(-1px); }

.btn-secondary { background: rgba(255, 255, 255, 0.08); color: var(--text-main); }
.btn-secondary:hover { background: rgba(255, 255, 255, 0.12); }

.btn-text { background: transparent; border: none; color: var(--text-muted); font-size: 13px; cursor: pointer; margin-top: 20px; width: 100%; }
.btn-text:hover { color: var(--text-main); }

.divider { display: flex; align-items: center; margin: 20px 0; color: var(--surface-border); }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--surface-border); }
.divider span { padding: 0 10px; color: var(--text-muted); font-size: 12px; }

form { display: flex; flex-direction: column; gap: 10px; }
input {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--surface-border);
  color: #fff;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  outline: none;
}
input:focus { border-color: var(--accent); }

.msg { font-size: 13px; text-align: center; margin-top: 12px; }
.msg.success { color: #34c759; }
.msg.error { color: #ff3b30; }

.user-badge {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  padding: 10px 14px;
  border-radius: 12px;
  margin-bottom: 20px;
}
.user-email { font-size: 13px; color: var(--text-main); font-weight: 500; }
.badge { font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 20px; }
.badge-free { background: rgba(255, 255, 255, 0.1); color: var(--text-muted); }
.badge-plus { background: rgba(175, 82, 222, 0.2); color: var(--accent-plus); }

.plan-box {
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 20px;
  text-align: center;
}
.free-box { background: rgba(255, 255, 255, 0.02); border: 1px solid var(--surface-border); }
.free-box h3 { font-size: 16px; margin-bottom: 6px; }
.free-box p { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; line-height: 1.4; }

.plus-box { background: rgba(175, 82, 222, 0.06); border: 1px solid rgba(175, 82, 222, 0.3); }
.plus-box h3 { font-size: 16px; color: var(--accent-plus); margin-bottom: 6px; }
.plus-box p { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }

.pairing-status { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 12px; color: var(--text-muted); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #34c759; }

.spinner {
  width: 32px; height: 32px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 40px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }