/*!
 * okplus.homes base stylesheet
 * Custom classes use the g7d4- prefix to avoid collisions.
 * Palette: #7B68EE / #212F3D / #6A5ACD / #DDA0DD / #FF1493 / #E5E5E5
 * Mobile-first layout, max content width 430px on phones.
 * Comments in English only.
 */

:root {
  --g7d4-primary: #7B68EE;
  --g7d4-bg: #212F3D;
  --g7d4-secondary: #6A5ACD;
  --g7d4-accent: #DDA0DD;
  --g7d4-pink: #FF1493;
  --g7d4-light: #E5E5E5;
  --g7d4-dark-deep: #18222C;
  --g7d4-card: #283747;
  --g7d4-border: rgba(123, 104, 238, 0.25);
  --g7d4-radius: 12px;
  --g7d4-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  background: radial-gradient(circle at top, #243447 0%, #18222C 55%, #0F1820 100%);
  color: var(--g7d4-light);
  font-size: 1.5rem;
  line-height: 1.5;
  min-height: 100vh;
}

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

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

a:hover {
  color: var(--g7d4-pink);
}

.g7d4-wrapper {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  background: var(--g7d4-bg);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.g7d4-container {
  padding: 0 1.4rem;
}

/* ============ Header ============ */
.g7d4-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(135deg, #1c2833 0%, #283747 60%, #6A5ACD 200%);
  border-bottom: 1px solid var(--g7d4-border);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}

.g7d4-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.2rem;
  gap: 0.8rem;
}

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

.g7d4-brand img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.g7d4-brand-text {
  font-weight: 800;
  font-size: 1.8rem;
  letter-spacing: 0.4px;
  background: linear-gradient(90deg, #FF1493, #DDA0DD, #7B68EE);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.g7d4-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.g7d4-icon-btn {
  background: rgba(123, 104, 238, 0.18);
  border: 1px solid var(--g7d4-border);
  color: var(--g7d4-light);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
}

.g7d4-icon-btn:active {
  transform: scale(0.94);
}

.g7d4-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.35rem;
  cursor: pointer;
  border: none;
  transition: transform 0.15s, filter 0.2s;
}

.g7d4-btn:active {
  transform: scale(0.96);
}

.g7d4-btn-register {
  background: linear-gradient(90deg, #FF1493, #7B68EE);
  color: #fff;
}

.g7d4-btn-login {
  background: transparent;
  color: var(--g7d4-light);
  border: 1px solid var(--g7d4-accent);
}

.g7d4-btn-primary {
  background: linear-gradient(90deg, #6A5ACD, #FF1493);
  color: #fff;
  padding: 0.9rem 1.6rem;
  font-size: 1.5rem;
}

.g7d4-btn-ghost {
  background: rgba(221, 160, 221, 0.14);
  color: var(--g7d4-accent);
  border: 1px solid var(--g7d4-accent);
}

/* ============ Mobile menu ============ */
.g7d4-mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #1c2833;
  border-bottom: 1px solid var(--g7d4-border);
  padding: 0.8rem 1.4rem 1.4rem;
  transform: translateY(-160%);
  transition: transform 0.28s ease;
  z-index: 999;
}

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

.g7d4-mobile-menu a {
  display: block;
  padding: 0.85rem 0.4rem;
  color: var(--g7d4-light);
  border-bottom: 1px dashed rgba(221, 160, 221, 0.18);
  font-size: 1.4rem;
}

.g7d4-mobile-menu a:last-child {
  border-bottom: none;
}

/* ============ Hero / carousel ============ */
.g7d4-hero {
  position: relative;
  margin: 1.2rem 0;
}

.g7d4-carousel {
  position: relative;
  border-radius: var(--g7d4-radius);
  overflow: hidden;
  box-shadow: var(--g7d4-shadow);
}

.g7d4-slide {
  display: none;
  position: relative;
}

.g7d4-slide.g7d4-slide-active {
  display: block;
}

.g7d4-slide img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.g7d4-slide-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem 1.2rem;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.78) 100%);
  color: #fff;
}

.g7d4-slide-caption h2 {
  margin: 0 0 0.4rem;
  font-size: 1.7rem;
}

.g7d4-slide-caption p {
  margin: 0;
  font-size: 1.25rem;
  color: var(--g7d4-accent);
}

.g7d4-dots {
  position: absolute;
  bottom: 8px;
  right: 12px;
  display: flex;
  gap: 5px;
}

.g7d4-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(229, 229, 229, 0.45);
  cursor: pointer;
}

.g7d4-dot.g7d4-dot-active {
  background: var(--g7d4-pink);
}

/* ============ Sections / titles ============ */
.g7d4-section {
  padding: 1.4rem 0;
}

.g7d4-section-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.7rem;
  font-weight: 800;
  margin: 0 0 1rem;
  color: #fff;
}

.g7d4-section-title i {
  color: var(--g7d4-pink);
}

.g7d4-section-title .g7d4-pill {
  margin-left: auto;
  font-size: 1.1rem;
  padding: 0.2rem 0.7rem;
  background: rgba(255, 20, 147, 0.18);
  color: var(--g7d4-pink);
  border-radius: 999px;
  font-weight: 600;
}

.g7d4-subtitle {
  font-size: 1.4rem;
  color: var(--g7d4-accent);
  font-weight: 700;
  margin: 1.2rem 0 0.6rem;
}

.g7d4-lead {
  color: #c9d1d9;
  font-size: 1.35rem;
  line-height: 1.55;
}

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

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

.g7d4-game-card {
  background: var(--g7d4-card);
  border: 1px solid var(--g7d4-border);
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
}

.g7d4-game-card:active {
  transform: scale(0.95);
  box-shadow: 0 0 0 2px var(--g7d4-pink);
}

