/* ============================================================
   PH2222 layout.css - Mobile-first styles for ph2222.homes
   All custom classes use the v7b5- prefix.
   Palette: #4DB6AC | #273746 | #00FF00 | #20B2AA | #006400
   ============================================================ */

:root {
  --v7b5-primary: #4DB6AC;
  --v7b5-bg: #273746;
  --v7b5-bg-deep: #1c2832;
  --v7b5-bg-soft: #2f4250;
  --v7b5-accent: #00FF00;
  --v7b5-teal: #20B2AA;
  --v7b5-deep: #006400;
  --v7b5-gold: #FFD24A;
  --v7b5-text: #eaf4f3;
  --v7b5-muted: #9fb2bd;
  --v7b5-line: rgba(255, 255, 255, 0.10);
  --v7b5-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  --v7b5-radius: 14px;
  --v7b5-radius-lg: 22px;
}

/* ---------- Reset ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: var(--v7b5-bg);
  color: var(--v7b5-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--v7b5-primary);
  text-decoration: none;
}

a:hover {
  color: var(--v7b5-accent);
}

/* ---------- Layout helpers ---------- */
.v7b5-container {
  width: 100%;
  padding: 0 12px;
}

.v7b5-wrapper {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 12px;
}

.v7b5-section {
  padding: 18px 12px 6px;
}

.v7b5-section-title {
  font-size: 1.7rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.v7b5-section-title i {
  color: var(--v7b5-gold);
}

.v7b5-section-sub {
  font-size: 1.2rem;
  color: var(--v7b5-muted);
  margin-bottom: 12px;
}

.v7b5-divider {
  height: 1px;
  background: var(--v7b5-line);
  margin: 14px 0;
}

/* ---------- Header ---------- */
.v7b5-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(135deg, #1c2832 0%, #273746 100%);
  border-bottom: 2px solid var(--v7b5-deep);
  box-shadow: var(--v7b5-shadow);
}

.v7b5-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  gap: 8px;
}

.v7b5-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.v7b5-brand img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.v7b5-brand-name {
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--v7b5-accent);
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.v7b5-brand-tag {
  font-size: 1rem;
  color: var(--v7b5-muted);
  display: block;
  line-height: 1.2rem;
}

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

/* ---------- Buttons ---------- */
.v7b5-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 1.3rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
  text-align: center;
  white-space: nowrap;
}

.v7b5-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.v7b5-btn-primary {
  background: linear-gradient(135deg, var(--v7b5-deep), var(--v7b5-teal));
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 100, 0, 0.45);
}

.v7b5-btn-accent {
  background: linear-gradient(135deg, var(--v7b5-accent), var(--v7b5-teal));
  color: #0c1a14;
  box-shadow: 0 4px 14px rgba(0, 255, 0, 0.35);
}

.v7b5-btn-gold {
  background: linear-gradient(135deg, var(--v7b5-gold), #ff9d2a);
  color: #2a1c00;
}

.v7b5-btn-outline {
  background: transparent;
  color: var(--v7b5-text);
  border: 1.5px solid var(--v7b5-primary);
}

.v7b5-btn-block {
  width: 100%;
  min-height: 46px;
  font-size: 1.5rem;
}

.v7b5-btn-lg {
  min-height: 48px;
  font-size: 1.5rem;
  padding: 0 22px;
}

/* ---------- Menu toggle button ---------- */
.v7b5-menu-toggle {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--v7b5-bg-soft);
  border: 1px solid var(--v7b5-line);
  color: var(--v7b5-text);
  font-size: 1.8rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Mobile slide-down menu ---------- */
.v7b5-mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #1c2832;
  border-bottom: 2px solid var(--v7b5-deep);
  transform: translateY(-110%);
  transition: transform 0.3s ease;
  z-index: 9999;
  padding: 12px;
  max-height: 90vh;
  overflow-y: auto;
}

.v7b5-mobile-menu.v7b5-menu-open {
  transform: translateY(0);
}

