/* Components and interactive blocks moved out of styles.css for clarity:
   - feature card visuals & ripple
   - carousel / swipe hint
   - premium badge visuals
   - smaller responsive tweaks for these components */

/* Feature and ripple interactions */
.feature{
  display:flex;
  align-items:center;
  gap:12px;
  padding:10px 12px;
  border-radius:14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.018), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.03);
  box-shadow: 0 6px 18px rgba(2,6,23,0.5);
  min-width:0;
  flex: 1 1 180px;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
  position:relative; /* for ripple */
  overflow:hidden; /* clip ripple */
}
/* NEW: nudge icons slightly lower while keeping them left-aligned,
   and vertically center the feature text block for better visual balance */
.feature {
  align-items: flex-start; /* let icon sit a bit lower */
}
.feature-icon {
  flex: 0 0 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 6px; /* nudge icon downward */
  border-radius: 10px;
}
.feature-body {
  display: flex;
  flex-direction: column;
  justify-content: center; /* center text vertically relative to item */
  min-width: 0;
}

/* NEW: active/tap state for a nicer touch animation */
.feature.feature-active{
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 22px 48px rgba(2,6,23,0.6);
  background: linear-gradient(180deg, rgba(255,255,255,0.028), rgba(255,255,255,0.015));
}

/* Ripple element styling */
.feature .ripple {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.2);
  background: radial-gradient(circle, rgba(255,255,255,0.12), rgba(255,255,255,0.04) 40%, transparent 60%);
  width: 16px;
  height: 16px;
  opacity: 0;
  transition: transform 420ms cubic-bezier(.2,.9,.2,1), opacity 420ms ease;
  will-change: transform, opacity;
}

/* expanded ripple when triggered */
.feature .ripple.show{
  opacity: 1;
  transform: translate(-50%, -50%) scale(12);
  transition: transform 420ms cubic-bezier(.2,.9,.2,1), opacity 420ms ease;
}

/* subtle inner pulse to the icon/text when active */
.feature.feature-active .feature-icon,
.feature.feature-active .feature-body { 
  transform: translateY(-2px);
  transition: transform 220ms ease;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .feature, .feature.feature-active, .feature .ripple { transition: none !important; animation: none !important; }
}

/* Reduce vertical gap under feature subtitles to remove extra space below "Soporte 24/7" */
.feature .f-sub{font-size:0.86rem;color:var(--muted);margin-top:2px;margin-bottom:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* Slightly tighter on small screens */
@media (max-width:880px){
  .feature{padding:8px 10px;gap:8px;border-radius:12px; align-items: flex-start}
  .feature-icon{flex:0 0 38px;height:38px;font-size:1rem;border-radius:9px;margin-top:6px}
  .feature .f-title{font-size:0.95rem}
  .feature .f-sub{font-size:0.82rem}
}

/* iOS-style carousel */
.carousel-section{
  margin-top:6px; /* moved slightly up for tighter layout */
}
.carousel-label{
  font-size:0.9rem;
  color:var(--muted);
  margin-bottom:8px;
  text-align:center; /* center the label above the carousel */
  width:100%;
}
.ios-carousel{
  position:relative;
  width:100%;
  overflow-x:auto;
  overflow-y:hidden;
  scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling:touch;
  padding-bottom:4px;
}
.swipe-item{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  gap:8px;
  background:linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.02));
  color:rgba(230,238,246,0.95);
  padding:8px 12px;
  border-radius:999px;
  font-weight:700;
  font-size:0.95rem;
  box-shadow:0 8px 20px rgba(0,0,0,0.18);
  pointer-events:none;
  user-select:none;
  margin-right:6px;
  transform:translateY(0);
  transition:transform 220ms ease, opacity 220ms ease;
  opacity:1;
  color:var(--accent);
}
.swipe-item .hint-chevron { transform-origin:center; animation: chevronSlide 900ms ease-in-out infinite; opacity:0.95; color:var(--accent); }

/* rest of carousel CSS */
.carousel-section{ position:relative; }
.carousel-track{
  display:flex;
  align-items:center;
  gap:12px;
  padding:4px 16px 22px 16px; /* increased bottom padding to fit small labels */
}
.item{
  /* increased circle size so logos are more prominent */
  flex:0 0 106px;
  height:106px;
  border-radius:50%;
  /* make the outer item container transparent so logo's own black circle is visible */
  background: transparent;
  scroll-snap-align:center;
  box-shadow:0 8px 20px rgba(0,0,0,0.12);
  transition:
    transform 180ms ease-out,
    box-shadow 180ms ease-out,
    background 180ms ease-out;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  position:relative; /* allow absolute caption */
  -webkit-transform-origin: center;
  transform-origin: center;
}
/* Make logos fill more of the circular item and use a black circular background */
.item img{
  width:92%;
  height:92%;
  object-fit:contain;
  border-radius:50%;
  display:block;
  background:#000;             /* solid black background behind the logo */
  padding:4%;                 /* reduced inner padding so glyph is larger */
  box-shadow: 0 6px 18px rgba(2,6,23,0.5);
  border: 1px solid rgba(255,255,255,0.12); /* added subtle white stroke to help logos read */
  -webkit-transform-origin: center;
  transform-origin: center;
  transition: transform 200ms ease-out, filter 200ms ease-out;
}

/* Ensure item container accomodates a small caption */
.item .logo-caption{
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  bottom:-14px; /* increased spacing so captions sit a bit lower under icons */
  font-size:0.78rem;
  color:var(--muted);
  background: rgba(0,0,0,0.28);
  padding:4px 8px;
  border-radius:999px;
  white-space:nowrap;
  pointer-events:none;
  -webkit-font-smoothing:antialiased;
}

