:root {
    --bg: #0b111e;
    --bg-soft: #111827;
    --surface: rgba(17, 24, 39, 0.86);
    --surface-strong: #172033;
    --border: rgba(148, 163, 184, 0.18);
    --text: #e5edf8;
    --muted: #94a3b8;
    --brand: #f97316;
    --brand-soft: rgba(249, 115, 22, 0.14);
    --success: #22c55e;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #38bdf8;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

* {
    box-sizing: border-box;
}

body.modern-admin {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(249, 115, 22, 0.18), transparent 30rem),
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.12), transparent 28rem),
        linear-gradient(135deg, #080d18 0%, #101827 45%, #070a12 100%);
    color: var(--text);
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
}

.modern-admin a {
    color: inherit;
}

.modern-admin .card,
.modern-admin .modal-content,
.modern-admin .dropdown-menu {
    color: var(--text);
    border: 1px solid var(--border);
    background: var(--surface-strong);
    box-shadow: var(--shadow);
}

.modern-admin .dropdown-item {
    color: #dbeafe;
}

.modern-admin .dropdown-item:hover {
    color: #fff;
    background: var(--brand-soft);
}

.modern-admin .table {
    color: var(--text);
}

.modern-admin .table td,
.modern-admin .table th {
    border-top-color: var(--border);
}

.modern-admin .form-control,
.modern-admin input[type=text],
.modern-admin input[type=password],
.modern-admin input[type=email],
.modern-admin input[type=number],
.modern-admin select,
.modern-admin textarea {
    color: var(--text);
    border: 1px solid var(--border);
    background: rgba(15, 23, 42, 0.82);
}

.modern-admin .form-control:focus,
.modern-admin input:focus,
.modern-admin select:focus,
.modern-admin textarea:focus {
    color: #fff;
    border-color: var(--brand);
    background: rgba(15, 23, 42, 0.96);
    box-shadow: 0 0 0 0.2rem rgba(249, 115, 22, 0.18);
}

.modern-admin .btn-primary,
.modern-admin input[type=submit] {
    border-color: var(--brand);
    background: var(--brand);
}

.app-shell {
    display: flex;
    min-height: 100vh;
}

.legacy-navbar,
.modern-admin > #separador {
    display: none;
}

.app-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1030;
    width: 280px;
    padding: 22px 18px;
    background: rgba(8, 13, 24, 0.92);
    border-right: 1px solid var(--border);
    backdrop-filter: blur(18px);
    overflow-y: auto;
}

.brand-panel {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    margin-bottom: 22px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.18), rgba(56, 189, 248, 0.08));
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 16px;
    background: var(--brand);
    color: #111827;
    font-weight: 900;
}

.brand-logo {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
}

.brand-panel strong,
.brand-panel span {
    display: block;
}

.brand-panel span,
.nav-section-title,
.muted,
.metric-card small,
.hero-chip span,
.empty-state span {
    color: var(--muted);
}

.nav-section-title {
    margin: 18px 10px 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.side-nav {
    display: grid;
    gap: 6px;
    padding: 0;
    margin: 0;
}

.side-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 16px;
    color: #cbd5e1;
    text-decoration: none;
    transition: 180ms ease;
}

.side-nav a:hover,
.side-nav .active > a {
    color: #fff;
    background: var(--brand-soft);
    text-decoration: none;
    transform: translateX(3px);
}

.app-main {
    width: 100%;
    margin-left: 280px;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 1020;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 26px;
    background: rgba(11, 17, 30, 0.72);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(18px);
}

.mobile-menu-button,
.logout-pill {
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
}

.logout-pill {
    padding: 10px 14px;
    text-decoration: none;
}

.logout-pill:hover {
    color: #fff;
    background: rgba(239, 68, 68, 0.16);
    text-decoration: none;
}

.content-wrap {
    width: min(1220px, calc(100% - 32px));
    margin: 28px auto 48px;
}

.app-footer {
    padding: 18px;
    margin-left: 280px;
    color: var(--muted);
    text-align: center;
    border-top: 1px solid var(--border);
}

.dashboard-hero,
.modern-card,
.metric-card {
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}

.dashboard-hero {
    display: flex;
    justify-content: space-between;
    gap: 22px;
    padding: clamp(22px, 4vw, 36px);
    margin-bottom: 22px;
    border-radius: 30px;
}

