:root {
    --primary: #6d28d9;
    --bg: #f5f6fa;
    --text: #191b22;
    --muted: #6b7280;
    --border: #e5e7eb;
    --danger: #dc2626;
    --success: #15803d;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif;
    color: var(--text);
    background: var(--bg);
}

a {
    color: inherit;
    text-decoration: none;
}

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

label {
    display: grid;
    gap: 7px;
    font-weight: 650;
    margin-bottom: 14px;
}

label small,
.muted,
small {
    color: var(--muted);
    font-weight: 400;
}

input,
select,
textarea {
    width: 100%;
    padding: 12px 13px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #ffffff;
}

textarea {
    min-height: 90px;
    resize: vertical;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    color: #111827;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    font-weight: 750;
}

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

.btn.danger {
    color: var(--danger);
    background: #ffffff;
    border-color: #fecaca;
}

.btn.whatsapp {
    color: #ffffff;
    background: #16a34a;
    border-color: #16a34a;
}

.btn.small {
    padding: 7px 10px;
    font-size: 13px;
}

.btn.full {
    width: 100%;
}

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

.alert {
    padding: 12px 14px;
    margin: 0 0 16px;
    border-radius: 10px;
}

.alert.success {
    color: #166534;
    background: #dcfce7;
}

.alert.danger {
    color: #991b1b;
    background: #fee2e2;
}

.card {
    padding: 20px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.04);
}

.card h2 {
    margin-top: 0;
}

.auth-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #ede9fe, #f8fafc);
}

.auth-card {
    width: min(430px, 100%);
    padding: 28px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.14);
}

.auth-card.wide {
    width: min(650px, 100%);
}

.panel-top {
    position: sticky;
    top: 0;
    z-index: 10;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
}

.panel-top div {
    display: grid;
}

.panel-top small {
    margin-top: 2px;
}

.panel-layout {
    min-height: calc(100vh - 68px);
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 18px;
    background: #111827;
}

.sidebar a {
    padding: 11px 13px;
    color: #d1d5db;
    border-radius: 9px;
}

.sidebar a:hover,
.sidebar a.active {
    color: #ffffff;
    background: var(--primary);
}

.panel-main,
.admin-main {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 24px;
}

.page-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 18px;
}

.page-title h1 {
    margin: 0;
}

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

.stat {
    display: grid;
    gap: 8px;
    padding: 18px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 15px;
}

.stat span {
    color: var(--muted);
}

.stat strong {
    font-size: 24px;
}

.quick-actions,
.filter-row,
.status-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.two-col {
    display: grid;
    grid-template-columns: minmax(300px, 420px) minmax(0, 1fr);
    gap: 18px;
}

.product-layout {
    grid-template-columns: minmax(330px, 460px) minmax(0, 1fr);
}

.check {
    display: flex;
    align-items: center;
    gap: 9px;
}

.check input,
.choice-row input,
.extra-line input {
    width: auto;
}

.table-wrap {
    overflow: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 11px;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid var(--border);
}

th {
    color: var(--muted);
    font-size: 13px;
}

.actions {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
}

.actions form {
    margin: 0;
}

.form-card {
    max-width: 720px;
}

.store-hero {
    min-height: 210px;
    display: flex;
    align-items: center;
    padding: 34px 18px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), #111827);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.store-info {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 15px;
}

.store-info h1 {
    margin: 0 0 5px;
}

.store-info p {
    margin: 0 0 8px;
    opacity: 0.85;
}

.store-logo {
    width: 82px;
    height: 82px;
    flex-shrink: 0;
    object-fit: cover;
    background: #ffffff;
    border-radius: 18px;
}

.status {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.status.open {
    color: #166534;
    background: #dcfce7;
}

.status.closed {
    color: #991b1b;
    background: #fee2e2;
}
.menu-wrap {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 18px 15px 110px;
}

.menu-layout {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.menu-content {
    min-width: 0;
}

.category-sidebar {
    position: sticky;
    top: 12px;
    z-index: 8;
    max-height: calc(100vh - 24px);
    overflow-y: auto;
}

.category-sidebar-card {
    padding: 12px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
}

.category-sidebar-title {
    display: block;
    padding: 2px 4px 10px;
    font-size: 15px;
}

.category-tabs {
    display: grid;
    gap: 8px;
    padding: 0;
    overflow: visible;
}

.category-tabs a {
    display: block;
    padding: 10px 11px;
    color: var(--text);
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 11px;
    font-weight: 750;
    line-height: 1.2;
    white-space: normal;
    transition:
        color 0.18s ease,
        background 0.18s ease,
        border-color 0.18s ease;
}

.category-tabs a:hover {
    color: var(--primary);
    border-color: var(--primary);
}

.category-tabs a.active {
    color: #ffffff;
    background: var(--primary);
    border-color: var(--primary);
}

.search-row {
    position: sticky;
    top: 0;
    z-index: 5;
    padding: 8px 0;
    background: var(--bg);
}

.menu-section {
    scroll-margin-top: 72px;
}

.menu-section h2 {
    margin: 20px 0 13px;
}

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

.product-card {
    min-width: 0;
    min-height: 165px;
    display: flex;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 16px;
}

.product-content {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
}

.product-content h3 {
    margin: 0 0 6px;
}

.product-content p {
    margin: 0 0 12px;
    color: var(--muted);
    overflow-wrap: anywhere;
}

.product-content strong {
    margin-top: auto;
}

.product-content .btn {
    margin-top: 12px;
}

.product-card > img {
    width: 150px;
    height: 165px;
    flex: 0 0 150px;
    display: block;
    object-fit: cover;
}

.sold-out {
    margin-top: 10px;
    color: var(--danger);
    font-weight: 800;
}

.cart-float {
    position: fixed;
    left: 50%;
    bottom: 18px;
    z-index: 20;
    width: min(620px, calc(100% - 30px));
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 18px;
    color: #ffffff;
    background: var(--primary);
    border: 0;
    border-radius: 15px;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.25);
    transform: translateX(-50%);
    cursor: pointer;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(15, 23, 42, 0.62);
}

.modal.hidden,
.hidden {
    display: none !important;
}

.modal-card {
    position: relative;
    width: min(500px, 100%);
    max-height: 92vh;
    overflow: auto;
    padding: 22px;
    background: #ffffff;
    border-radius: 18px;
}

.modal-card.wide {
    width: min(680px, 100%);
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 13px;
    padding: 0;
    background: none;
    border: 0;
    font-size: 28px;
    cursor: pointer;
}

.extra-line {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 10px;
}

.qty-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin: 15px 0;
}

