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

:root {
  --bg: #ffffff;
  --text: #1a1a1a;
  --text-muted: #666;
  --border: #e5e5e5;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --success: #16a34a;
  --error: #dc2626;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,.1);
}

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

/* ── Navbar ─────────────────────────────── */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 56px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 100;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--primary);
  text-decoration: none;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.navbar-links a {
  color: var(--text);
  text-decoration: none;
  font-size: .9rem;
}

.navbar-links a:hover { color: var(--primary); }

/* ── Plan badge ─────────────────────────── */
.plan-badge {
  font-size: .7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 99px;
  text-transform: uppercase;
}
.plan-free    { background: #f3f4f6; color: #6b7280; }
.plan-pro     { background: #dbeafe; color: #1d4ed8; }
.plan-premium { background: #fef9c3; color: #854d0e; }

/* ── Main content ───────────────────────── */
.main-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px;
}

/* ── Alerts ─────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-size: .9rem;
}
.alert-error   { background: #fee2e2; color: var(--error); }
.alert-success { background: #dcfce7; color: var(--success); }

/* ── Buttons ─────────────────────────────── */
.btn-primary {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 10px 20px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s;
}
.btn-primary:hover { background: var(--primary-hover); }
.btn-full { width: 100%; text-align: center; }

.btn-outline {
  display: inline-block;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 16px;
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
  font-size: .9rem;
  text-decoration: none;
  transition: border-color .15s;
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

/* ── Forms ───────────────────────────────── */
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-muted);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: .95rem;
  outline: none;
  transition: border-color .15s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--primary); }

.form-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: .9rem;
}

/* ── Mobile ──────────────────────────────── */
@media (max-width: 600px) {
  .navbar { padding: 0 12px; height: 52px; }
  .navbar-links { gap: 8px; }
  .navbar-links a { font-size: .82rem; }
  .navbar-hide-sm { display: none; }
  .main-content { padding: 20px 14px; }
  .btn-primary { padding: 10px 16px; font-size: .88rem; }
  /* iOS zoom önleme: font-size < 16px olan input/select otomatik zoom yapar */
  input, select, textarea { font-size: 1rem !important; }
}

/* ── Auth ────────────────────────────────── */
.auth-container {
  display: flex;
  justify-content: center;
  padding-top: 40px;
}
.auth-box {
  width: 100%;
  max-width: 400px;
}
.auth-box h1 {
  font-size: 1.5rem;
  margin-bottom: 24px;
}
.auth-link {
  text-align: center;
  margin-top: 16px;
  font-size: .9rem;
  color: var(--text-muted);
}
.auth-link a { color: var(--primary); }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  color: var(--text-muted);
  font-size: .85rem;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  font-size: .9rem;
  font-weight: 500;
  text-decoration: none;
  transition: background .15s, border-color .15s;
  margin-bottom: 8px;
}
.btn-google:hover { background: #f9fafb; border-color: #d1d5db; }
