/**
 * superph.cfd - Layout Stylesheet
 * All classes use v9c5- prefix for namespace isolation
 * Color palette: #FFB347 | #1E1E1E | #FFAA00 | #6A5ACD | #FF6347
 */

/* CSS Variables */
:root {
  --v9c5-primary: #FFAA00;
  --v9c5-primary-light: #FFB347;
  --v9c5-secondary: #6A5ACD;
  --v9c5-accent: #FF6347;
  --v9c5-bg: #1E1E1E;
  --v9c5-bg-dark: #141414;
  --v9c5-bg-card: #2A2A2A;
  --v9c5-bg-card-hover: #333333;
  --v9c5-text: #F5F5F5;
  --v9c5-text-muted: #AAAAAA;
  --v9c5-text-dark: #888888;
  --v9c5-border: #3A3A3A;
  --v9c5-gradient-gold: linear-gradient(135deg, #FFAA00, #FFB347);
  --v9c5-gradient-purple: linear-gradient(135deg, #6A5ACD, #8B7FD4);
  --v9c5-gradient-hot: linear-gradient(135deg, #FF6347, #FF8866);
  --v9c5-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  --v9c5-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
  --v9c5-radius: 8px;
  --v9c5-radius-lg: 12px;
  --v9c5-max-width: 430px;
  --v9c5-header-h: 56px;
  --v9c5-bottom-h: 60px;
}

/* Root font size for rem units */
html {
  font-size: 62.5%;
  -webkit-text-size-adjust: 100%;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--v9c5-bg);
  color: var(--v9c5-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--v9c5-primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--v9c5-primary-light);
}

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

/* Container */
.v9c5-container {
  max-width: var(--v9c5-max-width);
  margin: 0 auto;
  padding: 0 1.2rem;
}

.v9c5-wrapper {
  max-width: var(--v9c5-max-width);
  margin: 0 auto;
}

/* Header */
.v9c5-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--v9c5-header-h);
  background: var(--v9c5-bg-dark);
  border-bottom: 1px solid var(--v9c5-border);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.2rem;
  max-width: var(--v9c5-max-width);
  margin: 0 auto;
}

.v9c5-header-left {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.v9c5-header-logo {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.v9c5-header-brand {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--v9c5-primary);
  letter-spacing: 0.5px;
}

.v9c5-header-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.v9c5-header-btn {
  padding: 0.6rem 1.2rem;
  border-radius: var(--v9c5-radius);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.v9c5-btn-register {
  background: var(--v9c5-gradient-gold);
  color: #1E1E1E;
}

.v9c5-btn-register:hover {
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(255, 170, 0, 0.4);
}

.v9c5-btn-login {
  background: transparent;
  color: var(--v9c5-primary);
  border: 1px solid var(--v9c5-primary);
}

.v9c5-btn-login:hover {
  background: rgba(255, 170, 0, 0.1);
}

.v9c5-menu-toggle {
  background: none;
  border: none;
  color: var(--v9c5-text);
  font-size: 2.2rem;
  cursor: pointer;
  padding: 0.4rem;
  line-height: 1;
}

/* Mobile Menu */
.v9c5-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background: var(--v9c5-bg-dark);
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 2rem 1.6rem;
  overflow-y: auto;
}

.v9c5-menu-active {
  right: 0;
}

.v9c5-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.v9c5-overlay-active {
  opacity: 1;
  pointer-events: auto;
}

.v9c5-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--v9c5-border);
}

.v9c5-menu-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--v9c5-primary);
}

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

.v9c5-menu-links {
  list-style: none;
}

.v9c5-menu-links li {
  margin-bottom: 0.4rem;
}

.v9c5-menu-links a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  color: var(--v9c5-text);
  font-size: 1.4rem;
  border-radius: var(--v9c5-radius);
  transition: background 0.2s;
}

.v9c5-menu-links a:hover {
  background: var(--v9c5-bg-card);
  color: var(--v9c5-primary);
}

.v9c5-menu-links .material-icons,
.v9c5-menu-links .fas,
.v9c5-menu-links .ion-icon {
  font-size: 2rem;
  width: 2rem;
  text-align: center;
}

/* Main Content */
.v9c5-main {
  padding-top: var(--v9c5-header-h);
  padding-bottom: 2rem;
}

@media (max-width: 768px) {
  .v9c5-main {
    padding-bottom: calc(var(--v9c5-bottom-h) + 2rem);
  }
}

/* Carousel */
.v9c5-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--v9c5-radius-lg);
  margin: 1rem 0;
}

