@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@700&display=swap");

:root {
  --bg-1: #000000;
  --bg-2: #000000;
  --panel: rgba(8, 8, 8, 0.86);
  --panel-strong: rgba(10, 10, 10, 0.95);
  --border: rgba(224, 181, 84, 0.35);
  --text: #f5e8ca;
  --muted: #bfab80;
  --accent: #efc463;
  --accent-2: #bc8f37;
  --ok: #29c172;
  --warn: #f6bf51;
  --danger: #ff7171;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background: #000000;
  min-height: 100%;
}

body {
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: -25%;
  pointer-events: none;
  /* The golden glows that tinted the page brown were removed: the background is pure black. */
  background: #000000;
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, transparent 0, rgba(237, 191, 95, 0.04) 1px, transparent 1px),
    linear-gradient(transparent 0, rgba(237, 191, 95, 0.03) 1px, transparent 1px);
  background-size: 240px 100%, 100% 240px;
  opacity: 0.32;
  z-index: -1;
}

.shell {
  display: grid;
  grid-template-columns: 250px 1fr;
  min-height: 100vh;
}

.sidebar {
  border-right: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(6px);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.brand {
  font-weight: 800;
  letter-spacing: 0.05em;
  font-size: 18px;
}

.brand small {
  display: block;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.03em;
  margin-top: 4px;
}

.profile {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(43, 33, 18, 0.5);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(233, 193, 103, 0.45);
  background: #2f2416;
}

.avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fbe8bf;
}

.profile-name {
  font-size: 13px;
  margin: 0;
}

.profile-sub {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-btn {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  font-size: 14px;
}

.nav-btn:hover,
.nav-btn.active {
  color: #fff4db;
  border-color: var(--border);
  background: rgba(223, 179, 83, 0.14);
}

.sidebar-foot {
  margin-top: auto;
  color: var(--muted);
  font-size: 12px;
}

.main {
  padding: 20px;
}

.main.main-vip-mode {
  background:
    linear-gradient(180deg, rgba(10, 8, 6, 0.32), rgba(8, 6, 5, 0.46)),
    url("./assets/vip-mode-bg.png");
  background-size: cover;
  background-position: center calc(50% + 100px);
  background-repeat: no-repeat;
  background-attachment: fixed;
  border-radius: 12px;
}

.auth-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  gap: 24px;
}

.auth-logo {
  display: block;
  width: min(240px, 56vw);
  height: auto;
  margin: 0 auto;
}

.auth-panel {
  width: 100%;
  max-width: 460px;
}

.auth-form {
  grid-template-columns: 1fr;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.topbar h1 {
  margin: 0;
  font-size: 20px;
  letter-spacing: 0.03em;
}

.badge {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: #ffeab7;
  font-size: 12px;
  background: rgba(212, 163, 64, 0.12);
}

.grid {
  display: grid;
  gap: 14px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  backdrop-filter: blur(6px);
}

.panel h2,
.panel h3 {
  margin: 0 0 10px;
}

.muted {
  color: var(--muted);
}

.money {
  font-size: 34px;
  font-weight: 800;
  margin: 6px 0 0;
}

.trend {
  margin-top: 14px;
  height: 340px;
  border-radius: 10px;
  border: 1px solid rgba(222, 174, 79, 0.38);
  background: linear-gradient(180deg, rgba(20, 20, 20, 0.92), rgba(12, 12, 12, 0.96));
  position: relative;
  overflow: hidden;
}

.trend::before {
  content: "";
  position: absolute;
  inset: 35% -6% -28% -6%;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(229, 183, 90, 0.16) 0 2px,
      transparent 2px 34px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(229, 183, 90, 0.16) 0 2px,
      transparent 2px 34px
    );
  transform: perspective(520px) rotateX(64deg);
  transform-origin: top;
  opacity: 0.18;
  pointer-events: none;
}

.trend::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, rgba(16, 13, 10, 0.14), rgba(10, 8, 6, 0.24)),
    url("./assets/exampleGraph.png"),
    url("./assets/exampleGraph.png");
  background-size: cover, 82% auto, cover;
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-position: center, center calc(50% + 4px), center calc(47.3% + 4px);
  opacity: 0.97;
  mix-blend-mode: normal;
  filter: sepia(0.1) saturate(1.05) hue-rotate(-4deg) brightness(0.62) contrast(1.04);
  pointer-events: none;
}

.trend-svg {
  width: 100%;
  height: 100%;
  display: block;
  position: relative;
  z-index: 2;
}

.trend-grid {
  stroke: rgba(239, 197, 101, 0.3);
  stroke-width: 1;
}

.trend-axis-label {
  font-size: 8px;
  fill: rgba(255, 236, 180, 0.92);
}

.trend-area {
  fill: rgba(233, 191, 96, 0.17);
}