.dashboard-hero h1 {
    margin: 6px 0 8px;
    color: #fff;
    font-size: clamp(30px, 5vw, 54px);
    font-weight: 900;
    letter-spacing: -0.05em;
}

.dashboard-hero p {
    max-width: 680px;
    margin: 0;
    color: var(--muted);
    font-size: 16px;
}

.eyebrow {
    color: var(--brand);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero-chip {
    align-self: flex-start;
    min-width: 180px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
}

.hero-chip strong {
    display: block;
    margin-top: 4px;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.metric-card,
.modern-card {
    border-radius: 24px;
}

.metric-card {
    position: relative;
    overflow: hidden;
    padding: 20px;
}

.metric-card::after {
    position: absolute;
    right: -22px;
    bottom: -28px;
    width: 100px;
    height: 100px;
    content: "";
    border-radius: 999px;
    background: var(--accent, var(--brand));
    opacity: 0.18;
}

.metric-card span,
.metric-card small {
    display: block;
}

.metric-card strong {
    display: block;
    margin: 8px 0 2px;
    color: #fff;
    font-size: 34px;
    line-height: 1;
}

.accent-success { --accent: var(--success); }
.accent-info { --accent: var(--info); }
.accent-warning { --accent: var(--warning); }
.accent-danger { --accent: var(--danger); }

.dashboard-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 16px;
    margin-bottom: 16px;
}

.insight-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 16px;
}

.insight-card {
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.055);
}

.insight-card strong,
.insight-card small {
    display: block;
}

.insight-card strong {
    margin: 6px 0 2px;
    color: #fff;
    font-size: 24px;
}

.insight-card small {
    color: var(--muted);
}

.modern-card {
    padding: 22px;
}

.chart-card {
    grid-column: 1 / -1;
}

.card-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.card-heading h2 {
    margin: 4px 0 0;
    color: #fff;
    font-size: 20px;
    font-weight: 800;
}

.money {
    color: var(--success);
    font-size: 26px;
}

.progress-stack {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.progress-stack > div {
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
}

.progress-stack span,
.progress-stack strong {
    display: block;
}

.donut-row {
    display: flex;
    align-items: center;
    gap: 18px;
}

.donut {
    width: 116px;
    height: 116px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: conic-gradient(var(--success) calc(var(--value) * 1%), rgba(239, 68, 68, 0.28) 0);
    box-shadow: inset 0 0 0 18px rgba(17, 24, 39, 0.96);
}

.bar-list {
    display: grid;
    gap: 14px;
}

.bar-item div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 7px;
}

.bar-item i {
    display: block;
    height: 11px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--brand), var(--info));
}

.responsive-table {
    width: 100%;
    overflow-x: auto;
}

.modern-table {
    color: var(--text);
    margin-bottom: 0;
}

.modern-table thead th {
    color: var(--muted);
    border-top: 0;
    border-bottom-color: var(--border);
}

.modern-table td,
.modern-table th {
    border-top-color: var(--border);
}

.modern-table code {
    color: #fed7aa;
}

.client-release-list {
    display: grid;
    gap: 12px;
}

.release-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.release-toolbar > div {
    width: min(520px, 100%);
}

.release-toolbar label {
    display: block;
    margin-bottom: 7px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.release-empty {
    margin-top: 12px;
}

.release-group {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
}

.release-group summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    color: #fff;
    cursor: pointer;
    font-weight: 800;
}

.release-group summary::marker {
    color: var(--brand);
}

.release-group summary strong {
    flex: 0 0 auto;
    color: var(--brand);
    font-size: 13px;
}

.release-group .responsive-table {
    padding: 0 14px 14px;
}

.empty-state {
    display: grid;
    gap: 4px;
    padding: 28px;
    text-align: center;
    border: 1px dashed var(--border);
    border-radius: 18px;
}

.profile-hero {
    align-items: center;
}

.profile-logo-card {
    display: grid;
    place-items: center;
    width: 148px;
    height: 148px;
    flex: 0 0 auto;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.06);
}

.profile-logo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-logo-card .brand-mark {
    width: 76px;
    height: 76px;
    border-radius: 26px;
    font-size: 24px;
}

.profile-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
}

.modern-form {
    display: grid;
    gap: 10px;
}

.modern-form label {
    margin: 10px 0 0;
    color: #dbeafe;
    font-weight: 800;
}

.modern-form small {
    margin-top: -4px;
}

.password-box {
    display: grid;
    gap: 10px;
    padding: 18px;
    margin: 16px 0;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
}

