* { margin:0; padding:0; box-sizing:border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #0f0f0f;
  color: #ffffff;
  min-height: 100vh;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: #0b163f;
  border-bottom: 1px solid #2b3b63;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  box-sizing: border-box;
}

.logo {
  position: relative;
  display: inline-block;
}

.logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 60px;
  width: auto;
  vertical-align: middle;
}

.logo-text {
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1.9rem;
  font-weight: bold;
  background: linear-gradient(90deg, #ff8c00, #fff1a8, #ffca2a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0;
  transition: opacity 0.3s;
}

.auth-btns {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Language switcher */
.lang-switcher {
  position: relative;
}

#lang-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 14px;
  background: #152b4b;
  color: #ffffff;
  border: 1px solid #2b3b63;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s;
  min-width: 84px;
}

#lang-toggle:hover {
  background: #233b53;
}

#lang-toggle img {
  width: 20px;
  height: 14px;
  object-fit: cover;
  border-radius: 2px;
  display: block;
}

.lang-arrow {
  font-size: 10px;
  opacity: 0.8;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 170px;
  background: #152b4b;
  border: 1px solid #2b3b63;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.lang-menu.hidden {
  display: none;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  transition: 0.2s;
}

.lang-option:hover {
  background: #233b53;
}

.lang-option img {
  width: 20px;
  height: 14px;
  object-fit: cover;
  border-radius: 2px;
  display: block;
}

.auth-btns button {
  padding: 10px 22px;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s;
}

.login {
  background: #152b4b;
  color: #ffffff;
}

.login:hover {
  background: #233b53;
}

.signup {
  background: linear-gradient(90deg, #ff8c00, #fff1a8, #ffca2a);
  color: #000000;
}

.signup:hover {
  transform: scale(1.05);
  background: #ff8c00;
}

.sidebar {
  position: fixed;
  left: 0; top: 70px; bottom: 0;
  width: 240px;
  background: #0b163f;
  border-right: 1px solid #2b3b63;
  overflow-y: auto;
  z-index: 900;
  padding: 20px 0;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 24px;
  color: #b7b9c2;
  text-decoration: none;
  font-size: 0.98rem;
  transition: all 0.2s;
}

.sidebar-item:hover,
.sidebar-item.active {
  background: #223053;
  color: #ffffff;
}

.sidebar-item i {
  width: 24px;
  text-align: center;
  font-size: 1.25rem;
  color: #aab1ac;
}

.sidebar-item:hover i,
.sidebar-item.active i {
  color: #ffca2a;
}

.new {
  background: #ff8c00;
  color: #ffffff;
  font-size: 0.7rem;
  padding: 3px 9px;
  border-radius: 12px;
  margin-left: auto;
}

main {
  margin-left: 240px;
  margin-top: 70px;
  padding: 30px 20px 100px;
}

.hero {
  background:
    linear-gradient(135deg, rgba(11, 22, 63, 0.82), rgba(22, 44, 71, 0.72)),
    url('img/spinita-bg.png') no-repeat center center;
  background-size: cover;
  border-radius: 16px;
  padding: 90px 40px;
  margin-bottom: 50px;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.45);
  color: #fff;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  border: 1px solid #2b3b63;
}

.hero-content {
  max-width: 600px;
  margin-left: 40px;
}

