@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  --bg: #08070c;
  --bg-2: #0d0b13;
  --surface: #13101b;
  --surface-2: #1a1525;
  --surface-3: #241d33;
  --line: #29223a;
  --line-2: #372d4c;
  --text: #f1eef9;
  --text-2: #bfb6d3;
  --muted: #8c83a3;
  --accent: #7c3aed;
  --accent-hover: #8b5cf6;
  --accent-2: #a78bfa;
  --accent-soft: rgba(124, 58, 237, 0.16);
  --danger: #ed1b3b;
  --danger-2: #ff6b81;
  --danger-soft: rgba(237, 27, 59, 0.14);
  --ok: #2fd27a;
  --ok-soft: rgba(47, 210, 122, 0.14);
  --warn: #f5b93b;
  --warn-soft: rgba(245, 185, 59, 0.14);
  --info: #5b8cff;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  --font: "Plus Jakarta Sans", "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }

/* ---------- butonlar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text);
  font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, transform .05s;
}
.btn:hover { background: var(--surface-3); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-lg { height: 50px; padding: 0 24px; font-size: 16px; border-radius: 12px; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn-danger { color: #ff8a9b; }
.btn svg { width: 18px; height: 18px; flex: none; }
.icon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- ortak ---------- */
.container { width: min(1180px, 100% - 32px); margin: 0 auto; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .5px; }
.logo img { width: 34px; height: 34px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--line); }
.pill.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.pill.off { background: var(--surface-2); color: var(--muted); }
.pill.accent { background: var(--accent-soft); color: var(--accent-2); border-color: transparent; }
.muted { color: var(--muted); }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--surface-3); object-fit: cover; flex: none; }
.avatar.sm { width: 28px; height: 28px; }
.initials { display: grid; place-items: center; font-weight: 700; color: var(--text-2); font-size: 14px; }

/* ---------- ust menu (site) ---------- */
.site-nav { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px); background: rgba(8, 7, 12, .78); border-bottom: 1px solid rgba(41, 34, 58, .6); }
.site-nav .container { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.site-links { display: flex; gap: 4px; }
.site-links a { padding: 8px 12px; border-radius: 8px; color: var(--text-2); font-weight: 500; font-size: 14px; }
.site-links a:hover { color: var(--text); background: var(--surface); }
.nav-actions { display: flex; gap: 8px; align-items: center; }
.user-chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: 14px; }
.user-chip img { width: 30px; height: 30px; border-radius: 50%; }

