/**
 * Free-trial form.
 *
 * This ships to sites with opposite themes — one light, one dark — so it
 * carries its own explicit palette rather than inheriting colours. Two rules
 * follow from that and are worth keeping:
 *   1. Never paint a background with `currentColor`; that is how the submit
 *      button ended up the same colour as its own label.
 *   2. Never express text colour as opacity. On a dark ground that turns
 *      labels into ghosts.
 * The typeface IS inherited, so the form still reads as part of its host.
 */

.iptv-sk-trial {
	/* Light is the default; the dark set is swapped in wholesale below. */
	--sk-surface:      #ffffff;
	--sk-surface-2:    #f4f6f9;
	--sk-border:       #e0e4ea;
	--sk-border-focus: var(--sk-accent);
	--sk-text:         #151a22;
	--sk-muted:        #5a6373;
	/* #858e9d measured 3.31 on white, under the 4.5 small text needs — the
	   "no credit card required" note under the button was the casualty. */
	--sk-faint:        #6b7482;
	/* #1c6dff put white button text at 4.49, a hair under. This clears it
	   without changing the brand read. */
	--sk-accent:       #1a63e8;
	--sk-accent-hover: #1559d6;
	--sk-accent-text:  #ffffff;
	--sk-accent-ring:  rgba(28, 109, 255, .22);
	--sk-danger:       #c0362c;
	--sk-danger-bg:    rgba(192, 54, 44, .08);
	--sk-ok:           #1a7f4b;
	--sk-ok-bg:        rgba(26, 127, 75, .1);
	--sk-shadow:       0 1px 2px rgba(16, 22, 32, .05), 0 12px 32px rgba(16, 22, 32, .07);

	/* Centred rather than stranded against the left edge of a wide page. */
	max-width: 540px;
	margin-inline: auto;
	color: var(--sk-text);
	text-align: left;
}

.iptv-sk-trial[data-theme="dark"] {
	--sk-surface:      #16191f;
	--sk-surface-2:    #1e222a;
	--sk-border:       #2c323c;
	--sk-text:         #f3f5f8;
	--sk-muted:        #a9b2bf;
	--sk-faint:        #7d8695;
	--sk-accent:       #3f8cff;
	--sk-accent-hover: #5c9dff;
	--sk-accent-text:  #0b0e13;
	--sk-accent-ring:  rgba(63, 140, 255, .3);
	--sk-danger:       #ff8b80;
	--sk-danger-bg:    rgba(255, 139, 128, .12);
	--sk-ok:           #56c58c;
	--sk-ok-bg:        rgba(86, 197, 140, .13);
	--sk-shadow:       0 1px 2px rgba(0, 0, 0, .4), 0 14px 36px rgba(0, 0, 0, .45);
}

.iptv-sk-card {
	background: var(--sk-surface);
	border: 1px solid var(--sk-border);
	border-radius: 16px;
	box-shadow: var(--sk-shadow);
	padding: clamp(22px, 4vw, 32px);
}

.iptv-sk-form { display: flex; flex-direction: column; gap: 18px; }

.iptv-sk-eyebrow {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .13em;
	text-transform: uppercase;
	color: var(--sk-accent);
	margin: 0;
}
.iptv-sk-eyebrow::before {
	content: "";
	width: 18px;
	height: 2px;
	border-radius: 2px;
	background: var(--sk-accent);
}

.iptv-sk-title {
	font-size: clamp(21px, 3.4vw, 26px);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -.02em;
	margin: -6px 0 0;
	color: var(--sk-text);
}
.iptv-sk-sub { margin: -8px 0 0; color: var(--sk-muted); font-size: 14.5px; line-height: 1.55; }

.iptv-sk-field { display: flex; flex-direction: column; gap: 7px; }
.iptv-sk-field > span {
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: .01em;
	color: var(--sk-muted);   /* a real colour, never an opacity */
}

/* Help text under the MAC field: quieter than the label, never an error. */
.iptv-sk-hint {
	font-size: 12.5px;
	line-height: 1.5;
	color: var(--sk-faint);   /* a real colour, never an opacity */
}
/* "(optional)" rides inside the label without the italics <em> brings. */
.iptv-sk-optional {
	font-style: normal;
	font-weight: 400;
	color: var(--sk-faint);
}
/* The MAC field appears mid-form when a portal device is chosen; a short
   slide keeps that from reading as a layout glitch. */
