/* ==========================================================================
   DELHI KA TESSA (DELIKATESSA) B2C - SCREEN STYLES & LAYOUTS
   PDP, Cart, 4-Step Checkout, Review § 312j, Tracking & Payment Sheets
   ========================================================================== */

/* Sub-Header with Back Button */
.screen-sub-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.sub-header-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary-900);
}

/* --------------------------------------------------------------------------
   1. PRODUCT DETAIL SCREEN (PDP)
   -------------------------------------------------------------------------- */
.pdp-card {
  background: var(--surface-base);
  border-radius: var(--radius-lg);
  border: 1px solid var(--surface-border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 14px;
}

.pdp-gallery-wrap {
  width: 100%;
  height: 220px;
  background: #f1f5f9;
  position: relative;
  overflow: hidden;
}

.pdp-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pdp-body {
  padding: 16px;
}

.pdp-packaging {
  font-size: 11px;
  font-weight: 800;
  color: var(--accent-700);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.pdp-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary-900);
  line-height: 1.3;
  margin-bottom: 12px;
}

.pdp-price-box {
  background: var(--primary-50);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
  border: 1px solid var(--primary-200);
}

.pdp-gross-price {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary-900);
  font-family: var(--font-mono);
}

.pdp-tax-notice {
  font-size: 10px;
  color: var(--primary-500);
  margin-top: 2px;
}

.pdp-base-price {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-700);
}

.pdp-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.pdp-spec-item {
  background: var(--surface-subtle);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
}

.pdp-spec-label {
  font-size: 10px;
  color: var(--primary-400);
  font-weight: 700;
  text-transform: uppercase;
}

.pdp-spec-val {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-800);
  margin-top: 2px;
}

.pdp-desc-text {
  font-size: 13px;
  color: var(--primary-700);
  line-height: 1.5;
  margin-bottom: 16px;
}

/* Accordion for Allergens & Nutrition */
.accordion-item {
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  overflow: hidden;
}

.accordion-header {
  padding: 10px 14px;
  background: var(--surface-base);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-800);
  cursor: pointer;
  user-select: none;
}

.accordion-body {
  padding: 10px 14px;
  background: var(--surface-subtle);
  font-size: 12px;
  color: var(--primary-700);
  line-height: 1.45;
  border-top: 1px solid var(--surface-border);
  display: none;
}

.accordion-body.active {
  display: block;
}

.nutrition-table {
  width: 100%;
  font-size: 11px;
}

.nutrition-table td {
  padding: 4px 0;
  border-bottom: 1px solid var(--surface-border);
}

.nutrition-table tr:last-child td {
  border-bottom: none;
}

/* Sticky Bottom Action Bar for PDP */
.pdp-sticky-bar {
  position: sticky;
  bottom: 0;
  background: var(--surface-base);
  border-top: 1px solid var(--surface-border);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.05);
  margin: 0 -16px -24px;
}

/* --------------------------------------------------------------------------
   2. SHOPPING CART SCREEN
   -------------------------------------------------------------------------- */
.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.cart-item-card {
  background: var(--surface-base);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 10px;
  display: flex;
  gap: 12px;
  align-items: center;
  box-shadow: var(--shadow-xs);
}

.cart-item-thumb {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  background: #f1f5f9;
}

.cart-item-details {
  flex: 1;
  min-width: 0;
}

.cart-item-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--primary-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.cart-item-sub {
  font-size: 10px;
  color: var(--primary-400);
  font-weight: 600;
  margin-bottom: 6px;
}

.cart-item-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-item-price {
  font-size: 13px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--primary-900);
}

.cart-item-delete {
  background: none;
  border: none;
  color: var(--primary-400);
  cursor: pointer;
  padding: 4px;
  font-size: 14px;
  transition: color var(--transition-fast);
}

.cart-item-delete:hover {
  color: #ef4444;
}

