/* ============================================================
   Rapid Cloud SSL Checker — estilos
   ============================================================ */

:root {
    --purple-50:  #faf5ff;
    --purple-100: #f3e8ff;
    --purple-200: #e9d5ff;
    --purple-300: #d8b4fe;
    --purple-400: #c084fc;
    --purple-500: #a855f7;
    --purple-600: #9333ea;
    --purple-700: #7c3aed;
    --purple-800: #6d28d9;
    --purple-900: #581c87;

    --ink-900: #170f27;
    --ink-700: #3d3355;
    --ink-500: #6b6383;
    --ink-300: #a9a3bc;

    --ok:      #10b981;
    --ok-bg:   #ecfdf5;
    --warn:    #f59e0b;
    --warn-bg: #fffbeb;
    --err:     #ef4444;
    --err-bg:  #fef2f2;

    --bg: #f7f5fc;
    --card: rgba(255, 255, 255, 0.78);
    --card-border: rgba(124, 58, 237, 0.12);
    --shadow-soft: 0 10px 40px -12px rgba(88, 28, 135, 0.16);
    --shadow-lift: 0 24px 60px -16px rgba(88, 28, 135, 0.28);

    --grad: linear-gradient(135deg, #a855f7 0%, #7c3aed 55%, #6d28d9 100%);

    --font-display: 'Sora', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, monospace;

    --radius: 20px;
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--ink-900);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.container {
    width: min(1080px, 100% - 40px);
    margin-inline: auto;
}

/* ---------------------------------------------------- fundo animado */

.bg-decor {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.45;
    animation: blob-float 22s ease-in-out infinite alternate;
}
.blob-1 {
    width: 520px; height: 520px;
    background: radial-gradient(circle, #c084fc, transparent 65%);
    top: -180px; left: -120px;
}
.blob-2 {
    width: 460px; height: 460px;
    background: radial-gradient(circle, #818cf8, transparent 65%);
    top: 10%; right: -160px;
    animation-delay: -8s;
}
.blob-3 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, #e879f9, transparent 68%);
    bottom: -260px; left: 30%;
    animation-delay: -15s;
    opacity: 0.3;
}

@keyframes blob-float {
    0%   { transform: translate(0, 0) scale(1); }
    50%  { transform: translate(60px, 40px) scale(1.08); }
    100% { transform: translate(-40px, 70px) scale(0.95); }
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(124, 58, 237, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(124, 58, 237, 0.05) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, black 30%, transparent 75%);
}

/* ---------------------------------------------------- header */

.site-header {
    padding: 22px 0;
    animation: fade-down 0.7s var(--ease-spring) both;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.logo { height: 34px; display: block; transition: transform 0.3s var(--ease-spring); }
.logo-link:hover .logo { transform: scale(1.04); }

.header-nav { display: flex; align-items: center; gap: 14px; }

.badge-free {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--purple-700);
    background: var(--purple-100);
    border: 1px solid var(--purple-200);
    padding: 6px 12px;
    border-radius: 999px;
    white-space: nowrap;
}

/* ---------------------------------------------------- botões */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    padding: 13px 24px;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.25s var(--ease-spring), box-shadow 0.25s ease, background 0.25s ease;
    position: relative;
    overflow: hidden;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-primary {
    background: var(--grad);
    color: #fff;
    box-shadow: 0 10px 24px -8px rgba(124, 58, 237, 0.55);
}
.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.35) 50%, transparent 60%);
    transform: translateX(-120%);
    transition: transform 0.6s ease;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -8px rgba(124, 58, 237, 0.6); }
.btn-primary:hover::after { transform: translateX(120%); }
.btn-primary:active { transform: translateY(0) scale(0.98); }

