/* ==========================================================================
   CONFIGURAÇÕES GLOBAIS E VARIÁVEIS
   ========================================================================== */
:root {
    --primary-color: #ff0000;
    --success-color: #28a745;
    --bg-body: #f4f7f9;
    --text-main: #1a1a1a;
    --text-muted: #707b8e;
    --card-bg: #ffffff;
    --card-shadow: 0 12px 35px rgba(0, 0, 0, 0.06);
    --border-radius-pill: 50px; /* Para botões e badges */
    --border-radius-lg: 32px;   /* Para cards e modais */
    --border-radius-md: 22px;   /* Para itens de lista */
}

body {
    background-color: var(--bg-body);
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    margin: 0;
    padding-bottom: 20px;
    -webkit-tap-highlight-color: transparent;
    letter-spacing: -0.2px;
}

.container-main {
    max-width: 500px;
    margin: 0 auto;
    padding: 0 18px;
}

/* ==========================================================================
   MENU SUPERIOR (ESTILO PÍLULA)
   ========================================================================== */
.menu-fixo-container {
    padding: 15px 18px;
    background: var(--bg-body);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.menu-arredondado {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.nav-link-app {
    text-decoration: none;
    color: #94a3b8;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s ease;
    flex: 1;
}

.nav-link-app i {
    font-size: 1.3rem;
    margin-bottom: 2px;
}

.nav-link-app.active, 
.nav-link-app:hover {
    color: var(--primary-color);
}

/* ==========================================================================
   CARDS E CAMPANHAS (BORDAS SUAVES)
   ========================================================================== */
.card-rifa-principal {
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    text-decoration: none;
    color: inherit;
    display: block;
    margin-bottom: 25px;
    transition: transform 0.3s ease;
    border: none;
}

.card-rifa-principal img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.badge-price {
    position: absolute;
    bottom: 130px;
    right: 15px;
    background: var(--primary-color);
    color: #fff;
    padding: 8px 20px;
    border-radius: var(--border-radius-pill);
    font-weight: 800;
    font-size: 15px;
    box-shadow: 0 8px 20px rgba(255, 0, 0, 0.3);
    z-index: 10;
}

.campanha-item-horizontal {
    background: var(--card-bg);
    border-radius: var(--border-radius-md);
    box-shadow: var(--card-shadow);
    display: flex;
    align-items: center;
    padding: 12px;
    margin-bottom: 15px;
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(0,0,0,0.02);
}

/* ==========================================================================
   BOTÕES E BADGES (TOTALMENTE ARREDONDADOS)
   ========================================================================== */
.btn-danger {
    background-color: var(--primary-color) !important;
    border-radius: var(--border-radius-pill) !important;
    padding: 14px 28px !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    border: none !important;
    box-shadow: 0 10px 25px rgba(255, 0, 0, 0.2) !important;
}

.badge-status-viva {
    background: #e6fcf5;
    color: #0ca678;
    padding: 6px 16px;
    border-radius: var(--border-radius-pill);
    font-size: 10px;
    font-weight: 800;
}

/* ==========================================================================
   MODAIS E FORMULÁRIOS
   ========================================================================== */
.modal-content {
    border-radius: var(--border-radius-lg) !important;
    border: none !important;
}

.form-control {
    border-radius: var(--border-radius-md) !important;
    padding: 15px !important;
    background-color: #f8f9fa !important;
    border: 2px solid transparent !important;
}

.modal-success-icon {
    width: 80px;
    height: 80px;
    background: var(--success-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 20px;
    box-shadow: 0 10px 25px rgba(40, 167, 69, 0.2);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.admin-link {
    font-size: 11px;
    color: var(--text-muted);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: var(--border-radius-pill);
    background: #fff;
    border: 1px solid rgba(0,0,0,0.05);
    display: inline-block;
}