@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

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

:root {
  --bg-main: #E8F0FE;
  --bg-surface: #FFFFFF;
  --bg-surface-2: #EDF4FF;
  --bg-header: rgba(255, 255, 255, 0.92);
  --accent: #1976D2;
  --accent-hover: #1565C0;
  --accent-light: #2196F3;
  --accent-soft: rgba(25, 118, 210, 0.12);
  --accent-glow: rgba(25, 118, 210, 0.3);
  --text-primary: #0F172A;
  --text-secondary: #334155;
  --text-muted: #64748B;
  --border: rgba(15, 23, 42, 0.12);
  --border-strong: rgba(25, 118, 210, 0.35);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.1);
  --gradient-sky: linear-gradient(135deg, #1E88E5 0%, #1565C0 100%);
  --gradient-surface: linear-gradient(180deg, #FFFFFF 0%, #EDF4FF 100%);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

[data-theme="dark"] {
  --bg-main: #0F172A;
  --bg-surface: #1E293B;
  --bg-surface-2: #162036;
  --bg-header: rgba(15, 23, 42, 0.9);
  --text-primary: #F1F5F9;
  --text-secondary: #CBD5E1;
  --text-muted: #64748B;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(33, 150, 243, 0.3);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.2);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.25);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.3);
  --gradient-surface: linear-gradient(180deg, #1E293B 0%, #162036 100%);
}

html, body {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  font-family: 'Plus Jakarta Sans', 'Noto Sans Khmer', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-main);
  min-height: 100vh;
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  transition: background 0.35s ease, color 0.35s ease;
  font-size: 14px;
}

.page-container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.particles-container,
.walking-mascot,
.walking-sticker,
.footer-support-btn,
.water-waves {
  display: none !important;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--bg-header);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background 0.35s ease;
}

@media (min-width: 768px) {
  .header { padding: 12px 32px; }
}

.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.brand-name {
  font-size: 19px;
  font-weight: 800;
  display: flex;
  align-items: center;
  letter-spacing: -0.3px;
}

.brand-mori { color: var(--text-primary); transition: color 0.35s; }
.brand-topup { color: var(--accent); }

.header-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--accent);
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.icon-btn:hover {
  background: var(--accent-soft);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.icon-btn:active { transform: scale(0.95); }

.cambodia-flag img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.theme-toggle {
  position: relative;
  overflow: hidden;
}

.theme-toggle i {
  transition: transform 0.3s ease;
}

.banner-section {
  padding: 14px 16px 6px;
}

@media (min-width: 768px) {
  .banner-section { padding: 18px 32px 8px; }
}

.banner-slider {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 8;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.banner-img.active { opacity: 1; }

.banner-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0.4;
}

.dot.active {
  background: var(--accent);
  width: 24px;
  border-radius: 4px;
  opacity: 1;
}

.section {
  padding: 10px 16px 24px;
}

@media (min-width: 768px) {
  .section { padding: 10px 32px 32px; }
}

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

.section-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: color 0.35s;
}

.section-title .icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--gradient-sky);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  box-shadow: 0 3px 10px var(--accent-glow);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

@media (min-width: 480px) {
  .games-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
}

@media (min-width: 768px) {
  .games-grid { grid-template-columns: repeat(5, 1fr); gap: 16px; }
}

@media (min-width: 1024px) {
  .games-grid { grid-template-columns: repeat(6, 1fr); gap: 18px; }
}

.hot-games-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.hot-games-scroll::-webkit-scrollbar {
  display: none;
}

.hot-game-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px 10px 10px;
  background: var(--gradient-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  text-decoration: none;
  min-width: 180px;
  flex-shrink: 0;
  scroll-snap-align: start;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-sm);
}

.hot-game-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.hot-game-card img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}

.hot-game-card span {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}

.section-subtitle-text {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
  margin-top: -8px;
}

