/*
Theme Name: US Most Girl Clone
Theme URI: https://www.usmostgirl.vip/
Author: Codex
Author URI: https://openai.com/
Description: 一個可直接用於 WordPress 的單頁攝影競賽主題，包含本地素材、作品檢視、投票 API、帳號錢包、身分驗證與儲值流程。
Version: 1.1.6
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: usmostgirl-clone
*/

:root {
  --usm-ink: #1f2937;
  --usm-muted: #6b7280;
  --usm-subtle: #7c8dc6;
  --usm-bg: #f3f6fb;
  --usm-bg-2: #eef2f7;
  --usm-card: #ffffff;
  --usm-danger: #ff4d4f;
  --usm-green: #22c55e;
  --usm-green-deep: #16a34a;
  --usm-radius: 16px;
  --usm-shadow-card: 0 6px 24px rgba(0, 0, 0, .06);
  --usm-shadow-soft: 0 6px 20px rgba(16, 24, 40, .08);
  --usm-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  margin: 0;
  min-height: 100%;
  background: var(--usm-bg);
}

body.usm-body,
body.usmostgirl-clone {
  margin: 0;
  min-height: 100%;
  background: var(--usm-bg);
  color: var(--usm-ink);
  font-family: var(--usm-font);
}

body.usm-lock {
  overflow: hidden;
}

body.usm-payment-page {
  background: var(--usm-bg);
}

.usm-payment-shell {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 32px 20px 72px;
}

.usm-payment-shell .woocommerce {
  min-height: 50vh;
  padding: 24px;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--usm-shadow-soft);
}

.usm-app {
  min-height: 100vh;
  background: linear-gradient(180deg, var(--usm-bg), var(--usm-bg-2));
  color: var(--usm-ink);
  font-family: var(--usm-font);
}

.usm-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: linear-gradient(135deg, #0f172a, #1f2937 55%, #0b1220);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06);
}

.admin-bar .usm-topbar {
  top: 32px;
}

.usm-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(10px, 2vw, 18px) clamp(12px, 3vw, 24px);
}

.usm-brand {
  margin: 0;
  padding-left: 50px;
  font-size: clamp(18px, 2.6vw, 28px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .2px;
}

.usm-topbar-recharge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 10px 16px;
  background: linear-gradient(135deg, #28f0d5, #ff3f7f 58%, #ffd166);
  color: #08111f;
  box-shadow: 0 10px 28px rgba(255, 63, 127, .26);
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.usm-topbar-recharge__spark {
  color: #fff;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, .75));
  font-size: 12px;
}

.usm-topbar-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
}

.usm-account-chip,
.usm-recharge-balance-pill {
  display: inline-grid;
  align-content: center;
  min-width: 128px;
  min-height: 52px;
  justify-items: start;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  padding: 9px 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .12)),
    rgba(45, 38, 58, .9);
  color: #fff;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .06),
    0 12px 24px rgba(0, 0, 0, .16);
  cursor: pointer;
  font-family: var(--usm-font);
  line-height: 1.1;
  text-align: left;
}

.usm-recharge-balance-pill {
  cursor: default;
}

.usm-account-chip span,
.usm-recharge-balance-pill span {
  max-width: 150px;
  overflow: hidden;
  color: rgba(255, 255, 255, .88);
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.usm-account-chip strong,
.usm-recharge-balance-pill strong {
  color: #ffd166;
  font-size: 14px;
  font-weight: 950;
  line-height: 1.05;
}

.usm-account-chip--dark {
  justify-self: end;
}

.usm-page {
  min-height: calc(100vh - 74px);
}

.usm-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 24px;
}

.usm-recharge-promo {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 18px;
  overflow: hidden;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 16px;
  padding: 18px 20px;
  background:
    radial-gradient(circle at 12% 20%, rgba(40, 240, 213, .18), transparent 30%),
    radial-gradient(circle at 78% 20%, rgba(255, 63, 127, .18), transparent 34%),
    linear-gradient(135deg, #ffffff, #f8fbff 54%, #fff4f8);
  box-shadow: 0 12px 32px rgba(15, 23, 42, .08);
}

.usm-recharge-promo__glow {
  position: absolute;
  right: 18%;
  bottom: -28px;
  width: 220px;
  height: 90px;
  border-radius: 50%;
  background: rgba(40, 240, 213, .25);
  filter: blur(28px);
  pointer-events: none;
}

.usm-live-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 6px 10px;
  background: #0f172a;
  color: #74f7e8;
  box-shadow: inset 0 0 0 1px rgba(116, 247, 232, .18);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.usm-recharge-promo h2 {
  margin: 10px 0 6px;
  color: #111827;
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.12;
}

.usm-recharge-promo p {
  max-width: 680px;
  margin: 0;
  color: #667085;
  font-size: 14px;
  line-height: 1.55;
}

.usm-recharge-promo__meter {
  display: grid;
  min-width: 120px;
  justify-items: center;
  border-radius: 16px;
  padding: 12px 16px;
  background: #0f172a;
  color: #fff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .18);
}

.usm-recharge-promo__meter span,
.usm-recharge-promo__meter em {
  color: #a7f3d0;
  font-size: 12px;
  font-style: normal;
}

.usm-recharge-promo__meter strong {
  color: #ffd166;
  font-size: 28px;
  line-height: 1.1;
}

.usm-recharge-promo__button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  padding: 0 22px;
  background: linear-gradient(135deg, #ff3f7f, #ff7a45);
  color: #fff;
  box-shadow: 0 14px 28px rgba(255, 63, 127, .24);
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

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

.usm-state {
  padding: 48px 0;
  color: #667;
  text-align: center;
}

.usm-state.usm-error {
  color: #c0392b;
}

.usm-card {
  --cover-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: var(--usm-radius);
  background: var(--usm-card);
  box-shadow: var(--usm-shadow-card);
  color: var(--usm-ink);
  cursor: pointer;
}

.usm-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  border-radius: 999px;
  padding: 4px 8px;
  background: #eef1f7;
  color: #46506a;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.usm-imgwrap {
  aspect-ratio: var(--cover-ratio);
  overflow: hidden;
  background: #e5e7eb;
}

.usm-cover {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.usm-info {
  padding: 12px 14px;
}

.usm-title {
  margin: 0;
  overflow: hidden;
  color: #1f2937;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.usm-sub {
  margin-top: 6px;
  color: var(--usm-subtle);
  font-size: 13px;
  line-height: 1.25;
}

.usm-card-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 12px;
  row-gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid rgba(0, 0, 0, .06);
  border-bottom-right-radius: 12px;
  border-bottom-left-radius: 12px;
  background: #fff;
}

.usm-card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.usm-metrics {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 8px;
}

.usm-pill {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 6px 10px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  white-space: nowrap;
}

.usm-pill b {
  font-weight: 800;
}

.usm-pill .usm-label {
  margin-left: 2px;
  opacity: .9;
}

.usm-pill-votes {
  background: #eef3ff;
  color: #2b3a67;
  box-shadow: inset 0 0 0 1px rgba(64, 95, 255, .12);
}

.usm-pill-votes b {
  color: var(--usm-danger);
}

.usm-pill-votes .usm-label {
  color: #7b8aaa;
}

.usm-pill-days {
  background: #f7f1f5;
  color: #6c3a4a;
  box-shadow: inset 0 0 0 1px rgba(230, 71, 94, .12);
}

.usm-hourglass-small {
  color: #e6864a;
  font-style: normal;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .06));
}

