/* 18+ PhimSex v3.1.0 — legacy support blocks with independent 10-theme layers. */
:root {
	--phimsex-support-bg-start: #000;
	--phimsex-support-bg-end: #000;
	--phimsex-support-border: color-mix(in srgb, var(--vtt-yellow, #ffd82f) 26%, #000);
	--phimsex-vip-bg: #0b1020;
	--phimsex-vip-surface: #151c2f;
	--phimsex-vip-text: #f8fafc;
	--phimsex-vip-muted: #b8c1d8;
}

.phimsex-header-support-area {
	clear: both;
	width: 100%;
	color: var(--phimsex-vip-text);
	background: #000;
	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, .04), 0 8px 20px -18px rgba(0, 0, 0, .9);
}

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

.gx-header-links {
	--gx-a: #ef4444;
	--gx-b: #991b1b;
	--gx-text: #fff;
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 10px;
	margin: 0 auto;
	padding: 0;
}

.gx-btn {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	min-height: 44px;
	padding: 8px 12px;
	overflow: hidden;
	border: 1px solid rgba(15, 23, 42, .82);
	border-radius: 14px;
	color: var(--gx-text);
	background: var(--gx-a);
	background: linear-gradient(135deg, var(--gx-a), var(--gx-b));
	box-shadow: 0 4px 10px rgba(15, 23, 42, .24), inset 0 1px rgba(255, 255, 255, .28);
	font-size: 13px;
	font-weight: 900;
	line-height: 1.15;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}

.gx-btn::before {
	position: absolute;
	inset: 0 auto 0 -45%;
	width: 32%;
	content: "";
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .28), transparent);
	transform: skewX(-18deg);
	transition: left .35s ease;
}

