/* ============================================
   STYLE.CSS - Design Global Modern & Compact
   Brand: Black • White • Red
   ============================================ */

/* ── Paletă globală ───────────────────────── */
:root{
  /* Brand core */
  --brand-red: #e53935;         /* roșu principal */
  --brand-red-2: #b71c1c;       /* roșu închis pentru gradient/hover */
  --brand-black: #1a1a1a;       /* negru brand */
  --brand-white: #ffffff;       /* alb brand */

  /* Neutre & text */
  --text: #23272e;              /* text principal (near-black) */
  --text-strong: #0f1115;       /* titluri */
  --muted: #5a6c7d;             /* text secundar */

  /* Fundaluri */
  --bg-1: #f6f7f9;              /* background light */
  --bg-2: #fafafa;              /* suprafețe foarte deschise */
  --panel: #ffffff;             /* card/panou alb */

  /* Bordiuri, linii, umbre */
  --border: #e6e8ee;
  --row-line: #eef0f4;
  --shadow-weak: rgba(0,0,0,.08);
  --shadow-mid: rgba(0,0,0,.14);
  --shadow-strong: rgba(0,0,0,.28);

  /* Stări */
  --success: #16a085;
  --success-bg: #e8f8f5;

  --warning: #f39c12;
  --warning-bg: #fef9e7;

  --danger: #e53935;            /* aliniat cu brand red */
  --danger-bg: #fde2e1;

  --info: #3498db;
  --info-bg: #ebf5fb;

  /* Gradiente reutilizabile */
  --grad-primary: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-red-2) 100%);
  --grad-danger:  linear-gradient(135deg, #ff7676 0%, #e53935 100%);
  --grad-export:  linear-gradient(135deg, #6ab7ff 0%, #2ea8ff 100%); /* util pt. export */
  --grad-dark:    linear-gradient(135deg, #2a2a2a 0%, #111111 100%);

  /* Accente / focus */
  --focus-ring: color-mix(in srgb, var(--brand-red) 25%, transparent);
}
/* ===== NAV FULL-WIDTH, FIXED & FLAT ===== */
.site-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  /* elimină orice spațiu din jur */
  margin: 0;
  border-radius: 0;
}

.site-nav{
  /* full-bleed + flat */
  background: var(--grad-primary);
  box-shadow: 0 4px 16px var(--shadow-mid);
  border-radius: 0;
}

/* linkuri fără separatoare puternice */
.site-nav__link{
  border-right: 0;
}

/* corpul paginii nu mai are padding sus; îl calculăm dinamic */
body.has-fixed-nav{
  padding-top: var(--nav-h, 64px);
  /* păstrează padding lateral/ jos, dar scoate-l pe cel de sus dacă între timp îl pui manual */
}

/* dacă ai .container chiar sub header, poți reduce marja top acolo */
.container{
  margin-top: 0;
}

/* mobil: păstrăm animația */
@media (max-width: 968px){
  .nav-toggle{ display: inline-flex; }
  .site-nav[data-open="false"]{ max-height: 0; transition: max-height .25s ease-in; }
  .site-nav[data-open="true"]{ max-height: 520px; transition: max-height .25s ease-out; }
}

/* opțional: bară puuțin mai slim pe desktop */
@media (min-width: 969px){
  .site-nav__link{ padding: 14px 18px; }
}

/* RESET & BASE */
*{ margin:0; padding:0; box-sizing:border-box; }
body{
  font-family:'Segoe UI','Helvetica Neue',sans-serif;
  background: linear-gradient(135deg, var(--bg-1) 0%, var(--bg-2) 50%, #f7faf7 100%);
  min-height:100vh;
  padding:20px;
  color:var(--text);
}
/* ============================================
   NAV - Modern, brand-consistent, responsive
   Folosește :root din style.css (brand red/black/white)
   ============================================ */

.site-header{
  position: sticky;
  top: 0;
  z-index: 999;
  backdrop-filter: blur(10px);
}

/* Buton hamburger (mobil) */
.nav-toggle{
  display: none;
  width: 100%;
  border: 0;
  background: var(--grad-primary);
  color: var(--brand-white);
  padding: 14px 18px;
  font-weight: 800;
  letter-spacing: .6px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 15px var(--shadow-mid);
}
.nav-toggle:focus-visible{
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}
.nav-toggle__label{ margin-left: 8px; }

/* Container nav */
.site-nav{
  background: var(--grad-primary);
  box-shadow: 0 4px 15px var(--shadow-mid);
}

/* Listă & item */
.site-nav__list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}
.site-nav__item{ flex: 0 1 auto; }

/* Link */
.site-nav__link{
  display: block;
  padding: 16px 22px;
  color: var(--brand-white);
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .8px;
  position: relative;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  border-right: 1px solid color-mix(in srgb, var(--brand-white) 15%, transparent);
}
.site-nav__item:last-child .site-nav__link{ border-right: 0; }

/* Hover */
.site-nav__link::before{
  content: "";
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, #000 18%, transparent);
  opacity: 0;
  transition: opacity .25s ease;
}
.site-nav__link:hover::before{ opacity: 1; }
.site-nav__link:hover{
  transform: translateY(-2px);
  box-shadow: 0 2px 8px var(--shadow-mid);
}

/* Active (folosim aria-current="page") */
.site-nav__link[aria-current="page"]{
  background: color-mix(in srgb, #000 28%, transparent);
  box-shadow: inset 0 -3px 0 0 var(--brand-white);
}

/* Logout ca buton din sistemul global */
.site-nav__logout{
  margin-left: auto;
  white-space: nowrap;
}
.site-nav__item--right{
  margin-left: auto;
}

/* Mobile */
@media (max-width: 968px){
  .nav-toggle{ display: inline-flex; align-items: center; justify-content: center; }

  .site-nav{
    /* animăm înălțimea pt. deschidere/închidere */
    overflow: hidden;
  }

  .site-nav__list{
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav__link{
    border-right: 0;
    border-bottom: 1px solid color-mix(in srgb, var(--brand-white) 12%, transparent);
    padding: 14px 18px;
  }
  .site-nav__item:last-child .site-nav__link{ border-bottom: 0; }

  /* starea deschis/închis controlată de data-open */
  .site-nav[data-open="false"]{
    max-height: 0;
    transition: max-height .3s ease-in;
  }
  .site-nav[data-open="true"]{
    max-height: 520px; /* suficient pentru toate item-urile */
    transition: max-height .3s ease-out;
  }

  /* logout pe tot rândul */
  .site-nav__item--right{ margin-left: 0; }
}

/* Micro-îmbunătățiri accesibilitate */
.site-nav__link:focus-visible{
  outline: 2px solid var(--focus-ring);
  outline-offset: -2px;
  border-radius: 6px;
}

/* Optional: dark mode (dacă folosești media-query) */
@media (prefers-color-scheme: dark){
  .site-nav{
    box-shadow: 0 6px 20px color-mix(in srgb, #000 40%, transparent);
  }
}

/* CONTAINER PRINCIPAL */
.container{
  max-width:1200px;
  margin:0 auto;
  background:var(--panel);
  border-radius:20px;
  box-shadow:0 10px 40px var(--shadow-weak);
  padding:30px 40px;
}

/* TITLURI */
h1,h2,h3,h4{
  color:var(--text-strong);
  margin-bottom:20px;
  font-weight:700;
}
h1{font-size:32px;} h2{font-size:28px;} h3{font-size:22px;} h4{font-size:18px;}

/* HEADER PAGES */
.page-header{
  background:var(--grad-primary);
  color:var(--brand-white);
  padding:30px 40px;
  border-radius:15px;
  margin-bottom:30px;
  display:flex; justify-content:space-between; align-items:center;
  box-shadow:0 8px 25px color-mix(in srgb, var(--brand-red) 25%, transparent);
}
.page-header h1{ color:var(--brand-white); margin:0; font-size:28px; }

/* FORMS */
form{
  background: linear-gradient(to bottom, var(--bg-2) 0%, #f3f4f7 100%);
  padding:25px; border-radius:15px; margin-bottom:30px;
  border:1px solid var(--border);
}
/* Formular „invizibil” folosit doar ca wrapper pentru buton */
form.form-bare {
  display: contents;                /* nu mai desenează nicio cutie în jur */
  background: none !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

/* opțional: asigură-te că butonul nu are margini nedorite */
form.form-bare .action-btn { margin: 0; }

label{
  display:block; font-size:12px; font-weight:700; color:var(--brand-red);
  text-transform:uppercase; letter-spacing:.5px; margin-bottom:6px; margin-top:12px;
}
label:first-of-type{ margin-top:0; }

input[type="text"], input[type="email"], input[type="tel"], input[type="password"],
input[type="date"], input[type="number"], textarea, select{
  width:100%; padding:10px 12px; border:2px solid var(--border); border-radius:8px;
  font-size:14px; transition:all .2s ease; background:var(--brand-white); color:var(--text);
}
input:focus, textarea:focus, select:focus{
  outline:none; border-color:var(--brand-red);
  box-shadow:0 0 0 3px var(--focus-ring); background:#fffafa;
}
select[multiple]{ min-height:150px; }
textarea{ resize:vertical; min-height:100px; }

/* BUTTONS - COMPACT & MODERN */
.btn, button[type="submit"], button[type="button"],
.btn-primary, .btn-secondary, .btn-danger, .btn-export{
  padding:8px 16px; border:none; border-radius:8px; font-size:13px; font-weight:700;
  cursor:pointer; transition:all .2s ease; text-decoration:none;
  display:inline-flex; align-items:center; gap:6px; margin:4px 4px 4px 0; white-space:nowrap;
}

/* Primary = roșu brand */
.btn-primary, button[type="submit"]{ background:var(--grad-primary); color:var(--brand-white); }
.btn-primary:hover, button[type="submit"]:hover{
  transform:translateY(-1px); box-shadow:0 4px 12px color-mix(in srgb, var(--brand-red) 35%, transparent);
}

/* Secondary = negru/graphite */
.btn-secondary, button[type="button"]{ background:var(--brand-black); color:var(--brand-white); }
.btn-secondary:hover, button[type="button"]:hover{
  background:#0f0f10; transform:translateY(-1px); box-shadow:0 3px 10px var(--shadow-mid);
}

/* Danger */
.btn-danger{ background:var(--grad-danger); color:var(--brand-white); }
.btn-danger:hover{ transform:translateY(-1px); box-shadow:0 4px 12px color-mix(in srgb, var(--danger) 35%, transparent); }

/* Export (accent rece ca să iasă în evidență) */
.btn-export{ background:var(--grad-export); color:var(--brand-white); }
.btn-export:hover{ transform:translateY(-1px); box-shadow:0 4px 12px rgba(46,168,255,.35); }

/* TABLES */
.table-container{
  overflow-x:auto; border-radius:10px; background:color-mix(in srgb, var(--panel) 85%, transparent);
  margin-bottom:30px; box-shadow:0 2px 8px var(--shadow-mid);
}
table{ width:100%; border-collapse:collapse; background:var(--panel); }
thead{ background:var(--grad-dark); color:var(--brand-white); }
thead th{
  padding:12px; text-align:left; font-weight:800; font-size:12px; text-transform:uppercase; letter-spacing:.5px;
}
tbody tr{ border-bottom:1px solid var(--row-line); transition:all .2s ease; }
tbody tr:hover{ background:#fbfbfb; box-shadow:inset 0 0 0 1px var(--border); }
tbody td{ padding:5px 12px; font-size:12px; color:var(--muted); vertical-align:middle; }

/* PAGINATION */
.pagination, .pagination-wrapper{
  display:flex; justify-content:center; align-items:center; gap:8px; margin:20px 0; flex-wrap:wrap;
}
.pagination li{ list-style:none; }
.pagination button, .pagination a, .pagination span{
  padding:8px 12px; border:2px solid var(--brand-red); background:var(--panel); color:var(--brand-red);
  border-radius:8px; font-weight:800; cursor:pointer; transition:all .2s ease; text-decoration:none; display:inline-block; font-size:13px;
}
.pagination button:hover:not(:disabled), .pagination a:hover{
  background:var(--brand-red); color:var(--brand-white); transform:translateY(-1px);
}
.pagination button:disabled{ opacity:.5; cursor:not-allowed; }
.pagination .current{
  background:var(--grad-primary); color:var(--brand-white); border-color:var(--brand-red);
}

/* ALERTS & MESSAGES */
.alert, .message{
  padding:10px 16px; border-radius:8px; margin-bottom:16px; font-weight:600; border-left:3px solid; font-size:13px;
}
.alert.success, .message{ background:var(--success-bg); border-color:var(--success); color:#0e6251; }
.alert.error, .error{ background:var(--danger-bg); border-color:var(--danger); color:#7a1b1a; padding:10px 16px; border-radius:8px; margin:8px 0; }
.alert.warning{ background:var(--warning-bg); border-color:var(--warning); color:#7d6608; }
.alert.info{ background:var(--info-bg); border-color:var(--info); color:#1a5276; }

/* MODAL */
.modal{
  display:none; position:fixed; z-index:1000; top:0; left:0; width:100%; height:100%;
  background:rgba(0,0,0,.6); overflow-y:auto; backdrop-filter:blur(4px); animation:fadeIn .2s ease;
}
@keyframes fadeIn{ from{opacity:0;} to{opacity:1;} }

.modal-content{
  background:var(--panel); margin:60px auto; padding:0; border-radius:12px; width:90%; max-width:600px;
  box-shadow:0 10px 40px var(--shadow-strong); position:relative; animation:slideDown .3s ease;
}
@keyframes slideDown{ from{ transform:translateY(-50px); opacity:0; } to{ transform:translateY(0); opacity:1; } }

/* MODAL HEADER */
.modal-header{
  background:var(--grad-primary); color:var(--brand-white); padding:16px 20px;
  border-radius:12px 12px 0 0; display:flex; justify-content:space-between; align-items:center; gap:10px;
}
.modal-header h2{ color:var(--brand-white); margin:0; font-size:18px; font-weight:800; }
.modal-header-actions{ display:inline-flex; gap:8px; align-items:center; }

.close{
  background:rgba(255,255,255,.16); border:none; width:32px; height:32px; border-radius:8px;
  font-size:20px; line-height:1; cursor:pointer; color:var(--brand-white); transition:all .2s ease;
  display:flex; align-items:center; justify-content:center; padding:0;
}
.close:hover{ background:rgba(255,255,255,.25); transform:scale(1.06); }

.modal-body{ padding:16px 18px 16px; }
.modal-body.tight{ padding:8px 12px 12px; }
#asmModal .modal-content{ padding-bottom:8px; }

/* FILTERS */
.filter-group{ display:flex; flex-direction:column; gap:6px; margin-bottom:12px; }
.filters-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:16px; margin-bottom:20px; }
#filterInput{
  width:100%; max-width:400px; margin:12px 0; padding:10px 12px; border:2px solid var(--border); border-radius:8px; font-size:14px;
}
/* FILTERS */
.filter-group{
  display:flex;
  flex-direction:column;
  gap:6px;
  margin-bottom:12px;
}
/* Butoanele de sub filtre */
.filters-actions{
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;   /* pe desktop, butoanele la dreapta */
}

/* Pe mobil, le putem lăsa la stânga / pe toată lățimea */
@media (max-width: 768px){
  .filters-actions{
    justify-content: flex-start;
  }
}


/* Layout pentru filtrare review-uri */
.filters-row{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)); /* 3 coloane pe desktop */
  gap: 16px;
  align-items: flex-end; /* aliniează frumos datele și butoanele */
}

/* Pe mobil rămân unul sub altul */
@media (max-width: 768px){
  .filters-row{
    grid-template-columns: 1fr;
  }
}

/* LOADING */
.loading{ text-align:center; padding:30px; color:#7f8c8d; font-size:14px; }
.loading::after{ content:'...'; animation:dots 1.5s steps(4,end) infinite; }
@keyframes dots{ 0%,20%{content:'.';} 40%{content:'..';} 60%,100%{content:'...';} }

/* SECTION CARD */
.section-card{
  background:var(--panel); border:1px solid var(--border); border-radius:12px; padding:20px; margin-bottom:20px;
  box-shadow:0 2px 8px var(--shadow-weak); transition:all .2s ease;
}
.section-card:hover{ box-shadow:0 4px 12px var(--shadow-mid); }
.section-card h3{ color:var(--brand-red); margin-bottom:16px; display:flex; align-items:center; gap:8px; font-size:16px; }

/* STATS GRID */
.stats-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:16px; margin-bottom:24px; }
.stat-card{
  background:var(--grad-primary); color:var(--brand-white); padding:20px; border-radius:12px; text-align:center;
  box-shadow:0 6px 20px color-mix(in srgb, var(--brand-red) 22%, transparent); transition:all .2s ease;
}
.stat-card:hover{ transform:translateY(-3px); box-shadow:0 8px 25px color-mix(in srgb, var(--brand-red) 28%, transparent); }
.stat-card .number{ font-size:32px; font-weight:900; display:block; margin-bottom:6px; }
.stat-card .label{ font-size:11px; text-transform:uppercase; letter-spacing:.8px; opacity:.95; }

/* BADGES */
.badge{ display:inline-block; padding:4px 10px; border-radius:12px; font-size:11px; font-weight:800; text-transform:uppercase; letter-spacing:.3px; }
.badge-info{ background:var(--info-bg); color:#0e5a7a; }
.badge-success{ background:var(--success-bg); color:#0e6251; }
.badge-warning{ background:var(--warning-bg); color:#7d6608; }
.badge-danger{ background:var(--danger-bg); color:#7a1b1a; }

/* ACTION BUTTONS (mini) */
.action-btn{
  padding:5px 10px; font-size:12px; margin:0; white-space:nowrap; border:none; border-radius:6px; cursor:pointer;
  transition:all .2s ease; text-decoration:none; display:inline-flex; align-items:center; gap:4px; font-weight:800; line-height:1;
}
.action-btn:hover{ transform:translateY(-1px); }
#asmModal .action-btn{ padding:4px 8px; font-size:11px; }

/* ASM select */
.asm-select{
  width:100%; padding:8px 10px; border:2px solid var(--border); border-radius:6px; font-size:12px; background:var(--panel);
  color:var(--text); transition:all .2s ease; font-weight:600;
}
.asm-select:hover{ border-color:var(--brand-red); background:#fff6f6; }
.asm-select:focus{ outline:none; border-color:var(--brand-red); box-shadow:0 0 0 3px var(--focus-ring); }

/* PAGINATION MODERN */
.pagination-modern{
  display:flex; justify-content:space-between; align-items:center; background:var(--panel);
  padding:16px; border-top:1px solid var(--row-line);
}
.pagination-info{ font-size:13px; color:#7f8c8d; font-weight:700; }
.pagination-controls{ display:flex; gap:8px; align-items:center; }
.pagination-btn{
  border:none; background:var(--grad-primary); color:var(--brand-white); padding:8px 14px; border-radius:6px;
  cursor:pointer; font-weight:800; transition:all .2s ease; font-size:12px;
}
.pagination-btn:hover:not(:disabled){ transform:translateY(-1px); box-shadow:0 3px 10px color-mix(in srgb, var(--brand-red) 30%, transparent); }
.pagination-btn:disabled{ opacity:.5; cursor:not-allowed; }

/* ROW ANIMATION */
.row-updated{ animation:highlight-row 1.5s ease; }
@keyframes highlight-row{ 0%,100%{background-color:transparent;} 50%{background-color:#fff0f0;} }

/* QUICK ACTIONS */
.quick-actions-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:12px; margin-bottom:20px; }
.quick-action-card{
  background:var(--panel); border-radius:12px; padding:16px; box-shadow:0 2px 10px var(--shadow-weak);
  border:1px solid var(--row-line); display:flex; align-items:center; gap:12px; cursor:pointer; transition:all .2s ease;
}
.quick-action-card:hover{ transform:translateY(-2px); border-color:var(--brand-red); box-shadow:0 6px 20px color-mix(in srgb, var(--brand-red) 16%, transparent); }
.quick-action-icon{
  font-size:24px; color:var(--brand-red); background:#fff0f0; width:48px; height:48px; display:flex; align-items:center; justify-content:center; border-radius:10px; flex-shrink:0;
}
.quick-action-content{ flex-grow:1; }
.quick-action-title{ font-size:14px; font-weight:800; color:var(--text); margin-bottom:3px; }
.quick-action-description{ font-size:11px; color:#7f8c8d; line-height:1.3; }

/* FORM GRID */
.form-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:16px; }
.form-group{ display:flex; flex-direction:column; gap:6px; }
.form-control{
  padding:10px 12px; border-radius:8px; border:2px solid var(--border); font-size:14px; transition:all .2s ease; font-family:inherit;
}
.form-control:focus{ outline:none; border-color:var(--brand-red); box-shadow:0 0 0 3px var(--focus-ring); background:#fff6f6; }

/* TABLE CARD */
.table-card{
  background:var(--panel); border-radius:12px; box-shadow:0 2px 10px var(--shadow-weak); margin-bottom:20px; overflow:hidden;
}

/* ── Charts layout ────────────────────────────────────────── */
.charts-grid{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; align-items:stretch; }
.chart-card{
  background:var(--panel); border:1px solid var(--border); border-radius:12px; padding:16px; box-shadow:0 2px 8px var(--shadow-weak);
}
.chart-card .filter-group{ margin-bottom:8px; }
.chart-wrapper{ position:relative; height:360px; }
@media (max-width:900px){
  .charts-grid{ grid-template-columns:1fr; }
  .chart-wrapper{ height:280px; }
}

/* ASM actions inline */
.asm-actions{ display:flex; gap:6px; align-items:center; flex-wrap:nowrap; white-space:nowrap; }

/* RESPONSIVE */
@media (max-width:768px){
  body{ padding:10px; }
  .container{ padding:20px; border-radius:15px; }
  .page-header{ flex-direction:column; text-align:center; gap:12px; padding:20px; }
  form{ padding:15px; }
  table{ font-size:12px; }
  thead th, tbody td{ padding:8px 6px; }
  .btn, button{ padding:8px 12px; font-size:12px; }
  .filters-grid{ grid-template-columns:1fr; }
  .stats-grid{ grid-template-columns:1fr; }
  .modal-content{ margin:20px auto; width:95%; }
}

/* UTILITY */
.text-center{text-align:center;} .text-right{text-align:right;} .text-left{text-align:left;}
.mt-10{margin-top:10px;} .mt-20{margin-top:20px;} .mt-30{margin-top:30px;}
.mb-10{margin-bottom:10px;} .mb-20{margin-bottom:20px;} .mb-30{margin-bottom:30px;}
.gap-10{gap:10px;} .gap-15{gap:15px;} .gap-20{gap:20px;}

button:focus, input:focus, select:focus{
  outline:2px solid var(--focus-ring); outline-offset:2px;
}
/* ── QR Modal: compact ───────────────────────────────────── */
#qrModal .modal-content{
  max-width: 520px;              /* mai îngust */
  padding: 16px 16px 14px;       /* mult mai puțin padding */
}

#qrModal .modal-header{
  color: var(--text, #1a1a1a);
  padding: 6px 8px 0;
  border-radius: 10px;
  justify-content: center;
}

#qrModal .modal-header .close{
  position: absolute;            /* X în colț, discret */
  top: 10px; right: 10px;
}

#qrModal h2{
  font-size: 22px;
  font-weight: 800;
  margin: 6px 36px 10px;         /* micșorat, spațiu pentru butonul X */
  text-align: center;
}

#qrModal .qr-box{
  display: inline-block;
  background: #8293c9;           /* un subtil box */
  padding: 8px;                  /* mult mai puțin */
  border-radius: 12px;
  margin: 8px 0 10px;            /* mult mai compact */
}

#qrModal #modalQRImage{
  width: 280px;                  /* mărimea QR implicită */
  max-width: min(72vw, 340px);   /* responsive pe mobil */
  height: auto;
  border-radius: 8px;
}

#qrModal .modal-actions{
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* pe ecrane foarte mici reducem puțin */
@media (max-width: 420px){
  #qrModal #modalQRImage{ width: 240px; }
}
/* ── DENSE MODE: secțiuni compacte ───────────────────────── */
.section-card.dense { padding: 10px 12px; }
.section-card.dense h3 { margin: 4px 0 10px; font-size: 16px; }

/* 2 coloane egale, aliniate jos, cu spațiu mic */
.dense .filters-row,
.dense .equal-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 10px;
  align-items: end;
}
@media (max-width: 900px) {
  .dense .filters-row,
  .dense .equal-2 { grid-template-columns: 1fr; }
}

/* câmpuri mai „slim” și label mic */
.dense .filter-group { margin: 0; gap: 0px; }
.dense .filter-group label {

  margin: 0 0 2px;
  letter-spacing: .2px;
}

/* înălțime real compactă: 36px */
.dense input[type="text"],
.dense input[type="date"],
.dense select {
  height: 36px;
  padding: 6px 10px;
  font-size: 14px;
  border-radius: 8px;
  max-width: 520px;            /* nu mai întindem pe toată lățimea */
}

/* butoane compacte la fel cu câmpurile */
.dense .btn-primary,
.dense .btn-secondary {
  height: 36px;
  padding: 6px 12px;
  font-size: 13px;
}

/* form-ul de adăugare: 2 câmpuri + buton mai „lipite” */
.dense .equal-3 {
  display: grid;
  grid-template-columns: 280px 1fr auto;
  gap: 10px;
  align-items: end;
}
@media (max-width: 900px) {
  .dense .equal-3 { grid-template-columns: 1fr; }
  .dense .equal-3 .btn-primary { width: 100%; }
}

/* opțional: micșorează subtil umbra și radius-ul panoului */
.section-card.dense { border-radius: 10px; box-shadow: 0 1px 6px rgba(0,0,0,.06); }
/* ── STACK FILTERS: pune filtrele unul sub altul, full width ─────────── */
.stack-filters .filters-row{
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 10px !important;
}

.stack-filters .filter-group input[type="text"],
.stack-filters .filter-group select{
  max-width: 100% !important;   /* să nu mai limiteze la 520px */
  width: 100% !important;
  height: 40px;                  /* egale ca înălțime */
  padding: 8px 12px;
  line-height: 24px;
}
/* util: linii orizontale mai discrete în formulare */
hr { border: none; border-top: 1px solid var(--border); }

/* utility spacing (dacă nu sunt deja) */
.mt-20{margin-top:20px;} .mb-10{margin-bottom:10px;}
/* === REVIEW FORM polish (modern, mobil) ===================== */
.form-title{font-weight:800;color:var(--text);}

.form-row-between{
  display:flex; align-items:center; justify-content:space-between;
  padding:10px 12px; background:#fff; border:1px solid var(--border);
  border-radius:12px; margin-bottom:14px;
}

/* grid pt. user fields */
.grid-2{
  display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px;
}
@media (max-width:768px){ .grid-2{ grid-template-columns:1fr; } }

.hr-soft{
  height:1px; border:0; background:var(--border); margin:14px 0;
}

.question-card{
  background:#fff; border:1px solid var(--border);
  border-radius:12px; padding:12px; margin-bottom:12px;
  box-shadow:0 1px 4px var(--shadow-weak);
}
.question-card label{
  color:var(--text); text-transform:none; letter-spacing:.2px;
  font-weight:800; margin:0 0 6px;
}

/* select modern cu chevron */
.select-wrap{ position:relative; }
.select-modern{ appearance:none; padding-right:40px; }
.chevron{
  position:absolute; right:12px; top:50%; translate:0 -50%;
  width:12px; height:12px; pointer-events:none;
  mask:url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 7l5 6 5-6' stroke='black' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
  background:#555;
}

/* switch anonim (iOS-like) */
.switch{ position:relative; width:48px; height:28px; display:inline-block; }
.switch input{ display:none; }
.slider{
  position:absolute; inset:0; background:#dfe3ea; border-radius:999px;
  box-shadow:inset 0 1px 2px rgba(0,0,0,.12);
  transition:all .2s ease;
}
.slider::before{
  content:""; position:absolute; left:3px; top:3px; width:22px; height:22px;
  background:#fff; border-radius:50%; box-shadow:0 2px 6px rgba(0,0,0,.18);
  transition:transform .2s ease;
}
.switch input:checked + .slider{ background:var(--brand-red); }
.switch input:checked + .slider::before{ transform:translateX(20px); }

/* sticky submit bar (excelent pe mobile) */
.sticky-submit{
  position:sticky; bottom:calc(env(safe-area-inset-bottom) + 8px);
  background:linear-gradient(180deg, rgba(255,255,255,0), #fff 60%);
  padding:12px 0 0; margin-top:8px;
}
.btn-lg{ width:100%; padding:12px 16px; font-size:15px; border-radius:10px; }

/* contor caractere */
.char-count{ font-size:12px; color:#8b97a7; font-weight:800; }

/* popup (finisaj vizual) */
.popup{
  display:none; position:fixed; inset:0; z-index:1000;
  background:rgba(0,0,0,.55); backdrop-filter:blur(3px);
  align-items:center; justify-content:center; padding:16px;
}
.popup-content{
  background:#fff; border-radius:16px; padding:20px; max-width:520px; width:100%;
  text-align:center; box-shadow:0 10px 30px rgba(0,0,0,.25);
}
.popup-content h3{ margin-bottom:8px; }
.popup-content button{
  margin-top:10px; padding:10px 16px; border-radius:10px; border:0;
  background:var(--grad-primary); color:#fff; font-weight:800; cursor:pointer;
}

/* micro-spațiere mobil */
@media (max-width:768px){
  .section-card{ padding:16px; }
  .page-header{ padding:18px; }
}
/* ===== New HERO look ===== */
.feedback-hero{
  position: relative;
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand-red) 86%, #000 0%) 0%, #b4202d 100%);
  color: var(--brand-white);
  border-radius: 20px;
  padding: 22px 22px;
  box-shadow: 0 10px 28px color-mix(in srgb, var(--brand-red) 30%, transparent);
  display:flex; align-items:center; justify-content:space-between; gap:18px;
  overflow: hidden;
  isolation: isolate;
}

.feedback-hero .hero-left{ display:flex; align-items:center; gap:16px; min-width:0; }
.feedback-hero .hero-right{ display:flex; align-items:center; gap:8px; }

/* logo chip (icoana rotundă) */
.logo-chip{
  width:56px; height:56px; border-radius:16px;
  background: color-mix(in srgb, #ffffff 14%, transparent);
  display:grid; place-items:center;
  backdrop-filter: blur(4px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.25), 0 6px 16px rgba(0,0,0,.18);
  flex:0 0 auto;
}
.logo-chip img{ width:32px; height:32px; display:block; filter: drop-shadow(0 2px 2px rgba(0,0,0,.2)); }

/* wordmark + tag */
.hero-texts{ display:flex; flex-direction:column; gap:6px; min-width:0; }
.brand-row{ display:flex; align-items:center; gap:10px; min-width:0; }
.wordmark{ height:22px; filter:brightness(1000%); flex:0 0 auto; }
.sep-dot{ opacity:.6; }
.brand-tag{
  font-size:12px; font-weight:800; letter-spacing:.4px; text-transform:uppercase;
  padding:4px 8px; border-radius:999px; background: rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.2);
}

/* titlu */
.brand-title{
  margin:0; font-size:22px; line-height:1.15; font-weight:900;
  text-wrap:balance;
}

/* linia de magazin cu icon pin */
.store-line{
  display:flex; align-items:center; gap:8px; opacity:.95; font-weight:700;
}
.store-line svg{ opacity:.9; }

/* pilulă timp */
.time-pill{
  font-size:12px; font-weight:800; letter-spacing:.3px; text-transform:uppercase;
  padding:8px 10px; border-radius:999px;
  background: rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.18);
  white-space: nowrap;
}

/* efect glow decorativ */
.hero-glow{
  position:absolute; right:-60px; bottom:-60px; width:220px; height:220px; border-radius:50%;
  background: radial-gradient(closest-side, rgba(255,255,255,.35), rgba(255,255,255,0));
  z-index:-1;
}

/* responsive */
@media (max-width: 768px){
  .feedback-hero{ padding:16px; border-radius:14px; align-items:flex-start; }
  .logo-chip{ width:48px; height:48px; border-radius:14px; }
  .logo-chip img{ width:28px; height:28px; }
  .brand-title{ font-size:18px; }
  .wordmark{ height:18px; }
  .time-pill{ display:none; } /* ascund pe mobil */
}
/* ============================================
   REVIEW-PAGE.CSS - Design Modern pentru Feedback
   ============================================ */

/* ── Body & Container ──────────────────────── */
.review-page {
  background: linear-gradient(135deg, #f8f9fb 0%, #ffffff 50%, #f5f7fa 100%);
}

.review-container {
  max-width: 780px;
  margin: 0 auto;
  padding: 28px;
}

/* ── HERO MODERN ──────────────────────────── */
.feedback-hero {
  position: relative;
  background: linear-gradient(135deg, #e63946 0%, #d62828 100%);
  border-radius: 24px;
  padding: 36px 32px;
  margin-bottom: 28px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(230, 57, 70, 0.24);
}

.hero-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Logo circular mare */
.hero-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.hero-logo-circle {
  width: 88px;
  height: 88px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    inset 0 0 0 1px rgba(255, 255, 255, 0.3),
    0 8px 24px rgba(0, 0, 0, 0.2);
}

.hero-logo-circle img {
  width: 52px;
  height: 52px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.hero-wordmark {
  height: 28px;
  filter: brightness(0) invert(1);
  opacity: 0.96;
}

/* Conținut hero */
.hero-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #fff;
  width: fit-content;
}

.hero-title {
  font-size: 28px;
  font-weight: 900;
  line-height: 1.2;
  color: #fff;
  margin: 0;
  text-wrap: balance;
}

.hero-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.94);
  font-size: 14px;
  font-weight: 600;
}

.meta-item svg {
  opacity: 0.9;
}

/* Gradient decorativ */
.hero-gradient {
  position: absolute;
  right: -80px;
  bottom: -80px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent 70%);
  pointer-events: none;
}

/* ── FORMULAR ──────────────────────────── */
.review-form {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

/* Anon toggle modern */
.anon-toggle-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  background: linear-gradient(135deg, #f8f9fb 0%, #ffffff 100%);
  border: 2px solid rgba(230, 57, 70, 0.1);
  border-radius: 14px;
  margin-bottom: 24px;
  transition: all 0.3s ease;
}

.anon-toggle-row:hover {
  border-color: rgba(230, 57, 70, 0.2);
  box-shadow: 0 4px 16px rgba(230, 57, 70, 0.08);
}

.switch-modern {
  position: relative;
  width: 52px;
  height: 30px;
  flex-shrink: 0;
}

.switch-modern input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  z-index: 2;
  margin: 0;
}

.switch-track {
  position: absolute;
  inset: 0;
  background: #e0e4ea;
  border-radius: 999px;
  transition: all 0.25s ease;
}

.switch-thumb {
  position: absolute;
  left: 3px;
  top: 3px;
  width: 24px;
  height: 24px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.25s ease;
}

.switch-modern input:checked ~ .switch-track {
  background: linear-gradient(135deg, #e63946 0%, #d62828 100%);
}

.switch-modern input:checked ~ .switch-thumb {
  left: 25px;
}

.anon-label {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.anon-label strong {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-strong);
  letter-spacing: 0.2px;
}

.anon-hint {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

/* User details grid */
.user-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  color: #e63946;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin: 0;
}

.input-modern {
  padding: 12px 14px;
  border: 2px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  transition: all 0.2s ease;
  background: #fff;
}

.input-modern:focus {
  outline: none;
  border-color: #e63946;
  box-shadow: 0 0 0 4px rgba(230, 57, 70, 0.1);
  background: #fffafa;
}

.input-modern::placeholder {
  color: #a0aec0;
  font-weight: 500;
}

/* Section divider */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.06), transparent);
  margin: 24px 0;
}

/* Questions section */
.questions-section {
  margin-bottom: 24px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 900;
  color: var(--text-strong);
  margin-bottom: 18px;
  letter-spacing: 0.3px;
}

.section-title svg {
  color: #e63946;
}

.question-card {
  padding: 16px;
  background: #f8f9fb;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  margin-bottom: 14px;
  transition: all 0.2s ease;
}

.question-card:hover {
  border-color: rgba(230, 57, 70, 0.15);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.question-card label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 10px;
  text-transform: none;
  letter-spacing: 0.1px;
}

.select-wrapper {
  position: relative;
}

.select-modern {
  appearance: none;
  width: 100%;
  padding: 12px 40px 12px 14px;
  border: 2px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  font-weight: 600;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.select-modern:focus {
  outline: none;
  border-color: #e63946;
  box-shadow: 0 0 0 4px rgba(230, 57, 70, 0.1);
}

.select-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #6b7280;
  transition: all 0.2s ease;
}

.select-modern:focus ~ .select-icon {
  color: #e63946;
}

/* Comment section */
.comment-section {
  margin-bottom: 24px;
}

.comment-section label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  color: #e63946;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin: 0 0 10px;
}

.textarea-modern {
  width: 100%;
  padding: 14px;
  border: 2px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  resize: vertical;
  min-height: 120px;
  transition: all 0.2s ease;
}

.textarea-modern:focus {
  outline: none;
  border-color: #e63946;
  box-shadow: 0 0 0 4px rgba(230, 57, 70, 0.1);
  background: #fffafa;
}

.char-counter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 700;
}

.char-hint {
  color: #6b7280;
}

.char-count {
  color: #9ca3af;
}

/* Submit button */
.submit-btn {
  width: 100%;
  padding: 16px 24px;
  background: linear-gradient(135deg, #e63946 0%, #d62828 100%);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 6px 20px rgba(230, 57, 70, 0.3);
  transition: all 0.25s ease;
}

.submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(230, 57, 70, 0.4);
}

.submit-btn:active {
  transform: translateY(0);
}

.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* ── THANK YOU MODAL ──────────────────────── */
.thank-you-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.thank-you-card {
  position: relative;
  background: #fff;
  border-radius: 24px;
  padding: 48px 40px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
  from {
    transform: translateY(40px) scale(0.95);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.thank-you-icon {
  width: 88px;
  height: 88px;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
  animation: scaleIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.2s backwards;
}

@keyframes scaleIn {
  from {
    transform: scale(0);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.thank-you-icon svg {
  color: #fff;
  stroke-width: 2.5;
}

.thank-you-card h2 {
  font-size: 28px;
  font-weight: 900;
  color: var(--text-strong);
  margin: 0 0 14px;
  animation: fadeSlideIn 0.5s ease 0.3s backwards;
}

.thank-you-card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  font-weight: 600;
  margin: 0 0 28px;
  animation: fadeSlideIn 0.5s ease 0.4s backwards;
}

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

.thank-you-footer {
  padding-top: 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  animation: fadeSlideIn 0.5s ease 0.5s backwards;
}

.redirect-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
  font-weight: 700;
}

.redirect-info svg {
  color: #e63946;
}

.redirect-info strong {
  color: #e63946;
  font-weight: 900;
}

/* ── RESPONSIVE ──────────────────────────── */
@media (max-width: 768px) {
  .review-container {
    padding: 16px;
  }

  .feedback-hero {
    padding: 24px 20px;
    border-radius: 18px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
  }

  .hero-brand {
    margin: 0 auto;
  }

  .hero-logo-circle {
    width: 72px;
    height: 72px;
  }

  .hero-logo-circle img {
    width: 42px;
    height: 42px;
  }

  .hero-wordmark {
    height: 24px;
  }

  .hero-content {
    align-items: center;
  }

  .hero-badge {
    font-size: 11px;
  }

  .hero-title {
    font-size: 22px;
  }

  .hero-meta {
    justify-content: center;
    font-size: 13px;
  }

  .review-form {
    padding: 20px;
    border-radius: 16px;
  }

  .user-details-grid {
    grid-template-columns: 1fr;
  }

  .thank-you-card {
    padding: 36px 28px;
  }

  .thank-you-icon {
    width: 72px;
    height: 72px;
  }

  .thank-you-card h2 {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 20px;
  }

  .meta-item {
    font-size: 12px;
  }

  .anon-toggle-row {
    padding: 14px;
  }

  .submit-btn {
    padding: 14px 20px;
    font-size: 15px;
  }
}
/* ==== FIX: overflow mobil & header duplicat ==== */

/* 1) Folosim DOAR sticky pentru .site-header */
.site-header{
  position: sticky !important;
  top: 0;
  left: 0; right: 0;
  z-index: 9999;
  margin: 0;
  border-radius: 0;
  backdrop-filter: blur(10px);
}
/* Dacă ai clase JS pe <body> pentru nav fix, oprește paddingul forțat */
body.has-fixed-nav{ padding-top: 0 !important; }

/* 2) Gard global împotriva scroll-ului orizontal */
html, body{
  max-width: 100%;
  overflow-x: hidden;
}

/* 3) Media & tabele să nu depășească */
img, svg, canvas, video{
  max-width: 100%;
  height: auto;
}
.table-container{ overflow-x: auto; }

/* 4) Grilele cu min 280px pot „împinge” pagina sub 320px */
.dense .filters-row,
.dense .equal-2{
  grid-template-columns: 1fr;              /* pe default */
}
@media (min-width: 600px){
  .dense .filters-row,
  .dense .equal-2{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* La fel pentru equal-3: scapă de coloană fixă pe mobil foarte îngust */
.dense .equal-3{ grid-template-columns: 1fr; }
@media (min-width: 900px){
  .dense .equal-3{ grid-template-columns: 280px 1fr auto; }
}

/* 5) Nav mobil să nu depășească viewport-ul */
@media (max-width: 968px){
  .site-nav{ width: 100%; overflow: hidden; }
  .site-nav__list{ width: 100%; }
  .site-nav__link{ max-width: 100%; }
}

/* 6) Sticky submit nu mai „împinge” pagina la baza cu safe-area exagerat */
.sticky-submit{
  position: sticky;
  bottom: 8px; /* env() rămâne ok pe iOS, dar evităm adunări care dau overflow */
}
/* ============================================
   RECLAMĂ FLOATING IPO CONTAKT - Brand Colors
   ============================================ */

.ipo-float-ad {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9998; /* sub theme toggle (9998) */
  display: none;
  max-width: 380px;
  width: calc(100% - 40px);
  
  /* Gradient roșu Contakt cu transparență */
  background: linear-gradient(135deg, 
    rgba(230, 57, 70, 0.96) 0%, 
    rgba(183, 28, 28, 0.96) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 
    0 20px 60px rgba(230, 57, 70, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.15) inset,
    0 0 80px rgba(183, 28, 28, 0.3);
  
  /* Floating animation */
  animation: float 6s ease-in-out infinite;
}

/* Animații */
@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-10px) rotate(0.5deg);
  }
  50% {
    transform: translateY(-5px) rotate(-0.5deg);
  }
  75% {
    transform: translateY(-12px) rotate(0.3deg);
  }
}

@keyframes slideInBounce {
  0% {
    transform: translateX(450px) scale(0.8);
    opacity: 0;
  }
  50% {
    transform: translateX(-20px) scale(1.05);
  }
  70% {
    transform: translateX(10px) scale(0.98);
  }
  100% {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0.9);
  }
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  }
  50% {
    box-shadow: 0 0 0 15px rgba(255, 255, 255, 0);
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

/* Close button - mai vizibil */
.ipo-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border: none;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.ipo-close svg {
  width: 16px;
  height: 16px;
  display: block;
  stroke: currentColor;
  stroke-width: 2.5;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}

.ipo-close:hover {
  background: rgba(0, 0, 0, 0.6);
  transform: rotate(90deg) scale(1.15);
}

.ipo-close:active {
  transform: rotate(90deg) scale(0.95);
}

/* Content wrapper */
.ipo-content {
  display: flex;
  gap: 20px;
  padding: 24px;
  text-decoration: none;
  color: white;
  position: relative;
  overflow: hidden;
  align-items: center; /* centrare verticală pentru toate elementele */
}

.ipo-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.ipo-content:hover::before {
  left: 100%;
}

/* Logo badge */
.ipo-logo-badge {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  background: white;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.2),
    0 0 0 3px rgba(255, 255, 255, 0.3);
  overflow: hidden;
  animation: pulse 2s infinite;
  align-self: center; /* centrare verticală în flex container */
}

.ipo-logo-badge img {
  width: 70%;
  height: 70%;
  object-fit: contain;
  display: block;
  margin: auto;
}

/* Text content */
.ipo-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ipo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  width: fit-content;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.ipo-badge svg {
  animation: pulse 1.5s infinite;
}

.ipo-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  background: linear-gradient(135deg, #ffffff 0%, #f0e7ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ipo-subtitle {
  font-size: 15px;
  margin: 0;
  opacity: 0.95;
  font-weight: 500;
}

.ipo-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.98);
  color: var(--brand-red, #e63946);
  border-radius: 12px;
  font-weight: 800;
  font-size: 14px;
  width: fit-content;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.ipo-content:hover .ipo-cta {
  transform: translateX(5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  background: white;
  border-color: white;
}

.ipo-cta svg {
  transition: transform 0.3s;
}

.ipo-content:hover .ipo-cta svg {
  transform: translateX(3px);
}

/* Responsive design */
@media (max-width: 768px) {
  .ipo-float-ad {
    bottom: 90px; /* deasupra theme toggle */
    right: 20px;
    left: auto;
    max-width: 340px;
    width: auto;
  }
  
  /* Variantă COMPACTĂ pe mobile - logo + text scurt + CTA */
  .ipo-float-ad.compact .ipo-content {
    padding: 14px 16px;
    gap: 12px;
  }
  
  .ipo-float-ad.compact .ipo-logo-badge {
    width: 56px;
    height: 56px;
  }
  
  .ipo-float-ad.compact .ipo-badge,
  .ipo-float-ad.compact .ipo-subtitle {
    display: none;
  }
  
  /* Text principal mai mic pe compact */
  .ipo-float-ad.compact .ipo-title {
    font-size: 15px;
    line-height: 1.2;
    margin: 0;
  }
  
  .ipo-float-ad.compact .ipo-cta {
  /*  display: none; /* ascunde butonul pe compact, doar textul rămâne */
  }
  
  .ipo-float-ad.compact .ipo-text {
    justify-content: center;
    gap: 0;
  }
  
  /* Stare EXPANDED (când user-ul atinge) */
  .ipo-float-ad.expanded {
    left: 20px;
    right: 20px;
    max-width: none;
  }
  
  .ipo-content {
    padding: 18px;
    gap: 14px;
  }
  
  .ipo-logo-badge {
    width: 64px;
    height: 64px;
  }
  
  .ipo-title {
    font-size: 18px;
  }
  
  .ipo-subtitle {
    font-size: 13px;
  }
  
  .ipo-cta {
    padding: 9px 16px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .ipo-float-ad {
    bottom: 85px;
    right: 15px;
  }
  
  /* Pe ecrane foarte mici, compact și mai mic */
  .ipo-float-ad.compact .ipo-content {
    padding: 12px 14px;
    gap: 10px;
  }
  
  .ipo-float-ad.compact .ipo-logo-badge {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }
  
  .ipo-float-ad.compact .ipo-title {
    font-size: 14px;
  }
  
  /* Expanded state pe mobile mic */
  .ipo-float-ad.expanded .ipo-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 18px;
  }
  
  .ipo-float-ad.expanded .ipo-logo-badge {
    width: 72px;
    height: 72px;
  }
  
  .ipo-float-ad.expanded .ipo-text {
    align-items: center;
  }
  
  .ipo-float-ad.expanded .ipo-title {
    font-size: 17px;
  }
}