/* MogU Creator Portal — "Punch Arcade" theme.
   MogU's own colorway (deep purple, punch pink #EE4266, teal #3CBBB1) on a
   top-navbar shell: neon glows, gradient hero band, divided stat strip.
   Space Grotesk display + IBM Plex Mono micro-labels. */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0B0714;
  --accent: #EE4266;
  --accent-deep: #B71E45;
  --accent-rgb: 238, 66, 102;
  --teal: #3CBBB1;
  --teal-rgb: 60, 187, 177;
  --purple: #6C4BD8;
  --purple-rgb: 108, 75, 216;
  --gold: #E8C55A;
  --red: #FF7A7A;
  --text: #F5F2FF;
  --muted: #A79FC2;
  --muted-rgb: 167, 159, 194;
  --card: rgba(38, 27, 82, 0.42);
  --card-line: rgba(158, 134, 255, 0.16);
  --inner: rgba(11, 7, 20, 0.45);
  --inner-line: rgba(158, 134, 255, 0.12);
  --brand-gradient: linear-gradient(135deg, var(--accent), var(--accent-deep));
  --font-display: "Space Grotesk", "Segoe UI", -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-display);
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: #fff; }
button, input { font-family: inherit; }

/* the hidden attribute must win over any display the theme sets */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }

.stage { display: none; min-height: 100dvh; }
.stage.active { display: flex; }

/* ---------- login gate ---------- */

