:root {
  --bg: #0f1220;
  --surface: #1a1f33;
  --bar: #151a2b;
  --input: #202642;
  --input-border: #2c3557;
  --text: #e8eaf2;
  --muted: #a7aec6;
  --accent: #7c74ff;
  --progress: #22c55e;
  --icon: #c7cbe3;
  --radius: 16px;
  --shadow: 0 12px 28px rgba(0, 0, 0, 0.45);

  /* tipografie fluidă */
  --fs-sm: clamp(0.95rem, 2vw, 1rem);
  --fs-md: clamp(1rem, 2.4vw, 1.125rem);
  --fs-lg: clamp(1.125rem, 3vw, 1.25rem);
    --footer-h: 96px;

}.tags-row { display: grid; gap: 8px; }
.tag-controls { display: flex; align-items: center; gap: 8px; }
#tagNewInput {
  resize: none; min-height: 36px; padding: 8px 10px; border-radius: 999px;
  border: 1px solid var(--line, #2a2f45); background: var(--card, #111526); color: #e7eaf3;
}
.btn-small { padding: 6px 10px; border-radius: 10px; border: 1px solid var(--line, #2a2f45); background: #181d2f; }
.tag-picker {
  position: relative; /* sau absolute dacă îl poziționezi peste */
  border: 1px solid var(--line, #2a2f45); background: #0e1222; border-radius: 14px; padding: 8px;
}
.tag-picker-head { font-size: 12px; opacity: .8; margin-bottom: 6px; }
.tag-list { list-style: none; padding: 0; margin: 0; max-height: 220px; overflow: auto; }
.tag-list li { padding: 10px 12px; border-radius: 10px; cursor: pointer; }
.tag-list li:hover { background: rgba(255,255,255,.06); }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 10px; border-radius: 999px; background: #1c2239; margin: 4px 6px 0 0;
}
.chip .del { background: none; border: 0; color: #ff5a5f; font-size: 16px; cursor: pointer; line-height: 1; }
/* ===== TAG SHEET (popup) ===== */
.tag-sheet.hidden { display:none !important; }
.tag-sheet {
  position: fixed; inset: 0; z-index: 120;
}
.tag-backdrop {
  position:absolute; inset:0; background:rgba(0,0,0,.45);
  backdrop-filter:saturate(120%) blur(2px);
}
.tag-panel {
  position:absolute; left:50%; transform:translateX(-50%);
  width:min(720px, 100%);
  bottom:0; border-radius:16px 16px 0 0;
  background:var(--surface); border:1px solid var(--input-border);
  max-height: calc(100dvh - 56px);
  display:grid; grid-template-rows:auto 1fr;
  box-shadow: 0 -12px 28px rgba(0,0,0,.45);
}
@media (min-width: 720px){
  .tag-panel {
    top:50%; bottom:auto; transform:translate(-50%,-50%);
    border-radius:16px; max-height:min(80dvh, 680px);
    width:min(720px, 92vw);
  }
}
.tag-panel-head{
  padding:10px 12px; display:grid; gap:8px;
  border-bottom:1px solid var(--input-border); background:#171c33;
}
.drag-handle{
  width:44px; height:5px; border-radius:999px; background:#2f3963;
  justify-self:center; opacity:.9;
}
#tagSearch{
  width:100%; border:1px solid var(--input-border); background:#1b2140;
  color:var(--text); border-radius:10px; padding:10px 12px; min-height:42px;
}
.tag-virtual-list { list-style:none; margin:0; padding:0; }
.tag-row{
  display:flex; align-items:center; justify-content:space-between;
  padding:10px 12px; border-radius:10px; cursor:pointer;
}
.tag-row:hover{ background: rgba(255,255,255,.06); }
.tag-row-add{
  border:1px solid #2a2f45; background:#181d2f; color:#e7eaf3;
  border-radius:8px; padding:4px 10px; font-weight:800; cursor:pointer;
}
.tag-row-add:active{ transform: translateY(1px); }

.tag-virtual-list{
  list-style:none; margin:0; padding:10px;
  overflow:auto; overscroll-behavior:contain;
  display:grid; gap:8px;
  grid-template-columns: 1fr; /* mobil: o coloană */
}
@media (min-width: 520px){
  .tag-virtual-list{ grid-template-columns: 1fr 1fr; } /* 2 coloane */
}
@media (min-width: 900px){
  .tag-virtual-list{ grid-template-columns: 1fr 1fr 1fr; } /* 3 coloane */
}
.tag-item {
  padding:10px 12px; border:1px solid #2a3460; background:#121832;
  border-radius:10px; cursor:pointer; color:#dbe0ff; user-select:none;
}
.tag-item:hover { background:#18224a; }
.tag-item.is-selected{
  background:var(--accent); border-color:transparent; color:#fff;
}

/* === Anti-zoom & bază tipografie === */
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }

/* prag iOS >=16px + împiedică Safari să schimbe mărimile */
html {
  font-size: 17px;
  -webkit-text-size-adjust: 100%;
}
.category-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.category-row > #category_auto {
  flex: 1 1 auto;
  min-width: 0;
}

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  display: flow;
  grid-template-rows: auto 1fr;
  overscroll-behavior-y: contain;
  font-size: var(--fs-md);
  line-height: 1.45;
}

