.btn-primary,
.btn-primary:focus {
    color: #fff;
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-primary:hover {
    color: #fff;
    background-color: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
}

.btn-primary:focus,
.btn-primary.focus {
    box-shadow: 0 0 0 0.2rem var(--color-primary-ring);
}

.btn-primary.disabled,
.btn-primary:disabled {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-primary:not(:disabled):not(.disabled):active,
.btn-primary:not(:disabled):not(.disabled).active,
.show > .btn-primary.dropdown-toggle {
    color: #fff;
    background-color: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
}

.btn-action {
    padding: 0.625rem 1.75rem;
    font-weight: 600;
    border-radius: 6px;
}

.btn-action-lg {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 6px;
}

.btn-brand {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
    border-radius: 11px;
    padding: 13px 22px;
    font-weight: 700;
    box-shadow: var(--shadow-primary);
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-brand:hover {
    background-color: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
    color: #fff;
    transform: translateY(-1px);
}

.btn-brand-secondary {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
    color: #fff;
    border-radius: 11px;
    padding: 13px 22px;
    font-weight: 700;
    box-shadow: var(--shadow-secondary);
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-brand-secondary:hover {
    background-color: var(--color-secondary-hover);
    border-color: var(--color-secondary-hover);
    color: #fff;
    transform: translateY(-1px);
}

.btn-icon-delete {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid var(--color-danger);
    border-radius: 8px;
    background-color: #fff;
    color: var(--color-danger);
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-icon-delete:hover {
    background-color: var(--color-danger);
    color: #fff;
    border-color: var(--color-danger);
}

.btn-icon-delete:focus {
    background-color: var(--color-danger-soft);
    color: var(--color-danger);
    box-shadow: 0 0 0 0.2rem var(--color-danger-soft);
}

.btn-icon-delete i {
    font-size: 1rem;
    line-height: 1;
    /* ti-trash sits 0.5px right of its advance-width center; pull back for optical centering. */
    position: relative;
    left: -0.5px;
}

.btn-icon-edit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid var(--border-line);
    border-radius: 8px;
    background-color: #fff;
    color: var(--fa-muted);
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-icon-edit:hover,
.btn-icon-edit:focus {
    background-color: var(--surface-bg-alt);
    border-color: var(--fa-muted);
    color: var(--fa-ink);
    box-shadow: none;
    outline: none;
}

.btn-icon-edit i {
    font-size: 1rem;
    line-height: 1;
}

/* Tema, DataTable içindeki .btn'lere metinli buton varsayımıyla padding,
   vertical-align ve ikon margin/font-size basar (style.min.css). Kare ikon
   butonlarında bunlar ikonu küçültüp merkezden kaydırır; aynı specificity ile
   (kaynak sırası gereği bu dosya kazanır) geri sıfırlanır. */
.dataTables_wrapper .dataTable .btn-icon-edit,
.dataTables_wrapper .dataTable .btn-icon-delete {
    padding: 0;
    vertical-align: middle;
}

.dataTables_wrapper .dataTable .btn-icon-edit i,
.dataTables_wrapper .dataTable .btn-icon-delete i {
    font-size: 1rem;
    margin-right: 0;
}

.badge-primary {
    color: #fff;
    background-color: var(--color-primary);
}

.badge-soft-success {
    background-color: var(--fa-success-soft-bg);
    color: var(--fa-success-soft-fg);
    font-weight: 700;
    padding: 0.5em 1em;
    border-radius: 50rem;
}

.badge-soft-warning {
    background-color: var(--fa-warning-soft-bg);
    color: var(--fa-warning-soft-fg);
    font-weight: 700;
    padding: 0.5em 1em;
    border-radius: 50rem;
}

.badge-soft-secondary {
    background-color: var(--fa-neutral-soft-bg);
    color: var(--fa-neutral-soft-fg);
    font-weight: 700;
    padding: 0.5em 1em;
    border-radius: 50rem;
}

.navbar.fixed-top {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.02) !important;
    border-bottom: 1px solid var(--fa-field-line);
    background: var(--fa-white);
}

.navbar .navbar-brand-wrapper {
    background: var(--fa-white);
    border-bottom: 1px solid var(--fa-field-line);
}

.navbar .navbar-brand-wrapper .brand-logo-mini .navbar-brand-text {
    color: var(--color-primary);
    font-weight: 800;
    font-size: 1.5rem;
}

#navbar-search-input {
    border-radius: 20px;
    background-color: var(--fa-field-bg);
    border: 1px solid transparent;
    padding-left: 1rem;
    color: #475569;
    transition: all 0.3s ease;
}

#navbar-search-input:focus {
    background-color: var(--fa-white);
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-ring);
}

#navbar-search-icon {
    border: none;
    background: transparent;
}

#navbar-search-icon i {
    color: var(--fa-muted-2);
}

.navbar-toggler {
    color: var(--fa-muted);
    transition: color 0.3s;
}

.navbar-toggler:hover {
    color: var(--color-primary);
}

.nav-profile-avatar {
    width: 38px !important;
    height: 38px !important;
    background-color: var(--color-primary) !important;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 4px 10px var(--color-primary-ring);
}

.navbar-dropdown {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
    padding: 0.5rem 0;
    margin-top: 10px;
}

.navbar-dropdown .dropdown-header {
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--fa-field-line);
}

.navbar-dropdown .dropdown-item {
    padding: 0.7rem 1.5rem;
    font-weight: 500;
    color: #475569;
    transition: all 0.2s;
}

.navbar-dropdown .dropdown-item:hover {
    background-color: var(--fa-field-bg);
    color: var(--color-primary);
}

.navbar-dropdown .dropdown-item i.text-primary {
    color: var(--color-primary) !important;
}

#sidebar {
    background-color: var(--fa-white);
    border-right: 1px solid var(--border-line);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.02);
}