.qty-row button {
    width: 38px;
    height: 38px;
    padding: 0;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
}

.choice-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 14px;
}

.choice-row label {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0;
}

.cart-item,
.detail-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.cart-item > div {
    display: grid;
    gap: 4px;
}

.cart-item > div:last-child {
    text-align: right;
}

.link-danger {
    padding: 0;
    color: var(--danger);
    background: none;
    border: 0;
    cursor: pointer;
}

.summary-box {
    padding: 13px;
    margin: 15px 0;
    background: #f8fafc;
    border-radius: 12px;
}

.summary-box > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 5px 0;
}

.summary-box .total {
    padding-top: 10px;
    margin-top: 5px;
    border-top: 1px solid var(--border);
    font-size: 19px;
}

.success-panel {
    padding: 20px 0;
    text-align: center;
}

.orders-list {
    display: grid;
    gap: 12px;
    margin-top: 15px;
}

.order-card {
    padding: 16px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-left: 5px solid #94a3b8;
    border-radius: 14px;
}

.order-card.status-new {
    border-left-color: #f59e0b;
}

.order-card.status-accepted,
.order-card.status-preparing {
    border-left-color: #3b82f6;
}

.order-card.status-out_for_delivery {
    border-left-color: #06b6d4;
}

.order-card.status-completed {
    border-left-color: #16a34a;
}

.order-card.status-cancelled {
    border-left-color: #dc2626;
}

.order-card header,
.order-card footer,
.detail-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.order-card header > div {
    display: grid;
}

.status-pill {
    padding: 5px 9px;
    background: #f1f5f9;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.order-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 15px 0;
}

.order-grid > div {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.order-grid small {
    color: var(--muted);
}

.order-card footer {
    align-items: flex-end;
}

.order-card footer form {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.order-detail {
    max-width: 760px;
}

.detail-item > div {
    display: grid;
    gap: 3px;
}

.empty {
    padding: 18px;
    color: var(--muted);
    text-align: center;
}

.cart-extras {
    display: grid;
    gap: 3px;
    margin-top: 4px;
}

.cart-extras small {
    display: flex !important;
    justify-content: space-between;
    gap: 14px;
}

.cart-extras small strong {
    white-space: nowrap;
}

.extras-editor-block {
    display: grid;
    gap: 12px;
    margin: 4px 0 18px;
}

.extras-editor-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.extras-editor-title > div {
    display: grid;
    gap: 4px;
}

.extras-editor-title small {
    color: var(--muted);
}

.extras-editor {
    display: grid;
    gap: 10px;
}

.extra-editor-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 135px auto;
    gap: 10px;
    align-items: end;
    padding: 12px;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.extra-editor-row label {
    margin: 0;
}

.extra-editor-row label span {
    color: var(--muted);
    font-size: 13px;
}

.extra-editor-row input {
    background: #ffffff;
}

.extra-remove {
    min-height: 45px;
}

.extra-add-button {
    justify-self: start;
    border-style: dashed;
}
/* =========================================================
   QUADRO DE PEDIDOS — ISOLADO DO CARDÁPIO
========================================================= */

.kanban-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    padding: 14px 16px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 14px;
}

.kanban-toolbar > div {
    display: grid;
    gap: 3px;
}

.kanban-toolbar strong {
    font-size: 16px;
}

.kanban-toolbar small {
    color: var(--muted);
}

.kanban-notice {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 100;
    max-width: 360px;
    padding: 12px 16px;
    color: #ffffff;
    background: #15803d;
    border-radius: 12px;
    box-shadow: 0 15px 45px rgba(15, 23, 42, 0.25);
    font-size: 14px;
    font-weight: 750;
}

.kanban-notice.danger {
    background: #dc2626;
}

.orders-kanban {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(6, minmax(210px, 1fr));
    gap: 12px;
    align-items: start;
    padding-bottom: 18px;
    overflow-x: auto;
}

.orders-kanban .kanban-column {
    min-width: 210px;
    overflow: hidden;
    background: #eef1f5;
    border: 1px solid var(--border);
    border-radius: 14px;
}

.orders-kanban .kanban-column-header {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 11px 12px;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
}

.orders-kanban .kanban-column-header > div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.orders-kanban .kanban-column-header strong {
    font-size: 13px;
    white-space: nowrap;
}

.orders-kanban .kanban-status-dot {
    width: 9px;
    height: 9px;
    flex-shrink: 0;
    background: #94a3b8;
    border-radius: 50%;
}

.orders-kanban .kanban-count {
    min-width: 25px;
    height: 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 7px;
    color: #475569;
    background: #f1f5f9;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 850;
}

.orders-kanban .kanban-status-new .kanban-status-dot {
    background: #f59e0b;
}

.orders-kanban .kanban-status-accepted .kanban-status-dot {
    background: #8b5cf6;
}

.orders-kanban .kanban-status-preparing .kanban-status-dot {
    background: #3b82f6;
}

.orders-kanban .kanban-status-out_for_delivery .kanban-status-dot {
    background: #06b6d4;
}

.orders-kanban .kanban-status-completed .kanban-status-dot {
    background: #16a34a;
}

.orders-kanban .kanban-status-cancelled .kanban-status-dot {
    background: #dc2626;
}

.orders-kanban .kanban-dropzone {
    min-height: 170px;
    display: grid;
    align-content: start;
    gap: 9px;
    padding: 9px;
    transition:
        background 0.18s ease,
        box-shadow 0.18s ease;
}

.orders-kanban .kanban-dropzone.is-drag-over {
    background: rgba(109, 40, 217, 0.10);
    box-shadow: inset 0 0 0 2px var(--primary);
}

.orders-kanban .kanban-empty {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    color: #94a3b8;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    font-size: 12px;
    text-align: center;
}

.orders-kanban .kanban-dropzone.has-orders .kanban-empty {
    display: none;
}

.orders-kanban .mini-order-card {
    position: relative;
    display: grid;
    gap: 8px;
    padding: 11px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-left: 4px solid #94a3b8;
    border-radius: 11px;
    cursor: grab;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
    transition:
        transform 0.16s ease,
        box-shadow 0.16s ease,
        opacity 0.16s ease;
}

.orders-kanban .mini-order-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 9px 22px rgba(15, 23, 42, 0.11);
}

