/* ==================================================
   WEUF — Card (Público + Dashboard)
   ================================================== */

:root{
    --weuf-card-radius:12px;
    --weuf-overlay-opacity:0.35;
    --weuf-card-bg:#ffffff;
    --weuf-text-color:#222;
}

/* Reset mínimo local */

.weuf-card,
.weuf-card *{
    box-sizing:border-box;
}

/* Card container */

.weuf-card{
    max-width:800px;
    margin:40px auto;
    background-position:center;
    background-size:cover;
    border-radius:var(--weuf-card-radius);
    box-shadow:0 0 15px rgba(0,0,0,.25);
    color:var(--weuf-text-color);
}

/* Overlay */

.weuf-overlay{
    background:rgba(255,255,255,var(--weuf-overlay-opacity));
    padding:25px;
    border-radius:var(--weuf-card-radius);
}

/* Layout rows */

.weuf-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
}

.weuf-row.top{
    margin-bottom:20px;
}

/* Middle */

.weuf-middle{
    flex:1;
}

.weuf-middle h1{
    margin:0 0 12px 0;
}

/* Logo */

.weuf-logo img{
    max-height:170px;
    max-width:380px;
    width:auto;
}

/* Photo */

.weuf-photo img{
    width:160px;
    height:180px;
    border-radius:15%;
    border:3px solid #fff;
    object-fit:cover;
}

/* Fields */

.weuf-field{
    margin-bottom:6px;
}

.weuf-label{
    font-weight:600;
}

/* QR */

.weuf-qr{
    width:160px;
    height:160px;
    background:#eee;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:6px;
}

.weuf-qr img{
    width:150px;
    height:150px;
}

/* Suspended badge */

.weuf-badge-suspended{
    background:#c0392b;
    color:#fff;
    padding:8px 12px;
    border-radius:6px;
    font-weight:600;
}

/* Global message */

.weuf-msg{
    margin-top:20px;
    background:rgba(255,255,255,.29);
    border-radius:6px;
    padding:10px;
    text-align:center;
    font-size:17px;
    color:#060;
}

/* Responsive */

@media(max-width:768px){

    .weuf-row{
        flex-direction:column;
        align-items:flex-start;
    }

    .weuf-qr{
        margin-top:15px;
    }
}

/* ================================
   WEUF MOBILE APP UX
================================ */

@media (max-width: 768px) {

    /* Layout base */

    body {
        overflow-x: hidden;
        background: #f4f5f7;
    }

    .weuf-wrapper,
    .weuf-container,
    .weuf-dashboard {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px !important;
        box-sizing: border-box;
    }

    /* Header */

    .weuf-header {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        padding: 10px 12px;
    }

    .weuf-logo {
        max-width: 130px;
        height: auto;
    }

    /* Tabs estilo app */

    .weuf-tabs,
    .weuf-nav {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        gap: 10px;
        padding-bottom: 6px;
        -webkit-overflow-scrolling: touch;
    }

    .weuf-tabs::-webkit-scrollbar,
    .weuf-nav::-webkit-scrollbar {
        display: none;
    }

    .weuf-tabs a,
    .weuf-nav a {
        flex: 0 0 auto;
        padding: 10px 14px;
        border-radius: 20px;
        background: #fff;
        font-size: 14px;
        white-space: nowrap;
        box-shadow: 0 1px 2px rgba(0,0,0,0.08);
    }

    .weuf-tabs a.active,
    .weuf-nav a.active {
        background: #2271b1;
        color: #fff;
    }

    /* Cards */

    .weuf-card,
    .weuf-profile-card {
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 16px !important;
        border-radius: 12px;
    }

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

    /* Conteúdo em coluna */

    .weuf-grid,
    .weuf-row {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px;
    }

    /* Botões */

    .weuf-button,
    button,
    input[type="submit"] {
        width: 100%;
        border-radius: 10px;
        padding: 12px;
        font-size: 15px;
    }

}
