/* ===== RESET & VARIABLES ===== */
:root {
    --bg-body: #f4f3f0;
    --bg-white: #ffffff;
    --bg-light: #f9f8f6;
    --bg-subtle: #efeee9;
    --border: #ddd9d1;
    --border-light: #e8e5de;
    --text-primary: #2c2c34;
    --text-secondary: #5a5a68;
    --text-muted: #8a8994;
    --accent: #e76f51;
    --accent-hover: #d45a3e;
    --accent-light: rgba(231,111,81,0.08);
    --accent-lighter: rgba(231,111,81,0.04);
    --green: #3a9a6b;
    --green-bg: rgba(58,154,107,0.08);
    --red: #c94444;
    --red-bg: rgba(201,68,68,0.08);
    --yellow: #c49520;
    --yellow-bg: rgba(196,149,32,0.08);
    --blue: #4a76b8;
    --purple: #70587c;
    --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius: 8px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.03);
    --shadow: 0 2px 8px rgba(0,0,0,0.05), 0 1px 3px rgba(0,0,0,0.04);
    --shadow-lg: 0 4px 16px rgba(0,0,0,0.06), 0 2px 6px rgba(0,0,0,0.04);
    --transition: 0.2s ease;
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    background: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== HEADER ===== */
.site-header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 58px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 0.98rem;
    letter-spacing: -0.02em;
}
.logo:hover { color: var(--text-primary); }
.logo-icon {
    width: 30px;
    height: 30px;
    background: var(--accent);
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.main-nav { display: flex; gap: 28px; }
.main-nav a {
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 500;
    transition: color var(--transition);
}
.main-nav a:hover { color: var(--text-primary); }

/* ===== HERO ===== */
.hero {
    text-align: center;
    padding: 56px 24px 44px;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
}
.hero h1 {
    font-size: 2.1rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 10px;
    line-height: 1.2;
    color: var(--text-primary);
}
.hero h1 .accent { color: var(--accent); }
.hero p {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 520px;
    margin: 0 auto 28px;
    line-height: 1.6;
}

/* ===== SEARCH FORM ===== */
.search-form {
    display: flex;
    max-width: 540px;
    margin: 0 auto;
    background: var(--bg-white);
    border: 1.5px solid var(--border);
    border-radius: 50px;
    padding: 4px 4px 4px 22px;
    transition: border-color var(--transition), box-shadow var(--transition);
    box-shadow: var(--shadow-sm);
}
.search-form:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
}
.search-form input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: var(--font);
    outline: none;
    min-width: 0;
}
.search-form input::placeholder { color: var(--text-muted); }
.search-form button {
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 10px 26px;
    font-size: 0.88rem;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    transition: background var(--transition);
    white-space: nowrap;
}
.search-form button:hover { background: var(--accent-hover); }

/* ===== REPORT HEADER ===== */
.report-header {
    padding: 40px 0 20px;
    text-align: center;
}
.report-domain {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}
.report-url {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 4px;
}

/* ===== VALUE CARD ===== */
.value-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 36px 40px;
    text-align: center;
    margin-bottom: 28px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}
.value-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), #f4a261, var(--accent));
}
.value-label {
    color: var(--text-muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}
.value-amount {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -0.04em;
    margin: 6px 0 22px;
}
.value-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}
.value-stat { text-align: center; }
.value-stat .num {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    display: block;
}
.value-stat .lbl {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ===== CARDS & GRID ===== */
.report-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}
.report-grid.single { grid-template-columns: 1fr; }
.card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px 26px;
    box-shadow: var(--shadow-sm);
}
.card-title {
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
}
.card-title svg { flex-shrink: 0; color: var(--text-muted); }

/* ===== SEO CHECKLIST ===== */
.seo-list { list-style: none; }
.seo-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.88rem;
    color: var(--text-secondary);
}
.seo-list li:last-child { border-bottom: none; }
.seo-check {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    font-weight: 700;
    margin-top: 1px;
}
.seo-check.pass { background: var(--green-bg); color: var(--green); }
.seo-check.fail { background: var(--red-bg); color: var(--red); }
.seo-check.warn { background: var(--yellow-bg); color: var(--yellow); }