.orders-kanban .mini-order-card:active {
    cursor: grabbing;
}

.orders-kanban .mini-order-card.is-dragging {
    opacity: 0.45;
    transform: rotate(1deg) scale(0.98);
}

.orders-kanban .mini-order-card.is-saving {
    pointer-events: none;
    opacity: 0.65;
}

.orders-kanban .mini-order-card.status-new {
    border-left-color: #f59e0b;
}

.orders-kanban .mini-order-card.status-accepted {
    border-left-color: #8b5cf6;
}

.orders-kanban .mini-order-card.status-preparing {
    border-left-color: #3b82f6;
}

.orders-kanban .mini-order-card.status-out_for_delivery {
    border-left-color: #06b6d4;
}

.orders-kanban .mini-order-card.status-completed {
    border-left-color: #16a34a;
}

.orders-kanban .mini-order-card.status-cancelled {
    border-left-color: #dc2626;
}

.orders-kanban .mini-order-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 7px;
}

.orders-kanban .mini-order-head > div {
    display: grid;
    gap: 2px;
}

.orders-kanban .mini-order-head strong {
    font-size: 14px;
}

.orders-kanban .mini-order-head small {
    font-size: 11px;
}

.orders-kanban .mini-status {
    max-width: 102px;
    padding: 4px 6px;
    color: #475569;
    background: #f1f5f9;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 850;
    line-height: 1.15;
    text-align: center;
}

.orders-kanban .mini-order-customer {
    overflow: hidden;
    font-size: 13px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.orders-kanban .mini-order-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 12px;
}

.orders-kanban .mini-order-info span {
    color: var(--muted);
}

.orders-kanban .mini-order-info strong {
    font-size: 13px;
    white-space: nowrap;
}