.trend-line {
  fill: none;
  stroke: url(#trend-line-main);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 7px rgba(236, 192, 90, 0.65));
}

.trend-line-alt {
  fill: none;
  stroke: url(#trend-line-alt);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.82;
  filter: drop-shadow(0 0 5px rgba(246, 202, 115, 0.42));
}

.trend-scan-line {
  stroke: rgba(255, 210, 112, 0.56);
  stroke-width: 1.4;
  filter: drop-shadow(0 0 8px rgba(255, 200, 96, 0.7));
}

.button {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border: 0;
  color: #19130c;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
}

.button:hover {
  filter: brightness(1.05);
}

.button.secondary {
  background: rgba(72, 54, 28, 0.35);
  border: 1px solid var(--border);
  color: #f8e8c1;
}

.button.ghost {
  background: rgba(25, 20, 14, 0.3);
  border: 1px solid var(--border);
  color: #f8e8c1;
}

.button.warn {
  background: linear-gradient(90deg, #ffd26a, #c9963a);
  color: #1e160a;
}

.button-wrap {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.locked-card,
.active-card {
  border-radius: 12px;
  min-height: 160px;
  border: 1px solid rgba(224, 180, 87, 0.3);
  padding: 14px;
  position: relative;
  overflow: hidden;
}

.locked-card {
  background: linear-gradient(120deg, rgba(78, 58, 29, 0.45), rgba(35, 27, 16, 0.22));
  filter: blur(0.35px) saturate(0.85);
}

.locked-card::after {
  content: "LOCKED";
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 10px;
  padding: 4px 8px;
  background: rgba(18, 14, 10, 0.86);
  border: 1px solid rgba(237, 194, 96, 0.35);
  border-radius: 999px;
}

.active-card {
  background: linear-gradient(122deg, rgba(109, 79, 36, 0.34), rgba(62, 44, 24, 0.28));
}

.active-card-locked-only {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 330px;
  background: transparent;
  border: 0;
  padding: 0;
  overflow: visible;
}

.locked-silver-card {
  position: relative;
  width: min(88%, 520px);
  aspect-ratio: 1.76 / 1;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(224, 181, 84, 0.45);
  background: linear-gradient(145deg, rgba(62, 45, 19, 0.32), rgba(17, 14, 10, 0.36));
  animation: lockedCardFloat 3.2s ease-in-out infinite;
  transition: box-shadow 220ms ease, border-color 220ms ease, filter 220ms ease;
}

.locked-silver-card-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.88) contrast(1.08) saturate(1.05);
  transform: scale(1.02);
}

.locked-silver-card::before {
  content: "";
  position: absolute;
  z-index: 5;
  inset: -20% -40%;
  background: linear-gradient(115deg, transparent 35%, rgba(242, 248, 255, 0.5) 50%, transparent 65%);
  transform: translateX(-65%);
  opacity: 0;
  transition: opacity 220ms ease;
  pointer-events: none;
}

.locked-silver-card::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  background:
    linear-gradient(140deg, rgba(13, 11, 9, 0.2), rgba(7, 6, 5, 0.34)),
    radial-gradient(circle at 72% 24%, rgba(255, 214, 132, 0.18), transparent 46%);
  pointer-events: none;
}

.locked-card-front-overlay {
  position: absolute;
  z-index: 4;
  left: 64px;
  right: 14px;
  bottom: 43px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 10px;
  pointer-events: none;
}

.locked-card-front-ghost {
  position: absolute;
  z-index: 4;
  left: 52px;
  right: 22px;
  bottom: 50px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 10px;
  pointer-events: none;
}

.locked-card-ghost-number,
.locked-card-ghost-valid {
  display: inline-block;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(240, 202, 123, 0.22), rgba(240, 202, 123, 0.52), rgba(240, 202, 123, 0.22));
  filter: blur(0.35px);
  box-shadow: 0 0 9px rgba(240, 202, 123, 0.26);
  animation: lockedGhostShake 1.25s ease-in-out infinite;
}

.locked-card-ghost-number {
  width: 280px;
  height: 22px;
}

.locked-card-ghost-valid {
  width: 74px;
  height: 14px;
  transform: translate(-56px, -6px);
  animation-name: lockedGhostShakeAlt;
}