/* Voucher Promo Input */
.promo-box {
  background: var(--surface-base);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 10px;
  margin-bottom: 14px;
  display: flex;
  gap: 8px;
}

.promo-box input {
  flex: 1;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
  padding: 7px 10px;
  font-size: 12px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  outline: none;
}

/* Price Breakdown Card */
.price-summary-card {
  background: var(--surface-base);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 14px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-xs);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--primary-600);
  margin-bottom: 6px;
}

.summary-row.vat-sub {
  font-size: 10px;
  color: var(--primary-400);
  padding-left: 8px;
}

.summary-row.total-row {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1.5px solid var(--surface-border);
  font-size: 15px;
  font-weight: 800;
  color: var(--primary-900);
}

.summary-total-val {
  font-size: 18px;
  font-family: var(--font-mono);
  color: var(--accent-700);
}

/* --------------------------------------------------------------------------
   3. CHECKOUT WIZARD SCREENS
   -------------------------------------------------------------------------- */
.checkout-card {
  background: var(--surface-base);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-xs);
}

.checkout-card-header {
  font-size: 14px;
  font-weight: 800;
  color: var(--primary-900);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkout-card-desc {
  font-size: 11px;
  color: var(--primary-500);
  margin-bottom: 14px;
  line-height: 1.4;
}

/* Carrier Tier Cards */
.carrier-option-card {
  border: 1.5px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.carrier-option-card:hover {
  border-color: var(--accent-400);
  background: var(--primary-50);
}

.carrier-option-card.selected {
  border-color: var(--accent-600);
  background: var(--accent-50);
}

.carrier-radio {
  margin-top: 2px;
  accent-color: var(--accent-600);
}

.carrier-details {
  flex: 1;
}

.carrier-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--primary-900);
  display: flex;
  justify-content: space-between;
}

.carrier-price {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-700);
}

.carrier-desc {
  font-size: 11px;
  color: var(--primary-500);
  margin-top: 2px;
}

/* Payment Gateway Selector Cards */
.payment-option-card {
  border: 1.5px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.payment-option-card:hover {
  border-color: var(--accent-400);
  background: var(--primary-50);
}

.payment-option-card.selected {
  border-color: var(--accent-600);
  background: var(--accent-50);
}

.payment-gateway-icon {
  width: 38px;
  height: 26px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 12px;
  background: #ffffff;
  border: 1px solid var(--surface-border);
  flex-shrink: 0;
}

.payment-gateway-text {
  flex: 1;
}

.payment-gateway-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--primary-900);
}

.payment-gateway-sub {
  font-size: 10px;
  color: var(--primary-500);
}

/* --------------------------------------------------------------------------
   4. LEGAL PRE-CHECKOUT REVIEW § 312j BGB
   -------------------------------------------------------------------------- */
.review-summary-card {
  background: var(--surface-base);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 10px;
}

.review-card-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.review-card-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--primary-500);
  letter-spacing: 0.05em;
}

.review-edit-link {
  font-size: 11px;
  color: var(--accent-700);
  font-weight: 700;
  cursor: pointer;
}

.review-card-content {
  font-size: 12px;
  color: var(--primary-800);
  line-height: 1.4;
}

/* Legal Disclosures Box */
.legal-consent-box {
  background: var(--primary-50);
  border: 1px solid var(--primary-200);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 14px;
  font-size: 11px;
  color: var(--primary-700);
  line-height: 1.4;
}

.legal-consent-box a {
  color: var(--accent-700);
  font-weight: 700;
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   5. ORDER SUCCESS & PARCEL TRACKING
   -------------------------------------------------------------------------- */
.success-hero-card {
  text-align: center;
  padding: 24px 16px;
  background: var(--surface-base);
  border-radius: var(--radius-lg);
  border: 1px solid var(--accent-200);
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}

.success-icon-bubble {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--accent-50);
  color: var(--accent-600);
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  border: 2px solid var(--accent-300);
}

