:root {
    --mbc-bluegreenflowrizon: #158f54;
    --mbc-bluegreenflowrizon-dark: #075c33;
    --mbc-blueflowrizon: #1775c8;
    --mbc-blueflowrizon-dark: #073b68;
    --mbc-bg: #0F1115;
    --mbc-bg-dark: #07080B;
    --mbc-panel: #141821;
    --mbc-panel-dark: #0A0D13;
    --mbc-border: #222222;
    --mbc-border-olive: #1A8167B6;
    --mbc-text: #E7EAF0;
    --mbc-muted: #7a808a;
    --mbc-user: #1B2230;
    --mbc-user-dark: #0F141D;
    --mbc-bot: #28af8dd7;
    --mbc-bot-dark: #28af8d6b;
    --mbc-danger: #EF4444;
    --mbc-danger-dark: #B91C1C;
    --mbc-dark: #07080B;
    --mbc-glass: rgba(245, 247, 250, 0.12);
    --mbc-glass-border: rgba(231, 234, 240, 0.18);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background:
        radial-gradient(circle at 50% 45%, rgba(21, 143, 84, 0.12), transparent 65%),
        radial-gradient(1px 1px at 16px 16px, rgba(255,255,255,0.04) 1px, transparent 0),
        linear-gradient(180deg, #0d1210 0%, #0a0d11 100%);
    background-size: 100%, 32px 32px, 100%;
    background-attachment: fixed;
    color: var(--mbc-text);
    line-height: 1.3;
    font-size:0.9rem;
}

a:not(.btn, .nav-item){
    color: var(--mbc-bluegreenflowrizon);
    font-style:italic;
}

.app-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background:
        radial-gradient(ellipse 120% 80% at 10% 20%, rgba(22, 163, 74, 0.18), transparent 55%),
        radial-gradient(ellipse 100% 70% at 85% 75%, rgba(37, 99, 235, 0.10), transparent 55%),
        radial-gradient(ellipse 80% 60% at 50% 110%, rgba(22, 163, 74, 0.08), transparent 50%),
        linear-gradient(165deg, #111714 0%, #0F1115 35%, #07080B 100%);
    border-right: 1px solid var(--mbc-border);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    overflow: visible;
}

.sidebar-header {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--mbc-blueflowrizon);
    margin: 0;
    text-align: center;
}

.sidebar-nav {
    flex: 1;
    padding: 0;
    overflow: visible;
    display: flex;
    flex-direction: column;
}

.sidebar-nav-scroll {
    overflow-y: auto;
    flex: 1;
}

.sidebar-notifications {
    padding: 0;
}

.sidebar-toggle.sidebar-toggle--mini i {
    font-size: 0.8rem;
}

.sidebar-toggle.sidebar-toggle--mini:hover {
    background: linear-gradient(135deg, var(--mbc-panel-dark) 0%, var(--mbc-bg) 100%);
    color: var(--mbc-text);
}

.sidebar-footer {
    padding: 0;
    border-top: 1px solid var(--mbc-border);
}

.sidebar-footer-bottom {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0rem 1rem;
}

body.sidebar-collapsed .sidebar-footer-bottom {
    justify-content: center;
}


body.sidebar-collapsed .sidebar {
    width: 76px;
}

body.sidebar-collapsed .main-content {
    margin-left: 76px;
}

body.sidebar-collapsed .nav-item span {
    display: none;
}

body.sidebar-collapsed .nav-item {
    padding-left: 0;
    padding-right: 0;
    justify-content: center;
}

body.sidebar-collapsed .sidebar-header {
    align-items: center;
}

body.sidebar-collapsed .sidebar-logo {
    font-size: 0.6rem;
    text-align: center;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    color: var(--mbc-text);
    text-decoration: none;
    transition: all 0.2s;
    gap: 0.75rem;
    position: relative;
}

.nav-item[type="submit"],
button.nav-item {
    width: 100%;
    background: none;
    border: 0;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.sidebar-footer form {
    margin: 0;
}

.nav-badge {
    margin-left: auto;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--mbc-bluegreenflowrizon) 0%, var(--mbc-bluegreenflowrizon-dark) 100%);
    color: white;
    font-weight: 700;
    font-size: 0.7rem;
    line-height: 1;
    border: 1px solid rgba(26, 129, 103, 0.35);
    white-space: nowrap;
}

.nav-badge--warning {
    background: rgba(var(--bs-warning-rgb), 0.95);
    border-color: rgba(var(--bs-warning-rgb), 0.45);
    color: #111;
}

.nav-item:hover {
    background: linear-gradient(135deg, var(--mbc-panel-dark) 0%, var(--mbc-bg) 100%);
    color: var(--mbc-text);
}

.nav-item.active {
    background: linear-gradient(135deg, var(--mbc-bluegreenflowrizon) 0%, var(--mbc-bluegreenflowrizon-dark) 100%);
    color: white;
}

.nav-item i {
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
}

.notifications-dropdown {
    padding: 0;
    border-radius: 10px;
    border: 1px solid var(--mbc-border);
    background: linear-gradient(135deg, var(--mbc-panel) 0%, var(--mbc-panel-dark) 100%);
    color: var(--mbc-text);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}

.notifications-dropdown .dropdown-item {
    color: var(--mbc-text);
}

.notifications-dropdown-header {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--mbc-border);
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    background: linear-gradient(135deg, var(--mbc-panel-dark) 0%, var(--mbc-bg) 100%);
}

.notifications-dropdown-title {
    font-weight: 800;
}

.notifications-dropdown-body {
    max-height: 320px;
    overflow: auto;
}

.notifications-dropdown-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--mbc-border);
}

.notifications-dropdown-item:last-child {
    border-bottom: 0;
}

.notifications-dropdown-item-title {
    font-weight: 700;
    margin-bottom: 0.15rem;
}

.notifications-dropdown-item-message {
    color: var(--mbc-text);
    opacity: 0.9;
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.notifications-dropdown-item-meta {
    color: var(--mbc-muted);
    font-size: 0.75rem;
}

.notifications-dropdown-footer {
    padding: 0.85rem 1rem;
    border-top: 1px solid var(--mbc-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    background: linear-gradient(135deg, var(--mbc-panel-dark) 0%, var(--mbc-bg) 100%);
}


body.sidebar-collapsed span.nav-badge {
    position: absolute;
    top: 0.2rem;
    right: 0.35rem;
    margin-left: 0;
    padding: 0.1rem 0.35rem;
    font-size: 0.6rem;
    border-radius: 999px;
    z-index: 2;
    display: block;
}

.main-content {
    flex: 1;
    margin-left: 260px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.app-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.35rem 2rem;
    background: linear-gradient(rgba(0,0,0,0.2) 0%, rgba(0,0,0,0) 100%);
    position: sticky;
    top: 0;
    z-index: 100;
}

.app-topbar-breadcrumb .breadcrumb {
    padding: 0;
    margin: 0;
    background: none;
    border: none;
}

.app-topbar-breadcrumb .breadcrumb-item,
.app-topbar-breadcrumb .breadcrumb-item.active {
    color: var(--mbc-muted);
    font-size: 0.8rem;
}

.app-topbar-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: var(--mbc-muted);
}

.app-topbar-breadcrumb a {
    color: var(--mbc-text);
    text-decoration: none;
}

.app-topbar-breadcrumb a:hover {
    text-decoration: underline;
}

.app-topbar-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.app-topbar-action {
    position: relative;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: none;
    background: transparent !important;
    color: var(--mbc-muted) !important;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s, background 0.2s;
}

.app-topbar-action:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    color: var(--mbc-text) !important;
}

.app-topbar-action--active {
    background: rgba(21, 143, 84, 0.12) !important;
    color: var(--mbc-bluegreenflowrizon) !important;
}

.app-topbar-action .nav-badge {
    position: absolute;
    top: -0.3rem;
    right: -0.3rem;
    margin-left: 0;
}

/* ── Language switcher (dark theme) ── */
.app-lang-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.app-lang-switch::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 10px;
}

.app-lang-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: -4px;
    background: linear-gradient(135deg, var(--mbc-panel) 0%, var(--mbc-panel-dark) 100%);
    border: 1px solid var(--mbc-border);
    border-radius: 10px;
    padding: 0.4rem 0;
    min-width: 140px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 120;
}

.app-lang-menu::before {
    content: "";
    position: absolute;
    top: -5px;
    right: 14px;
    width: 9px;
    height: 9px;
    background: var(--mbc-panel);
    border-top: 1px solid var(--mbc-border);
    border-left: 1px solid var(--mbc-border);
    transform: rotate(45deg);
}

.app-lang-switch:hover .app-lang-menu,
.app-lang-switch:focus-within .app-lang-menu {
    display: block;
}

.app-lang-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.4rem 0.85rem;
    color: var(--mbc-muted);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
}

.app-lang-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--mbc-text);
}

.app-lang-item.is-active {
    color: var(--mbc-bluegreenflowrizon);
}

