/* ═══════════════════════════════════════════════════════════════
   MSD SEO Check — Premium Design
   ═══════════════════════════════════════════════════════════════ */

#msd-seo-wrap {
	font-family: Arial, Helvetica, sans-serif;
	color: #f5f0e8;
	max-width: 900px;
	margin: 0 auto;
}

/* ── HERO ────────────────────────────────────────────────────── */
.msd-seo-hero {
	background: #07101f;
	padding: 5rem 2rem 4rem;
	text-align: center;
}
.msd-seo-hero-inner { max-width: 600px; margin: 0 auto; }

.msd-seo-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: rgba(201,168,76,.12);
	border: 1px solid rgba(201,168,76,.35);
	color: #c9a84c;
	font-size: .72rem;
	letter-spacing: .18em;
	text-transform: uppercase;
	padding: .35rem 1rem;
	border-radius: 20px;
	margin-bottom: 1.75rem;
}
.msd-seo-title {
	font-size: clamp(2rem, 5vw, 3rem);
	font-weight: 700;
	color: #f5f0e8;
	margin: 0 0 1rem;
	line-height: 1.15;
}
.msd-seo-title em { color: #c9a84c; font-style: italic; }
.msd-seo-sub {
	color: rgba(245,240,232,.55);
	font-size: 1.05rem;
	line-height: 1.75;
	margin: 0 0 2.5rem;
}

/* Input Row */
.msd-seo-input-row {
	display: flex;
	gap: 0;
	max-width: 560px;
	margin: 0 auto 1rem;
	border-radius: 6px;
	overflow: hidden;
	box-shadow: 0 0 0 1px rgba(201,168,76,.3), 0 8px 32px rgba(0,0,0,.4);
}
#msd-seo-url {
	flex: 1;
	background: rgba(255,255,255,.06);
	border: none;
	color: #f5f0e8;
	padding: 1.1rem 1.4rem;
	font-size: 1rem;
	outline: none;
	min-width: 0;
}
#msd-seo-url::placeholder { color: rgba(245,240,232,.25); }
#msd-seo-url:focus { background: rgba(255,255,255,.1); }
#msd-seo-btn {
	background: linear-gradient(135deg, #c9a84c, #e8c97a);
	color: #0a1428;
	border: none;
	padding: 1.1rem 1.75rem;
	font-size: .88rem;
	font-weight: 700;
	letter-spacing: .06em;
	cursor: pointer;
	white-space: nowrap;
	transition: opacity .2s;
}
#msd-seo-btn:hover { opacity: .9; }
#msd-seo-btn:disabled { opacity: .5; cursor: not-allowed; }
.msd-seo-hint { color: rgba(245,240,232,.25); font-size: .78rem; margin: 0; }

