@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg: #f7f7f8;
  --card-bg: #ffffff;
  --card-border: #e8e8e8;
  --text: #1a1a1a;
  --text-muted: #777;
  --text-soft: #555;
  --input-border: #ddd;
  --primary: #534AB7;
  --primary-hover: #463e9c;
  --primary-soft: #f0f0f0;
  --success-bg: #e1f5ee;
  --success-text: #0f6e56;
  --error-bg: #fcebeb;
  --error-text: #a32d2d;
  --feature-border: #f0f0f0;
  --shadow: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-hover: 0 12px 28px rgba(83,74,183,0.14);
}

[data-theme="dark"] {
  --bg: #14141a;
  --card-bg: #1e1e26;
  --card-border: #2c2c36;
  --text: #f0f0f2;
  --text-muted: #9a9aa5;
  --text-soft: #c4c4cc;
  --input-border: #34343f;
  --primary: #7c72e0;
  --primary-hover: #6a60d0;
  --primary-soft: #2a2a34;
  --success-bg: #163129;
  --success-text: #4fd6a8;
  --error-bg: #3a1f22;
  --error-text: #f08a8a;
  --feature-border: #2c2c36;
  --shadow: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-hover: 0 12px 28px rgba(124,114,224,0.25);
}

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

body {
  font-family: 'Inter', -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: background 0.25s ease, color 0.25s ease;
}

.nav {
  width: 100%;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.logo-text {
  font-weight: 600;
  font-size: 16px;
}

.theme-toggle {
  margin-left: auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  color: var(--text);
  cursor: pointer;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, background 0.2s ease;
}

.theme-toggle:hover { transform: scale(1.08); background: var(--primary-soft); }

.site-lang-select {
  margin-left: 10px;
  font-size: 12px;
  border: 1px solid var(--card-border);
  border-radius: 6px;
  padding: 4px 6px;
  background: var(--card-bg);
  color: var(--text-soft);
  cursor: pointer;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 36px;
  width: 100%;
  max-width: 380px;
  margin-top: 40px;
  box-shadow: var(--shadow);
  animation: fadeInUp 0.45s ease both;
}

.card h1 {
  font-size: 22px;
  margin-bottom: 6px;
}

.card .subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

label {
  display: block;
  font-size: 12px;
  color: var(--text-soft);
  margin-bottom: 6px;
  margin-top: 14px;
}

input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--input-border);
  border-radius: 8px;
  font-size: 14px;
  background: var(--card-bg);
  color: var(--text);
  transition: border-color 0.15s ease;
}

input:focus { outline: none; border-color: var(--primary); }

.btn {
  width: 100%;
  margin-top: 22px;
  padding: 11px;
  border: none;
  border-radius: 8px;
  background: var(--primary);
  color: white;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

.btn:hover { background: var(--primary-hover); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { background: #bbb; cursor: not-allowed; transform: none; }

.btn-secondary {
  background: none;
  border: 1px solid var(--input-border);
  color: var(--text);
}

.btn-secondary:hover { background: var(--primary-soft); }

.switch-link {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 18px;
}

.switch-link a { color: var(--primary); text-decoration: none; font-weight: 500; }

.error-msg {
  background: var(--error-bg);
  color: var(--error-text);
  font-size: 12px;
  padding: 8px 10px;
  border-radius: 6px;
  margin-top: 14px;
  display: none;
}

.error-msg.visible { display: block; animation: fadeInUp 0.25s ease both; }

.success-msg {
  background: var(--success-bg);
  color: var(--success-text);
  font-size: 12px;
  padding: 8px 10px;
  border-radius: 6px;
  margin-top: 14px;
  display: none;
}

.success-msg.visible { display: block; animation: fadeInUp 0.25s ease both; }

/* Pricing page */
.pricing-wrap {
  max-width: 880px;
  width: 100%;
  padding: 40px 24px;
  text-align: center;
  animation: fadeInUp 0.45s ease both;
}

.pricing-wrap h1 { font-size: 28px; margin-bottom: 8px; }
.pricing-wrap .subtitle { font-size: 15px; color: var(--text-muted); margin-bottom: 36px; }

.plans {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 640px;
  margin: 0 auto;
}

.plan-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 28px 24px;
  text-align: left;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  animation: fadeInUp 0.5s ease both;
}

.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}

.plan-card.highlighted {
  border: 2px solid var(--primary);
  position: relative;
}

.plan-badge {
  position: absolute;
  top: -10px;
  right: 20px;
  background: var(--primary);
  color: white;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 12px;
}

.plan-name { font-size: 14px; color: var(--text-muted); margin-bottom: 6px; }
.plan-price { font-size: 30px; font-weight: 600; margin-bottom: 4px; }
.plan-price span { font-size: 14px; font-weight: 400; color: var(--text-muted); }
.plan-trial { font-size: 12px; color: var(--success-text); margin-bottom: 18px; }

.plan-features { list-style: none; margin-bottom: 22px; }
.plan-features li {
  font-size: 13px;
  color: var(--text-soft);
  padding: 6px 0;
  border-top: 1px solid var(--feature-border);
}
.plan-features li:first-child { border-top: none; }

.center-msg {
  text-align: center;
  margin-top: 60px;
  animation: fadeInUp 0.45s ease both;
}

.center-msg .big-check {
  font-size: 48px;
  margin-bottom: 16px;
}