/* ===== KEY-VALUE PAIRS ===== */
.kv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.kv-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}
.kv-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 2px;
}

/* ===== META BLOCKS ===== */
.meta-block { margin-bottom: 14px; }
.meta-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    margin-bottom: 3px;
}
.meta-value {
    font-size: 0.9rem;
    color: var(--text-secondary);
    word-break: break-word;
    line-height: 1.5;
}
.meta-value.highlight { color: var(--text-primary); font-weight: 500; }

/* ===== TAGS ===== */
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
    background: var(--bg-subtle);
    border: 1px solid var(--border-light);
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ===== DNS TABLE ===== */
.dns-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.dns-table th {
    text-align: left;
    color: var(--text-muted);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}
.dns-table td {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-secondary);
    word-break: break-all;
}
.dns-table tr:last-child td { border-bottom: none; }

/* ===== SCORE CIRCLE ===== */
.score-circle-wrap {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 18px;
}
.score-circle {
    width: 76px;
    height: 76px;
    position: relative;
    flex-shrink: 0;
}
.score-circle svg { transform: rotate(-90deg); }
.score-circle-bg { fill: none; stroke: var(--bg-subtle); stroke-width: 6; }
.score-circle-fill { fill: none; stroke-width: 6; stroke-linecap: round; transition: stroke-dashoffset 1s ease; }
.score-circle-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-primary);
}
.score-info h3 { font-size: 1rem; font-weight: 700; color: var(--text-primary); margin-bottom: 2px; }
.score-info p { font-size: 0.84rem; color: var(--text-secondary); }

/* ===== LISTINGS ===== */
.page-section {
    padding: 40px 0;
}
.page-section h2 {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    color: var(--text-primary);
}
.site-list { list-style: none; }
.site-list li { margin-bottom: 8px; }
.site-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color var(--transition), box-shadow var(--transition);
    color: var(--text-primary);
}
.site-list-item:hover {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-light);
    color: var(--text-primary);
}
.site-list-item .domain-name { font-weight: 600; font-size: 0.92rem; }
.site-list-item .domain-value { color: var(--accent); font-weight: 700; font-size: 0.92rem; }
.site-list-item .domain-date { color: var(--text-muted); font-size: 0.78rem; display: block; margin-top: 2px; }

/* ===== LOADING OVERLAY ===== */
.loading-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(244,243,240,0.94);
    z-index: 999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 16px;
    backdrop-filter: blur(4px);
}
.loading-overlay.active { display: flex; }
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text { color: var(--text-secondary); font-size: 0.92rem; font-weight: 500; }
.loading-steps { list-style: none; text-align: center; }
.loading-steps li {
    color: var(--text-muted);
    font-size: 0.82rem;
    padding: 3px 0;
    opacity: 0;
    animation: fadeIn 0.4s forwards;
}
@keyframes fadeIn { to { opacity: 1; } }

/* ===== FOOTER ===== */
.site-footer {
    background: var(--bg-white);
    border-top: 1px solid var(--border);
    padding: 44px 0 0;
    margin-top: 48px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 36px;
}
.footer-brand .logo { margin-bottom: 4px; }
.footer-brand p {
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-top: 10px;
    line-height: 1.6;
}
.footer-links h4 {
    color: var(--text-secondary);
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    margin-bottom: 12px;
}
.footer-links a {
    display: block;
    color: var(--text-muted);
    font-size: 0.82rem;
    padding: 3px 0;
    transition: color var(--transition);
}
.footer-links a:hover { color: var(--text-primary); }
.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 18px 0;
    margin-top: 36px;
}
.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.78rem;
    text-align: center;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero h1 { font-size: 1.55rem; }
    .hero { padding: 36px 16px 28px; }
    .value-amount { font-size: 2rem; }
    .value-stats { gap: 24px; }
    .value-card { padding: 28px 20px; }
    .report-grid { grid-template-columns: 1fr; }
    .kv-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
    .search-form { flex-direction: column; border-radius: var(--radius-lg); padding: 10px; gap: 8px; }
    .search-form input { padding: 10px; }
    .search-form button { width: 100%; padding: 12px; border-radius: var(--radius); }
    .score-circle-wrap { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
    .container { padding: 0 16px; }
}
