@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap");

:root,
html[data-bs-theme="dark"] {
    --crypto-bg: #0a0e17;
    --crypto-bg-soft: #111827;
    --crypto-panel: rgba(17, 24, 39, 0.88);
    --crypto-panel-strong: rgba(11, 18, 32, 0.96);
    --crypto-border: rgba(51, 65, 85, 0.65);
    --crypto-border-strong: rgba(0, 212, 255, 0.2);
    --crypto-text: #f8fafc;
    --crypto-text-soft: #94a3b8;
    --crypto-text-muted: #64748b;
    --crypto-cyan: #00d4ff;
    --crypto-purple: #7b2ff7;
    --crypto-pink: #f107a3;
    --crypto-success: #10b981;
    --crypto-warning: #f59e0b;
    --crypto-danger: #ef4444;
    --crypto-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
    --crypto-gradient: linear-gradient(135deg, #00d4ff 0%, #7b2ff7 100%);
    --crypto-gradient-soft: linear-gradient(135deg, rgba(0, 212, 255, 0.12) 0%, rgba(123, 47, 247, 0.12) 100%);
}

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

body,
.app-wrapper,
.app-main,
.app-content,
.content-wrapper,
.login-page,
.register-page {
    background:
        radial-gradient(circle at top left, rgba(123, 47, 247, 0.16) 0%, transparent 34%),
        radial-gradient(circle at bottom right, rgba(0, 212, 255, 0.14) 0%, transparent 30%),
        var(--crypto-bg) !important;
    color: var(--crypto-text);
    font-family: "Outfit", sans-serif;
}

.bg-body-tertiary,
.bg-body-secondary {
    background-color: transparent !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
.content-header h1,
.app-content-header h3,
.brand-text,
.login-logo,
.logo,
.crypto-admin-hero h2 {
    font-family: "Space Grotesk", sans-serif;
}

a {
    color: var(--crypto-cyan);
}

a:hover {
    color: #7de3ff;
}

#jazzy-navbar {
    background: rgba(17, 24, 39, 0.82) !important;
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--crypto-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

#jazzy-navbar .nav-link,
#jazzy-navbar .brand-link,
#jazzy-navbar .dropdown-toggle {
    color: var(--crypto-text-soft) !important;
    border-radius: 12px;
    transition: all 0.2s ease;
}

#jazzy-navbar .nav-link:hover,
#jazzy-navbar .dropdown-toggle:hover {
    color: var(--crypto-text) !important;
    background: rgba(0, 212, 255, 0.1);
}

#jazzy-navbar .form-control-navbar,
#jazzy-navbar .btn-navbar {
    background: rgba(10, 14, 23, 0.8);
    border: 1px solid var(--crypto-border);
    color: var(--crypto-text);
}

#jazzy-sidebar {
    background: linear-gradient(180deg, rgba(9, 14, 27, 0.98) 0%, rgba(17, 24, 39, 0.96) 100%) !important;
    border-right: 1px solid var(--crypto-border);
    box-shadow: 18px 0 40px rgba(0, 0, 0, 0.2);
}

#jazzy-sidebar .sidebar-brand {
    border-bottom: 1px solid var(--crypto-border);
    background: transparent;
}

#jazzy-logo {
    min-height: 76px;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1.25rem;
}

#jazzy-logo .brand-image {
    display: none;
}

#jazzy-logo .brand-text {
    font-size: 1.12rem;
    font-weight: 700 !important;
    letter-spacing: 0.01em;
    background: var(--crypto-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#jazzy-sidebar .user-panel {
    margin: 1rem;
    padding: 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(0, 212, 255, 0.12);
}

#jazzy-sidebar .user-panel .image img,
#jazzy-sidebar .user-panel .user-profile {
    border: 2px solid rgba(0, 212, 255, 0.2);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

#jazzy-sidebar .user-panel .info a,
#jazzy-sidebar .user-panel .info span {
    color: var(--crypto-text) !important;
    font-weight: 600;
}

#jazzy-navigation .nav-header {
    color: var(--crypto-text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 1rem 1rem 0.4rem;
}

