/* Antojos al Salón - Pixel-Perfect Responsive App Architecture */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --primary-red: #FF1E27;
  --primary-red-hover: #E01018;
  --primary-red-glow: rgba(255, 30, 39, 0.45);
  --bg-dark: #0B0D12;
  --card-bg: #1A1E29; /* High-contrast charcoal card tone */
  --card-border: rgba(255, 255, 255, 0.16);
  --text-main: #FFFFFF;
  --text-muted: #9CA3AF;
  --text-subtle: #71717A;
  --accent-gold: #FFB800;
  --accent-emerald: #10B981;
  
  --radius-xl: 24px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --radius-full: 9999px;
  
  --shadow-glow: 0 0 20px rgba(255, 30, 39, 0.4);
  --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.6);
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Outfit', 'Inter', -apple-system, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: #050608;
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow-x: hidden;
}

/* Mobile App Viewport Container */
.app-viewport {
  width: 100%;
  max-width: 460px;
  min-height: 100vh;
  background-color: var(--bg-dark);
  position: relative;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.95);
  display: flex;
  flex-direction: column;
  padding-bottom: 220px !important;
  overflow-y: auto;
}

@media (min-width: 768px) {
  body {
    padding: 24px 0;
    background: radial-gradient(circle at top center, #240a0e 0%, #050608 100%);
  }
  .app-viewport {
    min-height: 860px;
    height: 860px;
    border-radius: 40px;
    border: 8px solid #222634;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(255, 30, 39, 0.2), 0 0 90px rgba(0, 0, 0, 0.95);
  }
  .app-viewport::-webkit-scrollbar {
    width: 6px;
  }
  .app-viewport::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
  }
}

/* Sticky Header Bar */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 13, 18, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 12px 16px;
  border-bottom: 1px solid var(--card-border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.brand-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--primary-red), #B30015);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 12px var(--primary-red-glow);
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

.brand-title span {
  color: var(--primary-red);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.streak-pill {
  background: rgba(255, 184, 0, 0.15);
  border: 1px solid rgba(255, 184, 0, 0.4);
  padding: 5px 10px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.streak-count {
  font-weight: 900;
  font-size: 0.85rem;
  color: var(--accent-gold);
}

.coins-pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--card-border);
  padding: 5px 9px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.82rem;
  font-weight: 800;
  color: #FFF;
  cursor: pointer;
}

/* Location Selector Bar ("La Llave de Entrega") */
.location-selector-bar {
  background: linear-gradient(90deg, rgba(255, 30, 39, 0.18) 0%, rgba(26, 30, 41, 0.9) 100%);
  border: 1px solid rgba(255, 30, 39, 0.4);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.location-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.location-icon-wrapper {
  width: 28px;
  height: 28px;
  background: var(--primary-red);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: white;
}

.location-text {
  display: flex;
  flex-direction: column;
}

.location-label {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--primary-red);
  font-weight: 800;
}

.location-val {
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--text-main);
}

.location-change-btn {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.1);
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

/* INSTAGRAM-STYLE CATEGORY STORIES BAR */
.stories-section {
  padding: 14px 0 12px 16px;
  width: 100%;
}

.stories-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-right: 16px;
  scrollbar-width: none;
}

.stories-scroll::-webkit-scrollbar {
  display: none;
}

.story-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  cursor: pointer;
  flex-shrink: 0;
  width: 66px;
  position: relative;
}

.story-ring {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  padding: 2.5px;
  background: linear-gradient(135deg, #FF1E27 0%, #FF7B00 100%);
  box-shadow: 0 4px 12px rgba(255, 30, 39, 0.25);
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.story-item.active .story-ring {
  background: linear-gradient(135deg, #FF1E27 0%, #FF7B00 50%, #FF0077 100%);
  box-shadow: 0 0 16px var(--primary-red-glow);
}

.story-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #1A1E29;
  border: 2px solid var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  overflow: hidden;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}

.story-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--primary-red);
  color: white;
  font-size: 0.65rem;
  font-weight: 900;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-dark);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
  z-index: 10;
  line-height: 1;
  pointer-events: none;
}

.story-title {
  margin-top: 6px !important;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 66px;
  line-height: 1.2;
  display: block;
}