.locked-card-front-number {
  display: inline-block;
  padding: 3px 1px;
  line-height: 1;
  border-radius: 1px;
  background: rgba(0, 0, 0, 0.78);
  font-family: "Cinzel", serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #f0ca7b;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}

.locked-card-front-valid {
  display: inline-block;
  padding: 3px 1px;
  line-height: 1;
  border-radius: 1px;
  background: rgba(0, 0, 0, 0.78);
  font-family: "Cinzel", serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #f0ca7b;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
  transform: translate(-70px, -5.3px);
}

.locked-silver-card:hover {
  border-color: rgba(245, 212, 138, 0.72);
  box-shadow: 0 0 22px rgba(229, 188, 95, 0.32), 0 8px 22px rgba(0, 0, 0, 0.42);
  filter: brightness(1.03);
}

.locked-silver-card:hover::before {
  opacity: 1;
  animation: lockedCardSweep 1s ease-out;
}

.locked-card-actions {
  width: min(88%, 520px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.locked-card-actions-single {
  grid-template-columns: minmax(0, 1fr);
}

.active-card-unlock-only {
  min-height: 0;
}

.dashboard-card-art {
  width: min(88%, 520px);
  margin: 0 auto;
  animation: lockedCardFloat 3.2s ease-in-out infinite;
}

.dashboard-card-art .tier-card-preview {
  margin-bottom: 0;
}

/* Rotate button: the card turns over to show its back (rotated_card.png) and back again. */
.dashboard-card-art {
  perspective: 1400px;
}

.card-flip {
  position: relative;
  aspect-ratio: 1.76 / 1;
  transform-style: preserve-3d;
  transition: transform 750ms cubic-bezier(0.45, 0.05, 0.25, 1);
}

.card-flip.is-flipped {
  transform: rotateY(180deg);
}

.card-face {
  position: absolute;
  inset: 0;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.card-face-back {
  transform: rotateY(180deg);
}

.card-face .tier-card-preview {
  width: 100%;
  height: 100%;
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  .card-flip {
    transition: none;
  }
}

.dashboard-card-info {
  width: min(88%, 520px);
  text-align: center;
}

.dashboard-card-info p {
  margin: 6px 0 0;
}

.locked-card-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid rgba(224, 181, 84, 0.34);
  border-radius: 10px;
  background: rgba(13, 11, 8, 0.78);
  color: #efd8a2;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: border-color 200ms ease, background 200ms ease, box-shadow 200ms ease;
}

.locked-card-action:hover {
  border-color: rgba(245, 212, 138, 0.7);
  background: rgba(58, 43, 18, 0.45);
  box-shadow: 0 0 16px rgba(229, 188, 95, 0.2);
}

.locked-card-action-gold {
  border-color: rgba(232, 187, 91, 0.76);
  background: linear-gradient(90deg, rgba(235, 191, 91, 0.96), rgba(182, 132, 49, 0.96));
  color: #1d1509;
}

.locked-card-action-gold:hover {
  background: linear-gradient(90deg, rgba(246, 206, 109, 0.98), rgba(198, 147, 62, 0.98));
  box-shadow: 0 0 16px rgba(229, 188, 95, 0.34);
}

.locked-card-action-icon {
  font-size: 14px;
  line-height: 1;
}

.locked-cashout-panel {
  width: min(88%, 520px);
  border: 1px solid rgba(224, 181, 84, 0.24);
  border-radius: 12px;
  background: rgba(15, 12, 9, 0.86);
  padding: 12px 14px 10px;
}

.locked-cashout-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #ead2a2;
  display: flex;
  align-items: center;
  gap: 8px;
}

.locked-cashout-sub {
  margin: 8px 0 10px;
  color: var(--muted);
  font-size: 13px;
}

.locked-cashout-button {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border-radius: 9px;
  border: 1px solid rgba(232, 187, 91, 0.5);
  background: linear-gradient(90deg, rgba(122, 95, 44, 0.32), rgba(84, 64, 28, 0.4));
  color: #efd8a2;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 200ms ease, background 200ms ease, box-shadow 200ms ease;
}

.locked-cashout-button:hover {
  border-color: rgba(245, 212, 138, 0.74);
  background: linear-gradient(90deg, rgba(148, 112, 45, 0.42), rgba(102, 76, 33, 0.52));
  box-shadow: 0 0 14px rgba(224, 181, 84, 0.24);
}

@keyframes lockedGhostShake {
  0%,
  100% {
    transform: translate(0, 2px);
    opacity: 0.7;
  }
  30% {
    transform: translate(-1.5px, 2.6px);
    opacity: 0.9;
  }
  55% {
    transform: translate(1.8px, 1.4px);
    opacity: 0.78;
  }
  80% {
    transform: translate(-1px, 2.8px);
    opacity: 0.86;
  }
}

@keyframes lockedGhostShakeAlt {
  0%,
  100% {
    transform: translate(-30px, -1px);
    opacity: 0.68;
  }
  35% {
    transform: translate(-30px, -0.4px);
    opacity: 0.88;
  }
  60% {
    transform: translate(-30px, -1.8px);
    opacity: 0.77;
  }
  85% {
    transform: translate(-30px, -0.6px);
    opacity: 0.84;
  }
}

@keyframes lockedCardFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

@keyframes lockedCardSweep {
  from {
    transform: translateX(-65%);
  }
  to {
    transform: translateX(65%);
  }
}

.status-good {
  color: var(--ok);
}

.status-pending {
  color: #ffd472;
}

.status-danger {
  color: var(--danger);
}

.spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: #f1c76a;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  display: inline-block;
  vertical-align: middle;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.cards-deck {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.tier-card {
  background: var(--panel-strong);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  transform-style: preserve-3d;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  animation: floaty 3.5s ease-in-out infinite;
}

.tier-card.center {
  transform: scale(1.03);
  border-color: rgba(224, 181, 84, 0.55);
  box-shadow: 0 14px 24px rgba(181, 131, 49, 0.25);
}

.tier-card:hover {
  transform: rotateY(7deg) translateY(-4px);
  box-shadow: 0 18px 28px rgba(196, 145, 62, 0.32);
}

.tier-card h3 {
  margin: 8px 0;
}

.tier-card-preview {
  position: relative;
  aspect-ratio: 1.76 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  overflow: hidden;
  margin-bottom: 12px;
  background: #121212;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.tier-card-art {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 11px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.46);
}

.tier-card-tint,
.tier-card-glow {
  position: absolute;
  inset: 0;
  border-radius: 11px;
  pointer-events: none;
  z-index: 3;
}

.tier-card-tint {
  mix-blend-mode: multiply;
  opacity: 0.86;
}

.tier-bronze .tier-card-art {
  filter: sepia(0.96) saturate(1.72) hue-rotate(-18deg) brightness(0.82) contrast(1.14);
}

.tier-bronze .tier-card-tint {
  mix-blend-mode: multiply;
  background:
    linear-gradient(130deg, rgba(66, 35, 14, 0.7), rgba(161, 100, 44, 0.28)),
    repeating-linear-gradient(103deg, rgba(255, 241, 210, 0.12) 0 2px, transparent 2px 11px);
}

.tier-bronze .tier-card-glow {
  background: radial-gradient(circle at 78% 26%, rgba(255, 226, 168, 0.14), transparent 42%);
  filter: blur(1px);
}

.tier-silver .tier-card-art {
  filter: grayscale(0.05) saturate(1.08) hue-rotate(174deg) brightness(1.02) contrast(1.08);
}

.tier-silver .tier-card-tint {
  mix-blend-mode: screen;
  background:
    linear-gradient(130deg, rgba(12, 42, 102, 0.24), rgba(145, 198, 255, 0.08)),
    radial-gradient(circle at 22% 70%, rgba(166, 220, 255, 0.16), transparent 45%);
}

.tier-silver .tier-card-glow {
  background:
    radial-gradient(circle at 78% 24%, rgba(112, 209, 255, 0.38), transparent 44%),
    radial-gradient(circle at 26% 72%, rgba(124, 194, 255, 0.2), transparent 46%);
  filter: blur(1.4px);
}

.tier-black .tier-card-art {
  filter: grayscale(0.06) sepia(0.22) saturate(1.2) hue-rotate(-4deg) brightness(0.92) contrast(1.1);
}

.tier-black .tier-card-tint {
  mix-blend-mode: soft-light;
  background:
    linear-gradient(132deg, rgba(8, 8, 8, 0.26), rgba(101, 70, 23, 0.22)),
    repeating-linear-gradient(103deg, rgba(255, 226, 150, 0.1) 0 2px, transparent 2px 11px);
}

.tier-black .tier-card-glow {
  background:
    radial-gradient(circle at 78% 24%, rgba(255, 218, 132, 0.38), transparent 42%),
    radial-gradient(circle at 25% 72%, rgba(255, 196, 82, 0.22), transparent 46%);
  filter: blur(1.4px);
}

.tier-card ul {
  padding-left: 18px;
  margin-top: 8px;
}

.tier-card li {
  margin: 6px 0;
  color: var(--muted);
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

.vip-panel {
  background: linear-gradient(115deg, rgba(87, 61, 24, 0.35), rgba(56, 40, 20, 0.3));
  border: 1px solid rgba(227, 184, 88, 0.45);
}

.vip-schedule-topbar h1 {
  color: #ffe7b3;
  text-shadow: 0 0 16px rgba(228, 186, 92, 0.32);
}

.vip-schedule-panel {
  background: linear-gradient(135deg, rgba(24, 19, 13, 0.2), rgba(10, 8, 6, 0.26));
  border-color: rgba(235, 194, 103, 0.64);
  box-shadow: inset 0 0 0 1px rgba(255, 222, 152, 0.08), 0 10px 24px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(1px);
}

.vip-date-trigger {
  border-color: rgba(235, 194, 103, 0.58);
  background: rgba(17, 14, 10, 0.28);
}

.vip-time-select {
  border-color: rgba(235, 194, 103, 0.58) !important;
  background: rgba(17, 14, 10, 0.34) !important;
  color: #ffe1a3 !important;
}

.vip-gold-button {
  border: 1px solid rgba(235, 194, 103, 0.75);
  background: linear-gradient(90deg, #f0c76d, #c5913a);
  color: #20160a;
  box-shadow: 0 0 16px rgba(224, 181, 84, 0.3);
}

.vip-gold-button:hover {
  filter: brightness(1.08);
}

.vip-cancel-button {
  border: 1px solid rgba(235, 194, 103, 0.48);
  background: rgba(36, 27, 14, 0.76);
  color: #f6dfad;
}

.booking-success-panel {
  position: relative;
  overflow: hidden;
  border-color: rgba(231, 187, 88, 0.55);
  background: linear-gradient(145deg, rgba(15, 12, 9, 0.92), rgba(8, 6, 5, 0.94));
}

.booking-success-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 10, 8, 0.46), rgba(8, 7, 5, 0.8)),
    url("./assets/booking-congrats-bg.png");
  background-size: cover;
  background-position: center;
  opacity: 0.52;
  pointer-events: none;
}

.booking-success-content {
  position: relative;
  z-index: 2;
}

.booking-ticket-label {
  margin: 0 0 4px;
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #e3bd73;
}

.booking-ticket-id {
  margin: 0 0 8px;
  font-size: 28px;
  letter-spacing: 0.04em;
  color: #ffe7b3;
}

.booking-detail-line {
  margin: 0 0 4px;
}

.zoom-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 12px 0;
  padding: 12px 14px;
  border: 1px solid rgba(214, 177, 91, 0.45);
  border-radius: 12px;
  background: rgba(214, 177, 91, 0.1);
  text-align: left;
}

.zoom-notice-icon {
  font-size: 22px;
  line-height: 1.2;
}

.zoom-notice strong {
  display: block;
  margin-bottom: 2px;
}

.zoom-notice p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.booking-disclaimer {
  margin: 8px 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 11px;
  line-height: 1.35;
  color: #ffd0d0;
}

.booking-disclaimer-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(209, 49, 49, 0.25);
  border: 1px solid rgba(255, 90, 90, 0.7);
  color: #ff6464;
  font-weight: 800;
  line-height: 1;
  animation: bookingWarnShake 4.8s ease-in-out infinite;
}

