/* POLITA+ BADGE HUB V6 SHARED MATTE APP STYLE */
:root {
  --bg:#050505;
  --panel:#0b0b0d;
  --panel2:#111114;
  --panel3:#17171a;
  --line:#24242a;
  --line2:#33333a;
  --text:#f4f4f5;
  --muted:#a1a1aa;
  --muted2:#71717a;
  --cyan:#21d4fd;
  --green:#86efac;
  --purple:#a78bfa;
  --gold:#facc15;
  --red:#fb7185;
}

* { box-sizing:border-box; }

body {
  margin:0;
  min-height:100vh;
  background:var(--bg);
  color:var(--text);
  font-family:"Inter", Arial, sans-serif;
  overflow-x:hidden;
}

h1,h2,h3,.btn,.stat-value,.badge-title,.brand-name,.section-title,.user-name,.drop-title {
  font-family:"Rajdhani", Arial, sans-serif;
  font-weight:700;
}

a { color:inherit; text-decoration:none; }

button,input {
  font-family:"Inter", Arial, sans-serif;
}

.app {
  width:min(1240px, calc(100% - 24px));
  margin:0 auto;
  padding:0 0 42px;
}

.topbar {
  position:sticky;
  top:0;
  z-index:50;
  height:58px;
  display:grid;
  grid-template-columns:290px minmax(220px, 1fr) auto;
  gap:14px;
  align-items:center;
  background:rgba(5,5,5,.96);
  border-bottom:1px solid #18181b;
  backdrop-filter:blur(8px);
}

.brand {
  min-width:0;
  display:flex;
  align-items:center;
  gap:11px;
}

.brand img {
  width:34px;
  height:34px;
  border-radius:9px;
  object-fit:cover;
  background:#111114;
  border:1px solid #2a2a31;
}

.brand-name {
  font-size:21px;
  line-height:1;
  letter-spacing:-.02em;
  white-space:nowrap;
}

.brand-sub {
  margin-top:2px;
  color:var(--muted2);
  font-size:11px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.06em;
}

.nav {
  display:flex;
  justify-content:center;
  gap:8px;
}

.nav a {
  height:34px;
  display:inline-flex;
  align-items:center;
  padding:0 12px;
  border-radius:8px;
  color:#d4d4d8;
  border:1px solid transparent;
  font-size:13px;
  font-weight:800;
}

.nav a.active,
.nav a:hover {
  background:#111114;
  border-color:#24242a;
  color:#fff;
}

.search {
  position:relative;
  width:min(100%, 430px);
  justify-self:center;
}

.search span {
  position:absolute;
  left:13px;
  top:50%;
  transform:translateY(-50%);
  color:var(--muted2);
  font-size:15px;
  pointer-events:none;
}

.search input {
  width:100%;
  height:38px;
  padding:0 13px 0 36px;
  border-radius:8px;
  border:1px solid var(--line);
  background:#17171a;
  color:var(--text);
  outline:none;
  font-size:13px;
  font-weight:700;
}

.profile {
  position:relative;
  justify-self:end;
}

.profile-btn {
  height:38px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:0 10px;
  border-radius:10px;
  border:1px solid #27272f;
  background:#111114;
  color:var(--text);
  cursor:pointer;
  font-family:"Rajdhani", Arial, sans-serif;
  font-size:15px;
  font-weight:700;
}

.avatar {
  width:25px;
  height:25px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg, var(--cyan), var(--purple));
  color:#050505;
  font-family:"Rajdhani", Arial, sans-serif;
  font-weight:700;
  font-size:13px;
}