.story-item.active .story-title {
  color: var(--text-main);
  font-weight: 900;
}

/* Urgency Countdown Banner */
.urgency-timer-banner {
  background: linear-gradient(90deg, #990000 0%, var(--primary-red) 50%, #990000 100%);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 800;
  color: white;
}

.timer-countdown {
  font-family: monospace;
  font-size: 1.05rem;
  font-weight: 900;
  background: rgba(0, 0, 0, 0.45);
  padding: 3px 8px;
  border-radius: 6px;
  color: var(--accent-gold);
}

/* Feed Sections */
.feed-section {
  margin-bottom: 26px;
}

.feed-section:last-of-type {
  margin-bottom: 100px !important;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0 16px 10px 16px;
}

.section-title {
  font-size: 1.15rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.3px;
}

.section-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Horizontal Swipe Carousel */
.products-horizontal-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 16px 14px 16px;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}

.products-horizontal-scroll::-webkit-scrollbar {
  display: none;
}

/* PRODUCT CARD WITH EXACT EQUAL WIDTH (190px) FOR FULL SYMMETRY */
.product-card {
  flex: 0 0 190px !important;
  width: 190px !important;
  max-width: 190px !important;
  scroll-snap-align: start;
  background: var(--card-bg) !important;
  border: 1.5px solid var(--card-border) !important;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  transition: transform var(--transition-fast);
  box-sizing: border-box;
}

.product-card:hover {
  border-color: rgba(255, 30, 39, 0.5) !important;
}

/* Media Preview Wrapper */
.card-media-wrapper {
  width: 100%;
  height: 145px;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.22) 0%, rgba(255, 30, 39, 0.25) 45%, rgba(18, 22, 32, 0.98) 100%);
}

.card-media-wrapper img, 
.card-media-wrapper video,
.card-media-wrapper .canvas-sim {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-emoji-display {
  font-size: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.7));
}

/* TikTok Reel Badges */
.tiktok-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  color: white;
  font-size: 0.65rem;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.tiktok-play-icon {
  font-size: 9px;
  color: #FFF;
}

.tiktok-pulse-dot {
  width: 6px;
  height: 6px;
  background: var(--primary-red);
  border-radius: 50%;
  animation: blink 1s infinite alternate;
}

.video-play-center-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  padding-left: 2px;
  pointer-events: none;
  z-index: 2;
}

@keyframes blink {
  0% { opacity: 0.3; }
  100% { opacity: 1; }
}

.discount-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--primary-red);
  color: white;
  font-weight: 900;
  font-size: 0.75rem;
  padding: 3px 7px;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(255, 30, 39, 0.5);
  z-index: 2;
}

/* CARD BODY WITH PERFECT PADDING & VERTICALLY ALIGNED PRICE */
.card-body {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.product-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 3px;
  line-height: 1.25;
}

.product-desc {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: auto;
}

.price-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-left: 0;
  padding-left: 0;
}

.old-price {
  font-size: 0.72rem;
  color: var(--text-subtle);
  text-decoration: line-through;
  font-weight: 600;
}

.current-price {
  font-size: 1.18rem;
  font-weight: 900;
  color: var(--accent-gold);
  letter-spacing: -0.5px;
  line-height: 1;
}

.add-cart-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary-red), #C90013);
  border: none;
  color: white;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px var(--primary-red-glow);
}

/* OUT OF STOCK FOMO STATE - TOTAL GRAYSCALE FILTER ON PRODUCT PREVIEW */
.product-card.out-of-stock {
  filter: grayscale(100%);
  border-color: rgba(255, 255, 255, 0.05) !important;
  background: #141620 !important;
}

.product-card.out-of-stock .card-media-wrapper img,
.product-card.out-of-stock .card-media-wrapper .product-emoji-display,
.product-card.out-of-stock .card-media-wrapper .canvas-sim {
  filter: grayscale(100%) opacity(0.35) !important;
}

.product-card.out-of-stock .discount-badge,
.product-card.out-of-stock .ruleta-badge,
.product-card.out-of-stock .tiktok-badge {
  display: none !important;
}

.out-of-stock-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(2px);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  pointer-events: none;
}

