/* =====================================================================
   COMMON.CSS
   Unified stylesheet merging:
     - style.css       ("Plate Card" verification flow)
     - style_bmw.css    ("BMW Panel" flow)

   Nothing from either source file has been removed or altered.
   Where both files had a *genuinely identical* rule, it was
   de-duplicated into a shared block below.
   Where rules looked similar but differed in even one value
   (colors, spacing, weights, durations, breakpoints, extra
   properties, etc.) they were kept SEPARATE and scoped under
   their original container (.plate-card / .panel) so neither
   design is changed and nothing conflicts or gets overridden.
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ---------------------------------------------------------------------
   :root — all custom properties from both files, merged.
   Where a variable existed in both files with the SAME value, it is
   listed once. Where the value differed between the two files, BOTH
   are kept under their original names so no value is lost.
   --------------------------------------------------------------------- */
:root{

    /* shared base */
    --bg:#000;
    --text:#fff;
    --white:#fff;
    --border:#2d2d2d;
    --success:#1f9d55;
    --danger:#ff5555;

    /* surfaces — identical hex values, different var names per file */
    --surface:#111;        /* style.css */
    --panel:#111;           /* style_bmw.css */
    --surface-2:#181818;   /* style.css */
    --panel2:#181818;       /* style_bmw.css */

    /* brand gradient colors — identical values, different var names per file */
    --blue:#00A3E0;         /* style.css */
    --dark-blue:#0057B8;    /* style.css */
    --red:#E2231A;          /* style.css */
    --m-light:#00A3E0;      /* style_bmw.css */
    --m-blue:#0057B8;       /* style_bmw.css */
    --m-red:#E2231A;        /* style_bmw.css */

    /* muted text — VALUES DIFFER slightly between files, both preserved */
    --muted:#9b9b9b;        /* style.css */
    --text-muted:#9d9d9d;   /* style_bmw.css */

    /* border hover — VALUES DIFFER slightly between files, both preserved */
    --border-hover:#5d5d5d;      /* style.css */
    --border-hover-bmw:#5b5b5b;  /* style_bmw.css */

}

/* ---------------------------------------------------------------------
   SHARED / IDENTICAL IN BOTH FILES
   --------------------------------------------------------------------- */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    background:var(--bg);
    color:var(--text);
    font-family:'Inter',sans-serif;
    min-height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
    padding:60px 20px;
}

/* Brand stripe — identical size/gradient values in both files */
.stripe{
    width:120px;
    height:5px;
    margin-bottom:32px;
    background:linear-gradient(
        90deg,
        var(--blue),
        var(--dark-blue),
        var(--red)
    );
}

/* Card/panel entrance animation — identical keyframes in both files
   (only the animation-duration differs, see each section below) */
@keyframes fade{
    from{
        opacity:0;
        transform:translateY(25px);
    }
    to{
        opacity:1;
        transform:none;
    }
}

/* Button hover state — identical in both files */
button:hover{
    background:white;
    color:black;
}

/* Text input focus + base sizing — identical values in both files,
   just targeted via a different selector per markup
   (plain `input` in style.css vs `input[type="text"]` in style_bmw.css) */
.plate-card input,
.panel input[type="text"]{
    width:100%;
    height:56px;
    background:var(--surface-2);
    color:white;
    border:1px solid var(--border);
    padding:0 18px;
    font-size:15px;
    font-family:'Inter',sans-serif;
    transition:.3s;
}

.plate-card input:focus,
.panel input[type="text"]:focus{
    outline:none;
    border-color:white;
}

.phone-wrap {
    display: flex;
    align-items: center;
    background: var(--surface-2);
    border: 1px solid var(--border);
    height: 56px;
    transition: .3s;
}
.phone-wrap:focus-within {
    border-color: white;
}
.phone-wrap .prefix {
    padding: 0 15px;
    color: var(--muted);
    font-weight: 600;
    font-size: 15px;
    border-right: 1px solid var(--border);
}
.phone-wrap input {
    border: none !important;
    height: 100% !important;
    background: transparent !important;
    padding: 0 15px !important;
    flex: 1;
}


/* =====================================================================
   STYLE.CSS SPECIFIC — "Plate Card" verification flow
   ===================================================================== */

.plate-card{
    width:100%;
    max-width:520px;
    background:var(--surface);
    border:1px solid var(--border);
    padding:48px;
    position:relative;
    animation:fade .5s ease;
    transition:.35s;
}

.plate-card:hover{
    border-color:var(--border-hover);
}

.plate-card .eyebrow{
    text-transform:uppercase;
    letter-spacing:4px;
    color:var(--muted);
    font-size:12px;
    font-weight:700;
    margin-bottom:10px;
}

.plate-card h1{
    font-size:42px;
    font-weight:900;
    line-height:1.1;
    text-transform:uppercase;
    margin-bottom:20px;
}

.plate-card .description{
    color:var(--muted);
    line-height:1.7;
    margin-bottom:35px;
}

.plate-card .stage{
    display:none;
    margin-top:30px;
}

.plate-card .stage.active{
    display:block;
}

.plate-card .field{
    margin-bottom:22px;
}

.plate-card label{
    display:block;
    margin-bottom:10px;
    font-size:12px;
    text-transform:uppercase;
    letter-spacing:2px;
    color:var(--muted);
    font-weight:700;
}

.plate-card .hint{
    color:#7d7d7d;
    line-height:1.7;
    font-size:13px;
    margin-bottom:25px;
}

