:root {
    --sidebar-width: 286px;
    --topbar-height: 94px;
    --bg: #f6f8fc;
    --panel: #ffffff;
    --panel-border: #e4e9f2;
    --text: #101828;
    --muted: #667085;
    --muted-2: #8a97ad;
    --navy-950: #06182f;
    --navy-900: #071d38;
    --navy-850: #082343;
    --blue: #2378ff;
    --blue-600: #1e6af2;
    --blue-soft: #e9f1ff;
    --green: #13b87f;
    --green-soft: #dff8ed;
    --red: #ff3030;
    --red-soft: #ffe5e6;
    --orange: #ff9f1c;
    --orange-soft: #fff0d8;
    --shadow-card: 0 8px 26px rgba(16, 24, 40, .045);
    --shadow-soft: 0 12px 32px rgba(6, 24, 47, .08);
    --radius-xl: 16px;
    --radius-lg: 14px;
    --radius-md: 10px;
    --transition: 180ms ease;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

.admin-shell {
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
}

.app-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 40;
    width: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 26px 18px 20px;
    color: #f8fbff;
    background:
        radial-gradient(circle at top left, rgba(32, 113, 255, .22), transparent 34%),
        linear-gradient(180deg, var(--navy-900) 0%, #021426 100%);
    border-right: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 20px 0 48px rgba(3, 14, 30, .14);
}

.brand-block {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 4px 30px;
}

.brand-mark {
    width: 52px;
    height: 58px;
    color: #dfeaff;
    flex: 0 0 auto;
}

.brand-mark svg {
    width: 100%;
    height: 100%;
}

.brand-name {
    font-size: 25px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -.04em;
}

.brand-tagline {
    margin-top: 7px;
    color: #a9b9d4;
    font-size: 14px;
    font-weight: 500;
}

.sidebar-nav {
    display: grid;
    gap: 8px;
}

.nav-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 54px;
    padding: 0 14px;
    border-radius: 10px;
    color: #d5deef;
    font-size: 16px;
    font-weight: 650;
    transition: background var(--transition), color var(--transition), transform var(--transition);
}

.nav-item:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, .06);
}

.nav-item.is-active {
    color: #ffffff;
    background: linear-gradient(135deg, #1f7aff 0%, #1762e8 100%);
    box-shadow: 0 12px 28px rgba(24, 101, 232, .28);
}

.nav-icon {
    width: 25px;
    height: 25px;
    stroke-width: 1.9;
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 20px;
}

.status-block {
    padding: 18px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, .09);
}

.status-title {
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 12px;
}

.status-line {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #e8eef9;
    font-size: 14px;
    line-height: 1.4;
}

.status-good {
    color: #42db92;
    font-weight: 700;
}

.dot {
    width: 11px;
    height: 11px;
    border-radius: 999px;
    display: inline-flex;
    box-shadow: 0 0 0 4px rgba(31, 214, 136, .12);
}

.dot-green {
    background: #23d188;
}

.uptime-text {
    margin: 13px 0 0 20px;
    color: #cbd6e8;
    font-size: 13px;
}

.copyright {
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, .09);
    color: #a7b6ce;
    font-size: 12px;
    line-height: 1.45;
}

.app-main {
    width: calc(100% - var(--sidebar-width));
    min-height: 100vh;
    margin-left: var(--sidebar-width);
}

.app-topbar {
    position: sticky;
    top: 0;
    z-index: 25;
    height: var(--topbar-height);
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 0 24px;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--panel-border);
}

.icon-button {
    position: relative;
    width: 46px;
    height: 46px;
    display: inline-grid;
    place-items: center;
    border: 0;
    border-radius: 13px;
    color: #516076;
    background: transparent;
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
}

.icon-button:hover {
    color: var(--blue);
    background: #f1f5fb;
}

.topbar-icon {
    width: 24px;
    height: 24px;
}

.global-search {
    position: relative;
    width: min(560px, 48vw);
    height: 56px;
    display: flex;
    align-items: center;
    border: 1px solid var(--panel-border);
    border-radius: 13px;
    background: #ffffff;
    box-shadow: 0 2px 16px rgba(16, 24, 40, .03);
}

.search-icon {
    width: 22px;
    height: 22px;
    margin-left: 20px;
    color: #667899;
}

.global-search input {
    width: 100%;
    height: 100%;
    padding: 0 14px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #1e2a3b;
    font-size: 15px;
    font-weight: 550;
}

.global-search input::placeholder {
    color: #6f7e96;
}

.global-search kbd {
    margin-right: 13px;
    min-width: 38px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e6ebf3;
    border-radius: 8px;
    color: #718096;
    background: #f8fafc;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    box-shadow: inset 0 -1px 0 rgba(16, 24, 40, .04);
}

.topbar-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.has-badge .badge-count {
    position: absolute;
    top: 5px;
    right: 3px;
    min-width: 23px;
    height: 23px;
    display: inline-grid;
    place-items: center;
    padding: 0 6px;
    border-radius: 999px;
    color: #ffffff;
    background: #f32935;
    border: 2px solid #ffffff;
    font-size: 12px;
    font-weight: 800;
}

.profile-menu {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-left: 12px;
}

.avatar {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 850;
    background: linear-gradient(135deg, #193150, #7d8da4);
    box-shadow: inset 0 0 0 3px #e6eef8;
}

.profile-text {
    display: grid;
    gap: 3px;
    min-width: 112px;
}

.profile-text strong {
    font-size: 15px;
    line-height: 1.1;
    font-weight: 800;
    color: #141c2b;
}

.profile-text span {
    color: #708197;
    font-size: 13px;
    font-weight: 600;
}

.logout-button {
    width: 28px;
    height: 32px;
    border: 0;
    background: transparent;
    color: #60718a;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
}

.page-content {
    padding: 24px 26px 28px;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.kpi-card,
.panel-card {
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
}

.kpi-card {
    min-height: 138px;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px;
}

.kpi-icon {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 16px;
}

.kpi-blue {
    color: #146cff;
    background: linear-gradient(135deg, #e6efff, #dce8ff);
}

.kpi-green {
    color: var(--green);
    background: linear-gradient(135deg, #d9f6e9, #cbf1df);
}

.kpi-red {
    color: var(--red);
    background: linear-gradient(135deg, #ffe9ea, #ffd7dc);
}

.kpi-svg {
    width: 34px;
    height: 34px;
    stroke-width: 2.15;
}

.kpi-label {
    color: #40506a;
    font-size: 15px;
    font-weight: 750;
}

.kpi-value {
    margin-top: 7px;
    color: #060b16;
    font-size: clamp(26px, 2.1vw, 30px);
    line-height: 1;
    letter-spacing: -.035em;
    font-weight: 850;
}

.kpi-trend {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-top: 13px;
    font-size: 13px;
    font-weight: 800;
}

.kpi-trend small {
    color: #607086;
    font-weight: 650;
}

.trend-success span {
    color: var(--green);
}

.trend-danger span {
    color: var(--red);
}

.charts-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 18px;
    margin-top: 20px;
}

.panel-card {
    overflow: hidden;
}

.chart-card {
    min-height: 310px;
    padding: 20px 22px 18px;
}

.card-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.card-header-row h2 {
    margin: 0;
    color: #111827;
    font-size: 20px;
    font-weight: 850;
    letter-spacing: -.02em;
}

.chart-legend {
    display: flex;
    align-items: center;
    gap: 20px;
    color: #435169;
    font-size: 13px;
    font-weight: 650;
}

.chart-legend span {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    white-space: nowrap;
}

.legend-dot {
    width: 11px;
    height: 11px;
    display: inline-flex;
    border-radius: 999px;
}

.legend-green {
    background: var(--green);
}

.legend-blue {
    background: var(--blue);
}

.select-pill {
    height: 36px;
    padding: 0 15px;
    border: 1px solid #d7deea;
    border-radius: 8px;
    color: #475569;
    background: #ffffff;
    font-size: 13px;
    font-weight: 750;
    cursor: pointer;
}

.canvas-wrap {
    height: 240px;
    margin-top: 12px;
}

.canvas-wrap canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.bottom-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(360px, .98fr);
    gap: 18px;
    margin-top: 18px;
}

.events-card {
    min-height: 424px;
}

.table-heading,
.compact-heading {
    min-height: 56px;
    padding: 0 22px;
    border-bottom: 1px solid var(--panel-border);
}

.table-heading a,
.compact-heading a,
.table-footer-link a,
.primary-link {
    color: #176dff;
    font-size: 14px;
    font-weight: 800;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.events-table {
    width: 100%;
    border-collapse: collapse;
    white-space: nowrap;
}

.events-table th,
.events-table td {
    padding: 13px 22px;
    border-bottom: 1px solid #edf1f6;
    text-align: left;
    font-size: 14px;
}

.events-table th {
    color: #39475d;
    background: #fbfcfe;
    font-weight: 800;
}

.events-table td {
    color: #36445a;
    font-weight: 600;
}

.events-table tr:hover td {
    background: #fcfdff;
}

.action-badge {
    min-width: 104px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 11px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 850;
}

.action-blocked {
    color: var(--red);
    background: var(--red-soft);
}

.action-allowed {
    color: var(--green);
    background: var(--green-soft);
}

.action-challenge {
    color: #f08300;
    background: var(--orange-soft);
}

.badge-icon {
    width: 18px;
    height: 18px;
    stroke-width: 2.25;
}

.ip-text {
    font-weight: 850;
}

.ip-blocked {
    color: var(--red);
}

.ip-allowed {
    color: var(--green);
}

.ip-challenge {
    color: #ed8500;
}

.table-footer-link {
    display: flex;
    justify-content: center;
    padding: 16px 0 20px;
}

.side-stack {
    display: grid;
    gap: 18px;
}

.compact-card {
    min-height: 214px;
}

.domain-list {
    margin: 0;
    padding: 14px 22px 18px;
    list-style: none;
    counter-reset: domain;
}

.domain-list li {
    counter-increment: domain;
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 32px;
    color: #38465c;
    font-size: 14px;
    font-weight: 650;
}

.domain-rank::before {
    content: counter(domain);
    color: #233047;
    font-weight: 850;
}

.domain-name {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.domain-list strong {
    min-width: 72px;
    height: 26px;
    display: inline-grid;
    place-items: center;
    padding: 0 10px;
    border-radius: 999px;
    color: var(--red);
    background: #fff0f1;
    font-size: 12px;
    font-weight: 850;
}

.tiny-icon {
    width: 16px;
    height: 16px;
    color: #2f78ef;
    flex: 0 0 auto;
}

.health-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 26px;
    padding: 28px 22px 26px;
}

.health-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.health-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: var(--green);
    background: #e4f8ef;
}

.health-svg {
    width: 22px;
    height: 22px;
    stroke-width: 2.25;
}

.health-item strong {
    display: block;
    color: #202b3c;
    font-size: 14px;
    line-height: 1.1;
    font-weight: 850;
}

.health-item small {
    display: block;
    margin-top: 5px;
    color: var(--green);
    font-size: 13px;
    font-weight: 750;
}

.empty-state-card {
    max-width: 540px;
    margin: 70px auto;
    padding: 42px;
    border: 1px solid var(--panel-border);
    border-radius: var(--radius-xl);
    background: #ffffff;
    text-align: center;
    box-shadow: var(--shadow-card);
}

.empty-state-card h1 {
    margin: 0 0 10px;
    font-size: 64px;
    letter-spacing: -.06em;
}

.login-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 20% 20%, rgba(36, 121, 255, .28), transparent 30%),
        radial-gradient(circle at 70% 74%, rgba(20, 184, 127, .18), transparent 26%),
        #06182f;
}

.login-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 520px;
}

