/* ============================================================
   Arge Bot — Tasarım Sistemi (mobile-first, kurumsal tema)
   Mavi-indigo degrade, temiz tipografi, modern kart, hamburger
   ============================================================ */

:root {
    --ab-primary: #2563eb;
    --ab-primary-dark: #1d4ed8;
    --ab-primary-light: #3b82f6;
    --ab-accent: #0ea5e9;
    --ab-accent-2: #22d3ee;
    --ab-indigo: #4f46e5;
    --ab-bg: #f4f6fb;
    --ab-surface: #ffffff;
    --ab-ink: #0f172a;
    --ab-ink-soft: #334155;
    --ab-muted: #64748b;
    --ab-border: #e2e8f0;
    --ab-border-soft: #eef2f7;
    --ab-success: #16a34a;
    --ab-warn: #d97706;
    --ab-danger: #dc2626;
    --ab-radius: 14px;
    --ab-radius-sm: 10px;
    --ab-radius-lg: 18px;
    --ab-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
    --ab-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    --ab-shadow-lg: 0 20px 45px rgba(15, 23, 42, 0.12);
    --ab-gradient: linear-gradient(135deg, #2563eb 0%, #0ea5e9 60%, #22d3ee 100%);

    /* Yatay sayfa boşluğu (mobil → masaüstü ölçeklenir) */
    --ab-pad-x: clamp(14px, 4vw, 24px);
    --ab-pad-x-sm: clamp(12px, 3vw, 18px);
    --ab-container-max: 1240px;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

html { -webkit-text-size-adjust: 100%; }

body {
    background: var(--ab-bg);
    color: var(--ab-ink);
    font-family: 'Segoe UI', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 15px;
    line-height: 1.55;
    margin: 0;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
body.ab-no-scroll { overflow: hidden; }

img, svg { max-width: 100%; height: auto; display: block; }

a {
    color: var(--ab-primary);
    text-decoration: none;
    transition: color .15s ease;
}
a:hover { color: var(--ab-primary-dark); text-decoration: underline; }

h1, h2, h3, h4 { color: var(--ab-ink); }

/* ============================================================
   NAVBAR (responsive: hamburger + drawer)
   ============================================================ */
.ab-navbar {
    background: #ffffff;
    border-bottom: 1px solid var(--ab-border);
    padding: 12px var(--ab-pad-x);
    position: sticky;
    top: 0;
    z-index: 80;
    box-shadow: var(--ab-shadow-sm);
}
.ab-navbar-inner {
    max-width: var(--ab-container-max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: 64px;
}
.ab-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    text-decoration: none;
    transition: transform .15s ease;
}
.ab-brand:hover { transform: translateY(-1px); text-decoration: none; }
.ab-brand img {
    display: block;
    height: 48px;
    width: auto;
    max-width: none;
}
@media (max-width: 600px) {
    .ab-brand img { height: 40px; }
}

.ab-burger {
    display: none;
    border: 1px solid var(--ab-border);
    background: #fff;
    width: 42px; height: 42px;
    border-radius: 10px;
    align-items: center; justify-content: center;
    cursor: pointer;
    margin-left: auto;
    transition: background .15s ease, border-color .15s ease;
}
.ab-burger:hover { background: var(--ab-bg); border-color: #cbd5e1; }
.ab-burger span {
    display: block;
    width: 18px; height: 2px;
    background: var(--ab-ink-soft);
    border-radius: 2px;
    position: relative;
}
.ab-burger span::before,
.ab-burger span::after {
    content: ""; position: absolute; left: 0;
    width: 18px; height: 2px;
    background: var(--ab-ink-soft);
    border-radius: 2px;
    transition: transform .2s ease, top .2s ease;
}
.ab-burger span::before { top: -6px; }
.ab-burger span::after  { top: 6px; }

.ab-nav {
    display: flex;
    gap: 2px;
    margin-left: 8px;
    flex: 1;
    align-items: center;
    flex-wrap: nowrap;
}
.ab-nav a {
    padding: 10px 14px;
    border-radius: 10px;
    color: var(--ab-ink-soft);
    font-weight: 600;
    font-size: 14.5px;
    line-height: 1.2;
    white-space: nowrap;
    transition: background .15s ease, color .15s ease;
}
.ab-nav a:hover { background: var(--ab-bg); color: var(--ab-primary); text-decoration: none; }
.ab-nav a.active { background: rgba(37,99,235,.1); color: var(--ab-primary); }
.ab-nav-actions { display: flex; gap: 10px; align-items: center; flex: 0 0 auto; }
.ab-nav-actions form { margin: 0; }
.ab-nav-actions .ab-btn {
    height: 42px;
    padding: 0 18px;
    font-size: 14px;
}
.ab-nav-actions .ab-btn-ghost {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ab-drawer-backdrop {
    position: fixed; inset: 0;
    background: rgba(15, 23, 42, .45);
    z-index: 70;
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, visibility .2s ease;
}
.ab-drawer-backdrop.open { opacity: 1; visibility: visible; }

@media (max-width: 980px) {
    .ab-burger { display: inline-flex; }
    .ab-navbar-inner { gap: 8px; }

    .ab-nav,
    .ab-nav-actions {
        position: fixed;
        top: 0;
        right: -340px;
        width: min(82vw, 320px);
        height: 100vh;
        background: #fff;
        z-index: 80;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 70px 18px 24px;
        overflow-y: auto;
        transition: right .25s ease;
        box-shadow: -16px 0 40px rgba(15, 23, 42, .15);
    }
    .ab-nav-actions {
        top: auto;
        bottom: 0;
        height: auto;
        width: min(82vw, 320px);
        padding: 14px 18px 22px;
        border-top: 1px solid var(--ab-border);
        background: #f8fafc;
        flex-direction: row;
        flex-wrap: wrap;
        box-shadow: none;
        right: -340px;
    }
    .ab-nav.open,
    .ab-nav-actions.open { right: 0; }
    .ab-nav a {
        padding: 12px 14px;
        font-size: 15px;
        border-radius: 10px;
    }
    .ab-nav-actions .ab-btn { flex: 1 1 auto; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.ab-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .1s ease, box-shadow .2s ease, background .15s ease, color .15s ease;
    background: var(--ab-primary);
    color: #fff;
    text-decoration: none;
    line-height: 1.2;
    white-space: nowrap;
}
.ab-btn:hover { background: var(--ab-primary-dark); color: #fff; box-shadow: var(--ab-shadow); text-decoration: none; }
.ab-btn:active { transform: translateY(1px); }
.ab-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.ab-btn-ghost { background: transparent; color: var(--ab-ink-soft); border-color: var(--ab-border); }
.ab-btn-ghost:hover { background: var(--ab-bg); color: var(--ab-primary); border-color: #cbd5e1; }
.ab-btn-accent { background: var(--ab-gradient); }
.ab-btn-accent:hover { filter: brightness(1.05); background: var(--ab-gradient); }
.ab-btn-success { background: var(--ab-success); }
.ab-btn-success:hover { background: #15803d; }
.ab-btn-danger { background: var(--ab-danger); }
.ab-btn-danger:hover { background: #b91c1c; }
.ab-btn-lg { padding: 13px 26px; font-size: 15px; }
.ab-btn-sm { padding: 7px 12px; font-size: 12.5px; }
.ab-btn-block { display: flex; width: 100%; }

/* Hero üzerinde beyaz / outline buton */
.ab-btn-light {
    background: #fff;
    color: #0b1e3f;
}
.ab-btn-light:hover { background: #f1f5f9; color: #0b1e3f; }
.ab-btn-outline-light {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,.5);
}
.ab-btn-outline-light:hover {
    background: rgba(255,255,255,.12);
    color: #fff;
    border-color: #fff;
}

/* ============================================================
   CONTAINER & LAYOUT
   ============================================================ */
.ab-container {
    max-width: var(--ab-container-max);
    margin: 0 auto;
    padding: clamp(20px, 4vw, 36px) var(--ab-pad-x) clamp(36px, 8vw, 72px);
    flex: 1;
    width: 100%;
}
.ab-container.narrow { max-width: 760px; }

main[role="main"] { width: 100%; }

/* ============================================================
   GRID
   ============================================================ */
.ab-grid {
    display: grid;
    gap: clamp(12px, 2.4vw, 18px);
}
.ab-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ab-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ab-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 1100px) {
    .ab-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .ab-grid-2,
    .ab-grid-3,
    .ab-grid-4 { grid-template-columns: 1fr; }
}

/* ============================================================
   CARDS
   ============================================================ */
.ab-card {
    background: var(--ab-surface);
    border-radius: var(--ab-radius);
    border: 1px solid var(--ab-border);
    box-shadow: var(--ab-shadow-sm);
    padding: clamp(16px, 2.6vw, 24px);
    transition: box-shadow .2s ease, transform .2s ease;
}
.ab-card:hover { box-shadow: var(--ab-shadow); }
.ab-card-title { font-size: 16px; font-weight: 700; margin: 0 0 6px; color: var(--ab-ink); }
.ab-card-sub { color: var(--ab-muted); font-size: 13px; margin: 0; }

.ab-section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    font-size: 13.5px;
    letter-spacing: 2.5px;
    font-weight: 700;
    color: var(--ab-primary-dark);
    margin: clamp(20px, 4vw, 28px) 0 16px;
    text-transform: uppercase;
}
.ab-section-title::before,
.ab-section-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--ab-border);
}

/* ============================================================
   HERO (anasayfa için tam genişlik)
   ============================================================ */
.ab-hero {
    background: var(--ab-gradient);
    color: #fff;
    padding: clamp(40px, 7vw, 72px) var(--ab-pad-x);
    position: relative;
    overflow: hidden;
}
.ab-hero h1 {
    font-size: clamp(26px, 5vw, 40px);
    font-weight: 800;
    margin: 0 0 12px;
    line-height: 1.15;
    color: #fff;
}
.ab-hero p {
    font-size: clamp(14px, 2vw, 16px);
    margin: 0;
    color: rgba(255,255,255,.92);
    max-width: 720px;
}
.ab-hero-inner {
    max-width: var(--ab-container-max);
    margin: 0 auto;
    display: flex;
    gap: 28px;
    align-items: center;
    flex-wrap: wrap;
}
.ab-hero-cta {
    display: flex;
    gap: 10px;
    margin-top: 22px;
    flex-wrap: wrap;
}
.ab-hero-cta .ab-btn-ghost {
    background: rgba(255,255,255,.15);
    color: #fff;
    border-color: rgba(255,255,255,.3);
}
.ab-hero-cta .ab-btn-ghost:hover { background: rgba(255,255,255,.25); }
.ab-hero::after {
    content: "";
    position: absolute;
    right: -100px; top: -100px;
    width: 420px; height: 420px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    pointer-events: none;
}

/* Sayfa hero'su (alt sayfalar) */
.ab-page-hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 60%, #0ea5e9 100%);
    color: #fff;
    padding: clamp(32px, 6vw, 56px) var(--ab-pad-x);
    position: relative;
    overflow: hidden;
}
.ab-page-hero::after {
    content: "";
    position: absolute;
    right: -120px; top: -120px;
    width: 360px; height: 360px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    pointer-events: none;
}
.ab-page-hero-inner {
    max-width: var(--ab-container-max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}
.ab-page-hero h1 {
    font-size: clamp(22px, 3.6vw, 32px);
    margin: 8px 0 8px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}
.ab-page-hero p {
    margin: 0;
    color: rgba(255,255,255,.92);
    max-width: 680px;
    font-size: clamp(13.5px, 1.8vw, 15px);
}
.ab-page-hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }

.ab-eyebrow {
    display: inline-block;
    background: rgba(255,255,255,.18);
    color: #fff;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.ab-eyebrow-new {
    background: #f59e0b;
    color: #0b1e3f;
    box-shadow: 0 0 0 4px rgba(245,158,11,.25);
}

/* ============================================================
   FORM
   ============================================================ */
.ab-form label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ab-ink-soft);
    margin-bottom: 6px;
    letter-spacing: .15px;
}

/* ---- Text inputs / select / textarea ---- */
.ab-input, .ab-select, .ab-textarea {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid var(--ab-border);
    background: #fff;
    font-size: 14px;
    color: var(--ab-ink);
    line-height: 1.4;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
    box-sizing: border-box;
    font-family: inherit;
    box-shadow: 0 1px 0 rgba(15, 23, 42, .02);
}
.ab-textarea {
    height: auto;
    min-height: 96px;
    padding: 12px 14px;
    resize: vertical;
    line-height: 1.5;
}
.ab-input::placeholder, .ab-textarea::placeholder { color: #94a3b8; }

.ab-input:hover:not(:disabled):not([readonly]),
.ab-select:hover:not(:disabled),
.ab-textarea:hover:not(:disabled):not([readonly]) {
    border-color: #cbd5e1;
    background: #fafbff;
}
.ab-input:focus, .ab-select:focus, .ab-textarea:focus {
    outline: none;
    border-color: var(--ab-primary-light);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .14);
}
.ab-input[readonly], .ab-textarea[readonly] {
    background: #f8fafc;
    color: var(--ab-muted);
    cursor: not-allowed;
}
.ab-input:disabled, .ab-select:disabled, .ab-textarea:disabled {
    background: #f1f5f9;
    color: #94a3b8;
    cursor: not-allowed;
    box-shadow: none;
}

/* number input — kaldır spin oklarını (daha temiz görünüm) */
.ab-input[type=number]::-webkit-inner-spin-button,
.ab-input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.ab-input[type=number] { -moz-appearance: textfield; appearance: textfield; }

/* select — özel chevron ok */
.ab-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 36px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2364748b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    cursor: pointer;
}
.ab-select:hover { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%232563eb' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.ab-select::-ms-expand { display: none; }

/* ---- Checkbox (özel kare + tik) ---- */
.ab-check {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    font-size: 13.5px;
    color: var(--ab-ink-soft);
    font-weight: 500;
    user-select: none;
    cursor: pointer;
    line-height: 1.2;
    padding: 10px 12px;
    border: 1px solid var(--ab-border-soft);
    border-radius: 10px;
    background: #fff;
    transition: border-color .15s ease, background .15s ease;
}
.ab-check:hover {
    border-color: var(--ab-border);
    background: #fafbff;
}
.ab-check input[type=checkbox] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 2px solid #cbd5e1;
    background: #fff;
    cursor: pointer;
    margin: 0;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
    position: relative;
}
.ab-check input[type=checkbox]:hover {
    border-color: var(--ab-primary-light);
}
.ab-check input[type=checkbox]:focus-visible {
    outline: none;
    border-color: var(--ab-primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .18);
}
.ab-check input[type=checkbox]:checked {
    background-color: var(--ab-primary);
    border-color: var(--ab-primary);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3E%3Cpath d='M13.485 4.515a1 1 0 0 0-1.414 0L6.5 10.086 3.929 7.515a1 1 0 1 0-1.414 1.414l3.279 3.279a1 1 0 0 0 1.414 0l6.277-6.279a1 1 0 0 0 0-1.414z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px 14px;
}
.ab-check input[type=checkbox]:disabled {
    background: #e2e8f0;
    border-color: #e2e8f0;
    cursor: not-allowed;
}
.ab-check:has(input[type=checkbox]:checked) {
    border-color: rgba(37, 99, 235, .35);
    background: #f0f7ff;
    color: var(--ab-ink);
    font-weight: 600;
}

.ab-form-row {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px 14px;
}
@media (max-width: 1100px) { .ab-form-row { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 760px)  { .ab-form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px)  { .ab-form-row { grid-template-columns: 1fr; } }

.ab-field { display: flex; flex-direction: column; min-width: 0; }
.ab-field .ab-hint {
    margin-top: 6px;
    font-size: 11.5px;
    color: var(--ab-muted);
    line-height: 1.4;
}
.ab-field.full { grid-column: 1 / -1; }
.ab-field.span-2 { grid-column: span 2; }
.ab-field.span-3 { grid-column: span 3; }
.ab-field.span-4 { grid-column: span 4; }
@media (max-width: 760px) {
    .ab-field.span-2, .ab-field.span-3, .ab-field.span-4 { grid-column: span 2; }
}
@media (max-width: 480px) {
    .ab-field.span-2, .ab-field.span-3, .ab-field.span-4 { grid-column: 1 / -1; }
}

.ab-validation { color: var(--ab-danger); font-size: 12px; margin-top: 4px; }

.ab-actions-row {
    display: flex; justify-content: flex-end; gap: 8px;
    flex-wrap: wrap;
}
.ab-card-head-row {
    display: flex; justify-content: space-between; align-items: center;
    gap: 12px; flex-wrap: wrap;
}

/* ============================================================
   TABLES (responsive: yatay scroll + kart-akışı seçeneği)
   ============================================================ */
.ab-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--ab-radius);
    border: 1px solid var(--ab-border);
    background: #fff;
}
.ab-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13px;
}
.ab-table thead th {
    background: #f8fafc;
    color: var(--ab-ink-soft);
    font-weight: 700;
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid var(--ab-border);
    white-space: nowrap;
}
.ab-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #f1f5f9;
    white-space: nowrap;
}
.ab-table tbody tr:hover td { background: #f8fafc; }
.ab-table tfoot td {
    font-weight: 700;
    background: #eff6ff;
    color: var(--ab-primary-dark);
    border-top: 2px solid var(--ab-primary);
}
.ab-num { text-align: right; font-variant-numeric: tabular-nums; }

/* ============================================================
   BADGES & ALERTS
   ============================================================ */
.ab-badge {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .3px;
    background: rgba(37,99,235,.1);
    color: var(--ab-primary-dark);
}
.ab-badge.success { background: rgba(22,163,74,.12); color: #166534; }
.ab-badge.warn { background: rgba(217,119,6,.12); color: #92400e; }
.ab-badge.soon { background: #ede9fe; color: #5b21b6; }
.ab-badge.dim { background: #f1f5f9; color: var(--ab-muted); }
.ab-badge.danger { background: #fee2e2; color: #991b1b; }

.ab-alert {
    padding: 12px 14px;
    border-left: 4px solid var(--ab-primary);
    background: #eff6ff;
    border-radius: 8px;
    margin-bottom: 12px;
    color: var(--ab-ink-soft);
    font-size: 13.5px;
}
.ab-alert.warn { background: #fff7ed; border-color: var(--ab-warn); color: #7c2d12; }
.ab-alert.danger { background: #fef2f2; border-color: var(--ab-danger); color: #7f1d1d; }
.ab-alert.success { background: #ecfdf5; border-color: var(--ab-success); color: #064e3b; }

/* ============================================================
   KPI tiles
   ============================================================ */
.ab-kpi {
    background: #fff;
    border-radius: var(--ab-radius);
    padding: clamp(14px, 2.4vw, 20px);
    border: 1px solid var(--ab-border);
    box-shadow: var(--ab-shadow-sm);
}
.ab-kpi .label { color: var(--ab-muted); font-size: 11.5px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; }
.ab-kpi .value { color: var(--ab-ink); font-size: clamp(20px, 3vw, 24px); font-weight: 800; margin-top: 6px; line-height: 1.1; }
.ab-kpi .hint  { color: var(--ab-muted); font-size: 12px; margin-top: 4px; }

/* ============================================================
   FEATURE CARDS
   ============================================================ */
.ab-feature {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: clamp(18px, 2.6vw, 24px);
    border-radius: var(--ab-radius);
    background: #fff;
    border: 1px solid var(--ab-border);
    transition: transform .15s ease, box-shadow .2s ease, border-color .15s ease;
    height: 100%;
}
.ab-feature:hover {
    transform: translateY(-2px);
    box-shadow: var(--ab-shadow);
    border-color: #cbd5e1;
}
.ab-feature .icon {
    width: 44px; height: 44px; border-radius: 12px;
    display: grid; place-items: center;
    background: rgba(37,99,235,.1); color: var(--ab-primary-dark);
    font-size: 22px;
}
.ab-feature h3 { margin: 0; font-size: 16px; color: var(--ab-ink); }
.ab-feature p { margin: 0; color: var(--ab-muted); font-size: 13.5px; line-height: 1.55; }
.ab-feature.coming .icon { background: #ede9fe; color: #5b21b6; }

/* ============================================================
   FOOTER
   ============================================================ */
.ab-footer {
    background: #0b1e3f;
    color: #cbd5e1;
    padding: 22px var(--ab-pad-x);
    font-size: 13px;
}
.ab-footer-inner {
    max-width: var(--ab-container-max);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.ab-footer a { color: #93c5fd; }
@media (max-width: 600px) {
    .ab-footer-inner { justify-content: center; text-align: center; }
}

/* ============================================================
   AUTH (login / register / profile)
   ============================================================ */
.ab-auth-shell {
    min-height: calc(100vh - 140px);
    display: grid;
    place-items: center;
    padding: clamp(20px, 5vw, 56px) var(--ab-pad-x);
}
.ab-auth-card {
    background: #fff;
    width: 100%;
    max-width: 460px;
    border-radius: 18px;
    padding: clamp(22px, 4vw, 34px);
    box-shadow: var(--ab-shadow);
    border: 1px solid var(--ab-border);
}
.ab-auth-card h1 { margin: 0 0 6px; font-size: clamp(20px, 3vw, 24px); }
.ab-auth-card .sub { color: var(--ab-muted); font-size: 14px; margin: 0 0 20px; }
.ab-auth-card .ab-field { margin-bottom: 14px; }
.ab-auth-footer { text-align: center; font-size: 13px; color: var(--ab-muted); margin-top: 16px; }

.ab-divider { height: 1px; background: var(--ab-border); margin: 18px 0; }

/* ============================================================
   UTILITIES
   ============================================================ */
.text-muted { color: var(--ab-muted); }
.text-danger { color: var(--ab-danger); }
.text-success { color: var(--ab-success); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; } .mt-1 { margin-top: 6px; } .mt-2 { margin-top: 12px; } .mt-3 { margin-top: 18px; } .mt-4 { margin-top: 24px; }
.mb-0 { margin-bottom: 0 !important; } .mb-1 { margin-bottom: 6px; } .mb-2 { margin-bottom: 12px; } .mb-3 { margin-bottom: 18px; } .mb-4 { margin-bottom: 24px; }
.d-flex { display: flex; }
.d-inline { display: inline; }
.gap-1 { gap: 6px; } .gap-2 { gap: 10px; } .gap-3 { gap: 16px; }
.flex-wrap { flex-wrap: wrap; }
.w-100 { width: 100%; }

/* ============================================================
   BORDRO TABLOSU + INFO MODAL
   ============================================================ */
.ab-table-scroll { overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; border-radius: var(--ab-radius); border: 1px solid var(--ab-border); background: #fff; }
.ab-table-bordro { font-size: 12px; min-width: 2100px; }
.ab-table-bordro thead th { position: sticky; top: 0; background: #0b1e3f; color: #fff; padding: 10px 6px; white-space: nowrap; vertical-align: middle; }
.ab-table-bordro tbody td { padding: 7px 6px; white-space: nowrap; }
.ab-table-bordro tfoot td { background: #f1f5f9; padding: 9px 6px; font-weight: 600; white-space: nowrap; }

.ab-col-title { font-weight: 700; letter-spacing: .3px; }
.ab-info-btn {
    display: inline-grid; place-items: center;
    width: 16px; height: 16px;
    margin-left: 6px;
    border-radius: 50%;
    border: 1px solid #94a3b8;
    background: #fff;
    color: #0b1e3f;
    font-size: 10px; font-weight: 700; line-height: 1;
    cursor: pointer;
    font-family: Georgia, serif;
    padding: 0;
}
.ab-info-btn:hover { background: #e0f2fe; border-color: #0284c7; color: #0284c7; }
.ab-info-chip {
    display: inline-grid; place-items: center;
    width: 16px; height: 16px; border-radius: 50%;
    background: #0b1e3f; color: #fff; font-size: 10px; font-weight: 700;
    font-family: Georgia, serif;
}

.ab-modal-backdrop {
    position: fixed; inset: 0;
    background: rgba(15, 23, 42, .55);
    display: grid; place-items: center;
    z-index: 1000;
    padding: 16px;
}
.ab-modal-backdrop[hidden] { display: none; }
.ab-modal {
    background: #fff;
    border-radius: 14px;
    max-width: 560px; width: 100%;
    box-shadow: 0 24px 60px rgba(0,0,0,.25);
    overflow: hidden;
    animation: abFadeIn .15s ease-out;
}
@keyframes abFadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.ab-modal-head {
    display: flex; justify-content: space-between; align-items: flex-start;
    padding: 16px 18px;
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
    color: #fff;
}
.ab-modal-title { font-size: 17px; font-weight: 700; letter-spacing: .3px; }
.ab-modal-sub { font-size: 12px; opacity: .85; margin-top: 2px; }
.ab-modal-close {
    background: none; border: 0; color: #fff; font-size: 26px; line-height: 1; cursor: pointer;
}
.ab-modal-body { padding: 18px; font-size: 14px; }
.ab-field-block { margin-bottom: 14px; }
.ab-field-block:last-child { margin-bottom: 0; }
.ab-field-label { font-size: 11px; font-weight: 700; letter-spacing: 1px; color: #475569; text-transform: uppercase; margin-bottom: 4px; }
.ab-field-value { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 10px 12px; font-family: Consolas, monospace; font-size: 13px; color: #0b1e3f; word-break: break-word; }

/* ============================================================
   MINDMAP (Bordro/Yontem)
   ============================================================ */
.ab-mindmap {
    display: flex; flex-direction: column; gap: 18px;
    padding: clamp(14px, 2.4vw, 20px);
    border-radius: 16px;
    background: linear-gradient(180deg, #f8fafc, #eef2ff);
    border: 1px solid #e2e8f0;
}
.ab-mm-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.ab-mm-node {
    background: #fff;
    border-radius: 14px;
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
    position: relative;
}
.ab-mm-node.root {
    background: linear-gradient(135deg, #0b1e3f, #1e3a8a);
    color: #fff;
    border-color: transparent;
}
.ab-mm-node.root ul { margin: 8px 0 0 16px; padding: 0; }
.ab-mm-node.root li { font-size: 13px; line-height: 1.6; }
.ab-mm-node.highlight { border-left: 4px solid #f59e0b; }
.ab-mm-node.accent    { border-left: 4px solid #10b981; background: #f0fdf4; }
.ab-mm-node.danger    { border-left: 4px solid #dc2626; background: #fef2f2; }
.ab-mm-node.danger .ab-mm-label { color: #991b1b; }
.ab-mm-label { font-size: 14px; font-weight: 700; letter-spacing: .3px; }
.ab-mm-desc  { font-size: 12.5px; color: #475569; margin: 4px 0 8px; }
.ab-mm-node.root .ab-mm-desc { color: #cbd5e1; }
.ab-mm-node code {
    display: block;
    background: #f1f5f9;
    padding: 8px 10px;
    border-radius: 8px;
    font-family: Consolas, monospace;
    font-size: 12.5px;
    color: #0b1e3f;
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.5;
}
.ab-mm-node.root code { background: rgba(255,255,255,.1); color: #e0f2fe; }
.ab-mm-law {
    display: inline-block; margin-top: 6px;
    padding: 2px 8px; border-radius: 99px;
    background: #e0f2fe; color: #0369a1;
    font-size: 11px; font-weight: 600;
}
.ab-table-mini { width: 100%; border-collapse: collapse; font-size: 12.5px; margin-top: 6px; }
.ab-table-mini th, .ab-table-mini td { padding: 6px 8px; border-bottom: 1px solid #e2e8f0; text-align: left; }
.ab-table-mini thead th { background: #0b1e3f; color: #fff; }

/* ============================================================
   BORDRO — Kompakt sayfa başlığı (tek satır, dar ekranda 2 satır)
   ============================================================ */
.bordro-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 10px 16px;
    margin: 0 0 14px;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.bordro-header-title {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    min-width: 0;
}
.bordro-header-title h1 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: .3px;
    color: #0b1e3f;
    line-height: 1.2;
    white-space: nowrap;
}
.bordro-header-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    background: #eef2ff;
    color: #4338ca;
    border: 1px solid #c7d2fe;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .02em;
    white-space: nowrap;
}
.bordro-header-link {
    white-space: nowrap;
    flex: 0 0 auto;
}
.bordro-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    flex: 0 0 auto;
}
@media (max-width: 540px) {
    .bordro-header { padding: 10px 12px; }
    .bordro-header-title h1 { font-size: 16px; white-space: normal; }
    .bordro-header-actions { width: 100%; }
    .bordro-header-actions .bordro-header-link { flex: 1 1 auto; justify-content: center; }
}

/* ============================================================
   BORDRO — Sonuç bölümüne smooth scroll + kısa flash animasyonu
   ============================================================ */
#bordro-sonuc { scroll-margin-top: 80px; }

@keyframes ab-flash-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}
@keyframes ab-flash-pulse {
    0%   { box-shadow: 0 0 0 0   rgba(16, 185, 129, .45); }
    50%  { box-shadow: 0 0 0 10px rgba(16, 185, 129, .12),
                       0 0 0 22px rgba(16, 185, 129, .06); }
    100% { box-shadow: 0 0 0 0   rgba(16, 185, 129, 0); }
}
[data-flash="1"] {
    border-radius: 14px;
    animation: ab-flash-fade-in .4s ease-out both;
}
[data-flash="1"].is-flashing {
    animation: ab-flash-fade-in .4s ease-out both,
               ab-flash-pulse 1.5s ease-out .1s 1;
}