.profile-name {
  max-width:120px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.menu {
  display:none;
  position:absolute;
  top:44px;
  right:0;
  width:194px;
  padding:6px;
  border-radius:12px;
  border:1px solid #2a2a31;
  background:#111114;
  box-shadow:0 18px 48px rgba(0,0,0,.5);
  z-index:80;
}

.menu.open { display:grid; gap:4px; }

.menu button,
.menu a {
  width:100%;
  height:35px;
  border:0;
  border-radius:8px;
  background:transparent;
  color:#d4d4d8;
  text-align:left;
  padding:0 10px;
  cursor:pointer;
  font-size:13px;
  font-weight:700;
  display:flex;
  align-items:center;
}

.menu button:hover,
.menu a:hover {
  background:#1b1b20;
  color:#fff;
}

.panel {
  background:var(--panel);
  border:1px solid #1f1f24;
  border-radius:14px;
  overflow:hidden;
}

.panel-pad { padding:15px; }

.section-title {
  margin:0;
  color:#fff;
  font-size:20px;
  line-height:1;
  letter-spacing:-.015em;
}

.section-sub {
  margin:6px 0 0;
  color:var(--muted);
  font-size:13px;
  line-height:1.25;
  font-weight:600;
}

.btn {
  min-height:39px;
  padding:0 13px;
  border-radius:8px;
  border:1px solid #2c2c33;
  background:#16161a;
  color:#f4f4f5;
  cursor:pointer;
  font-size:15px;
  font-weight:700;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

.btn:hover { filter:brightness(1.08); }

.btn-primary {
  background:#f4f4f5;
  border-color:#f4f4f5;
  color:#050505;
}

.btn-cyan {
  background:#0d1b1e;
  border-color:#1e4f48;
  color:#a7fff6;
}

.input {
  width:100%;
  height:40px;
  border:1px solid #2a2a30;
  border-radius:8px;
  background:#17171a;
  color:#fff;
  outline:none;
  padding:0 12px;
  font-size:14px;
  font-weight:700;
}

.input:focus { border-color:#3f3f46; }

.label {
  display:block;
  margin-bottom:7px;
  color:#d4d4d8;
  font-size:11px;
  font-weight:800;
  letter-spacing:.06em;
  text-transform:uppercase;
}

.form-stack { display:grid; gap:11px; }

.thin-live {
  margin:14px 0;
  border-radius:12px;
  border:1px solid #1e4f48;
  background:#07110f;
  min-height:48px;
  display:grid;
  grid-template-columns:1fr auto;
  align-items:center;
  gap:12px;
  padding:10px 12px;
}

.thin-live.subscriber {
  border-color:#5b4b99;
  background:#100d1b;
}

.thin-live.founder {
  border-color:#5a4614;
  background:#131007;
}

.thin-live-title {
  display:flex;
  align-items:center;
  gap:9px;
  min-width:0;
  color:#fff;
  font-size:14px;
  font-weight:850;
}

.live-dot {
  width:8px;
  height:8px;
  border-radius:999px;
  background:var(--green);
}

.thin-live strong {
  color:var(--green);
  text-transform:uppercase;
  font-size:11px;
  letter-spacing:.07em;
}

.thin-live.founder strong { color:var(--gold); }
.thin-live.subscriber strong { color:#c4b5fd; }

.thin-live span {
  color:var(--muted);
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.layout-hub {
  display:grid;
  grid-template-columns:280px minmax(0, 1fr);
  gap:14px;
  align-items:start;
}

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

.side-card {
  position:sticky;
  top:72px;
}

.user-card { text-align:center; }

.user-badge {
  width:82px;
  height:82px;
  margin:0 auto 12px;
  border-radius:16px;
  object-fit:cover;
  background:#17171a;
  border:1px solid #303038;
}

.user-name {
  font-size:22px;
  line-height:1;
  overflow-wrap:anywhere;
}

.user-title {
  margin-top:6px;
  color:var(--muted);
  font-size:13px;
  font-weight:700;
}

.stat-list {
  margin-top:14px;
  display:grid;
  gap:8px;
}

.side-stat {
  height:44px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 11px;
  border-radius:10px;
  background:#111114;
  border:1px solid #24242a;
}

.side-stat span {
  color:var(--muted2);
  font-size:11px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.06em;
}

.side-stat strong {
  font-family:"Rajdhani", Arial, sans-serif;
  font-size:22px;
  font-weight:700;
  color:#fff;
}

.quick-actions {
  margin-top:14px;
  display:grid;
  gap:8px;
}

.main-stack { display:grid; gap:14px; }

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

.badge-grid {
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(210px, 1fr));
  gap:10px;
}

.badge-card {
  background:#111114;
  border:1px solid #232329;
  border-radius:12px;
  padding:12px;
  min-width:0;
}

.badge-card.hidden { display:none; }

.badge-row {
  display:grid;
  grid-template-columns:46px minmax(0, 1fr);
  gap:10px;
  align-items:center;
}

.badge-img {
  width:46px;
  height:46px;
  border-radius:8px;
  object-fit:cover;
  background:#19191d;
  border:1px solid #33333a;
}

.badge-title {
  color:#fff;
  font-size:17px;
  line-height:1.05;
  overflow-wrap:anywhere;
}

.badge-desc {
  margin-top:7px;
  color:var(--muted);
  font-size:12px;
  line-height:1.28;
  font-weight:600;
}

.badge-meta {
  display:flex;
  gap:6px;
  flex-wrap:wrap;
  margin-top:10px;
}

.tag {
  min-height:22px;
  display:inline-flex;
  align-items:center;
  padding:0 8px;
  border-radius:6px;
  border:1px solid #2b2b31;
  background:#1a1a1e;
  color:#d4d4d8;
  font-size:10px;
  font-weight:900;
  letter-spacing:.045em;
  text-transform:uppercase;
}

.tag.gold {
  color:var(--gold);
  background:#17130a;
  border-color:#3a2d0b;
}

.tag.green {
  color:var(--green);
  background:#0d1a12;
  border-color:#1f3a27;
}

.tag.purple {
  color:#c4b5fd;
  background:#171228;
  border-color:#3b2f6d;
}

.empty {
  padding:14px;
  border-radius:12px;
  border:1px solid #24242a;
  background:#111114;
  color:var(--muted);
  font-size:14px;
  font-weight:700;
  line-height:1.35;
}

.status {
  display:none;
  padding:11px 12px;
  border-radius:10px;
  font-size:13px;
  font-weight:700;
  line-height:1.35;
}

.status.show { display:block; }

.status.good {
  color:#dcfce7;
  background:#0d1a12;
  border:1px solid #1f3a27;
}

.status.bad {
  color:#ffe4e6;
  background:#1f0d12;
  border:1px solid #3f1d28;
}

.drop-row-list {
  display:grid;
  gap:9px;
}

.drop-row {
  display:grid;
  grid-template-columns:50px minmax(0, 1fr) auto;
  gap:12px;
  align-items:center;
  padding:10px;
  border-radius:12px;
  background:#111114;
  border:1px solid #232329;
}

.drop-row img {
  width:50px;
  height:50px;
  border-radius:8px;
  object-fit:cover;
  background:#19191d;
  border:1px solid #33333a;
}

.drop-title {
  color:#fff;
  font-size:18px;
  line-height:1.05;
}

.drop-sub {
  margin-top:4px;
  color:var(--muted);
  font-size:12px;
  font-weight:700;
}

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

.market-item {
  padding:12px;
  border-radius:12px;
  background:#111114;
  border:1px solid #232329;
}

.market-title {
  font-family:"Rajdhani", Arial, sans-serif;
  font-size:18px;
  font-weight:700;
  color:#fff;
}

.market-sub {
  margin-top:5px;
  color:var(--muted);
  font-size:13px;
  line-height:1.3;
  font-weight:650;
}

.no-results { display:none; margin-top:10px; }
body.search-empty .no-results { display:block; }

@media (max-width:980px) {
  .layout-hub,
  .layout-drops {
    grid-template-columns:1fr;
  }

  .side-card {
    position:static;
  }
}

@media (max-width:820px) {
  .topbar {
    grid-template-columns:1fr auto;
    height:auto;
    padding:9px 0 12px;
  }

  .nav {
    order:3;
    grid-column:1 / -1;
    justify-content:flex-start;
    overflow:auto;
  }

  .search {
    order:4;
    grid-column:1 / -1;
    max-width:none;
    width:100%;
  }

  .profile-name { display:none; }

  .thin-live {
    grid-template-columns:1fr;
  }

  .drop-row {
    grid-template-columns:46px minmax(0, 1fr);
  }

  .drop-row .btn {
    grid-column:1 / -1;
  }
}

@media (max-width:520px) {
  .app { width:min(100% - 16px, 1240px); }
  .brand-name { font-size:18px; }
  .badge-grid { grid-template-columns:1fr; }
}

/* POLITA+ BADGE HUB V7 LESS TEXT / MORE VISUAL */
.section-sub {
  font-size: 12px !important;
  margin-top: 4px !important;
  color: #7b7b86 !important;
}

.badge-desc {
  display: none !important;
}

.market-sub {
  display: none !important;
}

.small-note {
  display: none !important;
}

.badge-card {
  min-height: 104px !important;
}

.badge-row {
  grid-template-columns: 58px minmax(0, 1fr) !important;
}

.badge-img {
  width: 58px !important;
  height: 58px !important;
  border-radius: 10px !important;
}

.badge-title {
  font-size: 19px !important;
}

.badge-meta {
  margin-top: 8px !important;
}

.tag {
  font-size: 9px !important;
  min-height: 20px !important;
}

.drop-row {
  grid-template-columns: 58px minmax(0, 1fr) auto !important;
  min-height: 78px !important;
}

.drop-row img {
  width: 58px !important;
  height: 58px !important;
}

.drop-sub {
  display: none !important;
}

.market-item {
  min-height: 74px !important;
  display: grid !important;
  align-content: center !important;
}

.thin-live {
  min-height: 44px !important;
  padding: 8px 12px !important;
}

.thin-live span {
  font-size: 13px !important;
}

.panel-pad {
  padding: 14px !important;
}

.section-head {
  margin-bottom: 10px !important;
}

.empty {
  font-size: 13px !important;
  padding: 12px !important;
}

.user-title {
  font-size: 12px !important;
}

@media (max-width: 820px) {
  .drop-row {
    grid-template-columns: 52px minmax(0, 1fr) !important;
  }
}

/* POLITA+ BADGE HUB V8 USER HUB CATEGORIES */
.hub-categories-v8 {
  display: grid;
  gap: 12px;
}

.hub-category-v8 {
  background: #0f0f12;
  border: 1px solid #232329;
  border-radius: 13px;
  padding: 12px;
}

.category-head-v8 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.category-head-v8 h3 {
  margin: 0;
  color: #fff;
  font-family: "Rajdhani", Arial, sans-serif;
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
}

.category-head-v8 span {
  min-width: 34px;
  height: 23px;
  padding: 0 8px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #19191d;
  border: 1px solid #2d2d35;
  color: #d4d4d8;
  font-family: "Rajdhani", Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
}

.inventory-grid-v8 {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
}

.locked-slot-v8 {
  min-height: 122px !important;
  display: grid !important;
  place-items: center !important;
  text-align: center !important;
  opacity: .82 !important;
  border-style: dashed !important;
  background:
    radial-gradient(circle at 50% 20%, rgba(255,255,255,.045), transparent 38%),
    #111114 !important;
}

.slot-icon-v8 {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #17171a;
  border: 1px solid #2d2d35;
  color: #8b8b96;
  font-family: "Rajdhani", Arial, sans-serif;
  font-size: 27px;
  font-weight: 700;
  margin-bottom: 8px;
}

.locked-slot-v8 .badge-title {
  font-size: 17px !important;
  color: #c7c7cf !important;
}

.locked-slot-v8 .badge-meta {
  justify-content: center !important;
}

.mini-slot-grid-v8 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.mini-slot-v8 {
  min-height: 76px;
  padding: 10px;
  border-radius: 11px;
  background: #111114;
  border: 1px dashed #2a2a31;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
}

.mini-slot-v8 strong {
  color: #e4e4e7;
  font-family: "Rajdhani", Arial, sans-serif;
  font-size: 18px;
  line-height: 1;
}

.mini-slot-v8 span {
  margin-top: 5px;
  color: #71717a;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.glow-slot-v8 {
  background:
    radial-gradient(circle at 50% 12%, rgba(167,139,250,.16), transparent 42%),
    #111114;
  border-color: #3b2f6d;
}

@media (max-width: 680px) {
  .mini-slot-grid-v8 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .inventory-grid-v8 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* POLITA+ V9 NAV FOOTER FIX */
.badge-footer-v9 {
  margin-top: 28px;
  padding: 18px 0 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  color: #71717a;
  font-size: 12px;
  font-weight: 800;
}

.badge-footer-v9 a {
  color: #8b8b96;
}

.badge-footer-v9 a:hover {
  color: #ffffff;
}

.topbar .nav a {
  white-space: nowrap;
}

/* POLITA+ BADGE SYSTEM V9 CORRECT SKELETON CSS */
.subscriber-lock-v9 {
  margin: 14px 0;
  min-height: 76px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(240px, 360px) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid #343047;
  background: radial-gradient(circle at 10% 20%, rgba(167,139,250,.13), transparent 34%), #0f0f12;
}

.subscriber-badge-preview-v9 {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.subscriber-badge-preview-v9 img {
  width: 52px;
  height: 52px;
  border-radius: 11px;
  object-fit: cover;
  border: 1px solid #3b2f6d;
  filter: grayscale(.45) brightness(.85);
}

.subscriber-badge-preview-v9 strong {
  display: block;
  color: #fff;
  font-family: "Rajdhani", Arial, sans-serif;
  font-size: 20px;
  line-height: 1;
}

.subscriber-badge-preview-v9 span {
  display: inline-flex;
  margin-top: 6px;
  height: 21px;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  color: #c4b5fd;
  background: #171228;
  border: 1px solid #3b2f6d;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.subscriber-controls-v9 {
  display: grid;
  grid-template-columns: 1fr 46px auto;
  gap: 8px;
  align-items: center;
}

.subscriber-controls-v9 label {
  color: #a1a1aa;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.subscriber-controls-v9 input[type="color"] {
  width: 46px;
  height: 38px;
  border: 1px solid #2a2a31;
  border-radius: 8px;
  background: #111114;
  opacity: .45;
}

.subscriber-controls-v9.locked {
  opacity: .55;
  filter: grayscale(1);
}

.subscribe-hero-v9 {
  margin: 14px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 14px;
  align-items: center;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid #343047;
  background: radial-gradient(circle at 15% 10%, rgba(167,139,250,.17), transparent 36%), #0b0b0d;
}

.subscribe-hero-v9 h1 {
  margin: 6px 0 6px;
  color: #fff;
  font-family: "Rajdhani", Arial, sans-serif;
  font-size: clamp(32px, 5vw, 54px);
  line-height: .92;
}

.subscribe-hero-v9 p {
  margin: 0;
  max-width: 640px;
  color: #a1a1aa;
  font-size: 14px;
  font-weight: 700;
}

.subscribe-actions-v9 {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.sub-preview-card-v9 {
  min-height: 210px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 14px;
  border-radius: 14px;
  background: #111114;
  border: 1px solid #2a2a31;
}

.sub-preview-card-v9 img {
  width: 92px;
  height: 92px;
  border-radius: 18px;
  object-fit: cover;
}

.sub-preview-card-v9 strong {
  margin-top: 8px;
  color: #fff;
  font-family: "Rajdhani", Arial, sans-serif;
  font-size: 22px;
}

.sub-preview-card-v9 span {
  color: #71717a;
  font-size: 12px;
  font-weight: 800;
}

.benefit-grid-v9,
.faq-grid-v9 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin: 14px 0;
}

.benefit-card-v9,
.faq-card-v9 {
  min-height: 110px;
  padding: 14px;
  border-radius: 14px;
  background: #0f0f12;
  border: 1px solid #232329;
  display: grid;
  align-content: center;
}

.benefit-card-v9 strong,
.faq-card-v9 strong {
  color: #fff;
  font-family: "Rajdhani", Arial, sans-serif;
  font-size: 21px;
  line-height: 1;
}

.benefit-card-v9 span,
.faq-card-v9 span {
  margin-top: 7px;
  color: #8b8b96;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.locked-payment-v9 {
  margin-top: 12px;
  padding: 13px;
  border-radius: 12px;
  background: #111114;
  border: 1px dashed #343047;
  color: #a1a1aa;
  font-size: 13px;
  font-weight: 800;
}

.terms-panel-v9 {
  margin-top: 14px;
}

.terms-list-v9 {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.terms-list-v9 article {
  padding: 13px;
  border-radius: 12px;
  background: #111114;
  border: 1px solid #232329;
}

.terms-list-v9 strong {
  display: block;
  color: #fff;
  font-family: "Rajdhani", Arial, sans-serif;
  font-size: 20px;
  line-height: 1;
}

.terms-list-v9 span {
  display: block;
  margin-top: 6px;
  color: #8b8b96;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

@media (max-width: 860px) {
  .subscriber-lock-v9,
  .subscribe-hero-v9 {
    grid-template-columns: 1fr;
  }

  .subscriber-controls-v9 {
    grid-template-columns: 1fr 46px;
  }

  .subscriber-controls-v9 .btn {
    grid-column: 1 / -1;
  }
}

/* POLITA+ BADGE SYSTEM V10 PREMIUM GRADIENT POLISH */
/* Use gradient only on important modules. Header/footer/background stay matte. */

.premium-panel-v10 {
  position: relative;
  overflow: hidden;
  border-color: #35314a !important;
  background:
    radial-gradient(circle at 14% 8%, rgba(167, 139, 250, .18), transparent 34%),
    radial-gradient(circle at 92% 18%, rgba(33, 212, 253, .10), transparent 32%),
    linear-gradient(135deg, #15101f 0%, #0d0d12 48%, #0a101b 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.035),
    0 18px 44px rgba(0,0,0,.18);
}

.premium-panel-v10::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255,255,255,.045), transparent 35%, rgba(255,255,255,.018));
  opacity: .55;
}

.premium-panel-v10 > * {
  position: relative;
  z-index: 1;
}

.premium-strip-v10 {
  border-color: #35314a !important;
  background:
    radial-gradient(circle at 12% 20%, rgba(33, 212, 253, .12), transparent 30%),
    radial-gradient(circle at 82% 12%, rgba(167, 139, 250, .14), transparent 34%),
    #0d0d12 !important;
}

.premium-card-v10 {
  border-color: #35314a !important;
  background:
    radial-gradient(circle at 50% 8%, rgba(167, 139, 250, .16), transparent 45%),
    #111114 !important;
}

.polita-category-v10 {
  border-color: #35314a !important;
  background:
    radial-gradient(circle at 12% 0%, rgba(167, 139, 250, .10), transparent 32%),
    #0f0f12 !important;
}

/* Make locked subscriber module feel more premium but still locked */
.subscriber-lock-v9.premium-panel-v10 {
  min-height: 86px;
}

.subscriber-lock-v9.premium-panel-v10 .subscriber-badge-preview-v9 img {
  width: 58px;
  height: 58px;
  border-color: #5b4b99;
  box-shadow: 0 0 0 3px rgba(167,139,250,.06);
}

.subscriber-lock-v9.premium-panel-v10 .subscriber-badge-preview-v9 strong {
  font-size: 22px;
}

.subscriber-lock-v9.premium-panel-v10 .subscriber-controls-v9 {
  background: rgba(0,0,0,.16);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 11px;
  padding: 8px;
}

/* Keep regular cards matte so the page does not become noisy */
.badge-card:not(.locked-slot-v8),
.market-item,
.faq-card-v9,
.benefit-card-v9,
.terms-list-v9 article {
  background: #101013;
}

/* Drops rows should stay compact but slightly more premium inside highlighted panels */
.premium-panel-v10 .drop-row {
  background: rgba(17,17,20,.82);
  border-color: rgba(255,255,255,.085);
}

.premium-panel-v10 .market-item {
  background: rgba(17,17,20,.82);
  border-color: rgba(255,255,255,.085);
}

/* Header/footer stay matte */
.topbar {
  background: rgba(5,5,5,.96) !important;
}

.badge-footer-v9 {
  background: transparent !important;
}

/* POLITA HUB UI API CONNECT V11 */
.hub-status-v11 {
  margin: 12px 0;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #35314a;
  background:
    radial-gradient(circle at 12% 0%, rgba(167,139,250,.12), transparent 34%),
    #0f0f12;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.hub-status-v11 strong {
  color: #fff;
  font-family: "Rajdhani", Arial, sans-serif;
  font-size: 22px;
  line-height: 1;
}

.hub-status-v11 span {
  color: #8b8b96;
  font-size: 12px;
  font-weight: 800;
}

.compact-group-v11 {
  display: grid;
  gap: 9px;
  margin-bottom: 14px;
}

.compact-group-head-v11 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #d4d4d8;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.compact-group-head-v11 em {
  font-style: normal;
  color: #a78bfa;
}

.compact-grid-v11 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(178px, 1fr));
  gap: 8px;
}

.compact-badge-v11 {
  min-height: 58px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid #252532;
  background: #101013;
}

.compact-badge-v11 img {
  width: 42px;
  height: 42px;
  border-radius: 9px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.06);
}

.compact-badge-v11 strong {
  display: block;
  min-width: 0;
  color: #fff;
  font-family: "Rajdhani", Arial, sans-serif;
  font-size: 17px;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.compact-badge-v11 span {
  display: block;
  margin-top: 5px;
  color: #85858f;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .05em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.subscriber-lock-v9.unlocked-v11 .subscriber-controls-v9 {
  opacity: 1;
  filter: none;
}

.subscriber-lock-v9.unlocked-v11 .subscriber-badge-preview-v9 img {
  filter: none;
}

.subscriber-lock-v9.unlocked-v11 .subscriber-badge-preview-v9 span {
  color: #86efac;
  border-color: rgba(134,239,172,.35);
  background: rgba(22,101,52,.18);
}

@media (max-width: 720px) {
  .hub-status-v11 {
    display: grid;
  }

  .compact-grid-v11 {
    grid-template-columns: 1fr;
  }
}

/* POLITA HUB V12 HORIZONTAL BADGE ROWS */
/* Collection badges should flow left-to-right, tight and clean, not one tall vertical column. */

#badgeGrid {
  display: block !important;
  width: 100%;
}

#badgeGrid .compact-group-v11 {
  width: 100%;
  display: block;
  margin-bottom: 16px;
}

#badgeGrid .compact-group-head-v11 {
  margin-bottom: 9px;
}