#jazzy-navigation .nav-link {
    color: var(--crypto-text-soft);
    border-radius: 14px;
    margin: 0.15rem 0.85rem;
    padding: 0.85rem 1rem;
    transition: all 0.2s ease;
}

#jazzy-navigation .nav-link:hover,
#jazzy-navigation .nav-link:focus,
#jazzy-navigation .menu-open > .nav-link {
    color: var(--crypto-text);
    background: rgba(0, 212, 255, 0.08);
    transform: translateX(4px);
}

#jazzy-navigation .nav-link.active,
#jazzy-navigation .nav-item.menu-open > .nav-link {
    color: #fff !important;
    background: var(--crypto-gradient);
    box-shadow: 0 12px 30px rgba(0, 212, 255, 0.18);
}

#jazzy-navigation .nav-link.active p,
#jazzy-navigation .nav-item.menu-open > .nav-link p,
#jazzy-navigation .nav-link.active i,
#jazzy-navigation .nav-item.menu-open > .nav-link i {
    color: inherit !important;
}

.app-main {
    background: transparent;
}

.app-content-header {
    padding-top: 1.5rem;
}

.app-content-header h3,
.content-header h1 {
    color: var(--crypto-text);
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.breadcrumb {
    background: transparent;
    margin-bottom: 0;
}

.breadcrumb-item,
.breadcrumb-item a {
    color: var(--crypto-text-soft);
}

.breadcrumb-item.active {
    color: var(--crypto-text);
}

.dropdown-menu {
    background: rgba(11, 18, 32, 0.98);
    border: 1px solid var(--crypto-border);
    border-radius: 18px;
    box-shadow: var(--crypto-shadow);
}

.dropdown-item {
    color: var(--crypto-text-soft);
    border-radius: 10px;
    padding: 0.75rem 1rem;
}

.dropdown-item:hover,
.dropdown-item:focus {
    color: var(--crypto-text);
    background: rgba(0, 212, 255, 0.08);
}

.card,
.module,
.dashboard #content-related,
.login-card-body,
.register-card-body {
    position: relative;
    background: var(--crypto-panel);
    border: 1px solid var(--crypto-border) !important;
    border-radius: 22px !important;
    box-shadow: var(--crypto-shadow);
    overflow: hidden;
}

.card::before,
.module::before,
.login-card-body::before,
.register-card-body::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 3px;
    background: var(--crypto-gradient);
    opacity: 0.9;
}

.card-header,
.card-header.tabs-border {
    background: rgba(17, 24, 39, 0.72) !important;
    border-bottom: 1px solid var(--crypto-border) !important;
    padding: 1rem 1.25rem;
    color: var(--crypto-text);
}

.card-header h5,
.card-header h4,
.card-header .card-title {
    color: var(--crypto-text);
    font-weight: 700;
}

.card-body,
.module {
    color: var(--crypto-text-soft);
}

.small-box,
.info-box {
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid var(--crypto-border);
    box-shadow: var(--crypto-shadow);
}

.small-box {
    background: var(--crypto-gradient-soft) !important;
}

.table {
    color: var(--crypto-text-soft);
    border-color: var(--crypto-border);
}

.table th {
    background: rgba(10, 14, 23, 0.92) !important;
    color: var(--crypto-text-muted) !important;
    border-color: var(--crypto-border) !important;
    font-size: 0.73rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.table td {
    background: rgba(255, 255, 255, 0.02);
    color: var(--crypto-text-soft);
    border-color: rgba(51, 65, 85, 0.45) !important;
    vertical-align: middle;
}

.table-striped tbody tr:nth-of-type(odd) td {
    background: rgba(255, 255, 255, 0.03);
}

.table-hover tbody tr:hover td,
.results tbody tr:hover td {
    background: rgba(0, 212, 255, 0.07) !important;
    color: var(--crypto-text);
}

.results,
#changelist .results {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    border-radius: 18px;
    border: 1px solid var(--crypto-border);
}

.results table,
#changelist .results table {
    min-width: 960px;
}

