/* ==========================================================================
   Arkadyas Çekiliş — Tasarım sistemi
   Palet: #218FCE · #259BD5 · #000000 · #FFFFFF
   ========================================================================== */

:root {
    --brand: #218FCE;
    --brand-2: #259BD5;
    --brand-soft: rgba(33, 143, 206, 0.14);
    --brand-line: rgba(37, 155, 213, 0.45);
    --brand-glow: rgba(37, 155, 213, 0.35);
    --gradient-brand: linear-gradient(135deg, #218FCE 0%, #259BD5 100%);

    --black: #000000;
    --white: #FFFFFF;
    --bg: var(--black);
    --surface: #0A0D10;
    --surface-2: #11161B;
    --surface-3: #182028;
    --border: rgba(255, 255, 255, 0.10);
    --border-strong: rgba(255, 255, 255, 0.18);
    --text: var(--white);
    --text-muted: rgba(255, 255, 255, 0.66);
    --text-subtle: rgba(255, 255, 255, 0.52);

    --danger: #FF6B6B;
    --danger-soft: rgba(255, 107, 107, 0.12);

    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --space-7: 48px;
    --topbar-h: 68px;

    --shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
    --ring: 0 0 0 3px rgba(37, 155, 213, 0.55);
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --dur-fast: 150ms;
    --dur: 220ms;

    --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Temel ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0; min-height: 100vh;
    background: var(--bg); color: var(--text);
    font-family: var(--font); font-size: 16px; line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-wrap: break-word;
}
body.has-modal { overflow: hidden; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--brand); color: var(--black); }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--radius-sm); }

.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; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--brand); color: var(--black); padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 16px; }
.text-muted { color: var(--text-muted); }
.text-subtle { color: var(--text-subtle); font-size: 14px; }
.noscript { padding: 24px; text-align: center; }
.icon { width: 18px; height: 18px; flex-shrink: 0; }

/* Yardımcılar */
.min-w-0 { min-width: 0; }
.grow { flex: 1; min-width: 0; }
.nowrap { white-space: nowrap; }
.truncate { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.text-wrap { overflow-wrap: anywhere; }
.fw-normal { font-weight: 500; }
.mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; } .mt-5 { margin-top: 24px; } .mt-6 { margin-top: 28px; }
.mb-0 { margin-bottom: 0 !important; } .mb-1 { margin-bottom: 6px; } .mb-4 { margin-bottom: 16px; }

/* ---------- Butonlar ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 0 18px; max-width: 100%;
    border-radius: 999px; border: 1px solid transparent;
    font-size: 15px; font-weight: 600; line-height: 1.2; white-space: nowrap;
    background: transparent; color: var(--text);
    transition: background-color var(--dur-fast) ease, border-color var(--dur-fast) ease, color var(--dur-fast) ease, transform var(--dur-fast) ease, box-shadow var(--dur) ease, opacity var(--dur-fast) ease;
    user-select: none;
}
.btn > span { overflow: hidden; text-overflow: ellipsis; }
.btn:active:not(:disabled) { transform: scale(0.97); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn[aria-busy="true"] { position: relative; color: transparent !important; }
.btn[aria-busy="true"]::after {
    content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%;
    border: 2px solid; border-color: var(--black) transparent var(--black) transparent;
    animation: spin 0.7s linear infinite;
}
.btn--ghost[aria-busy="true"]::after { border-color: var(--white) transparent var(--white) transparent; }

/* Siyah metin + marka mavisi: 5.9:1 kontrast */
.btn--primary { background: var(--gradient-brand); color: var(--black); box-shadow: 0 8px 24px -8px var(--brand-glow); }
.btn--primary:hover:not(:disabled) { box-shadow: 0 10px 30px -6px rgba(37, 155, 213, 0.6); filter: brightness(1.06); }
.btn--ghost { border-color: var(--border-strong); background: rgba(255, 255, 255, 0.02); }
.btn--ghost:hover:not(:disabled) { border-color: var(--brand-line); background: var(--brand-soft); }
.btn--danger { background: var(--danger); color: var(--black); }
.btn--danger:hover:not(:disabled) { filter: brightness(1.08); }
.btn--danger-ghost { border-color: rgba(255, 107, 107, 0.4); color: var(--danger); }
.btn--danger-ghost:hover:not(:disabled) { background: var(--danger-soft); }
.btn--glass { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.16); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.btn--glass:hover:not(:disabled) { background: rgba(255, 255, 255, 0.12); }
.btn--sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn--lg { min-height: 50px; font-size: 16px; }
.btn--xl { min-height: 60px; padding: 0 36px; font-size: 18px; font-weight: 700; }
.btn--block { width: 100%; }
.file-btn { position: relative; overflow: hidden; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.icon-btn {
    display: inline-grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0;
    border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--text-muted);
    transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease;
}
.icon-btn:hover:not(:disabled) { background: rgba(255, 255, 255, 0.07); color: var(--text); }
.icon-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.icon-btn--danger:hover:not(:disabled) { color: var(--danger); background: var(--danger-soft); }

