/* ===========================================================
 * okfun app - layout.css
 * Mobile-first layout (max-width: 430px) for the okfun-app.homes
 * gaming brand. All custom classes use the s0b7- prefix.
 * Code comments are in English only.
 * =========================================================== */

:root {
  /* Brand palette */
  --s0b7-bg: #1E1E1E;
  --s0b7-bg-alt: #161616;
  --s0b7-bg-soft: #242424;
  --s0b7-surface: #2a2a2a;
  --s0b7-primary: #00CED1;
  --s0b7-primary-dark: #00a8aa;
  --s0b7-mint: #98FB98;
  --s0b7-sky: #AFEEEE;
  --s0b7-blue: #ADD8E6;
  --s0b7-muted: #808080;
  --s0b7-text: #f3f9f9;
  --s0b7-text-dim: #b8c2c2;
  --s0b7-gold: #ffd479;
  --s0b7-danger: #ff6b6b;

  /* Layout tokens */
  --s0b7-radius-sm: 8px;
  --s0b7-radius: 14px;
  --s0b7-radius-lg: 20px;
  --s0b7-gap: 12px;
  --s0b7-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
  --s0b7-shadow-soft: 0 2px 10px rgba(0, 0, 0, 0.35);
  --s0b7-header-h: 58px;
  --s0b7-bottomnav-h: 62px;
  --s0b7-font: "Segoe UI", "Helvetica Neue", Roboto, Arial, sans-serif;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }

html {
  font-size: 62.5%; /* 1rem = 10px */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--s0b7-font);
  background: var(--s0b7-bg);
  color: var(--s0b7-text);
  font-size: 1.5rem;
  line-height: 1.5rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--s0b7-sky); text-decoration: none; }
a:hover { color: var(--s0b7-primary); }
button { font-family: inherit; }

h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.35; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0; padding-left: 1.8rem; }

/* ---------- Layout shells ---------- */
.s0b7-wrapper {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.4rem;
  position: relative;
}

.s0b7-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0;
}

main.s0b7-main {
  padding-top: calc(var(--s0b7-header-h) + 10px);
  padding-bottom: calc(var(--s0b7-bottomnav-h) + 28px);
}

.s0b7-section {
  padding: 2.4rem 0 1.6rem;
}

.s0b7-section-title {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 1.9rem;
  color: var(--s0b7-text);
  margin-bottom: 1.2rem;
  letter-spacing: 0.3px;
}

.s0b7-section-title i { color: var(--s0b7-primary); font-size: 2.2rem; }
.s0b7-section-title .s0b7-pill {
  margin-left: auto;
  font-size: 1.15rem;
  padding: 0.3rem 0.9rem;
  background: rgba(0, 206, 209, 0.15);
  color: var(--s0b7-primary);
  border-radius: 999px;
  border: 1px solid rgba(0, 206, 209, 0.3);
}

.s0b7-text-muted { color: var(--s0b7-text-dim); }
.s0b7-text-primary { color: var(--s0b7-primary); }
.s0b7-text-mint { color: var(--s0b7-mint); }
.s0b7-text-gold { color: var(--s0b7-gold); }
.s0b7-lead { font-size: 1.55rem; color: var(--s0b7-text-dim); line-height: 2.3rem; }

/* ---------- Header ---------- */
.s0b7-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--s0b7-header-h);
  z-index: 1000;
  background: rgba(20, 20, 20, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0, 206, 209, 0.18);
  transition: box-shadow 0.25s ease;
}

.s0b7-header--scrolled {
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
}

.s0b7-header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0 1rem;
}

.s0b7-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex: 1;
  min-width: 0;
}

.s0b7-logo-img {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  border: 1px solid rgba(0, 206, 209, 0.35);
  background: #000;
  object-fit: cover;
}

.s0b7-logo-name {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--s0b7-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.s0b7-logo-name span { color: var(--s0b7-primary); }

.s0b7-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.s0b7-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.35rem;
  padding: 0.65rem 1.2rem;
  line-height: 1;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  text-decoration: none;
}