.btn-ghost {
    background: rgba(255, 255, 255, 0.7);
    color: var(--purple-800);
    border: 1px solid var(--card-border);
    box-shadow: 0 4px 14px -6px rgba(88, 28, 135, 0.12);
}
.btn-ghost:hover { background: #fff; transform: translateY(-2px); }

.btn-whatsapp {
    background: #22c55e;
    color: #fff;
    box-shadow: 0 10px 24px -8px rgba(34, 197, 94, 0.5);
}
.btn-whatsapp:hover { transform: translateY(-2px); background: #16a34a; }

/* ---------------------------------------------------- hero */

.hero {
    text-align: center;
    padding: 56px 0 40px;
}

.hero-icon {
    position: relative;
    width: 96px;
    height: 96px;
    margin: 0 auto 28px;
    animation: pop-in 0.8s var(--ease-spring) 0.15s both;
}
.shield-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 14px 28px rgba(124, 58, 237, 0.4));
    animation: shield-bob 5s ease-in-out infinite;
}
.shield-check {
    stroke-dasharray: 60;
    stroke-dashoffset: 60;
    animation: draw-check 0.7s ease-out 0.9s forwards;
}
@keyframes draw-check { to { stroke-dashoffset: 0; } }
@keyframes shield-bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.hero-icon-ring {
    position: absolute;
    inset: -18px;
    border: 2px solid rgba(124, 58, 237, 0.25);
    border-radius: 50%;
    animation: ring-pulse 3s ease-out infinite;
}
.hero-icon-ring.ring-2 { animation-delay: 1.5s; }
@keyframes ring-pulse {
    0%   { transform: scale(0.75); opacity: 0; }
    35%  { opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(38px, 6vw, 60px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.05;
    animation: fade-up 0.7s var(--ease-spring) 0.25s both;
}

.grad-text {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-subtitle {
    max-width: 560px;
    margin: 18px auto 0;
    font-size: 17px;
    line-height: 1.65;
    color: var(--ink-500);
    animation: fade-up 0.7s var(--ease-spring) 0.35s both;
}

/* ---------------------------------------------------- busca */

.search-box {
    max-width: 640px;
    margin: 36px auto 0;
    animation: fade-up 0.7s var(--ease-spring) 0.45s both;
}

.search-field {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1.5px solid var(--card-border);
    border-radius: 999px;
    padding: 8px 8px 8px 22px;
    box-shadow: var(--shadow-soft);
    transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.search-field:focus-within {
    border-color: var(--purple-400);
    box-shadow: 0 0 0 5px rgba(168, 85, 247, 0.14), var(--shadow-lift);
    transform: translateY(-2px);
}

.search-globe { width: 22px; height: 22px; color: var(--purple-500); flex-shrink: 0; }

#host-input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    font-family: var(--font-body);
    font-size: 17px;
    font-weight: 500;
    color: var(--ink-900);
    padding: 10px 0;
}
#host-input::placeholder { color: var(--ink-300); }

#check-btn { border-radius: 999px; padding: 14px 26px; }
#check-btn .btn-arrow { transition: transform 0.3s var(--ease-spring); }
#check-btn:hover .btn-arrow { transform: translateX(4px); }
#check-btn:disabled { opacity: 0.7; cursor: wait; }

.search-hint {
    margin-top: 14px;
    font-size: 13.5px;
    color: var(--ink-300);
}
.hint-chip {
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--purple-700);
    background: var(--purple-100);
    border: 1px solid var(--purple-200);
    border-radius: 8px;
    padding: 3px 9px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s var(--ease-spring);
}
.hint-chip:hover { background: var(--purple-200); transform: translateY(-1px); }

/* ---------------------------------------------------- vidro / cartões */

.glass {
    background: var(--card);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

/* ---------------------------------------------------- loader */

.loader { padding: 22px 0 60px; }

.loader-card {
    max-width: 520px;
    margin: 0 auto;
    padding: 36px;
    display: flex;
    align-items: center;
    gap: 30px;
    animation: pop-in 0.5s var(--ease-spring) both;
}

.radar {
    position: relative;
    width: 110px;
    height: 110px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 2px solid var(--purple-200);
    background:
        radial-gradient(circle, rgba(168, 85, 247, 0.07) 0%, transparent 70%);
    overflow: hidden;
}
.radar::before, .radar::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(168, 85, 247, 0.25);
}
.radar::before { inset: 18px; }
.radar::after { inset: 36px; }

.radar-sweep {
    position: absolute;
    inset: 0;
    background: conic-gradient(from 0deg, transparent 0deg, transparent 290deg, rgba(168, 85, 247, 0.45) 360deg);
    animation: radar-spin 2.2s linear infinite;
}
@keyframes radar-spin { to { transform: rotate(360deg); } }

.radar-dot {
    position: absolute;
    top: 26%; left: 62%;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--purple-600);
    animation: dot-blink 2.2s ease infinite;
}
@keyframes dot-blink { 0%, 20% { opacity: 1; } 60%, 100% { opacity: 0.15; } }

.loader-steps {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 13px;
}
.loader-steps li {
    display: flex;
    align-items: center;
    gap: 11px;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--ink-300);
    transition: color 0.35s ease;
}
.step-dot {
    width: 20px; height: 20px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 2px solid var(--ink-300);
    position: relative;
    transition: border-color 0.35s ease, background 0.35s ease;
}
.loader-steps li.active { color: var(--purple-800); }
.loader-steps li.active .step-dot {
    border-color: var(--purple-500);
    animation: step-pulse 1s ease infinite;
}
@keyframes step-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.35); }
    50% { box-shadow: 0 0 0 6px rgba(168, 85, 247, 0); }
}
.loader-steps li.done { color: var(--ink-700); }
.loader-steps li.done .step-dot {
    border-color: var(--ok);
    background: var(--ok);
}
.loader-steps li.done .step-dot::after {
    content: '';
    position: absolute;
    left: 5.5px; top: 2.5px;
    width: 4px; height: 8px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* ---------------------------------------------------- erro */

.error-box {
    max-width: 640px;
    margin: 10px auto 60px;
    padding: 24px 28px;
    display: flex;
    gap: 18px;
    align-items: flex-start;
    border-left: 4px solid var(--err);
    animation: shake-in 0.5s var(--ease-spring) both;
}
.error-box svg { width: 28px; height: 28px; color: var(--err); flex-shrink: 0; margin-top: 2px; }
.error-box strong { font-size: 16px; }
.error-box p { margin-top: 5px; color: var(--ink-500); font-size: 14.5px; line-height: 1.6; }

@keyframes shake-in {
    0% { opacity: 0; transform: translateX(-14px); }
    50% { transform: translateX(7px); }
    75% { transform: translateX(-3px); }
    100% { opacity: 1; transform: translateX(0); }
}

/* ---------------------------------------------------- resultados */

.results {
    padding-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.reveal {
    opacity: 0;
    transform: translateY(26px);
    animation: fade-up 0.65s var(--ease-spring) forwards;
}

/* veredicto */

.verdict {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 30px 34px;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}
.verdict::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: var(--grad);
}
.verdict.v-ok::before { background: linear-gradient(180deg, #34d399, #059669); }
.verdict.v-warning::before { background: linear-gradient(180deg, #fbbf24, #d97706); }
.verdict.v-error::before { background: linear-gradient(180deg, #f87171, #dc2626); }

.verdict-icon {
    width: 72px; height: 72px;
    flex-shrink: 0;
    border-radius: 22px;
    display: grid;
    place-items: center;
    animation: pop-in 0.6s var(--ease-spring) 0.1s both;
}
.verdict-icon svg { width: 40px; height: 40px; }
.verdict-icon .draw {
    stroke-dasharray: 80;
    stroke-dashoffset: 80;
    animation: draw-check 0.6s ease-out 0.45s forwards;
}
.v-ok .verdict-icon { background: var(--ok-bg); color: var(--ok); box-shadow: 0 10px 26px -10px rgba(16, 185, 129, 0.5); }
.v-warning .verdict-icon { background: var(--warn-bg); color: var(--warn); box-shadow: 0 10px 26px -10px rgba(245, 158, 11, 0.5); }
.v-error .verdict-icon { background: var(--err-bg); color: var(--err); box-shadow: 0 10px 26px -10px rgba(239, 68, 68, 0.5); }

.verdict-text { flex: 1; min-width: 240px; }
.verdict-text h2 {
    font-family: var(--font-display);
    font-size: clamp(20px, 3vw, 26px);
    font-weight: 700;
    letter-spacing: -0.01em;
}
.verdict-text h2 .host-name {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom;
}
.verdict-text p { margin-top: 6px; color: var(--ink-500); font-size: 15px; line-height: 1.55; }

.verdict-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.verdict-actions .btn { font-size: 14px; padding: 11px 18px; }
.verdict-actions .btn-icon { padding: 12px; }
.verdict-actions .btn-icon span { display: none; }
.verdict-actions .btn-icon svg { width: 21px; height: 21px; }

/* chips de estatística */

.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
}
.stat-chip {
    background: var(--card);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 13px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease;
}
.stat-chip:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.stat-chip .ico {
    width: 38px; height: 38px;
    flex-shrink: 0;
    border-radius: 11px;
    background: var(--purple-100);
    color: var(--purple-700);
    display: grid;
    place-items: center;
}
.stat-chip .ico svg { width: 20px; height: 20px; }
.stat-chip dl { min-width: 0; }
.stat-chip dt { font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-300); }
.stat-chip dd {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--ink-900);
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.stat-chip dd.mono { font-family: var(--font-mono); font-size: 13px; }

/* grade principal */

.result-grid {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 22px;
    align-items: stretch;
}

.panel { padding: 28px; }
.panel-title {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.panel-sub { font-size: 13.5px; color: var(--ink-500); margin-top: 4px; }

/* medidor de validade */

.gauge-wrap {
    position: relative;
    width: 200px;
    margin: 26px auto 8px;
}
.gauge { width: 100%; transform: rotate(-90deg); }
.gauge-track {
    fill: none;
    stroke: var(--purple-100);
    stroke-width: 14;
}
.gauge-fill {
    fill: none;
    stroke: url(#gaugeGrad);
    stroke-width: 14;
    stroke-linecap: round;
    stroke-dasharray: 527.8;
    stroke-dashoffset: 527.8;
    transition: stroke-dashoffset 1.4s cubic-bezier(0.22, 1, 0.36, 1) 0.3s, stroke 0.4s ease;
}
.gauge-fill.warn { stroke: var(--warn); }
.gauge-fill.err { stroke: var(--err); }

.gauge-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.gauge-center strong {
    font-family: var(--font-display);
    font-size: 44px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.gauge-center strong.warn { background: none; color: var(--warn); }
.gauge-center strong.err { background: none; color: var(--err); }
.gauge-center span { font-size: 13px; color: var(--ink-500); margin-top: 5px; font-weight: 500; }

.expiry-dates {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 10px;
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px dashed var(--purple-200);
}
.expiry-dates > div:not(.expiry-divider) {
    display: flex;
    flex-direction: column;
    gap: 3px;
    text-align: center;
}
.expiry-dates span { font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-300); }
.expiry-dates strong { font-size: 15.5px; font-weight: 700; }
.expiry-divider {
    width: 34px;
    height: 2px;
    border-radius: 2px;
    background: var(--grad);
    opacity: 0.5;
}

/* lista de verificações */

.checks-list {
    list-style: none;
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.check-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 15px 17px;
    border-radius: 15px;
    border: 1px solid transparent;
    opacity: 0;
    transform: translateX(-14px);
    animation: slide-in 0.5s var(--ease-spring) forwards;
}
@keyframes slide-in {
    to { opacity: 1; transform: translateX(0); }
}
.check-item.s-ok { background: var(--ok-bg); border-color: rgba(16, 185, 129, 0.18); }
.check-item.s-warning { background: var(--warn-bg); border-color: rgba(245, 158, 11, 0.2); }
.check-item.s-error { background: var(--err-bg); border-color: rgba(239, 68, 68, 0.18); }

.check-icon {
    width: 26px; height: 26px;
    flex-shrink: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin-top: 1px;
}
.check-icon svg { width: 15px; height: 15px; }
.s-ok .check-icon { background: var(--ok); color: #fff; }
.s-warning .check-icon { background: var(--warn); color: #fff; }
.s-error .check-icon { background: var(--err); color: #fff; }

.check-body strong { font-size: 14.5px; font-weight: 600; display: block; }
.check-body p { font-size: 13.5px; color: var(--ink-500); margin-top: 3px; line-height: 1.55; word-break: break-word; }

/* cadeia de certificados */

.chain {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
}

.chain-node {
    position: relative;
    padding-left: 46px;
    opacity: 0;
    transform: translateY(18px);
    animation: fade-up 0.55s var(--ease-spring) forwards;
}
.chain-node:not(:last-child) { padding-bottom: 26px; }
.chain-node::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 34px;
    bottom: -6px;
    width: 2px;
    background: linear-gradient(180deg, var(--purple-300), var(--purple-100));
}
.chain-node:last-child::before { display: none; }

.chain-marker {
    position: absolute;
    left: 0;
    top: 4px;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--grad);
    color: #fff;
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 6px 14px -4px rgba(124, 58, 237, 0.5);
}
.chain-node.bad .chain-marker { background: linear-gradient(135deg, #f87171, #dc2626); box-shadow: 0 6px 14px -4px rgba(239, 68, 68, 0.5); }

.chain-card {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 20px 22px;
    transition: box-shadow 0.3s ease, transform 0.3s var(--ease-spring);
}
.chain-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); }

.chain-head {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.chain-head h4 {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    word-break: break-all;
}
.chain-tag {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 10px;
    border-radius: 999px;
}
.tag-leaf { background: var(--purple-100); color: var(--purple-800); }
.tag-inter { background: #e0e7ff; color: #4338ca; }
.tag-root { background: #fce7f3; color: #be185d; }
.tag-expired { background: var(--err-bg); color: var(--err); }

.chain-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px 22px;
    margin-top: 14px;
}
.chain-meta div { min-width: 0; }
.chain-meta dt { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-300); }
.chain-meta dd { font-size: 13.5px; font-weight: 500; margin-top: 2px; word-break: break-word; }
.chain-meta dd.mono { font-family: var(--font-mono); font-size: 12px; }
.chain-meta dd.bad-date { color: var(--err); font-weight: 700; }

.chain-toggle {
    margin-top: 14px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--purple-700);
    background: none;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0;
}
.chain-toggle svg { width: 14px; height: 14px; transition: transform 0.3s var(--ease-spring); }
.chain-toggle.open svg { transform: rotate(180deg); }

.chain-extra {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s var(--ease-spring);
}
.chain-extra.open { grid-template-rows: 1fr; }
.chain-extra > div { overflow: hidden; }
.chain-extra .chain-meta { padding-top: 14px; border-top: 1px dashed var(--purple-200); margin-top: 14px; }

.sans-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}
.san-chip {
    font-family: var(--font-mono);
    font-size: 11.5px;
    background: var(--purple-50);
    border: 1px solid var(--purple-200);
    color: var(--purple-800);
    border-radius: 7px;
    padding: 3px 8px;
    word-break: break-all;
}

/* refazer + rodapé de resultado */

.recheck-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}
.checked-at { font-size: 13px; color: var(--ink-300); }

.cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 30px 34px;
    flex-wrap: wrap;
    background:
        linear-gradient(var(--card), var(--card)) padding-box,
        var(--grad) border-box;
    border: 2px solid transparent;
}
.cta h3 { font-family: var(--font-display); font-size: 19px; font-weight: 700; }
.cta p { color: var(--ink-500); font-size: 14.5px; margin-top: 5px; }

/* ---------------------------------------------------- rodapé */

.site-footer {
    margin-top: auto;
    padding: 34px 0;
    text-align: center;
    font-size: 13.5px;
    color: var(--ink-300);
}
.site-footer a { color: var(--purple-700); font-weight: 600; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* ---------------------------------------------------- toast */

.toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translate(-50%, 80px);
    background: var(--ink-900);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    padding: 13px 22px;
    border-radius: 12px;
    box-shadow: 0 18px 40px -10px rgba(23, 15, 39, 0.5);
    opacity: 0;
    transition: transform 0.45s var(--ease-spring), opacity 0.3s ease;
    pointer-events: none;
    z-index: 50;
    max-width: calc(100vw - 40px);
    text-align: center;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ---------------------------------------------------- animações base */

@keyframes fade-up {
    from { opacity: 0; transform: translateY(26px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade-down {
    from { opacity: 0; transform: translateY(-16px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes pop-in {
    from { opacity: 0; transform: scale(0.6); }
    to   { opacity: 1; transform: scale(1); }
}

/* ---------------------------------------------------- responsivo */

@media (max-width: 860px) {
    .result-grid { grid-template-columns: 1fr; }
    .verdict { flex-direction: column; text-align: center; }
    .verdict-actions { justify-content: center; }
    .verdict::before { inset: 0 0 auto 0; width: auto; height: 5px; }
}

@media (max-width: 560px) {
    .hero { padding-top: 36px; }
    .badge-free { display: none; }
    .header-nav .btn-ghost { font-size: 13px; padding: 9px 14px; }
    .logo { height: 28px; }
    .search-field {
        flex-direction: column;
        border-radius: 24px;
        padding: 14px;
        gap: 8px;
    }
    .search-globe { display: none; }
    #host-input { width: 100%; text-align: center; padding: 8px 0 4px; }
    #check-btn { width: 100%; }
    .loader-card { flex-direction: column; text-align: left; }
    .panel { padding: 22px; }
    .cta { text-align: center; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
