:root {
    --crm-bg: #f3f5f8;
    --crm-sidebar: #0f1c2e;
    --crm-sidebar-2: #162840;
    --crm-accent: #1f7a6c;
    --crm-accent-2: #c9852c;
    --crm-text: #1a2332;
    --crm-muted: #6b778a;
    --crm-card: #ffffff;
    --crm-border: #e4e9f0;
    --crm-shadow: 0 10px 30px rgba(15, 28, 46, 0.08);
}

html, body {
    margin: 0;
    font-family: "Segoe UI", "Trebuchet MS", sans-serif;
    background: var(--crm-bg);
    color: var(--crm-text);
}

a { color: var(--crm-accent); text-decoration: none; }

.crm-shell {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}

.crm-sidebar {
    background: linear-gradient(180deg, var(--crm-sidebar), var(--crm-sidebar-2));
    color: #fff;
    padding: 1.25rem 1rem 2rem;
}

.crm-brand {
    display: flex;
    gap: .85rem;
    align-items: center;
    padding: .5rem .6rem 1.4rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
    margin-bottom: 1rem;
}

.crm-brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-weight: 700;
    background: linear-gradient(135deg, var(--crm-accent), #2ea090);
}

.crm-brand-title { font-weight: 700; font-size: 1rem; }
.crm-brand-sub { font-size: .75rem; opacity: .7; }

.crm-nav {
    display: flex;
    flex-direction: column;
    gap: .15rem;
}

.crm-nav-group {
    padding: .15rem 0 .55rem;
}

.crm-nav-group + .crm-nav-group {
    margin-top: .35rem;
    padding-top: .85rem;
    border-top: 1px solid rgba(255, 255, 255, .16);
}

.crm-nav-section {
    margin: 0 .55rem .45rem;
    padding: 0 .15rem;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .78);
}

.crm-nav-link {
    display: block;
    color: rgba(255,255,255,.82) !important;
    padding: .65rem .8rem;
    border-radius: 10px;
    margin: .15rem 0;
}

.crm-nav-link:hover, .crm-nav-link.active {
    background: rgba(255,255,255,.08);
    color: #fff !important;
}

.crm-logout-form { margin: 0; }
.crm-logout-btn {
    width: 100%;
    text-align: left;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.crm-main { display: flex; flex-direction: column; min-width: 0; }

.crm-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(255,255,255,.8);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--crm-border);
    position: sticky;
    top: 0;
    z-index: 5;
}

.crm-topbar-title { color: var(--crm-muted); font-size: .95rem; }
.crm-topbar-actions { display: flex; gap: .5rem; align-items: center; }

