:root {
    --bg: #151719;
    --surface: #202326;
    --surface-light: #292d31;
    --cyan: #10b8e8;
    --cyan-dark: #0788b0;
    --white: #ffffff;
    --muted: #a7afb7;
    --border: #353a3f;
    --green: #20b66a;
    --green-dark: #12874b;
    --amber: #f3b33d;
    --red: #e05252;
    --shadow: 0 22px 55px rgba(0, 0, 0, 0.28);
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at top, #24313a 0, var(--bg) 44%),
        var(--bg);
    color: var(--white);
    font-family:
        Inter, system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", sans-serif;
}

button,
input,
textarea {
    font: inherit;
}

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

.app-shell {
    width: min(100%, 560px);
    min-height: 100vh;
    margin: 0 auto;
    padding:
        max(20px, env(safe-area-inset-top))
        16px
        max(24px, env(safe-area-inset-bottom));
}

.brand-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    padding: 8px 0 22px;
}

.brand-symbol {
    position: relative;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 3px solid var(--cyan);
    overflow: hidden;
    box-shadow: 0 0 25px rgba(16, 184, 232, 0.2);
}

.brand-symbol span {
    position: absolute;
    width: 11px;
    height: 11px;
    background: var(--cyan);
    transform: rotate(30deg);
}

.brand-symbol span:nth-child(1) {
    top: 8px;
    left: 10px;
}

.brand-symbol span:nth-child(2) {
    top: 21px;
    left: 25px;
}

.brand-symbol span:nth-child(3) {
    top: 36px;
    left: 12px;
}

.brand-name {
    font-size: 1.6rem;
    font-weight: 850;
    letter-spacing: 0.12em;
}

.brand-powered {
    color: var(--muted);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
}

.steps {
    display: flex;
    align-items: flex-start;
    margin-bottom: 28px;
}

.step {
    min-width: 48px;
    color: #69727a;
    text-align: center;
}

.step span {
    display: grid;
    width: 34px;
    height: 34px;
    margin: 0 auto 5px;
    place-items: center;
    border: 1px solid #4b5258;
    border-radius: 50%;
    background: var(--surface);
    font-weight: 800;
}

.step small {
    font-size: 0.68rem;
}

.step.is-active,
.step.is-complete {
    color: var(--white);
}

.step.is-active span {
    border-color: var(--cyan);
    background: var(--cyan);
    color: #06242d;
    box-shadow: 0 0 18px rgba(16, 184, 232, 0.34);
}

.step.is-complete span {
    border-color: var(--green);
    background: var(--green);
}

.step-line {
    flex: 1;
    height: 2px;
    margin-top: 17px;
    background: #3a4045;
}

.screen {
    animation: appear 0.28s ease-out;
}

@keyframes appear {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.screen-heading {
    margin: 0 auto 24px;
    text-align: center;
}

.screen-heading h1,
.success-panel h1 {
    margin: 3px 0 9px;
    font-size: clamp(1.75rem, 7vw, 2.35rem);
    font-weight: 850;
}

.screen-heading > p:last-child,
.success-panel > p {
    color: var(--muted);
}

.eyebrow {
    margin: 0;
    color: var(--cyan);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.plans-grid {
    display: grid;
    gap: 14px;
}

.plan-card,
.panel,
.loading-box {
    border: 1px solid var(--border);
    border-radius: 22px;
    background:
        linear-gradient(145deg, var(--surface-light), var(--surface));
    box-shadow: var(--shadow);
}

.plan-card {
    position: relative;
    overflow: hidden;
    padding: 22px;
}

.plan-card::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--cyan);
    content: "";
}

.plan-card h3 {
    margin: 0 0 6px;
    font-size: 1.2rem;
}

.plan-card .duration {
    color: var(--muted);
}

.plan-card .price {
    margin: 18px 0;
    color: var(--white);
    font-size: 2rem;
    font-weight: 900;
}

.plan-card button {
    width: 100%;
}

.panel {
    padding: 24px;
}

.panel h2 {
    margin: 5px 0 25px;
    font-size: 1.55rem;
}

.back-button {
    margin-bottom: 13px;
    padding: 8px 0;
    border: 0;
    background: transparent;
    color: var(--cyan);
}

.form-group {
    margin-bottom: 18px;
}

.form-group label,
.pix-label {
    display: block;
    margin-bottom: 7px;
    font-size: 0.86rem;
    font-weight: 750;
}

.form-group input,
textarea {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid #454c52;
    border-radius: 13px;
    outline: none;
    background: #17191b;
    color: var(--white);
}

