:root {
    --bg0: #070A12;
    --bg1: #0A1020;
    --card: rgba(18, 26, 46, .72);
    --panel: rgba(255, 255, 255, .03);
    --text: #EAF0FF;
    --muted: #9AA7C7;
    --muted2: #7E8AA9;
    --border: rgba(255, 255, 255, .10);
    --accent: #FF7A18;
    --accent2: #FFB072;
    --ok: #22C55E;
    --danger: #EF4444;
    --info: #60A5FA;
    --warn: #FBBF24;
    --r: 20px;
    --r2: 18px;
    --shadow: 0 24px 60px rgba(0, 0, 0, .22);
    --shadow2: 0 12px 30px rgba(0, 0, 0, .18);
    --glow: 0 12px 30px rgba(255, 122, 24, .18);
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    min-height: 100vh; /* ← FIX: tüm sayfayı kapla */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 14px;
    color: var(--text);
    background: radial-gradient(900px 420px at 10% 10%, rgba(255, 122, 24, .08), transparent 55%),
                radial-gradient(760px 420px at 92% 10%, rgba(59, 130, 246, .10), transparent 55%),
                radial-gradient(720px 420px at 60% 115%, rgba(34, 197, 94, .08), transparent 55%),
                linear-gradient(180deg, var(--bg0), var(--bg1));
    background-attachment: fixed; /* ← FIX: scroll ederken sabit kalması için */
    -webkit-font-smoothing: antialiased;
}

/* Topbar */
.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(12px);
    background: rgba(8, 12, 22, .55);
    border-bottom: 1px solid var(--border);
}

.topbarInner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 950;
    letter-spacing: .2px;
}

.logoDot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--accent), var(--accent2));
    box-shadow: 0 14px 30px rgba(255, 122, 24, .20);
}

.tag {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .03);
    color: var(--muted2);
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 12px;
    white-space: nowrap;
}

.topActions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* Shell (sidebar + main) */
.shell {
    max-width: 1120px;
    width: 100%;
    margin: 18px auto 48px;
    padding: 0 18px;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 14px;
    align-items: start;
}

@media (max-width: 980px) {
    .shell {
        grid-template-columns: 1fr;
    }
}

.sidebar {
    position: sticky;
    top: 68px;
    align-self: start;
}

@media (max-width: 980px) {
    .sidebar {
        position: relative;
        top: auto;
    }
}

.nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 12px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .02);
    color: var(--muted);
    transition: .18s ease;
    font-weight: 800;
    font-size: 13px;
    text-decoration: none;
}

.nav a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, .03);
    border-color: rgba(255, 255, 255, .14);
    transform: translateY(-1px);
}

.nav a.active {
    color: var(--text);
    border-color: rgba(255, 122, 24, .55);
    background: rgba(255, 122, 24, .12);
    box-shadow: 0 12px 30px rgba(255, 122, 24, .10);
}

.navBadge {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .10);
    background: rgba(0, 0, 0, .22);
    color: var(--muted2);
    font-weight: 900;
}

/* Card */
.card {
    border-radius: var(--r);
    border: 1px solid rgba(255, 255, 255, .10);
    background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
}

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(900px 220px at 50% -10%, rgba(255, 255, 255, .08), transparent 55%);
    opacity: .65;
}

.cardHead {
    position: relative;
    padding: 14px 16px 12px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(255, 255, 255, .05), transparent);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.cardTitle {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

h1, h2, h3 {
    margin: 0;
}

h2 {
    font-size: 15px;
    font-weight: 950;
    letter-spacing: .2px;
}

.sub {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.cardBody {
    position: relative;
    padding: 16px;
}

.panel {
    border-radius: var(--r2);
    border: 1px solid rgba(255, 255, 255, .09);
    background: rgba(255, 255, 255, .03);
    box-shadow: var(--shadow2);
    padding: 14px;
    backdrop-filter: blur(10px);
}

/* Buttons */
button, .btnPrimary, .btnGhost, .btnDanger {
    border: 0;
    border-radius: 16px;
    padding: 12px 14px;
    cursor: pointer;
    font-weight: 950;
    letter-spacing: .2px;
    transition: transform .12s ease, filter .18s ease;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
}

.btnMini {
    padding: 9px 11px;
    font-size: 13px;
    border-radius: 14px;
}

.btnPrimary {
    background: linear-gradient(180deg, rgba(255, 122, 24, 1), rgba(255, 176, 114, 1));
    color: #09101F;
    box-shadow: 0 18px 40px rgba(255, 122, 24, .18);
}

.btnPrimary:hover {
    filter: brightness(1.03);
    transform: translateY(-1px);
}

.btnGhost {
    background: rgba(255, 255, 255, .05);
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, .10);
}

.btnGhost:hover {
    background: rgba(255, 255, 255, .08);
    transform: translateY(-1px);
}

.btnDanger {
    background: linear-gradient(180deg, rgba(239, 68, 68, 1), rgba(220, 38, 38, 1));
    color: #fff;
    box-shadow: 0 10px 30px rgba(239, 68, 68, .18);
}

.btnDanger:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

/* Pills */
.pill {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .10);
    background: rgba(255, 255, 255, .02);
    color: var(--muted2);
    font-size: 12px;
}

.pill.ok {
    border-color: rgba(34, 197, 94, .40);
    background: rgba(34, 197, 94, .09);
    color: var(--ok);
}

.pill.bad {
    border-color: rgba(239, 68, 68, .40);
    background: rgba(239, 68, 68, .09);
    color: var(--danger);
}

.pill.info {
    border-color: rgba(96, 165, 250, .40);
    background: rgba(96, 165, 250, .09);
    color: var(--info);
}

.pill.warn {
    border-color: rgba(251, 191, 36, .40);
    background: rgba(251, 191, 36, .09);
    color: var(--warn);
}

.pillDot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: currentColor;
}

/* Table */
.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, .10);
    background: rgba(0, 0, 0, .18);
}

.table th, .table td {
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    font-size: 13px;
    text-align: left;
}

.table th {
    font-weight: 900;
    color: var(--muted2);
    background: rgba(255, 255, 255, .03);
}

.table tr:last-child td {
    border-bottom: 0;
}

/* Utilities */
.row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.rowStart {
    justify-content: flex-start;
}

.spacer {
    height: 10px;
}

.mono {
    font-family: 'Courier New', monospace;
}

.grid2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 860px) {
    .grid2 {
        grid-template-columns: 1fr;
    }
}

.summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

@media (max-width: 860px) {
    .summary {
        grid-template-columns: 1fr;
    }
}

.kv {
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, .10);
    background: rgba(255, 255, 255, .02);
    padding: 12px;
}

.kv .k {
    color: var(--muted2);
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 4px;
}

.kv .v {
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
    word-break: break-word;
}

.footHint {
    margin-top: 10px;
    color: var(--muted2);
    font-size: 12px;
}

label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 900;
    color: var(--muted2);
}

input, select, textarea {
    width: 100%;
    padding: 11px 12px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(12, 18, 35, .52);
    color: var(--text);
    font-size: 13px;
    margin-bottom: 10px;
    transition: border-color .18s ease, box-shadow .18s ease;
    box-sizing: border-box;
}

input:focus, select:focus {
    border-color: rgba(255, 122, 24, .55);
    box-shadow: var(--glow);
    outline: none;
}