/* ==========================================================================
   Klaus Medya · Çekiliş Yönetimi
   Yalnızca görünüm katmanı. HTML ve JS yapısı değiştirilmemiştir.
   ========================================================================== */


/* ---------- Tasarım değişkenleri ---------- */
:root {
  --bg: #0d0f0e;
  --bg-raised: #121513;
  --surface: #171a18;
  --surface-2: #1d211e;
  --surface-3: #252a26;
  --line: #262b27;
  --line-strong: #363d37;

  --text: #f0f3ee;
  --text-2: #c7cdc5;
  --muted: #8f978f;
  --faint: #6b736c;

  --lime: #d4f77d;
  --lime-hover: #e3fb9f;
  --lime-press: #c3e968;
  --lime-ink: #182207;
  --lime-tint: rgba(212, 247, 125, .09);
  --lime-ring: rgba(212, 247, 125, .18);

  --red: #ffb4b0;
  --red-bg: #2f1c1a;
  --red-line: #5e3630;
  --amber: #e6cc9c;
  --amber-bg: #2b2519;
  --amber-line: #574a30;

  --r-sm: 8px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 18px;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* ---------- Temel ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.6 var(--font);
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--lime); color: var(--lime-ink); }

button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .55; cursor: progress; }

a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

h1, h2, h3, p { margin: 0; }
h1 { font-size: 34px; font-weight: 600; letter-spacing: -.035em; line-height: 1.15; margin: 10px 0 8px; }
h2 { font-size: 18px; font-weight: 600; letter-spacing: -.02em; line-height: 1.3; }
p, small { color: var(--muted); }

/* Modern, ince kaydırma çubukları */
* { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: #4a534b; background-clip: padding-box; border: 2px solid transparent; }

/* ---------- Marka ---------- */
.brand {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .12em;
  white-space: nowrap;
}
.brand > span:last-child { font-weight: 400; color: var(--muted); }

.brand-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-right: 6px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--lime-hover), var(--lime) 55%, #bfe560);
  color: var(--lime-ink);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0;
  transform: rotate(-5deg);
  box-shadow: 0 6px 18px -6px rgba(212, 247, 125, .45), inset 0 1px 0 rgba(255, 255, 255, .5);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--lime);
}

/* ---------- Form alanları ---------- */
label {
  display: grid;
  gap: 8px;
  margin: 18px 0;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -.005em;
}

input, select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 11px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--bg-raised);
  color: var(--text);
  font-size: 14px;
  line-height: 1.4;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .25);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease), background-color .15s var(--ease);
}

input::placeholder { color: var(--faint); opacity: 1; }

input:hover, select:hover { border-color: #465048; }

input:focus, select:focus {
  outline: 0;
  border-color: var(--lime);
  background: #101311;
  box-shadow: 0 0 0 4px var(--lime-ring);
}

input:disabled, select:disabled { opacity: .55; cursor: not-allowed; }

/* Tarayıcı otomatik doldurma rengini koyu temaya uydur */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
  box-shadow: 0 0 0 100px #121814 inset;
  transition: background-color 9999s ease-out 0s;
}

input[type="number"] { font-variant-numeric: tabular-nums; }

select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 38px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238f978f' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
}
select:focus {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23d4f77d' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}
select option { background: var(--surface); color: var(--text); }

/* ---------- Düğmeler ---------- */
.primary, .secondary, .danger, .icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -.005em;
  line-height: 1.2;
  white-space: nowrap;
  transition: background-color .15s var(--ease), border-color .15s var(--ease),
              color .15s var(--ease), box-shadow .15s var(--ease), transform .1s var(--ease);
}
.primary:active, .secondary:active, .danger:active, .icon-button:active { transform: translateY(1px); }
.primary:disabled:active, .secondary:disabled:active, .danger:disabled:active { transform: none; }

