/* Layout mirrors the Dark Web Risk Report search page for consistency:
   spacer + .card in normal flow, shared .search-container / .btn-pink. */

.cs-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 48px 40px;
}

/* ─── Hero: MoleScan wordmark + tagline ──────────────── */

.cs-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cs-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.cs-logo-icon {
    height: 84px;
    width: auto;
    object-fit: contain;
}

.cs-logo-word {
    font-weight: 700;
    font-size: 64px;
    line-height: 1;
    letter-spacing: -1px;
}

.cs-logo-mole {
    color: #1a1a2e;
}

.cs-logo-scan {
    color: var(--pink);
}

.cs-tagline {
    margin: 10px 0 0;
    color: var(--black-3);
    font-size: 18px;
    font-weight: 500;
}

/* ─── Search bar (matches dwrr/search.css) ───────────── */

.search-container {
    width: 80%;
    margin: 28px auto 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px;
    border: 2px solid var(--pink);
    border-radius: 15px;
}

.search-input {
    border: none;
    outline: none;
    width: 100%;
    height: 100%;
    padding: 0 0 0 8px;
    font-size: 16px;
    background: transparent;
    flex: 1;
}

.btn-content {
    gap: 5px;
    display: flex;
    align-items: center;
}

.btn-content[hidden],
.btn-loading[hidden] {
    display: none !important;
}

.status-message {
    text-align: center;
    visibility: hidden;
    min-height: 1.5em;
    line-height: 1.5em;
}

.status-message.visible {
    visibility: visible;
}

.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid currentColor;
    border-right-color: transparent;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
}

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

/* ─── Breached account data stat ─────────────────────── */

.cs-breach-stat {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 22px 0 6px;
}

.cs-breach-value {
    font-size: 44px;
    line-height: 1;
    font-family: 'DS-Digital', sans-serif;
}

.cs-breach-label {
    text-align: left;
    max-width: 150px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--black-3);
    letter-spacing: 0.3px;
}

/* ─── Credential modules ─────────────────────────────── */

.cs-modules-section {
    width: 100%;
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* display:block so the inline spans keep their surrounding spaces
   (the global `.card p { display:flex }` would otherwise drop them). */
.cs-modules-intro {
    display: block;
    margin: 0 0 18px;
    font-size: 15px;
    font-weight: 600;
    color: var(--black-3);
    letter-spacing: 0.3px;
}

.cs-modules {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: stretch;
    gap: 16px;
}

.cs-module {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    text-align: left;
    background: white;
    border: 2px solid var(--accent, var(--pink));
    border-radius: 15px;
    padding: 16px 14px;
    box-shadow: var(--weak-shadow);
}

.cs-module-head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cs-module-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

/* Code label as a coloured pill, tinted per module via --accent. */
.cs-module-tag {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 999px;
    background: var(--accent, var(--pink));
    color: white;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.5px;
    line-height: 1.4;
}


.cs-module-name {
    font-weight: 700;
    font-size: 15px;
    color: #1a1a2e;
    margin: 4px 0 8px;
}

.cs-module p {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    color: #8a8fa3;
}