.object-tools a,
.btn,
button,
input[type="submit"],
input[type="button"],
a.button,
.submit-row input,
.submit-row a.deletelink {
    border-radius: 12px !important;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-primary,
.btn-success,
.btn-info,
.object-tools a,
.submit-row input.default,
a.button.default {
    background: var(--crypto-gradient) !important;
    border: none !important;
    color: #fff !important;
    box-shadow: 0 12px 28px rgba(0, 212, 255, 0.2);
}

.btn-primary:hover,
.btn-success:hover,
.btn-info:hover,
.object-tools a:hover,
.submit-row input.default:hover,
a.button.default:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 36px rgba(0, 212, 255, 0.26);
}

.btn-outline-primary,
.btn-secondary,
.submit-row a,
a.closelink,
.button,
input[type="submit"]:not(.default) {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(0, 212, 255, 0.22) !important;
    color: var(--crypto-text) !important;
}

.btn-outline-primary:hover,
.btn-secondary:hover,
.submit-row a:hover,
a.closelink:hover,
.button:hover,
input[type="submit"]:not(.default):hover {
    background: rgba(0, 212, 255, 0.08) !important;
}

.submit-row .deletelink,
.btn-danger,
.btn-outline-danger {
    background: rgba(239, 68, 68, 0.12) !important;
    border: 1px solid rgba(239, 68, 68, 0.28) !important;
    color: #fda4af !important;
    box-shadow: none;
}

.form-control,
.form-select,
select,
textarea,
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="url"],
input[type="search"],
input[type="date"],
input[type="datetime-local"],
.select2-selection,
.vTextField,
.vURLField,
.vIntegerField,
.vDateField,
.vTimeField,
.vLargeTextField {
    background: rgba(10, 14, 23, 0.9) !important;
    color: var(--crypto-text) !important;
    border: 1px solid var(--crypto-border) !important;
    border-radius: 14px !important;
    box-shadow: none !important;
}

.form-control:focus,
.form-select:focus,
select:focus,
textarea:focus,
input:focus,
.select2-selection:focus {
    border-color: rgba(0, 212, 255, 0.42) !important;
    box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.12) !important;
}

label,
.form-group label,
.aligned label,
.col-form-label,
fieldset .description,
.help,
.helptext {
    color: var(--crypto-text-soft) !important;
}

fieldset.module,
.inline-group {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--crypto-border);
    border-radius: 18px;
    padding: 1rem;
}

fieldset.module h2,
fieldset.module .module h2,
.inline-group h2 {
    color: var(--crypto-text);
    background: transparent;
    border: none;
    font-size: 1rem;
    padding: 0 0 1rem;
}

.selector,
.selector .selector-available,
.selector .selector-chosen {
    background: transparent;
    border-color: var(--crypto-border);
}

.messagelist,
.messagelist li,
.alert {
    border-radius: 16px !important;
}

.messagelist li,
.alert-success {
    background: rgba(16, 185, 129, 0.12) !important;
    color: #a7f3d0 !important;
    border: 1px solid rgba(16, 185, 129, 0.24) !important;
}

.alert-danger,
.messagelist .error {
    background: rgba(239, 68, 68, 0.12) !important;
    color: #fecaca !important;
    border: 1px solid rgba(239, 68, 68, 0.24) !important;
}

.alert-warning,
.messagelist .warning {
    background: rgba(245, 158, 11, 0.12) !important;
    color: #fde68a !important;
    border: 1px solid rgba(245, 158, 11, 0.24) !important;
}

.paginator,
.pagination {
    color: var(--crypto-text-soft);
}

.paginator a,
.pagination .page-link {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--crypto-border);
    color: var(--crypto-text-soft);
    border-radius: 10px !important;
}

.paginator a:hover,
.pagination .page-link:hover,
.pagination .active .page-link {
    background: rgba(0, 212, 255, 0.1);
    color: var(--crypto-text);
    border-color: rgba(0, 212, 255, 0.28);
}

.app-footer {
    background: rgba(11, 18, 32, 0.72);
    border-top: 1px solid var(--crypto-border);
    color: var(--crypto-text-soft);
}

.login-box,
.register-box {
    width: min(92vw, 450px);
}

.login-card-body,
.register-card-body {
    background: rgba(17, 24, 39, 0.92) !important;
    padding: 2rem 2rem 1.75rem;
}

