:root {
  --bg-dark: #402764;
  --bg-darker: #13141b;
  --accent: #ae6efd;
  --accent-hover: #7ee787;
  --text: #fff;
  --text-light: #8e91a1;
  --border: #ae6efd54;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Questrial", system-ui, sans-serif;
  background: var(--bg-darker);
  color: var(--text);
  line-height: 1.6;
  font-size: 19px;
  
}

.hero{
   width: 100%;
  min-height: 420px;

  background-image: url("/glitch-images/glitch-banner.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  position: relative;
}

header {
  position: sticky; 
  top: 0;
  height: 80px;
  z-index: 10;
}


 .header-inner {
  max-width: 1600px;
  margin: 0 auto;
  height: 100%;

  display: flex;
  align-items: center;
  padding: 0 5%;
}

.glitch-auth-buttons button {
  margin-left: 10px;
  padding: 10px 18px;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
}

#signup {
  background: var(--accent);
  color: var(--bg-dark);
}

#login {
  background: #1f8a4f;
  color: #ffffff;
}

.page {
  max-width: 1600px;
  margin: 0 auto;
  padding-top: 60px;
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 32px;
  
}

.sidebar {
  position: sticky;
  top: 120px;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  height: fit-content;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-nav a {
  text-decoration: none;
  color: var(--text-light);
  padding: 10px 14px;
  border-radius: 8px;
  transition: 0.2s;
}

.sidebar-nav a:hover {
  background: rgba(74, 222, 128, 0.18);
  color: var(--accent);
}

.sidebar-cta {
  margin-top: 14px;
  background: var(--accent);
  color: var(--bg-dark) !important;
  text-align: center;
  font-weight: 700;
}

.container {
 
  padding: 0 30px;
  min-width: 0;
}

.glitch-bonus-box {
  
  padding: 120px 0 80px;
  

   
}

.bonus-inner {
    max-width: 1600px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: start;
    padding-left: 5%;
}

.glitch-bonus-title {
  font-size: 2.6rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
}

.glitch-bonus-spins {
  font-size: 2rem;
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
 
}

.glitch-bonus-amount {
  font-size: 2.6rem;
  color: #7fec6b;
  font-weight: 700;
  text-transform: uppercase;
 
}

.glitch-get-bonus {
  display: inline-block;
  background: #7fec6b;
  color: var(--bg-dark);
  padding: 16px 54px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  margin-top: 15px;
  text-transform: uppercase;
  color: #2a2d3d;
  border: 2px dashed var(--bg-darker);
  transition: all 0.3s ease-in-out;
}

.glitch-get-bonus:hover{
  color: #2a2d3d;
  border: 2px dashed #7fec6b;
  background: var(--bg-darker);
  color: #7fec6b;
}

.section {
  margin-bottom: 40px;
}

.section h2,
.section h1 {
  color: var(--accent);
}

.table-wrapper{
 overflow-x: auto;
  width: 100%;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
   min-width: 600px;
  border: 1px solid var(--border);
}

table,
th,
td {
  border: 1px solid var(--border);
}

th,
td {
  padding: 10px;
  text-align: left;
}

th {
  background-color: var(--bg-dark);
}

.glitch-faq .glitch-question {
  background: var(--bg-darker);
  border: 1px solid var(--accent);
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  cursor: pointer;
}

.glitch-faq .glitch-answer {
  display: none;
  padding: 12px;
  margin-top: 6px;
  background: var(--bg-dark);
  border-radius: 8px;
  margin-bottom: 5px;
}

footer {
  margin-top: 80px;
  padding: 20px;
  text-align: center;
  color: var(--text-light);
  border-top: 1px solid var(--border);
}

.glitch-gallery-container {
  max-width: 1400px;
  margin: 0 auto;
}

.glitch-gallery {
  --gap: 12px;
  --min-size: 180px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(var(--min-size), 1fr));
  gap: var(--gap);
  padding: var(--gap);
}

.glitch-gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #0e3a25;
  
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.glitch-gallery-item:hover {
  transform: scale(1.04);
  box-shadow: 0 12px 32px #ae6efdab;
}

.glitch-gallery-item a {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.glitch-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}

.glitch-gallery-item:hover img {
  transform: scale(1.08);
}

img.lazy {
  opacity: 0;
  transition: opacity 0.4s ease;
}

img.lazy.loaded {
  opacity: 1;
}

@media (max-width: 900px) {
  .glitch-gallery {
    --min-size: 160px;
    --gap: 10px;
  }
}

@media (max-width: 600px) {
  .glitch-gallery {
    --min-size: 140px;
    --gap: 8px;
  }
}

@media (max-width: 400px) {
  .glitch-gallery {
    --min-size: 120px;
  }
}

@media (max-width: 1024px) {
  .page {
     grid-template-columns: 1fr;
    grid-template-areas:
      "content"
      "sidebar";
      
  }

  .container {
    grid-area: content;
  }

  .sidebar {
    grid-area: sidebar;
    position: static; 
    margin-top: 40px;
  }

  .sidebar-nav {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .glitch-bonus-box{
    padding: 60px 0 80px;
  }
}

@media (max-width: 600px) {
  header {
    flex-direction: column;
    height: auto;
    padding: 12px;
    gap: 10px;
  }

  .page {
    padding-top: 50px;
  }

  .glitch-bonus-title {
    font-size: 2rem;
  }

  .glitch-bonus-spins {
    font-size: 1.6rem;
  }
}


