/* ═══════════════════════════════════════════════════════════
   TabHero Website — Light Borderless Theme
   ═══════════════════════════════════════════════════════════ */

:root {
  --bg: #fff;
  --surface: #f8f9fa;
  --border: #e5e7eb;
  --text: #1a1a2e;
  --muted: #6b7280;
  --accent: #6366f1;
  --accent-hover: #4f46e5;
  --green: #22c55e;
  --red: #ef4444;
  --radius: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* ─── Header ─── */
header {
  text-align: center;
  padding: 100px 20px 80px;
  position: relative;
}
.lang-switch {
  position: absolute;
  top: 20px;
  right: 24px;
}
.lang-switch select {
  padding: 6px 10px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
  outline: none;
}
header h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}
header p {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 480px;
  margin: 0 auto 24px;
}
.header-btns {
  display: flex;
  justify-content: center;
  gap: 12px;
}

/* ─── Sections ─── */
section {
  max-width: 960px;
  margin: 0 auto;
  padding: 80px 20px;
}
section h2 {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 40px;
  color: var(--text);
}

/* ─── Features Grid ─── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.card {
  padding: 28px 24px;
  text-align: center;
}
.card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}
.card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ─── Pricing ─── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.plan {
  padding: 32px 24px;
  text-align: center;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
}
.plan-top { flex: 1; }
.plan h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.plan .price {
  margin: 16px 0 4px;
  color: var(--text);
}
.plan .price .price-num {
  font-size: 2.5rem;
  font-weight: 700;
}
.plan .price .price-unit {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--muted);
}
.plan ul {
  list-style: none;
  text-align: left;
  margin: 24px 0 20px;
  padding: 0;
}
.plan ul li {
  padding: 5px 0;
  font-size: 0.88rem;
  color: var(--muted);
}
.plan ul li::before { content: '✓ '; color: var(--accent); font-weight: 600; }
.pro {
  background: var(--surface);
}

/* ─── Buttons ─── */
.btn {
  display: inline-block;
  padding: 12px 28px;
  background: var(--bg);
  color: var(--text);
  border: 1.5px solid var(--border);
  border-radius: 40px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s;
}
.btn:hover { background: var(--surface); }
.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn.primary:hover { background: var(--accent-hover); }
.btn.small { padding: 6px 14px; font-size: 0.85rem; }

/* ─── Login Page ─── */
.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
  background: var(--bg);
}
.login-container {
  padding: 40px;
  width: 100%;
  max-width: 400px;
}
.login-container h1 {
  text-align: center;
  margin-bottom: 24px;
  font-size: 1.8rem;
  color: var(--text);
}
.login-container h2 { font-size: 1.1rem; margin-bottom: 16px; }
.login-container input {
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 12px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 1rem;
  outline: none;
}
.login-container input:focus { border-color: var(--accent); }
.login-container .btn { width: 100%; margin-top: 8px; }
.login-container .switch {
  text-align: center;
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--muted);
}
.login-container .switch a { color: var(--accent); text-decoration: none; }
.login-container .error { color: var(--red); font-size: 0.9rem; margin-top: 8px; text-align: center; }

/* ─── License Card ─── */
.license-card {
  background: var(--surface);
  border-radius: 8px;
  padding: 20px;
  margin: 16px 0;
}
.license-card .label { color: var(--muted); font-size: 0.85rem; margin-bottom: 4px; }
.license-card .key {
  font-family: 'Courier New', monospace;
  font-size: 1.05rem;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
  word-break: break-all;
}
#pro-status { margin: 12px 0; }

/* ─── Footer ─── */
footer {
  text-align: center;
  padding: 60px 20px 40px;
  color: var(--muted);
  font-size: 0.85rem;
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  header { padding: 60px 20px 40px; }
  header h1 { font-size: 2rem; }
  .plan .price .price-num { font-size: 2rem; }
  section { padding: 40px 16px; }
  .pricing-grid { grid-template-columns: 1fr; }
}