.sidebar .nav {
    padding-top: 1rem;
}

.sidebar .nav .nav-item {
    margin-bottom: 0.3rem;
}

.sidebar .nav .nav-item .nav-link {
    border-radius: 11px;
    margin: 0 1rem;
    padding: 0.8rem 1.2rem;
    color: var(--fa-muted);
    transition: all 0.3s ease;
}

.sidebar .nav .nav-item .nav-link i.menu-icon {
    color: inherit;
    font-size: 1.1rem;
    margin-right: 1rem;
}

.sidebar .nav .nav-item .nav-link .menu-title {
    font-weight: 600;
    font-size: 0.9rem;
}

.sidebar .nav .nav-item:not(.active):hover .nav-link {
    background-color: var(--surface-bg-alt);
    color: var(--color-primary);
    transform: translateX(4px);
}

.sidebar .nav .nav-item:not(.active):hover .nav-link .menu-title,
.sidebar .nav .nav-item:not(.active):hover .nav-link i.menu-icon {
    color: var(--color-primary);
}

.sidebar .nav .nav-item.active .nav-link {
    background-color: var(--color-primary) !important;
    color: var(--fa-white) !important;
    box-shadow: var(--shadow-primary);
    font-weight: 700;
}

.sidebar .nav .nav-item.active .nav-link i.menu-icon {
    color: var(--fa-white) !important;
}

/* Navbar hamburger — boxed like the mockup. No `display` set on purpose, so
   SkyDash's responsive show/hide (display:none / d-lg-none) keeps working. */
.navbar .navbar-menu-wrapper .navbar-toggler {
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--border-line);
    border-radius: 10px;
    background-color: var(--fa-white);
    color: var(--text-strong);
}

.navbar .navbar-menu-wrapper .navbar-toggler:hover {
    background-color: var(--surface-bg-alt);
}

/* Center the glyph via the inner span (flex), so the button's `display`
   stays untouched and SkyDash's responsive show/hide keeps working. */
.navbar .navbar-menu-wrapper .navbar-toggler .icon-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: inherit;
}

.full-page-wrapper {
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background-color: var(--fa-line);
}

.login-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.login-left {
    flex: 1;
    background-color: var(--fa-line);
    display: none;
    align-items: center;
    justify-content: center;
}

@media (min-width: 992px) {
    .login-left {
        display: flex;
    }
}

.left-logo {
    max-width: 280px;
    height: auto;
    transition: transform 0.5s ease;
}

.left-logo:hover {
    transform: scale(1.05);
}

.login-right {
    flex: 1;
    background-color: var(--fa-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-form-light {
    width: 100%;
    max-width: 420px;
    background-color: var(--fa-white) !important;
    border: 1px solid var(--fa-line) !important;
    border-radius: 24px !important;
    box-shadow: var(--shadow-elevated) !important;
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

.form-heading {
    text-align: center;
    margin-bottom: 2.5rem;
}

.form-logo {
    max-width: 200px;
    height: auto;
}

.form-subtitle {
    display: block;
    margin-top: 0.6rem;
    color: var(--fa-muted);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.auth-form-light .form-control-lg {
    background-color: var(--fa-field-bg) !important;
    border: 1px solid var(--fa-field-line) !important;
    border-radius: var(--field-radius) !important;
    padding: 1.2rem 1.2rem !important;
    font-size: 0.95rem;
    color: var(--fa-ink-2) !important;
    transition: all 0.3s ease;
}

.auth-form-light .form-control-lg:focus {
    background-color: var(--fa-white) !important;
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 0 3px var(--color-primary-ring) !important;
}

.auth-form-light .form-control-lg::placeholder {
    color: var(--fa-muted-2) !important;
}

.auth-form-btn {
    background-color: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
    border-radius: var(--field-radius) !important;
    color: #fff !important;
    padding: 1rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px var(--color-primary-shadow) !important;
    transition: 0.3s ease !important;
}

.auth-form-btn:hover {
    background-color: var(--color-primary-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(2, 8, 110, 0.35) !important;
}

.auth-form-light .form-check-input {
    accent-color: var(--color-primary);
    width: 1.1em;
    height: 1.1em;
    cursor: pointer;
}

.custom-card {
    border: 1px solid var(--border-line);
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-card);
}

.card .card-title {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-heading);
    text-transform: none;
}

.card-title-lg {
    font-size: 1.25rem;
}

/* ============================================================
   Branded form modal (.fa-modal) — a Bootstrap modal restyled to match the app's
   confirmation dialog: rounded card, icon badge + title + subtitle, soft input, and a
   gray "Vazgeç" + brand action footer. Used by the category add/edit modals so every
   dialog shares one clean, consistent look.
   ============================================================ */
.fa-modal .modal-dialog {
    max-width: 440px;
}

.fa-modal .modal-content {
    border: none;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 40px 90px -30px rgba(10, 10, 10, 0.35);
}

.fa-modal-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px 26px 0;
}

.fa-modal-icon {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #EEF0FB;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.fa-modal-title {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--text-heading);
}

.fa-modal-subtitle {
    font-size: 12.5px;
    color: var(--fa-muted);
}

.fa-modal-body {
    padding: 20px 26px 4px;
}

.fa-modal-label {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--fa-ink-2);
    margin-bottom: 8px;
}

.fa-modal-input {
    width: 100%;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-heading);
    border: 1.5px solid var(--border-line);
    border-radius: 11px;
    padding: 13px 15px;
    background: var(--surface-bg);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.fa-modal-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-ring);
}

.fa-modal-input.is-invalid {
    border-color: var(--color-danger);
}

.fa-modal-foot {
    display: flex;
    justify-content: flex-end;
    gap: 11px;
    padding: 18px 26px 24px;
}

/* Blur the modal backdrop to match the confirmation dialog. Only the category
   Bootstrap modals use .modal-backdrop, so this stays scoped in practice. */
