/**
 * Domain List - Exact styling from new-layout.html (DomainFlux design)
 * Fonts: Inter (filters), Space Grotesk (domain grid)
 */
@import url('https://fonts.bunny.net/css?family=Inter:300,400,500,600|Space+Grotesk:300,400,500,600,700');

/* ========== Inventory Hero – matches home page design ========== */
.exp-inventory-hero {
	background-color: #eef2ff;
	font-family: "Plus Jakarta Sans", "Space Grotesk", sans-serif;
	/* Full-width background on all pages */
	width: 100vw;
	position: relative;
	left: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
}
.exp-inventory-hero__sub {
	font-family: "Inter", sans-serif;
}
.exp-inventory-hero__title,
.exp-inventory-hero__desc {
	font-family: "Space Grotesk", sans-serif;
}
.exp-inventory-hero__title {
	color: #2e2c4d;
}
.exp-inventory-hero__btn {
	background-color: #4f46e5 !important;
}
.exp-inventory-hero__btn:hover {
	background-color: #4338ca !important;
}
@keyframes exp-hero-float {
	0%, 100% { transform: translateY(0) rotate(6deg); }
	50% { transform: translateY(-12px) rotate(6deg); }
}
@keyframes exp-hero-float-ccw {
	0%, 100% { transform: translateY(0) rotate(-3deg); }
	50% { transform: translateY(-12px) rotate(-3deg); }
}
@keyframes exp-hero-float-ccw2 {
	0%, 100% { transform: translate(-50%, -50%) translateY(0) rotate(-6deg); }
	50% { transform: translate(-50%, -50%) translateY(-12px) rotate(-6deg); }
}
.exp-hero-float {
	animation: exp-hero-float 6s ease-in-out infinite;
}
.exp-hero-float--ccw {
	animation: exp-hero-float-ccw 6s ease-in-out infinite;
}
.exp-hero-float--ccw2 {
	animation: exp-hero-float-ccw2 6s ease-in-out infinite;
}

/* Hero – larger unified illustration */
.exp-inventory-hero__illustration--large {
	min-height: 320px;
}
@media (min-width: 1024px) {
	.exp-inventory-hero__illustration--large {
		min-height: 420px;
	}
}
.exp-hero-unified-card {
	backdrop-filter: blur(8px);
}
.exp-inventory-hero__visual {
	flex: 1;
	min-width: 0;
}

/* Domain inventory hero – full-size image */
.exp-inventory-hero__visual--img {
	position: relative;
	overflow: hidden;
	min-height: 280px;
}

@media (min-width: 640px) {
	.exp-inventory-hero__visual--img {
		min-height: 340px;
	}
}

@media (min-width: 1024px) {
	.exp-inventory-hero__visual--img {
		min-height: 420px;
	}
}

.exp-inventory-hero__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
}

#exp-domain-grid {
	scroll-margin-top: 6rem;
}

/* Inline SVG icons - no font dependency */
.exp-domain-marketplace .exp-svg-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	vertical-align: middle;
}
.exp-domain-marketplace .exp-svg-icon svg {
	fill: currentColor;
	width: 1em;
	height: 1em;
}

/* Hide favorite toggle button */
.exp-domain-marketplace .exp-fav-toggle {
	display: none;
}

/* Hide row checkboxes in domain cards */
.exp-domain-marketplace .exp-checkbox-wrap {
	display: none;
}

/* Price inputs - prevent $ overlap with numbers */
.exp-domain-marketplace .exp-price-input-wrap {
	position: relative;
}
.exp-domain-marketplace .exp-price-prefix {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	color: #94a3b8;
	font-size: 0.875rem;
	pointer-events: none;
}
.exp-domain-marketplace .exp-price-input {
	padding-left: 32px !important;
}

