:root {
  --bg: #0e1014;
  --bg2: #14181e;
  --panel: #1a1e25;
  --panel2: #22272f;
  --line: #2a3038;
  --text: #e8eadf;
  --muted: #8b9180;
  --accent: #c6f531;
  --accent-2: #d7e48a;
  --ink: #0c1006;
  --ok: #5ef2a8;
  --ok-bg: rgba(94, 242, 168, .1);
  --danger: #ff6b7a;
  --danger-bg: rgba(255, 107, 122, .1);
  --blue: #7ab4ff;
  --radius: 12px;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); }
body {
  font: 15px/1.5 Manrope, "Segoe UI", system-ui, sans-serif;
  overflow-x: hidden;
}
h1, h2, .brand, .word { font-family: Syne, Manrope, sans-serif; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }

@keyframes spin { to { transform: rotate(360deg); } }

#app { position: relative; z-index: 1; min-height: 100vh; }
.app { min-height: 100vh; }

.top {
  position: sticky; top: 0; z-index: 20;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: 10px 22px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: -.03em;
  justify-self: start;
}
.brand img.logo-mark, .logo-mark {
  width: 36px; height: 36px; border-radius: 8px;
  object-fit: contain; background: #11141a;
  border: 1px solid var(--line);
}
.brand .word {
  font-size: 18px; line-height: 1; color: var(--text);
}
.brand small { display: block; color: var(--muted); font-weight: 500; letter-spacing: .04em; font-size: 11px; margin-top: 3px; font-family: Manrope, sans-serif; }
.nav {
  justify-self: center;
  display: flex; gap: 4px; align-items: center;
  padding: 3px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.nav button, .ghost, .out {
  background: transparent; color: var(--text); border: 1px solid transparent;
  border-radius: 8px; padding: 8px 14px;
}
.ghost {
  border-color: var(--line);
  background: var(--panel);
}
.nav button:hover, .ghost:hover { color: var(--accent); background: rgba(198,245,49,.08); }
.nav button.on {
  background: var(--accent);
  color: var(--ink); border-color: transparent; font-weight: 700;
}
.who { justify-self: end; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.who-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 10px 4px 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  font-size: 13px; font-weight: 600;
}
.who-av {
  width: 26px; height: 26px; border-radius: 6px;
  display: grid; place-items: center;
  background: #11141a;
  color: var(--accent); font-style: normal; font-size: 12px; font-weight: 800;
}
.who-name { display: flex; flex-direction: column; line-height: 1.15; }
.who-name small { color: var(--muted); font-size: 10px; font-weight: 500; }
.out {
  border: 1px solid rgba(255,107,122,.28);
  background: rgba(255,107,122,.08);
  color: #ff9aa4;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
}
.out:hover { border-color: var(--danger); color: #fff; background: rgba(255,107,122,.2); }
@media (max-width: 860px) {
  .top { grid-template-columns: 1fr auto; padding: 10px 14px; }
  .nav { grid-column: 1 / -1; justify-self: stretch; justify-content: center; }
  .who-name { display: none; }
}
.wrap { max-width: 1280px; margin: 0 auto; padding: 28px 20px 80px; }
h1 { font-size: 28px; letter-spacing: -.03em; margin: 0 0 6px; }
h2 { font-size: 16px; margin: 0 0 10px; }
.lead { color: var(--muted); margin: 0 0 26px; max-width: 640px; }

.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 28px; }
.login-card {
  width: min(420px, 100%); padding: 32px 28px 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.login-hero { display: grid; justify-items: center; text-align: center; margin-bottom: 22px; }
.login-hero .logo-mark {
  width: 80px; height: 80px; border-radius: 14px; object-fit: contain;
  background: #11141a;
}
.login-hero .word { font-size: 26px; font-weight: 800; margin-top: 14px; letter-spacing: -.04em;
  color: var(--text);
}
.login-hero p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }

.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
}
label { display: block; font-size: 12px; color: var(--muted); margin: 12px 0 6px; letter-spacing: .08em; text-transform: uppercase; }
input, select, textarea {
  width: 100%; background: rgba(5,6,10,.65); color: var(--text); border: 1px solid var(--line);
  border-radius: 12px; padding: 11px 12px;
}
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }
.primary {
  margin-top: 16px; background: var(--accent);
  color: var(--ink); border: 0; border-radius: 10px; padding: 11px 16px; font-weight: 700;
}
.primary:hover { filter: brightness(1.06); }
.primary.sm, .ghost.sm, .danger.sm { width: auto; margin: 0; padding: 8px 12px; font-size: 13px; }
.danger {
  background: var(--danger-bg); color: var(--danger); border: 1px solid transparent;
  border-radius: 10px; padding: 8px 12px;
}
.danger:hover { border-color: var(--danger); }
.err { color: var(--danger); font-size: 13px; min-height: 1.2em; margin-top: 10px; }
.okmsg { color: var(--ok); font-size: 13px; margin: 0 0 16px; }
.warn { color: #e6c35c; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.prod {
  position: relative; overflow: hidden; text-align: left; color: inherit; width: 100%;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 0;
}
.prod:hover { border-color: #3d4652; }
.prod.taken {
  opacity: .78;
  border-color: rgba(255,107,122,.22);
}
.prod.taken:hover { border-color: rgba(255,107,122,.4); }
.prod .cover {
  height: 148px; background: #0a0c10 center/cover no-repeat;
  position: relative;
}
.prod .cover::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,13,18,.95) 0%, transparent 55%);
}
.prod .cover.fit-logo {
  background-color: #0a0c10;
}
.prod .cover.fit-logo::after {
  background: linear-gradient(to top, rgba(10,13,18,.4) 0%, transparent 35%);
}
.prod .cover img.logo {
  position: absolute; left: 16px; bottom: 14px; z-index: 1; height: 22px; width: auto;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.5));
}
.prod .body { padding: 8px 18px 18px; }
.prod h2 { font-size: 20px; margin: 0 0 6px; }
.prod .desc { color: var(--muted); font-size: 13px; margin: 0 0 12px; min-height: 38px; }
.meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; padding: 4px 9px; border-radius: 999px;
  background: var(--panel2); color: var(--muted); border: 1px solid var(--line);
  letter-spacing: .02em;
}
.badge.on { background: var(--ok-bg); color: var(--ok); border-color: rgba(94,242,168,.35); }
.badge.off { background: var(--danger-bg); color: var(--danger); border-color: rgba(255,107,122,.25); }
.badge.kw { background: #1a1f14; color: var(--accent); border-color: rgba(198,245,49,.25); }

.hero {
  display: grid;
  grid-template-columns: minmax(280px, 1.1fr) minmax(340px, .9fr);
  gap: 22px;
  margin-bottom: 24px;
  align-items: stretch;
}
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; } }
.hero > .card { min-width: 0; }
.hero-art {
  min-height: 240px; max-height: 360px; align-self: stretch;
  border-radius: 12px; border: 1px solid var(--line);
  background: #0a0c10 center/cover no-repeat; position: relative; overflow: hidden;
}
.prod-manage { margin-top: 8px; }
.hero-art::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(7,8,11,.55), transparent 50%);
}
.hero-art .logo { position: absolute; left: 22px; bottom: 18px; height: 28px; z-index: 1; }

