/* ============================================
   BALIKÇISIN Admin — Dark nav, light content
   ============================================ */

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

:root {
    --nav-bg:        #0d1424;
    --nav-bg-2:      #0a1020;
    --page-bg:       #f3f4f7;
    --card-bg:       #ffffff;
    --border:        #e8eaee;
    --border-2:      #eef0f3;
    --text:          #1a1f2e;
    --text-2:        #4a5160;
    --text-3:        #8a92a3;
    --text-4:        #aab1c0;
    --green:         #2dd48a;
    --green-soft:    #d8f7e8;
    --red:           #ef4f5e;
    --red-soft:      #ffe4e7;
    --blue:          #4d8bff;
    --yellow:        #f5b740;
    --cyan:          #22d3ee;
    --purple:        #a78bfa;
}

/* ── GLOBAL SCROLLBAR ── */
* {
    scrollbar-width: thin;
    scrollbar-color: #d1d5e0 transparent;
}
*::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
*::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 8px;
}
*::-webkit-scrollbar-thumb {
    background: #d1d5e0;
    border-radius: 8px;
    transition: background .2s;
}
*::-webkit-scrollbar-thumb:hover {
    background: #b0b8cc;
}
*::-webkit-scrollbar-corner {
    background: transparent;
}

html, body {
    min-height: 100%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 13px;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
    background: var(--nav-bg);
    color: var(--text);
    transition: background .3s ease;
}

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

