/* =====================================================
   TECHWIN Landing (Lobby Style)
   Based on test.php layout, refactored to use theme variables.
   ===================================================== */

:root {
  --max: 1260px;
  --radius: 18px;
  --radius2: 14px;
  --shadow: var(--shadow-lg);
  --shadow2: var(--shadow-md);
  --bottom-bar-h: 72px;

  /* Provider grid: show exactly 5 rows */
  --provider-visible-rows: 5;
  --provider-row-h: 78px;
  --provider-grid-gap: 10px;
}

* {
  box-sizing: border-box
}

html,
body {
  height: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: 'Kanit', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color: var(--text-primary);
  background:
    radial-gradient(1100px 600px at 18% 8%, color-mix(in srgb, var(--secondary) 35%, transparent), transparent 55%),
    radial-gradient(1000px 560px at 82% 14%, color-mix(in srgb, var(--primary) 35%, transparent), transparent 55%),
    linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-primary) 100%);
  overflow-x: hidden;
}

/* When dashboard height is fitted to viewport, lock page scroll
   so scrolling happens only inside sidebar/category list and provider grid. */
body.tw-lock-scroll {
  /* NOTE: iOS Safari can break inner overflow scrolling when body is overflow:hidden.
     Keep body scroll enabled; the page should not grow because dash height is constrained.
     This still prevents scroll-chain/bounce in modern browsers via overscroll behavior. */
  overflow-y: auto;
  overscroll-behavior-y: none;
}

a {
  color: inherit;
  text-decoration: none
}

button {
  font: inherit
}

/* Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 120;
  background: var(--bg-card);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.topbar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: nowrap;
}

.topbar-inner .brand {
  min-width: 0;
}

.topbar-inner .actions {
  margin-left: auto;
  justify-content: flex-end;
}

/* Topbar Navigation (Tablet/Desktop Only) */
.topbar-nav {
  display: none;
  /* Hidden by default (mobile first) */
}

@media (min-width: 768px) {
  .topbar-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    justify-content: center;
  }

  .topbar-nav-item {
    padding: 8px 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.18s ease;
    white-space: nowrap;
  }

  .topbar-nav-item:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
  }

  .topbar-nav-item.active {
    background: linear-gradient(180deg, color-mix(in srgb, var(--primary) 60%, transparent), color-mix(in srgb, var(--secondary) 40%, transparent));
    border-color: color-mix(in srgb, var(--primary) 50%, transparent);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  }

  /* Hide bottom navigation on tablet/desktop */
  .bottom-nav {
    display: none !important;
  }
}

/* Smaller topbar buttons */
.topbar-inner .actions .btn {
  padding: 8px 12px;
  font-size: 13px;
}

/* Balance pill (logged-in) */
.balance-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  font-weight: 1000;
  white-space: nowrap;
}

.balance-pill .bal-text {
  letter-spacing: 0.2px;
}

/* Bottom Navigation (Mobile) - match member pages */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  padding: 8px 0;
  padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  background: var(--bg-card);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
  z-index: 100;
}

@media (min-width: 769px) {
  .bottom-nav {
    display: none !important;
  }
}

.nav-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 10px;
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.nav-item .nav-icon {
  font-size: 20px;
  transition: transform 0.2s ease;
}

.nav-item.active .nav-icon {
  transform: scale(1.2);
}

.nav-item.active,
.nav-item:hover {
  color: var(--primary);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: .2px;
}

.logo {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: var(--gradient-main);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-title {
  font-size: 16px;
  font-weight: 1000;
  background: var(--gradient-text);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-subtitle {
  font-size: 12px;
  color: var(--text-secondary);
}

.actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.10)
}

.btn.primary {
  border-color: color-mix(in srgb, var(--primary) 45%, transparent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--primary) 28%, transparent), color-mix(in srgb, var(--primary) 16%, transparent));
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 18px calc(var(--bottom-bar-h) + 16px + env(safe-area-inset-bottom, 0px));
  position: relative;
  z-index: 1;
}

/* Marquee */
.marquee {
  margin-top: 12px;
  border-radius: calc(var(--radius2) + 4px);
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: var(--bg-card);
  box-shadow: var(--shadow2);
  overflow: hidden;
}