.form-group input:focus,
textarea:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(16, 184, 232, 0.13);
}

textarea {
    resize: none;
    font-size: 0.78rem;
    word-break: break-all;
}

.primary-button,
.success-button,
.secondary-button,
.plan-button {
    min-height: 50px;
    padding: 12px 16px;
    border-radius: 13px;
    font-weight: 850;
    transition:
        transform 0.12s ease,
        opacity 0.12s ease;
}

.primary-button,
.plan-button {
    border: 0;
    background: linear-gradient(135deg, var(--cyan), var(--cyan-dark));
    color: #052730;
}

.success-button {
    width: 100%;
    border: 0;
    background: linear-gradient(135deg, var(--green), var(--green-dark));
    color: var(--white);
}

.secondary-button {
    width: 100%;
    border: 1px solid var(--cyan);
    background: transparent;
    color: var(--cyan);
}

button:active,
.link-button:active {
    transform: scale(0.985);
}

button:disabled {
    opacity: 0.58;
}

.error-box {
    margin-bottom: 15px;
    padding: 12px;
    border: 1px solid rgba(224, 82, 82, 0.45);
    border-radius: 11px;
    background: rgba(224, 82, 82, 0.12);
    color: #ffb8b8;
}

.payment-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
}

.payment-icon {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    border-radius: 16px;
    background: var(--cyan);
    color: #04242c;
    font-weight: 950;
}

.payment-title h2 {
    margin: 2px 0 0;
}

.qr-area {
    text-align: center;
}

.qr-area img {
    width: min(100%, 340px);
    margin: 0 auto 22px;
    padding: 9px;
    border-radius: 18px;
    background: var(--white);
}

.copy-message {
    margin-top: 12px;
    padding: 12px;
    border-radius: 11px;
    background: rgba(32, 182, 106, 0.13);
    color: #85ecb9;
    text-align: center;
    font-weight: 700;
}

.temporary-access {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 22px 0;
    padding: 15px;
    border: 1px solid rgba(243, 179, 61, 0.35);
    border-radius: 14px;
    background: rgba(243, 179, 61, 0.08);
}

.temporary-access small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
}

.timer {
    min-width: 66px;
    color: var(--amber);
    font-size: 1.35rem;
    font-weight: 900;
    text-align: right;
}

.timer.is-ending {
    color: var(--red);
    animation: pulse 0.8s infinite alternate;
}

@keyframes pulse {
    to {
        opacity: 0.55;
    }
}

.payment-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    margin-bottom: 14px;
    padding: 15px;
    border-radius: 14px;
    background: #17191b;
    color: #d7dadd;
    text-align: center;
}

.status-spinner,
.loader {
    width: 22px;
    height: 22px;
    border: 3px solid rgba(16, 184, 232, 0.22);
    border-top-color: var(--cyan);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.iphone-help {
    margin-top: 22px;
    padding: 15px;
    border-left: 4px solid var(--cyan);
    border-radius: 10px;
    background: rgba(16, 184, 232, 0.08);
}

.iphone-help p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 0.86rem;
}

.device-info {
    margin: 20px 0 0;
    color: #69727a;
    font-size: 0.7rem;
    text-align: center;
    word-break: break-all;
}

.success-panel {
    padding-top: 38px;
    padding-bottom: 38px;
    text-align: center;
}

.success-check {
    display: grid;
    width: 82px;
    height: 82px;
    margin: 0 auto 20px;
    place-items: center;
    border-radius: 50%;
    background: var(--green);
    font-size: 2.6rem;
    font-weight: 950;
    box-shadow: 0 0 35px rgba(32, 182, 106, 0.3);
}

.redirect-message {
    margin: 25px 0 15px;
    color: var(--muted);
}

.link-button {
    display: block;
    text-decoration: none;
}

.loading-box {
    padding: 45px 20px;
    text-align: center;
}

.loading-box .loader {
    margin: 0 auto;
}

.loading-box p {
    margin: 12px 0 0;
    color: var(--muted);
}

footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 28px;
    color: #69727a;
}

footer span {
    font-weight: 850;
    letter-spacing: 0.13em;
}

footer small {
    margin-top: 3px;
}