/* Slightly stronger scale on active */
.item-active{
  transform:scale(1.18);
  background:transparent;
  box-shadow:0 18px 48px rgba(0,0,0,0.45);
}

/* NEW: Ensure the active item's image also scales and floats above siblings so every icon (Facebook included) visibly enlarges */
.item.item-active,
.item-active {
  z-index: 40;
  -webkit-transform-origin: center;
  transform-origin: center;
}

/* NEW: scale the inner image slightly so icons with internal padding (like Facebook) also visibly grow */
.item.item-active img,
.item-active img {
  transform: scale(1.08);
  transition: transform 200ms ease-out;
  -webkit-transform: scale(1.08);
}

.item-spacer{
  /* narrower spacer so carousel centers nicely on wide screens while keeping mobile feel */
  flex:0 0 30vw;
  height:1px;
}
.ios-carousel::-webkit-scrollbar{
  display:none;
}
.ios-carousel{
  -ms-overflow-style:none;
  scrollbar-width:none;
}

/* Ensure component-level form visuals match core form contrast */
.form select,
.form input,
.form textarea {
  /* keep consistent with core styles but allow component overrides */
  background: rgba(255,255,255,0.06);
  color: #eaf2ff;
  border:1px solid rgba(255,255,255,0.06);
  box-shadow: inset 0 -1px 0 rgba(255,255,255,0.03);
}

/* Premium badge visuals */
.premium-badge{
  position:absolute;
  left:8px;
  top:8px;
  color: var(--accent);
  font-weight:700;
  font-size:0.45rem; /* reduced for a smaller badge */
  padding:3px 4px;   /* tighter padding */
  border-radius:8px; /* smaller radius */
  letter-spacing:0.2px;
  z-index:3;
  transform-origin:center;
  -webkit-font-smoothing:antialiased;

  background: linear-gradient(90deg, rgba(255,107,53,0.06), rgba(255,138,90,0.03));
  border: 1px solid rgba(255,138,90,0.03);
  box-shadow:
    0 1px 3px rgba(255,107,53,0.03),
    0 4px 8px rgba(255,107,53,0.02),
    0 0 8px rgba(255,138,90,0.02);
  backdrop-filter: blur(3px);
  animation: premiumPulse 4.2s ease-in-out infinite;
}

/* Add a faint radial halo behind the badge to increase perceived glow */
.premium-badge::before{
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 160%;   /* reduced halo spread */
  height: 160%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255,138,90,0.04), rgba(255,107,53,0.015) 40%, transparent 55%);
  filter: blur(6px);
  pointer-events: none;
  z-index: -1;
  opacity: 0.7;
  transition: opacity 260ms ease;
}

/* Sheen kept intentionally disabled like the original */
.premium-badge::after{
  display: none;
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .premium-badge,
  .premium-badge::after,
  .premium-badge::before {
    animation: none !important;
    transition: none !important;
  }
}

/* New pulse keyframe */
@keyframes premiumPulse {
  0% { transform: scale(1); box-shadow: 0 1px 3px rgba(255,107,53,0.04), 0 4px 8px rgba(255,107,53,0.03), 0 0 8px rgba(255,138,90,0.05); }
  45% { transform: scale(1.005); box-shadow: 0 3px 10px rgba(255,107,53,0.05), 0 0 14px rgba(255,138,90,0.06); }
  70% { transform: scale(1.002); box-shadow: 0 2px 6px rgba(255,107,53,0.04), 0 0 10px rgba(255,138,90,0.05); }
  100% { transform: scale(1); box-shadow: 0 1px 3px rgba(255,107,53,0.04), 0 4px 8px rgba(255,107,53,0.03), 0 0 8px rgba(255,138,90,0.05); }
}

/* Small responsive adjustments for moved components */
@media (max-width:880px){
  .item{ flex:0 0 96px; height:96px }
  .item-spacer{ flex:0 0 35vw }
  .feature{padding:8px 10px}
  .premium-badge{left:6px;top:6px;padding:2px 4px;font-size:0.42rem;border-radius:7px}
  /* slightly smaller form label on small screens */
  .form label{font-size:0.90rem}
  /* ensure logo padding scales down slightly on small screens */
  .item img{ padding:5%; width:88%; height:88%; }
}

/* Smaller captions on small screens */
@media (max-width:880px){
  .carousel-track{ padding-bottom:18px; }
  .item{ flex:0 0 96px; height:96px }
  .item .logo-caption{ bottom:-12px; font-size:0.74rem; padding:3px 6px; } /* slightly increased separation on small screens too */
  .item-spacer{ flex:0 0 35vw }
  .feature{padding:8px 10px}
  .premium-badge{left:6px;top:6px;padding:2px 4px;font-size:0.42rem;border-radius:7px}
  .item img{ padding:5%; width:88%; height:88%; }
}

/* Chevron animation used by swipe hint */
@keyframes chevronSlide {
  0% { transform: translateX(-6px) }
  50% { transform: translateX(2px) }
  100% { transform: translateX(-6px) }
}

