* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #e0e8f0;
    background-color: #0a1628;
    background-image:
        linear-gradient(rgba(74,144,217,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(74,144,217,0.06) 1px, transparent 1px),
        linear-gradient(rgba(74,144,217,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(74,144,217,0.03) 1px, transparent 1px),
        radial-gradient(ellipse at 50% 0%, rgba(74,144,217,0.08) 0%, transparent 60%);
    background-size: 80px 80px, 80px 80px, 20px 20px, 20px 20px, 100% 100%;
    background-attachment: fixed;
    min-height: 100vh;
}

/* ── HEADER ── */
header {
    background: rgba(10,22,40,0.95);
    border-bottom: 1px solid rgba(74,144,217,0.2);
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
}
header .inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 14px;
}
header img { height: 38px; }
header .brand { font-size: 1.1rem; font-weight: 700; color: #4a90d9; }
header .brand span { color: #e0e8f0; font-weight: 400; }
header .back-btn {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 7px;
    color: #4a90d9;
    font-size: 0.9rem;
    text-decoration: none;
    border: 1px solid rgba(74,144,217,0.4);
    padding: 6px 14px;
    border-radius: 6px;
    transition: background 0.2s;
}
header .back-btn:hover { background: rgba(74,144,217,0.12); }

/* ── MAIN ── */
main {
    max-width: 900px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}

h1 {
    font-size: 1.8rem;
    color: #4a90d9;
    margin-bottom: 6px;
}
.subtitle {
    color: #8aa8c8;
    font-size: 0.95rem;
    margin-bottom: 40px;
}

/* ── SEKME MENÜSÜ ── */
.tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid rgba(74,144,217,0.25);
    margin-bottom: 36px;
}
.tab-btn {
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    padding: 11px 24px;
    color: #8aa8c8;
    font-size: 0.97rem;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s, border-color 0.2s;
}
.tab-btn:hover { color: #c8ddf0; }
.tab-btn.active {
    color: #4a90d9;
    border-bottom-color: #4a90d9;
    font-weight: 600;
}
.tab-btn i { font-size: 1.05rem; }

/* ── PANEL ── */
.panel { display: none; }
.panel.active { display: block; }

/* ── FORM KART ── */
.card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(74,144,217,0.18);
    border-radius: 12px;
    padding: 32px;
}
.card h2 {
    font-size: 1.15rem;
    color: #c8ddf0;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.card h2 i { color: #4a90d9; }

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 28px;
}
@media(max-width:600px){ .form-grid { grid-template-columns: 1fr; } }

.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group.full { grid-column: 1 / -1; }

label {
    font-size: 0.88rem;
    color: #8aa8c8;
    font-weight: 500;
}
input[type="number"], select {
    background: rgba(10,22,40,0.8);
    border: 1px solid rgba(74,144,217,0.3);
    border-radius: 8px;
    padding: 10px 14px;
    color: #e0e8f0;
    font-size: 0.97rem;
    font-family: inherit;
    transition: border-color 0.2s;
    width: 100%;
}
input[type="number"]:focus, select:focus {
    outline: none;
    border-color: #4a90d9;
}
select option { background: #0d1e35; }

.radio-group {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}
.radio-group label {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #c8ddf0;
    cursor: pointer;
    font-size: 0.95rem;
}
.radio-group input[type="radio"] { accent-color: #4a90d9; cursor: pointer; }

/* ── BUTON ── */
.calc-btn {
    margin-top: 28px;
    background: linear-gradient(135deg, #4a90d9, #2563b0);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 13px 36px;
    font-size: 1rem;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    transition: opacity 0.2s, transform 0.15s;
}
.calc-btn:hover { opacity: 0.9; transform: translateY(-1px); }
.calc-btn:active { transform: translateY(0); }

.reset-btn {
    margin-top: 28px;
    margin-left: 12px;
    background: transparent;
    color: #8aa8c8;
    border: 1px solid rgba(74,144,217,0.3);
    border-radius: 8px;
    padding: 13px 22px;
    font-size: 0.95rem;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s;
}
.reset-btn:hover { background: rgba(74,144,217,0.08); }

/* ── SONUÇ KUTUSU ── */
.result-box {
    margin-top: 28px;
    background: rgba(74,144,217,0.07);
    border: 1px solid rgba(74,144,217,0.3);
    border-radius: 10px;
    padding: 22px 26px;
    display: none;
}
.result-box.show { display: block; }
.result-box .result-title {
    font-size: 0.85rem;
    color: #8aa8c8;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 14px;
}
.result-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 7px 0;
    border-bottom: 1px solid rgba(74,144,217,0.12);
    gap: 12px;
}
.result-row:last-child { border-bottom: none; }
.result-label { font-size: 0.93rem; color: #a0bccc; }
.result-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: #4a90d9;
    font-variant-numeric: tabular-nums;
}
.result-value.warn { color: #f59e42; }
.result-value.ok { color: #4ade80; }
.result-value.fail { color: #f87171; }

.info-note {
    margin-top: 10px;
    font-size: 0.84rem;
    color: #6a88a8;
    line-height: 1.5;
}

/* ── KATEGORİ BUTONLARI ── */
.cat-btn {
    background: rgba(74,144,217,0.08);
    border: 1px solid rgba(74,144,217,0.25);
    border-radius: 7px;
    padding: 7px 16px;
    color: #8aa8c8;
    font-size: 0.88rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
}
.cat-btn:hover { background: rgba(74,144,217,0.15); color: #c8ddf0; }
.cat-btn.active {
    background: rgba(74,144,217,0.22);
    border-color: #4a90d9;
    color: #e0e8f0;
    font-weight: 600;
}

/* ── REFERANS TABLO ── */
#kat-tablo th {
    background: rgba(74,144,217,0.12);
    color: #8aa8c8;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 10px 12px;
    text-align: right;
    border-bottom: 2px solid rgba(74,144,217,0.25);
    white-space: nowrap;
}
#kat-tablo th:first-child { text-align: left; }
#kat-tablo th.cap-col { background: rgba(74,144,217,0.2); color: #4a90d9; }

#kat-tablo td {
    padding: 9px 12px;
    text-align: right;
    border-bottom: 1px solid rgba(74,144,217,0.08);
    color: #c8ddf0;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
#kat-tablo td:first-child { text-align: left; font-weight: 600; color: #e0e8f0; }
#kat-tablo td.cap-col { color: #4ade80; font-weight: 700; background: rgba(74,255,144,0.04); }
#kat-tablo tr:hover td { background: rgba(74,144,217,0.06); }
#kat-tablo tr:hover td.cap-col { background: rgba(74,255,144,0.08); }
#kat-tablo .group-header td {
    background: rgba(74,144,217,0.08);
    color: #4a90d9;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-align: left;
    padding: 7px 12px;
    border-bottom: 1px solid rgba(74,144,217,0.15);
}

/* ── PLACEHOLDER PANEL ── */
.placeholder {
    text-align: center;
    padding: 60px 20px;
    color: #6a88a8;
}
.placeholder i { font-size: 3rem; margin-bottom: 16px; opacity: 0.5; }
.placeholder p { font-size: 0.95rem; }
