:root{
  --bg:#0b0b12;
  --panel:#141423;
  --text:#f2f2ff;
  --muted:#b9b9d6;
  --accent:#7c5cff;
  --accent2:#ff5caa;
  --border:rgba(255,255,255,.10);
}

*{ box-sizing:border-box; }

body{
  margin:0;
  font-family: Arial, sans-serif;
  color:var(--text);
  background:
    radial-gradient(900px 500px at 20% 10%, rgba(124,92,255,.18), transparent 60%),
    radial-gradient(900px 500px at 80% 90%, rgba(255,92,170,.12), transparent 60%),
    url("assets/bg-main.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.wrap{
  max-width: 900px;
  margin: 0 auto;
  padding: 24px;
}
.wrap.wide{ max-width: 1150px; }

.topbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-bottom:14px;
}

.brand{ display:flex; align-items:center; gap:10px; }
.logoDot{
  width:14px; height:14px; border-radius:50%;
  background:linear-gradient(135deg,var(--accent),var(--accent2));
  box-shadow:0 0 0 4px rgba(124,92,255,.15);
}
.brandTitle{ font-weight:900; }
.brandSub{ font-size:12px; color:rgba(255,255,255,.6); }

.badge{
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.15);
  color:rgba(255,255,255,.8);
  white-space:nowrap;
}

.hero{
  border-radius:18px;
  padding:16px;
  margin-bottom:14px;
  border:1px solid rgba(255,255,255,.10);
  background:
    linear-gradient(180deg, rgba(20,20,35,.86), rgba(20,20,35,.86)),
    url("assets/texture-panel.png");
  background-size: cover;
  background-position: center;
  box-shadow:0 14px 40px rgba(0,0,0,.35);
}
.hero h1{ margin:0 0 8px; }
.hero p{ margin:0; color:rgba(255,255,255,.72); line-height:1.45; }

.grid{
  display:grid;
  grid-template-columns:1fr;
  gap:14px;
}
@media(min-width:860px){
  .grid{ grid-template-columns:1fr 1fr; }
}

.card, .panel{
  background:
    linear-gradient(180deg, rgba(20,20,35,.86), rgba(20,20,35,.86)),
    url("assets/texture-panel.png");
  background-size: cover;
  background-position: center;
  border:1px solid rgba(255,255,255,.10);
  border-radius:16px;
  padding:16px;
  box-shadow:0 14px 40px rgba(0,0,0,.35);
}

label{
  display:block;
  margin:10px 0 6px;
  color:rgba(255,255,255,.75);
  font-size:13px;
}

input, select, button{
  width:100%;
  padding:12px;
  border-radius:12px;
  border:1px solid var(--border);
  background:rgba(10,10,18,.65);
  color:var(--text);
  outline:none;
}

button{ cursor:pointer; }

.btnPrimary{
  background:linear-gradient(135deg,var(--accent),var(--accent2));
  border:none;
  font-weight:900;
  margin-top:12px;
}

.btnSecondary{
  background:transparent;
  border:1px solid rgba(255,255,255,.22);
  font-weight:800;
  margin-top:12px;
}

.muted{ color:var(--muted); line-height:1.35; }
.tiny{ color:rgba(255,255,255,.55); font-size:12px; line-height:1.35; }

img{
  width:100%;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  margin:10px 0;
}

.cardText{
  color:rgba(255,255,255,.84);
  line-height:1.55;
  font-size:14px;
}
.cardText p{ margin:0 0 10px; }

.hint{
  margin-top:10px;
  padding:10px;
  border-radius:14px;
  border:1px dashed rgba(255,255,255,.18);
  font-size:12px;
  color:rgba(255,255,255,.7);
  line-height:1.45;
}

.paywall{
  margin-top:12px;
  padding:12px;
  border-radius:14px;
  border:1px dashed rgba(255,255,255,.2);
  background:
    linear-gradient(180deg, rgba(10,10,18,.72), rgba(10,10,18,.72)),
    url("assets/bg-paywall.jpg");
  background-size: cover;
  background-position: center;
}
.paywallTitle{ font-weight:900; margin-bottom:8px; }

.limitBox{
  margin-bottom:12px;
  padding:12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.06);
}
.limitTitle{ font-weight:900; margin-bottom:6px; }
.limitText{ color:rgba(255,255,255,.75); line-height:1.45; font-size:13px; }

.fieldWrap{ position:relative; }
.fieldIcon{
  position:absolute;
  left:12px;
  top:50%;
  transform:translateY(-50%);
  width:20px;
  height:20px;
  opacity:.9;
  pointer-events:none;
}
.dateInput{ padding-left:42px !important; letter-spacing:.3px; }
.helperSmall{ margin-top:6px; font-size:12px; color:rgba(255,255,255,.55); }