/* ── GLOBAL SCROLLBAR ── */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 8px;
}
::-webkit-scrollbar-thumb {
    background: #d1d5e0;
    border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
    background: #b0b8cc;
}
::-webkit-scrollbar-corner {
    background: transparent;
}
/* Firefox */
* { scrollbar-width: thin; scrollbar-color: #d1d5e0 transparent; }

*{
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── TOPBAR ── */
.topbar {
    background: var(--nav-bg);
    color: #fff;
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 1000;   /* mega-panel(900) üstünde — topbar her zaman görünür */
    transition: background .3s ease;
}

.topbar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-block: 10px;
}

/* ── BRAND ── */
.brand-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-img {
    height: 30px;
    width: auto;
}

/* Auth logo */
.auth-brand-img {
    height: 40px;
    width: auto;
    display: block;
    margin: 0 auto 8px;
}

/* ── TOPBAR RIGHT ── */
.topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-wrap { position: relative; }

.search-ico {
    position: absolute;
    left: 11px; top: 50%;
    transform: translateY(-50%);
    color: #6b7895;
    font-size: 13px;
    pointer-events: none;
}

.topbar-search {
    background: rgba(83,105,118,.20);
    border: none;
    border-radius: 8px;
    padding: 7px 12px 7px 32px;
    color: #fff;
    font-size: 12px;
    width: 260px;
    height: 38px;
    outline: none;
}
.topbar-search::placeholder { color: #6b7895; }
.topbar-search:focus { background: rgba(83,105,118,.30); }

.icon-btn {
    width: 38px; height: 38px;
    border-radius: 8px;
    background: rgba(83,105,118,.20);
    border: none;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    color: #c2c8d4;
    font-size: 15px;
    position: relative;
    transition: background .15s;
}
.icon-btn:hover { background: rgba(255,255,255,0.1); color: #fff; }

.notif-dot {
    position: absolute;
    top: 6px; right: 7px;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--red);
    border: 2px solid var(--nav-bg);
}

.dropdown-toggle::after { display: none; }

/* ── NAV ROW ── */
.nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 42px;
}

.nav-links {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 24px;
    overflow-x: auto;
}

.nav-links a {
    color: #8a93a8;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    transition: color .15s;
}
.nav-links a:hover { color: #fff; }
.nav-links a.active { color: #fff; font-weight: 600; }
.nav-links a.active::before {
    content: '';
    width: 4px; height: 4px;
    border-radius: 50%;
    background: #fff;
    display: inline-block;
    flex-shrink: 0;
}

.support-btn {
    background: var(--red);
    color: #fff;
    border: none;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: opacity .15s;
}
.support-btn:hover { opacity: 0.88; }

/* ── TOPBAR DROPDOWN ── */
.topbar .dropdown-menu {
    background: #1a2540;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.topbar .dropdown-item { color: #c2c8d4; font-size: 13px; }
.topbar .dropdown-item:hover { background: rgba(255,255,255,0.06); color: #fff; }
.topbar .dropdown-item-text { color: #fff; font-size: 13px; font-weight: 600; }
.topbar .dropdown-divider { border-color: rgba(255,255,255,0.06); }
.topbar .text-danger { color: #f87171 !important; }

/* ── MAIN (light rounded content area) ── */
.main {
    padding: 18px 28px 36px;
    background: var(--page-bg);
    border-radius: 18px 18px 0 0;
    min-height: calc(100vh - 98px);
    height: calc(100vh - 98px);
    overflow: auto;
}

/* ── BREADCRUMB ── */
.breadcrumb-wrap {
    font-size: 11px;
    color: var(--text-3);
    margin-bottom: 10px;
}
.breadcrumb-wrap a { color: var(--text-3); }
.breadcrumb-wrap a:hover { color: var(--text-2); }
.breadcrumb-wrap span { color: var(--text-2); }

/* ── PAGE HEADER ── */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.page-title {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.3px;
    color: var(--text);
    margin: 0;
}
.page-actions { display: flex; gap: 8px; }

.btn-outline {
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text-2);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background .15s;
}
.btn-outline:hover { background: #fafbfc; }

.btn-primary-green {
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    border: none;
    background: var(--green);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background .15s;
}
.btn-primary-green:hover { background: #25c07d; }

/* ── KPI ROW ── */
.kpi-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    margin-bottom: 16px;
}

.kpi {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 14px 16px;
    position: relative;
    overflow: hidden;
}
.kpi-label {
    font-size: 11px;
    color: var(--text-3);
    font-weight: 500;
    margin-bottom: 8px;
}
.kpi-value {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.3px;
    margin-bottom: 12px;
    color: var(--text);
}
.kpi-pill {
    display: inline-block;
    font-size: 10px;
    font-weight: 500;
    padding: 3px 8px;
    border-radius: 5px;
    background: var(--border-2);
    color: var(--text-2);
}
.kpi-pill.red   { background: var(--red-soft);   color: var(--red); }
.kpi-pill.green { background: var(--green-soft);  color: #1a9c63; }
.kpi-pill.blue  { background: #e0ecff; color: #2563d4; }

.kpi-spark {
    position: absolute;
    right: 10px; top: 18px;
    width: 90px; height: 32px;
    opacity: 0.55;
}

/* ── CARDS ── */
.card {
    background: #fff !important;
    border: 1px solid var(--border) !important;
    border-radius: 20px !important;
    padding: 18px 20px;
    word-wrap: normal;
}
.card-head { margin-bottom: 14px; }
.card-title { font-size: 14px; font-weight: 700; margin-bottom: 2px; color: var(--text); }
.card-subtitle { font-size: 11px; color: var(--text-3); }

/* ── ROW LAYOUTS ── */
.row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}
.row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}
.row-charts {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

/* ── STAT LIST ── */
.stat-list { display: flex; flex-direction: column; }
.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-2);
    font-size: 12px;
}
.stat-row:last-child { border-bottom: none; }
.stat-row .lbl { color: var(--text-2); }
.stat-row .val { font-weight: 600; color: var(--text); }
.stat-row .val.neg { color: var(--red); }

/* ── SECTION SUBHEAD ── */
.section-sub {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-3);
    letter-spacing: 1px;
    margin-top: 18px;
    margin-bottom: 10px;
}

/* ── TRANSACTIONS ── */
.txn {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-2);
}
.txn:last-child { border-bottom: none; }
.txn-icon {
    width: 26px; height: 26px;
    border-radius: 6px;
    background: #eef3ff;
    color: #4d8bff;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.txn-body { flex: 1; min-width: 0; }
.txn-title { font-size: 12px; font-weight: 600; color: var(--text); }
.txn-meta  { font-size: 10px; color: var(--text-3); margin-top: 2px; }
.txn-tag   { font-size: 11px; font-weight: 600; padding: 2px 0; }
.txn-tag.tahsilat { color: var(--green); }
.txn-tag.tahakkuk { color: var(--red); }

/* ── DONUT CHART ── */
.donut-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 0 4px;
}
.donut {
    position: relative;
    width: 180px; height: 180px;
}
.donut-center {
    position: absolute;
    inset: 0;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
}
.donut-value { font-size: 22px; font-weight: 700; color: var(--text); }
.donut-pct   { font-size: 11px; color: var(--text-3); }

.legend {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 16px;
    margin-top: 18px;
    padding: 0 12px;
}
.legend-item {
    display: flex;
    align-items: center;
    font-size: 11px;
    color: var(--text-2);
}
.legend-item .swatch {
    width: 8px; height: 8px;
    border-radius: 50%;
    margin-right: 8px;
    flex-shrink: 0;
}
.legend-item .num {
    margin-left: auto;
    font-weight: 600;
    color: var(--text);
}

/* ── LINE CHART ── */
.line-chart-wrap {
    height: 280px;
    position: relative;
}
.x-axis {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: var(--text-3);
    padding: 4px 8px 0;
    margin-top: 4px;
}

/* ── TABLE CARD ── */
.table-card { padding: 18px 0 8px; }
.table-card .card-head { padding: 0 20px; }

.table-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 20px 14px;
}
.table-search { flex: 1; position: relative; }
.table-search input {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 12px 8px 34px;
    font-size: 12px;
    outline: none;
    color: var(--text);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238a92a3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='8'/><line x1='21' y1='21' x2='16.65' y2='16.65'/></svg>");
    background-repeat: no-repeat;
    background-position: 12px center;
}
.table-search input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(77,139,255,0.1); }

.dd {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 7px 28px 7px 12px;
    font-size: 12px;
    background: #fff;
    color: var(--text-2);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    position: relative;
    white-space: nowrap;
}
.dd::after {
    content: '';
    position: absolute;
    right: 10px; top: 50%;
    width: 6px; height: 6px;
    border-right: 1.5px solid var(--text-3);
    border-bottom: 1.5px solid var(--text-3);
    transform: translateY(-65%) rotate(45deg);
}

.tbl {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}
.tbl thead {
    background: #fafbfc;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.tbl th {
    text-align: left;
    font-weight: 600;
    color: var(--text-2);
    padding: 10px 16px;
    font-size: 11px;
    white-space: nowrap;
}
.tbl th .sort-arrow { color: var(--text-4); font-size: 9px; margin-left: 4px; }
.tbl th .sort-arrow.up { color: var(--green); }
.tbl td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-2);
    color: var(--text-2);
    white-space: nowrap;
    vertical-align: middle;
}
.tbl tr:last-child td { border-bottom: none; }
.tbl input[type="checkbox"] { width: 14px; height: 14px; accent-color: var(--green); }

