/* Sitenin ortak arayüz parçaları: ana sayfadaki pencere (başvuru, LSPD, destek), yetkili paneli ve metin sayfaları.
   Ana sayfanın dili: gece Los Santos'u, koyu cam yüzeyler, beyaz hap düğmeler. */
:root {
    --ink: #f5f5f7;
    --ink-2: rgba(245, 245, 247, 0.72);
    --ink-3: rgba(245, 245, 247, 0.5);
    --line: rgba(255, 255, 255, 0.12);
    --line-soft: rgba(255, 255, 255, 0.07);
    --fill: rgba(255, 255, 255, 0.07);
    --fill-hover: rgba(255, 255, 255, 0.12);
    --glass: rgba(17, 16, 25, 0.86);
    --accent: #9cc1ff;
    --danger: #ff6b6b;
    --success: #62d48c;
    --warning: #ffb547;
    --gold: #ffd27a;
    --radius: 18px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
    color-scheme: dark;
}

/* --- Düğmeler ------------------------------------------------------------------------------- */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 22px;
    border: 0;
    border-radius: 980px;
    background: var(--fill);
    color: var(--ink);
    font: 500 15px/1.2 var(--font);
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s var(--ease), box-shadow 0.3s var(--ease), transform 0.2s var(--ease), opacity 0.2s;
}

.button:hover {
    background: var(--fill-hover);
    text-decoration: none;
}

.button:active {
    transform: scale(0.98);
}

.button:disabled {
    opacity: 0.4;
    cursor: default;
    transform: none;
}

.button:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 3px;
}

/* Ana sayfadaki "Hikâyene Başla" gibi: beyaz hap */
.button.primary {
    background: #f5f5f7;
    color: #1d1d1f;
    font-weight: 600;
}

.button.primary:hover {
    background: #fff;
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.08), 0 10px 40px rgba(255, 170, 110, 0.22);
}

.button.danger {
    background: transparent;
    color: var(--danger);
    box-shadow: inset 0 0 0 1px rgba(255, 107, 107, 0.45);
}

.button.danger:hover {
    background: rgba(255, 107, 107, 0.1);
}

.button.wide {
    width: 100%;
    min-height: 50px;
    font-size: 17px;
}

.button.large {
    min-height: 52px;
    padding: 0 30px;
    font-size: 17px;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 28px;
}

.quiet {
    padding: 0;
    border: 0;
    background: none;
    color: var(--accent);
    font: inherit;
    font-size: 14px;
    cursor: pointer;
}

.quiet:hover {
    text-decoration: underline;
}

.quiet-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 22px;
    margin: 28px 0 0;
}

.quiet-row .quiet,
.quiet-row a {
    color: var(--ink-3);
    font-size: 13px;
    text-decoration: none;
}

.quiet-row .quiet:hover,
.quiet-row a:hover {
    color: var(--ink-2);
    text-decoration: none;
}

.meta {
    margin: 12px 0 0;
    font-size: 13px;
    color: var(--ink-3);
}

/* --- Durum ekranı (başvuru alındı, mülakat, ret...) ---------------------------------------- */

.status {
    padding: 12px 0 4px;
    text-align: center;
}

.status h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.015em;
    line-height: 1.15;
}

.status > p {
    max-width: 30em;
    margin: 12px auto 0;
    color: var(--ink-2);
    font-size: 16px;
    line-height: 1.5;
}

.status-icon {
    display: inline-grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin-bottom: 20px;
    border-radius: 50%;
    background: var(--fill);
    color: var(--ink-2);
}

.status-icon svg {
    width: 26px;
    height: 26px;
}

.status.approved .status-icon,
.status.whitelisted .status-icon {
    background: rgba(98, 212, 140, 0.14);
    color: var(--success);
}

.status.interview .status-icon,
.status.revise .status-icon {
    background: rgba(255, 210, 122, 0.14);
    color: var(--gold);
}

/* "Başlamadan önce": başvurudan önce bilinmesi gerekenler, satır satır */
.points {
    max-width: 30em;
    margin: 26px auto 0;
    padding: 0;
    border-radius: 16px;
    background: var(--fill);
    list-style: none;
    text-align: left;
}

.points li {
    padding: 15px 18px;
    font-size: 16px;
    line-height: 1.45;
}

.points li + li {
    border-top: 1px solid var(--line-soft);
}

.status.rejected .status-icon {
    background: rgba(255, 107, 107, 0.12);
    color: var(--danger);
}

.staff-note {
    max-width: 30em;
    margin: 24px auto 0;
    padding: 16px 18px;
    border-radius: 14px;
    background: var(--fill);
    text-align: left;
}

