:root {
    --qr-brand: #0f9f6e;
    --qr-brand-dark: #087a53;
    --qr-brand-rgb: 15, 159, 110;
    --qr-brand-soft: #eaf8f2;
    --qr-navy: #17202f;
    --qr-text: #344054;
    --qr-muted: #667085;
    --qr-border: #e4e9f0;
    --qr-surface: #ffffff;
    --qr-page: #f5f7fa;
    --qr-danger: #d92d20;
    --qr-warning: #f59e0b;
    --qr-info: #3b82f6;
    --qr-radius-sm: 8px;
    --qr-radius: 12px;
    --qr-radius-lg: 16px;
    --qr-shadow-sm: 0 2px 8px rgba(16, 24, 40, .04);
    --qr-shadow: 0 10px 30px rgba(16, 24, 40, .07);
}

html,
body {
    min-height: 100%;
    background: var(--qr-page);
    color: var(--qr-text);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
    font-size: 14px;
}

.content-page {
    min-height: 100vh;
}

.content {
    min-height: calc(100vh - 136px);
}

/* UBold shell */
.app-menu {
    background: linear-gradient(180deg, #15261f 0%, #102019 100%);
}

.qr-brand {
    height: 70px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 0 22px;
    color: #fff !important;
    text-decoration: none;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -.03em;
}

.qr-brand:hover {
    color: #fff !important;
}

.qr-brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 12px;
    background: linear-gradient(135deg, #2bd39a, var(--qr-brand));
    box-shadow: 0 9px 24px rgba(var(--qr-brand-rgb), .28);
    color: #fff;
    font-weight: 900;
}

.qr-brand small {
    display: block;
    margin-top: 1px;
    color: #a9beb5;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.user-box {
    padding: 22px 18px 18px;
}

.user-box .qr-avatar {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    margin: 0 auto 11px;
    border: 3px solid rgba(255, 255, 255, .13);
    border-radius: 50%;
    background: linear-gradient(135deg, #2bd39a, #096b4b);
    color: #fff;
    font-size: 20px;
    font-weight: 800;
}

.app-menu .menu-title {
    margin-top: 12px;
    color: #71887e;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
}

.app-menu .menu-link {
    margin: 3px 10px;
    padding: 10px 14px;
    border-radius: 9px;
    color: #bfd0c8;
    transition: background-color .18s ease, color .18s ease, transform .18s ease;
}

.app-menu .menu-link:hover,
.app-menu .menu-link.active {
    background: rgba(255, 255, 255, .085);
    color: #fff !important;
    transform: translateX(2px);
}

.app-menu .menu-link:hover .menu-text,
.app-menu .menu-link.active .menu-text {
    color: #fff !important;
}

.app-menu .menu-link .menu-icon {
    width: 23px;
    color: #8ca59a;
}

.app-menu .menu-link:hover .menu-icon,
.app-menu .menu-link.active .menu-icon {
    color: #4bdba8;
}

.app-menu .menu-icon svg {
    width: 17px;
    height: 17px;
}

.navbar-custom {
    border-bottom: 1px solid var(--qr-border);
    background: rgba(255, 255, 255, .96);
    box-shadow: none;
    backdrop-filter: blur(12px);
}

.navbar-custom .topbar {
    min-height: 70px;
}

.button-toggle-menu {
    color: var(--qr-text);
}

.nav-user,
.nav-user:hover {
    color: var(--qr-text) !important;
}

.account-user-name {
    color: var(--qr-navy);
    font-weight: 700;
}

.account-position {
    color: var(--qr-muted);
}

.page-title-box {
    padding: 24px 0 18px;
}

.page-title-box .page-title {
    color: var(--qr-navy);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.025em;
}

.page-title-box p {
    margin: 5px 0 0;
    color: var(--qr-muted);
}

/* Native UBold / Bootstrap components */
.card {
    border: 1px solid var(--qr-border);
    border-radius: var(--qr-radius);
    background: var(--qr-surface);
    box-shadow: var(--qr-shadow-sm);
}

.card-header {
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--qr-border);
    background: #fff;
}

.card-title,
.header-title {
    margin: 0;
    color: var(--qr-navy);
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -.012em;
}

.card-subtitle,
.sub-header {
    margin-top: 4px;
    color: var(--qr-muted);
    font-size: 12px;
}

.card-body {
    padding: 20px;
}

.form-label {
    margin-bottom: 7px;
    color: #344054;
    font-size: 12px;
    font-weight: 700;
}

.form-control,
.form-select,
.input-group-text {
    min-height: 42px;
    border-color: #d6dde6;
    border-radius: var(--qr-radius-sm);
    color: var(--qr-navy);
    font-size: 13px;
    box-shadow: none;
}

textarea.form-control {
    min-height: 112px;
    resize: vertical;
}

.form-control::placeholder {
    color: #98a2b3;
}

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

.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    border-color: var(--qr-brand);
    box-shadow: 0 0 0 .2rem rgba(var(--qr-brand-rgb), .13);
}

