/**
 * 1xbet app - Layout Stylesheet
 * All classes prefixed with v55d- for namespace isolation
 * Color palette: #00695C | #00FFFF | #FFCCCB | #1A1A1A | #00B8D4
 */

/* CSS Variables */
:root {
  --v55d-primary: #00695C;
  --v55d-cyan: #00FFFF;
  --v55d-pink: #FFCCCB;
  --v55d-dark: #1A1A1A;
  --v55d-accent: #00B8D4;
  --v55d-bg: #0d0d0d;
  --v55d-text: #f0f0f0;
  --v55d-text-muted: #b0b0b0;
  --v55d-card-bg: #1e1e1e;
  --v55d-border: #2a2a2a;
  font-size: 62.5%;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
  background: var(--v55d-bg);
  color: var(--v55d-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--v55d-cyan); text-decoration: none; }
a:hover { color: var(--v55d-accent); }
img { max-width: 100%; height: auto; display: block; }

/* Header */
.v55d-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: linear-gradient(135deg, #004D40 0%, #00695C 50%, #00838F 100%);
  z-index: 1000;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5.2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

.v55d-header-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.v55d-header-logo {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 0.5rem;
}

.v55d-header-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}

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

.v55d-btn-register {
  background: var(--v55d-cyan);
  color: var(--v55d-dark);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0.4rem;
  font-weight: 700;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.2s;
}

.v55d-btn-register:hover {
  background: #00e6e6;
  transform: scale(1.05);
}

.v55d-btn-login {
  background: transparent;
  color: #fff;
  border: 1.5px solid var(--v55d-cyan);
  padding: 0.5rem 1rem;
  border-radius: 0.4rem;
  font-weight: 600;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.2s;
}

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

.v55d-menu-toggle {
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  padding: 0.3rem;
  display: flex;
  align-items: center;
}

/* Mobile Menu */
.v55d-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 9998;
}

.v55d-mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 75%;
  max-width: 300px;
  height: 100%;
  background: linear-gradient(180deg, #004D40 0%, #1A1A1A 30%);
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  padding: 2rem 1.5rem;
  overflow-y: auto;
}

.v55d-mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.4rem;
  cursor: pointer;
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.v55d-mobile-menu a {
  display: block;
  color: #fff;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 1.4rem;
  transition: color 0.2s;
}

.v55d-mobile-menu a:hover {
  color: var(--v55d-cyan);
}

/* Main Content */
.v55d-main {
  padding-top: 5.2rem;
  min-height: 100vh;
}

/* Carousel */
.v55d-carousel {
  position: relative;
  width: 100%;
  height: 20rem;
  overflow: hidden;
}

.v55d-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease;
  cursor: pointer;
}

.v55d-slide:first-child {
  opacity: 1;
}

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

/* Section Titles */
.v55d-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  margin: 2rem 1rem 1rem;
  padding-left: 0.8rem;
  border-left: 3px solid var(--v55d-cyan);
}

.v55d-section-subtitle {
  font-size: 1.4rem;
  color: var(--v55d-text-muted);
  margin: 0 1rem 1rem;
}

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

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

.v55d-game-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,255,255,0.15);
}

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

.v55d-game-card p {
  font-size: 1rem;
  color: var(--v55d-text);
  padding: 0.3rem 0.2rem 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Category Label */
.v55d-cat-label {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--v55d-cyan);
  margin: 1.5rem 1rem 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
}

/* Content Sections */
.v55d-content-section {
  padding: 1.5rem 1rem;
  background: var(--v55d-card-bg);
  margin: 1rem;
  border-radius: 0.8rem;
  border: 1px solid var(--v55d-border);
}

.v55d-content-section h2 {
  font-size: 1.6rem;
  color: var(--v55d-cyan);
  margin-bottom: 1rem;
}

.v55d-content-section h3 {
  font-size: 1.4rem;
  color: var(--v55d-accent);
  margin-bottom: 0.8rem;
}

.v55d-content-section p {
  color: var(--v55d-text-muted);
  line-height: 1.8rem;
  margin-bottom: 0.8rem;
}

.v55d-content-section ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.v55d-content-section li {
  color: var(--v55d-text-muted);
  line-height: 1.8rem;
  margin-bottom: 0.4rem;
}

