
:root {
    /* Cores Globais */
    --bg-color:#09090b; /* Fundo Cinza Profundo (Quase preto) */
    
    /* Variáveis Glassmorphism (Efeito Vidro) */
    --glass-bg: rgba(255, 255, 255, 0.14);
    --glass-border: rgba(255, 255, 255, 0.24);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.59);
    
    --card-bg: #1C1C1E; /* Fallback */
    --text-primary: #FFFFFF;
    --text-secondary: #a1a1aa; /* Cinza claro */
    --accent-color: #FDD500;   /* Amarelo Principal */
    --vodacom: #E60000;
    --movitel: #FFCC00;
    --success: #32D74B;
}

/* RESET & BODY */
body {
    background-color: var(--bg-color);
    /* Gradiente sutil para destacar o efeito vidro */
    background-image: radial-gradient(circle at 50% 0%, #1a1a1a 0%, var(--bg-color) 70%);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    min-height: 100vh;
}
.none{
    display:none;
}
.app-container {
    width: 100%;
    max-width: 450px;
    position: relative;
    padding-bottom: 50px;
}

/* --- HEADER --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.header-logo-container {
    display: flex;
    align-items: center;
}

.app-logo {
    height: 45px;
    width: auto;
    object-fit: contain;
    display: block;
    margin-right: 8px;
}

.user-greet p { color: var(--text-secondary); margin: 0; font-size: 0.8rem; }

/* Ícone Recibo (Header) */
.icon-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    width: 45px; height: 45px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    position: relative;
    transition: 0.2s;
    display: flex; align-items: center; justify-content: center;
}
.icon-btn:active { transform: scale(0.95); }

.badge {
    position: absolute; top: -5px; right: -5px;
    background: var(--vodacom); color: white;
    font-size: 0.7rem; padding: 2px 6px; border-radius: 50%;
}

/* --- SLIDER DE PROMOÇÃO (Corrigido) --- */
.promo-slider {
    width: 100%;
    height: 180px;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 25px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    border: 1px solid var(--glass-border);
    max-width: 100vw; 
}