#badgeGrid .compact-grid-v11 {
  width: 100%;
  display: flex !important;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  align-content: flex-start;
  gap: 9px;
}

#badgeGrid .compact-badge-v11 {
  width: 176px;
  min-width: 176px;
  max-width: 176px;
  min-height: 54px;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 8px;
  padding: 7px 8px;
  border-radius: 11px;
}

#badgeGrid .compact-badge-v11 img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
}

#badgeGrid .compact-badge-v11 strong {
  font-size: 16px;
}

#badgeGrid .compact-badge-v11 span {
  margin-top: 4px;
  font-size: 9px;
}

/* Let the Polita+ category use the full row space properly. */
.polita-category-v10 #badgeGrid,
.hub-category-v8 #badgeGrid {
  min-width: 0;
}

/* Keep the row compact on smaller screens. */
@media (max-width: 760px) {
  #badgeGrid .compact-grid-v11 {
    gap: 8px;
  }

  #badgeGrid .compact-badge-v11 {
    width: calc(50% - 4px);
    min-width: calc(50% - 4px);
    max-width: calc(50% - 4px);
  }
}

@media (max-width: 440px) {
  #badgeGrid .compact-badge-v11 {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
  }
}

/* POLITA HUB V13 REAL PROFILE + CLEAN ROW FILL */
/* Keep horizontal rows, but remove the ugly right-side gap by using equal-width stretched columns. */

#badgeGrid .compact-grid-v11 {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(174px, 1fr)) !important;
  gap: 9px !important;
  width: 100% !important;
}

#badgeGrid .compact-badge-v11 {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  min-height: 54px;
}

#badgeGrid .compact-badge-v11 img {
  flex: 0 0 auto;
}

.real-twitch-avatar-v13 {
  border-radius: 18px !important;
  object-fit: cover !important;
  filter: none !important;
  border: 1px solid rgba(167,139,250,.35) !important;
  box-shadow: 0 0 0 3px rgba(167,139,250,.08) !important;
}

/* Better page rhythm now rows are wider */
.hub-category-v8.polita-category-v10 {
  padding-bottom: 20px;
}

@media (max-width: 760px) {
  #badgeGrid .compact-grid-v11 {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
  }
}

@media (max-width: 440px) {
  #badgeGrid .compact-grid-v11 {
    grid-template-columns: 1fr !important;
  }
}

/* POLITA HUB V14.1 CLEAN POLITA BADGES DOUBLE HEADING */
/* Keep the main Polita+ Badges title/count. Hide the inner repeated POLITA BADGES + purple count. */
#badgeGrid .compact-group-head-v11 {
  display: none !important;
}

#badgeGrid .compact-group-v11 {
  margin-top: 4px !important;
}

/* POLITA BADGE SYSTEM REVEAL GATE V15.1 */
/* Prevent old/default stacked modules flashing before JS finishes. */
.polita-badge-loading-v151 body {
  opacity: 0;
}

.polita-badge-ready-v151 body {
  opacity: 1;
  transition: opacity .12s ease;
}

/* Hide JS-filled badge/admin content until ready enough to stop stacked default flashes. */
.polita-badge-loading-v151 #badgeGrid,
.polita-badge-loading-v151 #mainBadgeGrid,
.polita-badge-loading-v151 #dropRows,
.polita-badge-loading-v151 #archiveRows,
.polita-badge-loading-v151 #hubStatusV11 {
  visibility: hidden;
}

.polita-badge-ready-v151 #badgeGrid,
.polita-badge-ready-v151 #mainBadgeGrid,
.polita-badge-ready-v151 #dropRows,
.polita-badge-ready-v151 #archiveRows,
.polita-badge-ready-v151 #hubStatusV11 {
  visibility: visible;
}

/* Keep layout space stable while loading. */
.polita-badge-loading-v151 #badgeGrid {
  min-height: 160px;
}

.polita-badge-loading-v151 #mainBadgeGrid {
  min-height: 260px;
}

/* POLITA BADGE ADMIN V16 RULES */
.admin-rule-grid-v16 {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 12px;
}

.admin-rule-box-v16 {
  border: 1px solid #252532;
  border-radius: 14px;
  background: #101013;
  padding: 13px;
}

.admin-rule-box-v16 > strong {
  display: block;
  margin-bottom: 12px;
  font-family: "Rajdhani", Arial, sans-serif;
  font-size: 23px;
  line-height: 1;
}

.admin-rule-list-v16 {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.admin-rule-row-v16 {
  min-height: 58px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  border: 1px solid #252532;
  border-radius: 12px;
  background: #101013;
  padding: 8px;
}

.admin-rule-row-v16 img {
  width: 42px;
  height: 42px;
  border-radius: 9px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.06);
}

.admin-rule-row-v16 strong {
  display: block;
  font-family: "Rajdhani", Arial, sans-serif;
  font-size: 17px;
  line-height: 1;
}

.admin-rule-row-v16 span {
  display: block;
  margin-top: 5px;
  color: #85858f;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

@media (max-width: 850px) {
  .admin-rule-grid-v16 {
    grid-template-columns: 1fr;
  }
}

/* POLITA BADGE ADMIN V17 RULE CHECKER */
.admin-rule-checker-v17 {
  margin-top: 14px;
  border: 1px solid #252532;
  border-radius: 14px;
  background:
    radial-gradient(circle at 15% 0%, rgba(167,139,250,.12), transparent 36%),
    #101013;
  padding: 13px;
}

.admin-rule-checker-v17 > strong {
  display: block;
  margin-bottom: 10px;
  font-family: "Rajdhani", Arial, sans-serif;
  font-size: 23px;
  line-height: 1;
}

.admin-checker-row-v17 {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 8px;
  margin-bottom: 10px;
}

.admin-check-summary-v17 {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin: 10px 0;
  padding: 10px;
  border: 1px solid #252532;
  border-radius: 13px;
  background: #0d0d10;
}

.admin-check-summary-v17 img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 12px;
}

.admin-check-summary-v17 strong {
  display: block;
  font-family: "Rajdhani", Arial, sans-serif;
  font-size: 22px;
  line-height: 1;
}

.admin-check-summary-v17 span {
  display: block;
  margin-top: 5px;
  color: #85858f;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-mini-title-v17 {
  margin: 12px 0 8px;
  color: #c4b5fd;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
}

@media (max-width: 700px) {
  .admin-checker-row-v17 {
    grid-template-columns: 1fr;
  }
}

/* POLITA BADGE ADMIN V18 GRANT MISSING */
.admin-checker-row-v17 {
  grid-template-columns: minmax(220px, 1fr) auto auto;
}

@media (max-width: 760px) {
  .admin-checker-row-v17 {
    grid-template-columns: 1fr;
  }
}

/* POLITA HUB V19 TOP PROFILE AVATAR + OWNER ADMIN DROPDOWN */
.polita-top-avatar-v19 {
  width: 26px !important;
  height: 26px !important;
  min-width: 26px !important;
  min-height: 26px !important;
  border-radius: 999px !important;
  object-fit: cover !important;
  display: inline-block !important;
  border: 1px solid rgba(255,255,255,.22) !important;
  box-shadow: 0 0 0 2px rgba(124,92,255,.18) !important;
}

.profile-menu-link-v19:hover {
  background: rgba(167,139,250,.10) !important;
  color: #fff !important;
}