.orders-kanban .mini-order-zone {
    overflow: hidden;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.orders-kanban .mini-order-actions {
    display: grid;
    grid-template-columns: 1fr 1fr 32px 32px;
    gap: 5px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}

.orders-kanban .mini-action {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 6px;
    color: #334155;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 7px;
    cursor: pointer;
    font-size: 10px;
    font-weight: 800;
}

.orders-kanban .mini-action:hover {
    color: var(--primary);
    border-color: var(--primary);
}

.orders-kanban .mini-action.primary {
    color: #ffffff;
    background: var(--primary);
    border-color: var(--primary);
    font-size: 16px;
}

.orders-kanban .mini-action.danger {
    color: #dc2626;
    background: #ffffff;
    border-color: #fecaca;
    font-size: 16px;
}

.orders-kanban .mini-action[hidden] {
    display: none !important;
}

.kanban-dragging .orders-kanban .mini-order-card:not(.is-dragging) {
    opacity: 0.78;
}

/* =========================================================
   RESPONSIVIDADE DO PAINEL E DO CARDÁPIO
========================================================= */

@media (max-width: 1300px) {
    .orders-kanban {
        grid-template-columns: repeat(6, 220px);
    }
}

@media (max-width: 900px) {
    .stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .two-col,
    .product-layout {
        grid-template-columns: 1fr;
    }

    .panel-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        flex-direction: row;
        overflow-x: auto;
        padding: 10px;
    }

    .sidebar a {
        flex-shrink: 0;
        white-space: nowrap;
    }

    .panel-main {
        padding: 16px;
    }

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

@media (max-width: 700px) {
    .menu-wrap {
        padding: 12px 9px 105px;
    }

    .menu-layout {
        grid-template-columns: 105px minmax(0, 1fr);
        gap: 9px;
    }

    .category-sidebar {
        top: 7px;
        max-height: calc(100vh - 14px);
    }

    .category-sidebar-card {
        padding: 8px;
        border-radius: 13px;
    }

    .category-sidebar-title {
        padding: 2px 3px 8px;
        font-size: 12px;
    }

    .category-tabs {
        gap: 6px;
    }

    .category-tabs a {
        padding: 9px 7px;
        border-radius: 9px;
        font-size: 12px;
        overflow-wrap: anywhere;
    }

    .search-row {
        padding: 0 0 7px;
    }

    .search-row input {
        padding: 10px;
        font-size: 14px;
    }

    .menu-section h2 {
        margin-top: 16px;
        font-size: 21px;
    }

    .product-grid {
        gap: 9px;
    }

    .product-card {
        min-height: 138px;
    }

    .product-content {
        padding: 11px;
    }

    .product-content h3 {
        font-size: 16px;
    }

    .product-content p {
        margin-bottom: 8px;
        font-size: 13px;
    }

    .product-content .btn {
        width: 100%;
        padding: 8px;
        margin-top: 9px;
    }

    .product-card > img {
        width: 78px;
        height: 138px;
        flex-basis: 78px;
    }

    .kanban-toolbar {
        align-items: flex-start;
        padding: 12px;
    }

    .kanban-toolbar small {
        font-size: 11px;
    }

    .orders-kanban {
        grid-template-columns: repeat(6, 210px);
        gap: 9px;
        margin-right: -16px;
        padding-right: 16px;
        scroll-snap-type: x proximity;
    }

    .orders-kanban .kanban-column {
        min-width: 210px;
        scroll-snap-align: start;
    }

    .orders-kanban .kanban-column-header {
        min-height: 44px;
        padding: 9px 10px;
    }

    .orders-kanban .kanban-dropzone {
        padding: 7px;
    }

    .orders-kanban .mini-order-card {
        padding: 10px;
    }

    .kanban-notice {
        right: 12px;
        bottom: 12px;
        left: 12px;
        max-width: none;
    }
}

@media (max-width: 600px) {
    .order-grid {
        grid-template-columns: 1fr;
    }

    .order-card header,
    .order-card footer {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .panel-top {
        padding: 0 14px;
    }

    .page-title h1 {
        font-size: 24px;
    }

    .store-logo {
        width: 68px;
        height: 68px;
    }

    .extra-editor-row {
        grid-template-columns: 1fr 110px;
    }

    .extra-editor-row .extra-remove {
        grid-column: 1 / -1;
        width: 100%;
    }
}

@media (max-width: 380px) {
    .menu-layout {
        grid-template-columns: 92px minmax(0, 1fr);
        gap: 7px;
    }

    .category-tabs a {
        padding: 8px 6px;
        font-size: 11px;
    }

    .product-card > img {
        width: 68px;
        height: 138px;
        flex-basis: 68px;
    }

    .product-content {
        padding: 9px;
    }
}

/* =========================
   LOGIN JF CARDÁPIO
========================= */

.jf-login-body {
    margin: 0;
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    background:
        linear-gradient(135deg, rgba(5, 12, 8, 0.94), rgba(8, 20, 12, 0.92)),
        url('https://images.unsplash.com/photo-1517248135467-4c7edcad34c4?auto=format&fit=crop&w=1600&q=80') center center / cover no-repeat;
    color: #ffffff;
    position: relative;
    overflow-x: hidden;
}

.jf-login-bg-overlay {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(120, 255, 120, 0.10), transparent 30%),
        radial-gradient(circle at bottom right, rgba(120, 255, 120, 0.08), transparent 30%);
    pointer-events: none;
}

.jf-login-page {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
    padding: 50px 70px;
    box-sizing: border-box;
}

.jf-login-showcase {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.jf-login-brand {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.jf-login-logo {
    width: 250px;
    height: 250px;
    object-fit: contain;
    border-radius: 24px;
    background: rgba(255,255,255,0.04);
    padding: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

.jf-login-brand-badge {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(145, 255, 100, 0.14);
    border: 1px solid rgba(145, 255, 100, 0.28);
    color: #d8ffd0;
    font-size: 20px;
    font-weight: 700;
}

.jf-login-texts h1 {
    margin: 0;
    font-size: 52px;
    line-height: 1.08;
    font-weight: 800;
    max-width: 700px;
}

.jf-login-texts p {
    margin: 0;
    max-width: 650px;
    font-size: 18px;
    line-height: 1.7;
    color: rgba(255,255,255,0.82);
}

.jf-login-features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 10px;
}

.jf-feature-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    border-radius: 22px;
    padding: 20px;
    box-shadow: 0 18px 45px rgba(0,0,0,0.20);
}

.jf-feature-card strong {
    display: block;
    margin-bottom: 10px;
    color: #ffffff;
    font-size: 18px;
}

.jf-feature-card span {
    display: block;
    color: rgba(255,255,255,0.78);
    font-size: 14px;
    line-height: 1.6;
}

.jf-login-panel {
    display: flex;
    justify-content: center;
    align-items: center;
}

.jf-login-card {
    width: 100%;
    max-width: 480px;
    background: rgba(12, 18, 14, 0.90);
    border: 1px solid rgba(140, 255, 140, 0.12);
    border-radius: 28px;
    padding: 34px;
    box-shadow: 0 25px 80px rgba(0,0,0,0.40);
    backdrop-filter: blur(12px);
    box-sizing: border-box;
}

.jf-login-card-top {
    text-align: center;
    margin-bottom: 24px;
}

.jf-login-card-logo {
    width: 200px;
    height: 200px;
    object-fit: contain;
    border-radius: 18px;
    background: rgba(255,255,255,0.04);
    padding: 8px;
    margin-bottom: 12px;
}

.jf-login-card-top h2 {
    margin: 0 0 8px;
    font-size: 38px;
    color: #ffffff;
}

.jf-login-card-top p {
    margin: 0;
    color: rgba(255,255,255,0.72);
    font-size: 15px;
}

.jf-login-alert {
    margin-bottom: 18px;
    background: rgba(255, 70, 70, 0.15);
    border: 1px solid rgba(255, 70, 70, 0.30);
    color: #ffd6d6;
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 14px;
}

.jf-login-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.jf-field label {
    display: block;
    margin-bottom: 8px;
    color: #e9fce5;
    font-weight: 700;
    font-size: 14px;
}

.jf-field input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.06);
    color: #ffffff;
    padding: 16px 18px;
    border-radius: 16px;
    outline: none;
    font-size: 15px;
    transition: 0.2s ease;
}