@keyframes bookingWarnShake {
  0%,
  78%,
  100% {
    transform: translateX(0) rotate(0deg);
  }
  82% {
    transform: translateX(-1px) rotate(-10deg);
  }
  86% {
    transform: translateX(1px) rotate(10deg);
  }
  90% {
    transform: translateX(-0.6px) rotate(-6deg);
  }
  94% {
    transform: translateX(0.6px) rotate(6deg);
  }
}

.booking-confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  overflow: hidden;
}

.booking-confetti-piece {
  position: absolute;
  top: -22px;
  width: var(--piece-size);
  height: calc(var(--piece-size) * 1.8);
  border-radius: 2px;
  background: linear-gradient(180deg, #ffedbe, #d09a3e);
  opacity: 0.8;
  animation: bookingConfettiFall var(--fall-duration) linear infinite;
  animation-delay: var(--fall-delay);
  transform: translateY(-20px) rotate(var(--piece-rotate));
}

@keyframes bookingConfettiFall {
  0% {
    transform: translateY(-20px) rotate(var(--piece-rotate));
    opacity: 0;
  }
  8% {
    opacity: 0.88;
  }
  100% {
    transform: translateY(120%) rotate(calc(var(--piece-rotate) + 200deg));
    opacity: 0;
  }
}

.form-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  color: var(--muted);
  font-size: 12px;
}

.field input,
.field textarea,
.field select {
  border: 1px solid var(--border);
  background: rgba(21, 16, 11, 0.84);
  color: var(--text);
  border-radius: 10px;
  padding: 10px;
}

.date-picker-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(224, 181, 84, 0.35);
  border-radius: 10px;
  padding: 10px 12px;
  background: rgba(15, 12, 9, 0.86);
}