/* ---------- Formlar ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--space-4); min-width: 0; }
.fieldset { border: 0; padding: 0; margin: 0 0 16px; }
.fieldset legend { margin-bottom: 6px; padding: 0; }
.field__label { font-size: 14px; font-weight: 600; color: var(--text); }
.field__hint { font-size: 13px; color: var(--text-subtle); }
.field__error { min-height: 20px; font-size: 14px; color: var(--danger); margin: -4px 0 8px; overflow-wrap: anywhere; }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-4); }

.input {
    width: 100%; min-height: 46px; padding: 10px 14px;
    background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: var(--radius);
    font-size: 16px; color: var(--text); text-overflow: ellipsis;
    transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}
.input::placeholder { color: var(--text-subtle); }
.input:hover { border-color: rgba(255, 255, 255, 0.28); }
.input:focus { outline: none; border-color: var(--brand-2); box-shadow: var(--ring); }
.input[aria-invalid="true"] { border-color: var(--danger); }
.input--auto { width: auto; min-width: 170px; }
select.input { appearance: none; padding-right: 40px; overflow: hidden; white-space: nowrap; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23ffffff' stroke-opacity='.7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; cursor: pointer; }
select.input option { background: var(--surface-2); }

.input-group { position: relative; }
.input-group .input { padding-right: 52px; }
.input-group__btn { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent; color: var(--text-muted); }
.input-group__btn:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }

.checkbox { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-muted); cursor: pointer; min-height: 32px; }
.checkbox input { width: 18px; height: 18px; accent-color: var(--brand); cursor: pointer; }

.segment { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px; padding: 4px; background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: var(--radius); }
.segment input { position: absolute; opacity: 0; pointer-events: none; }
.segment label { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 6px 8px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--text-muted); cursor: pointer; text-align: center; line-height: 1.25; transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease; }
.segment input:checked + label { background: var(--brand-soft); color: var(--white); box-shadow: inset 0 0 0 1px var(--brand-line); }
.segment input:focus-visible + label { box-shadow: var(--ring); }
.segment input:disabled + label { opacity: 0.5; cursor: not-allowed; }

/* ---------- Rozet ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: 0.02em; border: 1px solid var(--border-strong); color: var(--text-muted); white-space: nowrap; flex-shrink: 0; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge--brand { color: var(--brand-2); border-color: var(--brand-line); background: var(--brand-soft); }
.badge--white { color: var(--white); border-color: rgba(255, 255, 255, 0.35); background: rgba(255, 255, 255, 0.08); }
.badge--muted { color: var(--text-subtle); }
.badge--danger { color: var(--danger); border-color: rgba(255, 107, 107, 0.35); background: var(--danger-soft); }
.badge--plain::before { display: none; }

.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius); background: var(--brand-soft); border: 1px solid var(--brand-line); font-size: 14px; color: var(--text); margin-top: 12px; overflow-wrap: anywhere; }
.notice .icon { color: var(--brand-2); margin-top: 1px; }
.notice > span { min-width: 0; }
.notice--config { margin: 0 0 20px; }

/* ==========================================================================
   Giriş ekranı
   ========================================================================== */