.form-check-input:checked {
    border-color: var(--qr-brand);
    background-color: var(--qr-brand);
}

.form-switch .form-check-input {
    width: 2.5rem;
}

.invalid-feedback,
.error-text,
.form-error {
    display: block;
    margin-top: 5px;
    color: var(--qr-danger);
    font-size: 11px;
}

.form-text,
.help,
.form-help,
.secondary {
    color: var(--qr-muted) !important;
    font-size: 12px;
}

.btn {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border-radius: var(--qr-radius-sm);
    padding: 7px 13px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: none !important;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

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

.btn-primary,
.btn-primary:focus {
    border-color: var(--qr-brand) !important;
    background: var(--qr-brand) !important;
    color: #fff !important;
}

.btn-primary:hover,
.btn-primary:active {
    border-color: var(--qr-brand-dark) !important;
    background: var(--qr-brand-dark) !important;
    color: #fff !important;
}

.btn-outline-primary {
    border-color: rgba(var(--qr-brand-rgb), .42);
    color: var(--qr-brand-dark);
}

.btn-outline-primary:hover {
    border-color: var(--qr-brand);
    background: var(--qr-brand);
    color: #fff !important;
}

.btn-outline-secondary {
    border-color: #d5dce5;
    color: #475467;
}

.btn-outline-secondary:hover {
    border-color: #475467;
    background: #475467;
    color: #fff !important;
}

.btn-outline-danger {
    border-color: #f2c5c2;
    color: #b42318;
}

.btn-outline-danger:hover {
    border-color: #b42318;
    background: #b42318;
    color: #fff !important;
}

.btn-sm,
.btn-small {
    min-height: 32px;
    padding: 5px 9px;
    font-size: 11px;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: var(--qr-brand-soft);
    color: var(--qr-brand-dark) !important;
}

.badge {
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .01em;
}

.badge.green {
    background: #e8f8f1;
    color: #087a53;
}

.badge.yellow {
    background: #fff6df;
    color: #946200;
}

.badge.red {
    background: #fff0ef;
    color: #b42318;
}

.badge.blue {
    background: #eaf3ff;
    color: #175cd3;
}

.badge.gray {
    background: #eef1f4;
    color: #59636e;
}

.table-responsive {
    border-radius: 0 0 var(--qr-radius) var(--qr-radius);
}

.table {
    margin: 0;
    color: var(--qr-text);
}

.table > :not(caption) > * > * {
    padding: 13px 16px;
    border-bottom-color: #edf0f4;
    vertical-align: middle;
}

.table thead th {
    border-top: 0;
    border-bottom: 1px solid var(--qr-border);
    background: #f8fafc;
    color: #667085;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .055em;
    text-transform: uppercase;
    white-space: nowrap;
}

.table-hover > tbody > tr:hover > * {
    background: #f8fcfa;
    color: inherit;
}

.table td {
    font-size: 12px;
}

.table a:not(.btn) {
    color: var(--qr-brand-dark);
    font-weight: 700;
}

.table a:not(.btn):hover {
    color: #075d41;
}

.primary {
    color: var(--qr-navy);
    font-weight: 750;
}

.truncate {
    max-width: 420px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Shared QRMenuGo components, based on UBold cards */
.qr-filter-card,
.toolbar {
    display: flex;
    align-items: end;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
    padding: 16px;
    border: 1px solid var(--qr-border);
    border-radius: var(--qr-radius);
    background: #fff;
    box-shadow: var(--qr-shadow-sm);
}

.qr-filter-card .form-control,
.qr-filter-card .form-select,
.toolbar .form-control,
.toolbar .form-select {
    width: auto;
    min-width: 190px;
}

.qr-filter-card .qr-search,
.toolbar .form-control[type="search"] {
    min-width: 260px;
    flex: 1 1 260px;
}

.card-head {
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--qr-border);
}

.card-head h2 {
    margin: 0;
    color: var(--qr-navy);
    font-size: 16px;
    font-weight: 800;
}

.panel,
.form-card {
    padding: 20px;
    border: 1px solid var(--qr-border);
    border-radius: var(--qr-radius);
    background: #fff;
    box-shadow: var(--qr-shadow-sm);
}

.panel > h2,
.form-card > h2 {
    margin: 0 0 16px;
    color: var(--qr-navy);
    font-size: 16px;
    font-weight: 800;
}

.grid {
    display: grid;
    gap: 18px;
}

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

.stat,
.metric {
    position: relative;
    min-height: 128px;
    padding: 19px;
    overflow: hidden;
    border: 1px solid var(--qr-border);
    border-radius: var(--qr-radius);
    background: #fff;
    box-shadow: var(--qr-shadow-sm);
}

.stat::after,
.metric::after {
    content: "";
    position: absolute;
    top: -28px;
    right: -28px;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: rgba(var(--qr-brand-rgb), .07);
}

.stat-label,
.metric span {
    color: var(--qr-muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.stat-value,
.metric strong {
    display: block;
    margin-top: 9px;
    color: var(--qr-navy);
    font-size: 28px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -.04em;
}

.stat-note,
.metric small {
    display: block;
    margin-top: 8px;
    color: var(--qr-muted);
    font-size: 11px;
}

.two-col,
.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
    gap: 18px;
    margin-top: 18px;
}

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

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

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

.field {
    margin-bottom: 0;
}

.actions,
.actions-row,
.compact-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
}

.actions form,
.actions-row form,
.compact-actions form {
    margin: 0;
}

.inline {
    display: inline;
}

.empty {
    padding: 42px 24px !important;
    color: var(--qr-muted);
    text-align: center;
}

.flash {
    position: relative;
    margin-bottom: 18px;
    padding: 13px 16px;
    border-radius: var(--qr-radius-sm);
    font-weight: 650;
}

.flash.success {
    border: 1px solid #b9ead7;
    background: #eaf8f2;
    color: #087a53;
}

.flash.error {
    border: 1px solid #f5c6c2;
    background: #fff0ef;
    color: #b42318;
}

.qr-impersonation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    padding: 13px 16px;
    border: 1px solid #f0d17a;
    border-radius: var(--qr-radius);
    background: #fff9e7;
    color: #755400;
}

