@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap");

body {
    background: #f3f5f9;
    color: #1d2736;
}

#meka_body {
    min-height: 100vh;
}

.owner-shell {
    min-height: 100vh;
    font-size: 15px;
    line-height: 1.4;
}

.owner-sidebar {
    background: linear-gradient(180deg, #111827, #1f2937);
    color: #f8fafc;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.owner-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.owner-brand-main {
    display: flex;
    align-items: center;
    gap: 12px;
}

.owner-brand-badge {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, #ec4899, #f97316);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}

.owner-brand strong,
.owner-sidebar-foot strong {
    display: block;
    font-size: 0.98rem;
}

.owner-brand span,
.owner-sidebar-foot span {
    font-size: 0.8rem;
    color: #cbd5e1;
}

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

.owner-cafe-switcher {
    display: flex;
    align-items: end;
    gap: 8px;
}

.owner-cafe-switcher-label {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.owner-cafe-switcher-label span {
    font-size: 0.78rem;
    color: #cbd5e1;
    font-weight: 600;
}

.owner-cafe-select {
    width: 100%;
}

.owner-cafe-add-btn {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.owner-sidebar-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: #f8fafc;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.owner-sidebar-toggle.active {
    background: rgba(255, 255, 255, 0.14);
}

.owner-nav-link {
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: #dbe4f0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
}

.owner-nav-link.active {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.owner-sidebar-foot {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin-top: auto;
}

.owner-sidebar-user {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.owner-sidebar-user-meta {
    min-width: 0;
    flex: 1 1 auto;
}

.owner-sidebar-user-meta span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.owner-sidebar-user-btn {
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: #f8fafc;
}

.owner-sidebar-user-btn:hover {
    background: rgba(255, 255, 255, 0.14);
}

.owner-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(15, 23, 42, 0.38);
    backdrop-filter: blur(4px);
}

.owner-modal-card {
    width: min(760px, calc(100vw - 32px));
    max-height: calc(100vh - 48px);
    overflow: auto;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.22);
    padding: 18px;
}

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

.owner-modal-head strong {
    display: block;
    font-size: 1.05rem;
    color: #111827;
}

.owner-modal-head small {
    display: block;
    margin-top: 4px;
    color: #64748b;
}

.owner-modal-card .owner-card {
    margin: 0;
    box-shadow: none;
    border: 1px solid #e2e8f0;
}

.owner-main {
    padding: 22px;
}

.owner-login-card h1,
.owner-card h3 {
    margin: 0;
}

.owner-card-head p,
.owner-login-card p {
    margin: 6px 0 0;
    color: #64748b;
}

.owner-status-pill,
.owner-chip-btn,
.owner-primary-btn,
.owner-secondary-btn,
.owner-tag {
    border-radius: 12px;
}

.owner-status-pill {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #f8fafc;
    padding: 8px 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.owner-status-link {
    cursor: pointer;
    transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.owner-status-link:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.18);
}

.owner-sidebar-stats {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
}

.owner-sidebar-stats .owner-status-pill {
    flex: 1 1 calc(50% - 4px);
    justify-content: center;
    text-align: center;
}

.owner-card {
    background: #ffffff;
    border: 1px solid #dde5f0;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.05);
}

.owner-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.owner-table-qr-card {
    border: 1px solid #dde5f0;
    border-radius: 16px;
    background: #f8fafc;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%;
}

.owner-table-qr-preview {
    border: 1px dashed #d6deea;
    border-radius: 14px;
    background: #ffffff;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.owner-table-qr-preview-large {
    min-height: 320px;
}

.owner-table-qr-preview img {
    width: 100%;
    max-width: 280px;
    height: auto;
    display: block;
}

.owner-table-qr-empty {
    color: #64748b;
    text-align: center;
    font-size: 0.9rem;
    line-height: 1.5;
}

.owner-table-qr-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.owner-code-box {
    border: 1px solid #dde5f0;
    border-radius: 12px;
    background: #ffffff;
    color: #475569;
    font-size: 0.76rem;
    line-height: 1.45;
    padding: 10px 12px;
    word-break: break-all;
}

.owner-tab-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.owner-card-tools {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.owner-header-select {
    min-width: 190px;
    border: 1px solid #d6deea;
    border-radius: 10px;
    background: #f8fafc;
    padding: 10px 12px;
    font: inherit;
    color: #0f172a;
}

.owner-header-select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.owner-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.owner-tab-btn span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.12);
    color: inherit;
    font-size: 0.74rem;
}

.owner-tab-btn.active {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
}

.owner-tab-btn.active span {
    background: rgba(255, 255, 255, 0.18);
}

.owner-stat-box {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #f8fbff;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.owner-stat-box strong {
    font-size: 1.2rem;
}

.owner-stat-box span,
.owner-highlight,
.owner-simple-item span,
.owner-table-row span,
.owner-order-head span,
.owner-login-foot {
    color: #64748b;
}

.owner-highlight {
    margin-top: 12px;
    font-weight: 600;
}

.owner-simple-list,
.owner-table,
.owner-order-list {
    row-gap: 12px;
}

.owner-subscription-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.owner-subscription-summary .owner-simple-item {
    height: 100%;
}

.owner-payments-mobile-toggle {
    display: none;
    margin-top: 14px;
}

.owner-payments-mobile-toggle .owner-secondary-btn {
    width: 100%;
}

.owner-product-list-scroll {
    align-content: start;
}

.owner-simple-item,
.owner-table-row,
.owner-order-card {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 12px 14px;
    background: #fbfdff;
}

@media (min-width: 1200px) {
    .owner-product-list-card {
        display: block;
        flex-direction: column;
        height: calc(100vh - 18px);
        overflow-y: auto;
    }

    .owner-product-list-scroll {
        flex: 1 1 auto;
        min-height: 0;
        min-width: 0;
        overflow-y: auto;
        overflow-x: hidden;
        padding-right: 6px;
    }
}

@media (min-width: 1200px) and (max-width: 1400px) {
    .owner-product-list-card .owner-table-row {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .owner-product-list-card .owner-table-row .owner-product-meta {
        width: 100%;
    }

    .owner-product-list-card .owner-table-row .owner-row-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

.owner-simple-item,
.owner-table-row,
.owner-order-head,
.owner-order-item,
.owner-order-foot,
.owner-row-actions,
.owner-actions,
.owner-inline-form {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.owner-simple-item strong,
.owner-table-row strong,
.owner-order-head strong {
    display: block;
    margin-bottom: 4px;
}

.owner-order-head-main {
    flex: 1 1 auto;
    min-width: 0;
}

.owner-order-head-actions {
    margin-left: auto;
    justify-content: flex-end;
    flex: 0 0 auto;
}

.owner-order-head-actions.owner-row-actions {
    flex-direction: row;
    align-items: center;
}

.owner-order-foot {
    flex-direction: row;
    align-items: center;
}

.owner-product-meta {
    display: flex;
    gap: 10px;
    align-items: center;
}

.owner-product-text {
    min-width: 0;
    flex: 1;
}

.owner-product-text span {
    display: block;
}

.owner-product-text small {
    display: block;
    margin-top: 4px;
    color: #64748b;
}

.owner-product-thumb,
.owner-image-preview {
    border-radius: 12px;
    overflow: hidden;
    background: #eef4ff;
    border: 1px solid #dbe4f2;
}

.owner-product-thumb {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111111;
    font-size: 1.1rem;
}

.owner-product-thumb img,
.owner-image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.owner-brand-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: inherit;
}

.owner-align-right {
    text-align: right;
}

.owner-chip-btn,
.owner-primary-btn,
.owner-secondary-btn,
.owner-tag {
    border: 0;
    cursor: pointer;
    font-weight: 600;
}

.owner-chip-btn {
    background: #eef4ff;
    color: #2563eb;
    padding: 8px 10px;
}

.owner-chip-btn.danger {
    background: #fff1f2;
    color: #dc2626;
}

.owner-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.owner-field span {
    font-size: 0.84rem;
    font-weight: 600;
    color: #334155;
}

.owner-field input,
.owner-field textarea,
.owner-field select,
.owner-inline-form input {
    width: 100%;
    border: 1px solid #d6deea;
    border-radius: 12px;
    background: #f8fafc;
    padding: 10px 12px;
    font: inherit;
    color: #0f172a;
}

.owner-field textarea {
    resize: vertical;
    min-height: 96px;
}

.owner-field select[multiple] {
    min-height: 110px;
}

.owner-field-note {
    display: block;
    margin-top: 6px;
    color: #64748b;
    font-size: 0.74rem;
}

.owner-field-hint {
    display: block;
    margin-top: 6px;
    color: #64748b;
    font-size: 0.74rem;
    line-height: 1.4;
    word-break: break-all;
}

.owner-field input:focus,
.owner-field textarea:focus,
.owner-field select:focus,
.owner-inline-form input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.owner-inline-copy-field {
    display: flex;
    align-items: stretch;
    gap: 10px;
}

.owner-inline-copy-field input {
    flex: 1 1 auto;
    min-width: 0;
}

.owner-toggle-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.owner-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.owner-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.owner-toggle span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 24px;
    padding: 0;
    color: #334155;
    font-weight: 600;
    transition: color 0.18s ease;
}

.owner-toggle span::before {
    content: "";
    width: 18px;
    height: 18px;
    border-radius: 5px;
    border: 1.5px solid #c0c8d4;
    background: #ffffff;
    transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.owner-toggle input:checked + span {
    color: #111111;
}

.owner-toggle input:checked + span::before {
    background: #111111;
    border-color: #111111;
    transform: scale(1.05);
    box-shadow: inset 0 0 0 4px #ffffff;
}

.owner-toggle:hover span {
    color: #111111;
}

.owner-toggle:hover span::before {
    border-color: #111111;
}

.owner-radio-group {
    display: grid;
    gap: 10px;
}

.owner-radio-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid #d9e0ea;
    border-radius: 12px;
    background: #ffffff;
    color: #334155;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.owner-radio-card input {
    accent-color: #111111;
}

.owner-radio-card:hover {
    border-color: #111111;
}

.owner-radio-card:has(input:checked) {
    border-color: #111111;
    background: #f8fafc;
    box-shadow: 0 0 0 1px rgba(17, 17, 17, 0.08);
}

.owner-actions {
    justify-content: flex-end;
    margin-top: 4px;
}

.owner-actions-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.owner-profile-popup-form {
    padding-top: 4px;
}

.owner-inline-meta {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    flex-direction: column;
    text-align: right;
}

.owner-status-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 88px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    background: #eef2f7;
    color: #334155;
}

.owner-status-chip.paid {
    background: #dcfce7;
    color: #166534;
}

.owner-status-chip.failed {
    background: #fee2e2;
    color: #991b1b;
}

.owner-status-chip.pending {
    background: #fef3c7;
    color: #92400e;
}

.owner-primary-btn,
.owner-secondary-btn {
    padding: 10px 14px;
}

.owner-primary-btn {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
}

.owner-secondary-btn {
    background: #eef2f7;
    color: #334155;
}

.owner-subcard {
    border: 1px dashed #d1d9e6;
    border-radius: 14px;
    background: #fbfdff;
    padding: 14px;
}

.owner-subcard-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.owner-subcard-head strong {
    display: block;
}

.owner-subcard-head small,
.owner-empty-inline {
    color: #64748b;
}

.owner-image-preview {
    width: 160px;
    height: 160px;
}

.owner-image-preview-sm {
    width: 120px;
    height: 120px;
}

.owner-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111111;
    font-size: 2rem;
}

.owner-image-placeholder-sm {
    font-size: 1.5rem;
}

.owner-image-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.owner-logo-inputs {
    display: flex;
    align-items: flex-end;
    gap: 12px;
}

.owner-logo-url-field {
    flex: 1 1 auto;
    min-width: 0;
}

.owner-file-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
}

