/* ================================
   Apple-style Dashboard UI (LIGHT)
   ================================ */

:root{
  color-scheme: light;

  /* Paleta */
  --bg: #f6f8fb;
  --text: #0b0c0f;
  --muted: #5f6b7a;

  --accent: #0a74ff;
  --accent-2: #6b8cff;

  --success: #12b76a;
  --danger: #ef4444;

  --card: #ffffff;
  --card-strong: #f7f9ff;
  --card-border: #e6edf6;

  --hairline: #e6edf6;
  --hairline-soft: #edf2f8;

  --radius-2xl: 22px;
  --radius-xl: 18px;
  --radius-lg: 14px;
  --radius-md: 12px;

  --shadow-1: 0 10px 30px rgba(16,24,40,.08);
  --shadow-2: 0 16px 50px rgba(16,24,40,.12);
}

html, body{
  min-height:100%;
  background:
    radial-gradient(1200px 700px at 20% -10%, rgba(10,116,255,.10), transparent 60%),
    radial-gradient(900px 560px at 85% -5%, rgba(107,140,255,.10), transparent 60%),
    radial-gradient(1400px 800px at 50% 120%, rgba(10,116,255,.08), transparent 65%),
    linear-gradient(180deg, #f8fafc 0%, #f6f8fb 100%);
  background-repeat: no-repeat;
  background-attachment: fixed, fixed, fixed, scroll;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font:14px/1.5 Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.container{ padding: 32px 14px; }

/* Card generic (wrapper) */
.card{
  width:100%;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  border:1px solid var(--card-border);
  border-radius: var(--radius-2xl);
  backdrop-filter: saturate(1.02);
  box-shadow: var(--shadow-1);
  overflow:hidden;
}
.card-header{
  display:flex; align-items:center; gap:12px;
  padding:16px 18px;
  border-bottom:1px solid var(--hairline-soft);
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}
.card-body{ padding:18px; }
.brand{ font-weight:800; letter-spacing:.2px; }

h1.title{ font-size:22px; margin:0 0 8px; letter-spacing:.1px; }
.subtitle{ margin:0 0 16px; color:var(--muted); font-size:14px; }
.hr{ height:1px; background:var(--hairline-soft); margin:16px 0; }

/* Inputs / Buttons */
.input{
  width:100%; padding:14px; border-radius:12px;
  background:#fff; color:var(--text);
  border:1px solid var(--card-border);
  transition: border .2s, box-shadow .2s, background .2s;
}
.input:focus{
  border-color: #bcd1ff;
  box-shadow: 0 0 0 6px rgba(10,116,255,.12);
  outline: none;
}

.btn{
  width:100%; border:0; border-radius:12px; padding:12px 16px;
  font-weight:700; color:#fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  cursor:pointer; transition: transform .06s ease, filter .2s, box-shadow .2s;
  box-shadow: 0 10px 24px rgba(10,116,255,.20);
}
.btn:hover{ filter: brightness(1.03); box-shadow: 0 12px 28px rgba(10,116,255,.24); }
.btn:active{ transform: translateY(1px); }

.btn-ghost{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  height:36px; padding:0 12px; border-radius:12px;
  font-weight:700; text-decoration:none; color:var(--text);
  border:1px solid var(--card-border);
  background: linear-gradient(180deg, #ffffff, #f7faff);
  transition: all .2s ease; box-shadow: 0 4px 10px rgba(16,24,40,.06);
}
.btn-ghost:hover{
  transform: translateY(-1px);
  border-color: #cfe0ff;
  background: linear-gradient(180deg, #f9fbff, #eef4ff);
}

/* Links */
.link{ color:var(--accent); font-weight:600; text-decoration:none; }
.link:hover{ text-decoration:underline; }

/* Toasts */
.toast-wrap{ position: fixed; top:18px; right:18px; display:flex; flex-direction:column; gap:10px; z-index: 99999999 !important; }
.toast{
  background: #fff; border:1px solid var(--card-border);
  color:var(--text); padding:12px 14px; border-radius:12px; box-shadow: var(--shadow-1);
}
.toast.success{ border-color: rgba(18,183,106,.45); }
.toast.error{ border-color: rgba(239,68,68,.45); }

/* ======================
   Websites Grid & Cards
   ====================== */

.grid-sites{
  display:grid; gap:18px; margin-top:10px;
  grid-template-columns: 1fr;
}
@media (min-width: 900px){ .grid-sites{ grid-template-columns: 1fr 1fr; } }
@media (min-width: 1400px){ .grid-sites{ grid-template-columns: 1fr 1fr 1fr; } }

.site-card{
  border:1px solid var(--hairline);
  border-radius: var(--radius-2xl);
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  box-shadow: var(--shadow-1);
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.site-card:hover{
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
  border-color: #cfe0ff;
}

/* Preview 16:9 */
.site-preview{
  position:relative; width:100%; aspect-ratio:16/9;
  overflow:hidden; background:#f1f4fa;
}
.site-preview img{
  position:absolute; inset:0; width:100%; height:100%;
  object-fit:cover; transform: translateZ(0);
  -webkit-user-drag:none; user-select:none;
}
.site-overlay{
  position:absolute; inset:0; pointer-events:none;
  background:
    linear-gradient(180deg, rgba(255,255,255,0) 55%, rgba(255,255,255,.70) 100%),
    linear-gradient(90deg, rgba(255,255,255,.35), rgba(255,255,255,0));
}

/* Badges pe preview */
.site-badge{
  position:absolute; top:10px; right:10px;
  display:inline-flex; align-items:center; gap:8px;
  padding:7px 10px; border-radius:999px;
  font-size:12px; font-weight:800;
  border:1px solid #dfe7fb;
  background: rgba(255,255,255,.85);
  color: #0b0c0f;
  box-shadow: 0 6px 18px rgba(16,24,40,.10), inset 0 1px 0 rgba(255,255,255,.6);
  backdrop-filter: blur(8px) saturate(1.05);
}
.site-badge--ok{ color: #05603a; border-color: rgba(18,183,106,.35); background: rgba(18,183,106,.12); }
.site-badge--warn{ color: #7a1212; border-color: rgba(239,68,68,.35); background: rgba(239,68,68,.12); }
.site-badge--off{ color: var(--muted); background: rgba(255,255,255,.9); border-color: #e6edf6; }
.site-badge--kpi{ left:10px; right:auto; color:#073a7a; background: rgba(10,116,255,.12); border-color: #cfe0ff; }

/* Meta row */
.site-meta{
  display:flex; align-items:center; gap:12px;
  padding:12px 12px;
  border-top:1px solid var(--hairline-soft);
  background: linear-gradient(180deg, #ffffff, #f7faff);
}
.site-ico{
  width:32px; height:32px; border-radius:8px; flex:0 0 auto;
  background:#fff; border:1px solid #e9eef6;
}
.site-texts{ min-width:0; flex:1; }
.site-title{
  font-weight:800; font-size:14px; line-height:1.2; margin-bottom:2px;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.site-url{
  display:block; color:var(--muted); font-size:12px; text-decoration:none;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.site-url:hover{ text-decoration: underline; }

/* KPIs row -> card chips */
.site-kpis{
  display:grid; gap:12px; padding:12px;
  grid-template-columns: repeat(4, minmax(0,1fr));
  border-top:1px solid var(--hairline-soft);
  background: #fbfdff;
}
@media (max-width: 980px){
  .site-kpis{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 520px){
  .site-kpis{ grid-template-columns: 1fr; }
}
.kpi{
  padding:12px; border-radius: var(--radius-lg);
  border:1px solid var(--hairline);
  background: linear-gradient(180deg, #ffffff, #f6f9ff);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}
.kpi-label{
  font-size:11px; color:var(--muted); margin-bottom:6px;
  text-transform:uppercase; letter-spacing:.04em;
  display:flex; align-items:center; gap:6px;
}
.kpi-value{ font-weight:900; font-size:18px; line-height:1.1; }
.kpi-sub{ font-size:12px; color:var(--muted); margin-top:2px; }

/* Empty state */
.empty-card{
  border:1px dashed var(--card-border);
  border-radius:16px; padding:22px; text-align:center;
  background: #fff;
  box-shadow: 0 8px 22px rgba(16,24,40,.06);
}
.empty-illustration{
  width:68px; height:68px; margin:0 auto 10px; border-radius:16px;
  background:
    radial-gradient(28px 28px at 30% 30%, rgba(10,116,255,.15), transparent 60%),
    radial-gradient(28px 28px at 70% 70%, rgba(107,140,255,.15), transparent 60%),
    #f7faff;
  border:1px solid var(--card-border);
  box-shadow: inset 0 0 0 1px #fff;
}
.empty-title{ font-weight:800; margin-bottom:4px; color:var(--text); }
.empty-sub{ color:var(--muted); font-size:13px; }

/* Utilities */
.muted{ color:var(--muted); font-size:13px; }
.footer-note{ text-align:center; color:var(--muted); font-size:12px; padding-top:10px; }
.noindex{ display:none !important; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .site-card, .btn-ghost, .btn { transition: none !important; }
  .site-card:hover{ transform: none !important; }
}

/* ===== Always-readable badges on light ===== */
.site-preview{ position:relative; }
.site-preview::before{
  content:"";
  position:absolute; inset:0;
  background:
    radial-gradient(240px 100px at 12% 10%, rgba(255,255,255,.75), transparent 60%),
    radial-gradient(240px 100px at 88% 10%, rgba(255,255,255,.75), transparent 60%);
  pointer-events:none;
  z-index: 1;
}
.site-overlay{ z-index: 1; }
.site-badge{ z-index: 2; }

/* --- FIX: butonul "Deschide" sÄƒ nu iasÄƒ din chenar --- */
.site-meta{
  display: grid;
  grid-template-columns: auto 1fr auto; /* ico | titlu+url | buton */
  align-items: center;
  gap: 12px;
  padding: 12px 12px !important;
  border-top: 1px solid var(--hairline-soft);
  background: linear-gradient(180deg, #ffffff, #f7faff);
}
.site-texts{ min-width: 0; }
.site-actions{ display:flex; align-items:center; justify-content:flex-end; }
.site-actions .btn-ghost{
  white-space: nowrap;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 560px){
  .site-meta{ grid-template-columns: 1fr; row-gap: 10px; }
  .site-actions{ justify-content: flex-start; }
}

/* ===== Container centrat ===== */
.container{ padding: 32px 16px 80px; }
.container > .card{ max-width: 1240px; margin: 0 auto; }

/* ===== DOAR douÄƒ carduri pe rÃ¢nd (override opÈ›ional) ===== */
.grid-sites{ gap:18px; grid-template-columns: 1fr; }
@media (min-width: 900px){
  .grid-sites{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (min-width: 1400px){
  .grid-sites{ grid-template-columns: repeat(2, minmax(0,1fr)); } /* forÈ›at 2 */
}

/* ============================
   ADMIN PANEL â€“ layout & UI
   ============================ */

.admin .container{ padding:32px 16px 80px; }
.admin .card{ max-width:1240px; margin:0 auto; }

.admin .admin-top,
.admin .card-header{
  display:flex; align-items:center; gap:12px;
  padding:14px 16px;
  border-bottom:1px solid var(--hairline-soft);
  background: linear-gradient(180deg, #ffffff, #f7fbff);
}
.admin .admin-nav{ display:flex; gap:8px; flex-wrap:wrap; margin-left:auto; }
.admin .admin-nav .btn-ghost{ height:36px; padding:0 12px; }

.admin h1.title{ margin:0 0 8px; }
.admin h2.title{ font-size:16px; margin:14px 0 8px; }
.admin .subtitle{ margin:0 0 10px; }
.admin .hr{ height:1px; background:var(--hairline-soft); margin:16px 0; }

/* KPI grid */
.admin .kpi-grid{
  display:grid; gap:12px; margin-top:12px;
  grid-template-columns: repeat(3, minmax(0,1fr));
}
@media (max-width: 900px){ .admin .kpi-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px){ .admin .kpi-grid{ grid-template-columns: 1fr; } }

.admin .kpi-card{
  padding:14px; border:1px solid var(--hairline); border-radius:14px;
  background: linear-gradient(180deg, #ffffff, #f6f9ff);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}
.admin .kpi-card .kpi-label{
  font-size:11px; color:var(--muted); text-transform:uppercase; letter-spacing:.04em; margin-bottom:6px;
}
.admin .kpi-card .big{ font-weight:900; font-size:22px; line-height:1.1; }
.admin .kpi-card .kpi-sub{ font-size:12px; color:var(--muted); margin-top:2px; }

/* douÄƒ coloane (leads + sites) */
.admin .two-cols{
  display:grid; gap:16px; margin-top:12px;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 1100px){ .admin .two-cols{ grid-template-columns: 1fr; } }

/* tabel-like list */
.admin .table{ width:100%; display:grid; gap:10px; }
.admin .tr{
  display:grid; grid-template-columns: 1fr auto; gap:10px;
  padding:10px; border:1px solid var(--hairline); border-radius:12px;
  background: linear-gradient(180deg, #ffffff, #f6f9ff);
  box-shadow: 0 4px 10px rgba(16,24,40,.05);
}
.admin .muted{ color:var(--muted); }

/* ROW standard */
.admin .row{
  display:grid; gap:10px;
  padding:10px; border:1px solid var(--hairline); border-radius:12px;
  background: linear-gradient(180deg, #ffffff, #f6f9ff);
  box-shadow: 0 4px 10px rgba(16,24,40,.05);
}
/* layout implicit */
.admin .row{ grid-template-columns: 1fr auto auto; }
@media (max-width: 760px){ .admin .row{ grid-template-columns: 1fr; } }

/* formulare 3â€“4 coloane */
.admin .row.is-form-2{ grid-template-columns: 1fr auto; }
.admin .row.is-form-3{ grid-template-columns: 1fr 1fr auto; }
.admin .row.is-form-4{ grid-template-columns: 1fr 1fr 1fr auto; }
@media (max-width: 900px){
  .admin .row.is-form-3, .admin .row.is-form-4{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px){
  .admin .row.is-form-2,
  .admin .row.is-form-3,
  .admin .row.is-form-4{ grid-template-columns: 1fr; }
  .admin .row .btn-ghost,
  .admin .row .btn{ justify-self:start; max-width:100%; }
}

/* inputs/selects */
.admin .input{ height:42px; padding:10px 12px; }
.admin select.input{
  appearance:none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 16px) calc(1em + 2px), calc(100% - 12px) calc(1em + 2px);
  background-size: 4px 4px, 4px 4px;
  background-repeat: no-repeat;
  padding-right:28px;
}

/* acÈ›iuni compacte */
.admin .btn-ghost{ height:36px; }
.admin .btn-ghost--danger{ border-color: rgba(239,68,68,.35); color: var(--danger); }
.admin .btn-ghost--success{ border-color: rgba(18,183,106,.35); color: var(--success); }

/* pills / badges */
.admin .pill{
  display:inline-flex; align-items:center; gap:8px;
  padding:6px 10px; border:1px solid var(--hairline); border-radius:999px;
  background: linear-gradient(180deg, #ffffff, #f6f9ff);
  font-weight:800; font-size:12px;
}
.admin .pill--ok{ color:var(--success); border-color: rgba(18,183,106,.35); background: rgba(18,183,106,.10); }
.admin .pill--warn{ color:var(--danger); border-color: rgba(239,68,68,.35); background: rgba(239,68,68,.10); }
.admin .pill--muted{ color:var(--muted); }

/* copy + mini */
.admin .copy{
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 12px; border:1px solid var(--hairline); border-radius:12px;
  background: linear-gradient(180deg, #ffffff, #f6f9ff);
  font-weight:700; cursor:pointer;
}
.admin .mini{ font-size:12px; color:var(--muted); }

/* link wrap */
.admin a{ word-break: break-word; }

/* prevenim overflow pe butoane */
.admin .row .btn-ghost{ white-space:nowrap; max-width: 180px; overflow:hidden; text-overflow:ellipsis; }

/* === ADMIN forms: responsiveness === */
.admin .row{ align-items:center; gap:12px !important; }
.admin .row > *{ min-width:0; }

.admin .row.is-form-4{ grid-template-columns: minmax(0,1fr) minmax(0,1fr) minmax(0,1fr) auto; }
.admin .row.is-form-3{ grid-template-columns: minmax(0,1fr) minmax(0,1fr) auto; }
.admin .row.is-form-2{ grid-template-columns: minmax(0,1fr) auto; }

@media (max-width:1100px){
  .admin .row.is-form-4{ grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
}
@media (max-width:560px){
  .admin .row.is-form-4,
  .admin .row.is-form-3,
  .admin .row.is-form-2{ grid-template-columns: 1fr; }
  .admin .row .btn-ghost,
  .admin .row .btn{
    justify-self:start; max-width:100%;
  }
}

.admin .row .input,
.admin .row select.input{
  height:44px; padding:10px 12px; width:100%; display:block;
}
.admin .row .btn-ghost,
.admin .row .btn{
  height:44px; white-space:nowrap; justify-self:end;
  max-width:180px; overflow:hidden; text-overflow:ellipsis;
}

.admin select.input{
  padding-right:32px;
  background-position: calc(100% - 16px) 50%, calc(100% - 12px) 50%;
}
.admin .row input::placeholder{ opacity:.65; }
    :root{
      --ink:#0b0c0f; --muted:#5f6b7a; --b:#e6edf6; --accent:#0a74ff;
      --good:#12b76a; --med:#f59e0b; --bad:#ef4444;
      --paper:#fff; --shadow:0 10px 26px rgba(16,24,40,.08);
      --radius:12px;
    }
    body{margin:0;background:#f6f8fb;color:var(--ink);font:14px/1.5 system-ui, -apple-system, Segoe UI, Roboto, Arial}
    .container{max-width:1200px;margin:0 auto;padding:22px 18px}
    h1{margin:4px 0 14px}
    .card{background:var(--paper);border:1px solid var(--b);border-radius:16px;box-shadow:var(--shadow);padding:16px}
    .toolbar{display:grid;grid-template-columns:1fr auto auto;gap:10px;align-items:center}
    .filters{display:flex;gap:8px;flex-wrap:wrap}
    .filters input,.filters select{
      padding:10px 12px;border:1px solid #d8e0ec;border-radius:10px;background:#fff;min-width:160px
    }
    .filters .short{min-width:110px}
    .btn{
      display:inline-flex;align-items:center;gap:8px;
      padding:10px 12px;border-radius:10px;border:1px solid #cfe0ff;
      background:#fff;color:#0a3a82;text-decoration:none;font-weight:800;cursor:pointer
    }
    .btn.primary{background:linear-gradient(135deg,#0a74ff,#6b8cff);border:0;color:#fff}
    .btn:hover{background:#f3f7ff}
    .btn.primary:hover{filter:brightness(1.02)}
    .table{width:100%;border-collapse:separate;border-spacing:0;margin-top:10px}
    .table th,.table td{padding:10px 12px;border-bottom:1px solid #eef2f7;text-align:left;vertical-align:middle}
    .table th{font-size:12px;color:#334155;text-transform:uppercase;letter-spacing:.5px}
    .table tr:hover td{background:#fafcff}
    .host{display:flex;align-items:center;gap:10px;min-width:0}
    .host img{width:18px;height:18px;border-radius:4px}
    .host .url{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:260px}
    .pill{display:inline-flex;align-items:center;justify-content:center;height:26px;padding:0 8px;border-radius:999px;border:1px solid #e5ecf5;background:#f7f9ff;font-weight:800;font-size:12px;min-width:36px}
    .grade.bad{background:#ffe9e9;border-color:#ffc9c9;color:#7a1212}
    .grade.med{background:#fff5e2;border-color:#ffe1a6;color:#8a5200}
    .grade.good{background:#e9f8f1;border-color:#c9eddc;color:#05603a}
    .score{font-weight:900}
    .actions{display:flex;gap:8px}
    .muted{color:var(--muted);font-size:12px}
    .pager{display:flex;gap:8px;align-items:center;justify-content:flex-end;margin-top:12px}
    .pager .num{padding:8px 10px;border:1px solid #e5ecf5;border-radius:8px;background:#fff;text-decoration:none;color:#0b0c0f}
    .pager .cur{background:#eef4ff;border-color:#cfe0ff;font-weight:800}
    @media (max-width:900px){
      .toolbar{grid-template-columns:1fr;gap:12px}
      .host .url{max-width:180px}
      .filters input,.filters select{min-width:120px}
    }

    /* ===== Admin header: title la stÃ¢nga, nav la dreapta ===== */
.admin-top{
  display:flex; align-items:center; gap:12px;
  padding:16px 18px;
  border-bottom:1px solid var(--hairline-soft);
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  margin-bottom: 25px;
}
.admin-top .title{ margin:0; font-size:18px; font-weight:800; letter-spacing:.2px; }
.admin-top .admin-nav{ margin-left:auto; display:flex; gap:8px; flex-wrap:wrap; }
.admin-top .admin-nav .btn-ghost{
  height:36px; padding:0 12px; border-radius:14px;
  box-shadow: 0 4px 10px rgba(16,24,40,.06);
}
.admin-top .admin-nav .btn-ghost.is-active{
  border-color:#cfe0ff;
  background: linear-gradient(180deg,#f9fbff,#eef4ff);
}

/* ===== Toolbar sticky + spaÈ›iere rafinatÄƒ ===== */
.toolbar.is-sticky{
  position: sticky; top: 12px; z-index: 8;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(1.05) blur(6px);
  border: 1px solid var(--hairline);
  border-left: 0; border-right:0; /* aratÄƒ ca o bandÄƒ Ã®n card */
  padding: 12px 16px;
}
.toolbar.is-sticky .filters input,
.toolbar.is-sticky .filters select{
  height:40px; border-radius:12px;
}
.toolbar.is-sticky .btn{ height:40px; border-radius:12px; }

/* ===== Butoane principale: look mai â€žpremiumâ€ ===== */
.btn{
  border-radius:12px;
  transition: transform .06s ease, filter .2s, box-shadow .2s;
  box-shadow: 0 10px 24px rgba(10,116,255,.18);
}
.btn.primary:hover{ filter:brightness(1.03); box-shadow: 0 12px 28px rgba(10,116,255,.22); }
.btn:active{ transform: translateY(1px); }

/* ===== Tabel: rÃ¢nduri mai aerisite + coloanÄƒ acÈ›iuni aliniatÄƒ ===== */
.table th, .table td{ padding:12px 14px; }
.table td:last-child{ text-align:right; }
.table tr:hover td{ background: #fafcff; }

/* ===== Host: favicon un pic mai lizibil, URL mai elastic ===== */
.host img{ width:20px; height:20px; }
.host .url{ max-width: 280px; font-weight: 700; }
@media (max-width:1200px){ .host .url{ max-width: 320px; } }
@media (max-width:900px){ .host .url{ max-width: 200px; } }

/* ===== Badge-uri/pill: micro-optimizÄƒri ===== */
.pill{ height:26px; padding:0 10px; border-radius:999px; font-weight:800; }
.pill.score{
  min-width:38px; font-variant-numeric: tabular-nums;
  background: #f0f5ff; border-color:#dfe7fb;
}

/* ===== Pager: mai â€žtapticâ€ ===== */
.pager .num{
  transition: transform .06s ease, background .2s;
}
.pager .num:hover{ background:#f3f7ff; transform: translateY(-1px); }
.pager .cur{
  background: linear-gradient(180deg,#eef4ff,#e6efff);
  border-color:#cfe0ff; font-weight:800;
}

/* ===== Mic layout fix: buton â€žVezi raportâ€ sÄƒ nu iasÄƒ pe mobil ===== */
@media (max-width:560px){
  .table td:last-child .btn{ width:100%; justify-content:center; }
}


.card{ background:var(--paper); border:1px solid var(--hairline); border-radius:18px; box-shadow:0 16px 40px rgba(16,24,40,.06); overflow:hidden; }
.brand{ font-weight:900; letter-spacing:.2px }
.admin-nav{ display:flex; gap:8px; flex-wrap:wrap }

.container{ max-width:1200px; margin:0 auto; padding:28px 16px 80px }

/* Header area */
.hdr{ display:flex; align-items:flex-end; justify-content:space-between; gap:18px; margin-bottom: 25px;}
.chip-row{ display:flex; flex-wrap:wrap; gap:8px; align-items:center }
.chip{
  --br: 999px;
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 12px; border-radius:var(--br);
  text-decoration:none; font-weight:800;
  color:#0a3a82;
  background: linear-gradient(180deg,#ffffff,#f7faff);
  border:1px solid var(--card-border);
  box-shadow: 0 6px 18px rgba(16,24,40,.06), inset 0 1px 0 rgba(255,255,255,.7);
  transition: transform .06s ease, box-shadow .2s, border-color .2s, background .2s;
}
.chip:hover{
  transform: translateY(-1px);
  border-color:#cfe0ff;
  background: linear-gradient(180deg,#f9fbff,#eef4ff);
}
.chip.on{
  color:#073a7a;
  border-color:#cfe0ff;
  background: linear-gradient(180deg,#eef4ff,#e6efff);
  box-shadow: 0 8px 22px rgba(10,116,255,.10), inset 0 1px 0 rgba(255,255,255,.8);
}

.chip-count{
  display:inline-flex; align-items:center; justify-content:center;
  min-width:22px; height:22px; padding:0 6px;
  border-radius:999px;
  font-size:12px; font-variant-numeric: tabular-nums;
  color:#073a7a;
  background:#eaf1ff; border:1px solid #dfe7fb;
}
.chip.ghost{ background:#fff; border-color:#e5ecf5 }
.chip b{ font-weight:900 }
.chip-row .sep{ width:1px; height:18px; background:#e5ecf5; margin:0 3px }

/* Filter bar */
.filter-bar{ align-items:center; gap:12px !important; border:1px solid var(--hairline); border-radius:14px; background:linear-gradient(180deg,#fff,#f6f9ff); padding:10px }
.filter-bar .actions{ display:flex; gap:8px; align-items:center }
.input{
  width:100%; padding:12px 14px; border-radius:12px; background:#fff; color:#0b0c0f; border:1px solid #d8e0ec;
  transition:border .2s, box-shadow .2s;
}
.input:focus{ border-color:#bcd1ff; box-shadow:0 0 0 6px rgba(10,116,255,.12); outline:none }

/* Card mesaj */
.msg{ display:grid; grid-template-columns: minmax(0,1fr) 280px; gap:16px; padding:16px; border:1px solid var(--hairline); background:#fff; border-radius:16px; box-shadow:0 8px 26px rgba(16,24,40,.06) }
.msg + .msg{ margin-top:10px }
.msg-left{ min-width:0 }
.msg-head{ display:flex; flex-wrap:wrap; align-items:center; gap:10px }
.msg-title{ font-weight:900; letter-spacing:.1px }
.msg a.link{ color:#0a74ff; font-weight:800; text-decoration:none }
.msg a.link:hover{ text-decoration:underline }
.nowrap{ white-space:nowrap }
.mini-btn{ height:26px; padding:0 8px; border-radius:8px; border:1px solid #e5ecf5; background:#fff; font-weight:700; cursor:pointer }
.msg-meta{ display:flex; flex-wrap:wrap; gap:12px; margin:6px 0 8px; color:#5f6b7a; font-size:13px }
.msg-body{ margin:10px 0; padding:10px 12px; border:1px solid #e8eef7; background:#fafcff; border-radius:12px; white-space:pre-wrap; overflow-wrap:anywhere }
.note-row{ display:grid; gap:8px }
.msg-note{ display:block; width:100%; min-height:86px; padding:10px 12px; border-radius:12px; border:1px solid #e5ecf5; background:#fff; color:#0b0c0f; resize:vertical }
.note-actions{ display:flex; gap:8px; flex-wrap:wrap }
.ua{ margin-top:6px }

/* Right column actions */
.msg-actions{ display:flex; flex-direction:column; gap:10px; align-items:stretch }
.msg-actions .input{ height:40px }

/* Pills */
.pill{ display:inline-flex; align-items:center; gap:8px; padding:6px 10px; border-radius:999px; border:1px solid #e5ecf5; background:linear-gradient(180deg,#fff,#f5f8ff); font-weight:800; font-size:12px; color:#0b0c0f }
.pill-large{ padding:8px 12px; font-size:12px }
.pill--ok{ color:#05603a; border-color:#c9eddc; background:#e9f8f1 }
.pill--warn{ color:#7a1212; border-color:#ffc9c9; background:#ffe9e9 }
.pill--muted{ color:#5f6b7a }

/* Empty state */
.empty{ border:1px dashed #e5ecf5; border-radius:14px; padding:22px; text-align:center; background:#fff }
.empty-illustration{ width:64px; height:64px; margin:0 auto 8px; border-radius:14px; background: radial-gradient(28px 28px at 30% 30%, rgba(10,116,255,.12), transparent 60%), radial-gradient(28px 28px at 70% 70%, rgba(18,183,106,.12), transparent 60%), #f6f9ff; border:1px solid #e5ecf5 }
.empty-title{ font-weight:900 }
.empty-sub{ color:#5f6b7a }

/* Pagination */
.pagination{ display:flex; gap:6px; flex-wrap:wrap; margin:14px 0 6px }
.pagination a, .pagination .cur{ display:inline-flex; align-items:center; justify-content:center; width:34px; height:34px; border-radius:10px; border:1px solid #e5ecf5; background:#fff; font-weight:800; color:#163056; text-decoration:none }
.pagination a:hover{ border-color:#cfe0ff; box-shadow:0 6px 12px rgba(16,24,40,.06) }
.pagination .cur{ background:linear-gradient(135deg, rgba(10,116,255,.10), rgba(107,140,255,.10)); border-color:#cfe0ff }

/* Toasts */
.toast-wrap{ position: fixed; top:18px; right:18px; display:flex; flex-direction:column; gap:10px; z-index: 9999999; }
.toast{ background:#fff; border:1px solid #e5ecf5; color:#0b0c0f; padding:10px 12px; border-radius:10px; box-shadow:0 10px 24px rgba(16,24,40,.10); font-weight:700 }
.toast.success{ border-color:#c9eddc; }
.toast.error{ border-color:#ffc9c9; }

/* Responsive */
@media (max-width:1100px){
  .hdr{ flex-direction:column; align-items:flex-start }
  .msg{ grid-template-columns:1fr }
  .msg-actions{ flex-direction:row; flex-wrap:wrap }
  .msg-actions .input{ flex:1 1 220px }
}
@media (max-width:560px){
  .chip-row{ gap:6px }
  .filter-bar{ grid-template-columns:1fr !important }
  .filter-bar .actions{ justify-content:flex-start }
  .msg-actions{ flex-direction:column }
}

/* ====== USERS page polish ====== */
.users-toolbar .input-wrap{
  position:relative; display:flex; align-items:center;
}
.users-toolbar .input-wrap .input{ padding-right:42px; }
.users-toolbar .icon-btn{
  position:absolute; right:6px; height:32px; width:32px;
  border:1px solid var(--card-border); border-radius:10px;
  background: linear-gradient(180deg,#ffffff,#f7faff);
  cursor:pointer; line-height:1;
}
/* Mic fix: linkuri lungi mail sÄƒ nu rupÄƒ gridul */

.users-list{ display:flex; flex-direction:column; gap:10px; padding:14px; }
.user-item{
  display:grid; grid-template-columns: 1fr auto auto;
  gap:12px; align-items:center;
  border:1px solid var(--hairline); border-radius:14px;
  background: linear-gradient(180deg,#ffffff,#f6f9ff);
  padding:12px;
  box-shadow: 0 4px 10px rgba(16,24,40,.05);
}
@media (max-width: 900px){
  .user-item{ grid-template-columns: 1fr; align-items: start; }
}

.user-ident{ display:flex; align-items:center; gap:12px; min-width:0; }
.user-avatar{
  width:36px; height:36px; border-radius:10px;
  display:flex; align-items:center; justify-content:center;
  font-weight:900; color:#073a7a;
  background: linear-gradient(180deg,#eef4ff,#e6efff);
  border:1px solid #dfe7fb;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
  flex:0 0 auto;
}
.user-texts{ min-width:0; }
.user-texts .name{ font-weight:800; }
.user-texts .meta{ color:var(--muted); font-size:12px; }

.user-actions, .user-admin{
  display:flex; gap:8px; align-items:center; justify-content:flex-end;
}
.user-actions .input.compact{ height:36px; padding:8px 10px; min-width:150px; }
.user-admin.is-admin .btn-ghost{ border-color: rgba(239,68,68,.35); color: var(--danger); }

.user-item .btn-ghost{
  height:36px; padding:0 12px; border-radius:12px;
  background: linear-gradient(180deg,#ffffff,#f7faff);
  border:1px solid var(--card-border);
  box-shadow: 0 4px 10px rgba(16,24,40,.06);
}

/* hover subtle */
.user-item:hover{ transform: translateY(-1px); transition: transform .14s ease; }

/* sticky toolbar (acelaÈ™i look ca Ã®n rapoarte) */
.toolbar.is-sticky{
  position: sticky; top: 12px; z-index: 8;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(1.05) blur(6px);
  border-top:1px solid var(--hairline); border-bottom:1px solid var(--hairline);
  padding: 12px 16px;
}

/* Status pills reutilizate */
.pill{ display:inline-flex; align-items:center; gap:8px; padding:6px 10px; border:1px solid var(--hairline); border-radius:999px; background:linear-gradient(180deg,#ffffff,#f6f9ff); font-weight:800; font-size:12px; }
.pill--ok{ color:var(--success); border-color: rgba(18,183,106,.35); background: rgba(18,183,106,.10); }



/* Admin header/nav â€“ la fel ca la rapoarte */
.admin-top{
  display:flex; align-items:center; gap:12px;
  padding:16px 18px;
  border-bottom:1px solid var(--hairline-soft);
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}
.admin-top .title{ margin:0; font-size:18px; font-weight:800; letter-spacing:.2px; }
.admin-top .admin-nav{ margin-left:auto; display:flex; gap:8px; flex-wrap:wrap; }
.admin-top .admin-nav .btn-ghost{ height:36px; padding:0 12px; border-radius:14px; box-shadow: 0 4px 10px rgba(16,24,40,.06); }
.admin-top .admin-nav .btn-ghost.is-active{ border-color:#cfe0ff; background: linear-gradient(180deg,#f9fbff,#eef4ff); }


/* ===== Websites: add form (sticky) ===== */
.website-add-form{
  display:grid; gap:12px; align-items:center;
  grid-template-columns: 240px 1fr 1fr 130px; /* user | url | title | btn */
  padding:12px 16px;
}
.website-add-form .input{ height:42px; padding:10px 12px; }
.website-add-form .btn{ height:42px; border-radius:12px; justify-self:end; }
@media (max-width: 900px){
  .website-add-form{ grid-template-columns: 1fr; }
  .website-add-form .btn{ justify-self:start; width:100%; }
}

/* ===== Sites list ===== */
.sites-list{ display:flex; flex-direction:column; gap:10px; }
.site-row{
  display:grid; grid-template-columns: 1fr auto; gap:12px; align-items:center;
  border:1px solid var(--hairline); border-radius:14px;
  background: linear-gradient(180deg,#ffffff,#f6f9ff);
  padding:12px;
  box-shadow: 0 4px 10px rgba(16,24,40,.05);
}
.site-row:hover{ transform: translateY(-1px); transition: transform .14s ease; }

.site-main{ display:flex; align-items:center; gap:12px; min-width:0; }
.site-ico{ width:32px; height:32px; border-radius:8px; flex:0 0 auto; }
.site-texts{ min-width:0; }
.title-line{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.site-title{ font-weight:800; }
.meta{ color:var(--muted); font-size:12px; }
.mono{ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace; }

.site-actions{ display:flex; gap:8px; align-items:center; justify-content:flex-end; }
.site-actions .btn-ghost{ height:36px; padding:0 12px; border-radius:12px;
  background: linear-gradient(180deg,#ffffff,#f7faff); border:1px solid var(--card-border);
  box-shadow: 0 4px 10px rgba(16,24,40,.06);
}
.copy.mini{
  height:36px; padding:0 10px; border-radius:12px;
  border:1px solid var(--hairline); background:linear-gradient(180deg,#ffffff,#f6f9ff);
  font-weight:700; cursor:pointer;
}

@media (max-width: 820px){
  .site-row{ grid-template-columns: 1fr; }
  .site-actions{ justify-content:flex-start; flex-wrap:wrap; }
}

/* Pills reutilizate */
.pill{ display:inline-flex; align-items:center; gap:8px; padding:6px 10px; border:1px solid var(--hairline); border-radius:999px; background:linear-gradient(180deg,#ffffff,#f6f9ff); font-weight:800; font-size:12px; }
.pill--ok{ color: var(--success); border-color: rgba(18,183,106,.35); background: rgba(18,183,106,.10); }
.pill--warn{ color: var(--danger); border-color: rgba(239,68,68,.35); background: rgba(239,68,68,.10); }

/* Admin header/nav (consistenÈ›Äƒ) */
.admin-top{
  display:flex; align-items:center; gap:12px;
  padding:16px 18px; border-bottom:1px solid var(--hairline-soft);
  background: linear-gradient(180deg,#ffffff,#f8fbff);
}
.admin-top .title{ margin:0; font-size:18px; font-weight:800; letter-spacing:.2px; }
.admin-top .admin-nav{ margin-left:auto; display:flex; gap:8px; flex-wrap:wrap; }
.admin-top .admin-nav .btn-ghost{ height:36px; padding:0 12px; border-radius:14px; box-shadow:0 4px 10px rgba(16,24,40,.06); }
.admin-top .admin-nav .btn-ghost.is-active{ border-color:#cfe0ff; background: linear-gradient(180deg,#f9fbff,#eef4ff); }

/* Sticky toolbar look */
.toolbar.is-sticky{
  position: sticky; top: 12px; z-index: 8;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(1.05) blur(6px);
  border-top:1px solid var(--hairline); border-bottom:1px solid var(--hairline);
}


    /* toolbar = formular sticky */
    .invite-toolbar{
      position: sticky; top: 12px; z-index: 8;
      background: rgba(255,255,255,.9);
      backdrop-filter: saturate(1.05) blur(6px);
      border-top:1px solid var(--hairline); border-bottom:1px solid var(--hairline);
      display:grid; gap:12px; grid-template-columns: 1fr 1fr 1fr 130px;
      padding:12px 16px;
    }
    .invite-toolbar .input{ height:42px; padding:10px 12px; }
    .invite-toolbar .btn{ height:42px; border-radius:12px; justify-self:end; }
    @media (max-width:760px){
      .invite-toolbar{ grid-template-columns: 1fr; }
      .invite-toolbar .btn{ justify-self:start; width:100%; }
    }

    /* listÄƒ invitaÈ›ii */
    .invites-list{ display:flex; flex-direction:column; gap:10px; }
    .invite-row{
      display:grid; grid-template-columns: 1fr auto auto; gap:12px; align-items:center;
      border:1px solid var(--hairline); border-radius:14px;
      background: linear-gradient(180deg,#ffffff,#f6f9ff);
      padding:12px; box-shadow: 0 4px 10px rgba(16,24,40,.05);
    }
    .invite-row:hover{ transform: translateY(-1px); transition: transform .14s ease; }
    .invite-left .name{ font-weight:800; }
    .invite-left .meta{ color:var(--muted); font-size:12px; }
    .invite-actions .btn-ghost{ height:36px; padding:0 12px; border-radius:12px;
      background: linear-gradient(180deg,#ffffff,#f7faff); border:1px solid var(--card-border);
      box-shadow: 0 4px 10px rgba(16,24,40,.06);
    }
    @media (max-width:760px){
      .invite-row{ grid-template-columns: 1fr; }
      .invite-actions{ display:flex; gap:8px; flex-wrap:wrap; }
    }

    /* notice + link preview */
    .notice{ background:#fff; border:1px solid var(--hairline); padding:12px; border-radius:12px; }
    .notice.success{ border-color: rgba(18,183,106,.35); }
    .link-preview{
      margin-top:10px; display:flex; gap:12px; align-items:center; justify-content:space-between;
      border:1px solid var(--hairline); border-radius:12px; padding:12px;
      background: linear-gradient(180deg,#ffffff,#f7faff);
    }
    .link-preview .mini{ font-size:12px; color:var(--muted); word-break:break-all; }
    .copy{
      height:36px; padding:0 10px; border-radius:12px; cursor:pointer;
      border:1px solid var(--hairline); background:linear-gradient(180deg,#ffffff,#f6f9ff);
      font-weight:700;
    }

    /* INVITE â€” inputs aliniate perfect cu butonul */
.invite-toolbar{ gap:12px; }

.invite-toolbar .input{
  box-sizing: border-box;          /* <- fixul esenÈ›ial */
  height:44px;
  padding:10px 12px;
  border:1px solid var(--card-border);
  border-radius:14px;
  background:#fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
  outline:none;
}
.invite-toolbar .input:focus{
  border-color:#bcd1ff;
  box-shadow: 0 0 0 6px rgba(10,116,255,.12);
}

/* Buton pe aceeaÈ™i Ã®nÄƒlÈ›ime È™i colÈ›uri */
.invite-toolbar .btn{
  height:44px;
  border-radius:14px;
  justify-self:end;
}

/* (opÈ›ional) global, dacÄƒ vrei peste tot: */
.input{ box-sizing: border-box; }


/* === Admin FAB (float button) === */
.admin-fab {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(10,116,255,.25);
  text-decoration: none;
  z-index: 99;
  transition: transform .15s ease, box-shadow .2s ease;
}
.admin-fab:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 12px 28px rgba(10,116,255,.3);
}

/* ===========================
   AUTH â€” Forgot (fix & polish)
   Se aplicÄƒ DOAR cÃ¢nd existÄƒ #form-forgot Ã®n paginÄƒ
   =========================== */

/* asigurÄƒ centrare pe ecran È™i padding pe lateral */
body.auth{
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
}

/* card compact, perfect centrat, cu shadow curat */
body.auth .auth-card:has(#form-forgot){
  width: min(600px, 96vw);
  grid-template-columns: 1fr;      /* o singurÄƒ coloanÄƒ */
  border-radius: 22px;
  border: 1px solid #e6edf6;
  background: linear-gradient(180deg,#ffffff,#fbfdff);
  box-shadow: 0 18px 42px rgba(16,24,40,.12);
  overflow: hidden;
}

/* head subtile */
body.auth .auth-card:has(#form-forgot) .auth-head{
  padding: 16px 18px;
  border-bottom: 1px solid #edf2f8;
  background: linear-gradient(180deg,#ffffff,#f7faff);
}

/* body spacing */
body.auth .auth-card:has(#form-forgot) .auth-body{
  padding: 22px 20px 24px;
}

/* titluri + subtitlu */
body.auth .auth-card:has(#form-forgot) .auth-title{
  margin: 2px 0 6px;
  font-size: 26px; font-weight: 900; letter-spacing:.2px;
}
body.auth .auth-card:has(#form-forgot) .auth-sub{
  margin: 0 0 14px; color:#5f6b7a;
}

/* cÃ¢mp + buton aliniate milimetric */
body.auth .auth-card:has(#form-forgot) .field{ margin-bottom: 12px; }
body.auth .auth-card:has(#form-forgot) .label{
  display:block; margin:0 0 6px; font-weight:700; font-size:12px; color:#1b2330;
}
body.auth .auth-card:has(#form-forgot) .input{
  box-sizing: border-box;
  width: 100%;
  height: 46px;
  padding: 10px 12px;
  border:1px solid #e6edf6; border-radius:14px;
  background:#fff; color:#0b0c0f;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75);
  transition: border .2s, box-shadow .2s, background .2s;
}
body.auth .auth-card:has(#form-forgot) .input:focus{
  outline:none;
  border-color:#bcd1ff;
  box-shadow: 0 0 0 6px rgba(10,116,255,.12);
}
body.auth .auth-card:has(#form-forgot) .input::placeholder{ color:#6a7688; opacity:.9; }

/* row acÈ›iuni: buton full È™i link sub el pe mobil */
body.auth .auth-card:has(#form-forgot) .row-act{
  display:flex; align-items:center; gap:12px; margin-top:6px;
}
body.auth .auth-card:has(#form-forgot) .btn{
  height:46px; padding:0 16px; border:0; border-radius:14px;
  font-weight:800; color:#fff; cursor:pointer;
  background: linear-gradient(135deg, #0a74ff, #6b8cff);
  box-shadow: 0 14px 28px rgba(10,116,255,.22);
  transition: transform .06s ease, filter .2s, box-shadow .2s;
}
body.auth .auth-card:has(#form-forgot) .btn:hover{ filter:brightness(1.03); box-shadow: 0 16px 32px rgba(10,116,255,.26); }
body.auth .auth-card:has(#form-forgot) .btn:active{ transform: translateY(1px); }
body.auth .auth-card:has(#form-forgot) .btn:disabled{ opacity:.65; box-shadow:none; cursor:not-allowed; }
body.auth .auth-card:has(#form-forgot) .link{ color:#0a74ff; font-weight:700; text-decoration:none; }
body.auth .auth-card:has(#form-forgot) .link:hover{ text-decoration:underline; }

@media (max-width:560px){
  body.auth .auth-card:has(#form-forgot) .row-act{
    flex-direction: column; align-items: stretch;
  }
  body.auth .auth-card:has(#form-forgot) .btn{ width:100%; }
}

/* fine print + toasts consistent */
body.auth .auth-card:has(#form-forgot) .fine{ color:#5f6b7a; font-size:12px; margin-top:16px; }
body.auth .toast{ border:1px solid #e6edf6; box-shadow: 0 14px 28px rgba(16,24,40,.12); }
body.auth .toast.ok{ border-color: rgba(18,183,106,.35); }
body.auth .toast.err{ border-color: rgba(239,68,68,.35); }

/* autofill webkit */
body.auth .auth-card:has(#form-forgot) input:-webkit-autofill{
  -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
  -webkit-text-fill-color:#0b0c0f !important;
  caret-color:#0b0c0f;
}


.acc-top{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap; padding-right: 25px;}
.top-actions .btn{display:inline-flex;align-items:center;gap:8px}
.btn{appearance:none;border:0;border-radius:12px;padding:10px 14px;font-weight:600;cursor:pointer;transition:.2s box-shadow,.2s transform}
.btn:hover{transform:translateY(-1px); background-color:#579df3}
.btn:active{transform:translateY(0)}
.btn-primary{background:#0a74ff;color:#fff;box-shadow:0 8px 20px rgba(10,116,255,.25)}
.btn-primary:hover{box-shadow:0 10px 26px rgba(10,116,255,.35)}
/* dacÄƒ ai deja .btn .btn-ghost etc., pÄƒstreazÄƒ-le; .btn-primary e nouÄƒ */

/* Status badge */
.status-badge{display:inline-flex;align-items:center;gap:8px;font-weight:600;
  padding:6px 10px;border-radius:999px;line-height:1;vertical-align:middle}
.status-badge svg{display:block}
.status--active{background:rgba(52,199,89,.12);color:#22a24f;box-shadow:inset 0 0 0 1px rgba(52,199,89,.25)}
.status--trial{background:rgba(255,149,0,.12);color:#c77700;box-shadow:inset 0 0 0 1px rgba(255,149,0,.25)}
.status--pending{background:rgba(255,204,0,.14);color:#916f00;box-shadow:inset 0 0 0 1px rgba(255,204,0,.28)}
.status--suspended{background:rgba(255,59,48,.12);color:#c72824;box-shadow:inset 0 0 0 1px rgba(255,59,48,.25)}
.status--unknown{background:rgba(97,106,120,.12);color:#4a515c;box-shadow:inset 0 0 0 1px rgba(97,106,120,.25)}
/* mic polish pentru badge-ul KPI existent, sÄƒ nu se calce Ã®ntre ele pe mobil */
@media (max-width:640px){
  .site-badge{font-size:12px}
}

.page-header{
  display:flex;align-items:center;justify-content:space-between;
  gap:16px;flex-wrap:wrap;margin:0 auto 24px;max-width:1000px;padding:0 16px
}
.page-header .title{margin:0;font-size:24px;font-weight:700}
.ph-left,.ph-right{flex:1;display:flex;align-items:center}
.ph-center{text-align:center;flex:2}
.ph-right{justify-content:flex-end}
.filter select{
  border:1px solid rgba(0,0,0,.1);
  border-radius:12px;
  padding:8px 12px;
  font-size:14px;
}
.btn{
  appearance:none;border:0;
  border-radius:12px;
  padding:10px 16px;
  font-weight:600;cursor:pointer;
  display:inline-flex;align-items:center;gap:8px;
  text-decoration:none;transition:.2s all;
}
.btn svg{flex-shrink:0}
.btn-ghost{
  background:#fff;color:#0b0c0f;
  box-shadow:0 4px 14px rgba(0,0,0,.06);
}
.btn-ghost:hover{box-shadow:0 6px 20px rgba(0,0,0,.1);transform:translateY(-1px)}


/* grid utilities */
.col-span-2 { grid-column: 1 / -1; }        /* face elementul sÄƒ ocupe ambele coloane */
.grid { align-items: start; }                /* nu mai Ã®ntinde pe verticalÄƒ conÈ›inutul pe rÃ¢nd */

/* bara de acÈ›iuni */
.actions { 
  grid-column: 1 / -1;                       /* acÈ›iunile pe un rÃ¢nd separat, full width */
  display: flex; 
  gap: .5rem; 
  justify-content: flex-end; 
  align-items: center;
}
.actions .btn-primary,
.actions .btn-ghost {
  height: auto;                               /* nu se mai Ã®ntinde pe Ã®nÄƒlÈ›imea rÃ¢ndului */
  align-self: center;                         /* butoanele se aliniazÄƒ pe mijlocul rÃ¢ndului */
}

/* (opÈ›ional) previzualizarea sÄƒ nu forÈ›eze rÃ¢ndul */
.preview { max-height: 70vh; overflow: auto; }




/* ===== Header WebBase Admin (izolat, fix) ===== */
.wbadmin-header {
  background: transparent;
  border-bottom: 1px solid rgba(0,0,0,.06); /* discret, ca sÄƒ ancoreze vizual */
}
.wbadmin-inner {
  /* IMPORTANT: aliniazÄƒ cu containerul paginii */
  max-width: 1200px;          /* pune aici exact lÄƒÈ›imea containerului tÄƒu */
  margin: 0 auto;
  padding: 10px 16px;

  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;           /* Ã®nÄƒlÈ›ime stabilÄƒ */
}

.wbadmin-brand {
  font-weight: 700;
  text-decoration: none;
  color: inherit;
  white-space: nowrap;
  flex: 0 0 auto;             /* nu se Ã®ntinde */
}

.wbadmin-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1 1 auto;             /* IA TOT SPAÈšIUL liber dintre brand È™i logout */
  min-width: 0;               /* ca sÄƒ nu Ã®mpingÄƒ logout-ul Ã®n jos */
}

.wbadmin-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  line-height: 1;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.wbadmin-link:hover { border-color: rgba(0,0,0,.12); }
.wbadmin-link.is-active { font-weight: 600; border-color: rgba(0,0,0,.18); }

.wbadmin-logout {
  margin-left: 12px;
  flex: 0 0 auto;             /* È›ine-l pe acelaÈ™i rÃ¢nd, lipit de dreapta */
}
.wbadmin-logout-btn {
  background: transparent;
}

/* Burger ascuns by default (dacÄƒ Ã®l foloseÈ™ti pe mobil, rÄƒmÃ¢ne codul JS) */
.wbadmin-burger { display: none; }

/* Responsive: cÃ¢nd spaÈ›iul e mic, stivÄƒ ordonatÄƒ */
@media (max-width: 900px) {
  .wbadmin-inner { flex-wrap: wrap; }
  .wbadmin-burger { display: inline-flex; margin-left: auto; }
  .wbadmin-nav { display: none; width: 100%; order: 3; }
  .wbadmin-nav.is-open { display: flex; flex-direction: column; align-items: flex-start; }
  .wbadmin-logout { order: 2; margin-left: auto; }
}

/* ===== Page Head ===== */
.wbpage-head{
  display:flex; align-items:flex-start; justify-content:space-between;
  gap:1rem; margin:0 0 24px;
  padding-bottom:16px;
  border-bottom:1px solid rgba(0,0,0,.06);
}
.wbpage-head-main{flex:1}
.wbpage-title{
  margin:0; font-size:22px; font-weight:700; color:#0f172a;
}
.wbpage-subtitle{
  margin:4px 0 0; font-size:14px; color:#64748b; max-width:70ch;
}
.wbpage-head-actions{flex-shrink:0; display:flex; gap:.5rem; align-items:center}

.wbpage-head{
  margin:32px 0 28px;
  padding-bottom:20px;
}
.wbpage-title{font-size:24px;}
.wbpage-subtitle{font-size:15px;}

/* User dropdown */
.wbadmin-user{ position:relative; margin-left:12px; }
.wbadmin-user-btn{
  background: none; border: 1px solid transparent;
  font: inherit; color: inherit; cursor: pointer;
  padding: 6px 10px; border-radius: 8px; line-height:1;
}
.wbadmin-user-btn:hover{ background:#f1f5f9; }

.wbadmin-user-menu{
  position:absolute; right:0; top:calc(100% + 6px);
  min-width: 180px; background:#fff; border:1px solid #e2e8f0; border-radius:10px;
  box-shadow:0 10px 30px rgba(0,0,0,.08); padding:6px; display:none; z-index:60;
}
.wbadmin-user-menu.show{ display:block; }

.wbadmin-user-item{
  width:100%; background:none; border:0; text-align:left; cursor:pointer;
  padding:10px 10px; border-radius:8px; font-size:14px;
}
.wbadmin-user-item:hover{ background:#f8fafc; }

/* Burger button â€“ ascuns pe desktop */
.wbadmin-burger {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 6px 10px;
  line-height: 1;
}

/* Navigation default (desktop) */
.wbadmin-nav {
  display: flex;
  gap: 14px;
  align-items: center;
}

/* Mobile styles */
@media (max-width: 900px) {
  .wbadmin-burger {
    display: block; /* apare doar pe mobil */
  }

  .wbadmin-nav {
    position: fixed;
    top: 0; right: -100%; bottom: 0;
    width: 260px;
    background: #fff;
    box-shadow: -2px 0 12px rgba(0,0,0,.15);
    padding: 60px 20px 20px;
    flex-direction: column;
    gap: 16px;
    transition: right 0.3s ease;
    z-index: 100;
  }

  .wbadmin-nav.is-open {
    right: 0; /* cÃ¢nd e activ, intrÄƒ Ã®n ecran */
  }

  .wbadmin-nav a {
    display: block;
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 16px;
  }

  /* sÄƒ nu mai ocupe loc lÃ¢ngÄƒ brand */
  .wbadmin-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
}
@media (max-width: 900px) {
  .wbadmin-nav a {
    display: block;
    width: 100%;
    padding: 14px 18px;       /* mai mult padding */
    border-radius: 8px;       /* colÈ›uri rotunjite */
    margin: 4px 0;            /* spaÈ›iu Ã®ntre linkuri */
    font-size: 16px;
    font-weight: 500;
    color: #0f172a;
    text-decoration: none;
    transition: background .2s, color .2s;
  }

  .wbadmin-nav a:hover {
    background: #f1f5f9;
    color: #0a74ff;
  }

  .wbadmin-nav a.is-active {
    background: #0a74ff;
    color: #fff;
    font-weight: 600;
  }
}


/* Sparkline interactive */
.sparkline { position: relative; }
.sparkline svg { display:block; width:100%; height:auto; }
.sparkline .spark-hit { fill: transparent; cursor: pointer; }
.sparkline .spark-dot { fill: currentColor; opacity: .0; transition: opacity .15s ease; }
.sparkline:hover .spark-dot { opacity: .4; }

.sparkline .spark-cursor {
  stroke: currentColor;
  stroke-width: 1;
  opacity: 0;
  transition: opacity .12s linear;
}

.sparkline-tip {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  padding: 6px 8px;
  background: #0b1220;
  color: #fff;
  font-size: 12px;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(10,22,50,.18);
  opacity: 0;
  transform: translate(-50%, -130%);
  transition: opacity .12s ease;
  white-space: nowrap;
}

/* =========================================================
   MOBILE FIX PACK â€” fÄƒrÄƒ sidebar
   Breakpoints:
   - Tablet & down ............. â‰¤900px
   - Phone ..................... â‰¤640px
   - Small phone ............... â‰¤480px
   - Tiny ...................... â‰¤360px
   ========================================================= */

/* 1) OptimizÄƒri generale mobile */
@media (max-width: 900px){
  html, body{ background-attachment: scroll !important; }
  .container{ padding: 22px 14px 72px !important; max-width: 1200px; margin: 0 auto; margin-top: 50px; }

  h1, .title, h1.title{ font-size: clamp(18px, 4.8vw, 22px) !important; }
  .subtitle, .wbpage-subtitle{ font-size: clamp(13px, 3.6vw, 15px) !important; }

  .card{ box-shadow: var(--shadow-1, 0 10px 30px rgba(16,24,40,.08)); border-radius: 18px; }
}

/* 2) Grile È™i carduri */
@media (max-width: 900px){
  .grid-sites{ grid-template-columns: 1fr !important; gap: 14px !important; }
  .site-kpis{ grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
}
@media (max-width: 640px){
  .site-kpis{ grid-template-columns: 1fr !important; }
  .site-meta{ grid-template-columns: 1fr !important; row-gap: 8px !important; }
  .site-actions{ justify-content: flex-start !important; flex-wrap: wrap; gap: 8px; }
  .site-actions .btn-ghost{ max-width: 100% !important; }
}

/* 3) Toolbar-uri È™i headere */
@media (max-width: 900px){
  .hdr,
  .page-header,
  .wbpage-head{ flex-direction: column; align-items: stretch; gap: 10px; }

  .toolbar,
  .filter-bar,
  .users-toolbar,
  .website-add-form,
  .invite-toolbar{
    grid-template-columns: 1fr !important;
  }

  .toolbar.is-sticky,
  .filter-bar{ position: sticky; top: 10px; z-index: 8; }
  .filter-bar .actions{ justify-content: flex-start !important; flex-wrap: wrap; gap: 8px; }
}

/* 4) Form rows */
@media (max-width: 640px){
  .admin .row,
  .admin .row.is-form-2,
  .admin .row.is-form-3,
  .admin .row.is-form-4{ grid-template-columns: 1fr !important; }

  .admin .row .btn,
  .admin .row .btn-ghost{ justify-self: start !important; max-width: 100% !important; width: 100% !important; }
}

/* 5) Mesaje, liste, users */
@media (max-width: 900px){
  .msg{ grid-template-columns: 1fr !important; gap: 12px !important; }
  .msg-actions{ flex-direction: row; flex-wrap: wrap; }
  .msg-actions .input{ flex: 1 1 220px; }
}
@media (max-width: 640px){
  .user-item{ grid-template-columns: 1fr !important; align-items: start; }
  .user-actions, .user-admin{ justify-content: flex-start !important; flex-wrap: wrap; gap: 8px; }
  .site-row{ grid-template-columns: 1fr !important; }
  .site-actions{ justify-content: flex-start; flex-wrap: wrap; gap: 8px; }
}

/* 6) Tabele */
@media (max-width: 560px){
  .table td:last-child .btn{ width: 100% !important; justify-content: center; }
}
@media (max-width: 480px){
  .table th, .table thead{ display:none !important; }
  .table tr{ display:block; border:1px solid var(--hairline, #e6edf6); border-radius: 12px; margin: 10px 0; box-shadow: 0 4px 10px rgba(16,24,40,.05); }
  .table td{ display:block; padding: 10px 12px; border-bottom:1px solid #eef2f7; }
  .table td:last-child{ border-bottom:0; }
}

/* 7) Butoane */
@media (max-width: 640px){
  .btn, .btn-ghost{ min-height: 44px; }
  /* DacÄƒ vrei full-width, decomenteazÄƒ: */
  /* .btn, .btn-ghost{ width: 100%; } */
}

/* 8) Toasts & FAB */
@media (max-width: 640px){
  .toast-wrap{
    top: 12px; right: auto; left: 50%;
    transform: translateX(-50%); width: min(92vw, 460px);
  }
  .admin-fab{
    bottom: calc(16px + env(safe-area-inset-bottom)); left: 16px;
    width: 52px; height: 52px;
  }
}

/* 9) Admin header & nav interior */
@media (max-width: 900px){
  .wbadmin-logout{ order: 2; margin-left: auto; }

}

/* 10) Media previews */
@media (max-width: 640px){
  img, video{ max-width: 100%; height: auto; }
  .site-preview{ aspect-ratio: 16 / 9; }
}

/* 11) Utility: ascunde overflow-x */
@media (max-width: 640px){
  html, body{ overflow-x: hidden; }
}

/* 12) Tiny phones */
@media (max-width: 360px){
  .chip, .pill{ padding: 6px 8px !important; }
  .btn-ghost{ padding: 0 10px !important; }
  .site-badge{ font-size: 11px !important; padding: 6px 8px !important; }
}


*,
*::before,
*::after { box-sizing: border-box; }
@media (max-width: 900px){
  html, body { overflow-x: hidden !important; }
}
/* 2) Previne â€žieÈ™ireaâ€ elementelor din ecran pe mobil */
@media (max-width: 900px){
  /* copii Ã®n flex/grid nu mai forÈ›eazÄƒ min-content pe lÄƒÈ›ime */
  [class*="grid"] > *,
  [class*="Grid"] > *,
  [class*="row"]  > *,
  [class*="Row"]  > *,
  [class*="list"] > *,
  [class*="List"] > *{
    min-width: 0 !important;
  }

  /* orice card/box/section nu depÄƒÈ™eÈ™te ecranul */
  .card,
  .box,
  .section,
  .panel{
    max-width: 100% !important;
    overflow: hidden; /* taie eventuale umbre/colÈ›uri care ies */
  }
   /* imagini / svg / canvas responsive */
  img, svg, canvas, video{
    max-width: 100%;
    height: auto;
  }

  /* tabelele foarte late devin scrollabile pe X, nu Ã®mping layout-ul */
  .table-wrap, .table{
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* 3) Grile: 1 col pe telefon (fÄƒrÄƒ sÄƒ atingem sidebarul) */
@media (max-width: 640px){
  .grid-sites{ grid-template-columns: 1fr !important; gap: 14px !important; }
  .site-kpis{  grid-template-columns: 1fr !important; }
  .site-meta{  grid-template-columns: 1fr !important; row-gap: 8px !important; }

  /* acÈ›iuni sÄƒ nu iasÄƒ din ecran */
  .site-actions, .user-actions, .user-admin{
    flex-wrap: wrap; gap: 8px; justify-content: flex-start;
  }
}

/* 4) Buttons: touch target corect */
@media (max-width: 640px){
  .btn, .btn-ghost{ min-height: 44px; }
}

/* 5) Card titles/texte: scalare uÈ™oarÄƒ pe mobil */
@media (max-width: 900px){
  h1, .title, h1.title{ font-size: clamp(18px, 4.8vw, 22px) !important; }
  .subtitle{ font-size: clamp(13px, 3.6vw, 15px) !important; }
}

.wbadmin-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.wbadmin-link .badge {
  display: inline-block;
  min-width: 18px;
  padding: 0 6px;
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
  color: #fff;
  background: #e11d48; /* roÈ™u accent */
  border-radius: 999px;
  text-align: center;
}
/* ===== Admin nav: scroll orizontal pe desktop cÃ¢nd nu Ã®ncap ===== */
.wbadmin-header { overflow: visible; }
.wbadmin-inner { display: flex; align-items: center; gap: 12px; }

/* nav Ã®ntr-un singur rÃ¢nd, dar scrollabil */
.wbadmin-nav{
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;           /* Firefox */
  -webkit-overflow-scrolling: touch;
  flex: 1 1 auto;                  /* ia tot spaÈ›iul rÄƒmas Ã®ntre logo/user */
  min-width: 0;                    /* important pentru overflow corect */
  padding: 0 12px;                 /* spaÈ›iu pentru fade */
  position: relative;
}
/* ascunde bara de scroll pe WebKit */
.wbadmin-nav::-webkit-scrollbar{ display: none; }

/* fade subtil la margini ca hint vizual cÄƒ e scrollabil */
.wbadmin-nav::before,
.wbadmin-nav::after{
  content: "";
  position: sticky;
  top: 0; width: 12px; height: 28px; /* Ã®nÄƒlÈ›imea ta de link */
  pointer-events: none; z-index: 1;
}
.wbadmin-nav::before{
  left: 0;
  background: linear-gradient(to right, rgba(255,255,255,1), rgba(255,255,255,0));
}
.wbadmin-nav::after{
  right: 0;
  background: linear-gradient(to left, rgba(255,255,255,1), rgba(255,255,255,0));
}

/* link-urile: non-wrapping, puÈ›in mai compacte ca padding */
.wbadmin-link{
  white-space: nowrap;
  padding: 6px 10px;
  border-radius: 10px;
}
.wbadmin-link.is-active{ font-weight: 600; }

/* butoanele de scroll (opÈ›ionale) */
.wbadmin-nav-btn{
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 8px;
  border: 1px solid var(--hairline, #e5e7eb);
  background: #fff; cursor: pointer;
}
@media (max-width: 900px){
  /* pe mobil oricum ai burger â€“ ascunde butoanele de scroll */
  .wbadmin-nav-btn{ display: none; }
}

/* ===== Dropdown ClienÈ›i: vizibil, ne-tÄƒiat, peste conÈ›inut ===== */
.wbadmin-nav{ position:relative; overflow:visible !important; } /* IMPORTANT */
.wbadmin-dropdown{ position:relative; }

.wbadmin-dd-btn{
  display:inline-flex; align-items:center; gap:6px;
  padding:6px 10px; border-radius:10px;
  border:1px solid var(--hairline,#e5e7eb); background:#fff; cursor:pointer;
  white-space:nowrap;
}
.wbadmin-dd-btn.is-active{ font-weight:600; }

/* meniul stÄƒ absolut faÈ›Äƒ de .wbadmin-dropdown, cu z-index mare */
.wbadmin-dd-menu{
  position:absolute; top:calc(100% + 8px); left:0;
  min-width:220px; background:#fff;
  border:1px solid var(--hairline,#e5e7eb); border-radius:12px;
  box-shadow:0 12px 40px rgba(16,24,40,.12);
  padding:6px; display:none; z-index: 10000; /* IMPORTANT */
}
.wbadmin-dropdown.open .wbadmin-dd-menu{ display:block; }

.wbadmin-dd-item{
  display:flex; align-items:center; padding:8px 10px; border-radius:8px;
  color:inherit; text-decoration:none; white-space:nowrap;
}
.wbadmin-dd-item:hover{ background:#f3f4f6; }
.wbadmin-dd-item.is-active{ font-weight:600; background:#eef2ff; }

/* mobil: Ã®l lÄƒsÄƒm Ã®n flux, ca listÄƒ simplÄƒ */
@media (max-width: 900px){
  .wbadmin-dropdown{ width:100%; }
  .wbadmin-dd-btn{ width:100%; justify-content:space-between; }
  .wbadmin-dd-menu{ position:static; box-shadow:none; border-radius:10px; }
}
/* Dropdown ClienÈ›i â€“ controlat prin [hidden] */
.wbadmin-dd-menu[hidden]{ display:none !important; }


/* ===== Admin top-nav: off-canvas pe mobil ===== */
@media (max-width: 900px){
  .wbadmin-nav{
    position: fixed; top: 0; right: 0; bottom: 0;
    width: min(78vw, 360px);
    padding: 14px;
    background: #fff;
    box-shadow: -24px 0 60px rgba(16,24,40,.2);
    transform: translateX(110%);       /* ASCUNS complet */
    transition: transform .28s ease;
    z-index: 1200;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .wbadmin-nav.is-open{ transform: translateX(0); }

  /* overlay pentru cÃ¢nd meniul e deschis */
  .wbadmin-overlay{
    position: fixed; inset: 0;
    background: rgba(0,0,0,.35);
    opacity: 0; pointer-events: none;
    transition: opacity .2s ease;
    z-index: 1190;
  }
  .wbadmin-overlay.show{
    opacity: 1; pointer-events: auto;
  }

  /* blocheazÄƒ scroll pe body cÃ¢nd meniul e deschis */
  body.lock-scroll{ overflow: hidden; height: 100vh; }
}

/* â€”â€”â€” Tabs â€”â€”â€” */
.tabs{display:flex;gap:8px;margin:4px 0 14px;flex-wrap:wrap}
.tabs .tab{
  background:#f3f6fb;border:1px solid #e2e8f0;border-radius:10px;
  padding:10px 12px;font-weight:700;cursor:pointer;transition:.18s ease
}
.tabs .tab:hover{background:#f0f4fb}
.tabs .tab.active{
  background:#fff;box-shadow:0 8px 22px rgba(16,24,40,.08);border-color:#dfe7fb
}

/* â€”â€”â€” Tables â€”â€”â€” */
.table{width:100%;border-collapse:separate;border-spacing:0;margin:8px 0}
.table th,.table td{padding:10px 12px;border-bottom:1px solid #e8eef7;text-align:left;font-size:14px}
.table th{font-weight:800;color:#0f172a}

/* â€”â€”â€” Pills / Badges â€”â€”â€” */
.pill{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:999px;font-size:12px;border:1px solid #e5ecf7;background:#f8fbff}
.pill.ok{border-color:rgba(18,183,106,.35);background:#effaf4}
.pill.warn{border-color:rgba(245,158,11,.35);background:#fff7ed}

/* â€”â€”â€” Layout helpers â€”â€”â€” */
.row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.right{margin-left:auto}
.muted{color:#64748b}
.hr{height:1px;background:#eef2f7;margin:16px 0}
.help{font-size:12px;color:#64748b}
.hidden{display:none}
.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.grid-3{display:grid;grid-template-columns:1fr 1fr 1fr;gap:14px}
@media(max-width:1100px){.grid-3{grid-template-columns:1fr}}
@media(max-width:900px){.grid-2{grid-template-columns:1fr}}

/* â€”â€”â€” Inputs & Buttons (default) â€”â€”â€” */
.input,.select{height:40px;padding:8px 12px;border-radius:12px;border:1px solid #e2e8f0;background:#fff;box-shadow:inset 0 1px 0 rgba(255,255,255,.7);transition:.18s ease}
.input:focus,.select:focus{outline:none;border-color:#bcd1ff;box-shadow:0 0 0 5px rgba(10,116,255,.12)}
.input{width:100%}
.select{background:#fff}

.btn{height:40px;border-radius:12px;padding:8px 14px;border:1px solid transparent;cursor:pointer;
     background:#0a74ff;color:#fff;font-weight:800;box-shadow:0 10px 22px rgba(10,116,255,.18);transition:.18s ease}
.btn:hover{filter:brightness(1.02)}
.btn-ghost{background:#fff;border:1px solid #e2e8f0;color:#0f172a;box-shadow:none}
.btn-ghost:hover{background:#f8fafc}
.btn-outline{background:#fff;border:1px solid #cfd8e3;color:#0f172a}
.btn[disabled]{opacity:.55;cursor:not-allowed;box-shadow:none}

/* â€”â€”â€” Compact variants (toolbar) â€”â€”â€” */
.input-sm,.select-sm,.btn-sm{height:34px;padding:6px 10px;border-radius:10px;font-size:13px}

/* â€”â€”â€” Toolbar â€”â€”â€” */
.toolbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:8px 0 12px}
.toolbar .spacer{flex:1}
.toolbar .group{display:flex;gap:8px;align-items:center}

/* CÄƒutare cu icon */
.search{position:relative;min-width:260px;flex:1}
.search svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  stroke: #9ca3af;
  pointer-events: none;
}
.search .input.input-sm {
  padding-left: 38px; /* spaÈ›iu pentru lupÄƒ */
  width: 100%;
  box-sizing: border-box;
}

/* â€”â€”â€” Cards grid â€”â€”â€” */
.cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
@media (max-width:1200px){.cards{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:900px){.cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:600px){.cards{grid-template-columns:1fr}}

.card-item{
  border:1px solid #e7eef8;border-radius:14px;background:#fff;
  box-shadow:0 12px 28px rgba(16,24,40,.06);display:flex;flex-direction:column;overflow:hidden
}
.card-item .ci-head{padding:12px 14px;border-bottom:1px solid #eef3fb;font-weight:800;display:flex;align-items:center;gap:8px}
.card-item .ci-body{padding:12px 14px;flex:1}
.card-item .ci-foot {
  padding:10px 12px;
  border-top:1px solid #eef3fb;
  display:flex;
  gap:8px;
  justify-content:flex-end;
  flex-wrap:wrap;        /* ðŸ‘‰ permite butoanelor sÄƒ treacÄƒ pe rÃ¢ndul 2 dacÄƒ nu au loc */
}
.card-item .ci-foot button {
  flex:0 0 auto;         /* ðŸ‘‰ pÄƒstreazÄƒ dimensiunea normalÄƒ, nu se lÄƒÈ›esc aiurea */
}
.card-item .muted{color:#64748b;font-size:12px}
.ci-sub{font-weight:700;margin-bottom:6px}

/* â€”â€”â€” Modal â€”â€”â€” */
.modal-backdrop{position:fixed;inset:0;background:rgba(15,23,42,.35);backdrop-filter:saturate(140%) blur(4px);display:none;align-items:center;justify-content:center;z-index:1000}
.modal-backdrop.show{display:flex}
.modal{width:min(960px,94vw);background:#fff;border:1px solid #e7eef8;border-radius:16px;box-shadow:0 24px 64px rgba(2,6,23,.22);max-height:92vh;display:flex;flex-direction:column}
.modal .m-head{position:relative;display:flex;align-items:center;justify-content:center;padding:14px 16px;border-bottom:1px solid #eef3fb}
.modal .m-head .m-title{font-weight:900}
.modal .m-head .m-close{position:absolute;right:10px;top:10px;display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:10px;border:1px solid #e2e8f0;background:#fff;cursor:pointer}
.modal .m-head .m-close:hover{background:#f8fafc}
.modal .m-body{padding:16px;overflow:auto}
.modal .m-foot{display:flex;gap:8px;justify-content:flex-end;padding:12px 16px;border-top:1px solid #eef3fb}
.m-field{margin:10px 0}
.m-label{display:block;font-weight:800;font-size:12px;margin-bottom:6px}

/* â€”â€”â€” Template editor (stacked + preview) â€”â€”â€” */
.split{display:grid;grid-template-columns:1fr 1fr;gap:14px}
@media(max-width:1100px){.split{grid-template-columns:1fr}}
.preview{border:1px solid #e2e8f0;border-radius:12px;overflow:hidden;background:#f6f9fc;height:800px;min-height:800px}
.preview iframe{width:100%;height:100%;border:0;background:#fff;display:block}
.preview-toolbar{display:flex;align-items:center;justify-content:space-between;padding:8px 10px;border-bottom:1px solid #eef3fb;background:#fff}
.preview-toolbar .right{margin-left:auto}
.textarea {
  width: 100%;
  min-height: 160px;        /* Ã®n loc de 38vh */
  max-height: none;        /* ca sÄƒ nu iasÄƒ din modal */
  padding: 10px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  font: 14px/1.45 Inter,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  resize: vertical;         /* permite doar resize vertical */
  box-sizing: border-box;   /* sÄƒ È›inÄƒ cont de padding/border */
}

/* â€”â€”â€” Toasts â€”â€”â€” */
.toast-wrap{position:fixed;top:16px;right:16px;display:flex;flex-direction:column;gap:8px;z-index:99999}
.toast{background:#fff;border:1px solid #e5ecf7;padding:10px 12px;border-radius:10px;box-shadow:0 12px 30px rgba(16,24,40,.12)}
.toast.ok{border-color:rgba(18,183,106,.35)}
.toast.err{border-color:rgba(239,68,68,.35)}

/* â€”â€” Fix butoane Ã®ntinse â€”â€” */
button, .btn, .btn-ghost, .btn-outline{
  width:auto !important;
  display:inline-flex !important;
  align-items:center;
  justify-content:center;
  white-space:nowrap;
  flex:0 0 auto !important;
  max-width:100%;
}

/* Toolbar: pÄƒstreazÄƒ doar search-ul fluid, restul compact */
.toolbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:8px 0 12px}
.toolbar .search{flex:1 1 280px;min-width:240px}
.toolbar .btn, .toolbar .select{flex:0 0 auto}

/* Variante compacte */
.btn-sm{height:34px;padding:6px 12px;border-radius:10px;font-size:13px}
.input-sm{height:34px;padding:6px 10px;border-radius:10px}

/* Mic polish */
.btn[disabled]{opacity:.55;cursor:not-allowed;box-shadow:none}
.tabs .tab{transition:background .18s}
.tabs .tab:hover{background:#f0f4fb}

/* â€”â€”â€” Tooltips (info icon) â€”â€”â€” */
/* iconiÈ›a */
.hint{
  position:relative;display:inline-flex;align-items:center;justify-content:center;
  width:18px;height:18px;margin-left:6px;border-radius:50%;
  background:#eaf1ff;color:#0a74ff;font:700 12px/1 Inter,Arial,sans-serif;cursor:help;user-select:none
}
.hint::before{content:"i";transform:translateY(-.5px)}

/* dacÄƒ e prea aproape de stÃ¢nga -> aliniazÄƒ la stÃ¢nga iconiÈ›ei */
.hint.tooltip-right::after{ left:0; transform:none }
/* dacÄƒ e prea aproape de dreapta -> aliniazÄƒ la dreapta iconiÈ›ei */
.hint.tooltip-left::after { right:0; left:auto; transform:none }
.hint:hover::after{opacity:1}
.hint::marker{content:""}
/* triunghi */
.hint::before, .hint::after{z-index:10}
.hint::after{z-index:1000}
.hint:hover::before{}

.modal{ overflow:auto; }          /* permite scroll pe modal */
.modal .m-body{ overflow:visible ; }  /* NU mai taie conÈ›inutul â€žcare ieseâ€ (ex: tooltip) */

@media (min-width: 1024px) {
  .wbadmin-burger {
    display: none !important;
  }
}

/* balonul global */
.hint-bubble{
  position:fixed;z-index:10000;background:#0f172a;color:#fff;
  padding:8px 10px;border-radius:8px;box-shadow:0 10px 28px rgba(2,6,23,.18);
  font-size:12px;line-height:1.45;max-width:320px;pointer-events:none;
  opacity:0;transform:translateY(-6px);transition:opacity .12s, transform .12s;
}
.hint-bubble.show{opacity:1;transform:none}
.hint-bubble::after{
  content:"";position:absolute;left:50%;transform:translateX(-50%);
  top:100%;border:6px solid transparent;border-top-color:#0f172a;
}
.hint-bubble.bottom::after{
  top:auto;bottom:100%;border-top-color:transparent;border-bottom-color:#0f172a;
}

/* Drawer istoric abonat */
.drawer{position:fixed;inset:0;background:rgba(15,23,42,.35);backdrop-filter:blur(3px);display:none;justify-content:flex-end;z-index:1100}
.drawer.show{display:flex}
.drawer-panel{width:min(560px,94vw);height:100%;background:#fff;color:#0f172a;border-left:1px solid #e7eef8;box-shadow:-12px 0 30px rgba(2,6,23,.15);display:flex;flex-direction:column}
.drawer-head{display:flex;align-items:center;justify-content:space-between;padding:12px 14px;border-bottom:1px solid #eef3fb;font-weight:800}
.drawer-body{padding:12px 14px;overflow:auto}
.drawer-body .event{display:flex;gap:10px;align-items:flex-start;padding:8px 0}
.drawer-body .event .pill{font-size:11px}

/* â€”â€”â€” Calendar â€”â€”â€” */
#tab-calendar .cal{display:grid;gap:6px}
#tab-calendar .cal-row{display:grid;grid-template-columns:repeat(7,1fr);gap:6px}
#tab-calendar .cal-head > div{font-weight:800;color:var(--muted, #64748b)}
#tab-calendar .cal-cell{
  border:1px solid var(--border, #e7eef8);
  border-radius:10px; min-height:92px; background:var(--card, #fff);
  padding:6px; display:flex; flex-direction:column; gap:4px
}
#tab-calendar .cal-day{font-weight:700;opacity:.7}
#tab-calendar .cal-badge{
  font-size:12px; line-height:1.2; padding:4px 6px; border-radius:6px;
  border:1px solid var(--border, #e7eef8); cursor:pointer; user-select:none
}
#tab-calendar .cal-badge.draft{ background:var(--pill-warn, #fff7ed) }
#tab-calendar .cal-badge.scheduled{ background:var(--pill, #f8fbff) }
#tab-calendar .cal-badge.sent{ background:var(--pill-ok, #effaf4) }
#tab-calendar .cal-cell.muted{ opacity:.55 }
.cal-badge[data-status="sent"],
.cal-badge[data-status="sending"],
.cal-badge[data-status="failed"] {
  opacity: .6;
  cursor: not-allowed;
  pointer-events: auto; /* lÄƒsÄƒm sÄƒ intre Ã®n handler ca sÄƒ aparÄƒ toast */
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
margin: 32px 0 28px;
    padding-bottom: 20px;
  border-bottom: 1px solid #eaeef5;
}

.section-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
}

.section-header p {
  margin: 4px 0 0;
  font-size: 14px;
  color: #64748b;
}


/* Header strat peste card-uri + contrast pe dark */
.admin .admin-header{
  position: sticky; top: 0;
  z-index: 40; /* peste .card */
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  gap: 12px; padding: 10px 14px;
  background: #0b0f14; color: #e8eef6;
}

/* Brand */
.admin .admin-header .brand{display:flex;gap:10px;align-items:center;color:inherit;text-decoration:none}
.admin .admin-header .brand img{height:24px;width:auto;display:block}

/* Burger: vizibil pe mobil, ascuns pe >=1024px */
.admin .wb-burger{
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: #e8eef6; /* face stroke-ul SVG vizibil (currentColor) */
  cursor: pointer;
}
@media (min-width: 1024px){
  .admin .wb-burger{ display: none; }
}

/* Drawer mobil pentru nav */
.admin .admin-nav{
  position: fixed; inset: 0 0 0 auto; /* lipit de dreapta */
  width: min(86vw, 360px);
  background: #0f1623;
  transform: translateX(100%);
  transition: transform .25s ease;
  padding: 18px; box-shadow: -12px 0 24px rgba(0,0,0,.35);
  z-index: 50;
}
.admin.nav-open .admin-nav{ transform: translateX(0); }

/* Body no scroll cÃ¢nd nav deschis */
.admin.nav-open{ overflow: hidden; }

/* Hard fixes care pot cauza â€ždispariÈ›iiâ€ */
.container, .card{ overflow: visible !important; } /* evitÄƒ tÄƒierea header-ului */


.sub-notes-wrap {
  margin-top: 25px;
  border-top: 1px solid #e0e0e0;
  padding-top: 20px;
}

.sub-notes-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
}

.sub-notes-list {
  max-height: 220px;
  overflow-y: auto;
  padding-right: 5px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 15px;
}

.sub-note-item {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.4;
}

.sub-note-header {
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
  font-size: 13px;
}

.sub-note-meta {
  font-size: 12px;
  color: #888;
}

.sub-note-form textarea {
  width: 100%;
  resize: vertical;
  border-radius: 8px;
  border: 1px solid #ddd;
  padding: 8px;
  font-size: 14px;
  margin-bottom: 10px;
}

.sub-profile-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sub-profile-wrap label {
  font-weight: 600;
  font-size: 13px;
  margin-top: 6px;
  color: #333;
}

.sub-profile-wrap input,
.sub-profile-wrap select {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 8px;
  font-size: 14px;
  background: #fff;
}

.sub-profile-wrap input:focus,
.sub-profile-wrap select:focus,
.sub-note-form textarea:focus {
  border-color: #007bff;
  outline: none;
}

.sub-profile-wrap hr {
  border: none;
  border-top: 1px solid #eee;
}

.btn.w-100 {
  width: 100%;
}


td .source-tip {
  cursor: help;
  border-bottom: 1px dotted #999;
}

/* ===== Fix badge 'Modul activ' pentru mobil ===== */
@media (max-width: 768px) {
  .section-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .section-header .pill {
    align-self: flex-start;
    margin-top: 4px;
  }

  /* opÈ›ional: micÈ™orÄƒm textul badge-ului pe mobil */
  .section-header .pill {
    font-size: 13px;
    padding: 4px 10px;
  }
}

.count-pill {
  display: inline-block;
  background: #f3f4f6;
  color: #111;
  font-size: 14px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 9999px;
  margin-left: 10px;
}

@media (max-width: 768px) {
  .count-pill {
    margin-left: 6px;
    font-size: 13px;
  }
}

.subs-stats {
  font-size: 14px;
  color: #666;
  margin-top: 4px;
  margin-left: 4px;
}

.subs-stats strong {
  color: #111;
  font-weight: 600;
}

.input-hint {
  display: block;
  font-size: 13px;
  color: #d97706; /* portocaliu subtil */
  margin-top: 4px;
  min-height: 16px; /* ca sÄƒ nu sarÄƒ layoutul */
}

.input-hint.ok {
  color: #059669; /* verde dacÄƒ e valid */
}


.mail-composer {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.mail-composer.is-visible {
  display: flex;
}

.mail-composer-dialog {
  background: #fff;
  border-radius: 14px;
  max-width: 640px;
  width: 100%;
  box-shadow: 0 10px 28px rgba(0,0,0,.25);
  overflow: hidden;
  animation: fadeIn .25s ease;
}

.mail-composer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  border-bottom: 1px solid #e6ebf2;
  background: #f8fafc;
}

.mail-composer-body {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mail-composer-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 22px;
  border-top: 1px solid #e6ebf2;
  background: #f9fafb;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}


a.mail-link {
  color: #0f172a; /* text Ã®nchis, lizibil */
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.2s ease;
}

a.mail-link:hover {
  color: #2563eb; /* albastru curat la hover */
  border-bottom-color: #2563eb;
}



.mail-composer {
  position: fixed !important;
  top: 0; left: 0; right: 0; bottom: 0;
  inset: 0;
  z-index: 999999; /* peste tot */
  background: rgba(0, 0, 0, 0.6);
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mail-composer-dialog {
  width: 92%;
  max-width: 760px;
  max-height: 92vh;
  background: #fff;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin: auto;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .mail-composer-dialog {
    width: 96%;
    height: auto;
    max-height: none;
    border-radius: 10px;
    margin: 40px 0;
  }

  .mail-composer-body {
    padding: 18px;
    font-size: 15px;
  }

  .mail-preview-wrap iframe {
    height: 220px; /* mai mic pe ecran Ã®ngust */
  }
}


@supports (-webkit-touch-callout: none) {
  /* detecteazÄƒ Safari iOS */
  .mail-composer {
    position: absolute !important;
    top: 0; left: 0; right: 0; bottom: 0;
    height: 100vh;
    z-index: 999999;
    background: rgba(0,0,0,0.6);
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}


.lead-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
  cursor: help;
}


.admin-footer {
  text-align: center;
  padding: 12px 0;
  border-top: 1px solid #e5e7eb;
  margin-top: 30px;
  font-size: 13px;
  color: #6b7280;
}

.admin-footer .admin-disclaimer {
  margin: 0;
  font-size: 13px;
  color: #9ca3af;
}

.admin-footer .admin-disclaimer::before {
  content: "ðŸ”’ ";
  font-size: 14px;
}

.gdpr-warning {
  background: #fef3c7;
  border: 1px solid #fcd34d;
  color: #92400e;
  padding: 10px 15px;
  border-radius: 8px;
  font-size: 12px;
  margin-bottom: 15px;
  font-weight: 500;
}

.meeting-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #0f172a;
  color: #fff;
  padding: 14px 20px;
  border-radius: 12px;
  margin-bottom: 10px;
}
.meeting-info h3 {
  margin: 0 0 5px;
}
.meeting-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.badge.ok { background: #22c55e; padding: 3px 8px; border-radius: 6px; }
.badge.warn { background: #f59e0b; padding: 3px 8px; border-radius: 6px; }

.modal.hidden { display: none; }

textarea#modal-textarea {
  width: 100%;
  height: 200px;
  border-radius: 8px;
  border: none;
  padding: 10px;
  background: #0f172a;
  color: #fff;
}

.add-meeting {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 20px;
}
.add-meeting input {
  flex: 1;
  min-width: 200px;
  padding: 8px 10px;
  border-radius: 6px;
  border: none;
  color: #000;
}
.add-meeting .btn.primary {
  background: linear-gradient(135deg, #0ea5e9, #3b82f6);
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  color: white;
  cursor: pointer;
}
.separator {
  border: 0;
  border-top: 1px solid #334155;
  margin: 20px 0;
}


.wbadmin-link .icon,
.wbadmin-dd-item .icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 6px;
  vertical-align: -3px;
  color: currentColor;
}

.wbadmin-header .wbadmin-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap; /* important: permite rÃ¢nd nou la micÈ™orare */
  gap: 10px;
}

.wbadmin-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  min-width: 0; /* previne overflow pe orizontalÄƒ */
}

.wbadmin-user {
  margin-left: auto;
  flex-shrink: 0; /* Ã®mpiedicÄƒ micÈ™orarea textului userului */
  position: relative;
  z-index: 2;
}

.wbadmin-user-btn {
  white-space: nowrap;
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

@media (max-width: 900px) {
  .wbadmin-inner {
    flex-direction: column;
    align-items: stretch;
  }
  .wbadmin-user {
    align-self: flex-end;
  }
}



/* === Compact table fix â€“ menÈ›ine totul pe un singur rÃ¢nd === */

/* 1.  Èšine butoanele pe acelaÈ™i rÃ¢nd */
td:last-child {
  white-space: nowrap;
}

/* 2.  Èšine È™i numÄƒrul de telefon pe acelaÈ™i rÃ¢nd, fÄƒrÄƒ sÄƒ rupÄƒ */
td:nth-child(2) {
  white-space: nowrap;
  max-width: 140px;        /* ajusteazÄƒ dupÄƒ lÄƒÈ›imea ta totalÄƒ */
  text-overflow: ellipsis; /* dacÄƒ e prea lung, pune ... */
  overflow: hidden;
  font-size: 0.9em;        /* micÈ™orare automatÄƒ */
}

/* 3.  Butoanele sÄƒ nu mai ocupe 100% */
.btn.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 6px;
  width: auto !important;
  font-size: 0.9em;        /* micÈ™oreazÄƒ uÈ™or È™i ele dacÄƒ e strÃ¢mt */
}

/* 4.  AsigurÄƒ-te cÄƒ tabelul poate lÄƒrgi coloanele la nevoie */
table {
  table-layout: auto !important; /* permite adaptare dinamicÄƒ */
  width: 100%;
}
/* === Aliniere e-mail + bulinÄƒ pe un singur rÃ¢nd === */
.lead-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;  /* aliniere perfectÄƒ pe mijlocul textului */
}

.mail-link {
  display: inline-block;
 
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  vertical-align: middle;
}



/* celula care conÈ›ine emailul */
td:first-child {
  white-space: nowrap;      /* È›ine tot conÈ›inutul pe o singurÄƒ linie */
  overflow: hidden;
  text-overflow: ellipsis;  /* dacÄƒ e prea lung, pune "..." */
  max-width: 260px;         /* ajusteazÄƒ dupÄƒ lÄƒÈ›imea tabelului tÄƒu */
}
/* 1. ÃŽnfÄƒÈ™oarÄƒ tabelul Ã®ntr-un container scrollabil */
.table-wrap {
  width: 100%;
  overflow-x: auto;           /* activeazÄƒ scroll doar pe orizontalÄƒ */
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;  /* scroll fin pe Mac/iOS */
}

/* 2. AsigurÄƒ-te cÄƒ tabelul nu se comprimÄƒ */
.table-wrap table {
  min-width: 900px;           /* ajusteazÄƒ dupÄƒ cÃ¢te coloane ai */
  border-collapse: collapse;
  width: 100%;
  table-layout: auto;
}

/* 3. Aspect scrollbar minimalist (opÈ›ional) */
.table-wrap::-webkit-scrollbar {
  height: 8px;
}
.table-wrap::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.05);
  border-radius: 10px;
}
.table-wrap::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.25);
  border-radius: 10px;
}
.table-wrap:hover::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.4);
}
th[data-key] {
  cursor: pointer;
  position: relative;
  user-select: none;
  transition: color 0.2s;
}
th[data-key]:hover { color: #0a74ff; }
th.sort-asc::after { content: " â†‘"; opacity: 0.7; }
th.sort-desc::after { content: " â†“"; opacity: 0.7; }
/* Coloane sortabile */
th[data-key] {
  cursor: pointer;
  position: relative;
  user-select: none;
  padding-right: 22px; /* spaÈ›iu pt sÄƒgeatÄƒ */
  transition: color 0.2s ease;
}

/* SÄƒgeata de bazÄƒ (gri, neutrÄƒ) */
th[data-key]::after {
  content: "â–¾";
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  font-size: 0.75em;
  color: rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, color 0.2s ease;
  opacity: 0.6;
}

/* La hover â€” indicÄƒ faptul cÄƒ e interactiv */
th[data-key]:hover::after {
  color: #0a74ff;
  opacity: 1;
}

/* Sortare ascendentÄƒ */
th.sort-asc::after {
  transform: translateY(-50%) rotate(180deg);
  color: #0a74ff;
  opacity: 1;
}

/* Sortare descendentÄƒ */
th.sort-desc::after {
  transform: translateY(-50%) rotate(0deg);
  color: #0a74ff;
  opacity: 1;
}
.input-file {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  color: #0a74ff;
  background: #f9fbff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 10px 16px;
  cursor: pointer;
  transition: all .2s ease;
  overflow: hidden;
}

.input-file:hover {
  background: #f0f5ff;
  border-color: #bcd1ff;
}

.input-file:active {
  background: #e4ecff;
  transform: translateY(1px);
}

.input-file input[type="file"] {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.input-file .file-name {
  font-size: 13px;
  color: #475569;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}
/* Scroll pe body-ul modalului fÄƒrÄƒ sÄƒ miÈ™te backdrop-ul */
.modal {

  max-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

body.modal-lock {
  overflow: hidden;
  touch-action: none;
}


body.modal-lock {
  position: fixed;
  width: 100%;
}


.modal .m-body {
  overflow-y: auto;
 
  padding-right: 4px; /* pentru a nu tÄƒia scrollbarul */
}
body.modal-open {
  overflow: hidden;
}
.sub-note-body p {
  margin: 2px 0;
}
.sub-note-body strong {
  font-weight: 600;
}
.sub-note-body u {
  text-decoration: underline;
}
.rte-toolbar{ display:flex; gap:.5rem; margin-bottom:.5rem; }
.rte-btn{ border:1px solid #e5e7eb; padding:.25rem .5rem; border-radius:.375rem; background:#fff; cursor:pointer }
.rte-btn:focus{ outline:2px solid #3b82f6; outline-offset:2px }
.rte-editor{
  min-height:72px; max-height:240px; overflow:auto;
  border:1px solid #e5e7eb; border-radius:.5rem; padding:.5rem .625rem;
  background:#fff;
}
.rte-editor:focus{ outline:2px solid #3b82f6; outline-offset:2px }
.sub-note-form {
  display: flex;
  flex-direction: column;
  gap: .75rem; /* spaÈ›iere coerentÄƒ Ã®ntre editor, toolbar È™i buton */
}
/* Containerul jurnalului â€“ Ã®nÄƒlÈ›ime fixÄƒ + scroll intern */
#sub-notes-list {

  overflow-y: auto;
  padding-right: 6px; /* evitÄƒ tÄƒierea textului lÃ¢ngÄƒ scrollbar */
}

/* Optional: ascundem scrollbar-ul pentru un look mai clean (cross-browser) */
#sub-notes-list::-webkit-scrollbar { width: 6px; }
#sub-notes-list::-webkit-scrollbar-thumb { background: #d0d5dd; border-radius: 3px; }
.sub-note-form button[type="submit"] {
  margin-bottom: 1rem;
}
/* === Two-Pane Modal Layout === */

.modal.modal-wide {
  max-width: 1100px;
  width: 95%;
}

.m-body.two-pane {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 20px;
  min-height: 520px;
  height: 100% !important;
}

/* LEFT FORM AREA */
.pane-left {
  flex: 0 0 60%;
  min-width: 0;
}

/* RIGHT JOURNAL AREA */
.pane-right {
  flex: 0 0 40%;
  min-width: 0;
  border-left: 1px solid #e5e7eb;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* JOURNAL SCROLL */
.sub-notes-list {
  margin-top: 16px;
  overflow-y: auto;
  max-height: 380px;
  padding-right: 4px;
}

/* BUTTON FULL WIDTH */
.full-width {
  width: 100%;
  display: block;
}

/* Responsive fallback */
@media (max-width: 900px) {
  .m-body.two-pane {
    flex-direction: column;
  }
  .pane-right {
    border-left: none;
    padding-left: 0;
    margin-top: 24px;
  }
}
/* Previne scroll orizontal Ã®n modal */
.modal.modal-wide {
  overflow-x: hidden;
}

/* AsigurÄƒ cÄƒ flex children nu forÈ›eazÄƒ lÄƒÈ›imea */
.m-body.two-pane {
  overflow-x: hidden;
  max-width: 100%;
  box-sizing: border-box;
}

/* Previne extinderea gridului peste spaÈ›iul disponibil */
.pane-left,
.pane-right {
  min-width: 0;
}

/* AjustÄƒm grid-3 pentru a nu forÈ›a lÄƒrgirea containerului */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
}
/* Extindere modal pe toatÄƒ zona utilÄƒ */
.modal.modal-wide {
  width: 100%;
  max-width: 1580px;   /* mÄƒrit pentru two-pane confortabil */
  margin: 0 auto;
  overflow: hidden;    /* previne orice scroll orizontal */
}

/* AjustÄƒm distribuÈ›ia pane-urilor pentru full usage */
.m-body.two-pane {
  padding: 24px 28px;  /* creÈ™tem lizibilitatea + spaÈ›iu respirabil */
  gap: 28px;
  max-width: 100%;
}

/* CreÈ™tem lÄƒÈ›imea pane-right acum cÄƒ avem spaÈ›iu */
.pane-left {
  flex: 0 0 58%;
}
.pane-right {
  flex: 0 0 42%;
  padding-left: 28px;
  padding-right: 12px;
  border-left: 1px solid #e5e7eb;
  min-height: 100%;
  box-sizing: border-box;
}
.followup-box {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 14px 18px;
  margin-top: 20px;
}

.fu-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
}

.fu-field {
  margin-bottom: 12px;
}

.fu-msg {
  margin-top: 10px;
  font-size: 13px;
}
.toast {
  background: #111827;
  color: #fff;
  padding: 14px 16px 12px;
  border-radius: 10px;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  max-width: 340px;
  position: relative;
  opacity: 0;
  transform: translateY(10px) scale(0.95);
  transition: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.toast.exit {
  opacity: 0;
  transform: translateY(5px) scale(0.92);
}

.toast .title {
  font-weight: 600;
  margin-bottom: 4px;
}
.toast .time {
  font-size: 12px;
  opacity: 0.7;
}

#toast-container .toast {
  margin-bottom: 6px;
}

#reminder-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column-reverse;
  gap: 10px;
  z-index: 999999;
}

.reminder-card {
  background: #0f172a;
  color: #fff;
  padding: 12px 16px;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  width: 280px;
  font-family: Inter, sans-serif;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  position: relative;
}

.reminder-card.show {
  opacity: 1;
  transform: translateY(0);
}

.reminder-card.reminder-hide {
  opacity: 0;
  transform: translateY(10px);
}

.reminder-title {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
}

.reminder-body {
  font-size: 13px;
  line-height: 1.4;
}

.reminder-close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: none;
  border: none;
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
  color: #9ca3af;
  cursor: pointer;
  z-index: 10;          /* â† foarte important */
  pointer-events: auto; /* â† asigurÄƒ click real */
}

.reminder-close:hover {
  color: #38bdf8;
}


.wbadmin-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 240px;
  height: 100vh;
  background: #0f172a; /* albastru Ã®nchis premium */
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem 1rem;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.15);
  z-index: 1000;
}

.sidebar-logo img {
  width: 130px;
  display: block;
  margin: 0 auto 1rem;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sidebar-nav .nav-item {
  color: #e2e8f0;
  text-decoration: none;
  font-weight: 500;
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  margin-bottom: 4px;
  transition: background 0.2s, color 0.2s;
}

.sidebar-nav .nav-item:hover,
.sidebar-nav .nav-item.active {
  background: #1e293b;
  color: #38bdf8;
}

.sidebar-footer {
  border-top: 1px solid #334155;
  padding-top: 1rem;
  font-size: 0.9rem;
}

.logout-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: color 0.2s;
}

.logout-btn:hover {
  color: #f87171;
}

.admin-info {
  color: #cbd5e1;
}
.wbadmin-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 240px;
  height: 100vh;
  background: #0f172a;
  color: #f1f5f9;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem 1rem;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.sidebar-logo-img {
  width: 36px;
  margin-right: 0.5rem;
}

.sidebar-brand {
  text-decoration: none;
  display: flex;
  align-items: center;
  color: #e2e8f0;
  font-weight: 600;
  font-size: 1rem;
}

.sidebar-brand-text {
  font-size: 0.95rem;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.nav-section {
  margin-bottom: 0.2rem;
}

.nav-section-title {
  color: #64748b;
  font-size: 0.8rem;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  padding-left: 0.4rem;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #e2e8f0;
  text-decoration: none;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.nav-item:hover {
  background: #1e293b;
  color: #38bdf8;
}

.nav-item.active {
  background: #1e293b;
  color: #38bdf8;
}

.sidebar-bottom {
  border-top: 1px solid #334155;
  padding-top: 1rem;
}

.admin-info {
  font-size: 0.9rem;
  color: #94a3b8;
}

.logout-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  margin-top: 0.5rem;
  cursor: pointer;
  transition: color 0.2s;
}

.logout-btn:hover {
  color: #f87171;
}

body.admin .container {
  margin-left: 260px;
}
body.admin {
  display: flex;
  background: #f8fafc;
}

/* Sidebar fix */
.wbadmin-sidebar {
  flex-shrink: 0;
  width: 240px;
}

/* Container principal */
body.admin .container {
  flex: 1;
  padding: 2rem;

  max-width: 100%;
}

/* Cardul principal se Ã®ntinde complet */
body.admin .card {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}
/* === STRUCTURA PRINCIPALÄ‚ === */
body.admin {
  display: flex;
  min-height: 100vh;
  background: #f8fafc;
  overflow-x: hidden;
}

/* === SIDEBAR === */
.wbadmin-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 250px; /* lÄƒÈ›ime clarÄƒ pentru sidebar */
  height: 100vh;
  background: #0f172a;
  color: #f1f5f9;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem 1rem;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.15);
  z-index: 1000;
}

/* === ZONA DE CONÈšINUT === */
body.admin .container {
  margin-left: 250px; /* rezervÄƒm locul pentru sidebar */
  padding: 2rem;
  flex: 1;
  width: calc(100% - 250px);
  box-sizing: border-box;
}



/* === RESPONSIVE === */
@media (max-width: 992px) {
  .wbadmin-sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }
  .wbadmin-sidebar.is-open {
    transform: translateX(0);
  }
  body.admin .container {
    margin-left: 0;
    width: 100%;
    padding: 1.5rem;
  }
}

/* === Stil general pentru tabelul de abonaÈ›i === */
#subs-table {
  width: 100%;
  overflow-x: auto;
}

#subs-table table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
}

/* celulele tabelului */
#subs-table th,
#subs-table td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid #e5e7eb;
  white-space: nowrap;
}

/* antetul tabelului */
#subs-table thead th {
  background: #f9fafb;
  font-weight: 600;
  color: #374151;
  position: sticky;
  top: 0;
  z-index: 1;
}

/* alternare linii */
#subs-table tbody tr:nth-child(even) {
  background: #f8fafc;
}

/* hover */
#subs-table tbody tr:hover {
  background: #f1f5f9;
}

/* casetele aerisite + text care se poate rupe dacÄƒ e nevoie */
#subs-table td {
  white-space: normal;
  word-break: break-word;
}

/* butoanele din coloanÄƒ dreaptÄƒ */
#subs-table td:last-child {
  text-align: right;
  white-space: nowrap;
}

/* dacÄƒ pagina e latÄƒ, ocupÄƒ tot ecranul */
.admin #subs-table,
.admin #subs-table table {
  width: 100%;
  max-width: 100%;
  display: block;
}

/* mic ajustaj pentru aspect responsive */
@media (max-width: 900px) {
  #subs-table th,
  #subs-table td {
    padding: 10px;
  }
}
/* Tabel abonaÈ›i full-width */
#subs-table {
  width: 100%;
  display: block;
  overflow-x: auto;
}

#subs-table table {
  width: 100%;
  min-width: 1100px; /* pÄƒstreazÄƒ proporÈ›iile dacÄƒ ai puÈ›ine coloane */
  border-collapse: collapse;
  border-spacing: 0;
}

/* Celule mai aerisite */
#subs-table th,
#subs-table td {
  padding: 12px 18px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid #e5e7eb;
}

/* LÄƒÈ›imi flexibile pe coloane */
#subs-table th:nth-child(1),
#subs-table td:nth-child(1) { width: 25%; } /* Email */
#subs-table th:nth-child(2),
#subs-table td:nth-child(2) { width: 13%; } /* Telefon */
#subs-table th:nth-child(3),
#subs-table td:nth-child(3) { width: 18%; } /* Nume */
#subs-table th:nth-child(4),
#subs-table td:nth-child(4) { width: 15%; } /* SursÄƒ */
#subs-table th:nth-child(5),
#subs-table td:nth-child(5) { width: 10%; } /* Status */
#subs-table th:nth-child(6),
#subs-table td:nth-child(6) { width: 9%; } /* Creat */
#subs-table th:nth-child(7),
#subs-table td:nth-child(7) { width: 10%; } /* Actualizat */
#subs-table th:nth-child(8),
#subs-table td:nth-child(8) { width: auto; text-align: right; }

/* Permite textului sÄƒ se Ã®ntindÄƒ fÄƒrÄƒ ... */
#subs-table td {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  word-break: break-word;
}

/* AsigurÄƒ cÄƒ È™i containerul din jurul tabelului e full width */
.admin main,
.admin .content,
.admin .page-body {
  width: 100%;
  max-width: none;
  padding: 0 1.5rem;
}
/* logo + text */
.sidebar-logo {
  display: flex;
  align-items: left;
  justify-content: left;
}

/* linkul brandului */
.sidebar-brand {
  display: flex;
  align-items: left;
  gap: 10px;
  text-decoration: none;
}

.btn-icon {
  background: none;
  border: none;
  color: #374151;
  cursor: pointer;
  padding: 8px;
  border-radius: 10px;
  transition: background 0.2s, color 0.2s, transform 0.1s;
}

.btn-icon:hover {
  background: #f1f5f9;
  color: #2563eb;
  transform: scale(1.08);
}

.btn-icon svg {
  display: block;
  width: 22px;
  height: 22px;
  pointer-events: none;
}

/* dark mode */
@media (prefers-color-scheme: dark) {
  .btn-icon {
    color: #d1d5db;
  }
  .btn-icon:hover {
    background: #1f2937;
    color: #60a5fa;
  }
}



.live-error-card {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.3);
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 13px;
  color: #ef4444;
  cursor: pointer;
  transition: all .2s ease;
}
.live-error-card:hover {
  background: rgba(220, 38, 38, 0.2);
}
.live-error-card .dot {
  width: 8px;
  height: 8px;
  background: #ef4444;
  border-radius: 50%;
  box-shadow: 0 0 6px #ef4444aa;
}
.live-error-card.active {
  background: rgba(220,38,38,0.15);
  border-color: rgba(220,38,38,0.5);
}
.toast {
  opacity: 1 !important;
  display: block !important;
}




.offers-table-box {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  margin-top: 24px;
}

.offers-table-box h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
}

.offers-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.offers-table th {
  text-align: left;
  background: #f6f8fa;
  padding: 8px;
  border-bottom: 1px solid #ddd;
  font-weight: 500;
}

.offers-table td {
  padding: 8px;
  border-bottom: 1px solid #eee;
}

.offers-table input,
.offers-table select {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.delete-row {
  background: none;
  border: none;
  color: #ff3b30;
  cursor: pointer;
  font-size: 16px;
}

.add-row-btn {
  margin-top: 10px;
  width: 100%;
  padding: 8px;
  background: #0a74ff;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.add-row-btn:hover {
  background: #0059d4;
}



/* Container principal */
.subs-table {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 16px;
  padding: 2px;
  box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
}

/* Tabelul */
.table {
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
}

/* Header tabel */
.table thead {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: sticky;
  top: 0;
  z-index: 10;
}

.table thead tr th {
  color: #ffffff;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 18px 16px;
  border: none;
  text-align: left;
}

/* Body tabel */
.table tbody {
  background: #ffffff;
}

.table tbody tr {
  transition: all 0.3s ease;
  border-bottom: 1px solid #f0f0f0;
}

.table tbody tr:hover {
  background: linear-gradient(90deg, #f8f9ff 0%, #ffffff 100%);
  transform: translateX(4px);
  box-shadow: -4px 0 0 #667eea inset;
}

.table tbody tr td {
  padding: 16px;
  color: #2d3748;
  font-size: 14px;
  vertical-align: middle;
  border: none;
}



/* Email-uri (bold) */
.table tbody tr td:first-child {
  font-weight: 600;
  color: #1a202c;
}

/* Telefoane (linkuri) */
.table tbody tr td:nth-child(2) a {
  color: #667eea;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-block;
}

.table tbody tr td:nth-child(2) a:hover {
  color: #764ba2;
  transform: translateX(2px);
}

/* Badge-uri status */
.table tbody tr td .badge,
.table tbody tr td [class*="badge"],
.table tbody tr td .status-badge {
  background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  display: inline-block;
  box-shadow: 0 2px 8px rgba(72, 187, 120, 0.3);
}

/* Butoane acÈ›iuni */
.table tbody tr td button,
.table tbody tr td a.btn {
  background: transparent;
  border: 1px solid #e2e8f0;
  color: #718096;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-size: 13px;
  cursor: pointer;
}

.table tbody tr td button:hover,
.table tbody tr td a.btn:hover {
  background: #667eea;
  color: #ffffff;
  border-color: #667eea;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Date */
.table tbody tr td:nth-child(6),
.table tbody tr td:nth-child(7) {
  color: #718096;
  font-size: 13px;
}

/* Bara de cÄƒutare È™i controale */
.search-controls {
  background: #ffffff;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  display: flex;
  gap: 12px;
  align-items: center;
}

.search-controls input[type="text"] {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.search-controls input[type="text"]:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-controls select {
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 14px;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.3s ease;
}

.search-controls select:hover {
  border-color: #667eea;
}

.search-controls button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  border: none;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.search-controls button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Scrollbar personalizat */
.subs-table::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.subs-table::-webkit-scrollbar-track {
  background: #f7fafc;
  border-radius: 10px;
}

.subs-table::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 10px;
}

.subs-table::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* Responsive */
@media (max-width: 768px) {
  .table thead tr th {
    padding: 12px 8px;
    font-size: 11px;
  }
  
  .table tbody tr td {
    padding: 12px 8px;
    font-size: 13px;
  }
}


/* Note Actions */
.sub-note-item {
  position: relative;
  padding: 12px;
  background: #f8f9fc;
  border-radius: 8px;
  margin-bottom: 12px;
  border: 1px solid #e8ecf3;
  transition: all 0.3s ease;
}

.sub-note-item:hover {
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.sub-note-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-weight: 600;
  color: #1e293b;
}

.sub-note-actions {
  display: flex;
  gap: 6px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sub-note-item:hover .sub-note-actions {
  opacity: 1;
}

.btn-note-edit,
.btn-note-delete {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 16px;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.btn-note-edit:hover {
  background: #dbeafe;
}

.btn-note-delete:hover {
  background: #fee2e2;
}

.sub-note-content {
  color: #475569;
  line-height: 1.6;
  margin-bottom: 8px;
}

.sub-note-meta {
  font-size: 12px;
  color: #94a3b8;
}

.sub-note-meta-edited {
  font-size: 11px;
  color: #f59e0b;
  font-style: italic;
  margin-top: 4px;
}

.btn-cancel-edit {
  margin-top: 8px;
  background: #e2e8f0;
  color: #475569;
}

.btn-cancel-edit:hover {
  background: #cbd5e1;
}

.btn-warning {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
}

.pill {
    white-space: nowrap;      /* nu permite textului să treacă pe alt rând */
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

/* =========================================================
   ADMIN RESPONSIVE SYSTEM - Complete Mobile Fix
   
   Breakpoints:
   - Desktop ................ > 992px
   - Tablet ................. 768px - 992px
   - Phone .................. 480px - 767px
   - Small phone ............ < 480px
   ========================================================= */

/* ===========================================
   1. MOBILE HEADER + HAMBURGER MENU
   =========================================== */

/* Container pentru header mobil */
.admin-mobile-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-bottom: 1px solid #e6edf6;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  z-index: 99999;
  padding: 0 16px;
  align-items: center;
  justify-content: space-between;
}

.admin-mobile-header .mobile-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-mobile-header .mobile-logo img {
  height: 32px;
  width: auto;
}

.admin-mobile-header .mobile-logo-text {
  font-weight: 700;
  font-size: 16px;
  color: #0f172a;
}

/* Hamburger Button */
.hamburger-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s;
  gap: 5px;
}

.hamburger-btn:hover {
  background: #f1f5f9;
}

.hamburger-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: #374151;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Hamburger animat când e deschis */
.hamburger-btn.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger-btn.is-open span:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.hamburger-btn.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Overlay pentru mobil */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sidebar-overlay.is-visible {
  display: block;
  opacity: 1;
}

/* ===========================================
   2. SIDEBAR RESPONSIVE - Mobil
   =========================================== */

@media (max-width: 992px) {
  /* Arată header-ul mobil */
  .admin-mobile-header {
    display: flex;
  }

  /* Sidebar devine off-canvas */
  .wbadmin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    padding-top: 20px;
  }

  .wbadmin-sidebar.is-open {
    transform: translateX(0);
  }

  /* Container-ul principal nu mai are margin-left */
  body.admin .container {
    margin-left: 0;
    width: 100%;
    padding-top: 76px; /* Spațiu pentru header-ul mobil */
    padding-left: 16px;
    padding-right: 16px;
  }

  /* Card-ul principal */
  body.admin .card {
    border-radius: 16px;
  }
}

/* ===========================================
   3. TABS RESPONSIVE
   =========================================== */

@media (max-width: 768px) {
  .tabs {
    gap: 2px;
    margin: 0 -16px 16px;
    padding: 0 16px 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Scroll indicator subtle */
    mask-image: linear-gradient(to right, transparent, black 16px, black calc(100% - 16px), transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 16px, black calc(100% - 16px), transparent);
  }

  .tabs::-webkit-scrollbar {
    display: none;
  }

  .tabs .tab {
    flex-shrink: 0;
    padding: 10px 14px;
    font-size: 13px;
    border-radius: 8px;
    white-space: nowrap;
  }
}

/* ===========================================
   4. TOOLBAR RESPONSIVE
   =========================================== */

@media (max-width: 768px) {
  .toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .toolbar .search {
    width: 100%;
    order: 1;
  }

  .toolbar .search .input {
    width: 100%;
  }

  .toolbar .actions,
  .toolbar .toolbar-actions,
  .toolbar > .btn,
  .toolbar > .btn-ghost {
    order: 2;
    width: 100%;
  }

  .toolbar .row {
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }

  .toolbar .row > * {
    width: 100%;
  }
}

/* ===========================================
   5. KPI GRID RESPONSIVE (îmbunătățit)
   =========================================== */

@media (max-width: 767px) {
  .admin .kpi-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .admin .kpi-grid {
    grid-template-columns: 1fr !important;
    gap: 10px;
  }

  .kpi-box {
    padding: 14px;
  }
}

/* ===========================================
   6. TABLES RESPONSIVE (îmbunătățit)
   =========================================== */

/* Wrapper pentru scroll orizontal */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  .table-responsive {
    margin: 0 -16px;
    width: calc(100% + 32px);
    padding: 0 16px;
  }

  /* Dimensiuni mai mici pentru celule */
  .table th,
  .table td {
    padding: 10px 12px;
    font-size: 13px;
  }

  /* Ascunde coloane mai puțin importante */
  .table .hide-mobile {
    display: none !important;
  }
}

/* Card-based layout pentru tabele pe telefon */
@media (max-width: 600px) {
  .table-card-mobile thead {
    display: none;
  }

  .table-card-mobile tbody tr {
    display: block;
    background: #fff;
    border: 1px solid #e6edf6;
    border-radius: 12px;
    margin-bottom: 12px;
    padding: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  }

  .table-card-mobile tbody td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
  }

  .table-card-mobile tbody td:last-child {
    border-bottom: none;
  }

  .table-card-mobile tbody td::before {
    content: attr(data-label);
    font-weight: 600;
    color: #64748b;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
  }
}

/* ===========================================
   7. FORMS RESPONSIVE (îmbunătățit)
   =========================================== */

@media (max-width: 768px) {
  .form-row,
  .admin .row.is-form-2,
  .admin .row.is-form-3,
  .admin .row.is-form-4 {
    grid-template-columns: 1fr !important;
  }

  .form-group {
    margin-bottom: 14px;
  }

  .input,
  .select,
  textarea {
    width: 100%;
    min-height: 44px; /* Touch-friendly */
  }
}

/* ===========================================
   8. BUTTONS RESPONSIVE (îmbunătățit)
   =========================================== */

@media (max-width: 768px) {
  .btn,
  .btn-ghost {
    min-height: 44px;
    padding: 12px 16px;
    font-size: 14px;
  }

  /* Full width buttons în toolbar și acțiuni */
  .actions-full-mobile .btn,
  .actions-full-mobile .btn-ghost {
    width: 100%;
    justify-content: center;
  }

  /* Butoane side-by-side */
  .btn-group-mobile {
    display: flex;
    gap: 8px;
  }

  .btn-group-mobile .btn,
  .btn-group-mobile .btn-ghost {
    flex: 1;
  }
}

/* ===========================================
   9. MODALS RESPONSIVE
   =========================================== */

.modal-content,
.modal-box {
  max-height: 90vh;
  overflow-y: auto;
}

@media (max-width: 768px) {
  .modal-content,
  .modal-box {
    width: calc(100% - 32px) !important;
    max-width: none !important;
    margin: 16px;
    border-radius: 16px;
  }

  /* Modal full screen pe telefon */
  .modal-fullscreen-mobile .modal-content {
    width: 100%;
    height: 100%;
    max-height: 100%;
    margin: 0;
    border-radius: 0;
  }
}

/* ===========================================
   10. CARDS & GRIDS RESPONSIVE
   =========================================== */

/* Two column layout */
@media (max-width: 991px) {
  .two-cols,
  .admin .two-cols,
  .two-cols.sidebar-layout {
    grid-template-columns: 1fr !important;
  }
}

/* ===========================================
   11. PAGE HEADER RESPONSIVE
   =========================================== */

@media (max-width: 768px) {
  .wbpage-head {
    flex-direction: column;
    gap: 12px;
  }

  .wbpage-head-main {
    width: 100%;
  }

  .wbpage-head .section-title {
    font-size: 20px;
  }

  .wbpage-head .actions,
  .wbpage-head > .btn {
    width: 100%;
  }
}

/* ===========================================
   12. SPECIFIC COMPONENTS
   =========================================== */

/* Messages / Inbox */
@media (max-width: 768px) {
  .msg {
    grid-template-columns: 1fr !important;
    gap: 10px;
  }

  .msg-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .msg-actions {
    width: 100%;
    flex-wrap: wrap;
    gap: 8px;
  }

  .msg-actions .btn,
  .msg-actions .btn-ghost {
    flex: 1;
    min-width: calc(50% - 4px);
  }
}

/* User list */
@media (max-width: 768px) {
  .user-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
  }

  .user-info {
    width: 100%;
  }

  .user-actions {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .user-actions .btn,
  .user-actions .btn-ghost {
    flex: 1;
  }
}

/* Website cards */
@media (max-width: 768px) {
  .site-card {
    border-radius: 14px;
  }

  .site-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .site-actions {
    width: 100%;
    display: flex;
    gap: 8px;
  }

  .site-actions .btn-ghost {
    flex: 1;
    justify-content: center;
  }

  .site-kpis {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px;
    padding: 12px;
  }
}

@media (max-width: 480px) {
  .site-kpis {
    grid-template-columns: 1fr !important;
  }
}

/* ===========================================
   13. FILTER BAR RESPONSIVE
   =========================================== */

@media (max-width: 768px) {
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-bar .input,
  .filter-bar .select,
  .filter-bar .btn {
    width: 100%;
  }

  .filter-bar .filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }
}

/* ===========================================
   14. STATS & CHARTS RESPONSIVE
   =========================================== */

@media (max-width: 768px) {
  .stats-row {
    flex-direction: column;
    gap: 12px;
  }

  .stat-box {
    width: 100%;
  }

  .chart-container {
    min-height: 200px;
    margin: 0 -16px;
    width: calc(100% + 32px);
  }
}

/* ===========================================
   15. CALENDAR RESPONSIVE
   =========================================== */

@media (max-width: 768px) {
  #cal-grid {
    margin: 0 -16px;
    padding: 0 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .cal-day {
    min-width: 80px;
    padding: 8px;
    font-size: 12px;
  }
}

/* ===========================================
   16. SUBSCRIBER PANEL RESPONSIVE
   =========================================== */

@media (max-width: 992px) {
  .sub-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 400px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1002;
  }

  .sub-panel.is-open {
    transform: translateX(0);
  }
}

@media (max-width: 480px) {
  .sub-panel {
    max-width: 100%;
  }
}

/* ===========================================
   17. TOASTS & NOTIFICATIONS
   =========================================== */

@media (max-width: 768px) {
  .toast-wrap,
  #toast-container {
    left: 16px !important;
    right: 16px !important;
    top: auto !important;
    bottom: 16px !important;
    transform: none !important;
    width: auto !important;
  }

  .toast {
    width: 100%;
  }
}

/* ===========================================
   18. GDPR WARNING RESPONSIVE
   =========================================== */

@media (max-width: 768px) {
  .gdpr-warning {
    font-size: 12px;
    padding: 10px 14px;
    margin: 0 -8px 16px;
  }
}

/* ===========================================
   19. UTILITY CLASSES
   =========================================== */

/* Hide on mobile */
@media (max-width: 768px) {
  .hide-mobile { display: none !important; }
}

/* Hide on tablet and below */
@media (max-width: 992px) {
  .hide-tablet { display: none !important; }
}

/* Show only on mobile */
@media (min-width: 769px) {
  .show-mobile-only { display: none !important; }
}

/* Stack elements vertically on mobile */
@media (max-width: 768px) {
  .stack-mobile {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .stack-mobile > * {
    width: 100% !important;
  }
}

/* Full width on mobile */
@media (max-width: 768px) {
  .full-mobile { width: 100% !important; }
}

/* ===========================================
   20. SAFE AREA INSETS (iOS)
   =========================================== */

@supports (padding-bottom: env(safe-area-inset-bottom)) {
  @media (max-width: 768px) {
    body.admin .container {
      padding-bottom: calc(16px + env(safe-area-inset-bottom));
    }

    .toast-wrap,
    #toast-container {
      bottom: calc(16px + env(safe-area-inset-bottom)) !important;
    }

    .admin-mobile-header {
      padding-top: env(safe-area-inset-top);
      height: calc(60px + env(safe-area-inset-top));
    }
  }
}

/* ===========================================
   21. LIVE ERROR CARD RESPONSIVE
   =========================================== */

@media (max-width: 768px) {
  .live-error-card {
    font-size: 11px;
    padding: 3px 8px;
  }
}

/* ===========================================
   22. COUNT PILL RESPONSIVE
   =========================================== */

@media (max-width: 768px) {
  .count-pill {
    font-size: 11px;
    padding: 2px 8px;
  }
  
  .subs-stats {
    font-size: 12px;
  }
}

/* ===========================================
   23. PRINT STYLES
   =========================================== */

@media print {
  .admin-mobile-header,
  .wbadmin-sidebar,
  .sidebar-overlay,
  .hamburger-btn {
    display: none !important;
  }

  body.admin .container {
    margin-left: 0;
    padding: 0;
  }
}


@media (max-width: 992px) {
  #subs-table {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  #subs-table th,
  #subs-table td {
    white-space: nowrap !important;  /* IMPORTANT - previne wrap-ul textului */
    min-width: specificat pentru fiecare coloană
  }
}

/* ===========================================
   MOBILE SIDEBAR - FORCE STYLES
   =========================================== */

@media (max-width: 992px) {
  /* Force show mobile header */
  .admin-mobile-header {
    display: flex !important;
  }

  /* Sidebar off-canvas */
  .wbadmin-sidebar {
    transform: translateX(-100%) !important;
    transition: transform 0.3s ease !important;
  }

  .wbadmin-sidebar.is-open {
    transform: translateX(0) !important;
  }

  /* Overlay */
  .sidebar-overlay.is-visible {
    display: block !important;
    opacity: 1 !important;
  }

  /* Container fără margin */
  body.admin .container {
    margin-left: 0 !important;
    padding-top: 76px !important;
  }
}


/* ===========================================
   COLLAPSIBLE SIDEBAR (Desktop)
   =========================================== */

.sidebar-toggle {
  position: absolute;
  top: 20px;
  right: -14px;
  width: 28px;
  height: 28px;
  background: #1e293b;
  border: 2px solid #334155;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1001;
  transition: all 0.2s ease;
}

.sidebar-toggle:hover {
  background: #334155;
  transform: scale(1.1);
}

.sidebar-toggle svg {
  width: 14px;
  height: 14px;
  color: #94a3b8;
  transition: transform 0.3s ease;
}

.wbadmin-sidebar.is-collapsed .sidebar-toggle svg {
  transform: rotate(180deg);
}

.wbadmin-sidebar {
  transition: width 0.3s ease;
}

.wbadmin-sidebar.is-collapsed {
  width: 72px !important;
  padding: 1.5rem 0.5rem;
}

.wbadmin-sidebar.is-collapsed .nav-item {
  justify-content: center;
  padding: 12px;
}

.wbadmin-sidebar.is-collapsed .nav-item span {
  display: none;
}

.wbadmin-sidebar.is-collapsed .nav-section-title {
  display: none;
}

.wbadmin-sidebar.is-collapsed .nav-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  padding: 2px 5px;
  min-width: 16px;
  height: 16px;
  font-size: 9px;
}

.wbadmin-sidebar.is-collapsed .nav-badge svg {
  display: none;
}

.wbadmin-sidebar.is-collapsed .sidebar-chat-btn span:not(.chat-unread-badge) {
  display: none;
}

.wbadmin-sidebar.is-collapsed .sidebar-chat-btn {
  justify-content: center;
  padding: 12px;
  margin: 0 6px 8px;
  width: calc(100% - 12px);
}

.wbadmin-sidebar.is-collapsed .admin-details {
  display: none;
}

.wbadmin-sidebar.is-collapsed .admin-info {
  flex-direction: column;
  gap: 6px;
}

.wbadmin-sidebar.is-collapsed .logout-form {
  margin-left: 0;
}

body.admin .container {
  transition: margin-left 0.3s ease;
}

body.admin.sidebar-collapsed .container {
  margin-left: 72px;
}

@media (max-width: 992px) {
  .sidebar-toggle {
    display: none;
  }
}

/* Nav icon */
.nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-right: 10px;
}

.nav-icon svg {
  width: 18px;
  height: 18px;
}

/* Logo switching */
.sidebar-logo-mark {
  display: none !important;
}

.wbadmin-sidebar.is-collapsed .sidebar-logo-full {
  display: none !important;
}

.wbadmin-sidebar.is-collapsed .sidebar-logo-mark {
  display: block !important;
  width: 36px;
}

/* Collapsed - arată doar iconițele */
.wbadmin-sidebar.is-collapsed .nav-item {
  display: flex;
  justify-content: center;
  padding: 12px;
}

.wbadmin-sidebar.is-collapsed .nav-item span:not(.nav-icon):not(.nav-badge) {
  display: none !important;
}

.wbadmin-sidebar.is-collapsed .nav-icon {
  margin-right: 0 !important;
  display: flex !important;
}

/* Animație elegantă pentru text la expand */
.nav-item {
  display: flex;
  align-items: center;
  overflow: hidden;
}

.nav-item span:not(.nav-icon):not(.nav-badge) {
  white-space: nowrap;
  opacity: 1;
  transition: opacity 0.2s ease 0.1s;
}

.wbadmin-sidebar.is-collapsed .nav-item span:not(.nav-icon):not(.nav-badge) {
  opacity: 0;
  transition: opacity 0.1s ease;
}

/* Chat button animație */
.sidebar-chat-btn {
  overflow: hidden;
}

.sidebar-chat-btn span:not(.chat-unread-badge) {
  white-space: nowrap;
  opacity: 1;
  transition: opacity 0.2s ease 0.1s;
}

.wbadmin-sidebar.is-collapsed .sidebar-chat-btn span:not(.chat-unread-badge) {
  opacity: 0;
  width: 0;
  transition: opacity 0.1s ease, width 0.1s ease;
}

/* Admin details animație */
.admin-details {
  overflow: hidden;
  opacity: 1;
  transition: opacity 0.2s ease 0.1s;
}

.wbadmin-sidebar.is-collapsed .admin-details {
  opacity: 0;
  width: 0;
  transition: opacity 0.1s ease;
}

/* Section title animație */
.nav-section-title {
  overflow: hidden;
  white-space: nowrap;
  opacity: 1;
  transition: opacity 0.2s ease 0.1s;
}

.wbadmin-sidebar.is-collapsed .nav-section-title {
  opacity: 0;
  height: 0;
  margin: 0;
  padding: 0;
  transition: opacity 0.1s ease;
}

/* Chat button collapsed - fix */
.wbadmin-sidebar.is-collapsed .sidebar-chat-btn {
  width: 48px;
  height: 48px;
  padding: 0;
  margin: 0 auto 8px;
  border-radius: 12px;
  justify-content: center;
  align-items: center;
  position: relative;
}

.wbadmin-sidebar.is-collapsed .sidebar-chat-btn svg {
  margin: 0;
}

.wbadmin-sidebar.is-collapsed .chat-unread-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  margin: 0;
}

/* Admin info collapsed - fix */
.wbadmin-sidebar.is-collapsed .sidebar-bottom {
  padding: 0 4px;
}

.wbadmin-sidebar.is-collapsed .admin-info {
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 8px 4px;
  margin: 8px 4px;
}

.wbadmin-sidebar.is-collapsed .admin-profile-link {
  padding: 0;
  margin: 0;
  justify-content: center;
}

.wbadmin-sidebar.is-collapsed .admin-avatar {
  width: 36px;
  height: 36px;
  min-width: 36px;
}

.wbadmin-sidebar.is-collapsed .logout-form {
  margin: 0;
}

.wbadmin-sidebar.is-collapsed .logout-btn {
  padding: 8px;
  display: flex;
  justify-content: center;
}

/* Chat button collapsed - corect */
.wbadmin-sidebar.is-collapsed .sidebar-chat-btn {
  width: 44px !important;
  height: 44px !important;
  min-height: 44px;
  padding: 0 !important;
  margin: 0 auto 10px !important;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.wbadmin-sidebar.is-collapsed .sidebar-chat-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.wbadmin-sidebar.is-collapsed .chat-unread-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: 10px;
}

/* Admin section collapsed - compact */
.wbadmin-sidebar.is-collapsed .sidebar-bottom {
  padding: 0;
}

/* Chat button collapsed */
.wbadmin-sidebar.is-collapsed .sidebar-chat-btn {
  width: 44px !important;
  height: 44px !important;
  padding: 0 !important;
  margin: 0 auto 10px !important;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: visible !important;
}

.wbadmin-sidebar.is-collapsed .chat-unread-badge {
  position: absolute;
  top: -6px;
  right: -6px;
}

/* Admin section collapsed - fără background */
.wbadmin-sidebar.is-collapsed .admin-info {
  background: transparent !important;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  margin: 0;
}

.wbadmin-sidebar.is-collapsed .admin-profile-link {
  padding: 0;
  margin: 0;
}

.wbadmin-sidebar.is-collapsed .admin-avatar {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 10px;
}

.wbadmin-sidebar.is-collapsed .logout-form {
  margin: 0;
}

/* Chat panel - poziție relativă la sidebar */
.chat-panel {
  transition: left 0.3s ease;
}

/* Când sidebar e collapsed, chat-ul se mută */
body.sidebar-collapsed .chat-panel {
  left: 72px !important;
}

/* Sau dacă chat-ul e poziționat fix */
.wbadmin-sidebar.is-collapsed ~ .chat-panel,
.wbadmin-sidebar.is-collapsed + .chat-panel {
  left: 72px !important;
}

/* Logo collapsed - fix poziție */
.wbadmin-sidebar.is-collapsed .sidebar-logo {
  display: flex;
  justify-content: center;
  padding: 0;
  margin-bottom: 1rem;
}

.wbadmin-sidebar.is-collapsed .sidebar-brand {
  display: flex;
  justify-content: center;
}

.wbadmin-sidebar.is-collapsed .sidebar-logo-mark {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

/* Toggle button - mutăm mai jos să nu se suprapună cu logo */
.wbadmin-sidebar.is-collapsed .sidebar-toggle {
  top: 14px;
  right: -14px;
}

/* ─── Page Header ─── */
.wbpage-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    padding: 28px 32px;
    margin-bottom: 28px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

.wbpage-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 6px;
    display: flex;
    align-items: center;
    gap: 12px;
}


.wbpage-subtitle {
    color: #64748b;
    font-size: 0.95rem;
    margin: 0;
}
