:root {
    --mc-primary: #073f69;
    --mc-secondary: #19a9c7;
    --mc-accent: #ff9f21;
    --mc-ink: #17354b;
    --mc-muted: #71828e;
    --mc-line: #dfe8ed;
    --mc-soft: #f4f8fa;
}

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
}

button,
input {
    font: inherit;
}

button,
label {
    -webkit-tap-highlight-color: transparent;
}

.mc-body {
    min-height: 100vh;
    color: var(--mc-ink);
    background: #eef3f6;
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;
}

.mc-top {
    position: relative;
    z-index: 10;
    background: var(--mc-primary);
}

.mc-top-inner {
    width: min(1160px,calc(100% - 30px));
    min-height: 66px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.mc-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 900;
}

.mc-brand-mark {
    width: 31px;
    height: 31px;
    display: grid;
    place-items: center;
    border: 2px solid rgba(255,255,255,.85);
    border-radius: 8px;
    font-size: 14px;
}

.mc-top-link {
    color: rgba(255,255,255,.78);
    text-decoration: none;
    font-size: 12px;
    font-weight: 750;
}

.mc-page {
    min-height: calc(100vh - 66px);
    padding:
        48px
        15px
        70px;
    background:
        linear-gradient(
            180deg,
            var(--mc-primary) 0,
            var(--mc-primary) 305px,
            #edf3f6 305px,
            #edf3f6 100%
        );
}

.mc-intro {
    width: min(750px,100%);
    margin:
        0 auto 35px;
    color: #fff;
    text-align: center;
}

.mc-badge {
    display: inline-flex;
    align-items: center;
    padding:
        7px 11px;
    border:
        1px solid
        rgba(255,255,255,.20);
    border-radius: 999px;
    background:
        rgba(255,255,255,.09);
    color: #8fe7f5;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .10em;
}

.mc-intro h1 {
    max-width: 730px;
    margin:
        12px auto 10px;
    font-size:
        clamp(
            38px,
            6vw,
            58px
        );
    line-height: 1;
    letter-spacing: -.045em;
}

.mc-intro p {
    max-width: 600px;
    margin: auto;
    color:
        rgba(255,255,255,.80);
    font-size: 16px;
    line-height: 1.6;
}

.mc-demo-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 19px;
}

.mc-demo-steps span {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding:
        0 11px;
    border-radius: 999px;
    background:
        rgba(255,255,255,.10);
    color:
        rgba(255,255,255,.84);
    font-size: 11px;
    font-weight: 700;
}

.mc-demo-steps strong {
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    color: var(--mc-primary);
    font-size: 10px;
}

.mc-main-shell {
    width: min(1000px,100%);
    margin: auto;
}

.mc-picker {
    margin-bottom: 13px;
    padding: 16px;
    border: 1px solid #dce6eb;
    border-radius: 17px;
    background: #fff;
    box-shadow:
        0 12px 35px
        rgba(27,57,75,.07);
}

.mc-section-title {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 12px;
}

.mc-section-title span {
    display: block;
    margin-bottom: 3px;
    color: var(--mc-secondary);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .09em;
}

.mc-section-title strong {
    font-size: 16px;
}

.mc-section-title small {
    color: var(--mc-muted);
    font-size: 11px;
}

.mc-frame-list {
    display: flex;
    gap: 9px;
    overflow-x: auto;
    padding:
        2px
        1px
        5px;
    scrollbar-width: thin;
}

.mc-frame-option {
    width: 105px;
    flex: 0 0 105px;
    padding: 5px;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 12px;
    background: #f0f5f7;
    color: var(--mc-ink);
    cursor: pointer;
}

.mc-frame-option.is-active {
    border-color: var(--mc-secondary);
    background: #eaf8fb;
}

.mc-frame-thumb {
    height: 82px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px;
    background:
        linear-gradient(
            45deg,
            #edf1f3 25%,
            transparent 25%
        ),
        linear-gradient(
            -45deg,
            #edf1f3 25%,
            transparent 25%
        ),
        linear-gradient(
            45deg,
            transparent 75%,
            #edf1f3 75%
        ),
        linear-gradient(
            -45deg,
            transparent 75%,
            #edf1f3 75%
        ),
        #fff;
    background-size: 16px 16px;
    background-position:
        0 0,
        0 8px,
        8px -8px,
        -8px 0;
}

.mc-frame-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.mc-frame-name {
    display: block;
    overflow: hidden;
    margin-top: 6px;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 11px;
}