.app-lang-flag {
    width: 18px;
    height: 13px;
    display: inline-flex;
    border-radius: 2px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.app-lang-flag.is-fr {
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='22'%20height='16'%20viewBox='0%200%2022%2016'%3E%3Crect%20width='22'%20height='16'%20fill='%23FFFFFF'/%3E%3Crect%20x='0'%20y='0'%20width='7.3333'%20height='16'%20fill='%230055A4'/%3E%3Crect%20x='14.6667'%20y='0'%20width='7.3333'%20height='16'%20fill='%23EF4135'/%3E%3C/svg%3E");
    background-size: cover;
}

.app-lang-flag.is-en {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='30' viewBox='0 0 60 30'%3E%3CclipPath id='s'%3E%3Cpath d='M0,0 v30 h60 v-30 z'/%3E%3C/clipPath%3E%3CclipPath id='t'%3E%3Cpath d='M30,15 h30 v15 z v15 h-30 z h-30 v-15 z v-15 h30 z'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23s)'%3E%3Cpath d='M0,0 v30 h60 v-30 z' fill='%23012169'/%3E%3Cpath d='M0,0 L60,30 M60,0 L0,30' stroke='%23fff' stroke-width='6'/%3E%3Cpath d='M0,0 L60,30 M60,0 L0,30' clip-path='url(%23t)' stroke='%23C8102E' stroke-width='4'/%3E%3Cpath d='M30,0 v30 M0,15 h60' stroke='%23fff' stroke-width='10'/%3E%3Cpath d='M30,0 v30 M0,15 h60' stroke='%23C8102E' stroke-width='6'/%3E%3C/g%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #012169;
}

.content-top {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.page-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin: 0;
    color: var(--mbc-text);
}

.sidebar-toggle {
    width: 24px;
    height: 24px;
    background: transparent;
    border: none;
    color: var(--mbc-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 999px;
    padding: 0;
}

.sidebar-toggle:hover {
    background: linear-gradient(315deg, var(--mbc-bluegreenflowrizon) 0%, var(--mbc-bluegreenflowrizon-dark) 100%);
}

.sidebar-toggle i {
    font-size: 1.25rem;
}

.main-body {
    flex: 1;
    padding: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.main-body-content {
    flex: 1;
    padding: 2rem;
}

.auth-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.25rem;
    position: relative;
    overflow: hidden;
    background-image:
        radial-gradient(900px circle at 20% 10%, rgba(107, 125, 58, 0.25), transparent 55%),
        radial-gradient(800px circle at 80% 70%, rgba(107, 125, 58, 0.18), transparent 60%),
        url('/img/login/flowrizon_background.jpg');
    background-size: cover;
    background-position: center;
}

.auth-backdrop {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 17, 21, 0.78) 0%, rgba(15, 19, 27, 0.72) 60%, rgba(15, 17, 21, 0.86) 100%);
}

.auth-panel {
    width: 100%;
    max-width: 980px;
    min-height: 560px;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    z-index: 1;
    background-color: rgba(20, 24, 33, 0.55);
    border: 1px solid rgba(37, 48, 66, 0.7);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(12px);
}

.auth-panel-border-top {
    position: absolute;
    display: flex;
    align-items: first baseline;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--mbc-bluegreenflowrizon), var(--mbc-bluegreenflowrizon-dark), var(--mbc-blueflowrizon), var(--mbc-bluegreenflowrizon-dark), var(--mbc-bluegreenflowrizon));
    background-size: 200% 100%;
    animation: organicFlow 4s ease-in-out infinite;
    border-radius: 0;
}

@keyframes organicFlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.auth-panel-visual {
    position: relative;
    padding: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image:
        linear-gradient(135deg, rgba(107, 125, 58, 0.32) 0%, rgba(20, 24, 33, 0.10) 55%),
        url('/img/login/flowrizon_lotus.jpg');
    background-size: cover;
    background-position: center;
}

.auth-panel-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 17, 21, 0.15) 0%, rgba(15, 17, 21, 0.30) 85%, rgba(15, 17, 21, 0.80) 100%);
}

.auth-panel-form {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, var(--mbc-glass) 0%, rgba(245, 247, 250, 0.06) 100%);
    border-left: 1px solid var(--mbc-glass-border);
    backdrop-filter: blur(14px);
}

.auth-header {
    text-align: left;
    margin-bottom: 2rem;
    display:flex;
    justify-content: space-evenly !important;
}

.auth-logo-gif {
    position: relative;
    z-index: 1;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.auth-logo {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--mbc-text);
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: var(--mbc-muted);
    font-size:1.5rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

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

.auth-link {
    color: var(--mbc-bluegreenflowrizon);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
}

.auth-link:hover {
    text-decoration: underline;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: var(--mbc-text);
    font-weight: 500;
    font-size: 0.875rem;
}

.form-control {
    background: linear-gradient(135deg, var(--mbc-panel-dark) 0%, var(--mbc-bg) 100%);
    border: 1px solid var(--mbc-border);
    color: var(--mbc-text);
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.2s;
}

select.form-control,
.form-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 2.5rem;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23A9B1BF' d='M3.2 5.8a.75.75 0 0 1 1.06 0L8 9.55l3.74-3.75a.75.75 0 1 1 1.06 1.06l-4.27 4.27a.75.75 0 0 1-1.06 0L3.2 6.86a.75.75 0 0 1 0-1.06z'/%3E%3C/svg%3E"),
        linear-gradient(135deg, var(--mbc-panel-dark) 0%, var(--mbc-bg) 100%);
    background-repeat: no-repeat, no-repeat;
    background-position: right 1rem center, 0 0;
    background-size: 1rem 1rem, auto;
}

select.form-control option,
.form-select option {
    background: #1a1d26;
    color: var(--mbc-text);
}

select.form-control:focus,
.form-select:focus {
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23A9B1BF' d='M12.8 10.2a.75.75 0 0 1-1.06 0L8 6.45l-3.74 3.75a.75.75 0 0 1-1.06-1.06l4.27-4.27a.75.75 0 0 1 1.06 0l4.27 4.27a.75.75 0 0 1 0 1.06z'/%3E%3C/svg%3E"),
        linear-gradient(135deg, rgba(15, 17, 21, 0.55) 0%, rgba(15, 17, 21, 0.35) 100%);
    background-repeat: no-repeat, no-repeat;
    background-position: right 1rem center, 0 0;
    background-size: 1rem 1rem, auto;
}

.auth-panel-form .form-control {
    background-color: rgba(15, 17, 21, 0.55);
    border-color: rgba(37, 48, 66, 0.75);
}

.form-control:focus {
    outline: none;
    color: var(--mbc-bluegreenflowrizon);
    background: linear-gradient(135deg, var(--mbc-bg) 0%, var(--mbc-bg-dark) 100%);
}

.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-check-input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.form-check-label {
    color: var(--mbc-muted);
    font-size: 0.875rem;
    cursor: pointer;
}

.btn {
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    color: var(--mbc-text);
}

.btn:hover {
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.btn-primary {
    background: linear-gradient(135deg, rgba(21, 143, 84, 0.35) 0%, rgba(7, 92, 51, 0.25) 100%);
    border-color: rgba(21, 143, 84, 0.3);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, rgba(21, 143, 84, 0.55) 0%, rgba(7, 92, 51, 0.45) 100%);
    border-color: rgba(21, 143, 84, 0.5);
    color: white;
}

.btn-outline-primary {
    background: rgba(21, 143, 84, 0.06);
    color: var(--mbc-bluegreenflowrizon);
    border: 1px solid rgba(21, 143, 84, 0.25);
}

.btn-outline-primary:hover {
    background: rgba(21, 143, 84, 0.18);
    border-color: rgba(21, 143, 84, 0.45);
    color: white;
}

.btn.active {
    background: linear-gradient(135deg, var(--mbc-user) 0%, var(--mbc-user-dark) 100%);
    color: white;
    border-color: rgba(255, 255, 255, 0.1);
}

.btn-outline-secondary {
    background: rgba(255, 255, 255, 0.04);
    color: var(--mbc-muted);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-outline-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.14);
    color: var(--mbc-text);
}

.btn-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.35) 0%, rgba(5, 150, 105, 0.25) 100%);
    border-color: rgba(16, 185, 129, 0.3);
    color: white;
}

.btn-success:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.55) 0%, rgba(5, 150, 105, 0.45) 100%);
    border-color: rgba(16, 185, 129, 0.5);
}

.btn-danger:hover {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.55) 0%, rgba(185, 28, 28, 0.45) 100%);
    border-color: rgba(239, 68, 68, 0.5);
}

.btn-danger:disabled,
.btn-danger.disabled,
.btn-danger[disabled] {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.35) 0%, rgba(185, 28, 28, 0.25) 100%) !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
    color: white !important;
    opacity: 0.65;
    cursor: not-allowed;
    pointer-events: none;
}



.btn-outline-danger {
    background: rgba(239, 68, 68, 0.04);
    color: var(--mbc-danger);
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.btn-outline-danger:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.45);
    color: white;
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}


@media (max-width: 992px) {
    .auth-panel {
        grid-template-columns: 1fr;
        max-width: 560px;
        min-height: auto;
    }

    .auth-panel-visual {
        min-height: 220px;
    }

    .auth-panel-form {
        border-left: none;
        border-top: 1px solid var(--mbc-glass-border);
        padding: 2.25rem;
    }
}