.modal-backdrop.show {
    opacity: 1;
    background-color: rgba(10, 10, 10, 0.5);
    backdrop-filter: blur(3px);
}

.form-control {
    border-radius: 10px;
    border: 1px solid var(--fa-field-line);
    background-color: var(--fa-field-bg);
    color: var(--fa-ink-2);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.form-control:focus {
    color: var(--fa-ink-2);
    background-color: var(--fa-white);
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-ring);
}

.form-control::placeholder {
    color: var(--fa-muted-2);
}

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

@media (min-width: 992px) {
    .modal-lg,
    .modal-xl {
        max-width: 640px;
    }
}

.modal-content {
    border: none;
    border-radius: var(--card-radius);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18);
}

.modal-header {
    border-bottom: 1px solid var(--border-line);
    padding: 1.25rem 1.5rem;
}

.modal-title {
    font-weight: 700;
    color: var(--text-strong);
}

.modal-body {
    padding: 1.5rem;
    max-height: 70vh;
    overflow-y: auto;
}

.modal-footer {
    border-top: 1px solid var(--border-line);
    padding: 1rem 1.5rem;
}

.upload-zone {
    position: relative;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 1.25rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: var(--color-primary);
    background-color: rgba(2, 8, 110, 0.04);
}

.upload-zone.has-image {
    width: auto;
    height: auto;
    max-width: 200px;
    padding: 0;
    border-style: solid;
    border-color: #dee2e6;
}

.upload-placeholder p,
.upload-placeholder small {
    display: none;
}

.upload-icon {
    font-size: 2rem;
    color: #adb5bd;
}

.upload-hint {
    margin-top: 0.375rem;
    font-size: 0.75rem;
    color: #adb5bd;
}

.preview-img {
    max-width: 100%;
    max-height: 150px;
    object-fit: contain;
    border-radius: 6px;
}

.remove-overlay {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
}

/* Collapsed (icon-only) sidebar flyout label. Background is the primary navy;
   force white text so it stays legible — otherwise the expanded-sidebar hover rule
   (.nav-item:hover .menu-title { color: primary }) tints it navy-on-navy = invisible. */
.sidebar-icon-only .sidebar .nav .nav-item .nav-link .menu-title {
    background: var(--color-primary) !important;
    color: var(--fa-white) !important;
}

.bg-primary {
    background-color: var(--color-primary) !important;
}

.bg-primary:focus,
a.bg-primary:hover,
button.bg-primary:focus,
button.bg-primary:hover {
    background-color: var(--color-primary-hover) !important;
}

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

.text-primary:focus,
a.text-primary:hover {
    color: var(--color-primary-hover) !important;
}

.border-primary {
    border-color: var(--color-primary) !important;
}

.btn-outline-primary {
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-outline-primary:hover,
.btn-outline-primary:not(:disabled):not(.disabled):active,
.show > .btn-outline-primary.dropdown-toggle {
    color: #fff;
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

/* ============================================================
   DataTables — global look (shared by every admin table).
   Token-based; no font-family here so icon fonts stay intact.
   Loaded after dataTables.bootstrap4.css → overrides win cleanly.
   ============================================================ */

/* Header */
table.dataTable thead th {
    background-color: var(--surface-bg);
    color: var(--fa-muted);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-line);
    border-top: none;
    padding: 1rem;
}

/* Body + hover */
table.dataTable tbody td {
    vertical-align: middle;
    padding: 1rem;
    color: var(--fa-muted);
    border-bottom: 1px solid var(--fa-bg-alt);
    font-size: var(--text-sm);
}

/* First column = primary title: bold + dark + slightly larger, consistent across every table */
table.dataTable tbody td:first-child {
    color: var(--text-heading);
    font-weight: 700;
    font-size: var(--text-md);
}

table.dataTable.table-hover tbody tr:hover td {
    background-color: var(--surface-bg);
}

/* The dom layout wraps controls in Bootstrap .row's that live inside the blade's
   .table-responsive (overflow-x:auto). Bootstrap's -15px row gutter overflows that
   scroll container → spurious horizontal scrollbar on mobile. Zero the gutter (and the
   matching col padding) so content alignment is unchanged but nothing overflows. */
.dataTables_wrapper > .row {
    margin-right: 0;
    margin-left: 0;
}

.dataTables_wrapper > .row > [class*="col-"] {
    padding-right: 0;
    padding-left: 0;
}

/* Top toolbar layout (matches the dom row/col split) */
.dataTables_wrapper .dt-toolbar-left,
.dataTables_wrapper .dt-toolbar-right {
    display: flex;
    align-items: center;
}

.dataTables_wrapper .dt-toolbar-right {
    justify-content: flex-end;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    margin: 0;
}

/* Inputs / selects + focus ring */
.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .custom-dt-select {
    border: 1.5px solid var(--border-line);
    border-radius: var(--field-radius);
    padding: 0.45rem 0.75rem;
    outline: none;
    background-color: var(--surface-bg);
    color: var(--text-body);
}

/* Page-size value shown dark + bold, like the mockup */
.dataTables_wrapper .dataTables_length select {
    color: var(--text-heading);
    font-weight: 700;
}

.dataTables_wrapper .dataTables_filter input:focus,
.dataTables_wrapper .dataTables_length select:focus,
.dataTables_wrapper .custom-dt-select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-ring);
}

/* Search box — magnifier icon (data-URI SVG, no markup needed) */
.dataTables_wrapper .dataTables_filter input {
    padding-left: 2.1rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 0.7rem center;
    background-size: 16px;
}

/* Selects — custom chevron */
.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .custom-dt-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 1.9rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.6rem center;
    background-size: 14px;
}