/* POLITA HUB V19.1 OWNER ADMIN DROPDOWN FIX */
.polita-owner-admin-link-v191 {
  display: block !important;
  padding: 12px 16px !important;
  color: #f6f3ff !important;
  text-decoration: none !important;
  font-weight: 900 !important;
  font-family: "Inter", Arial, sans-serif !important;
}

.polita-owner-admin-link-v191:hover {
  background: rgba(167,139,250,.12) !important;
  color: #ffffff !important;
}

/* POLITA HUB V19.2 FORCE OWNER ADMIN INTO REAL DROPDOWN */
.polita-owner-admin-link-v192 {
  display: block !important;
  padding: 12px 16px !important;
  color: #f6f3ff !important;
  text-decoration: none !important;
  font-weight: 900 !important;
  font-family: "Inter", Arial, sans-serif !important;
  cursor: pointer !important;
}

.polita-owner-admin-link-v192:hover {
  background: rgba(167,139,250,.12) !important;
  color: #ffffff !important;
}

/* POLITA BADGE ADMIN V20 UPLOAD STATIC + ANIMATED */
.admin-upload-grid-v20 {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 12px;
}

.admin-upload-box-v20 {
  border: 1px solid rgba(120,140,255,.22);
  border-radius: 14px;
  background:
    radial-gradient(circle at 12% 0%, rgba(124,92,255,.13), transparent 34%),
    #101522;
  padding: 14px;
}

.admin-upload-box-v20 > strong {
  display: block;
  margin-bottom: 12px;
  font-family: "Rajdhani", Arial, sans-serif;
  font-size: 22px;
  line-height: 1;
}

.admin-upload-box-v20 input[type="file"] {
  cursor: pointer;
}

@media (max-width: 850px) {
  .admin-upload-grid-v20 {
    grid-template-columns: 1fr;
  }
}

/* POLITA BADGE ADMIN V20.2 BADGE LIBRARY */
.admin-library-tools-v202 {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: end;
  margin-top: 14px;
}

.admin-badge-grid-v202 {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.admin-badge-card-v202 {
  border: 1px solid rgba(120,140,255,.18);
  border-radius: 14px;
  background: #0e1320;
  padding: 12px;
  overflow: hidden;
}

.admin-badge-card-top-v202 {
  display: flex;
  gap: 11px;
  align-items: center;
}

.admin-badge-preview-v202 {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 10px;
  object-fit: contain;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.12);
  padding: 5px;
}

.admin-badge-preview-empty-v202 {
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.55);
  font-weight: 800;
}

.admin-badge-card-info-v202 {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.admin-badge-card-info-v202 strong {
  font-family: "Rajdhani", Arial, sans-serif;
  font-size: 21px;
  line-height: 1;
}

.admin-badge-card-info-v202 span,
.admin-badge-card-info-v202 em {
  color: rgba(255,255,255,.58);
  font-size: 12px;
  font-style: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-badge-card-info-v202 em {
  color: rgba(167,139,250,.95);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.admin-badge-path-v202 {
  margin-top: 10px;
  padding: 8px;
  border-radius: 10px;
  background: rgba(0,0,0,.18);
  color: rgba(255,255,255,.52);
  font-size: 11px;
  word-break: break-all;
}

.admin-badge-actions-v202 {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.admin-badge-actions-v202 .btn {
  flex: 1;
}

.admin-badge-actions-v202 .danger-v202 {
  border-color: rgba(255,100,130,.35);
  color: #ff9aaa;
}

@media (max-width: 760px) {
  .admin-library-tools-v202 {
    grid-template-columns: 1fr;
  }
}

/* POLITA BADGE ADMIN V21 USER BADGES */
.admin-user-badge-grid-v21 {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(260px, 1fr);
  gap: 12px;
}

.admin-user-badge-box-v21,
.admin-current-user-card-v21 {
  border: 1px solid rgba(120,140,255,.18);
  border-radius: 14px;
  background:
    radial-gradient(circle at 14% 0%, rgba(124,92,255,.12), transparent 34%),
    #101522;
  padding: 14px;
}

.admin-user-badge-box-v21 > strong,
.admin-user-list-head-v21 > strong,
.admin-current-user-head-v21 > strong {
  font-family: "Rajdhani", Arial, sans-serif;
  font-size: 23px;
  line-height: 1;
}

.admin-user-current-v21 {
  margin-top: 14px;
}

.admin-current-user-head-v21 {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.admin-current-user-head-v21 span {
  color: rgba(255,255,255,.56);
  font-size: 13px;
}

.admin-user-badge-row-v21 {
  display: grid;
  gap: 8px;
  margin: 8px 0 14px;
}

.admin-user-badge-chip-v21 {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 12px;
  background: rgba(0,0,0,.18);
  padding: 8px;
}

.admin-user-badge-chip-v21 img,
.admin-empty-badge-v21 {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: contain;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.12);
  padding: 5px;
}

.admin-empty-badge-v21 {
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.6);
  font-weight: 900;
}

.admin-user-badge-chip-v21 strong {
  display: block;
  font-family: "Rajdhani", Arial, sans-serif;
  font-size: 19px;
  line-height: 1;
}

.admin-user-badge-chip-v21 span {
  display: block;
  margin-top: 2px;
  color: rgba(255,255,255,.55);
  font-size: 12px;
}

.admin-user-list-head-v21 {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
}

.admin-user-list-v21 {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.admin-user-row-v21 {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 12px;
  background: #0e1320;
  padding: 10px;
}

.admin-user-row-v21 strong {
  font-family: "Rajdhani", Arial, sans-serif;
  font-size: 20px;
  line-height: 1;
}

.admin-user-row-v21 span {
  display: block;
  color: rgba(255,255,255,.56);
  font-size: 12px;
  margin-top: 3px;
}

@media (max-width: 850px) {
  .admin-user-badge-grid-v21 {
    grid-template-columns: 1fr;
  }

  .admin-current-user-head-v21,
  .admin-user-list-head-v21 {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-user-badge-chip-v21 {
    grid-template-columns: 44px 1fr;
  }

  .admin-user-badge-chip-v21 .btn {
    grid-column: 1 / -1;
  }
}

/* POLITA BADGE ADMIN V21.1 SET EQUIPPED */
.admin-user-badge-actions-v211 {
  display: grid;
  gap: 6px;
  min-width: 118px;
}

.admin-user-badge-actions-v211 .btn {
  width: 100%;
  min-height: 34px;
  font-size: 12px;
  padding: 7px 9px;
}

@media (max-width: 850px) {
  .admin-user-badge-actions-v211 {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
  }
}

/* POLITA HUB V21.3A SELECTED BADGE HIGHLIGHT */
.compact-badge-v11.is-equipped-v213a {
  border-color: rgba(34, 255, 176, .78) !important;
  box-shadow:
    0 0 0 1px rgba(34, 255, 176, .35),
    0 0 24px rgba(34, 255, 176, .16) !important;
  background:
    radial-gradient(circle at 10% 0%, rgba(34,255,176,.14), transparent 36%),
    rgba(12, 18, 30, .96) !important;
  position: relative;
}


.selected-pill-v213a {
  display: inline-flex;
  align-items: center;
  margin-left: 7px;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid rgba(34,255,176,.35);
  background: rgba(34,255,176,.10);
  color: #22ffb0;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}


/* POLITA HUB V21.3B CLEAN SELECTED UI + CLICKABLE BADGES */
.selected-pill-v213a {
  display: none !important;
}

.polita-selectable-badge-v213b {
  cursor: pointer;
  transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease;
}

.polita-selectable-badge-v213b:hover {
  transform: translateY(-1px);
  border-color: rgba(124, 92, 255, .55) !important;
}

.compact-badge-v11.is-equipped-v213a {
  border-color: rgba(34, 255, 176, .82) !important;
  box-shadow:
    0 0 0 1px rgba(34, 255, 176, .34),
    0 0 24px rgba(34, 255, 176, .16) !important;
}

/* POLITA HUB V21.3C CLICK CUE */
.polita-selectable-badge-v213b:active {
  transform: scale(.985);
}

/* POLITA HUB V21.3D INSTANT CLICK FEEDBACK */
.polita-selectable-badge-v213b.is-equipped-v213a {
  transform: translateY(-1px);
}

/* POLITA HUB V21.4B SUBSCRIBER CUSTOMISE BUTTON */
.subscriber-customise-v214b {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 12px 0 16px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.08);
  background:
    radial-gradient(circle at 10% 0%, rgba(255,42,216,.10), transparent 38%),
    radial-gradient(circle at 92% 10%, rgba(34,255,176,.08), transparent 34%),
    rgba(10,14,24,.58);
}

.subscriber-customise-v214b strong {
  display: block;
  font-family: "Rajdhani", Arial, sans-serif;
  font-size: 17px;
  font-weight: 800;
  color: rgba(255,255,255,.94);
}

.subscriber-customise-v214b span {
  display: block;
  margin-top: 3px;
  color: rgba(226,234,255,.62);
  font-size: 13px;
}

.subscriber-customise-v214b .btn {
  white-space: nowrap;
}

@media (max-width: 720px) {
  .subscriber-customise-v214b {
    align-items: stretch;
    flex-direction: column;
  }

  .subscriber-customise-v214b .btn {
    text-align: center;
  }
}



/* POLITA HUB V21.4D FULL SQUARE COLOUR PICKER UI ONLY */
.hub-colour-picker-v214d {
  --hub-picker-hue: 298;
  --hub-picker-colour: #f719ff;
  margin: 12px 0 16px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.08);
  background:
    radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--hub-picker-colour) 18%, transparent), transparent 38%),
    radial-gradient(circle at 100% 0%, rgba(20,241,255,.08), transparent 34%),
    linear-gradient(180deg, rgba(13,18,34,.78), rgba(8,12,24,.84));
}

.hub-colour-picker-head-v214d {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.hub-colour-title-v214d {
  display: flex;
  align-items: center;
  gap: 11px;
}

.hub-colour-badge-preview-v214d {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.52), transparent 28%),
    linear-gradient(135deg, var(--hub-picker-colour), color-mix(in srgb, var(--hub-picker-colour) 55%, #000));
  box-shadow: 0 0 18px color-mix(in srgb, var(--hub-picker-colour) 50%, transparent);
}

.hub-colour-badge-preview-v214d img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 10px;
}

.hub-colour-title-v214d strong {
  display: block;
  font-family: "Rajdhani", Arial, sans-serif;
  font-size: 18px;
  font-weight: 900;
  color: #fff;
}

.hub-colour-title-v214d span {
  display: block;
  margin-top: 2px;
  color: rgba(226,234,255,.62);
  font-size: 13px;
}

.hub-colour-picker-head-v214d em {
  flex: 0 0 auto;
  border-radius: 999px;
  border: 1px solid rgba(20,241,255,.26);
  background: rgba(20,241,255,.08);
  color: #39fff1;
  font-family: "Rajdhani", Arial, sans-serif;
  font-size: 12px;
  font-weight: 900;
  font-style: normal;
  padding: 6px 9px;
  letter-spacing: .04em;
}

.hub-colour-picker-body-v214d {
  display: grid;
  grid-template-columns: minmax(180px, 280px) minmax(0, 1fr);
  gap: 13px;
  align-items: stretch;
}

.hub-colour-square-v214d {
  position: relative;
  min-height: 112px;
  border-radius: 13px;
  overflow: hidden;
  cursor: crosshair;
  border: 1px solid rgba(255,255,255,.14);
  background:
    linear-gradient(to top, #000, transparent),
    linear-gradient(to right, #fff, hsl(var(--hub-picker-hue), 100%, 50%));
}

.hub-colour-square-v214d i {
  position: absolute;
  width: 15px;
  height: 15px;
  border-radius: 999px;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px rgba(0,0,0,.50), 0 0 16px rgba(255,255,255,.38);
  transform: translate(-50%, -50%);
  left: 90%;
  top: 0%;
  pointer-events: none;
}

.hub-colour-controls-v214d {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 8px 10px;
  align-items: center;
}

.hub-colour-controls-v214d label {
  color: rgba(226,234,255,.66);
  font-family: "Rajdhani", Arial, sans-serif;
  font-weight: 900;
  font-size: 13px;
}

.hub-colour-controls-v214d input[type="range"] {
  width: 100%;
  accent-color: var(--hub-picker-colour);
}

.hub-colour-controls-v214d input[type="text"] {
  height: 36px;
  box-sizing: border-box;
  border-radius: 9px;
  border: 1px solid rgba(160,180,255,.18);
  background: rgba(255,255,255,.055);
  color: #fff;
  padding: 0 10px;
  font-family: "Rajdhani", Arial, sans-serif;
  font-weight: 900;
  font-size: 15px;
}

.hub-colour-controls-v214d small {
  grid-column: 2;
  color: rgba(226,234,255,.50);
  font-family: "Rajdhani", Arial, sans-serif;
  font-weight: 800;
}

@media (max-width: 820px) {
  .hub-colour-picker-head-v214d {
    align-items: flex-start;
    flex-direction: column;
  }

  .hub-colour-picker-body-v214d {
    grid-template-columns: 1fr;
  }

  .hub-colour-square-v214d {
    min-height: 135px;
  }

  .hub-colour-controls-v214d {
    grid-template-columns: 1fr;
  }

  .hub-colour-controls-v214d small {
    grid-column: 1;
  }
}

/* POLITA HUB V21.4E LIVE PREVIEW + SAVE */
.hub-colour-badge-preview-v214d {
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.50), transparent 28%),
    linear-gradient(135deg, var(--hub-picker-colour), color-mix(in srgb, var(--hub-picker-colour) 48%, #000)) !important;
}

.hub-colour-badge-preview-v214d img {
  filter: drop-shadow(0 0 5px rgba(0,0,0,.45));
}

.hub-colour-save-v214e {
  grid-column: 2;
  justify-self: start;
  border: 1px solid rgba(57,255,241,.32);
  background: rgba(20,241,255,.10);
  color: #39fff1;
  border-radius: 999px;
  padding: 9px 14px;
  font-family: "Rajdhani", Arial, sans-serif;
  font-weight: 900;
  cursor: pointer;
}

.hub-colour-save-v214e:disabled {
  opacity: .56;
  cursor: wait;
}

.hub-colour-save-msg-v214e {
  grid-column: 2;
  color: rgba(226,234,255,.50);
}

@media (max-width: 820px) {
  .hub-colour-save-v214e,
  .hub-colour-save-msg-v214e {
    grid-column: 1;
  }
}

/* POLITA HUB V21.4F TWITCH AVATAR */
.polita-twitch-avatar-v214f {
  object-fit: cover !important;
  border-radius: 18px !important;
}

/* POLITA HUB V21.4G SIDEBAR TWITCH AVATAR */
.polita-sidebar-twitch-avatar-v214g {
  width: 86px !important;
  height: 86px !important;
  object-fit: cover !important;
  border-radius: 22px !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  box-shadow: 0 0 24px rgba(124,58,237,.22), inset 0 1px 0 rgba(255,255,255,.16) !important;
  background: rgba(255,255,255,.04) !important;
}

/* POLITA HUB V21.4H ONE SIDEBAR AVATAR */
.polita-sidebar-twitch-avatar-v214h {
  width: 86px !important;
  height: 86px !important;
  object-fit: cover !important;
  border-radius: 22px !important;
  display: block !important;
  margin: 0 auto 12px !important;
}

/* POLITA HUB V21.4I CUSTOMER POLISH */
.hub-colour-picker-v214d {
  margin-top: 14px !important;
}

.hub-colour-title-v214d strong {
  letter-spacing: .01em;
}

.hub-colour-controls-v214d small,
.hub-colour-save-msg-v214e {
  opacity: .88;
}

.hub-colour-save-v214e {
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}

.hub-colour-save-v214e:hover {
  transform: translateY(-1px);
  border-color: rgba(57,255,241,.55);
  background: rgba(20,241,255,.16);
}

.compact-badge-v11 {
  transition: border-color .14s ease, box-shadow .14s ease, transform .14s ease;
}

.compact-badge-v11:hover {
  transform: translateY(-1px);
}

#profileStatus.status {
  display: none !important;
}


/* POLITA HUB V21.4K TRUE FULL RAINBOW HUE SLIDER */
.hub-colour-controls-v214d input[type="range"],
.hub-full-rainbow-slider-v214k {
  --hub-slider-colour: var(--hub-picker-colour, #f719ff);
  --hub-slider-progress: 82%;
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 100%;
  height: 14px;
  border-radius: 999px;
  background: transparent !important;
  outline: none;
  accent-color: var(--hub-slider-colour) !important;
}

/* WebKit track */
.hub-colour-controls-v214d input[type="range"]::-webkit-slider-runnable-track,
.hub-full-rainbow-slider-v214k::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background:
    linear-gradient(
      to right,
      #ff0033 0%,
      #ff8a00 8%,
      #ffe600 16.66%,
      #63ff00 33.33%,
      #00ffd5 50%,
      #0066ff 66.66%,
      #7a00ff 83.33%,
      #ff00cc 100%
    ) !important;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.04),
    0 0 0 1px rgba(0,0,0,.35) !important;
}

/* WebKit thumb */
.hub-colour-controls-v214d input[type="range"]::-webkit-slider-thumb,
.hub-full-rainbow-slider-v214k::-webkit-slider-thumb {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 20px;
  height: 20px;
  margin-top: -7px;
  border-radius: 50%;
  border: 2px solid #ffffff !important;
  background: var(--hub-slider-colour) !important;
  box-shadow:
    0 0 0 2px rgba(0,0,0,.45),
    0 0 18px color-mix(in srgb, var(--hub-slider-colour) 70%, transparent) !important;
  cursor: pointer;
}

/* Firefox track */
.hub-colour-controls-v214d input[type="range"]::-moz-range-track,
.hub-full-rainbow-slider-v214k::-moz-range-track {
  height: 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background:
    linear-gradient(
      to right,
      #ff0033 0%,
      #ff8a00 8%,
      #ffe600 16.66%,
      #63ff00 33.33%,
      #00ffd5 50%,
      #0066ff 66.66%,
      #7a00ff 83.33%,
      #ff00cc 100%
    ) !important;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.04),
    0 0 0 1px rgba(0,0,0,.35) !important;
}