.slider-wrapper {
    display: flex;
    width: 100%; height: 100%;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.slide-img {
    width: 100%; min-width: 100%; height: 100%;
    object-fit: cover; flex-shrink: 0; display: block;
}

.slider-wrapper a {
    width: 100%; min-width: 100%; flex-shrink: 0; height: 100%;
    display: block; text-decoration: none; padding: 0; margin: 0;
}

/* --- BOTÃO REVENDEDOR (Pílula Fina) --- */
.reseller-cta-box {
    margin-top: 20px;
    margin-bottom: 30px;
    padding: 0 15px;
    text-align: center;
}

.btn-reseller-gold {
    display: inline-flex;
    align-items: center; justify-content: center;
    gap: 8px;
    width: auto; padding: 8px 20px;
    background: linear-gradient(135deg, #FDD500 0%, #FFC107 100%);
    color: #000;
    text-decoration: none;
    border-radius: 50px;
    font-size: 0.7rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(253, 213, 0, 0.3);
    border: none; cursor: pointer;
    transition: all 0.2s ease;
}

.btn-reseller-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(253, 213, 0, 0.4);
}
.btn-reseller-gold:active { transform: scale(0.95); }

.cta-text { color: #555; font-size: 0.65rem; margin-top: 8px; }

/* --- SEARCH & FILTER --- */
.search-area { display: flex; gap: 10px; margin-bottom: 25px; }

.search-input {
    flex: 1;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 15px 20px; border-radius: 18px;
    color: var(--text-primary); font-size: 1rem; outline: none;
    backdrop-filter: blur(10px);
}
.search-input::placeholder { color: var(--text-secondary); }

.filter-btn {
    background: var(--glass-bg);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    width: auto; padding: 0 15px;
    border-radius: 18px;
    cursor: pointer; transition: 0.3s;
    display: flex; align-items: center; gap: 8px;
    font-size: 0.7rem; font-weight: 500;
}
.filter-btn.active {
    border-color: var(--success); color: var(--success);
    background: rgba(50, 215, 75, 0.1);
}

/* --- SECÇÃO DESTAQUES (PRO) --- */
.pro-section { margin-bottom: 25px; }

.pro-title {
    font-size: 0.9rem; color: var(--accent-color);
    margin-bottom: 10px; font-weight: bold;
    display: flex; align-items: center; gap: 5px;
}

.pro-list-container {
    display: flex; gap: 15px;
    overflow-x: auto; padding-bottom: 10px; padding-right: 10px;
    scrollbar-width: none;
}
.pro-list-container::-webkit-scrollbar { display: none; }

.pro-card {
    min-width: 120px; width: 120px;
    background: linear-gradient(180deg, #1a1a1a 0%, #000 100%);
    border: 1px solid #FDD500;
    border-radius: 16px; padding: 15px 10px;
    display: flex; flex-direction: column; align-items: center;
    text-align: center; position: relative;
    box-shadow: 0 4px 15px rgba(253, 213, 0, 0.15);
    cursor: pointer; transition: transform 0.2s;
}
.pro-card:active { transform: scale(0.95); }

.pro-badge {
    position: absolute; top: -8px; right: -8px;
    background: #FDD500; color: #000;
    font-size: 0.7rem; padding: 2px 6px;
    border-radius: 50%; box-shadow: 0 2px 5px rgba(0,0,0,0.5); z-index: 2;
}

.pro-pic {
    width: 55px; height: 55px; border-radius: 50%; object-fit: cover;
    border: 2px solid #FDD500; margin-bottom: 8px;
}
.pro-pic.online { box-shadow: 0 0 10px #32D74B; border-color: #32D74B; }

.pro-name {
    font-size: 0.8rem; font-weight: bold; color: #fff;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 100%;
}
.pro-status { font-size: 0.65rem; color: #888; margin-top: 2px; }
.pro-status.on { color: #32D74B; }

/* --- LISTA REVENDEDORES NORMAL --- */
.section-title {
    display: flex; justify-content: space-between;
    margin-bottom: 15px; font-weight: 400;
}

.reseller-card {
    /* EFEITO VIDRO */
    border-left:1px solid #FDD50091 !important;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    
    border-radius: 20px; padding: 18px;
    display: flex; align-items: center;
    margin-bottom: 15px; transition: transform 0.2s;
    cursor: pointer; position: relative; overflow: hidden;
}

.reseller-card:active {
    transform: scale(0.98);
    background: rgba(255, 255, 255, 0.06);
}

.profile-pic {
    width: 55px; height: 55px; border-radius: 50%;
    object-fit: cover; margin-right: 15px;
    border: 2px solid rgba(255,255,255,0.1); background: #000;
}
.profile-pic.online { border-color: var(--success); box-shadow: 0 0 12px rgba(50, 215, 75, 0.4); }

.card-info { flex: 1; }
.card-info h3 { margin: 0; font-size: 1.1rem; color: #fff; }
.card-info p { margin: 5px 0 0; color: var(--text-secondary); font-size: 0.85rem; }

.action-btn {
    background: rgba(253, 213, 0, 0.15);
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    padding: 8px 18px; border-radius: 12px;
    font-weight: bold; font-size: 0.8rem;
    cursor: pointer; backdrop-filter: blur(5px);
}

/* --- MODAL SWEETALERT --- */
.swal2-popup {
    background: #111 !important;
    color: var(--text-primary) !important;
    border-radius: 24px !important;
    padding: 0 !important;
}
.swal2-html-container { margin: 0 !important; overflow: hidden; }

/* Modal Header */
.op-select { display: flex; background: #222; }
.op-option {
    flex: 1; padding: 20px; cursor: pointer; text-align: center; font-weight: bold;
    border-bottom: 3px solid transparent; opacity: 0.5; transition: 0.3s;
}
.op-option.selected { opacity: 1; background: #1a1a1a; }
.op-option.voda.selected { border-bottom-color: var(--vodacom); color: var(--vodacom); }
.op-option.movi.selected { border-bottom-color: var(--movitel); color: var(--movitel); }

.modal-body { padding: 20px; text-align: left; max-height: 70vh; overflow-y: auto; }

/* Modal Elements */
.pay-box {
    background: #1C1C1E; border: 1px solid #333;
    border-radius: 12px; padding: 15px; margin-bottom: 20px;
    font-size: 0.9rem; line-height: 1.5;
}
.pay-number { font-size: 1.2rem; font-weight: bold; color: var(--accent-color); display: block; margin: 5px 0; letter-spacing: 1px; }

.price-list { margin-bottom: 20px; }
.cat-title { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; color: #888; margin: 15px 0 5px 0; border-bottom: 1px solid #333; padding-bottom: 5px; }
.price-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed #333; font-size: 0.95rem; align-items: center; }
.price-amt { font-weight: bold; color: #fff; }
.price-val { color: var(--accent-color); font-weight: bold; }

.form-label { display: block; font-size: 0.8rem; color: #888; margin-bottom: 5px; margin-top: 15px; }
.custom-input { width: 100%; background: #2C2C2E; border: 1px solid #333; padding: 12px; border-radius: 12px; color: white; box-sizing: border-box; font-size: 1rem; font-family: inherit; }
.custom-input:focus { outline: none; border-color: var(--accent-color); }

.input-phone { text-align: center; font-size: 1.2rem; font-weight: bold; letter-spacing: 2px; }
.voda-theme { color: var(--vodacom); border-color: var(--vodacom); background: rgba(230,0,0,0.1); }
.movi-theme { color: var(--movitel); border-color: var(--movitel); background: rgba(255,204,0,0.1); }

/* --- BLOQUEIO INSTALAÇÃO APP --- */
.install-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    z-index: 99999;
    display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
    padding-top: 80px; opacity: 0; visibility: hidden; transition: opacity 0.5s ease;
}
.install-overlay.active { opacity: 1; visibility: visible; }

.install-card {
    background: #1C1C1E; width: 85%; max-width: 400px;
    border-radius: 24px; padding: 30px 20px; text-align: center;
    border: 1px solid var(--accent-color);
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    transform: translateY(-50px); transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.install-overlay.active .install-card { transform: translateY(0); }

.install-logo-lg { width: 80px; height: 80px; margin-bottom: 15px; filter: drop-shadow(0 0 10px rgba(253, 213, 0, 0.3)); }
.install-title { color: #fff; font-size: 1.4rem; font-weight: bold; margin-bottom: 10px; }
.install-desc { color: #ccc; font-size: 0.9rem; line-height: 1.5; margin-bottom: 25px; }

.btn-force-install {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; padding: 18px; background: var(--accent-color); color: #000;
    border: none; border-radius: 16px; font-size: 1rem; font-weight: 800;
    text-transform: uppercase; cursor: pointer;
    box-shadow: 0 0 20px rgba(253, 213, 0, 0.4); animation: pulseBig 2s infinite;
}
@keyframes pulseBig { 0% { transform: scale(1); } 50% { transform: scale(1.03); } 100% { transform: scale(1); } }

.btn-skip-install {
    margin-top: 15px; background: transparent; border: none; color: #666;
    font-size: 0.85rem; text-decoration: underline; cursor: pointer; padding: 10px;
}



/* --- ESTILO CORRIGIDO DO HISTÓRICO DE PEDIDOS --- */

.order-item {
    /* Design do Cartão */
    background: #09090b; /* Fundo bem escuro */
    padding: 16px;       /* Espaçamento interno (gordinho) */
    border-radius: 12px; /* Cantos arredondados */
    margin-bottom: 12px; /* Espaço entre um pedido e outro */
    
    /* Layout */
    display: flex;
    justify-content: space-between;
    align-items: center;
    
    /* Bordas */
    border: 1px solid #333; /* Borda fina cinza */
    border-left-width: 5px; /* Borda esquerda grossa colorida */
    box-shadow: 0 4px 10px rgba(0,0,0,0.3); /* Sombra leve */
}

/* Cores da Borda Lateral */
.order-item.pending {
    border-left-color: var(--accent-color); /* Amarelo */
}

.order-item.completed {
    border-left-color: var(--success); /* Verde */
}

/* O Badge (Etiqueta de Status) */
.status-badge {
    padding: 6px 12px;
    border-radius: 50px; /* Redondo estilo pílula */
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Cores do Badge */
.st-pending {
    background: rgba(253, 213, 0, 0.1);
    color: var(--accent-color);
    border: 1px solid rgba(253, 213, 0, 0.3);
}

.st-completed {
    background: rgba(50, 215, 75, 0.1);
    color: var(--success);
    border: 1px solid rgba(50, 215, 75, 0.3);
}