.qr-impersonation strong,
.qr-impersonation small {
    display: block;
}

.qr-impersonation small {
    color: #8c6b1d;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    padding: 14px 20px;
    border-top: 1px solid var(--qr-border);
}

.pagination-meta {
    color: var(--qr-muted);
    font-size: 11px;
}

.page-links {
    display: flex;
    gap: 6px;
}

.page-link {
    min-width: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 9px;
    border: 1px solid #d9e0e8;
    border-radius: 7px;
    background: #fff;
    color: #475467;
    font-size: 11px;
    text-decoration: none;
}

.page-link:hover {
    border-color: var(--qr-brand);
    background: var(--qr-brand-soft);
    color: var(--qr-brand-dark);
}

.page-link.disabled {
    opacity: .45;
    pointer-events: none;
}

.section-title {
    margin: 25px 0 13px;
    color: var(--qr-navy);
    font-size: 15px;
    font-weight: 800;
}

.switch-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 13px 0;
    border-bottom: 1px solid #edf0f4;
}

.switch-row:last-child {
    border-bottom: 0;
}

.notice {
    padding: 13px 15px;
    border: 1px solid #b8ddfa;
    border-radius: var(--qr-radius-sm);
    background: #eef8ff;
    color: #175b8f;
}

.danger-zone {
    border-color: #f1c4c0;
    background: #fffafa;
}

.modal-details,
.manage-block {
    margin-bottom: 12px;
    overflow: hidden;
    border: 1px solid var(--qr-border);
    border-radius: var(--qr-radius-sm);
    background: #fff;
}

.modal-details summary,
.manage-block summary {
    padding: 14px 16px;
    color: var(--qr-navy);
    cursor: pointer;
    font-weight: 750;
}

.modal-details > div,
.manage-block form {
    padding: 0 16px 16px;
}

.price {
    margin-top: 16px;
    color: var(--qr-navy);
    font-size: 28px;
    font-weight: 850;
    letter-spacing: -.035em;
}

.limit-list {
    margin: 16px 0;
    padding: 0;
    list-style: none;
}

.limit-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px dashed #e2e7ed;
    font-size: 12px;
}

.rating-wrap,
.web-rating {
    position: relative;
    display: inline-block;
    line-height: 1;
    letter-spacing: 1px;
}

.rating-base,
.web-rating-base {
    color: #dce2e8;
}

.rating-fill,
.web-rating-fill {
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    color: #f5a623;
    white-space: nowrap;
}

.rating-number,
.web-rating-number {
    margin-left: 6px;
    color: var(--qr-navy);
    font-size: 12px;
    font-weight: 800;
}

.stars,
.rating {
    color: #f59e0b;
    letter-spacing: 1px;
}

.chart-box {
    height: 240px;
    display: flex;
    align-items: flex-end;
    gap: 5px;
}