#stage-login {
  align-items: stretch;
  justify-content: flex-start;
  text-align: center;
  padding: 0;
  background:
    radial-gradient(55% 40% at 50% -5%, rgba(var(--purple-rgb), 0.4), transparent 70%),
    radial-gradient(40% 32% at 12% 88%, rgba(var(--accent-rgb), 0.16), transparent 70%),
    radial-gradient(36% 30% at 90% 80%, rgba(var(--teal-rgb), 0.12), transparent 70%),
    var(--bg);
}
.public-shell { width: 100%; min-height: 100dvh; display: flex; flex-direction: column; }
.public-nav {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.public-brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-size: 14px; font-weight: 900; }
.public-brand img { width: 28px; height: 28px; border-radius: 7px; }
.public-nav nav, .public-footer nav { display: flex; align-items: center; gap: 22px; }
.public-nav nav a, .public-footer a { color: rgba(var(--muted-rgb), 0.78); text-decoration: none; font-size: 12.5px; font-weight: 750; }
.public-nav nav a:hover, .public-footer a:hover { color: #fff; }
.public-main { width: min(960px, calc(100% - 40px)); margin: 0 auto; }
.login-box { display: flex; flex-direction: column; align-items: center; max-width: 620px; margin: 0 auto; padding: 88px 0 76px; }
.public-eyebrow, .public-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 5px 11px;
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  border-radius: 999px;
  color: #ff91aa;
  background: rgba(var(--accent-rgb), 0.08);
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.public-eyebrow { margin-bottom: 20px; }
.login-icon {
  width: 72px; height: 72px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 44px rgba(var(--purple-rgb), 0.55);
  margin-bottom: 26px;
}
.login-title {
  font-size: clamp(38px, 8.5vw, 54px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -1.5px;
  color: #fff;
  text-transform: uppercase;
}
.title-accent {
  font-style: normal;
  background: linear-gradient(92deg, var(--accent) 10%, #B76BFF 55%, var(--teal) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.login-sub { max-width: 540px; margin-top: 18px; font-size: 15.5px; font-weight: 500; color: var(--muted); line-height: 1.6; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 17px 30px;
  border: none;
  border-radius: 999px;
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  color: #fff;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}
.btn-discord {
  margin-top: 30px;
  width: 100%;
  max-width: 330px;
  background: var(--brand-gradient);
  box-shadow: 0 12px 38px rgba(var(--accent-rgb), 0.42);
}
.btn-discord:hover { transform: translateY(-2px); box-shadow: 0 16px 46px rgba(var(--accent-rgb), 0.5); }
.btn-discord:active { transform: scale(0.97); }
.privacy-note {
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: rgba(var(--muted-rgb), 0.7);
  max-width: 340px;
  line-height: 1.7;
}

.public-section { padding: 72px 0; border-top: 1px solid rgba(255, 255, 255, 0.07); text-align: left; }
.public-section-head { max-width: 620px; margin-bottom: 28px; }
.public-section-head h2 { margin-top: 13px; font-size: clamp(25px, 5vw, 36px); line-height: 1.08; letter-spacing: -0.6px; }
.public-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.public-card {
  min-height: 210px;
  padding: 25px;
  border: 1px solid var(--card-line);
  border-radius: 17px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(var(--purple-rgb), 0.12));
}
.public-card > b { color: var(--accent); font-size: 12px; letter-spacing: 0.9px; }
.public-card h3 { margin-top: 36px; font-size: 17px; }
.public-card p, .detail-grid p { margin-top: 10px; color: rgba(var(--muted-rgb), 0.78); font-size: 13px; font-weight: 600; line-height: 1.65; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 30px; }
.detail-grid p { margin: 0; padding: 19px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.detail-grid strong { color: #fff; }
.public-footer {
  width: min(1080px, calc(100% - 40px));
  margin: auto auto 0;
  padding: 26px 0 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  color: rgba(var(--muted-rgb), 0.58);
  font-size: 11.5px;
  font-weight: 650;
}

/* ---------- portal shell ---------- */

#stage-portal {
  flex-direction: column;
  background:
    radial-gradient(50% 34% at 50% -4%, rgba(var(--purple-rgb), 0.34), transparent 70%),
    radial-gradient(34% 26% at 100% 30%, rgba(var(--accent-rgb), 0.08), transparent 70%),
    radial-gradient(30% 24% at 0% 65%, rgba(var(--teal-rgb), 0.07), transparent 70%),
    var(--bg);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(11, 7, 20, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--card-line);
}
.topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px clamp(16px, 3vw, 28px);
}
.topbar-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); flex-shrink: 0; }
.topbar-icon { width: 30px; height: 30px; border-radius: 9px; box-shadow: 0 0 18px rgba(var(--purple-rgb), 0.6); }
.topbar-name { font-size: 15.5px; font-weight: 700; letter-spacing: -0.2px; white-space: nowrap; }
.topbar-name em {
  font-style: normal;
  background: linear-gradient(92deg, var(--accent), #B76BFF);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.topnav { display: flex; align-items: center; gap: 4px; margin: 0 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.topnav::-webkit-scrollbar { display: none; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(var(--muted-rgb), 0.95);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.12s ease, background 0.12s ease;
}
.nav-item svg { flex-shrink: 0; opacity: 0.85; }
.nav-item:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.nav-item.active {
  color: #fff;
  background: var(--brand-gradient);
  box-shadow: 0 6px 22px rgba(var(--accent-rgb), 0.38);
}
.nav-item.active svg { opacity: 1; }

.topbar-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.topbar-user {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-line);
  border-radius: 999px;
  padding: 5px 12px 5px 5px;
}
.topbar-avatar { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.topbar-signout {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-line);
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
}
.topbar-signout:hover { color: var(--accent); border-color: rgba(var(--accent-rgb), 0.45); }
.hidden-collapse { display: none; }

/* ---------- main / views ---------- */

.main { flex: 1; min-width: 0; padding: 30px clamp(16px, 4vw, 40px) 70px; }
.portal-footer {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 calc(26px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: rgba(var(--muted-rgb), 0.62);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
}
.portal-footer nav { display: flex; align-items: center; gap: 20px; }
.portal-footer a {
  color: rgba(var(--muted-rgb), 0.82);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}
.portal-footer a:hover,
.portal-footer a:focus-visible { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.view { display: none; max-width: 980px; margin: 0 auto; }
.view.active { display: block; }

.view-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.view-title { font-size: 30px; font-weight: 700; letter-spacing: -1px; }
.view-sub { margin-top: 6px; font-size: 14px; font-weight: 500; color: var(--muted); line-height: 1.5; }
.narrow { max-width: 470px; margin-left: auto; margin-right: auto; }
.view-head.narrow { margin-bottom: 22px; }

/* month picker */
.month-picker { position: relative; flex-shrink: 0; }
.month-btn {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-line);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 600;
  padding: 9px 14px;
  border-radius: 999px;
  cursor: pointer;
}
.month-btn:hover { background: rgba(255, 255, 255, 0.08); }
.month-menu {
  display: none;
  position: absolute; right: 0; top: calc(100% + 8px);
  background: #191131;
  border: 1px solid var(--card-line);
  border-radius: 12px;
  padding: 6px;
  min-width: 170px;
  z-index: 30;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6);
}
.month-menu.open { display: block; }
.month-menu button {
  display: block; width: 100%; text-align: left;
  background: none; border: none; color: rgba(255, 255, 255, 0.8);
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 600; padding: 8px 10px;
  border-radius: 8px; cursor: pointer;
}
.month-menu button:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.month-menu button.sel { color: var(--accent); background: rgba(var(--accent-rgb), 0.1); }

/* ---------- cards ---------- */

.card {
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: 18px;
  padding: 22px 24px;
  margin-bottom: 18px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.3);
}
.card-inner {
  background: var(--inner);
  border: 1px solid var(--inner-line);
  border-radius: 14px;
}
.card-title { font-size: 17px; font-weight: 700; letter-spacing: -0.2px; text-align: center; }
.card-title.centered { text-align: center; }
.card-sub {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: rgba(var(--muted-rgb), 0.8);
  text-align: center;
}