.v7b5-menu-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.v7b5-menu-head h3 {
  font-size: 1.6rem;
  color: var(--v7b5-accent);
}

.v7b5-menu-close {
  background: transparent;
  border: none;
  color: var(--v7b5-text);
  font-size: 2rem;
  cursor: pointer;
}

.v7b5-menu-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.v7b5-menu-list a {
  display: block;
  padding: 10px 12px;
  background: var(--v7b5-bg-soft);
  border-radius: 10px;
  font-size: 1.3rem;
  color: var(--v7b5-text);
  border-left: 3px solid var(--v7b5-teal);
}

.v7b5-menu-list a:hover {
  border-left-color: var(--v7b5-accent);
  color: var(--v7b5-accent);
}

/* ---------- Hero carousel ---------- */
.v7b5-hero {
  padding: 12px;
}

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

.v7b5-slides {
  position: relative;
  height: 200px;
}

.v7b5-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.v7b5-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.v7b5-slide-active {
  opacity: 1;
  z-index: 2;
}

.v7b5-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,0.75) 100%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px;
}

.v7b5-slide-title {
  font-size: 1.7rem;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.7);
  margin-bottom: 6px;
}

.v7b5-slide-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--v7b5-accent);
  color: #06210f;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 999px;
  width: fit-content;
  font-size: 1.2rem;
  cursor: pointer;
}

.v7b5-dots {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 5;
}

.v7b5-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
}

.v7b5-dot-active {
  background: var(--v7b5-accent);
  width: 22px;
  border-radius: 6px;
}

/* ---------- CTA strip ---------- */
.v7b5-cta-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 4px 12px 10px;
}

/* ---------- Category tabs (visual only, not switch) ---------- */
.v7b5-cat-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 4px 12px 10px;
  scrollbar-width: none;
}

.v7b5-cat-tabs::-webkit-scrollbar {
  display: none;
}

.v7b5-cat-tab {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--v7b5-bg-soft);
  color: var(--v7b5-text);
  font-size: 1.2rem;
  font-weight: 700;
  border: 1px solid var(--v7b5-line);
}

.v7b5-cat-tab i {
  color: var(--v7b5-gold);
}

/* ---------- Game grid ---------- */
.v7b5-game-block {
  margin-bottom: 6px;
}

.v7b5-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 4px 12px 8px;
}

.v7b5-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.v7b5-card {
  background: var(--v7b5-bg-soft);
  border-radius: var(--v7b5-radius);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--v7b5-line);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: block;
  text-align: center;
}

.v7b5-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0, 255, 0, 0.18);
  border-color: var(--v7b5-primary);
}

.v7b5-card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #000;
}

.v7b5-card-name {
  font-size: 1.1rem;
  color: var(--v7b5-text);
  padding: 5px 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}

/* ---------- Feature / promo cards ---------- */
.v7b5-feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 4px 12px 8px;
}

.v7b5-feature {
  background: linear-gradient(135deg, var(--v7b5-bg-soft), var(--v7b5-bg-deep));
  border-radius: var(--v7b5-radius-lg);
  padding: 14px;
  border: 1px solid var(--v7b5-line);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.v7b5-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(0, 255, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--v7b5-accent);
  font-size: 1.9rem;
  flex: 0 0 auto;
}

.v7b5-feature h3 {
  font-size: 1.45rem;
  margin-bottom: 4px;
  color: #fff;
}

.v7b5-feature p {
  font-size: 1.25rem;
  color: var(--v7b5-muted);
  line-height: 1.5rem;
}

/* ---------- Steps list ---------- */
.v7b5-steps {
  list-style: none;
  counter-reset: step;
  padding: 4px 12px 8px;
  display: grid;
  gap: 8px;
}

.v7b5-step {
  position: relative;
  padding: 12px 12px 12px 48px;
  background: var(--v7b5-bg-soft);
  border-radius: var(--v7b5-radius);
  border-left: 3px solid var(--v7b5-primary);
  counter-increment: step;
}