.chart-bar {
    min-width: 4px;
    flex: 1;
    border-radius: 6px 6px 2px 2px;
    background: linear-gradient(180deg, #59d8ac, var(--qr-brand));
}

.chart-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 7px;
    color: var(--qr-muted);
    font-size: 10px;
}

.usage-row {
    margin-bottom: 14px;
}

.usage-head {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 700;
}

.progress {
    height: 8px;
    border-radius: 999px;
    background: #e9edf2;
}

.progress span {
    display: block;
    height: 100%;
    background: var(--qr-brand);
}

.subscription-card {
    height: 100%;
}

.subscription-date {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin: 14px 0;
}

.subscription-date div {
    padding: 10px;
    border: 1px solid #edf0f4;
    border-radius: var(--qr-radius-sm);
    background: #f8fafc;
}

.subscription-date small {
    display: block;
    color: var(--qr-muted);
    font-size: 9px;
    text-transform: uppercase;
}

.subscription-date strong {
    display: block;
    margin-top: 3px;
    color: var(--qr-navy);
    font-size: 11px;
}

.qr-check-line {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--qr-muted);
    font-size: 12px;
    font-weight: 700;
}

/* Authentication */
.authentication-bg {
    background:
        radial-gradient(circle at 12% 12%, rgba(35, 200, 141, .18), transparent 32%),
        radial-gradient(circle at 88% 88%, rgba(68, 139, 240, .14), transparent 34%),
        #eef2f6;
}

.auth-card {
    overflow: hidden;
    border: 0;
    border-radius: 18px;
    box-shadow: 0 22px 70px rgba(31, 45, 61, .14);
}

.qr-auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--qr-navy);
    font-size: 22px;
    font-weight: 850;
    text-decoration: none;
}

.qr-auth-logo:hover {
    color: var(--qr-brand-dark);
}

.qr-auth-logo .qr-brand-mark {
    width: 43px;
    height: 43px;
}

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

    .plan-grid,
    .card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 768px) {
    .stats,
    .metric-grid,
    .plan-grid,
    .card-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .toolbar,
    .qr-filter-card {
        align-items: stretch;
    }

    .toolbar > *,
    .qr-filter-card > *,
    .toolbar .form-control,
    .toolbar .form-select,
    .qr-filter-card .form-control,
    .qr-filter-card .form-select {
        width: 100%;
        min-width: 0;
    }

    .page-title-box {
        padding-top: 16px;
    }

    .qr-impersonation {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .content-page .content {
        padding: 0;
    }

    .table {
        min-width: 760px;
    }

    .pagination {
        align-items: stretch;
        flex-direction: column;
    }
}

.qr-table-avatar {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 10px;
    background: var(--qr-brand-soft);
    color: var(--qr-brand-dark);
    font-size: 12px;
    font-weight: 850;
}

.qr-message-item {
    padding: 20px;
    border-bottom: 1px solid var(--qr-border);
}

.qr-message-item:last-child {
    border-bottom: 0;
}

.qr-message-title {
    margin: 0 0 4px;
    color: var(--qr-navy);
    font-size: 15px;
    font-weight: 800;
}

.qr-message-body {
    margin: 14px 0;
    color: #475467;
    line-height: 1.65;
}

.qr-inline-select {
    width: auto;
    min-width: 150px;
}

.qr-plan-title {
    margin: 11px 0 0;
    color: var(--qr-navy);
    font-size: 20px;
    font-weight: 850;
}

.qr-plan-usage {
    display: flex;
    align-items: center;
    gap: 7px;
    padding-top: 14px;
    border-top: 1px solid var(--qr-border);
    color: var(--qr-muted);
    font-size: 11px;
    font-weight: 700;
}

.qr-plan-usage svg {
    width: 15px;
    height: 15px;
}

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

.qr-info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 13px;
    border: 1px solid var(--qr-border);
    border-radius: var(--qr-radius-sm);
    background: #f8fafc;
}

.qr-info-item p {
    margin: 3px 0 0;
    color: var(--qr-muted);
    font-size: 11px;
}

.qr-info-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 9px;
    background: var(--qr-brand-soft);
    color: var(--qr-brand-dark);
}

.qr-info-icon svg {
    width: 16px;
    height: 16px;
}

.qr-accordion-item {
    margin-bottom: 10px;
    overflow: hidden;
    border: 1px solid var(--qr-border) !important;
    border-radius: var(--qr-radius-sm) !important;
}

.qr-accordion-item .accordion-button {
    min-height: 68px;
    background: #fff;
    color: var(--qr-navy);
    box-shadow: none;
}

.qr-accordion-item .accordion-button:not(.collapsed) {
    background: #f6fbf8;
    color: var(--qr-brand-dark);
}