.marquee-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
}

.marquee-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, color-mix(in srgb, var(--secondary) 22%, transparent), color-mix(in srgb, var(--secondary) 10%, transparent));
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.marquee-text {
  flex: 1;
  color: var(--text-secondary);
  font-weight: 800;
  position: relative;
  overflow: hidden;
}

.marquee-track {
  display: inline-block;
  white-space: nowrap;
  will-change: transform;
  animation: tw-marquee 18s linear infinite;
}

@keyframes tw-marquee {
  0% {
    transform: translateX(100%);
  }

  100% {
    transform: translateX(-100%);
  }
}

/* Dashboard layout - Modern Clean Design */
.dash {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 6px;
  align-items: stretch;
  height: var(--dash-h, auto);
}

/* Sidebar - Clean Vertical Strip */
.sidebar {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg,
      rgba(15, 23, 42, 0.95) 0%,
      rgba(30, 41, 59, 0.9) 100%);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  padding: 6px 4px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

#categoryList {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 4px;
  flex: 1;
  align-items: center;
}

/* Category Buttons - Clean Icon Style */
.cat-btn {
  width: 78px;
  height: 60px;
  padding: 6px 4px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 9px;
  cursor: pointer;
  overflow: visible;
  position: relative;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.cat-btn:hover,
.cat-btn.active {
  background: linear-gradient(135deg,
      rgba(139, 92, 246, 0.2) 0%,
      rgba(59, 130, 246, 0.15) 100%);
  border-color: rgba(139, 92, 246, 0.4);
  color: #fff;
  transform: scale(1.05);
}

.cat-btn.active {
  background: linear-gradient(135deg,
      rgba(139, 92, 246, 0.35) 0%,
      rgba(59, 130, 246, 0.25) 100%);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

.cat-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  height: 100%;
}

/* Icon Container */
.cat-pic {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(135deg,
      rgba(139, 92, 246, 0.15) 0%,
      rgba(59, 130, 246, 0.1) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.cat-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.cat-btn:hover .cat-pic img {
  transform: scale(1.1);
}

/* Category Label */
.cat-label {
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
  max-width: 100%;
  color: inherit;
  opacity: 0.9;
}

/* Make ALL look polished even without an image */
.cat-btn[data-cat="all"] .cat-pic {
  background: linear-gradient(135deg,
      rgba(139, 92, 246, 0.4),
      rgba(59, 130, 246, 0.3));
}

.dash-main {
  border-radius: calc(var(--radius2) + 4px);
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: var(--bg-card);
  box-shadow: var(--shadow2);
  padding: 0px;
  display: flex;
  flex-direction: column;
  align-self: stretch;
  height: 100%;
  min-height: 0;
  /* Main panel does NOT scroll; only the provider grid does */
  overflow: hidden;
}

.provider-title {
  font-weight: 1000;
  letter-spacing: .4px;
  text-align: center;
  margin: 6px 0 12px;
}

.provider-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  /* No grid-auto-rows - cards will size themselves */
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  min-height: 0;
  max-height: 70vh;
  padding-right: 4px;
}

/* Prevent grid container from forcing page scroll in CSS grid */
.dash {
  min-height: 0;
  overflow: hidden;
}

.provider-card {
  position: relative;
  width: 100%;
  /* Square using padding trick */
  padding-bottom: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: #0f172a;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.provider-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      rgba(139, 92, 246, 0.08),
      rgba(59, 130, 246, 0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.provider-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(139, 92, 246, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.provider-card:hover::before {
  opacity: 1;
}

.provider-card>div:not(.maintenance-badge) {
  /* Absolute position fills the square container */
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: stretch !important;
  gap: 0 !important;
  padding: 0 !important;
}

.provider-logo {
  width: 100%;
  height: 100%;
  flex: 1;
  border-radius: 12px;
  background: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 0;
  font-size: 42px;
}

.provider-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  padding: 0;
}

.provider-name {
  display: none;
}

/* When provider has a real logo, fill completely */
.provider-card.has-logo .provider-logo {
  background: transparent;
  border-radius: 0;
}

/* Bottom bar */
.bottombar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  backdrop-filter: blur(16px);
  background: linear-gradient(90deg, color-mix(in srgb, var(--secondary) 14%, transparent), color-mix(in srgb, var(--primary) 12%, transparent));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  height: var(--bottom-bar-h);
}

.bottombar-inner {
  height: 100%;
  align-content: center;
}

.bottombar-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  padding: 10px 12px;
}

.bb-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 6px;
  border-radius: 14px;
  font-weight: 900;
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.06);
  transition: transform .15s ease, background .15s ease;
}