/* Category/module filter — wide enough that the chevron never overlaps the label */
.dataTables_wrapper .custom-dt-select {
    min-width: 11.25rem;
    color: var(--fa-muted);
}

/* ===== Filter dropdown (replaces the native <select> in the filter bar) =====
   The native select's popup is OS-drawn: it cannot be styled and long option
   labels overflow it. This widget (admin/js/dt-filter-dropdown.js) renders the
   same single-choice behavior in a styleable panel that wraps long labels. */
.dt-filter {
    position: relative;
    display: inline-block;
    margin-right: 0.75rem;
    vertical-align: middle;
}

.dt-filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 11.25rem;
    max-width: 19rem;
    border: 1.5px solid var(--border-line);
    border-radius: var(--field-radius);
    padding: 0.45rem 0.75rem;
    background-color: var(--surface-bg);
    color: var(--fa-muted);
    font-size: 0.875rem;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dt-filter-toggle:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-ring);
}

.dt-filter-label {
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
}

.dt-filter-chevron {
    flex: 0 0 auto;
    transition: transform 0.15s ease;
}

.dt-filter-toggle[aria-expanded="true"] .dt-filter-chevron {
    transform: rotate(180deg);
}

/* Aktif filtre: seçim yapıldığını kapalı halde de belli et */
.dt-filter.has-value .dt-filter-toggle {
    border-color: var(--color-primary);
    color: var(--color-primary);
    font-weight: 600;
}

.dt-filter-menu {
    /* fixed: .table-responsive / .dataTables_wrapper overflow'u menüyü kırpamasın
       diye viewport'a göre konumlanır; top/left/width açılışta JS ile atanır. */
    position: fixed;
    z-index: 1080;
    max-height: 20rem;
    overflow-y: auto;
    background-color: var(--surface-bg);
    border: 1px solid var(--border-line);
    border-radius: 12px;
    box-shadow: 0 18px 40px -18px rgba(10, 10, 10, 0.35);
    padding: 6px;
}

.dt-filter-option {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    width: 100%;
    text-align: left;
    border: 0;
    background: none;
    border-radius: 8px;
    padding: 0.5rem 0.65rem;
    font-size: 0.85rem;
    font-family: inherit;
    line-height: 1.45;
    color: var(--text-body);
    cursor: pointer;
}

.dt-filter-option + .dt-filter-option {
    margin-top: 2px;
}

.dt-filter-option:hover {
    background-color: var(--surface-bg-alt);
}

.dt-filter-option:focus {
    outline: none;
    background-color: var(--surface-bg-alt);
}

/* Uzun başlıklar panelden taşmak yerine satır sarar */
.dt-filter-option-text {
    white-space: normal;
    overflow-wrap: anywhere;
}

.dt-filter-check {
    flex: 0 0 auto;
    margin-top: 3px;
    visibility: hidden;
    color: var(--color-primary);
}

.dt-filter-option.is-selected {
    color: var(--color-primary);
    font-weight: 600;
    background-color: var(--color-primary-ring);
}

.dt-filter-option.is-selected .dt-filter-check {
    visibility: visible;
}

/* Sort arrows — single compact indicator right next to the header text (mockup style).
   The SkyDash template (style.min.css) draws two stacked themify-icon chevrons via
   .sorting:before/:after using a 3-class selector (.dataTables_wrapper .dataTable .sorting)
   and font-family: themify. Element selectors alone can't out-specify that, so we prefix
   every override with .dataTables_wrapper (matching its 3 classes, +1 element = higher
   specificity) and reset font-family off 'themify' so the unicode glyph renders.
   Disable the :before (up) chevron; repurpose :after as one inline glyph. */
.dataTables_wrapper table.dataTable > thead .sorting:before,
.dataTables_wrapper table.dataTable > thead .sorting_asc:before,
.dataTables_wrapper table.dataTable > thead .sorting_desc:before {
    content: none;
}

.dataTables_wrapper table.dataTable > thead th.sorting::after,
.dataTables_wrapper table.dataTable > thead th.sorting_asc::after,
.dataTables_wrapper table.dataTable > thead th.sorting_desc::after {
    position: static;
    right: auto;
    top: auto;
    bottom: auto;
    display: inline-block;
    margin-left: 0.4rem;
    font-family: inherit;
    font-size: 0.9em;
    line-height: inherit;
    opacity: 1;
}

.dataTables_wrapper table.dataTable > thead th.sorting::after {
    content: "↕";
    color: var(--fa-muted-2);
}

.dataTables_wrapper table.dataTable > thead th.sorting_asc::after {
    content: "↑";
    color: var(--color-primary);
}

.dataTables_wrapper table.dataTable > thead th.sorting_desc::after {
    content: "↓";
    color: var(--color-primary);
}

/* Pagination — pill buttons */
.dataTables_wrapper .pagination .page-item .page-link {
    border-radius: 8px;
    margin: 0 3px;
    color: var(--fa-muted);
    border: 1px solid transparent;
    background-color: transparent;
}

.dataTables_wrapper .pagination .page-item.active .page-link {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--fa-white);
    box-shadow: 0 2px 5px var(--color-primary-shadow);
}

.dataTables_wrapper .pagination .page-item.disabled .page-link {
    color: var(--fa-muted-2);
    opacity: 0.6;
}

/* Info + length text */
.dataTables_wrapper .dataTables_info {
    color: var(--fa-muted);
    font-size: var(--text-sm);
    padding-top: 0;
}

/* DataTables control labels ("Sayfada … göster" + "Ara:") — ONE source of truth.
   div-qualified to beat DataTables' own `div.dataTables_wrapper div.dataTables_* label
   { font-weight: normal }` (specificity 0,2,3) — otherwise our 600 silently loses. */
div.dataTables_wrapper div.dataTables_length label,
div.dataTables_wrapper div.dataTables_filter label {
    margin: 0;
    color: var(--fa-muted);
    font-size: var(--text-sm);
    font-weight: 600;
}