/* Deposit modal specific visuals (kept with component styles) */
#depositModal .modal-card { 
  padding:16px; 

  /* Liquid glass look — increased translucency and stronger blur */
  /* MADE MORE CONTRASTIVE: slightly stronger alpha so the card reads above background while remaining frosted */
  background: linear-gradient(180deg, rgba(255,255,255,0.018), rgba(255,255,255,0.008));
  border: 1px solid rgba(255,255,255,0.035);
  border-radius:18px;
  box-shadow: 0 28px 70px rgba(4,10,20,0.66), inset 0 2px 8px rgba(0,0,0,0.28);
  backdrop-filter: blur(22px) saturate(1.05);
  -webkit-backdrop-filter: blur(22px) saturate(1.05);
  overflow: hidden;
  position: relative;
  /* slightly stronger base tint so content reads better over varied backgrounds */
  background-color: rgba(255,255,255,0.10); /* increased white tint for higher contrast */
  /* ORANGE accent: faint warm rim to link modal to brand */
  box-shadow: 0 26px 64px rgba(4,10,20,0.62), 0 0 34px rgba(255,107,53,0.04);
  border-image: linear-gradient(90deg, rgba(255,107,53,0.07), rgba(255,138,90,0.05)) 1;

  /* NEW: subtle green rim glow to contrast against page background and match the WhatsApp/report CTA */
  /* using an additional, colored outer glow so the frosted edge reads clearly */
  box-shadow:
    0 26px 64px rgba(4,10,20,0.62),
    0 0 34px rgba(255,107,53,0.04),
    0 0 12px rgba(18,140,126,0.12), /* reduced spread for a sharper rim */
    0 0 4px rgba(18,140,126,0.08)   /* tighter green rim */
  ;

  /* NEW: subtle diffused white border to increase perceived contrast around the card */
  /* a faint blurred white edge that softly outlines the modal */
  box-shadow:
    0 26px 64px rgba(4,10,20,0.62),
    0 0 34px rgba(255,107,53,0.04),
    0 0 12px rgba(18,140,126,0.12),
    0 0 4px rgba(18,140,126,0.08),
    0 0 10px rgba(255,255,255,0.06); /* reduced halo to be less diffused */
  border: 1px solid rgba(255,255,255,0.14); /* stronger white border for clearer cut */
}

/* Ensure selects inside the deposit modal keep high contrast when focused/pressed on touch devices */
#depositModal .form select,
#depositModal .form select:focus,
#depositModal .form select:active {
  /* slightly brighter frosted background for clarity when the control is active */
  background: linear-gradient(180deg, rgba(255,255,255,0.048), rgba(255,255,255,0.02));
  /* keep text clearly readable (light text on slightly tinted surface) */
  color: #081322; /* dark text works well on this lighter select background inside the modal */
  /* ensure borders/outline remain visible */
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: inset 0 6px 14px rgba(255,255,255,0.02), 0 8px 28px rgba(2,6,23,0.18);
  /* maintain roomy padding and radius */
  padding-right: 14px;
  padding-left: 12px;
  border-radius: 12px;
}

/* Also ensure the mobile/touch “active” state doesn't force a pure black background */
#depositModal .form select:-webkit-autofill,
#depositModal .form select::-webkit-autofill {
  background: linear-gradient(180deg, rgba(255,255,255,0.048), rgba(255,255,255,0.02)) !important;
  -webkit-box-shadow: 0 0 0px 1000px rgba(255,255,255,0.02) inset !important;
  -webkit-text-fill-color: #081322 !important;
}

/* soft glossy highlight strip at the top */
#depositModal .modal-card::before{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 38%;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.00));
  mix-blend-mode: overlay;
  filter: blur(2px); /* sharpened: much smaller blur */
  opacity: 0.86;     /* slightly increased opacity for crisper highlight */
}

/* subtle inner vignette to enhance depth */
#depositModal .modal-card::after{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  /* increased inset vignette opacity so card separates more from page */
  box-shadow: inset 0 22px 44px rgba(6,10,14,0.36);
  opacity: 0.88; /* made stronger but tighter to reduce soft fade */
}

/* payment groups (panes) adapted to glass */
#depositModal .payment-group { 
  margin-bottom:10px; 
  border-radius:12px; 
  padding:10px; 
  background: linear-gradient(180deg, rgba(255,255,255,0.008), rgba(255,255,255,0.003));
  border: 1px solid rgba(255,255,255,0.12); 
  backdrop-filter: blur(8px);
  /* subtle orange inner edge */
  box-shadow: inset 0 -1px 0 rgba(255,107,53,0.012);
}

/* titles and rows tuned for higher contrast on frosted background */
#depositModal .pg-title { 
  font-weight:800; 
  margin-bottom:6px; 
  font-size:0.95rem; 
  color:#ffb98a; /* warm orange tint for titles */
  text-shadow: 0 1px 0 rgba(0,0,0,0.35);
}
/* small orange pill next to title to add a branded visual cue */
#depositModal .pg-title::before {
  content: "";
  display:inline-block;
  width:8px;
  height:8px;
  margin-right:8px;
  vertical-align:middle;
  background: linear-gradient(90deg, #ff6b35, #ff8a5a);
  border-radius:50%;
  box-shadow: 0 6px 18px rgba(255,107,53,0.08);
}

#depositModal .pg-row { 
  display:flex; 
  align-items:center; 
  justify-content:space-between; 
  gap:8px; 
  margin-bottom:6px; 
  background: transparent;
  padding:6px 4px;
  border-radius:8px;
}

/* value text slightly brighter for legibility */
#depositModal .pg-value { 
  font-size:0.92rem; 
  color:#dbe9f6; 
  min-width:0; 
  overflow:hidden; 
  text-overflow:ellipsis; 
  white-space:nowrap; 
}

/* copy button styled to match frosted glass affordance — made more translucent */
/* Add orange accent stroke and subtle glow when focused/hovered */
#depositModal .copy-btn { 
  background: linear-gradient(180deg, rgba(255,255,255,0.006), rgba(255,255,255,0.002)); 
  border: 1px solid rgba(255,255,255,0.14); 
  color:#eaf6ff; 
  padding:7px 10px; 
  border-radius:10px; 
  cursor:pointer; 
  font-weight:800; 
  font-size:0.9rem; 
  transition: transform 140ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
  box-shadow: 0 6px 18px rgba(3,8,12,0.22);
  backdrop-filter: blur(6px);
  position: relative;
  overflow: visible;
}
/* small orange accent line on left side of copy button */
#depositModal .copy-btn::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, #ff6b35, #ff8a5a);
  opacity: 0.95;
  box-shadow: 0 6px 18px rgba(255,107,53,0.06);
}
/* shift text slightly to avoid overlapping the accent */
#depositModal .copy-btn span { margin-left: 6px; }