.crm-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 28, 46, .45);
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 1.5rem;
}
.crm-modal {
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--crm-shadow);
    width: min(560px, 100%);
    max-height: 90vh;
    overflow: auto;
    padding: 1.25rem 1.35rem 1.4rem;
}
.crm-guncelle-simdi {
    background: #f3f8f6;
    border: 1px solid #d5ebe6;
    border-radius: 12px;
    padding: .75rem 1rem;
    margin: .85rem 0 1rem;
}
.crm-guncelle-adim { font-weight: 700; font-size: 1.1rem; margin: .15rem 0; }
.crm-guncelle-adimlar { list-style: none; padding: 0; margin: 0 0 1rem; }
.crm-guncelle-satir {
    display: flex;
    gap: .65rem;
    align-items: flex-start;
    padding: .45rem 0;
    border-bottom: 1px solid var(--crm-border);
}
.crm-guncelle-nokta {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-top: .4rem;
    background: #cbd5e1;
    flex: 0 0 auto;
}
.crm-guncelle-calisiyor .crm-guncelle-nokta { background: var(--crm-accent); box-shadow: 0 0 0 4px #d5ebe6; }
.crm-guncelle-bitti .crm-guncelle-nokta { background: #198754; }
.crm-guncelle-hata .crm-guncelle-nokta { background: #dc3545; }
.crm-guncelle-atlandi .crm-guncelle-nokta { background: #c9852c; }
.crm-guncelle-log {
    font-family: Consolas, "Courier New", monospace;
    font-size: .75rem;
    background: #0f1c2e;
    color: #d7e3ef;
    border-radius: 10px;
    padding: .7rem .8rem;
    max-height: 160px;
    overflow: auto;
    line-height: 1.45;
}
.crm-chip {
    background: #eef6f4;
    color: var(--crm-accent);
    border: 1px solid #d5ebe6;
    padding: .35rem .7rem;
    border-radius: 999px;
    font-size: .85rem;
}

.crm-content { padding: 1.4rem 1.5rem 2rem; }

.crm-page-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 .35rem;
}

.crm-page-sub { color: var(--crm-muted); margin-bottom: 1.25rem; }

.crm-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.crm-card {
    background: var(--crm-card);
    border: 1px solid var(--crm-border);
    border-radius: 16px;
    box-shadow: var(--crm-shadow);
    padding: 1rem 1.1rem;
}

.crm-kpi-label { color: var(--crm-muted); font-size: .85rem; }
.crm-kpi-value { font-size: 1.55rem; font-weight: 700; margin-top: .25rem; }
.crm-kpi-accent { color: var(--crm-accent); }
.crm-kpi-warm { color: var(--crm-accent-2); }

.crm-table-wrap { overflow: auto; }
.crm-table {
    width: 100%;
    border-collapse: collapse;
}
.crm-table th, .crm-table td {
    padding: .75rem .7rem;
    border-bottom: 1px solid var(--crm-border);
    text-align: left;
    white-space: nowrap;
}
.crm-table tr.ai-gecmis-satir { cursor: pointer; }
.crm-table tr.ai-gecmis-satir:hover { background: #f3f8f6; }
.crm-table tr.ai-gecmis-secili { background: #e8f4f1; }
#ai-sonuc { scroll-margin-top: 4.5rem; }

.crm-actions { display: flex; flex-wrap: wrap; gap: .5rem; }

.crm-detail-head { margin-bottom: 1rem; }
.crm-section-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 .85rem;
}
.kanal-baslik {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: .02em;
    margin: 0 0 .85rem;
    padding: .4rem .85rem;
    border-radius: 8px;
    line-height: 1.2;
}
.kanal-baslik.tsoft {
    color: #0b4f42;
    background: #d4efe8;
    box-shadow: inset 5px 0 0 #157a64;
}
.kanal-baslik.ty {
    color: #7f1d1d;
    background: #fee2e2;
    box-shadow: inset 5px 0 0 #dc2626;
}
.dash-kanal {
    padding: 1rem 1rem .35rem;
    border-radius: 14px;
    margin-bottom: 1.35rem;
}
.dash-kanal-tsoft {
    background: #f2faf7;
    border: 1px solid #b7ddd2;
}
.dash-kanal-ty {
    background: #fff5f5;
    border: 1px solid #fecaca;
}
.dash-kanal .crm-grid { margin-bottom: 0; }
.crm-link {
    display: inline-block;
    margin-bottom: .45rem;
    color: var(--crm-accent);
    font-size: .9rem;
}
.crm-row-link { cursor: pointer; }
.crm-row-link:hover { background: #f3faf8; }
.crm-wrap { white-space: normal; min-width: 160px; }
.crm-muted-sm { color: var(--crm-muted); font-size: .78rem; }

.dash-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: .5rem;
}
.dash-period { display: flex; flex-wrap: wrap; gap: .4rem; }
.dash-period-btn {
    border: 1px solid var(--crm-border);
    background: #fff;
    color: var(--crm-text);
    border-radius: 999px;
    padding: .35rem .75rem;
    font-size: .82rem;
    cursor: pointer;
}
.dash-period-btn.active {
    background: var(--crm-accent);
    border-color: var(--crm-accent);
    color: #fff;
}
.dash-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}
.dash-span-2 { grid-column: span 2; }
.dash-card-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: .75rem;
    margin-bottom: .5rem;
}
.dash-bars {
    display: flex;
    align-items: flex-end;
    gap: .35rem;
    min-height: 170px;
    padding-top: .5rem;
    overflow-x: auto;
}
.dash-bar-col {
    flex: 1 0 28px;
    max-width: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}
.dash-bar {
    width: 100%;
    border-radius: 8px 8px 4px 4px;
    background: linear-gradient(180deg, #2ea090, var(--crm-accent));
}
.dash-bar-label {
    margin-top: .35rem;
    font-size: .68rem;
    color: var(--crm-muted);
}
.dash-donut-wrap {
    position: relative;
    width: 160px;
    height: 160px;
    margin: .5rem auto 1rem;
}
.dash-donut {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}
.dash-donut-center {
    position: absolute;
    inset: 28%;
    border-radius: 50%;
    background: #fff;
    display: grid;
    place-content: center;
    text-align: center;
}
.dash-donut-num { font-weight: 700; font-size: 1.2rem; }
.dash-legend { list-style: none; padding: 0; margin: 0; }
.dash-legend li {
    display: flex;
    justify-content: space-between;
    gap: .75rem;
    padding: .4rem 0;
    border-bottom: 1px solid var(--crm-border);
    font-size: .88rem;
}
.dash-status { margin-bottom: .75rem; }
.dash-status-top {
    display: flex;
    justify-content: space-between;
    font-size: .88rem;
    margin-bottom: .25rem;
}
.dash-progress {
    height: 8px;
    background: #eef2f6;
    border-radius: 999px;
    overflow: hidden;
}
.dash-progress > div {
    height: 100%;
    background: var(--crm-accent);
    border-radius: 999px;
}
.dash-rank {
    display: flex;
    justify-content: space-between;
    gap: .75rem;
    padding: .55rem 0;
    border-bottom: 1px solid var(--crm-border);
    font-size: .88rem;
}
.dash-rank-name { font-weight: 600; }
.dash-rank-meta { color: var(--crm-muted); white-space: nowrap; }
.dash-clickable {
    cursor: pointer;
    border-radius: 8px;
    transition: background .15s ease;
}
button.dash-clickable {
    border: 0;
    background: transparent;
    padding: 0;
    font: inherit;
    color: inherit;
}
.dash-legend .dash-clickable:hover,
.dash-status.dash-clickable:hover,
.dash-rank.dash-clickable:hover {
    background: #f3faf8;
}
.dash-bar-col.dash-clickable:hover .dash-bar {
    filter: brightness(1.08);
}
.dash-legend .dash-clickable,
.dash-rank.dash-clickable {
    padding-left: .35rem;
    padding-right: .35rem;
    margin-left: -.35rem;
    margin-right: -.35rem;
}
.dash-status.dash-clickable { padding: .35rem; margin-left: -.35rem; margin-right: -.35rem; }

@media (max-width: 900px) {
    .dash-grid { grid-template-columns: 1fr; }
    .dash-span-2 { grid-column: span 1; }
}

.btn-primary {
    background: var(--crm-accent);
    border-color: var(--crm-accent);
}

.btn-success {
    background: #1f7a6c;
    border-color: #1f7a6c;
}

.alert { border-radius: 12px; }

.ty-th {
    white-space: nowrap;
}
.ty-th-tools {
    display: inline-flex;
    gap: .15rem;
    margin-left: .25rem;
    vertical-align: middle;
}
.ty-icon-btn {
    border: 0;
    background: transparent;
    color: var(--crm-muted);
    padding: 0 .15rem;
    line-height: 1;
    cursor: pointer;
}
.ty-icon-btn.active { color: var(--crm-accent); font-weight: 700; }
.ty-filter-box {
    margin-top: .35rem;
    min-width: 8rem;
}

@media (max-width: 1100px) {
    .crm-shell { grid-template-columns: 1fr; }
    .crm-sidebar { position: sticky; top: 0; z-index: 10; }
    .crm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
    .crm-grid { grid-template-columns: 1fr; }
}

#blazor-error-ui {
    background: #b32121;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0,0,0,.2);
    display: none;
    left: 0;
    padding: .6rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    color: #fff;
}
#blazor-error-ui.display-block {
    display: block;
}
#blazor-error-ui .reload, #blazor-error-ui .dismiss { color: #fff; }
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: .75rem; top: .5rem; }