/* Hint chips */
.chips{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:10px;
}
.chip{
  border:1px solid rgba(255,255,255,.18);
  background:rgba(10,10,18,.35);
  color:rgba(255,255,255,.82);
  padding:8px 10px;
  border-radius:999px;
  font-size:12px;
  cursor:pointer;
  user-select:none;
}

/* ===== Welcome modal ===== */
.welcomeOverlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.55);
  backdrop-filter:blur(8px);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:16px;
  z-index:9999;
}
.welcomeOverlay[hidden]{ display:none !important; }

.welcomeModal{
  position:relative;
  width:min(980px,100%);
  border-radius:18px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.14);
  box-shadow:0 24px 80px rgba(0,0,0,.55);
}
.welcomeClose{
  position:absolute;
  top:10px;
  right:10px;
  width:44px;
  height:44px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(10,10,18,.55);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:99999;
  color:#fff;
  font-size:22px;
  font-weight:900;
  line-height:1;
  margin:0;
}
.welcomeDesktop{ display:block; }
.welcomeMobile{ display:none; }

@media(max-width:700px){
  .welcomeOverlay{ padding:0; }
  .welcomeModal{ width:100%; height:100%; border-radius:0; }
  .welcomeDesktop{ display:none; }
  .welcomeMobile{ display:block; width:100%; height:100%; object-fit:cover; }
  .welcomeClose{ top:14px; right:14px; }
}
.welcomeModal img{
  width:100% !important;
  margin:0 !important;
  border:0 !important;
  border-radius:0 !important;
}

/* ===== Success spread ===== */
.spreadGrid{
  display:grid;
  grid-template-columns:1fr; /* mobile: 1 card */
  gap:22px;
  margin-top:16px;
}
@media(min-width:900px){
  .spreadGrid{ grid-template-columns:repeat(3,minmax(0,1fr)); gap:26px; }
}
@media(min-width:1200px){
  .spreadGrid{ grid-template-columns:repeat(4,minmax(0,1fr)); }
}

.spreadItem{
  border:1px solid rgba(255,255,255,.12);
  border-radius:18px;
  padding:14px;
  background:rgba(10,10,18,.40);
}

.posTag{
  display:inline-block;
  font-size:12px;
  color:rgba(255,255,255,.7);
  border:1px solid rgba(255,255,255,.18);
  border-radius:999px;
  padding:5px 10px;
  margin-bottom:10px;
}

.spreadItem h3{ margin:0 0 10px; font-size:16px; }
.spreadItem img{
  width:100% !important;
  max-width:100% !important;
  margin:12px 0 14px !important;
  border-radius:16px !important;
  border:1px solid rgba(255,255,255,.14) !important;
}
.msg{ font-size:14px; line-height:1.55; color:rgba(255,255,255,.85); }

.finalQuestion{
  margin-top:28px;
  padding-top:18px;
  border-top:1px solid rgba(255,255,255,.12);
  text-align:center;
}
.finalQuestion h3{ margin:0 0 6px; }
.finalQuestion p{ margin:0; font-size:13px; color:rgba(255,255,255,.65); }

/* ===== WhatsApp Floating Button ===== */
.wa-float{
  position:fixed;
  right:16px;
  bottom:16px;
  z-index:9998;
  width:54px;
  height:54px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(10,10,18,.55);
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 18px 60px rgba(0,0,0,.45);
  text-decoration:none;
}
.wa-float svg{ width:26px; height:26px; opacity:.95; }

/* ===== Locked (gri + blocat după generare) ===== */
.locked{
  opacity:.55;
  filter:saturate(.7);
  pointer-events:none;
}

/* ===== Success: one-card view ===== */
.spreadOne{
  margin-top:12px;
}

/* ===== Progress UI ===== */
.actionRow{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:10px;
}
.actionRow button{
  width:auto;
  flex:1;
  min-width:160px;
}

.progressBar{
  margin:10px 0 12px;
}
.progressText{
  font-size:12px;
  color:rgba(255,255,255,.7);
  margin-bottom:8px;
}
.progressTrack{
  height:10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(10,10,18,.35);
  overflow:hidden;
}
.progressFill{
  height:100%;
  width:0%;
  background:linear-gradient(135deg,var(--accent),var(--accent2));
}

.navRow{
  display:flex;
  gap:10px;
  margin-top:12px;
}
.navRow button{
  width:50%;
}

/* ===== Print to PDF ===== */
.printOnly{ display:none; }
.noPrint{ display:block; }

@media print{
  body{
    background:#fff !important;
    color:#000 !important;
  }
  .wrap{ max-width:100% !important; padding:0 !important; }
  .topbar, .hero, .card, .wa-float, .noPrint{ display:none !important; }
  .printOnly{ display:block !important; }
  .panel{ box-shadow:none !important; background:none !important; border:none !important; }
  .spreadItem{ break-inside: avoid; page-break-inside: avoid; }
}