.mc-editor-card {
    overflow: hidden;
    border: 1px solid #dce5ea;
    border-radius: 20px;
    background: #fff;
    box-shadow:
        0 24px 65px
        rgba(25,55,73,.13);
}

.mc-editor-layout {
    display: grid;
    grid-template-columns:
        minmax(0,1.08fr)
        minmax(320px,.92fr);
}

.mc-canvas-column {
    min-width: 0;
    padding: 20px;
    border-right: 1px solid #e3eaee;
    background: #f7fafb;
}

.mc-controls-column {
    min-width: 0;
    padding: 24px;
}

.mc-canvas-area {
    position: relative;
    width: 100%;
    max-width: 510px;
    margin: auto;
    overflow: hidden;
    border: 1px solid #dce5ea;
    border-radius: 14px;
    background: #fff;
    box-shadow:
        0 8px 28px
        rgba(20,50,70,.07);
    touch-action: none;
}

.mc-canvas-area.is-portrait {
    max-width: 315px;
}

.mc-canvas-area.is-wide {
    max-width: 510px;
}

.mc-canvas-area canvas {
    display: block;
    width: 100%;
    height: auto;
    background: #fff;
    cursor: grab;
    touch-action: none;
    user-select: none;
}

.mc-canvas-area canvas:active {
    cursor: grabbing;
}

.mc-upload-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(75%,310px);
    transform: translate(-50%,-50%);
    padding:
        20px 14px;
    border:
        1px dashed
        rgba(25,159,189,.50);
    border-radius: 14px;
    background:
        rgba(249,253,254,.96);
    color: var(--mc-secondary);
    text-align: center;
    cursor: pointer;
    box-shadow:
        0 10px 32px
        rgba(20,65,85,.12);
}

.mc-upload-overlay[hidden] {
    display: none;
}

.mc-upload-icon {
    width: 40px;
    height: 40px;
    display: block;
    margin:
        0 auto 8px;
}

.mc-upload-icon svg {
    width: 100%;
    height: 100%;
}

.mc-upload-overlay strong {
    display: block;
    color: var(--mc-primary);
    font-size: 15px;
}

.mc-upload-overlay small {
    display: block;
    margin-top: 5px;
    color: #748691;
    font-size: 11px;
}

.mc-move-hint {
    position: absolute;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    padding:
        7px 11px;
    border-radius: 999px;
    background:
        rgba(4,39,61,.84);
    color: #fff;
    white-space: nowrap;
    font-size: 11px;
    font-weight: 800;
    pointer-events: none;
}

.mc-mobile-helper {
    margin-top: 10px;
    color: #7a8993;
    text-align: center;
    font-size: 11px;
    line-height: 1.5;
}

.mc-current-frame {
    padding-bottom: 16px;
    border-bottom: 1px solid #e4eaee;
}

.mc-current-frame span {
    display: block;
    margin-bottom: 4px;
    color: var(--mc-secondary);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .09em;
}

.mc-current-frame strong {
    display: block;
    font-size: 18px;
}

.mc-instruction {
    display: flex;
    gap: 11px;
    margin:
        17px 0;
    padding: 13px;
    border-radius: 11px;
    background: #f3f8fa;
}

.mc-instruction-icon {
    width: 31px;
    height: 31px;
    flex: 0 0 31px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: #dff4f8;
    color: var(--mc-secondary);
    font-size: 12px;
    font-weight: 900;
}

.mc-instruction strong {
    display: block;
    margin-bottom: 3px;
    font-size: 13px;
}

.mc-instruction p {
    margin: 0;
    color: var(--mc-muted);
    font-size: 11px;
    line-height: 1.45;
}

.mc-tools {
    display: grid;
    grid-template-columns:
        1fr 50px 50px;
    gap: 7px;
}

.mc-upload-button,
.mc-tool-button {
    min-height: 47px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 9px;
    cursor: pointer;
}

.mc-upload-button {
    gap: 7px;
    background: var(--mc-secondary);
    color: #fff;
}

.mc-upload-button svg {
    width: 18px;
    height: 18px;
}

.mc-upload-button strong {
    font-size: 13px;
}

.mc-tool-button {
    background: #eef3f6;
    color: var(--mc-secondary);
    font-size: 21px;
}

.mc-adjust-box {
    margin-top: 11px;
    padding: 13px;
    border: 1px solid #e0e8ec;
    border-radius: 11px;
}

