﻿body {
    --color-bg: #080808;
    --color-text: #f5f5f5;
    --color-text-muted: rgba(214, 214, 224, 0.75);
    --color-nav-bg: rgba(12, 12, 12, 0.94);
    --color-nav-border: rgba(250, 250, 250, 0.06);
    --color-nav-link: #f1f1f1;
    --color-nav-link-hover: #ffffff;
    --color-dropdown-bg: rgba(16, 16, 18, 0.98);
    --color-dropdown-border: rgba(244, 244, 245, 0.08);
    --color-card-bg: rgba(18, 18, 20, 0.92);
    --color-card-border: rgba(244, 244, 245, 0.06);
    --color-table-border: rgba(250, 250, 250, 0.07);
    --color-table-header: #e4e4e7;
    --color-tile-bg: rgba(20, 20, 22, 0.9);
    --color-tile-border: rgba(255, 255, 255, 0.08);
    --color-tile-hover-border: rgba(255, 255, 255, 0.22);
    --color-tile-hover-shadow: rgba(14, 14, 16, 0.6);
    --color-panel-bg: rgba(18, 18, 20, 0.88);
    --color-border: rgba(63, 63, 70, 0.4);
    --color-input-bg: linear-gradient(135deg, rgba(21, 21, 23, 0.92), rgba(12, 12, 14, 0.96));
    --color-input-bg-focus: rgba(26, 26, 30, 0.96);
    --color-input-border: rgba(63, 63, 70, 0.45);
    --color-input-border-focus: rgba(250, 250, 250, 0.35);
    --color-alert-bg: rgba(12, 12, 12, 0.95);
    --color-alert-border: rgba(63, 63, 70, 0.5);
    --color-alert-text: #f4f4f5;
    --color-dropdown-link: #fafafa;
    --color-dropdown-hover: rgba(250, 250, 250, 0.08);
    --color-badge-muted: rgba(82, 82, 91, 0.45);
    --color-footer: rgba(161, 161, 170, 0.8);
    --color-hero-bg-start: rgba(34, 34, 36, 0.95);
    --color-hero-bg-end: rgba(15, 15, 17, 0.92);
    --color-hero-border: rgba(244, 244, 245, 0.12);
    --shadow-card: 0 28px 48px -35px rgba(0, 0, 0, 0.85);
    --shadow-hero: 0 40px 90px -60px rgba(0, 0, 0, 0.9);
    --color-page-bg: #05070f;
    --color-sidebar-bg: #0d1018;
    --color-sidebar-border: rgba(51, 65, 85, 0.35);
    --color-sidebar-text: rgba(241, 245, 249, 0.92);
    --color-sidebar-muted: rgba(148, 163, 184, 0.6);
    --color-sidebar-hover: rgba(96, 165, 250, 0.16);
    --color-sidebar-icon-bg: rgba(96, 165, 250, 0.18);
    --color-sidebar-active-bg: rgba(96, 165, 250, 0.18);
    --color-sidebar-active-text: #f8fafc;
    --color-sidebar-active-border: #3b82f6;
    --sidebar-hover-bg: rgba(148, 163, 184, 0.14);
    --sidebar-subtle-border: rgba(71, 85, 105, 0.6);
    --color-topbar-bg: rgba(14, 20, 31, 0.92);
    --color-topbar-border: rgba(148, 163, 184, 0.12);
    --color-border-soft: rgba(63, 63, 70, 0.35);
    --sidebar-width: 240px;
    --sidebar-width-mobile: 220px;

    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: background-color 0.25s ease, color 0.25s ease;
    margin: 0;
}

body.theme-white {
    --color-bg: #f5f5f4;
    --color-text: #111827;
    --color-text-muted: rgba(71, 85, 105, 0.78);
    --color-nav-bg: rgba(255, 255, 255, 0.9);
    --color-nav-border: rgba(15, 23, 42, 0.08);
    --color-nav-link: #1f2937;
    --color-nav-link-hover: #0f172a;
    --color-dropdown-bg: rgba(255, 255, 255, 0.98);
    --color-dropdown-border: rgba(148, 163, 184, 0.24);
    --color-card-bg: #ffffff;
    --color-card-border: rgba(148, 163, 184, 0.28);
    --color-table-border: rgba(209, 213, 219, 0.5);
    --color-table-header: #475569;
    --color-tile-bg: rgba(248, 250, 252, 0.92);
    --color-tile-border: rgba(148, 163, 184, 0.35);
    --color-tile-hover-border: rgba(37, 99, 235, 0.4);
    --color-tile-hover-shadow: rgba(59, 130, 246, 0.18);
    --color-panel-bg: rgba(255, 255, 255, 0.92);
    --color-border: rgba(203, 213, 225, 0.6);
    --color-input-bg: #f8fafc;
    --color-input-bg-focus: #ffffff;
    --color-input-border: rgba(203, 213, 225, 0.75);
    --color-input-border-focus: rgba(59, 130, 246, 0.55);
    --color-alert-bg: #eef2ff;
    --color-alert-border: rgba(59, 130, 246, 0.28);
    --color-alert-text: #1e3a8a;
    --color-dropdown-link: #111827;
    --color-dropdown-hover: rgba(37, 99, 235, 0.08);
    --color-badge-muted: rgba(148, 163, 184, 0.25);
    --color-footer: rgba(75, 85, 99, 0.78);
    --color-hero-bg-start: rgba(255, 255, 255, 0.96);
    --color-hero-bg-end: rgba(241, 245, 249, 0.92);
    --color-hero-border: rgba(148, 163, 184, 0.45);
    --shadow-card: 0 24px 45px -30px rgba(15, 23, 42, 0.16);
    --shadow-hero: 0 32px 60px -35px rgba(15, 23, 42, 0.2);
    --color-page-bg: #f4f6fb;
    --color-sidebar-bg: #ffffff;
    --color-sidebar-border: rgba(148, 163, 184, 0.25);
    --color-sidebar-text: #1f2937;
    --color-sidebar-muted: rgba(100, 116, 139, 0.75);
    --color-sidebar-hover: rgba(37, 99, 235, 0.12);
    --color-sidebar-icon-bg: rgba(59, 130, 246, 0.14);
    --color-sidebar-active-bg: rgba(37, 99, 235, 0.16);
    --color-sidebar-active-text: #0f172a;
    --color-sidebar-active-border: #2563eb;
    --sidebar-hover-bg: rgba(37, 99, 235, 0.1);
    --sidebar-subtle-border: rgba(148, 163, 184, 0.55);
    --color-topbar-bg: #ffffff;
    --color-topbar-border: rgba(148, 163, 184, 0.2);
    --color-border-soft: rgba(203, 213, 225, 0.55);
    --sidebar-width: 240px;
    --sidebar-width-mobile: 220px;
}

body.theme-black {
    /* defaults declared above */
}

.minimal-theme {
    min-height: 100vh;
    background: var(--color-page-bg);
}

.app-shell {
    display: flex;
    min-height: 100vh;
    background: var(--color-page-bg);
}

.app-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 1020;
}

.app-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--sidebar-width);
    background: var(--color-sidebar-bg);
    color: var(--color-sidebar-text);
    border-right: 1px solid var(--color-sidebar-border);
    display: flex;
    flex-direction: column;
    padding: 1.25rem 0;
    gap: 1.25rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    z-index: 1030;
}

.has-sidebar .app-main {
    margin-left: var(--sidebar-width);
}

.sidebar-header {
    display: flex;
    align-items: center;
    padding: 0 1.25rem 0.75rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
    gap: 0.75rem;
}

.sidebar-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: inherit;
    text-decoration: none;
    font-size: 1rem;
}

.sidebar-brand__logo {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sidebar-brand__logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.sidebar-brand__text {
    letter-spacing: 0.02em;
}

.sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    overflow-y: auto;
    padding: 0;
}

.sidebar-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-section__title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-sidebar-muted);
    margin: 0;
    padding: 0 1.25rem;
}

.sidebar-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.sidebar-item {
    position: relative;
}