/* hover & focus amplify orange stroke */
#depositModal .copy-btn:hover,
#depositModal .copy-btn:focus {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(255,107,53,0.08), 0 6px 24px rgba(3,8,12,0.26);
  border-color: rgba(255,107,53,0.12);
}

/* Button and note spacing adjustments for the frosted card */
#depositModal .modal-note { color: rgba(235,246,255,0.85); }

/* WhatsApp-like report button — MORE VISIBLE GREEN: stronger tint, higher contrast and glow */
.whatsapp-btn {
  padding:10px 16px;
  border-radius:14px;
  font-weight:900;
  box-shadow: 0 18px 40px rgba(18,140,126,0.14), 0 6px 22px rgba(18,140,126,0.06);
  border: 1px solid rgba(18,140,126,0.18);
  /* stronger green gradient and slightly more opaque so it pops against the translucent modal */
  background: linear-gradient(90deg, rgba(37,211,102,0.18), rgba(21,122,86,0.18));
  color: #ffffff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding:12px 18px;
  letter-spacing:0.3px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  text-decoration:none;
  border-radius:12px;
  transition: transform 140ms ease, box-shadow 180ms ease;
  position: relative;            /* for sheen pseudo-element */
  overflow: hidden;              /* clip the animated sheen */
}
/* animated green edge sheen */
.whatsapp-btn::before {
  content: "";
  position: absolute;
  left: -40%;
  top: -40%;
  width: 180%;
  height: 180%;
  background: linear-gradient(120deg,
    rgba(37,211,102,0.00) 0%,
    rgba(37,211,102,0.12) 35%,
    rgba(255,255,255,0.14) 50%,
    rgba(37,211,102,0.12) 65%,
    rgba(37,211,102,0.00) 100%);
  transform: translateX(-100%) translateY(0) rotate(6deg);
  filter: blur(8px);
  opacity: 0.95;
  mix-blend-mode: screen;
  pointer-events: none;
  transition: opacity 220ms ease;
  animation: greenSweep 2.6s linear infinite;
  border-radius: 14px;
}

/* slightly intensify on hover */
.whatsapp-btn:hover::before {
  opacity: 1;
  filter: blur(6px);
  animation-duration: 1.9s;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .whatsapp-btn::before { animation: none !important; opacity: 0.85; filter: blur(6px); }
}

/* keyframe that sweeps the sheen around the button edges */
@keyframes greenSweep {
  0% { transform: translateX(-110%) translateY(0) rotate(6deg); }
  30% { transform: translateX(-20%) translateY(0) rotate(6deg); }
  55% { transform: translateX(20%) translateY(-6%) rotate(6deg); }
  80% { transform: translateX(80%) translateY(-20%) rotate(6deg); }
  100% { transform: translateX(160%) translateY(-40%) rotate(6deg); }
}

/* WhatsApp-like report button (keep legacy visuals from before but more frosted) */
.whatsapp-btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 14px;
  color: #ffffff;
  font-weight:800;
  border-radius:12px;
  text-decoration:none;
}
.whatsapp-btn:active { transform: translateY(1px); filter:brightness(0.98); }
.whatsapp-btn:hover { box-shadow: 0 18px 40px rgba(18,140,126,0.12); }

/* Orders modal specific visuals (match deposit modal glass style, responsive) */
#ordersModal .modal-card {
  padding:16px;
  /* stronger translucent glass so content stands out more while keeping frosted effect */
  background: linear-gradient(180deg, rgba(255,255,255,0.018), rgba(255,255,255,0.008));
  /* increase base alpha to improve readability */
  background-color: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius:18px;
  /* Deeper shadow and stronger rim to separate from page */
  box-shadow:
    0 26px 64px rgba(4,10,20,0.62),
    0 0 34px rgba(255,107,53,0.04),
    0 0 12px rgba(18,140,126,0.12),
    0 0 4px rgba(18,140,126,0.08),
    0 0 10px rgba(255,255,255,0.06);
  backdrop-filter: blur(22px) saturate(1.05);
  -webkit-backdrop-filter: blur(22px) saturate(1.05);
  overflow: hidden;
  position: relative;
  /* slightly stronger base tint so content reads better over varied backgrounds */
  /* ORANGE accent: faint warm rim to link modal to brand */
  border-image: linear-gradient(90deg, rgba(255,107,53,0.07), rgba(255,138,90,0.05)) 1;
  /* bring modal visually forward */
  z-index: 700;
}

/* NEW: disable the animated sheen specifically on the "Cancelar" button inside the must-login modal */
#mustLoginCancel.whatsapp-btn::before {
  display: none !important;
  animation: none !important;
  opacity: 0 !important;
  transition: none !important;
}

/* Also ensure hover doesn't re-enable it for that button */
#mustLoginCancel.whatsapp-btn:hover::before {
  display: none !important;
  animation: none !important;
  opacity: 0 !important;
  transition: none !important;
}

/* NEW: add faint diffused white border/glow for orders modal to boost contrast */
#ordersModal .modal-card {
  box-shadow:
    0 36px 90px rgba(3,8,14,0.72),
    0 0 46px rgba(255,107,53,0.05),
    0 0 40px rgba(18,140,126,0.10),
    0 0 22px rgba(255,255,255,0.10); /* intensified white halo */
  border: 1px solid rgba(255,255,255,0.14); /* stronger white border */
}