.login { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 100vh; }
.login__brand {
    position: relative; overflow: hidden;
    display: flex; flex-direction: column; justify-content: center; gap: var(--space-6);
    padding: var(--space-7) clamp(32px, 6vw, 96px);
    background: radial-gradient(120% 90% at 0% 100%, rgba(33, 143, 206, 0.30) 0%, transparent 55%), radial-gradient(90% 70% at 100% 0%, rgba(37, 155, 213, 0.18) 0%, transparent 60%), var(--black);
    border-right: 1px solid var(--border);
}
.login__glow { position: absolute; width: 520px; height: 520px; right: -160px; bottom: -200px; border-radius: 50%; background: var(--gradient-brand); filter: blur(140px); opacity: 0.25; }
.login__logo { width: min(320px, 70%); position: relative; }
.login__tagline { position: relative; max-width: 460px; font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; line-height: 1.3; letter-spacing: -0.02em; }
.login__tagline span { background: var(--gradient-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.login__features { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; color: var(--text-muted); }
.login__features li { display: flex; align-items: center; gap: 12px; }
.login__features .dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; background: var(--brand-2); box-shadow: 0 0 12px var(--brand-glow); }
.login__panel { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: var(--space-6) var(--space-5); background: var(--surface); }
.login__form { width: 100%; max-width: 400px; }
.login__logo--mobile { display: none; width: 160px; margin: 0 auto var(--space-6); }
.login__title { font-size: 30px; margin-bottom: 6px; }
.login__form > .text-muted { margin-bottom: var(--space-6); }
.login__footer { margin-top: var(--space-7); font-size: 13px; color: var(--text-subtle); }

/* ==========================================================================
   Kabuk
   ========================================================================== */
.topbar {
    position: sticky; top: 0; z-index: 20;
    height: var(--topbar-h); display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
    padding: 0 clamp(16px, 3vw, 40px);
    background: rgba(0, 0, 0, 0.78); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}
.topbar__brand { display: flex; align-items: center; gap: 14px; min-width: 0; flex-shrink: 1; }
.topbar__logo { height: 34px; width: auto; flex-shrink: 0; }
.topbar__divider { width: 1px; height: 24px; background: var(--border-strong); flex-shrink: 0; }
.topbar__title { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar__user { display: flex; align-items: center; gap: 12px; min-width: 0; }
.topbar__user .btn { flex-shrink: 0; }
.topbar__email { font-size: 14px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; min-width: 0; }

.main { max-width: 1320px; margin: 0 auto; padding: var(--space-6) clamp(16px, 3vw, 40px) var(--space-7); outline: none; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; margin-bottom: var(--space-5); }
.page-head > div:first-child { min-width: 0; flex: 1 1 280px; }
.page-title { font-size: clamp(24px, 3vw, 32px); margin-bottom: 6px; letter-spacing: -0.02em; }
.page-head__actions { display: flex; gap: 12px; flex-wrap: wrap; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); margin-bottom: var(--space-5); }
.stat { position: relative; overflow: hidden; padding: 18px 20px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); min-width: 0; }
.stat__label { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--text-muted); line-height: 1.3; }
.stat__label .icon { width: 16px; height: 16px; color: var(--brand-2); }
.stat__value { margin-top: 8px; font-size: 30px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stat--accent { background: linear-gradient(160deg, rgba(33, 143, 206, 0.22), rgba(0, 0, 0, 0) 70%), var(--surface); border-color: var(--brand-line); }

.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); overflow: hidden; }
.tabs { display: flex; gap: 4px; padding: 8px 8px 0; border-bottom: 1px solid var(--border); overflow-x: auto; }
.tab { position: relative; min-height: 46px; padding: 0 18px; border: 0; background: transparent; color: var(--text-muted); font-weight: 600; font-size: 15px; border-radius: 10px 10px 0 0; white-space: nowrap; transition: color var(--dur-fast) ease; }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { color: var(--white); }
.tab[aria-selected="true"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--gradient-brand); }
.tab .count { margin-left: 8px; font-size: 12px; padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); color: var(--text-muted); }
.tabpanel { padding: var(--space-5); }

.toolbar { display: flex; gap: 12px; margin-bottom: var(--space-4); flex-wrap: wrap; }
.search { position: relative; flex: 1; min-width: 220px; }
.search__icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-subtle); display: grid; }
.search .input { padding-left: 42px; }