.s0b7-btn-primary {
  background: linear-gradient(135deg, var(--s0b7-primary), #6ce6c8);
  color: #07262a;
  box-shadow: 0 4px 14px rgba(0, 206, 209, 0.35);
}
.s0b7-btn-primary:hover { transform: translateY(-1px); color: #07262a; }

.s0b7-btn-mint {
  background: linear-gradient(135deg, var(--s0b7-mint), #4fe0a5);
  color: #0c2b1a;
  box-shadow: 0 4px 14px rgba(152, 251, 152, 0.28);
}
.s0b7-btn-mint:hover { transform: translateY(-1px); color: #0c2b1a; }

.s0b7-btn-ghost {
  background: rgba(173, 216, 230, 0.12);
  color: var(--s0b7-sky);
  border: 1px solid rgba(173, 216, 230, 0.35);
}
.s0b7-btn-ghost:hover { background: rgba(173, 216, 230, 0.2); }

.s0b7-btn-gold {
  background: linear-gradient(135deg, var(--s0b7-gold), #ff9d4a);
  color: #2a1a02;
}

.s0b7-btn-block {
  width: 100%;
  padding: 1.1rem 1.2rem;
  font-size: 1.55rem;
}

.s0b7-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--s0b7-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 1.8rem;
  cursor: pointer;
}

/* ---------- Mobile slide-in menu ---------- */
.s0b7-menu {
  position: fixed;
  top: 0; right: -85%;
  width: 82%;
  max-width: 360px;
  height: 100%;
  background: var(--s0b7-bg-alt);
  z-index: 9999;
  padding: 1.6rem 1.4rem calc(var(--s0b7-bottomnav-h) + 20px);
  overflow-y: auto;
  transition: right 0.28s ease;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.55);
  border-left: 1px solid rgba(0, 206, 209, 0.25);
}

.s0b7-menu--open { right: 0; }

.s0b7-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
}
.s0b7-backdrop--visible { opacity: 1; visibility: visible; }

.s0b7-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 1rem;
}
.s0b7-menu-head h3 { font-size: 1.8rem; color: var(--s0b7-primary); }

.s0b7-menu-section { margin-bottom: 1.6rem; }
.s0b7-menu-section h4 {
  font-size: 1.3rem;
  color: var(--s0b7-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.6rem;
}

.s0b7-menu-link {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 0.9rem;
  border-radius: var(--s0b7-radius-sm);
  color: var(--s0b7-text);
  font-size: 1.45rem;
  border: 1px solid transparent;
  transition: background 0.18s ease;
}
.s0b7-menu-link:hover {
  background: rgba(0, 206, 209, 0.1);
  color: var(--s0b7-primary);
  border-color: rgba(0, 206, 209, 0.2);
}
.s0b7-menu-link i { color: var(--s0b7-mint); font-size: 1.7rem; width: 22px; text-align: center; }

/* ---------- Hero / Carousel ---------- */
.s0b7-hero { padding: 0.6rem 0 0; }

.s0b7-carousel {
  position: relative;
  border-radius: var(--s0b7-radius-lg);
  overflow: hidden;
  box-shadow: var(--s0b7-shadow);
  background: #111;
}

.s0b7-carousel-track {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.s0b7-carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  cursor: pointer;
}
.s0b7-carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.s0b7-carousel-slide--active { opacity: 1; }

.s0b7-carousel-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.6rem 1.2rem 1rem;
  background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0));
  color: #fff;
}
.s0b7-carousel-caption h2 { font-size: 1.9rem; margin-bottom: 0.4rem; }
.s0b7-carousel-caption p { margin: 0; font-size: 1.3rem; color: var(--s0b7-sky); }

.s0b7-carousel-dots {
  position: absolute;
  bottom: 10px; left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 3;
}
.s0b7-carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  transition: background 0.2s, width 0.2s;
}
.s0b7-carousel-dot--active {
  background: var(--s0b7-primary);
  width: 22px;
  border-radius: 6px;
}

.s0b7-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  border: none;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 3;
  font-size: 1.6rem;
}
.s0b7-carousel-arrow.s0b7-prev { left: 8px; }
.s0b7-carousel-arrow.s0b7-next { right: 8px; }

/* ---------- Quick stats strip ---------- */
.s0b7-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
  margin: 1.2rem 0;
}
.s0b7-stat-card {
  background: var(--s0b7-bg-soft);
  border: 1px solid rgba(0, 206, 209, 0.18);
  border-radius: var(--s0b7-radius);
  padding: 1.1rem 0.6rem;
  text-align: center;
}
.s0b7-stat-card .s0b7-stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--s0b7-primary);
  display: block;
}
.s0b7-stat-card .s0b7-stat-label {
  font-size: 1.15rem;
  color: var(--s0b7-text-dim);
  margin-top: 0.2rem;
  display: block;
}