/* Add a slightly brighter glossy top strip and a stronger inner vignette for depth */
#ordersModal .modal-card::before{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 34%;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.00));
  mix-blend-mode: overlay;
  filter: blur(2px); /* sharpened */
  opacity: 0.86;     /* crisper highlight */
}
#ordersModal .modal-card::after{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  /* stronger inset vignette so edges read more clearly */
  box-shadow: inset 0 28px 56px rgba(4,10,14,0.44);
  opacity: 0.88; /* slightly higher opacity and tighter vignette for sharper edge */
}

/* wrapper that constrains table height and enables internal scrolling */
#ordersModal .orders-table-wrap {
  max-height: 52vh; /* responsive: fits within viewport, allows scrolling inside modal */
  overflow: auto;
  border-radius: 12px;
  padding: 8px;
  /* make the inner pane slightly more translucent but with clearer border */
  background: linear-gradient(180deg, rgba(255,255,255,0.008), rgba(255,255,255,0.004));
  border: 1px solid rgba(255,255,255,0.12); /* stronger white border */
  box-shadow: inset 0 6px 18px rgba(0,0,0,0.22);
  /* subtle warm tint to help contrast table rows */
  background-color: rgba(255,255,255,0.012);
}

/* table base reset */
.orders-table {
  width:100%;
  border-collapse: collapse;
  min-width: 620px; /* allow horizontal scroll on tiny viewports while keeping readability */
  font-size: 0.92rem;
}

/* header */
.orders-table thead th {
  text-align:left;
  padding:12px 10px;
  font-weight:800;
  color: #fff;
  background: linear-gradient(90deg, rgba(255,255,255,0.01), rgba(255,255,255,0.00));
  position: sticky;
  top: 0;
  z-index: 2;
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

/* Right-align the Qty and Price header cells to match data cells (now 5th and 6th columns) */
.orders-table thead th:nth-child(5),
.orders-table thead th:nth-child(6) {
  text-align: right;
  padding-right: 12px;
}

/* rows */
.orders-table tbody tr {
  border-bottom: 1px solid rgba(255,255,255,0.02);
  transition: background 160ms ease;
  /* Make data rows solid (non-translucent) for improved readability */
  background: #071726; /* solid dark teal/blue base that contrasts with modal */
}
.orders-table tbody tr:hover {
  background: #0b2a38; /* slightly lighter solid color on hover */
}

/* cells */
.orders-table td {
  padding:10px;
  color: #dbe9f6;
  vertical-align: middle;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  /* Ensure cells don't inherit any translucency and sit on the solid row color */
  background: transparent;
  border-right: 1px solid rgba(255,255,255,0.08); /* subtle column dividers enhanced */
}

/* ID column: bold and compact */
.orders-table td.id-cell {
  font-weight:800;
  color: var(--accent);
  width: 64px;
}

/* Date column: slightly muted */
.orders-table td.date-cell {
  color: var(--muted);
  width: 140px;
}

/* URL cell: flexible */
.orders-table td.url-cell {
  max-width: 30ch;
}

/* Service cell: flexible and slightly muted */
.orders-table td.service-cell {
  max-width: 28ch;
  color: #e8f5ff;
  font-weight:600;
  padding-left:6px;
}

/* amount and price alignment */
.orders-table td.qty-cell,
.orders-table td.price-cell {
  text-align: right;
  width: 90px;
  font-weight:700;
}

/* Status cell styling */
.orders-table td.status-cell {
  text-align: center;
  width: 110px;
  font-weight:800;
  border-radius:8px;
  padding:8px 6px;
  color:#072226;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.06); /* light border to separate pill */
}

/* status variants */
.orders-table td.status-cell.status-completado {
  /* intensified green: brighter, higher contrast */
  color: #04231a;
  background: linear-gradient(90deg, rgba(37,211,102,0.22), rgba(21,122,86,0.14));
  color: #eafff5;
  box-shadow: inset 0 1px 0 rgba(0,0,0,0.06);
}
.orders-table td.status-cell.status-pendiente {
  /* intensified orange: stronger, clearer warning tone */
  color: #6a3f05;
  background: linear-gradient(90deg, rgba(255,170,40,0.22), rgba(255,120,20,0.12));
  color: #fff7e6;
  box-shadow: inset 0 1px 0 rgba(0,0,0,0.06);
}
.orders-table td.status-cell.status-cancelado {
  /* intensified red: deeper and more prominent */
  color: #4b0b08;
  background: linear-gradient(90deg, rgba(255,80,50,0.22), rgba(220,40,30,0.12));
  color: #fff1f0;
  box-shadow: inset 0 1px 0 rgba(0,0,0,0.06);
}

/* Responsive tweaks: allow table to wrap on very narrow screens but keep scroll inside wrap */
@media (max-width:720px) {
  #ordersModal .modal-card { padding:12px; max-width:94vw; }
  .orders-table { min-width: 640px; font-size:0.88rem; } /* increased min-width slightly to account for extra columns */
  .orders-table thead th { padding:10px 8px; }
  .orders-table td { padding:8px 6px; }
}

/* ensure modal close button remains visible on the orders modal */
#ordersModal .modal-close { z-index: 6; }

/* =========================
   High contrast for the Order Issue modal and change "Sí" button to red
   ========================= */

/* Give the order-issue modal a distinct high-contrast card so it reads above page */
#orderIssueModal .modal-card {
  background: linear-gradient(180deg, #0f1620 0%, #07101a 100%); /* darker, richer base */
  border: 1px solid rgba(255,255,255,0.16); /* stronger light border to separate from backdrop */
  box-shadow:
    0 30px 80px rgba(2,6,23,0.82),
    0 0 18px rgba(0,0,0,0.6); /* reduced outer blur for a firmer edge */
  backdrop-filter: blur(4px) saturate(1.05); /* less blur to make card crisper */
  -webkit-backdrop-filter: blur(4px) saturate(1.05);
  padding: 18px;
  border-radius: 14px;
  position: relative;
  z-index: 900;
}

/* make the header and summary text pop */
#orderIssueModal h3 {
  color: #ffffff;
  margin: 6px 0 8px 0;
}
#orderIssueModal #orderIssueSummary {
  color: #dbeef6;
  font-weight:600;
}

