/* ==========================================================================
   components.css — UI Components · MyClubCar Default Theme
   Secțiuni:
   01. Breadcrumb
   02. Sidebar internals (logo, user, nav, footer)
   03. Topbar internals (breadcrumb, buttons, notif)
   04. Page header
   05. Stat cards
   06. Card
   07. Side card
   08. Table (qt — quote table)
   09. Table toolbar (tbl-toolbar, tbl-search, tbl-filter)
   10. Status badges
   11. Generic badges (pbadge, badge-*)
   12. Buttons
   13. Modal
   14. Forms (form-*, fg-*)
   15. Notices / Alerts
   16. Tab navigation
   17. Empty state
   18. Footer
   ========================================================================== */


/* ==========================================================================
   01. BREADCRUMB
   ========================================================================== */

.bc { display: flex; align-items: center; gap: 7px; font-size: .8rem; color: var(--text-3); }
.bc a { color: var(--text-3); transition: color var(--t); }
.bc a:hover { color: var(--text-1); }
.bc-sep { color: var(--border-dark); font-size: .9rem; }
.bc-cur { font-size: .85rem; font-weight: 700; color: var(--text-1); }


/* ==========================================================================
   02. SIDEBAR INTERNALS
   ========================================================================== */

/* Logo */
.sb-logo { padding: 22px 20px 18px; border-bottom: 1px solid rgba(255,255,255,.06); flex-shrink: 0; }
.sb-logo a { display: flex; align-items: center; gap: 10px; }
.sb-logo-mark {
  width: 32px; height: 32px;
  background: var(--brand);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.sb-logo-mark svg { width: 18px; height: 18px; fill: #fff; }
.sb-logo-text { font-size: .9rem; font-weight: 800; color: #fff; letter-spacing: -.02em; line-height: 1.1; }
.sb-logo-text em { display: block; font-style: normal; font-size: .6rem; font-weight: 400; color: rgba(255,255,255,.3); letter-spacing: .06em; text-transform: uppercase; }

/* Admin badge */
.sb-admin-badge {
  margin: 8px 14px;
  padding: 4px 10px;
  background: rgba(175,129,92,.1);
  border: 1px solid rgba(175,129,92,.22);
  border-radius: 6px;
  font-size: .6rem; font-weight: 800;
  color: var(--brand);
  letter-spacing: .1em; text-transform: uppercase;
  text-align: center; flex-shrink: 0;
}

/* User block */
.sb-user {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
}
.sb-av {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-h) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: .68rem; font-weight: 800; color: #fff; letter-spacing: .03em;
  box-shadow: 0 0 0 2.5px rgba(175,129,92,.25), 0 0 0 4px rgba(175,129,92,.1);
}
.sb-uname { font-size: .82rem; font-weight: 700; color: #e8eaf0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-urole { font-size: .67rem; color: rgba(255,255,255,.28); margin-top: 1px; }
.sb-ucomp { font-size: .65rem; color: rgba(255,255,255,.22); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Nav sections */
.sb-sec {
  font-size: .58rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.2);
  padding: 14px 18px 4px;
}

/* Nav links */
.sb-a {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 16px;
  font-size: .8rem; font-weight: 500;
  color: rgba(255,255,255,.4);
  border-left: 2px solid transparent;
  transition: all var(--t);
  position: relative;
}
.sb-a:hover { color: rgba(255,255,255,.75); background: rgba(255,255,255,.04); }
.sb-a.on { color: var(--brand); border-left-color: var(--brand); background: rgba(175,129,92,.08); font-weight: 600; }
.sb-a svg { width: 16px; height: 16px; flex-shrink: 0; stroke: currentColor; fill: none; opacity: .8; }
.sb-a.on svg { opacity: 1; }
.sb-a-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.sb-a-ro { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-a-en { font-size: .6rem; opacity: .35; font-weight: 400; margin-top: .5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-a.on .sb-a-en { opacity: .55; color: var(--brand); }

/* Nav badges */
.sb-badge {
  font-size: .58rem; font-weight: 800;
  background: rgba(255,255,255,.08); color: rgba(255,255,255,.4);
  border-radius: 20px; padding: 1px 6px; flex-shrink: 0;
}
.sb-badge-warn { background: rgba(245,158,11,.15); color: #f59e0b; }
.sb-a.on .sb-badge { background: var(--brand-light); color: var(--brand); }

/* Sidebar footer */
.sb-foot { border-top: 1px solid rgba(255,255,255,.06); padding: 6px 0; flex-shrink: 0; }
.sb-foot-version { padding: 6px 18px 4px; font-size: .58rem; color: rgba(255,255,255,.15); }

/* Logout button */
.sb-out {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 16px;
  font-size: .8rem; color: rgba(255,255,255,.3);
  border-left: 2px solid transparent;
  transition: all var(--t);
  cursor: pointer;
  background: none; border-right: none; border-top: none; border-bottom: none; width: 100%;
}
.sb-out:hover { color: #f87171; background: rgba(248,113,113,.07); }
.sb-out svg { width: 16px; height: 16px; flex-shrink: 0; stroke: currentColor; fill: none; }

/* Language selector in sidebar */
.sb-lang { padding: 6px 16px 10px; display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.sb-lang-lbl { font-size: .62rem; color: rgba(255,255,255,.2); text-transform: uppercase; letter-spacing: .08em; }


/* ==========================================================================
   03. TOPBAR INTERNALS
   ========================================================================== */

.tb-right { display: flex; align-items: center; gap: 8px; }

/* Notification button */
.notif-wrap { position: relative; }

.btn-notif {
  width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--border);
  background: var(--surface); display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all var(--t); position: relative; flex-shrink: 0;
}
.btn-notif:hover { background: var(--bg); border-color: var(--border-dark); }
.btn-notif svg { width: 17px; height: 17px; stroke: var(--text-2); fill: none; }
.btn-notif.has-notif svg { stroke: var(--text-1); }

/* Badge număr notificări */
.notif-badge {
  position: absolute; top: -5px; right: -5px;
  min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 9px; font-size: .6rem; font-weight: 700; line-height: 17px;
  background: var(--blue); color: #fff;
  border: 1.5px solid var(--surface);
  pointer-events: none;
}
.notif-badge.urgent { background: var(--red); }

/* Dropdown notificări */
.notif-drop {
  display: none; position: absolute; top: calc(100% + 8px); right: 0;
  width: 320px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.1); z-index: var(--z-dropdown, 100);
  overflow: hidden;
}
.notif-drop.open { display: block; }

.notif-drop-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-bottom: 1px solid var(--border);
}
.notif-drop-title { font-size: .8rem; font-weight: 700; color: var(--text-1); }
.notif-drop-cnt   { font-size: .72rem; color: var(--text-3); }

.notif-list { max-height: 340px; overflow-y: auto; }

.notif-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 11px 16px; border-bottom: 1px solid var(--border);
  transition: background var(--t); text-decoration: none; color: inherit;
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: var(--bg); }
.notif-item.urgent { background: rgba(239,68,68,.04); }
.notif-item.urgent:hover { background: rgba(239,68,68,.08); }

/* card-ico în notif-item moștenește stilurile globale card-ico */
.notif-item-ico { flex-shrink: 0; }
.notif-item-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.notif-item-label { font-size: .79rem; font-weight: 600; color: var(--text-1); line-height: 1.35; }
.notif-item-sub   { font-size: .72rem; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Indicator urgent — diferențiere non-color (punct + border stânga) */
.notif-item.urgent { border-left: 2px solid var(--red); }
.notif-item:not(.urgent) { border-left: 2px solid transparent; }
.notif-item-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--red); flex-shrink: 0; margin-top: 4px;
  box-shadow: 0 0 0 2px rgba(239,68,68,.18);
}

.notif-empty {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 32px 16px; color: var(--text-3); font-size: .8rem;
}
.notif-empty svg { width: 28px; height: 28px; opacity: .3; }

.notif-drop-foot {
  display: flex; gap: 0; border-top: 1px solid var(--border);
}
.notif-drop-foot a {
  flex: 1; text-align: center; padding: 9px 8px;
  font-size: .72rem; color: var(--text-3); transition: all var(--t);
  border-right: 1px solid var(--border);
}
.notif-drop-foot a:last-child { border-right: none; }
.notif-drop-foot a:hover { background: var(--bg); color: var(--brand); }

/* Dot legacy — păstrat pentru compatibilitate */
.notif-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--red);
  position: absolute; top: 8px; right: 8px;
  border: 1.5px solid var(--surface);
}

/* Small topbar link */
.btn-topbar-sm {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .72rem; color: var(--text-3); border: 1px solid var(--border);
  padding: 6px 11px; border-radius: 7px; transition: all var(--t); white-space: nowrap;
  background: var(--surface);
}
.btn-topbar-sm:hover { color: var(--text-1); border-color: var(--border-dark); background: var(--bg); }
.btn-topbar-sm svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2; }

/* Admin link (client topbar) */
.btn-admin {
  font-size: .72rem; color: var(--text-3); border: 1px solid var(--border);
  padding: 6px 11px; border-radius: 7px; transition: all var(--t);
  display: inline-flex; align-items: center; gap: 5px;
}
.btn-admin:hover { color: var(--text-1); border-color: var(--border-dark); }

/* Primary "new" button in topbar */
/* btn-new — see patch section for canonical definition */


/* ==========================================================================
   04. PAGE HEADER
   ========================================================================== */

.pg-hd { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; }
.pg-hd-actions { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.pg-hd-left { min-width: 0; }
.pg-title { font-size: 1.5rem; font-weight: 800; color: var(--text-1); letter-spacing: -.03em; margin-bottom: 3px; }
.pg-title em { font-style: normal; color: var(--brand); }
/* .pg-welcome is an alias used in dashboard pages */
.pg-welcome { font-size: 1.5rem; font-weight: 800; color: var(--text-1); letter-spacing: -.03em; margin-bottom: 3px; }
.pg-welcome em { font-style: normal; color: var(--brand); }
.pg-sub { font-size: .82rem; color: var(--text-3); }
.pg-meta { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: .78rem; color: var(--text-3); }
.pg-meta-sep { color: var(--border-dark); }
.pg-main { display: flex; flex-direction: column; gap: 18px; }


/* ==========================================================================
   05. STAT CARDS
   ========================================================================== */

/* ══ STATS ROW (Dashboard) ═══════════════════════════════════════════════ */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 24px; }

.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  padding: 18px 20px;
  display: flex; align-items: center; gap: 15px;
  transition: box-shadow .15s, transform .15s;
  cursor: default;
}
.stat:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }

