/* Partner dashboard — same tokens as landing.css */
.pd { position: relative; z-index: 1; padding: 46px 0 80px; }
.pd-wrap { max-width: 1100px; }
.pd [hidden] { display: none !important; }
.pd h1 { font-family: var(--ln-display); color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin: 0 0 8px; line-height: 1.1; }
.pd h2 { font-family: var(--ln-display); color: #fff; font-size: 1.05rem; margin: 0 0 12px; letter-spacing: .01em; }
.pd-eyebrow { margin: 0 0 6px; font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ln-accent); font-weight: 700; }
.pd-sub { color: var(--ln-text); max-width: 560px; margin: 0 auto 22px; line-height: 1.6; }
.pd-note { color: var(--ln-mute); font-size: .85rem; line-height: 1.55; margin: 10px 0 0; }
.pd-note code { background: rgba(255,255,255,.06); padding: 1px 6px; border-radius: 6px; color: #e9c6ff; }
.pd-mt { margin-top: 22px !important; }
.pd-empty { color: var(--ln-mute); font-size: .9rem; margin: 6px 0 0; }

/* cards */
.pd-card {
  background: linear-gradient(160deg, rgba(40, 18, 58, .55), rgba(14, 9, 20, .88) 55%);
  border: 1px solid var(--ln-line); border-radius: 18px; padding: 20px 22px;
  box-shadow: 0 18px 50px rgba(0,0,0,.35); backdrop-filter: blur(6px);
}
.pd-grid { display: grid; gap: 16px; margin-bottom: 16px; }
.pd-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pd-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pd-three { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; }
.pd > .pd-wrap > section > .pd-card { margin-bottom: 16px; }
.pd-kpi span { display: block; color: var(--ln-mute); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; }
.pd-kpi strong { display: block; font-family: var(--ln-display); font-size: 1.9rem; color: #fff; margin: 6px 0 2px; }
.pd-kpi small { color: var(--ln-mute); font-size: .8rem; }
.pd-kpi.is-accent { border-color: rgba(200, 91, 242, .55); background: linear-gradient(160deg, rgba(126, 26, 182, .45), rgba(20, 10, 30, .9) 60%); }

/* buttons */
.pd-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid transparent;
  border-radius: 12px; padding: 12px 18px; font-weight: 800; font-size: .95rem; color: #fff !important;
  text-decoration: none; cursor: pointer; font-family: inherit; transition: transform .15s, filter .15s, background .15s;
}
.pd-btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.pd-btn:disabled { opacity: .6; cursor: default; transform: none; }
.pd-btn svg { width: 20px; height: 20px; flex: none; }
.pd-sm { padding: 8px 13px; font-size: .84rem; border-radius: 10px; }
.pd-primary { background: linear-gradient(135deg, #d27bff, #8b3dff); box-shadow: 0 10px 26px rgba(160, 70, 255, .35); }
.pd-twitch { background: #9146ff; box-shadow: 0 10px 26px rgba(145, 70, 255, .35); }
.pd-discord { background: #5865f2; box-shadow: 0 10px 26px rgba(88, 101, 242, .35); }
.pd-ghost { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.14); }
.pd-btn.is-off { opacity: .45; pointer-events: none; }

/* login */
.pd-login { text-align: center; max-width: 520px; margin: 0 auto; }
.pd-login-card { display: grid; gap: 12px; text-align: left; background: rgba(14, 9, 20, .82); border: 1px solid var(--ln-line); border-radius: 20px; padding: 22px; }
.pd-login-card .pd-btn { width: 100%; padding: 14px 18px; font-size: 1rem; }
.pd-or { display: flex; align-items: center; gap: 12px; color: var(--ln-mute); font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; }
.pd-or::before, .pd-or::after { content: ""; flex: 1; height: 1px; background: rgba(255,255,255,.1); }
.pd-email summary { cursor: pointer; color: var(--ln-text); font-size: .92rem; list-style: none; text-align: center; }
.pd-email summary::-webkit-details-marker { display: none; }
.pd-email summary:hover { color: #fff; }
.pd-email form { display: grid; gap: 10px; margin-top: 12px; }
.pd-email input { background: rgba(8,5,12,.8); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; color: #fff; padding: 12px 14px; font: inherit; }
.pd-email input:focus { outline: none; border-color: rgba(200,91,242,.7); }
.pd-error { color: #f87171; font-size: .9rem; margin: 0; text-align: center; }
.pd-foot { color: var(--ln-mute); margin-top: 16px; font-size: .9rem; }
.pd-foot a { color: #e9c6ff; }
.pd-alert { display: flex; gap: 14px; align-items: center; text-align: left; background: rgba(145, 70, 255, .12); border: 1px solid rgba(145, 70, 255, .45); border-radius: 16px; padding: 14px 16px; margin: 0 0 16px; }
.pd-alert img { width: 44px; height: 44px; border-radius: 50%; flex: none; }
.pd-alert strong { color: #fff; }
.pd-alert p { margin: 4px 0 0; color: var(--ln-text); font-size: .88rem; line-height: 1.5; }

/* header */
.pd-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.pd-who { display: flex; align-items: center; gap: 16px; min-width: 0; }
.pd-who h1 { margin: 0; }
.pd-avatar { width: 64px; height: 64px; border-radius: 18px; flex: none; overflow: hidden; display: grid; place-items: center; font-family: var(--ln-display); font-size: 1.6rem; color: #fff; background: linear-gradient(135deg, #c85bf2, #6d28d9); box-shadow: 0 0 0 2px rgba(200,91,242,.45), 0 12px 30px rgba(126,26,182,.45); }
.pd-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pd-meta { margin: 6px 0 0; color: var(--ln-mute); font-size: .85rem; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.pd-badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: .74rem; font-weight: 800; letter-spacing: .04em; background: rgba(255,255,255,.07); color: var(--ln-text); border: 1px solid rgba(255,255,255,.12); }
.pd-badge.is-ok { background: rgba(74, 222, 128, .12); color: #86efac; border-color: rgba(74, 222, 128, .35); }
.pd-flash { margin: 0 0 16px; padding: 12px 16px; border-radius: 12px; background: rgba(74,222,128,.1); border: 1px solid rgba(74,222,128,.35); color: #bbf7d0; }
.pd-flash.is-bad { background: rgba(248,113,113,.1); border-color: rgba(248,113,113,.4); color: #fecaca; }

/* code + link */
.pd-copyrow { display: flex; gap: 10px; align-items: stretch; }
.pd-copyrow code { flex: 1; min-width: 0; background: rgba(8,5,12,.8); border: 1px solid rgba(200,91,242,.35); border-radius: 12px; padding: 12px 14px; color: #fff; font-family: var(--ln-display); font-size: 1.15rem; letter-spacing: .08em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-copyrow code.is-link { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .9rem; letter-spacing: 0; color: #e9c6ff; }
.pd-copy { background: rgba(200,91,242,.16); border: 1px solid rgba(200,91,242,.45); color: #fff; border-radius: 12px; padding: 0 16px; font-weight: 800; cursor: pointer; font-family: inherit; }
.pd-copy:hover { background: rgba(200,91,242,.28); }

/* tables */
.pd-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.pd-table td, .pd-table th { padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.06); color: var(--ln-text); text-align: left; }
.pd-table td:last-child, .pd-table th:last-child { text-align: right; color: #fff; font-variant-numeric: tabular-nums; }
.pd-table th { color: var(--ln-mute); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }
.pd-table tr.is-total td { border-bottom: 0; padding-top: 12px; font-weight: 800; color: #fff; font-size: 1rem; }
.pd-sales td:nth-child(2) { text-align: right; color: var(--ln-text); }

/* chart */
.pd-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.pd-legend { color: var(--ln-mute); font-size: .82rem; display: flex; align-items: center; gap: 6px; }
.pd-legend span { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-left: 8px; }
.lg-c, .pd-chart .b-c { background: #8b5cf6; fill: #8b5cf6; }
.lg-s, .pd-chart .b-s { background: #4ade80; fill: #4ade80; }
.pd-chart svg { width: 100%; height: 190px; display: block; }
.pd-chart .axis { stroke: rgba(255,255,255,.12); stroke-width: 1; }
.pd-chart g:hover rect { filter: brightness(1.3); }
.pd-chart-x { display: flex; justify-content: space-between; color: var(--ln-mute); font-size: .78rem; margin-top: 6px; }

/* accounts */
.pd-accounts { display: grid; gap: 10px; }
.pd-acc { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07); }
.pd-acc-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; }
.pd-acc-ico svg { width: 22px; height: 22px; }
.pd-acc.is-twitch .pd-acc-ico { background: #9146ff; }
.pd-acc.is-discord .pd-acc-ico { background: #5865f2; }
.pd-acc.is-kick .pd-acc-ico { background: #53fc18; color: #0b0b0b; }
.pd-acc-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pd-acc-who img { width: 30px; height: 30px; border-radius: 50%; }
.pd-acc-who strong { display: block; color: #fff; font-size: .95rem; }
.pd-acc-who small { color: var(--ln-mute); font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }

/* coming next */
.pd-soon strong { color: #fff; font-family: var(--ln-display); }
.pd-soon p { color: var(--ln-mute); font-size: .88rem; margin: 6px 0 0; line-height: 1.5; }
.pd-soon .pd-three > div { padding: 14px; border-radius: 14px; border: 1px dashed rgba(200,91,242,.3); }

/* loading */
.pd-loading { display: grid; place-items: center; min-height: 40vh; }
.pd-spin { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(200,91,242,.25); border-top-color: #c85bf2; animation: pdspin .8s linear infinite; }
@keyframes pdspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .pd-spin { animation-duration: 1.6s; } } /* keep spinning: it is a status signal */

@media (max-width: 900px) {
  .pd-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pd-two, .pd-three { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .pd { padding-top: 28px; }
  .pd-kpi strong { font-size: 1.5rem; }
  .pd-head { flex-direction: column; align-items: flex-start; }
  .pd-copyrow { flex-direction: column; }
  .pd-copy { padding: 10px; }
}

/* Twitch bot page */
.tb-logo { background: #9146ff !important; box-shadow: 0 0 0 2px rgba(145,70,255,.5), 0 12px 30px rgba(145,70,255,.4) !important; }
.tb-logo svg { width: 34px; height: 34px; color: #fff; }
.tb-back { color: var(--ln-accent); text-decoration: none; }
.tb-back:hover { color: #fff; }
.pd-badge.is-off { background: rgba(248,113,113,.12); color: #fca5a5; border-color: rgba(248,113,113,.35); }
.tb-step { display: grid; grid-template-columns: 44px 1fr; gap: 16px; margin-bottom: 16px; }
.tb-num { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-family: var(--ln-display); font-weight: 700; color: #fff; background: linear-gradient(135deg, #c85bf2, #6d28d9); }
.tb-body > .pd-note:first-of-type { margin-top: 0; }
.tb-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 14px; }
.tb-chan { color: var(--ln-text); font-size: .92rem; }
.tb-step.is-locked { opacity: .55; }
.tb-switch { display: flex; align-items: center; gap: 12px; cursor: pointer; color: #fff; font-weight: 700; user-select: none; }
.tb-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.tb-slider { width: 46px; height: 26px; border-radius: 999px; background: rgba(255,255,255,.14); position: relative; transition: background .2s; flex: none; }
.tb-slider::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; }
.tb-switch input:checked + .tb-slider { background: #9146ff; }
.tb-switch input:checked + .tb-slider::after { transform: translateX(20px); }
.tb-switch input:focus-visible + .tb-slider { outline: 2px solid #c85bf2; outline-offset: 2px; }
.tb-field { display: inline-flex; align-items: center; gap: 10px; margin: 14px 0 4px; color: var(--ln-text); }
.tb-field select { background: rgba(8,5,12,.8); border: 1px solid rgba(255,255,255,.14); border-radius: 10px; color: #fff; padding: 9px 12px; font: inherit; }
.tb-h3 { font-family: var(--ln-display); color: #fff; font-size: .95rem; margin: 18px 0 10px; }
.tb-templates { display: grid; gap: 10px; margin-bottom: 16px; }
.tb-tpl { display: block; cursor: pointer; }
.tb-tpl input { position: absolute; opacity: 0; }
.tb-tpl-box { display: block; padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(255,255,255,.09); background: rgba(255,255,255,.03); transition: border-color .15s, background .15s; }
.tb-tpl-box strong { display: block; color: #fff; font-size: .88rem; margin-bottom: 6px; }
.tb-tpl input:checked + .tb-tpl-box { border-color: #9146ff; background: rgba(145,70,255,.12); box-shadow: 0 0 0 1px #9146ff inset; }
.tb-tpl input:focus-visible + .tb-tpl-box { outline: 2px solid #c85bf2; outline-offset: 2px; }
.tb-chat { display: block; white-space: pre-line; background: #18181b; border-radius: 8px; padding: 8px 10px; color: #efeff1; font-size: .88rem; line-height: 1.5; font-family: Inter, "Nunito Sans", system-ui, sans-serif; }
.tb-badge { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 4px; background: #00a3a3; font-size: 11px; margin-right: 4px; vertical-align: -3px; }
.tb-name { color: #bf94ff; }
.tb-err { text-align: left; margin-top: 10px; }
@media (max-width: 520px) { .tb-step { grid-template-columns: 1fr; } }
.pd-soon .pd-three > a.pd-live { display: block; text-decoration: none; border: 1px solid rgba(145,70,255,.55); background: rgba(145,70,255,.12); transition: transform .15s, background .15s; padding: 14px; border-radius: 14px; }
.pd-soon .pd-three > a.pd-live:hover { transform: translateY(-2px); background: rgba(145,70,255,.2); }

/* Overlay manager */
.ov-logo { background: linear-gradient(135deg, #c85bf2, #6d28d9) !important; }
.ov-logo svg { width: 34px; height: 34px; color: #fff; }
.ov-stage { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 14px; border: 1px solid rgba(200,91,242,.3); background: #0b0812; }
.ov-stage iframe { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; border: 0; transform-origin: 0 0; pointer-events: none; }
.ov-styles { display: grid; gap: 10px; margin-bottom: 8px; }
.ov-styles label { cursor: pointer; display: block; }
.ov-styles input { position: absolute; opacity: 0; }
.ov-styles span { display: block; padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(255,255,255,.09); background: rgba(255,255,255,.03); transition: border-color .15s, background .15s; }
.ov-styles strong { display: block; color: #fff; font-size: .95rem; }
.ov-styles small { color: var(--ln-mute); font-size: .84rem; }
.ov-styles input:checked + span { border-color: #c85bf2; background: rgba(200,91,242,.12); box-shadow: 0 0 0 1px #c85bf2 inset; }
.ov-styles input:focus-visible + span { outline: 2px solid #c85bf2; outline-offset: 2px; }
.ov-fields { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-bottom: 14px; }
.ov-fields.is-off { opacity: .4; pointer-events: none; }
.ov-range input { accent-color: #c85bf2; width: 150px; }
.ov-range output { color: #fff; font-weight: 700; min-width: 44px; }
.ov-steps { color: var(--ln-text); line-height: 1.8; padding-left: 1.2rem; margin: 14px 0 6px; }
.ov-steps b { color: #fff; }
.ov-link-btn { background: none; border: 0; color: #e9c6ff; text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }
.ov-seg { display: inline-flex; padding: 4px; gap: 4px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); margin-bottom: 4px; }
.ov-seg label { cursor: pointer; }
.ov-seg input { position: absolute; opacity: 0; }
.ov-seg span { display: block; padding: 8px 14px; border-radius: 9px; color: var(--ln-text); font-weight: 700; font-size: .88rem; }
.ov-seg input:checked + span { background: linear-gradient(135deg, #c85bf2, #7e1ab6); color: #fff; }
.ov-seg input:focus-visible + span { outline: 2px solid #c85bf2; outline-offset: 2px; }
.ov-colors { display: flex; flex-wrap: wrap; gap: 10px; }
.ov-swatch { position: relative; width: 34px; height: 34px; border-radius: 10px; border: 2px solid rgba(255,255,255,.15); background: var(--sw); cursor: pointer; padding: 0; }
.ov-swatch.is-on { border-color: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.18), 0 0 18px var(--sw); }
.ov-custom { display: grid; place-items: center; background: conic-gradient(#ef4444, #f59e0b, #22c55e, #06b6d4, #3b82f6, #8b5cf6, #ec4899, #ef4444); overflow: hidden; }
.ov-custom.is-on { background: var(--sw); }
.ov-custom input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; border: 0; padding: 0; }
.ov-seg-wrap { flex-wrap: wrap; }
.ov-head-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.ov-row-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.ov-dlg { width: min(560px, calc(100vw - 32px)); border: 1px solid rgba(200,91,242,.45); border-radius: 20px; padding: 24px; color: var(--ln-text);
  background: linear-gradient(160deg, #23113a, #0e0915 60%); box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.ov-dlg::backdrop { background: rgba(5,3,9,.7); backdrop-filter: blur(4px); }
.ov-dlg h2 { font-family: var(--ln-display); color: #fff; margin: 0 0 8px; font-size: 1.25rem; }
.ov-dlg-x { position: absolute; right: 14px; top: 12px; }
.ov-dlg-x button { background: none; border: 0; color: var(--ln-mute); font-size: 18px; cursor: pointer; }
.ov-dlg-fields { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 12px; }
.ov-dlg-fields input { background: rgba(8,5,12,.8); border: 1px solid rgba(255,255,255,.14); border-radius: 10px; color: #fff; padding: 9px 12px; font: inherit; width: 200px; }
.ov-dlg-fields input[type=number] { width: 100px; }
.ov-obs-status { min-height: 1.3em; margin: 12px 0; font-size: .92rem; line-height: 1.5; }
.ov-obs-status.is-ok { color: #86efac; } .ov-obs-status.is-bad { color: #fca5a5; }
.ov-drag { cursor: grab; margin-top: 4px; }
.ov-drag-big { display: flex; align-items: center; gap: 16px; margin: 18px 0; padding: 18px 22px; border-radius: 16px; cursor: grab; text-decoration: none;
  border: 2px dashed rgba(200,91,242,.7); background: rgba(200,91,242,.12); color: #fff; transition: background .15s, transform .15s; }
.ov-drag-big:hover { background: rgba(200,91,242,.22); transform: translateY(-2px); }
.ov-drag-big:active { cursor: grabbing; }
.ov-grip { font-size: 28px; color: #e9c6ff; }
.ov-drag-big strong { display: block; font-family: var(--ln-display); font-size: 1.15rem; }
.ov-drag-big small { color: var(--ln-mute); }
#ovLedSpeed { margin-top: 8px; }
#ovLedSpeed.is-off { opacity: .4; pointer-events: none; }

/* Panel generator */
.pn-layout { display: grid; grid-template-columns: minmax(0, 380px) 1fr; gap: 16px; align-items: start; }
.pn-preview { padding: 14px; }
.pn-preview canvas { width: 100%; height: auto; display: block; border-radius: 10px; }
.pn-side { display: grid; gap: 16px; }
.pn-dl { margin-top: 18px; width: 100%; }
.pn-desc { white-space: normal !important; font-size: .85rem !important; line-height: 1.45; }
@media (max-width: 820px) { .pn-layout { grid-template-columns: 1fr; } .pn-preview { max-width: 380px; margin: 0 auto; } }

/* Twitch bot: language labels in the preview */
.tb-lang { display: block; margin: 8px 0 4px; color: var(--ln-mute); font-size: .78rem; }
.tb-lang b { display: inline-block; padding: 1px 6px; margin-right: 4px; border-radius: 5px; background: rgba(145,70,255,.25); color: #e9d5ff; font-size: .72rem; letter-spacing: .06em; }
.tb-tpl-box .tb-chat + .tb-lang { margin-top: 10px; }