/* ensure the modal close button is visible */
#orderIssueModal .modal-close {
  color: #cfd9e3;
  right:12px;
  top:8px;
  z-index: 10;
}

/* Style the action buttons bar with clearer separation */
#orderIssueModal .whatsapp-btn,
#orderIssueModal .btn-primary {
  min-width: 120px;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 800;
  box-shadow: 0 14px 36px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.04);
}

/* Override the green WhatsApp-like style for the "Sí" button to be vivid red */
#orderIssueModal .whatsapp-btn {
  /* vivid red gradient and stronger contrast */
  background: linear-gradient(90deg, rgba(255,72,58,0.98), rgba(219,42,30,0.98));
  color: #fff;
  border: 1px solid rgba(255,80,58,0.18);
  box-shadow: 0 18px 44px rgba(219,42,30,0.18), 0 6px 20px rgba(0,0,0,0.45);
  text-shadow: 0 1px 0 rgba(0,0,0,0.25);
}

/* subtle sheen for the red button */
#orderIssueModal .whatsapp-btn::before {
  background: linear-gradient(120deg, rgba(255,255,255,0.06), rgba(255,255,255,0.14), rgba(255,255,255,0.06));
  opacity: 0.7;
  filter: blur(8px);
}

/* make the "No" button clearly secondary but readable on dark bg */
#orderIssueModal .btn-primary {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: inset 0 -1px 0 rgba(255,255,255,0.02);
}

/* Ensure focus ring is visible for keyboard users */
#orderIssueModal .whatsapp-btn:focus,
#orderIssueModal .btn-primary:focus {
  outline: 3px solid rgba(255,72,58,0.14);
  outline-offset: 2px;
}

/* Make sure modal background overlay is slightly darker to increase contrast */
#orderIssueModal {
  background: rgba(2,6,23,0.84);
}

/* Support contact block pinned after footer: compact frosted card with WhatsApp CTA */
.support-contact {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 14px 0 6px 0;
  margin-top: -8px;
  box-sizing: border-box;
}
/* Changed: make support card stack & center by default (so desktop shows phone-like layout) */
.support-contact-card{
  width:100%;
  max-width:980px;
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:space-between;
  padding:12px;
  border-radius:12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.012), rgba(255,255,255,0.006));
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 14px 40px rgba(2,6,23,0.55);
  backdrop-filter: blur(10px);
}

/* Center texts and stack button below text (phone-like) on all viewports */
.support-contact-card {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap:10px;
  padding:14px;
}
/* make left section center-align and stretch limited width */
.support-contact .sc-left { display:flex;flex-direction:column;gap:6px;min-width:0;align-items:center;justify-content:center; }

/* Center the "¿Necesitas ayuda?" headline */
.support-contact .sc-title { font-weight:900; font-size:1rem; color:#fff; text-align:center; }
.support-contact .sc-sub { color:var(--muted); font-size:0.92rem; text-align:center; }

/* Right area becomes full-width button placed below the text */
.support-contact .sc-right { display:flex;align-items:center;gap:8px;width:100%;justify-content:center;margin-left:0; }

/* reuse whatsapp-btn but slightly smaller for inline placement */
.support-contact .sc-btn {
  padding:10px 14px;
  font-weight:900;
  border-radius:12px;
  min-width:220px; /* keep a reasonable button width on desktop */
  text-align:center;
  box-shadow: 0 18px 40px rgba(18,140,126,0.12);
  border: 1px solid rgba(18,140,126,0.16);
}

/* compact responsive layout */
@media (max-width:720px){
  .support-contact-card { flex-direction: column; align-items:stretch; gap:10px; padding:10px; }
  .support-contact .sc-right { margin-left:0; display:flex; justify-content:center; }
  .support-contact .sc-btn { width:100%; min-width:0; }
}

/* Center hero-left paragraphs on larger screens (desktop) (changed to justified) */
@media (min-width:881px) {
  .hero-left p {
    text-align: justify;
    margin-left: auto;
    margin-right: auto;
    max-width: 54ch; /* keep readable line length */
  }
}

/* Add hover/-focus micro-interactions for icons, items and buttons */
.item,
.item img,
.item .logo-caption,
.account-options-btn,
.cta,
.btn-primary,
.whatsapp-btn,
.copy-btn,
.feature {
  transition: transform 180ms ease, box-shadow 200ms ease, filter 180ms ease, opacity 160ms ease;
  will-change: transform, box-shadow, filter;
}

/* Hover effects for carousel items */
.item:hover{
  transform: translateY(-6px) scale(1.08);
  box-shadow: 0 26px 56px rgba(0,0,0,0.5);
  z-index: 30;
}
.item:hover img{
  filter: saturate(1.12) contrast(1.04) drop-shadow(0 8px 20px rgba(0,0,0,0.45));
}

/* Slight lift for the logo caption too */
.item:hover .logo-caption{
  transform: translateX(-50%) translateY(-4px);
  opacity: 0.98;
}

/* Buttons micro-interactions */
.cta:hover,
.btn-primary:hover,
.whatsapp-btn:hover,
.copy-btn:hover,
.account-options-btn:hover {
  transform: translateY(-4px);
  filter: brightness(1.03) saturate(1.02);
  box-shadow: 0 18px 44px rgba(0,0,0,0.36);
}

/* Stronger focus-visible for keyboard users */
.cta:focus,
.btn-primary:focus,
.whatsapp-btn:focus,
.copy-btn:focus,
.account-options-btn:focus,
.item:focus,
.feature:focus {
  outline: 3px solid rgba(255,107,53,0.10);
  outline-offset: 3px;
  transform: translateY(-4px) scale(1.02);
}

/* Remove focus/selection ring specifically for carousel items (disable the visible outline/ring) */
.item:focus,
.item:focus-visible {
  outline: none !important;
  outline-offset: 0 !important;
}

/* Subtle hover accent for account options combined button (avatar+hamburger) */
.account-options-btn:hover .hamburger i {
  transform: translateX(2px);
  opacity: 1;
}

/* Copy button tactile press state */
.copy-btn:active,
.cta:active,
.btn-primary:active,
.whatsapp-btn:active,
.account-options-btn:active {
  transform: translateY(1px) scale(0.995);
  box-shadow: 0 8px 20px rgba(0,0,0,0.35);
}

/* Feature card hover lift (desktop pointer only) */
@media (hover: hover) and (pointer: fine) {
  .feature:hover{
    transform: translateY(-10px);
    box-shadow: 0 26px 56px rgba(2,6,23,0.62);
  }
  .feature:hover .feature-icon {
    transform: translateY(-3px);
    filter: drop-shadow(0 8px 18px rgba(0,0,0,0.45));
  }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .item,
  .item img,
  .account-options-btn,
  .cta,
  .btn-primary,
  .whatsapp-btn,
  .copy-btn,
  .feature,
  .item .logo-caption {
    transition: none !important;
    transform: none !important;
  }
}

/* Modern scrollbar nicety for the orders table wrap (components file scoped)
   improves visibility in modal with rounded thumb and subtle glow */
#ordersModal .orders-table-wrap::-webkit-scrollbar {
  width: 12px;
}
#ordersModal .orders-table-wrap::-webkit-scrollbar-track {
  background: linear-gradient(180deg, rgba(255,255,255,0.008), rgba(255,255,255,0.004));
  border-radius: 999px;
}
#ordersModal .orders-table-wrap::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(255,107,53,0.18), rgba(255,107,53,0.26));
  border-radius: 999px;
  border: 2px solid rgba(0,0,0,0.12);
  box-shadow: 0 12px 30px rgba(255,107,53,0.06);
}

