/* Final focused UI polish: distinct nested-card edges, restrained USDT unit size, and fixed-dark palette UI. */

/* Buy Keys video inset edge uses a different accent than the outer panel card. */
html body.inner-app-page .pn .pn-video-card,
html body.inner-admin-page .pn .pn-video-card {
  border: 1.5px solid rgba(39, 194, 208, .78) !important;
  box-shadow: 0 0 0 1px rgba(39, 194, 208, .10), 0 0 12px rgba(39, 194, 208, .13), inset 0 0 8px rgba(39, 194, 208, .04) !important;
  background: #050b13 !important;
}
html body.inner-app-page .pn .pn-video-card .pn-media,
html body.inner-admin-page .pn .pn-video-card .pn-media {
  border: 0 !important;
  box-shadow: none !important;
}

/* Remove only the extra outer frame from the three Reseller API summary tiles. */
html body.inner-app-page .ra .ra-stats.ra-stats.ra-stats {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
  animation: none !important;
}
html body.inner-app-page .ra .ra-stats::before,
html body.inner-app-page .ra .ra-stats::after { content: none !important; display: none !important; }
html body.inner-app-page .ra .ra-stats > div { border-width: 1px !important; border-style: solid !important; }
html body.inner-app-page .ra .ra-stats > div:nth-child(1) { border-color: rgba(75, 145, 219, .62) !important; }
html body.inner-app-page .ra .ra-stats > div:nth-child(2) { border-color: rgba(139, 92, 246, .62) !important; }
html body.inner-app-page .ra .ra-stats > div:nth-child(3) { border-color: rgba(39, 194, 208, .62) !important; }

/* Reseller API's three main cards use distinct but related edge tones. */
html body.inner-app-page .ra .ra-card.ra-c1 { border-color: rgba(75, 145, 219, .62) !important; }
html body.inner-app-page .ra .ra-card.ra-c2 { border-color: rgba(139, 92, 246, .62) !important; }
html body.inner-app-page .ra .ra-card.ra-c3 { border-color: rgba(39, 194, 208, .62) !important; }
html body.inner-app-page .ra .ra-c1 :is(.ra-in, .ra-tabs, .ra-f) { border-color: rgba(75, 145, 219, .42) !important; }
html body.inner-app-page .ra .ra-c1 .ra-code { border-left-color: rgba(75, 145, 219, .9) !important; }
html body.inner-app-page .ra .ra-c2 :is(.ra-in, .ra-tabs, .ra-f) { border-color: rgba(139, 92, 246, .42) !important; }
html body.inner-app-page .ra .ra-c2 .ra-code { border-left-color: rgba(139, 92, 246, .9) !important; }
html body.inner-app-page .ra .ra-c3 :is(.ra-in, .ra-tabs, .ra-f, .ra-sw, .ra-empty) { border-color: rgba(39, 194, 208, .42) !important; }
html body.inner-app-page .ra .ra-c3 .ra-code { border-left-color: rgba(39, 194, 208, .9) !important; }

/* Keep the USDT unit slightly smaller than the amount itself. */
.currency-usdt-unit { font-size: .78em !important; font-weight: 600; letter-spacing: .01em; opacity: .9; white-space: nowrap; }

/* Accent picker modal shared with the admin shell; no light/dark control exists. */
.th-ov { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 22px; background: rgba(0,0,0,.78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; pointer-events: none; transition: opacity .2s; }
.th-ov.on { opacity: 1; pointer-events: auto; }
.th-box { width: 100%; max-width: 360px; box-sizing: border-box; background: #0e0e12; border: 2px solid #ff1a62; border-radius: 20px; padding: 22px 20px 20px; box-shadow: 0 0 0 1px rgba(18,216,240,.25), 0 0 34px rgba(18,216,240,.3), 0 0 22px rgba(255,26,98,.25); transform: scale(.94); transition: transform .2s; }
.th-ov.on .th-box { transform: scale(1); }
.th-box h4 { margin: 0 0 18px; text-align: center; font-size: 19px; font-weight: 800; letter-spacing: .4px; color: #ff1a62; text-shadow: 0 0 12px rgba(255,26,98,.7); }
.th-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.th-opt { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px 4px 13px; border-radius: 14px; background: #17171d; border: 1.5px solid rgba(255,255,255,.1); color: #fff; font: inherit; font-weight: 700; font-size: 13.5px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.th-opt:active { transform: scale(.95); }
.th-opt.sel { border-color: var(--c); box-shadow: 0 0 14px var(--c); }
.th-dot { width: 46px; height: 46px; border-radius: 50%; background: var(--c); box-shadow: 0 0 16px var(--c); }
.th-close { display: block; width: 100%; margin-top: 18px; height: 50px; border-radius: 12px; background: #17171d; border: 1.5px solid rgba(255,255,255,.1); color: #fff; font: inherit; font-weight: 800; font-size: 16px; letter-spacing: .5px; cursor: pointer; }
.th-close:active { transform: scale(.98); }
.admin-palette-btn { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; background: #101321; border: 1px solid rgba(var(--raj-accent-rgb,75,145,219),.55); color: var(--raj-accent,#4b91db); cursor: pointer; box-shadow: 0 0 10px rgba(var(--raj-accent-rgb,75,145,219),.13); }
.admin-palette-btn:hover { box-shadow: 0 0 12px rgba(var(--raj-accent-rgb,75,145,219),.22); }
