/**
 * layout-5455.css - Core stylesheet for 1 xbet app
 * All classes use w5455- prefix for namespace isolation
 * Color palette: #00695C | #AFEEEE | #3A3A3A | #A9A9A9 | #00FA9A | #ADFF2F
 * Copyright 2026 1 xbet app. All rights reserved.
 */

/* CSS Variables */
:root {
  --w5455-primary: #00695C;
  --w5455-secondary: #AFEEEE;
  --w5455-dark: #3A3A3A;
  --w5455-gray: #A9A9A9;
  --w5455-accent: #00FA9A;
  --w5455-highlight: #ADFF2F;
  --w5455-bg: #1a1a2e;
  --w5455-bg-light: #16213e;
  --w5455-text: #e8e8e8;
  --w5455-text-muted: #a0a0b0;
  --w5455-radius: 8px;
  --w5455-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

/* 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, Oxygen, sans-serif;
  background: var(--w5455-bg);
  color: var(--w5455-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

/* Header */
.w5455-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--w5455-primary), #004D40);
  padding: 0 1.2rem;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 430px;
  margin: 0 auto;
  box-shadow: 0 2px 8px rgba(0,105,92,0.4);
}
.w5455-header-left {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.w5455-logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}
.w5455-site-name {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--w5455-secondary);
  white-space: nowrap;
}
.w5455-header-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.w5455-btn-register, .w5455-btn-login {
  padding: 0.5rem 1.2rem;
  border: none;
  border-radius: var(--w5455-radius);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.w5455-btn-register {
  background: var(--w5455-accent);
  color: var(--w5455-dark);
}
.w5455-btn-register:hover { background: #00d888; transform: scale(1.03); }
.w5455-btn-login {
  background: transparent;
  color: var(--w5455-secondary);
  border: 1.5px solid var(--w5455-secondary);
}
.w5455-btn-login:hover { background: rgba(175,238,238,0.15); }
.w5455-menu-toggle {
  background: none;
  border: none;
  color: var(--w5455-secondary);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.4rem;
  line-height: 1;
}

/* Mobile Menu */
.w5455-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.w5455-mobile-menu {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 260px;
  background: linear-gradient(180deg, #004D40, var(--w5455-bg));
  z-index: 9999;
  transform: translateX(-100%);
  visibility: hidden;
  transition: transform 0.3s ease, visibility 0.3s ease;
  overflow-y: auto;
  padding-top: 1.5rem;
}
.w5455-mobile-menu-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0 1.5rem 1.5rem;
  border-bottom: 1px solid rgba(175,238,238,0.2);
}
.w5455-mobile-menu-header span {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--w5455-secondary);
}
.w5455-mobile-menu nav { padding: 1rem 0; }
.w5455-mobile-menu a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.5rem;
  color: var(--w5455-text);
  text-decoration: none;
  font-size: 1.3rem;
  transition: background 0.2s, color 0.2s;
  border-left: 3px solid transparent;
}
.w5455-mobile-menu a:hover, .w5455-mobile-menu a:focus {
  background: rgba(0,250,154,0.1);
  color: var(--w5455-accent);
  border-left-color: var(--w5455-accent);
}

/* Main Content */
.w5455-main {
  padding-top: 52px;
  min-height: 100vh;
}
@media (max-width: 768px) {
  .w5455-main { padding-bottom: 80px; }
}

/* Carousel */
.w5455-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--w5455-bg-light);
}
.w5455-slide {
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease;
  cursor: pointer;
}
.w5455-slide img {
  width: 100%;
  height: auto;
  display: block;
}
.w5455-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}
.w5455-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: background 0.3s;
  border: none;
}
.w5455-dot.w5455-active { background: var(--w5455-accent); }

/* Section */
.w5455-section {
  padding: 2rem 1.2rem;
}
.w5455-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--w5455-secondary);
  margin-bottom: 1.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--w5455-primary);
}
.w5455-section-title i {
  margin-right: 0.5rem;
  color: var(--w5455-accent);
}

/* Game Grid */
.w5455-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}
.w5455-game-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s;
  padding: 0.5rem;
  border-radius: var(--w5455-radius);
}
.w5455-game-card:hover { transform: translateY(-2px); }
.w5455-game-card img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  margin-bottom: 0.4rem;
}
.w5455-game-card span {
  font-size: 1.1rem;
  color: var(--w5455-text-muted);
  text-align: center;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

/* Category Label */
.w5455-cat-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--w5455-highlight);
  margin: 1.5rem 0 0.8rem;
  padding-left: 0.3rem;
}

/* Promo Buttons */
.w5455-promo-btn {
  display: inline-block;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--w5455-accent), var(--w5455-highlight));
  color: var(--w5455-dark);
  font-weight: 700;
  font-size: 1.4rem;
  border-radius: 30px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s;
  text-align: center;
}
.w5455-promo-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0,250,154,0.4);
}
.w5455-promo-text {
  color: var(--w5455-accent);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s;
}
.w5455-promo-text:hover { color: var(--w5455-highlight); text-decoration: underline; }

/* Cards */
.w5455-card {
  background: var(--w5455-bg-light);
  border-radius: var(--w5455-radius);
  padding: 1.5rem;
  margin-bottom: 1.2rem;
  box-shadow: var(--w5455-shadow);
  border: 1px solid rgba(175,238,238,0.08);
}
.w5455-card h3 {
  font-size: 1.5rem;
  color: var(--w5455-secondary);
  margin-bottom: 0.8rem;
}
.w5455-card p {
  color: var(--w5455-text-muted);
  font-size: 1.3rem;
  line-height: 1.6;
}