/* Firefox support for the orders pane */
#ordersModal .orders-table-wrap {
  scrollbar-width: thin;
  scrollbar-color: rgba(255,107,53,0.22) rgba(255,255,255,0.02);
}

/* Respect reduced motion for modal scrollbar hover effects */
@media (prefers-reduced-motion: reduce) {
  #ordersModal .orders-table-wrap::-webkit-scrollbar-thumb { transition: none !important; }
}

/* =========================
   Desktop-enhanced select styling
   ========================= */

/* Only apply the enhanced select visuals on wider (desktop) viewports */
@media (min-width:881px) {
  /* make label a positioned container to host the faux arrow */
  .form label {
    position: relative;
  }

  /* nicer select appearance */
  .form select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 14px; /* removed extra room for arrow */
    padding-left: 14px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255,255,255,0.022), rgba(255,255,255,0.01));
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow:
      inset 0 6px 18px rgba(255,255,255,0.02), /* soft inner highlight */
      0 10px 30px rgba(2,6,23,0.36);
    transition: box-shadow 180ms ease, transform 160ms ease, border-color 180ms ease, background 180ms ease;
    color: #eaf2ff;
    font-weight:700;
    font-size:0.95rem;
    line-height:1;
    display:block;
    width:100%;
    box-sizing:border-box;
    backdrop-filter: blur(8px) saturate(1.05);
  }

  /* focus state: warmer glass ring and subtle lift */
  .form select:focus {
    border-color: rgba(255,107,53,0.28);
    box-shadow:
      inset 0 6px 18px rgba(255,255,255,0.025),
      0 18px 48px rgba(2,6,23,0.48),
      0 0 0 8px rgba(255,107,53,0.06);
    transform: translateY(-2px);
    outline: none;
    background: linear-gradient(180deg, rgba(255,255,255,0.028), rgba(255,255,255,0.015));
    backdrop-filter: blur(10px) saturate(1.05);
  }

  /* Stronger "opened" / contrast state to make dropdown panel read against the dark page.
    Modern browsers render the panel differently; this gives the field itself a higher-contrast
    appearance when focused/open and attempts to style option list where supported. */
  .form select:focus,
  .form select:active {
    background-color: #0b2a36; /* deeper, distinct tone from page gradient */
    border: 1px solid rgba(255,107,53,0.22);
    box-shadow:
      inset 0 8px 22px rgba(0,0,0,0.55),
      0 22px 56px rgba(2,6,23,0.64),
      0 0 0 10px rgba(255,107,53,0.04);
    color: #f5fbff;
    transform: translateY(-2px);
  }

  /* Attempt to style native option list where browsers respect it (Chromium-based). */
  .form select option {
    background-color: #061922; /* dark but visibly different than page base */
    color: #f3fbff;
    padding: 10px 12px;
  }

  /* For WebKit engines that render a pseudo-popup, increase highlight visibility */
  .form select::-webkit-calendar-picker-indicator,
  .form select::-webkit-contacts-auto-fill-button { display: none; }

  /* Provide a more prominent hover/active style for options in engines that support it */
  .form select option:hover,
  .form select option:focus {
    background-color: #0f3a44;
    color: #ffffff;
  }

  /* Removed focus-within arrow transform since arrow pseudo-element was removed */
  /* .form label:focus-within::after { ... } */

  /* ensure the faux arrow darkens slightly on hover for affordance */
  /* .form label:hover::after { ... } */

  /* adjust select text alignment and caret contrast */
  .form select option {
    color: #041224;
  }

  /* For selects inside modals where background is lighter, increase contrast for the field */
  .modal .form select {
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
    color: #081322;
    box-shadow:
      inset 0 6px 14px rgba(255,255,255,0.02),
      0 8px 28px rgba(2,6,23,0.30);
  }

  /* slightly larger clickable area for the label on desktop to match iPhone's roomy touch targets */
  .form label { padding-right: 6px; }

  /* subtle pressed state for desktop pointerdown */
  .form select:active {
    transform: translateY(0);
    box-shadow:
      inset 0 4px 12px rgba(255,255,255,0.01),
      0 8px 20px rgba(2,6,23,0.28);
  }

  /* Hide native IE/Edge expand arrow to rely on our styling */
  .form select::-ms-expand { display: none; }
  
  /* Style the options panel for browsers that respect option styling (e.g., Chromium builds) */
  .form select option {
    background-color: #07101a; /* dark frosted tone */
    color: #eaf2ff;
    padding: 8px 12px;
  }
  
  /* Attempt to style the dropdown scrollbar (Chromium) to match the site theme */
  .form select::-webkit-scrollbar {
    width: 12px;
  }
  .form select::-webkit-scrollbar-track {
    background: linear-gradient(180deg, rgba(255,255,255,0.008), rgba(255,255,255,0.004));
    border-radius: 999px;
  }
  .form select::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(255,107,53,0.18), rgba(255,107,53,0.26));
    border-radius: 999px;
    border: 2px solid rgba(0,0,0,0.12);
    box-shadow: 0 12px 30px rgba(255,107,53,0.06);
  }

  /* For Safari (which often ignores option styling) give select itself a stronger dark appearance when opened */
  .form select:focus {
    background-color: rgba(8,20,30,0.96);
  }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .form label::after,
  .form select { transition: none !important; }
}

