/* Small icon next to item title in selector */
.item-pill .item-pill-row { display:flex; flex-direction: row; align-items: center; justify-content: center; gap: 8px; width: 100%; }
.item-pill .item-icon { width: 50px !important; height: 50px !important; object-fit: contain; display:inline-block; }
@media (max-width: 700px) {
  .item-pill .item-icon { width: 30px !important; height: 30px !important; }
}
/* Reduce spacing when una sola categoría está visible */
.cat-filtered .packages { padding-bottom: 0; }

/* Small-to-mid screens: avoid overflow in details items grid */
@media (max-width: 760px) {
  .details-layout { padding-left: 10px; padding-right: 10px; overflow-x: hidden; }
  .details-left, .details-right { max-width: 100%; overflow-x: hidden; }
  .details-right .step-card { width: 100%; box-sizing: border-box; overflow: visible; }
    .item-pill .t {
    font-size: 13px; font-weight: 800;
    white-space: normal; overflow-wrap: anywhere;
  }
  .item-pill .p { font-size: 12px; }
}
.packages:last-of-type { margin-bottom: 0; padding-bottom: 40px; }
.featured { padding: 14px 24px 0; max-width: 100%; margin: 0 auto; }
.packages + .site-footer { margin-top: 36px; }
.cat-filtered .site-footer { margin-top: 36px; }
/* Tighten the rail bottom padding to avoid extra gap above footer */
.packages-rail { padding-bottom: 24px; }
.cat-filtered .packages-rail { padding-bottom: 24px; }
.packages:last-of-type .packages-rail { padding-bottom: 24px; }
.cat-filtered .packages { margin-bottom: 0; }
/* Fully collapse hidden sections */
.packages[hidden] { display: none !important; margin: 0 !important; padding: 0 !important; }
.packages[hidden] .packages-rail { padding: 0 !important; }
/* Allow hiding featured similarly when JS sets hidden */
.featured[hidden] { display: none !important; margin: 0 !important; padding: 0 !important; }
.featured[hidden] .packages-rail { padding: 0 !important; }
/* Reset */
* { box-sizing: border-box; }
:root {
  /* Price text accent (blue, darker) */
  --price-accent: #1d4ed8; /* blue 700 */
  /* Action/selection accent (blue) */
  --action-accent: #1d4ed8;
}
html, body { height: 100%; width: 100%; }
/* Global background equal to card color for a uniform look */
body { margin: 0; min-height: 100vh; padding-bottom: 0; font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial; color: #e5e7eb; background: #000000; overflow-x: hidden; width: 100%; }
html { overflow-x: hidden; width: 100%; }

/* Header */
.site-header { position: sticky; top: 0; border-bottom: 1px solid #000000; background: rgba(0,0,0,0.7); z-index: 35; transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease; }
.site-header.scrolled { background: rgba(0,0,0,0.85); border-bottom-color: rgba(15,42,82,0.7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: 0 8px 24px rgba(0,0,0,0.35); }
.site-header .container { display: grid; grid-template-columns: 32px auto 1fr auto; align-items: center; gap: 10px; padding: 8px 24px; max-width: 100%; margin: 0 auto; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.logo { height: 48px; display: block; }
.logo-text { font-weight: 800; font-size: 24px; color: #fff; }
.nav { display: none; gap: 16px; }
.nav-link { color: #e2e8f0; text-decoration: none; font-weight: 600; }
.nav-link:hover { color: #fff; }
.left-actions, .right-actions { display:flex; align-items:center; }
.right-actions { justify-content: flex-end; gap: 10px; flex: 1; }
.icon-btn { background: transparent; border: none; padding: 6px; cursor: pointer; }

.header-search { position: relative; width: 100%; max-width: 420px; }
.header-search input { width: 100%; height: 38px; padding: 0 14px 0 44px; border-radius: 10px; border: 1px solid rgba(148,163,184,0.14); background: rgba(43,47,54,0.35); color: #e5e7eb; outline: none; font-weight: 700; }
.header-search input::placeholder { color: rgba(226,232,240,0.55); font-weight: 700; }
.header-search input:focus { border-color: rgba(16,185,129,0.55); box-shadow: 0 0 0 3px rgba(16,185,129,0.18); }
.header-search .search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: rgba(226,232,240,0.75); width: 18px; height: 18px; pointer-events: none; }

.search-suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  background: rgba(0,0,0,0.85);
  border: 1px solid rgba(148,163,184,0.14);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
  padding: 6px;
  z-index: 55;
}
.search-suggest[hidden] { display: none; }
.search-suggest .sg-item {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 10px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: #e5e7eb;
  cursor: pointer;
  text-align: left;
}
.search-suggest .sg-item:hover,
.search-suggest .sg-item.active {
  background: rgba(43,47,54,0.45);
  border-color: rgba(148,163,184,0.12);
}
.search-suggest .sg-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(43,47,54,0.35);
  border: 1px solid rgba(148,163,184,0.10);
  color: #10b981;
  font-weight: 900;
}
.search-suggest .sg-title { font-weight: 900; line-height: 1.1; }
.search-suggest .sg-sub { font-size: 12px; color: #94a3b8; margin-top: 2px; }

@media (max-width: 720px) {
  .header-search { max-width: 240px; }
}
@media (max-width: 520px) {
  .site-header .container { grid-template-columns: 32px 1fr 32px; gap: 8px; }
  .brand { display: inline-flex; justify-self: center; }
  .brand .logo-text { display: none; }
  .brand .logo { height: 34px; }
  .header-search { max-width: none; }
  .right-actions { flex: 0; }

  /* Mobile: show only magnifier button; expand input below header on open */
  .header-search {
    width: 38px;
    max-width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid rgba(148,163,184,0.14);
    background: rgba(43,47,54,0.35);
    display: grid;
    place-items: center;
    cursor: pointer;
  }
  .header-search input { display: none; }
  .header-search .search-icon {
    position: static;
    left: auto;
    top: auto;
    transform: none;
    width: 20px;
    height: 20px;
    pointer-events: auto;
  }

  .header-search.open {
    position: absolute;
    left: 12px;
    right: 12px;
    top: calc(100% + 8px);
    width: auto;
    max-width: none;
    height: auto;
    padding: 10px;
    background: rgba(0,0,0,0.85);
    border: 1px solid rgba(148,163,184,0.14);
    box-shadow: 0 12px 30px rgba(0,0,0,0.35);
    z-index: 45;
    cursor: default;
    display: block;
  }
  .header-search.open input {
    display: block;
    width: 100%;
    max-width: none;
  }
  .header-search.open .search-icon {
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    pointer-events: none;
  }
}

/* Auth modal (centered) */
.auth-modal[hidden] { display: none; }
.auth-modal { position: fixed; inset: 0; display: grid; place-items: center; z-index: 60; }
.auth-modal::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,0.55); backdrop-filter: blur(4px); }
.auth-card { position: relative; width: min(460px, 92vw); max-height: 90vh; overflow: auto; background: rgba(43,47,54,0.6); color: #e5e7eb; border: 1px solid rgba(148,163,184,0.1); border-radius: 20px; box-shadow: 0 50px 140px rgba(0,0,0,0.78), 0 10px 28px rgba(0,0,0,0.45); padding-bottom: 12px; }
.auth-close { position: absolute; right: 10px; top: 10px; color: #e5e7eb; background: transparent; border: 1px solid #484f59; border-radius: 8px; }
.auth-body { padding: 18px; }
.auth-title { font-size: 28px; font-weight: 800; margin-bottom: 12px; text-align: center; color: #ffffff !important; }
.auth-card .tabs-auth { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid rgba(148,163,184,0.1); background: rgba(43,47,54,0.4); border-top-left-radius: 20px; border-top-right-radius: 20px; }
.auth-card .tab-auth { appearance: none; border: none; background: transparent !important; color: #ffffff !important; padding: 12px; font-weight: 800; cursor: pointer; border-bottom: 3px solid transparent; }
.auth-card .tab-auth.active { color: #ffffff; border-bottom-color: #000000; }
.auth-card .tab-auth:hover { background: #404040 !important; }
.panel-auth[hidden] { display: none; }
.panel-auth.active { display: block; }
.form-auth { display: grid; gap: 10px; }
.form-auth label { color: #ffffff !important; font-weight: 700; }
.form-auth input { padding: 12px 14px; border: 1px solid #e2e8f0; border-radius: 12px; background: #ffffff; color: #0f172a; }
.form-auth input::placeholder { color: #64748b; }
.form-auth input:focus { outline: none; border-color: var(--price-accent); box-shadow: 0 0 0 3px rgba(37,99,235,0.25); }

/* Fix browser autofill light background in modal */
.form-auth input:-webkit-autofill,
.form-auth input:-webkit-autofill:hover,
.form-auth input:-webkit-autofill:focus {
  -webkit-text-fill-color: #0f172a !important;
  -webkit-box-shadow: 0 0 0px 1000px #ffffff inset !important;
  box-shadow: 0 0 0px 1000px #ffffff inset !important;
  caret-color: #0f172a !important;
}
.password-field { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; }
.password-field .icon-eye { background: transparent; border: none; color: #e5e7eb; cursor: pointer; padding: 0 8px; }
.helper-row { text-align: right; }
.link { color: var(--price-accent); text-decoration: none; }
.btn.full { width: 100%; }

/* Visual polish for modal to match reference */
.panel-auth .form-auth { position: relative; padding-top: 14px; }
.panel-auth .form-auth::before {
  content: 'o';
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--price-accent);
  font-weight: 800;
}
.panel-auth .form-auth::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(29,78,216,0.15), rgba(29,78,216,0.6), rgba(29,78,216,0.15));
}
.helper-row, .auth-body .link { color: rgba(255,255,255,0.9) !important; }
.btn.primary.full { background: var(--price-accent); border-color: var(--price-accent); color: #0b0f14; box-shadow: 0 6px 16px rgba(16,185,129,0.35); font-weight: 900; }
.btn.primary.full:hover { filter: brightness(1.05); }

/* Alerts inside modal */
.alert { margin: 8px 0 6px; padding: 10px 12px; border-radius: 10px; font-weight: 700; }
.alert.success { background: rgba(16,185,129,0.15); color: #bbf7d0; border: 1px solid rgba(16,185,129,0.35); }
.alert.error { background: rgba(239,68,68,0.15); color: #fecaca; border: 1px solid rgba(239,68,68,0.35); }

/* Header user label (when logged in) */
.user-label { color: #e2f5ec; font-weight: 700; margin-left: 6px; font-size: 14px; }

/* Phone adjustments: smaller but centered */
@media (max-width: 600px) {
  .auth-card { width: 92vw; border-radius: 14px; }
  .auth-title { font-size: 22px; }
  .tab-auth { padding: 10px; font-weight: 700; }
}

/* Hero full-width carousel */
/* Fallback full-bleed using 100vw */
.hero-full { position: relative; width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); overflow: hidden; height: clamp(160px, 26vw, 360px); background: #0b0f14; transform: none; }
.hero-full, .hero-track, .hero-slide { border-radius: 0 !important; }
/* Prefer small-viewport units when supported to avoid browser UI insets */
@supports (width: 100svw) {
  .hero-full { width: 100svw; left: 50%; right: 50%; margin-left: -50svw; margin-right: -50svw; }
}
.hero-track { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; filter: brightness(0.92); opacity: 0; transition: opacity 400ms ease; }
.hero-slide.active { opacity: 1; }
.hero-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; background: rgba(0,0,0,0.65); color: #fff; border: 1px solid rgba(255,255,255,0.12); width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center; cursor: pointer; }
.hero-nav.prev { left: 12px; }
.hero-nav.next { right: 12px; }
.hero-dots { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 2; }
.hero-dots .dot { width: 8px; height: 8px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.6); background: rgba(255,255,255,0.35); cursor: pointer; }
.hero-dots .dot.active { background: #94a3b8; border-color: #94a3b8; }
.hero-gradient { position: absolute; inset: 0; background: radial-gradient(120% 120% at 10% 0%, rgba(0,0,0,0.0) 0%, rgba(0,0,0,0.35) 60%, rgba(0,0,0,0.55) 100%); pointer-events: none; }

/* Full-bleed hardening */
.hero-full { padding-left: 0 !important; padding-right: 0 !important; margin-top: 0; margin-bottom: 0; border: none; }

/* Buttons */
.btn { display: inline-block; border: 1px solid #000000; background: #000000; color: white; padding: 10px 14px; border-radius: 8px; text-decoration: none; font-weight: 700; }
.btn.primary { background: #000000; border-color: #000000; }
.btn.primary:hover { background: #000000; border-color: #000000; }

/* Make verify button easier to click on desktop */
#btn-verify-player {
  min-height: 44px;
  min-width: 120px;
  padding: 12px 18px;
  position: relative;
  z-index: 2;
}

/* Price-green accent on key action buttons */
#btn-buy.btn.primary,
#btn-confirm-pay.btn.primary,
#btn-co-confirm.btn.primary {
  background: #10b981;
  border-color: #10b981;
  color: #0b0f14;
  box-shadow: 0 6px 16px rgba(16,185,129,0.28);
}
#btn-buy.btn.primary:hover,
#btn-confirm-pay.btn.primary:hover,
#btn-co-confirm.btn.primary:hover {
  filter: brightness(1.05);
}
/* Make the Paste button transparent with visible text and green color */
#btn-paste-ref {
  background: transparent !important;
  border-color: transparent !important;
  color: var(--price-accent) !important;
  font-weight: 900;
  box-shadow: none !important;
}
#btn-paste-ref:hover { opacity: 0.9; }

/* Checkout discount breakdown */
#co-disc-note {
  background: rgba(43,47,54,0.4);
/* ... */
  border: 1px solid rgba(148,163,184,0.1);
  border-radius: 14px;
  padding: 14px 16px;
  color: #e5e7eb;
  text-align: center;
  max-width: 720px;
  margin: 10px auto 0;
}
#co-disc-note .co-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.25);
  color: #ffffff;
  font-weight: 900;
  padding: 6px 10px;
  border-radius: 8px;
  margin-bottom: 8px;
}
#co-disc-note .co-badge svg { width: 16px; height: 16px; }
#co-disc-note .co-old { text-decoration: line-through; opacity: 0.6; margin-top: 6px; display:block; }
#co-disc-note .co-qty { margin-top: 6px; }
#co-disc-note .co-unit { margin-top: 2px; }
#co-disc-note .co-total { margin-top: 8px; font-size: 22px; font-weight: 900; color:#e5e7eb; }
#co-disc-note .co-thanks { margin-top: 4px; font-size: 12px; color: #94a3b8; }

/* Hide legacy green banner on checkout (content still updated for accessibility) */
#co-total { display: block !important; }

/* Auth modal: make primary button gray */
.auth-card .btn.primary,
.auth-card .btn.primary.full {
  background: #000000; /* darker navy */
  border-color: #000000;
  color: #e5e7eb;
  box-shadow: 0 6px 16px rgba(0,0,0,0.35);
}
.auth-card .btn.primary:hover,
.auth-card .btn.primary.full:hover { background: #000000; border-color: #000000; }

/* Packages carousel */
.packages { padding: 14px 24px 0; max-width: 100%; margin: 0 auto; }
/* Featured uses same head/rail/card styles, only container differs */
.featured .packages-head { display:flex; align-items:center; justify-content: space-between; margin-bottom: 16px; }
/* Extra breathing room under Juegos Mobile title */
#pkgs-mobile .packages-head { margin-bottom: 18px; }
.featured .packages-title { margin: 0; color: #ffffff; font-size: 18px; }
.featured .packages-nav { display:flex; gap: 8px; }
.packages-head { display:flex; align-items:center; justify-content: space-between; margin-bottom: 10px; }
.packages-title { margin: 0; color: #ffffff; }
.packages-nav { display:flex; gap: 8px; }
/* Center title for Related Packages section */
#related-packages .packages-head { justify-content: center; }
#related-packages .packages-title { text-align: center; }
.packages-nav button { width: 34px; height: 34px; border-radius: 8px; border: 1px solid #2a2a2a; background: #111111; color: #e5e7eb; cursor: pointer; }
.packages-rail { display:flex; gap: 22px; overflow-x: auto; scroll-behavior: smooth; padding-bottom: 8px; justify-content: center; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; touch-action: pan-x;
  /* Hide scrollbar line while keeping scroll */
  -ms-overflow-style: none; /* IE/Edge */
  scrollbar-width: none;    /* Firefox */
}
/* Remove legacy margin fallback to avoid double-spacing when gap is supported */
.packages-rail .pkg-card { margin-right: 0; }
/* WebKit browsers: hide scrollbar track */
.packages-rail::-webkit-scrollbar { display: none; }

.pkg-card { min-width: 190px; max-width: 220px; background: rgba(43,47,54,0.4); border: 1px solid rgba(148,163,184,0.1); border-radius: 18px; padding: 12px 12px 14px; color: #fff; box-shadow: 0 8px 20px rgba(0,0,0,0.35); flex: 0 0 auto; }
/* Desktop: show exactly 5 cards per row using grid */
@media (min-width: 768px) {
  .packages-rail {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 20px !important;
    overflow: hidden !important;
    /* Show only first row: card ~= aspect 1:1 + name + padding; clip everything else */
    grid-template-rows: auto !important;
    grid-auto-rows: 0 !important;
    row-gap: 0 !important;
  }
  .packages-rail > .pkg-card:nth-child(n+6) {
    visibility: hidden;
    height: 0;
    padding: 0;
    margin: 0;
    border: none;
    overflow: hidden;
  }
  .packages-rail .pkg-card {
    min-width: 0 !important;
    max-width: none !important;
    width: 100% !important;
    flex: none !important;
  }
  /* Best sellers: keep 5 columns but smaller gap */
  #best-sellers .packages-rail {
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 18px !important;
    row-gap: 0 !important;
  }
}
.pkg-thumb { width: 100%; aspect-ratio: 1 / 1; background-size: contain; background-position: center; background-repeat: no-repeat; background-color: rgba(0,0,0,0.1); border-radius: 16px; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05); }
.pkgs-mobile .pkg-thumb { margin-bottom: 10px; }
#pkgs-mobile .pkg-thumb { margin-bottom: 10px; }
.pkg-name { text-align: center; margin: 10px 0 0; font-size: 18px; font-weight: 900; text-shadow: 0 1px 0 rgba(0,0,0,0.3); }

/* Smaller cards in Best Sellers */
#best-sellers .packages-rail { gap: 18px; }
#best-sellers .pkg-card { min-width: 150px; max-width: 180px; padding: 8px 8px 10px; border-radius: 14px; }
#best-sellers .pkg-thumb { border-radius: 12px; }
#best-sellers .pkg-name { font-size: 14px; margin-top: 6px; }
/* Extra spacing between Best Sellers and Juegos Mobile */
#best-sellers { margin-bottom: 40px; }

/* Extra spacing below Juegos Mobile before mid-page banner */
#pkgs-mobile { margin-bottom: 60px; }
#pkgs-mobile .packages-rail { padding-bottom: 16px; }
@media (max-width: 700px) {
  #pkgs-mobile { margin-bottom: 20px; }
}

/* Mid-page banner spacing aligned with sections */
.mid-banner { padding: 0 24px; max-width: 100%; margin: 0 auto 60px; }
@media (max-width: 700px) {
  .mid-banner { padding: 0 2px; margin-bottom: 20px; }
}
/* Hide mid-banner when a category is active */
.cat-filtered .mid-banner { display: none !important; margin: 0 !important; padding: 0 !important; }

/* Tablet: keep horizontal scroll behavior */
@media (min-width: 600px) and (max-width: 900px) {
  .packages-rail { display: flex; gap: 22px; overflow-x: auto; justify-content: center; }
  .pkg-card { min-width: 190px; max-width: 220px; }
}

/* ==============================
   Categories as vertical grids (only when filtering a category)
   Applies ONLY when body has .cat-filtered
   - 4 per row on desktop
   - 2 per row on phones
   ============================== */
/* Hide carousel nav in category sections when filtered */
.cat-filtered #pkgs-mobile .packages-head .packages-nav,
.cat-filtered #pkgs-gift .packages-head .packages-nav { display: none !important; }
/* Grid layout for category rails when filtered */
.cat-filtered #pkgs-mobile .packages-rail,
.cat-filtered #pkgs-gift .packages-rail {
  display: grid !important;
  /* Auto-fit columns between 200-220px to avoid leftover space and center neatly */
  grid-template-columns: repeat(auto-fit, minmax(200px, 220px));
  gap: 14px;
  overflow: visible !important; /* no horizontal scroll */
  justify-content: center; /* center within container */
  place-content: center; /* ensure both axes centering for the grid */
  margin-left: auto; margin-right: auto; /* center the rail itself */
  padding-left: 0 !important; padding-right: 0 !important; /* drop carousel gutters */
  scroll-snap-type: none !important; /* avoid snapping to right on phones */
}
/* In grid mode, allow cards to be fluid inside columns (override carousel fixed widths) */
.cat-filtered #pkgs-mobile .pkg-card,
.cat-filtered #pkgs-gift .pkg-card {
  min-width: 0;
  max-width: none;
  width: 100%;
}
/* Phones: 2 per row */
@media (max-width: 700px) {
  .cat-filtered #pkgs-mobile .packages-rail,
  .cat-filtered #pkgs-gift .packages-rail {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  /* Ensure cards fill their grid column fully on phones */
  .cat-filtered #pkgs-mobile .pkg-card,
  .cat-filtered #pkgs-gift .pkg-card {
    width: 100%;
  }
}

/* Features */
.features { padding: 32px 16px; }
.features .container { max-width: 100%; margin: 0 auto; padding: 0 24px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { border: 1px solid rgba(148,163,184,0.22); border-radius: 10px; padding: 16px; background: #0b0f14; color: #e5e7eb; box-shadow: 0 1px 2px rgba(0,0,0,0.3); }

/* Overlay and Drawers */
.overlay[hidden] { display: none; }
.overlay { position: fixed; inset: 0; background: rgba(2, 6, 23, 0.45); z-index: 40; }

/* User page form theming */
.user-card label { color: #ffffff !important; font-weight: 700; }
.user-card .input { width: 100%; padding: 12px 14px; border: 1px solid rgba(148,163,184,0.1); border-radius: 10px; background: rgba(43,47,54,0.3); color: #e2e8f0; }
.user-card .input::placeholder { color: #94a3b8; }
/* Fix browser autofill to dark background */
.user-card .input:-webkit-autofill,
.user-card .input:-webkit-autofill:hover,
.user-card .input:-webkit-autofill:focus {
  -webkit-text-fill-color: #e2e8f0 !important;
  -webkit-box-shadow: 0 0 0px 1000px #0a0f15 inset !important;
  box-shadow: 0 0 0px 1000px #0a0f15 inset !important;
  caret-color: #e2e8f0 !important;
}

.drawer { position: fixed; top: 0; bottom: 0; width: 300px; background: #2b2f36; border: 1px solid #484f59; box-shadow: 0 20px 60px rgba(0,0,0,0.45); z-index: 50; transition: transform 200ms ease; color:#e5e7eb; }
.drawer.left { left: 0; transform: translateX(-100%); }
.drawer.right { right: 0; transform: translateX(100%); }
.drawer.left:not([hidden]) { transform: translateX(0); }
.drawer.right:not([hidden]) { transform: translateX(0); }
.drawer-header { display:flex; align-items:center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid #484f59; color:#e5e7eb; }
.drawer-header .close-left { color: #e5e7eb; border: 1px solid rgba(148,163,184,0.35); background: transparent; border-radius: 8px; padding: 4px 8px; }
.drawer-header .close-left:hover { background: rgba(148,163,184,0.12); }
.drawer-nav { display:flex; flex-direction: column; padding: 12px; gap: 8px; }
.drawer-nav a { color: #e5e7eb; text-decoration: none; padding: 8px 10px; border-radius: 8px; }
.drawer-nav a:hover { background: #30353c; }

/* Drawer: Categorías section */
.drawer-section { padding: 12px; border-top: 1px solid #484f59; }
.drawer-title { display:flex; align-items:center; justify-content: space-between; font-weight: 900; color: #e5e7eb; letter-spacing:.3px; }
.drawer-list { display:grid; gap: 10px; margin-top: 10px; }
.drawer-item { display:flex; align-items:center; justify-content: space-between; padding: 10px 12px; border-radius: 10px; border:1px solid #484f59; background: #262b32; color:#e5e7eb; font-weight:800; cursor:pointer; }
.drawer-item:hover { background: #30353c; border-color: #56606c; }

/* Auth drawer */
.tabs-auth { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid #e2e8f0; }
.tab-auth { appearance: none; border: none; background: #ffffff; padding: 10px; font-weight: 700; cursor: pointer; border-bottom: 2px solid transparent; }
.tab-auth.active { border-bottom-color: var(--price-accent); color: #e5e7eb; }
.drawer-body { padding: 12px; }
.panel-auth[hidden] { display: none; }
.panel-auth.active { display: block; }
.form-auth { display: grid; gap: 8px; }
.form-auth label { font-weight: 600; color: #334155; }
.form-auth input { padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 8px; }
.form-auth .btn { width: 100%; text-align: center; }

/* Uniform scaling only, keep same layout */
@media (max-width: 900px) {
  /* Public storefront: no scaling wrapper to keep full-bleed sections exact */
  .scale-wrap { transform: none !important; width: 100% !important; }
  /* Make hero a bit shorter on tablets */
  .hero-full { height: clamp(200px, 34vw, 420px); }
  .hero-nav { width: 34px; height: 34px; }
}
@media (max-width: 600px) {
  .scale-wrap { transform: none !important; width: 100% !important; }
  .brand { justify-content: center; }
  .drawer { width: 88vw; }
  .site-header .container { grid-template-columns: 28px 1fr 28px; gap: 4px; padding: 6px 10px; }
  .logo { height: 36px; }
  /* Compact hero on phones with ~3:1 aspect ratio and edge-to-edge fill */
  .hero-full { height: clamp(120px, 34vw, 300px); }
  .hero-slide { background-size: cover; background-repeat: no-repeat; background-color: #000; }
  .hero-nav { width: 28px; height: 28px; }
  .hero-dots .dot { width: 6px; height: 6px; }

  /* Hide game description on mobile */
  .game-desc { display: none; }

  /* Packages: carousel with 2 cards visible on phones */
  .packages { padding-left: 12px; padding-right: 12px; overflow: hidden; }
  .featured { padding-left: 12px; padding-right: 12px; }
  .packages-rail { --rail-gap: 12px; display: flex; gap: var(--rail-gap); overflow-x: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; touch-action: pan-x; flex-wrap: nowrap; justify-content: flex-start; padding-left: 0; padding-right: 0; }
  /* Two cards per view filling exactly 100% */
  .pkg-card { flex: 0 0 calc(50% - 6px); min-width: calc(50% - 6px); max-width: calc(50% - 6px); scroll-snap-align: start; margin: 0; }
  /* Best Sellers: 3 per row on phones */
  #best-sellers .packages-rail { --rail-gap: 10px; gap: var(--rail-gap); justify-content: flex-start; padding-left: 6px; padding-right: 6px; }
  /* Three cards per view: slightly undersize */
  #best-sellers .pkg-card { flex: 0 0 calc(33.333% - 7px); min-width: calc(33.333% - 7px); max-width: calc(33.333% - 7px); }
  /* Hide scroll indicator on mobile */
  .packages-rail { -ms-overflow-style: none; scrollbar-width: none; }
  .packages-rail::-webkit-scrollbar { display: none; }

  /* Details page overflow fixes */
  .details-layout { padding-left: 10px; padding-right: 10px; overflow-x: hidden; }
  .details-left, .details-right { max-width: 100%; overflow-x: hidden; }
  .details-right .step-card { width: 100%; box-sizing: border-box; overflow: hidden; }
  }
 
/* ==============================
   Details page
   ============================== */
.details-layout { display: grid; grid-template-columns: 1fr; gap: 16px; padding: 18px 12px 28px; max-width: 1200px; margin: 0 auto; }
@media (min-width: 900px) {
  .details-layout { grid-template-columns: 1fr 300px; align-items: start; }
}

/* Desktop: show nav and hide hamburger (no change on PC) */
@media (min-width: 900px) {
  .left-actions { display: none; }
  .site-header .container { grid-template-columns: auto auto 1fr; }
  .nav { display: flex; align-items: center; }
  .right-actions { justify-content: end; }
}

/* Dropdown menu (Categories) */
.nav .dropdown { position: relative; }
.dd-toggle { background: transparent; border: none; color: #e2e8f0; font-weight: 700; cursor: pointer; }
.dd-menu[hidden] { display: none; }
.dd-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 260px;
  padding: 12px;
  background: rgba(0,0,0,0.85); /* solid black-like background */
  border: 1px solid rgba(148,163,184,0.28);
  border-radius: 16px;
  box-shadow: 0 18px 60px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.04);
  z-index: 30;
}
.dd-item { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: center; padding: 12px; border-radius: 12px; color: #e5e7eb; text-decoration: none; font-weight: 800; }
.dd-item:hover { background: rgba(255,255,255,0.06); }
.dd-icon { width: 28px; height: 28px; display: inline-grid; place-items: center; background: rgba(255,255,255,0.08); border-radius: 8px; color: #e5e7eb; }
.details-left .game-content { background: rgba(43,47,54,0.4); border: 1px solid rgba(148,163,184,0.1); border-radius: 14px; padding: 20px; }
.details-left .game-content .game-header { display: flex; gap: 30px; align-items: center; margin-bottom: 0; }
@media (max-width: 899px) {
  .details-left .game-content .game-header { align-items: center; }
}
.details-left .game-content .game-image { text-align: center; display: flex; flex-direction: column; justify-content: center; height: 150px; }
.details-left .game-content .game-image .banner { width: 150px; height: 150px; background-size: contain; background-position: center; background-repeat: no-repeat; background-color: rgba(0,0,0,0.2); border-radius: 10px; box-shadow: 0 4px 12px rgba(0,0,0,0.25); border: 1px solid rgba(255,255,255,0.06); flex-shrink: 0; }
.details-left .game-content .game-info .pill-row { justify-content: flex-start; margin-top: 8px; margin-bottom: 8px; }
@media (max-width: 899px) {
  .details-left .game-content .game-info .pill-row { margin-top: 6px; margin-bottom: 4px; }
}
.details-left .game-content .game-info { flex: 1; text-align: left; }
.details-left .game-content .game-title { margin: 0 0 12px 0; font-size: 32px; font-weight: 900; color: #ffffff; }
.pill-row { display:flex; gap:8px; margin-bottom: 16px; justify-content: flex-start; }
.pill { display:inline-flex; align-items:center; gap:6px; border:1px solid #484f59; color:#cbd5e1; background: rgba(148,163,184,0.12); padding: 6px 10px; border-radius: 999px; font-weight: 800; font-size: 12px; }
.game-desc { color:#cbd5e1; font-size: 14px; text-align: left; margin-top: 12px; line-height: 1.5; }
.selected-box { border:1px solid rgba(148,163,184,0.1); border-radius: 10px; padding: 12px; background: rgba(43,47,54,0.4); margin-top: 10px; display: grid; justify-items: center; text-align: center; }
.selected-title { font-weight: 900; color:#ffffff; margin-bottom: 4px; }
.selected-price { color: #10b981; font-weight: 800; }
@media (min-width: 900px) {
  .selected-box { display: none; }
}

.details-right .step-card { background: rgba(43,47,54,0.4); border:1px solid rgba(148,163,184,0.1); border-radius: 14px; padding: 12px; margin-bottom: 12px; box-shadow: 0 12px 30px rgba(0,0,0,0.25); overflow: visible; }
.details-right .step-title { font-weight: 900; margin-bottom: 10px; color:#e2e8f0; }
/* Step title number badge */
.details-right .step-title[data-step],
.details-left .step-title[data-step] {
  position: relative;
  padding-left: 44px; /* space for badge */
  line-height: 32px;
}
.details-right .step-title[data-step]::before,
.details-left .step-title[data-step]::before {
  content: attr(data-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: #0b0f14;
  background: #10b981; /* green */
  box-shadow: 0 6px 16px rgba(16,185,129,0.35);
  /* rounded with small notch bottom-right */
  border-radius: 8px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
}
@media (max-width: 700px) {
  .details-right .step-title[data-step],
  .details-left .step-title[data-step] { padding-left: 40px; line-height: 28px; }
  .details-right .step-title[data-step]::before,
  .details-left .step-title[data-step]::before { width: 28px; height: 28px; border-radius: 7px; }
}
/* Details form inputs styled with index colors */
.details-right .input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(148,163,184,0.1);
  background: rgba(43,47,54,0.3);
  color: #e2e8f0;
  margin-bottom: 8px;
}
.details-right .input::placeholder { color: #94a3b8; }
.details-right .input:focus {
  outline: none;
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16,185,129,0.25);
}
/* Composite phone field as a single input */
.phone-field { display:flex; align-items:center; height: 44px; border: 1px solid rgba(148,163,184,0.1); border-radius: 12px; background: rgba(43,47,54,0.3); overflow: visible; }
.phone-field:focus-within { border-color: #10b981; box-shadow: 0 0 0 3px rgba(16,185,129,0.25); }
.phone-prefix { position: relative; height: 100%; z-index: 1001; }
.phone-cc-btn { display:flex; align-items:center; gap:8px; height: 100%; padding: 0 10px; border: none; background: transparent; color:#e2e8f0; cursor:pointer; border-right: 1px solid rgba(148,163,184,0.25); }
.phone-cc-btn img { display:block; width:16px; height:12px; border-radius:2px; }
.phone-cc-btn .phone-caret { margin-left: 6px; color: #94a3b8; font-size: 12px; line-height: 1; transition: transform 120ms ease; }
.phone-cc-btn.open .phone-caret { transform: rotate(180deg); }
.phone-cc-menu[hidden] { display:none; }
.phone-cc-menu { position: absolute; top: calc(100% + 6px); left: 0; min-width: 140px; background: rgba(43,47,54,0.6); border:1px solid rgba(148,163,184,0.1); border-radius:10px; box-shadow: 0 12px 30px rgba(0,0,0,0.35); z-index: 1002; padding:6px; }

/* Footer styling in navy theme */
.site-footer { background: rgba(43,47,54,0.4); border-top: 1px solid rgba(148,163,184,0.1); color: #cbd5e1; }
.site-footer a { color: #e2e8f0; text-decoration: none; }
.site-footer a:hover { color: #10b981; }
.site-footer .footer-meta { color: #94a3b8; }

/* Payment methods styling */
.pay-methods { gap: 10px; }
.pay-methods .btn { background: #000000; border-color: #000000; color: #e5e7eb; box-shadow: 0 4px 12px rgba(0,0,0,0.3); }
.pay-methods .btn:hover { background: #000000; border-color: #000000; }
.pay-methods .btn.active, .pay-methods .btn:focus {
  outline: none;
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16,185,129,0.25);
}
.phone-cc-menu { min-width: 260px; }
.phone-cc-menu button { width:100%; text-align:left; background:transparent; border:none; color:#e2e8f0; padding:8px 10px; border-radius:8px; cursor:pointer; }
.phone-cc-menu button:hover { background:#30353c; }
/* Country search input */
.phone-cc-search { width: 100%; margin: 4px 0 6px; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(148,163,184,0.25); background: #0b0f14; color: #e2e8f0; }
.phone-cc-search::placeholder { color:#94a3b8; }
.phone-cc-search:focus { outline:none; border-color: #10b981; box-shadow: 0 0 0 3px rgba(16,185,129,0.25); }
.phone-cc-list { max-height: 192px; overflow-y: auto; overflow-x: hidden; display: grid; gap: 4px; }
.phone-cc-item { min-height: 44px; }
@media (max-width: 700px) {
  /* Ensure dropdown does not collide with mobile footer; keep at most viewport minus ~180px */
  .phone-cc-list { max-height: min(192px, calc(100vh - 180px)); }
}
.phone-field .input#phone-local { flex: 1; height: 100%; border: none !important; background: transparent !important; color: #e2e8f0; padding: 0 12px; border-radius: 0; box-shadow: none; }
.phone-field .input#phone-local::placeholder { color: #94a3b8; }
.phone-field .input#phone-local:focus { outline: none; }
.phone-cc-item { display:flex; align-items:center; justify-content: space-between; gap: 10px; }
.phone-cc-item .cc-left { display:flex; align-items:center; gap:10px; }
.phone-cc-item .cc-left img { width:16px; height:12px; border-radius:2px; display:block; }
.phone-cc-item .cc-name { color:#e2e8f0; font-weight: 700; }
.phone-cc-item .cc-dial { color:#94a3b8; font-weight: 700; }
/* Separator between personal data and discount code */
.details-right .form-sep {
  height: 0;
  border-top: 1px solid rgba(148,163,184,0.25);
  margin: 12px 0 10px;
}
/* Discount code section visually delimited */
.details-right .discount-section {
  display: grid;
  gap: 6px;
  padding: 12px;
  margin-bottom: 10px;
  border: 1px dashed rgba(148,163,184,0.35);
  border-radius: 12px;
  background: transparent;
}
.details-right .discount-section .ref-status {
  color: #94a3b8;
}
/* Pay modal reference input inside details page */
#pay-ref.input { border:1px solid rgba(148,163,184,0.25); background: rgba(2,6,23,0.7); color:#e2e8f0; }
#pay-ref.input::placeholder { color:#94a3b8; }
#pay-ref.input:focus { outline:none; border-color: #10b981; box-shadow: 0 0 0 3px rgba(16,185,129,0.25); }
/* Checkbox accent */
.details-right .check input[type="checkbox"] { accent-color: #10b981; }
.check { display:flex; align-items:center; gap:8px; color:#e2e8f0; margin: 8px 0; }

.items-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
@media (min-width: 700px) { .items-grid { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; } }
.item-pill { display:block; text-align:center; padding: 16px 12px; border-radius: 12px; border:1px solid rgba(148,163,184,0.2); background: rgba(43,47,54,0.4); color:#e2e8f0; cursor: pointer; font-weight: 800; transition: all .15s ease; position: relative; overflow: hidden; }
.item-pill:hover { border-color: #10b981; background: rgba(43,47,54,0.6); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.3); }
.item-pill:focus { outline: none; border-color: #10b981; box-shadow: 0 0 0 3px rgba(16,185,129,0.25); }
.item-pill.selected { border-color: #10b981; background: rgba(16,185,129,0.2); }
.item-pill .t { display:block; margin-bottom:6px; white-space: normal; line-height: 1.3; }
.item-pill .p { display:block; color: #10b981; font-weight:900; }
.item-pill.active { border-color: #10b981; background: rgba(16,185,129,0.12); }

.packages-container {
  background: rgba(43,47,54,0.4);
  border: 1px solid rgba(148,163,184,0.1);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

@media (max-width: 899px) {
  .details-layout {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .details-left { display: contents; }
  .details-right { display: contents; }
  .details-right .step-card { margin-bottom: 0; }
  .details-left .game-content { order: 1; }
  .details-right .step-card:nth-child(1) { order: 2; margin-top: 0; }
  .details-left .packages-container { order: 3; margin-top: 0 !important; }
  .details-right .step-card:nth-child(2) { order: 4; }
  .details-right .step-card:nth-child(3) { order: 5; }
}

.pay-methods { display:grid; gap:8px; }
.summary { display:flex; align-items:center; justify-content: space-between; margin-top: 10px; color:#e2e8f0; }
.summary strong { color: #10b981; }

/* Show 'Ver más' only on mobile */
#btn-more { display: none; }
@media (max-width: 699px) {
  #btn-more { display: inline-block; }
}

/* Make 'Ver más' look like plain white text (no background/border) */
#btn-more {
  background: transparent !important;
  border: none !important;
  color: #ffffff !important;
  padding: 0 !important;
  margin: 0;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
#btn-more:hover { opacity: 0.9; }
#btn-more:focus { outline: none; text-decoration: underline; }

/* On phones, hide the selected-box because the mobile footer shows the selection */
@media (max-width: 699px) {
  #selected-box { display: none !important; }
}

/* Payment method buttons: improve visibility */
.pay-methods .btn.pay { 
  background: #2b2f36; /* charcoal payment bg */
  border-color: #484f59;
  color: #e2e8f0;
}
.pay-methods .btn.pay:hover {
  background: #30353c;
  border-color: #10b981;
}
.pay-methods .btn.pay:focus { outline: none; box-shadow: 0 0 0 3px rgba(16,185,129,0.25); }
.pay-methods .btn.pay.primary {
  /* Match packages selection: subtle emerald tint */
  background: rgba(16,185,129,0.12);
  border-color: #10b981;
  color: #e2e8f0;
  box-shadow: none;
}

/* Hide selection badges on phone */
@media (max-width: 699px) {
  .pill-row { display: none !important; }
}

/* Mobile sliding footer: shows selected item title and price */
.mobile-footer-sel { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: none; }
@media (max-width: 699px) {
  .mobile-footer-sel {
    display: grid; /* two sides */
    grid-template-columns: 1fr 1fr; /* left: title/price, right: qty */
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: linear-gradient(180deg, #272b31 0%, #2b2f36 100%);
    border-top: 1px solid #484f59;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.35);
    transform: translateY(110%);
    transition: transform 220ms ease;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
  }
  .mobile-footer-sel.show { transform: translateY(0); }
  .mfs-icon { width: 28px; height: 28px; display: inline-grid; place-items: center; border-radius: 6px; background: #1f2329; border: 1px solid #3a3f47; font-size: 16px; }
  .mfs-mid { grid-column: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; justify-self: center; }
  .mfs-title { color: #e5e7eb; font-weight: 900; text-align: center; }
  .mfs-price { color: #10b981; font-weight: 900; text-align: center; }
  .mfs-close { appearance: none; border: none; background: transparent; color: #22c55e; font-size: 16px; font-weight: 900; padding: 2px 4px; cursor: pointer; position: absolute; top: 6px; right: 8px; line-height: 1; }
  /* Remove background from + and - buttons in mobile footer */
  #mfs-minus,
  #mfs-plus {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #e5e7eb;
  }
  #mfs-minus:hover,
  #mfs-plus:hover { background: transparent !important; opacity: 0.9; }
}
/* ==============================
   Site footer
   ============================== */
.site-footer {
  margin-top: 20px;
  background: rgba(43,47,54,0.4);
  border-top: 1px solid rgba(148,163,184,0.1);
  position: static;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: start;
}

/* Left Section */
.footer-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-logo {
  max-width: 200px;
  height: auto;
}

.footer-logo img {
  width: 100%;
  height: auto;
  max-height: 60px;
  object-fit: contain;
}

.footer-brand {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0.5px;
}

.footer-brand .brand-highlight {
  color: #22c55e;
}

.footer-brand .brand-secondary {
  color: #fff;
}

.footer-desc {
  color: #ffffff;
  font-size: 14px;
  line-height: 1.6;
  max-width: 500px;
  margin: 0;
}

.footer-features {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 500;
}

.feature-item svg {
  color: #22c55e;
  flex-shrink: 0;
}

/* Right Section */
.footer-right {
  display: contents;
}

.footer-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 12px;
}

.footer-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid #22c55e;
  border-radius: 6px;
  background: transparent;
  color: #22c55e;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.footer-btn:hover {
  background: #22c55e;
  color: #fff;
}

.footer-btn svg {
  width: 18px;
  height: 18px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.social-icon {
  width: 42px;
  height: 42px;
  border-radius: 0;
  display: grid;
  place-items: center;
  text-decoration: none;
  transition: all 0.3s;
  background: transparent;
  color: inherit;
}

.social-icon svg {
  width: 22px;
  height: 22px;
}

.social-icon.whatsapp {
  background: transparent;
  color: #e2e8f0;
}

.social-icon.instagram {
  background: transparent;
  color: #e2e8f0;
}

.social-icon.facebook {
  background: transparent;
  color: #e2e8f0;
}

.social-icon.tiktok {
  background: transparent;
  color: #e2e8f0;
}

.social-icon:hover {
  transform: translateY(-3px);
  box-shadow: none;
  opacity: 1;
  color: #10b981;
}

.footer-copy {
  text-align: center;
  color: #64748b;
  font-size: 13px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(148,163,184,0.1);
  grid-column: 1 / -1;
}

.footer-copy p {
  margin: 4px 0;
}

.footer-rights {
  font-size: 12px;
  color: #475569;
}

/* Responsive */
@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px 20px;
  }
  
  .footer-left {
    align-items: center;
    text-align: center;
    width: 100%;
  }
  
  .footer-right {
    align-items: center;
    width: 100%;
  }
  
  .footer-logo {
    max-width: 200px;
  }
  
  .footer-logo img {
    max-height: 60px;
  }
  
  .footer-brand {
    font-size: 32px;
  }
  
  .footer-desc {
    text-align: center;
    max-width: 100%;
  }
  
  .footer-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
    max-width: 400px;
  }
  
  .feature-item {
    flex-direction: row;
    text-align: left;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    background: transparent;
    border-radius: 50px;
    border: none;
  }
  
  .feature-item svg {
    width: 20px;
    height: 20px;
  }
  
  .feature-item span {
    font-size: 14px;
    font-weight: 600;
  }
  
  .feature-item:last-child {
    grid-column: 1 / -1;
    max-width: 200px;
    margin: 0 auto;
  }
  
  .footer-actions {
    width: 100%;
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }
  
  .footer-btn {
    justify-content: center;
    min-width: 200px;
  }
  
  .footer-social {
    justify-content: center;
    gap: 16px;
  }
  
  .social-icon {
    width: 50px;
    height: 50px;
  }
  
  .social-icon svg {
    width: 26px;
    height: 26px;
  }
  
  .footer-copy {
    text-align: center;
  }
}



/* Remove diamond icon and its square background in mobile footer */
.mfs-icon { display: none !important; }

/* Center footer info (mobile footer selection) */
@media (max-width: 699px) {
  #mfs .mfs-right { grid-column: 2; margin: 0 2px !important; display:flex !important; flex-direction: row !important; align-items: center !important; justify-content: center !important; gap: 4px !important; }
  #mfs .mfs-qty { gap: 2px !important; margin-left: 4px !important; }
  #mfs #mfs-minus, #mfs #mfs-plus { padding: 0 6px !important; min-width: 26px !important; line-height: 1 !important; }
  #mfs #mfs-qty-val { min-width: 20px !important; }
  /* Vertical separator between title/price and qty controls */
  #mfs .mfs-right { border-left: 1px solid rgba(148,163,184,0.28) !important; padding-left: 8px !important; }
  #mfs .mfs-mid { padding-right: 8px !important; }
}
/* Item pill layout: keep title and icon on the same row (icon to the right) */
.item-pill .item-pill-col { display:flex; flex-direction:row; align-items:center; gap:8px; }
.item-pill .item-pill-title { font-weight:700; line-height:1.1; }
.item-pill .item-pill-price { color:#10b981; font-weight:800; }

/* Mobile footer (stack title over price) */
#mfs .mfs-mid { display:flex; flex-direction:column; align-items:flex-start; gap:2px; }
#mfs .mfs-title { font-weight:700; line-height:1.1; }
#mfs .mfs-price { color:#10b981; font-weight:800; }
/* Centered layout for item pills and mobile footer */
.item-pill .item-pill-col{ align-items:center; text-align:center; }
#mfs .mfs-mid{ align-items:center; }
#mfs .mfs-title, #mfs .mfs-price{ text-align:center; width:100%; }
/* Semi-transparent mobile footer */
#mfs{ background: rgba(2, 6, 23, 0.55) !important; border: 1px solid rgba(148,163,184,0.25) !important; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: 0 8px 30px rgba(0,0,0,0.35); }
#mfs .mfs-icon{ opacity: .95; }

/* Optional small item icon next to item title in details page package selector */
.item-pill .item-icon {
  width: 16px;
  height: 16px;
  margin-right: 8px;
  display: inline-block;
  vertical-align: middle;
}

/* Related packages in details page: single column on mobile */
@media (max-width: 700px) {
  #related-packages .packages-rail {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    overflow-x: visible !important;
    scroll-snap-type: none !important;
    flex-wrap: wrap !important;
    padding-left: 6px;
    padding-right: 6px;
  }
  #related-packages .pkg-card {
    min-width: 0 !important;
    max-width: none !important;
    width: 100% !important;
    flex: none !important;
    scroll-snap-align: none !important;
    display: grid;
    grid-template-columns: 84px 1fr;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 14px;
  }
  #related-packages .pkg-thumb {
    width: 84px;
    height: 84px;
    aspect-ratio: auto;
    border-radius: 14px;
    margin: 0;
  }
  #related-packages .pkg-name {
    text-align: left;
    margin: 0;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.15;
    text-shadow: none;
  }
 }

/* Mobile: Ensure full width and no horizontal scroll */
@media (max-width: 768px) {
  body, html {
    overflow-x: hidden !important;
    max-width: 100vw !important;
  }
  
  .site-header .container,
  .packages,
  .featured,
  .details-layout,
  .mid-banner {
    padding-left: 8px !important;
    padding-right: 8px !important;
    max-width: 100% !important;
    width: 100% !important;
  }
  
  .footer-container {
    padding-left: 16px !important;
    padding-right: 16px !important;
    max-width: 100% !important;
    width: 100% !important;
  }
}