/* Firefox thumb */
.hub-colour-controls-v214d input[type="range"]::-moz-range-thumb,
.hub-full-rainbow-slider-v214k::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #ffffff !important;
  background: var(--hub-slider-colour) !important;
  box-shadow:
    0 0 0 2px rgba(0,0,0,.45),
    0 0 18px color-mix(in srgb, var(--hub-slider-colour) 70%, transparent) !important;
  cursor: pointer;
}

/* Remove browser progress fill so the whole track stays rainbow */
.hub-colour-controls-v214d input[type="range"]::-moz-range-progress,
.hub-full-rainbow-slider-v214k::-moz-range-progress {
  background: transparent !important;
  height: 8px;
  border: none !important;
}

.hub-colour-controls-v214d input[type="range"]:focus,
.hub-full-rainbow-slider-v214k:focus {
  outline: none !important;
}

.hub-colour-controls-v214d input[type="range"]:hover::-webkit-slider-thumb,
.hub-full-rainbow-slider-v214k:hover::-webkit-slider-thumb,
.hub-colour-controls-v214d input[type="range"]:focus::-webkit-slider-thumb,
.hub-full-rainbow-slider-v214k:focus::-webkit-slider-thumb {
  transform: scale(1.04);
}

.hub-colour-controls-v214d input[type="range"]:hover::-moz-range-thumb,
.hub-full-rainbow-slider-v214k:hover::-moz-range-thumb,
.hub-colour-controls-v214d input[type="range"]:focus::-moz-range-thumb,
.hub-full-rainbow-slider-v214k:focus::-moz-range-thumb {
  transform: scale(1.04);
}


/* Chrome / Edge / Safari track */
.hub-colour-controls-v214d input[type="range"]::-webkit-slider-runnable-track {
  height: 8px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  background:
    linear-gradient(
      90deg,
      #ff004c 0%,
      #ff7a00 14%,
      #ffe600 28%,
      #00ff66 42%,
      #00e5ff 56%,
      #315bff 70%,
      #b300ff 84%,
      #ff00c8 100%
    ) !important;
  box-shadow:
    inset 0 0 0 1px rgba(0,0,0,.28),
    0 0 14px color-mix(in srgb, var(--hub-slider-colour) 28%, transparent) !important;
}

/* Chrome / Edge / Safari thumb */
.hub-colour-controls-v214d input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none !important;
  width: 18px !important;
  height: 18px !important;
  margin-top: -6px !important;
  border-radius: 999px !important;
  border: 3px solid #fff !important;
  background: var(--hub-slider-colour) !important;
  box-shadow:
    0 0 0 2px rgba(0,0,0,.55),
    0 0 18px color-mix(in srgb, var(--hub-slider-colour) 70%, transparent) !important;
}

/* Firefox track/progress/thumb */
.hub-colour-controls-v214d input[type="range"]::-moz-range-track {
  height: 8px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  background:
    linear-gradient(
      90deg,
      #ff004c 0%,
      #ff7a00 14%,
      #ffe600 28%,
      #00ff66 42%,
      #00e5ff 56%,
      #315bff 70%,
      #b300ff 84%,
      #ff00c8 100%
    ) !important;
}

.hub-colour-controls-v214d input[type="range"]::-moz-range-progress {
  height: 8px !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,.12) !important;
}

.hub-colour-controls-v214d input[type="range"]::-moz-range-thumb {
  width: 18px !important;
  height: 18px !important;
  border-radius: 999px !important;
  border: 3px solid #fff !important;
  background: var(--hub-slider-colour) !important;
  box-shadow:
    0 0 0 2px rgba(0,0,0,.55),
    0 0 18px color-mix(in srgb, var(--hub-slider-colour) 70%, transparent) !important;
}

/* Make white/black/grey choices still look intentional, not broken */
.hub-colour-controls-v214d input[type="range"]:focus {
  outline: none !important;
}

.hub-colour-controls-v214d input[type="range"]:focus-visible::-webkit-slider-thumb {
  box-shadow:
    0 0 0 2px rgba(0,0,0,.55),
    0 0 0 5px rgba(57,255,241,.18),
    0 0 18px color-mix(in srgb, var(--hub-slider-colour) 70%, transparent) !important;
}

