/* ==========================================================================
   2026 Free Samples Rewards Portal - 2-Column Mobile-First Stylesheet
   ========================================================================== */

:root {
  --primary-pink: #ec4899;
  --primary-hover: #db2777;
  --dark-pink: #be185d;
  --soft-pink: #fdf2f8;
  --pink-border: #fbcfe8;
  --pink-glow: rgba(236, 72, 153, 0.28);
  --bg-page: #fbf8fa;
  --bg-card: #ffffff;
  --text-main: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --success-green: #059669;
  --star-color: #f59e0b;
  --border-light: #f1f5f9;
  --radius-lg: 14px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 6px 18px rgba(236, 72, 153, 0.1);
  --shadow-float: 0 10px 25px rgba(236, 72, 153, 0.35);
}

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

html, body {
  background-color: var(--bg-page);
  color: var(--text-body);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ==========================================================================
   Slim Top Announcement Bar
   ========================================================================== */
.top-announcement {
  background: linear-gradient(90deg, #9d174d 0%, #ec4899 50%, #be185d 100%);
  color: #ffffff;
  font-size: 11.5px;
  padding: 6px 12px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(157, 23, 77, 0.25);
}

.announcement-content {
  max-width: 580px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.live-dot {
  width: 7px;
  height: 7px;
  background-color: #4ade80;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
  animation: pulse-green 2s infinite;
  flex-shrink: 0;
}

@keyframes pulse-green {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(74, 222, 128, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.announcement-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.timer-pill {
  background: rgba(0, 0, 0, 0.3);
  padding: 1px 7px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

/* ==========================================================================
   App Frame / Layout
   ========================================================================== */
.app-wrapper {
  max-width: 580px;
  margin: 0 auto;
  background: #ffffff;
  min-height: calc(100vh - 35px);
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 35px rgba(236, 72, 153, 0.08);
  padding-bottom: 70px; /* space for floating chat button */
}

.view-panel {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.hidden {
  display: none !important;
}

/* ==========================================================================
   Compact Hero Section (Immediate Product Visibility)
   ========================================================================== */
.hero-section.compact {
  padding: 12px 14px 8px;
  text-align: center;
  background: linear-gradient(180deg, #fdf2f8 0%, #ffffff 100%);
  border-bottom: 1px solid var(--pink-border);
}

.hero-badge-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 6px;
}

.mini-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 15px;
  background: #fff1f2;
  color: #e11d48;
  border: 1px solid #fda4af;
  letter-spacing: 0.3px;
}

.mini-badge.green {
  background: #ecfdf5;
  color: #059669;
  border-color: #a7f3d0;
}

.hero-title.compact {
  font-size: 19px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
  margin-bottom: 4px;
}

.highlight-pink {
  color: var(--primary-pink);
}

.hero-subtitle.compact {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0 auto;
  max-width: 440px;
}

/* ==========================================================================
   Compact Category Filter Tabs
   ========================================================================== */
.categories-bar.compact {
  display: flex;
  gap: 6px;
  padding: 8px 12px;
  overflow-x: auto;
  white-space: nowrap;
  background: #ffffff;
  border-bottom: 1px solid #f1f5f9;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.categories-bar.compact::-webkit-scrollbar {
  display: none;
}

.cat-pill {
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: var(--text-body);
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 18px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.cat-pill.active, .cat-pill:hover {
  background: var(--primary-pink);
  color: #ffffff;
  border-color: var(--primary-pink);
  box-shadow: 0 2px 8px var(--pink-glow);
}

/* ==========================================================================
   2-COLUMN PRODUCTS GRID (2 Products Per Row)
   ========================================================================== */
.products-grid-2col {
  padding: 10px 10px 16px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.product-card {
  background: #ffffff;
  border: 1.5px solid #f1f5f9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--pink-border);
}

.card-media {
  position: relative;
  width: 100%;
  height: 130px;
  background: #f8fafc;
  overflow: hidden;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .card-img {
  transform: scale(1.05);
}

.tag-badge-mini {
  position: absolute;
  top: 6px;
  left: 6px;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2.5px 7px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(225, 29, 72, 0.35);
  z-index: 2;
  letter-spacing: 0.3px;
}

.stock-pill-mini {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(3px);
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 2;
}

.dot-pulse {
  width: 5px;
  height: 5px;
  background-color: #ef4444;
  border-radius: 50%;
  animation: pulse-red 1.5s infinite;
}

@keyframes pulse-red {
  0% { transform: scale(0.9); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
  100% { transform: scale(0.9); opacity: 1; }
}

.card-content {
  padding: 8px 9px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

.brand-tag {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--primary-pink);
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prod-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 31px;
}

.pricing-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.old-price {
  font-size: 11px;
  color: #94a3b8;
  text-decoration: line-through;
  font-weight: 600;
}

.free-price {
  font-size: 10.5px;
  font-weight: 800;
  color: var(--success-green);
  background: #ecfdf5;
  padding: 1.5px 6px;
  border-radius: 4px;
  border: 1px solid #a7f3d0;
  letter-spacing: 0.2px;
}

.btn-claim-product {
  margin-top: 6px;
  width: 100%;
  background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 800;
  padding: 8px 10px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  box-shadow: 0 3px 10px var(--pink-glow);
  transition: all 0.2s ease;
}

.btn-claim-product:hover {
  background: linear-gradient(135deg, #f43f5e 0%, #be185d 100%);
  transform: translateY(-1px);
}

.btn-claim-product:active {
  transform: scale(0.97);
}

/* ==========================================================================
   FLOATING CHAT BUTTON (Circular Pink Bubble - Matching Reference)
   ========================================================================== */
.floating-chat-circle {
  position: fixed;
  bottom: 22px;
  right: 18px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(236, 72, 153, 0.45);
  z-index: 999;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-chat-circle:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 12px 28px rgba(236, 72, 153, 0.6);
}

.floating-chat-circle:active {
  transform: scale(0.95);
}

.chat-circle-ripple {
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  border-radius: 50%;
  background: rgba(236, 72, 153, 0.2);
  z-index: -1;
  animation: ripple-pulse 2.5s infinite;
}

@keyframes ripple-pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 0; }
  100% { transform: scale(0.95); opacity: 0; }
}

.chat-bubbles-svg {
  width: 28px;
  height: 28px;
  display: block;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.15));
}

.unread-red-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: #ef4444;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 900;
  min-width: 21px;
  height: 21px;
  border-radius: 11px;
  padding: 0 4px;
  border: 2px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  animation: pop-badge 0.3s ease;
}

@keyframes pop-badge {
  0% { transform: scale(0.7); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* ==========================================================================
   CHAT MODAL DRAWER / POPUP
   ========================================================================== */
.chat-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.chat-modal-window {
  width: 100%;
  max-width: 480px;
  background: #ffffff;
  border-radius: 20px 20px 0 0;
  display: flex;
  flex-direction: column;
  max-height: 80vh;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.2);
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.chat-modal-header {
  padding: 14px 16px;
  background: linear-gradient(135deg, #fdf2f8 0%, #ffffff 100%);
  border-bottom: 1.5px solid var(--pink-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-live-pulse {
  width: 9px;
  height: 9px;
  background-color: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: pulse-green 1.8s infinite;
  flex-shrink: 0;
}

.chat-title-wrap h3 {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.online-indicator {
  font-size: 11px;
  color: #059669;
  font-weight: 600;
  display: block;
}

.btn-close-chat {
  background: #f1f5f9;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 800;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-close-chat:hover {
  background: #e2e8f0;
  color: var(--text-main);
}

.chat-messages {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  flex: 1;
  background: #fbf8fa;
}

.chat-msg {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #ffffff;
  font-weight: 800;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.msg-bubble {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 12px;
  line-height: 1.45;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
  flex: 1;
}

.msg-bubble.highlight {
  background: #fff8fc;
  border-color: #fbcfe8;
}

.msg-author {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
  font-size: 11px;
  flex-wrap: wrap;
}

.verified-tester-badge {
  font-size: 9px;
  font-weight: 800;
  color: #059669;
  background: #ecfdf5;
  padding: 1px 6px;
  border-radius: 8px;
  border: 1px solid #a7f3d0;
}

.verified-tester-badge.mod-badge {
  color: #7c3aed;
  background: #f5f3ff;
  border-color: #ddd6fe;
}

.msg-time {
  color: #94a3b8;
  font-size: 10px;
  margin-left: auto;
}

.msg-text {
  color: var(--text-body);
}

.chat-input-bar {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  background: #ffffff;
  border-top: 1px solid #f1f5f9;
}

.chat-input-bar input {
  flex: 1;
  background: #f8fafc;
  border: 1.5px solid var(--pink-border);
  border-radius: 20px;
  padding: 9px 14px;
  font-size: 12.5px;
  font-family: var(--font-sans);
  color: var(--text-main);
  outline: none;
}

.chat-input-bar input:focus {
  border-color: var(--primary-pink);
  background: #ffffff;
  box-shadow: 0 0 0 3px var(--pink-glow);
}

.btn-chat-send {
  background: var(--primary-pink);
  color: #ffffff;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 12.5px;
  padding: 8px 18px;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-chat-send:hover {
  background: var(--dark-pink);
}

.chat-notice {
  padding: 4px 16px 10px;
  font-size: 11px;
  color: #059669;
  font-weight: 600;
  text-align: center;
  background: #ffffff;
}

/* ==========================================================================
   VIEW 2: VERIFICATION & CLAIM SCREEN (Compact for Above-The-Fold Offers)
   ========================================================================== */
.selected-product-box {
  margin: 10px 12px 6px;
  background: #ffffff;
  border: 1.5px solid var(--pink-border);
  border-radius: var(--radius-md);
  padding: 8px 10px;
  display: flex;
  gap: 10px;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.sel-prod-img-wrap {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: #f8fafc;
}

.sel-prod-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sel-prod-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.reserved-status-pill {
  font-size: 9px;
  font-weight: 800;
  color: var(--dark-pink);
  background: var(--soft-pink);
  padding: 2px 7px;
  border-radius: 8px;
  display: inline-block;
  align-self: flex-start;
  letter-spacing: 0.3px;
}

.sel-prod-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
}

.sel-prod-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
}

.sel-price-free {
  color: var(--success-green);
  font-weight: 800;
}

.sel-shipping {
  color: var(--text-muted);
}

.instructions-card {
  margin: 6px 12px 10px;
  background: #ffffff;
  border: 1.5px solid #fbcfe8;
  border-radius: var(--radius-lg);
  padding: 12px 12px;
  box-shadow: var(--shadow-sm);
}

.card-heading {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
  text-align: center;
}

.steps-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.step-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #fff8fc;
  padding: 7px 10px;
  border-radius: 10px;
  border: 1px solid #fce7f3;
}

.step-badge {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
  color: #ffffff;
  font-weight: 900;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px var(--pink-glow);
}

.step-desc {
  font-size: 12.5px;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.35;
  padding-top: 2px;
}

.offers-section {
  margin: 0 12px 14px;
  background: transparent;
  border: none;
  padding: 0;
}

.offers-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.offer-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border: 1.5px solid var(--pink-border);
  padding: 12px 14px;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-main);
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.offer-card:hover {
  background: #fdf2f8;
  border-color: var(--primary-pink);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.offer-media {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.offer-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.offer-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.offer-anchor {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--dark-pink);
  line-height: 1.3;
}

.offer-conversion {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 500;
}

.btn-offer-start {
  background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 800;
  padding: 9px 15px;
  border-radius: 20px;
  box-shadow: 0 3px 10px var(--pink-glow);
  flex-shrink: 0;
  text-align: center;
  letter-spacing: 0.3px;
  transition: all 0.2s ease;
}

.offer-card:hover .btn-offer-start {
  background: linear-gradient(135deg, #f43f5e 0%, #be185d 100%);
  transform: scale(1.05);
}

.loading-state {
  text-align: center;
  padding: 20px;
  color: var(--text-muted);
  font-size: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.spinner {
  width: 24px;
  height: 24px;
  border: 2.5px solid #fbcfe8;
  border-top-color: var(--primary-pink);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.back-link-wrapper {
  text-align: center;
  margin: 8px 0 16px;
}

.btn-back {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

/* ==========================================================================
   Page Footer
   ========================================================================== */
.page-footer {
  margin-top: auto;
  background: #f8fafc;
  border-top: 1px solid #f1f5f9;
  padding: 16px 12px;
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
}

.footer-badges {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--text-body);
}
