:root {
    --bv-bg: #fbf6ec;
    --bv-surface: #fffdf8;
    --bv-surface-strong: #ffffff;
    --bv-text: #17251b;
    --bv-muted: #5d6d61;
    --bv-border: #dfe7dd;
    --bv-primary: #1f7a3f;
    --bv-primary-dark: #14562c;
    --bv-accent: #c98f3a;
    --bv-radius: 8px;
    --bv-shadow: 0 14px 34px rgba(23, 37, 27, 0.08);
}

html {
    scroll-behavior: smooth;
}

body.bv-qr-app {
    background: var(--bv-bg);
    color: var(--bv-text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

.bv-qr-app a {
    color: var(--bv-primary);
}

.bv-qr-app a:hover,
.bv-qr-app a:focus {
    color: var(--bv-primary-dark);
}

.bv-qr-app :focus-visible {
    outline: 3px solid rgba(31, 122, 63, 0.32);
    outline-offset: 3px;
}

.bv-topbar {
    background: rgba(251, 246, 236, 0.96);
    border-bottom: 1px solid var(--bv-border);
    position: sticky;
    top: 0;
    z-index: 1030;
    backdrop-filter: blur(12px);
}

.bv-topbar-inner,
.bv-footer-inner {
    align-items: center;
    display: flex;
    gap: 16px;
    justify-content: space-between;
}

.bv-topbar-inner {
    min-height: 72px;
}

.bv-brand,
.bv-footer-brand {
    align-items: center;
    color: var(--bv-text);
    display: inline-flex;
    font-weight: 800;
    gap: 10px;
    letter-spacing: 0;
}

.bv-brand:hover,
.bv-brand:focus,
.bv-footer-brand:hover,
.bv-footer-brand:focus {
    color: var(--bv-primary-dark);
    text-decoration: none;
}

.bv-brand img {
    display: block;
    max-height: 42px;
    max-width: 160px;
    object-fit: contain;
}

.bv-topbar-actions,
.bv-footer-links {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
}

.bv-nav-link,
.bv-footer-links a {
    color: var(--bv-muted);
    font-size: 0.95rem;
    font-weight: 650;
}

.bv-lang-switch {
    align-items: center;
    background: var(--bv-surface-strong);
    border: 1px solid var(--bv-border);
    border-radius: var(--bv-radius);
    display: inline-flex;
    gap: 8px;
    padding: 7px 10px;
}

.bv-lang-option {
    color: var(--bv-muted);
    font-weight: 800;
    line-height: 1;
}

.bv-lang-option.active {
    color: var(--bv-primary);
}

.bv-hero {
    padding: 28px 0 16px;
}

.bv-hero-copy {
    max-width: 760px;
}

.bv-kicker {
    color: var(--bv-primary);
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin: 0 0 8px;
    text-transform: uppercase;
}

.bv-hero h1 {
    color: var(--bv-text);
    font-size: 2rem;
    font-weight: 850;
    letter-spacing: 0;
    line-height: 1.12;
    margin: 0;
}

.bv-hero-description {
    color: var(--bv-muted);
    font-size: 1rem;
    margin: 12px 0 0;
    max-width: 660px;
}

.bv-brand-line {
    color: var(--bv-primary-dark);
    font-weight: 800;
    margin: 10px 0 0;
}

.bv-tool-main {
    padding-bottom: 28px;
}

.qrcdr-form {
    background: transparent;
}

.tab-content {
    background: var(--bv-surface-strong);
    border: 1px solid var(--bv-border);
    border-radius: var(--bv-radius);
    box-shadow: var(--bv-shadow);
    padding: 16px;
}

.tab-pane h4,
.bv-preview-heading h2,
.bv-vip-soon h2,
.bv-faq h2 {
    color: var(--bv-text);
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0;
    margin: 0 0 12px;
}

.bv-preview-heading p,
.bv-vip-soon p,
.bv-faq p {
    color: var(--bv-muted);
    margin: 0;
}

.nav-pills {
    background: rgba(255, 253, 248, 0.8);
    border: 1px solid var(--bv-border);
    border-radius: var(--bv-radius);
    gap: 6px;
    padding: 6px;
}

.nav-pills .nav-item {
    flex: 1 1 118px;
}

.nav-pills .nav-link {
    align-items: center;
    border-radius: var(--bv-radius) !important;
    color: var(--bv-muted);
    display: inline-flex;
    font-weight: 750;
    gap: 7px;
    justify-content: center;
    min-height: 42px;
    width: 100%;
}

.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
    background: var(--bv-primary) !important;
    color: #fff !important;
}

.form-control,
.custom-select,
.form-select {
    background-color: #fff;
    border-color: var(--bv-border);
    border-radius: var(--bv-radius) !important;
    color: var(--bv-text);
    min-height: 46px;
}

textarea.form-control {
    min-height: 150px;
}

.form-control:focus,
.custom-select:focus,
.form-select:focus {
    border-color: var(--bv-primary);
    box-shadow: 0 0 0 0.2rem rgba(31, 122, 63, 0.18);
}

.input-group-text {
    background: #edf6ef;
    border-color: var(--bv-border);
    border-radius: var(--bv-radius) 0 0 var(--bv-radius) !important;
    color: var(--bv-primary);
    min-width: 46px;
    justify-content: center;
}

.input-group-text .fa,
.tab-pane .fa {
    color: var(--bv-primary) !important;
}

.input-group > .form-control,
.input-group > .custom-select {
    border-bottom-left-radius: 0 !important;
    border-top-left-radius: 0 !important;
}

.accordion {
    margin-top: 16px;
}

.accordion-item {
    background: transparent;
    border: 0;
}

.accordion .btn-outline-primary {
    background: var(--bv-surface-strong);
    border-color: var(--bv-border);
    border-radius: var(--bv-radius) !important;
    color: var(--bv-primary);
    font-weight: 800;
}

.accordion .btn-outline-primary:hover,
.accordion .btn-outline-primary:focus {
    background: #edf6ef;
    color: var(--bv-primary-dark);
}

.btn {
    border-radius: var(--bv-radius) !important;
    font-weight: 800;
    min-height: 44px;
}

.btn-primary,
.btn-default {
    background: var(--bv-primary) !important;
    border-color: var(--bv-primary) !important;
    color: #fff !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-default:hover,
.btn-default:focus {
    background: var(--bv-primary-dark) !important;
    border-color: var(--bv-primary-dark) !important;
    color: #fff !important;
}

.btn-outline-primary {
    border-color: var(--bv-primary);
    color: var(--bv-primary);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background: var(--bv-primary);
    color: #fff;
}

.btn:disabled {
    opacity: 0.45;
}

.bv-preview {
    display: block;
}

.sticky-lg-top {
    top: 92px;
}

.placeresult {
    background: var(--bv-surface-strong);
    border: 1px solid var(--bv-border);
    border-radius: var(--bv-radius);
    box-shadow: var(--bv-shadow);
    padding: 16px;
    position: relative;
}

.wrapresult,
.resultholder {
    position: relative;
    text-align: center;
}

.resultholder {
    align-items: center;
    background: #fff;
    border: 1px dashed #c9d7cc;
    border-radius: var(--bv-radius);
    display: flex;
    justify-content: center;
    margin: 14px 0;
    min-height: 260px;
    padding: 16px;
}

.resultholder img,
.resultholder svg {
    height: auto;
    max-width: min(100%, 280px);
}

.preloader {
    background: rgba(255, 255, 255, 0.88);
    border-radius: var(--bv-radius);
    display: none;
    font-size: 34px;
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
}

.preloader .fa-cog {
    left: 50%;
    margin-left: -17px;
    margin-top: -17px;
    position: absolute;
    top: 50%;
}

.generate_qrcode,
.bv-reset-qr {
    align-items: center;
    display: inline-flex;
    gap: 8px;
    justify-content: center;
    width: 100%;
}

.bv-reset-qr {
    margin-top: 10px;
}

.linksholder {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.bv-download-heading {
    color: var(--bv-text);
    flex-basis: 100%;
    font-weight: 850;
    margin-bottom: 2px;
}

.linksholder .btn {
    align-items: center;
    display: inline-flex;
    gap: 7px;
    justify-content: center;
    min-width: 92px;
    padding-left: 12px;
    padding-right: 12px;
}

.linksholder .btn svg {
    height: 1.15em;
    width: 1.15em;
}

.bv-promo-card,
.bv-vip-soon,
.bv-faq article {
    background: #f2f8f1;
    border: 1px solid #cfe0d0;
    border-radius: var(--bv-radius);
}

.bv-promo-card {
    margin-top: 14px;
    padding: 14px;
    text-align: left;
}

.bv-promo-card[hidden] {
    display: none !important;
}

.bv-promo-title {
    color: var(--bv-text);
    font-weight: 850;
    margin: 0 0 6px;
}

.bv-promo-card p:last-of-type {
    color: var(--bv-muted);
    margin-bottom: 10px;
}

.bv-promo-card a {
    font-weight: 850;
}

.bv-vip-soon {
    margin-top: 16px;
    padding: 14px;
}

.bv-vip-soon h2 {
    font-size: 1rem;
    margin-bottom: 6px;
}

.bv-contrast-message {
    border-radius: var(--bv-radius);
    color: var(--bv-muted);
    font-size: 0.92rem;
    margin: 10px 0 0;
    min-height: 22px;
    padding: 8px 10px;
}

.bv-contrast-message.is-warning {
    background: #fff4d7;
    color: #684500;
}

.bv-contrast-message.is-ok {
    background: #eef8ef;
    color: #155d31;
}

.logoselecta img {
    max-height: 2rem;
    max-width: 2rem;
    min-height: 2rem;
    min-width: 2rem;
}

.styleselecta label,
.btn-group-toggle .btn {
    border-radius: var(--bv-radius) !important;
}

.qrcdr-slider .qrcdr-slider-input::-webkit-slider-thumb {
    background: var(--bv-primary);
}

.qrcdr-slider .qrcdr-slider-input::-moz-range-thumb {
    background: var(--bv-primary);
}

.bv-faq {
    background: #fffaf0;
    border-top: 1px solid var(--bv-border);
    padding: 30px 0 36px;
}

.bv-faq h2 {
    font-size: 1.35rem;
    margin-bottom: 16px;
}

.bv-faq-grid {
    display: grid;
    gap: 12px;
}

.bv-faq article {
    background: var(--bv-surface-strong);
    padding: 16px;
}

.bv-faq h3 {
    color: var(--bv-text);
    font-size: 1rem;
    font-weight: 850;
    margin: 0 0 8px;
}

.bv-footer {
    background: #17251b;
    color: #dce8de;
    padding: 26px 0;
}

.bv-footer p {
    color: #b8c8bc;
    margin: 6px 0 0;
}

.bv-footer a {
    color: #f7f2e8;
}

.bv-footer a:hover,
.bv-footer a:focus {
    color: #bce5bf;
}

.alert_placeholder {
    bottom: 15px;
    position: fixed;
    right: 15px;
    transition: visibility .15s linear;
    visibility: hidden;
    z-index: 1040;
}

.alert_placeholder.show {
    visibility: visible;
}

.content {
    background: var(--bv-surface-strong);
    border: 1px solid var(--bv-border);
    border-radius: var(--bv-radius);
    box-shadow: var(--bv-shadow);
    display: block;
    margin: 18px 0;
    padding: 24px;
}

.content.page h1,
.content.page h2,
.content.page h3 {
    color: var(--bv-primary);
    letter-spacing: 0;
}

.content.page .round {
    align-items: center;
    background: var(--bv-primary);
    border-radius: 999px;
    color: #fff;
    display: flex;
    font-size: 1.2rem;
    height: 42px;
    justify-content: center;
    margin: 0 auto 10px;
    width: 42px;
}

@media (min-width: 576px) {
    .bv-hero h1 {
        font-size: 2.35rem;
    }

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

@media (min-width: 992px) {
    .bv-hero {
        padding-top: 40px;
    }

    .bv-hero h1 {
        font-size: 2.75rem;
    }

    .sticky-lg-top {
        position: sticky;
    }
}

@media (max-width: 767.98px) {
    .bv-topbar-inner,
    .bv-footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .bv-topbar-actions,
    .bv-footer-links {
        justify-content: flex-start;
        width: 100%;
    }

    .bv-brand {
        width: 100%;
    }

    .bv-brand img {
        max-width: 136px;
    }

    .bv-hero {
        padding-top: 22px;
    }

    .bv-hero h1 {
        font-size: 1.75rem;
    }

    .tab-content,
    .placeresult {
        padding: 14px;
    }

    .resultholder {
        min-height: 220px;
    }

    .nav-pills .nav-item {
        flex-basis: calc(50% - 6px);
    }
}