.avatar-cell {
    width: 28px; height: 28px;
    border-radius: 50%;
    display: inline-block;
}
.avatar-1 { background: linear-gradient(135deg, #ffb88c 0%, #de6262 100%); }
.avatar-2 { background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%); }

.status-pill {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
}
.status-pill.pending { background: #e0ecff; color: #2563d4; }
.status-pill.success { background: var(--green-soft); color: #1a9c63; }
.status-pill.failed  { background: var(--red-soft);   color: var(--red); }

.row-action {
    color: var(--text-3);
    cursor: pointer;
    font-size: 18px;
    letter-spacing: 1px;
    background: none;
    border: none;
    padding: 0 4px;
}
.row-action:hover { color: var(--text); }

/* ── E-TEBLİGAT ── */
.etebligat-head {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
}
.etebligat-icon {
    width: 28px; height: 28px;
    border-radius: 8px;
    background: #fff1e6;
    color: #ff6f3c;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    font-size: 14px;
}
.eteb-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 10px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-2);
    font-size: 11px;
}
.eteb-row:last-of-type { border-bottom: none; }
.eteb-cell { display: flex; align-items: center; gap: 8px; }
.eteb-cell.right { justify-content: flex-end; }
.eteb-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.eteb-dot.green { background: var(--green); }
.eteb-dot.blue  { background: var(--blue); }
.eteb-dot.red   { background: var(--red); }
.eteb-lbl  { color: var(--text-2); font-weight: 500; font-size: 11px; }
.eteb-meta { font-size: 9px; color: var(--text-3); }
.eteb-num  { font-weight: 700; font-size: 13px; color: var(--text); }

.kurumlar-title {
    font-size: 9px; font-weight: 700;
    color: var(--text-3); letter-spacing: 1px;
    margin-top: 14px; margin-bottom: 8px;
}
.kurumlar { display: flex; flex-wrap: wrap; gap: 6px; }
.kurum-pill {
    font-size: 9px; font-weight: 600;
    padding: 5px 9px; border-radius: 6px;
    background: var(--border-2); color: var(--text-2);
}

/* ============================================
   HEADER POPUP PANELS (settings / profile)
   ============================================ */

.hdr-popup-wrap { position: relative; }

.hdr-popup {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 280px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.14);
    z-index: 2000;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-6px) scale(.97);
    pointer-events: none;
    transition: opacity .18s, transform .18s;
}
.hdr-popup.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.hpop-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px 10px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    border-bottom: 1px solid var(--border-2);
}
.hpop-head i { color: var(--text-3); font-size: 14px; }

.hpop-section-title {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-4);
    letter-spacing: .8px;
    text-transform: uppercase;
    padding: 10px 16px 4px;
}

.hpop-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background .12s;
    color: inherit;
}
.hpop-item:hover { background: #f7f8fa; }

.hpop-item-icon {
    width: 32px; height: 32px;
    border-radius: 8px;
    background: #f0f2f5;
    color: var(--text-2);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.hpop-item-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    text-align: left;
}
.hpop-item-title { font-size: 12px; font-weight: 600; color: var(--text); }
.hpop-item-sub   { font-size: 10px; color: var(--text-3); }

.hpop-arrow { font-size: 10px; color: var(--text-4); flex-shrink: 0; }

.hpop-divider { border: none; border-top: 1px solid var(--border-2); margin: 4px 0; }

/* Toggle switch */
.hpop-toggle {
    width: 32px; height: 18px;
    border-radius: 9px;
    background: #dde1ea;
    flex-shrink: 0;
    position: relative;
    transition: background .2s;
}
.hpop-toggle::after {
    content: '';
    position: absolute;
    top: 2px; left: 2px;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.18);
    transition: transform .2s;
}
.hpop-toggle.on { background: var(--blue); }
.hpop-toggle.on::after { transform: translateX(14px); }

/* Profile popup wider */
.profile-popup { width: 300px; }

.prof-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: linear-gradient(135deg, #0d1424 0%, #152040 100%);
}
.prof-avatar {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--blue), var(--purple));
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; font-weight: 700;
    flex-shrink: 0;
}
.prof-info { flex: 1; min-width: 0; }
.prof-name  { font-size: 13px; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prof-email { font-size: 10px; color: rgba(255,255,255,0.5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 2px 0 5px; }
.prof-role-badge {
    font-size: 9px; font-weight: 700;
    padding: 2px 8px; border-radius: 5px;
    background: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: .5px;
}

.hpop-logout .hpop-item-title { color: var(--red); }

/* Theme color swatches */
.hpop-theme-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    cursor: default;
}
.hpop-theme-row:hover { background: none; }
.hpop-theme-label-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}
.theme-swatches {
    display: flex;
    gap: 6px;
    padding: 0 4px 4px 44px;
    flex-wrap: wrap;
}
.theme-swatch {
    width: 26px; height: 26px;
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform .15s, border-color .15s;
    padding: 0;
    outline: none;
}
.theme-swatch:hover { transform: scale(1.12); }
.theme-swatch.active {
    border-color: #fff;
    box-shadow: 0 0 0 2px var(--blue);
    transform: scale(1.1);
}

/* ============================================
   NOTIFICATIONS PAGE
   ============================================ */

.notif-page-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 13px 14px;
    border: none;
    background: none;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-3);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: color .15s, border-color .15s;
    white-space: nowrap;
}
.notif-page-tab:hover { color: var(--text-2); }
.notif-page-tab.active { color: var(--blue); border-bottom-color: var(--blue); font-weight: 600; }