.usm-pill-days b {
  color: #7a3d52;
}

.usm-pill-days .usm-label {
  color: #9aa0ab;
}

.usm-btn-vote {
  justify-self: end;
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  background: #e6ffec;
  color: #1b5e20;
  box-shadow: 0 6px 16px rgba(27, 94, 32, .12);
  cursor: pointer;
  font: 700 14px/1 var(--usm-font);
  white-space: nowrap;
}

.usm-btn-reward {
  justify-self: end;
  border: 1px solid rgba(190, 24, 93, .18);
  border-radius: 999px;
  padding: 8px 12px;
  background: #fff7fb;
  color: #be185d;
  box-shadow: 0 6px 16px rgba(190, 24, 93, .08);
  cursor: pointer;
  font: 700 14px/1 var(--usm-font);
  white-space: nowrap;
}

.usm-btn-vote:hover,
.usm-btn-reward:hover,
.usm-nav:hover,
.usm-lightbox-vote:hover {
  filter: brightness(1.03);
}

.usm-pagination {
  display: flex;
  justify-content: center;
  padding: 16px 0 40px;
}

.usm-pages {
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.usm-page-pill {
  display: flex;
  min-width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 10px;
  background: #fff;
  color: #475467;
  box-shadow: var(--usm-shadow-soft);
  font-weight: 600;
  user-select: none;
  pointer-events: none;
}

.usm-page-current {
  background: linear-gradient(180deg, var(--usm-green), var(--usm-green-deep));
  color: #fff;
  box-shadow: 0 10px 30px rgba(34, 197, 94, .35);
}

.usm-notice-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 180px;
  background: rgba(0, 0, 0, .5);
}

.usm-notice-modal[hidden] {
  display: none;
}

.usm-notice-panel {
  position: relative;
  width: 520px;
  border-radius: 4px;
  background: #fff;
  padding: 16px;
  box-shadow: 0 12px 32px 4px rgba(0, 0, 0, .04), 0 8px 20px rgba(0, 0, 0, .08);
}

.usm-notice-x {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  width: 48px;
  height: 48px;
  border: 0;
  background: transparent;
  color: #909399;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.usm-notice-card {
  overflow: hidden;
  border-radius: 16px;
  color: #e5e7eb;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

.usm-notice-header {
  padding: 20px 24px 12px;
  background: linear-gradient(135deg, #1d4ed8, #6d28d9);
  color: #fff;
}

.usm-notice-title {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
}

.usm-notice-subtitle {
  margin-top: 2px;
  opacity: .9;
  font-size: 12px;
}

.usm-notice-body {
  padding: 18px 24px 6px;
  background: #fff;
}

.usm-prize-list {
  display: grid;
  gap: 10px;
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
}

.usm-prize-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, .05);
  font-size: 16px;
}

