:root {
  --bg: #07080c;
  --shell: #0b0c12;
  --fg: #e8e6ef;
  --muted: #8a889a;
  --dim: #6b6a7a;
  --line: rgba(255, 255, 255, 0.07);
  --rose: #f43f5e;
  --rose-deep: #be123c;
  --ok: #4ade80;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: "Nunito", ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.mark, .word, h2, .hero-title, .hero-mark, .cta, .server b {
  font-weight: 600;
}

a { color: var(--rose); text-decoration: none; }
a:hover { color: #fb7185; }
input::placeholder { color: var(--dim); }
input:focus, select:focus { outline: none; }
::selection { background: var(--rose); color: #fff; }

.hidden { display: none !important; }

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.45), 0 12px 40px -8px rgba(244, 63, 94, 0.6); }
  50% { box-shadow: 0 0 0 10px rgba(244, 63, 94, 0), 0 12px 40px -8px rgba(244, 63, 94, 0.6); }
}
@keyframes dotPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes drift { from { transform: translate(0, 0); } to { transform: translate(-40px, 30px); } }

.shell {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--shell);
  display: flex;
  flex-direction: column;
}

html[data-preview="browser"] .shell {
  width: min(1280px, 100%);
  height: min(800px, 100%);
  margin: 0 auto;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.9);
}

@media (min-width: 1280px) {
  html[data-preview="browser"] body { display: grid; place-items: center; }
  html[data-preview="browser"] .shell { margin: 24px auto; }
}