/* NAVBAR (mobile app style) */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: env(safe-area-inset-top) 12px 8px;
  background: linear-gradient(180deg, rgba(21,26,43,0.95), rgba(21,26,43,0.6), transparent);
  backdrop-filter: blur(6px);
}
/* Segmented radios */
fieldset.segmented {
  border: 1px solid var(--input-border);
  border-radius: 12px;
  padding: 10px 12px 12px;
  margin: 12px 0;
  background: #1e2447;
}
fieldset.segmented legend {
  font-size: 0.95rem;
  color: var(--muted);
  padding: 0 6px;
}
.segmented-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 8px;
  margin-top: 8px;
}
.segmented-row input[type="radio"] {
  /* ascundem doar vizual, rămâne accesibil pt screen reader */
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.segmented-row label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #2a3460;
  background: #1b2140;
  color: #cdd3fb;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  text-align: center;
}
.segmented-row input[type="radio"]:focus + label,
.segmented-row label:focus {
  outline: 2px solid rgba(139,146,255,0.35);
  outline-offset: 2px;
}
.segmented-row input[type="radio"]:checked + label {
  background: var(--accent);
  color: white;
  border-color: transparent;
  box-shadow: 0 0 0 2px rgba(124,116,255,0.15) inset;
}
/* Titlu + badge "opțional" */
.adv-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px; /* puțin mai mic, că urmează hint-ul */
}


/* Box informativ discret sub titlu */
.step-hint {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(32, 38, 74, .55), rgba(24, 28, 54, .45));
  border: 1px solid rgba(124,116,255,.22);
  color: #dbe0ff;
  font-size: 0.9rem;
}
.step-hint i {
  font-size: 16px;
  opacity: .9;
}
/* spațiu deasupra acordionului din Pasul 1 */
#step-1 .price-opts {
  margin-top: 20px;   /* poți pune 16px/1rem dacă vrei mai mult */
}

.badge-optional{
  font-size: 11px; font-weight: 800; letter-spacing:.4px; text-transform:uppercase;
  color:#bfc6ff;
  background: linear-gradient(180deg, rgba(124,116,255,.16), rgba(124,116,255,.06));
  border:1px solid rgba(124,116,255,.35);
  padding:4px 8px; border-radius:999px;
}

.accordion-header{
  display:flex; align-items:center; justify-content:space-between; gap:8px;
}
.accordion-header .ah-left{
  display:flex; align-items:center; gap:10px;
}

