:root {
  --bg: #0c1016;
  --bg2: #131922;
  --card: #171f2b;
  --border: #253042;
  --text: #e5ebf3;
  --muted: #93a1b5;
  --gold: #dfb357;
  --gold-hi: #f0c974;
  --gold-soft: rgba(223, 179, 87, 0.14);
  --green: #58c996;
  --red: #e87a7a;
  --blue: #64a8f0;
  --karus: #d96b6b;
  --elmorad: #64a8f0;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-hi); }

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 16, 22, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--gold);
  font-size: 1.08rem;
}
.brand img { height: 38px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nav-links a {
  padding: 7px 13px;
  border-radius: 8px;
  color: #cdd6e3;
  font-weight: 600;
  font-size: 0.91rem;
  transition: all 0.15s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--gold);
  background: var(--gold-soft);
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--bg2);
}
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot.on { background: var(--green); box-shadow: 0 0 8px var(--green); }
.dot.off { background: var(--red); }

/* Hero */
.hero {
  position: relative;
  min-height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 56px 20px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(to bottom, rgba(12,16,22,0.48), rgba(12,16,22,0.92)),
              url('/static/img/hero_bg.jpg') center/cover no-repeat;
}
.hero-content { max-width: 780px; position: relative; z-index: 2; }
.hero-emblem { width: 170px; max-width: 45vw; filter: drop-shadow(0 8px 26px rgba(0,0,0,0.7)); margin-bottom: 10px; }
.hero h1 {
  margin: 0;
  font-size: 2.3rem;
  letter-spacing: 3px;
  color: var(--gold);
  text-shadow: 0 3px 16px rgba(0,0,0,0.85);
}
.hero p {
  margin: 10px auto 26px;
  color: #dbe3ee;
  font-size: 1.03rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.85);
}
.cta-row { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  transition: all 0.16s;
}
.btn:hover { transform: translateY(-1px); border-color: var(--gold); color: var(--gold); }
.btn-gold {
  background: linear-gradient(135deg, #d4a442, #b98629);
  color: #0c1016;
  border-color: #eab955;
}
.btn-gold:hover { color: #0c1016; filter: brightness(1.08); }

/* Main container */
.container { max-width: 1200px; width: 100%; margin: 0 auto; padding: 30px 20px 60px; flex: 1; }
.page-head { margin-bottom: 24px; }
.page-head h1 { margin: 0; color: var(--gold); font-size: 1.7rem; }
.page-head p { margin: 6px 0 0; color: var(--muted); }

/* Stats strip */
.pulse-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}
.pulse-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
}
.pulse-card .lbl { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.6px; color: var(--muted); }
.pulse-card .val { font-size: 1.45rem; font-weight: 800; color: var(--gold); margin-top: 4px; }
.pulse-card .sub { font-size: 0.82rem; color: var(--muted); margin-top: 3px; }

/* Feature cards */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-bottom: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(460px, 1fr)); gap: 18px; margin-bottom: 26px; }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.card-body { padding: 18px 20px; }
.card-head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.015);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-head h2, .card-head h3 { margin: 0; color: var(--gold); font-size: 1.05rem; }
.feat h3 { margin: 0 0 6px; color: var(--gold); font-size: 1.03rem; }
.feat p { margin: 0; color: #c7d1df; font-size: 0.9rem; }

/* Tables */
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th {
  text-align: left;
  padding: 10px 14px;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,0.18);
}
td { padding: 10px 14px; border-bottom: 1px solid rgba(37,48,66,0.55); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,0.02); }
.badge-k { background: rgba(217,107,107,0.16); color: var(--karus); padding: 2px 8px; border-radius: 6px; font-size: 0.78rem; font-weight: 600; }
.badge-e { background: rgba(100,168,240,0.16); color: var(--elmorad); padding: 2px 8px; border-radius: 6px; font-size: 0.78rem; font-weight: 600; }
.gold { color: var(--gold); font-weight: 700; }
.green { color: var(--green); font-weight: 600; }
.muted { color: var(--muted); font-size: 0.84rem; }

