:root {
  --primary: #daa520;
  --primary-hover: #b8860b;
  --accent-green: #2e7d32;
  --accent-green-dark: #1b5e20;
  --bg-main: #0d110d;
  --bg-card: #161d16;
  --bg-header: #0f140f;
  --text-white: #e0e0e0;
  --text-gray: #a0a0a0;
  --border-color: #2a332a;
  --transition: all 0.3s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-white);
  line-height: 1.7;
}

.site-header {
  background: var(--bg-header);
  border-top: 4px solid var(--accent-green);
  border-bottom: 2px solid var(--primary);
  padding: 12px 0;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.7);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.logo-area img {
  height: 80px;
  display: block;
}

.user-actions {
  display: flex;
  gap: 10px;
}

.btn-log,
.btn-reg {
  padding: 8px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  transition: var(--transition);
}

.btn-log {
  background: #ffffff;
  color: #000;
}

.btn-reg {
  background: var(--accent-green);
  color: #fff;
}

.btn-reg:hover {
  background: var(--accent-green-dark);
  transform: translateY(-2px);
}

.table-container {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 20px 0;
  border-radius: 8px;
}

table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
}

.promo-slider {
  width: 100%;
  height: 450px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background-size: cover;
}

.backpromo {
  background: url('/images/baji-live.webp') no-repeat center center;
  background-size: cover;
}

.backpromologin {
  background: url('/images/bajilivelogin.webp') no-repeat center center;
}

.backpromosignup {
  background: url('/images/bajilivesignup.webp') no-repeat center center;
}

.backpromobonus {
  background: url('/images/bajilivebonus.webp') no-repeat center center;
}
.backpromoapp {
  background: url('/images/bajiliveapp.webp') no-repeat center center;
}
.backpromocasino {
  background: url('/images/bajilivecasino.webp') no-repeat center center;
}

.promo-image {
  width: 100%;
  max-width: 1200px;
  height: auto;
  display: block;
}

.content-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
}

h1 {
  font-size: 2.2rem;
  color: var(--primary);
  border-left: 6px solid var(--accent-green);
  padding-left: 20px;
  margin-bottom: 25px;
}

h2,
h3 {
  color: var(--primary);
  margin: 40px 0 20px;
}

p {
  margin-bottom: 20px;
  color: var(--text-gray);
  font-size: 16px;
}

.feature-list {
  list-style: none;
  margin: 30px 0;
}

.feature-list li {
  background: var(--bg-card);
  padding: 18px;
  border-radius: 12px;
  border-bottom: 3px solid var(--accent-green);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.feature-list li::before {
  content: '★';
  color: var(--accent-green);
  margin-right: 15px;
  font-size: 18px;
}
.feature-list strong {
  padding-right: 15px;
}
.table-holder {
  background: var(--bg-card);
  border-radius: 12px;
  margin: 30px 0;
  border: 1px solid var(--border-color);
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  background: #1a201a;
  color: var(--accent-green);
  padding: 15px;
  text-align: left;
  text-transform: uppercase;
  font-size: 13px;
}

td {
  padding: 15px;
  border-top: 1px solid var(--border-color);
}

.main-footer {
  background: var(--bg-header);
  border-top: 4px solid var(--accent-green);
  margin-top: 60px;
}

.footer-cta-section {
  background: linear-gradient(180deg, #151d15 0%, #080a08 100%);
  padding: 60px 20px;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

.cta-title {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 15px;
  font-weight: 900;
  text-transform: uppercase;
}

.cta-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 600px;
  margin: 30px auto 0;
}

.cta-btn {
  display: block;
  padding: 18px;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  transition: var(--transition);
}

.cta-signup {
  background: var(--accent-green);
  color: white;
}

.cta-signup:hover {
  background: var(--accent-green-dark);
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.cta-login {
  border: 2px solid var(--primary);
  color: var(--primary);
}

.cta-login:hover {
  background: var(--primary);
  color: black;
}

.footer-columns {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  padding: 60px 20px;
}

.footer-col h4 {
  color: var(--accent-green);
  margin-bottom: 20px;
  text-transform: uppercase;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--text-gray);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 5px;
}

.payment-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.payment-methods img {
  width: 100%;
  background: #f5f5f5;
  padding: 5px;
  border-radius: 6px;
  opacity: 0.9;
}

.footer-bottom {
  padding: 40px 20px;
  text-align: center;
  border-top: 1px solid var(--border-color);
  background: #000;
}

.info-item a {
  color: #2e7d32;
}
.info-item a:hover {
  color: #daa520;
}

.feature-list a {
  color: #fff;
}

.feature-list a:hover {
  color: #daa520;
}

.f-logo {
  height: 45px;
  margin-bottom: 20px;
}

.lang-switcher a {
  color: var(--primary);
  text-decoration: none;
  font-weight: bold;
}

.legal-text {
  font-size: 12px;
  color: #556655;
  margin: 20px auto;
  max-width: 800px;
}

::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-thumb {
  background: var(--accent-green);
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}

.contact-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  line-height: 1.6;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 30px;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.info-card {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  border-left: 4px solid #f9ca24;
}

.info-card h3 {
  margin-top: 0;
  color: #1a1a1a;
}

.email-link a {
  color: #f9ca24;
  font-weight: bold;
  text-decoration: none;
  font-size: 1.1em;
}

.contact-form-container {
  background: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.contact-form-container label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
}

.contact-form-container input,
.contact-form-container select,
.contact-form-container textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  box-sizing: border-box;
}

.contact-form-container input:focus,
.contact-form-container textarea:focus {
  outline: none;
  border-color: #f9ca24;
  box-shadow: 0 0 5px rgba(249, 202, 36, 0.3);
}

.btn-submit {
  background-color: #f9ca24;
  color: #1a1a1a;
  border: none;
  padding: 15px 30px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  width: 100%;
  transition: background 0.3s ease;
  text-transform: uppercase;
}

.btn-submit:hover {
  background-color: #e0b621;
}

.support-guidelines {
  margin-top: 50px;
  padding: 30px;
  background: #1a1a1a;
  color: #fff;
  border-radius: 12px;
}

.support-guidelines h2 {
  color: #f9ca24;
}

.support-guidelines ul {
  list-style: none;
  padding: 0;
}

.support-guidelines li {
  margin-bottom: 15px;
  padding-left: 25px;
  position: relative;
}

.support-guidelines li::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: #f9ca24;
}