.hub-colour-controls-v214d input[type="range"]:focus-visible::-moz-range-thumb {
  box-shadow:
    0 0 0 2px rgba(0,0,0,.55),
    0 0 0 5px rgba(57,255,241,.18),
    0 0 18px color-mix(in srgb, var(--hub-slider-colour) 70%, transparent) !important;
}

.hub-colour-square-v214d {
  box-shadow:
    inset 0 0 0 1px rgba(0,0,0,.32),
    0 0 18px color-mix(in srgb, var(--hub-picker-colour) 18%, transparent) !important;
}

.hub-colour-controls-v214d input[type="text"] {
  transition: border-color .12s ease, box-shadow .12s ease, background .12s ease;
}

.hub-colour-controls-v214d input[type="text"]:focus {
  outline: none !important;
  border-color: color-mix(in srgb, var(--hub-picker-colour) 68%, rgba(57,255,241,.35)) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--hub-picker-colour) 18%, transparent) !important;
}

/* POLITA ADMIN V22B Y LOCK */
.admin-y-locked-v22b {
  opacity: .82 !important;
  cursor: not-allowed !important;
  border-color: rgba(57,255,241,.20) !important;
  background: rgba(20,241,255,.055) !important;
  color: rgba(226,234,255,.82) !important;
}

.admin-y-note-v22b {
  margin-top: -4px !important;
  color: rgba(226,234,255,.55) !important;
}

/* POLITA ADMIN V22D BADGE LIBRARY POLISH */
.admin-section-subtitle-v22d {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(226,234,255,.58);
  letter-spacing: .01em;
}

.admin-upload-grid-v20 {
  gap: 16px !important;
}

.admin-upload-box-v20,
.admin-user-badge-box-v21,
.admin-rule-box-v16 {
  border: 1px solid rgba(57,255,241,.12) !important;
  background: linear-gradient(180deg, rgba(18,29,68,.72), rgba(10,15,34,.76)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035), 0 18px 45px rgba(0,0,0,.18) !important;
}

.admin-upload-box-v20 strong,
.admin-user-badge-box-v21 strong,
.admin-rule-box-v16 strong {
  color: rgba(255,255,255,.94) !important;
}

.admin-badge-card-v202 {
  border: 1px solid rgba(57,255,241,.12) !important;
  background: rgba(8,13,31,.62) !important;
  transition: transform .14s ease, border-color .14s ease, box-shadow .14s ease;
}

.admin-badge-card-v202:hover {
  transform: translateY(-1px);
  border-color: rgba(57,255,241,.32) !important;
  box-shadow: 0 16px 34px rgba(0,0,0,.24), 0 0 22px rgba(20,241,255,.055) !important;
}

.admin-badge-preview-v202 {
  border-radius: 12px !important;
  background: rgba(255,255,255,.045) !important;
  padding: 6px !important;
}

.admin-badge-actions-v202 {
  gap: 8px !important;
}

.admin-badge-path-v202 {
  opacity: .68 !important;
  word-break: break-all !important;
}

#uploadBadgeResult,
#statusBox {
  border-radius: 14px !important;
  background: rgba(255,255,255,.035) !important;
  border: 1px solid rgba(255,255,255,.07) !important;
  padding: 12px !important;
}

#libraryCount,
#userBadgeCount {
  min-width: 54px;
  text-align: center;
}






/* POLITA ADMIN V22H COMPACT PER BADGE DELETE */
.admin-delete-note-v22h {
  grid-column: 1 / -1;
  margin: -4px 0 2px !important;
  color: rgba(226,234,255,.54) !important;
}

.admin-badge-card-v202 {
  position: relative !important;
  padding-right: 48px !important;
  min-height: 58px !important;
}

.admin-card-delete-mini-v22h {
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  z-index: 20 !important;
  width: 28px !important;
  height: 28px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255,82,120,.72) !important;
  background: rgba(255,35,80,.16) !important;
  color: #ffdce5 !important;
  font-size: 20px !important;
  line-height: 1 !important;
  font-weight: 900 !important;
  cursor: pointer !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  box-shadow: 0 0 14px rgba(255,35,80,.10) !important;
}

.admin-card-delete-mini-v22h:hover {
  background: rgba(255,35,80,.32) !important;
  border-color: rgba(255,120,150,.96) !important;
  transform: translateY(-1px);
}

.admin-card-delete-mini-v22h:active {
  transform: translateY(0);
}

/* Hide the old large action row if only copy/delete was making cards bulky */
.admin-badge-actions-v202 {
  margin-top: 8px !important;
}

.admin-badge-actions-v202 .admin-card-delete-mini-v22h {
  position: static !important;
}

/* POLITA ADMIN V22J REAL CARD DELETE */
.admin-badge-card-real-v22j,
.admin-badge-card-v14 {
  position: relative !important;
}

.admin-badge-card-real-v22j {
  padding-right: 44px !important;
}

.admin-real-delete-v22j {
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
  z-index: 20 !important;
  width: 26px !important;
  height: 26px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255,82,120,.75) !important;
  background: rgba(255,35,80,.18) !important;
  color: #ffdce5 !important;
  font-size: 18px !important;
  line-height: 1 !important;
  font-weight: 950 !important;
  cursor: pointer !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  box-shadow: 0 0 14px rgba(255,35,80,.12) !important;
}

.admin-real-delete-v22j:hover {
  background: rgba(255,35,80,.36) !important;
  border-color: rgba(255,120,150,.98) !important;
  transform: translateY(-1px);
}

.admin-real-delete-v22j:disabled {
  opacity: .65 !important;
  cursor: wait !important;
}

/* POLITA ADMIN V22P SUBSCRIBER BADGES MODULE */
.admin-subscriber-module-v22p {
  margin-top: 18px !important;
  border: 1px solid rgba(57,255,241,.12) !important;
  background: rgba(8,13,31,.42) !important;
  border-radius: 18px !important;
  padding: 14px !important;
}

.admin-subscriber-module-head-v22p {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  margin-bottom: 6px !important;
}

.admin-subscriber-module-head-v22p strong {
  color: rgba(255,255,255,.94) !important;
  font-size: 14px !important;
  letter-spacing: .03em !important;
  text-transform: uppercase !important;
}

.admin-subscriber-note-v22p {
  margin: 0 0 12px !important;
  color: rgba(226,234,255,.58) !important;
}

.admin-subscriber-list-v22p {
  display: grid !important;
  gap: 8px !important;
}

.admin-subscriber-row-v22p {
  position: relative !important;
  display: grid !important;
  grid-template-columns: 38px 1fr 28px !important;
  align-items: center !important;
  gap: 10px !important;
  min-height: 50px !important;
  border: 1px solid rgba(57,255,241,.10) !important;
  background: rgba(3,8,22,.48) !important;
  border-radius: 14px !important;
  padding: 8px 10px !important;
}

.admin-subscriber-mini-img-v22p {
  width: 34px !important;
  height: 34px !important;
  object-fit: contain !important;
  border-radius: 9px !important;
  background: rgba(255,255,255,.05) !important;
  padding: 3px !important;
}

.admin-subscriber-mini-empty-v22p {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: rgba(226,234,255,.65) !important;
  font-weight: 900 !important;
}

.admin-subscriber-info-v22p {
  min-width: 0 !important;
}

.admin-subscriber-info-v22p strong {
  display: block !important;
  font-size: 14px !important;
  color: rgba(255,255,255,.95) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.admin-subscriber-info-v22p span {
  display: block !important;
  font-size: 11px !important;
  color: rgba(226,234,255,.60) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.admin-subscriber-info-v22p em {
  display: block !important;
  font-style: normal !important;
  font-size: 10px !important;
  color: rgba(167,139,250,.90) !important;
  text-transform: uppercase !important;
  letter-spacing: .04em !important;
}

.admin-subscriber-delete-v22p {
  width: 26px !important;
  height: 26px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255,82,120,.72) !important;
  background: rgba(255,35,80,.16) !important;
  color: #ffdce5 !important;
  font-size: 18px !important;
  line-height: 1 !important;
  font-weight: 950 !important;
  cursor: pointer !important;
  box-shadow: 0 0 14px rgba(255,35,80,.10) !important;
}

.admin-subscriber-delete-v22p:hover {
  background: rgba(255,35,80,.32) !important;
  border-color: rgba(255,120,150,.96) !important;
  transform: translateY(-1px);
}

/* POLITA ADMIN V22R FORCE CLEAN LIBRARY RENDER */
.admin-clean-badge-card-v22r {
  position: relative !important;
  display: grid !important;
  grid-template-columns: 44px 1fr !important;
  align-items: center !important;
  gap: 12px !important;
  min-height: 78px !important;
  padding: 14px 48px 14px 14px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(57,255,241,.14) !important;
  background: rgba(8,13,31,.68) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035) !important;
}

.admin-clean-badge-card-v22r img,
.admin-clean-empty-v22r {
  width: 42px !important;
  height: 42px !important;
  object-fit: contain !important;
  border-radius: 10px !important;
  background: rgba(255,255,255,.055) !important;
  padding: 3px !important;
}

.admin-clean-empty-v22r {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: rgba(226,234,255,.65) !important;
  font-weight: 900 !important;
}

.admin-clean-info-v22r {
  min-width: 0 !important;
}

