:root {
    --brand: #0f766e;
    --brand-dark: #0b4f4a;
    --brand-soft: #ccfbf1;
    --ink: #0f172a;
    --muted: #64748b;
    --surface: #f8fafc;
    --sidebar: #0f172a;
    --sidebar-accent: #14b8a6;
    --card-border: #e2e8f0;
    --hero-a: #0f766e;
    --hero-b: #134e4a;
    --hero-c: #042f2e;
}

* { box-sizing: border-box; }

body {
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    color: var(--ink);
    background: var(--surface);
}

a { text-decoration: none; }

.btn-brand {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}
.btn-brand:hover {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
    color: #fff;
}

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

/* Landing */
.site-nav {
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(15,23,42,.06);
    --bs-navbar-padding-y: 0;
    min-height: 72px;
}
.site-nav > .container {
    min-height: 72px;
}
.site-nav .navbar-brand {
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--brand-dark);
    padding: 0;
    margin: 0;
    height: 72px;
}
.site-nav .brand-logo {
    height: 72px;
    width: auto;
    display: block;
    object-fit: contain;
}
.brand-logo {
    height: 56px;
    width: auto;
    display: block;
    object-fit: contain;
}
.brand-logo-lg {
    height: 88px;
}
.site-nav .nav-link {
    color: #334155;
    font-weight: 500;
}
.site-nav .nav-link:hover,
.site-nav .nav-link.active { color: var(--brand); }