#backToTop {
  display: none;
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  border: 2px solid rgba(218, 165, 32, 0.3);
  background: linear-gradient(145deg, #daa520, #b8860b);
  color: #000;
  cursor: pointer;
  outline: none;
  box-shadow: 0 0 20px rgba(218, 165, 32, 0.4), inset 0 0 10px rgba(255, 255, 255, 0.2);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
}

#backToTop::before {
  content: '▲';
  font-size: 20px;
  display: block;
  transition: transform 0.3s ease;
}

#backToTop:hover {
  transform: translateY(-8px) scale(1.1);
  background: linear-gradient(145deg, #f1c40f, #daa520);
  box-shadow: 0 10px 25px rgba(218, 165, 32, 0.6);
  border-color: rgba(218, 165, 32, 0.8);
}

#backToTop:hover::before {
  transform: translateY(-3px);
}

#backToTop::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(45deg);
  transition: 0.5s;
}

@keyframes pulse-gold {
  0% {
    box-shadow: 0 0 0 0 rgba(218, 165, 32, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(218, 165, 32, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(218, 165, 32, 0);
  }
}

#backToTop {
  animation: pulse-gold 2s infinite;
}

@media (min-width: 1200px) {
  .promo-slider {
    margin: auto;
    background-size: contain;
  }
}

@media (max-width: 768px) {
  #backToTop {
    bottom: 25px;
    right: 20px;
    width: 50px;
    height: 50px;
  }
  .cta-grid {
    flex-direction: row;
  }
  .cta-btn {
    flex: 1;
  }
  .promo-slider {
    background-size: cover;
    height: 300px;
  }
  .table-container {
    border: 1px solid var(--border-color);
  }

  table {
    font-size: 14px;
  }
}

@media (max-width: 600px) {
  .header-inner {
    flex-direction: column;
    gap: 15px;
  }
  .promo-slider {
    height: 200px;
    background-size: cover;
  }
  .user-actions {
    display: flex;
    flex-direction: column;
    gap: 45px;
    margin: 60px 0 60px;
    align-items: center;
    width: 270px;
  }

  .logo-area img {
    height: 120px;
    display: block;
  }

  .btn-log {
    width: 80% !important;
    height: 80px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 12px !important;
    transition: transform 0.2s ease;
    position: relative;
    box-sizing: border-box;
    gap: 15px;
    font-size: 40px;
  }

  .btn-reg {
    width: 100% !important;
    height: 120px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 12px !important;
    transition: transform 0.2s ease;
    position: relative;
    box-sizing: border-box;
    gap: 15px;
    font-size: 50px;
    padding: 0 5px;
  }
}
