/* Panoul central Linkr — design preluat din portalul clienților webdinasty (client.webdinasty.ro):
   fundal cald, carduri albe rotunjite, negru + lime (#a1ea48), Plus Jakarta Sans, temă luminoasă/întunecată. */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root, body.central {
    --bg: #f8f8f7; --fg: #363636; --card: #ffffff; --card-fg: #363636; --muted: #f3f3f1; --muted-fg: #666666;
    --primary: #010204; --primary-fg: #ffffff; --accent: #ecf9dc; --accent-fg: #010204; --lime: #a1ea48; --lime-fg: #010204;
    --border: #e7e7e4; --input: #e2e2df; --ring: #a1ea48; --danger: #ef4444; --warn: #e8a03c; --ok: #4a9d1c;
    --sidebar: #ffffff; --sidebar-border: #ecece9; --pill-bg: #010204; --pill-fg: #ffffff;
    --hero-bg: #010204; --hero-fg: #ffffff; --hero-sub: rgba(255,255,255,.78); --radius: 1.25rem;
}
html[data-theme="dark"] body.central, html[data-theme="dark"] {
    --bg: #09090b; --fg: #f5f5f5; --card: #111214; --card-fg: #f5f5f5; --muted: #17181a; --muted-fg: #a1a1a6;
    --primary: #a1ea48; --primary-fg: #010204; --accent: #1d2a12; --accent-fg: #cfeea4; --border: #26282c; --input: #2a2c30;
    --sidebar: #09090b; --sidebar-border: #1c1d20; --pill-bg: #a1ea48; --pill-fg: #010204;
    --hero-bg: #a1ea48; --hero-fg: #010204; --hero-sub: rgba(1,2,4,.75);
}
body.central { background: var(--bg); color: var(--fg); font-family: 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif; font-size: 14px; }
body.central a { color: inherit; }
body.central h1, body.central h2, body.central h3, body.central h4, body.central h5, body.central h6 { color: var(--fg); font-family: inherit; font-weight: 600; letter-spacing: -.01em; }