/* ---------- Tablo ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th { text-align: left; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-subtle); padding: 12px 16px; background: rgba(255, 255, 255, 0.02); border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: rgba(255, 255, 255, 0.025); }
.table .actions { display: flex; justify-content: flex-end; gap: 4px; }
.table .num { font-variant-numeric: tabular-nums; }
.table .cell-grow { min-width: 200px; max-width: 420px; }
.table .cell-owner { max-width: 240px; }
.cell-main { font-weight: 600; overflow-wrap: anywhere; }
.cell-sub { font-size: 13px; color: var(--text-subtle); margin-top: 2px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; font-weight: 700; font-size: 14px; color: var(--black); background: var(--gradient-brand); }
.avatar--muted { background: var(--surface-3); color: var(--text); }
.user-cell { display: flex; align-items: center; gap: 12px; min-width: 0; }

.progress { height: 6px; width: 110px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.progress__bar { height: 100%; background: var(--gradient-brand); border-radius: inherit; transition: width var(--dur) var(--ease-out); }

.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: var(--space-4); font-size: 14px; color: var(--text-muted); flex-wrap: wrap; }
.pager__nav { display: flex; align-items: center; gap: 8px; }

.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; flex-shrink: 0; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch__track { width: 42px; height: 24px; border-radius: 999px; background: rgba(255, 255, 255, 0.16); position: relative; transition: background-color var(--dur) ease; }
.switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--white); transition: transform var(--dur) var(--ease-out); }
.switch input:checked + .switch__track { background: var(--brand); }
.switch input:checked + .switch__track::after { transform: translateX(18px); }
.switch input:focus-visible + .switch__track { box-shadow: var(--ring); }

.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: var(--space-7) var(--space-5); color: var(--text-muted); }
.empty--card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.empty__icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-2); border: 1px solid var(--brand-line); }
.empty__icon .icon { width: 26px; height: 26px; }
.empty__title { color: var(--text); font-weight: 700; font-size: 17px; }

/* ==========================================================================
   Çekiliş kullanıcısı
   ========================================================================== */
.draw-layout { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: var(--space-5); align-items: start; }
.draw-layout__list { position: sticky; top: calc(var(--topbar-h) + 24px); min-width: 0; max-height: calc(100vh - var(--topbar-h) - 48px); overflow-y: auto; }
.raffle-list { display: grid; gap: 10px; }
.raffle-item {
    width: 100%; min-width: 0; text-align: left; display: grid; gap: 10px;
    padding: 16px; border-radius: var(--radius-lg);
    background: var(--surface); border: 1px solid var(--border); color: var(--text);
    transition: border-color var(--dur-fast) ease, background-color var(--dur-fast) ease;
}
.raffle-item:hover { border-color: var(--border-strong); background: var(--surface-2); }
.raffle-item[aria-current="true"] { border-color: var(--brand-line); background: linear-gradient(160deg, rgba(33, 143, 206, 0.16), transparent 70%), var(--surface); box-shadow: inset 3px 0 0 var(--brand-2); }
.raffle-item__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; min-width: 0; }
.raffle-item__name { font-weight: 700; min-width: 0; overflow-wrap: anywhere; }
.raffle-item__meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--text-subtle); }
.raffle-item__meta span { display: inline-flex; align-items: center; gap: 6px; }
.raffle-item__meta .icon { width: 14px; height: 14px; }

.detail { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); overflow: hidden; }
.detail__head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-4); padding: var(--space-5); border-bottom: 1px solid var(--border); flex-wrap: wrap; background: radial-gradient(80% 140% at 100% 0%, rgba(33, 143, 206, 0.16), transparent 60%); }
.detail__info { flex: 1 1 300px; min-width: 0; }
.detail__title { font-size: clamp(20px, 2.2vw, 24px); margin-bottom: 8px; overflow-wrap: anywhere; }
.detail__meta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.detail__cta { display: flex; gap: 10px; flex-wrap: wrap; flex: 0 1 auto; max-width: 100%; }
.detail__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.detail__section { padding: var(--space-5); border-bottom: 1px solid var(--border); min-width: 0; }
.detail__section:nth-child(odd) { border-right: 1px solid var(--border); }
.detail__section--full { grid-column: 1 / -1; border-right: 0 !important; }
.section-title { display: flex; align-items: center; gap: 10px; font-size: 16px; margin-bottom: 6px; flex-wrap: wrap; }
.section-title .step { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; font-size: 13px; font-weight: 800; background: var(--brand-soft); color: var(--brand-2); border: 1px solid var(--brand-line); }
.section-title .step .icon { width: 14px; height: 14px; }
.section-title .step--done { background: var(--brand); color: var(--black); border-color: transparent; }
.section-desc { font-size: 14px; color: var(--text-muted); margin-bottom: var(--space-4); }

