/* ============================================================
 * Arena Plus App - theme-5891.css
 * Palette: #FFE135 (accent yellow) | #40E0D0 (turquoise) | #34495E (deep base)
 * All custom classes use the pg58- prefix. Mobile-first.
 * ============================================================ */

:root {
  --pg58-bg: #0f2a3a;
  --pg58-bg-2: #143341;
  --pg58-surface: #1c4357;
  --pg58-base: #34495e;
  --pg58-text: #f4f9fb;
  --pg58-text-soft: #c7dbe4;
  --pg58-muted: #8aa6b3;
  --pg58-primary: #ffe135;
  --pg58-primary-dark: #e6c019;
  --pg58-secondary: #40e0d0;
  --pg58-secondary-dark: #2bb8aa;
  --pg58-danger: #ff5e62;
  --pg58-success: #38d39f;
  --pg58-border: rgba(255, 255, 255, 0.08);
  --pg58-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  --pg58-radius: 14px;
  --pg58-radius-sm: 10px;
  --pg58-radius-lg: 22px;
  --pg58-header-h: 60px;
  --pg58-bottom-h: 62px;
  --pg58-max: 430px;
  --pg58-font: "Inter", "Segoe UI", "Helvetica Neue", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
html, body {
  margin: 0;
  padding: 0;
  background: radial-gradient(120% 80% at 50% -10%, #1c4357 0%, #0f2a3a 55%, #0a1f2c 100%);
  color: var(--pg58-text);
  font-family: var(--pg58-font);
  font-size: 62.5%; /* root 10px so 1.5rem = 15px */
  line-height: 1.5rem;
  min-height: 100%;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--pg58-secondary); text-decoration: none; }
a:hover, a:focus { color: var(--pg58-primary); }
button { font-family: inherit; cursor: pointer; }

/* ---------- Layout helpers ---------- */
.pg58-container {
  width: 100%;
  max-width: var(--pg58-max);
  margin: 0 auto;
  padding: 0 14px;
}
.pg58-wrapper { width: 100%; max-width: var(--pg58-max); margin: 0 auto; }
.pg58-section { padding: 26px 0 12px; }
.pg58-section--alt { background: linear-gradient(180deg, rgba(64,224,208,0.06), rgba(255,225,53,0.04)); }
.pg58-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 1.2rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--pg58-secondary); font-weight: 700;
}
.pg58-title {
  font-size: 2.0rem; line-height: 2.6rem; margin: 6px 0 4px; color: var(--pg58-text);
  font-weight: 800;
}
.pg58-title span { color: var(--pg58-primary); }
.pg58-subtitle { font-size: 1.4rem; color: var(--pg58-text-soft); margin: 0 0 14px; }
.pg58-divider {
  height: 4px; width: 56px; border-radius: 4px;
  background: linear-gradient(90deg, var(--pg58-primary), var(--pg58-secondary));
  margin: 6px 0 14px;
}

/* ---------- Buttons ---------- */
.pg58-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 18px;
  border: 0; border-radius: 999px;
  font-size: 1.4rem; font-weight: 800; letter-spacing: 0.02em;
  color: #0a1f2c; background: linear-gradient(135deg, var(--pg58-primary), #ffd84d);
  box-shadow: 0 8px 18px rgba(255, 225, 53, 0.25);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