.date-picker-value {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.schedule-modal-box {
  max-width: 680px;
}

.schedule-modal-body {
  padding: 20px 22px 24px;
}

.calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 12px 0 10px;
  padding: 8px 0;
  border-top: 1px solid rgba(224, 181, 84, 0.22);
  border-bottom: 1px solid rgba(224, 181, 84, 0.22);
}

.calendar-head strong {
  color: #f5ddb0;
  font-size: 18px;
}

.calendar-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.calendar-year-select {
  border: 1px solid rgba(224, 181, 84, 0.45);
  background: rgba(18, 15, 11, 0.88);
  color: #f5ddb0;
  border-radius: 8px;
  padding: 6px 10px;
  font-weight: 700;
}

.calendar-year-select:focus {
  outline: none;
  border-color: rgba(245, 212, 138, 0.9);
  box-shadow: 0 0 0 2px rgba(224, 181, 84, 0.2);
}

.calendar-nav-btn {
  min-width: 36px;
  min-height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(224, 181, 84, 0.45);
  background: rgba(18, 15, 11, 0.88);
  color: #f1cc83;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.calendar-weekdays {
  margin-bottom: 6px;
}

.calendar-weekdays span {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}

.calendar-cell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 8px;
  border: 1px solid rgba(224, 181, 84, 0.24);
  background: rgba(13, 11, 8, 0.8);
  color: #f5e0b7;
  cursor: pointer;
}

.calendar-cell.empty {
  border: 1px solid transparent;
  background: transparent;
  cursor: default;
}

.calendar-cell.locked {
  position: relative;
  color: #7f6a42;
  border-color: rgba(128, 99, 44, 0.2);
  background: rgba(12, 10, 8, 0.55);
  cursor: not-allowed;
}

.calendar-cell.locked:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  min-width: 220px;
  max-width: 260px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(224, 181, 84, 0.45);
  background: rgba(8, 7, 5, 0.96);
  color: #f0d9ab;
  font-size: 11px;
  line-height: 1.35;
  text-align: center;
  pointer-events: none;
  z-index: 8;
}

.calendar-cell.locked:hover::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 2px);
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(224, 181, 84, 0.45);
  pointer-events: none;
  z-index: 8;
}

.calendar-cell.selected {
  border-color: rgba(245, 212, 138, 0.85);
  background: linear-gradient(90deg, rgba(223, 179, 83, 0.24), rgba(170, 126, 46, 0.3));
  box-shadow: 0 0 12px rgba(224, 181, 84, 0.24);
}

.field textarea {
  min-height: 100px;
  resize: vertical;
}

.field.full {
  grid-column: 1 / -1;
}

.locations {
  display: grid;
  gap: 8px;
}

.loc {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  background: rgba(22, 17, 12, 0.56);
}

.map-mock {
  border: 1px dashed rgba(224, 181, 88, 0.45);
  border-radius: 12px;
  min-height: 170px;
  position: relative;
  background:
    radial-gradient(circle at 15% 20%, rgba(231, 188, 94, 0.25), transparent 18%),
    radial-gradient(circle at 55% 48%, rgba(199, 145, 52, 0.28), transparent 16%),
    radial-gradient(circle at 72% 28%, rgba(250, 211, 129, 0.2), transparent 14%),
    linear-gradient(135deg, rgba(24, 18, 11, 0.86), rgba(17, 13, 9, 0.8));
}

.locations-map {
  width: 100%;
  height: 300px;
  border: 1px solid rgba(224, 181, 88, 0.42);
  border-radius: 12px;
  overflow: hidden;
}

.map-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: stretch;
  background: rgba(14, 11, 8, 0.85);
}

.map-fallback-empty {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d8be88;
  font-size: 13px;
}

.map-fallback-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.map-fallback-note {
  margin: 0;
  padding: 6px 8px;
  color: #d8be88;
  font-size: 11px;
  background: rgba(8, 7, 5, 0.85);
  border-top: 1px solid rgba(224, 181, 88, 0.22);
}

.locations-map .leaflet-control-attribution {
  background: rgba(8, 7, 5, 0.78);
  color: #d8be88;
  font-size: 10px;
}

.locations-map .leaflet-popup-content-wrapper,
.locations-map .leaflet-popup-tip {
  background: rgba(15, 12, 8, 0.94);
  color: #f3e0b7;
  border: 1px solid rgba(224, 181, 88, 0.34);
}

.leaflet-redemption-pin-wrap {
  background: transparent;
  border: 0;
}

.leaflet-redemption-pin {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(180deg, #f1c973, #c98f31);
  border: 1px solid rgba(95, 60, 19, 0.5);
  color: #22170a;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  user-select: none;
  pointer-events: none;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  box-shadow: 0 0 10px rgba(234, 187, 86, 0.55);
}

.leaflet-redemption-pin.selected {
  background: linear-gradient(180deg, #ffe7b4, #d7a74b);
  box-shadow: 0 0 14px rgba(250, 214, 135, 0.85);
}

.leaflet-redemption-pin::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 8px;
  height: 8px;
  transform: translateX(-50%) rotate(45deg);
  background: #c98f31;
  border-right: 1px solid rgba(95, 60, 19, 0.5);
  border-bottom: 1px solid rgba(95, 60, 19, 0.5);
}

.agent-photo {
  width: 100%;
  max-width: 240px;
  min-height: 180px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--border);
  background: rgba(20, 15, 10, 0.9);
}

.agent-photo-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 12px;
}

.about-content p {
  line-height: 1.55;
  color: #f1dfb8;
}

.about-content h3 {
  margin-top: 16px;
}

.inline-note {
  font-size: 13px;
  color: var(--muted);
}

.tiny {
  font-size: 11px;
  color: var(--muted);
}

.card-status-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.card-status-head h3 {
  margin: 0;
}

.card-status-note {
  font-size: 12px;
  font-style: italic;
  color: var(--muted);
}

.account-status-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.account-status-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid transparent;
}