.dropzone {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center;
    min-height: 140px; padding: 20px; border-radius: var(--radius-lg);
    border: 1.5px dashed var(--border-strong); background: rgba(255, 255, 255, 0.015); color: var(--text-muted); font-size: 14px;
    cursor: pointer; transition: border-color var(--dur-fast) ease, background-color var(--dur-fast) ease;
}
.dropzone:hover, .dropzone.is-drag { border-color: var(--brand-2); background: var(--brand-soft); }
.dropzone:focus-within { box-shadow: var(--ring); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone__icon { color: var(--brand-2); }
.dropzone__icon .icon { width: 28px; height: 28px; }
.dropzone strong { color: var(--text); }

.logo-preview { display: flex; align-items: center; gap: var(--space-4); padding: 12px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface-2); flex-wrap: wrap; }
.logo-preview__img { width: 96px; height: 64px; object-fit: contain; border-radius: 8px; flex-shrink: 0; background: repeating-conic-gradient(#1a1f25 0% 25%, #12161b 0% 50%) 50% / 14px 14px; padding: 6px; }
.logo-preview__actions { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }

.duration { display: flex; align-items: center; gap: 12px; }
.duration .input { width: 110px; flex-shrink: 0; text-align: center; font-weight: 700; font-size: 18px; }
.duration input[type="range"] { flex: 1; min-width: 0; accent-color: var(--brand); height: 32px; }

.people { max-height: 260px; overflow: auto; margin-top: var(--space-4); border: 1px solid var(--border); border-radius: var(--radius); }
.people ol { list-style: none; margin: 0; padding: 4px; counter-reset: p; }
.people li { display: flex; align-items: baseline; gap: 12px; padding: 8px 12px; border-radius: 8px; font-size: 14px; counter-increment: p; }
.people li::before { content: counter(p); min-width: 32px; flex-shrink: 0; font-variant-numeric: tabular-nums; color: var(--text-subtle); font-size: 13px; }
.people li:nth-child(even) { background: rgba(255, 255, 255, 0.02); }
.people__name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.people li.is-winner { color: var(--brand-2); }
.people li.is-winner::after { content: "Kazandı"; flex-shrink: 0; font-size: 12px; font-weight: 700; }
.people__more { padding: 10px 12px; font-size: 13px; color: var(--text-subtle); text-align: center; }

.winners { display: grid; gap: 8px; }
.winner-row { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--border); min-width: 0; }
.winner-row__rank { min-width: 34px; height: 34px; padding: 0 6px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; font-weight: 800; font-size: 14px; background: var(--gradient-brand); color: var(--black); font-variant-numeric: tabular-nums; }
.winner-row__name { flex: 1; min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.winner-row__time { flex-shrink: 0; font-size: 13px; color: var(--text-subtle); white-space: nowrap; }
.inline-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: var(--space-4); }

/* ==========================================================================
   Modal
   ========================================================================== */
.modal-backdrop { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, 0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity var(--dur) ease; }
.modal-backdrop.is-open { opacity: 1; }
.modal { width: 100%; max-height: calc(100vh - 32px); overflow: auto; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-xl); box-shadow: var(--shadow); transform: translateY(12px) scale(0.98); transition: transform var(--dur) var(--ease-out); }
.modal-backdrop.is-open .modal { transform: none; }
.modal--sm { max-width: 420px; }
.modal--md { max-width: 520px; }
.modal--lg { max-width: 720px; }
.modal__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 20px 0 24px; }
.modal__title { font-size: 20px; min-width: 0; padding-top: 6px; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.modal__body { padding: 16px 24px 24px; }
.modal__actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: var(--space-5); flex-wrap: wrap; }
.list-block { display: grid; gap: 8px; }
.list-block__item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); flex-wrap: wrap; }
.list-block__item .grow { flex: 1 1 220px; }
.list-block__controls { display: flex; align-items: center; gap: 10px; margin-left: auto; }

