:root {
    --dmm-sidebar-w: 250px;
    --dmm-bg: #f4f6fb;
    --dmm-primary: #2b56d4;
    --dmm-dark: #1b2437;
}

body { background: var(--dmm-bg); }

/* ---------- Shell ---------- */
.dmm-shell { display: flex; min-height: 100vh; }

.dmm-sidebar {
    width: var(--dmm-sidebar-w);
    background: var(--dmm-dark);
    color: #cdd5e4;
    display: flex; flex-direction: column;
    position: fixed; top: 0; bottom: 0; left: 0;
}
.dmm-brand {
    padding: 1.1rem 1.25rem; font-size: 1.15rem; font-weight: 700; color: #fff;
    display: flex; align-items: center; gap: .55rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.dmm-brand i { color: #7ea0ff; }
.dmm-nav { padding: .75rem 0; flex: 1; }
.dmm-nav a {
    display: flex; align-items: center; gap: .65rem;
    padding: .7rem 1.25rem; color: #b9c2d6; text-decoration: none; font-size: .95rem;
    border-left: 3px solid transparent;
}
.dmm-nav a:hover { background: rgba(255,255,255,.05); color: #fff; }
.dmm-nav a.active { background: rgba(126,160,255,.12); color: #fff; border-left-color: var(--dmm-primary); }
.dmm-sidebar-footer { padding: 1rem 1.25rem; border-top: 1px solid rgba(255,255,255,.08); }

.dmm-main { flex: 1; margin-left: var(--dmm-sidebar-w); display: flex; flex-direction: column; }
.dmm-topbar {
    background: #fff; padding: .85rem 1.5rem;
    display: flex; align-items: center; justify-content: space-between;
    box-shadow: 0 1px 3px rgba(0,0,0,.06); position: sticky; top: 0; z-index: 10;
}
.dmm-title { font-size: 1.25rem; margin: 0; font-weight: 600; }
.dmm-content { padding: 1.5rem; flex: 1; }

/* ---------- Stat cards ---------- */
.dmm-stat { border: none; box-shadow: 0 1px 4px rgba(0,0,0,.05); }
.dmm-stat-value { font-size: 1.7rem; font-weight: 700; line-height: 1; }
.dmm-stat-label { color: #6b7280; font-size: .85rem; margin-top: .25rem; }

.dmm-service-card { border: 1px solid #e5e7eb; border-radius: .5rem; padding: .6rem .75rem; }

/* ---------- Status grid ---------- */
.dmm-status-item {
    display: flex; flex-direction: column; gap: .25rem;
    padding: .5rem .65rem; border: 1px solid #eceef3; border-radius: .5rem; background: #fbfcfe;
}
.dmm-log-list { max-height: 360px; overflow-y: auto; }

/* ---------- Cards general ---------- */
.card { border: none; box-shadow: 0 1px 4px rgba(0,0,0,.05); }
.card-header { background: #fff; font-weight: 600; border-bottom: 1px solid #eef0f4; }

/* ---------- Login ---------- */
.dmm-login-body {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #1b2437, #2b56d4);
}
.dmm-login-card {
    background: #fff; padding: 2rem; border-radius: 1rem; width: 100%; max-width: 380px;
    box-shadow: 0 10px 40px rgba(0,0,0,.25);
}
.dmm-login-logo { font-size: 2.5rem; color: var(--dmm-primary); }

@media (max-width: 991px) {
    .dmm-sidebar { position: static; width: 100%; height: auto; flex-direction: row; flex-wrap: wrap; }
    .dmm-main { margin-left: 0; }
    .dmm-nav { display: flex; }
}

/* ---------- Modern dashboard ---------- */
.dmm-dashboard {
    --dash-surface: #ffffff;
    --dash-subtle: #f8fafc;
    --dash-border: #e5eaf1;
    --dash-text: #1f2937;
    --dash-muted: #6b7280;
    --dash-shadow: 0 10px 26px rgba(27, 36, 55, .055);
    display: grid;
    gap: 1rem;
}

.dmm-dashboard .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .38rem;
    min-height: 34px;
    padding: .42rem .72rem;
    border-radius: 8px;
    font-size: .88rem;
    font-weight: 600;
    line-height: 1.15;
}

.dmm-dashboard .btn-sm {
    min-height: 30px;
    padding: .32rem .58rem;
    font-size: .8rem;
}

.dmm-dashboard-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.05rem 1.1rem;
    background: var(--dash-surface);
    border: 1px solid var(--dash-border);
    border-top: 3px solid #3b82f6;
    border-radius: 8px;
    box-shadow: var(--dash-shadow);
}

.dmm-dashboard-hero-copy {
    min-width: 0;
}

.dmm-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: #0f766e;
    font-size: .74rem;
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: 0;
}

.dmm-dashboard-hero h2 {
    margin: .35rem 0 .25rem;
    color: var(--dash-text);
    font-size: clamp(1.28rem, 1.8vw, 1.65rem);
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 0;
}

.dmm-dashboard-hero p {
    max-width: 640px;
    margin: 0;
    color: var(--dash-muted);
    font-size: .92rem;
}

.dmm-dashboard-actions {
    display: flex;
    align-items: center;
    gap: .65rem;
    flex-wrap: wrap;
}

.dmm-kpi-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(142px, 1fr));
    gap: .85rem;
}

.dmm-kpi-card {
    --accent: #2563eb;
    --accent-soft: #dbeafe;
    min-width: 0;
    min-height: 128px;
    display: flex;
    flex-direction: column;
    padding: .88rem;
    background: var(--dash-surface);
    border: 1px solid var(--dash-border);
    border-top: 3px solid var(--accent);
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(27, 36, 55, .045);
}

.dmm-kpi-blue { --accent: #2563eb; --accent-soft: #dbeafe; }
.dmm-kpi-green { --accent: #059669; --accent-soft: #d1fae5; }
.dmm-kpi-cyan { --accent: #0891b2; --accent-soft: #cffafe; }
.dmm-kpi-amber { --accent: #d97706; --accent-soft: #fef3c7; }
.dmm-kpi-violet { --accent: #7c3aed; --accent-soft: #ede9fe; }

.dmm-kpi-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .85rem;
}

.dmm-kpi-icon {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    color: var(--accent);
    background: var(--accent-soft);
    border-radius: 8px;
    font-size: .95rem;
}

.dmm-kpi-caption {
    min-width: 0;
    color: var(--dash-muted);
    font-size: .74rem;
    text-align: right;
    overflow-wrap: anywhere;
}

.dmm-kpi-value {
    color: var(--dash-text);
    font-size: 1.68rem;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0;
}

.dmm-kpi-label {
    margin-top: .35rem;
    color: var(--dash-muted);
    font-size: .84rem;
}

.dmm-kpi-meter {
    height: 5px;
    margin-top: auto;
    overflow: hidden;
    background: #eef2f6;
    border-radius: 999px;
}

.dmm-kpi-meter span {
    display: block;
    height: 100%;
    background: var(--accent);
    border-radius: inherit;
}

.dmm-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, .85fr);
    gap: .9rem;
    align-items: start;
}

.dmm-dashboard-stack {
    display: grid;
    gap: .9rem;
    min-width: 0;
}

.dmm-panel {
    min-width: 0;
    overflow: hidden;
    background: var(--dash-surface);
    border: 1px solid var(--dash-border);
    border-radius: 8px;
    box-shadow: var(--dash-shadow);
}

.dmm-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .86rem .92rem;
    border-bottom: 1px solid var(--dash-border);
}

.dmm-panel-title {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: .62rem;
}

.dmm-panel-title h3 {
    margin: 0;
    color: var(--dash-text);
    font-size: .94rem;
    line-height: 1.2;
    font-weight: 700;
}

.dmm-panel-title p {
    margin: .2rem 0 0;
    color: var(--dash-muted);
    font-size: .78rem;
    line-height: 1.35;
}

.dmm-panel-icon {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    color: #2563eb;
    background: #eff6ff;
    border-radius: 8px;
    font-size: .92rem;
}

.dmm-panel-icon-danger {
    color: #dc2626;
    background: #fee2e2;
}

.dmm-modern-table {
    min-width: 640px;
}

.dmm-modern-table thead th {
    padding: .72rem .9rem;
    color: #64748b;
    background: var(--dash-subtle);
    border-bottom: 1px solid var(--dash-border);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.dmm-modern-table tbody td {
    padding: .72rem .9rem;
    border-color: #edf2f7;
}

.dmm-domain-cell {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: .55rem;
}

.dmm-domain-avatar {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    color: #1d4ed8;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    font-size: .82rem;
    font-weight: 700;
}

.dmm-domain-cell a {
    min-width: 0;
    color: var(--dash-text);
    font-weight: 600;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.dmm-domain-cell a:hover {
    color: #2563eb;
}

.dmm-muted-cell {
    color: var(--dash-muted);
    font-size: .82rem;
    white-space: nowrap;
}

.dmm-error-list {
    display: grid;
    gap: .62rem;
    max-height: 360px;
    overflow: auto;
    padding: .9rem;
}

.dmm-error-item {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) auto;
    gap: .62rem;
    align-items: start;
    padding: .68rem;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 8px;
}

.dmm-error-icon {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    color: #c2410c;
    background: #ffedd5;
    border-radius: 8px;
    font-size: .9rem;
}

.dmm-error-copy {
    min-width: 0;
    display: grid;
    gap: .15rem;
}

.dmm-error-copy strong {
    color: #7c2d12;
    font-size: .84rem;
    font-weight: 700;
}

.dmm-error-copy span {
    color: #9a3412;
    font-size: .8rem;
    overflow-wrap: anywhere;
}

.dmm-error-item time {
    color: #9a3412;
    font-size: .76rem;
    white-space: nowrap;
}

.dmm-empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 96px;
    color: var(--dash-muted);
    background: var(--dash-subtle);
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    font-size: .86rem;
    font-weight: 600;
}

.dmm-empty-state-success {
    color: #047857;
    background: #ecfdf5;
    border-color: #a7f3d0;
}

.dmm-health-list {
    display: grid;
    gap: .75rem;
    padding: .9rem;
}

.dmm-health-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    color: var(--dash-muted);
    font-size: .84rem;
}

.dmm-health-row strong {
    color: var(--dash-text);
    font-size: .94rem;
    font-weight: 700;
}

.dmm-health-bar {
    height: 6px;
    overflow: hidden;
    background: #eef2f6;
    border-radius: 999px;
}

.dmm-health-bar span {
    display: block;
    height: 100%;
    background: #059669;
    border-radius: inherit;
}

.dmm-health-bar-cyan span {
    background: #0891b2;
}

.dmm-health-note {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    padding: .68rem;
    color: #475569;
    background: #f8fafc;
    border: 1px solid var(--dash-border);
    border-radius: 8px;
    font-size: .82rem;
}

.dmm-dashboard .dmm-service-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem;
    padding: .9rem;
}

.dmm-dashboard .dmm-service-card {
    min-width: 0;
    padding: .68rem;
    background: #ffffff;
    border: 1px solid var(--dash-border);
    border-radius: 8px;
}

.dmm-service-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .5rem;
    margin-bottom: .55rem;
}