.mc-adjust-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.mc-adjust-head span {
    color: #657984;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .08em;
}

.mc-adjust-head small {
    color: var(--mc-secondary);
    font-size: 10px;
    font-weight: 800;
}

.mc-zoom-row {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 8px;
    color: #667c88;
}

.mc-zoom-row input {
    width: 100%;
    accent-color: var(--mc-secondary);
}

.mc-adjust-box p {
    margin:
        7px 0 0;
    color: #7a8992;
    font-size: 10px;
    line-height: 1.45;
}

.mc-download-button,
.mc-share-button {
    width: 100%;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 9px;
    border: 0;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
}

.mc-download-button svg,
.mc-share-button svg {
    width: 19px;
    height: 19px;
}

.mc-download-button {
    background: var(--mc-accent);
    color: #fff;
    box-shadow:
        0 9px 22px
        rgba(222,128,0,.16);
}

.mc-share-button {
    border:
        2px solid
        var(--mc-secondary);
    background: #fff;
    color: var(--mc-secondary);
}

.mc-download-button:disabled,
.mc-share-button:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.mc-privacy {
    display: flex;
    gap: 7px;
    margin-top: 13px;
    color: #71848f;
}

.mc-privacy svg {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    color: #20a873;
}

.mc-privacy p {
    margin: 0;
    font-size: 10px;
    line-height: 1.45;
}

.mc-demo-commercial {
    width: min(1000px,100%);
    margin:
        18px auto 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    padding: 25px;
    border-radius: 17px;
    background: var(--mc-primary);
    color: #fff;
}

.mc-demo-commercial span {
    color: #84e3f3;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .10em;
}

.mc-demo-commercial h2 {
    max-width: 600px;
    margin: 5px 0 6px;
    font-size: 24px;
    line-height: 1.1;
    letter-spacing: -.025em;
}

.mc-demo-commercial p {
    max-width: 570px;
    margin: 0;
    color:
        rgba(255,255,255,.72);
    font-size: 12px;
    line-height: 1.5;
}

.mc-demo-commercial a {
    min-height: 45px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding:
        0 16px;
    border-radius: 9px;
    background: var(--mc-accent);
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 900;
}

.mc-empty {
    padding: 45px 25px;
    border-radius: 18px;
    background: #fff;
    text-align: center;
    box-shadow:
        0 20px 55px
        rgba(25,55,73,.10);
}

.mc-empty-icon {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    margin:
        0 auto 13px;
    border-radius: 14px;
    background: #e8f7fa;
    color: var(--mc-secondary);
    font-size: 28px;
}

.mc-empty h2 {
    margin:
        0 0 7px;
}

.mc-empty p {
    margin: 0;
    color: var(--mc-muted);
}

.mc-toast {
    position: fixed;
    z-index: 99999;
    left: 50%;
    bottom:
        max(
            20px,
            env(safe-area-inset-bottom)
        );
    width:
        min(
            430px,
            calc(100% - 28px)
        );
    transform:
        translateX(-50%);
    padding:
        12px 14px;
    border-radius: 10px;
    background:
        rgba(5,38,59,.96);
    color: #fff;
    text-align: center;
    font-size: 12px;
    line-height: 1.45;
    box-shadow:
        0 15px 38px
        rgba(0,0,0,.25);
}


@media(max-width:820px) {

    .mc-page {
        background:
            linear-gradient(
                180deg,
                var(--mc-primary) 0,
                var(--mc-primary) 330px,
                #edf3f6 330px
            );
    }

    .mc-editor-layout {
        grid-template-columns: 1fr;
    }

    .mc-canvas-column {
        border-right: 0;
        border-bottom: 1px solid #e3eaee;
    }

    .mc-controls-column {
        padding: 20px;
    }

    .mc-demo-commercial {
        align-items: flex-start;
        flex-direction: column;
    }

}


