/* =========================================================================
   StatusBird - CSS
   Professional, polished design for an e-commerce monitoring SaaS.
   ========================================================================= */

/* --- Reset & Base -------------------------------------------------------- */

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

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
    color: #334155;
    background-color: #f8fafc;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.15s;
}

a:hover {
    color: #1d4ed8;
}

img {
    max-width: 100%;
}

/* --- Container ----------------------------------------------------------- */

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- Navbar -------------------------------------------------------------- */

.navbar {
    background: #fff;
    color: #334155;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid #e2e8f0;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: auto;
    padding: 0.5rem 0;
}

.nav-brand {
    color: #0f172a;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-brand:hover {
    text-decoration: none;
    color: #14b8a6;
}

.nav-logo {
    height: 120px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-links a {
    color: #475569;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    transition: color 0.15s, background 0.15s;
}

.nav-links a:hover {
    color: #0f172a;
    background: #f1f5f9;
    text-decoration: none;
}

.nav-links .btn {
    margin-left: 0.5rem;
    color: #fff;
}

.nav-links .btn:hover {
    color: #fff;
}

/* --- Buttons ------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    font-size: 0.925rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
    gap: 0.5rem;
    line-height: 1.4;
}

.btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #0d9488 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #0f766e 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.45);
}

.btn-outline {
    background: transparent;
    color: #2563eb;
    border: 1.5px solid #cbd5e1;
}

.btn-outline:hover {
    background: #f1f5f9;
    color: #1d4ed8;
    border-color: #93c5fd;
}

.btn-sm {
    padding: 0.4rem 0.85rem;
    font-size: 0.825rem;
}

.btn-lg {
    padding: 0.875rem 2.25rem;
    font-size: 1.05rem;
}

.btn-block {
    display: flex;
    width: 100%;
}

/* --- Flash messages ------------------------------------------------------ */

.flash {
    padding: 0.875rem 1.25rem;
    border-radius: 8px;
    margin: 1rem 0;
    font-size: 0.925rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.flash-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.flash-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.flash-info {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.flash a {
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* --- Footer -------------------------------------------------------------- */

.footer {
    margin-top: auto;
    padding: 2.5rem 0;
    text-align: center;
    color: #94a3b8;
    font-size: 0.85rem;
    border-top: 1px solid #e2e8f0;
}

/* =========================================================================
   Landing Page
   ========================================================================= */

.hero {
    text-align: center;
    padding: 5rem 0 4rem;
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.hero > * {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    border: 1px solid #bfdbfe;
    letter-spacing: 0.01em;
}

.hero h1 {
    font-size: 3.25rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    letter-spacing: -0.035em;
}

.hero h1 .highlight {
    background: linear-gradient(135deg, #2563eb, #14b8a6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #64748b;
    max-width: 560px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.hero-note {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: #94a3b8;
}

/* Social proof */

.social-proof {
    padding: 2rem 0 3rem;
    text-align: center;
}

.social-proof p {
    font-size: 0.85rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.service-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.service-logo {
    font-size: 1rem;
    font-weight: 700;
    color: #94a3b8;
    opacity: 0.6;
    letter-spacing: -0.02em;
}

/* How it works */

.how-it-works {
    padding: 4rem 0;
    text-align: center;
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #14b8a6;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.how-it-works h2 {
    font-size: 2rem;
    color: #0f172a;
    margin-bottom: 0.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.section-desc {
    color: #64748b;
    max-width: 500px;
    margin: 0 auto 2.5rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 960px;
    margin: 0 auto;
}

.step-card {
    background: #fff;
    border-radius: 12px;
    padding: 2.25rem 1.75rem;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: box-shadow 0.2s, transform 0.2s;
}

.step-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.step-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.step-icon-1 {
    background: #eff6ff;
    color: #2563eb;
}

.step-icon-2 {
    background: #f0fdf4;
    color: #16a34a;
}

.step-icon-3 {
    background: #fefce8;
    color: #ca8a04;
}

.step-card h3 {
    font-size: 1.1rem;
    color: #0f172a;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.step-card p {
    color: #64748b;
    font-size: 0.925rem;
    line-height: 1.6;
}

/* Pricing */

.pricing {
    text-align: center;
    padding: 4rem 0 5rem;
}

.pricing h2 {
    font-size: 2rem;
    color: #0f172a;
    margin-bottom: 0.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.pricing-card {
    background: #fff;
    border-radius: 16px;
    padding: 3rem 2.5rem;
    max-width: 400px;
    margin: 0 auto;
    border: 2px solid #e2e8f0;
    position: relative;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.pricing-card:hover {
    border-color: #5eead4;
    box-shadow: 0 12px 40px rgba(20, 184, 166, 0.1);
}

.pricing-card-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #2563eb, #14b8a6);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.35rem 1.25rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.price-amount {
    font-size: 3.5rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.price-amount span {
    font-size: 1.1rem;
    font-weight: 500;
    color: #94a3b8;
}

.price-period {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.price-features {
    list-style: none;
    margin: 1.5rem 0 2rem;
    text-align: left;
}

.price-features li {
    padding: 0.5rem 0;
    color: #475569;
    font-size: 0.925rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.price-features li::before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    background: #ecfdf5;
    border-radius: 50%;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2310b981'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-size: 14px;
    background-position: center;
    background-repeat: no-repeat;
}

/* Comparison table */

.comparison {
    text-align: center;
    padding: 4rem 0 5rem;
}

.comparison h2 {
    font-size: 2rem;
    color: #0f172a;
    margin-bottom: 0.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.comparison-table-wrap {
    max-width: 760px;
    margin: 0 auto;
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.925rem;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.comparison-table thead tr {
    background: #f8fafc;
}

.comparison-table th {
    padding: 0.85rem 1.25rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    border-bottom: 2px solid #e2e8f0;
}

.comparison-table td {
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid #f1f5f9;
    color: #475569;
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

.comparison-table tbody tr:hover {
    background: #fafafe;
}

.comparison-table .col-highlight {
    background: #f0fdfa;
    color: #0f766e;
    font-weight: 600;
}

.comparison-table thead .col-highlight {
    background: #0f766e;
    color: #fff;
}

.comparison-table .check {
    color: #10b981;
}

.comparison-table .check::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 0.35rem;
    vertical-align: middle;
    background: #ecfdf5;
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2310b981'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-size: 11px;
    background-position: center;
    background-repeat: no-repeat;
}

.comparison-table .cross {
    color: #94a3b8;
}

.comparison-table .cross::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 0.35rem;
    vertical-align: middle;
    background: #fef2f2;
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23ef4444'%3E%3Cpath fill-rule='evenodd' d='M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-size: 11px;
    background-position: center;
    background-repeat: no-repeat;
}

/* =========================================================================
   Auth Pages
   ========================================================================= */

.auth-container {
    max-width: 420px;
    margin: 3.5rem auto;
    text-align: center;
}

.auth-container h1 {
    color: #0f172a;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.auth-subtitle {
    color: #64748b;
    margin-bottom: 1.75rem;
    font-size: 0.95rem;
}

.auth-form {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid #e2e8f0;
    text-align: left;
}

.auth-footer {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #64748b;
}

/* --- Forms --------------------------------------------------------------- */

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    color: #374151;
    margin-bottom: 0.4rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="tel"],
.form-group input[type="url"],
.form-group input[type="time"],
.form-group select {
    width: 100%;
    padding: 0.65rem 0.9rem;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.925rem;
    color: #1e293b;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.form-group input:focus {
    outline: none;
    border-color: #14b8a6;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.12);
}

.form-group input:disabled {
    background: #f1f5f9;
    color: #94a3b8;
}

.form-group small {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.8rem;
    color: #94a3b8;
}

.form-group h3 {
    font-size: 1rem;
    color: #374151;
    margin-bottom: 0.75rem;
}

.form-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

/* --- Toggle / Checkbox labels -------------------------------------------- */

.toggle-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
    font-size: 0.925rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: background 0.15s;
}

.toggle-label:hover {
    background: #f8fafc;
}

.toggle-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #14b8a6;
}

.text-muted {
    color: #94a3b8;
    font-size: 0.8rem;
}

/* =========================================================================
   Dashboard
   ========================================================================= */

.dashboard {
    padding: 2rem 0;
}

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.75rem;
}

.dashboard-header h1 {
    color: #0f172a;
    font-size: 1.5rem;
    font-weight: 700;
}

/* Summary bar */

.status-summary {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    font-weight: 600;
    font-size: 0.95rem;
}

.status-summary-icon {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.summary-good {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.summary-good .status-summary-icon {
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.summary-issues {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}

.summary-issues .status-summary-icon {
    background: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
    animation: pulse-dot 2s ease-in-out infinite;
}

.summary-critical {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.summary-critical .status-summary-icon {
    background: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
    animation: pulse-dot 1.5s ease-in-out infinite;
}

/* Empty state */

.empty-state {
    text-align: center;
    padding: 5rem 2rem;
    background: #fff;
    border-radius: 12px;
    border: 2px dashed #e2e8f0;
}

.empty-state-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.empty-state h2 {
    color: #0f172a;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.empty-state p {
    color: #64748b;
    margin-bottom: 1.75rem;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
}

/* Category sections */

.category-section {
    margin-bottom: 2rem;
}

.category-title {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Service cards grid */

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 0.875rem;
}

.service-card {
    background: #fff;
    border-radius: 10px;
    padding: 1.25rem 1.25rem 1.25rem 1.25rem;
    border: 1px solid #e2e8f0;
    transition: box-shadow 0.2s, transform 0.2s;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
}

.service-card-operational::before {
    background: #10b981;
}

.service-card-degraded::before {
    background: #f59e0b;
}

.service-card-major::before {
    background: #f97316;
}

.service-card-critical::before {
    background: #ef4444;
}

.service-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

.service-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.6rem;
}

.service-name {
    font-weight: 600;
    color: #0f172a;
    font-size: 0.975rem;
}

/* Status dot with pulse animation */

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.status-operational {
    background-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.status-degraded {
    background-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
    animation: pulse-dot 2s ease-in-out infinite;
}

.status-major {
    background-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
    animation: pulse-dot 1.5s ease-in-out infinite;
}

.status-critical {
    background-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
    animation: pulse-dot 1s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% {
        box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(239, 68, 68, 0.08);
    }
}

/* Status text */

.service-card-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.825rem;
}

.status-label {
    font-weight: 600;
    font-size: 0.825rem;
}

.status-text-operational {
    color: #10b981;
}

.status-text-degraded {
    color: #f59e0b;
}

.status-text-major {
    color: #f97316;
}

.status-text-critical {
    color: #ef4444;
}

.last-checked {
    color: #94a3b8;
    font-size: 0.775rem;
}

/* =========================================================================
   Onboarding - Service Picker
   ========================================================================= */

.onboarding {
    padding: 2rem 0;
}

.onboarding h1 {
    color: #0f172a;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.page-subtitle {
    color: #64748b;
    margin-bottom: 2rem;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.625rem;
    margin-bottom: 1rem;
}

.checkbox-card {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.85rem 1rem;
    cursor: pointer;
    transition: all 0.15s;
}

.checkbox-card:hover {
    border-color: #5eead4;
    background: #fafafe;
}

.checkbox-card.checked,
.checkbox-card:has(input:checked) {
    border-color: #14b8a6;
    background: #f0fdfa;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.08);
}

.checkbox-card input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #14b8a6;
    flex-shrink: 0;
}

.checkbox-label {
    font-weight: 500;
    color: #374151;
    font-size: 0.925rem;
}

/* =========================================================================
   Settings
   ========================================================================= */

.settings {
    max-width: 560px;
    padding: 2rem 0;
}

.settings h1 {
    color: #0f172a;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.settings-form {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid #e2e8f0;
    margin-top: 1.5rem;
}

/* =========================================================================
   Billing
   ========================================================================= */

.billing {
    max-width: 560px;
    padding: 2rem 0;
}

.billing h1 {
    color: #0f172a;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.billing-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid #e2e8f0;
    margin-bottom: 2rem;
}

.billing-card h2 {
    font-size: 1.1rem;
    color: #374151;
    margin-bottom: 1rem;
}

.plan-status {
    margin-bottom: 1.25rem;
}

.plan-status p {
    margin-top: 0.5rem;
    color: #475569;
}

.plan-badge {
    display: inline-block;
    padding: 0.3rem 0.85rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.badge-active {
    background: #ecfdf5;
    color: #065f46;
}

.badge-trial {
    background: #f0fdfa;
    color: #0f766e;
}

.badge-inactive {
    background: #fef2f2;
    color: #991b1b;
}

.billing-info {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid #e2e8f0;
}

.billing-info h3 {
    font-size: 1rem;
    color: #374151;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.billing-info ul {
    list-style: none;
}

.billing-info li {
    padding: 0.4rem 0;
    color: #475569;
    font-size: 0.925rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.billing-info li::before {
    content: "";
    display: inline-block;
    width: 18px;
    height: 18px;
    background: #ecfdf5;
    border-radius: 50%;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2310b981'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-size: 12px;
    background-position: center;
    background-repeat: no-repeat;
}

/* --- Radio buttons ------------------------------------------------------- */

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    font-size: 0.925rem;
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    transition: background 0.15s;
}

.radio-label:hover {
    background: #f8fafc;
}

.radio-label input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #14b8a6;
}

/* --- Impact messages (Feature 5) ---------------------------------------- */

.impact-message {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: #92400e;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 6px;
    padding: 0.4rem 0.6rem;
    line-height: 1.4;
}

/* --- Incident History (Feature 6) --------------------------------------- */

.history {
    padding: 2rem 0;
}

.history h1 {
    color: #0f172a;
    font-size: 1.5rem;
    font-weight: 700;
}

.uptime-summary {
    margin-bottom: 2rem;
}

.uptime-pct {
    font-weight: 700;
    font-size: 0.9rem;
}

.uptime-good {
    color: #10b981;
}

.uptime-ok {
    color: #f59e0b;
}

.uptime-bad {
    color: #ef4444;
}

.incidents-section {
    margin-top: 2rem;
}

.incident-card {
    background: #fff;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    border: 1px solid #e2e8f0;
    margin-bottom: 0.75rem;
    position: relative;
    overflow: hidden;
}

.incident-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
}

.incident-degraded::before { background: #f59e0b; }
.incident-major::before { background: #f97316; }
.incident-critical::before { background: #ef4444; }

.incident-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.incident-status {
    font-size: 0.825rem;
    font-weight: 600;
    color: #64748b;
}

.incident-body {
    padding-left: 1.6rem;
}

.incident-time {
    font-size: 0.825rem;
    color: #94a3b8;
}

.period-toggle {
    display: flex;
    gap: 0.5rem;
}

/* --- SEO Service Status Pages (Feature 7) ------------------------------- */

.services-index {
    padding: 2rem 0;
}

.services-index h1 {
    color: #0f172a;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.service-status-page {
    padding: 2rem 0;
    max-width: 700px;
}

.service-status-page h1 {
    color: #0f172a;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.uptime-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem 2rem;
    border: 1px solid #e2e8f0;
}

.uptime-card h2 {
    font-size: 1rem;
    color: #374151;
    margin-bottom: 0.5rem;
}

.uptime-big {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
}

.status-hero {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cta-section h2 {
    font-size: 1.5rem;
    color: #0f172a;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* =========================================================================
   Collections - Landing Page
   ========================================================================= */

.collections {
    padding: 4rem 0;
    text-align: center;
}

.collections h2 {
    font-size: 2rem;
    color: #0f172a;
    margin-bottom: 0.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.collections-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    max-width: 1060px;
    margin: 0 auto;
}

.collection-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: box-shadow 0.2s, transform 0.2s;
}

.collection-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.collection-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    background: #f0fdfa;
    color: #0f766e;
}

.collection-card h3 {
    font-size: 1.05rem;
    color: #0f172a;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.collection-card p {
    color: #64748b;
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.collection-count {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #0f766e;
    background: #f0fdfa;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    border: 1px solid #ccfbf1;
}

/* =========================================================================
   Collections - Onboarding Quick Select
   ========================================================================= */

.collection-selector {
    margin-bottom: 2rem;
}

.collection-selector-title {
    font-size: 1rem;
    color: #0f172a;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.collection-selector-desc {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 1rem;
}

.collection-btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
}

.collection-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    transition: all 0.15s;
}

.collection-btn:hover {
    border-color: #5eead4;
    background: #fafafe;
}

.collection-btn.active {
    border-color: #14b8a6;
    background: #f0fdfa;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.08);
}

.collection-btn-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: #0f172a;
}

.collection-btn-count {
    font-size: 0.75rem;
    color: #64748b;
}

/* =========================================================================
   Responsive
   ========================================================================= */

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.25rem;
    }

    .hero-subtitle {
        font-size: 1.05rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .collections-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .hero {
        padding: 3rem 0 2.5rem;
    }

    .hero h1 {
        font-size: 1.85rem;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .checkbox-grid {
        grid-template-columns: 1fr 1fr;
    }

    .collections-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .nav-links {
        gap: 0.125rem;
    }

    .nav-links a {
        font-size: 0.8rem;
        padding: 0.4rem 0.5rem;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .form-actions {
        flex-direction: column;
    }

    .pricing-card {
        padding: 2rem 1.5rem;
    }

    .status-summary {
        font-size: 0.875rem;
    }
}