.account-status-chip.active {
  color: #b7ffd8;
  background: rgba(27, 122, 67, 0.25);
  border-color: rgba(76, 214, 143, 0.45);
}

.account-status-chip.inactive {
  color: #ffb6b6;
  background: rgba(135, 30, 30, 0.22);
  border-color: rgba(255, 114, 114, 0.4);
}

.admin-booking-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid transparent;
}

.admin-booking-chip.pending {
  color: #ffe0a3;
  background: rgba(149, 107, 31, 0.28);
  border-color: rgba(246, 191, 81, 0.48);
}

.admin-booking-chip.confirmed {
  color: #bff9d8;
  background: rgba(27, 122, 67, 0.25);
  border-color: rgba(76, 214, 143, 0.45);
}

.admin-booking-chip.none {
  color: #cab58a;
  background: rgba(64, 49, 25, 0.22);
  border-color: rgba(180, 147, 83, 0.35);
}

.admin-user-actions {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.set-user-balance-form {
  display: flex;
  align-items: center;
  gap: 6px;
}

.set-user-balance-form input {
  width: 120px;
  padding: 6px 8px;
  font-size: 12px;
}

.admin-user-search {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.admin-user-search input {
  flex: 1 1 220px;
  max-width: 360px;
  padding: 8px 10px;
  font-size: 13px;
}

.admin-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 14px;
}

.admin-pager button[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}

.set-user-agent-link-form input {
  width: 190px;
}

.admin-user-confirm-btn {
  padding: 6px 10px;
  font-size: 11px;
  border-radius: 8px;
}

.dashboard-empty-slot {
  min-height: 1px;
}

.login-panel {
  display: grid;
  gap: 8px;
  align-content: start;
}

.login-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.login-head h3 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.login-head-icon {
  color: var(--accent);
}

.login-badge {
  border: 1px solid rgba(41, 193, 114, 0.5);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ok);
  background: rgba(41, 193, 114, 0.08);
  white-space: nowrap;
}

.login-badge.pending {
  border-color: rgba(246, 191, 81, 0.5);
  color: var(--warn);
  background: rgba(246, 191, 81, 0.08);
}

.login-value {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.login-field-empty {
  color: var(--muted);
  font-weight: 500;
  font-style: italic;
}

.login-field-icon {
  color: var(--accent);
  opacity: 0.75;
}

.login-label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
}

.login-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(224, 181, 84, 0.22);
  border-radius: 8px;
  background: rgba(8, 7, 5, 0.85);
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.login-reveal {
  background: transparent;
  border: 0;
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-decoration: underline;
  cursor: pointer;
}

.login-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
  border: 1px solid rgba(224, 181, 84, 0.3);
  border-radius: 10px;
  background: rgba(223, 179, 83, 0.07);
  padding: 14px 16px;
}

.login-notice p {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

.login-notice-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(224, 181, 84, 0.5);
  border-radius: 8px;
  background: rgba(8, 7, 5, 0.6);
  color: var(--accent);
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 200ms ease, box-shadow 200ms ease;
}

.login-notice-btn:hover {
  background: rgba(223, 179, 83, 0.16);
  box-shadow: 0 0 14px rgba(224, 181, 84, 0.22);
}

.shell-dimmed {
  filter: blur(5px) brightness(0.6);
  pointer-events: none;
  user-select: none;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
  background: rgba(4, 3, 2, 0.72);
}

.modal-box {
  width: 100%;
  max-width: 520px;
  border-radius: 16px;
  border: 1px solid rgba(224, 181, 84, 0.55);
  background: #050505;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(224, 181, 84, 0.4);
}

.modal-head h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.modal-close {
  background: transparent;
  border: 0;
  color: var(--accent);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}

.modal-body {
  display: grid;
  gap: 16px;
  padding: 20px 22px 24px;
}

.modal-group {
  display: grid;
  gap: 12px;
  border-radius: 12px;
  border: 1px solid rgba(224, 181, 84, 0.22);
  background: rgba(17, 14, 10, 0.75);
  padding: 16px;
}

.modal-group h3 {
  margin: 0;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.modal-group p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}

.modal-option {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(224, 181, 84, 0.6);
  background: #050505;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 200ms ease, box-shadow 200ms ease;
}

.modal-option:hover {
  background: rgba(223, 179, 83, 0.14);
  box-shadow: 0 0 16px rgba(224, 181, 84, 0.25);
}

.modal-option.primary {
  border-color: transparent;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #19130c;
}

/* The collapse button only exists on narrow screens / phones. */
.sidebar-toggle {
  display: none;
}

@media (max-width: 980px) {
  /* Keep the menu on the left side (no more menu on top). */
  .shell {
    grid-template-columns: clamp(150px, 42vw, 230px) minmax(0, 1fr);
  }

  .shell.sidebar-collapsed {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 10px;
    gap: 12px;
    border-right: 1px solid var(--border);
    border-bottom: none;
  }

  .sidebar-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: flex-end;
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(223, 179, 83, 0.14);
    color: #fff4db;
    font-size: 16px;
    cursor: pointer;
  }

  .sidebar-toggle:hover {
    background: rgba(223, 179, 83, 0.28);
  }

  .shell.sidebar-collapsed .sidebar {
    padding: 8px 7px;
    align-items: center;
  }

  .shell.sidebar-collapsed .sidebar > :not(.sidebar-toggle) {
    display: none;
  }

  .sidebar .brand {
    font-size: 14px;
  }

  .sidebar .brand small {
    font-size: 11px;
  }

  .sidebar .profile {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 8px;
  }

  .sidebar .nav-btn {
    padding: 9px 10px;
    font-size: 13px;
    overflow-wrap: anywhere;
  }

  .sidebar .sidebar-foot {
    font-size: 11px;
  }

  .main {
    padding: 12px;
    min-width: 0;
  }

  .grid-2,
  .grid-3,
  .cards-deck,
  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .panel,
  .grid > *,
  .form-grid > * {
    min-width: 0;
  }

  .login-head {
    flex-wrap: wrap;
  }

  .dashboard-empty-slot {
    display: none;
  }

  .date-picker-trigger {
    flex-direction: column;
    align-items: stretch;
  }

  .schedule-modal-box {
    max-width: 96vw;
  }
}

