.miweb-shell {
    min-height: 100vh;
    background: var(--miweb-bg, #fffaf5);
    color: var(--miweb-text, #101828);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.55;
}

.miweb-shell,
.miweb-shell * {
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.miweb-preview-bar {
    position: sticky;
    top: 0;
    z-index: 2000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 24px;
    background: #101828;
    color: #fff;
    font-weight: 600;
    font-size: .86rem;
}

.miweb-preview-bar a {
    color: #fff;
}

.miweb-top {
    background: var(--miweb-primary-soft, #fff8f1);
    padding: 8px 0;
}

.miweb-call,
.miweb-top-social a {
    color: var(--miweb-text, #111827);
    text-decoration: none;
    font-weight: 600;
    font-size: .88rem;
}

.miweb-top-social {
    display: flex;
    gap: 14px;
}

.miweb-nav {
    position: sticky;
    top: 0;
    z-index: 1020;
    background: color-mix(in srgb, var(--miweb-surface, #fff) 94%, transparent);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(15, 23, 42, .08);
}

.miweb-nav .container {
    gap: 14px;
}

.miweb-brand {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font-weight: 600;
    color: var(--miweb-secondary, #08102d);
    min-width: 92px;
    max-width: 140px;
    text-align: center;
    white-space: normal;
    line-height: 1.05;
}

.miweb-brand img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.miweb-brand-name {
    display: block;
    max-width: 140px;
    overflow-wrap: anywhere;
    color: var(--miweb-muted, #475467);
    font-size: .72rem;
    font-weight: 600;
}

.miweb-nav .navbar-nav {
    gap: 4px;
}

.miweb-nav .nav-link {
    color: var(--miweb-text, #1d2939);
    font-weight: 600;
    font-size: .92rem;
    padding-inline: 12px;
    white-space: nowrap;
}

.miweb-nav .nav-link:hover {
    color: var(--miweb-primary, #ff6b00);
}

.miweb-btn,
.miweb-btn:hover {
    background: var(--miweb-primary, #ff6b00);
    color: #fff;
    border: 0;
    border-radius: 10px;
    padding: 10px 18px;
    font-weight: 600;
    font-size: .92rem;
    text-decoration: none;
}

.miweb-btn-outline,
.miweb-btn-outline:hover {
    color: var(--miweb-primary, #ff6b00);
    border: 1px solid color-mix(in srgb, var(--miweb-primary, #ff6b00) 72%, var(--miweb-border, #e4e7ec));
    border-radius: 10px;
    padding: 9px 18px;
    font-weight: 600;
    font-size: .92rem;
    text-decoration: none;
    background: var(--miweb-surface, #fff);
}

.miweb-page {
    color: var(--miweb-text, #101828);
}

.miweb-hero {
    position: relative;
    min-height: min(720px, calc(100vh - 78px));
    padding: clamp(56px, 7vw, 88px) 0 clamp(34px, 5vw, 62px);
    background: linear-gradient(90deg, color-mix(in srgb, var(--miweb-bg, #faf8f5) 96%, transparent), color-mix(in srgb, var(--miweb-bg, #faf8f5) 68%, transparent)), var(--hero-image);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.miweb-hero .min-vh-100 {
    min-height: auto !important;
}

.miweb-badge,
.miweb-section-head span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 13px;
    border-radius: 999px;
    background: var(--miweb-surface, #fff);
    color: var(--miweb-primary, #ff6b00);
    box-shadow: 0 8px 18px rgba(16, 24, 40, .06);
    font-size: .82rem;
    font-weight: 600;
}

.miweb-hero h1 {
    max-width: 640px;
    margin: 20px 0 14px;
    font-size: clamp(2rem, 3.45vw, 3.2rem);
    line-height: 1.03;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.miweb-hero p {
    max-width: 560px;
    color: var(--miweb-muted, #475467);
    font-size: 1.06rem;
    line-height: 1.65;
}

.miweb-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.miweb-feature-strip {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    padding: 20px;
    margin-top: clamp(24px, 4vw, 36px);
    margin-bottom: 34px;
    background: var(--miweb-surface, #fff);
    border: 1px solid var(--miweb-border, #eaecf0);
    border-radius: 14px;
    box-shadow: 0 10px 24px var(--miweb-shadow, rgba(16, 24, 40, .08));
}

.miweb-feature-strip div,
.miweb-info-card {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.miweb-feature-strip i,
.miweb-info-card i {
    font-size: 1.45rem;
    color: var(--miweb-primary, #ff6b00);
}

.miweb-feature-strip small {
    display: block;
    color: var(--miweb-muted, #667085);
    font-size: .88rem;
}

.miweb-section {
    padding: clamp(46px, 6vw, 72px) 0;
}

.miweb-section:nth-child(even) {
    background: color-mix(in srgb, var(--miweb-bg, #fafafa) 88%, var(--miweb-surface, #fff));
}

.miweb-section-head {
    max-width: 720px;
    margin: 0 auto 34px;
    text-align: center;
}

.miweb-section-head h2 {
    margin: 14px 0 10px;
    font-size: clamp(1.55rem, 2.3vw, 2.3rem);
    line-height: 1.08;
    font-weight: 700;
    color: var(--miweb-secondary, #08102d);
}

.miweb-section-head p {
    color: var(--miweb-muted, #667085);
    font-size: .98rem;
    line-height: 1.65;
}

.miweb-section-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.miweb-filter-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 12px;
    margin-bottom: 22px;
    padding: 14px;
    border-radius: 12px;
    background: var(--miweb-surface, #fff);
    border: 1px solid var(--miweb-border, #eaecf0);
    box-shadow: 0 8px 18px var(--miweb-shadow, rgba(16, 24, 40, .05));
}

.miweb-filter-row .form-control,
.miweb-filter-row .form-select,
.miweb-contact-card .form-control {
    min-height: 44px;
    border-radius: 10px;
    border-color: var(--miweb-border, #e4e7ec);
}

.miweb-product-card,
.miweb-info-card,
.miweb-contact-card {
    height: 100%;
    padding: 18px;
    border: 1px solid var(--miweb-border, #eaecf0);
    border-radius: 12px;
    background: var(--miweb-surface, #fff);
    box-shadow: 0 8px 18px var(--miweb-shadow, rgba(16, 24, 40, .05));
}

.miweb-product-img {
    aspect-ratio: 4 / 3;
    height: auto;
    margin: -6px -6px 14px;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
}

.miweb-product-card span {
    color: var(--miweb-primary, #ff6b00);
    font-size: .78rem;
    font-weight: 600;
}

.miweb-product-card h3,
.miweb-info-card h3 {
    margin: 8px 0;
    font-size: 1.02rem;
    font-weight: 600;
}

.miweb-info-card {
    display: block;
    text-align: center;
}

.miweb-info-card p {
    color: var(--miweb-muted, #667085);
    font-size: .92rem;
}

.miweb-contact {
    background: var(--miweb-bg, #faf8f5);
}

.miweb-appointments {
    background: linear-gradient(135deg, var(--miweb-primary-soft, #fff7ed) 0%, var(--miweb-surface, #fff) 52%, color-mix(in srgb, var(--miweb-accent, #0ea5e9) 10%, #fff) 100%);
}

.miweb-appointment-card {
    display: grid;
    gap: 12px;
    padding: clamp(18px, 3vw, 26px);
    border: 1px solid color-mix(in srgb, var(--miweb-primary, #ff6b00) 22%, transparent);
    border-radius: 14px;
    background: color-mix(in srgb, var(--miweb-surface, #fff) 92%, transparent);
    box-shadow: 0 10px 24px var(--miweb-shadow, rgba(16, 24, 40, .07));
    backdrop-filter: blur(10px);
}

.miweb-appointment-card div {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 2px 12px;
    align-items: center;
    padding: 13px;
    border-radius: 11px;
    background: var(--miweb-surface, #fff);
}

.miweb-appointment-card i {
    grid-row: span 2;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--miweb-primary-soft, #fff2e6);
    color: var(--miweb-primary, #ff6b00);
    font-size: 1.15rem;
}

.miweb-appointment-card strong {
    font-weight: 600;
    color: var(--miweb-text, #101828);
}

.miweb-appointment-card span {
    color: var(--miweb-muted, #667085);
    font-size: .9rem;
}

.miweb-contact-card {
    display: grid;
    gap: 16px;
}

.miweb-contact-card p {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 4px 12px;
    margin: 0;
}

.miweb-contact-card p i {
    grid-row: span 2;
    color: var(--miweb-primary, #ff6b00);
    font-size: 1.5rem;
}

.miweb-contact-card p span {
    color: var(--miweb-muted, #667085);
}

.miweb-map {
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 14px 32px var(--miweb-shadow, rgba(16, 24, 40, .1));
}

.miweb-footer {
    padding: 56px 0 24px;
    background: var(--miweb-secondary, #08102d);
    color: #fff;
}

.miweb-footer img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    margin-bottom: 16px;
}

.miweb-footer h3,
.miweb-footer h4 {
    font-weight: 600;
}

.miweb-footer p {
    color: rgba(255, 255, 255, .72);
    font-size: .92rem;
}

.miweb-footer a:not(.btn) {
    display: block;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, .72);
    text-decoration: none;
}

.miweb-footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    color: rgba(255, 255, 255, .66);
}

#btnTop {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 100;
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: var(--miweb-primary, #ff6b00);
    color: #fff;
    box-shadow: 0 8px 18px rgba(16, 24, 40, .18);
}

.miweb-admin-page {
    display: grid;
    gap: 24px;
}

.miweb-admin-hero,
.miweb-admin-card {
    border: 1px solid var(--app-border, #e4e7ec);
    border-radius: 18px;
    background: var(--app-surface, #fff);
    box-shadow: 0 12px 28px rgba(16, 24, 40, .06);
}

.miweb-admin-hero {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    padding: 28px;
}

.miweb-admin-hero h1 {
    margin: 0;
    font-weight: 800;
}

.miweb-admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.miweb-admin-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.miweb-admin-card {
    padding: 22px;
}

.miweb-admin-card strong {
    display: block;
    font-size: 1.8rem;
    color: var(--app-primary, #6d5dfc);
}

.miweb-section-list {
    display: grid;
    gap: 12px;
}

.miweb-section-row {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--app-border, #e4e7ec);
    border-radius: 16px;
    background: var(--app-surface, #fff);
}

.miweb-section-row i {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: var(--app-primary-soft, #f2efff);
    color: var(--app-primary, #6d5dfc);
    font-size: 1.3rem;
}

.miweb-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.miweb-form-grid .span-2 {
    grid-column: 1 / -1;
}

.miweb-palette-panel {
    display: grid;
    gap: 18px;
    padding: 22px;
    border: 1px solid var(--app-border, #e4e7ec);
    border-radius: 18px;
    background: color-mix(in srgb, var(--app-primary-soft, #f2efff) 34%, var(--app-surface, #fff));
}

.miweb-palette-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.miweb-palette-head h2 {
    margin: 4px 0;
    font-size: 1.35rem;
    font-weight: 800;
}

.miweb-palette-mini,
.miweb-preset-swatches {
    display: inline-flex;
    gap: 6px;
    align-items: center;
}

.miweb-palette-mini span,
.miweb-preset-swatches i {
    width: 28px;
    height: 28px;
    border: 2px solid rgba(255, 255, 255, .86);
    border-radius: 999px;
    box-shadow: 0 0 0 1px rgba(16, 24, 40, .08);
}

.miweb-preset-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.miweb-preset-option {
    cursor: pointer;
}

.miweb-preset-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.miweb-preset-card {
    display: grid;
    gap: 12px;
    height: 100%;
    padding: 16px;
    border: 1px solid var(--app-border, #e4e7ec);
    border-radius: 16px;
    background: var(--app-surface, #fff);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.miweb-preset-option input:checked + .miweb-preset-card {
    border-color: var(--app-primary, #6d5dfc);
    box-shadow: 0 12px 28px rgba(109, 93, 252, .16);
    transform: translateY(-1px);
}

.miweb-color-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

.miweb-color-grid label {
    display: grid;
    gap: 8px;
    font-size: .86rem;
    font-weight: 700;
    color: var(--app-muted, #667085);
}

.miweb-color-grid input {
    width: 100%;
    height: 42px;
    padding: 4px;
    border: 1px solid var(--app-border, #e4e7ec);
    border-radius: 12px;
    background: var(--app-surface, #fff);
}

.miweb-preview-frame {
    width: 100%;
    min-height: calc(100vh - 140px);
    margin-inline: auto;
    border: 1px solid var(--app-border, #e4e7ec);
    border-radius: 18px;
    overflow: auto;
    background: #fff;
}

.miweb-preview-frame.tablet {
    max-width: 820px;
}

.miweb-preview-frame.mobile {
    max-width: 430px;
}

@media (max-width: 992px) {
    .miweb-top {
        display: none;
    }

    .miweb-nav {
        top: 0;
    }

    .miweb-nav .container {
        align-items: center;
        display: flex;
        flex-wrap: wrap;
    }

    .miweb-brand {
        max-width: 112px;
        min-width: 84px;
    }

    .miweb-brand img {
        width: 46px;
        height: 46px;
    }

    .miweb-brand-name {
        max-width: 112px;
        font-size: .7rem;
    }

    .miweb-nav .navbar-collapse {
        margin-top: 12px;
        padding: 12px;
        border: 1px solid rgba(15, 23, 42, .08);
        border-radius: 12px;
        background: #fff;
        box-shadow: 0 10px 24px rgba(16, 24, 40, .08);
    }

    .miweb-nav .navbar-nav {
        align-items: stretch !important;
        gap: 6px;
    }

    .miweb-nav .navbar-collapse .nav-link,
    .miweb-nav .navbar-collapse .miweb-btn {
        width: 100%;
        text-align: center;
        border-radius: 10px;
    }

    .miweb-nav > .container > .miweb-btn.d-lg-none {
        flex: 0 0 42px;
        width: 42px;
        height: 42px;
        min-height: 42px;
        padding: 0;
        border-radius: 10px;
    }

    .miweb-nav .navbar-toggler {
        width: 42px;
        height: 42px;
        padding: 0;
        border-color: var(--miweb-border, #e4e7ec);
        border-radius: 10px;
    }

    .miweb-nav .navbar-collapse {
        flex-basis: 100%;
    }

    .miweb-hero {
        min-height: auto;
        padding-top: 46px;
    }

    .miweb-feature-strip,
    .miweb-admin-grid,
    .miweb-form-grid,
    .miweb-filter-row,
    .miweb-preset-grid,
    .miweb-color-grid {
        grid-template-columns: 1fr;
    }

    .miweb-feature-strip {
        margin-top: 24px;
        padding: 18px;
    }

    .miweb-section-head.text-start {
        text-align: center !important;
    }

    .miweb-appointments .miweb-actions {
        justify-content: center;
    }

    .miweb-section-row,
    .miweb-admin-hero,
    .miweb-palette-head {
        grid-template-columns: 1fr;
        display: grid;
    }
}

@media (max-width: 576px) {
    .miweb-preview-bar {
        padding: 8px 14px;
        font-size: .82rem;
    }

    .miweb-brand {
        max-width: 92px;
    }

    .miweb-brand img {
        width: 40px;
        height: 40px;
    }

    .miweb-brand-name {
        max-width: 92px;
        font-size: .66rem;
    }

    .miweb-btn,
    .miweb-btn:hover,
    .miweb-btn-outline,
    .miweb-btn-outline:hover {
        width: 100%;
        padding: 10px 14px;
    }

    .miweb-nav > .container > .miweb-btn.d-lg-none,
    .miweb-nav > .container > .miweb-btn.d-lg-none:hover {
        width: 42px;
        padding: 0;
    }

    .miweb-section-actions {
        display: grid;
    }

    .miweb-hero {
        background-position: center top;
        padding: 38px 0 28px;
    }

    .miweb-hero h1 {
        margin-top: 16px;
        font-size: clamp(1.85rem, 8.8vw, 2.2rem);
        line-height: 1.08;
    }

    .miweb-hero p {
        font-size: .96rem;
    }

    .miweb-badge,
    .miweb-section-head span {
        max-width: 100%;
        justify-content: center;
        text-align: center;
    }

    .miweb-section-head {
        margin-bottom: 30px;
    }

    .miweb-product-card,
    .miweb-info-card,
    .miweb-contact-card,
    .miweb-appointment-card {
        padding: 16px;
        border-radius: 12px;
    }

    .miweb-appointment-card div {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .miweb-appointment-card i {
        grid-row: auto;
        margin: 0 auto 6px;
    }

    .miweb-footer {
        padding-top: 42px;
        text-align: center;
    }

    .miweb-footer-bottom {
        justify-content: center;
    }
}

@media (max-width: 420px) {
    .miweb-shell {
        font-size: 14px;
        overflow-x: hidden;
    }

    .miweb-nav .container {
        padding-inline: 10px;
        gap: 8px;
    }

    .miweb-brand {
        max-width: 82px;
        min-width: 72px;
    }

    .miweb-brand-name {
        max-width: 82px;
    }

    .miweb-nav .navbar-toggler,
    .miweb-nav > .container > .miweb-btn.d-lg-none,
    .miweb-nav > .container > .miweb-btn.d-lg-none:hover {
        flex: 0 0 38px;
        width: 38px;
        height: 38px;
        min-height: 38px;
    }

    .miweb-hero {
        padding-top: 28px;
    }

    .miweb-hero h1 {
        font-size: clamp(1.55rem, 9vw, 1.95rem);
    }

    .miweb-feature-strip,
    .miweb-filter-row,
    .miweb-contact-card,
    .miweb-appointment-card,
    .miweb-admin-card,
    .miweb-palette-panel {
        padding: 14px;
        border-radius: 10px;
    }

    .miweb-section {
        padding-block: 34px;
    }

    .miweb-section-row {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .miweb-section-row i {
        margin-inline: auto;
    }
}
