/* =========================================================
   ŞAFAK SAYAR — DESIGN TOKENS
   Gece (gece nöbeti) -> Şafak (terhis) renk geçişi temel fikir.
   Display: Oswald (condensed, stencil hissi)
   Body: IBM Plex Sans
   Data/mono: JetBrains Mono (künye/dog-tag damgası hissi)
========================================================= */
:root {
    --night: #0a1019;
    --panel: #121b2c;
    --panel-2: #16223a;
    --line: rgba(255, 255, 255, 0.09);
    --olive: #5b6b4f;
    --olive-light: #8a9c72;
    --gold: #c9a227;
    --dawn: #ff7a45;
    --dawn-soft: rgba(255, 122, 69, 0.18);
    --mist: #ece7da;
    --mist-dim: #b9c2c9;
    --ink: #1c1d18;
    --danger: #e2574c;
    --success: #4fae7d;
    --warning: #d8a23b;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'IBM Plex Sans', sans-serif;
    background: var(--night);
    color: var(--mist);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; }

::selection { background: var(--dawn); color: #1c1d18; }

::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.18); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.3); }

:focus-visible {
    outline: 2px solid var(--dawn);
    outline-offset: 2px;
}

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

/* ---------- Arka plan: yıldız tarlası + şafak parıltısı ---------- */
.dawn-field {
    position: fixed; inset: 0; z-index: -1; overflow: hidden;
    background: radial-gradient(ellipse at 50% -10%, #1b2a4a 0%, var(--night) 55%);
}
.stars {
    position: absolute; inset: 0;
    background-image:
        radial-gradient(1.5px 1.5px at 10% 20%, #fff, transparent),
        radial-gradient(1.5px 1.5px at 80% 10%, #fff, transparent),
        radial-gradient(1px 1px at 30% 60%, #fff, transparent),
        radial-gradient(1.5px 1.5px at 60% 35%, #fff, transparent),
        radial-gradient(1px 1px at 90% 70%, #fff, transparent),
        radial-gradient(1.5px 1.5px at 45% 80%, #fff, transparent),
        radial-gradient(1px 1px at 15% 90%, #fff, transparent),
        radial-gradient(1.5px 1.5px at 70% 55%, #fff, transparent);
    background-repeat: repeat;
    background-size: 600px 600px;
    opacity: 0.5;
    animation: twinkle 6s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: 0.3; } to { opacity: 0.65; } }
.dawn-field-glow {
    position: absolute; left: 50%; bottom: -20%; width: 1200px; height: 600px;
    transform: translateX(-50%);
    background: radial-gradient(circle, var(--dawn-soft) 0%, transparent 70%);
}

.app-shell { position: relative; z-index: 10; max-width: 1180px; }

/* ---------- Bildirim kutuları (PHP'den gelen .alert sınıfları) ---------- */
.alert { border: none; border-radius: 10px; padding: 14px 18px; font-family: 'IBM Plex Sans', sans-serif; border-left: 4px solid; }
.alert-danger { background: rgba(226, 87, 76, 0.14); color: #ffb4ad; border-color: var(--danger); }
.alert-success { background: rgba(79, 174, 125, 0.14); color: #a6e6c5; border-color: var(--success); }
.alert-warning { background: rgba(216, 162, 59, 0.14); color: #f0cd8c; border-color: var(--warning); }

/* ---------- Üst bar ---------- */
.topbar {
    display: flex; justify-content: space-between; align-items: flex-end;
    margin-bottom: 22px; flex-wrap: wrap; gap: 12px;
}
.eyebrow {
    display: inline-block; font-family: 'JetBrains Mono', monospace; font-size: 0.72rem;
    letter-spacing: 2px; text-transform: uppercase; color: var(--olive-light); margin-bottom: 6px;
}
.hero-name {
    font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 2rem; margin: 0;
    letter-spacing: 0.5px; color: var(--mist); text-transform: uppercase;
}
.btn-discharge {
    font-family: 'Oswald', sans-serif; letter-spacing: 1px; text-transform: uppercase;
    color: var(--mist); background: transparent; border: 1px solid var(--line);
    padding: 10px 18px; border-radius: 999px; font-size: 0.85rem; transition: all 0.2s ease;
}
.btn-discharge:hover { border-color: var(--dawn); color: var(--dawn); }

/* ---------- İMZA ÖĞESİ: Ufuk / Şafak şeridi ---------- */
.dawn-strip {
    position: relative; border-radius: 18px; overflow: hidden; height: 220px;
    margin-bottom: 24px; border: 1px solid var(--line);
    box-shadow: 0 20px 50px rgba(0,0,0,0.45);
}
.horizon-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.sun-disc {
    cy: calc(230px - (var(--progress) * 1.7px));
    transition: cy 1.4s cubic-bezier(.2,.8,.2,1);
    filter: drop-shadow(0 0 18px rgba(255, 167, 90, 0.65));
}
.ridge { opacity: 0.92; }
.dawn-readout {
    position: absolute; left: 28px; bottom: 20px; display: flex; flex-direction: column;
    text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}
.dawn-number {
    font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: clamp(2.6rem, 7vw, 4.2rem);
    line-height: 1; color: #fff;
}
.dawn-label {
    font-family: 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: 3px;
    font-size: 0.85rem; color: var(--mist-dim); margin-top: 2px;
}
.dawn-sub {
    font-family: 'IBM Plex Sans', sans-serif; font-size: 0.85rem; color: #ffd9c0; margin-top: 6px;
}

/* ---------- Künye (dog-tag) kartları ---------- */
.tag-row { display: flex; gap: 12px; margin-bottom: 26px; flex-wrap: wrap; }
.dogtag {
    flex: 1; min-width: 150px; position: relative;
    background: linear-gradient(160deg, #2b3142, #181f2e);
    border: 1px solid var(--line); border-radius: 12px;
    padding: 16px 18px 14px; display: flex; flex-direction: column; gap: 6px;
}
.dogtag::before {
    content: ""; position: absolute; top: -7px; left: 18px; width: 14px; height: 14px;
    border-radius: 50%; background: var(--night); border: 1px solid var(--line);
}
.dogtag-label {
    font-family: 'JetBrains Mono', monospace; font-size: 0.68rem; letter-spacing: 1.5px;
    text-transform: uppercase; color: var(--gold);
}
.dogtag-value {
    font-family: 'Oswald', sans-serif; font-size: 1.3rem; font-weight: 600; color: var(--mist);
}
.dogtag-value.small { font-size: 1rem; font-family: 'IBM Plex Sans', sans-serif; font-weight: 600; }

@media (max-width: 768px) {
    .dogtag { flex: 0 0 calc(50% - 6px); }
}

/* ---------- Paneller ---------- */
.panel {
    background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
    padding: 26px; box-shadow: 0 18px 40px rgba(0,0,0,0.35);
}
.panel-title {
    font-family: 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: 1px;
    font-size: 1.05rem; font-weight: 600; color: var(--olive-light); margin: 0 0 20px;
    display: flex; align-items: center; gap: 10px;
}
.panel-title i { color: var(--dawn); }

/* ---------- Form öğeleri ---------- */
.field { margin-bottom: 14px; flex: 1; }
.field-pair, .field-trio { display: flex; gap: 12px; }
.field-label {
    display: block; font-family: 'JetBrains Mono', monospace; font-size: 0.7rem;
    letter-spacing: 1px; text-transform: uppercase; color: var(--mist-dim); margin-bottom: 6px;
}
.locked { font-family: 'IBM Plex Sans', sans-serif; text-transform: none; letter-spacing: 0; color: var(--olive-light); font-size: 0.72rem; }
.field-input {
    width: 100%; background: var(--panel-2); color: var(--mist);
    border: 1px solid var(--line); border-radius: 8px; padding: 10px 13px;
    font-family: 'IBM Plex Sans', sans-serif; font-weight: 500; font-size: 0.92rem;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.field-input:focus { outline: none; border-color: var(--dawn); background: #1a2640; }
.field-input.is-locked { opacity: 0.55; cursor: not-allowed; }
.field-input option { background: var(--panel-2); color: var(--mist); }

.izin-notu { font-size: 0.8rem; color: var(--gold); min-height: 1.1em; margin: -4px 0 12px; }

.btn-stamp {
    font-family: 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: 1.5px;
    font-size: 0.95rem; font-weight: 600; color: #102015;
    background: linear-gradient(135deg, var(--olive-light), var(--olive));
    border: none; border-radius: 10px; padding: 13px; cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-stamp:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(139, 156, 114, 0.35); }
.btn-stamp-lg { padding: 16px; font-size: 1.05rem; }

.btn-ghost-danger {
    background: transparent; border: 1px solid rgba(226, 87, 76, 0.5); color: #ffb4ad;
    border-radius: 10px; padding: 11px; font-family: 'Oswald', sans-serif; letter-spacing: 1px;
    text-transform: uppercase; font-size: 0.85rem; cursor: pointer; transition: all 0.2s ease;
}
.btn-ghost-danger:hover { background: rgba(226, 87, 76, 0.12); border-color: var(--danger); }

/* ---------- Sohbet: "Birlik Hattı" telsiz log hissi ---------- */
.radio-header {
    display: flex; align-items: center; gap: 10px; padding: 18px 22px;
    background: var(--panel-2); border-bottom: 1px solid var(--line);
}
.radio-dot {
    width: 9px; height: 9px; border-radius: 50%; background: var(--success);
    box-shadow: 0 0 8px var(--success); animation: pulse 1.8s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }
.radio-meta {
    margin-left: auto; font-family: 'JetBrains Mono', monospace; font-size: 0.7rem;
    color: var(--mist-dim); text-transform: uppercase; letter-spacing: 1px;
}

.chat-feed { height: 380px; overflow-y: auto; padding: 22px; display: flex; flex-direction: column; }
.chat-empty { color: var(--mist-dim); font-size: 0.85rem; text-align: center; margin-top: 40%; }

.chat-msg {
    max-width: 78%; padding: 10px 14px; border-radius: 14px; margin-bottom: 12px;
    font-size: 0.92rem; line-height: 1.4; position: relative;
}
.chat-msg.me {
    align-self: flex-end; background: linear-gradient(135deg, #d97a4a, var(--dawn));
    color: #261203; border-bottom-right-radius: 3px;
}
.chat-msg.other {
    align-self: flex-start; background: var(--panel-2); border: 1px solid var(--line);
    color: var(--mist); border-bottom-left-radius: 3px;
}
.chat-name {
    display: block; font-family: 'JetBrains Mono', monospace; font-size: 0.7rem;
    color: var(--gold); margin-bottom: 3px; letter-spacing: 0.5px;
}
.chat-time {
    display: block; font-family: 'JetBrains Mono', monospace; font-size: 0.65rem;
    opacity: 0.65; margin-top: 4px; text-align: right;
}

.chat-input-row { padding: 16px 18px; background: var(--panel-2); border-top: 1px solid var(--line); }
.chat-input {
    flex: 1; background: rgba(255,255,255,0.95); border: none; border-radius: 999px;
    padding: 11px 18px; font-family: 'IBM Plex Sans', sans-serif; color: var(--ink); font-size: 0.9rem;
}
.chat-input:focus { outline: 2px solid var(--dawn); }
.chat-send {
    width: 44px; height: 44px; border-radius: 50%; border: none; flex-shrink: 0;
    background: linear-gradient(135deg, var(--olive-light), var(--olive)); color: #102015;
    display: flex; align-items: center; justify-content: center; cursor: pointer; transition: transform 0.15s ease;
}
.chat-send:hover { transform: scale(1.06); }

/* ---------- Giriş / Kayıt ekranı ---------- */
.landing { max-width: 760px; margin: 40px auto 0; }
.landing-hero { text-align: center; margin-bottom: 28px; }
.brand-mark {
    font-family: 'Oswald', sans-serif; font-weight: 700; font-size: clamp(2.4rem, 8vw, 3.6rem);
    letter-spacing: 2px; margin: 6px 0 14px; color: var(--mist);
}
.brand-mark span { color: var(--dawn); }
.brand-tag { color: var(--mist-dim); font-size: 1rem; max-width: 520px; margin: 0 auto; line-height: 1.6; }
.landing-panel { margin-top: 8px; }

@media (max-width: 600px) {
    .field-pair, .field-trio { flex-direction: column; gap: 0; }
    .topbar { align-items: flex-start; }
}


/* =========================================================
   GELİŞMİŞ FORM PANELLERİ — Şehir / Takvim / Gün seçimleri
========================================================= */
.field-input,
.date-fancy-input,
.number-fancy-input {
    min-height: 46px;
}

select.field-input.native-select-hidden {
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 1px !important;
    height: 1px !important;
}

.military-select {
    position: relative;
    width: 100%;
    font-family: 'IBM Plex Sans', sans-serif;
}

.military-select-toggle {
    width: 100%;
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.055), rgba(255,255,255,0.015)),
        var(--panel-2);
    color: var(--mist);
    padding: 11px 13px;
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease, transform .15s ease, background .2s ease;
}

.military-select-toggle:hover {
    border-color: rgba(255, 122, 69, 0.45);
    background:
        linear-gradient(135deg, rgba(255, 122, 69, 0.10), rgba(255,255,255,0.02)),
        var(--panel-2);
}

.military-select.is-open .military-select-toggle,
.military-select-toggle:focus-visible {
    outline: none;
    border-color: var(--dawn);
    box-shadow: 0 0 0 4px rgba(255, 122, 69, 0.12);
}

.military-select-value {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
}

.military-select-arrow {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--dawn);
    background: rgba(255, 122, 69, 0.10);
    transition: transform .2s ease;
}

.military-select.is-open .military-select-arrow { transform: rotate(180deg); }

.military-select-panel {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    z-index: 50;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(255, 122, 69, 0.08), rgba(255,255,255,0.02)),
        #111a2b;
    box-shadow: 0 24px 55px rgba(0,0,0,0.52);
    opacity: 0;
    transform: translateY(-6px) scale(.98);
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
}

.military-select.is-open .military-select-panel {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.military-select-search {
    width: 100%;
    margin-bottom: 8px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255,255,255,0.92);
    color: var(--ink);
    padding: 10px 12px;
    font-size: .88rem;
    font-weight: 600;
}

.military-select-search:focus {
    outline: 2px solid rgba(255, 122, 69, 0.55);
}

.military-select-options {
    max-height: 238px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-right: 3px;
}

.military-option {
    width: 100%;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: var(--mist);
    padding: 10px 11px;
    text-align: left;
    cursor: pointer;
    font-size: .9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.military-option:hover,
.military-option.is-active {
    background: rgba(255, 122, 69, 0.14);
    color: #fff0e8;
}

.military-option.is-selected {
    background: linear-gradient(135deg, rgba(138,156,114,.28), rgba(255,122,69,.12));
    color: #fff;
}

.military-option.is-selected::after {
    content: "✓";
    font-family: 'JetBrains Mono', monospace;
    color: var(--gold);
}

.fancy-field-wrap {
    position: relative;
}

.fancy-field-wrap::after {
    position: absolute;
    right: 13px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--dawn);
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    opacity: .9;
}

.fancy-date-wrap::after { content: "\f073"; }
.fancy-number-wrap::after { content: "\2b"; }

.date-fancy-input,
.number-fancy-input {
    border-radius: 12px;
    padding-right: 42px;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.055), rgba(255,255,255,0.015)),
        var(--panel-2);
}

.date-fancy-input::-webkit-calendar-picker-indicator {
    opacity: 0;
    cursor: pointer;
}

.number-fancy-input::-webkit-outer-spin-button,
.number-fancy-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.number-fancy-input { appearance: textfield; }

.fancy-number-controls {
    display: grid;
    grid-template-columns: 42px 1fr 42px;
    gap: 8px;
    align-items: center;
}

.fancy-number-controls .number-fancy-input {
    text-align: center;
    padding-right: 13px;
}

.number-step-btn {
    width: 42px;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255,255,255,0.06);
    color: var(--mist);
    cursor: pointer;
    font-weight: 800;
    transition: border-color .2s ease, transform .15s ease, background .2s ease;
}

.number-step-btn:hover {
    border-color: var(--dawn);
    background: rgba(255, 122, 69, 0.12);
    transform: translateY(-1px);
}

@media (max-width: 600px) {
    .military-select-panel {
        position: fixed;
        left: 14px;
        right: 14px;
        top: auto;
        bottom: 18px;
        max-height: 72vh;
        border-radius: 20px;
    }

    .military-select-panel::before {
        content: "";
        display: block;
        width: 44px;
        height: 4px;
        border-radius: 999px;
        background: rgba(255,255,255,0.22);
        margin: 0 auto 10px;
    }

    .military-select-options { max-height: 52vh; }
}

/* =========================================================
   ÖZEL TAKVİM PANELİ
========================================================= */

.native-date-hidden {
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 1px !important;
    height: 1px !important;
}

.custom-date {
    position: relative;
    width: 100%;
}

.custom-date-toggle {
    width: 100%;
    height: 50px;
    background: #1b2c50;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 12px;
    color: var(--mist);
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 700;
    font-size: 0.96rem;
    cursor: pointer;
    transition: 0.2s ease;
}

.custom-date-toggle:hover,
.custom-date.is-open .custom-date-toggle {
    border-color: var(--dawn);
    box-shadow: 0 0 0 3px rgba(255, 122, 69, 0.15);
}

.custom-date-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(255, 122, 69, 0.14);
    color: var(--dawn);
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-date-panel {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 330px;
    max-width: calc(100vw - 34px);
    background: #101a2e;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    padding: 14px;
    z-index: 80;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
    display: none;
}

.custom-date.is-open .custom-date-panel {
    display: block;
    animation: customDateOpen 0.16s ease;
}

@keyframes customDateOpen {
    from {
        opacity: 0;
        transform: translateY(-6px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.custom-date-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.custom-date-title {
    border: 0;
    background: rgba(255, 255, 255, 0.06);
    color: var(--mist);
    border-radius: 999px;
    padding: 8px 14px;
    font-family: 'Oswald', sans-serif;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.custom-date-nav {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 12px;
    background: #1b2c50;
    color: var(--mist);
    cursor: pointer;
    transition: 0.2s ease;
}

.custom-date-nav:hover {
    background: rgba(255, 122, 69, 0.18);
    color: var(--dawn);
}

.custom-date-week,
.custom-date-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.custom-date-week {
    margin-bottom: 8px;
}

.custom-date-week span {
    text-align: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    color: var(--gold);
}

.custom-date-day {
    height: 36px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--mist);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
    cursor: pointer;
    transition: 0.16s ease;
}

.custom-date-day:hover {
    background: rgba(255, 122, 69, 0.16);
    color: var(--dawn);
}

.custom-date-day.is-muted {
    color: rgba(236, 231, 218, 0.35);
}

.custom-date-day.is-today {
    border: 1px solid rgba(201, 162, 39, 0.7);
    color: var(--gold);
}

.custom-date-day.is-selected {
    background: linear-gradient(135deg, var(--dawn), #ff9b62);
    color: #1b1209;
    font-weight: 800;
}

.custom-date-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.custom-date-footer-btn {
    border: 0;
    background: transparent;
    color: var(--dawn);
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
}

/* =========================================================
   İZİN / CEZA / ERKEN TERHİS HİZALAMA
========================================================= */

.field-trio {
    align-items: flex-end;
}

.field-trio .field {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.field-trio .military-select-toggle,
.field-trio .fancy-number-controls {
    height: 54px;
}

.field-trio .military-select-toggle {
    font-size: 1rem;
    border-radius: 12px;
}

.fancy-number-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.number-step-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #1b2c50;
    color: var(--mist);
    font-weight: 800;
    font-size: 1rem;
}

.number-fancy-input {
    height: 44px;
    text-align: center;
    font-size: 1rem;
    font-weight: 800;
}

/* Mobilde bozma */
@media (max-width: 600px) {
    .custom-date-panel {
        width: 100%;
        left: 0;
    }

    .field-trio {
        align-items: stretch;
    }

    .field-trio .military-select-toggle,
    .field-trio .fancy-number-controls {
        height: auto;
    }

    .number-step-btn,
    .number-fancy-input {
        height: 44px;
    }
}

/* =========================================================
   MASAÜSTÜ: İZİN / CEZA / ERKEN T. SIĞDIRMA DÜZELTMESİ
========================================================= */

@media (min-width: 992px) {

    .field-trio {
        display: grid !important;
        grid-template-columns: 1.25fr 0.82fr 0.82fr !important;
        gap: 10px !important;
        align-items: end !important;
    }

    .field-trio .field {
        min-width: 0 !important;
        margin-bottom: 12px !important;
    }

    .field-trio .field-label {
        white-space: nowrap !important;
        font-size: 0.64rem !important;
        letter-spacing: 0.8px !important;
    }

    /* İzin select kutusu */
    .field-trio .military-select-toggle {
        height: 46px !important;
        min-height: 46px !important;
        padding: 0 8px 0 12px !important;
        font-size: 0.86rem !important;
        border-radius: 11px !important;
    }

    .field-trio .military-select-value {
        overflow: hidden !important;
        white-space: nowrap !important;
        text-overflow: ellipsis !important;
    }

    .field-trio .military-select-arrow {
        width: 30px !important;
        height: 30px !important;
        min-width: 30px !important;
        flex: 0 0 30px !important;
    }

    /* Ceza ve Erken Terhis sayı alanları */
    .field-trio .fancy-number-controls {
        width: 100% !important;
        height: 46px !important;
        display: grid !important;
        grid-template-columns: 28px minmax(34px, 1fr) 28px !important;
        gap: 4px !important;
        align-items: center !important;
    }

    .field-trio .number-step-btn {
        width: 28px !important;
        height: 46px !important;
        min-width: 28px !important;
        padding: 0 !important;
        border-radius: 10px !important;
        font-size: 0.9rem !important;
        line-height: 1 !important;
    }

    .field-trio .number-fancy-input {
        width: 100% !important;
        min-width: 0 !important;
        height: 46px !important;
        padding: 0 4px !important;
        text-align: center !important;
        font-size: 0.9rem !important;
        font-weight: 800 !important;
        border-radius: 10px !important;
    }
}

/* Daha dar masaüstü / laptop ekranlarda ekstra sıkıştır */
@media (min-width: 992px) and (max-width: 1240px) {

    .field-trio {
        grid-template-columns: 1.22fr 0.78fr 0.78fr !important;
        gap: 8px !important;
    }

    .field-trio .field-label {
        font-size: 0.6rem !important;
        letter-spacing: 0.7px !important;
    }

    .field-trio .military-select-toggle {
        font-size: 0.82rem !important;
        padding-left: 10px !important;
    }

    .field-trio .military-select-arrow {
        width: 28px !important;
        height: 28px !important;
        min-width: 28px !important;
    }

    .field-trio .fancy-number-controls {
        grid-template-columns: 26px minmax(30px, 1fr) 26px !important;
        gap: 3px !important;
    }

    .field-trio .number-step-btn {
        width: 26px !important;
        min-width: 26px !important;
        font-size: 0.85rem !important;
    }

    .field-trio .number-fancy-input {
        font-size: 0.86rem !important;
        padding: 0 2px !important;
    }
}

/* Mobilde eski düzen kalsın, bozulmasın */
@media (max-width: 991px) {

    .field-trio {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
        align-items: stretch !important;
    }

    .field-trio .fancy-number-controls {
        display: flex !important;
        gap: 8px !important;
    }

    .field-trio .number-step-btn {
        width: 44px !important;
        min-width: 44px !important;
    }
}

/* Sohbet yazma alanı kutunun ortasına insin */
.chat-input-row {
    min-height: 76px;
    display: flex;
    align-items: center;
}

.chat-input-row form {
    align-items: center;
}

.chat-input {
    height: 44px;
}

.chat-send {
    width: 44px;
    height: 44px;
}

/* Sohbet kutusunun yüksekliği dengeli kalsın */
.chat-feed {
    flex: 1;
    min-height: 380px;
}


/* KVKK / Aydınlatma onay kutuları */
.legal-consent-box {
    margin: 4px 0 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.legal-consent-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: rgba(255,255,255,0.035);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 13px;
    color: var(--mist-dim);
    font-size: 0.86rem;
    line-height: 1.45;
}

.legal-consent-item input {
    appearance: none;
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin-top: 2px;
    border-radius: 5px;
    border: 1px solid rgba(255,255,255,0.25);
    background: var(--panel-2);
    cursor: pointer;
    position: relative;
}

.legal-consent-item input:checked {
    background: var(--dawn);
    border-color: var(--dawn);
}

.legal-consent-item input:checked::after {
    content: "✓";
    position: absolute;
    left: 3px;
    top: -3px;
    font-size: 16px;
    color: #1b1209;
    font-weight: 900;
}

.legal-consent-item a {
    color: var(--gold);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}
