/**
 * 5666 Angel Number - Core Stylesheet
 * Prefix: v384-
 * Color Palette: #141414 (bg) | #87CEEB (text/accent)
 * Mobile-first design, max-width 430px
 */

/* === CSS Variables === */
:root {
  --v384-primary: #87CEEB;
  --v384-bg: #141414;
  --v384-bg-card: #1e1e2a;
  --v384-bg-alt: #0d0d1a;
  --v384-text: #87CEEB;
  --v384-text-light: #c8e6f5;
  --v384-text-muted: #7a9ab5;
  --v384-accent: #87CEEB;
  --v384-accent-bright: #5bc0f8;
  --v384-gold: #ffd700;
  --v384-border: #2a2a3e;
  --v384-gradient: linear-gradient(135deg, #141414 0%, #1a1a2e 100%);
  --v384-radius: 8px;
  --v384-radius-lg: 12px;
  --v384-shadow: 0 2px 12px rgba(135, 206, 235, 0.15);
  --v384-font: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
  font-family: var(--v384-font);
  background: var(--v384-bg);
  color: var(--v384-text-light);
  line-height: 1.5rem;
  font-size: 1.4rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100%;
}
a { color: var(--v384-primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--v384-accent-bright); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* === Container === */
.v384-container { max-width: 430px; margin: 0 auto; padding: 0 1.2rem; width: 100%; }
.v384-wrapper { padding: 1rem 0; }

/* === Header === */
.v384-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(20, 20, 20, 0.97);
  border-bottom: 1px solid var(--v384-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.v384-header-inner {
  max-width: 430px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.8rem 1rem; height: 52px;
}
.v384-logo-area { display: flex; align-items: center; gap: 0.6rem; }
.v384-logo-area img { width: 28px; height: 28px; border-radius: 6px; }
.v384-logo-area span { font-size: 1.3rem; font-weight: 700; color: var(--v384-primary); white-space: nowrap; }
.v384-header-btns { display: flex; gap: 0.5rem; align-items: center; }
.v384-header-btns .v384-btn-register,
.v384-header-btns .v384-btn-login {
  padding: 0.5rem 1.2rem; border-radius: var(--v384-radius); font-size: 1.2rem;
  font-weight: 600; cursor: pointer; border: none; transition: all 0.2s;
  min-height: 34px;
}
.v384-btn-register {
  background: var(--v384-primary); color: var(--v384-bg);
}
.v384-btn-register:hover { background: var(--v384-accent-bright); transform: scale(1.03); }
.v384-btn-login {
  background: transparent; color: var(--v384-primary);
  border: 1px solid var(--v384-primary) !important;
}
.v384-btn-login:hover { background: rgba(135, 206, 235, 0.1); }

/* Menu toggle */
.v384-menu-toggle {
  background: none; border: none; color: var(--v384-primary);
  font-size: 2rem; cursor: pointer; padding: 0.4rem; line-height: 1;
  margin-right: 0.4rem;
}

/* === Mobile Menu === */
.v384-mobile-menu {
  position: fixed; top: 0; left: 0; bottom: 0; width: 75%; max-width: 300px;
  background: var(--v384-bg-alt); z-index: 9999;
  transform: translateX(-100%); opacity: 0; visibility: hidden;
  transition: all 0.3s ease; overflow-y: auto;
  border-right: 1px solid var(--v384-border);
}
.v384-mobile-menu.v384-menu-open {
  transform: translateX(0); opacity: 1; visibility: visible;
}
.v384-menu-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.6); z-index: 9998;
  display: none; opacity: 0; transition: opacity 0.3s;
}
.v384-menu-header {
  padding: 1.4rem 1.2rem; display: flex; align-items: center;
  justify-content: space-between; border-bottom: 1px solid var(--v384-border);
}
.v384-menu-header span { font-size: 1.4rem; font-weight: 700; color: var(--v384-primary); }
.v384-menu-close { background: none; border: none; color: var(--v384-text-muted); font-size: 2rem; cursor: pointer; }
.v384-menu-links { padding: 0.6rem 0; }
.v384-menu-links a {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 1rem 1.4rem; color: var(--v384-text-light); font-size: 1.3rem;
  border-bottom: 1px solid rgba(255,255,255,0.04); transition: all 0.2s;
}
.v384-menu-links a:hover { background: rgba(135, 206, 235, 0.08); color: var(--v384-primary); }
.v384-menu-links .material-icons, .v384-menu-links .bi { font-size: 1.8rem; }

/* === Carousel === */
.v384-carousel {
  position: relative; overflow: hidden; border-radius: var(--v384-radius-lg);
  margin-top: 56px; height: 180px; cursor: pointer;
}
.v384-slide {
  display: none; width: 100%; height: 100%; position: absolute; top: 0; left: 0;
}
.v384-slide img { width: 100%; height: 100%; object-fit: cover; }
.v384-slide-active { display: block; }

/* === Section Title === */
.v384-section-title {
  font-size: 1.6rem; font-weight: 700; color: var(--v384-primary);
  padding: 1.4rem 0 0.8rem; border-bottom: 2px solid var(--v384-border);
  margin-bottom: 1rem; display: flex; align-items: center; gap: 0.6rem;
}
.v384-section-title .material-icons,
.v384-section-title .bi { font-size: 2rem; }

/* === Game Grid === */
.v384-game-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem;
  padding: 0.4rem 0;
}
.v384-game-item {
  display: flex; flex-direction: column; align-items: center;
  padding: 0.5rem 0.2rem; border-radius: var(--v384-radius);
  transition: transform 0.2s, background 0.2s; cursor: pointer;
  background: var(--v384-bg-card); border: 1px solid var(--v384-border);
}
.v384-game-item:hover { transform: translateY(-2px); background: rgba(135, 206, 235, 0.08); }
.v384-game-item img {
  width: 52px; height: 52px; border-radius: 8px; margin-bottom: 0.3rem;
  object-fit: cover;
}
.v384-game-item span {
  font-size: 1rem; text-align: center; color: var(--v384-text-light);
  line-height: 1.2rem; overflow: hidden; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; max-height: 2.4rem;
  word-break: break-all;
}

