/* ==========================================================================
   Domain Search & Pricing - Ultra Modern Frontend Styles
   Optimized for Dark Hero & Tech Themes with Ambient Center Glow
   ========================================================================== */

:root {
	--dsp-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.dsp-container {
	--dsp-bg: transparent;
	--dsp-border: transparent;
	--dsp-heading: #ffffff;
	--dsp-subheading: #94a3b8;
	--dsp-active-tab: #38bdf8;
	--dsp-btn-bg: #fcba04;
	--dsp-btn-text: #0f172a;
	--dsp-pill-bg: rgba(255, 255, 255, 0.06);
	--dsp-pill-color: #38bdf8;
	--dsp-toggle-color: #fcba04;
	--dsp-pricing-btn-bg: rgba(255, 255, 255, 0.06);
	--dsp-pricing-btn-color: #38bdf8;
	--dsp-pricing-btn-border: rgba(56, 189, 248, 0.25);

	max-width: 760px;
	width: 100%;
	margin: 0 auto;
	padding: 24px 20px;
	background: var(--dsp-bg);
	border: 1px solid var(--dsp-border);
	border-radius: 20px;
	font-family: var(--dsp-font-family);
	box-sizing: border-box;
	position: relative;
	z-index: 10;
}

.dsp-container * {
	box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   Soft Center Ambient Glow (Seamless illumination on Hero background)
   -------------------------------------------------------------------------- */
.dsp-ambient-glow {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 85%;
	height: 80%;
	background: radial-gradient(ellipse at center, rgba(5, 71, 255, 0.35) 0%, rgba(31, 82, 220, 0.18) 45%, transparent 75%);
	filter: blur(50px);
	-webkit-filter: blur(50px);
	pointer-events: none;
	z-index: -1;
	border-radius: 50%;
}

/* --------------------------------------------------------------------------
   Header (Optional Heading & Subheading)
   -------------------------------------------------------------------------- */
.dsp-header {
	text-align: center;
	margin-bottom: 18px;
}

.dsp-heading {
	font-size: 22px;
	font-weight: 700;
	margin: 0 0 6px;
	line-height: 1.3;
	color: var(--dsp-heading);
	letter-spacing: -0.02em;
}

.dsp-subheading {
	font-size: 13.5px;
	color: var(--dsp-subheading);
	margin: 0;
	line-height: 1.5;
	font-weight: 400;
}

/* --------------------------------------------------------------------------
   Tabs (Segmented Pill Switcher - Centered)
   -------------------------------------------------------------------------- */
.dsp-tabs-wrapper {
	display: flex;
	justify-content: center;
	width: 100%;
	margin-bottom: 16px;
}

.dsp-tabs {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	gap: 6px;
	padding: 5px;
	background: rgba(15, 23, 42, 0.75);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 12px;
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
	width: auto;
}

.dsp-tab {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: transparent;
	border: 1px solid transparent;
	border-radius: 8px;
	padding: 8px 18px;
	font-size: 13.5px;
	font-weight: 600;
	color: #94a3b8;
	cursor: pointer;
	transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
	user-select: none;
}

.dsp-tab-icon {
	width: 16px;
	height: 16px;
	fill: currentColor;
	opacity: 0.8;
	transition: transform 0.2s ease;
}

.dsp-tab:hover {
	color: #ffffff;
	background: rgba(255, 255, 255, 0.05);
}

.dsp-tab:hover .dsp-tab-icon {
	transform: scale(1.1);
}

.dsp-tab.active {
	background: rgba(56, 189, 248, 0.15);
	color: #ffffff;
	border-color: var(--dsp-active-tab);
	box-shadow: 0 0 15px rgba(56, 189, 248, 0.25);
}

.dsp-tab.active .dsp-tab-icon {
	fill: var(--dsp-active-tab);
	opacity: 1;
}

/* --------------------------------------------------------------------------
   Search Row & Button (Theme Override Protected)
   -------------------------------------------------------------------------- */
.dsp-search-row {
	display: flex;
	align-items: center;
	gap: 10px;
	background: rgba(15, 23, 42, 0.88);
	border: 2px solid rgba(255, 255, 255, 0.14);
	border-radius: 14px;
	padding: 6px 6px 6px 18px;
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	box-shadow: 
		0 10px 30px rgba(0, 0, 0, 0.4),
		0 0 25px rgba(56, 189, 248, 0.15),
		inset 0 1px 2px rgba(255, 255, 255, 0.1);
	transition: all 0.25s ease;
}

.dsp-search-row:focus-within {
	border-color: var(--dsp-active-tab);
	box-shadow: 
		0 12px 35px rgba(0, 0, 0, 0.5),
		0 0 25px rgba(56, 189, 248, 0.4),
		inset 0 1px 2px rgba(255, 255, 255, 0.15);
}

.dsp-search-icon-wrapper {
	display: flex;
	align-items: center;
	color: #64748b;
	flex-shrink: 0;
}

.dsp-search-icon-wrapper svg {
	width: 20px;
	height: 20px;
	fill: currentColor;
}

.dsp-search-row:focus-within .dsp-search-icon-wrapper {
	color: var(--dsp-active-tab);
}

/* Theme input override protection */
.dsp-container .dsp-search-input,
.dsp-container input[type="text"].dsp-search-input,
.dsp-container input[type="search"].dsp-search-input {
	flex: 1 1 auto !important;
	background: transparent !important;
	background-color: transparent !important;
	border: none !important;
	outline: none !important;
	box-shadow: none !important;
	padding: 10px 10px !important;
	font-size: 15px !important;
	font-weight: 500 !important;
	color: #ffffff !important;
	font-family: inherit !important;
	min-width: 0 !important;
	height: auto !important;
	line-height: normal !important;
	margin: 0 !important;
}

.dsp-container .dsp-search-input:focus,
.dsp-container input[type="text"].dsp-search-input:focus {
	outline: none !important;
	box-shadow: none !important;
	border: none !important;
	background: transparent !important;
}

.dsp-container .dsp-search-input::placeholder {
	color: #64748b !important;
	font-weight: 400 !important;
	opacity: 1 !important;
}

.dsp-search-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	flex: 0 0 auto;
	padding: 12px 26px;
	font-size: 14.5px;
	font-weight: 700;
	background: var(--dsp-btn-bg);
	color: var(--dsp-btn-text);
	border: none;
	border-radius: 10px;
	cursor: pointer;
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
	white-space: nowrap;
	font-family: inherit;
	box-shadow: 0 4px 15px rgba(252, 186, 4, 0.35);
	position: relative;
	overflow: hidden;
}

.dsp-search-btn-icon {
	display: none;
}

.dsp-search-btn-text {
	display: inline-block;
}

.dsp-search-btn::after {
	content: '';
	position: absolute;
	top: -50%;
	left: -50%;
	width: 200%;
	height: 200%;
	background: linear-gradient(
		60deg,
		transparent,
		rgba(255, 255, 255, 0.25),
		transparent
	);
	transform: rotate(30deg);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.dsp-search-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(252, 186, 4, 0.5);
}

.dsp-search-btn:hover::after {
	opacity: 1;
}

.dsp-search-btn:active {
	transform: translateY(0) scale(0.98);
}

/* --------------------------------------------------------------------------
   Error Message
   -------------------------------------------------------------------------- */
.dsp-search-error {
	color: #f87171;
	font-size: 12.5px;
	margin: 6px 4px 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	font-weight: 500;
	animation: dspFadeIn 0.2s ease-in-out;
}

.dsp-search-error svg {
	width: 14px;
	height: 14px;
	fill: currentColor;
	flex-shrink: 0;
}

@keyframes dspFadeIn {
	from { opacity: 0; transform: translateY(-4px); }
	to { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   Pricing Panel (Symmetrical vertical spacing matching top tabs)
   -------------------------------------------------------------------------- */
.dsp-pricing-panel {
	margin-top: 16px;
	padding-top: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

/* 1. Top Centered Currency Toggle Switch */
.dsp-toggle-wrapper {
	display: flex;
	justify-content: center;
	align-items: center;
	margin-bottom: 12px;
	width: 100%;
}

.dsp-toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	user-select: none;
	background: rgba(15, 23, 42, 0.75);
	padding: 5px 12px;
	border-radius: 20px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	transition: all 0.2s ease;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

.dsp-toggle:hover {
	border-color: rgba(255, 255, 255, 0.22);
	background: rgba(15, 23, 42, 0.9);
}

.dsp-toggle-label {
	font-size: 11.5px;
	font-weight: 700;
	color: #64748b;
	transition: color 0.2s ease;
	letter-spacing: 0.03em;
}

.dsp-toggle-label.dsp-label-active {
	color: #ffffff;
}

.dsp-toggle-switch {
	position: relative;
	display: inline-block;
	width: 36px;
	height: 20px;
}

.dsp-toggle-switch .dsp-currency-checkbox {
	opacity: 0;
	width: 0;
	height: 0;
	position: absolute;
}

.dsp-toggle-slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #334155;
	border-radius: 999px;
	transition: background-color 0.25s ease;
}

.dsp-toggle-slider::before {
	content: "";
	position: absolute;
	height: 14px;
	width: 14px;
	left: 3px;
	bottom: 3px;
	background-color: #ffffff;
	border-radius: 50%;
	transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.25s ease;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.dsp-currency-checkbox:checked + .dsp-toggle-slider {
	background-color: rgba(252, 186, 4, 0.3);
}

.dsp-currency-checkbox:checked + .dsp-toggle-slider::before {
	background-color: var(--dsp-toggle-color);
	transform: translateX(16px);
	box-shadow: 0 0 10px var(--dsp-toggle-color);
}

/* 2. Centered Dynamic Title */
.dsp-pricing-header-center {
	display: flex;
	justify-content: center;
	align-items: center;
	margin-bottom: 14px;
	width: 100%;
}

.dsp-pricing-title {
	font-size: 12px;
	font-weight: 700;
	color: #94a3b8;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
}

.dsp-pricing-title-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--dsp-active-tab);
	box-shadow: 0 0 8px var(--dsp-active-tab);
}

/* 3. Centered TLD Badges */
.dsp-tld-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 10px;
	width: 100%;
}

.dsp-tld-item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 14px;
	background: var(--dsp-pill-bg);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 10px;
	cursor: pointer;
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
	user-select: none;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

.dsp-tld-item:hover {
	background: rgba(56, 189, 248, 0.14);
	border-color: var(--dsp-active-tab);
	transform: translateY(-2px);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35), 0 0 15px rgba(56, 189, 248, 0.25);
}