/* ========== Typography ========== */
/* Filters sidebar - Inter */
.exp-domain-marketplace #exp-filter-sidebar,
.exp-domain-marketplace #exp-filter-sidebar input,
.exp-domain-marketplace #exp-filter-sidebar select,
.exp-domain-marketplace #exp-filter-sidebar button,
.exp-domain-marketplace #exp-filter-sidebar label,
.exp-domain-marketplace #exp-filter-sidebar span,
.exp-domain-marketplace #exp-filter-sidebar h2,
.exp-domain-marketplace #exp-filter-sidebar h3,
.exp-domain-marketplace #exp-filter-sidebar a,
.exp-domain-marketplace #exp-filter-sidebar div,
.exp-domain-marketplace #exp-filter-sidebar p {
	font-family: "Inter", sans-serif !important;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
/* Right side (main content, domain grid/cards) - Space Grotesk */
.exp-domain-marketplace main,
.exp-domain-marketplace main *,
.exp-domain-marketplace #exp-domain-grid,
.exp-domain-marketplace #exp-domain-grid *,
.exp-domain-marketplace .exp-domain-card,
.exp-domain-marketplace .exp-domain-card * {
	font-family: "Space Grotesk", sans-serif !important;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* ========== FROM new-layout.html <style> block ========== */

/* Custom Scrollbar for Light Mode */
.exp-domain-marketplace ::-webkit-scrollbar {
	width: 8px;
	height: 8px;
}
.exp-domain-marketplace ::-webkit-scrollbar-track {
	background: #f1f5f9;
}
.exp-domain-marketplace ::-webkit-scrollbar-thumb {
	background: #cbd5e1;
	border-radius: 4px;
}
.exp-domain-marketplace ::-webkit-scrollbar-thumb:hover {
	background: #94a3b8;
}

/* Range Slider Styling (native input[type=range]) - for reference;
   noUiSlider overrides below to match this look */
.exp-domain-marketplace input[type=range] {
	-webkit-appearance: none;
	background: transparent;
}
.exp-domain-marketplace input[type=range]::-webkit-slider-thumb {
	-webkit-appearance: none;
	height: 16px;
	width: 16px;
	border-radius: 50%;
	background: #6366f1;
	cursor: pointer;
	margin-top: -6px;
	box-shadow: 0 2px 6px rgba(0,0,0,0.1);
	border: 2px solid white;
}
.exp-domain-marketplace input[type=range]::-webkit-slider-runnable-track {
	width: 100%;
	height: 4px;
	cursor: pointer;
	background: #e2e8f0;
	border-radius: 2px;
}

/* Radial Progress - exact from new-layout.html */
.exp-domain-marketplace .radial-progress,
.exp-domain-marketplace .exp-radial-progress {
	position: relative;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: conic-gradient(var(--color) var(--progress), #f1f5f9 0deg);
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: inset 0 0 0 2px white;
}
.exp-domain-marketplace .radial-progress::before,
.exp-domain-marketplace .exp-radial-progress::before {
	content: "";
	position: absolute;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background-color: white;
	box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.exp-domain-marketplace .radial-progress span,
.exp-domain-marketplace .exp-radial-progress span {
	position: relative;
	z-index: 10;
	font-size: 0.7rem;
	font-weight: 700;
	color: #334155;
}

/* ========== noUiSlider - prominent circular handles, prevent clipping ========== */
.exp-domain-marketplace .noUi-target {
	margin-top: 8px;
	border: none;
	position: relative;
	/* Add padding so handles (16px) aren't cut off at edges */
	padding: 0 8px;
}
.exp-domain-marketplace .noUi-connects {
	margin: 0 -8px;
	width: calc(100% + 16px);
	height: 4px;
	border-radius: 2px;
}
.exp-domain-marketplace .noUi-base {
	height: 4px;
}
.exp-domain-marketplace .noUi-connect {
	background: #6366f1;
	border-radius: 2px;
}
.exp-domain-marketplace .noUi-background,
.exp-domain-marketplace .noUi-origin {
	background: transparent;
	border-radius: 2px;
}
/* Handles - distinct 16px circles, fully visible */
.exp-domain-marketplace .noUi-horizontal {
	height: 18px;
}
.exp-domain-marketplace .noUi-handle {
	width: 16px !important;
	height: 16px !important;
	min-width: 16px !important;
	min-height: 16px !important;
	top: -6px !important;
	right: -8px !important;
	left: auto !important;
	border: 2px solid white !important;
	border-radius: 50% !important;
	background: #6366f1 !important;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
	cursor: grab;
	z-index: 5;
	box-sizing: border-box;
}
.exp-domain-marketplace .noUi-handle::after,
.exp-domain-marketplace .noUi-handle::before {
	display: none !important;
}
.exp-domain-marketplace .exp-range-slider {
	min-height: 24px;
	height: auto;
	padding: 4px 0;
}

/* ========== Fonts & base ========== */
.exp-domain-marketplace {
	font-weight: 400;
	font-size: 14px;
}

/* Font Awesome icons - ensure they render (prevent square placeholders) */
/* Base rules */
.exp-domain-marketplace .fa,
.exp-domain-marketplace .fa-solid,
.exp-domain-marketplace .fa-regular,
.exp-domain-marketplace .fa-brands,
.exp-domain-marketplace i[class*="fa-"],
.exp-domain-marketplace [class^="fa-"],
.exp-domain-marketplace [class*=" fa-"] {
	font-family: "Font Awesome 6 Free" !important;
	font-weight: 900 !important;
	font-style: normal !important;
	font-variant: normal !important;
	display: inline-block !important;
	line-height: 1;
	-moz-osx-font-smoothing: grayscale;
	-webkit-font-smoothing: antialiased;
	speak: none;
	text-rendering: auto;
}
/* Override Space Grotesk - icons in domain cards and main must use Font Awesome */
.exp-domain-marketplace main .fa,
.exp-domain-marketplace main .fa-solid,
.exp-domain-marketplace main .fa-regular,
.exp-domain-marketplace .exp-domain-card .fa,
.exp-domain-marketplace .exp-domain-card .fa-solid,
.exp-domain-marketplace .exp-domain-card .fa-regular,
.exp-domain-marketplace .exp-domain-card i[class*="fa-"] {
	font-family: "Font Awesome 6 Free" !important;
	font-weight: 900 !important;
}
.exp-domain-marketplace .exp-domain-card .fa-regular {
	font-weight: 400 !important;
}
.exp-domain-marketplace .fa-regular {
	font-weight: 400 !important;
}
.exp-domain-marketplace .fa-brands {
	font-family: "Font Awesome 6 Brands" !important;
	font-weight: 400 !important;
}

/* ========== Filter accordion (from HTML) ========== */
.exp-domain-marketplace .exp-filter-section .exp-filter-toggle {
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	padding: 0;
	background: none;
	border: none;
	text-align: left;
}
.exp-domain-marketplace .exp-filter-chevron {
	transition: transform 0.3s;
}
.exp-domain-marketplace .exp-filter-section.exp-open .exp-filter-chevron {
	transform: rotate(180deg);
}
.exp-domain-marketplace .exp-filter-content {
	overflow: hidden;
	transition: all 0.3s;
}
/* When expanded, allow slider handles to show (no clipping) */
.exp-domain-marketplace .exp-filter-section.exp-open .exp-filter-content {
	overflow: visible;
}
.exp-domain-marketplace .exp-filter-section.exp-collapsed .exp-filter-content {
	max-height: 0 !important;
	opacity: 0;
	overflow: hidden;
}
/* Slider wrapper - extra padding so handles aren't clipped by parent */
.exp-domain-marketplace .exp-range-slider {
	overflow: visible;
}
.exp-domain-marketplace .noUi-target {
	overflow: visible;
}

/* TLD pills - purple/blue brand (matches home page) */
.exp-domain-marketplace input[name="filter_tld"]:checked + span {
	background-color: #e0e7ff;
	border-color: #a5b4fc;
	color: #4f46e5;
}

/* ========== Pagination - exact from new-layout.html ========== */
.exp-domain-list-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	flex-wrap: wrap;
}
.exp-domain-marketplace .exp-domain-list-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0;
	border: 1px solid #e2e8f0;
	border-radius: 0.5rem;
	background: #ffffff;
	color: #64748b;
	text-decoration: none;
	font-size: 0.875rem;
	font-weight: 500;
	transition: all 0.2s;
	box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
.exp-domain-marketplace .exp-domain-list-pagination .page-numbers:hover {
	background: #eef2ff;
	border-color: #c7d2fe;
	color: #4f46e5;
}
.exp-domain-marketplace .exp-domain-list-pagination .page-numbers.current {
	background: #4f46e5;
	border-color: #4f46e5;
	color: #ffffff;
	font-weight: 700;
	box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.2), 0 2px 4px -2px rgba(79, 70, 229, 0.2);
}
.exp-domain-marketplace .exp-domain-list-pagination .prev.page-numbers,
.exp-domain-marketplace .exp-domain-list-pagination .next.page-numbers {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	color: #64748b;
}
.exp-domain-marketplace .exp-domain-list-pagination .prev.page-numbers:hover,
.exp-domain-marketplace .exp-domain-list-pagination .next.page-numbers:hover {
	background: #eef2ff;
	border-color: #c7d2fe;
	color: #4f46e5;
}
.exp-domain-marketplace .exp-domain-list-pagination .page-numbers.dots {
	background: transparent;
	border: none;
	color: #cbd5e1;
	font-weight: 700;
	box-shadow: none;
}
.exp-domain-marketplace .exp-domain-list-pagination .page-numbers i {
	font-family: "Font Awesome 6 Free" !important;
	font-weight: 900;
}

/* Cart button - purple/blue (matches home page) */
.exp-domain-marketplace .exp-btn-cart {
	background-color: #4f46e5 !important;
}
.exp-domain-marketplace .exp-btn-cart:hover {
	background-color: #4338ca !important;
}
.exp-domain-marketplace .exp-btn-cart.exp-cart-loading {
	pointer-events: none;
	opacity: 0.8;
}
.exp-domain-marketplace .exp-btn-cart.exp-cart-loading svg {
	animation: exp-cart-spin 0.8s linear infinite;
}
.exp-domain-marketplace .exp-btn-cart.exp-cart-added {
	background-color: #059669 !important;
}
@keyframes exp-cart-spin {
	to { transform: rotate(360deg); }
}

/* Domain card metrics - align labels and values horizontally */
.exp-domain-card .exp-metrics-grid {
	align-items: stretch;
}
.exp-domain-card .exp-metric-cell {
	display: flex;
	flex-direction: column;
	align-items: center;
}
.exp-domain-card .exp-metric-cell > span:first-of-type {
	flex-shrink: 0;
	margin-bottom: 0.25rem;
}
.exp-domain-card .exp-metric-value {
	min-height: 40px;
	display: flex;
	align-items: center;
}

/* TF, CF columns – ensure minimum width so they stay visible */
.exp-domain-card .exp-metrics-grid .exp-metric-cell:nth-child(5),
.exp-domain-card .exp-metrics-grid .exp-metric-cell:nth-child(6) {
	min-width: 2.5rem;
}

/* Analysis column – overflow hidden, expand full text on hover */
.exp-domain-card .exp-analysis-cell {
	min-width: 0;
	overflow: visible;
	position: relative;
}
.exp-domain-card .exp-analysis-value {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	overflow: visible;
}
.exp-domain-card .exp-analysis-text {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 100%;
	cursor: help;
}
.exp-domain-card .exp-analysis-text[data-exp-full]:hover {
	overflow: visible;
	white-space: nowrap;
	width: max-content;
	max-width: none;
	z-index: 20;
	background: #ecfdf5;
	border: 1px solid #a7f3d0;
	border-radius: 6px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* On mobile: Analysis cell spans full width so the bubble expands to the right */
@media (max-width: 639px) {
	.exp-domain-card .exp-metrics-grid .exp-analysis-cell {
		grid-column: 1 / -1;
		align-items: stretch;
	}
	.exp-domain-card .exp-metrics-grid .exp-analysis-cell .exp-analysis-value {
		justify-content: flex-start;
	}
	.exp-domain-card .exp-analysis-text {
		width: 100%;
		max-width: 100%;
	}
}

@media (min-width: 640px) {
	.exp-domain-card .exp-metric-cell {
		align-items: center;
	}
}

/* ========== Domain card - match HTML structure ========== */
.exp-domain-card .exp-domain-name.exp-copy-domain {
	width: auto;
	height: auto;
	padding: 0;
	border: none;
	background: none;
	font-family: "Space Grotesk", sans-serif;
	font-size: 1.125rem;
	font-weight: 700;
	color: inherit;
	white-space: nowrap;
	text-align: left;
}
.exp-domain-card .exp-domain-name.exp-copy-domain:hover {
	opacity: 1;
	color: #4f46e5;
}

/* Copy icon next to domain name */
.exp-domain-marketplace .exp-copy-icon-btn .exp-svg-icon,
.exp-domain-marketplace .exp-copy-icon-btn .exp-svg-icon svg {
	width: 0.875rem;
	height: 0.875rem;
}

/* Pagination dots */
.exp-domain-marketplace .exp-domain-list-pagination .page-numbers.dots {
	width: auto;
	min-width: 2.5rem;
}

/* ========== Toaster ========== */
.exp-toaster {
	display: none;
	position: fixed;
	top: 24px;
	right: 24px;
	z-index: 999999;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	background: #ffffff;
	border-radius: 8px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
	max-width: 320px;
	font-size: 13px;
	font-weight: 400;
	color: #374151;
	font-family: "Inter", sans-serif;
}
.exp-toaster[hidden] { display: none !important; }
.exp-toaster.exp-toaster-visible { display: flex !important; }
.exp-toaster-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	min-width: 24px;
	min-height: 24px;
	background: #22c55e;
	border-radius: 50%;
	flex-shrink: 0;
	font-size: 14px;
	font-weight: bold;
	color: #fff;
	line-height: 1;
}
.exp-toaster-icon::before {
	content: '\2713';
}
.exp-toaster.exp-toaster-error .exp-toaster-icon {
	background: #dc2626;
}
.exp-toaster.exp-toaster-error .exp-toaster-icon::before {
	content: '\21';
}
.exp-toaster-close {
	padding: 0;
	border: none;
	background: none;
	cursor: pointer;
	font-size: 20px;
	color: #9ca3af;
}
.exp-toaster-close:hover {
	background-color: #fff;
	border-color: #fff;
	color: #9ca3af;
}

/* Remove focus border/background from buttons */
.exp-domain-marketplace button:focus,
.exp-domain-marketplace button:focus-visible {
	border: none;
	background: none;
	outline: none;
}

/* Apply Filters button - purple/blue (matches home page) */
.exp-domain-marketplace .exp-apply-filters-btn,
.exp-domain-marketplace #exp-domain-filters-form button[type="submit"] {
	background-color: #4f46e5 !important;
	color: #ffffff !important;
	border: none;
}
.exp-domain-marketplace .exp-apply-filters-btn:hover,
.exp-domain-marketplace #exp-domain-filters-form button[type="submit"]:hover {
	background-color: #4338ca !important;
	color: #ffffff !important;
}

/* Checkboxes - brand purple/blue accent */
.exp-domain-marketplace input[type="checkbox"] {
	accent-color: #6366f1;
	cursor: pointer;
}

/* Auction fallback */
.exp-domain-list-pagination-bar .exp-domain-list-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 32px;
	padding: 0 14px;
	border: none;
	background: #4f46e5;
	color: #ffffff;
	text-decoration: none;
	border-radius: 6px;
}
