:root {
    /* PALETA OFICIAL DROGARIA ULTRAZONE */
    --brand-primary: #E51D24;       /* Vermelho Farmácia Ultrazone */
    --brand-primary-hover: #CC161D;
    --brand-secondary: #8A1E7B;     /* Magenta / Roxo Cruz Médica */
    --brand-secondary-glow: rgba(138, 30, 123, 0.35);
    
    --bg-dark: #830B10;             /* Fundo Vermelho da Farmácia */
    --brand-medium: #1F080C;        /* Fundo Base dos Cards */
    --card-bg: rgba(20, 5, 8, 0.88);
    --card-border: rgba(255, 255, 255, 0.16);
    --card-border-hover: rgba(229, 29, 36, 0.65);
    
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.75);
    --text-muted: rgba(255, 255, 255, 0.50);
    
    --status-open: #10B981;
    --status-closed: #EF4444;
    
    --font-title: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-inter: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-inter);
    background-color: #830B10;
    /* Fundo Vermelho Oficial (uns tons abaixo do elefantinho, vermelho vivo e acolhedor, não vinho) */
    background-image: 
        radial-gradient(circle at 50% 0%, #A31219 0%, transparent 65%),
        radial-gradient(circle at 85% 45%, rgba(175, 18, 25, 0.35) 0%, transparent 55%),
        radial-gradient(circle at 15% 85%, rgba(145, 12, 18, 0.40) 0%, transparent 50%),
        linear-gradient(180deg, #8C0D12 0%, #680509 100%);
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    -webkit-font-smoothing: antialiased;
    position: relative;
    overflow-x: hidden;
}

/* --- FUNDO COM ELEMENTOS MÉDICOS FLUTUANDO (SUPER LEVE, 60FPS) --- */
.medical-floating-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.float-item {
    position: absolute;
    width: 30px;
    height: 30px;
    /* Cor única vermelinha sutil para fundir com o fundo sem disputar com os textos */
    color: rgba(235, 45, 55, 0.21);
    will-change: transform;
    pointer-events: none;
    filter: none;
}

.float-item svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Variações de escala e sutileza mantendo 100% a mesma cor vermelinha elegante */
.float-item:nth-child(even) {
    color: rgba(235, 45, 55, 0.17);
    width: 25px;
    height: 25px;
}

.float-item:nth-child(3n) {
    width: 36px;
    height: 36px;
    color: rgba(235, 45, 55, 0.24);
}

.float-item:nth-child(4n) {
    color: rgba(235, 45, 55, 0.19);
    width: 28px;
    height: 28px;
}

.float-item:nth-child(5n) {
    width: 22px;
    height: 22px;
    color: rgba(235, 45, 55, 0.15);
}

/* Trajetórias dinâmicas de voo ("voando pela página inteira") - 100% aceleradas por GPU */
@keyframes floatGentle1 {
    0% {
        transform: translate3d(0, 0, 0) rotate(0deg);
    }
    50% {
        transform: translate3d(35px, -45px, 0) rotate(18deg);
    }
    100% {
        transform: translate3d(-30px, -85px, 0) rotate(-14deg);
    }
}

@keyframes floatGentle2 {
    0% {
        transform: translate3d(0, 0, 0) rotate(0deg);
    }
    50% {
        transform: translate3d(-45px, -35px, 0) rotate(-18deg);
    }
    100% {
        transform: translate3d(30px, -75px, 0) rotate(20deg);
    }
}

@keyframes floatGentle3 {
    0% {
        transform: translate3d(0, 0, 0) rotate(0deg);
    }
    50% {
        transform: translate3d(40px, 35px, 0) rotate(22deg);
    }
    100% {
        transform: translate3d(-35px, -50px, 0) rotate(-16deg);
    }
}

@keyframes floatGentle4 {
    0% {
        transform: translate3d(0, 0, 0) rotate(0deg);
    }
    50% {
        transform: translate3d(-38px, 40px, 0) rotate(-20deg);
    }
    100% {
        transform: translate3d(35px, -60px, 0) rotate(18deg);
    }
}

@keyframes floatGentle5 {
    0% {
        transform: translate3d(0, 0, 0) rotate(0deg);
    }
    50% {
        transform: translate3d(45px, -30px, 0) rotate(-22deg);
    }
    100% {
        transform: translate3d(-40px, -70px, 0) rotate(16deg);
    }
}

@keyframes floatGentle6 {
    0% {
        transform: translate3d(0, 0, 0) rotate(0deg);
    }
    50% {
        transform: translate3d(-40px, 45px, 0) rotate(20deg);
    }
    100% {
        transform: translate3d(40px, -45px, 0) rotate(-18deg);
    }
}

.float-p1 {
    animation: floatGentle1 10s ease-in-out infinite alternate;
}

.float-p2 {
    animation: floatGentle2 13s ease-in-out infinite alternate;
}

.float-p3 {
    animation: floatGentle3 11.5s ease-in-out infinite alternate;
}

.float-p4 {
    animation: floatGentle4 14.5s ease-in-out infinite alternate;
}

.float-p5 {
    animation: floatGentle5 12s ease-in-out infinite alternate;
}

.float-p6 {
    animation: floatGentle6 15s ease-in-out infinite alternate;
}

.app-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 32px 18px 48px 18px;
    display: flex;
    flex-direction: column;
}