@media (max-width: 480px) {
    .auth-shell {
        padding: 1.5rem 1rem;
    }

    .auth-panel-form {
        padding: 1.75rem;
    }

    .auth-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

.alert {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    border: 1px solid;
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.1);
    border-color: #10B981;
    color: #10B981;
}

.alert-danger, .alert-error {
    background-color: rgba(239, 68, 68, 0.1);
    border-color: var(--mbc-danger);
    color: var(--mbc-danger);
}

.alert-info {
    background-color: rgba(59, 130, 246, 0.1);
    border-color: #3B82F6;
    color: #3B82F6;
}

.alert-warning {
    background-color: rgba(245, 158, 11, 0.1);
    border-color: #F59E0B;
    color: #F59E0B;
}

.main-content h2 {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 1.25rem;
    padding: 0.85rem 3rem;
    color: var(--mbc-text);
    background: linear-gradient(160deg, rgba(23, 117, 200, 0.10) 0%, rgba(21, 143, 84, 0.05) 50%, rgba(255, 255, 255, 0.03) 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-left: 3px solid var(--mbc-blueflowrizon);
    border-radius: 20px 0px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    text-shadow: 0 2px 8px rgba(23, 117, 200, 0.25);
}

.main-content h3 {
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 0em;
    padding: 0.7rem 1rem;
    color: var(--mbc-text);
    background: linear-gradient(160deg, rgba(21, 143, 84, 0.10) 0%, rgba(23, 117, 200, 0.05) 50%, rgba(255, 255, 255, 0.03) 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-left: 3px solid var(--mbc-bluegreenflowrizon);
    border-radius: 16px 0px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    text-shadow: 0 2px 6px rgba(21, 143, 84, 0.2);
}

.welcome-section {
    margin-bottom: 2rem;
}

.welcome-section p {
    color: var(--mbc-muted);
    font-size: 0.9rem;
    margin: 0;
}

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

.text-success {
    color: #10B981;
}

.text-warning {
    color: #F59E0B;
}

.widget,
.app-widget,
.run-card,
.dashboard-card {
    background: linear-gradient(160deg, rgba(20, 24, 33, 0.7) 0%, rgba(10, 13, 19, 0.5) 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-top-color: rgba(255, 255, 255, 0.10);
    border-left: 2px solid var(--mbc-bluegreenflowrizon);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.25s, border-color 0.35s, box-shadow 0.35s;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.04), inset 3px 0 18px -6px rgba(21, 143, 84, 0.15);
}

.widget:hover,
.app-widget:hover,
.run-card:hover,
.dashboard-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
    border-left-color: #34D399;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.06), inset 4px 0 24px -6px rgba(21, 143, 84, 0.25);
}

.widget-header {
    position: relative;
    padding: 1rem 1.5rem;
    border-bottom: none;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(90deg, rgba(21, 143, 84, 0.05) 0%, transparent 40%);
    box-shadow: none;
}

.widget-header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(21, 143, 84, 0.12) 0%, rgba(255, 255, 255, 0.04) 50%, transparent 100%);
}

.widget.module {
    border-left-color: var(--mbc-bluegreenflowrizon-dark);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.04), inset 3px 0 18px -6px rgba(7, 92, 51, 0.18);
}

.widget.module:hover {
    border-left-color: #6EE7B7;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.06), inset 4px 0 24px -6px rgba(7, 92, 51, 0.28);
}

.widget.module .widget-icon {
    color: #6EE7B7;
    border-color: rgba(7, 92, 51, 0.4);
}

.widget.module:hover .widget-icon {
    border-color: rgba(110, 231, 183, 0.5);
    box-shadow: 0 0 12px rgba(7, 92, 51, 0.25);
}

.widget.module .widget-header {
    background: linear-gradient(90deg, rgba(7, 92, 51, 0.06) 0%, transparent 40%);
}

.widget.module .widget-header::after {
    background: linear-gradient(90deg, rgba(7, 92, 51, 0.15) 0%, rgba(255, 255, 255, 0.04) 50%, transparent 100%);
}

.widget.public {
    border-left-color: var(--mbc-blueflowrizon);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.04), inset 3px 0 18px -6px rgba(23, 117, 200, 0.15);
}

.widget.public:hover {
    border-left-color: #60A5FA;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.06), inset 4px 0 24px -6px rgba(23, 117, 200, 0.25);
}

.widget.public .widget-icon {
    color: #60A5FA;
    border-color: rgba(23, 117, 200, 0.35);
}

.widget.public:hover .widget-icon {
    border-color: rgba(96, 165, 250, 0.5);
    box-shadow: 0 0 12px rgba(23, 117, 200, 0.2);
}

.widget.public .widget-header {
    background: linear-gradient(90deg, rgba(23, 117, 200, 0.06) 0%, transparent 40%);
}

.widget.public .widget-header::after {
    background: linear-gradient(90deg, rgba(23, 117, 200, 0.12) 0%, rgba(255, 255, 255, 0.04) 50%, transparent 100%);
}

.widget-header-left {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.widget-badge {
    margin-left: auto;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
    background: rgba(245, 158, 11, 0.9);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #111;
}

.widget-meta {
    color: var(--mbc-muted);
    font-size: 0.78rem;
    margin-left: auto;
    white-space: nowrap;
}

.widget-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
    color: #34D399;
    background: transparent;
    border: 1.5px solid rgba(21, 143, 84, 0.35);
    filter: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.widget:hover .widget-icon {
    border-color: rgba(52, 211, 153, 0.5);
    box-shadow: 0 0 12px rgba(21, 143, 84, 0.2);
}

.widget-title {
    margin: 0;
    color: var(--mbc-text);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.widget-body {
    padding: 1.25rem 1.5rem;
    flex: 1 1 auto;
}

.widget-description {
    color: var(--mbc-muted);
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.6;
}

.widget-footer {
    position: relative;
    padding: 0.75rem 1.5rem;
    background: transparent;
    border-top: none;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.75rem;
}

.widget-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 1.5rem;
    right: 1.5rem;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.08) 30%, rgba(255, 255, 255, 0.08) 70%, transparent 100%);
}

.widget-footer .btn,
.widget-footer a.btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: var(--mbc-text);
    transition: all 0.2s;
}

.widget-footer .btn-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.35) 0%, rgba(185, 28, 28, 0.25) 100%);
    border-color: rgba(239, 68, 68, 0.3);
    color: white;
}

.widget-footer .btn:hover,
.widget-footer a.btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.widget-footer .btn-primary,
.widget-footer a.btn-primary {
    background: linear-gradient(135deg, rgba(21, 143, 84, 0.35) 0%, rgba(7, 92, 51, 0.25) 100%);
    border-color: rgba(21, 143, 84, 0.3);
}

.widget-footer .btn-primary:hover,
.widget-footer a.btn-primary:hover {
    background: linear-gradient(135deg, rgba(21, 143, 84, 0.5) 0%, rgba(7, 92, 51, 0.4) 100%);
    border-color: rgba(21, 143, 84, 0.5);
}

 .app-confirm-modal {
     position: fixed;
     inset: 0;
     z-index: 2000;
     display: none;
 }

 .app-confirm-modal.is-open {
     display: block;
 }

 .app-confirm-modal__backdrop {
     position: absolute;
     inset: 0;
     background: rgba(0, 0, 0, 0.65);
 }

 .app-confirm-modal__dialog {
     position: relative;
     margin: 10vh auto 0 auto;
     width: min(560px, calc(100% - 2rem));
     background: linear-gradient(45deg, var(--mbc-panel) 0%, var(--mbc-panel-dark) 100%);
     border: 1px solid var(--mbc-border);
     border-radius: 10px;
     overflow: hidden;
     box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
 }

 .app-confirm-modal__header {
     display: flex;
     align-items: center;
     justify-content: space-between;
     gap: 1rem;
     padding: 0.8rem 1rem;
     border-bottom: 1px solid var(--mbc-border);
     background: linear-gradient(135deg, var(--mbc-panel-dark) 0%, var(--mbc-bg) 100%);
 }

 .app-confirm-modal__title {
     color: var(--mbc-text);
     font-weight: 700;
 }

 .app-confirm-modal__close {
     border: 0;
     background: transparent;
     color: var(--mbc-text);
     padding: 0.25rem 0.5rem;
     line-height: 1;
 }

 .app-confirm-modal__body {
     padding: 1rem;
     color: var(--mbc-text);
 }

 .app-confirm-modal__footer {
     padding: 0.9rem 1rem;
     display: flex;
     justify-content: flex-end;
     gap: 0.5rem;
     border-top: 1px solid var(--mbc-border);
     background: linear-gradient(135deg, var(--mbc-panel-dark) 0%, var(--mbc-bg) 100%);
 }

.catalog-widget-footer {
    justify-content: space-between;
    align-items: flex-end;
    gap: 0.75rem;
}

.catalog-price-tag {
    background: linear-gradient(135deg, var(--mbc-user) 0%, var(--mbc-user-dark) 100%);
    border: 1px solid var(--mbc-border);
    border-radius: 10px;
    padding: 0.5rem 0.75rem;
    min-width: 110px;
}

.catalog-price-value {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1;
    color: var(--mbc-text);
    display: inline-block;
}

