@keyframes pageLoadIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: none;
  text-decoration: none;
  background: none;
  -webkit-font-smoothing: antialiased;
}

menu,
ol,
ul { list-style: none; }

body {
  font-family: 'Montserrat', Arial, sans-serif;
  background: #06080e;
  color: #ffffff;
  min-height: 100vh;
  overflow-x: hidden;
  animation: pageLoadIn 0.45s ease-out both;
}

img { max-width: 100%; height: auto; }

button,
input {
  font-family: inherit;
}

.app-layout {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr) 301px;
  min-height: 100vh;
  width: 100%;
}

.sidebar {
  background: #06080e;
  border-right: 1px solid #131a27;
  width: 236px;
  min-height: 100vh;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 100;
}

.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: #131a27; border-radius: 2px; }
.sidebar-inner { padding: 20px 0; display: flex; flex-direction: column; min-height: 100%; }
.sidebar-logo { display: flex; align-items: center; gap: 10px; padding: 0 20px 25px; }
.logo-live-indicator { width: 16px; height: 16px; background: rgba(108, 24, 25, 0.51); border: 0.5px solid rgba(167, 36, 36, 0.42); border-radius: 3px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.live-dot { width: 6px; height: 6px; background: #e22b2b; border-radius: 50%; box-shadow: 0 0 5.2px rgba(167, 36, 36, 1); display: block; }
.logo-live-indicator.live { background: rgba(24, 108, 30, 0.51); border-color: rgba(36, 167, 44, 0.42); cursor: pointer; }
.logo-live-indicator.live .live-dot { background: #cffe1a; box-shadow: 0 0 5.2px rgba(207, 254, 26, 0.8); }
.logo-img { height: 21px; width: auto; object-fit: contain; }
.sidebar-section { padding: 10px 0; }
.sidebar-section-title { color: #8ba4ba; font-size: 9px; font-weight: 800; padding: 8px 27px; letter-spacing: 0; }
.sidebar-link { display: flex; align-items: center; gap: 10px; padding: 8px 27px 8px 28px; font-size: 15px; font-weight: 700; color: #ffffff; cursor: pointer; transition: opacity 0.2s ease; position: relative; }
.sidebar-link:hover { opacity: 0.8; }
.sidebar-link.muted { color: #88969c; font-weight: 600; }
.sidebar-icon { width: 19px; height: 19px; flex-shrink: 0; object-fit: contain; }
.soon-badge { background: #2c3c47; border-radius: 2px; font-size: 6px; font-weight: 800; color: #88969c; padding: 2px 5px; margin-left: 4px; }
.sidebar-bottom { margin-top: auto; padding: 20px; }
.sidebar-social-card { background: #0e111a; border-radius: 5px; padding: 12px; }
.sidebar-social-card .sidebar-section-title { padding: 0 0 10px; font-size: 12px; }
.social-icons { display: flex; gap: 8px; }
.social-icon-btn { width: 25px; height: 25px; background: #131a27; border-radius: 4px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: opacity 0.2s ease; }
.social-icon-btn:hover { opacity: 0.7; }
.social-icon-btn img { width: 14px; height: 14px; object-fit: contain; }

.main-content {
  padding: 24px;
  min-width: 0;
}

.vip-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.vip-top-panel,
.vip-progress-panel,
.shuffle-panel,
.tier-section,
.cash-section,
.perk-section,
.reward-section {
  border: 1px solid #1a2333;
  border-radius: 8px;
  background: #0e111a;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.vip-top-panel {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 20px;
  margin-bottom: 16px;
}

.vip-user {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.vip-avatar {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  border: 1px solid rgba(136, 108, 255, 0.42);
  background: #131a27;
  object-fit: cover;
  flex-shrink: 0;
}

.vip-user-copy {
  min-width: 0;
}

.vip-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.vip-name-row h1 {
  min-width: 0;
}

.vip-rank-icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.35));
}

.vip-rank-icon[hidden] {
  display: none;
}

.vip-kicker,
.panel-kicker {
  display: block;
  color: #8ba4ba;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
  margin-bottom: 6px;
}

.vip-user h1,
.section-head h2 {
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.12;
  word-break: break-word;
}

.vip-user-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.tier-chip,
.sync-chip,
.panel-sync,
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: #dbe4ff;
  background: rgba(136, 108, 255, 0.12);
  border: 1px solid rgba(136, 108, 255, 0.25);
}

.sync-chip.verified,
.status-pill.claimable {
  color: #00efab;
  background: rgba(0, 239, 171, 0.1);
  border-color: rgba(0, 239, 171, 0.28);
}

.sync-chip.pending,
.status-pill.locked {
  color: #ffc857;
  background: rgba(255, 200, 87, 0.1);
  border-color: rgba(255, 200, 87, 0.25);
}

.status-pill.claimed {
  color: #8ba4ba;
  background: rgba(139, 164, 186, 0.1);
  border-color: rgba(139, 164, 186, 0.2);
}

.vip-actions {
  display: flex;
  gap: 8px;
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid #243148;
  background: #131a27;
  color: #cfe3f2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.icon-btn:hover {
  border-color: #886cff;
  color: #ffffff;
  transform: translateY(-1px);
}

.icon-btn:disabled,
.primary-btn:disabled,
.claim-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.vip-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 16px;
  margin-bottom: 16px;
}

.vip-progress-panel,
.shuffle-panel,
.tier-section,
.cash-section,
.perk-section,
.reward-section {
  padding: 18px;
}

.panel-head,
.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.panel-sync {
  color: #8ba4ba;
  background: rgba(139, 164, 186, 0.08);
  border-color: rgba(139, 164, 186, 0.18);
}

.wager-main {
  color: #fff;
  font-size: 38px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 16px;
}

.progress-copy,
.progress-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #8ba4ba;
  font-size: 12px;
  font-weight: 700;
}

.progress-copy strong,
.progress-foot span:first-child {
  color: #cffe1a;
}

.monthly-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
  color: #8ba4ba;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.weekly-scope {
  color: #cffe1a;
}

.progress-track {
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: #06080e;
  border: 1px solid #1d293d;
  margin: 10px 0;
}

.progress-fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #00efab 0%, #cffe1a 50%, #886cff 100%);
  transition: width 0.35s ease;
}

.field-label {
  display: block;
  color: #8ba4ba;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.shuffle-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.vip-input {
  width: 100%;
  min-height: 42px;
  border-radius: 8px;
  border: 1px solid #243148;
  background: #06080e;
  color: #fff;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 700;
  outline: none;
}

textarea.vip-input {
  min-height: 78px;
  padding: 11px 12px;
  resize: vertical;
  line-height: 1.4;
}

.vip-input:focus {
  border-color: #886cff;
}

.vip-input.is-valid {
  border-color: rgba(0, 239, 171, 0.75);
  box-shadow: 0 0 0 1px rgba(0, 239, 171, 0.12);
}

.vip-input.is-invalid {
  border-color: rgba(255, 102, 102, 0.8);
  box-shadow: 0 0 0 1px rgba(255, 102, 102, 0.12);
}

.proof-label {
  margin-top: 12px;
}

.proof-file {
  width: 100%;
  min-height: 44px;
  margin-top: 8px;
  padding: 7px;
  border-radius: 8px;
  border: 1px dashed #243148;
  background: #06080e;
  color: #cfe3f2;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.proof-file::file-selector-button {
  min-height: 30px;
  margin-right: 10px;
  padding: 0 12px;
  border: 1px solid #243148;
  border-radius: 7px;
  background: #131a27;
  color: #ffffff;
  font-family: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  text-transform: uppercase;
}

.proof-file:hover,
.proof-file:hover::file-selector-button {
  border-color: #886cff;
}

.primary-btn,
.claim-btn {
  min-height: 42px;
  border-radius: 8px;
  padding: 0 16px;
  background: #cffe1a;
  color: #06080e;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.primary-btn:hover,
.claim-btn:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
}

.panel-message {
  min-height: 18px;
  margin-top: 10px;
  color: #8ba4ba;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
}

.panel-message.error {
  color: #ff6666;
}

.tier-section {
  margin-bottom: 16px;
}

.cash-section {
  margin-bottom: 16px;
}

.tier-timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.tier-card {
  min-height: 190px;
  border-radius: 8px;
  border: 1px solid rgba(122, 145, 176, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(8, 11, 18, 0.98) 54%),
    #0a0d14;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.2);
}

.tier-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--tier-color, #886cff);
  opacity: 0.75;
}

.tier-card::after {
  content: "";
  position: absolute;
  inset: auto -18px -42px;
  height: 94px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), var(--tier-color, #886cff));
  opacity: 0.08;
  pointer-events: none;
}

.tier-card-head,
.tier-copy {
  position: relative;
  z-index: 1;
}

.tier-card-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.tier-card.current {
  border-color: var(--tier-color, #886cff);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(8, 11, 18, 0.98) 50%),
    #0a0d14;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.tier-card.complete {
  border-color: rgba(207, 254, 26, 0.34);
}

.tier-card.locked {
  opacity: 0.7;
}

.tier-card.locked .tier-art {
  filter: grayscale(0.9);
  opacity: 0.5;
}

.tier-art {
  width: 84px;
  height: 84px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.tier-art img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 12px 14px rgba(0, 0, 0, 0.28));
}

.tier-art.text-icon {
  color: #06080e;
  background: var(--tier-color, #886cff);
  font-size: 11px;
  font-weight: 800;
}

.tier-copy {
  display: grid;
  gap: 7px;
}

.tier-name {
  color: #fff;
  font-size: 18px;
  font-weight: 800;
}

.tier-min {
  color: #8ba4ba;
  font-size: 12px;
  font-weight: 700;
}

.tier-state {
  color: #cffe1a;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  border: 1px solid rgba(207, 254, 26, 0.2);
  border-radius: 999px;
  padding: 6px 8px;
  background: rgba(207, 254, 26, 0.08);
  white-space: nowrap;
}

.tier-card.locked .tier-state {
  color: #9aa5b3;
  border-color: rgba(154, 165, 179, 0.18);
  background: rgba(154, 165, 179, 0.08);
}

.vip-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.9fr);
  gap: 16px;
}

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