.staff-note span {
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-3);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.staff-note p {
    margin: 4px 0 0;
    white-space: pre-wrap;
}

/* --- Başvuru formu ----------------------------------------------------------------------------- */

.form-head h1 {
    margin: 0 0 14px;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.form-head p {
    margin: 0 0 10px;
    color: var(--ink-2);
    font-size: 15px;
    line-height: 1.55;
}

/* Yeniden başvuruda formun başındaki yetkili notu */
.form-head .staff-note {
    max-width: none;
    margin: 0 0 18px;
}

.form-head .staff-note p {
    margin: 4px 0 0;
    color: var(--ink);
}

.q {
    margin-top: 14px;
    padding: 22px 22px 24px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line-soft);
    transition: border-color 0.2s var(--ease);
}

.q h2 {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.35;
}

.q-number {
    margin-right: 10px;
    color: var(--ink-3);
    font-size: 14px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.optional {
    margin-left: 8px;
    font-size: 13px;
    font-weight: 400;
    color: var(--ink-3);
    white-space: nowrap;
}

.help {
    margin: 10px 0 0;
    color: var(--ink-2);
    font-size: 14px;
    line-height: 1.5;
}

.q > .choices,
.q > .scale,
.q > .grid,
.q > .select,
.q > .text,
.q > .field {
    margin-top: 16px;
}

/* Tek satırlık metin ve tarih */
.field input {
    display: block;
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: var(--fill);
    color: var(--ink);
    font: 16px var(--font);
    transition: border-color 0.15s, background-color 0.15s;
}

.field input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.1);
}

/* --- LSPD başvurusu: bilgilendirme, bölüm başlıkları, senaryolar ---------------------------------- */

.form-head .kicker {
    margin: 0 0 6px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.brief {
    margin-top: 22px;
}

.brief h2 {
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 600;
}

.brief strong {
    color: var(--ink);
    font-weight: 600;
}

.part-head {
    margin: 40px 0 4px;
    padding: 0 4px;
}

.part-head h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.2;
}

.tag {
    display: inline-block;
    margin-left: 10px;
    padding: 2px 9px;
    border-radius: 980px;
    background: var(--fill);
    color: var(--ink-2);
    font-size: 12px;
    font-weight: 600;
    vertical-align: 3px;
}

.scene {
    margin: 0 0 10px;
    font-size: 15px;
    line-height: 1.55;
}

.q h2.ask {
    white-space: pre-line;
}

.field-error,
.form-error {
    margin: 10px 0 0;
    color: var(--danger);
    font-size: 14px;
}

.field-error:empty,
.form-error:empty {
    display: none;
}

.q.has-error {
    border-color: rgba(255, 107, 107, 0.55);
}

.notice {
    margin: 14px 0 0;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 181, 71, 0.12);
    color: var(--warning);
    font-size: 15px;
}

/* İyi haber: "cevaplarınız kayıtlı" */
.form-head .notice.good {
    margin: 0 0 12px;
    background: rgba(98, 212, 140, 0.12);
    color: var(--success);
}

/* Seçimler: gizli girdi + hap biçimli etiket; seçilen beyaz olur */
.choices {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.choice {
    position: relative;
}

.choice input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.choice span {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 16px;
    border-radius: 12px;
    background: var(--fill);
    font-size: 15px;
    line-height: 1.3;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.15s var(--ease), color 0.15s var(--ease);
}

.choice span:hover {
    background: var(--fill-hover);
}

.choice input:checked + span {
    background: #f5f5f7;
    color: #1d1d1f;
    font-weight: 500;
}

.choice input:focus-visible + span {
    outline: 2px solid var(--ink);
    outline-offset: 2px;
}

/* 1-10 ölçeği */
.scale {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 6px;
}

.scale .choice span {
    justify-content: center;
    width: 100%;
    padding: 8px 0;
    font-variant-numeric: tabular-nums;
}

.scale-end {
    grid-row: 2;
    font-size: 12px;
    color: var(--ink-3);
}

.scale-end.start {
    grid-column: 1 / span 3;
}

.scale-end.end {
    grid-column: 8 / span 3;
    text-align: right;
}

@media (max-width: 520px) {
    .scale {
        grid-template-columns: repeat(5, 1fr);
    }

    .scale-end {
        grid-row: 3;
    }

    .scale-end.start {
        grid-column: 1 / span 2;
    }

    .scale-end.end {
        grid-column: 4 / span 2;
    }
}

/* Satır satır seçim (terimler, saatler) */
.grid-row + .grid-row {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--line-soft);
}

.grid-label {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 600;
}