.dataTables_wrapper .dataTables_length select {
    margin: 0 0.5rem;
}

/* Filter label additionally lays "Ara:" + input out inline with a gap. */
div.dataTables_wrapper div.dataTables_filter label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/*
   Users list — avatar, count pill, plan/status badges (Kullanıcı Listesi).
*/
.user-count-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--color-primary);
    background: #eef0fb;
    padding: 9px 16px;
    border-radius: 20px;
    flex-shrink: 0;
}

.user-name-cell {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
}

.user-avatar-initials {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #eef0fb;
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
}

.user-name-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    /* Tema .table td'ye line-height:1 basar; ellipsis için gereken overflow:hidden
       o dar satır kutusunda g/p/y kuyruklarını kırpar. Kuyruklara yer aç. */
    line-height: 1.4;
}

.user-date {
    color: var(--color-primary);
    font-weight: 600;
}

.user-detail-cell {
    white-space: nowrap;
}

.user-row-chevron {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.42rem 0.8rem;
    border: 1.5px solid var(--color-primary);
    border-radius: 9px;
    background: #fff;
    color: var(--color-primary);
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1;
    transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.user-row-chevron:hover,
.user-row-chevron:focus {
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 6px 16px -8px var(--color-primary);
}

.badge-plan-subscription {
    background-color: #eef0fb;
    color: var(--color-primary);
    font-weight: 700;
    padding: 4px 11px;
    border-radius: 20px;
}

.badge-plan-free {
    background-color: #e4f4e3;
    color: var(--fa-green);
    font-weight: 700;
    padding: 4px 11px;
    border-radius: 20px;
}

.badge-plan-none {
    background-color: #ececea;
    color: var(--fa-muted);
    font-weight: 700;
    padding: 4px 11px;
    border-radius: 20px;
}

.badge-status-active {
    background-color: #e4f4e3;
    color: var(--fa-green);
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
}

.badge-status-suspended {
    background-color: #fdf1dd;
    color: #b06d09;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
}

.badge-status-passive {
    background-color: #ececea;
    color: var(--fa-muted);
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
}

.badge-status-active .badge-dot,
.badge-status-suspended .badge-dot,
.badge-status-passive .badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}

/* Ad Soyad artık 2. sütun (1. sütun seçim checkbox'ı); avatar hücresini sade tut */
.users-list-card table.dataTable tbody td:nth-child(2) {
    font-weight: inherit;
    font-size: inherit;
    color: inherit;
}

.users-list-card table.dataTable tbody td:nth-child(2) .user-name-text {
    color: var(--text-heading);
    font-weight: 700;
    font-size: var(--text-md);
}

/* ===== Toplu işlem seçimi (checkbox sütunu + aksiyon çubuğu) ===== */
.dt-check {
    width: 17px;
    height: 17px;
    margin: 0;
    accent-color: var(--color-primary);
    cursor: pointer;
    vertical-align: middle;
}

.dt-checkbox-col,
.user-select-cell {
    width: 44px;
    text-align: center;
}

.bulk-action-bar {
    /* Görünürlük .is-visible ile kontrol edilir (JS seçim sayısına göre açar).
       Varsayılan gizli; görünür olunca aşağı kayarak belirir. */
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
    padding: 0.7rem 1rem;
    background: #eef0fb;
    border: 1px solid #dfe3f7;
    border-radius: 12px;
}

.bulk-action-bar.is-visible {
    display: flex;
    /* Belirgin ease-in-out: hareket tüm süreye yayılır (öne yüklenmez), böylece
       giriş "yavaş ve kararlı" hissettirir. */
    animation: bulk-action-bar-in 0.55s cubic-bezier(0.45, 0, 0.15, 1);
}

