html {
  font-size: 14px;
  min-height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

:root {
  /* Core gaming colors */
  --teal: #0b8f88;
  --gold: #d5aa61;
  --gold-dark: #8a6230;
  --red: #c55248;
  --brown: #5b3b1f;

  /* Theme-specific variables (Dark Mode by default) */
  --ink: #090908;
  --panel: rgba(255, 255, 255, 0.9);
  --panel-strong: rgba(255, 250, 240, 0.96);
  --cream: #fff6df;
  --line: rgba(214, 171, 98, 0.45);
  --shadow: 0 16px 32px rgba(0, 0, 0, 0.32);

  --body-bg: #070706;
  --body-bg-image: url("https://shoptethan.com/files/96/images/2024-03-17/bAiraxA-vS.webp");
  --body-text: #f7f3e7;
  --body-text-muted: rgba(240, 232, 213, 0.7);
  --body-overlay: linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.55)), radial-gradient(circle at 50% 20%, rgba(11, 143, 136, 0.14), transparent 38%);

  --header-bg: rgba(12, 12, 11, 0.94);
  --header-border: rgba(255, 255, 255, 0.1);
  --nav-link-color: #ebe3cf;

  --card-bg: rgba(28, 24, 18, 0.92);
  --card-border: rgba(213, 170, 97, 0.22);
  --panel-bg: rgba(20, 18, 15, 0.96);
  --footer-bg: #0b0908;

  --input-bg: rgba(255, 255, 255, 0.05);
  --input-border: rgba(255, 255, 255, 0.12);
  --input-text: #ffffff;
  --input-placeholder: rgba(255, 255, 255, 0.35);
  --input-focus-bg: rgba(255, 255, 255, 0.09);

  --modal-bg: rgba(20, 18, 15, 0.98);
  --modal-border: rgba(213, 170, 97, 0.3);
  --glass-inner-bg: rgba(255, 246, 223, 0.04);
  --glass-inner-border: rgba(213, 170, 97, 0.15);

  --back-link-color: #ffe0a2;
  --text-highlight: #ffe0a2;
  --link-hover-color: #ffffff;
  --nav-link-hover: #ffffff;
  --nav-link-glow: 0 0 12px rgba(255, 255, 255, 0.8);
  --neon-color: #ffffff;
  --neon-shadow: 0 0 5px rgba(213, 170, 97, 0.6), 0 0 10px rgba(213, 170, 97, 0.4);
  --hero-title-color: #fff7d2;
  --hero-title-shadow: 0 2px 12px rgba(0, 0, 0, 0.88);
  --price-row-bg: linear-gradient(90deg, rgba(30, 21, 13, 0.92), rgba(121, 74, 34, 0.94));
  --price-row-text: #ffffff;
  --price-row-amount: #ffe195;
}

html[data-theme="light"] {
  --ink: #fffbf2;
  --panel: rgba(0, 0, 0, 0.85);
  --panel-strong: rgba(20, 18, 15, 0.95);
  --cream: #2c251e;
  --line: rgba(138, 98, 48, 0.35);
  --shadow: 0 16px 32px rgba(110, 90, 70, 0.12);

  --body-bg: #fdfaf2;
  --body-bg-image: linear-gradient(135deg, #fefbfc 0%, #f7ebd7 100%);
  --body-text: #2e2922;
  --body-text-muted: rgba(46, 41, 34, 0.75);
  --body-overlay: radial-gradient(circle at 50% 20%, rgba(213, 170, 97, 0.15), transparent 50%);

  --header-bg: rgba(253, 250, 242, 0.95);
  --header-border: rgba(213, 170, 97, 0.2);
  --nav-link-color: #423c33;

  --card-bg: rgba(255, 255, 255, 0.95);
  --card-border: rgba(213, 170, 97, 0.3);
  --panel-bg: rgba(254, 252, 248, 0.98);
  --footer-bg: #f5ede0;

  --input-bg: rgba(0, 0, 0, 0.03);
  --input-border: rgba(0, 0, 0, 0.15);
  --input-text: #2e2922;
  --input-placeholder: rgba(46, 41, 34, 0.45);
  --input-focus-bg: rgba(0, 0, 0, 0.05);

  --modal-bg: #ffffff;
  --modal-border: rgba(213, 170, 97, 0.4);
  --glass-inner-bg: rgba(213, 170, 97, 0.05);
  --glass-inner-border: rgba(213, 170, 97, 0.22);

  --back-link-color: #a3722c;
  --text-highlight: #8a6230;
  --link-hover-color: var(--teal);
  --nav-link-hover: var(--teal);
  --nav-link-glow: none;
  --neon-color: #8a6230;
  --neon-shadow: none;
  --hero-title-color: #5b3b1f;
  --hero-title-shadow: none;
  --price-row-bg: rgba(213, 170, 97, 0.12);
  --price-row-text: #2e2922;
  --price-row-amount: #8a6230;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--body-text);
  background: var(--body-bg) var(--body-bg-image) center top / cover fixed no-repeat;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  isolation: isolate;
  transition: background-color 0.3s ease, color 0.3s ease;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--body-overlay);
  pointer-events: none;
  transition: background 0.3s ease;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--link-hover-color);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1040;
  border-bottom: 1px solid var(--header-border);
  background: var(--header-bg);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(4px);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.site-header .navbar {
  min-height: 74px;
  padding: 0.35rem 0;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  color: var(--cream);
  font-weight: 800;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(145deg, var(--red), var(--gold-dark));
  box-shadow: 0 0 16px rgba(213, 170, 97, 0.36);
}

.brand-copy {
  white-space: nowrap;
}

.site-header .nav-link {
  color: var(--nav-link-color);
  font-weight: 700;
  transition: color 0.3s ease;
}

.site-header .nav-link:hover,
.site-header .nav-link.active {
  color: var(--nav-link-hover);
  text-shadow: var(--nav-link-glow);
}

.menu-toggle {
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.9);
}

/* --- Theme Toggle Button --- */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--card-border);
  background: var(--input-bg);
  color: var(--gold);
  cursor: pointer;
  outline: none;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.theme-toggle-btn:hover {
  transform: scale(1.08) rotate(15deg);
  border-color: var(--gold);
  background: var(--input-focus-bg);
  box-shadow: 0 0 10px rgba(213, 170, 97, 0.4);
}

.theme-toggle-btn svg {
  position: absolute;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.4s ease;
}

/* Icons toggle animation */
.theme-toggle-btn .moon-icon {
  opacity: 0;
  transform: scale(0) rotate(-90deg);
}

.theme-toggle-btn .sun-icon {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

html[data-theme="light"] .theme-toggle-btn .sun-icon {
  opacity: 0;
  transform: scale(0) rotate(90deg);
}

html[data-theme="light"] .theme-toggle-btn .moon-icon {
  opacity: 1;
  transform: scale(1) rotate(0deg);
  color: var(--gold-dark);
}

.auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.5rem 0;
}

/* Base Gaming 3D Button style with Glossy Glass layer & Micro-animations */
.btn-gaming-3d {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  line-height: 1;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-top-color: rgba(255, 255, 255, 0.6);
  text-shadow: 0 2px 3px rgba(0, 0, 0, 0.65);
  box-sizing: border-box;
  transition: all 0.12s cubic-bezier(0.2, 0.8, 0.2, 1);
  overflow: hidden;
  cursor: pointer;
  user-select: none;
}

.btn-gaming-3d::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.04) 100%);
  pointer-events: none;
  z-index: 1;
}

.btn-gaming-3d::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 80%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-25deg);
  animation: shine 3.5s infinite ease-in-out;
  pointer-events: none;
}