.qr-accordion-item .accordion-button small {
    display: block;
    margin-top: 3px;
    color: var(--qr-muted);
    font-size: 11px;
    font-weight: 500;
}

.qr-review-row,
.qr-review-card {
    padding: 16px 0;
    border-bottom: 1px solid var(--qr-border);
}

.qr-review-row:first-child,
.qr-review-card:first-child {
    padding-top: 0;
}

.qr-review-row:last-child,
.qr-review-card:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.qr-review-row p,
.qr-review-text {
    margin: 10px 0 0;
    color: #475467;
    line-height: 1.65;
}

.qr-business-reply {
    margin-top: 13px;
    padding: 13px;
    border: 1px solid #d8ece2;
    border-radius: var(--qr-radius-sm);
    background: #f2faf6;
}

.qr-business-reply p {
    margin: 4px 0 0;
    color: #3f5b4e;
}

.qr-campaign-card {
    display: flex;
    flex-direction: column;
    padding: 18px;
    border: 1px solid var(--qr-border);
    border-radius: var(--qr-radius);
    background: #fff;
    box-shadow: var(--qr-shadow-sm);
}

.qr-campaign-card h3 {
    margin: 14px 0 7px;
    color: var(--qr-navy);
    font-size: 16px;
    font-weight: 800;
}

.qr-campaign-card p {
    color: var(--qr-muted);
    font-size: 12px;
    line-height: 1.6;
}

.qr-date-range {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    color: var(--qr-muted);
    font-size: 11px;
    font-weight: 700;
}

.qr-date-range svg {
    width: 14px;
    height: 14px;
}

.qr-empty-icon {
    width: 52px;
    height: 52px;
    display: inline-grid;
    place-items: center;
    margin-bottom: 14px;
    border-radius: 16px;
    background: var(--qr-brand-soft);
    color: var(--qr-brand-dark);
}

/* Template-faithful operational components */
.modal-content {
    overflow: hidden;
    border: 0;
    border-radius: var(--qr-radius-lg);
    box-shadow: 0 28px 90px rgba(15, 23, 42, .18);
}

.modal-header,
.modal-footer {
    padding: 17px 20px;
    border-color: var(--qr-border);
}

.modal-body {
    padding: 20px;
}

.modal-title {
    color: var(--qr-navy);
    font-size: 17px;
    font-weight: 800;
}

.accordion-button::after {
    opacity: .7;
}

.qr-code-card {
    overflow: hidden;
    border: 1px solid var(--qr-border);
    border-radius: var(--qr-radius);
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.qr-code-card:hover {
    border-color: rgba(var(--qr-brand-rgb), .42);
    box-shadow: var(--qr-shadow);
    transform: translateY(-2px);
}

.qr-code-preview {
    min-height: 190px;
    display: grid;
    place-items: center;
    padding: 20px;
    background:
        linear-gradient(135deg, rgba(var(--qr-brand-rgb), .08), rgba(59, 130, 246, .06)),
        #f9fbfc;
}

.qr-code-preview img {
    width: 154px;
    height: 154px;
    padding: 8px;
    border: 1px solid #e1e7ed;
    border-radius: 13px;
    background: #fff;
}

.qr-code-content {
    padding: 18px;
}

.qr-code-content h5,
.qr-card-title {
    margin: 0;
    color: var(--qr-navy) !important;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
}

.qr-code-content p,
.qr-customer-restaurant-content p,
.card-body > p {
    color: var(--qr-muted);
}

.qr-code-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin: 16px 0;
}

.qr-code-stats div {
    padding: 10px 12px;
    border: 1px solid var(--qr-border);
    border-radius: var(--qr-radius-sm);
    background: #f8fafc;
}

.qr-code-stats small,
.qr-code-stats strong {
    display: block;
}

.qr-code-stats small {
    color: var(--qr-muted);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.qr-code-stats strong {
    margin-top: 3px;
    color: var(--qr-navy);
    font-size: 14px;
}

.qr-limit-card {
    height: 100%;
    padding: 16px;
    border: 1px solid var(--qr-border);
    border-radius: var(--qr-radius-sm);
    background: #fbfcfd;
}

.progress span.is-danger {
    background: var(--qr-danger);
}

.qr-metric-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 14px;
}

.qr-metric-icon svg {
    width: 20px;
    height: 20px;
}

