/* app/css/34-tessera.css — estratto da app.css (2026-07, split senza build). */
/* ========== TESSERA ========== */
.card-tessera-v { margin: 14px 18px 0; background: #fff; border-radius: 18px; padding: 20px 22px 36px; box-shadow: 0 16px 40px rgba(15,20,25,0.18); position: relative; overflow: hidden; border: 1px solid var(--line); }
.card-tessera-v .ct-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-tessera-v .ct-title { font-size: 13px; font-weight: 800; letter-spacing: 0.06em; color: var(--ink); text-transform: uppercase; }
.card-tessera-v .ct-top-right { display: flex; align-items: center; gap: 10px; }
.card-tessera-v .ct-uid { font-size: 13px; font-weight: 800; letter-spacing: 0.06em; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.card-tessera-v .ct-switch { font-size: 13px; font-weight: 700; color: var(--ink-2); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; background: var(--bg); cursor: pointer; -webkit-appearance: none; appearance: none; }
.card-tessera-v .ct-balance { margin-top: 14px; display: flex; align-items: baseline; gap: 8px; }
.card-tessera-v .ct-bal-val { font-size: 34px; font-weight: 800; color: var(--brand); letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.card-tessera-v .ct-bal-lbl { font-size: 11px; color: var(--ink-3); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.card-tessera-v .ct-meta { margin-top: 16px; font-size: 13px; color: var(--ink-2); line-height: 1.65; }
.card-tessera-v .ct-meta strong { color: var(--ink); font-weight: 800; }
/* Bottone primario Ricarica dentro la card (pattern wallet) */
.card-tessera-v .recharge-divider { border: 0; border-top: 1px solid var(--line); margin: 16px 0 0; }
.card-tessera-v .ct-recharge { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; margin: 16px 0 0; padding: 15px; background: var(--brand); color: #fff; border: 0; border-radius: 13px; font-size: 15px; font-weight: 800; cursor: pointer; transition: transform 100ms ease, background-color 120ms ease; }
.card-tessera-v .ct-recharge:active { background: var(--brand-hover); }
.card-tessera-v .ct-recharge svg { width: 18px; height: 18px; color: #fff; flex-shrink: 0; }
/* Due bottoni secondari affiancati sotto la card */
.ct-actions2 { display: flex; gap: 10px; margin: 10px 18px 0; }
.ct-act-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 12px 8px; border: 1px solid var(--line); border-radius: 12px; font-size: 12.5px; font-weight: 700; color: var(--ink-2); background: var(--surface); text-decoration: none; cursor: pointer; transition: transform 100ms ease, background-color 120ms ease; }
.ct-act-btn:active { background: var(--bg); }
.ct-act-btn svg { width: 15px; height: 15px; color: var(--ink-3); flex-shrink: 0; }
.ct-act-btn.danger { color: #c0182e; }
.ct-act-btn.danger svg { color: #c0182e; }
/* Sheet metodi di ricarica (per-lavanderia) */
.recharge-method { display: flex; align-items: center; gap: 12px; padding: 12px 4px; text-decoration: none; color: inherit; border-top: 1px solid var(--line); transition: transform 100ms ease, background-color 120ms ease; }
.recharge-method:active { background: var(--bg); }
.recharge-method:first-of-type { border-top: 0; }
.recharge-method .rm-logo { width: 42px; height: 42px; border-radius: 11px; background: var(--satispay); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.recharge-method .rm-logo svg { width: 24px; height: 24px; color: #fff; fill: none; stroke: currentColor; }
.recharge-method .rm-body { flex: 1; }
.recharge-method .rm-ttl { font-size: 15px; font-weight: 700; }
.recharge-method .rm-sub { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.recharge-method .arr { color: var(--ink-3); }

.purse-card { background: var(--surface); border-radius: 14px; padding: 14px; box-shadow: var(--shadow-card); margin: 10px 18px 0; display: flex; align-items: center; gap: 14px; cursor: pointer; }
.purse-card:active { background: var(--bg); }
.purse-card.primary { border: 1.5px solid var(--brand); background: linear-gradient(180deg, #fff 60%, var(--brand-soft) 100%); }
.purse-card .star-mark { color: var(--brand); flex-shrink: 0; }
.purse-card .place-ico { width: 40px; height: 40px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.purse-card .info { flex: 1; min-width: 0; }
.purse-card .info .nm { font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.purse-card .info .nm small { font-size: 10px; padding: 2px 6px; border-radius: 999px; background: var(--brand); color: #fff; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.purse-card .info .ad { font-size: 11px; color: var(--ink-3); margin-top: 2px; }
.purse-card .balance { text-align: right; }
.purse-card .balance .v { font-size: 18px; font-weight: 800; color: var(--brand); letter-spacing: -0.01em; }
.purse-card .balance .l { font-size: 10px; color: var(--ink-3); text-transform: uppercase; font-weight: 700; letter-spacing: 0.05em; }
.purse-card .arr { color: var(--ink-3); flex-shrink: 0; opacity: 0.6; margin-left: 4px; }

.satispay-cta { margin: 14px 18px 0; padding: 14px 16px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 14px; display: flex; align-items: center; gap: 12px; cursor: pointer; }
.satispay-cta:active { background: var(--bg); }
.satispay-cta .ssp-logo { width: 44px; height: 44px; border-radius: 11px; background: var(--satispay); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.satispay-cta .ssp-logo svg { width: 26px; height: 26px; color: #fff; fill: none; stroke: currentColor; }
.ssp-hero-logo { width: 100px; height: 100px; border-radius: 26px; background: var(--satispay); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 16px 40px rgba(255,54,37,0.35); animation: pulseGrow 1.5s infinite; }
.ssp-hero-logo svg { width: 56px; height: 56px; color: #fff; fill: none; stroke: currentColor; }
.satispay-cta .body { flex: 1; }
.satispay-cta .ttl { font-size: 14px; font-weight: 700; }
.satispay-cta .sub { font-size: 11px; color: var(--ink-3); margin-top: 2px; }

.in-store-recharge { margin: 12px 0 0; padding: 0 18px; font-size: 12px; color: var(--ink-3); line-height: 1.5; }
.in-store-recharge strong { color: var(--ink-2); font-weight: 700; }
/* Carosello card (una per lavanderia) */
.ct-carousel-wrap { position: relative; }
.ct-carousel { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.ct-carousel::-webkit-scrollbar { display: none; }
.ct-slide { flex: 0 0 100%; scroll-snap-align: center; box-sizing: border-box; display: flex; }
.ct-slide .card-tessera-v { flex: 1; }
.ct-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 34px; height: 34px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: var(--shadow-card); }
.ct-arrow-prev { left: 6px; }
.ct-arrow-next { right: 6px; }
.ct-arrow svg { width: 18px; height: 18px; }
.ct-dots { display: flex; justify-content: center; gap: 7px; position: absolute; left: 0; right: 0; bottom: 14px; margin: 0; z-index: 3; }
.ct-dot { width: 7px; height: 7px; border-radius: 999px; border: 0; padding: 0; background: var(--line); cursor: pointer; transition: width 140ms ease, background-color 140ms ease; }
.ct-dot.is-active { background: var(--brand); width: 18px; }
.ct-qr { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 16px 0 0; }
.ct-qr img { border-radius: 12px; }
.ct-qr-cap { font-size: 12px; color: var(--ink-3); font-weight: 700; }
/* Card attiva (badge) + azione "Usa questa lavanderia" (conferma esplicita) */
.card-tessera-v .ct-active-badge { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; vertical-align: middle; }
.card-tessera-v .ct-active-badge svg { width: 11px; height: 11px; color: #fff; }
.ct-use-lab-form { margin: 12px 0 0; }
.ct-use-lab { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 12px; background: var(--surface); color: var(--brand); border: 1px solid var(--brand); border-radius: 12px; font-size: 14px; font-weight: 800; cursor: pointer; transition: background-color 120ms ease; }
.ct-use-lab svg { width: 16px; height: 16px; color: var(--brand); }
.ct-use-lab:active { background: var(--bg); }

/* === Tab Card ridisegno 2026-06-20 · card hero contrasto A, Movimenti(chip lab),
   "I miei saldi", stato senza-card, banner geo (niente carosello) === */
.card-tessera-v--hero { box-shadow: 0 18px 44px rgba(15, 20, 25, 0.20); }
.card-tessera-v--hero .ct-bal-val { font-size: 40px; }

/* Titolo Movimenti + chip della lavanderia attiva (i movimenti sono di quel lab). */
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 32px 18px 0; }
/* padding:0 -> il testo "Movimenti" parte dal margine del .sec-head (18px), allineato
   a "I miei saldi" (.section-title, padding-left 18px); senza, sommava 18+18=36px. */
.sec-head .section-title { margin: 0; padding: 0; }
.lab-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 800; color: var(--brand); background: var(--brand-soft); border: 1px solid #F3D6DC; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.lab-chip svg { width: 12px; height: 12px; }

/* I miei saldi: lista Card del cliente, tap su una riga = POST set_active_lab. */
.saldi { margin: 10px 18px 0; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-card); overflow: hidden; border: 1px solid var(--line); }
.saldo-row-form { margin: 0; }
.saldo-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 15px; border: 0; border-bottom: 1px solid var(--line); background: var(--surface); text-align: left; cursor: pointer; -webkit-appearance: none; appearance: none; transition: background 120ms ease; }
.saldo-row-form:last-of-type .saldo-row { border-bottom: 0; }
.saldo-row:active { background: var(--bg); }
.saldo-row.active { background: var(--brand-soft); }
.saldo-row .ic { width: 34px; height: 34px; border-radius: 10px; background: var(--bg); color: var(--ink-3); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.saldo-row.active .ic { background: var(--surface); color: var(--brand); }
.saldo-row .ic svg { width: 17px; height: 17px; }
.saldo-row .bdy { flex: 1; min-width: 0; }
.saldo-row .nm { font-size: 14px; font-weight: 800; color: var(--ink); display: flex; align-items: center; gap: 7px; }
.saldo-row .mini { font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; color: var(--brand); background: var(--surface); border: 1px solid #F3D6DC; border-radius: 999px; padding: 1px 6px; }
.saldo-row .ad { font-size: 12px; color: var(--ink-3); margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.saldo-row .bal { font-size: 16px; font-weight: 800; color: var(--brand); font-variant-numeric: tabular-nums; flex-shrink: 0; }
.saldo-foot { display: flex; align-items: center; justify-content: space-between; padding: 11px 15px; font-size: 12px; color: var(--ink-3); border-top: 1px solid var(--line); }
.saldo-foot .v { color: var(--ink); font-weight: 800; }

/* Stato "senza Card a questa lavanderia" (al posto della card hero). */
.nocard { margin: 14px 18px 0; background: var(--surface); border-radius: 18px; box-shadow: var(--shadow-card); border: 1px solid var(--line); padding: 16px; }
.nocard .nc-top { display: flex; align-items: flex-start; gap: 12px; }
.nocard .nc-ico { width: 38px; height: 38px; border-radius: 11px; background: var(--brand-soft); color: var(--brand); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.nocard .nc-ico svg { width: 20px; height: 20px; }
.nocard .nc-head-txt { display: flex; flex-direction: column; }
.nocard .nc-h { font-size: 15px; font-weight: 800; line-height: 1.25; color: var(--ink); }
.nocard .nc-place { font-size: 12px; color: var(--ink-3); margin-top: 2px; font-weight: 600; }
.nocard .nc-sub { font-size: 13px; color: var(--ink-2); line-height: 1.5; margin: 12px 0 0; }
.nc-info { margin: 13px 0 0; border-top: 1px solid var(--line); padding-top: 13px; display: flex; flex-direction: column; gap: 11px; }
.nc-item { display: flex; align-items: center; gap: 11px; }
.nc-item .ii { width: 30px; height: 30px; border-radius: 9px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.nc-item .ii.buy { background: var(--brand-soft); color: var(--brand); }
.nc-item .ii.gift { background: var(--gold-soft); color: var(--gold); }
.nc-item .ii svg { width: 16px; height: 16px; }
.nc-item .tt { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.3; }
.nc-item .q { font-size: 13px; font-weight: 800; color: var(--ink); }
.nc-item .a { font-size: 12px; color: var(--ink-3); }
.nc-cta { margin: 14px 0 0; width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; background: var(--surface); color: var(--brand); border: 1px solid var(--brand); border-radius: 12px; font-size: 13px; font-weight: 800; text-decoration: none; }
.nc-cta svg { width: 16px; height: 16px; }
.nc-cta:active { background: var(--brand-soft); }

/* Banner geo non-modale, riusato in home e Card. */
.geo-strip { display: flex; align-items: center; gap: 11px; margin: 12px 18px 0; background: var(--brand-soft); border: 1px solid #F3D6DC; border-radius: 14px; padding: 11px 12px; }
.geo-strip .geo-pin { width: 32px; height: 32px; border-radius: 9px; background: var(--surface); color: var(--brand); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.geo-strip .geo-pin svg { width: 17px; height: 17px; }
.geo-strip .geo-tt { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.25; }
.geo-strip .geo-q { font-size: 13px; font-weight: 800; color: var(--brand); }
.geo-strip .geo-a { font-size: 11px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.geo-strip .geo-go { flex-shrink: 0; background: var(--brand); color: #fff; font-size: 13px; font-weight: 800; padding: 8px 14px; border-radius: 9px; border: 0; cursor: pointer; }
.geo-strip .geo-go:active { background: var(--brand-hover); }
.geo-strip .geo-x { flex-shrink: 0; width: 28px; height: 28px; border-radius: 8px; background: var(--surface); color: var(--ink-3); display: flex; align-items: center; justify-content: center; border: 0; cursor: pointer; }
.geo-strip .geo-x svg { width: 14px; height: 14px; }

.purse-concept-card { margin: 14px 18px 0; background: var(--brand-soft); border-radius: 12px; padding: 12px 14px; display: flex; align-items: flex-start; gap: 10px; }
.purse-concept-card .info-mark { width: 20px; height: 20px; color: var(--brand); flex-shrink: 0; margin-top: 1px; }
.purse-concept-card .pcc-body { font-size: 13px; color: var(--ink-2); line-height: 1.45; }
.purse-concept-card .pcc-body strong { color: var(--ink); font-weight: 700; display: block; margin-bottom: 2px; }

.concept-note { margin: 24px 18px 18px; font-size: 11.5px; color: var(--ink-3); text-align: center; line-height: 1.5; }

