/* Dojostreams button feel: "Soft lift" (owner's pick, 3 Dec 2026; picker https://claude.ai/artifact/RdJZ3peBPUr7o7PW9KrPE7).
 *
 * One response for every button on the theme's own pages (Home, Pricing, Free trial, Guides, iptvdojo's About, header, phone menu):
 *   - mouse (hover:hover): the button rises 2 px and its shadow grows softer and deeper; cards rise 3 px;
 *   - press (mouse and finger): it settles back and shrinks to 97 % (cards 98.5 %) at once, then glides back;
 *   - text links: the colour stays, an underline fades in;
 *   - keyboard: one focus ring, 2 px #673DE6 with a 3 px gap (white on purple);
 *   - text keeps its colour in every state (the shared `a:hover` rules can no longer paint a button's text dark);
 *   - nothing stays raised or tinted after a tap on a phone; reduced motion keeps only the shadow fades.
 *
 * Printed after every page stylesheet (inc/site-chrome.php, handle dojostreams-buttons). The selector groups use :is()
 * with an id inside (#plans), so every rule here carries id-level specificity and wins over the page files' own hover
 * rules without !important. Disabled and busy buttons are left alone.
 * Only transform, box-shadow, border-color and opacity change: no layout shift.
 */

.dj-site{--djb-ease:cubic-bezier(.2,.8,.2,1);--djb-in:.1s;--djb-out:.34s}

/* ================= families =================
 * P  purple pill      .dcta .mbtn .btn .bfh-btn, iptvdojo's About .of-btn
 * S  white outline    .mbtn2 .btn2 (incl. .prl gradient edge, .lav on lavender), iptvdojo's About .ab-btn2
 * W  white on purple  WhatsApp pills .dhwa .wa, .rzbtn
 * C  cards            plan options .opt, the trial row .trial, "more screens" .more, Free trial .nextcard, Guides .dv
 */

