:root {
  --bg: #090909;
  --bg-elevated: #151515;
  --bg-card: #1d1d1d;
  --border: #3a3318;
  --text: #fff8d6;
  --text-muted: #b8ae7d;
  --accent: #f4c400;
  --accent-2: #ffdf4d;
  --accent-glow: rgba(244, 196, 0, 0.3);
  --success: #3ecf8e;
  --danger: #ef5b6b;
  --warning: #f5a623;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: radial-gradient(ellipse at top, #211d08 0%, #090909 48%, #050505 100%);
  color: var(--text);
  font-family: var(--font);
  scroll-behavior: smooth;
  min-height: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.maintenance-notice {
  padding: 10px 16px;
  background: var(--accent);
  color: #090909;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 700;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- NAVBAR ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 13, 20, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.navbar-inner {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.2px;
}
.brand-badge {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: url('/bee_afk_client_logo.png') center / cover no-repeat;
  box-shadow: 0 0 22px var(--accent-glow);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-auth { display: flex; align-items: center; gap: 10px; }
.language-toggle { min-width: 44px; padding-inline: 10px; }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  width: 40px;
  height: 40px;
  cursor: pointer;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #090909;
  box-shadow: 0 8px 24px var(--accent-glow);
}
.btn-primary:hover { box-shadow: 0 10px 32px var(--accent-glow); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-warning { background: var(--warning); color: #090909; font-weight: 600; }
.btn-warning:hover { filter: brightness(1.1); }
.btn-sm { padding: 7px 14px; font-size: 0.82rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ---------- HERO ---------- */
.hero {
  padding: 110px 0 90px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 500px;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}
.eyebrow {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  margin: 0 0 18px;
  line-height: 1.1;
  background: linear-gradient(135deg, #fff8d6, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  max-width: 640px;
  margin: 0 auto 34px;
  color: var(--text-muted);
  font-size: 1.08rem;
  line-height: 1.6;
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 46px;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.88rem;
}
.hero-stats strong { color: var(--text); display: block; font-size: 1.3rem; }

.mockup {
  margin: 60px auto 0;
  max-width: 920px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(160deg, var(--bg-card), var(--bg-elevated));
  box-shadow: var(--shadow);
  padding: 18px;
}
.mockup-bar { display: flex; gap: 6px; padding: 4px 8px 14px; }
.mockup-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.mockup-body {
  border-radius: var(--radius-sm);
  background: #05070c;
  border: 1px solid var(--border);
  overflow: hidden;
}
.mockup-body img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- SECTIONS ---------- */
section { padding: 80px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 50px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 12px; font-weight: 800; }
.section-head p { color: var(--text-muted); line-height: 1.6; }

.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, 1fr);
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 14px 40px rgba(0,0,0,0.4);
}
.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  box-shadow: 0 0 20px var(--accent-glow);
  font-size: 1.3rem;
}
.card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.card h2 { margin: 0 0 8px; font-size: 1.2rem; }
.card p { margin: 0; color: var(--text-muted); font-size: 0.92rem; line-height: 1.55; }
.contact-action { margin-top: 22px; }
.contact-action.is-unavailable { opacity: 0.55; cursor: not-allowed; pointer-events: none; }

/* ---------- FOOTER ---------- */
footer {
  border-top: 1px solid var(--border);
  padding: 50px 0 30px;
  color: var(--text-muted);
  font-size: 0.86rem;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  text-align: center;
}

/* ---------- FORMS (auth pages) ---------- */
.auth-wrap {
  min-height: calc(100vh - 140px);
  display: grid;
  place-items: center;
  padding: 60px 20px;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow);
}
.auth-card h1 { font-size: 1.5rem; margin: 0 0 6px; }
.auth-card .sub { color: var(--text-muted); margin: 0 0 26px; font-size: 0.9rem; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.85rem; margin-bottom: 6px; color: var(--text-muted); }
.field input {
  width: 100%;
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 0.94rem;
  transition: border-color 0.2s ease;
}
.field input:focus { outline: none; border-color: var(--accent); }
.form-msg {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  margin-bottom: 16px;
  display: none;
}
.form-msg.error { display: block; background: rgba(239, 91, 107, 0.12); color: var(--danger); border: 1px solid rgba(239,91,107,0.3); }
.form-msg.success { display: block; background: rgba(62, 207, 142, 0.12); color: var(--success); border: 1px solid rgba(62,207,142,0.3); }
.auth-switch { text-align: center; margin-top: 20px; font-size: 0.88rem; color: var(--text-muted); }
.auth-switch a { color: var(--accent); font-weight: 600; }

/* Field label with right link (e.g. Şifremi Unuttum?) */
.field-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.field-header label { margin-bottom: 0; }
.field-link {
  font-size: 0.82rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s ease;
}
.field-link:hover { text-decoration: underline; opacity: 0.9; }

/* Password field with toggle eye */
.password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}
.password-wrapper input {
  width: 100%;
  padding-right: 42px !important;
}
.toggle-password {
  position: absolute;
  right: 8px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: color 0.2s ease, transform 0.15s ease;
}
.toggle-password:hover {
  color: var(--accent);
}
.toggle-password:active {
  transform: scale(0.92);
}
.toggle-password svg {
  display: block;
  pointer-events: none;
}
.field-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 6px;
}