@media(max-width:600px) {

    .mc-top-inner {
        min-height: 60px;
    }

    .mc-brand {
        font-size: 14px;
    }

    .mc-brand-mark {
        width: 28px;
        height: 28px;
    }

    .mc-page {
        min-height: calc(100vh - 60px);
        padding:
            30px
            9px
            45px;
        background:
            linear-gradient(
                180deg,
                var(--mc-primary) 0,
                var(--mc-primary) 310px,
                #edf3f6 310px
            );
    }

    .mc-intro {
        margin-bottom: 25px;
        padding:
            0 9px;
    }

    .mc-intro h1 {
        font-size: 37px;
        line-height: 1.02;
    }

    .mc-intro p {
        font-size: 14px;
    }

    .mc-demo-steps {
        gap: 5px;
    }

    .mc-demo-steps span {
        padding:
            0 8px;
        font-size: 10px;
    }

    .mc-picker {
        padding: 11px;
        border-radius: 14px;
    }

    .mc-frame-option {
        width: 94px;
        flex-basis: 94px;
    }

    .mc-frame-thumb {
        height: 74px;
    }

    .mc-editor-card {
        border-radius: 15px;
    }

    .mc-canvas-column {
        padding: 10px;
    }

    .mc-canvas-area {
        border-radius: 10px;
    }

    .mc-canvas-area.is-portrait {
        max-width: 280px;
    }

    .mc-controls-column {
        padding: 14px;
    }

    .mc-current-frame strong {
        font-size: 16px;
    }

    .mc-tools {
        grid-template-columns:
            1fr 47px 47px;
    }

    .mc-download-button,
    .mc-share-button {
        min-height: 48px;
        font-size: 13px;
    }

    .mc-demo-commercial {
        margin-top: 12px;
        padding: 20px;
        border-radius: 14px;
    }

    .mc-demo-commercial h2 {
        font-size: 21px;
    }

    .mc-demo-commercial a {
        width: 100%;
    }

}



/* ==========================================================
   DEMO V6 - CORREÇÃO DE ESPAÇAMENTO
   ========================================================== */


.mc-page {
    position: relative;

    padding-top: 52px;

    background:
        linear-gradient(
            180deg,
            var(--mc-primary) 0,
            var(--mc-primary) 395px,
            #edf3f6 395px,
            #edf3f6 100%
        );
}


.mc-intro {
    position: relative;
    z-index: 2;

    width: min(790px,100%);

    margin:
        0 auto 50px;
}


.mc-intro h1 {
    max-width: 760px;

    margin:
        15px auto 13px;

    font-size:
        clamp(
            40px,
            5.5vw,
            58px
        );

    line-height: 1.02;

    letter-spacing: -.04em;
}


.mc-intro p {
    max-width: 650px;

    margin:
        0 auto;

    font-size: 16px;

    line-height: 1.65;
}


.mc-demo-steps {
    position: relative;
    z-index: 3;

    margin-top: 24px;

    padding-bottom: 4px;

    gap: 10px;
}


.mc-demo-steps span {
    min-height: 38px;

    padding:
        0 14px;

    border:
        1px solid
        rgba(255,255,255,.11);

    background:
        rgba(255,255,255,.11);

    backdrop-filter:
        blur(5px);

    white-space: nowrap;
}


.mc-demo-steps strong {
    width: 22px;
    height: 22px;
}


.mc-main-shell {
    position: relative;
    z-index: 4;
}


.mc-editor-card {
    position: relative;

    box-shadow:
        0 25px 65px
        rgba(18,48,67,.15);
}


@media(max-width:820px) {

    .mc-page {
        padding-top: 40px;

        background:
            linear-gradient(
                180deg,
                var(--mc-primary) 0,
                var(--mc-primary) 420px,
                #edf3f6 420px,
                #edf3f6 100%
            );
    }


    .mc-intro {
        margin-bottom: 42px;
    }

}


@media(max-width:600px) {

    .mc-page {
        padding-top: 30px;

        background:
            linear-gradient(
                180deg,
                var(--mc-primary) 0,
                var(--mc-primary) 385px,
                #edf3f6 385px,
                #edf3f6 100%
            );
    }


    .mc-intro {
        margin-bottom: 35px;
    }


    .mc-intro h1 {
        max-width: 390px;

        font-size: 36px;

        line-height: 1.04;
    }


    .mc-intro p {
        max-width: 390px;

        font-size: 14px;

        line-height: 1.55;
    }


    .mc-demo-steps {
        margin-top: 18px;

        gap: 6px;
    }


    .mc-demo-steps span {
        min-height: 34px;

        padding:
            0 9px;

        font-size: 10px;
    }


    .mc-demo-steps strong {
        width: 19px;
        height: 19px;
    }

}


@media(max-width:390px) {

    .mc-demo-steps {
        display: grid;

        grid-template-columns:
            repeat(
                3,
                minmax(0,1fr)
            );

        width: 100%;
    }


    .mc-demo-steps span {
        justify-content: center;

        padding:
            0 5px;
    }

}