.v7b5-step::before {
  content: counter(step);
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--v7b5-deep);
  color: #fff;
  font-weight: 800;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.v7b5-step h4 {
  font-size: 1.35rem;
  color: #fff;
  margin-bottom: 2px;
}

.v7b5-step p {
  font-size: 1.2rem;
  color: var(--v7b5-muted);
}

/* ---------- RTP table ---------- */
.v7b5-rtp-table {
  width: calc(100% - 24px);
  margin: 0 12px;
  border-collapse: collapse;
  background: var(--v7b5-bg-soft);
  border-radius: var(--v7b5-radius);
  overflow: hidden;
  font-size: 1.25rem;
}

.v7b5-rtp-table th,
.v7b5-rtp-table td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid var(--v7b5-line);
}

.v7b5-rtp-table th {
  background: var(--v7b5-deep);
  color: #fff;
  font-size: 1.2rem;
}

.v7b5-rtp-bar {
  display: inline-block;
  height: 6px;
  background: linear-gradient(90deg, var(--v7b5-primary), var(--v7b5-accent));
  border-radius: 6px;
  vertical-align: middle;
  margin-left: 6px;
}

/* ---------- Testimonials ---------- */
.v7b5-testi {
  background: var(--v7b5-bg-soft);
  border-radius: var(--v7b5-radius);
  padding: 12px;
  margin: 0 12px 8px;
  border-left: 3px solid var(--v7b5-gold);
}

.v7b5-testi-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.v7b5-testi-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--v7b5-deep);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.3rem;
}

.v7b5-testi-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
}

.v7b5-stars {
  color: var(--v7b5-gold);
  font-size: 1.1rem;
  margin-left: auto;
}

.v7b5-testi p {
  font-size: 1.25rem;
  color: var(--v7b5-muted);
  line-height: 1.5rem;
}

/* ---------- Winners ---------- */
.v7b5-winner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--v7b5-bg-soft);
  border-radius: var(--v7b5-radius);
  padding: 10px 12px;
  margin: 0 12px 6px;
}

.v7b5-winner-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 210, 74, 0.16);
  color: var(--v7b5-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex: 0 0 auto;
}

.v7b5-winner-name {
  font-size: 1.25rem;
  color: #fff;
  font-weight: 700;
}

.v7b5-winner-amount {
  margin-left: auto;
  font-size: 1.4rem;
  color: var(--v7b5-accent);
  font-weight: 900;
}

/* ---------- Payment grid ---------- */
.v7b5-pay-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 4px 12px 8px;
}

.v7b5-pay {
  background: #fff;
  border-radius: 10px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  color: #273746;
}

/* ---------- FAQ ---------- */
.v7b5-faq {
  padding: 4px 12px 8px;
}

.v7b5-faq-item {
  background: var(--v7b5-bg-soft);
  border-radius: var(--v7b5-radius);
  padding: 12px;
  margin-bottom: 8px;
  border: 1px solid var(--v7b5-line);
}

.v7b5-faq-q {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--v7b5-primary);
  margin-bottom: 6px;
}

.v7b5-faq-a {
  font-size: 1.25rem;
  color: var(--v7b5-muted);
  line-height: 1.6rem;
}

/* ---------- Long SEO content ---------- */
.v7b5-content {
  padding: 4px 12px 10px;
  font-size: 1.28rem;
  line-height: 1.7rem;
  color: var(--v7b5-text);
}

.v7b5-content h2 {
  font-size: 1.6rem;
  color: #fff;
  margin: 14px 0 6px;
}

.v7b5-content h3 {
  font-size: 1.4rem;
  color: var(--v7b5-primary);
  margin: 10px 0 4px;
}

.v7b5-content p {
  margin-bottom: 8px;
  color: var(--v7b5-muted);
}

.v7b5-content ul {
  margin: 0 0 8px 18px;
  color: var(--v7b5-muted);
}

.v7b5-content a {
  color: var(--v7b5-accent);
  font-weight: 700;
}

