@import url('https://use.typekit.net/zrr1iji.css');

:root {
  --color-forest-green: #2F4F4F;
  --color-forest-green-dark: #1A1A1A;
  --color-honey-oak: #DDA15E;
  --color-honey-oak-light: rgba(221, 161, 94, 0.2);
  --color-vintage-cream: #FDFBF7;
  --color-carpet-gray: #847F7D;
  --color-quantum-purple: #8A2BE2;
  --color-quantum-purple-light: rgba(138, 43, 226, 0.15);
  --color-rich-black: #1A1A1A;
  --color-card-bg: rgba(47, 79, 79, 0.08); /* 8% Forest Green opacity for subtle card overlays */
  --color-text-primary: #1A1A1A;
  --color-text-secondary: #847F7D;
  --font-primary: 'itc-avant-garde-gothic-pro', 'acumin-pro', system-ui, -apple-system, sans-serif;
  --border-radius-lg: 16px;
  --border-radius-md: 8px;
  --box-shadow-premium: 0 8px 32px 0 rgba(26, 26, 26, 0.08);
  --backdrop-blur: blur(8px);
}

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

body {
  font-family: var(--font-primary);
  background-color: var(--color-vintage-cream); /* Brand Heritage Palette Cream */
  color: var(--color-rich-black); /* Brand Heritage Palette Rich Black */
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

/* loading screen styling */
#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #2F4F4F;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.5s ease;
}

#loading-screen.fade-out {
  opacity: 0;
  transform: translateY(-100%);
  pointer-events: none;
}

.logo-container {
  text-align: center;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeInLogo 1.2s ease forwards 0.3s;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 2px;
  margin-top: 10px;
  color: var(--color-forest-green-dark);
}

.logo-subtext {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--color-quantum-purple);
  text-transform: uppercase;
  margin-top: 5px;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(138, 43, 226, 0.1);
  border-left-color: var(--color-quantum-purple);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* app container structure */
#app-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

header {
  position: relative;
  padding: 15px 20px;
  height: 60px;
  background-color: var(--color-forest-green);
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.header-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-align: left;
}

.header-divider {
  height: 4px;
  background-color: var(--color-honey-oak);
  position: relative;
  z-index: 10;
}

.floating-logo-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 76px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
}

@media (max-width: 600px) {
  .floating-logo-badge {
    width: 45px;
    height: 45px;
    top: 50%;
    transform: translate(-50%, -50%);
  }
  main {
    padding-top: 32px !important;
  }
}

.floating-logo-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sub-header-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  background-color: #ffffff;
  padding: 30px 10px 10px 10px;
  border-bottom: 1px solid rgba(221, 161, 94, 0.3);
  font-family: var(--font-primary);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.5px;
}

.sub-nav-link {
  color: var(--color-honey-oak);
  text-decoration: none;
}

.sub-nav-link:hover {
  color: #c58c4e;
}

.sub-nav-separator {
  color: var(--color-honey-oak);
  opacity: 0.5;
}

/* audio player widget */
.audio-widget {
  position: absolute;
  right: 15px;
  background: rgba(255, 255, 255, 0.15);
  padding: 4px 10px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.audio-btn {
  background: var(--color-honey-oak);
  border: none;
  color: #121212;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: bold;
  font-size: 0.75rem;
}

.audio-track-name {
  font-size: 0.7rem;
  font-weight: 600;
  color: #ffffff;
}

main {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  padding-bottom: 90px;
  background-color: #f4f6f5;
  position: relative;
}

/* navigation footer menu */
nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #EDDFFB; /* Solid 13% Quantum Purple over solid White background (no transparency) */
  border-top: 1px solid rgba(138, 43, 226, 0.2);
  display: flex;
  justify-content: space-around;
  padding: 8px 0;
  z-index: 1000;
  box-shadow: 0 -4px 20px rgba(138, 43, 226, 0.08);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--color-carpet-gray);
  text-decoration: none;
  font-size: 0.65rem;
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font-primary);
  gap: 4px;
  transition: color 0.2s ease;
  flex: 1;
  text-align: center;
  padding: 4px 0;
}

.nav-item.active {
  color: var(--color-quantum-purple);
  font-weight: 800;
}

.nav-icon {
  background-color: var(--color-vintage-cream) !important;
  border-radius: 50% !important;
  width: 38px !important;
  height: 38px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 2px 5px rgba(26, 26, 26, 0.12) !important;
  transition: all 0.2s ease-in-out !important;
  padding: 8px !important;
  box-sizing: border-box !important;
  color: var(--color-carpet-gray) !important;
}

