/* =========================================================================
   BRICOFLOW 2.0 — PAYWALL MODAL STYLING
   Interfaccia moderna, responsive, mobile-first in stile Loft Industriale NYC
   ========================================================================= */

.brico-paywall-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(10, 13, 20, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.brico-paywall-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.brico-paywall-card {
  width: 100%;
  max-width: 900px;
  background: #11151f;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 40px rgba(245, 158, 11, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  transform: scale(0.96) translateY(12px);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 92vh;
}

@media (min-width: 768px) {
  .brico-paywall-card {
    flex-direction: row;
    max-height: 640px;
  }
}

.brico-paywall-overlay.active .brico-paywall-card {
  transform: scale(1) translateY(0);
}

/* Close & Back Button */
.brico-paywall-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  font-size: 16px;
  transition: all 0.15s ease;
}

.brico-paywall-close-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  transform: scale(1.05);
}

/* Left Showcase Panel */
.brico-paywall-left {
  background: linear-gradient(155deg, #161c2b 0%, #0c0f18 100%);
  padding: 28px 24px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .brico-paywall-left {
    width: 42%;
    border-bottom: none;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    padding: 34px 28px;
  }
}

.brico-paywall-left::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.18) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.brico-paywall-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 14px;
  width: fit-content;
}

.brico-paywall-headline {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
  color: #fff;
  margin-bottom: 10px;
}

.brico-paywall-sub {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.5;
  margin-bottom: 20px;
}

.brico-paywall-features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.brico-paywall-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: #e2e8f0;
}

.brico-paywall-feature-item svg {
  color: #10b981;
  flex-shrink: 0;
}

.brico-paywall-guarantee {
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11.5px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Right Options Panel */
.brico-paywall-right {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #11151f;
  overflow-y: auto;
}

@media (min-width: 768px) {
  .brico-paywall-right {
    width: 58%;
    padding: 32px 30px;
  }
}

.brico-paywall-title {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.brico-paywall-desc {
  font-size: 12.5px;
  color: #94a3b8;
  margin-bottom: 18px;
}

/* Pricing Options Group */
.brico-pricing-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.brico-pricing-card {
  padding: 13px 16px;
  border-radius: 16px;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.16s ease;
  position: relative;
}

.brico-pricing-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.22);
}

.brico-pricing-card.selected {
  background: rgba(245, 158, 11, 0.08);
  border-color: #f59e0b;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.15);
}

.brico-pricing-card.popular.selected {
  background: rgba(16, 185, 129, 0.09);
  border-color: #10b981;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.2);
}

.brico-pricing-badge {
  position: absolute;
  top: -8px;
  right: 14px;
  padding: 2px 8px;
  border-radius: 12px;
  background: #10b981;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.4);
}

.brico-card-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.brico-pricing-card.selected .brico-card-radio {
  border-color: #f59e0b;
}

.brico-pricing-card.popular.selected .brico-card-radio {
  border-color: #10b981;
}

.brico-card-radio-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f59e0b;
  display: none;
}

.brico-pricing-card.popular.selected .brico-card-radio-dot {
  background: #10b981;
}

.brico-pricing-card.selected .brico-card-radio-dot {
  display: block;
}

.brico-card-info {
  flex-grow: 1;
}

.brico-card-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.brico-card-sub {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 1px;
}

.brico-card-price-wrap {
  text-align: right;
  flex-shrink: 0;
}

.brico-card-price {
  font-size: 17px;
  font-weight: 800;
  font-family: monospace;
  color: #fff;
}

.brico-pricing-card.selected .brico-card-price {
  color: #f59e0b;
}

.brico-pricing-card.popular.selected .brico-card-price {
  color: #10b981;
}

.brico-card-period {
  font-size: 10px;
  color: #64748b;
  display: block;
}

/* Action CTA */
.brico-btn-checkout {
  width: 100%;
  padding: 14px 20px;
  border-radius: 16px;
  border: none;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #0f172a;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.16s ease;
  margin-bottom: 12px;
}

.brico-btn-checkout:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(245, 158, 11, 0.45);
  filter: brightness(1.08);
}

.brico-btn-checkout:active {
  transform: translateY(0);
}

.brico-btn-back-link {
  background: none;
  border: none;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  width: 100%;
  padding: 6px;
  transition: color 0.15s ease;
}

.brico-btn-back-link:hover {
  color: #cbd5e1;
  text-decoration: underline;
}

/* Restore email bar */
.brico-restore-wrap {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.brico-restore-label {
  font-size: 11px;
  color: #94a3b8;
}

.brico-restore-row {
  display: flex;
  gap: 6px;
}

.brico-restore-input {
  flex-grow: 1;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 8px 12px;
  color: #fff;
  font-size: 12px;
  outline: none;
}

.brico-restore-input:focus {
  border-color: #f59e0b;
}

.brico-restore-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.brico-restore-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.brico-restore-msg {
  font-size: 11px;
  margin-top: 2px;
}

/* Locked BOM Blur Overlay in 3D Configurator */
.bom-locked-overlay-wrap {
  position: relative;
}

.bom-locked-content-blur {
  filter: blur(4px) grayscale(40%);
  pointer-events: none;
  user-select: none;
  opacity: 0.6;
}

.bom-lock-gate-badge {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border-radius: 12px;
  padding: 18px;
  text-align: center;
  z-index: 10;
  border: 1px dashed rgba(245, 158, 11, 0.4);
}

.bom-lock-gate-badge .lock-icon {
  font-size: 26px;
  margin-bottom: 6px;
}

.bom-lock-gate-badge .lock-title {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.bom-lock-gate-badge .lock-desc {
  font-size: 11px;
  color: #cbd5e1;
  max-width: 220px;
  margin-bottom: 12px;
  line-height: 1.4;
}

.bom-lock-gate-badge .btn-unlock-cta {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border: none;
  color: #0f172a;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 800;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.bom-lock-gate-badge .btn-unlock-cta:hover {
  filter: brightness(1.1);
}
