:root {
  /* Requested color scheme */
  --bg-dark: #000000;      /* black */
  --bg-dark-2: #141414;    /* dark gray panel */
  --accent: #ffd600;       /* vivid yellow */
  --accent-green: #2ecc71; /* casino green */
  --text-muted: #d3d3d3;   /* light gray */
}

body {
  font-family: "Poppins", sans-serif;
  background: var(--bg-dark);
  color: #ffffff;
}

a {
  color: #ffffff;
  text-decoration: none;
}

/* Sidebar */
.sidebar {
  width: 220px;
  height: 100vh;
  background: var(--bg-dark-2);
  position: fixed;
  top: 0;
  left: 0;
  overflow-y: auto;
  z-index: 1052; /* above overlay */
}

.sidebar .brand {
  font-size: 1.25rem;
  font-weight: 600;
  padding: 1rem 1.25rem;
  background: var(--bg-dark);
  border-bottom: 1px solid #1d1f28;
}

.sidebar .nav-link {
  color: var(--text-muted);
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.2s ease;
}
.sidebar .nav-link:hover,
.sidebar .nav-link.active {
  color: #fff;
  background: #1d1f28;
}

/* Main wrapper */
.main-wrapper {
  margin-left: 220px;
  padding: 1rem 1rem 3rem;
}

@media (max-width: 991.98px) {
  .sidebar {
    width: 260px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }
  .sidebar.active {
    transform: translateX(0);
  }
  .main-wrapper {
    margin-left: 0;
  }
  body.sidebar-open {
    overflow: hidden;
  }
  #menuToggle {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1051;
  }
  .sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(2px);
    z-index: 1040;
  }
  .sidebar.active ~ .sidebar-overlay {
    display: block;
  }
}

