.novus-logo img {
    max-height: 42px;
    width: auto;
    object-fit: contain;
}

.novus-logo.logo-small img {
    max-height: 32px;
}

.header .header-left .novus-header-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    line-height: 1.2;
    text-decoration: none;
}

.header .header-left .novus-header-brand img {
    width: auto !important;
    max-height: 44px;
}

.header .header-left .logo-small.novus-logo img {
    width: auto !important;
    max-height: 36px;
}

.novus-header-brand-mark--dark {
    display: none;
}

.novus-header-brand-name {
    font-size: 1.0625rem;
    font-weight: 600;
    color: #0f172a;
    white-space: nowrap;
    letter-spacing: -0.02em;
}

html.darkmode .novus-header-brand-mark--light,
html[data-theme="dark"] .novus-header-brand-mark--light,
[data-topbar="primary"] .novus-header-brand-mark--light,
[data-topbar="dark"] .novus-header-brand-mark--light,
[data-topbar="grey"] .novus-header-brand-mark--light {
    display: none;
}

html.darkmode .novus-header-brand-mark--dark,
html[data-theme="dark"] .novus-header-brand-mark--dark,
[data-topbar="primary"] .novus-header-brand-mark--dark,
[data-topbar="dark"] .novus-header-brand-mark--dark,
[data-topbar="grey"] .novus-header-brand-mark--dark {
    display: block;
}

html.darkmode .novus-header-brand-name,
html[data-theme="dark"] .novus-header-brand-name,
[data-topbar="primary"] .novus-header-brand-name,
[data-topbar="dark"] .novus-header-brand-name,
[data-topbar="grey"] .novus-header-brand-name {
    color: #fff;
}

@media (min-width: 992px) {
    .mini-sidebar:not(.expand-menu) .novus-header-brand-name {
        display: none;
    }
}

.novus-auth-logo img {
    max-height: 72px;
    width: auto;
}

/* Auth (login/register) */
body.account-page.novus-auth {
    background: #f8fafc !important;
}

.novus-auth {
    background: #f8fafc;
}

.novus-auth-right {
    background: #f8fafc;
    min-height: 100vh;
}

.novus-auth-left {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

/* Branded gradient panel (no stock photo) */
.novus-auth-left--gradient {
    background: linear-gradient(145deg, #0b1220 0%, #0f2847 42%, #0a7a79 100%);
}

.novus-auth-left--gradient::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 20% 20%, rgba(14, 165, 164, 0.35), transparent 50%),
        radial-gradient(ellipse 60% 40% at 85% 75%, rgba(59, 130, 246, 0.2), transparent 45%);
    pointer-events: none;
}

.novus-auth-left--gradient::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.6;
    pointer-events: none;
}

.novus-auth-left > * {
    position: relative;
    z-index: 1;
}

.novus-auth-panel-logo {
    max-height: 64px;
    width: auto;
    object-fit: contain;
}

.novus-auth-left-content {
    max-width: 520px;
}

.novus-auth-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    font-size: 0.875rem;
}

.novus-auth-headline {
    color: #fff !important;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.novus-auth-lead {
    max-width: 52ch;
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 1rem;
    line-height: 1.6;
}