/* === Cards & Modules === */
.v384-card {
  background: var(--v384-bg-card); border: 1px solid var(--v384-border);
  border-radius: var(--v384-radius-lg); padding: 1.2rem; margin-bottom: 1rem;
}
.v384-card h2 { font-size: 1.5rem; color: var(--v384-primary); margin-bottom: 0.6rem; }
.v384-card h3 { font-size: 1.3rem; color: var(--v384-accent-bright); margin-bottom: 0.5rem; }
.v384-card p { color: var(--v384-text-muted); font-size: 1.25rem; line-height: 1.7rem; margin-bottom: 0.6rem; }

/* === Promo Button === */
.v384-promo-btn {
  display: inline-block; padding: 0.8rem 2rem; border-radius: var(--v384-radius);
  background: var(--v384-primary); color: var(--v384-bg); font-weight: 700;
  font-size: 1.3rem; border: none; cursor: pointer; transition: all 0.2s;
  text-align: center;
}
.v384-promo-btn:hover { background: var(--v384-accent-bright); transform: scale(1.03); }

/* === Promo Text Link === */
.v384-promo-link {
  color: var(--v384-gold); font-weight: 700; text-decoration: underline;
  cursor: pointer; transition: color 0.2s;
}
.v384-promo-link:hover { color: var(--v384-accent-bright); }

/* === Footer === */
.v384-footer {
  background: var(--v384-bg-alt); border-top: 1px solid var(--v384-border);
  padding: 1.6rem 1rem 2rem; margin-top: 2rem;
}
.v384-footer-brand { font-size: 1.2rem; color: var(--v384-text-muted); line-height: 1.6rem; margin-bottom: 1rem; }
.v384-footer-links { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1rem; }
.v384-footer-links a {
  padding: 0.4rem 0.8rem; border-radius: var(--v384-radius);
  background: var(--v384-bg-card); border: 1px solid var(--v384-border);
  font-size: 1.1rem; color: var(--v384-text-light); transition: all 0.2s;
}
.v384-footer-links a:hover { color: var(--v384-primary); border-color: var(--v384-primary); }
.v384-footer-copy { font-size: 1.1rem; color: var(--v384-text-muted); text-align: center; margin-top: 0.8rem; }

/* === Bottom Navigation (Mobile) === */
.v384-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(13, 13, 26, 0.98); border-top: 1px solid var(--v384-border);
  display: flex; justify-content: space-around; align-items: center;
  height: 60px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.v384-bottom-nav-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 60px; min-height: 56px; background: none; border: none;
  color: var(--v384-text-muted); font-size: 1rem; cursor: pointer;
  transition: all 0.2s; position: relative; padding: 0.3rem;
}
.v384-bottom-nav-btn:hover { color: var(--v384-primary); }
.v384-bottom-nav-btn .material-icons,
.v384-bottom-nav-btn .fas,
.v384-bottom-nav-btn .far,
.v384-bottom-nav-btn .fad,
.v384-bottom-nav-btn ion-icon,
.v384-bottom-nav-btn .bi { font-size: 2.2rem; margin-bottom: 0.1rem; }
.v384-bottom-nav-btn span { font-size: 1rem; }
.v384-bottom-nav-active {
  color: var(--v384-primary) !important;
}
.v384-bottom-nav-active::after {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 24px; height: 2px; background: var(--v384-primary); border-radius: 2px;
}

/* === Main Content === */
.v384-main { padding-top: 56px; }
@media (max-width: 768px) {
  .v384-main { padding-bottom: 72px; }
}

/* === Desktop: hide bottom nav === */
@media (min-width: 769px) {
  .v384-bottom-nav { display: none; }
}

