/* ==========================================================================
   YTMAXING PARTNER PROGRAM — v2.1.0 styling
   Clean, professional, dark. Works on phones, tablets, laptops and large desktops.
   Dashboard (.ytmx-pp-wrap) + public landing (.ytmx-pp-public) share one design system.
   ========================================================================== */

.ytmx-pp-wrap,
.ytmx-pp-public{
  --pp-bg:#07090d;
  --pp-card:#0d1118;
  --pp-card2:#131923;
  --pp-border:rgba(255,255,255,.09);
  --pp-border-strong:rgba(255,255,255,.16);
  --pp-text:#f4f6f9;
  --pp-muted:#9aa5b4;
  --pp-red:var(--red,#f52e3d);
  --pp-rgb:var(--red-rgb,245,46,61);
  --pp-green:#35d37a;
  --pp-radius:20px;
  box-sizing:border-box;
  color:var(--pp-text);
  font-family:inherit;
  -webkit-text-size-adjust:100%;
}
.ytmx-pp-wrap *,
.ytmx-pp-public *{ box-sizing:border-box; }
.ytmx-pp-wrap a,
.ytmx-pp-public a{ text-decoration:none; }

/* ---------- Page container ---------- */
.ytmx-pp-wrap{
  width:100%; max-width:1180px; margin:0 auto;
  padding:clamp(16px,3vw,32px) clamp(14px,3vw,28px) 72px;
  background:transparent; border:0; border-radius:0;
}

/* ---------- Shared bits ---------- */
.ytmx-pp-eyebrow{
  display:inline-flex; align-items:center; padding:8px 15px; border-radius:999px;
  background:rgba(var(--pp-rgb),.13); border:1px solid rgba(var(--pp-rgb),.22);
  color:#ff7a89; font-size:12px; font-weight:800; letter-spacing:.1em; line-height:1.2;
}
.ytmx-pp-button{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  min-height:50px; padding:0 24px; border:0; border-radius:14px;
  background:linear-gradient(135deg,#ff4452 0%,var(--pp-red) 55%,#c91c2b 100%);
  color:#fff !important; font-family:inherit; font-size:15px; font-weight:750; line-height:1;
  text-decoration:none; cursor:pointer; white-space:nowrap;
  box-shadow:0 10px 26px rgba(var(--pp-rgb),.28);
  transition:transform .18s ease, filter .18s ease, box-shadow .18s ease;
}
.ytmx-pp-button:hover{ filter:brightness(1.08); transform:translateY(-1px); }
.ytmx-pp-button:active{ transform:translateY(0) scale(.99); }
.ytmx-pp-button.copied{ background:#1f9d5c; box-shadow:0 10px 26px rgba(31,157,92,.3); }
.ytmx-pp-button.secondary{ background:var(--pp-card2); border:1px solid var(--pp-border-strong); box-shadow:none; }
.ytmx-pp-button:disabled{ opacity:.4; cursor:not-allowed; transform:none; filter:none; }
.ytmx-pp-wrap input:focus-visible,
.ytmx-pp-wrap select:focus-visible,
.ytmx-pp-wrap button:focus-visible,
.ytmx-pp-public a:focus-visible{ outline:2px solid var(--pp-red); outline-offset:2px; }

/* ==========================================================================
   DASHBOARD
   ========================================================================== */

/* ---------- Heading card ---------- */
.ytmx-pp-heading{
  display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:28px;
  padding:clamp(22px,4vw,46px);
  border:1px solid var(--pp-border); border-radius:26px;
  background:
    radial-gradient(520px 260px at 100% 0%, rgba(var(--pp-rgb),.18), transparent 65%),
    linear-gradient(145deg,#161c27 0%,#0b0f15 100%);
  box-shadow:0 24px 60px rgba(0,0,0,.32);
}
.ytmx-pp-heading h1{
  max-width:760px; margin:18px 0 12px; color:var(--pp-text);
  font-size:clamp(28px,4.6vw,50px); line-height:1.08; letter-spacing:-.035em; font-weight:850;
}
.ytmx-pp-heading h1 em{ color:var(--pp-red); font-style:normal; }
.ytmx-pp-heading p{ max-width:660px; margin:0; color:var(--pp-muted); font-size:clamp(15px,1.8vw,18px); line-height:1.65; }
.ytmx-pp-rate{
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px;
  min-width:160px; min-height:150px; padding:18px 22px; border-radius:22px;
  background:rgba(var(--pp-rgb),.1); border:1px solid rgba(var(--pp-rgb),.3);
}
.ytmx-pp-rate strong{ font-size:clamp(40px,5vw,54px); line-height:1; color:var(--pp-red); letter-spacing:-.03em; }
.ytmx-pp-rate span{ max-width:130px; text-align:center; font-size:10.5px; line-height:1.4; letter-spacing:.12em; color:var(--pp-muted); font-weight:800; }

.ytmx-pp-notice{
  margin:18px 0 0; padding:16px 18px; border-radius:14px; font-size:15px; line-height:1.5;
  background:rgba(53,211,122,.09); border:1px solid rgba(53,211,122,.3); color:var(--pp-text);
}

/* ---------- Referral link card ---------- */
.ytmx-pp-link-card{
  margin-top:20px; padding:clamp(18px,3vw,26px);
  border:1px solid var(--pp-border); border-radius:var(--pp-radius);
  background:linear-gradient(160deg,#151b26,#0d1118);
}
.ytmx-pp-link-label{ margin:0 0 12px; font-size:11.5px; letter-spacing:.14em; color:var(--pp-muted); font-weight:800; }
.ytmx-pp-link-row{ display:flex; gap:10px; align-items:stretch; }
.ytmx-pp-link-row input{
  flex:1; min-width:0; width:100%; height:52px; padding:0 16px !important;
  background:#080b10 !important; color:#f0f2f7 !important;
  border:1px solid var(--pp-border-strong) !important; border-radius:14px !important;
  font-size:16px !important; font-weight:600; letter-spacing:.01em; box-shadow:none !important;
  text-overflow:ellipsis; overflow:hidden; white-space:nowrap;
}
.ytmx-pp-link-row .ytmx-pp-button{ flex:0 0 auto; min-width:140px; height:52px; }
.ytmx-pp-link-card small{ display:block; margin-top:14px; color:var(--pp-muted); font-size:13.5px; line-height:1.6; }
.ytmx-pp-link-card small b{ color:var(--pp-text); }
.ytmx-pp-link-card.compact{ margin:0; }
.ytmx-pp-link-card.compact p{ margin:14px 0 0; color:var(--pp-muted); font-size:14px; line-height:1.6; }

/* ---------- Info pills ---------- */
.ytmx-pp-pills{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin:14px 0 40px; }
.ytmx-pp-pills span{
  display:flex; align-items:center; gap:10px; min-height:48px; padding:12px 16px; border-radius:14px;
  background:var(--pp-card); border:1px solid var(--pp-border); color:#c3cad5; font-size:14px; line-height:1.4;
}
.ytmx-pp-pills span::before{
  content:"✓"; flex:none; display:inline-flex; align-items:center; justify-content:center;
  width:22px; height:22px; border-radius:50%; background:rgba(53,211,122,.14); color:var(--pp-green); font-size:12px; font-weight:900;
}

/* ---------- Section title + date filter ---------- */
.ytmx-pp-section-title{
  display:flex; align-items:flex-end; justify-content:space-between; gap:18px 24px; flex-wrap:wrap;
  margin:0 0 18px; scroll-margin-top:130px;
}
.ytmx-pp-section-title h2,
.ytmx-pp-payout h2{ margin:0 0 6px; color:var(--pp-text); font-size:clamp(22px,3vw,28px); letter-spacing:-.02em; font-weight:850; }
.ytmx-pp-section-title p,
.ytmx-pp-payout p{ margin:0; color:var(--pp-muted); font-size:15px; line-height:1.55; }

.ytmx-pp-date{
  display:flex; align-items:flex-end; gap:10px; flex-wrap:wrap;
  padding:12px; border:1px solid var(--pp-border); border-radius:16px; background:var(--pp-card);
}
.ytmx-pp-date-field{ display:flex; flex-direction:column; gap:6px; min-width:0; }
.ytmx-pp-date-field label{ color:var(--pp-muted); font-size:11.5px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; }
.ytmx-pp-date input[type="date"]{
  -webkit-appearance:none; appearance:none; color-scheme:dark;
  width:100%; min-width:150px; height:46px; padding:0 12px !important; margin:0;
  background:#080b10 !important; color:var(--pp-text) !important;
  border:1px solid var(--pp-border-strong) !important; border-radius:12px !important;
  font-family:inherit; font-size:15px; box-shadow:none !important;
}
.ytmx-pp-date-arrow{ align-self:flex-end; height:46px; display:flex; align-items:center; color:var(--pp-dim,#6f7c8b); }
.ytmx-pp-date-apply{
  height:46px; padding:0 22px; border:0; border-radius:12px; cursor:pointer;
  background:var(--pp-red); color:#fff; font-family:inherit; font-size:15px; font-weight:750;
}
.ytmx-pp-date-apply:hover{ filter:brightness(1.1); }
.ytmx-pp-date-note{
  margin:-4px 0 16px; padding:12px 14px; border-radius:12px; font-size:13.5px; line-height:1.5;
  background:rgba(255,180,60,.09); border:1px solid rgba(255,180,60,.3); color:#f1c57d;
}

/* ---------- Stat cards ---------- */
.ytmx-pp-stat-grid{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; }
.ytmx-pp-stat{
  min-width:0; padding:clamp(16px,2.2vw,24px); border:1px solid var(--pp-border); border-radius:var(--pp-radius);
  background:linear-gradient(160deg,#121823,#0b0f15);
}
.ytmx-pp-stat > span{ display:block; margin-bottom:14px; color:var(--pp-muted); font-size:14px; font-weight:600; line-height:1.35; }
.ytmx-pp-stat strong{ display:block; font-size:clamp(24px,2.8vw,34px); line-height:1.15; font-weight:850; letter-spacing:-.02em; overflow-wrap:anywhere; }
.ytmx-pp-stat small{ display:block; margin-top:10px; color:var(--pp-muted); font-size:12.5px; line-height:1.5; }
.ytmx-pp-stat.highlight{
  background:radial-gradient(260px 140px at 100% 0%,rgba(var(--pp-rgb),.2),transparent 70%),linear-gradient(160deg,#1b1015,#0e0a0c);
  border-color:rgba(var(--pp-rgb),.38);
}
.ytmx-pp-stat.highlight strong{ color:var(--pp-red); }

/* ---------- Earnings status ---------- */
.ytmx-pp-status-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(170px,1fr)); gap:12px; margin:14px 0 36px; }
.ytmx-pp-status-grid > div{
  padding:16px 18px; border:1px solid var(--pp-border); border-radius:16px; background:var(--pp-card);
  color:var(--pp-muted); font-size:13.5px; line-height:1.4;
}
.ytmx-pp-status-grid strong{ display:block; margin-top:10px; color:var(--pp-text); font-size:21px; font-weight:800; overflow-wrap:anywhere; }
.ytmx-pp-status-grid .dot{ display:inline-block; width:9px; height:9px; margin-right:8px; border-radius:50%; background:#d99a23; }
.ytmx-pp-status-grid .approved{ background:#2f80ff; }
.ytmx-pp-status-grid .paid{ background:#36ad52; }
.ytmx-pp-status-grid .reversed{ background:#e0545a; }
.ytmx-pp-status-grid .requested{ background:#a06de0; }

/* ---------- Tabs + tables ---------- */
.ytmx-pp-tabs{ padding:clamp(14px,2.4vw,22px); border:1px solid var(--pp-border); border-radius:24px; background:var(--pp-card); }
.ytmx-pp-tab-buttons{
  display:flex; gap:6px; padding:5px; overflow-x:auto; -webkit-overflow-scrolling:touch; scrollbar-width:none;
  border:1px solid var(--pp-border); border-radius:14px; background:#080b10;
}
.ytmx-pp-tab-buttons::-webkit-scrollbar{ display:none; }
.ytmx-pp-tab-buttons button{
  flex:1 0 auto; min-width:max-content; min-height:44px; padding:0 18px; border:0; border-radius:10px;
  background:transparent; color:var(--pp-muted); font-family:inherit; font-size:14.5px; font-weight:700; white-space:nowrap; cursor:pointer;
  transition:background .18s ease,color .18s ease;
}
.ytmx-pp-tab-buttons button:hover{ color:var(--pp-text); }
.ytmx-pp-tab-buttons button.active{ background:var(--pp-red); color:#fff; box-shadow:0 6px 18px rgba(var(--pp-rgb),.3); }
.ytmx-pp-panel{ display:none; padding-top:18px; }
.ytmx-pp-panel.active{ display:block; }
.ytmx-pp-table-scroll{ overflow-x:auto; -webkit-overflow-scrolling:touch; }
.ytmx-pp-wrap table{ width:100%; min-width:620px; border-collapse:collapse; color:var(--pp-text); }
.ytmx-pp-wrap th,
.ytmx-pp-wrap td{ padding:15px 14px; border-bottom:1px solid var(--pp-border); text-align:left; font-size:14px; vertical-align:middle; }
.ytmx-pp-wrap th{ color:var(--pp-muted); font-size:12px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; white-space:nowrap; }
.ytmx-pp-wrap td.empty{ padding:40px 16px; text-align:center; color:var(--pp-muted); }
.ytmx-pp-status{ display:inline-block; padding:6px 11px; border-radius:999px; background:rgba(220,160,35,.13); color:#e9b653; font-size:11.5px; font-weight:700; white-space:nowrap; }
.ytmx-pp-status.approved{ background:rgba(47,128,255,.13); color:#7db1ff; }
.ytmx-pp-status.paid{ background:rgba(54,173,82,.13); color:#6fdc8c; }
.ytmx-pp-status.reversed,.ytmx-pp-status.rejected{ background:rgba(224,84,90,.13); color:#ff8c91; }
.ytmx-pp-status.requested{ background:rgba(154,112,220,.15); color:#c8a6ff; }
.ytmx-pp-status.processing,.ytmx-pp-status.review_required{ background:rgba(235,145,43,.15); color:#f2b86f; }
.ytmx-pp-status.cancelled{ background:rgba(140,145,158,.15); color:#b9c0cc; }
.ytmx-pp-cancel{ padding:8px 14px; border:1px solid rgba(var(--pp-rgb),.45); border-radius:10px; background:rgba(var(--pp-rgb),.09); color:#ff8f9a; font-family:inherit; font-size:13px; font-weight:700; cursor:pointer; }

/* ---------- Payout section ---------- */
.ytmx-pp-payout{
  display:grid; grid-template-columns:minmax(0,.85fr) minmax(0,1.4fr); gap:22px 30px; align-items:start;
  margin-top:24px; padding:clamp(18px,3vw,30px);
  border:1px solid var(--pp-border); border-radius:24px; background:var(--pp-card);
}
.ytmx-pp-method-form{ grid-column:2; grid-row:1 / span 2; display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:14px; }
.ytmx-pp-method-block{ padding:16px; border:1px solid var(--pp-border); border-radius:16px; background:rgba(255,255,255,.02); }
.ytmx-pp-method-block h3{ margin:0 0 14px; color:var(--pp-text); font-size:16px; }
.ytmx-pp-method-block label{ display:block; margin:0 0 12px; color:var(--pp-muted); font-size:12.5px; font-weight:600; }
.ytmx-pp-method-block label:last-child{ margin-bottom:0; }
.ytmx-pp-method-block input,
.ytmx-pp-request-form select{
  display:block; width:100%; min-height:46px; margin-top:7px; padding:10px 13px;
  background:#080b10 !important; color:var(--pp-text) !important;
  border:1px solid var(--pp-border-strong) !important; border-radius:12px !important;
  font-family:inherit; font-size:16px; box-shadow:none !important;
}
.ytmx-pp-method-form > .ytmx-pp-button{ grid-column:1 / -1; }
.ytmx-pp-request-form{ grid-column:1; grid-row:2; display:flex; flex-direction:column; gap:12px; align-self:end; }
.ytmx-pp-request-form label{ color:var(--pp-muted); font-size:13px; font-weight:600; }
.ytmx-pp-request-form small{ color:var(--pp-muted); font-size:13px; line-height:1.55; }
.ytmx-pp-footnote{ margin:18px 4px 0; color:var(--pp-muted); font-size:12.5px; line-height:1.7; }

/* ---------- "Verify your email" card ---------- */
.ytmx-pp-verify{
  max-width:860px; margin:40px auto; padding:clamp(24px,5vw,48px);
  background:linear-gradient(160deg,#151b26,#0b0f15); border:1px solid var(--pp-border); border-radius:26px;
}
.ytmx-pp-verify h1{ margin:18px 0 12px; color:var(--pp-text); font-size:clamp(26px,4vw,40px); line-height:1.12; letter-spacing:-.03em; }
.ytmx-pp-verify p{ max-width:720px; margin:0 0 24px; color:var(--pp-muted); font-size:16px; line-height:1.7; }

/* ==========================================================================
   PUBLIC LANDING (logged-out visitors)
   ========================================================================== */
.ytmx-pp-public{
  width:100%; max-width:1200px; margin:0 auto; padding:clamp(14px,3vw,28px) clamp(14px,3vw,28px) 64px; background:transparent;
}
.ytmx-pp-hero{
  display:grid; grid-template-columns:minmax(0,1.35fr) minmax(0,.75fr); gap:clamp(24px,4vw,48px); align-items:center;
  padding:clamp(26px,5vw,72px); border:1px solid var(--pp-border); border-radius:28px;
  background:radial-gradient(560px 300px at 100% 0%,rgba(var(--pp-rgb),.2),transparent 62%),linear-gradient(145deg,#171d29,#0a0d12);
  box-shadow:0 28px 70px rgba(0,0,0,.35);
}
.ytmx-pp-hero h1{ margin:22px 0 16px; color:var(--pp-text); font-size:clamp(34px,5.6vw,64px); line-height:1.04; letter-spacing:-.045em; font-weight:850; }
.ytmx-pp-hero h1 em{ font-style:normal; color:var(--pp-red); }
.ytmx-pp-hero-copy > p{ max-width:660px; margin:0; color:var(--pp-muted); font-size:clamp(15px,1.8vw,19px); line-height:1.7; }
.ytmx-pp-hero-actions{ display:flex; align-items:center; gap:18px 24px; flex-wrap:wrap; margin-top:28px; }
.ytmx-pp-login{ color:#e4e8ee; font-weight:700; }
.ytmx-pp-login:hover{ color:var(--pp-red); }
.ytmx-pp-trust-line{ display:flex; gap:10px 20px; flex-wrap:wrap; margin-top:24px; color:#aab2be; font-size:13px; }
.ytmx-pp-hero-card{ padding:clamp(20px,3vw,30px); border:1px solid rgba(var(--pp-rgb),.3); border-radius:24px; background:rgba(6,8,12,.72); box-shadow:0 24px 70px rgba(0,0,0,.3); }
.ytmx-pp-hero-card > span{ display:block; color:var(--pp-muted); font-size:11.5px; font-weight:800; letter-spacing:.14em; }
.ytmx-pp-hero-card > strong{ display:block; margin:4px 0; color:var(--pp-red); font-size:clamp(68px,8vw,104px); line-height:1.05; letter-spacing:-.06em; }
.ytmx-pp-hero-card > strong small{ font-size:.5em; }
.ytmx-pp-hero-card > p{ margin:0 0 22px; color:var(--pp-muted); font-size:14.5px; line-height:1.6; }
.ytmx-pp-hero-card-foot{ display:flex; justify-content:space-between; gap:12px; padding:13px 0; border-top:1px solid var(--pp-border); color:#c8cdd6; font-size:13.5px; }
.ytmx-pp-hero-card-foot b{ color:#fff; }

.ytmx-pp-public-section{ padding:clamp(36px,6vw,76px) clamp(4px,2vw,20px); }
.ytmx-pp-section-heading{ max-width:760px; margin:0 auto 34px; text-align:center; }
.ytmx-pp-section-heading h2,
.ytmx-pp-payout-info h2,
.ytmx-pp-final-cta h2{ margin:16px 0 12px; color:var(--pp-text); font-size:clamp(26px,4vw,42px); line-height:1.12; letter-spacing:-.035em; font-weight:850; }
.ytmx-pp-section-heading p,
.ytmx-pp-payout-info p,
.ytmx-pp-final-cta p{ margin:0; color:var(--pp-muted); font-size:16px; line-height:1.7; }
.ytmx-pp-steps,
.ytmx-pp-commission-grid{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.ytmx-pp-steps article,
.ytmx-pp-commission-grid article{ padding:clamp(20px,2.6vw,28px); border:1px solid var(--pp-border); border-radius:20px; background:linear-gradient(160deg,#121823,#0b0f15); }
.ytmx-pp-steps article > span{ display:inline-flex; align-items:center; justify-content:center; width:44px; height:44px; border-radius:13px; background:rgba(var(--pp-rgb),.13); color:#ff7a89; font-weight:800; }
.ytmx-pp-steps h3,
.ytmx-pp-commission-grid h3{ margin:18px 0 8px; color:var(--pp-text); font-size:18px; }
.ytmx-pp-steps p,
.ytmx-pp-commission-grid p{ margin:0; color:var(--pp-muted); font-size:14.5px; line-height:1.65; }
.ytmx-pp-commission{ border-top:1px solid var(--pp-border); border-bottom:1px solid var(--pp-border); background:rgba(255,255,255,.012); }
.ytmx-pp-commission-grid .check,
.ytmx-pp-commission-grid .cross{ display:inline-flex; align-items:center; justify-content:center; width:32px; height:32px; border-radius:50%; background:rgba(54,173,82,.15); color:#6fdc8c; font-weight:800; }
.ytmx-pp-commission-grid .cross{ background:rgba(224,84,90,.13); color:#ff8c91; }
.ytmx-pp-commission-grid article > strong{ display:block; margin:12px 0 8px; color:var(--pp-red); font-size:42px; line-height:1.1; }
.ytmx-pp-commission-grid article.excluded > strong{ color:#7e8693; }
.ytmx-pp-payout-info{ display:grid; grid-template-columns:minmax(0,1fr) minmax(0,.7fr); gap:clamp(24px,4vw,44px); align-items:center; }
.ytmx-pp-methods{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.ytmx-pp-methods span{ display:flex; align-items:center; justify-content:center; min-height:62px; padding:8px; border:1px solid var(--pp-border); border-radius:14px; background:var(--pp-card); font-weight:750; text-align:center; }
.ytmx-pp-methods small{ grid-column:1 / -1; color:var(--pp-muted); font-size:13.5px; line-height:1.5; }
.ytmx-pp-faq{ max-width:920px; margin:0 auto; }
.ytmx-pp-faq details{ padding:18px 4px; border-bottom:1px solid var(--pp-border); }
.ytmx-pp-faq summary{ cursor:pointer; color:var(--pp-text); font-weight:700; font-size:16px; line-height:1.5; }
.ytmx-pp-faq details p{ margin:12px 0 0; color:var(--pp-muted); font-size:15px; line-height:1.7; }
.ytmx-pp-final-cta{ padding:clamp(30px,6vw,64px); border:1px solid rgba(var(--pp-rgb),.28); border-radius:26px; text-align:center; background:linear-gradient(135deg,rgba(var(--pp-rgb),.13),rgba(255,255,255,.02)); }
.ytmx-pp-final-cta p{ max-width:600px; margin:0 auto 24px; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

/* Large tablets / small laptops */
@media (max-width:1100px){
  .ytmx-pp-stat-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); }
}

/* Tablets */
@media (max-width:900px){
  .ytmx-pp-heading{ grid-template-columns:1fr; gap:20px; }
  .ytmx-pp-rate{ flex-direction:row; justify-content:flex-start; gap:14px; min-width:0; min-height:0; width:max-content; max-width:100%; padding:12px 20px; border-radius:16px; }
  .ytmx-pp-rate strong{ font-size:34px; }
  .ytmx-pp-rate span{ max-width:none; text-align:left; }
  .ytmx-pp-payout{ grid-template-columns:1fr; }
  .ytmx-pp-method-form,
  .ytmx-pp-request-form{ grid-column:1; grid-row:auto; }
  .ytmx-pp-request-form{ align-self:stretch; }
  .ytmx-pp-hero{ grid-template-columns:1fr; }
  .ytmx-pp-hero-card{ max-width:480px; }
  .ytmx-pp-payout-info{ grid-template-columns:1fr; }
  .ytmx-pp-methods{ max-width:520px; }
  .ytmx-pp-steps,
  .ytmx-pp-commission-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .ytmx-pp-section-title{ scroll-margin-top:110px; }
}

/* Phones: tables become cards, everything stacks */
@media (max-width:680px){
  .ytmx-pp-wrap{ padding:12px 12px 56px; }
  .ytmx-pp-heading{ padding:22px 18px; border-radius:20px; }
  .ytmx-pp-pills{ grid-template-columns:1fr; margin-bottom:30px; }
  .ytmx-pp-link-row{ flex-direction:column; }
  .ytmx-pp-link-row .ytmx-pp-button{ width:100%; min-width:0; }
  .ytmx-pp-section-title{ display:block; }
  .ytmx-pp-date{ width:100%; margin-top:16px; display:grid; grid-template-columns:1fr 1fr; gap:10px; }
  .ytmx-pp-date-arrow{ display:none; }
  .ytmx-pp-date input[type="date"]{ min-width:0; }
  .ytmx-pp-date-apply{ grid-column:1 / -1; width:100%; }
  .ytmx-pp-stat-grid{ gap:10px; }
  .ytmx-pp-stat{ padding:16px; }
  .ytmx-pp-stat > span{ margin-bottom:10px; }
  .ytmx-pp-status-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  .ytmx-pp-status-grid > div:last-child:nth-child(odd){ grid-column:1 / -1; }
  .ytmx-pp-tabs{ padding:12px; border-radius:20px; }
  .ytmx-pp-payout{ padding:18px 16px; border-radius:20px; }
  .ytmx-pp-method-form{ grid-template-columns:1fr; }

  .ytmx-pp-wrap table{ min-width:0; display:block; }
  .ytmx-pp-wrap thead{ display:none; }
  .ytmx-pp-wrap tbody{ display:grid; gap:12px; }
  .ytmx-pp-wrap tr{ display:block; padding:6px 16px; border:1px solid var(--pp-border); border-radius:16px; background:var(--pp-card2); }
  .ytmx-pp-wrap td{ display:flex; align-items:center; justify-content:space-between; gap:16px; padding:11px 0; border:0; border-bottom:1px dashed rgba(255,255,255,.09); text-align:right; overflow-wrap:anywhere; }
  .ytmx-pp-wrap td:last-child{ border-bottom:0; }
  .ytmx-pp-wrap td::before{ content:attr(data-label); flex:none; color:var(--pp-muted); font-size:12px; font-weight:700; letter-spacing:.05em; text-transform:uppercase; text-align:left; }
  .ytmx-pp-wrap td:empty{ display:none; }
  .ytmx-pp-wrap td.empty{ display:block; text-align:center; padding:28px 8px; }
  .ytmx-pp-wrap td.empty::before{ content:none; }

  .ytmx-pp-public{ padding:10px 10px 48px; }
  .ytmx-pp-hero{ padding:24px 18px; border-radius:22px; }
  .ytmx-pp-hero-actions{ flex-direction:column; align-items:stretch; }
  .ytmx-pp-hero-actions .ytmx-pp-button{ width:100%; }
  .ytmx-pp-login{ text-align:center; padding:6px 0; }
  .ytmx-pp-steps,
  .ytmx-pp-commission-grid{ grid-template-columns:1fr; }
  .ytmx-pp-methods{ grid-template-columns:1fr; }
  .ytmx-pp-methods small{ grid-column:1; }
  .ytmx-pp-public-section{ padding:38px 2px; }
  .ytmx-pp-final-cta{ padding:30px 18px; border-radius:20px; }
  .ytmx-pp-final-cta .ytmx-pp-button{ width:100%; }
  .ytmx-pp-verify{ margin:16px auto; }
  .ytmx-pp-verify .ytmx-pp-button{ width:100%; }
}

/* Very small phones */
@media (max-width:380px){
  .ytmx-pp-date{ grid-template-columns:1fr; }
  .ytmx-pp-stat strong{ font-size:22px; }
  .ytmx-pp-heading h1{ font-size:27px; }
}

/* Very large screens */
@media (min-width:1600px){
  .ytmx-pp-wrap{ max-width:1280px; }
  .ytmx-pp-public{ max-width:1280px; }
}

@media (prefers-reduced-motion:reduce){
  .ytmx-pp-button,.ytmx-pp-tab-buttons button{ transition:none; }
}


/* ==========================================================================
   v2.1.3 — Partner dashboard hero + shared header controls
   Scoped to the Partner Program page; no commission or payout UI changes.
   ========================================================================== */
body.page .ytmx-pp-wrap .ytmx-pp-heading{
  position:relative;
  isolation:isolate;
  grid-template-columns:minmax(0,1fr) minmax(190px,230px);
  align-items:center;
  gap:clamp(18px,3vw,34px);
  overflow:hidden;
  padding:clamp(24px,4vw,44px);
  border:1px solid rgba(255,255,255,.13);
  background:
    radial-gradient(480px 260px at 100% 0%,rgba(245,46,61,.22),transparent 68%),
    radial-gradient(360px 220px at 0% 100%,rgba(78,112,170,.12),transparent 72%),
    linear-gradient(145deg,#171c28 0%,#0b0f16 72%);
  box-shadow:0 24px 64px rgba(0,0,0,.38),inset 0 1px 0 rgba(255,255,255,.035);
}
body.page .ytmx-pp-wrap .ytmx-pp-heading > div:first-child{min-width:0;}
body.page .ytmx-pp-wrap .ytmx-pp-heading h1{
  margin:18px 0 12px;
  font-size:clamp(30px,4.5vw,48px);
  line-height:1.08;
  letter-spacing:-.045em;
  text-wrap:balance;
}
body.page .ytmx-pp-wrap .ytmx-pp-heading p{max-width:650px;}
body.page .ytmx-pp-wrap .ytmx-pp-rate{
  box-sizing:border-box;
  width:100%;
  min-width:0;
  min-height:156px;
  padding:20px 18px;
  gap:8px;
  border-radius:22px;
  background:linear-gradient(145deg,rgba(245,46,61,.16),rgba(245,46,61,.055));
  border:1px solid rgba(245,46,61,.38);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06),0 12px 32px rgba(0,0,0,.2);
}
body.page .ytmx-pp-wrap .ytmx-pp-rate strong{font-size:clamp(48px,5.4vw,62px);}
body.page .ytmx-pp-wrap .ytmx-pp-rate span{max-width:150px;font-size:10px;line-height:1.5;letter-spacing:.11em;}
body.page .ytm-header .ytm-header-actions{display:flex;align-items:center;gap:12px;}
body.page .ytm-header .ytm-header-profile{display:inline-flex;align-items:center;gap:9px;min-width:0;}
body.page .ytm-header .ytm-hamburger{flex:none;}
@media(max-width:900px){
  body.page .ytmx-pp-wrap .ytmx-pp-heading{grid-template-columns:minmax(0,1fr);gap:20px;}
  body.page .ytmx-pp-wrap .ytmx-pp-rate{width:100%;max-width:none;min-height:0;flex-direction:row;justify-content:flex-start;align-items:center;padding:14px 18px;border-radius:16px;}
  body.page .ytmx-pp-wrap .ytmx-pp-rate strong{font-size:42px;}
  body.page .ytmx-pp-wrap .ytmx-pp-rate span{max-width:none;text-align:left;}
}
@media(max-width:680px){
  body.page .ytmx-pp-wrap .ytmx-pp-heading{padding:22px 18px;border-radius:20px;}
  body.page .ytmx-pp-wrap .ytmx-pp-heading h1{font-size:clamp(27px,7vw,34px);line-height:1.12;}
  body.page .ytm-header .ytm-header-actions{gap:8px;}
  body.page .ytm-header .ytm-header-profile{display:inline-flex;padding:3px;border-radius:50%;}
  body.page .ytm-header .ytm-header-profile-meta{display:none;}
  body.page .ytm-header .ytm-header-avatar{width:38px;height:38px;}
}


/* ==========================================================================
   v2.1.4 — Fit-inside-the-box fixes (phones/tablets) + hide raw page title
   ========================================================================== */
/* the theme prints the raw page title ("partner-program") above the dashboard */
main:has(.ytmx-pp-wrap) > h1,
.ytm-section:has(.ytmx-pp-wrap) > h1,
.ytm-container:has(.ytmx-pp-wrap) > h1,
article:has(.ytmx-pp-wrap) > header .entry-title,
body:has(.ytmx-pp-wrap) h1.entry-title,
body:has(.ytmx-pp-wrap) h1.page-title{ display:none !important; }

.ytmx-pp-wrap,.ytmx-pp-public{ overflow-x:clip; }
.ytmx-pp-heading,.ytmx-pp-link-card,.ytmx-pp-stat,.ytmx-pp-tabs,.ytmx-pp-payout{ max-width:100%; min-width:0; }
.ytmx-pp-heading > *{ min-width:0; }
.ytmx-pp-heading h1{ overflow-wrap:anywhere; }

/* 60% box: label wraps instead of pushing the box out of the card */
body.page .ytmx-pp-wrap .ytmx-pp-rate{ max-width:100%; overflow:hidden; }
body.page .ytmx-pp-wrap .ytmx-pp-rate span{ min-width:0; overflow-wrap:anywhere; }
@media(max-width:900px){
  body.page .ytmx-pp-wrap .ytmx-pp-rate{ width:100%; gap:14px; }
  body.page .ytmx-pp-wrap .ytmx-pp-rate strong{ flex:0 0 auto; font-size:40px; }
  body.page .ytmx-pp-wrap .ytmx-pp-rate span{ flex:1 1 0; font-size:10.5px; letter-spacing:.09em; line-height:1.45; }
}
@media(max-width:680px){
  body.page .ytmx-pp-wrap .ytmx-pp-heading{ padding:22px 18px; }
  body.page .ytmx-pp-wrap .ytmx-pp-heading h1{ font-size:clamp(25px,7.2vw,32px); letter-spacing:-.035em; }
  .ytmx-pp-link-row input{ font-size:15px !important; }
  .ytmx-pp-link-row{ width:100%; }
  .ytmx-pp-link-row .ytmx-pp-button{ width:100%; }
}

/* ---------- v2.5 dashboard: period cards, 4 small boxes, chart ---------- */
.ytmx-pp-period-grid{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin:6px 0 12px; }
.ytmx-pp-period{
  padding:18px 20px; border:1px solid var(--pp-border); border-radius:18px; background:var(--pp-card);
  min-width:0;
}
.ytmx-pp-period > span{ display:block; color:var(--pp-muted); font-size:13.5px; font-weight:600; line-height:1.35; }
.ytmx-pp-period strong{ display:block; margin-top:10px; color:var(--pp-text); font-size:clamp(22px,2.6vw,30px); font-weight:850; letter-spacing:-.02em; line-height:1.15; overflow-wrap:anywhere; }
.ytmx-pp-period:last-child strong{ color:var(--pp-red); }

.ytmx-pp-mini-grid{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin:0 0 14px; }
.ytmx-pp-mini{ padding:13px 14px; border:1px solid var(--pp-border); border-radius:14px; background:var(--pp-card); min-width:0; }
.ytmx-pp-mini > span{ display:flex; align-items:center; gap:7px; color:var(--pp-muted); font-size:12.5px; font-weight:600; line-height:1.3; }
.ytmx-pp-mini strong{ display:block; margin-top:7px; color:var(--pp-text); font-size:18px; font-weight:800; overflow-wrap:anywhere; }
.ytmx-pp-mini .dot{ display:inline-block; width:8px; height:8px; border-radius:50%; background:#d99a23; font-style:normal; }
.ytmx-pp-mini.highlight{ border-color:rgba(255,45,85,.45); }
.ytmx-pp-mini.highlight strong{ color:var(--pp-red); }

.ytmx-pp-chart{ margin:0 0 28px; padding:16px 18px 12px; border:1px solid var(--pp-border); border-radius:18px; background:var(--pp-card); }
.ytmx-pp-chart-head{ display:flex; align-items:baseline; justify-content:space-between; gap:10px; margin-bottom:8px; }
.ytmx-pp-chart-head strong{ color:var(--pp-text); font-size:15px; }
.ytmx-pp-chart-head span{ color:var(--pp-muted); font-size:12.5px; }
.ytmx-pp-chart-svg{ display:block; width:100%; height:150px; }
.ytmx-pp-chart-svg rect.on{ fill:#ff2d55; }
.ytmx-pp-chart-svg rect.off{ fill:rgba(255,255,255,.09); }
.ytmx-pp-chart-svg .lbl{ fill:var(--pp-muted); font-size:11px; font-family:inherit; }
.ytmx-pp-activity{ margin-top:6px; }

@media (max-width:760px){
  .ytmx-pp-period-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  .ytmx-pp-period{ padding:15px 16px; border-radius:16px; }
  .ytmx-pp-mini-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); }
}