.dsp-tld-item:active {
	transform: translateY(0);
}

.dsp-tld-name {
	font-size: 13px;
	font-weight: 700;
	color: #ffffff;
	letter-spacing: -0.01em;
}

.dsp-tld-divider {
	width: 1px;
	height: 12px;
	background: rgba(255, 255, 255, 0.18);
}

.dsp-tld-price {
	font-size: 13px;
	font-weight: 700;
	color: var(--dsp-pill-color);
	display: inline-flex;
	gap: 3px;
	align-items: baseline;
	transition: opacity 0.15s ease, transform 0.15s ease;
}

.dsp-tld-price.dsp-price-updating {
	opacity: 0.2;
	transform: scale(0.95);
}

.dsp-price-currency {
	font-size: 10.5px;
	font-weight: 600;
	color: #94a3b8;
}

/* 4. Domain Pricing (Price List) Button */
.dsp-pricing-btn-wrapper {
	display: flex;
	justify-content: center;
	align-items: center;
	margin-top: 18px;
	width: 100%;
}

.dsp-pricing-link-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 9px 22px;
	background: var(--dsp-pricing-btn-bg);
	color: var(--dsp-pricing-btn-color) !important;
	border: 1px solid var(--dsp-pricing-btn-border);
	border-radius: 999px;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none !important;
	letter-spacing: 0.02em;
	transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.dsp-pricing-btn-icon {
	width: 15px;
	height: 15px;
	fill: currentColor;
	opacity: 0.9;
}

