:root {
    --actionbar-bg: #3F51B5;
    --actionbar-dark: #303F9F;
    --login-orange-top: #FF6F00;
    --login-orange-mid: #FF9800;
    --login-amber-bot: #FFC107;
    --olive-title: #808000;
    --green-helper: #228B22;
    --gold-stats: #DAA520;
    --whatsapp-green: #25D366;
    --maps-orange: #FF5722;
    --marquee-purple: #6200EE;
    --btn-grad-start: #064C62;
    --btn-grad-end: #0B8A99;
    --opinar-bg: #DCDCDC;
    --panel-bg: #F3F6FA;
    --slate-900: #0F172A;
    --slate-600: #475569;
    --slate-500: #64748B;
    --border-light: #E2E8F0;
    --danger: #DC2626;
}

* {
    box-sizing: border-box;
}

html, body {
    width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
    background-color: #FFFFFF;
    color: #0F172A;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

#santooliverApp {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Initial loader */
.initial-loader {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: linear-gradient(180deg, var(--login-orange-top) 0%, var(--login-orange-mid) 50%, var(--login-amber-bot) 100%);
    color: #FFFFFF;
    font-weight: 600;
}

.initial-loader-logo {
    width: 180px;
    height: auto;
    border-radius: 28px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
}

.spinner {
    width: 36px;
    height: 36px;
    border: 4px solid rgba(255, 255, 255, 0.35);
    border-top-color: #FFFFFF;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.spinner-dark {
    width: 36px;
    height: 36px;
    border: 4px solid #E2E8F0;
    border-top-color: var(--actionbar-bg);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 12px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ================= TOP ACTION BAR (Theme.SANTOOLIVERVIRTUAL - #3F51B5) ================= */
.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--actionbar-bg);
    color: #FFFFFF;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.topbar-inner {
    max-width: 1360px;
    margin: 0 auto;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.topbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    text-decoration: none;
    color: #FFFFFF;
    flex-shrink: 0;
    background: none;
    border: none;
    padding: 4px 6px;
    border-radius: 10px;
}

.topbar-brand:hover {
    background: rgba(255, 255, 255, 0.12);
}

.topbar-brand img {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    object-fit: cover;
    background: #FFFFFF;
}

.topbar-brand-title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.topbar-search-wrap {
    flex: 1 1 260px;
    min-width: 180px;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 24px;
    padding: 4px 12px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08);
}

.topbar-search-icon {
    color: #64748B;
    font-size: 16px;
    margin-right: 8px;
    user-select: none;
}

.topbar-search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 15px;
    color: #111827;
    padding: 6px 0;
    min-width: 0;
}

.topbar-search-clear {
    background: none;
    border: none;
    color: #64748B;
    font-size: 16px;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 50%;
}

.topbar-search-clear:hover {
    background: #E2E8F0;
    color: #111827;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.icon-btn {
    background: rgba(255, 255, 255, 0.14);
    color: #FFFFFF;
    border: none;
    border-radius: 10px;
    height: 40px;
    min-width: 40px;
    padding: 0 10px;
    font-size: 18px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background 0.15s ease;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.26);
}

.icon-btn.active {
    background: #FF6F00;
}

.auth-chip {
    background: #FFFFFF;
    color: #1E293B;
    border: none;
    border-radius: 20px;
    height: 38px;
    padding: 0 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.auth-chip:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.auth-chip img {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
}

/* ================= LATERAL MENU DRAWER (menu_principal.xml) ================= */
.drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.52);
    z-index: 200;
    display: flex;
    justify-content: flex-end;
    animation: fadeIn 0.15s ease;
}

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

