.auth-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 16px;
}

.auth-card,
.closed-panel,
.live-order-card,
.menu-item-admin,
.plan-detail-card,
.qr-table-card,
.modal-card,
.count-icon-chip {
    border: 1px solid #e3ebf2;
}

.auth-card,
.closed-panel {
    width: min(100%, 520px);
    text-align: center;
}

.auth-card .brand-icon,
.closed-panel .brand-icon {
    margin-bottom: 16px;
}

.workspace-topbar,
.workspace-actions,
.order-action-row,
.admin-restaurant-meta,
.tag-row,
.stats-grid,
.stats-filter-grid,
.menu-editor-layout,
.menu-manager-grid,
.qr-table-grid,
.modal-actions {
    display: grid;
    gap: 16px;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1600;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background: rgba(7, 18, 31, 0.64);
    backdrop-filter: blur(7px);
}

.modal-shell {
    width: min(100%, 580px);
}

.modal-card {
    padding: 24px;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 34px 90px rgba(15, 23, 42, 0.32);
}

.modal-hero {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.modal-copy h3 {
    margin: 0 0 8px;
    font-size: 1.25rem;
}

.modal-copy p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.modal-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 18px;
}

.modal-icon .icon {
    width: 24px;
    height: 24px;
}

.modal-icon-info {
    background: rgba(15, 109, 174, 0.14);
    color: #0f6dae;
}

.modal-icon-warning {
    background: rgba(245, 158, 11, 0.14);
    color: #b45309;
}

.modal-icon-danger {
    background: rgba(220, 38, 38, 0.14);
    color: #b91c1c;
}

.modal-icon-success {
    background: rgba(34, 197, 94, 0.14);
    color: #15803d;
}

.modal-field {
    margin-top: 18px;
}

.modal-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
}

.modal-actions {
    margin-top: 22px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.workspace-topbar {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 18px;
}

.workspace-actions {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.live-order-card {
    background: #fffaf3;
}

.order-action-row {
    margin-top: 16px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.order-reason {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #fff4e6;
    color: #b45309;
}

.menu-editor-layout {
    grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr);
    align-items: start;
}

.menu-manager-grid,
.qr-table-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.menu-status,
.feature-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
}

.menu-status-published {
    background: rgba(34, 197, 94, 0.14);
    color: #15803d;
}

.menu-status-draft {
    background: rgba(245, 158, 11, 0.16);
    color: #b45309;
}

.feature-tag {
    background: #f4f7fb;
    color: #35506b;
}

.plan-detail-card {
    margin-top: 16px;
    padding: 16px;
    border-radius: 18px;
    background: #f8fbfd;
}

.admin-restaurant-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 10px;
    font-size: 0.8rem;
    color: var(--muted);
}

.qr-table-card {
    padding: 16px;
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.qr-brand-card {
    display: grid;
    gap: 14px;
    text-align: center;
    align-content: start;
}

.qr-brand-top {
    display: grid;
    gap: 8px;
    justify-items: center;
}

.qr-brand-logo {
    width: 96px;
    height: auto;
}

.qr-brand-app {
    color: var(--text);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.qr-brand-caption {
    color: #35506b;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.5;
}

.qr-brand-box {
    margin-bottom: 0;
}

.qr-note {
    margin: 0;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.6;
}

.qr-link-strong {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.6;
}

.qr-table-card .summary-row strong,
.qr-table-card .summary-row span {
    color: var(--text);
}

.qr-table-card a,
.home-simple-restaurant a,
.restaurant-row a {
    color: var(--blue);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.qr-link {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.count-icon-chip {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 18px;
    background: #f8fbfd;
}

.count-icon-chip strong {
    font-size: 1.3rem;
    line-height: 1;
    color: var(--text);
}

.danger-chip {
    background: #fee2e2;
    color: #b91c1c;
}

.cta-danger {
    background: #dc2626;
    color: #fff;
}

.cta-danger:hover {
    background: #b91c1c;
}

.cta-button[disabled] {
    opacity: 0.52;
    pointer-events: none;
}

.text-area {
    min-height: 120px;
    resize: vertical;
}

.closed-panel p,
.auth-card p {
    color: var(--muted);
    line-height: 1.7;
}

.status-pill.status-confirmed,
.status-confirmed {
    background: rgba(15, 109, 174, 0.14);
    color: #0f6dae;
}

.status-pill.status-cancelled,
.status-cancelled {
    background: rgba(239, 68, 68, 0.16);
    color: #b91c1c;
}

.stat-badge.red {
    background: rgba(239, 68, 68, 0.12);
    color: #b91c1c;
}

@media (min-width: 960px) {
    .workspace-topbar {
        grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
        align-items: center;
    }
}

@media (max-width: 900px) {
    .menu-editor-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .workspace-actions,
    .order-action-row,
    .stats-grid,
    .stats-filter-grid,
    .admin-restaurant-meta,
    .modal-actions {
        grid-template-columns: 1fr;
    }
}