.crm-tabs { display: flex; flex-wrap: wrap; gap: .4rem; }
.crm-tab {
    border: 1px solid var(--crm-border);
    background: var(--crm-card);
    border-radius: 999px;
    padding: .4rem .9rem;
    font-size: .9rem;
}
.crm-tab.active { background: var(--crm-accent); color: #fff; border-color: var(--crm-accent); }
.crm-badge {
    display: inline-block;
    border-radius: 999px;
    padding: .15rem .55rem;
    font-size: .75rem;
    background: #f3f4f6;
}
.crm-badge-kritik { background: #fee2e2; color: #991b1b; }
.crm-badge-olu { background: #f3f4f6; color: #4b5563; }
.crm-badge-marj { background: #fef3c7; color: #92400e; }
.crm-badge-maliyet { background: #e0e7ff; color: #3730a3; }
.crm-badge-ok { background: #d1fae5; color: #065f46; }
.ai-oneri { min-height: 100%; }

.ai-bar-ust {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .55rem 1.5rem;
    background: #e8f4f1;
    border-bottom: 1px solid #c5e4dc;
    color: #145247;
    font-size: .9rem;
}
.ai-bar-ust-metin { display: flex; flex-direction: column; gap: .1rem; flex: 1; min-width: 0; }
.ai-bar-ust-metin span { color: #3d6d63; font-size: .82rem; }
.ai-bar-spin {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #b7ddd4;
    border-top-color: var(--crm-accent);
    animation: ai-spin 0.8s linear infinite;
    flex: 0 0 auto;
}
.ai-bar-link { font-weight: 600; white-space: nowrap; }
.ai-toast {
    position: fixed;
    top: 1.1rem;
    right: 1.25rem;
    z-index: 90;
    display: flex;
    align-items: center;
    gap: .85rem;
    width: min(380px, calc(100vw - 2rem));
    background: #fff;
    border-radius: 14px;
    padding: .85rem 1rem;
    box-shadow: 0 16px 40px rgba(15, 28, 46, .18);
    cursor: pointer;
    border: 1px solid #d5ebe6;
    animation: ai-toast-in .35s ease;
}
.ai-toast.ok { border-left: 5px solid #198754; }
.ai-toast.hata { border-left: 5px solid #dc3545; }
.ai-toast-isaret {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 700;
    color: #fff;
    flex: 0 0 auto;
}
.ai-toast.ok .ai-toast-isaret { background: #198754; }
.ai-toast.hata .ai-toast-isaret { background: #dc3545; }
.ai-toast-baslik { font-weight: 700; }
.ai-toast-alt { font-size: .85rem; color: var(--crm-muted); }
.ai-toast-kapat {
    margin-left: auto;
    border: 0;
    background: transparent;
    font-size: 1.3rem;
    line-height: 1;
    color: var(--crm-muted);
    cursor: pointer;
}
@keyframes ai-toast-in {
    from { transform: translateY(-12px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.crm-modal-ai { width: min(520px, 100%); }
.ai-modal-ust { display: flex; gap: 1rem; align-items: flex-start; }
.ai-modal-spin {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 4px solid #d5ebe6;
    border-top-color: var(--crm-accent);
    animation: ai-spin 0.85s linear infinite;
    flex: 0 0 auto;
}
.ai-modal-spin.ok { border-color: #198754; animation: none; background: #198754; }
.ai-modal-spin.hata { border-color: #dc3545; animation: none; background: #dc3545; }
.ai-modal-baslik { font-weight: 700; font-size: 1.15rem; margin: 0 0 .25rem; }
.ai-modal-detay { color: var(--crm-muted); font-size: .92rem; margin: 0; }
.ai-modal-sure { font-variant-numeric: tabular-nums; font-size: .8rem; color: var(--crm-muted); margin-top: .35rem; }
.ai-bar {
    height: 8px;
    background: #eef2f6;
    border-radius: 999px;
    overflow: hidden;
    margin: 1rem 0 .85rem;
    position: relative;
}
.ai-bar-dolu {
    height: 100%;
    background: linear-gradient(90deg, var(--crm-accent), #2ea090);
    border-radius: 999px;
    transition: width .4s ease;
}
.ai-bar.calisiyor::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent);
    animation: ai-shine 1.4s ease-in-out infinite;
}
.ai-ipucu {
    background: #f7f1e6;
    border: 1px solid #ead9b8;
    color: #6b5428;
    border-radius: 10px;
    padding: .65rem .8rem;
    font-size: .88rem;
    margin-bottom: .85rem;
    min-height: 3.1rem;
}
.ai-adimlar { list-style: none; padding: 0; margin: 0; }
.ai-adim {
    display: flex;
    gap: .65rem;
    align-items: flex-start;
    padding: .42rem 0;
    border-bottom: 1px solid var(--crm-border);
    opacity: .55;
}
.ai-adim:last-child { border-bottom: 0; }
.ai-adim.calisiyor { opacity: 1; }
.ai-adim.bitti { opacity: .9; }
.ai-adim.hata { opacity: 1; }
.ai-nokta {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    margin-top: .35rem;
    background: #cbd5e1;
    flex: 0 0 auto;
}
.ai-adim.calisiyor .ai-nokta {
    background: var(--crm-accent);
    box-shadow: 0 0 0 4px #d5ebe6;
    animation: ai-pulse 1.1s ease-in-out infinite;
}
.ai-adim.bitti .ai-nokta { background: #198754; }
.ai-adim.hata .ai-nokta { background: #dc3545; }
.ai-adim-ad { font-weight: 600; font-size: .92rem; }
.ai-adim-alt { font-size: .78rem; color: var(--crm-muted); }
@keyframes ai-spin { to { transform: rotate(360deg); } }
@keyframes ai-shine { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
@keyframes ai-pulse { 0%, 100% { box-shadow: 0 0 0 3px #d5ebe6; } 50% { box-shadow: 0 0 0 7px #e8f5f2; } }

.seo-puan {
    font-size: 2.35rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.03em;
    color: var(--crm-accent, #1a6b5c);
}
.seo-satir-ok td { color: #4b5563; }

/* —— Auth / Login —— */
.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(280px, 1.05fr) minmax(320px, 1fr);
    background: var(--crm-bg);
}

.auth-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(2rem, 5vw, 4rem);
}

.auth-panel-brand {
    position: relative;
    overflow: hidden;
    color: #eef3f8;
    background:
        radial-gradient(ellipse 80% 60% at 20% 20%, rgba(46, 160, 144, 0.35), transparent 55%),
        radial-gradient(ellipse 70% 50% at 90% 80%, rgba(201, 133, 44, 0.18), transparent 50%),
        linear-gradient(165deg, #0b1626 0%, #13253c 55%, #0f1c2e 100%);
}

.auth-panel-brand::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(180deg, #000 40%, transparent);
    pointer-events: none;
}

.auth-brand-block { position: relative; z-index: 1; max-width: 28rem; }

.auth-mark {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: .02em;
    background: linear-gradient(135deg, var(--crm-accent), #2ea090);
    box-shadow: 0 12px 28px rgba(31, 122, 108, 0.35);
    margin-bottom: 1.5rem;
}

.auth-brand-name {
    margin: 0 0 .75rem;
    font-size: clamp(1.85rem, 3.2vw, 2.45rem);
    font-weight: 750;
    letter-spacing: -.03em;
    line-height: 1.15;
}

.auth-brand-lead {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.55;
    color: rgba(238, 243, 248, 0.78);
}

.auth-points {
    position: relative;
    z-index: 1;
    list-style: none;
    margin: 2.25rem 0 0;
    padding: 0;
    display: grid;
    gap: .7rem;
}

.auth-points li {
    display: flex;
    align-items: center;
    gap: .65rem;
    font-size: .92rem;
    color: rgba(238, 243, 248, 0.88);
}

.auth-points li::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex: 0 0 auto;
    background: var(--crm-accent);
    box-shadow: 0 0 0 3px rgba(31, 122, 108, 0.25);
}

.auth-foot {
    position: relative;
    z-index: 1;
    margin: 2.5rem 0 0;
    font-size: .78rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: rgba(238, 243, 248, 0.45);
}

.auth-panel-form {
    background:
        linear-gradient(180deg, #f7f9fc 0%, #eef2f7 100%);
}

.auth-form-wrap {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

.auth-card {
    background: var(--crm-card);
    border: 1px solid var(--crm-border);
    border-radius: 18px;
    padding: 1.75rem 1.85rem 1.5rem;
    box-shadow: var(--crm-shadow);
}

.auth-card-head { margin-bottom: 1.35rem; }

.auth-eyebrow {
    margin: 0 0 .35rem;
    font-size: .72rem;
    font-weight: 650;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--crm-accent);
}

.auth-title {
    margin: 0 0 .35rem;
    font-size: 1.55rem;
    font-weight: 750;
    letter-spacing: -.02em;
    color: var(--crm-text);
}

.auth-sub {
    margin: 0;
    font-size: .92rem;
    color: var(--crm-muted);
}

.auth-form { display: grid; gap: 1rem; }

.auth-field label {
    display: block;
    margin-bottom: .4rem;
    font-size: .85rem;
    font-weight: 600;
    color: var(--crm-text);
}

.auth-label-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: .75rem;
    margin-bottom: .4rem;
}

.auth-label-row label { margin: 0; }

.auth-link-sm {
    font-size: .8rem;
    color: var(--crm-muted);
}

.auth-link-sm:hover { color: var(--crm-accent); }

.auth-input {
    width: 100%;
    border: 1px solid #d5dde8;
    border-radius: 11px;
    padding: .78rem .95rem;
    font-size: .95rem;
    background: #fbfcfe;
    color: var(--crm-text);
    transition: border-color .15s ease, box-shadow .15s ease;
}

.auth-input:focus {
    outline: none;
    border-color: var(--crm-accent);
    box-shadow: 0 0 0 3px rgba(31, 122, 108, 0.18);
    background: #fff;
}

.auth-field-error, .auth-validation {
    display: block;
    margin-top: .35rem;
    font-size: .8rem;
    color: #b42318;
}

.auth-validation ul { margin: 0; padding-left: 1.1rem; }

.auth-remember {
    padding: .65rem .8rem;
    border-radius: 12px;
    background: #f4f7fa;
    border: 1px solid #e4e9f0;
}

.auth-check {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    margin: 0;
    cursor: pointer;
}

.auth-checkbox {
    width: 1.1rem;
    height: 1.1rem;
    margin-top: .15rem;
    accent-color: var(--crm-accent);
    flex: 0 0 auto;
}

.auth-check strong {
    display: block;
    font-size: .92rem;
    font-weight: 650;
    color: var(--crm-text);
}

.auth-check small {
    display: block;
    margin-top: .15rem;
    font-size: .78rem;
    color: var(--crm-muted);
}

.auth-submit {
    width: 100%;
    border: 0;
    border-radius: 12px;
    padding: .9rem 1rem;
    font-size: 1rem;
    font-weight: 650;
    color: #fff;
    background: linear-gradient(135deg, #1a6b5c, var(--crm-accent) 55%, #2ea090);
    box-shadow: 0 10px 22px rgba(31, 122, 108, 0.28);
    cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease;
}

.auth-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(31, 122, 108, 0.34);
}

.auth-submit:active { transform: translateY(0); }

.auth-meta {
    margin: 1.15rem 0 0;
    text-align: center;
    font-size: .78rem;
    color: var(--crm-muted);
    line-height: 1.4;
}

.ai-serbest-cevap .ai-cevap-metin {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: "Segoe UI", "Trebuchet MS", sans-serif;
    font-size: .92rem;
    line-height: 1.5;
    color: var(--crm-text);
    background: #f7f9fc;
    border: 1px solid var(--crm-border);
    border-radius: 12px;
    padding: 1rem 1.1rem;
}

.ai-sohbet {
    border: 1px solid var(--crm-border);
    border-radius: 12px;
    padding: .85rem 1rem;
    background: #fafbfd;
    max-height: 28rem;
    overflow-y: auto;
}
.ai-sohbet-tur + .ai-sohbet-tur { margin-top: .85rem; padding-top: .85rem; border-top: 1px solid var(--crm-border); }
.ai-sohbet-rol {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: var(--crm-muted);
    margin-right: .35rem;
}
.ai-sohbet-soru { font-size: .95rem; margin-bottom: .45rem; }
.ai-sohbet-cevap .ai-cevap-metin {
    margin: .25rem 0 0;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: "Segoe UI", "Trebuchet MS", sans-serif;
    font-size: .9rem;
    line-height: 1.45;
    background: #fff;
    border: 1px solid var(--crm-border);
    border-radius: 10px;
    padding: .75rem .9rem;
}

@media (max-width: 900px) {
    .auth-shell { grid-template-columns: 1fr; }
    .auth-panel-brand {
        min-height: auto;
        padding-bottom: 2rem;
    }
    .auth-points { display: none; }
    .auth-foot { display: none; }
    .auth-brand-lead { font-size: .95rem; }
}