.perk-card,
.reward-row,
.empty-panel,
.auth-panel {
  border: 1px solid #243148;
  border-radius: 8px;
  background: #0a0d14;
}

.perk-card {
  padding: 14px;
  min-height: 132px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.perk-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.perk-type {
  color: #8ba4ba;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.perk-title {
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
}

.perk-desc {
  color: #8ba4ba;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
}

.reward-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cash-deal-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.cash-deal-card {
  border: 1px solid #243148;
  border-radius: 8px;
  background: #0a0d14;
  padding: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.cash-title {
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
}

.cash-desc {
  color: #8ba4ba;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
  margin-top: 5px;
}

.cash-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.cash-mini-progress {
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: #06080e;
  border: 1px solid #1d293d;
  margin-top: 10px;
}

.cash-mini-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #cffe1a 0%, #00efab 100%);
}

.cash-action {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.cash-amount {
  color: #cffe1a;
  font-size: 16px;
  font-weight: 800;
  white-space: nowrap;
}

.reward-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 13px;
  align-items: center;
}

.reward-title {
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
}

.reward-desc {
  color: #8ba4ba;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
  margin-top: 4px;
}

.reward-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 9px;
}

.claim-btn {
  min-width: 92px;
}

.claim-btn.locked,
.claim-btn.claimed {
  color: #8ba4ba;
  background: #131a27;
}