.fomo-ribbon {
  background: rgba(15, 15, 18, 0.95);
  border: 2px solid #666;
  color: #FFF;
  font-weight: 900;
  font-size: 0.85rem;
  padding: 6px 12px;
  border-radius: var(--radius-md);
  text-align: center;
  transform: rotate(-6deg);
  box-shadow: 0 6px 18px rgba(0,0,0,0.85);
  width: 90%;
}

.btn-notify-stock {
  width: 100%;
  padding: 8px 6px;
  background: rgba(255, 255, 255, 0.14);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  color: #FFF;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

/* FLOATING RULETA BUTTON INSET PERFECTLY AT BOTTOM RIGHT */
.floating-ruleta-btn {
  position: fixed;
  bottom: 75px;
  right: 16px;
  z-index: 95;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--primary-red) 0deg 120deg, #0F0F12 120deg 240deg, #FFFFFF 240deg 360deg);
  border: 3px solid var(--accent-gold);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 22px rgba(255, 184, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

@media (min-width: 768px) {
  .floating-ruleta-btn {
    position: absolute;
    bottom: 75px;
    right: 16px;
    left: auto;
    transform: none;
  }
}

/* RULETA BADGE PERFECTLY INSET INSIDE TOP RIGHT OF BUTTON CIRCLE */
.ruleta-badge {
  position: absolute;
  top: 1px;
  right: 1px;
  background: var(--primary-red);
  color: white;
  font-size: 0.60rem;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  border: 2px solid var(--bg-dark);
  box-shadow: 0 2px 6px rgba(0,0,0,0.6);
  z-index: 10;
}

.ruleta-inner-icon {
  width: 36px;
  height: 36px;
  background: rgba(15, 15, 18, 0.92);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  color: var(--accent-gold);
}

/* MODAL DIGITAL TICKING CLOCK - HIGH DOPAMINE URGENCY TRIGGER */
.modal-digital-clock-wrapper {
  background: rgba(15, 15, 18, 0.9);
  border: 1.5px solid var(--primary-red);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  margin: 12px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.8), 0 0 18px rgba(255, 30, 39, 0.3);
}

.modal-clock-label {
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.8px;
  color: var(--primary-red);
  text-transform: uppercase;
}

.modal-digital-clock {
  font-family: 'Courier New', Courier, monospace;
  font-size: 2.3rem;
  font-weight: 900;
  color: #FF1E27;
  text-shadow: 0 0 16px rgba(255, 30, 39, 0.85), 0 0 30px rgba(255, 184, 0, 0.5);
  letter-spacing: 2px;
  line-height: 1;
  animation: pulseTimer 1s infinite alternate;
}

@keyframes pulseTimer {
  0% { transform: scale(1); opacity: 0.9; }
  100% { transform: scale(1.04); opacity: 1; text-shadow: 0 0 22px rgba(255, 30, 39, 1), 0 0 35px rgba(255, 184, 0, 0.7); }
}

/* BOTTOM PERSISTENT CHECKOUT BAR */
.bottom-checkout-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 460px;
  z-index: 100;
  background: rgba(11, 13, 18, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--card-border);
  padding: 10px 14px 14px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

@media (min-width: 768px) {
  .bottom-checkout-bar {
    position: absolute;
    left: 0;
    transform: none;
    border-bottom-left-radius: 32px;
    border-bottom-right-radius: 32px;
  }
  .modal-backdrop {
    position: absolute;
    border-radius: 32px;
  }
}

.cart-progress-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  gap: 4px;
}

.cart-progress-label {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--text-muted);
  width: 100%;
}

.cart-progress-label span strong {
  color: var(--accent-gold);
}

.progress-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #FFB800 0%, #FF1E27 50%, #10B981 100%);
  background-size: 200% 100%;
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.6);
}

