/* BMB HIVE web sitesi — ortak stil. Renkler docs/STIL_REHBERI.md ile aynı. */
:root {
  color-scheme: dark;
  --bg: #0d0b08;
  --bg-2: #15110b;
  --panel: #1b160e;
  --panel-2: #231c11;
  --line: #3a2f1c;
  --text: #f4ecdc;
  --muted: #a99c84;
  --dim: #7a6f5c;
  --gold: #ffc21a;
  --amber: #ff9f1c;
  --altin: #ffd84a;
  --elmas: #5ce8f0;
  --hexium: #c77dff;
  --ok: #5ee07a;
  --bad: #ff5555;
  --radius: 14px;
  --wrap: 1120px;
  --grad: linear-gradient(90deg, #ffc21a, #ff9f1c);
  --font-head: "Outfit", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font-body);
  overflow-x: hidden;
}
/* bal peteği deseni */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='98' viewBox='0 0 56 98'%3E%3Cpath d='M28 66L0 50V16L28 0l28 16v34L28 66zm0 32V66' fill='none' stroke='%23ffc21a' stroke-opacity='0.05' stroke-width='1.2'/%3E%3C/svg%3E");
  background-size: 56px 98px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 75%);
}
img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

/* üst menü */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(13, 11, 8, .82);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font: 800 1.15rem var(--font-head); color: var(--text); }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.nav ul { display: flex; gap: 4px; list-style: none; margin: 0 0 0 auto; padding: 0; }
.nav a.link { display: block; padding: 8px 14px; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: .95rem; }
.nav a.link:hover { color: var(--text); background: var(--panel); text-decoration: none; }
.nav a.link[aria-current="page"] { color: var(--gold); background: var(--panel); }
.nav .toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 6px 10px; font-size: 1.1rem; cursor: pointer; }

/* düğmeler */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--panel); color: var(--text); font: 700 1rem var(--font-body);
  cursor: pointer; transition: transform .12s ease, border-color .12s ease, background .12s ease;
}
.btn:hover { text-decoration: none; border-color: var(--gold); transform: translateY(-1px); }
.btn.primary { background: var(--grad); color: #1a1205; border-color: transparent; }
.btn.primary:hover { filter: brightness(1.06); }
.btn .k { font-family: ui-monospace, Consolas, monospace; font-weight: 700; }

/* kahraman alanı */
.hero { padding: 72px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .85rem; font-weight: 600; margin-bottom: 20px; background: var(--bg-2); }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 560px; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero .art { position: relative; justify-self: center; width: min(380px, 80vw); }
.hero .art::before { content: ""; position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 194, 26, .35), transparent 65%); filter: blur(30px); }
.hero .art img { position: relative; filter: drop-shadow(0 12px 40px rgba(0, 0, 0, .6)); }

.status { display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--dim); box-shadow: 0 0 0 3px rgba(255, 255, 255, .04); }
.dot.on { background: var(--ok); box-shadow: 0 0 0 3px rgba(94, 224, 122, .18); }
.dot.off { background: var(--bad); }

/* bölümler */
section.block { padding: 56px 0; }
.section-head { max-width: 680px; margin-bottom: 32px; }
.section-head p { color: var(--muted); }
.grid { display: grid; gap: 16px; }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
}
.card h3 { margin-bottom: .35em; }
.card p { color: var(--muted); margin: 0; font-size: .95rem; }
.card .ic { font-size: 1.6rem; margin-bottom: 10px; }

