/* ============ PHANTOMKILLERS CLAN MANAGER – Tema ============ */
:root {
  --bg: #07070b;
  --bg2: #0b0b12;
  --panel: #111119;
  --panel2: #171722;
  --panel3: #1e1e2b;
  --line: #262636;
  --line2: #33334a;
  --text: #eeedf5;
  --muted: #8e8aa6;
  --dim: #5f5c74;
  --red: #ff2d55;
  --red2: #c8102e;
  --purple: #9d4dff;
  --purple2: #6a1bd6;
  --green: #2ee6a0;
  --gold: #ffc04d;
  --silver: #c9d1e6;
  --bronze: #e08a4f;
  --grad: linear-gradient(135deg, var(--red), var(--purple));
  --glow-r: 0 0 18px rgba(255, 45, 85, .35);
  --glow-p: 0 0 18px rgba(157, 77, 255, .35);
  --radius: 14px;
  --font: "Segoe UI", "Segoe UI Variable", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --font-head: "Bahnschrift", "Segoe UI Semibold", "Arial Narrow", var(--font);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 14px; overflow: hidden; }
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(157, 77, 255, .13), transparent 60%),
    radial-gradient(700px 500px at 20% 110%, rgba(255, 45, 85, .10), transparent 60%);
}
::selection { background: rgba(255, 45, 85, .4); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #2a2a3c; border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #3a3a55; }
::-webkit-scrollbar-track { background: transparent; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
svg { display: block; }

/* ---------- Başlık çubuğu ---------- */
.titlebar {
  position: fixed; top: 0; left: 0; right: 0; height: 36px; z-index: 50;
  display: flex; align-items: center; gap: 10px; padding: 0 160px 0 14px;
  background: #0b0b12; border-bottom: 1px solid #1a1a26; -webkit-app-region: drag; user-select: none;
}
.tb-logo { width: 20px; height: 20px; }
.tb-title { font-family: var(--font-head); font-size: 12px; letter-spacing: .18em; color: var(--muted); }
.tb-title b { color: var(--text); font-weight: 600; }
.tb-save { margin-left: auto; font-size: 11.5px; color: var(--dim); display: flex; align-items: center; gap: 7px; transition: color .3s; }
.tb-save i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.tb-save.busy { color: var(--muted); }
.tb-save.busy i { background: var(--gold); box-shadow: 0 0 8px var(--gold); }

.shell { position: relative; z-index: 1; display: flex; height: 100vh; padding-top: 36px; }

/* ---------- Sol menü ---------- */
.sidebar {
  width: 252px; flex: none; display: flex; flex-direction: column;
  background: linear-gradient(180deg, #0c0c14 0%, #09090f 100%); border-right: 1px solid #1b1b28;
}
.brand { padding: 22px 18px 18px; text-align: center; border-bottom: 1px solid #1b1b28; position: relative; }
.brand-emblem { width: 86px; height: 86px; margin: 0 auto 10px; filter: drop-shadow(0 0 14px rgba(255, 45, 85, .45)) drop-shadow(0 0 22px rgba(157, 77, 255, .25)); animation: float 5s ease-in-out infinite; }
.brand-emblem svg { width: 100%; height: 100%; }
@keyframes float { 50% { transform: translateY(-4px); } }
.brand-name {
  font-family: var(--font-head); font-weight: 700; font-size: 21px; letter-spacing: .06em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 10px rgba(255, 45, 85, .35)); word-break: break-word;
}
.brand-sub { font-size: 11px; letter-spacing: .22em; color: var(--dim); margin-top: 4px; }
.nav { padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; flex: 1; overflow-y: auto; }
.nav a {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 9px 14px; border-radius: 10px;
  color: var(--muted); cursor: pointer; font-weight: 500; transition: background .2s, color .2s, transform .2s;
}
.nav a svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.nav a:hover { background: #15151f; color: var(--text); transform: translateX(2px); }
.nav a.active { color: #fff; background: linear-gradient(90deg, rgba(255, 45, 85, .18), rgba(157, 77, 255, .08) 70%, transparent); }
.nav a.active::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--grad); box-shadow: var(--glow-r); }
.nav a.active svg { stroke: var(--red); filter: drop-shadow(0 0 6px rgba(255, 45, 85, .7)); }
.side-foot { padding: 14px 18px 18px; border-top: 1px solid #1b1b28; }
.side-motto { font-size: 12px; color: var(--muted); font-style: italic; line-height: 1.4; margin-bottom: 8px; }
.side-ver { font-size: 11px; color: var(--dim); }

/* ---------- Ana alan ---------- */
.main { flex: 1; min-width: 0; overflow-y: auto; overflow-x: hidden; }
.page { padding: 26px 32px 48px; max-width: 1680px; margin: 0 auto; }
.page.enter { animation: pageIn .38s cubic-bezier(.2, .8, .2, 1); }
@keyframes pageIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.stagger > * { animation: rise .45s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { margin: 0; font-family: var(--font-head); font-size: 28px; font-weight: 700; letter-spacing: .02em; }
.page-head h1 .acc { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.head-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Kartlar ---------- */
.card {
  background: linear-gradient(180deg, var(--panel) 0%, #0f0f17 100%); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; position: relative;
}
.card.glow { box-shadow: 0 0 0 1px rgba(255, 45, 85, .08), 0 18px 50px -20px rgba(157, 77, 255, .35); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-head h3 { margin: 0; font-family: var(--font-head); font-size: 15px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; display: flex; align-items: center; gap: 9px; }
.card-head h3::before { content: ""; width: 4px; height: 16px; border-radius: 2px; background: var(--grad); box-shadow: var(--glow-r); }
.card-head .link { color: var(--muted); font-size: 12.5px; cursor: pointer; }
.card-head .link:hover { color: var(--red); }

.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-main { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.g-drop { grid-template-columns: minmax(0, 1.45fr) minmax(360px, 1fr); align-items: start; }
.g-points { grid-template-columns: minmax(380px, .9fr) minmax(0, 1.3fr); align-items: start; }
@media (max-width: 1280px) { .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g-main, .g-drop, .g-points { grid-template-columns: 1fr; } }

/* İstatistik kutuları */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin-bottom: 18px; }
.stats.six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1500px) { .stats.six { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.stat {
  position: relative; overflow: hidden; padding: 18px 18px 16px; border-radius: var(--radius);
  background: linear-gradient(160deg, #15151f, #0f0f17); border: 1px solid var(--line); transition: transform .25s, border-color .25s, box-shadow .25s;
}
.stat:hover { transform: translateY(-3px); border-color: var(--line2); box-shadow: 0 14px 30px -18px rgba(255, 45, 85, .5); }
.stat::after { content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: radial-gradient(circle, var(--c, rgba(255, 45, 85, .22)), transparent 70%); }
.stat .lbl { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.stat .lbl svg { width: 16px; height: 16px; fill: none; stroke: var(--ic, var(--red)); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.stat .val { font-family: var(--font-head); font-size: 30px; font-weight: 700; margin-top: 8px; letter-spacing: .01em; }
.stat .val small { font-size: 16px; color: var(--muted); margin-left: 2px; }
.stat .sub { font-size: 12px; color: var(--dim); margin-top: 2px; }
.stat.p { --c: rgba(157, 77, 255, .25); --ic: var(--purple); }
.stat.g { --c: rgba(46, 230, 160, .18); --ic: var(--green); }
.stat.y { --c: rgba(255, 192, 77, .18); --ic: var(--gold); }

/* Hero */
.hero {
  position: relative; overflow: hidden; border-radius: 18px; padding: 34px 38px; margin-bottom: 18px; border: 1px solid #2a1630;
  background:
    linear-gradient(110deg, rgba(10, 10, 16, .96) 35%, rgba(10, 10, 16, .55)),
    radial-gradient(600px 300px at 90% 50%, rgba(157, 77, 255, .45), transparent 70%),
    radial-gradient(500px 260px at 70% 120%, rgba(255, 45, 85, .45), transparent 70%),
    #0c0c13;
  display: flex; align-items: center; justify-content: space-between; gap: 30px;
}
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .35; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 34px 34px; mask-image: linear-gradient(90deg, transparent, #000 60%);
}
.hero-kicker { font-size: 12px; letter-spacing: .32em; color: var(--red); font-weight: 600; }
.hero-title {
  font-family: var(--font-head); font-weight: 800; font-size: clamp(40px, 5.2vw, 72px); line-height: 1; margin: 10px 0 10px; letter-spacing: .03em;
  background: linear-gradient(90deg, #fff 0%, #ffd0da 30%, var(--red) 55%, var(--purple) 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 22px rgba(255, 45, 85, .35)); position: relative; word-break: break-word;
}
.hero-motto { color: #b9b5cc; font-size: 15px; max-width: 560px; }
.hero-actions { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; position: relative; }
.hero-emblem { width: 190px; height: 190px; flex: none; position: relative; filter: drop-shadow(0 0 30px rgba(255, 45, 85, .55)) drop-shadow(0 0 50px rgba(157, 77, 255, .35)); animation: float 6s ease-in-out infinite; }
.hero-emblem svg { width: 100%; height: 100%; }
.hero-emblem::after { content: ""; position: absolute; inset: -18px; border-radius: 50%; border: 1px dashed rgba(157, 77, 255, .35); animation: spin 30s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 1100px) { .hero-emblem { display: none; } }

/* ---------- Butonlar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 10px;
  border: 1px solid var(--line2); background: var(--panel2); color: var(--text); font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: transform .15s, box-shadow .2s, background .2s, border-color .2s, opacity .2s; user-select: none;
}
.btn svg { flex: none; width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover { border-color: #4a4a66; background: var(--panel3); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn:disabled { opacity: .45; pointer-events: none; }
.btn.primary { border: 0; background: var(--grad); color: #fff; box-shadow: 0 6px 22px -8px rgba(255, 45, 85, .8); }
.btn.primary:hover { box-shadow: 0 8px 28px -6px rgba(255, 45, 85, .95), 0 0 0 1px rgba(255, 255, 255, .15) inset; filter: brightness(1.08); }
.btn.purple { border: 0; background: linear-gradient(135deg, var(--purple), var(--purple2)); color: #fff; box-shadow: 0 6px 22px -8px rgba(157, 77, 255, .8); }
.btn.danger { border-color: rgba(255, 45, 85, .45); color: #ff8098; background: rgba(255, 45, 85, .08); }
.btn.danger:hover { background: rgba(255, 45, 85, .18); color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--text); background: #1a1a26; }
.btn.sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn.xs { height: 26px; padding: 0 9px; font-size: 12px; border-radius: 7px; gap: 5px; }
.btn.xs svg { width: 13px; height: 13px; }
.btn.lg { height: 48px; padding: 0 26px; font-size: 15px; }
.btn.block { width: 100%; }
.icon-btn { width: 32px; height: 32px; padding: 0; border-radius: 8px; }
.icon-btn svg { width: 16px; height: 16px; }

/* ---------- Form ---------- */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; min-width: 0; }
.field > label, .lbl-sm { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.field .hint { font-size: 12px; color: var(--dim); }
.row { display: flex; gap: 12px; }
.row > * { flex: 1; min-width: 0; }
.input, select.input, textarea.input {
  width: 100%; height: 42px; padding: 0 14px; border-radius: 10px; background: #0b0b12; border: 1px solid var(--line2); color: var(--text);
  outline: none; transition: border-color .2s, box-shadow .2s, background .2s;
}
textarea.input { height: auto; min-height: 84px; padding: 11px 14px; resize: vertical; line-height: 1.45; }
.input:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(157, 77, 255, .18); background: #0d0d16; }
.input.err { border-color: var(--red); box-shadow: 0 0 0 3px rgba(255, 45, 85, .18); animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.input::placeholder { color: #55526a; }
select.input { appearance: none; cursor: pointer; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238e8aa6' stroke-width='1.8' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; }
select.input option { background: #14141d; }
input[type="date"].input::-webkit-calendar-picker-indicator { filter: invert(.75); cursor: pointer; }
.input.big { height: 54px; font-size: 22px; font-family: var(--font-head); font-weight: 600; }
.input-wrap { position: relative; }
.input-wrap .suffix { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 700; font-family: var(--font-head); pointer-events: none; }
.input-wrap .prefix-ic { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; fill: none; stroke: var(--dim); stroke-width: 2; pointer-events: none; }
.input-wrap .prefix-ic + .input { padding-left: 40px; }

.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.toolbar .input { height: 40px; }
.toolbar .search { flex: 1; min-width: 240px; max-width: 420px; }
.toolbar select.input { width: auto; min-width: 150px; }

.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.switch input { display: none; }
.switch .tr { width: 42px; height: 24px; border-radius: 20px; background: #26263a; position: relative; transition: background .2s; flex: none; }
.switch .tr::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #aaa6bf; transition: transform .2s, background .2s; }
.switch input:checked + .tr { background: var(--grad); }
.switch input:checked + .tr::after { transform: translateX(18px); background: #fff; }

.seg { display: flex; gap: 6px; }
.seg button {
  flex: 1; min-width: 0; padding: 10px 4px; border-radius: 10px; border: 1px solid var(--line2); background: #0e0e16; color: var(--muted); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 3px; font-weight: 600; transition: all .2s;
}
.seg button b { font-family: var(--font-head); font-size: 17px; color: var(--text); }
.seg button:hover { border-color: #4a4a66; color: var(--text); }
.seg button.on { border-color: transparent; background: linear-gradient(160deg, rgba(255, 45, 85, .25), rgba(157, 77, 255, .22)); color: #fff; box-shadow: 0 0 0 1px rgba(255, 45, 85, .55) inset, var(--glow-r); }

/* ---------- Avatar ve rozetler ---------- */
.av { position: relative; flex: none; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; color: #fff; overflow: hidden; background: var(--avbg, var(--grad)); }
.av img { width: 100%; height: 100%; object-fit: cover; }
.av.s28 { width: 28px; height: 28px; font-size: 11px; }
.av.s36 { width: 36px; height: 36px; font-size: 13px; }
.av.s44 { width: 44px; height: 44px; font-size: 15px; }
.av.s64 { width: 64px; height: 64px; font-size: 22px; }
.av.s96 { width: 96px; height: 96px; font-size: 32px; }
.av-ring { padding: 3px; border-radius: 50%; background: var(--ring, var(--grad)); box-shadow: 0 0 18px -2px var(--ringglow, rgba(255, 45, 85, .55)); flex: none; }
.av-ring .av { border: 3px solid #0f0f17; }
.badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 20px; font-size: 11.5px; font-weight: 600; letter-spacing: .02em; white-space: nowrap; background: rgba(157, 77, 255, .15); color: #c9a6ff; border: 1px solid rgba(157, 77, 255, .3); }
.badge.r { background: rgba(255, 45, 85, .14); color: #ff8aa1; border-color: rgba(255, 45, 85, .35); }
.badge.g { background: rgba(46, 230, 160, .12); color: #6ff0bd; border-color: rgba(46, 230, 160, .3); }
.badge.y { background: rgba(255, 192, 77, .12); color: #ffd27e; border-color: rgba(255, 192, 77, .3); }
.badge.n { background: #1b1b27; color: var(--muted); border-color: var(--line2); }
.rank-0 { background: linear-gradient(135deg, rgba(255, 45, 85, .3), rgba(157, 77, 255, .3)); color: #fff; border-color: rgba(255, 45, 85, .6); box-shadow: 0 0 10px -2px rgba(255, 45, 85, .6); }
.pos { font-family: var(--font-head); font-weight: 700; }
.pos-1 { color: var(--gold); text-shadow: 0 0 10px rgba(255, 192, 77, .6); }
.pos-2 { color: var(--silver); }
.pos-3 { color: var(--bronze); }

/* ---------- Üye kartları ---------- */
.members-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.mcard {
  position: relative; border-radius: 16px; padding: 18px; cursor: pointer; overflow: hidden;
  background: linear-gradient(170deg, #161620 0%, #0f0f17 60%); border: 1px solid var(--line);
  transition: transform .25s cubic-bezier(.2, .8, .2, 1), border-color .25s, box-shadow .25s;
}
.mcard::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 70px; background: linear-gradient(120deg, rgba(255, 45, 85, .16), rgba(157, 77, 255, .14)); mask-image: linear-gradient(#000, transparent); }
.mcard:hover { transform: translateY(-4px); border-color: rgba(255, 45, 85, .45); box-shadow: 0 18px 40px -20px rgba(255, 45, 85, .7), 0 0 0 1px rgba(157, 77, 255, .15); }
.mcard.passive { opacity: .62; filter: grayscale(.5); }
.mcard-top { position: relative; display: flex; gap: 14px; align-items: center; }
.mcard-name { font-family: var(--font-head); font-size: 19px; font-weight: 700; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mcard-meta { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.mcard-pos { position: absolute; right: 0; top: -2px; font-family: var(--font-head); font-size: 15px; color: var(--muted); }
.mcard-points { position: relative; margin: 16px 0 12px; display: flex; align-items: baseline; justify-content: space-between; }
.mcard-points .num { font-family: var(--font-head); font-size: 34px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mcard-points .num.neg { background: none; color: #ff6b85; }
.mcard-points .cap { font-size: 11px; letter-spacing: .16em; color: var(--muted); text-transform: uppercase; }
.mcard-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mcard-stats div { background: #0b0b12; border: 1px solid #1f1f2d; border-radius: 10px; padding: 8px 6px; text-align: center; }
.mcard-stats b { display: block; font-family: var(--font-head); font-size: 16px; }
.mcard-stats span { font-size: 10.5px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.mcard-note { margin-top: 12px; font-size: 12.5px; color: var(--muted); line-height: 1.4; min-height: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mcard-foot { margin-top: 12px; padding-top: 12px; border-top: 1px solid #1f1f2d; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mcard-foot .date { font-size: 12px; color: var(--dim); }
.mcard-actions { display: flex; gap: 6px; opacity: .65; transition: opacity .2s; }
.mcard:hover .mcard-actions { opacity: 1; }

/* ---------- Liste satırları ---------- */
.list { display: flex; flex-direction: column; }
.li { display: flex; align-items: center; gap: 12px; padding: 10px 6px; border-bottom: 1px solid #1c1c29; border-radius: 8px; transition: background .2s; }
.li:last-child { border-bottom: 0; }
.li:hover { background: #14141e; }
.li .grow { flex: 1; min-width: 0; }
.li .t1 { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li .t2 { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.li .rt { text-align: right; flex: none; }
.li .money { font-family: var(--font-head); font-weight: 700; color: var(--gold); }
.clickable { cursor: pointer; }
.drop-ic { width: 40px; height: 40px; border-radius: 10px; flex: none; display: grid; place-items: center; background: linear-gradient(140deg, rgba(255, 192, 77, .2), rgba(255, 45, 85, .15)); border: 1px solid rgba(255, 192, 77, .25); }
.drop-ic svg { width: 20px; height: 20px; fill: none; stroke: var(--gold); stroke-width: 1.8; stroke-linejoin: round; }
.empty { text-align: center; padding: 34px 16px; color: var(--muted); }
.empty svg { width: 46px; height: 46px; margin: 0 auto 10px; fill: none; stroke: #3c3a52; stroke-width: 1.5; }
.empty b { display: block; color: var(--text); font-size: 15px; margin-bottom: 4px; }

/* ---------- Tablo ---------- */
.table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--line); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 12px 14px; background: #101018; border-bottom: 1px solid var(--line); white-space: nowrap; position: sticky; top: 0; }
.tbl td { padding: 11px 14px; border-bottom: 1px solid #1b1b28; vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr { transition: background .15s; }
.tbl tbody tr:hover { background: #14141e; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl .money { font-family: var(--font-head); font-weight: 700; color: var(--gold); }
.tbl .nick-cell { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.tbl tr.expanded { background: #15151f; }
.tbl tr.detail td { background: #0c0c13; padding: 0; }
.tbl th.sortable { cursor: pointer; }
.tbl th.sortable:hover { color: var(--text); }
.detail-box { padding: 16px 20px 18px; animation: rise .3s both; }
.parts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; margin-top: 10px; }
.part {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: #12121b; border: 1px solid #22222f;
}
.part .grow { flex: 1; min-width: 0; }
.part .n { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.part .s { font-size: 12px; color: var(--gold); font-family: var(--font-head); }
.paid-tg { cursor: pointer; height: 24px; padding: 0 9px; border-radius: 20px; font-size: 11.5px; font-weight: 700; border: 1px solid var(--line2); background: #1a1a26; color: var(--muted); }
.paid-tg.on { background: rgba(46, 230, 160, .14); color: var(--green); border-color: rgba(46, 230, 160, .4); }
.chev { width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 2; transition: transform .2s; }
tr.expanded .chev { transform: rotate(90deg); stroke: var(--red); }

/* ---------- Drop formu ---------- */
.chip-box {
  min-height: 52px; padding: 7px; border-radius: 12px; background: #0b0b12; border: 1px solid var(--line2);
  display: flex; flex-wrap: wrap; gap: 7px; align-items: center; cursor: text; transition: border-color .2s, box-shadow .2s; position: relative;
}
.chip-box.focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(157, 77, 255, .18); }
.chip-box input { flex: 1; min-width: 180px; height: 36px; border: 0; outline: 0; background: transparent; padding: 0 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 6px 0 4px; border-radius: 20px; font-weight: 600; font-size: 13px;
  background: linear-gradient(135deg, rgba(157, 77, 255, .25), rgba(255, 45, 85, .18)); border: 1px solid rgba(157, 77, 255, .45);
  animation: chipIn .25s cubic-bezier(.2, .9, .3, 1.4);
}
@keyframes chipIn { from { transform: scale(.6); opacity: 0; } }
.chip.guest { background: #181824; border: 1px dashed #4a4766; }
.chip.flash { animation: flash .6s 2; }
@keyframes flash { 50% { box-shadow: 0 0 0 3px var(--red), var(--glow-r); } }
.chip .av { width: 26px; height: 26px; font-size: 10px; }
.chip .x { width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .3); color: var(--muted); cursor: pointer; display: grid; place-items: center; font-size: 14px; line-height: 1; }
.chip .x:hover { background: var(--red); color: #fff; }
.chip .tag { font-size: 10px; color: var(--muted); font-weight: 500; }

.ac {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; padding: 6px; border-radius: 12px;
  background: #15151f; border: 1px solid #34344a; box-shadow: 0 22px 50px -10px rgba(0, 0, 0, .8), 0 0 0 1px rgba(157, 77, 255, .12);
  max-height: 340px; overflow-y: auto; animation: rise .18s both;
}
.ac-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.ac-item.on, .ac-item:hover { background: linear-gradient(90deg, rgba(255, 45, 85, .18), rgba(157, 77, 255, .12)); }
.ac-item .grow { flex: 1; min-width: 0; }
.ac-item .n { font-weight: 600; }
.ac-item .n mark { background: none; color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.ac-item .m { font-size: 11.5px; color: var(--muted); }
.ac-item kbd { font-family: inherit; font-size: 10.5px; color: var(--dim); border: 1px solid var(--line2); padding: 1px 6px; border-radius: 5px; }
.ac-head { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); padding: 6px 10px 4px; }
.ac-manual { border-top: 1px solid #262636; margin-top: 4px; padding-top: 10px; }

.calc-panel { position: sticky; top: 0; }
.calc-big {
  text-align: center; padding: 26px 18px 22px; border-radius: 16px; margin-bottom: 16px; position: relative; overflow: hidden;
  background: radial-gradient(400px 180px at 50% 0%, rgba(255, 45, 85, .28), transparent 70%), radial-gradient(300px 160px at 50% 120%, rgba(157, 77, 255, .3), transparent 70%), #0d0d15;
  border: 1px solid rgba(255, 45, 85, .3);
}
.calc-big .cap { font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: #ffb3c2; font-weight: 600; }
.calc-big .amt { font-family: var(--font-head); font-size: 58px; font-weight: 800; line-height: 1.1; margin: 8px 0 6px; color: #fff; text-shadow: 0 0 24px rgba(255, 45, 85, .7), 0 0 50px rgba(157, 77, 255, .4); transition: transform .2s; }
.calc-big .amt.bump { animation: bump .35s; }
@keyframes bump { 40% { transform: scale(1.08); } }
.calc-big .amt.dim { color: #3e3b52; text-shadow: none; }
.calc-big .formula { font-size: 14px; color: #cfcbe0; font-family: var(--font-head); letter-spacing: .03em; }
.calc-big .exact { font-size: 12px; color: var(--muted); margin-top: 6px; }
.calc-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.calc-rows div { background: #0d0d15; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.calc-rows span { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.calc-rows b { font-family: var(--font-head); font-size: 22px; }
.share-list { max-height: 330px; overflow-y: auto; }
.edit-banner { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px; margin-bottom: 16px; background: rgba(157, 77, 255, .12); border: 1px solid rgba(157, 77, 255, .4); color: #dcc7ff; }
.edit-banner b { color: #fff; }
.edit-banner .btn { margin-left: auto; }
.count-pill { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-head); font-size: 13px; padding: 3px 10px; border-radius: 20px; background: #1b1b27; color: var(--text); border: 1px solid var(--line2); }
.count-pill b { color: var(--red); font-size: 15px; }

/* Puanlama */
.member-pick { max-height: 360px; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; background: #0b0b12; padding: 4px; }
.pick { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; cursor: pointer; user-select: none; }
.pick:hover { background: #15151f; }
.pick.on { background: linear-gradient(90deg, rgba(255, 45, 85, .14), rgba(157, 77, 255, .1)); }
.pick .cb { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid #4a4766; display: grid; place-items: center; flex: none; transition: all .15s; }
.pick.on .cb { background: var(--grad); border-color: transparent; }
.pick.on .cb::after { content: ""; width: 9px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }
.pick .grow { flex: 1; min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick .pp { font-family: var(--font-head); color: var(--muted); font-size: 13px; }
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 14px; align-items: end; margin-bottom: 18px; }
.pod { text-align: center; padding: 18px 10px 16px; border-radius: 16px; background: linear-gradient(180deg, #171722, #0f0f17); border: 1px solid var(--line); position: relative; }
.pod .av-ring { margin: 0 auto 10px; width: max-content; }
.pod .nm { font-family: var(--font-head); font-weight: 700; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pod .pt { font-family: var(--font-head); font-size: 24px; font-weight: 800; margin-top: 4px; }
.pod .place { position: absolute; top: 10px; left: 12px; font-family: var(--font-head); font-size: 26px; font-weight: 800; opacity: .9; }
.pod.p1 { padding-top: 30px; border-color: rgba(255, 192, 77, .45); box-shadow: 0 0 40px -14px rgba(255, 192, 77, .6); --ring: linear-gradient(135deg, #ffe08a, #ff9d2e); --ringglow: rgba(255, 192, 77, .7); }
.pod.p1 .pt, .pod.p1 .place { color: var(--gold); }
.pod.p2 { --ring: linear-gradient(135deg, #f0f4ff, #8d97b5); --ringglow: rgba(201, 209, 230, .5); }
.pod.p2 .pt, .pod.p2 .place { color: var(--silver); }
.pod.p3 { --ring: linear-gradient(135deg, #ffbc8a, #b2582a); --ringglow: rgba(224, 138, 79, .5); }
.pod.p3 .pt, .pod.p3 .place { color: var(--bronze); }
.crown { position: absolute; top: -16px; left: 50%; transform: translateX(-50%); width: 34px; height: 24px; fill: var(--gold); filter: drop-shadow(0 0 8px rgba(255, 192, 77, .8)); }
.pts-pos { color: var(--green); font-weight: 700; font-family: var(--font-head); }
.pts-neg { color: #ff6b85; font-weight: 700; font-family: var(--font-head); }

/* İstatistik grafikleri */
.chart { width: 100%; }
.chart text { fill: var(--muted); font-size: 11px; font-family: var(--font); }
.chart .val-t { fill: var(--text); font-weight: 600; font-size: 11px; }
.chart .grid-l { stroke: #1f1f2d; }
.chart .bar { transition: opacity .2s; }
.chart .bar:hover { opacity: .8; }
.hbars { display: flex; flex-direction: column; gap: 10px; }
.hbar { display: grid; grid-template-columns: 130px 1fr 90px; gap: 12px; align-items: center; font-size: 13px; }
.hbar .n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.hbar .t { height: 10px; border-radius: 10px; background: #1a1a26; overflow: hidden; }
.hbar .f { height: 100%; border-radius: 10px; background: var(--grad); box-shadow: var(--glow-r); transform-origin: left; animation: grow .8s cubic-bezier(.2, .8, .2, 1) both; }
.hbar .f.p { background: linear-gradient(90deg, var(--purple2), var(--purple)); box-shadow: var(--glow-p); }
.hbar .f.y { background: linear-gradient(90deg, #ff9d2e, var(--gold)); box-shadow: 0 0 14px rgba(255, 192, 77, .35); }
@keyframes grow { from { transform: scaleX(0); } }
.hbar .v { text-align: right; font-family: var(--font-head); font-weight: 700; }
.donut-wrap { display: flex; align-items: center; gap: 24px; }
.donut-wrap svg { width: 170px; height: 170px; flex: none; }
.legend { display: flex; flex-direction: column; gap: 9px; flex: 1; }
.legend div { display: flex; align-items: center; gap: 9px; font-size: 13px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.legend span { flex: 1; color: var(--muted); }
.legend b { font-family: var(--font-head); }

/* Ayarlar */
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid #1c1c29; }
.set-row:last-child { border-bottom: 0; }
.set-row .d { color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.rank-item { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.rank-item .input { height: 38px; }
.path-box { font-family: Consolas, "Cascadia Mono", monospace; font-size: 12px; padding: 10px 12px; border-radius: 8px; background: #0b0b12; border: 1px solid var(--line); color: var(--muted); word-break: break-all; }
.danger-zone { border-color: rgba(255, 45, 85, .35); background: linear-gradient(180deg, rgba(255, 45, 85, .06), #0f0f17); }

/* Sekmeler */
.tabs { display: flex; gap: 4px; padding: 4px; background: #0d0d15; border: 1px solid var(--line); border-radius: 12px; width: max-content; margin-bottom: 16px; }
.tabs button { height: 36px; padding: 0 18px; border-radius: 9px; border: 0; background: transparent; color: var(--muted); font-weight: 600; cursor: pointer; transition: all .2s; }
.tabs button.on { background: var(--grad); color: #fff; box-shadow: 0 4px 16px -6px rgba(255, 45, 85, .8); }
.tabs button:not(.on):hover { color: var(--text); background: #171722; }
.sum-chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.sum-chip { padding: 10px 16px; border-radius: 12px; background: #11111a; border: 1px solid var(--line); }
.sum-chip span { display: block; font-size: 11px; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }
.sum-chip b { font-family: var(--font-head); font-size: 20px; }
.filters { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)) auto; gap: 10px; align-items: end; }
.filters .field { margin: 0; }
.filters .input { height: 40px; }
@media (max-width: 1450px) { .filters { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- Modal ---------- */
.modal-bg {
  position: fixed; inset: 0; z-index: 100; background: rgba(3, 3, 7, .72); backdrop-filter: blur(6px);
  display: grid; place-items: center; padding: 50px 20px 20px; animation: fadeIn .2s both;
}
.modal-bg.out { animation: fadeOut .18s both; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; } }
.modal {
  width: min(560px, 100%); max-height: calc(100vh - 80px); display: flex; flex-direction: column; border-radius: 18px;
  background: linear-gradient(180deg, #16161f, #101018); border: 1px solid #2d2d42; box-shadow: 0 40px 100px -20px #000, 0 0 0 1px rgba(255, 45, 85, .1), 0 0 60px -20px rgba(157, 77, 255, .4);
  animation: modalIn .28s cubic-bezier(.2, .9, .3, 1.15) both;
}
.modal.wide { width: min(860px, 100%); }
.modal-bg.out .modal { animation: modalOut .18s both; }
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(.96); } }
@keyframes modalOut { to { opacity: 0; transform: translateY(10px) scale(.97); } }
.modal-h { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid #23233a; }
.modal-h h2 { margin: 0; font-family: var(--font-head); font-size: 19px; letter-spacing: .03em; }
.modal-b { padding: 20px 22px; overflow-y: auto; }
.modal-f { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px; border-top: 1px solid #23233a; }
.modal-x { width: 34px; height: 34px; border-radius: 9px; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 22px; line-height: 1; }
.modal-x:hover { background: #22222f; color: #fff; }
.confirm-ic { width: 54px; height: 54px; border-radius: 50%; margin: 0 auto 14px; display: grid; place-items: center; background: rgba(255, 45, 85, .14); border: 1px solid rgba(255, 45, 85, .4); }
.confirm-ic svg { width: 26px; height: 26px; fill: none; stroke: var(--red); stroke-width: 2; }
.avatar-edit { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.avatar-edit .btns { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.mdetail-head { display: flex; gap: 20px; align-items: center; margin-bottom: 18px; }
.mdetail-head h2 { margin: 0 0 6px; font-family: var(--font-head); font-size: 28px; }
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 18px; }
.cat-grid div { background: #0d0d15; border: 1px solid var(--line); border-radius: 12px; padding: 10px; text-align: center; }
.cat-grid span { display: block; font-size: 10.5px; color: var(--muted); letter-spacing: .05em; text-transform: uppercase; margin-bottom: 4px; }
.cat-grid b { font-family: var(--font-head); font-size: 20px; }

/* ---------- Bildirimler ---------- */
.toasts { position: fixed; right: 22px; bottom: 22px; z-index: 200; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.toast {
  display: flex; align-items: center; gap: 12px; min-width: 280px; max-width: 440px; padding: 13px 16px; border-radius: 12px;
  background: #17171f; border: 1px solid #2f2f45; box-shadow: 0 20px 40px -12px #000; animation: toastIn .35s cubic-bezier(.2, .9, .3, 1.2) both;
}
.toast.out { animation: toastOut .25s both; }
@keyframes toastIn { from { opacity: 0; transform: translateX(40px); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(40px); } }
.toast i { width: 8px; height: 30px; border-radius: 4px; flex: none; background: var(--green); box-shadow: 0 0 10px var(--green); }
.toast.error i { background: var(--red); box-shadow: 0 0 10px var(--red); }
.toast.info i { background: var(--purple); box-shadow: 0 0 10px var(--purple); }
.toast span { line-height: 1.4; }

.muted { color: var(--muted); }
.dim { color: var(--dim); }
.gold { color: var(--gold); }
.mt { margin-top: 18px; }
.mb { margin-bottom: 18px; }
.flex { display: flex; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.kbd { font-size: 11px; color: var(--dim); border: 1px solid var(--line2); padding: 1px 6px; border-radius: 5px; }
.hidden { display: none !important; }

/* ---------- Haritalar ---------- */
.iimg { flex: none; border-radius: 12px; overflow: hidden; display: grid; place-items: center; background: #1c1c26; border: 1px solid #2c2c3d; }
.iimg img { width: 100%; height: 100%; object-fit: contain; }
.iimg.empty svg { width: 42%; height: 42%; fill: none; stroke: #6f6b86; stroke-width: 1.6; stroke-linejoin: round; }
.map-tabs { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-bottom: 18px; }
.map-tab {
  position: relative; overflow: hidden; cursor: pointer; padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line);
  background: linear-gradient(150deg, #171722, #0f0f17); transition: transform .25s, border-color .25s, box-shadow .25s;
}
.map-tab::after { content: ""; position: absolute; right: -40px; bottom: -60px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, rgba(157, 77, 255, .22), transparent 70%); }
.map-tab:hover { transform: translateY(-3px); border-color: #3e3e58; }
.map-tab.on { border-color: rgba(255, 45, 85, .6); background: linear-gradient(150deg, rgba(255, 45, 85, .18), rgba(157, 77, 255, .14) 60%, #0f0f17); box-shadow: 0 16px 36px -18px rgba(255, 45, 85, .8), 0 0 0 1px rgba(255, 45, 85, .25) inset; }
.mt-no { font-family: var(--font-head); font-size: 12px; letter-spacing: .2em; color: var(--muted); }
.mt-name { font-family: var(--font-head); font-size: 24px; font-weight: 800; letter-spacing: .05em; margin: 4px 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.map-tab.on .mt-name { background: linear-gradient(90deg, #fff, #ffb3c2 40%, var(--purple)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mt-sub { font-size: 12px; color: var(--muted); }
.mt-sum { position: absolute; right: 16px; top: 14px; font-family: var(--font-head); font-weight: 700; color: var(--gold); font-size: 14px; }
.map-head { display: flex; align-items: center; gap: 16px; padding-bottom: 16px; margin-bottom: 8px; border-bottom: 1px solid #22222f; flex-wrap: wrap; }
.map-head h2 { margin: 0 0 3px; font-family: var(--font-head); font-size: 26px; letter-spacing: .05em; }
.map-ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(255, 45, 85, .25), rgba(157, 77, 255, .25)); border: 1px solid rgba(255, 45, 85, .4); box-shadow: var(--glow-r); }
.map-ic svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linejoin: round; }
.mitems { display: flex; flex-direction: column; }
.mitem { display: flex; align-items: center; gap: 18px; padding: 16px 6px; border-bottom: 1px solid #1c1c29; animation: rise .4s both; animation-delay: calc(var(--i) * 40ms); border-radius: 12px; transition: background .2s; }
.mitem:last-child { border-bottom: 0; }
.mitem:hover { background: #13131c; }
.mitem-img { position: relative; cursor: pointer; border-radius: 14px; flex: none; }
.mitem-img .iimg { border-radius: 14px; }
.mitem-ov { position: absolute; inset: 0; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 11px; font-weight: 700; color: #fff; background: rgba(10, 10, 16, .78); opacity: 0; transition: opacity .2s; }
.mitem-ov svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 1.7; }
.mitem-img:hover .mitem-ov, .mitem-img.drag .mitem-ov { opacity: 1; }
.mitem-img.drag { box-shadow: 0 0 0 2px var(--purple), var(--glow-p); }
.mitem-body { flex: 1; min-width: 0; }
.mitem-name { font-family: var(--font-head); font-size: 19px; font-weight: 700; }
.mitem-cr { color: var(--muted); font-size: 13px; margin-top: 3px; }
.mitem-stats { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 9px; }
.mitem-act { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.img-drop { display: flex; gap: 18px; align-items: center; padding: 14px; border-radius: 14px; border: 1.5px dashed #3a3a52; background: #0d0d15; margin-bottom: 16px; outline: none; transition: border-color .2s, box-shadow .2s; }
.img-drop:focus, .img-drop.drag { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(157, 77, 255, .18); }

.nav-sep { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); padding: 12px 14px 4px; }
.brand { padding: 16px 18px 14px; }
.brand-emblem { width: 70px; height: 70px; margin-bottom: 8px; }

.sum-box { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; text-align: center; }
.sum-box div { background: #0d0d15; border: 1px solid var(--line); border-radius: 12px; padding: 12px 8px; }
.sum-box span { display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.sum-box b { font-family: var(--font-head); font-size: 20px; }
.chip .cn { cursor: text; }

/* Sevenfold */
.sf-tbl td { vertical-align: middle; }
.sf-tbl tr.on { background: linear-gradient(90deg, rgba(255, 45, 85, .08), transparent); }
.sf-tbl tfoot td { border-top: 1px solid var(--line2); background: #101018; padding: 14px; }
.sf-img { cursor: pointer; border-radius: 12px; transition: box-shadow .2s, transform .2s; width: max-content; }
.sf-img:hover { box-shadow: 0 0 0 2px var(--purple), var(--glow-p); transform: scale(1.04); }
.sf-name { font-family: var(--font-head); font-size: 16px; font-weight: 700; }
.sf-line { font-family: var(--font-head); font-size: 17px; color: var(--gold); }
.sf-total { font: 800 26px var(--font-head); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.qty { display: inline-flex; align-items: center; gap: 4px; }
.qty .qin { width: 56px; height: 36px; padding: 0 6px; text-align: center; font-family: var(--font-head); font-size: 16px; -moz-appearance: textfield; }
.qty .qin::-webkit-inner-spin-button { display: none; }
.qbtn { width: 28px; height: 36px; border-radius: 8px; border: 1px solid var(--line2); background: #15151f; color: var(--text); cursor: pointer; font-size: 16px; }
.qbtn:hover { border-color: var(--purple); color: #fff; }
.pin { height: 36px; text-align: right; padding-right: 30px; font-family: var(--font-head); font-size: 15px; }
/* CDW */
.cw-item.sel { background: linear-gradient(90deg, rgba(255, 45, 85, .16), rgba(157, 77, 255, .08)); box-shadow: inset 3px 0 0 var(--red); }
.cw-date { width: 50px; text-align: center; flex: none; border-radius: 10px; padding: 6px 0; background: #15151f; border: 1px solid var(--line2); }
.cw-date b { display: block; font-family: var(--font-head); font-size: 15px; }
.cw-date span { font-size: 10.5px; color: var(--muted); }

/* Clan Boss */
.pbar { flex: 1; height: 7px; border-radius: 6px; background: #1d1d29; overflow: hidden; margin-top: 6px; min-width: 50px; }
.pbar-f { height: 100%; border-radius: 6px; background: var(--grad); box-shadow: var(--glow-r); animation: grow .7s cubic-bezier(.2, .8, .2, 1) both; transform-origin: left; }
.flex .pbar { margin-top: 0; }
.legend-inline { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.legend-inline i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-left: 6px; }
.boss-tbl tr.on { background: linear-gradient(90deg, rgba(46, 230, 160, .07), transparent 60%); }
.boss-tbl td { padding: 8px 12px; }
.input.mini { height: 34px; width: 90px; padding: 0 10px; text-align: right; font-family: var(--font-head); }
.input.mini:disabled { opacity: .35; }
.att-tg { display: inline-flex; cursor: pointer; user-select: none; }
.att-tg input { display: none; }
.att-tg span { height: 30px; padding: 0 12px; display: inline-flex; align-items: center; font-size: 12.5px; font-weight: 700; border: 1px solid var(--line2); background: #14141d; color: var(--dim); }
.att-tg .att-yes { border-radius: 8px 0 0 8px; }
.att-tg .att-no { border-radius: 0 8px 8px 0; border-left: 0; background: rgba(255, 45, 85, .12); color: #ff8098; border-color: rgba(255, 45, 85, .35); }
.att-tg input:checked ~ .att-yes { background: rgba(46, 230, 160, .16); color: var(--green); border-color: rgba(46, 230, 160, .45); }
.att-tg input:checked ~ .att-no { background: #14141d; color: var(--dim); border-color: var(--line2); }
.att-tg input:disabled ~ span { cursor: default; opacity: .8; }
.boss-sum { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 14px; }
.boss-sum div { background: #0d0d15; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.boss-sum span { display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.boss-sum b { font-family: var(--font-head); font-size: 22px; }
.boss-sum small { font-size: 13px; color: var(--muted); }
tr.dimrow { opacity: .45; }

.edit-banner svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.av.s80 { width: 80px; height: 80px; font-size: 26px; }
.av.s30 { width: 30px; height: 30px; font-size: 11px; }
.av.s32 { width: 32px; height: 32px; font-size: 12px; }
.sf-name { white-space: nowrap; font-size: 15px; }
.sf-tbl td, .sf-tbl th { padding-left: 10px; padding-right: 10px; }
.g-drop { grid-template-columns: minmax(0, 1.6fr) minmax(340px, 1fr); }
.tbl.compact th, .tbl.compact td { padding: 10px 8px; font-size: 13px; }
.tbl.compact th { font-size: 10px; letter-spacing: .08em; }

/* İtemler */
.items-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.icard { position: relative; text-align: center; padding: 16px 12px 14px; border-radius: 16px; background: linear-gradient(170deg, #161620, #0f0f17 70%); border: 1px solid var(--line); transition: transform .25s, border-color .25s, box-shadow .25s; }
.icard:hover { transform: translateY(-3px); border-color: rgba(157, 77, 255, .5); box-shadow: 0 16px 36px -20px rgba(157, 77, 255, .7); }
.icard-img { position: relative; width: max-content; margin: 0 auto 10px; cursor: pointer; border-radius: 14px; }
.icard-img .iimg { border-radius: 14px; background: radial-gradient(circle at 50% 40%, #2a2a3a, #15151f); }
.icard-img:hover .mitem-ov, .icard-img.drag .mitem-ov { opacity: 1; }
.icard-img.drag { box-shadow: 0 0 0 2px var(--purple), var(--glow-p); }
.icard-name { font-family: var(--font-head); font-weight: 700; font-size: 15px; margin-bottom: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icard-note { font-size: 12px; color: var(--muted); margin-top: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icard-act { position: absolute; top: 8px; right: 8px; display: flex; flex-direction: column; gap: 4px; opacity: 0; transition: opacity .2s; }
.icard:hover .icard-act { opacity: 1; }
.iimg img { image-rendering: auto; }

/* Web sürümü */
.web .titlebar { padding-right: 14px; -webkit-app-region: no-drag; }
.tb-user { display: flex; align-items: center; gap: 8px; margin-left: 14px; -webkit-app-region: no-drag; }
.tb-user:empty { display: none; }
.tbu-name { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.tbu-name .av { width: 24px; height: 24px; font-size: 10px; }
.ro-hide { display: none !important; }
.ro-lock { pointer-events: none !important; }
input.ro-lock, textarea.ro-lock, select.ro-lock, .chip-box.ro-lock { opacity: .6; }
.ro-banner { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-radius: 12px; margin-bottom: 16px; background: rgba(157, 77, 255, .1); border: 1px solid rgba(157, 77, 255, .35); color: #dcc7ff; font-size: 13.5px; }
.ro-banner svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; flex: none; }
.ro-banner .btn { margin-left: auto; }
.setup-wrap { min-height: calc(100vh - 140px); display: grid; place-items: center; }
.setup-card { width: min(560px, 100%); padding: 28px 30px; }
.perm-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.perm { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: #0d0d15; border: 1px solid var(--line); cursor: pointer; }
.perm input { display: none; }
.perm .tr { width: 34px; height: 20px; border-radius: 20px; background: #26263a; position: relative; flex: none; transition: background .2s; }
.perm .tr::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #aaa6bf; transition: transform .2s; }
.perm input:checked + .tr { background: var(--grad); }
.perm input:checked + .tr::after { transform: translateX(14px); background: #fff; }
.perm b { display: block; font-size: 13px; }
.perm small { color: var(--muted); font-size: 11.5px; }
.perm.dis { opacity: .5; cursor: default; }
@media (max-width: 900px) {
  .web .sidebar { width: 64px; }
  .web .brand, .web .side-foot, .web .nav a span, .web .nav-sep { display: none; }
  .web .page { padding: 18px 14px 40px; }
  .web .perm-grid { grid-template-columns: 1fr; }
  .web .tb-title { display: none; }
}

@media (max-width: 900px) {
  .web .tb-save, .web .tbu-name b, .web .tbu-name .badge { display: none; }
  .web .stats, .web .stats.six { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .web .stat .val { font-size: 22px; }
  .web .grid.g2, .web .g-main, .web .g-drop, .web .g-points { grid-template-columns: 1fr !important; }
  .web .hero { padding: 22px; }
  .web .filters { grid-template-columns: 1fr 1fr !important; }
  .web .tabs { width: auto; overflow-x: auto; }
  .web .modal { width: 100% !important; }
}
