﻿/* =========================================================
   AMICCI ONE - MOBILE GLOBAL V1
   Mantem desktop e adapta somente telas menores
   ========================================================= */

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    overflow-x: hidden;
}


/* =========================================================
   TOUCH
   ========================================================= */

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

button,
a {
    touch-action: manipulation;
}


/* =========================================================
   TABLET / MOBILE
   ========================================================= */

@media (max-width: 800px) {

    body {
        background: #f4f7fb !important;
    }


    /* Containers gerais */

    main,
    .container,
    .page-content,
    .main-content,
    .content-wrapper,
    .app-content {
        max-width: 100% !important;
    }


    /* Botões mais fáceis de tocar */

    button,
    .btn,
    a.button,
    input[type="submit"] {
        min-height: 44px;
    }


    /* Inputs confortáveis */

    input,
    select,
    textarea {
        font-size: 16px !important;
    }


    /* Evita zoom automático do iPhone */

    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="search"],
    input[type="tel"],
    input[type="number"],
    select,
    textarea {
        font-size: 16px !important;
    }


    /* Cabeçalhos */

    h1 {
        line-height: 1.05;
    }


    /* Imagens */

    img {
        max-width: 100%;
        height: auto;
    }

}


/* =========================================================
   CELULAR
   ========================================================= */

@media (max-width: 600px) {

    body {
        padding-bottom:
            calc(
                84px
                + env(safe-area-inset-bottom)
            );
    }


    /* Cards */

    .card,
    .panel,
    .helena-card {
        border-radius: 18px !important;
    }


    /* Reduz excesso de margens */

    section {
        max-width: 100%;
    }


    /* Rolagem suave */

    html {
        scroll-behavior: smooth;
    }

}


/* =========================================================
   SAFE AREA IPHONE
   ========================================================= */

@supports (
    padding:
    max(0px)
) {

    body {
        padding-left:
            env(safe-area-inset-left);

        padding-right:
            env(safe-area-inset-right);
    }

}


/* ==========================================================
   AMICCI_MOBILE_PREMIUM_V2
   PADRAO MOBILE OFICIAL AMICCI ONE
   ========================================================== */