/* ---------- landing ---------- */
.hero { position: relative; overflow: hidden; padding: 84px 0 64px; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto; height: 720px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(124, 58, 237, .26), transparent 70%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--accent-2); background: var(--accent-soft); padding: 6px 12px; border-radius: 999px; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(47, 210, 122, .18); }
.hero h1 { font-size: clamp(38px, 5.4vw, 64px); line-height: 1.04; margin: 18px 0 18px; letter-spacing: -1.5px; font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.lead { font-size: 18px; color: var(--text-2); max-width: 560px; margin: 0 0 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-stats { display: flex; gap: 36px; margin-top: 40px; flex-wrap: wrap; }
.hero-stats b { display: block; font-size: 26px; font-weight: 800; }
.hero-stats span { color: var(--muted); font-size: 13px; }

.mock { background: linear-gradient(180deg, var(--surface), var(--bg-2)); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 14px; transform: rotate(1.2deg); }
.mock-top { display: flex; gap: 6px; padding: 4px 6px 12px; }
.mock-top i { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-3); }
.mock-body { display: grid; grid-template-columns: 150px 1fr; gap: 12px; }
.mock-side { display: grid; gap: 6px; align-content: start; }
.mock-side div { height: 30px; border-radius: 8px; background: var(--surface-2); display: flex; align-items: center; gap: 8px; padding: 0 10px; font-size: 12px; color: var(--text-2); }
.mock-side div.on { background: var(--accent-soft); color: var(--accent-2); }
.mock-main { display: grid; gap: 10px; }
.mock-card { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mock-card b { font-size: 13px; }
.mock-card small { display: block; color: var(--muted); font-size: 11px; }
.mock-msg { background: #313338; border-radius: 10px; padding: 12px; display: flex; gap: 10px; font-size: 13px; }
.mock-msg .av { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; font-weight: 800; flex: none; }
.mock-msg .tag { background: #5865f2; color: #fff; font-size: 10px; padding: 1px 5px; border-radius: 4px; margin-left: 6px; vertical-align: 1px; }

.section { padding: 80px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); margin: 10px 0 12px; letter-spacing: -.8px; }
.section-head p { color: var(--text-2); margin: 0; font-size: 17px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; transition: border-color .2s, transform .2s; }
.feature:hover { border-color: var(--line-2); transform: translateY(-2px); }
.feature .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-2); display: grid; place-items: center; margin-bottom: 16px; }
.feature h3 { margin: 0 0 6px; font-size: 18px; }
.feature p { margin: 0; color: var(--text-2); font-size: 14.5px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.step { padding: 24px; border-radius: var(--radius); border: 1px dashed var(--line-2); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); font-weight: 800; margin-bottom: 14px; }
.step h3 { margin: 0 0 6px; font-size: 17px; }
.step p { margin: 0; color: var(--text-2); font-size: 14.5px; }
.cta-band { background: linear-gradient(120deg, #24103f, var(--surface) 60%); border: 1px solid var(--line); border-radius: 22px; padding: 48px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { margin: 0 0 6px; font-size: 30px; letter-spacing: -.5px; }
.cta-band p { margin: 0; color: var(--text-2); }
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 40px; color: var(--muted); font-size: 14px; }
.site-footer .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a:hover { color: var(--text); }
.alert-banner { background: var(--warn-soft); color: var(--warn); border: 1px solid rgba(245,185,59,.3); padding: 12px 16px; border-radius: 12px; margin: 16px auto 0; width: min(1180px, 100% - 32px); font-size: 14px; }

/* komut sayfasi */
.cmd-toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.search { position: relative; flex: 1 1 260px; }
.search input { width: 100%; height: 44px; padding: 0 14px 0 40px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); }
.search svg { position: absolute; left: 13px; top: 12px; width: 20px; height: 20px; color: var(--muted); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab { height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text-2); font-size: 13px; font-weight: 600; cursor: pointer; }
.tab.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.cmd-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.cmd { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.cmd code { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; color: var(--accent-2); font-weight: 700; font-size: 14px; }
.cmd p { margin: 4px 0 0; color: var(--text-2); font-size: 14px; }

/* ---------- panel duzeni ---------- */
.app { display: grid; grid-template-columns: 272px 1fr; min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--bg-2); border-right: 1px solid var(--line); padding: 16px 12px 24px; display: flex; flex-direction: column; gap: 14px; }
.sidebar .logo { padding: 4px 8px; }
.guild-switch { position: relative; }
.guild-btn { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); cursor: pointer; text-align: left; }
.guild-btn:hover { border-color: var(--line-2); }
.guild-btn .name { flex: 1; min-width: 0; font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.guild-icon { width: 36px; height: 36px; border-radius: 10px; background: var(--surface-3); object-fit: cover; flex: none; }
.guild-menu { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; max-height: 340px; overflow-y: auto; }
.guild-menu a { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 8px; font-size: 14px; font-weight: 600; }
.guild-menu a:hover { background: var(--surface-2); }
.guild-menu .guild-icon { width: 28px; height: 28px; border-radius: 8px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-group-title { font-size: 11px; font-weight: 800; letter-spacing: .9px; text-transform: uppercase; color: var(--muted); padding: 0 10px; margin: 16px 0 4px; }
.nav-group-title:first-child { margin-top: 0; }
.nav-item { display: flex; align-items: center; gap: 11px; padding: 7px 10px; border-radius: 9px; color: var(--text-2); font-size: 14px; font-weight: 600; }
.nav-item:hover { background: var(--surface-2); color: var(--text); }
.nav-item.active { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(124, 58, 237, .28); }
.nav-item.active .icon { color: #fff; }
.nav-item .label { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Modul durumu: acik = yesil tik, kapali = bos halka */
.nav-item .state { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; flex: none; }
.nav-item .state .icon { width: 10px; height: 10px; stroke-width: 3.5; color: #06180d; opacity: 0; }
.nav-item .state.on { background: var(--ok); border-color: var(--ok); }
.nav-item .state.on .icon { opacity: 1; }
.nav-item.active .state:not(.on) { border-color: rgba(255, 255, 255, .45); }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; padding: 0 28px; background: rgba(8, 7, 12, .85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.crumbs { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; min-width: 0; }
.crumbs b { color: var(--text); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu-toggle { display: none; }
.content { padding: 28px; width: 100%; max-width: 1100px; margin: 0 auto 120px; }
.page-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 22px; }
.page-head .ic { width: 52px; height: 52px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-2); display: grid; place-items: center; flex: none; }
.page-head .ic .icon { width: 26px; height: 26px; }
.page-head h1 { margin: 0; font-size: 26px; letter-spacing: -.4px; }
.page-head p { margin: 2px 0 0; color: var(--text-2); }
.page-head .grow { flex: 1; min-width: 0; }
/* Telefonda baslik yanindaki dugmeler alt satira iner; baslik daralmaz. */
@media (max-width: 640px) {
  .page-head { flex-wrap: wrap; }
  .page-head > .grow { flex: 1 1 200px; }
  .page-head > .send-actions { flex: 1 1 100%; }
  .picker-page .section { padding: 28px 0 40px; }
}

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 16px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.card-head h2 { margin: 0; font-size: 16px; }
.card-head p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.card-head.clickable { cursor: pointer; }
.card.collapsed .card-head { border-bottom: 0; }
.card.collapsed .card-body { display: none; }
.card-body { padding: 18px 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.card-note { grid-column: 1 / -1; font-size: 13px; color: var(--muted); background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.card.disabled-module { opacity: .5; pointer-events: none; }

/* alanlar */
.field { grid-column: 1 / -1; display: grid; gap: 7px; min-width: 0; align-content: start; }
.field.half { grid-column: span 1; }
.field > label, .field-label { font-weight: 600; font-size: 14px; }
.field .help { color: var(--muted); font-size: 13px; }
.field.error input, .field.error .picker-box, .field.error textarea { border-color: var(--danger); }
.field .err-text { color: var(--danger-2); font-size: 13px; }
.input, .select, .textarea {
  width: 100%; min-height: 42px; padding: 9px 12px; border-radius: 10px;
  border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); font-size: 14px;
}
.textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--accent-2); outline: none; }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 18px, calc(100% - 13px) 18px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.vars { display: flex; flex-wrap: wrap; gap: 6px; }
.var-chip { font-family: ui-monospace, Consolas, monospace; font-size: 12px; padding: 3px 8px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2); cursor: pointer; }
.var-chip:hover { border-color: var(--accent-2); color: var(--text); }
.counter { font-size: 12px; color: var(--muted); text-align: right; }

.switch-row { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 2px 0; }
.switch-row .txt b { display: block; font-weight: 600; font-size: 14px; }
.switch-row .txt span { color: var(--muted); font-size: 13px; }
.switch { position: relative; width: 44px; height: 26px; flex: none; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--line-2); transition: background .15s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #c8cfdf; transition: transform .15s, background .15s; }
.switch input:checked + span { background: var(--ok); border-color: var(--ok); }
.switch input:checked + span::after { transform: translateX(18px); background: #fff; }
.switch input:focus-visible + span { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.switch.lg { width: 52px; height: 30px; }
.switch.lg span::after { width: 22px; height: 22px; }
.switch.lg input:checked + span::after { transform: translateX(22px); }

/* secici (kanal/rol) */
.picker { position: relative; }
.picker-box { min-height: 42px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 6px 36px 6px 8px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg-2); cursor: pointer; position: relative; }
.picker-box::after { content: ""; position: absolute; right: 14px; top: 17px; width: 7px; height: 7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); }
.picker.open .picker-box { border-color: var(--accent-2); }
.picker-placeholder { color: var(--muted); font-size: 14px; padding-left: 4px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 6px 3px 8px; border-radius: 7px; background: var(--surface-2); border: 1px solid var(--line-2); font-size: 13px; font-weight: 600; max-width: 100%; }
.chip .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.chip .x { width: 18px; height: 18px; border: 0; background: transparent; color: var(--muted); cursor: pointer; border-radius: 4px; padding: 0; font-size: 15px; line-height: 1; }
.chip .x:hover { color: var(--text); background: var(--surface-3); }
.chip-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picker-single { display: flex; align-items: center; gap: 8px; padding-left: 4px; font-size: 14px; font-weight: 600; min-width: 0; }
.picker-pop { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 40; background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; }
.picker-pop input { width: 100%; height: 42px; padding: 0 12px; border: 0; border-bottom: 1px solid var(--line); background: transparent; outline: none; }
.picker-list { max-height: 260px; overflow-y: auto; padding: 6px; }
.picker-group { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; padding: 8px 8px 4px; }
.picker-opt { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 8px; cursor: pointer; font-size: 14px; }
.picker-opt:hover, .picker-opt.hl { background: var(--surface-2); }
.picker-opt.selected { color: var(--ok); }
.picker-opt .warn { margin-left: auto; font-size: 11px; color: var(--warn); }
.picker-opt .prefix { color: var(--muted); width: 16px; text-align: center; flex: none; }
.picker-empty { padding: 14px; color: var(--muted); font-size: 14px; text-align: center; }
.picker-clear { margin-left: auto; }

/* etiket girisi */
.tags-box { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px 8px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg-2); min-height: 42px; align-items: center; cursor: text; }
.tags-box input { flex: 1; min-width: 140px; border: 0; background: transparent; outline: none; height: 28px; }

/* liste (tekrarlanan satirlar) */
.list { display: grid; gap: 10px; }
.list-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); }
.list-row .sub { display: grid; gap: 5px; flex: 1 1 150px; min-width: 0; }
.list-row .sub.wide { flex: 3 1 260px; }
.list-row .sub.check { flex: 0 0 auto; align-self: flex-end; }
.list-row > .btn { align-self: flex-end; height: 42px; }
.list-row .sub .textarea { min-height: 70px; }
.list-row .sub.t-datetime { flex: 1 1 220px; min-width: 210px; }
.list-row .sub.t-color { flex: 0 0 90px; }
.list-row .sub.t-number { flex: 1 1 120px; }
.action-row { display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
.action-row .grow { flex: 1 1 240px; min-width: 0; }
.list-row .sub label { font-size: 12px; color: var(--muted); font-weight: 600; }
.list-row .check-label { display: inline-flex; gap: 6px; align-items: center; height: 42px; font-size: 13px; color: var(--text-2); cursor: pointer; }
.list-row .check-label input { width: 16px; height: 16px; accent-color: var(--ok); }
.list-empty { padding: 16px; text-align: center; color: var(--muted); border: 1px dashed var(--line-2); border-radius: 12px; font-size: 14px; }

/* discord onizleme */
.preview { background: #313338; border-radius: 10px; padding: 12px 14px; display: flex; gap: 12px; }
.preview .av { width: 40px; height: 40px; border-radius: 50%; flex: none; }
.preview .who { font-weight: 600; font-size: 15px; }
.preview .who .tag { background: #5865f2; color: #fff; font-size: 10px; padding: 1px 5px; border-radius: 4px; margin-left: 6px; vertical-align: 2px; font-weight: 700; }
.preview .msg { white-space: pre-wrap; word-break: break-word; color: #dbdee1; font-size: 15px; }
.preview .mention, .mock-msg .mention { background: rgba(88, 101, 242, .3); color: #c9cdfb; border-radius: 3px; padding: 0 2px; }
.preview-label { font-size: 12px; color: var(--muted); font-weight: 600; }

/* kaydet cubugu */
.savebar { position: fixed; left: calc(272px + 50%); bottom: 20px; transform: translate(-50%, 140%); transition: transform .25s ease; z-index: 60; width: min(760px, calc(100% - 272px - 40px)); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 12px 12px 20px; border-radius: 14px; background: #0f1219; border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.savebar { visibility: hidden; }
.savebar.show { transform: translate(-50%, 0); visibility: visible; }
.savebar.shake { animation: shake .35s; }
.savebar b { font-size: 14px; }
.savebar .acts { display: flex; gap: 8px; }
@keyframes shake { 20%, 60% { transform: translate(calc(-50% - 6px), 0); } 40%, 80% { transform: translate(calc(-50% + 6px), 0); } }

/* istatistik / tablolar */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.stat span { color: var(--muted); font-size: 13px; font-weight: 500; }
.stat b { display: block; font-size: 26px; font-weight: 800; margin-top: 2px; letter-spacing: -.5px; }
.module-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.module-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.module-card .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.module-card .ic { width: 38px; height: 38px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; color: var(--text-2); }
.module-card.on .ic { background: var(--accent-soft); color: var(--accent-2); }
.module-card h3 { margin: 0; font-size: 15px; }
.module-card p { margin: 0; color: var(--muted); font-size: 13px; flex: 1; }
.module-card a { color: var(--text-2); font-size: 13px; font-weight: 600; }
.module-card a:hover { color: var(--text); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; padding: 10px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 11px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.table .who b { font-weight: 600; }
.table .who small { display: block; color: var(--muted); font-size: 12px; }
.rank { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-weight: 800; background: var(--surface-2); font-size: 13px; }
.rank.r1 { background: #f5b93b; color: #1b1300; }
.rank.r2 { background: #c9d1e0; color: #151923; }
.rank.r3 { background: #d98b4c; color: #1b0d00; }
.empty { padding: 36px 20px; text-align: center; color: var(--muted); }
.empty .icon { width: 36px; height: 36px; margin: 0 auto 10px; opacity: .6; }
.pager { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); }
.bar { height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; margin-top: 6px; }
.bar i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.warn-box { display: flex; gap: 12px; align-items: flex-start; background: var(--warn-soft); border: 1px solid rgba(245, 185, 59, .3); color: #f7d38a; border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; font-size: 14px; }

/* komut yonetimi */
.cmd-row { display: flex; align-items: center; gap: 14px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.cmd-row:last-child { border-bottom: 0; }
.cmd-row .grow { flex: 1; min-width: 0; }
.cmd-row code { font-family: ui-monospace, Consolas, monospace; font-weight: 700; font-size: 14px; }
.cmd-row p { margin: 2px 0 0; color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmd-row .restrict { font-size: 12px; color: var(--warn); }
.cmd-detail { padding: 16px 18px; background: var(--bg-2); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cmd-detail .acts { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; }

/* sunucu secimi */
.picker-page { min-height: 100vh; }
.guild-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.guild-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; transition: border-color .2s, transform .2s; }
.guild-card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.guild-card .banner { height: 86px; position: relative; background: linear-gradient(135deg, var(--surface-3), var(--surface-2)); overflow: hidden; }
.guild-card .banner img.bg { position: absolute; inset: -20px; width: calc(100% + 40px); height: calc(100% + 40px); object-fit: cover; filter: blur(24px) brightness(.6); }
.guild-card .gi { position: relative; margin: -30px 0 0 16px; width: 60px; height: 60px; border-radius: 16px; border: 4px solid var(--surface); background: var(--surface-3); object-fit: cover; }
.guild-card .gi.initials { font-size: 20px; }
.guild-card .body { padding: 10px 16px 16px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.guild-card h3 { margin: 0; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.guild-card .btn { width: 100%; }

.center-screen { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 24px; }
.center-screen h1 { margin: 12px 0 8px; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--surface-3); border-top-color: var(--accent); animation: spin .8s linear infinite; margin: 0 auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 50%, var(--surface) 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: var(--radius); }
@keyframes sk { to { background-position: -200% 0; } }

.toasts { position: fixed; right: 20px; top: 20px; z-index: 100; display: grid; gap: 8px; }
.toast { min-width: 240px; max-width: 360px; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow); font-size: 14px; display: flex; gap: 10px; align-items: flex-start; animation: tin .2s ease; }
.toast.ok { border-left: 4px solid var(--ok); }
.toast.err { border-left: 4px solid var(--danger); }
@keyframes tin { from { transform: translateY(-8px); opacity: 0; } }

.overlay { display: none; }

/* genel bakis: sunucu bilgileri */
.info-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.info-title .guild-icon { width: 40px; height: 40px; }
.info-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.info-item { padding: 14px 20px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); min-width: 0; }
.info-item:nth-child(3n) { border-right: 0; }
.info-item:nth-last-child(-n + 3) { border-bottom: 0; }
.info-item span { display: block; color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; }
.info-item b { display: block; font-size: 15px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.info-item small { display: block; color: var(--text-2); font-size: 12.5px; margin-top: 1px; }

/* grafikler (koyu yuzey icin dogrulanmis kategorik adimlar) */
:root { --series-1: #3987e5; --series-2: #d95926; }
.viz-body { padding: 12px 20px 16px; }
.viz { position: relative; }
.viz-svg { width: 100%; height: auto; display: block; }
.viz-grid { stroke: var(--line); stroke-width: 1; }
.viz-base { stroke: var(--line-2); stroke-width: 1; }
.viz-axis { fill: var(--muted); font-size: 11px; font-family: var(--font); }
.viz-hit { fill: transparent; cursor: default; }
.viz-hit.on { fill: rgba(255, 255, 255, .04); }
.viz-tip { position: absolute; top: 4px; transform: translateX(-50%); background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 8px 10px; font-size: 13px; pointer-events: none; box-shadow: var(--shadow); white-space: nowrap; z-index: 2; }
.viz-tip-row { display: flex; align-items: center; gap: 6px; color: var(--text-2); }
.viz-tip-row i, .viz-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.viz-legend { display: flex; gap: 14px; font-size: 13px; color: var(--text-2); }
.viz-legend span { display: inline-flex; align-items: center; gap: 6px; }
.viz-table { margin-top: 10px; font-size: 13px; }
.viz-table summary { cursor: pointer; color: var(--muted); }
.viz-table .table-wrap { max-height: 260px; overflow-y: auto; margin-top: 8px; }

/* kayit kartlari (oneri / itiraz / uyari) */
.rec-filter { max-width: 320px; margin-bottom: 14px; }
.rec-list { display: grid; gap: 12px; }
.rec { padding: 14px 18px; margin: 0; display: grid; gap: 10px; }
.rec-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rec-head .who { display: flex; align-items: center; gap: 10px; min-width: 0; margin-right: auto; }
.rec-head .who b { font-weight: 600; font-size: 14px; }
.rec-head .who small { display: block; color: var(--muted); font-size: 12px; }
.rec-votes { font-size: 13px; color: var(--text-2); }
.rec-time { font-size: 12px; }
.rec-id { font-family: ui-monospace, Consolas, monospace; font-size: 12px; color: var(--muted); }
.rec-text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.rec-note { font-size: 14px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.rec-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.rec-actions .grow { flex: 1 1 220px; }
.rec-actions .rec-select { flex: 0 0 180px; }
.rec-answers { display: grid; gap: 8px; }
.rec-answers b { font-size: 13px; color: var(--text-2); }
.rec-answers p { margin: 2px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.rec-history { display: grid; gap: 4px; font-size: 13px; color: var(--text-2); }
.btn-ok { background: var(--ok-soft); border-color: transparent; color: var(--ok); }
.btn-ok:hover { background: rgba(47, 210, 122, .22); }
.btn-danger-solid { background: var(--danger-soft); border-color: transparent; color: #ff8a9b; }
.btn-danger-solid:hover { background: rgba(237, 27, 59, .24); }
.warn-list { display: grid; gap: 6px; }
.warn-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line); font-size: 14px; }
.warn-item .grow { flex: 1; min-width: 0; }

/* liste satiri: tarih ipucu ve durum */
.dt-hint { font-size: 12px; color: var(--muted); }
.dt-hint.past { color: var(--warn); }
.list-row .sub.t-status { flex: 0 0 auto; }
.list-row .sub.t-status .pill { height: 42px; padding: 0 12px; border-radius: 10px; }

/* ---------- embed gonderici ---------- */
.embed-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 16px; align-items: start; }
.embed-side { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow-y: auto; overscroll-behavior: contain; }
.embed-preview-body { padding: 14px; }
.card-body.one { grid-template-columns: 1fr; }
.card-body > .list { grid-column: 1 / -1; }
.head-tools { display: flex; align-items: center; gap: 8px; }
.field-foot { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.md-toolbar { display: flex; flex-wrap: wrap; gap: 6px; }
.md-toolbar .dc-t-b { font-weight: 800; }
.md-toolbar .dc-t-i { font-style: italic; }
.md-toolbar .dc-t-u { text-decoration: underline; }
.md-toolbar .dc-t-s { text-decoration: line-through; }
.color-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.color-row .input { width: 120px; flex: none; font-family: ui-monospace, Consolas, monospace; }
.color-swatch { width: 42px; height: 42px; padding: 3px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg-2); cursor: pointer; flex: none; }
.swatches { display: flex; gap: 6px; flex-wrap: wrap; }
.swatches .sw { width: 24px; height: 24px; border-radius: 7px; border: 1px solid rgba(255, 255, 255, .18); cursor: pointer; padding: 0; }
.swatches .sw:hover { transform: scale(1.1); }
.row-tools { display: flex; gap: 2px; align-self: flex-end; }
.list-row .sub.error .input { border-color: var(--danger); }
.edit-banner { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: rgba(91, 140, 255, .12); border: 1px solid rgba(91, 140, 255, .3); font-size: 14px; }
.edit-banner .grow { flex: 1; min-width: 0; }
.edit-banner .dc-link { color: #8fb0ff; }
.send-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.send-actions .btn { flex: 1 1 auto; }

/* discord mesaj onizlemesi */
.dc-wrap { background: #313338; border-radius: 10px; padding: 14px 14px 16px; }
.dc-msg { display: flex; gap: 14px; color: #dbdee1; font-size: 15px; line-height: 1.375; }
.dc-av { width: 40px; height: 40px; border-radius: 50%; flex: none; object-fit: cover; }
.dc-body { min-width: 0; flex: 1; }
.dc-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 2px; }
.dc-name { font-weight: 600; color: #f2f3f5; }
.dc-bot { background: #5865f2; color: #fff; font-size: 10px; font-weight: 700; padding: 1px 5px; border-radius: 4px; }
.dc-stamp { font-size: 12px; color: #949ba4; }
.dc-content { white-space: pre-wrap; overflow-wrap: anywhere; }
.dc-empty { color: #949ba4; font-style: italic; font-size: 14px; }
.dc-embed { margin-top: 4px; max-width: 520px; background: #2b2d31; border-left: 4px solid #1e1f22; border-radius: 4px; padding: 8px 16px 16px 12px; display: grid; gap: 0; }
.dc-embed-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
.dc-embed-main { min-width: 0; }
.dc-author { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 14px; font-weight: 600; color: #f2f3f5; }
.dc-author-ic { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.dc-author .dc-link { color: #f2f3f5; }
.dc-title { margin-top: 8px; font-size: 16px; font-weight: 600; color: #f2f3f5; overflow-wrap: anywhere; }
.dc-desc { margin-top: 8px; font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.dc-fields { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.dc-field { min-width: 0; font-size: 14px; }
.dc-fname { font-weight: 600; color: #f2f3f5; margin-bottom: 2px; overflow-wrap: anywhere; }
.dc-fvalue { white-space: pre-wrap; overflow-wrap: anywhere; }
.dc-missing { color: #f23f43; font-style: italic; font-weight: 400; font-size: 12px; }
.dc-thumb { width: 80px; height: 80px; object-fit: contain; border-radius: 4px; margin: 8px 0 0 16px; }
.dc-image { margin-top: 16px; max-width: 100%; max-height: 300px; border-radius: 4px; object-fit: contain; justify-self: start; }
.dc-footer { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 12px; color: #b5bac1; flex-wrap: wrap; }
.dc-footer-ic { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }
.dc-dot { color: #80848e; }
.dc-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.dc-btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; border-radius: 8px; background: #4e5058; color: #fff; font-size: 14px; font-weight: 500; }
.dc-btn .icon { width: 14px; height: 14px; }
.dc-link { color: #00a8fc; }
.dc-link:hover { text-decoration: underline; }
.dc-mention { background: rgba(88, 101, 242, .3); color: #c9cdfb; border-radius: 3px; padding: 0 2px; font-weight: 500; }
.dc-icode { background: #1e1f22; border-radius: 4px; padding: 0 4px; font-family: ui-monospace, Consolas, monospace; font-size: 85%; }
.dc-pre { background: #1e1f22; border: 1px solid #1e1f22; border-radius: 4px; padding: 8px; margin: 4px 0; overflow-x: auto; font-size: 13px; white-space: pre-wrap; }
.dc-pre code { font-family: ui-monospace, Consolas, monospace; }
.dc-quote { border-left: 4px solid #4e5058; padding-left: 12px; margin: 2px 0; }
.dc-h1 { font-size: 22px; font-weight: 700; color: #f2f3f5; margin: 6px 0 2px; }
.dc-h2 { font-size: 19px; font-weight: 700; color: #f2f3f5; margin: 6px 0 2px; }
.dc-h3 { font-size: 16px; font-weight: 700; color: #f2f3f5; margin: 6px 0 2px; }
.dc-sub { font-size: 12px; color: #949ba4; }
.dc-li { margin: 1px 0; }
.dc-spoiler { background: #1e1f22; color: transparent; border-radius: 4px; cursor: pointer; }
.dc-spoiler * { visibility: hidden; }
.dc-spoiler.open { background: rgba(255, 255, 255, .1); color: inherit; cursor: auto; }
.dc-spoiler.open * { visibility: visible; }
.dc-emoji { display: inline-block; width: 22px; height: 22px; vertical-align: -5px; object-fit: contain; }
.dc-time { background: rgba(255, 255, 255, .06); border-radius: 3px; padding: 0 2px; }

/* ---------- mobil ---------- */
@media (max-width: 1080px) {
  .embed-layout { grid-template-columns: 1fr; }
  .embed-side { position: static; max-height: none; overflow: visible; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .module-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .mock { transform: none; }
  .site-links { display: none; }
  .steps { grid-template-columns: 1fr; }
  .cmd-list { grid-template-columns: 1fr; }
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 290px; z-index: 80; transform: translateX(-100%); transition: transform .2s; }
  .app.nav-open .sidebar { transform: none; }
  .app.nav-open .overlay { display: block; position: fixed; inset: 0; z-index: 70; background: rgba(0, 0, 0, .55); }
  .menu-toggle { display: inline-flex; }
  .topbar { padding: 0 16px; }
  .content { padding: 20px 16px; }
  .savebar { left: 50%; width: calc(100% - 24px); bottom: 12px; }
  .split { grid-template-columns: 1fr; }
  .cmd-detail { grid-template-columns: 1fr; }
  .crumbs > span:first-child, .crumbs > svg { display: none; }
}
@media (max-width: 620px) {
  .info-grid { grid-template-columns: 1fr 1fr; }
  .info-item:nth-child(n) { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .info-item:nth-child(2n) { border-right: 0; }
  .features, .module-grid { grid-template-columns: 1fr; }
  .card-body { grid-template-columns: 1fr; }
  .field.half { grid-column: 1 / -1; }
  .hero { padding-top: 48px; }
  .cta-band { padding: 28px; }
  .nav-actions .btn-ghost { display: none; }
  .mock-body { grid-template-columns: 1fr; }
  .mock-side { display: none; }
  .savebar { flex-direction: column; align-items: stretch; }
  .savebar .acts .btn { flex: 1; }
  .topbar .user-chip { display: none; }
  .page-head h1 { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Rol secim paneli: buton duzenleyicisi */
.list-row .sub.t-buttons { flex: 1 1 100%; }
.bt-editor { display: grid; gap: 10px; }
.bt-list { display: grid; gap: 8px; }
.bt-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.bt-num { width: 18px; text-align: center; color: var(--muted); font-size: 12px; font-weight: 700; }
.bt-label { flex: 2 1 150px; min-width: 0; }
.bt-role { flex: 2 1 170px; min-width: 0; }
.bt-style-wrap { flex: 0 0 116px; }
.bt-tools { display: flex; gap: 2px; margin-left: auto; }
.bt-tools .btn { padding: 0 8px; }
.bt-style { border-left-width: 4px; }
.bt-style.s-primary { border-left-color: #5865f2; }
.bt-style.s-secondary { border-left-color: #6d6f78; }
.bt-style.s-success { border-left-color: #248046; }
.bt-style.s-danger { border-left-color: #da373c; }
.bt-emoji-wrap { position: relative; flex: 0 0 auto; }
.bt-emoji { width: 42px; height: 42px; overflow: hidden; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg-2); display: grid; place-items: center; font-size: 20px; line-height: 1; cursor: pointer; color: inherit; }
.bt-emoji:hover { border-color: var(--muted); }
.bt-emoji-empty { color: var(--muted); font-size: 18px; }
.emo { display: inline-block; line-height: 1; }
img.emo { width: 22px; height: 22px; object-fit: contain; }
.bt-emoji-pop { position: absolute; top: calc(100% + 6px); left: 0; z-index: 45; width: 300px; max-width: calc(100vw - 48px); display: grid; gap: 8px; padding: 10px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--shadow); }
.bt-emoji-title { font-size: 12px; color: var(--muted); font-weight: 600; }
.bt-emoji-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); gap: 4px; max-height: 190px; overflow-y: auto; }
.bt-emoji-grid button { height: 38px; border: 0; border-radius: 8px; background: transparent; display: grid; place-items: center; cursor: pointer; }
.bt-emoji-grid button:hover, .bt-emoji-grid button:focus-visible { background: var(--bg-2); }
.bt-emoji-grid img.emo { width: 26px; height: 26px; }
.bt-add { display: flex; align-items: center; gap: 10px; }
.bt-count { font-size: 12px; }
.bt-preview { display: grid; gap: 8px; padding: 12px 14px; border-radius: 10px; background: #313338; }
.bt-preview-title { font-size: 12px; font-weight: 600; color: #b5bac1; }
.bt-preview-row { display: flex; flex-wrap: wrap; gap: 8px; }
.dc-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; max-width: 100%; padding: 2px 16px; border-radius: 8px; font-size: 14px; font-weight: 500; color: #fff; }
.dc-btn span:not(.emo) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dc-btn.s-primary { background: #5865f2; }
.dc-btn.s-secondary { background: #4e5058; }
.dc-btn.s-success { background: #248046; }
.dc-btn.s-danger { background: #da373c; }
.dc-btn img.emo { width: 18px; height: 18px; }
@media (max-width: 640px) {
  .bt-style-wrap { flex: 1 1 100px; }
  .bt-tools { margin-left: 0; }
}
.emo-name { font-size: 11px; color: var(--muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Kutucuklar: ayar gruplari ızgarası (anahtar + özet), ayarlar pencerede */
.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; margin-bottom: 18px; }
.tile { display: flex; flex-direction: column; gap: 16px; padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: border-color .15s; }
.tile:hover { border-color: var(--line-2); }
.tile.error { border-color: var(--danger); }
.tile-head { display: flex; align-items: flex-start; gap: 12px; }
.tile-icon { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--surface-2); color: var(--text-2); }
.tile-icon svg { width: 20px; height: 20px; }
.tile-text { flex: 1; min-width: 0; display: grid; gap: 4px; }
.tile-text b { font-size: 15px; line-height: 1.3; }
.tile-summary { color: var(--muted); font-size: 12.5px; line-height: 1.4; overflow-wrap: anywhere; }
.tile.off .tile-icon { opacity: .55; }
.tile .switch { margin-top: 6px; }
.tile-edit { margin-top: auto; width: 100%; justify-content: center; background: var(--surface-2); }
.tile-edit.setup { color: var(--warn); }
dialog.tile-modal { scroll-padding: 72px 0 72px; width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 1px solid var(--line-2); border-radius: 16px; background: var(--surface); color: var(--text); box-shadow: var(--shadow); overflow: auto; }
dialog.tile-modal::backdrop { background: rgba(4, 3, 8, .72); }
.tile-modal-head { position: sticky; top: 0; z-index: 3; display: flex; align-items: flex-start; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); background: var(--surface); }
.tile-modal-head h2 { margin: 0; font-size: 17px; }
.tile-modal-head p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.tile-modal-head .grow { flex: 1; min-width: 0; }
.tile-modal-foot { position: sticky; bottom: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 20px; border-top: 1px solid var(--line); background: var(--surface); }
.tile-modal-foot .muted { font-size: 12.5px; }
.tile-modal-foot .acts { display: flex; gap: 8px; margin-left: auto; }
@media (max-width: 640px) {
  .tile-grid { grid-template-columns: 1fr; }
}

/* bot durumu (sadece bot sahibi) */
.presence-page { padding: 40px 0 80px; }
.presence-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.presence-layout .side { position: sticky; top: 84px; }
.presence-actions { display: flex; justify-content: flex-end; gap: 8px; }
.list-row .sub.t-type { flex: 0 0 170px; }
.pp { padding: 16px; display: grid; gap: 10px; }
.pp-head { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.pp-head b { display: block; font-size: 16px; }
.pp-head small { color: var(--muted); font-size: 12.5px; }
.pp-avatar { position: relative; width: 48px; height: 48px; flex: none; }
.pp-avatar img, .pp-avatar .ph { display: block; width: 48px; height: 48px; border-radius: 50%; background: var(--surface-3); }
.pp-dot { position: absolute; right: -2px; bottom: -2px; width: 17px; height: 17px; border-radius: 50%; border: 3px solid var(--surface); background: #23a55a; }
.pp-dot.idle { background: #f0b232; }
.pp-dot.dnd { background: #f23f43; }
.pp-dot.invisible { background: #80848e; }
.pp-item { background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.pp-item small { display: block; color: var(--muted); font-size: 12px; margin-bottom: 2px; }
.pp-item b { font-size: 14px; overflow-wrap: anywhere; }
.pp-note { margin: 0; font-size: 12.5px; }
@media (max-width: 900px) {
  .presence-layout { grid-template-columns: 1fr; }
  .presence-layout .side { position: static; }
}

/* dil secimi */
html.i18n-pending body { visibility: hidden; }
.nav-end { display: flex; align-items: center; gap: 8px; }
.lang-switch { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 10px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--text-2); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.lang-btn:hover, .lang-btn[aria-expanded="true"] { background: var(--surface); border-color: var(--line); color: var(--text); }
.lang-btn .icon { width: 18px; height: 18px; }
.lang-menu { position: absolute; top: calc(100% + 6px); right: 0; z-index: 60; display: grid; gap: 2px; min-width: 170px; padding: 6px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--shadow); }
.lang-menu.hidden { display: none; }
.lang-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 9px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--text-2); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.lang-item:hover, .lang-item:focus-visible { background: var(--surface-2); color: var(--text); }
.lang-item.active { color: var(--accent-2); font-weight: 600; }
.lang-item .icon { width: 16px; height: 16px; }
@media (max-width: 620px) {
  .nav-end { gap: 4px; }
  .lang-btn span { display: none; }
  .site-nav .user-chip { gap: 0; padding: 4px; font-size: 0; }
}

/* Gecici oda: kontrol paneli (arayuz) duzenleyicisi - Discord mesaji gorunumunde */
.ie { display: grid; gap: 12px; min-width: 0; }
.ie-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; }
.ie-vars { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; flex: 1 1 100%; font-size: 12px; }
.ie-canvas { padding: 16px; }
.ie-canvas .dc-body { display: grid; gap: 8px; min-width: 0; }
.ie-input { width: 100%; min-width: 0; background: #1e1f22; border: 1px solid #3f4147; border-radius: 6px; color: #dbdee1; font: inherit; font-size: 14px; line-height: 1.4; padding: 8px 10px; resize: none; }
.ie-input::placeholder { color: #80848e; }
.ie-input:focus { outline: none; border-color: var(--accent-2); box-shadow: 0 0 0 2px var(--accent-soft); }
textarea.ie-input { overflow: hidden; }
.ie-title { font-weight: 600; font-size: 15px; color: #f2f3f5; }
.ie-embed { max-width: 580px; background: #2b2d31; border-left: 4px solid #1e1f22; border-radius: 4px; padding: 12px 14px 14px 12px; display: grid; gap: 10px; }
.ie-embed-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: start; }
.ie-embed-main { display: grid; gap: 10px; min-width: 0; }
.ie-sep { height: 1px; background: #3f4147; opacity: .7; }
.ie-colors { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ie-colors-label { font-size: 12px; color: #b5bac1; margin-right: 4px; }
.ie-dot { position: relative; width: 20px; height: 20px; padding: 0; border-radius: 50%; border: 2px solid transparent; cursor: pointer; }
.ie-dot.active { border-color: #fff; }
.ie-dot:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.ie-dot-custom { overflow: hidden; background: conic-gradient(#ed4245, #fee75c, #57f287, #3ba5ff, #5865f2, #eb459e, #ed4245); }
.ie-color-input { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; opacity: 0; cursor: pointer; }
.ie-author { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr); gap: 8px; align-items: center; }
.ie-footer { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; align-items: center; }
.ie-img-wrap { position: relative; min-width: 0; }
.ie-img { display: grid; place-items: center; width: 100%; height: 100%; padding: 0; overflow: hidden; border: 1px dashed #4e5058; border-radius: 8px; background: transparent; color: #80848e; cursor: pointer; }
.ie-img:hover, .ie-img:focus-visible { border-color: #949ba4; color: #b5bac1; }
.ie-img .icon { width: 22px; height: 22px; }
.ie-img.has { border-style: solid; border-color: transparent; }
.ie-img img { width: 100%; height: 100%; object-fit: cover; }
.ie-img-round .ie-img { width: 38px; height: 38px; border-radius: 50%; }
.ie-img-sm .ie-img { width: 34px; height: 34px; }
.ie-img-thumb .ie-img { width: 80px; height: 80px; }
.ie-img-thumb .ie-img img, .ie-img-wide .ie-img img { object-fit: contain; }
.ie-img-wide .ie-img { height: 110px; }
.ie-pop { width: 320px; }
.ie-img-thumb .ie-pop { left: auto; right: 0; }
.ie-fields { display: flex; flex-wrap: wrap; gap: 10px; }
.ie-fields:empty { display: none; }
.ie-field { flex: 1 1 100%; display: grid; gap: 6px; min-width: 0; padding: 8px; border: 1px solid #3f4147; border-radius: 6px; }
.ie-field.inline { flex: 1 1 150px; }
.ie-field-head { display: flex; align-items: center; gap: 4px; }
.ie-fname { font-weight: 600; }
.ie-check { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #b5bac1; cursor: pointer; }
.ie-check input { accent-color: var(--ok); }
.ie-add-row { display: flex; justify-content: flex-end; }
.ie-btn-preview { display: grid; gap: 8px; }
.ie-btn-preview .dc-btn { font-size: 13px; font-weight: 600; }
.ie-btn-editor { display: grid; gap: 10px; }
.ie-btn-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.ie-btn-head .muted { flex: 1 1 260px; font-size: 12px; }
.ie-perrow { width: auto; min-width: 150px; }
.ie-btn-row.off { opacity: .55; }
.ie-btn-row .bt-label .help { margin-top: 4px; }
@media (max-width: 640px) {
  .ie-author { grid-template-columns: auto minmax(0, 1fr); }
  .ie-author > :last-child { grid-column: 1 / -1; }
  .ie-embed-grid { grid-template-columns: minmax(0, 1fr); }
  .ie-canvas { padding: 12px 10px; }
  .ie-canvas .dc-av { display: none; }
}

/* ---------- kisisellestirilmis bot ---------- */
.bp-grid { display: grid; grid-template-columns: 200px minmax(0, 1fr) 300px; gap: 24px; padding: 20px; align-items: start; }
.bp-media, .bp-form, .bp-previews { display: grid; gap: 18px; min-width: 0; }
.bp-slot-wrap { display: grid; gap: 6px; justify-items: start; }
.bp-slot { position: relative; display: grid; place-items: center; overflow: hidden; padding: 0; border: 1px dashed var(--line-2); border-radius: 16px; background: var(--bg-2); color: var(--muted); cursor: pointer; font: inherit; font-size: 13px; }
.bp-slot:not(.empty) { border-style: solid; }
.bp-slot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bp-slot-avatar { width: 128px; height: 128px; }
.bp-slot-banner { width: 100%; height: 110px; }
.bp-empty { display: grid; justify-items: center; gap: 6px; padding: 8px; text-align: center; }
.bp-hover { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 6px; background: rgba(8, 7, 12, .62); color: #fff; font-weight: 600; opacity: 0; transition: opacity .15s; }
.bp-slot.empty .bp-hover { display: none; }
.bp-slot:hover .bp-hover, .bp-slot:focus-visible .bp-hover { opacity: 1; }
.bp-slot:hover { border-color: var(--accent-2); }
.bp-status-picker { display: flex; flex-wrap: wrap; gap: 6px; }
.bp-status-opt { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-2); color: var(--text-2); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.bp-status-opt:hover { border-color: var(--line-2); color: var(--text); }
.bp-status-opt[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
.bp-status-opt:disabled { opacity: .6; cursor: default; }
.bp-status-opt .pp-dot { position: static; width: 10px; height: 10px; border: 0; }
.bp-member { display: flex; align-items: center; gap: 12px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; min-width: 0; }
.bp-member-text { min-width: 0; display: grid; gap: 1px; }
.bp-member-text small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bp-member-text small b { color: var(--text-2); }
.bp-name { display: flex; align-items: center; gap: 6px; min-width: 0; }
.bp-name b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bp-name.big b { font-size: 19px; }
.bp-app { flex: none; font-size: 10px; font-weight: 800; letter-spacing: .3px; color: #fff; background: #5865f2; border-radius: 4px; padding: 1px 5px; line-height: 15px; }
.bp-av { position: relative; flex: none; display: block; }
.bp-av img, .bp-av .ph { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: var(--surface-3); }
.bp-av.s32 { width: 32px; height: 32px; }
.bp-av.s32 .pp-dot { width: 13px; height: 13px; border-width: 2.5px; border-color: var(--bg-2); right: -3px; bottom: -3px; }
.bp-av.s80 { width: 88px; height: 88px; margin-top: -48px; border: 6px solid var(--bg-2); border-radius: 50%; }
.bp-av.s80 .pp-dot { width: 22px; height: 22px; border: 4px solid var(--bg-2); right: -2px; bottom: -2px; }
.bp-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.bp-card .bp-banner { height: 104px; background-size: cover; background-position: center; }
.bp-card-body { display: grid; gap: 6px; padding: 0 14px 14px; }
.bp-tag { color: var(--muted); font-size: 13px; margin-top: -4px; }
.bp-bio { margin: 4px 0 0; font-size: 13.5px; color: var(--text-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.bp-card .pp-item { margin-top: 6px; background: var(--surface-2); }
.bp-note { margin-top: -4px; }
@media (max-width: 1180px) {
  .bp-grid { grid-template-columns: 200px minmax(0, 1fr); }
  .bp-previews { grid-column: 1 / -1; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}
@media (max-width: 640px) {
  .bp-grid { grid-template-columns: 1fr; padding: 16px; }
}

/* ---------- premium: musteri ve admin paneli ---------- */
.pm-page { padding-top: 36px; }
.pm-content { margin-top: 16px; }
.pm-tabs { margin-bottom: 4px; }
.pm-tabs .tab { display: inline-flex; align-items: center; gap: 6px; }
.pm-count { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--surface-3); color: var(--text-2); font-size: 11px; display: inline-grid; place-items: center; }
.tab.active .pm-count { background: rgba(255, 255, 255, .22); color: #fff; }
.pm-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.pm-actions.center { justify-content: center; margin-top: 12px; }
.pm-actions.end { justify-content: flex-end; }
.field.pm-actions { justify-content: flex-end; }
.pm-box { display: flex; gap: 12px; align-items: flex-start; background: var(--accent-soft); border: 1px solid rgba(167, 139, 250, .28); color: var(--text); border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; font-size: 14px; }
.pm-box.ok { background: var(--ok-soft); border-color: rgba(47, 210, 122, .3); }
.pm-box .grow, .warn-box .grow { flex: 1; min-width: 0; display: grid; gap: 8px; }
.pm-small { font-size: 12.5px; }
.pm-sub { display: block; color: var(--muted); font-size: 12px; font-family: ui-monospace, Consolas, monospace; }
.pm-ok { color: var(--ok) !important; }
.pm-err { color: var(--danger-2) !important; }
.pm-check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); cursor: pointer; }
.pm-check input { width: 16px; height: 16px; accent-color: var(--accent); flex: none; }
.pm-check .icon { width: 16px; height: 16px; }
.pm-checks { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.pm-checks.cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.pm-checks.cols .pm-check span { display: inline-flex; align-items: center; gap: 6px; }
.pm-inline { display: flex; gap: 8px; align-items: center; }
.pm-inline .input { flex: 1; min-width: 0; }
.pm-inline.small .input { width: 76px; flex: none; height: 32px; }
.pm-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.pm-toolbar .input { max-width: 300px; height: 36px; }
.pm-mono, .pm-codebtn, .pm-copy code { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; }
.pm-codebtn { border: 0; background: transparent; color: var(--accent-2); font-weight: 700; font-size: 13px; cursor: pointer; padding: 0; white-space: nowrap; }
.pm-dim td { opacity: .55; }
.pm-note { max-width: 220px; color: var(--muted); font-size: 13px; }
.pm-docs { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.pm-click { cursor: pointer; }
.pm-click:hover td { background: var(--surface-2); }
.pm-nav-btn span { font-weight: 700; }
.pm-nav-btn .icon { color: var(--accent-2); }
@media (max-width: 640px) { .pm-nav-btn span { display: none; } }

/* planlar */
.pm-plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin: 4px 0 18px; }
.pm-plan { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 22px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.pm-plan.hl { border-color: var(--accent); box-shadow: 0 12px 40px rgba(124, 58, 237, .18); }
.pm-plan h3 { margin: 0; font-size: 18px; }
.pm-plan-tag { position: absolute; top: -11px; right: 16px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .4px; padding: 3px 10px; border-radius: 999px; text-transform: uppercase; }
.pm-price b { font-size: 28px; letter-spacing: -.6px; }
.pm-price span { color: var(--muted); font-size: 14px; }
.pm-feats { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; color: var(--text-2); }
.pm-feats li { display: flex; gap: 8px; align-items: center; }
.pm-feats .icon { width: 16px; height: 16px; color: var(--ok); }
.pm-desc { margin: 0; color: var(--muted); font-size: 13.5px; }
.pm-plan .btn { margin-top: auto; justify-content: center; }
.pm-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 20px; }
.pm-chips .chip { padding: 5px 10px; }
.pm-chips .icon { width: 15px; height: 15px; color: var(--accent-2); }

/* satin alma penceresi */
dialog.pm-modal { width: min(680px, calc(100vw - 32px)); }
dialog.pm-modal.wide { width: min(860px, calc(100vw - 32px)); }
.pm-modal-body { padding: 18px 20px; display: grid; gap: 14px; }
.pm-modal-body h4, .pm-invoice h4 { margin: 4px 0 0; font-size: 14px; }
.pm-coupon { display: flex; gap: 8px; align-items: flex-end; }
.pm-coupon .field { flex: 1; }
.pm-coupon > .btn { height: 42px; }
.pm-summary { display: grid; gap: 6px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 14px; }
.pm-summary > div { display: flex; justify-content: space-between; gap: 12px; }
.pm-summary .ok { color: var(--ok); }
.pm-summary .total { border-top: 1px solid var(--line); padding-top: 8px; margin-top: 2px; }
.pm-summary .total b { font-size: 17px; }
.pm-billing { display: grid; gap: 12px; }
.pm-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.pm-grid2 .wide { grid-column: 1 / -1; }
.pm-address { min-height: 64px; }
.pm-iframe { width: 100%; height: min(720px, 70vh); border: 0; border-radius: 10px; background: #fff; }
.tile-modal-foot .muted { display: inline-flex; align-items: center; gap: 6px; }
.tile-modal-foot .muted .icon { width: 15px; height: 15px; }
.pm-kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px 16px; }
.pm-kv > div { display: grid; gap: 2px; min-width: 0; }
.pm-kv small { color: var(--muted); font-size: 12px; }
.pm-kv span { overflow-wrap: anywhere; font-size: 14px; }
.pm-invoice { display: grid; gap: 12px; border-top: 1px solid var(--line); padding-top: 14px; }
.pm-invoice:empty { display: none; }

/* premiumlarim */
.pm-ent .card-head h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pm-guilds { display: grid; gap: 8px; padding: 14px 20px 4px; }
.pm-guild { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); }
.pm-guild .guild-icon { width: 34px; height: 34px; }
.pm-guild .grow { flex: 1; min-width: 0; display: grid; }
.pm-guild small { color: var(--muted); font-size: 12px; }
.pm-add { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px 20px 16px; }
.pm-add .select { flex: 1 1 220px; max-width: 360px; height: 36px; }
.pm-redeem { display: flex; gap: 8px; max-width: 520px; }
.pm-code-input { flex: 1; font-family: ui-monospace, Consolas, monospace; letter-spacing: 1px; text-transform: uppercase; }

/* admin */
.pm-log { display: grid; }
.pm-log > div { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; padding: 10px 20px; border-bottom: 1px solid var(--line); font-size: 14px; }
.pm-log > div:last-child { border-bottom: 0; }
.pm-log small { color: var(--muted); font-size: 12px; min-width: 130px; }
.pm-who { display: flex; align-items: center; gap: 10px; }
.pm-who:empty { display: none; }
.pm-who img { width: 36px; height: 36px; border-radius: 50%; }
.pm-who div { display: grid; }
.pm-who small { color: var(--muted); font-size: 12px; }
.pm-results { display: grid; gap: 6px; }
.pm-results:empty, .pm-preview:empty { display: none; }
.pm-result { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-2); color: inherit; font: inherit; cursor: pointer; }
.pm-result:hover { border-color: var(--line-2); }
.pm-result.active { border-color: var(--accent); background: var(--accent-soft); }
.pm-result img { width: 36px; height: 36px; border-radius: 50%; flex: none; }
.pm-result > div { display: grid; flex: 1; min-width: 0; }
.pm-result small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-result > svg { width: 18px; height: 18px; color: var(--accent-2); flex: none; }
.pm-inline.small .input[type="date"] { width: 150px; }
.pm-users { display: grid; gap: 12px; }
.pm-user { border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); padding: 12px 14px; display: grid; gap: 10px; }
.pm-user-head { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; }
.pm-user-head img { width: 32px; height: 32px; border-radius: 50%; flex: none; }
.pm-user-head .grow { flex: 1 1 180px; min-width: 0; display: grid; gap: 2px; }
.pm-user-head .grow b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-search { display: grid; gap: 6px; max-width: 520px; }
.pm-search .help { color: var(--muted); font-size: 13px; }
.pm-user-head small { color: var(--muted); font-family: ui-monospace, Consolas, monospace; font-size: 12px; }
.pm-ent-row { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; padding-top: 10px; border-top: 1px solid var(--line); }
.pm-ent-row .grow { flex: 1 1 260px; min-width: 0; display: grid; gap: 4px; }
.pm-ent-row small { color: var(--muted); font-size: 12.5px; }
.pm-ent-title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pm-copy { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 8px 10px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line); margin-bottom: 6px; }
.pm-copy small { color: var(--muted); font-size: 12px; flex: 1 1 100%; }
.pm-copy code { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 13px; color: var(--accent-2); }

/* kenar menusu: premium */
.nav-badge { flex: none; font-size: 9.5px; font-weight: 800; letter-spacing: .4px; padding: 2px 5px; border-radius: 5px; background: rgba(245, 185, 59, .16); color: var(--warn); }
.nav-badge.locked { background: var(--surface-3); color: var(--muted); }
.nav-item.active .nav-badge { background: rgba(255, 255, 255, .2); color: #fff; }
.pm-side { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 12px; border: 1px dashed rgba(167, 139, 250, .45); color: var(--accent-2); font-size: 13.5px; font-weight: 700; }
.pm-side:hover { background: var(--accent-soft); }
.pm-side.ok { border-style: solid; border-color: rgba(245, 185, 59, .35); color: var(--warn); background: rgba(245, 185, 59, .08); }
.pm-side span { flex: 1; }
.pm-side small { color: var(--muted); font-weight: 600; font-size: 12px; }
.pm-side .icon { width: 17px; height: 17px; }
.pm-lock .btn { flex: none; }

/* makbuz (yazdirilabilir) */
.pm-receipt { background: #fff; color: #111; border-radius: 12px; padding: 22px; display: grid; gap: 18px; font-size: 13.5px; }
.pm-receipt-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.pm-receipt-head h3 { margin: 0; font-size: 20px; }
.pm-receipt-head small { color: #555; font-family: ui-monospace, Consolas, monospace; }
.pm-receipt-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pm-receipt-cols > div { display: grid; gap: 2px; align-content: start; }
.pm-receipt-cols small { color: #666; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 2px; }
.pm-receipt-table { width: 100%; border-collapse: collapse; }
.pm-receipt-table th { text-align: left; font-size: 11px; color: #666; text-transform: uppercase; letter-spacing: .5px; border-bottom: 2px solid #111; padding: 6px 0; }
.pm-receipt-table td { padding: 7px 0; border-bottom: 1px solid #ddd; vertical-align: top; }
.pm-receipt-table td small { display: block; color: #666; font-size: 12px; }
.pm-receipt-table .num { text-align: right; white-space: nowrap; }
.pm-receipt-table tr:last-child td { border-bottom: 0; font-size: 15px; }
.pm-receipt-meta { display: flex; flex-wrap: wrap; gap: 4px 18px; color: #444; font-size: 12.5px; }
.pm-receipt-note { margin: 0; color: #666; font-size: 12px; border-top: 1px dashed #ccc; padding-top: 10px; }
@media print {
  body > *:not(dialog) { display: none !important; }
  dialog.pm-print { position: static; width: auto; max-height: none; border: 0; box-shadow: none; background: #fff; overflow: visible; }
  dialog.pm-print::backdrop { display: none; }
  dialog.pm-print .tile-modal-head, dialog.pm-print .tile-modal-foot { display: none; }
  dialog.pm-print .pm-modal-body { padding: 0; }
  .pm-receipt { padding: 0; }
}
/* Tablolar kendi icinde kaysin; sayfa yana genislemesin. */
.pm-content .card-body.one { grid-template-columns: minmax(0, 1fr); }
.pm-content .card-body > div { min-width: 0; }
.pm-page .page-head { flex-wrap: wrap; }
@media (max-width: 640px) {
  .pm-page .page-head .grow { min-width: 200px; }
  .pm-grid2, .pm-receipt-cols { grid-template-columns: 1fr; }
  .pm-coupon, .pm-redeem { flex-wrap: wrap; }
  .pm-toolbar .input { max-width: none; }
}