@keyframes bulk-action-bar-in {
    from {
        opacity: 0;
        transform: translateY(-28px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .bulk-action-bar.is-visible {
        animation: none;
    }
}

.bulk-action-selected {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.bulk-action-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid #d2d7f0;
    border-radius: 8px;
    background: #fff;
    color: var(--color-primary);
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.bulk-action-clear:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.bulk-action-count {
    font-size: var(--text-sm);
    color: var(--color-primary);
    font-weight: 600;
}

.bulk-action-count strong {
    font-weight: 800;
}

.bulk-action-buttons {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
}

/* Kompakt aksiyon butonları — btn-brand/btn-danger geniş padding'ini daralt */
.bulk-action-btn {
    padding: 0.55rem 1rem;
    border-radius: 9px;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: none;
}

.bulk-action-btn:hover {
    transform: none;
}

/* Seçime uymayan abonelik butonu: görsel olarak pasif ama hover/tooltip için
   tıklanabilir kalır (native disabled tooltip göstermez); tıklama JS'te engellenir. */
.bulk-action-btn.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
}

.bulk-action-btn.is-disabled:hover,
.bulk-action-btn.is-disabled:focus {
    transform: none;
}

/* Toplu buton açıklaması — butonun altında açılan, tema diline uygun
   kaydırılabilir menü: kim etkilenir (tam liste) / neden pasif. */
.bulk-menu {
    position: fixed;
    z-index: 1090;
    width: 22rem;
    max-width: 92vw;
    background: var(--surface-bg);
    border: 1px solid var(--border-line);
    border-radius: var(--field-radius);
    box-shadow: 0 18px 42px -18px rgba(10, 10, 10, 0.35);
    overflow: hidden;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 0.14s ease, transform 0.14s ease;
}

.bulk-menu.is-visible {
    opacity: 1;
    transform: translateY(0);
    /* Liste kaydırılabilsin diye açıkken fare olaylarını alır */
    pointer-events: auto;
}

.bulk-menu-head {
    padding: 0.6rem 0.85rem;
    background: var(--surface-bg-alt);
    border-bottom: 1px solid var(--border-line);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-heading);
}

.bulk-menu-list {
    max-height: 12.5rem;
    overflow-y: auto;
    margin: 0;
    padding: 0.3rem;
    list-style: none;
}

.bulk-menu-list li {
    padding: 0.34rem 0.55rem;
    border-radius: 7px;
    font-size: 0.78rem;
    line-height: 1.4;
    color: var(--text-body);
    overflow-wrap: anywhere;
}

.bulk-menu-list li:nth-child(odd) {
    background: var(--surface-bg-alt);
}

.bulk-menu-foot {
    padding: 0.5rem 0.85rem;
    background: var(--surface-bg-alt);
    border-top: 1px solid var(--border-line);
    font-size: 0.72rem;
    line-height: 1.45;
    color: var(--text-muted);
}

/* Pasif buton açıklaması — liste yok, yalnızca gerekçe metni */
.bulk-menu-reason {
    padding: 0.65rem 0.85rem;
    font-size: 0.78rem;
    line-height: 1.45;
    color: var(--text-body);
}

.bulk-action-btn-warning {
    background-color: #f59e0b;
    border-color: #f59e0b;
    color: #fff;
}

.bulk-action-btn-warning:hover,
.bulk-action-btn-warning:focus {
    background-color: #d98207;
    border-color: #d98207;
    color: #fff;
}

/* Askıdan çıkar — askıya almanın (amber) tersi: onaylayıcı yeşil */
.bulk-action-btn-success {
    background-color: var(--fa-green);
    border-color: var(--fa-green);
    color: #fff;
}

.bulk-action-btn-success:hover,
.bulk-action-btn-success:focus {
    background-color: #0b6b06;
    border-color: #0b6b06;
    color: #fff;
}

/* Ücretsiz üyeliği iptal — nötr outline (solid amber suspend'den ayrışsın) */
.bulk-action-btn-outline {
    background-color: #fff;
    border: 1.5px solid #d6d6cd;
    color: var(--text-body);
}

.bulk-action-btn-outline:hover,
.bulk-action-btn-outline:focus {
    background-color: #fff7ea;
    border-color: #f59e0b;
    color: #b06d09;
}

/*
   User detail — profile + company/contact cards (Kullanıcı Detayı).
*/
.user-detail-page {
    max-width: 1180px;
    margin: 0 auto;
}

.user-detail-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.user-detail-breadcrumb {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--fa-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.user-detail-breadcrumb a {
    color: var(--fa-muted);
    text-decoration: none;
}

.user-detail-breadcrumb a:hover {
    color: var(--color-primary);
}

.user-detail-breadcrumb-sep {
    color: #cfcfc6;
}

.user-detail-breadcrumb-current {
    color: var(--color-primary);
}

.user-detail-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #2B2B2B;
    text-decoration: none;
    border: 1.5px solid var(--border-line);
    background: #fff;
    padding: 9px 16px;
    border-radius: 10px;
}

.user-detail-back-btn:hover {
    background: var(--surface-bg-alt);
    color: #2B2B2B;
    text-decoration: none;
}

.user-detail-suspended-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fdf1dd;
    border: 1px solid #f0dcb8;
    border-radius: 14px;
    padding: 14px 18px;
    margin-top: 18px;
    font-size: 13.5px;
    color: #8a5607;
    font-weight: 600;
}

.user-detail-suspended-banner svg {
    flex-shrink: 0;
    color: #b06d09;
}

.user-detail-profile-card {
    background: #fff;
    border: 1px solid var(--border-line);
    border-radius: 18px;
    box-shadow: 0 1px 2px rgba(10, 10, 10, 0.03);
    padding: 26px 30px;
    margin-top: 18px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.user-detail-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
    flex-shrink: 0;
}

.user-detail-profile-main {
    flex: 1;
    min-width: 220px;
}

.user-detail-profile-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.user-detail-name {
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-heading);
    margin: 0;
}

.user-detail-subtitle {
    font-size: 13.5px;
    color: var(--fa-muted);
    margin-top: 6px;
}

.user-detail-metrics {
    display: flex;
    gap: 26px;
    flex-wrap: wrap;
}

.user-detail-metric-label {
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #9a9a93;
}

.user-detail-metric-value {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--text-heading);
    margin-top: 4px;
}

.user-detail-info-card {
    background: #fff;
    border: 1px solid var(--border-line);
    border-radius: 18px;
    box-shadow: 0 1px 2px rgba(10, 10, 10, 0.03);
    overflow: hidden;
    margin-top: 0;
    max-width: none;
}

.user-detail-stack {
    display: flex;
    flex-direction: column;
    gap: 24px;
    flex: 1 1 560px;
    min-width: 0;
    max-width: none;
    margin-top: 0;
}

.user-detail-body {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 24px;
    align-items: flex-start;
}