/* Promo CTA */
.v55d-cta-box {
  background: linear-gradient(135deg, #00695C, #00B8D4);
  margin: 1.5rem 1rem;
  padding: 1.5rem;
  border-radius: 1rem;
  text-align: center;
}

.v55d-cta-box h3 {
  color: #fff;
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.v55d-cta-box p {
  color: rgba(255,255,255,0.9);
  margin-bottom: 1rem;
}

.v55d-cta-btn {
  display: inline-block;
  background: var(--v55d-cyan);
  color: var(--v55d-dark);
  padding: 0.8rem 2.5rem;
  border-radius: 0.5rem;
  font-weight: 700;
  font-size: 1.4rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.v55d-cta-btn:hover {
  background: #00e6e6;
  transform: scale(1.05);
}

/* Promo text link */
.v55d-promo-link {
  color: var(--v55d-cyan);
  font-weight: 700;
  cursor: pointer;
  border-bottom: 1px dashed var(--v55d-cyan);
  transition: color 0.2s;
}

.v55d-promo-link:hover {
  color: var(--v55d-accent);
}

/* FAQ Section */
.v55d-faq-item {
  background: var(--v55d-card-bg);
  border: 1px solid var(--v55d-border);
  border-radius: 0.6rem;
  padding: 1rem 1.2rem;
  margin-bottom: 0.8rem;
}

.v55d-faq-item strong {
  color: var(--v55d-cyan);
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

.v55d-faq-item p {
  color: var(--v55d-text-muted);
  font-size: 1.2rem;
  line-height: 1.6rem;
}

/* Testimonials */
.v55d-testimonial {
  background: linear-gradient(135deg, #1e1e1e, #2a2a2a);
  border-left: 3px solid var(--v55d-accent);
  padding: 1rem 1.2rem;
  margin-bottom: 0.8rem;
  border-radius: 0 0.6rem 0.6rem 0;
}

.v55d-testimonial p {
  color: var(--v55d-text-muted);
  font-style: italic;
  margin-bottom: 0.5rem;
}

.v55d-testimonial span {
  color: var(--v55d-accent);
  font-weight: 600;
  font-size: 1.1rem;
}

/* Winner Item */
.v55d-winner-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--v55d-border);
}

.v55d-winner-item:last-child { border-bottom: none; }

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

.v55d-winner-amount {
  color: var(--v55d-cyan);
  font-weight: 700;
  font-size: 1.3rem;
}

/* Footer */
.v55d-footer {
  background: linear-gradient(180deg, #1A1A1A 0%, #0d0d0d 100%);
  padding: 2rem 1rem 1rem;
  margin-top: 2rem;
  border-top: 1px solid var(--v55d-border);
}

.v55d-footer-brand {
  color: var(--v55d-text-muted);
  font-size: 1.2rem;
  line-height: 1.6rem;
  margin-bottom: 1.5rem;
}

.v55d-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

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

.v55d-footer-links a:hover {
  border-color: var(--v55d-cyan);
  color: var(--v55d-cyan);
}

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

/* Bottom Navigation */
.v55d-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 6rem;
  background: linear-gradient(180deg, #004D40 0%, #00332E 100%);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  border-top: 1px solid rgba(0,255,255,0.2);
  box-shadow: 0 -2px 12px rgba(0,0,0,0.5);
}

.v55d-bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 6rem;
  min-height: 5rem;
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  transition: all 0.2s;
  padding: 0.3rem;
  border-radius: 0.5rem;
}

.v55d-bottom-nav-btn:hover,
.v55d-bottom-nav-btn.v55d-nav-active {
  color: var(--v55d-cyan);
  transform: scale(1.1);
}

.v55d-bottom-nav-btn .v55d-nav-icon {
  font-size: 2.2rem;
  margin-bottom: 0.2rem;
}

.v55d-bottom-nav-btn .v55d-nav-label {
  font-size: 1rem;
  font-weight: 500;
}

/* Utility Classes */
.v55d-text-center { text-align: center; }
.v55d-text-cyan { color: var(--v55d-cyan); }
.v55d-text-accent { color: var(--v55d-accent); }
.v55d-mb-1 { margin-bottom: 0.5rem; }
.v55d-mb-2 { margin-bottom: 1rem; }
.v55d-mt-2 { margin-top: 1rem; }

/* Help Page Styles */
.v55d-help-section {
  padding: 1.2rem 1rem;
  background: var(--v55d-card-bg);
  margin: 0.8rem 1rem;
  border-radius: 0.8rem;
  border: 1px solid var(--v55d-border);
}

.v55d-help-section h2 {
  font-size: 1.5rem;
  color: var(--v55d-cyan);
  margin-bottom: 0.8rem;
}

.v55d-help-section h3 {
  font-size: 1.3rem;
  color: var(--v55d-accent);
  margin-bottom: 0.6rem;
}

.v55d-help-section p {
  color: var(--v55d-text-muted);
  line-height: 1.7rem;
  margin-bottom: 0.6rem;
}

.v55d-help-section ol,
.v55d-help-section ul {
  padding-left: 1.5rem;
  margin-bottom: 0.8rem;
}

.v55d-help-section li {
  color: var(--v55d-text-muted);
  line-height: 1.7rem;
  margin-bottom: 0.3rem;
}

.v55d-step-number {
  display: inline-block;
  background: var(--v55d-primary);
  color: var(--v55d-cyan);
  width: 2rem;
  height: 2rem;
  line-height: 2rem;
  text-align: center;
  border-radius: 50%;
  font-weight: 700;
  font-size: 1.1rem;
  margin-right: 0.5rem;
}

/* Responsive */
@media (min-width: 769px) {
  .v55d-bottom-nav { display: none; }
}

@media (max-width: 768px) {
  .v55d-main { padding-bottom: 8rem; }
}

@media (max-width: 360px) {
  .v55d-game-grid { grid-template-columns: repeat(3, 1fr); }
  .v55d-header-name { font-size: 1.3rem; }
}