.usm-rank,
.usm-amount {
  font-weight: 800;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.usm-rank-1 {
  background-image: linear-gradient(90deg, #facc15, #f59e0b);
}

.usm-rank-2 {
  background-image: linear-gradient(90deg, #d1d5db, #9ca3af);
}

.usm-rank-3 {
  background-image: linear-gradient(90deg, #f97316, #b45309);
}

.usm-amount {
  font-weight: 900;
  background-image: linear-gradient(90deg, #ef4444, #dc2626);
}

.usm-note {
  margin: 12px 0 0;
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.4;
}

.usm-notice-footer {
  display: flex;
  justify-content: flex-end;
  padding: 14px 20px 20px;
  background: #fff;
}

.usm-notice-close {
  min-width: 86px;
  height: 40px;
  border: 0;
  border-radius: 20px;
  padding: 12px 19px;
  background: #409eff;
  color: #fff;
  cursor: pointer;
  font: 500 15px/1 var(--usm-font);
}

.usm-toast-wrap {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transform: translateX(-50%);
  pointer-events: none;
}

.usm-toast {
  border-radius: 999px;
  padding: 10px 14px;
  background: #334155;
  color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
  font-weight: 700;
  pointer-events: auto;
}

.usm-toast.success {
  background: #16a34a;
}

.usm-toast.notice {
  background: #d97706;
}

.usm-toast.error {
  background: #dc2626;
}

.usm-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .65);
}

.usm-lightbox.is-open {
  display: flex;
}

.usm-lightbox-close {
  position: fixed;
  top: clamp(10px, 2.5vw, 24px);
  left: 50%;
  width: clamp(30px, 4vw, 36px);
  height: clamp(30px, 4vw, 36px);
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #111;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
  cursor: pointer;
  font-size: clamp(14px, 2.6vw, 16px);
  transform: translateX(-50%);
}

.usm-panel {
  display: flex;
  width: min(860px, 92vw);
  max-height: 96vh;
  flex-direction: column;
  overflow: hidden;
  border-radius: 14px;
  background: #141414;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .4);
}

.usm-viewer-timer {
  padding: 10px 16px 8px;
  text-align: center;
  user-select: none;
}

.usm-clock {
  margin-bottom: 8px;
  color: #e6475e;
  font: 800 clamp(14px, 2.4vw, 20px)/1.2 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  letter-spacing: .5px;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .12);
}

.usm-progress-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.usm-progress {
  width: min(540px, 74vw);
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 77, 79, .18), rgba(255, 77, 79, .12));
  box-shadow: inset 0 0 0 1px rgba(230, 71, 94, .12);
}

.usm-bar {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff7a85, #ff4d4f);
  box-shadow: 0 0 12px rgba(255, 77, 79, .25);
  transition: width .2s cubic-bezier(.25, .8, .25, 1);
}

.usm-hourglass {
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .12));
}

.usm-hourglass::before {
  content: "\23F3";
  color: #ff6b6b;
  font-size: 18px;
  animation: usm-hourglass-spin 2s linear infinite;
}

.usm-stage {
  display: grid;
  grid-template-columns: 60px 1fr 60px;
  flex: 1 1 auto;
  align-items: center;
  background: #111;
}

.usm-canvas {
  position: relative;
  display: flex;
  height: min(72vh, 820px);
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.usm-viewer-img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.usm-viewer-img.flip-next {
  animation: usm-flip-next .45s ease;
  transform-origin: left center;
}

.usm-viewer-img.flip-prev {
  animation: usm-flip-prev .45s ease;
  transform-origin: right center;
}

.usm-loading,
.usm-lightbox-error {
  color: #fff;
  text-align: center;
}

.usm-spinner,
.usm-intro-spinner {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  border: 5px solid rgba(255, 255, 255, .25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: usm-spin 1s linear infinite;
}

.usm-nav {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #333;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
  cursor: pointer;
  font-size: 30px;
  line-height: 1;
  opacity: .95;
}

.usm-nav-left {
  justify-self: start;
}

.usm-nav-right {
  justify-self: end;
}

.usm-bottom {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, rgba(0, 0, 0, .45), rgba(0, 0, 0, .6));
  color: #fff;
}

.usm-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.usm-pager {
  font-weight: 700;
  letter-spacing: .5px;
}

.usm-dots {
  display: flex;
  gap: 6px;
}

.usm-dot {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: rgba(255, 255, 255, .35);
  cursor: pointer;
}

.usm-dot.active {
  background: #7ed957;
}

.usm-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.usm-lightbox-vote {
  border: 0;
  border-radius: 999px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #7ed957, #56c271);
  color: #104b1f;
  box-shadow: 0 10px 24px rgba(86, 194, 113, .35);
  cursor: pointer;
  font: 800 14px/1 var(--usm-font);
  letter-spacing: .2px;
}

.usm-lightbox-reward {
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  cursor: pointer;
  font: 800 14px/1 var(--usm-font);
}

.usm-lightbox-reward:hover {
  background: rgba(255, 255, 255, .2);
}

.usm-vote-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, .16);
  color: #fff;
  font-weight: 600;
}

.usm-vote-badge b {
  font-size: 16px;
}

.usm-vote-badge em {
  opacity: .8;
  font-style: normal;
}

.usm-intro-mask {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .75);
}

.usm-lightbox.is-loading .usm-intro-mask {
  display: flex;
}

.usm-storm {
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: 1;
  transition: opacity .6s ease;
  pointer-events: none;
}

.usm-storm.fade {
  opacity: 0;
}

.usm-storm[hidden] {
  display: none;
}

.usm-storm canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.usm-account-modal,
.usm-vote-modal {
  position: fixed;
  inset: 0;
  z-index: 10020;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(7, 11, 22, .72);
  opacity: 0;
  backdrop-filter: blur(10px);
  transition: opacity .18s ease;
}

.usm-account-modal[hidden],
.usm-vote-modal[hidden] {
  display: none;
}

.usm-account-modal.is-open,
.usm-vote-modal.is-open {
  opacity: 1;
}

.usm-account-dialog,
.usm-vote-dialog {
  position: relative;
  display: grid;
  width: min(440px, 94vw);
  gap: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 22px;
  padding: 22px;
  background:
    radial-gradient(circle at 12% 0, rgba(40, 240, 213, .16), transparent 28%),
    radial-gradient(circle at 86% 10%, rgba(255, 63, 127, .14), transparent 30%),
    #fff;
  color: #111827;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .32);
}

.usm-account-dialog {
  width: min(620px, 94vw);
  max-height: min(92vh, 880px);
  overflow-y: auto;
}

.usm-vote-dialog {
  width: min(440px, 94vw);
}

.usm-account-close,
.usm-vote-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: #f3f4f6;
  color: #111827;
  cursor: pointer;
  font-size: 18px;
}

.usm-account-head h2,
.usm-vote-head h2 {
  margin: 12px 42px 8px 0;
  color: #111827;
  font-size: 28px;
  line-height: 1.05;
}

