
:root {
  --bg: #12091d;
  --panel: rgba(25, 12, 40, .90);
  --panel-2: rgba(43, 18, 63, .92);
  --purple: #8f3fd2;
  --purple-bright: #b75cff;
  --gold: #f5c95f;
  --gold-soft: #ffe5a0;
  --white: #fffdf8;
  --muted: #d7cce4;
  --border: rgba(217, 119, 255, .55);
  --shadow: 0 24px 70px rgba(0,0,0,.42);
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--white);
  background:
    radial-gradient(circle at 20% 10%, rgba(136, 54, 184, .34), transparent 27%),
    radial-gradient(circle at 82% 18%, rgba(72, 25, 117, .46), transparent 30%),
    linear-gradient(180deg, #1e0e30 0%, #0c0714 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 26%, rgba(255,255,255,.9) 0 1px, transparent 2px),
    radial-gradient(circle at 76% 18%, rgba(255,222,132,.8) 0 1px, transparent 2px),
    radial-gradient(circle at 88% 64%, rgba(255,255,255,.65) 0 1px, transparent 2px),
    radial-gradient(circle at 38% 78%, rgba(255,255,255,.6) 0 1px, transparent 2px);
  background-size: 180px 180px, 240px 240px, 210px 210px, 260px 260px;
  opacity: .65;
}

.page-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 18px;
}

