:root {
  --bg: #07080d;
  --panel: #11141c;
  --panel2: #181b25;
  --text: #faf7ef;
  --muted: #9699a7;
  --gold: #edc56c;
  --gold2: #a86a20;
  --purple: #7b2cff;
  --line: rgba(255, 255, 255, 0.09);
  --danger: #ff6c78;
  --success: #68d6a2;
  --shadow: 0 25px 80px rgba(0, 0, 0, 0.45);
}
* {
  box-sizing: border-box;
}
html {
  color-scheme: dark;
}
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(
      circle at 50% -10%,
      rgba(113, 32, 158, 0.36),
      transparent 35rem
    ),
    linear-gradient(180deg, #05060a, #090b12 70%);
  color: var(--text);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 180ms ease, opacity 180ms ease, transform 180ms ease;
}
a:hover {
  color: var(--gold);
  opacity: 0.95;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}
button:hover {
  transform: translateY(-2px);  
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}
button:active {
  transform: translateY(0);
}
.muted {
  color: var(--muted);
}
.eyebrow {
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.18em;
}
.premium-card {
  background: linear-gradient(
    145deg,
    rgba(27, 30, 42, 0.96),
    rgba(12, 14, 21, 0.98)
  );
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}
.premium-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 40px rgba(0, 0, 0, 0.28);
  border-color: rgba(237, 197, 108, 0.35);
}
.premium-card:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.06),
    transparent 25%
  );
  pointer-events: none;
}
.guest-body {
  display: grid;
  place-items: center;
  padding: 28px 16px;
}
.guest-shell {
  width: min(100%, 460px);
}
.brand {
  display: grid;
  place-items: center;
  margin: 0 auto 24px;
  letter-spacing: 0.22em;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 1px solid rgba(237, 197, 108, 0.45);
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 2rem;
  box-shadow: 0 0 35px rgba(237, 197, 108, 0.17);
}
.brand strong {
  font-family: Georgia, serif;
  font-size: 2rem;
  margin-top: 10px;
}
.brand small {
  color: var(--gold);
  font-size: 0.58rem;
}
.auth-card {
  padding: 28px;
}
.auth-card h1 {
  font-family: Georgia, serif;
  font-size: 2rem;
  margin: 0.5rem 0;
}
.auth-card p {
  line-height: 1.55;
}
.form-stack {
  display: grid;
  gap: 15px;
  margin-top: 22px;
}
.form-stack label {
  display: grid;
  gap: 7px;
  color: #c6c8d1;
  font-size: 0.79rem;
  font-weight: 700;
}
.form-stack input {
  width: 100%;
  border: 1px solid var(--line);
  background: #0c0f16;
  color: var(--text);
  border-radius: 14px;
  padding: 14px;
  outline: none;
}
.form-stack input:focus {
  border-color: rgba(237, 197, 108, 0.7);
  box-shadow: 0 0 0 4px rgba(237, 197, 108, 0.08);
}
.form-stack input:disabled {
  opacity: 0.6;
}
.form-stack small {
  color: var(--muted);
  font-weight: 400;
}
.btn {
  border-radius: 14px;
  border: 0;
  padding: 14px 18px;
  font-weight: 900;
}
.btn-gold {
  background: linear-gradient(135deg, #fff0ad, var(--gold), var(--gold2));
  color: #231708;
  box-shadow: 0 10px 28px rgba(237, 197, 108, 0.18);
}
.btn-danger {
  background: rgba(255, 108, 120, 0.08);
  border: 1px solid rgba(255, 108, 120, 0.3);
  color: var(--danger);
}
.full {
  width: 100%;
  margin-top: 14px;
}
.auth-links {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 20px;
  font-size: 0.78rem;
  color: var(--gold);
}
.auth-links.single {
  justify-content: center;
}
.alert {
  padding: 13px 15px;
  border-radius: 14px;
  margin: 0 0 14px;
  font-size: 0.85rem;
}
.alert-error {
  background: rgba(255, 108, 120, 0.1);
  border: 1px solid rgba(255, 108, 120, 0.3);
  color: #ffb4bb;
}
.alert-success {
  background: rgba(104, 214, 162, 0.1);
  border: 1px solid rgba(104, 214, 162, 0.3);
  color: #a9efd0;
}
.dev-box {
  margin-top: 18px;
  padding: 13px;
  background: #0b0d13;
  border: 1px dashed rgba(237, 197, 108, 0.45);
  border-radius: 12px;
  font-size: 0.75rem;
  overflow-wrap: anywhere;
}
.dev-box a {
  display: block;
  color: var(--gold);
  margin-top: 5px;
}
.app-frame {
  width: min(100%, 620px);
  min-height: 100vh;
  margin: auto;
  background: rgba(6, 7, 11, 0.42);
  position: relative;
  padding-bottom: 92px;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  background: rgba(7, 8, 13, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.mini-brand {
  font-family: Georgia, serif;
  font-weight: 900;
  letter-spacing: 0.12em;
}
.mini-brand span {
  color: var(--gold);
}
.topbar nav {
  display: flex;
  gap: 14px;
  font-size: 0.72rem;
  color: var(--muted);
}
.app-main {
  padding: 24px 18px;
}
.hero-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 10px 3px 22px;
}
.hero-row h1 {
  font-family: Georgia, serif;
  font-size: 2.25rem;
  line-height: 1.05;
  margin: 0.5rem 0 0;
}
.hero-row h1 span {
  color: var(--gold);
}
.avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f3c98a, #6d357c);
  border: 2px solid var(--gold);
  color: #211409;
  font-weight: 1000;
}
.avatar.large {
  width: 94px;
  height: 94px;
  font-size: 2rem;
  margin: auto;
}
.points-card {
  padding: 24px;
}
.points-card:after {
  content: "";
  position: absolute;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  right: -70px;
  top: -90px;
  background: radial-gradient(
    circle,
    rgba(237, 197, 108, 0.3),
    transparent 68%
  );
}
.points-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.75rem;
}
.tier-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fff0ad, var(--gold2));
  color: #24180a;
  font-size: 0.65rem;
  font-weight: 1000;
}
.points-card > strong {
  display: inline-block;
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 3rem;
  margin: 12px 0;
}
.points-card > small {
  color: var(--gold);
}
.progress {
  height: 8px;
  background: #0a0c12;
  border-radius: 999px;
  overflow: hidden;
}
.progress i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--purple), var(--gold));
  border-radius: inherit;
}
.points-card p {
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 0;
}
.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 14px 0;
}
.quick-card {
  border: 1px solid var(--line);
  background: #10131b;
  border-radius: 18px;
  color: var(--text);
  padding: 15px 8px;
  display: grid;
  place-items: center;
  gap: 5px;
}
.quick-card b {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(123, 44, 255, 0.16);
  color: #d4a6ff;
  font-size: 1.2rem;
}
.quick-card span {
  font-size: 0.75rem;
  font-weight: 800;
}
.quick-card small {
  font-size: 0.58rem;
  color: var(--muted);
}
.member-card {
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  background: radial-gradient(
      circle at 80% 10%,
      rgba(237, 197, 108, 0.22),
      transparent 35%
    ),
    linear-gradient(145deg, #211b16, #0b0c12);
}
.member-card h2 {
  margin: 0.5rem 0 0.25rem;
  font-family: Georgia, serif;
}
.member-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.13em;
}
.member-symbol {
  font-family: Georgia, serif;
  color: var(--gold);
  font-size: 3.2rem;
}
.section-title {
  margin: 26px 3px 11px;
}
.section-title h2 {
  font-size: 1.05rem;
  margin: 0.35rem 0;
}
.transaction-list {
  padding: 4px 16px;
}
.transaction-list article {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.transaction-list article:last-child {
  border: 0;
}
.transaction-icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: rgba(237, 197, 108, 0.1);
  color: var(--gold);
  font-weight: 1000;
}
.transaction-list article div {
  display: grid;
  gap: 4px;
}
.transaction-list article strong {
  font-size: 0.78rem;
}
.transaction-list article small {
  font-size: 0.63rem;
  color: var(--muted);
}
.positive {
  color: var(--success);
}
.negative {
  color: var(--danger);
}
.empty {
  text-align: center;
  color: var(--muted);
  padding: 28px;
}
.bottom-nav {
  position: fixed;
  z-index: 30;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, 620px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(8, 9, 15, 0.92);
  backdrop-filter: blur(18px);
  border-top: 1px solid var(--line);
  padding: 11px 12px calc(11px + env(safe-area-inset-bottom));
}
.bottom-nav a {
  display: grid;
  place-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 0.59rem;
}
.bottom-nav span {
  font-size: 1.15rem;
  color: var(--gold);
}
.profile-hero {
  text-align: center;
  padding: 16px 0 24px;
}
.profile-hero h1 {
  font-family: Georgia, serif;
  margin: 12px 0 8px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 8px;
}
.stats-grid div {
  text-align: center;
  padding: 15px 7px;
  border-right: 1px solid var(--line);
}
.stats-grid div:last-child {
  border: 0;
}
.stats-grid strong {
  display: block;
  color: var(--gold);
  font-size: 1.1rem;
  overflow-wrap: anywhere;
}
.stats-grid span {
  font-size: 0.55rem;
  color: var(--muted);
}
.profile-form-card {
  padding: 24px;
  margin-top: 15px;
}
.profile-form-card h2 {
  font-family: Georgia, serif;
}
.toast {
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: 95px;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  background: #171a24;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 12px 15px;
  font-size: 0.75rem;
  transition: 0.25s;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
@media (min-width: 700px) {
  .app-frame {
    margin-block: 22px;
    min-height: calc(100vh - 44px);
    border: 1px solid var(--line);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 35px 100px rgba(0, 0, 0, 0.55);
  }
  .bottom-nav {
    bottom: 22px;
    border-radius: 0 0 30px 30px;
  }
  .guest-body {
    padding: 55px;
  }
}
.section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: end;
}
.section-title-row > a,
.back-link {
  color: var(--gold);
  font-size: 0.76rem;
}
.balance-strip {
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.balance-strip div {
  display: grid;
  gap: 6px;
}
.balance-strip strong {
  font-size: 1.35rem;
  color: var(--gold);
}
.admin-frame {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 245px 1fr;
}
.admin-side {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 28px 22px;
  background: #090b12;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.admin-side nav {
  display: grid;
  gap: 8px;
}
.admin-side nav a {
  padding: 12px;
  border-radius: 12px;
  color: var(--muted);
}
.admin-side nav a:hover {
  background: #ffffff08;
  color: var(--gold);
}
.admin-side form {
  margin-top: auto;
}
.admin-main {
  padding: 36px;
  max-width: 1200px;
  width: 100%;
  margin: auto;
}
.admin-heading h1 {
  font-family: Georgia, serif;
  font-size: 2.4rem;
  margin: 0.4rem 0;
}
.search-bar {
  padding: 10px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin: 24px 0;
}
.search-bar input {
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 8px 12px;
  outline: none;
}
.admin-member-grid {
  display: grid;
  gap: 10px;
}
.member-result {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 18px;
}
.member-result > span:nth-child(2) {
  display: grid;
  gap: 5px;
}
.member-result small {
  color: var(--muted);
  font-size: 0.7rem;
}
.member-balance {
  text-align: right;
  display: grid;
}
.member-balance b {
  color: var(--gold);
  font-size: 1.1rem;
}
.admin-member-head {
  padding: 24px;
  display: grid;
  grid-template-columns: 95px 1fr auto;
  align-items: center;
  gap: 22px;
  margin: 20px 0;
}
.admin-member-head h1 {
  font-family: Georgia, serif;
  margin: 0.45rem 0;
}
.admin-big-balance {
  text-align: right;
  display: grid;
}
.admin-big-balance strong {
  color: var(--gold);
  font-size: 2rem;
}
.admin-big-balance span {
  font-size: 0.68rem;
  color: var(--muted);
}
.admin-columns {
  display: grid;
  grid-template-columns: minmax(300px, 400px) 1fr;
  gap: 20px;
  align-items: start;
}
.adjust-card {
  padding: 24px;
  position: sticky;
  top: 20px;
}
.adjust-card h2 {
  font-family: Georgia, serif;
}
.preset-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}
.preset-grid button {
  border: 1px solid var(--line);
  background: #10131b;
  color: var(--gold);
  border-radius: 10px;
  padding: 9px;
}
.admin-side .mini-brand {
  font-size: 1.05rem;
}
@media (max-width: 850px) {
  .admin-frame {
    display: block;
  }
  .admin-side {
    position: relative;
    height: auto;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
  }
  .admin-side p {
    margin-left: auto;
  }
  .admin-side nav {
    display: flex;
    width: 100%;
  }
  .admin-side form {
    margin: 0 0 0 auto;
  }
  .admin-main {
    padding: 22px 15px;
  }
  .admin-columns {
    grid-template-columns: 1fr;
  }
  .adjust-card {
    position: relative;
    top: auto;
  }
  .admin-member-head {
    grid-template-columns: 70px 1fr;
  }
  .admin-member-head .avatar.large {
    width: 70px;
    height: 70px;
  }
  .admin-big-balance {
    grid-column: 1/-1;
    text-align: left;
  }
  .member-result {
    grid-template-columns: 48px 1fr;
  }
  .member-balance {
    grid-column: 2;
    text-align: left;
  }
  .search-bar {
    grid-template-columns: 1fr;
  }
}
.panel {
  background: linear-gradient(
    145deg,
    rgba(27, 30, 42, 0.96),
    rgba(12, 14, 21, 0.98)
  );
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.page-head {
  margin: 4px 2px 22px;
}
.page-head h1 {
  font:
    700 2.15rem Georgia,
    serif;
  margin: 0.35rem 0;
}
.page-head p {
  line-height: 1.5;
}
.bottom-nav {
  grid-template-columns: repeat(4, 1fr);
}
.wheel-page {
  text-align: center;
}
.casino-wheel-wrap {
  position: relative;
  width: min(100%, 430px);
  aspect-ratio: 1;
  margin: 12px auto 24px;
  padding: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 40%);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.42);
}
.casino-wheel-wrap::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
}
.casino-wheel-wrap canvas {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 8px solid rgba(255, 204, 92, 0.3);
  box-shadow: inset 0 0 28px rgba(0, 0, 0, 0.28);
  filter: drop-shadow(0 26px 42px rgba(0, 0, 0, 0.7));
  transition: transform 4.8s cubic-bezier(0.12, 0.72, 0.08, 1);
}
.wheel-pointer {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: -5px;
  transform: translateX(-50%);
  border-left: 18px solid transparent;
  border-right: 18px solid transparent;
  border-top: 38px solid var(--gold);
}
.spin-core {
  position: absolute;
  z-index: 5;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) !important;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  border: 5px solid #7a4a18;
  background: radial-gradient(circle at 35% 25%, #fff5c6, #e1a746 58%, #8f5415);
  color: #261708;
  font-weight: 1000;
  box-shadow:
    0 0 0 7px rgba(237, 197, 108, 0.18),
    0 12px 30px #000;
  transition: transform 120ms ease, box-shadow 120ms ease, filter 120ms ease;
}
.spin-core:hover,
.spin-core:focus-visible {
  transform: translate(-50%, -50%) scale(1.04) !important;
  box-shadow:
    0 0 0 7px rgba(237, 197, 108, 0.18),
    0 14px 34px rgba(0, 0, 0, 0.45);
}
.spin-core:active {
  transform: translate(-50%, -50%) scale(0.95) !important;
  box-shadow:
    0 0 0 7px rgba(237, 197, 108, 0.18),
    0 8px 20px rgba(0, 0, 0, 0.35);
}
.spin-core:disabled {
  filter: grayscale(0.6);
  opacity: 0.65;
}
.wheel-page.wheel-locked .casino-wheel-wrap,
.wheel-page.wheel-locked .casino-wheel-wrap canvas,
.wheel-page.wheel-locked .wheel-pointer,
.wheel-page.wheel-locked .spin-core {
  filter: grayscale(1) brightness(0.7) !important;
  opacity: 0.7 !important;
}
.wheel-page.wheel-locked .casino-wheel-wrap {
  background: rgba(0, 0, 0, 0.08) !important;
}
.wheel-page.wheel-locked .spin-core {
  cursor: not-allowed;
}
.wheel-info {
  padding: 20px;
}
.wheel-info strong {
  display: block;
  color: var(--gold);
  font-size: 1rem;
}
.wheel-info p {
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.55;
}
.countdown {
  font:
    800 1.4rem ui-monospace,
    monospace;
  margin: 10px;
  color: #fff;
}
.reward-grid {
  display: grid;
  gap: 12px;
}
.wallet-card {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 13px;
  align-items: center;
  padding: 15px;
  text-align: left;
}
.reward-icon {
  width: 64px;
  height: 64px;
  border-radius: 17px;
  display: grid;
  place-items: center;
  font-size: 2rem;
  background: radial-gradient(circle, #633087, #171421 72%);
}
.wallet-card h3 {
  margin: 0 0 5px;
}
.wallet-card p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.72rem;
}
.wallet-card code {
  display: block;
  color: var(--gold);
  font-size: 0.68rem;
  margin-bottom: 5px;
}
.wallet-card small {
  color: var(--muted);
  font-size: 0.62rem;
}
.status-pill {
  font-size: 0.58rem;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(104, 214, 162, 0.1);
  color: var(--success);
}
.empty-state {
  padding: 35px;
  text-align: center;
  color: var(--muted);
}
.admin-rewards {
  display: grid;
  gap: 10px;
}
.reward-admin-row {
  display: grid;
  grid-template-columns: 55px minmax(150px, 1.4fr) minmax(100px, 1fr) 105px 85px 85px auto auto;
  gap: 8px;
  align-items: end;
  padding: 12px;
}
.reward-admin-row input {
  width: 100%;
  min-width: 0;
  background: #0b0e15;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  color: var(--text);
}
.reward-admin-row label {
  font-size: 0.66rem;
  color: var(--muted);
}
.reward-admin-row .check {
  display: flex;
  align-items: center;
  gap: 5px;
  padding-bottom: 11px;
}
.reward-admin-row .check input {
  width: auto;
}
@media (max-width: 1000px) {
  .reward-admin-row {
    grid-template-columns: 55px 1fr 1fr;
  }
  .admin-frame {
    display: block;
  }
  .admin-side {
    position: static;
    width: auto;
  }
  .admin-main {
    margin: 0;
  }
}
@media (max-width: 560px) {
  .topbar nav {
    display: none;
  }
  .wallet-card {
    grid-template-columns: 58px 1fr;
  }
  .wallet-card .status-pill {
    grid-column: 2;
  }
  .reward-admin-row {
    grid-template-columns: 48px 1fr;
  }
  .bottom-nav a {
    font-size: 0.52rem;
  }
}