.primary {
  background: linear-gradient(180deg, var(--lime-hover), var(--lime));
  color: var(--lime-ink);
  border-color: rgba(255, 255, 255, .18);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .45) inset, 0 8px 20px -10px rgba(212, 247, 125, .55);
}
.primary:hover:not(:disabled) {
  background: linear-gradient(180deg, #edffb8, var(--lime-hover));
  box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 10px 24px -10px rgba(212, 247, 125, .7);
}
.primary:active:not(:disabled) { background: var(--lime-press); box-shadow: none; }
.primary > span { transition: transform .15s var(--ease); }
.primary:hover:not(:disabled) > span { transform: translateX(3px); }

.secondary, .icon-button {
  background: var(--surface-2);
  border-color: var(--line-strong);
  color: var(--text);
}
.secondary:hover:not(:disabled), .icon-button:hover:not(:disabled) {
  background: var(--surface-3);
  border-color: #4a534b;
}
.secondary:active:not(:disabled), .icon-button:active:not(:disabled) { background: #2d332e; }

.danger {
  background: var(--red-bg);
  color: #ffc8be;
  border-color: var(--red-line);
}
.danger:hover:not(:disabled) { background: #3d2320; border-color: #7d443c; color: #ffd7cf; }
.danger:active:not(:disabled) { background: #482926; }
.danger:focus-visible { outline-color: var(--red); }

.icon-button {
  width: 38px;
  min-height: 38px;
  height: 38px;
  padding: 0;
  border-radius: 50%;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
}

/* Küçük düğme ölçüsü: kartlar, araç çubuğu, satır içi formlar */
.tools .secondary,
.card-bottom .secondary,
.draw-card > .secondary {
  min-height: 38px;
  padding: 8px 14px;
  font-size: 13px;
}

/* ---------- Giriş ekranı ---------- */
.login-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}

.login-story {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  padding: 52px 9%;
  border-right: 1px solid var(--line);
  background:
    radial-gradient(ellipse 70% 55% at 20% 60%, rgba(60, 84, 30, .55), transparent 70%),
    radial-gradient(circle at 1px 1px, rgba(212, 247, 125, .07) 1px, transparent 0) 0 0 / 26px 26px,
    #12160f;
  overflow: hidden;
}
.login-story > * { position: relative; }

.login-story h1 {
  font-size: clamp(40px, 5vw, 68px);
  letter-spacing: -.045em;
  line-height: 1.05;
  margin: 22px 0 18px;
}
.login-story p { font-size: 17px; line-height: 1.6; color: #a9b3a0; }
.login-story small { font-size: 12px; color: #78826f; }

.story-lines {
  display: grid;
  gap: 0;
  max-width: 340px;
  margin-top: 44px;
  color: #c9d4bd;
  font-size: 14px;
}
.story-lines span {
  padding: 13px 0;
  border-top: 1px solid rgba(212, 247, 125, .14);
}
.story-lines span:last-child { border-bottom: 1px solid rgba(212, 247, 125, .14); }

.login-side {
  display: grid;
  place-items: center;
  padding: 32px;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(212, 247, 125, .04), transparent 70%), var(--bg);
}

.login-card {
  width: 100%;
  max-width: 410px;
  padding: 38px 34px 30px;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, var(--surface), var(--bg-raised));
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .8), 0 1px 0 rgba(255, 255, 255, .04) inset;
}
.login-card h2 { font-size: 28px; letter-spacing: -.035em; margin: 14px 0 8px; }
.login-card > p { margin-bottom: 26px; font-size: 14px; }
.login-card .primary { width: 100%; margin-top: 8px; justify-content: space-between; min-height: 48px; padding: 12px 18px; }
.login-card small { display: block; text-align: center; margin-top: 18px; font-size: 12px; color: var(--faint); }

.login-card .error {
  margin: 16px 0 6px;
  padding: 11px 14px;
  border: 1px solid var(--red-line);
  border-radius: var(--r-sm);
  background: var(--red-bg);
  color: var(--red);
  font-size: 13px;
}
.login-card .error:empty { display: none; }
.error { color: var(--red); }

/* ---------- Kenar çubuğu ---------- */
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 240px;
  display: flex;
  flex-direction: column;
  padding: 28px 20px 22px;
  border-right: 1px solid var(--line);
  background: var(--bg-raised);
}

.nav-label {
  margin: 44px 12px 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--faint);
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-bottom: 4px;
  padding: 11px 12px;
  border: 0;
  border-radius: var(--r-md);
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  transition: background-color .15s var(--ease), color .15s var(--ease);
}
.nav-item:hover { background: var(--surface-2); color: var(--text); }
.nav-item.active { background: var(--lime-tint); color: var(--lime); font-weight: 600; }
.nav-item.active::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 9px;
  bottom: 9px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--lime);
}