/* ==========================================================================
   PREMIUM GOLD LAYER
   Shiny, metallic gold on a black background. Placed last so it refines the
   older gold styles above without changing the layout.
   ========================================================================== */
:root {
  --accent: #f6d67d;
  --accent-2: #c8942f;
  --border: rgba(238, 196, 98, 0.42);
  --gold-metal: linear-gradient(
    115deg,
    #8c6420 0%,
    #c99a3a 14%,
    #f4d77f 28%,
    #fff6c9 38%,
    #f1c864 48%,
    #b98a2e 64%,
    #e9c15e 80%,
    #8c6420 100%
  );
  --gold-glow: 0 0 18px rgba(240, 190, 80, 0.38);
}

@keyframes goldShimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 220% 50%; }
}

@keyframes goldSweep {
  0% { transform: translateX(-130%) skewX(-20deg); }
  55%, 100% { transform: translateX(260%) skewX(-20deg); }
}

@keyframes goldPulse {
  0%, 100% { box-shadow: 0 0 10px rgba(240, 190, 80, 0.28), inset 0 1px 0 rgba(255, 246, 201, 0.6); }
  50% { box-shadow: 0 0 22px rgba(255, 214, 120, 0.55), inset 0 1px 0 rgba(255, 246, 201, 0.85); }
}

/* --- Gold text: brand, page titles and the big amount --- */
.brand,
.topbar h1,
.money,
.auth-panel h2 {
  background: var(--gold-metal);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: goldShimmer 7s linear infinite;
  filter: drop-shadow(0 0 8px rgba(240, 190, 80, 0.25));
}

.brand small {
  -webkit-text-fill-color: var(--muted);
  color: var(--muted);
}

/* --- Shiny gold buttons (primary actions) --- */
.button:not(.secondary):not(.ghost):not(.vip-cancel-button),
.locked-card-action-gold,
.vip-gold-button,
.modal-option.primary {
  position: relative;
  overflow: hidden;
  background: var(--gold-metal);
  background-size: 220% 100%;
  animation: goldShimmer 6s linear infinite, goldPulse 3.4s ease-in-out infinite;
  border: 1px solid rgba(255, 232, 160, 0.75);
  color: #1b1307;
  text-shadow: 0 1px 0 rgba(255, 244, 200, 0.55);
  box-shadow: 0 0 12px rgba(240, 190, 80, 0.3), inset 0 1px 0 rgba(255, 246, 201, 0.7);
  transition: transform 160ms ease, filter 160ms ease;
}

.button:not(.secondary):not(.ghost):not(.vip-cancel-button)::after,
.locked-card-action-gold::after,
.vip-gold-button::after,
.modal-option.primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 38%;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: translateX(-130%) skewX(-20deg);
  animation: goldSweep 4.8s ease-in-out infinite;
}

.button:not(.secondary):not(.ghost):not(.vip-cancel-button):hover,
.locked-card-action-gold:hover,
.vip-gold-button:hover,
.modal-option.primary:hover {
  filter: brightness(1.1) saturate(1.1);
  transform: translateY(-1px);
}

.button:disabled {
  animation: none;
  filter: grayscale(0.6) brightness(0.8);
  cursor: not-allowed;
}

.button:disabled::after {
  display: none;
}

/* --- Outlined / secondary buttons get a gold edge and glow on hover --- */
.button.secondary,
.button.ghost,
.locked-card-action:not(.locked-card-action-gold),
.locked-cashout-button {
  border-color: rgba(238, 196, 98, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 236, 170, 0.14);
}

.button.secondary:hover,
.button.ghost:hover,
.locked-card-action:not(.locked-card-action-gold):hover,
.locked-cashout-button:hover {
  border-color: rgba(255, 226, 140, 0.95);
  box-shadow: var(--gold-glow), inset 0 1px 0 rgba(255, 236, 170, 0.3);
}

/* --- Panels: fine gold edge, soft glow and a metallic top highlight --- */
.panel,
.sidebar .profile,
.tier-card {
  border-color: rgba(238, 196, 98, 0.46);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.65),
    0 0 18px rgba(238, 190, 80, 0.07),
    inset 0 1px 0 rgba(255, 238, 180, 0.28);
}

.panel:hover,
.tier-card:hover {
  border-color: rgba(255, 220, 130, 0.7);
  box-shadow:
    0 12px 34px rgba(0, 0, 0, 0.7),
    0 0 26px rgba(240, 190, 80, 0.16),
    inset 0 1px 0 rgba(255, 244, 200, 0.4);
}

/* --- Sidebar: glowing gold divider, shiny active item and avatar --- */
.sidebar {
  border-right: 1px solid rgba(238, 196, 98, 0.5);
  box-shadow: 6px 0 28px rgba(240, 190, 80, 0.07);
}

.nav-btn:hover,
.nav-btn.active {
  color: #fff6d6;
  border-color: rgba(255, 220, 130, 0.65);
  background: linear-gradient(90deg, rgba(240, 196, 98, 0.26), rgba(240, 196, 98, 0.07));
  box-shadow: inset 0 1px 0 rgba(255, 240, 190, 0.3), 0 0 14px rgba(240, 190, 80, 0.16);
}

.avatar {
  border: 1px solid rgba(255, 224, 140, 0.85);
  box-shadow: 0 0 14px rgba(240, 190, 80, 0.45);
}