.select select {
    width: 100%;
    min-height: 46px;
    padding: 0 40px 0 14px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: var(--fill) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23a1a1a6' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 16px center;
    color: var(--ink);
    font: 16px var(--font);
    appearance: none;
    cursor: pointer;
}

.select select option {
    background: #17161f;
    color: var(--ink);
}

.text textarea,
.note {
    display: block;
    width: 100%;
    padding: 14px 16px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: var(--fill);
    color: var(--ink);
    font: 16px/1.55 var(--font);
    transition: border-color 0.15s, background-color 0.15s;
}

.text textarea {
    min-height: 180px;
    resize: none;
    overflow: hidden;
}

.text textarea:focus,
.note:focus,
.select select:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.1);
}

.text-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
}

.counter {
    font-size: 12px;
    color: var(--ink-3);
    font-variant-numeric: tabular-nums;
}

.submit {
    margin-top: 22px;
}

.check {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    line-height: 1.4;
    font-size: 15px;
    cursor: pointer;
}

.check input {
    flex: none;
    width: 22px;
    height: 22px;
    margin: 0;
    accent-color: #f5f5f7;
    cursor: pointer;
}

.check a {
    color: var(--accent);
}

.submit .meta {
    text-align: center;
}

.submit .field-error {
    margin: -8px 0 16px;
}

/* --- Destek: talepler, konular, yazışma -------------------------------------------------------- */

.support-head h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.support-head p {
    margin: 8px 0 0;
    color: var(--ink-2);
    font-size: 15px;
    line-height: 1.5;
}

/* ‹ Geri */
.crumb {
    display: block;
    margin: 0 0 16px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--accent);
    font: 15px var(--font);
    cursor: pointer;
}

.crumb:hover {
    text-decoration: underline;
}

/* Satır listesi: konular ve talepler */
.rows {
    margin-top: 22px;
    overflow: hidden;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.04);
}

.item {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 14px 16px;
    border: 0;
    background: none;
    color: var(--ink);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.15s var(--ease);
}

.item + .item {
    border-top: 1px solid var(--line-soft);
}

.item:hover {
    background: var(--fill);
}

.item:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: -2px;
}

.item-icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: var(--fill);
    color: var(--ink-2);
}

.item-icon svg {
    width: 20px;
    height: 20px;
}