.stat-ico {
  width: 44px; height: 44px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.stat-ico svg { width: 21px; height: 21px; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Color variants for stat icons */
.stat-ico.blue   { background: var(--blue-bg);    } .stat-ico.blue   svg { stroke: var(--blue); }
.stat-ico.gold   { background: var(--brand-light); } .stat-ico.gold   svg { stroke: var(--brand); }
.stat-ico.green  { background: var(--green-bg);   } .stat-ico.green  svg { stroke: var(--green); }
.stat-ico.amber  { background: var(--amber-bg);   } .stat-ico.amber  svg { stroke: var(--amber); }
.stat-ico.red    { background: var(--red-bg);     } .stat-ico.red    svg { stroke: var(--red); }
.stat-ico.violet { background: var(--violet-bg);  } .stat-ico.violet svg { stroke: var(--violet); }
.stat-ico.cyan   { background: var(--cyan-bg);    } .stat-ico.cyan   svg { stroke: var(--cyan); }
.stat-ico.orange { background: #fff7ed;            } .stat-ico.orange svg { stroke: #f97316; }

.stat-n { font-size: 1.85rem; font-weight: 800; line-height: 1; background: transparent; }
.stat-n.blue   { color: var(--blue); }
.stat-n.gold   { color: var(--brand); }
.stat-n.green  { color: var(--green); }
.stat-n.amber  { color: var(--amber); }
.stat-n.red    { color: var(--red); }
.stat-n.violet { color: var(--violet); }
.stat-n.cyan   { color: var(--cyan); }
.stat-n.orange { color: #f97316; }

.stat-label { font-size: .72rem; color: var(--text-2); font-weight: 500; margin-top: 2px; }
.stat-trend { font-size: .65rem; color: var(--text-3); margin-top: 3px; }
.stat-trend.up   { color: var(--green); }
.stat-trend.warn { color: var(--amber); }


/* ==========================================================================
   06. CARD
   ========================================================================== */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.card:last-child { margin-bottom: 0; }

.card-head {
  padding: 16px 20px 13px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.card-head-l { display: flex; align-items: center; gap: 11px; }

.card-ico {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--brand-light);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.card-ico svg { width: 16px; height: 16px; stroke: var(--brand); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card-ico.blue   { background: var(--blue-bg);    } .card-ico.blue   svg { stroke: var(--blue); }
.card-ico.green  { background: var(--green-bg);   } .card-ico.green  svg { stroke: var(--green); }
.card-ico.amber  { background: var(--amber-bg);   } .card-ico.amber  svg { stroke: var(--amber); }
.card-ico.red    { background: var(--red-bg);     } .card-ico.red    svg { stroke: var(--red); }
.card-ico.violet { background: var(--violet-bg);  } .card-ico.violet svg { stroke: var(--violet); }
.card-ico.cyan   { background: var(--cyan-bg);    } .card-ico.cyan   svg { stroke: var(--cyan); }

.card-title    { font-size: .93rem; font-weight: 700; color: var(--text-1); }
.card-title-en { font-size: .67rem; color: var(--text-4); font-weight: 500; letter-spacing: .04em; text-transform: uppercase; margin-top: 2px; }
.card-badge    { background: var(--bg); color: var(--text-2); border: 1px solid var(--border); border-radius: 20px; padding: 2px 9px; font-size: .7rem; font-weight: 700; }
.card-body     { padding: 20px; }


/* ==========================================================================
   07. SIDE CARD  (coloana dreapta din grid-main)
   ========================================================================== */

.side-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  overflow: hidden;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}
.side-card:last-child { margin-bottom: 0; }

.side-head {
  padding: 14px 18px 12px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
}
.side-head-title { font-size: .88rem; font-weight: 700; color: var(--text-1); }
.side-head-en    { font-size: .63rem; color: var(--text-4); font-weight: 500; letter-spacing: .04em; text-transform: uppercase; margin-top: 2px; }


/* ==========================================================================
   08. TABLE  (qt — universal table)
   ========================================================================== */

.qt { width: 100%; border-collapse: collapse; }
.qt thead tr { border-bottom: 1px solid var(--border); }
.qt th {
  font-size: .67rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-3); padding: 10px 16px; text-align: left; white-space: nowrap;
}
.qt td { padding: 11px 16px; border-bottom: 1px solid #f0f3f7; font-size: .8rem; vertical-align: middle; }
.qt tbody tr:last-child td { border-bottom: none; }
.qt tbody tr:hover td { background: #fafbfd; }

/* Table cell helpers */
.qt-id    { font-family: var(--font-mono); font-size: .75rem; font-weight: 600; color: var(--text-2); }
.qt-name  { font-weight: 700; color: var(--text-1); }
.qt-sub   { font-size: .7rem; color: var(--text-3); margin-top: 1px; }
.qt-date  { color: var(--text-2); white-space: nowrap; }
.qt-price { font-family: var(--font-mono); font-weight: 700; color: var(--text-1); white-space: nowrap; }
.td-sku   { font-family: var(--font-mono); font-size: .74rem; color: var(--text-2); }

/* Product thumb in table */
.prod-thumb {
  width: 56px; height: 40px; border-radius: 7px;
  background: var(--bg); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; flex-shrink: 0;
}
.prod-thumb img { width: 100%; height: 100%; object-fit: cover; }
.prod-thumb svg { width: 18px; height: 18px; stroke: var(--text-4); fill: none; }

.prod-name    { font-weight: 700; color: var(--text-1); }
.prod-variant { font-size: .71rem; color: var(--text-3); margin-top: 2px; }
.prod-sku     { font-family: var(--font-mono); font-size: .74rem; color: var(--text-2); }

/* Table action buttons */

/* Table footer info row */
.tbl-foot {
  padding: 12px 18px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg);
  font-size: .75rem; color: var(--text-3);
}
.tbl-foot a { color: var(--brand); font-weight: 600; }


/* ==========================================================================
   09. TABLE TOOLBAR — canonical: secțiunea 20
   ========================================================================== */

/* ==========================================================================
   10. STATUS BADGES  (qt-status)
   ========================================================================== */

.qt-status {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 6px;
  font-size: .68rem; font-weight: 700; white-space: nowrap;
}
.qt-status::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: currentColor; flex-shrink: 0;
}

.st-accepted { background: var(--green-bg);  color: #059669; }
.st-pending  { background: var(--amber-bg);  color: #d97706; }
.st-order    { background: var(--blue-bg);   color: var(--blue); }
.st-draft    { background: var(--bg);        color: var(--text-3); }
.st-sent     { background: var(--violet-bg); color: var(--violet); }
.st-risk     { background: var(--red-bg);    color: var(--red); }
.st-ok       { background: var(--green-bg);  color: #059669; }
.st-rejected { background: var(--red-bg);    color: var(--red); }
.st-expired  { background: var(--bg);        color: var(--text-3); border: 1px solid var(--border); }
.td-status   { white-space: nowrap; }


/* ==========================================================================
   11. GENERIC BADGES
   ========================================================================== */

/* pbadge — catalog / public pages */
.pbadge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px; border-radius: 5px;
  font-size: .66rem; font-weight: 700; white-space: nowrap;
}
.pbadge-blue  { background: var(--blue-bg);    color: #1d4ed8; }
.pbadge-green { background: var(--green-bg);   color: #059669; }
.pbadge-gray  { background: var(--bg);         color: var(--text-2); border: 1px solid var(--border); }
.pbadge-brand { background: var(--brand-light); color: var(--brand-h); }

/* Table inline badges */
.badge-fam     { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 5px; font-size: .65rem; font-weight: 700; white-space: nowrap; background: var(--blue-bg); color: var(--blue); }
.badge-active  { background: var(--green-bg); color: #059669; font-size: .65rem; font-weight: 700; padding: 2px 8px; border-radius: 5px; white-space: nowrap; }
.badge-inactive { background: var(--bg); color: var(--text-3); border: 1px solid var(--border); font-size: .65rem; font-weight: 700; padding: 2px 7px; border-radius: 5px; white-space: nowrap; }
.badge-street  { background: var(--blue-bg); color: var(--blue); font-size: .63rem; font-weight: 700; padding: 2px 7px; border-radius: 5px; white-space: nowrap; }

/* family-label — grupare vizuală în tabele */
.family-label      { display: flex; align-items: center; gap: 8px; }
.family-label-line { flex: 1; height: 1px; background: var(--border); }
.family-label-name { font-size: .65rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); white-space: nowrap; }
.family-label-count { font-size: .63rem; color: var(--text-4); }


/* ==========================================================================
   12. BUTTONS
   ========================================================================== */

/* Base */
.btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 13px; border-radius: 8px;
  font-size: .76rem; font-weight: 700; font-family: var(--font-base);
  cursor: pointer; transition: all var(--t); border: none; white-space: nowrap;
}
.btn svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Variants */
.btn-brand   { background: var(--brand);      color: #fff; }
.btn-brand:hover { background: var(--brand-h); }

.btn-outline { background: transparent; color: var(--text-2); border: 1px solid var(--border); }
.btn-outline:hover { background: var(--bg); border-color: var(--border-dark); color: var(--text-1); }

.btn-ghost { background: transparent; color: var(--text-3); border: 1px solid transparent; padding: 5px 10px; font-size: .72rem; }
.btn-ghost:hover { color: var(--text-1); background: var(--bg); }

.btn-ghost-sm { background: transparent; color: var(--text-3); border: 1px solid var(--border); padding: 4px 9px; font-size: .7rem; border-radius: 7px; font-family: var(--font-base); cursor: pointer; transition: all var(--t); }
.btn-ghost-sm:hover { color: var(--text-1); background: var(--bg); border-color: var(--border-dark); }

/* Icon-only button */
.btn-ico {
  width: 30px; height: 30px; border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); background: var(--surface);
  cursor: pointer; transition: all var(--t); flex-shrink: 0;
  color: var(--text-2);
}
.btn-ico:hover { background: var(--bg); border-color: var(--border-dark); }
.btn-ico.danger:hover { background: var(--red-bg); border-color: #fca5a5; color: var(--red); }
.btn-ico svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Dashed add button (full-width) */
.btn-add-full {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; padding: 8px 14px; border-radius: 8px;
  font-size: .76rem; font-weight: 700; font-family: var(--font-base);
  background: transparent; color: var(--text-3);
  border: 1px dashed var(--border-dark);
  cursor: pointer; transition: all var(--t);
}
.btn-add-full:hover { background: var(--bg); color: var(--brand); border-color: var(--brand); }
.btn-add-full svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2.5; }

/* Auth page full-width buttons */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--brand); color: #fff;
  border: none; border-radius: 10px;
  padding: 9px 18px;
  font-size: .82rem; font-weight: 700; font-family: var(--font-base);
  cursor: pointer; transition: all var(--t);
  box-shadow: 0 2px 10px rgba(175,129,92,.35);
  white-space: nowrap;
}
.btn-primary:hover { background: var(--brand-h); box-shadow: 0 4px 16px rgba(175,129,92,.45); transform: translateY(-1px); }
.btn-primary svg { width: 16px; height: 16px; stroke: #fff; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: transparent; color: var(--text-2);
  border: 1.5px solid var(--border); border-radius: 10px;
  padding: 9px 18px;
  font-size: .82rem; font-weight: 600; font-family: var(--font-base);
  cursor: pointer; transition: all var(--t);
  white-space: nowrap;
}
.btn-secondary:hover { border-color: var(--border-dark); color: var(--text-1); background: var(--bg); }

/* Danger button */
.btn-danger {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 8px;
  font-size: .8rem; font-weight: 700; font-family: var(--font-base);
  background: var(--red-bg); color: var(--red);
  border: 1px solid #fca5a5; cursor: pointer; transition: all var(--t);
}
.btn-danger:hover { background: var(--red); color: #fff; border-color: var(--red); }

.back-link { display: block; text-align: center; margin-top: 18px; font-size: .8rem; color: var(--text-3); transition: color var(--t); }
.back-link:hover { color: var(--brand); }


/* ==========================================================================
   13. MODAL
   ========================================================================== */

/* Overlay */
.modal-overlay {
  display: none;
  position: fixed; inset: 0;
  z-index: var(--z-modal-bg);
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(4px);
  align-items: center; justify-content: center;
}
.modal-overlay.open { display: flex; }

/* Container */
.modal {
  background: var(--surface);
  border-radius: var(--r3);
  box-shadow: 0 24px 80px rgba(0,0,0,.25);
  width: 100%; max-width: 520px;
  overflow: hidden;
  position: relative;
  z-index: var(--z-modal);
}

.modal-head {
  padding: 18px 22px 16px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg);
}
.modal-title { font-size: .95rem; font-weight: 800; color: var(--text-1); }
.modal-close {
  width: 28px; height: 28px; border-radius: 7px;
  border: 1px solid var(--border);
  background: var(--surface); color: var(--text-3);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all var(--t);
  font-family: var(--font-base); font-size: 1.1rem; line-height: 1;
}
.modal-close:hover { background: var(--red-bg); color: var(--red); border-color: #fca5a5; }
.modal-body { padding: 22px; }
.modal-foot {
  padding: 14px 22px;
  border-top: 1px solid var(--border);
  background: var(--bg);
  display: flex; align-items: center; justify-content: flex-end; gap: 8px;
}


/* ==========================================================================
   14. FORMS
   ========================================================================== */

/* Form card (inline expand) */
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: none;
}
.form-card.open { display: block; }

.form-card-head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg);
}
.form-card-title { font-size: .95rem; font-weight: 800; color: var(--text-1); }
.form-card-sub   { font-size: .72rem; color: var(--text-3); margin-top: 2px; }
.form-body  { padding: 24px; }

/* Section divider in form */
.form-sec {
  font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-3); margin: 0 0 14px;
  padding-bottom: 8px; border-bottom: 1px solid var(--border);
}

/* Form group (label + input) */
.fg { margin-bottom: 14px; }
.fg:last-child { margin-bottom: 0; }
.fg label { display: block; font-size: .76rem; font-weight: 600; color: var(--text-2); margin-bottom: 5px; }
.fg input, .fg select, .fg textarea {
  width: 100%; padding: 8px 11px;
  border: 1px solid var(--border); border-radius: 8px;
  font-size: .82rem; font-family: var(--font-base); color: var(--text-1);
  background: var(--surface); outline: none; transition: border-color var(--t);
}
.fg input:focus, .fg select:focus, .fg textarea:focus { border-color: var(--brand); }
.fg input::placeholder, .fg textarea::placeholder { color: var(--text-4); }
.fg textarea { resize: vertical; min-height: 72px; }
.fg-hint { font-size: .68rem; color: var(--text-3); margin-top: 4px; }
.fg-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fg-3col { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }

/* Standardized form group (C2 variant) */
.form-section { margin-bottom: 20px; }
.form-section:last-child { margin-bottom: 0; }
.form-section-hd {
  display: flex; align-items: center; gap: 8px;
  font-size: .7rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--text-3); margin-bottom: 14px;
  padding-bottom: 8px; border-bottom: 1px solid var(--border);
}
.form-section-hd svg { width: 13px; height: 13px; stroke: var(--text-3); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.form-row { display: grid; gap: 14px; margin-bottom: 14px; }
.form-row.cols-2 { grid-template-columns: 1fr 1fr; }
.form-row.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.form-row.cols-full { grid-template-columns: 1fr; }
.form-row:last-child { margin-bottom: 0; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-label { font-size: .76rem; font-weight: 600; color: var(--text-2); }
.form-label .req { color: var(--red); margin-left: 2px; }
.form-hint { font-size: .68rem; color: var(--text-3); margin-top: 2px; }
.form-control {
  height: 38px; padding: 0 12px;
  border: 1.5px solid var(--border); border-radius: 8px;
  font-size: .83rem; font-family: var(--font-base);
  background: var(--surface); color: var(--text-1);
  transition: border-color var(--t), box-shadow var(--t);
  outline: none;
}
.form-control:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(175,129,92,.12); }
.form-control::placeholder { color: var(--text-4); }
.form-control.mono { font-family: var(--font-mono); font-size: .8rem; letter-spacing: .04em; }
select.form-control { cursor: pointer; }
textarea.form-control { height: auto; padding: 10px 12px; resize: vertical; min-height: 80px; }


/* Radio group */
.radio-group { display: flex; gap: 12px; flex-wrap: wrap; }
.radio-label {
  display: flex; align-items: center; gap: 8px;
  cursor: pointer; font-size: .83rem;
  padding: 8px 14px; border: 1.5px solid var(--border); border-radius: 8px;
  transition: all var(--t);
}
.radio-label:hover { border-color: var(--brand); background: var(--brand-light); }
.radio-label input[type=radio] { accent-color: var(--brand); }
.radio-label.checked { border-color: var(--brand); background: var(--brand-light); font-weight: 600; color: var(--brand); }

/* Toggle / Checkbox item */
.toggle-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 16px; border: 1.5px solid var(--border); border-radius: 10px;
  cursor: pointer; transition: all var(--t); margin-bottom: 10px;
}
.toggle-item:last-child { margin-bottom: 0; }
.toggle-item:hover { border-color: var(--brand); background: rgba(175,129,92,.03); }
.toggle-item.checked { border-color: var(--brand); background: rgba(175,129,92,.05); }
.toggle-check { margin-top: 2px; accent-color: var(--brand); flex-shrink: 0; width: 15px; height: 15px; }
.toggle-lbl  { font-size: .85rem; font-weight: 600; color: var(--text-1); }
.toggle-desc { font-size: .76rem; color: var(--text-2); margin-top: 3px; }

/* Actions row at bottom of form-card */
.form-actions {
  display: flex; align-items: center; justify-content: flex-end; gap: 8px;
  padding: 14px 20px; border-top: 1px solid var(--border); background: var(--bg);
}


/* ==========================================================================
   15. NOTICES / ALERTS
   ========================================================================== */

/* Inline notice (small, within content) */
.notice {
  padding: 12px 14px; border-radius: 10px;
  font-size: .8rem; margin-bottom: 16px;
  display: flex; align-items: flex-start; gap: 10px; line-height: 1.55;
}
.notice svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 1px; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.notice-amber   { background: var(--amber-bg); color: #92400e; border: 1px solid #fde68a; }
.notice-amber svg { stroke: var(--amber); }
.notice-info    { background: var(--blue-bg);  color: #1d4ed8; border: 1px solid #bfdbfe; }
.notice-info svg { stroke: var(--blue); }
.notice-error   { background: var(--red-bg);   color: #991b1b; border: 1px solid #fca5a5; }
.notice-error svg { stroke: var(--red); }
.notice-success { background: var(--green-bg); color: #065f46; border: 1px solid #6ee7b7; }
.notice-success svg { stroke: var(--green); }
.notice-warn    { background: var(--amber-bg); color: #92400e; border: 1px solid #fde68a; }
.notice-warn svg { stroke: var(--amber); }

/* Page-level warning alert (admin, larger) */
.alert-warn {
  display: flex; align-items: flex-start; gap: 12px;
  background: #fffbeb; border: 1px solid #fde68a; border-radius: var(--r);
  padding: 12px 16px; margin-bottom: 22px;
  font-size: .8rem; color: #92400e;
}
.alert-warn svg { width: 18px; height: 18px; stroke: #f59e0b; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; margin-top: 1px; }
.alert-warn strong { font-weight: 700; }
.alert-links { margin-top: 5px; display: flex; gap: 8px; flex-wrap: wrap; }
.alert-link {
  font-size: .76rem; font-weight: 600;
  padding: 2px 8px; border-radius: 5px;
  background: rgba(245,158,11,.12); color: #b45309;
  border: 1px solid rgba(245,158,11,.3);
  transition: all var(--t);
}
.alert-link:hover { background: rgba(245,158,11,.2); }


/* ==========================================================================
   16. TAB NAVIGATION  (sidebar-style vertical tabs, C2)
   ========================================================================== */

.tab-nav {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  overflow: hidden;
  position: sticky; top: 78px;
  box-shadow: var(--shadow-sm);
}
.tab-nav-head { padding: 12px 16px 10px; border-bottom: 1px solid var(--border); }
.tab-nav-title { font-size: .67rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }

.tab-a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  font-size: .82rem; font-weight: 500; color: var(--text-2);
  border-left: 2.5px solid transparent;
  transition: all var(--t);
  cursor: pointer; border-bottom: 1px solid #f5f7fa;
}
.tab-a:last-child { border-bottom: none; }
.tab-a:hover { background: var(--bg); color: var(--text-1); }
.tab-a.on { border-left-color: var(--brand); background: var(--brand-light); color: var(--brand); font-weight: 700; }

.tab-a-ico {
  width: 28px; height: 28px; border-radius: 7px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  background: var(--bg); border: 1px solid var(--border);
  transition: all var(--t);
}
.tab-a.on .tab-a-ico { background: rgba(175,129,92,.15); border-color: rgba(175,129,92,.2); }
.tab-a-ico svg { width: 13px; height: 13px; stroke: var(--text-3); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tab-a.on .tab-a-ico svg { stroke: var(--brand); }

.tab-a-lbl  { flex: 1; min-width: 0; }
.tab-a-ro   { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tab-a-en   { display: block; font-size: .62rem; font-weight: 400; color: var(--text-4); margin-top: 1px; }
.tab-a.on .tab-a-en { color: rgba(175,129,92,.6); }

.tab-panel        { display: none; }
.tab-panel.active { display: block; }


/* ==========================================================================
   17. EMPTY STATE
   ========================================================================== */

.empty {
  display: flex; flex-direction: column; align-items: center;
  padding: 36px 20px; gap: 8px;
}
.empty-ico { font-size: 1.8rem; opacity: .3; }
.empty-t   { font-size: .85rem; font-weight: 700; color: var(--text-2); }
.empty-s   { font-size: .76rem; color: var(--text-3); text-align: center; }


/* ==========================================================================
   18. FOOTER
   ========================================================================== */

.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 13px 28px;
  font-size: .7rem; color: var(--text-4);
  flex-shrink: 0;
}
.footer a { color: var(--text-4); transition: color var(--t); }
.footer a:hover { color: var(--text-2); }


/* ==========================================================================
   19. COMPATIBILITY — Legacy class names used in PHP pages
   Maps old names (style.css era) to existing theme CSS rules.
   ========================================================================== */

/* .page-hd → alias for .pg-hd pattern (configurations, quotes, clients, etc.) */
.page-hd {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; margin-bottom: 24px; flex-wrap: wrap;
}
.page-hd-left h1 { margin-bottom: 4px; }
.page-hd-left p, .page-sub { color: var(--text-2); font-size: .9rem; margin: 0; }
.page-title { font-size: 1.5rem; font-weight: 800; color: var(--text-1); letter-spacing: -.03em; margin-bottom: 4px; }
.page-title em { font-style: normal; color: var(--brand); }

/* .tbl / .tbl-wrap → alias for .qt pattern (7 admin pages use .tbl) */
.tbl-wrap { width: 100%; overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl thead th {
  font-size: .67rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-3); padding: 10px 14px; text-align: left; white-space: nowrap;
  border-bottom: 1px solid var(--border);
}
.tbl tbody td { padding: 11px 14px; border-bottom: 1px solid var(--border); font-size: .82rem; vertical-align: middle; }
.tbl tbody tr:last-child td { border-bottom: none; }
.tbl tbody tr:hover td { background: #fafbfd; }
.tbl-empty { text-align: center; padding: 30px 20px; color: var(--text-3); font-size: .85rem; }

/* .badge / .badge-* → generic inline badge (quotes, clients, etc.) */
.badge {
  display: inline-block; padding: 3px 9px; border-radius: 20px;
  font-size: .7rem; font-weight: 700; white-space: nowrap;
}
.badge-blue   { background: #dbeafe; color: #1e40af; }
.badge-green  { background: #d1fae5; color: #065f46; }
.badge-yellow { background: #fef3c7; color: #92400e; }
.badge-red    { background: #fee2e2; color: #991b1b; }
.badge-gray   { background: #f1f5f9; color: #475569; }
.badge-orange { background: #ffedd5; color: #9a3412; }
.badge-brand  { background: var(--brand-light); color: var(--brand-h); }

/* .btn size modifiers (btn-sm, btn-lg, btn-block) */
.btn-sm  { padding: 5px 11px; font-size: .76rem; }
.btn-lg  { padding: 11px 24px; font-size: .9rem; }
.btn-block { width: 100%; justify-content: center; }

/* .btn-accent → same visual as .btn-brand (legacy alias) */
.btn-accent       { background: var(--brand);   color: #fff; border: none; cursor: pointer; }
.btn-accent:hover { background: var(--brand-h); }

/* .btn-success, .btn-blue (legacy admin buttons) */
.btn-success       { background: var(--green);  color: #fff; border: none; cursor: pointer; }
.btn-success:hover { background: #059669; }
.btn-blue          { background: var(--blue);   color: #fff; border: none; cursor: pointer; }
.btn-blue:hover    { background: #2563eb; }

/* .alert / .alert-* → flash messages used across admin forms */
.alert {
  padding: 12px 16px; border-radius: var(--r); margin-bottom: 16px;
  font-size: .85rem; display: flex; align-items: flex-start; gap: 10px;
  border-left: 4px solid transparent;
}
.alert-success { background: #d1fae5; color: #065f46; border-left-color: var(--green); }
.alert-danger  { background: #fee2e2; color: #991b1b; border-left-color: var(--red); }
.alert-info    { background: #dbeafe; color: #1e40af; border-left-color: var(--blue); }
.alert-warning { background: #fef3c7; color: #92400e; border-left-color: var(--amber); }
.alert-flash   { font-weight: 600; }
.alert-sec     { font-size: .8rem; }

/* .required — asterisk indicator on mandatory form labels */
.required { color: var(--red); font-weight: 700; }

/* Utility / typography helpers */
.text-muted   { color: var(--text-2); }
.text-sm      { font-size: .82rem; }
.text-xs      { font-size: .74rem; }
.text-center  { text-align: center; }
.text-right   { text-align: right; }
.fw-bold      { font-weight: 700; }
.fw-black     { font-weight: 800; }
.mono         { font-family: var(--font-mono); }
.flex         { display: flex; }
.flex-center  { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-1        { gap: 4px; }
.gap-2        { gap: 8px; }
.gap-3        { gap: 12px; }
.gap-4        { gap: 16px; }
.mb-1         { margin-bottom: 4px; }
.mb-4         { margin-bottom: 16px; }
.mt-3         { margin-top: 12px; }
.mt-4         { margin-top: 16px; }

/* .form-grid-2 / .form-grid-3 — grid helpers in inline forms */
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.form-row-2  { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* .form-label / .form-group (legacy naming used in many forms) */
.form-label {
  display: block; font-size: .78rem; font-weight: 600;
  color: var(--text-2); margin-bottom: 5px;
}
.form-group { margin-bottom: 14px; }

/* .card-header → alias for .card-head */
.card-header {
  padding: 16px 20px 13px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.card-header h3, .card-hd h3 { font-size: .95rem; font-weight: 700; color: var(--text-1); }
.card-hd {
  padding: 16px 20px 13px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}

/* .mb-2 / .mb-3, .mt-1 / .mt-2 — spacing steps between mb-1/mb-4, mt-3/mt-4 */
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }

/* .form-control-lg / .form-control-sm — input size variants */
.form-control-lg { padding: 12px 15px; font-size: 1rem; }
.form-control-sm { padding: 5px 10px;  font-size: .78rem; }

/* .form-check — checkbox/radio wrapper */
.form-check { display: flex; align-items: flex-start; gap: 8px; }
.form-check input[type="checkbox"],
.form-check input[type="radio"] { margin-top: 2px; flex-shrink: 0; }

/* .form-section-title — heading in forms component form_section() */
.form-section-title {
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .07em; color: var(--text-3); margin-bottom: 12px;
  padding-bottom: 8px; border-bottom: 1px solid var(--border);
}

/* .tbl-count — result counter badge in data-table toolbar */
.tbl-count {
  font-size: .74rem; color: var(--text-3); font-weight: 500;
  padding: 3px 9px; background: var(--bg); border: 1px solid var(--border);
  border-radius: 20px; white-space: nowrap;
}

/* .wrap — flex-wrap helper */
.wrap { flex-wrap: wrap; }

/* .overlay → alias pt .modal-overlay (quote-builder.php folosește class="overlay") */
.overlay {
  display: none;
  position: fixed; inset: 0;
  z-index: var(--z-modal-bg);
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(4px);
  align-items: center; justify-content: center;
}
.overlay.open { display: flex; }

/* .container — max-width wrapper used in quote-builder, account, account-verify-email */
.container { max-width: 1180px; margin: 0 auto; width: 100%; }

/* Micro-utilities */
.opacity-50 { opacity: .5; }
.del-form   { display: inline; margin: 0; padding: 0; }
.swatch     { display: inline-block; width: 14px; height: 14px; border-radius: 3px; border: 1px solid rgba(0,0,0,.12); vertical-align: middle; flex-shrink: 0; }

/* Products page */
.img-upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--r);
  padding: 20px;
  text-align: center;
  background: var(--bg);
  cursor: pointer;
  transition: border-color var(--t);
}
.img-upload-zone:hover { border-color: var(--brand); }

/* Admin dashboard stats grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  padding: 18px 16px;
  border-left: 4px solid var(--c, var(--brand));
  transition: box-shadow var(--t), transform var(--t);
}
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.stat-val  { font-size: 2rem; font-weight: 800; color: var(--text-1); line-height: 1; }
.stat-lbl  { font-size: .75rem; color: var(--text-3); margin-top: 6px; font-weight: 500; }

/* pg-hd sub-elements */
.pg-hd-l  { display: flex; flex-direction: column; gap: 4px; }
.pg-hd-r  { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* ── Public Catalog — Hero ────────────────────────────────────────────────── */
.catalog-hero {
  background: var(--navy);
  background-image:
    radial-gradient(ellipse at 70% 50%, rgba(175,129,92,.12) 0%, transparent 55%),
    radial-gradient(ellipse at 10% 80%, rgba(59,130,246,.06) 0%, transparent 45%);
  padding: 56px 0 52px;
  position: relative; overflow: hidden;
}
.catalog-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}
.catalog-hero-inner {
  max-width: 1320px; margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
  position: relative; z-index: 1;
}
.catalog-hero-text { max-width: 560px; }
.catalog-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 16px;
  background: rgba(175,129,92,.12); border: 1px solid rgba(175,129,92,.25);
  border-radius: 20px; padding: 5px 12px;
}
.catalog-hero-eyebrow::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.catalog-hero-title {
  font-size: 2.3rem; font-weight: 800; color: #fff; line-height: 1.15;
  letter-spacing: -.04em; margin-bottom: 16px;
}
.catalog-hero-title em { font-style: normal; color: var(--brand); }
.catalog-hero-sub {
  font-size: .96rem; color: rgba(255,255,255,.55); line-height: 1.7;
  margin-bottom: 28px;
}
.catalog-hero-cta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.btn-hero-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--brand); color: #fff;
  padding: 12px 24px; border-radius: 10px;
  font-size: .9rem; font-weight: 700; font-family: var(--font-base);
  box-shadow: 0 4px 16px rgba(175,129,92,.4);
  transition: all .13s; cursor: pointer; border: none; text-decoration: none;
}
.btn-hero-primary:hover { background: var(--brand-h); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(175,129,92,.5); }
.btn-hero-primary svg { width: 16px; height: 16px; stroke: #fff; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn-hero-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: rgba(255,255,255,.65);
  padding: 12px 20px; border-radius: 10px;
  font-size: .88rem; font-weight: 600; font-family: var(--font-base);
  border: 1px solid rgba(255,255,255,.15);
  transition: all .13s; cursor: pointer; text-decoration: none;
}
.btn-hero-ghost:hover { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.25); }
.catalog-hero-stats { display: flex; gap: 0; margin-top: 28px; flex-wrap: wrap; }
.catalog-hero-stat { padding-right: 24px; }
.catalog-hero-stat + .catalog-hero-stat { border-left: 1px solid rgba(255,255,255,.1); padding-left: 24px; }
.catalog-hero-stat-n { font-size: 1.4rem; font-weight: 800; color: #fff; line-height: 1; }
.catalog-hero-stat-n em { font-style: normal; color: var(--brand); }
.catalog-hero-stat-lbl { font-size: .7rem; color: rgba(255,255,255,.35); margin-top: 3px; }
.catalog-hero-visual {
  flex-shrink: 0; width: 300px;
  display: flex; align-items: center; justify-content: center;
}
.catalog-hero-vehicle-card {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px; padding: 24px 28px; text-align: center;
  backdrop-filter: blur(10px);
}
.catalog-hero-vehicle-icon { font-size: 4.5rem; line-height: 1; margin-bottom: 10px; filter: drop-shadow(0 4px 12px rgba(175,129,92,.3)); }
.catalog-hero-vehicle-label { font-size: .72rem; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: .08em; }
.catalog-hero-vehicle-name { font-size: .88rem; font-weight: 700; color: rgba(255,255,255,.8); margin-top: 3px; }

/* ── Public Catalog — main wrap ──────────────────────────────────────────── */
.catalog-main { max-width: 1320px; margin: 0 auto; padding: 36px 28px 72px; }

/* ── Filter bar ──────────────────────────────────────────────────────────── */
.filter-bar {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 36px; flex-wrap: wrap;
}
.filter-bar-lbl { font-size: .72rem; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .08em; margin-right: 4px; }
.filter-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 16px; border-radius: 20px;
  font-size: .8rem; font-weight: 600; font-family: var(--font-base);
  border: 1.5px solid var(--border); background: var(--surface);
  color: var(--text-2); cursor: pointer; transition: all .12s;
  box-shadow: var(--shadow-sm);
}
.filter-btn:hover { border-color: var(--brand); color: var(--brand); }
.filter-btn.active { background: var(--brand); color: #fff; border-color: var(--brand); box-shadow: 0 2px 8px rgba(175,129,92,.3); }
.filter-btn-count { font-size: .62rem; font-weight: 800; background: rgba(255,255,255,.25); border-radius: 10px; padding: 1px 6px; }
.filter-btn:not(.active) .filter-btn-count { background: var(--bg); color: var(--text-3); }
.filter-btn svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ── Category group ──────────────────────────────────────────────────────── */
.cat-group { margin-bottom: 48px; }
.cat-group.hidden { display: none; }
.cat-group-hd {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 18px; padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}
.cat-group-ico {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--brand-light); border: 1px solid rgba(175,129,92,.2);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.cat-group-ico svg { width: 18px; height: 18px; stroke: var(--brand); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cat-group-ico.blue { background: var(--blue-bg); border-color: rgba(59,130,246,.2); }
.cat-group-ico.blue svg { stroke: var(--blue); }
.cat-group-ico.green { background: var(--green-bg); border-color: rgba(16,185,129,.2); }
.cat-group-ico.green svg { stroke: var(--green); }
.cat-group-title { font-size: 1.1rem; font-weight: 800; color: var(--text-1); letter-spacing: -.02em; }
.cat-group-sub { font-size: .76rem; color: var(--text-3); margin-top: 2px; }
.cat-badge {
  display: inline-flex; align-items: center;
  background: var(--bg); border: 1px solid var(--border);
  color: var(--text-2); border-radius: 20px; padding: 3px 10px;
  font-size: .7rem; font-weight: 700; margin-left: auto; flex-shrink: 0;
}

/* ── Family label ────────────────────────────────────────────────────────── */
.family-label { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; margin-top: 24px; }
.family-label:first-of-type { margin-top: 0; }
.family-label-name { font-size: .8rem; font-weight: 800; color: var(--brand); text-transform: uppercase; letter-spacing: .07em; }
.family-label-count { font-size: .72rem; color: var(--text-3); font-weight: 400; }
.family-label-line { flex: 1; height: 1px; background: var(--border); }

/* ── Product grid & card ─────────────────────────────────────────────────── */
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.prod-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r2);
  overflow: hidden; transition: all .16s;
  display: block; position: relative;
  box-shadow: var(--shadow-sm);
  text-decoration: none; color: var(--text-1);
}
.prod-card:hover { border-color: var(--brand); box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.prod-card-img {
  height: 168px; overflow: hidden;
  background: linear-gradient(135deg, #f8f9fb 0%, #eef1f5 100%);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.prod-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
.prod-card:hover .prod-card-img img { transform: scale(1.04); }
.prod-card-img-ph {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  width: 100%; height: 100%; color: var(--text-4);
}
.prod-card-img-ph svg { width: 52px; height: 52px; stroke: currentColor; fill: none; stroke-width: .8; opacity: .35; }
.prod-card-img-ph span { font-size: .65rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .4; }
.prod-card-overlay {
  position: absolute; inset: 0;
  background: rgba(14,17,23,.6);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .16s;
  backdrop-filter: blur(2px);
}
.prod-card:hover .prod-card-overlay { opacity: 1; }
.prod-card-overlay-btn {
  display: flex; align-items: center; gap: 7px;
  background: var(--brand); color: #fff;
  padding: 10px 20px; border-radius: 9px;
  font-size: .83rem; font-weight: 700;
  box-shadow: 0 4px 14px rgba(175,129,92,.5);
  transform: translateY(6px); transition: transform .16s;
}
.prod-card:hover .prod-card-overlay-btn { transform: translateY(0); }
.prod-card-overlay-btn svg { width: 14px; height: 14px; stroke: #fff; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.prod-card-body { padding: 14px 16px 16px; }
.prod-card-family { font-size: .65rem; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 3px; }
.prod-card-name { font-size: .95rem; font-weight: 800; color: var(--text-1); line-height: 1.25; margin-bottom: 3px; letter-spacing: -.01em; }
.prod-card-variant { font-size: .76rem; color: var(--text-2); margin-bottom: 10px; }
.prod-card-badges { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 12px; }
.pbadge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 5px; font-size: .66rem; font-weight: 700; white-space: nowrap; }
.pbadge-blue  { background: var(--blue-bg); color: #1d4ed8; }
.pbadge-green { background: var(--green-bg); color: #059669; }
.pbadge-gray  { background: var(--bg); color: var(--text-2); border: 1px solid var(--border); }
.pbadge-brand { background: var(--brand-light); color: var(--brand-h); }
.prod-card-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 11px; border-top: 1px solid var(--border);
}
.prod-card-price { font-size: .78rem; color: var(--text-3); }
.prod-card-price strong { font-family: var(--font-mono); font-size: .82rem; color: var(--brand); font-weight: 700; }
.prod-card-arrow {
  width: 28px; height: 28px; border-radius: 7px;
  background: var(--bg); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; transition: all .12s;
}
.prod-card:hover .prod-card-arrow { background: var(--brand); border-color: var(--brand); }
.prod-card-arrow svg { width: 13px; height: 13px; stroke: var(--text-3); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: stroke .12s; }
.prod-card:hover .prod-card-arrow svg { stroke: #fff; }

/* Legacy compat */
.prod-img-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.prod-img-placeholder svg { opacity: .15; stroke: #94a3b8; }
.family-group     { margin-bottom: 2.5rem; }
.family-group-hd  { display: flex; align-items: center; gap: 12px; margin-bottom: 1rem; padding-bottom: .5rem; border-bottom: 2px solid var(--border); }
.family-group-hd h2 { font-size: 1.1rem; font-weight: 700; }

/* view-config.php */
.config-summary-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r2); padding: 20px 24px; }
.flex-direction-col { flex-direction: column; }
.total { font-size: 2rem; font-weight: 800; color: var(--brand); }

/* ── Configurator UI classes ─────────────────────────────────────────────── */
.wrap         { flex-wrap: wrap; }
.modal-foot   { padding: 14px 22px; border-top: 1px solid var(--border); display: flex; gap: 8px; justify-content: flex-end; }
.form-row     { display: flex; gap: 12px; align-items: flex-start; }

/* ══ CONFIGURATOR P2 ══════════════════════════════════════════════════════════
   Toate clasele aliniate cu mockup-P2-configurator.html
   ══════════════════════════════════════════════════════════════════════════ */

/* Topbar breadcrumb — injectat din configurator.php */
.topbar-bc      { display: flex; align-items: center; gap: 7px; font-size: .78rem; color: rgba(255,255,255,.4); flex: 1; min-width: 0; overflow: hidden; }
.topbar-bc a    { color: rgba(255,255,255,.4); transition: color .12s; white-space: nowrap; }
.topbar-bc a:hover { color: rgba(255,255,255,.75); }
.topbar-bc-sep  { color: rgba(255,255,255,.2); flex-shrink: 0; }
.topbar-bc-cur  { color: rgba(255,255,255,.8); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Layout wrapper */
.cfg-wrap       { max-width: 1380px; margin: 0 auto; padding: 20px 24px 72px; display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: start; }
.cfg-left       { min-width: 0; }

/* Template banner */
.tpl-banner     { background: linear-gradient(135deg, rgba(175,129,92,.12) 0%, rgba(175,129,92,.05) 100%); border: 1px solid rgba(175,129,92,.25); border-radius: var(--r2); padding: 14px 18px; display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.tpl-banner-ico { font-size: 1.4rem; flex-shrink: 0; }
.tpl-banner-txt { flex: 1; min-width: 0; }
.tpl-banner-title { font-size: .86rem; font-weight: 700; }
.tpl-banner-sub   { font-size: .75rem; color: var(--text-2); margin-top: 2px; }
.btn-tpl        { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 8px; background: var(--brand); color: #fff; font-size: .78rem; font-weight: 700; font-family: var(--font-base, 'DM Sans', sans-serif); border: none; cursor: pointer; white-space: nowrap; flex-shrink: 0; transition: background .12s; }
.btn-tpl:hover  { background: var(--brand-h); }

/* Steps */
.step-card      { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--r2); overflow: hidden; margin-bottom: 10px; box-shadow: var(--shadow-sm); transition: border-color .12s; }
.step-card:last-child { margin-bottom: 0; }
.step-card.step-powertrain { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand-light), var(--shadow-sm); }
.step-card.step-powertrain .step-hd { background: linear-gradient(135deg, rgba(175,129,92,.08) 0%, rgba(175,129,92,.03) 100%); }
.step-card.step-powertrain .step-num { background: var(--brand); color: #fff; }
.step-card.is-done  { border-color: #d1fae5; }
.step-card.is-done .step-num { background: var(--green); color: #fff; }
.step-card.is-active .step-chevron { color: var(--brand); }
.step-hd        { display: flex; align-items: center; gap: 14px; padding: 14px 18px; cursor: pointer; background: var(--bg); user-select: none; transition: background .12s; }
.step-hd:hover  { background: #eaecf1; }
.step-num       { width: 28px; height: 28px; border-radius: 8px; background: var(--text-4, #C4CDD6); color: #fff; font-size: .75rem; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background .15s; }
.step-info      { flex: 1; min-width: 0; }
.step-title     { font-size: .88rem; font-weight: 700; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.step-title .required { color: var(--red, #EF4444); font-size: .8rem; }
.group-type-badge { font-size: .6rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 2px 7px; border-radius: 10px; background: var(--brand); color: #fff; }
.step-desc      { font-size: .74rem; color: var(--text-3); margin-top: 1px; }
.step-val       { font-size: .76rem; color: var(--text-3); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.step-chevron   { color: var(--text-4, #C4CDD6); font-size: .85rem; flex-shrink: 0; transition: transform .18s; }
.step-body      { display: none; border-top: 1px solid var(--border); }
.step-body.open { display: block; }
.step-body-inner { padding: 16px 18px 18px; }

/* Powertrain cards */
.opt-powertrain { display: grid; grid-template-columns: repeat(auto-fill, minmax(185px, 1fr)); gap: 10px; }
.opt-pt-card    { display: flex; align-items: flex-start; gap: 11px; padding: 14px; border: 2px solid var(--border); border-radius: var(--r); cursor: pointer; transition: all .13s; position: relative; background: var(--surface); }
.opt-pt-card:hover { border-color: var(--brand); background: rgba(175,129,92,.04); box-shadow: var(--shadow-sm); }
.opt-pt-card.sel   { border-color: var(--brand); background: var(--brand-light); box-shadow: var(--shadow-sel, 0 0 0 2px var(--brand)); }
.opt-pt-card.excl  { opacity: .4; pointer-events: none; }
.opt-pt-card.locked { cursor: default; }
.pt-icon        { font-size: 1.5rem; line-height: 1; flex-shrink: 0; margin-top: 1px; }
.pt-info        { flex: 1; min-width: 0; }
.pt-name        { font-size: .85rem; font-weight: 700; margin-bottom: 5px; line-height: 1.3; }
.pt-price-base  { display: inline-block; font-size: .7rem; font-weight: 600; background: var(--green-bg); color: #059669; padding: 2px 8px; border-radius: 10px; }
.pt-price-delta { display: inline-block; font-size: .7rem; font-weight: 700; background: var(--brand-light); color: var(--brand-h); padding: 2px 8px; border-radius: 10px; }
.pt-price-delta-neg { background: var(--red-bg, #FEF2F2); color: var(--red, #EF4444); }
.chk            { position: absolute; top: 9px; right: 10px; width: 18px; height: 18px; border-radius: 50%; background: var(--brand); color: #fff; font-size: .62rem; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .13s; }
.opt-pt-card.sel .chk,
.opt-color.sel  .chk,
.opt-img-card.sel .chk { opacity: 1; }

/* Color swatches */
.opt-colors     { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.opt-color      { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 10px 8px 8px; border: 2px solid var(--border); border-radius: var(--r); cursor: pointer; transition: all .13s; width: 88px; text-align: center; position: relative; }
.opt-color:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.opt-color.sel   { border-color: var(--brand); box-shadow: var(--shadow-sel, 0 0 0 2px var(--brand)); }
.opt-color.excl  { opacity: .4; pointer-events: none; }
.opt-color.locked { cursor: default; }
.dot            { width: 38px; height: 38px; border-radius: 50%; border: 2px solid rgba(0,0,0,.08); box-shadow: inset 0 1px 3px rgba(0,0,0,.12); transition: transform .13s; }
.opt-color:hover .dot { transform: scale(1.1); }
.opt-color.sel .dot   { box-shadow: 0 0 0 2.5px var(--brand), inset 0 1px 3px rgba(0,0,0,.12); }
.lbl            { font-size: .67rem; font-weight: 600; color: var(--text-1); line-height: 1.2; word-break: break-word; }
.prc            { font-size: .62rem; color: var(--brand-h); font-weight: 700; }
.prc.is-inc     { color: var(--green); }

/* Image cards */
.opt-images     { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin-top: 10px; }
.opt-img-card   { border: 2px solid var(--border); border-radius: var(--r); cursor: pointer; overflow: hidden; transition: all .13s; position: relative; background: var(--surface); }
.opt-img-card:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); }
.opt-img-card.sel   { border-color: var(--brand); box-shadow: var(--shadow-sel, 0 0 0 2px var(--brand)); }
.opt-img-card.excl  { opacity: .4; pointer-events: none; }
.opt-img-card img   { width: 100%; height: 88px; object-fit: cover; display: block; }
.opt-img-card-ph    { height: 88px; background: linear-gradient(135deg, #eef1f5, #f8f9fb); display: flex; align-items: center; justify-content: center; font-size: 2rem; color: var(--text-4, #C4CDD6); }
.info           { padding: 7px 9px 9px; }
.info .lbl      { font-size: .75rem; font-weight: 600; color: var(--text-1); }
.info .img-price { font-size: .68rem; color: var(--brand-h); font-weight: 700; margin-top: 2px; font-family: var(--font-mono, 'DM Mono', monospace); }

/* Option list (single/multiple) */
.opt-list       { display: flex; flex-direction: column; gap: 7px; margin-top: 10px; }
.opt-item       { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: var(--r); cursor: pointer; transition: all .13s; background: var(--surface); position: relative; }
.opt-item:hover { border-color: var(--brand); background: rgba(175,129,92,.03); }
.opt-item.sel   { border-color: var(--brand); background: var(--brand-light); }
.opt-item.excl  { opacity: .4; pointer-events: none; }
.opt-item.locked { cursor: default; background: var(--bg); border-style: dashed; }
.opt-item.dt-standard { border-color: #d1fae5; background: #f0fdf4; }
.opt-item.dt-standard:hover { border-color: var(--green); }
.opt-item.dt-standard.sel   { border-color: var(--green); background: var(--green-bg); }
.opt-radio      { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--border-dark); flex-shrink: 0; display: flex; align-items: center; justify-content: center; transition: all .13s; background: var(--surface); }
.opt-item.sel .opt-radio { background: var(--brand); border-color: var(--brand); }
.opt-item.sel .opt-radio::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #fff; display: block; }
.opt-checkbox   { width: 18px; height: 18px; border-radius: 5px; border: 2px solid var(--border-dark); flex-shrink: 0; display: flex; align-items: center; justify-content: center; transition: all .13s; background: var(--surface); font-size: .7rem; }
.opt-item.sel .opt-checkbox { background: var(--brand); border-color: var(--brand); color: #fff; }
.opt-item-info  { flex: 1; min-width: 0; }
.opt-item-name  { font-size: .84rem; font-weight: 600; color: var(--text-1); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.opt-item-desc  { font-size: .72rem; color: var(--text-2); margin-top: 2px; }
.opt-item-right { text-align: right; flex-shrink: 0; }
.opt-item-price { font-size: .78rem; font-weight: 700; color: var(--brand-h); font-family: var(--font-mono, 'DM Mono', monospace); }
.opt-item-inc   { font-size: .68rem; color: var(--green); font-weight: 600; }
.opt-item-badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.opt-dt-badge   { font-size: .6rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 2px 7px; border-radius: 9px; display: inline-flex; align-items: center; }
.dt-standard    { background: var(--green-bg); color: #059669; }

/* Badge sistem opțiuni */
.opt-badge      { display: inline-flex; align-items: center; padding: 2px 7px; border-radius: 9px; font-size: .63rem; font-weight: 700; white-space: nowrap; border: 1px solid transparent; }
.opt-badge-standard    { background: var(--green-bg); color: #059669; border-color: rgba(16,185,129,.2); }
.opt-badge-recommended { background: var(--amber-bg, #FFFBEB); color: #92400e; border-color: rgba(245,158,11,.2); }
.opt-badge-quote       { background: var(--blue-bg); color: var(--blue); border-color: rgba(59,130,246,.2); }
.opt-badge-delivery    { background: #fff7ed; color: #c2410c; border-color: rgba(234,88,12,.2); }

/* Tooltip buton */
.opt-tooltip-btn  { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--border-dark); background: var(--bg); color: var(--text-2); font-size: .6rem; font-weight: 700; font-style: italic; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: all .12s; flex-shrink: 0; font-family: Georgia, serif; }
.opt-tooltip-btn:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.opt-tooltip-popup    { background: var(--navy); color: rgba(255,255,255,.9); font-size: .78rem; line-height: 1.55; padding: 10px 14px; border-radius: 10px; max-width: 280px; box-shadow: 0 8px 32px rgba(0,0,0,.25); pointer-events: none; }

/* Summary panel */
.summary-panel  { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--r2); overflow: hidden; position: sticky; top: 76px; box-shadow: var(--shadow-md); }
.sum-head       { padding: 14px 18px 12px; border-bottom: 1px solid var(--border); background: var(--bg); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sum-head-title { font-size: .86rem; font-weight: 700; display: flex; align-items: center; gap: 7px; }
.sum-head-title svg { width: 14px; height: 14px; stroke: var(--brand); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-reset      { font-size: .7rem; font-weight: 700; color: var(--text-3); background: none; border: 1px solid var(--border); border-radius: 6px; padding: 4px 9px; cursor: pointer; font-family: inherit; transition: all .12s; }
.btn-reset:hover { color: var(--red, #EF4444); border-color: #fca5a5; }
.sum-product-hero { padding: 16px 18px 14px; border-bottom: 1px solid var(--border); background: linear-gradient(to bottom, rgba(175,129,92,.05), transparent); }
.sum-product-img  { height: 120px; border-radius: 10px; overflow: hidden; background: linear-gradient(135deg, #f0f3f7, #e8ecf2); display: flex; align-items: center; justify-content: center; margin-bottom: 12px; border: 1px solid var(--border); }
.sum-product-img img { width: 100%; height: 100%; object-fit: contain; }
.sum-product-cat  { font-size: .62rem; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 2px; }
.sum-product-name { font-size: .95rem; font-weight: 800; letter-spacing: -.02em; }
.sum-progress     { padding: 12px 18px; border-bottom: 1px solid var(--border); }
.sum-progress-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.sum-progress-lbl { font-size: .72rem; color: var(--text-3); }
.sum-progress-pct { font-size: .72rem; font-weight: 800; color: var(--green); font-family: var(--font-mono, 'DM Mono', monospace); }
.progress-bar-wrap { height: 5px; background: var(--border); border-radius: 4px; overflow: hidden; }
.progress-bar-fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--brand), var(--green)); transition: width .4s ease; }
.sum-opts       { padding: 12px 18px; border-bottom: 1px solid var(--border); max-height: 220px; overflow-y: auto; }
.sum-opts::-webkit-scrollbar { width: 4px; }
.sum-opts::-webkit-scrollbar-track { background: var(--bg); }
.sum-opts::-webkit-scrollbar-thumb { background: var(--border-dark); border-radius: 2px; }
.sum-row        { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px solid #f5f7fa; }
.sum-row:last-child { border-bottom: none; }
.sum-row-grp    { font-size: .65rem; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .05em; }
.sum-row-name   { font-size: .78rem; font-weight: 500; }
.sum-row-price  { font-size: .75rem; font-weight: 700; color: var(--text-2); font-family: var(--font-mono, 'DM Mono', monospace); white-space: nowrap; flex-shrink: 0; }
.sum-row-inc    { font-size: .68rem; color: var(--green); font-weight: 600; flex-shrink: 0; }
/* Alias pentru compatibilitate JS existent */
.sum-lbl        { font-size: .65rem; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .05em; }
.sum-name       { font-size: .78rem; font-weight: 500; }
.sum-price      { font-size: .75rem; font-weight: 700; color: var(--brand-h); font-family: var(--font-mono, 'DM Mono', monospace); white-space: nowrap; flex-shrink: 0; }
.sum-total      { padding: 14px 18px; border-bottom: 1px solid var(--border); background: rgba(175,129,92,.04); }
.sum-total-row  { display: flex; align-items: center; justify-content: space-between; }
.sum-total-lbl  { font-size: .7rem; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; }
.sum-total-val  { font-size: 1.15rem; font-weight: 800; font-family: var(--font-mono, 'DM Mono', monospace); letter-spacing: -.02em; }
.sum-total-note { font-size: .67rem; color: var(--text-3); margin-top: 3px; }
.sum-actions    { padding: 14px 18px; display: flex; flex-direction: column; gap: 8px; }
.btn-save       { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 44px; border-radius: 10px; background: var(--brand); color: #fff; font-size: .86rem; font-weight: 700; font-family: inherit; border: none; cursor: pointer; box-shadow: 0 2px 10px rgba(175,129,92,.35); transition: all .13s; }
.btn-save:hover { background: var(--brand-h); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(175,129,92,.45); }
.btn-save svg   { width: 14px; height: 14px; stroke: #fff; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn-quote      { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 40px; border-radius: 10px; background: transparent; color: var(--text-2); font-size: .82rem; font-weight: 600; font-family: inherit; border: 1.5px solid var(--border); cursor: pointer; transition: all .13s; }
.btn-quote:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-light); }

/* Template modal grid */
.tpl-grid       { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tpl-card       { padding: 14px; border: 1.5px solid var(--border); border-radius: var(--r); cursor: pointer; transition: all .13s; background: var(--surface); }
.tpl-card:hover { border-color: var(--brand); background: var(--brand-light); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.tpl-card-name  { font-size: .85rem; font-weight: 700; margin-bottom: 5px; }
.tpl-card-desc  { font-size: .75rem; color: var(--text-2); line-height: 1.5; }
.tpl-card-count { font-size: .7rem; color: var(--blue); font-weight: 700; margin-top: 8px; }

/* Save modal form */
.notice-info    { background: var(--blue-bg); border: 1px solid #bfdbfe; border-radius: 9px; padding: 11px 14px; font-size: .78rem; color: #1d4ed8; display: flex; gap: 8px; align-items: flex-start; }
.notice-info svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; margin-top: 1px; }

/* Share modal */
.share-url-row  { display: flex; gap: 8px; }
.share-url-row input { flex: 1; height: 38px; padding: 0 12px; border: 1.5px solid var(--border); border-radius: 8px; font-size: .78rem; font-family: var(--font-mono, 'DM Mono', monospace); background: var(--bg); color: var(--text-2); outline: none; }
.share-actions  { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.share-actions a { display: flex; align-items: center; justify-content: center; gap: 7px; height: 40px; border-radius: 9px; font-size: .8rem; font-weight: 700; transition: all .12s; text-decoration: none; }

/* Responsive configurator */
@media (max-width: 1100px) { .cfg-wrap { grid-template-columns: 1fr 300px; } }
@media (max-width: 900px)  { .cfg-wrap { grid-template-columns: 1fr; } .summary-panel { position: static; order: -1; } .topbar-bc { display: none; } }
@media (max-width: 600px)  { .opt-powertrain { grid-template-columns: 1fr 1fr; } .tpl-grid { grid-template-columns: 1fr; } }


.stat-label { font-size: .72rem; color: var(--text-2); font-weight: 500; margin-top: 2px; }
.stat-trend { font-size: .65rem; color: var(--text-3); margin-top: 3px; }
.stat-trend.up { color: var(--green); } .stat-trend.warn { color: var(--amber); }

/* Card internals — card-head, card-ico, card-title, qt table, side-card, act-row */
.card-head { padding: 16px 20px 13px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-head-l { display: flex; align-items: center; gap: 11px; }
.card-ico { width: 34px; height: 34px; border-radius: 9px; background: var(--brand-light); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.card-ico svg { width: 16px; height: 16px; stroke: var(--brand); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card-ico.blue { background: var(--blue-bg); } .card-ico.blue svg { stroke: var(--blue); }
.card-ico.red  { background: var(--red-bg);  } .card-ico.red  svg { stroke: var(--red);  }
.card-title    { font-size: .93rem; font-weight: 700; color: var(--text-1); }
.card-title-en { font-size: .67rem; color: var(--text-4); font-weight: 500; letter-spacing: .04em; text-transform: uppercase; margin-top: 2px; }
.card-badge    { background: var(--bg); color: var(--text-2); border: 1px solid var(--border); border-radius: 20px; padding: 2px 9px; font-size: .7rem; font-weight: 700; }

/* qt — quote table (shared admin dashboard + pages) */
.qt { width: 100%; border-collapse: collapse; }
.qt thead tr { border-bottom: 1px solid var(--border); }
.qt th { font-size: .67rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); padding: 10px 16px; text-align: left; white-space: nowrap; }
.qt td { padding: 11px 16px; border-bottom: 1px solid #f0f3f7; font-size: .8rem; }
.qt tbody tr:last-child td { border-bottom: none; }
.qt tbody tr:hover td { background: #fafbfd; }
.qt-id    { font-family: var(--font-mono); font-size: .75rem; font-weight: 600; color: var(--text-2); }
.qt-name  { font-weight: 700; color: var(--text-1); }
.qt-sub   { font-size: .7rem; color: var(--text-3); margin-top: 1px; }
/* Side card + activity feed */
.side-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r2); overflow: hidden; margin-bottom: 14px; box-shadow: var(--shadow-sm); }
.side-head { padding: 14px 18px 12px; border-bottom: 1px solid var(--border); display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.side-head-title { font-size: .88rem; font-weight: 700; color: var(--text-1); }
.side-head-en    { font-size: .63rem; color: var(--text-4); font-weight: 500; letter-spacing: .04em; text-transform: uppercase; margin-top: 2px; }
.act-row { display: flex; align-items: flex-start; gap: 11px; padding: 10px 18px; border-bottom: 1px solid #f0f3f7; transition: background .1s; }
.act-row:last-child { border-bottom: none; }
.act-row:hover { background: #fafbfc; }
.act-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; margin-top: 5px; }
.act-dot.green  { background: var(--green);  box-shadow: 0 0 0 2px var(--green-bg);  }
.act-dot.blue   { background: var(--blue);   box-shadow: 0 0 0 2px var(--blue-bg);   }
.act-dot.amber  { background: var(--amber);  box-shadow: 0 0 0 2px var(--amber-bg);  }
.act-dot.violet { background: var(--violet); box-shadow: 0 0 0 2px var(--violet-bg); }
.act-dot.red    { background: var(--red);    box-shadow: 0 0 0 2px var(--red-bg);    }
.act-dot.cyan   { background: var(--cyan);   box-shadow: 0 0 0 2px var(--cyan-bg);   }
.act-txt  { flex: 1; min-width: 0; font-size: .78rem; color: var(--text-2); line-height: 1.4; }
.act-txt strong { color: var(--text-1); font-weight: 700; }
.act-time { font-size: .68rem; color: var(--text-4); white-space: nowrap; margin-top: 2px; }
.btn-add-full { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; padding: 8px 14px; border-radius: 8px; font-size: .76rem; font-weight: 700; background: transparent; color: var(--text-3); border: 1px solid var(--border); cursor: pointer; transition: all .12s; }
.btn-add-full:hover { background: var(--bg); color: var(--brand); border-color: var(--brand); }
.addr-foot { padding: 10px 18px; }
.tbl-empty { padding: 30px; text-align: center; color: var(--text-3); }


/* ==========================================================================
   20. FORM CARD + TOOLBAR + TABLE EXTRAS — admin pages (families, groups etc.)
       Extras din families.view.php (și refolosite în groups, options, templates)
   ========================================================================== */

/* btn-new — buton primary cu shadow branded */
.btn-new { display: inline-flex; align-items: center; gap: 6px; background: var(--brand); color: #fff; padding: 9px 18px; border-radius: var(--r); font-size: .8rem; font-weight: 700; border: none; transition: background .13s; white-space: nowrap; cursor: pointer; box-shadow: 0 2px 8px rgba(175,129,92,.3); }
.btn-new:hover { background: var(--brand-h); }
.btn-new svg { width: 13px; height: 13px; stroke: #fff; fill: none; stroke-width: 2.5; }

/* Panou formular inline (creare/editare în pagină) */
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r2); overflow: hidden; box-shadow: var(--shadow-sm); display: none; margin-bottom: 20px; }
.form-card.open { display: block; }
.form-card-head { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; background: var(--bg); }

/* Toolbar tabel (search + filtre) */
.tbl-toolbar   { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.tbl-toolbar-l { display: flex; align-items: center; gap: 8px; flex: 1; }
.tbl-toolbar-r { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.tbl-filter    { padding: 6px 11px; border: 1px solid var(--border); border-radius: 8px; font-size: .78rem; background: var(--bg); color: var(--text-1); outline: none; cursor: pointer; font-family: var(--font-base); }
.tbl-filter:focus { border-color: var(--brand); }
.tbl-foot { padding: 12px 18px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; background: var(--bg); }

/* Tabel produse */
.prod-tbl { width: 100%; border-collapse: collapse; }
.prod-tbl thead tr { border-bottom: 1px solid var(--border); }
.prod-tbl th { font-size: .67rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); padding: 10px 14px; text-align: left; white-space: nowrap; background: var(--bg); }
.prod-tbl td { padding: 11px 14px; border-bottom: 1px solid #f0f3f7; font-size: .82rem; vertical-align: middle; }
.prod-tbl tbody tr:last-child td { border-bottom: none; }
.prod-tbl tbody tr:hover td { background: #fafbfd; }
.prod-name    { font-weight: 700; color: var(--text-1); }
.prod-variant { font-size: .71rem; color: var(--text-3); margin-top: 2px; }
.prod-sku     { font-family: var(--font-mono); font-size: .74rem; color: var(--text-2); }

/* Badge familie */
.badge-fam { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 5px; font-size: .65rem; font-weight: 700; white-space: nowrap; background: var(--blue-bg); color: var(--blue); }

/* Butoane icon */
.btn-ico  { width: 30px; height: 30px; border-radius: 7px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); background: var(--surface); cursor: pointer; transition: all .12s; flex-shrink: 0; color: var(--text-2); }
.btn-ico:hover { background: var(--bg); border-color: var(--border-dark); }
.btn-ico.danger:hover { background: var(--red-bg); border-color: #fca5a5; color: var(--red); }
.btn-ico:disabled { opacity: .35; cursor: not-allowed; }
.btn-ico svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }


/* ==========================================================================
   21. QUOTE BUILDER — selectare configurații, sumar, total
       Extras din quote-builder.view.php
   ========================================================================== */

.qb-step-num { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--blue); color: #fff; font-size: .72rem; font-weight: 800; flex-shrink: 0; }

.qcfg-item { display: flex; align-items: flex-start; gap: 12px; padding: 13px 14px; border: 1.5px solid var(--border); border-radius: var(--r); cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; background: var(--surface); margin-bottom: 8px; }
.qcfg-item:last-child { margin-bottom: 0; }
.qcfg-item:hover { border-color: var(--blue); background: var(--blue-bg); }
.qcfg-item.sel  { border-color: var(--blue); background: var(--blue-bg); box-shadow: 0 0 0 3px rgba(59,130,246,.10); }
.qcfg-check { width: 18px; height: 18px; border: 2px solid var(--border-dark); border-radius: 4px; flex-shrink: 0; margin-top: 2px; display: flex; align-items: center; justify-content: center; transition: border-color .15s, background .15s; background: var(--surface); position: relative; }
.qcfg-item.sel .qcfg-check { border-color: var(--blue); background: var(--blue); }
.qcfg-check-tick { display: none; width: 10px; height: 7px; border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: rotate(-45deg) translate(1px,-1px); }
.qcfg-item.sel .qcfg-check-tick { display: block; }
.qcfg-body { flex: 1; min-width: 0; }
.qcfg-name { font-weight: 700; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-1); }
.qcfg-meta { font-size: .75rem; color: var(--text-2); margin-top: 2px; }
.qcfg-right { display: flex; flex-direction: column; align-items: flex-end; gap: 7px; flex-shrink: 0; }
.qcfg-price { font-weight: 800; font-size: .9rem; color: var(--blue); white-space: nowrap; }
.qcfg-qty-row { display: none; align-items: center; gap: 5px; }
.qcfg-item.sel .qcfg-qty-row { display: flex; }
.qcfg-qty-btn { width: 26px; height: 26px; border-radius: 6px; border: 1.5px solid var(--border-dark); background: var(--surface); cursor: pointer; font-size: 1rem; display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--text-2); transition: border-color .12s, background .12s; line-height: 1; }
.qcfg-qty-btn:hover { border-color: var(--blue); background: var(--blue-bg); color: var(--blue); }
.qcfg-qty-inp { width: 42px; text-align: center; border: 1.5px solid var(--border-dark); border-radius: 6px; padding: 3px 4px; font-size: .82rem; font-weight: 700; color: var(--text-1); background: var(--surface); }
.qcfg-qty-inp:focus { outline: none; border-color: var(--blue); }
.qcfg-qty-lbl { font-size: .72rem; color: var(--text-2); font-weight: 600; }
.qcfg-view-btn { background: none; border: 1.5px solid var(--border); border-radius: 6px; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text-2); font-size: .85rem; flex-shrink: 0; align-self: flex-start; transition: border-color .12s, background .12s; text-decoration: none; }
.qcfg-view-btn:hover { border-color: var(--blue); background: var(--blue-bg); color: var(--blue); }

.qb-sum-row   { display: flex; justify-content: space-between; align-items: flex-start; padding: 9px 0; border-bottom: 1px solid var(--border); gap: 10px; }
.qb-sum-row:last-child { border-bottom: none; padding-bottom: 0; }
.qb-sum-name  { font-size: .82rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.qb-sum-meta  { font-size: .7rem; color: var(--text-2); margin-top: 1px; }
.qb-sum-price { font-size: .85rem; font-weight: 800; color: var(--blue); white-space: nowrap; }

.qb-total-box { margin-top: 14px; padding: 14px 16px; background: var(--navy); border-radius: var(--r); display: flex; justify-content: space-between; align-items: center; }
.qb-total-lbl { font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: rgba(255,255,255,.5); }
.qb-total-sub { font-size: .68rem; color: rgba(255,255,255,.35); margin-top: 2px; }
.qb-total-val { font-size: 1.45rem; font-weight: 900; color: #fff; letter-spacing: -.02em; }

.btn-generate { background: var(--brand); color: #fff; border: none; border-radius: var(--r); padding: 13px 20px; font-size: .95rem; font-weight: 700; width: 100%; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: background .15s, transform .1s, box-shadow .15s; box-shadow: 0 3px 10px rgba(175,129,92,.35); margin-top: 16px; }
.btn-generate:hover:not(:disabled) { background: var(--brand-h); transform: translateY(-1px); box-shadow: 0 5px 16px rgba(175,129,92,.45); }
.btn-generate:active:not(:disabled) { transform: translateY(0); }
.btn-generate:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.btn-preview-pdf { background: transparent; color: var(--text-2); border: 1.5px solid var(--border-dark); border-radius: var(--r); padding: 9px 20px; font-size: .85rem; font-weight: 600; width: 100%; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 7px; transition: border-color .12s, background .12s, color .12s; margin-top: 8px; }
.btn-preview-pdf:hover:not(:disabled) { border-color: var(--blue); background: var(--blue-bg); color: var(--blue); }
.btn-preview-pdf:disabled { opacity: .45; cursor: not-allowed; }
.qb-email-note { margin-top: 12px; padding: 10px 12px; background: #f0f9ff; border: 1px solid #bae6fd; border-radius: var(--r); font-size: .75rem; color: #0369a1; display: flex; gap: 8px; align-items: flex-start; line-height: 1.45; }

@keyframes qb-spin { to { transform: rotate(360deg); } }
.qb-spin { display: inline-block; width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: qb-spin .6s linear infinite; }
.btn-preview-pdf .qb-spin { border-color: rgba(0,0,0,.15); border-top-color: var(--blue); }

.tpl-radio-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.tpl-radio-item  { display: flex; align-items: flex-start; gap: 9px; padding: 9px 11px; border: 1.5px solid var(--border); border-radius: var(--r); cursor: pointer; transition: border-color .12s, background .12s; background: var(--surface); }
.tpl-radio-item:hover { border-color: var(--brand); background: #faf6f2; }
.tpl-radio-item input[type=radio] { accent-color: var(--brand); width: 15px; height: 15px; flex-shrink: 0; margin-top: 1px; cursor: pointer; }
.tpl-radio-item.checked { border-color: var(--brand); background: #fdf8f4; box-shadow: 0 0 0 3px rgba(175,129,92,.10); }
.tpl-radio-lbl  { font-size: .8rem; font-weight: 700; color: var(--text-1); line-height: 1.3; }
.tpl-radio-desc { font-size: .72rem; color: var(--text-2); margin-top: 1px; line-height: 1.35; }
.tpl-badge   { display: inline-block; padding: 1px 6px; border-radius: 3px; font-size: .65rem; font-weight: 800; letter-spacing: .04em; vertical-align: middle; margin-left: 5px; }
.tpl-badge-a { background: #dbeafe; color: #1e40af; }
.tpl-badge-b { background: #d1fae5; color: #065f46; }
.tpl-badge-c { background: #f1f5f9; color: #334155; }
.tpl-badge-0 { background: #fef3c7; color: #92400e; }
.note-tpl-item  { padding: 9px 14px; font-size: .82rem; color: var(--text-1); cursor: pointer; border-bottom: 1px solid var(--border); transition: background .1s; white-space: nowrap; }
.note-tpl-item:last-child { border-bottom: none; }
.note-tpl-item:hover { background: var(--blue-bg); color: var(--blue); }
.note-tpl-clear { color: var(--red) !important; }
.note-tpl-clear:hover { background: #fee2e2 !important; color: var(--red) !important; }


/* ==========================================================================
   22. CLIENT EDIT TABS + ITEMS — admin/client-edit.view.php
   ========================================================================== */

.ce-tabs-card  { overflow: hidden; }
.ce-tab-nav    { display: flex; background: var(--bg); border-bottom: 2px solid var(--border); }
.ce-tab-btn    { display: flex; align-items: center; gap: 7px; padding: 13px 20px; font-size: .85rem; font-weight: 600; background: transparent; border: none; border-bottom: 3px solid transparent; color: var(--text-2); cursor: pointer; transition: color .15s, border-color .15s; margin-bottom: -2px; white-space: nowrap; text-decoration: none; }
.ce-tab-btn:hover { color: var(--text-1); background: rgba(0,0,0,.03); }
.ce-tab-active { color: var(--brand-h) !important; border-bottom-color: var(--brand) !important; background: var(--surface) !important; }
.ce-tab-icon   { font-size: 1rem; }
.ce-tab-badge  { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; background: var(--brand); color: #fff; border-radius: 20px; font-size: .68rem; font-weight: 700; }
.ce-tab-panel        { display: none; padding: 20px 24px; }
.ce-tab-panel-active { display: block; }

.ce-items-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.ce-item         { border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.ce-item:hover   { border-color: var(--border-dark); box-shadow: var(--shadow-sm); }
.ce-item-default { border-color: var(--brand) !important; box-shadow: 0 0 0 3px rgba(175,129,92,.1); }
.ce-item-head    { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; background: var(--bg); border-bottom: 1px solid var(--border); }
.ce-item-default .ce-item-head { background: var(--brand-light); }
.ce-item-title   { display: flex; align-items: center; gap: 8px; font-size: .92rem; }
.ce-default-dot  { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); flex-shrink: 0; }
.ce-item-actions { display: flex; align-items: center; gap: 4px; }
.ce-action-btn   { width: 30px; height: 30px; border: none; background: transparent; border-radius: 6px; cursor: pointer; font-size: .9rem; display: flex; align-items: center; justify-content: center; transition: background .12s; }
.ce-action-btn:hover    { background: var(--border); }
.ce-action-star         { color: #f59e0b; font-size: 1.1rem; }
.ce-action-star:hover   { background: #fef3c7; }
.ce-action-del:hover    { background: #fee2e2; }
.ce-item-body  { padding: 10px 14px; font-size: .88rem; display: flex; flex-direction: column; gap: 5px; }
.ce-item-row   { display: flex; gap: 10px; align-items: baseline; }
.ce-item-label { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text-3); width: 52px; flex-shrink: 0; }
.ce-add-panel      { background: var(--brand-light); border: 2px dashed var(--brand); border-radius: var(--r); padding: 14px 18px; margin-bottom: 16px; }
.ce-add-panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.ce-edit-panel     { display: none; padding: 16px 14px; background: #fafafa; border-top: 1px solid var(--border); }
.ce-empty-state { text-align: center; padding: 32px 20px; border: 2px dashed var(--border); border-radius: var(--r); margin-bottom: 16px; }
.ce-empty-icon  { font-size: 2rem; margin-bottom: 8px; }
.ce-empty-text  { font-size: .88rem; color: var(--text-3); margin-bottom: 14px; }
.ce-sub-row     { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: var(--r); transition: border-color .15s, background .15s; }
.ce-sub-row:hover   { border-color: var(--brand-h); background: var(--brand-light); }
.ce-sub-checked { border-color: var(--brand); background: var(--brand-light); }


/* ==========================================================================
   23. CLIENT DASHBOARD — stats row, content grid
       Extras din client/dashboard.view.php
   ========================================================================== */

.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 30px; }
.stats-row-5 { grid-template-columns: repeat(5, 1fr); }
.stat-card  { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r2); padding: 20px 22px; display: flex; align-items: center; gap: 16px; transition: box-shadow .15s; }
.stat-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.07); }
.stat-ico.cfg { background: #eff6ff; } .stat-ico.cfg svg { stroke: var(--blue);  }
.stat-ico.ofr { background: #fdf4ec; } .stat-ico.ofr svg { stroke: var(--brand); }
.stat-ico.dev { background: #ecfdf5; } .stat-ico.dev svg { stroke: var(--green); }
.stat-n.cfg   { color: var(--blue);  }
.stat-n.ofr   { color: var(--brand); }
.stat-n.dev   { color: var(--green); }
.stat-lbl     { font-size: .76rem; color: var(--text-2); font-weight: 500; }
.content-grid { display: grid; gap: 18px; align-items: start; }


/* ==========================================================================
   24. UTILITY CLASSES — Eliminare inline styles (Faza 4.3)
   ========================================================================== */

/* Text alignment */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

/* Display utilities */
.d-none { display: none; }
.d-inline { display: inline; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

/* Flex utilities */
.flex-1 { flex: 1; }
.flex-center { display: flex; align-items: center; gap: 8px; }
.flex-end { display: flex; justify-content: flex-end; gap: 8px; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }

/* Grid utilities */
.grid-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-span-2 { grid-column: span 2; }

/* Spacing utilities */
.mb-0 { margin-bottom: 0; }
.mb-05 { margin-bottom: .5rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-15 { margin-bottom: 1.5rem; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.mb-24 { margin-bottom: 24px; }
.mt-20 { margin-top: 20px; }
.mt-22 { margin-top: 22px; }
.mt-6  { margin-top: 6px; }
.mt-16 { margin-top: 16px; }
.m-0 { margin: 0; }
.p-14-18 { padding: 14px 18px; }
.p-10-0 { padding: 10px 0; }
.p-28-24-80 { padding: 28px 24px 80px; }

/* Border utilities */
.border-top-section { margin: 14px 0 12px; padding-top: 12px; border-top: 1px solid var(--border); }

/* Color utilities */
.text-red { color: var(--red); }
.text-green { color: var(--green); }
.text-orange { color: var(--orange); }
.text-2 { color: var(--text-2); }
.text-3 { color: var(--text-3); }

/* Font utilities */
.fw-400 { font-weight: 400; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fs-75 { font-size: .75rem; }
.fs-88 { font-size: .88rem; }
.fs-135 { font-size: 1.35rem; }
.fs-3rem { font-size: 3rem; margin-bottom: 16px; }

/* Other utilities */
.overflow-x { overflow-x: auto; }
.max-w-280 { max-width: 280px; }
.accent-brand { accent-color: var(--brand); }
.sticky-top { position: sticky; top: 80px; }

/* Section label */
.section-label {
  color: var(--text-3);
  font-size: .73rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: .05em;
  margin-bottom: .5rem;
}

/* Grid layouts */
.grid-sidebar { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: start; }

/* Flash message */
.flash-success {
  margin-bottom: 20px;
  padding: 14px 18px;
  border-radius: var(--r);
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #6ee7b7;
}
.flash-error {
  margin-bottom: 20px;
  padding: 14px 18px;
  border-radius: var(--r);
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

/* Additional utility classes (Phase 2) */
.mb-8 { margin-bottom: 8px; }
.mb-10 { margin-bottom: 10px; }
.mb-12 { margin-bottom: 12px; }
.mb-14 { margin-bottom: 14px; }
.mb-18 { margin-bottom: 18px; }
.p-28-24-60 { padding: 28px 24px 60px; }
.text-1 { color: var(--text-1); }
.fs-83 { font-size: .83rem; }
.fs-85 { font-size: .85rem; }
.fs-80 { font-size: .8rem; }
.fs-78 { font-size: .78rem; }
.fs-82 { font-size: .82rem; }
.fs-73 { font-size: .73rem; }
.fs-65 { font-size: .65rem; }
.fs-25rem-mb16 { font-size: 2.5rem; margin-bottom: 16px; }
.overflow-hidden { overflow: hidden; }
.w-180 { width: 180px; }
.cursor-pointer { cursor: pointer; }
.flex-1-minw0 { flex: 1; min-width: 0; }
.flex-col-gap16 { display: flex; flex-direction: column; gap: 16px; }
.empty-state-text { text-align: center; padding: 40px 20px; color: var(--text-3); }
.empty-state-sm { text-align: center; padding: 32px; color: var(--text-2); }
.empty-state-lg { text-align: center; padding: 48px; }
.label-uppercase { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.badge-error-fill { background: #fee2e2; color: #ef4444; border: none; }
/* ==========================================================================
   PATCH v1.0.1 — Clase din machete lipsă din temă
   Generat: 09.03.2026
   Surse: mockup-A*/P*/C* (18 machete HTML)
   Total clase adăugate: 28
   ========================================================================== */


/* .addr-name */
.addr-name { font-size: .8rem; font-weight: 600; color: var(--text-1); }
/* .addr-row */
.addr-row {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 11px 18px;
  border-bottom: 1px solid #f0f3f7;
  transition: background .1s; cursor: pointer;
}
/* .amber — scoped to row contexts only */
.addr-row.amber, .bill-row.amber, .dev-row.amber { background: var(--amber-bg); }
/* .bill-cui */
.bill-cui { font-size: .69rem; color: var(--text-3); margin-top: 1px; }
/* .bill-name */
.bill-name { font-size: .8rem; font-weight: 600; color: var(--text-1); }
/* .bill-row */
.bill-row {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 18px;
  border-bottom: 1px solid #f0f3f7;
  transition: background .1s; cursor: pointer;
}
/* .blue — scoped to bill-row context only */
.bill-row.blue { background: var(--blue-bg); }
/* .cfg-acts */
.cfg-acts { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
/* .cfg-info */
.cfg-info { flex: 1; min-width: 0; }
/* .cfg-name */
.cfg-name { font-size: .85rem; font-weight: 700; color: var(--text-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* .cfg-price */
.cfg-price { font-size: .8rem; font-weight: 700; color: var(--brand); font-family: 'DM Mono', monospace; }
/* .cfg-row */
.cfg-row {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  transition: background .1s;
}
/* .cfg-sub */
.cfg-sub { font-size: .72rem; color: var(--text-3); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* .cfg-thumb */
.cfg-thumb {
  width: 64px; height: 46px; border-radius: 8px;
  background: var(--bg); flex-shrink: 0; overflow: hidden;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
}
/* .cfg-thumb-ph */
.cfg-thumb-ph { font-size: .55rem; color: var(--text-4); text-align: center; padding: 4px; line-height: 1.3; font-weight: 600; }
/* .checked */
.checked { border-color: var(--brand); background: var(--brand-light); font-weight: 600; color: var(--brand); }
/* .cyan — scoped to row contexts only */
.addr-row.cyan, .bill-row.cyan, .dev-row.cyan { background: var(--cyan-bg); }
/* .dev-meta */
.dev-meta { font-size: .7rem; color: var(--text-3); margin-top: 2px; }
/* .dev-name */
.dev-name { font-weight: 600; color: var(--text-1); flex: 1; }
/* .dev-row */
.dev-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 18px;
  border-bottom: 1px solid #f0f3f7;
  font-size: .8rem;
}
/* .gold — scoped to row contexts only */
.addr-row.gold, .bill-row.gold, .dev-row.gold { background: var(--brand-light); }
/* .green — scoped to row contexts only */
.addr-row.green, .bill-row.green, .dev-row.green { background: var(--green-bg); }
/* .orange — scoped to row contexts only */
.addr-row.orange, .bill-row.orange, .dev-row.orange { background: #fff7ed; }
/* .red — scoped to row contexts only */
.addr-row.red, .bill-row.red, .dev-row.red { background: var(--red-bg); }
/* .spec-row */
.spec-row {
  display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
}
/* .up */
.up   { color: var(--green); }
/* .violet — scoped to row contexts only */
.addr-row.violet, .bill-row.violet, .dev-row.violet { background: var(--violet-bg); }
/* .warn */
.warn { color: var(--amber); }

/* .danger — adăugată manual (lipsă din machete) */
.danger { background: var(--red-bg); color: var(--red); }

/* ── Utility additions — Faza 4.3 inline style elimination ──────────────────── */
.flex-wrap      { display: flex; flex-wrap: wrap; }
.flex-gap-4     { display: flex; gap: 4px; }
.flex-gap-6     { display: flex; gap: 6px; }
.flex-gap-8     { display: flex; gap: 8px; }
.flex-gap-10    { display: flex; gap: 10px; }
.flex-gap-12    { display: flex; gap: 12px; }
.flex-gap-20    { display: flex; gap: 20px; }
.flex-ai-center-gap-8  { display: flex; align-items: center; gap: 8px; }
.flex-ai-center-gap-12 { display: flex; align-items: center; gap: 12px; }
.flex-ai-center-gap-6  { display: flex; align-items: center; gap: 6px; }
.flex-ai-center-gap-4  { display: flex; align-items: center; gap: 4px; }
.flex-ai-center-wrap   { display: flex; align-items: center; flex-wrap: wrap; }
.flex-jc-center { display: flex; justify-content: center; }
.flex-jc-end    { display: flex; justify-content: flex-end; }
.flex-jc-between-ai-start { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 16px; }
.flex-col       { display: flex; flex-direction: column; }
.flex-col-gap-8 { display: flex; flex-direction: column; gap: 8px; }
.flex-col-gap-12{ display: flex; flex-direction: column; gap: 12px; }
.flex-inline    { display: inline-flex; align-items: center; gap: 5px; }
.flex-shrink-0  { flex-shrink: 0; }
.gap-8          { gap: 8px; }
.gap-16         { gap: 16px; }
.align-center   { align-items: center; }
.mt-2           { margin-top: 2px; }
.mt-4           { margin-top: 4px; }
.mt-8           { margin-top: 8px; }
.mt-12          { margin-top: 12px; }
.mt-14          { margin-top: 14px; }
.mt-1rem        { margin-top: 1rem; }
.mt-75          { margin-top: .75rem; }
.ml-4           { margin-left: 4px; }
.ml-8           { margin-left: 8px; }
.ml-12          { margin-left: 12px; }
.ml-auto        { margin-left: auto; }
.p-16           { padding: 16px; }
.p-20           { padding: 20px; }
.p-24           { padding: 24px; }
.p-16-20        { padding: 16px 20px; }
.p-20-18        { padding: 20px 18px; }
.p-10-18        { padding: 10px 18px; }
.p-40-32        { padding: 40px 32px; }
.p-40-tc        { padding: 40px; text-align: center; }
.p-center-auth  { min-height: 80vh; display: flex; align-items: center; justify-content: center; padding: 32px 16px; }
.p-30-tc        { padding: 30px; text-align: center; color: var(--text-3); }
.fw-500         { font-weight: 500; }
.fw-800         { font-weight: 800; }
.fs-62          { font-size: .62rem; }
.fs-68          { font-size: .68rem; }
.fs-70          { font-size: .7rem; }
.fs-72          { font-size: .72rem; }
.fs-74          { font-size: .74rem; }
.fs-75-text3    { font-size: .75rem; color: var(--text-3); }
.fs-79          { font-size: .79rem; }
.fs-9           { font-size: .9rem; }
.fs-95          { font-size: .95rem; }
.fs-1rem        { font-size: 1rem; }
.fs-11          { font-size: 1.1rem; }
.fs-12          { font-size: 1.2rem; }
.fs-13          { font-size: 1.3rem; }
.fs-14          { font-size: 1.4rem; }
.fs-25          { font-size: 2.5rem; }
.fs-6rem        { font-size: 6rem; font-weight: 800; line-height: 1; margin-bottom: 16px; }
.lh-16          { line-height: 1.6; }
.lh-17          { line-height: 1.7; }
.text-blue      { color: var(--blue); }
.text-brand     { color: var(--brand); }
.text-amber     { color: #f59e0b; }
.text-red-ef    { color: #ef4444; }
.text-green-22  { color: #22c55e; }
.bg-blue-info   { padding: 14px 16px; background: var(--blue-bg); border-radius: var(--r); border: 1px solid #bfdbfe; }
.font-mono      { font-family: 'DM Mono', monospace; }
.font-mono-sm   { font-family: 'DM Mono', monospace; font-size: .68rem; color: var(--text-3); }
.font-mono-med  { font-family: 'DM Mono', monospace; font-size: .84rem; font-weight: 700; color: var(--brand); }
.mono-letter    { font-family: monospace; letter-spacing: .05em; }
.uppercase-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; font-weight: 700; color: var(--text-3); margin-bottom: 6px; }
.uppercase-sm   { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--text-2); margin-bottom: 8px; }
.text-truncate  { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.text-nowrap    { white-space: nowrap; }
.text-italic    { font-style: italic; }
.w-full         { width: 100%; }
.w-60           { width: 60px; }
.w-90           { width: 90px; }
.w-100          { width: 100px; }
.w-140          { width: 140px; }
.w-160          { width: 160px; }
.max-w-100      { max-width: 100px; }
.max-w-160      { max-width: 160px; }
.max-w-260      { max-width: 260px; }
.max-w-320      { max-width: 320px; }
.max-w-340      { max-width: 340px; }
.max-w-360      { max-width: 360px; }
.max-w-380      { max-width: 380px; }
.max-w-440      { max-width: 440px; }
.max-w-480      { max-width: 480px; }
.max-w-560      { max-width: 560px; }
.max-w-620      { max-width: 620px; }
.max-w-640      { max-width: 640px; }
.max-h-200      { max-height: 200px; }
.max-h-450      { max-height: 450px; overflow-y: auto; border: 1px solid var(--border); border-radius: var(--r); }
.h-6-progress   { height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.h-progress-bar { height: 100%; background: var(--green); border-radius: 3px; width: 0%; transition: width .3s ease; }
.h-1-divider    { height: 1px; background: var(--border); margin: 4px 0 18px; }
.border-left-brand { border-left: 4px solid var(--brand); }
.border-top     { border-top: 1px solid var(--border); }
.border-top-pt  { padding-top: 10px; border-top: 1px solid var(--border); }
.modal-footer   { padding: 16px 20px; border-top: 1px solid var(--border); display: flex; gap: 8px; justify-content: space-between; align-items: center; }
.modal-actions  { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.modal-actions-end { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; }
.section-hd     { padding: 16px 0 4px; }
.section-hd-sm  { padding: 14px 0 2px; }
.card-body-p    { padding: 16px; }
.card-hd-brand  { background: var(--bg); padding: 10px 16px; font-weight: 700; font-size: .85rem; }
.card-border    { border: 1.5px solid var(--border); border-radius: var(--r); overflow: hidden; margin-bottom: 16px; }
.card-p20       { padding: 20px; }
.card-p24       { padding: 24px; }
.inline-label   { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: .9rem; }
.inline-label-sm { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: .88rem; }
.search-input-wrap { position: relative; flex: 1; max-width: 360px; }
.search-icon-l  { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 14px; height: 14px; stroke: var(--text-3); fill: none; pointer-events: none; }
.search-icon-r  { position: absolute; right: 9px; top: 50%; transform: translateY(-50%); width: 13px; height: 13px; stroke: var(--text-3); fill: none; pointer-events: none; }
.input-search   { width: 100%; padding: 8px 12px 8px 32px; border: 1px solid var(--border); border-radius: 9px; font-size: .82rem; outline: none; font-family: 'DM Sans', sans-serif; background: var(--surface); }
.select-filter  { padding: 8px 32px 8px 11px; border: 1px solid var(--border); border-radius: 9px; font-size: .82rem; color: var(--text-1); background: var(--surface); outline: none; appearance: none; cursor: pointer; font-family: 'DM Sans', sans-serif; }
.btn-filter     { padding: 9px 16px; border: 1px solid var(--border); border-radius: 9px; background: none; font-size: .82rem; cursor: pointer; color: var(--text-2); }
.btn-danger-fill { background: #ef4444; color: #fff; border: none; }
.btn-green-fill  { color: #22c55e; border-color: #22c55e; }
.btn-violet      { background: #7c3aed; color: #fff; }
.btn-inline-link { font-size: .78rem; color: var(--blue); background: none; border: none; cursor: pointer; padding: 4px 0; }
.btn-link-brand  { font-size: .75rem; color: var(--brand); font-weight: 600; background: none; border: none; cursor: pointer; }
.toolbar-wrap   { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.toolbar-wrap-20 { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 20px; }
.table-foot-bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-top: 1px solid var(--border); font-size: .82rem; }
.img-thumb-sm   { width: 48px; height: 36px; object-fit: cover; border-radius: 6px; }
.img-thumb-opt  { width: 36px; height: 28px; object-fit: cover; border-radius: 3px; }
.img-preview    { max-width: 100%; max-height: 200px; border-radius: 8px; }
.img-cover-full { width: 100%; height: 130px; object-fit: cover; border-radius: 8px; opacity: .9; }
.avatar-color   { width: 20px; height: 20px; border-radius: 50%; border: 2px solid rgba(0,0,0,.1); flex-shrink: 0; }
.sticky-side    { position: sticky; top: 76px; }
.sticky-side-col { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 12px; }
.grid-layout-1-300 { display: grid; grid-template-columns: 1fr 300px; gap: 24px; align-items: start; }
.grid-layout-1-320 { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }
.grid-2col-24   { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; font-size: .88rem; }
.grid-form      { display: grid; grid-template-columns: 2fr 1.2fr 1fr 120px; gap: 16px; align-items: end; }
.center-card-480 { width: 100%; max-width: 480px; }
.center-card-420 { width: 100%; max-width: 420px; }
.center-card-440 { width: 100%; max-width: 440px; padding: 28px; margin: 16px; }
.center-card-640 { max-width: 640px; padding: 40px 24px 80px; }
.tabs-pill       { display: flex; gap: 4px; background: var(--bg); border: 1px solid var(--border); border-radius: 22px; padding: 3px; }
.opacity-low     { opacity: .7; }
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.badge-blue-sm  { display: inline-flex; align-items: center; gap: 5px; font-size: .72rem; font-weight: 700; color: var(--blue); background: var(--blue-bg); border: 1px solid #bfdbfe; border-radius: 5px; padding: 3px 10px; cursor: pointer; transition: background .12s; }
.section-label-xs { color: var(--text-3); font-size: .73rem; text-transform: uppercase; font-weight: 700; }
.label-flex-start  { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }

/* ══════════════════════════════════════════════════════════════════════════
   COMPONENTE EXTRACTE DIN MACHETE — Reutilizabile universal
   Source: mockup-C1-client-dashboard.html
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Grid 2-col (main + sidebar) ───────────────────────────────────────── */
.grid-main { display: grid; grid-template-columns: 1fr 320px; gap: 18px; align-items: start; }

/* ── Config/Item List Pattern ──────────────────────────────────────────── */
.cfg-list { padding: 4px 0; }
.cfg-row {
  display: flex; align-items: center; gap: 14px; padding: 12px 20px;
  border-bottom: 1px solid var(--border); transition: background .1s;
}
.cfg-row:last-child { border-bottom: none; }
.cfg-row:hover { background: #fafbfc; }

.cfg-thumb {
  width: 64px; height: 46px; border-radius: 8px; background: var(--bg);
  flex-shrink: 0; overflow: hidden; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
}
.cfg-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cfg-thumb-ph {
  font-size: .55rem; color: var(--text-4); text-align: center;
  padding: 4px; line-height: 1.3; font-weight: 600;
}

.cfg-info { flex: 1; min-width: 0; }
.cfg-name {
  font-size: .85rem; font-weight: 700; color: var(--text-1);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cfg-sub {
  font-size: .72rem; color: var(--text-3); margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cfg-meta { display: flex; align-items: center; gap: 8px; margin-top: 5px; flex-wrap: wrap; }
.cfg-price { font-size: .8rem; font-weight: 700; color: var(--brand); font-family: 'DM Mono', monospace; }
.cfg-acts { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }

/* ── Badges (additional states) ────────────────────────────────────────── */
.badge-saved   { background: #ecfdf5; color: #059669; }
.badge-prog    { background: #eff6ff; color: var(--blue); }
.badge-pending { background: #fffbeb; color: #d97706; }

/* ── Button styles (additional) ────────────────────────────────────────── */
.btn-outline {
  background: var(--surface); border-color: var(--border); color: var(--text-2);
}
.btn-outline:hover {
  background: var(--bg); border-color: var(--border-dark); color: var(--text-1);
}

/* ── Table Pattern (quotes, etc.) ──────────────────────────────────────── */
.qt { width: 100%; border-collapse: collapse; font-size: .78rem; }
.qt thead { background: var(--bg); }
.qt th {
  padding: 9px 16px; text-align: left; font-size: .68rem; font-weight: 700;
  color: var(--text-3); text-transform: uppercase; letter-spacing: .03em;
  border-bottom: 1px solid var(--border);
}
.qt td { padding: 11px 16px; border-bottom: 1px solid var(--border); color: var(--text-2); }
.qt tbody tr:hover { background: #fafbfc; }
.qt-st {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px;
  border-radius: 5px; font-size: .65rem; font-weight: 700;
}

/* ── Empty State (generic) ─────────────────────────────────────────────── */
.empty-cfg { padding: 52px 32px; text-align: center; }
.empty-cfg-ico { font-size: 3.3rem; margin-bottom: 14px; opacity: .5; }
.empty-cfg-t { font-size: .95rem; font-weight: 700; color: var(--text-2); margin-bottom: 6px; }
.empty-cfg-s { font-size: .8rem; color: var(--text-3); margin-bottom: 18px; }

/* ── Sidebar Card Pattern ──────────────────────────────────────────────── */
.side-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r2); overflow: hidden; margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}
.side-card:last-child { margin-bottom: 0; }

.side-head {
  padding: 14px 18px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.side-title { font-size: .88rem; font-weight: 700; color: var(--text-1); }
.side-title-en {
  font-size: .62rem; color: var(--text-4); font-weight: 500;
  letter-spacing: .04em; text-transform: uppercase; margin-top: 1px;
}
.side-body { padding: 0; }

.side-item {
  display: flex; align-items: center; gap: 10px; padding: 11px 18px;
  border-bottom: 1px solid var(--border); transition: background .1s;
}
.side-item:last-child { border-bottom: none; }
.side-item:hover { background: #fafbfc; }

.side-ico {
  width: 32px; height: 32px; border-radius: 8px; background: var(--bg);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  color: var(--text-3);
}
.side-ico svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.side-ico.cur { background: var(--green-bg); color: var(--green); }

.side-info { flex: 1; min-width: 0; }
.side-name {
  font-size: .8rem; font-weight: 600; color: var(--text-1);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.side-sub { font-size: .68rem; color: var(--text-3); margin-top: 1px; }
.side-badge {
  padding: 2px 7px; background: var(--green-bg); color: var(--green);
  border-radius: 4px; font-size: .62rem; font-weight: 700;
}

/* ══════════════════════════════════════════════════════════════════════════
   COMPONENTE ACCOUNT SETTINGS — Din mockup-C2
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Account Grid Layout ───────────────────────────────────────────────── */
.acc-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 22px;
  align-items: start;
}

/* ── Tab Navigation Sidebar ────────────────────────────────────────────── */
.tab-nav {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  overflow: hidden;
  position: sticky;
  top: 78px;
  box-shadow: var(--shadow-sm);
}

.tab-nav-head {
  padding: 12px 16px 10px;
  border-bottom: 1px solid var(--border);
}

.tab-nav-title {
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-3);
}

.tab-a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: .82rem;
  font-weight: 500;
  color: var(--text-2);
  border-left: 2.5px solid transparent;
  transition: all .12s;
  cursor: pointer;
  border-bottom: 1px solid #f5f7fa;
}

.tab-a:last-child {
  border-bottom: none;
}

.tab-a:hover {
  background: var(--bg);
  color: var(--text-1);
}

.tab-a.on {
  border-left-color: var(--brand);
  background: var(--brand-light);
  color: var(--brand);
  font-weight: 700;
}

.tab-a-ico {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  transition: all .12s;
}

.tab-a.on .tab-a-ico {
  background: rgba(175, 129, 92, .15);
  border-color: rgba(175, 129, 92, .2);
}

.tab-a-ico svg {
  width: 13px;
  height: 13px;
  stroke: var(--text-3);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tab-a.on .tab-a-ico svg {
  stroke: var(--brand);
}

.tab-a-lbl {
  flex: 1;
  min-width: 0;
}

.tab-a-ro {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tab-a-en {
  display: block;
  font-size: .62rem;
  font-weight: 400;
  color: var(--text-4);
  margin-top: 1px;
}

.tab-a.on .tab-a-en {
  color: rgba(175, 129, 92, .6);
}

/* ── Tab Panels ────────────────────────────────────────────────────────── */
.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* ── Form Sections ─────────────────────────────────────────────────────── */
.form-section {
  margin-bottom: 20px;
}

.form-section:last-child {
  margin-bottom: 0;
}

.form-section-hd {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.form-section-hd svg {
  width: 13px;
  height: 13px;
  stroke: var(--text-3);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Form Rows ─────────────────────────────────────────────────────────── */
.form-row {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
}

.form-row.cols-2 {
  grid-template-columns: 1fr 1fr;
}

.form-row.cols-3 {
  grid-template-columns: 1fr 1fr 1fr;
}

.form-row.cols-full {
  grid-template-columns: 1fr;
}

.form-row:last-child {
  margin-bottom: 0;
}

/* ── Form Elements (extending existing) ────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-label {
  font-size: .76rem;
  font-weight: 600;
  color: var(--text-2);
}

.form-label .req {
  color: var(--red);
  margin-left: 2px;
}

.form-hint {
  font-size: .68rem;
  color: var(--text-3);
  margin-top: 2px;
}

.form-control {
  height: 38px;
  padding: 0 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: .83rem;
  font-family: 'DM Sans', sans-serif;
  background: var(--surface);
  color: var(--text-1);
  transition: border-color .12s, box-shadow .12s;
  outline: none;
}

.form-control:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(175, 129, 92, .12);
}

.form-control::placeholder {
  color: var(--text-4);
}

.form-control.mono {
  font-family: 'DM Mono', monospace;
  font-size: .8rem;
  letter-spacing: .04em;
}

select.form-control {
  cursor: pointer;
}

textarea.form-control {
  height: auto;
  padding: 10px 12px;
  resize: vertical;
  min-height: 80px;
}

.form-foot {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 24px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.form-foot.space-between { justify-content: space-between; }

/* ── Radio Group ───────────────────────────────────────────────────────── */
.radio-group {
  display: flex;
  gap: 12px;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  font-size: .82rem;
  color: var(--text-2);
}

.radio-label input[type="radio"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 1023px) {
  .acc-grid {
    grid-template-columns: 1fr;
  }

  .tab-nav {
    position: static;
  }
}

@media (max-width: 639px) {
  .form-row.cols-2,
  .form-row.cols-3 {
    grid-template-columns: 1fr;
  }
}

/* ── A2 Products — clase adăugate (mockup-A2-produse) ──────────────────────── */

/* Checkbox styled row */
.fg-check {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 11px; border: 1px solid var(--border); border-radius: 8px;
  cursor: pointer; transition: border-color .13s; font-size: .82rem;
  font-weight: 500; color: var(--text-2);
}
.fg-check:hover { border-color: var(--brand); }
.fg-check input[type="checkbox"] { width: auto; flex-shrink: 0; }
.fg-check-on { background: var(--green-bg); border-color: #a7f3d0; color: #065f46; }

/* Image upload zone */
.img-zone {
  border: 2px dashed var(--border-dark); border-radius: var(--r);
  padding: 20px; text-align: center; cursor: pointer;
  transition: all .13s; background: var(--bg); margin-bottom: 10px;
  min-height: 130px; display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 8px;
}
.img-zone:hover { border-color: var(--brand); background: var(--brand-light); }
.img-zone.has-img { border-style: solid; border-color: var(--border); padding: 10px; }
.img-zone img { max-width: 100%; max-height: 150px; border-radius: 8px; object-fit: contain; }
.img-zone-ico { width: 36px; height: 36px; stroke: var(--text-3); fill: none; }
.img-zone-txt { font-size: .76rem; color: var(--text-3); }

/* Spec delete button */
.spec-del {
  width: 28px; height: 28px; flex-shrink: 0; border-radius: 6px;
  border: 1px solid var(--border); background: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-3); transition: all .12s;
}
.spec-del:hover { background: var(--red-bg); border-color: #fca5a5; color: var(--red); }
.spec-del svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }

/* Add spec link-button */
.btn-add-spec {
  background: none; border: 1px dashed var(--border-dark);
  border-radius: 7px; padding: 6px 12px;
  font-size: .75rem; font-weight: 600; color: var(--text-2);
  cursor: pointer; transition: all .12s; font-family: var(--font-body, inherit);
}
.btn-add-spec:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-light); }

/* Price mono */
.price-mono { font-family: var(--font-mono); font-weight: 700; color: var(--brand); white-space: nowrap; }

/* Product preview card (in form) */
.prod-preview-card {
  border: 1px solid var(--border); border-radius: var(--r2);
  padding: 14px; background: var(--bg);
  display: flex; gap: 14px; align-items: flex-start;
}
.prod-preview-thumb {
  width: 52px; height: 52px; border-radius: 10px;
  background: var(--border); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.prod-preview-thumb svg { width: 24px; height: 24px; stroke: var(--text-4); fill: none; }

/* form-foot link (right side) */
.form-foot-link {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .78rem; color: var(--brand); font-weight: 600;
  transition: opacity .12s;
}
.form-foot-link:hover { opacity: .75; }

/* btn-ico variants */
.btn-ico-danger { }
.btn-ico-danger:hover { background: var(--red-bg) !important; border-color: #fca5a5 !important; color: var(--red) !important; }
.btn-ico-ok { color: var(--green); }
.btn-ico-ok:hover { background: var(--green-bg) !important; border-color: #6ee7b7 !important; color: #065f46 !important; }

/* prod-tbl — tabel specific pagina produse */
.prod-tbl { width: 100%; border-collapse: collapse; }
.prod-tbl thead tr { border-bottom: 1px solid var(--border); }
.prod-tbl th {
  font-size: .67rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-3); padding: 10px 14px; text-align: left; white-space: nowrap;
  background: var(--bg);
}
.prod-tbl td { padding: 11px 14px; border-bottom: 1px solid #f0f3f7; font-size: .82rem; vertical-align: middle; }
.prod-tbl tbody tr:last-child td { border-bottom: none; }
.prod-tbl tbody tr:hover td { background: #fafbfd; }
.prod-tbl tbody tr.inactive td { opacity: .5; }
.tbl-acts { display: flex; align-items: center; gap: 5px; justify-content: center; }
.badge-amber { background: var(--amber-bg); color: #92400e; }

/* ==========================================================================
   26. TOPBAR USER MENU — tb-user + dropdown
       Migrat din patches (phase1-layouts-components). Folosit în topbar.php.
   ========================================================================== */

.tb-user {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 12px 6px 6px;
  border: 1px solid var(--border); border-radius: 8px;
  cursor: pointer; transition: all var(--t);
  position: relative;
}
.tb-user:hover { background: var(--bg); border-color: var(--border-dark); }
.tb-user-av {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-h));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .72rem; flex-shrink: 0;
}
.tb-user-n    { font-size: .82rem; font-weight: 600; color: var(--text-1); }
.tb-user-caret { width: 14px; height: 14px; stroke: var(--text-3); stroke-width: 2; fill: none; }
.tb-user-drop {
  position: absolute; top: 100%; right: 0; margin-top: 8px;
  min-width: 200px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 8px;
  box-shadow: var(--shadow-md); padding: 8px 0;
  display: none; z-index: var(--z-dropdown);
}
.tb-user-drop.open { display: block; }
.tb-user-drop a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; color: var(--text-1);
  font-size: .82rem; transition: background var(--t);
}
.tb-user-drop a:hover { background: var(--bg); }
.tb-user-drop a svg { width: 15px; height: 15px; stroke: var(--text-3); fill: none; flex-shrink: 0; }

/* ==========================================================================
   27. ACCOUNT SETTINGS TABS — acc-tabs / acc-sec
       Migrat din phase2. Folosit în client/account-settings.view.php.
   ========================================================================== */

.acc-tabs {
  display: flex; gap: 4px;
  border-bottom: 2px solid var(--border); margin-bottom: 24px;
}
.acc-tab {
  padding: 10px 18px; font-size: .84rem; font-weight: 600;
  color: var(--text-3); background: transparent; border: none;
  border-bottom: 2px solid transparent; margin-bottom: -2px;
  cursor: pointer; transition: color var(--t), border-color var(--t);
}
.acc-tab:hover { color: var(--text-1); }
.acc-tab.active { color: var(--brand); border-bottom-color: var(--brand); }
.acc-sec { display: none; }
.acc-sec.active { display: block; }
.acc-sec-head {
  font-size: 1.05rem; font-weight: 700; color: var(--text-1);
  margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border);
}

/* ==========================================================================
   28. QUOTE BUILDER STEPS — qb-step
       Migrat din phase2. Folosit în admin/quote-builder.view.php.
   ========================================================================== */

.qb-step {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: 20px; margin-bottom: 16px;
}
.qb-step-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border);
}
.qb-step-title { font-size: 1rem; font-weight: 700; color: var(--text-1); }
.qb-step-badge {
  font-size: .7rem; padding: 4px 10px; background: var(--bg);
  border-radius: var(--r-full); font-weight: 600; color: var(--text-3);
}
.qb-step-badge.complete { background: var(--green-bg); color: var(--green); }

/* ==========================================================================
   29. UI STATES — loading, disabled, error, success, focus, tooltips, skeleton
       Migrat din phase3-states-ui. Toate paginile.
   ========================================================================== */

/* Loading overlay */
.loading-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.6);
  z-index: var(--z-modal); display: none;
  align-items: center; justify-content: center;
}
.loading-overlay.active { display: flex; }
.loading-spinner { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.spinner {
  width: 44px; height: 44px;
  border: 3px solid rgba(255,255,255,.2);
  border-top-color: var(--brand); border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text { color: #fff; font-size: .88rem; font-weight: 500; }

/* Btn loading state */
.btn-loading { position: relative; pointer-events: none; }
.btn-loading::before {
  content: ''; position: absolute; top: 50%; left: 50%;
  width: 15px; height: 15px; margin: -7.5px 0 0 -7.5px;
  border: 2px solid rgba(255,255,255,.3); border-top-color: #fff;
  border-radius: 50%; animation: spin .6s linear infinite;
}
.btn-loading span { opacity: 0; }

/* Disabled */
button:disabled, .btn:disabled, input[type="submit"]:disabled {
  opacity: .5; cursor: not-allowed; pointer-events: none;
}

/* Form error/success states */
.fg.error input, .fg.error textarea, .fg.error select {
  border-color: var(--red); background: var(--red-bg);
}
.fg.error input:focus, .fg.error textarea:focus, .fg.error select:focus {
  outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(239,68,68,.1);
}
.fg-error {
  display: none; font-size: .75rem; color: var(--red); margin-top: 5px;
  padding: 7px 11px; background: var(--red-bg);
  border-radius: 6px; border-left: 3px solid var(--red); line-height: 1.4;
}
.fg.error .fg-error { display: block; }
.fg.success input, .fg.success textarea, .fg.success select {
  border-color: var(--green); background: var(--green-bg);
}

/* Focus visible — accessibility */
button:focus-visible, a:focus-visible,
input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--brand); outline-offset: 2px;
}

/* Skip link */
.skip-link {
  position: absolute; top: -40px; left: 0;
  background: var(--brand); color: #fff; padding: 8px 16px;
  text-decoration: none; z-index: 100000;
}
.skip-link:focus { top: 0; }

/* Tooltips */
[data-tooltip] { position: relative; cursor: help; }
[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute; bottom: 100%; left: 50%;
  transform: translateX(-50%) translateY(-8px);
  padding: 5px 9px; background: rgba(0,0,0,.88); color: #fff;
  font-size: .72rem; border-radius: 4px; white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity var(--t), transform var(--t); z-index: 1000;
}
[data-tooltip]:hover::after { opacity: 1; transform: translateX(-50%) translateY(-4px); }

/* Skeleton loader */
.skeleton {
  background: linear-gradient(90deg, var(--bg) 25%, var(--border) 50%, var(--bg) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite; border-radius: 4px;
}
@keyframes skeleton-loading {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton-text  { height: 14px; margin-bottom: 8px; }
.skeleton-title { height: 22px; width: 55%; margin-bottom: 12px; }
.skeleton-card  { height: 180px; border-radius: var(--r); }

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* Print */
@media print {
  .sb, .topbar, .btn-hamburger, .btn, .alert, .loading-overlay, .sb-overlay { display: none !important; }
  .main { margin-left: 0 !important; }
  .content { max-width: 100% !important; padding: 0 !important; }
}

/* Accent helpers */
.brand-bg { background: var(--brand-light); }
.accent-border { border-left: 4px solid var(--brand); }

/* ==========================================================================
   30. CLASE RECUPERATE DIN PATCHES + CLASE NOI DIN VIEWS
       Recuperate la consolidare Opțiunea A — 10.03.2026
   ========================================================================== */

/* ── Topbar search (tbl-search) ────────────────────────────────────────────── */
.tbl-search {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 8px; padding: 6px 12px;
  transition: border-color var(--t);
}
.tbl-search:focus-within { border-color: var(--brand); }
.tbl-search svg { width: 14px; height: 14px; stroke: var(--text-3); fill: none; flex-shrink: 0; }
.tbl-search input {
  border: none; background: none; outline: none;
  font-size: .8rem; color: var(--text-1); font-family: var(--font-base);
  width: 180px;
}
.tbl-search input::placeholder { color: var(--text-3); }

/* ── Toolbar aliases (views folosesc -left/-right, CSS avea -l/-r) ──────── */
.tbl-toolbar-left  { display: flex; align-items: center; gap: 8px; flex: 1; flex-wrap: wrap; }
.tbl-toolbar-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.tbl-filter-btn {
  padding: 7px 14px; background: none;
  border: 1px solid var(--border); border-radius: 7px;
  font-size: .78rem; font-weight: 500; color: var(--text-2);
  cursor: pointer; transition: all var(--t); font-family: var(--font-base);
}
.tbl-filter-btn:hover { background: var(--bg); }
.tbl-filter-btn.on { background: var(--brand-light); border-color: var(--brand); color: var(--brand); }

/* ── Alert icon/text (flash.php) ────────────────────────────────────────── */
.alert-icon { font-size: 1rem; flex-shrink: 0; line-height: 1.5; }
.alert-text { flex: 1; }

/* ── Footer (footer.php folosește .ftr) ─────────────────────────────────── */
.ftr {
  padding: 14px 28px 20px; text-align: center;
  font-size: .7rem; color: var(--text-4);
  border-top: 1px solid var(--border); margin-top: auto;
}
.ftr a { color: var(--text-3); transition: color var(--t); }
.ftr a:hover { color: var(--brand); }

/* ── Modal content (modal.php) ──────────────────────────────────────────── */
.modal-content {
  background: var(--surface); border-radius: var(--r3);
  box-shadow: 0 24px 80px rgba(0,0,0,.25);
  width: 100%; max-width: 520px; overflow: hidden;
  position: relative; z-index: var(--z-modal);
}

/* ── Empty state (empty-state.php) ─────────────────────────────────────── */
.empty-state {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 60px 32px; text-align: center;
}
.empty-state-ico   { font-size: 3.2rem; margin-bottom: 14px; opacity: .45; }
.empty-state-title { font-size: 1.05rem; font-weight: 700; color: var(--text-1); margin-bottom: 6px; }
.empty-state-msg   { font-size: .84rem; color: var(--text-3); max-width: 380px; line-height: 1.55; }
.empty-state.empty-state-sm { padding: 36px 20px; }
.empty-state.empty-state-sm .empty-state-ico   { font-size: 2.4rem; }
.empty-state.empty-state-sm .empty-state-title { font-size: .92rem; }
.empty-state.empty-state-sm .empty-state-msg   { font-size: .76rem; }

/* ── Pagination (pagination.php) ─────────────────────────────────────────── */
.pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 5px; margin-top: 22px;
}
.pag-btn, .pag-num {
  display: flex; align-items: center; justify-content: center;
  min-width: 34px; height: 34px; padding: 0 10px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 7px; font-size: .8rem; font-weight: 500;
  color: var(--text-2); text-decoration: none; cursor: pointer;
  transition: all var(--t);
}
.pag-btn:hover, .pag-num:hover { border-color: var(--brand); color: var(--brand); }
.pag-num.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.pag-btn.disabled { opacity: .4; cursor: not-allowed; pointer-events: none; }
.pag-dots { color: var(--text-4); padding: 0 4px; font-size: .8rem; }

/* ── Page header layout (mai multe views) ───────────────────────────────── */
.page-hd-left h1 { margin-bottom: 4px; }
.page-hd-left p  { color: var(--text-2); font-size: .88rem; margin: 0; }

/* ── Form 2 coloane (products.view.php) ─────────────────────────────────── */
.form-2col {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start;
}

/* ── btn-save — modificator vizual pe btn-new ────────────────────────────── */
.btn-save { box-shadow: 0 2px 10px rgba(175,129,92,.35); }

/* ── Quotes pills (quotes.view.php) ─────────────────────────────────────── */
.qpill {
  padding: 5px 14px; border-radius: var(--r-full);
  background: none; border: 1px solid var(--border);
  font-size: .78rem; font-weight: 500; color: var(--text-2);
  cursor: pointer; transition: all var(--t); font-family: var(--font-base);
}
.qpill:hover { border-color: var(--brand-h); color: var(--brand); }
.qpill-active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ── Data table generic (quotes.view.php) ───────────────────────────────── */
.data-table { width: 100%; border-collapse: collapse; }
.data-table thead { background: var(--bg); border-bottom: 2px solid var(--border); }
.data-table th {
  font-size: .67rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--text-3);
  padding: 10px 14px; text-align: left; white-space: nowrap;
}
.data-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); font-size: .82rem; }
.data-table tbody tr:hover td { background: var(--bg); }
.data-table tbody tr:last-child td { border-bottom: none; }

/* ── Stat label (client-view.view.php) ──────────────────────────────────── */
.stat-l { font-size: .72rem; color: var(--text-3); font-weight: 500; margin-top: 2px; }

/* ── Form helpers (form-helpers.php) ────────────────────────────────────── */
.fg-checkbox { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.fg-checkbox input[type="checkbox"] { width: 16px; height: 16px; flex-shrink: 0; accent-color: var(--brand); }
.checkbox-label { font-size: .84rem; color: var(--text-1); cursor: pointer; }
.fg-help { font-size: .72rem; color: var(--text-3); margin-top: 4px; line-height: 1.4; }

/* ── Import Excel badges (import-excel.view.php) ─────────────────────────── */
.opt-badge {
  display: inline-flex; align-items: center;
  padding: 2px 7px; border-radius: 5px;
  font-size: .67rem; font-weight: 700; white-space: nowrap;
  background: var(--bg); color: var(--text-2); border: 1px solid var(--border);
}
.opt-badge-included { background: var(--green-bg); color: var(--green); border-color: rgba(16,185,129,.2); }
.opt-badge-quote    { background: var(--blue-bg); color: var(--blue); border-color: rgba(59,130,246,.2); }
.opt-badge-delivery { background: var(--amber-bg); color: var(--amber); border-color: rgba(245,158,11,.2); }

/* ── ce-action-edit (client-edit.view.php) ───────────────────────────────── */
.ce-action-edit {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .78rem; color: var(--brand); font-weight: 600;
  cursor: pointer; transition: opacity var(--t);
}
.ce-action-edit:hover { opacity: .75; }

/* ── Utility (quote-builder.view.php) ───────────────────────────────────── */
.position-relative { position: relative; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .form-2col { grid-template-columns: 1fr; }
  .tbl-search input { width: 120px; }
}

/* ── page-hd-left (separator container titlu+subtitlu) ──────────────────── */
.page-hd-left { flex: 1; min-width: 0; }

/* ── .table — alias generic pentru tabele simple ────────────────────────── */
.table { width: 100%; border-collapse: collapse; }
.table th {
  font-size: .7rem; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; color: var(--text-3);
  padding: 10px 12px; text-align: left; background: var(--bg);
  border-bottom: 2px solid var(--border);
}
.table td { padding: 11px 12px; border-bottom: 1px solid var(--border); font-size: .82rem; }
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover td { background: var(--bg); }

/* ── btn-revoke-device (client-view.view.php) ────────────────────────────── */
.btn-revoke-device { font-size: .8rem; }

/* ── tbl-name-link — link pe nume în tabele (moștenește culoarea rândului) ── */
.tbl-name-link {
  color: inherit;
  text-decoration: none;
  transition: color var(--t);
}
.tbl-name-link:hover { color: var(--brand); }