.g7d4-game-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.g7d4-game-name {
  font-size: 1.1rem;
  padding: 0.4rem 0.3rem 0.55rem;
  color: var(--g7d4-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}

/* ============ Cards / panels ============ */
.g7d4-card {
  background: var(--g7d4-card);
  border: 1px solid var(--g7d4-border);
  border-radius: var(--g7d4-radius);
  padding: 1.2rem;
  margin-bottom: 1rem;
  box-shadow: var(--g7d4-shadow);
}

.g7d4-card-accent {
  background: linear-gradient(135deg, rgba(106, 90, 205, 0.25), rgba(255, 20, 147, 0.18));
  border-color: var(--g7d4-pink);
}

.g7d4-flex-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.g7d4-feature-list {
  list-style: none;
  padding: 0;
  margin: 0.6rem 0 0;
}

.g7d4-feature-list li {
  padding: 0.55rem 0;
  border-bottom: 1px dashed rgba(221, 160, 221, 0.15);
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}

.g7d4-feature-list li:last-child {
  border-bottom: none;
}

.g7d4-feature-list i {
  color: var(--g7d4-pink);
  margin-top: 2px;
}

/* ============ Stats row ============ */
.g7d4-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin: 0.8rem 0;
}

.g7d4-stat {
  background: rgba(123, 104, 238, 0.14);
  border: 1px solid var(--g7d4-border);
  border-radius: 10px;
  padding: 0.7rem 0.4rem;
  text-align: center;
}

.g7d4-stat-num {
  display: block;
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--g7d4-accent);
}

.g7d4-stat-label {
  font-size: 1.1rem;
  color: #c9d1d9;
}

/* ============ Testimonials ============ */
.g7d4-testi {
  background: var(--g7d4-card);
  border-left: 3px solid var(--g7d4-pink);
  border-radius: 8px;
  padding: 0.9rem 1rem;
  margin-bottom: 0.7rem;
}

.g7d4-testi p {
  margin: 0 0 0.4rem;
  font-size: 1.3rem;
  color: #d8dee5;
}

.g7d4-testi span {
  font-size: 1.15rem;
  color: var(--g7d4-accent);
  font-weight: 700;
}

/* ============ FAQ ============ */
.g7d4-faq-item {
  background: var(--g7d4-card);
  border: 1px solid var(--g7d4-border);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  margin-bottom: 0.6rem;
}

.g7d4-faq-item h3 {
  margin: 0 0 0.4rem;
  font-size: 1.35rem;
  color: var(--g7d4-accent);
}

.g7d4-faq-item p {
  margin: 0;
  font-size: 1.25rem;
  color: #c9d1d9;
}

/* ============ Payment / winners ============ */
.g7d4-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.g7d4-chip {
  background: rgba(221, 160, 221, 0.12);
  border: 1px solid var(--g7d4-accent);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 1.2rem;
  color: var(--g7d4-accent);
  font-weight: 600;
}

.g7d4-winner-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px dashed rgba(221, 160, 221, 0.15);
  font-size: 1.25rem;
}

.g7d4-winner-row:last-child {
  border-bottom: none;
}

.g7d4-winner-row b {
  color: var(--g7d4-pink);
}

/* ============ Footer ============ */
.g7d4-footer {
  background: #141e27;
  padding: 1.6rem 1.4rem 6rem;
  border-top: 2px solid var(--g7d4-primary);
}

.g7d4-footer h4 {
  margin: 0 0 0.6rem;
  font-size: 1.4rem;
  color: #fff;
}

.g7d4-footer p {
  font-size: 1.25rem;
  color: #9aa6b2;
  margin: 0 0 1rem;
}

.g7d4-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.8rem;
  margin: 0.6rem 0 1rem;
}

.g7d4-footer-links a {
  color: #c9d1d9;
  font-size: 1.2rem;
  text-decoration: underline;
}

.g7d4-footer-copy {
  font-size: 1.1rem;
  color: #6b7884;
  text-align: center;
  border-top: 1px dashed rgba(123, 104, 238, 0.18);
  padding-top: 0.8rem;
}

/* ============ Bottom nav (mobile) ============ */
.g7d4-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  height: 62px;
  background: linear-gradient(180deg, #243447 0%, #141e27 100%);
  border-top: 1px solid var(--g7d4-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.45);
}

.g7d4-bottom-nav a,
.g7d4-bottom-nav button {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: none;
  color: var(--g7d4-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 1.05rem;
  cursor: pointer;
  transition: transform 0.15s, color 0.2s;
}

.g7d4-bottom-nav a:active,
.g7d4-bottom-nav button:active {
  transform: scale(0.92);
}

.g7d4-bottom-nav i,
.g7d4-bottom-nav .material-icons,
.g7d4-bottom-nav .ion {
  font-size: 22px;
}

.g7d4-bottom-nav .g7d4-nav-active {
  color: var(--g7d4-pink);
}

/* ============ Desktop adjustments ============ */
@media (min-width: 769px) {
  body {
    background: #0f1820;
  }
  .g7d4-wrapper {
    max-width: 760px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
  }
  .g7d4-bottom-nav {
    display: none;
  }
  .g7d4-footer {
    padding-bottom: 2rem;
  }
  .g7d4-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  .g7d4-grid-4 {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (max-width: 768px) {
  main.g7d4-main {
    padding-bottom: 80px;
  }
}

/* Utility helpers */
.g7d4-center {
  text-align: center;
}

.g7d4-mt {
  margin-top: 1rem;
}

.g7d4-mb {
  margin-bottom: 1rem;
}

.g7d4-text-pink {
  color: var(--g7d4-pink);
  font-weight: 700;
}

.g7d4-text-accent {
  color: var(--g7d4-accent);
  font-weight: 700;
}