.nav-item.active .nav-icon {
  color: var(--color-quantum-purple) !important;
  box-shadow: 0 3px 8px rgba(138, 43, 226, 0.22) !important;
  transform: translateY(-2px);
}

/* Floating Action Button (FAB) */
.fab-btn {
  position: fixed;
  bottom: 80px;
  right: 20px;
  background-color: var(--color-quantum-purple);
  color: #ffffff;
  border: none;
  border-radius: 30px;
  padding: 12px 20px;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 4px 15px rgba(138, 43, 226, 0.3);
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  z-index: 900;
  overflow: hidden;
  white-space: nowrap;
  max-width: 200px;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.fab-btn span {
  transition: opacity 0.3s ease, max-width 0.3s ease;
  opacity: 1;
  max-width: 150px;
  display: inline-block;
  vertical-align: middle;
}

.fab-btn.collapsed {
  max-width: 48px;
  width: 48px;
  height: 48px;
  padding: 12px;
  gap: 0;
  border-radius: 50%;
}

@media (max-width: 600px) {
  .fab-btn.collapsed {
    right: -12px; /* slide to the side so only the plus sign shows */
  }
}

.fab-btn.collapsed span {
  opacity: 0;
  max-width: 0;
  margin: 0;
}

.fab-btn:hover {
  background-color: var(--color-quantum-purple);
  opacity: 0.95;
  transform: scale(1.05);
}

.fab-btn.collapsed:hover {
  max-width: 200px;
  width: auto;
  height: auto;
  border-radius: 30px;
  padding: 12px 20px;
  gap: 8px;
  right: 20px;
}

.fab-btn.collapsed:hover span {
  opacity: 1;
  max-width: 150px;
}

/* Buttons */
.btn-primary {
  background-color: var(--color-quantum-purple); /* Quantum Purple */
  color: #ffffff;
  border: none;
  padding: 12px 24px;
  border-radius: var(--border-radius-md);
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  width: 100%;
  margin-top: 15px;
  transition: background-color 0.2s ease;
}

.btn-primary:hover {
  background-color: var(--color-quantum-purple);
  opacity: 0.9;
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--color-honey-oak);
  color: var(--color-honey-oak);
  padding: 8px 16px;
  border-radius: var(--border-radius-md);
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: var(--color-honey-oak);
  color: var(--color-rich-black);
}

/* business cards and display layout styling */
.directory-grid {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-bottom: 30px;
}

.business-card {
  background: #ffffff;
  border-radius: var(--border-radius-lg);
  border: 1px solid #e0e0e0;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  padding: 20px;
  transition: transform 0.3s ease;
}

.business-card:hover {
  transform: translateY(-2px);
}

.biz-name {
  font-weight: 800;
  color: var(--color-forest-green-dark);
}

.biz-cat {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-honey-oak);
  letter-spacing: 0.5px;
}

.biz-desc {
  font-size: 0.9rem;
  color: #4a5568;
  line-height: 1.5;
  margin-top: 10px;
  margin-bottom: 15px;
}

.biz-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #edf2f7;
  padding-top: 15px;
}

.vouch-badge {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-forest-green);
  background: rgba(43, 76, 76, 0.1);
  padding: 6px 12px;
  border-radius: 20px;
}

.card-details-btn {
  background-color: var(--color-quantum-purple); /* Quantum Purple */
  color: #ffffff;
  border: none;
  border-radius: var(--border-radius-md);
  padding: 12px;
  width: 100%;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  margin-top: 15px;
  transition: background-color 0.2s ease;
  text-align: center;
  display: block;
  text-decoration: none;
}

.card-details-btn:hover {
  background-color: var(--color-quantum-purple);
  opacity: 0.9;
}

