/* ==========================================================
 * Netlojik Müşteri Portalı - Kurumsal Tema (v2)
 * ========================================================== */

:root {
    /* Marka renkleri */
    --nl-navy:           #0d2847;          /* Üst bar / brand authority */
    --nl-navy-2:         #112f54;
    --nl-navy-3:         #18406e;
    --nl-accent-gold:    #c69749;          /* İnce vurgu çizgisi */
    --nl-primary:        #14589d;          /* Etkileşim mavisi */
    --nl-primary-dark:   #0f4677;
    --nl-primary-soft:   #e7f0f9;
    --nl-primary-border: #c1d5ec;

    /* Yüzeyler */
    --nl-body:           #eef2f6;
    --nl-surface:        #ffffff;
    --nl-surface-2:      #fafbfc;
    --nl-surface-3:      #f4f6f9;

    --nl-border:         #d8dde5;
    --nl-border-soft:    #e9ecf1;
    --nl-border-strong:  #c4cbd6;

    /* Tipografi */
    --nl-text:           #1f2937;
    --nl-text-strong:    #0d2847;
    --nl-text-muted:     #5b6776;
    --nl-text-faint:     #8a94a3;

    /* Durum renkleri */
    --nl-success:        #15693f;
    --nl-success-bg:     #e6f1ec;
    --nl-warning:        #8a5e0f;
    --nl-warning-bg:     #faf1de;
    --nl-danger:         #952018;
    --nl-danger-bg:      #fae9e6;
    --nl-info:           #14589d;
    --nl-info-bg:        #e7f0f9;

    --nl-radius:         3px;
    --nl-radius-md:      4px;
    --nl-radius-lg:      6px;

    --nl-header-h:       54px;
    --nl-context-h:      36px;
    --nl-sidebar-w:      232px;

    --nl-shadow-sm:      0 1px 2px rgba(13, 40, 71, .06);
    --nl-shadow:         0 2px 4px rgba(13, 40, 71, .08);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--nl-body);
    color: var(--nl-text);
    font-size: 13.5px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: var(--nl-primary); text-decoration: none; }
a:hover { color: var(--nl-primary-dark); text-decoration: underline; }

h1, h2, h3, h4, h5, h6 {
    color: var(--nl-text-strong);
    font-weight: 600;
    letter-spacing: -.012em;
    margin: 0;
}

/* ==========================================================
 * AUTH (login / register / 2fa) - SPLIT KURUMSAL LAYOUT
 * ========================================================== */
.auth-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    background: var(--nl-surface);
}
.auth-layout .auth-brand {
    background:
        linear-gradient(135deg, rgba(13,40,71,.92) 0%, rgba(17,47,84,.94) 60%, rgba(24,64,110,.92) 100%),
        radial-gradient(circle at 20% 80%, rgba(198,151,73,.18) 0%, transparent 40%);
    background-color: var(--nl-navy);
    color: #f0f4f8;
    padding: 56px 52px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-right: 4px solid var(--nl-accent-gold);
    position: relative;
}
.auth-layout .auth-brand::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(198,151,73,.4), transparent);
}
.auth-layout .auth-brand .brand-mark {
    display: flex; align-items: center; gap: 12px;
}
.auth-layout .auth-brand .brand-mark .logo {
    width: 44px; height: 44px;
    background: var(--nl-accent-gold);
    color: var(--nl-navy);
    border-radius: var(--nl-radius);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 18px;
    letter-spacing: -.5px;
}
.auth-layout .auth-brand .brand-mark .name {
    font-size: 18px; font-weight: 700; letter-spacing: .4px;
}
.auth-layout .auth-brand .brand-mark .name small {
    display: block; font-weight: 400; font-size: 11px; opacity: .7; letter-spacing: .8px; text-transform: uppercase;
}
.auth-layout .auth-brand h2 {
    font-size: 28px;
    line-height: 1.25;
    color: #fff;
    font-weight: 600;
    letter-spacing: -.02em;
    margin-bottom: 16px;
}
.auth-layout .auth-brand p { color: rgba(240,244,248,.78); font-size: 14px; line-height: 1.65; max-width: 440px; }
.auth-layout .auth-brand ul.features {
    list-style: none; padding: 0; margin: 24px 0 0; max-width: 440px;
}
.auth-layout .auth-brand ul.features li {
    padding: 9px 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
    font-size: 13px;
    color: rgba(240,244,248,.85);
    display: flex; align-items: center; gap: 12px;
}
.auth-layout .auth-brand ul.features li i { color: var(--nl-accent-gold); font-size: 12px; }
.auth-layout .auth-brand .legal { font-size: 11.5px; color: rgba(240,244,248,.55); letter-spacing: .3px; }

.auth-layout .auth-form {
    display: flex; align-items: center; justify-content: center;
    padding: 48px 52px;
}
.auth-layout .auth-form-inner {
    width: 100%; max-width: 380px;
}
.auth-layout .auth-form-inner h1 {
    font-size: 22px; font-weight: 600; color: var(--nl-text-strong); margin-bottom: 4px; letter-spacing: -.02em;
}
.auth-layout .auth-form-inner .lead {
    color: var(--nl-text-muted); font-size: 13px; margin-bottom: 28px;
}
.auth-layout .auth-form-inner .auth-footer {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid var(--nl-border-soft);
    text-align: center;
    font-size: 12.5px;
    color: var(--nl-text-muted);
}