/* Captcha styling */
.captcha-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.captcha-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.captcha-img {
  height: 42px;
  min-width: 130px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #141414;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  user-select: none;
  flex-shrink: 0;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.5);
}
.captcha-img svg {
  display: block;
  height: 100%;
  width: auto;
}
.btn-captcha-refresh {
  height: 42px;
  width: 42px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  font-size: 1.15rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.btn-captcha-refresh:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: rotate(45deg);
}
.captcha-input {
  letter-spacing: 2px;
  font-weight: 600;
}

/* Multi-step email verification box */
.code-input-field {
  text-align: center;
  font-size: 1.45rem !important;
  letter-spacing: 7px;
  font-weight: 700;
  font-family: 'Courier New', Courier, monospace;
  padding: 12px !important;
}
.auth-step-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.5;
}
.auth-step-desc strong {
  color: var(--accent);
  word-break: break-all;
}
.auth-action-row {
  display: flex;
  gap: 12px;
  margin-top: 14px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.btn-resend {
  background: transparent;
  border: none;
  color: var(--accent);
  font-size: 0.84rem;
  cursor: pointer;
  padding: 6px 0;
  text-decoration: underline;
  transition: opacity 0.2s;
}
.btn-resend[disabled] {
  color: var(--text-muted);
  text-decoration: none;
  cursor: not-allowed;
  opacity: 0.6;
}
.btn-back-step {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.84rem;
  cursor: pointer;
  padding: 6px 0;
}
.btn-back-step:hover {
  color: var(--text);
  text-decoration: underline;
}

/* ---------- FAQ ---------- */
.accordion { max-width: 760px; margin: 0 auto; }
.accordion-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  background: var(--bg-card);
  overflow: hidden;
}
.accordion-trigger {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--text);
  padding: 18px 20px;
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.accordion-trigger .plus { transition: transform 0.25s ease; color: var(--accent); font-size: 1.2rem; }
.accordion-item.open .plus { transform: rotate(45deg); }
.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}
.accordion-panel-inner { padding: 0 20px 18px; }

/* ---------- TABLES / VERSIONS ---------- */
.version-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  padding: 24px;
  margin-bottom: 16px;
}
.version-item .v-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.badge {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}
.badge.mandatory { color: var(--danger); border-color: rgba(239,91,107,0.4); }
.badge.role-admin { color: var(--accent-2); border-color: rgba(244,196,0,0.4); }
.badge.status-active { color: var(--success); }
.badge.status-banned { color: var(--danger); }
.v-date { color: var(--text-muted); font-size: 0.85rem; }
.changelog-list { margin: 8px 0 0; padding-left: 20px; color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; }

/* ---------- DOWNLOAD PAGE ---------- */
.download-card {
  max-width: 600px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  box-shadow: var(--shadow);
}
.download-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  text-align: left;
  margin: 28px 0;
}
.download-meta div {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}
.download-meta span { display: block; color: var(--text-muted); font-size: 0.75rem; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.4px; }

.requirements-panel {
  max-width: 760px;
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(145deg, #24200d, #0d0d0d);
  box-shadow: var(--shadow);
}
.requirements-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 58px;
  padding: 0 20px;
  background: rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
}
.requirements-dots { display: flex; gap: 7px; }
.requirements-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
}
.requirements-dots span:nth-child(2) { opacity: 0.72; }
.requirements-dots span:nth-child(3) { opacity: 0.46; }
.requirements-version { margin-left: auto; color: var(--text-muted); font-size: 0.8rem; }
.requirements-body { padding: 28px; }
.requirements-status {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin-bottom: 22px;
  color: var(--text);
  font-size: 1.08rem;
}
.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}
.requirements-list { display: grid; gap: 10px; }
.requirement-row {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  align-items: center;
  gap: 14px;
  min-height: 58px;
  padding: 10px 14px;
  border: 1px solid #463d18;
  border-radius: var(--radius-sm);
  background: #11110c;
  color: var(--text);
}
.requirement-row > strong { color: var(--accent-2); white-space: nowrap; }
.requirement-mark {
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

/* Generic page hero for sub-pages */
.page-hero { padding: 70px 0 40px; text-align: center; }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 0 0 12px; font-weight: 800; }
.page-hero p { color: var(--text-muted); max-width: 600px; margin: 0 auto; }

.prose { max-width: 760px; margin: 0 auto; color: var(--text-muted); line-height: 1.75; }
.prose h2 { color: var(--text); margin-top: 34px; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

.center { text-align: center; }
.mt-24 { margin-top: 24px; }
.hidden { display: none !important; }
