/* ===== Viba Boat Party Booking Widget — Dark Theme ===== */
/* Palette: vibaPink #FF2D78, vibaOrange #FF6B35, vibaCyan #00D4FF, dark #0A0A0F */

.bw-wrap, .bw-wrap *, .bw-wrap *::before, .bw-wrap *::after {
  box-sizing: border-box;
}

.bw-wrap {
  background: #0A0A0F;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.08);
  width: 100%;
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  color: #e0e0ec;
  position: relative;
}
@media (min-width: 540px) {
  .bw-wrap { border-radius: 40px; }
}
/* Blur decorations */
.bw-wrap::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 280px;
  height: 280px;
  background: #FF2D78;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.25;
  pointer-events: none;
  z-index: 0;
}
.bw-wrap::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 200px;
  height: 200px;
  background: #FF6B35;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}

/* ── Header (tessera style) ── */
.bw-header {
  background: transparent;
  color: #fff;
  padding: 24px 24px 16px;
  position: relative;
  z-index: 1;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
@media (min-width: 540px) {
  .bw-header { padding: 32px 40px 24px; }
}
.bw-header-badge {
  display: inline-block;
  background: linear-gradient(135deg, #FF2D78, #FF6B35);
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 9px;
  padding: 4px 10px;
  border-radius: 3px;
  margin-bottom: 10px;
  box-shadow: 0 4px 12px rgba(255,45,120,0.3);
}
@media (min-width: 540px) {
  .bw-header-badge { font-size: 10px; padding: 5px 12px; }
}
.bw-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.bw-header-left { flex: 1; }
.bw-header-title {
  font-family: 'Anton', sans-serif;
  font-size: 32px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 0.95;
  margin-bottom: 4px;
}
@media (min-width: 540px) {
  .bw-header-title { font-size: 48px; }
}
.bw-header-sub {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  font-weight: 600;
}
@media (min-width: 540px) {
  .bw-header-sub { font-size: 15px; }
}
.bw-header-right { text-align: right; flex-shrink: 0; margin-left: 16px; }
.bw-header-price-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.35);
  margin-bottom: 4px;
}
@media (min-width: 540px) {
  .bw-header-price-label { font-size: 10px; }
}
.bw-header-price {
  font-family: 'Anton', sans-serif;
  font-size: 36px;
  color: #FF2D78;
  line-height: 1;
}
@media (min-width: 540px) {
  .bw-header-price { font-size: 48px; }
}
.bw-header-price-unit {
  font-size: 16px;
  color: rgba(255,255,255,0.4);
  margin-left: 4px;
}
@media (min-width: 540px) {
  .bw-header-price-unit { font-size: 20px; }
}