/* registry styles */
.registry-card {
  background: rgba(239, 71, 111, 0.08);
  border: 1px solid rgba(239, 71, 111, 0.3);
  border-radius: var(--border-radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 15px;
}

.registry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.registry-title {
  color: #ef476f;
  font-weight: 700;
  font-size: 1.15rem;
}

.registry-meta {
  font-size: 0.8rem;
  background-color: rgba(239, 71, 111, 0.15);
  color: #ef476f;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
}

.registry-reason {
  font-size: 0.9rem;
  color: #4a5568;
  line-height: 1.4;
  border-top: 1px solid rgba(239, 71, 111, 0.2);
  padding-top: 8px;
  margin-top: 5px;
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.7);
  backdrop-filter: var(--backdrop-blur);
  z-index: 20000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-content {
  background-color: #ffffff;
  border: 2px solid var(--color-honey-oak);
  border-radius: var(--border-radius-lg);
  max-width: 400px;
  width: 100%;
  padding: 30px;
  text-align: center;
  box-shadow: var(--box-shadow-premium);
  position: relative;
  animation: modalScaleIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  color: #6c757d;
  font-size: 1.2rem;
  cursor: pointer;
}

/* inputs */
.search-container {
  display: flex;
  gap: 10px;
  margin-top: 96px; /* Preserve vertical spacing now that Community Wealth Ledger ticker is removed */
  margin-bottom: 20px;
}

.search-input {
  flex: 1;
  background-color: rgba(138, 43, 226, 0.04);
  border: 1px solid rgba(138, 43, 226, 0.2);
  padding: 12px 16px;
  border-radius: var(--border-radius-md);
  color: #1e2b25;
  font-family: var(--font-primary);
  font-size: 1rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  width: 100%;
  transition: all 0.2s ease;
}

.search-input:focus {
  outline: none;
  background-color: #ffffff;
  border-color: var(--color-honey-oak);
  box-shadow: 0 0 0 2px rgba(221, 161, 94, 0.15);
}

.category-tags {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 15px;
  margin-bottom: 15px;
  scrollbar-width: none;
}

.category-tags::-webkit-scrollbar {
  display: none;
}

.tag-btn {
  background-color: #ffffff;
  border: 1px solid #ddd;
  color: #6c757d;
  padding: 6px 14px;
  border-radius: 20px;
  white-space: nowrap;
  cursor: pointer;
  font-family: var(--font-primary);
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.tag-btn.active, .tag-btn:hover {
  background-color: var(--color-forest-green);
  color: #ffffff;
  border-color: var(--color-forest-green);
  font-weight: 600;
}

/* Animations */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes fadeInLogo {
  to { opacity: 1; transform: scale(1.05); }
}

@keyframes modalScaleIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.tag-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-honey-oak);
  background: rgba(221, 161, 94, 0.12); /* Honey Oak at 12% opacity */
  padding: 4px 10px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-right: 6px;
  border: 1px solid rgba(221, 161, 94, 0.2);
}

/* 3D Map Verification Overlays */
.warning-card {
  background: var(--color-vintage-cream) !important;
  color: var(--color-forest-green-dark) !important;
  border-top: 5px solid #e53e3e !important; /* Warning Red */
  border-radius: var(--border-radius-md);
  padding: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.25);
  font-family: var(--font-primary), sans-serif;
}
.warning-card h3 {
  margin: 0 0 5px 0;
  font-size: 0.9rem;
  font-weight: 800;
  color: #e53e3e;
}
.warning-card p {
  margin: 4px 0;
  font-size: 0.78rem;
  line-height: 1.3;
}

.verified-card {
  background: var(--color-vintage-cream) !important;
  color: var(--color-forest-green-dark) !important;
  border-top: 5px solid #38a169 !important; /* Success Green */
  border-radius: var(--border-radius-md);
  padding: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.25);
  font-family: var(--font-primary), sans-serif;
}
.verified-card h3 {
  margin: 0 0 5px 0;
  font-size: 0.9rem;
  font-weight: 800;
  color: #38a169;
}
.verified-card p {
  margin: 4px 0;
  font-size: 0.78rem;
  line-height: 1.3;
}

/* Top Ad Banner Layouts */
.top-ad-banner {
  background-color: var(--color-vintage-cream);
  border: 2px dashed rgba(221, 161, 94, 0.5);
  border-radius: var(--border-radius-md);
  margin-bottom: 20px;
  margin-top: 15px; /* Added room for protruding pill */
  position: relative;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px 15px 12px 15px; /* Added top padding to prevent title overlaps */
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
  animation: borderDance 3s infinite ease-in-out;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.top-ad-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(138, 43, 226, 0.1);
}
.top-ad-banner img {
  height: 40px;
  object-fit: contain;
}
.top-ad-banner .ad-label {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%); /* Centers the pill protruding at the top border */
  font-size: 0.65rem;
  background: var(--color-quantum-purple);
  color: white;
  padding: 3px 12px;
  border-radius: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(138, 43, 226, 0.25);
}

@keyframes borderDance {
  0% { border-color: rgba(221, 161, 94, 0.5); }
  50% { border-color: rgba(138, 43, 226, 0.7); }
  100% { border-color: rgba(221, 161, 94, 0.5); }
}

