:root{
  --bg:#f6f8fc; --ink:#0b1320; --muted:#66728f;
  --panel:#ffffff; --panel-b:#e8eef6;
  --brand:#ff2b599a; --brand-600:rgba(211, 32, 71, 0.478);
  --ok:#22c55e; --shadow:0 24px 60px rgba(80, 14, 36, 0.1), 0 1px 0 rgba(255,255,255,.7) inset;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}

body{
  margin:0; color:var(--ink);
   min-height: 100vh;
  font:16px/1.6 -apple-system,BlinkMacSystemFont,Segoe UI,Inter,Roboto,system-ui,Arial,sans-serif;
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
background:
    radial-gradient(900px 600px at 60% 12%, rgba(255, 10, 161, 0.08), transparent 60%),
    radial-gradient(1200px 800px at 0% 100%, rgba(199, 52, 162, 0.06), transparent 65%),
    linear-gradient(180deg, #f7f9ff 0%, #eef3ff 50%, #f7f9ff 100%);
      background-repeat: no-repeat;
  background-size: cover;
  overflow-x:hidden;
}

.wb-container{max-width:1160px;margin:0 auto;padding:24px}

/* Header */
.wb-header{position:relative;margin-top:2%;background:transparent;z-index:10;}
.wb-header-inner{display:flex;align-items:center;justify-content:space-between;height:64px}
.brand{display:flex;align-items:center;gap:10px;font-weight:800;letter-spacing:.2px}
.logo{width:180px;height:180px;}
.nav{display:flex;gap:12px}
.nav-link{color:var(--muted);text-decoration:none;padding:8px 12px;border-radius:10px}
.nav-link.active,.nav-link:hover{background:#fff;border:1px solid #e7edf6}


.lead{margin:6px 0 16px;color:var(--muted)}
/* Hero premium */
.hero {
  padding: 20px 0 70px;
  text-align: center;
}

.hero h1 {
  margin: 0;
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -1px;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.chip-premium {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
  text-transform: uppercase;
}

.chip-premium::before {
  content: '✓';
  font-size: 12px;
}

.hero-subtitle {
  margin: 16px auto 0;
  font-size: 18px;
  color: #64748b;
  font-weight: 400;
  max-width: 500px;
  line-height: 1.6;
}

.hero-highlight {
  color: #0f172a;
  font-weight: 600;
}

/* Mobile */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 32px;
    flex-direction: column;
    gap: 12px;
  }
  
  .chip-premium {
    font-size: 12px;
    padding: 6px 14px;
  }
  
  .hero-subtitle {
    font-size: 15px;
    padding: 0 20px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 26px;
  }
  
  .chip-premium {
    font-size: 11px;
    padding: 5px 12px;
  }
  
  .hero-subtitle {
    font-size: 14px;
  }
}
/* Layout */
.grid{display:grid;grid-template-columns:1.05fr .95fr;gap:30px}


.panel{background:var(--panel);border:1px solid var(--panel-b);border-radius:22px;box-shadow:var(--shadow)}
.panel.form{padding:26px}
/* --- Preview fixat (sticky) --- */
.panel.preview{
  position: sticky;
  top: 90px;              /* distanță față de header */
  align-self: start;      /* să nu se întindă pe toată înălțimea grid-ului */
  height: auto;           /* doar cât conținutul */
  max-height: calc(100vh - 120px);  /* să nu depășească viewport-ul */
  overflow-y: auto;
}

/* Box-ul de previzualizare să fie centrat și mai compact */
.preview-box{
  min-height: 400px;      /* mai mic decât formularul */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}


/* Segmented */
.segmented{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:18px;padding:8px;background:#fff;border:1px solid #e8eef6;border-radius:999px}
.seg{border:0;background:transparent;padding:10px 16px;border-radius:999px;color:var(--muted);cursor:pointer;font-weight:600;transition:transform .04s, box-shadow .15s, background .15s}
.seg:hover{background:#f4f7ff}
.seg.active{background:linear-gradient(180deg,var(--brand),var(--brand-600));color:#fff;box-shadow:0 10px 26px rgba(43,103,255,.28)}

/* Fields – stacked labels, two columns airy */
.fields{display:grid;gap:18px}
.row{display:grid;gap:18px}
.row-2{grid-template-columns:repeat(2,1fr)}
@media (max-width:1024px){.row-2{grid-template-columns:1fr}}

.control{position:relative}
.control label{display:block;margin:10px 0 8px;font-size:13px;color:#6b7896}

/* Apple-like filled inputs */
.control input[type=text],
.control input[type=number],
.control input[type=file],
.control input[type=color],
.control select,
.control textarea{
  width:100%; height:52px; border-radius:14px; border:1px solid #e6edf7;
  background:#f7f9ff; color:var(--ink); padding:14px 16px; outline:none;
  transition:border-color .15s, box-shadow .15s, background .15s; box-shadow:inset 0 1px 0 #fff;
}
.control textarea{min-height:120px;height:auto;resize:vertical}
.control select{appearance:none;background-image:none}
.control input[type=color]{padding:0}
.control:hover input,.control:hover select,.control:hover textarea{border-color:#d6e2f3}
.control input:focus,.control select:focus,.control textarea:focus{border-color:var(--brand);background:#fff;box-shadow:0 0 0 6px rgba(43,103,255,.14)}

.control input[type=number]::-webkit-inner-spin-button,
.control input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.control input[type=number]{-moz-appearance:textfield}

/* Actions */
.actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:14px}
.btn{border:1px solid #e7edf6;background:#fff;color:var(--ink);border-radius:12px;padding:12px 18px;cursor:pointer;transition:transform .04s, box-shadow .15s, background .15s, border-color .15s}
.btn:hover{transform:translateY(-1px);box-shadow:0 10px 26px rgba(16,33,60,.08)}
.btn.primary{background:linear-gradient(180deg,var(--brand),var(--brand-600));border-color:var(--brand);color:#fff}
.btn.primary:hover{box-shadow:0 14px 34px rgba(43,103,255,.35)}
.btn.ghost{background:#fff}
.btn.subtle{background:transparent;border-color:transparent;color:var(--muted)}
.btn:disabled{opacity:.55;cursor:not-allowed;box-shadow:none;transform:none}
.micro{color:#8a94ad;font-size:12px;margin-top:6px}

/* Preview */
.preview-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 24px;
  border-bottom: 1px solid #eef2f8;
  border-radius: 22px 22px 0 0;
  background: linear-gradient(180deg, #fff, #f8faff);
  font-weight: 600;
  font-size: 14px;
  color: #64748b;
  letter-spacing: 0.02em;
}
.preview-top .led{width:8px;height:8px;border-radius:50%;background:var(--ok);box-shadow:0 0 0 6px rgba(34,197,94,.16)}
.preview-box {
  min-height: 480px;
  border-radius: 0 0 22px 22px;
  background: 
    radial-gradient(circle at 30% 20%, rgba(236, 72, 153, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(59, 130, 246, 0.03) 0%, transparent 50%),
    linear-gradient(180deg, #fafbff 0%, #fff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}
.placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  text-align: center;
  padding: 40px 30px;
}
.placeholder .ghost-wrapper {
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  animation: gentlePulse 4s ease-in-out infinite;
}

@keyframes gentlePulse {
  0%, 100% { 
    transform: scale(1);
    box-shadow: 0 4px 20px -5px rgba(148, 163, 184, 0.15);
  }
  50% { 
    transform: scale(1.03);
    box-shadow: 0 8px 30px -8px rgba(148, 163, 184, 0.25);
  }
}
.qr-card canvas {
  border-radius: 16px;
}

.placeholder .ghost {
  width: 48px;
  height: 48px;
  stroke: #cbd5e1;
  fill: none;
  stroke-width: 1.5;
  position: relative;
  z-index: 1;
}

.placeholder p {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
  color: #64748b;
}

.placeholder .hint {
  font-size: 13px;
  color: #94a3b8;
  margin: 0;
}

/* Frame pentru canvas */
/* --- FIX: QR să rămână perfect pătrat --- */
.qr-card { display:inline-flex; align-items:center; justify-content:center; }
.qr-card canvas {
  width: 90% !important;   /* afișează la dimensiunea proprie */
  height: 90% !important;  /* fără autoscale pe verticală */
  image-rendering: pixelated;
}
#qr-holder img { display:none !important; } /* ascunde <img> provizoriu generat de lib */

/* Footer */
.wb-footer{border-top:1px solid #e9eff7;margin-top:28px}
.footer-inner{display:flex;align-items:center;justify-content:space-between;padding:16px 0;color:#7c879f}
.footer-inner a{color:inherit;text-decoration:none}

/* Segmented: single line + smooth scroll */
.segmented{
  display:flex;
  align-items:center;
  gap:10px;
  padding:8px 10px;
  border:1px solid #e8eef6;
  border-radius:999px;
  background:#fff;

  /* important: NU mai permite wrap; derulare orizontală când nu încape */
  flex-wrap:nowrap;
  overflow-x:auto;
  overflow-y:hidden;
  scrollbar-width:none;        /* Firefox */
  -ms-overflow-style:none;     /* IE/Edge */
}
.segmented::-webkit-scrollbar{display:none} /* Chrome/Safari */

.seg{
  flex:0 0 auto;               /* nu se întind, nu forțează wrap */
  white-space:nowrap;
  border:0;
  background:transparent;
  padding:10px 16px;
  border-radius:999px;
  color:var(--muted);
  cursor:pointer;
  font-weight:600;
  transition:transform .04s, box-shadow .15s, background .15s;
}
.seg:hover{background:#f4f7ff}
.seg.active{
  background:linear-gradient(180deg,var(--brand),var(--brand-600));
  color:#fff;
  box-shadow:0 10px 26px rgba(43,103,255,.28);
}

/* Micșorăm ușor pe ecrane înguste ca să încapă frumos */
@media (max-width:900px){
  .seg{ padding:8px 12px; font-size:14px; }
}

/* === Modern color picker === */
.control input[type=color]{
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border: none;
  border-radius: 12px;
  width: 48px;
  height: 48px;
  cursor: pointer;
  padding: 0;
  background: none;
  box-shadow: 0 2px 6px rgba(0,0,0,.08), inset 0 0 0 1px rgba(0,0,0,.12);
}

/* WebKit/Blink browsers */
.control input[type=color]::-webkit-color-swatch-wrapper{
  padding:0;
  border-radius:12px;
}
.control input[type=color]::-webkit-color-swatch{
  border:none;
  border-radius:12px;
}

/* Firefox */
.control input[type=color]::-moz-color-swatch{
  border:none;
  border-radius:12px;
}

.color-wrap{
  display:flex;
  align-items:center;
  gap:10px;
}
.color-wrap input[type=text]{
  flex:1;
  height:48px;
  border-radius:12px;
  border:1px solid #e6edf7;
  background:#f7f9ff;
  padding:0 12px;
  font-family:monospace;
}
.color-wrap input[type=text]:focus{
  border-color:var(--brand);
  background:#fff;
  box-shadow:0 0 0 4px rgba(43,103,255,.14);
}


/* 1) Mai mult aer în form + headings mici */
.panel.form { padding: 30px; }
.fields, .row, .row-2 { gap: 20px; }
.subhead{
  margin: 6px 0 2px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #8a94ad;
  font-weight: 700;
}


/* 5) Butoane cu icon (SVG implicit) */
.btn svg{ width:16px; height:16px; margin-right:8px; vertical-align:-3px; }
.btn.primary{ box-shadow:0 12px 28px rgba(43,103,255,.28); }
.btn.primary:hover{ box-shadow:0 18px 34px rgba(43,103,255,.34); }

.preview-box{
  background:
    linear-gradient(180deg,#fff,#fafcff) padding-box,
    radial-gradient(800px 500px at 10% -10%, #f1f6ff 0%, transparent 55%);
  border: 1px solid #eef2f8;
}

/* Footer bar (clean, sticky-look) */
.wb-footer{
  border-top:1px solid #e9eff7;
  background:#fff;
}
.footer-bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:16px 0;
  color:#6f7a95;
  font-size:14px;
}
.footer-left a{
  color:inherit;
  text-decoration:none;
}
.footer-left a:hover{ text-decoration:underline; }
.footer-left .dot{ opacity:.6; margin:0 8px; }

/* "Sus ↑" button */
.to-top{
  appearance:none;
  border:1px solid #e7edf6;
  background:#fff;
  color:#0b1320;
  border-radius:12px;
  padding:10px 14px;
  cursor:pointer;
  box-shadow:0 6px 18px rgba(16,33,60,.08);
  transition:transform .04s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}
.to-top:hover{
  transform:translateY(-1px);
  box-shadow:0 10px 24px rgba(16,33,60,.12);
  border-color:#d8e2f2;
}
.to-top:active{ transform:translateY(0); box-shadow:0 4px 12px rgba(16,33,60,.10); }

.nav { display:flex; gap:14px; align-items:center; }
.nav a { text-decoration:none; color:#334155; padding:8px 10px; border-radius:10px; }
.nav a:hover { background:#f1f5ff; }
/* === Dropdown fix (NU folosi :hover) === */
.nav-dropdown{ position:relative; }
.nav-dropdown > button{
  display:inline-flex; align-items:center; gap:8px;
  height:36px; padding:0 12px; cursor:pointer;
  border:1px solid #e7edf6; background:#fff; color:#0b1320; border-radius:12px;
  box-shadow:0 6px 18px rgba(16,33,60,.08);
}
.nav-dropdown .menu{
  position:absolute; right:0; top:100%;
  display:none; z-index:100; min-width:240px;
}
.nav-dropdown.open .menu{ display:block; }

/* Popover cu „bridge” ca să nu existe gaură între buton și meniu */
.nav-dropdown .menu::before{
  content:""; display:block; height:10px;   /* spațiul dintre buton și listă */
}
.nav-dropdown .menu{
  background:#fff; border:1px solid #e7edf6; border-radius:12px;
  padding:8px; box-shadow:0 16px 40px rgba(16,33,60,.14);
}
.nav-dropdown .menu a{
  display:block; padding:10px 12px; border-radius:8px; color:#0b1320; text-decoration:none;
}
.nav-dropdown .menu a:hover{ background:#f7f9ff }


.brand img.logo{
  height:42px;       /* ajustează cât de mare vrei */
  display:block;
}


.footer-badges {
  display: flex;
  gap: 12px;
}

.footer-icon {
  height: 30px;  /* ajustezi dimensiunea */
  opacity: 0.85;
  transition: opacity 0.2s ease-in-out;
}

.footer-icon:hover {
  opacity: 1;
}
footer {
  background: #0a0a0a;
  color: #f5f5f5;
  padding: 48px 0 24px;
  font-size: 15px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
}

.footer-brand h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

.footer-links h4,
.footer-social h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #e5e5e5;
}

.footer-links a {
  display: block;
  margin: 4px 0;
  color: #bbb;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #0a74ff;
}

.footer-social a {
  color: #bbb;
  margin-right: 8px;
  text-decoration: none;
}
.footer-social a:hover {
  color: #0a74ff;
}

.footer-social .badge {
  margin-top: 12px;
  display: inline-block;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #1e40af;
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  margin-top: 32px;
  padding-top: 16px;
  font-size: 14px;
  color: #aaa;
}

.footer-flex{display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap}
.ms-footer{ padding:10px 14px; font-size:12px; color:#667085; background:#fafbff; border-top:1px solid #eef2ff; }


.site-footer .container,
footer .container {
  max-width: 1200px; /* sau var(--container-width) */
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}


/* ===== QR – SEO COPY ===== */
.qr-seo{ margin:56px auto 32px; color:var(--ink); }
.qr-title{ margin:0 0 12px; font-size:28px; line-height:1.25; font-weight:800; letter-spacing:-.2px; color:var(--ink); }
.qr-text{ margin:8px 0 12px; color:var(--muted); line-height:1.75; }

/* accent local în loc de <strong> */
.qr-em{
  font-weight:800;
  color: var(--ink);
  background: linear-gradient(180deg,var(--brand),var(--brand-600));
  -webkit-background-clip:text; background-clip:text;
  color: transparent;
}

.qr-sub{ margin:18px 0 10px; font-size:16px; font-weight:800; color:var(--ink); }

.qr-list{ list-style:none; padding:0; margin:10px 0 0; display:grid; gap:10px; }
.qr-list li{
  position:relative; padding-left:20px; color:var(--muted); line-height:1.65;
}
.qr-list li::before{
  content:""; position:absolute; left:0; top:9px; width:8px; height:8px; border-radius:999px;
  background: linear-gradient(180deg,var(--brand),var(--brand-600));
  box-shadow:0 2px 6px rgba(43,103,255,.25);
}

/* ===== QR – FAQ ===== */
.qr-faq{ margin:56px auto 72px; }
.qr-qa{
  background:var(--panel);
  border:1px solid var(--panel-b);
  border-radius:14px;
  box-shadow:var(--shadow);
  overflow:hidden;
}
.qr-qa + .qr-qa{ margin-top:12px; }

.qr-qa summary{
  list-style:none; cursor:pointer; user-select:none;
  padding:14px 16px; display:flex; align-items:center; justify-content:space-between;
  color:var(--ink); font-weight:700;
}
.qr-qa summary::-webkit-details-marker{ display:none; }
.qr-qa summary .q{ display:inline-flex; align-items:center; gap:10px; }
.qr-qa summary .q::before{
  content:""; width:10px; height:10px; border-radius:999px;
  background: linear-gradient(180deg,var(--brand),var(--brand-600));
  box-shadow:0 4px 10px rgba(43,103,255,.25);
}
.qr-qa summary::after{
  content:"›"; font-size:22px; line-height:1;
  transform:rotate(90deg); color:#8a94ad; transition:transform .2s ease, color .2s ease;
}
.qr-qa[open] summary::after{ transform:rotate(-90deg); color:var(--brand); }

.qr-qa p{
  margin:0; padding:10px 16px 14px;
  color:var(--muted); line-height:1.7; border-top:1px solid var(--panel-b);
}

/* accesibilitate */
.qr-qa summary:focus-visible{
  outline:none; box-shadow:0 0 0 6px rgba(43,103,255,.14) inset;
}

/* micro-ajustări pe mobil */
@media (max-width:480px){
  .qr-title{ font-size:24px; }
  .qr-qa summary{ padding:12px 14px; }
  .qr-qa p{ padding:0 14px 12px; }
}


.mouse-glow{
  position:fixed; width:36vmin; height:36vmin; border-radius:50%;
  pointer-events:none; z-index:999;
  background:radial-gradient(closest-side, rgba(192, 20, 63, 0.062), transparent 70%);
  filter:blur(12px); transform:translate(-50%,-50%); mix-blend-mode:multiply;
  opacity:.9; transition:opacity .2s ease;
}


.nav .menu {
  display:none;
  position:absolute;
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:8px;
  margin-top:0.5rem;
  padding:0.5rem 0;
  box-shadow:0 4px 12px rgba(0,0,0,.08);
}
.nav-dropdown.open .menu { display:block; }

/* Burger button */
.burger {
  display:none;
  flex-direction:column;
  gap:5px;
  cursor:pointer;
}
.burger span {
  display:block;
  width:24px;
  height:2px;
  background:#0f172a;
  border-radius:2px;
  transition:all .3s ease;
}


@media (max-width:768px){
  .burger { display:flex; }
  .nav {
    display:none;
    flex-direction:column;
    position:absolute;
    top:60px; right:0;
    width:100%;
    background:#fff;
    border-top:1px solid #e5e7eb;
    padding:1rem;
    gap:0.75rem;
  }
  .nav.open { display:flex; }
  .nav .menu {
    position:static;
    border:none;
    box-shadow:none;
    margin:0;
    padding:0.25rem 0 0.5rem;
  }
}

/* === HARD GUARD: nimic nu iese din ecran pe mobil === */
@media (max-width: 768px){

  html, body { max-width:100%; overflow-x:hidden; }

.hero h1{font-size:27px;}
.hero h2{font-size:15px;}

  /* container + panouri */
  .wb-container,
  .panel,
  .panel.form,
  .panel.preview,
  .grid {
    width:100%;
    max-width:100%;
    box-sizing:border-box;
    overflow-x:hidden;
  }

  /* header compact + fără spill */
  .wb-header-inner { height:60px; padding:0 14px; }
  .brand img.logo { height:34px; width:auto; }

  /* (dacă ai această regulă mai sus: .logo{width:180px;height:180px;} o anulez pe mobil) */
  .logo { width:auto !important; height:34px !important; }

  /* meniu mobil full width (nu iese) */
  .nav {
    position:fixed; left:0; right:0; top:60px;
    display:none; flex-direction:column;
    padding:16px; gap:10px; width:100%; max-width:100%;
    box-sizing:border-box; overflow:auto;
  }
  .nav.open { display:flex; }
  .nav a, .nav-dropdown > button { width:100%; text-align:left; }

  /* dropdown devine listă simplă pe mobil; fără absolute */
  .nav-dropdown { width:100%; position:static; }
  .nav-dropdown .menu {
    position:static; display:block !important;
    border:none; box-shadow:none; margin:0; padding:6px 0 0 12px;
  }

  /* === TABS (segmented) — scroll orizontal fără să iasă din ecran === */
  .segmented{
    display:flex; flex-wrap:nowrap;
    width:100%; max-width:100%;
    overflow-x:auto; overflow-y:hidden;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
  }
  .segmented::-webkit-scrollbar{ display:none; }
  .seg { flex:0 0 auto; white-space:nowrap; }

  /* câmpuri & controale 100% (input file/color nu sar) */
  .control input,
  .control select,
  .control textarea {
    max-width:100%;
    width:100%;
  }
  .color-wrap { gap:8px; }
  .color-wrap input[type=text]{ min-width:0; } /* împiedică lărgirea grilei */

  /* previzualizare — nici canvas nici svg nu depășesc */
  .preview-box { min-height:320px; padding:16px; }
  .qr-card, .qr-card canvas, .qr-card svg, #qr-holder img {
    max-width:100% !important;
  }
  .qr-card canvas { width:100% !important; height:auto !important; image-rendering:pixelated; }

  /* grila devine 1 coloană și nu depășește */
  .grid { display:grid; grid-template-columns:1fr; gap:18px; }
  .row-2 { grid-template-columns:1fr; }
}

/* ULTIMA PLASĂ DE SIGURANȚĂ (și pe desktop, dacă ceva e prea lat) */
img, svg, canvas, video { max-width:100%; height:auto; display:block; }



/* ─────────────────────────────────────────────────────────
   Link Columns
   ───────────────────────────────────────────────────────── */

.footer-links {
  display: flex;
  flex-direction: column;
}

.footer-links h4 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 28px;
  color: #fff;
  position: relative;
  display: inline-block;
}

.footer-links h4::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 20px;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6, #10b981);
  border-radius: 2px;
}

.footer-links a {
  display: block;
  width: fit-content;
  color: #6b7280;
  text-decoration: none;
  padding: 8px 0;
  font-size: 14px;
  font-weight: 450;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, #3b82f6, #10b981);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-links a:hover {
  color: #f1f5f9;
  transform: translateX(6px);
}

.footer-links a:hover::after {
  width: 100%;
}

/* ─────────────────────────────────────────────────────────
   Social Section (ultima coloană)
   ───────────────────────────────────────────────────────── */

.footer-social {
  margin-top: 8px;
}

.footer-social a {
  color: #6b7280;
  text-decoration: none;
  margin-right: 0;
  display: block;
  padding: 8px 0;
  font-size: 14px;
  font-weight: 450;
  width: fit-content;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-social a:hover {
  color: #f1f5f9;
  transform: translateX(6px);
}

/* Badge "Made in România" */
.footer-social .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  font-size: 12px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 100px;
  background: linear-gradient(135deg, 
    rgba(59, 130, 246, 0.1) 0%, 
    rgba(16, 185, 129, 0.1) 100%
  );
  color: #9ca3af;
  border: 1px solid rgba(255, 255, 255, 0.05);
  letter-spacing: 0.02em;
  transition: all 0.4s ease;
}

.footer-social .badge:hover {
  background: linear-gradient(135deg, 
    rgba(59, 130, 246, 0.15) 0%, 
    rgba(16, 185, 129, 0.15) 100%
  );
  border-color: rgba(255, 255, 255, 0.1);
  color: #d1d5db;
}

/* ─────────────────────────────────────────────────────────
   Footer Bottom
   ───────────────────────────────────────────────────────── */

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  text-align: center;
  margin-top: 60px;
  padding-top: 32px;
  font-size: 13px;
  color: #4b5563;
  position: relative;
  z-index: 1;
  letter-spacing: 0.01em;
}

/* ─────────────────────────────────────────────────────────
   Responsive
   ───────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }
  
  .footer-brand {
    grid-column: 1 / -1;
    padding-right: 0;
    max-width: 400px;
  }
}

@media (max-width: 640px) {
  footer {
    padding: 60px 0 32px;
    margin-top: 60px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer-brand {
    text-align: center;
    max-width: 100%;
  }
  
  .footer-brand > p {
    margin-left: auto;
    margin-right: auto;
    max-width: 300px;
  }
  
  .footer-badges {
    justify-content: center;
  }
  
  .footer-links {
    text-align: center;
    align-items: center;
  }
  
  .footer-links h4::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .footer-links a {
    text-align: center;
  }
  
  .footer-links a:hover {
    transform: none;
  }
  
  .footer-links a::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .footer-social {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .footer-bottom {
    margin-top: 40px;
  }
}

/* ═══════════════════════════════════════════════════════════
   FOOTER - Premium Dark Style v2
   ═══════════════════════════════════════════════════════════ */

footer {
  background: #07070a;
  color: #f5f5f5;
  padding: 80px 0 40px;
  font-size: 15px;
  margin-top: 100px;
  position: relative;
}

/* Gradient glow top */
footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 800px;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(59, 130, 246, 0.6) 30%,
    rgba(16, 185, 129, 0.6) 70%,
    transparent 100%
  );
}

/* Ambient glow */
footer::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse at center top, 
    rgba(59, 130, 246, 0.06) 0%, 
    transparent 60%
  );
  pointer-events: none;
}

/* ─────────────────────────────────────────────────────────
   Grid - 4 Columns
   ───────────────────────────────────────────────────────── */

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 60px;
  position: relative;
  z-index: 1;
}

/* ─────────────────────────────────────────────────────────
   Brand Column
   ───────────────────────────────────────────────────────── */

.footer-brand {
  padding-right: 40px;
}

.footer-brand h3 {
  font-size: 26px;
  font-weight: 800;
  margin: 0 0 20px;
  color: #fff;
  letter-spacing: -0.03em;
}

.footer-brand > p {
  color: #6b7280;
  line-height: 1.75;
  font-size: 15px;
  margin-bottom: 32px;
}

/* Trust Badges */
.footer-badges {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-badges a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-badges a:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
}

.footer-badges img,
.footer-icon {
  height: 28px;
  width: auto;
}

.footer-badges a:hover img,
.footer-badges a:hover .footer-icon {
  opacity: 0.8;
}


/* ───────────────────────────────────────────────────────────────────────────
   FOOTER SERVICES - Mega menu în footer
   ─────────────────────────────────────────────────────────────────────────── */
.footer-services {
  grid-column: 1 / -1;
  padding-bottom: 32px;
  margin-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.footer-service-col h5 {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #6366f1;
  display: inline-block;
}

.footer-service-col a {
  display: block;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  padding: 6px 0;
  transition: all 0.2s ease;
}

.footer-service-col a:hover {
  color: #ffffff;
  padding-left: 6px;
}

/* Responsive */
@media (max-width: 900px) {
  .footer-services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
}

@media (max-width: 500px) {
  .footer-services-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .footer-service-col h5 {
    margin-bottom: 12px;
  }
  
  .footer-service-col a {
    padding: 5px 0;
  }
}

@media (max-width: 500px) {
  .footer-services-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }
  
  .footer-service-col h5 {
    margin-bottom: 12px;
    display: block;
    border-bottom: none;
    position: relative;
  }
  
  .footer-service-col h5::after {
    content: "";
    display: block;
    width: 40px;
    height: 2px;
    background: #6366f1;
    margin: 10px auto 0;
  }
  
  .footer-service-col a {
    padding: 6px 0;
  }
  
  .footer-service-col a:hover {
    padding-left: 0;
    color: #6366f1;
  }
}

/* ========================================
   TRACKING MODAL STYLES
   Adaugă acest CSS la sfârșitul style.css
   ======================================== */

/* Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Box */
.modal-box {
  background: #fff;
  border-radius: 20px;
  padding: 32px;
  max-width: 480px;
  width: 100%;
  position: relative;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
  transform: translateY(20px) scale(0.95);
  transition: transform 0.3s ease;
  text-align: center;
}

.modal-overlay.active .modal-box {
  transform: translateY(0) scale(1);
}

/* Close button */
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: none;
  background: #f5f5f5;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.modal-close:hover {
  background: #eee;
  color: #333;
}

/* Icon */
.modal-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

/* Title */
.modal-box h2 {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 700;
  color: #0b1320;
}

/* Description */
.modal-desc {
  color: #66728f;
  margin: 0 0 20px;
  line-height: 1.6;
  font-size: 15px;
}

.modal-desc strong {
  color: #0b1320;
}

/* Tracking URL info */
.modal-tracking-info {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f0f4ff;
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.modal-tracking-info .label {
  font-size: 12px;
  color: #66728f;
  font-weight: 600;
}

.modal-tracking-info code {
  font-family: 'SF Mono', Monaco, monospace;
  font-size: 13px;
  color: #0b1320;
  background: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  word-break: break-all;
}

.copy-btn {
  border: none;
  background: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  color: #0b1320;
  transition: background 0.2s;
}

.copy-btn:hover {
  background: #e8eef6;
}

/* Form */
.modal-input-group {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.modal-input-group input {
  flex: 1;
  height: 48px;
  padding: 0 16px;
  border: 1px solid #e6edf7;
  border-radius: 12px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.modal-input-group input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(255, 43, 89, 0.1);
}

.modal-input-group .btn {
  white-space: nowrap;
  padding: 0 20px;
  height: 48px;
}

/* Success state */
.modal-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px;
}

.modal-success .success-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #fff;
}

.modal-success p {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #22c55e;
}

/* Skip button */
.modal-skip {
  background: none;
  border: none;
  color: #8a94ad;
  font-size: 14px;
  cursor: pointer;
  padding: 8px 16px;
  margin-bottom: 20px;
  transition: color 0.2s;
}

.modal-skip:hover {
  color: #66728f;
  text-decoration: underline;
}

/* Features list */
.modal-features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding-top: 20px;
  border-top: 1px solid #eef2f8;
}

.modal-features .feature {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #66728f;
  background: #f7f9ff;
  padding: 6px 12px;
  border-radius: 20px;
}

.modal-features .feature span {
  color: #22c55e;
}

.modal-features .feature.pro {
  background: linear-gradient(135deg, rgba(255, 43, 89, 0.1), rgba(255, 100, 130, 0.1));
}

.modal-features .feature.pro span {
  color: var(--brand);
}

/* Responsive */
@media (max-width: 500px) {
  .modal-box {
    padding: 24px 20px;
    border-radius: 16px;
  }
  
  .modal-box h2 {
    font-size: 18px;
  }
  
  .modal-input-group {
    flex-direction: column;
  }
  
  .modal-input-group .btn {
    width: 100%;
  }
  
  .modal-tracking-info {
    flex-direction: column;
    text-align: center;
  }
}
/* =========================
   TRACKING MODAL STYLES
   ========================= */

.tracking-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

.tracking-modal-overlay.closing {
  animation: fadeOut 0.3s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

.tracking-modal {
  background: #fff;
  border-radius: 20px;
  padding: 40px;
  max-width: 480px;
  width: 100%;
  position: relative;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease;
  text-align: center;
}

@keyframes slideUp {
  from { 
    opacity: 0;
    transform: translateY(30px);
  }
  to { 
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  background: #f1f5f9;
  border-radius: 50%;
  font-size: 24px;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.modal-close:hover {
  background: #e2e8f0;
  color: #334155;
}

.modal-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #ec4899, #f43f5e);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-icon svg {
  width: 36px;
  height: 36px;
  color: #fff;
}

.tracking-modal h2 {
  margin: 0 0 16px;
  font-size: 24px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
}

.modal-desc {
  color: #64748b;
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 24px;
}

.modal-desc strong {
  color: #334155;
}

/* Features grid */
.modal-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 28px;
}

.feature {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #f8fafc;
  border-radius: 12px;
  font-size: 14px;
  color: #475569;
}

.feature-icon {
  font-size: 18px;
}

/* Form step */
.modal-step {
  margin-top: 8px;
}

.modal-cta {
  font-size: 14px;
  color: #64748b;
  margin: 0 0 16px;
}

.modal-form {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.modal-form input {
  flex: 1;
  height: 48px;
  padding: 0 16px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.modal-form input:focus {
  border-color: #ec4899;
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.1);
}

.modal-form .btn {
  white-space: nowrap;
  padding: 0 24px;
  height: 48px;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.modal-form .btn.primary {
  background: linear-gradient(135deg, #ec4899, #f43f5e);
  color: #fff;
}

.modal-form .btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(236, 72, 153, 0.4);
}

.modal-form .btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.modal-note {
  font-size: 12px;
  color: #94a3b8;
  margin: 0;
}

/* Success step */
#modalStep2 {
  padding: 20px 0;
}

.success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, #10b981, #34d399);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: #fff;
}

#modalStep2 h3 {
  margin: 0 0 8px;
  font-size: 20px;
  color: #0f172a;
}

#modalStep2 p {
  color: #64748b;
  margin: 0 0 20px;
}

#modalStep2 .btn.ghost {
  background: #f1f5f9;
  color: #475569;
  border: none;
  padding: 12px 32px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
}

#modalStep2 .btn.ghost:hover {
  background: #e2e8f0;
}

/* Error message */
.modal-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  margin-top: 12px;
}

/* Skip button */
.modal-skip {
  display: inline-block;
  margin-top: 20px;
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 14px;
  cursor: pointer;
  padding: 8px 16px;
  transition: color 0.2s;
}

.modal-skip:hover {
  color: #64748b;
}

/* Mobile responsive */
@media (max-width: 520px) {
  .tracking-modal {
    padding: 32px 24px;
  }
  
  .tracking-modal h2 {
    font-size: 20px;
  }
  
  .modal-features {
    grid-template-columns: 1fr;
  }
  
  .modal-form {
    flex-direction: column;
  }
  
  .modal-form .btn {
    width: 100%;
  }
}
/* =========================
   TRACKING MODAL STYLES
   ========================= */

.tracking-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

.tracking-modal-overlay.closing {
  animation: fadeOut 0.3s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

.tracking-modal {
  background: #fff;
  border-radius: 20px;
  padding: 40px;
  max-width: 480px;
  width: 100%;
  position: relative;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease;
  text-align: center;
}

@keyframes slideUp {
  from { 
    opacity: 0;
    transform: translateY(30px);
  }
  to { 
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  background: #f1f5f9;
  border-radius: 50%;
  font-size: 24px;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.modal-close:hover {
  background: #e2e8f0;
  color: #334155;
}

.modal-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #ec4899, #f43f5e);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-icon svg {
  width: 36px;
  height: 36px;
  color: #fff;
}

.tracking-modal h2 {
  margin: 0 0 16px;
  font-size: 24px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
}

.modal-desc {
  color: #64748b;
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 24px;
}

.modal-desc strong {
  color: #334155;
}

/* Features grid */
.modal-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 28px;
}

.feature {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #f8fafc;
  border-radius: 12px;
  font-size: 14px;
  color: #475569;
}

.feature-icon {
  font-size: 18px;
}

/* Form step */
.modal-step {
  margin-top: 8px;
}

.modal-cta {
  font-size: 14px;
  color: #64748b;
  margin: 0 0 16px;
}

.modal-form {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.modal-form input {
  flex: 1;
  height: 48px;
  padding: 0 16px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.modal-form input:focus {
  border-color: #ec4899;
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.1);
}

.modal-form .btn {
  white-space: nowrap;
  padding: 0 24px;
  height: 48px;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.modal-form .btn.primary {
  background: linear-gradient(135deg, #ec4899, #f43f5e);
  color: #fff;
}

.modal-form .btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(236, 72, 153, 0.4);
}

.modal-form .btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.modal-note {
  font-size: 12px;
  color: #94a3b8;
  margin: 0;
}

/* Success step */
#modalStep2 {
  padding: 20px 0;
}

.success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, #10b981, #34d399);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: #fff;
}

#modalStep2 h3 {
  margin: 0 0 8px;
  font-size: 20px;
  color: #0f172a;
}

#modalStep2 p {
  color: #64748b;
  margin: 0 0 20px;
}

#modalStep2 .btn.ghost {
  background: #f1f5f9;
  color: #475569;
  border: none;
  padding: 12px 32px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
}

#modalStep2 .btn.ghost:hover {
  background: #e2e8f0;
}

/* Error message */
.modal-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  margin-top: 12px;
}

/* Skip button */
.modal-skip {
  display: inline-block;
  margin-top: 20px;
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 14px;
  cursor: pointer;
  padding: 8px 16px;
  transition: color 0.2s;
}

.modal-skip:hover {
  color: #64748b;
}

/* =========================
   MOBILE - SLIDE UP SHEET
   ========================= */

@media (max-width: 520px) {
  .tracking-modal-overlay {
    padding: 0;
    align-items: flex-end;
  }
  
  .tracking-modal {
    border-radius: 24px 24px 0 0;
    padding: 20px 20px 34px;
    max-width: 100%;
    width: 100%;
    animation: slideUpMobile 0.35s cubic-bezier(0.32, 0.72, 0, 1);
    max-height: 92vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  /* Swipe indicator bar */
  .tracking-modal::before {
    content: '';
    display: block;
    width: 36px;
    height: 5px;
    background: #e2e8f0;
    border-radius: 3px;
    margin: 0 auto 20px;
  }
  
  @keyframes slideUpMobile {
    from { 
      transform: translateY(100%);
    }
    to { 
      transform: translateY(0);
    }
  }
  
  .tracking-modal-overlay.closing .tracking-modal {
    animation: slideDownMobile 0.25s ease forwards;
  }
  
  @keyframes slideDownMobile {
    from { 
      transform: translateY(0);
    }
    to { 
      transform: translateY(100%);
    }
  }
  
  .modal-close {
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    font-size: 20px;
  }
  
  .modal-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 16px;
  }
  
  .modal-icon svg {
    width: 26px;
    height: 26px;
  }
  
  .tracking-modal h2 {
    font-size: 20px;
    margin-bottom: 10px;
    line-height: 1.25;
  }
  
  .modal-desc {
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.5;
  }
  
  .modal-features {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 20px;
  }
  
  .feature {
    padding: 10px 12px;
    font-size: 12px;
    border-radius: 10px;
    gap: 8px;
  }
  
  .feature-icon {
    font-size: 15px;
  }
  
  .modal-cta {
    font-size: 13px;
    margin-bottom: 12px;
  }
  
  .modal-form {
    flex-direction: column;
    gap: 10px;
  }
  
  .modal-form input {
    width: 100%;
    height: 52px;
    font-size: 16px; /* Previne zoom pe iOS */
    border-radius: 14px;
    padding: 0 18px;
  }
  
  .modal-form .btn {
    width: 100%;
    height: 52px;
    font-size: 16px;
    border-radius: 14px;
  }
  
  .modal-note {
    font-size: 11px;
    margin-top: 10px;
    color: #a1a1aa;
  }
  
  /* Success step mobile */
  #modalStep2 {
    padding: 10px 0;
  }
  
  .success-icon {
    width: 52px;
    height: 52px;
    font-size: 26px;
    margin-bottom: 14px;
  }
  
  #modalStep2 h3 {
    font-size: 18px;
    margin-bottom: 6px;
  }
  
  #modalStep2 p {
    font-size: 13px;
    margin-bottom: 18px;
  }
  
  #modalStep2 .btn.ghost {
    width: 100%;
    height: 48px;
    font-size: 15px;
  }
  
  .modal-error {
    font-size: 13px;
    padding: 10px 14px;
    border-radius: 10px;
  }
  
  .modal-skip {
    font-size: 13px;
    margin-top: 14px;
    padding: 14px 24px;
    width: 100%;
  }
}