.v9c5-slide {
  display: none;
  width: 100%;
  cursor: pointer;
}

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

.v9c5-slide img {
  width: 100%;
  height: auto;
  border-radius: var(--v9c5-radius-lg);
}

.v9c5-carousel-controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  pointer-events: none;
}

.v9c5-carousel-btn {
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 0.8rem;
  cursor: pointer;
  pointer-events: auto;
  font-size: 1.6rem;
}

.v9c5-carousel-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

.v9c5-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.8rem 0;
}

.v9c5-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--v9c5-border);
  cursor: pointer;
  border: none;
  transition: background 0.2s;
}

.v9c5-dot-active {
  background: var(--v9c5-primary);
  width: 20px;
  border-radius: 4px;
}

/* Section */
.v9c5-section {
  padding: 1.6rem 0;
}

.v9c5-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--v9c5-text);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.v9c5-section-title .fas,
.v9c5-section-title .material-icons {
  color: var(--v9c5-primary);
  font-size: 2rem;
}

/* Game Grid */
.v9c5-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}

.v9c5-game-item {
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
}

.v9c5-game-item:hover {
  transform: translateY(-2px);
}

.v9c5-game-icon {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--v9c5-radius);
  object-fit: cover;
  border: 2px solid var(--v9c5-border);
  transition: border-color 0.2s;
}

.v9c5-game-item:hover .v9c5-game-icon {
  border-color: var(--v9c5-primary);
}

.v9c5-game-name {
  font-size: 1.1rem;
  color: var(--v9c5-text-muted);
  margin-top: 0.4rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3rem;
}

/* Category Header */
.v9c5-cat-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--v9c5-border);
}

.v9c5-cat-icon {
  font-size: 2rem;
}

.v9c5-cat-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--v9c5-primary);
}

/* Card */
.v9c5-card {
  background: var(--v9c5-bg-card);
  border-radius: var(--v9c5-radius-lg);
  padding: 1.4rem;
  margin-bottom: 1.2rem;
  border: 1px solid var(--v9c5-border);
}

.v9c5-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--v9c5-text);
  margin-bottom: 0.8rem;
}

.v9c5-card-text {
  font-size: 1.3rem;
  color: var(--v9c5-text-muted);
  line-height: 1.8rem;
}

/* Promo Button */
.v9c5-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 2rem;
  border-radius: var(--v9c5-radius);
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-align: center;
}

.v9c5-btn-primary {
  background: var(--v9c5-gradient-gold);
  color: #1E1E1E;
}

.v9c5-btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 0 16px rgba(255, 170, 0, 0.5);
}

.v9c5-btn-secondary {
  background: var(--v9c5-gradient-purple);
  color: #fff;
}

.v9c5-btn-hot {
  background: var(--v9c5-gradient-hot);
  color: #fff;
}

.v9c5-btn-outline {
  background: transparent;
  color: var(--v9c5-primary);
  border: 2px solid var(--v9c5-primary);
}

.v9c5-btn-outline:hover {
  background: rgba(255, 170, 0, 0.1);
}

/* Promo Link */
.v9c5-promo-link {
  color: var(--v9c5-primary);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.2s;
}

.v9c5-promo-link:hover {
  color: var(--v9c5-primary-light);
}

/* Footer */
.v9c5-footer {
  background: var(--v9c5-bg-dark);
  border-top: 1px solid var(--v9c5-border);
  padding: 2rem 0;
  margin-top: 2rem;
}

.v9c5-footer-brand {
  font-size: 1.3rem;
  color: var(--v9c5-text-muted);
  margin-bottom: 1.2rem;
  line-height: 1.8rem;
}

.v9c5-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.4rem;
}

.v9c5-footer-links a {
  padding: 0.6rem 1.2rem;
  background: var(--v9c5-bg-card);
  border-radius: var(--v9c5-radius);
  font-size: 1.2rem;
  color: var(--v9c5-text);
  border: 1px solid var(--v9c5-border);
  transition: all 0.2s;
}

.v9c5-footer-links a:hover {
  border-color: var(--v9c5-primary);
  color: var(--v9c5-primary);
}

.v9c5-footer-copy {
  font-size: 1.2rem;
  color: var(--v9c5-text-dark);
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid var(--v9c5-border);
}

/* Bottom Navigation */
.v9c5-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--v9c5-bottom-h);
  background: var(--v9c5-bg-dark);
  border-top: 1px solid var(--v9c5-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  padding: 0 0.4rem;
}