/* hero band (dashboard countdown) */
.hero-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  border-radius: 20px;
  padding: 24px 28px;
  margin-bottom: 18px;
  background:
    linear-gradient(120deg, rgba(var(--accent-rgb), 0.24), rgba(var(--purple-rgb), 0.3) 52%, rgba(var(--teal-rgb), 0.2));
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: 0 18px 50px rgba(var(--purple-rgb), 0.22);
}
.hero-kicker {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--teal);
}
.hero-title { margin-top: 6px; font-size: 21px; font-weight: 700; letter-spacing: -0.4px; }
.countdown { display: flex; align-items: center; gap: 10px; }
.count-cell {
  background: rgba(11, 7, 20, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 13px;
  padding: 10px 14px;
  min-width: 66px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.count-cell b { display: block; font-size: 24px; font-weight: 700; }
.count-cell i {
  display: block;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(var(--muted-rgb), 0.9);
  margin-top: 3px;
}

/* stat strip */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 0;
  overflow: hidden;
}
.stat { padding: 20px 24px; display: flex; flex-direction: column; gap: 6px; border-left: 1px solid var(--inner-line); }
.stat:first-child { border-left: none; }
.stat b { font-size: 26px; font-weight: 700; letter-spacing: -0.5px; }
.stat span {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(var(--muted-rgb), 0.85);
}

/* accounts / empty states */
.accounts-card { min-height: 170px; }
.empty-state { text-align: center; padding: 34px 10px 22px; }
.empty-main { font-size: 15px; font-weight: 700; }
.empty-sub { margin-top: 6px; font-size: 13px; font-weight: 500; color: rgba(var(--muted-rgb), 0.85); line-height: 1.6; }

.account-rows { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.account-row { display: flex; align-items: center; gap: 12px; padding: 13px 16px; }
.account-row .acc-handle { font-weight: 700; font-size: 14px; }
.account-row .acc-status {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 600; letter-spacing: 0.5px;
  padding: 4px 10px; border-radius: 999px;
  color: var(--gold); border: 1px solid rgba(232, 197, 90, 0.4);
  white-space: nowrap;
}
.account-row .acc-status.tier-basic { color: var(--teal); border-color: rgba(var(--teal-rgb), 0.4); }
.account-row .acc-status.tier-elite { color: var(--gold); border-color: rgba(232, 197, 90, 0.4); }
.account-row .acc-status.rejected { color: var(--red); border-color: rgba(255, 122, 122, 0.4); }
.account-row .acc-status.oauth { color: var(--teal); border-color: rgba(var(--teal-rgb), 0.4); }
.acc-code { color: #fff; font-weight: 700; letter-spacing: 0.6px; }
.account-remove {
  background: none; border: none; cursor: pointer;
  color: rgba(255, 255, 255, 0.4); font-size: 16px; line-height: 1; padding: 4px;
}
.account-remove:hover { color: var(--accent); }

/* connect cards (submit / videos) */
.connect-card { text-align: center; padding: 28px 24px 30px; }
.socials-pair { display: flex; justify-content: center; margin: 22px 0 16px; }
.social-badge {
  width: 28px; height: 28px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
}
.social-badge.tiktok { background: #000; border: 1px solid rgba(255, 255, 255, 0.25); z-index: 1; }
.social-badge.insta {
  background: radial-gradient(circle at 30% 110%, #fdc468 10%, #df4996 55%, #9b36b7 100%);
  margin-left: -8px;
}

/* submit video page */
.submit-card { padding: 28px 26px 26px; }
.submit-account-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 20px;
  color: rgba(var(--muted-rgb), 0.86);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}
.submit-account-field select,
.media-account-picker select {
  width: 100%;
  border: 1px solid var(--card-line);
  border-radius: 11px;
  background: #181329;
  color: #fff;
  color-scheme: dark;
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  outline: none;
  cursor: pointer;
}
.submit-account-field select { padding: 12px 38px 12px 14px; }
.submit-account-field select:focus,
.media-account-picker select:focus { border-color: rgba(var(--teal-rgb), 0.65); }
.submit-account-note {
  margin-top: 7px;
  color: rgba(var(--muted-rgb), 0.76);
  font-size: 11.5px;
  line-height: 1.5;
}
.url-row { display: flex; gap: 10px; margin-top: 20px; }
.url-row input {
  flex: 1;
  min-width: 0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-line);
  border-radius: 12px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 13px 16px;
  outline: none;
}
.url-row input::placeholder { color: rgba(var(--muted-rgb), 0.6); }
.url-row input:focus { border-color: rgba(var(--accent-rgb), 0.6); }
.paste-btn { gap: 7px; flex-shrink: 0; border-radius: 12px; }
.submit-video-btn { width: 100%; gap: 9px; margin-top: 12px; padding: 14px; font-size: 14.5px; }
.submit-video-btn:disabled {
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.55);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}
.submit-status {
  margin-top: 14px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  color: rgba(var(--muted-rgb), 0.9);
  line-height: 1.6;
}
.submit-status.error { color: var(--red); }
.submit-status.ok { color: var(--teal); }
.submit-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.submit-info-grid .card { margin-bottom: 0; }
.card-title.left { text-align: left; }
.req-list { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.req-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; font-weight: 500; color: rgba(var(--muted-rgb), 0.9); line-height: 1.55; }
.req-list li b { color: #fff; font-weight: 700; }
.req-check { flex-shrink: 0; margin-top: 2px; color: var(--teal); }
.payout-lock-note { display: flex; align-items: flex-start; gap: 10px; margin-top: 16px; font-size: 13px; font-weight: 500; color: rgba(var(--muted-rgb), 0.9); line-height: 1.65; }
.payout-lock-note b { color: #fff; font-weight: 700; }
.payout-warn { flex-shrink: 0; margin-top: 2px; color: var(--gold); }

.tiktok-videos-card { padding: 24px; }
.tiktok-profile-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 17px;
  align-items: center;
  margin-bottom: 24px;
  padding: 19px;
  border: 1px solid rgba(var(--teal-rgb), 0.24);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(var(--teal-rgb), 0.09), rgba(var(--accent-rgb), 0.08));
}
.tiktok-profile-summary[hidden] { display: none; }
.tiktok-profile-identity { display: flex; align-items: center; gap: 14px; min-width: 0; }
.tiktok-profile-avatar {
  width: 66px;
  height: 66px;
  flex: 0 0 66px;
  border: 2px solid rgba(var(--teal-rgb), 0.45);
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.06);
}
.tiktok-profile-copy { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.tiktok-profile-source {
  margin-bottom: 5px;
  color: var(--teal);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.tiktok-profile-copy strong { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 17px; }
.tiktok-profile-copy a { margin-top: 4px; color: rgba(var(--muted-rgb), 0.95); font-size: 12.5px; text-decoration: none; }
.tiktok-profile-copy a:hover { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.tiktok-profile-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; }
.instagram-profile-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tiktok-profile-stats div { min-width: 0; padding: 5px 10px; text-align: center; border-left: 1px solid var(--inner-line); }
.tiktok-profile-stats div:first-child { border-left: 0; }
.tiktok-profile-stats dt { color: rgba(var(--muted-rgb), 0.8); font-size: 9px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; }
.tiktok-profile-stats dd { margin: 5px 0 0; color: #fff; font-family: var(--font-mono); font-size: 15px; font-weight: 700; }
.tiktok-profile-note { grid-column: 1 / -1; margin: -3px 0 0; color: rgba(var(--muted-rgb), 0.72); font-size: 10.5px; }
.videos-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; }
.videos-card-actions {
  display: flex;
  flex: 0 1 320px;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 9px;
}
.videos-card-actions .btn-pill.small { margin-left: 0; }
.media-account-picker {
  display: flex;
  min-width: 170px;
  flex: 1;
  flex-direction: column;
  gap: 5px;
  color: rgba(var(--muted-rgb), 0.78);
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
.media-account-picker[hidden] { display: none; }
.media-account-picker select {
  min-width: 0;
  padding: 8px 30px 8px 10px;
}
.video-load-state { margin-top: 22px; color: rgba(var(--muted-rgb), 0.85); font-size: 13px; }
.tiktok-video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}
.tiktok-video {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--card-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  color: inherit;
  text-decoration: none;
  transition: transform 150ms ease, border-color 150ms ease;
}
.tiktok-video:hover { transform: translateY(-2px); border-color: rgba(var(--teal-rgb), 0.5); }
.tiktok-video-cover {
  position: relative;
  display: block;
  aspect-ratio: 9 / 12;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(var(--purple-rgb), 0.26), rgba(var(--teal-rgb), 0.12));
}
.tiktok-video-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tiktok-video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  padding-left: 2px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 50%;
  background: rgba(8, 5, 20, 0.68);
  color: #fff;
  font-size: 13px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transform: translate(-50%, -50%);
  backdrop-filter: blur(6px);
}
.tiktok-video-copy { padding: 11px; }
.tiktok-video-title { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 700; }
.tiktok-video-metrics { display: flex; gap: 9px; margin-top: 7px; color: rgba(var(--muted-rgb), 0.85); font-family: var(--font-mono); font-size: 9px; }

.btn-pill {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-gradient);
  color: #fff;
  border: none; border-radius: 999px;
  font-size: 13.5px; font-weight: 700;
  padding: 10px 20px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(var(--accent-rgb), 0.32);
  transition: transform 0.13s ease, box-shadow 0.13s ease;
}
.btn-pill:hover { transform: translateY(-1px); box-shadow: 0 11px 30px rgba(var(--accent-rgb), 0.42); }
.btn-pill:active { transform: scale(0.96); }
.btn-pill.small { padding: 8px 15px; font-size: 12.5px; margin-left: auto; flex-shrink: 0; }
.btn-pill.ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, 0.3); box-shadow: none; }
.btn-pill.connected {
  background: rgba(var(--teal-rgb), 0.14);
  color: var(--teal);
  border: 1px solid rgba(var(--teal-rgb), 0.4);
  box-shadow: none;
}