/* Content Text */
.w5455-content p {
  margin-bottom: 1rem;
  line-height: 1.7;
  color: var(--w5455-text);
}
.w5455-content h2 {
  font-size: 1.8rem;
  color: var(--w5455-secondary);
  margin: 2rem 0 1rem;
}
.w5455-content h3 {
  font-size: 1.5rem;
  color: var(--w5455-highlight);
  margin: 1.5rem 0 0.8rem;
}
.w5455-content ul {
  padding-left: 2rem;
  margin-bottom: 1rem;
}
.w5455-content li {
  margin-bottom: 0.5rem;
  color: var(--w5455-text-muted);
  line-height: 1.6;
}

/* Footer */
.w5455-footer {
  background: linear-gradient(180deg, var(--w5455-bg-light), #0d1117);
  padding: 2rem 1.2rem 6rem;
  border-top: 1px solid rgba(175,238,238,0.1);
}
.w5455-footer-brand {
  text-align: center;
  margin-bottom: 1.5rem;
}
.w5455-footer-brand p {
  font-size: 1.2rem;
  color: var(--w5455-text-muted);
  line-height: 1.5;
}
.w5455-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}
.w5455-footer-links a {
  padding: 0.5rem 1rem;
  background: rgba(0,105,92,0.3);
  color: var(--w5455-secondary);
  text-decoration: none;
  border-radius: 20px;
  font-size: 1.1rem;
  transition: background 0.2s;
}
.w5455-footer-links a:hover { background: rgba(0,105,92,0.6); }
.w5455-footer-copy {
  text-align: center;
  font-size: 1.1rem;
  color: var(--w5455-gray);
}

/* Bottom Navigation */
.w5455-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #004D40, #002922);
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 60px;
  max-width: 430px;
  margin: 0 auto;
  box-shadow: 0 -2px 10px rgba(0,105,92,0.5);
  border-top: 1px solid rgba(0,250,154,0.2);
}
.w5455-bottom-nav button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--w5455-gray);
  cursor: pointer;
  min-width: 60px;
  min-height: 60px;
  transition: color 0.2s, transform 0.15s;
  padding: 0.4rem;
}
.w5455-bottom-nav button:hover,
.w5455-bottom-nav button:focus {
  color: var(--w5455-accent);
  transform: scale(1.08);
}
.w5455-bottom-nav button span {
  font-size: 1rem;
  margin-top: 0.2rem;
}
.w5455-bottom-nav button i,
.w5455-bottom-nav button .material-icons {
  font-size: 22px;
}
.w5455-bottom-nav .w5455-nav-active {
  color: var(--w5455-accent);
}
@media (min-width: 769px) {
  .w5455-bottom-nav { display: none; }
  .w5455-main { padding-bottom: 0; }
}

/* Utility */
.w5455-text-center { text-align: center; }
.w5455-mt-1 { margin-top: 1rem; }
.w5455-mb-1 { margin-bottom: 1rem; }
.w5455-flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}
.w5455-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(175,238,238,0.2), transparent);
  margin: 1.5rem 0;
}

/* RTP Table */
.w5455-rtp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.2rem;
}
.w5455-rtp-table th {
  background: var(--w5455-primary);
  color: var(--w5455-secondary);
  padding: 0.8rem 0.5rem;
  text-align: left;
  font-weight: 600;
}
.w5455-rtp-table td {
  padding: 0.6rem 0.5rem;
  border-bottom: 1px solid rgba(175,238,238,0.08);
  color: var(--w5455-text-muted);
}
.w5455-rtp-table tr:hover td { background: rgba(0,250,154,0.05); }

/* Testimonial */
.w5455-testimonial {
  background: var(--w5455-bg-light);
  border-radius: var(--w5455-radius);
  padding: 1.2rem;
  margin-bottom: 1rem;
  border-left: 3px solid var(--w5455-accent);
}
.w5455-testimonial p { font-size: 1.2rem; color: var(--w5455-text-muted); line-height: 1.5; }
.w5455-testimonial strong { color: var(--w5455-highlight); }

/* Winner Display */
.w5455-winner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem;
  background: var(--w5455-bg-light);
  border-radius: var(--w5455-radius);
  margin-bottom: 0.6rem;
}
.w5455-winner span { font-size: 1.2rem; }
.w5455-winner-amount { color: var(--w5455-accent); font-weight: 700; }

/* FAQ Accordion */
.w5455-faq-item {
  background: var(--w5455-bg-light);
  border-radius: var(--w5455-radius);
  margin-bottom: 0.8rem;
  overflow: hidden;
}
.w5455-faq-q {
  padding: 1.2rem;
  font-weight: 600;
  color: var(--w5455-secondary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.3rem;
}
.w5455-faq-a {
  padding: 0 1.2rem 1.2rem;
  color: var(--w5455-text-muted);
  font-size: 1.2rem;
  line-height: 1.6;
}

/* Steps */
.w5455-steps { counter-reset: w5455step; }
.w5455-step {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.2rem;
  align-items: flex-start;
}
.w5455-step-num {
  width: 30px;
  height: 30px;
  min-width: 30px;
  background: var(--w5455-primary);
  color: var(--w5455-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.3rem;
}
.w5455-step-content h4 {
  font-size: 1.4rem;
  color: var(--w5455-highlight);
  margin-bottom: 0.3rem;
}
.w5455-step-content p {
  font-size: 1.2rem;
  color: var(--w5455-text-muted);
  line-height: 1.5;
}

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