/* =====================================================================
   MottaaV Roleplay
   Siyah zemin, neon lime marka rengi, cam efektli kartlar.
   ===================================================================== */

:root {
  --bg:            #09090b;
  --surface:       rgba(255, 255, 255, 0.022);
  --surface-hover: rgba(255, 255, 255, 0.045);
  --line:          rgba(255, 255, 255, 0.07);
  --line-strong:   rgba(255, 255, 255, 0.13);

  --text:   #fafafa;
  --muted:  #a1a1aa;
  --faint:  #71717a;

  --brand:       #BEEE11;
  --brand-soft:  rgba(190, 238, 17, 0.10);
  --brand-mid:   rgba(190, 238, 17, 0.22);
  --brand-glow:  rgba(190, 238, 17, 0.45);
  --brand-ink:   #16200a;

  --ok:        #10b981;
  --ok-bg:     rgba(16, 185, 129, 0.10);
  --warn:      #f59e0b;
  --warn-bg:   rgba(245, 158, 11, 0.10);
  --danger:    #f43f5e;
  --danger-bg: rgba(244, 63, 94, 0.10);

  --r-sm: 10px;
  --r:    16px;
  --r-lg: 20px;

  --font: 'Outfit', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Zemin katmanlari: izgara, parlama, film greni */
.bg-layer { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.bg-layer--grid {
  background-size: 44px 44px;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.02) 1px, transparent 1px);
  mask-image: radial-gradient(ellipse 90% 55% at 50% 0%, #000 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 55% at 50% 0%, #000 10%, transparent 75%);
}
.bg-layer--glow {
  background:
    radial-gradient(760px 380px at 50% -6%, rgba(190,238,17,.09), transparent 70%),
    radial-gradient(560px 300px at 88% 12%, rgba(190,238,17,.045), transparent 70%);
}
.bg-layer--grain {
  opacity: .016;
  z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: var(--brand); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: #d4f95a; }

::selection { background: var(--brand); color: var(--brand-ink); }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--brand); }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 5px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* --------------------------------------------------------------- */
/*  Yerlesim                                                        */
/* --------------------------------------------------------------- */
.wrap { width: min(1200px, 100% - 3rem); margin-inline: auto; position: relative; z-index: 2; }
.wrap-narrow { width: min(760px, 100% - 3rem); margin-inline: auto; position: relative; z-index: 2; }
main { flex: 1; padding: 3rem 0 5rem; position: relative; z-index: 2; }

.stack > * + * { margin-top: 1rem; }
.stack-lg > * + * { margin-top: 2rem; }
.row { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.row-between { display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.grid { display: grid; gap: 1.1rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

/* --------------------------------------------------------------- */
/*  Tipografi                                                       */
/* --------------------------------------------------------------- */
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.15; letter-spacing: -.025em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 2.8vw, 2rem); }
h3 { font-size: 1.1rem; }
p { margin: 0; }

.lead { font-size: 1.05rem; color: var(--muted); max-width: 62ch; line-height: 1.7; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: .84rem; }
.mono { font-family: var(--mono); }
code { font-family: var(--mono); font-size: .88em; color: var(--brand); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--brand);
}
.eyebrow::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: var(--brand); box-shadow: 0 0 9px var(--brand);
}

