:root {
    --super-navy: #20265b;
    --super-navy-deep: #13183f;
    --super-navy-soft: #303879;
    --super-orange: #f97320;
    --super-orange-deep: #dc3d20;
    --super-orange-soft: #fff1e7;
    --super-cream: #fffaf6;
    --super-surface: #ffffff;
    --super-canvas: #f7f7fb;
    --super-text: #20243d;
    --super-muted: #70758a;
    --super-border: #e8e9f1;
    --super-shadow-sm: 0 4px 16px rgba(32, 38, 91, 0.07);
    --super-shadow: 0 14px 34px rgba(32, 38, 91, 0.10);
    --super-radius-sm: 10px;
    --super-radius: 16px;
    --super-radius-lg: 24px;
}

body.superavatar-theme {
    background: var(--super-canvas);
    color: var(--super-text);
    font-family: "Nunito", "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.superavatar-theme a {
    color: var(--super-navy-soft);
}

.superavatar-theme a:hover,
.superavatar-theme a:focus {
    color: var(--super-orange-deep);
}

.superavatar-theme :focus-visible {
    outline: 3px solid rgba(249, 115, 32, 0.25);
    outline-offset: 2px;
}

/* Application shell */
.superavatar-theme .header {
    height: 76px;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--super-border);
    box-shadow: none;
    backdrop-filter: blur(14px);
}

.superavatar-theme .header .logo {
    height: 76px;
    background: #fff;
    border-right: 1px solid var(--super-border);
    border-bottom: 1px solid var(--super-border);
    box-shadow: none;
    transition: width 280ms cubic-bezier(0.4, 0, 0.2, 1);
}

.superavatar-theme .brand-logo-link {
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 11px 20px;
    box-shadow: none;
}

.superavatar-theme .brand-logo-full {
    width: 190px;
    max-height: 54px;
    padding: 3px 7px;
    background: #fff;
    border-radius: 10px;
    box-shadow: none;
}

.superavatar-theme .brand-logo-fold {
    width: 54px;
    height: 54px;
    padding: 0;
    object-fit: contain;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    filter: none;
}

.superavatar-theme .header .nav-left > li > a,
.superavatar-theme .header .nav-right > li > a {
    color: var(--super-navy);
}

