.glass{
  background:var(--ds-card);
  border:1px solid var(--ds-border);
  border-radius:16px;
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  box-shadow:var(--ds-shadow);
}

.glass:hover{
  background:var(--ds-card-hover);
  border-color:rgba(255,255,255,.12);
}

.glass-soft{
  background:rgba(255,255,255,.02);
  border:1px solid rgba(255,255,255,.08);
  border-radius:16px;
}

.site-shell{ min-height:100vh; }

.site-topbar{
  position:sticky;
  top:0;
  z-index:2000;
  background:rgba(5,5,5,.62);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  border-bottom:1px solid var(--ds-border-soft);
}

.brand-link{
  display:inline-flex;
  align-items:center;
  gap:.6rem;
  color:var(--ds-text);
}

.brand-logo{
  height:28px;
  width:auto;
  display:block;
  object-fit:contain;
}

.topbar-user-avatar{
  width:28px;
  height:28px;
  border-radius:999px;
  display:block;
  object-fit:cover;
}

.topbar-user-avatar-fallback{
  background:rgba(255,255,255,.06);
}

.icon-btn{
  width:44px;
  height:44px;
  padding:0;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.03);
  color:#e5e7eb;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  transition:transform .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.topbar-item-btn{
  height:44px;
  padding:0 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.03);
  color:#e5e7eb;
  display:inline-flex;
  align-items:center;
  gap:8px;
  transition:transform .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.topbar-item-btn:focus-visible{
  outline:2px solid rgba(99,102,241,.85);
  outline-offset:2px;
  box-shadow:var(--ds-glow);
}

.topbar-item-btn:hover{
  transform:translateY(-1px);
  background:rgba(255,255,255,.05);
  border-color:rgba(255,255,255,.14);
  box-shadow:var(--ds-glow);
}

.topbar-item-icon{
  width:18px;
  height:18px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

.topbar-icon-img{
  width:18px;
  height:18px;
  display:block;
  object-fit:contain;
}

.topbar-item-title{
  font-size:13px;
  font-weight:800;
  letter-spacing:.01em;
  max-width:110px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.topbar-notification-btn{
  position:relative;
}

.topbar-notification-dot{
  position:absolute;
  top:10px;
  right:10px;
  width:10px;
  height:10px;
  border-radius:999px;
  background:#fb7185;
  border:2px solid rgba(10,10,12,.92);
  box-shadow:0 0 0 2px rgba(251,113,133,.15);
}

.topbar-notification-dot.is-hidden{
  display:none;
}

.icon-btn:focus-visible{
  outline:2px solid rgba(99,102,241,.85);
  outline-offset:2px;
  box-shadow:var(--ds-glow);
}

.icon-btn:hover{
  transform:translateY(-1px);
  background:rgba(255,255,255,.05);
  border-color:rgba(255,255,255,.14);
  box-shadow:var(--ds-glow);
}

.icon-btn svg path,
.icon-btn svg circle,
.icon-btn svg rect,
.icon-btn svg line,
.icon-btn svg polyline,
.icon-btn svg polygon{
  stroke:currentColor;
}

.contact-item{ position:relative; }
.tooltip{
  --bs-tooltip-bg: rgba(10,10,12,.92);
  --bs-tooltip-color: #e5e7eb;
}

.tooltip-inner{
  padding:8px 10px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.12);
  box-shadow:0 25px 50px -12px rgba(0,0,0,.55);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  font-weight:700;
  letter-spacing:.01em;
}

.tooltip .tooltip-arrow::before{
  border-top-color:rgba(10,10,12,.92);
  border-bottom-color:rgba(10,10,12,.92);
}

.contact-popover{
  position:absolute;
  right:0;
  top:48px;
  background:rgba(10,10,12,.92);
  border:1px solid rgba(255,255,255,.12);
  border-radius:16px;
  padding:12px;
  min-width:240px;
  box-shadow:0 25px 50px -12px rgba(0,0,0,.55);
  display:none;
  z-index:2200;
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
}

.contact-popover.is-open{
  display:block;
}

.contact-popover-compact{
  min-width:180px;
}

.popover-title{
  font-size:12px;
  font-weight:800;
  color:var(--ds-text);
  letter-spacing:.02em;
}

.copy-line,.qr-text{
  margin-top:10px;
  padding:10px 12px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:14px;
  cursor:pointer;
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
  color:#e5e7eb;
  background:rgba(255,255,255,.03);
  transition:background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.qr-text{
  text-decoration:none;
}

.qr-text-first{
  margin-top:0;
}

.qr-text:focus-visible{
  outline:2px solid rgba(99,102,241,.85);
  outline-offset:2px;
}

.copy-line:hover,.qr-text:hover{
  background:rgba(255,255,255,.05);
  border-color:rgba(255,255,255,.14);
  transform:translateY(-1px);
}

.copy-hint{
  font-size:12px;
  color:var(--ds-muted);
  white-space:nowrap;
}

.qr-grid{ margin-top:10px; display:grid; grid-template-columns:1fr; gap:10px; }
.qr-card{ border:1px solid rgba(255,255,255,.10); border-radius:16px; padding:10px; background:rgba(255,255,255,.02); }
.qr-title{ font-size:12px; font-weight:800; color:var(--ds-text); }
.qr-thumb{ margin-top:8px; width:160px; max-width:100%; height:auto; border-radius:14px; border:1px solid rgba(255,255,255,.10); display:block; cursor:zoom-in; }

.copy-toast{
  position:fixed;
  right:18px;
  top:18px;
  background:rgba(10,10,12,.92);
  color:#fff;
  padding:10px 12px;
  border-radius:14px;
  font-size:13px;
  border:1px solid rgba(255,255,255,.12);
  box-shadow:0 25px 50px -12px rgba(0,0,0,.55);
  display:none;
  z-index:30000;
  opacity:.98;
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
}

.qr-modal{
  display:none;
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.72);
  z-index:25000;
  align-items:center;
  justify-content:center;
  padding:18px;
  backdrop-filter:blur(4px);
  -webkit-backdrop-filter:blur(4px);
}

.qr-modal-inner{
  background:rgba(10,10,12,.92);
  border:1px solid rgba(255,255,255,.12);
  border-radius:18px;
  padding:14px;
  width:min(460px,92vw);
  box-shadow:0 25px 50px -12px rgba(0,0,0,.55);
  position:relative;
}

.qr-modal-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.qr-modal-title{
  font-size:13px;
  font-weight:900;
  color:var(--ds-text);
}

.qr-modal-close{
  width:36px;
  height:36px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.03);
  color:rgba(229,231,235,.92);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:20px;
  line-height:1;
  transition:transform .2s ease, background-color .2s ease, border-color .2s ease;
}