/* Red / Royal Gift theme */
.btn-gaming-red {
  color: #fff !important;
  background: linear-gradient(to bottom, #ff7e75 0%, #d83d31 45%, #941c12 100%);
  box-shadow: 0 5px 0 #5c110a, 0 8px 20px rgba(216, 61, 49, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn-gaming-red:hover {
  background: linear-gradient(to bottom, #ff978f 0%, #e65245 45%, #b32519 100%);
  box-shadow: 0 6px 0 #73170f, 0 10px 25px rgba(230, 82, 69, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.btn-gaming-red:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 #5c110a, 0 2px 6px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Golden / Luxury theme */
.btn-gaming-gold {
  color: #fff !important;
  background: linear-gradient(to bottom, #ffe875 0%, #f5af19 45%, #d45d00 100%);
  box-shadow: 0 5px 0 #8c3200, 0 8px 20px rgba(245, 175, 25, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.btn-gaming-gold:hover {
  background: linear-gradient(to bottom, #fff09e 0%, #ffc03d 45%, #ff7300 100%);
  box-shadow: 0 6px 0 #ab3e00, 0 10px 25px rgba(255, 115, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

.btn-gaming-gold:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 #8c3200, 0 2px 6px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Magic Teal theme */
.btn-gaming-teal {
  color: #fff !important;
  background: linear-gradient(to bottom, #6bfcf1 0%, #0b8f88 45%, #055450 100%);
  box-shadow: 0 5px 0 #023836, 0 8px 20px rgba(11, 143, 136, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn-gaming-teal:hover {
  background: linear-gradient(to bottom, #8bfdf5 0%, #0da69e 45%, #07716c 100%);
  box-shadow: 0 6px 0 #034f4d, 0 10px 25px rgba(13, 166, 158, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.btn-gaming-teal:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 #023836, 0 2px 6px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Slate Silver / Stone theme */
.btn-gaming-silver {
  color: #38210f !important;
  background: linear-gradient(to bottom, #ffffff 0%, #f0ede6 45%, #c7c0b0 100%);
  border: 1px solid rgba(91, 59, 31, 0.4);
  border-top-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 5px 0 #5c412b, 0 8px 15px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) !important;
}

.btn-gaming-silver:hover {
  background: linear-gradient(to bottom, #ffffff 0%, #faf8f5 45%, #dbd6c8 100%);
  box-shadow: 0 6px 0 #735136, 0 10px 20px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
}

.btn-gaming-silver:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 #5c412b, 0 2px 5px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* Mapping existing classes for layout compatibility */
.pretty-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 8px;
  font-weight: 800;
  line-height: 1;
  min-width: 116px;
  padding: 0.75rem 1rem;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  font-family: "Segoe UI", Roboto, sans-serif;
  text-transform: uppercase;
  text-shadow: 0 2px 2px rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-top-color: rgba(255, 255, 255, 0.6);
  transition: all 0.12s cubic-bezier(0.2, 0.8, 0.2, 1);
  cursor: pointer;
  user-select: none;

  color: #fff !important;
  background: linear-gradient(to bottom, #ff978f 0%, #d83d31 45%, #941c12 100%);
  box-shadow: 0 5px 0 #5c110a, 0 8px 15px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.pretty-action::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.04) 100%);
  pointer-events: none;
  z-index: 1;
}

.pretty-action::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 80%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: skewX(-25deg);
  animation: shine 3.5s infinite ease-in-out;
  pointer-events: none;
}

.pretty-action:hover {
  background: linear-gradient(to bottom, #ffb394 0%, #e65245 45%, #b32519 100%);
  box-shadow: 0 6px 0 #73170f, 0 10px 20px rgba(197, 82, 72, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.pretty-action:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 #5c110a, 0 2px 6px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.catalog-hero {
  padding: 1.75rem 0 1.1rem;
  text-align: center;
}

.crest-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 0.75rem;
  border: 1px solid rgba(255, 246, 223, 0.35);
  border-radius: 50%;
  color: var(--cream);
  background: rgba(6, 5, 4, 0.65);
  font-weight: 900;
}

.catalog-hero h1 {
  max-width: 1050px;
  margin: 0 auto;
  color: var(--hero-title-color);
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.35;
  text-shadow: var(--hero-title-shadow);
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.catalog-content {
  padding: 0 0 3rem;
}

.search-panel {
  position: sticky;
  top: 90px;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--cream);
  background:
    linear-gradient(135deg, rgba(22, 20, 17, 0.97), rgba(80, 54, 28, 0.95)),
    repeating-linear-gradient(45deg, transparent 0 18px, rgba(213, 170, 97, 0.07) 18px 20px);
  box-shadow: var(--shadow);
}

.search-title {
  margin: 0;
  text-align: center;
  font-size: 1.35rem;
  font-weight: 800;
}

.search-subtitle {
  margin: 0 0 0.7rem;
  text-align: center;
  color: rgba(255, 246, 223, 0.74);
}

.form-label {
  margin-bottom: 0.35rem;
  color: var(--body-text);
  font-weight: 700;
}

.form-control {
  min-height: 42px;
  border: 1px solid rgba(103, 72, 35, 0.42);
  border-radius: 6px;
  background-color: rgba(255, 255, 255, 0.95);
}

.form-control:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 0.18rem rgba(213, 170, 97, 0.24);
}

.search-button {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-top-color: rgba(255, 255, 255, 0.6);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: "Segoe UI", Roboto, sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  line-height: 1;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  text-shadow: 0 2px 3px rgba(0, 0, 0, 0.65);
  transition: all 0.12s cubic-bezier(0.2, 0.8, 0.2, 1);
  cursor: pointer;

  background: linear-gradient(to bottom, #ffe875 0%, #f5af19 45%, #d45d00 100%);
  box-shadow: 0 5px 0 #8c3200, 0 8px 15px rgba(245, 175, 25, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.search-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.04) 100%);
  pointer-events: none;
  z-index: 1;
}

.search-button::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 80%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: skewX(-25deg);
  animation: shine 3s infinite ease-in-out;
  pointer-events: none;
}

.search-button:hover {
  background: linear-gradient(to bottom, #fff09e 0%, #ffc03d 45%, #ff7300 100%);
  box-shadow: 0 6px 0 #ab3e00, 0 10px 20px rgba(255, 115, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

.search-button:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 #8c3200, 0 2px 6px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.catalog-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #fff9e8;
  background: rgba(30, 25, 18, 0.88);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.catalog-toolbar a {
  color: var(--text-highlight);
  font-weight: 700;
  transition: color 0.3s ease;
}

.account-card {
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(213, 170, 97, 0.35);
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(145deg, rgba(35, 29, 22, 0.96) 0%, rgba(18, 15, 12, 0.99) 100%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.25s ease, border-color 0.25s ease;
}

.account-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(213, 170, 97, 0.22), 0 0 15px rgba(213, 170, 97, 0.1);
  border-color: rgba(213, 170, 97, 0.7);
  background: linear-gradient(145deg, rgba(42, 35, 26, 0.98) 0%, rgba(22, 19, 15, 0.99) 100%);
}

.account-image-wrap {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  background: #17130f;
  overflow: hidden;
}

.account-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.account-card:hover img {
  transform: scale(1.04);
}

.featured-badge {
  position: absolute;
  top: 9px;
  left: 9px;
  z-index: 2;
  padding: 0.25rem 0.45rem;
  border-radius: 4px;
  color: #fff;
  background: var(--red);
  font-size: 0.75rem;
  font-weight: 900;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.65rem 0.85rem;
  color: #ffffff;
  background: linear-gradient(90deg, #1b1612 0%, #2f251c 100%);
  font-weight: 800;
  border-bottom: 1px solid rgba(213, 170, 97, 0.25);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.price-row span {
  color: #ebe3cf;
  font-size: 0.82rem;
  letter-spacing: 0.5px;
}

.price-row strong {
  color: #ffea79;
  font-size: 1.15rem;
  text-shadow: 0 0 10px rgba(255, 234, 121, 0.35);
  white-space: nowrap;
  transition: color 0.3s ease;
}

.account-info-link {
  display: block;
  padding: 0.65rem 0.75rem 0.85rem;
  color: var(--body-text);
  transition: color 0.3s ease;
}

.account-info-link:hover {
  color: #fff;
}

.stat-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.stat-row.single {
  grid-template-columns: minmax(0, 1fr);
}

.stat-row span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(213, 170, 97, 0.18);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.85rem;
  text-align: center;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.account-card:hover .stat-row span {
  background: rgba(213, 170, 97, 0.08);
  border-color: rgba(213, 170, 97, 0.4);
}

.stat-row label {
  margin: 0 0.4rem 0 0;
  color: #ffcb74;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.5px;
}

.product-rule {
  height: 1px;
  margin: 0.35rem 0 0.65rem;
  background: linear-gradient(90deg, transparent, rgba(213, 170, 97, 0.5), transparent);
}

.account-summary {
  display: -webkit-box;
  min-height: 57px;
  margin: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  line-height: 1.5;
  text-align: center;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  transition: color 0.3s ease;
}

.account-card:hover .account-summary {
  color: #ffffff;
}

.empty-state {
  padding: 2rem;
  border-radius: 8px;
  color: var(--cream);
  background: rgba(0, 0, 0, 0.62);
  text-align: center;
}

.catalog-pagination {
  margin-top: 1.5rem;
}

.pagination .page-link {
  color: var(--brown);
  border-color: rgba(214, 171, 98, 0.55);
  background: rgba(255, 246, 223, 0.94);
  font-weight: 800;
}

.pagination .page-item.active .page-link {
  border-color: var(--gold);
  color: #fff;
  background: var(--teal);
}

.detail-page {
  padding: 2rem 0 3rem;
}

.back-link {
  display: inline-flex;
  margin-bottom: 1rem;
  color: var(--back-link-color);
  font-weight: 800;
  transition: color 0.3s ease;
}

.detail-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.75fr);
  gap: 1rem;
  align-items: start;
}

.detail-main-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.detail-media,
.detail-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.detail-media {
  overflow: hidden;
  background: var(--footer-bg);
  position: relative;
  /* position:relative needed for absolute children (badges, zoom hint) */
  transition: background-color 0.3s ease;
}

.detail-media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.detail-panel {
  padding: 1.25rem;
  color: var(--body-text);
  background: var(--panel-bg);
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

/* --- Meta row (ID + category + date) --- */
.detail-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.detail-id {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.55rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  line-height: 1;
}

.detail-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.55rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #d5aa61;
  background: rgba(213, 170, 97, 0.12);
  border: 1px solid rgba(213, 170, 97, 0.3);
  line-height: 1;
}

.detail-listed-date {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.55rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
  line-height: 1;
}

/* --- Badges over image --- */
.detail-img-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 5;
  display: flex;
  gap: 0.4rem;
}

.detail-img-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.55rem;
  border-radius: 5px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.badge-hot {
  color: #fff;
  background: var(--red);
  box-shadow: 0 2px 8px rgba(197, 82, 72, 0.55);
  animation: animatePulse 2s infinite;
}

.badge-sold {
  color: #fff;
  background: rgba(60, 60, 60, 0.92);
}

/* --- Zoom hint --- */
.detail-zoom-hint {
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.55rem;
  border-radius: 4px;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.65);
  background: rgba(0, 0, 0, 0.55);
  pointer-events: none;
}

/* --- Summary --- */
.detail-summary {
  margin: 0 0 1rem;
  color: var(--body-text);
  font-size: 0.9rem;
  line-height: 1.55;
  transition: color 0.3s ease;
}

/* --- Highlights list --- */
.detail-highlights {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1rem;
  padding: 0.75rem;
  border-radius: 8px;
  background: var(--glass-inner-bg);
  border: 1px solid var(--glass-inner-border);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.detail-highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.84rem;
  color: var(--body-text);
  line-height: 1.4;
  transition: color 0.3s ease;
}

.detail-highlight-item svg {
  flex-shrink: 0;
  margin-top: 2px;
}

/* --- Trust badges row --- */
.detail-trust-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin: 1rem 0;
  padding: 0.75rem;
  border-radius: 8px;
  background: var(--glass-inner-bg);
  border: 1px solid var(--glass-inner-border);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.detail-trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-align: center;
  color: var(--body-text-muted);
  font-size: 0.68rem;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.detail-trust-item svg {
  color: #d5aa61;
}

/* --- Guide accordion --- */
.detail-guide {
  margin-bottom: 0.5rem;
  border-radius: 6px;
  border: 1px solid var(--glass-inner-border);
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.detail-guide summary {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 0.85rem;
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--body-text);
  cursor: pointer;
  list-style: none;
  background: var(--glass-inner-bg);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.detail-guide summary::-webkit-details-marker {
  display: none;
}

.detail-guide summary::after {
  content: "›";
  margin-left: auto;
  transition: transform 0.2s;
  font-size: 1rem;
}

.detail-guide[open] summary::after {
  transform: rotate(90deg);
}

.detail-guide summary:hover {
  background: var(--input-focus-bg);
  color: var(--text-highlight);
}

.detail-guide-list {
  margin: 0;
  padding: 0.75rem 0.85rem 0.75rem 1.8rem;
  font-size: 0.82rem;
  color: var(--body-text-muted);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  background: var(--input-bg);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.detail-guide-list strong {
  color: var(--text-highlight);
}

.detail-id {
  display: inline-flex;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  color: #fff;
  background: var(--red);
  font-weight: 900;
}

.detail-panel h1 {
  margin: 0;
  color: #fff7d2;
  font-size: 1.4rem;
  font-weight: 900;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.detail-price {
  margin: 0.6rem 0 1rem;
  color: #ffe875;
  font-size: 1.85rem;
  font-weight: 900;
  text-shadow: 0 0 18px rgba(255, 220, 50, 0.45);
}

.detail-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.detail-stats span {
  min-height: 64px;
  padding: 0.5rem;
  border-radius: 6px;
  color: #fff;
  background: rgba(213, 170, 97, 0.14);
  border: 1px solid rgba(213, 170, 97, 0.28);
  text-align: center;
  font-weight: 900;
}

.detail-stats label {
  display: block;
  margin-bottom: 0.25rem;
  color: #d5aa61;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.5px;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.buy-button,
.outline-button {
  min-width: 126px;
  padding: 0.75rem 1rem;
}

.buy-button {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-top-color: rgba(255, 255, 255, 0.6);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: "Segoe UI", Roboto, sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  line-height: 1;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  text-shadow: 0 2px 3px rgba(0, 0, 0, 0.65);
  transition: all 0.12s cubic-bezier(0.2, 0.8, 0.2, 1);
  cursor: pointer;

  background: linear-gradient(to bottom, #ff7e75 0%, #d83d31 45%, #941c12 100%);
  box-shadow: 0 5px 0 #5c110a, 0 8px 20px rgba(216, 61, 49, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.buy-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.04) 100%);
  pointer-events: none;
  z-index: 1;
}

.buy-button::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 80%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: skewX(-25deg);
  animation: shine 3.5s infinite ease-in-out;
  pointer-events: none;
}

.buy-button:hover {
  background: linear-gradient(to bottom, #ff978f 0%, #e65245 45%, #b32519 100%);
  box-shadow: 0 6px 0 #73170f, 0 10px 25px rgba(230, 82, 69, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.buy-button:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 #5c110a, 0 2px 6px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.outline-button {
  color: #38210f !important;
  border: 1px solid rgba(91, 59, 31, 0.4);
  border-top-color: rgba(255, 255, 255, 0.8);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: "Segoe UI", Roboto, sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  line-height: 1;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) !important;
  transition: all 0.12s cubic-bezier(0.2, 0.8, 0.2, 1);
  cursor: pointer;

  background: linear-gradient(to bottom, #ffffff 0%, #f0ede6 45%, #c7c0b0 100%);
  box-shadow: 0 5px 0 #5c412b, 0 8px 15px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.outline-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.04) 100%);
  pointer-events: none;
  z-index: 1;
}

.outline-button::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 80%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: skewX(-25deg);
  animation: shine 3.5s infinite ease-in-out;
  pointer-events: none;
}

.outline-button:hover {
  background: linear-gradient(to bottom, #ffffff 0%, #faf8f5 45%, #dbd6c8 100%);
  box-shadow: 0 6px 0 #735136, 0 10px 20px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
}

.outline-button:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 #5c412b, 0 2px 5px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.site-footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--header-border);
  color: var(--body-text-muted);
  background: var(--footer-bg);
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.footer-logo {
  margin-bottom: 1rem;
  color: #fff7d2;
  font-size: 1.45rem;
  font-weight: 900;
  text-align: center;
}

.site-footer h2 {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 900;
}

.site-footer p {
  margin-bottom: 0.55rem;
}

.language-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.8rem;
}

.language-row a {
  padding: 0.3rem 0.55rem;
  border-radius: 4px;
  color: #fff;
  background: var(--teal);
  font-size: 0.85rem;
  font-weight: 700;
}

.zalo-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1050;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  color: #fff;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.82rem;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 6px 0 #00568c, 0 12px 25px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  background: linear-gradient(to bottom, #54baff 0%, #0b8fdd 45%, #00609c 100%);
  transition: all 0.12s cubic-bezier(0.2, 0.8, 0.2, 1);
  text-shadow: 0 2px 2px rgba(0, 0, 0, 0.6);
  cursor: pointer;
  text-decoration: none;
}

.zalo-float:hover {
  transform: translateY(-4px) scale(1.08);
  background: linear-gradient(to bottom, #74c7ff 0%, #209dec 45%, #0073bd 100%);
  box-shadow: 0 10px 0 #00568c, 0 15px 30px rgba(11, 143, 221, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.zalo-float:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 #00568c, 0 2px 6px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

@media (max-width: 991.98px) {
  .site-header .navbar-collapse {
    padding: 0.8rem 0 0.4rem;
  }

  .auth-actions {
    padding-top: 0.35rem;
  }

  .search-panel {
    position: static;
  }

  .zalo-float {
    bottom: 125px !important;
  }

  .detail-shell {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .detail-main-column {
    order: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  /* Tắt sticky image trên mobile và giữ positioning context */
  .detail-media {
    position: relative;
    border-radius: 8px;
    border: 1px solid var(--card-border);
  }

  .detail-panel {
    order: 2;
    border-radius: 8px;
    border: 1px solid var(--card-border);
  }

  .detail-specs-panel {
    border-radius: 8px;
    border: 1px solid var(--card-border);
  }

  .detail-page {
    padding: 1rem 0 5rem;
  }

  .detail-panel h1 {
    font-size: 1.15rem;
  }

  .detail-price {
    font-size: 1.5rem;
    margin: 0.4rem 0 0.75rem;
  }

  .detail-sticky-bar {
    display: flex;
    flex-direction: column;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 900;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(20, 16, 13, 0.99);
    border-top: 2px solid rgba(213, 170, 97, 0.45);
    box-shadow: 0 -6px 22px rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(12px);
  }

  .sticky-price-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 0.35rem;
  }

  .sticky-price-row {
    display: flex;
    align-items: center;
    gap: 0.35rem;
  }

  .sticky-price-label {
    font-size: 0.75rem;
    color: rgba(235, 227, 207, 0.6);
    text-transform: uppercase;
    font-weight: 700;
  }

  .sticky-price-val {
    font-size: 1.15rem;
    color: #ffea79;
    font-weight: 800;
    text-shadow: 0 0 8px rgba(255, 234, 121, 0.25);
  }

  .sticky-price-val sup {
    font-size: 0.75rem;
    top: -0.1em;
  }

  .sticky-price-row-installment {
    display: flex;
    align-items: center;
    gap: 0.35rem;
  }

  .sticky-price-inst-badge {
    font-size: 0.65rem;
    padding: 0.1rem 0.3rem;
    background: rgba(220, 53, 69, 0.15);
    border: 1px solid rgba(220, 53, 69, 0.4);
    color: #ff8b80;
    font-weight: 700;
    border-radius: 4px;
  }

  .sticky-price-inst-val {
    font-size: 1rem;
    color: #ffffff;
    font-weight: 700;
  }

  .sticky-price-inst-val sup {
    font-size: 0.65rem;
    top: -0.1em;
  }

  .sticky-price-inst-val small {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.6);
  }

  .sticky-actions-wrap {
    display: flex;
    gap: 0.5rem;
    width: 100%;
  }

  .sticky-actions-wrap .sticky-btn-buy {
    flex: 1;
    min-height: 44px;
    height: 44px;
    font-size: 0.85rem;
    border-radius: 8px;
    padding: 0;
  }

  .detail-actions {
    display: none;
  }

  .installment-box {
    padding: 0.65rem !important;
    margin-top: 0.75rem !important;
  }

  .installment-opt {
    padding: 0.35rem 0.25rem !important;
  }

  .installment-opt span {
    font-size: 0.72rem !important;
  }
}

@media (max-width: 575.98px) {
  .catalog-hero h1 {
    font-size: 1.16rem;
  }

  .brand-copy {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .account-info-link {
    padding: 0.55rem;
  }

  .price-row {
    align-items: center;
    flex-direction: row;
    gap: 0.35rem;
    padding: 0.45rem 0.55rem;
    font-size: 0.78rem;
    flex-wrap: nowrap;
  }

  .price-row span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    font-size: 0.75rem;
  }

  .price-row strong {
    flex-shrink: 0;
    font-size: 0.82rem;
  }

  .stat-row {
    grid-template-columns: 1fr;
  }

  .stat-row span {
    min-height: 30px;
    font-size: 0.82rem;
  }

  .account-summary {
    min-height: 50px;
    font-size: 0.78rem;
  }

  .catalog-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .detail-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.35rem;
  }

  .detail-stats span {
    min-height: 52px;
    padding: 0.35rem 0.25rem;
    font-size: 0.85rem;
  }

  .detail-stats label {
    font-size: 0.62rem;
    margin-bottom: 0.15rem;
  }

  .detail-panel {
    padding: 1rem 0.85rem;
  }

  .detail-panel h1 {
    font-size: 1.05rem;
  }

  .detail-price {
    font-size: 1.35rem;
  }

  .back-link {
    font-size: 0.88rem;
    padding: 0.35rem 0;
    margin-bottom: 0;
  }
}

/* ==========================================================================
   IMAGE LIGHTBOX
   ========================================================================== */

.detail-media {
  cursor: zoom-in;
}

#imgLightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.93);
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: lbFadeIn 0.22s ease;
}

#imgLightbox.open {
  display: flex;
}

@keyframes lbFadeIn {
  from {
    opacity: 0;
    transform: scale(0.97);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

#imgLightbox img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.8);
  display: block;
}

#lbClose {
  position: fixed;
  top: 14px;
  right: 18px;
  z-index: 10000;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

#lbClose:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* ==========================================================================
   MOBILE STICKY BUY BAR - redesigned clean gaming style
   ========================================================================== */

.detail-sticky-bar {
  /* hidden on desktop, shown only on mobile via JS */
}

.sticky-btn-buy {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 50px;
  padding: 0 1rem;
  border: none;
  border-radius: 10px;
  font-family: "Segoe UI", Roboto, sans-serif;
  font-weight: 900;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.12s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.12s cubic-bezier(0.2, 0.8, 0.2, 1);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.sticky-btn-buy::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.18) 0%, transparent 100%);
  pointer-events: none;
}

.sticky-btn-buy:active {
  transform: scale(0.97);
}

/* MUA NGAY - đỏ gaming */
.sticky-btn-buy.primary {
  color: #fff;
  background: linear-gradient(135deg, #ff5e47 0%, #c8291d 55%, #8f1912 100%);
  box-shadow: 0 4px 0 #5c110a, 0 6px 18px rgba(200, 41, 29, 0.45);
}

.sticky-btn-buy.primary:active {
  box-shadow: 0 1px 0 #5c110a, 0 2px 8px rgba(0, 0, 0, 0.4);
  transform: translateY(3px);
}

/* TRẢ GÓP - teal gaming */
.sticky-btn-buy.secondary {
  color: #fff;
  background: linear-gradient(135deg, #2de8df 0%, #0b8f88 55%, #055450 100%);
  box-shadow: 0 4px 0 #023836, 0 6px 18px rgba(11, 143, 136, 0.4);
}

.sticky-btn-buy.secondary:active {
  box-shadow: 0 1px 0 #023836, 0 2px 8px rgba(0, 0, 0, 0.4);
  transform: translateY(3px);
}

/* disabled state */
.sticky-btn-buy.disabled {
  color: rgba(255, 255, 255, 0.45);
  background: rgba(80, 80, 80, 0.6);
  box-shadow: none;
  cursor: not-allowed;
  filter: none;
}



/* Brand & Logo Animations */
.animated-logo-container {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-logo-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(213, 170, 97, 0.7);
  box-shadow: 0 0 15px rgba(213, 170, 97, 0.4);
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease;
  background-color: #000;
  object-fit: cover;
  animation: pulseGlow 3s infinite ease-in-out;
}

.brand-logo-img:hover {
  transform: rotateY(360deg);
  box-shadow: 0 0 25px rgba(11, 143, 136, 0.8);
  border-color: #0b8f88;
}

.neon-text {
  font-family: 'Segoe UI', Roboto, sans-serif;
  font-weight: 900;
  color: var(--neon-color);
  letter-spacing: 2px;
  text-transform: uppercase;
  text-shadow: var(--neon-shadow);
  animation: neonFlicker 4s infinite alternate;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.neon-text-footer {
  font-weight: 900;
  letter-spacing: 2px;
  color: var(--neon-color);
  text-shadow: var(--neon-shadow);
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

/* Glassmorphism Cards */
.glass-card {
  background: rgba(22, 20, 16, 0.93);
  border: 1px solid rgba(214, 171, 98, 0.25);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
  border-color: rgba(213, 170, 97, 0.45);
  box-shadow: 0 24px 50px rgba(213, 170, 97, 0.15);
}

.glass-card-inner {
  background: var(--glass-inner-bg);
  border: 1px solid var(--glass-inner-border);
  border-radius: 8px;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.glass-modal,
.modal-content.glass-modal {
  background: linear-gradient(145deg, rgba(30, 25, 20, 0.99) 0%, rgba(15, 12, 10, 0.99) 100%);
  border: 2px solid rgba(213, 170, 97, 0.75) !important;
  border-radius: 16px;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.85), 0 0 25px rgba(213, 170, 97, 0.22);
  backdrop-filter: blur(10px);
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Form Styles */
.deposit-input {
  background-color: var(--input-bg) !important;
  border: 1px solid var(--input-border) !important;
  color: var(--input-text) !important;
  transition: all 0.3s ease !important;
}

.deposit-input::placeholder {
  color: var(--input-placeholder) !important;
}

.deposit-input:focus {
  background-color: var(--input-focus-bg) !important;
  border-color: var(--gold) !important;
  box-shadow: 0 0 10px rgba(213, 170, 97, 0.35) !important;
}

.deposit-input option {
  background-color: var(--modal-bg) !important;
  color: var(--input-text) !important;
}

/* Tabs Styling */
.deposit-tabs .tab-btn {
  background: var(--glass-inner-bg);
  border: 1px solid var(--glass-inner-border) !important;
  color: var(--body-text-muted) !important;
  border-radius: 6px !important;
  padding: 0.5rem 1rem;
  font-weight: 700;
  transition: all 0.25s ease;
}

.deposit-tabs .tab-btn:hover {
  background: var(--input-focus-bg);
  color: var(--body-text) !important;
}

.deposit-tabs .tab-btn.active {
  background: linear-gradient(135deg, var(--teal), rgba(11, 143, 136, 0.5)) !important;
  border-color: var(--teal) !important;
  color: #fff !important;
  box-shadow: 0 0 15px rgba(11, 143, 136, 0.4);
}

/* Leaderboard List */
.leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.leaderboard-item {
  background: var(--glass-inner-bg);
  border: 1px solid var(--glass-inner-border);
  transition: all 0.25s ease;
}

/* Layout class for leaderboard rows — even spacing */
.lb-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8rem;
}

.lb-row .username {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--body-text);
}

.lb-row .amount {
  flex-shrink: 0;
  font-size: 0.82rem;
  font-weight: 700;
}

.lb-row .rank-badge-styled {
  flex-shrink: 0;
}

.leaderboard-item:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(213, 170, 97, 0.3);
  transform: translateX(4px);
}

.rank-badge {
  font-weight: 800;
  min-width: 32px;
  display: inline-flex;
  justify-content: center;
}

.rank-badge-styled {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 800;
  color: #fff;
  border: 1.5px solid currentColor;
}

.rank-badge-styled.gold {
  color: #f1c40f;
  box-shadow: 0 0 8px rgba(241, 196, 15, 0.4);
}

.rank-badge-styled.silver {
  color: #bdc3c7;
  box-shadow: 0 0 8px rgba(189, 195, 199, 0.4);
}

.rank-badge-styled.bronze {
  color: #e67e22;
  box-shadow: 0 0 8px rgba(230, 126, 34, 0.4);
}

.leaderboard-item.rank-1 {
  background: linear-gradient(90deg, rgba(213, 170, 97, 0.15), rgba(255, 255, 255, 0.02));
  border-left: 3px solid var(--gold);
}

.leaderboard-item.rank-2 {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border-left: 3px solid #ccc;
}

.leaderboard-item.rank-3 {
  background: linear-gradient(90deg, rgba(197, 82, 72, 0.1), rgba(255, 255, 255, 0.02));
  border-left: 3px solid #cd7f32;
}

.badge-diamond {
  background: linear-gradient(135deg, #0b8fdd, #6dd5ed);
  color: #fff;
  font-size: 0.65rem;
  padding: 0.3rem 0.5rem;
  border-radius: 4px;
}

.badge-platinum {
  background: linear-gradient(135deg, #8e9eab, #eef2f3);
  color: #333;
  font-size: 0.65rem;
  padding: 0.3rem 0.5rem;
  border-radius: 4px;
}

.badge-gold {
  background: linear-gradient(135deg, #f12711, #f5af19);
  color: #fff;
  font-size: 0.65rem;
  padding: 0.3rem 0.5rem;
  border-radius: 4px;
}

.badge-silver {
  background: linear-gradient(135deg, #757f9a, #d7dde8);
  color: #333;
  font-size: 0.65rem;
  padding: 0.3rem 0.5rem;
  border-radius: 4px;
}

/* Installment Details Styles */
.installment-opt {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: all 0.25s ease;
}

.installment-opt:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(213, 170, 97, 0.4);
}

.installment-opt.active {
  background: linear-gradient(135deg, rgba(197, 82, 72, 0.2), rgba(213, 170, 97, 0.1));
  border: 1px solid var(--gold);
  box-shadow: 0 0 12px rgba(213, 170, 97, 0.3);
}

.text-warning-custom {
  color: #f7e1b5;
}

.text-muted-custom {
  color: var(--body-text-muted) !important;
}

.extra-small {
  font-size: 0.65rem;
}

/* Animations Definition */
@keyframes pulseGlow {

  0%,
  100% {
    box-shadow: 0 0 12px rgba(213, 170, 97, 0.3);
  }

  50% {
    box-shadow: 0 0 22px rgba(11, 143, 136, 0.7);
  }
}

@keyframes neonFlicker {

  0%,
  19%,
  21%,
  23%,
  25%,
  54%,
  56%,
  100% {
    text-shadow:
      0 0 4px #fff,
      0 0 10px rgba(213, 170, 97, 0.7),
      0 0 18px rgba(213, 170, 97, 0.5),
      0 0 30px rgba(11, 143, 136, 0.3);
  }

  20%,
  24%,
  55% {
    text-shadow: none;
  }
}

@keyframes shine {
  0% {
    left: -100%;
  }

  100% {
    left: 100%;
  }
}

@keyframes pulseScale {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

.animate-pulse {
  animation: pulseScale 2s infinite ease-in-out;
}

/* Animated Buttons styling */
.btn-animated-gaming {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: "Segoe UI", Roboto, sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  line-height: 1;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-top-color: rgba(255, 255, 255, 0.6);
  text-shadow: 0 2px 3px rgba(0, 0, 0, 0.65);
  transition: all 0.12s cubic-bezier(0.2, 0.8, 0.2, 1);
  overflow: hidden;
  cursor: pointer;
  user-select: none;

  color: #fff !important;
  background: linear-gradient(to bottom, #ff7e75 0%, #d83d31 45%, #941c12 100%);
  box-shadow: 0 5px 0 #5c110a, 0 8px 20px rgba(216, 61, 49, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn-animated-gaming::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.04) 100%);
  pointer-events: none;
  z-index: 1;
}

.btn-animated-gaming::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 80%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: skewX(-25deg);
  animation: shine 3s infinite ease-in-out;
  pointer-events: none;
}

.btn-animated-gaming:hover {
  background: linear-gradient(to bottom, #ff978f 0%, #e65245 45%, #b32519 100%);
  box-shadow: 0 6px 0 #73170f, 0 10px 25px rgba(230, 82, 69, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.btn-animated-gaming:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 #5c110a, 0 2px 6px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-animated-shine {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: "Segoe UI", Roboto, sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  line-height: 1;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-top-color: rgba(255, 255, 255, 0.6);
  text-shadow: 0 2px 3px rgba(0, 0, 0, 0.65);
  transition: all 0.12s cubic-bezier(0.2, 0.8, 0.2, 1);
  overflow: hidden;
  cursor: pointer;
  user-select: none;

  color: #fff !important;
  background: linear-gradient(to bottom, #6bfcf1 0%, #0b8f88 45%, #055450 100%);
  box-shadow: 0 5px 0 #023836, 0 8px 20px rgba(11, 143, 136, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn-animated-shine::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.04) 100%);
  pointer-events: none;
  z-index: 1;
}

.btn-animated-shine::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 80%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: skewX(-25deg);
  animation: shine 2.5s infinite ease-in-out;
  pointer-events: none;
}

.btn-animated-shine:hover {
  background: linear-gradient(to bottom, #8bfdf5 0%, #0da69e 45%, #07716c 100%);
  box-shadow: 0 6px 0 #034f4d, 0 10px 25px rgba(13, 166, 158, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.btn-animated-shine:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 #023836, 0 2px 6px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Wobbling Gift Animation for shake */
@keyframes giftShake {

  0%,
  100% {
    transform: scale(1) rotate(0deg);
  }

  10%,
  20% {
    transform: scale(1.2) rotate(-10deg);
  }

  30%,
  50%,
  70%,
  90% {
    transform: scale(1.2) rotate(10deg);
  }

  40%,
  60%,
  80% {
    transform: scale(1.2) rotate(-10deg);
  }
}

.gift-shake {
  display: inline-block;
  animation: giftShake 2s infinite ease-in-out;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

/* Nano Banana Badge Footer Style */
.nano-banana-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, rgba(255, 235, 180, 0.08) 0%, rgba(213, 170, 97, 0.12) 100%);
  border: 1px solid rgba(213, 170, 97, 0.25);
  border-radius: 20px;
  padding: 0.45rem 1.15rem;
  color: #ffe5a3;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(213, 170, 97, 0.15);
  animation: pulseGlow 4s infinite ease-in-out;
  transition: all 0.3s ease;
}

.nano-banana-badge:hover {
  transform: scale(1.05);
  border-color: rgba(213, 170, 97, 0.5);
  box-shadow: 0 4px 20px rgba(255, 246, 223, 0.25);
}

.banana-emoji {
  display: inline-block;
  animation: pulseScale 1.5s infinite ease-in-out;
}

/* User Selection for Nội dung chuyển khoản */
.select-all-code {
  user-select: all;
  cursor: pointer;
}

/* Purple Fantasy Bracket Action Buttons (Exactly like user's reference image) */
.pretty-action,
.btn-animated-gaming,
.btn-animated-shine,
.search-button,
.outline-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Segoe UI", Roboto, sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  text-decoration: none;
  line-height: 1;
  border-radius: 24px !important;
  /* Capsule shape */
  border: 1.5px solid rgba(133, 127, 224, 0.85) !important;
  color: #e5e3ff !important;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.4), 0 2px 2px rgba(0, 0, 0, 0.8) !important;
  background: linear-gradient(180deg, rgba(96, 92, 196, 0.75) 0%, rgba(64, 59, 154, 0.75) 100%) !important;
  box-shadow:
    0 4px 10px rgba(0, 0, 0, 0.4),
    0 0 10px rgba(96, 92, 196, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
  overflow: visible !important;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}

.pretty-action::before,
.btn-animated-gaming::before,
.btn-animated-shine::before,
.search-button::before,
.outline-button::before {
  display: none !important;
}

.pretty-action::after,
.btn-animated-gaming::after,
.btn-animated-shine::after,
.search-button::after,
.outline-button::after {
  display: none !important;
}

.pretty-action:hover,
.btn-animated-gaming:hover,
.btn-animated-shine:hover,
.search-button:hover,
.outline-button:hover {
  transform: translateY(-2px) scale(1.03) !important;
  color: #fff !important;
  border-color: rgba(162, 157, 255, 0.95) !important;
  background: linear-gradient(180deg, rgba(116, 112, 222, 0.85) 0%, rgba(77, 72, 184, 0.85) 100%) !important;
  box-shadow:
    0 6px 15px rgba(96, 92, 196, 0.45),
    0 0 15px rgba(133, 127, 224, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

.pretty-action:active,
.btn-animated-gaming:active,
.btn-animated-shine:active,
.search-button:active,
.outline-button:active {
  transform: translateY(2px) scale(0.98) !important;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.5),
    0 0 8px rgba(96, 92, 196, 0.3),
    inset 0 1px 0 rgba(0, 0, 0, 0.2) !important;
}

/* Paddings and Sizing Overrides */
.pretty-action {
  padding: 0.65rem 2.4rem !important;
  min-width: 130px !important;
}

.btn-animated-gaming,
.btn-animated-shine,
.search-button,
.outline-button {
  padding: 0.85rem 2.4rem !important;
  height: auto !important;
}

/* Bracket Ornaments on the left and right of the capsule */
.menu-bracket {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 28px;
  pointer-events: none;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.88;
  transition: transform 0.2s ease;
}

.left-bracket {
  left: 6px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='28' viewBox='0 0 14 28'%3E%3Cpath d='M10,2 C5,6 5,22 10,26 M7,5 C3,9 3,19 7,23 M4,14 L0,14' stroke='%23a29dff' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
}

.right-bracket {
  right: 6px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='28' viewBox='0 0 14 28'%3E%3Cpath d='M4,2 C9,6 9,22 4,26 M7,5 C11,9 11,19 7,23 M10,14 L14,14' stroke='%23a29dff' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
}

.pretty-action:hover .left-bracket,
.btn-animated-gaming:hover .left-bracket,
.btn-animated-shine:hover .left-bracket,
.search-button:hover .left-bracket,
.outline-button:hover .left-bracket {
  transform: translateY(-50%) translateX(-1.5px) !important;
}

.pretty-action:hover .right-bracket,
.btn-animated-gaming:hover .right-bracket,
.btn-animated-shine:hover .right-bracket,
.search-button:hover .right-bracket,
.outline-button:hover .right-bracket {
  transform: translateY(-50%) translateX(1.5px) !important;
}

/* Glowing Sparkle Stars */
.sparkle {
  position: absolute;
  color: #fff;
  font-weight: normal;
  pointer-events: none;
  text-shadow: 0 0 6px #fff, 0 0 12px rgba(162, 157, 255, 0.8);
  animation: sparkleTwinkle 2s infinite ease-in-out;
}

.s-left-1 {
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.85rem;
}

.s-left-2 {
  left: 24px;
  top: 22%;
  font-size: 0.55rem;
  animation-delay: 0.5s;
}

.s-right-1 {
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.85rem;
  animation-delay: 0.8s;
}

.s-right-2 {
  right: 24px;
  bottom: 22%;
  font-size: 0.55rem;
  animation-delay: 1.3s;
}

@keyframes sparkleTwinkle {

  0%,
  100% {
    opacity: 0.3;
    transform: translateY(-50%) scale(0.8) rotate(0deg);
  }

  50% {
    opacity: 1;
    transform: translateY(-50%) scale(1.1) rotate(15deg);
  }
}

/* For offset sparkles */
.s-left-2 {
  animation: sparkleTwinkleOffset 2.2s infinite ease-in-out;
}

.s-right-2 {
  animation: sparkleTwinkleOffset 2.2s infinite ease-in-out 1.1s;
}

@keyframes sparkleTwinkleOffset {

  0%,
  100% {
    opacity: 0.2;
    transform: scale(0.7) rotate(0deg);
  }

  50% {
    opacity: 1;
    transform: scale(1.15) rotate(-15deg);
  }
}

/* ==========================================================================
   FLASH SALE & CATEGORY SELECTION TABS
   ========================================================================== */
.flash-sale-card {
  border: 1px solid rgba(220, 53, 69, 0.4) !important;
  background: linear-gradient(135deg, rgba(20, 10, 10, 0.85) 0%, rgba(10, 5, 5, 0.85) 100%) !important;
  box-shadow: 0 0 30px rgba(220, 53, 69, 0.2) !important;
}

.flash-sale-badge-icon {
  font-size: 1.8rem;
  color: #ffc107;
  text-shadow: 0 0 10px #ffc107;
}

.flash-sale-title {
  font-family: "Segoe UI", Roboto, sans-serif;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: #fff;
  text-shadow: 0 0 10px rgba(220, 53, 69, 0.6);
}

.countdown-timer .timer-unit {
  background: #dc3545;
  color: #fff;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(220, 53, 69, 0.4);
}

.countdown-timer .timer-sep {
  color: #dc3545;
  font-weight: 700;
  animation: pulseScale 1s infinite;
}

.flash-sale-item-card {
  position: relative;
  border: 1px solid rgba(220, 53, 69, 0.25) !important;
  transition: all 0.3s ease !important;
  background: rgba(20, 15, 15, 0.6) !important;
}

.flash-sale-item-card:hover {
  transform: translateY(-4px);
  border-color: rgba(220, 53, 69, 0.6) !important;
  box-shadow: 0 10px 20px rgba(220, 53, 69, 0.15) !important;
}

.discount-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #dc3545;
  color: #fff;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 800;
  font-size: 0.82rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  z-index: 5;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.category-filter-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
}

.category-filter-tabs::-webkit-scrollbar {
  height: 4px;
}

.category-filter-tabs::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 10px;
}

.category-filter-tabs::-webkit-scrollbar-thumb {
  background: rgba(213, 170, 97, 0.3);
  border-radius: 10px;
}

.category-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 1rem;
  border-radius: 16px;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 246, 223, 0.75);
  background: rgba(255, 255, 255, 0.03);
  font-family: "Segoe UI", Roboto, sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.category-tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(213, 170, 97, 0.4);
  transform: translateY(-2px);
}

.category-tab-btn.active {
  color: #17130f !important;
  background: linear-gradient(135deg, #d5aa61 0%, #ffe0a3 100%) !important;
  border-color: #d5aa61 !important;
  box-shadow: 0 0 15px rgba(213, 170, 97, 0.45);
}

/* Global Monospace override to enforce a single consistent body font family */
.font-monospace,
code,
kbd,
pre,
samp {
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

/* ==========================================================================
   FLASH SALE CAROUSEL
   ========================================================================== */

.fs-carousel-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.fs-carousel-viewport {
  overflow: hidden;
  flex: 1;
  min-width: 0;
}

.fs-carousel-track {
  display: flex;
  gap: 0.65rem;
  transition: transform 0.38s cubic-bezier(0.25, 0.8, 0.25, 1);
  will-change: transform;
}

/* Each slide: 3 per view on desktop */
.fs-slide {
  flex: 0 0 calc((100% - 1.3rem) / 3);
  min-width: 0;
}

/* 1 per view on mobile — full width */
@media (max-width: 767.98px) {
  .fs-slide {
    flex: 0 0 calc((100% - 0.65rem) / 2);
  }

  .fs-item-card {
    padding: 0.5rem;
  }

  .fs-item-img-wrap .account-image-wrap {
    aspect-ratio: 16 / 9;
  }

  .fs-item-stats {
    font-size: 0.68rem;
    gap: 0.2rem;
    margin-bottom: 0.35rem;
  }

  .fs-item-stats div svg {
    width: 10px;
    height: 10px;
  }

  .fs-old-price {
    font-size: 0.68rem;
  }

  .fs-new-price {
    font-size: 0.95rem;
  }

  .fs-btn {
    padding: 0.4rem 0.3rem !important;
    font-size: 0.75rem !important;
  }

  .fs-carousel-btn {
    display: none !important;
  }
}

/* Prev / Next buttons - Hidden globally per user request */
.fs-carousel-btn {
  display: none !important;
}

/* Dots */
.fs-dots {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.fs-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: none;
  background: rgba(213, 170, 97, 0.3);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}

.fs-dot.active {
  background: #d5aa61;
  transform: scale(1.35);
}

/* Card layout — even spacing via flex column */
.fs-item-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0.6rem;
  border: 1px solid rgba(213, 170, 97, 0.22);
  border-radius: 8px;
  background: rgba(28, 24, 18, 0.92);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: border-color 0.18s, transform 0.18s;
}

.fs-item-card:hover {
  border-color: rgba(213, 170, 97, 0.5);
  transform: translateY(-2px);
}

/* Image wrap: relative for discount badge */
.fs-item-img-wrap {
  position: relative;
  margin-bottom: 0.55rem;
}

.fs-item-img-wrap .account-image-wrap {
  aspect-ratio: 16 / 10;
  display: block;
}

.fs-item-img-wrap .account-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fs-discount {
  position: absolute;
  top: 5px;
  left: 5px;
  z-index: 5;
  font-size: 0.7rem !important;
  padding: 0.12rem 0.32rem !important;
  border-radius: 4px !important;
}

/* Body: flex-grow to push button to bottom */
.fs-item-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 0.55rem;
}

.fs-item-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem;
}

/* Stats: 3 rows, consistent spacing */
.fs-item-stats {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
  font-family: "Segoe UI", Roboto, sans-serif;
}

.fs-item-stats div {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Price row at bottom of body */
.fs-item-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.fs-old-price {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.4);
  font-family: "Segoe UI", Roboto, sans-serif;
}

.fs-new-price {
  font-size: 0.95rem;
  font-weight: 900;
  color: #ffe875;
  font-family: "Segoe UI", Roboto, sans-serif;
}

/* SĂN NGAY button */
.fs-btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.45rem 0.5rem !important;
  font-size: 0.8rem !important;
  font-weight: 900 !important;
  border-radius: 6px !important;
  min-height: auto !important;
  text-decoration: none;
}

/* ==========================================================================
   DETAIL ACCOUNT SPECS PANEL
   ========================================================================== */
.detail-specs-panel {
  padding: 1.25rem;
  color: var(--body-text);
  background: var(--panel-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

/* ==========================================================================
   DISTINCT CTA BUTTONS OVERRIDES (RED, TEAL, GOLD)
   ========================================================================== */

/* 1. MUA NGAY (Trả thẳng) - Urgency Red Capsule */
.btn-animated-gaming {
  border: 1.5px solid rgba(255, 94, 71, 0.85) !important;
  color: #fff !important;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.3), 0 2px 2px rgba(0, 0, 0, 0.8) !important;
  background: linear-gradient(180deg, #ff7e75 0%, #d83d31 55%, #941c12 100%) !important;
  box-shadow:
    0 4px 10px rgba(0, 0, 0, 0.4),
    0 0 10px rgba(216, 61, 49, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

.btn-animated-gaming:hover {
  border-color: rgba(255, 151, 143, 0.95) !important;
  background: linear-gradient(180deg, #ff978f 0%, #e65245 55%, #b32519 100%) !important;
  box-shadow:
    0 6px 15px rgba(216, 61, 49, 0.45),
    0 0 15px rgba(255, 118, 105, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
}

/* 2. MUA TRẢ GÓP 0% - Tech Teal Capsule */
.btn-animated-shine {
  border: 1.5px solid rgba(45, 232, 223, 0.85) !important;
  color: #fff !important;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.3), 0 2px 2px rgba(0, 0, 0, 0.8) !important;
  background: linear-gradient(180deg, #6bfcf1 0%, #0b8f88 55%, #055450 100%) !important;
  box-shadow:
    0 4px 10px rgba(0, 0, 0, 0.4),
    0 0 10px rgba(11, 143, 136, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

.btn-animated-shine:hover {
  border-color: rgba(139, 253, 245, 0.95) !important;
  background: linear-gradient(180deg, #8bfdf5 0%, #0da69e 55%, #07716c 100%) !important;
  box-shadow:
    0 6px 15px rgba(11, 143, 136, 0.45),
    0 0 15px rgba(13, 166, 158, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
}

/* 3. Hỏi admin về tài khoản này - Premium Gold/Amber Capsule */
.outline-button {
  border: 1.5px solid rgba(213, 170, 97, 0.85) !important;
  color: #fff !important;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.3), 0 2px 2px rgba(0, 0, 0, 0.8) !important;
  background: linear-gradient(180deg, #ffe875 0%, #f5af19 55%, #d45d00 100%) !important;
  box-shadow:
    0 4px 10px rgba(0, 0, 0, 0.4),
    0 0 10px rgba(213, 170, 97, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

.outline-button:hover {
  border-color: rgba(255, 224, 163, 0.95) !important;
  background: linear-gradient(180deg, #ffe875 0%, #fcbe36 55%, #f17812 100%) !important;
  box-shadow:
    0 6px 15px rgba(213, 170, 97, 0.45),
    0 0 15px rgba(255, 224, 163, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
}

/* ==========================================================================
   POPUP MODAL FOOTER & UNIFORM BUTTON STYLES
   ========================================================================== */

.modal-footer {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 1rem !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  padding: 1.25rem 1.5rem !important;
}

/* Base button rules inside modal footer to make size identical */
.modal-footer .btn,
.modal-footer button,
.modal-footer a,
.modal-footer .btn-animated-gaming {
  min-width: 150px !important;
  height: 44px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-family: "Segoe UI", Roboto, sans-serif !important;
  font-weight: 700 !important;
  font-size: 0.85rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  border-radius: 6px !important;
  padding: 0 1.25rem !important;
  margin: 0 !important;
  transition: all 0.15s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
  cursor: pointer !important;
  box-shadow: none !important;
  position: relative !important;
  overflow: hidden !important;
}

/* Reset animated bracket absolute position inside fixed height buttons */
.modal-footer .btn-animated-gaming .menu-bracket {
  top: 50% !important;
  transform: translateY(-50%) !important;
}

/* Hủy / Cancel button style */
.modal-footer .btn-secondary,
.modal-footer [data-bs-dismiss="modal"] {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: rgba(235, 227, 207, 0.85) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6) !important;
}

.modal-footer .btn-secondary:hover,
.modal-footer [data-bs-dismiss="modal"]:hover {
  background: rgba(255, 255, 255, 0.16) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  color: #ffffff !important;
}

/* Xử lý / Submit button style */
.modal-footer .btn-gold,
.modal-footer [type="submit"],
.modal-footer .pretty-action {
  background: linear-gradient(135deg, #ffe875 0%, #f5af19 55%, #d45d00 100%) !important;
  border: 1px solid rgba(213, 170, 97, 0.5) !important;
  color: #0e0c0a !important;
  text-shadow: none !important;
}

.modal-footer .btn-gold:hover,
.modal-footer [type="submit"]:hover,
.modal-footer .pretty-action:hover {
  background: linear-gradient(135deg, #ffe875 0%, #fcbe36 55%, #f17812 100%) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 5px 15px rgba(213, 170, 97, 0.4) !important;
  color: #000000 !important;
}

.modal-footer .btn-gold:active,
.modal-footer [type="submit"]:active,
.modal-footer .pretty-action:active {
  transform: translateY(1px) !important;
}