.game-card {
  background: var(--gradient-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  border: 1px solid var(--border);
  transition: all 0.25s ease;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}

.game-card:active { transform: scale(0.97); }

.game-card.maintenance { opacity: 0.65; }
.game-card.maintenance .game-image { filter: grayscale(50%); }

.maintenance-badge {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: white;
  font-size: 9px;
  font-weight: 600;
  padding: 4px 8px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  z-index: 5;
}

.game-card .game-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  background: var(--bg-surface-2);
}

.game-info {
  padding: 10px 8px;
  text-align: center;
  background: var(--bg-surface);
  transition: background 0.35s;
}

.game-name {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
  transition: color 0.35s;
}

.game-dev {
  display: block;
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.topup-btn {
  display: inline-block;
  padding: 5px 16px;
  background: var(--gradient-sky);
  color: white;
  font-size: 10px;
  font-weight: 700;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.game-card.maintenance .topup-btn {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  font-size: 8px;
}

.loading-games {
  text-align: center;
  padding: 40px;
  color: var(--text-muted);
  font-size: 14px;
}

.no-games {
  text-align: center;
  padding: 40px;
  color: var(--text-muted);
}

.loading-error {
  text-align: center;
  padding: 40px;
  color: #EF4444;
}

.water-wave-section {
  position: relative;
  width: 100%;
  height: 90px;
  overflow: hidden;
  background: transparent;
}

.water-wave-section .wave-layer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200%;
  height: 100%;
  animation: waveMove 8s linear infinite;
}

.water-wave-section .wave-layer:nth-child(1) {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%232196F3' fill-opacity='0.12' d='M0,160L48,176C96,192,192,224,288,213.3C384,203,480,149,576,138.7C672,128,768,160,864,186.7C960,213,1056,235,1152,224C1248,213,1344,171,1392,149.3L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E") repeat-x;
  background-size: 50% 100%;
  opacity: 0.8;
}

[data-theme="dark"] .water-wave-section .wave-layer:nth-child(1) {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%231E293B' fill-opacity='0.8' d='M0,160L48,176C96,192,192,224,288,213.3C384,203,480,149,576,138.7C672,128,768,160,864,186.7C960,213,1056,235,1152,224C1248,213,1344,171,1392,149.3L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E") repeat-x;
  background-size: 50% 100%;
}

.water-wave-section .wave-layer:nth-child(2) {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%2342A5F5' fill-opacity='0.08' d='M0,224L48,208C96,192,192,160,288,165.3C384,171,480,213,576,218.7C672,224,768,192,864,176C960,160,1056,160,1152,170.7C1248,181,1344,203,1392,213.3L1440,224L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E") repeat-x;
  background-size: 50% 100%;
  animation-duration: 6s;
  animation-direction: reverse;
}

[data-theme="dark"] .water-wave-section .wave-layer:nth-child(2) {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%232196F3' fill-opacity='0.1' d='M0,224L48,208C96,192,192,160,288,165.3C384,171,480,213,576,218.7C672,224,768,192,864,176C960,160,1056,160,1152,170.7C1248,181,1344,203,1392,213.3L1440,224L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E") repeat-x;
  background-size: 50% 100%;
}

.water-wave-section .wave-layer:nth-child(3) {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%231976D2' fill-opacity='0.06' d='M0,288L48,272C96,256,192,224,288,218.7C384,213,480,235,576,245.3C672,256,768,256,864,234.7C960,213,1056,171,1152,160C1248,149,1344,171,1392,181.3L1440,192L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E") repeat-x;
  background-size: 50% 100%;
  animation-duration: 10s;
}

[data-theme="dark"] .water-wave-section .wave-layer:nth-child(3) {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%2342A5F5' fill-opacity='0.06' d='M0,288L48,272C96,256,192,224,288,218.7C384,213,480,235,576,245.3C672,256,768,256,864,234.7C960,213,1056,171,1152,160C1248,149,1344,171,1392,181.3L1440,192L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E") repeat-x;
  background-size: 50% 100%;
}

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

.footer {
  background: #0f1225;
  padding: 0;
  position: relative;
  z-index: 10;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 48px 24px 0;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  padding-bottom: 36px;
}

.footer-brand-col {
  flex: 1.2;
  min-width: 220px;
}

.footer-logo {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  margin-bottom: 14px;
}

.footer-brand-name {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}

.footer-brand-name span { color: #64B5F6; }

.footer-description {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  line-height: 1.8;
}

.footer-mid-col {
  flex: 1;
  min-width: 180px;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
}

.footer-social-btn {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.8);
  font-size: 16px;
  text-decoration: none;
  transition: all 0.25s;
}

.footer-social-btn:hover {
  background: rgba(255,255,255,0.18);
  color: #fff;
  transform: translateY(-2px);
}

.footer-section-title {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  margin-bottom: 14px;
}

.footer-section-title--mt {
  margin-top: 20px;
}

.footer-contact-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  color: rgba(255,255,255,0.8);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.25s;
}