/* ==========================================================================
   Toast
   ========================================================================== */
.toast-host { position: fixed; z-index: 10001; right: 20px; bottom: 20px; display: grid; gap: 10px; width: min(380px, calc(100vw - 32px)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px; border-radius: var(--radius); background: var(--surface-3); border: 1px solid var(--border-strong); box-shadow: var(--shadow); font-size: 14px; opacity: 0; transform: translateY(8px); transition: opacity var(--dur) ease, transform var(--dur) var(--ease-out); }
.toast.is-visible { opacity: 1; transform: none; }
.toast__icon { color: var(--brand-2); display: grid; flex-shrink: 0; }
.toast__msg { min-width: 0; overflow-wrap: anywhere; }
.toast--error { border-color: rgba(255, 107, 107, 0.4); }
.toast--error .toast__icon { color: var(--danger); }

/* ==========================================================================
   Tam ekran sahne
   ========================================================================== */
.stage { position: fixed; inset: 0; z-index: 9999; display: flex; flex-direction: column; background: var(--black); color: var(--white); overflow: hidden; }
.stage__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background:
        radial-gradient(60% 50% at 50% 42%, rgba(33, 143, 206, 0.28) 0%, transparent 70%),
        radial-gradient(40% 40% at 10% 100%, rgba(37, 155, 213, 0.18) 0%, transparent 70%),
        radial-gradient(40% 40% at 90% 0%, rgba(37, 155, 213, 0.14) 0%, transparent 70%);
}
.stage__bg::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%); }
.stage__fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.stage__top, .stage__body, .stage__footer { position: relative; z-index: 2; }

.stage__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: clamp(14px, 3vh, 32px) clamp(16px, 3vw, 48px); }
.stage__brand { display: flex; align-items: center; gap: 18px; min-width: 0; flex: 1; }
.stage__brand > div { min-width: 0; flex: 1; }
.stage__logo { height: clamp(40px, 7vh, 72px); width: auto; max-width: min(220px, 22vw); object-fit: contain; flex-shrink: 0; }
.stage__eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brand-2); }
.stage__title { font-size: clamp(22px, 3.2vw, 40px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.28; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.stage__top .btn { flex-shrink: 0; }

.stage__body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(220px, 320px) minmax(0, 1fr); gap: clamp(16px, 3vw, 48px); padding: 0 clamp(16px, 3vw, 48px); }

.stage__winners { align-self: stretch; display: flex; flex-direction: column; min-height: 0; min-width: 0; max-height: 100%; background: rgba(255, 255, 255, 0.045); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: var(--radius-xl); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); overflow: hidden; margin-bottom: 8px; }
.stage__winners-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); font-weight: 700; }
.stage__count { min-width: 32px; height: 26px; padding: 0 10px; display: grid; place-items: center; border-radius: 999px; background: var(--gradient-brand); color: var(--black); font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }
.stage__winner-list { list-style: none; margin: 0; padding: 8px; overflow: auto; display: grid; gap: 4px; align-content: start; }
.stage__winner-list li { display: flex; align-items: baseline; gap: 12px; padding: 10px 12px; border-radius: 12px; font-size: 15px; line-height: 1.35; min-width: 0; }
.stage__winner-list li .n { min-width: 26px; flex-shrink: 0; color: var(--brand-2); font-weight: 800; font-variant-numeric: tabular-nums; }
.stage__winner-list li .name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.stage__winner-list li.is-new { background: var(--brand-soft); animation: slideIn 420ms var(--ease-out); }
.stage__winner-list .empty-row { color: rgba(255, 255, 255, 0.55); font-size: 14px; }

.stage__center { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: clamp(10px, 2.2vh, 26px); min-width: 0; min-height: 0; width: 100%; padding-bottom: 4vh; overflow: hidden; }
.stage__round { font-size: clamp(13px, 1.4vw, 18px); font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255, 255, 255, 0.72); max-width: 100%; }

/* İsim kutuları: sabit yükseklik + JS ile yazı boyutu sığdırma (fitText).
   line-height ve dikey iç boşluk, Ç Ş Ğ İ gibi harflerin üst/alt
   parçalarının kesilmesini önler. */