.pg58-btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.pg58-btn:active { transform: translateY(1px) scale(0.99); }
.pg58-btn--ghost {
  background: transparent; color: var(--pg58-text);
  border: 1.5px solid rgba(255, 255, 255, 0.25); box-shadow: none;
}
.pg58-btn--ghost:hover { border-color: var(--pg58-secondary); color: var(--pg58-secondary); }
.pg58-btn--secondary {
  background: linear-gradient(135deg, var(--pg58-secondary), #5be9dd);
  color: #0a1f2c; box-shadow: 0 8px 18px rgba(64, 224, 208, 0.25);
}
.pg58-btn--block { display: flex; width: 100%; }
.pg58-btn--sm { min-height: 36px; padding: 0 14px; font-size: 1.25rem; }

/* ---------- Header ---------- */
.pg58-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(15, 42, 58, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--pg58-border);
}
.pg58-header.pg58-scrolled { box-shadow: 0 6px 22px rgba(0, 0, 0, 0.35); }
.pg58-header-inner {
  max-width: var(--pg58-max); margin: 0 auto;
  height: var(--pg58-header-h); padding: 0 12px;
  display: flex; align-items: center; gap: 10px;
}
.pg58-logo { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.pg58-logo-img {
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(135deg, var(--pg58-primary), var(--pg58-secondary));
  display: grid; place-items: center; color: #0a1f2c; font-weight: 900; font-size: 1.3rem;
}
.pg58-logo-text { display: flex; flex-direction: column; line-height: 1.2rem; min-width: 0; }
.pg58-logo-text strong {
  font-size: 1.45rem; font-weight: 900; color: var(--pg58-text); white-space: nowrap;
}
.pg58-logo-text small { font-size: 1.0rem; color: var(--pg58-secondary); }
.pg58-header-actions { display: flex; align-items: center; gap: 6px; }
.pg58-icon-btn {
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.08); border: 1px solid var(--pg58-border);
  color: var(--pg58-text); display: grid; place-items: center; font-size: 1.6rem;
}
.pg58-icon-btn:hover { background: rgba(64, 224, 208, 0.18); }

/* ---------- Mobile menu ---------- */
.pg58-mobile-menu {
  position: fixed; top: 0; right: 0; height: 100vh; width: 84%; max-width: 320px;
  background: linear-gradient(180deg, #143341, #0f2a3a);
  border-left: 1px solid var(--pg58-border);
  transform: translateX(100%); transition: transform 0.28s ease; z-index: 9999;
  padding: 18px 16px; overflow-y: auto;
}
.pg58-mobile-menu.pg58-open { transform: translateX(0); box-shadow: -10px 0 30px rgba(0,0,0,0.5); }
.pg58-mobile-menu-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.pg58-mobile-menu-head strong { font-size: 1.7rem; color: var(--pg58-primary); }
.pg58-menu-link {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 12px; border-radius: 10px; color: var(--pg58-text);
  font-size: 1.4rem; font-weight: 600; border: 1px solid transparent;
}
.pg58-menu-link i, .pg58-menu-link span.mat { font-size: 1.7rem; color: var(--pg58-secondary); width: 22px; text-align: center; }
.pg58-menu-link:hover { background: rgba(64, 224, 208, 0.12); border-color: var(--pg58-border); }
.pg58-menu-divider { height: 1px; background: var(--pg58-border); margin: 10px 0; }

.pg58-overlay {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.55);
  opacity: 0; pointer-events: none; transition: opacity 0.25s ease; z-index: 9998;
}
.pg58-overlay.pg58-open { opacity: 1; pointer-events: auto; }

/* ---------- Hero ---------- */
.pg58-hero { padding: calc(var(--pg58-header-h) + 14px) 0 4px; }
.pg58-hero-card {
  background: linear-gradient(135deg, rgba(64,224,208,0.14), rgba(255,225,53,0.10));
  border: 1px solid var(--pg58-border); border-radius: var(--pg58-radius-lg);
  padding: 16px;
}
.pg58-hero h1 {
  font-size: 2.4rem; line-height: 3.0rem; margin: 8px 0 6px; font-weight: 900;
}
.pg58-hero h1 span { color: var(--pg58-primary); }
.pg58-hero p { font-size: 1.35rem; color: var(--pg58-text-soft); margin: 0 0 12px; }
.pg58-hero-cta { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Carousel ---------- */
.pg58-carousel {
  position: relative; border-radius: var(--pg58-radius-lg); overflow: hidden;
  box-shadow: var(--pg58-shadow); margin-top: 14px;
  border: 1px solid var(--pg58-border);
}
.pg58-carousel-viewport { overflow: hidden; }
.pg58-carousel-track { display: flex; transition: transform 0.5s ease; }
.pg58-carousel-slide { min-width: 100%; position: relative; }
.pg58-carousel-slide img { width: 100%; height: 200px; object-fit: cover; }
.pg58-carousel-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 12px 14px; color: var(--pg58-text);
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.75));
  font-size: 1.3rem; font-weight: 700;
}
.pg58-carousel-caption small { display: block; font-weight: 600; color: var(--pg58-primary); font-size: 1.1rem; }
.pg58-carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(15, 42, 58, 0.78); color: var(--pg58-text);
  border: 1px solid var(--pg58-border); display: grid; place-items: center; font-size: 1.4rem;
}
.pg58-carousel-arrow:hover { background: var(--pg58-primary); color: #0a1f2c; }
.pg58-carousel-arrow.pg58-prev { left: 8px; }
.pg58-carousel-arrow.pg58-next { right: 8px; }
.pg58-carousel-dots {
  position: absolute; bottom: 10px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px;
}
.pg58-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.45); transition: all 0.2s; }
.pg58-dot.pg58-active { background: var(--pg58-primary); width: 18px; border-radius: 5px; }