.qr-modal-close:hover{
  transform:translateY(-1px);
  background:rgba(255,255,255,.05);
  border-color:rgba(255,255,255,.14);
  color:#fff;
}

.qr-grid-2{ grid-template-columns:1fr; }

@media (min-width:576px){
  .qr-grid-2{ grid-template-columns:1fr 1fr; }
}

.qr-text-tight{ margin-top:12px; }

.qr-modal-img{ margin-top:10px; width:100%; height:auto; border-radius:16px; border:1px solid rgba(255,255,255,.10); display:block; }

.topbar-item-content-image{
  cursor:zoom-in;
}

.topbar-item-modal-body{
  margin-top:10px;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.topbar-item-content-title{
  font-size:14px;
  font-weight:900;
  color:var(--ds-text);
}

.topbar-item-content-desc{
  font-size:13px;
  color:rgba(161,161,170,.92);
  line-height:1.45;
}

.site-notification-modal-inner{
  width:min(980px,94vw);
  max-height:min(820px,calc(100vh - 32px));
  box-sizing:border-box;
  display:flex;
  flex-direction:column;
  overflow:hidden;
}

.site-notification-modal-body{
  margin-top:12px;
  display:grid;
  grid-template-columns:320px minmax(0,1fr);
  gap:12px;
  min-height:420px;
  min-width:0;
  flex:1 1 auto;
  overflow:hidden;
}

.site-notification-list,
.site-notification-detail{
  border:1px solid rgba(255,255,255,.08);
  border-radius:16px;
  background:rgba(255,255,255,.025);
  min-height:360px;
  min-width:0;
  max-height:100%;
}

.site-notification-list{
  padding:10px;
  overflow:auto;
}

.site-notification-detail{
  padding:18px;
  overflow:auto;
}

.site-notification-empty{
  min-height:200px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  color:rgba(161,161,170,.92);
  font-size:13px;
}

.site-notification-item{
  width:100%;
  padding:14px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:16px;
  background:rgba(255,255,255,.02);
  color:#e5e7eb;
  text-align:left;
  transition:transform .2s ease, border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.site-notification-item + .site-notification-item{
  margin-top:10px;
}

.site-notification-footer{
  padding-top:10px;
}

.site-notification-footer-text{
  min-height:40px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:rgba(161,161,170,.86);
  font-size:12px;
}

.site-notification-more-btn{
  width:100%;
  min-height:40px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:14px;
  background:rgba(255,255,255,.04);
  color:#e5e7eb;
  font-size:13px;
  font-weight:700;
  transition:background-color .2s ease,border-color .2s ease,transform .2s ease;
}

.site-notification-more-btn:hover:not(:disabled){
  background:rgba(255,255,255,.08);
  border-color:rgba(255,255,255,.18);
  transform:translateY(-1px);
}

.site-notification-more-btn:disabled{
  opacity:.72;
  cursor:not-allowed;
}

.site-notification-item:hover{
  transform:translateY(-1px);
  border-color:rgba(255,255,255,.14);
  background:rgba(255,255,255,.04);
}

.site-notification-item.is-active{
  border-color:rgba(99,102,241,.45);
  background:rgba(99,102,241,.10);
  box-shadow:0 0 0 1px rgba(99,102,241,.18);
}

.site-notification-item-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}

.site-notification-item-title{
  font-size:14px;
  font-weight:800;
  color:var(--ds-text);
  line-height:1.45;
}

.site-notification-item-time{
  flex:none;
  font-size:12px;
  color:rgba(161,161,170,.82);
}

.site-notification-item-summary{
  margin-top:8px;
  font-size:12px;
  line-height:1.7;
  color:rgba(229,231,235,.82);
}

.site-notification-item-badges{
  margin-top:8px;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.site-notification-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:24px;
  padding:0 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.04);
  color:#e5e7eb;
  font-size:12px;
  font-weight:700;
}