.bb-item:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.10)
}

.bb-item.active {
  border-color: color-mix(in srgb, var(--primary) 45%, transparent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--primary) 26%, transparent), color-mix(in srgb, var(--primary) 14%, transparent));
}

/* Modal (modern open/close: fade + slide + scale) */
.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: block;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .22s ease, visibility 0s linear .22s;
}

.modal.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity .22s ease;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity .22s ease;
}

.modal.show .modal-backdrop {
  opacity: 1;
}

.modal-panel {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) translateY(16px) scale(0.98);
  opacity: 0;
  width: min(560px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  /* Hide scrollbar but allow scrolling */
  overflow-y: auto;
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE 10+ */
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: color-mix(in srgb, var(--bg-card) 92%, black);
  box-shadow: var(--shadow-lg);
  transition: transform .26s cubic-bezier(.2, .9, .2, 1), opacity .22s ease;
  will-change: transform, opacity;
}

.modal-panel::-webkit-scrollbar {
  display: none;
  /* Chrome/Safari/Webkit */
}

.modal-panel::before {
  content: "";
  position: absolute;
  inset: -2px;
  pointer-events: none;
  background:
    radial-gradient(820px 420px at 84% 14%, color-mix(in srgb, var(--primary) 18%, transparent), transparent 60%),
    radial-gradient(720px 380px at 12% 4%, color-mix(in srgb, var(--secondary) 16%, transparent), transparent 60%);
  opacity: .9;
}

.modal-panel>* {
  position: relative;
}

.modal.show .modal-panel {
  transform: translate(-50%, -50%) translateY(0) scale(1);
  opacity: 1;
}

.modal.closing .modal-panel {
  transform: translate(-50%, -50%) translateY(12px) scale(0.98);
  opacity: 0;
}

.modal.closing .modal-backdrop {
  opacity: 0;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.modal-tabs {
  display: flex;
  gap: 8px;
}

.mtab {
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  font-weight: 900;
  cursor: pointer;
}

.mtab.active {
  border-color: color-mix(in srgb, var(--secondary) 45%, transparent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--secondary) 24%, transparent), color-mix(in srgb, var(--secondary) 12%, transparent));
}

.mclose {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.modal-body {
  padding: 14px;
}

.mform {
  display: grid;
  gap: 10px;
}

.mlabel {
  font-weight: 900;
  color: var(--text-secondary);
  font-size: 13px;
}

.minput {
  width: 100%;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.minput:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--primary) 40%, rgba(255, 255, 255, 0.12));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 16%, transparent);
}

.mgrid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mbtn {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  font-weight: 1000;
  cursor: pointer;
}

.mbtn.primary {
  border-color: color-mix(in srgb, var(--primary) 45%, transparent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--primary) 26%, transparent), color-mix(in srgb, var(--primary) 14%, transparent));
}

@media (prefers-reduced-motion: reduce) {

  .modal,
  .modal-backdrop,
  .modal-panel {
    transition: none !important;
  }
}

@media (max-width: 720px) {
  .dash {
    grid-template-columns: 106px 1fr;
  }

  .provider-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Desktop: wider screens get more columns */
@media (min-width: 769px) {
  .dash {
    grid-template-columns: 120px 1fr;
  }

  .provider-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    /* 3 rows for desktop */
    max-height: 80vh;
  }

  .provider-card {
    border-radius: 16px;
  }
}

@media (min-width: 1024px) {
  .dash {
    grid-template-columns: 140px 1fr;
  }

  .provider-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    /* 3 rows for desktop */
    max-height: 75vh;
  }

  .cat-btn {
    height: 100px;
  }
}

@media (min-width: 1280px) {
  .provider-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
    /* 3 rows for large desktop */
    max-height: 70vh;
  }
}