/* adımlar */
.steps { counter-reset: s; display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); }
.step { position: relative; padding-top: 52px; }
.step::before { counter-increment: s; content: counter(s); position: absolute; top: 18px; left: 22px; width: 26px; height: 26px; border-radius: 8px; background: var(--grad); color: #1a1205; font: 800 .9rem var(--font-head); display: grid; place-items: center; }
code, .code { font-family: ui-monospace, Consolas, monospace; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font-size: .9em; color: var(--text); }

/* bölgeler */
.region { border-left: 3px solid var(--c, var(--gold)); }
.region .tag { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .06em; color: var(--c, var(--gold)); margin-bottom: 6px; }

/* para birimleri */
.money { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.c-altin { color: var(--altin); } .c-elmas { color: var(--elmas); } .c-hexium { color: var(--hexium); } .c-bee { color: var(--gold); }

/* VIP kartları */
.vip-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.vip { text-align: center; padding: 22px 16px; position: relative; overflow: hidden; }
.vip::before { content: ""; position: absolute; inset: -40% -20% auto; height: 70%; background: radial-gradient(ellipse, var(--c), transparent 70%); opacity: .16; }
.vip img { width: 112px; height: 112px; margin: 0 auto 10px; position: relative; }
.vip .name { font: 800 1.35rem var(--font-head); color: var(--c); position: relative; }
.vip .price { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-weight: 700; color: var(--gold); position: relative; }
.vip .price img { width: 20px; height: 20px; margin: 0; image-rendering: pixelated; }
.vip .term { color: var(--dim); font-size: .85rem; position: relative; }

/* tablolar */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 640px; }
th, td { padding: 12px 14px; text-align: center; border-bottom: 1px solid var(--line); }
th { background: var(--panel-2); font-family: var(--font-head); font-weight: 700; position: sticky; top: 0; }
td:first-child, th:first-child { text-align: left; color: var(--muted); }
tr:last-child td { border-bottom: 0; }
.yes { color: var(--ok); font-weight: 700; } .no { color: var(--dim); }

/* bilgi kutusu */
.note { display: flex; gap: 14px; padding: 16px 18px; border-radius: var(--radius); background: rgba(255, 194, 26, .07); border: 1px solid rgba(255, 194, 26, .28); color: var(--text); }
.note.warn { background: rgba(255, 85, 85, .07); border-color: rgba(255, 85, 85, .3); }
.note p { margin: 0; }

/* rehber: yan menü + içerik */
.doc { display: grid; grid-template-columns: 220px 1fr; gap: 40px; padding: 48px 0; }
.toc { position: sticky; top: 88px; align-self: start; display: grid; gap: 2px; }
.toc a { color: var(--muted); padding: 6px 12px; border-radius: 8px; font-weight: 600; font-size: .95rem; }
.toc a:hover { background: var(--panel); color: var(--text); text-decoration: none; }
.doc section { padding-bottom: 40px; scroll-margin-top: 88px; }
.doc section + section { border-top: 1px solid var(--line); padding-top: 40px; }
ol.rules { padding-left: 0; list-style: none; counter-reset: r; display: grid; gap: 10px; }
ol.rules li { counter-increment: r; display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; padding: 14px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
ol.rules li::before { content: counter(r); width: 28px; height: 28px; border-radius: 8px; background: var(--grad); color: #1a1205; font: 800 .9rem var(--font-head); display: grid; place-items: center; }
.cmds { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 24px; }
.cmd { display: flex; gap: 12px; align-items: baseline; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.cmd code { flex: none; color: var(--gold); }
.cmd span { color: var(--muted); font-size: .95rem; }
.ranks { display: flex; flex-wrap: wrap; gap: 8px; }
.rank { padding: 4px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); font: 800 .85rem var(--font-head); letter-spacing: .04em; color: var(--c); }

/* sıralama */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tab { padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); font-weight: 700; cursor: pointer; font-family: var(--font-body); font-size: .95rem; }
.tab[aria-selected="true"] { color: #1a1205; background: var(--grad); border-color: transparent; }
.board { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.board li { display: grid; grid-template-columns: 44px 36px 1fr auto; gap: 12px; align-items: center; padding: 10px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.board .pos { font: 800 1.1rem var(--font-head); color: var(--dim); text-align: center; }
.board li:nth-child(1) .pos { color: #ffd84a; } .board li:nth-child(2) .pos { color: #d6dde6; } .board li:nth-child(3) .pos { color: #e09a5a; }
.board img { width: 32px; height: 32px; border-radius: 6px; image-rendering: pixelated; }
.board .val { font-weight: 700; color: var(--gold); }
.empty { text-align: center; padding: 48px 24px; }
.empty .ic { font-size: 2.4rem; margin-bottom: 8px; }

/* alt bilgi */
footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 36px 0 44px; color: var(--dim); font-size: .875rem; }
footer .wrap { display: grid; gap: 14px; }
footer .row { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: space-between; }
footer .disclaimer { font-weight: 700; letter-spacing: .02em; color: var(--muted); }
footer a { color: var(--muted); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; transition: .2s; background: var(--panel-2); border: 1px solid var(--gold); color: var(--text); padding: 10px 18px; border-radius: 12px; font-weight: 600; z-index: 50; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero p.lead { margin-inline: auto; }
  .hero .cta { justify-content: center; }
  .hero .art { width: min(260px, 70vw); grid-row: 1; }
  .grid.c3, .grid.c4, .steps { grid-template-columns: repeat(2, 1fr); }
  .doc { grid-template-columns: 1fr; gap: 16px; }
  .toc { position: static; display: flex; flex-wrap: wrap; gap: 6px; }
  .toc a { background: var(--panel); border: 1px solid var(--line); }
  .cmds { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .nav .toggle { display: block; }
  .nav ul { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; padding: 12px 16px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .nav ul.open { display: flex; }
  .grid.c2, .grid.c3, .grid.c4, .steps { grid-template-columns: 1fr; }
  .board li { grid-template-columns: 34px 28px 1fr auto; padding: 10px 12px; }
  section.block { padding: 40px 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