.catalog-price-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--mbc-muted);
    display: inline-block;
    margin-top:-20px;
}

.run-header,
.card-header,
.auth-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--mbc-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.run-body,
.card-body,
.auth-body {
    padding: 1.5rem;
}

.run-config, .run-webhook {
    margin-bottom: 1rem;
}

.run-config pre {
    background: linear-gradient(135deg, var(--mbc-panel-dark) 0%, var(--mbc-bg) 100%);
    padding: 1rem;
    border-radius: 4px;
    overflow-x: auto;
    margin-top: 0.5rem;
}

.run-footer,
.card-footer,
.auth-footer {
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--mbc-panel-dark) 0%, var(--mbc-bg) 100%);
    display: flex;
    gap: 0.75rem;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--mbc-muted);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.form-container {
    max-width: 100%;
}

.standard-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-text {
    color: var(--mbc-muted);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.help-archive {
    margin-top: 1.5rem;
    border: 1px solid var(--mbc-border);
    border-radius: 8px;
    background: linear-gradient(135deg, var(--mbc-panel) 0%, var(--mbc-panel-dark) 100%);
    overflow: hidden;
}

.help-archive > div {
    padding:0 1rem;
}

.help-archive-summary {
    padding: 1rem 1.5rem;
    cursor: pointer;
    user-select: none;
    color: var(--mbc-text);
    border-bottom: 1px solid var(--mbc-border);
    background: linear-gradient(135deg, var(--mbc-panel-dark) 0%, var(--mbc-bg) 100%);
}

/* ── Help Detail – Actions bar ── */
.help-detail-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.help-detail-actions-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ── Help Detail – Badges ── */
.help-detail-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.help-badge {
    display: inline-block;
    padding: 0.1rem 0.55rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.help-badge--type-bug       { background: rgba(239, 68, 68, 0.18); color: #F87171; }
.help-badge--type-access    { background: rgba(59, 130, 246, 0.18); color: #60A5FA; }
.help-badge--type-question  { background: rgba(6, 182, 212, 0.18); color: #22D3EE; }
.help-badge--type-feature   { background: rgba(21, 143, 84, 0.18); color: #34D399; }

.help-badge--urgency-low    { background: rgba(107, 114, 128, 0.18); color: #9CA3AF; }
.help-badge--urgency-medium { background: rgba(245, 158, 11, 0.18); color: #FBBF24; }
.help-badge--urgency-high   { background: rgba(239, 68, 68, 0.22); color: #F87171; }

/* ── Help Detail – Info grid ── */
.help-detail-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding: 1rem;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.help-detail-info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
}

.help-detail-info-item > i {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
    background: rgba(21, 143, 84, 0.10);
    color: #34D399;
    margin-top: 0.1rem;
}

.help-detail-info-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--mbc-muted);
    line-height: 1.2;
}

.help-detail-info-value {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--mbc-text);
    line-height: 1.4;
}

/* ── Help Detail – Section labels ── */
.help-detail-section-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--mbc-muted);
    margin-bottom: 0.65rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* ── Help Detail – Attachments ── */
.help-detail-attachments {
    margin-bottom: 1.25rem;
}

.help-detail-attachment-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.help-detail-attachment-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.82rem;
    transition: border-color 0.15s, background 0.15s;
}

.help-detail-attachment-chip:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.14);
}

.help-detail-attachment-chip a {
    color: var(--mbc-text) !important;
    text-decoration: none;
    font-style: normal !important;
}

.help-detail-attachment-chip .help-attachment-action {
    opacity: 0;
    transition: opacity 0.15s;
}

.help-detail-attachment-chip:hover .help-attachment-action {
    opacity: 1;
    pointer-events: auto;
}

/* ── Compact KPI Strip (shared with admin) ── */
.adm-kpi-strip--compact {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.adm-kpi-strip--compact .adm-kpi {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0.85rem;
    border-radius: 8px;
    background: linear-gradient(160deg, rgba(20, 24, 33, 0.7) 0%, rgba(10, 13, 19, 0.5) 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--mbc-text);
    flex: 1 1 0;
    min-width: 0;
}

.adm-kpi-strip--compact .adm-kpi--alert {
    border-color: rgba(245, 158, 11, 0.3);
    background: linear-gradient(160deg, rgba(245, 158, 11, 0.08) 0%, rgba(10, 13, 19, 0.5) 100%);
}

.adm-kpi-strip--compact .adm-kpi--info {
    border-color: rgba(59, 130, 246, 0.25);
    background: linear-gradient(160deg, rgba(59, 130, 246, 0.06) 0%, rgba(10, 13, 19, 0.5) 100%);
}

.adm-kpi-strip--compact .adm-kpi__icon {
    width: 30px;
    height: 30px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.05);
    color: var(--mbc-muted);
    flex-shrink: 0;
}

.adm-kpi-strip--compact .adm-kpi__icon--green { background: rgba(21, 143, 84, 0.15); color: var(--mbc-bluegreenflowrizon); }
.adm-kpi-strip--compact .adm-kpi__icon--warn  { background: rgba(245, 158, 11, 0.15); color: #F59E0B; }
.adm-kpi-strip--compact .adm-kpi__icon--blue  { background: rgba(59, 130, 246, 0.15); color: #3B82F6; }
.adm-kpi-strip--compact .adm-kpi__icon--red   { background: rgba(239, 68, 68, 0.15); color: #F87171; }

.adm-kpi-strip--compact .adm-kpi__data {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.adm-kpi-strip--compact .adm-kpi__value {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.1;
}

.adm-kpi-strip--compact .adm-kpi__label {
    font-size: 0.62rem;
    color: var(--mbc-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Help Detail – Collapsible Admin Tools ── */
.help-admin-tools {
    margin-top: 1rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: linear-gradient(135deg, rgba(21, 143, 84, 0.04) 0%, rgba(99, 102, 241, 0.03) 100%);
    overflow: hidden;
}

.help-admin-tools__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    padding: 0.6rem 0.85rem;
    gap: 0.75rem;
    transition: background 0.15s;
}

.help-admin-tools__summary:hover {
    background: rgba(255, 255, 255, 0.02);
}

.help-admin-tools__left {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
    flex: 1;
}

.help-admin-tools__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(21, 143, 84, 0.15), rgba(99, 102, 241, 0.10));
    color: var(--mbc-bluegreenflowrizon, #158F54);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.help-admin-tools__info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.help-admin-tools__title {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--mbc-text);
    letter-spacing: 0.01em;
}

.help-admin-tools__badges {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.help-admin-tools__assigned {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.68rem;
    font-weight: 600;
    color: #60a5fa;
    background: rgba(96, 165, 250, 0.10);
    border-radius: 4px;
    padding: 0.1rem 0.4rem;
}

.help-admin-tools__unassigned {
    font-size: 0.68rem;
    font-weight: 500;
    color: var(--mbc-muted);
    background: rgba(255, 255, 255, 0.04);
    border-radius: 4px;
    padding: 0.1rem 0.4rem;
}

.help-admin-tools__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: var(--mbc-muted);
    cursor: pointer;
    transition: all 0.15s;
    flex-shrink: 0;
}

.help-admin-tools__toggle:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--mbc-text);
    border-color: rgba(255, 255, 255, 0.14);
}

.help-admin-tools__chevron {
    font-size: 0.7rem;
    transition: transform 0.25s ease;
}

.help-admin-tools__body {
    padding: 0 0.85rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.help-admin-tools__row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding-top: 0.6rem;
}

.help-admin-tools__row:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    padding-bottom: 0.6rem;
}

.help-admin-tools__label {
    font-size: 0.78rem;
    color: var(--mbc-muted);
    font-weight: 600;
    min-width: 90px;
}

.help-detail-status-form {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* ── Help Detail – Reply area ── */
.help-detail-reply {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: linear-gradient(180deg, rgba(21, 143, 84, 0.03) 0%, transparent 100%);
}

.help-detail-reply-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.help-detail-reply-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.help-detail-reply-attach {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ── Legacy compat ── */
.help-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem 1.25rem;
    margin-bottom: 1.5rem;
}

.help-meta-item {
    color: var(--mbc-muted);
}

.help-meta-item strong {
    color: var(--mbc-text);
    margin-right: 0.25rem;
}

.help-status {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background-color: rgba(107, 125, 58, 0.18);
    border: 1px solid rgba(107, 125, 58, 0.35);
    color: var(--mbc-text);
    font-size: 0.85rem;
}

.help-status-form {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    margin-bottom: 1.5rem;
}

.help-thread {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
    border: 1px solid var(--mbc-border);
    border-radius: 8px;
    background: linear-gradient(135deg, var(--mbc-panel-dark) 0%, var(--mbc-bg) 100%);
}

.help-thread blockquote {
    margin: 0 0 1rem;
    border-left: 3px solid var(--mbc-border-olive);
    padding: 2px 5px;
}

.help-thread p {
    margin: 2px 0;
    padding: 0;
}

.help-message {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    max-width: 820px;
}

.help-message--me {
    margin-left: auto;
    align-items: flex-end;
}

.help-message--other {
    margin-right: auto;
    align-items: flex-start;
}

.help-message-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--mbc-muted);
    font-size: 0.8rem;
}

.help-message-bubble-row {
    display: flex;
    align-items: stretch;
    gap: 0.5rem;
}

.help-message-action--delete {
    display: flex;
    align-self: stretch;
}

.help-message-action--delete .btn {
    height: auto !important;
    min-height: 100% !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    padding: 0 0.75rem !important;
}

.help-message-action {
    display: inline-flex;
    align-items: center;
}

.help-message-action .btn {
    padding: 0.15rem 0.35rem;
    line-height: 1;
}

.help-message-action,
.help-attachment-action {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

.help-message:hover .help-message-action,
.help-message-attachment:hover .help-attachment-action,
.help-message-attachment:hover .help-attachment-action {
    opacity: 1;
    pointer-events: auto;
}

.help-message--other .help-message-bubble-row {
    flex-direction: row;
}

.help-message--other .help-message-action--delete {
    order: 2;
}

.help-message--me .help-message-bubble-row {
    flex-direction: row-reverse;
}

.help-message--me .help-message-action--delete {
    order: 2;
}

.help-message-attachment {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.help-message--me .help-message-attachment {
    flex-direction: row-reverse;
}

.help-message--me .help-message-attachments {
    align-items: flex-end;
}

.help-message-author {
    color: var(--mbc-text);
    font-weight: 600;
}

.help-message-bubble {
    padding: 0.75rem 0.9rem;
    border-radius: 12px;
    border: 1px solid var(--mbc-border);
    background: linear-gradient(135deg, var(--mbc-user) 0%, var(--mbc-user-dark) 100%);
    color: var(--mbc-text);
    line-height: 1.55;
}

.help-message--me .help-message-bubble {
    background: linear-gradient(135deg, var(--mbc-bot) 0%, var(--mbc-bot-dark) 100%);
    border-color: rgba(107, 125, 58, 0.35);
}

.help-message--me .help-message-bubble a {
    color: var(--mbc-bg);
}

.help-message--me .help-message-bubble blockquote {
    border-left: 3px solid var(--mbc-border);
}

.auth-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.auth-card {
    background: linear-gradient(135deg, var(--mbc-panel) 0%, var(--mbc-panel-dark) 100%);
    border: 1px solid var(--mbc-border);
    border-radius: 8px;
    overflow: hidden;
}

.auth-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--mbc-border);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.auth-header i {
    font-size: 1.5rem;
    color: var(--mbc-bluegreenflowrizon);
}

.auth-header h4 {
    margin: 0;
    color: var(--mbc-text);
}

.auth-body {
    padding: 1.5rem;
}

.auth-footer {
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--mbc-panel-dark) 0%, var(--mbc-bg) 100%);
}

