/* ============================================================
   TTModz Theme — Custom Styles
   ============================================================ */

/* ===== Base ===== */
html {
	scroll-behavior: smooth;
	overflow-x: hidden;
}
body {
	margin: 0;
	scrollbar-color: var(--color-primary);
	animation: pageLoad 0.5s ease-out;
	overflow-x: hidden;
}
html, body {
	max-width: 100vw;
}
* {
	scroll-margin-top: 80px;
}
a {
	transition: color 0.2s ease, opacity 0.2s ease;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
	width: 5px;
	background-color: #0e0f17;
}
::-webkit-scrollbar-thumb {
	background-color: var(--color-primary);
}

/* ===== Animations ===== */
@keyframes pageLoad {
	from { opacity: 0; }
	to { opacity: 1; }
}
@keyframes revealUp {
	from { opacity: 0; transform: translateY(40px); }
	to { opacity: 1; transform: translateY(0); }
}
@keyframes float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-12px); }
}
@keyframes glowPulse {
	0%, 100% { box-shadow: 0 0 20px rgba(68, 149, 253, 0.15); }
	50% { box-shadow: 0 0 35px rgba(68, 149, 253, 0.3); }
}
@keyframes btnShimmer {
	0% { background-position: 150% 0; }
	100% { background-position: -50% 0; }
}
@keyframes categoryShimmer {
	0% { background-position: 150% 0; }
	100% { background-position: -50% 0; }
}
@keyframes scrollLeft {
	0% { transform: translateX(0); }
	100% { transform: translateX(-50%); }
}
@keyframes scrollRight {
	0% { transform: translateX(-50%); }
	100% { transform: translateX(0); }
}
@keyframes productHeroReveal {
	0% { opacity: 0; transform: perspective(1200px) rotateY(-15deg) rotateX(5deg) scale(0.9) translateZ(-80px); filter: blur(6px); }
	40% { opacity: 0.7; filter: blur(2px); }
	100% { opacity: 1; transform: perspective(1200px) rotateY(0) rotateX(0) scale(1) translateZ(0); filter: blur(0); }
}
@keyframes thumbnailSlideIn {
	0% { opacity: 0; transform: translateX(40px) scale(0.92); }
	100% { opacity: 1; transform: translateX(0) scale(1); }
}