.sidebar-link,
.sidebar-link:visited {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1.25rem;
    color: var(--color-sidebar-text);
    text-decoration: none;
    font-weight: 500;
    border: 0;
    background: transparent;
    width: 100%;
    text-align: left;
    transition: background 0.2s ease, color 0.2s ease;
    position: relative;
    box-sizing: border-box;
}

.sidebar-item .sidebar-link {
    border-top: 0;
    border-bottom: 1px solid var(--color-sidebar-border, rgba(148, 163, 184, 0.18));
    border-left: 0;
    border-right: 0;
}

.sidebar-item:first-child .sidebar-link {
    border-top: 1px solid var(--color-sidebar-border, rgba(148, 163, 184, 0.18));
}

.sidebar-link::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 2px;
    background: transparent;
    transition: background 0.2s ease;
}

.sidebar-link:hover,
.sidebar-link:focus {
    background: var(--sidebar-hover-bg);
    color: var(--color-sidebar-text);
    text-decoration: none;
}

.sidebar-item--has-children .sidebar-link:hover,
.sidebar-item--has-children .sidebar-link:focus {
    border-color: var(--color-sidebar-active-border);
}

.sidebar-item.is-active > .sidebar-link::before {
    background: var(--color-sidebar-active-border);
}

.sidebar-item.is-active > .sidebar-link {
    background: var(--color-sidebar-active-bg);
    color: var(--color-sidebar-active-text);
}

.sidebar-icon {
    width: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: inherit;
}

.sidebar-label {
    flex: 1;
    min-width: 0;
    color: inherit;
    font-size: 0.95rem;
}

.sidebar-caret {
    display: inline-flex;
    align-items: center;
    transition: transform 0.2s ease;
    color: var(--color-sidebar-muted);
    font-size: 0.85rem;
}

.sidebar-item.is-active .sidebar-caret {
    color: inherit;
}

.sidebar-item--has-children .sidebar-link {
    cursor: pointer;
    border: 1px solid var(--color-sidebar-border, rgba(148, 163, 184, 0.18));
    border-left-width: 0;
    border-right-width: 0;
    border-radius: 0;
    background: transparent;
}

.sidebar-item--has-children .sidebar-submenu {
    display: none;
}

.sidebar-item--has-children.is-open > .sidebar-link .sidebar-caret {
    transform: rotate(90deg);
    color: var(--color-sidebar-active-text);
}

.sidebar-item--has-children.is-open > .sidebar-link {
    border-top-color: var(--color-sidebar-active-border, #3b82f6);
    border-bottom-color: var(--color-sidebar-active-border, #3b82f6);
    border-left-color: transparent;
    border-right-color: transparent;
    background: rgba(59, 130, 246, 0.16);
    color: var(--color-sidebar-active-text);
}

.sidebar-item--has-children.is-open > .sidebar-submenu {
    display: flex;
    border-bottom: 1px solid var(--color-sidebar-border, rgba(148, 163, 184, 0.18));
    margin-bottom: 0;
    padding-bottom: 0.35rem;
}

.sidebar-submenu {
    list-style: none;
    margin: 0;
    padding: 0.35rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    width: 100%;
}

.sidebar-subitem {
    display: flex;
}

.sidebar-sublink {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 1.25rem;
    color: var(--color-sidebar-muted);
    text-decoration: none;
    font-size: 0.9rem;
    position: relative;
    width: 100%;
    transition: background 0.2s ease, color 0.2s ease;
}

.sidebar-sublink:hover,
.sidebar-sublink:focus {
    color: var(--color-sidebar-text);
    background: var(--sidebar-hover-bg);
}

.sidebar-subitem.is-active .sidebar-sublink {
    color: var(--color-sidebar-active-text);
    background: rgba(59, 130, 246, 0.12);
}

.sidebar-submark {
    width: 2px;
    align-self: stretch;
    background: transparent;
    transition: background 0.2s ease;
}

.sidebar-subitem.is-active .sidebar-submark {
    background: var(--color-sidebar-active-border);
}

.sidebar-sublink:hover .sidebar-submark,
.sidebar-sublink:focus .sidebar-submark {
    background: var(--color-sidebar-muted);
}

.sidebar-footer {
    margin-top: auto;
    padding: 1rem 1.25rem 0;
    border-top: 1px solid rgba(148, 163, 184, 0.15);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--color-sidebar-muted);
}

.sidebar-footlink {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: inherit;
    text-decoration: none;
}

.sidebar-footlink:hover,
.sidebar-footlink:focus {
    color: var(--color-sidebar-text);
}

.sidebar-version {
    font-weight: 500;
}

body.sidebar-open .app-overlay {
    opacity: 1;
    pointer-events: auto;
}

@media (max-width: 1199.98px) {
    .app-sidebar {
        width: var(--sidebar-width-mobile);
        transform: translateX(-105%);
    }

    body.sidebar-open .app-sidebar {
        transform: translateX(0);
        box-shadow: 24px 0 40px -28px rgba(15, 23, 42, 0.55);
    }

    body.has-sidebar .app-main {
        margin-left: 0;
    }

    .sidebar-nav {
        max-height: calc(100vh - 210px);
    }
}

.version-entry {
    border: 1px solid var(--color-border, rgba(63, 63, 70, 0.4));
    border-radius: 14px;
    padding: 1rem 1.1rem;
    background: var(--color-panel-bg, rgba(18, 18, 20, 0.88));
    margin-bottom: 0.8rem;
}

.version-entry:last-child {
    margin-bottom: 0;
}

.version-meta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.4rem;
}

.version-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    background: rgba(96, 165, 250, 0.18);
    color: var(--color-text);
    font-size: 0.85rem;
    letter-spacing: 0.02em;
}

.version-time {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

.version-meta i {
    color: var(--color-sidebar-muted, rgba(148, 163, 184, 0.6));
}

.version-entry p {
    color: var(--color-text-muted);
}

.app-main {
    flex: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--color-page-bg);
}

