:root {
    --ink: #0f172a;
    --muted: #64748b;
    --bg: #f4f7fb;
    --panel: #ffffff;
    --line: #e5eaf1;
    --sidebar: #111c2f;
    --sidebar-line: rgba(255, 255, 255, 0.08);
    --sidebar-muted: #9fb0c8;
    --accent: #f28c28;
    --accent-strong: #ef6c00;
    --blue-soft: #dbeafe;
    --green-soft: #dcfce7;
    --amber-soft: #fef3c7;
}

* {
    box-sizing: border-box;
}

button,
input,
select,
textarea {
    font: inherit;
}

body {
    margin: 0;
    font-family: "Rubik", system-ui, -apple-system, sans-serif;
    color: var(--ink);
    background:
        radial-gradient(900px 500px at 0% -5%, #e9f2ff 0%, rgba(233, 242, 255, 0) 60%),
        radial-gradient(800px 480px at 100% 0%, #fdf0e4 0%, rgba(253, 240, 228, 0) 52%),
        var(--bg);
}

.backoffice-shell {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    min-height: 100vh;
    transition: grid-template-columns 0.22s ease;
}

.backoffice-shell.sidebar-collapsed {
    grid-template-columns: 92px minmax(0, 1fr);
}

.sidebar {
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #13203a 0%, #0d1627 100%);
    color: #fff;
    border-right: 1px solid var(--sidebar-line);
    padding: 24px 18px;
    position: sticky;
    top: 0;
    height: 100vh;
}

.sidebar-brand-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.sidebar-toggle {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--sidebar-line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    transition: background 0.18s ease, transform 0.18s ease;
}

.sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.sidebar-logo-wrap {
    display: grid;
    place-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.sidebar-logo-full {
    width: 100%;
    max-width: 168px;
    height: auto;
    display: block;
}

.sidebar-logo-icon {
    width: 38px;
    height: 38px;
    display: none;
    object-fit: contain;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(180deg, var(--accent) 0%, var(--accent-strong) 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
    box-shadow: 0 12px 24px rgba(242, 140, 40, 0.28);
}

.brand-copy {
    display: flex;
    flex-direction: column;
}

.brand-main {
    font-size: 1rem;
    font-weight: 700;
}

.brand-sub {
    font-size: 0.78rem;
    color: var(--sidebar-muted);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 22px;
    display: grid;
    gap: 12px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--sidebar-muted);
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 500;
}

.nav-link i {
    font-size: 1rem;
}

.nav-link.active,
.nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.sidebar-logout {
    justify-content: center;
}

.backoffice-shell.sidebar-collapsed .sidebar {
    padding-left: 12px;
    padding-right: 12px;
}

.backoffice-shell.sidebar-collapsed .sidebar-logo-full,
.backoffice-shell.sidebar-collapsed .brand-copy,
.backoffice-shell.sidebar-collapsed .nav-link span,
.backoffice-shell.sidebar-collapsed .sidebar-logout span {
    display: none;
}

.backoffice-shell.sidebar-collapsed .sidebar-logo-icon {
    display: block;
}

.backoffice-shell.sidebar-collapsed .sidebar-brand-head,
.backoffice-shell.sidebar-collapsed .nav-link,
.backoffice-shell.sidebar-collapsed .sidebar-footer {
    justify-content: center;
}

.backoffice-shell.sidebar-collapsed .sidebar-brand {
    display: none;
}

.backoffice-shell.sidebar-collapsed .sidebar-logout {
    width: 44px;
    padding-left: 0;
    padding-right: 0;
    border-color: transparent;
    background: transparent;
    box-shadow: none;
}

.app-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.content-area {
    padding: 28px 30px 30px;
}

.panel,
.stat-card {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--line);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}

.btn-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(180deg, var(--accent) 0%, var(--accent-strong) 100%);
    border: 0;
    color: #fff;
    border-radius: 14px;
    padding: 11px 16px;
    font-weight: 600;
}

.btn-create,
.btn-save,
.btn-edit,
.btn-cancel,
.btn-danger-soft {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 5px;
    padding: 8px 13px;
    font-weight: 600;
    border: 0 !important;
    text-decoration: none;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease;
    line-height: 1.15;
    appearance: none;
    font-size: 0.92rem;
}

.btn-create {
    background:
        radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.08) 34%, rgba(255, 255, 255, 0) 68%),
        linear-gradient(145deg, #fb8f34 0%, #f97a1d 72%, #ef6c00 100%);
    color: #fff;
    box-shadow: 0 8px 18px rgba(249, 115, 22, 0.16);
}

