:root {
  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --accent-light: rgba(79,70,229,0.08);
  --accent-mid: rgba(79,70,229,0.14);
  --text: #1e293b;
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-faint: #94a3b8;
  --bg: #f8fafc;
  --bg-card: #ffffff;
  --bg-subtle: #f1f5f9;
  --border: #e2e8f0;
  --border-hover: #c7d2fe;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --green: #059669;
  --green-bg: rgba(5,150,105,0.10);
  --green-border: #34d399;
  --red: #dc2626;
  --red-bg: rgba(220,38,38,0.08);
  --red-border: #fca5a5;
  --orange: #d97706;
  --orange-bg: rgba(217,119,6,0.10);
  --max-w: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

.nav, nav { background: var(--bg-card); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.nav-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; height: 64px; display: flex; align-items: center; gap: 8px; }
.nav-logo { font-size: 20px; font-weight: 700; color: var(--accent); letter-spacing: -0.5px; display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.nav-logo span { color: var(--text); }
.nav-logo img { border-radius: 6px; }
.nav-links { display: flex; gap: 4px; list-style: none; margin-left: auto; align-items: center; }
.nav-link { padding: 8px 14px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--text-muted); transition: background 0.15s, color 0.15s; white-space: nowrap; }
.nav-link:hover { background: var(--bg-subtle); color: var(--text); }
.nav-link.active { background: #eef2ff; color: var(--accent); }
.nav-btn { background: var(--accent) !important; color: #fff !important; padding: 8px 20px; border-radius: 30px; font-weight: 600; }
.nav-btn:hover { background: var(--accent-hover) !important; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 6px; margin-left: auto; }
.hamburger span { width: 26px; height: 2px; background: var(--text-faint); border-radius: 4px; transition: 0.3s; }
@media(max-width: 720px) {
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg-card); border-bottom: 1px solid var(--border); padding: 8px 0; box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
  .nav-links.open { display: flex; }
  .nav-links a, .nav-links li a { padding: 14px 24px; font-size: 1rem; }
  .hamburger { display: flex; }
}

.btn { display: inline-block; padding: 12px 24px; border-radius: 10px; font-size: 15px; font-weight: 600; cursor: pointer; border: none; text-align: center; transition: background 0.15s, opacity 0.15s; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: var(--bg-subtle); color: var(--text-secondary); border: 1.5px solid var(--border); }
.btn-secondary:hover { background: var(--border); }
.btn-outline { background: transparent; border: 1.5px solid var(--accent); color: var(--accent); }
.btn-outline:hover { background: #eef2ff; }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { opacity: 0.88; }
.btn-full { width: 100%; }
.btn-round { border-radius: 40px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; }
.card:hover { box-shadow: 0 4px 20px rgba(15,23,42,0.08); }

.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; }
.form-input, input[type="text"], input[type="email"], input[type="password"], textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 10px; font-size: 15px; color: var(--text); background: var(--bg); outline: none; transition: border-color 0.15s, box-shadow 0.15s; font-family: inherit; }
.form-input:focus, input[type="text"]:focus, input[type="email"]:focus, input[type="password"]:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-light); background: var(--bg-card); }
select.sel, select { padding: 12px 36px 12px 14px; border: 1.5px solid var(--border); border-radius: 10px; font-size: 15px; color: var(--text); background: var(--bg); cursor: pointer; outline: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; transition: border-color 0.15s; }
select.sel:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-light); }

.alert-success, .success-box, .success-msg { background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 10px; padding: 12px 16px; font-size: 14px; color: #15803d; margin-bottom: 16px; }
.alert-error, .error-box, .error { background: #fff1f2; border: 1px solid #fecdd3; border-radius: 10px; padding: 12px 16px; font-size: 14px; color: #be123c; margin-bottom: 16px; }

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 100px; font-size: 12px; font-weight: 600; }
.badge-primary { background: #eef2ff; color: var(--accent); }
.badge-green, .badge-free { background: #f0fdf4; color: var(--green); }
.badge-yellow { background: #fef3c7; color: #b45309; }
.badge-gray { background: var(--bg-subtle); color: var(--text-secondary); }
.badge-boost { background: #fef3c7; color: #92400e; }
.badge-turbo { background: #ecfdf5; color: #059669; }

footer { padding: 32px 24px; border-top: 1px solid var(--border); text-align: center; }
footer p, footer a { font-size: 13px; color: var(--text-faint); }
footer a:hover { color: var(--accent); }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent); }
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 32px; }
.divider { display: flex; align-items: center; margin: 20px 0; color: var(--text-faint); font-size: 12px; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.divider span { padding: 0 12px; }
