/* ── Google Indexing Tool ───────────────────────────────────── */

.nml-git {
	padding: 80px 0;
}

/* ── Section header ─────────────────────────────────────────── */
.nml-git__header {
	text-align: center;
	margin-bottom: 48px;
}

.nml-git__heading {
    font-size: 48px;
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0 0 12px;
    line-height: 56px;
}

/* Wrap a word in <span> to give it the accent colour. */
.nml-git__heading span { color: var(--color-accent); }

.nml-git__subhead {
    font-size: 16px;
    line-height: 24px;
    font-weight: 500;
    color: var(--color-text-secondary);
    margin: 0;
}

/* ── Panel ──────────────────────────────────────────────────── */
.nml-git__panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: 12px;
    background: var(--color-bg-secondary);
    overflow: hidden;
    min-height: 560px;
    box-shadow: 0px 2px 4px 0px #4C83F33D;
	position: relative;
}

.nml-git__panel::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 1.5px;
    background: repeating-linear-gradient(41deg, var(--color-line-blue) 0 12px, transparent 12px 18px);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* ── Columns ────────────────────────────────────────────────── */
.nml-git__urls,
.nml-git__result {
	display: flex;
	flex-direction: column;
	padding: 32px;
}

.nml-git__result {
	border-left: 1.5px solid #CBD8F0;
    background: var(--color-bg);
}

/* ── Column head ────────────────────────────────────────────── */
.nml-git__col-head {
    padding-bottom: 8px;
    border-bottom: 1px solid var(--lines-blue, #889CF1);
    margin-bottom: 24px;
}

.nml-git__result .nml-git__col-head{
	border-bottom: 1px solid var(--lines-default, #D5DAFA);
	margin-bottom: 48px;
}

.nml-git__col-title {
	font-size: 24px;
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0;
    line-height: 32px;
}

/* ── URLs body ──────────────────────────────────────────────── */
.nml-git__urls-body {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.nml-git__label {
	display: block;
    font-size: 16px;
    color: var(--color-text-secondary);
    line-height: 24px;
    font-weight: 500;
}

.nml-git__textarea {
	flex: 1;
    width: 100%;
    min-height: 320px;
    padding: 16px;
    border: 1px solid var(--color-line);
    border-radius: 8px;
    background: #fff;
    font-family: inherit;
    font-size: 16px;
    color: var(--color-text-primary);
    line-height: 24px;
    font-weight: 500;
    resize: vertical;
    transition: border-color 0.2s;
    outline: none;
    box-sizing: border-box;
}

.nml-git__textarea:focus {
	border: 1.5px solid var(--color-line-blue);
}

.nml-git__textarea::placeholder {
	color: #B0BEDE;
}

/* ── Actions bar ────────────────────────────────────────────── */
.nml-git__actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding-top: 24px;
	flex-wrap: wrap;
}

/* Lincoins */
.nml-git__lincoins {
	display: flex;
	align-items: center;
	gap: 8px;
}

.nml-git__lincoins-main {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--color-line);
	padding: 8px 12px 8px 8px;
    border-radius: 100px;
	background-color: #FFFFFF;
}

.nml-git__lincoins-icon {
    width: 25px;
    height: 25px;
	border-radius: 50%;
	display: block;
	flex-shrink: 0;
	object-fit: cover;
}

.nml-git__lincoins-icon--fallback {
	background: var(--color-accent);
	color: #fff;
	font-size: 14px;
	font-weight: 800;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: inherit;
}

.nml-git__lincoins-text {
	font-size: 16px;
    line-height: 24px;
    font-weight: 500;
    color: var(--color-text-secondary);
    white-space: nowrap;
}

.nml-git__lincoins-val {
	font-weight: 600;
}

.nml-git__info-wrap {
	position: relative;
	display: flex;
	align-items: center;
}

.nml-git__info-btn {
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	opacity: 0.7;
	transition: opacity 0.2s;
}

.nml-git__info-btn:hover {
	opacity: 1;
}

.nml-git__tooltip {
	position: absolute;
	bottom: calc( 100% + 8px );
	left: 50%;
	transform: translateX( -50% );
	background: #1E2A45;
	color: #fff;
	font-size: 13px;
	line-height: 1.5;
	padding: 10px 14px;
	border-radius: 10px;
	white-space: normal;
	width: 230px;
	pointer-events: none;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.18s, visibility 0.18s;
	z-index: 10;
	box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}

.nml-git__tooltip::after {
	content: '';
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX( -50% );
	border: 6px solid transparent;
	border-top-color: #1E2A45;
}

.nml-git__tooltip--visible {
	opacity: 1;
	visibility: visible;
}

/* ── Error message ──────────────────────────────────────────── */
.nml-git__error {
	width: 100%;
	font-size: 13px;
	color: #E53E5E;
	background: rgba(229, 62, 94, 0.08);
	border: 1px solid rgba(229, 62, 94, 0.25);
	border-radius: 8px;
	padding: 9px 14px;
	line-height: 1.45;
	margin-top: 4px;
}

/* ── Start button ───────────────────────────────────────────── */
.nml-git__start-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, opacity 0.2s;
    line-height: 20px;
}

.nml-git__start-btn:hover:not(:disabled) {
	background: var(--color-primary-dark);
}

.nml-git__start-btn:disabled {
	background: #9CA3AF;
	cursor: not-allowed;
}

.nml-git__btn-sparkle {
	flex-shrink: 0;
	transition: opacity 0.2s;
}