.sidebar-bottom { margin-top: auto; }

.online-dot {
  margin-bottom: 12px;
  padding: 16px 12px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
}
.online-dot::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(212, 247, 125, .16), 0 0 10px rgba(212, 247, 125, .55);
  vertical-align: 1px;
}
.online-dot span { display: block; margin: 2px 0 0 16px; font-size: 12px; font-weight: 400; color: var(--muted); }

/* ---------- Ana alan ---------- */
main { margin-left: 240px; min-height: 100vh; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 40px;
  border-bottom: 1px solid var(--line);
  background: rgba(13, 15, 14, .82);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  font-size: 13px;
  color: var(--text-2);
}
.crumb { margin-right: 6px; color: var(--faint); }
#page-name { font-weight: 600; color: var(--text); }

.admin-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 14px 5px 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-2);
  font-weight: 500;
}
.admin-chip span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--lime-ink);
  font-size: 12px;
  font-weight: 700;
}

.content { max-width: 1400px; margin: 0 auto; padding: 40px; }

.heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}
.heading h1 { font-size: 34px; margin: 10px 0 6px; }
.heading p { font-size: 14px; }

/* ---------- Bildirim ---------- */
#notice {
  position: relative;
  margin-bottom: 24px;
  padding: 14px 18px 14px 20px;
  border: 1px solid #3f5232;
  border-radius: var(--r-md);
  background: #1b2416;
  color: #e3f6cc;
  font-size: 13.5px;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow: hidden;
  animation: rise .25s var(--ease);
}
#notice::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--lime);
}
#notice.error { background: var(--red-bg); border-color: var(--red-line); color: var(--red); }
#notice.error::before { background: var(--red); }

/* ---------- İstatistik kartları ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.stat {
  padding: 20px 22px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--surface), var(--bg-raised));
}
.stat p { font-size: 13px; font-weight: 500; color: var(--text-2); }
.stat strong {
  display: block;
  margin: 10px 0 4px;
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -.04em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.stat small { font-size: 12px; color: var(--muted); }

.stat:first-child {
  border-color: #46552f;
  background:
    radial-gradient(ellipse 90% 120% at 0% 0%, rgba(212, 247, 125, .12), transparent 60%),
    linear-gradient(180deg, #232d1b, #1a2115);
}
.stat:first-child strong { color: var(--lime); }
.stat:first-child small { color: #a7b78d; }

/* ---------- Bölüm başlığı ve araç çubuğu ---------- */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.section-head p { margin-top: 3px; font-size: 12.5px; color: var(--muted); }

.tools { display: flex; align-items: center; gap: 8px; }
.tools input { width: 240px; }
.tools select { width: 160px; }
.tools input, .tools select, .tools button { min-height: 40px; font-size: 13px; }
.tools input, .tools select { padding: 9px 13px; }
.tools select { padding-right: 36px; }

/* Arama alanına büyüteç */
.tools #search {
  padding-left: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b736c' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 13px center;
  background-size: 16px;
}

