/* ===== Base — METIS Profanity Cleaner (SanctionSignal theme) ===== */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.9375rem;
    background: #f4f6fa;
    color: #1e293b;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
h1,h2,h3,h4,h5,h6,.h1,.h2,.h3,.h4,.h5,.h6 {
    font-family: 'DM Sans', 'Inter', sans-serif;
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* ===== Navbar ===== */
.navbar {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    letter-spacing: 0.01em;
}
.navbar-brand {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
}
.navbar .nav-link {
    font-size: 0.875rem;
    padding: 0.5rem 0.85rem;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
}
.navbar .nav-link:hover {
    background: rgba(255,255,255,.08);
}
.navbar .nav-link.active {
    background: rgba(255,255,255,.12) !important;
}

/* ===== Buttons ===== */
.btn {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.875rem;
    letter-spacing: 0.01em;
    border-radius: 8px;
    padding: 0.5rem 1.25rem;
    transition: all 0.2s ease;
    border: 1.5px solid transparent;
}
.btn-sm {
    font-size: 0.8125rem;
    padding: 0.3rem 0.85rem;
    border-radius: 6px;
}
.btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border-color: #1d4ed8;
    box-shadow: 0 1px 3px rgba(37,99,235,.25);
}
.btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    border-color: #1e40af;
    box-shadow: 0 3px 8px rgba(37,99,235,.35);
    transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }
.btn-outline-primary { border-color: #2563eb; color: #2563eb; }
.btn-outline-primary:hover {
    background: #2563eb; border-color: #2563eb;
    box-shadow: 0 2px 6px rgba(37,99,235,.25);
    transform: translateY(-1px);
}

/* ===== Form Controls ===== */
.form-control, .form-select {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    border-radius: 8px;
    border: 1.5px solid #d1d5db;
    padding: 0.55rem 0.85rem;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.form-control:focus, .form-select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.form-label {
    font-weight: 500;
    font-size: 0.8125rem;
    color: #374151;
    margin-bottom: 0.35rem;
}
.form-text { font-size: 0.775rem; color: #6b7280; }

/* ===== Cards ===== */
.card {
    border-radius: 12px;
    border-color: rgba(0,0,0,.06);
    box-shadow: 0 1px 3px rgba(0,0,0,.03);
}
.card-header {
    border-radius: 12px 12px 0 0 !important;
    font-weight: 600;
}

/* ===== API Config Bar ===== */
.api-config-bar {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
}

/* ===== Result Box ===== */
.result-box {
    background: #0f172a;
    color: #cbd5e1;
    border-radius: 8px;
    padding: 1rem;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 0.85rem;
    max-height: 500px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

/* ===== Status Badges ===== */
.status-badge {
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* ===== Feature Icons ===== */
.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

/* ===== Spinner ===== */
.spinner-overlay { display: none; }
.spinner-overlay.active {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #2563eb;
}

/* ===== Footer ===== */
.pc-footer {
    margin-top: auto;
    background: #111318;
    border-top: 1px solid rgba(255,255,255,.06);
}
.pc-footer .footer-text {
    color: #9ca3af;
    font-size: 0.8125rem;
}
/* ===== Tables ===== */
.table { font-size: 0.85rem; }
.table th {
    font-weight: 600;
    font-size: 0.775rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6b7280;
}

/* ===== Alerts ===== */
.alert { font-size: 0.875rem; border-radius: 10px; font-weight: 500; }

/* ===== Auth Pages ===== */
.auth-card {
    max-width: 460px;
    margin: 2rem auto;
}
.auth-card .card {
    border: none;
    box-shadow: 0 4px 24px rgba(0,0,0,.06);
}

/* ===== Hero Section ===== */
.pc-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    position: relative;
    overflow: hidden;
    padding: 4rem 0 3.5rem;
}
.pc-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(37,99,235,.08) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 20%, rgba(59,130,246,.06) 0%, transparent 50%);
    pointer-events: none;
}
.pc-hero .hero-word {
    position: absolute;
    color: rgba(148,163,184,0.10);
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
}

/* ===== Challenge / CAPTCHA Widget ===== */
.challenge-widget {
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    padding: 1rem;
    background: #f8fafc;
    margin-bottom: 1rem;
}
.challenge-widget.verified {
    border-color: #22c55e;
    background: #f0fdf4;
}
.challenge-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}
.challenge-option {
    cursor: pointer;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    background: #fff;
    font-size: 1.1rem;
    transition: all 0.15s;
}
.challenge-option:hover {
    border-color: #2563eb;
    background: #eff6ff;
}
.challenge-option.selected {
    border-color: #2563eb;
    background: #dbeafe;
}

/* ===== Footer links in auth pages ===== */
.pc-footer a.link-light {
    font-size: 0.8125rem;
}

/* ===== Admin Panel ===== */
.admin-sidebar .nav-link {
    font-size: 0.875rem;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    color: #374151;
}
.admin-sidebar .nav-link:hover {
    background: #f3f4f6;
}
.admin-sidebar .nav-link.active {
    background: #2563eb;
    color: #fff;
}
.stat-card {
    border-left: 4px solid #2563eb;
}
.stat-card .stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    font-family: 'DM Sans', sans-serif;
}

/* ===== Pricing Cards ===== */
.pricing-card {
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    transition: all 0.2s;
}
.pricing-card:hover {
    border-color: #2563eb;
    box-shadow: 0 8px 32px rgba(37,99,235,.12);
    transform: translateY(-4px);
}
.pricing-card.featured {
    border-color: #2563eb;
    box-shadow: 0 4px 20px rgba(37,99,235,.15);
}
.pricing-card .price {
    font-family: 'DM Sans', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
}
.pricing-card .price small {
    font-size: 1rem;
    color: #6b7280;
}
.savings-badge {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    font-size: 0.75rem;
    padding: 2px 10px;
    border-radius: 20px;
    font-weight: 600;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .pc-hero { padding: 3rem 0 2.5rem; }
    .pc-hero h2 { font-size: 1.75rem; }
}

/* Admin tables: let the per-row "Manage" dropdown escape the scrollable wrapper */
.table-responsive .dropdown-menu { z-index: 1055; }

/* Confirm / notice dialogs must sit above any modal that opened them */
.mh-dialog { z-index: 1080; }
.mh-dialog + .modal-backdrop { z-index: 1075; }