/* ---- Layout ---- */
.c-shell { display: flex; min-height: 100vh; }
.c-sidebar { width: 248px; flex: 0 0 248px; background: var(--sidebar); border-right: 1px solid var(--sidebar-border); padding: 14px 12px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.c-brand { padding: 6px 10px 16px; display: block; }
.c-brand img { height: 30px; width: auto; display: block; }
/* Un singur logo odată (mai specific decât `.c-brand img`, altfel apar ambele și se vede punctul verde al celui alb) */
.c-brand img.logo-dark-theme { display: none; }
html[data-theme="dark"] .c-brand img.logo-dark-theme { display: block; }
html[data-theme="dark"] .c-brand img.logo-light-theme { display: none; }
.c-nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.c-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; color: var(--fg); text-decoration: none; font-weight: 500; }
.c-nav a:hover { background: var(--accent); color: var(--accent-fg); }
.c-nav a.active { background: var(--pill-bg); color: var(--pill-fg); }
.c-nav svg, .c-ico svg { width: 18px; height: 18px; flex: none; }
.c-user { border-top: 1px solid var(--sidebar-border); padding-top: 12px; display: flex; align-items: center; gap: 10px; }
.c-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: var(--primary-fg); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.c-user small { display: block; color: var(--muted-fg); font-size: 11.5px; }
.c-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.c-top { height: 64px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; padding: 0 24px; gap: 12px; }
.c-top .crumb { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.c-iconbtn { width: 36px; height: 36px; border-radius: 999px; border: 0; background: transparent; color: var(--fg); display: grid; place-items: center; cursor: pointer; }
.c-iconbtn:hover { background: var(--accent); }
.c-iconbtn.on { background: var(--lime); color: var(--lime-fg); }
.c-theme { display: flex; gap: 2px; background: var(--muted); border-radius: 999px; padding: 3px; }
.c-content { padding: 24px 28px; width: 100%; }
.c-toggle { display: none; }
@media (max-width: 900px) { .c-sidebar { position: fixed; z-index: 30; left: -260px; transition: left .2s; } body.nav-open .c-sidebar { left: 0; } .c-toggle { display: grid; } .c-content { padding: 16px; } }

/* ---- Componente ---- */
.c-hero { background: var(--hero-bg); color: var(--hero-fg); border-radius: var(--radius); padding: 28px 32px; margin-bottom: 20px; position: relative; overflow: hidden; }
.c-hero .eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: 11px; font-weight: 600; opacity: .8; }
.c-hero h1 { color: var(--hero-fg) !important; font-size: 30px; margin: 10px 0 6px; }
.c-hero p { margin: 0; color: var(--hero-sub); }
.c-hero::after { content: ''; position: absolute; right: -60px; bottom: -90px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255,255,255,.06); }
.c-grid { display: grid; gap: 16px; }
.c-stats { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: 20px; }
.c-two { grid-template-columns: 2fr 1fr; margin-bottom: 20px; }
@media (max-width: 1000px) { .c-two { grid-template-columns: 1fr; } }
.c-card { background: var(--card); color: var(--card-fg); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; }
.c-card h2 { font-size: 16px; margin: 0 0 2px; }
.c-card .sub { color: var(--muted-fg); font-size: 12.5px; margin: 0 0 14px; }
.c-stat { display: flex; justify-content: space-between; align-items: flex-start; }
.c-stat .label { color: var(--muted-fg); font-size: 12.5px; }
.c-stat .value { font-size: 28px; font-weight: 600; margin: 6px 0 4px; letter-spacing: -.02em; }
.c-stat .value.bad { color: var(--danger); }
.c-stat .cap { color: var(--muted-fg); font-size: 12px; }
.c-chip { width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: var(--accent-fg); display: grid; place-items: center; }
.c-bars { display: flex; align-items: flex-end; gap: 14px; height: 190px; padding-top: 8px; }
.c-bars .bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 6px; min-width: 0; }
.c-bars .bar i { display: block; width: min(22px, 70%); border-radius: 999px; background: var(--lime); min-height: 6px; }
.c-bars .bar span { font-size: 11px; color: var(--muted-fg); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-list { list-style: none; margin: 0; padding: 0; }
.c-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); align-items: center; }
.c-list li:last-child { border-bottom: 0; }
.c-empty { text-align: center; color: var(--muted-fg); padding: 28px 0; }
.c-empty .c-chip { margin: 0 auto 10px; border-radius: 50%; }
.c-page-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; gap: 12px; flex-wrap: wrap; }
.c-page-head h1 { font-size: 22px; margin: 0; }

/* ---- Suprascrieri Bootstrap/Volt pentru paginile existente ---- */
body.central .card { background: var(--card); color: var(--card-fg); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: none; }
body.central .card-body { padding: 18px 20px; }
body.central .table { color: var(--fg); --bs-table-bg: transparent; --bs-table-color: var(--fg); border-color: var(--border); margin: 0; }
body.central .table th { color: var(--muted-fg); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid var(--border); background: transparent; padding: 12px 16px; }
body.central .table td { border-color: var(--border); padding: 12px 16px; background: transparent; color: var(--fg); }
body.central .table-responsive { border-radius: var(--radius); }
body.central .btn { border-radius: 999px; font-weight: 600; padding: 8px 16px; }
body.central .btn-sm { padding: 5px 12px; font-size: 12.5px; }
body.central .btn-primary, body.central .btn-success { background: var(--primary); border-color: var(--primary); color: var(--primary-fg); }
body.central .btn-primary:hover, body.central .btn-success:hover { filter: brightness(1.12); background: var(--primary); border-color: var(--primary); color: var(--primary-fg); }
body.central .btn-outline-primary, body.central .btn-outline-secondary { border-color: var(--border); color: var(--fg); background: transparent; }
body.central .btn-outline-primary:hover, body.central .btn-outline-secondary:hover { background: var(--accent); color: var(--accent-fg); border-color: var(--border); }
body.central .btn-outline-danger { border-color: color-mix(in srgb, var(--danger) 45%, transparent); color: var(--danger); background: transparent; }
body.central .btn-outline-danger:hover { background: var(--danger); color: #fff; border-color: var(--danger); }
body.central .btn-link { color: var(--muted-fg); }
body.central .form-control, body.central .form-select { background: var(--card); color: var(--fg); border: 1px solid var(--input); border-radius: 12px; padding: 9px 12px; }
body.central .form-control:focus, body.central .form-select:focus { border-color: var(--ring); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ring) 35%, transparent); background: var(--card); color: var(--fg); }
body.central .form-label { font-weight: 600; font-size: 12.5px; color: var(--fg); }
body.central .form-check-input:checked { background-color: var(--primary); border-color: var(--primary); }
body.central .badge { border-radius: 999px; font-weight: 600; padding: 5px 10px; }
body.central .badge.bg-success { background: var(--accent) !important; color: var(--accent-fg) !important; }
body.central .badge.bg-warning { background: color-mix(in srgb, var(--warn) 22%, transparent) !important; color: var(--warn) !important; }
body.central .badge.bg-danger, body.central .badge-suspended { background: color-mix(in srgb, var(--danger) 18%, transparent) !important; color: var(--danger) !important; }
body.central .badge.bg-secondary { background: var(--muted) !important; color: var(--muted-fg) !important; }
body.central .alert { border-radius: 14px; border: 1px solid var(--border); }
body.central .alert-success { background: var(--accent); color: var(--accent-fg); border-color: transparent; }
body.central .alert-danger { background: color-mix(in srgb, var(--danger) 12%, var(--card)); color: var(--danger); border-color: transparent; }
body.central .alert-info { background: var(--muted); color: var(--fg); }
body.central .list-group-item { background: transparent; color: var(--fg); border-color: var(--border); }
body.central code { color: var(--fg); background: var(--muted); padding: 1px 6px; border-radius: 6px; }
body.central .text-muted { color: var(--muted-fg) !important; }
body.central hr { border-color: var(--border); }