.superavatar-theme .header .nav-left > li.desktop-toggle > a,
.superavatar-theme .header .nav-left > li.mobile-toggle > a {
    color: var(--super-orange);
    background: transparent;
    border-radius: 10px;
    transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.superavatar-theme .header .nav-left > li.desktop-toggle > a:hover,
.superavatar-theme .header .nav-left > li.mobile-toggle > a:hover {
    color: var(--super-orange-deep);
    background: var(--super-orange-soft);
    transform: translateY(-1px);
}

.superavatar-theme .header .nav-left .desktop-toggle .anticon,
.superavatar-theme .header .nav-left .mobile-toggle .anticon {
    color: inherit;
}

.superavatar-theme .header .avatar-icon {
    border: 1px solid var(--super-border);
    color: var(--super-navy) !important;
    box-shadow: var(--super-shadow-sm);
}

.superavatar-theme .side-nav {
    top: 76px;
    background: #fff;
    box-shadow: 8px 0 26px rgba(32, 38, 91, 0.07);
    transition: width 280ms cubic-bezier(0.4, 0, 0.2, 1), left 280ms cubic-bezier(0.4, 0, 0.2, 1);
}

.superavatar-theme .side-nav .side-nav-inner {
    background: transparent;
}

.superavatar-theme .side-nav-menu > li > a,
.superavatar-theme .side-nav-menu > li > a .icon-holder,
.superavatar-theme .side-nav-menu > li > a .arrow,
.superavatar-theme .side-nav-menu .dropdown-menu > li > a {
    color: var(--super-muted);
}

.superavatar-theme .side-nav-menu > li > a .title,
.superavatar-theme .side-nav-menu .dropdown-menu > li > a,
.superavatar-theme .side-nav-menu .side-nav-header {
    color: var(--super-text);
}

.superavatar-theme .side-nav-menu > li > a .title {
    display: inline-block;
    max-width: 200px;
    overflow: hidden;
    opacity: 1;
    transform: translateX(0);
    line-height: 1.25;
    transition: max-width 240ms ease, opacity 180ms ease 60ms, transform 240ms ease;
}

.superavatar-theme .side-nav-menu > li > a {
    display: flex;
    align-items: center;
    margin: 4px 12px;
    min-height: 46px;
    border-radius: 12px;
}

.superavatar-theme .side-nav-menu > li > a .icon-holder {
    display: inline-flex;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-right: 12px;
    line-height: 1;
    position: static;
    left: auto;
    color: var(--super-orange);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 10px;
    box-shadow: none;
}

.superavatar-theme .side-nav-menu > li > a .icon-holder > i {
    display: inline-block;
    color: inherit;
    font-size: 17px;
    line-height: 1;
}

.superavatar-theme .side-nav-menu > li > a:hover,
.superavatar-theme .side-nav-menu > li.active > a,
.superavatar-theme .side-nav-menu > li.open > a {
    color: var(--super-navy);
    background: var(--super-orange-soft);
}

.superavatar-theme .side-nav-menu > li > a:hover .icon-holder,
.superavatar-theme .side-nav-menu > li.active > a .icon-holder,
.superavatar-theme .side-nav-menu > li.open > a .icon-holder {
    color: var(--super-orange-deep);
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

@media (min-width: 768px) {
    .superavatar-theme .app .side-nav {
        transition: width 320ms cubic-bezier(0.4, 0, 0.2, 1) !important;
        will-change: width;
    }

    .superavatar-theme .app .header .logo,
    .superavatar-theme .app .page-container,
    .superavatar-theme .app .footer {
        transition: width 320ms cubic-bezier(0.4, 0, 0.2, 1), padding-left 320ms cubic-bezier(0.4, 0, 0.2, 1) !important;
    }

    .superavatar-theme .app .side-nav .side-nav-menu > li > a .title {
        white-space: nowrap;
        transition: max-width 280ms ease, opacity 200ms ease 70ms, transform 280ms ease !important;
    }

    .superavatar-theme .app.is-folded .side-nav {
        width: 80px;
    }

    .superavatar-theme .app.is-folded .side-nav:hover,
    .superavatar-theme .app:not(.is-folded) .side-nav {
        width: 280px;
    }

    .superavatar-theme .app.is-folded .header .logo {
        width: 80px;
    }

    .superavatar-theme .app:not(.is-folded) .header .logo {
        width: 280px;
    }

    .superavatar-theme .app:not(.is-folded) .page-container {
        padding-left: 280px;
    }

    .superavatar-theme .app.is-folded:has(.side-nav:hover) .header .logo {
        width: 280px;
    }

    .superavatar-theme .app.is-folded:has(.side-nav:hover) .header .logo .brand-logo-full {
        display: block !important;
    }

    .superavatar-theme .app.is-folded:has(.side-nav:hover) .header .logo .brand-logo-fold {
        display: none !important;
    }

    .superavatar-theme .app.is-folded .side-nav:not(:hover) .side-nav-menu > li > a {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 50px;
        margin-right: 10px;
        margin-left: 10px;
        padding: 8px 0;
    }

    .superavatar-theme .app.is-folded .side-nav:not(:hover) .side-nav-menu > li > a .icon-holder {
        left: 0;
        flex-basis: 34px;
        margin-right: 0;
        color: var(--super-orange);
        background: transparent;
        border-color: transparent;
    }

    .superavatar-theme .app.is-folded .side-nav:not(:hover) .side-nav-menu > li > a .title {
        display: inline-block !important;
        max-width: 0;
        opacity: 0;
        transform: translateX(-8px);
        visibility: hidden;
    }

    .superavatar-theme .app.is-folded .side-nav:not(:hover) .side-nav-menu > li > a .arrow {
        display: none;
    }

    .superavatar-theme .app.is-folded .side-nav:hover .side-nav-menu > li > a .icon-holder {
        left: 0;
        margin-right: 12px;
    }

    .superavatar-theme .app.is-folded .side-nav:hover .side-nav-menu > li > a .title {
        display: inline-block !important;
        max-width: 200px;
        opacity: 1;
        transform: translateX(0);
        visibility: visible;
    }
}

.superavatar-theme .side-nav-menu .dropdown-menu {
    background: #fafafc;
    margin: 0 12px 7px;
    border-radius: 0 0 12px 12px;
}

.superavatar-theme .side-nav-menu .dropdown-menu > li > a:hover,
.superavatar-theme .side-nav-menu .dropdown-menu > li.active > a {
    color: var(--super-orange-deep);
}

.superavatar-theme .side-nav-menu .dropdown-menu > li.active {
    background: var(--super-orange-soft);
}

.superavatar-theme .side-nav-menu .dropdown-menu > li.active::after {
    border-color: var(--super-orange);
}

.superavatar-theme .side-nav-menu .dropdown-menu > li.active > a::before {
    background: var(--super-orange);
}

.superavatar-theme .page-container {
    padding-top: 76px;
    background: var(--super-canvas);
}

.superavatar-theme .main-content {
    padding-top: 28px;
}

.superavatar-theme .page-header {
    position: relative;
    margin-bottom: 24px;
    padding: 22px 26px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--super-navy-deep), var(--super-navy-soft));
    border-radius: var(--super-radius-lg);
    box-shadow: var(--super-shadow);
}