.owner-file-btn input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

@media (max-width: 720px) {
    .owner-logo-inputs {
        flex-direction: column;
        align-items: stretch;
    }

    .owner-file-btn {
        width: 100%;
    }
}

.owner-inline-form {
    gap: 10px;
    align-items: stretch;
    margin-bottom: 14px;
}

.owner-inline-form input {
    flex: 1;
}

.owner-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.owner-tag {
    background: #eef4ff;
    color: #1d4ed8;
    padding: 8px 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.owner-language-tools {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.owner-tag-remove {
    border: 0;
    background: transparent;
    color: currentColor;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
}

.owner-quick-call-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 14px;
}

.owner-quick-call-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.owner-quick-call-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(17, 17, 20, 0.08);
    background: var(--owner-surface-strong);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.owner-quick-call-item span {
    color: var(--owner-text);
}

.owner-quick-call-lock {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(17, 17, 20, 0.08);
    color: var(--owner-text-soft);
    font-family: "IBM Plex Mono", monospace;
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.owner-order-head select {
    border: 1px solid #d6deea;
    border-radius: 10px;
    background: #ffffff;
    padding: 8px 10px;
    font: inherit;
}

.owner-order-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.owner-order-note {
    margin-top: 12px;
    color: #475569;
}

.owner-icon-btn {
    min-width: 40px;
    width: 40px;
    height: 40px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.owner-feedback-contact {
    margin-top: 10px;
    color: #334155;
}

.owner-order-foot {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #d7dfeb;
}

.owner-empty-state {
    border: 1px dashed #d1d9e6;
    border-radius: 14px;
    background: #fbfdff;
    padding: 16px;
    color: #64748b;
    font-weight: 600;
}

.owner-alert {
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 16px;
    font-weight: 600;
}

.owner-alert-success {
    background: #edfdf3;
    border: 1px solid #bbf7d0;
    color: #15803d;
}

.owner-alert-danger {
    background: #fff1f2;
    border: 1px solid #fecdd3;
    color: #be123c;
}

.owner-login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.owner-login-card {
    width: min(520px, 100%);
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid #dde5f0;
    padding: 24px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

.owner-login-badge {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    background: #eef4ff;
    color: #1d4ed8;
    font-weight: 700;
    margin-bottom: 14px;
}

.owner-login-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 18px;
}

.owner-login-foot {
    text-align: center;
    font-size: 0.92rem;
}

.owner-login-foot a {
    color: #111111;
    font-weight: 700;
}

:root {
    --owner-bg: #ebebed;
    --owner-surface: rgba(255, 255, 255, 0.72);
    --owner-surface-strong: rgba(255, 255, 255, 0.86);
    --owner-surface-dark: rgba(15, 15, 18, 0.9);
    --owner-surface-soft: rgba(245, 245, 246, 0.9);
    --owner-border: rgba(17, 17, 20, 0.1);
    --owner-border-strong: rgba(17, 17, 20, 0.16);
    --owner-text: #111114;
    --owner-text-soft: #5f6368;
    --owner-shadow: 0 28px 80px rgba(10, 10, 12, 0.08);
    --owner-shadow-soft: 0 18px 40px rgba(10, 10, 12, 0.06);
}

body {
    font-family: "IBM Plex Sans", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.95), transparent 32%),
        radial-gradient(circle at bottom right, rgba(24, 24, 27, 0.08), transparent 24%),
        linear-gradient(180deg, #f7f7f8 0%, #ececef 46%, #e7e7ea 100%);
    color: var(--owner-text);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(17, 17, 20, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(17, 17, 20, 0.025) 1px, transparent 1px);
    background-size: 26px 26px;
    mask-image: radial-gradient(circle at center, black 35%, transparent 85%);
    opacity: 0.7;
}

#meka_body {
    position: relative;
    overflow-x: clip;
}

.owner-shell {
    position: relative;
    isolation: isolate;
    color: var(--owner-text);
}

.owner-shell::before {
    content: "";
    position: absolute;
    inset: 24px;
    border-radius: 40px;
    background: rgba(255, 255, 255, 0.32);
    border: 1px solid rgba(255, 255, 255, 0.38);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
    z-index: -1;
}

.owner-sidebar {
    position: relative;
    background:
        linear-gradient(180deg, rgba(19, 19, 22, 0.96) 0%, rgba(29, 29, 34, 0.92) 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(26px);
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.04);
    position: sticky;
    top: 0;
    height: 100vh;
}

.owner-brand-badge {
    color: #101012;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(184, 184, 189, 0.78));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.7),
        0 10px 24px rgba(0, 0, 0, 0.24);
}

.owner-brand strong,
.owner-sidebar-foot strong {
    letter-spacing: -0.03em;
}

.owner-brand span,
.owner-sidebar-foot span {
    color: rgba(255, 255, 255, 0.62);
}

.owner-nav-link {
    font-family: "IBM Plex Mono", monospace;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid transparent;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.owner-nav-link:hover {
    transform: translateX(2px);
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.05);
}

.owner-nav-link.active {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06));
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.owner-status-pill {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.1);
    color: #fafafa;
    font-family: "IBM Plex Mono", monospace;
    letter-spacing: 0.04em;
}