/* --- HEADER / IDENTIDADE --- */
.header {
    text-align: center;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.brand-avatar-wrapper {
    position: relative;
    margin-bottom: 12px;
}

.brand-logo-img {
    height: 104px;
    width: 104px;
    border-radius: 50%;
    border: 3.5px solid #ffffff;
    padding: 2px;
    object-fit: cover;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
    transition: transform 0.25s ease;
    display: block;
    background: #DC1E28;
}

.brand-logo-img:hover {
    transform: scale(1.04);
}

.verified-badge {
    position: absolute;
    bottom: 2px;
    right: 2px;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    color: white;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-dark);
    font-size: 13px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

.brand-title-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 4px;
}

.brand-title-img {
    height: 42px;
    width: auto;
    max-width: 270px;
    object-fit: contain;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.5));
    transition: transform 0.2s ease;
}

.brand-title-img:hover {
    transform: scale(1.02);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.header h1 {
    font-family: var(--font-title);
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
    margin-top: 4px;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.brand-subtitle {
    font-size: 13.5px;
    font-weight: 600;
    color: #ffffff;
    margin-top: 6px;
    line-height: 1.45;
    max-width: 380px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

/* --- STATUS E ENDEREÇO VERTICAL EMPILHADO --- */
.header-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    width: 100%;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(18, 5, 8, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 7px 18px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 600;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    transition: all 0.2s ease;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--status-closed);
    box-shadow: 0 0 8px var(--status-closed);
}

.status-dot.open {
    background-color: var(--status-open);
    box-shadow: 0 0 10px var(--status-open);
    animation: pulseOpen 2s infinite;
}

@keyframes pulseOpen {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1.15); box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* --- BOTÃO DE ENDEREÇO SLIM & ELEGANTE (SEM PADRÃO MÉDICO NO BOTÃO) --- */
.address-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(18, 5, 8, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 92%;
    text-align: center;
}

.address-pill:hover {
    background: var(--brand-primary);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.address-pill svg {
    color: var(--brand-primary);
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.address-pill:hover svg {
    color: #ffffff;
}

.address-arrow {
    font-size: 12px;
    opacity: 0.7;
    margin-left: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.address-pill:hover .address-arrow {
    opacity: 1;
    transform: translateX(2px);
}

/* --- BARRA SOCIAL / CONTATO RÁPIDO --- */
.social-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 18px;
    margin-bottom: 20px;
}

.social-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(18, 5, 8, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.18);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.social-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    transition: transform 0.2s ease;
}

.social-btn:hover {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(229, 29, 36, 0.35);
}

.social-btn:hover svg {
    transform: scale(1.1);
}

/* --- BLOCO DE HORÁRIOS FIXO (ACIMA DO WHATSAPP) --- */
.hours-card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 14px 18px;
    margin-bottom: 16px;
    backdrop-filter: blur(14px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    transition: border-color 0.2s ease;
}

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

.hours-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hours-card-header h3 {
    font-family: var(--font-title);
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.hours-grid {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.hours-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12.5px;
}

.hours-label {
    color: var(--text-secondary);
}

.hours-time {
    color: #ffffff;
    font-weight: 600;
}

/* --- CARDS PRINCIPAIS / LINKS DA LOJA --- */
.links-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.action-card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: white;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(14px);
    position: relative;
    overflow: hidden;
}

.action-card:hover {
    border-color: var(--brand-primary);
    background-color: rgba(36, 12, 17, 0.85);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(229, 29, 36, 0.22);
}

.action-card.disabled-teaser:hover {
    border-color: var(--card-border);
    background-color: var(--card-bg);
    transform: none;
    box-shadow: none;
}

.card-icon-box {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 22px;
    transition: all 0.2s ease;
}

.action-card:hover .card-icon-box {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    transform: scale(1.05);
}

.card-content {
    flex: 1;
}

.card-title {
    font-family: var(--font-title);
    font-size: 14.5px;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-tag {
    font-size: 10px;
    font-weight: 700;
    background-color: rgba(229, 29, 36, 0.2);
    color: #FFA4A8;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

.card-subtitle {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 3px;
    line-height: 1.35;
}

.card-chevron {
    color: rgba(255, 255, 255, 0.35);
    transition: transform 0.2s ease, color 0.2s ease;
}

.action-card:hover .card-chevron {
    color: #ffffff;
    transform: translateX(3px);
}

/* Card Primário */
.action-card.primary {
    background: linear-gradient(135deg, rgba(229, 29, 36, 0.28) 0%, rgba(138, 30, 123, 0.22) 100%);
    border: 1.5px solid rgba(229, 29, 36, 0.5);
}

.action-card.primary .card-icon-box {
    background-color: var(--brand-primary);
    border-color: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

/* --- MODAIS DE ATENDIMENTO E SERVIÇOS --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: fadeIn 0.2s ease;
}

.modal-overlay.active {
    display: flex;
}

.modal-box {
    background: #18070A;
    border: 1px solid var(--card-border-hover);
    border-radius: 20px;
    max-width: 440px;
    width: 100%;
    padding: 24px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
    animation: scaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleUp {
    from { transform: scale(0.92); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-header {
    margin-bottom: 16px;
}

.modal-header h3 {
    font-family: var(--font-title);
    font-size: 19px;
    font-weight: 700;
    color: #ffffff;
}

.modal-header p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
    line-height: 1.4;
}

.modal-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 18px 0;
}

.step-item {
    display: flex;
    gap: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px;
    border-radius: 12px;
    align-items: flex-start;
}

.step-num {
    background: var(--brand-primary);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.step-text h4 {
    font-size: 13.5px;
    font-weight: 600;
    color: #ffffff;
}

.step-text p {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
    line-height: 1.35;
}

.modal-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background-color: var(--brand-primary);
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 14.5px;
    padding: 13px;
    border-radius: 12px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 16px rgba(229, 29, 36, 0.4);
}

.modal-btn:hover {
    background-color: var(--brand-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(229, 29, 36, 0.5);
}

/* --- LISTA DE PARCEIROS DO BAIRRO DENTRO DO MODAL --- */
.partners-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 16px 0;
}

.partner-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 13px 15px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: all 0.2s ease;
}

.partner-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(229, 29, 36, 0.35);
}

.partner-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.partner-niche {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    background: rgba(229, 29, 36, 0.2);
    color: #FFA4A8;
    padding: 2px 7px;
    border-radius: 5px;
    letter-spacing: 0.4px;
}

.partner-name {
    font-family: var(--font-title);
    font-size: 14.5px;
    font-weight: 700;
    color: #ffffff;
    margin-top: 2px;
}

.partner-address {
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.partner-desc {
    font-size: 11.5px;
    color: var(--text-muted);
    line-height: 1.35;
    margin-top: 2px;
    margin-bottom: 6px;
}

.partner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.partner-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 11.5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.partner-btn.map-btn {
    background: rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.partner-btn.map-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.35);
}

.partner-btn.insta-btn {
    background: linear-gradient(135deg, rgba(225, 48, 108, 0.22), rgba(131, 58, 180, 0.22));
    color: #FFB3D9;
    border: 1px solid rgba(225, 48, 108, 0.45);
}

.partner-btn.insta-btn:hover {
    background: linear-gradient(135deg, rgba(225, 48, 108, 0.45), rgba(131, 58, 180, 0.45));
    color: #FFFFFF;
    border-color: #E1306C;
    transform: translateY(-1px);
}

.partner-invite-box {
    background: rgba(229, 29, 36, 0.1);
    border: 1px dashed rgba(229, 29, 36, 0.3);
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 16px;
    line-height: 1.4;
}

/* --- FOOTER DE CREDIBILIDADE --- */
.footer {
    text-align: center;
    margin-top: 20px;
    padding: 20px 16px;
    background: rgba(18, 5, 8, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.footer-compliance {
    font-size: 11.5px;
    color: var(--text-muted);
    line-height: 1.5;
}

.footer-compliance strong {
    color: rgba(255, 255, 255, 0.85);
}

.footer-copy {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 6px;
}

.footer-copy a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
}
