:root {
  --primary: #6366f1;
  --primary-light: #818cf8;
  --primary-dark: #4f46e5;
  --accent: #10b981;
  --accent-glow: rgba(16, 185, 129, 0.4);
  --warning: #f59e0b;
  --danger: #ef4444;
  --bg-dark: #0f172a;
  --bg-card: rgba(30, 41, 59, 0.9);
  --bg-card-border: rgba(255, 255, 255, 0.12);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --wa-green: #25d366;
  --wa-bg: #0b141a;
  --wa-bubble-in: #202c33;
  --wa-bubble-out: #005c4b;
  --panel-bg: #f8fafc;
  --panel-dark: #111827;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --shadow-lg: 0 20px 35px -10px rgba(0, 0, 0, 0.5), 0 0 25px rgba(99, 102, 241, 0.15);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body.flow-anim-page {
  font-family: var(--font-family);
  background: radial-gradient(circle at 50% 15%, #1e1e38 0%, #0d111c 80%);
  color: var(--text-main);
  min-height: 100vh;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Header & Controls */
.flow-header {
  text-align: center;
  max-width: 900px;
  margin-bottom: 20px;
}

.flow-title {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fff 30%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}

.flow-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Tabs */
.flow-tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 20px;
  background: rgba(15, 23, 42, 0.75);
  padding: 6px;
  border-radius: 999px;
  border: 1px solid var(--bg-card-border);
}

.flow-tab-btn {
  background: transparent;
  color: var(--text-muted);
  border: none;
  padding: 8px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.flow-tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.flow-tab-btn.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

/* Playback bar */
.flow-playback-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  padding: 10px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--bg-card-border);
  margin-bottom: 24px;
  width: 100%;
  max-width: 680px;
  backdrop-filter: blur(12px);
}

.flow-play-btn, .flow-action-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 6px 14px;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.flow-play-btn:hover, .flow-action-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.3);
}

.flow-progress-track {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
}

.flow-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 999px;
  transition: width 0.15s linear;
}

.flow-status-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: monospace;
  min-width: 180px;
  text-align: right;
}

/* Stage - Square proportion optimized for Instagram video */
.flow-stage {
  width: 100%;
  max-width: 680px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.flow-module {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(14px);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.flow-module.active-focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.25);
}

.flow-module-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 10px;
}

.flow-module-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(99, 102, 241, 0.15);
  color: var(--primary-light);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.flow-module-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

/* ------------------------------------------------------------- */
/* STREAM PAGE DASHBOARD MOCKUP (Modules 1 & 2)                  */
/* ------------------------------------------------------------- */
.stream-panel-container {
  background: #ffffff;
  color: #1e293b;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  border: 1px solid #cbd5e1;
}

.stream-panel-topbar {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}

.stream-top-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stream-title-text {
  font-weight: 800;
  font-size: 0.95rem;
  color: #0f172a;
}

.status-live-pill {
  background: #dcfce7;
  color: #15803d;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #bbf7d0;
}

.status-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #16a34a;
  animation: pulse-live 1.6s infinite;
}

.stream-top-actions {
  display: flex;
  gap: 8px;
}

.btn-mini {
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid #cbd5e1;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-mini.danger {
  background: #ef4444;
  color: #fff;
  border-color: #dc2626;
}

.btn-mini.phone {
  background: #eff6ff;
  color: #2563eb;
  border-color: #bfdbfe;
}

/* Stream Page Body: Left (Comments) & Right (Active Products + Order List) */
.stream-panel-body {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 420px;
  background: #fff;
}

@media (max-width: 580px) {
  .stream-panel-body {
    grid-template-columns: 1.05fr 0.95fr !important;
  }
  .stream-chat-header,
  .stream-chat-list,
  .stream-order-column {
    padding: 6px !important;
  }
  .stream-row-comment {
    font-size: 0.70rem !important;
    padding: 3px 4px !important;
    gap: 3px !important;
  }
  .user-avatar-tag {
    width: 18px !important;
    height: 18px !important;
    font-size: 0.6rem !important;
  }
  .comment-user-name,
  .comment-text-body {
    font-size: 0.70rem !important;
  }
  .active-product-card,
  .grouped-product-row {
    padding: 5px !important;
  }
  .prod-name,
  .grouped-prod-header {
    font-size: 0.70rem !important;
  }
  .prod-price {
    font-size: 0.75rem !important;
  }
}

/* Left: Comment Stream Column */
.stream-chat-column {
  border-right: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  background: #fbfcfe;
}