/* ---------- rest: one timing, and the colour pinned for every state ---------- */
:is(.dj-site .dcta,.dj-site .mbtn,.djhm .btn,.djpr .btn,#plans .btn,.dj-trial .btn,.dj-guides .btn,.dj-site .bfh-btn,.djof .of-btn:not(.ab-btn2)):not([disabled]):not(.busy),
:is(.dj-site .mbtn2,.djhm .btn2,.djpr .btn2,#plans .btn2,.dj-trial .btn2,.dj-guides .btn2,.djof .ab-btn2),
:is(.djhm .dhwa,.djhm .rzbtn,.djpr .wa,.dj-trial .wa,.dj-guides .wa,#plans .wa){
	transition:transform var(--djb-out) var(--djb-ease),box-shadow var(--djb-out) var(--djb-ease),border-color .3s var(--djb-ease),background-color .3s var(--djb-ease),opacity .3s var(--djb-ease);
	-webkit-tap-highlight-color:transparent;
}
:is(.dj-site .dcta,.dj-site .mbtn,.djhm .btn,.djpr .btn,#plans .btn,.dj-trial .btn,.dj-guides .btn,.dj-site .bfh-btn,.djof .of-btn:not(.ab-btn2)):not([disabled]):not(.busy):is(:hover,:active,:focus,:visited){color:#FFFFFF}
:is(.dj-site .mbtn2,.djhm .btn2,.djpr .btn2,#plans .btn2,.dj-trial .btn2,.dj-guides .btn2,.djof .ab-btn2):is(:hover,:active,:focus,:visited){color:#2F1C6A}
:is(.djhm .btn2.lav,#plans .btn2.lav):is(:hover,:active,:focus,:visited){color:#5A2FE0}
:is(.djhm .dhwa,.djhm .rzbtn,.djpr .wa,.dj-trial .wa,.dj-guides .wa,#plans .wa):is(:hover,:active,:focus,:visited){color:#4B25C9}

:is(#plans .opt,#plans .trial,#plans .more,.dj-trial .nextcard,.dj-guides .dv){
	transition:transform var(--djb-out) var(--djb-ease),box-shadow var(--djb-out) var(--djb-ease),border-color .3s var(--djb-ease),background-color .3s var(--djb-ease);
	-webkit-tap-highlight-color:transparent;
}
:is(#plans .more):is(:hover,:active,:focus,:visited){color:#F5F1E8}
:is(#plans .more.pt):is(:hover,:active,:focus,:visited){color:#171420}
:is(#plans .trial):is(:hover,:active,:focus,:visited){color:#2F1C6A}
.dj-site.dj-trial .nextcard:is(:hover,:active,:focus,:visited){color:#5A2FE0}

/* small "Copy" chips (login details on Free trial and Guides): a press only */
:is(.dj-trial .copy,.dj-guides .copy){transition:transform var(--djb-out) var(--djb-ease),background-color .2s,color .2s;-webkit-tap-highlight-color:transparent}
:is(.dj-trial .copy,.dj-guides .copy):active{transform:scale(.95);transition-duration:var(--djb-in),.2s,.2s}

/* The WhatsApp pills rose in with a `transform` animation that kept holding the transform afterwards (fill-mode both),
 * so they could never lift. Same rise, on the separate `translate` property, which leaves `transform` free. */
@keyframes djb-rise{from{opacity:0;translate:0 14px}to{opacity:1;translate:none}}
.djhm .ds-help.inn .dhwa{animation:djb-rise .8s cubic-bezier(.16,1,.3,1) 1.05s both}
.dj-trial .ast-sec.inn .wa{animation:djb-rise .8s cubic-bezier(.16,1,.3,1) 1.1s both}
.dj-guides .ast.inn .wa{animation:djb-rise .8s cubic-bezier(.16,1,.3,1) 1.05s both}

/* ---------- hover: only where there is a mouse ---------- */
@media (hover:hover){
	:is(.dj-site .dcta,.dj-site .mbtn,.djhm .btn,.djpr .btn,#plans .btn,.dj-trial .btn,.dj-guides .btn,.dj-site .bfh-btn,.djof .of-btn:not(.ab-btn2)):not([disabled]):not(.busy):hover{
		transform:translateY(-2px);
		background:linear-gradient(180deg,#7350F0 0%,#673DE6 100%);
		box-shadow:0 16px 30px -12px rgba(103,61,230,.62);
	}
	:is(.dj-site .mbtn2,.djhm .btn2,.djpr .btn2,#plans .btn2,.dj-trial .btn2,.dj-guides .btn2,.djof .ab-btn2):hover{
		transform:translateY(-2px);
		border-color:#BFB3F5;
		box-shadow:0 12px 24px -14px rgba(47,28,106,.32);
	}
	:is(.djhm .btn2.prl,#plans .btn2.prl):hover{border-color:transparent;box-shadow:0 1px 2px rgba(47,28,106,.05),0 16px 30px -14px rgba(74,80,217,.55)}
	:is(.djhm .btn2.lav,#plans .btn2.lav):hover{background:#FFFFFF;box-shadow:0 12px 24px -14px rgba(103,61,230,.4)}
	:is(.djhm .dhwa,.djhm .rzbtn,.djpr .wa,.dj-trial .wa,.dj-guides .wa,#plans .wa):hover{
		transform:translateY(-2px);
		box-shadow:0 24px 40px -14px rgba(20,8,70,.7);
	}
	:is(#plans .opt,#plans .trial,.dj-trial .nextcard,.dj-guides .dv):hover{
		transform:translateY(-3px);
		border-color:#C9BEF7;
		box-shadow:0 18px 34px -20px rgba(103,61,230,.45);
	}
	:is(#plans .opt.sel):hover{border-color:#673DE6;box-shadow:0 0 0 1px #673DE6,0 20px 36px -18px rgba(103,61,230,.55)}
	:is(#plans .opt.pt):hover{border-color:transparent;box-shadow:inset 0 1px 0 #FFFFFF,0 1px 2px rgba(47,28,106,.06),0 18px 36px -12px rgba(74,80,217,.42),0 44px 80px -34px rgba(74,80,217,.5)}
	:is(#plans .opt.pt.sel):hover{border-color:transparent;box-shadow:inset 0 1px 0 #FFFFFF,0 0 0 1px #673DE6,0 1px 2px rgba(47,28,106,.06),0 18px 36px -12px rgba(74,80,217,.45),0 44px 80px -34px rgba(74,80,217,.5)}
	:is(#plans .opt.ob):hover{border-color:rgba(156,134,245,.55);box-shadow:inset 0 1px 0 rgba(185,166,255,.18),0 18px 34px -16px rgba(12,10,15,.8)}
	:is(#plans .opt.ob.sel):hover{border-color:#673DE6;box-shadow:inset 0 1px 0 rgba(185,166,255,.2),0 0 0 1px #673DE6,0 18px 34px -12px rgba(12,10,15,.8)}
	:is(#plans .more):hover{transform:translateY(-3px)}
}

/* ---------- touch: a tap leaves nothing behind (phones keep :hover on the last thing tapped) ---------- */
@media (hover:none){
	:is(.dj-site .dcta,.dj-site .mbtn,.djhm .btn,.djpr .btn,#plans .btn,.dj-trial .btn,.dj-guides .btn,.dj-site .bfh-btn,.djof .of-btn:not(.ab-btn2),.dj-site .mbtn2,.djhm .btn2,.djpr .btn2,#plans .btn2,.dj-trial .btn2,.dj-guides .btn2,.djof .ab-btn2,.djhm .dhwa,.djhm .rzbtn,.djpr .wa,.dj-trial .wa,.dj-guides .wa,#plans .wa,#plans .opt,#plans .trial,#plans .more,.dj-trial .nextcard,.dj-guides .dv):hover{transform:none}
	:is(.dj-site .dcta,.dj-site .mbtn,.djhm .btn,.djpr .btn,#plans .btn,.dj-trial .btn,.dj-guides .btn,.dj-site .bfh-btn,.djof .of-btn:not(.ab-btn2)):not([disabled]):not(.busy):hover{background:linear-gradient(180deg,#7350F0 0%,#673DE6 100%);box-shadow:0 10px 24px -12px rgba(103,61,230,.6)}
	:is(.djhm .btn2,.djpr .btn2,#plans .btn2,.dj-trial .btn2,.dj-guides .btn2):not(.prl):not(.lav):hover{border-color:#D9D6EE}
	:is(.djhm .btn2.prl,#plans .btn2.prl):hover{box-shadow:0 1px 2px rgba(47,28,106,.05),0 8px 20px -14px rgba(74,80,217,.45)}
	:is(.djhm .dhwa,.djpr .wa,.dj-trial .wa,.dj-guides .wa,#plans .wa):hover{box-shadow:0 18px 36px -14px rgba(20,8,70,.6)}
	:is(.dj-site a.lnk,.dj-site .fcol a,.dj-site .hlink):hover{text-decoration-color:transparent}
}

/* ---------- press: settle at once, glide back on release (mouse and finger) ---------- */
:is(.dj-site .dcta,.dj-site .mbtn,.djhm .btn,.djpr .btn,#plans .btn,.dj-trial .btn,.dj-guides .btn,.dj-site .bfh-btn,.djof .of-btn:not(.ab-btn2)):not([disabled]):not(.busy):active{
	transform:translateY(0) scale(.97);
	box-shadow:0 6px 14px -8px rgba(103,61,230,.6);
	transition-duration:var(--djb-in);
}
:is(.dj-site .mbtn2,.djhm .btn2,.djpr .btn2,#plans .btn2,.dj-trial .btn2,.dj-guides .btn2,.djof .ab-btn2):active{
	transform:translateY(0) scale(.97);
	box-shadow:0 4px 10px -8px rgba(47,28,106,.3);
	transition-duration:var(--djb-in);
}
:is(.djhm .dhwa,.djhm .rzbtn,.djpr .wa,.dj-trial .wa,.dj-guides .wa,#plans .wa):active{
	transform:translateY(0) scale(.97);
	box-shadow:0 10px 20px -10px rgba(20,8,70,.6);
	transition-duration:var(--djb-in);
}
:is(.djhm .btn2.prl,#plans .btn2.prl):active{box-shadow:0 1px 2px rgba(47,28,106,.05),0 4px 12px -8px rgba(74,80,217,.45)}
:is(.djhm .btn2.lav,#plans .btn2.lav):active{box-shadow:0 4px 10px -8px rgba(103,61,230,.4)}
:is(#plans .opt,#plans .trial,#plans .more,.dj-trial .nextcard,.dj-guides .dv):active{
	transform:translateY(0) scale(.985);
	transition-duration:var(--djb-in);
}

/* ---------- text links: colour stays, an underline fades in ---------- */
:is(.dj-site a.lnk,.dj-site .fcol a,.dj-site .hlink){
	text-decoration:underline;
	text-decoration-thickness:1.5px;
	text-underline-offset:4px;
	text-decoration-color:transparent;
	transition:text-decoration-color .3s var(--djb-ease),opacity .2s var(--djb-ease);
	-webkit-tap-highlight-color:transparent;
}
:is(.djhm .lnk,.djpr .lnk,.dj-guides .lnk,#plans .lnk,.dj-guides .hlink):is(:hover,:active,:focus,:visited){color:#5A2FE0}
:is(.dj-site .fcol a):is(:hover,:active,:focus,:visited){color:#494C4F}
@media (hover:hover){:is(.dj-site a.lnk,.dj-site .fcol a,.dj-site .hlink):hover{text-decoration-color:currentColor}}
:is(.dj-site a.lnk,.dj-site .fcol a,.dj-site .hlink):active{text-decoration-color:currentColor;opacity:.75;transition-duration:var(--djb-in)}

/* ---------- header: phone icon buttons (WhatsApp, menu) and the desktop menu links ---------- */
.dj-site .hdr .ib{transition:transform var(--djb-out) var(--djb-ease),box-shadow var(--djb-out) var(--djb-ease),background-color .3s var(--djb-ease)}
.dj-site .hdr .ib:active{transform:scale(.94);box-shadow:0 2px 6px -4px rgba(47,28,106,.25);transition-duration:var(--djb-in)}
.dj-site .nav a,.dj-site .dlive{transition:box-shadow .3s var(--djb-ease),opacity .2s var(--djb-ease)}
@media (hover:hover){
	.dj-site .hdr .ib:hover{transform:translateY(-2px);box-shadow:0 8px 16px -8px rgba(47,28,106,.32)}
	.dj-site .hdr.open .burger:hover{transform:none;box-shadow:none}
	.dj-site .nav a:not([aria-current]):hover,.dj-site .dlive:hover{box-shadow:inset 0 -2px 0 #D9D0FB}
}
.dj-site .nav a:active,.dj-site .dlive:active{opacity:.75;transition-duration:var(--djb-in)}

/* ---------- touch: cards drop the border tint the page files give them on hover ---------- */
@media (hover:none){
	:is(#plans .opt):not(.pt):not(.ob):not(.sel):hover{border-color:#E4E1F5}
	:is(#plans .opt.ob):not(.sel):hover{border-color:rgba(156,134,245,.28)}
	.dj-guides .dv:hover{border-color:#E4E1F5;box-shadow:none}
}

/* ---------- one focus ring for keyboard users ---------- */
:is(.dj-site .dcta,.dj-site .mbtn,.djhm .btn,.djpr .btn,#plans .btn,.dj-trial .btn,.dj-guides .btn,.dj-site .bfh-btn,.djof .of-btn:not(.ab-btn2),.dj-site .mbtn2,.djhm .btn2,.djpr .btn2,#plans .btn2,.dj-trial .btn2,.dj-guides .btn2,.djof .ab-btn2,#plans .opt,#plans .trial,#plans .more,.dj-trial .nextcard,.dj-guides .dv,.dj-site a.lnk,.dj-site .fcol a,.dj-site .hlink):focus-visible{
	outline:2px solid #673DE6;
	outline-offset:3px;
}
:is(.djhm .dhwa,.djhm .rzbtn,.djpr .wa,.dj-trial .wa,.dj-guides .wa,#plans .wa,.djhm .btn2.lav):focus-visible{
	outline:2px solid #FFFFFF;
	outline-offset:3px;
}
/* the Home and Guides files drew their own glow ring on these; one ring is enough */
.djhm .ds-help .dhwa:focus-visible{box-shadow:0 18px 36px -14px rgba(20,8,70,.6)}
.dj-guides .dv:focus-visible{box-shadow:none}

/* ---------- reduced motion: no movement, only soft shadow and colour fades ---------- */
@media (prefers-reduced-motion:reduce){
	:is(.dj-site .dcta,.dj-site .mbtn,.djhm .btn,.djpr .btn,#plans .btn,.dj-trial .btn,.dj-guides .btn,.dj-site .bfh-btn,.djof .of-btn:not(.ab-btn2),.dj-site .mbtn2,.djhm .btn2,.djpr .btn2,#plans .btn2,.dj-trial .btn2,.dj-guides .btn2,.djof .ab-btn2,.djhm .dhwa,.djhm .rzbtn,.djpr .wa,.dj-trial .wa,.dj-guides .wa,#plans .wa,#plans .opt,#plans .trial,#plans .more,.dj-trial .nextcard,.dj-guides .dv):is(:hover,:active){transform:none}
	:is(.dj-site .dcta,.dj-site .mbtn,.djhm .btn,.djpr .btn,#plans .btn,.dj-trial .btn,.dj-guides .btn,.dj-site .bfh-btn,.djof .of-btn:not(.ab-btn2),.dj-site .mbtn2,.djhm .btn2,.djpr .btn2,#plans .btn2,.dj-trial .btn2,.dj-guides .btn2,.djof .ab-btn2,.djhm .dhwa,.djhm .rzbtn,.djpr .wa,.dj-trial .wa,.dj-guides .wa,#plans .wa,#plans .opt,#plans .trial,#plans .more,.dj-trial .nextcard,.dj-guides .dv){transition-property:box-shadow,border-color,background-color,opacity;transition-duration:.2s}
}