/* Parallax Reveal Split-Content Ads */
.parallax-ad-container {
  position: relative;
  height: 280px;
  margin: 25px 0;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 6px 16px rgba(0,0,0,0.02);
  cursor: pointer;
}
.parallax-ad-window {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  clip-path: inset(0 0 0 0); /* clipping mask for scroll reveal */
  -webkit-clip-path: inset(0 0 0 0);
}
.parallax-ad-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  will-change: transform;
  object-fit: cover;
  pointer-events: none;
  z-index: 1;
}
.parallax-ad-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(transparent, rgba(26,26,26,0.9));
  padding: 20px 25px;
  box-sizing: border-box;
  z-index: 2;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.parallax-ad-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.parallax-ad-sub {
  font-size: 0.75rem;
  color: var(--color-honey-oak);
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.parallax-ad-tag {
  background: var(--color-quantum-purple);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== DISCOVER CARD STACK ===== */
.discover-section {
  margin-bottom: 25px;
}
.discover-awareness {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(47, 79, 79, 0.06);
  border: 1px solid rgba(47, 79, 79, 0.1);
  border-radius: var(--border-radius-md);
  margin-bottom: 18px;
}
.discover-awareness-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-forest-green-dark);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.discover-awareness-count {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-honey-oak);
  font-family: var(--font-primary);
}
.discover-stack-container {
  position: relative;
  width: 100%;
  height: 340px;
  perspective: 600px;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.discover-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  border: 1.5px solid rgba(221, 161, 94, 0.12);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  will-change: transform, opacity;
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.35s ease;
  pointer-events: none;
}
.discover-card.active {
  pointer-events: auto;
  z-index: 3;
  cursor: grab;
}
.discover-card.active:active {
  cursor: grabbing;
}
.discover-card.behind-1 {
  z-index: 2;
  transform: translateY(10px) scale(0.96);
  opacity: 0.7;
}
.discover-card.behind-2 {
  z-index: 1;
  transform: translateY(20px) scale(0.92);
  opacity: 0.4;
}
.discover-card.swiping-out-left {
  transition: transform 0.4s cubic-bezier(0.55, 0, 0.1, 1), opacity 0.4s ease;
  transform: translateX(-120%) rotate(-8deg);
  opacity: 0;
}
.discover-card.swiping-out-right {
  transition: transform 0.4s cubic-bezier(0.55, 0, 0.1, 1), opacity 0.4s ease;
  transform: translateX(120%) rotate(8deg);
  opacity: 0;
}
.discover-card-inner {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.discover-card-header {
  display: flex;
  gap: 14px;
  align-items: center;
}
.discover-card-logo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--color-forest-green);
  padding: 3px;
  flex-shrink: 0;
}
.discover-card-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.discover-card-name {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--color-forest-green-dark);
  font-family: var(--font-primary);
  line-height: 1.2;
}
.discover-card-meta {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.discover-card-desc {
  font-size: 0.88rem;
  color: #4a5568;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.discover-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  border-top: 1px solid rgba(221, 161, 94, 0.1);
  background: rgba(221, 161, 94, 0.03);
}
.discover-card-location {
  font-size: 0.78rem;
  color: var(--color-text-secondary);
  font-weight: 600;
}
.discover-card-cta {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--color-honey-oak);
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  min-height: 48px;
  min-width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Dwell progress bar */
.discover-dwell-bar {
  height: 3px;
  background: rgba(221, 161, 94, 0.15);
  width: 100%;
  overflow: hidden;
}
.discover-dwell-fill {
  height: 100%;
  width: 0%;
  background: var(--color-honey-oak);
  transition: width 0.1s linear;
}
.discover-card.ready .discover-dwell-fill {
  background: var(--color-quantum-purple);
}
.discover-card.ready {
  border-color: rgba(138, 43, 226, 0.25);
  box-shadow: 0 4px 20px rgba(138, 43, 226, 0.08);
}
/* Hint message */
.discover-hint {
  text-align: center;
  font-size: 0.72rem;
  color: var(--color-carpet-gray);
  margin-top: 12px;
  font-weight: 600;
  min-height: 18px;
}
.discover-milestone {
  text-align: center;
  font-size: 0.78rem;
  color: var(--color-forest-green);
  font-weight: 700;
  padding: 8px 12px;
  background: rgba(47, 79, 79, 0.06);
  border-radius: var(--border-radius-md);
  margin-top: 8px;
  animation: fadeInLogo 0.5s ease forwards;
}
.discover-session-cap {
  text-align: center;
  padding: 30px 20px;
  color: var(--color-forest-green-dark);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.5;
}

/* Multi-Purpose Scanner Guides Overlay */
.scanner-guide-overlay {
  position: absolute;
  top: 10%;
  left: 10%;
  width: 80%;
  height: 80%;
  border: 2px dashed rgba(221, 161, 94, 0.4);
  pointer-events: none;
  box-sizing: border-box;
  transition: all 0.4s ease;
}

/* Handshake mode: Centered square box */
.scanner-guide-handshake .scanner-guide-overlay {
  top: 25%;
  left: 25%;
  width: 50%;
  height: 50%;
  border-radius: var(--border-radius-md);
  border-color: var(--color-quantum-purple);
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.4);
}