.hero h2 {
  font-size: 3.8rem;
  margin-bottom: 20px;
  background: linear-gradient(90deg, #ff8c00, #fff1a8, #ffca2a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.6rem;
  margin-bottom: 40px;
  color: #ffffff;
}

.hero button {
  padding: 16px 70px;
  font-size: 1.35rem;
  background: linear-gradient(90deg, #ff8c00, #fff1a8, #ffca2a);
  color: #000000;
  border: none;
  border-radius: 50px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero button:hover {
  box-shadow: 0 0 35px rgba(255, 202, 42, 0.45);
  background: #ff8c00;
}

@media (max-width: 768px) {
  .hero {
    padding: 60px 20px;
  }
  .hero-content {
    margin-left: 0;
    text-align: center;
  }
  .hero h2 {
    font-size: 2.6rem;
  }
  .hero p {
    font-size: 1.2rem;
  }
  .hero button {
    padding: 12px 50px;
    font-size: 1.1rem;
  }
}

.categories {
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #ffca2a80 #0b163f80;
  padding: 16px 0 20px;
}

.categories::-webkit-scrollbar {
  height: 6px;
}

.categories::-webkit-scrollbar-track {
  background: #0b163f;
  border-radius: 10px;
}

.categories::-webkit-scrollbar-thumb {
  background: linear-gradient(to right, #ff8c00, #fff1a8, #ffca2a);
  border-radius: 10px;
  border: 2px solid #0b163f;
}

.categories::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to right, #ff8c00, #ffca2a);
}

.categories {
  background: #0b163f;
  padding: 16px 0;
  margin-bottom: 40px;
  overflow-x: auto;
  white-space: nowrap;
  text-align: center;
  border-radius: 12px;
  border: 1px solid #2b3b63;
}

.categories button {
  background: none;
  border: none;
  color: #959dba;
  font-size: 1rem;
  padding: 10px 26px;
  margin: 0 6px;
  cursor: pointer;
  transition: 0.2s;
}

.categories button.active,
.categories button:hover {
  color: #ffffff;
  border-bottom: 3px solid #ffca2a;
}

.games-section {
  position: relative;
  margin: 50px 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.section-header h2 {
  font-size: 2.5rem;
  color: #ffffff;
}

.see-all-btn {
  display: inline-block;
  padding: 10px 20px;
  background: linear-gradient(90deg, #ff8c00, #fff1a8, #ffca2a);
  color: #000000;
  font-weight: bold;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.see-all-btn:hover {
  box-shadow: 0 0 20px rgba(255, 202, 42, 0.45);
  background: #ff8c00;
}

@media (max-width: 768px) {
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .see-all-btn {
    padding: 8px 16px;
    font-size: 0.9rem;
  }

  .games-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
  }

  .game-card .game-title {
    font-size: 1rem;
  }

  .game-card .game-provider {
    font-size: 0.85rem;
  }
}

.games-section h2 {
  font-size: 2.1rem;
  margin-bottom: 28px;
  text-align: center;
  color: #ffffff;
  text-shadow: none;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  gap: 20px;
}

.game-card {
  position: relative;
  background: #0a1430;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #2b3b63;
  transition: all 0.35s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.game-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.55);
  border-color: #5b688b;
}

.game-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.game-card:hover img {
  transform: scale(1.06);
}

.game-card .info-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11,22,63,0.95) 0%, rgba(11,22,63,0.35) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding-bottom: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.game-card:hover .info-overlay {
  opacity: 1;
}

.play-btn {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #ff8c00, #fff1a8, #ffca2a);
  color: #000000;
  border: none;
  border-radius: 50%;
  font-weight: bold;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(255, 202, 42, 0.35);
  transition: all 0.3s ease;
  margin-bottom: 12px;
}

.play-btn:hover {
  transform: scale(1.15);
  box-shadow: 0 0 45px rgba(255, 202, 42, 0.55);
}

.game-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
  margin-bottom: 4px;
  text-align: center;
  max-width: 90%;
}

.game-provider {
  font-size: 0.95rem;
  color: #b7b9c2;
  opacity: 0.95;
  text-shadow: 0 1px 6px rgba(0,0,0,0.7);
  text-transform: uppercase;
}

.play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s;
}

.game-card:hover .play-overlay {
  opacity: 1;
}

.providers-section {
  margin: 80px 0 60px;
  text-align: center;
}

.providers-section h2 {
  font-size: 2.1rem;
  margin-bottom: 40px;
  color: #ffffff;
}

.providers-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px 50px;
}

.provider-logo {
  width: 160px;
  height: 100px;
  background: #0a1430;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #2b3b63;
  transition: 0.3s;
  padding: 10px;
  box-sizing: border-box;
}

.provider-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.provider-logo:hover {
  border-color: #5b688b;
  transform: scale(1.08);
}

.payment-section {
  background: #0b163f;
  border-radius: 16px;
  padding: 50px 20px;
  text-align: center;
  border: 1px solid #2b3b63;
  margin: 0 auto;
  max-width: 1000px;
}

.payment-section h2 {
  font-size: 2rem;
  margin-bottom: 40px;
  color: #ffffff;
}

.payment-icons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  justify-items: center;
  align-items: center;
  gap: 14px;
}

.payment-icon {
  width: 80px;
  height: 50px;
  background: #0a1430;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #2b3b63;
  transition: transform 0.2s, border-color 0.2s;
  padding: 5px;
  box-sizing: border-box;
}

.payment-icon img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.payment-icon:hover {
  border-color: #5b688b;
  transform: scale(1.1);
}

footer {
  background: linear-gradient(to top, #08163f, #0b163f);
  padding: 60px 20px 30px;
  text-align: center;
  border-top: 1px solid #2b3b63;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px 40px;
  margin-bottom: 30px;
}

.footer-links a {
  color: #b7b9c2;
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: #ffca2a;
}

.footer-bottom {
  color: #5e6b80;
  font-size: 0.85rem;
  margin-top: 20px;
}

@media (max-width: 1024px) {
  .sidebar { width: 80px; }
  main { margin-left: 80px; }
  .sidebar-item span { display: none; }
  .sidebar:hover { width: 240px; }
  .sidebar:hover .sidebar-item span { display: inline; }
}

@media (max-width: 768px) {
  header {
    height: auto;
    padding: 12px 16px;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .top-nav { display: none; }
  .sidebar { display: none; }
  main {
    margin-left: 0;
    margin-top: 100px;
    padding: 20px 12px;
  }

  .hero { padding: 70px 25px; }
  .games-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .payment-icons { gap: 12px; }
}

.site-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: bold;
  color: #ffca2a;
  text-shadow: 0 0 1.2px #ffca2a, 0 0 2.5px #ff8c00;
  margin: 5px 0 30px 0;
  font-family: "Open Sans", sans-serif;
}

@media (max-width: 768px) {
  header {
    padding: 0 12px;
    gap: 10px;
  }

  .logo-img {
    height: 50px;
  }

  .auth-btns {
    gap: 8px;
  }

  #lang-toggle {
    min-width: 74px;
    height: 38px;
    padding: 0 10px;
    font-size: 13px;
  }

  .login,
  .signup {
    padding: 9px 14px;
    font-size: 13px;
  }

  .lang-menu {
    min-width: 150px;
  }

  .lang-option {
    padding: 10px 12px;
    font-size: 13px;
  }
}