.account-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.account-card {
    background: linear-gradient(135deg, var(--mbc-panel) 0%, var(--mbc-panel-dark) 100%);
    border: 1px solid var(--mbc-border);
    border-radius: 8px;
    overflow: hidden;
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--mbc-border);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.card-header i {
    font-size: 1.5rem;
    color: var(--mbc-bluegreenflowrizon);
}

.card-header h4 {
    margin: 0;
    color: var(--mbc-text);
}

.card-body {
    padding: 1.5rem;
}

.card-body p {
    margin-bottom: 0.75rem;
    color: var(--mbc-muted);
}

.card-body strong {
    color: var(--mbc-text);
}

.card-footer {
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--mbc-panel-dark) 0%, var(--mbc-bg) 100%);
}

code {
    background: linear-gradient(135deg, var(--mbc-panel-dark) 0%, var(--mbc-bg) 100%);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: var(--mbc-bluegreenflowrizon);
}

.ck.ck-editor {
    color: var(--mbc-text);
}

.ck {
    --ck-color-base-background: var(--mbc-panel-dark);
    --ck-color-base-foreground: var(--mbc-text);
    --ck-color-base-border: var(--mbc-border);
    --ck-color-toolbar-background: var(--mbc-panel);
    --ck-color-toolbar-border: var(--mbc-border);
    --ck-color-text: var(--mbc-text);
    --ck-color-button-default-hover-background: rgba(255, 255, 255, 0.06);
    --ck-color-button-default-active-background: rgba(26, 129, 103, 0.18);
    --ck-color-button-default-active-shadow: rgba(26, 129, 103, 0.25);
    --ck-color-focus-border: var(--mbc-border-olive);
    --ck-focus-ring: 0 0 0 2px rgba(26, 129, 103, 0.25);
}

.ck.ck-editor__main > .ck-editor__editable,
.ck.ck-editor__main > .ck-editor__editable.ck-content {
    background: linear-gradient(135deg, var(--mbc-panel-dark) 0%, var(--mbc-bg) 100%) !important;
    border: 1px solid var(--mbc-border) !important;
    border-top: 0;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
    color: var(--mbc-text) !important;
    min-height: 240px;
    padding: 0.75rem 1rem;
}

.ck-content {
    background: linear-gradient(135deg, var(--mbc-panel-dark) 0%, var(--mbc-bg) 100%) !important;
    color: var(--mbc-text) !important;
}

.ck-powered-by,
.ck.ck-powered-by {
    display: none !important;
}

.ck.ck-editor__main > .ck-editor__editable.ck-focused {
    box-shadow: 0 0 0 2px rgba(26, 129, 103, 0.25);
    border-color: var(--mbc-border-olive);
}

.ck.ck-toolbar {
    background: linear-gradient(135deg, var(--mbc-panel) 0%, var(--mbc-panel-dark) 100%);
    border: 1px solid var(--mbc-border);
    border-bottom: 0;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
}

.ck.ck-toolbar .ck-button,
.ck.ck-toolbar .ck-dropdown__button {
    color: var(--mbc-text);
}

.ck.ck-toolbar .ck-button:hover,
.ck.ck-toolbar .ck-dropdown__button:hover {
    background: rgba(255, 255, 255, 0.06);
}

.ck.ck-toolbar .ck-button.ck-on,
.ck.ck-toolbar .ck-dropdown__button.ck-on {
    background: rgba(26, 129, 103, 0.18);
    color: var(--mbc-bluegreenflowrizon);
}

.ck.ck-toolbar .ck-button:focus,
.ck.ck-toolbar .ck-dropdown__button:focus {
    box-shadow: 0 0 0 2px rgba(26, 129, 103, 0.25);
}

.ck.ck-editor__editable a {
    color: var(--mbc-bluegreenflowrizon);
    font-style: italic;
}

.ck.ck-editor__editable blockquote {
    border-left: 3px solid var(--mbc-border-olive);
    margin: 0.75rem 0;
    padding-left: 0.75rem;
    color: var(--mbc-muted);
}

.ck.ck-editor__editable pre {
    background: linear-gradient(135deg, var(--mbc-panel-dark) 0%, var(--mbc-bg) 100%);
    border: 1px solid var(--mbc-border);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    color: var(--mbc-text);
}

.ck.ck-editor__editable p {
    margin: 0 0 0.75rem 0;
}

/* ── Shared Table Styles (used by admin + non-admin pages) ── */
.admin-table {
    margin: 0;
    color: var(--mbc-text) !important;
    border-collapse: separate;
    border-spacing: 0;
    border: none;
}

.admin-table th,
.admin-table td {
    color: var(--mbc-text) !important;
    border: none;
    padding: 0.7rem 1rem;
    font-size: 0.82rem;
}

.admin-table thead tr:first-child th {
    background: transparent;
    padding: 0.6rem 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.admin-table thead tr:first-child th .form-control {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--mbc-text);
    border-radius: 6px;
    font-size: 0.78rem;
    padding: 0.35rem 0.65rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.admin-table thead tr:first-child th .form-control::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.admin-table thead tr:first-child th .form-control:focus {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(21, 143, 84, 0.4);
    box-shadow: 0 0 0 2px rgba(21, 143, 84, 0.12);
    outline: none;
}

.admin-table thead tr.admin-table-header-row th {
    padding: 0.65rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    font-weight: 600;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--mbc-muted) !important;
    user-select: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    white-space: nowrap;
}

.admin-table tbody td {
    background: transparent;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    vertical-align: middle;
    transition: background 0.15s;
}

.admin-table tbody tr:hover td {
    background: rgba(21, 143, 84, 0.06);
}

.admin-table a {
    color: var(--mbc-text) !important;
    transition: color 0.15s;
}

.admin-table a:hover {
    color: var(--mbc-bluegreenflowrizon) !important;
}

.admin-table-sortable {
    cursor: pointer;
    transition: color 0.15s;
}

.admin-table-sortable:hover {
    color: var(--mbc-text) !important;
}

.admin-table-sortable .admin-sort-indicator {
    margin-left: 0.3rem;
    opacity: 0.5;
    font-size: 0.65rem;
}

.admin-list-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: transparent;
}

.admin-list-toolbar .form-control {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--mbc-text);
    border-radius: 6px;
}

.admin-list-toolbar .form-control:focus {
    box-shadow: 0 0 0 2px rgba(21, 143, 84, 0.12);
    border-color: rgba(21, 143, 84, 0.4);
}

.admin-table-pagination {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    padding: 0.65rem 1rem;
    background: transparent;
    visibility: hidden;
}

