/* 18+ PhimSex — canonical Header Support / Quick Links / VIP presentation. */
:root {
	--phimsex-support-bg-start: #05070a;
	--phimsex-support-bg-end: #0d1118;
	--phimsex-support-border: rgba(255, 216, 47, .22);
}

.phimsex-header-support-area {
	clear: both;
	width: 100%;
	color: #f8fafc;
	background: linear-gradient(135deg, var(--phimsex-support-bg-start), var(--phimsex-support-bg-end));
	border-bottom: 1px solid var(--phimsex-support-border);
	box-shadow: inset 0 1px rgba(255, 255, 255, .035), 0 8px 20px -18px rgba(0, 0, 0, .9);
}

.phimsex-header-support-area__inner {
	padding-block: 10px 12px;
}

/* --------------------------------------------------------------------------
   Quick Links — one canonical 6-card grid with five selectable layouts.
   Theme variables affect every layout while each card keeps its own accent.
   -------------------------------------------------------------------------- */
.gx-header-links {
	--gx-theme-a: #94a3b8;
	--gx-theme-b: #334155;
	--gx-theme-surface: #171c24;
	--gx-theme-border: #334155;
	--gx-theme-text: #f8fafc;
	--gx-theme-muted: #929baa;
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 10px;
	margin: 0 auto;
	padding: 0;
}

.gx-header-links[data-phimsex-links-theme="legacy"] {
	--gx-theme-a: #e5e7eb;
	--gx-theme-b: #374151;
	--gx-theme-surface: #171c24;
	--gx-theme-border: #334155;
}
.gx-header-links[data-phimsex-links-theme="ruby"] {
	--gx-theme-a: #fb7185;
	--gx-theme-b: #7f1d1d;
	--gx-theme-surface: #321016;
	--gx-theme-border: #9f2335;
}
.gx-header-links[data-phimsex-links-theme="rose"] {
	--gx-theme-a: #f9a8d4;
	--gx-theme-b: #9d174d;
	--gx-theme-surface: #351024;
	--gx-theme-border: #be185d;
}
.gx-header-links[data-phimsex-links-theme="flame"] {
	--gx-theme-a: #fdba74;
	--gx-theme-b: #c2410c;
	--gx-theme-surface: #32160a;
	--gx-theme-border: #ea580c;
}
.gx-header-links[data-phimsex-links-theme="gold"] {
	--gx-theme-a: #fde68a;
	--gx-theme-b: #b45309;
	--gx-theme-surface: #302408;
	--gx-theme-border: #d97706;
	--gx-theme-text: #fff7d6;
	--gx-theme-muted: #ead9a8;
}
.gx-header-links[data-phimsex-links-theme="emerald"] {
	--gx-theme-a: #6ee7b7;
	--gx-theme-b: #047857;
	--gx-theme-surface: #08291f;
	--gx-theme-border: #059669;
}
.gx-header-links[data-phimsex-links-theme="cyan"] {
	--gx-theme-a: #67e8f9;
	--gx-theme-b: #0369a1;
	--gx-theme-surface: #082934;
	--gx-theme-border: #0891b2;
}
.gx-header-links[data-phimsex-links-theme="cobalt"] {
	--gx-theme-a: #93c5fd;
	--gx-theme-b: #1d4ed8;
	--gx-theme-surface: #0b2148;
	--gx-theme-border: #2563eb;
}
.gx-header-links[data-phimsex-links-theme="violet"] {
	--gx-theme-a: #d8b4fe;
	--gx-theme-b: #7e22ce;
	--gx-theme-surface: #25103c;
	--gx-theme-border: #9333ea;
}
.gx-header-links[data-phimsex-links-theme="graphite"] {
	--gx-theme-a: #cbd5e1;
	--gx-theme-b: #334155;
	--gx-theme-surface: #151c27;
	--gx-theme-border: #475569;
}