@media (max-width: 520px) {
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .dash {
    grid-template-columns: 46px 1fr;
    gap: 6px;
  }

  .topbar-inner {
    padding: 10px 12px;
  }

  .topbar-inner {
    gap: 10px;
  }

  .brand-subtitle {
    display: none;
  }

  .topbar-inner .actions {
    gap: 8px;
  }

  .topbar-inner .actions .btn {
    padding: 7px 10px;
    font-size: 12px;
  }

  .balance-pill {
    padding: 7px 10px;
    font-size: 12px;
  }

  .banner {
    margin-top: 10px;
  }

  .banner-bg {
    height: 110px;
  }

  .marquee {
    margin-top: 8px;
  }

  .marquee-inner {
    padding: 8px 10px;
  }

  .marquee-icon {
    width: 30px;
    height: 30px;
    border-radius: 11px;
  }

  .mgrid2 {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  /* keep bottom-nav compact on very small screens */
  .nav-item {
    padding: 8px 12px;
  }
}

/* Quick menu */
.quick-menu {
  margin-top: 10px;
}

.quick-menu-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

@media (min-width: 1024px) {
  .quick-menu-grid {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    gap: 16px;
  }
}

.qbtn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--bg-card);
  color: var(--text-primary);
  border-radius: 16px;
  padding: 12px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
  position: relative;
  overflow: hidden;
}

.qbtn::before {
  content: "";
  position: absolute;
  inset: -1px;
  background:
    radial-gradient(380px 200px at 18% 40%, color-mix(in srgb, var(--primary) 14%, transparent), transparent 60%),
    radial-gradient(420px 220px at 84% 46%, color-mix(in srgb, var(--secondary) 14%, transparent), transparent 60%);
  pointer-events: none;
}

.qbtn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.18);
  background: var(--bg-elevated);
}

.qbtn:active {
  transform: translateY(0px) scale(0.99);
}

.qicon {
  position: relative;
  z-index: 1;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.qlabel {
  position: relative;
  z-index: 1;
  font-weight: 900;
  letter-spacing: -.2px;
  font-size: 14px;
}

@media (max-width: 420px) {
  .quick-menu-grid {
    gap: 8px;
  }

  .qbtn {
    padding: 10px 8px;
    border-radius: 14px;
  }

  .qicon {
    width: 32px;
    height: 32px;
    border-radius: 11px;
  }

  .qlabel {
    font-size: 13px;
  }
}

/* Banner - Premium Glassmorphism + Glow + Fade */
.banner {
  margin-top: 14px;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  /* Glassmorphism base */
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  /* Animated glow border */
  border: 2px solid transparent;
  background-clip: padding-box;
  box-shadow:
    0 0 40px rgba(59, 130, 246, 0.15),
    0 0 80px rgba(139, 92, 246, 0.1),
    0 20px 60px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Glow border effect */
.banner::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 26px;
  padding: 2px;
  background: linear-gradient(135deg,
      rgba(59, 130, 246, 0.5),
      rgba(139, 92, 246, 0.3),
      rgba(236, 72, 153, 0.3),
      rgba(59, 130, 246, 0.5));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
  animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {

  0%,
  100% {
    opacity: 0.6;
  }

  50% {
    opacity: 1;
  }
}

/* Inner glow overlay */
.banner::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 22px;
  background:
    radial-gradient(ellipse 60% 40% at 20% 0%, rgba(59, 130, 246, 0.15), transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(139, 92, 246, 0.12), transparent 50%);
  pointer-events: none;
  z-index: 1;
}

.banner-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* Fade transition - stack slides on top */
.banner-track {
  position: relative;
  width: 100%;
}

.banner-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  z-index: 0;
}

.banner-slide.active {
  position: relative;
  opacity: 1;
  z-index: 1;
}

.banner-bg {
  width: 100%;
  /* 3:1 aspect ratio for wide banners (1024x340) */
  aspect-ratio: 3 / 1;
  background: var(--bg-elevated);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 22px;
}

/* Fallback for browsers without aspect-ratio support */
@supports not (aspect-ratio: 3 / 1) {
  .banner-bg {
    height: 0;
    padding-bottom: 33.33%;
  }
}