/* ---------- leaderboard ---------- */

.prize-flex { display: flex; gap: 16px; margin-top: 20px; flex-wrap: wrap; }
.prize-total {
  flex: 1 1 220px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 26px 20px; text-align: center;
}
.prize-total b {
  font-size: 38px; font-weight: 700; letter-spacing: -1px;
  background: linear-gradient(92deg, var(--accent), #B76BFF);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.prize-total span { font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; color: rgba(var(--muted-rgb), 0.8); }
.prize-breakdown { flex: 2 1 380px; padding: 18px; }
.breakdown-label {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 600;
  letter-spacing: 1.8px; text-transform: uppercase;
  color: rgba(var(--muted-rgb), 0.75); margin-bottom: 14px;
}
.breakdown-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px; }
.payout-cell {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 11px;
  text-align: center; padding: 10px 4px;
}
.payout-cell i { display: block; font-style: normal; font-family: var(--font-mono); font-size: 9.5px; font-weight: 600; color: rgba(var(--muted-rgb), 0.75); }
.payout-cell b { font-size: 15px; font-weight: 700; }
.breakdown-grid .payout-cell:first-child {
  background: rgba(var(--accent-rgb), 0.14);
  border-color: rgba(var(--accent-rgb), 0.4);
}
.breakdown-grid .payout-cell:first-child i { color: var(--accent); }

.rankings-locked { text-align: center; padding: 34px 20px 30px; margin-top: 20px; }
.rankings-locked .socials-pair { margin-top: 0; }
.rankings-locked .btn-pill { margin-top: 18px; }

/* ---------- offers ---------- */

.tiers { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; padding: 8px 0 4px; }
.tier { flex: 0 1 260px; padding: 22px 20px 24px; text-align: center; }
.tier-name { font-size: 18px; font-weight: 700; letter-spacing: 2px; }
.tier-name.basic { color: var(--teal); text-shadow: 0 0 22px rgba(var(--teal-rgb), 0.5); }
.tier-name.elite { color: var(--gold); text-shadow: 0 0 22px rgba(232, 197, 90, 0.45); }
.tier-req {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin-top: 12px; font-size: 13px; font-weight: 600;
}
.tier-flags { margin-top: 8px; font-size: 12px; letter-spacing: 2px; line-height: 1.6; }
.tier-badge {
  display: inline-block; margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 500; color: var(--muted);
  border: 1px dashed rgba(var(--muted-rgb), 0.45);
  border-radius: 999px; padding: 4px 11px;
}
.tier-rows { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.tier-row {
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  padding: 9px 13px;
  font-size: 13px;
}
.tier-row b { font-weight: 700; color: var(--accent); }
.tier-row span { color: rgba(var(--muted-rgb), 0.9); font-weight: 500; font-size: 12.5px; }
.tier-max { margin-top: 15px; font-size: 13px; font-weight: 500; color: var(--muted); }
.tier-max b { color: #fff; font-weight: 700; }

/* ---------- settings ---------- */

.profile-row { display: flex; align-items: center; gap: 14px; padding: 15px 18px; margin-top: 18px; }
.profile-avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 20px rgba(var(--purple-rgb), 0.45); }
.profile-names { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.profile-names b { font-size: 15px; font-weight: 700; }
.profile-names span { font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; color: rgba(var(--muted-rgb), 0.85); }
.discord-chip {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono);
  font-size: 10.5px; font-weight: 500;
  color: rgba(var(--muted-rgb), 0.95);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 6px 12px;
  white-space: nowrap;
}
.connect-center { text-align: center; padding: 8px 0 6px; }

.pay-rows { display: flex; flex-direction: column; gap: 11px; margin-top: 18px; }
.pay-row { display: flex; align-items: center; gap: 13px; padding: 13px 16px; }
.pay-icon {
  width: 36px; height: 36px; border-radius: 11px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.pay-icon.crypto { color: #8c48ff; background: transparent; }
.pay-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pay-text b { font-size: 13.5px; font-weight: 700; }
.pay-name-line { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pay-connected-state {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #35e89a;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
}
.pay-connected-state i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 9px currentColor;
}
.pay-detail {
  overflow: hidden;
  color: rgba(var(--muted-rgb), 0.8);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pay-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  flex-shrink: 0;
}
.wallet-edit {
  min-width: 60px;
  padding: 9px 16px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.wallet-edit:hover { background: rgba(255, 255, 255, 0.1); }
.wallet-remove {
  padding: 7px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.4);
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
}
.wallet-remove:hover { color: var(--red); }

/* ---------- mog card studio ---------- */

/* The selected colorway themes the studio controls too; mogcard.js writes
   these variables onto #view-mogcard when a colorway is picked. */
#view-mogcard {
  --mc-accent: var(--accent);
  --mc-accent-deep: var(--accent-deep);
  --mc-accent-rgb: var(--accent-rgb);
  --mc-btn-text: #fff;
}
#view-mogcard .btn-pill:not(.ghost) {
  background: linear-gradient(135deg, var(--mc-accent), var(--mc-accent-deep));
  color: var(--mc-btn-text);
  box-shadow: 0 8px 24px rgba(var(--mc-accent-rgb), 0.32);
}
#view-mogcard .btn-pill:not(.ghost):hover {
  box-shadow: 0 11px 30px rgba(var(--mc-accent-rgb), 0.42);
}

.mc-studio { display: grid; grid-template-columns: 320px 1fr; gap: 18px; align-items: start; }
.mc-preview-col { position: sticky; top: 80px; }
#mc-canvas {
  display: block;
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--card-line);
  background: #000;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45), 0 0 40px rgba(var(--purple-rgb), 0.18);
}
.mc-actions { display: flex; justify-content: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.mc-status {
  margin-top: 10px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(var(--muted-rgb), 0.9);
  min-height: 16px;
  line-height: 1.5;
}

.mc-controls { margin-bottom: 0; }
.mc-controls .card-title { margin-top: 22px; }
.mc-controls .card-title:first-child { margin-top: 0; }

.mc-modes { display: flex; gap: 8px; margin: 12px auto 0; max-width: 440px; }
.mc-mode {
  flex: 1;
  min-width: 0;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  text-align: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--card-line);
  border-radius: 13px;
  color: rgba(var(--muted-rgb), 0.95);
  padding: 10px 6px;
  cursor: pointer;
}
.mc-mode i { font-style: normal; font-size: 16px; line-height: 1; }
.mc-mode b { color: #fff; font-weight: 700; font-size: 12.5px; }
.mc-mode span { font-size: 10px; font-weight: 500; color: rgba(var(--muted-rgb), 0.75); }
.mc-mode:hover { background: rgba(255, 255, 255, 0.07); }
.mc-mode.active {
  background: rgba(var(--mc-accent-rgb), 0.13);
  border-color: rgba(var(--mc-accent-rgb), 0.55);
}

#mc-speed-section { margin-top: 26px; }

.mc-slider-row { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.mc-slider-name { width: 92px; flex-shrink: 0; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.mc-slider-row input[type="range"] { flex: 1; min-width: 0; accent-color: var(--mc-accent); cursor: pointer; }
.mc-slider-value { width: 34px; text-align: right; font-family: var(--font-mono); font-size: 12px; font-weight: 600; }

.mc-tier {
  margin-top: 14px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(var(--muted-rgb), 0.8);
}
#mc-tier { font-weight: 700; }

.mc-colorways { display: flex; justify-content: center; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.mc-colorway {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--card-line);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 12.5px; font-weight: 700;
  padding: 8px 15px;
  cursor: pointer;
}
.mc-colorway:hover { background: rgba(255, 255, 255, 0.07); }
.mc-colorway.selected { border-color: rgba(var(--mc-accent-rgb), 0.6); background: rgba(var(--mc-accent-rgb), 0.12); color: #fff; }
.mc-swatch { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.25); }

.mc-presets-label {
  margin: 12px 0 7px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: rgba(var(--muted-rgb), 0.7);
  text-align: center;
}
.mc-presets { display: flex; justify-content: center; flex-wrap: wrap; gap: 7px; }
.mc-preset {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--card-line);
  border-radius: 999px;
  font-size: 12px; font-weight: 700;
  padding: 7px 13px;
  cursor: pointer;
}
.mc-preset:hover { background: rgba(255, 255, 255, 0.08); }

/* ---------- modal ---------- */

.modal-backdrop {
  display: none;
  position: fixed; inset: 0; z-index: 50;
  background: rgba(6, 3, 14, 0.68);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  align-items: center; justify-content: center;
  padding: 20px;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: #191131;
  border: 1px solid var(--card-line);
  border-radius: 18px;
  padding: 26px 24px;
  width: 100%; max-width: 380px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.65);
}
.modal h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.3px; }
.modal p { margin-top: 8px; font-size: 13px; font-weight: 500; color: rgba(var(--muted-rgb), 0.9); line-height: 1.55; }
.platform-toggle { display: flex; gap: 8px; margin-top: 16px; }
.platform-opt {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-line);
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px; font-weight: 700;
  padding: 9px; border-radius: 999px; cursor: pointer;
}
.platform-opt.active {
  color: #fff;
  background: rgba(var(--accent-rgb), 0.18);
  border-color: rgba(var(--accent-rgb), 0.55);
}
.modal input {
  width: 100%; margin-top: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-line);
  border-radius: 11px;
  color: #fff; font-size: 14px; font-weight: 600;
  padding: 11px 14px; outline: none;
}
.modal input::placeholder { color: rgba(var(--muted-rgb), 0.6); }
.modal input:focus { border-color: rgba(var(--accent-rgb), 0.6); }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.tiktok-oauth-panel, .instagram-oauth-panel { margin-top: 16px; text-align: center; }
.tiktok-connect-btn { width: 100%; background: #fff; color: #121212; }
.tiktok-connect-btn:hover { background: #e8fffb; }
.instagram-connect-btn {
  width: 100%;
  color: #fff;
  background: linear-gradient(100deg, #833ab4, #c13584 45%, #f77737 100%);
}
.instagram-connect-btn:hover { filter: brightness(1.08); }
.modal .oauth-note { margin-top: 10px; font-size: 11.5px; color: rgba(var(--muted-rgb), 0.75); }
.modal .connect-status,
.modal .dialog-status {
  margin-top: 12px;
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.55;
}

/* crypto wallet modal */
.wallet-modal {
  max-width: 540px;
  padding: 28px;
  background: #110f18;
  border-color: rgba(255, 255, 255, 0.16);
  border-radius: 14px;
}
.wallet-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.wallet-modal h3 { font-size: 20px; }
.wallet-modal > p {
  max-width: 470px;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.64);
  line-height: 1.65;
}
.wallet-modal form { margin-top: 24px; }
.wallet-label {
  display: block;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.62);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 1.7px;
  text-transform: uppercase;
}
.wallet-label:first-child { margin-top: 0; }
.wallet-modal input {
  height: 52px;
  margin-top: 7px;
  border-color: rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: #0d0c12;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2px;
}
.wallet-modal input:focus {
  border-color: rgba(var(--teal-rgb), 0.75);
  box-shadow: 0 0 0 3px rgba(var(--teal-rgb), 0.13);
}
.wallet-modal input.invalid { border-color: rgba(255, 122, 122, 0.72); }
.modal .wallet-status {
  margin-top: 11px;
  color: var(--red);
  font-size: 12px;
}
.wallet-actions { margin-top: 21px; }
.wallet-actions .btn-pill {
  min-width: 96px;
  box-shadow: none;
}
.wallet-actions #wallet-save {
  background: #d7d7d9;
  color: #161419;
}
.wallet-actions #wallet-save:hover:not(:disabled) {
  background: #fff;
  box-shadow: none;
}
.wallet-actions .btn-pill:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  transform: none;
}
.danger-dialog {
  max-width: 576px;
  padding: 28px;
  background: #110f18;
  border-color: rgba(255, 255, 255, 0.16);
  border-radius: 10px;
}
.danger-dialog h3 {
  font-size: 20px;
  letter-spacing: -0.35px;
}
.danger-dialog > p:not(.dialog-status) {
  max-width: 480px;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
  line-height: 1.55;
}
.danger-actions {
  gap: 9px;
  margin-top: 21px;
}
.dialog-cancel,
.dialog-danger {
  min-width: 91px;
  min-height: 45px;
  padding: 10px 17px;
  border-radius: 7px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.dialog-cancel {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
}
.dialog-cancel:hover { background: rgba(255, 255, 255, 0.06); }
.dialog-danger {
  border: 1px solid #ff4d58;
  background: #ff4d58;
}
.dialog-danger:hover { background: #ff606a; }
.dialog-danger:disabled {
  opacity: 0.55;
  cursor: wait;
}
.demo-login-dialog {
  max-width: 430px;
  padding: 28px;
  background: #110f18;
  border-color: rgba(255, 255, 255, 0.16);
  border-radius: 14px;
}
.demo-login-dialog > p {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.65);
}
.demo-login-dialog form { margin-top: 22px; }
.demo-login-dialog input {
  height: 50px;
  margin-top: 7px;
  background: #0d0c12;
  border-color: rgba(255, 255, 255, 0.12);
}

/* transient notifications */
.toast-region {
  position: fixed;
  top: 88px;
  right: 20px;
  z-index: 80;
  display: flex;
  width: min(390px, calc(100vw - 32px));
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.portal-toast {
  --toast-color: var(--red);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 11px;
  align-items: start;
  padding: 14px 14px 14px 15px;
  border: 1px solid color-mix(in srgb, var(--toast-color) 38%, transparent);
  border-radius: 12px;
  background: rgba(17, 15, 24, 0.96);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.48);
  color: #fff;
  pointer-events: auto;
  animation: toast-in 180ms ease-out;
}
.portal-toast.success { --toast-color: var(--teal); }
.portal-toast.info { --toast-color: #9b7cff; }
.toast-mark {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--toast-color) 16%, transparent);
  color: var(--toast-color);
  font-size: 12px;
  font-weight: 900;
}
.toast-message {
  padding-top: 2px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.55;
}
.toast-close {
  padding: 2px 4px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.42);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
}
.toast-close:hover { color: #fff; }
@keyframes toast-in {
  from { opacity: 0; transform: translateY(-8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* audience verification modal */
.account-row .acc-status.needs-verify { color: var(--red); border-color: rgba(255, 122, 122, 0.4); }
.account-row .verify-btn { margin-left: 10px; }
.account-row .acc-status + .verify-btn { margin-left: 10px; }
.modal.modal-wide { max-width: 980px; max-height: calc(100dvh - 40px); overflow-y: auto; }
.verify-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.modal-x {
  background: none; border: none; cursor: pointer;
  color: rgba(255, 255, 255, 0.45); font-size: 16px; line-height: 1; padding: 4px;
}
.modal-x:hover { color: var(--accent); }
.verify-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; margin-top: 18px; }
.verify-steps-label {
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 600;
  letter-spacing: 1.8px; text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 10px;
}
.verify-steps { list-style: none; counter-reset: vstep; display: flex; flex-direction: column; gap: 8px; }
.verify-steps li {
  position: relative;
  padding: 10px 13px 10px 42px;
  background: var(--inner);
  border: 1px solid var(--inner-line);
  border-radius: 11px;
  font-size: 12.5px; font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.5;
}
.verify-steps li::before {
  counter-increment: vstep;
  content: counter(vstep);
  position: absolute; left: 12px; top: 50%;
  transform: translateY(-50%);
  width: 20px; height: 20px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.16);
  border: 1px solid rgba(var(--accent-rgb), 0.5);
  color: #ff91aa;
  font-family: var(--font-mono);
  font-size: 10.5px; font-weight: 700;
}
.verify-filenote { margin-top: 12px; font-family: var(--font-mono); font-size: 10.5px; color: rgba(var(--muted-rgb), 0.75); }
.verify-preview {
  display: flex; align-items: center; justify-content: center;
  min-height: 340px;
  background: var(--inner);
  border: 1px solid var(--inner-line);
  border-radius: 14px;
  overflow: hidden;
}
.verify-preview video { width: 100%; max-height: 340px; background: #000; }
#verify-preview-empty {
  width: 100%;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: rgba(var(--muted-rgb), 0.7);
  text-align: center;
  line-height: 1.7;
}
#verify-guide-video { width: auto; max-width: 100%; border-radius: 10px; }
#verify-preview-message { margin: 0; }
.verify-notice {
  margin-top: 16px;
  padding: 15px 17px;
  border: 1px solid rgba(255, 122, 122, 0.4);
  border-radius: 13px;
  background: rgba(255, 122, 122, 0.06);
}
.verify-notice-title {
  font-size: 12.5px; font-weight: 800;
  letter-spacing: 0.6px; text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
}
.modal .verify-notice p { margin-top: 6px; font-size: 12px; line-height: 1.6; }
.verify-notice ul { margin: 8px 0 0 18px; }
.verify-notice li { font-size: 12px; font-weight: 500; color: rgba(var(--muted-rgb), 0.9); line-height: 1.7; }
.verify-notice b { color: #fff; }
.verify-actions { display: flex; gap: 10px; margin-top: 16px; }
.verify-actions .btn-pill { flex: 1; padding: 12px; }
.verify-actions .btn-pill:disabled {
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.55);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}
.verify-upload-progress {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(var(--teal-rgb), 0.28);
  border-radius: 11px;
  background: rgba(var(--teal-rgb), 0.06);
}
.verify-upload-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.8);
}
.verify-upload-progress-head strong { color: var(--teal); }
#verify-upload-bar {
  display: block;
  width: 100%;
  height: 8px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}