.login-visual {
    position: relative;
    padding: 52px;
    color: #ffffff;
    overflow: hidden;
}

.login-visual::after {
    content: "";
    position: absolute;
    right: -120px;
    bottom: -160px;
    width: 560px;
    height: 560px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: inset 0 0 80px rgba(35, 120, 255, .12);
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.login-brand-mark {
    width: 54px;
    height: 62px;
    color: #dfeaff;
}

.login-brand-mark svg {
    width: 100%;
    height: 100%;
}

.login-brand-name {
    font-size: 28px;
    font-weight: 850;
    letter-spacing: -.04em;
}

.login-brand-tagline {
    margin-top: 6px;
    color: #aebdd4;
    font-weight: 600;
}

.login-hero-card {
    position: relative;
    z-index: 1;
    max-width: 610px;
    margin-top: 15vh;
}

.login-hero-card h1 {
    margin: 32px 0 14px;
    font-size: clamp(48px, 5vw, 78px);
    line-height: .94;
    letter-spacing: -.07em;
}

.login-hero-card p {
    margin: 0;
    max-width: 520px;
    color: #b7c5dc;
    font-size: 18px;
    line-height: 1.6;
    font-weight: 550;
}

.threat-ring {
    position: relative;
    width: 172px;
    height: 172px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .16);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .24);
}

.threat-ring span {
    position: absolute;
    inset: 15px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: inherit;
}

.threat-ring span:nth-child(2) {
    inset: 34px;
}

.threat-ring span:nth-child(3) {
    inset: 52px;
    background: rgba(31, 122, 255, .28);
}

.threat-ring strong,
.threat-ring small {
    position: relative;
    z-index: 1;
}

.threat-ring strong {
    margin-top: 22px;
    font-size: 30px;
    font-weight: 900;
    letter-spacing: -.04em;
}

.threat-ring small {
    margin-top: -50px;
    color: #b8c8e0;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.login-panel {
    display: grid;
    place-items: center;
    padding: 34px;
    background: #f7f9fd;
}

.login-card {
    width: 100%;
    max-width: 430px;
    padding: 34px;
    border: 1px solid var(--panel-border);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(4, 18, 38, .14);
}

.login-card-header h2 {
    margin: 16px 0 8px;
    color: #0b1220;
    font-size: 34px;
    line-height: 1;
    letter-spacing: -.04em;
}

.login-card-header p {
    margin: 0 0 26px;
    color: #667085;
    font-size: 15px;
    line-height: 1.5;
    font-weight: 550;
}

.mini-pill {
    display: inline-flex;
    height: 30px;
    align-items: center;
    padding: 0 11px;
    border-radius: 999px;
    color: #176dff;
    background: #eaf2ff;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .02em;
}

.alert {
    margin-bottom: 18px;
    padding: 13px 14px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
}

.alert-danger {
    color: #c01824;
    background: #ffe8ea;
    border: 1px solid #ffd1d6;
}

.login-form {
    display: grid;
    gap: 11px;
}

.login-form label {
    color: #344054;
    font-size: 14px;
    font-weight: 800;
}

.login-form input {
    height: 52px;
    padding: 0 15px;
    border: 1px solid #d9e1ec;
    border-radius: 12px;
    color: #101828;
    background: #ffffff;
    outline: none;
    font-size: 15px;
    font-weight: 600;
    transition: border var(--transition), box-shadow var(--transition);
}

.login-form input:focus {
    border-color: #2b7eff;
    box-shadow: 0 0 0 4px rgba(43, 126, 255, .12);
}

.login-submit {
    height: 54px;
    margin-top: 12px;
    border: 0;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, #2479ff, #155fe5);
    box-shadow: 0 14px 30px rgba(30, 106, 242, .26);
    font-size: 15px;
    font-weight: 850;
    cursor: pointer;
}

.login-note {
    margin-top: 22px;
    padding: 14px;
    border-radius: 12px;
    color: #5f6f86;
    background: #f5f7fb;
    font-size: 13px;
    line-height: 1.5;
}