.success-order-ref {
  font-size: 16px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--primary-900);
  margin-bottom: 4px;
}

.success-date {
  font-size: 11px;
  color: var(--primary-500);
  margin-bottom: 14px;
}

/* 5-Stage DHL Fulfillment Timeline */
.tracking-stepper-card {
  background: var(--surface-base);
  border-radius: var(--radius-lg);
  border: 1px solid var(--surface-border);
  padding: 16px;
  margin-bottom: 14px;
}

.tracking-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--surface-border);
  padding-bottom: 10px;
}

.dhl-carrier-badge {
  background: #ffcc00;
  color: #d40511;
  font-size: 11px;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: -0.5px;
}

.tracking-timeline {
  display: flex;
  flex-direction: column;
  position: relative;
  padding-left: 38px;
  margin: 16px 0 10px;
}

.timeline-step {
  position: relative;
  padding-bottom: 22px;
}

.timeline-step:last-child {
  padding-bottom: 4px;
}

/* Connecting line segment */
.timeline-step::before {
  content: "";
  position: absolute;
  top: 24px;
  bottom: 0;
  left: -26px;
  width: 2px;
  background: var(--surface-border);
  transition: background 250ms ease;
}

.timeline-step.completed::before {
  background: var(--accent-500);
}

.timeline-step:last-child::before {
  display: none;
}

.timeline-dot {
  position: absolute;
  left: -37px;
  top: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--surface-border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: all 250ms ease;
  box-sizing: border-box;
  flex-shrink: 0;
}

.timeline-dot svg {
  display: block;
  flex-shrink: 0;
}

.timeline-step.completed .timeline-dot {
  background: var(--accent-600);
  border-color: var(--accent-600);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.25);
}

.timeline-step.active .timeline-dot {
  background: #ffffff;
  border-color: var(--accent-600);
  border-width: 2px;
  box-shadow: 0 0 0 3.5px rgba(16, 185, 129, 0.2);
}

.timeline-dot-inner {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-600);
  display: block;
  flex-shrink: 0;
}

.timeline-dot-pending {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-300);
  display: block;
  flex-shrink: 0;
}

.timeline-step-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--primary-900);
  line-height: 1.3;
  padding-top: 2px;
  margin-bottom: 3px;
  transition: color 200ms ease;
}

.timeline-step.active .timeline-step-title {
  color: var(--accent-700);
}

.timeline-step.completed .timeline-step-title {
  color: var(--primary-900);
}

.timeline-step-desc {
  font-size: 11.5px;
  color: var(--primary-500);
  line-height: 1.45;
}

/* --------------------------------------------------------------------------
   6. CUSTOMER ACCOUNT & PAST ORDERS
   -------------------------------------------------------------------------- */
.profile-user-card {
  background: var(--primary-900);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 14px;
}

.profile-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent-600);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.profile-user-details {
  flex: 1;
}

.profile-name {
  font-size: 16px;
  font-weight: 800;
}

.profile-email {
  font-size: 11px;
  color: var(--primary-300);
  margin-top: 1px;
}

.profile-tabs-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-bottom: 14px;
  background: var(--primary-100);
  padding: 3px;
  border-radius: var(--radius-md);
}

.profile-tab-btn {
  background: none;
  border: none;
  padding: 7px 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--primary-600);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.profile-tab-btn.active {
  background: #ffffff;
  color: var(--primary-900);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.past-order-card {
  background: var(--surface-base);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-xs);
}

.past-order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--surface-border);
  padding-bottom: 6px;
}

.past-order-ref {
  font-size: 13px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--primary-900);
}

.past-order-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

/* --------------------------------------------------------------------------
   7. INTERACTIVE PAYMENT MODAL SHEETS
   -------------------------------------------------------------------------- */
.payment-sheet-body {
  text-align: center;
  padding: 10px 0;
}