/* Mobile responsive */
@media (max-width: 640px) {
  .banner {
    margin-top: 10px;
    border-radius: 18px;
  }

  .banner::before {
    border-radius: 20px;
  }

  .banner::after {
    border-radius: 16px;
  }

  .banner-bg {
    aspect-ratio: 2.5 / 1;
    border-radius: 16px;
  }

  @supports not (aspect-ratio: 2.5 / 1) {
    .banner-bg {
      padding-bottom: 40%;
    }
  }
}

.banner-nav {
  position: absolute;
  inset: auto 16px 16px 16px;
  z-index: 5;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}

.banner-arrows {
  display: flex;
  gap: 8px;
  pointer-events: auto;
}

.banner-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.4) 100%);
  border-radius: 22px;
}

.banner-cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Hero */
.hero {
  position: relative;
  margin-top: 16px;
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--bg-card);
  min-height: 420px;
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(860px 460px at 18% 36%, color-mix(in srgb, var(--secondary) 18%, transparent), transparent 60%),
    radial-gradient(760px 420px at 88% 45%, color-mix(in srgb, var(--primary) 18%, transparent), transparent 55%);
  pointer-events: none;
  z-index: 1;
}

.hero-track {
  display: flex;
  transition: transform .45s cubic-bezier(.2, .8, .2, 1);
  will-change: transform;
  transform: translateZ(0);
}

.hero-slide {
  position: relative;
  min-width: 100%;
  height: 420px;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(1.08) contrast(1.05);
  transform: scale(1.05);
  z-index: 0;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.10) 0%, rgba(0, 0, 0, 0.86) 100%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 26px 26px 22px;
  max-width: 760px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  /* No overlays/masks over the image itself */
}

/* =========================================
   NAVIGATION (Unobstructed)
   ========================================= */

/* ARROWS: Hidden by default, show on hover */
.banner-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%) scale(0.9);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  /* Hidden */
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 20;
  font-size: 20px;
}

.banner-slider:hover .banner-arrow {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

.banner-arrow:hover {
  background: rgba(255, 255, 255, 0.9);
  color: #000;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

.banner-arrow.prev {
  left: 16px;
}

.banner-arrow.next {
  right: 16px;
}

/* DOTS: Minimal, bottom centered */
.dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 20;
  pointer-events: none;
  /* Let clicks pass through context */
}

.dotbtn {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  border-radius: 4px;
  /* Pill shape for active */
  transition: all 0.3s ease;
  cursor: pointer;
  pointer-events: auto;
  /* Re-enable pointer for dots */
}

.dotbtn.active {
  width: 24px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.dotbtn:hover {
  background: rgba(255, 255, 255, 0.8);
}

/* Mobile Adjustments */
@media (max-width: 640px) {
  .banner-slider {
    border-radius: 12px;
    /* Aspect ratio fallback for very small screens if needed, 
       but 3:1 is usually fine or we could go 2:1 */
  }

  .banner {
    padding: 0 12px;
  }

  .banner-arrow {
    display: none;
    /* Hide arrows on mobile, rely on swipe/auto */
  }
}

/* Rows */
.rows {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.row-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin: 0 2px 10px;
}

.row-title {
  font-weight: 1000;
  letter-spacing: -.3px;
  margin: 0;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.row-title small {
  color: rgba(255, 255, 255, .65);
  font-weight: 800
}

.row-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.provider-select {
  height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--bg-card);
  color: var(--text-primary);
  outline: none;
  min-width: 160px;
  appearance: none;
  -webkit-appearance: none;
}

.provider-select:focus {
  border-color: color-mix(in srgb, var(--secondary) 40%, rgba(255, 255, 255, 0.12));
}

.provider-select option {
  background: var(--bg-primary);
  color: var(--text-primary);
}

.row-wrap {
  position: relative
}

.rail {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  padding: 14px 8px 16px;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
  -webkit-overflow-scrolling: touch;
  will-change: scroll-position;
}

.rail:active {
  cursor: grabbing
}

.rail.dragging {
  scroll-behavior: auto;
  cursor: grabbing;
}

.rail::-webkit-scrollbar {
  display: none
}

.rail:focus {
  outline: none
}

.rail-inner {
  display: flex;
  gap: 12px;
  width: max-content;
  padding-right: 12px;
}

.rail-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 46px;
  height: 68px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
  color: var(--text-primary);
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow2);
  transition: transform .15s ease, background .15s ease, opacity .15s ease;
  opacity: 0;
}