.empty-panel,
.auth-panel {
  padding: 18px;
  color: #8ba4ba;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.tier-timeline > .empty-panel,
.tier-timeline > .auth-panel,
.perk-grid > .empty-panel,
.cash-deal-list > .empty-panel {
  grid-column: 1 / -1;
}

.auth-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.vip-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 4000;
  max-width: 340px;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #243148;
  background: #0e111a;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.vip-toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.vip-toast.error {
  border-color: rgba(255, 102, 102, 0.4);
  color: #ff8888;
}

.chat-sidebar {
  width: 301px;
  background: rgba(19, 26, 39, 0.1);
  border: 1px solid #131a27;
  border-radius: 7px;
  position: sticky;
  top: 24px;
  height: calc(100vh - 48px);
  margin: 24px 0;
  overflow: hidden;
}

.chat-inner { display: flex; flex-direction: column; height: 100%; }
.chat-header { display: flex; align-items: center; padding: 12px 16px; gap: 10px; }
.chat-close { width: 20px; height: 20px; cursor: pointer; opacity: 0.6; }
.chat-close:hover { opacity: 1; }
.chat-title { font-size: 15px; font-weight: 700; color: #ffffff; flex: 1; text-align: center; }
.chat-header-icons { display: flex; gap: 10px; }
.chat-icon { width: 18px; height: 18px; opacity: 0.7; }
.chat-body { flex: 1; padding: 12px 16px; overflow-y: auto; }
.chat-footer { padding: 12px 16px; border-top: 1px solid #131a27; }
.chat-input-wrapper { display: flex; gap: 8px; margin-bottom: 8px; }
.chat-input { flex: 1; background: #0e111a; border: 1px solid #131a27; border-radius: 4px; padding: 10px; color: #fff; font-size: 12px; }
.chat-send-btn { width: 38px; border-radius: 4px; background: #886cff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.chat-login-btn { width: 100%; padding: 10px; border-radius: 4px; background: #131a27; color: #88969c; font-size: 12px; font-weight: 800; cursor: pointer; }
.chat-login-btn:hover { color: #fff; }

.mobile-menu-btn {
  display: none;
  position: fixed;
  top: 18px;
  left: 18px;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #131a27;
  border: 1px solid #243148;
  z-index: 3000;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.mobile-menu-btn span {
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-top-bar,
.mobile-top-logo,
.mobile-top-login-btn {
  display: none;
}

@media (max-width: 1180px) {
  .app-layout {
    grid-template-columns: 236px minmax(0, 1fr);
  }

  .chat-sidebar {
    display: none;
  }
}

@media (max-width: 900px) {
  .app-layout {
    display: block;
  }

  .sidebar {
    position: fixed;
    left: -260px;
    transition: left 0.25s ease;
  }

  .sidebar.open {
    left: 0;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .mobile-top-bar {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 62px;
    background: rgba(6, 8, 14, 0.94);
    border-bottom: 1px solid #131a27;
    z-index: 2500;
  }

  .mobile-top-bar-inner {
    height: 100%;
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 0 14px 0 68px;
  }

  .mobile-top-logo {
    display: block;
    height: 22px;
    width: auto;
    margin: 0 auto;
  }

  .mobile-top-login-btn {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    padding: 0 12px;
    border-radius: 7px;
    background: #cffe1a;
    color: #06080e;
    font-size: 11px;
    font-weight: 800;
  }

  .main-content {
    padding: 82px 14px 18px;
  }

  .vip-grid,
  .vip-content-grid {
    grid-template-columns: 1fr;
  }

  .tier-timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .perk-grid {
    grid-template-columns: 1fr;
  }

  .cash-deal-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .vip-top-panel,
  .auth-panel,
  .reward-row,
  .cash-deal-card {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .cash-action {
    justify-items: stretch;
  }

  .vip-top-panel {
    align-items: flex-start;
  }

  .wager-main {
    font-size: 30px;
  }

  .tier-timeline {
    grid-template-columns: 1fr;
  }

  .shuffle-row {
    grid-template-columns: 1fr;
  }

  .primary-btn,
  .claim-btn {
    width: 100%;
  }
}
