/* ATI 360 — Configurator de pachet. Extinde styles.css (tokens/nav/footer). */

.cfg-hero { padding-top: calc(var(--nav-h) + clamp(40px, 6vw, 72px)); padding-bottom: 8px; text-align: center; }
.cfg-hero h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 850; line-height: 1.06; margin: 18px 0 14px; }
.cfg-hero p { color: var(--muted); font-size: clamp(16px, 1.7vw, 19px); max-width: 620px; margin: 0 auto; }

/* Layout: config on left, sticky summary on right */
.cfg-wrap { display: grid; grid-template-columns: 1fr 380px; gap: 28px; align-items: start; padding-top: 40px; }

/* Config card blocks */
.cfg-block { background: linear-gradient(165deg, var(--surface), var(--bg-2)); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 24px; margin-bottom: 20px; }
.cfg-block > .h { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.cfg-block > .h .num { flex:0 0 30px; width:30px; height:30px; border-radius:9px; display:grid; place-items:center; font-weight:800; font-size:14px; background: var(--grad-brand); color:#fff; }
.cfg-block > .h h2 { font-size: 19px; font-weight: 750; }
.cfg-block > .h span { font-size: 13px; color: var(--muted-2); margin-left: auto; }

/* Segmented / choice chips */
.choices { display: grid; gap: 12px; }
.choices.c3 { grid-template-columns: repeat(3, 1fr); }
.choice {
  position: relative; cursor: pointer; border: 1.5px solid var(--border); border-radius: var(--r-md);
  padding: 16px; transition: border-color .2s, background .2s, transform .15s; background: rgba(255,255,255,0.02);
}
.choice:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice.sel { border-color: var(--violet); background: rgba(139,92,246,0.10); box-shadow: 0 0 0 1px var(--violet) inset; }
.choice .ci { width: 40px; height: 40px; border-radius: 11px; display:grid; place-items:center; background: rgba(139,92,246,0.12); border:1px solid var(--border-strong); color:#c4b5fd; margin-bottom: 12px; }
.choice .ci svg { width: 21px; height: 21px; }
.choice b { display:block; font-size: 15.5px; font-weight: 700; }
.choice small { display:block; font-size: 12.5px; color: var(--muted-2); margin-top: 3px; }
.choice .badge { position:absolute; top:-10px; right:12px; font-size:10.5px; font-weight:800; letter-spacing:.5px; text-transform:uppercase; background: var(--grad-brand); color:#fff; padding:4px 9px; border-radius:999px; }

/* Tier cards */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tier { position: relative; cursor: pointer; border: 1.5px solid var(--border); border-radius: var(--r-md); padding: 20px 18px; transition: border-color .2s, background .2s, transform .15s; }
.tier:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.tier input { position:absolute; opacity:0; pointer-events:none; }
.tier.sel { border-color: var(--violet); background: rgba(139,92,246,0.09); box-shadow: 0 0 0 1px var(--violet) inset; }
.tier .dot { width:18px; height:18px; border-radius:50%; border:2px solid var(--border-strong); position:absolute; top:18px; right:18px; transition:.2s; }
.tier.sel .dot { border-color: var(--violet); background: var(--violet); box-shadow: 0 0 0 3px rgba(139,92,246,.25); }
.tier .pop { position:absolute; top:-11px; left:18px; font-size:10.5px; font-weight:800; letter-spacing:.5px; text-transform:uppercase; background: var(--green); color:#04140d; padding:4px 10px; border-radius:999px; }
.tier h3 { font-size: 18px; font-weight: 800; margin-bottom: 2px; }
.tier .sub { font-size: 12.5px; color: var(--muted-2); margin-bottom: 12px; }
.tier .price { font-size: 26px; font-weight: 850; }
.tier .price span { font-size: 13px; font-weight: 600; color: var(--muted-2); }
.tier .price small { display:block; font-size: 11.5px; color: var(--muted-2); font-weight:600; margin-top: 2px; }
.tier ul { margin-top: 14px; display: grid; gap: 8px; }
.tier ul li { font-size: 13px; color: var(--muted); display:flex; gap:8px; align-items:flex-start; }
.tier ul li svg { flex:0 0 14px; width:14px; height:14px; color: var(--green); margin-top:3px; }

/* Stepper */
.stepper { display: inline-flex; align-items: center; gap: 0; border: 1.5px solid var(--border-strong); border-radius: 999px; overflow: hidden; }
.stepper button { width: 46px; height: 46px; background: rgba(255,255,255,0.03); border: none; color: var(--fg); font-size: 22px; font-weight: 700; display:grid; place-items:center; transition: background .15s; }
.stepper button:hover { background: rgba(139,92,246,0.18); }
.stepper button:disabled { opacity: .35; cursor: not-allowed; }
.stepper .val { min-width: 60px; text-align:center; font-size: 20px; font-weight: 800; }
.stepper-row { display:flex; align-items:center; justify-content:space-between; gap: 16px; flex-wrap: wrap; }
.stepper-row .lbl b { font-size: 15px; } .stepper-row .lbl small { display:block; font-size: 12.5px; color: var(--muted-2); }

/* Add-on toggles */
.addons { display: grid; gap: 10px; }
.addon { display:flex; align-items:center; gap:14px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--r-md); background: rgba(255,255,255,0.02); transition: border-color .2s; }
.addon:hover { border-color: var(--border-strong); }
.addon.on { border-color: var(--violet); background: rgba(139,92,246,0.07); }
.addon .ax { flex:0 0 40px; width:40px; height:40px; border-radius:10px; display:grid; place-items:center; background: rgba(34,211,238,0.1); border:1px solid rgba(34,211,238,0.22); color: var(--cyan); }
.addon .ax svg { width:20px; height:20px; }
.addon .info { flex: 1; min-width: 0; }
.addon .info b { font-size: 14.5px; font-weight: 700; display:block; }
.addon .info small { font-size: 12.5px; color: var(--muted-2); }
.addon .price-tag { font-size: 13.5px; font-weight: 700; color: #c4b5fd; white-space: nowrap; }
.addon .incl { font-size: 12px; font-weight: 800; color: var(--green); letter-spacing:.4px; text-transform:uppercase; }

/* Switch */
.switch { position: relative; width: 46px; height: 26px; flex: 0 0 46px; }
.switch input { opacity:0; width:0; height:0; }
.switch .track { position:absolute; inset:0; border-radius:999px; background: rgba(255,255,255,0.12); transition:.2s; cursor:pointer; }
.switch .track::before { content:""; position:absolute; width:20px; height:20px; border-radius:50%; background:#fff; top:3px; left:3px; transition:.2s; }
.switch input:checked + .track { background: var(--violet); }
.switch input:checked + .track::before { transform: translateX(20px); }
.addon.locked .switch { opacity: .5; pointer-events: none; }

/* mini stepper inside addon */
.addon .mini { display:inline-flex; align-items:center; border:1px solid var(--border-strong); border-radius:999px; overflow:hidden; }
.addon .mini button { width:32px; height:32px; background:rgba(255,255,255,.04); border:none; color:var(--fg); font-size:17px; font-weight:700; }
.addon .mini .v { min-width:34px; text-align:center; font-weight:800; font-size:15px; }

/* Billing toggle */
.billing { display:inline-flex; padding:5px; background: rgba(255,255,255,0.04); border:1px solid var(--border); border-radius:999px; gap:4px; }
.billing button { padding: 9px 20px; border:none; background:transparent; color: var(--muted); font-weight:700; font-size:14px; border-radius:999px; transition:.2s; }
.billing button.on { background: var(--grad-brand); color:#fff; }
.billing .save { font-size:11px; background: rgba(16,185,129,.15); color: var(--green); padding:2px 7px; border-radius:999px; margin-left:6px; font-weight:800; }

/* Summary (sticky) */
.summary { position: sticky; top: calc(var(--nav-h) + 16px); }
.summary-card { background: linear-gradient(160deg, var(--surface-2), var(--surface)); border: 1px solid var(--border-strong); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow-lg); overflow:hidden; position:relative; }
.summary-card::before { content:""; position:absolute; inset:0; background: radial-gradient(80% 60% at 100% 0%, rgba(217,70,239,0.14), transparent 60%); pointer-events:none; }
.summary-card h3 { font-size: 13px; letter-spacing:1.4px; text-transform:uppercase; color: var(--muted-2); margin-bottom: 6px; }
.summary-plan { font-size: 22px; font-weight: 850; margin-bottom: 16px; }
.summary-lines { display:grid; gap:9px; padding: 16px 0; border-top:1px solid var(--border); border-bottom:1px solid var(--border); margin-bottom:16px; }
.sl { display:flex; justify-content:space-between; gap:12px; font-size:14px; }
.sl .k { color: var(--muted); } .sl .v { font-weight:700; white-space:nowrap; }
.sl.muted .k, .sl.muted .v { color: var(--muted-2); font-size:13px; }
.sl.disc .v { color: var(--green); }
.summary-total .lbl { font-size:13px; color:var(--muted-2); }
.summary-total .amount { font-size: 40px; font-weight: 900; line-height:1; letter-spacing:-.02em; }
.summary-total .amount span { font-size:16px; font-weight:700; color: var(--muted); }
.summary-total .per { font-size: 13px; color: var(--muted-2); margin-top:6px; }
.onetime-row { display:flex; justify-content:space-between; align-items:center; margin-top:14px; padding-top:14px; border-top:1px dashed var(--border); font-size:13.5px; color:var(--muted); }
.onetime-row b { font-size:16px; font-weight:850; color:#c4b5fd; }
.summary-cta { margin-top: 20px; display:grid; gap:10px; }
.summary-note { font-size: 12px; color: var(--muted-2); text-align:center; margin-top:12px; line-height:1.5; }
.summary-onb { font-size:12.5px; color: var(--muted); margin-top:10px; padding-top:12px; border-top:1px dashed var(--border); }
.summary-onb b { color: var(--green); }

.value-strip { display:flex; align-items:center; gap:10px; justify-content:center; margin-top:26px; flex-wrap:wrap; color:var(--muted-2); font-size:13.5px; }
.value-strip b { color: var(--fg); }

/* Responsive */
@media (max-width: 900px) {
  .cfg-wrap { grid-template-columns: 1fr; }
  .summary { position: static; }
  .summary-card { position: sticky; bottom: 0; }
  .tiers { grid-template-columns: 1fr; }
  .choices.c3 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .cfg-block { padding: 18px; }
  .addon { flex-wrap: wrap; }
  .summary-total .amount { font-size: 34px; }
}