@media (min-width: 620px) {
    .plans-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.form-introduction {
    margin: -8px 0 22px;
    padding: 15px;
    border-left: 4px solid var(--cyan);
    border-radius: 11px;
    background: rgba(16, 184, 232, 0.08);
}

.form-introduction strong {
    display: block;
    margin-bottom: 5px;
    color: var(--white);
}

.form-introduction p {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.45;
}

.optional-label {
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 500;
}

.field-help {
    display: block;
    margin-top: 7px;
    color: var(--muted);
    font-size: 0.74rem;
    line-height: 1.4;
}

.pix-instructions {
    margin-bottom: 20px;
    padding: 15px 17px;
    border: 1px solid rgba(16, 184, 232, 0.3);
    border-radius: 13px;
    background: rgba(16, 184, 232, 0.07);
}

.pix-instructions strong {
    color: var(--cyan);
}

.pix-instructions ol {
    margin: 10px 0 0;
    padding-left: 20px;
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.65;
}

/* QR Code menor para não dominar a tela */
.qr-area img {
    width: min(100%, 240px);
    max-width: 240px;
}



/* ===========================
   MAETSPOT UX UPDATE 1.0
=========================== */

.form-introduction{
padding:12px 16px;
margin:8px 0 18px;
border-radius:12px;
}

.form-introduction strong{
font-size:15px;
}

.form-introduction p{
margin-top:4px;
font-size:13px;
line-height:1.4;
}

.qr-area img{
max-width:220px!important;
width:100%;
margin:auto;
display:block;
}

button{
transition:.25s;
}

button:hover{
transform:translateY(-1px);
}

.field-help{
font-size:12px;
opacity:.8;
}

.form-group{
margin-bottom:14px;
}

input{
padding:13px;
font-size:15px;
}

@media(max-width:430px){

.progress-step{

font-size:11px;

}

.progress-label{

font-size:10px;

}

.form-introduction{

padding:10px 12px;

}

.qr-area img{

max-width:200px;

}

}

/* MAETSPOT PIX UX 1.1 - INICIO */

.payment-panel {
    padding: 20px;
}

.automatic-release-note {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding: 13px 14px;
    border: 1px solid rgba(32, 182, 106, 0.35);
    border-radius: 13px;
    background: rgba(32, 182, 106, 0.10);
}

.release-icon {
    display: grid;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
    background: var(--green);
    color: white;
    font-size: 1.15rem;
    font-weight: 900;
}

.automatic-release-note strong {
    color: #8ff0bd;
}

.automatic-release-note p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 0.80rem;
    line-height: 1.35;
}

.pix-instructions {
    margin-bottom: 16px;
    padding: 13px 15px;
}

.pix-instructions ul {
    margin: 8px 0 0;
    padding-left: 18px;
    color: var(--muted);
    font-size: 0.80rem;
    line-height: 1.5;
}

.qr-area {
    display: flex;
    justify-content: center;
    margin: 4px auto 18px;
    text-align: center;
}

.qr-area img {
    display: block;
    width: min(100%, 205px) !important;
    max-width: 205px !important;
    margin: 0 auto !important;
    padding: 10px;
    border-radius: 16px;
    background: white;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.pix-label {
    margin-top: 2px;
}

.temporary-access {
    margin: 17px 0;
    padding: 13px 14px;
}

.timer {
    min-width: 76px;
    font-size: 1.55rem;
    letter-spacing: 0.03em;
}

.payment-status {
    padding: 13px;
}

@media (max-width: 430px) {
    .payment-panel {
        padding: 16px;
    }

    .payment-title {
        margin-bottom: 15px;
    }

    .payment-title h2 {
        font-size: 1.22rem;
    }

    .automatic-release-note {
        margin-bottom: 13px;
        padding: 11px 12px;
    }

    .pix-instructions {
        margin-bottom: 13px;
        padding: 11px 13px;
    }

    .qr-area img {
        width: min(100%, 185px) !important;
        max-width: 185px !important;
    }

    .temporary-access {
        gap: 10px;
    }

    .timer {
        min-width: 67px;
        font-size: 1.35rem;
    }
}

/* MAETSPOT PIX UX 1.1 - FIM */




.plan-badge{
display:inline-block;
padding:5px 10px;
margin-bottom:14px;
border-radius:20px;
font-size:11px;
font-weight:700;
letter-spacing:.8px;
text-transform:uppercase;
}

.badge-test{
background:#00c85322;
color:#69f0ae;
border:1px solid #00c85355;
}

.badge-popular{
background:#ff980022;
color:#ffcc80;
border:1px solid #ff980055;
}

.badge-daypass{
background:#2196f322;
color:#90caf9;
border:1px solid #2196f355;
}

.plan-card-featured{
transform:scale(1.05);
border:2px solid #29b6f6 !important;
box-shadow:0 0 28px rgba(41,182,246,.35);
z-index:2;
}

.plan-card{
transition:.25s;
}

.plan-card:hover{
transform:translateY(-5px);
box-shadow:0 10px 30px rgba(0,0,0,.35);
}

.plan-card-featured:hover{
transform:scale(1.05) translateY(-5px);
}



.plan-subtitle{
margin-top:10px;
margin-bottom:12px;
font-size:13px;
font-weight:600;
color:#6ec8ff;
}




/* MAETSPOT LAYOUT PLANOS V3 - INICIO */

#lista-planos {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
    gap: 24px;
    width: min(100%, 980px);
    margin: 34px auto 20px;
}