@media (max-width: 991px) {
    .auth-layout { grid-template-columns: 1fr; }
    .auth-layout .auth-brand { padding: 36px; border-right: 0; border-bottom: 4px solid var(--nl-accent-gold); }
    .auth-layout .auth-brand h2 { font-size: 22px; }
    .auth-layout .auth-form { padding: 36px 24px; }
}

/* ==========================================================
 * APP HEADER / CONTEXT / SHELL
 * ========================================================== */
.app-header {
    background: var(--nl-navy);
    color: #f0f4f8;
    height: var(--nl-header-h);
    display: flex; align-items: center;
    padding: 0 22px;
    position: fixed; top: 0; left: 0; right: 0; z-index: 200;
    border-bottom: 3px solid var(--nl-accent-gold);
    box-shadow: 0 1px 0 rgba(0,0,0,.2);
}
.app-header .brand {
    display: flex; align-items: center; gap: 11px;
    width: var(--nl-sidebar-w);
    margin-left: -22px;
    padding-left: 22px;
    color: #fff;
    border-right: 1px solid rgba(255,255,255,.08);
    height: 100%;
}
.app-header .brand .logo {
    width: 32px; height: 32px;
    background: var(--nl-accent-gold);
    color: var(--nl-navy);
    border-radius: var(--nl-radius);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 13px;
}
.app-header .brand .name {
    font-weight: 600; font-size: 14px; letter-spacing: .3px;
}
.app-header .brand .name small {
    display: block; font-weight: 400; font-size: 10.5px; opacity: .65; letter-spacing: .6px; text-transform: uppercase;
}

.app-header .menu-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    background: transparent; border: 0; color: #fff;
    width: 36px; height: 36px; margin-right: 8px;
    font-size: 16px; border-radius: 8px;
    cursor: pointer; transition: background-color .15s ease;
}
.app-header .menu-toggle:hover, .app-header .menu-toggle:focus { background: rgba(255,255,255,.1); outline: 0; }