.checkout-main-btn {
  width: 100%;
  height: 48px;
  background: linear-gradient(135deg, var(--primary-red), #B30015);
  border: none;
  border-radius: var(--radius-lg);
  color: white;
  font-size: 0.98rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px 0 18px;
  cursor: pointer;
  box-shadow: 0 6px 20px var(--primary-red-glow);
}

.checkout-badge {
  background: rgba(0, 0, 0, 0.4);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-width: 76px;
  height: 30px;
  line-height: 1;
  border: 1px solid rgba(255,255,255,0.1);
}

/* MODALS OVERLAY SYSTEM */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(10px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 16px;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 400px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 20px;
  box-shadow: var(--shadow-card);
  position: relative;
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--text-muted);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* LOCATION MODAL FORM */
.modal-header-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--primary-red-glow);
  border: 1px solid var(--primary-red);
  color: var(--primary-red);
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.modal-title {
  font-size: 1.3rem;
  font-weight: 900;
  margin-bottom: 4px;
}

.modal-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.35;
}

.form-group {
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-select, .form-input {
  width: 100%;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  outline: none;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 16px 0;
  cursor: pointer;
}

.form-check input {
  accent-color: var(--primary-red);
  width: 16px;
  height: 16px;
}

.form-check span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.btn-primary-block {
  width: 100%;
  padding: 12px;
  background: var(--primary-red);
  border: none;
  border-radius: var(--radius-md);
  color: white;
  font-size: 0.95rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 6px 18px var(--primary-red-glow);
}

/* RULETA CANVAS CONTAINER */
.wheel-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 14px auto;
  position: relative;
  width: 270px;
  height: 270px;
}

#wheelCanvas {
  width: 270px;
  height: 270px;
  border-radius: 50%;
  display: block;
  margin: 0 auto;
  box-shadow: 0 0 35px rgba(255, 184, 0, 0.45);
}

.wheel-pointer {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 24px solid var(--accent-gold);
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.8));
  z-index: 20;
  pointer-events: none;
}

/* DAILY CHECK-IN CALENDAR GRID */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 12px 0 16px 0;
}

.calendar-day {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 8px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-align: center;
}

.calendar-day.claimed {
  background: rgba(16, 185, 129, 0.14);
  border-color: var(--accent-emerald);
}

.calendar-day.today {
  border-color: var(--accent-gold);
}

.day-title {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
}

.day-reward {
  font-size: 0.82rem;
  font-weight: 900;
  color: var(--accent-gold);
}

.day-status {
  font-size: 0.6rem;
  color: var(--accent-emerald);
  font-weight: 800;
}

/* ANTI-PROFE STEALTH ORDER TRACKER */
.stealth-tracker-modal {
  background: #0D0F14;
  padding-bottom: 8px;
}

/* ① Header Block */
.tracker-header-block {
  margin-bottom: 16px;
}

.tracker-order-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 10px;
}

.tracker-main-title {
  font-size: 1.25rem;
  font-weight: 900;
  color: #FFFFFF;
  margin: 0;
  line-height: 1.2;
  flex: 1;
  min-width: 0;
}

.tracker-order-id {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-muted);
  background: rgba(255,255,255,0.06);
  padding: 3px 8px;
  border-radius: 20px;
  white-space: nowrap;
  margin-left: 8px;
  margin-top: 2px;
}

/* Destination Chip */
.tracker-dest-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #18181C;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 0.8rem;
  color: #CCCCCC;
  margin-bottom: 8px;
}

.tracker-dest-chip strong {
  color: var(--primary-red);
  font-weight: 900;
}

/* Cart Summary */
.tracker-cart-summary {
  font-size: 0.75rem;
  color: var(--text-muted);
  padding: 6px 0 10px 2px;
  letter-spacing: 0.01em;
}

/* Anti-Profe Banner */
.stealth-banner {
  background: rgba(255, 30, 39, 0.15);
  border: 1px dashed var(--primary-red);
  padding: 10px 12px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  color: #FF7B80;
}

/* ② Vertical Timeline */
.vertical-tracker {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  margin: 0 0 14px 8px;
}

.vertical-tracker::before {
  content: '';
  position: absolute;
  left: 17px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  background: rgba(255, 255, 255, 0.08);
  z-index: 1;
}

.tracker-line-fill {
  position: absolute;
  left: 17px;
  top: 8px;
  width: 3px;
  background: linear-gradient(180deg, var(--accent-emerald), var(--primary-red));
  z-index: 2;
  transition: height 0.7s ease;
  height: 0%;
}

.tracker-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  position: relative;
  z-index: 3;
  opacity: 0.3;
  transition: opacity 0.4s ease;
}