.admin-table-pagination.is-visible {
    visibility: visible;
}

.admin-table-pagination__info {
    color: var(--mbc-muted);
    font-size: 0.8rem;
    letter-spacing: 0.02em;
}

.admin-table-pagination .btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--mbc-muted);
    font-size: 0.78rem;
    border-radius: 6px;
    transition: all 0.15s;
}

.admin-table-pagination .btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.14);
    color: var(--mbc-text);
}

.admin-bulk-actions {
    border-top: 1px solid rgba(21, 143, 84, 0.15);
    background: rgba(21, 143, 84, 0.04);
    padding: 0.5rem 1rem !important;
}

.admin-table .btn-sm {
    padding: 0.3rem 0.5rem;
    font-size: 0.78rem;
    border-radius: 6px;
}

.admin-table .btn-outline-primary {
    border-color: rgba(21, 143, 84, 0.3);
    color: var(--mbc-bluegreenflowrizon);
    background: rgba(21, 143, 84, 0.06);
}

.admin-table .btn-outline-primary:hover {
    background: rgba(21, 143, 84, 0.18);
    border-color: rgba(21, 143, 84, 0.5);
    color: #fff;
}

/* API Docs - Categories Premium */
#endpointsViewer .d-flex.align-items-center.justify-content-between {
    position: relative;
    padding: 1rem 1.25rem;
    margin-top: 2rem;
    margin-bottom: 0;
    background: linear-gradient(135deg, rgba(21, 143, 84, 0.08) 0%, rgba(21, 143, 84, 0.03) 100%);
    border: 1px solid rgba(21, 143, 84, 0.15);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

#endpointsViewer .d-flex.align-items-center.justify-content-between:hover {
    background: linear-gradient(135deg, rgba(21, 143, 84, 0.12) 0%, rgba(21, 143, 84, 0.05) 100%);
    border-color: rgba(21, 143, 84, 0.25);
    box-shadow: 0 4px 20px rgba(21, 143, 84, 0.15);
    transform: translateY(-1px);
}

#endpointsViewer .d-flex.align-items-center.justify-content-between::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--mbc-bluegreenflowrizon) 0%, rgba(21, 143, 84, 0.5) 100%);
    border-radius: 12px 0 0 12px;
}

#endpointsViewer .fw-semibold {
    font-size: 1rem;
    font-weight: 700;
    color: var(--mbc-text);
    letter-spacing: 0.02em;
}

#endpointsViewer .badge.bg-primary {
    background: linear-gradient(135deg, var(--mbc-bluegreenflowrizon) 0%, rgba(21, 143, 84, 0.8) 100%) !important;
    padding: 0.35rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(21, 143, 84, 0.3);
}

#endpointsViewer .toggle-category-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--mbc-muted);
    padding: 0.4rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.25s ease;
}

#endpointsViewer .toggle-category-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(21, 143, 84, 0.3);
    color: var(--mbc-bluegreenflowrizon);
    box-shadow: 0 2px 10px rgba(21, 143, 84, 0.2);
}

/* API Docs - Subcategories Premium */
.api-subcategory {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.api-subcategory-title {
    position: relative;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--mbc-bluegreenflowrizon);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.65rem 1.25rem;
    background: linear-gradient(135deg, rgba(21, 143, 84, 0.06) 0%, rgba(21, 143, 84, 0.02) 100%);
    border: 1px solid rgba(21, 143, 84, 0.12);
    border-radius: 8px;
    margin-bottom: 0.75rem;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    overflow: hidden;
}

.api-subcategory-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--mbc-bluegreenflowrizon) 0%, rgba(21, 143, 84, 0.4) 100%);
}

.api-subcategory-title::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(21, 143, 84, 0.3) 100%);
}

.api-subcategory:hover .api-subcategory-title {
    background: linear-gradient(135deg, rgba(21, 143, 84, 0.1) 0%, rgba(21, 143, 84, 0.04) 100%);
    border-color: rgba(21, 143, 84, 0.2);
    box-shadow: 0 2px 12px rgba(21, 143, 84, 0.1);
}

.admin-table .btn-outline-danger {
    border-color: rgba(239, 68, 68, 0.25);
    color: var(--mbc-danger);
    background: rgba(239, 68, 68, 0.04);
}

.admin-table .btn-outline-danger:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.45);
    color: #fff;
}

.admin-table thead [data-clear-filters] {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    color: var(--mbc-muted);
    font-size: 0.72rem;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.admin-table thead [data-clear-filters]:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--mbc-text);
}

@media (max-width: 768px) {
    .sidebar {
        width: 200px;
    }
    
    .main-content {
        margin-left: 200px;
    }
    
    .dashboard-grid,
    .apps-grid,
    .auth-grid,
    .account-grid {
        grid-template-columns: 1fr;
    }
}

/* ══════════════════════════════════════════════════
   User Dashboard – KPI, Feed, Nav, Guide
   ══════════════════════════════════════════════════ */
.dash-cmd {
    display: flex;
    flex-direction: column;
}

/* ── KPI Strip (user dashboard) ── */
.dash-kpi-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.adm-kpi {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1.25rem;
    border-radius: 10px;
    background: linear-gradient(160deg, rgba(20, 24, 33, 0.7) 0%, rgba(10, 13, 19, 0.5) 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    text-decoration: none;
    color: var(--mbc-text);
    transition: border-color 0.25s, box-shadow 0.25s;
    flex: 1 1 0;
    min-width: 0;
}

a.adm-kpi:hover {
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    color: var(--mbc-text);
}

.adm-kpi--alert {
    border-color: rgba(245, 158, 11, 0.3);
    background: linear-gradient(160deg, rgba(245, 158, 11, 0.08) 0%, rgba(10, 13, 19, 0.5) 100%);
}

.adm-kpi--info {
    border-color: rgba(59, 130, 246, 0.25);
    background: linear-gradient(160deg, rgba(59, 130, 246, 0.06) 0%, rgba(10, 13, 19, 0.5) 100%);
}

.adm-kpi__icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    background: rgba(255, 255, 255, 0.05);
    color: var(--mbc-muted);
    flex-shrink: 0;
}