.stage__reel {
    width: 100%; max-width: 100%;
    height: clamp(96px, 24vh, 240px);
    display: flex; align-items: center; justify-content: center;
    padding: 0 8px;
    font-size: clamp(30px, 6.5vw, 96px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.18;
    color: rgba(255, 255, 255, 0.92);
    overflow: hidden; text-wrap: balance;
}
.stage__reel-text { display: block; width: 100%; padding: 0.06em 0 0.12em; }
.stage__reel.is-spinning { text-shadow: 0 0 30px rgba(37, 155, 213, 0.45); }
.stage__reel.is-idle { color: rgba(255, 255, 255, 0.4); font-size: clamp(22px, 3.5vw, 48px); }
.stage__result { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%; min-width: 0; }
.stage__result:empty { display: none; }
.stage__result-label { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.2); font-size: clamp(12px, 1.3vw, 16px); font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; white-space: nowrap; }
.stage__result-label .icon { color: var(--brand-2); }
.stage__winner-name {
    width: 100%; max-width: 100%;
    padding: 0.1em 0.12em 0.18em;
    font-size: clamp(40px, 8.5vw, 132px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.16;
    text-wrap: balance;
    background: linear-gradient(180deg, #FFFFFF 10%, #259BD5 110%); -webkit-background-clip: text; background-clip: text; color: transparent;
    -webkit-box-decoration-break: clone; box-decoration-break: clone;
    filter: drop-shadow(0 0 28px rgba(37, 155, 213, 0.55));
    animation: winnerPop 700ms var(--ease-out) both;
}
.stage__hint { font-size: clamp(13px, 1.4vw, 18px); color: rgba(255, 255, 255, 0.7); max-width: 100%; }
.stage__center .btn--xl { flex-shrink: 0; }

.stage__footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px clamp(16px, 3vw, 48px) clamp(14px, 3vh, 28px); font-size: 14px; color: rgba(255, 255, 255, 0.66); flex-wrap: wrap; }
kbd { display: inline-block; min-width: 26px; padding: 2px 8px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, 0.25); border-bottom-width: 2px; font: 600 12px/1.6 var(--font); color: var(--white); background: rgba(255, 255, 255, 0.06); text-align: center; }

/* ---------- Animasyonlar ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes winnerPop { 0% { opacity: 0; transform: scale(0.72) translateY(20px); } 60% { opacity: 1; transform: scale(1.04); } 100% { opacity: 1; transform: none; } }
@keyframes slideIn { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.view:not([hidden]) { animation: fadeUp 280ms var(--ease-out); }

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

/* ==========================================================================
   Duyarlı
   ========================================================================== */
@media (max-width: 1100px) {
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .draw-layout { grid-template-columns: minmax(0, 1fr); }
    .draw-layout__list { position: static; max-height: none; overflow: visible; }
    .raffle-list { grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); }
}
@media (max-width: 900px) {
    .login { grid-template-columns: 1fr; }
    .login__brand { display: none; }
    .login__logo--mobile { display: block; }
    .detail__grid { grid-template-columns: minmax(0, 1fr); }
    .detail__section { border-right: 0 !important; }
    .stage__body { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
    .stage__winners { order: 2; max-height: 26vh; }
}
@media (max-width: 640px) {
    .topbar__divider, .topbar__title, .topbar__email { display: none; }
    .field-row { grid-template-columns: minmax(0, 1fr); }
    .tabpanel { padding: var(--space-4); }
    .table .hide-sm { display: none; }
    .table .cell-grow { min-width: 140px; }
    .stats { gap: 10px; }
    .stat { padding: 14px; }
    .stat__value { font-size: 24px; }
    .input--auto { width: 100%; }
    .stage__keys { display: none; }
    .winner-row__time { display: none; }
    .detail__cta { width: 100%; }
    .detail__cta .btn { flex: 1 1 auto; }
    .stage__top .btn span { display: none; }
    .stage__top .btn { padding: 0 12px; }
    .btn--xl { min-height: 52px; padding: 0 24px; font-size: 16px; }
}
@media (max-height: 640px) {
    .stage__reel { height: clamp(72px, 20vh, 160px); }
    .stage__footer { padding-top: 8px; padding-bottom: 8px; }
    .stage__eyebrow { display: none; }
}