.tracker-step.active,
.tracker-step.completed {
  opacity: 1;
}

.step-node {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #181C26;
  border: 2px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  transition: border-color 0.4s, background 0.4s, box-shadow 0.4s;
}

.tracker-step.active .step-node {
  border-color: var(--primary-red);
  background: var(--primary-red);
  box-shadow: 0 0 14px rgba(255,30,39,0.6);
  animation: nodeGlow 1.2s ease-in-out infinite alternate;
}

.tracker-step.completed .step-node {
  border-color: var(--accent-emerald);
  background: var(--accent-emerald);
  color: white;
  box-shadow: none;
}

@keyframes nodeGlow {
  from { box-shadow: 0 0 8px rgba(255,30,39,0.5); }
  to   { box-shadow: 0 0 20px rgba(255,30,39,0.9), 0 0 35px rgba(255,30,39,0.3); }
}

.step-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  padding-top: 2px;
}

.step-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-main);
}

.step-desc {
  font-size: 0.73rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* Runner animation badge (visible only on active step) */
.step-runner-anim {
  font-size: 1.3rem;
  display: none;
  align-items: center;
  animation: runnerBounce 0.6s ease-in-out infinite alternate;
  flex-shrink: 0;
  margin-top: 4px;
}

.tracker-step.active .step-runner-anim {
  display: flex;
}

@keyframes runnerBounce {
  from { transform: translateX(0); }
  to   { transform: translateX(5px); }
}

/* ③ Secret Message Button */
.secret-msg-btn {
  width: 100%;
  padding: 13px 16px;
  background: transparent;
  border: 1.5px solid var(--primary-red);
  border-radius: var(--radius-md);
  color: #FF7B80;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  margin-bottom: 0;
  font-family: inherit;
  letter-spacing: 0.01em;
}

.secret-msg-btn:hover,
.secret-msg-btn:active {
  background: rgba(255,30,39,0.15);
  box-shadow: 0 0 16px rgba(255,30,39,0.3);
  color: #FFFFFF;
}

/* Quick-reply message sheet */
.secret-msg-sheet {
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,30,39,0.25);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-top: 8px;
  animation: slideDown 0.25s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.secret-msg-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin: 0 0 8px 0;
  font-weight: 700;
}