.site-notification-badge.is-pinned{
  border-color:rgba(167,139,250,.28);
  background:rgba(167,139,250,.12);
  color:#ddd6fe;
}

.site-notification-detail-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}

.site-notification-detail-title{
  font-size:20px;
  line-height:1.4;
  font-weight:900;
  color:var(--ds-text);
}

.site-notification-detail-time{
  margin-top:8px;
  font-size:12px;
  color:rgba(161,161,170,.82);
}

.site-notification-detail-cover{
  margin-top:14px;
  width:100%;
  max-height:260px;
  object-fit:cover;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.08);
  display:block;
}

.site-notification-detail-content{
  margin-top:16px;
  font-size:13px;
  line-height:1.8;
  color:#e5e7eb;
  word-break:break-word;
  overflow-wrap:anywhere;
}

.site-notification-detail-content img{
  max-width:100%;
  height:auto;
  border-radius:12px;
}

@media (max-width:767.98px){
  .site-notification-modal-inner{
    max-height:calc(100vh - 20px);
  }

  .site-notification-modal-body{
    grid-template-columns:1fr;
    min-height:0;
  }

  .site-notification-list,
  .site-notification-detail{
    min-height:0;
  }
}

.btn-primary{
  border:none;
  background-image:linear-gradient(135deg,#6366f1,#8b5cf6);
  box-shadow:0 12px 30px rgba(99,102,241,.18);
  transition:transform .2s ease, filter .2s ease, box-shadow .2s ease;
}

.btn-primary:hover{
  filter:brightness(1.06);
  transform:translateY(-1px);
  box-shadow:0 0 22px rgba(99,102,241,.22),0 12px 30px rgba(99,102,241,.18);
}

.btn-outline-light{
  border-color:rgba(255,255,255,.14);
  color:#e5e7eb;
  transition:transform .2s ease, background-color .2s ease, border-color .2s ease;
}

.btn-outline-light:hover{
  background:rgba(255,255,255,.06);
  border-color:rgba(255,255,255,.20);
  color:#fff;
}

.form-control,.form-select{
  background:rgba(255,255,255,.03);
  border-color:rgba(255,255,255,.10);
  color:#fff;
  transition:box-shadow .2s ease, border-color .2s ease, background-color .2s ease, transform .2s ease;
}

.form-select option{
  background:#0f0f11;
  color:#e5e7eb;
}

.form-select:disabled,
.form-control:disabled{
  background:rgba(255,255,255,.02);
  color:rgba(161,161,170,.75);
}

.input{
  background:rgba(255,255,255,.03);
  border-color:rgba(255,255,255,.10);
  color:#fff;
}

select.input option{
  background:#0f0f11;
  color:#e5e7eb;
}

.form-text{ color:rgba(161,161,170,.92) !important; }

.form-control::placeholder{ color:rgba(161,161,170,.85); }
.form-control:focus,.form-select:focus{
  background:rgba(255,255,255,.04);
  border-color:rgba(99,102,241,.65);
  box-shadow:0 0 0 3px rgba(99,102,241,.20);
  color:#fff;
}

.alert{
  border-radius:16px;
  border-color:rgba(255,255,255,.12);
  background:rgba(255,255,255,.03);
  color:#e5e7eb;
}

.msg{
  background:rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.12);
  color:#e5e7eb;
}