/* ---------- Game grid ---------- */
.s0b7-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}
.s0b7-grid.s0b7-grid-4 { grid-template-columns: repeat(4, 1fr); }

.s0b7-game-card {
  background: var(--s0b7-bg-soft);
  border-radius: var(--s0b7-radius);
  overflow: hidden;
  text-align: center;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: block;
  color: var(--s0b7-text);
  padding-bottom: 0.5rem;
}
.s0b7-game-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(0, 206, 209, 0.25);
  border-color: rgba(0, 206, 209, 0.4);
  color: var(--s0b7-text);
}
.s0b7-game-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #000;
}
.s0b7-game-name {
  font-size: 1.18rem;
  font-weight: 600;
  padding: 0.4rem 0.3rem 0.2rem;
  line-height: 1.25rem;
  height: 3.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--s0b7-text);
}

.s0b7-category-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 2.2rem 0 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px dashed rgba(0, 206, 209, 0.25);
}
.s0b7-category-head h2 {
  font-size: 1.75rem;
  display: flex; align-items: center; gap: 0.6rem;
}
.s0b7-category-head h2 i { color: var(--s0b7-gold); font-size: 2rem; }
.s0b7-category-head .s0b7-link-more {
  font-size: 1.25rem;
  color: var(--s0b7-primary);
  font-weight: 600;
}

/* ---------- Feature / promo cards ---------- */
.s0b7-card {
  background: var(--s0b7-bg-soft);
  border-radius: var(--s0b7-radius);
  padding: 1.4rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.s0b7-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}
.s0b7-feature {
  background: linear-gradient(155deg, var(--s0b7-bg-soft), #1c2c2c);
  padding: 1.3rem 1rem;
  border-radius: var(--s0b7-radius);
  border: 1px solid rgba(0, 206, 209, 0.18);
  text-align: center;
}
.s0b7-feature .s0b7-feature-icon {
  font-size: 2.6rem;
  color: var(--s0b7-mint);
  margin-bottom: 0.4rem;
}
.s0b7-feature h3 { font-size: 1.45rem; color: var(--s0b7-text); margin-bottom: 0.3rem; }
.s0b7-feature p { font-size: 1.2rem; color: var(--s0b7-text-dim); margin: 0; line-height: 1.6rem; }

/* ---------- Steps ---------- */
.s0b7-steps { list-style: none; padding: 0; counter-reset: step; }
.s0b7-steps li {
  position: relative;
  padding: 1rem 1rem 1rem 3.4rem;
  margin-bottom: 0.7rem;
  background: var(--s0b7-bg-soft);
  border-radius: var(--s0b7-radius);
  border-left: 3px solid var(--s0b7-primary);
  counter-increment: step;
}
.s0b7-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0.8rem; top: 50%;
  transform: translateY(-50%);
  width: 2.2rem; height: 2.2rem;
  background: var(--s0b7-primary);
  color: #07262a;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 1.3rem;
}
.s0b7-steps li strong { color: var(--s0b7-sky); }

/* ---------- RTP table ---------- */
.s0b7-rtp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.3rem;
  background: var(--s0b7-bg-soft);
  border-radius: var(--s0b7-radius);
  overflow: hidden;
}
.s0b7-rtp-table th, .s0b7-rtp-table td {
  padding: 0.85rem 0.7rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.s0b7-rtp-table th { background: rgba(0, 206, 209, 0.12); color: var(--s0b7-primary); font-size: 1.2rem; text-transform: uppercase; }
.s0b7-rtp-table td .s0b7-rtp-bar {
  display: inline-block;
  height: 6px;
  background: linear-gradient(90deg, var(--s0b7-mint), var(--s0b7-primary));
  border-radius: 6px;
  vertical-align: middle;
}

/* ---------- Testimonials ---------- */
.s0b7-testimonial {
  background: var(--s0b7-bg-soft);
  border-radius: var(--s0b7-radius);
  padding: 1.2rem;
  margin-bottom: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  gap: 1rem;
}
.s0b7-testimonial-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--s0b7-primary), var(--s0b7-mint));
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: #07262a;
  flex-shrink: 0;
  font-size: 1.7rem;
}
.s0b7-testimonial-body { flex: 1; min-width: 0; }
.s0b7-testimonial-body .s0b7-stars { color: var(--s0b7-gold); margin-bottom: 0.3rem; font-size: 1.2rem; }
.s0b7-testimonial-body p { font-size: 1.3rem; margin: 0 0 0.4rem; color: var(--s0b7-text-dim); }
.s0b7-testimonial-body .s0b7-author { font-size: 1.2rem; color: var(--s0b7-sky); font-weight: 700; }