.btn-save {
    background:
        radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.07) 34%, rgba(255, 255, 255, 0) 68%),
        linear-gradient(145deg, #31cf96 0%, #26bf73 72%, #1f9b5a 100%);
    color: #fff;
    box-shadow: 0 8px 18px rgba(22, 163, 74, 0.15);
}

.btn-edit {
    background:
        radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.07) 34%, rgba(255, 255, 255, 0) 68%),
        linear-gradient(145deg, #5d9df6 0%, #4a8ff3 72%, #3274e8 100%);
    color: #fff;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.14);
}

.btn-cancel {
    background:
        radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.82) 0%, rgba(255, 255, 255, 0.28) 36%, rgba(255, 255, 255, 0) 72%),
        linear-gradient(145deg, #ffffff 0%, #eef3f8 100%);
    color: #475569;
    box-shadow: 0 8px 18px rgba(148, 163, 184, 0.12);
}

.btn-danger-soft {
    background:
        radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.08) 34%, rgba(255, 255, 255, 0) 68%),
        linear-gradient(145deg, #fff1f2 0%, #ffdfe3 100%);
    color: #991b1b;
    box-shadow: 0 8px 18px rgba(244, 63, 94, 0.12);
}

.btn-create:hover,
.btn-create:focus {
    background:
        radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.04) 34%, rgba(255, 255, 255, 0) 68%),
        linear-gradient(145deg, #f67e20 0%, #ea6d12 74%, #da6208 100%);
}

.btn-save:hover,
.btn-save:focus {
    background:
        radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.04) 34%, rgba(255, 255, 255, 0) 68%),
        linear-gradient(145deg, #26c67a 0%, #1fa864 74%, #1a8d53 100%);
}

.btn-edit:hover,
.btn-edit:focus {
    background:
        radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.04) 34%, rgba(255, 255, 255, 0) 68%),
        linear-gradient(145deg, #4a8ff3 0%, #3a7ee8 74%, #2f6fe0 100%);
}

