/* Zero808 Frontend Stylesheet - Modern Pink/Dark Portal */
:root {
  --font-primary: #ffffff;
  --font-secondary: #000000;
  --primary: #ff2499;
  --primary-dark: #171319;
  --primary-light: #ff1f9a;
  --primary-medium: #09070a;
  --secondary: #fb83c5;
  --secondary-dark: #d10073;
  --secondary-light: #f4b4d7;
  --secondary-medium: #bf2278;
  --btnPrimary: linear-gradient(180deg, var(--primary), var(--primary-dark));
  --btnSecondary: linear-gradient(180deg, var(--secondary), var(--secondary-dark));
  --su-accent: var(--primary);
}

*, *::before, *::after {
  box-sizing: border-box;
  touch-action: manipulation;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--primary-dark);
  color: var(--font-primary);
  font-family: 'Prompt', 'Roboto', 'Noto Sans Thai', system-ui, -apple-system, sans-serif;
  overflow-x: clip;
  max-width: 100%;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* Custom scrollbar */
::-webkit-scrollbar { height: 4px; width: 4px; border-radius: 10px; }
::-webkit-scrollbar-track { box-shadow: inset 0 0 6px rgba(0,0,0,.3); }
::-webkit-scrollbar-thumb { background: var(--primary-light); border-radius: 10px; }

/* Background */
.z-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  pointer-events: none;
}

.z-bg-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 7, 10, 0.35) 0%, rgba(23, 19, 25, 0.65) 100%);
  z-index: 0;
  pointer-events: none;
}

/* Fixed Header matching zero808-thb.com */
.wrapper-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 100vw;
  z-index: 30;
  background: linear-gradient(180deg, rgba(9, 7, 10, 0.92) 0%, rgba(23, 19, 25, 0.72) 78%, rgba(23, 19, 25, 0) 100%);
}

.wrapper-menu {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
}

@media (min-width: 1024px) {
  .wrapper-menu {
    height: 80px;
    margin: 0 32px;
    padding: 8px 0;
  }
}

.wrapper-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hamburger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--font-primary);
  font-size: 22px;
}

.hamburger-btn:hover { background: rgba(255, 255, 255, 0.12); }

@media (min-width: 1024px) {
  .hamburger-btn { display: none; }
}

.appbar-logo-modern {
  width: 120px;
  max-height: 44px;
  object-fit: contain;
  display: block;
}

@media (min-width: 1024px) {
  .appbar-logo-modern { width: 206px; max-height: 50px; }
}

.wrapper-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-icon-btn img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
  transition: transform 0.2s ease;
}

@media (min-width: 1024px) {
  .search-icon-btn img { width: 52px; height: 52px; }
}

.search-icon-btn:hover img { transform: scale(1.08); }

.wrapper-currency {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13.5px;
  font-weight: 700;
}

.wrapper-currency img {
  width: 20px;
  height: 20px;
}

.lang-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 4px 10px 4px 5px;
  font-size: 12px;
  font-weight: 700;
}

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

.admin-quick-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, var(--primary), var(--secondary-dark));
  color: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(255, 36, 153, 0.35);
}

.mt-container {
  margin: 0 auto;
  max-width: 944px;
  width: 100%;
  padding: 0 12px;
  min-width: 0;
}

/* Category Navigation Strip */
.wrapper-navbar {
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-game-pc {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  overflow-x: auto;
  padding: 4px 0 8px;
}

.menu-game-pc::-webkit-scrollbar { display: none; }

@media (min-width: 1024px) {
  .menu-game-pc { display: flex; }
}

.menu-game-mobile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 12px 8px;
  overflow-x: auto;
  white-space: nowrap;
}

.menu-game-mobile::-webkit-scrollbar { display: none; }

@media (min-width: 1024px) {
  .menu-game-mobile { display: none; }
}

.nav-cat-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  position: relative;
  transition: transform 0.18s ease;
}

.nav-cat-link img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  display: block;
}

@media (min-width: 1024px) {
  .nav-cat-link img { width: 58px; height: 58px; }
}

.nav-cat-link:hover { transform: scale(1.1); }
.nav-cat-link.active img {
  filter: drop-shadow(0 0 10px var(--primary));
  transform: scale(1.08);
}

/* Main Content Area */
.main-stage {
  position: relative;
  z-index: 1;
  padding-top: 142px;
  padding-bottom: 128px;
}