.footer-contact-btn i {
  font-size: 14px;
  color: #64B5F6;
}

.footer-contact-btn:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

.footer-payment-col {
  flex: 1.1;
  min-width: 200px;
}

.footer-payment-carousel {
  position: relative;
  height: 44px;
  overflow: hidden;
}

.payment-carousel-track {
  display: flex;
  gap: 12px;
  transition: opacity 0.5s ease;
}

.footer-payment-img {
  width: 40px;
  height: 28px;
  object-fit: contain;
  border-radius: 4px;
  transition: opacity 0.4s ease;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1000px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-copyright {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
}

.footer-links-bottom {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-links-bottom a {
  color: rgba(255,255,255,0.5);
  font-size: 12px;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links-bottom a:hover { color: #fff; }
.footer-links-bottom .dot { color: rgba(255,255,255,0.25); font-size: 10px; }

.live-support-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2196F3, #1976D2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 16px rgba(33,150,243,0.4);
  text-decoration: none;
  transition: all 0.3s ease;
}

.live-support-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(33,150,243,0.5);
}

.side-menu {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  max-width: 85vw;
  height: 100%;
  background: var(--bg-surface);
  z-index: 1000;
  transition: right 0.4s cubic-bezier(0.32, 0.72, 0, 1), background 0.35s;
  display: flex;
  flex-direction: column;
  box-shadow: -12px 0 48px rgba(0,0,0,0.12);
  border-left: 1px solid var(--border);
}

[data-theme="dark"] .side-menu {
  box-shadow: -12px 0 48px rgba(0,0,0,0.5);
}

.side-menu.open { right: 0; }

.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.25);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s ease;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

[data-theme="dark"] .menu-overlay {
  background: rgba(0,0,0,0.55);
}

.menu-overlay.open {
  opacity: 1;
  visibility: visible;
}

.menu-header {
  display: flex;
  align-items: center;
  padding: 20px;
  gap: 14px;
  background: var(--gradient-sky);
  position: relative;
  overflow: hidden;
}

.menu-header::after {
  content: '';
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 80px;
  height: 80px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
}

.menu-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: contain;
  background: rgba(255,255,255,0.2);
  padding: 4px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
}

.menu-title {
  font-size: 18px;
  font-weight: 800;
  color: white;
  flex: 1;
  letter-spacing: -0.3px;
}

.close-menu {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.15);
  color: white;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
}

.close-menu:hover {
  background: rgba(255,255,255,0.3);
  transform: rotate(90deg);
}

.menu-nav {
  flex: 1;
  padding: 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  border-radius: var(--radius-sm);
  position: relative;
}

.menu-item:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.menu-item.active {
  background: var(--accent);
  color: white;
  font-weight: 600;
  box-shadow: 0 4px 14px var(--accent-glow);
}

.menu-item i {
  width: 20px;
  text-align: center;
  font-size: 15px;
}

.menu-item.active i {
  color: white;
}

.menu-divider {
  height: 1px;
  background: var(--border);
  margin: 6px 16px;
}

.menu-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  text-align: center;
  background: var(--bg-surface-2);
  transition: background 0.35s;
}

.menu-footer p {
  font-size: 11px;
  color: var(--text-muted);
}

.menu-links {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.menu-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 11px;
  transition: color 0.2s;
}

.menu-links a:hover {
  color: var(--accent);
}