/* ── LOADING ─────────────────────────────────────────────────── */
#msd-seo-loading {
	background: #07101f;
	padding: 5rem 2rem;
	text-align: center;
}
.msd-seo-loading-inner { max-width: 380px; margin: 0 auto; }
.msd-seo-spinner {
	width: 52px; height: 52px;
	border: 3px solid rgba(201,168,76,.15);
	border-top-color: #c9a84c;
	border-radius: 50%;
	animation: msd-spin .8s linear infinite;
	margin: 0 auto 2rem;
}
@keyframes msd-spin { to { transform: rotate(360deg); } }
#msd-seo-loading h3 { color: #f5f0e8; margin: 0 0 2rem; font-size: 1.1rem; font-weight: 400; }
.msd-step {
	color: rgba(245,240,232,.2);
	font-size: .85rem;
	padding: .4rem 0;
	display: flex;
	align-items: center;
	gap: .5rem;
	transition: all .3s;
}
.msd-step::before { content: "○"; font-size: 1rem; }
.msd-step-active { color: #c9a84c; font-weight: 600; }
.msd-step-active::before { content: "◉"; }
.msd-step-done { color: #22c55e; }
.msd-step-done::before { content: "✓"; }

/* ── RESULTS ─────────────────────────────────────────────────── */
#msd-seo-results { background: #07101f; }

/* Score Header */
.msd-seo-score-header {
	background: linear-gradient(180deg, #07101f 0%, #0a1428 100%);
	padding: 3rem 2rem 2.5rem;
	display: flex;
	align-items: center;
	gap: 2.5rem;
	justify-content: center;
	flex-wrap: wrap;
	text-align: center;
}
.msd-score-circle-wrap { position: relative; width: 150px; height: 150px; flex-shrink: 0; }
.msd-score-circle-wrap svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.msd-score-overlay {
	position: absolute; inset: 0;
	display: flex; flex-direction: column;
	align-items: center; justify-content: center;
}
.msd-score-num { font-size: 2.6rem; font-weight: 700; color: #f5f0e8; line-height: 1; }
.msd-score-lbl { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(245,240,232,.35); margin-top: 4px; }

.msd-score-info { max-width: 320px; text-align: left; }
.msd-result-url { color: #c9a84c; font-size: .82rem; margin-bottom: .5rem; word-break: break-all; }
.msd-score-grade { font-size: 1.6rem; font-weight: 700; color: #f5f0e8; margin-bottom: .4rem; }
.msd-score-summary { color: rgba(245,240,232,.6); font-size: .9rem; line-height: 1.6; margin-bottom: .75rem; }

/* Summary Bars */
.msd-stat-row {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
	margin-top: 1rem;
}
.msd-stat {
	background: rgba(255,255,255,.04);
	border: 1px solid rgba(255,255,255,.06);
	border-radius: 6px;
	padding: .6rem .75rem;
	text-align: center;
}
.msd-stat-num { font-size: 1.3rem; font-weight: 700; }
.msd-stat-lbl { font-size: .68rem; color: rgba(245,240,232,.4); margin-top: 2px; }

/* ── TABS ─────────────────────────────────────────────────────── */
.msd-seo-tabs {
	display: flex;
	background: #0a1428;
	border-bottom: 1px solid rgba(201,168,76,.15);
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	position: sticky;
	top: 0;
	z-index: 10;
}
.msd-seo-tabs::-webkit-scrollbar { display: none; }
.msd-seo-tab {
	background: none; border: none;
	color: rgba(245,240,232,.4);
	padding: .9rem 1.25rem;
	font-size: .82rem;
	cursor: pointer;
	border-bottom: 2px solid transparent;
	white-space: nowrap;
	transition: all .2s;
	display: flex; align-items: center; gap: 6px;
}
.msd-seo-tab:hover { color: rgba(245,240,232,.8); }
.msd-seo-tab.active { color: #c9a84c; border-bottom-color: #c9a84c; font-weight: 600; }
.msd-tab-count {
	background: rgba(255,255,255,.08);
	border-radius: 10px;
	font-size: .68rem;
	padding: 1px 7px;
	font-weight: 400;
}
.msd-seo-tab.active .msd-tab-count { background: rgba(201,168,76,.2); color: #c9a84c; }

/* ── CHECK ITEMS ─────────────────────────────────────────────── */
.msd-seo-items { padding: 1.5rem; display: grid; gap: 10px; }

.msd-check-item {
	background: rgba(255,255,255,.03);
	border: 1px solid rgba(255,255,255,.06);
	border-radius: 8px;
	padding: 1rem 1.25rem;
	transition: border-color .2s;
}
.msd-check-item:hover { border-color: rgba(201,168,76,.2); }
.msd-check-item.is-fail { border-color: rgba(239,68,68,.2); background: rgba(239,68,68,.04); }
.msd-check-item.is-warn { border-color: rgba(245,158,11,.15); }

.msd-check-top {
	display: flex;
	align-items: center;
	gap: .75rem;
	margin-bottom: .5rem;
}
.msd-check-dot {
	width: 10px; height: 10px;
	border-radius: 50%;
	flex-shrink: 0;
}
.msd-check-label-wrap { flex: 1; display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.msd-check-label { font-size: .88rem; font-weight: 600; color: #f5f0e8; }
.msd-check-badge {
	font-size: .68rem;
	font-weight: 600;
	padding: 2px 8px;
	border-radius: 10px;
}
.badge-ok   { background: rgba(34,197,94,.15);  color: #22c55e; }
.badge-warn { background: rgba(245,158,11,.15); color: #f59e0b; }
.badge-fail { background: rgba(239,68,68,.15);  color: #ef4444; }

.msd-check-score-bar {
	width: 80px; height: 4px;
	background: rgba(255,255,255,.08);
	border-radius: 2px;
	overflow: hidden;
	flex-shrink: 0;
}
.msd-check-score-fill { height: 100%; border-radius: 2px; }

.msd-check-value {
	font-size: .8rem;
	color: rgba(245,240,232,.5);
	margin-bottom: .35rem;
	padding-left: 1.4rem;
	word-break: break-word;
}
.msd-check-fix {
	font-size: .8rem;
	padding: .5rem .75rem;
	border-radius: 4px;
	margin-left: 1.4rem;
	line-height: 1.5;
	border-left: 2px solid;
}
.msd-fix-ok   { background: rgba(34,197,94,.06);  color: rgba(34,197,94,.9);  border-color: rgba(34,197,94,.3); }
.msd-fix-warn { background: rgba(245,158,11,.06); color: rgba(245,158,11,.9); border-color: rgba(245,158,11,.3); }
.msd-fix-fail { background: rgba(239,68,68,.06);  color: rgba(239,68,68,.9);  border-color: rgba(239,68,68,.3); }

/* ── EMAIL GATE ──────────────────────────────────────────────── */
.msd-seo-gate {
	background: #0a1428;
	border-top: 1px solid rgba(201,168,76,.2);
	padding: 3.5rem 2rem;
}
.msd-seo-gate-inner {
	max-width: 480px;
	margin: 0 auto;
	text-align: center;
}
.msd-gate-icon {
	width: 64px; height: 64px;
	background: rgba(201,168,76,.1);
	border: 1px solid rgba(201,168,76,.25);
	border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	font-size: 1.6rem;
	margin: 0 auto 1.5rem;
}
.msd-seo-gate-inner h3 {
	color: #f5f0e8;
	font-size: 1.3rem;
	margin: 0 0 .75rem;
}
.msd-seo-gate-inner p {
	color: rgba(245,240,232,.55);
	font-size: .9rem;
	line-height: 1.7;
	margin: 0 0 1.75rem;
}
.msd-gate-fields { display: grid; gap: 10px; margin-bottom: 12px; }
.msd-gate-input-wrap {
	position: relative;
	display: flex;
	align-items: center;
}
.msd-gate-input-wrap i {
	position: absolute;
	left: 14px;
	color: rgba(245,240,232,.3);
	font-size: 16px;
}
#msd-gate-name, #msd-gate-email {
	width: 100%;
	box-sizing: border-box;
	background: rgba(255,255,255,.06);
	border: 1px solid rgba(201,168,76,.2);
	color: #f5f0e8;
	padding: .9rem 1rem .9rem 2.75rem;
	font-size: .9rem;
	border-radius: 6px;
	outline: none;
	transition: border-color .2s, background .2s;
}
#msd-gate-name:focus, #msd-gate-email:focus {
	border-color: #c9a84c;
	background: rgba(255,255,255,.09);
}
#msd-gate-name::placeholder, #msd-gate-email::placeholder { color: rgba(245,240,232,.25); }
#msd-gate-btn {
	width: 100%;
	background: linear-gradient(135deg, #c9a84c, #e8c97a);
	color: #0a1428;
	border: none;
	padding: 1rem;
	font-size: .9rem;
	font-weight: 700;
	letter-spacing: .05em;
	border-radius: 6px;
	cursor: pointer;
	transition: opacity .2s;
	margin-bottom: 8px;
}
#msd-gate-btn:hover { opacity: .9; }
#msd-gate-btn:disabled { opacity: .5; cursor: not-allowed; }
.msd-gate-hint { color: rgba(245,240,232,.2); font-size: .72rem; margin: 0; }
.msd-gate-sent {
	background: rgba(34,197,94,.08);
	border: 1px solid rgba(34,197,94,.25);
	color: #22c55e;
	padding: 1rem 1.5rem;
	border-radius: 8px;
	font-size: .9rem;
}

/* ── CTA BOX ─────────────────────────────────────────────────── */
.msd-seo-cta-box {
	background: #07101f;
	border-top: 1px solid rgba(255,255,255,.04);
	padding: 3rem 2rem;
}
.msd-seo-cta-inner { max-width: 520px; margin: 0 auto; text-align: center; }
.msd-seo-cta-inner h3 { color: #f5f0e8; font-size: 1.3rem; margin: 0 0 .75rem; }
.msd-seo-cta-inner p { color: rgba(245,240,232,.55); margin: 0 0 1.5rem; line-height: 1.7; font-size: .9rem; }
.msd-seo-cta-btn {
	display: inline-block;
	background: linear-gradient(135deg, #c9a84c, #e8c97a);
	color: #0a1428;
	text-decoration: none;
	padding: .95rem 2.25rem;
	font-weight: 700;
	font-size: .88rem;
	letter-spacing: .06em;
	border-radius: 6px;
	transition: opacity .2s;
}
.msd-seo-cta-btn:hover { opacity: .9; }

/* ── NEW CHECK BUTTON ────────────────────────────────────────── */
.msd-seo-new-check {
	display: block;
	margin: 1.5rem auto;
	background: transparent;
	border: 1px solid rgba(201,168,76,.25);
	color: rgba(201,168,76,.7);
	padding: .7rem 2rem;
	border-radius: 6px;
	cursor: pointer;
	font-size: .85rem;
	transition: all .2s;
}
.msd-seo-new-check:hover { background: rgba(201,168,76,.08); color: #c9a84c; }

/* ── ERROR ───────────────────────────────────────────────────── */
.msd-seo-error-box {
	max-width: 420px;
	margin: 3rem auto;
	background: rgba(239,68,68,.06);
	border: 1px solid rgba(239,68,68,.25);
	color: #ef4444;
	padding: 2rem;
	text-align: center;
	border-radius: 10px;
}
.msd-seo-error-box p { color: rgba(245,240,232,.45); margin: .5rem 0 1.25rem; font-size: .9rem; }

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 600px) {
	.msd-seo-hero { padding: 3.5rem 1.25rem 3rem; }
	.msd-seo-input-row { flex-direction: column; border-radius: 6px; }
	#msd-seo-url { border-radius: 6px 6px 0 0; }
	#msd-seo-btn { border-radius: 0 0 6px 6px; text-align: center; }
	.msd-seo-score-header { flex-direction: column; gap: 1.5rem; }
	.msd-score-info { text-align: center; }
	.msd-seo-items { padding: 1rem; }
	.msd-stat-row { grid-template-columns: repeat(3, 1fr); }
}