.atmos { position: absolute; inset: 0; pointer-events: none; }
.atmos-glow {
  background:
    radial-gradient(900px 520px at 78% -10%, rgba(244, 63, 94, 0.28), transparent 60%),
    radial-gradient(700px 500px at 10% 110%, rgba(124, 58, 237, 0.18), transparent 60%);
}
.atmos-grid {
  inset: -60px;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(70% 70% at 60% 30%, #000 30%, transparent 100%);
  animation: drift 40s linear infinite alternate;
}
.atmos-noise {
  opacity: 0.07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence baseFrequency='.9' numOctaves='2'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>");
}

.titlebar, .body, .dock { position: relative; z-index: 2; }

.titlebar {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px 0 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.brand { display: flex; align-items: center; gap: 12px; }
.mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--rose), var(--rose-deep));
  display: grid; place-items: center;
  font-family: "Chakra Petch", "Nunito", sans-serif; font-size: 17px; color: #fff;
  box-shadow: 0 8px 24px -8px rgba(244, 63, 94, 0.8);
}
.word { font-family: "Chakra Petch", "Nunito", sans-serif; font-size: 19px; letter-spacing: 0.5px; }
.pill {
  font-size: 10px; font-weight: 800; letter-spacing: 2.5px; color: var(--rose);
  padding: 3px 8px; border: 1px solid rgba(244, 63, 94, 0.4); border-radius: 4px;
}
.status {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600; color: #a7a5b8;
}
.dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ok); box-shadow: 0 0 12px var(--ok);
  animation: dotPulse 1.8s ease-in-out infinite;
}
.dot.warn { background: #f59e0b; box-shadow: 0 0 12px #f59e0b; }
.sep { color: #4a4958; }
.win-btns { display: flex; gap: 6px; }
.win-btn {
  width: 32px; height: 28px; border: 0; border-radius: 7px;
  background: transparent; color: #8a889a; cursor: pointer;
}
.win-btn:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.win-btn.danger:hover { background: rgba(244, 63, 94, 0.18); color: #fb7185; }

.body {
  flex: 1;
  display: grid;
  grid-template-columns: 380px 1fr;
  min-height: 0;
}

.rail {
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  padding: 36px 34px 28px;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
  animation: rise 0.6s ease both;
}
.kicker { font-size: 11px; font-weight: 800; letter-spacing: 3px; color: var(--rose); }
.display {
  font-family: "Chakra Petch", "Nunito", sans-serif;
  font-size: 34px; line-height: 1.05; margin-top: 10px;
}
.display.tight { font-size: 28px; }
.lede { font-size: 13px; color: var(--muted); margin: 10px 0 22px; line-height: 1.5; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.field > span { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; color: var(--muted); }
.field-box {
  display: flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 14px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.field-box:focus-within { border-color: var(--rose); }
.field-box input, .field-box select {
  flex: 1; background: none; border: 0; color: #fff;
  font: inherit; font-size: 14px; font-weight: 600;
}
.field-box select { color: #fff; }
.field-box select option { background: #12131a; }

.row-between { display: flex; justify-content: space-between; align-items: center; margin-top: 2px; }
.check, .checkline {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: #a7a5b8; cursor: pointer; user-select: none;
}
.check-box {
  width: 16px; height: 16px; border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
}
.check-box.on {
  background: var(--rose);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10'><path d='M2 5l2.2 2.2L8 3' stroke='white' stroke-width='1.6' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
}
.link { font-size: 12px; font-weight: 600; }
.link.strong { font-weight: 700; }
.text-btn {
  border: 0; background: none; color: var(--dim);
  font-size: 11px; font-weight: 700; cursor: pointer;
}
.text-btn:hover { color: #fff; }

.error { color: #f59e0b; font-size: 13px; font-weight: 700; margin-top: 10px; }

.cta {
  margin-top: 22px; height: 52px; border: 0; border-radius: 12px;
  background: linear-gradient(135deg, var(--rose), var(--rose-deep));
  color: #fff; font-family: "Chakra Petch", "Nunito", sans-serif;
  font-size: 15px; letter-spacing: 1.5px; cursor: pointer;
  animation: glowPulse 2.6s ease-in-out infinite;
}
.cta:hover { transform: translateY(-1px); }
.cta:disabled { opacity: 0.7; cursor: wait; }
.foot-note { margin-top: auto; font-size: 12px; color: var(--dim); text-align: center; }

.balances {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-bottom: 16px;
}
.balances b {
  display: block; padding: 10px 8px; border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 13px; text-align: center;
}
.balances small { display: block; color: var(--dim); font-size: 10px; letter-spacing: 1px; }

.ghost-btn {
  height: 42px; border-radius: 10px; margin-bottom: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: var(--fg); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
}
.ghost-btn:hover { background: rgba(255, 255, 255, 0.07); }

.settings { margin: 4px 0 12px; }
.hint { font-size: 11px; color: var(--dim); margin: -4px 0 10px; }
.logbox {
  margin-top: 10px; max-height: 120px; overflow: auto;
  font-family: Consolas, monospace; font-size: 11px;
  background: #07080c; border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px; padding: 8px; color: #9aa3c7; white-space: pre-wrap;
}

.stage {
  padding: 28px 30px 24px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 20px;
  min-height: 0;
  overflow: hidden;
  animation: rise 0.6s 0.1s ease both;
}
h2 { font-family: "Chakra Petch", "Nunito", sans-serif; font-size: 16px; letter-spacing: 0.5px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.ver {
  font-size: 11px; font-weight: 800; color: #a7a5b8;
  padding: 3px 8px; border-radius: 5px; background: rgba(255, 255, 255, 0.06);
}

.news-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  grid-template-rows: 150px 150px;
  gap: 12px;
}
.news-hero {
  grid-row: span 2;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(160deg, #3b0a1e 0%, #1a0b16 45%, #0f0f1a 100%);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: inherit;
}
.news-hero:hover { border-color: rgba(244, 63, 94, 0.5); color: inherit; }
.news-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(400px 260px at 80% 20%, rgba(244, 63, 94, 0.5), transparent 65%);
}
.hero-tag {
  position: absolute; top: 16px; left: 16px;
  font-size: 10px; font-weight: 800; letter-spacing: 2px;
  color: #fff; background: var(--rose); padding: 5px 9px; border-radius: 5px;
}
.hero-mark {
  position: absolute; top: 60px; right: -10px;
  font-family: "Chakra Petch", "Nunito", sans-serif; font-size: 120px;
  color: rgba(255, 255, 255, 0.05); line-height: 1; user-select: none;
}
.hero-date { position: relative; font-size: 11px; font-weight: 700; color: #fb7185; letter-spacing: 1.5px; }
.hero-title { position: relative; font-family: "Chakra Petch", "Nunito", sans-serif; font-size: 24px; line-height: 1.15; margin-top: 8px; }
.hero-sum { position: relative; font-size: 13px; color: #b5b3c4; margin-top: 8px; line-height: 1.5; }

.news-side {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
}
.news-card {
  flex: 1;
  position: relative;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: inherit;
}
.news-card:hover { background: rgba(255, 255, 255, 0.06); color: inherit; }
.news-card .tag { position: absolute; top: 14px; left: 16px; font-size: 10px; font-weight: 800; letter-spacing: 2px; }
.news-card strong { font-size: 15px; font-weight: 800; line-height: 1.3; }
.news-card time { font-size: 11px; color: var(--dim); margin-top: 6px; font-weight: 600; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  min-height: 0;
}
.split > section { min-height: 0; display: flex; flex-direction: column; }
.server-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
  overflow: auto;
}
.server {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: inherit;
}
.server:hover { background: rgba(255, 255, 255, 0.06); color: inherit; }
.server .ico {
  width: 34px; height: 34px; border-radius: 8px;
  display: grid; place-items: center;
  font-family: "Chakra Petch", "Nunito", sans-serif; font-size: 13px; color: #fff;
}
.server b { display: block; font-size: 13px; }
.server span { font-size: 11px; color: var(--dim); font-weight: 600; }
.server em { font-style: normal; font-size: 10px; color: var(--dim); font-weight: 700; letter-spacing: 1px; }

.changelog {
  margin-top: 12px;
  padding-left: 6px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}
.change {
  position: relative;
  padding: 0 0 12px 16px;
  font-size: 12.5px; line-height: 1.45; color: #c9c7d6;
}
.change i {
  position: absolute; left: -10px; top: 5px;
  width: 7px; height: 7px; border-radius: 50%;
  box-shadow: 0 0 0 3px var(--shell);
}
.change b { letter-spacing: 1px; font-size: 10px; margin-right: 8px; }

.dock {
  height: 62px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  background: rgba(0, 0, 0, 0.25);
}
.social { display: flex; align-items: center; gap: 8px; }
.discord, .site-link {
  display: flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 14px; border-radius: 9px;
  font-size: 12px; font-weight: 800; color: #fff;
}
.discord { background: #5865f2; }
.discord:hover { background: #6a76ff; color: #fff; }
.site-link { background: rgba(255, 255, 255, 0.05); color: #a7a5b8; }
.site-link:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }

.play-wrap { display: flex; align-items: center; gap: 16px; }
.addr { text-align: right; }
.addr-label { font-size: 11px; color: var(--dim); font-weight: 700; letter-spacing: 1px; }
#play-addr { font-size: 13px; font-weight: 800; }
.play {
  height: 42px; padding: 0 26px; border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--dim);
  font-family: "Chakra Petch", "Nunito", sans-serif; font-size: 14px; letter-spacing: 1.5px;
  display: flex; align-items: center; gap: 10px; cursor: not-allowed;
}
.play:not(:disabled) {
  background: linear-gradient(135deg, var(--rose), var(--rose-deep));
  color: #fff; border-color: transparent; cursor: pointer;
}
.progress { min-width: 140px; }
.bar { height: 4px; background: rgba(255, 255, 255, 0.08); border-radius: 99px; overflow: hidden; }
#bar-fill { height: 100%; width: 0; background: var(--rose); }
#progress-text { font-size: 11px; color: var(--dim); margin-top: 4px; }

html[data-preview="browser"] body::after {
  content: "Tarayıcı önizlemesi · OYNA Electron'da";
  position: fixed; right: 16px; bottom: 16px; z-index: 20;
  padding: 6px 10px; border-radius: 999px; font-size: 11px;
  color: var(--muted); background: #12131a; border: 1px solid var(--line);
}

@media (max-width: 980px) {
  .shell { height: 100%; border-radius: 0; }
  .body { grid-template-columns: 1fr; }
  .rail { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
  .news-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .news-hero { grid-row: auto; min-height: 200px; }
  .split { grid-template-columns: 1fr; }
}