@media (max-width: 800px) {

    /* ======================================================
       BASE GLOBAL
       ====================================================== */

    html {
        width: 100%;
        min-height: 100%;
        margin: 0 !important;
        padding: 0 !important;
        background: #090507 !important;
        overflow-x: hidden;
        -webkit-text-size-adjust: 100%;
    }

    body {
        width: 100% !important;
        min-width: 100% !important;
        min-height: 100dvh !important;
        margin: 0 !important;
        padding: 0 !important;
        background:
            radial-gradient(
                circle at 75% 0%,
                rgba(134,20,45,.18),
                transparent 32%
            ),
            linear-gradient(
                180deg,
                #12080b 0%,
                #090507 100%
            )
            !important;
        overflow-x: hidden !important;
    }

    main,
    .container,
    .page-content,
    .main-content,
    .content-wrapper,
    .app-content {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }


    /* ======================================================
       LOGIN - FULL SCREEN REAL
       ====================================================== */

    body:has(.auth-screen) {
        padding: 0 !important;
        margin: 0 !important;
        background: #090507 !important;
    }

    body:has(.auth-screen) main,
    body:has(.auth-screen) .container,
    body:has(.auth-screen) .page-content,
    body:has(.auth-screen) .main-content,
    body:has(.auth-screen) .content-wrapper,
    body:has(.auth-screen) .app-content {
        width: 100vw !important;
        max-width: none !important;
        min-height: 100dvh !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .auth-page,
    .auth-screen {
        width: 100vw !important;
        max-width: none !important;
        min-height: 100dvh !important;
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
        background: #090507 !important;
    }

    .auth-panel {
        position: relative !important;
        width: 100vw !important;
        max-width: none !important;
        min-height: 100dvh !important;

        margin: 0 !important;

        padding:
            max(28px, env(safe-area-inset-top))
            24px
            max(32px, env(safe-area-inset-bottom))
            24px
            !important;

        border: 0 !important;
        border-radius: 0 !important;

        box-shadow: none !important;

        background:
            radial-gradient(
                circle at 50% 5%,
                rgba(151,20,51,.23),
                transparent 34%
            ),
            linear-gradient(
                180deg,
                #1a0d10 0%,
                #0d0809 38%,
                #090607 100%
            )
            !important;
    }

    .auth-panel::after {
        left: 24px !important;
        width: 96px !important;
    }


    /* MARCA */

    .auth-brand {
        padding-top: 10px !important;
        text-align: center !important;
    }

    .auth-brand-logo {
        display: block !important;
        width: 132px !important;
        max-width: 46vw !important;
        margin:
            0 auto
            20px
            !important;
    }

    .auth-kicker {
        margin-top: 4px !important;
        font-size: 10px !important;
        line-height: 1.3 !important;
        letter-spacing: .20em !important;
        color: #e8546e !important;
    }

    .auth-main-title {
        margin:
            10px 0
            10px
            !important;

        font-size:
            clamp(35px, 10vw, 44px)
            !important;

        line-height:
            1
            !important;

        letter-spacing:
            .01em
            !important;

        color:
            #fff5e9
            !important;
    }

    .auth-main-subtitle {
        width: 100% !important;
        max-width: 330px !important;

        margin:
            0 auto
            24px
            !important;

        font-size:
            14px
            !important;

        line-height:
            1.55
            !important;

        color:
            rgba(255,255,255,.70)
            !important;
    }

    .auth-divider {
        margin:
            0 0
            24px
            !important;
    }


    /* LOGIN */

    .auth-heading {
        margin:
            0 0
            8px
            !important;

        font-size:
            31px
            !important;

        line-height:
            1.05
            !important;

        color:
            #fff9f2
            !important;
    }

    .auth-description {
        margin:
            0 0
            22px
            !important;

        font-size:
            14px
            !important;

        line-height:
            1.55
            !important;

        color:
            rgba(255,255,255,.64)
            !important;
    }

    .auth-form {
        width: 100% !important;
        margin: 0 !important;
    }

    .auth-form label {
        margin:
            14px 0
            7px
            !important;

        font-size:
            13px
            !important;

        color:
            #f3ebe2
            !important;
    }

    .auth-form input {
        width: 100% !important;

        min-height:
            54px
            !important;

        margin:
            0
            !important;

        padding:
            14px 16px
            !important;

        border-radius:
            14px
            !important;

        border:
            1px solid
            rgba(255,255,255,.10)
            !important;

        background:
            rgba(2,2,2,.80)
            !important;

        color:
            white
            !important;

        font-size:
            16px
            !important;
    }

    .auth-submit {
        width: 100% !important;

        min-height:
            56px
            !important;

        margin-top:
            22px
            !important;

        border-radius:
            15px
            !important;

        background:
            linear-gradient(
                135deg,
                #b81238,
                #ed3157
            )
            !important;

        box-shadow:
            0 14px 32px
            rgba(181,18,55,.23)
            !important;
    }


    /* ======================================================
       HOME MOBILE
       ====================================================== */

    .dashboard-shell,
    .amicci-home,
    .home-page {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
    }

    .amicci-premium-header {
        width:
            calc(100% - 20px)
            !important;

        margin:
            10px auto
            !important;

        min-height:
            68px
            !important;

        padding:
            9px 10px
            !important;

        border-radius:
            18px
            !important;
    }

    .amicci-profile-copy strong {
        font-size:
            13px
            !important;
    }

    .amicci-profile-copy span {
        font-size:
            9px
            !important;
    }

    .amicci-points-block {
        min-width:
            120px
            !important;

        max-width:
            145px
            !important;

        padding:
            5px 7px
            !important;
    }

    .amicci-header-actions {
        gap:
            5px
            !important;
    }

    .amicci-header-icon {
        width:
            38px
            !important;

        height:
            38px
            !important;
    }


    /* ======================================================
       CARTEIRA MOBILE
       ====================================================== */

    .carteira-page {
        width:
            calc(100% - 20px)
            !important;

        margin:
            0 auto
            !important;

        padding:
            18px 0
            96px
            !important;
    }

    .carteira-header {
        margin-bottom:
            18px
            !important;
    }

    .carteira-balance {
        border-radius:
            20px
            !important;
    }

    .carteira-summary {
        gap:
            7px
            !important;
    }


    /* ======================================================
       CLUBE MOBILE
       ====================================================== */

    .clube-page {
        width:
            100%
            !important;

        max-width:
            none
            !important;

        margin:
            0
            !important;

        overflow-x:
            hidden
            !important;
    }

    .clube-hero-content,
    .clube-content {
        width:
            calc(100% - 20px)
            !important;

        margin-left:
            auto
            !important;

        margin-right:
            auto
            !important;
    }


    /* ======================================================
       ADEGA MOBILE
       ====================================================== */

    .adega50-page {
        width:
            calc(100% - 20px)
            !important;

        margin:
            0 auto
            !important;

        padding-bottom:
            96px
            !important;
    }

    .adega50-hero {
        border-radius:
            20px
            !important;
    }

    .adega50-toolbar {
        width:
            100%
            !important;
    }


    /* ======================================================
       ROTA DA TACA MOBILE
       ====================================================== */

    .rota-page {
        width:
            100%
            !important;

        max-width:
            none
            !important;

        margin:
            0
            !important;
    }

    .rota-head {
        width:
            calc(100% - 20px)
            !important;

        margin:
            10px auto
            !important;
    }

    .rota-layout {
        width:
            calc(100% - 20px)
            !important;

        margin-left:
            auto
            !important;

        margin-right:
            auto
            !important;
    }


    /* ======================================================
       BOTTOM NAV OFICIAL
       ====================================================== */

    .amicci-standard-bottom-nav,
    .carteira-bottom-nav,
    .clube-bottom-nav,
    .dashboard-dock,
    .adega-standard-nav {

        left:
            50%
            !important;

        bottom:
            max(
                8px,
                env(safe-area-inset-bottom)
            )
            !important;

        width:
            calc(100% - 20px)
            !important;

        max-width:
            520px
            !important;

        min-height:
            62px
            !important;

        transform:
            translateX(-50%)
            !important;

        border-radius:
            18px
            !important;

        z-index:
            9999
            !important;
    }


    /* ======================================================
       TOUCH
       ====================================================== */

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

    button,
    a {
        touch-action:
            manipulation;
    }

}


/* ==========================================================
   CELULARES PEQUENOS
   ========================================================== */

@media (max-width: 420px) {

    .auth-panel {
        padding-left:
            20px
            !important;

        padding-right:
            20px
            !important;
    }

    .auth-brand-logo {
        width:
            118px
            !important;
    }

    .auth-main-title {
        font-size:
            34px
            !important;
    }

    .auth-heading {
        font-size:
            28px
            !important;
    }

}

