:root {
    --background: #0f172a;
    --foreground: #f8fafc;
    --surface: #1e293b;
    --surface-soft: #162033;
    --border: #334155;
    --primary: #2563eb;
    --primary-soft: rgba(37, 99, 235, 0.16);
    --accent: #60a5fa;
    --muted: #94a3b8;
    --muted-strong: #cbd5e1;
    --success: #22c55e;
    --warning: #f59e0b;
}

html,
body {
    min-height: 100%;
}

body.public-body {
    position: relative;
    background: #0b1120;
    color: var(--foreground);
    font-family: "Inter", system-ui, sans-serif;
}

body.public-body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.18), transparent 28%),
        radial-gradient(circle at top right, rgba(14, 165, 233, 0.14), transparent 24%),
        linear-gradient(180deg, #0b1120 0%, #0f172a 45%, #111827 100%);
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: -1;
}

body.public-body a {
    color: var(--accent);
}

body.public-body a:hover {
    color: #93c5fd;
}

.public-shell {
    max-width: 1280px;
}

.site-navbar {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(51, 65, 85, 0.92);
}

.site-navbar .navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.site-navbar .navbar-brand::before {
    content: "M";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    font-size: 18px;
}

.site-navbar .nav-link {
    color: var(--muted);
    border-radius: 8px;
    padding: 8px 12px;
    transition: 180ms ease;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link:focus,
.site-navbar .nav-link.active {
    color: var(--accent);
    background: rgba(30, 58, 138, 0.22);
}

.site-panel {
    background: rgba(30, 41, 59, 0.92);
    border: 1px solid rgba(51, 65, 85, 0.95);
    border-radius: 16px;
    box-shadow: 0 24px 80px rgba(2, 6, 23, 0.24);
}

.site-section-title {
    color: #fff;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.hero-panel {
    position: relative;
    overflow: hidden;
    padding: 2rem;
    border-radius: 24px;
    background:
        radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.22), transparent 22%),
        linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(30, 41, 59, 0.95));
    border: 1px solid rgba(51, 65, 85, 1);
}

.hero-panel::after {
    content: "";
    position: absolute;
    inset: auto -10% -25% auto;
    width: 320px;
    height: 320px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.22), transparent 62%);
    pointer-events: none;
}

.hero-subtitle,
.text-consumer-muted {
    color: var(--muted);
}

.hero-chip,
.catalog-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(30, 58, 138, 0.22);
    color: #bfdbfe;
    font-size: 12px;
    font-weight: 600;
}

.catalog-search,
.catalog-search .form-control,
.catalog-search .form-select,
.site-dark-input,
.site-dark-textarea,
.site-dark-select {
    background: rgba(15, 23, 42, 0.84);
    color: #f1f5f9;
    border: 1px solid rgba(51, 65, 85, 1);
    border-radius: 10px;
}

.catalog-search .form-control::placeholder,
.site-dark-input::placeholder,
.site-dark-textarea::placeholder {
    color: #64748b;
}

.catalog-search .form-control:focus,
.catalog-search .form-select:focus,
.site-dark-input:focus,
.site-dark-textarea:focus,
.site-dark-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 0.18rem rgba(59, 130, 246, 0.2);
}

.site-primary-btn {
    background: #2563eb;
    border: 1px solid #2563eb;
    color: #fff;
    border-radius: 10px;
}

.site-primary-btn:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #fff;
}

.site-outline-btn {
    border-radius: 10px;
    border: 1px solid rgba(96, 165, 250, 0.44);
    color: #bfdbfe;
    background: transparent;
}

.site-outline-btn:hover {
    background: rgba(30, 58, 138, 0.22);
    color: #fff;
}

.consumer-callout {
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.16), rgba(37, 99, 235, 0.14));
    border: 1px solid rgba(96, 165, 250, 0.28);
}

.mcp-card {
    background: rgba(30, 41, 59, 0.92);
    border: 1px solid rgba(51, 65, 85, 0.95);
    border-radius: 16px;
    color: #f8fafc;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.mcp-card:hover {
    transform: translateY(-3px);
    border-color: rgba(96, 165, 250, 0.44);
    box-shadow: 0 24px 40px rgba(2, 6, 23, 0.28);
}

.mcp-card-title {
    color: #fff;
    text-decoration: none;
}

.mcp-card-title:hover {
    color: var(--accent);
}

.mcp-card-logo {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem;
    font-weight: 700;
    color: #1e293b;
}

.mcp-card-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.category-pill,
.meta-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.category-pill {
    background: rgba(15, 23, 42, 0.75);
    color: #cbd5e1;
    border: 1px solid rgba(51, 65, 85, 1);
}

.meta-pill {
    background: rgba(30, 58, 138, 0.22);
    color: #bfdbfe;
    border: 1px solid rgba(96, 165, 250, 0.24);
}

.detail-surface {
    background: rgba(30, 41, 59, 0.94);
    border: 1px solid rgba(51, 65, 85, 0.95);
    border-radius: 20px;
}

.detail-side {
    background: rgba(15, 23, 42, 0.82);
    border: 1px solid rgba(51, 65, 85, 0.92);
    border-radius: 16px;
}

.detail-side a {
    word-break: break-word;
}

.code-block {
    white-space: pre-wrap;
    background: #0b1120;
    color: #dbeafe;
    border: 1px solid rgba(51, 65, 85, 1);
    border-radius: 16px;
    padding: 1rem;
}

.site-table {
    background: rgba(30, 41, 59, 0.94);
    color: #e2e8f0;
}

.site-table th,
.site-table td {
    border-color: rgba(51, 65, 85, 0.9);
}

.site-panel .form-label,
.site-panel .form-check-label,
.detail-surface .form-label {
    color: var(--muted-strong);
}

.page-link {
    background: rgba(30, 41, 59, 0.92);
    color: var(--muted-strong);
    border-color: rgba(51, 65, 85, 0.95);
}

.page-link:hover,
.page-item.active .page-link {
    background: rgba(37, 99, 235, 0.18);
    color: #fff;
    border-color: rgba(96, 165, 250, 0.44);
}

.site-footer {
    background: rgba(15, 23, 42, 0.92);
    border-top: 1px solid rgba(51, 65, 85, 0.96);
}

.breadcrumb {
    margin-bottom: 1.25rem;
}

.breadcrumb-item,
.breadcrumb-item a {
    color: #94a3b8;
}

.breadcrumb-item.active {
    color: #e2e8f0;
}

.alert {
    border-radius: 12px;
}

@media (max-width: 767.98px) {
    .hero-panel {
        padding: 1.25rem;
    }

    .site-navbar .navbar-nav {
        gap: 0.25rem;
        padding-top: 0.75rem;
    }
}