/* Extra small screens (iPhone SE, etc) */
@media (max-width: 375px) {
  .tracking-modal {
    padding: 16px 16px 30px;
  }
  
  .tracking-modal::before {
    margin-bottom: 16px;
  }
  
  .modal-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
  }
  
  .modal-icon svg {
    width: 22px;
    height: 22px;
  }
  
  .tracking-modal h2 {
    font-size: 18px;
  }
  
  .modal-desc {
    font-size: 13px;
    margin-bottom: 16px;
  }
  
  .modal-features {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  
  .feature {
    padding: 10px 14px;
    font-size: 13px;
  }
  
  .modal-form input,
  .modal-form .btn {
    height: 50px;
  }
}

/* Safe area for newer iPhones */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  @media (max-width: 520px) {
    .tracking-modal {
      padding-bottom: calc(34px + env(safe-area-inset-bottom));
    }
  }
}

/* Spinner pentru buton loading */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.btn.primary:disabled {
  background: linear-gradient(180deg, #9ca3af, #6b7280);
  border-color: #9ca3af;
  cursor: wait;
}

/* LED activ */
.preview-top .led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #94a3b8;
  box-shadow: 0 0 0 6px rgba(148, 163, 184, 0.16);
  transition: all 0.3s ease;
}

.preview-top .led.active {
  background: var(--ok);
  box-shadow: 0 0 0 6px rgba(34,197,94,.16);
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 6px rgba(34,197,94,.16); }
  50% { box-shadow: 0 0 0 10px rgba(34,197,94,.08); }
}

/* QR pop animation */
.qr-card {
  animation: qrPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes qrPop {
  0% { opacity: 0; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1); }
}

/* Toast Notification */
.qr-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #0f172a;
  color: #fff;
  padding: 14px 20px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  z-index: 9999;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-size: 14px;
}

.qr-toast.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.qr-toast .toast-btn {
  background: linear-gradient(135deg, #ec4899, #f43f5e);
  border: none;
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}

.qr-toast .toast-btn:hover {
  transform: scale(1.05);
}

.qr-toast .toast-close {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
}

.qr-toast .toast-close:hover {
  color: #fff;
}

@media (max-width: 520px) {
  .qr-toast {
    bottom: 16px;
    left: 16px;
    right: 16px;
    transform: translateX(0) translateY(100px);
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    gap: 12px;
  }
  
  .qr-toast.visible {
    transform: translateX(0) translateY(0);
  }
  
  .qr-toast span {
    width: 100%;
  }
}