@media (max-width: 1320px) {
    .kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .charts-grid,
    .bottom-grid {
        grid-template-columns: 1fr;
    }

    .side-stack {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    :root {
        --sidebar-width: 84px;
    }

    .app-sidebar {
        padding-inline: 12px;
    }

    .brand-block {
        justify-content: center;
        padding-bottom: 22px;
    }

    .brand-block > div:last-child,
    .nav-item span,
    .sidebar-footer {
        display: none;
    }

    .nav-item {
        justify-content: center;
        padding: 0;
    }

    .global-search {
        width: min(460px, 52vw);
    }

    .profile-text {
        display: none;
    }

    .login-shell {
        grid-template-columns: 1fr;
    }

    .login-visual {
        display: none;
    }
}

@media (max-width: 720px) {
    :root {
        --sidebar-width: 0px;
        --topbar-height: auto;
    }

    .app-sidebar {
        display: none;
    }

    .app-main {
        width: 100%;
        margin-left: 0;
    }

    .app-topbar {
        flex-wrap: wrap;
        padding: 16px;
    }

    .global-search {
        order: 3;
        width: 100%;
    }

    .page-content {
        padding: 16px;
    }

    .kpi-grid,
    .side-stack,
    .health-grid {
        grid-template-columns: 1fr;
    }

    .kpi-card {
        min-height: 116px;
    }

    .chart-legend {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .card-header-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .table-heading,
    .compact-heading {
        align-items: center;
        flex-direction: row;
    }

    .login-panel {
        padding: 18px;
    }

    .login-card {
        padding: 24px;
    }
}

/* Module pages */
.page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.page-head p {
    margin: 0 0 6px;
    color: #176dff;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.page-head h1 {
    margin: 0;
    color: #08111f;
    font-size: 34px;
    line-height: 1;
    letter-spacing: -.045em;
}

.page-head span {
    display: block;
    margin-top: 9px;
    color: #667085;
    font-size: 15px;
    font-weight: 600;
}

.primary-button,
.plan-card button,
.toolbar-actions button {
    height: 44px;
    border: 0;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, #2479ff, #155fe5);
    box-shadow: 0 12px 26px rgba(30, 106, 242, .22);
    padding: 0 18px;
    font-size: 14px;
    font-weight: 850;
    cursor: pointer;
}

.metric-mini-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 20px;
}

.metric-mini {
    min-height: 116px;
    padding: 20px;
    border: 1px solid var(--panel-border);
    border-radius: var(--radius-xl);
    background: #ffffff;
    box-shadow: var(--shadow-card);
}

.metric-mini span,
.metric-mini small {
    display: block;
    color: #667085;
    font-size: 13px;
    font-weight: 750;
}

.metric-mini strong {
    display: block;
    margin: 9px 0 8px;
    color: #08111f;
    font-size: 30px;
    line-height: 1;
    letter-spacing: -.045em;
    font-weight: 900;
}

.green-text { color: var(--green) !important; font-weight: 850 !important; }
.red-text { color: var(--red) !important; font-weight: 850 !important; }
.orange-text { color: #ed8500 !important; font-weight: 850 !important; }

.module-card {
    min-height: 420px;
}

.module-toolbar {
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 22px;
    border-bottom: 1px solid var(--panel-border);
}

.module-toolbar h2,
.settings-card h2,
.plan-card h2 {
    margin: 0;
    color: #111827;
    font-size: 20px;
    font-weight: 850;
    letter-spacing: -.02em;
}

.toolbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toolbar-actions input,
.settings-form input {
    height: 42px;
    min-width: 260px;
    padding: 0 14px;
    border: 1px solid #d9e1ec;
    border-radius: 11px;
    color: #101828;
    background: #ffffff;
    outline: 0;
    font-weight: 650;
}

.toolbar-actions button {
    height: 42px;
    background: #111827;
    box-shadow: none;
}

.status-pill {
    min-width: 82px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0 11px;
    font-size: 12px;
    font-weight: 900;
}

.status-active { color: var(--green); background: var(--green-soft); }
.status-review,
.status-verify,
.status-draft { color: #ed8500; background: var(--orange-soft); }
.status-suspended,
.status-inactive { color: var(--red); background: var(--red-soft); }

.action-block,
.action-rate_limit { color: var(--red); background: var(--red-soft); }
.action-challenge { color: #ed8500; background: var(--orange-soft); }
.action-allow { color: var(--green); background: var(--green-soft); }

.rule-grid,
.plans-grid,
.settings-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 20px;
}

.rule-card,
.plan-card,
.settings-card {
    padding: 22px;
    border: 1px solid var(--panel-border);
    border-radius: var(--radius-xl);
    background: #ffffff;
    box-shadow: var(--shadow-card);
}

.rule-card h3 {
    margin: 0;
    color: #101828;
    font-size: 18px;
    font-weight: 900;
}

.rule-card p {
    margin: 10px 0 18px;
    color: #667085;
    line-height: 1.5;
    font-weight: 600;
}

.rule-card strong {
    display: inline-flex;
    height: 30px;
    align-items: center;
    padding: 0 11px;
    border-radius: 999px;
    color: var(--green);
    background: var(--green-soft);
    font-size: 12px;
    font-weight: 900;
}

.timeline-list {
    padding: 18px 22px 24px;
}

.timeline-item {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr) 90px 110px;
    align-items: center;
    gap: 16px;
    min-height: 72px;
    border-bottom: 1px solid #edf1f6;
}

.timeline-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: var(--blue);
}

.timeline-item strong { display: block; color: #101828; font-weight: 900; }
.timeline-item span { display: block; margin-top: 6px; color: #667085; font-size: 13px; font-weight: 650; }
.timeline-item em { font-style: normal; font-weight: 900; color: #ed8500; }
.timeline-item b { justify-self: end; color: #111827; }
.severity-high .timeline-dot { background: var(--red); }
.severity-medium .timeline-dot { background: #ed8500; }
.severity-low .timeline-dot { background: var(--green); }

.plan-card {
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.plan-card strong {
    display: block;
    margin-top: 12px;
    color: #08111f;
    font-size: 36px;
    font-weight: 950;
    letter-spacing: -.055em;
}

.plan-card ul {
    margin: 20px 0;
    padding-left: 18px;
    color: #516076;
    font-weight: 650;
    line-height: 1.9;
}

.settings-grid { grid-template-columns: 1fr 1fr; }
.settings-form { display: grid; gap: 14px; margin-top: 18px; }
.settings-form label { display: grid; gap: 8px; color: #344054; font-size: 14px; font-weight: 850; }
.settings-form input { width: 100%; min-width: 0; }
.module-checklist { display: grid; grid-template-columns: 1fr auto; gap: 14px 18px; margin-top: 22px; color: #435169; font-weight: 750; }
.module-checklist b { color: var(--green); }
code { color: #176dff; font-weight: 850; }

@media (max-width: 1320px) {
    .metric-mini-grid,
    .rule-grid,
    .plans-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
    .page-head,
    .module-toolbar { align-items: flex-start; flex-direction: column; }
    .metric-mini-grid,
    .rule-grid,
    .plans-grid,
    .settings-grid { grid-template-columns: 1fr; }
    .toolbar-actions { width: 100%; flex-direction: column; align-items: stretch; }
    .toolbar-actions input { min-width: 0; width: 100%; }
    .timeline-item { grid-template-columns: 18px 1fr; }
    .timeline-item em,
    .timeline-item b { justify-self: start; }
}

/* =========================================================
   Compact density pack - v4
   Daha fazla veri sığdırmak için tüm panel ölçüleri daraltıldı.
   ========================================================= */
:root {
    --sidebar-width: 244px;
    --topbar-height: 62px;
    --radius-xl: 12px;
    --radius-lg: 10px;
    --radius-md: 8px;
    --shadow-card: 0 5px 16px rgba(16, 24, 40, .035);
    --shadow-soft: 0 8px 22px rgba(6, 24, 47, .06);
}

body {
    font-size: 13px;
}

.app-sidebar {
    padding: 16px 12px 12px;
    box-shadow: 14px 0 34px rgba(3, 14, 30, .12);
}

.brand-block {
    gap: 10px;
    padding: 0 2px 16px;
}

.brand-mark {
    width: 38px;
    height: 44px;
}

.brand-name {
    font-size: 20px;
}

.brand-tagline {
    margin-top: 4px;
    font-size: 11px;
}

.sidebar-nav {
    gap: 4px;
}

.nav-item {
    min-height: 38px;
    gap: 10px;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
}

.nav-icon {
    width: 19px;
    height: 19px;
}

.nav-item.is-active {
    box-shadow: 0 7px 18px rgba(24, 101, 232, .22);
}

.sidebar-footer {
    padding-top: 12px;
}

.status-block {
    padding: 10px 0 12px;
}

.status-title {
    margin-bottom: 6px;
    font-size: 11px;
}

.status-line {
    gap: 6px;
    font-size: 11px;
}

.dot {
    width: 8px;
    height: 8px;
    box-shadow: 0 0 0 3px rgba(31, 214, 136, .10);
}

.uptime-text {
    margin: 6px 0 0 14px;
    font-size: 10px;
}

.copyright {
    padding-top: 10px;
    font-size: 10px;
}

.app-topbar {
    height: var(--topbar-height);
    gap: 12px;
    padding: 0 16px;
}

.icon-button {
    width: 34px;
    height: 34px;
    border-radius: 9px;
}

.topbar-icon {
    width: 18px;
    height: 18px;
}

.global-search {
    width: min(500px, 46vw);
    height: 38px;
    border-radius: 9px;
}

.search-icon {
    width: 16px;
    height: 16px;
    margin-left: 12px;
}

.global-search input {
    padding: 0 10px;
    font-size: 12px;
    font-weight: 600;
}

.global-search kbd {
    min-width: 30px;
    height: 22px;
    margin-right: 8px;
    border-radius: 6px;
    font-size: 10px;
}

.topbar-actions {
    gap: 6px;
}

.has-badge .badge-count {
    top: 1px;
    right: 0;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-width: 1px;
    font-size: 9px;
}

.profile-menu {
    gap: 8px;
    padding-left: 6px;
}

.avatar {
    width: 36px;
    height: 36px;
    font-size: 11px;
    box-shadow: inset 0 0 0 2px #e6eef8;
}

.profile-text {
    gap: 1px;
    min-width: 92px;
}

.profile-text strong {
    font-size: 12px;
}

.profile-text span {
    font-size: 10px;
}

.logout-button {
    width: 20px;
    height: 24px;
    font-size: 17px;
}

.page-content {
    padding: 14px 16px 16px;
}

.kpi-grid,
.charts-grid,
.bottom-grid,
.side-stack,
.metric-mini-grid,
.rule-grid,
.plans-grid,
.settings-grid {
    gap: 10px;
}

.kpi-card {
    min-height: 86px;
    gap: 13px;
    padding: 13px 14px;
}

.kpi-icon {
    width: 46px;
    height: 46px;
    border-radius: 11px;
}

.kpi-svg {
    width: 23px;
    height: 23px;
}

.kpi-label {
    font-size: 12px;
}

.kpi-value {
    margin-top: 4px;
    font-size: clamp(20px, 1.65vw, 23px);
}

.kpi-trend {
    gap: 7px;
    margin-top: 7px;
    font-size: 11px;
}

.kpi-trend small {
    font-size: 10px;
}

.charts-grid {
    margin-top: 10px;
    grid-template-columns: 1.12fr .88fr;
}

.chart-card {
    min-height: 236px;
    padding: 12px 14px 10px;
}

.card-header-row {
    gap: 10px;
}

.card-header-row h2,
.module-toolbar h2,
.settings-card h2,
.plan-card h2 {
    font-size: 16px;
}

.chart-legend {
    gap: 10px;
    font-size: 11px;
}

.chart-legend span {
    gap: 5px;
}

.legend-dot {
    width: 8px;
    height: 8px;
}

.select-pill {
    height: 28px;
    padding: 0 10px;
    border-radius: 7px;
    font-size: 11px;
}

.canvas-wrap {
    height: 178px;
    margin-top: 8px;
}

.bottom-grid {
    grid-template-columns: minmax(0, 1.75fr) minmax(300px, .88fr);
    margin-top: 10px;
}

.events-card {
    min-height: 310px;
}

.table-heading,
.compact-heading {
    min-height: 42px;
    padding: 0 13px;
}

.table-heading a,
.compact-heading a,
.table-footer-link a,
.primary-link {
    font-size: 11px;
}

.events-table th,
.events-table td {
    padding: 7px 12px;
    font-size: 12px;
}

.events-table th {
    font-weight: 850;
}

.events-table td {
    font-weight: 600;
}

.action-badge {
    min-width: 82px;
    height: 25px;
    gap: 5px;
    padding: 0 8px;
    border-radius: 7px;
    font-size: 11px;
}

.badge-icon {
    width: 14px;
    height: 14px;
}

.table-footer-link {
    padding: 9px 0 11px;
}

.compact-card {
    min-height: 154px;
}

.domain-list {
    padding: 8px 13px 11px;
}

.domain-list li {
    grid-template-columns: 18px minmax(0, 1fr) auto;
    gap: 7px;
    min-height: 24px;
    font-size: 11px;
}

.domain-name {
    gap: 5px;
}

.domain-list strong {
    min-width: 58px;
    height: 21px;
    padding: 0 7px;
    font-size: 10px;
}

.tiny-icon {
    width: 13px;
    height: 13px;
}

.health-grid {
    gap: 10px 12px;
    padding: 13px;
}

.health-item {
    gap: 8px;
}

.health-icon {
    width: 30px;
    height: 30px;
}

.health-svg {
    width: 15px;
    height: 15px;
}

.health-item strong {
    font-size: 11px;
}

.health-item small {
    margin-top: 2px;
    font-size: 10px;
}

.page-head {
    gap: 12px;
    margin-bottom: 11px;
}

.page-head p {
    margin: 0 0 4px;
    font-size: 10px;
}

.page-head h1 {
    font-size: 24px;
}

.page-head span {
    margin-top: 5px;
    font-size: 12px;
}

.primary-button,
.plan-card button,
.toolbar-actions button {
    height: 34px;
    padding: 0 12px;
    border-radius: 9px;
    font-size: 12px;
    box-shadow: 0 8px 18px rgba(30, 106, 242, .18);
}

.metric-mini-grid {
    margin-bottom: 10px;
}

.metric-mini {
    min-height: 72px;
    padding: 12px;
}

.metric-mini span,
.metric-mini small {
    font-size: 11px;
}

.metric-mini strong {
    margin: 5px 0 4px;
    font-size: 22px;
}

.module-card {
    min-height: 300px;
}

.module-toolbar {
    min-height: 48px;
    gap: 10px;
    padding: 0 13px;
}

.toolbar-actions {
    gap: 6px;
}

.toolbar-actions input,
.settings-form input {
    height: 33px;
    min-width: 220px;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 12px;
}

.toolbar-actions button {
    height: 33px;
}

.status-pill {
    min-width: 66px;
    height: 22px;
    padding: 0 8px;
    font-size: 10px;
}

.rule-grid,
.plans-grid,
.settings-grid {
    margin-bottom: 10px;
}

.rule-card,
.plan-card,
.settings-card {
    padding: 14px;
}

.rule-card h3 {
    font-size: 14px;
}

.rule-card p {
    margin: 6px 0 10px;
    font-size: 12px;
    line-height: 1.35;
}

.rule-card strong {
    height: 22px;
    padding: 0 8px;
    font-size: 10px;
}

.timeline-list {
    padding: 10px 13px 13px;
}

.timeline-item {
    grid-template-columns: 14px minmax(0, 1fr) 72px 82px;
    gap: 10px;
    min-height: 50px;
}

.timeline-dot {
    width: 9px;
    height: 9px;
}

.timeline-item strong {
    font-size: 12px;
}

.timeline-item span {
    margin-top: 3px;
    font-size: 11px;
}

.timeline-item em,
.timeline-item b {
    font-size: 11px;
}

.plan-card {
    min-height: 200px;
}

.plan-card strong {
    margin-top: 8px;
    font-size: 26px;
}

.plan-card ul {
    margin: 11px 0;
    padding-left: 16px;
    line-height: 1.45;
    font-size: 12px;
}

.settings-form {
    gap: 9px;
    margin-top: 10px;
}

.settings-form label {
    gap: 5px;
    font-size: 12px;
}

.module-checklist {
    gap: 8px 10px;
    margin-top: 12px;
    font-size: 12px;
}

code {
    font-size: 11px;
}

.empty-state-card {
    margin: 38px auto;
    padding: 28px;
}

.empty-state-card h1 {
    font-size: 46px;
}

.login-shell {
    grid-template-columns: 1fr 440px;
}

.login-visual {
    padding: 34px;
}

.login-brand-mark {
    width: 42px;
    height: 48px;
}

.login-brand-name {
    font-size: 22px;
}

.login-brand-tagline {
    font-size: 12px;
}

.login-hero-card h1 {
    font-size: clamp(38px, 4vw, 58px);
}

.login-hero-card p {
    font-size: 14px;
}

.threat-ring {
    width: 130px;
    height: 130px;
}

.threat-ring strong {
    font-size: 23px;
}

.login-panel {
    padding: 22px;
}

.login-card {
    max-width: 370px;
    padding: 24px;
    border-radius: 16px;
}

.login-card-header h2 {
    margin: 12px 0 6px;
    font-size: 25px;
}

.login-card-header p {
    margin: 0 0 18px;
    font-size: 12px;
}

.mini-pill {
    height: 24px;
    padding: 0 9px;
    font-size: 10px;
}

.alert {
    margin-bottom: 12px;
    padding: 9px 10px;
    border-radius: 9px;
    font-size: 12px;
}

.login-form {
    gap: 8px;
}

.login-form label {
    font-size: 12px;
}

.login-form input {
    height: 40px;
    padding: 0 11px;
    border-radius: 9px;
    font-size: 12px;
}

.login-submit {
    height: 42px;
    margin-top: 8px;
    border-radius: 9px;
    font-size: 12px;
}

.login-note {
    margin-top: 14px;
    padding: 10px;
    border-radius: 9px;
    font-size: 11px;
}

.sidebar-compact {
    --sidebar-width: 72px;
}

.sidebar-compact .app-sidebar {
    padding-inline: 9px;
}

.sidebar-compact .brand-block {
    justify-content: center;
}

.sidebar-compact .brand-block > div:last-child,
.sidebar-compact .nav-item span,
.sidebar-compact .sidebar-footer {
    display: none;
}

.sidebar-compact .nav-item {
    justify-content: center;
    padding: 0;
}

@media (max-width: 1320px) {
    .charts-grid,
    .bottom-grid {
        grid-template-columns: 1fr;
    }

    .side-stack {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    :root {
        --sidebar-width: 72px;
    }

    .global-search {
        width: min(410px, 50vw);
    }
}

@media (max-width: 720px) {
    .app-topbar {
        padding: 10px;
    }

    .page-content {
        padding: 10px;
    }

    .kpi-card {
        min-height: 76px;
    }
}

/* Profile dropdown pack - v5 */
.profile-dropdown {
    position: relative;
    display: block;
}

.profile-dropdown summary {
    list-style: none;
}

.profile-dropdown summary::-webkit-details-marker {
    display: none;
}

.profile-trigger {
    height: 40px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 3px 7px 3px 3px;
    border: 1px solid #e3eaf4;
    border-radius: 12px;
    background: #ffffff;
    cursor: pointer;
    user-select: none;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.profile-trigger:hover,
.profile-dropdown[open] .profile-trigger {
    border-color: #cfd9ea;
    background: #f8fbff;
    box-shadow: 0 8px 20px rgba(20, 35, 55, .08);
}

.profile-menu-label {
    height: 20px;
    display: inline-flex;
    align-items: center;
    padding: 0 8px;
    border-radius: 999px;
    background: #eef5ff;
    color: #2378ff;
    font-size: 10px;
    line-height: 1;
    font-weight: 850;
    letter-spacing: .01em;
}

.profile-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 60;
    width: 246px;
    padding: 8px;
    border: 1px solid #dde7f4;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 22px 60px rgba(13, 25, 44, .18);
}

.profile-dropdown-menu::before {
    content: "";
    position: absolute;
    top: -6px;
    right: 23px;
    width: 10px;
    height: 10px;
    transform: rotate(45deg);
    border-left: 1px solid #dde7f4;
    border-top: 1px solid #dde7f4;
    background: #ffffff;
}

.profile-dropdown-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px;
    margin-bottom: 5px;
    border-radius: 10px;
    background: #f7faff;
}

.profile-dropdown-head div {
    min-width: 0;
    display: grid;
    gap: 1px;
}

.profile-dropdown-head strong {
    color: #152034;
    font-size: 12px;
    line-height: 1.15;
    font-weight: 850;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-dropdown-head small {
    color: #74849b;
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.avatar-sm {
    width: 30px;
    height: 30px;
    font-size: 10px;
    box-shadow: inset 0 0 0 2px #e6eef8;
}

.dropdown-link {
    display: grid;
    gap: 2px;
    padding: 8px 9px;
    border-radius: 10px;
    color: #172237;
    text-decoration: none;
    transition: background .16s ease, color .16s ease;
}

.dropdown-link:hover {
    background: #f0f5ff;
    color: #1767e8;
}

.dropdown-link span {
    font-size: 12px;
    font-weight: 780;
    line-height: 1.15;
}

.dropdown-link small {
    color: #7b8ca3;
    font-size: 10px;
    line-height: 1.2;
}

.dropdown-logout-form {
    margin-top: 6px;
    padding-top: 7px;
    border-top: 1px solid #edf2f8;
}

.dropdown-logout {
    width: 100%;
    height: 31px;
    border: 1px solid #ffd3d7;
    border-radius: 9px;
    background: #fff5f6;
    color: #d7192a;
    font-size: 12px;
    font-weight: 850;
    cursor: pointer;
}

.dropdown-logout:hover {
    background: #f32935;
    border-color: #f32935;
    color: #ffffff;
}

.compact-form label {
    font-size: 11px;
}

.compact-form input {
    height: 34px;
    font-size: 12px;
}

.profile-page-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
}

.dense-checklist {
    gap: 8px 10px;
}

.compact-note-card {
    margin-top: 10px;
}

.muted-text {
    margin: 0;
    color: #687991;
    font-size: 12px;
    line-height: 1.55;
}

@media (max-width: 720px) {
    .profile-text {
        display: none;
    }

    .profile-dropdown-menu {
        right: -8px;
        width: 230px;
    }

    .profile-page-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   Responsive + Auth + Notification density pack - v8
   ========================================================= */
.auth-multi-page .login-shell {
    grid-template-columns: minmax(320px, .92fr) minmax(360px, 520px);
}
.auth-card {
    max-width: 520px;
}
.compact-auth-head h2 {
    font-size: 24px;
    margin-bottom: 4px;
}
.compact-auth-head p {
    font-size: 13px;
}
.auth-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 5px;
    margin: 14px 0 14px;
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    background: #f5f7fb;
}
.auth-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 8px;
    border-radius: 9px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-align: center;
}
.auth-tab.is-active,
.auth-tab:hover {
    color: #ffffff;
    background: linear-gradient(135deg, #1f7aff 0%, #1762e8 100%);
    box-shadow: 0 8px 18px rgba(24, 101, 232, .22);
}
.auth-form { display: none; }
.auth-form.is-active { display: grid; }
.form-row-compact {
    display: grid;
    gap: 5px;
}
.auth-note {
    margin: -2px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
}
.alert-success {
    color: #08714d;
    background: #e2f8ef;
    border-color: #b8efd9;
}
.compact-login-hero h1 {
    font-size: clamp(26px, 4vw, 42px);
}

.notification-dropdown {
    position: relative;
}
.notification-dropdown summary {
    list-style: none;
}
.notification-dropdown summary::-webkit-details-marker {
    display: none;
}
.notification-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    z-index: 70;
    width: min(360px, calc(100vw - 28px));
    padding: 8px;
    border: 1px solid var(--panel-border);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 18px 48px rgba(16, 24, 40, .16);
}
.notification-menu::before {
    content: "";
    position: absolute;
    top: -6px;
    right: 18px;
    width: 12px;
    height: 12px;
    border-left: 1px solid var(--panel-border);
    border-top: 1px solid var(--panel-border);
    background: #ffffff;
    transform: rotate(45deg);
}
.notification-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 8px 9px;
    border-bottom: 1px solid #edf1f7;
}
.notification-menu-head strong {
    font-size: 13px;
}
.notification-menu-head a {
    color: var(--blue);
    font-size: 12px;
    font-weight: 800;
}
.notification-item {
    display: grid;
    gap: 3px;
    padding: 9px 8px;
    border-radius: 10px;
    border-bottom: 1px solid #f0f3f8;
}
.notification-item:hover {
    background: #f6f9ff;
}
.notification-item strong {
    font-size: 12.5px;
}
.notification-item span {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
}
.notification-item small,
.empty-mini {
    color: var(--muted-2);
    font-size: 11px;
}
.empty-mini {
    margin: 0;
    padding: 12px 8px;
}
.status-info { color: #1762e8; background: #e9f1ff; }
.status-success { color: #08714d; background: #e2f8ef; }
.status-warning { color: #9a5b00; background: #fff0d8; }
.status-danger { color: #b42318; background: #ffe5e6; }

.filter-form input,
.filter-form select,
.per-page-form select {
    min-height: 32px;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    background: #ffffff;
    color: var(--text);
    padding: 0 9px;
    font-size: 12px;
    outline: none;
}
.filter-form input {
    min-width: 210px;
}
.filter-form button,
.mini-action {
    min-height: 32px;
    border: 0;
    border-radius: 8px;
    padding: 0 10px;
    background: #edf3ff;
    color: #1762e8;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}
.table-actions {
    display: flex;
    gap: 5px;
    align-items: center;
    flex-wrap: wrap;
}
.table-actions form {
    margin: 0;
}
.mini-action.success {
    background: #e2f8ef;
    color: #08714d;
}
.mini-action.danger {
    background: #ffe5e6;
    color: #b42318;
}
.empty-cell {
    padding: 18px !important;
    color: var(--muted);
    text-align: center;
    font-size: 12px;
}
.truncate-cell {
    max-width: 280px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pagination-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-top: 1px solid var(--panel-border);
    background: #fbfcff;
}
.pagination-info,
.page-current {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}
.per-page-form {
    margin-left: auto;
}
.pagination-links {
    display: flex;
    align-items: center;
    gap: 8px;
}
.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    background: #ffffff;
    color: var(--text);
    font-size: 12px;
    font-weight: 800;
}
.page-link.is-disabled {
    pointer-events: none;
    opacity: .45;
}
.code-box {
    overflow-x: auto;
    padding: 10px 12px;
    border: 1px solid var(--panel-border);
    border-radius: 10px;
    background: #08182d;
    color: #dfeaff;
    font-size: 12px;
}

@media (max-width: 1180px) {
    :root { --sidebar-width: 226px; --topbar-height: 62px; }
    .brand-name { font-size: 18px; }
    .brand-tagline { font-size: 11px; }
    .nav-item { min-height: 38px; font-size: 13px; gap: 10px; }
    .nav-icon { width: 18px; height: 18px; }
    .page-content { padding: 14px; }
    .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .charts-grid, .bottom-grid, .settings-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .admin-shell { display: block; }
    .app-sidebar {
        width: min(280px, 86vw);
        transform: translateX(-104%);
        transition: transform 180ms ease;
        z-index: 90;
    }
    body.sidebar-open .app-sidebar { transform: translateX(0); }
    body.sidebar-open::after {
        content: "";
        position: fixed;
        inset: 0;
        z-index: 80;
        background: rgba(6, 24, 47, .44);
    }
    .app-main { width: 100%; margin-left: 0; }
    .app-topbar { height: 58px; gap: 8px; padding: 0 10px; }
    .global-search { flex: 1 1 auto; min-width: 0; }
    .global-search input { font-size: 12px; }
    .global-search kbd { display: none; }
    .profile-text { display: none; }
    .profile-menu-label { display: none; }
    .topbar-actions { gap: 6px; }
    .icon-button { width: 34px; height: 34px; }
    .profile-trigger { padding: 3px; }
    .profile-dropdown-menu, .notification-menu { right: 0; }
    .page-head { align-items: stretch; gap: 10px; }
    .page-head h1 { font-size: 20px; }
    .page-head > a, .page-head > button { width: 100%; justify-content: center; }
    .module-toolbar { align-items: stretch; flex-direction: column; }
    .toolbar-actions { width: 100%; flex-wrap: wrap; }
    .filter-form input, .filter-form select, .filter-form button { flex: 1 1 160px; min-width: 0; }
    .pagination-bar { align-items: stretch; flex-direction: column; }
    .per-page-form { margin-left: 0; }
    .pagination-links { justify-content: space-between; }
}

@media (max-width: 720px) {
    .login-shell { grid-template-columns: 1fr !important; min-height: 100vh; }
    .login-visual { min-height: auto; padding: 16px; }
    .login-panel { padding: 14px; }
    .login-card { padding: 16px; }
    .login-brand-mark { width: 38px; height: 44px; }
    .login-brand-name { font-size: 21px; }
    .login-hero-card { padding: 16px; }
    .threat-ring { width: 112px; height: 112px; }
    .auth-tabs { grid-template-columns: 1fr; }
    .auth-tab { min-height: 32px; }
    .kpi-grid, .metric-mini-grid, .profile-page-grid { grid-template-columns: 1fr !important; }
    .canvas-wrap { height: 210px; }
    .events-table { min-width: 720px; }
    .plans-grid { grid-template-columns: 1fr; }
    .notification-menu { position: fixed; top: 62px; right: 10px; left: 10px; width: auto; }
    .profile-dropdown-menu { position: fixed; top: 62px; right: 10px; left: 10px; width: auto; }
}
.status-pending { color: #9a5b00; background: var(--orange-soft); }
.status-passive, .status-paused, .status-revoked { color: var(--muted); background: #eef2f7; }
.status-rotating { color: #1762e8; background: #e9f1ff; }


/* =========================================================
   Auth redesign pack - v9
   Full dark professional responsive login/register screen
   ========================================================= */
.login-page.auth-multi-page {
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 12% 14%, rgba(35, 120, 255, .42), transparent 30%),
        radial-gradient(circle at 84% 18%, rgba(31, 214, 136, .18), transparent 24%),
        radial-gradient(circle at 72% 88%, rgba(94, 92, 230, .24), transparent 30%),
        linear-gradient(135deg, #04101f 0%, #071b34 42%, #020814 100%);
}

.auth-bg-grid {
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .34;
    background-image:
        linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(circle at 38% 30%, #000 0%, transparent 68%);
}

.auth-orb {
    position: fixed;
    pointer-events: none;
    border-radius: 999px;
    filter: blur(5px);
    opacity: .78;
}

.auth-orb-blue {
    width: 420px;
    height: 420px;
    left: -180px;
    bottom: -170px;
    background: radial-gradient(circle, rgba(35,120,255,.22), transparent 66%);
}

.auth-orb-green {
    width: 360px;
    height: 360px;
    right: -140px;
    top: 8%;
    background: radial-gradient(circle, rgba(19,184,127,.16), transparent 65%);
}

.v9-auth-shell,
.auth-multi-page .login-shell.v9-auth-shell {
    position: relative;
    z-index: 1;
    width: min(1280px, 100%);
    min-height: 100vh;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 470px);
    gap: clamp(18px, 4vw, 58px);
    align-items: center;
    padding: clamp(22px, 4vw, 56px);
}

.v9-login-visual,
.login-visual.v9-login-visual {
    display: flex;
    min-height: auto;
    padding: 0;
    color: #ffffff;
    overflow: visible;
    flex-direction: column;
    justify-content: center;
}

.v9-login-visual::after {
    display: none;
}

.v9-login-visual .login-brand {
    width: fit-content;
    padding: 10px 12px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 18px;
    background: rgba(255,255,255,.055);
    box-shadow: 0 24px 70px rgba(0,0,0,.14);
    backdrop-filter: blur(18px);
}

.v9-login-visual .login-brand-mark {
    width: 42px;
    height: 48px;
    color: #e7f0ff;
}

.v9-login-visual .login-brand-name {
    color: #ffffff;
    font-size: 23px;
    font-weight: 900;
    letter-spacing: -.045em;
}

.v9-login-visual .login-brand-tagline {
    margin-top: 4px;
    color: #9fb0cb;
    font-size: 12px;
    font-weight: 700;
}

.v9-login-hero.login-hero-card,
.compact-login-hero.v9-login-hero {
    max-width: 660px;
    margin-top: clamp(34px, 7vh, 82px);
}

.v9-login-hero .threat-ring {
    width: 142px;
    height: 142px;
    background:
        radial-gradient(circle at 50% 50%, rgba(31,122,255,.32), transparent 48%),
        rgba(255,255,255,.07);
    border-color: rgba(255,255,255,.18);
    box-shadow: 0 24px 75px rgba(0,0,0,.30), 0 0 0 8px rgba(35,120,255,.035);
}

.v9-login-hero .threat-ring strong {
    margin-top: 18px;
    font-size: 25px;
}

.v9-login-hero .threat-ring small {
    margin-top: -42px;
    font-size: 10px;
}

.v9-login-hero h1,
.compact-login-hero.v9-login-hero h1 {
    max-width: 620px;
    margin: 26px 0 12px;
    color: #ffffff;
    font-size: clamp(38px, 5.3vw, 72px);
    line-height: .96;
    letter-spacing: -.07em;
}

.v9-login-hero p {
    max-width: 560px;
    color: #b7c7df;
    font-size: clamp(14px, 1.4vw, 17px);
    line-height: 1.65;
}

.auth-metric-strip {
    width: min(620px, 100%);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 28px;
}

.auth-metric-strip div {
    min-height: 78px;
    padding: 14px 16px;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 18px;
    background: rgba(255,255,255,.065);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
    backdrop-filter: blur(16px);
}

.auth-metric-strip strong {
    display: block;
    color: #ffffff;
    font-size: 24px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -.04em;
}

.auth-metric-strip small {
    display: block;
    margin-top: 8px;
    color: #9fb0cb;
    font-size: 11px;
    line-height: 1.25;
    font-weight: 800;
}

.auth-multi-page .login-panel,
.login-panel.auth-panel {
    width: 100%;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: transparent !important;
}

.auth-multi-page .login-card,
.login-card.auth-card {
    width: 100%;
    max-width: 470px;
    padding: 24px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(248,251,255,.96) 100%);
    box-shadow: 0 34px 90px rgba(0,0,0,.36), inset 0 1px 0 rgba(255,255,255,.75);
}

.auth-multi-page .compact-auth-head {
    padding-bottom: 2px;
}

.auth-multi-page .compact-auth-head h2 {
    margin: 12px 0 5px;
    color: #0b1426;
    font-size: 25px;
    line-height: 1.05;
    letter-spacing: -.045em;
}

.auth-multi-page .compact-auth-head p {
    margin: 0;
    color: #687991;
    font-size: 12px;
    line-height: 1.45;
    font-weight: 650;
}

.auth-multi-page .mini-pill {
    height: 24px;
    padding: 0 10px;
    border: 1px solid #d7e6ff;
    color: #1762e8;
    background: #eef5ff;
    font-size: 10px;
}

.auth-multi-page .auth-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    margin: 16px 0 14px;
    padding: 4px;
    border-color: #dfe7f2;
    border-radius: 13px;
    background: #f3f6fb;
}

.auth-multi-page .auth-tab {
    min-height: 34px;
    padding: 0 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
}

.auth-multi-page .login-form {
    gap: 10px;
}

.auth-multi-page .form-row-compact {
    gap: 5px;
}

.auth-multi-page .form-row-compact label {
    color: #233047;
    font-size: 11px;
    line-height: 1.1;
    font-weight: 850;
}

.auth-multi-page .form-row-compact input {
    width: 100%;
    height: 39px;
    padding: 0 12px;
    border: 1px solid #dbe4f1;
    border-radius: 11px;
    color: #111b2e;
    background: #ffffff;
    font-size: 13px;
    outline: 0;
    transition: border-color .16s ease, box-shadow .16s ease;
}

.auth-multi-page .form-row-compact input:focus {
    border-color: #2378ff;
    box-shadow: 0 0 0 4px rgba(35,120,255,.12);
}

.auth-multi-page .login-submit {
    height: 40px;
    margin-top: 2px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 900;
    box-shadow: 0 14px 28px rgba(24,101,232,.22);
}

.auth-multi-page .auth-note {
    margin: -1px 0 0;
    font-size: 11px;
    line-height: 1.4;
}

.auth-multi-page .alert {
    margin: 0 0 12px;
    padding: 10px 11px;
    border-radius: 11px;
    font-size: 12px;
    line-height: 1.35;
}

.auth-security-note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 13px;
    padding: 10px 11px;
    border: 1px solid #dfe7f2;
    border-radius: 13px;
    color: #596a82;
    background: #f7faff;
    font-size: 11px;
    font-weight: 750;
}

.auth-security-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 auto;
    border-radius: 999px;
    background: #13b87f;
    box-shadow: 0 0 0 4px rgba(19,184,127,.12);
}

@media (max-width: 980px) {
    .v9-auth-shell,
    .auth-multi-page .login-shell.v9-auth-shell {
        width: 100%;
        min-height: 100svh;
        grid-template-columns: 1fr;
        gap: 18px;
        align-items: start;
        padding: 18px;
    }

    .v9-login-visual,
    .login-visual.v9-login-visual {
        display: flex !important;
        min-height: auto;
        padding: 0;
        justify-content: flex-start;
    }

    .v9-login-visual .login-brand {
        width: 100%;
        justify-content: flex-start;
        padding: 9px 10px;
        border-radius: 16px;
    }

    .v9-login-hero {
        display: none;
    }

    .login-panel.auth-panel {
        padding: 0;
    }

    .login-card.auth-card {
        max-width: 100%;
        margin: 0 auto;
    }
}

@media (max-width: 560px) {
    .login-page.auth-multi-page {
        background:
            radial-gradient(circle at 18% 8%, rgba(35, 120, 255, .34), transparent 35%),
            radial-gradient(circle at 100% 28%, rgba(19, 184, 127, .15), transparent 32%),
            linear-gradient(160deg, #06182f 0%, #031020 58%, #020814 100%);
    }

    .v9-auth-shell,
    .auth-multi-page .login-shell.v9-auth-shell {
        min-height: 100svh;
        padding: 12px;
        gap: 12px;
    }

    .v9-login-visual .login-brand {
        gap: 10px;
        padding: 8px 9px;
    }

    .v9-login-visual .login-brand-mark {
        width: 34px;
        height: 39px;
    }

    .v9-login-visual .login-brand-name {
        font-size: 18px;
    }

    .v9-login-visual .login-brand-tagline {
        font-size: 10px;
    }

    .login-card.auth-card {
        padding: 16px;
        border-radius: 18px;
        box-shadow: 0 26px 64px rgba(0,0,0,.32);
    }

    .auth-multi-page .compact-auth-head h2 {
        margin-top: 10px;
        font-size: 22px;
    }

    .auth-multi-page .compact-auth-head p {
        font-size: 11px;
    }

    .auth-multi-page .auth-tabs {
        margin: 12px 0;
        gap: 4px;
    }

    .auth-multi-page .auth-tab {
        min-height: 32px;
        padding: 0 5px;
        font-size: 10px;
        letter-spacing: -.01em;
    }

    .auth-multi-page .form-row-compact input {
        height: 37px;
        font-size: 12px;
    }

    .auth-multi-page .login-submit {
        height: 38px;
    }

    .auth-security-note {
        align-items: flex-start;
        padding: 9px 10px;
        font-size: 10px;
        line-height: 1.35;
    }
}

@media (max-width: 360px) {
    .v9-auth-shell,
    .auth-multi-page .login-shell.v9-auth-shell {
        padding: 9px;
    }

    .login-card.auth-card {
        padding: 13px;
    }

    .auth-multi-page .auth-tab {
        font-size: 9px;
    }
}


/* Bulk list operations - v10 */
.bulk-form{margin-top:8px}.bulk-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 10px;margin-bottom:8px;border:1px solid rgba(148,163,184,.22);border-radius:12px;background:rgba(248,250,252,.78)}.bulk-left,.bulk-right{display:flex;align-items:center;gap:8px}.bulk-counter{font-size:12px;font-weight:700;color:#475569}.bulk-toolbar select{height:30px;min-width:160px;padding:0 10px;border:1px solid rgba(148,163,184,.35);border-radius:9px;background:#fff;font-size:12px}.check-col{width:34px;text-align:center!important}.check-col input,.timeline-check,.timeline-select-all input{width:14px;height:14px;accent-color:#2563eb}.timeline-select-all{display:flex;align-items:center;gap:8px;padding:8px 10px;border:1px dashed rgba(148,163,184,.35);border-radius:10px;color:#475569;font-size:12px;font-weight:700}.bulk-timeline .timeline-item{grid-template-columns:18px 14px minmax(0,1fr) auto auto}.flash-alert{margin:0 0 10px 0;padding:9px 12px;border-radius:12px;font-size:12px;font-weight:700;border:1px solid transparent}.flash-success{background:#ecfdf5;border-color:#a7f3d0;color:#047857}.flash-error{background:#fef2f2;border-color:#fecaca;color:#b91c1c}@media (max-width:760px){.bulk-toolbar{align-items:stretch;flex-direction:column}.bulk-left,.bulk-right{width:100%;justify-content:space-between}.bulk-toolbar select{flex:1;min-width:0}.check-col{width:30px}.bulk-timeline .timeline-item{grid-template-columns:18px 12px minmax(0,1fr);align-items:start}.bulk-timeline .timeline-item em,.bulk-timeline .timeline-item b{grid-column:3}}


/* Auth compact correction - v11 */
.login-page.auth-multi-page{min-height:100dvh;overflow:hidden}.auth-multi-page .login-shell.v9-auth-shell{min-height:100dvh;padding:clamp(14px,2.4vw,30px);gap:clamp(14px,2.2vw,34px)}.compact-login-hero.v9-login-hero{margin-top:clamp(18px,4vh,42px)}.v9-login-hero .threat-ring{width:104px;height:104px}.v9-login-hero .threat-ring strong{font-size:19px;margin-top:12px}.v9-login-hero .threat-ring small{font-size:9px;margin-top:-33px}.compact-login-hero.v9-login-hero h1{max-width:480px;margin:18px 0 8px;font-size:clamp(28px,3.7vw,48px);line-height:.98}.v9-login-hero p{max-width:440px;font-size:13px;line-height:1.5}.auth-metric-strip{max-width:470px;margin-top:16px;gap:8px}.auth-metric-strip div{min-height:58px;padding:10px 12px;border-radius:14px}.auth-metric-strip strong{font-size:18px}.auth-metric-strip small{margin-top:5px;font-size:10px}.auth-multi-page .login-card,.login-card.auth-card{max-width:430px;padding:18px;border-radius:20px}.auth-multi-page .compact-auth-head h2{margin:8px 0 4px;font-size:21px}.auth-multi-page .compact-auth-head p{font-size:11px}.auth-multi-page .auth-tabs{margin:12px 0 10px}.auth-multi-page .login-form{gap:8px}.auth-multi-page .form-row-compact input{height:36px}.auth-multi-page .login-submit{height:37px}.auth-multi-page .auth-note{font-size:10.5px}.auth-security-note{display:none!important}.notification-menu-head{gap:8px}.notification-head-action{margin-left:auto}.notification-head-action button{height:24px;padding:0 8px;border:1px solid rgba(37,99,235,.18);border-radius:8px;background:#eff6ff;color:#1d4ed8;font-size:11px;font-weight:800;cursor:pointer}.notification-head-action button:hover{background:#dbeafe}.mini-action.is-light{border-color:rgba(37,99,235,.18);background:#eff6ff;color:#1d4ed8}.muted-mini{color:#94a3b8;font-size:12px;font-weight:800}
@media (max-width:980px){.login-page.auth-multi-page{overflow:hidden}.auth-multi-page .login-shell.v9-auth-shell{height:100dvh;min-height:100dvh;grid-template-rows:auto 1fr;gap:10px;padding:10px}.v9-login-visual .login-brand{padding:7px 9px;border-radius:14px}.login-card.auth-card{align-self:start;max-width:440px;padding:14px}.login-panel.auth-panel{align-items:start}.auth-multi-page .compact-auth-head h2{font-size:19px}.auth-multi-page .auth-tabs{margin:9px 0}.auth-multi-page .form-row-compact input{height:34px}.auth-multi-page .login-submit{height:35px}.auth-multi-page .alert{padding:7px 9px;margin-bottom:8px}}
@media (max-width:560px){.auth-multi-page .login-shell.v9-auth-shell{padding:8px;gap:8px}.v9-login-visual .login-brand-mark{width:28px;height:32px}.v9-login-visual .login-brand-name{font-size:16px}.v9-login-visual .login-brand-tagline{font-size:9px;margin-top:2px}.login-card.auth-card{padding:12px;border-radius:16px}.auth-multi-page .mini-pill{display:none}.auth-multi-page .compact-auth-head h2{margin:0 0 3px;font-size:18px}.auth-multi-page .compact-auth-head p{font-size:10px;line-height:1.25}.auth-multi-page .auth-tab{min-height:28px;font-size:9.5px}.auth-multi-page .login-form{gap:6px}.auth-multi-page .form-row-compact{gap:3px}.auth-multi-page .form-row-compact label{font-size:10px}.auth-multi-page .form-row-compact input{height:32px;padding:0 9px}.auth-multi-page .login-submit{height:33px}.auth-multi-page .auth-note{font-size:9.5px;line-height:1.25}.auth-multi-page .alert{font-size:10.5px;line-height:1.2}.notification-menu{right:-8px;width:min(330px,calc(100vw - 18px))}}
@media (max-height:640px){.v9-login-hero{display:none}.auth-multi-page .login-shell.v9-auth-shell{grid-template-columns:minmax(0,360px) minmax(330px,430px);justify-content:center}.auth-multi-page .login-card{padding:12px}.v9-login-visual .login-brand{margin:auto 0}}
@media (max-width:980px) and (max-height:700px){.v9-login-visual{display:none!important}.auth-multi-page .login-shell.v9-auth-shell{display:flex;align-items:center;justify-content:center}.login-card.auth-card{max-width:420px}}

/* =========================================================
   Responsive navigation and auth balance - v12
   Tablet menü düzeltmesi, mobil offcanvas menü, yatay mobil uyumu.
   ========================================================= */
@media (min-width: 901px) and (max-width: 1180px) {
    :root { --sidebar-width: 226px; }
    .app-sidebar { width: var(--sidebar-width); }
    .app-main { width: calc(100% - var(--sidebar-width)); margin-left: var(--sidebar-width); }
    .brand-block > div:last-child,
    .nav-item span,
    .sidebar-footer { display: block !important; }
    .nav-item { justify-content: flex-start; padding: 0 10px; gap: 10px; }
    .global-search { width: min(420px, 44vw); }
}

@media (max-width: 900px) {
    html, body { overflow-x: hidden; }
    body.admin-shell { display: block; }
    body.sidebar-compact .brand-block > div:last-child,
    body.sidebar-compact .nav-item span,
    body.sidebar-compact .sidebar-footer { display: block !important; }
    body.sidebar-compact .nav-item { justify-content: flex-start; padding: 0 12px; }
    .app-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: min(300px, 88vw) !important;
        height: 100dvh;
        min-height: 100dvh;
        padding: 14px 12px 12px;
        overflow-y: auto;
        overscroll-behavior: contain;
        transform: translate3d(-105%,0,0);
        transition: transform 220ms ease, box-shadow 220ms ease;
        z-index: 1000;
        border-right: 1px solid rgba(255,255,255,.12);
        box-shadow: none;
    }
    body.sidebar-open .app-sidebar {
        transform: translate3d(0,0,0);
        box-shadow: 24px 0 70px rgba(0,0,0,.34);
    }
    body.sidebar-open::after {
        content: "";
        position: fixed;
        inset: 0;
        z-index: 990;
        background: rgba(2, 8, 20, .62);
        backdrop-filter: blur(2px);
    }
    .app-main { width: 100% !important; margin-left: 0 !important; }
    .brand-block { gap: 10px; padding: 0 2px 12px; }
    .brand-mark { width: 36px; height: 42px; }
    .brand-name { font-size: 18px; }
    .brand-tagline { font-size: 10.5px; }
    .sidebar-nav { gap: 5px; }
    .nav-item {
        min-height: 40px;
        gap: 10px;
        padding: 0 12px;
        border-radius: 10px;
        font-size: 13px;
        white-space: nowrap;
    }
    .nav-icon { width: 18px; height: 18px; flex: 0 0 auto; }
    .nav-item span {
        display: block !important;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .sidebar-footer { display: block !important; padding-top: 12px; }
    .status-block { padding: 10px 0 12px; }
    .status-title, .status-line { font-size: 12px; }
    .uptime-text, .copyright { font-size: 10.5px; }
    .app-topbar {
        position: sticky;
        top: 0;
        height: 58px;
        min-height: 58px;
        padding: 0 10px;
        gap: 8px;
        z-index: 800;
    }
    .sidebar-toggle { background: #eef4ff; color: #1d4ed8; }
    .global-search { height: 36px; min-width: 0; flex: 1 1 auto; border-radius: 10px; }
    .global-search .search-icon { width: 15px; height: 15px; margin-left: 10px; }
    .global-search input { padding: 0 8px; font-size: 12px; }
    .topbar-actions { gap: 5px; }
    .icon-button { width: 34px; height: 34px; border-radius: 10px; }
    .topbar-icon { width: 18px; height: 18px; }
    .avatar { width: 32px; height: 32px; font-size: 11px; }
    .profile-trigger { min-height: 36px; padding: 2px; border-radius: 11px; }
}

@media (max-width: 900px) and (orientation: landscape) {
    .app-sidebar { width: min(276px, 72vw) !important; padding: 10px; }
    .brand-block { padding-bottom: 8px; }
    .brand-mark { width: 30px; height: 35px; }
    .brand-name { font-size: 16px; }
    .brand-tagline { display: none; }
    .nav-item { min-height: 34px; font-size: 12px; border-radius: 8px; }
    .nav-icon { width: 16px; height: 16px; }
    .sidebar-footer { display: none !important; }
    .app-topbar { height: 52px; min-height: 52px; }
    .page-content { padding: 10px; }
}

@media (max-width: 520px) {
    .global-search { max-width: calc(100vw - 158px); }
    .global-search input::placeholder { color: transparent; }
    .profile-dropdown-menu,
    .notification-menu { top: 58px; left: 8px; right: 8px; width: auto; max-height: calc(100dvh - 72px); overflow-y: auto; }
}

/* v12 auth ekranı: v11 aşırı küçülmesini dengeler */
.login-page.auth-multi-page { min-height: 100dvh; overflow-x: hidden; overflow-y: auto; }
.auth-multi-page .login-shell.v9-auth-shell {
    min-height: 100dvh;
    padding: clamp(16px, 2.8vw, 34px);
    gap: clamp(16px, 2.6vw, 38px);
}
.auth-multi-page .login-card,
.login-card.auth-card {
    max-width: 460px;
    padding: 24px;
    border-radius: 22px;
}
.auth-multi-page .compact-auth-head h2 { font-size: 24px; margin: 10px 0 5px; }
.auth-multi-page .compact-auth-head p { font-size: 12px; line-height: 1.4; }
.auth-multi-page .auth-tab { min-height: 36px; font-size: 11px; }
.auth-multi-page .login-form { gap: 10px; }
.auth-multi-page .form-row-compact label { font-size: 11.5px; }
.auth-multi-page .form-row-compact input { height: 40px; font-size: 13px; padding: 0 11px; }
.auth-multi-page .login-submit { height: 42px; font-size: 13px; }
.auth-multi-page .auth-note { font-size: 11px; }

@media (max-width: 980px) {
    .login-page.auth-multi-page { overflow-y: auto; }
    .auth-multi-page .login-shell.v9-auth-shell {
        min-height: 100dvh;
        height: auto;
        grid-template-rows: auto auto;
        align-items: center;
        padding: 14px;
        gap: 14px;
    }
    .login-card.auth-card { max-width: 460px; padding: 20px; align-self: center; }
    .auth-multi-page .compact-auth-head h2 { font-size: 23px; }
    .auth-multi-page .form-row-compact input { height: 39px; }
    .auth-multi-page .login-submit { height: 41px; }
}

@media (max-width: 560px) {
    .auth-multi-page .login-shell.v9-auth-shell { padding: 12px; gap: 12px; }
    .v9-login-visual .login-brand-mark { width: 34px; height: 39px; }
    .v9-login-visual .login-brand-name { font-size: 18px; }
    .v9-login-visual .login-brand-tagline { font-size: 10px; }
    .login-card.auth-card { padding: 18px; border-radius: 18px; }
    .auth-multi-page .compact-auth-head h2 { font-size: 22px; margin: 4px 0 4px; }
    .auth-multi-page .compact-auth-head p { font-size: 11px; line-height: 1.35; }
    .auth-multi-page .auth-tabs { margin: 12px 0; grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .auth-multi-page .auth-tab { min-height: 34px; font-size: 10px; padding: 0 5px; }
    .auth-multi-page .login-form { gap: 8px; }
    .auth-multi-page .form-row-compact label { font-size: 11px; }
    .auth-multi-page .form-row-compact input { height: 38px; font-size: 12px; }
    .auth-multi-page .login-submit { height: 40px; }
    .auth-multi-page .auth-note { font-size: 10.5px; }
}

@media (max-height: 640px) and (orientation: landscape) {
    .v9-login-visual { display: none !important; }
    .auth-multi-page .login-shell.v9-auth-shell { display: flex; align-items: center; justify-content: center; padding: 10px; }
    .login-card.auth-card { max-width: 440px; padding: 16px; }
}

.row-icon-action {
    width: 28px;
    height: 28px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    border-radius: 8px;
    line-height: 1;
}
.row-action-icon { width: 15px; height: 15px; stroke-width: 2.4; }
.events-table td:last-child { text-align: center; }



/* =========================================================
   Responsive rebuild - v13
   Tablet, mobil ve yatay mobil menü kırılımları yeniden kuruldu.
   ========================================================= */
.sidebar-close {
    display: none;
}

@media (min-width: 1181px) {
    body.sidebar-compact {
        --sidebar-width: 72px;
    }

    body.sidebar-compact .app-sidebar {
        width: 72px !important;
        padding-inline: 9px !important;
        overflow: hidden;
    }

    body.sidebar-compact .brand-block {
        justify-content: center !important;
        padding-inline: 0 !important;
    }

    body.sidebar-compact .brand-block > div:last-child,
    body.sidebar-compact .nav-item span,
    body.sidebar-compact .sidebar-footer {
        display: none !important;
    }

    body.sidebar-compact .nav-item {
        justify-content: center !important;
        padding: 0 !important;
        gap: 0 !important;
    }

    body.sidebar-compact .app-main {
        width: calc(100% - 72px) !important;
        margin-left: 72px !important;
    }
}

@media (max-width: 1180px) {
    :root {
        --sidebar-width: 0px;
        --topbar-height: 58px;
    }

    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    body.admin-shell,
    body.customer-shell {
        display: block !important;
    }

    body.sidebar-open {
        overflow: hidden;
    }

    body.sidebar-compact {
        --sidebar-width: 0px !important;
    }

    .app-main,
    body.sidebar-compact .app-main {
        width: 100% !important;
        min-width: 0 !important;
        margin-left: 0 !important;
    }

    .app-sidebar,
    body.sidebar-compact .app-sidebar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        bottom: 0 !important;
        z-index: 1100 !important;
        display: flex !important;
        width: min(292px, 86vw) !important;
        height: 100dvh !important;
        min-height: 100dvh !important;
        padding: 14px 12px 12px !important;
        overflow-y: auto !important;
        overscroll-behavior: contain;
        transform: translate3d(-105%, 0, 0) !important;
        transition: transform 220ms ease, box-shadow 220ms ease !important;
        border-right: 1px solid rgba(255,255,255,.12) !important;
        box-shadow: none !important;
    }

    body.sidebar-open .app-sidebar,
    body.sidebar-open.sidebar-compact .app-sidebar {
        transform: translate3d(0, 0, 0) !important;
        box-shadow: 24px 0 70px rgba(0,0,0,.34) !important;
    }

    body.sidebar-open::after {
        content: "";
        position: fixed;
        inset: 0;
        z-index: 1090;
        background: rgba(2, 8, 20, .62);
        backdrop-filter: blur(2px);
    }

    .sidebar-close {
        position: absolute;
        top: 10px;
        right: 10px;
        z-index: 2;
        width: 32px;
        height: 32px;
        display: grid !important;
        place-items: center;
        border: 1px solid rgba(255,255,255,.15);
        border-radius: 10px;
        color: #dfeaff;
        background: rgba(255,255,255,.07);
        font-size: 22px;
        line-height: 1;
        cursor: pointer;
    }

    .app-sidebar .brand-block,
    body.sidebar-compact .app-sidebar .brand-block {
        justify-content: flex-start !important;
        gap: 10px !important;
        padding: 4px 42px 14px 2px !important;
    }

    .app-sidebar .brand-block > div:last-child,
    .app-sidebar .nav-item span,
    .app-sidebar .sidebar-footer,
    body.sidebar-compact .app-sidebar .brand-block > div:last-child,
    body.sidebar-compact .app-sidebar .nav-item span,
    body.sidebar-compact .app-sidebar .sidebar-footer {
        display: block !important;
    }

    .app-sidebar .brand-mark {
        width: 36px !important;
        height: 42px !important;
        flex: 0 0 auto;
    }

    .app-sidebar .brand-name {
        font-size: 18px !important;
        line-height: 1.05 !important;
        white-space: nowrap;
    }

    .app-sidebar .brand-tagline {
        margin-top: 3px !important;
        font-size: 10.5px !important;
        line-height: 1.25 !important;
    }

    .app-sidebar .sidebar-nav {
        gap: 5px !important;
    }

    .app-sidebar .nav-item,
    body.sidebar-compact .app-sidebar .nav-item {
        min-height: 40px !important;
        justify-content: flex-start !important;
        gap: 10px !important;
        padding: 0 12px !important;
        border-radius: 10px !important;
        font-size: 13px !important;
        white-space: nowrap;
    }

    .app-sidebar .nav-icon {
        width: 18px !important;
        height: 18px !important;
        flex: 0 0 auto;
    }

    .app-sidebar .nav-item span {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .app-sidebar .sidebar-footer {
        padding-top: 12px !important;
    }

    .app-sidebar .status-block {
        padding: 10px 0 12px !important;
    }

    .app-sidebar .status-title,
    .app-sidebar .status-line {
        font-size: 12px !important;
    }

    .app-sidebar .uptime-text,
    .app-sidebar .copyright {
        font-size: 10.5px !important;
    }

    .app-topbar {
        position: sticky;
        top: 0;
        z-index: 900 !important;
        height: var(--topbar-height) !important;
        min-height: var(--topbar-height) !important;
        display: flex !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        gap: 8px !important;
        padding: 0 10px !important;
    }

    .sidebar-toggle {
        display: grid !important;
        flex: 0 0 auto;
        color: #1d4ed8 !important;
        background: #eef4ff !important;
    }

    .global-search {
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        flex: 1 1 auto !important;
        height: 36px !important;
        border-radius: 10px !important;
    }

    .global-search .search-icon {
        width: 15px !important;
        height: 15px !important;
        margin-left: 10px !important;
    }

    .global-search input {
        min-width: 0 !important;
        padding: 0 8px !important;
        font-size: 12px !important;
    }

    .global-search kbd {
        display: none !important;
    }

    .topbar-actions {
        flex: 0 0 auto;
        gap: 5px !important;
    }

    .icon-button {
        width: 34px !important;
        height: 34px !important;
        border-radius: 10px !important;
    }

    .topbar-icon {
        width: 18px !important;
        height: 18px !important;
    }

    .avatar {
        width: 32px !important;
        height: 32px !important;
        font-size: 11px !important;
    }

    .profile-trigger {
        min-height: 36px !important;
        padding: 2px !important;
        border-radius: 11px !important;
    }

    .profile-text,
    .profile-menu-label {
        display: none !important;
    }

    .notification-menu,
    .profile-dropdown-menu {
        top: calc(100% + 8px) !important;
        right: 0 !important;
    }

    .page-content {
        width: 100%;
        min-width: 0;
        padding: 12px !important;
    }

    .page-head {
        align-items: stretch !important;
        gap: 10px !important;
    }

    .page-head h1 {
        font-size: 22px !important;
    }

    .kpi-grid,
    .metric-mini-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .charts-grid,
    .bottom-grid,
    .settings-grid,
    .profile-page-grid {
        grid-template-columns: 1fr !important;
    }

    .side-stack {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .module-toolbar {
        align-items: stretch !important;
        flex-direction: column !important;
        gap: 8px !important;
        padding: 10px 12px !important;
    }

    .toolbar-actions {
        width: 100% !important;
        flex-wrap: wrap !important;
        align-items: stretch !important;
    }

    .toolbar-actions input,
    .toolbar-actions select,
    .toolbar-actions button,
    .filter-form input,
    .filter-form select,
    .filter-form button {
        min-width: 0 !important;
        flex: 1 1 170px !important;
    }
}

@media (max-width: 760px) {
    .app-topbar {
        height: auto !important;
        min-height: 56px !important;
        flex-wrap: wrap !important;
        padding: 8px !important;
    }

    .global-search {
        order: 10;
        flex: 1 0 100% !important;
        width: 100% !important;
        height: 36px !important;
    }

    .global-search input::placeholder {
        color: #6f7e96 !important;
    }

    .page-content {
        padding: 10px !important;
    }

    .kpi-grid,
    .metric-mini-grid,
    .side-stack,
    .health-grid,
    .rule-grid,
    .plans-grid,
    .settings-grid,
    .profile-page-grid {
        grid-template-columns: 1fr !important;
    }

    .kpi-card {
        min-height: 78px !important;
    }

    .card-header-row {
        align-items: flex-start !important;
        flex-direction: column !important;
        gap: 8px !important;
    }

    .chart-legend {
        flex-wrap: wrap;
    }

    .canvas-wrap {
        height: 200px !important;
    }

    .events-table {
        min-width: 760px;
    }

    .notification-menu,
    .profile-dropdown-menu {
        position: fixed !important;
        top: 62px !important;
        left: 8px !important;
        right: 8px !important;
        width: auto !important;
        max-height: calc(100dvh - 76px) !important;
        overflow-y: auto !important;
    }
}

@media (max-width: 1180px) and (orientation: landscape) and (max-height: 560px) {
    .app-sidebar,
    body.sidebar-compact .app-sidebar {
        width: min(268px, 72vw) !important;
        padding: 9px !important;
    }

    .app-sidebar .brand-block {
        padding-bottom: 8px !important;
    }

    .app-sidebar .brand-mark {
        width: 30px !important;
        height: 35px !important;
    }

    .app-sidebar .brand-name {
        font-size: 16px !important;
    }

    .app-sidebar .brand-tagline {
        display: none !important;
    }

    .app-sidebar .nav-item {
        min-height: 34px !important;
        font-size: 12px !important;
        border-radius: 8px !important;
    }

    .app-sidebar .nav-icon {
        width: 16px !important;
        height: 16px !important;
    }

    .app-sidebar .sidebar-footer {
        display: none !important;
    }

    .app-topbar {
        height: 52px !important;
        min-height: 52px !important;
        flex-wrap: nowrap !important;
    }

    .global-search {
        order: initial !important;
        flex: 1 1 auto !important;
        width: auto !important;
    }

    .page-content {
        padding: 10px !important;
    }
}

/* v13 auth screen balance */
.login-page.auth-multi-page {
    min-height: 100svh !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

.auth-multi-page .login-shell.v9-auth-shell {
    width: min(1180px, 100%) !important;
    min-height: 100svh !important;
    height: auto !important;
    margin: 0 auto !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 460px) !important;
    align-items: center !important;
    justify-content: center !important;
    gap: clamp(18px, 3vw, 38px) !important;
    padding: clamp(18px, 3vw, 34px) !important;
}

.login-visual.v9-login-visual {
    justify-content: center !important;
}

.v9-login-visual .login-brand {
    max-width: 100%;
}

.compact-login-hero.v9-login-hero {
    margin-top: clamp(24px, 5vh, 56px) !important;
}

.login-card.auth-card {
    width: 100% !important;
    max-width: 460px !important;
    padding: 22px !important;
    border-radius: 22px !important;
}

.auth-multi-page .compact-auth-head h2 {
    margin: 10px 0 5px !important;
    font-size: 24px !important;
}

.auth-multi-page .compact-auth-head p {
    font-size: 12px !important;
    line-height: 1.4 !important;
}

.auth-multi-page .auth-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    margin: 14px 0 12px !important;
}

.auth-multi-page .auth-tab {
    min-height: 36px !important;
    font-size: 11px !important;
}

.auth-multi-page .login-form {
    gap: 9px !important;
}

.auth-multi-page .form-row-compact input {
    height: 39px !important;
    font-size: 13px !important;
}

.auth-multi-page .login-submit {
    height: 41px !important;
    font-size: 13px !important;
}

@media (max-width: 980px) {
    .auth-multi-page .login-shell.v9-auth-shell {
        width: min(520px, 100%) !important;
        min-height: 100svh !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: center !important;
        gap: 14px !important;
        padding: 16px 14px !important;
    }

    .login-visual.v9-login-visual {
        display: flex !important;
        width: 100% !important;
        justify-content: center !important;
    }

    .v9-login-visual .login-brand {
        width: 100% !important;
        padding: 10px 12px !important;
        border-radius: 16px !important;
    }

    .v9-login-hero {
        display: none !important;
    }

    .login-panel.auth-panel {
        width: 100% !important;
        align-items: stretch !important;
    }

    .login-card.auth-card {
        max-width: 100% !important;
        padding: 20px !important;
    }
}

@media (max-width: 560px) {
    .auth-multi-page .login-shell.v9-auth-shell {
        padding: 14px 12px !important;
        gap: 12px !important;
    }

    .v9-login-visual .login-brand-mark {
        width: 34px !important;
        height: 39px !important;
    }

    .v9-login-visual .login-brand-name {
        font-size: 18px !important;
    }

    .v9-login-visual .login-brand-tagline {
        font-size: 10px !important;
    }

    .login-card.auth-card {
        padding: 18px !important;
        border-radius: 18px !important;
    }

    .auth-multi-page .compact-auth-head h2 {
        font-size: 22px !important;
    }

    .auth-multi-page .auth-tab {
        min-height: 34px !important;
        padding: 0 5px !important;
        font-size: 10px !important;
    }

    .auth-multi-page .form-row-compact input {
        height: 38px !important;
        font-size: 12px !important;
    }
}

@media (max-width: 980px) and (max-height: 720px) {
    .auth-multi-page .login-shell.v9-auth-shell {
        justify-content: flex-start !important;
        padding-top: 10px !important;
        padding-bottom: 10px !important;
    }

    .login-card.auth-card {
        padding: 16px !important;
    }

    .auth-multi-page .compact-auth-head h2 {
        margin-top: 4px !important;
        font-size: 21px !important;
    }

    .auth-multi-page .auth-tabs {
        margin: 10px 0 !important;
    }

    .auth-multi-page .form-row-compact input {
        height: 36px !important;
    }

    .auth-multi-page .login-submit {
        height: 38px !important;
    }
}