.locked-list {
    display: grid;
    gap: 10px;
    margin: 0;
}

.locked-list dt {
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.locked-list dd {
    padding-bottom: 12px;
    margin: 0;
    color: #fff;
    border-bottom: 1px solid var(--border);
    overflow-wrap: anywhere;
}

.locked-list dd:last-child {
    border-bottom: 0;
}

.cadastro-hero {
    margin-bottom: 18px;
}

.modern-admin #formulario > .card,
.modern-admin #formulario + br + .card,
.modern-admin .content-wrap > .card {
    border-radius: 24px;
}

.modern-admin #formulario .card-body,
.modern-admin .content-wrap > .card .card-body {
    padding: clamp(18px, 3vw, 28px);
}

.modern-admin .content-wrap > .card .card-body {
    overflow-x: auto;
}

.modern-admin #tabela {
    min-width: 860px;
}

.modern-admin #tabela thead th {
    color: var(--muted);
    border-top: 0;
    border-bottom: 1px solid var(--border);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.modern-admin #tabela tbody tr:hover {
    background: rgba(249, 115, 22, 0.08);
}

.modern-admin #tabela-corpo {
    color: var(--text);
}

.modern-admin #pesq {
    min-height: 48px;
}

.modern-admin #btnpesq {
    min-height: 44px;
    border-radius: 14px;
}

.modern-admin #tabela {
    margin-bottom: 0;
}

.modern-admin .content-wrap > .card .row > .card {
    border: 1px solid var(--border) !important;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06) !important;
    color: var(--text) !important;
}

.modern-admin .content-wrap > .card .row > .bg-success {
    background: rgba(34, 197, 94, 0.16) !important;
}

.modern-admin .content-wrap > .card .row > .bg-warning {
    background: rgba(245, 158, 11, 0.18) !important;
}

.modern-admin .content-wrap > .card .row > .bg-secondary {
    background: rgba(56, 189, 248, 0.14) !important;
}

.modern-admin .content-wrap > .card .row > .bg-danger {
    background: rgba(239, 68, 68, 0.14) !important;
}

.client-filter-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto auto;
    gap: 14px;
    align-items: center;
    margin-bottom: 18px;
}

.client-search .form-control {
    margin: 0;
}

.client-filter-pills {
    display: inline-flex;
    gap: 6px;
    padding: 5px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
}

.client-filter-pills input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.client-filter-pills label {
    min-width: 78px;
    padding: 10px 13px;
    margin: 0;
    color: var(--muted);
    border-radius: 999px;
    cursor: pointer;
    font-weight: 800;
    text-align: center;
    transition: 180ms ease;
}

.client-filter-pills input:checked + label {
    color: #111827;
    background: var(--brand);
}

.client-filter-action {
    display: flex;
    align-items: center;
    gap: 8px;
}

.client-summary-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.client-summary-card {
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.055);
}

.client-summary-card span,
.client-summary-card strong {
    display: block;
}

.client-summary-card span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.client-summary-card strong {
    margin-top: 8px;
    color: #fff;
    font-size: 22px;
}

.client-summary-card.success { border-color: rgba(34, 197, 94, 0.28); }
.client-summary-card.warning { border-color: rgba(245, 158, 11, 0.3); }
.client-summary-card.info { border-color: rgba(56, 189, 248, 0.28); }
.client-summary-card.danger { border-color: rgba(239, 68, 68, 0.28); }

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 9px;
    margin-left: 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    vertical-align: middle;
}

.status-active {
    color: #bbf7d0;
    background: rgba(34, 197, 94, 0.16);
}

.status-inactive {
    color: #fed7aa;
    background: rgba(249, 115, 22, 0.16);
}

.status-warning {
    color: #fde68a;
    background: rgba(245, 158, 11, 0.17);
}

.modern-alert-backdrop {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 22px;
    background: rgba(2, 6, 23, 0.72);
    backdrop-filter: blur(8px);
}

.modern-alert-backdrop.is-visible {
    display: flex;
}

.modern-alert {
    width: min(440px, 100%);
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 26px;
    background: #101827;
    box-shadow: var(--shadow);
}

.modern-alert-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 14px;
    border-radius: 18px;
    background: var(--alert-color, var(--info));
    color: #06101e;
    font-size: 24px;
    font-weight: 900;
}

.modern-alert h3 {
    margin: 0 0 8px;
    color: #fff;
}