.text-brand {
  background: linear-gradient(135deg, var(--brand) 0%, #e9fca5 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* --------------------------------------------------------------- */
/*  Ust bar                                                         */
/* --------------------------------------------------------------- */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(9, 9, 11, .82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner { display: flex; align-items: center; gap: 1.25rem; height: 68px; }

.brand { display: flex; align-items: center; gap: .65rem; font-weight: 800; font-size: 1.15rem; letter-spacing: -.03em; color: var(--text); }
.brand:hover { color: var(--text); }
.brand__logo { width: 36px; height: 36px; border-radius: 9px; object-fit: cover; border: 1px solid var(--line-strong); }

.nav { display: flex; gap: .2rem; margin-left: auto; align-items: center; flex-wrap: wrap; }
.nav a {
  position: relative; padding: .5rem .8rem; border-radius: var(--r-sm);
  font-size: .9rem; font-weight: 500; color: var(--muted);
  transition: all .2s var(--ease);
}
.nav a:hover { color: var(--text); background: var(--surface-hover); }
.nav a.is-active { color: var(--text); background: rgba(255,255,255,.05); }
.nav a.is-active::after {
  content: ''; position: absolute; bottom: 3px; left: 14px; right: 14px; height: 1.5px;
  background: linear-gradient(to right, var(--brand-glow), var(--brand));
}

.avatar { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-strong); vertical-align: middle; }

/* --------------------------------------------------------------- */
/*  Kartlar                                                         */
/* --------------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.6rem;
  backdrop-filter: blur(8px);
  transition: border-color .25s var(--ease), background .25s var(--ease), transform .25s var(--ease);
}
.card:hover { border-color: var(--line-strong); }
.card--flat { backdrop-filter: none; background: rgba(255,255,255,.015); }
.card__title { font-size: .95rem; font-weight: 700; margin-bottom: 1rem; letter-spacing: -.01em; }

.stat {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 1.35rem 1.45rem;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.stat:hover { border-color: var(--line-strong); background: var(--surface-hover); }
.stat__value { font-size: 1.85rem; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.stat__label { font-size: .74rem; color: var(--faint); text-transform: uppercase; letter-spacing: .11em; margin-top: .55rem; font-weight: 600; }
.stat--amber .stat__value, .stat--brand .stat__value { color: var(--brand); text-shadow: 0 0 26px var(--brand-glow); }
.stat--ok .stat__value { color: var(--ok); }
.stat--teal .stat__value { color: var(--ok); }
.stat--warn .stat__value { color: var(--warn); }

/* --------------------------------------------------------------- */
/*  Imza ogesi: San Andreas plakasi                                 */
/* --------------------------------------------------------------- */
.plate {
  display: inline-flex; flex-direction: column; align-items: stretch;
  background: linear-gradient(#fdfdf8, #e7e7dc);
  border: 2px solid #c9c9bb; border-radius: 7px;
  padding: 2px 3px 3px; min-width: 128px; line-height: 1;
  box-shadow: inset 0 1px 0 #fff, 0 4px 14px -6px rgba(0,0,0,.85);
}
.plate__head { font-family: var(--mono); font-size: .48rem; letter-spacing: .2em; text-align: center; color: #2f4fa8; padding: 2px 0 1px; text-transform: uppercase; }
.plate__value { font-family: var(--mono); font-weight: 700; font-size: 1.05rem; letter-spacing: .12em; text-align: center; color: #16192b; padding: 2px 6px 4px; text-transform: uppercase; }
.plate--sm { min-width: 98px; }
.plate--sm .plate__value { font-size: .82rem; padding: 1px 4px 3px; }

/* --------------------------------------------------------------- */
/*  Rozetler                                                        */
/* --------------------------------------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: .3rem .6rem; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255,255,255,.03); color: var(--muted);
}
.badge--brand, .badge--amber { color: var(--brand); border-color: var(--brand-mid); background: var(--brand-soft); }
.badge--ok, .badge--teal     { color: var(--ok); border-color: rgba(16,185,129,.3); background: var(--ok-bg); }
.badge--warn                 { color: var(--warn); border-color: rgba(245,158,11,.3); background: var(--warn-bg); }
.badge--danger               { color: var(--danger); border-color: rgba(244,63,94,.3); background: var(--danger-bg); }

/* --------------------------------------------------------------- */
/*  Butonlar                                                        */
/* --------------------------------------------------------------- */
/* Butonlarin olculeri MOTTAAV sitesinden birebir alindi. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-size: 14px; font-weight: 500;
  padding: 14px 28px; border-radius: 12px;
  border: 1px solid var(--line); background: rgba(255,255,255,.03);
  color: #fff; cursor: pointer; backdrop-filter: blur(10px);
  transition: all .3s var(--ease);
}
.btn:hover { background: rgba(255,255,255,.06); border-color: var(--line-strong); color: #fff; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary {
  background: linear-gradient(135deg, var(--brand) 0%, #8cae08 100%);
  border-color: transparent; color: #fff; font-weight: 600;
  box-shadow: 0 4px 20px rgba(190, 238, 17, .2);
}
.btn--primary:hover {
  background: linear-gradient(135deg, var(--brand) 0%, #8cae08 100%);
  color: #fff; filter: brightness(1.1);
  box-shadow: 0 6px 25px rgba(190, 238, 17, .4);
}
.btn--ok { background: linear-gradient(135deg, #10b981 0%, #059669 100%); border-color: transparent; color: #fff; font-weight: 600; box-shadow: 0 4px 20px rgba(16,185,129,.2); }
.btn--ok:hover { color: #fff; filter: brightness(1.1); box-shadow: 0 6px 25px rgba(16,185,129,.4); }
.btn--danger { background: transparent; border-color: rgba(244,63,94,.45); color: var(--danger); }
.btn--danger:hover { background: var(--danger-bg); border-color: var(--danger); color: var(--danger); }
.btn--ghost { background: transparent; border-color: var(--line); }
.btn--sm { padding: 8px 16px; font-size: 13px; border-radius: 9px; }
.btn--sm:hover { transform: none; }
.btn--block { width: 100%; }
.btn--discord { background: #5865F2; border-color: #5865F2; color: #fff; }
.btn--discord:hover { background: #4854e0; border-color: #4854e0; color: #fff; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

/* --------------------------------------------------------------- */
/*  Formlar                                                         */
/* --------------------------------------------------------------- */
.field { margin-bottom: 1.7rem; }
.field__label { display: block; font-weight: 600; margin-bottom: .35rem; font-size: .94rem; }
.field__req { color: var(--brand); }
.field__help { display: block; color: var(--faint); font-size: .84rem; margin-bottom: .55rem; line-height: 1.55; }
.field__error { color: var(--danger); font-size: .84rem; margin-top: .45rem; font-weight: 500; }

input[type=text], input[type=number], input[type=search], input[type=password], textarea, select {
  width: 100%;
  background: rgba(0,0,0,.35);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--text);
  font-family: inherit; font-size: .94rem;
  padding: .7rem .85rem;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
input::placeholder, textarea::placeholder { color: #52525b; }
input:focus, textarea:focus, select:focus { border-color: var(--brand); outline: none; background: rgba(0,0,0,.5); }
textarea { min-height: 128px; resize: vertical; line-height: 1.65; }
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) 55%, calc(100% - 13px) 55%;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 2.4rem;
}
select option { background: #131316; color: var(--text); }
.has-error input, .has-error textarea, .has-error select { border-color: var(--danger); }

.check { display: flex; gap: .7rem; align-items: flex-start; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); margin-top: .25rem; flex: none; }

.counter { font-family: var(--mono); font-size: .74rem; color: var(--faint); text-align: right; margin-top: .35rem; }
.counter.is-short { color: var(--warn); }

/* --------------------------------------------------------------- */
/*  Tablolar                                                        */
/* --------------------------------------------------------------- */
.table-scroll { overflow-x: auto; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .89rem; }
th {
  text-align: left; font-size: .7rem; letter-spacing: .11em; text-transform: uppercase;
  color: var(--faint); font-weight: 700; padding: .8rem .95rem;
  background: rgba(255,255,255,.025); white-space: nowrap;
}
td { padding: .8rem .95rem; border-top: 1px solid var(--line); vertical-align: middle; }
tbody tr { transition: background .18s var(--ease); }
tbody tr:hover { background: rgba(255,255,255,.025); }
.num { text-align: right; font-family: var(--mono); }

/* --------------------------------------------------------------- */
/*  Bilgi kutulari                                                  */
/* --------------------------------------------------------------- */
.note {
  border-left: 3px solid var(--line-strong);
  background: rgba(255,255,255,.025);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: .95rem 1.15rem;
  line-height: 1.6;
}
.note--ok     { border-left-color: var(--ok);     background: var(--ok-bg); }
.note--warn   { border-left-color: var(--warn);   background: var(--warn-bg); }
.note--danger { border-left-color: var(--danger); background: var(--danger-bg); }
.note--amber, .note--brand { border-left-color: var(--brand); background: var(--brand-soft); }

.empty { text-align: center; padding: 3.5rem 1rem; color: var(--muted); }
.empty h3 { margin-bottom: .5rem; color: var(--text); }

/* --------------------------------------------------------------- */
/*  Anasayfa                                                        */
/* --------------------------------------------------------------- */
.hero { padding: 5rem 0 4rem; text-align: center; }
.hero h1 { max-width: 800px; margin-inline: auto; font-size: clamp(2.25rem, 6vw, 64px); line-height: 1.1; letter-spacing: -.03em; }
.hero h1 em { font-style: normal; }
.hero__lead { margin: 1.5rem auto 0; font-size: 18px; max-width: 600px; }
.hero__cta { margin-top: 2.5rem; display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.hero__logo {
  width: 124px; height: 124px; border-radius: 26px; object-fit: cover;
  margin-bottom: 2rem; border: 1px solid var(--line-strong);
  box-shadow: 0 26px 70px -26px var(--brand-glow);
}

.pill {
  display: inline-flex; align-items: center; gap: .55rem;
  background: rgba(255,255,255,.03); border: 1px solid var(--line);
  padding: .5rem 1.1rem; border-radius: 999px; font-size: .84rem;
  backdrop-filter: blur(10px); margin-bottom: 1.5rem; color: var(--muted);
}
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); position: relative; flex: none; }
.pill__dot::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--ok); animation: ping 1.6s infinite; }
.pill__dot--off { background: var(--danger); box-shadow: 0 0 10px var(--danger); }
.pill__dot--off::after { display: none; }
@keyframes ping { 0% { transform: scale(.9); opacity: 1; } 75%, 100% { transform: scale(1.9); opacity: 0; } }

.steps { counter-reset: step; display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.step {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 1.7rem 1.5rem 1.5rem;
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.step:hover { border-color: var(--brand-mid); transform: translateY(-3px); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: block; font-family: var(--mono); font-size: 1.5rem; font-weight: 700;
  color: var(--brand); opacity: .55; margin-bottom: .85rem; line-height: 1;
}
.step h3 { margin-bottom: .4rem; }
.step p { color: var(--muted); font-size: .9rem; }

/* --------------------------------------------------------------- */
/*  Karakter kartlari                                               */
/* --------------------------------------------------------------- */
.char-card { display: block; color: inherit; }
.char-card:hover { color: inherit; border-color: var(--brand-mid); background: var(--surface-hover); transform: translateY(-3px); }
.char-card__name { font-size: 1.3rem; font-weight: 700; letter-spacing: -.02em; }
.char-card__money { display: flex; gap: 1.5rem; margin-top: 1.15rem; flex-wrap: wrap; }
.char-card__money div span { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .11em; color: var(--faint); font-weight: 600; }
.char-card__money div strong { font-family: var(--mono); font-size: 1.05rem; font-weight: 600; }

.kv { display: grid; grid-template-columns: auto 1fr; gap: .5rem 1.2rem; font-size: .9rem; }
.kv dt { color: var(--faint); }
.kv dd { margin: 0; }

.bar { height: 5px; border-radius: 3px; background: rgba(255,255,255,.07); overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--brand); }
.bar > i.is-low { background: var(--danger); }
.bar > i.is-mid { background: var(--warn); }

.item-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(125px, 1fr)); gap: .65rem; }
.item {
  background: rgba(255,255,255,.03); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: .65rem .7rem; position: relative;
  transition: border-color .2s var(--ease);
}
.item:hover { border-color: var(--line-strong); }
.item__slot { position: absolute; top: 5px; right: 7px; font-family: var(--mono); font-size: .6rem; color: var(--faint); }
.item__name { font-size: .82rem; font-weight: 600; line-height: 1.35; }
.item__count { font-family: var(--mono); font-size: .75rem; color: var(--brand); margin-top: .15rem; }
.item--weapon { border-color: rgba(244,63,94,.28); }