/* ---------- Trust strip ---------- */
.pg58-trust {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px;
}
.pg58-trust-item {
  background: rgba(255,255,255,0.04); border: 1px solid var(--pg58-border);
  padding: 10px 8px; border-radius: var(--pg58-radius-sm); text-align: center;
}
.pg58-trust-item strong { display: block; font-size: 1.7rem; color: var(--pg58-primary); }
.pg58-trust-item small { font-size: 1.05rem; color: var(--pg58-muted); }

/* ---------- Category chips ---------- */
.pg58-chips {
  display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 10px;
  scrollbar-width: none;
}
.pg58-chips::-webkit-scrollbar { display: none; }
.pg58-chip {
  flex: 0 0 auto; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--pg58-border); background: rgba(255,255,255,0.04);
  font-size: 1.25rem; font-weight: 700; color: var(--pg58-text-soft);
  white-space: nowrap; display: inline-flex; align-items: center; gap: 6px;
}
.pg58-chip i { color: var(--pg58-secondary); font-size: 1.3rem; }
.pg58-chip.pg58-active {
  background: linear-gradient(135deg, var(--pg58-primary), var(--pg58-secondary));
  color: #0a1f2c; border-color: transparent;
}
.pg58-chip.pg58-active i { color: #0a1f2c; }

/* ---------- Game grid ---------- */
.pg58-cat-head { display: flex; align-items: center; justify-content: space-between; margin: 18px 0 10px; }
.pg58-cat-head h2 { font-size: 1.75rem; font-weight: 800; margin: 0; }
.pg58-cat-head h2 span { color: var(--pg58-primary); }
.pg58-cat-head a { font-size: 1.2rem; color: var(--pg58-secondary); font-weight: 700; }

.pg58-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.pg58-card {
  background: var(--pg58-surface); border: 1px solid var(--pg58-border);
  border-radius: var(--pg58-radius-sm); overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex; flex-direction: column;
}
.pg58-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 225, 53, 0.5);
  box-shadow: 0 10px 22px rgba(0,0,0,0.35);
}
.pg58-card-media { position: relative; aspect-ratio: 1/1; background: #0a1f2c; }
.pg58-card-media img { width: 100%; height: 100%; object-fit: cover; }
.pg58-card-tag {
  position: absolute; top: 6px; left: 6px; font-size: 0.95rem; font-weight: 800;
  padding: 2px 7px; border-radius: 6px;
  background: var(--pg58-primary); color: #0a1f2c;
}
.pg58-card-tag.pg58-hot { background: var(--pg58-danger); color: #fff; }
.pg58-card-tag.pg58-new { background: var(--pg58-secondary); color: #0a1f2c; }
.pg58-card-body {
  padding: 6px 8px 8px; display: flex; flex-direction: column; gap: 4px;
}
.pg58-card-title {
  font-size: 1.18rem; font-weight: 700; color: var(--pg58-text); line-height: 1.4rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pg58-card-meta { font-size: 1.05rem; color: var(--pg58-secondary); font-weight: 700; }

/* ---------- Featured row ---------- */
.pg58-featured {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
}
.pg58-feature {
  border-radius: var(--pg58-radius); padding: 14px;
  border: 1px solid var(--pg58-border);
  background: linear-gradient(135deg, rgba(64,224,208,0.10), rgba(255,225,53,0.06));
}
.pg58-feature h3 { margin: 0 0 6px; font-size: 1.5rem; color: var(--pg58-primary); }
.pg58-feature p { margin: 0 0 10px; font-size: 1.25rem; color: var(--pg58-text-soft); }

/* ---------- Info / content blocks ---------- */
.pg58-prose { font-size: 1.35rem; color: var(--pg58-text-soft); line-height: 2.05rem; }
.pg58-prose h2 { color: var(--pg58-text); font-size: 1.85rem; margin: 18px 0 6px; }
.pg58-prose h3 { color: var(--pg58-secondary); font-size: 1.5rem; margin: 14px 0 4px; }
.pg58-prose p { margin: 0 0 10px; }
.pg58-prose strong { color: var(--pg58-primary); }
.pg58-prose ul { padding-left: 18px; margin: 0 0 10px; }
.pg58-prose li { margin-bottom: 4px; }
.pg58-prose a { color: var(--pg58-secondary); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Steps ---------- */
.pg58-steps { list-style: none; counter-reset: step; padding: 0; margin: 0; }
.pg58-steps li {
  position: relative; padding: 12px 12px 12px 46px; margin-bottom: 8px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--pg58-border);
  border-radius: var(--pg58-radius-sm); counter-increment: step;
}
.pg58-steps li::before {
  content: counter(step); position: absolute; left: 10px; top: 12px;
  width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(135deg, var(--pg58-primary), var(--pg58-secondary));
  color: #0a1f2c; font-weight: 900; font-size: 1.2rem; display: grid; place-items: center;
}
.pg58-steps li strong { color: var(--pg58-text); font-size: 1.35rem; }
.pg58-steps li small { display: block; color: var(--pg58-text-soft); font-size: 1.2rem; margin-top: 2px; }

/* ---------- FAQ ---------- */
.pg58-faq-item {
  border: 1px solid var(--pg58-border); border-radius: var(--pg58-radius-sm);
  margin-bottom: 8px; overflow: hidden; background: rgba(255,255,255,0.03);
}
.pg58-faq-q {
  width: 100%; text-align: left; padding: 12px 14px;
  background: transparent; border: 0; color: var(--pg58-text);
  font-size: 1.35rem; font-weight: 700; display: flex; justify-content: space-between; gap: 10px;
}
.pg58-faq-q i { color: var(--pg58-primary); }
.pg58-faq-a { padding: 0 14px 12px; font-size: 1.28rem; color: var(--pg58-text-soft); }

/* ---------- Testimonial ---------- */
.pg58-reviews { display: grid; grid-template-columns: 1fr; gap: 10px; }
.pg58-review {
  background: rgba(255,255,255,0.04); border: 1px solid var(--pg58-border);
  border-radius: var(--pg58-radius); padding: 14px;
}
.pg58-review-stars { color: var(--pg58-primary); font-size: 1.3rem; margin-bottom: 6px; }
.pg58-review p { margin: 0 0 8px; font-size: 1.28rem; color: var(--pg58-text-soft); }
.pg58-review-meta { display: flex; align-items: center; gap: 8px; }
.pg58-review-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, var(--pg58-secondary), var(--pg58-primary));
  color: #0a1f2c; font-weight: 900; font-size: 1.3rem; display: grid; place-items: center;
}
.pg58-review-meta strong { font-size: 1.25rem; color: var(--pg58-text); }
.pg58-review-meta small { font-size: 1.05rem; color: var(--pg58-muted); display: block; }

/* ---------- Payment ---------- */
.pg58-pay-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pg58-pay {
  background: rgba(255,255,255,0.05); border: 1px solid var(--pg58-border);
  border-radius: var(--pg58-radius-sm); padding: 10px 6px; text-align: center;
}
.pg58-pay i { font-size: 2.2rem; color: var(--pg58-secondary); }
.pg58-pay small { display: block; margin-top: 4px; color: var(--pg58-text-soft); font-size: 1.1rem; font-weight: 700; }

/* ---------- Winners ---------- */
.pg58-winners {
  background: rgba(255,255,255,0.04); border: 1px solid var(--pg58-border);
  border-radius: var(--pg58-radius); overflow: hidden;
}
.pg58-winner-row {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border-bottom: 1px solid var(--pg58-border); font-size: 1.25rem;
}
.pg58-winner-row:last-child { border-bottom: 0; }
.pg58-winner-name { flex: 1; color: var(--pg58-text); font-weight: 700; }
.pg58-winner-game { color: var(--pg58-muted); font-size: 1.1rem; }
.pg58-winner-amount { color: var(--pg58-primary); font-weight: 900; }

/* ---------- App download CTA ---------- */
.pg58-app-cta {
  background: linear-gradient(135deg, #143341, #1c4357);
  border: 1px solid var(--pg58-border); border-radius: var(--pg58-radius-lg);
  padding: 16px; display: flex; flex-direction: column; gap: 12px;
}
.pg58-app-cta-body h3 { margin: 0 0 4px; font-size: 1.7rem; color: var(--pg58-primary); }
.pg58-app-cta-body p { margin: 0; font-size: 1.25rem; color: var(--pg58-text-soft); }
.pg58-app-cta-buttons { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Achievements ---------- */
.pg58-badges { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.pg58-badge {
  background: rgba(255,255,255,0.04); border: 1px solid var(--pg58-border);
  border-radius: var(--pg58-radius-sm); padding: 10px;
  display: flex; gap: 10px; align-items: center;
}
.pg58-badge-ico {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--pg58-primary), var(--pg58-secondary));
  color: #0a1f2c; font-size: 1.7rem; flex: 0 0 auto;
}
.pg58-badge strong { display: block; font-size: 1.25rem; color: var(--pg58-text); }
.pg58-badge small { color: var(--pg58-muted); font-size: 1.1rem; }

/* ---------- Promo inline link ---------- */
.pg58-inline-link {
  color: var(--pg58-primary); font-weight: 800; cursor: pointer;
  text-decoration: underline; text-underline-offset: 2px;
}

/* ---------- Footer ---------- */
.pg58-footer {
  margin-top: 26px; padding: 22px 0 96px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.35));
  border-top: 1px solid var(--pg58-border);
}
.pg58-footer h4 { color: var(--pg58-primary); font-size: 1.4rem; margin: 14px 0 8px; }
.pg58-footer p { font-size: 1.25rem; color: var(--pg58-text-soft); margin: 0 0 10px; }
.pg58-footer-links {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; margin: 8px 0 12px;
}
.pg58-footer-links a { color: var(--pg58-text-soft); font-size: 1.2rem; }
.pg58-footer-links a:hover { color: var(--pg58-secondary); }
.pg58-footer-buttons { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0 12px; }
.pg58-footer-meta { font-size: 1.1rem; color: var(--pg58-muted); }
.pg58-notice, .pg58-disclaimer {
  font-size: 1.1rem; color: var(--pg58-muted); padding: 8px 10px;
  border: 1px dashed var(--pg58-border); border-radius: 8px; margin-top: 8px;
}

/* ---------- Bottom nav ---------- */
.pg58-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  height: var(--pg58-bottom-nav, var(--pg58-bottom-h));
  background: rgba(10, 31, 44, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--pg58-border);
  display: flex; justify-content: space-around; align-items: stretch;
}
.pg58-bottom-nav-item {
  flex: 1; min-width: 60px; min-height: 60px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; color: var(--pg58-muted); font-size: 1.05rem; font-weight: 700;
  background: transparent; border: 0; padding: 6px 2px;
  transition: color 0.18s ease, transform 0.18s ease;
}
.pg58-bottom-nav-item i,
.pg58-bottom-nav-item span.material-icons-outlined,
.pg58-bottom-nav-item ion-icon { font-size: 22px; }
.pg58-bottom-nav-item ion-icon { width: 24px; height: 24px; }
.pg58-bottom-nav-item:hover { color: var(--pg58-secondary); }
.pg58-bottom-nav-item:active { transform: scale(0.92); }
.pg58-bottom-nav-item.pg58-active { color: var(--pg58-primary); }
.pg58-bottom-nav-item.pg58-active ion-icon,
.pg58-bottom-nav-item.pg58-active i,
.pg58-bottom-nav-item.pg58-active span.material-icons-outlined { color: var(--pg58-primary); }