.dsp-pricing-btn-arrow {
	width: 16px;
	height: 16px;
	fill: currentColor;
	transition: transform 0.2s ease;
}

.dsp-pricing-link-btn:hover {
	background: rgba(56, 189, 248, 0.16);
	border-color: var(--dsp-active-tab);
	color: #ffffff !important;
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35), 0 0 20px rgba(56, 189, 248, 0.3);
}

.dsp-pricing-link-btn:hover .dsp-pricing-btn-arrow {
	transform: translateX(3px);
}

.dsp-pricing-link-btn:active {
	transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 680px) {
	.dsp-container {
		padding: 18px 12px;
	}

	.dsp-heading {
		font-size: 19px;
	}

	.dsp-subheading {
		font-size: 12.5px;
	}

	.dsp-tabs {
		width: auto;
		display: inline-flex;
		padding: 3px;
		gap: 2px;
	}

	.dsp-tab {
		flex: 0 1 auto;
		justify-content: center;
		padding: 5px 13px;
		font-size: 11.5px;
		gap: 5px;
	}

	.dsp-tab .dsp-tab-icon {
		width: 13px;
		height: 13px;
	}

	.dsp-search-row {
		flex-direction: row;
		align-items: center;
		padding: 3px 3px 3px 12px;
		gap: 5px;
		border-radius: 999px;
		min-height: 44px;
	}

	.dsp-search-icon-wrapper {
		display: none;
	}

	.dsp-container .dsp-search-input,
	.dsp-container input[type="text"].dsp-search-input {
		width: 100% !important;
		flex: 1 1 auto !important;
		padding: 6px 4px !important;
		font-size: 13.5px !important;
		text-align: left;
	}

	.dsp-search-btn {
		width: 38px;
		height: 38px;
		min-width: 38px;
		max-width: 38px;
		border-radius: 50%;
		padding: 0;
		display: flex;
		align-items: center;
		justify-content: center;
		flex-shrink: 0;
	}

	.dsp-search-btn .dsp-search-btn-text {
		display: none;
	}

	.dsp-search-btn .dsp-search-btn-icon {
		display: block;
		width: 17px;
		height: 17px;
		fill: currentColor;
	}

	.dsp-tld-list {
		gap: 8px;
	}

	.dsp-tld-item {
		padding: 6px 10px;
		font-size: 12px;
	}

	.dsp-pricing-link-btn {
		padding: 8px 18px;
		font-size: 12.5px;
	}
}