.item-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.item-title {
    overflow: hidden;
    font-size: 16px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.item-sub {
    overflow: hidden;
    color: var(--ink-2);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.item-side {
    flex: none;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    color: var(--ink-3);
    font-size: 12px;
}

.chevron {
    flex: none;
    display: grid;
    color: var(--ink-3);
}

.chevron svg {
    width: 14px;
    height: 14px;
}

/* Okunmamış yanıt */
.dot {
    flex: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}

.dot.off {
    background: none;
}

.state {
    font-weight: 600;
}

.state.waiting {
    color: var(--ink-2);
}

.state.answered {
    color: var(--accent);
}

.state.closed {
    color: var(--success);
}

.ticket-form .text textarea {
    min-height: 130px;
}

.add-shot {
    gap: 8px;
    min-height: 40px;
    margin-top: 14px;
    padding: 0 16px;
    font-size: 14px;
}

.add-shot svg {
    display: block;
    width: 18px;
    height: 18px;
}

.add-shot .icon {
    display: grid;
}

/* Talebin açılışında doldurulan form */
.facts {
    margin-top: 18px;
    padding: 16px 18px;
    border: 1px solid var(--line-soft);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
}

.facts dl {
    margin: 0;
}

.facts dt {
    color: var(--ink-3);
    font-size: 12px;
    font-weight: 600;
}

.facts dd {
    margin: 2px 0 12px;
    font-size: 15px;
    line-height: 1.5;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.facts dd:last-child {
    margin-bottom: 0;
}

.facts a,
.bubble a {
    color: var(--accent);
}

/* Yazışma: kendi mesajların sağda (beyaz), karşı taraf solda */
.thread {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 22px;
}

.thread:empty {
    display: none;
}

.msg {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: min(84%, 560px);
}

.msg.out {
    align-self: flex-end;
    align-items: flex-end;
}

.msg-meta {
    margin: 0 6px 4px;
    color: var(--ink-3);
    font-size: 12px;
}

.bubble {
    padding: 10px 14px;
    border-radius: 18px;
    background: var(--fill-hover);
    font-size: 15px;
    line-height: 1.45;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.msg.out .bubble {
    background: #f5f5f7;
    color: #1d1d1f;
}

.msg.out .bubble a {
    color: #0b57d0;
}

/* Yetkili notu: oyuncu görmez */
.msg.memo .bubble {
    background: rgba(255, 210, 122, 0.13);
    box-shadow: inset 0 0 0 1px rgba(255, 210, 122, 0.3);
    color: var(--ink);
}

.msg.memo .msg-meta {
    color: var(--gold);
}

.thread .event {
    align-self: center;
    margin: 0;
    color: var(--ink-3);
    font-size: 12px;
    text-align: center;
}

.shots {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.facts .shots {
    margin-top: 14px;
}

.msg.out .shots {
    justify-content: flex-end;
}

.shot {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    background: var(--fill);
}

.shot img {
    display: block;
    width: 152px;
    height: 104px;
    object-fit: cover;
    transition: opacity 0.15s;
}

.shot:hover img {
    opacity: 0.85;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.88);
    cursor: zoom-out;
}

.lightbox img {
    max-width: 100%;
    max-height: calc(100vh - 48px);
    border-radius: 10px;
}

/* Yazma alanı */
.composer {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    padding: 5px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.06);
    transition: border-color 0.15s;
}

.composer:focus-within {
    border-color: rgba(255, 255, 255, 0.35);
}

.composer textarea {
    flex: 1;
    min-width: 0;
    height: 38px;
    max-height: 160px;
    padding: 8px 4px;
    border: 0;
    background: none;
    color: var(--ink);
    font: 16px/1.4 var(--font);
    resize: none;
    outline: none;
}

.composer .attach,
.composer .send {
    flex: none;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s, opacity 0.15s;
}

.composer svg {
    display: block;
    width: 20px;
    height: 20px;
}

.composer .icon {
    display: grid;
}

.composer .attach {
    background: none;
    color: var(--ink-2);
}

.composer .attach:hover {
    background: var(--fill-hover);
    color: var(--ink);
}

.composer .send {
    background: #f5f5f7;
    color: #1d1d1f;
}

.composer .send:disabled {
    opacity: 0.4;
    cursor: default;
}

.composer button:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 2px;
}

/* Yetkili: Yanıt / Yetkili notu */
.modes {
    display: inline-flex;
    gap: 2px;
    margin-bottom: 10px;
    padding: 2px;
    border-radius: 10px;
    background: var(--fill);
}

.mode {
    min-height: 28px;
    padding: 0 12px;
    border: 0;
    border-radius: 8px;
    background: none;
    color: var(--ink-2);
    font: 500 13px var(--font);
    cursor: pointer;
}

.mode.active {
    background: rgba(255, 255, 255, 0.14);
    color: var(--ink);
}

.compose[data-mode="note"] .composer {
    border-color: rgba(255, 210, 122, 0.45);
    background: rgba(255, 210, 122, 0.08);
}

.compose[data-mode="note"] .mode.active {
    color: var(--gold);
}

/* Eklenecek görseller */
.tray {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.tray[hidden],
.compose input[hidden],
.q input[hidden] {
    display: none;
}

.q > .tray {
    margin: 14px 0 0;
}

.thumb {
    position: relative;
    width: 76px;
    height: 56px;
    overflow: hidden;
    border-radius: 10px;
    background: var(--fill-hover);
}

.thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb.loading {
    animation: pulse 1s ease-in-out infinite alternate;
}

@keyframes pulse {
    to {
        opacity: 0.4;
    }
}

.thumb-remove {
    position: absolute;
    top: 3px;
    right: 3px;
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font: 400 14px/1 var(--font);
    cursor: pointer;
}

.foot-note {
    margin: 10px 0 0;
    color: var(--ink-3);
    font-size: 13px;
    text-align: center;
}

.foot-note + .compose {
    margin-top: 12px;
}

/* Destek penceresinde yazma alanı pencerenin altında, boydan boya sabit bir çubukta durur
   (--pad, --pad-end: pencerenin yan ve alt boşluğu; çubuk bu boşlukları da kaplar) */
.thread-foot {
    position: sticky;
    bottom: calc(-1 * var(--pad-end, 0px));
    margin: 20px calc(-1 * var(--pad, 0px)) calc(-1 * var(--pad-end, 0px));
    padding: 14px var(--pad, 0px) max(18px, var(--pad-end, 0px) - 8px);
    border-top: 1px solid var(--line-soft);
    background: #14131c;
}

.thread-foot .actions {
    margin-top: 14px;
}

/* --- Güncelleme notları: gün gün liste (ana sayfadaki pencere ve yetkili paneli) ------------------ */

.log-day {
    margin-top: 26px;
}

.log-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin: 0 4px 8px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0;
}

.log-count {
    flex: none;
    color: var(--ink-3);
    font-size: 12px;
    font-weight: 400;
}

.log-list {
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.04);
    list-style: none;
}

.log-list li {
    position: relative;
    padding: 12px 16px 12px 34px;
    font-size: 15px;
    line-height: 1.45;
    overflow-wrap: anywhere;
    white-space: pre-wrap; /* "tek güncelleme" olarak yayınlanan duyurunun satırları korunur */
}

.log-list li + li {
    border-top: 1px solid var(--line-soft);
}

.log-list li::before {
    content: "";
    position: absolute;
    left: 16px;
    top: 20px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--ink-3);
}