/* CTA button styled differently inside bottom nav */
.pg58-bottom-nav-item.pg58-cta {
  position: relative;
}
.pg58-bottom-nav-item.pg58-cta::before {
  content: ""; position: absolute; top: -10px; width: 46px; height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pg58-primary), var(--pg58-secondary));
  box-shadow: 0 6px 14px rgba(255,225,53,0.35); z-index: 0;
}
.pg58-bottom-nav-item.pg58-cta i,
.pg58-bottom-nav-item.pg58-cta span,
.pg58-bottom-nav-item.pg58-cta ion-icon {
  position: relative; z-index: 1;
}
.pg58-bottom-nav-item.pg58-cta i,
.pg58-bottom-nav-item.pg58-cta span.material-icons-outlined { color: #0a1f2c; font-size: 24px; }
.pg58-bottom-nav-item.pg58-cta small { position: relative; z-index: 1; color: var(--pg58-text); margin-top: 18px; }

/* ---------- Toast ---------- */
.pg58-toast {
  position: fixed; left: 50%; bottom: calc(var(--pg58-bottom-h) + 14px);
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--pg58-base); color: var(--pg58-text);
  padding: 10px 16px; border-radius: 999px; font-size: 1.25rem; font-weight: 700;
  border: 1px solid var(--pg58-border); box-shadow: var(--pg58-shadow); z-index: 3000;
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.pg58-toast.pg58-show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Back to top ---------- */
.pg58-back-top {
  position: fixed; right: 12px; bottom: calc(var(--pg58-bottom-h) + 12px);
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--pg58-secondary); color: #0a1f2c;
  display: grid; place-items: center; font-size: 1.6rem; font-weight: 900;
  box-shadow: var(--pg58-shadow); z-index: 999; border: 0;
}