/* ── Lang switch ── */
.bw-lang {
  position: absolute;
  top: 16px;
  right: 20px;
  display: flex;
  gap: 4px;
  z-index: 2;
}
@media (min-width: 540px) {
  .bw-lang { top: 24px; right: 32px; }
}
.bw-lang button {
  padding: 4px 10px;
  border-radius: 5px;
  border: 1px solid rgba(255,255,255,0.15);
  background: transparent;
  color: rgba(255,255,255,0.5);
  font-size: 11px;
  cursor: pointer;
  font-weight: 700;
  transition: all 0.15s;
}
.bw-lang button.active { background: rgba(255,255,255,0.1); color: #fff; }

/* ── Step progress ── */
.bw-steps {
  display: flex;
  align-items: center;
  padding: 16px 24px 0;
  position: relative;
  z-index: 1;
}
@media (min-width: 540px) {
  .bw-steps { padding: 20px 40px 0; }
}
.bw-step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.12);
  background: #1a1a26;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #5a5a72;
  flex-shrink: 0;
  transition: all 0.3s;
  z-index: 1;
}
.bw-step-dot.active { border-color: #FF2D78; background: #FF2D78; color: #fff; }
.bw-step-dot.done  { border-color: #00D4FF; background: #00D4FF; color: #0A0A0F; }
.bw-step-line {
  flex: 1;
  height: 2px;
  background: rgba(255,255,255,0.08);
  transition: background 0.3s;
}
.bw-step-line.done { background: #00D4FF; }

/* ── Body ── */
.bw-body { padding: 22px 24px; position: relative; z-index: 1; }
@media (min-width: 540px) {
  .bw-body { padding: 28px 40px; }
}

.bw-panel { display: none; }
.bw-panel.active { display: block; }

/* ── Error / success messages ── */
.bw-msg {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 16px;
  border-left: 3px solid;
  display: none;
}
.bw-msg.error { background: rgba(239,68,68,0.1); color: #f87171; border-color: #ef4444; }
.bw-msg.ok    { background: rgba(34,197,94,0.1); color: #4ade80; border-color: #22c55e; }

/* ── Tour grid (step 1) ── */
.bw-tour-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  justify-content: center;
}
.bw-tour-grid .bw-tour-card {
  flex: 1 1 100%;
  max-width: 100%;
}
@media (max-width: 340px) { .bw-tour-grid .bw-tour-card { flex: 1 1 100%; max-width: 100%; } }

.bw-tour-card {
  border: 2px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 16px 20px;
  cursor: pointer;
  transition: all 0.2s;
  background: #1a1a26;
  text-align: center;
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
}
.bw-tour-card:hover  { border-color: rgba(255,45,120,0.35); background: #201a2a; }
.bw-tour-card.active { border-color: #FF2D78; background: #201a2a; }

.bw-tc-icon { font-size: 32px; flex-shrink: 0; }
.bw-tc-body { flex: 1; min-width: 0; text-align: left; }
.bw-tc-name { font-size: 15px; font-weight: 700; color: #FF2D78; line-height: 1.3; margin-bottom: 2px; }
.bw-tc-desc { font-size: 12px; color: #8b8ba0; line-height: 1.3; }
.bw-tc-price { font-size: 14px; color: #FF6B35; font-weight: 700; margin-top: 4px; }

/* ── Form elements ── */
.bw-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #8b8ba0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.bw-input, .bw-select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  font-size: 15px;
  color: #F8FAFC;
  outline: none;
  transition: border 0.2s, box-shadow 0.2s;
  background: #1a1a26;
  margin-bottom: 14px;
  font-family: inherit;
}
.bw-input::placeholder { color: #4a4a60; }
.bw-input:focus, .bw-select:focus {
  border-color: #FF2D78;
  box-shadow: 0 0 0 3px rgba(255,45,120,0.1);
}

/* Date input icon fix for dark theme */
.bw-input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
}

.bw-row { display: flex; gap: 12px; }
.bw-row > .bw-col { flex: 1; }

.bw-form-group { margin-bottom: 6px; }

/* ── Date + avail row (step 2) ── */
.bw-date-avail-row {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  margin-bottom: 6px;
}
.bw-date-avail-row .bw-form-group {
  flex: 1;
  margin-bottom: 0;
}
.bw-date-avail-row .bw-form-group .bw-input {
  margin-bottom: 0;
}
.bw-avail-btn-wrap {
  flex-shrink: 0;
  padding-bottom: 0;
}
.bw-avail-btn-wrap .bw-btn {
  width: auto;
  padding: 11px 18px;
  font-size: 15px;
  margin-top: 0;
  white-space: nowrap;
}
@media (max-width: 400px) {
  .bw-date-avail-row { flex-direction: column; align-items: stretch; }
  .bw-avail-btn-wrap .bw-btn { width: 100%; }
}

/* ── Shift pills (step 2) ── */
.bw-shifts { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }

.bw-shift {
  flex: 1;
  min-width: 100px;
  text-align: center;
  padding: 12px 10px;
  border: 2px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
  font-weight: 600;
  color: #8b8ba0;
  background: #1a1a26;
}
.bw-shift:hover  { border-color: rgba(255,45,120,0.3); background: #201a2a; }
.bw-shift.active { border-color: #FF2D78; background: #201a2a; color: #FF2D78; }
.bw-shift-time  { font-size: 12px; font-weight: 400; color: #e0e0ec; display: block; margin-top: 2px; }
.bw-shift-avail { font-size: 12px; margin-top: 2px; font-weight: 600; }
.bw-shift-avail.green  { color: #4ade80; }
.bw-shift-avail.yellow { color: #fbbf24; }
.bw-shift-avail.red    { color: #f87171; }

/* ── Loading spinner ── */
.bw-loading { text-align: center; padding: 28px 0; }
.bw-spinner {
  width: 38px;
  height: 38px;
  border: 4px solid rgba(255,255,255,0.08);
  border-top-color: #FF2D78;
  border-radius: 50%;
  animation: bw-spin 0.8s linear infinite;
  margin: 0 auto 10px;
}
@keyframes bw-spin { to { transform: rotate(360deg); } }
.bw-loading p { font-size: 14px; color: #8b8ba0; }

/* ── Step 3: 2-col layout (pax left, contacts right) ── */
.bw-p3-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
@media (min-width: 540px) {
  .bw-p3-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
}

/* ── Pax controls (step 3) ── */
.bw-pax-section { margin-bottom: 14px; }
.bw-pax-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.bw-pax-row:last-child { border-bottom: none; }
.bw-pax-label { font-size: 14px; color: #e0e0ec; font-weight: 500; }
.bw-pax-label small { font-size: 12px; color: #5a5a72; display: block; font-weight: 400; }
.bw-pax-ctrl { display: flex; align-items: center; gap: 14px; }
.bw-pax-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.12);
  background: #1a1a26;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FF2D78;
  font-weight: 700;
  transition: all 0.2s;
}
.bw-pax-btn:hover { border-color: #FF2D78; background: #201a2a; }
.bw-pax-count { font-size: 18px; font-weight: 700; min-width: 24px; text-align: center; color: #F8FAFC; }

.bw-pax-names { margin-bottom: 14px; }
.bw-pax-name-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.bw-pax-name-row span { font-size: 12px; color: #8b8ba0; min-width: 64px; flex-shrink: 0; }
.bw-pax-name-row .bw-input { margin-bottom: 0; padding: 9px 12px; font-size: 14px; }

/* ── Discount (step 3) ── */
.bw-disc-row { display: flex; gap: 8px; margin-bottom: 14px; }
.bw-disc-row .bw-input { flex: 1; margin-bottom: 0; }
.bw-disc-btn {
  padding: 11px 16px;
  border: 2px solid #FF2D78;
  border-radius: 10px;
  background: transparent;
  color: #FF2D78;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}
.bw-disc-btn:hover { background: rgba(255,45,120,0.1); }

/* ── Step 4: 2-col layout (summary left, pay right) ── */
.bw-p4-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
@media (min-width: 540px) {
  .bw-p4-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
  }
}

/* ── Summary (step 4) ── */
.bw-summary {
  background: #1a1a26;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 14px;
  border: 1px solid rgba(255,255,255,0.06);
}
.bw-sum-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 14px;
  color: #8b8ba0;
}
.bw-sum-row span:last-child { color: #e0e0ec; }
.bw-sum-row.total {
  font-weight: 700;
  font-size: 17px;
  color: #FF2D78;
  border-top: 2px solid rgba(255,255,255,0.08);
  padding-top: 10px;
  margin-top: 6px;
}
.bw-sum-row.total span:last-child { color: #FF2D78; }

/* ── Terms checkbox ── */
.bw-terms-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: #1a1a26;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 14px;
  cursor: pointer;
}
.bw-terms-box input[type=checkbox] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
  accent-color: #FF2D78;
}
.bw-terms-txt { font-size: 13px; color: #8b8ba0; line-height: 1.5; }
.bw-terms-txt a { color: #FF2D78; text-decoration: underline; }

/* ── Buttons ── */
.bw-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
}
.bw-btn-primary {
  background: linear-gradient(135deg, #FF2D78, #FF6B35);
  color: #fff;
  box-shadow: 0 8px 30px rgba(255,45,120,0.25);
  margin-top: 6px;
  border-radius: 16px;
  padding: 16px;
  font-size: 16px;
}
@media (min-width: 540px) {
  .bw-btn-primary { border-radius: 20px; padding: 18px; font-size: 17px; }
}
.bw-btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #FF6B35, #FF2D78);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(255,45,120,0.35);
}
.bw-btn-primary:disabled { background: #1a1a26; color: #3a3a50; cursor: not-allowed; box-shadow: none; }

.bw-btn-ghost {
  background: transparent;
  color: #8b8ba0;
  border: 1.5px solid rgba(255,255,255,0.1);
  font-size: 14px;
  padding: 11px;
  margin-top: 8px;
}
.bw-btn-ghost:hover { border-color: rgba(255,255,255,0.2); color: #e0e0ec; }

/* ── Result ── */
.bw-result { text-align: center; padding: 18px 0; }
.bw-result-icon { font-size: 52px; margin-bottom: 12px; }
.bw-result-title { font-size: 22px; font-weight: 700; color: #FF2D78; font-family: 'Anton', sans-serif; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; }
.bw-result-desc { font-size: 14px; color: #8b8ba0; margin-bottom: 18px; line-height: 1.6; }

/* ── Tabs (Prenota / Gift Card) ── */
.bw-tabs {
  display: flex;
  gap: 6px;
  padding: 6px;
  background: rgba(255,255,255,0.03);
  border-radius: 14px;
  margin: 12px 24px 0;
  position: relative;
  z-index: 1;
}
@media (min-width: 540px) {
  .bw-tabs { margin: 16px 40px 0; }
}
.bw-tab {
  flex: 1;
  padding: 10px 16px;
  background: transparent;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #5a5a72;
  cursor: pointer;
  transition: all 0.25s;
  font-family: inherit;
  text-align: center;
}
.bw-tab:hover { color: #8b8ba0; background: rgba(255,255,255,0.03); }
.bw-tab.active {
  color: #fff;
  background: linear-gradient(135deg, #FF2D78, #FF6B35);
  box-shadow: 0 2px 10px rgba(255,45,120,0.3);
}

/* ── Gift Card ── */
.bw-gc-hero {
  text-align: center;
  padding: 24px 16px 20px;
  margin: -22px -24px 20px;
  background: transparent;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
@media (min-width: 540px) {
  .bw-gc-hero { margin: -28px -40px 24px; padding: 28px 24px; }
}
.bw-gc-hero-icon { font-size: 42px; margin-bottom: 6px; }
.bw-gc-hero-title {
  font-family: 'Anton', sans-serif;
  font-size: 22px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #FF2D78;
  margin-bottom: 2px;
}
.bw-gc-hero-sub { font-size: 14px; color: #FF6B35; font-weight: 500; }
.bw-gc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: stretch;
}
@media (min-width: 540px) {
  .bw-gc-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
}
.bw-gc-grid > .bw-gc-section { display: flex; flex-direction: column; }
.bw-gc-grid > .bw-gc-section > .bw-gc-section-card { flex: 1; }
.bw-gc-section-card {
  border: 2px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 14px;
  background: #1a1a26;
  transition: border-color 0.2s;
}
.bw-gc-section-card:focus-within { border-color: #FF2D78; }
.bw-gc-section-card .bw-label { margin-bottom: 10px; }
.bw-gc-section-card .bw-input:last-child { margin-bottom: 0; }
.bw-gc-amount-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.bw-gc-amount-input {
  font-size: 28px !important;
  font-weight: 700 !important;
  color: #FF2D78 !important;
  padding: 14px !important;
  text-align: center;
  margin-bottom: 0 !important;
}
.bw-gc-amount-input::placeholder { color: #3a3a50 !important; }
.bw-gc-euro {
  font-size: 28px;
  font-weight: 700;
  color: #FF2D78;
  flex-shrink: 0;
}
.bw-gc-hint {
  font-size: 12px;
  color: #5a5a72;
  text-align: center;
  margin-top: 8px;
}
.bw-gc-toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  cursor: pointer;
  font-size: 14px;
  color: #8b8ba0;
  font-weight: 500;
}
.bw-gc-toggle-row input[type=checkbox] {
  width: 18px;
  height: 18px;
  accent-color: #FF2D78;
  cursor: pointer;
}
.bw-btn-gc {
  background: linear-gradient(135deg, #FF2D78, #FF6B35);
  color: #fff;
  box-shadow: 0 8px 30px rgba(255,45,120,0.25);
  margin-top: 6px;
  border-radius: 16px;
  padding: 16px;
}
@media (min-width: 540px) {
  .bw-btn-gc { border-radius: 20px; padding: 18px; }
}
.bw-btn-gc:hover:not(:disabled) {
  background: linear-gradient(135deg, #FF6B35, #FF2D78);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(255,45,120,0.35);
}
.bw-btn-gc:disabled { background: #1a1a26; color: #3a3a50; cursor: not-allowed; box-shadow: none; }

/* ── Responsive mobile ── */
@media (max-width: 420px) {
  .bw-wrap { border-radius: 20px; }
  .bw-body { padding: 16px; }
  .bw-header { padding: 18px 16px 14px; }
  .bw-steps { padding: 12px 16px 0; }
  .bw-tabs { margin: 10px 16px 0; }
  .bw-header-title { font-size: 28px; }
  .bw-header-price { font-size: 28px; }
  .bw-header-price-unit { font-size: 14px; }
  .bw-header-badge { font-size: 8px; padding: 3px 8px; }
  .bw-tc-name { font-size: 13px; }
  .bw-tc-desc { font-size: 11px; }
  .bw-tc-price { font-size: 12px; }
  .bw-tc-icon { font-size: 22px; }
  .bw-tour-card { padding: 10px; }
  .bw-gc-hero { margin: -16px -16px 16px; padding: 16px 12px 14px; }
  .bw-gc-amount-input { font-size: 24px !important; }
  .bw-btn-primary { border-radius: 14px; padding: 14px; }
}

/* ── Microanimazioni ── */

/* Pannelli: fade + slide up */
.bw-panel {
  animation: bw-fadeSlideUp 0.35s ease-out;
}
@keyframes bw-fadeSlideUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Tour cards: entrata sfalsata */
.bw-tour-card {
  animation: bw-cardPop 0.3s ease-out both;
}
.bw-tour-card:nth-child(1) { animation-delay: 0.03s; }
.bw-tour-card:nth-child(2) { animation-delay: 0.06s; }
.bw-tour-card:nth-child(3) { animation-delay: 0.09s; }
.bw-tour-card:nth-child(4) { animation-delay: 0.12s; }
@keyframes bw-cardPop {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}

/* Tour card: tap/click pulse */
.bw-tour-card:active { transform: scale(0.96); }
.bw-tour-card.active {
  animation: bw-selectPulse 0.3s ease-out;
}
@keyframes bw-selectPulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,45,120,0.4); }
  70%  { box-shadow: 0 0 0 8px rgba(255,45,120,0); }
  100% { box-shadow: none; }
}

/* Turni: slide in da sinistra sfalsati */
.bw-shift {
  animation: bw-slideInLeft 0.3s ease-out both;
}
.bw-shift:nth-child(1) { animation-delay: 0.05s; }
.bw-shift:nth-child(2) { animation-delay: 0.12s; }
.bw-shift:nth-child(3) { animation-delay: 0.19s; }
@keyframes bw-slideInLeft {
  from { opacity: 0; transform: translateX(-16px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Shift: hover lift */
.bw-shift { transition: all 0.2s ease; }
.bw-shift:hover:not([style*="not-allowed"]) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255,45,120,0.12);
}

/* Step dots: transizione morbida */
.bw-sd {
  transition: all 0.35s ease;
}
.bw-sd.done {
  animation: bw-checkBounce 0.4s ease;
}
@keyframes bw-checkBounce {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.25); }
  100% { transform: scale(1); }
}

/* Tab switch */
.bw-tab {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Bottoni: hover lift */
.bw-btn-primary, .bw-btn-gc {
  transition: all 0.25s ease;
}
.bw-btn-primary:hover:not(:disabled), .bw-btn-gc:hover:not(:disabled) {
  transform: translateY(-2px);
}
.bw-btn-primary:active, .bw-btn-gc:active {
  transform: translateY(0) scale(0.98);
}

/* Gift card hero: icona bounce */
.bw-gc-hero-icon {
  animation: bw-giftBounce 2s ease-in-out infinite;
}
@keyframes bw-giftBounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-5px); }
}

/* Input focus glow */
.bw-gc-section-card .bw-input,
.bw-gc-amount-input {
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.bw-gc-section-card .bw-input:focus,
.bw-gc-amount-input:focus {
  transform: scale(1.01);
}

/* Pax counter buttons: bounce on click */
.bw-pax-btn:active {
  transform: scale(0.85);
  transition: transform 0.1s;
}

/* Risultato: icona zoom in */
.bw-result-icon {
  animation: bw-resultZoom 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes bw-resultZoom {
  from { opacity: 0; transform: scale(0.3); }
  to   { opacity: 1; transform: scale(1); }
}

/* Summary rows: fade staggered */
.bw-sum-row {
  animation: bw-fadeIn 0.3s ease-out both;
}
.bw-sum-row:nth-child(1) { animation-delay: 0.05s; }
.bw-sum-row:nth-child(2) { animation-delay: 0.1s; }
.bw-sum-row:nth-child(3) { animation-delay: 0.15s; }
.bw-sum-row:nth-child(4) { animation-delay: 0.2s; }
.bw-sum-row:nth-child(5) { animation-delay: 0.25s; }
.bw-sum-row:nth-child(6) { animation-delay: 0.3s; }
.bw-sum-row:nth-child(7) { animation-delay: 0.35s; }
@keyframes bw-fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* === Gift Card Background Grid === */
.bw-gc-bg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
}
.bw-gc-bg-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  border: 3px solid transparent;
  transition: all 0.25s ease;
  aspect-ratio: 3/2;
}
.bw-gc-bg-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bw-gc-bg-item:hover {
  border-color: rgba(255,45,120,0.35);
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.bw-gc-bg-item.bw-gc-bg-selected {
  border-color: #FF2D78;
  box-shadow: 0 0 0 2px #FF2D78, 0 4px 12px rgba(255,45,120,0.3);
}
.bw-gc-bg-check {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 26px;
  height: 26px;
  background: #FF2D78;
  color: white;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}
.bw-gc-bg-selected .bw-gc-bg-check {
  display: flex;
}
.bw-gc-bg-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 32px 16px;
  color: #5a5a72;
  font-size: 14px;
}
@media (max-width: 480px) {
  .bw-gc-bg-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}

/* ── Trust line under CTA ── */
.bw-trust {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.35);
  padding-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.bw-trust-dot {
  color: #00D4FF;
  font-size: 16px;
  line-height: 1;
}

/* ── Turnstile ── */
.bw-turnstile-box { margin: 12px 0; display: flex; justify-content: center; min-height: 65px; }

/* Rispetta preferenze utente */
@media (prefers-reduced-motion: reduce) {
  .bw-panel, .bw-tour-card, .bw-shift, .bw-sd, .bw-sum-row, .bw-result-icon, .bw-gc-hero-icon {
    animation: none !important;
  }
  .bw-tour-card:active, .bw-shift:hover, .bw-btn-primary:hover, .bw-btn-gc:hover, .bw-pax-btn:active {
    transform: none !important;
  }
}
