/* Shared MoneyChoice shell: headers, nav buttons, tokens (Ideas hub, Smart Lens, /ideas/* tools) */
:root {
    --mc-shell-bg: #000000;
    --mc-shell-surface: #121212;
    --mc-shell-border: #2a2a2a;
    --mc-shell-green: #00c805;
    --mc-shell-green-dim: #00a004;
    --mc-shell-text: #ffffff;
    --mc-shell-text-soft: #e5e7eb;
    --mc-shell-muted: #b8bcc4;
    --mc-shell-header-h: 60px;
}

/* Primary / secondary header nav buttons */
.btn-nav-dl {
    padding: 0.55rem 1rem;
    min-height: 40px;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    border-radius: 10px;
    border: 2px solid rgba(0, 200, 5, 0.55);
    background: rgba(0, 200, 5, 0.14);
    color: #ecfdf5;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    white-space: nowrap;
    line-height: 1.2;
    box-shadow: 0 2px 10px rgba(0, 200, 5, 0.12);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.btn-nav-dl:hover,
.btn-nav-dl:focus-visible {
    background: rgba(0, 200, 5, 0.28);
    border-color: var(--mc-shell-green);
    color: #fff;
    box-shadow: 0 4px 16px rgba(0, 200, 5, 0.28);
}

.btn-nav-dl i {
    font-size: 0.95rem;
    opacity: 0.95;
    flex-shrink: 0;
}

.btn-nav-dl--primary {
    background: linear-gradient(135deg, #00d506, #00b005);
    color: #000;
    border-color: var(--mc-shell-green);
    box-shadow: 0 4px 14px rgba(0, 200, 5, 0.35);
}

.btn-nav-dl--primary:hover,
.btn-nav-dl--primary:focus-visible {
    background: linear-gradient(135deg, #00e806, #00c805);
    color: #000;
    border-color: #00e806;
}

/* Compact sticky headers (Ideas hub + Smart Lens) */
.mc-shell-header {
    border-bottom: 1px solid var(--mc-shell-border);
    background: rgba(0, 0, 0, 0.96);
    position: sticky;
    top: 0;
    z-index: 1040;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.mc-shell-header .container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
    min-height: var(--mc-shell-header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.mc-shell-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--mc-shell-text);
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
    line-height: 1.2;
}

.mc-shell-brand img {
    height: 34px;
    width: 34px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.mc-shell-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-left: auto;
}

.mc-shell-link {
    color: var(--mc-shell-text-soft);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.4rem 0.55rem;
    border-radius: 8px;
    line-height: 1.2;
    transition: color 0.2s ease, background 0.2s ease;
}

.mc-shell-link:hover,
.mc-shell-link:focus-visible {
    color: var(--mc-shell-green);
    background: rgba(0, 200, 5, 0.08);
}

.mc-shell-link i {
    font-size: 0.9rem;
    width: 1.1em;
    text-align: center;
    opacity: 0.92;
}

@media (max-width: 640px) {
    .mc-shell-header .container {
        padding: 10px 16px;
        min-height: 52px;
    }

    .mc-shell-brand span {
        font-size: 0.95rem;
    }

    .mc-shell-link-text {
        display: none;
    }

    .mc-shell-nav {
        gap: 6px 8px;
    }

    .btn-nav-dl {
        padding: 0.45rem 0.75rem;
        min-height: 36px;
        font-size: 0.8125rem;
    }
}