/* ---------- Winners strip ---------- */
.s0b7-winner {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 0.9rem;
  background: var(--s0b7-bg-soft);
  border-radius: var(--s0b7-radius-sm);
  margin-bottom: 0.5rem;
  border: 1px solid rgba(152, 251, 152, 0.15);
}
.s0b7-winner .s0b7-winner-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--s0b7-gold), var(--s0b7-primary));
  display: flex; align-items: center; justify-content: center;
  color: #1a1a1a; font-weight: 800; font-size: 1.3rem;
  flex-shrink: 0;
}
.s0b7-winner .s0b7-winner-meta { flex: 1; min-width: 0; }
.s0b7-winner .s0b7-winner-name { font-size: 1.3rem; font-weight: 700; }
.s0b7-winner .s0b7-winner-game { font-size: 1.15rem; color: var(--s0b7-muted); }
.s0b7-winner .s0b7-winner-amount { color: var(--s0b7-mint); font-weight: 800; font-size: 1.4rem; }

/* ---------- Payment chips ---------- */
.s0b7-payment-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.s0b7-payment-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  background: var(--s0b7-bg-soft);
  border: 1px solid rgba(173, 216, 230, 0.25);
  border-radius: 999px;
  font-size: 1.25rem;
  color: var(--s0b7-text);
}
.s0b7-payment-chip i { color: var(--s0b7-blue); }

/* ---------- FAQ accordion ---------- */
.s0b7-faq-item {
  background: var(--s0b7-bg-soft);
  border-radius: var(--s0b7-radius-sm);
  margin-bottom: 0.7rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.s0b7-faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--s0b7-text);
  font-weight: 700;
  font-size: 1.4rem;
  padding: 1.1rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
}
.s0b7-faq-question .s0b7-faq-icon { transition: transform 0.2s; color: var(--s0b7-primary); }
.s0b7-faq-item--open .s0b7-faq-question .s0b7-faq-icon { transform: rotate(45deg); }
.s0b7-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 1rem;
  color: var(--s0b7-text-dim);
  font-size: 1.3rem;
  line-height: 2rem;
}
.s0b7-faq-item--open .s0b7-faq-answer {
  max-height: 600px;
  padding: 0 1rem 1.1rem;
}

/* ---------- Promo banner ---------- */
.s0b7-promo-banner {
  position: relative;
  border-radius: var(--s0b7-radius-lg);
  overflow: hidden;
  padding: 1.6rem;
  background: linear-gradient(135deg, #013b3d, #0a5556 60%, #137a4a);
  border: 1px solid rgba(0, 206, 209, 0.4);
  box-shadow: var(--s0b7-shadow);
  color: #fff;
  margin: 1.2rem 0;
}
.s0b7-promo-banner h3 { font-size: 2rem; color: var(--s0b7-gold); margin-bottom: 0.4rem; }
.s0b7-promo-banner p { font-size: 1.3rem; color: rgba(255, 255, 255, 0.9); margin-bottom: 1rem; }

/* ---------- CTA block ---------- */
.s0b7-cta {
  background: linear-gradient(135deg, var(--s0b7-bg-soft), #14393a);
  border: 1px solid rgba(0, 206, 209, 0.3);
  border-radius: var(--s0b7-radius-lg);
  padding: 2rem 1.4rem;
  text-align: center;
  margin: 1.4rem 0;
}
.s0b7-cta h3 { font-size: 2rem; color: var(--s0b7-primary); margin-bottom: 0.6rem; }
.s0b7-cta p { font-size: 1.35rem; color: var(--s0b7-text-dim); margin-bottom: 1.2rem; }

/* ---------- Achievement list ---------- */
.s0b7-ach-list { list-style: none; padding: 0; }
.s0b7-ach-list li {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.9rem 1rem;
  background: var(--s0b7-bg-soft);
  border-radius: var(--s0b7-radius-sm);
  margin-bottom: 0.6rem;
  border: 1px solid rgba(255, 212, 121, 0.15);
}
.s0b7-ach-list i { color: var(--s0b7-gold); font-size: 2rem; }
.s0b7-ach-list strong { color: var(--s0b7-text); font-size: 1.35rem; }
.s0b7-ach-list span { color: var(--s0b7-muted); font-size: 1.2rem; margin-left: auto; }

/* ---------- Footer ---------- */
.s0b7-footer {
  background: var(--s0b7-bg-alt);
  border-top: 1px solid rgba(0, 206, 209, 0.2);
  padding: 2.4rem 0 calc(var(--s0b7-bottomnav-h) + 24px);
}
.s0b7-footer h4 {
  color: var(--s0b7-primary);
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
  letter-spacing: 0.5px;
}
.s0b7-footer p { color: var(--s0b7-text-dim); font-size: 1.3rem; line-height: 2rem; }
.s0b7-footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1rem;
  margin: 1rem 0;
}
.s0b7-footer-links a {
  color: var(--s0b7-text-dim);
  font-size: 1.25rem;
  padding: 0.3rem 0;
}
.s0b7-footer-links a:hover { color: var(--s0b7-primary); }

.s0b7-footer-promos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1rem 0;
}
.s0b7-footer-promos .s0b7-btn { font-size: 1.2rem; padding: 0.55rem 0.9rem; }