/* Top Navbar */
.topbar {
  background: var(--bg-dark-2);
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.btn-accent {
  background: var(--accent);
  color: #000;
  border: none;
  font-weight: 600;
}
.btn-accent:hover {
  background: #ffe14d;
  color: #000;
}

.btn-outline-light{
  border-color: var(--accent-green);
  color: var(--accent-green);
}
.btn-outline-light:hover{
  background: var(--accent-green);
  color: #000;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, rgba(255,214,0,0.4), rgba(46,204,113,0.4)),
    url("../images/hero.jpg") center/cover;
  border-radius: 0.75rem;
  padding: 3rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.hero h2 {
  font-weight: 600;
  font-size: 2rem;
}

.hero .cta {
  max-width: 300px;
}

/* Game thumb */
.game-thumb {
  width: 110px;
  height: 110px;
  border-radius: 0.5rem;
  object-fit: cover;
}

/* Section heading */
.section-heading {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

/* Footer */
footer {
  background: var(--bg-dark-2);
  border-top: 1px solid #1d1f28;
  padding: 2rem 0 1rem;
  color: var(--text-muted);
}

/* Glassmorphism modal effect */
.glass-modal {
  background: rgba(24, 24, 32, 0.92);
  backdrop-filter: blur(12px) saturate(120%);
  border-radius: 1.5rem;
  box-shadow: 0 8px 32px 0 rgba(0,0,0,0.25);
}

/* Accent gradient header */
.bg-gradient-dark-accent {
  background: linear-gradient(90deg, #181824 60%, #ffd600 100%);
}
.bg-accent {
  background: #ffd600 !important;
}
.text-accent {
  color: #ffd600 !important;
}

/* Accent gradient button */
.btn-accent-gradient {
  background: linear-gradient(90deg, #ffd600 0%, #ffb300 100%);
  color: #181824;
  border: none;
  font-weight: 600;
  box-shadow: 0 2px 8px 0 rgba(255,214,0,0.15);
  transition: box-shadow 0.2s, transform 0.2s;
}
.btn-accent-gradient:hover, .btn-accent-gradient:focus {
  box-shadow: 0 4px 16px 0 rgba(255,214,0,0.25);
  transform: translateY(-2px) scale(1.03);
  color: #181824;
}

/* Input icon inside form-floating */
.input-icon {
  pointer-events: none;
  z-index: 2;
  font-size: 1.1rem;
}
.form-floating > .form-control:focus ~ .input-icon,
.form-floating > .form-control:not(:placeholder-shown) ~ .input-icon {
  color: #ffb300;
}

/* Divider with or */
.divider {
  display: flex;
  align-items: center;
  text-align: center;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #444;
}
.divider:not(:empty)::before {
  margin-right: .75em;
}
.divider:not(:empty)::after {
  margin-left: .75em;
}

@media (max-width: 575.98px) {
  .modal-content.glass-modal {
    width: 95vw;
    min-width: unset;
    max-width: 100vw;
    padding: 0.75rem 0.5rem;
    border-radius: 1rem;
  }
  .modal-header.bg-gradient-dark-accent {
    border-radius: 1rem 1rem 0 0;
    padding: 1.25rem 0.5rem 0.5rem 0.5rem;
  }
  .modal-header .modal-title {
    font-size: 1.1rem;
  }
  .modal-body {
    padding: 1rem 0.5rem;
  }
  .row.g-2 > .col-12,
  .row.g-2 > .col-md-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .form-floating,
  .input-group {
    width: 100%;
  }
  .form-floating > .form-control,
  .form-floating > .form-select {
    font-size: 1rem;
    min-height: 48px;
    padding-left: 2.2rem;
  }
  .input-group-text {
    font-size: 1rem;
    padding: 0.375rem 0.75rem;
    min-width: 2.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .input-icon {
    font-size: 1rem;
    left: 0.7rem !important;
  }
  .btn-accent-gradient {
    font-size: 1rem;
    padding: 0.75rem 0;
  }
  .divider {
    font-size: 0.95rem;
    margin: 1rem 0 !important;
  }
}

/* Fix input-group icon alignment and overflow */
.input-group .input-group-text {
  background: transparent;
  border: none;
  padding-right: 0.25rem;
  color: #ffd600;
}
.input-group .form-select,
.input-group .form-control {
  border-radius: 0.5rem !important;
  box-shadow: none;
}
.input-group .form-select {
  min-width: 70px;
}
.input-group .form-control {
  min-width: 0;
}

/* Modal animation */
.animate-modal {
  animation: modalFadeIn 0.5s cubic-bezier(.4,2,.6,1) both;
}
@keyframes modalFadeIn {
  0% { opacity: 0; transform: translateY(40px) scale(0.98); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Field fade-in */
.animate-field { animation: fieldFadeIn 0.7s cubic-bezier(.4,2,.6,1) both; }
@keyframes fieldFadeIn {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Button animation */
.animate-btn { transition: box-shadow 0.2s, transform 0.2s; }
.animate-btn:hover, .animate-btn:focus {
  box-shadow: 0 6px 24px 0 rgba(255,214,0,0.25);
  transform: translateY(-2px) scale(1.04);
}

/* Input focus/active effect */
.form-floating > .form-control:focus, .form-floating > .form-select:focus {
  border-color: #ffd600;
  box-shadow: 0 0 0 2px #ffd60033;
}
.form-floating > .form-control:focus ~ .input-icon,
.form-floating > .form-control:not(:placeholder-shown) ~ .input-icon,
.form-floating > .form-select:focus ~ .input-icon,
.form-floating > .form-select:not([value=""]) ~ .input-icon {
  color: #ffb300;
  filter: drop-shadow(0 0 2px #ffd600);
}

/* Input icon improved alignment */
.input-icon {
  pointer-events: none;
  z-index: 2;
  font-size: 1.15rem;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
}

/* Phone field flex fix */
#reg_phone_code {
  min-width: 80px;
  max-width: 110px;
}
#reg_phone {
  flex: 1 1 0%;
}

@media (max-width: 575.98px) {
  .modal-content.glass-modal {
    width: 98vw;
    min-width: unset;
    max-width: 100vw;
    padding: 0.5rem 0.2rem;
    border-radius: 0.8rem;
  }
  .modal-header.bg-gradient-dark-accent {
    border-radius: 0.8rem 0.8rem 0 0;
    padding: 1rem 0.2rem 0.5rem 0.2rem;
  }
  .modal-header .modal-title {
    font-size: 1rem;
  }
  .modal-body {
    padding: 0.7rem 0.2rem;
  }
  .form-floating,
  .form-floating .d-flex {
    width: 100%;
    flex-direction: column;
    gap: 0.5rem;
  }
  .form-floating > .form-control,
  .form-floating > .form-select {
    font-size: 0.98rem;
    min-height: 44px;
    padding-left: 2.1rem;
  }
  .input-icon {
    font-size: 1rem;
    left: 0.7rem !important;
  }
  #reg_phone_code {
    min-width: 70px;
    max-width: 90px;
    margin-bottom: 0.5rem;
  }
  .btn-accent-gradient {
    font-size: 0.98rem;
    padding: 0.7rem 0;
  }
  .divider {
    font-size: 0.92rem;
    margin: 0.7rem 0 !important;
  }
} 