.hero-card {
  width: min(1120px, 100%);
  min-height: 680px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(245, 201, 95, .38);
  border-radius: 30px;
  box-shadow: var(--shadow), inset 0 0 80px rgba(180, 79, 255, .08);
  background:
    linear-gradient(180deg, rgba(18,9,29,.25), rgba(10,5,17,.82)),
    radial-gradient(circle at 50% 28%, rgba(94, 34, 130, .45), transparent 43%),
    linear-gradient(135deg, #210e34, #100817 64%, #1b0b2b);
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 135px;
  background:
    radial-gradient(ellipse at 15% 100%, rgba(255,255,255,.92), transparent 58%),
    radial-gradient(ellipse at 49% 120%, rgba(237,226,255,.9), transparent 61%),
    radial-gradient(ellipse at 85% 110%, rgba(255,255,255,.9), transparent 58%);
  opacity: .92;
  pointer-events: none;
}

.wisteria-drape {
  position: absolute;
  left: 0;
  right: 0;
  top: -24px;
  height: 190px;
  pointer-events: none;
  overflow: hidden;
  opacity: .95;
}

.wisteria-drape span {
  position: absolute;
  top: 0;
  width: 22px;
  border-radius: 50%;
  background: linear-gradient(#d19cff, #7e3eb2 58%, rgba(126,62,178,0));
  box-shadow:
    0 18px 0 #b36fdb,
    0 36px 0 #8f4ab7,
    0 54px 0 #713699,
    0 72px 0 rgba(113,54,153,.7),
    0 90px 0 rgba(113,54,153,.35);
}
.wisteria-drape span:nth-child(1) { left: 6%; height: 26px; transform: rotate(-5deg); }
.wisteria-drape span:nth-child(2) { left: 18%; height: 32px; }
.wisteria-drape span:nth-child(3) { right: 19%; height: 30px; transform: rotate(4deg); }
.wisteria-drape span:nth-child(4) { right: 6%; height: 23px; }
.wisteria-drape span:nth-child(5) { left: 50%; height: 18px; opacity: .45; }

.brand {
  position: relative;
  z-index: 3;
  text-align: center;
  padding-top: 50px;
}

.wordmark {
  display: inline-block;
  position: relative;
  padding: 0 16px;
}

.wisteria-name {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: clamp(3.8rem, 8vw, 6.6rem);
  line-height: .94;
  letter-spacing: -4px;
  text-shadow: 0 3px 16px rgba(255,255,255,.16);
}

.casino-title {
  margin-top: 7px;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: clamp(1.75rem, 4.3vw, 3.1rem);
  text-shadow: 0 2px 14px rgba(245, 201, 95, .24);
}

.hat {
  position: absolute;
  z-index: 5;
  width: 90px;
  height: 72px;
  left: -10px;
  top: -35px;
  transform: rotate(-13deg);
}

.hat-body {
  position: absolute;
  width: 62px;
  height: 45px;
  left: 17px;
  top: 14px;
  background: linear-gradient(145deg, #fa2d39, #a40717);
  clip-path: polygon(0 100%, 32% 10%, 73% 0, 100% 100%);
  border-radius: 50% 50% 10% 12%;
  box-shadow: 0 6px 12px rgba(0,0,0,.22);
}

.hat-tip {
  position: absolute;
  width: 34px;
  height: 22px;
  background: #bd0b1b;
  left: 55px;
  top: 18px;
  border-radius: 40% 70% 60% 50%;
  transform: rotate(25deg);
}

.hat-band {
  position: absolute;
  width: 72px;
  height: 18px;
  background: linear-gradient(#fff, #e8e8e8);
  left: 10px;
  top: 49px;
  border-radius: 15px;
  box-shadow: 0 2px 6px rgba(0,0,0,.18);
}

.hat-pom {
  position: absolute;
  width: 22px;
  height: 22px;
  right: -2px;
  top: 27px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}

.divider {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(420px, 65%);
  margin: 18px auto 12px;
  color: var(--gold);
}
.divider span { height: 1px; flex: 1; background: linear-gradient(90deg, transparent, var(--gold)); }
.divider span:last-child { background: linear-gradient(90deg, var(--gold), transparent); }
.divider b { font-size: 1.4rem; }

.welcome-panel {
  position: relative;
  z-index: 4;
  width: min(570px, calc(100% - 36px));
  margin: 0 auto 150px;
  padding: 34px 34px 30px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(44, 21, 65, .92), rgba(23, 11, 37, .94));
  box-shadow: 0 14px 40px rgba(0,0,0,.25), inset 0 0 30px rgba(182, 88, 255, .06);
  backdrop-filter: blur(10px);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--gold-soft);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .74rem;
  font-weight: 800;
}

.welcome-panel h1,
.verification-panel h1 {
  margin: 0;
  font-size: clamp(1.85rem, 4vw, 2.55rem);
  line-height: 1.12;
}

.intro {
  max-width: 450px;
  margin: 14px auto 25px;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.55;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-width: 270px;
  padding: 15px 24px;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 14px;
  background: linear-gradient(180deg, #b451ee, #6e1ea2);
  color: white;
  text-decoration: none;
  font-size: 1.08rem;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(133, 42, 192, .38), inset 0 1px rgba(255,255,255,.25);
  transition: transform .18s ease, filter .18s ease;
  cursor: pointer;
}

.primary-button:hover { transform: translateY(-2px); filter: brightness(1.08); }
.primary-button:active { transform: translateY(0); }
.dice { font-size: 1.35rem; }

.secondary-links {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.secondary-links button {
  border: 0;
  background: transparent;
  color: #efe8f7;
  cursor: pointer;
  font: inherit;
  font-size: .9rem;
  opacity: .9;
}

.secondary-links button:hover { color: var(--gold-soft); opacity: 1; }

.scene-bottom {
  position: absolute;
  inset: auto 0 0 0;
  height: 170px;
  z-index: 2;
  pointer-events: none;
}

.tree {
  position: absolute;
  right: 6.5%;
  bottom: 30px;
  width: 120px;
  height: 150px;
}
.tree-layer {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 54px solid transparent;
  border-right: 54px solid transparent;
  border-bottom: 78px solid #183f2f;
  filter: drop-shadow(0 3px 2px rgba(0,0,0,.25));
}
.tree .l1 { top: 0; transform: translateX(-50%) scale(.75); }
.tree .l2 { top: 35px; transform: translateX(-50%) scale(.9); }
.tree .l3 { top: 68px; }
.trunk { position: absolute; bottom: 2px; left: 54px; width: 13px; height: 28px; background: #6c4427; }
.star { position: absolute; z-index: 3; top: -12px; left: 49px; color: var(--gold); font-size: 1.5rem; text-shadow: 0 0 14px var(--gold); }
.bauble, .light { position: absolute; z-index: 4; border-radius: 50%; }
.bauble { width: 8px; height: 8px; background: #d7192d; box-shadow: 0 0 8px rgba(255,50,70,.8); }
.b1 { top: 52px; left: 43px; } .b2 { top: 82px; left: 76px; } .b3 { top: 111px; left: 38px; }
.light { width: 5px; height: 5px; background: #ffd86a; box-shadow: 0 0 9px #ffd86a; }
.p1 { top: 43px; left: 74px; } .p2 { top: 88px; left: 50px; } .p3 { top: 118px; left: 81px; }

.gifts { position: absolute; left: 7%; bottom: 22px; width: 200px; height: 90px; }
.gift { position: absolute; bottom: 0; border-radius: 5px; box-shadow: 0 8px 15px rgba(0,0,0,.22); }
.gift::before, .gift::after {
  content: ""; position: absolute; background: #f3c854;
}
.gift::before { width: 12px; top: 0; bottom: 0; left: 50%; transform: translateX(-50%); }
.gift::after { left: 0; right: 0; height: 10px; top: 19px; }
.g1 { left: 0; width: 68px; height: 58px; background: #682b9b; }
.g2 { left: 78px; width: 54px; height: 44px; background: #a81731; }
.g3 { left: 139px; width: 61px; height: 52px; background: #1e6b4e; }

.footer-note {
  margin: 14px 0 0;
  color: rgba(255,255,255,.55);
  font-size: .75rem;
  text-align: center;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(3, 1, 7, .72);
  backdrop-filter: blur(7px);
}

.modal {
  position: relative;
  width: min(520px, 100%);
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: #1d0e2d;
  box-shadow: var(--shadow);
}
.modal h2 { margin-top: 0; color: var(--gold-soft); }
.modal p, .modal li { color: var(--muted); line-height: 1.55; }
.close-modal {
  position: absolute;
  right: 16px;
  top: 12px;
  border: 0;
  background: transparent;
  color: white;
  font-size: 1.8rem;
  cursor: pointer;
}

/* Verification */
.verification-card { min-height: 720px; }
.brand.compact { padding-top: 34px; }
.brand.compact .wisteria-name { font-size: clamp(3rem, 6vw, 5rem); }
.brand.compact .casino-title { font-size: clamp(1.45rem, 3.3vw, 2.3rem); }
.brand.compact .hat { transform: rotate(-13deg) scale(.82); left: -16px; top: -39px; }

.verification-panel {
  position: relative;
  z-index: 5;
  width: min(650px, calc(100% - 34px));
  margin: 30px auto 50px;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 25px;
  background: rgba(24, 12, 37, .94);
  box-shadow: 0 16px 42px rgba(0,0,0,.28);
  text-align: center;
}
.back-link {
  position: absolute;
  left: 20px;
  top: 18px;
  color: #eee4f5;
  text-decoration: none;
}
.shield { color: var(--gold); font-size: 2rem; margin-top: 6px; }
.verification-panel > p { color: var(--muted); line-height: 1.5; }

.info-box {
  margin: 17px 0;
  padding: 16px 18px;
  border-radius: 14px;
  text-align: left;
  line-height: 1.45;
}
.info-box.good { background: rgba(63, 25, 83, .6); border: 1px solid rgba(177, 88, 231, .5); }
.info-box.warning { background: rgba(100, 26, 49, .28); border: 1px solid rgba(255, 128, 147, .35); color: #ffe8ed; text-align: center; }
.info-box ul { margin: 10px 0 0; padding-left: 22px; color: #e8f6e8; }

.small-note { font-size: .86rem; }
.verification-panel label {
  display: block;
  margin: 19px 0 8px;
  text-align: left;
  color: var(--gold-soft);
  font-weight: 700;
  font-size: .9rem;
}
.verification-panel input {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid rgba(255,255,255,.19);
  border-radius: 11px;
  outline: 0;
  background: #fff;
  color: #1c1028;
  font-size: 1rem;
}
.verification-panel input:focus { box-shadow: 0 0 0 3px rgba(177, 88, 231, .25); }
.static-button { width: 100%; margin-top: 13px; }
.lock-note { font-size: .82rem; }
.demo-note {
  display: none;
  margin-top: 14px;
  padding: 12px;
  border-radius: 10px;
  color: #20132c;
  background: #ffe9a8;
  font-size: .85rem;
  line-height: 1.45;
}
.demo-note.show { display: block; }

/* Snow */
.snow::before, .snow::after {
  content: "";
  position: fixed;
  inset: -10% 0 0;
  pointer-events: none;
  z-index: 10;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.75) 0 1.5px, transparent 2px),
    radial-gradient(circle, rgba(255,255,255,.5) 0 1px, transparent 1.8px);
  background-size: 95px 95px, 145px 145px;
  background-position: 10px 5px, 50px 35px;
  animation: snowfall 18s linear infinite;
  opacity: .35;
}
.snow::after { animation-duration: 29s; opacity: .2; transform: scale(.8); }

@keyframes snowfall {
  from { transform: translateY(-90px); }
  to { transform: translateY(90px); }
}

@media (max-width: 720px) {
  .page-shell { padding: 12px; align-items: start; }
  .hero-card {
    min-height: 760px;
    border-radius: 22px;
  }
  .brand { padding-top: 45px; }
  .wisteria-name {
    font-size: clamp(3.3rem, 15vw, 4.5rem);
    letter-spacing: -3px;
  }
  .casino-title { font-size: clamp(1.75rem, 8vw, 2.4rem); }
  .hat {
    width: 72px; height: 58px; left: -10px; top: -27px; transform: rotate(-13deg) scale(.82);
  }
  .welcome-panel {
    padding: 28px 21px 24px;
    margin-bottom: 160px;
  }
  .primary-button { width: 100%; min-width: 0; }
  .secondary-links { gap: 14px; }
  .tree { right: 2%; transform: scale(.86); transform-origin: bottom right; }
  .gifts { left: 2%; transform: scale(.82); transform-origin: bottom left; }
  .verification-panel {
    padding: 26px 18px;
    margin-top: 24px;
  }
  .verification-panel h1 { margin-top: 15px; }
  .back-link { position: static; display: block; text-align: left; margin-bottom: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Ensure hidden modal is truly hidden on page load */
.modal-backdrop[hidden] { display: none !important; }

.verify-result {
  display: none;
  margin-top: 14px;
  padding: 13px 14px;
  border-radius: 11px;
  font-size: .9rem;
  line-height: 1.45;
}
.verify-result.show { display: block; }
.verify-result.success {
  color: #eaffea;
  background: rgba(28, 111, 59, .35);
  border: 1px solid rgba(113, 229, 147, .42);
}
.verify-result.error {
  color: #ffe9ee;
  background: rgba(125, 27, 52, .35);
  border: 1px solid rgba(255, 128, 147, .42);
}
.primary-button:disabled {
  cursor: wait;
  opacity: .72;
  transform: none;
}

.api-disclosure {
  margin: 18px 0;
  padding: 17px 18px;
  border: 1px solid rgba(245, 201, 95, .34);
  border-radius: 14px;
  background: rgba(55, 35, 22, .24);
  text-align: left;
}
.api-disclosure h2 {
  margin: 0 0 10px;
  color: var(--gold-soft);
  font-size: 1rem;
}
.api-disclosure p {
  margin: 7px 0;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.48;
}

.dashboard-shell {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 24px 0 46px;
  position: relative;
  z-index: 2;
}
.dashboard-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 16px;
  border: 1px solid rgba(245, 201, 95, .25);
  border-radius: 18px;
  background: rgba(22, 10, 35, .82);
  backdrop-filter: blur(12px);
  box-shadow: 0 15px 45px rgba(0,0,0,.22);
}
.mini-brand {
  display: flex;
  align-items: center;
  gap: 11px;
}
.mini-brand div {
  display: grid;
}
.mini-brand strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
}
.mini-brand span {
  color: var(--muted);
  font-size: .77rem;
}
.mini-w {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(145deg, #9b48d1, #5f217f);
  color: white !important;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem !important;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,.3);
}
.logout-button {
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 10px;
  padding: 9px 14px;
  color: white;
  background: rgba(255,255,255,.07);
  cursor: pointer;
}
.dashboard-hero {
  padding: 50px 8px 28px;
}
.dashboard-hero h1 {
  margin: 5px 0 8px;
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-family: Georgia, "Times New Roman", serif;
}
.dashboard-muted {
  margin: 0 0 14px;
  color: var(--muted);
}
.role-badge, .staff-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
}
.role-admin, .staff-pill.admin {
  color: #ffe6a0;
  border-color: rgba(245,201,95,.45);
  background: rgba(245,201,95,.12);
}
.role-banker, .staff-pill {
  color: #e7c9ff;
  border-color: rgba(183,92,255,.45);
  background: rgba(183,92,255,.12);
}
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.dashboard-card {
  min-height: 210px;
  padding: 22px;
  border-radius: 20px;
  border: 1px solid rgba(183,92,255,.25);
  background: linear-gradient(180deg, rgba(43,18,63,.88), rgba(22,10,35,.92));
  box-shadow: 0 18px 42px rgba(0,0,0,.2);
}
.dashboard-card h2,
.dashboard-card h3 {
  margin: 10px 0 8px;
}
.dashboard-card p {
  color: var(--muted);
  line-height: 1.5;
}
.dashboard-card button {
  margin-top: 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.15);
  padding: 10px 13px;
  color: rgba(255,255,255,.65);
  background: rgba(255,255,255,.05);
}
.credit-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  border-color: rgba(245,201,95,.38);
}
.credit-card strong {
  font-size: 4.2rem;
  color: var(--gold-soft);
  line-height: 1;
  margin: 8px 0;
}
.credit-card small,
.card-label {
  color: var(--muted);
}
.card-icon {
  font-size: 2rem;
}
.staff-section {
  margin-top: 38px;
  padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}
.section-heading h2 {
  margin: 4px 0 0;
  font-size: 2rem;
}
.staff-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 900px) {
  .dashboard-grid,
  .staff-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .dashboard-shell {
    width: min(100% - 18px, 1180px);
    padding-top: 10px;
  }
  .dashboard-topbar {
    padding: 10px 12px;
  }
  .mini-brand div span {
    display: none;
  }
  .dashboard-grid,
  .staff-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-card {
    min-height: 0;
  }
  .dashboard-hero {
    padding-top: 34px;
  }
}

.dashboard-action {
  display: inline-flex;
  margin-top: 10px;
  padding: 10px 13px;
  border-radius: 10px;
  color: white;
  text-decoration: none;
  border: 1px solid rgba(183,92,255,.34);
  background: rgba(183,92,255,.12);
}
.dashboard-action:hover { background: rgba(183,92,255,.2); }

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.topbar-link {
  color: var(--gold-soft);
  text-decoration: none;
  font-size: .9rem;
}
.compact-hero { padding-bottom: 18px; }

.banker-layout {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 18px;
}
.banker-panel {
  padding: 24px;
  border-radius: 22px;
  border: 1px solid rgba(183,92,255,.27);
  background: linear-gradient(180deg, rgba(43,18,63,.9), rgba(22,10,35,.94));
  box-shadow: 0 18px 42px rgba(0,0,0,.22);
}
.banker-panel h2 { margin-top: 0; }
.banker-panel label {
  display: block;
  margin: 16px 0 7px;
  color: var(--gold-soft);
  font-size: .88rem;
  font-weight: 700;
}
.banker-panel input,
.banker-panel textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 11px;
  padding: 12px 13px;
  background: rgba(255,255,255,.96);
  color: #1d1027;
  font: inherit;
}
.search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 9px;
}
.compact-button {
  min-width: 118px;
  padding: 11px 17px;
}
.full-button {
  width: 100%;
  margin-top: 14px;
}
.form-help {
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.45;
}
.search-results {
  display: grid;
  gap: 8px;
  margin-top: 15px;
}
.player-result {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  text-align: left;
  padding: 13px 14px;
  border-radius: 13px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.05);
  color: white;
  cursor: pointer;
}
.player-result:hover {
  border-color: rgba(245,201,95,.4);
  background: rgba(245,201,95,.07);
}
.player-result span { display: grid; gap: 4px; }
.player-result small { color: var(--muted); }
.player-result b {
  color: var(--gold-soft);
  white-space: nowrap;
}
.empty-state {
  padding: 35px 20px;
  text-align: center;
  border: 1px dashed rgba(255,255,255,.16);
  border-radius: 14px;
  color: var(--muted);
}
.selected-player {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px;
  border-radius: 15px;
  background: rgba(255,255,255,.045);
}
.selected-player h3 {
  margin: 4px 0 5px;
  font-size: 1.45rem;
}
.selected-player p {
  margin: 0;
  color: var(--muted);
  font-size: .85rem;
}
.balance-box {
  min-width: 95px;
  text-align: center;
  padding: 12px;
  border-radius: 13px;
  border: 1px solid rgba(245,201,95,.28);
  background: rgba(245,201,95,.08);
}
.balance-box span {
  display: block;
  color: var(--muted);
  font-size: .75rem;
}
.balance-box strong {
  display: block;
  color: var(--gold-soft);
  font-size: 2rem;
}
.operation-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 18px;
}
.operation-button {
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 11px;
  padding: 11px;
  color: var(--muted);
  background: rgba(255,255,255,.045);
  cursor: pointer;
}
.operation-button.active {
  color: white;
  border-color: rgba(183,92,255,.5);
  background: rgba(183,92,255,.18);
}
.inline-message {
  display: none;
  margin-top: 12px;
  padding: 11px 12px;
  border-radius: 10px;
  font-size: .86rem;
}
.inline-message.show { display: block; }
.inline-message.success {
  color: #eaffea;
  background: rgba(28,111,59,.3);
  border: 1px solid rgba(113,229,147,.35);
}
.inline-message.error {
  color: #ffe9ee;
  background: rgba(125,27,52,.32);
  border: 1px solid rgba(255,128,147,.38);
}
.inline-message.info {
  color: #f0e8f7;
  background: rgba(95,61,121,.28);
  border: 1px solid rgba(183,92,255,.3);
}
.transaction-section {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.transaction-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.transaction-heading h3 { margin: 0; }
.text-button {
  border: 0;
  background: transparent;
  color: var(--gold-soft);
  cursor: pointer;
}
.transaction-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.transaction-row {
  padding: 11px 12px;
  border-radius: 11px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
}
.transaction-row div {
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.transaction-row span {
  color: var(--muted);
  font-size: .85rem;
}
.transaction-row small {
  display: block;
  margin-top: 5px;
  color: rgba(255,255,255,.52);
}
.tx-add { color: #9ff0ad; }
.tx-remove { color: #ffb1bf; }

@media (max-width: 820px) {
  .banker-layout { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .search-row { grid-template-columns: 1fr; }
  .selected-player { align-items: flex-start; }
  .topbar-actions .topbar-link { display: none; }
}

.banker-two-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.history-panel {
  padding: 24px;
  border-radius: 22px;
  border: 1px solid rgba(183,92,255,.27);
  background: linear-gradient(180deg, rgba(43,18,63,.9), rgba(22,10,35,.94));
  box-shadow: 0 18px 42px rgba(0,0,0,.22);
}
.history-filters {
  display: grid;
  grid-template-columns: 1.25fr 1.25fr .8fr 1fr 1fr;
  gap: 12px;
}
.history-filters label {
  display: block;
  margin-bottom: 6px;
  color: var(--gold-soft);
  font-size: .8rem;
  font-weight: 700;
}
.history-filters input,
.history-filters select {
  width: 100%;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 10px;
  padding: 11px 12px;
  background: rgba(255,255,255,.96);
  color: #1d1027;
  font: inherit;
}
.history-actions {
  display: flex;
  gap: 9px;
  margin-top: 14px;
}
.secondary-action {
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px;
  padding: 10px 14px;
  color: white;
  background: rgba(255,255,255,.06);
  cursor: pointer;
}
.secondary-action:disabled {
  opacity: .42;
  cursor: default;
}
.history-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin-top: 20px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
}
.history-table {
  width: 100%;
  min-width: 930px;
  border-collapse: collapse;
}
.history-table th,
.history-table td {
  padding: 12px 13px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.history-table th {
  color: var(--gold-soft);
  background: rgba(255,255,255,.04);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.history-table td {
  color: #f5eff8;
  font-size: .86rem;
}
.history-table td small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}
.history-loading {
  text-align: center !important;
  color: var(--muted) !important;
  padding: 28px !important;
}
.history-type {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 800;
}
.history-type.add {
  color: #dfffe5;
  background: rgba(39,129,66,.28);
  border: 1px solid rgba(113,229,147,.3);
}
.history-type.remove {
  color: #ffe8ed;
  background: rgba(125,27,52,.3);
  border: 1px solid rgba(255,128,147,.3);
}
.history-amount-add {
  color: #9ff0ad !important;
  font-weight: 800;
}
.history-amount-remove {
  color: #ffb1bf !important;
  font-weight: 800;
}
.pagination-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 18px;
}
.pagination-row span {
  color: var(--muted);
  min-width: 70px;
  text-align: center;
}
@media (max-width: 950px) {
  .history-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .banker-two-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 520px) {
  .history-filters {
    grid-template-columns: 1fr;
  }
  .history-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

.verified-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
  padding: 18px 20px;
  border: 1px solid rgba(245,201,95,.25);
  border-radius: 18px;
  background: rgba(245,201,95,.07);
}
.verified-summary div {
  display: grid;
  gap: 4px;
}
.verified-summary strong {
  color: var(--gold-soft);
  font-size: 2.4rem;
  line-height: 1;
}
.verified-summary p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}
.verified-panel {
  margin-bottom: 18px;
}
.verified-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
}
.verified-toolbar h2 {
  margin: 0;
}
.verified-search {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto auto;
  gap: 8px;
}
.verified-search input {
  width: 100%;
}
.verified-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin-top: 17px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
}
.verified-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
}
.verified-table th,
.verified-table td {
  padding: 12px 13px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.verified-table th {
  color: var(--gold-soft);
  background: rgba(255,255,255,.04);
  font-size: .77rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.verified-table td {
  color: #f6f0f8;
  font-size: .87rem;
}
.verified-table td small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}
.member-role {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 8px;
  font-size: .7rem;
  text-transform: uppercase;
  font-weight: 800;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
}
.member-role.role-admin {
  color: #ffe6a0;
  border-color: rgba(245,201,95,.38);
}
.member-role.role-banker {
  color: #e7c9ff;
  border-color: rgba(183,92,255,.38);
}
.verified-credit {
  color: var(--gold-soft) !important;
  font-weight: 800;
}
.manage-member-button {
  border: 1px solid rgba(183,92,255,.38);
  border-radius: 9px;
  padding: 8px 11px;
  color: white;
  background: rgba(183,92,255,.14);
  cursor: pointer;
}
.manage-member-button:hover {
  background: rgba(183,92,255,.24);
}
.credit-manage-panel {
  scroll-margin-top: 18px;
}
@media (max-width: 800px) {
  .verified-summary,
  .verified-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .verified-search {
    width: 100%;
  }
}
@media (max-width: 560px) {
  .verified-search {
    grid-template-columns: 1fr;
  }
}