.row-wrap:hover .rail-nav {
  opacity: 1
}

.rail-nav:hover {
  transform: translateY(-50%) scale(1.03);
  background: rgba(0, 0, 0, 0.42)
}

.rail-nav.left {
  left: -8px
}

.rail-nav.right {
  right: -8px
}

/* Game Card */
.card {
  width: clamp(160px, 44vw, 190px);
  flex: 0 0 auto;
  border-radius: var(--radius2);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  position: relative;
  transform-origin: center;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .32);
}

.thumb {
  width: 100%;
  aspect-ratio: 3/4;
  background: rgba(255, 255, 255, 0.06);
  background-size: cover;
  background-position: center;
}

.meta {
  padding: 10px 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.name {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: -.2px;
  line-height: 1.2;
  min-height: 2.4em;
}

.prov {
  font-size: 11px;
  color: rgba(255, 255, 255, .70);
  display: flex;
  align-items: center;
  gap: 8px;
}

.rtp {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: rgba(255, 255, 255, .84);
  font-weight: 900;
  letter-spacing: -.1px;
}

.rtpbar {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.rtpfill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  transition: width .35s ease;
}

.rtpfill.high {
  background: color-mix(in srgb, var(--accent-green, var(--secondary)) 80%, transparent);
  box-shadow: 0 0 16px color-mix(in srgb, var(--accent-green, var(--secondary)) 40%, transparent);
}

.rtpfill.mid {
  background: color-mix(in srgb, var(--accent-amber, color-mix(in srgb, var(--primary) 55%, var(--secondary) 45%)) 80%, transparent);
  box-shadow: 0 0 16px color-mix(in srgb, var(--accent-amber, color-mix(in srgb, var(--primary) 55%, var(--secondary) 45%)) 40%, transparent);
}

.rtpfill.low {
  background: color-mix(in srgb, var(--accent-red, var(--primary)) 80%, transparent);
  box-shadow: 0 0 16px color-mix(in srgb, var(--accent-red, var(--primary)) 40%, transparent);
}

.rtplabel {
  min-width: 86px;
  text-align: right;
  color: rgba(255, 255, 255, .90);
}

.tag {
  padding: 3px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--secondary) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--secondary) 20%, transparent);
  color: rgba(255, 255, 255, .86);
  font-weight: 800;
}

.card:hover {
  transform: translateY(-3px) scale(1.10);
  border-color: color-mix(in srgb, var(--secondary) 35%, transparent);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .55);
  z-index: 5;
}

.hover {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, .92) 100%);
  opacity: 0;
  transition: opacity .18s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 12px;
  gap: 10px;
}

.card:hover .hover {
  opacity: 1
}

.hover .btnrow {
  display: flex;
  gap: 10px;
  align-items: center
}

.play {
  flex: 1;
  border: none;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  color: var(--text-primary);
  font-weight: 1000;
  letter-spacing: .2px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--primary) 40%, transparent), color-mix(in srgb, var(--primary) 18%, transparent));
  border: 1px solid color-mix(in srgb, var(--primary) 40%, transparent);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .45);
  transition: transform .15s ease;
}

.play:hover {
  transform: translateY(-1px)
}

.info {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  cursor: pointer;
  display: grid;
  place-items: center;
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 18px;
  z-index: 90;
  display: none;
  background: rgba(0, 0, 0, .45);
  border: 1px solid rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .92);
  padding: 10px 12px;
  border-radius: 999px;
  box-shadow: var(--shadow2);
  backdrop-filter: blur(12px);
  font-size: 13px;
}

.toast.show {
  display: inline-flex
}

@media (max-width: 860px) {
  .hero-title {
    font-size: 32px
  }

  .hero {
    min-height: 380px
  }

  .hero-slide {
    height: 380px
  }
}