.dmm-service-head strong {
    color: var(--dash-text);
    font-size: .84rem;
    font-weight: 650;
}

.dmm-dashboard .dmm-service-card code {
    display: block;
    padding: .32rem .42rem;
    color: #64748b;
    background: #f8fafc;
    border: 1px solid #eef2f7;
    border-radius: 6px;
    font-size: .72rem;
    white-space: normal;
    word-break: break-word;
}

.dmm-dashboard .badge {
    padding: .34em .52em;
    font-weight: 600;
}

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

@media (max-width: 1199px) {
    .dmm-dashboard-grid { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
    .dmm-content { padding: 1rem; }
    .dmm-dashboard-hero { align-items: stretch; flex-direction: column; }
    .dmm-dashboard-actions { width: 100%; }
    .dmm-dashboard-actions .btn { flex: 1 1 160px; }
    .dmm-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dmm-panel-header { align-items: flex-start; flex-direction: column; }
    .dmm-panel-header .btn { align-self: stretch; }
    .dmm-error-item { grid-template-columns: 34px minmax(0, 1fr); }
    .dmm-error-item time { grid-column: 2; white-space: normal; }
}

@media (max-width: 575px) {
    .dmm-dashboard-hero { padding: 1rem; }
    .dmm-kpi-grid { grid-template-columns: 1fr; }
    .dmm-dashboard .dmm-service-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Modern detail page (.dmm-page) — dashboard tasarim dilini
   detay sayfalarina tasir. Ayni tokenlar + buton/badge cilasi.
   ============================================================ */
.dmm-page {
    --dash-surface: #ffffff;
    --dash-subtle: #f8fafc;
    --dash-border: #e5eaf1;
    --dash-text: #1f2937;
    --dash-muted: #6b7280;
    --dash-shadow: 0 10px 26px rgba(27, 36, 55, .055);
    display: grid;
    gap: 1rem;
}

.dmm-page .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    min-height: 34px;
    padding: .42rem .78rem;
    border-radius: 8px;
    font-size: .88rem;
    font-weight: 600;
    line-height: 1.15;
}
.dmm-page .btn-sm { min-height: 30px; padding: .32rem .6rem; font-size: .8rem; }
.dmm-page .badge { padding: .36em .58em; font-weight: 600; letter-spacing: 0; }

/* ---- Page header ---- */
.dmm-page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.15rem;
    background: var(--dash-surface);
    border: 1px solid var(--dash-border);
    border-top: 3px solid #3b82f6;
    border-radius: 8px;
    box-shadow: var(--dash-shadow);
}
.dmm-page-id { display: flex; align-items: center; gap: .85rem; min-width: 0; }
.dmm-page-avatar {
    flex: 0 0 46px;
    width: 46px; height: 46px;
    display: grid; place-items: center;
    color: #1d4ed8;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    border-radius: 11px;
    font-size: 1.25rem; font-weight: 700;
    text-transform: uppercase;
}
.dmm-page-id h2 {
    margin: 0;
    display: flex; align-items: center; gap: .55rem; flex-wrap: wrap;
    color: var(--dash-text);
    font-size: clamp(1.15rem, 1.6vw, 1.42rem);
    font-weight: 700; line-height: 1.15;
    overflow-wrap: anywhere;
}
.dmm-page-meta { margin-top: .2rem; color: var(--dash-muted); font-size: .8rem; }
.dmm-page-actions { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; justify-content: flex-end; }

