:root {
  --header-bg: #111723;
  --header-border: #202839;
  --text-main: #f2f6ff;
  --text-muted: #c6cedf;
  --control-bg: #0d131f;
  --control-border: #2a3244;
  --accent: #f3bf2c;

  /* Mobile layout rhythm — pages use theme that loads style.css first */
  --page-pad-x: 16px;
  --page-pad-x-sm: 12px;
  --drawer-pad: 18px;
  --drawer-gap: 12px;
  --touch-target: 44px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: #eef1f5;
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
}

.site-header {
  width: 100%;
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
}

.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid var(--control-border);
  background: var(--control-bg);
  color: var(--text-main);
  font-size: 22px;
  cursor: pointer;
  flex-shrink: 0;
  line-height: 1;
}

.mobile-nav-panel {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

.mobile-nav-panel.is-open {
  display: block;
}

.mobile-nav-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 19, 34, 0.75);
  backdrop-filter: blur(8px);
}

.mobile-nav-content {
  position: absolute;
  top: 0;
  right: 0;
  width: min(92vw, 320px);
  height: 100%;
  max-height: 100dvh;
  background: #111723;
  padding: calc(env(safe-area-inset-top, 0px) + var(--drawer-pad)) var(--drawer-pad)
    calc(env(safe-area-inset-bottom, 0px) + var(--drawer-pad));
  display: flex;
  flex-direction: column;
  gap: var(--drawer-gap);
  box-shadow: -18px 0 40px rgba(0, 0, 0, 0.22);
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--drawer-gap);
  flex-shrink: 0;
  padding-bottom: var(--drawer-gap);
  margin: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-brand {
  color: var(--text-main);
  font-size: 17px;
  font-weight: 700;
}

.mobile-close-btn {
  width: var(--touch-target);
  height: var(--touch-target);
  min-width: var(--touch-target);
  min-height: var(--touch-target);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  cursor: pointer;
  font-size: 22px;
  display: grid;
  place-items: center;
  padding: 0;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: var(--drawer-gap);
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: calc(var(--drawer-gap) / 2) 0;
}

.mobile-nav a {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding: 14px var(--drawer-pad);
  border-radius: var(--drawer-gap);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.3;
}

.mobile-nav a.active {
  background: rgba(243, 191, 44, 0.16);
  color: #f3bf2c;
}

.mobile-account-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
  padding: 4px 0 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-account-list-heading {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(198, 206, 223, 0.65);
  padding: 4px 2px 0;
}

.mobile-account-link {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 13px var(--drawer-pad);
  border-radius: var(--drawer-gap);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  box-sizing: border-box;
}

.mobile-account-link:hover {
  background: rgba(255, 255, 255, 0.08);
}

.mobile-account-logout {
  color: #ff6b81;
}

.mobile-account-logout:hover {
  background: rgba(255, 71, 87, 0.12);
  color: #ff9aa8;
}

.mobile-actions {
  display: flex;
  flex-direction: column;
  gap: var(--drawer-gap);
  flex-shrink: 0;
  margin-top: auto;
  padding-top: var(--drawer-gap);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-nav-content .mobile-actions > .lang-btn,
.mobile-nav-content .mobile-actions > .login-btn {
  width: 100%;
  height: var(--touch-target);
  min-height: var(--touch-target);
  border-radius: 10px;
  font-size: 14px;
  padding: 0 var(--drawer-pad);
  box-sizing: border-box;
}

.mobile-nav-content .mobile-actions > .search-wrap {
  width: 100%;
  height: var(--touch-target);
  min-height: var(--touch-target);
  border-radius: 10px;
  padding: 0 var(--drawer-pad);
  box-sizing: border-box;
}

.mobile-search {
  width: 100%;
}


.header-inner {
  max-width: 1260px;
  margin: 0 auto;
  padding: 10px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
}

.brand img {
  width: 150px;
  height: auto;
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.main-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--text-main);
}

.caret {
  font-size: 10px;
  margin-left: 5px;
  color: #8f9ab4;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.search-wrap {
  width: 275px;
  height: 38px;
  border-radius: 4px;
  background: var(--control-bg);
  border: 1px solid var(--control-border);
  display: flex;
  align-items: center;
  padding: 0 12px;
  color: #8d98b5;
}

.search-icon {
  font-size: 15px;
  margin-right: 8px;
}