.user-detail-aside {
    flex: 1 1 320px;
    max-width: 400px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.user-deleted-page {
    display: flex;
    justify-content: center;
}

.user-deleted-card {
    width: 100%;
    max-width: 1180px;
    background: #fff;
    border: 1px solid var(--border-line);
    border-radius: 18px;
    box-shadow: 0 1px 2px rgba(10, 10, 10, 0.03);
    padding: 72px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.user-deleted-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: #fbeeee;
    color: #c0392b;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-deleted-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-heading);
    margin: 20px 0 0;
}

.user-deleted-text {
    font-size: 13.5px;
    color: var(--fa-muted);
    margin: 8px 0 0;
    max-width: 420px;
    line-height: 1.6;
}

.user-deleted-btn {
    margin-top: 26px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    background: var(--color-primary);
    text-decoration: none;
    padding: 13px 24px;
    border-radius: 11px;
    box-shadow: 0 8px 20px -8px rgba(2, 8, 110, 0.7);
    transition: background 0.15s ease;
}

.user-deleted-btn:hover {
    color: #fff;
    background: var(--color-primary-hover);
    text-decoration: none;
}

.user-detail-toast {
    position: fixed;
    right: 28px;
    bottom: 28px;
    z-index: 1070;
    display: none;
    align-items: center;
    gap: 11px;
    background: #0A0A0A;
    color: #fff;
    font-size: 13.5px;
    font-weight: 600;
    padding: 14px 20px;
    border-radius: 12px;
    box-shadow: 0 20px 50px -12px rgba(10, 10, 10, 0.5);
    max-width: 420px;
    line-height: 1.45;
}

.user-detail-toast.is-visible {
    display: flex;
}

.user-detail-toast svg {
    flex-shrink: 0;
}

.user-action-overlay {
    position: fixed;
    inset: 0;
    z-index: 1060; /* navbar / fixed-top üstünde; cm-overlay ile aynı seviye */
    background: rgba(10, 10, 10, 0.5);
    backdrop-filter: blur(3px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.user-action-overlay.is-open {
    display: flex;
}

.user-action-card {
    width: 100%;
    max-width: 400px;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 40px 90px -30px rgba(10, 10, 10, 0.6);
    padding: 26px;
}

.user-action-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.user-action-badge {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.user-action-card-warn .user-action-badge {
    background: #fdf1dd;
    color: #b06d09;
}

.user-action-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-heading);
}

.user-action-text {
    font-size: 13px;
    color: var(--fa-muted);
    margin-top: 3px;
    line-height: 1.5;
}

.user-action-text strong {
    color: #2B2B2B;
    font-weight: 700;
}

.user-action-actions {
    display: flex;
    justify-content: flex-end;
    gap: 11px;
    margin-top: 22px;
}

.user-action-btn {
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 700;
    padding: 11px 18px;
    border-radius: 10px;
    cursor: pointer;
    border: none;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.user-action-btn-cancel {
    color: var(--fa-muted);
    background: #fff;
    border: 1.5px solid var(--border-line);
    padding: 11px 18px;
}

.user-action-btn-cancel:hover {
    background: var(--fa-bg-alt);
    color: #2B2B2B;
}

.user-action-btn-warn {
    color: #fff;
    background: #b06d09;
    padding: 11px 22px;
    box-shadow: 0 8px 20px -8px rgba(176, 109, 9, 0.5);
}

.user-action-btn-warn:hover {
    background: #9c6008;
}

.user-access-body {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.user-membership-body {
    padding: 20px 24px 24px;
}

.user-membership-title {
    font-size: 16px;
    font-weight: 800;
    color: #0a0a0a;
}

.user-membership-note {
    margin-top: 6px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--fa-green);
}

.user-membership-rows {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 18px;
}

.user-membership-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 13.5px;
}

.user-membership-row span {
    color: #6b6b66;
}

.user-membership-row strong {
    font-weight: 700;
    color: #0a0a0a;
    text-align: right;
}

.user-membership-btn {
    width: 100%;
    margin-top: 20px;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 700;
    padding: 12px 18px;
    border-radius: 10px;
    cursor: pointer;
}

.user-membership-btn-grant {
    color: #fff;
    background: var(--fa-green);
    border: none;
    box-shadow: 0 8px 20px -8px rgba(13, 124, 7, 0.6);
}

.user-membership-btn-grant:hover {
    background: #0b6a06;
    color: #fff;
}

.user-membership-btn-cancel {
    color: #c0392b;
    background: #fff;
    border: 1.5px solid #f0d6d6;
}

.user-membership-btn-cancel:hover {
    background: #fbeeee;
    color: #c0392b;
}

.user-access-block-divider {
    border-top: 1px solid #F2F2EC;
    padding-top: 20px;
}

.user-access-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #2B2B2B;
}

.user-access-desc {
    font-size: 12.5px;
    color: var(--fa-muted);
    line-height: 1.55;
    margin-top: 4px;
}

.user-access-btn {
    width: 100%;
    margin-top: 12px;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 700;
    background: #fff;
    padding: 11px 18px;
    border-radius: 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.user-access-btn-primary {
    color: var(--color-primary);
    border: 1.5px solid var(--color-primary);
}

.user-access-btn-primary:hover {
    background: #eef0fb;
}

.user-access-btn-warn {
    color: #b06d09;
    border: 1.5px solid #e3b96f;
}

.user-access-btn-warn:hover {
    background: #fdf1dd;
}

.user-access-btn-danger {
    color: #fff;
    background: #c0392b;
    border: none;
    padding: 12px 18px;
}

.user-access-btn-danger:hover {
    background: #a93226;
}

.user-danger-card {
    border-color: #f0d6d6;
}

.user-danger-card .user-detail-info-card-head,
.user-detail-info-card-head.user-danger-card-head {
    border-bottom-color: #f0d6d6;
    color: #c0392b;
}

.user-danger-body {
    padding: 20px 24px;
}

.user-action-card-lg {
    max-width: 440px;
    padding: 0;
}

.user-action-card-top {
    padding: 24px 26px 0;
}

.user-action-card-danger .user-action-badge {
    background: #fbeeee;
    color: #c0392b;
}

.user-action-title-lg {
    font-size: 17px;
    letter-spacing: -0.01em;
}

.user-action-subtitle {
    font-size: 12.5px;
    color: var(--fa-muted);
    margin-top: 2px;
}

.user-action-warning {
    background: #fbeeee;
    border: 1px solid #f0d6d6;
    border-radius: 12px;
    padding: 13px 15px;
    font-size: 12.5px;
    color: #8c2b20;
    line-height: 1.6;
    margin-top: 18px;
}

.user-action-field {
    padding: 18px 26px 4px;
}

.user-action-field label {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    color: #2B2B2B;
    margin-bottom: 8px;
}

.user-action-field label span {
    color: #c0392b;
}

.user-action-field input {
    width: 100%;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-heading);
    border: 1.5px solid var(--border-line);
    border-radius: 11px;
    padding: 13px 15px;
    background: #FAFAF7;
    outline: none;
}

.user-action-field input:focus {
    border-color: #c0392b;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(192, 57, 43, 0.1);
}

.user-action-actions-padded {
    padding: 18px 26px 24px;
    margin-top: 0;
}

.user-action-btn-danger {
    color: #fff;
    background: #c0392b;
    padding: 11px 22px;
}

.user-action-btn-danger:hover:not(:disabled) {
    background: #a93226;
}

.user-action-btn-danger:disabled {
    background: #e8b4b0;
    cursor: not-allowed;
    box-shadow: none;
}

.user-detail-info-card-head {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-line);
    font-size: 15px;
    font-weight: 800;
    color: var(--text-heading);
}