.iptv-sk-mac:not([hidden]) {
	animation: iptv-sk-reveal .18s ease-out;
}
@keyframes iptv-sk-reveal {
	from { opacity: 0; transform: translateY(-4px); }
	to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
	.iptv-sk-mac:not([hidden]) { animation: none; }
}
/* A <label> is display:flex here, which beats the hidden attribute. */
.iptv-sk-trial [hidden] { display: none !important; }

.iptv-sk-trial input,
.iptv-sk-trial select {
	width: 100%;
	box-sizing: border-box;
	font-family: inherit;
	/* 16px keeps iOS Safari from zooming the page on focus. */
	font-size: 16px;
	line-height: 1.4;
	color: var(--sk-text);
	background: var(--sk-surface-2);
	border: 1px solid var(--sk-border);
	border-radius: 10px;
	padding: 13px 14px;
	min-height: 48px;
	transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
	appearance: none;
}
.iptv-sk-trial input::placeholder { color: var(--sk-faint); }
.iptv-sk-trial input:hover,
.iptv-sk-trial select:hover { border-color: var(--sk-faint); }
.iptv-sk-trial input:focus,
.iptv-sk-trial select:focus {
	outline: none;
	background: var(--sk-surface);
	border-color: var(--sk-border-focus);
	box-shadow: 0 0 0 4px var(--sk-accent-ring);
}

/* Caret drawn per theme so it never disappears into the field. */
.iptv-sk-trial select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235a6373' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding-right: 40px;
}
.iptv-sk-trial[data-theme="dark"] select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a9b2bf' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}

.iptv-sk-error { font-size: 12.5px; color: var(--sk-danger); margin-top: -2px; }

.iptv-sk-submit {
	/* Explicit colours on both sides — this is the bug that made the button
	   render as an empty rectangle on both sites. */
	background: var(--sk-accent);
	color: var(--sk-accent-text);
	font-family: inherit;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: .01em;
	border: none;
	border-radius: 10px;
	min-height: 52px;
	padding: 14px 22px;
	width: 100%;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	margin-top: 2px;
	transition: background .15s ease, transform .06s ease, box-shadow .15s ease;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .12);
}
.iptv-sk-submit:hover:not(:disabled) { background: var(--sk-accent-hover); }
.iptv-sk-submit:active:not(:disabled) { transform: translateY(1px); }
.iptv-sk-submit:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--sk-accent-ring); }
.iptv-sk-submit:disabled { cursor: default; background: var(--sk-faint); }

.iptv-sk-note {
	margin: 0;
	text-align: center;
	font-size: 12.5px;
	color: var(--sk-faint);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
}

.iptv-sk-alert {
	border: 1px solid var(--sk-danger);
	background: var(--sk-danger-bg);
	color: var(--sk-danger);
	border-radius: 10px;
	padding: 11px 13px;
	font-size: 13.5px;
	line-height: 1.5;
}

/* Off-screen rather than display:none — some bots skip hidden inputs. */
.iptv-sk-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---- success ---------------------------------------------------------- */
.iptv-sk-done { text-align: center; padding: 6px 0 2px; }
.iptv-sk-check {
	width: 58px; height: 58px; margin: 0 auto 18px;
	display: flex; align-items: center; justify-content: center;
	border-radius: 50%;
	background: var(--sk-ok-bg);
	border: 2px solid var(--sk-ok);
	color: var(--sk-ok);
	font-size: 27px; line-height: 1;
	animation: iptv-sk-pop .32s cubic-bezier(.2, .9, .3, 1.2) both;
}
.iptv-sk-done h3 { margin: 0 0 9px; font-size: 21px; font-weight: 700; color: var(--sk-text); letter-spacing: -.01em; }
.iptv-sk-done p  { margin: 0; color: var(--sk-muted); font-size: 14.5px; line-height: 1.6; }