/* Sekmeler */
.tabs { display: flex; gap: .3rem; border-bottom: 1px solid var(--line); margin-bottom: 1.75rem; overflow-x: auto; }
.tabs button {
  background: none; border: none; border-bottom: 2px solid transparent;
  color: var(--muted); font: inherit; font-weight: 600; font-size: .9rem;
  padding: .7rem 1rem; cursor: pointer; white-space: nowrap;
  transition: color .2s var(--ease);
}
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected="true"] { color: var(--brand); border-bottom-color: var(--brand); }
.tabpanel[hidden] { display: none; }

/* Acilir kapanir duzenleyici (basvuru sorulari) */
details.editor { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; }
details.editor + details.editor { margin-top: .7rem; }
details.editor > summary {
  padding: .95rem 1.2rem; cursor: pointer; list-style: none;
  display: flex; align-items: center; gap: .8rem; flex-wrap: wrap;
  transition: background .2s var(--ease);
}
details.editor > summary::-webkit-details-marker { display: none; }
details.editor > summary:hover { background: var(--surface-hover); }
details.editor[open] > summary { border-bottom: 1px solid var(--line); background: rgba(255,255,255,.03); }
details.editor .editor__body { padding: 1.4rem 1.2rem; }

/* Tani sonuclari */
.diag { display: grid; gap: .5rem; }
.diag__row {
  display: grid; grid-template-columns: 26px 1fr; gap: .85rem;
  padding: .85rem 1.1rem; border: 1px solid var(--line);
  border-radius: var(--r-sm); background: var(--surface);
}
.diag__row.is-bad { border-color: rgba(244,63,94,.35); background: var(--danger-bg); }
.diag__mark { font-weight: 800; line-height: 1.5; }
.diag__row.is-ok .diag__mark { color: var(--ok); }
.diag__row.is-bad .diag__mark { color: var(--danger); }
.diag__name { font-weight: 600; }
.diag__detail { font-size: .86rem; color: var(--muted); margin-top: .15rem; }
.diag__row.is-bad .diag__detail { color: #fda4af; }

/* Coklu secim kutusu (roller / kanallar) */
.picker {
  max-height: 260px; overflow-y: auto;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: rgba(0,0,0,.3); padding: .35rem;
}
.picker__item {
  display: flex; align-items: center; gap: .65rem;
  padding: .5rem .65rem; border-radius: 7px; cursor: pointer;
  font-size: .9rem; transition: background .15s var(--ease);
}
.picker__item:hover { background: rgba(255,255,255,.045); }
.picker__item input { width: 16px; height: 16px; accent-color: var(--brand); flex: none; margin: 0; }
.picker__item:has(input:checked) { background: var(--brand-soft); }
.picker__dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.picker__hash { color: var(--faint); font-family: var(--mono); flex: none; }

/* Yetki matrisi */
.perm-table td { vertical-align: top; }
.perm-table tr.perm-group td {
  background: rgba(255,255,255,.03); font-size: .7rem; font-weight: 700;
  letter-spacing: .11em; text-transform: uppercase; color: var(--brand);
  padding: .6rem .95rem;
}
.perm-table tr.perm-group:hover td { background: rgba(255,255,255,.03); }
.perm-check { display: inline-flex; padding: .35rem; cursor: pointer; }
.perm-check input { width: 18px; height: 18px; accent-color: var(--brand); margin: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Alt bilgi */
footer.site { border-top: 1px solid var(--line); padding: 2rem 0; color: var(--faint); font-size: .84rem; position: relative; z-index: 2; }

/* Sayfalama */
.pager { display: flex; gap: .4rem; justify-content: center; margin-top: 1.75rem; flex-wrap: wrap; }
.pager a, .pager span { padding: .4rem .78rem; border-radius: var(--r-sm); border: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.pager a:hover { border-color: var(--line-strong); color: var(--text); }
.pager .is-current { background: var(--brand-soft); color: var(--brand); border-color: var(--brand-mid); }

@media (max-width: 680px) {
  .wrap, .wrap-narrow { width: calc(100% - 2rem); }
  .topbar__inner { height: auto; padding: .75rem 0; flex-wrap: wrap; }
  .nav { width: 100%; margin-left: 0; }
  main { padding-top: 1.75rem; }
  .hero { padding: 2.75rem 0 2rem; }
  .hero__logo { width: 88px; height: 88px; }
  .card { padding: 1.2rem; }
}

/* --------------------------------------------------------------- */
/*  Rol yönetimi                                                    */
/* --------------------------------------------------------------- */
.role-dot {
  width: 11px; height: 11px; border-radius: 50%; flex: none;
  box-shadow: 0 0 8px currentColor;
}

.perm-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: rgba(0,0,0,.3); padding: .9rem;
}
.perm-col__title {
  font-size: .68rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--brand);
  margin-bottom: .4rem; padding-left: .65rem;
}
.perm-col .picker__item { align-items: flex-start; }
.perm-col .picker__item input { margin-top: .25rem; }

/* --------------------------------------------------------------- */
/*  Mağaza                                                          */
/* --------------------------------------------------------------- */
.pkg {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.pkg:hover { border-color: var(--brand-mid); transform: translateY(-3px); }
.pkg.is-out { opacity: .55; }
.pkg.is-out:hover { transform: none; border-color: var(--line); }

.pkg__image { aspect-ratio: 16/9; overflow: hidden; background: rgba(0,0,0,.4); }
.pkg__image img { width: 100%; height: 100%; object-fit: cover; display: block; }

.pkg__body { padding: 1.35rem; display: flex; flex-direction: column; flex: 1; }
.pkg__name { font-size: 1.15rem; font-weight: 700; letter-spacing: -.02em; }

.pkg__features { list-style: none; margin: 1.1rem 0 0; padding: 0; display: grid; gap: .45rem; }
.pkg__features li {
  position: relative; padding-left: 1.4rem; font-size: .88rem; color: var(--muted); line-height: 1.5;
}
.pkg__features li::before {
  content: '✓'; position: absolute; left: 0; top: 0;
  color: var(--brand); font-weight: 700; font-size: .85rem;
}
.pkg__features--lg li { font-size: .95rem; color: var(--text); }

.pkg__foot {
  margin-top: auto; padding-top: 1.35rem;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.pkg__price strong { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; display: block; }
.pkg__old {
  display: block; font-size: .82rem; color: var(--faint);
  text-decoration: line-through; margin-bottom: .1rem;
}
.pkg__stock { margin-top: 1rem; display: grid; gap: .35rem; }

/* --------------------------------------------------------------- */
/*  Kurallar                                                        */
/* --------------------------------------------------------------- */
.rule-search { max-width: 460px; margin: 0 auto; }
.rule-search input { text-align: center; }

.rule-section { scroll-margin-top: 90px; }
.rule-section + .rule-section { margin-top: 3rem; }
.rule-section h2 {
  padding-bottom: .7rem;
  border-bottom: 1px solid var(--line);
}

.rule {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 1.25rem 1.4rem;
  transition: border-color .2s var(--ease);
}
.rule:hover { border-color: var(--line-strong); }
.rule__head { display: flex; align-items: baseline; gap: .8rem; flex-wrap: wrap; }
.rule__code {
  font-family: var(--mono); font-size: .78rem; font-weight: 700;
  color: var(--brand); background: var(--brand-soft);
  border: 1px solid var(--brand-mid); border-radius: 6px;
  padding: .15rem .5rem; flex: none;
}
.rule__title { font-size: 1.02rem; font-weight: 600; flex: 1; min-width: 200px; }
.rule__body { margin-top: .6rem; color: var(--muted); white-space: pre-wrap; line-height: 1.7; }
.rule__punish {
  margin-top: .9rem; padding-top: .8rem; border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; color: var(--muted);
}
.rule-empty { text-align: center; color: var(--muted); padding: 2.5rem 0; }

/* --------------------------------------------------------------- */
/*  Oyuncu yönetimi                                                 */
/* --------------------------------------------------------------- */
.dot {
  display: inline-block; width: 9px; height: 9px; border-radius: 50%;
  background: #3f3f46; flex: none;
}
.dot--on { background: var(--ok); box-shadow: 0 0 9px var(--ok); }

.act-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.act {
  background: rgba(0,0,0,.28); border: 1px solid var(--line);
  border-radius: var(--r); padding: 1.15rem 1.25rem;
}
.act__title {
  font-size: .74rem; font-weight: 700; letter-spacing: .11em;
  text-transform: uppercase; color: var(--brand); margin-bottom: .9rem;
}
.act .field { margin-bottom: .9rem; }
.act .field:last-of-type { margin-bottom: 1rem; }

.ledger-row td { vertical-align: top; }
.ledger-row.is-undone { opacity: .5; }
.ledger-row.is-undone .ledger-summary { text-decoration: line-through; }
.ledger-summary { font-weight: 600; }

/* Canlı (oyun içinden gelen) değerler */
.num.is-live { color: var(--ok); }
.num.is-live::after {
  content: '●'; font-size: .5em; vertical-align: super;
  margin-left: .25rem; opacity: .7;
}

/* --------------------------------------------------------------- */
/*  Aranabilir açılır liste                                         */
/* --------------------------------------------------------------- */
.combo { position: relative; }
.combo__list {
  position: absolute; z-index: 60; left: 0; right: 0; top: calc(100% + 4px);
  max-height: 260px; overflow-y: auto;
  background: #14141a; border: 1px solid var(--line-strong);
  border-radius: var(--r-sm); box-shadow: 0 18px 40px -18px rgba(0,0,0,.9);
  padding: .25rem;
}
.combo__item {
  display: flex; align-items: baseline; justify-content: space-between; gap: .75rem;
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  color: var(--text); font: inherit; font-size: .88rem;
  padding: .5rem .6rem; border-radius: 6px;
}
.combo__item:hover, .combo__item.is-active { background: var(--brand-soft); color: var(--brand); }
.combo__label { flex: 1; }
.combo__key { font-family: var(--mono); font-size: .72rem; color: var(--faint); flex: none; }
.combo__item:hover .combo__key { color: var(--brand); opacity: .7; }
.combo__empty {
  position: absolute; z-index: 60; left: 0; right: 0; top: calc(100% + 4px);
  background: #14141a; border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: .7rem .8rem; font-size: .85rem; color: var(--muted);
}
.combo__input.is-picked { border-color: var(--brand); }

/* CK kartı - tehlikeli işlem */
.act--danger { border-color: rgba(244,63,94,.35); background: rgba(244,63,94,.04); }

/* =====================================================================
   MottaaV Social
   ===================================================================== */

.sn-nav {
  display: flex; align-items: center; gap: .3rem; flex-wrap: wrap;
  padding-bottom: 1.25rem; margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.sn-nav a {
  padding: .45rem .8rem; border-radius: var(--r-sm);
  font-size: .9rem; font-weight: 500; color: var(--muted);
  transition: all .2s var(--ease);
}
.sn-nav a:hover { color: var(--text); background: var(--surface-hover); }
.sn-nav a.is-active { color: var(--brand); background: var(--brand-soft); }
.sn-nav .btn { color: var(--brand-ink); }
.sn-me { padding: 0 !important; margin-left: .35rem; }

.sn-dot {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--brand); color: var(--brand-ink);
  font-size: .68rem; font-weight: 700; vertical-align: middle;
}

/* Avatar */
.sn-avatar {
  border-radius: 50%; object-fit: cover; flex: none;
  border: 1px solid var(--line-strong); background: var(--surface-solid, #131316);
  display: inline-flex; align-items: center; justify-content: center;
}
.sn-avatar--empty {
  background: linear-gradient(135deg, var(--brand) 0%, #8cae08 100%);
  color: var(--brand-ink); font-weight: 800; border: none;
}

.sn-user { display: flex; align-items: center; gap: .6rem; color: inherit; min-width: 0; }
.sn-user:hover { color: inherit; text-decoration: none; }
.sn-user__text { display: flex; flex-direction: column; min-width: 0; }
.sn-user__name { font-weight: 600; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sn-user__handle { font-size: .78rem; color: var(--faint); }
.sn-verified { color: var(--brand); font-size: .8em; }

/* Story şeridi */
.sn-stories {
  display: flex; gap: 1rem; overflow-x: auto; padding: .25rem .25rem 1.25rem;
  margin-bottom: 1.5rem; border-bottom: 1px solid var(--line);
}
.sn-story {
  display: flex; flex-direction: column; align-items: center; gap: .4rem;
  flex: none; width: 72px; color: inherit; text-align: center;
}
.sn-story:hover { color: inherit; text-decoration: none; }
.sn-story__ring {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 2px; border-radius: 50%; border: 2px solid var(--line-strong);
}
.sn-story__ring.is-unseen {
  border-color: transparent;
  background: linear-gradient(135deg, var(--brand) 0%, #8cae08 100%);
}
.sn-story__ring--add {
  width: 62px; height: 62px; font-size: 1.6rem; color: var(--brand);
  border-style: dashed; cursor: pointer;
}
.sn-story__name {
  font-size: .72rem; color: var(--muted);
  max-width: 72px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sn-story--add label { cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: .4rem; }

/* Gönderi kartı */
.sn-post {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden; margin-bottom: 1.75rem;
}
.sn-post__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .9rem 1.1rem;
}
.sn-post__loc { font-size: .78rem; color: var(--faint); }
.sn-post__media { background: #000; display: grid; }
.sn-post__media img { width: 100%; display: block; max-height: 640px; object-fit: contain; }
.sn-post__media.is-multi { grid-template-columns: repeat(2, 1fr); gap: 2px; }
.sn-post__media.is-multi img { max-height: 320px; object-fit: cover; }
.sn-post__actions { display: flex; align-items: center; gap: 1.1rem; padding: .8rem 1.1rem .4rem; }
.sn-like {
  background: none; border: none; cursor: pointer; color: var(--muted);
  font: inherit; font-size: .92rem; padding: 0; display: inline-flex; gap: .35rem;
  transition: color .2s var(--ease);
}
.sn-like:hover { color: var(--text); }
.sn-like.is-liked { color: var(--danger); }
.sn-post__time { margin-left: auto; font-size: .76rem; color: var(--faint); }
.sn-post__caption { padding: .25rem 1.1rem 1.1rem; font-size: .92rem; line-height: 1.6; }
.sn-post__caption a { color: var(--brand); }

/* Profil */
.sn-profile { display: flex; gap: 2rem; align-items: flex-start; flex-wrap: wrap; margin-bottom: 2rem; }
.sn-profile__info { flex: 1; min-width: 240px; }
.sn-stats { display: flex; gap: 1.5rem; margin-top: 1rem; font-size: .9rem; color: var(--muted); }
.sn-stats strong { color: var(--text); }
.sn-bio { margin-top: .9rem; font-size: .92rem; line-height: 1.6; white-space: pre-wrap; }

.sn-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.sn-grid__item { position: relative; aspect-ratio: 1; overflow: hidden; background: #000; }
.sn-grid__item img { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s var(--ease); }
.sn-grid__item:hover img { opacity: .55; }
.sn-grid__meta {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: .84rem; font-weight: 600; opacity: 0; transition: opacity .2s var(--ease);
}
.sn-grid__item:hover .sn-grid__meta { opacity: 1; }

/* Yorum */
.sn-comment {
  display: flex; gap: .7rem; align-items: flex-start;
  padding: .65rem 0; border-top: 1px solid var(--line); font-size: .9rem;
}

/* Mesajlar */
.sn-dm { display: grid; grid-template-columns: 280px 1fr; gap: 1rem; min-height: 480px; }
.sn-dm__list {
  border: 1px solid var(--line); border-radius: var(--r); padding: .75rem;
  background: var(--surface); max-height: 620px; overflow-y: auto;
}
.sn-dm__item {
  display: flex; align-items: center; gap: .6rem; padding: .55rem;
  border-radius: var(--r-sm); color: inherit;
}
.sn-dm__item:hover { background: var(--surface-hover); color: inherit; text-decoration: none; }
.sn-dm__item.is-active { background: var(--brand-soft); }
.sn-dm__preview {
  display: block; font-size: .76rem; color: var(--faint);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sn-dm__thread {
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--surface); display: flex; flex-direction: column; max-height: 620px;
}
.sn-dm__head { padding: .9rem 1.1rem; border-bottom: 1px solid var(--line); }
.sn-dm__body { flex: 1; overflow-y: auto; padding: 1.1rem; display: flex; flex-direction: column; gap: .6rem; }
.sn-dm__form { display: flex; gap: .5rem; padding: .8rem; border-top: 1px solid var(--line); }

.sn-bubble {
  max-width: 72%; align-self: flex-start;
  background: rgba(255,255,255,.05); border: 1px solid var(--line);
  border-radius: 14px 14px 14px 4px; padding: .6rem .85rem; font-size: .9rem;
}
.sn-bubble.is-mine {
  align-self: flex-end; border-radius: 14px 14px 4px 14px;
  background: var(--brand-soft); border-color: var(--brand-mid);
}
.sn-bubble img { max-width: 100%; border-radius: 8px; margin-bottom: .4rem; display: block; }
.sn-bubble__time { display: block; font-size: .68rem; color: var(--faint); margin-top: .3rem; }

/* Story görüntüleme */
.sn-storyview { margin-bottom: 1.5rem; }
.sn-storyview img { width: 100%; border-radius: var(--r); border: 1px solid var(--line); }
.sn-storyview__caption { margin-top: .75rem; font-size: .95rem; }

.sn-report summary { list-style: none; display: inline-flex; }
.sn-report summary::-webkit-details-marker { display: none; }

@media (max-width: 700px) {
  .sn-dm { grid-template-columns: 1fr; }
  .sn-grid { gap: 2px; }
  .sn-profile { gap: 1.25rem; }
}

/* --------------------------------------------------------------- */
/*  Story görüntüleyici                                             */
/* --------------------------------------------------------------- */
.stv {
  position: fixed; inset: 0; z-index: 9998;
  background: #000; display: flex; align-items: center; justify-content: center;
}
.stv__stage {
  position: relative; width: min(430px, 100vw); height: min(92vh, 860px);
  background: #0a0a0c; border-radius: 14px; overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 30px 90px -30px rgba(0,0,0,.95);
}

.stv__bars {
  position: absolute; top: 10px; left: 10px; right: 10px; z-index: 4;
  display: flex; gap: 4px;
}
.stv__bar {
  flex: 1; height: 2.5px; border-radius: 2px;
  background: rgba(255,255,255,.28); overflow: hidden;
}
.stv__bar > i { display: block; height: 100%; width: 0; background: #fff; }

.stv__head {
  position: absolute; top: 24px; left: 12px; right: 12px; z-index: 4;
  display: flex; align-items: center; gap: .6rem;
}
.stv__avatar {
  width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex: none;
  border: 1.5px solid rgba(255,255,255,.85);
  display: inline-flex; align-items: center; justify-content: center;
}
.stv__avatar--empty {
  background: linear-gradient(135deg, var(--brand) 0%, #8cae08 100%);
  color: var(--brand-ink); font-weight: 800; font-size: 15px; border: none;
}
.stv__who { display: flex; align-items: baseline; gap: .5rem; flex: 1; min-width: 0; }
.stv__name { color: #fff; font-weight: 600; font-size: .9rem; text-shadow: 0 1px 4px rgba(0,0,0,.7); }
.stv__name:hover { color: #fff; }
.stv__time { color: rgba(255,255,255,.7); font-size: .78rem; }
.stv__pause {
  background: none; border: none; color: #fff; cursor: pointer;
  font-size: .8rem; padding: .3rem .5rem; opacity: .85; flex: none;
}

.stv__media { flex: 1; display: flex; align-items: center; justify-content: center; background: #000; }
.stv__media img { width: 100%; height: 100%; object-fit: contain; }

.stv__caption {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 4;
  padding: 3rem 1.2rem 1.4rem; color: #fff; font-size: .95rem; line-height: 1.5;
  background: linear-gradient(to top, rgba(0,0,0,.85), transparent);
}

/* Dokunma alanları: sol üçte bir geri, kalanı ileri */
.stv__tap {
  position: absolute; top: 60px; bottom: 0; z-index: 3;
  background: none; border: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.stv__tap--left { left: 0; width: 33%; }
.stv__tap--right { right: 0; width: 67%; }

.stv__close {
  position: absolute; top: 18px; right: 22px; z-index: 10;
  color: #fff; font-size: 2.1rem; line-height: 1; opacity: .8; text-decoration: none;
}
.stv__close:hover { opacity: 1; color: #fff; }

.stv__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 6;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer;
  display: none; align-items: center; justify-content: center;
}
.stv__nav:hover { background: rgba(255,255,255,.2); }
.stv__nav--prev { left: calc(50% - min(430px, 100vw) / 2 - 60px); }
.stv__nav--next { right: calc(50% - min(430px, 100vw) / 2 - 60px); }
@media (min-width: 640px) { .stv__nav { display: flex; } }

/* --------------------------------------------------------------- */
/*  Yorumlar                                                        */
/* --------------------------------------------------------------- */
.sn-comment {
  display: flex; gap: .7rem; align-items: flex-start;
  padding: .7rem 0; border-top: 1px solid var(--line); font-size: .9rem;
}
.sn-comment.is-reply {
  padding-left: 2.6rem; border-top: none; padding-top: .45rem; padding-bottom: .45rem;
}
.sn-comment__body { flex: 1; min-width: 0; }
.sn-comment__text { word-break: break-word; }
.sn-comment__text a { color: var(--brand); }
.sn-comment__meta {
  display: flex; gap: .9rem; align-items: center; flex-wrap: wrap;
  margin-top: .3rem; font-size: .74rem; color: var(--faint);
}
.sn-comment__reply {
  background: none; border: none; padding: 0; cursor: pointer;
  color: var(--faint); font: inherit; font-size: .74rem; font-weight: 600;
}
.sn-comment__reply:hover { color: var(--text); }
.sn-comment__like { flex: none; }
.sn-comment__like .sn-like { font-size: 1rem; }

.sn-commentform { margin-bottom: .5rem; }
.sn-replybar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: var(--brand-soft); border: 1px solid var(--brand-mid);
  border-radius: var(--r-sm) var(--r-sm) 0 0;
  padding: .45rem .75rem; font-size: .8rem; color: var(--muted);
}
.sn-replybar strong { color: var(--brand); }
.sn-replybar button {
  background: none; border: none; color: var(--faint); cursor: pointer;
  font: inherit; font-size: .78rem;
}
.sn-replybar button:hover { color: var(--text); }

/* Dosya seçim önizlemesi */
.sn-preview { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .6rem; }
.sn-filechip {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--brand-soft); border: 1px solid var(--brand-mid);
  border-radius: 999px; padding: .3rem .7rem .3rem .3rem;
  font-size: .76rem; color: var(--brand);
}
.sn-filechip img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }

/* Dosyası kaybolmuş görseller */
.sn-missing {
  display: flex; align-items: center; justify-content: center;
  width: 100%; min-height: 120px; aspect-ratio: 1;
  background: rgba(255,255,255,.03); border: 1px dashed var(--line-strong);
  border-radius: var(--r-sm); color: var(--faint); font-size: .8rem; text-align: center;
}
.sn-post__media .sn-missing { aspect-ratio: 4/3; border-radius: 0; border: none; }

.sn-dm__formwrap { border-top: 1px solid var(--line); }
.sn-dm__formwrap .sn-dm__form { border-top: none; }
.sn-dm__formwrap .sn-preview { padding: .7rem .8rem 0; margin-top: 0; }