.stream-chat-header {
  padding: 10px 14px;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
}

.stream-chat-list {
  flex: 1;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}

.stream-row-comment {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  padding: 4px 6px;
  border-radius: 6px;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(8px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stream-row-comment.visible {
  opacity: 1;
  transform: translateY(0);
}

.stream-row-comment.highlight-buyer {
  background: #ecfdf5;
  border-left: 3px solid #10b981;
}

.stream-row-comment.full-green {
  background: #dcfce7 !important;
  border: 1px solid #86efac !important;
  border-radius: 6px;
}

.stream-row-comment.full-yellow {
  background: #fef9c3 !important;
  border: 1px solid #fde047 !important;
  border-radius: 6px;
}

.caricature-trigger-zone {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

.caricature-packet-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #fef08a 0%, #fde047 100%);
  color: #854d0e;
  border: 2px solid #ca8a04;
  border-radius: 999px;
  padding: 6px 14px;
  font-weight: 800;
  font-size: 0.82rem;
  box-shadow: 0 4px 14px rgba(234, 179, 8, 0.45);
  opacity: 0;
  transform: scale(0.7) translateY(4px);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.caricature-packet-badge.active {
  opacity: 1;
  transform: scale(1) translateY(0) rotate(-2deg);
  animation: cartoon-pop 1s infinite alternate ease-in-out;
}

@keyframes cartoon-pop {
  0% { transform: scale(1) rotate(-2deg); }
  100% { transform: scale(1.06) rotate(2deg); }
}

.user-avatar-tag {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #0284c7;
  color: #fff;
  font-weight: 700;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.user-avatar-tag.user-ay { background: #3b82f6; }
.user-avatar-tag.user-ad { background: #10b981; }
.user-avatar-tag.user-mk { background: #0d9488; }
.user-avatar-tag.user-mc { background: #d97706; }

.badge-social {
  display: none !important;
}

.badge-cart-icon,
.cart-badge-icon,
.buyer-cart-badge {
  display: none !important;
}

.comment-user-name {
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  flex-shrink: 0;
}

.comment-text-body {
  color: #334155;
}

.comment-code-chip {
  background: #10b981;
  color: #fff;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.02em;
}

.comment-register-chip {
  background: #dcfce7;
  color: #15803d;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
}

/* Chat Simulator at bottom left */
.stream-chat-simulator {
  border-top: 1px solid #e2e8f0;
  background: #fff;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sim-user-tag {
  font-size: 0.75rem;
  background: #f1f5f9;
  padding: 4px 8px;
  border-radius: 4px;
  color: #475569;
  font-weight: 600;
}

.sim-input-box {
  flex: 1;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 5px 10px;
  font-size: 0.8rem;
  color: #64748b;
}

/* Right: Active Products & Order List Column */
.stream-order-column {
  display: flex;
  flex-direction: column;
  background: #ffffff;
}

/* Search bar on top right */
.stream-search-bar {
  padding: 8px 12px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.stream-search-input {
  flex: 1;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 0.8rem;
  color: #64748b;
  background: #f8fafc;
}

.btn-catalog {
  background: #0284c7;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}

/* Active Products Section */
.active-products-box {
  padding: 10px 14px;
  border-bottom: 2px solid #f1f5f9;
}

.section-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.section-label {
  font-size: 0.72rem;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.active-product-card {
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 8px 10px;
  margin-bottom: 6px;
  background: #f8fafc;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.active-product-card.focused {
  border-color: #10b981;
  background: #ecfdf5;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

.prod-name {
  font-weight: 700;
  font-size: 0.85rem;
  color: #0f172a;
}

.prod-price {
  font-weight: 800;
  color: #10b981;
  font-size: 0.85rem;
}

.code-stock-pills {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

.code-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #0f172a;
  color: #fff;
}

.code-pill.active {
  background: #059669;
}

.code-pill .stock-count {
  background: rgba(255, 255, 255, 0.25);
  padding: 1px 4px;
  border-radius: 3px;
  font-size: 0.68rem;
}

/* Order List Section */
.order-list-box {
  padding: 10px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.order-tabs-mini {
  display: flex;
  border-bottom: 1px solid #e2e8f0;
  gap: 12px;
  margin-bottom: 10px;
}

.order-tab-mini {
  font-size: 0.8rem;
  font-weight: 700;
  color: #64748b;
  padding-bottom: 6px;
  cursor: pointer;
}

.order-tab-mini.active {
  color: #2563eb;
  border-bottom: 2px solid #2563eb;
}

.grouped-product-row {
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
  margin-bottom: 8px;
}

.grouped-prod-header {
  background: #f8fafc;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.8rem;
}

.grouped-badge-code {
  background: #2563eb;
  color: #fff;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.72rem;
}

.grouped-buyer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  border-bottom: 1px solid #f8fafc;
  font-size: 0.8rem;
  transition: all 0.4s ease;
  white-space: nowrap;
}

.grouped-buyer-row.new-entry {
  background: #dcfce7;
  animation: glow-green 1.5s ease-in-out;
}

.buyer-user-info {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: #1e293b;
  white-space: nowrap;
  flex-shrink: 0;
}

.buyer-user-info span {
  white-space: nowrap;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #1e293b;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  border-radius: 4px;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  line-height: 1;
}

.qty-control span {
  font-weight: 700;
  color: #0f172a;
}

/* Explicit Stock Reservation Notice */
.stock-reservation-notice {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}

/* ------------------------------------------------------------- */
/* MODULE 3: WhatsApp Registration Code Flow                     */
/* ------------------------------------------------------------- */
.reg-flow-grid {
  display: grid;
  grid-template-columns: 195px 1fr;
  gap: 14px;
  background: #090e19;
  border-radius: var(--radius-md);
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  align-items: stretch;
}

@media (max-width: 580px) {
  .reg-flow-grid {
    grid-template-columns: minmax(130px, 1fr) 1.2fr !important;
    gap: 8px !important;
    padding: 8px !important;
  }
  .reg-flow-grid .phone-mockup-wa {
    border-width: 3px !important;
    border-radius: 18px !important;
  }
}

/* Unregistered user & 2nd product rule styles */
.badge-unregistered {
  background: #fee2e2;
  color: #ef4444;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  border: 1px solid #fca5a5;
  display: inline-flex;
  align-items: center;
}

.comment-unregistered-tag {
  color: #ef4444;
  font-size: 0.70rem;
  font-weight: 700;
  background: #fef2f2;
  padding: 1px 5px;
  border-radius: 3px;
  border: 1px solid #fee2e2;
}

.unregistered-notice-pill {
  background: #fef2f2;
  border: 1px dashed #f87171;
  color: #b91c1c;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  display: none;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  animation: alert-shake 0.4s ease;
}

.unregistered-notice-pill.visible {
  display: flex;
}

.stream-payment-rule-alert {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 2px solid #f59e0b;
  color: #92400e;
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.35);
  margin-top: 10px;
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.stream-payment-rule-alert.active {
  opacity: 1;
  transform: scale(1);
  animation: alert-shake 0.5s ease;
}

.buyer-blocked-pill {
  background: #fee2e2;
  color: #b91c1c;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid #f87171;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 1px 3px rgba(239, 68, 68, 0.15);
  white-space: nowrap;
}

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

/* ------------------------------------------------------------- */
/* MODULE 4: WhatsApp Login & Storefront Confirmation            */
/* ------------------------------------------------------------- */
.wa-storefront-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 20px;
  background: #090e1a;
  border-radius: var(--radius-md);
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

@media (max-width: 580px) {
  .wa-storefront-wrapper {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    padding: 8px !important;
  }
  .wa-storefront-wrapper .phone-mockup-wa,
  .wa-storefront-wrapper .phone-mockup-store {
    border-width: 3px !important;
    border-radius: 18px !important;
  }
}

/* Realistic Phone Chassis (WhatsApp & Store) */
.phone-mockup-wa {
  background: var(--wa-bg);
  border: 6px solid #1e293b;
  border-radius: 28px;
  height: 460px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 16px 36px rgba(0, 0, 0, 0.65);
  position: relative;
  transition: all 0.4s ease;
}

.phone-notch-bar {
  background: #111b21;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px 0 3px 0;
  position: relative;
  z-index: 10;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.phone-island {
  width: 48px;
  height: 9px;
  background: #000;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 5px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.phone-camera-dot {
  width: 3.5px;
  height: 3.5px;
  border-radius: 50%;
  background: #22323d;
}

.phone-home-indicator {
  width: 55px;
  height: 3px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 3px;
  margin: 4px auto 5px auto;
  flex-shrink: 0;
}

.phone-mockup-wa.blurred {
  filter: blur(2px) brightness(0.6);
  opacity: 0.5;
  pointer-events: none;
  transform: scale(0.98);
}

.phone-mockup-wa .phone-header-wa {
  background: #1f2c34;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.phone-mockup-wa .wa-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--wa-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.phone-mockup-wa .wa-header-info h5 {
  font-size: 0.76rem;
  font-weight: 700;
  color: #e9edef;
  line-height: 1.2;
  margin: 0;
}

.phone-mockup-wa .wa-header-info span {
  font-size: 0.62rem;
  color: #8696a0;
}

.phone-mockup-wa .wa-messages-area {
  flex: 1;
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  overflow-y: auto;
  background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 12px 12px;
}

.phone-mockup-wa .wa-bubble {
  max-width: 92%;
  padding: 6px 8px;
  border-radius: 7px;
  font-size: 0.71rem;
  line-height: 1.32;
  position: relative;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.35s ease;
}

.wa-bubble.visible {
  opacity: 1;
  transform: translateY(0);
}

.wa-bubble.user {
  background: var(--wa-bubble-out);
  color: #e9edef;
  align-self: flex-end;
  border-top-right-radius: 2px;
}

.wa-bubble.bot {
  background: var(--wa-bubble-in);
  color: #d1d7db;
  align-self: flex-start;
  border-top-left-radius: 2px;
}

.wa-magic-link {
  display: inline-block;
  color: #53bdeb;
  text-decoration: underline;
  margin-top: 6px;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(83, 189, 235, 0.12);
  transition: all 0.2s ease;
}

.wa-magic-link.tap-effect {
  background: rgba(83, 189, 235, 0.35);
  box-shadow: 0 0 12px rgba(83, 189, 235, 0.6);
  transform: scale(0.98);
}

/* Storefront Phone Mockup */
.phone-mockup-store {
  background: #ffffff;
  color: #0f172a;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  height: 460px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
  position: relative;
  opacity: 0.15;
  filter: grayscale(0.8) blur(2px);
  transform: scale(0.95);
  pointer-events: none;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.phone-mockup-store.focused {
  opacity: 1;
  filter: none;
  pointer-events: auto;
  border-color: var(--accent);
  box-shadow: 0 0 30px var(--accent-glow), 0 20px 40px rgba(0, 0, 0, 0.7);
  transform: scale(1.02);
}

/* Storefront Header */
.store-header-bar {
  background: #ffffff;
  padding: 10px 14px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.store-brand-logo {
  font-weight: 800;
  font-size: 0.95rem;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 6px;
}

.store-brand-domain {
  color: var(--primary);
  font-size: 0.75rem;
  background: #eef2ff;
  padding: 2px 6px;
  border-radius: 4px;
}

.store-cart-icon-pill {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Storefront Body (E-Commerce Home / Cart View) */
.store-body-content {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #f8fafc;
}

.store-live-banner {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
}

/* Product Card */
.store-product-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 6px 8px;
  display: flex;
  gap: 8px;
  align-items: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.store-product-thumb {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  background: linear-gradient(135deg, #f43f5e, #fb923c);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  position: relative;
}

.thumb-gallery-badge {
  position: absolute;
  bottom: 2px;
  right: 2px;
  background: rgba(0,0,0,0.65);
  color: white;
  font-size: 0.55rem;
  padding: 0 3px;
  border-radius: 2px;
}

.store-product-meta h5 {
  font-size: 0.78rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.store-item-code-badge {
  display: inline-block;
  font-size: 0.64rem;
  font-weight: 800;
  color: #0f172a;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 1px 5px;
  border-radius: 3px;
  margin-top: 2px;
  width: fit-content;
}

.store-product-meta .meta-price {
  font-size: 0.8rem;
  font-weight: 800;
  font-size: 1.8rem;
  z-index: 30;
  opacity: 0;
  transform: translate(20px, 20px) rotate(-15deg);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.animated-finger-pointer.approaching {
  opacity: 1;
  transform: translate(0, 0) rotate(-15deg);
}

.animated-finger-pointer.clicking {
  opacity: 1;
  transform: translate(-4px, -4px) scale(0.85) rotate(-20deg);
}

/* Confirmation Success Modal */
.store-success-modal {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.96);
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.9);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.store-success-modal.show {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.success-check-big {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.2);
  border: 2px solid var(--accent);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin-bottom: 12px;
  animation: pop-bounce 0.5s ease;
}

/* Keyframes */
@keyframes pulse-live {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.9); }
}

@keyframes glow-green {
  0% { background: #86efac; }
  100% { background: #dcfce7; }
}

@keyframes pop-bounce {
  0% { transform: scale(0.5); opacity: 0; }
  80% { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}

/* ------------------------------------------------------------- */
/* MODULE 6: Active Product Selection & Stream Card Overlay     */
/* ------------------------------------------------------------- */
.active-prod-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 18px;
  background: #090e1a;
  border-radius: var(--radius-md);
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  align-items: stretch;
}


.panel-select-column {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  position: relative;
}

.panel-select-header {
  background: #0f172a;
  color: #fff;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.panel-select-header h4 {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.panel-select-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  background: #f8fafc;
  position: relative;
}

.active-selectable-card {
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 12px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
}

.active-selectable-card:hover {
  border-color: #cbd5e1;
  background: #f1f5f9;
}

.active-selectable-card.is-active-selected {
  border-color: #10b981;
  background: #ecfdf5;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.25);
}

.active-selectable-card .card-main-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.active-selectable-card .card-emoji-thumb {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.active-selectable-card.is-active-selected .card-emoji-thumb {
  background: linear-gradient(135deg, #a7f3d0, #6ee7b7);
}

.active-selectable-card .card-texts h5 {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: #0f172a;
}

.active-selectable-card .card-sub-info {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
}

.active-selectable-card .badge-code-select {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 3px;
  background: #0f172a;
  color: #fff;
}

.active-selectable-card.is-active-selected .badge-code-select {
  background: #059669;
}

.active-selectable-card .stock-tag {
  font-size: 0.68rem;
  color: #64748b;
  font-weight: 600;
}

.active-selectable-card .card-right-status {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.active-selectable-card .card-price-text {
  font-weight: 800;
  color: #0f172a;
  font-size: 0.85rem;
}

.active-selectable-card.is-active-selected .card-price-text {
  color: #059669;
}

.status-live-badge-card {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.active-selectable-card.is-active-selected .status-live-badge-card {
  background: #10b981;
  color: #ffffff;
  animation: pulse-live 1.8s infinite;
}

/* Phone Live Stream Mockup */
.phone-mockup-live {
  background: #0a0f1d;
  border: 6px solid #1e293b;
  border-radius: 28px;
  height: 460px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 16px 36px rgba(0, 0, 0, 0.65);
  position: relative;
}

.live-stream-viewport {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at 50% 35%, #2e1065 0%, #0f172a 75%, #020617 100%);
  overflow: hidden;
}

.live-stream-top-bar {
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  z-index: 20;
}

.live-channel-info {
  display: none !important;
}

.live-badge-pill {
  background: #e11d48;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  letter-spacing: 0.5px;
}

.live-dot-pulse {
  width: 5px;
  height: 5px;
  background: #fff;
  border-radius: 50%;
  animation: pulse-live 1s infinite;
}

.live-channel-info {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.45);
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(4px);
}

.channel-avatar {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  color: #fff;
  font-weight: 800;
}

.channel-name {
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
}

.channel-viewers {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.62rem;
}

/* TOP PRODUCT OVERLAY CARD ("kısa ama geniş kart") */
.live-top-product-card {
  position: absolute;
  top: 42px;
  left: 8px;
  right: 8px;
  z-index: 30;
  background: rgba(15, 23, 42, 0.94);
  border: 1.5px solid #10b981;
  border-radius: 10px;
  padding: 7px 10px;
  display: flex;
  align-items: center;
  gap: 9px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6), 0 0 18px rgba(16, 185, 129, 0.35);
  backdrop-filter: blur(14px);
  transform: translateY(-80px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.live-top-product-card.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.top-prod-thumb {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  background: linear-gradient(135deg, #f43f5e, #fb923c);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.top-prod-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.top-prod-title {
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.top-prod-code-line {
  display: flex;
  align-items: center;
}

.top-prod-badge-code {
  background: #10b981;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
  letter-spacing: 0.4px;
}

.top-prod-right-price {
  color: #34d399;
  font-weight: 800;
  font-size: 1rem;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Stream host graphic / background silhouette */
.stream-stage-visual {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.host-silhouette {
  width: 85px;
  height: 85px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.4) 0%, rgba(139, 92, 246, 0.05) 70%, transparent 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
  margin-bottom: 16px;
  box-shadow: 0 0 35px rgba(168, 85, 247, 0.3);
}

.host-caption-hint {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.5);
  background: rgba(0, 0, 0, 0.4);
  padding: 3px 8px;
  border-radius: 4px;
}

/* Stream Chat in bottom of phone */
.live-stream-comments {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 10;
  pointer-events: none;
}

.live-comment-bubble {
  background: rgba(0, 0, 0, 0.55);
  border-radius: 12px;
  padding: 3px 8px;
  font-size: 0.66rem;
  color: #fff;
  max-width: 85%;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.live-comment-bubble span.c-user {
  font-weight: 700;
  color: #38bdf8;
  margin-right: 4px;
}

/* ============================================================= */
/* MOBILE RESPONSIVE ADAPTATIONS (< 600px)                      */
/* ZERO-SCROLL COMPACT 2-COLUMN PRESENTATION                     */
/* ============================================================= */
@media (max-width: 600px) {
  html, body {
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    width: 100% !important;
    height: 100% !important;
    user-select: none;
    -webkit-user-select: none;
  }

  .flow-module {
    max-width: 100% !important;
    width: 100% !important;
    height: 335px !important;
    padding: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  /* ------------------------------------------------------------- */
  /* STREAM PANEL MOCKUPS (Modules 1, 2, 5)                       */
  /* ------------------------------------------------------------- */
  .stream-panel-container {
    height: 335px !important;
    display: flex !important;
    flex-direction: column !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  .stream-panel-topbar {
    padding: 4px 8px !important;
    font-size: 0.72rem !important;
    flex-shrink: 0 !important;
  }

  .stream-title-text {
    font-size: 0.75rem !important;
  }

  .status-live-pill {
    font-size: 0.6rem !important;
    padding: 2px 5px !important;
  }

  .stream-panel-body {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    flex: 1 !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  .stream-chat-column {
    border-right: 1px solid #e2e8f0 !important;
    border-bottom: none !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    min-height: 0 !important;
    background: #fbfcfe;
  }

  .stream-chat-header {
    padding: 4px 6px !important;
    font-size: 0.65rem !important;
    flex-shrink: 0 !important;
  }

  .stream-chat-list {
    padding: 4px 6px !important;
    gap: 3px !important;
    overflow: hidden !important;
    flex: 1 !important;
  }

  .stream-row-comment {
    font-size: 0.58rem !important;
    padding: 2px 4px !important;
    gap: 3px !important;
    border-radius: 4px !important;
  }

  .comment-user-name {
    font-size: 0.58rem !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
  }

  .comment-text-body {
    font-size: 0.58rem !important;
  }

  .comment-code-chip {
    font-size: 0.52rem !important;
    padding: 1px 4px !important;
    border-radius: 3px !important;
    font-weight: 800 !important;
  }

  .user-avatar-tag {
    width: 14px !important;
    height: 14px !important;
    font-size: 0.48rem !important;
    flex-shrink: 0 !important;
  }

  .badge-cart-icon,
  .cart-badge-icon,
  .buyer-cart-badge {
    display: none !important;
  }

  .comment-register-chip {
    font-size: 0.52rem !important;
    padding: 1px 3px !important;
  }

  .caricature-trigger-zone {
    padding: 3px 5px !important;
    flex-shrink: 0 !important;
  }

  .caricature-packet-badge {
    font-size: 0.52rem !important;
    padding: 2px 4px !important;
    gap: 2px !important;
  }

  .stream-order-column {
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    min-height: 0 !important;
    padding: 2px !important;
  }

  .active-products-box {
    padding: 3px 5px !important;
    flex-shrink: 0 !important;
  }

  .section-label-row {
    margin-bottom: 2px !important;
  }

  .section-label {
    font-size: 0.54rem !important;
    margin-bottom: 2px !important;
  }

  .active-product-card {
    padding: 2px 4px !important;
    margin-bottom: 2px !important;
    border-radius: 4px !important;
  }

  .prod-name {
    font-size: 0.6rem !important;
    line-height: 1.15 !important;
  }

  .prod-price {
    font-size: 0.6rem !important;
  }

  .code-stock-pills {
    margin-top: 1px !important;
    gap: 2px !important;
  }

  .code-pill {
    font-size: 0.5rem !important;
    padding: 1px 3px !important;
    font-weight: 800 !important;
  }

  .order-list-box {
    padding: 3px 5px !important;
    flex: 1 !important;
    overflow: hidden !important;
  }

  .grouped-product-row {
    margin-bottom: 3px !important;
    border-radius: 4px !important;
  }

  .grouped-prod-header {
    padding: 2px 4px !important;
    font-size: 0.56rem !important;
  }

  .grouped-badge-code {
    font-size: 0.5rem !important;
    padding: 1px 3px !important;
    font-weight: 800 !important;
    border-radius: 2px !important;
  }

  .grouped-buyer-row {
    padding: 2px 4px !important;
    font-size: 0.56rem !important;
  }

  .buyer-user-info span {
    font-size: 0.55rem !important;
  }

  .unregistered-notice-pill {
    font-size: 0.5rem !important;
    padding: 2px 3px !important;
    margin-top: 2px !important;
  }

  /* Specific optimization for Module 5: Payment Rule */
  [data-module="5"] .active-products-box {
    display: none !important;
  }

  [data-module="5"] .order-list-box {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 4px !important;
    padding: 4px !important;
  }

  [data-module="5"] .stream-chat-column {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
  }

  [data-module="5"] .stream-chat-list {
    flex: 0 0 auto !important;
    padding-bottom: 3px !important;
  }

  [data-module="5"] .stream-payment-rule-alert {
    display: flex !important;
    flex-shrink: 0 !important;
    margin: 4px 2px !important;
    padding: 4px 6px !important;
    font-size: 0.58rem !important;
    border-radius: 6px !important;
    gap: 4px !important;
    line-height: 1.2 !important;
  }

  [data-module="5"] .stream-payment-rule-alert span {
    font-size: 0.95rem !important;
  }

  .buyer-blocked-pill {
    font-size: 0.5rem !important;
    padding: 1px 3px !important;
    white-space: nowrap !important;
  }

  /* ------------------------------------------------------------- */
  /* MODULE 3: WhatsApp Registration Code Flow                     */
  /* ------------------------------------------------------------- */
  .reg-flow-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 6px !important;
    padding: 6px !important;
    height: 335px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    border-radius: 12px !important;
  }

  .reg-flow-grid .phone-mockup-wa {
    height: 100% !important;
    border-width: 3px !important;
    border-radius: 14px !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
  }

  .reg-flow-grid .phone-notch-bar {
    display: none !important;
  }

  .reg-flow-grid .phone-header-wa {
    padding: 4px 6px !important;
    flex-shrink: 0 !important;
  }

  .reg-flow-grid .wa-avatar {
    width: 20px !important;
    height: 20px !important;
    font-size: 0.72rem !important;
  }

  .reg-flow-grid .wa-header-info h5 {
    font-size: 0.68rem !important;
  }

  .reg-flow-grid .wa-header-info span {
    font-size: 0.55rem !important;
  }

  .reg-flow-grid .wa-messages-area {
    padding: 5px 4px !important;
    gap: 4px !important;
    overflow: hidden !important;
    flex: 1 !important;
  }

  .reg-flow-grid .wa-bubble {
    font-size: 0.64rem !important;
    padding: 4px 6px !important;
    line-height: 1.22 !important;
    border-radius: 5px !important;
    max-width: 95% !important;
  }

  .reg-flow-grid .phone-home-indicator {
    display: none !important;
  }

  .reg-flow-grid .stream-panel-container {
    height: 100% !important;
    border-radius: 12px !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    padding: 0 !important;
  }

  .reg-flow-grid .stream-panel-container > div:last-child {
    padding: 8px 6px !important;
    gap: 6px !important;
  }

  .reg-flow-grid .stream-panel-container .stream-row-comment {
    padding: 5px 6px !important;
    font-size: 0.62rem !important;
  }

  .reg-flow-grid .stream-panel-container .comment-register-chip {
    font-size: 0.58rem !important;
    padding: 1px 4px !important;
  }

  /* ------------------------------------------------------------- */
  /* MODULE 4: WhatsApp Storefront                                 */
  /* ------------------------------------------------------------- */
  .wa-storefront-wrapper {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 6px !important;
    padding: 6px !important;
    height: 335px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    border-radius: 12px !important;
  }

  .wa-storefront-wrapper .phone-mockup-wa {
    height: 100% !important;
    border-width: 3px !important;
    border-radius: 14px !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
  }

  .wa-storefront-wrapper .phone-mockup-wa .phone-notch-bar {
    display: none !important;
  }

  .wa-storefront-wrapper .phone-mockup-wa .phone-header-wa {
    padding: 4px 6px !important;
    flex-shrink: 0 !important;
  }

  .wa-storefront-wrapper .phone-mockup-wa .wa-messages-area {
    padding: 5px 4px !important;
    overflow: hidden !important;
    flex: 1 !important;
  }

  .wa-storefront-wrapper .phone-mockup-wa .wa-bubble {
    font-size: 0.62rem !important;
    padding: 4px 6px !important;
    line-height: 1.25 !important;
  }

  .wa-magic-link {
    font-size: 0.62rem !important;
    padding: 2px 4px !important;
  }

  .wa-storefront-wrapper .phone-mockup-store {
    height: 100% !important;
    border-width: 3px !important;
    border-radius: 14px !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
  }

  .store-header-bar {
    padding: 3px 6px !important;
    font-size: 0.65rem !important;
    flex-shrink: 0 !important;
  }

  .store-body-content {
    padding: 4px 5px !important;
    gap: 3px !important;
    overflow: hidden !important;
    flex: 1 !important;
  }

  .store-live-banner {
    padding: 2px 4px !important;
    font-size: 0.58rem !important;
  }

  .store-product-card {
    padding: 3px 5px !important;
    gap: 4px !important;
    margin-bottom: 2px !important;
  }

  .store-product-thumb {
    width: 22px !important;
    height: 22px !important;
    font-size: 0.8rem !important;
  }

  .thumb-gallery-badge {
    display: none !important;
  }

  .store-product-meta h5 {
    font-size: 0.64rem !important;
    line-height: 1.2 !important;
  }

  .meta-code {
    font-size: 0.55rem !important;
  }

  .meta-price {
    font-size: 0.65rem !important;
  }

  .store-cart-summary {
    padding: 3px 5px !important;
    flex-shrink: 0 !important;
  }

  .btn-confirm-cart {
    padding: 4px 6px !important;
    font-size: 0.65rem !important;
  }

  /* ------------------------------------------------------------- */
  /* MODULE 6: Active Product Selection                            */
  /* ------------------------------------------------------------- */
  .active-prod-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 6px !important;
    padding: 6px !important;
    height: 335px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    border-radius: 12px !important;
  }

  .panel-select-column {
    height: 100% !important;
    overflow: hidden !important;
    border-radius: 10px !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .panel-select-header {
    padding: 4px 6px !important;
    font-size: 0.68rem !important;
    flex-shrink: 0 !important;
  }

  .panel-select-body {
    padding: 4px 5px !important;
    gap: 3px !important;
    overflow: hidden !important;
    flex: 1 !important;
  }

  .panel-select-body .section-label-row {
    display: none !important;
  }

  .active-selectable-card {
    padding: 2px 4px !important;
    border-radius: 4px !important;
    margin-bottom: 2px !important;
  }

  .active-selectable-card .card-emoji-thumb {
    width: 18px !important;
    height: 18px !important;
    font-size: 0.7rem !important;
  }

  .active-selectable-card .card-texts h5 {
    font-size: 0.58rem !important;
  }

  .active-selectable-card .badge-code-select {
    font-size: 0.48rem !important;
    padding: 1px 3px !important;
    border-radius: 2px !important;
  }

  .active-selectable-card .stock-tag {
    font-size: 0.48rem !important;
  }

  .active-selectable-card .card-price-text {
    font-size: 0.62rem !important;
  }

  .status-live-badge-card {
    font-size: 0.48rem !important;
    padding: 1px 3px !important;
  }

  .active-prod-grid .phone-mockup-live {
    height: 100% !important;
    border-width: 3px !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    position: relative !important;
  }

  /* Phone Mockup Top Bar in Live Stream */
  .live-stream-top-bar {
    padding: 4px 6px !important;
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    z-index: 20 !important;
  }

  .live-channel-info {
    display: none !important;
  }

  /* Telefona Yansıyan Aktif Ürün Kartı (Küçük Ekrana Özel) */
  .live-top-product-card {
    top: 24px !important;
    left: 4px !important;
    right: 4px !important;
    padding: 3px 5px !important;
    gap: 5px !important;
    border-radius: 6px !important;
    border-width: 1px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  .live-top-product-card.open {
    transform: translateY(0) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  /* Ürün resmi (1/+, küçültülmüş: 20px) */
  .top-prod-thumb {
    width: 20px !important;
    height: 20px !important;
    font-size: 0.75rem !important;
    border-radius: 4px !important;
    flex-shrink: 0 !important;
  }

  .top-prod-details {
    flex: 1 !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 1px !important;
  }

  /* Ürün adı satırında tek olsun ki sığabilsin, fontu küçültüldü */
  .top-prod-title {
    font-size: 0.6rem !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.15 !important;
    color: #ffffff !important;
  }

  .top-prod-code-line {
    display: flex !important;
    align-items: center !important;
    margin-top: 1px !important;
  }

  /* Kodu yarım küçült */
  .top-prod-badge-code {
    font-size: 0.48rem !important;
    padding: 1px 3px !important;
    border-radius: 2px !important;
    font-weight: 800 !important;
    letter-spacing: 0.2px !important;
  }

  /* Fiyatı yarım küçült */
  .top-prod-right-price {
    font-size: 0.65rem !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }
}