.qr-metric-icon.green { background: #e8f8f1; color: #087a53; }
.qr-metric-icon.blue { background: #eaf3ff; color: #175cd3; }
.qr-metric-icon.yellow { background: #fff6df; color: #946200; }
.qr-metric-icon.gray { background: #eef1f4; color: #59636e; }

.qr-metric-value {
    margin-top: 3px;
    color: var(--qr-navy);
    font-size: 23px;
    line-height: 1.1;
    font-weight: 850;
    letter-spacing: -.035em;
}

.qr-customer-restaurant {
    height: 100%;
    display: flex;
    overflow: hidden;
    border: 1px solid var(--qr-border);
    border-radius: var(--qr-radius);
    background: #fff;
    color: inherit !important;
    text-decoration: none !important;
    transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.qr-customer-restaurant:hover {
    border-color: rgba(var(--qr-brand-rgb), .45);
    color: inherit !important;
    box-shadow: var(--qr-shadow-sm);
    transform: translateY(-2px);
}

.qr-customer-restaurant-cover {
    width: 104px;
    min-height: 112px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    overflow: hidden;
    background: var(--qr-brand-soft);
    color: var(--qr-brand-dark);
}

.qr-customer-restaurant-cover img,
.qr-favorite-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.qr-customer-restaurant-cover svg {
    width: 28px;
    height: 28px;
}

.qr-customer-restaurant-content {
    min-width: 0;
    flex: 1;
    padding: 15px;
}

.qr-customer-restaurant-content h5 {
    margin: 0;
    color: var(--qr-navy);
    font-size: 14px;
    font-weight: 800;
}

.qr-customer-restaurant-content p {
    margin: 7px 0 3px;
    font-size: 11px;
}

.qr-customer-restaurant-content small {
    color: var(--qr-muted);
}

.qr-favorite-cover {
    height: 180px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--qr-brand-soft), #edf5ff);
    color: var(--qr-brand-dark);
}

.qr-favorite-cover svg {
    width: 42px;
    height: 42px;
}

.min-w-0 {
    min-width: 0;
}

.card-footer {
    border-color: var(--qr-border);
}

@media (max-width: 575.98px) {
    .qr-customer-restaurant {
        flex-direction: column;
    }

    .qr-customer-restaurant-cover {
        width: 100%;
        height: 150px;
    }

    .modal-dialog {
        margin: .75rem;
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Template-faithful administration details */
.qr-stat-card {
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.qr-stat-card:hover {
    border-color: rgba(var(--qr-brand-rgb), .28);
    box-shadow: var(--qr-shadow-sm);
    transform: translateY(-2px);
}

.qr-stat-card h3 {
    color: var(--qr-navy);
    font-size: 25px;
    font-weight: 850;
    letter-spacing: -.04em;
}

.qr-chart-panel {
    height: 260px;
    display: grid;
    grid-template-columns: repeat(14, minmax(22px, 1fr));
    align-items: end;
    gap: 8px;
    padding-top: 18px;
}

.qr-chart-column {
    min-width: 0;
    text-align: center;
}

.qr-chart-track {
    height: 218px;
    display: flex;
    align-items: end;
    justify-content: center;
    overflow: hidden;
    border-radius: 7px;
    background: linear-gradient(180deg, rgba(15, 159, 110, .025), rgba(15, 159, 110, .07));
}

.qr-chart-bar {
    width: min(72%, 22px);
    height: var(--qr-chart-height, 4%);
    min-height: 4px;
    display: block;
    border-radius: 6px 6px 2px 2px;
    background: linear-gradient(180deg, #39d5a0, var(--qr-brand));
    box-shadow: 0 5px 14px rgba(var(--qr-brand-rgb), .18);
    transition: filter .18s ease, transform .18s ease;
}

.qr-chart-column:hover .qr-chart-bar {
    filter: brightness(.92);
    transform: scaleX(1.08);
}

.qr-chart-column small {
    display: block;
    margin-top: 8px;
    color: var(--qr-muted);
    font-size: 9px;
    font-weight: 700;
}

.qr-profile-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border: 1px solid var(--qr-border);
    border-radius: var(--qr-radius);
    background: linear-gradient(135deg, #f8fbfa, #f3f7ff);
}

.qr-profile-avatar {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 13px;
    background: linear-gradient(135deg, #2bd39a, var(--qr-brand-dark));
    color: #fff;
    font-size: 18px;
    font-weight: 900;
}

.qr-profile-summary h3 {
    color: var(--qr-navy);
    font-size: 15px;
    font-weight: 800;
}

.qr-info-list {
    display: block;
}

.qr-info-list .list-group-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-color: var(--qr-border);
    background: transparent;
    color: var(--qr-muted);
    font-size: 12px;
}

.qr-info-list .list-group-item strong {
    max-width: 62%;
    color: var(--qr-navy);
    font-size: 12px;
    text-align: right;
    overflow-wrap: anywhere;
}

.qr-admin-accordion {
    display: grid;
    gap: 12px;
}

.qr-admin-accordion .accordion-item {
    overflow: hidden;
    border: 1px solid var(--qr-border);
    border-radius: var(--qr-radius) !important;
    background: #fff;
}

.qr-admin-accordion .accordion-button {
    min-height: 82px;
    gap: 18px;
    padding: 16px 18px;
    background: #fff;
    color: var(--qr-navy);
    box-shadow: none;
}

.qr-admin-accordion .accordion-button:hover {
    background: #f8fbfa;
    color: var(--qr-navy);
}

.qr-admin-accordion .accordion-button:not(.collapsed) {
    background: var(--qr-brand-soft);
    color: var(--qr-brand-dark);
    box-shadow: inset 0 -1px 0 var(--qr-border);
}

.qr-admin-accordion .accordion-button::after {
    flex: 0 0 auto;
}

.qr-admin-accordion .accordion-body {
    padding: 22px;
}

.qr-branch-accordion-title {
    min-width: 230px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.qr-branch-accordion-title strong,
.qr-branch-accordion-title small {
    display: block;
}

.qr-branch-accordion-title strong {
    color: inherit;
    font-size: 14px;
    font-weight: 800;
}

.qr-branch-accordion-title small {
    margin-top: 3px;
    color: var(--qr-muted);
    font-size: 11px;
    font-weight: 500;
}

.qr-branch-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 10px;
    background: var(--qr-brand-soft);
    color: var(--qr-brand-dark);
}

.qr-branch-icon svg {
    width: 17px;
    height: 17px;
}

.qr-branch-accordion-meta {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-left: auto;
    color: var(--qr-muted);
    font-size: 11px;
    font-weight: 650;
}

.qr-mini-stat {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--qr-border);
    border-radius: var(--qr-radius-sm);
    background: #f8fafc;
}

.qr-mini-stat > svg {
    width: 17px;
    height: 17px;
    color: var(--qr-brand-dark);
}

.qr-mini-stat strong,
.qr-mini-stat small {
    display: block;
}

.qr-mini-stat strong {
    color: var(--qr-navy);
    font-size: 14px;
    font-weight: 800;
}

.qr-mini-stat small {
    color: var(--qr-muted);
    font-size: 10px;
}

.qr-switch-card {
    min-height: 58px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid var(--qr-border);
    border-radius: var(--qr-radius-sm);
    background: #f8fafc;
}

.qr-switch-card .form-check-input {
    flex: 0 0 auto;
    margin: 0;
}

.qr-switch-card .form-check-label {
    min-width: 0;
    margin: 0;
    cursor: pointer;
}

.qr-switch-card strong,
.qr-switch-card small {
    display: block;
}

.qr-switch-card strong {
    color: var(--qr-navy);
    font-size: 12px;
}

.qr-switch-card small {
    margin-top: 2px;
    color: var(--qr-muted);
    font-size: 10px;
}

.qr-ip-code {
    display: inline-flex;
    padding: 5px 8px;
    border: 1px solid var(--qr-border);
    border-radius: 7px;
    background: #f8fafc;
    color: #475467;
    font-size: 11px;
}

.qr-empty-state {
    max-width: 470px;
    margin: 0 auto;
    color: var(--qr-muted);
    text-align: center;
}

.qr-empty-state .qr-empty-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    margin: 0 auto 13px;
    border-radius: 15px;
    background: var(--qr-brand-soft);
    color: var(--qr-brand-dark);
}

.qr-empty-state .qr-empty-icon svg {
    width: 22px;
    height: 22px;
}

.qr-empty-state h3 {
    margin: 0 0 6px;
    color: var(--qr-navy);
    font-size: 16px;
    font-weight: 800;
}

.qr-empty-state p {
    margin: 0 0 15px;
    font-size: 12px;
}

@media (max-width: 991.98px) {
    .qr-chart-panel {
        overflow-x: auto;
        grid-template-columns: repeat(14, minmax(34px, 1fr));
        padding-bottom: 5px;
    }

    .qr-branch-accordion-meta {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .qr-admin-accordion .accordion-button,
    .qr-admin-accordion .accordion-body {
        padding: 14px;
    }

    .qr-branch-accordion-title {
        min-width: 0;
    }

    .qr-info-list .list-group-item {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .qr-info-list .list-group-item strong {
        max-width: 100%;
        text-align: left;
    }
}

.qr-contact-table {
    min-width: 960px;
}

.qr-contact-message-cell {
    min-width: 340px;
    max-width: 520px;
}

.qr-contact-message-cell p {
    display: -webkit-box;
    overflow: hidden;
    line-height: 1.5;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.qr-topbar-avatar {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 2px solid rgba(var(--qr-brand-rgb), .12);
    border-radius: 50%;
    background: var(--qr-brand-soft);
    color: var(--qr-brand-dark);
    font-size: 12px;
    font-weight: 850;
}

.button-toggle-menu > svg {
    width: 21px;
    height: 21px;
}

.alert {
    border-radius: var(--qr-radius-sm);
    border-width: 1px;
}

.alert > svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.qr-chart-panel-30 {
    grid-template-columns: repeat(30, minmax(14px, 1fr));
    gap: 5px;
}

.qr-chart-panel-30 .qr-chart-column small {
    min-height: 13px;
}

.qr-progress {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #edf1f5;
}

.qr-progress .progress-bar {
    border-radius: inherit;
    background: linear-gradient(90deg, var(--qr-brand), #2bd39a);
}

.qr-quick-actions {
    gap: 8px;
}

.qr-quick-actions .list-group-item {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 16px;
    align-items: center;
    gap: 10px;
    padding: 11px;
    border: 1px solid var(--qr-border);
    border-radius: var(--qr-radius-sm) !important;
    color: var(--qr-text);
}

.qr-quick-actions .list-group-item:hover {
    border-color: rgba(var(--qr-brand-rgb), .32);
    background: var(--qr-brand-soft);
    color: var(--qr-navy);
}

.qr-quick-actions .list-group-item > svg {
    width: 15px;
    height: 15px;
    color: var(--qr-muted);
}

.qr-quick-action-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--qr-brand-soft);
    color: var(--qr-brand-dark);
}

.qr-quick-action-icon svg {
    width: 16px;
    height: 16px;
}

.qr-quick-actions strong,
.qr-quick-actions small {
    display: block;
}

.qr-quick-actions strong {
    color: inherit;
    font-size: 12px;
}

.qr-quick-actions small {
    margin-top: 2px;
    color: var(--qr-muted);
    font-size: 10px;
}

.qr-ranked-list .list-group-item {
    display: flex;
    align-items: center;
    gap: 11px;
    border-color: var(--qr-border);
    background: transparent;
}

.qr-rank-number {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 8px;
    background: var(--qr-brand-soft);
    color: var(--qr-brand-dark);
    font-size: 11px;
    font-weight: 850;
}

@media (max-width: 1199.98px) {
    .qr-chart-panel-30 {
        overflow-x: auto;
        grid-template-columns: repeat(30, 24px);
    }
}

/* Multilingual controls and RTL support */
.qr-topbar-locale {
    width: auto;
    min-width: 112px;
    max-width: 145px;
    height: 34px;
    padding-block: 5px;
}

.qr-auth-locale {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 1050;
    width: 132px;
}

[dir="rtl"] body {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .app-menu {
    left: auto;
    right: 0;
}

[dir="rtl"] .content-page {
    margin-left: 0;
    margin-right: var(--ct-leftbar-width, 260px);
}

[dir="rtl"] .navbar-custom {
    left: 0;
    right: var(--ct-leftbar-width, 260px);
}

[dir="rtl"] .menu-link,
[dir="rtl"] .qr-brand,
[dir="rtl"] .qr-impersonation,
[dir="rtl"] .card-header,
[dir="rtl"] .page-title-box {
    text-align: right;
}

[dir="rtl"] .dropdown-menu-end {
    --bs-position: start;
    left: 0;
    right: auto;
}

[dir="rtl"] .text-md-end {
    text-align: left !important;
}

[dir="rtl"] .form-check {
    padding-left: 0;
    padding-right: 1.5em;
}

[dir="rtl"] .form-check .form-check-input {
    float: right;
    margin-left: 0;
    margin-right: -1.5em;
}

[dir="rtl"] .qr-auth-locale {
    left: 18px;
    right: auto;
}

@media (max-width: 991.98px) {
    [dir="rtl"] .content-page {
        margin-right: 0;
    }

    [dir="rtl"] .navbar-custom {
        right: 0;
    }
}

@media (max-width: 575.98px) {
    .qr-topbar-locale {
        min-width: 92px;
        max-width: 105px;
        font-size: 11px;
    }

    .qr-auth-locale {
        position: absolute;
        top: 10px;
        right: 10px;
        width: 112px;
    }

    [dir="rtl"] .qr-auth-locale {
        left: 10px;
        right: auto;
    }
}

/* Paket dönemi seçici */
.qr-billing-toggle{display:flex;width:max-content;max-width:100%;padding:5px;border:1px solid rgba(16,42,67,.12);background:#f3f7f5;border-radius:999px}.qr-billing-toggle button{min-width:120px;border:0;background:transparent;border-radius:999px;padding:10px 20px;font-weight:800;color:#52656f;transition:.2s}.qr-billing-toggle button.is-active{background:var(--bs-primary,#0d9f65);color:#fff;box-shadow:0 8px 24px rgba(13,159,101,.22)}