.owner-main {
    position: relative;
}

.owner-console-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 18px;
    padding: 24px;
    border: 1px solid rgba(17, 17, 20, 0.08);
    border-radius: 30px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.5)),
        linear-gradient(135deg, rgba(255, 255, 255, 0.65), rgba(17, 17, 20, 0.04));
    box-shadow: var(--owner-shadow);
    backdrop-filter: blur(24px);
}

.owner-console-hero::after {
    content: "";
    position: absolute;
    inset: auto -12% -48% 48%;
    height: 220px;
    background: radial-gradient(circle, rgba(17, 17, 20, 0.12), transparent 70%);
    pointer-events: none;
}

.owner-console-copy {
    position: relative;
    z-index: 1;
    max-width: 780px;
}

.owner-console-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--owner-text-soft);
    font-family: "IBM Plex Mono", monospace;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.owner-console-kicker::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #111114;
    box-shadow: 0 0 0 6px rgba(17, 17, 20, 0.08);
}

.owner-console-copy h1 {
    margin: 0;
    max-width: 680px;
    font-size: clamp(2rem, 3.2vw, 3.4rem);
    line-height: 0.96;
    letter-spacing: -0.06em;
    font-weight: 700;
}

.owner-console-copy p {
    margin: 12px 0 0;
    max-width: 720px;
    color: var(--owner-text-soft);
    font-size: 0.98rem;
}