/* ─── Bildirim dropdown (header bell) ─── */
.h-bell { position: relative; }
.notif-dropdown {
    position: absolute; top: calc(100% + 8px); right: 0;
    width: 360px; max-width: calc(100vw - 24px);
    background: #fff;
    border: 1px solid var(--nl-border, #e5e9f2);
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(15,23,42,.18);
    z-index: 250;
    display: none;
    overflow: hidden;
}
.h-bell.open .notif-dropdown { display: block; }
.notif-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 14px;
    border-bottom: 1px solid var(--nl-border, #e5e9f2);
    font-size: 12.5px; font-weight: 600; color: var(--nl-text-strong, #0f172a);
    background: #f8fafc;
}
.notif-readall-btn {
    background: transparent; border: 0; color: var(--nl-primary, #0b5ed7);
    cursor: pointer; padding: 4px 6px; border-radius: 4px;
}
.notif-readall-btn:hover { background: rgba(11,94,215,.08); }
.notif-list { max-height: 380px; overflow-y: auto; }
.notif-empty {
    text-align: center; padding: 28px 14px;
    color: var(--nl-text-muted, #64748b); font-size: 13px;
}
.notif-empty i { font-size: 28px; opacity: .4; }
.notif-item {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 10px 14px; text-decoration: none; color: inherit;
    border-bottom: 1px solid #f1f5f9;
    transition: background-color .12s;
}
.notif-item:last-child { border-bottom: 0; }
.notif-item:hover { background: #f8fafc; text-decoration: none; color: inherit; }
.notif-item.is-read { opacity: .58; }
.notif-item .ico {
    width: 30px; height: 30px; flex-shrink: 0;
    background: #eff6ff; color: var(--nl-primary, #0b5ed7);
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 12px;
}
.notif-item .body { flex: 1; min-width: 0; }
.notif-item .title { font-size: 13px; font-weight: 600; color: var(--nl-text-strong, #0f172a); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notif-item .time { font-size: 11px; color: var(--nl-text-muted, #64748b); margin-top: 2px; }
.notif-item .dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--nl-primary, #0b5ed7); flex-shrink: 0; margin-top: 11px;
}
.notif-foot {
    display: block; padding: 10px 14px; text-align: center;
    font-size: 12.5px; font-weight: 600; color: var(--nl-primary, #0b5ed7);
    text-decoration: none; border-top: 1px solid var(--nl-border, #e5e9f2);
    background: #f8fafc;
}
.notif-foot:hover { background: #eff6ff; }

@media (max-width: 640px) {
    .notif-dropdown { width: calc(100vw - 16px); right: -8px; }
}

/* Desktop sidebar collapse (≥992px) */
@media (min-width: 992px) {
    body.sidebar-collapsed .sidebar {
        transform: translateX(-100%);
        transition: transform .22s ease;
    }
    body.sidebar-collapsed .main { margin-left: 0; transition: margin-left .22s ease; }
    body.sidebar-collapsed .app-context { left: 0; transition: left .22s ease; }
    body.sidebar-collapsed .app-header .brand { width: auto; border-right: 0; }
    .sidebar { transition: transform .22s ease; }
    .main { transition: margin-left .22s ease; }
    .app-context { transition: left .22s ease; }
}

.app-header .header-right {
    margin-left: auto;
    display: flex; align-items: center; gap: 6px;
    height: 100%;
}
.app-header .h-item {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 12px;
    color: rgba(240,244,248,.92);
    font-size: 12.5px;
    border-radius: var(--nl-radius);
    transition: background-color .12s ease;
}
.app-header .h-item:hover { background: rgba(255,255,255,.08); color: #fff; text-decoration: none; }
.app-header .h-item i { font-size: 13px; opacity: .8; }
.app-header .h-balance .label { color: rgba(240,244,248,.6); font-size: 10.5px; text-transform: uppercase; letter-spacing: .6px; }
.app-header .h-balance .value { color: #fff; font-weight: 600; }

.app-header .h-user { padding-left: 8px; }
.app-header .h-user .avatar {
    width: 28px; height: 28px;
    background: var(--nl-accent-gold);
    color: var(--nl-navy);
    border-radius: var(--nl-radius);
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 11.5px;
}
.app-header .h-user .meta { line-height: 1.15; }
.app-header .h-user .meta .name { font-weight: 600; font-size: 12.5px; color: #fff; }
.app-header .h-user .meta .role { font-size: 10.5px; opacity: .7; }

/* Context strip - banka panel hissi */
.app-context {
    position: fixed;
    top: var(--nl-header-h);
    left: var(--nl-sidebar-w);
    right: 0;
    height: var(--nl-context-h);
    background: var(--nl-surface);
    border-bottom: 1px solid var(--nl-border);
    display: flex; align-items: center;
    padding: 0 22px;
    font-size: 12px;
    color: var(--nl-text-muted);
    z-index: 100;
    gap: 18px;
}
.app-context .ctx-item { display: inline-flex; align-items: center; gap: 6px; }
.app-context .ctx-item strong { color: var(--nl-text-strong); font-weight: 600; }
.app-context .ctx-item i { color: var(--nl-text-faint); font-size: 11px; }
.app-context .ctx-divider { width: 1px; height: 14px; background: var(--nl-border); }
.app-context .ctx-right { margin-left: auto; }

/* ==========================================================
 * SIDEBAR
 * ========================================================== */
.sidebar {
    width: var(--nl-sidebar-w);
    background: var(--nl-surface);
    border-right: 1px solid var(--nl-border);
    position: fixed;
    top: var(--nl-header-h);
    bottom: 0; left: 0;
    overflow-y: auto;
    z-index: 90;
    transition: transform .2s ease;
}
.sidebar-section {
    padding: 16px 18px 6px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--nl-text-faint);
    font-weight: 700;
    border-bottom: 1px solid var(--nl-border-soft);
    margin-bottom: 4px;
}
.sidebar-section:first-child { padding-top: 12px; border-top: 0; }
.sidebar-nav { list-style: none; padding: 0; margin: 0 0 6px; }
.sidebar-nav li a {
    display: flex; align-items: center; gap: 11px;
    padding: 8px 18px;
    color: var(--nl-text);
    font-size: 13px;
    border-left: 3px solid transparent;
    text-decoration: none;
    transition: background-color .12s ease, color .12s ease;
}
.sidebar-nav li a i {
    width: 16px; text-align: center; font-size: 12.5px; color: var(--nl-text-muted);
}
.sidebar-nav li a:hover {
    background: var(--nl-surface-3);
    color: var(--nl-text-strong);
}
.sidebar-nav li a.active {
    background: var(--nl-primary-soft);
    color: var(--nl-primary-dark);
    border-left-color: var(--nl-primary);
    font-weight: 600;
}
.sidebar-nav li a.active i { color: var(--nl-primary); }
.sidebar-nav li a .badge {
    margin-left: auto; font-size: 10px; padding: 1px 6px; font-weight: 600;
}

/* ==========================================================
 * MAIN
 * ========================================================== */
.app-shell { padding-top: calc(var(--nl-header-h) + var(--nl-context-h)); }
.main {
    margin-left: var(--nl-sidebar-w);
    min-height: calc(100vh - var(--nl-header-h) - var(--nl-context-h));
    display: flex; flex-direction: column;
}
.content { padding: 22px 24px; flex: 1; }

/* ==========================================================
 * PAGE HEADER (kurumsal başlık bloğu)
 * ========================================================== */
.page-header {
    background: var(--nl-surface);
    border: 1px solid var(--nl-border);
    border-radius: var(--nl-radius-lg);
    padding: 16px 20px;
    margin-bottom: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    box-shadow: var(--nl-shadow-sm);
    border-left: 3px solid var(--nl-primary);
}
.page-header h2 {
    font-size: 17px;
    font-weight: 600;
    margin: 0 0 2px;
    color: var(--nl-text-strong);
    letter-spacing: -.018em;
}
.page-header .subtitle {
    color: var(--nl-text-muted);
    font-size: 12.5px;
    margin: 0;
}

/* ==========================================================
 * CARDS
 * ========================================================== */
.card {
    background: var(--nl-surface);
    border: 1px solid var(--nl-border);
    border-radius: var(--nl-radius-lg);
    box-shadow: var(--nl-shadow-sm);
}
.card-header {
    background: var(--nl-surface-2);
    border-bottom: 1px solid var(--nl-border);
    padding: 11px 18px;
    border-radius: var(--nl-radius-lg) var(--nl-radius-lg) 0 0;
    display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap;
    min-height: 46px;
}
.card-header h5, .card-header .card-title {
    margin: 0; font-size: 13px; font-weight: 600; color: var(--nl-text-strong); letter-spacing: -.005em;
    text-transform: none;
}
.card-header h5 i, .card-header .card-title i { color: var(--nl-primary); }
.card-body { padding: 18px; }
.card-body.p-0 { padding: 0; }

/* ==========================================================
 * STAT CARDS - Bankacılık tarzı
 * ========================================================== */
.stat-card {
    background: var(--nl-surface);
    border: 1px solid var(--nl-border);
    border-radius: var(--nl-radius-lg);
    padding: 14px 18px;
    display: flex; align-items: center; gap: 14px;
    box-shadow: var(--nl-shadow-sm);
    transition: border-color .12s ease, box-shadow .12s ease;
    position: relative;
    overflow: hidden;
}
.stat-card::before {
    content: '';
    position: absolute; top: 0; left: 0; bottom: 0; width: 3px;
    background: var(--nl-primary);
}
.stat-card:hover { border-color: var(--nl-primary-border); box-shadow: var(--nl-shadow); }
.stat-card .icon {
    width: 42px; height: 42px;
    border-radius: var(--nl-radius);
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
    background: var(--nl-primary-soft);
    color: var(--nl-primary);
    flex-shrink: 0;
}
.stat-card .icon.success { background: var(--nl-success-bg); color: var(--nl-success); }
.stat-card .icon.warning { background: var(--nl-warning-bg); color: var(--nl-warning); }
.stat-card .icon.danger  { background: var(--nl-danger-bg);  color: var(--nl-danger); }

a:hover .stat-card.trend-warning, .stat-card.trend-warning { border-left-color: transparent; }
.stat-card.trend-warning::before { background: var(--nl-warning); }
.stat-card.trend-danger::before  { background: var(--nl-danger); }
.stat-card.trend-success::before { background: var(--nl-success); }

.stat-card .label {
    color: var(--nl-text-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .6px;
    margin-bottom: 2px;
    font-weight: 600;
}
.stat-card .value {
    font-size: 19px;
    font-weight: 700;
    color: var(--nl-text-strong);
    margin: 0;
    line-height: 1.15;
    letter-spacing: -.02em;
    font-variant-numeric: tabular-nums;
}
.stat-card .meta { font-size: 11.5px; color: var(--nl-text-muted); margin-top: 1px; }

a:has(> .stat-card) { text-decoration: none; }

/* ==========================================================
 * TABLES - Banka tarzı yoğun
 * ========================================================== */
.table {
    width: 100%; margin: 0;
    border-collapse: separate; border-spacing: 0;
}
.table thead th {
    background: var(--nl-surface-2);
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: var(--nl-text-muted);
    font-weight: 700;
    padding: 9px 14px;
    border-bottom: 1px solid var(--nl-border);
    border-top: 0;
    text-align: left;
    white-space: nowrap;
}
.table tbody td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--nl-border-soft);
    color: var(--nl-text);
    font-size: 12.8px;
    vertical-align: middle;
}
.table tbody tr:hover { background: var(--nl-surface-3); }
.table tbody tr:last-child td { border-bottom: 0; }
.table .num { font-variant-numeric: tabular-nums; }

/* ==========================================================
 * BADGES
 * ========================================================== */
.badge {
    font-weight: 600;
    padding: 3px 8px;
    font-size: 10.5px;
    border-radius: var(--nl-radius);
    letter-spacing: .3px;
    text-transform: uppercase;
}
.bg-success-subtle { background: var(--nl-success-bg) !important; color: var(--nl-success) !important; border: 1px solid rgba(21,105,63,.22) !important; }
.bg-warning-subtle { background: var(--nl-warning-bg) !important; color: var(--nl-warning) !important; border: 1px solid rgba(138,94,15,.22) !important; }
.bg-danger-subtle  { background: var(--nl-danger-bg)  !important; color: var(--nl-danger)  !important; border: 1px solid rgba(149,32,24,.22) !important; }
.bg-info-subtle    { background: var(--nl-primary-soft) !important; color: var(--nl-primary) !important; border: 1px solid var(--nl-primary-border) !important; }
.bg-primary-subtle { background: var(--nl-primary-soft) !important; color: var(--nl-primary) !important; border: 1px solid var(--nl-primary-border) !important; }
.bg-secondary-subtle { background: #eef0f3 !important; color: #4b5563 !important; border: 1px solid #d8dde5 !important; }
.text-success-emphasis { color: var(--nl-success) !important; }
.text-warning-emphasis { color: var(--nl-warning) !important; }
.text-danger-emphasis  { color: var(--nl-danger)  !important; }
.text-info-emphasis    { color: var(--nl-primary) !important; }
.text-primary-emphasis { color: var(--nl-primary) !important; }
.text-secondary-emphasis { color: #4b5563 !important; }
.badge.bg-danger { background: var(--nl-danger) !important; color: #fff; }
.badge.bg-info   { background: var(--nl-primary) !important; color: #fff; }

/* ==========================================================
 * BUTTONS
 * ========================================================== */
.btn {
    font-weight: 500;
    font-size: 12.8px;
    border-radius: var(--nl-radius);
    padding: 7px 14px;
    border: 1px solid transparent;
    transition: background-color .12s ease, border-color .12s ease, color .12s ease;
    letter-spacing: .1px;
}
.btn-primary {
    background: var(--nl-primary); border-color: var(--nl-primary); color: #fff;
}
.btn-primary:hover, .btn-primary:focus {
    background: var(--nl-primary-dark); border-color: var(--nl-primary-dark); color: #fff;
}
.btn-outline-primary {
    color: var(--nl-primary); border-color: var(--nl-primary-border); background: transparent;
}
.btn-outline-primary:hover {
    background: var(--nl-primary-soft); color: var(--nl-primary-dark); border-color: var(--nl-primary);
}
.btn-outline-primary.active {
    background: var(--nl-primary); color: #fff; border-color: var(--nl-primary);
}
.btn-outline-secondary {
    color: var(--nl-text); border-color: var(--nl-border-strong); background: transparent;
}
.btn-outline-secondary:hover {
    background: var(--nl-surface-3); color: var(--nl-text-strong); border-color: var(--nl-text-muted);
}
.btn-outline-danger {
    color: var(--nl-danger); border-color: rgba(149,32,24,.3); background: transparent;
}
.btn-outline-danger:hover {
    background: var(--nl-danger-bg); color: var(--nl-danger); border-color: var(--nl-danger);
}
.btn-success {
    background: var(--nl-success); border-color: var(--nl-success); color: #fff;
}
.btn-success:hover { background: #114f30; border-color: #114f30; color: #fff; }
.btn-sm { padding: 4px 10px; font-size: 11.5px; }
.btn:focus { box-shadow: 0 0 0 2px rgba(20, 88, 157, .2); }
.btn-group .btn { z-index: auto; }

/* ==========================================================
 * FORMS
 * ========================================================== */
.form-label {
    font-weight: 600;
    font-size: 12px;
    color: var(--nl-text-strong);
    margin-bottom: 5px;
    text-transform: none;
    letter-spacing: 0;
}
.form-control, .form-select {
    border: 1px solid var(--nl-border-strong);
    border-radius: var(--nl-radius);
    padding: 7px 11px;
    font-size: 13px;
    color: var(--nl-text);
    background: #fff;
    box-shadow: none;
    transition: border-color .12s ease, box-shadow .12s ease;
}
.form-control:focus, .form-select:focus {
    border-color: var(--nl-primary);
    box-shadow: 0 0 0 2px rgba(20, 88, 157, .15);
    outline: none;
}
.form-control:disabled { background: var(--nl-surface-3); color: var(--nl-text-muted); }
.form-text { font-size: 11.5px; color: var(--nl-text-muted); }

.btn-check + .btn-outline-primary {
    border-color: var(--nl-border-strong); color: var(--nl-text); background: #fff;
}
.btn-check:checked + .btn-outline-primary {
    background: var(--nl-primary); border-color: var(--nl-primary); color: #fff;
}

/* ==========================================================
 * ALERTS
 * ========================================================== */
.alert {
    border: 1px solid;
    border-left: 3px solid;
    border-radius: var(--nl-radius);
    padding: 10px 14px;
    font-size: 12.8px;
    background: #fff;
    margin-bottom: 14px;
}
.alert-success { background: var(--nl-success-bg); border-color: rgba(21,105,63,.25); border-left-color: var(--nl-success); color: #0f4d2d; }
.alert-warning { background: var(--nl-warning-bg); border-color: rgba(138,94,15,.25); border-left-color: var(--nl-warning); color: #644511; }
.alert-danger  { background: var(--nl-danger-bg);  border-color: rgba(149,32,24,.25);  border-left-color: var(--nl-danger);  color: #6f180e; }
.alert-info    { background: var(--nl-primary-soft); border-color: var(--nl-primary-border); border-left-color: var(--nl-primary); color: var(--nl-primary-dark); }

/* ==========================================================
 * PRODUCT CARDS (katalog)
 * ========================================================== */
/* ─── PRODUCT CARD (kurumsal sade) ─── */
.product-card {
    --pc-accent: #0b5ed7;
    --pc-accent-soft: #eff6ff;
    background: #fff;
    border: 1px solid #e5e9f2;
    border-radius: 8px;
    padding: 22px;
    height: 100%;
    display: flex; flex-direction: column;
    position: relative;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.product-card:hover {
    transform: translateY(-1px);
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(15,23,42,.06);
}

.product-card.featured {
    border: 1px solid var(--pc-accent);
}
.product-card.featured .featured-ribbon {
    position: absolute; top: -1px; right: 16px;
    background: var(--pc-accent);
    color: #fff;
    padding: 3px 10px;
    font-size: 9.5px; font-weight: 700; letter-spacing: 1px;
    border-radius: 0 0 4px 4px;
}

/* Üst kısım — ikon + isim grup */
.product-card .pc-head {
    display: flex; align-items: flex-start; gap: 12px;
    margin-bottom: 14px;
}
.product-card .icon-box {
    width: 38px; height: 38px;
    background: var(--pc-accent-soft);
    color: var(--pc-accent);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}
.product-card.featured .icon-box {
    background: var(--pc-accent);
    color: #fff;
}
.product-card .pc-head-text { min-width: 0; flex: 1; padding-top: 2px; }
.product-card .name {
    font-size: 15px; font-weight: 600;
    color: #0f172a;
    margin: 0 0 3px;
    letter-spacing: -.012em;
    line-height: 1.3;
}
.product-card .desc {
    color: #64748b;
    font-size: 12.5px;
    margin: 0;
    line-height: 1.5;
}

/* ─── Fiyat bloğu — sade kurumsal ─── */
.product-card .price-block {
    padding: 14px 0;
    border-top: 1px solid #e5e9f2;
    border-bottom: 1px solid #e5e9f2;
    margin-bottom: 14px;
}
.product-card .price {
    display: inline-flex; align-items: baseline; gap: 4px;
    margin: 0;
    line-height: 1;
    color: #0f172a;
}
.product-card .price .currency {
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    align-self: flex-start;
    margin-top: 5px;
}
.product-card .price .amount {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -.02em;
    font-variant-numeric: tabular-nums;
    color: #0f172a;
}
.product-card .price .period {
    font-size: 12.5px;
    font-weight: 500;
    color: #94a3b8;
    margin-left: 2px;
}
.product-card.featured .price .amount { color: var(--pc-accent); }

/* Chip rozetleri — sade */
.product-card .price-meta {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.product-card .price-meta .chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    border: 1px solid transparent;
    line-height: 1.4;
    white-space: nowrap;
}
.product-card .price-meta .chip i { font-size: 9px; opacity: .8; }
.product-card .price-meta .chip.annual {
    background: #f0fdf4;
    color: #166534;
    border-color: #bbf7d0;
}
.product-card .price-meta .chip.yearly {
    background: #f8fafc;
    color: #475569;
    border-color: #e2e8f0;
}
.product-card .price-meta .chip.setup {
    background: #fffbeb;
    color: #92400e;
    border-color: #fde68a;
}

@media (max-width: 640px) {
    .product-card .price .amount { font-size: 22px; }
    .product-card .price .currency { font-size: 13px; margin-top: 4px; }
    .product-card .price .period { font-size: 12px; }
}

/* Buton — sade Bootstrap .btn-primary'a bırak, sadece minor override */
.product-card .order-btn {
    width: 100%;
    padding: 9px 14px !important;
    font-weight: 500 !important;
    font-size: 13px !important;
    display: inline-flex !important;
    align-items: center; justify-content: center; gap: 6px;
}
.product-card .order-btn i {
    font-size: 10px;
    transition: transform .15s ease;
}
.product-card .order-btn:hover i { transform: translateX(2px); }

/* Features — sade liste */
.product-card .features-head {
    font-size: 11.5px;
    color: #64748b;
    font-weight: 500;
    margin: 12px 0 8px;
}
.product-card .features {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}
.product-card .features li {
    padding: 4px 0;
    color: #334155;
    font-size: 12.5px;
    display: flex; align-items: center; gap: 8px;
    line-height: 1.45;
}
.product-card .features li i {
    color: #16a34a;
    font-size: 10px;
    flex-shrink: 0;
}
.product-card .features li.more {
    color: #94a3b8;
    font-style: italic;
    font-size: 11.5px;
    padding-left: 18px;
}

@media (max-width: 640px) {
    .product-card { padding: 22px 20px; border-radius: 12px; }
    .product-card .icon-box { width: 42px; height: 42px; font-size: 17px; }
    .product-card .name { font-size: 16px; }
    .product-card .price { font-size: 28px; }
    .product-card .featured-ribbon { font-size: 9px; padding: 3px 36px; }
}

/* ==========================================================
 * TICKET
 * ========================================================== */
.ticket-msg {
    background: var(--nl-surface);
    border: 1px solid var(--nl-border);
    border-radius: var(--nl-radius-lg);
    padding: 14px 18px;
    margin-bottom: 12px;
    box-shadow: var(--nl-shadow-sm);
}
.ticket-msg.staff { border-left: 3px solid var(--nl-primary); background: linear-gradient(180deg, var(--nl-primary-soft) 0%, var(--nl-surface) 60%); }
.ticket-msg .head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; gap: 8px; flex-wrap: wrap; }
.ticket-msg .author { font-weight: 600; color: var(--nl-text-strong); font-size: 13px; display: flex; align-items: center; gap: 10px; }
.ticket-msg .author .avatar {
    width: 30px; height: 30px;
    border-radius: var(--nl-radius);
    background: #6b7280; color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 700;
}
.ticket-msg .author .avatar.staff { background: var(--nl-primary); }
.ticket-msg .author small { color: var(--nl-text-muted); font-weight: 400; }
.ticket-msg .time { font-size: 11.5px; color: var(--nl-text-muted); }
.ticket-msg .body { color: var(--nl-text); font-size: 13px; white-space: pre-wrap; line-height: 1.65; }

/* ==========================================================
 * INVOICE / QUOTE
 * ========================================================== */
.doc-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    padding: 16px;
    background: var(--nl-surface-2);
    border: 1px solid var(--nl-border);
    border-radius: var(--nl-radius);
    margin-bottom: 16px;
}
.doc-meta .item .label {
    color: var(--nl-text-muted);
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: .6px;
    margin-bottom: 3px;
    font-weight: 700;
}
.doc-meta .item .value { font-size: 13px; color: var(--nl-text-strong); font-weight: 500; }

.totals {
    background: var(--nl-surface-2);
    border: 1px solid var(--nl-border);
    padding: 14px 16px;
    border-radius: var(--nl-radius);
    margin-top: 14px;
}
.totals .row { display: flex; justify-content: space-between; padding: 4px 0; font-size: 12.8px; font-variant-numeric: tabular-nums; }
.totals .row.grand {
    font-size: 15px;
    font-weight: 700;
    color: var(--nl-text-strong);
    border-top: 1px solid var(--nl-border);
    margin-top: 5px;
    padding-top: 9px;
    background: linear-gradient(90deg, transparent 0%, rgba(20,88,157,.04) 100%);
    margin-left: -16px; margin-right: -16px;
    padding-left: 16px; padding-right: 16px;
}

/* ==========================================================
 * NAV PILLS / TABS
 * ========================================================== */
.nav-pills { gap: 4px; border-bottom: 1px solid var(--nl-border); padding-bottom: 0; }
.nav-pills .nav-link {
    color: var(--nl-text);
    background: transparent;
    border: 1px solid transparent;
    border-bottom: 0;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    border-radius: var(--nl-radius) var(--nl-radius) 0 0;
    margin-bottom: -1px;
}
.nav-pills .nav-link:hover { background: var(--nl-surface-3); color: var(--nl-text-strong); }
.nav-pills .nav-link.active {
    background: var(--nl-surface);
    color: var(--nl-primary);
    border-color: var(--nl-border);
    border-bottom-color: var(--nl-surface);
    font-weight: 600;
}

/* ==========================================================
 * LIST GROUPS
 * ========================================================== */
.list-group-item { border-color: var(--nl-border-soft); }

/* ==========================================================
 * FOOTER (kurumsal)
 * ========================================================== */
.app-footer {
    background: var(--nl-surface);
    border-top: 1px solid var(--nl-border);
    padding: 18px 24px;
    margin-top: 24px;
    color: var(--nl-text-muted);
    font-size: 11.5px;
}
.app-footer .footer-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.app-footer .copy { letter-spacing: .2px; }
.app-footer .copy strong { color: var(--nl-text-strong); }
.app-footer .links a { color: var(--nl-text-muted); margin-left: 18px; }
.app-footer .links a:hover { color: var(--nl-primary); }

/* ==========================================================
 * UTILS
 * ========================================================== */
hr { border-color: var(--nl-border); opacity: 1; }
code {
    background: var(--nl-surface-3); color: var(--nl-text-strong);
    padding: 1px 5px; border-radius: 3px; font-size: 11.5px;
    border: 1px solid var(--nl-border-soft); font-family: 'SF Mono', Consolas, monospace;
}

/* ==========================================================
 * RESPONSIVE — Tablet (≤991px)
 * ========================================================== */
@media (max-width: 991px) {
    :root { --nl-sidebar-w: 0px; }
    .app-header .brand { width: auto; border-right: 0; }
    /* Mobile'da hamburger biraz daha büyük (touch target) */
    .app-header .menu-toggle { width: 40px; height: 40px; font-size: 18px; }
    .app-context { left: 0; padding: 0 14px; gap: 10px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .sidebar {
        width: 280px; transform: translateX(-100%);
        box-shadow: 4px 0 24px rgba(0,0,0,.25);
        transition: transform .22s ease;
    }
    .sidebar.open { transform: translateX(0); }
    .main { margin-left: 0; }
    .content { padding: 16px; }

    /* Backdrop overlay */
    .sidebar-backdrop {
        position: fixed; inset: 0; background: rgba(15,23,42,.55);
        z-index: 199; opacity: 0; pointer-events: none;
        transition: opacity .22s ease;
    }
    .sidebar-backdrop.show { opacity: 1; pointer-events: auto; }
    body.sidebar-open { overflow: hidden; }

    /* Header — kompakt */
    .app-header { padding: 0 12px; }
    .app-header .brand .logo { width: 30px; height: 30px; font-size: 12px; }
    .app-header .brand .name { font-size: 13.5px; }
    .app-header .brand .name small { display: none; }
    .app-header .header-right { gap: 2px; }
    .app-header .header-right .h-balance .meta { display: none; }
    .app-header .header-right .h-balance { padding: 6px 10px; }
    .app-header .header-right .h-user .meta { display: none; }
    .app-header .header-right .h-user { padding: 6px 6px 6px 10px; }
    .app-header .h-item { padding: 6px 10px; font-size: 12px; }

    /* Context strip */
    .app-context { font-size: 11.5px; padding: 6px 14px; gap: 10px; min-height: 30px; }
    .app-context .ctx-divider { display: none; }
    .app-context .ctx-item { white-space: nowrap; }

    /* Page header */
    .page-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding-bottom: 14px;
        margin-bottom: 16px;
    }
    .page-header h2 { font-size: 20px; }
    .page-header .subtitle { font-size: 12.5px; line-height: 1.5; }
    .page-header > div:last-child { display: flex; flex-wrap: wrap; gap: 6px; }
    .page-header > div:last-child .btn { flex: 1 1 auto; min-height: 40px; font-size: 13px; }

    /* Stat cards 2x2 */
    .stat-card { padding: 14px; gap: 10px; }
    .stat-card .icon { width: 38px; height: 38px; font-size: 15px; flex-shrink: 0; }
    .stat-card .label { font-size: 10.5px; }
    .stat-card .value { font-size: 18px; }

    /* Form alanları — iOS zoom önle (font ≥16px) */
    .form-control, .form-select { font-size: 16px; min-height: 42px; padding: 8px 12px; }
    .form-control-sm, .form-select-sm { font-size: 14px; min-height: 34px; }
    textarea.form-control { min-height: auto; }
    .form-label { font-size: 13px; margin-bottom: 4px; }

    /* Butonlar — touch target */
    .btn { min-height: 40px; font-size: 13.5px; padding: 8px 14px; }
    .btn-sm { min-height: 32px; font-size: 12.5px; padding: 6px 10px; }

    /* Tablolar — yatay scroll + scroll hint */
    .table-responsive {
        position: relative;
        -webkit-overflow-scrolling: touch;
    }
    .table-responsive::after {
        content: ""; position: absolute; top: 0; right: 0; bottom: 0;
        width: 24px; pointer-events: none;
        background: linear-gradient(to right, transparent, rgba(255,255,255,.85));
    }
    .table { font-size: 13px; }
    .table th, .table td { padding: 10px 8px; white-space: nowrap; }
    .table .btn-sm { padding: 4px 8px; }

    /* Card padding */
    .card-body { padding: 14px; }
    .card-header { padding: 10px 14px; }
    .card-header h5 { font-size: 14px; }

    /* Catalog ürün kartı (yeni yapı için inline kurallar component CSS'te tanımlı) */

    /* Ticket mesaj balonları */
    .ticket-msg { padding: 12px; }
    .ticket-msg .head { flex-direction: column; align-items: flex-start; gap: 6px; }
    .ticket-msg .time { font-size: 11px; }

    /* Bakiye gizleme overrride */
    .app-header .header-right .h-balance { display: inline-flex; }

    /* Çok küçük ekranlarda (≤480px) bakiye gizle */
}

/* ==========================================================
 * RESPONSIVE — Phone (≤640px)
 * ========================================================== */
@media (max-width: 640px) {
    .content { padding: 12px; }
    .page-header h2 { font-size: 18px; }
    .app-header .header-right .h-balance { display: none; }
    .app-header .header-right .h-item { padding: 6px 8px; }
    .app-header .header-right .h-item span:not(.avatar) { display: none; }

    /* Context strip iyice küçült */
    .app-context { font-size: 11px; padding: 5px 10px; }
    .app-context .ctx-right { display: none; }

    /* Sidebar full-width drawer */
    .sidebar { width: 86vw; max-width: 320px; }

    /* Card padding daha sıkı */
    .card-body { padding: 12px; }
    .card-header { padding: 9px 12px; }

    /* Stat cards single column */
    .row.g-3 > [class*="col-md-3"]:has(.stat-card) { width: 50%; }

    /* Catalog kartları tek sütun */
    /* Tablolar daha kompakt */
    .table { font-size: 12.5px; }
    .table th, .table td { padding: 8px 6px; }

    /* Form footer butonları full-width */
    .card-footer { flex-wrap: wrap; gap: 8px; }
    .card-footer .btn { width: 100%; }
    .card-footer small { width: 100%; text-align: center; }

    /* Modal/totals okunaklı */
    .totals .row { font-size: 13px; padding: 5px 0; }

    /* Kv-row mobile */
    .kv-row { font-size: 12.5px; padding: 9px 12px; gap: 10px; }
    .kv-row strong, .kv-row a, .kv-row > span:last-child { font-size: 12.5px; }
}

/* ==========================================================
 * RESPONSIVE — Tiny (≤380px)
 * ========================================================== */
@media (max-width: 380px) {
    .content { padding: 10px; }
    .page-header h2 { font-size: 17px; }
    .page-header .subtitle { font-size: 12px; }
    .app-header { padding: 0 8px; }
    .app-header .brand .name { font-size: 12.5px; }
    .app-header .menu-toggle { width: 36px; height: 36px; }
    .stat-card { padding: 12px; }
    .stat-card .value { font-size: 16px; }
    .btn { padding: 7px 12px; }
}

@media print {
    .app-header, .app-context, .sidebar, .app-footer, .no-print { display: none !important; }
    .main { margin: 0; }
    .app-shell { padding-top: 0; }
    .content { padding: 0; }
    .card { border: 0; box-shadow: none; }
    body { background: #fff; }
}