.superavatar-theme .page-header::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    right: -55px;
    top: -80px;
    border: 28px solid rgba(249, 115, 32, 0.18);
    border-radius: 50%;
}

.superavatar-theme .page-header .header-title,
.superavatar-theme .page-header .breadcrumb,
.superavatar-theme .page-header .breadcrumb a,
.superavatar-theme .page-header .breadcrumb-item,
.superavatar-theme .page-header .breadcrumb-item.active {
    position: relative;
    z-index: 1;
    color: #fff;
}

.superavatar-theme .page-header .header-title {
    font-weight: 800;
    letter-spacing: -0.02em;
}

.superavatar-theme .dashboard-page-header {
    min-height: 190px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 34px 38px;
}

.superavatar-theme .dashboard-brand-kicker {
    position: relative;
    z-index: 1;
    width: max-content;
    margin-bottom: 9px;
    padding: 6px 10px;
    color: #fff;
    background: rgba(249, 115, 32, 0.92);
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.superavatar-theme .dashboard-page-header .header-title {
    margin-bottom: 6px;
    font-size: clamp(1.65rem, 3vw, 2.4rem);
}

.superavatar-theme .dashboard-welcome {
    position: relative;
    z-index: 1;
    max-width: 620px;
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
}

.superavatar-theme .dashboard-page-header .header-sub-title {
    position: absolute;
    z-index: 1;
    right: 30px;
    bottom: 22px;
}

.superavatar-theme .page-header .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.55);
}