.gx-header-links .gx-btn {
	--gx-accent: #60a5fa;
	--gx-accent-soft: color-mix(in srgb, var(--gx-accent) 18%, transparent);
	position: relative;
	display: grid;
	grid-template-columns: 38px minmax(0, 1fr) 22px;
	align-items: center;
	min-width: 0;
	min-height: 64px;
	padding: 8px 10px;
	gap: 9px;
	overflow: hidden;
	border: 1px solid color-mix(in srgb, var(--gx-accent) 44%, var(--gx-theme-border));
	border-radius: 15px;
	color: var(--gx-theme-text);
	background: linear-gradient(
		135deg,
		color-mix(in srgb, var(--gx-accent) 20%, var(--gx-theme-surface)),
		color-mix(in srgb, var(--gx-theme-b) 34%, #11161d)
	);
	box-shadow: inset 0 1px rgba(255, 255, 255, .045), 0 10px 24px -18px color-mix(in srgb, var(--gx-theme-a) 58%, #000);
	line-height: 1.08;
	text-align: left;
	text-decoration: none;
	transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.gx-header-links .gx-btn:hover,
.gx-header-links .gx-btn:focus-visible {
	color: var(--gx-theme-text);
	border-color: color-mix(in srgb, var(--gx-accent) 60%, var(--gx-theme-a));
	outline: 2px solid color-mix(in srgb, var(--gx-theme-a) 38%, transparent);
	outline-offset: 2px;
	transform: translateY(-2px);
	box-shadow: inset 0 1px rgba(255, 255, 255, .08), 0 14px 30px -18px color-mix(in srgb, var(--gx-accent) 55%, var(--gx-theme-a));
}

.gx-header-links .gx-btn:active {
	transform: translateY(0) scale(.985);
}

.gx-btn__icon {
	display: grid;
	width: 38px;
	height: 38px;
	place-items: center;
	border: 1px solid color-mix(in srgb, var(--gx-accent) 48%, var(--gx-theme-a));
	border-radius: 11px;
	color: color-mix(in srgb, var(--gx-accent) 70%, var(--gx-theme-a));
	background: color-mix(in srgb, var(--gx-accent-soft) 75%, color-mix(in srgb, var(--gx-theme-a) 12%, transparent));
	font-size: 17px;
	line-height: 1;
}

.gx-btn__copy {
	display: grid;
	min-width: 0;
	gap: 3px;
	line-height: 1.08;
}

.gx-btn__copy small {
	overflow: hidden;
	color: color-mix(in srgb, var(--gx-theme-muted) 78%, var(--gx-theme-a));
	font-size: 9px;
	font-weight: 800;
	letter-spacing: .1em;
	text-overflow: ellipsis;
	text-transform: uppercase;
	white-space: nowrap;
}

.gx-btn__copy strong {
	overflow: hidden;
	color: var(--gx-theme-text);
	font-size: 13px;
	font-weight: 850;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.gx-btn__arrow {
	display: grid;
	width: 22px;
	height: 22px;
	place-items: center;
	border-radius: 50%;
	color: color-mix(in srgb, var(--gx-theme-text) 74%, var(--gx-theme-a));
	background: color-mix(in srgb, var(--gx-theme-a) 12%, rgba(255, 255, 255, .04));
	font-size: 19px;
	line-height: 1;
}

/* Layout 1 — Gradient Card. */
.gx-header-links[data-phimsex-links-layout="layout-1"] .gx-btn {
	background: linear-gradient(
		135deg,
		color-mix(in srgb, var(--gx-accent) 22%, var(--gx-theme-surface)),
		color-mix(in srgb, var(--gx-theme-b) 42%, #11161d)
	);
}

/* Layout 2 — Compact Icon. */
.gx-header-links[data-phimsex-links-layout="layout-2"] .gx-btn {
	grid-template-columns: 30px minmax(0, 1fr) 18px;
	min-height: 50px;
	padding: 6px 8px;
	border-radius: 11px;
}
.gx-header-links[data-phimsex-links-layout="layout-2"] .gx-btn__icon {
	width: 30px;
	height: 30px;
	border-radius: 9px;
	font-size: 14px;
}
.gx-header-links[data-phimsex-links-layout="layout-2"] .gx-btn__copy small { font-size: 8px; }
.gx-header-links[data-phimsex-links-layout="layout-2"] .gx-btn__copy strong { font-size: 11px; }

/* Layout 3 — Glass / Soft Border. */
.gx-header-links[data-phimsex-links-layout="layout-3"] .gx-btn {
	border-color: color-mix(in srgb, var(--gx-theme-a) 42%, var(--gx-accent));
	background: linear-gradient(
		145deg,
		color-mix(in srgb, var(--gx-theme-surface) 76%, rgba(255, 255, 255, .12)),
		color-mix(in srgb, var(--gx-theme-b) 18%, rgba(255, 255, 255, .025))
	);
	backdrop-filter: blur(12px);
}

/* Layout 4 — Solid Accent. */
.gx-header-links[data-phimsex-links-layout="layout-4"] .gx-btn {
	border-color: color-mix(in srgb, var(--gx-accent) 55%, var(--gx-theme-a));
	background: linear-gradient(
		135deg,
		color-mix(in srgb, var(--gx-accent) 52%, var(--gx-theme-b)),
		color-mix(in srgb, var(--gx-theme-a) 34%, var(--gx-theme-surface))
	);
}
.gx-header-links[data-phimsex-links-layout="layout-4"] .gx-btn__icon {
	color: #fff;
	border-color: rgba(255, 255, 255, .34);
	background: rgba(5, 10, 18, .24);
}
.gx-header-links[data-phimsex-links-layout="layout-4"] .gx-btn__copy small { color: rgba(255, 255, 255, .74); }

/* Layout 5 — Minimal Line. */
.gx-header-links[data-phimsex-links-layout="layout-5"] .gx-btn {
	border: 0;
	border-bottom: 2px solid color-mix(in srgb, var(--gx-accent) 58%, var(--gx-theme-a));
	border-radius: 9px;
	background: color-mix(in srgb, var(--gx-theme-surface) 82%, #10141b);
	box-shadow: none;
}
.gx-header-links[data-phimsex-links-layout="layout-5"] .gx-btn__icon {
	border: 0;
	background: transparent;
}

/* --------------------------------------------------------------------------
   VIP panel — one theme class owns panel, title and service-button palette.
   -------------------------------------------------------------------------- */
.phimsex-vip-panel {
	--vip-bg: #0b1020;
	--vip-surface: #151c2f;
	--vip-text: #f8fafc;
	--vip-muted: #b8c1d8;
	--vip-accent-a: #22d3ee;
	--vip-accent-b: #f43f5e;
	position: relative;
	margin: 14px auto 0;
	padding: 20px;
	overflow: hidden;
	border: 1px solid color-mix(in srgb, var(--vip-accent-a) 36%, var(--vip-accent-b));
	border-radius: 20px;
	color: var(--vip-text);
	background:
		radial-gradient(circle at 8% 0%, color-mix(in srgb, var(--vip-accent-a) 22%, transparent), transparent 34%),
		radial-gradient(circle at 94% 110%, color-mix(in srgb, var(--vip-accent-b) 22%, transparent), transparent 36%),
		linear-gradient(145deg, var(--vip-surface), var(--vip-bg));
	box-shadow: 0 16px 34px rgba(2, 6, 23, .3), inset 0 1px rgba(255, 255, 255, .035);
}

.phimsex-vip-theme--ruby { --vip-bg:#26080c; --vip-surface:#4c1118; --vip-accent-a:#fb7185; --vip-accent-b:#991b1b; }
.phimsex-vip-theme--rose { --vip-bg:#28091b; --vip-surface:#500f38; --vip-accent-a:#f9a8d4; --vip-accent-b:#be185d; }
.phimsex-vip-theme--flame { --vip-bg:#2b1006; --vip-surface:#5a2008; --vip-accent-a:#fdba74; --vip-accent-b:#c2410c; }
.phimsex-vip-theme--gold { --vip-bg:#201704; --vip-surface:#453309; --vip-accent-a:#fde68a; --vip-accent-b:#b45309; --vip-muted:#f5deb0; }
.phimsex-vip-theme--emerald { --vip-bg:#042019; --vip-surface:#073c30; --vip-accent-a:#6ee7b7; --vip-accent-b:#047857; }
.phimsex-vip-theme--cyan { --vip-bg:#06202a; --vip-surface:#0b3c4c; --vip-accent-a:#67e8f9; --vip-accent-b:#0369a1; }
.phimsex-vip-theme--cobalt { --vip-bg:#07162f; --vip-surface:#102b5b; --vip-accent-a:#93c5fd; --vip-accent-b:#1d4ed8; }
.phimsex-vip-theme--violet { --vip-bg:#18092d; --vip-surface:#32145b; --vip-accent-a:#d8b4fe; --vip-accent-b:#7e22ce; }
.phimsex-vip-theme--graphite { --vip-bg:#0f172a; --vip-surface:#273449; --vip-accent-a:#cbd5e1; --vip-accent-b:#334155; }

.ggv-dark-links-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin: 0 42px 16px 0;
}

.ggv-dark-links-title {
	display: inline-flex;
	align-items: center;
	min-height: 38px;
	margin: 0;
	padding: 0 14px;
	border: 1px solid color-mix(in srgb, var(--vip-accent-a) 58%, var(--vip-accent-b));
	border-radius: 999px;
	color: #fff;
	background: linear-gradient(105deg, var(--vip-accent-b), var(--vip-accent-a));
	box-shadow: 0 8px 18px -13px var(--vip-accent-a);
	font-size: clamp(13px, 1.4vw, 17px);
	font-weight: 950;
	line-height: 1.15;
}

.phimsex-vip-theme--legacy .ggv-dark-links-title {
	color: #07111c;
	border-color: rgba(255, 255, 255, .18);
	background: linear-gradient(105deg, #8fe8ff, #ffe45c 36%, #ff8fc7 68%, #ff365f);
}

.ggv-dark-links-note {
	max-width: 470px;
	margin: 0;
	color: var(--vip-muted);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.45;
	text-align: right;
}

.phimsex-vip-panel__body { display: block; }
.phimsex-vip-panel.is-collapsed .phimsex-vip-panel__body { display: none; }

.phimsex-vip-services__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.phimsex-vip-service {
	position: relative;
	display: grid;
	grid-template-columns: 34px minmax(0, 1fr) 26px;
	align-items: center;
	min-height: 56px;
	padding: 9px 10px;
	border: 1px solid color-mix(in srgb, var(--vip-accent-a) 40%, rgba(255, 255, 255, .16));
	border-radius: 13px;
	color: #fff;
	background: linear-gradient(135deg, var(--vip-accent-b), color-mix(in srgb, var(--vip-accent-a) 68%, var(--vip-accent-b)));
	box-shadow: 0 8px 18px rgba(0, 0, 0, .22), inset 0 1px rgba(255, 255, 255, .16);
	font-size: 12px;
	font-weight: 850;
	line-height: 1.3;
	text-decoration: none;
	transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}

.phimsex-vip-service:nth-child(even) {
	background: linear-gradient(315deg, var(--vip-accent-b), color-mix(in srgb, var(--vip-accent-a) 68%, var(--vip-accent-b)));
}

/* Classic keeps intentionally varied service colors. */
.phimsex-vip-theme--legacy .btn1 { background:linear-gradient(135deg,#0ea5e9,#1d4ed8); }
.phimsex-vip-theme--legacy .btn2 { color:#241404; background:linear-gradient(135deg,#fff0a8,#f59e0b); }
.phimsex-vip-theme--legacy .btn3 { background:linear-gradient(135deg,#2dd4bf,#4f46e5); }
.phimsex-vip-theme--legacy .btn4 { background:linear-gradient(135deg,#475569,#020617); }
.phimsex-vip-theme--legacy .btn5 { background:linear-gradient(135deg,#38bdf8,#075985); }
.phimsex-vip-theme--legacy .btn6 { background:linear-gradient(135deg,#fb7185,#9f1239); }
.phimsex-vip-theme--legacy .btn7 { background:linear-gradient(135deg,#f472b6,#831843); }
.phimsex-vip-theme--legacy .btn8 { background:linear-gradient(135deg,#a78bfa,#4c1d95); }

.phimsex-vip-service__index {
	display: grid;
	width: 28px;
	height: 28px;
	place-items: center;
	border: 1px solid rgba(255, 255, 255, .3);
	border-radius: 50%;
	background: rgba(2, 6, 23, .22);
	font-size: 10px;
	font-weight: 900;
}
.phimsex-vip-service__label { min-width: 0; }
.phimsex-vip-service__arrow {
	display: grid;
	width: 24px;
	height: 24px;
	place-items: center;
	border-radius: 50%;
	color: #081018;
	background: rgba(255, 255, 255, .9);
	font-size: 19px;
}

.phimsex-vip-service:hover,
.phimsex-vip-service:focus-visible {
	color: #fff;
	filter: brightness(1.08);
	outline: 2px solid color-mix(in srgb, var(--vip-accent-a) 72%, #fff);
	outline-offset: 2px;
	transform: translateY(-2px);
	box-shadow: 0 13px 24px rgba(0, 0, 0, .28), inset 0 1px rgba(255, 255, 255, .2);
}
.phimsex-vip-theme--legacy .btn2:hover,
.phimsex-vip-theme--legacy .btn2:focus-visible { color:#241404; }
.phimsex-vip-service:active { transform: translateY(0) scale(.99); }

.phimsex-vip-panel__toggle {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 2;
	display: grid;
	width: 36px;
	height: 36px;
	place-items: center;
	padding: 0;
	cursor: pointer;
	border: 1px solid color-mix(in srgb, var(--vip-accent-a) 52%, #111827);
	border-radius: 50%;
	color: #07111c;
	background: linear-gradient(135deg, var(--vip-accent-a), color-mix(in srgb, var(--vip-accent-b) 46%, #fff));
	box-shadow: 0 3px 8px rgba(0, 0, 0, .25);
}

.ggv-dark-links-toggle__icon { display:block; width:16px; height:16px; }
.ggv-dark-links-toggle__icon::before {
	display: block;
	width: 10px;
	height: 10px;
	margin: 4px 0 0 3px;
	border-right: 3px solid currentColor;
	border-bottom: 3px solid currentColor;
	content: "";
	transform: rotate(225deg);
	transition: transform .18s ease;
}
.phimsex-vip-panel.is-collapsed .ggv-dark-links-toggle__icon::before { transform: rotate(45deg); }

.phimsex-vip-services__empty {
	margin: 0;
	padding: 12px;
	border: 1px dashed color-mix(in srgb, var(--vip-accent-a) 38%, rgba(255, 255, 255, .25));
	border-radius: 12px;
	color: var(--vip-muted);
	text-align: center;
}

/* Header search sizing remains canonical and independent of support blocks. */
.vtt-header-search,
.vtt-header-search__inner {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
}
.vtt-header-search__inner > * { min-width: 0; }

@media (max-width: 767px) {
	.gx-header-links {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 7px;
	}
	.gx-header-links .gx-btn {
		grid-template-columns: 30px minmax(0, 1fr);
		min-height: 54px;
		padding: 6px 7px;
		gap: 6px;
		border-radius: 11px;
	}
	.gx-header-links .gx-btn__icon {
		width: 30px;
		height: 30px;
		border-radius: 9px;
		font-size: 14px;
	}
	.gx-header-links .gx-btn__arrow { display: none; }
	.gx-header-links .gx-btn__copy small { font-size: 7px; letter-spacing: .055em; }
	.gx-header-links .gx-btn__copy strong { font-size: clamp(9px, 2.55vw, 11px); }
	.gx-header-links[data-phimsex-links-layout="layout-2"] .gx-btn {
		grid-template-columns: 26px minmax(0, 1fr);
		min-height: 46px;
		padding: 5px 6px;
	}
	.gx-header-links[data-phimsex-links-layout="layout-2"] .gx-btn__icon {
		width: 26px;
		height: 26px;
		font-size: 12px;
	}
	.phimsex-vip-panel {
		padding: 15px;
		border-radius: 16px;
	}
	.ggv-dark-links-head {
		display: block;
		margin-right: 42px;
	}
	.ggv-dark-links-note {
		margin-top: 8px;
		text-align: left;
	}
	.phimsex-vip-service {
		min-height: 52px;
		font-size: clamp(10px, 2.5vw, 12px);
	}
}

@media (max-width: 500px) {
	.phimsex-vip-services__grid { grid-template-columns: 1fr; }
}

@media (max-width: 360px) {
	.gx-header-links { gap: 5px; }
	.gx-header-links .gx-btn {
		grid-template-columns: 25px minmax(0, 1fr);
		padding: 5px;
	}
	.gx-header-links .gx-btn__icon {
		width: 25px;
		height: 25px;
		font-size: 11px;
	}
	.gx-header-links .gx-btn__copy small { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.gx-header-links .gx-btn,
	.phimsex-vip-service,
	.ggv-dark-links-toggle__icon::before { transition: none; }
}