@media (min-width: 1024px) {
  .main-stage {
    padding-top: 156px;
    padding-bottom: 120px;
  }
}

/* Announcement Ticker */
.announcement-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  min-width: 0;
  background: linear-gradient(90deg, rgba(255, 36, 153, 0.28), rgba(23, 19, 25, 0.85));
  border: 1px solid rgba(251, 131, 197, 0.32);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 14px;
  font-size: 13px;
  overflow: hidden;
}

.announcement-badge {
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 9px;
  border-radius: 999px;
  flex-shrink: 0;
}

.announcement-marquee {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}

.announcement-marquee span {
  display: inline-block;
  padding-left: 100%;
  animation: marquee-scroll 22s linear infinite;
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* Modern Bento Grid Hero */
.wrapper-home-modern {
  margin-bottom: 16px;
}

.wrapper-home-modern img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: pointer;
  transition: transform 0.2s ease-in-out;
  border-radius: 12px;
}

.wrapper-home-modern img:hover { transform: scale(1.03); }

.wrapper-container-pc { display: none; width: 100%; }
.wrapper-container-mobile { display: block; width: 100%; }

@media (min-width: 1024px) {
  .wrapper-container-pc { display: block; }
  .wrapper-container-mobile { display: none; }
}

.wrapper-container-pc .parent {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
}

.wrapper-container-pc .div1 {
  width: calc(45% - 5px);
}

.wrapper-container-pc .right-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  width: calc(55% - 5px);
}

.wrapper-container-pc .div6 {
  grid-column: span 2;
}

.wrapper-container-mobile .parent {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 8px;
}

.wrapper-container-mobile .div1 { grid-column: span 6; grid-row: span 2; }
.wrapper-container-mobile .div2 { grid-column: span 6; }
.wrapper-container-mobile .div4 { grid-column: span 6; }
.wrapper-container-mobile .div5 { grid-column: span 5; }
.wrapper-container-mobile .div6 { grid-column: span 7; }
.wrapper-container-mobile .div7 { grid-column: span 12; }

/* Hot Feature Games Section */
.game-category-type5 {
  background: rgba(15, 10, 18, 0.68);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 20px;
}

@media (max-width: 959px) {
  .game-category-type5 { padding: 12px; }
}

.game-category-type5 .header-zone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 14px;
}

.game-category-type5 .header-zone img { height: 42px; width: auto; }
.game-category-type5 .header-zone span { font-size: 24px; font-weight: 700; }

@media (max-width: 959px) {
  .game-category-type5 .header-zone img { height: 32px; }
  .game-category-type5 .header-zone span { font-size: 19px; }
}

.game-category-type5 .categories {
  background: linear-gradient(180deg, var(--primary), var(--primary-dark));
  border-radius: 10px;
  box-shadow: 0 0 8px 1px rgba(0, 0, 0, 0.25);
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 6px 8px;
}

.game-category-type5 .categories::-webkit-scrollbar { height: 0; }

.cat-item {
  flex: 1 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 8px;
  font-size: 12.5px;
  color: var(--font-primary);
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.cat-item img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  border-radius: 6px;
}

.cat-item.active {
  background: linear-gradient(180deg, var(--secondary), var(--secondary-light), var(--secondary));
  color: var(--font-secondary);
  font-weight: 700;
}

/* Game Grid */
.game-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

@media (max-width: 959px) {
  .game-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
}

@media (max-width: 420px) {
  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.game-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #120d16;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(255, 36, 153, 0.28);
}

.game-card__thumb {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #09070a;
}

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

.game-card__badge {
  position: absolute;
  top: 7px;
  left: 7px;
  background: linear-gradient(135deg, var(--primary), var(--secondary-dark));
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  z-index: 2;
}

.game-card__fav {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  z-index: 2;
}

.game-card__fav.is-fav { color: #ff2499; background: rgba(255,255,255,0.92); }

.game-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(9, 7, 10, 0.72);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  opacity: 0;
  transition: opacity 0.18s ease;
  z-index: 1;
}

.game-card:hover .game-card__overlay { opacity: 1; }

.play-pill {
  background: linear-gradient(180deg, var(--secondary), var(--secondary-dark));
  color: #000;
  font-size: 12.5px;
  font-weight: 800;
  padding: 7px 16px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(255, 36, 153, 0.4);
}

