/* MFCloud internal-tools design system — shared by /admin/*, /account/*, and
   the forum. Ports the marketing site's visual language (deep-space navy,
   blue/purple gradients, glass cards) onto the vendored-Bootstrap admin/
   forum/account pages, WITHOUT adding any CDN dependency (no Google Fonts,
   no Font Awesome) — every one of these surfaces is deliberately built to
   render identically with no internet access. Icons here are inline SVG for
   the same reason. */

:root {
    --mfc-bg-0: #020818;
    --mfc-bg-1: #0b1120;
    --mfc-border: rgba(255, 255, 255, 0.08);
    --mfc-border-hover: rgba(59, 130, 246, 0.4);
    --mfc-blue: #3b82f6;
    --mfc-blue-light: #60a5fa;
    --mfc-purple: #a78bfa;
    --mfc-green: #34d399;
    --mfc-muted: #8b96a8;
}

body {
    background:
        radial-gradient(circle at 15% 0%, rgba(59, 130, 246, 0.10), transparent 45%),
        radial-gradient(circle at 85% 15%, rgba(167, 139, 250, 0.08), transparent 40%),
        var(--mfc-bg-0);
    background-attachment: fixed;
    min-height: 100vh;
}

/* ── Top bar ─────────────────────────────────────────────────────────── */
.mfc-navbar {
    background: rgba(2, 8, 24, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(99, 179, 255, 0.12);
    position: sticky;
    top: 0;
    z-index: 1030;
}
.mfc-navbar-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0.85rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.mfc-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none !important;
}
.mfc-brand img {
    height: 30px;
    width: 30px;
    object-fit: contain;
}
.mfc-brand-text {
    font-weight: 700;
    font-size: 1.05rem;
    color: #fff;
    letter-spacing: -0.01em;
    white-space: nowrap;
}
.mfc-brand-text .accent {
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.mfc-section-badge {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    padding: 0.22rem 0.6rem;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #93c5fd;
    font-weight: 600;
}
.mfc-nav-links {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    flex-wrap: wrap;
}
.mfc-nav-link {
    color: #94a3b8 !important;
    text-decoration: none !important;
    font-size: 0.85rem;
    font-weight: 500;
    position: relative;
    padding: 0.3rem 0;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.mfc-nav-link svg { width: 15px; height: 15px; opacity: 0.85; }
.mfc-nav-link::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    border-radius: 2px;
    transition: width 0.25s ease;
}
.mfc-nav-link:hover { color: #e2e8f0 !important; }
.mfc-nav-link:hover::after, .mfc-nav-link.active::after { width: 100%; }
.mfc-nav-link.active { color: #60a5fa !important; }

/* ── Page shell ──────────────────────────────────────────────────────── */
.mfc-page {
    max-width: 1120px;
    margin: 0 auto;
    padding: 2.5rem 1.25rem 4rem;
}
.mfc-page-narrow { max-width: 780px; }
.mfc-eyebrow {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--mfc-blue-light);
    font-weight: 700;
    margin-bottom: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.mfc-title {
    font-weight: 800;
    letter-spacing: -0.01em;
    background: linear-gradient(135deg, #f1f5f9 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Cards ───────────────────────────────────────────────────────────── */
.card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)) !important;
    border: 1px solid var(--mfc-border) !important;
    border-radius: 0.85rem !important;
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
a.tool-card { text-decoration: none !important; }
a.tool-card:hover .card {
    border-color: var(--mfc-border-hover) !important;
    transform: translateY(-4px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
}
.mfc-icon-badge {
    width: 42px;
    height: 42px;
    border-radius: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.18), rgba(167, 139, 250, 0.14));
    border: 1px solid rgba(99, 179, 255, 0.25);
    color: #93c5fd;
}
.mfc-icon-badge svg { width: 21px; height: 21px; }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn-primary {
    background: linear-gradient(135deg, #2563eb, #3b82f6) !important;
    border: none !important;
    box-shadow: 0 0 22px rgba(59, 130, 246, 0.25);
    transition: all 0.25s ease;
}
.btn-primary:hover, .btn-primary:focus {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(59, 130, 246, 0.4);
}
.btn-outline-primary {
    border-color: rgba(99, 179, 255, 0.4) !important;
    color: #93c5fd !important;
    transition: all 0.2s ease;
}
.btn-outline-primary:hover {
    background: rgba(59, 130, 246, 0.12) !important;
    border-color: #60a5fa !important;
    color: #60a5fa !important;
}
.btn-outline-secondary, .btn-outline-light {
    transition: all 0.2s ease;
}
.btn-outline-secondary:hover, .btn-outline-light:hover {
    transform: translateY(-1px);
}

/* ── Badges / status pills ──────────────────────────────────────────── */
.badge { font-weight: 600; letter-spacing: 0.01em; }

/* ── Misc ────────────────────────────────────────────────────────────── */
.muted { color: var(--mfc-muted) !important; }
.mfc-fade-in { animation: mfc-fade-in 0.35s ease both; }
@keyframes mfc-fade-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}
::selection { background: rgba(59, 130, 246, 0.35); }