.usm-account-head p,
.usm-vote-head p {
  margin: 0;
  color: #667085;
  font-size: 13px;
  line-height: 1.55;
}

.usm-auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  border-radius: 999px;
  padding: 4px;
  background: #f1f5f9;
}

.usm-auth-tabs button {
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #667085;
  cursor: pointer;
  font: 900 14px/1 var(--usm-font);
}

.usm-auth-tabs button.is-active {
  background: #111827;
  color: #74f7e8;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .18);
}

.usm-auth-form {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.usm-auth-form[hidden] {
  display: none;
}

.usm-auth-form label,
.usm-vote-custom {
  display: grid;
  gap: 6px;
}

.usm-auth-form label span,
.usm-vote-custom span {
  color: #667085;
  font-size: 12px;
  font-weight: 900;
}

.usm-auth-form input,
.usm-auth-form select,
.usm-auth-form textarea,
.usm-vote-custom input {
  width: 100%;
  min-height: 46px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 0 13px;
  background: #fff;
  color: #111827;
  font: 800 15px/1 var(--usm-font);
  outline: none;
}

.usm-auth-form textarea {
  min-height: 84px;
  padding: 12px 13px;
  line-height: 1.35;
  resize: vertical;
}

.usm-auth-form input[type="file"] {
  padding: 11px 13px;
  font-size: 13px;
  line-height: 1.3;
}

.usm-auth-form input:focus,
.usm-auth-form select:focus,
.usm-auth-form textarea:focus,
.usm-vote-custom input:focus {
  border-color: #28f0d5;
  box-shadow: 0 0 0 3px rgba(40, 240, 213, .16);
}

.usm-auth-form input[aria-invalid="true"] {
  border-color: #fb7185;
  box-shadow: 0 0 0 3px rgba(251, 113, 133, .14);
}

.usm-auth-form button,
.usm-vote-submit,
.usm-account-actions a,
.usm-account-actions button,
.usm-account-gate button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  background: linear-gradient(135deg, #ff3f7f, #ff7a45);
  color: #fff;
  box-shadow: 0 14px 28px rgba(255, 63, 127, .22);
  cursor: pointer;
  font: 900 14px/1 var(--usm-font);
  text-decoration: none;
}

.usm-auth-form button:disabled,
.usm-vote-submit:disabled,
.usm-account-actions button:disabled {
  cursor: wait;
  filter: grayscale(.35);
  opacity: .68;
}

.usm-auth-status,
.usm-vote-status {
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff1f5;
  color: #be185d;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.usm-auth-status.is-success,
.usm-vote-status.is-success {
  background: #ecfdf5;
  color: #047857;
}

.usm-account-balance-card,
.usm-vote-wallet {
  display: grid;
  gap: 4px;
  border-radius: 18px;
  padding: 16px;
  background: #111827;
  color: #fff;
}

.usm-account-balance-card span,
.usm-account-balance-card em,
.usm-vote-wallet span {
  color: #cbd5e1;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.usm-account-balance-card strong,
.usm-vote-wallet strong {
  color: #ffd166;
  font-size: 32px;
  line-height: 1;
}

.usm-vote-wallet {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.usm-vote-wallet span,
.usm-vote-wallet strong {
  grid-column: 1;
}

.usm-vote-wallet a {
  grid-column: 2;
  grid-row: 1 / span 2;
  border-radius: 999px;
  padding: 10px 14px;
  background: #28f0d5;
  color: #08111f;
  font-size: 13px;
  font-weight: 950;
  text-decoration: none;
}

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

.usm-account-actions button {
  background: #111827;
  box-shadow: none;
}

.usm-account-actions--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.usm-identity-pill {
  width: max-content;
  max-width: 100%;
  border-radius: 999px;
  padding: 6px 9px;
  background: #fff7ed;
  color: #c2410c;
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
}

.usm-identity-pill[data-status="pending"] {
  background: #ecfdf5;
  color: #047857;
}

.usm-identity-pill[data-status="verified"] {
  background: #eef2ff;
  color: #3730a3;
}

.usm-identity-pill[data-status="rejected"] {
  background: #fff1f2;
  color: #be123c;
}

.usm-identity-note {
  margin: 0;
  color: #667085;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.45;
}

.usm-identity-intro {
  display: grid;
  gap: 8px;
  margin-bottom: 2px;
}

.usm-identity-intro strong {
  color: #111827;
  font-size: 22px;
  line-height: 1.1;
}

.usm-identity-intro p {
  margin: 0;
  color: #667085;
  font-size: 13px;
  line-height: 1.55;
}

.usm-starter-coin-note {
  display: grid;
  gap: 3px;
  border: 1px solid #fde68a;
  border-radius: 12px;
  padding: 10px 12px;
  background: #fffbeb;
  color: #92400e;
}

.usm-starter-coin-note[hidden] {
  display: none !important;
}

.usm-starter-coin-note strong {
  color: #78350f;
  font-size: 13px;
}

.usm-starter-coin-note span {
  color: #a16207;
  font-size: 12px;
  line-height: 1.4;
}

.usm-identity-complete {
  display: grid;
  justify-items: start;
  gap: 10px;
  border: 1px solid #bbf7d0;
  border-radius: 18px;
  padding: 18px;
  background: #ecfdf5;
  color: #064e3b;
}

.usm-identity-complete[hidden] {
  display: none !important;
}

.usm-identity-complete strong {
  color: #065f46;
  font-size: 22px;
  line-height: 1.1;
}

.usm-identity-complete p {
  margin: 0;
  color: #047857;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.5;
}

.usm-identity-complete button {
  width: 100%;
  margin-top: 4px;
}

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

.usm-identity-field--wide,
.usm-identity-upload {
  grid-column: 1 / -1;
}

.usm-identity-upload {
  position: relative;
  min-height: 92px;
  align-content: center;
  border: 1px dashed #cbd5e1;
  border-radius: 16px;
  padding: 16px;
  background: #f8fafc;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.usm-identity-upload:hover,
.usm-identity-upload.has-file {
  border-color: #28f0d5;
  background: #f0fdfa;
  box-shadow: 0 10px 24px rgba(40, 240, 213, .1);
}

.usm-identity-upload input[type="file"] {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
}

.usm-identity-upload > span,
.usm-identity-upload strong,
.usm-identity-upload small {
  pointer-events: none;
}

.usm-identity-upload strong {
  color: #111827;
  font-size: 16px;
  font-weight: 950;
  line-height: 1.15;
}

.usm-identity-upload small {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.usm-identity-upload.has-file small {
  color: #047857;
}

.usm-auth-secondary {
  background: #e2e8f0 !important;
  color: #334155 !important;
  box-shadow: none !important;
}

.usm-vote-quick {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.usm-vote-quick button {
  min-height: 54px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;
  color: #111827;
  cursor: pointer;
  font: 950 18px/1 var(--usm-font);
}

.usm-vote-quick button.is-active {
  border-color: #ff3f7f;
  background: #fff1f5;
  color: #be185d;
  box-shadow: 0 10px 24px rgba(255, 63, 127, .14);
}

.usm-vote-summary {
  display: grid;
  gap: 8px;
  margin: 0;
}

.usm-vote-summary div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 14px;
  padding: 11px 12px;
  background: #f8fafc;
}

.usm-vote-summary dt {
  color: #667085;
  font-size: 13px;
}

.usm-vote-summary dd {
  margin: 0;
  color: #111827;
  font-weight: 950;
}

.usm-account-gate {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin: 16px 0;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 18px;
  padding: 16px;
  background: rgba(15, 23, 42, .72);
  box-shadow: 0 14px 38px rgba(0, 0, 0, .22);
}

.usm-account-gate[hidden] {
  display: none;
}

.usm-account-gate div {
  display: grid;
  gap: 9px;
}

.usm-account-gate strong {
  color: #fff;
  font-size: 18px;
  line-height: 1.25;
}

.usm-recharge-body {
  background: #070b16;
}

.usm-recharge-page.is-auth-checking [data-account-protected],
.usm-recharge-page.is-account-locked [data-account-protected] {
  opacity: .26;
  filter: blur(1.5px) saturate(.72);
  pointer-events: none;
  user-select: none;
}

.usm-recharge-page.is-account-unlocked [data-account-protected] {
  opacity: 1;
  filter: none;
  pointer-events: auto;
  user-select: auto;
}

.usm-recharge-page {
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 6%, rgba(40, 240, 213, .16), transparent 28%),
    radial-gradient(circle at 90% 4%, rgba(255, 63, 127, .18), transparent 30%),
    linear-gradient(180deg, #080d19, #111827 48%, #eef2f7 48%);
  color: #fff;
  font-family: var(--usm-font);
}

.usm-recharge-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 20px;
}

.admin-bar .usm-recharge-nav {
  top: 32px;
}

.usm-recharge-back {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
  font-size: 34px;
  line-height: 1;
  text-decoration: none;
}

.usm-recharge-nav h1 {
  margin: 8px 0 0;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1;
}

.usm-recharge-balance-pill {
  justify-items: end;
}

.usm-recharge-balance-pill span {
  text-align: right;
}

.usm-recharge-balance-pill strong {
  text-align: right;
}

.usm-recharge-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px 42px;
}

.usm-recharge-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  align-items: center;
  gap: 16px;
  min-height: 132px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 22px;
  padding: 16px 18px;
  background:
    linear-gradient(135deg, rgba(40, 240, 213, .16), transparent 34%),
    linear-gradient(315deg, rgba(255, 63, 127, .24), transparent 38%),
    #101827;
  box-shadow: 0 22px 70px rgba(0, 0, 0, .25);
}

.usm-recharge-orbits {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.usm-recharge-orbits span {
  position: absolute;
  border-radius: 999px;
  background: linear-gradient(135deg, #28f0d5, #ff3f7f);
  opacity: .65;
  animation: usm-float-coin 5s ease-in-out infinite;
}

.usm-recharge-orbits span:nth-child(1) {
  top: 26px;
  right: 34%;
  width: 12px;
  height: 12px;
}

.usm-recharge-orbits span:nth-child(2) {
  right: 20px;
  bottom: 24px;
  width: 18px;
  height: 18px;
  animation-delay: .7s;
}

.usm-recharge-orbits span:nth-child(3) {
  top: 70%;
  left: 18%;
  width: 10px;
  height: 10px;
  animation-delay: 1.3s;
}

.usm-recharge-hero__copy {
  position: relative;
  z-index: 1;
}

.usm-recharge-hero h2 {
  max-width: 660px;
  margin: 9px 0 6px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: .98;
}

.usm-recharge-hero p {
  max-width: 630px;
  margin: 0;
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.45;
}

.usm-recharge-wallet-card {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  justify-items: start;
  border-radius: 20px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, .92);
  color: #111827;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .22);
}

.usm-recharge-wallet-card span,
.usm-recharge-wallet-card em {
  color: #667085;
  font-size: 13px;
  font-style: normal;
}

.usm-recharge-wallet-card strong {
  margin: 5px 0;
  color: #ff3f7f;
  font-size: clamp(38px, 5vw, 50px);
  line-height: .95;
}

.usm-recharge-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 22px;
  align-items: start;
  margin-top: 22px;
}

.usm-recharge-main,
.usm-recharge-summary,
.usm-recharge-history,
.usm-recharge-section {
  border: 1px solid rgba(15, 23, 42, .06);
  border-radius: 20px;
  background: rgba(255, 255, 255, .96);
  color: #111827;
  box-shadow: 0 14px 36px rgba(15, 23, 42, .08);
}

.usm-recharge-main {
  display: grid;
  gap: 16px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.usm-recharge-section,
.usm-recharge-history {
  padding: 18px;
}

.usm-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.usm-section-heading span {
  color: #ff3f7f;
  font-size: 12px;
  font-weight: 900;
}

.usm-section-heading strong {
  color: #111827;
  font-size: 19px;
}

.usm-package-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.usm-rpack {
  position: relative;
  display: grid;
  min-height: 144px;
  align-content: center;
  justify-items: center;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 18px 10px 14px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  color: #111827;
  cursor: pointer;
  font-family: var(--usm-font);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.usm-rpack:hover,
.usm-rpack.is-active {
  border-color: rgba(255, 63, 127, .55);
  box-shadow: 0 14px 34px rgba(255, 63, 127, .16);
  transform: translateY(-2px);
}

.usm-rpack.is-active::after {
  position: absolute;
  inset: -2px;
  border: 2px solid #ff3f7f;
  border-radius: 20px;
  content: "";
  pointer-events: none;
}

.usm-rpack__badge {
  position: absolute;
  top: 9px;
  right: 9px;
  border-radius: 999px;
  padding: 4px 7px;
  background: #111827;
  color: #74f7e8;
  font-size: 10px;
  font-weight: 900;
}

.usm-rpack__coins {
  color: #111827;
  font-size: 30px;
  font-weight: 950;
  line-height: 1;
}

.usm-rpack__label {
  margin-top: 4px;
  color: #667085;
  font-size: 12px;
}

.usm-rpack__bonus {
  margin-top: 8px;
  border-radius: 999px;
  padding: 4px 8px;
  background: #fff1f5;
  color: #ff3f7f;
  font-size: 12px;
  font-weight: 800;
}

.usm-rpack__price {
  margin-top: 10px;
  color: #111827;
  font-size: 18px;
}

.usm-custom-amount {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 10px;
  background: #f9fafb;
}

.usm-custom-amount input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #111827;
  font: 900 28px/1 var(--usm-font);
  outline: none;
}

.usm-custom-amount span {
  color: #667085;
  font-weight: 700;
}

.usm-custom-amount button,
.usm-recharge-submit {
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff3f7f, #ff7a45);
  color: #fff;
  box-shadow: 0 14px 28px rgba(255, 63, 127, .22);
  cursor: pointer;
  font: 900 14px/1 var(--usm-font);
}

.usm-custom-amount button {
  padding: 12px 16px;
  white-space: nowrap;
}

.usm-recharge-summary {
  position: sticky;
  top: 96px;
  padding: 20px;
}

.admin-bar .usm-recharge-summary {
  top: 128px;
}

.usm-recharge-summary h2 {
  margin: 14px 0 14px;
  color: #111827;
  font-size: 28px;
  line-height: 1;
}

.usm-recharge-summary dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.usm-recharge-summary dl div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 14px;
  padding: 12px;
  background: #f8fafc;
}

.usm-recharge-summary dt {
  color: #667085;
  font-size: 13px;
}

.usm-recharge-summary dd {
  margin: 0;
  color: #111827;
  font-weight: 900;
}

.usm-recharge-summary .usm-summary-total {
  background: #111827;
}

.usm-recharge-summary .usm-summary-total dt,
.usm-recharge-summary .usm-summary-total dd {
  color: #fff;
}

.usm-recharge-submit {
  width: 100%;
  min-height: 52px;
  margin-top: 16px;
  font-size: 16px;
}

.usm-recharge-submit:disabled {
  cursor: wait;
  filter: grayscale(.35);
  opacity: .8;
}

.usm-recharge-summary p {
  margin: 14px 0 0;
  color: #667085;
  font-size: 12px;
  line-height: 1.55;
}

.usm-recharge-payment-panel {
  display: grid;
  gap: 12px;
  margin-top: 22px;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 20px;
  padding: 20px;
  background: rgba(255, 255, 255, .97);
  color: #111827;
  box-shadow: 0 14px 36px rgba(15, 23, 42, .08);
}

.usm-recharge-payment-panel[hidden] {
  display: none;
}

.usm-recharge-payment-note {
  margin: -4px 0 2px;
  color: #667085;
  font-size: 13px;
  line-height: 1.45;
}

.usm-recharge-payment-content {
  min-width: 0;
}

.usm-recharge-payment-content .woocommerce {
  margin: 0;
}

.usm-recharge-payment-content #payment {
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;
}

.usm-recharge-payment-content ul.payment_methods {
  margin: 0;
  border: 0;
  padding: 0;
}

.usm-recharge-payment-content ul.payment_methods > li {
  margin: 0;
  border-bottom: 1px solid #e5e7eb;
  padding: 16px;
  list-style: none;
}

.usm-recharge-payment-content ul.payment_methods > li:last-child {
  border-bottom: 0;
}

.usm-recharge-payment-content .payment_box {
  margin: 12px 0 0;
  border-radius: 12px;
  padding: 14px;
  background: #f8fafc;
  color: #667085;
}

.usm-recharge-payment-content .form-row {
  margin: 0;
  padding: 16px;
}

.usm-recharge-payment-content input,
.usm-recharge-payment-content select,
.usm-recharge-payment-content textarea {
  max-width: 100%;
  border: 1px solid #d0d5dd;
  border-radius: 10px;
  padding: 10px 12px;
  color: #111827;
  font: 700 14px/1.2 var(--usm-font);
}

.usm-recharge-payment-content input:focus,
.usm-recharge-payment-content select:focus,
.usm-recharge-payment-content textarea:focus {
  border-color: #28f0d5;
  box-shadow: 0 0 0 4px rgba(40, 240, 213, .14);
  outline: 0;
}

.usm-recharge-payment-content button,
.usm-recharge-payment-content .button,
.usm-recharge-payment-content #place_order {
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  background: linear-gradient(135deg, #ff3f7f, #ff7a45);
  color: #fff;
  cursor: pointer;
  font: 900 15px/1 var(--usm-font);
  text-decoration: none;
  box-shadow: 0 14px 28px rgba(255, 63, 127, .22);
}

.usm-recharge-payment-content #place_order {
  width: 100%;
}

.usm-recharge-page.has-inline-payment .usm-recharge-submit {
  cursor: default;
  filter: none;
  opacity: .72;
}

body.usm-recharge-body:not(.usm-inline-payment-submitting) .blockUI.blockOverlay,
body.usm-recharge-body:not(.usm-inline-payment-submitting) .blockUI.blockMsg,
body.usm-recharge-body:not(.usm-inline-payment-submitting) .blockUI.blockElement {
  display: none !important;
  pointer-events: none !important;
}

body.usm-recharge-body:not(.usm-inline-payment-submitting) .processing,
body.usm-recharge-body:not(.usm-inline-payment-submitting) form.processing,
body.usm-recharge-body:not(.usm-inline-payment-submitting) #payment.processing,
body.usm-recharge-body:not(.usm-inline-payment-submitting) .woocommerce.processing {
  opacity: 1 !important;
  pointer-events: auto !important;
}

.usm-order-list {
  display: grid;
  gap: 10px;
}

.usm-order-list p {
  margin: 0;
  color: #667085;
}

.usm-order {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  border-radius: 14px;
  padding: 12px;
  background: #f8fafc;
}

.usm-order strong {
  color: #111827;
}

.usm-order span,
.usm-order em {
  color: #667085;
  font-size: 12px;
  font-style: normal;
}

.usm-order b {
  color: #ff3f7f;
}

.usm-order a {
  justify-self: end;
  color: #047857;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

@keyframes usm-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes usm-hourglass-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes usm-flip-next {
  from {
    opacity: .5;
    transform: perspective(1000px) rotateY(90deg);
  }
  to {
    opacity: 1;
    transform: perspective(1000px) rotateY(0);
  }
}

@keyframes usm-flip-prev {
  from {
    opacity: .5;
    transform: perspective(1000px) rotateY(-90deg);
  }
  to {
    opacity: 1;
    transform: perspective(1000px) rotateY(0);
  }
}

@media (max-width: 782px) {
  .admin-bar .usm-topbar {
    top: 46px;
  }
}

@media (max-width: 768px) {
  .usm-brand {
    padding-left: 0;
  }

  .usm-container {
    padding: 12px;
  }

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

  .usm-card {
    --cover-ratio: 1 / 1;
  }

  .usm-info,
  .usm-card-footer {
    padding: 10px 12px;
  }

  .usm-card-footer {
    column-gap: 10px;
    row-gap: 6px;
  }

  .usm-pill {
    padding: 5px 9px;
  }

  .usm-panel {
    width: 96vw;
    border-radius: 12px;
  }

  .usm-viewer-timer {
    padding: 8px 12px 6px;
  }

  .usm-progress {
    width: 86vw;
    height: 6px;
  }

  .usm-hourglass {
    width: 20px;
    height: 20px;
  }

  .usm-hourglass::before {
    font-size: 16px;
  }

  .usm-stage {
    grid-template-columns: 48px 1fr 48px;
  }

  .usm-canvas {
    height: 60vh;
    padding: 6px;
  }

  .usm-nav {
    width: 36px;
    height: 36px;
    font-size: 24px;
  }

  .usm-bottom {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .usm-meta {
    justify-content: center;
  }

  .usm-actions {
    width: 100%;
    justify-content: space-between;
    margin-left: 0;
  }

  .usm-lightbox-vote {
    min-width: 0;
    flex: 1 1 auto;
    padding: 12px 18px;
  }

  .usm-vote-badge {
    flex: 0 0 auto;
  }
}

@media (min-width: 769px) {
  .usm-metrics {
    flex-wrap: nowrap;
  }
}

@media (max-width: 640px) {
  .usm-page-pill {
    min-width: 36px;
    height: 36px;
  }
}

@media (max-width: 480px) {
  .usm-notice-modal {
    align-items: flex-start;
    padding-top: 164px;
  }

  .usm-notice-panel {
    width: 90%;
  }

  .usm-notice-header {
    padding: 16px;
  }

  .usm-notice-title {
    font-size: 18px;
  }

  .usm-notice-subtitle {
    font-size: 11px;
  }

  .usm-notice-body {
    padding: 18px 24px 6px;
  }

  .usm-prize-list li {
    padding: 10px 12px;
    font-size: 14px;
  }

  .usm-rank {
    font-size: 14px;
  }

  .usm-amount {
    font-size: 15px;
  }

  .usm-note {
    font-size: 12px;
  }

  .usm-notice-footer {
    padding: 10px 16px 16px;
  }
}

@media (max-width: 380px) {
  .usm-card-footer {
    grid-template-columns: 1fr;
  }

  .usm-card-actions {
    width: 100%;
  }

  .usm-btn-vote {
    justify-self: end;
  }
}

.usm-recharge-promo__glow {
  display: none;
}

.usm-recharge-orbits span {
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: linear-gradient(135deg, #ffd166, #ff9f1c);
}

.usm-recharge-orbits span::after {
  color: #111827;
  content: "+";
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
}

.usm-custom-section.is-active {
  border-color: rgba(40, 240, 213, .36);
  box-shadow: 0 16px 38px rgba(40, 240, 213, .12);
}

.usm-rpack:focus-visible,
.usm-custom-amount button:focus-visible,
.usm-recharge-submit:focus-visible,
.usm-recharge-promo__button:focus-visible,
.usm-topbar-recharge:focus-visible {
  outline: 3px solid rgba(40, 240, 213, .72);
  outline-offset: 3px;
}

.usm-recharge-status {
  margin-top: 12px;
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff1f5;
  color: #be185d;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.usm-recharge-status.is-success {
  background: #ecfdf5;
  color: #047857;
}

@keyframes usm-float-coin {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-10deg);
  }

  50% {
    transform: translate3d(0, -12px, 0) rotate(10deg);
  }
}

@media (max-width: 900px) {
  .usm-recharge-promo {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .usm-recharge-promo__meter {
    justify-self: start;
  }

  .usm-recharge-promo__button {
    justify-self: start;
  }

  .usm-recharge-hero,
  .usm-recharge-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .usm-recharge-summary {
    position: static;
  }

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

  .usm-vote-quick {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 782px) {
  .admin-bar .usm-recharge-nav {
    top: 46px;
  }
}

@media (max-width: 768px) {
  .usm-topbar__inner {
    flex-wrap: wrap;
    gap: 10px;
  }

  .usm-brand {
    min-width: 0;
  }

  .usm-topbar-actions {
    width: 100%;
    justify-content: space-between;
  }

  .usm-account-chip {
    min-width: 0;
  }

  .usm-topbar-recharge {
    flex: 0 0 auto;
    padding: 10px 12px;
    font-size: 13px;
  }

  .usm-recharge-promo {
    margin-bottom: 16px;
    padding: 16px;
  }

  .usm-recharge-promo h2 {
    font-size: 22px;
  }

  .usm-recharge-promo__meter {
    grid-template-columns: repeat(3, auto);
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 10px 12px;
  }

  .usm-recharge-promo__meter strong {
    font-size: 22px;
  }

  .usm-recharge-promo__button {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .usm-recharge-page {
    overflow-x: hidden;
  }

  .usm-recharge-nav {
    grid-template-columns: auto minmax(0, 1fr);
    padding: 12px;
  }

  .usm-recharge-nav h1 {
    font-size: 26px;
  }

  .usm-recharge-balance-pill {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
    justify-items: start;
  }

  .usm-recharge-nav .usm-account-chip {
    grid-column: 1 / -1;
    width: 100%;
  }

  .usm-recharge-shell {
    padding: 0 12px 28px;
  }

  .usm-recharge-hero {
    gap: 18px;
    margin-top: 12px;
    border-radius: 20px;
    padding: 24px 18px;
  }

  .usm-recharge-hero h2 {
    font-size: 34px;
  }

  .usm-recharge-hero p {
    font-size: 14px;
  }

  .usm-recharge-wallet-card {
    min-height: 0;
  }

  .usm-recharge-section,
  .usm-recharge-history,
  .usm-recharge-summary {
    border-radius: 16px;
    padding: 16px;
  }

  .usm-package-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .usm-section-heading {
    align-items: start;
    flex-direction: column;
    gap: 4px;
  }

  .usm-rpack {
    min-height: 108px;
    padding: 14px 6px 10px;
  }

  .usm-rpack__coins {
    font-size: 22px;
  }

  .usm-rpack__price {
    font-size: 14px;
  }

  .usm-custom-amount {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .usm-custom-amount button {
    grid-column: 1 / -1;
    min-height: 42px;
  }

  .usm-recharge-summary h2 {
    font-size: 24px;
  }

  .usm-order {
    grid-template-columns: minmax(0, 1fr);
  }

  .usm-account-gate {
    grid-template-columns: minmax(0, 1fr);
  }

  .usm-account-gate button {
    width: 100%;
  }

  .usm-account-actions--three,
  .usm-identity-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .usm-identity-upload {
    min-height: 108px;
    padding: 18px;
  }
}

@media (max-width: 480px) {
  .usm-topbar__inner {
    padding: 10px 12px;
  }

  .usm-brand {
    width: 100%;
    font-size: 17px;
  }

  .usm-topbar-actions {
    gap: 8px;
  }

  .usm-account-chip {
    flex: 1 1 auto;
    padding: 8px 12px;
  }

  .usm-account-chip span {
    max-width: 118px;
  }

  .usm-account-chip strong,
  .usm-topbar-recharge {
    font-size: 12px;
  }

  .usm-topbar-recharge__spark {
    display: none;
  }

  .usm-recharge-promo p {
    font-size: 13px;
  }

  .usm-recharge-promo__meter {
    width: 100%;
    justify-content: center;
  }

  .usm-recharge-nav {
    gap: 10px;
  }

  .usm-recharge-back {
    width: 38px;
    height: 38px;
  }

  .usm-recharge-hero h2 {
    font-size: 30px;
  }

  .usm-recharge-wallet-card strong {
    font-size: 42px;
  }

  .usm-package-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .usm-rpack {
    min-height: 96px;
    border-radius: 14px;
    padding: 12px 4px 9px;
  }

  .usm-rpack__badge {
    top: 6px;
    right: 6px;
    padding: 3px 5px;
    font-size: 9px;
  }

  .usm-rpack__coins {
    font-size: 19px;
  }

  .usm-rpack__label,
  .usm-rpack__bonus {
    font-size: 9px;
  }

  .usm-rpack__price {
    font-size: 12px;
  }

  .usm-custom-amount {
    grid-template-columns: minmax(0, 1fr);
  }

  .usm-custom-amount span {
    margin-top: -6px;
  }

  .usm-account-dialog,
  .usm-vote-dialog {
    border-radius: 18px;
    padding: 20px 16px;
  }

  .usm-account-head h2,
  .usm-vote-head h2 {
    font-size: 24px;
  }

  .usm-vote-wallet {
    grid-template-columns: minmax(0, 1fr);
  }

  .usm-vote-wallet a {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
  }

  .usm-vote-quick {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .usm-recharge-orbits span {
    animation: none;
  }
}