.gx-btn:hover,
.gx-btn:focus-visible {
	color: var(--gx-text);
	filter: saturate(1.12) brightness(1.05);
	outline: 3px solid color-mix(in srgb, var(--vtt-yellow, #ffd82f) 38%, transparent);
	outline-offset: 2px;
	transform: translateY(-2px);
	box-shadow: 0 10px 18px rgba(2, 6, 23, .28), inset 0 1px rgba(255, 255, 255, .3);
}

.gx-btn:hover::before,
.gx-btn:focus-visible::before {
	left: 115%;
}

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

/* Theme 01: exact v2.0.1 Quick Link gradients. */
.gx-header-links[data-phimsex-links-theme="legacy"] .gx-style-1 { background: linear-gradient(135deg, #ffbf3f, #ef4444); }
.gx-header-links[data-phimsex-links-theme="legacy"] .gx-style-2 { background: linear-gradient(135deg, #22d3ee, #2563eb); }
.gx-header-links[data-phimsex-links-theme="legacy"] .gx-style-3 { background: linear-gradient(135deg, #64748b, #0f172a); }
.gx-header-links[data-phimsex-links-theme="legacy"] .gx-style-4 { background: linear-gradient(135deg, #fb7185, #be123c); }
.gx-header-links[data-phimsex-links-theme="legacy"] .gx-style-5 { --gx-text: #261600; background: linear-gradient(135deg, #fde68a, #f59e0b); }

.gx-header-links[data-phimsex-links-theme="ruby"] { --gx-a: #ef4444; --gx-b: #7f1d1d; }
.gx-header-links[data-phimsex-links-theme="rose"] { --gx-a: #fb7185; --gx-b: #9d174d; }
.gx-header-links[data-phimsex-links-theme="flame"] { --gx-a: #fb923c; --gx-b: #c2410c; }
.gx-header-links[data-phimsex-links-theme="gold"] { --gx-a: #fde68a; --gx-b: #d97706; --gx-text: #281700; }
.gx-header-links[data-phimsex-links-theme="emerald"] { --gx-a: #34d399; --gx-b: #047857; }
.gx-header-links[data-phimsex-links-theme="cyan"] { --gx-a: #22d3ee; --gx-b: #0369a1; }
.gx-header-links[data-phimsex-links-theme="cobalt"] { --gx-a: #60a5fa; --gx-b: #1e40af; }
.gx-header-links[data-phimsex-links-theme="violet"] { --gx-a: #c084fc; --gx-b: #6d28d9; }
.gx-header-links[data-phimsex-links-theme="graphite"] { --gx-a: #64748b; --gx-b: #111827; }

.gx-header-links:not([data-phimsex-links-theme="legacy"]) .gx-btn:nth-child(even) {
	background: linear-gradient(315deg, var(--gx-a), var(--gx-b));
}

.gx-header-links:not([data-phimsex-links-theme="legacy"]) .gx-btn:nth-child(3n) {
	background: linear-gradient(135deg, color-mix(in srgb, var(--gx-a) 72%, #fff), var(--gx-b));
}

.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) 26%, transparent);
	border-radius: 20px;
	color: var(--vip-text);
	background: var(--vip-bg);
	background:
		radial-gradient(circle at 8% 0%, color-mix(in srgb, var(--vip-accent-a) 18%, transparent), transparent 32%),
		radial-gradient(circle at 94% 110%, color-mix(in srgb, var(--vip-accent-b) 18%, transparent), transparent 34%),
		linear-gradient(145deg, var(--vip-surface), var(--vip-bg));
	box-shadow: 0 16px 34px rgba(2, 6, 23, .3);
}

.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-radius: 999px;
	color: #07111c;
	background: linear-gradient(105deg, #8fe8ff, #ffe45c 36%, #ff8fc7 68%, #ff365f);
	font-size: clamp(13px, 1.4vw, 17px);
	font-weight: 950;
	line-height: 1.15;
}

.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 rgba(255, 255, 255, .16);
	border-radius: 13px;
	color: #fff;
	background: linear-gradient(135deg, var(--vip-accent-a), var(--vip-accent-b));
	box-shadow: 0 8px 18px rgba(0, 0, 0, .2), inset 0 1px rgba(255, 255, 255, .2);
	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__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, .2);
	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 rgba(255, 255, 255, .74);
	outline-offset: 2px;
	transform: translateY(-2px);
	box-shadow: 0 13px 24px rgba(0, 0, 0, .26), inset 0 1px rgba(255, 255, 255, .22);
}

.phimsex-vip-service:active {
	transform: translateY(0) scale(.99);
}

/* Theme 01: exact v2.0.1 VIP button gradients. */
.phimsex-vip-panel[data-phimsex-vip-theme="legacy"] .btn1 { background: linear-gradient(135deg, #0ea5e9, #1d4ed8); }
.phimsex-vip-panel[data-phimsex-vip-theme="legacy"] .btn2 { color: #241404; background: linear-gradient(135deg, #fff0a8, #f59e0b); }
.phimsex-vip-panel[data-phimsex-vip-theme="legacy"] .btn3 { background: linear-gradient(135deg, #2dd4bf, #4f46e5); }
.phimsex-vip-panel[data-phimsex-vip-theme="legacy"] .btn4 { background: linear-gradient(135deg, #475569, #020617); }
.phimsex-vip-panel[data-phimsex-vip-theme="legacy"] .btn5 { background: linear-gradient(135deg, #38bdf8, #075985); }
.phimsex-vip-panel[data-phimsex-vip-theme="legacy"] .btn6 { background: linear-gradient(135deg, #fb7185, #9f1239); }
.phimsex-vip-panel[data-phimsex-vip-theme="legacy"] .btn7 { background: linear-gradient(135deg, #f472b6, #831843); }
.phimsex-vip-panel[data-phimsex-vip-theme="legacy"] .btn8 { background: linear-gradient(135deg, #a78bfa, #4c1d95); }
.phimsex-vip-panel[data-phimsex-vip-theme="legacy"] .btn2:hover,
.phimsex-vip-panel[data-phimsex-vip-theme="legacy"] .btn2:focus-visible { color: #241404; }

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

.phimsex-vip-panel:not([data-phimsex-vip-theme="legacy"]) .phimsex-vip-service:nth-child(even) {
	background: linear-gradient(315deg, var(--vip-accent-a), var(--vip-accent-b));
}

.phimsex-vip-panel:not([data-phimsex-vip-theme="legacy"]) .ggv-dark-links-title {
	color: #fff;
	background: linear-gradient(105deg, var(--vip-accent-b), var(--vip-accent-a));
}

.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 #111827;
	border-radius: 50%;
	color: #111827;
	background: #fde047;
	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 rgba(255, 255, 255, .25);
	border-radius: 12px;
	color: var(--vip-muted);
	text-align: center;
}

.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: 900px) {
	.gx-header-links {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
	.gx-header-links .gx-btn:nth-last-child(-n + 2) {
		grid-column: span 1;
	}
}

@media (max-width: 760px) {
	.gx-header-links {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 7px;
	}
	.gx-btn {
		min-height: 44px;
		padding: 7px 6px;
		border-radius: 11px;
		font-size: clamp(10px, 2.7vw, 12px);
	}
	.gx-btn:last-child:nth-child(odd) {
		grid-column: 1 / -1;
	}
	.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 (prefers-reduced-motion: reduce) {
	.gx-btn,
	.gx-btn::before,
	.phimsex-vip-service,
	.ggv-dark-links-toggle__icon::before {
		transition: none;
	}
}