.power {
  display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0 8px;
}
.power .go {
  flex: 1; min-width: 140px; border: 0; border-radius: 12px; padding: 14px 16px; font-weight: 800;
}
.power .go.on { background: var(--accent); color: var(--ink); }
.power .go.off { background: var(--danger); color: #fff; }
.power .go.cf { background: #7ab4ff; color: #061018; }

.svc-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  margin: 0 0 16px;
}
.svc-sum { color: var(--muted); font-size: 14px; }
.svc-sum b { color: var(--ok); font-size: 20px; font-family: Syne, Manrope, sans-serif; margin-right: 4px; }
.svc-sum span { opacity: .45; margin: 0 6px; }
.svc-filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.svc-filters button {
  border: 1px solid var(--line); background: var(--panel); color: var(--muted);
  border-radius: 999px; padding: 7px 13px; font-size: 13px; font-weight: 600;
}
.svc-filters button.on { background: var(--ok-bg); color: var(--ok); border-color: rgba(94,242,168,.4); }
.svc-table tr.svc-on td:first-child b { color: var(--ok); }
.svc-acts { white-space: nowrap; }
.svc-acts .go {
  border: 0; border-radius: 10px; padding: 8px 14px; font-weight: 800; font-size: 13px;
}
.svc-acts .go.on { background: var(--accent); color: var(--ink); }
.svc-acts .go.off { background: var(--danger); color: #fff; }
.svc-acts .go:disabled { opacity: .45; cursor: wait; }

.domain {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; text-align: left; background: var(--panel); border: 1px solid var(--line);
  border-radius: 12px; padding: 16px 18px; color: inherit; margin-bottom: 10px;
}
.domain:hover { border-color: var(--accent); }
.domain.on { border-color: var(--ok); background: var(--ok-bg); }
.domain .host { font-weight: 700; font-size: 15px; }
.domain .hint { display: block; color: var(--muted); font-size: 12px; font-weight: 500; }
.domain-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-end; }
.cf-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 0 0 28px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}
.cf-box .rent-note { margin: 0; flex: 1; min-width: 180px; }
.cf-box b { color: var(--text); }
.cf-pop {
  position: fixed; inset: 0; z-index: 80;
  display: grid; place-items: center;
  padding: 22px;
  background: rgba(12, 14, 17, .82);
}
.cf-pop-card {
  width: min(440px, 100%);
  padding: 24px 22px 20px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel2);
}
.cf-pop-card h2 { margin: 0 0 10px; font-size: 22px; }
.cf-pop-card p { margin: 0 0 18px; color: var(--muted); line-height: 1.55; }
.cf-pick { display: flex; flex-direction: column; gap: 8px; margin: 0 0 16px; }
.cf-pick .go { width: 100%; }
.cf-pop-wait {
  width: 36px; height: 36px; border-radius: 50%;
  border: 3px solid rgba(198,245,49,.18);
  border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
}