@media (max-width: 560px) {
  .brand-subtitle {
    display: none
  }

  .hero {
    border-radius: 18px
  }

  .hero-title {
    font-size: 28px
  }

  .provider-select {
    min-width: 140px;
    height: 38px;
  }

  .card {
    width: clamp(150px, 48vw, 175px)
  }
}

@media (hover: none) {
  .card:hover {
    transform: none;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .32);
  }

  .card:hover .hover {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {

  .hero-track,
  .rail {
    scroll-behavior: auto
  }

  .card,
  .hero-track {
    transition: none
  }
}

/* Game Grid Internal Scrolling - matches provider grid behavior */
.game-grid-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 4px;
  margin-bottom: 6px;
}

.game-grid-scroller {
  flex: 1;
  min-height: 0;
  width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-right: 4px;
}

/* When provider-grid is in games mode, enforce internal scrolling */
.provider-grid.games-mode {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  height: auto !important;
  max-height: 70vh !important;
  overflow: visible !important;
}

/* Modern Inline Game Grid */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
  padding: 6px 2px;
  width: 100%;
}

.game-card {
  position: relative;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  /* Visible by default */
  opacity: 1;
  min-width: 90px;
  min-height: 90px;
  background: rgba(30, 30, 50, 0.8);
  border-radius: 12px;
}

.game-card:hover {
  transform: scale(1.05);
  z-index: 10;
}

.game-img-wrapper {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 3/4;
  width: 100%;
  min-height: 80px;
  background: linear-gradient(135deg, #2a2a4a, #1a1a2e);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.game-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.game-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  background: linear-gradient(135deg, #3a3a5a, #2a2a4a);
}

.game-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 50%);
  opacity: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 8px;
  transition: opacity 0.3s ease;
}

.game-card-info {
  text-align: center;
}

.game-card-title {
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.2;
}

.game-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

/* Mobile Tweak: 3 Columns */
@media (max-width: 520px) {
  .game-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 6px;
    padding: 6px 8px;
  }

  .game-card-title {
    font-size: 0.7rem;
  }
}

/* Scroll reveal animation */
.game-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
  will-change: opacity, transform;
}

.game-card.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   Modern Banner (1200x400)
   ========================================= */
/* =========================================
   MODERN CLEAN BANNER (Final Design)
   ========================================= */
.banner {
  /* Reset Old Styles */
  margin-top: 0;
  border: none;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;

  /* New Style */
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  z-index: 10;
  padding: 0;
}

/* Kill Old Pseudo-elements */
.banner::before,
.banner::after {
  content: none !important;
  display: none !important;
  animation: none !important;
}

.banner-slider {
  position: relative;
  width: 100%;
  /* Force ratio */
  aspect-ratio: 1200 / 400;
  /* Fallback for older browsers if aspect-ratio fails */
  min-height: 1px;

  border-radius: 16px;
  background: #0f172a;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Fallback for aspect-ratio if not supported */
@supports not (aspect-ratio: 1200 / 400) {
  .banner-slider::before {
    content: "";
    display: block;
    padding-bottom: 33.33%;
  }
}

.banner-slider:hover {
  transform: translateY(-2px);
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.75);
  z-index: 20;
}

.banner-track {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.banner-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  z-index: 0;
  transition: opacity 0.6s ease-in-out;
  pointer-events: none;
  /* Let clicks pass unless active */
}

.banner-slide.active {
  opacity: 1;
  position: absolute;
  /* Keep absolute to prevent reflow */
  z-index: 1;
  pointer-events: auto;
}

.banner-bg {
  width: 100%;
  height: 100%;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}



/* Mobile: Ensure it doesn't get too small or too tall */
@media (max-width: 600px) {
  .banner {
    aspect-ratio: 3/1;
    /* Keep original banner ratio on mobile too */
    margin: 10px auto 20px;
    width: calc(100% - 24px);
    /* Sidebar padding-like */
    border-radius: 16px;
  }
}

.banner-slider {
  width: 100%;
  height: 100%;
  position: relative;
}

/* Smooth Track with cubic-bezier for 'snap' feel */
.banner-track {
  display: flex;
  height: 100%;
  width: 100%;
  will-change: transform;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.banner-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}