.plate-card button{
    width:100%;
    height:56px;
    background:transparent;
    color:white;
    border:1px solid white;
    text-transform:uppercase;
    letter-spacing:2px;
    font-weight:700;
    font-size:14px;
    font-family:'Inter',sans-serif;
    cursor:pointer;
    transition:.35s;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
}

.plate-card .msg{
    margin-top:18px;
    font-size:14px;
    line-height:1.6;
}

.plate-card .msg.error{
    color:var(--danger);
}

.plate-card .msg.info{
    color:var(--muted);
}

.plate-card .plate-row{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:12px;
    margin:35px 0;
}

.plate-card .plate-tile{
    width:56px;
    height:56px;
    border:1px solid var(--border);
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:20px;
    font-weight:700;
    background:#151515;
    flex-shrink: 1;
    min-width: 0;
}

.plate-card .plate-input-wrap{
    position:relative;
}

.plate-card .plate-input{
    width:56px;
    height:56px;
    text-align:center;
    font-size:22px;
    font-weight:800;
    padding:0;
    flex-shrink: 1;
    min-width: 0;
}

.plate-card .plate-input-single {
    width: 220px;
    height: 56px;
    text-align: center;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 14px;
    font-family: 'Courier New', monospace;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: white;
    text-transform: uppercase;
    padding-left: 14px;
    margin: 20px auto 0;
    display: block;
}
.plate-card .plate-input-single:focus {
    outline: none;
    border-color: white;
}

.plate-card .blink-underscore{
    position:absolute;
    inset:0;
    display:flex;
    justify-content:center;
    align-items:center;
    color:#777;
    pointer-events:none;
    animation:blink 1s infinite;
}

.plate-card .success-icon{
    width:90px;
    height:90px;
    margin:0 auto 30px;
    border:1px solid white;
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:18px;
    font-weight:800;
    letter-spacing:2px;
}

.plate-card .owner-note{
    text-align:center;
    color:var(--muted);
    line-height:1.7;
    margin-bottom:30px;
}

.plate-card .action-buttons{
    display:flex;
    flex-direction:column;
    gap:16px;
}

.plate-card .btn-link{
    text-decoration:none;
}

.plate-card .btn-call{
    width:100%;
}

.plate-card .btn-whatsapp{
    width:100%;
}

.plate-card .footer-note{
    margin-top:40px;
    padding-top:30px;
    border-top:1px solid var(--border);
    color:#7c7c7c;
    text-align:center;
    line-height:1.7;
    font-size:13px;
}

.plate-card .bolt{
    display:none;
}

@keyframes blink{
    50%{
        opacity:.2;
    }
}

@media(max-width:640px){

    .plate-card{
        padding:30px 22px;
    }

    .plate-card h1{
        font-size:30px;
    }

    .plate-card .plate-row{
        gap:8px;
    }

    .plate-card .plate-input,
    .plate-card .plate-tile{
        width:48px;
        height:48px;
        font-size:18px;
        flex-shrink: 1;
        min-width: 0;
    }

    .plate-card .plate-input-single {
        width: 180px;
        font-size: 22px;
        letter-spacing: 10px;
    }

}


/* =====================================================================
   STYLE_BMW.CSS SPECIFIC — BMW Panel flow
   ===================================================================== */

.panel{
    width:100%;
    max-width:520px;
    background:var(--panel);
    border:1px solid var(--border);
    padding:48px;
    transition:.35s;
    animation:fade .6s ease;
}

.panel:hover{
    border-color:var(--border-hover-bmw);
}

.panel .eyebrow{
    text-transform:uppercase;
    letter-spacing:4px;
    font-size:12px;
    color:var(--text-muted);
    margin-bottom:10px;
    font-weight:600;
}

.panel h1{
    font-size:42px;
    font-weight:900;
    line-height:1.05;
    text-transform:uppercase;
    margin-bottom:18px;
    letter-spacing:-1px;
}

.panel .description{
    color:var(--text-muted);
    line-height:1.7;
    margin-bottom:36px;
    font-size:15px;
}

.panel .field{
    margin-bottom:24px;
}

.panel label{
    display:block;
    margin-bottom:10px;
    font-size:12px;
    text-transform:uppercase;
    letter-spacing:2px;
    color:var(--text-muted);
    font-weight:600;
}

.panel input[readonly]{
    background:#151515 !important;
    color:#d0d0d0 !important;
}

.panel .hint{
    margin-top:8px;
    color:#7b7b7b;
    font-size:12px;
    line-height:1.6;
}

.panel button{
    width:100%;
    height:56px;
    background:transparent;
    color:white;
    border:1px solid white;
    text-transform:uppercase;
    letter-spacing:2px;
    font-weight:700;
    font-size:14px;
    cursor:pointer;
    transition:.35s;
}

.panel button:active{
    transform:scale(.98);
}

.panel button:not(:disabled):hover{
    background:white;
    color:black;
}

.panel button:disabled{
    opacity: 0.5;
    cursor: not-allowed;
}

.panel #preview-wrap{
    display:none;
    margin-top:40px;
}

.panel #preview-wrap.active{
    display:block;
}

.panel canvas{
    width:100%;
    border:1px solid var(--border);
    background:white;
    padding:18px;
}

.panel #download-btn{
    margin-top:18px;
    background:white;
    color:black;
    border:1px solid white;
}

.panel #download-btn:hover{
    background:transparent;
    color:white;
}

.panel .divider{
    height:1px;
    background:var(--border);
    margin:40px 0;
}

@media(max-width:600px){

    .panel{
        padding:32px 24px;
    }

    .panel h1{
        font-size:32px;
    }

}