.btn-brand:hover,
.btn-brand:focus {
    color: #fff;
    background: linear-gradient(180deg, #ff9f44 0%, #e85d04 100%);
}

.btn-create:hover,
.btn-create:focus,
.btn-save:hover,
.btn-save:focus,
.btn-edit:hover,
.btn-edit:focus {
    color: #fff;
    transform: translateY(-3px);
}

.btn-cancel:hover,
.btn-cancel:focus,
.btn-danger-soft:hover,
.btn-danger-soft:focus {
    color: inherit;
    transform: translateY(-3px);
}

.btn-create:hover,
.btn-save:hover,
.btn-edit:hover,
.btn-cancel:hover,
.btn-danger-soft:hover {
    box-shadow: 0 16px 28px rgba(15, 23, 42, 0.14);
}

.btn-sm.btn-create,
.btn-sm.btn-save,
.btn-sm.btn-edit,
.btn-sm.btn-cancel,
.btn-sm.btn-danger-soft {
    padding: 6px 10px;
    border-radius: 5px;
    font-size: 0.76rem;
}

.btn-ghost {
    border-radius: 14px;
    border: 1px solid var(--sidebar-line);
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
    padding: 11px 16px;
    font-weight: 600;
}

.btn-ghost:hover,
.btn-ghost:focus {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.page-title {
    margin: 0;
    font-size: 1.85rem;
    font-weight: 700;
}

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

.title-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 11px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

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

.page-breadcrumb {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--muted);
}

.page-breadcrumb a {
    color: #2563eb;
    text-decoration: none;
}

.toast-stack {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 1080;
    width: min(420px, calc(100vw - 32px));
}

.app-toast {
    border-radius: 18px;
    border: 1px solid transparent;
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.16);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.app-toast.is-hiding {
    opacity: 0;
    transform: translateY(-8px);
}

.app-toast-body {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    font-weight: 500;
}

.toast-close {
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 1.15rem;
    line-height: 1;
    padding: 0;
    cursor: pointer;
}

.app-toast.success {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #166534;
}

.app-toast.error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.app-toast.info {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 22px;
}

.stats-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.warning-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 14px 16px;
    border-radius: 16px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
    font-weight: 500;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    border-radius: 20px;
    padding: 20px;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.stat-icon.blue { background: var(--blue-soft); color: #2563eb; }
.stat-icon.green { background: var(--green-soft); color: #15803d; }
.stat-icon.amber { background: var(--amber-soft); color: #c2410c; }

.stat-value {
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1;
}

.stat-value-text {
    font-size: 1.05rem;
    line-height: 1.35;
    word-break: break-word;
}

.stat-label {
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.92rem;
}

.panel {
    border-radius: 22px;
    padding: 24px;
}

.panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.panel-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
}

.panel-subtitle {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.panel-tools {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-form {
    margin: 0;
}

.slim-input {
    min-width: 240px;
    border-radius: 12px;
    border-color: var(--line);
}

.form-control {
    border-radius: 12px;
    border: 1px solid #d7e0ec;
    min-height: 48px;
    box-shadow: none;
}

select.form-control {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 54px;
    background-color: #fff;
    background-image:
        linear-gradient(180deg, rgba(241, 245, 249, 0.96) 0%, rgba(226, 232, 240, 0.92) 100%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6L8 10L12 6' stroke='%23475569' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-position:
        calc(100% - 1px) 50%,
        calc(100% - 16px) 50%;
    background-size: 38px calc(100% - 2px), 14px 14px;
    background-repeat: no-repeat;
    background-origin: border-box;
    background-clip: padding-box, border-box;
    cursor: pointer;
}

select.form-control:hover {
    border-color: #c7d4e4;
}

.form-control:focus {
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.empty-state {
    border: 1px dashed #d6deea;
    border-radius: 18px;
    padding: 36px 24px;
    text-align: center;
    background: linear-gradient(180deg, #fbfcff 0%, #f8fafc 100%);
}

.empty-icon {
    width: 66px;
    height: 66px;
    margin: 0 auto 14px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    color: #2563eb;
    font-size: 1.5rem;
}

.customers-table {
    margin-bottom: 0;
}

.customers-table th {
    color: var(--muted);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-bottom-color: var(--line);
}

.customers-table td {
    border-bottom-color: #edf2f7;
    vertical-align: middle;
}

.customers-table tbody tr.clickable-row {
    cursor: pointer;
}

.customers-table tbody tr.clickable-row:hover {
    background: #f8fbff;
}

.customer-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.customer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: #eef2ff;
    color: #4338ca;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.customer-meta {
    color: var(--muted);
    font-size: 0.8rem;
}

.code-pill {
    display: inline-flex;
    align-items: center;
    padding: 7px 10px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid var(--line);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.82rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 7px 10px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: capitalize;
}

.status-badge.active {
    background: #dcfce7;
    color: #166534;
}

.status-badge.suspended {
    background: #fee2e2;
    color: #991b1b;
}

.login-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 20px;
}

.login-shell {
    width: 100%;
    max-width: 520px;
}

.login-card {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 34px;
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.08);
    text-align: center;
}

.login-card h1 {
    margin: 0;
    font-size: 1.9rem;
}

.login-logo {
    width: min(220px, 100%);
    height: auto;
    display: block;
    margin: 0 auto 20px;
}

.login-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: #fff7ed;
    color: var(--accent-strong);
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 12px;
}

.login-copy,
.login-note {
    color: var(--muted);
}

.login-copy {
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

.setup-note {
    color: var(--muted);
    font-size: 0.92rem;
    text-align: center;
}

.login-form {
    display: grid;
    gap: 16px;
    margin: 24px 0 16px;
    text-align: left;
}

.login-submit {
    min-height: 48px;
    justify-content: center;
    font-size: 0.98rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.compact-form {
    margin-bottom: 18px;
}

.form-grid-span {
    grid-column: 1 / -1;
}

.form-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 18px;
}

.field-static {
    min-height: 46px;
    display: flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid var(--line);
}

.quota-box {
    display: grid;
    gap: 14px;
}

.quota-box-compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.quota-box div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid var(--line);
}

.stack-list {
    display: grid;
    gap: 12px;
}

.stack-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: #fbfcff;
}

.stack-link {
    text-decoration: none;
    color: inherit;
}

.stack-meta,
.empty-note {
    color: var(--muted);
    font-size: 0.9rem;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 18px;
}

.summary-row {
    display: grid;
    gap: 6px;
}

.summary-row strong {
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
}

.summary-row span {
    font-size: 0.98rem;
}

.summary-row-full {
    grid-column: 1 / -1;
}

.secret-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.mono-text {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.85rem;
}

.inline-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mini-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.usage-cell {
    min-width: 170px;
}

.usage-cell small {
    color: var(--muted);
}

.usage-bar {
    height: 8px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 6px;
}

.usage-bar span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #fb923c 0%, #f97316 100%);
}

.app-modal {
    border: 1px solid var(--line);
    border-radius: 24px;
    overflow: hidden;
}

.app-modal .modal-header,
.app-modal .modal-footer {
    border: 0;
    padding: 20px 24px;
}

.app-modal .modal-body {
    padding: 0 24px 24px;
}

.result-modal-dialog {
    max-width: 760px;
}

.modal-subtitle {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.result-state {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid var(--line);
}

.result-state-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex: 0 0 auto;
}

.result-state-copy {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.result-state-copy strong {
    font-size: 1rem;
}

.result-state-copy p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.result-state.success {
    background: #ecfdf5;
    border-color: #a7f3d0;
}

.result-state.success .result-state-icon {
    background: #d1fae5;
    color: #166534;
}

.result-state.error {
    background: #fef2f2;
    border-color: #fecaca;
}

.result-state.error .result-state-icon {
    background: #fee2e2;
    color: #991b1b;
}

.result-state.info {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.result-state.info .result-state-icon {
    background: #dbeafe;
    color: #1d4ed8;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.checkbox-line {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 0.92rem;
}

.notes-panel {
    margin-bottom: 18px;
}

.notes-content {
    color: var(--ink);
    line-height: 1.6;
}

.status-toggle {
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.icon-action {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    color: #334155;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.icon-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.icon-action-danger {
    color: #dc2626;
    border-color: #fecaca;
    background: linear-gradient(180deg, #fff5f5 0%, #fee2e2 100%);
}

.verify-indicator {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.verify-indicator.is-yes {
    background: #dcfce7;
    color: #15803d;
}

.verify-indicator.is-no {
    background: #fee2e2;
    color: #dc2626;
}

.flag-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 0.76rem;
    font-weight: 700;
}

.table-dash {
    color: var(--muted);
}

.stat-card-action {
    justify-content: space-between;
}

.confirm-copy {
    margin: 0;
    font-size: 1rem;
    color: var(--ink);
}

@media (max-width: 1100px) {
    .backoffice-shell {
        grid-template-columns: 96px minmax(0, 1fr);
    }

    .sidebar-logo-full,
    .brand-copy,
    .nav-link span {
        display: none;
    }

    .sidebar-logo-icon {
        display: block;
    }

    .nav-link {
        justify-content: center;
    }

    .sidebar-logout span {
        display: none;
    }

    .sidebar-logout {
        width: 44px;
        justify-self: center;
        padding-left: 0;
        padding-right: 0;
    }

    .sidebar-brand {
        display: none;
    }

    .sidebar-brand-head {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .backoffice-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: relative;
        height: auto;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .panel-head,
    .page-head,
    .inline-actions,
    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .content-area {
        padding-left: 18px;
        padding-right: 18px;
    }

    .slim-input {
        min-width: 0;
        width: 100%;
    }

    .form-grid,
    .detail-grid,
    .mini-grid,
    .secret-grid,
    .quota-box-compact,
    .summary-grid {
        grid-template-columns: 1fr;
    }

    .toast-stack {
        top: 16px;
        right: 16px;
        left: 16px;
        width: auto;
    }
}