/* Son ziyaretten beri eklenen güncelleme */
.log-list li.fresh::before {
    background: var(--accent);
    box-shadow: 0 0 0 3px rgba(156, 193, 255, 0.18);
}

/* Önemli güncelleme (yetkili pop-up yaptı) */
.log-tag {
    display: inline-block;
    margin-right: 8px;
    padding: 1px 8px;
    border-radius: 980px;
    background: rgba(255, 210, 122, 0.14);
    color: var(--gold);
    font-size: 12px;
    font-weight: 600;
    vertical-align: 1px;
}

/* Önemli güncellemelerin pop-up'ı: aynı liste, daha iri yazı */
.log-list.notices {
    margin-top: 22px;
    border-color: rgba(255, 210, 122, 0.3);
}

.log-list.notices li {
    padding-top: 14px;
    padding-bottom: 14px;
    font-size: 17px;
}

.log-list.notices li::before {
    top: 24px;
    background: var(--gold);
}

/* Güncellemeye eklenen görseller: listede küçük kareler, pop-up'ta iri (tek görsel boydan boya) */
.log-list .shots {
    margin-top: 10px;
}

.notices .shots {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 12px;
}

.notices .shot img {
    width: 100%;
    height: 170px;
}

.notices .shot:only-child {
    grid-column: 1 / -1;
}

.notices .shot:only-child img {
    height: auto;
    max-height: 380px;
    object-fit: contain;
}

.actions:empty {
    display: none;
}

/* --- Pencere: ana sayfada (başvuru, LSPD, EMS, destek, güncellemeler) ve hikâye sayfalarında (karakter sayfası,
   olay, gelişme yazma). Sayfanın üstünde koyu, opak bir pencere; açıkken arkadaki sayfa kaymaz. ------------------- */

.sheet-open,
.sheet-open body {
    overflow: hidden;
}

.sheet {
    position: fixed;
    inset: 0;
    z-index: 9;
    display: grid;
    place-items: center;
    padding: 4vh 16px;
    background: rgba(4, 3, 10, 0.72); /* bulanıklık yok: arka planı her karede yeniden bulandırmak pahalı */
}

.sheet[hidden] {
    display: none;
}

.sheet-panel {
    position: relative;
    width: min(680px, 100%);
    max-height: 92vh;
    max-height: 92dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
    --pad: clamp(20px, 4vw, 44px);
    --pad-end: 28px;
    padding: 40px var(--pad) var(--pad-end);
    border: 1px solid var(--line);
    border-radius: 26px;
    background: #121119;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
    color: var(--ink);
    line-height: 1.47;
}

.motion .sheet:not([hidden]) {
    animation: appear 0.3s var(--ease);
}

.motion .sheet:not([hidden]) .sheet-panel {
    animation: rise 0.45s var(--ease);
}

.sheet-close {
    position: sticky;
    top: -24px;
    float: right;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin: -20px -16px 0 0;
    border: 0;
    border-radius: 50%;
    background: var(--fill);
    color: var(--ink-2);
    font: 400 20px/1 var(--font);
    cursor: pointer;
}

.sheet-close:hover {
    background: var(--fill-hover);
    color: var(--ink);
}

.sheet-close:focus-visible {
    outline: 2px solid var(--ink);
}

@media (max-width: 600px) {
    .sheet {
        place-items: end stretch;
        padding: 0;
    }

    .sheet-panel {
        width: 100%;
        max-height: 94vh;
        max-height: 94dvh;
        border-radius: 24px 24px 0 0;
        --pad-end: max(28px, env(safe-area-inset-bottom));
    }
}

/* Açılış geçişleri: bir kez oynar, sonra hiçbir şey çalışmaz */
@keyframes appear {
    from {
        opacity: 0;
    }
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
}

/* --- Bildirim -------------------------------------------------------------------------------- */