.s0b7-footer-bottom {
  text-align: center;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--s0b7-muted);
  font-size: 1.2rem;
}

/* ---------- Mobile bottom nav ---------- */
.s0b7-bottomnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--s0b7-bottomnav-h);
  background: rgba(18, 18, 18, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(0, 206, 209, 0.3);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  z-index: 1000;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.s0b7-bottomnav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: none;
  border: none;
  color: var(--s0b7-text-dim);
  font-size: 1.05rem;
  cursor: pointer;
  min-width: 60px;
  min-height: 60px;
  padding: 6px 2px;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
  position: relative;
}
.s0b7-bottomnav-btn:hover { color: var(--s0b7-primary); transform: translateY(-2px); }
.s0b7-bottomnav-btn .s0b7-nav-icon {
  font-size: 2.2rem;
  line-height: 1;
}
.s0b7-bottomnav-btn .s0b7-nav-label { font-size: 1.05rem; line-height: 1.2; }

.s0b7-bottomnav-btn--active {
  color: var(--s0b7-primary);
}
.s0b7-bottomnav-btn--active::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 32px; height: 3px;
  background: var(--s0b7-primary);
  border-radius: 0 0 4px 4px;
}

.s0b7-bottomnav-btn--promo {
  background: linear-gradient(135deg, var(--s0b7-primary), var(--s0b7-mint));
  color: #07262a;
  border-radius: 18px 18px 0 0;
  margin: -8px 4px 0;
  padding-top: 12px;
  box-shadow: 0 -4px 16px rgba(0, 206, 209, 0.45);
}
.s0b7-bottomnav-btn--promo .s0b7-nav-icon,
.s0b7-bottomnav-btn--promo .s0b7-nav-label { color: #07262a; }

.s0b7-nav-badge {
  position: absolute;
  top: 4px; right: 18px;
  background: var(--s0b7-danger);
  color: #fff;
  font-size: 0.95rem;
  min-width: 16px; height: 16px;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
  font-weight: 700;
}

/* ---------- Back to top button ---------- */
.s0b7-top-btn {
  position: fixed;
  right: 14px;
  bottom: calc(var(--s0b7-bottomnav-h) + 14px);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--s0b7-primary);
  color: #07262a;
  border: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  box-shadow: 0 4px 14px rgba(0, 206, 209, 0.4);
}
.s0b7-top-btn--visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* ---------- Inline link list ---------- */
.s0b7-inline-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; }
.s0b7-inline-links a {
  color: var(--s0b7-sky);
  font-size: 1.25rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.s0b7-inline-links a:hover { color: var(--s0b7-primary); }

/* ---------- Promo link text style ---------- */
.s0b7-promo-text {
  color: var(--s0b7-mint);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.s0b7-promo-text:hover { color: var(--s0b7-primary); }

.s0b7-copied { color: var(--s0b7-mint) !important; }

/* ---------- Desktop: hide bottom nav ---------- */
@media (min-width: 769px) {
  .s0b7-bottomnav { display: none; }
  main.s0b7-main { padding-bottom: 40px; }
  .s0b7-footer { padding-bottom: 24px; }
}

/* ---------- Small screens fine-tune ---------- */
@media (max-width: 360px) {
  .s0b7-grid { grid-template-columns: repeat(2, 1fr); }
  .s0b7-section-title { font-size: 1.7rem; }
  .s0b7-logo-name { font-size: 1.5rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