ul.errorlist{
  margin:6px 0 0;
  padding:0;
  list-style:none;
  color:#fb7185;
  font-size:12px;
}

ul.errorlist li{ margin:0; }

.payout-feedback{
  margin-top:6px;
  min-height:18px;
  visibility:hidden;
  font-size:12px;
  line-height:1.35;
}

.payout-feedback.is-visible{ visibility:visible; }

@media (min-width:768px){
  .payout-field{ position:relative; }
  .payout-feedback{
    position:absolute;
    left:0;
    right:0;
    top:100%;
    min-height:0;
  }
  .payout-bind-row{ margin-bottom:22px; }
}

.withdraw-field{ position:relative; }

@media (min-width:768px){
  .withdraw-help{
    position:absolute;
    left:0;
    right:0;
    top:100%;
  }
  .withdraw-row{ margin-bottom:22px; }
}

.table-immersive{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  background:rgba(255,255,255,.012);
  border:1px solid rgba(255,255,255,.08);
  border-radius:16px;
  overflow:hidden;
}

.table.table-immersive{
  --bs-table-bg: transparent;
  --bs-table-color: #e5e7eb;
  --bs-table-border-color: rgba(255,255,255,.08);
}

.table-immersive th,
.table-immersive td{
  padding:12px 10px;
  font-size:13px;
  vertical-align:middle;
  border-bottom:1px solid rgba(255,255,255,.08);
}

.table-immersive th{
  color:rgba(161,161,170,.92);
  font-weight:700;
  letter-spacing:.02em;
  background:linear-gradient(180deg, rgba(255,255,255,.022), rgba(255,255,255,.010));
}

.table-immersive td{
  color:#e5e7eb;
}

.table-immersive tr:hover td{
  background:rgba(255,255,255,.018);
}

.table-immersive tbody tr:last-child td{
  border-bottom:none;
}

.hint{
  font-size:12px;
  margin-top:6px;
}

.hint.ok{ color:var(--ds-success); }
.hint.err{ color:var(--ds-danger); }
.hint.neu{ color:rgba(161,161,170,.92); }

.tip{
  display:none;
  font-size:12px;
  padding:10px 12px;
  border-radius:16px;
  border:1px solid rgba(251,113,133,.35);
  background:rgba(251,113,133,.08);
  color:#fb7185;
}

.tip a{ color:#fda4af; text-decoration:none; }
.tip a:hover{ color:#fecdd3; text-decoration:none; }

.helper-link{
  color:rgba(229,231,235,.92);
  text-decoration:none;
}

.helper-link:hover{
  color:#ffffff;
  text-decoration:none;
}

.helper-link:focus-visible{
  outline:2px solid rgba(99,102,241,.85);
  outline-offset:3px;
  border-radius:10px;
}

.agreement-notice{
  margin-top:14px;
  font-size:12px;
  color:rgba(161,161,170,.92);
  line-height:1.7;
}

.agreement-link{
  color:#a78bfa;
}

.agreement-link:hover{
  color:#c4b5fd;
}

.agreement-modal-body{
  margin-top:10px;
  max-height:60vh;
  overflow:auto;
  color:#e5e7eb;
  font-size:13px;
  line-height:1.75;
}