.toast {
    position: fixed;
    left: 50%;
    bottom: 32px;
    z-index: 30;
    max-width: calc(100vw - 32px);
    padding: 12px 20px;
    border-radius: 980px;
    background: rgba(245, 245, 247, 0.96);
    color: #1d1d1f;
    font: 500 15px var(--font);
    opacity: 0;
    transform: translate(-50%, 12px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
    pointer-events: none;
}

.toast.on {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* --- "Tekrar hoş geldin" (/donus): sen yokken olanlar, ara verme, "Neden ara verdin?", hatırlatmalar ------------ */

.back-part {
    margin-top: 32px;
}

.back-part h2 {
    margin: 0 0 6px;
    font-size: 19px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.back-text {
    margin: 0;
    color: var(--ink-2);
    font-size: 15px;
}

.back-choices {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.back-part .choices {
    margin-top: 14px;
}

.back-part .note {
    min-height: 88px;
    margin-top: 12px;
    resize: vertical;
}

.back-part .notice.good {
    background: rgba(98, 212, 140, 0.12);
    color: var(--success);
}

/* Sen yokken yaşanan olaylar: kapaklı küçük kartlar, altında güncellemeler */
.back-events {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 10px;
}

.back-event,
.back-event:hover {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    color: var(--ink);
    text-decoration: none;
}

.back-event img,
.back-event-blank {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 12px;
    background: var(--fill);
    object-fit: cover;
}

.back-event-title {
    display: -webkit-box;
    overflow: hidden;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.back-event:hover .back-event-title {
    color: var(--accent);
}

.back-event-meta {
    color: var(--ink-3);
    font-size: 12px;
}

.back-updates {
    margin-top: 12px;
}

.back-day {
    margin-right: 8px;
    color: var(--ink-3);
    font-size: 13px;
}

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

/* --- Ücretli başvuru: "Son adım" (form doldu, başvuru henüz gönderilmedi: öncelikli kartı önde, VIP yanında; ücretsiz
   sıra en altta küçük bir bağlantı ve onay), bekleyen başvuruyu öne alma ------------------------------------------- */

/* "Son adım": başlığın üstünde gün batımı renginde küçük etiket (başvurunun bitmediği belli olsun) */
.status.send > p.eyebrow {
    display: inline-block;
    margin: 0 0 12px;
    padding: 3px 12px;
    border-radius: 980px;
    background: rgba(255, 176, 138, 0.13);
    color: #ffc3a0;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

/* Okunma süresi: ücretsiz sıra ile öncelikli yan yana (son 30 günün ortalaması), sözün ve kartların üstünde */
.read-compare {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 420px;
    margin: 18px auto 0;
    overflow: hidden;
    border-radius: 16px;
    background: var(--fill);
    box-shadow: inset 0 0 0 1px var(--line-soft);
}

.read-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 12px 10px 11px;
    text-align: center;
}

.read-cell + .read-cell {
    box-shadow: inset 1px 0 0 var(--line-soft);
}

.read-cell.fast {
    background: rgba(255, 176, 138, 0.09);
}

.read-label {
    color: var(--ink-2);
    font-size: 13px;
    font-weight: 600;
}

.read-value {
    color: var(--ink-2);
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
    font-variant-numeric: tabular-nums;
}

.read-cell.fast .read-value {
    color: #ffc3a0;
}

.read-note {
    color: var(--ink-3);
    font-size: 12px;
}

/* Sunucunun sözü, kartların hemen üstünde tek satır */
.status.send > p.pledge-line {
    justify-content: center;
    gap: 8px;
    max-width: none;
    margin-top: 14px;
    color: var(--ink-2);
    font-size: 14px;
    text-align: center;
}

.status.send .pledge-icon,
.status.send .pledge-icon svg {
    width: 18px;
    height: 18px;
}

.tiers {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 12px;
    margin-top: 24px;
    padding-top: 9px; /* "Önerilen" etiketine yer */
    text-align: left;
}

/* Kart: ad, fiyat (TL), tek seferlik, öncelikli kartında piyasa karşılaştırması, ne kazandırdığı, maddeler, altta
   düğmesi. Yedi satır iki kartta ortak (subgrid): kazanç satırları ve düğmeler yan yana aynı hizada. */
.tier {
    position: relative;
    display: grid;
    grid-row: span 7;
    grid-template-rows: subgrid;
    row-gap: 0;
    align-content: start;
    padding: 20px 18px 18px;
    border-radius: 18px;
    background: var(--fill);
    box-shadow: inset 0 0 0 1px var(--line-soft);
}

.tier.recommended {
    background: linear-gradient(180deg, rgba(255, 176, 138, 0.11) 0%, rgba(255, 176, 138, 0.035) 100%);
    box-shadow: inset 0 0 0 1.5px rgba(255, 176, 138, 0.62), 0 18px 50px rgba(244, 123, 146, 0.1);
}

/* Düğmeler iki kartta aynı hizada, kartın dibinde */
.tier .button {
    align-self: end;
}

/* "Önerilen": markanın gün batımı; kartın üst kenarına oturur (kartların başlıkları aynı hizada kalır) */
.tier-flag {
    position: absolute;
    top: -9px;
    left: 14px;
    padding: 2px 9px;
    border-radius: 980px;
    background: linear-gradient(90deg, #ffe1b8 0%, #ffb08a 48%, #f47b92 100%);
    color: #1d1d1f;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.tier-name {
    color: var(--ink-2);
    font-size: 15px;
    font-weight: 600;
}

.tier.recommended .tier-name {
    color: var(--ink);
}

/* Fiyat: büyük rakam, yanında küçük "TL" */
.tier-price {
    display: flex;
    align-items: baseline;
    gap: 5px;
    margin-top: 2px;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.tier-amount {
    font-size: 40px;
    font-weight: 700;
    letter-spacing: -0.035em;
}

.tier-unit {
    color: var(--ink-2);
    font-size: 19px;
    font-weight: 600;
}

.tier-once,
.tier-market {
    color: var(--ink-3);
    font-size: 13px;
    line-height: 1.4;
}

.tier-once {
    margin-top: 2px;
}

.tier-market {
    margin-top: 2px;
}

/* Kartın asıl kazancı (öncelikli: okunma süresi; VIP: doğrudan mülakat) ve maddeleri */
.tier-lead {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 16px 0 0;
    padding-top: 14px;
    border-top: 1px solid var(--line-soft);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
}

.tier.recommended .tier-lead {
    color: #ffc3a0;
}

.tier-lead-icon,
.tier-lead-icon svg {
    flex: none;
    width: 18px;
    height: 18px;
}

.tier-points {
    margin: 10px 0 20px;
    padding: 0;
    list-style: none;
    color: var(--ink-2);
    font-size: 14px;
    line-height: 1.4;
}

.tier-points li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.tier-points li + li {
    margin-top: 6px;
}

/* Başlıklı madde (öncelikli kartı: haklar): başlık, altında sönük açıklama */
.tier-point-title {
    display: block;
    color: var(--ink);
    font-weight: 600;
}

.tier-point-sub {
    display: block;
    color: var(--ink-3);
    font-size: 13px;
}

.tier-points li:has(.tier-point-title) + li {
    margin-top: 9px;
}

.tier-check,
.tier-check svg {
    flex: none;
    width: 15px;
    height: 15px;
}

.tier-check {
    margin-top: 2px;
    color: var(--success);
}

.tier-terms,
.status > p.tier-terms {
    max-width: 36em;
    margin: 18px auto 0;
    color: var(--ink-3);
    font-size: 12.5px;
    line-height: 1.5;
    text-align: center;
}

.status .form-error {
    text-align: center;
}

/* Ücretsiz sıra: kartların ve koşulun altında sönük, küçük bir bağlantı; basınca kısa açıklama ve onay */
.free-wait,
.status > p.free-wait {
    margin: 20px auto 0;
    text-align: center;
}

.free-wait .quiet {
    color: var(--ink-3);
    font-size: 13px;
}

.free-wait .quiet:hover {
    color: var(--ink-2);
}

.status > p.free-wait.edit {
    margin-top: 10px;
}

.free-confirm {
    max-width: 30em;
    margin: 20px auto 0;
    padding: 16px 18px;
    border-radius: 16px;
    background: var(--fill);
    text-align: center;
}

.free-confirm[hidden] {
    display: none;
}

.free-confirm p {
    margin: 0;
    color: var(--ink-2);
    font-size: 14px;
    line-height: 1.5;
}

.free-confirm .actions {
    margin-top: 14px;
}

/* Destekçi penceresi: tek kart, ortada */
.tiers.one {
    grid-template-columns: minmax(0, 1fr);
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
}

.status.supporter .supporter-shown {
    max-width: 30em;
    margin: 20px auto 0;
    color: var(--ink-2);
    font-size: 14px;
    text-align: left;
}

.status.supporter .status-icon {
    background: rgba(255, 176, 138, 0.14);
    color: #ffb08a;
}

/* Bekleyen ücretsiz başvuru (durum ekranı, paid.js → upsell): öne alma önerilen kart, altında ücretsiz sıranın bedeli,
   VIP tek satır, söz ve koşul */
.upsell {
    margin: 26px 0 0;
    padding-top: 9px; /* "Önerilen" etiketine yer */
    text-align: left;
}

.raise {
    position: relative;
    container-type: inline-size;
    padding: 20px 18px 16px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 176, 138, 0.11) 0%, rgba(255, 176, 138, 0.035) 100%);
    box-shadow: inset 0 0 0 1.5px rgba(255, 176, 138, 0.62), 0 18px 50px rgba(244, 123, 146, 0.1);
}

/* Başlık solda, fiyat sağda; dar ekranda alt alta */
.raise-top {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 4px 14px;
}

.raise-name {
    color: var(--ink);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.3;
}

.raise-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.raise .tier-price {
    margin: 0;
}

/* Dar kartta (telefon) fiyat başlığın altında, sola yaslı */
@container (max-width: 380px) {
    .raise-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .raise-price {
        align-items: flex-start;
    }
}

.raise .read-compare {
    max-width: none;
    margin: 14px 0 0;
}

.raise .tier-points {
    margin: 14px 0 16px;
}

.raise-how {
    margin: 10px 0 0;
    color: var(--ink-3);
    font-size: 12.5px;
    line-height: 1.5;
}

.upsell-free {
    margin: 12px 2px 0;
    color: var(--ink-3);
    font-size: 13px;
    line-height: 1.5;
}

.upsell-vip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 14px 0 0;
    padding: 14px 2px 0;
    border-top: 1px solid var(--line-soft);
}

.upsell-vip p {
    margin: 0;
    color: var(--ink-2);
    font-size: 13.5px;
    line-height: 1.45;
}

.upsell-vip strong {
    display: block;
    color: var(--ink);
    font-size: 15px;
    font-weight: 600;
}

.upsell-vip .button {
    flex: none;
}

.upsell .tier-terms {
    margin: 10px 0 0;
    text-align: left;
}

/* "Tienon'da donate yok": form gönderilince seçimin üstünde sunucunun sözü (kalkanla), "Başlamadan önce"de tek satır,
   öne almada kısa satır, ödemeden sonra teşekkür */
.pledge {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    max-width: 30em;
    margin: 22px auto 0;
    padding: 14px 16px;
    border-radius: 16px;
    background: var(--fill);
    box-shadow: inset 0 0 0 1px var(--line-soft);
    text-align: left;
}

.pledge-icon {
    flex: none;
    display: inline-grid;
    width: 22px;
    height: 22px;
    color: #ffb08a;
}

.pledge-icon svg {
    width: 22px;
    height: 22px;
}

.pledge strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
}

.pledge p {
    margin: 4px 0 0;
    color: var(--ink-2);
    font-size: 14px;
    line-height: 1.5;
}

.status > p.pledge-line {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-top: 18px;
    color: var(--ink);
    font-size: 15px;
    text-align: left;
}

.upsell-pledge {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 14px 0 0;
    color: var(--ink-2);
    font-size: 13px;
    line-height: 1.45;
}

.upsell-pledge .pledge-icon,
.upsell-pledge .pledge-icon svg {
    width: 16px;
    height: 16px;
}

.status > p.thanks {
    color: #ffc3a0;
    font-size: 15px;
}

/* Ödeme düğmelerinin yanında FiveM (Cfx.re) girişi kısa yolu (paid.js → loginHint) */
.pay-login,
.status > p.pay-login {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    max-width: 36em;
    margin: 14px auto 0;
    color: var(--ink-3);
    font-size: 12.5px;
    line-height: 1.5;
    text-align: left;
}

.raise .pay-login {
    margin: 8px 0 0;
}

.pay-login a,
.pay-stuck a {
    color: var(--accent);
    font-weight: 600;
}

.pay-login-icon,
.pay-login-icon svg {
    flex: none;
    width: 15px;
    height: 15px;
    color: #ffb08a;
}

.pay-login-icon {
    margin-top: 2px;
}

/* Ödemeye başlayıp ödemeden dönene yardım (paid.js → stuckHelp): FiveM girişi, kart, destek */
.pay-stuck {
    max-width: 36em;
    margin: 16px auto 0;
    padding: 12px 14px 13px;
    border-radius: 12px;
    background: rgba(255, 181, 71, 0.09);
    box-shadow: inset 0 0 0 1px rgba(255, 181, 71, 0.26);
    text-align: left;
}

.pay-stuck-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #ffd08a;
    font-size: 15px;
    font-weight: 600;
}

.pay-stuck-icon,
.pay-stuck-icon svg {
    flex: none;
    width: 17px;
    height: 17px;
}

.pay-stuck ul {
    margin: 8px 0 0;
    padding: 0 0 0 18px;
    color: var(--ink-2);
    font-size: 13.5px;
    line-height: 1.5;
}

.pay-stuck li + li {
    margin-top: 6px;
}

.pay-stuck strong {
    color: var(--ink);
    font-weight: 600;
}

@media (max-width: 560px) {
    .tiers {
        grid-template-columns: 1fr;
    }

    .upsell-vip {
        flex-direction: column;
        align-items: flex-start;
    }
}