@keyframes iptv-sk-pop { from { transform: scale(.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* One restrained load sequence rather than scattered effects. */
.iptv-sk-form > * { animation: iptv-sk-rise .45s ease both; }
.iptv-sk-form > *:nth-child(2) { animation-delay: .04s; }
.iptv-sk-form > *:nth-child(3) { animation-delay: .08s; }
.iptv-sk-form > *:nth-child(4) { animation-delay: .12s; }
.iptv-sk-form > *:nth-child(5) { animation-delay: .16s; }
.iptv-sk-form > *:nth-child(6) { animation-delay: .2s; }
@keyframes iptv-sk-rise { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
	.iptv-sk-form > *, .iptv-sk-check { animation: none; }
	.iptv-sk-submit { transition: none; }
}

@media (max-width: 480px) {
	.iptv-sk-card { padding: 20px 18px; border-radius: 14px; }
}

/* ─────────────────────────────────────────────────────────────
   Affiliate page
   ─────────────────────────────────────────────────────────────
   The explanatory copy used to be plain WordPress blocks, coloured by each
   theme's own assumptions. On the dark store that rendered near-black text on
   a near-black page — a contrast ratio of 1.06, invisible. So the whole page
   lives inside this container and takes the palette above, exactly as the form
   already did, and reads correctly on either theme.
   ───────────────────────────────────────────────────────────── */

.iptv-sk-affiliate {
	/* Wider than the bare form: this is a page, not a widget. */
	max-width: 860px;
}

.iptv-sk-aff-head {
	text-align: center;
	margin-bottom: 34px;
}
.iptv-sk-aff-head h2 {
	margin: 10px 0 0;
	font-size: clamp(26px, 4.2vw, 38px);
	line-height: 1.15;
	font-weight: 700;
	letter-spacing: -.02em;
	color: var(--sk-text);
}
.iptv-sk-aff-head p {
	margin: 14px auto 0;
	max-width: 60ch;
	font-size: 16px;
	line-height: 1.65;
	color: var(--sk-muted);   /* a real colour, never an opacity */
}

/* The four steps. Numbered because they genuinely are a sequence — apply,
   get the link, share it, get paid — not decoration. */
.iptv-sk-steps {
	list-style: none;
	margin: 0 0 34px;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap: 14px;
	counter-reset: sk-step;
}
.iptv-sk-steps li {
	/* !important because a host theme wins this one otherwise. On iptvcanada.io
	   the theme sets list-style on the li directly, so `list-style: none` on the
	   ol above did nothing and every step rendered its marker beside our own
	   badge — "1. 1", "2. 2". This ships into themes we do not control. */
	list-style: none !important;
	counter-increment: sk-step;
	background: var(--sk-surface);
	border: 1px solid var(--sk-border);
	border-radius: 14px;
	padding: 20px 18px 18px;
	box-shadow: var(--sk-shadow);
}
.iptv-sk-steps li::before {
	content: counter(sk-step);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	margin-bottom: 12px;
	border-radius: 50%;
	background: var(--sk-accent);
	color: var(--sk-accent-text);
	font-size: 13px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}
.iptv-sk-steps strong {
	display: block;
	font-size: 15px;
	font-weight: 650;
	color: var(--sk-text);
	margin-bottom: 5px;
}
.iptv-sk-steps span {
	display: block;
	font-size: 14px;
	line-height: 1.6;
	color: var(--sk-muted);
}

/* The form keeps its own width inside the wider page. */
.iptv-sk-affiliate .iptv-sk-card {
	max-width: 540px;
	margin-inline: auto;
}

/* "(optional)" rides inside a label without the italics <em> brings. */
.iptv-sk-affiliate .iptv-sk-optional {
	font-style: normal;
	font-weight: 400;
	color: var(--sk-faint);
}

@media (max-width: 560px) {
	.iptv-sk-steps { grid-template-columns: 1fr; }
	.iptv-sk-aff-head { margin-bottom: 26px; }
}

/* ─────────────────────────────────────────────────────────────
   Partner panel — [iptv_affiliate_panel]

   Shares the palette above, so it lands correctly on a light store and a dark
   one without a second set of colours to keep in step. The two rules at the
   top of this file apply here too: every colour is explicit, and none of them
   is an opacity on text.
   ───────────────────────────────────────────────────────────── */

.iptv-sk-panel {
	/* A page, not a widget — and the stat grid needs the room. */
	max-width: 860px;
}

.iptv-sk-panel-head { text-align: center; margin-bottom: 26px; }
.iptv-sk-panel-head h2 {
	font-size: clamp(24px, 3.4vw, 31px);
	line-height: 1.2;
	margin: 0 0 10px;
	color: var(--sk-text);
	text-wrap: balance;
}
.iptv-sk-panel-head p {
	font-size: 15px;
	line-height: 1.65;
	color: var(--sk-muted);
	margin: 0 auto;
	max-width: 52ch;
}

.iptv-sk-panel-card {
	background: var(--sk-surface);
	border: 1px solid var(--sk-border);
	border-radius: 14px;
	padding: 26px 24px;
	box-shadow: var(--sk-shadow);
	margin-bottom: 18px;
}

.iptv-sk-panel-eyebrow {
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--sk-faint);
	margin-bottom: 10px;
}

.iptv-sk-panel-code-row {
	display: flex;
	gap: 10px;
	align-items: center;
	flex-wrap: wrap;
}

.iptv-sk-panel-code {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 22px;
	font-weight: 700;
	letter-spacing: .05em;
	/* Both sides stated: the accent behind, its paired text colour on top. */
	background: var(--sk-accent);
	color: var(--sk-accent-text);
	padding: 9px 16px;
	border-radius: 9px;
}

.iptv-sk-panel-link {
	flex: 1 1 260px;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 13px;
	color: var(--sk-text);
	background: var(--sk-surface-2);
	border: 1px solid var(--sk-border);
	border-radius: 9px;
	padding: 11px 14px;
}

.iptv-sk-panel-btn {
	flex: none;
	background: var(--sk-accent);
	color: var(--sk-accent-text);
	border: 1px solid var(--sk-accent);
	border-radius: 9px;
	padding: 10px 16px;
	font: inherit;
	font-size: 13.5px;
	font-weight: 600;
	cursor: pointer;
	transition: background .15s ease;
}
.iptv-sk-panel-btn:hover { background: var(--sk-accent-hover); border-color: var(--sk-accent-hover); }
.iptv-sk-panel-btn:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--sk-accent-ring); }

