/*
 * phdream11 - Core Stylesheet
 * All classes use v495- prefix for namespace isolation
 * Color palette: #0A0A0A (bg) | #80CBC4 (accent)
 * Mobile-first responsive design
 */

/* ===== CSS Variables ===== */
:root {
  --v495-primary: #80CBC4;
  --v495-primary-dark: #4DA89E;
  --v495-bg: #0A0A0A;
  --v495-bg-card: #141414;
  --v495-bg-card-hover: #1C1C1C;
  --v495-text: #E0E0E0;
  --v495-text-muted: #9E9E9E;
  --v495-border: #2A2A2A;
  --v495-gold: #FFD700;
  --v495-danger: #FF6B6B;
  --v495-success: #66BB6A;
  --v495-gradient: linear-gradient(135deg, #80CBC4 0%, #4DA89E 100%);
  --v495-shadow: 0 4px 20px rgba(128, 203, 196, 0.15);
  --v495-radius: 10px;
  --v495-header-h: 56px;
  --v495-bottom-h: 60px;
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--v495-bg);
  color: var(--v495-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--v495-primary); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* ===== Container ===== */
.v495-container { max-width: 430px; margin: 0 auto; padding: 0 1.2rem; width: 100%; }
.v495-wrapper { padding-top: var(--v495-header-h); padding-bottom: 2rem; }

/* ===== Header ===== */
.v495-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--v495-header-h); background: rgba(10,10,10,0.95);
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--v495-border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.2rem;
}
.v495-header-left { display: flex; align-items: center; gap: 0.8rem; }
.v495-logo { width: 28px; height: 28px; border-radius: 6px; }
.v495-brand { font-size: 1.6rem; font-weight: 700; color: var(--v495-primary); letter-spacing: -0.5px; }
.v495-header-right { display: flex; align-items: center; gap: 0.6rem; }
.v495-btn-reg {
  background: var(--v495-gradient); color: #0A0A0A; border: none;
  padding: 0.6rem 1.2rem; border-radius: 6px; font-size: 1.2rem;
  font-weight: 700; cursor: pointer; transition: all 0.2s;
}
.v495-btn-reg:hover { transform: scale(1.05); box-shadow: 0 0 12px rgba(128,203,196,0.4); }
.v495-btn-login {
  background: transparent; color: var(--v495-primary); border: 1.5px solid var(--v495-primary);
  padding: 0.5rem 1rem; border-radius: 6px; font-size: 1.2rem;
  font-weight: 600; cursor: pointer; transition: all 0.2s;
}
.v495-btn-login:hover { background: rgba(128,203,196,0.1); }
.v495-menu-btn {
  background: none; border: none; color: var(--v495-text);
  font-size: 2rem; cursor: pointer; padding: 0.4rem;
  display: flex; align-items: center; justify-content: center;
}

/* ===== Mobile Menu ===== */
.v495-menu-overlay {
  display: none; position: fixed; inset: 0; z-index: 9998;
  background: rgba(0,0,0,0.6);
}
.v495-mobile-menu {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 9999;
  width: 260px; background: #111; transform: translateX(-100%);
  transition: transform 0.3s ease; padding-top: 1.6rem; overflow-y: auto;
}
.v495-mobile-menu-title {
  padding: 0 1.6rem 1.2rem; font-size: 1.6rem; font-weight: 700;
  color: var(--v495-primary); border-bottom: 1px solid var(--v495-border);
  margin-bottom: 0.8rem;
}
.v495-mobile-menu a {
  display: block; padding: 1rem 1.6rem; color: var(--v495-text);
  font-size: 1.3rem; transition: all 0.15s; border-left: 3px solid transparent;
}
.v495-mobile-menu a:hover, .v495-mobile-menu a:active {
  background: rgba(128,203,196,0.08); border-left-color: var(--v495-primary); color: var(--v495-primary);
}

/* ===== Carousel ===== */
.v495-carousel {
  position: relative; width: 100%; height: 180px; overflow: hidden;
  border-radius: var(--v495-radius); margin-bottom: 1.6rem;
}
.v495-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s ease; cursor: pointer;
}
.v495-slide-active { opacity: 1; }
.v495-slide img { width: 100%; height: 100%; object-fit: cover; }
.v495-carousel-dots {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px;
}
.v495-carousel-dot {
  width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.4);
  cursor: pointer; border: none; transition: background 0.3s;
}
.v495-carousel-dot-active { background: var(--v495-primary); }

/* ===== Section Titles ===== */
.v495-section-title {
  font-size: 1.8rem; font-weight: 700; color: var(--v495-primary);
  margin-bottom: 1.2rem; padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--v495-border);
}

/* ===== Game Grid ===== */
.v495-game-section { margin-bottom: 2rem; }
.v495-game-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.8rem;
}
.v495-game-card {
  display: flex; flex-direction: column; align-items: center;
  background: var(--v495-bg-card); border-radius: 8px; padding: 0.6rem;
  cursor: pointer; transition: all 0.2s; border: 1px solid transparent;
}
.v495-game-card:hover { border-color: var(--v495-primary); transform: translateY(-2px); }
.v495-game-card img {
  width: 64px; height: 64px; border-radius: 8px; margin-bottom: 0.4rem;
  object-fit: cover;
}
.v495-game-name {
  font-size: 1.05rem; text-align: center; color: var(--v495-text);
  line-height: 1.3rem; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; max-width: 72px;
}