.v9c5-bottom-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  background: none;
  border: none;
  color: var(--v9c5-text-muted);
  cursor: pointer;
  transition: all 0.2s;
  gap: 0.2rem;
  padding: 0.4rem;
}

.v9c5-bottom-btn:hover,
.v9c5-bottom-btn.v9c5-active {
  color: var(--v9c5-primary);
  transform: scale(1.1);
}

.v9c5-bottom-btn .material-icons,
.v9c5-bottom-btn .fas,
.v9c5-bottom-btn .far {
  font-size: 2.4rem;
}

.v9c5-bottom-btn ion-icon {
  font-size: 2.4rem;
}

.v9c5-bottom-label {
  font-size: 1rem;
  line-height: 1.2rem;
}

@media (min-width: 769px) {
  .v9c5-bottom-nav {
    display: none;
  }
}

/* H1 styling */
.v9c5-h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--v9c5-text);
  margin-bottom: 1.2rem;
  line-height: 2.6rem;
}

.v9c5-h1 span {
  color: var(--v9c5-primary);
}

/* Text content */
.v9c5-text-block {
  font-size: 1.3rem;
  color: var(--v9c5-text-muted);
  line-height: 2rem;
  margin-bottom: 1rem;
}

.v9c5-text-block strong {
  color: var(--v9c5-text);
}

/* Highlight box */
.v9c5-highlight {
  background: var(--v9c5-gradient-gold);
  color: #1E1E1E;
  padding: 1.2rem;
  border-radius: var(--v9c5-radius-lg);
  text-align: center;
  font-weight: 700;
  font-size: 1.4rem;
  margin: 1.2rem 0;
  cursor: pointer;
  transition: transform 0.2s;
}

.v9c5-highlight:hover {
  transform: scale(1.02);
}

/* Badge */
.v9c5-badge {
  display: inline-block;
  background: var(--v9c5-accent);
  color: #fff;
  font-size: 1rem;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-weight: 600;
}

/* Winner item */
.v9c5-winner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem;
  background: var(--v9c5-bg-card);
  border-radius: var(--v9c5-radius);
  margin-bottom: 0.6rem;
}

.v9c5-winner-name {
  font-size: 1.2rem;
  color: var(--v9c5-primary);
  font-weight: 600;
}

.v9c5-winner-amount {
  font-size: 1.3rem;
  color: var(--v9c5-accent);
  font-weight: 700;
  margin-left: auto;
}

/* Payment icons row */
.v9c5-payment-row {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  padding: 1rem 0;
}

.v9c5-payment-item {
  background: var(--v9c5-bg-card);
  border: 1px solid var(--v9c5-border);
  border-radius: var(--v9c5-radius);
  padding: 0.6rem 1rem;
  font-size: 1.2rem;
  color: var(--v9c5-text);
}

/* Feature list */
.v9c5-feature-list {
  list-style: none;
  padding: 0;
}

.v9c5-feature-list li {
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--v9c5-border);
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  font-size: 1.3rem;
  color: var(--v9c5-text-muted);
}

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

.v9c5-feature-list .fas {
  color: var(--v9c5-primary);
  margin-top: 0.2rem;
  flex-shrink: 0;
}

/* FAQ accordion */
.v9c5-faq-item {
  border-bottom: 1px solid var(--v9c5-border);
}

.v9c5-faq-q {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--v9c5-text);
  padding: 1rem 0;
}

.v9c5-faq-a {
  font-size: 1.2rem;
  color: var(--v9c5-text-muted);
  padding: 0 0 1rem 0;
  line-height: 1.8rem;
}

/* Promo banner */
.v9c5-promo-banner {
  background: var(--v9c5-bg-card);
  border: 1px solid var(--v9c5-secondary);
  border-radius: var(--v9c5-radius-lg);
  padding: 1.4rem;
  margin: 1rem 0;
  text-align: center;
}

.v9c5-promo-banner h3 {
  color: var(--v9c5-primary);
  font-size: 1.5rem;
  margin-bottom: 0.6rem;
}

/* Utility */
.v9c5-text-center { text-align: center; }
.v9c5-text-gold { color: var(--v9c5-primary); }
.v9c5-text-accent { color: var(--v9c5-accent); }
.v9c5-text-purple { color: var(--v9c5-secondary); }
.v9c5-mt-1 { margin-top: 1rem; }
.v9c5-mb-1 { margin-bottom: 1rem; }
.v9c5-p-1 { padding: 1rem; }