.plan-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 390px;
    padding: 28px 26px 24px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 24px;
    background:
        linear-gradient(
            180deg,
            rgba(30, 41, 59, 0.84),
            rgba(15, 23, 42, 0.92)
        );
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
    transition:
        transform 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease;
}

.plan-card:hover {
    transform: translateY(-5px);
    border-color: rgba(56, 189, 248, 0.55);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.3);
}

.plan-card-featured {
    min-height: 430px;
    border: 2px solid #18baf2 !important;
    box-shadow:
        0 0 0 1px rgba(24, 186, 242, 0.16),
        0 18px 52px rgba(0, 174, 239, 0.22);
    transform: scale(1.045);
    z-index: 2;
}

.plan-card-featured:hover {
    transform: scale(1.045) translateY(-5px);
}

.plan-badge {
    align-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    max-width: 100%;
    margin: 0 0 18px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.45px;
    text-align: center;
    text-transform: uppercase;
}

.badge-teste {
    color: #44f59a;
    border: 1px solid rgba(34, 197, 94, 0.65);
    background: rgba(22, 163, 74, 0.15);
}

.badge-praia {
    color: #ffd166;
    border: 1px solid rgba(245, 158, 11, 0.72);
    background: rgba(245, 158, 11, 0.14);
}

.badge-daypass {
    color: #58c7ff;
    border: 1px solid rgba(14, 165, 233, 0.62);
    background: rgba(14, 165, 233, 0.13);
}

.plan-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 72px;
    margin-bottom: 10px;
}

.plan-icon {
    width: 64px;
    height: 64px;
}

.plan-icon-test {
    color: #26e980;
}

.plan-icon-praia {
    color: #ffc21a;
}

.plan-icon-daypass {
    width: 78px;
    color: #20baf5;
}

.plan-card h3 {
    margin: 0;
    color: #ffffff;
    font-size: 22px;
    line-height: 1.25;
    text-align: center;
}

.plan-card .duration {
    margin-top: 8px;
    color: #c7d2e0;
    font-size: 16px;
    text-align: center;
}

.plan-subtitle {
    min-height: 21px;
    margin: 18px 0 0;
    color: #35c4ff;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}

.plan-card .price {
    margin: auto 0 20px;
    padding-top: 22px;
    color: #ffffff;
    font-size: 34px;
    font-weight: 800;
    line-height: 1;
    text-align: center;
}

.plan-card .plan-button {
    width: 100%;
    min-height: 52px;
    margin-top: 0;
    border-radius: 13px;
    font-size: 15px;
    font-weight: 800;
}

@media (max-width: 820px) {
    #lista-planos {
        grid-template-columns: 1fr;
        width: min(100%, 430px);
        gap: 18px;
        margin-top: 26px;
    }

    .plan-card,
    .plan-card-featured {
        min-height: 0;
        transform: none;
    }

    .plan-card-featured:hover {
        transform: translateY(-5px);
    }

    .plan-card-praia {
        order: 1;
    }

    .plan-card-teste {
        order: 2;
    }

    .plan-card-daypass {
        order: 3;
    }

    .plan-icon-wrapper {
        height: 58px;
    }

    .plan-icon {
        width: 54px;
        height: 54px;
    }

    .plan-card .price {
        margin-top: 24px;
    }
}

@media (max-width: 430px) {
    #lista-planos {
        gap: 14px;
    }

    .plan-card {
        padding: 22px 20px 20px;
        border-radius: 20px;
    }

    .plan-card h3 {
        font-size: 20px;
    }

    .plan-card .price {
        font-size: 31px;
    }

    .plan-badge {
        font-size: 10px;
    }
}

/* MAETSPOT LAYOUT PLANOS V3 - FIM */

/* AJUSTE DESKTOP DOS PLANOS */
@media (min-width: 821px) {
    #lista-planos {
        grid-template-columns: repeat(3, 260px) !important;
        justify-content: center !important;
        width: 100% !important;
        max-width: 900px !important;
    }

    .plan-card {
        width: 260px !important;
        min-width: 260px !important;
    }

    .plan-card-featured {
        width: 275px !important;
        min-width: 275px !important;
    }
}