.menu-links span {
  margin: 0 4px;
  color: var(--text-muted);
  font-size: 10px;
}

.order-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(6px);
  padding: 20px;
}

[data-theme="dark"] .order-modal {
  background: rgba(0,0,0,0.65);
}

.order-modal.open {
  opacity: 1;
  visibility: visible;
}

.order-modal-content {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 400px;
  overflow: hidden;
  animation: modalSlide 0.35s ease;
  transition: background 0.35s, border-color 0.35s;
}

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

.order-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  background: var(--gradient-sky);
  color: white;
}

.order-modal-header h3 {
  font-size: 17px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.close-modal {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: none;
  background: rgba(255,255,255,0.2);
  color: white;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
}

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

.order-modal-body {
  padding: 22px;
}

.order-modal-body .form-group {
  margin-bottom: 18px;
}

.order-modal-body .form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  transition: color 0.35s;
}

.order-modal-body .form-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  background: var(--bg-surface-2);
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.order-modal-body .form-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.check-order-btn {
  width: 100%;
  padding: 14px;
  background: var(--gradient-sky);
  border: none;
  border-radius: var(--radius-sm);
  color: white;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px var(--accent-glow);
}

.check-order-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--accent-glow);
}

.order-result {
  margin-top: 18px;
}

.order-loading {
  text-align: center;
  padding: 18px;
  color: var(--text-muted);
  font-size: 14px;
}

.order-error {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #DC2626;
  padding: 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
}

[data-theme="dark"] .order-error {
  background: rgba(239, 68, 68, 0.12);
  color: #FCA5A5;
}

.order-found {
  background: var(--bg-surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: background 0.35s, border-color 0.35s;
}

.order-found .order-header {
  background: rgba(16, 185, 129, 0.1);
  border-bottom: 1px solid rgba(16, 185, 129, 0.15);
  color: #059669;
  padding: 12px 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

[data-theme="dark"] .order-found .order-header {
  color: #6EE7B7;
}

.order-details { padding: 14px; }

.order-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.order-row:last-child { border-bottom: none; }
.order-row span:first-child { color: var(--text-muted); }
.order-row strong { color: var(--text-primary); transition: color 0.35s; }

.order-status {
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

.status-success {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
}

[data-theme="dark"] .status-success { color: #6EE7B7; }

.status-pending {
  background: rgba(245, 158, 11, 0.1);
  color: #D97706;
}

[data-theme="dark"] .status-pending { color: #FCD34D; }

.status-failed {
  background: rgba(239, 68, 68, 0.1);
  color: #DC2626;
}

[data-theme="dark"] .status-failed { color: #FCA5A5; }

.contact-fab {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.contact-main-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: var(--gradient-sky);
  color: white;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 4px 18px var(--accent-glow);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-main-btn:hover { transform: scale(1.1); }

.contact-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transform: translateY(20px) scale(0.8);
  pointer-events: none;
  transition: all 0.3s ease;
}

.contact-fab.open .contact-options {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.contact-option {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  text-decoration: none;
  transition: transform 0.2s;
}

.contact-option:hover { transform: scale(1.15); }

.contact-option.telegram {
  background: linear-gradient(135deg, #0088cc, #00aaff);
  box-shadow: 0 3px 10px rgba(0,136,204,0.35);
}

.contact-option.facebook {
  background: linear-gradient(135deg, #1877F2, #42a5f5);
  box-shadow: 0 3px 10px rgba(24,119,242,0.35);
}

@media (max-width: 400px) {
  .games-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .game-name { font-size: 10px; }
  .game-dev { font-size: 8px; }
  .topup-btn { font-size: 8px; padding: 3px 10px; }
  .game-info { padding: 6px 4px; }
}

@media (max-width: 600px) {
  .footer-top { flex-direction: column; gap: 28px; }
  .footer-brand-col, .footer-mid-col, .footer-payment-col { min-width: 100%; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (min-width: 768px) {
  .footer-inner { padding: 48px 32px 0; }
}

@media (min-width: 1024px) {
  .footer-inner { padding: 52px 48px 0; }
}
