html, body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.mobile-shell {
    max-width: 1400px;
    margin-inline: auto;
}

.touch-target {
    min-height: 2.5rem;
}

.mobile-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.crawl-title {
    max-width: 32rem;
}

.findings-badges {
    display: inline-flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}

/* ── Dashboard cards ── */
.dashboard-card {
    border: 1px solid #dfe3e8;
    transition: box-shadow 0.15s ease;
}

.dashboard-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.1;
}

.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6c757d;
}

.stat-row {
    display: flex;
    gap: 1.25rem;
    align-items: baseline;
}

/* ── Issue group accordion ── */
.dashboard-details summary {
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.dashboard-details summary::-webkit-details-marker {
    display: none;
}

.dashboard-details summary::before {
    content: "▶";
    display: inline-block;
    margin-right: 0.5rem;
    font-size: 0.65em;
    opacity: 0.45;
    transition: transform 0.15s ease;
}

.dashboard-details[open] summary::before {
    transform: rotate(90deg);
}

.group-crawl-errors {
    border-left: 3px solid var(--bs-danger);
}

.group-seo-issues {
    border-left: 3px solid var(--bs-warning);
}

/* ── Active crawl pulse ── */
@keyframes pulse-ring {
    0%   { box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.35); }
    70%  { box-shadow: 0 0 0 8px rgba(13, 110, 253, 0); }
    100% { box-shadow: 0 0 0 0 rgba(13, 110, 253, 0); }
}

.crawl-pulse-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--bs-primary);
    flex-shrink: 0;
    animation: pulse-ring 1.4s ease-out infinite;
}

/* ── Sign-in hero ── */
.signin-hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 0.5rem;
    border: 1px solid #dee2e6;
}

/* ── Loading skeleton ── */
.skeleton-line {
    height: 1rem;
    border-radius: 0.25rem;
    background: linear-gradient(90deg, #e9ecef 25%, #dee2e6 50%, #e9ecef 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.4s ease-in-out infinite;
}

@keyframes skeleton-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@media (max-width: 991.98px) {
    .crawl-title {
        max-width: 100%;
    }

    .stat-number {
        font-size: 1.5rem;
    }
}

/* ── Pricing page ── */
.pricing-card {
    border: 1px solid #dfe3e8;
    border-radius: 0.75rem;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.pricing-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.pricing-card-featured {
    border-color: #198754;
    border-width: 2px;
    position: relative;
}

.pricing-amount {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
}

.pricing-trial-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: linear-gradient(135deg, #d1e7dd 0%, #badbcc 100%);
    color: #0a3622;
    border: 1px solid #a3cfbb;
    border-radius: 2rem;
    padding: 0.25rem 0.75rem;
    font-size: 0.825rem;
    font-weight: 600;
}

.pricing-features li {
    padding: 0.3rem 0;
    font-size: 0.925rem;
}

.pricing-faq-item {
    background: #f8f9fa;
    border-color: #dee2e6 !important;
}

/* ── API key reveal banner ── */
.key-reveal-banner {
    background: linear-gradient(135deg, #d1e7dd 0%, #c3e6cb 100%);
    border-radius: 0.5rem;
}

.key-reveal-input {
    font-size: 0.8rem;
    letter-spacing: 0.025em;
}

.min-width-0 {
    min-width: 0;
}

@media (prefers-reduced-motion: reduce) {
    .crawl-pulse-dot {
        animation: none;
    }

    .skeleton-line {
        animation: none;
        background: #e9ecef;
    }
}