#verify-upload-bar::-webkit-progress-bar {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}
#verify-upload-bar::-webkit-progress-value {
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal), var(--accent));
}
#verify-upload-bar::-moz-progress-bar {
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal), var(--accent));
}
@media (max-width: 640px) {
  .verify-body { grid-template-columns: 1fr; }
  .verify-preview { min-height: 200px; }
}

.manual-connect-link {
  margin-top: 13px;
  padding: 3px;
  border: 0;
  background: transparent;
  color: rgba(var(--teal-rgb), 0.95);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* ---------- responsive ---------- */

@media (max-width: 880px) {
  .stat-strip { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: none; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--inner-line); }
  .breakdown-grid { grid-template-columns: repeat(5, 1fr); }
}
/* below this the 7 labeled nav items collide with the brand and user chip */
@media (max-width: 1250px) {
  .nav-item span { display: none; }
  .nav-item { padding: 9px 11px; }
}
@media (max-width: 760px) {
  .submit-info-grid { grid-template-columns: 1fr; }
  .mc-studio { grid-template-columns: 1fr; }
  .mc-preview-col { position: static; max-width: 300px; margin: 0 auto; }
  .tiktok-video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .videos-card-head { flex-direction: column; }
  .videos-card-actions { width: 100%; flex-basis: auto; justify-content: stretch; }
  .media-account-picker { min-width: 0; }
}
@media (max-width: 700px) {
  .toast-region { top: 16px; right: 16px; }
  .public-nav { min-height: 0; padding: 15px 0; align-items: flex-start; flex-direction: column; gap: 14px; }
  .public-nav nav { width: 100%; gap: 15px; flex-wrap: wrap; }
  .public-nav nav a { font-size: 11.5px; }
  .login-box { padding: 62px 0 58px; }
  .public-section { padding: 54px 0; }
  .public-card-grid, .detail-grid { grid-template-columns: 1fr; }
  .public-card { min-height: 180px; }
  .public-card h3 { margin-top: 24px; }
  .public-footer { align-items: flex-start; flex-direction: column; }
  .public-footer nav { align-items: flex-start; flex-direction: column; gap: 10px; }
  .portal-footer { align-items: flex-start; flex-direction: column; gap: 12px; }
  .portal-footer nav { align-items: flex-start; flex-wrap: wrap; gap: 10px 16px; }
  .topbar-inner { flex-wrap: wrap; gap: 10px; padding: 10px 14px; }
  .topnav { order: 3; width: 100%; margin: 0; justify-content: flex-start; }
  .topbar-right { margin-left: auto; }
  .topbar-user span { display: none; }
  .topbar-user { padding: 5px; }
  .view-head { flex-direction: column; align-items: flex-start; }
  .hero-band { flex-direction: column; align-items: flex-start; padding: 20px; }
  .countdown { gap: 7px; width: 100%; }
  .count-cell { flex: 1; min-width: 0; padding: 9px 6px; }
  .count-cell b { font-size: 20px; }
  .breakdown-grid { grid-template-columns: repeat(3, 1fr); }
  .tiktok-profile-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 0; }
  .tiktok-profile-stats div:nth-child(3) { border-left: 0; }
}