.admin-clean-info-v22r strong {
  display: block !important;
  color: rgba(255,255,255,.96) !important;
  font-size: 18px !important;
  line-height: 1.05 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.admin-clean-info-v22r span {
  display: block !important;
  margin-top: 3px !important;
  color: rgba(226,234,255,.64) !important;
  font-size: 11px !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.admin-clean-info-v22r em {
  display: block !important;
  margin-top: 3px !important;
  color: rgba(167,139,250,.98) !important;
  font-size: 11px !important;
  font-style: normal !important;
  font-weight: 950 !important;
  letter-spacing: .04em !important;
  text-transform: uppercase !important;
}

.admin-clean-delete-v22r {
  top: 50% !important;
  right: 14px !important;
  transform: translateY(-50%) !important;
}

.admin-clean-delete-v22r:hover {
  transform: translateY(-50%) scale(1.05) !important;
}

/* Kill old messy upload-library elements if any survived */
.admin-badge-path-v202,
.admin-badge-actions-v202,
[data-copy-badge-url-v202] {
  display: none !important;
}

/* POLITA ADMIN V22S SUBSCRIBER NAME POLISH */
.admin-subscriber-info-v22p strong {
  text-transform: none !important;
  font-size: 15px !important;
}

.admin-subscriber-info-v22p span {
  color: rgba(57,255,241,.72) !important;
  font-weight: 800 !important;
}

.admin-subscriber-info-v22p em {
  max-width: 100% !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* POLITA ADMIN V22T BADGE LIBRARY SEARCH */
.admin-library-actions-v22t {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
}

.admin-library-search-v22t {
  flex: 1 1 260px !important;
  min-width: 220px !important;
  height: 42px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(57,255,241,.18) !important;
  background: rgba(3,8,22,.56) !important;
  color: rgba(255,255,255,.94) !important;
  padding: 0 15px !important;
  outline: none !important;
  font-weight: 800 !important;
  letter-spacing: .01em !important;
}

.admin-library-search-v22t::placeholder {
  color: rgba(226,234,255,.45) !important;
}

.admin-library-search-v22t:focus {
  border-color: rgba(57,255,241,.55) !important;
  box-shadow: 0 0 0 3px rgba(57,255,241,.08), 0 0 24px rgba(57,255,241,.08) !important;
}

/* POLITA ADMIN V22U SUBSCRIBER TAB CLEANUP */
.subscriber-admin-help-v22u {
  margin-top: 14px !important;
  border: 1px solid rgba(57,255,241,.14) !important;
  background: rgba(8,13,31,.52) !important;
  border-radius: 16px !important;
  padding: 14px 16px !important;
}

.subscriber-admin-help-v22u strong {
  display: block !important;
  color: rgba(255,255,255,.94) !important;
  font-size: 14px !important;
  text-transform: uppercase !important;
  letter-spacing: .04em !important;
  margin-bottom: 8px !important;
}

.subscriber-admin-help-v22u ul {
  margin: 0 !important;
  padding-left: 18px !important;
  color: rgba(226,234,255,.70) !important;
  font-size: 13px !important;
  line-height: 1.55 !important;
}

/* POLITA ADMIN V22V CLEAR SEARCH */
.ghost-v22v {
  background: rgba(255,255,255,.055) !important;
  border-color: rgba(226,234,255,.16) !important;
  color: rgba(226,234,255,.78) !important;
}

.ghost-v22v:hover {
  background: rgba(57,255,241,.10) !important;
  border-color: rgba(57,255,241,.35) !important;
  color: rgba(255,255,255,.94) !important;
}

/* POLITA ADMIN V22W BADGE TYPE FILTER */
.admin-library-type-filter-v22w {
  height: 42px !important;
  min-width: 190px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(57,255,241,.18) !important;
  background: rgba(3,8,22,.56) !important;
  color: rgba(255,255,255,.90) !important;
  padding: 0 14px !important;
  outline: none !important;
  font-weight: 850 !important;
  cursor: pointer !important;
}

.admin-library-type-filter-v22w:focus {
  border-color: rgba(57,255,241,.55) !important;
  box-shadow: 0 0 0 3px rgba(57,255,241,.08), 0 0 24px rgba(57,255,241,.08) !important;
}

/* POLITA ADMIN V22X BADGE STATS PILLS */
.admin-badge-stats-v22x {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
  margin: 12px 0 12px !important;
}

.admin-badge-stats-v22x span {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 28px !important;
  padding: 5px 10px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(57,255,241,.16) !important;
  background: rgba(3,8,22,.46) !important;
  color: rgba(226,234,255,.78) !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  letter-spacing: .02em !important;
}

/* POLITA ADMIN V22Y SMARTER BADGE FILTER */
/* Uses JS rules: Level = level badges, Uploaded = uploaded/custom records, Special = rewards/events. */

/* POLITA ADMIN V22Y FIX CLICKABLE STATS */
.admin-badge-stats-v22x button {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 28px !important;
  padding: 5px 10px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(57,255,241,.16) !important;
  background: rgba(3,8,22,.46) !important;
  color: rgba(226,234,255,.78) !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  letter-spacing: .02em !important;
  cursor: pointer !important;
}

.admin-badge-stats-v22x button:hover {
  background: rgba(57,255,241,.10) !important;
  border-color: rgba(57,255,241,.36) !important;
  color: rgba(255,255,255,.94) !important;
}

.admin-badge-stats-v22x button.active {
  background: rgba(57,255,241,.16) !important;
  border-color: rgba(57,255,241,.58) !important;
  color: #ffffff !important;
  box-shadow: 0 0 18px rgba(57,255,241,.10) !important;
}

/* POLITA BADGE V23C LIVE STRIPE SUBSCRIBE */
#politaPlusStripeSubscribeV23C:disabled {
  opacity: .68 !important;
  cursor: wait !important;
}

#politaPlusStripeStatusV23C {
  color: rgba(226,234,255,.72) !important;
  border-color: rgba(57,255,241,.14) !important;
  background: rgba(3,8,22,.44) !important;
}

/* POLITA HUB V23H SUBSCRIBE MANAGE PANEL */
.subscriber-lock-v9.polita-plus-active-v23h {
  border-color: rgba(57,255,241,.42) !important;
  box-shadow: 0 0 28px rgba(57,255,241,.10), inset 0 0 20px rgba(57,255,241,.06) !important;
}

.subscriber-lock-v9.polita-plus-locked-v23h {
  border-color: rgba(255,255,255,.12) !important;
  filter: saturate(.82) !important;
}

.polita-plus-action-v23h {
  text-align: center !important;
  justify-content: center !important;
}

/* POLITA PLUS V23J LOGIN BUTTON */
.polita-login-v23j {
  text-decoration: none !important;
  white-space: nowrap !important;
}


/* POLITA BADGE V23L ACTIVE PREMIUM MODE */
body.polita-plus-active-v23l .subscribe-hero-v9.premium-panel-v10 {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 220, 120, 0.22), transparent 28%),
    radial-gradient(circle at 82% 12%, rgba(255, 247, 204, 0.14), transparent 22%),
    linear-gradient(135deg, rgba(72, 54, 18, 0.98) 0%, rgba(24, 18, 8, 0.96) 38%, rgba(7, 12, 23, 0.98) 100%);
  border-color: rgba(255, 214, 102, 0.45);
  box-shadow:
    0 0 0 1px rgba(255, 214, 102, 0.08),
    0 14px 34px rgba(255, 184, 55, 0.14);
}

body.polita-plus-active-v23l .subscribe-hero-v9.premium-panel-v10::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 30% 65%, rgba(255,255,255,0.08), transparent 14%),
    radial-gradient(circle at 58% 28%, rgba(255,225,140,0.08), transparent 12%),
    radial-gradient(circle at 76% 56%, rgba(255,255,255,0.05), transparent 10%);
}

body.polita-plus-active-v23l .locked-card-v9,
body.polita-plus-active-v23l .premium-card-v10 {
  border-color: rgba(255, 214, 102, 0.28);
  box-shadow: 0 10px 24px rgba(255, 184, 55, 0.08);
}

body.polita-plus-active-v23l #politaPlusStatusV23I {
  border-color: rgba(255, 214, 102, 0.22);
  color: #ffe7a4;
  background: linear-gradient(180deg, rgba(63, 46, 15, 0.35), rgba(16, 12, 7, 0.18));
}

body.polita-plus-active-v23l #politaPlusManageSubscriptionV23I {
  background: linear-gradient(180deg, rgba(255, 224, 134, 0.18), rgba(255, 191, 72, 0.08));
  border-color: rgba(255, 214, 102, 0.34);
  box-shadow: 0 8px 20px rgba(255, 184, 55, 0.10);
}

body.polita-plus-active-v23l #politaPlusManageSubscriptionV23I:hover {
  border-color: rgba(255, 225, 140, 0.50);
  box-shadow: 0 10px 24px rgba(255, 184, 55, 0.16);
}

body.polita-plus-locked-v23l #politaPlusManageSubscriptionV23I {
  display: none !important;
}

body.polita-plus-active-v23l #politaPlusSubscribeV23I {
  display: none !important;
}

/* POLITA+ V23M UNIFIED HEADER */
.polita-unified-header-v23m {
  position: relative !important;
  display: grid !important;
  grid-template-columns: 74px 1fr auto !important;
  align-items: center !important;
  gap: 16px !important;
}

.polita-brand-icon-only-v23m {
  width: 44px !important;
  min-width: 44px !important;
  padding: 0 !important;
  gap: 0 !important;
}

.polita-brand-icon-only-v23m img {
  width: 34px !important;
  height: 34px !important;
}

.polita-brand-icon-only-v23m .brand-name,
.polita-brand-icon-only-v23m .brand-sub,
.polita-unified-header-v23m .brand-name,
.polita-unified-header-v23m .brand-sub {
  display: none !important;
}

.polita-centered-nav-v23m {
  justify-self: center !important;
  margin: 0 auto !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 12px !important;
}

.polita-shared-profile-v23m {
  justify-self: end !important;
}

.polita-shared-profile-v23m .menu {
  z-index: 9999 !important;
}

.polita-shared-profile-v23m .avatar {
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

@media (max-width: 760px) {
  .polita-unified-header-v23m {
    grid-template-columns: 46px 1fr auto !important;
    gap: 8px !important;
  }

  .polita-centered-nav-v23m {
    gap: 6px !important;
  }

  .polita-centered-nav-v23m a {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
}

/* POLITA DROPS V23M FIX HEADER MATCH */
body .polita-unified-header-v23m .polita-top-avatar-v19,
body .polita-unified-header-v23m #avatar.polita-top-avatar-v19 {
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

/* POLITA+ V23N CUSTOMER READY NO FLICKER HEADER */
html:not(.polita-header-ready-v23n) .polita-shared-profile-v23m,
html:not(.polita-header-ready-v23n) header.topbar .profile {
  opacity: 0 !important;
  visibility: hidden !important;
}

html.polita-header-ready-v23n .polita-shared-profile-v23m,
html.polita-header-ready-v23n header.topbar .profile {
  opacity: 1 !important;
  visibility: visible !important;
  transition: opacity .16s ease !important;
}

.polita-unified-header-v23m {
  contain: layout paint !important;
}

.polita-unified-header-v23m .avatar,
.polita-unified-header-v23m #avatar {
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  flex: 0 0 auto !important;
}

.polita-unified-header-v23m .menu {
  will-change: opacity, transform !important;
  transform: translateZ(0) !important;
}

/* POLITA_HUB_LOCKED_PILL_RED_V1 */
.polita-plus-pill-locked-v1,
.polita-subscriber-locked-v1 .polita-plus-pill-locked-v1 {
  border-color: rgba(255, 75, 95, 0.78) !important;
  background: rgba(255, 45, 75, 0.16) !important;
  color: #ff5b73 !important;
  box-shadow: 0 0 18px rgba(255, 45, 75, 0.18) !important;
}

.polita-plus-pill-unlocked-v1 {
  border-color: rgba(0, 255, 190, 0.62) !important;
  background: rgba(0, 255, 190, 0.12) !important;
  color: #00ffbf !important;
  box-shadow: 0 0 18px rgba(0, 255, 190, 0.16) !important;
}

/* POLITA_HUB_LOCKED_UI_PROFILE_GUARD_V2 */
.polita-subscriber-locked-v1 {
  opacity: 0.92;
}

.polita-subscriber-locked-v1 input,
.polita-subscriber-locked-v1 button,
.polita-subscriber-locked-v1 .hub-colour-square-v214d {
  cursor: not-allowed !important;
}

.polita-locked-custom-card-v2 {
  opacity: 0.42 !important;
  pointer-events: none !important;
  filter: grayscale(0.55) brightness(0.7) !important;
}

.polita-locked-custom-card-v2::after {
  content: "LOCKED";
  margin-left: auto;
  color: #ff5b73;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
}

/* POLITA_RESTORE_BADGE_SELECT_CLICKS_V1 */
/* Re-enable badge cards. Polita+ lock should only lock colour picker/save, not badge selection. */
.polita-locked-custom-card-v2 {
  opacity: 1 !important;
  pointer-events: auto !important;
  filter: none !important;
  cursor: pointer !important;
}

.polita-locked-custom-card-v2::after {
  content: none !important;
}

/* Clean sidebar profile image background/square */
.layout-hub aside img,
.profile-card img,
.collector-profile img,
.hub-profile img,
.real-twitch-avatar-v13 {
  background: transparent !important;
  box-shadow: none;
}

/* Keep avatar frame clean without the chunky square block */
.layout-hub aside .avatar,
.layout-hub aside [id="avatar"],
.profile-card .avatar,
.collector-profile .avatar,
.hub-profile .avatar {
  background: transparent !important;
}

/* POLITA_EXACT_SIDEBAR_AVATAR_NOT_BADGE_V1 */
#mainBadgeImg.user-badge {
  background: transparent !important;
  box-shadow: none !important;
  object-fit: cover !important;
  border-radius: 22px !important;
  padding: 0 !important;
}