/* ---------- Banner promo ---------- */
.v7b5-banner {
  background: linear-gradient(135deg, var(--v7b5-deep), var(--v7b5-teal));
  border-radius: var(--v7b5-radius-lg);
  padding: 16px;
  margin: 8px 12px;
  text-align: center;
  border: 1px solid var(--v7b5-primary);
}

.v7b5-banner h3 {
  font-size: 1.7rem;
  color: #fff;
  margin-bottom: 6px;
}

.v7b5-banner p {
  font-size: 1.25rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 10px;
}

/* ---------- Partners ---------- */
.v7b5-partners {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 4px 12px 10px;
}

.v7b5-partners img {
  width: 100%;
  height: 40px;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  padding: 4px;
}

/* ---------- Footer ---------- */
.v7b5-footer {
  background: #161f29;
  border-top: 2px solid var(--v7b5-deep);
  padding: 18px 12px 90px;
  margin-top: 14px;
}

.v7b5-footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.v7b5-footer-brand img {
  width: 30px;
  height: 30px;
  border-radius: 6px;
}

.v7b5-footer-brand strong {
  font-size: 1.6rem;
  color: var(--v7b5-accent);
}

.v7b5-footer p {
  font-size: 1.2rem;
  color: var(--v7b5-muted);
  line-height: 1.6rem;
  margin-bottom: 10px;
}

.v7b5-footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 10px 0;
}

.v7b5-footer-links a {
  font-size: 1.2rem;
  color: var(--v7b5-text);
  padding: 6px 8px;
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
}

.v7b5-footer-promo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 10px 0;
}

.v7b5-footer-promo .v7b5-btn {
  width: 100%;
  min-height: 40px;
  font-size: 1.2rem;
}

.v7b5-copy {
  font-size: 1.1rem;
  color: var(--v7b5-muted);
  text-align: center;
  margin-top: 10px;
  border-top: 1px solid var(--v7b5-line);
  padding-top: 10px;
}

/* ---------- Mobile bottom nav ---------- */
.v7b5-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 62px;
  background: linear-gradient(180deg, #1c2832, #11181f);
  border-top: 2px solid var(--v7b5-deep);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -4px 18px rgba(0,0,0,0.45);
}

.v7b5-bottom-btn {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: none;
  color: var(--v7b5-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  transition: color 0.18s ease, transform 0.18s ease;
}

.v7b5-bottom-btn i,
.v7b5-bottom-btn span.material-icons-outlined {
  font-size: 24px;
}

.v7b5-bottom-btn:active {
  transform: scale(0.92);
}

.v7b5-bottom-btn:hover {
  color: var(--v7b5-accent);
}

.v7b5-bottom-btn.v7b5-active {
  color: var(--v7b5-accent);
}

.v7b5-bottom-btn.v7b5-promo {
  color: var(--v7b5-gold);
}

/* ---------- Back to top ---------- */
.v7b5-back-top {
  position: fixed;
  right: 12px;
  bottom: 76px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--v7b5-deep);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  z-index: 900;
  border: 2px solid var(--v7b5-primary);
}

/* ---------- Reveal animation ---------- */
.v7b5-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.v7b5-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Desktop handling ---------- */
@media (min-width: 769px) {
  .v7b5-bottom-nav {
    display: none;
  }
  .v7b5-back-top {
    bottom: 24px;
  }
}

@media (min-width: 431px) and (max-width: 768px) {
  body {
    max-width: 430px;
  }
}

/* ---------- Mobile bottom padding for content clearance ---------- */
@media (max-width: 768px) {
  main,
  .v7b5-main {
    padding-bottom: 80px;
  }
  .v7b5-footer {
    padding-bottom: 90px;
  }
}

/* ---------- Badge ---------- */
.v7b5-badge {
  display: inline-block;
  background: var(--v7b5-gold);
  color: #2a1c00;
  font-size: 1rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
  margin-left: 6px;
}

.v7b5-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(0, 255, 0, 0.12);
  color: var(--v7b5-accent);
  font-size: 1.1rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}
