.miweb-shell {
    min-height: 100vh;
    background: var(--miweb-bg, #fffaf5);
    color: var(--miweb-text, #101828);
}

.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: 700;
}

.miweb-preview-bar a {
    color: #fff;
}

.miweb-top {
    background: var(--miweb-primary-soft, #fff8f1);
    padding: 10px 0;
    font-family: Outfit, sans-serif;
}

.miweb-call,
.miweb-top-social a {
    color: var(--miweb-text, #111827);
    text-decoration: none;
    font-weight: 700;
}

.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(16px);
    border-bottom: 1px solid rgba(15, 23, 42, .08);
    font-family: Outfit, sans-serif;
}

.miweb-nav .container {
    gap: 14px;
}

.miweb-brand {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font-weight: 800;
    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: 54px;
    height: 54px;
    object-fit: contain;
}

.miweb-brand-name {
    display: block;
    max-width: 140px;
    overflow-wrap: anywhere;
    color: var(--miweb-muted, #475467);
    font-size: .78rem;
    font-weight: 700;
}

.miweb-nav .navbar-nav {
    gap: 4px;
}

.miweb-nav .nav-link {
    color: var(--miweb-text, #1d2939);
    font-weight: 700;
    padding-inline: 10px;
    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: 14px;
    padding: 12px 22px;
    font-weight: 800;
    text-decoration: none;
}

.miweb-btn-outline,
.miweb-btn-outline:hover {
    color: var(--miweb-primary, #ff6b00);
    border: 2px solid var(--miweb-primary, #ff6b00);
    border-radius: 14px;
    padding: 10px 22px;
    font-weight: 800;
    text-decoration: none;
    background: var(--miweb-surface, #fff);
}

.miweb-page {
    font-family: Outfit, sans-serif;
    color: var(--miweb-text, #101828);
}

.miweb-hero {
    position: relative;
    min-height: min(880px, calc(100vh - 82px));
    padding: clamp(72px, 9vw, 120px) 0 clamp(42px, 7vw, 82px);
    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: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--miweb-surface, #fff);
    color: var(--miweb-primary, #ff6b00);
    box-shadow: 0 10px 24px rgba(16, 24, 40, .08);
    font-weight: 800;
}

.miweb-hero h1 {
    max-width: 760px;
    margin: 24px 0 18px;
    font-size: clamp(2.65rem, 6vw, 5.6rem);
    line-height: .96;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.miweb-hero p {
    max-width: 620px;
    color: var(--miweb-muted, #475467);
    font-size: 1.35rem;
}

.miweb-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.miweb-feature-strip {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    padding: 28px;
    margin-top: clamp(28px, 5vw, 48px);
    margin-bottom: 48px;
    background: var(--miweb-surface, #fff);
    border-radius: 24px;
    box-shadow: 0 22px 50px var(--miweb-shadow, rgba(16, 24, 40, .12));
}

.miweb-feature-strip div,
.miweb-info-card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.miweb-feature-strip i,
.miweb-info-card i {
    font-size: 2rem;
    color: var(--miweb-primary, #ff6b00);
}

.miweb-feature-strip small {
    display: block;
    color: var(--miweb-muted, #667085);
}

.miweb-section {
    padding: clamp(64px, 8vw, 96px) 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: 820px;
    margin: 0 auto 48px;
    text-align: center;
}

.miweb-section-head h2 {
    margin: 18px 0 12px;
    font-size: clamp(2.1rem, 4vw, 3.8rem);
    line-height: 1;
    font-weight: 800;
    color: var(--miweb-secondary, #08102d);
}

.miweb-section-head p {
    color: var(--miweb-muted, #667085);
    font-size: 1.12rem;
}

.miweb-section-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.miweb-filter-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 14px;
    margin-bottom: 28px;
    padding: 18px;
    border-radius: 18px;
    background: var(--miweb-surface, #fff);
    box-shadow: 0 10px 26px var(--miweb-shadow, rgba(16, 24, 40, .06));
}

.miweb-filter-row .form-control,
.miweb-filter-row .form-select,
.miweb-contact-card .form-control {
    min-height: 50px;
    border-radius: 14px;
    border-color: var(--miweb-border, #e4e7ec);
}

.miweb-product-card,
.miweb-info-card,
.miweb-contact-card {
    height: 100%;
    padding: 24px;
    border: 1px solid var(--miweb-border, #eaecf0);
    border-radius: 22px;
    background: var(--miweb-surface, #fff);
    box-shadow: 0 12px 28px var(--miweb-shadow, rgba(16, 24, 40, .06));
}

.miweb-product-img {
    aspect-ratio: 4 / 3;
    height: auto;
    margin: -10px -10px 18px;
    border-radius: 18px;
    background-size: cover;
    background-position: center;
}

.miweb-product-card span {
    color: var(--miweb-primary, #ff6b00);
    font-weight: 800;
}

.miweb-product-card h3,
.miweb-info-card h3 {
    margin: 10px 0;
    font-size: 1.2rem;
    font-weight: 800;
}

.miweb-info-card {
    display: block;
    text-align: center;
}

.miweb-info-card p {
    color: var(--miweb-muted, #667085);
}

.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: 16px;
    padding: clamp(22px, 4vw, 34px);
    border: 1px solid color-mix(in srgb, var(--miweb-primary, #ff6b00) 22%, transparent);
    border-radius: 28px;
    background: color-mix(in srgb, var(--miweb-surface, #fff) 86%, transparent);
    box-shadow: 0 22px 48px var(--miweb-shadow, rgba(16, 24, 40, .1));
    backdrop-filter: blur(14px);
}

.miweb-appointment-card div {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 2px 16px;
    align-items: center;
    padding: 16px;
    border-radius: 18px;
    background: var(--miweb-surface, #fff);
}

.miweb-appointment-card i {
    grid-row: span 2;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: var(--miweb-primary-soft, #fff2e6);
    color: var(--miweb-primary, #ff6b00);
    font-size: 1.4rem;
}

.miweb-appointment-card strong {
    font-weight: 800;
    color: var(--miweb-text, #101828);
}

.miweb-appointment-card span {
    color: var(--miweb-muted, #667085);
}

.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: 72px 0 28px;
    background: var(--miweb-secondary, #08102d);
    color: #fff;
    font-family: Outfit, sans-serif;
}

.miweb-footer img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    margin-bottom: 16px;
}

.miweb-footer h3,
.miweb-footer h4 {
    font-weight: 800;
}

.miweb-footer p {
    color: rgba(255, 255, 255, .72);
}

.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: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    background: var(--miweb-primary, #ff6b00);
    color: #fff;
    box-shadow: 0 10px 24px rgba(16, 24, 40, .22);
}

.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;
    }

    .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: 14px;
        border: 1px solid rgba(15, 23, 42, .08);
        border-radius: 18px;
        background: #fff;
        box-shadow: 0 18px 36px rgba(16, 24, 40, .1);
    }

    .miweb-nav .navbar-nav {
        align-items: stretch !important;
        gap: 6px;
    }

    .miweb-nav .nav-link,
    .miweb-nav .miweb-btn {
        width: 100%;
        text-align: center;
        border-radius: 12px;
    }

    .miweb-hero {
        min-height: auto;
        padding-top: 64px;
    }

    .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: 22px;
    }

    .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: 12px 16px;
    }

    .miweb-section-actions {
        display: grid;
    }

    .miweb-hero {
        background-position: center top;
        padding: 52px 0 34px;
    }

    .miweb-hero h1 {
        font-size: clamp(2.25rem, 12vw, 3.5rem);
    }

    .miweb-hero p {
        font-size: 1.05rem;
    }

    .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: 18px;
        border-radius: 18px;
    }

    .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: 52px;
        text-align: center;
    }

    .miweb-footer-bottom {
        justify-content: center;
    }
}