.side-card .user-card {
  overflow: hidden !important;
}

/* POLITA_SIDEBAR_AVATAR_BLACKBOX_CLEAN_V1 */
#mainBadgeImg,
#mainBadgeImg.user-badge {
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  border: 0 !important;
  outline: 0 !important;
  padding: 0 !important;
  object-fit: cover !important;
  display: block !important;
}

/* POLITA_HUB_STICKY_PROFILE_SIDEBAR_V1 */
@media (min-width: 901px) {
  .layout-hub {
    align-items: flex-start !important;
  }

  .side-card.panel {
    position: sticky !important;
    top: 92px !important;
    align-self: flex-start !important;
    height: fit-content !important;
    max-height: calc(100vh - 110px) !important;
  }
}

@media (max-width: 900px) {
  .side-card.panel {
    position: relative !important;
    top: auto !important;
    max-height: none !important;
  }
}

/* POLITA_HUB_FIXED_PROFILE_SIDEBAR_V2 */
/* Desktop only: keep the profile card fixed while the Hub content scrolls. */
@media (min-width: 981px) {
  .layout-hub {
    display: grid !important;
    grid-template-columns: 280px minmax(0, 1fr) !important;
    gap: 14px !important;
    align-items: flex-start !important;
  }

  .layout-hub > .side-card.panel {
    position: fixed !important;
    top: 88px !important;
    width: 280px !important;
    max-height: calc(100vh - 108px) !important;
    overflow: visible !important;
    z-index: 20 !important;
  }

  .layout-hub > .main-stack {
    grid-column: 2 !important;
    min-width: 0 !important;
  }
}

/* Tablet/mobile: keep normal stacked layout so it never covers content. */
@media (max-width: 980px) {
  .layout-hub > .side-card.panel {
    position: relative !important;
    top: auto !important;
    width: auto !important;
    max-height: none !important;
    overflow: visible !important;
    z-index: auto !important;
  }

  .layout-hub > .main-stack {
    grid-column: auto !important;
  }
}

/* POLITA_HUB_NORMAL_SCROLLING_SIDEBAR_V1 */
/* Sidebar should scroll away with the page like normal content. */
.layout-hub > .side-card.panel,
.side-card.panel,
.side-card {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  width: auto !important;
  max-height: none !important;
  overflow: visible !important;
  z-index: auto !important;
}

.layout-hub > .main-stack {
  grid-column: auto !important;
}

/* POLITA_HEADER_ICON_BLACKBOX_CLEAN_V1 */
.topbar .brand,
.topbar .polita-brand-icon-only-v23m,
.polita-unified-header-v23m .brand,
.polita-unified-header-v23m .polita-brand-icon-only-v23m {
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
}

.topbar .brand img,
.topbar .polita-brand-icon-only-v23m img,
.polita-unified-header-v23m .brand img,
.polita-unified-header-v23m .polita-brand-icon-only-v23m img {
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
  padding: 0 !important;
  object-fit: contain !important;
}

/* POLITA_LIVE_SUBSCRIBER_BADGE_PREVIEW_V1 */
#hubColourBadgePreviewV214D {
  position: relative !important;
  overflow: hidden !important;
}

#hubColourPreviewImgV214D {
  position: relative !important;
  z-index: 2 !important;
  background: transparent !important;
}

#hubColourLiveCanvasV1 {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 1 !important;
  pointer-events: none !important;
}

/* POLITA_LIVE_SUBSCRIBER_BADGE_PREVIEW_SINGLE_LAYER_V1 */
/* The canvas now renders the full live coloured subscriber badge.
   Hide the old img layer so there is not a second robot badge stacked on top. */
#hubColourLiveCanvasV1 {
  z-index: 3 !important;
}

#hubColourPreviewImgV214D[data-polita-live-preview-v1="1"] {
  opacity: 0 !important;
  visibility: hidden !important;
}

#hubColourPreviewImgV214D {
  pointer-events: none !important;
}

/* POLITA_EXTENSION_PAGE_AND_HUB_INFO_V1 */
.polita-hub-extension-info-v1 {
  margin: 14px 0;
  border-color: rgba(20, 241, 255, .18) !important;
}

.polita-hub-extension-info-v1 .panel-pad {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.polita-hub-extension-info-v1 strong {
  display: block;
  color: #fff;
  font-family: "Rajdhani", Arial, sans-serif;
  font-size: 20px;
  margin-bottom: 4px;
}

.polita-hub-extension-info-v1 span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.polita-extension-page-v1 {
  margin-top: 14px;
}

.polita-extension-steps-v1 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.polita-extension-steps-v1 article {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 14px;
  padding: 14px;
}

.polita-extension-steps-v1 strong {
  display: block;
  color: #fff;
  font-family: "Rajdhani", Arial, sans-serif;
  font-size: 18px;
  margin-bottom: 7px;
}

.polita-extension-steps-v1 span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.polita-extension-actions-v1 {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

@media (max-width: 980px) {
  .polita-hub-extension-info-v1 .panel-pad {
    display: grid;
  }

  .polita-extension-steps-v1 {
    grid-template-columns: 1fr;
  }
}

/* POLITA_HUB_EXTENSION_INFO_PANEL_FINAL_STYLE_V1 */
.polita-hub-extension-info-v1 {
  margin: 14px 0;
  border-color: rgba(20, 241, 255, .18) !important;
}

.polita-hub-extension-info-v1 .panel-pad {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.polita-hub-extension-info-v1 strong {
  display: block;
  color: #fff;
  font-family: "Rajdhani", Arial, sans-serif;
  font-size: 20px;
  margin-bottom: 4px;
}

.polita-hub-extension-info-v1 span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

@media (max-width: 980px) {
  .polita-hub-extension-info-v1 .panel-pad {
    display: grid;
  }
}

/* POLITA_BADGE_HEADER_MATCH_HUB_V1 */
.polita-unified-header-v23m {
  position: relative !important;
  display: grid !important;
  grid-template-columns: 80px 1fr 80px !important;
  align-items: center !important;
  min-height: 58px !important;
  padding: 0 16px !important;
  background: rgba(5,5,5,.96) !important;
  border-bottom: 1px solid rgba(255,255,255,.08) !important;
}

.polita-unified-header-v23m .brand,
.polita-unified-header-v23m .polita-brand-icon-only-v23m {
  justify-self: start !important;
}

.polita-unified-header-v23m .nav,
.polita-unified-header-v23m .polita-centered-nav-v23m {
  justify-self: center !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 22px !important;
  min-width: 0 !important;
}

.polita-unified-header-v23m .polita-shared-profile-v23m {
  display: none !important;
}

@media (max-width: 720px) {
  .polita-unified-header-v23m {
    grid-template-columns: 46px 1fr 0px !important;
    padding: 0 10px !important;
  }

  .polita-unified-header-v23m .nav,
  .polita-unified-header-v23m .polita-centered-nav-v23m {
    gap: 8px !important;
    overflow-x: auto !important;
    justify-content: flex-start !important;
  }

  .polita-unified-header-v23m .nav a,
  .polita-unified-header-v23m .polita-centered-nav-v23m a {
    white-space: nowrap !important;
  }
}

/* POLITA_BADGE_HEADER_FINAL_MATCH_V2 */
.polita-unified-header-v23m {
  display: grid !important;
  grid-template-columns: 64px minmax(0, 1fr) 64px !important;
  align-items: center !important;
  min-height: 58px !important;
  padding: 0 16px !important;
  background: rgba(5,5,5,.96) !important;
  border-bottom: 1px solid rgba(255,255,255,.08) !important;
}

.polita-unified-header-v23m .brand,
.polita-unified-header-v23m .polita-brand-icon-only-v23m {
  justify-self: start !important;
  min-width: 0 !important;
}

.polita-unified-header-v23m .nav,
.polita-unified-header-v23m .polita-centered-nav-v23m {
  justify-self: center !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 18px !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: visible !important;
}

.polita-unified-header-v23m .nav a,
.polita-unified-header-v23m .polita-centered-nav-v23m a {
  display: inline-flex !important;
  align-items: center !important;
  white-space: nowrap !important;
}

.polita-unified-header-v23m .nav a[href="/extension.html"],
.polita-unified-header-v23m .polita-centered-nav-v23m a[href="/extension.html"] {
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.polita-unified-header-v23m .polita-shared-profile-v23m {
  display: none !important;
}

@media (max-width: 760px) {
  .polita-unified-header-v23m {
    grid-template-columns: 42px minmax(0, 1fr) 0px !important;
    padding: 0 8px !important;
  }

  .polita-unified-header-v23m .nav,
  .polita-unified-header-v23m .polita-centered-nav-v23m {
    justify-content: flex-start !important;
    gap: 8px !important;
    overflow-x: auto !important;
  }
}

/* POLITA_COLOUR_PICKER_PREVIEW_TRUE_WHITE_V1
   Only affects the small live preview badge beside "Subscriber Badge".
   It removes the coloured glow/tint so white looks clean white. */
#hubColourBadgePreviewV214D,
.hub-colour-badge-preview-v214d {
  box-shadow: none !important;
  filter: none !important;
  background-color: transparent !important;
}

#hubColourBadgePreviewV214D::before,
#hubColourBadgePreviewV214D::after,
.hub-colour-badge-preview-v214d::before,
.hub-colour-badge-preview-v214d::after {
  display: none !important;
}

#hubColourLiveCanvasV1 {
  filter: none !important;
  box-shadow: none !important;
}

#hubColourPreviewImgV214D {
  filter: none !important;
  box-shadow: none !important;
}

/* POLITA_COLOUR_PICKER_NO_PINK_STARTUP_FLASH_V1
   Stops the small colour-picker badge preview showing the old pink fallback
   before the live canvas has drawn the chosen colour. */
#hubColourPreviewImgV214D {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

#hubColourLiveCanvasV1 {
  opacity: 1 !important;
  visibility: visible !important;
}

/* POLITA_PREVIEW_CANVAS_NO_STARTUP_PINK_V1
   The colour picker starts with hardcoded #f719ff in the HTML.
   Hide only the small preview canvas until saved colour/user colour is ready. */
#hubColourBadgePreviewV214D:not([data-polita-preview-ready-v1="1"]) #hubColourLiveCanvasV1 {
  opacity: 0 !important;
  visibility: hidden !important;
}

#hubColourBadgePreviewV214D[data-polita-preview-ready-v1="1"] #hubColourLiveCanvasV1 {
  opacity: 1 !important;
  visibility: visible !important;
}