/* ---------- Çekiliş kartları ---------- */
.draw-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.draw-card {
  display: flex;
  flex-direction: column;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--surface), var(--bg-raised));
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.draw-card:hover { border-color: var(--line-strong); }

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}
.draw-number { font-size: 11px; font-weight: 600; letter-spacing: .1em; color: var(--muted); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 9px;
  border: 1px solid rgba(212, 247, 125, .22);
  border-radius: 999px;
  background: rgba(212, 247, 125, .1);
  color: var(--lime);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.ended { background: rgba(140, 190, 215, .1); border-color: rgba(140, 190, 215, .22); color: #a8cfe0; }
.badge.cancelled { background: rgba(230, 150, 140, .1); border-color: rgba(230, 150, 140, .22); color: #e6aca4; }

.draw-card h3 {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.group-name { font-size: 13px; color: var(--muted); }

.card-metrics {
  display: flex;
  gap: 0;
  margin: 22px 0 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.card-metrics > div { flex: 1; }
.card-metrics > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.card-metrics strong {
  display: block;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.card-metrics span { font-size: 12px; color: var(--muted); }

.card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
}
.card-bottom small { font-size: 12px; color: var(--muted); }

/* Grup kartlarındaki form */
.draw-card > label { margin: 20px 0 12px; }
.draw-card > .secondary { align-self: flex-start; }
.draw-card > .hint { margin: 14px 0 0; }

/* ---------- Boş durum ---------- */
.empty {
  padding: 64px 24px;
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-lg);
  background: repeating-linear-gradient(135deg, transparent 0 12px, rgba(255, 255, 255, .012) 12px 24px);
}
.empty h3 { margin: 0 0 6px; font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
.empty p { font-size: 13.5px; }

/* ---------- Tablolar ---------- */
.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}
table { width: 100%; border-collapse: collapse; font-size: 13px; text-align: left; }
th, td { padding: 13px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th {
  position: sticky;
  top: 0;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
}
td { color: var(--text-2); font-variant-numeric: tabular-nums; }
tbody tr { transition: background-color .12s var(--ease); }
tbody tr:hover { background: rgba(255, 255, 255, .025); }
tr:last-child td { border-bottom: 0; }
td button { font-size: 12px !important; padding: 5px 9px !important; }

/* ---------- Alt bilgi ---------- */
footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 8px;
  padding: 36px 0 0;
  font-size: 12px;
  color: var(--faint);
}

/* ---------- Pencere (dialog) ---------- */
dialog {
  width: calc(100% - 32px);
  max-width: 760px;
  max-height: 90vh;
  padding: 26px 28px 28px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, #1a1e1b, #141715);
  color: var(--text);
  box-shadow: 0 40px 90px -20px rgba(0, 0, 0, .9), 0 1px 0 rgba(255, 255, 255, .05) inset;
}
dialog[open] { animation: pop .2s var(--ease); }
dialog::backdrop {
  background: rgba(4, 6, 5, .72);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.dialog-head h2 { font-size: 20px; }

#modal-body > p:first-child { color: var(--text-2); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hint { margin: 14px 0; font-size: 12.5px; color: var(--muted); }
#create-form > .primary { margin-top: 6px; }

.dialog-actions { display: flex; gap: 10px; margin: 22px 0 8px; }

.inline-form { display: flex; align-items: end; gap: 10px; margin: 16px 0; }
.inline-form label { flex: 1; margin: 0; }
.inline-form button { flex-shrink: 0; min-height: 44px; padding: 11px 18px; }

.detail-tabs { margin: 28px 0 12px; font-size: 16px; }
.detail-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 14px 0 10px;
  font-size: 13px;
  color: var(--muted);
}

.warning {
  margin: 18px 0;
  padding: 13px 16px;
  border: 1px solid var(--amber-line);
  border-radius: var(--r-md);
  background: var(--amber-bg);
  color: var(--amber);
  font-size: 13px;
  line-height: 1.6;
}

.busy { opacity: .6; pointer-events: none; }

/* ---------- Animasyonlar ---------- */
@keyframes pop {
  from { opacity: 0; transform: translateY(8px) scale(.985); }
  to   { opacity: 1; transform: none; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}

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

/* ---------- Duyarlı: geniş ekran ---------- */
@media (min-width: 1500px) {
  .draw-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- Duyarlı: tablet ---------- */
@media (max-width: 1100px) {
  .sidebar { width: 208px; padding: 24px 14px 18px; }
  .nav-item.active::before { left: -14px; }
  main { margin-left: 208px; }
  .topbar { padding: 0 26px; }
  .content { padding: 28px 26px; }
  .section-head { flex-direction: column; align-items: stretch; }
  .tools { width: 100%; }
  .tools input { flex: 1; width: auto; }
  .stats { gap: 10px; }
  .stat { padding: 16px; }
  .stat strong { font-size: 28px; }
}

@media (max-width: 860px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Duyarlı: telefon ---------- */
@media (max-width: 700px) {
  .login-layout { grid-template-columns: 1fr; }
  .login-story { display: none; }
  .login-side { min-height: 100vh; padding: 20px; }
  .login-card { padding: 30px 22px 24px; }

  .sidebar { position: static; width: 100%; padding: 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar .brand { margin-bottom: 14px; }
  .nav-label, .sidebar-bottom .online-dot { display: none; }
  .sidebar nav { display: flex; gap: 4px; overflow: auto; }
  .nav-item { width: auto; margin: 0; padding: 9px 12px; font-size: 13px; white-space: nowrap; }
  .sidebar nav .nav-item { gap: 6px; }
  .nav-item.active::before { display: none; }
  .sidebar-bottom { position: absolute; top: 20px; right: 16px; }
  .sidebar-bottom .nav-item { padding: 8px 12px; }

  main { margin: 0; }
  .topbar { height: 56px; padding: 0 18px; }
  .content { padding: 24px 18px; }
  .heading { align-items: flex-start; }
  .heading h1 { font-size: 28px; }
  .heading .primary { min-height: 40px; padding: 9px 14px; font-size: 13px; }
  .eyebrow { font-size: 10px; letter-spacing: .1em; }

  .stats { margin-bottom: 26px; }
  .stat strong { font-size: 26px; }
  .draw-grid { grid-template-columns: 1fr; }
  .draw-card { padding: 20px; }

  .tools { flex-wrap: wrap; }
  .tools input { flex-basis: 100%; width: 100%; }
  .tools select { flex: 1; width: auto; }

  .form-row { grid-template-columns: 1fr; gap: 0; }
  .inline-form { flex-wrap: wrap; }
  .inline-form label { flex-basis: 45%; }
  .inline-form button { width: 100%; }
  .detail-meta { flex-wrap: wrap; gap: 12px; }
  .dialog-actions { flex-direction: column-reverse; }
  .dialog-actions button { width: 100%; }

  dialog { padding: 20px 18px 22px; border-radius: var(--r-lg); }
  footer span { display: none; }
}
/* V2 interaction layer, preserving the current site's existing theme. */
:root{--lime:#b8f56c;--aqua:#67e8dd;--violet:#ae9bff;--surface:#141a19;--line:#283530;--bg:#090f0e}
body{background:radial-gradient(ellipse at 90% 0%,#172820 0,transparent 40%),var(--bg);background-attachment:fixed}
button,a,input,select{transition:background .2s,border-color .2s,box-shadow .2s,transform .2s}
button:hover:not(:disabled){transform:translateY(-2px)}button:active:not(:disabled){transform:translateY(0) scale(.98)}
.primary{background:linear-gradient(120deg,#b8f56c,#dbff94);box-shadow:0 6px 24px #b8f56c18;border:1px solid #d1ff9555}
.primary:hover{box-shadow:0 8px 30px #b8f56c35}
.login-story{position:relative;overflow:hidden;background:radial-gradient(ellipse at 20% 70%,#284b2b,transparent 62%),linear-gradient(135deg,#13241b,#0d1716)}
.login-story> *{position:relative;z-index:1}
.login-story::before,.login-story::after{content:'';position:absolute;width:430px;height:430px;border:1px solid #b8f56c20;border-radius:50%;right:-190px;bottom:10%;box-shadow:0 0 0 65px #b8f56c05,0 0 0 130px #b8f56c04;animation:orbital-drift 18s ease-in-out infinite;pointer-events:none}
.login-story::after{width:15px;height:15px;background:var(--lime);box-shadow:0 0 45px #b8f568;right:14%;bottom:48%;animation:float-point 8s ease-in-out infinite}
.login-story h1{background:linear-gradient(145deg,#fff 25%,#c8e7af 80%);color:transparent;background-clip:text}
.login-card{animation:rise-in .65s ease both}.login-card input{background:#101a16;border-color:#2b3b30}.login-card h2{letter-spacing:-1px}
.sidebar{background:linear-gradient(180deg,#101917,#0c1211);border-right:1px solid #2b3a3044}
.nav-item.active{background:linear-gradient(90deg,#b8f56c16,#b8f56c05);box-shadow:inset 3px 0 0 var(--lime)}
.brand-icon{box-shadow:0 5px 24px #b8f56c20}.topbar{background:#0a13109c;backdrop-filter:blur(20px)}
.admin-chip small{display:block;font-size:9px;color:var(--muted);letter-spacing:.3px}.admin-chip>span{background:linear-gradient(130deg,#25432d,#13251c);border-color:#b8f56c44}
.heading h1{font-size:clamp(30px,3.1vw,48px);font-weight:650;letter-spacing:-1.8px}.heading{margin-bottom:26px}
.activity-strip{position:relative;isolation:isolate;overflow:hidden;display:flex;align-items:center;gap:22px;padding:24px 28px;margin-bottom:25px;border:1px solid #a8e78330;border-radius:16px;background:linear-gradient(115deg,#1d3021,#152d29 65%,#15222e);animation:rise-in .5s ease both}
.activity-strip:after{content:'';position:absolute;z-index:-1;right:-60px;top:-100px;width:350px;height:350px;border:1px solid #a8e78320;border-radius:50%;box-shadow:0 0 0 35px #a8e78304,0 0 0 70px #a8e78304}
.activity-strip h2{font-size:22px;margin:5px 0;color:#f1ffe6}.activity-strip p{font-size:12px;color:#a8c3b5}.activity-strip .eyebrow{font-size:8px;letter-spacing:1.8px}
.pulse-orbit{flex:none;position:relative;width:66px;height:66px;display:grid;place-items:center;border:1px solid #b8f56c30;border-radius:50%;background:#b8f56c09}.pulse-orbit span{font-size:28px;color:var(--lime)}
.pulse-orbit i{position:absolute;inset:-6px;border:1px solid transparent;border-top-color:#b8f56c;border-radius:50%;animation:orbit-spin 12s linear infinite}
.live-pill{display:flex;align-items:center;gap:8px;border:1px solid #9dedac25;border-radius:30px;padding:7px 12px;font-size:10px;color:#c7faca;white-space:nowrap;margin-left:auto;background:#0e2117}
.live-pill i{width:5px;height:5px;border-radius:50%;background:#8dfaa1;box-shadow:0 0 10px #8dfaa1;animation:signal-pulse 2.8s ease-in-out infinite}
.stats{gap:15px}.stat{position:relative;overflow:hidden;background:linear-gradient(140deg,#18221c,#131b19);border:1px solid #2b3930;border-radius:14px;animation:rise-in .5s ease both}
.stat:nth-child(2){animation-delay:.05s}.stat:nth-child(3){animation-delay:.1s}.stat:nth-child(4){animation-delay:.15s}
.stat:after{content:'';position:absolute;right:17px;top:19px;width:7px;height:7px;border-radius:50%;background:var(--lime);box-shadow:0 0 16px #b8f56c55}
.stat:nth-child(2):after{background:var(--aqua)}.stat:nth-child(3):after{background:var(--violet)}.stat:nth-child(4):after{background:#ffc875}
.stat strong{font-size:35px;font-variant-numeric:tabular-nums;letter-spacing:-1.4px}.stat:nth-child(2) strong{color:#85e5d8}.stat:nth-child(3) strong{color:#beafff}.stat:nth-child(4) strong{color:#f6d492}
.draw-card{position:relative;border:1px solid #2a3931;border-radius:15px;background:linear-gradient(145deg,#19221e,#131b19);transition:transform .25s,box-shadow .25s,border-color .25s;animation:rise-in .4s ease both}
.draw-card:hover{transform:translateY(-3px);box-shadow:0 12px 35px #0004;border-color:#91cc6544}
.draw-card:before{content:'';position:absolute;left:22px;right:22px;top:0;height:1px;background:linear-gradient(90deg,transparent,#b8f56c55,transparent)}
.draw-card h3{font-size:18px;line-height:1.45;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;min-height:26px}
.badge{font-size:10px;background:#8bb95916;color:#c6ef94;border:1px solid #b8f56c25}.badge.ended{border-color:#67e8dd20;background:#67e8dd0c;color:#8bddd1}.badge.cancelled{background:#faac9510;border-color:#faac9520;color:#e4afa2}
.management-bar{display:flex;gap:20px;align-items:center;justify-content:space-between;margin:0 0 20px;padding:18px 22px;background:#14201a;border:1px solid #304033;border-radius:12px}.management-bar p{font-size:12px;max-width:620px}
.group-avatar{display:grid;place-items:center;width:43px;height:43px;border:1px solid #94c57433;border-radius:13px;background:linear-gradient(135deg,#304b26,#173731);font-size:18px;color:#d8ffb6;font-weight:700}
.group-card.archived{opacity:.65}.card-actions{display:flex;gap:8px;flex-wrap:wrap}.card-actions button{flex:1;font-size:11px}.danger.subtle{background:#381f1b77;border-color:#79413655;color:#f6b4a4}
dialog{background:linear-gradient(145deg,#19251e,#101a17);border-color:#58704766;box-shadow:0 25px 120px #000b;animation:dialog-in .22s ease both;max-width:850px}
dialog::backdrop{background:#010806cc;backdrop-filter:blur(8px)}.detail-title{font-size:17px;color:#eaf5e5;overflow-wrap:anywhere}.participant-heading{display:flex;align-items:center;gap:18px;justify-content:space-between;margin:25px 0 15px}.participant-heading input{width:190px;font-size:11px;padding:9px 12px}.participant-heading h2{font-size:17px}
.cell-sub{display:block;font-size:10px;color:#8caa98;margin-top:4px}.row-actions{white-space:nowrap}.row-actions button{margin:2px}.weight-pill{padding:4px 8px;border:1px solid #a4db7428;background:#a4db740a;border-radius:6px;font-size:11px;color:#d2efa6}.weight-pill.zero{background:#ffb4b00a;border-color:#ffb4b030;color:#dfa99d}
table{background:#101a16}thead th{background:#1c2a21;color:#a9c2ad}tbody tr{transition:background .2s}tbody tr:hover{background:#1d302366}td strong{font-weight:550}.table-wrap{border-color:#314034}
#notice{box-shadow:0 8px 24px #0003;animation:notice-in .25s ease both}.dialog-head{gap:20px}.dialog-head h2{font-size:21px}
@keyframes rise-in{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
@keyframes orbital-drift{0%,100%{transform:translateY(0) scale(1)}50%{transform:translateY(-25px) scale(1.06)}}
@keyframes float-point{0%,100%{transform:translate(0,0)}50%{transform:translate(15px,-30px)}}
@keyframes orbit-spin{to{transform:rotate(360deg)}}
@keyframes signal-pulse{0%,100%{opacity:1;box-shadow:0 0 8px #8dfaa166}50%{opacity:.55;box-shadow:0 0 16px #8dfaa166}}
@keyframes dialog-in{from{opacity:0;transform:translateY(10px) scale(.985)}to{opacity:1;transform:none}}
@keyframes notice-in{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:none}}
@media(max-width:1050px){.activity-strip{padding:20px;gap:15px}.activity-strip h2{font-size:18px}.live-pill{display:none}}
@media(max-width:700px){.sidebar nav{padding-bottom:5px;scrollbar-width:thin}.activity-strip{padding:17px;gap:14px}.pulse-orbit{width:43px;height:43px}.pulse-orbit span{font-size:22px}.activity-strip h2{font-size:16px}.activity-strip p{font-size:10px}.activity-strip .eyebrow{font-size:7px}.management-bar{padding:15px;align-items:start;flex-direction:column;gap:12px}.management-bar button{width:100%}.participant-heading{align-items:start;flex-direction:column;gap:10px}.participant-heading input{width:100%}.dialog-head h2{font-size:19px}.row-actions{white-space:normal;min-width:95px}.stat strong{font-size:30px}.heading h1{font-size:29px}.card-actions button{font-size:10px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}button:hover:not(:disabled),.draw-card:hover{transform:none}}