.quick-grid-four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.quick-grid-four .quick-card {
    padding: 13px 4px;
    min-width: 0;
}

.quick-grid-four .quick-card b {
    width: 44px;
    height: 44px;
}

.quick-grid-four .quick-card span {
    font-size: 0.68rem;
    text-align: center;
}

.quick-grid-four .quick-card small {
    display: none;
}

@media (max-width: 380px) {
    .quick-grid-four {
        gap: 6px;
    }

    .quick-grid-four .quick-card {
        padding-inline: 2px;
    }

    .quick-grid-four .quick-card span {
        font-size: 0.6rem;
    }
}

.spin-banner {
    min-height: 168px;
    margin-top: 14px;
    padding: 20px;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(125px, 0.85fr);
    align-items: center;
    gap: 12px;
    background:
        radial-gradient(circle at 85% 20%, rgba(224, 84, 255, 0.24), transparent 35%),
        linear-gradient(135deg, #3b1164, #18142f 58%, #4b172d);
}

.spin-banner-content {
    position: relative;
    z-index: 2;
}

.spin-banner h2 {
    margin: 4px 0 7px;
    color: var(--gold);
    font-family: Georgia, serif;
    font-size: 1.65rem;
}

.spin-banner-content > p:not(.eyebrow) {
    max-width: 230px;
    margin: 0 0 15px;
    color: #ddd2e8;
    font-size: 0.72rem;
    line-height: 1.5;
}

.spin-banner-button {
    display: inline-block;
    padding: 10px 13px;
    border-radius: 10px;
    background: linear-gradient(
        135deg,
        #fff0ad,
        var(--gold),
        var(--gold2)
    );
    color: #251708;
    font-size: 0.68rem;
    font-weight: 900;
    box-shadow: 0 8px 22px rgba(237, 197, 108, 0.24);
}

.spin-banner-wheel {
    position: relative;
    width: min(145px, 100%);
    aspect-ratio: 1;
    justify-self: center;
    border: 7px solid #c68a38;
    border-radius: 50%;
    background:
        conic-gradient(
            #7624d4 0deg 45deg,
            #ecb94f 45deg 90deg,
            #cf3fae 90deg 135deg,
            #ed7136 135deg 180deg,
            #7624d4 180deg 225deg,
            #ecb94f 225deg 270deg,
            #cf3fae 270deg 315deg,
            #ed7136 315deg 360deg
        );
    box-shadow:
        0 0 0 4px rgba(237, 197, 108, 0.15),
        0 0 30px rgba(165, 62, 255, 0.35);
    transition: transform 0.5s ease;
}

.spin-banner:hover .spin-banner-wheel {
    transform: rotate(20deg) scale(1.03);
}

.spin-banner-wheel::before,
.spin-banner-wheel::after {
    content: "";
    position: absolute;
    background: rgba(255, 255, 255, 0.45);
}

.spin-banner-wheel::before {
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
}

.spin-banner-wheel::after {
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
}

.spin-banner-center {
    position: absolute;
    z-index: 2;
    inset: 50% auto auto 50%;
    width: 38px;
    height: 38px;
    transform: translate(-50%, -50%);
    display: grid;
    place-items: center;
    border: 4px solid #7e4c19;
    border-radius: 50%;
    background: radial-gradient(circle, #fff2b7, #dca13e);
    color: #34200d;
}

@media (max-width: 390px) {
    .spin-banner {
        grid-template-columns: minmax(0, 1fr) 112px;
        padding: 16px;
    }

    .spin-banner h2 {
        font-size: 1.35rem;
    }
}

.member-qr {
  width: 220px;
  height: 220px;
  margin: 0 auto;
  display: grid;
  place-items: center;
}

.member-qr * {
  display: none !important;
  visibility: hidden !important;
}

.member-qr canvas {
  display: block !important;
  visibility: visible !important;
  width: 220px !important;
  height: 220px !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

.member-qr img {
  display: none !important;
}

.member-qr[hidden],
.member-qr[hidden] * {
  display: none !important;
  visibility: hidden !important;
}

.qr-fallback {
  display: none !important;
  visibility: hidden !important;
}

.qr-fallback[hidden] {
  display: none !important;
  visibility: hidden !important;
}

.qr-shell {
  width: 100%;
  display: grid;
  place-items: center;
  margin-top: 20px;
  position: relative;
}
/* V4 - Espace restaurant / recherche membre */
.scanner-heading { margin-bottom: 16px; }
.scanner-panel {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 24px;
}
.scanner-visual {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 50%, rgba(237, 197, 108, .16), transparent 55%),
    #0b0d14;
  border: 1px solid rgba(237, 197, 108, .25);
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 2rem;
}
.scanner-corners,
.scanner-corners::before,
.scanner-corners::after {
  position: absolute;
  inset: 18px;
  content: "";
  border: 3px solid transparent;
}
.scanner-corners { border-top-color: var(--gold); border-left-color: var(--gold); }
.scanner-corners::before { inset: -3px; border-top-color: var(--gold); border-right-color: var(--gold); transform: rotate(90deg); }
.scanner-corners::after { inset: -3px; border-bottom-color: var(--gold); border-right-color: var(--gold); }
.scanner-line {
  position: absolute;
  left: 18px;
  right: 18px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  box-shadow: 0 0 14px var(--gold);
  animation: scannerSweep 2.3s ease-in-out infinite;
}
@keyframes scannerSweep { 0%,100% { top: 24px; opacity: .45; } 50% { top: calc(100% - 26px); opacity: 1; } }
.scanner-form textarea {
  resize: vertical;
  min-height: 112px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}
.scanner-member-card {
  margin-top: 18px;
  padding: 20px;
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
}
.scanner-avatar { width: 68px; height: 68px; font-size: 1.7rem; }
.scanner-member-main h2 { margin: 4px 0; font-family: Georgia, serif; }
.scanner-member-main p { margin: 0; }
.scanner-balance { text-align: right; display: grid; }
.scanner-balance strong { color: var(--gold); font-size: 1.8rem; }
.scanner-balance span { color: var(--muted); font-size: .72rem; }
.scanner-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.scanner-action { padding: 18px; display: grid; gap: 5px; }
.scanner-action > span { color: var(--gold); font-size: 1.8rem; }
.scanner-action small { color: var(--muted); }
.scanner-history { margin-top: 12px; padding: 20px; }
.scanner-history article {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid rgba(255,255,255,.07);
}
.scanner-history article:first-of-type { border-top: 0; }
.scanner-history article div { display: grid; gap: 4px; }
.scanner-history article small { color: var(--muted); }
@media (max-width: 760px) {
  .scanner-panel { grid-template-columns: 1fr; }
  .scanner-visual { width: min(220px, 100%); justify-self: center; }
  .scanner-member-card { grid-template-columns: 58px 1fr; }
  .scanner-balance { grid-column: 2; text-align: left; }
}
@media (max-width: 520px) {
  .scanner-actions { grid-template-columns: 1fr; }
}