.owner-console-meta {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 0;
}

.owner-console-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(17, 17, 20, 0.08);
    color: #111114;
    font-family: "IBM Plex Mono", monospace;
    font-size: 12px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: 0 12px 24px rgba(17, 17, 20, 0.05);
}

.owner-console-chip.dark {
    background: rgba(17, 17, 20, 0.92);
    color: #f5f5f5;
    border-color: rgba(255, 255, 255, 0.08);
}

.owner-console-stats {
    position: relative;
    z-index: 1;
    margin-top: 22px;
}

.owner-console-stat {
    height: 100%;
    padding: 16px 18px;
    border-radius: 22px;
    border: 1px solid rgba(17, 17, 20, 0.08);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: var(--owner-shadow-soft);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.owner-console-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 46px rgba(17, 17, 20, 0.08);
    border-color: rgba(17, 17, 20, 0.16);
}

.owner-console-stat span {
    display: block;
    color: var(--owner-text-soft);
    font-family: "IBM Plex Mono", monospace;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.owner-console-stat strong {
    display: block;
    margin-top: 10px;
    font-size: clamp(1.3rem, 2vw, 2rem);
    letter-spacing: -0.05em;
}

.owner-console-stat-dark {
    background: linear-gradient(180deg, rgba(17, 17, 20, 0.95), rgba(35, 35, 39, 0.92));
    color: #f5f5f5;
    border-color: rgba(255, 255, 255, 0.08);
}

.owner-console-stat-dark span {
    color: rgba(255, 255, 255, 0.62);
}

.owner-console-stat-muted {
    background: linear-gradient(180deg, rgba(242, 242, 243, 0.96), rgba(232, 232, 235, 0.96));
}

.owner-card {
    background: var(--owner-surface);
    border: 1px solid rgba(17, 17, 20, 0.08);
    box-shadow: var(--owner-shadow-soft);
    backdrop-filter: blur(24px);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.owner-card:hover {
    transform: translateY(-2px);
    border-color: rgba(17, 17, 20, 0.14);
    box-shadow: 0 24px 54px rgba(17, 17, 20, 0.08);
}

.owner-card h3,
.owner-login-card h1 {
    letter-spacing: -0.05em;
}

.owner-card h3 {
    font-size: 1.1rem;
}

.owner-card-head p,
.owner-login-card p,
.owner-product-text span,
.owner-highlight,
.owner-order-note,
.owner-feedback-contact {
    color: var(--owner-text-soft);
}

.owner-card-tools,
.owner-tab-bar {
    gap: 10px;
}

.owner-header-select,
.owner-field input,
.owner-field textarea,
.owner-field select,
.owner-inline-form input,
.owner-order-head select {
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(17, 17, 20, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.owner-header-select,
.owner-order-head select {
    font-family: "IBM Plex Mono", monospace;
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.owner-field input:focus,
.owner-field textarea:focus,
.owner-field select:focus,
.owner-inline-form input:focus,
.owner-header-select:focus,
.owner-order-head select:focus {
    border-color: rgba(17, 17, 20, 0.28);
    box-shadow:
        0 0 0 4px rgba(17, 17, 20, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.owner-primary-btn,
.owner-secondary-btn,
.owner-chip-btn,
.owner-tag {
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.owner-primary-btn {
    background: linear-gradient(180deg, #1d1d20 0%, #0f0f11 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #ffffff;
    box-shadow: 0 14px 24px rgba(17, 17, 20, 0.18);
}

.owner-primary-btn:hover,
.owner-secondary-btn:hover,
.owner-chip-btn:hover,
.owner-tag:hover {
    transform: translateY(-1px);
}

.owner-secondary-btn,
.owner-chip-btn,
.owner-tag {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(17, 17, 20, 0.08);
    color: #151518;
}

.owner-chip-btn.danger {
    background: rgba(17, 17, 20, 0.95);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.08);
}

.owner-tab-btn.active {
    background: linear-gradient(180deg, #151518 0%, #09090b 100%);
    border-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.owner-tab-btn span {
    background: rgba(17, 17, 20, 0.08);
}

.owner-tab-btn.active span {
    background: rgba(255, 255, 255, 0.14);
}

.owner-stat-box,
.owner-simple-item,
.owner-table-row,
.owner-order-card,
.owner-subcard,
.owner-empty-state {
    background: var(--owner-surface-strong);
    border-color: rgba(17, 17, 20, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.owner-table-row,
.owner-simple-item,
.owner-order-card {
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.owner-table-row:hover,
.owner-simple-item:hover,
.owner-order-card:hover {
    transform: translateY(-1px);
    border-color: rgba(17, 17, 20, 0.14);
    box-shadow: 0 16px 30px rgba(17, 17, 20, 0.06);
}

.owner-product-thumb,
.owner-image-preview {
    background: linear-gradient(180deg, #ffffff 0%, #ececee 100%);
    border-color: rgba(17, 17, 20, 0.08);
}

.owner-image-preview {
    box-shadow: 0 18px 32px rgba(17, 17, 20, 0.08);
}

.owner-alert {
    background: rgba(17, 17, 20, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #f5f5f5;
    box-shadow: 0 16px 34px rgba(17, 17, 20, 0.12);
}

.owner-alert-success,
.owner-alert-danger {
    background: rgba(17, 17, 20, 0.92);
    border-color: rgba(255, 255, 255, 0.08);
    color: #f5f5f5;
}

.owner-login-wrap {
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.9), transparent 32%),
        linear-gradient(180deg, #f4f4f5 0%, #e6e6e9 100%);
}

.owner-login-card {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.78);
    border-color: rgba(17, 17, 20, 0.08);
    box-shadow: var(--owner-shadow);
    backdrop-filter: blur(24px);
}

.owner-login-card::after {
    content: "";
    position: absolute;
    inset: auto -10% -28% auto;
    width: 240px;
    height: 240px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(17, 17, 20, 0.1), transparent 68%);
    pointer-events: none;
}

.owner-login-badge {
    background: rgba(17, 17, 20, 0.96);
    color: #f5f5f5;
    font-family: "IBM Plex Mono", monospace;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

@media (max-width: 1080px) {
    .owner-sidebar-foot {
        margin-top: 0;
    }

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

    .owner-sidebar-toggle {
        display: inline-flex;
    }

    .owner-nav {
        display: none;
        padding: 10px;
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.08);
    }

    .owner-cafe-switcher {
        width: 100%;
    }

    .owner-nav.is-open {
        display: flex;
    }
}

@media (max-width: 720px) {
    .owner-shell::before {
        inset: 12px;
        border-radius: 28px;
    }

    .owner-main {
        padding: 18px 0;
    }

    .owner-console-hero {
        padding: 18px;
        border-radius: 24px;
    }

    .owner-console-copy h1 {
        font-size: 1.9rem;
    }

    .owner-console-meta {
        gap: 8px;
    }

    .owner-topbar,
    .owner-card-head,
    .owner-simple-item,
    .owner-table-row,
    .owner-order-item,
    .owner-order-foot,
    .owner-quick-call-item,
    .owner-row-actions,
    .owner-actions,
    .owner-inline-form {
        flex-direction: column;
        align-items: stretch;
    }

    .owner-order-foot {
        flex-direction: row;
        align-items: center;
    }

    .owner-table-row .owner-row-actions {
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        flex-wrap: wrap;
    }

    .owner-table-qr-card .owner-row-actions {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        flex-wrap: nowrap;
        gap: 8px;
    }

    .owner-product-tools {
        flex-direction: row;
        align-items: center;
        flex-wrap: nowrap;
        width: 100%;
    }

    .owner-product-tools .owner-header-select,
    .owner-product-tools .owner-primary-btn {
        min-width: 0;
    }

    .owner-product-tools .owner-header-select {
        flex: 1 1 auto;
    }

    .owner-product-tools .owner-primary-btn {
        flex: 0 0 auto;
    }

    .owner-subscription-summary {
        grid-template-columns: 1fr;
    }

    .owner-settings-content-head {
        flex-direction: column;
        align-items: stretch;
    }

    .owner-settings-content-head .owner-header-select {
        width: 100%;
    }

    .owner-payments-mobile-toggle {
        display: block;
    }

    .owner-mobile-hidden {
        display: none;
    }
}