.jf-field input::placeholder {
    color: rgba(255,255,255,0.45);
}

.jf-field input:focus {
    border-color: rgba(148, 255, 109, 0.70);
    box-shadow: 0 0 0 4px rgba(148, 255, 109, 0.12);
}

.jf-login-btn {
    border: 0;
    border-radius: 16px;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgb(103, 214, 62), rgb(63, 168, 25));
    color: #081106;
    font-weight: 800;
    font-size: 17px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
    box-shadow: 0 14px 30px rgba(76, 196, 52, 0.25);
}

.jf-login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 36px rgba(76, 196, 52, 0.32);
}

.jf-login-links {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: center;
}

.jf-login-links a {
    color: #c8ffb8;
    text-decoration: none;
    font-size: 17px;
    font-weight: 600;
}

.jf-login-links a:hover {
    text-decoration: underline;
}

@media (max-width: 1100px) {
    .jf-login-page {
        grid-template-columns: 1fr;
        padding: 32px 20px;
    }

    .jf-login-showcase {
        order: 2;
    }

    .jf-login-panel {
        order: 1;
    }

    .jf-login-texts h1 {
        font-size: 38px;
    }

    .jf-login-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .jf-login-card {
        padding: 24px 18px;
        border-radius: 22px;
    }

    .jf-login-texts h1 {
        font-size: 30px;
    }

    .jf-login-texts p {
        font-size: 15px;
    }

    .jf-login-logo {
        width: 84px;
        height: 84px;
    }
}

/* =========================================================
   PAINEL ADMINISTRATIVO MODERNO — EMPRESAS
   Escopo isolado por .admin-modern-body
========================================================= */

.admin-modern-body {
    --admin-primary: #6d28d9;
    --admin-primary-dark: #4c1d95;
    --admin-soft: #f5f3ff;
    --admin-bg: #f7f8fc;
    --admin-card: #ffffff;
    --admin-line: #e7e9f1;
    --admin-text: #111827;
    --admin-muted: #6b7280;
    min-height: 100vh;
    background:
        radial-gradient(circle at 78% 0%, rgba(109, 40, 217, .08), transparent 28%),
        var(--admin-bg);
}

.admin-modern-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 255px minmax(0, 1fr);
}

.admin-modern-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 22px 16px 18px;
    background: rgba(255, 255, 255, .96);
    border-right: 1px solid var(--admin-line);
    box-shadow: 12px 0 35px rgba(15, 23, 42, .035);
}

.admin-modern-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 8px 22px;
}

.admin-modern-brand > div:last-child,
.admin-modern-user > div:last-child {
    display: grid;
    gap: 2px;
}

.admin-modern-brand strong {
    font-size: 17px;
}

.admin-modern-brand small,
.admin-modern-user small {
    color: var(--admin-muted);
    font-size: 12px;
}

.admin-modern-brand-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, #7c3aed, #4c1d95);
    border-radius: 13px;
    box-shadow: 0 10px 24px rgba(109, 40, 217, .28);
    font-weight: 900;
}

.admin-modern-nav {
    display: grid;
    gap: 7px;
}

.admin-modern-nav a {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px 13px;
    color: #374151;
    border-radius: 12px;
    font-weight: 750;
    transition: .18s ease;
}

.admin-modern-nav a span {
    width: 24px;
    text-align: center;
    font-size: 18px;
}

.admin-modern-nav a:hover {
    color: var(--admin-primary);
    background: #faf8ff;
    transform: translateX(2px);
}

.admin-modern-nav a.active {
    color: var(--admin-primary);
    background: var(--admin-soft);
    box-shadow: inset 3px 0 0 var(--admin-primary);
}

.admin-modern-user {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 13px;
    margin-top: auto;
    background: #fff;
    border: 1px solid var(--admin-line);
    border-radius: 14px;
}

.admin-modern-user-avatar {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: var(--admin-primary);
    background: var(--admin-soft);
    border-radius: 12px;
    font-weight: 900;
}

.admin-modern-content {
    min-width: 0;
}