.app-topbar {
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.75rem;
    background: var(--color-topbar-bg, rgba(15, 23, 42, 0.85));
    border-bottom: 1px solid var(--color-topbar-border, rgba(255, 255, 255, 0.08));
    position: sticky;
    top: 0;
    z-index: 1025;
    backdrop-filter: blur(12px);
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.topbar-user {
    position: relative;
    display: inline-flex;
}

.topbar-user summary {
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.45rem 0.9rem;
    background: var(--color-card-bg);
    border: 1px solid var(--color-border-soft);
    border-radius: 999px;
    color: var(--color-text);
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.topbar-user summary::-webkit-details-marker {
    display: none;
}

.topbar-user[open] summary {
    border-color: var(--color-sidebar-active-border, var(--color-border-soft));
}

.topbar-user__avatar {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: var(--color-sidebar-icon-bg);
    color: var(--color-sidebar-active-text, var(--color-text));
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.topbar-user__name {
    max-width: 12rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topbar-user__caret {
    font-size: 0.65rem;
    opacity: 0.7;
    margin-left: 0.1rem;
}

.topbar-user__menu {
    position: absolute;
    top: calc(100% + 0.6rem);
    right: 0;
    min-width: 220px;
    background: var(--color-dropdown-bg);
    border: 1px solid var(--color-dropdown-border);
    border-radius: 14px;
    box-shadow: 0 18px 32px -18px rgba(15, 23, 42, 0.55);
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 1050;
}

.topbar-user:not([open]) .topbar-user__menu {
    display: none;
}

.topbar-user__caption {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--color-dropdown-border);
}

.topbar-user__caption strong {
    font-size: 0.95rem;
    font-weight: 600;
}

.topbar-user__email {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topbar-user__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.45rem 0.55rem;
    border-radius: 10px;
    color: var(--color-dropdown-link);
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
    font-size: 0.9rem;
}

.topbar-user__link:hover,
.topbar-user__link:focus {
    background-color: var(--color-dropdown-hover);
    color: var(--color-dropdown-link);
}

.topbar-user__link--logout {
    color: #f87171;
}

.topbar-user__link--logout:hover,
.topbar-user__link--logout:focus {
    color: #fca5a5;
    background-color: rgba(248, 113, 113, 0.12);
}

.topbar-user__theme-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-left: 0.65rem;
    border-radius: 999px;
    background: var(--color-sidebar-icon-bg);
    color: var(--color-sidebar-active-text, var(--color-text));
    position: relative;
}

.topbar-user__theme-indicator::before {
    content: '';
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1;
}

.topbar-user__theme-indicator.icon-sun::before {
    content: '\2600';
}

.topbar-user__theme-indicator.icon-moon::before {
    content: '\263E';
}

.app-topbar .btn-link {
    color: var(--color-text);
}

.app-topbar .btn-link:hover,
.app-topbar .btn-link:focus {
    color: var(--color-nav-link-hover);
    text-decoration: none;
}

.app-topbar .dropdown-menu {
    background-color: var(--color-dropdown-bg);
    border: 1px solid var(--color-dropdown-border);
    border-radius: 14px;
    color: var(--color-dropdown-link);
    box-shadow: var(--shadow-card);
}

.app-topbar .dropdown-item {
    color: var(--color-dropdown-link);
}

.app-topbar .dropdown-item:hover,
.app-topbar .dropdown-item:focus {
    background-color: var(--color-dropdown-hover);
}

.app-topbar .dropdown-divider {
    border-color: var(--color-border);
}

.app-topbar .dropdown-header {
    color: var(--color-text-muted);
}

.app-topbar .dropdown-header strong {
    color: var(--color-text);
}

.app-topbar #theme-indicator {
    background-color: var(--color-panel-bg);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--color-border, rgba(63, 63, 70, 0.4));
    background: var(--color-panel-bg, rgba(18, 18, 20, 0.88));
    color: var(--color-text);
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.btn-icon:hover,
.btn-icon:focus {
    border-color: var(--color-nav-link-hover);
    transform: translateY(-1px);
}

.topbar-search {
    position: relative;
}

.topbar-search .form-control {
    min-width: 280px;
    padding-left: 2.5rem;
    background: var(--color-input-bg);
    border-radius: 14px;
    border: 1px solid var(--color-input-border);
}

.topbar-search .bi-search {
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    color: var(--color-text-muted);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.user-meta {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.user-meta strong {
    font-size: 0.95rem;
    color: var(--color-text);
}

.user-meta span {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.app-content {
    flex: 1;
    padding: 1rem 1.2rem 1.2rem;
    background: var(--color-page-bg);
}

.app-footer {
    padding: 1rem 1.2rem 1.2rem;
    margin-top: auto;
    color: var(--color-footer);
    font-size: 0.85rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    border-top: 1px solid var(--color-border);
}

.page-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
    margin-bottom: 1.2rem;
}

.page-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.page-subtitle {
    color: var(--color-text-muted);
    margin: 0;
}

.quick-pills {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--color-panel-bg);
    border-radius: 999px;
    padding: 0.6rem 1rem;
    border: 1px solid var(--color-border);
}

.quick-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.quick-pill .icon {
    background: rgba(59, 130, 246, 0.18);
    color: #60a5fa;
    width: 30px;
    height: 30px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

.module-card {
    background: var(--color-panel-bg);
    border: 1px solid var(--color-border);
    border-radius: 18px;
    padding: 0.85rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    box-shadow: var(--shadow-card);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.module-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 60px -45px rgba(14, 116, 219, 0.55);
    border-color: rgba(37, 99, 235, 0.3);
}

.module-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.module-card__title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.05rem;
    font-weight: 600;
}

.module-card__title .icon {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    background: rgba(96, 165, 250, 0.18);
    color: #60a5fa;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.module-card__items {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.module-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    padding: 0.6rem 0.85rem;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.45), rgba(15, 23, 42, 0.2));
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.module-item:hover {
    border-color: rgba(96, 165, 250, 0.35);
    background: rgba(15, 23, 42, 0.55);
    transform: translateY(-3px);
}

.module-item span {
    color: var(--color-text);
    font-weight: 500;
}

.module-item .badge {
    background: rgba(96, 165, 250, 0.15);
    color: rgba(191, 219, 254, 0.95);
    border: 1px solid rgba(96, 165, 250, 0.28);
}

body.theme-white .module-card {
    background: #ffffff;
    border-color: rgba(148, 163, 184, 0.22);
    box-shadow: 0 22px 50px -32px rgba(15, 23, 42, 0.15);
}

body.theme-white .module-card:hover {
    box-shadow: 0 28px 60px -40px rgba(37, 99, 235, 0.18);
}

body.theme-white .module-card__title .icon {
    background: rgba(37, 99, 235, 0.14);
    color: #1d4ed8;
}

body.theme-white .module-item {
    background: linear-gradient(135deg, rgba(244, 247, 252, 0.9), rgba(255, 255, 255, 0.75));
    border-color: rgba(203, 213, 225, 0.6);
}

body.theme-white .module-item:hover {
    border-color: rgba(37, 99, 235, 0.35);
    background: rgba(237, 245, 255, 0.92);
}

body.theme-white .module-item .badge {
    background: rgba(37, 99, 235, 0.12);
    color: #1e3a8a;
    border-color: rgba(37, 99, 235, 0.2);
}

.guest-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 0;
    box-sizing: border-box;
    background:
        radial-gradient(circle at 20% -10%, rgba(96, 165, 250, 0.22), transparent 45%),
        radial-gradient(circle at 80% 0%, rgba(59, 130, 246, 0.18), transparent 50%),
        linear-gradient(180deg, #030712 0%, #030d1f 45%, #030711 100%);
}

.auth-shell {
    width: min(460px, max(0px, calc(100% - 2rem)));
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.auth-brand {
    display: flex;
    justify-content: flex-start;
}

.auth-brand__link {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    text-decoration: none;
    color: inherit;
}

.auth-brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1;
    text-transform: uppercase;
}

.auth-brand__title {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.auth-brand__subtitle {
    font-size: 0.75rem;
    letter-spacing: 0.48em;
    color: rgba(191, 219, 254, 0.9);
}

.auth-card {
    padding: 1.35rem 1.2rem;
    border-radius: 1.25rem;
    background: rgba(10, 15, 30, 0.88);
    border: 1px solid rgba(148, 163, 184, 0.1);
    box-shadow: 0 48px 90px -60px rgba(2, 6, 23, 0.9);
    backdrop-filter: blur(28px);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-card__header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 0.5rem;
}

.auth-title {
    font-size: 1.8rem;
    font-weight: 600;
    text-align: left;
    margin: 0;
}

.auth-subtitle {
    margin: 0;
    font-size: 1rem;
    color: var(--color-text-muted);
    max-width: 32ch;
    text-align: left;
}

.auth-alerts {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    text-align: center;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.auth-field label {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

.auth-field input {
    border-radius: 16px;
    padding: 0.85rem 1.05rem;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.9), rgba(10, 12, 24, 0.95));
    color: var(--color-text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.auth-field input::placeholder {
    color: rgba(226, 232, 240, 0.45);
}

.auth-field input:focus {
    border-color: rgba(96, 165, 250, 0.75);
    background: rgba(15, 23, 42, 0.92);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
    outline: none;
}

.auth-card .alert {
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.6);
    color: var(--color-text);
    padding: 0.85rem 1.1rem;
    margin: 0;
}

.auth-card .alert.alert-danger {
    border-color: rgba(248, 113, 113, 0.45);
    background: rgba(127, 29, 29, 0.32);
}

.auth-card .alert.alert-success {
    border-color: rgba(74, 222, 128, 0.35);
    background: rgba(21, 128, 61, 0.28);
}

.auth-submit {
    width: 100%;
    border-radius: 16px;
    padding: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    border: none;
    box-shadow: 0 24px 50px -32px rgba(59, 130, 246, 0.75);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.auth-submit:hover,
.auth-submit:focus {
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    transform: translateY(-1px);
    box-shadow: 0 30px 60px -34px rgba(59, 130, 246, 0.85);
}

.auth-submit:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

.auth-submit:active {
    transform: translateY(0);
    box-shadow: 0 16px 40px -28px rgba(37, 99, 235, 0.7);
}

.auth-actions {
    margin-top: 0.25rem;
}

@media (max-width: 575.98px) {
    .guest-wrapper {
        padding: 3rem 0;
    }

    .auth-card {
        padding: 1.2rem 1.05rem;
    }

    .auth-brand__subtitle {
        letter-spacing: 0.32em;
    }
}

body.theme-white .guest-wrapper {
    background: linear-gradient(160deg, #ffffff 0%, #f4f6fb 60%, #dbeafe 100%);
}

body.theme-white .auth-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 40px 70px -45px rgba(15, 23, 42, 0.2);
}

body.theme-white .auth-field label {
    color: rgba(71, 85, 105, 0.9);
}

body.theme-white .auth-field input {
    background: #f1f5f9;
    border: 1px solid rgba(148, 163, 184, 0.6);
    color: #0f172a;
}

body.theme-white .auth-field input::placeholder {
    color: rgba(100, 116, 139, 0.6);
}

body.theme-white .auth-card .alert {
    background: rgba(226, 232, 240, 0.6);
    color: #0f172a;
    border: 1px solid rgba(148, 163, 184, 0.4);
}

body.theme-white .auth-card .alert.alert-danger {
    background: rgba(254, 226, 226, 0.9);
    border-color: rgba(248, 113, 113, 0.55);
}

body.theme-white .auth-card .alert.alert-success {
    background: rgba(220, 252, 231, 0.9);
    border-color: rgba(74, 222, 128, 0.45);
}

body.theme-white .auth-brand__subtitle {
    color: rgba(37, 99, 235, 0.75);
}

@media (max-width: 1199.98px) {
    .app-topbar {
        padding: 0 1.25rem;
    }

    .app-content {
        padding: 0.9rem 1.1rem 1.1rem;
    }

    .app-footer {
        padding: 1rem 1.1rem 1.1rem;
    }
}

@media (max-width: 767.98px) {
    .topbar-search .form-control {
        min-width: 0;
        width: 100%;
    }

    .btn-icon {
        width: 38px;
        height: 38px;
    }

    .app-topbar {
        gap: 1rem;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .app-content {
        padding: 1.75rem 1.25rem 1.5rem;
    }

    .quick-pills {
        width: 100%;
        justify-content: space-between;
    }
}

a {
    color: var(--color-nav-link-hover);
    transition: color 0.2s ease;
}

a:hover,
a:focus {
    color: var(--color-text);
    text-decoration: none;
}

.navbar-theme {
    background-color: var(--color-nav-bg);
    border-bottom: 1px solid var(--color-nav-border);
    backdrop-filter: blur(12px);
}

.navbar-theme .nav-link {
    color: var(--color-nav-link);
}

.navbar-theme .nav-link:hover,
.navbar-theme .nav-link:focus,
.navbar-theme .nav-link.active {
    color: var(--color-nav-link-hover);
}

.navbar-theme .dropdown-menu {
    background-color: var(--color-dropdown-bg);
    border: 1px solid var(--color-dropdown-border);
}

.navbar-theme .dropdown-item {
    color: var(--color-dropdown-link);
}

.navbar-theme .dropdown-item:hover,
.navbar-theme .dropdown-item:focus {
    background-color: var(--color-dropdown-hover);
}

.navbar-brand .logo-brand {
    display: block;
    width: auto;
    max-height: 40px;
}

.card {
    background: var(--color-card-bg);
    border: 1px solid var(--color-card-border);
    border-radius: 20px;
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(18px);
}

.card h1,
.card h2,
.card h3,
.card h4,
.card h5,
.card h6 {
    color: var(--color-text);
}

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

.table thead th,
.table tbody td {
    padding: 0.6rem 0.9rem;
}

.table thead th {
    color: var(--color-table-header);
    border-bottom-color: var(--color-table-border);
}

.table tbody td {
    border-top-color: var(--color-table-border);
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border: none;
    border-radius: 12px;
    box-shadow: 0 12px 30px -18px rgba(37, 99, 235, 0.8);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
}

.btn-secondary {
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-border-soft);
    border-radius: 12px;
    padding: 0.6rem 1.1rem;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-secondary:hover,
.btn-secondary:focus {
    background: var(--color-border-soft);
    color: var(--color-text);
}

body.theme-black .btn-secondary {
    border-color: rgba(255, 255, 255, 0.12);
}

body.theme-black .btn-secondary:hover,
body.theme-black .btn-secondary:focus {
    background: rgba(255, 255, 255, 0.08);
}

body.theme-white .btn-secondary {
    border-color: rgba(15, 23, 42, 0.2);
}

body.theme-white .btn-secondary:hover,
body.theme-white .btn-secondary:focus {
    background: rgba(15, 23, 42, 0.08);
}

.btn-secondary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-success {
    background: linear-gradient(135deg, #10b981, #0ea5e9);
    border: none;
    border-radius: 12px;
    box-shadow: 0 12px 34px -18px rgba(16, 185, 129, 0.7);
}

.btn-success:hover {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
}

.btn-outline-secondary,
.btn-secondary,
.btn-danger {
    border-radius: 12px;
}

.alert {
    border-radius: 14px;
    border: 1px solid var(--color-alert-border);
    background-color: var(--color-alert-bg);
    color: var(--color-alert-text);
}

.badge {
    border-radius: 999px;
    letter-spacing: 0.05em;
}

.text-muted {
    color: var(--color-text-muted) !important;
}

.table-responsive {
    border-radius: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: var(--color-panel-bg);
    padding: 0;
    overflow: hidden;
}

.dashboard-hero {
    position: relative;
    background: linear-gradient(135deg, var(--color-hero-bg-start), var(--color-hero-bg-end));
    border: 1px solid var(--color-hero-border);
    border-radius: 24px;
    padding: 1.6rem;
    margin-bottom: 1.6rem;
    box-shadow: var(--shadow-hero);
    overflow: hidden;
}

.dashboard-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.12), transparent 55%);
    mix-blend-mode: screen;
    pointer-events: none;
}

body.theme-white .dashboard-hero::after {
    background: radial-gradient(circle at top right, rgba(15, 23, 42, 0.08), transparent 55%);
    mix-blend-mode: normal;
}

.dashboard-section {
    margin-bottom: 1.2rem;
}

.tool-card {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: linear-gradient(135deg, var(--color-tile-bg), rgba(255, 255, 255, 0.02));
    border: 1px solid var(--color-tile-border);
    border-radius: 18px;
    padding: 1.1rem;
    text-align: center;
    font-weight: 600;
    letter-spacing: 0.01em;
    min-height: 112px;
    color: var(--color-text);
    backdrop-filter: blur(12px);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.tool-card:hover,
.tool-card:focus {
    transform: translateY(-4px);
    border-color: var(--color-tile-hover-border);
    box-shadow: 0 18px 40px -25px var(--color-tile-hover-shadow);
    text-decoration: none;
}

footer {
    color: var(--color-footer);
    margin-top: 3rem;
    text-align: center;
    font-size: 0.9rem;
}

.form-label {
    color: var(--color-text);
    font-weight: 500;
    margin-bottom: 0.4rem;
}

.form-control,
.form-select {
    background: var(--color-input-bg);
    border: 1px solid var(--color-input-border);
    color: var(--color-text);
    border-radius: 14px;
    padding: 0.7rem 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.form-control::placeholder {
    color: rgba(148, 163, 184, 0.55);
}

.form-control:focus,
.form-select:focus {
    background-color: var(--color-input-bg-focus);
    border-color: var(--color-input-border-focus);
    box-shadow: 0 10px 32px -24px rgba(88, 166, 255, 0.6);
    color: var(--color-text);
}

.form-text {
    color: rgba(148, 163, 184, 0.65);
}

textarea.form-control {
    min-height: 140px;
}

.input-group-text {
    background: rgba(10, 17, 32, 0.85);
    border: 1px solid rgba(88, 166, 255, 0.25);
    color: rgba(226, 232, 240, 0.85);
    border-radius: 14px;
}

.form-check-input {
    background-color: rgba(10, 16, 28, 0.9);
    border: 1px solid rgba(88, 166, 255, 0.4);
    width: 1.15rem;
    height: 1.15rem;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: #2563eb;
    border-color: #2563eb;
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

.form-check-label {
    color: var(--color-text);
    margin-left: 0.4rem;
    cursor: pointer;
}

.converter-wrapper {
    max-width: 960px;
    margin: 0 auto;
}

.drop-zone {
    border: 2px dashed rgba(88, 166, 255, 0.35);
    border-radius: 1rem;
    padding: 1.4rem 1rem;
    text-align: center;
    background: rgba(13, 19, 32, 0.6);
    transition: border-color 0.2s ease, background 0.2s ease;
    cursor: pointer;
}

.drop-zone.drag-over {
    border-color: rgba(82, 196, 26, 0.8);
    background: rgba(15, 23, 42, 0.85);
}

.preview-card {
    display: flex;
    gap: 0.9rem;
    align-items: center;
}

.preview-card img {
    max-width: 160px;
    border-radius: 18px;
    border: 1px solid rgba(88, 166, 255, 0.2);
    box-shadow: 0 12px 30px -24px rgba(88, 166, 255, 0.5);
}

.quality-control {
    display: none;
}

.quality-control.active {
    display: block;
}

.result-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.15rem;
    border-radius: 999px;
    background: rgba(88, 166, 255, 0.15);
    border: 1px solid rgba(88, 166, 255, 0.3);
    color: var(--color-text);
    font-size: 0.95rem;
}

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

.generated-image {
    width: 100%;
    border-radius: 18px;
    border: 1px solid rgba(88, 166, 255, 0.25);
    box-shadow: 0 28px 45px -35px rgba(15, 23, 42, 0.5);
}

.loader {
    display: inline-flex;
    gap: 0.45rem;
    align-items: center;
}

.loader span {
    width: 10px;
    height: 10px;
    background: #58a6ff;
    border-radius: 50%;
    animation: bounce 1s infinite ease-in-out;
}

.loader span:nth-child(2) {
    animation-delay: 0.2s;
}

.loader span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

/* Users page */
.users-page .module-card {
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    gap: 0.85rem;
}

.users-page .module-card .module-card__header {
    padding: 0.1rem 0.25rem;
}

.users-page .card {
    background: var(--color-card-bg);
    border: 1px solid var(--color-card-border);
    box-shadow: var(--shadow-card);
}

.users-page .card-body {
    background: transparent;
}

.users-card-header {
    background: var(--color-card-bg);
    border-bottom: 1px solid var(--color-card-border);
    border-radius: 20px 20px 0 0;
}

body.theme-black .users-card-header {
    background: rgba(15, 23, 42, 0.72);
    border-bottom-color: rgba(148, 163, 184, 0.2);
}

body.theme-white .users-card-header {
    background: rgba(255, 255, 255, 0.92);
    border-bottom-color: rgba(148, 163, 184, 0.35);
}

.users-card-header h1,
.users-card-header h2,
.users-card-header p {
    color: var(--color-text);
}

.users-card-accent {
    border: 1px solid rgba(37, 99, 235, 0.3);
    box-shadow: 0 28px 65px -52px rgba(37, 99, 235, 0.45);
}

body.theme-black .users-card-accent {
    border-color: rgba(37, 99, 235, 0.42);
    box-shadow: 0 30px 70px -48px rgba(37, 99, 235, 0.55);
}

.users-card-header-accent {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.24), rgba(14, 116, 144, 0));
    border-bottom-color: rgba(37, 99, 235, 0.28);
}

body.theme-black .users-card-header-accent {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.32), rgba(15, 23, 42, 0.65));
    border-bottom-color: rgba(37, 99, 235, 0.36);
}

.users-page .input-group-text {
    background: var(--color-input-bg);
    border: 1px solid var(--color-input-border);
    color: var(--color-text-muted);
}

.users-page .users-empty-alert {
    background: rgba(148, 163, 184, 0.1);
    border: 1px dashed rgba(148, 163, 184, 0.35);
    color: var(--color-text-muted);
}

body.theme-white .users-page .users-empty-alert {
    background: rgba(148, 163, 184, 0.16);
    border-color: rgba(148, 163, 184, 0.28);
}

.users-page .table {
    background: transparent;
    color: var(--color-text);
}

.users-page .table > :not(caption) > * > * {
    background-color: transparent;
    color: var(--color-text);
    border-color: var(--color-table-border);
}

.users-page .table-hover tbody tr:hover {
    background: rgba(148, 163, 184, 0.12);
}

body.theme-white .users-page .table-hover tbody tr:hover {
    background: rgba(148, 163, 184, 0.16);
}

.users-page .table tbody tr.table-active {
    background: rgba(96, 165, 250, 0.18);
}

body.theme-white .users-page .table tbody tr.table-active {
    background: rgba(96, 165, 250, 0.22);
}

.users-page .table tbody tr.table-primary {
    background: rgba(37, 99, 235, 0.22) !important;
}

body.theme-white .users-page .table tbody tr.table-primary {
    background: rgba(37, 99, 235, 0.18) !important;
}

.users-page .users-role {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.users-page .users-role--default {
    background: rgba(148, 163, 184, 0.22);
    color: var(--color-text);
}

body.theme-white .users-page .users-role--default {
    background: rgba(148, 163, 184, 0.18);
    color: #1f2937;
}

.users-page .users-role--superadmin {
    background: linear-gradient(135deg, rgba(250, 204, 21, 0.3), rgba(251, 191, 36, 0.18));
    color: #fde047;
}

body.theme-white .users-page .users-role--superadmin {
    background: linear-gradient(135deg, rgba(202, 138, 4, 0.18), rgba(251, 191, 36, 0.26));
    color: #92400e;
}

.users-page .badge {
    border-radius: 999px;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
}

.users-page .badge.users-badge {
    background: rgba(148, 163, 184, 0.2);
    color: var(--color-text);
}

.users-page .badge.users-badge-accent {
    background: rgba(37, 99, 235, 0.22);
    color: #60a5fa;
}

body.theme-white .users-page .badge.users-badge-accent {
    background: rgba(37, 99, 235, 0.12);
    color: #1d4ed8;
}

.users-page .badge.users-badge-success {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
}

body.theme-white .users-page .badge.users-badge-success {
    background: rgba(34, 197, 94, 0.16);
    color: #166534;
}

.users-page .badge.bg-primary-subtle {
    background: rgba(37, 99, 235, 0.22) !important;
    color: #60a5fa !important;
}

body.theme-white .users-page .badge.bg-primary-subtle {
    background: rgba(37, 99, 235, 0.12) !important;
    color: #1d4ed8 !important;
}

.users-page .badge.bg-primary {
    background: #2563eb !important;
    color: #ffffff !important;
}

.users-page .badge.bg-secondary {
    background: rgba(148, 163, 184, 0.22) !important;
    color: var(--color-text) !important;
}

body.theme-white .users-page .badge.bg-secondary {
    background: rgba(148, 163, 184, 0.18) !important;
    color: #1f2937 !important;
}

.users-page .badge.bg-warning {
    background: rgba(234, 179, 8, 0.24) !important;
    color: #fde047 !important;
}

body.theme-white .users-page .badge.bg-warning {
    background: rgba(234, 179, 8, 0.18) !important;
    color: #92400e !important;
}

.users-page .password-strength .progress {
    background: rgba(148, 163, 184, 0.22);
    border-radius: 999px;
    overflow: hidden;
}

body.theme-white .users-page .password-strength .progress {
    background: rgba(148, 163, 184, 0.26);
}

.users-page .password-strength .progress-bar {
    border-radius: 999px;
}

.users-page .password-strength ul li {
    color: var(--color-text-muted);
}

.users-page button[data-password-toggle] {
    color: var(--color-text);
}

body.theme-white .users-page button[data-password-toggle] {
    color: #1f2937;
}

body.theme-white .drop-zone {
    background: #f8fafc;
    border-color: rgba(148, 163, 184, 0.45);
}

body.theme-white .preview-card img {
    box-shadow: 0 12px 30px -24px rgba(37, 99, 235, 0.25);
}

body.theme-white .loader span {
    background: #2563eb;
}

.navbar-theme .dropdown-item.text-danger {
    color: #dc2626;
}

.navbar-theme .dropdown-menu {
    border-radius: 14px;
    color: var(--color-dropdown-link);
}

.navbar-theme .dropdown-divider {
    border-color: var(--color-border);
}

.navbar-theme .navbar-brand {
    color: var(--color-nav-link-hover) !important;
    font-weight: 600;
    letter-spacing: 0.04em;
}

/* Prompts manager */
.prompt-card {
    background: var(--color-card-bg);
    border: 1px solid var(--color-card-border);
    color: var(--color-text);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.prompt-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px -32px rgba(15, 23, 42, 0.35);
}

.prompt-card--summary {
    border-style: dashed;
}

.prompt-surface {
    background: var(--color-card-bg) !important;
    border-color: var(--color-card-border) !important;
    color: var(--color-text) !important;
}

.prompt-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.55rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--color-badge-muted);
    color: var(--color-text);
    opacity: 0.9;
}

.prompt-badge--inline {
    margin-top: 0.5rem;
}

.prompt-accordion-toggle {
    --bs-accordion-bg: var(--color-panel-bg);
    --bs-accordion-active-bg: var(--color-card-bg);
    --bs-accordion-active-color: var(--color-text);
    --bs-accordion-btn-focus-border-color: var(--color-border);
    --bs-accordion-btn-focus-box-shadow: none;
    --bs-accordion-btn-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23cbd5f5' viewBox='0 0 16 16'%3e%3cpath fill-rule='evenodd' d='M1.5 5.5l6 6 6-6h-12z'/%3e%3c/svg%3e");
    --bs-accordion-btn-active-icon: var(--bs-accordion-btn-icon);
    background: var(--color-panel-bg);
    color: var(--color-text);
    border-bottom: 1px solid var(--color-border-soft);
}

.prompt-accordion-toggle:not(.collapsed) {
    background: var(--color-card-bg);
    box-shadow: inset 0 -1px 0 var(--color-border-soft);
}

body.theme-white .prompt-accordion-toggle {
    --bs-accordion-btn-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%231f2937' viewBox='0 0 16 16'%3e%3cpath fill-rule='evenodd' d='M1.5 5.5l6 6 6-6h-12z'/%3e%3c/svg%3e");
}

.prompt-table {
    --prompt-table-hover: rgba(96, 165, 250, 0.12);
    --prompt-table-stripe: rgba(148, 163, 184, 0.12);
    color: var(--color-text);
}

.prompt-table thead th {
    background: var(--color-panel-bg);
    border-bottom: 1px solid var(--color-border);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: var(--color-text);
    opacity: 0.9;
}

.prompt-table tbody tr {
    background: var(--color-card-bg);
    border-bottom: 1px solid var(--color-border-soft);
}

.prompt-table tbody tr:nth-child(even) {
    background: var(--prompt-table-stripe);
}

.prompt-table tbody tr:hover {
    background: var(--prompt-table-hover);
}

.prompt-table tbody tr:last-child {
    border-bottom: none;
}

body.theme-white .prompt-table {
    --prompt-table-hover: rgba(37, 99, 235, 0.10);
    --prompt-table-stripe: rgba(148, 163, 184, 0.1);
}

body.theme-black .prompt-table,
body.theme-dark .prompt-table {
    --prompt-table-hover: rgba(59, 130, 246, 0.18);
    --prompt-table-stripe: rgba(148, 163, 184, 0.08);
}

.prompt-table td,
.prompt-table th {
    vertical-align: middle;
}

.prompt-detail-row {
    background: var(--color-panel-bg) !important;
}

.prompt-detail-row td {
    background: inherit !important;
}

.prompt-snippet {
    white-space: pre-wrap;
    word-break: break-word;
    font-family: var(--bs-font-monospace, 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace);
    font-size: 0.875rem;
    background: var(--color-card-bg);
    border: 1px solid var(--color-border-soft);
    border-radius: 12px;
    color: var(--color-text);
    padding: 1rem;
}

.prompt-modal {
    background: var(--color-card-bg);
    color: var(--color-text);
    border: 1px solid var(--color-card-border);
}

.prompt-modal .modal-header,
.prompt-modal .modal-footer {
    background: var(--color-panel-bg);
    border-color: var(--color-border-soft);
}

.prompt-modal .form-control,
.prompt-modal .form-select {
    background: var(--color-input-bg);
    border-color: var(--color-input-border);
    color: var(--color-text);
}

.prompt-modal .form-control:focus,
.prompt-modal .form-select:focus {
    border-color: var(--color-input-border-focus);
    box-shadow: 0 0 0 0.15rem rgba(37, 99, 235, 0.25);
}

.prompt-modal .btn-close {
    filter: invert(0.8);
}

.auth-theme-toggle {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

.auth-theme-toggle .btn-icon {
    width: 38px;
    height: 38px;
}

.language-switcher {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

.language-switcher--compact {
    margin-bottom: 0;
}

.language-switcher select {
    background: var(--color-input-bg);
    color: var(--color-text);
    border: 1px solid var(--color-input-border);
    border-radius: 6px;
    padding: 0.35rem 0.6rem;
    min-width: 150px;
}

.language-switcher select:focus {
    border-color: var(--color-input-border-focus);
    outline: none;
}

.language-switcher--compact select {
    min-width: 140px;
}

.preferences-section {
    display: flex;
    justify-content: center;
    padding: 1.2rem 0;
}

.preferences-card {
    width: min(720px, 100%);
    background: var(--color-panel-bg);
    border: 1px solid var(--color-border-soft);
    border-radius: 1rem;
    box-shadow: var(--shadow-card);
    padding: 0.95rem 1.1rem;
}

.preferences-card__header {
    margin-bottom: 0.9rem;
}

.preferences-card__title {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--color-text);
}

.preferences-card__subtitle {
    margin: 0;
    color: var(--color-text-muted);
}

.preferences-form {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.preferences-grid {
    display: grid;
    gap: 0.85rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.form-field label {
    font-weight: 600;
    color: var(--color-text);
}

.form-field select,
.form-field input[type="text"],
.form-field input[type="password"],
.form-field input[type="email"],
.form-field input[type="url"],
.form-field input[type="search"] {
    background: var(--color-input-bg);
    color: var(--color-text);
    border: 1px solid var(--color-input-border);
    border-radius: 10px;
    padding: 0.65rem 0.75rem;
    min-width: 220px;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field select:hover,
.form-field input[type="text"]:hover,
.form-field input[type="password"]:hover,
.form-field input[type="email"]:hover,
.form-field input[type="url"]:hover,
.form-field input[type="search"]:hover {
    border-color: var(--color-input-border-focus);
}

.form-field select:focus,
.form-field input[type="text"]:focus,
.form-field input[type="password"]:focus,
.form-field input[type="email"]:focus,
.form-field input[type="url"]:focus,
.form-field input[type="search"]:focus {
    border-color: var(--color-input-border-focus);
    background: var(--color-input-bg-focus);
    outline: none;
    box-shadow: 0 0 0 0.15rem rgba(37, 99, 235, 0.2);
}

.form-field input[type="text"]::placeholder,
.form-field input[type="password"]::placeholder,
.form-field input[type="email"]::placeholder,
.form-field input[type="url"]::placeholder,
.form-field input[type="search"]::placeholder {
    color: var(--color-text-muted);
}

.form-field select option {
    color: inherit;
    background-color: inherit;
}

body.theme-black .form-field select,
body.theme-black .form-field input[type="text"],
body.theme-black .form-field input[type="password"],
body.theme-black .form-field input[type="email"],
body.theme-black .form-field input[type="url"],
body.theme-black .form-field input[type="search"] {
    background: #11161f;
    color: #f5f7ff;
    border-color: rgba(255, 255, 255, 0.08);
}

body.theme-black .form-field select option {
    background-color: #11161f;
    color: #f5f7ff;
}

body.theme-white .form-field select,
body.theme-white .form-field input[type="text"],
body.theme-white .form-field input[type="password"],
body.theme-white .form-field input[type="email"],
body.theme-white .form-field input[type="url"],
body.theme-white .form-field input[type="search"] {
    background: #ffffff;
    color: #1f2933;
    border-color: rgba(31, 41, 51, 0.25);
}

body.theme-white .form-field select option {
    background-color: #ffffff;
    color: #1f2933;
}

.form-hint {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.preferences-actions {
    display: flex;
    justify-content: flex-end;
}

.users-section + .users-section {
    margin-top: 1.3rem;
}

.users-grid {
    display: grid;
    gap: 0.9rem;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.user-card {
    background: var(--color-panel-bg);
    border: 1px solid var(--color-border-soft);
    border-radius: 1rem;
    box-shadow: var(--shadow-card);
    padding: 0.95rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.user-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.user-card__title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
}

.user-status {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
}

.user-status--active {
    background: rgba(34, 197, 94, 0.12);
    color: #22c55e;
}

.user-status--suspended {
    background: rgba(248, 113, 113, 0.12);
    color: #f87171;
}

.users-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.users-toggle-form {
    display: inline-flex;
}

.users-toggle-form .btn-secondary {
    padding: 0.55rem 1rem;
}

.inline-form {
    display: inline-block;
}

.user-own-summary {
    margin-bottom: 0.9rem;
    color: var(--color-text-muted);
}

.user-own-summary p {
    margin: 0 0 0.35rem;
}

@media (max-width: 768px) {
    .preferences-card {
        padding: 0.9rem 1rem;
    }

    .preferences-form {
        gap: 0.8rem;
    }
}

body.theme-black .btn-primary {
    color: #f5f7ff;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

body.theme-white .btn-primary {
    color: #0f172a;
    background: linear-gradient(135deg, #eff6ff, #bfdbfe);
    box-shadow: 0 12px 30px -18px rgba(37, 99, 235, 0.25);
}

body.theme-black .btn-primary:hover {
    background: linear-gradient(135deg, #2563eb, #1e3a8a);
}

body.theme-white .btn-primary:hover {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
}

.profile-dashboard {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.profile-dashboard__header {
    background: linear-gradient(160deg, #0f172a, #111827 45%, #020617);
    border-radius: 1rem;
    padding: 1.1rem 1.25rem;
    color: #f8fafc;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    box-shadow: 0 22px 55px rgba(8, 47, 73, 0.45);
    border: 1px solid rgba(51, 65, 85, 0.45);
}

.profile-dashboard__title {
    font-size: 1.9rem;
    font-weight: 600;
    margin: 0;
    color: inherit;
}

.profile-dashboard__subtitle {
    margin: 0.35rem 0 0 0;
    color: rgba(248, 250, 252, 0.75);
    font-size: 0.95rem;
}

.profile-dashboard__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
}

.profile-dashboard__badges {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.6rem;
}

.profile-dashboard__action {
    border: 1px solid rgba(59, 130, 246, 0.5);
    background: rgba(37, 99, 235, 0.18);
    color: #bfdbfe;
    padding: 0.55rem 1.1rem;
    border-radius: 0.85rem;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.profile-dashboard__action:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.35);
}

.profile-dashboard__action.is-active {
    background: rgba(59, 130, 246, 0.35);
    border-color: rgba(147, 197, 253, 0.6);
}

.profile-dashboard__action-icon {
    font-size: 1rem;
    line-height: 1;
}

.profile-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.35);
    color: #f1f5f9;
}

.profile-badge--total {
    background: rgba(30, 64, 175, 0.25);
    border-color: rgba(96, 165, 250, 0.45);
}

.profile-badge--superadmin {
    background: rgba(22, 163, 74, 0.25);
    border-color: rgba(74, 222, 128, 0.45);
}

.profile-dashboard__layout {
    display: grid;
    grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr);
    gap: 0.9rem;
}

.profile-dashboard__layout.is-list-only {
    grid-template-columns: minmax(0, 1fr);
}

.profile-panel {
    background: rgba(15, 23, 42, 0.9);
    border-radius: 1rem;
    border: 1px solid rgba(30, 41, 59, 0.85);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.6);
    padding: 0.9rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.profile-panel--forms {
    gap: 0.9rem;
    position: sticky;
    top: 1.2rem;
    height: fit-content;
}

.profile-panel--forms[hidden] {
    display: none;
}

.profile-panel--list {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    gap: 0.9rem;
}

.profile-panel__search {
    position: relative;
}

.profile-search {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(2, 6, 23, 0.75);
    border: 1px solid rgba(51, 65, 85, 0.6);
    border-radius: 0.85rem;
    padding: 0.6rem 0.85rem;
    color: rgba(226, 232, 240, 0.75);
}

.profile-search__icon {
    font-size: 1rem;
}

.profile-search input {
    flex: 1;
    border: none;
    background: transparent;
    color: #f8fafc;
    font-size: 0.95rem;
    outline: none;
}

.profile-search input::placeholder {
    color: rgba(148, 163, 184, 0.65);
}

.profile-table-wrapper {
    border-radius: 0.85rem;
    overflow: hidden;
    background: var(--color-panel-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.profile-table {
    width: 100%;
    border-collapse: collapse;
    color: #f8fafc;
}

.profile-table thead {
    background: rgba(15, 23, 42, 0.9);
}

.profile-table th {
    text-align: left;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.6rem 0.9rem;
    color: rgba(148, 163, 184, 0.75);
}

.profile-table td {
    padding: 0.6rem 0.9rem;
    vertical-align: middle;
    border-top: 1px solid rgba(30, 41, 59, 0.6);
}

.profile-table__row {
    transition: background 0.2s ease, transform 0.2s ease;
}

.profile-table__row:hover {
    background: rgba(30, 64, 175, 0.15);
    transform: translateY(-1px);
}

.profile-table__row.is-current {
    background: rgba(37, 99, 235, 0.12);
}

.profile-table__row.is-inactive {
    opacity: 0.8;
}

.profile-table__row.is-selected {
    outline: 2px solid rgba(96, 165, 250, 0.55);
    outline-offset: -4px;
}

.profile-table__user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.profile-table__avatar {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #2563eb, #1e3a8a);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #f8fafc;
    text-transform: uppercase;
}

.profile-table__name {
    font-size: 1rem;
    font-weight: 600;
    display: block;
    color: #e2e8f0;
}

.profile-table__email {
    display: block;
    font-size: 0.85rem;
    color: rgba(148, 163, 184, 0.8);
}

.profile-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.4rem;
}

.profile-chip--role {
    background: rgba(51, 65, 85, 0.6);
    color: #e2e8f0;
    border: 1px solid rgba(71, 85, 105, 0.7);
}

.profile-chip--superadmin {
    background: rgba(234, 179, 8, 0.2);
    color: #facc15;
    border-color: rgba(250, 204, 21, 0.35);
}

.profile-chip--user {
    background: rgba(148, 163, 184, 0.2);
    color: #e2e8f0;
}

.profile-chip--current {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
}

.profile-chip--inactive {
    background: rgba(239, 68, 68, 0.18);
    color: #fca5a5;
}

.profile-table__actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.profile-table__actions-col {
    text-align: right;
}

.profile-table__button {
    border: 1px solid transparent;
    border-radius: 0.75rem;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
    background: rgba(17, 24, 39, 0.9);
    color: #cbd5f5;
}

.profile-table__button-icon {
    margin-right: 0.35rem;
    display: inline-flex;
    align-items: center;
}

.profile-table__button:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.25);
}

.profile-table__button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.profile-table__button--edit {
    border-color: rgba(59, 130, 246, 0.6);
    background: rgba(59, 130, 246, 0.15);
    color: #bfdbfe;
}

.profile-table__button--suspend {
    border-color: rgba(250, 204, 21, 0.55);
    background: rgba(250, 204, 21, 0.16);
    color: #fef3c7;
}

.profile-table__button--delete {
    border-color: rgba(248, 113, 113, 0.6);
    background: rgba(248, 113, 113, 0.12);
    color: #fecaca;
}

.profile-table__button--activate {
    border-color: rgba(34, 197, 94, 0.6);
    background: rgba(34, 197, 94, 0.15);
    color: #bbf7d0;
}

.profile-table__empty {
    text-align: center;
    padding: 1rem;
    color: rgba(148, 163, 184, 0.8);
}

.profile-form-card {
    background: linear-gradient(160deg, rgba(15, 23, 42, 0.95), rgba(12, 18, 32, 0.95));
    border-radius: 1rem;
    border: 1px solid rgba(51, 65, 85, 0.7);
    padding: 0.9rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.55);
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity 0.24s ease, transform 0.24s ease;
}


.profile-form-card.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.profile-form-card[hidden] {
    display: none;
}
.profile-form-card__header {
    border-bottom: 1px solid rgba(45, 55, 72, 0.6);
    padding-bottom: 0.7rem;
}

.profile-form-card__title {
    margin: 0;
    color: #e2e8f0;
    font-size: 1.2rem;
    font-weight: 600;
}

.profile-form-card__subtitle {
    margin: 0.4rem 0 0 0;
    color: rgba(148, 163, 184, 0.75);
    font-size: 0.9rem;
}

.profile-form-card__form {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.profile-form-card__group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.profile-form-card__group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(226, 232, 240, 0.9);
    letter-spacing: 0.02em;
}

.profile-form-card__group input,
.profile-form-card__group select {
    border: 1px solid rgba(71, 85, 105, 0.7);
    background: rgba(15, 23, 42, 0.85);
    color: #f8fafc;
    border-radius: 0.85rem;
    padding: 0.6rem 0.85rem;
    font-size: 0.95rem;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.profile-form-card__group input:focus,
.profile-form-card__group select:focus {
    outline: none;
    border-color: rgba(96, 165, 250, 0.75);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

.profile-form-card__password {
    position: relative;
    display: flex;
    align-items: center;
}

.profile-form-card__password input {
    padding-right: 3.75rem;
}

.profile-form-card__toggle {
    position: absolute;
    right: 0.75rem;
    border: none;
    background: none;
    color: rgba(148, 163, 184, 0.8);
    font-size: 0.8rem;
    cursor: pointer;
    font-weight: 600;
}

.profile-form-card__toggle.is-active {
    color: rgba(96, 165, 250, 0.9);
}

.profile-form-card__description {
    margin: 0;
    font-size: 0.8rem;
    color: rgba(148, 163, 184, 0.7);
}

.profile-form-card__hint {
    margin: 0;
    padding-left: 1.1rem;
    color: rgba(148, 163, 184, 0.65);
    font-size: 0.78rem;
    display: grid;
    gap: 0.2rem;
}

.profile-form-card__hint-item {
    transition: color 0.2s ease;
}

.profile-form-card__hint-item.is-valid {
    color: #22c55e;
}

.profile-form-card__status {
    position: absolute;
    right: 2.75rem;
    width: 1.25rem;
    height: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.profile-form-card__status.is-visible {
    opacity: 1;
    transform: scale(1);
}

.profile-form-card__status.is-success {
    color: #22c55e;
}

.profile-form-card__status.is-error {
    color: #f87171;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.profile-form-card__actions {
    display: flex;
    gap: 0.8rem;
    justify-content: flex-end;
    margin-top: 0.35rem;
}

.profile-form-card__submit {
    border: none;
    border-radius: 0.95rem;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.profile-form-card__submit--primary {
    background: linear-gradient(135deg, #3b82f6, #22d3ee);
    color: #0f172a;
    box-shadow: 0 16px 40px rgba(34, 211, 238, 0.35);
}

.profile-form-card__submit--primary:hover {
    transform: translateY(-1px);
}

.profile-form-card__submit--muted {
    background: rgba(30, 41, 59, 0.85);
    color: rgba(226, 232, 240, 0.75);
}

.profile-form-card__submit--muted:hover {
    transform: translateY(-1px);
}

@media (max-width: 1200px) {
    .profile-dashboard__layout {
        grid-template-columns: minmax(0, 1fr);
    }
    .profile-panel--forms {
        position: static;
    }
}

@media (max-width: 768px) {
    .profile-dashboard__header {
        flex-direction: column;
        gap: 1.25rem;
        align-items: flex-start;
    }
    .profile-dashboard__meta {
        align-items: flex-start;
    }
    .profile-dashboard__badges {
        align-items: flex-start;
    }
    .profile-table__actions {
        flex-direction: column;
        align-items: stretch;
    }
    .profile-table__actions-col {
        text-align: left;
    }
}

body.theme-white .profile-dashboard__header {
    background: linear-gradient(160deg, #e0f2fe, #bfdbfe);
    color: #0f172a;
    border-color: rgba(191, 219, 254, 0.8);
    box-shadow: 0 18px 40px rgba(59, 130, 246, 0.25);
}

body.theme-white .profile-dashboard__action {
    background: rgba(191, 219, 254, 0.65);
    border-color: rgba(96, 165, 250, 0.6);
    color: #1e3a8a;
}

body.theme-white .profile-dashboard__action.is-active {
    background: rgba(147, 197, 253, 0.85);
}

body.theme-white .profile-dashboard__subtitle {
    color: rgba(30, 41, 59, 0.75);
}

body.theme-white .profile-badge {
    color: #1e3a8a;
    background: rgba(191, 219, 254, 0.6);
    border-color: rgba(96, 165, 250, 0.55);
}

body.theme-white .profile-panel,
body.theme-white .profile-form-card {
    background: rgba(248, 250, 252, 0.95);
    border-color: rgba(148, 163, 184, 0.4);
    box-shadow: 0 18px 40px rgba(148, 163, 184, 0.25);
}

body.theme-white .profile-panel--list {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

body.theme-white .profile-panel--forms {
    background: rgba(248, 250, 252, 0.92);
}

body.theme-white .profile-search {
    background: rgba(241, 245, 249, 0.95);
    border-color: rgba(148, 163, 184, 0.4);
    color: rgba(71, 85, 105, 0.85);
}

body.theme-white .profile-search input {
    color: #0f172a;
}

body.theme-white .profile-search input::placeholder {
    color: rgba(100, 116, 139, 0.7);
}

body.theme-white .profile-table-wrapper {
    background: rgba(248, 250, 252, 0.96);
    border-color: rgba(203, 213, 225, 0.45);
}

body.theme-white .profile-table thead {
    background: rgba(226, 232, 240, 0.8);
}

body.theme-white .profile-table th {
    color: rgba(51, 65, 85, 0.75);
}

body.theme-white .profile-table td {
    border-top-color: rgba(203, 213, 225, 0.5);
    color: #0f172a;
}

body.theme-white .table-responsive {
    border-color: rgba(203, 213, 225, 0.45);
    background: rgba(248, 250, 252, 0.96);
}

body.theme-white .profile-table__button {
    background: rgba(226, 232, 240, 0.85);
    color: #1e40af;
}

body.theme-white .profile-table__button--edit {
    background: rgba(191, 219, 254, 0.9);
    color: #1e3a8a;
    border-color: rgba(96, 165, 250, 0.6);
}

body.theme-white .profile-table__button--suspend {
    background: rgba(254, 243, 199, 0.95);
    color: #b45309;
}

body.theme-white .profile-table__button--delete {
    background: rgba(254, 226, 226, 0.95);
    color: #b91c1c;
}

body.theme-white .profile-table__button--activate {
    background: rgba(209, 250, 229, 0.9);
    color: #047857;
}

body.theme-white .profile-chip--role {
    background: rgba(148, 163, 184, 0.2);
    color: #1e293b;
    border-color: rgba(148, 163, 184, 0.4);
}

body.theme-white .profile-form-card__group input,
body.theme-white .profile-form-card__group select {
    background: rgba(241, 245, 249, 0.95);
    border-color: rgba(148, 163, 184, 0.45);
    color: #0f172a;
}

body.theme-white .profile-form-card__toggle {
    color: rgba(71, 85, 105, 0.8);
}