.drawer-panel {
    width: min(330px, 88vw);
    height: 100%;
    background: #FFFFFF;
    box-shadow: -6px 0 24px rgba(0, 0, 0, 0.22);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.drawer-header {
    background: linear-gradient(135deg, var(--actionbar-bg) 0%, #283593 100%);
    color: #FFFFFF;
    padding: 20px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.drawer-user {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.drawer-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.drawer-user-info {
    min-width: 0;
}

.drawer-user-name {
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.drawer-user-email {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.drawer-close {
    background: rgba(255, 255, 255, 0.18);
    border: none;
    color: #FFFFFF;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

.drawer-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.drawer-list {
    padding: 8px 0 20px;
    display: flex;
    flex-direction: column;
}

.drawer-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 20px;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-size: 15px;
    font-weight: 500;
    color: #1E293B;
    cursor: pointer;
    transition: background 0.12s ease;
}

.drawer-item:hover {
    background: #F1F5F9;
}

.drawer-item.active {
    background: #EEF2FF;
    color: var(--actionbar-bg);
    font-weight: 700;
}

.drawer-item.danger {
    color: #DC2626;
}

.drawer-item-icon {
    width: 24px;
    text-align: center;
    font-size: 18px;
    color: var(--actionbar-bg);
}

.drawer-item.danger .drawer-item-icon {
    color: #DC2626;
}

.drawer-divider {
    height: 1px;
    background: #E2E8F0;
    margin: 6px 16px;
}

/* ================= MAIN SHELL (activity_tela_principal_servicos.xml) ================= */
.main-container {
    flex: 1;
    width: 100%;
    max-width: 1360px;
    margin: 0 auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.status-bar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0 4px;
}

.status-title {
    font-size: 18px;
    font-weight: 700;
    color: #0F172A;
    margin: 0;
}

.status-subtitle {
    font-size: 13px;
    color: #64748B;
}

.card-recycler {
    background: #FFFFFF;
    border-radius: 16px;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.1);
    border: 1px solid #EEF2F6;
    padding: 12px;
    min-height: 360px;
}

/* Exact Android Grid: 2 cols on mobile, 3 on tablet, 4 on desktop */
.servicos-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

@media (max-width: 1120px) {
    .servicos-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 780px) {
    .servicos-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
    .main-container {
        padding: 10px;
    }
    .card-recycler {
        padding: 8px;
    }
}

@media (max-width: 380px) {
    .servicos-grid {
        grid-template-columns: 1fr;
    }
}

/* ================= SERVICE CARD (produto_item_servicos.xml) ================= */
.servico-card {
    background: #FFFFFF;
    border-radius: 10px;
    border: 1px solid #E5E7EB;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.servico-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
}

.servico-foto-btn {
    width: 100%;
    max-width: 220px;
    aspect-ratio: 4 / 3;
    border: none;
    padding: 0;
    background: #F1F5F9;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.14);
}

.servico-foto {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.2s ease;
}

.servico-foto-btn:hover .servico-foto {
    transform: scale(1.03);
}

.servico-codigo {
    font-size: 13px;
    color: #000000;
    margin-top: 6px;
    font-weight: 500;
}

.servico-nome {
    font-size: 16px;
    font-weight: 700;
    color: var(--olive-title);
    margin: 8px 6px 4px;
    line-height: 1.25;
    word-break: break-word;
}

.servico-helper-green {
    font-size: 12px;
    font-weight: 700;
    color: var(--green-helper);
    margin: 6px 4px 8px;
    line-height: 1.3;
}

.btn-whatsapp-card {
    background: var(--whatsapp-green);
    color: #FFFFFF;
    border: none;
    border-radius: 22px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(37, 211, 102, 0.35);
    transition: filter 0.15s ease;
}

.btn-whatsapp-card:hover {
    filter: brightness(0.95);
}

.btn-whatsapp-card.disabled {
    background: #CBD5E1;
    color: #475569;
    box-shadow: none;
    cursor: not-allowed;
}

.servico-cliques {
    font-size: 13.5px;
    color: var(--gold-stats);
    font-weight: 600;
    margin-top: 8px;
}

.top3-row {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 8px;
    min-height: 62px;
}

.top3-slot {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
}

.top3-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: #F1F5F9;
    border: 2px solid #E2E8F0;
}

.top3-name {
    font-size: 10px;
    font-weight: 600;
    margin-top: 3px;
    max-width: 72px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.top3-name.pos-1 { color: #388E3C; }
.top3-name.pos-2 { color: #808000; }
.top3-name.pos-3 { color: #D32F2F; }

.stars-row {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-top: 6px;
}

.star-btn {
    background: none;
    border: none;
    font-size: 22px;
    color: #CBD5E1;
    cursor: pointer;
    padding: 0 2px;
    line-height: 1;
    transition: color 0.12s ease, transform 0.12s ease;
}

.star-btn.filled,
.star-btn:hover {
    color: #F59E0B;
    transform: scale(1.12);
}

.servico-media {
    font-size: 13.5px;
    color: var(--gold-stats);
    font-weight: 600;
    margin: 4px 0 8px;
}

.btn-opinar {
    width: 100%;
    margin-top: auto;
    background: var(--opinar-bg);
    color: #000000;
    border: none;
    border-radius: 16px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease;
}

.btn-opinar:hover {
    background: #C9C9C9;
}

/* ================= MARQUEE INFORMATIVO (textViewInformativo) ================= */
.marquee-box {
    width: 100%;
    overflow: hidden;
    background: #F8F5FF;
    border: 1px solid #E9D5FF;
    border-radius: 12px;
    padding: 10px 0;
}

.marquee-track {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    color: var(--marquee-purple);
    font-size: 15px;
    font-weight: 600;
    animation: marqueeScroll 28s linear infinite;
}

.marquee-box:hover .marquee-track {
    animation-play-state: paused;
}

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* Bottom gradient button (buttonSaveTotal - button_gradient.xml) */
.btn-registrar-opiniao {
    width: min(460px, 100%);
    margin: 0 auto 12px;
    background: linear-gradient(45deg, var(--btn-grad-start) 0%, var(--btn-grad-end) 100%);
    color: #FFFFFF;
    border: none;
    border-radius: 20px;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(6, 76, 98, 0.28);
    transition: transform 0.12s ease, filter 0.15s ease;
}

.btn-registrar-opiniao:hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
}

/* ================= LOGIN SCREEN (activity_form_login.xml) ================= */
.login-page {
    flex: 1;
    min-height: 100vh;
    background: linear-gradient(180deg, var(--login-orange-top) 0%, var(--login-orange-mid) 50%, var(--login-amber-bot) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 36px 20px;
    text-align: center;
}

.login-inner {
    width: 100%;
    max-width: 520px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-logo {
    width: min(280px, 75vw);
    height: 180px;
    object-fit: contain;
    border-radius: 45px;
    background: rgba(255, 255, 255, 0.12);
    padding: 6px;
}

.login-title {
    margin: 10px 0 0;
    font-size: 34px;
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: 0.05em;
}

.login-slogan {
    margin: 6px 0 0;
    font-size: 16px;
    font-style: italic;
    color: #FFFFFF;
}

.login-card {
    margin-top: 24px;
    width: 100%;
    background: #FFFFFF;
    border-radius: 24px;
    border: 1px solid #EEEEEE;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
    padding: 26px 24px;
}

.login-card h2 {
    margin: 0;
    font-size: 22px;
    color: #222222;
}

.login-card p {
    margin: 14px 0 0;
    font-size: 15.5px;
    color: #555555;
    line-height: 1.5;
}

.login-card .login-highlight {
    color: #FF6F00;
    font-weight: 700;
}

.login-google-label {
    margin-top: 24px;
    font-size: 18px;
    font-weight: 700;
    color: #FFFFFF;
}

.login-google-btn {
    margin-top: 14px;
    width: 160px;
    height: 70px;
    background: #FFFFFF;
    border: none;
    border-radius: 18px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease;
}

.login-google-btn:hover {
    transform: translateY(-2px);
}

.login-google-btn img {
    height: 40px;
    width: auto;
}

.login-skip-btn {
    margin-top: 18px;
    background: rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 20px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.login-skip-btn:hover {
    background: rgba(255, 255, 255, 0.32);
}

/* ================= DETALHES SERVICO (activity_detalhes_servicos.xml) ================= */
.detail-card {
    max-width: 780px;
    width: 100%;
    margin: 0 auto;
    background: #FFFFFF;
    border-radius: 20px;
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.1);
    border: 1px solid #E2E8F0;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
}

.detail-photo-btn {
    width: min(440px, 100%);
    aspect-ratio: 7 / 5;
    border: none;
    padding: 0;
    border-radius: 16px;
    overflow: hidden;
    background: #F1F5F9;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
}

.detail-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.detail-title {
    font-size: 24px;
    font-weight: 800;
    color: #000000;
    margin: 4px 0 0;
}

.detail-desc {
    font-size: 16px;
    color: #475569;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
    margin: 0;
    max-width: 640px;
}

.detail-desc a {
    color: var(--actionbar-bg);
    text-decoration: underline;
}

.detail-address {
    font-size: 16px;
    font-weight: 700;
    color: #475569;
    margin: 4px 0 0;
}

.detail-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 8px;
}

.btn-pill {
    border: none;
    border-radius: 24px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 700;
    color: #FFFFFF;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
}

.btn-pill.whatsapp { background: var(--whatsapp-green); }
.btn-pill.maps { background: var(--maps-orange); }
.btn-pill.primary { background: var(--actionbar-bg); }
.btn-pill.secondary { background: #475569; }
.btn-pill.danger { background: var(--danger); }

.extras-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.extras-thumb {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    border: 1px solid #E2E8F0;
}

/* ================= SECONDARY SCREENS (MenuActivity, Lives, Batalhas, Cadastro, Historias, etc.) ================= */
.page-shell {
    max-width: 980px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.page-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.btn-back {
    background: #EEF2FF;
    color: var(--actionbar-bg);
    border: 1px solid #C7D2FE;
    border-radius: 12px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.btn-back:hover {
    background: #E0E7FF;
}

.panel-hero {
    background: #0F172A;
    color: #FFFFFF;
    border-radius: 24px;
    padding: 22px;
    display: flex;
    align-items: center;
    gap: 18px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.18);
}

.panel-hero img {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    object-fit: cover;
    background: #1E293B;
}

.panel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}

.panel-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 22px;
    padding: 24px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
    transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.panel-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
}

.panel-card.danger {
    background: #FFF1F2;
    border-color: #FECACA;
    color: #991B1B;
}

.panel-card-icon {
    font-size: 36px;
}

.panel-card-title {
    font-size: 16px;
    font-weight: 700;
}

.section-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.06);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-field.full {
    grid-column: 1 / -1;
}

.form-field label {
    font-size: 13px;
    font-weight: 700;
    color: #334155;
}

.form-field input,
.form-field textarea,
.form-field select {
    border: 1px solid #CBD5E1;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 15px;
    background: #F8FAFC;
    color: #0F172A;
    font-family: inherit;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: 2px solid var(--actionbar-bg);
    background: #FFFFFF;
}

.badge-live {
    display: inline-block;
    background: #DC2626;
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 9px;
    border-radius: 8px;
    letter-spacing: 0.4px;
}

.badge-info {
    display: inline-block;
    background: #EEF2FF;
    color: var(--actionbar-bg);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 8px;
}

.info-banner {
    background: #FFFBEB;
    border: 1px solid #FDE68A;
    color: #92400E;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 14px;
    line-height: 1.5;
}

.empty-state {
    text-align: center;
    padding: 44px 20px;
    color: #64748B;
}

.empty-state h3 {
    margin: 0 0 8px;
    color: #1E293B;
}

/* Chat / MsgFeed */
.chat-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 440px;
    overflow-y: auto;
    padding: 8px 4px;
}

.chat-bubble {
    background: #F1F5F9;
    border-radius: 14px;
    padding: 12px 14px;
    border: 1px solid #E2E8F0;
}

.chat-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #64748B;
    margin-bottom: 4px;
}

.chat-author {
    font-weight: 700;
    color: var(--actionbar-bg);
}

.chat-form {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.chat-form input {
    flex: 1;
    border: 1px solid #CBD5E1;
    border-radius: 20px;
    padding: 10px 16px;
    font-size: 15px;
}

/* Batalha 4 slots */
.batalha-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

@media (max-width: 600px) {
    .batalha-grid {
        grid-template-columns: 1fr;
    }
}

.batalha-slot {
    background: #0F172A;
    color: #FFFFFF;
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Stories carousel (fotoPropaganda) */
.stories-frame {
    position: relative;
    background: #0F172A;
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 420px;
}

.stories-frame img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
}

.stories-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin-top: 12px;
}

/* Modal & Toast */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.modal-box {
    background: #FFFFFF;
    border-radius: 20px;
    max-width: 520px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 24px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.lightbox-img {
    max-width: 92vw;
    max-height: 85vh;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.toast-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 400;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.toast-msg {
    background: #1E293B;
    color: #FFFFFF;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    max-width: 90vw;
    text-align: center;
}

/* Geo Toolbar & Proximity */
.geo-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    background: #FFFFFF;
    padding: 12px 16px;
    border-radius: 14px;
    margin-bottom: 14px;
    border: 1px solid #E2E8F0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.geo-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #4F46E5;
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.geo-btn:hover {
    background: #4338CA;
}

.geo-input-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 220px;
}

.geo-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    font-size: 13px;
}

.geo-pills {
    display: flex;
    align-items: center;
    gap: 6px;
}

.geo-pill {
    padding: 6px 12px;
    border: 1px solid #CBD5E1;
    border-radius: 20px;
    background: #F8FAFC;
    color: #475569;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.geo-pill.active {
    background: #4F46E5;
    color: #FFFFFF;
    border-color: #4F46E5;
}

.banner-proximidade {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #ECFDF5, #D1FAE5);
    border: 1px solid #A7F3D0;
    color: #065F46;
    padding: 10px 16px;
    border-radius: 12px;
    margin-bottom: 14px;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.1);
}

.banner-proximidade strong {
    font-weight: 700;
}

/* Distance Badges */
.badge-distancia {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
}

.badge-distancia.dist-100m {
    background: #DCFCE7;
    color: #166534;
    border: 1px solid #86EFAC;
}

.badge-distancia.dist-200m {
    background: #FEF3C7;
    color: #92400E;
    border: 1px solid #FCD34D;
}

.badge-distancia.dist-demais {
    background: #F1F5F9;
    color: #475569;
    border: 1px solid #E2E8F0;
}

.badge-impreciso {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    background: #FEE2E2;
    color: #991B1B;
    font-size: 10px;
    font-weight: 600;
    margin-left: 4px;
}

/* KPI Admin Grid */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin: 16px 0;
}

.kpi-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.kpi-value {
    font-size: 26px;
    font-weight: 800;
    color: #0F172A;
}

.kpi-label {
    font-size: 12px;
    font-weight: 600;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 14px;
    background: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #E2E8F0;
}

.admin-table th {
    background: #F8FAFC;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
    text-align: left;
    padding: 10px 14px;
    border-bottom: 1px solid #E2E8F0;
}

.admin-table td {
    padding: 10px 14px;
    font-size: 13px;
    color: #1E293B;
    border-bottom: 1px solid #F1F5F9;
}

/* ================= MERCADO PAGO & CHECKOUT STYLES ================= */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.pricing-card {
    background: #FFFFFF;
    border: 2px solid #CBD5E1;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    position: relative;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    cursor: pointer;
}

.pricing-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.pricing-card.selected {
    border-color: #22C55E;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.pricing-card.featured {
    border-color: #3F51B5;
    background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
}

.pricing-card.featured.selected {
    border-color: #22C55E;
}

.pricing-tag {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #3F51B5;
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-title {
    font-size: 18px;
    font-weight: 800;
    color: #1E293B;
    margin: 8px 0 4px;
}

.pricing-days {
    font-size: 13px;
    font-weight: 600;
    color: #64748B;
    margin-bottom: 12px;
}

.pricing-price {
    font-size: 32px;
    font-weight: 900;
    color: #0F172A;
    margin: 10px 0;
}

.pricing-price small {
    font-size: 14px;
    font-weight: 600;
    color: #64748B;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 16px 0;
    font-size: 13px;
    color: #334155;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.payment-security-box {
    background: #F1F5F9;
    border-radius: 12px;
    padding: 16px;
    margin: 16px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: #334155;
}

.btn-mercadopago {
    background: #009EE3;
    color: #FFFFFF;
    border: none;
    border-radius: 24px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    box-shadow: 0 4px 14px rgba(0, 158, 227, 0.35);
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.btn-mercadopago:hover {
    background: #0081BA;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 158, 227, 0.45);
}

.btn-mercadopago:disabled {
    background: #94A3B8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.payment-result-box {
    max-width: 600px;
    margin: 30px auto;
    background: #FFFFFF;
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #E2E8F0;
}

.payment-result-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin: 0 auto 16px;
}

.payment-result-icon.approved {
    background: #DCFCE7;
    color: #166534;
}

.payment-result-icon.pending {
    background: #FEF3C7;
    color: #92400E;
}

.payment-result-icon.failure {
    background: #FEE2E2;
    color: #991B1B;
}

.payment-details-table {
    width: 100%;
    margin: 20px 0;
    border-collapse: collapse;
    font-size: 13px;
    text-align: left;
}

.payment-details-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #F1F5F9;
}

.payment-details-table td:first-child {
    font-weight: 600;
    color: #64748B;
    width: 40%;
}

/* ================= CONTRATOS DINÂMICOS & GERENCIAMENTO DE PACOTES ================= */
.contract-box {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    padding: 16px;
    margin: 18px 0;
}

.contract-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.contract-hash-badge {
    font-family: monospace;
    font-size: 11px;
    background: #EEF2F6;
    color: #475569;
    padding: 4px 8px;
    border-radius: 6px;
    word-break: break-all;
    border: 1px solid #CBD5E1;
}

.contract-text-scroll {
    max-height: 260px;
    overflow-y: auto;
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    padding: 14px;
    border-radius: 8px;
    font-family: monospace;
    font-size: 12px;
    line-height: 1.6;
    white-space: pre-wrap;
    color: #1E293B;
}

.contract-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.contract-modal-content {
    background: #FFFFFF;
    border-radius: 18px;
    max-width: 780px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.contract-modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid #E2E8F0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contract-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.contract-modal-footer {
    padding: 14px 20px;
    border-top: 1px solid #E2E8F0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background: #F8FAFC;
}

.package-editor-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.package-editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    border-bottom: 1px solid #F1F5F9;
    padding-bottom: 10px;
}

.tab-nav {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 2px solid #E2E8F0;
    padding-bottom: 8px;
}

.tab-btn {
    padding: 8px 16px;
    border-radius: 8px;
    border: none;
    background: transparent;
    font-weight: 600;
    font-size: 14px;
    color: #64748B;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-btn.active {
    background: #0F172A;
    color: #FFFFFF;
}