.admin-modern-body .admin-modern-topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    min-height: 74px !important;
    padding: 12px 30px !important;
    background: rgba(255, 255, 255, .88) !important;
    border-bottom: 1px solid var(--admin-line) !important;
    backdrop-filter: blur(16px);
}

.admin-modern-body .admin-modern-topbar > div:first-child {
    display: grid;
    gap: 3px;
}

.admin-modern-body .admin-modern-topbar > div:first-child strong {
    font-size: 16px;
}

.admin-modern-body .admin-modern-topbar .btn {
    min-height: 38px;
    padding-inline: 13px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(15, 23, 42, .04);
}

.admin-modern-body .admin-modern-topbar .btn:hover {
    color: var(--admin-primary);
    border-color: #c4b5fd;
}

.admin-modern-body .admin-modern-main {
    max-width: 1600px;
    padding: 30px;
}

.admin-modern-page-title {
    justify-content: flex-start;
    margin-bottom: 22px;
}

.admin-modern-page-title > div:last-child {
    display: grid;
    gap: 5px;
}

.admin-modern-page-title h1 {
    font-size: clamp(28px, 3vw, 38px);
    letter-spacing: -.035em;
}

.admin-modern-page-title p {
    margin: 0;
    color: var(--admin-muted);
}

.admin-modern-title-icon {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, #7c3aed, #4c1d95);
    border-radius: 17px;
    box-shadow: 0 14px 30px rgba(109, 40, 217, .22);
    font-size: 25px;
}

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

.admin-modern-stats article {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 5px;
    padding: 19px;
    background: rgba(255,255,255,.96);
    border: 1px solid var(--admin-line);
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .045);
}

.admin-modern-stats article::after {
    content: "";
    position: absolute;
    right: -18px;
    bottom: -28px;
    width: 82px;
    height: 82px;
    background: var(--admin-soft);
    border-radius: 50%;
}

.admin-modern-stats span {
    color: var(--admin-muted);
    font-size: 13px;
    font-weight: 700;
}

.admin-modern-stats strong {
    position: relative;
    z-index: 1;
    color: var(--admin-text);
    font-size: 29px;
    letter-spacing: -.04em;
}

.admin-modern-stats small {
    position: relative;
    z-index: 1;
}

.admin-modern-body .admin-stack {
    gap: 16px;
}

.admin-modern-body .admin-modern-card {
    padding: 23px;
    border: 1px solid var(--admin-line);
    border-radius: 18px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .05);
}

.admin-modern-card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    font-size: 20px;
}

.admin-modern-card-title span {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: var(--admin-primary);
    background: var(--admin-soft);
    border-radius: 10px;
    font-size: 16px;
}