.search-wrap input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text-main);
  font-size: 14px;
}

.search-wrap input::placeholder {
  color: #7e89a5;
}

.lang-btn,
.login-btn {
  height: 38px;
  border-radius: 4px;
  border: 1px solid var(--control-border);
  background: var(--control-bg);
  color: var(--text-main);
  font-size: 13px;
  font-weight: 600;
  padding: 0 14px;
  cursor: pointer;
}

.lang-btn:hover {
  border-color: #44506b;
}

.login-btn {
  border-color: #f5c339;
  background: var(--accent);
  color: #1d2432;
}

.login-btn:hover {
  filter: brightness(0.95);
}

.page-content {
  width: 100%;
}

.hero-section {
  max-width: 1260px;
  margin: 0 auto;
  padding: 14px 22px 0;
}

.hero-slider {
  position: relative;
}

.hero-track {
  position: relative;
  width: 100%;
  min-height: 238px;
  overflow: visible;
}

.hero-slide {
  position: absolute;
  left: 50%;
  top: 0;
  width: 64%;
  max-width: 700px;
  border-radius: 8px;
  overflow: hidden;
  opacity: 0;
  z-index: 1;
  transform: translateX(-50%) scale(0.9);
  transition: transform 0.55s ease, opacity 0.45s ease, filter 0.45s ease;
  pointer-events: none;
  box-shadow: 0 6px 16px rgba(11, 18, 30, 0.2);
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 16 / 5.6;
}

.hero-slide.is-active {
  pointer-events: auto;
  opacity: 1;
  z-index: 4;
  transform: translateX(-50%) scale(1);
  filter: none;
}

.hero-slide.is-prev,
.hero-slide.is-next {
  opacity: 0.72;
  z-index: 2;
  pointer-events: auto;
  filter: saturate(0.85);
}

.hero-slide.is-prev {
  transform: translateX(-92%) scale(0.86);
}

.hero-slide.is-next {
  transform: translateX(-8%) scale(0.86);
}

.hero-slide.is-hidden-left {
  transform: translateX(-135%) scale(0.84);
}

.hero-slide.is-hidden-right {
  transform: translateX(35%) scale(0.84);
}

.slider-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding-top: 8px;
}

.dot {
  width: 22px;
  height: 4px;
  border-radius: 5px;
  background: #b6bcc9;
  opacity: 0.7;
}

.dot.is-active {
  background: #f0b825;
  opacity: 1;
}

.hero-categories {
  margin-top: 8px;
  min-height: unset;
  border: 1px solid #e0e6f0;
  background: linear-gradient(180deg, #ffffff 0%, #f0f3fa 100%);
  border-radius: 10px;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: space-evenly;
  gap: clamp(6px, 2vw, 20px);
  padding: 12px 10px 14px;
  box-shadow: 0 2px 10px rgba(17, 23, 35, 0.06);
}

.hero-categories .hero-cat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  flex: 1 1 0;
  min-width: 0;
  max-width: 96px;
  padding: 2px 4px;
  color: #1f2736;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.hero-categories .hero-cat:active {
  opacity: 0.88;
  transform: scale(0.97);
}

.hero-cat-icon {
  position: relative;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.hero-cat-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 2px 5px rgba(17, 23, 35, 0.12));
}