/* ---- Autentificare (negru + lime, ca pagina publică a portalului) ---- */
body.central-auth { background: #010204; color: #f5f5f5; font-family: 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif; min-height: 100vh; display: grid; place-items: center; padding: 24px; }
body.central-auth .auth-card { width: 100%; max-width: 420px; background: #111214; border: 1px solid #26282c; border-radius: 22px; padding: 30px 28px; }
body.central-auth .auth-logo { display: block; height: 34px; margin: 0 auto 22px; }
body.central-auth h1 { font-size: 22px; color: #fff; margin: 0 0 6px; font-weight: 600; }
body.central-auth p { color: #a1a1a6; }
body.central-auth .form-label { color: #f5f5f5; font-weight: 600; font-size: 12.5px; }
body.central-auth .form-control { background: #0a0a0b; border: 1px solid #2a2c30; color: #fff; border-radius: 12px; padding: 11px 13px; }
body.central-auth .form-control:focus { border-color: #a1ea48; box-shadow: 0 0 0 3px rgba(161,234,72,.25); background: #0a0a0b; color: #fff; }
body.central-auth .btn-primary { background: #a1ea48; border-color: #a1ea48; color: #010204; border-radius: 999px; font-weight: 700; padding: 11px; }
body.central-auth .btn-primary:hover { filter: brightness(1.08); background: #a1ea48; color: #010204; border-color: #a1ea48; }
body.central-auth a { color: #a1ea48; }
body.central-auth .text-danger { color: #ff6b6b !important; }
body.central-auth code { background: #1d1f22; color: #cfeea4; padding: 2px 6px; border-radius: 6px; }
body.central-auth .alert { border-radius: 14px; }
body.central-auth .qr { background: #fff; border-radius: 14px; padding: 10px; max-width: 220px; margin: 0 auto 14px; }

/* ---- Plan / module (selecție) ---- */
.c-plan { cursor: pointer; display: block; }
.c-plan-body { display: flex; flex-direction: column; gap: 4px; height: 100%; border: 1px solid var(--border); border-radius: 16px; padding: 14px 16px; background: var(--card); }
.c-plan input:checked + .c-plan-body { border-color: var(--lime); box-shadow: 0 0 0 3px color-mix(in srgb, var(--lime) 35%, transparent); background: var(--accent); color: var(--accent-fg); }
.c-plan input:checked + .c-plan-body .text-muted { color: inherit !important; opacity: .75; }
.c-module { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--border); border-radius: 14px; padding: 10px 14px; background: var(--card); height: 100%; cursor: pointer; }
.c-module input { margin-top: 3px; flex: none; }
.c-matrix td, .c-matrix th { text-align: center; }
.c-matrix td:first-child, .c-matrix th:first-child { text-align: left; }
.c-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--lime); }
.c-dot.off { background: var(--border); }

/* ---- Popup-uri (Bootstrap modal) în stilul panoului ---- */
body.central .modal-content { background: var(--card); color: var(--card-fg); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 24px 60px rgba(0,0,0,.25); }
body.central .modal-header, body.central .modal-footer { border-color: var(--border); }
body.central .modal-title { font-size: 17px; font-weight: 600; }
html[data-theme="dark"] body.central .btn-close { filter: invert(1) grayscale(1) brightness(1.6); }
body.central .modal-backdrop.show { opacity: .55; }

.c-checks { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 14px; color: var(--muted-fg); }
body.central .c-checks { font-size: .875em; }
body.central .c-checks li { font-size: inherit; line-height: 1.5; font-weight: 400; }
body.central .c-checks li { display: inline-flex; align-items: center; gap: 4px; margin: 0; padding: 0; }
.c-checks svg { width: 12px; height: 12px; stroke-width: 3; color: var(--lime); flex: none; }

/* Fișa firmei: navigare pe secțiuni */
.c-page-head h1 .badge { font-size: 12px; vertical-align: middle; }
.c-tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--border); margin-bottom: 20px; position: sticky; top: 0; z-index: 5; background: var(--bg); padding-top: 4px; }
.c-tabs a { padding: 10px 14px; color: var(--muted-fg); text-decoration: none; font-weight: 500; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.c-tabs a:hover { color: var(--fg); }
.c-tabs a.active { color: var(--fg); border-bottom-color: var(--lime); }
.c-pane { display: grid; gap: 16px; align-content: start; }
.c-pane[hidden] { display: none; }

/* Componente standard: grile cu înălțimi egale, carduri cu antet / corp / subsol */
.c-kpis { display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.c-kpis .c-card { display: flex; flex-direction: column; justify-content: center; min-height: 112px; }
.c-cols { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
.c-cols-7-5 { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; }
.c-stack { display: grid; gap: 16px; }
@media (max-width: 1100px) { .c-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .c-cols, .c-cols-7-5 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .c-kpis { grid-template-columns: minmax(0, 1fr); } }

.c-panel { display: flex; flex-direction: column; background: var(--card); color: var(--card-fg); border: 1px solid var(--border); border-radius: var(--radius); min-width: 0; font-size: 13.5px; }
.c-panel-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 10px 20px; border-bottom: 1px solid var(--border); }
.c-panel-h h2 { font-size: 15px; font-weight: 600; margin: 0; }
.c-panel-b { padding: 6px 20px 16px; flex: 1 1 auto; }
.c-panel-f { display: flex; align-items: center; justify-content: flex-end; gap: 8px; min-height: 56px; padding: 10px 20px; border-top: 1px solid var(--border); }
.c-panel-f > input.form-control { flex: 1 1 auto; }
.c-panel .btn-sm, .c-panel .form-select-sm, .c-panel .form-control-sm { height: 34px; line-height: 1.2; }
.c-panel .btn-sm { display: inline-flex; align-items: center; justify-content: center; }
.c-panel .c-list li { padding: 12px 0; }
.c-panel .c-list li > span:first-child { min-width: 0; overflow-wrap: anywhere; }

.c-kv { margin: 0; }
.c-kv > div { display: grid; grid-template-columns: minmax(110px, 38%) minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); align-items: baseline; }
.c-kv > div:last-child { border-bottom: 0; }
.c-kv dt { font-weight: 400; color: var(--muted-fg); }
.c-kv dd { margin: 0; overflow-wrap: anywhere; }
.c-kv-totals { border-top: 1px solid var(--border); margin-top: 4px; }
.c-kv-totals > div { grid-template-columns: 1fr auto; }
.c-kv-totals dd { text-align: right; font-weight: 600; }
.c-kv-totals .is-total { font-size: 15px; }
.c-swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; border: 1px solid var(--border); }
.c-meter { height: 8px; border-radius: 999px; background: var(--muted); overflow: hidden; margin: 8px 0 6px; }
.c-meter i { display: block; height: 100%; }

.c-rows { display: flex; flex-direction: column; }
.c-row { padding: 14px 0; border-bottom: 1px solid var(--border); }
.c-row:last-child { border-bottom: 0; }
.c-row-inline { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.c-row-inline > div:first-child { flex: 1 1 260px; min-width: 0; }
.c-danger { border-color: color-mix(in srgb, var(--danger) 35%, var(--border)); }

/* Previzualizare sigle/favicon */
.brand-previews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.brand-previews figure { margin: 0; }
.brand-previews figcaption { font-size: 12px; color: var(--muted-fg); margin-top: 6px; text-align: center; }
.brand-preview { display: flex; align-items: center; justify-content: center; height: 72px; border: 1px solid var(--border); border-radius: 10px; padding: 10px; margin-bottom: 6px; }
.brand-previews .brand-preview { margin-bottom: 0; }
.brand-preview img { max-width: 100%; max-height: 100%; object-fit: contain; }
.brand-preview.on-light { background: #fff; }
.brand-preview.on-dark { background: #0a0a0c; }
.brand-preview.is-icon { background: var(--muted); }

/* Matrice roluri × permisiuni */
.c-matrix-wrap { overflow: auto; max-height: 70vh; }
.c-matrix { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 13px; }
.c-matrix th, .c-matrix td { padding: 8px 12px; border-bottom: 1px solid var(--border); background: var(--card); }
.c-matrix thead th { position: sticky; top: 0; z-index: 2; font-weight: 600; white-space: nowrap; }
.c-matrix th:first-child, .c-matrix td:first-child { position: sticky; left: 0; z-index: 1; min-width: 280px; }
.c-matrix thead th:first-child { z-index: 3; }
.c-matrix-group th, .c-matrix-group td { background: var(--muted); font-weight: 600; }
.c-matrix .is-off td:not(:first-child), .c-matrix .is-off td:first-child { opacity: .55; }
.c-matrix .form-check-input { margin: 0; }

/* Indicatori (sus în fiecare secțiune) și carduri de integrări */
.c-kpis { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.c-kpi-text { font-size: 16px; font-weight: 600; letter-spacing: 0; overflow-wrap: anywhere; line-height: 1.3; display: block; margin: 10px 0 8px; }
.c-stretch { align-items: stretch; }
.c-cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.c-integ { min-height: 170px; }
.c-integ .c-panel-b { padding-top: 16px; }
[data-subscription] .c-plan-body { flex-direction: row; align-items: center; justify-content: center; height: 38px; padding: 0 16px; border-radius: 10px; }
[data-subscription] .form-select, [data-subscription] .form-control { height: 38px; }

/* Indicatori (sus în fiecare secțiune) și carduri de integrări */
.c-kpis { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.c-kpi-text { font-size: 16px; font-weight: 600; letter-spacing: 0; overflow-wrap: anywhere; line-height: 1.3; display: block; margin: 10px 0 8px; }
.c-stretch { align-items: stretch; }
.c-cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.c-integ { min-height: 170px; }
.c-integ .c-panel-b { padding-top: 16px; }
[data-subscription] .c-plan-body { flex-direction: row; align-items: center; justify-content: center; height: 38px; padding: 0 16px; border-radius: 10px; }
[data-subscription] .form-select, [data-subscription] .form-control { height: 38px; }
.c-tabs { scrollbar-width: none; }
.c-tabs::-webkit-scrollbar { display: none; }

/* Pagina Planuri */
.c-plans { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); align-items: stretch; }
.c-plan-card.is-hidden { opacity: .7; }
.c-price { font-size: 28px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 4px; }
.c-price small { font-size: 13px; font-weight: 400; color: var(--muted-fg); letter-spacing: 0; }
.c-plan-modules { display: grid; gap: 8px; }
.c-plan-module { border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px; background: var(--card); }
.c-plan-module-h { display: flex; align-items: center; gap: 10px; margin: 0; cursor: pointer; }
.c-plan-functions { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 16px; margin-top: 8px; padding-left: 26px; font-size: 13px; }
.c-plan-functions label { display: flex; align-items: center; gap: 8px; margin: 0; cursor: pointer; }
.c-plan-integrations { padding-left: 0; margin-top: 0; }
.c-plan-module .form-check-input, .c-plan-functions .form-check-input { margin: 0; flex: none; }
[hidden] { display: none !important; }
.c-plan-summary { margin-top: 10px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--muted); }
.c-plan-summary .c-checks { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px 16px; }
.c-plan-card .c-panel-b { display: flex; flex-direction: column; }
.c-plan-card .c-kv { margin-top: auto; padding-top: 12px; }
.c-plan-card .c-checks { margin-bottom: 12px; }

/* =====================================================================================================
   Pas de design (UI/UX): tokeni de contrast și focus, mișcare, ținte de atingere, tabele, accesibilitate.
   Păstrează identitatea Linkr: negru + lime (#a1ea48), Plus Jakarta Sans.
   ===================================================================================================== */
:root, body.central {
    --focus: #010204; --warn-fg: #8a5a00; --danger-fg: #b42318; --ok-fg: #2f6b0f;
    --ease: cubic-bezier(.2, .7, .2, 1); --t-fast: 140ms; --t-base: 200ms;
    --shadow-sm: 0 1px 2px rgba(1, 2, 4, .06); --shadow-md: 0 8px 24px rgba(1, 2, 4, .10);
}
html[data-theme="dark"] body.central, html[data-theme="dark"] {
    --focus: #a1ea48; --warn-fg: #f0b45a; --danger-fg: #ff8a80; --ok-fg: #b5ee78;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4); --shadow-md: 0 8px 24px rgba(0, 0, 0, .5);
}
html { color-scheme: light; }
html[data-theme="dark"] { color-scheme: dark; }
body.central { line-height: 1.5; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body.central ::selection { background: var(--lime); color: var(--lime-fg); }
body.central h1, body.central h2 { text-wrap: balance; }
body.central p, body.central .small { text-wrap: pretty; }

/* Focus vizibil pe orice element interactiv (tastatură) */
body.central :focus-visible, body.central-auth :focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 8px; }
body.central-auth :focus-visible { outline-color: #a1ea48; }
body.central .form-control:focus-visible, body.central .form-select:focus-visible { outline: none; }
body.central .c-nav a:focus-visible { outline-offset: -2px; }
body.central .c-tabs a:focus-visible { outline-offset: -3px; border-radius: 10px; }
.c-skip { position: fixed; left: 12px; top: -48px; z-index: 100; background: var(--primary); color: var(--primary-fg) !important; padding: 10px 16px; border-radius: 999px; font-weight: 600; text-decoration: none; transition: top var(--t-fast) var(--ease); }
.c-skip:focus { top: 12px; }
.c-content:focus { outline: none; }

/* Mișcare: scurtă, cu sens; dezactivată pentru cine cere mai puțină mișcare */
body.central .btn, body.central .c-nav a, body.central .c-iconbtn, body.central .c-tabs a, body.central .form-control, body.central .form-select, body.central .c-card, body.central .c-panel, body.central .c-module, body.central .c-plan-body, body.central .table td {
    transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), filter var(--t-fast) var(--ease);
}
body.central .btn:active:not(:disabled) { transform: scale(.98); }
body.central .btn:disabled, body.central .btn.disabled { opacity: .5; cursor: not-allowed; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Contrast: badge-uri și stări (text mai închis pe fundal deschis) */
body.central .badge.bg-warning { color: var(--warn-fg) !important; }
body.central .badge.bg-danger, body.central .badge-suspended { color: var(--danger-fg) !important; }
body.central .text-danger { color: var(--danger-fg) !important; }
body.central .text-warning { color: var(--warn-fg) !important; }
body.central .text-success { color: var(--ok-fg) !important; }
body.central .alert-danger { color: var(--danger-fg); }
.c-stat .value.bad { color: var(--danger-fg); }
body.central .btn-outline-danger { color: var(--danger-fg); border-color: color-mix(in srgb, var(--danger) 55%, transparent); }
body.central .btn-outline-danger:hover { color: #fff; }

/* Tipografie: minim 12px, cifre aliniate */
.c-user small, body.central .small, body.central small { font-size: max(12px, .86em); }
body.central .table th { font-size: 12px; }
.c-stat .value, .c-kv dd, .c-list strong, body.central .table td.text-end, .c-price, body.central .badge { font-variant-numeric: tabular-nums; }
.c-page-head h1 { font-size: 24px; line-height: 1.25; }
.c-page-head > div > .small { margin-top: 2px; }

/* Ținte de atingere */
.c-iconbtn { width: 32px; height: 32px; }
.c-nav a { min-height: 40px; }
body.central .form-check-input { width: 1.1em; height: 1.1em; cursor: pointer; }
@media (pointer: coarse) {
    .c-iconbtn { width: 40px; height: 40px; }
    .c-nav a { min-height: 44px; }
    body.central .btn, body.central .btn-sm, body.central .form-control, body.central .form-select, body.central .form-control-sm, body.central .form-select-sm { min-height: 44px; }
    .c-panel .btn-sm, .c-panel .form-select-sm, .c-panel .form-control-sm { height: 44px; }
    .c-tabs a { padding: 13px 16px; }
    body.central .form-check-input { width: 1.35em; height: 1.35em; }
}

/* Tabele: rânduri cu hover, antet lipit, celule care nu se suprapun */
body.central .c-table-rows tbody tr:hover td { background: color-mix(in srgb, var(--muted) 70%, transparent); }
body.central .table-responsive { overflow-x: auto; }
body.central .table td, body.central .table th { vertical-align: middle; }
body.central .table td { overflow-wrap: break-word; }
body.central .c-table-rows td .text-nowrap, body.central .c-table-rows td.text-nowrap { white-space: nowrap; }
body.central .table td:first-child > .small, body.central .table td:first-child > .text-muted { max-width: 38rem; }
body.central .table thead th { position: sticky; top: 0; z-index: 1; background: var(--card); }

/* Detalii restrânse și alerte */
.c-details { color: var(--muted-fg); font-size: 13px; }
.c-details summary { cursor: pointer; width: fit-content; border-radius: 8px; padding: 2px 0; }
body.central .alert-dismissible .btn-close { padding: 1rem; }
html[data-theme="dark"] body.central .alert .btn-close { filter: invert(1) grayscale(1) brightness(1.6); }

/* Carduri și stări goale */
.c-card, .c-panel { box-shadow: var(--shadow-sm); }
.c-stats { grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); }
.c-stat .value { font-size: clamp(22px, 2.2vw, 28px); }
.c-empty { padding: 36px 0; }

/* Meniu pe mobil: fundal care închide, defilare blocată */
.c-scrim { display: none; }
@media (max-width: 900px) {
    body.nav-open { overflow: hidden; }
    body.nav-open .c-scrim { display: block; position: fixed; inset: 0; z-index: 20; background: rgba(1, 2, 4, .5); }
    .c-sidebar { box-shadow: var(--shadow-md); }
    .c-top { padding: 0 12px; }
    .c-page-head { align-items: flex-start; }
    .c-tabs { margin-inline: -16px; padding-inline: 16px; }
}

/* Butoane în curs de trimitere */
.btn.is-busy { position: relative; pointer-events: none; opacity: .75; }
.btn.is-busy::after { content: ''; display: inline-block; width: .9em; height: .9em; margin-left: .55em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: c-spin .7s linear infinite; vertical-align: -.1em; }
@keyframes c-spin { to { transform: rotate(360deg); } }

/* Dashboard: cinci indicatori pe un rând, valorile nu se rup pe două linii */
@media (min-width: 1200px) { .c-stats { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.c-stat .value { white-space: nowrap; font-size: clamp(20px, 1.9vw, 26px); }
.c-stat .c-chip { width: 30px; height: 30px; border-radius: 9px; flex: none; }
.c-stat .c-chip svg { width: 16px; height: 16px; }
.c-stat .cap, .c-stat .label { overflow-wrap: anywhere; }
.c-no-transition *, .c-no-transition *::before, .c-no-transition *::after { transition: none !important; }
/* Telefon: indicatorii pe două coloane (nu o coloană lungă) */
@media (max-width: 520px) {
    .c-kpis, .c-stats { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px; }
    .c-kpis .c-card, .c-stats .c-card { padding: 14px; min-height: 0; }
    .c-stat .c-chip { display: none; }
    .c-stat .value { font-size: 22px; }
}

/* Comutatorul de temă: mic și discret (segment compact), nu o piesă dominantă în bara de sus */
.c-top { height: 52px; }
.c-iconbtn svg { width: 16px; height: 16px; }
.c-theme { gap: 1px; padding: 2px; background: var(--muted); border: 1px solid var(--border); }
.c-theme .c-iconbtn { width: 26px; height: 26px; }
.c-theme .c-iconbtn svg { width: 14px; height: 14px; }
.c-theme .c-iconbtn.on { background: var(--card); color: var(--fg); box-shadow: var(--shadow-sm); }
html[data-theme="dark"] .c-theme .c-iconbtn.on { background: var(--lime); color: var(--lime-fg); box-shadow: none; }
@media (pointer: coarse) { .c-theme .c-iconbtn { width: 34px; height: 34px; } .c-top { height: 56px; } }

/* Indicator numeric în meniu (erori deschise, tichete noi) */
.c-count { margin-left: auto; min-width: 20px; padding: 1px 7px; border-radius: 999px; background: var(--danger); color: #fff; font-size: 11.5px; font-weight: 700; line-height: 18px; text-align: center; font-variant-numeric: tabular-nums; }
.c-nav a.active .c-count { background: var(--lime); color: var(--lime-fg); }

/* Filtre, stivă de erori, text pentru dezvoltator */
.c-filters { display: grid; gap: 12px; grid-template-columns: minmax(180px, 2fr) minmax(160px, 1fr) minmax(160px, 1fr) auto; align-items: end; margin-bottom: 16px; }
.c-filters .form-control, .c-filters .form-select { height: 38px; }
.c-filters-go .btn { height: 38px; }
@media (max-width: 760px) { .c-filters { grid-template-columns: 1fr 1fr; } .c-filters > :first-child { grid-column: 1 / -1; } }
.c-clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.c-trace { list-style: none; margin: 0; padding: 0; counter-reset: f; font-size: 12.5px; }
.c-trace li { display: flex; flex-direction: column; gap: 1px; padding: 7px 0 7px 34px; border-bottom: 1px solid var(--border); position: relative; counter-increment: f; overflow-wrap: anywhere; }
.c-trace li::before { content: counter(f); position: absolute; left: 0; top: 7px; width: 24px; text-align: right; color: var(--muted-fg); font-variant-numeric: tabular-nums; }
.c-trace li:last-child { border-bottom: 0; }
.c-trace-vendor li { opacity: .7; }
.c-trace code { background: transparent; padding: 0; }
.c-report { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; line-height: 1.5; }

/* Tichete: filtre pe 5 coloane, conversație */
.c-filters-5 { grid-template-columns: minmax(180px, 2fr) repeat(4, minmax(130px, 1fr)) auto; }
@media (max-width: 1100px) { .c-filters-5 { grid-template-columns: 1fr 1fr 1fr; } .c-filters-5 > :first-child { grid-column: 1 / -1; } }
@media (max-width: 760px) { .c-filters-5 { grid-template-columns: 1fr 1fr; } }
.c-thread { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.c-msg { border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; background: var(--card); }
.c-msg-admin { border-left: 4px solid var(--lime); }
.c-msg-system { background: var(--muted); }
.c-msg.is-internal { background: color-mix(in srgb, var(--warn) 12%, var(--card)); border-style: dashed; }
.c-msg-h { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.c-msg-b { white-space: pre-wrap; overflow-wrap: anywhere; }

/* Pagina de plan: bară de acțiuni lipită jos, module pe două coloane */
.c-actionbar { position: sticky; bottom: 0; z-index: 4; display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; padding: 12px 0; background: linear-gradient(to top, var(--bg) 70%, transparent); }
.c-plan-modules { grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); }

/* Confirmare (în loc de confirm() din browser) */
body.central .btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
body.central .btn-danger:hover { filter: brightness(1.08); background: var(--danger); border-color: var(--danger); color: #fff; }
#c-confirm-text { white-space: pre-line; overflow-wrap: anywhere; }
.c-filters-3 { grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) auto; max-width: 720px; }