/* Image with Ken Burns Effect support */
.banner-bg {
  width: 100%;
  height: 100%;
  /* Show full 1200x400 without cropping */
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  transform: scale(1);
  transition: transform 6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* If slide is active, zoom in slightly */
.banner-slide.active .banner-bg {
  transform: scale(1);
}

/* Glassmorphism Navigation Dots */
.banner-nav {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.dotbtn {
  width: 6px;
  height: 6px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.3, 0, 0.2, 1);
}

.dotbtn.active {
  width: 18px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

/* Navigation Arrows (New) */
.banner-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  transition: all 0.2s ease;
  font-size: 14px;
  user-select: none;
}

.banner-arrow:hover {
  background: rgba(255, 255, 255, 0.9);
  color: #000;
  transform: translateY(-50%) scale(1.1);
}

.banner-prev {
  left: 10px;
}

.banner-next {
  right: 10px;
}

@media (min-width: 768px) {
  .banner-arrow {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }

  .banner-prev {
    left: 24px;
  }

  .banner-next {
    right: 24px;
  }
}

/* =====================================================
   Maintenance Mode - Cute Sign Board Style
   ===================================================== */
.provider-maintenance {
  position: relative;
  cursor: not-allowed !important;
  pointer-events: auto;
}

/* Full overlay with blur effect */
.provider-maintenance::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border-radius: inherit;
  z-index: 10;
}

/* Bottom Strip Maintenance Badge */
.maintenance-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  /* Semi-transparent dark background */
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.9) 100%);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #fbbf24;
  font-size: 8px;
  font-weight: 700;
  padding: 6px 8px;
  border-radius: 0 0 14px 14px;
  z-index: 20;
  text-align: center;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.maintenance-badge::before {
  content: '🔧';
  font-size: 12px;
}

.maintenance-badge-text {
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
  font-size: 6px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

/* Desktop - slightly larger */
@media (min-width: 768px) {
  .maintenance-badge {
    font-size: 11px;
    padding: 8px 12px;
  }

  .maintenance-badge::before {
    font-size: 14px;
  }

  .maintenance-badge-text {
    font-size: 8px;
    padding: 2px 8px;
  }
}

/* =====================================================
   Luxury Banner Slider - Dark Gold Theme
   ===================================================== */

/* Banner section wrapper - prevent overflow */
section.banner {
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

.luxury-banner {
  padding: 12px;
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
  box-sizing: border-box;
}

.luxury-banner-container {
  max-width: 1200px;
  width: calc(100% - 24px);
  margin: 0 auto;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
  aspect-ratio: 3/1;
  background: var(--bg-elevated, #1e1e24);
}

.lux-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
  z-index: 0;
}

.lux-slide.active {
  opacity: 1;
  z-index: 1;
}

.lux-slide img {
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Mobile: Show full banner image without cropping */
@media (max-width: 768px) {
  .luxury-banner {
    padding: 8px;
  }

  .luxury-banner-container {
    width: calc(100% - 16px);
    aspect-ratio: unset !important;
    height: auto !important;
    min-height: 100px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  }

  .lux-slide {
    position: relative !important;
    inset: unset !important;
    display: none;
  }

  .lux-slide.active {
    display: block;
  }

  .lux-slide img {
    width: 100%;
    height: auto !important;
    object-fit: contain !important;
  }
}

@media (max-width: 480px) {
  .luxury-banner {
    padding: 4px;
  }

  .luxury-banner-container {
    width: calc(100% - 8px);
    border-radius: 8px;
  }
}

.lux-slide a {
  display: block;
  width: 100%;
  height: 100%;
}

.lux-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.25), transparent 40%);
  pointer-events: none;
}

.lux-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: all 0.3s;
  z-index: 10;
}

.luxury-banner-container:hover .lux-nav {
  opacity: 1;
}

.lux-nav:hover {
  background: rgba(0, 0, 0, 0.7);
}

.lux-nav.prev {
  left: 12px;
}

.lux-nav.next {
  right: 12px;
}

.lux-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.lux-dot {
  width: 8px;
  height: 6px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  padding: 0;
}

.lux-dot:hover {
  background: rgba(255, 255, 255, 0.5);
}

.lux-dot.active {
  width: 24px;
  background: #facc15;
}