/* Publisher layout is structural in both themes. Theme changes must not remove
   the card grid or navigation geometry. All rules leave public pages untouched. */
.publisher-profile-menu { position: relative; }
.publisher-profile-menu summary { cursor: pointer; list-style: none; }
.publisher-profile-menu summary::-webkit-details-marker { display: none; }
.publisher-profile-menu nav { position: absolute; z-index: 90; right: 0; top: calc(100% + 10px); width: 200px; padding: 10px; background: var(--premium-panel-strong); color: var(--premium-text); border: 1px solid var(--premium-border); border-radius: 5px; box-shadow: 0 10px 30px #0002; }
.publisher-profile-menu nav > * { display: block; width: 100%; padding: 8px; text-align: left; font-size: 12px; }
.publisher-profile-menu nav button { border: 0; background: transparent; color: var(--premium-danger); cursor: pointer; }
body.premium-portal-active .premium-affiliate-shell .premium-sidebar-account { display: none; }
.publisher-manager { margin: 24px 4px; padding: 13px; background: linear-gradient(145deg,var(--premium-panel-strong),var(--premium-bg)); border: 1px solid var(--premium-border); border-radius: 12px; font-size: 11px; box-shadow: 0 10px 26px #0002; }
.publisher-manager-head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.publisher-manager-head > span:last-child { min-width: 0; }
.publisher-manager-head small { display: block; color: var(--premium-accent); font-size: 8px; font-weight: 800; letter-spacing: .12em; }
.publisher-manager-head strong { display: block; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--premium-text); font-size: 12px; }
.publisher-manager-head em { display: flex; align-items: center; gap: 4px; margin-top: 4px; color: var(--premium-muted); font-size: 9px; font-style: normal; }
.publisher-manager-head em i { width: 5px; height: 5px; border-radius: 50%; background: #55e7b3; box-shadow: 0 0 8px #55e7b3; }
.publisher-manager-avatar { display: grid; flex: 0 0 38px; width: 38px; height: 38px; place-items: center; overflow: hidden; border: 1px solid var(--premium-border-strong); border-radius: 13px; background: linear-gradient(135deg,#2c7dfa,#9f70ff); color: #fff; font-size: 13px; font-weight: 800; }
.publisher-manager-avatar img { width: 100%; height: 100%; object-fit: cover; }
.publisher-manager-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; margin-top: 13px; }
.publisher-manager-actions .manager-contact { display: flex; align-items: center; justify-content: center; gap: 5px; min-width: 0; padding: 7px 5px; border: 1px solid var(--premium-border); border-radius: 8px; color: var(--premium-text-soft); font-size: 9px; text-decoration: none; transition: transform .16s ease,border-color .16s ease,background .16s ease; }
.publisher-manager-actions .manager-contact:hover { transform: translateY(-1px); border-color: var(--premium-accent); background: #fff1; color: var(--premium-text); }
.publisher-manager-actions .manager-contact span { display: grid; width: 15px; height: 15px; place-items: center; }
.publisher-manager-actions .manager-contact svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.publisher-manager-actions .manager-contact-telegram { color: #67b9ff; }
.publisher-manager-actions .manager-contact-whatsapp { color: #63e5aa; }
.publisher-manager-actions .manager-contact-email { color: #d3a4ff; }
.publisher-account-settings { display: flex; align-items: center; gap: 8px; margin-top: auto; padding: 14px 8px 0; border-top: 1px solid var(--premium-border); font-size: 11px; }
.publisher-report-page .premium-page-heading h1 { font-size: 20px; }
.publisher-report-filters { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; padding: 18px; margin-bottom: 18px; background: var(--premium-panel-strong); border: 1px solid var(--premium-border); border-radius: 5px; }
.publisher-report-filters label { display: grid; flex: 1 1 130px; gap: 6px; color: var(--premium-text); font-size: 11px; }
.publisher-report-filters :is(input,select) { width: 100%; min-width: 0; height: 34px; border: 1px solid var(--premium-border-strong); border-radius: 4px; background: var(--premium-panel-strong); color: var(--premium-text); padding: 6px 8px; font-size: 12px; color-scheme: light dark; }
body.premium-light .publisher-report-filters :is(input,select) { color-scheme: light; }
.publisher-report-page button { border: 1px solid var(--premium-border); border-radius: 4px; padding: 8px 14px; background: #3b7df5; color: white; font-size: 12px; cursor: pointer; }
.publisher-report-page button:disabled { opacity: .45; cursor: default; }
.publisher-report-filters .publisher-export { background: #19b95b; }
.publisher-shortcuts { display: flex; gap: 6px; flex-basis: 100%; }
.publisher-shortcuts button { background: var(--premium-panel-strong); color: var(--premium-text-soft); padding: 4px 8px; font-size: 10px; }
.publisher-statistics-summary { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 14px; margin-bottom: 20px; }
.publisher-statistics-summary article { text-align: center; background: var(--premium-panel-strong); padding: 15px 8px; border: 1px solid var(--premium-border); border-radius: 5px; }
.publisher-statistics-summary small,.publisher-statistics-summary strong { display: block; }
.publisher-statistics-summary small { color: var(--premium-muted); font-size: 11px; }
.publisher-statistics-summary strong { font-size: 17px; }
.publisher-data-table td > small { display: block; margin-top: 3px; color: var(--premium-muted); font-size: 10px; }
.publisher-data-table td { overflow-wrap: anywhere; }
.publisher-status { display: inline-block; padding: 3px 7px; font-size: 10px; border-radius: 3px; text-transform: capitalize; }
.publisher-status-approved { background: #dcfce7; color: #08723c; }
.publisher-status-declined { background: #ffe4e6; color: #ae263b; }
.publisher-status-pending { background: #fef3c7; color: #8a6200; }
.publisher-report-empty { text-align: center; color: var(--premium-muted); padding: 24px; font-size: 12px; }
.publisher-report-pagination { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; font-size: 11px; gap: 10px; }
.publisher-report-pagination > div { display: flex; gap: 8px; }
.publisher-report-pagination button { background: var(--premium-panel-strong); color: var(--premium-text); }
.publisher-report-scope { color: var(--premium-muted); font-size: 11px; margin: 14px 0; }
body.premium-portal-active .premium-affiliate-shell .publisher-report-page .premium-card { border-radius: 5px; box-shadow: none; }
body.premium-portal-active .gemiad-marketplace-page .eyebrow,
body.premium-portal-active .gemiad-marketplace-page > .partner-safety-note { display: none; }
body.premium-portal-active .gemiad-marketplace-page > .page-title { font-size: 20px; margin: 0 0 8px; }
body.premium-portal-active .gemiad-marketplace-page > .lede { font-size: 12px; margin: 0 0 16px; color: var(--premium-muted); }
body.premium-portal-active .gemiad-marketplace { background: transparent; border: 0; box-shadow: none; padding: 0; }
body.premium-portal-active .gemiad-market-head { padding: 16px; background: var(--premium-panel-strong); border: 1px solid var(--premium-border); border-radius: 5px; align-items: start; }
body.premium-portal-active .gemiad-filter { border-color: var(--premium-border); border-radius: 4px; background: var(--premium-panel-strong); color: var(--premium-text-soft); padding: 6px 9px; font-size: 10px; }
body.premium-portal-active .gemiad-filter.active { background: #3b7df5; color: #fff; }
body.premium-portal-active .marketplace-controls .input { background: var(--premium-panel-strong); color: var(--premium-text); border-color: var(--premium-border); border-radius: 4px; font-size: 11px; }
body.premium-portal-active .gemiad-results { color: var(--premium-muted); font-size: 11px; }
.publisher-offer-table-wrap { overflow-x: auto; border: 1px solid var(--premium-border,#dfe7f0); border-radius: 5px; background: var(--premium-panel-strong,#fff); }
.publisher-offer-table { border-collapse: collapse; width: 100%; min-width: 760px; font-size: 11px; color: var(--premium-text,#183451); }
.publisher-offer-table th { padding: 12px 10px; text-align: left; font-size: 10px; font-weight: 550; background: var(--premium-bg-raised,#f8fafc); }
.publisher-offer-table td { padding: 11px 10px; border-top: 1px solid var(--premium-border,#dfe7f0); }
.publisher-offer-name { display: flex; align-items: center; gap: 10px; min-width: 240px; }
.publisher-offer-name > div { max-width: 360px; }
.publisher-offer-name small { display: block; color: var(--premium-muted,#647891); font-size: 9px; margin-top: 3px; }
.publisher-offer-name .gemiad-offer-icon { width: 28px; height: 28px; flex: 0 0 28px; border-radius: 4px; }
.publisher-offer-title { padding: 0; text-align: left; background: none; color: inherit; border: 0; font: inherit; cursor: pointer; }
.publisher-offer-title:hover { color: #3b7df5; text-decoration: underline; }
.publisher-get-link { background: #1cbe60; color: #fff; border: 0; border-radius: 4px; padding: 6px 11px; font-size: 10px; cursor: pointer; white-space: nowrap; }
.publisher-offer-payout { color: #13aa54; font-weight: 650; white-space: nowrap; }
body.premium-light .gemiad-modal-panel,
body.premium-light .offerwall-modal-content { background: #fff; color: #183451; }
body.premium-light .gemiad-modal-facts div { background: #f0f5f9; }
body.premium-light .gemiad-modal-facts dd { color: #183451; }
body.premium-light .offer-detail-tracking :is(input,select) { background: #fff; color: #183451; border-color: #becfe3; }
@media(max-width:600px) {
  .publisher-report-filters label { flex-basis: 40%; }
  .publisher-statistics-summary { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .publisher-shortcuts { flex-wrap: wrap; }
  .publisher-report-pagination { flex-wrap: wrap; }
}
body.premium-portal-active { background: var(--premium-bg); }
body.premium-portal-active .reward-art-rotator,
body.premium-portal-active .ilc-site-watermark { display: none !important; }
body.premium-portal-active .premium-affiliate-shell {
  grid-template-columns: 192px minmax(0, 1fr);
  background: var(--premium-bg);
}
body.premium-portal-active .premium-affiliate-shell::after { display: none; }
body.premium-portal-active .premium-affiliate-shell .premium-sidebar {
  width: 192px;
  padding: 0 12px 16px;
  background: var(--premium-sidebar-bg);
  box-shadow: none;
}
body.premium-portal-active .premium-affiliate-shell .premium-brand {
  min-height: 62px;
  margin: 0 -12px 12px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--premium-border);
}
body.premium-portal-active .premium-affiliate-shell .premium-brand-mark { width: 32px; height: 32px; box-shadow: none; }
body.premium-portal-active .premium-affiliate-shell .premium-brand-copy strong { font-size: 11px; }
body.premium-portal-active .premium-affiliate-shell .premium-brand-copy small { font-size: 8px; }
body.premium-portal-active .premium-affiliate-shell .premium-nav-link {
  min-height: 36px; padding: 9px 10px; border-radius: 4px; box-shadow: none; font-size: 11px;
}
body.premium-portal-active .premium-affiliate-shell .premium-sidebar-nav { gap: 14px; }
body.premium-portal-active .premium-affiliate-shell .premium-nav-section { gap: 2px; margin: 0; }
body.premium-portal-active .premium-affiliate-shell .premium-nav-section > span { font-size: 9px; letter-spacing: .03em; margin: 0 8px 4px; padding: 0; }
body.premium-portal-active .premium-affiliate-shell .premium-nav-link.is-active svg { color: inherit; }
body.premium-portal-active .premium-affiliate-shell .premium-topbar {
  min-height: 62px; padding: 10px 24px; background: var(--premium-sidebar-bg); box-shadow: none;
}
body.premium-portal-active .premium-affiliate-shell .premium-topbar-left { flex: 1; min-width: 0; }
body.premium-portal-active .premium-affiliate-shell .publisher-panel-label { font-size: 12px; white-space: nowrap; color: var(--premium-text); }
body.premium-portal-active .premium-affiliate-shell .premium-search,
body.premium-portal-active .premium-affiliate-shell .premium-topbar-left > .premium-icon-button,
body.premium-portal-active .premium-affiliate-shell .premium-topbar .premium-offer-access,
body.premium-portal-active .premium-affiliate-shell .premium-clock { display: none; }
body.premium-portal-active .premium-affiliate-shell .premium-balance { display: block; border: 0; padding: 0; }
body.premium-portal-active .premium-affiliate-shell .premium-balance small { display: none; }
body.premium-portal-active .premium-affiliate-shell .premium-balance strong {
  display: block; background: #20bf62; color: white; padding: 4px 8px; border-radius: 4px; font-size: 11px;
}
body.premium-portal-active .premium-affiliate-shell .premium-account-chip { min-width: 0; background: transparent; border: 0; padding: 0; }
body.premium-portal-active .premium-affiliate-shell .premium-account-chip > span:nth-child(2) { display: none; }
body.premium-portal-active .premium-affiliate-shell .premium-content {
  width: 100%; max-width: 1200px; margin: 0 auto; padding: 24px 24px 32px;
}
body.premium-portal-active .premium-affiliate-shell .premium-content > .public-ad-slot:empty,
body.premium-portal-active .premium-affiliate-shell .premium-content > #site-notice:empty { display: none; margin: 0; }
body.premium-portal-active .premium-affiliate-shell .nixwall-page-heading { margin: 0 0 16px; }
body.premium-portal-active .premium-affiliate-shell .nixwall-page-heading h1 { font-size: 20px; font-weight: 650; letter-spacing: 0; }
body.premium-portal-active .premium-affiliate-shell .nixwall-metric-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px;
}
body.premium-portal-active .premium-affiliate-shell .nixwall-metric-grid > article {
  display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 76px;
  padding: 14px 16px; border-radius: 4px; background: #1e293b; box-shadow: none;
}
body.premium-portal-active .premium-affiliate-shell .nixwall-metric-grid small { display: block; color: #f1f5f9; font-size: 10px; line-height: 1.4; }
body.premium-portal-active .premium-affiliate-shell .nixwall-metric-grid strong { display: block; margin-top: 2px; color: #fff; font-size: 17px; line-height: 1.2; font-variant-numeric: tabular-nums; }
body.premium-portal-active .premium-affiliate-shell .nixwall-metric-symbol {
  display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 40px;
  border-radius: 14px; color: #3979ff; background: #dbeafe; font-size: 23px; font-weight: 700;
}
body.premium-portal-active .premium-affiliate-shell .nixwall-metric-symbol.is-green { color: #00a968; background: #dcfce7; }
body.premium-portal-active .premium-affiliate-shell .nixwall-metric-symbol.is-violet { color: #9739f3; background: #f3e8ff; }
body.premium-portal-active .premium-affiliate-shell .nixwall-metric-symbol.is-red { color: #ee3454; background: #ffe4e6; }
body.premium-portal-active .premium-affiliate-shell .nixwall-member-dashboard .premium-card {
  background: #1e293b; color: #f1f5f9; border: 0; border-radius: 4px; box-shadow: none;
}
body.premium-portal-active .premium-affiliate-shell .nixwall-member-dashboard .premium-card-head {
  min-height: 48px; padding: 14px 16px 6px; border: 0; background: transparent;
}
body.premium-portal-active .premium-affiliate-shell .nixwall-member-dashboard .premium-card-head h2 { color: #ff941f; font-size: 12px; font-weight: 650; }
body.premium-portal-active .premium-affiliate-shell .nixwall-member-dashboard .premium-card-head p { color: #adbed3; font-size: 10px; }
body.premium-portal-active .premium-affiliate-shell .nixwall-member-dashboard .premium-chart { background: transparent; min-height: 250px; padding: 4px 16px 12px; }
body.premium-portal-active .premium-affiliate-shell .nixwall-member-dashboard .premium-chart-svg { width: 100%; height: 310px; }
body.premium-portal-active .premium-affiliate-shell .nixwall-member-dashboard .premium-chart-line { stroke: #3b82f6; stroke-width: 2; filter: none; }
body.premium-portal-active .premium-affiliate-shell .nixwall-member-dashboard .premium-chart-area { fill: #3b82f6; opacity: .06; }
body.premium-portal-active .premium-affiliate-shell .nixwall-member-dashboard .premium-chart-svg circle { color: #3b82f6; }
body.premium-portal-active .premium-affiliate-shell .nixwall-member-dashboard .premium-chart-svg text { fill: #a1b1c9; }
body.premium-portal-active .premium-affiliate-shell .nixwall-member-dashboard .premium-chart-tabs { background: #27364d; border-color: #3c4c63; }
body.premium-portal-active .premium-affiliate-shell .nixwall-member-dashboard .premium-chart-tab { color: #cfdaea; }
body.premium-portal-active .premium-affiliate-shell .nixwall-member-dashboard .premium-chart-tab.is-active { color: white; background: #3b79ef; }
body.premium-portal-active .premium-affiliate-shell .nixwall-dashboard-bottom { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
body.premium-portal-active .premium-affiliate-shell .nixwall-dashboard-bottom > article { min-width: 0; min-height: 315px; }
body.premium-portal-active .premium-affiliate-shell .nixwall-feed { min-height: 150px; padding: 12px 16px; font-size: 12px; }
body.premium-portal-active .premium-affiliate-shell .nixwall-feed > p { color: #b3c2d6; font-size: 12px; margin: 12px 0; }
body.premium-portal-active .premium-affiliate-shell .nixwall-feed article { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 10px 0; border: 0; }
body.premium-portal-active .premium-affiliate-shell .nixwall-feed b,
body.premium-portal-active .premium-affiliate-shell .nixwall-feed small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.premium-portal-active .premium-affiliate-shell .nixwall-feed b { color: #f1f5f9; font-size: 11px; }
body.premium-portal-active .premium-affiliate-shell .nixwall-feed small { color: #a2b3cb; font-size: 10px; }
body.premium-portal-active .premium-affiliate-shell .nixwall-feed strong { color: #30df80; font-size: 11px; }
body.premium-portal-active .premium-affiliate-shell .nixwall-feed-icon,
body.premium-portal-active .premium-affiliate-shell .nixwall-rank { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 4px; background: #314767; color: #dcfce7; }
body.premium-portal-active .premium-affiliate-shell .nixwall-dashboard-bottom .premium-offer-access { display: inline-flex; color: #c9dcff; border-color: #475d7b; background: transparent; }
body.premium-portal-active .premium-affiliate-shell .nixwall-member-dashboard .premium-realtime-pill { color: #86efac; border-color: #3b6257; background: #233e37; }
body.premium-portal-active.premium-light .premium-affiliate-shell { background: #f0f5f9; }
body.premium-portal-active.premium-light .premium-affiliate-shell .premium-nav-link.is-active { background: #3b7df5; color: white; }
/* Keep the existing notification controls available without overlaying charts. */
body.premium-portal-active .member-notice-control { position: fixed; top: auto; bottom: 12px; right: 76px; }
@media (max-width: 1100px) {
  body.premium-portal-active .premium-affiliate-shell .nixwall-metric-grid { gap: 10px; }
  body.premium-portal-active .premium-affiliate-shell .nixwall-metric-grid > article { padding: 12px; gap: 8px; }
}
@media (max-width: 900px) {
  body.premium-portal-active .premium-affiliate-shell { grid-template-columns: minmax(0, 1fr); }
  body.premium-portal-active .premium-affiliate-shell .premium-sidebar { width: 260px; }
  body.premium-portal-active .premium-affiliate-shell .premium-mobile-toggle { display: inline-grid; order: -1; background: var(--premium-bg); color: var(--premium-text); }
  body.premium-portal-active .premium-affiliate-shell .premium-content { padding: 20px 16px 80px; }
  body.premium-portal-active .premium-affiliate-shell .nixwall-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  body.premium-portal-active .premium-affiliate-shell .premium-topbar-actions button.premium-icon-button.premium-theme-toggle { display: inline-grid; }
  body.premium-portal-active .premium-affiliate-shell .premium-topbar-actions .premium-icon-button { width: 30px; height: 32px; }
  body.premium-portal-active .premium-affiliate-shell .premium-topbar { padding: 10px 12px; gap: 8px; }
  body.premium-portal-active .premium-affiliate-shell .premium-topbar-actions { gap: 4px; }
  body.premium-portal-active .premium-affiliate-shell .publisher-panel-label { font-size: 11px; }
  body.premium-portal-active .premium-affiliate-shell .nixwall-dashboard-bottom { grid-template-columns: 1fr; }
  body.premium-portal-active .premium-affiliate-shell .nixwall-metric-grid strong { font-size: 16px; }
  body.premium-portal-active .premium-affiliate-shell .nixwall-metric-symbol { width: 28px; height: 34px; flex-basis: 28px; font-size: 20px; }
  body.premium-portal-active .premium-affiliate-shell .nixwall-member-dashboard .premium-card-head { flex-wrap: wrap; gap: 8px; }
  body.premium-portal-active .premium-affiliate-shell .nixwall-member-dashboard .premium-chart-svg { min-width: 0; height: 220px; }
}

.publisher-placements-page{max-width:980px;margin:0 auto}.publisher-placement-card{padding:0;overflow:hidden}.publisher-placement-card .premium-card-head{padding:18px 20px;border-bottom:1px solid var(--line)}.publisher-primary-action{border:1px solid #3b82f6;background:#3b82f6;color:#fff;border-radius:7px;padding:9px 13px;font-weight:800;cursor:pointer}.publisher-placement-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:18px 20px;background:var(--panel-muted)}.publisher-placement-form label{display:grid;gap:6px;color:var(--text);font-size:.78rem;font-weight:750}.publisher-placement-form label:nth-child(1),.publisher-placement-form label:nth-child(2),.publisher-placement-form label:nth-child(3),.publisher-placement-form .publisher-placement-help,.publisher-placement-form>div,.publisher-placement-form>[data-placement-status]{grid-column:1/-1}.publisher-placement-form small{color:var(--muted);font-weight:600}.publisher-placement-form input{width:100%;min-height:36px;padding:8px 10px;border:1px solid var(--line);border-radius:6px;background:var(--panel);color:var(--text)}.publisher-placement-help{margin:0;color:var(--muted);font-size:.76rem;line-height:1.45}.publisher-placement-form>div{display:flex;gap:8px}.publisher-placement-form>[data-placement-status]{margin:0;color:var(--muted);font-size:.78rem}.publisher-placement-table td small{display:block;color:var(--muted);margin-top:3px}.publisher-placement-empty{padding:22px 20px;text-align:center;color:var(--muted)}
@media(max-width:680px){.publisher-placement-form{grid-template-columns:1fr}.publisher-placement-card .premium-card-head{align-items:flex-start;flex-direction:column}.publisher-placement-table{min-width:620px}}

.publisher-subid-summary{margin:0 0 18px;padding:16px 18px;background:var(--premium-panel-strong);border:1px solid var(--premium-border);border-radius:6px}.publisher-subid-summary-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.publisher-subid-summary-head small{color:var(--premium-muted);font-size:10px;letter-spacing:.12em}.publisher-subid-summary-head h2{margin:4px 0;font-size:16px;color:var(--premium-text)}.publisher-subid-summary-head p{margin:0;color:var(--premium-muted);font-size:11px}.publisher-subid-summary .publisher-statistics-summary{margin:14px 0 0;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.publisher-subid-summary .publisher-statistics-summary article{padding:11px 8px}.publisher-subid-offers{border-top:1px solid var(--premium-border);margin-top:12px}.publisher-subid-offer-list-head,.publisher-subid-offer-row{display:grid;grid-template-columns:minmax(0,1fr) 170px;gap:12px;align-items:center;padding:9px 0;border-bottom:1px solid var(--premium-border);font-size:11px}.publisher-subid-offer-list-head{color:var(--premium-muted);font-size:10px;text-transform:uppercase}.publisher-subid-offer-row b{color:var(--premium-text);overflow-wrap:anywhere}.publisher-subid-offer-row span{text-align:right;color:#30df80;font-weight:750}.publisher-subid-empty{margin:12px 0 0;color:var(--premium-muted);font-size:11px}.subid-report-filters{margin-bottom:18px}.premium-subid-table td{vertical-align:middle}.premium-subid-label{display:inline-flex;align-items:center;min-height:24px;padding:4px 8px;border:1px solid var(--premium-border-strong);border-radius:999px;color:var(--premium-text);font-weight:800;overflow-wrap:anywhere}
@media(max-width:600px){.publisher-subid-summary .publisher-statistics-summary{grid-template-columns:1fr}.publisher-subid-offer-list-head,.publisher-subid-offer-row{grid-template-columns:minmax(0,1fr) auto}.publisher-subid-offer-row span{text-align:right}}

/* Desktop member sidebar: independently scrollable, resizable and easier to
   scan. The resize rail disappears with the mobile drawer. */
body.premium-portal-active .premium-affiliate-shell {
  --premium-sidebar-width: 248px;
  grid-template-columns: minmax(216px,var(--premium-sidebar-width)) minmax(0,1fr);
}
body.premium-portal-active .premium-affiliate-shell .premium-sidebar {
  position: sticky;
  width: var(--premium-sidebar-width);
  max-width: var(--premium-sidebar-width);
  height: 100dvh;
  max-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(116,231,224,.35) transparent;
}
body.premium-portal-active .premium-affiliate-shell .premium-sidebar::-webkit-scrollbar { width: 7px; }
body.premium-portal-active .premium-affiliate-shell .premium-sidebar::-webkit-scrollbar-thumb { border: 2px solid transparent; border-radius: 99px; background: rgba(116,231,224,.32); background-clip: padding-box; }
body.premium-portal-active .premium-affiliate-shell .premium-sidebar-nav { flex: 0 0 auto; min-width: 0; }
body.premium-portal-active .premium-affiliate-shell .publisher-manager { flex: 0 0 auto; width: 100%; margin: 18px 0 12px; padding: 15px 12px; border-color: rgba(116,231,224,.23); background: linear-gradient(155deg,rgba(24,39,69,.95),rgba(9,17,38,.98)); box-shadow: 0 14px 35px rgba(0,0,0,.24), inset 0 1px rgba(255,255,255,.04); }
body.premium-portal-active .premium-affiliate-shell .publisher-manager-head { flex-direction: column; gap: 8px; text-align: center; }
body.premium-portal-active .premium-affiliate-shell .publisher-manager-head > span:last-child { display: grid; justify-items: center; width: 100%; }
body.premium-portal-active .premium-affiliate-shell .publisher-manager-avatar { flex-basis: 56px; width: 56px; height: 56px; border-radius: 18px; border-color: rgba(116,231,224,.55); box-shadow: 0 0 22px rgba(87,208,225,.2); font-size: 16px; }
body.premium-portal-active .premium-affiliate-shell .publisher-manager-head small { margin-top: 1px; font-size: 8px; }
body.premium-portal-active .premium-affiliate-shell .publisher-manager-head strong { max-width: 100%; margin-top: 2px; font-size: 13px; }
body.premium-portal-active .premium-affiliate-shell .publisher-manager-head em { justify-content: center; margin-top: 3px; font-size: 9px; }
body.premium-portal-active .premium-affiliate-shell .publisher-manager-actions { width: 100%; margin-top: 14px; gap: 7px; }
body.premium-portal-active .premium-affiliate-shell .publisher-manager-actions .manager-contact { min-height: 31px; padding: 6px 4px; border-color: rgba(149,180,230,.2); background: rgba(255,255,255,.025); font-size: 9px; }
body.premium-portal-active .premium-affiliate-shell .publisher-manager-actions .manager-contact span { width: 14px; height: 14px; }
body.premium-portal-active .premium-affiliate-shell .publisher-account-settings { flex: 0 0 auto; margin-top: 0; }
.premium-sidebar-resize { position: absolute; z-index: 50; top: 0; right: -3px; bottom: 0; width: 7px; cursor: col-resize; }
.premium-sidebar-resize::after { position: absolute; top: 45%; right: 2px; width: 2px; height: 50px; border-radius: 4px; background: rgba(116,231,224,.2); content: ''; opacity: 0; transition: opacity .18s ease,background .18s ease; }
.premium-sidebar:hover .premium-sidebar-resize::after,.premium-sidebar-resize:hover::after { opacity: 1; background: rgba(116,231,224,.65); }
body.premium-sidebar-resizing,body.premium-sidebar-resizing * { cursor: col-resize !important; user-select: none !important; }
.premium-mobile-backdrop { display: none; }
@media(max-width:900px){
  body.premium-portal-active .premium-affiliate-shell { grid-template-columns: minmax(0,1fr); }
  body.premium-portal-active .premium-affiliate-shell .premium-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 90; width: 260px; max-width: 260px; transform: translateX(-105%); transition: transform .2s ease; box-shadow: 18px 0 42px rgba(0,0,0,.32); }
  body.premium-portal-active.premium-sidebar-open .premium-affiliate-shell .premium-sidebar { transform: translateX(0); }
  body.premium-portal-active .premium-mobile-backdrop { position: fixed; inset: 0; z-index: 80; border: 0; padding: 0; background: rgba(2,8,23,.68); cursor: pointer; }
  body.premium-portal-active.premium-sidebar-open .premium-mobile-backdrop { display: block; }
  .premium-sidebar-resize { display: none; }
}

/* Light publisher presentation: a compact contact tile inspired by modern
   network dashboards. Keep the dark theme treatment above unchanged. */
body.premium-portal-active.premium-light .premium-affiliate-shell {
  --premium-sidebar-width: 248px;
  grid-template-columns: minmax(216px,var(--premium-sidebar-width)) minmax(0,1fr);
}
body.premium-portal-active.premium-light .premium-affiliate-shell .premium-sidebar {
  width: var(--premium-sidebar-width);
  max-width: var(--premium-sidebar-width);
  padding: 20px 14px 14px;
  background: #f8fafc;
  border-right-color: #dfe7f0;
  box-shadow: 10px 0 26px rgba(62,87,116,.08);
}
body.premium-portal-active.premium-light .premium-affiliate-shell .publisher-manager {
  margin: 17px 8px 12px;
  padding: 14px 12px 13px;
  border: 0;
  border-radius: 9px;
  background: #eef3f8;
  box-shadow: none;
  color: #34445d;
}
body.premium-portal-active.premium-light .premium-affiliate-shell .publisher-manager-head {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  text-align: left;
}
body.premium-portal-active.premium-light .premium-affiliate-shell .publisher-manager-head > span:last-child {
  display: block;
  min-width: 0;
  width: auto;
}
body.premium-portal-active.premium-light .premium-affiliate-shell .publisher-manager-avatar {
  flex-basis: 41px;
  width: 41px;
  height: 41px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(145deg,#dde7f4,#c7d8eb);
  color: #425a78;
  font-size: 12px;
  box-shadow: inset 0 1px #fff,0 4px 10px rgba(69,98,130,.15);
}
body.premium-portal-active.premium-light .premium-affiliate-shell .publisher-manager-head small {
  margin: 0 0 3px;
  color: #71849c;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: none;
}
body.premium-portal-active.premium-light .premium-affiliate-shell .publisher-manager-head strong {
  margin: 0;
  color: #30425c;
  font-size: 13px;
  font-weight: 750;
}
body.premium-portal-active.premium-light .premium-affiliate-shell .publisher-manager-head em { display: none; }
body.premium-portal-active.premium-light .premium-affiliate-shell .publisher-manager-actions {
  display: flex;
  justify-content: flex-start;
  gap: 9px;
  margin-top: 13px;
}
body.premium-portal-active.premium-light .premium-affiliate-shell .publisher-manager-actions .manager-contact {
  display: grid;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  min-height: 22px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #dbe5f2;
  box-shadow: inset 0 1px #fff,0 2px 5px rgba(54,79,109,.12);
  color: #55718f;
}
body.premium-portal-active.premium-light .premium-affiliate-shell .publisher-manager-actions .manager-contact:hover { transform: translateY(-1px); background: #fff; border: 0; color: #2e65c7; }
body.premium-portal-active.premium-light .premium-affiliate-shell .publisher-manager-actions .manager-contact b { display: none; }
body.premium-portal-active.premium-light .premium-affiliate-shell .publisher-manager-actions .manager-contact span { width: 14px; height: 14px; }
body.premium-portal-active.premium-light .premium-affiliate-shell .publisher-manager-actions .manager-contact svg { width: 14px; height: 14px; }
body.premium-portal-active.premium-light .premium-affiliate-shell .publisher-manager-actions .manager-contact-support { background: #f6c7e2; color: #d3378b; }
body.premium-portal-active.premium-light .premium-affiliate-shell .publisher-manager-actions .manager-contact-telegram { background: #c6ddff; color: #397be8; }
body.premium-portal-active.premium-light .premium-affiliate-shell .publisher-manager-actions .manager-contact-whatsapp { background: #c9f0db; color: #15945a; }
body.premium-portal-active.premium-light .premium-affiliate-shell .publisher-manager-actions .manager-contact-email { background: #d7e0ff; color: #526ee1; }
body.premium-portal-active.premium-light .premium-affiliate-shell .publisher-account-settings {
  margin-top: 12px;
  padding: 15px 8px 0;
  border-top-color: #dfe7f0;
  color: #34445d;
}
@media(max-width:900px){body.premium-portal-active.premium-light .premium-affiliate-shell{grid-template-columns:minmax(0,1fr)}body.premium-portal-active.premium-light .premium-affiliate-shell .premium-sidebar{width:260px;max-width:260px}}

/* Final dark-theme Account Manager treatment: a compact support concierge
   tile with clear hierarchy and no provider/control noise. */
body.premium-portal-active:not(.premium-light) .premium-affiliate-shell .publisher-manager {
  position: relative;
  overflow: hidden;
  margin: 20px 0 13px;
  padding: 17px 13px 14px;
  border: 1px solid rgba(108,235,220,.28);
  border-radius: 16px;
  background: radial-gradient(circle at 50% -20%,rgba(93,142,255,.3),transparent 48%),linear-gradient(155deg,#17294c,#0a142d 76%);
  box-shadow: 0 17px 34px rgba(0,0,0,.3),inset 0 1px rgba(255,255,255,.07);
}
body.premium-portal-active:not(.premium-light) .premium-affiliate-shell .publisher-manager::before {
  position: absolute;
  top: -42px;
  left: 50%;
  width: 130px;
  height: 130px;
  border: 1px solid rgba(111,237,221,.17);
  border-radius: 50%;
  content: '';
  transform: translateX(-50%);
  pointer-events: none;
}
body.premium-portal-active:not(.premium-light) .premium-affiliate-shell .publisher-manager-head { position: relative; z-index: 1; }
body.premium-portal-active:not(.premium-light) .premium-affiliate-shell .publisher-manager-avatar {
  width: 62px;
  height: 62px;
  flex-basis: 62px;
  border: 2px solid #75f4dc;
  border-radius: 21px;
  background: linear-gradient(145deg,#5f91ff,#a873ff 72%);
  box-shadow: 0 0 0 5px rgba(104,151,255,.13),0 0 27px rgba(89,224,215,.24);
  font-size: 17px;
}
body.premium-portal-active:not(.premium-light) .premium-affiliate-shell .publisher-manager-avatar img { border-radius: 19px; }
body.premium-portal-active:not(.premium-light) .premium-affiliate-shell .publisher-manager-head small {
  margin-top: 8px;
  color: #8debdc;
  font-size: 8px;
  letter-spacing: .13em;
}
body.premium-portal-active:not(.premium-light) .premium-affiliate-shell .publisher-manager-head strong {
  margin-top: 5px;
  color: #f4f8ff;
  font-size: 14px;
  font-weight: 820;
}
body.premium-portal-active:not(.premium-light) .premium-affiliate-shell .publisher-manager-head em {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 7px;
  padding: 4px 8px;
  border: 1px solid rgba(103,235,188,.22);
  border-radius: 99px;
  background: rgba(44,207,155,.1);
  color: #9beed2;
  font-size: 8px;
}
body.premium-portal-active:not(.premium-light) .premium-affiliate-shell .publisher-manager-actions {
  position: relative;
  z-index: 1;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 7px;
  margin-top: 15px;
}
body.premium-portal-active:not(.premium-light) .premium-affiliate-shell .publisher-manager-actions .manager-contact {
  min-height: 32px;
  border: 1px solid rgba(146,181,230,.23);
  border-radius: 9px;
  background: rgba(255,255,255,.045);
  color: #cad7ea;
  font-size: 9px;
  font-weight: 750;
}
body.premium-portal-active:not(.premium-light) .premium-affiliate-shell .publisher-manager-actions .manager-contact:hover {
  border-color: rgba(111,237,221,.7);
  background: rgba(111,237,221,.1);
  box-shadow: 0 5px 14px rgba(80,220,205,.12);
}
body.premium-portal-active:not(.premium-light) .premium-affiliate-shell .publisher-manager-actions .manager-contact span { width: 16px; height: 16px; }
body.premium-portal-active:not(.premium-light) .premium-affiliate-shell .publisher-manager-actions .manager-contact svg { width: 15px; height: 15px; }
body.premium-portal-active:not(.premium-light) .premium-affiliate-shell .publisher-manager-actions .manager-contact-support { color: #ffc0e3; }
body.premium-portal-active:not(.premium-light) .premium-affiliate-shell .publisher-manager-actions .manager-contact-telegram { color: #a8ceff; }
body.premium-portal-active:not(.premium-light) .premium-affiliate-shell .publisher-manager-actions .manager-contact-whatsapp { color: #9af1c8; }
body.premium-portal-active:not(.premium-light) .premium-affiliate-shell .publisher-manager-actions .manager-contact-email { color: #d4b9ff; }
body.premium-portal-active:not(.premium-light) .premium-affiliate-shell .publisher-manager-actions {
  display: flex;
  justify-content: center;
  grid-template-columns: none;
  gap: 9px;
}
body.premium-portal-active:not(.premium-light) .premium-affiliate-shell .publisher-manager-actions .manager-contact {
  display: grid;
  flex: 0 0 31px;
  width: 31px;
  height: 31px;
  min-height: 31px;
  padding: 0;
  place-items: center;
  border-radius: 50%;
}
body.premium-portal-active:not(.premium-light) .premium-affiliate-shell .publisher-manager-actions .manager-contact b { display: none; }
body.premium-portal-active:not(.premium-light) .premium-affiliate-shell .publisher-manager-actions .manager-contact span { width: 15px; height: 15px; }
/* Protected-route boot surface: keep reloads private and visually stable while
   Firebase restores the member session. It is intentionally lightweight so it
   paints before the live dashboard and never exposes the public hero. */
body.member-route-boot { background: var(--premium-bg, #070b18); }
body.member-route-boot > .topbar,
body.member-route-boot > .site-footer { display: none !important; }
body.member-route-boot #app { width: 100%; max-width: none; min-height: 100vh; min-height: 100dvh; margin: 0; padding: 0; }
.member-boot-shell { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: 248px minmax(0, 1fr); background: #070b18; color: #eaf2ff; }
.member-boot-sidebar { min-height: 100vh; padding: 18px 15px; border-right: 1px solid rgba(120,160,220,.16); background: linear-gradient(180deg,#0d1831,#090e20 72%); }
.member-boot-brand { display: flex; align-items: center; gap: 10px; height: 48px; margin-bottom: 30px; }
.member-boot-brand i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: linear-gradient(135deg,#60e3c2,#4a8dff); color: #071426; font-size: 10px; font-style: normal; font-weight: 950; }
.member-boot-brand span,.member-boot-nav span,.member-boot-manager b,.member-boot-manager i,.member-boot-heading span,.member-boot-heading b,.member-boot-main header > span,.member-boot-main header i,.member-boot-metrics span,.member-boot-metrics b,.member-boot-panel span { display: block; border-radius: 999px; background: linear-gradient(100deg,#1b2c4c 15%,#28466d 45%,#1b2c4c 75%); background-size: 220% 100%; animation: member-boot-shimmer 1.25s linear infinite; }
.member-boot-brand span { width: 112px; height: 11px; }
.member-boot-nav { display: grid; gap: 13px; }
.member-boot-nav span { width: 76%; height: 11px; }
.member-boot-nav span:nth-child(2n) { width: 61%; }
.member-boot-manager { margin-top: auto; padding-top: 30px; display: grid; gap: 10px; }
.member-boot-manager > span { width: 54px; height: 54px; border-radius: 17px; background: linear-gradient(135deg,#1d3458,#253e70); }
.member-boot-manager b { width: 105px; height: 10px; }
.member-boot-manager i { width: 78px; height: 8px; }
.member-boot-main { min-width: 0; padding: 0 28px 40px; }
.member-boot-main header { min-height: 68px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(120,160,220,.12); }
.member-boot-main header > span { width: 150px; height: 11px; }
.member-boot-main header > div { display: flex; gap: 8px; }
.member-boot-main header i { width: 30px; height: 30px; border-radius: 9px; }
.member-boot-heading { display: grid; gap: 12px; margin: 34px 0 22px; }
.member-boot-heading span { width: min(320px,65%); height: 25px; border-radius: 8px; }
.member-boot-heading b { width: min(460px,85%); height: 10px; }
.member-boot-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.member-boot-metrics article { min-height: 92px; padding: 15px; border: 1px solid rgba(120,160,220,.14); border-radius: 7px; background: #121d33; }
.member-boot-metrics article i { display: block; width: 27px; height: 27px; margin-bottom: 13px; border-radius: 8px; background: #1d3150; }
.member-boot-metrics span { width: 65px; height: 7px; margin-bottom: 8px; }
.member-boot-metrics b { width: 48px; height: 12px; }
.member-boot-panel { display: grid; gap: 17px; min-height: 270px; margin-top: 18px; padding: 24px; border: 1px solid rgba(120,160,220,.14); border-radius: 7px; background: #121d33; }
.member-boot-panel span { height: 10px; }
.member-boot-panel span:nth-child(1) { width: 24%; height: 15px; }
.member-boot-panel span:nth-child(2) { width: 78%; }
.member-boot-panel span:nth-child(3) { width: 92%; }
.member-boot-panel span:nth-child(4) { width: 68%; }
@keyframes member-boot-shimmer { 0% { background-position: 220% 0; } 100% { background-position: -220% 0; } }
@media(max-width:760px) {
  .member-boot-shell { grid-template-columns: 1fr; }
  .member-boot-sidebar { min-height: 0; padding: 12px 14px; border-right: 0; border-bottom: 1px solid rgba(120,160,220,.16); }
  .member-boot-brand { margin: 0; }
  .member-boot-nav,.member-boot-manager { display: none; }
  .member-boot-main { padding: 0 14px 30px; }
  .member-boot-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