.adm-kpi__icon--green { background: rgba(21, 143, 84, 0.15); color: var(--mbc-bluegreenflowrizon); }
.adm-kpi__icon--warn  { background: rgba(245, 158, 11, 0.15); color: #F59E0B; }
.adm-kpi__icon--blue  { background: rgba(59, 130, 246, 0.15); color: #3B82F6; }
.adm-kpi__icon--red   { background: rgba(239, 68, 68, 0.15); color: #F87171; }

.adm-kpi__data {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.adm-kpi__value {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.adm-kpi__label {
    font-size: 0.7rem;
    color: var(--mbc-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Feed (Notification Center) ── */
.adm-feed {
    margin-bottom: 1rem;
    border-radius: 10px;
    overflow: hidden;
    background: linear-gradient(160deg, rgba(20, 24, 33, 0.7) 0%, rgba(10, 13, 19, 0.5) 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.adm-feed__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1rem;
    font-weight: 700;
    font-size: 0.82rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.adm-feed__header-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.adm-feed__header--blue  { background: linear-gradient(135deg, rgba(23, 117, 200, 0.12) 0%, transparent 100%); color: #60A5FA; }
.adm-feed__header--green { background: linear-gradient(135deg, rgba(21, 143, 84, 0.12) 0%, transparent 100%); color: #34D399; }
.adm-feed__header--red   { background: linear-gradient(135deg, rgba(239, 68, 68, 0.10) 0%, transparent 100%); color: #F87171; }
.adm-feed__header--cyan  { background: linear-gradient(135deg, rgba(6, 182, 212, 0.10) 0%, transparent 100%); color: #22D3EE; }

.adm-feed__badge {
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.08);
    color: var(--mbc-text);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.adm-feed__badge--warn {
    background: rgba(245, 158, 11, 0.85);
    border-color: rgba(245, 158, 11, 0.4);
    color: #111;
}

.adm-feed__link {
    margin-left: auto;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--mbc-muted) !important;
    text-decoration: none;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: color 0.15s;
    font-style: normal !important;
}

.adm-feed__link:hover {
    color: var(--mbc-text) !important;
}

.adm-feed__body {
    display: flex;
    flex-direction: column;
}

.adm-feed__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: background 0.15s;
    text-decoration: none;
    color: var(--mbc-text);
    font-style: normal;
}

a.adm-feed__item:hover {
    background: rgba(21, 143, 84, 0.06);
    color: var(--mbc-text);
}

.adm-feed__item:last-child {
    border-bottom: none;
}

.adm-feed__item-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.04);
    color: var(--mbc-muted);
}

.adm-feed__item-icon--blue  { background: rgba(23, 117, 200, 0.12); color: #60A5FA; }
.adm-feed__item-icon--green { background: rgba(21, 143, 84, 0.12); color: #34D399; }
.adm-feed__item-icon--red   { background: rgba(239, 68, 68, 0.10); color: #F87171; }
.adm-feed__item-icon--cyan  { background: rgba(6, 182, 212, 0.10); color: #22D3EE; }

.adm-feed__item-content {
    flex: 1;
    min-width: 0;
}

.adm-feed__item-title {
    font-weight: 600;
    font-size: 0.82rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.adm-feed__item-sub {
    font-size: 0.72rem;
    color: var(--mbc-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.adm-feed__item-meta {
    font-size: 0.68rem;
    color: var(--mbc-muted);
    white-space: nowrap;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

/* ── Status badges ── */
.adm-status {
    display: inline-block;
    padding: 0.1rem 0.55rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.adm-status--new         { background: rgba(59, 130, 246, 0.18); color: #60A5FA; }
.adm-status--waiting     { background: rgba(245, 158, 11, 0.18); color: #FBBF24; }
.adm-status--in_progress { background: rgba(21, 143, 84, 0.18); color: #34D399; }
.adm-status--done        { background: rgba(107, 114, 128, 0.18); color: #9CA3AF; }

/* ── Quick Navigation ── */
.adm-nav-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.adm-nav-section__title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--mbc-muted);
    padding-left: 0.25rem;
}

.adm-nav-grid {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.adm-nav-card {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.6rem 0.85rem;
    border-radius: 8px;
    background: linear-gradient(160deg, rgba(20, 24, 33, 0.6) 0%, rgba(10, 13, 19, 0.4) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-decoration: none;
    color: var(--mbc-text);
    font-size: 0.82rem;
    font-weight: 500;
    transition: all 0.2s;
    font-style: normal !important;
}

.adm-nav-card:hover {
    border-color: rgba(21, 143, 84, 0.3);
    background: linear-gradient(160deg, rgba(21, 143, 84, 0.08) 0%, rgba(10, 13, 19, 0.4) 100%);
    color: var(--mbc-text);
    transform: translateX(2px);
}

.adm-nav-card i {
    font-size: 1rem;
    text-align: center;
    color: var(--mbc-muted);
    flex-shrink: 0;
}

.adm-nav-card span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.adm-nav-card__badge {
    margin-left: auto;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 700;
    background: rgba(245, 158, 11, 0.85);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #111;
    flex-shrink: 0;
}

.adm-nav-card__count {
    margin-left: auto;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--mbc-muted);
    flex-shrink: 0;
}

/* ── Dashboard empty inline ── */
.dash-empty-inline {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 1.25rem;
    color: var(--mbc-muted);
    font-size: 0.82rem;
}

.dash-empty-inline i {
    font-size: 1.1rem;
    opacity: 0.5;
}

/* ── Unread dot ── */
.dash-unread-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #3B82F6;
    display: inline-block;
    flex-shrink: 0;
}

/* ── Getting Started Guide ── */
.dash-guide {
    border-radius: 10px;
    overflow: hidden;
    background: linear-gradient(160deg, rgba(20, 24, 33, 0.7) 0%, rgba(10, 13, 19, 0.5) 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.dash-guide__toggle {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, rgba(21, 143, 84, 0.08) 0%, transparent 100%);
    border: none;
    color: #34D399;
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    transition: background 0.15s;
    text-align: left;
}

.dash-guide__toggle:hover {
    background: linear-gradient(135deg, rgba(21, 143, 84, 0.14) 0%, transparent 100%);
}

.dash-guide__chevron {
    margin-left: auto;
    font-size: 0.75rem;
    transition: transform 0.2s;
}

.dash-guide__toggle[aria-expanded="true"] .dash-guide__chevron {
    transform: rotate(180deg);
}

.dash-guide__body {
    padding: 1.75rem 1.5rem 2rem;
}

.dash-guide__intro {
    font-size: 0.95rem;
    color: var(--mbc-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.dash-guide__steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.dash-guide__step {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.dash-guide__step-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(21, 143, 84, 0.1);
    color: var(--mbc-bluegreenflowrizon);
    flex-shrink: 0;
}

.dash-guide__step-text {
    font-size: 0.8rem;
    color: var(--mbc-text);
}

.dash-guide__step-text a {
    color: var(--mbc-text) !important;
    text-decoration: none;
    font-style: normal !important;
    transition: color 0.15s;
}

.dash-guide__step-text a:hover {
    color: #34D399 !important;
}

/* ── Guide KPI (dropdown from KPI strip) ── */
.dash-kpi-guide {
    position: relative;
    cursor: default;
}

.dash-kpi-guide__btn {
    background: none;
    border: none;
    color: var(--mbc-text);
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.dash-kpi-guide__btn:hover {
    color: #34D399;
}

.dash-kpi-guide__btn .dash-guide__chevron {
    font-size: 0.7rem;
    transition: transform 0.2s;
}

.dash-kpi-guide__btn[aria-expanded="true"] .dash-guide__chevron {
    transform: rotate(180deg);
}

.dash-kpi-guide__dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 380px;
    max-width: 440px;
    z-index: 100;
    margin-top: 0.5rem;
    padding: 1rem;
    border-radius: 10px;
    background: linear-gradient(160deg, rgba(20, 24, 33, 0.97) 0%, rgba(10, 13, 19, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
}

/* ── Rich guide step ── */
a.dash-guide__step--rich {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.6rem 0.65rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--mbc-text);
    transition: background 0.15s;
    border: 1px solid transparent;
}

a.dash-guide__step--rich:hover {
    background: rgba(21, 143, 84, 0.08);
    border-color: rgba(21, 143, 84, 0.15);
    color: var(--mbc-text);
}

a.dash-guide__step--rich .dash-guide__step-icon {
    margin-top: 0.15rem;
}

.dash-guide__step-icon--cyan {
    background: rgba(6, 182, 212, 0.12) !important;
    color: #22D3EE !important;
}

.dash-guide__step-detail {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.dash-guide__step-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--mbc-text);
    line-height: 1.4;
}

a.dash-guide__step--rich:hover .dash-guide__step-title {
    color: #34D399;
}

.dash-guide__step-desc {
    font-size: 0.85rem;
    color: var(--mbc-muted);
    line-height: 1.55;
}

.dash-guide__step-meta {
    margin-top: 0.1rem;
}

.dash-guide__step-arrow {
    font-size: 0.75rem;
    color: var(--mbc-muted);
    flex-shrink: 0;
    margin-top: 0.25rem;
    opacity: 0;
    transition: opacity 0.15s, transform 0.15s;
}

a.dash-guide__step--rich:hover .dash-guide__step-arrow {
    opacity: 1;
    transform: translateX(2px);
}

/* ── Cost Card ── */
.dash-cost-card {
    border-radius: 10px;
    overflow: hidden;
    background: linear-gradient(160deg, rgba(20, 24, 33, 0.7) 0%, rgba(10, 13, 19, 0.5) 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 1.5rem;
}

.dash-cost-card__header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1rem;
    font-weight: 700;
    font-size: 0.82rem;
    color: #FBBF24;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.10) 0%, transparent 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dash-cost-card__total {
    padding: 1.25rem 1rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.dash-cost-card__total-value {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    background: linear-gradient(135deg, #34D399 0%, #22D3EE 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dash-cost-card__total-label {
    font-size: 0.7rem;
    color: var(--mbc-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    margin-top: 0.2rem;
}

.dash-cost-card__breakdown {
    padding: 0.5rem 0;
}

.dash-cost-card__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.55rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.dash-cost-card__row:last-child {
    border-bottom: none;
}

.dash-cost-card__row-left {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-width: 0;
}

.dash-cost-card__row-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.04);
    color: var(--mbc-muted);
}

.dash-cost-card__row-icon--cyan  { background: rgba(6, 182, 212, 0.12); color: #22D3EE; }
.dash-cost-card__row-icon--green { background: rgba(21, 143, 84, 0.12); color: #34D399; }

.dash-cost-card__row-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--mbc-text);
    white-space: nowrap;
}

.dash-cost-card__row-count {
    font-size: 0.68rem;
    color: var(--mbc-muted);
}

.dash-cost-card__row-value {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--mbc-text);
    white-space: nowrap;
    flex-shrink: 0;
}

.dash-cost-card__detail {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding: 0.5rem 0;
}

.dash-cost-card__detail-title {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--mbc-muted);
    padding: 0.3rem 1rem 0.4rem;
}

.dash-cost-card__detail-row {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.35rem 1rem;
}

.dash-cost-card__detail-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.04);
    color: var(--mbc-muted);
}

.dash-cost-card__detail-name {
    flex: 1;
    font-size: 0.78rem;
    color: var(--mbc-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-cost-card__detail-price {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--mbc-muted);
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── Dashboard Responsive ── */
@media (max-width: 768px) {
    .dash-kpi-strip {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .adm-kpi {
        min-width: 0;
        padding: 0.75rem 0.85rem;
    }

    .adm-kpi__value {
        font-size: 1.2rem;
    }
}

/* ══════════════════════════════════════════════════════════════════════════════
   AUTOMATIONS - Modern Design
   ══════════════════════════════════════════════════════════════════════════════ */

/* ── KPI Cards ── */
.automation-kpi-card {
    background: linear-gradient(135deg, rgba(20, 24, 33, 0.7) 0%, rgba(10, 13, 19, 0.5) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.automation-kpi-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    transform: translateY(-2px);
}

.automation-kpi-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.automation-kpi-card__icon--purple {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(109, 40, 217, 0.1) 100%);
    color: #A78BFA;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.automation-kpi-card__icon--green {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(5, 150, 105, 0.1) 100%);
    color: #34D399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.automation-kpi-card__icon--cyan {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15) 0%, rgba(14, 116, 144, 0.1) 100%);
    color: #22D3EE;
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.automation-kpi-card__icon--blue {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(37, 99, 235, 0.1) 100%);
    color: #60A5FA;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.automation-kpi-card__content {
    flex: 1;
}

.automation-kpi-card__value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--mbc-text);
    line-height: 1;
    margin-bottom: 0.35rem;
}

.automation-kpi-card__label {
    font-size: 0.8rem;
    color: var(--mbc-muted);
    font-weight: 500;
}

/* ── Automation Cards ── */
.automation-card {
    background: linear-gradient(160deg, rgba(20, 24, 33, 0.7) 0%, rgba(10, 13, 19, 0.5) 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-left: 3px solid var(--mbc-bluegreenflowrizon);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15), inset 3px 0 18px -6px rgba(21, 143, 84, 0.15);
}

.automation-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
    border-left-color: #34D399;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3), inset 4px 0 24px -6px rgba(21, 143, 84, 0.25);
    transform: translateY(-2px);
}

.automation-card__header {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    background: linear-gradient(90deg, rgba(21, 143, 84, 0.05) 0%, transparent 40%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.automation-card__header-left {
    display: flex;
    gap: 1rem;
    flex: 1;
    min-width: 0;
}

.automation-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(21, 143, 84, 0.15) 0%, rgba(7, 92, 51, 0.1) 100%);
    color: #34D399;
    border: 1px solid rgba(21, 143, 84, 0.3);
}

.automation-card__title-group {
    flex: 1;
    min-width: 0;
}

.automation-card__title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--mbc-text);
    margin: 0 0 0.35rem 0;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
    text-shadow: none;
}

.automation-card__description {
    font-size: 0.85rem;
    color: var(--mbc-muted);
    margin: 0;
    line-height: 1.5;
}

.automation-card__header-right {
    flex-shrink: 0;
}

.automation-card__stats {
    padding: 1.25rem 1.5rem;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.automation-card__footer {
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(10, 13, 19, 0.3) 0%, rgba(7, 8, 11, 0.2) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    justify-content: flex-end;
}

/* ── Automation Stat Items ── */
.automation-stat-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.automation-stat-item__icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    background: rgba(21, 143, 84, 0.1);
    color: var(--mbc-bluegreenflowrizon);
    border: 1px solid rgba(21, 143, 84, 0.2);
}

.automation-stat-item__content {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.automation-stat-item__value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--mbc-text);
    line-height: 1;
}

.automation-stat-item__label {
    font-size: 0.75rem;
    color: var(--mbc-muted);
    font-weight: 500;
}

/* ── Status Badges ── */
.automation-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.automation-status-badge--active {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(5, 150, 105, 0.15) 100%);
    color: #34D399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.automation-status-badge--inactive {
    background: linear-gradient(135deg, rgba(107, 114, 128, 0.2) 0%, rgba(75, 85, 99, 0.15) 100%);
    color: #9CA3AF;
    border: 1px solid rgba(107, 114, 128, 0.3);
}

/* ── Empty State ── */
.automation-empty-state {
    padding: 2rem 1rem;
}

.automation-empty-state__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    background: linear-gradient(135deg, rgba(21, 143, 84, 0.1) 0%, rgba(7, 92, 51, 0.05) 100%);
    color: var(--mbc-muted);
    border: 2px solid rgba(21, 143, 84, 0.15);
}

.automation-empty-state__title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--mbc-text);
    margin: 0 0 0.5rem 0;
}

.automation-empty-state__subtitle {
    font-size: 0.9rem;
    color: var(--mbc-muted);
    margin: 0;
}

/* ── Detail Items ── */
.automation-detail-item {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.automation-detail-item__label {
    font-size: 0.8rem;
    color: var(--mbc-muted);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.automation-detail-item__value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--mbc-text);
    line-height: 1.2;
}

/* ── Execution Logs ── */
.automation-logs-list {
    display: flex;
    flex-direction: column;
}

.automation-log-item {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.2s;
}

.automation-log-item:last-child {
    border-bottom: none;
}

.automation-log-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.automation-log-item__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    gap: 1rem;
}

.automation-log-item__header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.automation-log-item__date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--mbc-muted);
}

.automation-log-item__time {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--mbc-muted);
    padding: 0.3rem 0.7rem;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.automation-log-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
}

.automation-log-status--success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(5, 150, 105, 0.15) 100%);
    color: #34D399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.automation-log-status--failed {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(185, 28, 28, 0.15) 100%);
    color: #F87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.automation-log-status--other {
    background: linear-gradient(135deg, rgba(107, 114, 128, 0.2) 0%, rgba(75, 85, 99, 0.15) 100%);
    color: #9CA3AF;
    border: 1px solid rgba(107, 114, 128, 0.3);
}

.automation-log-item__error {
    padding: 0.85rem 1rem;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(185, 28, 28, 0.1) 100%);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    color: #F87171;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.automation-log-item__data {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.automation-log-data-section {
    border-radius: 8px;
    overflow: hidden;
}

.automation-log-data-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: var(--mbc-text);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.automation-log-data-toggle:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
}

.automation-log-data-toggle i:first-child {
    font-size: 0.7rem;
    transition: transform 0.2s;
}

.automation-log-json {
    margin: 0;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: none;
    border-radius: 0 0 8px 8px;
    color: #A9B1BF;
    font-size: 0.75rem;
    line-height: 1.5;
    max-height: 300px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .automation-kpi-card {
        padding: 1rem;
    }

    .automation-kpi-card__value {
        font-size: 1.5rem;
    }

    .automation-card__header {
        flex-direction: column;
    }

    .automation-card__stats {
        gap: 1rem;
    }

    .automation-log-item__header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ── Bootstrap Modal Overrides ── */
.modal-content {
    background: linear-gradient(135deg, var(--mbc-panel-dark) 0%, var(--mbc-bg) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--mbc-text);
}

.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(135deg, var(--mbc-panel-dark) 0%, var(--mbc-bg) 100%);
}

.modal-title {
    color: var(--mbc-text);
}

.modal-body {
    color: var(--mbc-text);
}

.modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(135deg, var(--mbc-panel-dark) 0%, var(--mbc-bg) 100%);
}

.btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* ── Dashboard Period Selector ── */
.dash-period-selector {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
}

.dash-period-btn {
    padding: 0.35rem 0.75rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--mbc-muted);
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    font-style: normal !important;
    text-decoration: none !important;
}

.dash-period-btn:hover {
    color: var(--mbc-text);
    background: rgba(255, 255, 255, 0.06);
}

.dash-period-btn.active {
    color: #fff;
    background: linear-gradient(135deg, var(--mbc-bluegreenflowrizon) 0%, rgba(21, 143, 84, 0.8) 100%);
    box-shadow: 0 2px 8px rgba(21, 143, 84, 0.25);
}

@media (max-width: 576px) {
    .dash-period-selector {
        padding: 2px;
    }
    
    .dash-period-btn {
        padding: 0.3rem 0.5rem;
        font-size: 0.65rem;
    }
}

/* ── Dashboard Billing Widget (mis en avant) ── */
.dash-billing {
    background: linear-gradient(135deg, rgba(23, 117, 200, 0.12) 0%, rgba(21, 143, 84, 0.08) 100%);
    border: 1px solid rgba(23, 117, 200, 0.25);
    border-radius: 12px;
    overflow: hidden;
}

.dash-billing__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1rem;
    background: rgba(23, 117, 200, 0.08);
    border-bottom: 1px solid rgba(23, 117, 200, 0.15);
}

.dash-billing__header-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #60A5FA;
}

.dash-billing__header-left i {
    font-size: 1.1rem;
}

.dash-billing__link {
    font-size: 0.75rem;
    color: var(--mbc-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.dash-billing__link:hover {
    color: #60A5FA;
}

.dash-billing__body {
    padding: 1rem;
    display: flex;
    align-items: stretch;
    gap: 1rem;
}

.dash-billing__total {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    min-width: 140px;
}

.dash-billing__total-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--mbc-text);
    line-height: 1.2;
}

.dash-billing__total-label {
    font-size: 0.7rem;
    color: var(--mbc-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.dash-billing__breakdown {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.dash-billing__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.dash-billing__item > i {
    font-size: 1rem;
    width: 24px;
    text-align: center;
}

.dash-billing__item--client > i {
    color: #22D3EE;
}

.dash-billing__item--user > i {
    color: #34D399;
}

.dash-billing__item-data {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.dash-billing__item-value {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--mbc-text);
}

.dash-billing__item-label {
    font-size: 0.65rem;
    color: var(--mbc-muted);
}

.dash-billing__item-count {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--mbc-muted);
    background: rgba(255, 255, 255, 0.06);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

@media (max-width: 576px) {
    .dash-billing__body {
        flex-direction: column;
    }
    
    .dash-billing__total {
        min-width: auto;
        padding: 0.85rem;
    }
    
    .dash-billing__total-value {
        font-size: 1.5rem;
    }
}