.modern-alert p {
    margin: 0 0 20px;
    color: var(--muted);
}

.modern-alert button {
    padding: 12px 16px;
    border: 0;
    border-radius: 14px;
    background: var(--alert-color, var(--info));
    color: #06101e;
    font-weight: 800;
    cursor: pointer;
}

.modern-alert-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.modern-alert-actions button {
    width: 100%;
}

.modern-alert-actions button[hidden] {
    display: none;
}

.modern-alert-actions button[hidden] + button {
    grid-column: 1 / -1;
}

.modern-alert-cancel {
    color: var(--text) !important;
    border: 1px solid var(--border) !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

.modern-toast {
    position: fixed;
    left: 50%;
    bottom: 26px;
    z-index: 3500;
    display: grid;
    gap: 3px;
    width: min(460px, calc(100% - 28px));
    padding: 16px 18px;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.96);
    box-shadow: var(--shadow);
    transform: translateX(-50%);
    animation: toastIn 240ms ease both;
}

.modern-toast.success {
    border-color: rgba(34, 197, 94, 0.34);
}

.modern-toast.error {
    border-color: rgba(239, 68, 68, 0.38);
}

.modern-toast strong {
    color: #bbf7d0;
}

.modern-toast span {
    color: var(--muted);
}

.modern-toast.is-leaving {
    animation: toastOut 240ms ease both;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translate(-50%, 16px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

@keyframes toastOut {
    from {
        opacity: 1;
        transform: translate(-50%, 0);
    }
    to {
        opacity: 0;
        transform: translate(-50%, 16px);
    }
}

.login-shell {
    position: relative;
    display: grid;
    width: min(1080px, calc(100% - 32px));
    min-height: min(720px, calc(100vh - 48px));
    grid-template-columns: 1.1fr 0.9fr;
    margin: 24px auto;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 34px;
    background: rgba(11, 17, 30, 0.84);
    box-shadow: var(--shadow);
}

.login-brand {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(28px, 5vw, 56px);
    background:
        radial-gradient(circle at 20% 20%, rgba(249, 115, 22, 0.22), transparent 18rem),
        linear-gradient(140deg, rgba(249, 115, 22, 0.16), rgba(56, 189, 248, 0.07));
}

.login-brand h1 {
    max-width: 560px;
    margin: 22px 0 14px;
    color: #fff;
    font-size: clamp(34px, 5vw, 62px);
    font-weight: 900;
    letter-spacing: -0.06em;
}

.login-brand p {
    max-width: 460px;
    color: var(--muted);
    font-size: 17px;
}

.login-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(24px, 5vw, 54px);
}

.login-card form {
    width: 100%;
    max-width: 390px;
}

.login-card h2 {
    color: #fff;
    font-weight: 850;
}

.login-card .form-control {
    min-height: 52px;
    margin-bottom: 14px;
    border-radius: 16px;
}

.login-card .btn {
    min-height: 52px;
    border-radius: 16px;
    font-weight: 800;
}

.login-message {
    padding: 12px 14px;
    margin-bottom: 16px;
    color: #fecaca;
    border: 1px solid rgba(239, 68, 68, 0.34);
    border-radius: 16px;
    background: rgba(239, 68, 68, 0.12);
}

.login-footer {
    color: var(--muted);
}

.terminal-hero {
    margin-bottom: 18px;
}

.terminal-client-panel,
.terminal-workspace,
.terminal-secondary-grid {
    display: grid;
    gap: 18px;
}

.terminal-client-panel {
    grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
    margin-bottom: 18px;
}

.terminal-selector-card,
.terminal-summary-grid article,
.terminal-item,
.terminal-alert {
    border: 1px solid var(--border);
    background: rgba(15, 23, 42, 0.78);
    box-shadow: 0 16px 34px rgba(2, 6, 23, 0.18);
}

.terminal-selector-card {
    padding: 22px;
    border-radius: 24px;
}

.terminal-selector-card label,
.terminal-form-card label {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.terminal-selector-card p {
    margin: 12px 0 0;
    color: var(--muted);
}

.terminal-selector-row {
    display: flex;
    gap: 10px;
}

.terminal-selector-row .form-control {
    min-width: 0;
}

.terminal-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.terminal-summary-grid article {
    padding: 18px;
    border-radius: 22px;
}

.terminal-summary-grid span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.terminal-summary-grid strong {
    display: block;
    margin-top: 6px;
    color: #fff;
    font-size: 32px;
    line-height: 1;
}

.terminal-workspace {
    align-items: start;
    grid-template-columns: minmax(300px, 0.42fr) minmax(0, 0.58fr);
    margin-bottom: 18px;
}

.terminal-secondary-grid {
    grid-template-columns: minmax(0, 0.44fr) minmax(0, 0.56fr);
}

.terminal-secondary-grid-single {
    grid-template-columns: 1fr;
}

.terminal-form-card .form-control {
    min-height: 48px;
    margin-bottom: 14px;
    border-radius: 16px;
}

.terminal-form-actions,
.terminal-actions,
.terminal-bulk-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.terminal-expiration {
    display: grid;
    gap: 8px;
    padding: 12px;
    margin: 4px 0 14px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.42);
}

.terminal-check {
    display: flex !important;
    align-items: center;
    gap: 10px;
    margin: 0 !important;
    color: var(--text) !important;
    font-size: 13px !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

.terminal-check input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.terminal-expiration small {
    color: var(--muted);
}

.terminal-form-actions {
    margin-top: 6px;
}

.terminal-ajax-panel {
    min-height: 120px;
}

.terminal-loading,
.empty-state {
    padding: 18px;
    border: 1px dashed rgba(148, 163, 184, 0.24);
    border-radius: 18px;
    color: var(--muted);
    background: rgba(15, 23, 42, 0.44);
}

.terminal-card-list {
    display: grid;
    gap: 12px;
}

.terminal-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 16px;
    border-radius: 20px;
}

.terminal-item h3 {
    margin: 8px 0 4px;
    color: #fff;
    font-size: 18px;
    font-weight: 850;
}

.terminal-item p {
    margin: 4px 0;
    color: var(--muted);
}

.terminal-md5 {
    max-width: 520px;
    overflow: hidden;
    color: #fed7aa !important;
    font-family: "JetBrains Mono", Consolas, monospace;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.terminal-actions {
    justify-content: flex-end;
}

.terminal-bulk-actions {
    justify-content: flex-end;
    margin-top: 14px;
}

.terminal-alert {
    display: grid;
    gap: 10px;
    margin-bottom: 12px;
    padding: 14px;
    border-radius: 18px;
    color: var(--text);
}

.terminal-alert.warning {
    border-color: rgba(245, 158, 11, 0.34);
    background: rgba(245, 158, 11, 0.12);
}

.terminal-alert.error {
    border-color: rgba(239, 68, 68, 0.34);
    background: rgba(239, 68, 68, 0.12);
}

.terminal-all-card {
    overflow: hidden;
}

.terminal-all-card .table-responsive {
    max-height: 560px;
    overflow: auto;
}

body.login-page {
    display: grid;
    min-height: 100vh;
    padding: 0;
    place-items: center;
}

@media (max-width: 980px) {
    .app-sidebar {
        transform: translateX(-105%);
        transition: transform 220ms ease;
    }

    .sidebar-open .app-sidebar {
        transform: translateX(0);
    }

    .app-main,
    .app-footer {
        margin-left: 0;
    }

    .mobile-menu-button {
        display: inline-grid;
        place-items: center;
    }

    .metric-grid,
    .insight-grid,
    .dashboard-grid {
        grid-template-columns: 1fr 1fr;
    }

    .profile-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-hero {
        flex-direction: column;
    }

    .terminal-client-panel,
    .terminal-workspace,
    .terminal-secondary-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .topbar {
        padding: 12px;
    }

    .content-wrap {
        width: min(100% - 20px, 1220px);
        margin-top: 16px;
    }

    .metric-grid,
    .insight-grid,
    .dashboard-grid,
    .progress-stack {
        grid-template-columns: 1fr;
    }

    .donut-row,
    .card-heading,
    .release-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .client-filter-panel,
    .client-summary-grid {
        grid-template-columns: 1fr;
    }

    .client-filter-pills,
    .client-filter-action {
        width: 100%;
    }

    .client-filter-pills label,
    .client-filter-action .btn {
        flex: 1;
    }

    .profile-logo-card {
        width: 112px;
        height: 112px;
    }

    .terminal-selector-row,
    .terminal-item,
    .terminal-actions,
    .terminal-bulk-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .terminal-summary-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 820px) {
    .login-shell {
        grid-template-columns: 1fr;
    }

    .login-brand {
        min-height: 280px;
    }
}