.game-card__meta {
  padding: 8px 9px;
  background: rgba(0, 0, 0, 0.55);
}

.game-card__title {
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-card__sub {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--secondary-light);
  opacity: 0.85;
  margin-top: 2px;
}

/* Header Bar (Leaderboard & Section Headers) */
.header-bar {
  border-radius: 8px 0 0 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: 44px;
  padding: 0 12px;
  position: relative;
  margin-bottom: 12px;
  background-image: linear-gradient(90deg, var(--secondary) 0, rgba(185, 11, 15, 0) 87.54%);
}

.header-bar::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 10px;
  right: 0;
  height: 1px;
  background-image: linear-gradient(90deg, var(--secondary) 0, rgba(185, 11, 15, 0) 87.54%);
}

.header-bar h1, .header-bar h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: var(--font-primary);
}

.header-bar__btn {
  background: linear-gradient(90deg, var(--secondary-dark), var(--secondary-light));
  border: 1px solid var(--secondary-light);
  border-radius: 10px;
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  padding: 5px 12px;
}

/* Leaderboard */
.leader-board {
  background: linear-gradient(182deg, var(--primary) -3.55%, var(--secondary) 102.8%);
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 22px;
}

.leader-board-container {
  background: rgba(15, 10, 18, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
}

.leader-board-header,
.leader-board-row {
  display: grid;
  grid-template-columns: 56px 2fr 1.5fr 1fr 1fr 1.2fr 64px;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-size: 13.5px;
}

.leader-board-header {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.85);
  font-weight: 700;
  font-size: 12.5px;
}

.leader-board-row:nth-child(even) {
  background: rgba(0, 0, 0, 0.22);
}

@media (max-width: 760px) {
  .leader-board-header,
  .leader-board-row {
    grid-template-columns: 42px 1.4fr 1fr 48px;
    font-size: 12px;
    padding: 8px 10px;
  }
  .lb-hide-sm { display: none; }
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-weight: 800;
  font-size: 12.5px;
  background: rgba(255, 255, 255, 0.12);
}