/* Shared components */
.superavatar-theme .card {
    border: 1px solid var(--super-border);
    border-radius: var(--super-radius);
    box-shadow: var(--super-shadow-sm);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.superavatar-theme .main-content > .row:first-of-type .card:hover {
    transform: translateY(-3px);
    box-shadow: var(--super-shadow);
}

.superavatar-theme .main-content > .row:first-of-type .card {
    overflow: hidden;
    border-top: 3px solid var(--super-orange);
}

.superavatar-theme .card-header {
    background: transparent;
    border-color: var(--super-border);
}

.superavatar-theme .card-title,
.superavatar-theme h1,
.superavatar-theme h2,
.superavatar-theme h3,
.superavatar-theme h4,
.superavatar-theme h5 {
    color: var(--super-navy);
}

.superavatar-theme .text-primary {
    color: var(--super-orange-deep) !important;
}

.superavatar-theme .bg-primary,
.superavatar-theme .badge-primary {
    background-color: var(--super-orange) !important;
}

.superavatar-theme .btn {
    border-radius: 10px;
    font-weight: 700;
    box-shadow: none;
}

.superavatar-theme .btn-primary {
    color: #fff;
    border-color: var(--super-orange);
    background: linear-gradient(135deg, var(--super-orange), var(--super-orange-deep));
    box-shadow: 0 6px 16px rgba(249, 115, 32, 0.22);
}

.superavatar-theme .btn-primary:hover,
.superavatar-theme .btn-primary:focus,
.superavatar-theme .btn-primary:not(:disabled):not(.disabled):active {
    color: #fff;
    border-color: var(--super-orange-deep);
    background: var(--super-orange-deep);
    transform: translateY(-1px);
}

.superavatar-theme .btn-default,
.superavatar-theme .btn-secondary {
    color: var(--super-navy);
    border-color: var(--super-border);
    background: #fff;
}

.superavatar-theme .form-control,
.superavatar-theme .custom-select,
.superavatar-theme .select2-container .select2-selection--single,
.superavatar-theme .select2-container .select2-selection--multiple {
    min-height: 42px;
    border-color: var(--super-border);
    border-radius: var(--super-radius-sm);
    background-color: #fff;
}

.superavatar-theme .form-control:focus,
.superavatar-theme .custom-select:focus,
.superavatar-theme .select2-container--focus .select2-selection {
    border-color: var(--super-orange);
    box-shadow: 0 0 0 3px rgba(249, 115, 32, 0.12);
}

.superavatar-theme label {
    color: var(--super-navy);
}

.superavatar-theme .table {
    color: var(--super-text);
}

.superavatar-theme .table thead th,
.superavatar-theme .table tfoot th {
    color: var(--super-navy);
    background: #f5f5fa;
    border-color: var(--super-border);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.superavatar-theme .table td {
    border-color: var(--super-border);
    vertical-align: middle;
}

.superavatar-theme .table-hover tbody tr:hover {
    background: var(--super-orange-soft);
}

.superavatar-theme .modal-content,
.superavatar-theme .dropdown-menu {
    border: 1px solid var(--super-border);
    border-radius: var(--super-radius);
    box-shadow: var(--super-shadow);
}

.superavatar-theme .modal-header,
.superavatar-theme .modal-footer {
    border-color: var(--super-border);
}

.superavatar-theme .pagination .page-link {
    color: var(--super-navy);
    border-color: var(--super-border);
}

.superavatar-theme .pagination .active .page-link {
    color: #fff;
    border-color: var(--super-orange);
    background: var(--super-orange);
}

.superavatar-theme .alert {
    border: 0;
    border-radius: var(--super-radius-sm);
    box-shadow: var(--super-shadow-sm);
}

.superavatar-theme .footer {
    color: var(--super-muted);
    background: transparent;
}

/* Authentication and public forms */
.superavatar-theme [style*="background.jpg"] {
    background-image:
        radial-gradient(circle at 12% 12%, rgba(249, 115, 32, 0.22), transparent 25%),
        radial-gradient(circle at 88% 84%, rgba(255, 255, 255, 0.10), transparent 26%),
        linear-gradient(145deg, var(--super-navy-deep), var(--super-navy-soft)) !important;
    background-attachment: fixed;
}

.superavatar-theme [style*="background.jpg"] > .d-flex {
    position: relative;
    z-index: 1;
}

.superavatar-theme [style*="background.jpg"] .card {
    border: 1px solid rgba(255, 255, 255, 0.20);
    box-shadow: 0 24px 60px rgba(9, 13, 42, 0.24);
}

.superavatar-theme [style*="background.jpg"] .img-fluid[src*="superavatar-wordmark"] {
    width: min(320px, 85%);
    max-height: 100px;
}

.superavatar-theme [style*="background.jpg"] > .d-flex > .d-none,
.superavatar-theme [style*="background.jpg"] > .d-flex > .d-md-flex {
    color: rgba(255, 255, 255, 0.76);
}

.superavatar-theme [style*="background.jpg"] > .d-flex > .d-none a,
.superavatar-theme [style*="background.jpg"] > .d-flex > .d-md-flex a,
.superavatar-theme [style*="background.jpg"] > .d-flex > .d-none span,
.superavatar-theme [style*="background.jpg"] > .d-flex > .d-md-flex span {
    color: rgba(255, 255, 255, 0.82) !important;
}

.superavatar-auth {
    min-height: 100vh;
    background: var(--super-cream);
}

.superavatar-auth-shell {
    display: grid;
    grid-template-columns: minmax(360px, 1.05fr) minmax(420px, .95fr);
    min-height: 100vh;
}

.superavatar-auth-story {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: clamp(36px, 6vw, 80px);
    color: #fff;
    background: linear-gradient(145deg, var(--super-navy-deep), var(--super-navy-soft));
}

.superavatar-auth-story::before,
.superavatar-auth-story::after {
    content: "";
    position: absolute;
    border-radius: 50%;
}

.superavatar-auth-story::before {
    width: 360px;
    height: 360px;
    right: -130px;
    top: -90px;
    border: 65px solid rgba(249, 115, 32, 0.18);
}

.superavatar-auth-story::after {
    width: 260px;
    height: 260px;
    left: -110px;
    bottom: -120px;
    background: rgba(249, 115, 32, 0.12);
}

.superavatar-auth-brand,
.superavatar-auth-copy,
.superavatar-auth-meta {
    position: relative;
    z-index: 1;
}

.superavatar-auth-mark {
    width: min(360px, 80%);
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.16));
}