/* первая иконка уходит, когда появляется спиннер */
.nml-git__start-btn:disabled .nml-git__btn-sparkle,
.nml-git__start-btn--processing .nml-git__btn-sparkle {
	display: none;
}

/* Spinner (hidden by default, shown when processing) */
.nml-git__btn-spinner {
	display: none;
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, 0.35);
	border-top-color: #fff;
	border-radius: 50%;
	flex-shrink: 0;
}

.nml-git__start-btn--processing .nml-git__btn-spinner {
	display: block;
	animation: nml-git-spin 0.7s linear infinite;
}

@keyframes nml-git-spin {
	to { transform: rotate(360deg); }
}

/* ── Result body ────────────────────────────────────────────── */
.nml-git__result-body {
	flex: 1;
	display: flex;
	flex-direction: column;
}

/* ── States ─────────────────────────────────────────────────── */
.nml-git__state {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	gap: 0;
}

.nml-git__state[hidden] {
	display: none;
}

/* ── Idle state ─────────────────────────────────────────────── */
.nml-git__idle-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #FF41710A;
    border: 1px solid #FF417114;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    flex-shrink: 0;
}

.nml-git__idle-heading {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0 0 8px;
    line-height: 26px;
}

.nml-git__idle-text {
	font-size: 14px;
    color: var(--color-text-secondary);
    margin: 0;
    max-width: 320px;
    line-height: 20px;
    font-weight: 500;
}

/* ── Processing state ───────────────────────────────────────── */
.nml-git__state--processing {
	align-items: flex-start;
	justify-content: flex-start;
	text-align: left;
}

.nml-git__steps {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
}

.nml-git__step {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	position: relative;
	padding-bottom: 24px;
	opacity: 0;
	transform: translateY(6px);
	transition: opacity 0.35s ease, transform 0.35s ease;
}

.nml-git__step:last-child {
	padding-bottom: 0;
}

.nml-git__step--visible {
	opacity: 1;
	transform: translateY(0);
}

/* Dot */
.nml-git__step-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #FFA0B4;
	flex-shrink: 0;
	margin-top: 4px;
	position: relative;
	z-index: 1;
	transition: background 0.3s;
}

.nml-git__step--visible .nml-git__step-dot {
	background: #FF6B8A;
}

.nml-git__step:last-child.nml-git__step--visible .nml-git__step-dot {
	background: var(--color-accent);
}

/* Vertical connecting line */
.nml-git__step:not(:last-child)::after {
	content: '';
	position: absolute;
	left: 4.5px;
	top: 18px;
	width: 1.5px;
	height: calc(100% - 10px);
	background: linear-gradient(to bottom, #F5B8C5, #FADADD);
}

.nml-git__step-label {
	font-size: 15px;
	color: var(--color-text-primary);
	line-height: 1.4;
}

/* ── Done state ─────────────────────────────────────────────── */
.nml-git__done-img {
    width: 229px;
    height: auto;
    margin-bottom: 16px;
    display: block;
}

.nml-git__done-text {
	font-size: 18px;
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0 0 16px;
    max-width: 390px;
    line-height: 26px;
}

.nml-git__done-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px;
    background: var(--color-primary);
    color: #fff;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s;
    line-height: 20px;
}

.nml-git__done-btn:hover {
	background: var(--color-primary-dark);
	color: #fff;
	text-decoration: none;
}

.nml-git__done-btn-icon {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	flex-shrink: 0;
	object-fit: cover;
}

.nml-git__done-btn-n {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--color-accent);
	color: #fff;
	font-size: 13px;
	font-weight: 800;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	font-family: inherit;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
	.nml-git {
		padding: 40px 0;
	}

	.nml-git__panel {
		grid-template-columns: 1fr;
		min-height: unset;
	}

	.nml-git__result {
		border-left: none;
		border-top: 1.5px solid #CBD8F0;
		min-height: 332px;
	}

	.nml-git__urls,
	.nml-git__result {
        padding: 20px;
	}

	.nml-git__textarea {
        min-height: 276px;
        padding: 10px 12px;
        font-size: 14px;
        line-height: 20px;
        font-weight: 400;
	}

	.nml-git__actions {
        flex-wrap: wrap;
        gap: 16px;
        padding-top: 16px;
        flex-direction: column-reverse;
        align-items: flex-start;
	}

	.nml-git__heading {
		font-size: 32px;
		margin: 0 0 8px;
		line-height: 40px;
	}

	.nml-git__subhead {
		font-size: 14px;
		line-height: 20px;
	}

	.nml-git__header {
		margin-bottom: 32px;
	}

	.nml-git__panel {
		border-radius: 8px;
	}

	.nml-git__panel::before {
		border-radius: 8px;
	}

	.nml-git__col-title {
		font-size: 18px;
		line-height: 26px;
	}

	.nml-git__col-head {
		margin-bottom: 16px;
	}

	.nml-git__label {
		font-size: 14px;
		line-height: 20px;
	}

	.nml-git__urls-body {
		gap: 4px;
	}

	.nml-git__start-btn{
		width: 100%;
    	justify-content: center;
	}

	.nml-git__lincoins-text {
		font-size: 14px;
		line-height: 20px;
	}

	.nml-git__idle-icon {
		width: 72px;
		height: 72px;
	}

	.nml-git__idle-icon svg{
		width: 32px;
    	height: 32px;
	}

	.nml-git__done-img {
		width: 197px;
	}

	.nml-git__done-text {
		font-size: 16px;
		margin: 0 0 12px;
		line-height: 24px;
	}
}