.user-detail-info-card-head-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.user-detail-pill {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    background: #eef0fb;
    color: var(--color-primary);
}

.user-detail-muted {
    font-size: 12.5px;
    color: var(--fa-muted);
    font-weight: 600;
}

.user-detail-card-body {
    padding: 22px 24px 24px;
}

.user-detail-empty {
    padding: 28px 24px;
    text-align: center;
    font-size: 13.5px;
    color: var(--fa-muted);
    font-weight: 600;
}

.user-detail-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 28px;
    padding: 22px 24px;
}

.user-detail-field-label {
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #9a9a93;
}

.user-detail-field-value {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--text-heading);
    margin-top: 5px;
}

.user-detail-field-email a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
}

.user-detail-field-email a:hover {
    color: var(--color-primary-hover);
}

.user-education-progress-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.user-education-progress-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--fa-muted);
}

.user-education-progress-percent {
    font-size: 21px;
    font-weight: 800;
    color: var(--color-primary);
}

.user-education-bar {
    height: 10px;
    border-radius: 20px;
    background: var(--surface-bg-alt);
    margin-top: 10px;
    overflow: hidden;
    display: flex;
}

.user-education-bar-completed {
    background: var(--color-primary);
    border-radius: 20px 0 0 20px;
    min-width: 0;
}

.user-education-bar-active {
    background: var(--fa-green);
    min-width: 0;
}

.user-education-legend {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 14px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--fa-muted);
}

.user-education-legend > div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-education-dot {
    width: 9px;
    height: 9px;
    border-radius: 3px;
    flex-shrink: 0;
}

.user-education-dot-completed { background: var(--color-primary); }
.user-education-dot-active { background: var(--fa-green); }
.user-education-dot-remaining { background: var(--border-line); }

.user-education-current {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #f4faf3;
    border: 1.5px solid #bfdebc;
    border-radius: 14px;
    padding: 16px 18px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.user-education-current-num {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 12px;
    background: var(--fa-green);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 800;
}

.user-education-current-main {
    flex: 1;
    min-width: 180px;
}

.user-education-current-eyebrow {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--fa-green);
}

.user-education-current-title {
    font-size: 14.5px;
    font-weight: 800;
    color: var(--text-heading);
    margin-top: 3px;
}

.user-education-current-meta {
    font-size: 12.5px;
    color: var(--fa-muted);
    font-weight: 600;
}

.user-education-map-label {
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #9a9a93;
    margin-top: 22px;
}

.user-education-map {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.user-education-tile {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12.5px;
    font-weight: 800;
    background: var(--surface-bg-alt);
    color: var(--fa-muted);
    border: 1px solid transparent;
}

.user-education-tile-completed {
    background: var(--color-primary);
    color: #fff;
}

.user-education-tile-in_progress {
    background: var(--fa-green);
    color: #fff;
    border: none;
    box-shadow: 0 0 0 4px rgba(13, 124, 7, 0.18);
}

.user-education-tile-available,
.user-education-tile-locked {
    background: var(--surface-bg-alt);
    color: var(--fa-muted);
}

.user-education-next {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    font-size: 13px;
    color: var(--fa-muted);
    font-weight: 600;
}

.user-education-next svg {
    color: var(--fa-green);
    flex-shrink: 0;
}

.user-education-next span {
    font-weight: 800;
    color: var(--text-heading);
}

.user-chat-table {
    width: 100%;
}

.user-chat-row {
    display: flex;
    align-items: center;
    padding: 13px 24px;
    border-bottom: 1px solid var(--surface-bg-alt);
    gap: 8px;
}

.user-chat-row:last-child {
    border-bottom: none;
}

.user-chat-row-head {
    padding: 12px 24px;
    border-bottom: 1px solid var(--border-line);
    background: var(--surface-bg);
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--fa-muted);
}

.user-chat-col-date {
    width: 110px;
    flex-shrink: 0;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-heading);
}

.user-chat-col-topic {
    flex: 1;
    min-width: 0;
    font-size: 13.5px;
    color: #2B2B2B;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-chat-col-messages,
.user-chat-col-duration {
    width: 90px;
    flex-shrink: 0;
    font-size: 13.5px;
    color: var(--fa-muted);
    text-align: right;
}

.user-chat-row-head .user-chat-col-date,
.user-chat-row-head .user-chat-col-topic,
.user-chat-row-head .user-chat-col-messages,
.user-chat-row-head .user-chat-col-duration {
    font-size: 11.5px;
    font-weight: 800;
    color: var(--fa-muted);
}

@media (max-width: 991.98px) {
    .user-detail-aside {
        max-width: none;
    }
}

@media (max-width: 575.98px) {
    .user-detail-info-grid {
        grid-template-columns: 1fr;
    }

    .user-chat-row {
        flex-wrap: wrap;
    }

    .user-chat-col-date,
    .user-chat-col-messages,
    .user-chat-col-duration {
        width: auto;
    }
}