.superavatar-auth-copy {
    max-width: 640px;
}

.superavatar-auth-eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 8px 13px;
    color: #fff;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.superavatar-auth-copy h1 {
    margin: 22px 0 15px;
    color: #fff;
    font-size: clamp(2.25rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.03;
    letter-spacing: -0.045em;
}

.superavatar-auth-copy h1 span {
    color: var(--super-orange);
}

.superavatar-auth-copy p {
    max-width: 560px;
    color: rgba(255, 255, 255, 0.74);
    font-size: 1.05rem;
    line-height: 1.8;
}

.superavatar-auth-meta,
.superavatar-auth-meta a {
    color: rgba(255, 255, 255, 0.72);
}

.superavatar-auth-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(24px, 6vw, 76px);
    background: radial-gradient(circle at 90% 10%, var(--super-orange-soft), transparent 34%), #fff;
}

.superavatar-login-card {
    width: min(460px, 100%);
}

.superavatar-login-card .card {
    padding: 10px;
    border: 0;
    box-shadow: none;
}

.superavatar-login-title {
    margin-bottom: 7px;
    font-size: 2rem;
    font-weight: 800;
}

.superavatar-login-subtitle {
    margin-bottom: 34px;
    color: var(--super-muted);
}

.superavatar-login-card .form-control {
    min-height: 48px;
    padding-left: 42px;
}

.superavatar-login-card .btn-primary {
    min-height: 48px;
    padding-left: 28px;
    padding-right: 28px;
}

.superavatar-mobile-logo {
    display: none;
    width: 260px;
    margin: 0 auto 32px;
}

@media (max-width: 991.98px) {
    .superavatar-auth-shell {
        grid-template-columns: 1fr;
    }

    .superavatar-auth-story {
        display: none;
    }

    .superavatar-auth-panel {
        min-height: 100vh;
    }

    .superavatar-mobile-logo {
        display: block;
    }
}

@media (max-width: 767.98px) {
    .superavatar-theme .main-content {
        padding: 18px 12px;
    }

    .superavatar-theme .page-header {
        padding: 19px 20px;
        border-radius: var(--super-radius);
    }

    .superavatar-theme .page-header .header-title {
        font-size: 1.35rem;
    }

    .superavatar-theme .dashboard-page-header {
        min-height: auto;
        padding: 24px 20px;
    }

    .superavatar-theme .dashboard-page-header .header-sub-title {
        position: static;
        margin-top: 12px;
    }

    .superavatar-theme .card {
        border-radius: 13px;
    }

    .superavatar-theme .table-responsive {
        border-radius: 10px;
    }

    .superavatar-auth-panel {
        padding: 24px 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .superavatar-theme *,
    .superavatar-theme *::before,
    .superavatar-theme *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