.secret-msg-options {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.secret-msg-option {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  color: #CCCCCC;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 9px 12px;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  font-family: inherit;
}

.secret-msg-option:hover,
.secret-msg-option:active {
  background: rgba(255,30,39,0.18);
  border-color: var(--primary-red);
  color: #FFFFFF;
}

/* ④ Bottom Quick-Access Bar */
.tracker-bottom-bar {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.tracker-home-btn {
  flex: 1;
  padding: 11px 8px;
  border-radius: var(--radius-md);
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  font-family: inherit;
  border: none;
}

.tracker-home-btn:not(.secondary) {
  background: rgba(255,30,39,0.18);
  border: 1.5px solid var(--primary-red);
  color: #FFFFFF;
}

.tracker-home-btn.secondary {
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(255,255,255,0.15);
  color: var(--text-muted);
}

.tracker-home-btn:hover {
  transform: scale(1.02);
}


.toast-notification {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  z-index: 300;
  background: rgba(24, 28, 38, 0.96);
  border: 1.5px solid var(--accent-gold);
  color: white;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  box-shadow: 0 8px 24px rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 0.85rem;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
}

.toast-notification.show {
  transform: translateX(-50%) translateY(0);
}

/* Giant Countdown Clock Blink Animation - Prize Modal */
@keyframes clockBlink {
  0%   { opacity: 1; }
  50%  { opacity: 0.35; }
  100% { opacity: 1; }
}

/* When timer is below 60s - urgency pulse scale too */
#modalLiveCountdown.urgent {
  color: #FF1E27;
  animation: clockBlink 0.5s step-end infinite, pulseTimer 0.5s ease-in-out infinite alternate;
}

/* ============================================
   AVATAR PILL (Header Profile Button)
   ============================================ */
.avatar-pill {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF1E27, #B30015);
  border: 2px solid rgba(255,184,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
}
.avatar-pill:hover { transform: scale(1.08); box-shadow: 0 0 12px rgba(255,30,39,0.5); }
.avatar-initials {
  font-size: 0.65rem;
  font-weight: 900;
  color: #FFFFFF;
  letter-spacing: 0.03em;
}

/* ============================================
   MODAL 4: CARRITO DE COMPRAS (TEMU EFFECT)
   ============================================ */
.cart-modal {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 92vh;
}

.cart-modal-header {
  padding: 18px 18px 10px;
  background: #0D0F14;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}

.cart-title {
  font-size: 1.2rem;
  font-weight: 900;
  color: #FFFFFF;
  margin: 0 0 8px 0;
}

.cart-delivery-chip {
  font-size: 0.78rem;
  color: #AAAAAA;
  background: #18181C;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 6px 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.cart-delivery-chip strong { color: var(--primary-red); font-weight: 800; }

/* Scrollable area */
.cart-items-list {
  flex: 1;
  overflow-y: auto;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Individual cart item row */
.cart-item-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #18181C;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 10px 12px;
  transition: border-color 0.2s;
}
.cart-item-row:hover { border-color: rgba(255,30,39,0.35); }

.cart-item-emoji {
  font-size: 2rem;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

.cart-item-name {
  font-size: 0.82rem;
  font-weight: 800;
  color: #EEEEEE;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-prices {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-top: 2px;
}

.cart-item-old-price {
  font-size: 0.72rem;
  color: #666;
  text-decoration: line-through;
}

.cart-item-price {
  font-size: 0.95rem;
  font-weight: 900;
  color: var(--accent-gold);
}

/* Quantity Selector */
.qty-selector {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255,30,39,0.12);
  border: 1.5px solid var(--primary-red);
  border-radius: 20px;
  overflow: hidden;
  flex-shrink: 0;
}

.qty-btn {
  background: transparent;
  border: none;
  color: #FF1E27;
  font-size: 1rem;
  font-weight: 900;
  width: 30px;
  height: 30px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  font-family: inherit;
}
.qty-btn:hover { background: rgba(255,30,39,0.25); }
.qty-btn:active { background: rgba(255,30,39,0.4); }

.qty-value {
  font-size: 0.85rem;
  font-weight: 900;
  color: #FFFFFF;
  min-width: 22px;
  text-align: center;
}

/* Upsell Progress Bar */
.cart-upsell-bar {
  padding: 10px 14px 8px;
  flex-shrink: 0;
  background: rgba(255,184,0,0.06);
  border-top: 1px solid rgba(255,184,0,0.12);
}

.cart-upsell-text {
  font-size: 0.75rem;
  color: #FFD700;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.3;
}

.cart-progress-track {
  height: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  overflow: hidden;
}

.cart-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #FFB800, #FF1E27);
  border-radius: 10px;
  transition: width 0.5s ease;
}

/* Price Breakdown */
.cart-price-breakdown {
  padding: 10px 16px;
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price-label {
  font-size: 0.8rem;
  color: #888;
}

.price-val { font-size: 0.85rem; font-weight: 700; color: #CCC; }
.price-val.muted { color: #666; text-decoration: line-through; }
.price-val.discount { color: #FF4444; font-weight: 900; }
.price-val.free { color: #10B981; font-weight: 900; }

.total-row {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 8px;
  margin-top: 2px;
}

.price-label-total {
  font-size: 0.9rem;
  font-weight: 800;
  color: #FFFFFF;
}

.price-val-total {
  font-size: 1.55rem;
  font-weight: 900;
  color: #FFFFFF;
  letter-spacing: -0.01em;
}

/* Payment Section */
.cart-payment-section {
  padding: 8px 16px 4px;
  flex-shrink: 0;
}

.cart-payment-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.cart-payment-options {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.payment-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: #CCC;
  cursor: pointer;
  padding: 4px 0;
}

/* Cart Confirm Button */
.cart-confirm-btn {
  display: block;
  width: calc(100% - 32px);
  margin: 10px 16px 16px;
  padding: 16px;
  background: linear-gradient(135deg, #FF1E27, #B30015);
  border: none;
  border-radius: 14px;
  color: #FFFFFF;
  font-size: 1.05rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(255,30,39,0.45);
  transition: transform 0.15s, box-shadow 0.15s;
  font-family: inherit;
  letter-spacing: 0.01em;
}
.cart-confirm-btn:hover { transform: scale(1.02); box-shadow: 0 12px 32px rgba(255,30,39,0.6); }
.cart-confirm-btn:active { transform: scale(0.98); }

/* Empty cart state */
.cart-empty {
  text-align: center;
  padding: 32px 16px;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.cart-empty-icon { font-size: 2.5rem; margin-bottom: 8px; }

/* ============================================
   MODAL 6: PERFIL (GAMER / DUOLINGO MODE)
   ============================================ */
.profile-modal {
  background: linear-gradient(160deg, #0D0F14 0%, #16090A 100%);
  padding: 0;
  overflow-y: auto;
}

/* Identity Card */
.profile-identity-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 18px 16px;
  background: linear-gradient(135deg, rgba(255,30,39,0.12) 0%, rgba(0,0,0,0) 60%);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  position: relative;
}

.profile-avatar-ring {
  position: relative;
  flex-shrink: 0;
}

.profile-avatar-inner {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF1E27, #B30015);
  border: 3px solid #FFB800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  font-weight: 900;
  color: #FFFFFF;
  box-shadow: 0 0 20px rgba(255,30,39,0.5), 0 0 40px rgba(255,184,0,0.2);
}

.profile-fire-ring {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  letter-spacing: -2px;
}

.profile-info { flex: 1; }

.profile-name {
  font-size: 1.1rem;
  font-weight: 900;
  color: #FFFFFF;
  margin-bottom: 2px;
}

.profile-grade {
  font-size: 0.75rem;
  color: #888;
  margin-bottom: 6px;
}

.profile-badge {
  display: inline-block;
  background: linear-gradient(135deg, rgba(255,184,0,0.2), rgba(255,30,39,0.2));
  border: 1px solid rgba(255,184,0,0.5);
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 0.72rem;
  font-weight: 800;
  color: #FFD700;
}

/* Achievement Board */
.achievement-board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 14px 14px 10px;
}

.achievement-block {
  background: #18181C;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 14px 12px;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}
.achievement-block:hover { border-color: rgba(255,30,39,0.4); transform: translateY(-1px); }

.achievement-icon { font-size: 2rem; margin-bottom: 4px; }

.achievement-value {
  font-size: 1.4rem;
  font-weight: 900;
  color: #FFFFFF;
  line-height: 1;
  margin-bottom: 2px;
}

.achievement-label {
  font-size: 0.7rem;
  color: #888;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.achievement-tip {
  font-size: 0.68rem;
  color: #555;
  line-height: 1.3;
}

/* Profile Sections */
.profile-section {
  padding: 12px 14px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.profile-section-title {
  font-size: 0.75rem;
  font-weight: 800;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

/* Saved Rooms */
.saved-rooms { display: flex; flex-direction: column; gap: 7px; }

.saved-room-btn {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 10px;
  color: #BBBBBB;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.saved-room-btn:hover { background: rgba(255,30,39,0.1); border-color: rgba(255,30,39,0.3); color: #FFF; }
.saved-room-btn.active { border-color: var(--primary-red); background: rgba(255,30,39,0.12); color: #FFF; }

.room-default-badge {
  margin-left: auto;
  font-size: 0.62rem;
  background: rgba(255,184,0,0.2);
  border: 1px solid rgba(255,184,0,0.4);
  color: #FFD700;
  border-radius: 10px;
  padding: 1px 7px;
  font-weight: 800;
}

/* Order History */
.order-history { display: flex; flex-direction: column; gap: 8px; }

.order-card {
  background: #18181C;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 10px 12px;
  transition: border-color 0.2s;
}
.order-card:hover { border-color: rgba(255,30,39,0.3); }

.order-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.order-status {
  font-size: 0.72rem;
  font-weight: 800;
}
.order-status.done { color: #10B981; }

.order-date {
  font-size: 0.68rem;
  color: #555;
}

.order-card-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #DDD;
  margin-bottom: 2px;
}

.order-card-loc {
  font-size: 0.7rem;
  color: #555;
  margin-bottom: 4px;
}

.order-card-reward {
  font-size: 0.72rem;
  color: #FFB800;
  font-weight: 700;
}