.admin-modern-body input,
.admin-modern-body select,
.admin-modern-body textarea {
    min-height: 45px;
    border-color: #dfe3ec;
    border-radius: 11px;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.admin-modern-body input:focus,
.admin-modern-body select:focus,
.admin-modern-body textarea:focus {
    outline: 0;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 4px rgba(109, 40, 217, .10);
}

.admin-modern-body .btn {
    border-radius: 10px;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.admin-modern-body .btn:hover {
    transform: translateY(-1px);
}

.admin-modern-body .btn.primary {
    background: linear-gradient(135deg, #7c3aed, #5b21b6);
    border-color: transparent;
    box-shadow: 0 8px 18px rgba(109, 40, 217, .18);
}

.admin-modern-body .alert {
    border: 1px solid transparent;
    border-radius: 13px;
}

.admin-modern-body .alert.success {
    border-color: #bbf7d0;
}

.admin-modern-clients-card {
    padding-bottom: 12px !important;
}

.admin-modern-body .table-wrap {
    border: 1px solid var(--admin-line);
    border-radius: 14px;
    background: #fff;
}

.admin-modern-body table {
    min-width: 1180px;
}

.admin-modern-body th {
    padding: 13px 12px;
    color: #4b5563;
    background: #fafafe;
    border-bottom-color: var(--admin-line);
    font-size: 12px;
    letter-spacing: .025em;
    text-transform: uppercase;
}

.admin-modern-body td {
    padding: 13px 12px;
    border-bottom-color: #eef0f5;
}

.admin-modern-body tbody tr {
    transition: background .16s ease;
}

.admin-modern-body tbody tr:hover {
    background: #fcfbff;
}

.admin-modern-body .promo-summary span {
    color: #5b21b6;
    background: #f3e8ff;
}

.admin-modern-body .delete-modal-card {
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 20px;
}

@media (max-width: 1150px) {
    .admin-modern-shell {
        grid-template-columns: 210px minmax(0, 1fr);
    }

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

@media (max-width: 820px) {
    .admin-modern-shell {
        display: block;
    }

    .admin-modern-sidebar {
        position: relative;
        width: 100%;
        height: auto;
        padding: 12px;
        border-right: 0;
        border-bottom: 1px solid var(--admin-line);
    }

    .admin-modern-brand {
        padding-bottom: 12px;
    }

    .admin-modern-nav {
        display: flex;
        overflow-x: auto;
        padding-bottom: 3px;
    }

    .admin-modern-nav a {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .admin-modern-user {
        display: none;
    }

    .admin-modern-body .admin-modern-topbar {
        padding: 10px 15px !important;
    }

    .admin-modern-body .admin-modern-main {
        padding: 18px 14px;
    }
}

@media (max-width: 620px) {
    .admin-modern-stats {
        grid-template-columns: 1fr;
    }

    .admin-modern-page-title {
        align-items: flex-start;
    }

    .admin-modern-title-icon {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
    }

    .admin-modern-body .admin-modern-topbar {
        align-items: flex-start !important;
        flex-direction: column;
    }

    .admin-modern-body .admin-modern-topbar .admin-top-actions {
        width: 100% !important;
        overflow-x: auto;
    }

    .admin-modern-body .admin-modern-card {
        padding: 17px;
    }
}

/* ===== TEMA MAIS ESCURO / CONFORTÁVEL ===== */

body {
    background: #111827 !important;
    color: #e5e7eb !important;
}

.admin-layout,
.admin-content,
main,
.content,
.page-content {
    background: #111827 !important;
    color: #e5e7eb !important;
}

.sidebar,
.admin-sidebar,
.left-menu {
    background: #0b1220 !important;
    color: #e5e7eb !important;
    border-right: 1px solid #1f2937 !important;
}

.sidebar a,
.admin-sidebar a,
.left-menu a {
    color: #cbd5e1 !important;
}

.sidebar a:hover,
.admin-sidebar a:hover,
.left-menu a:hover,
.sidebar a.active,
.admin-sidebar a.active,
.left-menu a.active {
    background: #1f2937 !important;
    color: #ffffff !important;
    border-radius: 10px;
}

header,
.topbar,
.admin-topbar,
.navbar {
    background: #0f172a !important;
    color: #f8fafc !important;
    border-bottom: 1px solid #1f2937 !important;
}

.card,
.panel,
.box,
.admin-card,
section,
.form-card {
    background: #1f2937 !important;
    color: #e5e7eb !important;
    border: 1px solid #374151 !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25) !important;
}

h1, h2, h3, h4, h5, h6 {
    color: #f9fafb !important;
}

p, span, small, label {
    color: #cbd5e1 !important;
}

input,
select,
textarea {
    background: #111827 !important;
    color: #f9fafb !important;
    border: 1px solid #374151 !important;
    border-radius: 12px !important;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #22c55e !important;
    box-shadow: 0 0 0 3px rgba(34,197,94,0.15) !important;
    outline: none !important;
}

table {
    background: #1f2937 !important;
    color: #e5e7eb !important;
}

table th {
    background: #0f172a !important;
    color: #f9fafb !important;
}

table td {
    border-color: #374151 !important;
}

button,
.btn {
    border-radius: 12px !important;
    font-weight: 600;
}

.btn-primary,
button[type="submit"] {
    background: #22c55e !important;
    border-color: #22c55e !important;
    color: #ffffff !important;
}

.btn-primary:hover,
button[type="submit"]:hover {
    background: #16a34a !important;
    border-color: #16a34a !important;
}

.btn-danger {
    background: #dc2626 !important;
    border-color: #dc2626 !important;
    color: #ffffff !important;
}

.alert-success {
    background: rgba(34,197,94,0.15) !important;
    color: #bbf7d0 !important;
    border: 1px solid rgba(34,197,94,0.35) !important;
}

.alert-danger {
    background: rgba(239,68,68,0.15) !important;
    color: #fecaca !important;
    border: 1px solid rgba(239,68,68,0.35) !important;
}

/* LATERAL E TOPO NO MESMO TEMA ESCURO */

.admin-modern-sidebar {
    background: #111827 !important;
    border-right: 1px solid #273449 !important;
}

.admin-modern-brand strong,
.admin-modern-user strong {
    color: #ffffff !important;
}

.admin-modern-brand small,
.admin-modern-user small {
    color: #94a3b8 !important;
}

.admin-modern-nav a {
    color: #cbd5e1 !important;
}

.admin-modern-nav a:hover,
.admin-modern-nav a.active {
    color: #ffffff !important;
    background: #1e293b !important;
}

.admin-modern-user {
    background: #172033 !important;
    border-color: #273449 !important;
}

.admin-modern-topbar {
    background: #172033 !important;
    border-bottom-color: #273449 !important;
}

.admin-modern-topbar strong {
    color: #ffffff !important;
}

.admin-modern-topbar small {
    color: #94a3b8 !important;
}

.admin-modern-topbar .btn {
    color: #e5e7eb !important;
    background: #111827 !important;
    border-color: #374151 !important;
}

.admin-modern-topbar .btn.danger {
    color: #fca5a5 !important;
}

/* CARDS DE RESUMO ESCUROS */

.admin-modern-stats article {
    background: #1e293b !important;
    border-color: #334155 !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.20) !important;
}

.admin-modern-stats article::after {
    background: rgba(109, 40, 217, 0.16) !important;
}

.admin-modern-stats span {
    color: #94a3b8 !important;
}

.admin-modern-stats strong {
    color: #ffffff !important;
}

.admin-modern-stats small {
    color: #94a3b8 !important;
}

/* HOVER MAIS ESCURO */

.admin-modern-body tbody tr:hover {
    background: #263449 !important;
}

.admin-modern-nav a:hover,
.admin-modern-nav a.active {
    background: #273449 !important;
    color: #ffffff !important;
}

.admin-modern-body .btn:hover {
    background: #273449 !important;
    border-color: #475569 !important;
    color: #ffffff !important;
}

.admin-modern-body .btn.primary:hover,
.admin-modern-body button[type="submit"]:hover {
    background: #16a34a !important;
    border-color: #16a34a !important;
}

.admin-modern-body .btn.danger:hover,
.delete-store-button:hover {
    background: #b91c1c !important;
    border-color: #b91c1c !important;
    color: #ffffff !important;
}

/* REMOVE OS ÚLTIMOS ELEMENTOS BRANCOS DO PAINEL */

.admin-modern-body .admin-modern-topbar,
.admin-modern-body header.admin-modern-topbar {
    background: #1e293b !important;
    border-bottom-color: #334155 !important;
}

.admin-modern-body .admin-modern-topbar strong {
    color: #ffffff !important;
}

.admin-modern-body .admin-modern-topbar small {
    color: #94a3b8 !important;
}

/* Botões comuns, como Abrir */
.admin-modern-body table .btn:not(.primary):not(.danger):not(.subscription-button) {
    color: #e2e8f0 !important;
    background: #334155 !important;
    border-color: #475569 !important;
}

.admin-modern-body table .btn:not(.primary):not(.danger):not(.subscription-button):hover {
    color: #ffffff !important;
    background: #475569 !important;
}

/* Etiquetas que possuem estilo colocado direto no PHP */
.admin-modern-body table td span[style] {
    color: #d1fae5 !important;
    background: #14532d !important;
}

/* Resumo das promoções */
.admin-modern-body .promo-summary span {
    color: #ddd6fe !important;
    background: #4c1d95 !important;
}

/* Quadradinhos dos títulos dos cards */
.admin-modern-body .admin-modern-card-title span {
    color: #c4b5fd !important;
    background: #312e81 !important;
}

/* Campo de seleção aberto e opções */
.admin-modern-body select option {
    color: #f8fafc !important;
    background: #111827 !important;
}

/* =========================================================
   ADMIN MODERNO — COBRANÇAS E PLANOS
========================================================= */

.admin-modern-billing-body .billing-top-actions,
.admin-modern-plans-body .plans-admin-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-modern-billing-body .billing-settings,
.admin-modern-plans-body .plans-admin-stack {
    margin-bottom: 18px;
}

.admin-modern-billing-body .billing-grid {
    display: grid;
    grid-template-columns: minmax(320px, 430px) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.admin-modern-billing-body .billing-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 850;
}

.admin-modern-billing-body .billing-badge.paid {
    color: #bbf7d0 !important;
    background: #14532d !important;
}

.admin-modern-billing-body .billing-badge.pending {
    color: #fde68a !important;
    background: #78350f !important;
}

.admin-modern-billing-body .billing-badge.overdue {
    color: #fecaca !important;
    background: #7f1d1d !important;
}

.admin-modern-billing-body .billing-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.admin-modern-billing-body .billing-actions form {
    margin: 0;
}

.admin-modern-plans-body .plans-admin-stack {
    display: grid;
    gap: 18px;
}

.admin-modern-plans-body .plans-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.admin-modern-plans-body .plans-admin-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.admin-modern-plans-body .plans-admin-stat {
    position: relative;
    overflow: hidden;
    padding: 18px;
    color: #cbd5e1 !important;
    background: #172033 !important;
    border: 1px solid #334155 !important;
    border-radius: 15px;
}

.admin-modern-plans-body .plans-admin-stat::after {
    content: "";
    position: absolute;
    right: -18px;
    bottom: -24px;
    width: 78px;
    height: 78px;
    background: rgba(109, 40, 217, .18);
    border-radius: 50%;
}

.admin-modern-plans-body .plans-admin-stat strong {
    position: relative;
    z-index: 1;
    display: block;
    margin-top: 6px;
    color: #ffffff !important;
    font-size: 28px;
}

.admin-modern-plans-body .plans-admin-benefits {
    margin: 0 0 22px;
    padding-left: 20px;
    color: #cbd5e1;
    line-height: 1.85;
}

.admin-modern-billing-body .admin-modern-card,
.admin-modern-plans-body .admin-modern-card {
    background: #1e293b !important;
    border-color: #334155 !important;
}

.admin-modern-billing-body .table-wrap,
.admin-modern-plans-body .table-wrap {
    border-color: #334155 !important;
    background: #172033 !important;
}

.admin-modern-billing-body table th,
.admin-modern-plans-body table th {
    color: #cbd5e1 !important;
    background: #0f172a !important;
}

.admin-modern-billing-body table td,
.admin-modern-plans-body table td {
    color: #e5e7eb !important;
    border-bottom-color: #334155 !important;
}

.admin-modern-billing-body tbody tr:hover,
.admin-modern-plans-body tbody tr:hover {
    background: #263449 !important;
}

.admin-modern-billing-body .empty,
.admin-modern-plans-body .empty {
    color: #94a3b8 !important;
}

.admin-modern-billing-body .btn:not(.primary):not(.danger),
.admin-modern-plans-body .btn:not(.primary):not(.danger) {
    color: #e2e8f0 !important;
    background: #334155 !important;
    border-color: #475569 !important;
}

.admin-modern-billing-body .btn:not(.primary):not(.danger):hover,
.admin-modern-plans-body .btn:not(.primary):not(.danger):hover {
    color: #ffffff !important;
    background: #475569 !important;
}

.admin-modern-plans-body .check {
    color: #e5e7eb !important;
}

.admin-modern-plans-body .check input {
    accent-color: #22c55e;
}

@media (max-width: 950px) {
    .admin-modern-billing-body .billing-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .admin-modern-plans-body .plans-admin-stats {
        grid-template-columns: 1fr;
    }
}