.rent-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 8px 0 28px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}
.rent-box.busy { border-color: rgba(255,107,122,.28); }
.rent-box.mine { border-color: rgba(94,242,168,.28); }
.rent-note {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
  flex: 1;
  min-width: 180px;
}
.rent-note.on { color: var(--ok); }
.rent-note.off { color: #ff9aa4; }
.rent-btn {
  appearance: none;
  width: auto;
  min-width: 112px;
  border: 0;
  border-radius: 12px;
  padding: 11px 20px;
  font-family: Manrope, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  background: #c6f531;
  color: #0c1006;
}
.rent-btn:hover { filter: brightness(1.05); }
.rent-btn.stop {
  background: #ff6b7a;
  color: #fff;
}
.rent-busy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  padding: 11px 20px;
  border-radius: 12px;
  font-family: Manrope, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  color: #ff9aa4;
  background: rgba(255,107,122,.1);
  border: 1px solid rgba(255,107,122,.32);
}

.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; margin: 12px 0 16px; }
.row > * { flex: 1; min-width: 160px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--line); }
.table th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.track-url { max-width: 560px; word-break: break-all; white-space: normal; font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; }
.track-ip { font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
.track-kind { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.track-kind.login { color: var(--accent); }
.track-sub { display: block; color: var(--muted); font-size: 11px; font-weight: 500; margin-top: 2px; }
.checks { display: flex; flex-wrap: wrap; gap: 10px; }
.checks label { margin: 0; color: var(--text); display: flex; gap: 6px; align-items: center; text-transform: none; letter-spacing: 0; font-size: 14px; }
.checks input { width: auto; }
.back { margin-bottom: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: #1a1f14; border: 1px solid rgba(198,245,49,.2); color: var(--accent);
  border-radius: 999px; padding: 4px 10px; font-size: 12px;
}
.chip button { background: none; border: 0; color: inherit; padding: 0; font-size: 14px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }
.file {
  border: 1px dashed var(--line); border-radius: 12px; padding: 14px; background: rgba(5,6,10,.45);
}
.file input { border: 0; padding: 0; background: transparent; }
.preview { height: 90px; object-fit: cover; border-radius: 10px; margin-top: 8px; width: 100%; background: #000; }
.kvs { display: grid; gap: 8px; margin: 12px 0 0; }
.kvs div { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 13px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.kvs b { color: var(--text); font-weight: 600; }
.section { margin-top: 28px; }
.lc-box {
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line);
}
.lc-box h2 { color: var(--accent); }
.lc-box .muted { color: var(--muted); font-weight: 500; }
.chat-prov { display: grid; gap: 6px; margin: 0 0 12px; }
.chat-prov .chkline { margin-top: 0; }
.bot-note {
  margin: 14px 0 8px; padding: 12px 14px; border-radius: 12px;
  background: rgba(198, 245, 49, .08); border: 1px solid rgba(198, 245, 49, .28);
}
.bot-note p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.bot-note code { color: var(--accent); }
.kasa-bal { font-size: 28px; font-weight: 800; letter-spacing: -.03em; margin: 0 0 12px; }
.kasa-bal small { font-size: 14px; color: var(--muted); font-weight: 600; }
.iban-wrap { overflow-x: auto; margin: 8px 0 12px; }
.iban-table input { padding: 7px 8px; min-width: 90px; }
.iban-table td { vertical-align: middle; }
.iban-table .chk, .chkline { text-transform: none; letter-spacing: 0; color: var(--text); }
.chkline { display: flex; align-items: center; gap: 8px; margin-top: 22px; }
.remember { margin: 16px 0 4px; text-transform: none; letter-spacing: 0; color: var(--text); font-size: 14px; }
.auth-switch {
  width: 100%; margin-top: 12px; text-align: center; background: transparent;
}
.chkline input, .iban-table .chk input { width: auto; }

/* crypto adres satirlari */
.cr-row { display:flex; align-items:center; gap:10px; margin-top:8px; }
.cr-row .cr-cur { min-width:96px; font-weight:700; font-size:13px; padding:6px 10px; border:1px solid #2a2f3a; border-radius:8px; text-align:center; background:#161a22; color:#9aa4b2; letter-spacing:.4px; }
.cr-row.on .cr-cur { border-color:#2f9e44; color:#51cf66; background:#0f1f14; }
.cr-row .cr-addr { flex:1; }
.cr-row button { flex-shrink:0; }

/* ============================================================
   HOME LAYOUT + DUYURULAR (community announcements rail)
   ============================================================ */
.home-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 26px;
  align-items: start;
}
.home-main { min-width: 0; }
.page-head { position: relative; margin-bottom: 22px; }
.page-head h1 {
  color: var(--text);
  width: max-content; max-width: 100%;
}
.page-head .lead { margin-bottom: 0; }

/* rail shell */
.ann-rail {
  position: sticky; top: 84px;
  display: flex; flex-direction: column; gap: 14px;
  max-height: calc(100vh - 104px);
}
.ann-head {
  display: flex; align-items: center; gap: 10px;
  padding: 4px 2px;
}
.ann-head h2 {
  margin: 0; font-size: 18px; letter-spacing: -.02em;
  color: var(--text);
}
.ann-live {
  width: 8px; height: 8px; border-radius: 50%; background: var(--ok);
}
.ann-count {
  margin-left: auto; font-size: 12px; font-weight: 700; color: var(--ink);
  background: var(--accent);
  min-width: 24px; height: 24px; padding: 0 8px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
}

/* compose */
.ann-compose { }
.ann-new {
  width: 100%; text-align: center;
  border: 1px dashed var(--line);
  background: var(--panel); color: var(--accent);
  border-radius: 10px; padding: 12px 14px; font-weight: 700;
}
.ann-new:hover { background: var(--panel2); border-color: var(--accent); }
.ann-form {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--panel2); border: 1px solid var(--line);
  border-radius: 12px; padding: 14px;
}
.ann-form input, .ann-form textarea { margin: 0; }
.ann-form textarea { min-height: 84px; }
.ann-form-row { display: flex; align-items: center; gap: 10px; }
.ann-form-row .ann-tag-in { flex: 1; }
.ann-pin-chk {
  margin: 0; display: inline-flex; align-items: center; gap: 6px;
  text-transform: none; letter-spacing: 0; color: var(--text); font-size: 13px; white-space: nowrap;
}
.ann-pin-chk input { width: auto; }
.ann-form-actions { display: flex; gap: 8px; }
.ann-form-actions .primary, .ann-form-actions .ghost { margin: 0; }

/* stream */
.ann-stream {
  display: flex; flex-direction: column; gap: 12px;
  overflow-y: auto; padding: 2px 4px 4px 2px; margin: -2px -4px -4px -2px;
  scrollbar-width: thin; scrollbar-color: rgba(198,245,49,.3) transparent;
}
.ann-stream::-webkit-scrollbar { width: 8px; }
.ann-stream::-webkit-scrollbar-thumb { background: rgba(198,245,49,.25); border-radius: 8px; }

.ann {
  position: relative; overflow: hidden;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 12px; padding: 14px 16px;
}
.ann::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--accent);
  opacity: .45;
}
.ann:hover { border-color: #3d4652; }
.ann.pinned {
  border-color: rgba(198,245,49,.35);
  background: var(--panel2);
}
.ann.pinned::before { opacity: 1; }
.ann-top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.ann-av {
  width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0;
  display: grid; place-items: center; font-weight: 800; font-size: 13px;
  background: #11141a; color: var(--accent);
}
.ann-meta { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.ann-author { font-weight: 700; font-size: 13px; color: var(--text); }
.ann-time { font-size: 11px; color: var(--muted); }
.ann-pin { margin-left: auto; font-size: 13px; opacity: .85; }
.ann-del {
  margin-left: auto; width: 24px; height: 24px; flex-shrink: 0;
  display: grid; place-items: center; line-height: 1;
  border-radius: 8px; border: 1px solid rgba(255,107,122,.28);
  background: rgba(255,107,122,.08); color: #ff9aa4; font-size: 16px; padding: 0;
}
.ann-pin + .ann-del { margin-left: 6px; }
.ann-del:hover { background: rgba(255,107,122,.2); color: #fff; border-color: var(--danger); }
.ann-tag {
  display: inline-block; margin-bottom: 8px;
  font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px;
  background: #1a1f14; color: var(--accent); border: 1px solid rgba(198,245,49,.28);
}
.ann-title { font-size: 15px; margin: 0 0 6px; line-height: 1.35; color: var(--text); font-family: Syne, Manrope, sans-serif; }
.ann-body { margin: 0; font-size: 13px; line-height: 1.6; color: #cdd4c0; word-break: break-word; }
.ann-body a { color: var(--accent); }
.ann-empty {
  display: grid; justify-items: center; text-align: center; gap: 8px;
  padding: 30px 18px; border: 1px dashed var(--line); border-radius: 16px;
  background: rgba(255,255,255,.02); color: var(--muted);
}
.ann-empty-ic { font-size: 30px; opacity: .8; }
.ann-empty p { margin: 0; font-size: 13px; max-width: 220px; }

/* responsive: rail drops under the grid, becomes a horizontal-friendly block */
@media (max-width: 980px) {
  .home-layout { grid-template-columns: 1fr; gap: 22px; }
  .ann-rail { position: static; max-height: none; }
  .ann-stream { max-height: 520px; }
}
/* ============================================================
   MOBIL — tam uyum, yatay kayma yok
   ============================================================ */
/* Yatay tasmayi kokten engelle: hicbir sey viewport'tan genis olmasin */
html, body { max-width: 100%; overflow-x: hidden; }
.wrap, .home-layout, .home-main, .card, .prod, .rent-box, .domain, .ann, .section {
  min-width: 0; max-width: 100%;
}
/* uzun domain / adres / metinler satiri kirsin, tasmasin */
.kvs b, .kvs div, .rent-note, .domain .host, .ann-body, .ann-title,
.bot-note p, .lead, .cr-row .cr-addr, input, textarea { overflow-wrap: break-word; }

/* Header nav: kendi icinde yatay kayar, sayfayi itmez */
@media (max-width: 860px) {
  .top { gap: 10px; }
  .nav {
    flex-wrap: nowrap; overflow-x: auto; max-width: 100%;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
    justify-content: flex-start;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav button { flex: 0 0 auto; white-space: nowrap; padding: 8px 14px; }
}

/* Tablolu kartlar mobilde kendi icinde kayar (sayfa degil) */
@media (max-width: 820px) {
  .card:has(> .table) { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .iban-wrap { -webkit-overflow-scrolling: touch; }
  .table { white-space: nowrap; }
}

@media (max-width: 640px) {
  .wrap { padding: 16px 12px 88px; }
  .top { grid-template-columns: 1fr auto; padding: 9px 12px; }
  .brand { gap: 9px; min-width: 0; }
  .brand > div { min-width: 0; }
  .brand .word { font-size: 16px; }
  .brand small { font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .brand img.logo-mark, .logo-mark { width: 34px; height: 34px; }
  .who { gap: 6px; }
  .out { padding: 8px 12px; font-size: 12px; }

  h1, .page-head h1 { font-size: 25px; width: auto; max-width: 100%; }
  h2 { font-size: 15px; }
  .lead { font-size: 13.5px; margin-bottom: 18px; }

  /* urun grid tek kolon, tam genislik */
  .grid { grid-template-columns: 1fr; gap: 14px; }
  .prod { border-radius: 18px; }
  .prod .cover { height: 128px; }

  /* hero tek kolon */
  .hero { grid-template-columns: 1fr; gap: 14px; margin-bottom: 18px; }
  .hero-art { min-height: 150px; }
  .card { padding: 16px; border-radius: 16px; }

  /* form satirlari alt alta, tam genislik */
  .row { flex-direction: column; align-items: stretch; gap: 10px; margin: 10px 0 14px; }
  .row > * { width: 100%; min-width: 0; flex: 1 1 auto; }
  .split { grid-template-columns: 1fr; gap: 12px; }
  .checks { gap: 8px; }

  /* kirala kutusu dikey + buton tam genislik */
  .rent-box { flex-direction: column; align-items: stretch; gap: 12px; text-align: left; }
  .rent-note { min-width: 0; }
  .rent-btn, .rent-busy { width: 100%; min-width: 0; }
  .power { flex-direction: column; }
  .power .go { width: 100%; min-width: 0; }

  /* crypto satiri sarar */
  .cr-row { flex-wrap: wrap; gap: 8px; }
  .cr-row .cr-cur { min-width: 78px; }
  .cr-row .cr-addr { order: 3; flex-basis: 100%; }
  .cr-row button { width: 100%; }

  /* buyuk rakam tasmasin */
  .kasa-bal { font-size: 24px; overflow-wrap: anywhere; }

  /* duyurular */
  .ann-head h2 { font-size: 18px; }
  .ann-form-row { flex-direction: column; align-items: stretch; }
  .ann-pin-chk { margin-top: 2px; }
  .ann-stream { max-height: none; }
}

/* cok dar ekranlar (≤380px) icin ekstra sikilastirma */
@media (max-width: 380px) {
  .brand small { display: none; }
  .nav button { padding: 7px 12px; font-size: 13px; }
  h1, .page-head h1 { font-size: 22px; }
}

.pf-h { margin: 18px 0 10px; font-size: 15px; }
.pf-brand { display: flex; gap: 16px; margin: 0 0 14px; }
.pf-up { display: flex; flex-direction: column; gap: 8px; width: 120px; }
.pf-up img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; background: #111; }
.pf-up label { font-size: 12px; color: var(--muted); }
.pf-desk { display: grid; grid-template-columns: 240px 1fr; gap: 12px; margin-top: 18px; min-height: 320px; }
.pf-list { display: flex; flex-direction: column; gap: 6px; max-height: 420px; overflow: auto; }
.pf-list.wide { max-height: none; }
.pf-item { text-align: left; border: 1px solid var(--line); background: var(--panel2); color: var(--text); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.pf-item.on, .pf-item:hover { border-color: var(--accent); }
.pf-item small, .pf-item span { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-thread { border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; min-height: 280px; background: rgba(8,10,14,.4); }
.pf-thread-h { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.pf-thread-h small { color: var(--muted); }
.pf-msgs { flex: 1; overflow: auto; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pf-m {
  max-width: min(86%, 100%); padding: 8px 10px; border-radius: 12px;
  white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word;
  overflow: hidden; font-size: 13px; font-weight: 500; line-height: 1.4;
}
.pf-m.long { font-size: 12px; font-weight: 400; line-height: 1.45; }
.pf-m.visitor, .pf-m.meta { background: rgba(255,255,255,.06); }
.pf-m.agent { background: rgba(198,245,49,.14); margin-left: auto; }
.pf-m.note { background: rgba(240,212,138,.16); border: 1px dashed rgba(240,212,138,.45); margin-left: auto; }
.pf-m.live { opacity: .82; border: 1px dashed rgba(255,255,255,.18); }
.pf-m.live em { display: block; font-size: 10px; color: var(--muted); font-style: normal; margin-bottom: 4px; }
.pf-note-tag { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .04em; color: #e6c84a; margin-bottom: 4px; }
.pf-meta { display: flex; justify-content: flex-end; align-items: center; gap: 6px; margin-top: 4px; font-size: 10px; color: var(--muted); font-weight: 600; }
.pf-ticks { font-style: normal; letter-spacing: -1px; }
.pf-ticks.read { color: #5aa7ff; }
#pf-reply, #desk-reply { display: flex; align-items: flex-end; gap: 8px; margin-top: 10px; }
#pf-reply textarea, #desk-reply textarea {
  flex: 1; min-height: 40px; max-height: 140px; resize: none; overflow-y: auto;
  white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word;
  font-size: 13px; font-weight: 500; line-height: 1.4; border-radius: 10px;
}
#pf-reply input { flex: 1; }
@media (max-width: 820px) { .pf-desk { grid-template-columns: 1fr; } }

.fn-list { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.fn-box { border-radius: 12px; padding: 8px 10px 10px; }
.fn-box textarea {
  min-height: 72px; width: 100%; border: 0; background: transparent;
  resize: vertical; padding: 6px 0 0; box-shadow: none;
}
.fn-box textarea:focus { outline: none; box-shadow: none; }
.fn-box-h { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 700; margin-bottom: 2px; }
.fn-box.plain { background: rgba(255,255,255,.05); border: 1px solid var(--line); }
.fn-box.plain .fn-box-h { color: var(--muted); }
.fn-box.mark { background: #fff4b0; border: 1px solid #e6c84a; }
.fn-box.mark .fn-box-h, .fn-box.mark textarea { color: #1a1400; }
.fn-box.warn { background: #141414; border: 1px solid #3a3a3a; }
.fn-box.warn .fn-box-h, .fn-box.warn textarea { color: #fff; font-weight: 800; }
.fn-add { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.fn-add-mark { background: #fff4b0 !important; color: #1a1400 !important; border-color: #e6c84a !important; }
.fn-add-warn { background: #1a1a1a !important; color: #fff !important; border-color: #444 !important; }

.flash { color: var(--accent-2); font-size: 13px; margin: 8px 0 0; }
.nav button { position: relative; }
.nav-badge {
  display: inline-grid; place-items: center;
  min-width: 16px; height: 16px; padding: 0 4px; margin-left: 6px;
  border-radius: 999px; background: #ff4d5e; color: #fff;
  font: 700 10px/1 Manrope, sans-serif; vertical-align: middle;
}
.inst-btn { white-space: nowrap; }
.login-card .inst-btn { width: 100%; margin-top: 10px; }
.inst-modal {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(0,0,0,.55); display: grid; place-items: center; padding: 20px;
}
.inst-card {
  width: min(420px, 100%); background: var(--panel2); border: 1px solid var(--line);
  border-radius: 12px; padding: 22px;
}
.inst-card h3 { margin: 0 0 10px; }
.inst-card ol { margin: 0 0 16px; padding-left: 18px; color: var(--muted); }
.inst-card li { margin: 8px 0; }
.dock, .more-back { display: none; }
.wrap-desk { max-width: 720px; }
.desk-head { margin: 0 0 14px; }
.desk-head h1 { margin: 0 0 4px; letter-spacing: -.03em; }
.desk-sub { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.4; }
.desk-stats {
  display: flex; margin: 0 0 12px;
  background: #10141b; border: 1px solid #222833; border-radius: 12px; overflow: hidden;
}
.desk-stats > div {
  flex: 1; background: none; border: 0; border-right: 1px solid #222833;
  border-radius: 0; padding: 12px 6px; text-align: center;
}
.desk-stats > div:last-child { border-right: 0; }
.desk-stats b { display: block; font-size: 20px; letter-spacing: -.02em; font-family: Manrope, sans-serif; }
.desk-stats span { color: var(--muted); font-size: 11px; font-weight: 600; }
.desk-stats .fresh b { color: var(--accent); }
.desk-tabs {
  display: flex; gap: 3px; margin: 0 0 12px; padding: 3px;
  background: #10141b; border: 1px solid #222833; border-radius: 10px;
}
.desk-tabs button {
  flex: 1; height: 36px; border: 0; border-radius: 8px;
  background: transparent; color: #9aa386; font-weight: 650; font-size: 13px;
}
.desk-tabs button.on {
  background: #c6f531; color: #101408; font-weight: 750;
  box-shadow: none;
}
.desk-list { display: flex; flex-direction: column; gap: 8px; }
.desk-empty { color: var(--muted); margin: 24px 0; text-align: center; }
.desk-row {
  display: flex; align-items: center; gap: 12px; text-align: left; width: 100%;
  border: 1px solid #222833; background: #10141b; color: var(--text);
  border-radius: 12px; padding: 12px;
}
.desk-row.new { border-color: #3a4a18; }
.desk-av {
  width: 40px; height: 40px; border-radius: 10px; flex: 0 0 auto;
  display: grid; place-items: center;
  background: #1a2010; color: var(--accent); font-weight: 800; font-size: 14px;
}
.desk-av.fresh { background: #243014; }
.desk-av.chat { background: #152033; color: #8cb8ff; }
.desk-av.wait { background: #2a1418; color: #ff8b96; }
.desk-main { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.desk-line { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.desk-main b { font-size: 14px; font-weight: 750; }
.desk-main small, .desk-main em {
  color: var(--muted); font-size: 12px; font-style: normal;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.desk-ago { color: #6f7764; font-size: 11px; flex: 0 0 auto; }
.desk-tag {
  flex: 0 0 auto; font-size: 10px; font-weight: 700; letter-spacing: .02em;
  padding: 4px 7px; border-radius: 6px; background: #1a2010; color: #b8c49a;
}
.desk-tag.fresh { background: #243014; color: #c6f531; }
.desk-tag.wait { background: #2a1418; color: #ff8b96; }
.desk-th .ghost.sm { flex: 0 0 auto; }
.desk-thread {
  display: flex; flex-direction: column; min-height: calc(100vh - 220px);
  border: 1px solid #222833; border-radius: 12px; background: #0c1016; overflow: hidden;
}
.desk-th { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid #222833; }
.desk-th div { flex: 1; min-width: 0; }
.desk-th small { display: block; color: var(--muted); font-size: 12px; }
.desk-thread .pf-msgs { flex: 1; padding: 12px; }
.desk-thread .pf-m img { max-width: 180px; border-radius: 10px; }
#desk-reply { display: flex; align-items: flex-end; gap: 8px; padding: 10px; border-top: 1px solid #222833; background: #0c1016; margin-top: 0; }
#desk-reply textarea { flex: 1; min-height: 40px; max-height: 140px; border-radius: 10px; }
#desk-att, #desk-reply .primary, #pf-att-btn, #pf-reply .primary { height: 40px; border-radius: 10px; box-shadow: none; flex: 0 0 auto; }
.desk-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.desk-notify { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.desk-notify-btns { display: flex; gap: 6px; }
.desk-notify-btns button { height: 32px; padding: 0 10px; font-size: 12px; }
.desk-alerts {
  width: min(320px, 100%); max-height: 180px; overflow: auto;
  background: #10141b; border: 1px solid #222833; border-radius: 10px; padding: 8px 10px;
}
.desk-alerts b { display: block; font-size: 12px; margin-bottom: 6px; }
.desk-alerts p { margin: 0 0 6px; font-size: 12px; color: var(--muted); line-height: 1.35; overflow-wrap: anywhere; }
.desk-alerts p:last-child { margin-bottom: 0; }
.desk-alerts time { color: #6f7764; font-size: 10px; margin-right: 6px; }

@media (max-width: 860px) {
  .top { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; }
  .top .nav { display: none; }
  .brand small { display: none; }
  .who-chip { display: none; }
  .who .inst-btn { height: 36px; padding: 0 12px; font-size: 12px; font-weight: 700; }
  .out { height: 36px; padding: 0 12px; border-radius: 10px; }
  .dock {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    height: calc(58px + env(safe-area-inset-bottom));
    padding: 6px 10px env(safe-area-inset-bottom);
    background: #090c10; border-top: 1px solid #222833;
  }
  .dock button {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    border: 0; background: transparent; color: #7d866c; position: relative;
    font-size: 11px; font-weight: 650; border-radius: 10px;
  }
  .dock button svg { width: 22px; height: 22px; display: block; }
  .dock button.on { color: #c6f531; background: #141910; }
  .dock .nav-badge { position: absolute; top: 4px; right: calc(50% - 22px); }
  .wrap { padding: 16px 14px calc(86px + env(safe-area-inset-bottom)); }
  .wrap-desk { max-width: none; }
  .app-thread .dock { display: none; }
  .app-thread .top { display: none; }
  .app-thread .wrap { padding: 0 0 env(safe-area-inset-bottom); }
  .app-thread .desk-thread {
    min-height: 100vh; border: 0; border-radius: 0;
  }
  .desk-head h1 { font-size: 26px; }
  .more-back {
    display: block; position: fixed; inset: 0; z-index: 40;
    background: rgba(0,0,0,.45);
  }
  .more-sheet {
    position: absolute; left: 10px; right: 10px; bottom: calc(68px + env(safe-area-inset-bottom));
    background: #12161d; border: 1px solid #222833; border-radius: 14px; overflow: hidden;
  }
  .more-sheet button {
    display: block; width: 100%; text-align: left;
    border: 0; border-bottom: 1px solid #222833; background: transparent;
    color: var(--text); padding: 14px 16px; font-weight: 650; border-radius: 0;
  }
  .more-sheet button:last-child { border-bottom: 0; }
  .more-sheet .out { color: #ff8b96; }
  .primary {
    background: #c6f531; box-shadow: none; border-radius: 10px;
  }
}

#pf-toast {
  position: fixed; right: 16px; top: 16px; z-index: 90; display: none;
  width: min(360px, calc(100vw - 24px)); padding: 14px 16px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  color: #e8eadf; cursor: pointer;
}
#pf-toast.on { display: block; }
#pf-toast b { display: block; font-size: 14px; margin-bottom: 4px; color: var(--accent); }
#pf-toast span { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