.notif-page-tab-badge {
    font-size: 9px; font-weight: 700;
    padding: 1px 6px; border-radius: 10px;
    background: var(--border-2); color: var(--text-3);
    min-width: 18px; text-align: center;
}
.notif-page-tab-badge.red { background: var(--red-soft); color: var(--red); }

/* Notification table */
.notif-tbl th { font-size: 10px; letter-spacing: .6px; }
.notif-tbl td { vertical-align: middle; }

.notif-tbl-icon {
    width: 32px; height: 32px;
    border-radius: 9px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 13px;
}
.notif-tbl-icon.email { background: #e8f0ff; color: var(--blue); }
.notif-tbl-icon.sms   { background: #f0eaff; color: var(--purple); }
.notif-tbl-icon.email.failed { background: var(--red-soft); color: var(--red); }
.notif-tbl-icon.sms.failed   { background: var(--red-soft); color: var(--red); }

.notif-tbl-subj {
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.notif-tbl-tpl {
    font-size: 10px;
    color: var(--text-4);
    background: var(--border-2);
    padding: 1px 6px;
    border-radius: 4px;
    display: inline-block;
    margin-top: 3px;
}
.notif-tbl-content {
    font-size: 11px;
    color: var(--text-3);
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 360px;
}
.notif-tbl-recip {
    font-size: 11px;
    color: var(--text-2);
    font-family: 'Courier New', monospace;
}
.notif-tbl-time {
    font-size: 11px;
    color: var(--text-3);
    white-space: nowrap;
}

.notif-chan-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 6px;
    white-space: nowrap;
}
.notif-chan-badge.email { background: #e8f0ff; color: var(--blue); }
.notif-chan-badge.sms   { background: #f0eaff; color: var(--purple); }

/* ============================================
   NOTIFICATION PANEL (right-side drawer)
   ============================================ */

.notif-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.32);
    z-index: 1090;
    backdrop-filter: blur(3px);
    animation: fadeIn .2s ease;
}
.notif-overlay.open { display: block; }

.notif-panel {
    position: fixed;
    top: 0; right: 0;
    width: 420px;
    height: 100vh;
    background: #f7f6f3;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform .28s cubic-bezier(.4,0,.2,1);
    box-shadow: -4px 0 40px rgba(0,0,0,0.13);
}
.notif-panel.open { transform: translateX(0); }

/* Header */
.notif-panel-header {
    background: #fff;
    padding: 20px 20px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    border-bottom: 1px solid #e8e6e1;
}
.notif-panel-title {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}
.notif-panel-icon {
    width: 38px; height: 38px;
    border-radius: 10px;
    background: #f0f0ee;
    border: 1px solid #e4e2dc;
    display: flex; align-items: center; justify-content: center;
    color: #555;
    font-size: 15px;
    flex-shrink: 0;
}
.notif-panel-heading {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}
.notif-panel-sub {
    font-size: 11px;
    color: #888;
    margin-top: 2px;
}
.notif-count-badge {
    background: #e63946;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 100px;
    min-width: 20px;
    text-align: center;
    display: none;
    flex-shrink: 0;
}
.notif-count-badge.visible { display: inline-block; }
.notif-panel-actions { display: flex; align-items: center; gap: 6px; margin-left: 8px; }
.notif-action-btn {
    width: 32px; height: 32px;
    border-radius: 8px;
    background: #f0f0ee;
    border: 1px solid #e4e2dc;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    color: #666;
    font-size: 13px;
    transition: background .12s, color .12s;
}
.notif-action-btn:hover { background: #e8e6e1; color: #1a1a1a; }

/* List */
.notif-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px 12px;
    scrollbar-width: thin;
    scrollbar-color: #d1d5e0 transparent;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.notif-list::-webkit-scrollbar              { width: 5px; }
.notif-list::-webkit-scrollbar-track        { background: #f3f4f7; border-radius: 8px; }
.notif-list::-webkit-scrollbar-thumb        { background: #d1d5e0; border-radius: 8px; }
.notif-list::-webkit-scrollbar-thumb:hover  { background: #b0b8cc; }

/* Date group header */
.notif-date-group {
    padding: 8px 4px 2px;
    font-size: 10px;
    font-weight: 700;
    color: #999;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

/* Notification item — card style */
.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 13px 14px;
    cursor: pointer;
    transition: box-shadow .12s, transform .1s;
    border: 1px solid #e8e6e1;
    border-radius: 12px;
    background: #fff;
    position: relative;
}
.notif-item:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transform: translateY(-1px);
}
.notif-item.notif-new {
    animation: notifSlideIn .35s ease;
    border-color: #c8d8ff;
    background: #f5f8ff;
}

.notif-item-icon {
    width: 38px; height: 38px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    font-size: 15px;
}
.notif-item-icon.email { background: #e8f0ff; color: #3b6fd4; }
.notif-item-icon.sms   { background: #f0eaff; color: #7c3aed; }
.notif-item-icon.email.failed { background: #fff0f0; color: #e63946; }
.notif-item-icon.sms.failed   { background: #fff0f0; color: #e63946; }

.notif-item-body { flex: 1; min-width: 0; }
.notif-item-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 3px;
}
.notif-item-subject {
    font-size: 12px;
    font-weight: 600;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}
.notif-item-time {
    font-size: 10px;
    color: #aaa;
    flex-shrink: 0;
    white-space: nowrap;
}
.notif-item-meta {
    font-size: 11px;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 6px;
}
.notif-item-footer {
    display: flex;
    align-items: center;
    gap: 6px;
}
.notif-item-template {
    font-size: 10px;
    font-weight: 500;
    color: #999;
    background: #f0f0ee;
    border: 1px solid #e4e2dc;
    padding: 2px 7px;
    border-radius: 5px;
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notif-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 5px;
}
.notif-status.success { background: #edfaf3; color: #1a9c63; }
.notif-status.failed  { background: #fff0f0; color: #e63946; }
.notif-status.pending { background: #fffbeb; color: #b45309; }
.notif-status.processing { background: #eff6ff; color: #2563d4; }

/* Empty state */
.notif-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 220px;
    color: #bbb;
    gap: 8px;
}
.notif-empty i { font-size: 36px; opacity: 0.35; }
.notif-empty p { font-size: 13px; margin: 0; color: #aaa; }

/* Loading */
.notif-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 160px;
    gap: 10px;
    color: #aaa;
    font-size: 12px;
}
.notif-spinner {
    width: 18px; height: 18px;
    border: 2px solid #e0e0e0;
    border-top-color: #555;
    border-radius: 50%;
    animation: spin .6s linear infinite;
}

/* Footer */
.notif-panel-footer {
    border-top: 1px solid #e8e6e1;
    padding: 14px 20px;
    flex-shrink: 0;
    background: #fff;
}
.notif-footer-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 500;
    color: #555;
    text-decoration: none;
    transition: color .15s;
}
.notif-footer-link:hover { color: #1a1a1a; }

/* Bell badge */
.notif-bell-badge {
    position: absolute;
    top: 5px; right: 6px;
    min-width: 16px; height: 16px;
    border-radius: 8px;
    background: #e63946;
    border: 2px solid transparent;
    font-size: 8px;
    font-weight: 700;
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
}
.notif-bell-badge.visible { display: flex; }

/* Bell pulse on new notification */
@keyframes bellPulse {
    0%,100% { transform: scale(1); }
    25%      { transform: scale(1.18) rotate(-8deg); }
    75%      { transform: scale(1.18) rotate(8deg); }
}
.notif-bell-pulse { animation: bellPulse .5s ease; }

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
@keyframes notifSlideIn {
    from { transform: translateX(20px); opacity: 0; }
    to   { transform: translateX(0);    opacity: 1; }
}

/* ============================================
   CHANGE PASSWORD MODAL (cpwd)
   ============================================ */

#changePwdModal .modal-content,
#changePwdModal .modal-dialog { background: transparent; border: none; box-shadow: none; }

.cpwd-card {
    background: #fff;
    border-radius: 18px;
    border: 1px solid #e8e6e1;
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
    overflow: hidden;
}

.cpwd-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 24px 24px 20px;
    border-bottom: 1px solid #f0eeea;
    gap: 14px;
}
.cpwd-header-left {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.cpwd-icon {
    width: 42px; height: 42px;
    border-radius: 12px;
    background: #f0f0ee;
    border: 1px solid #e4e2dc;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    color: #444;
    flex-shrink: 0;
}
.cpwd-title {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
}
.cpwd-subtitle {
    font-size: 12px;
    color: #888;
    margin-top: 3px;
}
.cpwd-close {
    width: 30px; height: 30px;
    border-radius: 8px;
    border: 1px solid #e4e2dc;
    background: #f7f6f3;
    display: flex; align-items: center; justify-content: center;
    color: #888;
    font-size: 16px;
    cursor: pointer;
    transition: background .12s, color .12s;
    flex-shrink: 0;
}
.cpwd-close:hover { background: #edecea; color: #1a1a1a; }

.cpwd-body {
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cpwd-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}
.cpwd-label {
    font-size: 12px;
    font-weight: 500;
    color: #555;
}
.cpwd-input-wrap {
    position: relative;
}
.cpwd-input {
    width: 100%;
    height: 42px;
    border: 1px solid #e0ddd8;
    border-radius: 10px;
    padding: 0 38px 0 12px;
    font-size: 13px;
    color: #1a1a1a;
    background: #faf9f7;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}
.cpwd-input:focus {
    border-color: #a0a0a0;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.06);
}
.cpwd-input::placeholder { color: #bbb; }
.cpwd-eye {
    position: absolute;
    right: 10px; top: 50%;
    transform: translateY(-50%);
    background: none; border: none;
    color: #bbb; font-size: 14px;
    cursor: pointer; padding: 2px;
    transition: color .12s;
}
.cpwd-eye:hover { color: #555; }

.cpwd-divider { border: none; border-top: 1px solid #f0eeea; }

.cpwd-row2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.cpwd-alert {
    font-size: 12px;
    padding: 10px 14px;
    border-radius: 9px;
    border: 1px solid;
}
.cpwd-alert.alert-success { background: #edfaf3; border-color: #b7e8ce; color: #1a7a4a; }
.cpwd-alert.alert-danger  { background: #fff0f0; border-color: #fbbaba; color: #c0392b; }
.cpwd-alert.alert-warning { background: #fffbeb; border-color: #fde68a; color: #92400e; }

.cpwd-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 16px 24px;
    border-top: 1px solid #f0eeea;
    background: #faf9f7;
}
.cpwd-btn-cancel {
    height: 38px;
    padding: 0 18px;
    border: 1px solid #e0ddd8;
    border-radius: 9px;
    background: #fff;
    font-size: 13px;
    font-weight: 500;
    color: #555;
    cursor: pointer;
    transition: background .12s, color .12s;
}
.cpwd-btn-cancel:hover { background: #f0eeea; color: #1a1a1a; }
.cpwd-btn-save {
    height: 38px;
    padding: 0 20px;
    border: none;
    border-radius: 9px;
    background: #1a1a1a;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    display: flex; align-items: center; gap: 4px;
    transition: background .12s, opacity .12s;
}
.cpwd-btn-save:hover { background: #333; }
.cpwd-btn-save:disabled { opacity: 0.6; cursor: not-allowed; }

/* ── RESPONSIVE ── */
@media (max-width: 1200px) {
    .kpi-row { grid-template-columns: repeat(3, 1fr); }
    .row-3   { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
    .row-2, .row-3, .row-charts { grid-template-columns: 1fr; }
    .kpi-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1000px) {
    .topbar { padding: 0 14px; }
    .main { padding: 14px 14px 28px; border-radius: 12px 12px 0 0;height: calc(100vh - 58px);min-height: calc(100vh - 58px); }
    .topbar-search { width: 160px; }
    .nav-links { gap: 14px; overflow-x: auto; }
    .kpi-row { grid-template-columns: 1fr 1fr; }
}

/* ═══════════════════════════════════════════
   MOBİL HAMBURGER + DRAWER
═══════════════════════════════════════════ */

/* Hamburger butonu — sadece mobilde görünür */
.mobile-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 38px; height: 38px;
    padding: 8px;
    background: rgba(255,255,255,.1);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    flex-shrink: 0;
}
.hbg-bar {
    display: block;
    width: 18px; height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform .28s cubic-bezier(.4,0,.2,1), opacity .2s;
    transform-origin: center;
}
/* Açık durumda X şekli */
.mobile-hamburger.is-open .hbg-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-hamburger.is-open .hbg-bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.mobile-hamburger.is-open .hbg-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Overlay */
.mob-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(3px);
    z-index: 1099;
    opacity: 0;
    transition: opacity .3s;
}
.mob-overlay.visible { display: block; opacity: 1; }

/* Drawer */
.mob-drawer {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: min(340px, 90vw);
    background: var(--nav-bg, #0d1527);
    z-index: 1100;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform .32s cubic-bezier(.16,1,.3,1);
    overflow: hidden;
}
.mob-drawer.open {
    transform: translateX(0);
}

/* Drawer — Header */
.mob-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    background: rgba(0,0,0,.18);
    flex-shrink: 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.mob-close-btn {
    width: 34px; height: 34px;
    border-radius: 8px;
    background: rgba(255,255,255,.1);
    border: none;
    color: #fff;
    font-size: 20px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: background .15s;
}
.mob-close-btn:hover { background: rgba(255,255,255,.2); }

/* Drawer — Arama */
.mob-drawer-search {
    position: relative;
    padding: 14px 20px 10px;
    flex-shrink: 0;
}
.mob-drawer-search .bi-search {
    position: absolute;
    left: 32px; top: 50%;
    transform: translateY(-50%);
    color: #5a6a8a;
    font-size: 13px;
}
.mob-search-input {
    width: 100%;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 10px;
    padding: 9px 14px 9px 34px;
    color: #fff;
    font-size: 13px;
    outline: none;
    transition: background .15s, border-color .15s;
}
.mob-search-input::placeholder { color: #5a6a8a; }
.mob-search-input:focus {
    background: rgba(255,255,255,.11);
    border-color: rgba(37,99,235,.6);
}

/* Drawer — Nav */
.mob-nav {
    flex: 1;
    overflow-y: auto;
    padding: 8px 12px 12px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.15) transparent;
}
.mob-nav::-webkit-scrollbar        { width: 4px; }
.mob-nav::-webkit-scrollbar-track  { background: transparent; }
.mob-nav::-webkit-scrollbar-thumb  { background: rgba(255,255,255,.15); border-radius: 8px; }
.mob-nav::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.28); }

/* Düz bağlantı */
.mob-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    color: #94a3b8;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background .14s, color .14s;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}
.mob-link:hover { background: rgba(255,255,255,.07); color: #e2e8f0; }
.mob-link.active { background: rgba(37,99,235,.18); color: #fff; font-weight: 600; }

/* Dropdown toggle */
.mob-group-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 10px;
    color: #e2e8f0;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    transition: background .14s;
}
.mob-group-toggle:hover { background: rgba(255,255,255,.07); }
.mob-group-toggle.is-open { background: rgba(37,99,235,.14); color: #60a5fa; }

.mob-group-toggle-left { display: flex; align-items: center; gap: 10px; }

.mob-group-caret {
    width: 18px; height: 18px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    color: #5a6a8a;
    transition: transform .24s cubic-bezier(.4,0,.2,1);
}
.mob-group-toggle.is-open .mob-group-caret { transform: rotate(180deg); }

/* Alt menü (sub) */
.mob-sub {
    display: none;
    padding: 4px 0 4px 16px;
    border-left: 2px solid rgba(37,99,235,.25);
    margin: 2px 0 4px 20px;
}
.mob-sub.open { display: block; animation: mobSubIn .22s cubic-bezier(.16,1,.3,1); }
@keyframes mobSubIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Alt grup başlığı */
.mob-sub-group-title {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .07em;
    color: #475569;
    text-transform: uppercase;
    padding: 10px 10px 4px;
}

/* Alt menü linki */
.mob-sub-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: background .13s, color .13s;
    margin-bottom: 2px;
}
.mob-sub-link:hover { background: rgba(255,255,255,.07); color: #e2e8f0; }
.mob-sub-link-ico {
    width: 28px; height: 28px;
    border-radius: 7px;
    background: rgba(37,99,235,.15);
    color: #60a5fa;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
}

/* Drawer — Footer */
.mob-drawer-footer {
    flex-shrink: 0;
    padding: 14px 20px;
    border-top: 1px solid rgba(255,255,255,.07);
    background: rgba(0,0,0,.2);
}
.mob-user {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.mob-user-avatar {
    width: 38px; height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.mob-user-name { font-size: 13px; font-weight: 600; color: #e2e8f0; }
.mob-user-email { font-size: 11px; color: #5a6a8a; margin-top: 1px; }
.mob-logout-btn {
    width: 100%;
    display: flex; align-items: center; justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 10px;
    background: rgba(239,68,68,.12);
    border: 1px solid rgba(239,68,68,.2);
    color: #f87171;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .14s;
}
.mob-logout-btn:hover { background: rgba(239,68,68,.22); }

/* ─ Mobile breakpoint ─ */
@media (max-width: 1000px) {
    /* Hamburger göster */
    .mobile-hamburger { display: flex; }

    /* Arama ve nav-row gizle */
    .search-wrap { display: none; }
    .nav-row { display: none; }

    /* Topbar sağındaki ikonları küçült */
    .topbar-right { gap: 6px; }
}

@media (max-width: 480px) {
    /* Çok küçük ekranda bildirim/ayar ikonlarını da gizle, sadece hamburger kalsın */
    #notifBellBtn, #settingsWrap, #profileWrap { display: none; }
}

/* ============================================
   AUTH PAGES (dark)
   ============================================ */

.auth-body {
    min-height: 100vh;
    background: linear-gradient(135deg, #070d1a 0%, #0b1120 50%, #0a1428 100%);
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
}

.auth-container { width: 100%; max-width: 420px; }

.auth-card {
    background: rgba(20,31,46,0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 40px 36px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.6);
}

.auth-logo { text-align: center; margin-bottom: 32px; }
.brand-main { color: #ffffff; font-size: 24px; font-weight: 800; letter-spacing: 1px; }
.brand-dot  { color: #22d3ee; font-weight: 700; font-size: 22px; }
.auth-subtitle { color: rgba(255,255,255,0.35); font-size: 13px; margin: 6px 0 0; }

.auth-form .form-label { color: rgba(255,255,255,0.7); font-size: 13px; font-weight: 500; margin-bottom: 6px; }
.input-wrapper { position: relative; }
.input-icon {
    position: absolute;
    left: 12px; top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.3);
    font-size: 15px;
    pointer-events: none;
    z-index: 1;
}

.auth-input {
    background: rgba(255,255,255,0.05) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    color: #ffffff !important;
    padding-left: 38px !important;
    height: 44px;
    border-radius: 6px !important;
    font-size: 14px !important;
    transition: border-color .15s, box-shadow .15s !important;
}
.auth-input::placeholder { color: rgba(255,255,255,0.2) !important; }
.auth-input:focus {
    background: rgba(255,255,255,0.08) !important;
    border-color: rgba(34,211,238,0.5) !important;
    box-shadow: 0 0 0 3px rgba(34,211,238,0.1) !important;
    outline: none !important;
}

.password-toggle {
    position: absolute;
    right: 10px; top: 50%;
    transform: translateY(-50%);
    background: none; border: none;
    color: rgba(255,255,255,0.3);
    cursor: pointer; padding: 4px; font-size: 15px;
    transition: color .15s;
}
.password-toggle:hover { color: rgba(255,255,255,0.7); }

.auth-btn {
    width: 100%; height: 44px;
    background: linear-gradient(135deg, #0ea472, #10b981);
    border: none; border-radius: 6px;
    color: #fff; font-size: 14px; font-weight: 600;
    cursor: pointer;
    transition: opacity .15s, transform .1s;
}
.auth-btn:hover  { opacity: 0.9; }
.auth-btn:active { transform: scale(0.99); }

.tfa-info { text-align: center; }
.tfa-icon {
    width: 54px; height: 54px;
    background: rgba(34,211,238,0.1);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 14px;
    font-size: 24px; color: #22d3ee;
}
.tfa-desc   { color: rgba(255,255,255,0.65); font-size: 13px; margin: 0 0 6px; }
.tfa-expire { color: rgba(255,255,255,0.4);  font-size: 12px; margin: 0; }

.tfa-code-input {
    font-size: 22px !important; font-weight: 700 !important;
    letter-spacing: 12px !important; padding-left: 20px !important;
    text-align: center !important;
}

.back-link { color: rgba(255,255,255,0.35); font-size: 13px; text-decoration: none; transition: color .15s; }
.back-link:hover { color: rgba(255,255,255,0.75); }

.alert-danger {
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.25);
    color: #fca5a5;
    border-radius: 6px; font-size: 13px;
}

/* ═══════════════════════════════════════════
   MEGA MENU  (tek tanım)
═══════════════════════════════════════════ */

/* ── Sarıcı ── */
.mm-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

/* ── Toggle düğmesi ── */
.mm-toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: rgba(255,255,255,.78);
    font-size: 13px;
    font-weight: 500;
    padding: 4px 6px;
    border-radius: 6px;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: color .15s, background .15s;
}
.mm-toggle:hover        { color: #fff; background: rgba(255,255,255,.08); }
.mm-toggle.active       { color: #fff; }
.mm-wrap.mm-open .mm-toggle { color: #fff; background: rgba(255,255,255,.12); }

.mm-caret { transition: transform .22s cubic-bezier(.4,0,.2,1); flex-shrink: 0; }
.mm-wrap.mm-open .mm-caret { transform: rotate(180deg); }

/* ── Panel: ortalanmış, topbar altında ── */
.mm-panel {
    display: none;
    position: fixed;
    left: 50%;
    top: var(--topbar-bottom, 112px);
    width: min(1200px, calc(100vw - 20px));
    transform: translateX(-50%);
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 16px 48px rgba(0,0,0,.13), 0 4px 12px rgba(0,0,0,.06);
    z-index: 900;
    overflow: hidden;
    animation: mmFadeIn .2s cubic-bezier(.16,1,.3,1) both;margin-top: 10px;;
}
.mm-wrap.mm-open .mm-panel { display: block; }

@keyframes mmFadeIn {
    from { opacity: 0; transform: translateX(-50%) translateY(-8px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ── İç satır: gruplar (sol) + önizleme (sağ) ── */
.mm-inner {
    display: flex;
    align-items: stretch;
    width: 100%;
    min-height: 240px;
    max-height: calc(100vh - var(--topbar-bottom, 112px) - 24px);
    overflow: hidden;
}

/* ── Sol: grup alanı ── */
.mm-groups {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    align-content: flex-start;
    padding: 20px 0 20px 24px;
    overflow-y: auto;
    gap: 0;
    scrollbar-width: thin;
    scrollbar-color: #d1d5e0 transparent;
}
.mm-groups::-webkit-scrollbar              { width: 5px; }
.mm-groups::-webkit-scrollbar-track        { background: #f3f4f7; border-radius: 8px; }
.mm-groups::-webkit-scrollbar-thumb        { background: #d1d5e0; border-radius: 8px; }
.mm-groups::-webkit-scrollbar-thumb:hover  { background: #b0b8cc; }

/* Her grup = %25 → 4 sütun */
.mm-group {
    flex: 0 0 30%;
    max-width: 30%;
    padding: 0 20px 16px 0;
    box-sizing: border-box;
}

/* 5. gruptan yeni satır */
.mm-group:nth-child(n+5) {
    padding-top: 16px;
    border-top: 1px solid #f0f2f8;
}

/* Grup başlığı */
.mm-group-title {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .09em;
    color: #94a3b8;
    text-transform: uppercase;
    margin-bottom: 8px;
    padding: 0 0 6px 10px;
}

/* ── Menü öğesi ── */
.mm-item {
    display: flex;
    align-items: center;
    gap: 10px !important;
    padding: 7px 10px !important;
    border-radius: 8px;
    text-decoration: none;
    color: #1e293b;
    transition: background .12s, box-shadow .12s;
    margin-bottom: 10px;
    width: 100%;
    box-sizing: border-box;
}
.mm-item:hover,
.mm-item.mm-item-on {
    background: #f0f4ff;
    box-shadow: inset 0 0 0 1px rgba(37,99,235,.08);
}

.mm-item-ico {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: #f0f4ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    transition: background .12s, color .12s;
}
.mm-item:hover .mm-item-ico,
.mm-item.mm-item-on .mm-item-ico {
    background: #dbeafe;
    color: #1d4ed8;
}

.mm-item-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}
.mm-item-label {
    font-size: 12px;
    font-weight: 600;
    color: #0f172a;
    line-height: 120%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mm-item-desc {
    font-size: 10px;
    color: #64748b;
    font-weight: 200;
    line-height: 120%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Sağ: Önizleme paneli ── */
.mm-preview {
    width: 280px;
    flex-shrink: 0;
    border-left: 1px solid #e2e8f0;
    background: linear-gradient(155deg, #f8faff 0%, #eef2ff 60%, #e0e7ff 100%);
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 24px 22px;
}

/* Varsayılan (hover öncesi) içerik */
.mm-prev-default {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
}
.mm-prev-def-ico {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(37,99,235,.16);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #2563eb;
    margin-bottom: 4px;
}
.mm-prev-def-title {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
}
.mm-prev-def-sub {
    font-size: 12px;
    color: #64748b;
    line-height: 1.7;
}

/* Hover sonrası içerik */
.mm-prev-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    animation: mmPrevIn .16s cubic-bezier(.16,1,.3,1);
}
@keyframes mmPrevIn {
    from { opacity: 0; transform: translateY(5px); }
    to   { opacity: 1; transform: translateY(0); }
}

.mm-prev-ico {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(37,99,235,.16);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #2563eb;
    margin-bottom: 4px;
}

.mm-prev-lbl {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
}
.mm-prev-desc {
    font-size: 12.5px;
    color: #475569;
    line-height: 1.65;
}
.mm-prev-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
    margin-top: 4px;
    padding: 7px 16px;
    border-radius: 8px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    transition: background .12s, border-color .12s;
    align-self: flex-start;
}
.mm-prev-link:hover {
    background: #dbeafe;
    border-color: #93c5fd;
}

/* ── Mega Menu Responsive ── */
/* Panel genişliği min() ile zaten otomatik, ekstra kural gerekmez */

@media (max-width: 900px) {
    /* Önizleme panelini gizle */
    .mm-preview { display: none; }

    /* Gruplar tam genişlik */
    .mm-groups { padding: 16px; }

    /* 3 sütun */
    .mm-group {
        flex: 0 0 33.333%;
        max-width: 33.333%;
        border-right: none !important;
    }
}

@media (max-width: 600px) {
    /* 2 sütun */
    .mm-group {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .mm-item-desc { display: none; }
}