/* Mic accent pe legenda din fieldset, arată mai „premium” */
fieldset.segmented > legend {
  font-size: 0.9rem;
  font-weight: 800;
  color: #e8eaf2;
  margin-bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
fieldset.segmented > legend::after {
  content: " (opțional)";
  font-weight: 600;
  font-size: 0.85em;
  color: #a7aec6;
  opacity: .9;
}

.navbar {
  width: 100%;
  max-width: 480px; /* ↑ de la 420 px */
  margin: 0 auto;
  background: var(--bar);
  border-radius: 16px;
  padding: 10px 12px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-left, .nav-right { display: flex; align-items: center; gap: 10px; }
.nav-icon {
  width: 48px; height: 48px; /* touch-target 48px */
  border-radius: 10px;
  display: grid; place-items: center; color: var(--icon);
  background: transparent; border: 1px solid #1f2540;
  font-size: 1rem;
}
.nav-icon i { font-size: 18px; }

/* CONTENT */
.container {
  display: flex; justify-content: center; padding: 8px 12px 96px;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  margin-top:0px;
}
.col { width: 100%; max-width: 480px; } /* ↑ de la 420px */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  position: relative;
}
h2 {
  margin: 2px 0 14px;
  font-size: var(--fs-lg);
  font-weight: 800;
}

label {
  display: block; margin: 10px 0 6px; color: var(--muted);
  font-size: 0.9rem;
}

/* === Formulare mari & clare (anti-zoom iOS) === */
input, textarea, select, button {
  font-size: 1rem;        /* ~17px */
  line-height: 1.4;
}

input, textarea, select {
  width: 100%; background: var(--input);
  border: 1px solid var(--input-border); color: var(--text);
  border-radius: 12px; padding: 14px 14px; outline: none;
  min-height: 48px;       /* touch-target */
}
textarea { resize: vertical; min-height: 120px; }

input:focus, textarea:focus, select:focus {
  border-color: #8b92ff; box-shadow: 0 0 0 2px rgba(139,146,255,0.14);
}

.btn {
  width: 100%; border: none; border-radius: 12px; padding: 14px;
  margin-top: 10px; font-weight: 800; cursor: pointer;
  min-height: 48px; font-size: 1rem;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-secondary { background: #2a2f4d; color: #d7dbff; }

.hidden { display: none !important; }

/* PROGRES */
.progress-wrap {
  position: fixed; left: 16px; bottom: 16px; width: 96px; height: 96px; z-index: 60;
}
.progress-card {
  width: 100%; height: 100%; background: var(--surface);
  border-radius: 50%; box-shadow: var(--shadow);
  display: grid; place-items: center; padding: 10px;
}
.progress-svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.progress-txt {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-weight: 900; font-size: 16px; color: var(--text);
}

/* TOAST */
.toast {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  min-width: 260px; max-width: 92%; background: #ef4444; color: #fff;
  padding: 14px 18px; border-radius: 12px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600;
  opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; z-index: 200;
}
.toast.show { opacity: 1; pointer-events: auto; transform: translate(-50%, -10px); }
.toast .close { margin-left: auto; cursor: pointer; font-size: 16px; }

/* Actions row */
.actions { display: flex; gap: 10px; margin-top: 14px; }
.actions .btn { flex: 1; }

/* Accordion */
.accordion { border: 1px solid var(--input-border); border-radius: 12px; margin-bottom: 12px; overflow: hidden; }
.accordion-header {
  background: #1b2140; padding: 12px 14px; display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; font-weight: 700; color: var(--text);
}
.accordion-header i { transition: transform .25s; }
.accordion-header.active i { transform: rotate(180deg); }
.accordion-content { padding: 12px 14px; background: #1e2447; }

/* Preview imagini (liste normale) */
.preview { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.preview-item {
  position: relative; width: 96px; height: 96px; border-radius: 10px; overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,.35);
}
.preview-item img { width: 100%; height: 100%; object-fit: cover; }
.preview-item .remove {
  position: absolute; top: 4px; right: 4px; background: rgba(0,0,0,.6);
  color: #fff; border: none; border-radius: 50%; width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 14px;
}

/* ========= PAS 2 FULLSCREEN ========= */
/* începe sub navbar + topProgress (calculate în JS) */
.fullscreen-step{
  position: fixed;
  top: var(--chrome-offset, 0px);  /* << offset din JS */
  left: 0; right: 0; bottom: 0;
  z-index: 40;                     /* sub nav (90) și topProgress (80) */
  background: radial-gradient(1200px 800px at 50% -10%, #20264a, #0f1220 60%);
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 8px 16px calc(16px + env(safe-area-inset-bottom));
  min-height: auto;                /* nu mai forța 100dvh aici */
}

.photo-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 4px 0 8px;
}
.photo-title { margin: 0; font-size: var(--fs-lg); font-weight: 900; letter-spacing: 0.2px; }
.photo-actions { display: flex; gap: 8px; }
.photo-icon-btn {
  width: 48px; height: 48px; border-radius: 10px; /* touch-target */
  display: grid; place-items: center; color: var(--text);
  background: transparent; border: 1px solid #273058; cursor: pointer;
  font-size: 1rem;
}

.photo-body { display: grid; grid-template-rows: 1fr auto; gap: 16px; min-height: 0; }

.big-choices {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-content: center; align-items: center;
}
@media (max-width: 420px){ .big-choices { grid-template-columns: 1fr; } }

.big-card {
  border: 1px solid rgba(124,116,255,.25);
  background: linear-gradient(180deg, rgba(34,41,78,.9), rgba(30,36,71,.9));
  border-radius: 18px; padding: 18px 14px; text-align: center; color: var(--text);
  box-shadow: var(--shadow); cursor: pointer; transition: transform .1s ease, border-color .2s, background .2s;
  display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 150px;
}
.big-card:active { transform: scale(.985); }
.big-icon-wrap {
  width: 72px; height: 72px; border-radius: 18px; display:grid; place-items:center;
  background: rgba(124,116,255,.12); color:#b7b2ff; margin-bottom: 12px;
}
.big-title { font-weight: 900; font-size: 1rem; }
.big-sub { font-size: var(--fs-sm); color: var(--muted); margin-top: 4px; }

.photo-preview {
  border: 1px dashed #39406b; border-radius: 14px; padding: 10px; min-height: 90px; overflow-x: auto;
  display: flex; gap: 10px; align-items: center; background: rgba(24, 29, 56, .6);
}
.photo-chip {
  position: relative; width: 72px; height: 72px; border-radius: 10px; overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,.35); flex: 0 0 auto;
}
.photo-chip img { width: 100%; height: 100%; object-fit: cover; }
.photo-chip button {
  position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%;
  border: none; background: rgba(0,0,0,.65); color: #fff; cursor: pointer;
}

.photo-footer { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.photo-footer .btn { margin-top: 0; }
@media (max-width: 420px){ .photo-footer { grid-template-columns: 1fr; } }

/* ===== FINAL SUCCESS PREVIEW (step-success) ===== */
.success-wrap{
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}
.success-head { display:flex; align-items:center; justify-content:space-between; padding: 4px 0 8px; }
.success-title { margin:0; font-size: var(--fs-lg); font-weight:900; }
.success-body{
  flex: 1 1 auto;
  overflow: visible;
  padding-bottom: 16px; /* păstrăm un mic spațiu sub card */
}
.final-card {
  background: linear-gradient(180deg, #1a1f33, #181e33);
  border: 1px solid var(--input-border); border-radius: 16px; padding: 14px;
  box-shadow: var(--shadow); align-self: start;
}
.prod-card{
  border:1px solid #263055; border-radius:14px; overflow:hidden; background:#0f1326;
  display: grid;
  grid-template-columns: 1fr; /* mobil: stack */
  gap: 0;
}.prod-img { width:100%; aspect-ratio: 1/1; object-fit: cover; background:#0b0f1f; }
.prod-info{ padding:12px; max-width: 65ch; }.prod-name { font-size: 1rem; font-weight:800; margin:0 0 4px; }
.price-line { display:flex; align-items:baseline; gap:8px; }
.price { font-size: clamp(1.1rem, 3.4vw, 1.25rem); font-weight:900; }
.old-price { color:#9aa0be; text-decoration: line-through; font-size:12px; }
.pills { display:flex; gap:6px; flex-wrap:wrap; margin-top:8px; }
.pill { font-size: var(--fs-sm); padding:6px 8px; border-radius:999px; background:#1b2140; border:1px solid #2a3460; color:#cdd3fb; }
.prod-desc { margin-top:10px; color:#dbe0ff; font-size: var(--fs-sm); line-height:1.4; opacity:.95; }

.success-footer{
  position: static;         /* <- important: scoate sticky */
  min-height: auto;         /* nu mai forțăm înălțime */
  background: none;         /* opțional: fără gradient, ca să pară parte din pagină */
  padding-top: 10px;
  margin-top: 12px;
  border-top: 1px solid var(--input-border); /* contur discret (opțional) */
}
.success-actions { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
@media (max-width:420px){ .success-actions{ grid-template-columns:1fr; } }
.btn-draft { background:#2a2f4d; color:#d7dbff; }
.btn-publish { background:var(--accent); color:#fff; }

/* AI status */
.ai-status{display:flex;align-items:center;gap:8px;margin-top:10px;font-size:13px;color:#cfd3ff}
.spinner{width:16px;height:16px;border:2px solid rgba(255,255,255,.25);border-top-color:#fff;border-radius:50%;animation:spin 1s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}

@media (min-width: 520px){
  .prod-card{
    grid-template-columns: 200px 1fr; /* desktop mic/tabletă */
  }
  .prod-img{
    aspect-ratio: auto;
    height: 100%;
    width: 100%;
    object-fit: cover;
  }
}
/* top bar simplă, fără sticky */
.top-progress{
  position: static;           /* ▲ înlocuiește sticky */
  top: auto;                  /* ▲ reset */
  padding: 8px 14px;
  background: transparent;    /* ▲ fără fundal/blur */
  border: 0;
}

/* 1) fă pașii pe un singur rând */
.tp-steps{
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}
.tp-step{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;                 /* spațiu între 1/4 și icon */
  min-height: 30px;
}

.tp-step .tp-icon{
  width: 30px; height: 30px;
  border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #23283b;
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 14px; line-height: 1;
}

/* badge-ul cu fracție (va fi mutat dinamic în step-ul activ) */
.tp-fraction{
  font-weight: 900;
  font-size: 0.95rem;
  color: var(--text);
  margin: 0;
}
/* bară + umplere verde */
.tp-bar{
  position: relative;            /* <-- NECESAR pt .tp-fill absolut */
  width: 100%;
  height: 10px;
  background: #223030;
  border-radius: 999px;
  outline: none;
  overflow: hidden;              /* aspect curat la colțuri */
}
.tp-fill{
  position: absolute;            /* asigură-te că rămâne absolut */
  inset: 0 auto 0 0;             /* top:0; left:0; bottom:0 */
  width: 0%;                     /* setat din JS */
  height: 100%;
  background: var(--progress);   /* verde (#22c55e) */
  transition: width .25s ease;
  border-radius: inherit;
}



.nav-wrap{ z-index: 90; }      /* opțional, un pic mai sus ca să fii sigur */
.top-progress{ z-index: 80; }  /* opțional, deasupra step-2 */

/* stări */
.tp-step.active{
  color: #ffffff;
  opacity: 1;
  transform: translateY(-1px);
}


.tp-step.completed{
  color: #e5e7eb;
  opacity: 1;
}
.tp-step.completed .tp-icon{
  background: #10b981;
  color: #0b0f1f;
  border-color: transparent;
}
/* ===== AI Loader + Steps ===== */
.ai-status{
  display:grid; gap:14px; margin-top:10px;
  background: linear-gradient(180deg, rgba(24,28,54,.55), rgba(18,22,43,.45));
  border:1px solid rgba(124,116,255,.22);
  border-radius:14px; padding:12px;
}
.ai-steps{ display:grid; gap:8px; font-family: "Space Grotesk", system-ui, sans-serif; }
.ai-step{ display:flex; align-items:center; gap:10px; font-size:.95rem; color:#cfd3ff; opacity:.85; }
.ai-step .dot{
  width:10px; height:10px; border-radius:50%;
  background:#2a3568; border:1px solid #4350a0; flex:0 0 auto;
}
.ai-step.doing .dot{
  animation: aiPulse 1s infinite;
  background:#6ee7b7; border-color:#34d399;
}
.ai-step.done .dot{
  background:#22c55e; border-color:#22c55e;
}
.ai-step.error .dot{
  background:#ef4444; border-color:#ef4444;
}
@keyframes aiPulse{
  0%{ transform:scale(1); opacity:.8; }
  50%{ transform:scale(1.3); opacity:1; }
  100%{ transform:scale(1); opacity:.8; }
}
body.lock-scroll { overflow: hidden !important; }

/* Blochează scroll când overlay-ul e deschis */
body.lock-scroll { overflow: hidden !important; }

/* OVERLAY full-screen (blocant) */
.ai-overlay.hidden { display: none !important; }
.ai-overlay {
  position: fixed; inset: 0; z-index: 9999;
  display: grid; place-items: center;
  background: linear-gradient(180deg, rgba(9,12,24,.82), rgba(9,12,24,.92));
  backdrop-filter: blur(6px) saturate(120%);
  pointer-events: auto;
}

/* Panou central cu loader + pași */
.ai-panel{
  width: min(720px, 92vw);
  border-radius: 18px;
  padding: 18px 16px;
  border: 1px solid rgba(124,116,255,.22);
  background: linear-gradient(180deg, rgba(24,28,54,.55), rgba(18,22,43,.45));
  box-shadow: 0 16px 40px rgba(0,0,0,.45);
}

/* Loader “react star” centrat (ușor scalat) */
.loader { height: 180px; width: 100%; display:flex; justify-content:center; align-items:center; }
.react-star { position: relative; width: 140px; height: 140px; display:flex; justify-content:center; align-items:center; animation: rotate 3s infinite linear; }
.nucleus { position:absolute; transform:translate(-50%,-50%); border-radius:50%; background: linear-gradient(#0738e8, cyan); height: 18px; width: 18px; animation: rotate 1s linear infinite; }
.electron { position:absolute; width:140px; height:56px; border-radius:50%; border:.24rem solid #00ffff; animation: revolve 1s linear infinite; }
.electron1::before, .electron2::before, .electron3::before{
  content:""; position:absolute; top:60%; left:100%; transform:translate(-50%,-50%);
  width:10px; height:10px; background-color: cyan; border-radius:50%; animation: moveElectron 1s infinite;
}
.electron2{ transform: rotate(60deg); animation-delay:-.66s; }
.electron2::before{ animation-delay:-.66s; }
.electron3{ transform: rotate(-60deg); }
@keyframes rotate{ from{transform:rotate(0deg);} to{transform:rotate(360deg) scale3d(1.06,1.06,1);} }
@keyframes revolve{
  0%{ border-color:#00ffff9c; border-right-color:transparent; }
  25%{ border-color:#00ffff9c; border-bottom-color:transparent; }
  50%{ border-color:#00ffff9c; border-left-color:transparent; }
  75%{ border-color:#00ffff9c; border-top-color:transparent; }
  100%{ border-color:#00ffff9c; border-right-color:transparent; }
}
@keyframes moveElectron{
  0%{ top:60%; left:100%; }
  25%{ top:100%; left:60%; }
  50%{ top:60%; left:0%; }
  75%{ top:0%; left:60%; }
  100%{ top:60%; left:100%; }
}
.ai-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background:
    radial-gradient(1200px 800px at 50% -10%, rgba(32,38,74,.9), rgba(15,18,32,.98) 60%),
    rgba(11,14,27,.6);
  backdrop-filter: blur(6px) saturate(115%);
  display: grid;
  place-items: center;
  padding: 24px 16px calc(24px + env(safe-area-inset-bottom));
}
.ai-overlay.hidden { display: none !important; }

/* blochează scroll pe body când overlay-ul e deschis */
.lock-scroll { overflow: hidden !important; }

/* panoul din overlay */
.ai-panel {
  width: min(640px, 92vw);
  border-radius: 16px;
  border: 1px solid rgba(124,116,255,.25);
  background: linear-gradient(180deg, rgba(34,41,78,.8), rgba(24,30,64,.85));
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
  padding: 18px 16px;
}

/* === Pașii: apar treptat (stagger) doar vizual, fără JS timers === */
.ai-steps { display: grid; gap: 10px; margin-top: 8px; }

.ai-step {
  display: flex; align-items: center; gap: 10px;
  color: #cfd3ff; font-size: .95rem;
  opacity: 0; transform: translateY(6px);
  transition: opacity .22s ease, transform .28s ease;
}

/* când overlay-ul intră în starea 'reveal', toate devin vizibile,
   iar întârzierea (stagger) o facem cu :nth-child — pur CSS */
.ai-overlay.reveal .ai-step { opacity: 1; transform: none; }

.ai-overlay.reveal .ai-steps .ai-step:nth-child(1){ transition-delay: 0ms; }
.ai-overlay.reveal .ai-steps .ai-step:nth-child(2){ transition-delay: 120ms; }
.ai-overlay.reveal .ai-steps .ai-step:nth-child(3){ transition-delay: 240ms; }
.ai-overlay.reveal .ai-steps .ai-step:nth-child(4){ transition-delay: 360ms; }
.ai-overlay.reveal .ai-steps .ai-step:nth-child(5){ transition-delay: 480ms; }
.ai-overlay.reveal .ai-steps .ai-step:nth-child(6){ transition-delay: 600ms; }

/* bulina de status + stări */
.ai-step .dot{
  width:10px; height:10px; border-radius:50%;
  background:#2a3568; border:1px solid #4350a0; flex:0 0 auto;
}
.ai-step.doing .dot{
  animation: aiPulse 1s infinite;
  background:#6ee7b7; border-color:#34d399;
}
.ai-step.done .dot{
  background:#22c55e; border-color:#22c55e;
}
.ai-step.error .dot{
  background:#ef4444; border-color:#ef4444;
}
@keyframes aiPulse{
  0%{ transform:scale(1); opacity:.8; }
  50%{ transform:scale(1.25); opacity:1; }
  100%{ transform:scale(1); opacity:.8; }
}
/* === BG Overlay — versiune modernă, phone-friendly (copy-paste) === */

.bgov.hidden { display: none !important; }

.bgov {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  background: rgba(9, 12, 24, 0.75);
  backdrop-filter: blur(4px);
}

/* Panoul central al overlay-ului */
.bgov-panel {
  width: min(920px, 96vw);
  max-height: min(92dvh, 840px);
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 12px;
  padding: 12px 12px calc(12px + env(safe-area-inset-bottom));
  border-radius: 16px;
  border: 1px solid rgba(124, 116, 255, 0.25);
  background: linear-gradient(180deg, #1b2140, #141a33);
  box-shadow: 0 20px 60px rgba(0,0,0,.55);
}

/* Head bar */
.bgov-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 6px 0;
}

.bgov-head strong {
  font-weight: 900;
  letter-spacing: .2px;
  color: #e6e9ff;
  font-size: clamp(1rem, 3.2vw, 1.125rem);
}

.bgov-close {
  border: 1px solid #2a2f45;
  background: #0f1326;
  color: #cfd3ff;
  border-radius: 10px;
  width: 40px;
  height: 40px;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
}

/* Body din overlay — conține grila cu cardurile */
.bgov-body {
  position: relative;
  border: 1px solid #2a2f45;
  border-radius: 12px;
  background: #0c1126;
  overflow: auto;
  padding: 10px;
}

/* ===== Layout imagini: 1 col pe mobil, 2 col pe ecrane mai late ===== */
.bgov-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;             /* mobil */
  align-items: stretch;
}

@media (min-width: 600px) {
  .bgov-grid { grid-template-columns: 1fr 1fr; }   /* tablet+ */
}

/* Card individual (Originală / Fără fundal) */
.bgov-card {
  display: grid;
  grid-template-rows: auto 1fr auto;  /* header, imagine, footer-buton */
  background: linear-gradient(180deg, #141a2d, #0f142b);
  border: 1px solid #2a2f45;
  border-radius: 12px;
  overflow: hidden;
}

/* Header de card — rămâne vizibil când derulezi imaginea mare */
.bgov-card header {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 12px 14px;
  font-weight: 800;
  color: #dbe0ff;
  background: #101735;
  border-bottom: 1px solid #263055;
  letter-spacing: .2px;
}

/* Container imagine (scroll intern dacă e înaltă) */
.bgov-card .imgwrap {
  display: grid;
  place-items: center;
  background: #0b0f1f;
  padding: 10px;
  overflow: auto;
  max-height: min(70dvh, 520px);
}

/* Imagine: pinch-zoom nativ + fără tăiere */
.bgov-card img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  touch-action: pan-x pan-y pinch-zoom; /* pinch & pan nativ */
  -webkit-user-drag: none;
  user-select: none;
}

/* Skeleton (opțional): folosește .bgov-skel până se încarcă imaginea */
.bgov-skel {
  width: 100%;
  height: 50vh;
  max-height: 420px;
  border-radius: 10px;
  background: linear-gradient(90deg, #131a33 0%, #182047 50%, #131a33 100%);
  background-size: 200% 100%;
  animation: bgovShine 1.1s linear infinite;
}
@keyframes bgovShine {
  0% { background-position: 0% 0; }
  100% { background-position: 200% 0; }
}

/* Footer de card: buton mare, ușor de apăsat */
.bgov-card .bgov-foot {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 10px;
  border-top: 1px solid #263055;
  background: #0f1328;
}

/* Butoane „clare” pe mobil */
.bgov .btn {
  min-height: 48px;
  font-weight: 800;
  border-radius: 12px;
  font-size: 1rem;
}

/* ===== Ecrane de încărcare / fallback ===== */
.bgov-loading {
  height: 260px;
  display: grid;
  place-items: center;
  color: #cfd3ff;
  gap: 10px;
}

.bgov-spinner {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.25);
  border-top-color: #fff;
  animation: spin 1s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ===== (Opțional) Footer general în partea de jos a overlay-ului =====
   Dacă nu îl folosești, poți lăsa aceste stiluri — nu afectează nimic. */
.bgov-foot {
  display: flex;
  justify-content: center;
  padding-top: 10px;
}
#btnKeep {
  width: auto;
  min-width: 240px;
  text-align: center;
}

/* ===== Accesibilitate & preferințe utilizator ===== */
@media (prefers-reduced-motion: reduce) {
  .bgov-skel { animation: none; }
  .bgov-spinner { animation-duration: 1.6s; }
}

/* ===== STILURI PENTRU PAS 0 (SELECȚIE TIP PRODUS) ===== */
#step-0 .type-choices {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 12px;
}
@media (min-width: 480px) {
  #step-0 .type-choices {
    grid-template-columns: 1fr 1fr;
  }
}

.type-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  border: 1px solid rgba(124, 116, 255, 0.25);
  background: linear-gradient(180deg, rgba(34, 41, 78, 0.9), rgba(30, 36, 71, 0.9));
  border-radius: 16px;
  text-align: center;
  color: var(--text);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.1s ease, border-color 0.2s, background 0.2s;
  min-height: 140px;
}
.type-card:active {
  transform: scale(0.985);
}
.type-card:hover {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(124, 116, 255, 0.1), rgba(30, 36, 71, 0.9));
}
.type-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(124, 116, 255, 0.12);
  color: #b7b2ff;
  font-size: 1.5rem;
  margin-bottom: 12px;
}
.type-title {
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 6px;
}
.type-desc {
  font-size: var(--fs-sm);
  color: var(--muted);
  line-height: 1.4;
}

/* ===== POPUP AVERTIZARE PRODUS VARIABIL ===== */
.var-warning {
  position: relative;
  z-index: 10;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.3);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  animation: varSlideIn 0.3s ease-out;
}
@keyframes varSlideIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: none; }
}
.var-icon {
  flex-shrink: 0;
  color: #fff;
  font-size: 1.5rem;
  margin-top: 2px;
}
.var-content h3 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
}
.var-content p {
  margin: 0 0 12px;
  color: #fef7f7;
  font-size: 0.95rem;
  line-height: 1.4;
}
.var-warning .btn {
  flex-shrink: 0;
  width: auto;
  padding: 8px 16px;
  min-height: auto;
  font-size: 0.9rem;
}

/* ===== STILURI PENTRU SISTEMUL ÎMBUNĂTĂȚIT DE VARIAȚII ===== */

/* Layout principal pentru variații */
.variations-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Secțiunea pentru adăugarea atributelor */
.add-attribute-section {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.btn-add-attribute {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 16px 24px;
  border: 2px dashed var(--accent);
  background: rgba(124, 116, 255, 0.08);
  color: var(--accent);
  border-radius: 16px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  max-width: 280px;
}

.btn-add-attribute:hover {
  background: rgba(124, 116, 255, 0.15);
  border-color: #9b94ff;
  transform: translateY(-1px);
}

.btn-add-attribute:active {
  transform: translateY(0);
}

/* Lista atributelor adăugate */
.attributes-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.attribute-item {
  background: linear-gradient(135deg, #1c2239, #1a1f36);
  border: 1px solid var(--input-border);
  border-radius: 16px;
  padding: 16px;
  position: relative;
  overflow: hidden;
}

.attribute-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #9b94ff);
}

.attribute-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.attribute-name {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}

.attribute-actions {
  display: flex;
  gap: 8px;
}

.btn-attribute-action {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--input-border);
  background: var(--input);
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-attribute-action:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.btn-attribute-action.delete:hover {
  background: #ef4444;
  border-color: #ef4444;
}

.attribute-terms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.term-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background: rgba(124, 116, 255, 0.12);
  border: 1px solid rgba(124, 116, 255, 0.25);
  border-radius: 999px;
  color: #dbe0ff;
  font-size: 0.9rem;
  font-weight: 600;
}

/* Modal pentru atribute */
.attribute-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}

.attribute-modal.hidden {
  display: none !important;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.modal-panel {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: var(--surface);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.4);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.attribute-modal:not(.hidden) .modal-panel {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--input-border);
}

.modal-header h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
}

.modal-close {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--input-border);
  background: var(--input);
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.modal-body {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--muted);
  font-size: 0.9rem;
}

.terms-input-section {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.terms-input-section input {
  flex: 1;
}

.btn-add-term {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.modal-terms-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  min-height: 40px;
  padding: 8px;
  border: 1px dashed var(--input-border);
  border-radius: 12px;
  background: rgba(32, 38, 66, 0.3);
}

.modal-term-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: var(--accent);
  color: white;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
}

.modal-term-chip .remove {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 14px;
  padding: 2px;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-term-chip .remove:hover {
  background: rgba(255, 255, 255, 0.2);
}

.predefined-terms {
  margin-top: 12px;
}

.predefined-label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.predefined-terms-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.predefined-term {
  padding: 4px 8px;
  background: var(--input);
  border: 1px solid var(--input-border);
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.predefined-term:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.modal-footer {
  display: flex;
  gap: 12px;
  padding: 16px 20px 20px;
  border-top: 1px solid var(--input-border);
}

.modal-footer .btn {
  flex: 1;
  margin-top: 0;
}

/* Secțiunea de variații */
.variations-section {
  margin-top: 24px;
}

.variations-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.variations-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.variations-count {
  padding: 4px 8px;
  background: var(--accent);
  color: white;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  animation: pulse 0.3s ease-in-out;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Tabel compact pentru variații */
.variations-table-container {
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid var(--input-border);
  border-radius: 12px;
  background: var(--input);
}

.variations-table-compact {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.variations-table-compact thead {
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 10;
}

.variations-table-compact th {
  padding: 8px 6px;
  text-align: left;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 1px solid var(--input-border);
  font-size: 0.8rem;
}

.variations-table-compact th:first-child {
  padding-left: 12px;
  width: 50%;
}

.variations-table-compact th:nth-child(2) {
  width: 30%;
  text-align: center;
}

.variations-table-compact th:last-child {
  width: 20%;
  text-align: center;
  padding-right: 12px;
}

.variations-table-compact tbody tr {
  transition: background-color 0.2s ease;
  cursor: pointer;
}

.variations-table-compact tbody tr:hover {
  background: rgba(124, 116, 255, 0.05);
}

.variations-table-compact tbody tr:not(:last-child) {
  border-bottom: 1px solid rgba(44, 53, 87, 0.2);
}

.variations-table-compact td {
  padding: 6px;
  vertical-align: middle;
  font-size: 0.85rem;
}

.variations-table-compact td:first-child {
  padding-left: 12px;
  font-weight: 500;
  color: var(--text);
}

.variations-table-compact td:nth-child(2) {
  text-align: center;
  color: var(--accent);
  font-weight: 600;
}

.variations-table-compact td:last-child {
  text-align: center;
  padding-right: 12px;
}

.variation-photo-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid var(--input-border);
  background: var(--input);
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: all 0.2s ease;
}

.variation-photo-btn:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.variation-photo-btn.has-photo {
  background: #22c55e;
  color: white;
  border-color: #22c55e;
}

/* Modal tip notch pentru editare */
.variation-edit-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.variation-edit-modal.hidden {
  display: none !important;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.modal-notch {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: var(--surface);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.4);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}

.variation-edit-modal:not(.hidden) .modal-notch {
  transform: translateY(0);
}

.notch-handle {
  width: 40px;
  height: 4px;
  background: var(--muted);
  border-radius: 2px;
  margin: 12px auto 8px;
  opacity: 0.6;
}

.notch-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--input-border);
}

.notch-header h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
}

.notch-close {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--input-border);
  background: var(--input);
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.notch-body {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
}

.variation-info-card {
  background: linear-gradient(135deg, #1c2239, #1a1f36);
  border: 1px solid var(--input-border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
}

.variation-display-name {
  font-weight: 700;
  color: var(--text);
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.variation-sku-display {
  font-size: 0.85rem;
  color: var(--muted);
  font-family: 'Courier New', monospace;
}

.edit-section {
  margin-bottom: 20px;
}

.edit-section label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--muted);
  font-size: 0.9rem;
}

.edit-price-input {
  width: 100%;
  min-height: 48px;
  padding: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
  border-radius: 12px;
}

.photo-upload-area {
  border: 2px dashed var(--input-border);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  background: var(--input);
}

.photo-upload-area:hover {
  border-color: var(--accent);
  background: rgba(124, 116, 255, 0.05);
}

.photo-upload-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.photo-upload-icon {
  font-size: 24px;
  color: var(--muted);
}

.photo-upload-text {
  color: var(--muted);
  font-size: 0.9rem;
}

.photo-preview-section {
  position: relative;
  margin-top: 12px;
}

.photo-preview-img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 12px;
}

.remove-photo-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.9);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.notch-footer {
  display: flex;
  gap: 12px;
  padding: 16px 20px 20px;
  border-top: 1px solid var(--input-border);
}

.notch-footer .btn {
  flex: 1;
  margin-top: 0;
}

.variation-actions {
  margin-top: 16px;
  display: flex;
  justify-content: center;
}

/* Responsive pentru modal pe desktop */
@media (min-width: 768px) {
  .attribute-modal {
    align-items: center;
  }
  
  .modal-panel {
    border-radius: 20px;
    max-height: 80vh;
    width: 90%;
    max-width: 520px;
  }
}/* Pe e
crane mai mari, îmbunătățește layout-ul tabelului */
@media (min-width: 640px) {
  .variation-name-cell {
    font-size: 0.9rem;
  }
  
  .btn-variation-photo {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
  
  .variations-table th,
  .variations-table td {
    padding: 10px 8px;
  }
  
  .variations-table th:first-child,
  .variations-table td:first-child {
    padding-left: 16px;
  }
  
  .variations-table th:last-child,
  .variations-table td:last-child {
    padding-right: 16px;
  }
}/* 
Pe ecrane mai mari, îmbunătățește layout-ul cardurilor și modalului */
@media (min-width: 640px) {
  .variation-card-mobile {
    padding: 16px;
  }
  
  .variation-card-name {
    font-size: 1rem;
    margin-bottom: 10px;
  }
  
  .variation-card-price {
    font-size: 1.1rem;
  }
  
  .variation-indicator {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }
  
  .modal-notch {
    border-radius: 20px;
    max-height: 70vh;
    width: 90%;
    max-width: 520px;
  }
  
  .variation-edit-modal {
    align-items: center;
  }
}