.novus-auth-feature {
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

.novus-auth-feature-title {
    color: #fff !important;
}

.novus-auth-feature-text {
    color: rgba(255, 255, 255, 0.85) !important;
}

.novus-auth-contact {
    color: rgba(255, 255, 255, 0.85) !important;
}

.novus-auth-contact a {
    color: #fff !important;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.novus-auth-card {
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
    background: #fff;
}

.novus-auth-card h2 {
    color: #0f172a !important;
}

.novus-auth .novus-auth-meta .text-muted {
    color: #64748b !important;
}

.novus-auth-card .form-control {
    border-radius: 12px;
}

.novus-auth-card .btn {
    border-radius: 12px;
}

.novus-auth-meta a {
    text-decoration: none;
}

/* Account management (dashboard layout) */
.novus-manage-layout {
    align-items: flex-start;
}

.novus-manage-nav {
    gap: 0.25rem;
}

.novus-manage-nav .nav-link {
    border-radius: 8px;
    color: #64748b;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
}

.novus-manage-nav .nav-link:hover {
    background: #f8fafc;
    color: #0f172a;
}

.novus-manage-nav .nav-link.active,
.novus-manage-nav .nav-link.active:hover {
    background: rgba(var(--novus-primary-rgb, 14, 165, 164), 0.12);
    color: var(--novus-primary-700, #0a7a79);
}

/* Novus palette overrides (template supports data-color, we add our own) */
[data-color="novus"] {
    --novus-primary: #0ea5a4; /* teal */
    --novus-primary-600: #0b8f8e;
    --novus-primary-700: #0a7a79;
    --novus-primary-rgb: 14, 165, 164;
    --primary-rgb: var(--novus-primary-rgb);
}

[data-color="novus"] a.hover-a:hover {
    color: var(--novus-primary-700) !important;
}

[data-color="novus"] .link-danger {
    color: #dc2626 !important;
}

[data-color="novus"] a:hover,
[data-color="novus"] .link-primary,
[data-color="novus"] .text-primary {
    color: var(--novus-primary) !important;
}

[data-color="novus"] .bg-primary {
    background-color: var(--novus-primary) !important;
}

[data-color="novus"] .border-primary {
    border-color: rgba(var(--novus-primary-rgb), 0.6) !important;
}

[data-color="novus"] .btn-primary,
[data-color="novus"] .btn.btn-primary {
    background-color: var(--novus-primary) !important;
    border-color: var(--novus-primary) !important;
}

[data-color="novus"] .btn-primary:hover,
[data-color="novus"] .btn-primary:focus,
[data-color="novus"] .btn-primary:active,
[data-color="novus"] .btn.btn-primary:hover,
[data-color="novus"] .btn.btn-primary:focus,
[data-color="novus"] .btn.btn-primary:active {
    background-color: var(--novus-primary-600) !important;
    border-color: var(--novus-primary-600) !important;
}

[data-color="novus"] .btn-outline-primary {
    color: var(--novus-primary) !important;
    border-color: rgba(var(--novus-primary-rgb), 0.5) !important;
}

[data-color="novus"] .btn-outline-primary:hover,
[data-color="novus"] .btn-outline-primary:focus,
[data-color="novus"] .btn-outline-primary:active {
    color: #fff !important;
    background-color: var(--novus-primary) !important;
    border-color: var(--novus-primary) !important;
}

[data-color="novus"] .form-check-input:checked {
    background-color: var(--novus-primary) !important;
    border-color: var(--novus-primary) !important;
}

[data-color="novus"] .form-control:focus,
[data-color="novus"] .form-select:focus {
    border-color: rgba(var(--novus-primary-rgb), 0.7) !important;
    box-shadow: 0 0 0 0.25rem rgba(var(--novus-primary-rgb), 0.18) !important;
}

[data-color="novus"] .page-link:focus {
    box-shadow: 0 0 0 0.25rem rgba(var(--novus-primary-rgb), 0.18) !important;
}

/* Dashboard welcome */
.novus-dashboard-welcome {
    background: linear-gradient(135deg, #0b1220 0%, #0f2847 45%, #0a7a79 100%);
    overflow: hidden;
    position: relative;
}

.novus-dashboard-welcome::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 60% at 90% 20%, rgba(14, 165, 164, 0.35), transparent 55%),
        radial-gradient(ellipse 50% 40% at 10% 80%, rgba(59, 130, 246, 0.2), transparent 50%);
    pointer-events: none;
}

.novus-dashboard-welcome .card-body {
    position: relative;
    z-index: 1;
}

.novus-dashboard-welcome-logo img {
    max-height: 72px;
    width: auto;
    opacity: 0.95;
}