.payment-sheet-brand {
  font-size: 26px;
  margin-bottom: 8px;
}

.payment-sheet-amount {
  font-size: 24px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--primary-900);
  margin-bottom: 14px;
}

.biometric-ring {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 3px solid var(--accent-500);
  margin: 16px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  animation: pulseBiometric 1.5s infinite;
}

@keyframes pulseBiometric {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 12px rgba(16, 185, 129, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Official German PDF Invoice Layout */
.invoice-paper {
  background: #ffffff;
  padding: 14px;
  border: 1px solid var(--surface-border);
  border-radius: 6px;
  font-size: 11px;
  color: #334155;
  line-height: 1.4;
}

.invoice-header-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 2px solid var(--primary-900);
  padding-bottom: 10px;
  margin-bottom: 12px;
}

.invoice-brand {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary-900);
}

.invoice-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 10px;
}

.invoice-table th {
  background: var(--primary-100);
  color: var(--primary-800);
  text-align: left;
  padding: 6px 8px;
  border: 1px solid var(--surface-border);
}

.invoice-table td {
  padding: 6px 8px;
  border: 1px solid var(--surface-border);
}

/* ==========================================================================
   B2C CUSTOMER AUTHENTICATION (LOGIN & LOGOUT FLOW)
   ========================================================================== */
.b2c-auth-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 420px;
  margin: 0 auto;
  padding: 12px 6px 28px;
}

.b2c-auth-header {
  text-align: center;
  margin-bottom: 18px;
}

.b2c-auth-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  padding: 8px 18px;
  border-radius: 14px;
  border: 1.5px solid rgba(4, 120, 87, 0.18);
  margin: 0 auto 12px;
  box-shadow: 0 4px 16px rgba(4, 120, 87, 0.12), 0 1px 3px rgba(0,0,0,0.04);
}

.b2c-auth-logo img {
  height: 28px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
}

.b2c-auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 700;
  color: #047857;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
}

.b2c-auth-title {
  font-size: 21px;
  font-weight: 800;
  color: var(--primary-900);
  letter-spacing: -0.02em;
}

.b2c-auth-subtitle {
  font-size: 12.5px;
  color: var(--primary-500);
  margin-top: 4px;
  line-height: 1.4;
}

.b2c-auth-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 20px 18px;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  border: 1px solid var(--surface-border);
}

/* B2C Demo Personas */
.b2c-demo-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 12px;
  margin-bottom: 18px;
}

.b2c-demo-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #047857;
}

.b2c-personas-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.b2c-persona-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.b2c-persona-card:hover {
  border-color: #cbd5e1;
  background: #f1f5f9;
}

.b2c-persona-card.active {
  border-color: #059669;
  background: #f0fdf4;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.14);
}

.b2c-persona-indicator {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.b2c-persona-card.active .b2c-persona-indicator {
  border-color: #059669;
  background: #059669;
  box-shadow: inset 0 0 0 3px #ffffff;
}

.b2c-persona-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.b2c-persona-avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  background: #ecfdf5;
}

.b2c-persona-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.b2c-persona-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.b2c-persona-name {
  font-size: 12px;
  font-weight: 800;
  color: var(--primary-900);
}

.b2c-persona-tag {
  font-size: 9.5px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  background: #d1fae5;
  color: #047857;
}

.b2c-persona-tag.purple {
  background: #ede9fe;
  color: #6d28d9;
}

.b2c-persona-email {
  font-size: 10.5px;
  color: var(--primary-500);
}

.b2c-persona-1click-btn {
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 6px;
  background: #059669;
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.25);
}

.b2c-persona-1click-btn:hover {
  background: #047857;
}

/* Input Fields */
.b2c-form-group {
  margin-bottom: 14px;
}

.b2c-form-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-700);
}

.b2c-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  background: #f8fafc;
  transition: all 0.2s ease;
  overflow: hidden;
}

.b2c-input-wrap:focus-within {
  border-color: #059669;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.14);
}