.login-logo a,
.register-logo a {
    color: var(--crypto-text) !important;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.login-page .btn-primary,
.register-page .btn-primary {
    width: 100%;
}

.crypto-admin-hero {
    background:
        radial-gradient(circle at top right, rgba(241, 7, 163, 0.18), transparent 30%),
        linear-gradient(135deg, rgba(0, 212, 255, 0.12), rgba(123, 47, 247, 0.18));
}

.crypto-admin-notice {
    background:
        radial-gradient(circle at top right, rgba(245, 158, 11, 0.16), transparent 34%),
        linear-gradient(135deg, rgba(241, 7, 163, 0.12), rgba(0, 212, 255, 0.14));
}

.crypto-admin-hero .card-body {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(220px, 1fr);
    gap: 1.5rem;
    align-items: center;
    padding: 1.75rem;
}

.crypto-admin-notice .card-body {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(220px, 1fr);
    gap: 1.25rem;
    align-items: center;
    padding: 1.5rem 1.75rem;
}

.crypto-admin-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.85rem;
    color: var(--crypto-cyan);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.crypto-admin-hero h2 {
    color: var(--crypto-text);
    font-size: clamp(1.9rem, 4vw, 2.7rem);
    font-weight: 700;
    margin-bottom: 0.7rem;
}

.crypto-admin-hero p {
    color: #cbd5e1;
    margin-bottom: 0;
    max-width: 62ch;
}

.crypto-admin-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    justify-content: flex-end;
}

.crypto-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.crypto-admin-card .card-header,
.crypto-admin-sidebar-card .card-header {
    padding: 1rem 1.15rem;
}

.crypto-admin-app-meta {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.crypto-admin-app-meta small {
    color: var(--crypto-text-soft);
}

.crypto-admin-icon,
.crypto-admin-timeline-badge {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(0, 212, 255, 0.12);
    color: var(--crypto-cyan);
    border: 1px solid rgba(0, 212, 255, 0.18);
}

.crypto-admin-model-list,
.crypto-admin-shortcuts {
    list-style: none;
    margin: 0;
    padding: 0;
}

.crypto-admin-model-row,
.crypto-admin-shortcuts li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.95rem 0;
    border-bottom: 1px solid rgba(51, 65, 85, 0.4);
}

.crypto-admin-model-row:last-child,
.crypto-admin-shortcuts li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.crypto-admin-model-row:first-child,
.crypto-admin-shortcuts li:first-child {
    padding-top: 0;
}

.crypto-admin-model-name {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--crypto-text);
    font-weight: 600;
}

.crypto-admin-model-name a {
    color: var(--crypto-text);
    text-decoration: none;
}

.crypto-admin-model-name a:hover {
    color: var(--crypto-cyan);
}

.crypto-admin-model-row small,
.crypto-admin-shortcuts small,
.crypto-admin-empty,
.crypto-admin-timeline-time {
    color: var(--crypto-text-soft);
}

.crypto-admin-timeline {
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
}

.crypto-admin-verification-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.crypto-admin-verification-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(51, 65, 85, 0.4);
}

.crypto-admin-verification-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.crypto-admin-timeline-item {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 0.85rem;
    align-items: start;
}

.crypto-admin-timeline-title {
    margin: 0.12rem 0 0.2rem;
    color: var(--crypto-text);
    font-weight: 600;
}

.crypto-admin-timeline-title a {
    color: inherit;
    text-decoration: none;
}

.crypto-admin-timeline-title a:hover {
    color: var(--crypto-cyan);
}

.crypto-admin-summary {
    display: grid;
    gap: 0.85rem;
}

.crypto-admin-summary-item {
    padding: 1rem 1.1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(51, 65, 85, 0.45);
}

.crypto-admin-summary-item span {
    display: block;
    color: var(--crypto-text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.35rem;
}

.crypto-admin-summary-item strong {
    color: var(--crypto-text);
    font-size: 1.1rem;
}

@media (max-width: 991.98px) {
    .crypto-admin-hero .card-body {
        grid-template-columns: 1fr;
    }

    .crypto-admin-notice .card-body {
        grid-template-columns: 1fr;
    }

    .crypto-admin-hero-actions {
        justify-content: flex-start;
    }

    .results table,
    #changelist .results table {
        min-width: 840px;
    }
}