/* Tabs */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.tab-btn {
  padding: 9px 18px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--bg2);
  color: var(--muted);
  font-weight: 600;
  cursor: pointer;
}
.tab-btn.active { background: var(--gold-soft); color: var(--gold); border-color: var(--gold); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Forms & Alerts */
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 0.86rem; color: var(--muted); margin-bottom: 5px; font-weight: 600; }
.form-group input {
  width: 100%;
  padding: 11px 14px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--bg2);
  color: var(--text);
  font-size: 0.95rem;
  outline: none;
}
.form-group input:focus { border-color: var(--gold); }
.alert { padding: 12px 16px; border-radius: 9px; margin-bottom: 16px; font-size: 0.92rem; font-weight: 500; }
.alert.ok { background: rgba(88,201,150,0.14); border: 1px solid rgba(88,201,150,0.45); color: #8be6bc; }
.alert.err { background: rgba(232,122,122,0.14); border: 1px solid rgba(232,122,122,0.45); color: #f5a6a6; }

/* Footer */
footer {
  border-top: 1px solid var(--border);
  background: var(--bg2);
  padding: 24px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

/* ==================== PROMO / LANDING ENHANCEMENTS ==================== */
.hero {
  min-height: 540px;
  padding: 72px 20px 64px;
  background:
    radial-gradient(circle at 50% 25%, rgba(223,179,87,0.18), transparent 55%),
    linear-gradient(to bottom, rgba(12,16,22,0.42) 0%, rgba(12,16,22,0.82) 72%, var(--bg) 100%),
    url('/static/img/hero_bg.jpg') center/cover no-repeat;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 15px;
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--gold-hi);
  background: rgba(12, 16, 22, 0.72);
  border: 1px solid rgba(223, 179, 87, 0.45);
  margin-bottom: 16px;
  backdrop-filter: blur(6px);
}
.hero h1 {
  font-size: 2.9rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  background: linear-gradient(180deg, #fff3cf 0%, #dfb357 58%, #b38025 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 20px rgba(0,0,0,0.85));
}
.hero-lead {
  max-width: 660px;
  margin: 14px auto 28px;
  font-size: 1.08rem;
  color: #e4ebf5;
  line-height: 1.65;
}
.hero-pills {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 26px;
}
.hero-pill {
  font-size: 0.82rem;
  font-weight: 600;
  color: #d6e0ee;
  padding: 6px 13px;
  border-radius: 8px;
  background: rgba(19, 25, 34, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(6px);
}
.hero-pill strong { color: var(--gold); }

/* Section headers */
.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 38px 0 18px;
}
.sec-eyebrow {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}
.sec-head h2 {
  margin: 0;
  font-size: 1.55rem;
  color: #f3f7fc;
  letter-spacing: 0.3px;
}
.sec-head p { margin: 4px 0 0; color: var(--muted); font-size: 0.92rem; }

/* 4-pillar visual showcase cards */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}
.showcase-card {
  background: linear-gradient(180deg, #192230 0%, #131a25 100%);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.showcase-card:hover {
  transform: translateY(-4px);
  border-color: rgba(223, 179, 87, 0.55);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
}
.showcase-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0d121a;
}
.showcase-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.showcase-card:hover .showcase-media img { transform: scale(1.04); }
.showcase-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(19,26,37,0.95) 0%, rgba(19,26,37,0.18) 52%, transparent 100%);
}
.showcase-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 5px 11px;
  border-radius: 7px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  background: rgba(12, 16, 22, 0.82);
  color: var(--gold-hi);
  border: 1px solid rgba(223, 179, 87, 0.45);
  backdrop-filter: blur(6px);
}
.showcase-body {
  padding: 18px 22px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.showcase-body h3 {
  margin: 0 0 8px;
  font-size: 1.18rem;
  color: var(--gold-hi);
}
.showcase-body p {
  margin: 0 0 14px;
  color: #c8d3e2;
  font-size: 0.92rem;
}
.check-list {
  list-style: none;
  padding: 0;
  margin: auto 0 0;
  display: grid;
  gap: 7px;
}
.check-list li {
  position: relative;
  padding-left: 20px;
  font-size: 0.88rem;
  color: #b7c4d6;
}
.check-list li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.8rem;
  top: 1px;
}
.check-list strong { color: #eef3fa; }

/* CTA Banner Strip */
.cta-banner {
  background:
    radial-gradient(circle at 85% 50%, rgba(223,179,87,0.16), transparent 55%),
    linear-gradient(135deg, #18212f 0%, #111822 100%);
  border: 1px solid rgba(223, 179, 87, 0.35);
  border-radius: 14px;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.cta-banner h3 { margin: 0 0 5px; color: var(--gold-hi); font-size: 1.2rem; }
.cta-banner p { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* 3-Step Onboarding Strip */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.step-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 22px;
  position: relative;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--gold-soft);
  border: 1px solid rgba(223, 179, 87, 0.45);
  color: var(--gold-hi);
  font-weight: 800;
  font-size: 0.92rem;
  margin-bottom: 12px;
}
.step-card h3 { margin: 0 0 6px; font-size: 1.02rem; color: #f1f5fb; }
.step-card p { margin: 0; font-size: 0.88rem; color: var(--muted); }

/* Event schedule grid */
.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
  margin-bottom: 32px;
}
.event-tile {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.event-tile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.event-name { font-weight: 700; color: #eef3fa; font-size: 0.95rem; }
.event-lv { font-size: 0.74rem; color: var(--muted); background: var(--bg2); padding: 2px 8px; border-radius: 6px; border: 1px solid var(--border); }
.time-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.time-chip {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold-hi);
  background: var(--gold-soft);
  border: 1px solid rgba(223, 179, 87, 0.32);
  padding: 3px 9px;
  border-radius: 6px;
}

/* Split feature rows for /ozellikler */
.feature-split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 24px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 22px;
}
.feature-split.rev { grid-template-columns: 1fr 1.05fr; }
.feature-split.rev .feature-split-img { order: 2; }
.feature-split-img { height: 100%; min-height: 260px; overflow: hidden; }
.feature-split-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feature-split-body { padding: 24px 26px; }
.feature-split-body h2 { margin: 4px 0 10px; font-size: 1.32rem; color: var(--gold-hi); }
.feature-split-body p { margin: 0 0 14px; color: #c7d2e1; font-size: 0.93rem; }

/* Rank medals */
.rank-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 800;
  background: var(--bg2);
  color: var(--muted);
}
.rank-1 { background: rgba(240,201,116,0.22); color: #f7d682; border: 1px solid rgba(240,201,116,0.5); }
.rank-2 { background: rgba(192,204,220,0.18); color: #d7e1ee; border: 1px solid rgba(192,204,220,0.4); }
.rank-3 { background: rgba(205,133,83,0.18); color: #e2a475; border: 1px solid rgba(205,133,83,0.4); }

@media (max-width: 900px) {
  .showcase-grid, .steps-grid, .feature-split, .feature-split.rev { grid-template-columns: 1fr; }
  .feature-split.rev .feature-split-img { order: 0; }
}
@media (max-width: 640px) {
  .grid-2 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.85rem; letter-spacing: 2px; }
  .hero { min-height: 440px; padding: 48px 16px; }
}