/* Override: make select controls and their option text smaller for a more compact dropdown appearance */
.form select,
.form select option {
  font-size: 0.86rem !important; /* compact default for desktop and general contexts */
}

/* Slightly smaller on narrow screens to keep density comfortable */
@media (max-width:880px) {
  .form select,
  .form select option {
    font-size: 0.82rem !important;
  }
}

/* Keep desktop-enhanced select slightly larger than mobile but smaller than the previous value */
@media (min-width:881px) {
  .form select {
    font-size: 0.88rem !important;
  }
}

/* Modern small chevron for labels that contain a select.
   Use a rotated border trick to draw a crisp chevron without images.
   This only appears for labels that have a select (uses :has where supported). */
.form label:has(select)::after,
/* fallback for browsers without :has: target label when select is a direct child */
.form label > select + *::after {
  /* noop fallback; real visual comes from the :after on the label via :has above */
}

/* Preferred modern rule (label containing select) */
.form label:has(select)::after {
  content: "";
  position: absolute;
  right: 22px; /* moved a bit more to the left (was 18px) */
  top: 64%; /* moved lower to place chevron further down */
  transform: translateY(-36%) rotate(45deg); /* adjusted translateY to visually center after lowering */
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  border-radius: 2px;
  opacity: 0.98;
  transition: transform 220ms cubic-bezier(.2,.9,.2,1), border-color 160ms ease, opacity 160ms ease;
  pointer-events: none;
  z-index: 3;
}

/* Slightly larger and more vivid arrow on focus for affordance */
.form label:has(select):focus-within::after,
.form label:has(select) .focus-visible::after,
.form select:focus + .arrow-faux::after { /* compatibility targets */
  /* no-op fallback to keep selection; real transform below */
}

/* Move chevron upward (animate "subir") when select is focused/open/active */
.form label:has(select):focus-within::after,
.form label:has(select):active::after,
.form label:has(select) .open::after,
.form select:focus + .arrow-faux::after {
  transform: translateY(-60%) rotate(45deg) scale(1.06); /* lift the chevron upward */
  border-color: var(--accent-2);
  opacity: 1;
}

/* On pointerdown provide a quick upward impulse so it matches the select opening animation */
.form label:has(select):active::after {
  transition-duration: 160ms;
  transform: translateY(-68%) rotate(45deg) scale(1.08);
}

/* On release, return to the focused/open state smoothly */
.form label:has(select):not(:active):focus-within::after {
  transition-duration: 220ms;
  transform: translateY(-60%) rotate(45deg) scale(1.06);
}

/* Tweak small-screen arrow sizing/positioning with the same "lift" behavior */
@media (max-width:880px) {
  .form label:has(select)::after {
    right: 14px;
    width: 8px;
    height: 8px;
    border-right-width: 1.6px;
    border-bottom-width: 1.6px;
    top: 60%; /* lowered a bit more on small screens too */
    transform: translateY(-36%) rotate(45deg);
  }
  .form label:has(select):focus-within::after,
  .form label:has(select):active::after {
    transform: translateY(-56%) rotate(45deg) scale(1.04);
  }
}

/* Hide the desktop-only faux chevron on mobile to avoid overlapping/visual artifacts */
@media (max-width:880px) {
  /* Preferred modern rule (label containing select) */
  .form label:has(select)::after,
  /* Fallback target for browsers that used the adjacent selector fallback */
  .form label > select + *::after,
  /* Extra catch: if any explicit arrow element was added as .arrow-faux, hide it too */
  .arrow-faux::after,
  .form label .arrow-faux::after {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
}

/* NEW: Mobile-only stronger weight for deposit modal payment-method select and its option text
   to fix thin-looking text on small screens without affecting desktop */
@media (max-width:880px) {
  #depositModal .form select,
  #depositModal .form select option {
    font-weight: 800 !important;
    color: #081322 !important; /* ensure good contrast on the lighter deposit modal select background */
  }
}