/* ---------- Main padding (mobile) ---------- */
main { padding-bottom: 80px; display: block; }

/* ---------- Desktop ---------- */
@media (min-width: 769px) {
  .pg58-bottom-nav { display: none; }
  main { padding-bottom: 24px; }
  .pg58-container, .pg58-wrapper { max-width: 960px; }
  .pg58-grid { grid-template-columns: repeat(6, 1fr); }
  .pg58-featured { grid-template-columns: repeat(4, 1fr); }
  .pg58-reviews { grid-template-columns: repeat(3, 1fr); }
  .pg58-pay-grid { grid-template-columns: repeat(6, 1fr); }
  .pg58-badges { grid-template-columns: repeat(4, 1fr); }
  .pg58-footer-links { grid-template-columns: repeat(4, 1fr); }
  .pg58-header-inner { max-width: 960px; }
  .pg58-carousel-slide img { height: 360px; }
  .pg58-desktop-nav { display: flex; gap: 14px; align-items: center; }
  .pg58-desktop-nav a { color: var(--pg58-text-soft); font-size: 1.25rem; font-weight: 700; }
  .pg58-desktop-nav a:hover { color: var(--pg58-primary); }
}
.pg58-desktop-nav { display: none; }
@media (min-width: 769px) { .pg58-desktop-nav { display: flex; } }

/* small screens tightening */
@media (max-width: 360px) {
  .pg58-grid { grid-template-columns: repeat(2, 1fr); }
  .pg58-hero h1 { font-size: 2.0rem; line-height: 2.6rem; }
}

/* Focus visibility for a11y */
:focus-visible { outline: 2px solid var(--pg58-primary); outline-offset: 2px; border-radius: 6px; }