.b2c-input-icon {
  padding: 0 10px 0 12px;
  font-size: 14px;
  color: #64748b;
  pointer-events: none;
  user-select: none;
}

.b2c-input-clean {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  padding: 10px 10px 10px 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-900);
  font-family: inherit;
  width: 100%;
}

.b2c-password-toggle {
  background: none;
  border: none;
  padding: 0 12px;
  cursor: pointer;
  font-size: 14px;
  color: #64748b;
  line-height: 1;
}

.b2c-auth-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 10px 0 16px;
  font-size: 11.5px;
}

.b2c-btn-submit {
  width: 100%;
  height: 46px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 18px rgba(5, 150, 105, 0.35);
  cursor: pointer;
  transition: all 0.2s ease;
}

.b2c-btn-submit:hover {
  box-shadow: 0 8px 22px rgba(5, 150, 105, 0.45);
  transform: translateY(-1px);
}

.b2c-btn-submit:active {
  transform: scale(0.98);
}

.b2c-btn-submit:disabled {
  opacity: 0.85;
  cursor: not-allowed;
  transform: none;
}

/* B2C Biometric Login & Divider */
.b2c-auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 14px 0 10px;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.b2c-auth-divider::before,
.b2c-auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #e2e8f0;
}

.b2c-auth-divider span {
  padding: 0 10px;
}

.b2c-btn-biometric {
  width: 100%;
  height: 42px;
  border-radius: 12px;
  border: 1.5px solid #cbd5e1;
  background: #f8fafc;
  color: var(--primary-800);
  font-size: 12.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.b2c-btn-biometric:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.b2c-btn-biometric:active {
  transform: scale(0.98);
}

.b2c-btn-spinner {
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  display: inline-block;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes inputShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-5px); }
  40%, 80% { transform: translateX(5px); }
}

.input-error-shake {
  animation: inputShake 0.4s ease;
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18) !important;
}

.b2c-btn-guest {
  width: 100%;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--surface-border);
  background: #f8fafc;
  color: var(--primary-700);
  font-size: 12.5px;
  font-weight: 700;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.b2c-btn-guest:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.b2c-register-card {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid var(--surface-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.b2c-register-card:hover {
  border-color: #a7f3d0;
  background: #f0fdf4;
}

/* Minimalist Demo Quick Test Pills */
.demo-quick-pills-row {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.demo-pill-btn {
  flex: 1;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--primary-700);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.15s ease;
}

.demo-pill-btn:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.demo-pill-btn.purple {
  background: #faf5ff;
  border-color: #e9d5ff;
  color: #7e22ce;
}

.demo-pill-btn.purple:hover {
  background: #f3e8ff;
  border-color: #d8b4fe;
}

/* ==========================================================================
   B2C CUSTOMER LOGOUT SCREEN
   ========================================================================== */
.b2c-logout-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 400px;
  margin: 0 auto;
  padding: 24px 12px 32px;
}

.b2c-logout-icon-wrap {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border: 3px solid #a7f3d0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(5, 150, 105, 0.15);
  animation: pulse-badge 2.4s infinite;
}

.b2c-logout-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary-900);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.b2c-logout-msg {
  font-size: 13px;
  color: var(--primary-600);
  line-height: 1.5;
  margin-bottom: 20px;
}

.b2c-logout-session-card {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  margin-bottom: 20px;
  text-align: left;
  box-shadow: var(--shadow-sm);
}

.b2c-logout-session-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--primary-500);
  margin-bottom: 6px;
}

.b2c-logout-session-user {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--primary-900);
  display: flex;
  align-items: center;
  gap: 8px;
}

.b2c-logout-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.b2c-logout-support {
  font-size: 11px;
  color: var(--primary-500);
  line-height: 1.4;
  margin-top: 18px;
  background: var(--primary-50);
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px dashed var(--surface-border);
}