.hero-cat-icon--keys .hero-cat-badge {
  position: absolute;
  top: -2px;
  right: -5px;
  z-index: 2;
  padding: 3px 5px;
  border-radius: 3px;
  background: linear-gradient(180deg, #ff9a38 0%, #ff7710 100%);
  color: #ffffff;
  font-size: 7px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.04em;
  box-shadow: 0 1px 4px rgba(255, 100, 0, 0.45);
}

.hero-cat-label {
  display: -webkit-box;
  width: 100%;
  max-width: 92px;
  margin: 0 auto;
  text-align: center;
  font-size: clamp(11px, 2.2vw, 13px);
  line-height: 1.22;
  color: #2a3446;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow-wrap: break-word;
  word-break: break-word;
}

.hot-games-section {
  max-width: 1260px;
  margin: 20px auto 0;
  padding: 0 22px 28px;
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.section-head h2 {
  margin: 0;
  color: #1f2634;
  font-size: 33px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.section-head p {
  margin: 5px 0 0;
  color: #707a8f;
  font-size: 17px;
}

.section-all {
  color: #1e2430;
  font-size: 24px;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.2;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
}

.game-card {
  position: relative;
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(20, 34, 61, 0.05);
}

.game-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #d8dee8;
}

.game-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.game-info {
  padding: 8px 8px 10px;
}

.game-info h3 {
  margin: 0;
  color: #222a38;
  font-size: 14px;
  font-weight: 600;
  min-height: 36px;
}

.game-info p {
  margin: 4px 0 0;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #f0b528;
  font-size: 12px;
  font-weight: 600;
}

.game-info p span {
  color: #8c95a9;
  font-weight: 500;
}

.discount-tag {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  background: #ff8f16;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  padding: 5px 8px;
  border-bottom-left-radius: 8px;
}

.view-more-wrap {
  text-align: center;
  margin-top: 12px;
}

.view-more-btn {
  color: #5f687a;
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
}

.popular-keys-section {
  margin-top: 8px;
  padding: 24px 0 28px;
  background-image: linear-gradient(rgba(27, 60, 123, 0.75), rgba(36, 86, 172, 0.72)), url("sec 3 images/background.png");
  background-size: cover;
  background-position: center;
}

.popular-keys-inner {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 22px;
}

.popular-keys-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
  gap: 12px;
}

.popular-keys-head h2 {
  margin: 0;
  color: #ffffff;
  font-size: 26px;
  font-weight: 700;
}

.popular-keys-head p {
  margin: 3px 0 0;
  color: rgba(239, 245, 255, 0.86);
  font-size: 14px;
}

.popular-keys-all {
  color: #f5f8ff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.keys-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.key-card {
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(13, 24, 48, 0.28);
}

.key-image {
  width: 100%;
  aspect-ratio: 4 / 5.3;
  background: #dce4f3;
}

.key-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.key-info {
  padding: 8px 8px 10px;
}

.key-info h3 {
  margin: 0 0 4px;
  color: #1f2735;
  font-size: 12px;
  font-weight: 600;
  min-height: 30px;
}

.key-info p {
  margin: 1px 0;
  color: #808a9f;
  font-size: 11px;
  line-height: 1.25;
}

.key-price-row {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.key-price-row .price {
  color: #ff8a00;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

.key-price-row .save {
  background: #ff8e20;
  color: #ffffff;
  border-radius: 4px;
  padding: 2px 5px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.single-banner-section {
  max-width: 1260px;
  margin: 2px auto 0;
  padding: 0 22px 24px;
}

.single-banner-wrap {
  border-radius: 6px;
  overflow: hidden;
}

.single-banner-wrap img {
  width: 100%;
  display: block;
  height: auto;
}

.trustpilot-section {
  max-width: 1260px;
  margin: 2px auto 0;
  padding: 0 22px 28px;
}

.trustpilot-head h2 {
  margin: 0 0 14px;
  color: #20293a;
  font-size: 36px;
  font-weight: 700;
}

.reviews-carousel {
  display: flex;
  align-items: center;
  gap: 10px;
}

.reviews-viewport {
  overflow: hidden;
  flex: 1;
}

.reviews-track {
  display: flex;
  gap: 12px;
  transition: transform 0.45s ease;
}

.review-card {
  flex: 0 0 calc((100% - 48px) / 5);
  background: #f9f9fc;
  border: 1px solid #e5e8ef;
  border-radius: 4px;
  min-height: 164px;
  padding: 12px 12px 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.review-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(39, 56, 89, 0.12);
}

.review-stars {
  color: #00b67a;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
}

.review-stars span {
  color: #6f788b;
  font-weight: 600;
  margin-left: 6px;
  font-size: 13px;
}

.review-card h3 {
  margin: 0 0 7px;
  color: #202736;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.review-card p {
  margin: 0;
  color: #434b5d;
  font-size: 14px;
  line-height: 1.3;
  min-height: 36px;
}

.review-card small {
  display: block;
  margin-top: 14px;
  color: #697286;
  font-size: 13px;
  font-weight: 600;
}

.review-arrow {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid #aeb7c8;
  background: #f4f7fc;
  color: #263047;
  cursor: pointer;
  font-size: 21px;
  line-height: 1;
}

.review-arrow:hover {
  background: #e8edf6;
}

.trustpilot-footer {
  margin-top: 12px;
  text-align: center;
  color: #3f4758;
  font-size: 22px;
}

.trustpilot-footer a {
  color: #394358;
}

.trustpilot-brand {
  text-align: center;
  margin-top: 2px;
  color: #00b67a;
  font-size: 31px;
  font-weight: 700;
}

.why-choose-section {
  max-width: 1260px;
  margin: 2px auto 0;
  padding: 0 22px 28px;
}

.why-choose-section h2 {
  margin: 0 0 10px;
  color: #1f2736;
  font-size: 37px;
  font-weight: 700;
}

.why-choose-card {
  background: #f8f9fb;
  border: 1px solid #e3e6ed;
  border-radius: 8px;
  padding: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.why-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 6px 2px;
}

.why-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #cdd3df;
  display: grid;
  place-items: center;
  font-size: 18px;
  background: #ffffff;
  flex-shrink: 0;
}

.why-icon img {
  width: 24px;
  height: 24px;
  display: block;
  object-fit: contain;
}

.why-item h3 {
  margin: 0 0 6px;
  color: #222b3a;
  font-size: 20px;
  font-weight: 700;
}

.why-item p {
  margin: 0;
  color: #576176;
  font-size: 13px;
  line-height: 1.45;
}

.payments-strip-section {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 22px 2px;
}

.payments-strip {
  border-top: 1px solid #dce1eb;
  padding-top: 8px;
  text-align: center;
  overflow: hidden;
  white-space: nowrap;
}

.payments-strip img {
  width: auto;
  max-width: none;
  height: 80px;
  animation: scrollPaymentIcons 30s linear infinite;
  display: inline-block;
  flex-shrink: 0;
}

.payments-strip {
  display: flex;
  width: 200%;
  align-items: center;
  justify-content: flex-start;
}

@keyframes scrollPaymentIcons {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.site-footer {
  border-top: 1px solid #dce1eb;
  margin-top: 2px;
}

.footer-inner {
  max-width: 1260px;
  margin: 0 auto;
  padding: 18px 22px 16px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.5fr;
  gap: 24px;
}

.footer-col h3 {
  margin: 0 0 10px;
  color: #1d2637;
  font-size: 22px;
  font-weight: 700;
  text-align: center;
}

.footer-col a {
  display: block;
  color: #5f6879;
  text-decoration: none;
  font-size: 16px;
  margin-bottom: 8px;
  text-align: center;
}

.footer-col a:hover {
  color: #283247;
}

/* Accordion Styles */
.accordion-header {
  display: none;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  padding: 12px 0;
  border-bottom: 1px solid #e5e7eb;
  width: 100%;
}

.accordion-header h3 {
  margin: 0;
  color: #1d2637;
  font-size: 18px;
  font-weight: 600;
  text-align: left;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.accordion-icon {
  font-size: 20px;
  font-weight: 400;
  color: #5f6879;
  transition: transform 0.3s ease;
  padding: 4px;
}

.accordion-header.active .accordion-icon {
  transform: rotate(45deg);
}

.accordion-content {
  display: block;
}


/* Mobile Accordion */
@media (max-width: 768px) {
  .accordion-header {
    display: flex;
  }
  
  .accordion-content {
    display: none;
    padding: 10px 0;
  }
  
  .accordion-content.active {
    display: block;
  }
  
  .footer-col h3:not(.accordion-header h3) {
    display: none;
  }
  
  .footer-col .accordion-header h3 {
    display: block !important;
    text-align: left !important;
    flex: 1 !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #1d2637 !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    margin: 0 !important;
  }
  
}


.footer-bottom {
  border-top: 1px solid #dce1eb;
  margin-top: 14px;
  padding-top: 12px;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  color: #6a7387;
  font-size: 12px;
}

.floating-actions {
  position: fixed;
  right: 18px;
  bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 20;
}

.floating-btn {
  border: none;
  cursor: pointer;
  box-shadow: 0 7px 16px rgba(17, 29, 55, 0.18);
}


.floating-btn.support {
  height: 44px;
  border-radius: 24px;
  padding: 0 10px 0 12px;
  background: #ffffff;
  color: #232d40;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
}

.support-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #f3c433;
  display: grid;
  place-items: center;
  font-size: 14px;
}

@media (max-width: 1050px) {
  .main-nav {
    display: none;
  }

  .site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding-top: env(safe-area-inset-top, 0px);
  }

  /* Toolbar layout whenever the hamburger is shown (tablet + phone) */
  .header-inner {
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: clamp(6px, 2vw, 12px);
    padding: clamp(6px, 1.8vw, 10px) clamp(10px, 3vw, 18px);
  }

  .mobile-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    order: 0;
    flex: 0 0 auto;
    width: clamp(42px, 10vw, 46px);
    height: clamp(42px, 10vw, 46px);
    border-radius: 12px;
    font-size: 20px;
    line-height: 1;
  }

  .header-inner .brand {
    order: 1;
    flex: 0 0 auto;
    max-width: min(140px, 34vw);
    min-width: 0;
  }

  .header-inner .brand img {
    width: 100%;
    max-width: 132px;
    height: auto;
  }

  .header-actions {
    order: 2;
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    margin-left: 0;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: nowrap;
    gap: 6px;
  }

  .header-actions > .search-wrap {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    max-width: none;
    height: 37px;
    padding: 0 10px;
  }

  .header-actions .search-wrap input {
    font-size: clamp(11px, 2.9vw, 14px);
  }

  .header-actions > .lang-btn {
    flex: 0 0 auto;
    padding: 0 clamp(8px, 2vw, 14px);
    height: 37px;
    font-size: clamp(11px, 2.5vw, 13px);
  }

  .header-actions > .login-btn {
    flex: 0 0 auto;
    padding: 0 clamp(10px, 2.5vw, 14px);
    height: 37px;
    font-size: clamp(11px, 2.5vw, 13px);
    white-space: nowrap;
  }

  html {
    scroll-padding-top: calc(56px + env(safe-area-inset-top, 0px));
  }

  .hero-track {
    min-height: 208px;
  }

  .hero-slide {
    width: 74%;
    max-width: 620px;
  }

  .games-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .keys-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .single-banner-section {
    padding: 0 22px 28px;
  }

  .review-card {
    flex: 0 0 calc((100% - 24px) / 3);
  }

  .trustpilot-footer {
    font-size: 17px;
  }

  .why-choose-card {
    grid-template-columns: 1fr;
  }

  .payments-strip-section {
    padding: 0 22px 24px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  html, body {
    overflow-x: hidden !important;
    max-width: 100vw;
  }
  
  .header-inner {
    padding: 8px var(--page-pad-x);
  }

  .header-actions > .search-wrap,
  .header-actions > .lang-btn,
  .header-actions > .login-btn {
    height: 36px;
  }

  .products-page {
    padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px));
  }

  .page-content {
    padding-bottom: 0;
    overflow-x: hidden;
    max-width: 100vw;
  }

  .hero-section {
    padding: 8px var(--page-pad-x) 6px;
  }

  /* Match desktop banner proportions (16/5.6); contain + gutters — no harsh side crop on phones */
  .hero-track {
    min-height: 0;
    width: 100%;
    aspect-ratio: 16 / 5.6;
    border-radius: 8px;
    background: linear-gradient(to bottom, #e8ecf4, #dde3eb);
    overflow: hidden;
  }

  .hero-slide {
    width: 100%;
    max-width: none;
    box-shadow: none;
    height: 100%;
    padding: 4px clamp(8px, 3.25vw, 18px);
    box-sizing: border-box;
    border-radius: 6px;
  }

  .hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    aspect-ratio: auto;
    display: block;
  }

  .hero-slide.is-prev,
  .hero-slide.is-next,
  .hero-slide.is-hidden-left,
  .hero-slide.is-hidden-right {
    opacity: 0;
    transform: translateX(-50%) scale(0.92);
    pointer-events: none;
  }

  .slider-dots {
    padding-top: 8px;
    position: relative;
    z-index: 2;
  }

  .hero-categories {
    margin-top: 12px;
    position: relative;
    z-index: 3;
    padding: 8px var(--page-pad-x-sm) 10px;
    gap: clamp(4px, 2vw, 10px);
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    justify-content: space-evenly;
  }

  .hero-categories::-webkit-scrollbar {
    display: none;
  }

  .hero-categories .hero-cat {
    scroll-snap-align: center;
    flex: 1 1 0;
    min-width: 52px;
    max-width: 76px;
  }

  .hero-cat-icon {
    width: 40px;
    height: 40px;
  }

  .hero-cat-icon--keys .hero-cat-badge {
    font-size: 6px;
    padding: 2px 4px;
    right: -4px;
  }

  .hero-cat-label {
    font-size: 10px;
  }

  .hot-games-section {
    padding: 0 var(--page-pad-x) 18px;
    overflow-x: hidden;
    max-width: 100vw;
  }

  .section-head {
    flex-direction: column;
    align-items: stretch;
  }

  .section-head h2 {
    font-size: 24px;
  }

  .section-head p {
    font-size: 14px;
  }

  .section-all {
    font-size: 16px;
    align-self: flex-start;
  }

  /* Keep 3 columns on phones — tighter cards, more visible above the fold */
  .games-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .popular-keys-inner {
    padding: 0 var(--page-pad-x);
    overflow-x: hidden;
    max-width: 100vw;
  }

  .popular-keys-head h2 {
    font-size: 22px;
  }

  .keys-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .key-price-row .price {
    font-size: 15px;
  }

  .single-banner-section {
    padding: 0 var(--page-pad-x) 24px;
    overflow-x: hidden;
    max-width: 100vw;
  }

  .trustpilot-section {
    padding: 0 var(--page-pad-x) 28px;
    overflow-x: hidden;
    max-width: 100vw;
  }

  .trustpilot-head h2 {
    font-size: 28px;
  }

  .review-card {
    flex: 0 0 100%;
  }

  .review-arrow {
    display: none;
  }

  .trustpilot-footer {
    font-size: 14px;
  }

  .trustpilot-brand {
    font-size: 24px;
  }

  .why-choose-section {
    padding: 0 var(--page-pad-x) 28px;
    overflow-x: hidden;
    max-width: 100vw;
  }

  .why-choose-section h2 {
    font-size: 29px;
  }

  .why-item h3 {
    font-size: 18px;
  }

  .payments-strip-section {
    padding: 0 var(--page-pad-x) 2px;
  }

  .payments-strip {
    overflow: hidden;
    white-space: nowrap;
    padding: 4px var(--page-pad-x) 6px;
    box-sizing: border-box;
  }

  .payments-strip img {
    width: auto;
    height: clamp(70px, 20vmin, 85px);
    max-width: none;
    animation: scrollPaymentIcons 25s linear infinite;
  }

  .footer-inner {
    padding: 12px var(--page-pad-x) 8px;
    overflow-x: hidden;
    max-width: 100vw;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    text-align: center;
  }

  .footer-col h3:not(.accordion-header h3) {
    font-size: 20px;
  }

  .footer-col a {
    font-size: 14px;
  }

  .floating-actions {
    right: var(--page-pad-x-sm);
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 520px) {
  .header-inner {
    padding: 8px var(--page-pad-x-sm);
  }

  .hero-section {
    padding-left: var(--page-pad-x-sm);
    padding-right: var(--page-pad-x-sm);
  }

  .section-head {
    gap: 8px;
  }

  /* 3-up grid: compact typography = more content visible (“zoom out” without scaling viewport) */
  .games-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .keys-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .hot-games-section {
    padding: 0 var(--page-pad-x-sm) calc(18px + env(safe-area-inset-bottom, 0px));
  }

  .popular-keys-inner {
    padding-left: var(--page-pad-x-sm);
    padding-right: var(--page-pad-x-sm);
  }

  .single-banner-section {
    padding-left: var(--page-pad-x-sm);
    padding-right: var(--page-pad-x-sm);
  }

  .trustpilot-section {
    padding-left: var(--page-pad-x-sm);
    padding-right: var(--page-pad-x-sm);
  }

  .why-choose-section {
    padding-left: var(--page-pad-x-sm);
    padding-right: var(--page-pad-x-sm);
  }

  .footer-inner {
    padding-left: var(--page-pad-x-sm);
    padding-right: var(--page-pad-x-sm);
  }

  .hero-categories {
    gap: 8px;
  }

  .hero-categories a {
    padding: 8px 12px;
    font-size: 12px;
  }

  .section-head h2 {
    font-size: 19px;
  }

  .section-head p {
    font-size: 12px;
  }

  .section-all {
    font-size: 14px;
  }

  .game-card,
  .key-card {
    border-radius: 8px;
  }

  .game-info {
    padding: 6px 5px 8px;
  }

  .game-info h3,
  .key-info h3 {
    font-size: 11px;
    min-height: 28px;
    line-height: 1.25;
  }

  .game-info p {
    font-size: 10px;
    gap: 4px;
  }

  .key-info {
    padding: 6px 5px 8px;
  }

  .key-price-row .price {
    font-size: 13px;
  }

  .key-price-row .save {
    font-size: 8px;
    padding: 2px 4px;
  }

  .discount-tag {
    font-size: 9px;
    padding: 3px 5px;
  }

  .header-inner .brand img {
    max-width: 100px;
  }

  .floating-actions {
    right: var(--page-pad-x-sm);
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }

  /* Very narrow: keep login inside drawer — bar stays menu + logo + search + lang */
  .header-actions > .login-btn {
    display: none;
  }

  .hero-categories {
    margin-top: 12px;
    gap: 4px;
    padding: 6px var(--page-pad-x-sm) 8px;
  }

  .hero-categories .hero-cat {
    min-width: 48px;
    max-width: 68px;
  }

  .hero-cat-icon {
    width: 36px;
    height: 36px;
  }

  .hero-cat-label {
    font-size: 9px;
  }

  .payments-strip-section {
    padding: 0 var(--page-pad-x-sm) 2px;
  }

  .payments-strip {
    padding: 4px var(--page-pad-x-sm) 6px;
    overflow: hidden;
    white-space: nowrap;
  }

  .payments-strip img {
    height: clamp(60px, 18vmin, 75px);
    animation: scrollPaymentIcons 22s linear infinite;
  }
}

/* Chatbot Styles */
.chatbot-container {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 380px;
  height: 500px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  display: none;
  flex-direction: column;
  z-index: 9999;
  border: 1px solid #e5e7eb;
  overflow: hidden;
}

.chatbot-container.active {
  display: flex;
}

.chatbot-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chatbot-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chatbot-avatar {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.chatbot-details h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.status-indicator {
  font-size: 12px;
  color: #4ade80;
  display: flex;
  align-items: center;
  gap: 4px;
}

.status-indicator.online::before {
  content: "●";
  color: #4ade80;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.chatbot-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.chatbot-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  background: #f8fafc;
}

.message {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  animation: messageSlide 0.3s ease;
}

@keyframes messageSlide {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.message-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.bot-message .message-avatar {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.user-message .message-avatar {
  background: #eab308;
}

.message-content {
  flex: 1;
}

.message-content p {
  margin: 0;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.4;
}

.bot-message .message-content p {
  background: white;
  color: #1d2637;
  border-bottom-left-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.user-message .message-content p {
  background: #eab308;
  color: white;
  border-bottom-right-radius: 4px;
  margin-left: auto;
  max-width: 80%;
}

.chatbot-input-container {
  padding: 16px;
  background: white;
  border-top: 1px solid #e5e7eb;
}

.chatbot-quick-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.quick-action {
  background: #f1f5f9;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: 8px 12px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.quick-action:hover {
  background: #eab308;
  color: white;
  border-color: #eab308;
}

.chatbot-input-wrapper {
  display: flex;
  gap: 8px;
  align-items: center;
}

.chatbot-input-wrapper input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  font-size: 14px;
  outline: none;
  transition: all 0.3s ease;
}

.chatbot-input-wrapper input:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.chatbot-send {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.chatbot-send:hover {
  transform: scale(1.05);
}

.chatbot-send:active {
  transform: scale(0.95);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .chatbot-container {
    width: calc(100vw - 40px);
    height: 60vh;
    bottom: 80px;
    right: 20px;
    left: 20px;
    z-index: 9999 !important;
  }
  
  .chatbot-header {
    padding: 12px;
  }
  
  .chatbot-avatar {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
  
  .chatbot-details h4 {
    font-size: 14px;
  }
  
  .chatbot-messages {
    padding: 12px;
  }
  
  .message-content p {
    font-size: 13px;
    padding: 10px 14px;
  }
  
  .chatbot-input-container {
    padding: 12px;
  }
  
  .quick-action {
    font-size: 11px;
    padding: 6px 10px;
  }
  
  .chatbot-input-wrapper input {
    font-size: 13px;
    padding: 10px 14px;
  }
}

@media (max-width: 480px) {
  .chatbot-container {
    width: calc(100vw - 20px);
    right: 10px;
    left: 10px;
    bottom: 70px;
    height: 70vh;
    z-index: 9999 !important;
  }
  
  .chatbot-quick-actions {
    gap: 6px;
  }
  
  .quick-action {
    font-size: 10px;
    padding: 5px 8px;
  }
}