/* ===== Loader ===== */
.loader-wrapper {
	transition: transform 1s cubic-bezier(0.7, 0, 0.2, 1);
}
.loader-wrapper.gate-open {
	transform: translateY(-100%);
}
.loader-wrapper.done {
	display: none !important;
}
.loader {
	width: 3.2vw;
	aspect-ratio: 1;
	--c: no-repeat linear-gradient(var(--color-primary) calc(50% - 10px), #0000 0 calc(50% + 10px), var(--color-primary) 0);
	background: var(--c) 0% 100%, var(--c) 50% 100%, var(--c) 100% 100%;
	background-size: 20% calc(200% + 20px);
	animation: l4 1s infinite linear;
}
@keyframes l4 {
	33%  { background-position: 0% 50%, 50% 100%, 100% 100%; }
	50%  { background-position: 0% 0%, 50% 50%, 100% 100%; }
	66%  { background-position: 0% 0%, 50% 0%, 100% 50%; }
	100% { background-position: 0% 0%, 50% 0%, 100% 0%; }
}
.spinner-1 {
	aspect-ratio: 1;
	border-radius: 50%;
	--size: 4px;
	background: radial-gradient(farthest-side, white 94%, #0000) top/var(--size) var(--size) no-repeat, conic-gradient(#0000 30%, white);
	-webkit-mask: radial-gradient(farthest-side, #0000 calc(100% - var(--size)), #000 0);
	animation: l13 1s infinite linear;
}
@keyframes l13 { 100% { transform: rotate(1turn); } }

/* ===== Product Card Hover ===== */
.featured-product-item-radial {
	transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
	            box-shadow 0.55s cubic-bezier(0.22, 1, 0.36, 1),
	            border-color 0.55s cubic-bezier(0.22, 1, 0.36, 1);
	will-change: transform;
}
.featured-product-item-radial:hover {
	transform: translateY(-10px);
	box-shadow: 0 28px 60px rgba(0, 0, 0, 0.55),
	            0 0 40px rgba(68, 149, 253, 0.15),
	            0 0 0 1px rgba(68, 149, 253, 0.18) inset;
	border-color: rgba(68, 149, 253, 0.25) !important;
}
.featured-product-item-radial img.rounded-\[8px\],
.splide__slide .item img.rounded-\[8px\] {
	transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
	            filter 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.featured-product-item-radial:hover img.rounded-\[8px\],
.splide__slide .item:hover img.rounded-\[8px\] {
	transform: scale(1.07);
	filter: brightness(1.08) saturate(1.08);
}

/* ===== Splide Card 3D Tilt ===== */
.splide__slide .item {
	transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.5s ease;
	transform-style: preserve-3d;
	perspective: 1000px;
}
.splide__slide .item:hover {
	transform: perspective(1000px) rotateY(-3deg) rotateX(2deg) translateY(-6px);
	box-shadow: 0 25px 50px rgba(0,0,0,0.5), 0 0 40px rgba(68,149,253,0.1);
}

/* ===== Button Hover ===== */
.primary-gradient {
	transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
	cursor: pointer;
	user-select: none;
}
.primary-gradient:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(68,149,253,0.35);
	filter: brightness(1.1);
}
.primary-gradient:active {
	transform: translateY(0) scale(0.97);
}

/* ===== Blog Card 3D Hover ===== */
.blog-3d-card {
	transform-style: preserve-3d;
	perspective: 1000px;
	transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.5s ease;
}
.blog-3d-card:hover {
	transform: perspective(1000px) rotateY(-3deg) rotateX(2deg) translateY(-6px) !important;
	box-shadow: 0 25px 50px rgba(0,0,0,0.5), 0 0 40px rgba(68,149,253,0.1) !important;
	background: rgba(68,149,253,0.06) !important;
	border-color: rgba(68,149,253,0.15) !important;
}
.blog-3d-card img.rounded-\[8px\] {
	transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.blog-3d-card:hover img.rounded-\[8px\] {
	transform: scale(1.05);
}

/* ===== Blog Card Alignment ===== */
.blog-card-title {
	min-height: 80px;
}
.blog-card-desc {
	min-height: 48px;
}
@media (max-width: 639px) {
	.blog-card-title {
		min-height: auto;
		font-size: 18px !important;
	}
	.blog-card-desc {
		min-height: auto;
		font-size: 13px !important;
	}
	.blog-card {
		padding: 14px !important;
	}
	.blog-card .text-white\/49 {
		font-size: 13px;
		height: 26px !important;
		padding-inline: 10px !important;
	}
}

/* ===== Blog Marquee Responsive ===== */
@media (max-width: 639px) {
	.concepts-row-left > div,
	.concepts-row-right > div {
		width: 260px !important;
	}
	.blog-3d-card {
		min-height: 320px !important;
	}
}
@media (min-width: 640px) and (max-width: 1023px) {
	.concepts-row-left > div,
	.concepts-row-right > div {
		width: 320px !important;
	}
}

/* ===== Blog Marquee Performance ===== */
.concepts-row-left,
.concepts-row-right {
	will-change: transform;
}
.concepts-row-left > div,
.concepts-row-right > div {
	cursor: pointer;
}

/* ===== Text Overflow Protection ===== */

/* Tags/badges — never wrap, ellipsis on overflow */
.flex-center[class*="bg-white/7"],
.flex-center[class*="bg-white/10"] {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 200px;
}

/* Product/blog titles in cards — always clamp */
.featured-product-item-radial .font-medium[class*="text-[22px]"],
.blog-3d-card .font-medium[class*="text-[22px]"],
.blog-3d-card .font-medium[class*="text-[18px]"] {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Card descriptions — clamp to 2 lines */
.featured-product-item-radial .text-white\/30[class*="text-[14px]"],
.blog-3d-card .text-white\/30[class*="text-[14px]"],
.blog-3d-card .text-white\/30[class*="text-[13px]"] {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* All buttons — never wrap */
.primary-gradient,
.btn-hover-3d,
.header-btn-hover {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Gallery car names — clamp */
.gallery-list .name {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 100%;
}

/* Basket product names */
.basket .text-\[20px\].font-medium {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Dynamic usernames */
.basket .text-\[20px\].text-white\/42 {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 200px;
}

/* ===== Tag Hover ===== */
.flex-center[class*="bg-white"] {
	transition: background 0.2s ease, color 0.2s ease;
}

/* ===== Price Glow ===== */
.text-\[\#50FF76\] {
	text-shadow: 0 0 12px rgba(80,255,118,0.3);
}

/* ===== Hero Parallax ===== */
.hero-bg-mask img, [class*="hero"] img {
	transition: transform 0.3s ease-out;
}

/* ===== Clickable Items ===== */
.featured-product-item-radial, .gallery-list .item, [data-images] {
	cursor: pointer;
}

/* ===== FAQ Accordion ===== */
.faq-item {
	transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, transform 0.3s ease;
}
.faq-item:hover {
	border-color: rgba(68,149,253,0.15);
	transform: translateX(4px);
}
.faq-item.active {
	border-color: rgba(68,149,253,0.25);
	box-shadow: 0 8px 30px rgba(0,0,0,0.2), 0 0 20px rgba(68,149,253,0.06), inset 0 1px 0 rgba(68,149,253,0.1);
}
.faq-item .faq-question > div:first-child {
	transition: color 0.3s ease, text-shadow 0.3s ease;
}
.faq-item.active .faq-question > div:first-child {
	text-shadow: 0 0 20px rgba(255,255,255,0.08);
}
.faq-item .faq-question > div:last-child {
	transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.3s ease;
}
.faq-item.active .faq-question > div:last-child {
	transform: rotate(180deg);
	color: var(--color-primary);
}
.faq-item .answer {
	transition: opacity 0.35s ease, transform 0.35s ease;
}

/* ===== Thumbnail 3D ===== */
.thumbnails .splide__slide img {
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.thumbnails .splide__slide:hover img {
	transform: scale(1.08);
	box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* ===== Auth Modal ===== */
.auth-input { height: 58px; }
.auth-tab { padding: 12px 24px; border-bottom: 2px solid transparent; }
.auth-tab.active-tab { border-bottom-color: white; }
.auth-panel { padding: 24px 32px 32px; }
.auth-panel[data-panel="login"] { min-height: 420px; }
.auth-panel[data-panel="reset"],
.auth-panel[data-panel="register"] { display: none; }
.auth-tabs-wrapper { gap: 0; }
.auth-login-bg { background-image: url(../images/background/login.png); background-size: cover; max-width: 449px; }
.toggle-password-label { font-size: 12px; }
.toggle-password-label svg { display: inline; }
.back-to-login { font-size: 18px; margin: -36px 0 0 -16px; }
.back-to-login svg { transform: rotate(180deg); }
.auth-checkbox { accent-color: var(--color-primary); }

/* ===== Info Tooltip ===== */
.info-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	padding: 1px 8px;
	border-radius: 4px;
	border: 1px solid rgba(255,255,255,0.12);
	background: rgba(255,255,255,0.04);
	color: rgba(255,255,255,0.4);
	font-size: 11px;
	font-weight: 500;
	line-height: 1;
	height: 20px;
	cursor: pointer;
	transition: all 0.2s;
	user-select: none;
	vertical-align: middle;
	flex-shrink: 0;
}
.info-btn:hover {
	border-color: var(--color-primary);
	color: var(--color-primary);
	background: rgba(68,149,253,0.08);
}
.info-btn .info-popup {
	display: none;
	position: absolute;
	bottom: calc(100% + 10px);
	left: 0;
	min-width: 250px;
	max-width: 300px;
	padding: 12px 16px;
	border-radius: 8px;
	background: #161724;
	border: 1px solid rgba(255,255,255,0.1);
	color: rgba(255,255,255,0.6);
	font-size: 12px;
	font-weight: 400;
	line-height: 1.7;
	box-shadow: 0 12px 32px rgba(0,0,0,0.5);
	z-index: 100;
	white-space: normal;
}
.info-btn .info-popup::after {
	content: '';
	position: absolute;
	top: 100%;
	left: 16px;
	border: 6px solid transparent;
	border-top-color: #161724;
}
.info-btn:hover .info-popup {
	display: block;
}

/* ===== Header ===== */
.menu-top-bar { display: none; }
.dropdown { display: none; flex-direction: column !important; gap: 4px !important; }
.dropdown a { display: block !important; white-space: nowrap; text-align: left; width: 100% !important; }
.logout-btn { display: none; }

/* ===== Gallery Popup (Package Car List Info) =====
   Rebuilt: no Splide. FLIP image expand + panel slide-up. */
.gallery-item-popup { display: flex; align-items: center; justify-content: center; }

.gallery-popup-backdrop {
	background: rgba(0,0,0,0);
	backdrop-filter: blur(0); -webkit-backdrop-filter: blur(0);
	transition: background 0.5s cubic-bezier(0.22,1,0.36,1), backdrop-filter 0.5s cubic-bezier(0.22,1,0.36,1), -webkit-backdrop-filter 0.5s cubic-bezier(0.22,1,0.36,1);
}
.gallery-item-popup.is-open .gallery-popup-backdrop {
	background: rgba(7,8,14,0.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.gallery-item-popup.is-closing .gallery-popup-backdrop {
	background: rgba(0,0,0,0); backdrop-filter: blur(0); -webkit-backdrop-filter: blur(0);
}

.gallery-popup-card {
	position: relative; z-index: 1;
	max-width: 900px; width: 92%; max-height: 92vh;
	overflow-y: auto; overflow-x: hidden;
	/* Hide scrollbar visually but keep scroll functionality */
	scrollbar-width: none; -ms-overflow-style: none;
	background: rgba(17,18,27,0.97); border: 1px solid rgba(255,255,255,0.08); border-radius: 16px;
	box-shadow: 0 40px 100px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.04) inset;
	transform: translateY(40px) scale(0.92); opacity: 0;
	transition: transform 0.6s cubic-bezier(0.22,1,0.36,1), opacity 0.45s ease;
	will-change: transform, opacity;
}
.gallery-popup-card::-webkit-scrollbar { display: none; }
.gallery-item-popup.is-open .gallery-popup-card { transform: translateY(0) scale(1); opacity: 1; }
.gallery-item-popup.is-closing .gallery-popup-card { transform: translateY(40px) scale(0.92); opacity: 0; }

.gallery-popup-img-area {
	position: relative; width: 100%; aspect-ratio: 16/9; overflow: hidden;
	border-radius: 16px 16px 0 0; background: #08090f;
}
.gallery-popup-hero-img {
	width: 100%; height: 100%; object-fit: cover; display: block;
	transition: opacity 0.35s ease, transform 0.55s cubic-bezier(0.22,1,0.36,1);
}
.gallery-item-popup .gallery-popup-hero-img { transform: scale(1.08); }
.gallery-item-popup.is-open .gallery-popup-hero-img { transform: scale(1); }

.gallery-popup-prev, .gallery-popup-next {
	position: absolute; top: 50%; transform: translateY(-50%);
	width: 48px; height: 48px; border-radius: 50%;
	background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.12);
	backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
	color: #fff; display: flex; align-items: center; justify-content: center;
	cursor: pointer; z-index: 2; opacity: 0;
	transition: opacity 0.3s ease, background 0.3s ease, transform 0.3s ease;
}
.gallery-popup-img-area:hover .gallery-popup-prev,
.gallery-popup-img-area:hover .gallery-popup-next { opacity: 1; }
.gallery-popup-prev:hover, .gallery-popup-next:hover {
	background: rgba(68,149,253,0.45); transform: translateY(-50%) scale(1.08);
}
.gallery-popup-prev { left: 14px; }
.gallery-popup-next { right: 14px; }

.gallery-popup-dots {
	position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
	display: flex; gap: 6px; z-index: 2;
}
.gallery-popup-dot {
	width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.35);
	border: 0; padding: 0; cursor: pointer; transition: background 0.25s ease, transform 0.25s ease;
}
.gallery-popup-dot.active { background: var(--color-primary); transform: scale(1.35); }

.gallery-popup-meta {
	padding: 28px 32px 32px;
	transform: translateY(20px); opacity: 0;
	transition: transform 0.5s cubic-bezier(0.22,1,0.36,1) 0.18s, opacity 0.45s ease 0.18s;
}
.gallery-item-popup.is-open .gallery-popup-meta { transform: translateY(0); opacity: 1; }
.gallery-item-popup.is-closing .gallery-popup-meta { transform: translateY(20px); opacity: 0; transition-delay: 0s; }

@media (max-width: 640px) {
	.gallery-popup-card { width: 96%; border-radius: 12px; }
	.gallery-popup-img-area { border-radius: 12px 12px 0 0; }
	.gallery-popup-meta { padding: 20px 18px 24px; }
	.gallery-popup-prev, .gallery-popup-next { width: 38px; height: 38px; opacity: 0.8; }
}

/* ===== Product Page ===== */
.product-hero-img {
	animation: productHeroReveal 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
	transform-origin: left center;
}
.product-hero-img img {
	transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.product-hero-img:hover img {
	transform: scale(1.03);
}
.product-thumbnails-enter {
	animation: thumbnailSlideIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
	opacity: 0;
}
.thumbnail img {
	transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.3s ease;
}
.concepts-row-left:hover,
.concepts-row-right:hover {
	animation-play-state: paused;
}

/* ===== Category 3D Card ===== */
.category-3d-card {
	transform-style: preserve-3d;
	transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
	will-change: transform;
}
.category-3d-card img {
	transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.6s ease;
}
.category-3d-card:hover {
	box-shadow: 0 30px 60px rgba(0,0,0,0.5), 0 0 40px rgba(68,149,253,0.12), inset 0 0 0 1px rgba(68,149,253,0.15);
}
.category-3d-card:hover img {
	transform: scale(1.08);
	filter: brightness(1.15) contrast(1.05);
}
.category-3d-shine {
	position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0;
	background: linear-gradient(105deg, transparent 30%, rgba(68,149,253,0.08) 38%, rgba(68,149,253,0.18) 42%, rgba(255,255,255,0.22) 50%, rgba(68,149,253,0.18) 58%, rgba(68,149,253,0.08) 62%, transparent 70%);
	background-size: 250% 100%;
	transition: opacity 0.3s ease;
}
.category-3d-card:hover .category-3d-shine {
	opacity: 1;
	animation: categoryShimmer 1.4s ease-in-out infinite;
}
.category-3d-card::before {
	content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none;
	border-radius: inherit; border: 1.5px solid transparent; transition: border-color 0.4s ease;
}
.category-3d-card:hover::before {
	border-color: rgba(68,149,253,0.3);
}

/* ===== Deal Card 3D ===== */
.deal-3d-card {
	transform-style: preserve-3d;
	transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
	will-change: transform;
}
.deal-3d-img {
	transition: box-shadow 0.4s ease;
	border-radius: 8px;
}
.deal-3d-card:hover .deal-3d-img {
	box-shadow: 0 20px 40px rgba(0,0,0,0.45), 0 0 25px rgba(68,149,253,0.1);
}
.deal-3d-img img {
	transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.55s ease;
}
.deal-3d-card:hover .deal-3d-img img {
	transform: scale(1.07);
	filter: brightness(1.12) contrast(1.04);
}
.deal-3d-shine {
	position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0;
	background: linear-gradient(105deg, transparent 30%, rgba(68,149,253,0.06) 38%, rgba(68,149,253,0.15) 42%, rgba(255,255,255,0.2) 50%, rgba(68,149,253,0.15) 58%, rgba(68,149,253,0.06) 62%, transparent 70%);
	background-size: 250% 100%;
	transition: opacity 0.3s ease;
}
.deal-3d-card:hover .deal-3d-shine {
	opacity: 1;
	animation: categoryShimmer 1.4s ease-in-out infinite;
}
.deal-3d-img::before {
	content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none;
	border-radius: inherit; border: 1.5px solid transparent; transition: border-color 0.4s ease;
}
.deal-3d-card:hover .deal-3d-img::before {
	border-color: rgba(68,149,253,0.25);
}

/* ===== Button 3D Hover ===== */
.btn-hover-3d {
	position: relative; transform-style: preserve-3d; overflow: hidden;
	transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.35s ease, filter 0.35s ease;
}
.btn-hover-3d::after {
	content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0;
	background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,0.12) 45%, rgba(255,255,255,0.25) 50%, rgba(255,255,255,0.12) 55%, transparent 65%);
	background-size: 250% 100%;
	transition: opacity 0.3s ease;
}
.btn-hover-3d:hover {
	transform: translateY(-3px) scale(1.03);
	box-shadow: 0 12px 28px rgba(0,0,0,0.35), 0 0 20px rgba(68,149,253,0.15);
	filter: brightness(1.08);
}
.btn-hover-3d:hover::after { opacity: 1; animation: btnShimmer 1.2s ease-in-out infinite; }
.btn-hover-3d:active { transform: translateY(0) scale(0.98); box-shadow: 0 4px 12px rgba(0,0,0,0.3); transition-duration: 0.1s; }
.btn-hover-3d.primary-gradient:hover { box-shadow: 0 14px 32px rgba(0,0,0,0.4), 0 0 30px rgba(68,149,253,0.25); }
.btn-hover-3d[class*="border-primary"]:hover { border-color: rgba(68,149,253,0.8); box-shadow: 0 10px 25px rgba(0,0,0,0.3), 0 0 20px rgba(68,149,253,0.2), inset 0 0 15px rgba(68,149,253,0.06); }
.btn-hover-3d[class*="bg-primary/4"]:hover { background: rgba(68,149,253,0.08); box-shadow: 0 14px 30px rgba(0,0,0,0.35), 0 0 25px rgba(68,149,253,0.12); }

/* ===== Header Button Hover ===== */
.header-btn-hover {
	position: relative; overflow: hidden;
	transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), color 0.3s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.header-btn-hover::after {
	content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0;
	background: linear-gradient(105deg, transparent 35%, rgba(68,149,253,0.15) 45%, rgba(255,255,255,0.2) 50%, rgba(68,149,253,0.15) 55%, transparent 65%);
	background-size: 250% 100%;
	transition: opacity 0.3s ease;
}
.header-btn-hover:hover {
	transform: translateY(-2px) scale(1.05); color: #fff;
	background: rgba(68,149,253,0.12); border-radius: 5px;
	box-shadow: 0 6px 20px rgba(0,0,0,0.3), 0 0 15px rgba(68,149,253,0.15);
	text-shadow: 0 0 10px rgba(68,149,253,0.4);
}
.header-btn-hover:hover::after { opacity: 1; animation: btnShimmer 1.2s ease-in-out infinite; }
.header-btn-hover:hover svg { filter: drop-shadow(0 0 6px rgba(68,149,253,0.5)); }
.header-btn-hover[class*="border-primary"]:hover {
	border-color: rgba(68,149,253,0.9); background: rgba(68,149,253,0.15);
	box-shadow: 0 6px 20px rgba(0,0,0,0.3), 0 0 20px rgba(68,149,253,0.2), inset 0 0 12px rgba(68,149,253,0.08);
}
.header-btn-hover:active { transform: translateY(0) scale(0.97); transition-duration: 0.1s; }

/* ===== Footer ===== */
.footer-link {
	position: relative; display: inline-block; padding: 2px 0;
	transition: color 0.3s ease, transform 0.3s ease, text-shadow 0.3s ease;
}
.footer-link::after {
	content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 1.5px;
	background: linear-gradient(90deg, var(--color-primary), rgba(68,149,253,0.3));
	transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.footer-link:hover { color: var(--color-primary); transform: translateX(6px); text-shadow: 0 0 12px rgba(68,149,253,0.3); }
.footer-link:hover::after { width: 100%; }
.footer-icon {
	transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.35s ease, filter 0.35s ease;
}
.footer-icon:hover {
	transform: translateY(-4px) scale(1.12);
	box-shadow: 0 8px 20px rgba(0,0,0,0.4), 0 0 18px rgba(68,149,253,0.25);
	filter: brightness(1.15);
}
.footer-icon:active { transform: translateY(0) scale(0.95); transition-duration: 0.1s; }


/* ============================================================
   RESPONSIVE
   ============================================================ */

/* ---------- Mobile (max 639px) ---------- */
@media (max-width: 639px) {
	/* Grids → single column */
	.checkout-grid { grid-template-columns: 1fr !important; gap: 32px !important; }
	.checkout-grid > div:first-child { padding-right: 0 !important; }
	.checkout-grid > div:last-child { padding-left: 0 !important; position: static !important; }
	.account-grid { grid-template-columns: 1fr !important; gap: 24px !important; margin-top: 30px !important; }
	.about-info-grid { grid-template-columns: 1fr !important; gap: 16px !important; }
	.about-programs-grid { grid-template-columns: 1fr !important; gap: 24px !important; }
	.order-detail-grid { grid-template-columns: 1fr !important; gap: 16px !important; }
	.account-details-grid { grid-template-columns: 1fr !important; gap: 16px !important; }
	.coupon-grid { grid-template-columns: 1fr !important; gap: 8px !important; }
	.deals-categories-grid { grid-template-columns: 1fr !important; gap: 24px !important; }

	/* Orders table → card layout */
	.orders-table-header { display: none !important; }
	.orders-table-row {
		grid-template-columns: 1fr 1fr !important; gap: 8px !important; padding: 12px !important;
		border: 1px solid rgba(255,255,255,0.06) !important; border-radius: 8px !important; margin-bottom: 8px;
	}

	/* Steps bar */
	.steps-divider { width: 30px !important; }
	.steps-circle { width: 32px !important; height: 32px !important; font-size: 14px !important; }

	/* Product gallery → vertical stack */
	.product-gallery { height: auto !important; flex-direction: column !important; }
	.product-gallery > .thumbnail { width: 100% !important; height: 280px; }
	.product-gallery > .splide.thumbnails { width: 100% !important; height: 80px !important; }
	.product-gallery > .splide.thumbnails .splide__track { height: 80px !important; }
	.thumbnails .splide__slide { height: 80px !important; width: auto !important; }
	.thumbnails .splide__slide img { height: 80px !important; width: auto !important; aspect-ratio: 16/9; object-fit: cover; }

	/* Title scaling */
	.text-\[46px\] { font-size: 28px !important; }
	.text-\[60px\] { font-size: 32px !important; }
	.text-\[52px\] { font-size: 36px !important; }
	.text-\[38\.5px\] { font-size: 24px !important; }
	.text-\[36px\] { font-size: 24px !important; }
	.text-\[32px\] { font-size: 22px !important; }
	.text-\[30px\] { font-size: 20px !important; }
	.text-\[28px\] { font-size: 20px !important; }

	/* Auth modal — centered */
	.login-fivem-wrapper { align-items: center !important; justify-content: center !important; padding: 16px !important; }
	.auth-login-bg { max-width: 100% !important; width: 100% !important; max-height: 90vh !important; border-radius: 14px !important; background-image: none !important; }
	.auth-panel { padding: 20px 16px 24px !important; }
	.auth-input { height: 48px; }
	.auth-tabs-wrapper { padding-left: 16px !important; padding-right: 16px !important; }

	/* Info tooltip — centered overlay */
	.info-btn .info-popup {
		position: fixed; left: 50% !important; right: auto !important; bottom: auto !important; top: 50% !important;
		transform: translate(-50%, -50%); min-width: calc(100vw - 32px); max-width: calc(100vw - 32px);
		padding: 16px 20px; font-size: 14px;
	}
	.info-btn .info-popup::after { display: none; }

	/* Order status */
	.order-product-card { flex-direction: column !important; align-items: flex-start !important; }
	.order-product-card img { width: 100% !important; height: auto !important; max-height: 160px; }
	.payment-total-label { font-size: 22px !important; }
	.payment-total-value { font-size: 26px !important; }
	.order-status-card > div { padding-left: 16px !important; padding-right: 16px !important; }

	/* Account */
	.account-section .text-\[46px\] { font-size: 24px !important; }

	/* Hero car images */
	.unbranded-car-image { width: 100% !important; height: auto !important; }
}

/* ---------- Tablet (640px — 1023px) ---------- */
@media (min-width: 640px) and (max-width: 1023px) {
	.checkout-grid { grid-template-columns: 1fr !important; gap: 40px !important; }
	.checkout-grid > div:first-child { padding-right: 0 !important; }
	.checkout-grid > div:last-child { padding-left: 0 !important; position: static !important; }
	.account-grid { grid-template-columns: 1fr !important; gap: 32px !important; }
	.about-info-grid { grid-template-columns: 1fr 1fr !important; }
	.about-programs-grid { grid-template-columns: 1fr !important; gap: 32px !important; }
	.product-gallery { height: 420px !important; }
	.deals-categories-grid { grid-template-columns: 1fr !important; }
}

/* ---------- Laptop (1024px — 1535px) ---------- */
@media (min-width: 1024px) and (max-width: 1535px) {
	.product-gallery { height: 500px !important; }
}

/* ---------- Force container width on large screens ---------- */
/* 2K screens (2560px = 160rem) */
@media (width >= 160rem) {
	.responsive-container { max-width: 110rem !important; }
}
/* 4K screens (3840px = 240rem) */
@media (width >= 240rem) {
	.responsive-container { max-width: 140rem !important; }
}

/* ---------- 2K (2560px+) — %10-15 scaling from 1920 ---------- */
@media (min-width: 2560px) {
	.max-w-\[130rem\] { max-width: 155rem !important; }

	/* Typography — minimal scaling, keep 1920 proportions */
	.text-\[46px\] { font-size: 52px !important; }
	.text-\[60px\] { font-size: 66px !important; }
	.text-\[38\.5px\] { font-size: 42px !important; }

	/* Featured slider cards */
	.splide__slide .item, .featured-product-item-radial { width: 420px !important; }

	/* Hero floating cards — subtle scale */
	.hidden.xl\:block { transform: scale(1.08); transform-origin: center center; }
	.hidden.xl\:block .primary-gradient { font-size: 16px !important; padding: 6px 6px 6px 16px !important; }

	/* Dots — proportional */
	.dots-bg, img[src*="dots.png"]:not([src*="featured"]) { width: 1500px !important; height: 1170px !important; }
	.dots-sm, img[src*="featured-item-dots"] { width: 530px !important; height: 506px !important; }

	.product-gallery { height: 750px !important; }
	.steps-divider { width: 150px !important; }

	/* Blog cards — proportional */
	.blog-card-title { font-size: 24px !important; min-height: 88px !important; }
	.blog-card-desc { font-size: 15px !important; min-height: 52px !important; }
	#blog-grid { gap: 18px !important; }
}

/* ---------- 4K (3840px+) — %25-30 scaling from 1920 ---------- */
@media (min-width: 3840px) {
	.max-w-\[130rem\] { max-width: 230rem !important; }

	/* Typography — proportional, NOT doubling */
	.text-\[46px\] { font-size: 58px !important; }
	.text-\[60px\] { font-size: 76px !important; }
	.text-\[70px\] { font-size: 86px !important; }
	.text-\[38\.5px\] { font-size: 48px !important; }
	.text-\[32px\] { font-size: 40px !important; }
	.text-\[28px\] { font-size: 34px !important; }
	.text-\[24px\] { font-size: 30px !important; }
	.text-\[22px\] { font-size: 27px !important; }
	.text-\[20px\] { font-size: 24px !important; }
	.text-\[18px\] { font-size: 22px !important; }
	.text-\[17px\] { font-size: 20px !important; }
	.text-\[16px\] { font-size: 19px !important; }
	.text-\[15px\] { font-size: 18px !important; }
	.text-\[14px\] { font-size: 16px !important; }

	/* Featured slider cards */
	.splide__slide .item, .featured-product-item-radial { width: 480px !important; max-width: 80vw !important; padding: 20px !important; }

	/* Card buttons — keep proportional */
	.featured-product-item-radial .primary-gradient,
	.splide__slide .item .primary-gradient { font-size: 18px; height: 46px !important; }
	.card-list .primary-gradient { height: 46px !important; font-size: 18px; }

	/* Hero floating cards */
	.hidden.xl\:block { transform: scale(1.2); transform-origin: center center; }
	.hidden.xl\:block .primary-gradient { font-size: 16px !important; padding: 6px 6px 6px 16px !important; }

	/* Dots — proportional */
	.dots-bg, img[src*="dots.png"]:not([src*="featured"]) { width: 1900px !important; height: 1480px !important; }
	.dots-sm, img[src*="featured-item-dots"] { width: 670px !important; height: 640px !important; }

	.product-gallery { height: 900px !important; }
	.steps-divider { width: 180px !important; }
	.steps-circle { width: 56px !important; height: 56px !important; font-size: 24px !important; }

	.checkout-grid input, .checkout-grid select, .account-details-grid input { height: 56px !important; font-size: 18px !important; }
	.auth-login-bg { max-width: 560px; }
	.auth-input { height: 64px; }
	.footer-link { font-size: 18px; }

	/* Blog cards — proportional */
	.blog-card { padding: 20px !important; }
	.blog-card-title { font-size: 27px !important; min-height: 100px !important; }
	.blog-card-desc { font-size: 17px !important; min-height: 58px !important; }
	.blog-card .text-white\/49 { font-size: 17px !important; height: 34px !important; padding-inline: 14px !important; }
	.blog-card-img { border-radius: 10px !important; }
	#blog-grid { gap: 20px !important; }
}

/* ---------- Blog category grid — match category page edges ----------
   The blog-category page uses the same .responsive-container as the
   /category page, so the left/right margins are identical. The only
   structural difference is grid-cols-3 (vs grid-cols-4). Force the
   <a> blog cards to fully stretch their column. */
#blog-grid > a.blog-card {
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
	box-sizing: border-box;
}

/* ============================================================
   Site-wide animation polish
   ============================================================ */

/* Hero review floating cards — fully decorative, zero interaction.
   Only the bottom "Add to Card" row keeps its hover effect. */
.backdrop-blur-lg {
	pointer-events: none !important;
	user-select: none;
}
/* Re-enable only the "Add to Card" bar at the bottom */
.backdrop-blur-lg .flex.items-center.justify-between[class*="primary-gradient"] {
	pointer-events: auto !important;
	cursor: pointer;
}
/* Kill hover effects on card body — but NOT on the Add to Card bar */
.backdrop-blur-lg:hover,
.backdrop-blur-lg *:not(.flex.items-center.justify-between[class*="primary-gradient"]):hover {
	transform: none !important;
	box-shadow: none !important;
	filter: none !important;
}
.backdrop-blur-lg,
.backdrop-blur-lg:hover {
	border-color: rgba(255,255,255,0.04) !important;
}
/* Add to Card bar keeps its normal hover */
.backdrop-blur-lg .flex.items-center.justify-between[class*="primary-gradient"]:hover {
	transform: translateY(-2px) !important;
	box-shadow: 0 8px 25px rgba(68,149,253,0.35) !important;
	filter: brightness(1.1) !important;
}

/* Smooth scroll behaviour everywhere */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
}

/* ============================================================
   SplitType line masks (used by the GSAP text reveal preset)
   GSAP handles all motion via inline style — this only sets up
   the visual container so descenders don't get clipped.
   ============================================================ */
.reveal-line { display: block; overflow: hidden; }
.reveal-word { display: inline-block; }

/* ============================================================
   404 — massive wavy retro title
   ============================================================ */

.retro-404-svg-defs { position: absolute; width: 0; height: 0; pointer-events: none; }

.retro-404-wrap { isolation: isolate; }

/* Color effects disabled — no synthwave horizon, no glow, no shimmer */
.retro-404-horizon { display: none; }

/* The 404 stage — overflow visible so the wave isn't clipped */
.retro-404-stage {
	position: relative;
	display: inline-block;
	margin: 0;
	line-height: 0.85;
	overflow: visible;
	isolation: isolate;
	animation: retro404Float 6s ease-in-out infinite;
}
@keyframes retro404Float {
	0%, 100% { transform: translateY(0); }
	50%      { transform: translateY(-8px); }
}

/* 404 text — 50% smaller than before, monochrome white, only the wavy
   distortion remains. No gradient, no neon glow, no chromatic glow layer. */
.retro-404-text {
	display: block;
	font-family: 'Poppins', system-ui, sans-serif;
	font-weight: 900;
	font-size: clamp(110px, 27.5vw, 550px);
	line-height: 0.85;
	letter-spacing: -0.04em;
	color: #ffffff;
	-webkit-text-stroke: 0;
	filter: url(#wavy404);
	will-change: filter, transform;
	transform-origin: center center;
	transform-style: preserve-3d;
	transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
	            filter 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.retro-404-stage { cursor: default; perspective: 1200px; }
.retro-404-stage.is-hovering .retro-404-text {
	transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1),
	            filter 0.45s cubic-bezier(0.22, 1, 0.36, 1);
	filter: url(#wavy404) drop-shadow(0 30px 50px rgba(0, 0, 0, 0.55));
}

/* Glow layer disabled */
.retro-404-glow { display: none; }

/* Scanline overlay disabled */
.retro-404-stage::after { display: none; }

/* Subtitle: plain white, no shimmer, no gradient */
.retro-404-subtitle {
	background: none;
	-webkit-background-clip: initial;
	background-clip: initial;
	color: #ffffff;
	animation: none;
}

@media (max-width: 640px) {
	.retro-404-text { font-size: clamp(70px, 32vw, 200px); }
	.retro-404-stage { animation-duration: 5s; }
}


/* ============================================================
   FLIP Lightbox — image expands from its source location
   to fullscreen, then collapses back on close
   ============================================================ */

/* ============================================================
   Login modal & basket popup — smoother fade + scale-in
   Driven by a JS-managed `.is-open` class instead of jQuery's
   inline display style detection (which was unreliable since
   .fadeIn() simply removes display:none rather than setting
   display:block, leaving CSS attribute selectors stuck).
   ============================================================ */

/* ============================================================
   LOGIN MODAL — premium entrance + polished tab / reset transitions
   ============================================================ */
.login-fivem-wrapper {
	opacity: 0;
	background-color: rgba(0, 0, 0, 0);
	backdrop-filter: blur(0);
	-webkit-backdrop-filter: blur(0);
	transition: opacity 0.4s ease,
	            background-color 0.5s ease,
	            backdrop-filter 0.5s ease,
	            -webkit-backdrop-filter 0.5s ease;
}
.login-fivem-wrapper.is-open {
	opacity: 1;
	background-color: rgba(7, 8, 14, 0.72);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
}

/* Card: slides in from right + grows from 0.88 scale — cinematic, slow */
.login-fivem-wrapper .auth-login-bg {
	transform: translateX(80px) scale(0.88);
	opacity: 0;
	transition: transform 0.75s cubic-bezier(0.22, 1, 0.36, 1),
	            opacity 0.55s ease 0.1s;
	will-change: transform, opacity;
	box-shadow: 0 50px 120px rgba(0, 0, 0, 0.75),
	            0 0 0 1px rgba(255, 255, 255, 0.06) inset,
	            0 0 60px rgba(68, 149, 253, 0.15);
}
.login-fivem-wrapper.is-open .auth-login-bg {
	transform: translateX(0) scale(1);
	opacity: 1;
}

/* Tab bar: font sizing + active underline transition */
.login-fivem-wrapper .auth-tabs-wrapper {
	gap: 28px;
	padding: 0 32px;
	position: relative;
}
.login-fivem-wrapper .auth-tab {
	font-size: 15px !important;
	letter-spacing: 1px;
	padding: 18px 0 16px;
	position: relative;
	transition: color 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.login-fivem-wrapper .auth-tab::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: 2px;
	background: linear-gradient(90deg, #4495fd, #2C6FE0);
	transform: scaleX(0);
	transform-origin: center;
	transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.login-fivem-wrapper .auth-tab.active-tab::after {
	transform: scaleX(1);
}

/* Panel baseline — jQuery fadeIn/fadeOut handles switching */
.login-fivem-wrapper .auth-panel { opacity: 1; transform: none; }

/* Typography polish */
.login-fivem-wrapper .auth-input {
	height: 52px;
	font-size: 14px !important;
	transition: border-color 0.3s ease, background 0.3s ease;
}
.login-fivem-wrapper .auth-input:focus {
	border-color: rgba(68, 149, 253, 0.5) !important;
	background: rgba(255, 255, 255, 0.08) !important;
}
.login-fivem-wrapper button[class*="primary-gradient"] {
	height: 52px !important;
	letter-spacing: 0.5px;
	transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
	            box-shadow 0.3s ease,
	            filter 0.3s ease;
}
.login-fivem-wrapper button[class*="primary-gradient"]:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 30px rgba(68, 149, 253, 0.35);
	filter: brightness(1.08);
}
.login-fivem-wrapper .show-reset-password {
	transition: color 0.25s ease, transform 0.25s ease;
}
.login-fivem-wrapper .show-reset-password:hover {
	transform: translateY(-1px);
}
.login-fivem-wrapper .back-to-login {
	transition: color 0.25s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.login-fivem-wrapper .back-to-login:hover {
	transform: translateX(-4px);
}

/* ----- Basket popup ----- */
.basket {
	opacity: 0;
	background-color: rgba(0, 0, 0, 0);
	backdrop-filter: blur(0);
	-webkit-backdrop-filter: blur(0);
	transition: opacity 0.32s ease,
	            background-color 0.35s ease,
	            backdrop-filter 0.35s ease,
	            -webkit-backdrop-filter 0.35s ease;
}
.basket.is-open {
	opacity: 1;
	background-color: rgba(0, 0, 0, 0.55);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}
/* Slide the inner basket panel in from the right */
.basket > *:not(script):not(style) {
	transform: translateX(28px);
	opacity: 0;
	transition: transform 0.48s cubic-bezier(0.22, 1, 0.36, 1),
	            opacity 0.35s ease;
	will-change: transform, opacity;
}
.basket.is-open > *:not(script):not(style) {
	transform: translateX(0);
	opacity: 1;
}

/* ----- Order detail popup (my-account page) ----- */
.order-detail-popup {
	opacity: 0;
	background-color: rgba(0, 0, 0, 0);
	backdrop-filter: blur(0);
	-webkit-backdrop-filter: blur(0);
	transition: opacity 0.32s ease,
	            background-color 0.35s ease,
	            backdrop-filter 0.35s ease,
	            -webkit-backdrop-filter 0.35s ease;
}
.order-detail-popup.is-open {
	opacity: 1;
	background-color: rgba(0, 0, 0, 0.55);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}
.order-detail-popup > div {
	transform: translateY(20px) scale(0.95);
	opacity: 0;
	transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
	            opacity 0.35s ease;
	will-change: transform, opacity;
}
.order-detail-popup.is-open > div {
	transform: translateY(0) scale(1);
	opacity: 1;
}

/* The lightbox container is always present in the DOM but hidden until
   `is-visible` is added. The backdrop fade and the FLIP transform on the
   image must run on the SAME duration / easing so they finish together. */
.fx-lightbox {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: none;
	align-items: center;
	justify-content: center;
	background: rgba(7, 8, 14, 0);
	backdrop-filter: blur(0px);
	-webkit-backdrop-filter: blur(0px);
	cursor: zoom-out;
	/* Backdrop fade-in (open) is fast, fade-out (close) even faster */
	transition: background 0.45s cubic-bezier(0.22, 1, 0.36, 1),
	            backdrop-filter 0.45s cubic-bezier(0.22, 1, 0.36, 1),
	            -webkit-backdrop-filter 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.fx-lightbox.is-visible { display: flex; }
.fx-lightbox.is-open {
	background: rgba(7, 8, 14, 0.92);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
}

/* Image element does the FLIP. Default transition is the OPEN one (520ms).
   When the container loses the .is-open class we switch to a snappier
   CLOSE transition (380ms) so dismissing feels instant. */
.fx-lightbox__img {
	position: absolute;
	top: 0;
	left: 0;
	max-width: none;
	max-height: none;
	object-fit: cover;
	border-radius: 12px;
	box-shadow: 0 50px 120px rgba(0, 0, 0, 0.75), 0 0 80px rgba(68, 149, 253, 0.18);
	transform-origin: top left;
	will-change: transform, width, height, border-radius;
	cursor: default;
	transition: transform 0.52s cubic-bezier(0.22, 1, 0.36, 1),
	            width 0.52s cubic-bezier(0.22, 1, 0.36, 1),
	            height 0.52s cubic-bezier(0.22, 1, 0.36, 1),
	            border-radius 0.52s cubic-bezier(0.22, 1, 0.36, 1);
}
/* When closing (.is-visible without .is-open), use a faster transition */
.fx-lightbox.is-visible:not(.is-open) .fx-lightbox__img {
	transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1),
	            width 0.38s cubic-bezier(0.4, 0, 0.2, 1),
	            height 0.38s cubic-bezier(0.4, 0, 0.2, 1),
	            border-radius 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Close hint badge */
.fx-lightbox__hint {
	position: fixed;
	top: 24px;
	right: 28px;
	z-index: 10000;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 9px 14px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.14);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	font-size: 13px;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.75);
	opacity: 0;
	transform: translateY(-8px);
	transition: opacity 0.35s ease 0.15s, transform 0.35s ease 0.15s;
	pointer-events: none;
	cursor: pointer;
}
.fx-lightbox.is-open .fx-lightbox__hint {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

/* ============================================================
   ADMIN PANEL — sidebar layout, topbar, cards, tables
   AdminLTE-style structure dressed in the TTModz dark theme.
   ============================================================ */

.admin-shell {
	display: grid;
	grid-template-columns: 280px 1fr;
	min-height: 100vh;
	background: #0E0F17;
	color: #fff;
	/* Make sure the whole admin uses the site font (Poppins). */
	font-family: 'Poppins', system-ui, sans-serif;
}
/* Form controls don't inherit font by default — force them to use the
   site font so the admin panel reads as one consistent typeface. */
.admin-shell input,
.admin-shell textarea,
.admin-shell select,
.admin-shell button,
.admin-shell optgroup {
	font-family: inherit;
	font-size: inherit;
	line-height: inherit;
}

/* ----- SIDEBAR ----- */
.admin-sidebar {
	background: #11121B;
	border-right: 1px solid rgba(255,255,255,0.06);
	position: sticky;
	top: 0;
	height: 100vh;
	overflow-y: auto;
}
.admin-sidebar-inner { padding: 22px 18px 28px; }

.admin-brand {
	display: flex;
	align-items: center;
	gap: 12px;
	padding-bottom: 18px;
	border-bottom: 1px solid rgba(255,255,255,0.06);
	margin-bottom: 18px;
}
.admin-brand-logo { width: 38px; height: 38px; object-fit: contain; }
.admin-brand-name { font-weight: 700; font-size: 17px; letter-spacing: 0.3px; }
.admin-brand-sub  { font-size: 11px; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 1px; }

.admin-profile-mini {
	display: flex;
	align-items: center;
	gap: 11px;
	padding: 12px 12px;
	background: rgba(68,149,253,0.07);
	border: 1px solid rgba(68,149,253,0.18);
	border-radius: 10px;
	margin-bottom: 22px;
}
.admin-profile-mini img { width: 38px; height: 38px; border-radius: 8px; object-fit: cover; }
.admin-profile-name { font-size: 14px; font-weight: 600; }
.admin-profile-role {
	font-size: 11px;
	color: rgba(255,255,255,0.5);
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: 2px;
}
.admin-status-dot { width: 7px; height: 7px; border-radius: 50%; background: #50FF76; box-shadow: 0 0 6px #50FF76; }

.admin-nav-label {
	font-size: 11px;
	font-weight: 600;
	color: rgba(255,255,255,0.32);
	text-transform: uppercase;
	letter-spacing: 1.2px;
	padding: 0 8px;
	margin: 14px 0 8px;
}

.admin-nav { display: flex; flex-direction: column; gap: 4px; }
.admin-nav-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 11px 14px;
	border-radius: 9px;
	font-size: 14px;
	color: rgba(255,255,255,0.55);
	cursor: pointer;
	transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
	text-decoration: none;
	position: relative;
}
.admin-nav-item:hover { background: rgba(255,255,255,0.04); color: #fff; }
.admin-nav-item.active {
	background: linear-gradient(90deg, rgba(68,149,253,0.18), rgba(68,149,253,0.04));
	color: #fff;
	box-shadow: inset 3px 0 0 var(--color-primary);
}
.admin-nav-item svg { flex-shrink: 0; opacity: 0.85; }
.admin-nav-item.active svg { color: var(--color-primary); opacity: 1; }
.admin-nav-item span:first-of-type { flex: 1; }
.admin-nav-badge {
	font-size: 11px;
	font-weight: 700;
	padding: 2px 8px;
	border-radius: 999px;
	background: rgba(68,149,253,0.18);
	color: #4495fd;
}
.admin-nav-badge-warn { background: rgba(255,82,82,0.18); color: #FF5252; }
.admin-nav-logout { color: rgba(255,82,82,0.7); }
.admin-nav-logout:hover { color: #FF5252; background: rgba(255,82,82,0.06); }

/* ----- MAIN AREA ----- */
.admin-main { display: flex; flex-direction: column; min-width: 0; }

/* ----- TOPBAR ----- */
.admin-topbar {
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 18px 30px;
	background: rgba(17,18,27,0.6);
	border-bottom: 1px solid rgba(255,255,255,0.06);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	position: sticky;
	top: 0;
	z-index: 50;
}
.admin-mobile-toggle {
	display: none;
	width: 40px;
	height: 40px;
	border-radius: 8px;
	background: rgba(255,255,255,0.05);
	border: 1px solid rgba(255,255,255,0.08);
	color: rgba(255,255,255,0.7);
	align-items: center;
	justify-content: center;
	cursor: pointer;
}
.admin-mobile-toggle:hover { background: rgba(255,255,255,0.08); color: #fff; }

.admin-page-title { display: flex; flex-direction: column; }
.admin-page-title-main { font-size: 22px; font-weight: 700; }
.admin-page-title-sub { font-size: 13px; color: rgba(255,255,255,0.4); }

.admin-topbar-right {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 14px;
}
.admin-search {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 0 14px;
	height: 42px;
	width: 260px;
	background: rgba(255,255,255,0.04);
	border: 1px solid rgba(255,255,255,0.07);
	border-radius: 8px;
	color: rgba(255,255,255,0.4);
}
.admin-search input {
	background: transparent;
	border: 0;
	outline: none;
	color: #fff;
	font-size: 14px;
	flex: 1;
	width: 100%;
}
.admin-search input::placeholder { color: rgba(255,255,255,0.32); }

.admin-icon-btn {
	position: relative;
	width: 42px;
	height: 42px;
	border-radius: 8px;
	background: rgba(255,255,255,0.04);
	border: 1px solid rgba(255,255,255,0.07);
	color: rgba(255,255,255,0.65);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.25s ease, color 0.25s ease;
}
.admin-icon-btn:hover { background: rgba(255,255,255,0.08); color: #fff; }
.admin-icon-btn-dot {
	position: absolute;
	top: 9px;
	right: 10px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #FF5252;
	box-shadow: 0 0 8px #FF5252;
}

.admin-topbar-user { display: flex; align-items: center; gap: 10px; padding-left: 14px; border-left: 1px solid rgba(255,255,255,0.07); }
.admin-topbar-user img { width: 38px; height: 38px; border-radius: 8px; object-fit: cover; }
.admin-topbar-user-name { font-size: 14px; font-weight: 600; }
.admin-topbar-user-role { font-size: 11px; color: rgba(255,255,255,0.4); }

/* ----- CONTENT AREA ----- */
.admin-content { padding: 26px 30px 60px; flex: 1; }

.admin-section { display: none; animation: adminFade 0.45s cubic-bezier(0.22, 1, 0.36, 1); }
.admin-section.active { display: block; }
@keyframes adminFade {
	from { opacity: 0; transform: translateY(8px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* ----- STAT CARDS ----- */
.admin-stats-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
	margin-bottom: 26px;
}
.admin-stat-card {
	position: relative;
	padding: 22px 24px;
	border-radius: 14px;
	background: #11121B;
	border: 1px solid rgba(255,255,255,0.06);
	overflow: hidden;
	transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
}
.admin-stat-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 18px 40px rgba(0,0,0,0.45);
}
.admin-stat-card::before {
	content: "";
	position: absolute;
	left: 0; top: 0; bottom: 0;
	width: 4px;
}
.admin-stat-blue::before   { background: linear-gradient(180deg, #4495fd, #2C6FE0); }
.admin-stat-green::before  { background: linear-gradient(180deg, #50FF76, #2EBC4D); }
.admin-stat-purple::before { background: linear-gradient(180deg, #9D6BFF, #6A3FE0); }
.admin-stat-orange::before { background: linear-gradient(180deg, #FFB247, #CE510E); }

.admin-stat-label { font-size: 12px; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.8px; }
.admin-stat-value { font-size: 30px; font-weight: 700; margin-top: 6px; }
.admin-stat-trend { display: flex; align-items: center; gap: 4px; font-size: 12px; margin-top: 6px; }
.admin-stat-trend-up   { color: #50FF76; }
.admin-stat-trend-flat { color: rgba(255,255,255,0.45); }
.admin-stat-trend-down { color: #FF5252; }
.admin-stat-icon {
	position: absolute;
	right: 18px;
	top: 50%;
	transform: translateY(-50%);
	color: rgba(255,255,255,0.06);
}

/* ----- ROW LAYOUT ----- */
.admin-row { margin-bottom: 26px; }
.admin-row-2col {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 18px;
}

/* ----- CARDS ----- */
.admin-card {
	background: #11121B;
	border: 1px solid rgba(255,255,255,0.06);
	border-radius: 14px;
	overflow: hidden;
	margin-bottom: 18px;
}
.admin-card-wide { width: 100%; }
.admin-card-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 22px 26px 18px;
	border-bottom: 1px solid rgba(255,255,255,0.05);
}
.admin-card-title { font-size: 18px; font-weight: 600; }
.admin-card-sub   { font-size: 13px; color: rgba(255,255,255,0.4); margin-top: 2px; }
.admin-card-link  { font-size: 13px; color: var(--color-primary); text-decoration: none; cursor: pointer; }
.admin-card-link:hover { text-decoration: underline; }

/* ----- TABLE ----- */
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th {
	text-align: left;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.8px;
	color: rgba(255,255,255,0.4);
	padding: 14px 24px;
	background: rgba(255,255,255,0.02);
	border-bottom: 1px solid rgba(255,255,255,0.05);
}
.admin-table td {
	padding: 16px 24px;
	font-size: 14px;
	border-bottom: 1px solid rgba(255,255,255,0.04);
	color: rgba(255,255,255,0.8);
}
.admin-table tbody tr { transition: background 0.2s ease; }
.admin-table tbody tr:hover { background: rgba(255,255,255,0.025); }
.admin-table tbody tr:last-child td { border-bottom: 0; }

.admin-mono { font-family: 'Poppins', monospace; font-weight: 600; color: var(--color-primary); }
.admin-money { font-weight: 700; color: #fff; }

.admin-cell-user { display: flex; align-items: center; gap: 10px; }
.admin-cell-user img { width: 32px; height: 32px; border-radius: 6px; object-fit: cover; }

.admin-pill {
	display: inline-block;
	font-size: 11px;
	font-weight: 600;
	padding: 4px 10px;
	border-radius: 999px;
	letter-spacing: 0.4px;
}
.admin-pill-green  { background: rgba(80,255,118,0.12);  color: #50FF76; }
.admin-pill-blue   { background: rgba(68,149,253,0.15); color: #4495fd; }
.admin-pill-yellow { background: rgba(255,178,71,0.15); color: #FFB247; }
.admin-pill-red    { background: rgba(255,82,82,0.15);  color: #FF5252; }

/* ----- TOP PRODUCTS LIST ----- */
.admin-product-list { padding: 8px 0; }
.admin-product-item {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 26px;
	transition: background 0.2s ease;
}
.admin-product-item:hover { background: rgba(255,255,255,0.025); }
.admin-product-item img {
	width: 50px;
	height: 50px;
	border-radius: 8px;
	object-fit: cover;
	flex-shrink: 0;
}
.admin-product-meta { flex: 1; min-width: 0; }
.admin-product-name {
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.admin-product-stat { font-size: 12px; color: rgba(255,255,255,0.4); margin-top: 2px; }
.admin-product-price { font-size: 14px; font-weight: 700; color: var(--color-primary); }

/* ----- CUSTOMER GRID ----- */
.admin-customer-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 14px;
	padding: 22px 26px;
}
.admin-customer-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 18px 12px;
	background: rgba(255,255,255,0.02);
	border: 1px solid rgba(255,255,255,0.05);
	border-radius: 10px;
	text-align: center;
	transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s ease;
}
.admin-customer-card:hover {
	transform: translateY(-4px);
	background: rgba(68,149,253,0.06);
}
.admin-customer-card img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.admin-customer-name { font-size: 13px; font-weight: 600; }
.admin-customer-meta { font-size: 11px; color: rgba(255,255,255,0.4); }

/* ----- BUTTONS / FORM ----- */
.admin-btn-primary {
	height: 40px;
	padding: 0 18px;
	border-radius: 8px;
	background: linear-gradient(135deg, #4495fd, #2C6FE0);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	border: 0;
	cursor: pointer;
	transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}
.admin-btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(68,149,253,0.3);
	filter: brightness(1.06);
}
.admin-btn-primary:active { transform: translateY(0) scale(0.97); }

.admin-form { padding: 22px 26px; display: flex; flex-direction: column; gap: 16px; max-width: 540px; }
.admin-form-row { display: flex; flex-direction: column; gap: 6px; }
.admin-form-row label { font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.6px; }
.admin-input {
	height: 46px;
	padding: 0 14px;
	background: rgba(255,255,255,0.04);
	border: 1px solid rgba(255,255,255,0.08);
	border-radius: 8px;
	color: #fff;
	font-size: 14px;
	outline: none;
	transition: border-color 0.25s ease, background 0.25s ease;
}
.admin-input:focus { border-color: rgba(68,149,253,0.4); background: rgba(255,255,255,0.06); }
.admin-form-submit { align-self: flex-start; margin-top: 6px; }

/* ----- TOGGLE SWITCH ----- */
.admin-switch {
	display: inline-block;
	width: 44px;
	height: 24px;
	position: relative;
	cursor: pointer;
	flex-shrink: 0;
}
.admin-switch input { display: none; }
.admin-switch span {
	position: absolute;
	inset: 0;
	background: rgba(255,255,255,0.1);
	border: 1px solid rgba(255,255,255,0.06);
	border-radius: 999px;
	transition: background 0.25s ease;
}
.admin-switch span::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 2px;
	width: 18px;
	height: 18px;
	background: #fff;
	border-radius: 50%;
	transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
	box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}
.admin-switch input:checked + span { background: linear-gradient(135deg, #4495fd, #2C6FE0); border-color: rgba(68,149,253,0.5); }
.admin-switch input:checked + span::before { transform: translateX(20px); }

/* ----- BUTTONS extras ----- */
.admin-btn-ghost {
	height: 38px;
	padding: 0 14px;
	border-radius: 8px;
	background: rgba(255,255,255,0.05);
	border: 1px solid rgba(255,255,255,0.08);
	color: rgba(255,255,255,0.75);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}
.admin-btn-ghost:hover { background: rgba(255,255,255,0.08); color: #fff; }
.admin-card-actions { display: flex; gap: 8px; }
.admin-card-body { padding: 22px 26px; }
.admin-icon-action {
	width: 28px;
	height: 28px;
	border-radius: 6px;
	background: rgba(255,82,82,0.1);
	border: 1px solid rgba(255,82,82,0.2);
	color: #FF5252;
	font-size: 16px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}
.admin-icon-action:hover { background: rgba(255,82,82,0.18); }

/* ----- INPUT variants ----- */
.admin-input-sm { height: 38px; padding: 0 12px; font-size: 13px; }
.admin-input-bold { font-weight: 700; }
.admin-mono-input { font-family: 'Courier New', monospace; font-size: 13px; }
.admin-textarea { padding: 12px 14px; height: auto; resize: vertical; line-height: 1.5; font-family: inherit; }
.admin-textarea-tall { min-height: 160px; }

.admin-form-wide { padding: 22px 26px; max-width: none; }
.admin-form-row-inline {
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	padding: 4px 0;
}
.admin-form-row-inline label { margin-bottom: 0; text-transform: none; font-size: 14px; color: rgba(255,255,255,0.85); letter-spacing: normal; font-weight: 500; }

.admin-checkbox-row {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: rgba(255,255,255,0.8);
	cursor: pointer;
	padding: 6px 0;
}
.admin-checkbox-row input { accent-color: var(--color-primary); }

/* ----- MEDIA LIBRARY ----- */
.admin-dropzone {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 40px 20px;
	margin: 22px 26px 24px;
	background: rgba(68,149,253,0.04);
	border: 2px dashed rgba(68,149,253,0.25);
	border-radius: 12px;
	color: rgba(255,255,255,0.7);
	transition: background 0.3s ease, border-color 0.3s ease;
	cursor: pointer;
}
.admin-dropzone:hover { background: rgba(68,149,253,0.08); border-color: rgba(68,149,253,0.4); }
.admin-dropzone svg { color: rgba(68,149,253,0.6); }
.admin-dropzone-title { font-size: 16px; font-weight: 600; color: #fff; margin-top: 4px; }
.admin-dropzone-sub { font-size: 12px; color: rgba(255,255,255,0.45); }
.admin-dropzone-btn { margin-top: 10px; }

.admin-media-toolbar {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 0 26px 16px;
	flex-wrap: wrap;
}
.admin-media-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.admin-media-filters .admin-input { width: 180px; }
.admin-media-count {
	margin-left: auto;
	font-size: 12px;
	color: rgba(255,255,255,0.4);
}

.admin-media-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
	gap: 14px;
	padding: 0 26px 26px;
}
.admin-media-tile {
	position: relative;
	background: rgba(255,255,255,0.03);
	border: 1px solid rgba(255,255,255,0.06);
	border-radius: 10px;
	overflow: hidden;
	cursor: pointer;
	transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease;
}
.admin-media-tile:hover { transform: translateY(-3px); border-color: rgba(68,149,253,0.35); }
.admin-media-tile img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.admin-media-info { padding: 8px 12px; }
.admin-media-name { font-size: 12px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-media-size { font-size: 11px; color: rgba(255,255,255,0.4); margin-top: 2px; }
.admin-media-tile.selected { border-color: var(--color-primary); box-shadow: 0 0 0 2px rgba(68,149,253,0.25); }
.admin-media-check {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--color-primary);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-weight: 700;
	box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

/* ----- PRODUCT EDITOR LAYOUT ----- */
.admin-row-edit { display: grid; grid-template-columns: 1fr 320px; gap: 18px; }
.admin-col-main, .admin-col-side { display: flex; flex-direction: column; gap: 18px; }

/* ----- RICH TOOLBAR ----- */
.admin-rich-toolbar {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 6px 8px;
	background: rgba(255,255,255,0.03);
	border: 1px solid rgba(255,255,255,0.06);
	border-radius: 8px 8px 0 0;
	border-bottom: 0;
	flex-wrap: wrap;
}
.admin-rich-btn {
	min-width: 32px;
	height: 32px;
	padding: 0 8px;
	border-radius: 6px;
	background: transparent;
	border: 0;
	color: rgba(255,255,255,0.7);
	font-size: 13px;
	cursor: pointer;
}
.admin-rich-btn:hover { background: rgba(255,255,255,0.08); color: #fff; }
.admin-rich-divider { width: 1px; height: 18px; background: rgba(255,255,255,0.1); margin: 0 4px; }
.admin-rich-toolbar + .admin-textarea { border-top: 0; border-radius: 0 0 8px 8px; }

/* ----- GALLERY UPLOAD (in Product Editor) ----- */
.admin-gallery-upload { display: flex; flex-direction: column; gap: 14px; }
.admin-gallery-main {
	position: relative;
	width: 100%;
	aspect-ratio: 16/9;
	border-radius: 10px;
	overflow: hidden;
	background: rgba(255,255,255,0.03);
	border: 1px solid rgba(255,255,255,0.06);
}
.admin-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.admin-gallery-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: flex-end;
	justify-content: flex-end;
	padding: 14px;
	background: linear-gradient(to top, rgba(0,0,0,0.6), transparent 60%);
}
.admin-gallery-thumbs {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
	gap: 10px;
}
.admin-gallery-thumb {
	aspect-ratio: 1;
	border-radius: 8px;
	overflow: hidden;
	background: rgba(255,255,255,0.03);
	border: 1px solid rgba(255,255,255,0.06);
	cursor: pointer;
	transition: border-color 0.25s ease;
}
.admin-gallery-thumb:hover { border-color: rgba(68,149,253,0.35); }
.admin-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.admin-gallery-add {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 28px;
	color: rgba(255,255,255,0.3);
	border-style: dashed;
}
.admin-gallery-add:hover { color: var(--color-primary); border-color: rgba(68,149,253,0.5); }

/* ----- TAG INPUT ----- */
.admin-tag-input-wrap {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	padding: 10px;
	background: rgba(255,255,255,0.04);
	border: 1px solid rgba(255,255,255,0.08);
	border-radius: 8px;
}
.admin-tag {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 4px 4px 4px 10px;
	background: rgba(68,149,253,0.15);
	color: #fff;
	font-size: 12px;
	border-radius: 999px;
	border: 1px solid rgba(68,149,253,0.25);
}
.admin-tag button {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: rgba(0,0,0,0.25);
	border: 0;
	color: #fff;
	font-size: 13px;
	line-height: 1;
	cursor: pointer;
}
.admin-tag button:hover { background: rgba(255,82,82,0.6); }
.admin-tag-input {
	flex: 1;
	min-width: 100px;
	background: transparent;
	border: 0;
	outline: none;
	color: #fff;
	font-size: 13px;
	padding: 4px;
}

/* ----- TAG CLOUD ----- */
.admin-tag-cloud {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 22px 26px;
}
.admin-tag-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	background: rgba(255,255,255,0.04);
	border: 1px solid rgba(255,255,255,0.08);
	border-radius: 999px;
	font-size: 13px;
	color: rgba(255,255,255,0.85);
	cursor: pointer;
	transition: background 0.25s ease, border-color 0.25s ease;
}
.admin-tag-pill:hover { background: rgba(68,149,253,0.1); border-color: rgba(68,149,253,0.3); color: #fff; }
.admin-tag-pill small { color: rgba(255,255,255,0.4); font-size: 11px; }

/* ----- IMAGE PICKER ----- */
.admin-image-picker {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px;
	background: rgba(255,255,255,0.03);
	border: 1px solid rgba(255,255,255,0.06);
	border-radius: 10px;
}
.admin-image-picker img {
	width: 80px;
	height: 80px;
	object-fit: cover;
	border-radius: 8px;
	flex-shrink: 0;
	background: rgba(255,255,255,0.05);
}
.admin-image-picker-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ----- HEADER MENU EDITOR ----- */
.admin-menu-list { display: flex; flex-direction: column; gap: 6px; }
.admin-menu-row {
	display: grid;
	grid-template-columns: 24px 1fr 1fr 32px;
	gap: 8px;
	align-items: center;
	padding: 6px;
	background: rgba(255,255,255,0.02);
	border-radius: 8px;
}
.admin-drag {
	display: flex;
	align-items: center;
	justify-content: center;
	color: rgba(255,255,255,0.3);
	cursor: grab;
	font-size: 16px;
	user-select: none;
}
.admin-menu-add { align-self: flex-start; margin-top: 6px; }
.admin-menu-add-sm { height: 32px; padding: 0 12px; font-size: 12px; }

/* ----- FOOTER COLUMNS EDITOR ----- */
.admin-footer-cols {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
	margin-bottom: 20px;
}
.admin-footer-col {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 14px;
	background: rgba(255,255,255,0.02);
	border-radius: 10px;
	border: 1px solid rgba(255,255,255,0.05);
}

/* ----- PAYMENT GATEWAYS ----- */
.admin-gateway-head { display: flex; align-items: center; gap: 14px; }
.admin-gateway-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 10px;
	font-weight: 800;
	font-size: 14px;
	letter-spacing: 0.5px;
	color: #fff;
}
.admin-gateway-logo-stripe { background: linear-gradient(135deg, #635BFF, #4040C2); text-transform: lowercase; }
.admin-gateway-logo-paypal { background: linear-gradient(135deg, #003087, #009CDE); }

/* ----- API & INTEGRATION CARDS ----- */
.admin-integration-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}
.admin-integration-card {
	background: #11121B;
	border: 1px solid rgba(255,255,255,0.06);
	border-radius: 14px;
	overflow: hidden;
	transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.4s ease;
}
.admin-integration-card:hover { transform: translateY(-3px); border-color: rgba(68,149,253,0.2); }
.admin-integration-head {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 18px 22px;
	border-bottom: 1px solid rgba(255,255,255,0.05);
}
.admin-integration-icon {
	width: 44px;
	height: 44px;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 14px;
	flex-shrink: 0;
}
.admin-integration-name { font-size: 15px; font-weight: 600; color: #fff; }
.admin-integration-sub { font-size: 12px; color: rgba(255,255,255,0.4); margin-top: 2px; }
.admin-integration-head .admin-pill { margin-left: auto; }

/* ----- RESPONSIVE ----- */
@media (max-width: 1280px) {
	.admin-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.admin-row-2col { grid-template-columns: 1fr; }
	.admin-row-edit { grid-template-columns: 1fr; }
	.admin-integration-grid { grid-template-columns: 1fr; }
	.admin-footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
	.admin-shell { grid-template-columns: 1fr; }
	.admin-sidebar {
		position: fixed;
		top: 0;
		left: 0;
		width: 280px;
		z-index: 100;
		transform: translateX(-100%);
		transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
		box-shadow: 0 0 40px rgba(0,0,0,0.5);
	}
	.admin-shell.is-sidebar-open .admin-sidebar { transform: translateX(0); }
	.admin-shell.is-sidebar-open::after {
		content: "";
		position: fixed;
		inset: 0;
		background: rgba(0,0,0,0.55);
		backdrop-filter: blur(4px);
		z-index: 99;
	}
	.admin-mobile-toggle { display: flex; }
	.admin-search { display: none; }
}
@media (max-width: 640px) {
	.admin-stats-grid { grid-template-columns: 1fr; }
	.admin-content { padding: 18px 16px 40px; }
	.admin-topbar { padding: 14px 16px; gap: 10px; }
	.admin-page-title-main { font-size: 18px; }
	.admin-page-title-sub  { font-size: 11px; }
	.admin-topbar-user-text { display: none; }
	.admin-card-header { padding: 18px 16px 14px; flex-wrap: wrap; gap: 10px; }
	.admin-table th, .admin-table td { padding: 12px 14px; font-size: 12px; }
	.admin-customer-grid { padding: 16px; }
	.admin-footer-cols { grid-template-columns: 1fr; }
	.admin-form-wide { padding: 18px 16px; }
	.admin-media-grid { padding: 0 16px 22px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
	.admin-dropzone { margin: 16px; padding: 28px 16px; }
	.admin-menu-row { grid-template-columns: 20px 1fr 32px; }
	.admin-menu-row .admin-input-sm:nth-child(3) { grid-column: 2 / span 1; }
}

/* ==========================================================
   Checkout — smooth transition between payment methods
   ========================================================== */
.payment-option {
	transition: border-color 350ms ease, background-color 350ms ease;
}
.payment-option label > span {
	transition: color 300ms ease;
}
.payment-option .stripe-form,
.payment-option .paypal-form {
	max-height: 0;
	opacity: 0;
	overflow: hidden;
	pointer-events: none;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	transition: max-height 450ms cubic-bezier(0.4, 0, 0.2, 1),
	            opacity 280ms ease,
	            padding-top 400ms cubic-bezier(0.4, 0, 0.2, 1),
	            padding-bottom 400ms cubic-bezier(0.4, 0, 0.2, 1);
}
.payment-option.is-active .stripe-form {
	max-height: 520px;
	opacity: 1;
	pointer-events: auto;
	padding-top: 20px !important;
	padding-bottom: 20px !important;
}
.payment-option.is-active .paypal-form {
	max-height: 420px;
	opacity: 1;
	pointer-events: auto;
	padding-top: 0 !important;
	padding-bottom: 20px !important;
}

/* ==========================================================
   Admin panel — extended widgets (analytics, SEO, webmaster, blog)
   Reuses existing admin-* token system, no new colors invented.
   ========================================================== */

/* Card actions row in headers */
.admin-card-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* 3-column row for analytics widgets */
.admin-row-3col { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; }
@media (max-width: 1280px) { .admin-row-3col { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px)  { .admin-row-3col { grid-template-columns: 1fr; } }

/* Bar chart (visitor analytics) */
.admin-chart { padding: 18px 0 8px; }
.admin-chart-bar {
	display: flex;
	align-items: flex-end;
	gap: 6px;
	height: 160px;
	padding: 0 4px;
}
.admin-chart-bar-col {
	flex: 1 1 0;
	min-width: 0;
	height: var(--h, 20%);
	background: linear-gradient(180deg, rgba(68,149,253,0.85), rgba(68,149,253,0.35));
	border-radius: 3px 3px 0 0;
	transition: opacity 200ms ease, transform 200ms ease;
}
.admin-chart-bar-col:hover { opacity: 1; transform: scaleY(1.04); }
.admin-chart-bar-col-active {
	background: linear-gradient(180deg, #4495fd, rgba(68,149,253,0.55));
	box-shadow: 0 0 12px rgba(68,149,253,0.45);
}
.admin-chart-bar-col-green {
	background: linear-gradient(180deg, rgba(80,255,118,0.85), rgba(80,255,118,0.35));
}
.admin-chart-axis {
	display: flex;
	justify-content: space-between;
	margin-top: 10px;
	font-size: 11px;
	color: rgba(255,255,255,0.4);
}

/* Ranked list (top pages, traffic sources) */
.admin-rank-list { display: flex; flex-direction: column; }
.admin-rank-row {
	display: grid;
	grid-template-columns: 32px minmax(0,1fr) max-content;
	align-items: center;
	gap: 12px;
	padding: 12px 18px;
	border-top: 1px solid rgba(255,255,255,0.04);
}
.admin-rank-row:first-child { border-top: 0; }
.admin-rank-num {
	width: 26px; height: 26px; border-radius: 6px;
	background: rgba(255,255,255,0.04);
	display: inline-flex; align-items: center; justify-content: center;
	font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.55);
}
.admin-rank-icon {
	width: 30px; height: 30px; border-radius: 7px;
	display: inline-flex; align-items: center; justify-content: center;
	font-size: 12px; font-weight: 700; color: rgba(255,255,255,0.7);
}
.admin-rank-meta { min-width: 0; }
.admin-rank-name { font-size: 14px; color: rgba(255,255,255,0.9); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-rank-sub  { font-size: 12px; color: rgba(255,255,255,0.4); margin-top: 2px; }
.admin-rank-val  { font-size: 14px; font-weight: 600; color: var(--color-primary); font-variant-numeric: tabular-nums; }

/* Horizontal bar list (device/browser breakdown) */
.admin-bar-list { padding: 0 18px 8px; }
.admin-bar-list-label { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,0.4); margin-bottom: 10px; }
.admin-bar-row {
	display: grid;
	grid-template-columns: 80px minmax(0,1fr) 44px;
	align-items: center;
	gap: 10px;
	margin-bottom: 8px;
	font-size: 13px;
	color: rgba(255,255,255,0.75);
}
.admin-bar { height: 8px; border-radius: 4px; background: rgba(255,255,255,0.05); overflow: hidden; }
.admin-bar-fill { height: 100%; width: var(--w, 0%); border-radius: 4px; transition: width 400ms ease; }
.admin-bar-val { text-align: right; font-variant-numeric: tabular-nums; color: rgba(255,255,255,0.55); }

/* Link rows (SEO links, search engine tools) */
.admin-link-list { display: flex; flex-direction: column; }
.admin-link-row {
	display: grid;
	grid-template-columns: 44px minmax(0,1fr) max-content;
	align-items: center;
	gap: 14px;
	padding: 14px 18px;
	border-top: 1px solid rgba(255,255,255,0.04);
	color: rgba(255,255,255,0.85);
	text-decoration: none;
	transition: background-color 200ms ease;
}
.admin-link-row:first-child { border-top: 0; }
.admin-link-row:hover { background: rgba(255,255,255,0.03); }
.admin-link-icon {
	width: 38px; height: 38px; border-radius: 9px;
	display: inline-flex; align-items: center; justify-content: center;
}
.admin-link-name { font-size: 14px; font-weight: 500; }
.admin-link-sub  { font-size: 12px; color: rgba(255,255,255,0.45); margin-top: 2px; }

/* SEO Checklist grid */
.admin-checklist-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px 24px;
	padding: 4px 18px 14px;
}
@media (max-width: 900px) { .admin-checklist-grid { grid-template-columns: 1fr; } }
.admin-check {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 13px;
	color: rgba(255,255,255,0.78);
	padding: 6px 0;
}
.admin-check svg { flex-shrink: 0; }

/* Webmaster tools — success banner + mini stats + trend pills */
.admin-success-banner {
	display: flex;
	align-items: center;
	gap: 10px;
	background: rgba(80,255,118,0.06);
	border: 1px solid rgba(80,255,118,0.18);
	border-radius: 8px;
	padding: 12px 16px;
	margin: 0 18px 18px;
	font-size: 13px;
	color: rgba(255,255,255,0.78);
}
.admin-success-banner-meta { margin-left: auto; font-size: 12px; color: rgba(255,255,255,0.5); }
.admin-stats-grid-4 { padding: 0 18px; }
.admin-mini-stat {
	background: rgba(255,255,255,0.025);
	border: 1px solid rgba(255,255,255,0.05);
	border-radius: 10px;
	padding: 16px 18px;
}
.admin-mini-stat-val { font-size: 28px; font-weight: 700; line-height: 1; }
.admin-mini-stat-label { font-size: 12px; color: rgba(255,255,255,0.45); margin-top: 6px; text-transform: uppercase; letter-spacing: 0.6px; }

.admin-trend-up   { color: #50FF76; font-weight: 600; }
.admin-trend-down { color: #FF5252; font-weight: 600; }
.admin-trend-flat { color: rgba(255,255,255,0.4); }

.admin-card-meta { font-size: 12px; color: rgba(255,255,255,0.4); font-weight: 400; margin-left: 6px; }
.admin-legend { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: rgba(255,255,255,0.5); }
.admin-legend-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.admin-btn-ghost-active { background: rgba(68,149,253,0.12); color: var(--color-primary); border-color: rgba(68,149,253,0.25); }

.admin-pill-grey { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.6); }

/* Blog table — post cells, action buttons, pagination */
.admin-cell-post {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}
.admin-cell-post img {
	width: 50px; height: 50px; border-radius: 7px; object-fit: cover; flex-shrink: 0;
	border: 1px solid rgba(255,255,255,0.06);
}
.admin-post-title { font-size: 14px; color: rgba(255,255,255,0.92); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 360px; }
.admin-post-slug  { font-size: 12px; color: rgba(255,255,255,0.4); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 360px; }

.admin-th-center, .admin-td-center { text-align: center; }
.admin-th-actions, .admin-td-actions { text-align: right; }
.admin-td-actions { white-space: nowrap; }
.admin-icon-action-edit, .admin-icon-action-del {
	width: 30px; height: 30px; border-radius: 7px;
	background: rgba(255,255,255,0.04);
	border: 1px solid rgba(255,255,255,0.06);
	color: rgba(255,255,255,0.55);
	display: inline-flex; align-items: center; justify-content: center;
	cursor: pointer;
	margin-left: 6px;
	transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}
.admin-icon-action-edit:hover { color: var(--color-primary); border-color: rgba(68,149,253,0.25); background: rgba(68,149,253,0.08); }
.admin-icon-action-del:hover  { color: #FF5252; border-color: rgba(255,82,82,0.25); background: rgba(255,82,82,0.08); }

.admin-pagination {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 14px 18px;
	border-top: 1px solid rgba(255,255,255,0.04);
}
.admin-page-btn {
	min-width: 32px; height: 32px; padding: 0 10px;
	border-radius: 7px;
	background: rgba(255,255,255,0.03);
	border: 1px solid rgba(255,255,255,0.06);
	color: rgba(255,255,255,0.6);
	font-size: 13px;
	cursor: pointer;
	transition: background-color 180ms ease, color 180ms ease;
}
.admin-page-btn:hover { background: rgba(255,255,255,0.06); color: #fff; }
.admin-page-btn-active {
	background: rgba(68,149,253,0.15);
	border-color: rgba(68,149,253,0.3);
	color: var(--color-primary);
}
.admin-page-dots { color: rgba(255,255,255,0.35); padding: 0 4px; }

/* Two-column edit row used by blog editor */
.admin-row-edit { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 18px; align-items: start; }
@media (max-width: 1100px) { .admin-row-edit { grid-template-columns: 1fr; } }
.admin-col-main, .admin-col-side { display: flex; flex-direction: column; gap: 18px; min-width: 0; }

.admin-form-help { font-size: 12px; color: rgba(255,255,255,0.4); margin: 6px 0 0; }

/* Tab row used in featured-image picker */
.admin-tab-row { display: flex; gap: 6px; margin-bottom: 12px; padding: 0 18px; }
.admin-tab {
	flex: 1;
	padding: 9px 0;
	background: rgba(255,255,255,0.03);
	border: 1px solid rgba(255,255,255,0.06);
	border-radius: 7px;
	color: rgba(255,255,255,0.55);
	font-size: 13px;
	cursor: pointer;
	transition: background-color 180ms ease, color 180ms ease;
}
.admin-tab:hover { color: #fff; }
.admin-tab-active {
	background: rgba(68,149,253,0.15);
	border-color: rgba(68,149,253,0.3);
	color: var(--color-primary);
}
.admin-image-picker-stack { flex-direction: column; align-items: stretch; padding: 0 18px 14px; gap: 12px; }
.admin-image-picker-stack img { width: 100%; height: 160px; object-fit: cover; border-radius: 8px; }

/* Language flag chip used in settings card titles */
.admin-lang-flag {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.5px;
	padding: 2px 8px;
	border-radius: 5px;
	background: rgba(68,149,253,0.15);
	color: var(--color-primary);
	margin-right: 8px;
	vertical-align: 1px;
}

/* ==========================================================
   Admin panel — second extension batch
   Dark dropdowns, removable chips, media delete, order/customer
   detail, page sections, theme customizer
   ========================================================== */

/* Dark <select> styling — appearance:none + custom chevron + force
   dark option backgrounds where the engine respects it (Firefox + most
   Chromium on non-Win). On Windows the OS still draws the popup white,
   so we ALSO accept select.admin-input above the existing rules — there
   is no perfect cross-browser fix without a custom dropdown component. */
.admin-input,
select.admin-input {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
}
select.admin-input {
	background-image:
		linear-gradient(45deg, transparent 50%, rgba(255,255,255,0.55) 50%),
		linear-gradient(135deg, rgba(255,255,255,0.55) 50%, transparent 50%);
	background-position:
		calc(100% - 18px) 52%,
		calc(100% - 13px) 52%;
	background-size: 5px 5px, 5px 5px;
	background-repeat: no-repeat;
	padding-right: 36px;
	cursor: pointer;
}
select.admin-input option,
select.admin-input optgroup {
	background-color: #14151E;
	color: #ffffff;
}
select.admin-input:focus { outline: 1px solid rgba(68,149,253,0.4); outline-offset: -1px; }

/* Removable tag chip × button (used in tags cloud + product editor) */
.admin-tag-pill { display: inline-flex; align-items: center; gap: 8px; }
.admin-tag-x {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: rgba(255,255,255,0.06);
	border: 0;
	color: rgba(255,255,255,0.55);
	font-size: 13px;
	line-height: 1;
	cursor: pointer;
	padding: 0;
	transition: background-color 160ms ease, color 160ms ease;
}
.admin-tag-x:hover { background: rgba(255,82,82,0.18); color: #FF5252; }

/* Media tile delete button — appears on hover, top-right */
.admin-media-tile { position: relative; }
.admin-media-del {
	position: absolute;
	top: 6px;
	right: 6px;
	width: 26px;
	height: 26px;
	border-radius: 7px;
	background: rgba(11,12,20,0.85);
	border: 1px solid rgba(255,255,255,0.08);
	color: rgba(255,255,255,0.6);
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
	opacity: 0;
	transform: scale(0.9);
	transition: opacity 180ms ease, transform 180ms ease, background-color 180ms ease, color 180ms ease;
	z-index: 2;
}
.admin-media-tile:hover .admin-media-del { opacity: 1; transform: scale(1); }
.admin-media-del:hover { background: rgba(255,82,82,0.18); color: #FF5252; border-color: rgba(255,82,82,0.3); }

/* Small ghost button for table action cells */
.admin-btn-ghost-sm {
	padding: 6px 12px;
	font-size: 12px;
	border-radius: 6px;
}

/* Customer card click affordance + spend label */
.admin-customer-card { cursor: pointer; transition: transform 200ms ease, border-color 200ms ease; }
.admin-customer-card:hover { transform: translateY(-2px); border-color: rgba(68,149,253,0.3); }
.admin-customer-spend { color: var(--color-primary); font-weight: 500; margin-top: 4px; }

/* Order detail / customer detail — totals + key/value rows + timeline */
.admin-totals-grid {
	display: flex;
	flex-direction: column;
	padding: 14px 18px;
	font-size: 14px;
	color: rgba(255,255,255,0.78);
}
.admin-totals-grid > div {
	display: flex;
	justify-content: space-between;
	padding: 10px 0;
	border-bottom: 1px solid rgba(255,255,255,0.04);
}
.admin-totals-grid > div:last-child { border-bottom: 0; }
.admin-totals-grand {
	font-size: 17px;
	font-weight: 700;
	color: #fff;
	padding-top: 14px !important;
	margin-top: 4px;
	border-top: 1px solid rgba(255,255,255,0.08) !important;
}

.admin-kv {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	padding: 10px 0;
	font-size: 13px;
	color: rgba(255,255,255,0.5);
	border-bottom: 1px solid rgba(255,255,255,0.04);
}
.admin-kv:last-child { border-bottom: 0; }
.admin-kv > strong, .admin-kv > span:last-child, .admin-kv > a:last-child {
	color: rgba(255,255,255,0.92);
	font-weight: 500;
	text-align: right;
}

.admin-customer-line {
	display: flex;
	align-items: center;
	gap: 12px;
	padding-bottom: 14px;
	margin-bottom: 8px;
	border-bottom: 1px solid rgba(255,255,255,0.04);
}
.admin-customer-line img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }

.admin-timeline {
	list-style: none;
	margin: 0;
	padding: 6px 18px 14px;
}
.admin-timeline li {
	display: flex;
	gap: 14px;
	padding: 12px 0;
	border-bottom: 1px solid rgba(255,255,255,0.04);
	font-size: 13px;
	color: rgba(255,255,255,0.85);
}
.admin-timeline li:last-child { border-bottom: 0; }
.admin-timeline-meta { font-size: 12px; color: rgba(255,255,255,0.4); margin-top: 2px; }
.admin-timeline-dot {
	flex-shrink: 0;
	width: 10px; height: 10px;
	border-radius: 50%;
	margin-top: 6px;
	box-shadow: 0 0 0 3px rgba(255,255,255,0.04);
}
.admin-timeline-dot-green { background: #50FF76; box-shadow: 0 0 0 3px rgba(80,255,118,0.18); }
.admin-timeline-dot-blue  { background: #4495fd; box-shadow: 0 0 0 3px rgba(68,149,253,0.18); }

/* Page sections row (used in page editor + customizer) */
.admin-section-list {
	display: flex;
	flex-direction: column;
	padding: 0 18px 14px;
}
.admin-section-row {
	display: grid;
	grid-template-columns: 16px 38px minmax(0,1fr) max-content max-content;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	margin-bottom: 8px;
	border: 1px solid rgba(255,255,255,0.05);
	border-radius: 9px;
	background: rgba(255,255,255,0.02);
	transition: border-color 180ms ease, background-color 180ms ease;
}
.admin-section-row:hover { border-color: rgba(68,149,253,0.25); background: rgba(255,255,255,0.035); }
.admin-section-icon {
	width: 38px; height: 38px;
	border-radius: 8px;
	display: inline-flex; align-items: center; justify-content: center;
	font-size: 13px; font-weight: 700;
}
.admin-section-name { font-size: 14px; color: rgba(255,255,255,0.92); }
.admin-section-sub  { font-size: 12px; color: rgba(255,255,255,0.4); margin-top: 2px; }

/* Color input combo (color picker + hex text) */
.admin-color-input {
	display: flex;
	align-items: center;
	gap: 8px;
}
.admin-color-input input[type="color"] {
	-webkit-appearance: none;
	appearance: none;
	width: 36px;
	height: 32px;
	padding: 0;
	border: 1px solid rgba(255,255,255,0.08);
	border-radius: 7px;
	background: transparent;
	cursor: pointer;
}
.admin-color-input input[type="color"]::-webkit-color-swatch-wrapper { padding: 2px; }
.admin-color-input input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 5px; }
.admin-color-input .admin-input-sm { width: 100px; flex-shrink: 0; }

/* Theme Customizer — split panel + preview */
.admin-customizer {
	display: grid;
	grid-template-columns: 360px minmax(0,1fr);
	gap: 18px;
	min-height: calc(100vh - 220px);
}
@media (max-width: 1100px) {
	.admin-customizer { grid-template-columns: 1fr; }
}

.admin-customizer-panel {
	background: rgba(255,255,255,0.025);
	border: 1px solid rgba(255,255,255,0.05);
	border-radius: 12px;
	overflow-y: auto;
	max-height: calc(100vh - 220px);
}
.admin-cz-group {
	padding: 16px 18px;
	border-bottom: 1px solid rgba(255,255,255,0.04);
}
.admin-cz-group:last-child { border-bottom: 0; }
.admin-cz-group-title {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.8px;
	color: rgba(255,255,255,0.55);
	margin-bottom: 14px;
}
.admin-cz-row {
	display: grid;
	grid-template-columns: 110px minmax(0,1fr);
	align-items: center;
	gap: 12px;
	margin-bottom: 12px;
}
.admin-cz-row label {
	font-size: 12px;
	color: rgba(255,255,255,0.6);
}
.admin-cz-row-inline { grid-template-columns: 1fr max-content; }

.admin-cz-tabs {
	display: flex;
	gap: 4px;
	margin-top: 14px;
	background: rgba(255,255,255,0.025);
	border-radius: 8px;
	padding: 4px;
}
.admin-cz-tab {
	flex: 1;
	padding: 7px 0;
	border: 0;
	background: transparent;
	color: rgba(255,255,255,0.55);
	font-size: 12px;
	font-weight: 500;
	border-radius: 6px;
	cursor: pointer;
	transition: background-color 180ms ease, color 180ms ease;
}
.admin-cz-tab-active {
	background: rgba(68,149,253,0.18);
	color: var(--color-primary);
}

.admin-cz-slider {
	display: flex;
	align-items: center;
	gap: 10px;
}
.admin-cz-slider input[type="range"] {
	flex: 1;
	-webkit-appearance: none;
	appearance: none;
	height: 4px;
	background: rgba(255,255,255,0.08);
	border-radius: 2px;
}
.admin-cz-slider input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--color-primary);
	cursor: pointer;
	border: 2px solid #11121B;
	box-shadow: 0 0 0 1px var(--color-primary);
}
.admin-cz-slider input[type="range"]::-moz-range-thumb {
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--color-primary);
	cursor: pointer;
	border: 2px solid #11121B;
	box-shadow: 0 0 0 1px var(--color-primary);
}
.admin-cz-slider-val {
	width: 56px;
	text-align: right;
	font-size: 12px;
	color: rgba(255,255,255,0.55);
	font-variant-numeric: tabular-nums;
}

/* Customizer preview pane */
.admin-customizer-preview {
	background: #11121B;
	border: 1px solid rgba(255,255,255,0.05);
	border-radius: 12px;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}
.admin-cz-preview-toolbar {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 10px 14px;
	border-bottom: 1px solid rgba(255,255,255,0.06);
	background: rgba(255,255,255,0.025);
	font-size: 12px;
	color: rgba(255,255,255,0.55);
}
.admin-cz-device-row { display: flex; gap: 4px; }
.admin-cz-device {
	width: 30px; height: 28px;
	border: 1px solid rgba(255,255,255,0.06);
	background: transparent;
	color: rgba(255,255,255,0.5);
	border-radius: 6px;
	cursor: pointer;
	display: inline-flex; align-items: center; justify-content: center;
}
.admin-cz-device:hover { color: #fff; }
.admin-cz-device-active {
	background: rgba(68,149,253,0.15);
	border-color: rgba(68,149,253,0.3);
	color: var(--color-primary);
}
.admin-cz-zoom { color: rgba(255,255,255,0.45); margin-left: 8px; }
.admin-cz-preview-toolbar a { margin-left: auto; }

.admin-cz-frame {
	flex: 1;
	background: #0E0F17;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 18px;
}
.admin-cz-frame iframe {
	width: 100%;
	height: 100%;
	min-height: 520px;
	border: 1px solid rgba(255,255,255,0.06);
	border-radius: 9px;
	background: #0E0F17;
}

/* Equal-height + equal-width payment gateway cards (50/50 split,
   overrides the default 2fr 1fr admin-row-2col grid) */
[data-admin-section="payments"] .admin-row-2col {
	grid-template-columns: 1fr 1fr;
}
.admin-row-2col > .admin-gateway-card { display: flex; flex-direction: column; }
.admin-gateway-card .admin-form { flex: 1; }

/* ----- Dashboard date-range toggle ----- */
.admin-range-toggle {
	display: inline-flex;
	gap: 4px;
	background: rgba(255,255,255,0.025);
	border: 1px solid rgba(255,255,255,0.06);
	border-radius: 9px;
	padding: 4px;
}
.admin-range-btn {
	padding: 7px 14px;
	border: 0;
	background: transparent;
	color: rgba(255,255,255,0.55);
	font-size: 12px;
	font-weight: 500;
	border-radius: 6px;
	cursor: pointer;
	transition: background-color 180ms ease, color 180ms ease;
}
.admin-range-btn:hover { color: #fff; }
.admin-range-btn-active {
	background: rgba(68,149,253,0.18);
	color: var(--color-primary);
}

/* ----- Dashboard metric pills (Impressions / Clicks / CTR / Position) ----- */
.admin-metric-row {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0;
	border-top: 1px solid rgba(255,255,255,0.04);
	border-bottom: 1px solid rgba(255,255,255,0.04);
}
@media (max-width: 900px) { .admin-metric-row { grid-template-columns: repeat(2, 1fr); } }
.admin-metric {
	background: transparent;
	border: 0;
	border-right: 1px solid rgba(255,255,255,0.04);
	padding: 18px 22px;
	text-align: left;
	cursor: pointer;
	color: inherit;
	transition: background-color 200ms ease;
	position: relative;
}
.admin-metric:last-child { border-right: 0; }
.admin-metric:hover { background: rgba(255,255,255,0.025); }
.admin-metric-active::after {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: -1px;
	height: 2px;
	background: var(--color-primary);
}
.admin-metric-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.6px; color: rgba(255,255,255,0.5); }
.admin-metric-val { font-size: 26px; font-weight: 700; margin-top: 6px; color: #fff; font-variant-numeric: tabular-nums; }
.admin-metric-trend { font-size: 12px; margin-top: 4px; }

/* ----- Dual line/area chart container ----- */
.admin-chart-area {
	padding: 20px 18px 8px;
	position: relative;
}
.admin-chart-area svg {
	width: 100%;
	height: 240px;
	display: block;
}

/* Even-spaced 7-tick axis (Mon-Sun) */
.admin-chart-axis-7 {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	margin-top: 8px;
}
.admin-chart-axis-7 span { text-align: center; font-size: 11px; color: rgba(255,255,255,0.4); }

/* Grouped bar chart (page views vs unique visitors) */
.admin-chart-grouped {
	display: flex;
	align-items: flex-end;
	gap: 18px;
	height: 180px;
	padding: 0 4px;
}
.admin-chart-group {
	flex: 1;
	display: flex;
	align-items: flex-end;
	gap: 4px;
	height: 100%;
}
.admin-chart-bar-col-purple {
	background: linear-gradient(180deg, rgba(157,107,255,0.85), rgba(157,107,255,0.35));
}

/* ==========================================================
   Admin panel — third extension batch
   Variants · Coupons · Email suite · Funnel · Real-time stream
   RBAC · API keys · Security · Error logs
   ========================================================== */

/* Small pill color variants not in the base set */
.admin-pill-red    { background: rgba(255,82,82,0.12);  color: #FF5252; }
.admin-pill-purple { background: rgba(157,107,255,0.14); color: #9D6BFF; }

/* Small ghost button for danger (Refund) */
.admin-btn-danger { color: #FF5252; border-color: rgba(255,82,82,0.25) !important; }
.admin-btn-danger:hover { background: rgba(255,82,82,0.1) !important; color: #FF6A6A !important; }

/* Nav badges — live indicator */
.admin-nav-badge-live {
	background: rgba(80,255,118,0.18) !important;
	color: #50FF76 !important;
	font-size: 9px;
	letter-spacing: 0.6px;
	animation: admin-pulse 1.6s ease-in-out infinite;
}
@keyframes admin-pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.55; }
}

/* Live indicator pill (used in realtime dashboard header) */
.admin-live-indicator {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border-radius: 6px;
	background: rgba(80,255,118,0.12);
	color: #50FF76;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.6px;
}
.admin-live-dot {
	width: 8px; height: 8px;
	border-radius: 50%;
	background: #50FF76;
	display: inline-block;
	box-shadow: 0 0 0 3px rgba(80,255,118,0.2);
	animation: admin-pulse 1.6s ease-in-out infinite;
}

/* Export button group */
.admin-export-group {
	display: inline-flex;
	gap: 2px;
	background: rgba(255,255,255,0.025);
	border: 1px solid rgba(255,255,255,0.06);
	border-radius: 7px;
	padding: 2px;
}
.admin-export-group .admin-btn-ghost {
	padding: 6px 12px;
	font-size: 12px;
	border: 0;
	background: transparent;
}
.admin-export-group .admin-btn-ghost:hover {
	background: rgba(68,149,253,0.14);
	color: var(--color-primary);
}

/* Automation grid (email campaigns) */
.admin-automation-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 14px;
	padding: 0 18px 18px;
}
.admin-automation-card {
	border: 1px solid rgba(255,255,255,0.05);
	border-radius: 10px;
	background: rgba(255,255,255,0.02);
	padding: 14px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.admin-automation-head {
	display: flex;
	align-items: center;
	gap: 12px;
}
.admin-automation-head > div:not(.admin-automation-icon) { flex: 1; }
.admin-automation-icon {
	width: 42px; height: 42px;
	border-radius: 10px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	flex-shrink: 0;
}
.admin-automation-name { font-size: 14px; font-weight: 600; color: #fff; }
.admin-automation-trigger { font-size: 11px; color: rgba(255,255,255,0.45); margin-top: 2px; }
.admin-automation-body { padding: 8px 0; border-top: 1px solid rgba(255,255,255,0.04); border-bottom: 1px solid rgba(255,255,255,0.04); }
.admin-automation-body .admin-kv { padding: 6px 0; border: 0; }
.admin-automation-foot { display: flex; gap: 6px; }
.admin-automation-foot > * { flex: 1; text-align: center; }

/* Bulk email segment preview */
.admin-segment-preview {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 18px;
	background: rgba(68,149,253,0.08);
	border: 1px dashed rgba(68,149,253,0.3);
	border-radius: 10px;
}
.admin-segment-count {
	font-size: 40px;
	font-weight: 700;
	color: var(--color-primary);
	font-variant-numeric: tabular-nums;
	line-height: 1;
}
.admin-segment-label { font-size: 12px; color: rgba(255,255,255,0.5); margin-top: 6px; }

/* Abandoned cart timeline steps */
.admin-timeline-row {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 0 18px 14px;
}
.admin-timeline-step {
	display: grid;
	grid-template-columns: 36px minmax(0,1.4fr) minmax(0,1fr) max-content;
	align-items: center;
	gap: 14px;
	padding: 12px 14px;
	background: rgba(255,255,255,0.02);
	border: 1px solid rgba(255,255,255,0.05);
	border-radius: 9px;
}
.admin-timeline-step-num {
	width: 28px; height: 28px;
	border-radius: 50%;
	background: rgba(68,149,253,0.14);
	color: var(--color-primary);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-weight: 700;
}
.admin-timeline-step-title { font-size: 14px; color: rgba(255,255,255,0.92); font-weight: 500; }
.admin-timeline-step-sub { font-size: 12px; color: rgba(255,255,255,0.45); margin-top: 2px; }

/* Real-time event stream */
.admin-event-stream {
	list-style: none;
	margin: 0;
	padding: 0 18px 14px;
}
.admin-event {
	display: grid;
	grid-template-columns: 80px 32px minmax(0,1fr);
	align-items: center;
	gap: 12px;
	padding: 12px 0;
	border-bottom: 1px solid rgba(255,255,255,0.04);
	font-size: 13px;
	color: rgba(255,255,255,0.82);
}
.admin-event:last-child { border-bottom: 0; }
.admin-event-time {
	font-size: 11px;
	color: rgba(255,255,255,0.4);
	font-variant-numeric: tabular-nums;
	text-align: right;
}
.admin-event-icon {
	width: 28px; height: 28px;
	border-radius: 50%;
	background: rgba(255,255,255,0.04);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 15px;
}
.admin-event-success .admin-event-icon { background: rgba(80,255,118,0.12); }
.admin-event-warn    .admin-event-icon { background: rgba(255,178,71,0.14); }
.admin-event em { color: rgba(255,255,255,0.55); font-style: normal; }
.admin-event-body strong { color: #fff; font-weight: 600; }

/* Funnel chart */
.admin-funnel {
	padding: 20px 24px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.admin-funnel-step {
	position: relative;
	height: 62px;
	background: rgba(255,255,255,0.03);
	border-radius: 9px;
	display: flex;
	align-items: center;
	padding: 0 18px;
	overflow: hidden;
}
.admin-funnel-bar {
	position: absolute;
	top: 0; left: 0; bottom: 0;
	width: var(--w, 100%);
	background: linear-gradient(90deg, rgba(68,149,253,0.35), rgba(68,149,253,0.12));
	border-right: 2px solid #4495fd;
	transition: width 400ms ease;
}
.admin-funnel-bar-success {
	background: linear-gradient(90deg, rgba(80,255,118,0.35), rgba(80,255,118,0.12));
	border-right-color: #50FF76;
}
.admin-funnel-meta {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 1fr max-content max-content;
	gap: 18px;
	width: 100%;
	align-items: center;
}
.admin-funnel-label { font-size: 14px; font-weight: 500; color: #fff; }
.admin-funnel-val { font-size: 14px; color: rgba(255,255,255,0.75); font-variant-numeric: tabular-nums; }
.admin-funnel-pct { font-size: 14px; font-weight: 700; color: var(--color-primary); font-variant-numeric: tabular-nums; min-width: 60px; text-align: right; }
.admin-funnel-pct-final { color: #50FF76; }
.admin-funnel-drop {
	padding: 4px 18px 4px 42px;
	font-size: 11px;
	color: rgba(255,82,82,0.75);
	letter-spacing: 0.2px;
}

/* Permission matrix */
.admin-perm-matrix td { font-size: 13px; }
.admin-perm-on  { color: #50FF76; font-size: 15px; }
.admin-perm-off { color: rgba(255,255,255,0.2); font-size: 15px; }

/* Muted text helper */
.admin-muted { color: rgba(255,255,255,0.4); }
.admin-avatar-placeholder {
	width: 32px; height: 32px;
	border-radius: 50%;
	background: rgba(255,255,255,0.04);
	border: 1px dashed rgba(255,255,255,0.12);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: rgba(255,255,255,0.35);
	font-size: 14px;
	font-weight: 700;
}

/* Error log list */
.admin-error-list {
	list-style: none;
	margin: 0;
	padding: 0 18px 14px;
}
.admin-error {
	padding: 14px 16px;
	margin-bottom: 10px;
	border-radius: 9px;
	background: rgba(255,255,255,0.02);
	border-left: 3px solid rgba(255,255,255,0.1);
}
.admin-error-err  { border-left-color: #FF5252; }
.admin-error-warn { border-left-color: #FFB247; }
.admin-error-head {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 6px;
}
.admin-error-sev {
	padding: 3px 9px;
	border-radius: 5px;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.6px;
}
.admin-error-sev-err  { background: rgba(255,82,82,0.15);  color: #FF5252; }
.admin-error-sev-warn { background: rgba(255,178,71,0.15); color: #FFB247; }
.admin-error-title { flex: 1; font-size: 14px; color: #fff; font-weight: 500; }
.admin-error-count {
	font-size: 11px;
	padding: 2px 8px;
	background: rgba(255,255,255,0.06);
	color: rgba(255,255,255,0.6);
	border-radius: 6px;
	font-variant-numeric: tabular-nums;
}
.admin-error-meta {
	display: flex;
	gap: 14px;
	font-size: 12px;
	color: rgba(255,255,255,0.45);
	margin-bottom: 6px;
}
.admin-error-file { color: rgba(68,149,253,0.9); }
.admin-error-stack {
	font-size: 11px;
	color: rgba(255,255,255,0.5);
	padding: 8px 12px;
	background: rgba(0,0,0,0.3);
	border-radius: 6px;
	white-space: pre;
	overflow-x: auto;
}

/* Extra stat card variants (red + yellow) */
.admin-stat-red::before    { background: linear-gradient(180deg, #FF5252, #B03030); }
.admin-stat-yellow::before { background: linear-gradient(180deg, #FFE36E, #D49E13); }

/* ==========================================================
   Media Library — folder sidebar + folder tiles + storage meter
   ========================================================== */
.admin-media-shell {
	display: grid;
	grid-template-columns: 260px minmax(0,1fr);
	gap: 18px;
	align-items: start;
}
@media (max-width: 1100px) {
	.admin-media-shell { grid-template-columns: 1fr; }
}

.admin-media-sidebar {
	background: rgba(255,255,255,0.025);
	border: 1px solid rgba(255,255,255,0.05);
	border-radius: 12px;
	padding: 14px 0;
	position: sticky;
	top: 90px;
}
.admin-media-sidebar-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 0 16px 10px;
}
.admin-media-sidebar-head .admin-card-title { font-size: 13px; text-transform: uppercase; letter-spacing: 0.6px; color: rgba(255,255,255,0.55); }
.admin-media-sidebar-head .admin-btn-ghost-sm { padding: 4px 10px; font-size: 11px; }

/* Folder tree list */
.admin-folder-list { display: flex; flex-direction: column; }
.admin-folder {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 16px;
	color: rgba(255,255,255,0.7);
	font-size: 13px;
	cursor: pointer;
	text-decoration: none;
	transition: background-color 160ms ease, color 160ms ease;
	border-left: 2px solid transparent;
}
.admin-folder:hover { background: rgba(255,255,255,0.03); color: #fff; }
.admin-folder-active {
	background: rgba(68,149,253,0.1);
	color: var(--color-primary);
	border-left-color: var(--color-primary);
}
.admin-folder svg { flex-shrink: 0; color: rgba(255,255,255,0.4); }
.admin-folder-active svg { color: var(--color-primary); }
.admin-folder span:not(.admin-folder-count) { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-folder-count {
	font-size: 11px;
	color: rgba(255,255,255,0.4);
	font-variant-numeric: tabular-nums;
}
.admin-folder-child {
	padding-left: 36px;
	font-size: 12px;
	color: rgba(255,255,255,0.55);
}

/* Storage meter */
.admin-storage-meter { padding: 0 16px; }
.admin-storage-meta {
	display: flex;
	justify-content: space-between;
	font-size: 11px;
	color: rgba(255,255,255,0.65);
	margin-top: 6px;
}

/* Breadcrumb inside media card header */
.admin-breadcrumb {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: rgba(255,255,255,0.55);
	margin-bottom: 4px;
}
.admin-breadcrumb strong { color: #fff; font-weight: 600; }
.admin-breadcrumb-sep { color: rgba(255,255,255,0.25); }

/* Folder tile grid (main media area) */
.admin-folder-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 12px;
	padding: 0 18px 18px;
}
.admin-folder-tile {
	background: rgba(255,255,255,0.025);
	border: 1px solid rgba(255,255,255,0.05);
	border-radius: 10px;
	padding: 16px 14px;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	cursor: pointer;
	transition: transform 200ms ease, border-color 200ms ease, background-color 200ms ease;
}
.admin-folder-tile:hover {
	transform: translateY(-2px);
	border-color: rgba(68,149,253,0.3);
	background: rgba(68,149,253,0.06);
}
.admin-folder-tile-icon {
	color: rgba(68,149,253,0.85);
	margin-bottom: 8px;
}
.admin-folder-tile-name {
	font-size: 13px;
	font-weight: 500;
	color: rgba(255,255,255,0.92);
	white-space: nowrap;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
}
.admin-folder-tile-sub {
	font-size: 11px;
	color: rgba(255,255,255,0.4);
	margin-top: 2px;
}

/* "New folder" tile — dashed outline + centered plus */
.admin-folder-tile-new {
	border-style: dashed;
	border-color: rgba(255,255,255,0.1);
	background: transparent;
}
.admin-folder-tile-new:hover {
	border-color: rgba(68,149,253,0.5);
	background: rgba(68,149,253,0.05);
}
.admin-folder-tile-new .admin-folder-tile-icon {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(68,149,253,0.14);
	color: var(--color-primary);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	font-weight: 400;
	line-height: 1;
}

.admin-media-section-label {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.8px;
	color: rgba(255,255,255,0.4);
	padding: 4px 18px 8px;
}


/* ==========================================================
   Media picker modal — reusable image browser overlay
   ========================================================== */
.admin-media-picker-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.75);
	backdrop-filter: blur(6px);
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
}
.admin-media-picker {
	background: #11121B;
	border: 1px solid rgba(255,255,255,0.08);
	border-radius: 14px;
	width: 780px;
	max-width: 95vw;
	max-height: 80vh;
	display: flex;
	flex-direction: column;
	box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
.admin-media-picker-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 22px 14px;
	border-bottom: 1px solid rgba(255,255,255,0.06);
}
.admin-media-picker-header h3 {
	font-size: 17px;
	font-weight: 600;
	margin: 0;
}
.admin-media-picker-close {
	width: 32px; height: 32px;
	border-radius: 8px;
	background: rgba(255,255,255,0.04);
	border: 1px solid rgba(255,255,255,0.06);
	color: rgba(255,255,255,0.6);
	font-size: 18px;
	cursor: pointer;
	display: flex; align-items: center; justify-content: center;
}
.admin-media-picker-close:hover { color: #fff; background: rgba(255,255,255,0.08); }
.admin-media-picker-body {
	flex: 1;
	overflow-y: auto;
	padding: 18px;
}
.admin-media-picker-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
	gap: 10px;
}
.admin-media-picker-item {
	aspect-ratio: 1;
	border-radius: 8px;
	overflow: hidden;
	border: 2px solid transparent;
	cursor: pointer;
	transition: border-color 160ms ease, transform 160ms ease;
	background: rgba(255,255,255,0.03);
}
.admin-media-picker-item:hover {
	border-color: var(--color-primary);
	transform: scale(1.04);
}
.admin-media-picker-item img {
	width: 100%; height: 100%; object-fit: cover;
}
.admin-media-picker-empty {
	text-align: center;
	padding: 40px 20px;
	color: rgba(255,255,255,0.4);
}

/* Browse button next to image input */
.admin-media-pick-row {
	display: flex;
	gap: 8px;
	align-items: center;
}
.admin-media-pick-row .admin-input { flex: 1; }
.admin-media-pick-btn { white-space: nowrap; flex-shrink: 0; }

/* Image preview thumb */
.admin-media-preview { margin-top: 8px; }
.admin-media-preview img {
	max-height: 120px; border-radius: 8px;
	border: 1px solid rgba(255,255,255,0.06);
}

/* Gallery pick grid (selected images for a product) */
.admin-gallery-pick-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.admin-gallery-pick-item {
	position: relative;
	width: 80px; height: 80px;
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid rgba(255,255,255,0.06);
}
.admin-gallery-pick-item img { width: 100%; height: 100%; object-fit: cover; }
.admin-gallery-pick-item .admin-gallery-pick-remove {
	position: absolute; top: 3px; right: 3px;
	width: 20px; height: 20px; border-radius: 50%;
	background: rgba(0,0,0,0.7); color: #FF5252; border: 0;
	font-size: 13px; cursor: pointer;
	display: flex; align-items: center; justify-content: center;
}