/* === Winners Table === */
.v384-winners-table { width: 100%; border-collapse: collapse; }
.v384-winners-table th {
  background: rgba(135, 206, 235, 0.1); color: var(--v384-primary);
  padding: 0.6rem 0.4rem; font-size: 1.1rem; text-align: left;
  border-bottom: 1px solid var(--v384-border);
}
.v384-winners-table td {
  padding: 0.5rem 0.4rem; font-size: 1.1rem; color: var(--v384-text-muted);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

/* === Payment Icons === */
.v384-payment-row { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; margin: 0.6rem 0; }
.v384-payment-item {
  background: var(--v384-bg-card); border: 1px solid var(--v384-border);
  border-radius: var(--v384-radius); padding: 0.5rem 1rem;
  font-size: 1.2rem; color: var(--v384-text-light);
}

/* === App Download CTA === */
.v384-app-cta {
  background: linear-gradient(135deg, rgba(135, 206, 235, 0.15), rgba(91, 192, 248, 0.08));
  border: 1px solid var(--v384-primary); border-radius: var(--v384-radius-lg);
  padding: 1.4rem; text-align: center;
}
.v384-app-cta h3 { font-size: 1.5rem; color: var(--v384-primary); margin-bottom: 0.5rem; }
.v384-app-cta p { font-size: 1.2rem; color: var(--v384-text-muted); margin-bottom: 0.8rem; }

/* === Testimonials === */
.v384-testimonial {
  background: var(--v384-bg-card); border-left: 3px solid var(--v384-primary);
  padding: 1rem; border-radius: 0 var(--v384-radius) var(--v384-radius) 0;
  margin-bottom: 0.8rem;
}
.v384-testimonial p { font-style: italic; font-size: 1.2rem; margin-bottom: 0.4rem; }
.v384-testimonial cite { font-size: 1.1rem; color: var(--v384-primary); }

/* === Category Highlights === */
.v384-cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
.v384-cat-item {
  background: var(--v384-bg-card); border: 1px solid var(--v384-border);
  border-radius: var(--v384-radius-lg); padding: 1rem; text-align: center;
  cursor: pointer; transition: all 0.2s;
}
.v384-cat-item:hover { border-color: var(--v384-primary); transform: scale(1.02); }
.v384-cat-item h3 { font-size: 1.2rem; color: var(--v384-primary); margin-bottom: 0.3rem; }
.v384-cat-item p { font-size: 1.05rem; color: var(--v384-text-muted); }

/* === Help Page Styles === */
.v384-help-section { margin-bottom: 1.2rem; }
.v384-help-section h2 { font-size: 1.5rem; color: var(--v384-primary); margin-bottom: 0.6rem; }
.v384-help-section h3 { font-size: 1.3rem; color: var(--v384-accent-bright); margin-bottom: 0.4rem; }
.v384-help-section p { font-size: 1.25rem; color: var(--v384-text-muted); line-height: 1.7rem; margin-bottom: 0.5rem; }
.v384-faq-item {
  background: var(--v384-bg-card); border: 1px solid var(--v384-border);
  border-radius: var(--v384-radius); padding: 1rem; margin-bottom: 0.8rem;
}
.v384-faq-item strong { color: var(--v384-primary); font-size: 1.3rem; display: block; margin-bottom: 0.4rem; }
.v384-faq-item p { color: var(--v384-text-muted); font-size: 1.2rem; }

/* === Step List === */
.v384-steps { counter-reset: step-counter; }
.v384-step-item {
  counter-increment: step-counter; position: relative;
  padding: 0.8rem 0 0.8rem 3.2rem; margin-bottom: 0.6rem;
}
.v384-step-item::before {
  content: counter(step-counter); position: absolute; left: 0; top: 0.6rem;
  width: 2.4rem; height: 2.4rem; background: var(--v384-primary);
  color: var(--v384-bg); border-radius: 50%; display: flex;
  align-items: center; justify-content: center; font-weight: 700; font-size: 1.2rem;
}
.v384-step-item p { font-size: 1.2rem; color: var(--v384-text-muted); }

/* === Scroll to Top === */
.v384-scroll-top {
  position: fixed; bottom: 72px; right: 1rem; z-index: 999;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--v384-primary); color: var(--v384-bg);
  border: none; cursor: pointer; font-size: 1.6rem; display: none;
  align-items: center; justify-content: center;
  box-shadow: var(--v384-shadow);
}
@media (max-width: 768px) { .v384-scroll-top { bottom: 72px; } }

/* === Utility === */
.v384-text-center { text-align: center; }
.v384-text-gold { color: var(--v384-gold); }
.v384-mt-1 { margin-top: 0.5rem; }
.v384-mt-2 { margin-top: 1rem; }
.v384-mb-1 { margin-bottom: 0.5rem; }
.v384-mb-2 { margin-bottom: 1rem; }