.hero {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 20% 20%, rgba(45,212,191,.28), transparent 35%),
        radial-gradient(circle at 80% 10%, rgba(56,189,248,.18), transparent 30%),
        linear-gradient(135deg, var(--hero-a), var(--hero-b) 55%, var(--hero-c));
}
.hero::after {
    content: "";
    position: absolute;
    inset: auto -10% -30% 40%;
    height: 70%;
    background: url("data:image/svg+xml,%3Csvg width='600' height='600' viewBox='0 0 600 600' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.08'%3E%3Ccircle cx='300' cy='300' r='80'/%3E%3Ccircle cx='300' cy='300' r='140'/%3E%3Ccircle cx='300' cy='300' r='200'/%3E%3Ccircle cx='300' cy='300' r='260'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat;
    pointer-events: none;
}
.hero .display-4 {
    font-weight: 800;
    letter-spacing: -.03em;
}
.hero .lead { color: rgba(255,255,255,.88); max-width: 38rem; }
.hero-panel {
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 1.25rem;
    padding: 1.5rem;
    backdrop-filter: blur(8px);
}
.section-title {
    font-weight: 800;
    letter-spacing: -.02em;
}
.feature-tile {
    background: #fff;
    border: 1px solid var(--card-border);
    border-radius: 1rem;
    padding: 1.5rem;
    height: 100%;
    transition: transform .2s ease, box-shadow .2s ease;
}
.feature-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(15,23,42,.08);
}
.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-soft);
    color: var(--brand-dark);
    margin-bottom: 1rem;
}
.step-card {
    background: #fff;
    border-radius: 1rem;
    border: 1px solid var(--card-border);
    padding: 1.5rem;
    height: 100%;
}
.step-num {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: .75rem;
}
.pricing-card {
    background: #fff;
    border: 1px solid var(--card-border);
    border-radius: 1.25rem;
    padding: 2rem 1.5rem;
    height: 100%;
}
.pricing-card.featured {
    border-color: var(--brand);
    box-shadow: 0 20px 50px rgba(15,118,110,.15);
    transform: translateY(-8px);
}
.site-footer {
    background: #0f172a;
    color: #cbd5e1;
}
.site-footer a { color: #99f6e4; }
.support-contact {
    display: flex;
    align-items: center;
    gap: .85rem;
    color: var(--ink);
    padding: .85rem 1rem;
    border: 1px solid var(--card-border);
    border-radius: .9rem;
    background: #fff;
}
.support-contact:hover {
    border-color: var(--brand);
    color: var(--brand-dark);
}
.support-contact-icon {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: .8rem;
    display: grid;
    place-items: center;
    background: var(--brand-soft);
    color: var(--brand-dark);
}

/* Auth */
.auth-wrap {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: start;
}
.auth-aside {
    background:
        radial-gradient(circle at 30% 20%, rgba(45,212,191,.25), transparent 40%),
        linear-gradient(160deg, #0f766e, #042f2e);
    color: #fff;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
}
.auth-form {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: #fff;
    min-height: 100vh;
}
.auth-brand {
    display: inline-flex;
    align-items: center;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -.03em;
    color: #fff;
    line-height: 1.1;
}
.auth-brand.auth-brand-dark {
    font-size: 1.5rem;
    color: var(--brand-dark, #0f766e);
}

/* Dashboard */
.app-shell { min-height: 100vh; display: flex; }
.sidebar {
    width: 260px;
    background: var(--sidebar);
    color: #cbd5e1;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    flex-shrink: 0;
}
.sidebar .brand {
    color: #fff;
    font-weight: 800;
    padding: 1.25rem 1.25rem .5rem;
    display: block;
}
.sidebar .nav-section {
    padding: .75rem 1.25rem .25rem;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #64748b;
}
.sidebar .nav-link {
    color: #cbd5e1;
    border-radius: .65rem;
    margin: .15rem .75rem;
    padding: .65rem .85rem;
    display: flex;
    align-items: center;
    gap: .65rem;
}
.sidebar .nav-link i { width: 1.1rem; text-align: center; }
.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background: rgba(20,184,166,.15);
    color: #5eead4;
}
.main-area { flex: 1; min-width: 0; }
.topbar {
    background: #fff;
    border-bottom: 1px solid var(--card-border);
    padding: .9rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.content-area { padding: 1.5rem; }
.stat-card {
    background: #fff;
    border: 1px solid var(--card-border);
    border-radius: 1rem;
    padding: 1.25rem;
    height: 100%;
}
.stat-card .label { color: var(--muted); font-size: .9rem; }
.stat-card .value { font-size: 1.8rem; font-weight: 800; letter-spacing: -.03em; }
.panel-card {
    background: #fff;
    border: 1px solid var(--card-border);
    border-radius: 1rem;
    overflow: hidden;
}
.panel-card .panel-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--card-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.panel-card .panel-body { padding: 1.25rem; }
.content-area > .panel-card,
.content-area > form > .panel-card {
    width: 100%;
    max-width: none;
}
.table > :not(caption) > * > * { padding: .85rem .75rem; }
.badge-soft {
    background: var(--brand-soft);
    color: var(--brand-dark);
}
.dt-container .dt-search input,
.dt-container .dt-length select {
    border: 1px solid var(--card-border);
    border-radius: .5rem;
    padding: .375rem .75rem;
}
.dt-container .dt-paging .page-item.active .page-link {
    background: var(--brand);
    border-color: var(--brand);
}
div.dt-processing,
div.dataTables_processing {
    z-index: 5;
}

/* Public review page */
.review-page {
    min-height: 100vh;
    background:
        radial-gradient(ellipse at 50% -10%, rgba(15,118,110,.16), transparent 48%),
        radial-gradient(ellipse at 100% 20%, rgba(99,102,241,.08), transparent 40%),
        linear-gradient(180deg, #eef7f5 0%, #f4f1fb 45%, #f8fafc 100%);
}
.review-shell {
    width: min(480px, 100%);
    margin: 0 auto;
    padding: 1rem 1rem 2rem;
}
.review-app-mark {
    display: flex;
    justify-content: center;
    margin-bottom: .85rem;
}
.review-app-mark img {
    height: 28px;
    width: auto;
    object-fit: contain;
}
.review-business-header {
    text-align: center;
    margin-bottom: 1rem;
}
.review-card {
    max-width: 640px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid rgba(226, 232, 240, .9);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 20px 50px rgba(15,23,42,.06);
}
.review-card-v2 {
    padding: 1.35rem 1.2rem 1.4rem;
    border-radius: 1.6rem;
    box-shadow:
        0 1px 0 rgba(255,255,255,.8) inset,
        0 18px 44px rgba(15,23,42,.08);
    animation: review-rise .45s ease both;
}
@keyframes review-rise {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
.review-logo {
    max-height: 78px;
    max-width: 150px;
    width: auto;
    height: auto;
    object-fit: contain;
    margin-bottom: .7rem;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15,23,42,.08);
}
.review-logo-fallback {
    width: 72px;
    height: 72px;
    margin: 0 auto .7rem;
    border-radius: 1.1rem;
    display: grid;
    place-items: center;
    background: var(--brand-soft);
    color: var(--brand-dark);
    font-size: 1.45rem;
}
.review-title {
    font-size: clamp(1.35rem, 4vw, 1.7rem);
    font-weight: 800;
    letter-spacing: -.02em;
    margin: 0 0 .3rem;
    color: var(--ink);
}
.review-subtitle {
    color: var(--muted);
    font-size: .92rem;
    margin: 0;
    line-height: 1.4;
}
.review-rating-block {
    text-align: center;
    padding: 0 0 .55rem;
}
.review-section {
    margin-bottom: .85rem;
}
.review-section-heading {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .86rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: .55rem;
}
.review-section-heading i {
    color: var(--brand);
    font-size: .85rem;
}
.rating-stars {
    display: inline-flex;
    gap: .15rem;
}
.rating-stars button {
    background: transparent;
    border: 0;
    font-size: 1.65rem;
    color: #e2e8f0;
    padding: 0 .04rem;
    line-height: 1;
    transition: transform .15s ease, color .15s ease;
}
.rating-stars button:active { transform: scale(.92); }
.rating-stars button.active,
.rating-stars button:hover { color: #f59e0b; }
.review-state { padding: 1.35rem 0 1rem; }
.review-spinner {
    width: 42px;
    height: 42px;
    margin: 0 auto;
    border-radius: 50%;
    border: 3px solid #ccfbf1;
    border-top-color: var(--brand);
    animation: review-spin .7s linear infinite;
}
@keyframes review-spin {
    to { transform: rotate(360deg); }
}
.review-language-pills,
.review-topic-pills {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}
.review-lang-pill,
.review-topic-pill {
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #334155;
    border-radius: 999px;
    padding: .35rem .8rem;
    font-size: .8rem;
    font-weight: 600;
    line-height: 1.2;
    transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.review-lang-pill:hover,
.review-topic-pill:hover {
    border-color: var(--brand);
    color: var(--brand-dark);
}
.review-lang-pill.active,
.review-topic-pill.active {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
    box-shadow: 0 8px 18px rgba(15, 118, 110, .2);
}
.review-lang-pill.active:hover,
.review-topic-pill.active:hover {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
    color: #fff;
}
.review-topic-more {
    color: var(--brand-dark);
    border-color: #c7ebe6;
    background: #f0fdfa;
}
.review-output-wrap {
    position: relative;
    margin-bottom: .85rem;
}
.review-textarea {
    border-radius: 1.1rem;
    border-color: #e2e8f0;
    background: #f8fafc;
    font-size: 1rem;
    line-height: 1.55;
    resize: vertical;
    min-height: 150px;
    padding: 1rem 2.6rem 1.7rem 1rem;
}
.review-textarea:focus {
    background: #fff;
    border-color: var(--brand);
    box-shadow: 0 0 0 .2rem rgba(15,118,110,.15);
}
.review-variant-next {
    position: absolute;
    top: 50%;
    right: .7rem;
    transform: translateY(-50%);
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: #475569;
    box-shadow: 0 4px 14px rgba(15,23,42,.12);
    display: grid;
    place-items: center;
}
.review-variant-next:hover {
    color: var(--brand-dark);
}
.review-variant-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: .55rem;
    display: flex;
    justify-content: center;
    gap: .35rem;
    pointer-events: none;
}
.review-variant-dot {
    pointer-events: auto;
    width: .45rem;
    height: .45rem;
    border: 0;
    border-radius: 999px;
    padding: 0;
    background: #cbd5e1;
}
.review-variant-dot.active {
    background: var(--brand);
    width: .7rem;
}
.review-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: 1rem;
}
.review-meta-left {
    color: var(--muted);
    font-size: .9rem;
    font-weight: 600;
}
.review-meta-actions {
    display: inline-flex;
    gap: .85rem;
}
.review-meta-btn {
    border: 0;
    background: transparent;
    color: #475569;
    font-size: .9rem;
    font-weight: 600;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}
.review-meta-btn:hover,
.review-meta-btn.is-editing {
    color: var(--brand-dark);
}
.review-actions-stack {
    display: grid;
    gap: .5rem;
}
.review-primary-btn,
.review-secondary-btn {
    border-radius: .8rem;
    font-weight: 700;
    font-size: .88rem !important;
    line-height: 1.25 !important;
    padding: .5rem .85rem !important;
}
.review-secondary-btn {
    border-color: #e2e8f0;
    color: #334155;
    background: #fff;
}
.review-secondary-btn:hover {
    border-color: var(--brand);
    color: var(--brand-dark);
    background: #f0fdfa;
}
.review-status {
    min-height: 1rem;
    margin: .5rem 0 0;
    text-align: center;
    color: var(--brand-dark);
    font-size: .8rem;
    font-weight: 600;
}
.review-extra-actions {
    display: flex;
    justify-content: center;
    margin-top: .55rem;
}
.review-business-card-btn {
    border-radius: .85rem;
    font-weight: 600;
    color: var(--brand-dark);
}
.review-card-modal {
    position: fixed;
    inset: 0;
    z-index: 1050;
    display: grid;
    place-items: center;
    padding: 1rem;
}
.review-card-modal.d-none { display: none !important; }
.review-card-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .45);
    backdrop-filter: blur(2px);
}
.review-card-modal-dialog {
    position: relative;
    width: min(420px, 100%);
    z-index: 1;
}
.business-card-sheet {
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 1.35rem;
    padding: 1.5rem 1.35rem 1.35rem;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .18);
}
.business-card-close {
    position: absolute;
    top: .75rem;
    right: .75rem;
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
}
.business-card-top {
    text-align: center;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #eef2f7;
}
.business-card-logo {
    max-height: 64px;
    max-width: 140px;
    object-fit: contain;
    margin-bottom: .65rem;
    border-radius: .65rem;
}
.business-card-logo-fallback {
    width: 56px;
    height: 56px;
    margin: 0 auto .65rem;
    border-radius: .9rem;
    display: grid;
    place-items: center;
    background: var(--brand-soft);
    color: var(--brand-dark);
}
.business-card-type {
    color: var(--muted);
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: .25rem;
}
.business-card-name {
    font-size: 1.35rem;
    font-weight: 800;
    margin: 0;
    color: var(--ink);
}
.business-card-details {
    display: grid;
    gap: .85rem;
}
.business-card-row {
    display: grid;
    grid-template-columns: 1.1rem 1fr;
    gap: .75rem;
    align-items: start;
    color: #334155;
    font-size: .95rem;
    line-height: 1.45;
}
.business-card-row i {
    color: var(--brand);
    margin-top: .2rem;
}
.business-card-row a {
    color: inherit;
    text-decoration: none;
    word-break: break-word;
}
.business-card-row a:hover { color: var(--brand-dark); }
body.review-modal-open { overflow: hidden; }
.review-powered {
    margin-top: 1rem;
    font-size: .78rem;
    color: #94a3b8;
}

@media (max-width: 420px) {
    .review-card-v2 {
        padding: 1.15rem .95rem 1.25rem;
    }
    .review-meta-row {
        flex-wrap: wrap;
    }
}

/* QR design panel */
.qr-panel-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    align-items: start;
}
.qr-panel-controls { min-width: 0; }
.qr-preview-wrap {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: .75rem;
}
.qr-preview-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    flex-wrap: wrap;
}
.qr-style-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem;
}
.qr-style-option {
    border: 1px solid var(--card-border);
    border-radius: .9rem;
    padding: .65rem .7rem;
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    cursor: pointer;
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
    min-height: 74px;
}
.qr-style-option.is-active {
    border-color: var(--brand);
    box-shadow: 0 0 0 2px rgba(15,118,110,.12);
}
.qr-style-input { display: none; }
.qr-style-preview {
    width: 42px;
    height: 54px;
    border-radius: .55rem;
    border: 1px solid rgba(15,23,42,.08);
    flex: 0 0 auto;
    position: relative;
    overflow: hidden;
    background: #f8fafc;
}
.qr-mini-layout {
    position: absolute;
    inset: 5px;
    border-radius: .3rem;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15,23,42,.08);
}
.qr-mini-layout::before,
.qr-mini-layout::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}
.qr-mini-layout::before {
    top: 5px;
    width: 10px;
    height: 3px;
    border-radius: 2px;
    background: #94a3b8;
}
.qr-mini-layout::after {
    top: 14px;
    width: 18px;
    height: 18px;
    border-radius: 3px;
    background:
        linear-gradient(90deg, #0f172a 25%, transparent 25%) 0 0 / 6px 6px,
        linear-gradient(#0f172a 25%, transparent 25%) 0 0 / 6px 6px,
        #fff;
}
.qr-style-copy {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    min-width: 0;
}
.qr-style-name {
    font-size: .82rem;
    font-weight: 700;
    line-height: 1.2;
}
.qr-style-desc {
    font-size: .68rem;
    color: #64748b;
    line-height: 1.25;
}
.qr-swatch-modern .qr-style-preview { background: #e2e8f0; }
.qr-swatch-modern .qr-mini-layout { box-shadow: 2px 3px 0 #cbd5e1; border-left: 3px solid #0f766e; }
.qr-swatch-minimal .qr-style-preview { background: #fff; }
.qr-swatch-minimal .qr-mini-layout { border: 1px solid #e2e8f0; box-shadow: none; }
.qr-swatch-gradient .qr-style-preview { background: linear-gradient(180deg, #0f766e, #042f2e); }
.qr-swatch-gradient .qr-mini-layout { background: transparent; box-shadow: none; }
.qr-swatch-gradient .qr-mini-layout::before { background: #99f6e4; border-radius: 50%; width: 8px; height: 8px; }
.qr-swatch-gradient .qr-mini-layout::after { border-radius: 50%; background: #fff; }
.qr-swatch-glass .qr-style-preview { background: linear-gradient(160deg, #99f6e4, #0f766e); }
.qr-swatch-glass .qr-mini-layout { background: rgba(255,255,255,.55); border: 1px solid rgba(255,255,255,.7); }
.qr-swatch-bold .qr-style-preview { background: #f8fafc; }
.qr-swatch-bold .qr-mini-layout { background: linear-gradient(180deg, #042f2e 38%, #fff 38%); box-shadow: none; }
.qr-swatch-bold .qr-mini-layout::before { background: #2dd4bf; }
.qr-swatch-elegant .qr-style-preview { background: #fafaf9; }
.qr-swatch-elegant .qr-mini-layout { border: 1px solid #0f766e; outline: 1px solid #d6d3d1; outline-offset: 2px; box-shadow: none; }
.qr-swatch-custom .qr-style-preview {
    background: conic-gradient(#0f766e, #f59e0b, #db2777, #2563eb, #0f766e);
}
.qr-swatch-custom .qr-mini-layout { border-left: 3px solid #0f766e; }
.qr-custom-colors .form-control-color {
    height: 42px;
    padding: .2rem;
    border-radius: .65rem;
}
.qr-preview-frame {
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    background:
        linear-gradient(45deg, #f1f5f9 25%, transparent 25%),
        linear-gradient(-45deg, #f1f5f9 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #f1f5f9 75%),
        linear-gradient(-45deg, transparent 75%, #f1f5f9 75%);
    background-size: 16px 16px;
    background-position: 0 0, 0 8px, 8px -8px, -8px 0;
    min-height: 240px;
    display: grid;
    place-items: center;
    padding: 1rem;
    width: 100%;
    overflow: hidden;
}
.qr-preview-frame img {
    display: block;
    max-width: 100%;
    max-height: min(58vh, 480px);
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    border-radius: .6rem;
    box-shadow: 0 12px 28px rgba(15,23,42,.1);
    background: #fff;
}
.qr-preview-frame[data-mode="poster"] img {
    max-height: min(62vh, 520px);
}
.qr-preview-frame[data-mode="qr"] img {
    max-height: min(42vh, 320px);
}

@media (min-width: 992px) {
    .qr-panel-layout {
        grid-template-columns: minmax(340px, 1fr) minmax(280px, 360px);
        gap: 1.5rem;
        align-items: start;
    }
    .qr-preview-wrap {
        position: sticky;
        top: 1rem;
        align-self: start;
        width: 100%;
    }
    .qr-preview-frame {
        min-height: 0;
        height: auto;
        padding: 1rem;
    }
    .qr-preview-frame img,
    .qr-preview-frame[data-mode="poster"] img,
    .qr-preview-frame[data-mode="qr"] img {
        width: 100%;
        max-width: 300px;
        max-height: min(68vh, 520px);
        height: auto;
        object-fit: contain;
    }
    .qr-preview-frame[data-mode="qr"] img {
        max-width: 240px;
        max-height: 240px;
    }
}

@media (max-width: 991.98px) {
    .qr-preview-wrap { order: -1; }
    .qr-preview-frame { min-height: 260px; }
    .qr-preview-frame img,
    .qr-preview-frame[data-mode="poster"] img {
        max-width: min(100%, 320px);
        max-height: min(55vh, 440px);
    }
}

@media (max-width: 991.98px) {
    .auth-wrap { grid-template-columns: 1fr; }
    .auth-aside {
        display: none;
        position: static;
        height: auto;
    }
    .auth-form { min-height: 100vh; }
    .sidebar {
        position: fixed;
        left: -280px;
        z-index: 1040;
        transition: left .25s ease;
    }
    .sidebar.show { left: 0; }
    .pricing-card.featured { transform: none; }
    .hero { min-height: auto; padding: 5rem 0 3rem; }
}