/* ===== Cards ===== */
.v495-card {
  background: var(--v495-bg-card); border: 1px solid var(--v495-border);
  border-radius: var(--v495-radius); padding: 1.4rem; margin-bottom: 1.2rem;
}
.v495-card h3 {
  font-size: 1.5rem; color: var(--v495-primary); margin-bottom: 0.8rem;
}
.v495-card p { color: var(--v495-text-muted); font-size: 1.3rem; line-height: 1.8rem; }

/* ===== Promo Buttons ===== */
.v495-promo-btn {
  display: inline-block; background: var(--v495-gradient); color: #0A0A0A;
  padding: 1rem 2.4rem; border-radius: 8px; font-size: 1.4rem;
  font-weight: 700; cursor: pointer; border: none; transition: all 0.25s;
  text-align: center;
}
.v495-promo-btn:hover { transform: scale(1.04); box-shadow: 0 0 20px rgba(128,203,196,0.35); }
.v495-promo-link {
  color: var(--v495-primary); font-weight: 600; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
}
.v495-promo-link:hover { color: #A5D6D0; }

/* ===== Footer ===== */
.v495-footer {
  background: #080808; border-top: 1px solid var(--v495-border);
  padding: 2rem 1.2rem 2rem; margin-top: 2rem;
}
.v495-footer-brand { font-size: 1.4rem; color: var(--v495-primary); margin-bottom: 0.8rem; font-weight: 600; }
.v495-footer-text { font-size: 1.15rem; color: var(--v495-text-muted); line-height: 1.7rem; margin-bottom: 1.2rem; }
.v495-footer-links { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 1.2rem; }
.v495-footer-links a {
  font-size: 1.15rem; color: var(--v495-primary); padding: 0.3rem 0.6rem;
  border: 1px solid var(--v495-border); border-radius: 4px; transition: all 0.2s;
}
.v495-footer-links a:hover { background: rgba(128,203,196,0.1); }
.v495-footer-copy { font-size: 1.1rem; color: #555; margin-top: 1rem; }

/* ===== Bottom Nav ===== */
.v495-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  height: var(--v495-bottom-h); background: rgba(10,10,10,0.97);
  backdrop-filter: blur(10px); border-top: 1px solid var(--v495-border);
  display: flex; justify-content: space-around; align-items: center;
}
.v495-bottom-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 58px; min-height: 56px; background: none; border: none;
  color: var(--v495-text-muted); cursor: pointer; transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.v495-bottom-btn:hover, .v495-bottom-btn:active { color: var(--v495-primary); }
.v495-bottom-btn-active { color: var(--v495-primary); }
.v495-bottom-btn .material-icons, .v495-bottom-btn .v495-icon {
  font-size: 24px; margin-bottom: 2px;
}
.v495-bottom-btn span:last-child { font-size: 1rem; font-weight: 500; }

/* ===== Partners ===== */
.v495-partners {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem;
  padding: 1rem 0; border-top: 1px solid var(--v495-border); margin-top: 1rem;
}
.v495-partners img { height: 24px; opacity: 0.6; transition: opacity 0.2s; }
.v495-partners img:hover { opacity: 1; }

/* ===== Utilities ===== */
.v495-mb-1 { margin-bottom: 0.8rem; }
.v495-mb-2 { margin-bottom: 1.6rem; }
.v495-mt-1 { margin-top: 0.8rem; }
.v495-text-center { text-align: center; }
.v495-text-sm { font-size: 1.15rem; color: var(--v495-text-muted); }
.v495-divider { border: none; border-top: 1px solid var(--v495-border); margin: 1.6rem 0; }
.v495-tag {
  display: inline-block; padding: 0.3rem 0.8rem; background: rgba(128,203,196,0.12);
  color: var(--v495-primary); border-radius: 4px; font-size: 1.1rem; font-weight: 600;
}

/* ===== Winners Ticker ===== */
.v495-ticker { display: flex; flex-direction: column; gap: 0.6rem; }
.v495-ticker-item {
  display: flex; align-items: center; gap: 0.8rem;
  background: var(--v495-bg-card); padding: 0.8rem 1rem; border-radius: 6px;
  border-left: 3px solid var(--v495-primary);
}
.v495-ticker-name { font-size: 1.15rem; color: var(--v495-text); flex: 1; }
.v495-ticker-amount { font-size: 1.3rem; color: var(--v495-gold); font-weight: 700; }
.v495-ticker-game { font-size: 1.05rem; color: var(--v495-text-muted); }

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

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .v495-wrapper { padding-bottom: calc(var(--v495-bottom-h) + 1.6rem); }
}
@media (min-width: 769px) {
  .v495-bottom-nav { display: none; }
  .v495-container { max-width: 430px; }
}