.iptv-sk-panel-btn-ghost {
	background: var(--sk-surface-2);
	color: var(--sk-text);
	border-color: var(--sk-border);
}
.iptv-sk-panel-btn-ghost:hover { background: var(--sk-surface-2); border-color: var(--sk-border-focus); }

.iptv-sk-panel-note {
	font-size: 13px;
	line-height: 1.6;
	color: var(--sk-muted);
	margin: 16px 0 0;
}

.iptv-sk-panel-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 14px;
}

.iptv-sk-panel-stat {
	background: var(--sk-surface);
	border: 1px solid var(--sk-border);
	border-radius: 12px;
	padding: 20px 18px;
}
.iptv-sk-panel-stat-label {
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--sk-faint);
	margin-bottom: 8px;
}
.iptv-sk-panel-stat-value {
	font-size: 29px;
	font-weight: 700;
	line-height: 1;
	color: var(--sk-text);
	margin-bottom: 8px;
	font-variant-numeric: tabular-nums;
}
.iptv-sk-panel-stat-note { font-size: 12.5px; line-height: 1.5; color: var(--sk-muted); }

.iptv-sk-panel-window {
	font-size: 12.5px;
	line-height: 1.65;
	color: var(--sk-faint);
	margin: 18px 0 0;
	text-align: center;
}
.iptv-sk-panel-window a { color: var(--sk-accent); }

.iptv-sk-panel-form { display: grid; gap: 10px; max-width: 420px; margin-inline: auto; }
.iptv-sk-panel-label { font-size: 12.5px; font-weight: 600; color: var(--sk-text); }
.iptv-sk-panel-form .iptv-sk-panel-note { margin-top: 4px; }

@media (max-width: 560px) {
	.iptv-sk-panel-grid { grid-template-columns: repeat(2, 1fr); }
	.iptv-sk-panel-code { font-size: 19px; }
}


/* The way back in for someone who is already a partner.
   A bordered button rather than a bare link: on iptvstore.ca the link inherited
   the theme's colour and measured 1.06:1 against the card — effectively
   invisible. Both colours are stated here so no theme can supply either. */
.iptv-sk-panel-cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	border-radius: 10px;
	border: 1px solid var(--sk-border-focus);
	background: var(--sk-surface-2);
	color: var(--sk-text) !important;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none !important;
	transition: border-color .15s ease, background .15s ease;
}
.iptv-sk-panel-cta:hover {
	background: var(--sk-surface);
	border-color: var(--sk-accent);
	color: var(--sk-text) !important;
}
.iptv-sk-panel-cta:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--sk-accent-ring); }
.iptv-sk-panel-cta .sk-arrow { color: var(--sk-accent); font-weight: 700; }

.iptv-sk-returning {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	flex-wrap: wrap;
	margin: 0 0 30px;
	font-size: 13.5px;
	color: var(--sk-muted);
}
.iptv-sk-panel-cta-wrap { text-align: center; margin-top: 18px; }
.iptv-sk-panel-cta-wrap .lead { display: block; font-size: 13.5px; color: var(--sk-muted); margin-bottom: 10px; }
