/* --- ESTILOS ESPECÍFICOS DO APP CLIENTE (ChamaLá B2C) --- */
/* Focado em: Glassmorphism suave, cores vibrantes (Laranja), UI ergonômica e arredondada */

:root {
    --primary-gradient: linear-gradient(135deg, var(--orange) 0%, #FF6B35 100%);
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.4);
    --shadow-soft: 0 8px 32px rgba(15, 23, 42, 0.05);
    /* Usando var(--primary) suavizado */
    --shadow-orange: 0 8px 24px rgba(255, 69, 0, 0.2);
}

body {
    background-color: var(--bg-body);
    /* Cinza Neve base #F1F5F9 */
}

/* Bottom Nav (Menu Inferior Mobile) - "Pílula" Flutuante com Glassmorphism */
.bottom-nav {
    position: fixed;
    bottom: calc(16px + env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    max-width: 440px;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-around;
    padding: 12px 10px;
    z-index: 100;
    box-shadow: var(--shadow-soft);
    border-radius: 30px;
    /* Estilo pílula */
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
    cursor: pointer;
    flex: 1;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
    transition: 0.3s;
}

.nav-item.active {
    color: var(--orange);
}

.nav-item.active .nav-icon {
    transform: translateY(-4px) scale(1.15);
    filter: drop-shadow(0 4px 6px rgba(255, 69, 0, 0.4));
}

.nav-item span {
    font-size: 11px;
    font-weight: 600;
}

/* Cabeçalhos (Headers) */
.main-header {
    background: var(--primary-gradient);
    padding: 60px 24px 80px;
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
    color: white;
    box-shadow: var(--shadow-orange);
    position: relative;
    z-index: 10;
}

.internal-header {
    padding: 16px 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 10;
}

.btn-back {
    background: var(--surface);
    border: 1px solid var(--border-light);
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
    box-shadow: var(--shadow-sm);
}

.btn-back:active {
    transform: scale(0.9);
}

.btn-back svg {
    width: 20px;
    height: 20px;
    fill: var(--primary);
}

/* Grid de Categorias e Cards (B2C) */
.content-pad {
    padding: 0 20px 20px;
}

.cat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: -30px;
    position: relative;
    z-index: 20;
    padding: 0 24px;
}

.cat-card {
    background: var(--surface);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 24px 16px;
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: var(--shadow-soft);
}

.cat-card:active {
    transform: scale(0.95);
    box-shadow: none;
    border-color: var(--orange);
    background: var(--orange-light);
}

.cat-icon-wrapper {
    width: 60px;
    height: 60px;
    background: var(--orange-light);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    transition: 0.3s;
}

.cat-card:hover .cat-icon-wrapper {
    background: var(--orange);
    box-shadow: var(--shadow-orange);
}

.cat-card:hover .cat-icon-wrapper svg {
    fill: white;
}

.cat-name {
    font-weight: 700;
    font-size: 14px;
    color: var(--primary);
}

/* Banner Pedidos Ativos (Home) */
.active-order-banner {
    background: var(--surface);
    border-radius: 20px;
    padding: 16px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-soft);
    position: relative;
    cursor: pointer;
    transition: 0.2s;
}

.active-order-banner:active {
    transform: scale(0.98);
}

/* Formulário de Pedido (Order Form) */
.upload-area {
    border: 2px dashed var(--border-medium);
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    background: var(--bg-body);
    cursor: pointer;
    transition: 0.3s;
}

.upload-area:hover {
    border-color: var(--orange);
    background: var(--orange-light);
}

.photo-thumb {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid var(--border-light);
}

/* Orders List e Outros Cards */
.card-glass {
    background: var(--surface);
    border-radius: 24px;
    padding: 24px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--glass-border);
    margin-bottom: 24px;
}

.order-card {
    background: var(--surface);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 16px;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: var(--shadow-soft);
}

.order-card:active {
    transform: scale(0.98);
}

.order-cat {
    font-size: 16px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 8px;
}

.order-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 16px;
}

/* Checkout & Proposals */
.proposal-card {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}

.pro-name {
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
}

.pro-price {
    color: var(--orange);
    font-weight: 800;
    font-size: 20px;
}

/* Auth Layout */
.auth-container {
    padding: 40px 24px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-logo-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.auth-logo-icon svg {
    width: 32px;
    height: 32px;
    fill: white;
}