.sidebar-toggle {
  border-color: rgba(255, 224, 140, 0.7);
  box-shadow: inset 0 1px 0 rgba(255, 240, 190, 0.35), 0 0 10px rgba(240, 190, 80, 0.25);
}

/* --- Badges and highlighted labels --- */
.badge,
.login-badge {
  color: #fff1bf;
  border-color: rgba(255, 220, 130, 0.65);
  background: linear-gradient(135deg, rgba(240, 196, 98, 0.26), rgba(150, 105, 30, 0.14));
  box-shadow: 0 0 10px rgba(240, 190, 80, 0.2), inset 0 1px 0 rgba(255, 244, 200, 0.3);
}

/* --- Gold headings inside panels get a subtle metallic glow --- */
.panel h2,
.panel h3 {
  text-shadow: 0 0 12px rgba(240, 190, 80, 0.18);
}

/* --- Inputs: gold focus ring --- */
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(255, 224, 140, 0.95);
  box-shadow: 0 0 0 2px rgba(240, 190, 80, 0.25), 0 0 16px rgba(240, 190, 80, 0.25);
}

/* --- Living address: suggestion dropdown + highlighted "please fill me in" state --- */
.places-field {
  position: relative;
}

.field-hint {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.field-hint-attention {
  color: #ffe08a;
  font-weight: 600;
}

.field-required-tag {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 224, 140, 0.8);
  background: linear-gradient(135deg, rgba(240, 196, 98, 0.35), rgba(150, 105, 30, 0.2));
  color: #fff1bf;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@keyframes addressAttentionPulse {
  0%, 100% {
    box-shadow: 0 0 0 2px rgba(240, 190, 80, 0.35), 0 0 14px rgba(240, 190, 80, 0.35);
  }
  50% {
    box-shadow: 0 0 0 4px rgba(255, 220, 130, 0.6), 0 0 30px rgba(255, 214, 120, 0.7);
  }
}

.field-attention {
  padding: 12px;
  border: 1px solid rgba(255, 224, 140, 0.75);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(240, 196, 98, 0.14), rgba(240, 196, 98, 0.03));
}

.field-attention > label {
  color: #ffe9a8;
  font-weight: 700;
}

.field-attention input[name="address"] {
  border-color: rgba(255, 224, 140, 0.95);
  animation: addressAttentionPulse 1.8s ease-in-out infinite;
}

.places-list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% - 2px);
  z-index: 40;
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid rgba(255, 224, 140, 0.7);
  border-radius: 12px;
  background: rgba(6, 6, 6, 0.98);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 22px rgba(240, 190, 80, 0.22);
}

.places-list[hidden] {
  display: none;
}

.places-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  cursor: pointer;
  color: var(--text);
  border-bottom: 1px solid rgba(238, 196, 98, 0.12);
}

.places-item:hover,
.places-item.active {
  background: linear-gradient(90deg, rgba(240, 196, 98, 0.28), rgba(240, 196, 98, 0.06));
  color: #fff6d6;
}

.places-pin {
  flex: 0 0 auto;
  font-size: 15px;
}

.places-text {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 14px;
}

.places-empty {
  padding: 12px;
  color: var(--muted);
  font-size: 13px;
}

.places-attrib {
  padding: 6px 12px;
  font-size: 10px;
  color: var(--muted);
  text-align: right;
}

/* --- Footer with card / bank logos (every page except login) --- */
.main {
  display: flex;
  flex-direction: column;
}

.main > * {
  flex-shrink: 0;
}

.site-footer {
  margin-top: auto;
  padding-top: 28px;
}

.footer-powered {
  margin: 0;
  padding-top: 14px;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.32em;
  text-indent: 0.32em; /* keeps the spaced letters visually centered */
  background: var(--gold-metal);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: goldShimmer 5s linear infinite;
  filter: drop-shadow(0 0 6px rgba(240, 190, 80, 0.45));
  border-top: 1px solid rgba(238, 196, 98, 0.35);
}

.footer-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 8px 16px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  min-width: 52px;
  padding: 4px 9px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid rgba(255, 226, 150, 0.8);
  box-shadow: 0 0 12px rgba(240, 190, 80, 0.22), inset 0 -3px 8px rgba(0, 0, 0, 0.06);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.footer-logo:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(255, 214, 120, 0.5);
}

.footer-logo img {
  display: block;
  height: 100%;
  width: auto;
  max-width: 60px;
  object-fit: contain;
}

.footer-logo.logo-amex,
.footer-logo.logo-amex img {
  min-width: 0;
}

.footer-logo.logo-amex {
  padding: 2px;
  width: 32px;
  min-width: 32px;
}

.footer-logo.logo-visa img,
.footer-logo.logo-discover img {
  max-width: 54px;
}

@media (max-width: 980px) {
  .footer-powered {
    font-size: 11px;
  }

  .footer-logos {
    gap: 6px;
    padding: 8px 4px 14px;
  }

  .footer-logo {
    height: 28px;
    min-width: 44px;
    padding: 3px 7px;
  }

  .footer-logo.logo-amex {
    width: 28px;
    min-width: 28px;
    padding: 2px;
  }

  .footer-logo img {
    max-width: 48px;
  }
}

/* Respect people who prefer less motion: keep the gold, drop the animation. */
@media (prefers-reduced-motion: reduce) {
  .brand,
  .topbar h1,
  .money,
  .auth-panel h2,
  .footer-powered,
  .button:not(.secondary):not(.ghost):not(.vip-cancel-button),
  .locked-card-action-gold,
  .vip-gold-button,
  .modal-option.primary {
    animation: none;
  }

  .button:not(.secondary):not(.ghost):not(.vip-cancel-button)::after,
  .locked-card-action-gold::after,
  .vip-gold-button::after,
  .modal-option.primary::after {
    display: none;
  }
}
