:root {
	--primary: #2563eb;
	--bg: #f8fafc;
	--text-link: #0000ee;
	--text-main: #0f172a;
	--text-muted: #64748b;
	--white: #ffffff;
	--black: #020617;
	--border: #e2e8f0;
	--success: #10b981;
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	scroll-behavior: smooth;
	-webkit-tap-highlight-color: transparent;
}

body {
	background-color: var(--bg);
	color: var(--text-main);
	font-size: 1rem;
	line-height: 1.6;
	padding: 1rem;
	-webkit-font-smoothing: antialiased;
}

body, input, button {
	font-family: 'Inter', -apple-system, sans-serif;
}

.container {
	max-width: 1000px;
	margin: 0 auto;
	padding: 0 2rem;
}

.prettify {
	text-align: justify;
	text-justify: inter-word;
	-webkit-hyphens: auto;
	-ms-hyphens: auto;
	hyphens: auto;
}


.mono {
	font-family: 'JetBrains Mono', monospace;
}

/* --- Navigation --- */
nav {
	padding: 2rem 0;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.logo {
	font-size: 1.5rem;
	font-weight: 800;
	letter-spacing: -1px;
	display: flex;
	align-items: center;
	cursor: default;
}

.logo span {
	background: var(--primary);
	color: white;
	padding-right: 5px;
	border-radius: 18px;
	font-style: italic;
	text-align: end;
	height: 36px;
	width: 36px;
}

.status {
	font-size: 0.75rem;
	font-weight: 700;
	color: var(--text-muted);
	display: flex;
	align-items: center;
	gap: 6px;
	text-transform: uppercase;
}

.status-dot {
	width: 8px;
	height: 8px;
	background: var(--success);
	border-radius: 50%;
	box-shadow: 0 0 8px var(--success);
}

.links {
	font-size: 0.85rem;
	display: flex;
	align-items: center;
	gap: 8px;
}

.links svg {
	fill: var(--primary);
	width: 16px;
	height: 16px;
}

.links a {
	color: var(--text-link);
}

/* --- Hero --- */
header {
	text-align: center;
	padding: 5rem 0 4rem;
}

h1 {
	font-size: 4.5rem;
	font-weight: 800;
	letter-spacing: -3px;
	margin-bottom: 1.5rem;
	line-height: 1.1;
}

h1 span {
	color: var(--primary);
}

.hero-text {
	font-size: 1.25rem;
	color: var(--text-muted);
	max-width: 650px;
	margin: 0 auto;
}

/* --- Column box --- */
.form-slider {
	gap: 5%;
	display: flex;
	padding: 5%;
	width: 200%;
	transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-slider > div {
	width: 50%;
	transition: opacity 0.4s ease;
}

.form-slider div:last-child {
	opacity: 0;
	pointer-events: none;
}

.form-slider.is-otp div:first-child {
	opacity: 0;
	pointer-events: none;
}

.form-slider.is-otp div:last-child {
	opacity: 1;
	pointer-events: auto;
}

.form-slider.is-otp {
	transform: translateX(-50%);
}

/* --- How it Works --- */
.steps {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
	margin: 6rem 0;
	text-align: center;
}

.step h3 {
	font-size: 0.9rem;
	font-weight: 800;
	margin-bottom: 0.5rem;
	color: var(--primary);
	text-transform: uppercase;
}

.step p {
	font-size: 0.95rem;
	color: var(--text-muted);
}

/* --- Dashboard --- */

.dashboard {
	display: flex;
	/* flex-direction: column; */
	margin-bottom: 3rem;
	gap: 1.5rem;
	
}

.info-column {
	background: #f0f9ff;
	color: #0369a1;
	display: flex;
	padding: 0.75rem;
	border-radius: 6px;
	border: 1px solid #e0f2fe;
	font-size: 0.8rem;
	gap: 0.5rem;
	justify-content: space-between;
	width: 100%;
}

.info-column > div svg {
	vertical-align: middle;
	margin-right: 5px;
	fill: #0369a1;
	width: 10px;
	height: 10px;
}

.info-column > div a {
	color: var(--text-link);
}

.dns-guide {
	display: flex;
	flex-direction: column;
	padding: 1.25rem;
	background: #fff;
	border-radius: 6px;
	border: 1px solid var(--border);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
	gap: 20px;
}

.dns-step {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.dns-step.propagation {
	background: #f0f9ff;
	padding: 0.75rem;
	border-radius: 6px;
	border: 1px solid #e0f2fe;
}

.dns-step.propagation a {
	color: var(--primary);
}

.dns-step.propagation p {
	font-size: 0.8rem; 
	color: #0369a1; 
	font-weight: 500;
}

.dns-step-title {
	font-size: 0.75rem;
	font-weight: 800;
	color: var(--text-main);
	text-transform: uppercase;
	justify-content: center;
	display: flex;
	align-items: center;
	gap: 8px;
}

.table-container {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows 0.5s ease-out;
	overflow: hidden;
}

.table-container.open {
	grid-template-rows: 1fr;
}

.dns-table {
	width: 100%;
	font-size: 0.8rem;
	background: white;
	border-radius: 6px;
	border: 1px solid var(--border);
	border-collapse: collapse;
	table-layout: fixed;
	min-height: 0;
}

.dns-table th,
.dns-table td {
	padding: 0.8rem;
	border: 1px solid #f1f5f9;
	text-align: left;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.dns-table tr.hidden {
	display: none;
}

.col-type { width: 15% }
.col-host { width: 15% }
.col-prio { width: 15% }
.col-value-mx  { width: 55% }
.col-value-txt { width: 70% }

.dns-copy {
	font-family: 'JetBrains Mono', monospace;
	color: var(--primary);
	font-weight: 700;
}

/* --- Comparison Table --- */
.comparison-wrapper {
	margin-top: 4rem;
	background: var(--white);
	border-radius: 6px;
	border: 1px solid var(--border);
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

table {
	width: 100%;
	border-collapse: collapse;
	text-align: left;
}

th,
td {
	padding: 1.5rem;
	border-bottom: 1px solid var(--border);
}

th {
	background: #fcfdfe;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	color: var(--text-muted);
}

.feature-name {
	font-weight: 600;
	width: 40%;
	color: var(--text-main);
}

.tier-free {
	width: 30%;
	color: var(--text-muted);
}

.tier-premium {
	width: 30%;
	color: var(--primary);
	font-weight: 800;
}

.check {
	color: var(--success);
	font-weight: bold;
}

.cross {
	color: #cbd5e1;
	font-weight: normal;
}

.pricing-footer {
	text-align: center;
	padding: 3rem;
	background: #fcfdfe;
	border-top: 1px solid var(--border);
}

.pricing-footer p {
	color: var(--text-muted);
	margin-bottom: 1.5rem;
	font-size: 0.95rem;
}

.primary-btn {
	background: var(--black);
	color: white;
	border: none;
	padding: 1rem 2rem;
	position: relative;
	font-family: 'Inter', -apple-system, sans-serif;
	font-size: 1rem;
	font-weight: 700;
	cursor: pointer;
	overflow: hidden;
	transition: all 0.2s;
	white-space: nowrap;
}

.primary-btn:hover {
	background: #1e293b;
	transform: translateY(-1px);
}

.primary-btn.auto {
	align-self: flex-start;
	margin: 0 auto;
}

.secondary-btn {
	padding: 0.75rem 1.5rem;
	position: relative;
	border-radius: 6px;
	border: 1px solid var(--border);
	background: var(--white);
	font-family: 'Inter', -apple-system, sans-serif;
	font-size: 1rem;
	font-weight: 700;
	cursor: pointer;
	overflow: hidden;
	transition: 0.2s;
}

.secondary-btn:hover {
	border-color: var(--text-muted);
	background: var(--bg);
}

/* --- FAQ --- */
.faq {
	padding: 8rem 0;
	max-width: 700px;
	margin: 0 auto;
}

.faq h2 {
	text-align: center;
	font-size: 2.25rem;
	font-weight: 800;
	margin-bottom: 4rem;
	letter-spacing: -1px;
}

.faq-item {
	margin-bottom: 3.5rem;
}

.faq-item h4 {
	color: var(--primary);
	font-size: 0.85rem;
	margin-bottom: 0.75rem;
	letter-spacing: 0.5px;
}

.faq-item p {
	color: var(--text-muted);
	font-size: 1.05rem;
}

/* --- Footer --- */
footer {
	border-top: 1px solid var(--border);
	padding: 4rem 0;
	display: flex;
	justify-content: space-between;
	font-size: 0.75rem;
	font-weight: 700;
	color: #94a3b8;
	text-transform: uppercase;
	letter-spacing: 1px;
}

footer a {
	color: inherit;
	text-decoration: none;
	margin-left: 2rem;
	transition: color 0.2s;
}

footer a:hover {
	color: var(--primary);
}

/*
 *
 * Egyébb UI elemek
 *
 */
.benefit-list {
	list-style: none;
	padding: 0;
}
.benefit-list li::before {
	content: "✓";
	color: #28a745;
	font-weight: bold;
	margin-right: 5px;
}

.benefit-list-downgrade {
	font-size: 0.9rem;
	list-style: none;
	margin-top: 5px;
	padding: 0;
}
.benefit-list-downgrade li::before {
	content: "✕";
	color: #a75228;
	font-weight: bold;
	margin-right: 5px;
}

.warning-box {
	background: #fffae9;
	border-radius: 6px;
	padding: 15px;
}

.price-tag {
	font-size: 1.2em;
	text-align: center;
}

.modal-wrapper {
	background: rgba(0, 0, 0, 0.15);
	top : 0; 
	left: 0;
	opacity : 0;
	position: fixed;
	visibility: hidden;
	transition: all 0.25s ease-in-out;
	width : 100%;
	height: 100%;
}

.modal-wrapper.open {
	opacity: 1;
	visibility: visible;
}

.modal {
	background: #fff;
	border-radius: 6px;
	box-shadow: 
	rgba(0, 0, 0, 0.05) 0px 6px 24px 0px, 
	rgba(0, 0, 0, 0.08) 0px 0px 0px 1px;
	display: block;
	margin : 50% 0 0 -300px;
	opacity: 0;
	overflow: hidden;
	position: relative;
	top : 50%; 
	left: 50%;
	transition: all 0.5s ease-in-out;
	width: 600px;
}

.modal.wide {
	margin : 50% 0 0 -400px;
	width: 800px;
}

.modal-wrapper.open .modal {
	margin-top: -200px;
	opacity: 1;
}

.head {
	align-items: center;
	background: #fafafa;
	display: flex;
	font-size: 1.2rem;
	font-weight: 600;
	padding: 15px;
	width: 100%;
}

.head div:first-child {
	display: flex;
	flex-grow: 1;
	justify-content: center;
}

.btn-close, .btn-info, .btn-delete {
	background: transparent;
	border: none;
	color: darkgrey;
	cursor: pointer;
	font-size: 1.3rem;
}

.body {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	padding: 5%;
	gap: 2rem;
}

.body.no-padding {
	padding: 0;
}

.column-box {
	background: var(--white);
	border-radius: 6px;
	border: 1px solid var(--border);
	display: flex;
	overflow: hidden;
}

.column-box input {
	flex: 1;
	border: none;
	padding: 1rem 1.5rem;
	outline: none;
	font-family: 'Inter', -apple-system, sans-serif;
	font-size: 1rem;
	color: var(--text-main);
}

.column-box select {
	background: none;
	border: none;
	margin-right: 10px;
	padding: 1rem 0;
	outline: none;
	font-family: 'Inter', -apple-system, sans-serif;
	font-size: 1rem;
	max-width: 200px;
	color: var(--text-main);
	width: 100%;
}

.domain-box, .forwarder-box {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.domain-box > div, .forwarder-box > div {
	border-bottom: 1px dotted #eee;
	align-items: center;
	justify-content: space-between;
	display: flex;
	overflow: hidden;
	gap: 10px;
}

.domain-box > div code, .forwarder-box > div code {
	color: var(--primary);
	display: inline-block;
	font-family: 'Inter', -apple-system, sans-serif;
	font-size: 1rem;
	max-width: 700px;
	overflow: hidden;
	text-overflow: ellipsis;
}

.domain-select {
	align-items: center;
	display: flex;
	color: #999;
}

.btn-group {
	align-items: center;
	display: flex;
	overflow: hidden;
	gap: 15px;
}

.btn-link {
	border: none;
	background: transparent;
	color: var(--primary);
	cursor: pointer;
	display: inline-block;
	position: relative;
	font-family: 'Inter', -apple-system, sans-serif;
	font-size: 1rem;
	text-decoration: underline;
	max-width: 700px;
	overflow: hidden;
	text-overflow: ellipsis;
}

.btn-delete {
	align-items: center;
	display: flex;
	font-size: 1.3rem;
	transition: 0.3s color;
}

.btn-delete:hover {
	 color: #ef4444;
}

/* A törlés zónája - fixen a jobb szélen */
.action-zone {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	min-width: 32px; /* Az X szélessége */
	height: 32px;
	position: relative;
}

.delete-trigger {
	background: none;
	border: none;
	color: #cbd5e1;
	font-size: 22px;
	cursor: pointer;
	padding: 0;
	display: block;
}

.delete-trigger:hover { color: #ef4444; }

/* Megerősítő panel - flex-el és animációval */
.confirm-wrapper {
	display: flex;
	align-items: center;
	gap: 8px;
	opacity: 0;
	visibility: hidden;
	transform: translateX(10px);
	transition: all 0.2s ease-in-out;
	position: absolute;
	right: 0;
	background: white; /* Hogy elfedje az X-et, ha az még ott lenne */
}

.confirm-wrapper.active {
	opacity: 1;
	visibility: visible;
	transform: translateX(0);
}

.confirm-text {
	font-size: 12px;
	color: #64748b;
	white-space: nowrap;
}

.btn-yes, .btn-no {
	border: none;
	padding: 4px 8px;
	border-radius: 4px;
	font-size: 11px;
	font-weight: bold;
	cursor: pointer;
}

.btn-yes { background: #fee2e2; color: #ef4444; }
.btn-no { background: #f1f5f9; color: #64748b; }
.hidden { display: none !important; }

@supports ( appearance: none ) or ( -moz-appearance: none ) or ( -webkit-appearance: none ) {
	input[type="checkbox"] {
		--height: 14px;
		--width : calc(var(--height) * 2);
	
		appearance: none ;
		-moz-appearance: none ;
		-webkit-appearance: none ;

		border: 1px solid currentcolor ;
		border-radius: 25px;
		box-sizing: content-box ;
		display: flex;
		flex-shrink: 0;
		color: #cbd5e1 ;
		cursor: pointer;
		height: var(--height) ;
		padding: 2px ;
		transition-duration: 300ms ;
		transition-property: border-color, color ;
		transition-timing-function: ease ;
		width: var(--width) ;
	}
	
	input[type="checkbox"]:disabled {
		opacity: 0.4;
		pointer-events: none;
	}
	
	input[type="checkbox"]:checked {
		color: cornflowerblue ;
	}

	input[type="checkbox"]::after {
		background-color: currentcolor ;
		border-radius: 9px ;
		content: "" ;
		display: block ;
		height: var(--height) ;
		transform: translateX( 0px ) ;
		transition: transform 300ms ease ;
		width: var(--height) ;
	}

	input[type="checkbox"]:checked::after {
		transform: translateX( var(--height) ) ;
	}
}

/* ------------------------- */

.toast-wrapper {
	position: fixed; 
	bottom  : 20px; 
	right   : 20px; 
	z-index : 3;
}

.toast-wrapper div {
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	color: white;
	font-weight: 500;
	margin-top: 10px;
	padding: 12px 24px;
	transition: opacity 0.3s ease;
}

.toast-wrapper div.success { background: #10b981 }
.toast-wrapper div.error   { background: #ef4444 }

.primary-btn:disabled {
	pointer-events: none;
}

.primary-btn:disabled::before {
	background: inherit;
	content : "";
	position: absolute;
	top : 0;
	left: 0;
	
	height: 100%;
	width : 100%;
}

.primary-btn:disabled::after {
	aspect-ratio: 1;
	animation : load 1s infinite linear;
	background: #fff;
	border-radius: 50%;
	content : "";
	position: absolute;
	padding: 4px;
	top : calc(50% - 1rem);
	left: calc(50% - 1rem);
	height: 25px;
	width : 25px;

	transform: translateX(-50%), translateY(-50%);

	-webkit-mask: conic-gradient(#0000 10%, #000), linear-gradient(#000 0 0) content-box;
		mask: conic-gradient(#0000 10%, #000), linear-gradient(#000 0 0) content-box;
	-webkit-mask-composite: source-out;
		mask-composite: subtract;
}

@keyframes load {
	to { transform: rotate(1turn) }
}

@media (max-width: 820px) {
	.modal.wide {
		top : 32%;
		left: 0;
		margin: 32% auto 0 auto;
		width : 90%;
	}
}

@media (max-width: 768px) {
	h1 {
		font-size: 3rem;
	}
	
	.container {
		margin: 0;
		padding: 0;
	}
	
	.dashboard {
		flex-direction: column;
	}

	.steps {
		grid-template-columns: 1fr;
		gap: 3rem;
	}

	.login-box {
		flex-direction: column;
		padding: 1rem;
		gap: 1rem;
	}
	
	.db-card {
		max-width: none;
	}

	th,
	td {
		padding: 1rem 0.75rem;
		font-size: 0.8rem;
	}

	footer {
		flex-direction: column-reverse;
		gap: 0.3rem;
		text-align: center;
	}

	footer a {
		margin: 0 0.75rem;
	}
}

@media (max-width: 620px) {
	.logo {
		font-size: 1.2rem;
	}
	
	.modal {
		top : 32%;
		left: 0;
		margin: 32% auto 0 auto;
		width : 90%;
	}
	
	.column-box {
		flex-direction: column;
	}
	
	.domain-select {
		padding-left: 1.5rem;
	}
}

@media (max-width: 600px) {
	.btn-yes:active {
		background: #f87171;
		color: white;
	}
	.btn-no:active {
		background: #cbd5e1;
	}
}

@media (max-width: 400px) {
	.form-meta {
		flex-direction: column;
		gap: 0.3rem;
	}
	
	footer div:last-child {
		display: flex;
		flex-direction: column;
		gap: 0.3rem;
	}
}