.rank-1 { background: linear-gradient(135deg, #ffd700, #f59e0b); color: #000; }
.rank-2 { background: linear-gradient(135deg, #e5e7eb, #9ca3af); color: #000; }
.rank-3 { background: linear-gradient(135deg, #f59e0b, #b45309); color: #fff; }

.replay-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 36, 153, 0.25);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.replay-btn:hover { background: var(--primary); }

/* Big Win Ticker */
.title-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.title-header .text {
  font-size: 22px;
  font-weight: 700;
}

.dot {
  position: relative;
  width: 12px;
  height: 12px;
}

.dot::before, .dot::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff4200;
}

.dot::after {
  animation: ripple-dot 1.5s ease infinite;
}

@keyframes ripple-dot {
  0% { opacity: 0.75; transform: scale(1); }
  100% { opacity: 0; transform: scale(2.8); }
}

.bigwin-wrapper {
  overflow: hidden;
  padding: 4px 0 8px;
}

.bigwin-track {
  display: flex;
  gap: 10px;
  width: max-content;
  animation: bigwin-scroll 38s linear infinite;
}

.bigwin-track:hover { animation-play-state: paused; }

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

.bigwin-card {
  width: 118px;
  flex-shrink: 0;
  background: var(--secondary-dark);
  border-radius: 12px;
  padding: 7px;
  position: relative;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 16px rgba(255, 36, 153, 0.22);
}

.bigwin-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.bigwin-card__user {
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  margin-top: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bigwin-card__profit {
  font-size: 12.5px;
  font-weight: 800;
  text-align: center;
  color: #ffe836;
}

/* Sticky Frosted Glass Bottom Bar */
.wrapper-modern-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 100vw;
  z-index: 25;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.28);
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 26px 26px 0 0;
  padding: 8px 12px;
}

@media (min-width: 1024px) {
  .wrapper-modern-footer {
    max-width: 944px;
    margin: 0 auto;
    height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
  }
}

.wrapper-auth-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

@media (max-width: 1023px) {
  .wrapper-auth-action { margin-bottom: 6px; }
  .wrapper-auth-action .modern-button { flex: 1; min-width: 0; padding: 6px 12px; font-size: 13.5px; }
}

.modern-button {
  background-image: linear-gradient(90deg, var(--secondary), var(--secondary-dark));
  border-radius: 999px;
  color: var(--font-secondary);
  min-width: 132px;
  padding: 7px 18px;
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 900;
  font-size: 15px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.modern-button::before {
  content: "";
  position: absolute;
  inset: 2.5px;
  border-radius: 999px;
  background-image: linear-gradient(180deg, var(--secondary), var(--secondary-dark));
  z-index: 0;
  transition: opacity 0.25s;
}

.modern-button:hover::before { opacity: 0.72; }
.modern-button span, .modern-button i { position: relative; z-index: 1; color: #000; }

.wrapper-modern-menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.wrapper-modern-menu a,
.wrapper-modern-menu button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.wrapper-modern-menu img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  transition: transform 0.2s ease;
}

@media (min-width: 1024px) {
  .wrapper-modern-menu img { width: 58px; height: 58px; }
}

.wrapper-modern-menu img:hover { transform: scale(1.12); }

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  background: var(--primary-dark);
  z-index: 80;
  transform: translateX(-100%);
  transition: transform 0.24s ease;
  padding: 16px;
  overflow-y: auto;
}

.mobile-drawer.open { transform: translateX(0); }

.mobile-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.mobile-drawer__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 22px;
  text-align: center;
}

.mobile-drawer__item img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.mobile-drawer__item div {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
}

/* Modals matching .su-dialog */
.z-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.z-modal-backdrop.open { display: flex; }

.su-dialog {
  width: 100%;
  max-width: 480px;
  max-height: 92vh;
  overflow-y: auto;
  background: #fff;
  color: #111;
  border-radius: 20px;
  padding: 22px 26px 24px;
  position: relative;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.su-dialog--wide { max-width: 760px; }
.su-dialog--dark {
  background: var(--primary-dark);
  color: #fff;
  border: 1px solid rgba(255, 36, 153, 0.35);
}

.su-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid #ececf0;
}

.su-dialog--dark .su-header { border-bottom-color: rgba(255, 255, 255, 0.12); }

.su-title-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 36, 153, 0.14);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.su-title { margin: 0; font-size: 18px; font-weight: 800; }
.su-subtitle { margin: 2px 0 0; font-size: 12.5px; color: #555; }
.su-dialog--dark .su-subtitle { color: #ccc; }

.su-close {
  margin-left: auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: #f3f3f6;
  color: #333;
}

.su-dialog--dark .su-close {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.su-field { margin-bottom: 14px; }
.su-label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 6px; }
.su-input {
  width: 100%;
  background: #f6f6f8;
  border: 1px solid #e3e3e8;
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 15px;
  color: #111;
  font-family: inherit;
  outline: none;
}

.su-input:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 36, 153, 0.15);
}

.su-submit {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  font-size: 15.5px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--secondary-dark));
  box-shadow: 0 8px 20px rgba(255, 36, 153, 0.28);
}

.su-msg {
  font-size: 13px;
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 12px;
  display: none;
}
.su-msg.show { display: block; }
.su-msg.err { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.su-msg.ok { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }

/* Subpage Cards */
.page-panel {
  background: rgba(15, 10, 18, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
}

.cat-banner {
  width: 100%;
  border-radius: 14px;
  max-height: 220px;
  object-fit: cover;
  margin-bottom: 16px;
  display: block;
}

.promo-grid, .article-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 720px) {
  .promo-grid, .article-grid { grid-template-columns: 1fr; }
}

.promo-card, .article-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.promo-card img, .article-card img {
  width: 100%;
  height: 165px;
  object-fit: cover;
  display: block;
}

.promo-card__body, .article-card__body {
  padding: 14px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-pink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--primary), var(--secondary-dark));
  color: #fff;
  font-weight: 700;
  font-size: 13.5px;
  padding: 9px 16px;
  border-radius: 10px;
}

.btn-outline-pink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--secondary);
  color: var(--secondary);
  font-weight: 700;
  font-size: 13.5px;
  padding: 8px 14px;
  border-radius: 10px;
}

/* Cashier / Bank selector */
.bank-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.bank-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 8px;
  text-align: center;
  font-size: 11.5px;
  cursor: pointer;
}

.bank-chip.active {
  border-color: var(--primary);
  background: rgba(255, 36, 153, 0.18);
}

.bank-chip img {
  width: 28px;
  height: 28px;
  display: block;
  margin: 0 auto 4px;
}