/* ---- Alert (modern) ---- */
.dmm-note {
    display: flex; align-items: flex-start; gap: .6rem;
    padding: .8rem .95rem;
    border: 1px solid var(--dash-border);
    border-left: 3px solid #94a3b8;
    border-radius: 8px;
    background: var(--dash-surface);
    box-shadow: var(--dash-shadow);
    font-size: .86rem; color: #475569;
}
.dmm-note i { font-size: 1rem; margin-top: .05rem; }
.dmm-note-warn { border-left-color: #d97706; background: #fffbeb; color: #92400e; }
.dmm-note-ok { border-left-color: #059669; background: #ecfdf5; color: #047857; }
.dmm-note-danger { border-left-color: #dc2626; background: #fef2f2; color: #991b1b; }

/* ---- Status tiles ---- */
.dmm-status-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
    gap: .7rem;
}
.dmm-status-tile {
    display: flex; flex-direction: column; align-items: flex-start; gap: .5rem;
    padding: .72rem .8rem;
    background: var(--dash-surface);
    border: 1px solid var(--dash-border);
    border-left: 3px solid var(--tile-accent, #94a3b8);
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(27, 36, 55, .04);
}
.dmm-status-tile.is-ok { --tile-accent: #059669; }
.dmm-status-tile.is-pending { --tile-accent: #d97706; }
.dmm-status-tile.is-error { --tile-accent: #dc2626; }
.dmm-status-tile.is-idle { --tile-accent: #94a3b8; }
.dmm-status-tile .st-label {
    color: var(--dash-muted);
    font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .02em;
}

/* ---- Detail grid ---- */
.dmm-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(300px, .9fr);
    gap: .95rem;
    align-items: start;
}
.dmm-stack { display: grid; gap: .95rem; min-width: 0; }
.dmm-panel-body { padding: .95rem; }

/* ---- Key/Value table ---- */
.dmm-kv { display: grid; }
.dmm-kv > div {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: .58rem .95rem;
    border-bottom: 1px solid var(--dash-border);
    font-size: .84rem;
}
.dmm-kv > div:last-child { border-bottom: 0; }
.dmm-kv .k { color: var(--dash-muted); }
.dmm-kv .v { color: var(--dash-text); font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.dmm-kv .v code { font-size: .82rem; }

/* ---- Record table (SMTP2GO) ---- */
.dmm-rec-table { min-width: 0; margin: 0; }
.dmm-rec-table thead th {
    padding: .5rem .7rem;
    color: #64748b; background: var(--dash-subtle);
    border-bottom: 1px solid var(--dash-border);
    font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .02em;
}
.dmm-rec-table tbody td { padding: .55rem .7rem; border-color: #eef2f7; vertical-align: middle; font-size: .8rem; }
.dmm-rec-table code { font-size: .76rem; overflow-wrap: anywhere; }

/* ---- Account rows ---- */
.dmm-accounts { display: grid; }
.dmm-account-row {
    display: flex; align-items: center; gap: .7rem;
    padding: .62rem .95rem;
    border-bottom: 1px solid var(--dash-border);
}
.dmm-account-row:last-child { border-bottom: 0; }
.dmm-account-avatar {
    flex: 0 0 30px; width: 30px; height: 30px;
    display: grid; place-items: center;
    color: #0f766e; background: #ccfbf1; border-radius: 8px;
    font-size: .82rem; font-weight: 700; text-transform: uppercase;
}
.dmm-account-row .ac-mail { min-width: 0; flex-grow: 1; color: var(--dash-text); font-weight: 600; font-size: .86rem; overflow-wrap: anywhere; }
.dmm-account-row .ac-quota { color: var(--dash-muted); font-size: .76rem; white-space: nowrap; }
.dmm-account-actions { display: flex; gap: .3rem; flex: 0 0 auto; }
.dmm-icon-btn {
    width: 30px; height: 30px; flex: 0 0 30px;
    display: grid; place-items: center;
    border: 1px solid var(--dash-border); border-radius: 7px; background: #fff;
    color: #64748b; font-size: .8rem; cursor: pointer; transition: border-color .12s, color .12s, background .12s;
}
.dmm-icon-btn:hover { border-color: #93c5fd; color: #2563eb; background: #f8fafc; }
.dmm-icon-btn.danger:hover { border-color: #fca5a5; color: #dc2626; background: #fef2f2; }

/* Aktif/pasif toggle: durumu renkle belli et */
.dmm-toggle.is-on { color: #059669; border-color: #a7f3d0; background: #ecfdf5; }
.dmm-toggle.is-on:hover { color: #047857; border-color: #6ee7b7; background: #d1fae5; }
.dmm-toggle.is-off { color: #dc2626; border-color: #fecaca; background: #fef2f2; }
.dmm-toggle.is-off:hover { color: #b91c1c; border-color: #fca5a5; background: #fee2e2; }
.dmm-toggle.is-on i, .dmm-toggle.is-off i { font-size: 1rem; }

/* Pasif satiri soluklastir */
.dmm-account-row[data-mb-active="0"] { opacity: .7; }
.dmm-account-row[data-mb-active="0"] .dmm-account-avatar { filter: grayscale(1); }

/* ---- Checklist ---- */
.dmm-checklist-list { display: grid; }
.dmm-check-item {
    display: flex; align-items: flex-start; gap: .6rem;
    padding: .6rem .95rem;
    border-bottom: 1px solid var(--dash-border);
}
.dmm-check-item:last-child { border-bottom: 0; }
.dmm-check-item .form-check-input { margin-top: .15rem; cursor: pointer; }
.dmm-check-item label { font-size: .84rem; color: var(--dash-text); cursor: pointer; }
.dmm-check-item label.done { color: var(--dash-muted); text-decoration: line-through; }

/* ---- Timeline (logs) ---- */
.dmm-timeline { display: grid; gap: 0; padding: .5rem .95rem .95rem; max-height: 360px; overflow: auto; }
.dmm-tl-item { position: relative; display: grid; gap: .12rem; padding: .5rem 0 .5rem 1.15rem; }
.dmm-tl-item::before {
    content: ''; position: absolute; left: 0; top: .72rem;
    width: 9px; height: 9px; border-radius: 50%;
    background: #cbd5e1; box-shadow: 0 0 0 3px #fff;
}
.dmm-tl-item::after {
    content: ''; position: absolute; left: 4px; top: 1.1rem; bottom: -.4rem;
    width: 1px; background: var(--dash-border);
}
.dmm-tl-item:last-child::after { display: none; }
.dmm-tl-item.tl-success::before { background: #059669; }
.dmm-tl-item.tl-error::before { background: #dc2626; }
.dmm-tl-item.tl-warning::before { background: #d97706; }
.dmm-tl-head { display: flex; align-items: center; gap: .4rem; font-size: .82rem; color: var(--dash-text); }
.dmm-tl-head strong { font-weight: 700; }
.dmm-tl-time { color: var(--dash-muted); font-size: .72rem; }

/* ---- Danger zone ---- */
.dmm-danger { border-top-color: #dc2626 !important; }
.dmm-danger .dmm-panel-icon { color: #dc2626; background: #fee2e2; }
.dmm-scope-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .6rem; margin-bottom: 1rem; }
.dmm-scope-chip {
    display: flex; align-items: center; gap: .55rem;
    padding: .6rem .75rem;
    border: 1px solid var(--dash-border); border-radius: 8px;
    background: var(--dash-subtle);
    font-size: .82rem; color: var(--dash-text); cursor: pointer;
    transition: border-color .12s, background .12s;
}
.dmm-scope-chip:has(input:checked) { border-color: #fca5a5; background: #fef2f2; }
.dmm-scope-chip .form-check-input { margin: 0; cursor: pointer; }

/* ---- Provision live modal ---- */
.dmm-prov-list { display: grid; gap: .5rem; text-align: left; }
.dmm-prov-item {
    display: flex; align-items: flex-start; gap: .7rem;
    padding: .68rem .8rem;
    border: 1px solid var(--dash-border, #e5eaf1); border-radius: 8px;
    background: #fff;
}
.dmm-prov-item .prov-ic { flex: 0 0 20px; text-align: center; padding-top: .1rem; }
.dmm-prov-item .prov-label { font-size: .88rem; font-weight: 600; color: #1f2937; }
.dmm-prov-item .prov-detail { font-size: .76rem; color: #6b7280; margin-top: .12rem; }
.dmm-prov-item.state-run { border-color: #bfdbfe; background: #eff6ff; }
.dmm-prov-item.state-done { border-color: #a7f3d0; background: #ecfdf5; }
.dmm-prov-item.state-error { border-color: #fecaca; background: #fef2f2; }
.dmm-prov-item.state-waiting { border-color: #fde68a; background: #fffbeb; }

/* ---- Simple page header (avatarsiz sayfalar: liste/form/tani) ---- */
.dmm-page-head-simple {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: .95rem 1.15rem;
    background: var(--dash-surface);
    border: 1px solid var(--dash-border);
    border-top: 3px solid #3b82f6;
    border-radius: 8px;
    box-shadow: var(--dash-shadow);
}
.dmm-page-head-simple .phs-title { display: flex; align-items: center; gap: .7rem; min-width: 0; }
.dmm-page-head-simple .phs-icon {
    flex: 0 0 38px; width: 38px; height: 38px;
    display: grid; place-items: center;
    color: #1d4ed8; background: #eff6ff; border: 1px solid #dbeafe; border-radius: 10px;
    font-size: 1.05rem;
}
.dmm-page-head-simple h2 { margin: 0; color: var(--dash-text); font-size: clamp(1.1rem, 1.5vw, 1.35rem); font-weight: 700; line-height: 1.15; }
.dmm-page-head-simple .phs-sub { margin: .1rem 0 0; color: var(--dash-muted); font-size: .8rem; }
.dmm-page-head-simple .phs-actions { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: flex-end; }

/* ---- Modern form controls (.dmm-page kapsaminda) ---- */
.dmm-page .form-label { color: var(--dash-text); font-size: .84rem; font-weight: 600; margin-bottom: .35rem; }
.dmm-page .form-control,
.dmm-page .form-select {
    border: 1px solid var(--dash-border);
    border-radius: 8px;
    padding: .5rem .7rem;
    font-size: .88rem;
    color: var(--dash-text);
    background-color: #fff;
}
.dmm-page .form-control:focus,
.dmm-page .form-select:focus {
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .12);
}
.dmm-page .form-text { font-size: .78rem; color: var(--dash-muted); }
.dmm-page .input-group-text { border-radius: 8px; border-color: var(--dash-border); background: var(--dash-subtle); }

/* Form panel govdesi ic bosluk yardimcisi */
.dmm-panel-pad { padding: 1.1rem; }

/* Modern table (liste sayfalari) — DataTables ile uyumlu */
.dmm-page .dataTables_wrapper { padding: .3rem .2rem 0; }
.dmm-page table.dataTable thead th,
.dmm-page .dmm-list-table thead th {
    padding: .7rem .9rem;
    color: #64748b; background: var(--dash-subtle);
    border-bottom: 1px solid var(--dash-border) !important;
    font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .02em;
}
.dmm-page table.dataTable tbody td,
.dmm-page .dmm-list-table tbody td { padding: .68rem .9rem; border-color: #edf2f7; vertical-align: middle; font-size: .84rem; }
.dmm-page table.dataTable tbody tr:hover { background: #f8fafc; }

@media (max-width: 1199px) { .dmm-detail-grid { grid-template-columns: 1fr; } }
@media (max-width: 767px) {
    .dmm-page-head, .dmm-page-head-simple { flex-direction: column; align-items: stretch; }
    .dmm-page-actions, .dmm-page-head-simple .phs-actions { justify-content: stretch; }
    .dmm-page-actions .btn, .dmm-page-head-simple .phs-actions .btn { flex: 1 1 auto; }
}

/* ============================================================
   Modern auth (login) — split-screen brand + form
   ============================================================ */
.dmm-auth {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    background: #f4f6fb;
}
.dmm-auth-brand {
    position: relative; overflow: hidden;
    display: flex; flex-direction: column; justify-content: space-between;
    gap: 2rem; padding: 3.2rem;
    background: linear-gradient(150deg, #1b2437 0%, #233056 52%, #2b56d4 135%);
    color: #e8edf7;
}
.dmm-auth-brand::before {
    content: ''; position: absolute; width: 460px; height: 460px;
    right: -140px; top: -150px; border-radius: 50%;
    background: radial-gradient(circle, rgba(126,160,255,.32), transparent 70%);
}
.dmm-auth-brand::after {
    content: ''; position: absolute; width: 320px; height: 320px;
    left: -120px; bottom: -140px; border-radius: 50%;
    background: radial-gradient(circle, rgba(43,86,212,.28), transparent 70%);
}
.dmm-auth-logo { position: relative; display: flex; align-items: center; gap: .6rem; font-size: 1.3rem; font-weight: 700; color: #fff; }
.dmm-auth-logo i { color: #7ea0ff; font-size: 1.55rem; }
.dmm-auth-hero { position: relative; }
.dmm-auth-hero h1 { font-size: clamp(1.6rem, 2.5vw, 2.25rem); font-weight: 700; line-height: 1.22; margin: 0 0 .8rem; color: #fff; letter-spacing: -.01em; }
.dmm-auth-hero p { max-width: 430px; color: #b9c6e4; font-size: .98rem; line-height: 1.65; margin: 0; }
.dmm-auth-features { display: grid; gap: .8rem; margin-top: 1.7rem; }
.dmm-auth-feature { display: flex; align-items: center; gap: .75rem; color: #d3ddf3; font-size: .92rem; }
.dmm-auth-feature i {
    flex: 0 0 36px; width: 36px; height: 36px; display: grid; place-items: center;
    background: rgba(126,160,255,.14); border: 1px solid rgba(126,160,255,.24);
    border-radius: 9px; color: #9db8ff; font-size: .95rem;
}
.dmm-auth-foot { position: relative; color: #8593b8; font-size: .8rem; }

.dmm-auth-form { display: flex; align-items: center; justify-content: center; padding: 2rem; }
.dmm-auth-card { width: 100%; max-width: 400px; }
.dmm-auth-card .mobile-logo { display: none; }
.dmm-auth-card h2 { font-size: 1.5rem; font-weight: 700; color: #1b2437; margin: 0 0 .3rem; }
.dmm-auth-card .sub { color: #6b7280; font-size: .9rem; margin: 0 0 1.7rem; }
.dmm-auth-card .form-label { font-weight: 600; font-size: .84rem; color: #374151; margin-bottom: .35rem; }
.dmm-auth-card .form-control { padding: .62rem .85rem; border-radius: 9px; border-color: #e5eaf1; font-size: .92rem; }
.dmm-auth-card .form-control:focus { border-color: #93c5fd; box-shadow: 0 0 0 3px rgba(59,130,246,.12); }
.dmm-auth-card .input-group .btn { border-color: #e5eaf1; color: #94a3b8; }
.dmm-auth-card .btn-primary { padding: .62rem; border-radius: 9px; font-weight: 600; }

@media (max-width: 860px) {
    .dmm-auth { grid-template-columns: 1fr; }
    .dmm-auth-brand { display: none; }
    .dmm-auth-form { min-height: 100vh; }
    .dmm-auth-card .mobile-logo {
        display: flex; align-items: center; justify-content: center; gap: .5rem;
        margin-bottom: 1.5rem; font-size: 1.3rem; font-weight: 700; color: #1b2437;
    }
    .dmm-auth-card .mobile-logo i { color: #2b56d4; font-size: 1.6rem; }
}