/* Receipt Mode: Portrait tall box */
.scanner-guide-receipt .scanner-guide-overlay {
  top: 10%;
  left: 20%;
  width: 60%;
  height: 80%;
  border-color: var(--color-honey-oak);
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.4);
}

/* Business Card Mode: Landscape wider box */
.scanner-guide-card .scanner-guide-overlay {
  top: 30%;
  left: 10%;
  width: 80%;
  height: 40%;
  border-color: #38a169;
  border-radius: var(--border-radius-sm);
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.4);
}

/* Social mode: QR scanning target */
.scanner-guide-social .scanner-guide-overlay {
  top: 20%;
  left: 20%;
  width: 60%;
  height: 60%;
  border-color: #8224e3;
  border-radius: 50%;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.4);
}

/* AI content badge tag */
.tag-badge.ai-content {
  background: rgba(138, 43, 226, 0.08) !important;
  color: var(--color-quantum-purple) !important;
  border: 1px solid rgba(138, 43, 226, 0.15) !important;
  text-transform: uppercase;
}

/* Profile Avatar Customizations */
.profile-avatar-uploader {
  transition: transform 0.3s ease;
}
.profile-avatar-uploader:hover {
  transform: scale(1.03);
}

/* SMS Mobile Verification status elements */
.sms-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(47, 79, 79, 0.08);
  color: var(--color-forest-green);
  border: 1px solid rgba(47, 79, 79, 0.15);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
}

/* Launch Countdown Timer Widget (Carpet Gray, Vintage Cream, Black) */
.launch-countdown-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 30px auto 25px auto;
  font-family: var(--font-primary);
  user-select: none;
  z-index: 5;
}
.countdown-digits-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}
.countdown-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.flip-card {
  background: var(--color-rich-black);
  border-radius: var(--border-radius-md);
  width: 54px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--color-vintage-cream);
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  border: 1.5px solid var(--color-carpet-gray);
  perspective: 1000px;
}
/* Horizontal flip crease divider line */
.flip-card::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1.5px;
  background: rgba(132, 127, 125, 0.45);
  z-index: 2;
}
.countdown-label {
  font-size: 0.62rem;
  color: var(--color-carpet-gray);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.countdown-colon {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-carpet-gray);
  margin-bottom: 20px;
}
.prelaunch-badge {
  margin-top: 12px;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--color-carpet-gray);
  background: rgba(132, 127, 125, 0.08);
  border: 1px solid rgba(132, 127, 125, 0.15);
  padding: 3px 12px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

@keyframes cardFlip {
  0% { transform: rotateX(0deg); }
  50% { transform: rotateX(90deg); filter: brightness(0.6); }
  100% { transform: rotateX(0deg); }
}
.flip-card.animate-flip {
  animation: cardFlip 0.4s ease-out;
}

/* App Checkout Payment Sheet */
.checkout-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(18, 30, 30, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.checkout-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.checkout-sheet {
  width: 100%;
  max-width: 480px;
  background: #ffffff;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  padding: 24px 20px 35px 20px;
  box-sizing: border-box;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.15);
  max-height: 90vh;
  overflow-y: auto;
}
.checkout-overlay.active .checkout-sheet {
  transform: translateY(0);
}
.checkout-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #edf2f7;
  padding-bottom: 15px;
  margin-bottom: 20px;
}
.checkout-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-forest-green-dark);
  margin: 0;
}
.checkout-close-btn {
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #718096;
}
.stripe-input-container {
  border: 1.5px solid #cbd5e0;
  border-radius: 8px;
  padding: 14px 12px;
  background: #ffffff;
  margin-bottom: 15px;
  box-sizing: border-box;
}
.checkout-summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.88rem;
  color: #4a5568;
}
