@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,800;1,800&display=swap');

/* ======================================================
   1. VARIÁVEIS E RESET (Mantido do Original)
   ====================================================== */
:root {
    --primary: #ff9800;
    --dark: #121212;
    --card-bg: #1e1e1e;
    --text: #ffffff;
    --danger: #ff5252;
    --success: #4caf50;
    --info: #2196f3;
    --whatsapp: #25D366;
    --gold: #FFD700;
}

html {
    min-height: 100%;
    background-color: #000000;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: transparent !important;
    color: var(--text);
    margin: 0;
    padding: env(safe-area-inset-top) 20px 20px 20px;
    padding-bottom: 90px;
    -webkit-tap-highlight-color: transparent;
    overflow-x: hidden;
    overscroll-behavior-y: contain;
    min-height: 100vh;
    transition: background 0.5s ease, color 0.5s ease;
}

/* Travamento de rolagem seguro (Última versão) */
body.no-scroll {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
    left: 0;
    height: 100%;
}

#app-container {
    display: none;
}

/* ======================================================
   2. TELA DE LOGIN & ANIMAÇÕES (Únicas - Mantidas)
   ====================================================== */
.music-theme-bg {
    background: radial-gradient(circle at center, #2a2a2a 0%, #000000 100%);
    overflow: hidden;
    transition: opacity 0.5s ease-out;
}

.floating-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    will-change: transform;
}

.floating-icons span {
    position: absolute;
    bottom: -120px;
    color: rgba(255, 255, 255, 0.15);
    font-size: 40px;
    animation: floatUp 15s linear infinite;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    will-change: transform, opacity;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) rotate(0deg) scale(0.8);
        opacity: 0;
    }

    20% {
        opacity: 0.8;
    }

    80% {
        opacity: 0.8;
    }

    100% {
        transform: translateY(-110vh) rotate(360deg) scale(1.2);
        opacity: 0;
    }
}

.floating-icons span:nth-child(1) {
    left: 5%;
    animation-duration: 12s;
}

.floating-icons span:nth-child(2) {
    left: 15%;
    animation-duration: 15s;
    animation-delay: 2s;
}

.floating-icons span:nth-child(3) {
    left: 25%;
    animation-duration: 13s;
    animation-delay: 1s;
}

.floating-icons span:nth-child(4) {
    left: 35%;
    animation-duration: 16s;
    animation-delay: 3s;
}

.floating-icons span:nth-child(5) {
    left: 45%;
    animation-duration: 14s;
}

.floating-icons span:nth-child(6) {
    left: 55%;
    animation-duration: 17s;
    animation-delay: 2s;
}

.floating-icons span:nth-child(7) {
    left: 65%;
    animation-duration: 13s;
    animation-delay: 4s;
}

.floating-icons span:nth-child(8) {
    left: 75%;
    animation-duration: 15s;
    animation-delay: 1s;
}

.floating-icons span:nth-child(9) {
    left: 85%;
    animation-duration: 12s;
    animation-delay: 3s;
}

.floating-icons span:nth-child(10) {
    left: 95%;
    animation-duration: 16s;
}

.login-box-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 85vh;
    margin-top: 5vh;
}

.silver-gold-text {
    background: linear-gradient(to right, #C0C0C0 0%, #E5E4E2 20%, #FFD700 50%, #B8860B 80%, #C0C0C0 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.6);
    animation: shine 5s linear infinite;
    text-align: center;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

.login-title {
    margin-bottom: 5px;
    font-weight: 900;
    font-style: italic;
    font-size: clamp(1.8em, 8vw, 3.5em);
    letter-spacing: 2px;
}

.login-subtitle-styled {
    font-size: clamp(0.9em, 4vw, 1.3em);
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 10px;
}

.login-header-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
}

.login-footer-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.login-btn {
    background: rgba(255, 255, 255, 0.08);
    color: #aaa;
    border: 1px solid #333;
    padding: 8px 18px;
    border-radius: 30px;
    font-size: clamp(0.56em, 3.2vw, 0.8em);
    font-weight: normal;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.login-btn:active {
    background: rgba(255, 255, 255, 0.2);
}

.login-btn img {
    width: 16px;
    opacity: 0.6;
}

.login-safe-text {
    font-size: 0.7em;
    color: rgba(255, 255, 255, 0.3);
}

.full-screen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark);
    z-index: 3000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
}

/* Seleção de Perfil */
.role-btn {
    transition: transform 0.2s, background 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border-radius: 8px;
    padding: clamp(10px, 3vw, 20px);
    width: 80%;
    margin: 10px 0;
    font-size: clamp(0.84em, 4.8vw, 1.2em);
    cursor: pointer;
    text-transform: uppercase;
    font-weight: bold;
}

.role-btn:active {
    transform: scale(0.98);
    background: rgba(255, 255, 255, 0.15);
}

.manager-option-container {
    background: rgba(255, 215, 0, 0.08);
    border: 1px dashed var(--gold);
    border-radius: 12px;
    padding: 15px;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.manager-checkbox {
    width: 25px;
    height: 25px;
    accent-color: var(--gold);
    cursor: pointer;
    flex-shrink: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ======================================================
   3. CABEÇALHO, MENU E NAVEGAÇÃO
   ====================================================== */
.app-header {
    text-align: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: none;
    position: relative;
}

.header-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 5px;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    font-size: clamp(0.56em, 3.2vw, 0.8em);
    color: #aaa;
}

.user-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--primary);
}

#user-role-badge {
    background: #222;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: clamp(0.59em, 3.4vw, 0.85em);
    font-weight: bold;
    color: var(--primary);
    border: 1px solid #444;
    letter-spacing: 0.5px;
    cursor: default;
    margin-top: 2px;
}

.admin-clickable:active {
    transform: scale(0.95);
    opacity: 0.8;
}

.header-right-actions {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.btn-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.btn-logout {
    background: transparent;
    border: 1px solid #444;
    color: #aaa;
    font-size: 0.75em;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
}

.btn-assinar {
    background: rgba(255, 215, 0, 0.15);
    border: 1px solid #B8860B;
    color: #FFD700;
    font-weight: bold;
    font-size: 0.7em;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    display: none;
    text-transform: uppercase;
}

.vip-badge {
    color: var(--primary);
    font-size: 0.75em;
    font-weight: bold;
    margin-top: 2px;
    letter-spacing: 1px;
    margin-right: 28px;
    display: none;
    border: 1px solid var(--primary);
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(255, 152, 0, 0.1);
}

.menu-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: clamp(1.05em, 6.0vw, 1.5em);
    cursor: pointer;
    padding: 0 5px;
    line-height: 1;
    display: flex;
    align-items: center;
}

.menu-btn:active {
    opacity: 0.7;
}

/* Botões do Header */
.btn-search-header {
    background: transparent;
    border: none;
    color: var(--text);
    padding: 5px 10px;
    margin-right: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.btn-calendar-header {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #444;
    border-radius: 8px;
    color: #fff;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.btn-calendar-header:active {
    background: rgba(255, 255, 255, 0.2);
}

.btn-sort-toggle {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #444;
    color: var(--text);
    border-radius: 8px;
    width: 32px;
    height: 32px;
    padding: 0;
    font-size: clamp(0.77em, 4.4vw, 1.1em);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.btn-sort-toggle:active {
    background: rgba(255, 255, 255, 0.2);
}

.app-header h1 {
    /* Fonte Moderna */
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    /* Bem grosso (Extra Bold) */
    font-style: italic;
    /* O itálico dá a sensação de movimento/flow */

    /* Tamanho e Espaçamento */
    font-size: 1.6rem;
    letter-spacing: -1px;
    /* Letras juntinhas (Tendência moderna) */
    text-transform: none;

    /* Cor e Margem */
    margin: 5;
    color: #FFD700;
    /* Dourado */
    /* Ou um degradê dourado (mais chique ainda): */
    background: linear-gradient(180deg, #FFD700 0%, #B8860B 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;

    /* Opcional: Sombra suave para destacar do fundo */
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.titulo-visivel {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.header-subtitle-row {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 5px;
    color: #666;
    font-size: clamp(0.59em, 3.4vw, 0.85em);
    font-weight: 300;
    letter-spacing: 1px;
    text-transform: uppercase;
    height: 30px;
}

.header-controls-right {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
}

.control-icon {
    cursor: pointer;
    font-size: clamp(0.77em, 4.4vw, 1.1em);
    opacity: 0.7;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-icon:active {
    opacity: 1;
    transform: scale(1.1);
}

.eye-svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    color: #888;
}

/* Pull to Refresh */
#pull-indicator {
    position: fixed;
    top: -60px;
    left: 0;
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    pointer-events: none;
    transition: transform 0.2s ease-out;
}

.pull-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255, 152, 0, 0.3);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: none;
}

.pull-arrow {
    font-size: 24px;
    color: var(--primary);
    transition: transform 0.3s;
}

.rotate-arrow {
    transform: rotate(180deg);
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Visual Novo do Menu Dropdown (Última Versão) */
#dropdown-menu {
    background: linear-gradient(145deg, #1a1a1a, #0d0d0d) !important;
    border: 1px solid rgba(255, 215, 0, 0.2) !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.05) !important;
    padding: 10px;
    width: 240px;
    position: absolute;
    top: 65px;
    right: 10px;
    z-index: 2000;
    display: none;
    flex-direction: column;
    animation: menuSlideDown 0.3s ease cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: top right;
}

@keyframes menuSlideDown {
    0% {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

#dropdown-menu button {
    background: transparent !important;
    border: none !important;
    color: #eee !important;
    padding: 12px 15px;
    text-align: left;
    font-size: clamp(0.66em, 3.8vw, 0.95em);
    font-weight: 500;
    border-radius: 10px;
    margin-bottom: 5px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

#dropdown-menu button:hover {
    background: rgba(255, 215, 0, 0.15) !important;
    color: var(--gold) !important;
    transform: translateX(5px);
    box-shadow: -2px 0 10px rgba(255, 215, 0, 0.1);
}

#dropdown-menu hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 8px 5px;
}

.btn-tool {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: #ccc;
    font-size: clamp(0.59em, 3.4vw, 0.85em);
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: left;
    width: 100%;
}

.btn-tool:active {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.btn-admin {
    color: var(--primary);
    font-weight: bold;
    display: none;
}

#btn-assinar-menu,
.btn-highlight-menu {
    background: linear-gradient(to right, var(--gold), #FFA500) !important;
    color: #000 !important;
    font-weight: bold !important;
    box-shadow: 0 4px 10px rgba(255, 215, 0, 0.3);
}

#btn-assinar-menu:hover,
.btn-highlight-menu:hover {
    filter: brightness(1.1);
    transform: scale(1.02) !important;
    box-shadow: 0 6px 15px rgba(255, 215, 0, 0.5);
}

#btn-logout-menu {
    color: #ff8888 !important;
    margin-top: 5px;
}

#btn-logout-menu:hover {
    background: rgba(255, 50, 50, 0.15) !important;
    color: #ff4444 !important;
}

/* --- BOTÕES FLUTUANTES (COM BLINDAGEM ANTI-TREMEDEIRA E ANTI-SELEÇÃO) --- */
.btn-flutuante-padrao {
    /* 1. POSICIONAMENTO E TAMANHO (MANTIDO) */
    position: fixed;
    bottom: 25px;
    width: 60px;
    height: 60px;
    z-index: 900;

    /* 2. ESTILO VISUAL (MANTIDO) */
    border-radius: 50%;
    border: none;
    background: var(--primary);
    color: #000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;

    /* 3. BLOQUEIO TOTAL DE SELEÇÃO (MANTIDO FIX) */
    -webkit-user-select: none !important;
    /* Chrome/Safari */
    user-select: none !important;
    /* Padrão */
    -webkit-touch-callout: none !important;
    /* Impede menu 'Copiar' no iOS */
    outline: none !important;
    /* Remove borda de foco azul */

    /* 4. PERFORMANCE / GPU (O SEGREDO PARA NÃO TREMER) */
    /* Isso joga o botão para uma camada 3D separada da rolagem */
    will-change: transform, opacity;
    transform: translate3d(0, 0, 0);
    -webkit-font-smoothing: antialiased;
    backface-visibility: hidden;
    perspective: 1000px;

    /* Transição suave otimizada */
    transition: opacity 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ESTADOS DO BOTÃO HOME (ANIMAÇÃO 3D) */
#btn-home-esquerda {
    left: 25px;
    opacity: 0;
    pointer-events: none;
    /* Sai para a esquerda usando 3D */
    transform: translate3d(-50px, 0, 0) scale(0.8);
}

#btn-home-esquerda.visivel {
    opacity: 1;
    pointer-events: auto;
    /* Volta para o lugar original usando 3D */
    transform: translate3d(0, 0, 0) scale(1);
}

#btn-add-show-fab {
    right: 25px;
    font-size: 32px;
    padding-bottom: 4px;
}

/* ======================================================
   4. DASHBOARD E SLIDERS
   ====================================================== */
.slider-container {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    display: flex;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-bottom: 5px;
}

.slider-container::-webkit-scrollbar {
    display: none;
}

.dashboard-slide {
    min-width: 100%;
    scroll-snap-align: center;
    display: flex;
    gap: 10px;
    box-sizing: border-box;
    padding: 2px;
    align-items: stretch;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.dot {
    width: 8px;
    height: 8px;
    background: #444;
    border-radius: 50%;
    transition: background 0.3s;
}

.dot.active {
    background: var(--primary);
}

.card-resumo {
    /* --- 1. VISUAL PRETO COM TOQUE DO TEMA (FUSÃO) --- */
    /* O topo pega a cor do tema bem escura (12% de luz) e desce para o preto absoluto */
    background: linear-gradient(180deg, hsl(var(--theme-hue), 30%, 12%) 0%, #0a0a0a 100%) !important;

    /* Borda fina e discreta */
    border: 1px solid rgba(255, 255, 255, 0.08) !important;

    /* Sombra profunda 3D */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7) !important;

    /* --- 2. ESTRUTURA "GORDINHA" (Igual às Abas) --- */
    /* Aumentei de 6px para 15px. Isso encorpa a janela. */
    padding: 10px !important;

    border-radius: 15px;
    flex: 1;
    min-width: 140px;
    text-align: center;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    /* Ajustei levemente a altura mínima para compensar o enchimento */
    min-height: 125px;

    /* GARANTE LARGURA IGUAL: Força ambos a ocuparem 50% do espaço disponível */
    flex: 1 1 45%;
    max-width: 50%;
    box-sizing: border-box;
}

/* --- AJUSTE INTELIGENTE PARA TELAS PEQUENAS --- */
@media screen and (max-width: 380px) {

    /* 1. Resumo Financeiro */
    .card-resumo {
        padding: 8px !important;
        min-width: 0;
    }

    .card-resumo p {
        margin-bottom: 2px !important;
    }

    .resumo-detalhe {
        margin-top: 2px !important;
        padding-top: 5px;
    }

    .detalhe-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0px;
        margin-bottom: 4px;
    }

    .detalhe-valor {
        text-align: left !important;
        width: 100%;
        margin-top: -2px;
    }

    /* 2. Cabeçalho e Ações */
    .user-avatar {
        width: 26px !important;
        height: 26px !important;
    }

    .eye-svg {
        width: 14px !important;
        height: 14px !important;
    }

    .btn-search-header svg {
        width: 16px !important;
        height: 16px !important;
    }

    .menu-btn {
        font-size: 1.5em !important;
    }

    .tab-btn {
        font-size: 0.52em !important;
    }

    .tabs-container {
        height: 26px !important;
    }

    /* 3. Botão Flutuante (FAB) */
    .btn-flutuante-padrao {
        width: 50px !important;
        height: 50px !important;
        bottom: 20px !important;
        right: 20px !important;
    }

    #btn-add-show-fab {
        font-size: 26px !important;
    }

    /* 4. Menu Dropdown */
    #dropdown-menu {
        width: 200px !important;
    }

    #dropdown-menu button {
        padding: 10px 12px !important;
        font-size: 0.6em !important;
        gap: 10px !important;
    }
}

.card-resumo h3 {
    margin: 0 0 5px 0;
    font-size: 0.75em;
    color: #aaa;
    text-transform: uppercase;
}

.card-resumo p {
    margin: 0 0 5px 0;
    font-size: clamp(0.91em, 5.2vw, 1.3em);
    font-weight: bold;
    color: var(--success);
}

.card-resumo .sub-info {
    font-size: 0.7em;
    color: #666;
    margin-top: 2px;
}

.card-resumo-left-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 100%;
    margin-bottom: 5px;
}

.select-mes-container-bottom {
    width: 100%;
    margin-top: auto;
    border-top: 1px solid #333;
    padding-top: 5px;
}

/* Cores Totais */
#total-mes,
#total-mes-mini,
#total-semana-pago {
    color: var(--success) !important;
    text-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
}

#total-pendente,
#total-semana-pendente {
    color: #FFD700 !important;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.text-semana-pago {
    color: var(--success) !important;
}

.text-semana-pendente {
    color: var(--primary) !important;
}

.resumo-detalhe {
    width: 100%;
    border-top: 1px solid #333;
    margin-top: 5px;
    padding-top: 5px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.detalhe-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.7em;
    color: #ccc;
    flex-wrap: wrap;
}

.detalhe-valor {
    font-weight: bold;
    text-align: right;
}

.detalhe-futuro {
    color: var(--info);
}

.detalhe-passado {
    color: var(--danger);
}

.detalhe-gastos {
    color: #aaa;
}

.select-mes {
    background: transparent;
    color: #888;
    border: none;
    font-size: clamp(0.56em, 3.2vw, 0.8em);
    text-transform: uppercase;
    cursor: pointer;
    text-align: center;
    width: 100%;
}

.select-mes:focus {
    outline: none;
    color: #fff;
}

/* Dashboard Panel & Tabs (Versão Fina) */
.tabs-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #252525;
    border-radius: 13px;
    padding: 1px;
    margin-bottom: 6px;
    margin-left: -9px;
    margin-right: -5px;
    width: calc(100% + 14px);
    position: relative;
    border: 1px solid #444;
    height: 29px;
    overflow: hidden;
}

/* Custom integrated controls inside tabs container */
.tabs-container .btn-sort-toggle {
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    flex: 0 0 auto !important;
    padding: 0 12px !important;
    width: auto !important;
    height: 100% !important;
    color: #888 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 2 !important;
    cursor: pointer;
}

.tabs-container #toggle-valores-btn {
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    flex: 0 0 auto !important;
    padding: 0 12px !important;
    width: auto !important;
    height: 100% !important;
    color: #888 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 2 !important;
    cursor: pointer;
}

.tabs-container .btn-sort-toggle:active,
.tabs-container #toggle-valores-btn:active {
    color: #fff !important;
    background: transparent !important;
}

/* Restores the active (orange) color for the Inverter button inside the tabs container */
.tabs-container .btn-sort-toggle.active,
.tabs-container .btn-sort-toggle:active,
.tabs-container .btn-sort-toggle[style*="var(--primary)"] {
    color: var(--primary) !important;
}

.tabs-container .btn-sort-toggle.active svg,
.tabs-container .btn-sort-toggle[style*="var(--primary)"] svg {
    fill: var(--primary) !important;
}

.tab-indicator {
    position: absolute;
    height: calc(100% - 4px);
    top: 2px;
    left: 0;
    background: var(--primary);
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    pointer-events: none;
}

.tab-btn {
    flex: 1;
    background: transparent !important;
    border: none !important;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #888;
    font-size: clamp(0.56em, 3.2vw, 0.8em);
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 20px;
    transition: all 0.3s ease;
    z-index: 2;
    position: relative;
}

.tab-btn.active {
    color: #000;
}

.dashboard-panel {
    display: flex;
    gap: 4px;
    margin-left: -10px;
    margin-right: -10px;
    width: calc(100% + 20px);
    animation: fadeIn 0.3s ease-out;
}

.destaque-card {
    /* --- 1. A NOVA IDENTIDADE VISUAL (Igual aos Cartões) --- */
    background: linear-gradient(180deg, #1f1f1f 0%, #0a0a0a 100%) !important;

    /* ALTERAÇÃO AQUI: Borda amarela sólida e fina */
    border: 1px solid #FFD700 !important;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7) !important;

    /* --- 2. ESTRUTURA --- */
    border-radius: 12px;
    padding: 10px;
    text-align: center;

    margin-left: -8px;
    margin-right: -8px;
    margin-bottom: 4px;
    margin-top: -6px;
}

.destaque-header {
    color: var(--gold);
    font-size: clamp(0.56em, 3.2vw, 0.8em);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.destaque-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.destaque-item {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: clamp(0.77em, 4.4vw, 1.1em);
    color: white;
    padding: 5px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.destaque-item:last-child {
    border-bottom: none;
}

.destaque-hora {
    font-weight: bold;
    color: var(--primary) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 1);
}

.destaque-local {
    font-weight: 300;
}

.destaque-madrugada {
    opacity: 0.9;
}

.destaque-encontrado {
    animation: piscarDestaque 2s ease-in-out;
    z-index: 50;
}

@keyframes piscarDestaque {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(255, 215, 0, 0);
    }

    50% {
        transform: scale(1.06);
        box-shadow: 0 0 25px rgba(255, 215, 0, 0.8);
        border-color: #FFD700;
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(255, 215, 0, 0);
    }
}

/* ======================================================
   5. LISTA DE SHOWS E CARDS (Versão Definitiva)
   ====================================================== */
.lista-shows {
    display: flex;
    flex-direction: column;

    /* 1. CONTROLE: DISTÂNCIA ENTRE UMA ABA E OUTRA */
    /* Aumente aqui para separar uma gaveta da outra */
    gap: 6px !important;

    /* 2. CONTROLE: DISTÂNCIA DA JANELA DE CIMA PARA A PRIMEIRA ABA */
    /* Aumente aqui para separar o bloco inteiro das janelas de cima (Valores) */
    margin-top: 6px !important;
}

details {
    width: 100%;

    /* 3. RESET (NÃO MEXA AQUI) */
    /* Deixe zerado para que o 'gap' e o 'margin-top' acima funcionem sozinhos */
    margin-bottom: 0px !important;
    margin-top: 0px !important;
}

summary {
    background: linear-gradient(180deg, #252525 0%, #151515 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: var(--primary);
    font-weight: bold;
    text-transform: uppercase;
    font-size: clamp(0.63em, 3.6vw, 0.9em);
    user-select: none;
    padding: 8px;

    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;

    /* Fixação ao rolar a tela */
    position: -webkit-sticky;
    position: sticky;
    top: 33px;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.8);

    /* Visual Arredondado */
    border-radius: 12px;

    /* AQUI ESTÁ A CORREÇÃO FINAL DE ESPAÇAMENTO */
    /* Ordem: Topo(0) | Direita(-9) | Baixo(0) | Esquerda(-9) */
    /* Zeramos o topo para não criar buraco, e mantivemos o negativo lateral para esticar */
    margin: 0px -9px 0 -9px !important;
}

summary::-webkit-details-marker {
    display: none;
}

summary:after {
    content: '+';
    font-size: clamp(0.84em, 4.8vw, 1.2em);
    color: #fff;
}

details[open] summary:after {
    content: '-';
}

details[open] summary {
    border-bottom: 1px solid var(--primary);
}

.summary-pendente {
    padding: 8px 20px !important;
    min-height: auto !important;
    font-size: 0.85em !important;
    background: rgba(255, 82, 82, 0.05);
    border-bottom: 1px solid var(--danger) !important;

    /* ADICIONE/AJUSTE ESTA LINHA */
    margin-bottom: 2px !important;
}

.mes-group-content {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid #333;
    border-top: none;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;

    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 15px;

    /* 👇 AQUI ESTÁ O CONTROLE DA LARGURA 👇 */
    /* 0px = Janela TOTALMENTE larga (cartão encosta na borda) */
    /* 10px = Janela larga com leve respiro */
    /* 30px = Janela estreita (muito espaço nas laterais) */
    padding: 2px !important;
}

/* --- ESTILO DEFINITIVO DO CARTÃO (SHOW CARD) - VERSÃO FLUIDA & ILHA ÚNICA (OPACO) --- */
.show-card {
    display: flex;
    flex-direction: column;

    /* ALTERAÇÃO 1: Fundo Sóbrio (Cinza Chumbo -> Preto) para bloquear a cor do tema */
    background: linear-gradient(180deg, #1f1f1f 0%, #0a0a0a 100%) !important;

    border: 1px solid rgba(255, 255, 255, 0.08) !important;

    /* ALTERAÇÃO 2: Sombra um pouco mais forte para destacar o cartão escuro */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7) !important;

    backdrop-filter: blur(10px);

    border-radius: 25px;

    /* Padding original mantido */
    padding: 20px 15px 20px 15px !important;

    /* 1. BLOQUEIO DE SELEÇÃO */
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;

    /* 2. MELHORIA DE TOQUE */
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;

    /* 3. FLEXIBILIDADE (EFEITO MOLA) */
    min-height: 160px;
    height: auto;

    /* Margens originais mantidas */
    margin-top: 4px;
    margin-bottom: 4px;

    /* 5. POSICIONAMENTO */
    position: relative;
    z-index: 1;

    /* Mantém a barra de status colorida na esquerda com prioridade */
    border-left: 4px solid var(--status-color, #333) !important;

    /* Animações originais */
    transition: transform 0.2s ease-out, filter 0.2s ease-out, opacity 0.2s;
    transform-origin: center top;
}

/* --- IMPORTANTE: Se tiver input dentro do card, libera a seleção nele --- */
.show-card input,
.show-card textarea {
    user-select: text !important;
    -webkit-user-select: text !important;
    cursor: text;
}

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

.show-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 100%);
    border-radius: 16px 16px 0 0;
    pointer-events: none;
}

/* Cores das Bordas */
.border-confirmado {
    border-left-color: var(--success) !important;
}

.border-nao-pago {
    border-left-color: var(--danger) !important;
}

.border-futuro {
    border-left-color: var(--gold) !important;
}

.border-pendente {
    border-left-color: var(--danger) !important;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1px;
}

.show-titulo {
    font-size: clamp(0.98em, 5.6vw, 1.4em);
    font-weight: 800;
    margin: 0 0 8px 0;
    line-height: 1.2;
    background: linear-gradient(to right, #FFD700, #FDB931, #FFD700);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.show-data {
    font-size: clamp(0.63em, 3.6vw, 0.9em);
    color: #ccc;
    font-weight: normal;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
}

.show-hora-destaque {
    color: #ccc;
    font-weight: normal;
    font-size: clamp(0.63em, 3.6vw, 0.9em);
    display: flex;
    align-items: center;
    gap: 4px;
}

.show-valores-wrapper {
    text-align: right;
}

.show-valor {
    font-size: clamp(0.77em, 4.4vw, 1.1em);
    font-weight: bold;
    color: #fff !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
    display: block;
}

.show-lucro {
    font-size: clamp(0.59em, 3.4vw, 0.85em);
    color: var(--success);
    display: block;
    margin-top: 2px;
}

.show-sinal {
    font-size: clamp(0.59em, 3.4vw, 0.85em);
    color: var(--success);
    display: block;
    margin-top: 2px;
    font-weight: bold;
}

.address-link {
    color: var(--info);
    cursor: pointer;
    text-decoration: underline;
}

.show-local {
    font-size: clamp(0.66em, 3.8vw, 0.95em);
    color: #aaa;
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.show-endereco {
    font-size: clamp(0.59em, 3.4vw, 0.85em);
    color: #777;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-style: italic;
}

.show-obs {
    font-size: clamp(0.56em, 3.2vw, 0.8em);
    color: #888;
    background: rgba(255, 255, 255, 0.05);
    padding: 5px;
    border-radius: 4px;
    margin-bottom: 10px;
    display: inline-block;
}

.show-previsao {
    font-size: clamp(0.56em, 3.2vw, 0.8em);
    color: #FFD700;
    background: rgba(255, 215, 0, 0.1);
    padding: 3px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.tags-container {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.tag-btn {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.7em;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    letter-spacing: 0.5px;
    transition: transform 0.1s, box-shadow 0.2s;
}

.tag-btn:active {
    transform: scale(0.90);
    filter: brightness(1.2);
}

.tag-pago {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
    border: 1px solid #4caf50;
}

.tag-receber {
    background: rgba(255, 82, 82, 0.2);
    color: #ff5252;
    border: 1px solid #ff5252;
}

.tag-futuro {
    border-color: #FFD700 !important;
    color: #FFD700 !important;
    background: rgba(255, 215, 0, 0.15) !important;
}

.atrasado-alert {
    background: rgba(255, 0, 0, 0.2);
    color: #ff5252 !important;
    font-weight: bold;
    font-size: 0.75em;
    text-transform: uppercase;
    animation: piscar 1.5s infinite;
    border: 1px solid var(--danger);
    padding: 4px 8px;
    border-radius: 4px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.lineup-container {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.musician-tag {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #444;
    color: #aaa;
    font-size: 0.75em;
    padding: 4px 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.card-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.footer-left {
    flex: 1;
    text-align: left;
}

.footer-right {
    flex: 1;
    text-align: right;
}

/* Modo Compacto */
.compact-view .show-card {
    padding: 8px 12px;
    border-left-width: 4px;
}

.compact-view .show-local,
.compact-view .show-endereco,
.compact-view .show-obs,
.compact-view .tags-container,
.compact-view .show-previsao,
.compact-view .lineup-container,
.compact-view .card-footer-row {
    display: none !important;
}

.compact-view .show-titulo {
    font-size: clamp(0.77em, 4.4vw, 1.1em);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.compact-view .card-header {
    margin-bottom: 2px;
    align-items: center;
}

.compact-view .show-data {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    font-size: clamp(0.7em, 4.0vw, 1.0em);
}

.compact-view .show-valor {
    font-size: clamp(0.7em, 4.0vw, 1.0em);
}

.compact-view .show-lucro {
    font-size: 0.75em;
}

.compact-view .show-card.expanded-card {
    border-left-width: 6px;
    padding: 15px;
}

.compact-view .show-card.expanded-card .show-local,
.compact-view .show-card.expanded-card .show-endereco,
.compact-view .show-card.expanded-card .show-obs,
.compact-view .show-card.expanded-card .show-previsao,
.compact-view .show-card.expanded-card .lineup-container,
.compact-view .show-card.expanded-card .card-footer-row {
    display: flex !important;
}

.compact-view .show-card.expanded-card .show-obs {
    display: inline-block !important;
}

.compact-view .show-card.expanded-card .tags-container {
    display: flex !important;
}

.compact-view .show-card.expanded-card .show-titulo {
    font-size: clamp(0.91em, 5.2vw, 1.3em);
    margin: 0 0 5px 0;
    white-space: normal;
    overflow: visible;
}

.compact-view .show-card.expanded-card .card-header {
    margin-bottom: 1px;
    align-items: flex-start;
}

.compact-view .show-card.expanded-card .show-data {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    font-size: clamp(0.77em, 4.4vw, 1.1em);
}

/* ======================================================
   6. MODAIS, FORMULÁRIOS E AUXILIARES
   ====================================================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    align-items: flex-start;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
    overflow-x: hidden;
    padding-top: 50px;
}

/* Modais Específicos (Atualizado) */
.modal-content {
    background: #252525;
    padding: clamp(10px, 3vw, 25px);
    border-radius: 20px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
    margin-bottom: 50px;
    animation: slideUpFade 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    -webkit-overflow-scrolling: touch;
}

@keyframes slideUpFade {
    from {
        transform: translateY(50px) scale(0.95);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

#modal-team-payment .modal-content,
#modal-create-team .modal-content,
#modal-join-team .modal-content,
#modal-connect-band .modal-content {
    background: #1e1e1e !important;
    color: #ffffff !important;
    border: 1px solid var(--gold) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8) !important;
}

#modal-team-payment h2,
#modal-create-team h2 {
    color: var(--gold) !important;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

#modal-team-payment p,
#modal-create-team p,
#team-pay-desc {
    color: #ccc !important;
}

#modal-team-payment ul li {
    color: #ddd !important;
}

/* Action Sheet */
.action-sheet-content {
    background: #252525;
    padding: 25px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.6);
    border-top: 1px solid var(--primary);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.btn-acao-menu {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #333;
    border-radius: 10px;
    color: white;
    font-size: clamp(0.77em, 4.4vw, 1.1em);
    font-weight: bold;
    cursor: pointer;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-acao-menu:active {
    background: rgba(255, 255, 255, 0.1);
}

/* Inputs e Forms */
label {
    display: block;
    margin-top: 8px;
    color: #aaa;
    font-size: clamp(0.63em, 3.6vw, 0.9em);
}

input,
select,
textarea {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #444;
    background: #181818;
    color: white;
    font-size: 16px;
    box-sizing: border-box;
    outline: none;
    margin-top: 5px;
}

textarea {
    resize: vertical;
    min-height: 60px;
    font-family: inherit;
}

/* Lista Sugestões */
.sugestoes-lista {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #2a2a2a;
    border: 1px solid var(--primary);
    border-top: none;
    border-radius: 0 0 8px 8px;
    z-index: 3000;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.sugestao-item {
    padding: 12px;
    border-bottom: 1px solid #333;
    cursor: pointer;
    color: #eee;
    font-size: clamp(0.66em, 3.8vw, 0.95em);
}

.sugestao-item:hover {
    background: #333;
}

.sugestao-sub {
    font-size: clamp(0.56em, 3.2vw, 0.8em);
    color: #999;
    margin-left: 5px;
    font-style: italic;
}

.hora-container {
    display: flex;
    gap: 10px;
}

.hora-item {
    flex: 1;
}

.financeiro-box {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
}

.financeiro-titulo {
    color: var(--primary);
    font-size: clamp(0.63em, 3.6vw, 0.9em);
    text-transform: uppercase;
    margin-bottom: 10px;
    border-bottom: 1px solid #444;
    padding-bottom: 5px;
}

.resultado-liquido {
    margin-top: 15px;
    padding: 10px;
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid var(--success);
    border-radius: 8px;
    color: var(--success);
    font-weight: bold;
    font-size: clamp(0.77em, 4.4vw, 1.1em);
    text-align: center;
}

.btn-group {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

/* --- RELATÓRIO FINANCEIRO (Refatorado) --- */
.modal-header-dark {
    padding: 10px 20px;
    padding-top: env(safe-area-inset-top);
    /* Respeita o notch do iPhone */
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #333;
    z-index: 100;
    flex-shrink: 0;
}

.modal-header-dark h2 {
    color: #fff;
    margin: 0;
    font-size: 1.2rem;
}

.btn-close-dark {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 44px;
    /* Aumentado para melhor área de toque */
    height: 44px;
    border-radius: 50%;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.relatorio-scroll-area {
    padding-bottom: 100px;
    overflow-y: auto;
    height: 100%;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.filtros-container {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.filter-select {
    background: #333;
    color: #fff;
    border: 1px solid #555;
    padding: 10px;
    border-radius: 8px;
    font-weight: bold;
}

.meta-container {
    background: #222;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 25px;
    border: 1px solid #333;
}

.meta-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.meta-input {
    width: 80px;
    background: #111;
    border: 1px solid #444;
    color: #fff;
    padding: 5px;
    border-radius: 5px;
    text-align: right;
}

.progress-track {
    height: 12px;
    background: #444;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #FFD700, #ffaa00);
    transition: width 0.5s ease;
}

.progress-text {
    font-size: 0.8rem;
    color: #ccc;
    margin-top: 8px;
    text-align: right;
}

.chart-container {
    text-align: center;
    margin-bottom: 30px;
    display: block;
}

.chart-title {
    color: #eee;
    font-size: 1rem;
    margin-bottom: 15px;
    border-left: 3px solid var(--primary);
    display: inline-block;
    padding-left: 10px;
}

.pie-chart {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin: 0 auto 20px auto;
    position: relative;
    background: #333;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.6);
}

.pie-chart-hole {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 130px;
    height: 130px;
    background: #1a1a1a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 2;
}

.chart-legend {
    padding: 0 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.legend-item {
    display: flex;
    align-items: center;
    background: #252525;
    padding: 4px 10px;
    border-radius: 15px;
    border: 1px solid #333;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 6px;
}

/* --- SHOW CARD ELEMENTS (Refatorado) --- */
.logistica-card {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 5px 0;
    margin-bottom: 5px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.btn-gps {
    font-size: 0.68em;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 20px;
    color: #64b5f6;
    background: rgba(33, 150, 243, 0.15);
    border: 1px solid rgba(33, 150, 243, 0.3);
    cursor: pointer;
    white-space: nowrap;
}

.tag-blue {
    font-size: clamp(0.59em, 3.4vw, 0.85em);
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 22px;
    line-height: 1.1;
    color: #64b5f6;
    background: rgba(33, 150, 243, 0.1);
    border: 1px solid rgba(33, 150, 243, 0.2);
}

.obs-warning {
    color: #FFD700;
    font-weight: bold;
    border: 1px dashed #434240;
    padding: 2px;
    border-radius: 2px;
    margin-top: 2px;
    background: rgba(255, 215, 0, 0.05);
}

.logistica-row {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5px;
    margin-top: 8px;
}

.logistica-left {
    flex: 1;
    padding-left: 2px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logistica-saida-text {
    font-size: clamp(0.59em, 3.4vw, 0.85em);
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}

.gps-link-box {
    cursor: pointer;
    background: rgba(255, 215, 0, 0.15);
    border: 1px solid rgba(255, 215, 0, 0.4);
    border-radius: 6px;
    padding: 4px 8px;
    color: #FFD700;
    font-weight: bold;
    font-size: 0.75em;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.valor-membro-wrapper {
    text-align: right;
}

.valor-membro-total {
    color: #aaa;
    font-size: clamp(0.56em, 3.2vw, 0.8em);
    text-decoration: line-through;
}

.valor-membro-ja-recebeu {
    color: #FFD700;
    font-size: clamp(0.56em, 3.2vw, 0.8em);
}

.valor-membro-resta {
    color: #fff;
    font-weight: bold;
    font-size: clamp(0.77em, 4.4vw, 1.1em);
    border-top: 1px solid #444;
    margin-top: 2px;
}

.valor-membro-cache {
    color: #fff;
    font-weight: bold;
    font-size: clamp(0.77em, 4.4vw, 1.1em);
}

.valor-membro-liq {
    color: var(--success);
    font-size: clamp(0.56em, 3.2vw, 0.8em);
}

.btn-confirmado {
    color: #4caf50;
    font-weight: bold;
    font-size: 0.75em;
    border: 1px solid #4caf50;
    padding: 4px 8px;
    border-radius: 4px;
}

.btn-confirmar {
    background: #FFD700;
    color: #000;
    font-weight: bold;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75em;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
    animation: piscar 2s infinite;
}

.indicador-banda {
    color: var(--primary);
    font-size: clamp(0.63em, 3.6vw, 0.9em);
    font-weight: bold;
    border: 1px solid var(--primary);
    padding: 4px 10px;
    border-radius: 6px;
    display: inline-block;
    background: rgba(255, 152, 0, 0.1);
}

.indicador-sync {
    color: #4caf50;
    font-size: 0.7em;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-right: 15px;
    position: relative;
    top: -5px;
}

.status-topo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.admin-gps-box {
    color: #2196f3;
    font-weight: bold;
    font-size: clamp(0.56em, 3.2vw, 0.8em);
    border: 1px solid #2196f3;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
}

.bloco-cabecalho {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0;
    margin-bottom: 2px;
}

.bloco-cabecalho-titulo {
    flex: 1;
    padding-right: 5px;
}

.bloco-cabecalho-data {
    text-align: center;
    min-width: 50px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    padding: 3px 6px;
    line-height: 1;
    margin-top: -12px;
}

.bloco-gps {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0;
    margin-bottom: 5px;
}

.bloco-rodape {
    margin-top: auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    padding-top: 10px;
    margin-bottom: -8px;
}

.bloco-rodape-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

.bloco-rodape-right {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.linha-divisoria {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0) 100%);
    margin: 10px 0 8px 0;
}

.btn-save {
    flex: 2;
    background: var(--primary);
    color: #000;
    font-weight: bold;
    border: none;
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
}

.btn-cancel {
    flex: 1;
    background: transparent;
    border: 1px solid #555;
    color: #ccc;
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
}

/* Admin */
.admin-user-card {
    background: #333;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #444;
}

.admin-user-info {
    font-size: clamp(0.63em, 3.6vw, 0.9em);
}

.admin-user-role {
    color: var(--primary);
    font-size: clamp(0.56em, 3.2vw, 0.8em);
    text-transform: uppercase;
}

.btn-block {
    background: var(--danger);
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: clamp(0.56em, 3.2vw, 0.8em);
}

.btn-unblock {
    background: var(--success);
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: clamp(0.56em, 3.2vw, 0.8em);
}

.alert-box {
    border: 2px solid var(--primary);
    background: #2a1f10;
    text-align: center;
}

.alert-title {
    color: var(--primary);
    margin-top: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.alert-info {
    font-size: clamp(0.84em, 4.8vw, 1.2em);
    margin: 10px 0;
    color: white;
    text-align: left;
}

.pix-container {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pix-key-box {
    background: #fff;
    color: #000;
    padding: 15px;
    border-radius: 8px;
    font-weight: bold;
    font-size: clamp(0.77em, 4.4vw, 1.1em);
    margin: 10px 0;
    word-break: break-all;
    width: 90%;
}

.pix-img {
    width: 150px;
    height: 150px;
    margin: 10px auto;
    background: #fff;
    border-radius: 12px;
    padding: 5px;
    object-fit: contain;
}

.pix-instructions {
    color: #ccc;
    font-size: clamp(0.63em, 3.6vw, 0.9em);
    line-height: 1.5;
    margin-bottom: 20px;
    max-width: 90%;
}

.btn-zap-pagamento {
    background: var(--whatsapp);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 30px;
    font-size: clamp(0.7em, 4.0vw, 1.0em);
    font-weight: bold;
    width: 100%;
    margin-bottom: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.area-cantor {
    display: none;
}

.area-musico {
    display: none;
}

#div-resultado-musico {
    margin-top: 15px;
    padding: 10px;
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid var(--success);
    border-radius: 8px;
    color: var(--success);
    font-weight: bold;
    font-size: clamp(0.77em, 4.4vw, 1.1em);
    text-align: center;
}

.modal-gps-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 10px;
    font-size: clamp(0.77em, 4.4vw, 1.1em);
    font-weight: bold;
    cursor: pointer;
    border: none;
    color: white;
}

/* Dashboard Manager (Relatório) */
.relatorio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 15px;
}

.dash-card {
    background: #333;
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #444;
}

.dash-card h4 {
    margin: 0;
    font-size: 0.75em;
    color: #aaa;
    text-transform: uppercase;
}

.dash-card p {
    margin: 5px 0 0 0;
    font-size: clamp(0.84em, 4.8vw, 1.2em);
    font-weight: bold;
    color: white;
}

.dash-card.faturamento p {
    color: var(--success);
}

.dash-card.pendente p {
    color: var(--danger);
}

.dash-card.ticket p {
    color: var(--gold);
}

.dash-card.mensal p {
    color: var(--info) !important;
    text-shadow: 0 0 10px rgba(33, 150, 243, 0.3);
}

.dash-card:has(.dash-icon) {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: flex-start;
}

.dash-icon {
    font-size: clamp(1.4em, 8.0vw, 2.0em);
}

.dash-info h3 {
    margin: 0;
    font-size: clamp(0.56em, 3.2vw, 0.8em);
    color: #ccc;
    font-weight: normal;
}

.dash-info p {
    margin: 0;
    font-size: clamp(0.84em, 4.8vw, 1.2em);
    font-weight: bold;
}

.dash-chart-container {
    background: #333;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #444;
    margin-bottom: 15px;
}

.dash-chart-title {
    font-size: clamp(0.56em, 3.2vw, 0.8em);
    color: #aaa;
    text-transform: uppercase;
    margin-bottom: 10px;
    text-align: center;
}

.dash-chart-area {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 5px;
    height: 130px;
}

@keyframes piscar {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

/* Temas */
body.theme-blue {
    --primary: #00e5ff;
    --gold: #00e5ff;
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    background-attachment: fixed;
}

body.theme-red {
    --primary: #ff1744;
    --gold: #ff1744;
    background: linear-gradient(135deg, #2b0505, #570000, #2b0505);
    background-attachment: fixed;
}

body.theme-green {
    --primary: #00e676;
    --gold: #00e676;
    background: linear-gradient(135deg, #000000, #0f2027);
    background-attachment: fixed;
}

body.theme-purple {
    --primary: #d500f9;
    --gold: #d500f9;
    background: linear-gradient(135deg, #240b36, #c31432);
    background-attachment: fixed;
}

body.theme-gold {
    --primary: #FFD700;
    --gold: #FFD700;
    background: linear-gradient(135deg, #1c1c1c, #333, #1c1c1c);
    background-attachment: fixed;
}

body.theme-pink {
    --primary: #ff4081;
    --gold: #ff80ab;
    background: linear-gradient(135deg, #880e4f, #3a0018);
    background-attachment: fixed;
}

body.theme-soft {
    --primary: #f48fb1;
    --gold: #f8bbd0;
    background: linear-gradient(135deg, #4a2c35, #2e1c21);
    background-attachment: fixed;
    color: #ffebee;
}

.theme-grid {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 10px;
}

.theme-option-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(0.98em, 5.6vw, 1.4em);
}

.theme-option-btn:hover {
    transform: scale(1.1);
    border-color: #fff;
}

.hue-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 15px;
    border-radius: 10px;
    background: linear-gradient(to right, hsl(0, 100%, 50%), hsl(60, 100%, 50%), hsl(120, 100%, 50%), hsl(180, 100%, 50%), hsl(240, 100%, 50%), hsl(300, 100%, 50%), hsl(360, 100%, 50%));
    outline: none;
    cursor: pointer;
}

.hue-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #333;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.modal-close-x {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: #888;
    font-size: clamp(1.05em, 6.0vw, 1.5em);
    cursor: pointer;
    line-height: 1;
}

.modal-close-x:hover {
    color: var(--danger);
}

/* --- SELEÇÃO DE SINCRONIZAÇÃO (MODERNO) --- */
.sync-toggle-container {
    display: flex;
    gap: 10px;
    margin: 10px 0 15px 0;
}

.radio-card-label {
    flex: 1;
    background: #2a2a2a;
    border: 1px solid #444;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.radio-card-input {
    display: none;
}

.radio-card-input:checked+.radio-card-text {
    color: #000;
    font-weight: bold;
}

.radio-card-label:has(.radio-card-input:checked) {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(255, 152, 0, 0.4);
}

.radio-card-text {
    font-size: clamp(0.63em, 3.6vw, 0.9em);
    color: #ccc;
    font-weight: 500;
}

.lista-membros-box {
    background: rgba(0, 0, 0, 0.4);
    border: 1px dashed #555;
    border-radius: 8px;
    padding: 10px;
    max-height: 150px;
    overflow-y: auto;
}

/* --- JANELA DE GESTÃO DA EQUIPE (COMPACTO) --- */
#modal-band-manage .modal-content {
    max-width: 340px !important;
    padding: 15px !important;
    border-radius: 12px !important;
    background: #1e1e1e !important;
    border: 1px solid var(--gold);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

#modal-band-manage h2 {
    font-size: 1.2em !important;
    margin-bottom: 5px !important;
    padding-bottom: 5px !important;
}

#modal-band-manage p {
    margin-bottom: 10px !important;
    font-size: 0.8em !important;
}

#modal-band-manage .info-copy-card {
    padding: 8px 12px !important;
    margin-bottom: 6px !important;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #444;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#modal-band-manage .info-value {
    font-size: 1em !important;
    color: #fff;
    font-family: monospace;
    letter-spacing: 1px;
}

#modal-band-manage .member-row {
    padding: 6px !important;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    gap: 10px;
}

.info-label {
    font-size: 0.75em;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 4px;
    display: block;
}

.btn-copy-icon {
    background: transparent;
    border: 1px solid #555;
    color: #aaa;
    border-radius: 6px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: clamp(0.84em, 4.8vw, 1.2em);
}

.btn-copy-icon:active {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
    transform: scale(0.95);
}

.member-list-styled {
    max-height: 200px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 1px solid #333;
    padding: 5px;
}

.member-icon {
    width: 30px;
    height: 30px;
    background: #333;
    color: #888;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(0.7em, 4.0vw, 1.0em);
}

.member-name-text {
    font-size: clamp(0.63em, 3.6vw, 0.9em);
    color: #ddd;
    flex: 1;
}

.member-you-tag {
    font-size: 0.65em;
    background: var(--primary);
    color: #000;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
}

.member-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 12px;
    margin-bottom: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.member-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-kick {
    background: rgba(255, 0, 0, 0.2);
    color: #ff4444;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: clamp(0.56em, 3.2vw, 0.8em);
    cursor: pointer;
}

/* --- MODO FANTASMA (VISUAL LIMPO) --- */
#modal-temas.ghost-active {
    background-color: transparent !important;
    backdrop-filter: none !important;
}

#modal-temas.ghost-active .modal-content {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

#modal-temas.ghost-active .modal-content>* {
    opacity: 0 !important;
    transition: opacity 0.2s ease;
}

#modal-temas.ghost-active .modal-content .slider-container,
#modal-temas.ghost-active .modal-content input[type="range"] {
    opacity: 1 !important;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.8));
}

/* --- OTIMIZAÇÃO DE SCROLL (Last Version) --- */
.lista-scroll,
.scrollable-area {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    overflow-y: auto;
    overflow-x: hidden;
}

.modal-content::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
    background: transparent;
}

.modal-content,
body {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* --- PAINEL ADMIN OTIMIZADO --- */
#modal-admin .modal-content {
    overflow-x: hidden;
    padding: 15px;
    background: #181818;
}

.admin-user-card {
    display: flex;
    flex-direction: column;
    background: #252525;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 12px;
    border: 1px solid #333;
    gap: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.admin-user-info {
    width: 100%;
}

.admin-user-info div {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-actions-row {
    display: flex;
    gap: 10px;
    width: 100%;
    margin-top: 5px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 10px;
}

.btn-admin-action {
    flex: 1;
    padding: 10px;
    border-radius: 6px;
    border: none;
    font-weight: bold;
    font-size: clamp(0.59em, 3.4vw, 0.85em);
    cursor: pointer;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.admin-stats-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
    background: rgba(0, 0, 0, 0.2);
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #333;
}

.admin-stat-box {
    text-align: center;
}

.admin-stat-val {
    font-size: clamp(0.84em, 4.8vw, 1.2em);
    font-weight: bold;
    color: #fff;
    display: block;
}

.admin-stat-label {
    font-size: 0.7em;
    color: #aaa;
    text-transform: uppercase;
}

.admin-section-title {
    color: var(--primary);
    font-size: clamp(0.59em, 3.4vw, 0.85em);
    text-transform: uppercase;
    margin: 20px 0 10px 0;
    border-bottom: 1px solid #333;
    padding-bottom: 5px;
    font-weight: bold;
}

/* --- MODAL DE BUSCA (LAYOUT REVOLUCIONÁRIO) --- */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.search-backdrop {
    flex: 1;
    width: 100%;
}

.search-interface {
    width: 100%;
    background: transparent;
    display: flex;
    flex-direction: column;
}

.search-input-bar {
    background: var(--card-bg);
    padding: 15px;
    padding-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-top: 1px solid var(--primary);
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.5);
}

.search-input-bar input {
    flex: 1;
    background: #000;
    border: 1px solid #444;
    color: white;
    padding: 12px;
    border-radius: 25px;
    font-size: clamp(0.7em, 4.0vw, 1.0em);
    outline: none;
    caret-color: transparent !important;
    line-height: normal !important;
    text-align: left !important;
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

.search-input-bar input:focus {
    border-color: var(--primary);
}

.search-results-area {
    max-height: 60vh;
    overflow-y: auto;
    padding: 10px;
    padding-bottom: 0;
    display: flex;
    flex-direction: column-reverse;
}

.search-results-area .show-card {
    transform: scale(0.95);
    margin-bottom: 10px;
    border: 1px solid #444;
}

/* --- BOTÕES FLUTUANTES (PADRÃO FINAL) --- */
.btn-flutuante-padrao {
    position: fixed;
    bottom: 25px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 900;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    will-change: transform, opacity;
    transform: translateZ(0);
    transition: all 0.3s ease;
    background: var(--primary);
    color: #000;
}

#btn-home-esquerda {
    left: 25px;
}

#btn-add-show-fab {
    right: 25px;
    font-size: 32px;
    padding-bottom: 4px;
}

#btn-home-esquerda.invisivel {
    opacity: 0;
    transform: translateX(-50px) scale(0.8);
    pointer-events: none;
}

#btn-home-esquerda.visivel {
    opacity: 1;
    transform: translateX(0) scale(1);
    pointer-events: auto;
}

/* --- MODERNIZAÇÃO DO MODAL NOVO SHOW (ALINHADO) --- */
#titulo-modal {
    text-align: center !important;
    font-size: 1.6em !important;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
}

.modern-input {
    width: 100%;
    box-sizing: border-box !important;
    padding: 12px 15px !important;
    background: #2a2a2a !important;
    border: 1px solid #444 !important;
    border-radius: 10px !important;
    color: #fff !important;
    font-size: 0.95rem !important;
    margin-top: 5px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    appearance: none;
}

input[type="date"].modern-input,
input[type="time"].modern-input,
select.modern-input {
    min-height: 48px;
    padding-top: 11px !important;
    padding-bottom: 11px !important;
}

.modern-input:focus {
    border-color: var(--primary) !important;
    background: #333 !important;
    transform: translateY(-2px);
}

.modal-content label {
    font-size: 0.8em !important;
    color: #aaa !important;
    font-weight: 700;
    margin-left: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.row-dupla {
    display: flex;
    gap: clamp(4px, 1.5vw, 12px);
    width: 100%;
    align-items: flex-start;
}

.col-metade {
    width: 50%;
    flex: 1;
}

/* --- CALENDÁRIO OTIMIZADO --- */
#modal-calendar {
    align-items: flex-start;
    padding-top: 80px;
}

.calendar-wrapper {
    width: 90%;
    max-width: 360px;
    background: #1e1e1e;
    border-radius: 16px;
    padding: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    border: 1px solid #333;
    margin: 0 auto;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.calendar-title {
    color: #fff;
    font-size: clamp(0.77em, 4.4vw, 1.1em);
    font-weight: bold;
    text-transform: capitalize;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    text-align: center;
}

.weekday-name {
    color: #666;
    font-size: 0.7em;
    font-weight: bold;
    margin-bottom: 5px;
}

.calendar-day {
    height: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #2a2a2a;
    color: #fff;
    font-size: clamp(0.59em, 3.4vw, 0.85em);
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
}

.calendar-day.today {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(255, 152, 0, 0.1);
}

.calendar-day:active {
    transform: scale(0.95);
}

.calendar-day.empty {
    background: transparent;
    cursor: default;
}

.dots-container {
    display: flex;
    gap: 2px;
    margin-top: 2px;
}

.dot-busy {
    width: 4px;
    height: 4px;
    background-color: #ff5252;
    border-radius: 50%;
}

#calendar-details-overlay {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #181818;
    border-top: 1px solid #444;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 10000;
    box-shadow: 0 -5px 50px rgba(0, 0, 0, 0.8);
    box-sizing: border-box;
}

#calendar-details-overlay.active {
    transform: translateY(0);
}

/* --- FLYER --- */
.flyer-list-container {
    max-height: 250px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #444;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 15px;
}

.flyer-check-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.flyer-check-item:last-child {
    border-bottom: none;
}

.flyer-check-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
}

.file-upload-label {
    display: block;
    background: #333;
    color: white;
    padding: 10px;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    border: 1px dashed #666;
    margin-top: 5px;
    margin-bottom: 15px;
}

.active-bg-option {
    border: 2px solid var(--primary) !important;
    color: var(--primary) !important;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

.color-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #555;
    display: inline-block;
    margin-right: 10px;
    cursor: pointer;
    transition: transform 0.2s;
}

.color-btn:active {
    transform: scale(1.1);
    border-color: #fff;
}

/* --- RÉGUA DE INSTRUMENTOS (Scroll Horizontal / Stories) --- */
#lista-instrumentos {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    /* Permite rolar para o lado */
    white-space: nowrap;
    /* Impede que caia para a linha de baixo */
    padding: 5px 0 15px 0;
    /* Espaço para o dedo não bater errado */
    width: 100%;

    /* Esconde a barra de rolagem visualmente, mas mantém a função */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
}

#lista-instrumentos::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari/Android */
}

/* Estilo do Botão na Régua */
.btn-inst {
    /* Mantém o estilo que já existia, mas garante que não amasse */
    flex-shrink: 0;
    background: #333;
    color: #ccc;
    border: 1px solid #555;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: clamp(0.63em, 3.6vw, 0.9em);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-inst:active {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
    transform: scale(0.95);
}

#canvas-flyer {
    display: block;
    width: 100%;
    height: auto;
}

/* ======================================================
   REMOÇÃO DEFINITIVA DE SCROLLBARS (CORREÇÃO TOTAL)
   ====================================================== */

/* 1. Garante que HTML e BODY escondam a barra nativa (Firefox/IE/Edge) */
html,
body {
    scrollbar-width: none !important;
    /* Firefox */
    -ms-overflow-style: none !important;
    /* IE e Edge antigos */
}

/* 2. Remove a barra visualmente em TODOS os elementos (Chrome/Safari/Webkit) */
*::-webkit-scrollbar,
*::-webkit-scrollbar-track,
*::-webkit-scrollbar-thumb {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

/* =========================================
   NOVO: COMPLEMENTOS DO PAINEL ADMIN (ABAS & PRAZOS)
   ========================================= */

/* Barra de Navegação das Abas */
.admin-tabs-bar {
    display: flex;
    overflow-x: auto;

    /* MUDANÇA 1: Diminuí o espaço entre os botões de 10px para 5px */
    gap: 5px;

    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 1px solid #333;
    -webkit-overflow-scrolling: touch;

    /* Esconde barra de rolagem visualmente mas mantém a função */
    scrollbar-width: none;
}

.admin-tabs-bar::-webkit-scrollbar {
    display: none;
}

/* Botão da Aba (VERSÃO COMPACTA) */
.admin-tab-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #444;
    color: #888;

    /* MUDANÇA 2: Reduzi o padding drasticamente */
    padding: 6px 10px;
    /* Era 8px 16px */

    border-radius: 15px;
    /* Bordas um pouco mais justas */

    /* MUDANÇA 3: Fonte menor para caber texto longo */
    font-size: 0.7em;
    /* Era 0.85em */

    font-weight: 800;
    /* Mais negrito para compensar o tamanho */
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    /* Garante que o botão não amasse */
}

/* Estado Ativo da Aba (Selecionada) */
.admin-tab-btn.active {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
    box-shadow: 0 0 8px rgba(255, 152, 0, 0.3);
}

/* Cores específicas para abas de alerta */
.admin-tab-btn.tab-alert.active {
    background: var(--danger);
    border-color: var(--danger);
    color: #fff;
}

.admin-tab-btn.tab-gold.active {
    background: var(--gold);
    border-color: var(--gold);
}

/* Conteúdo das Abas */
.admin-tab-content {
    display: none;
    animation: fadeIn 0.3s ease-out;
}

.admin-tab-content.active {
    display: block;
}

/* Etiqueta: Dias Restantes */
.badge-days-left {
    display: inline-block;
    font-size: 0.7em;
    /* Levemente menor */
    padding: 1px 6px;
    border-radius: 4px;
    margin-left: 6px;
    font-weight: bold;
    border: 1px solid #444;
    vertical-align: middle;
}

.badge-danger {
    color: #ff5252;
    border-color: #ff5252;
    background: rgba(255, 82, 82, 0.1);
}

.badge-warning {
    color: #FFD700;
    border-color: #FFD700;
    background: rgba(255, 215, 0, 0.1);
}

.badge-ok {
    color: #4caf50;
    border-color: #4caf50;
    background: rgba(76, 175, 80, 0.1);
}


/* --- ESTICAR CARTÕES (CORREÇÃO FINAL DE ALINHAMENTO) --- */
.lista-shows {
    /* Removemos o padding extra que empurrava o conteúdo */
    padding-left: 0px !important;
    padding-right: 0px !important;
    width: 100%;
}

.show-card {
    width: 100% !important;
    /* Zeramos as margens laterais para o cartão não sair da tela */
    margin-left: 0px !important;
    margin-right: 0px !important;

    box-sizing: border-box;
    border-radius: 25px;
}

/* Ajuste fino para a lista dentro do Mês (Details) */
.mes-group-content {
    padding: 20 !important;
}

/* 3. CORES DOS STATUS (AGORA FIXAS - NÃO SEGUEM O TEMA) */

/* ✅ PAGO (Verde Fixo) */
.show-card.border-confirmado {
    border-left-color: #4caf50 !important;
    /* Verde */
    box-shadow: 0 5px 15px -5px rgba(76, 175, 80, 0.2) !important;
}

/* 🔴 PENDENTE/ATRASADO (Vermelho Fixo) */
.show-card.border-nao-pago {
    border-left-color: #ff5252 !important;
    /* Vermelho */
    box-shadow: 0 5px 15px -5px rgba(255, 82, 82, 0.2) !important;
}

/* ⏳ FUTURO / A RECEBER (Dourado Fixo - CORRIGIDO) */
/* Antes estava var(--primary), por isso mudava com o tema. Agora é fixo. */
.show-card.border-futuro {
    border-left-color: #FFD700 !important;
    /* Dourado/Amarelo */
    box-shadow: 0 5px 15px -5px rgba(255, 215, 0, 0.15) !important;
}

/* --- BLINDAGEM DE ALTURA (IMPEDE O PULO) --- */
.lista-shows {
    width: 100% !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Define uma altura mínima para a tela não "encolher" enquanto carrega */
    min-height: 60vh;
    transition: opacity 0.2s ease;
    /* Suaviza a entrada */
}


/* --- RELATÓRIO FINANCEIRO 2.0 (FULL SCREEN & INTELIGENTE) --- */

/* Transforma o modal em Tela Cheia */
#modal-relatorio {
    display: none;
    /* Mantém oculto por padrão */
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    background: rgba(0, 0, 0, 0.9);
}

#modal-relatorio .action-sheet-content {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
    background: #121212 !important;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* O scroll agora é controlado pela relatorio-scroll-area */
}

/* Área de Rolagem do Relatório */
.relatorio-scroll-area {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    padding-bottom: 100px;
}

/* Gráfico de Pizza (CSS Puro - Otimizado para Mobile) */
.pie-chart-container {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    margin: 20px auto;
    position: relative;
    background: #333;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.pie-chart-hole {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    background: #121212;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 2;
}

/* Legenda do Gráfico */
.chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    color: #ccc;
    background: rgba(255, 255, 255, 0.05);
    padding: 5px 10px;
    border-radius: 15px;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 6px;
}

/* Barra de Meta (Gamificação) */
.meta-container {
    background: rgba(30, 30, 30, 0.8);
    border: 1px solid #333;
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 25px;
    text-align: center;
}

.meta-input-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.meta-input {
    background: transparent;
    border: none;
    border-bottom: 1px solid #555;
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: bold;
    width: 100px;
    text-align: center;
}

.progress-track {
    width: 100%;
    height: 12px;
    background: #333;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #ffc107);
    width: 0%;
    transition: width 1s ease-in-out;
    border-radius: 10px;
}


/* --- ESTILO DOS ORÇAMENTOS --- */
.orcamento-card {
    background: #1a1a1a;
    border-left: 4px solid var(--gold);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    position: relative;
}

.orcamento-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.orcamento-cliente {
    font-size: clamp(0.77em, 4.4vw, 1.1em);
    font-weight: bold;
    color: #fff;
}

.orcamento-data {
    font-size: clamp(0.59em, 3.4vw, 0.85em);
    color: var(--gold);
    background: rgba(255, 215, 0, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

.opcao-badge {
    display: flex;
    justify-content: space-between;
    background: #252525;
    padding: 8px;
    border-radius: 5px;
    margin-top: 5px;
    font-size: clamp(0.63em, 3.6vw, 0.9em);
    color: #ccc;
}

/* Linha de Formato no Cadastro */
.formato-row {
    display: grid;
    grid-template-columns: 2fr 1.5fr 30px;
    /* Nome - Valor - Lixeira */
    gap: 10px;
    align-items: center;
    animation: fadeIn 0.3s;
}

.btn-remove-formato {
    background: rgba(255, 82, 82, 0.2);
    color: var(--danger);
    border: none;
    height: 40px;
    border-radius: 5px;
    font-weight: bold;
}


/* ======================================================
   MELHORIA DE SEGURANÇA - BOTÕES DO ORÇAMENTO
   ====================================================== */

/* 1. Área dos botões dentro do Card de Orçamento */
.orcamento-card .btn-group,
.orcamento-card div[style*="display: flex"] {
    display: flex !important;
    flex-direction: column !important;
    /* Obriga a ficar um embaixo do outro */
    gap: 10px !important;
    /* Espaço de segurança entre eles */
    margin-top: 15px !important;
}

/* 2. Botões de Ação Secundária (Editar/Excluir) - Mais discretos */
/* Nota: O sistema vai tentar pegar botões que não sejam o de salvar/aprovar */
.orcamento-card button:not(.btn-save):not(.btn-success) {
    padding: 8px !important;
    font-size: 0.9em !important;
    opacity: 0.8;
    /* Levemente transparente para destacar menos */
}

/* 3. Botão de "Cliente Aprovou" (Ação Crítica) */
/* Cria uma margem extra no topo para evitar clique acidental */
.orcamento-card button[onclick*="Aprovado"],
.orcamento-card button:contains("Aprovou") {
    margin-top: 15px !important;
    font-weight: bold !important;
    border: 2px solid var(--success) !important;
}

/* =========================================
   CORREÇÃO ESPECÍFICA: JANELA DE ORÇAMENTO
   ========================================= */

/* 1. O Container do Modal (Fundo escuro) */
#modal-novo-orcamento,
#modal-lista-orcamentos {
    display: none;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
}

/* 2. O Cartão (Conteúdo interno) - Padronizado para Tela Cheia */
#modal-novo-orcamento .action-sheet-content,
#modal-lista-orcamentos .action-sheet-content {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
    background: #121212 !important;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* 3. A Lista de Orçamentos rola SOZINHA no meio */
#lista-orcamentos-container {
    flex: 1 !important;
    overflow-y: auto !important;
    /* Habilita o scroll SÓ AQUI dentro */
    padding: 10px 20px 20px 20px;
    -webkit-overflow-scrolling: touch;
    /* Rolagem macia no iPhone */
}

/* 4. Rodapé (Botão Criar) fixo no chão */
#modal-lista-orcamentos .modal-content>div:last-child {
    flex-shrink: 0;
    padding: 15px 20px 20px 20px;
    background: var(--card-bg);
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
}


/* --- ESTILO DO ESTÚDIO DE FLYER (VERSÃO FINAL REFINADA) --- */

/* 1. Abas do Topo (Ultra Compactas) */
.studio-tabs {
    display: flex;
    background: #000;
    height: 32px;
    /* Bem fininho para ganhar tela */
    border-bottom: 1px solid #222;
}

.studio-tabs .tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: #555;
    padding: 0;
    font-size: 0.7em;
    /* Letra pequena */
    font-weight: bold;
    text-transform: uppercase;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: 0.3s;
}

.studio-tabs .tab-btn.active {
    color: var(--gold);
    border-bottom: 2px solid var(--gold);
    background: rgba(255, 215, 0, 0.05);
}

/* 2. Área de Controles (Design Moderno Arredondado) */
#studio-controls-area {
    padding: 15px 20px 20px 20px !important;
    background: #181818 !important;
    border-radius: 25px 25px 0 0;
    /* Arredonda o topo do painel */
    border-top: 1px solid #333;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.5);
    /* Sombra para destacar da imagem */
    margin-top: -15px;
    /* Sobe um pouco pra cima da imagem */
    position: relative;
    z-index: 10;
}

/* 3. Sliders Confortáveis (Aumentados para o dedo) */
.slider-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px !important;
}

.slider-row span {
    font-size: clamp(0.77em, 4.4vw, 1.1em);
    width: 25px;
    text-align: center;
    opacity: 0.8;
}

.slider-row input[type=range] {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    cursor: pointer;
    height: 25px;
    /* Área de toque maior */
}

.slider-row input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    background: #333;
    border-radius: 3px;
}

/* A Bolinha (Thumb) ficou maior */
.slider-row input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    height: 22px;
    /* Mais fácil de pegar */
    width: 22px;
    border-radius: 50%;
    background: var(--gold);
    margin-top: -8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
    border: 2px solid #181818;
    /* Borda para destacar */
}

/* 4. Feedback Visual (Botões Ativos) */
.btn-tool.filter-active {
    background: rgba(255, 215, 0, 0.15) !important;
    border: 1px solid var(--gold) !important;
    color: var(--gold) !important;
}

.file-upload-label.upload-success {
    border-color: #4caf50 !important;
    color: #4caf50 !important;
    background: rgba(76, 175, 80, 0.1);
}

/* ======================================================
   BLOCO 3: ESTILOS DO PARCELAMENTO (FINAL)
   ====================================================== */

/* O Switch (Botão de ligar/desligar) */
.switch-parcela {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
}

.switch-parcela input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider-parcela {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #333;
    transition: .4s;
    border-radius: 34px;
    border: 1px solid #555;
}

.slider-parcela:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider-parcela {
    background-color: var(--gold);
    border-color: var(--gold);
}

input:checked+.slider-parcela:before {
    transform: translateX(22px);
    background-color: #000;
}

/* A linha onde fica a Data e o Valor (Visual Bonito) */
.linha-parcela-item {
    display: flex;
    gap: 10px;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    /* Fundo levemente claro */
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #333;
    margin-bottom: 5px;
    /* Espacinho entre elas */
}

/* Inputs dentro da linha (transparentes para integrar) */
.linha-parcela-item input {
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid #555 !important;
    padding: 5px !important;
    margin: 0 !important;
    font-size: 0.9em !important;
    height: auto !important;
    color: #fff !important;
}

/* Botão de Check (Visto) na janela de gestão */
.check-parcela-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #555;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    transition: all 0.2s;
    font-size: clamp(0.84em, 4.8vw, 1.2em);
}

/* Estado Pago (Verde) */
.check-parcela-btn.paga {
    background: rgba(76, 175, 80, 0.2);
    border-color: #4caf50;
    color: #fff;
    /* Mostra o check */
}

/* Animação do clique */
.check-parcela-btn:active {
    transform: scale(0.9);
}

/* Esconde barra de rolagem da lista */
#lista-check-parcelas::-webkit-scrollbar {
    display: none;
}


/* --- GAVETA DE PENDÊNCIAS UNIFICADA --- */
#gaveta-cobranca {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    margin: 6px -9px 0px -9px !important;
    padding: 0 !important;
}

/* O GATILHO (A barra clicável padrão) */
#gatilho-cobranca {
    background: linear-gradient(180deg, #252525 0%, #151515 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-bottom: 1px solid #ff5252 !important;
    padding: 4px 10px !important;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.8);
    position: relative;
    z-index: 1001;
}

/* CONTEÚDO DA GAVETA */
#conteudo-cobranca-expansivel {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid #333;
    border-top: none;
    border-radius: 0 0 12px 12px;
    padding: 10px;
    margin-top: -5px;
    /* Cola no gatilho */
}

/* 1. ESTILO DO CARROSSEL (PARA PARCELAS) */
#lista-pendencias-financeiras {
    display: flex !important;
    flex-direction: row !important;
    gap: 12px;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory;
    padding: 5px 0 15px 0;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

#lista-pendencias-financeiras::-webkit-scrollbar {
    display: none;
}

/* 2. NOVO ESTILO: CARROSSEL PARA SHOWS ATRASADOS (MUDANÇA AQUI) */
#lista-shows-atrasados-central {
    display: flex !important;
    flex-direction: row !important;
    /* MUDADO DE COLUMN PARA ROW */
    gap: 12px;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory;
    padding: 5px 0 15px 0;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

#lista-shows-atrasados-central::-webkit-scrollbar {
    display: none;
}

/* CARD DE PARCELA (CARROSSEL) */
.parcela-pendente-card {
    min-width: 82% !important;
    /* DILUÍDO DE 85% PARA 82% (MOSTRA MAIS DO PRÓXIMO) */
    max-width: 82% !important;
    /* TRAVA O TAMANHO MÁXIMO */
    flex-shrink: 0 !important;
    /* IMPEDE O ENCOLHIMENTO QUE CAUSA O BUG */
    scroll-snap-align: center;
    background: linear-gradient(180deg, #1f1f1f 0%, #0d0d0d 100%) !important;
    /* DILUÍDO O FUNDO */
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    /* DILUÍDO A BORDA */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
    border-radius: 12px;
    padding: 18px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    margin-right: 5px;
}

/* AJUSTE DOS CARDS DE SHOWS NO CARROSSEL (MUDANÇA AQUI) */
#lista-shows-atrasados-central .show-card {
    margin: 0 5px 0 0 !important;
    min-width: 82% !important;
    /* DILUÍDO DE 85% PARA 82% (IDENTIFICA A ROLAGEM) */
    max-width: 82% !important;
    /* TRAVA O TAMANHO MÁXIMO */
    flex-shrink: 0 !important;
    /* IMPEDE O ENCOLHIMENTO QUE CAUSA O BUG */
    scroll-snap-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    /* DILUÍDO A BORDA */
}



/* --- LOGO FLUTUANTE (SEM FUNDO PRETO) --- */
.login-logo-animada {
    width: 120px;
    /* Tamanho ajustável */
    height: auto;
    margin-top: 15px;
    /* Espaço para desgrudar do texto de cima */

    /* Animação */
    animation: flutuarLogo 3s ease-in-out infinite;
}

/* A Mágica da Flutuação */
@keyframes flutuarLogo {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-12px);
    }

    /* Sobe um pouquinho */
    100% {
        transform: translateY(0px);
    }
}



/* ======================================================
   7. CSS ESPECÍFICO DA NOTIFICAÇÃO (CENTRALIZADO)
   ====================================================== */

/* O Fundo Escuro (Centralizador) */
.modal-centralizado {
    display: none;
    /* Controlado pelo JS */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    /* Fundo bem escuro */
    z-index: 10000;
    /* Acima de tudo */

    /* A Mágica do Centro */
    display: flex;
    align-items: center;
    /* Centro Vertical */
    justify-content: center;
    /* Centro Horizontal */

    backdrop-filter: blur(5px);
    /* Efeito de vidro */
}

/* A Caixa da Notificação */
.notification-box {
    background: #1e1e1e !important;
    border: 2px solid #FFD700 !important;
    border-radius: 20px !important;
    width: 85% !important;
    max-width: 320px !important;
    text-align: center !important;
    padding: 30px 25px !important;
    margin: 0 !important;
    /* Remove margens que empurram pra baixo */

    box-shadow: 0 0 50px rgba(255, 215, 0, 0.2) !important;
    animation: zoomInElastic 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Animação de Pulo (Chamativa) */
@keyframes zoomInElastic {
    from {
        transform: scale(0.5);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* --- PADRONIZAÇÃO PAINEL ADMIN --- */
#modal-admin {
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    background: rgba(0, 0, 0, 0.9);
}

#modal-admin .action-sheet-content {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: 100vh !important;
    border-radius: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    background: #121212;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    overflow: hidden !important;
    /* Trava o scroll externo para evitar stuttering */
}

#modal-admin .relatorio-scroll-area {
    flex: 1;
    overflow-y: auto !important;
    padding: 10px 20px;
    -webkit-overflow-scrolling: touch;
}

/* --- TEMPLATES & GENERIC COMPONENTS --- */
.generic-msg-container {
    text-align: center;
    padding: 20px;
}

.generic-msg-text {
    color: #888;
    font-size: clamp(0.7em, 4.0vw, 1.0em);
}

.orc-card {
    background: #1e1e1e;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 12px;
    border-left: 4px solid var(--primary);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.orc-artist-name {
    font-weight: bold;
    color: #fff;
    font-size: clamp(0.77em, 4.4vw, 1.1em);
    margin-bottom: 4px;
}

.orc-status-badge {
    font-size: 0.75em;
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: bold;
}

.orc-total-value {
    color: var(--gold);
    font-weight: bold;
    font-size: clamp(0.77em, 4.4vw, 1.1em);
}

.orc-details {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #333;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    font-size: clamp(0.59em, 3.4vw, 0.85em);
    color: #ccc;
}

.orc-actions {
    margin-top: 12px;
    display: flex;
    gap: 8px;
}

.cal-show-item {
    margin-bottom: 12px;
    padding: 12px;
    background: #222;
    border-radius: 0 8px 8px 0;
    border-left: 4px solid #444;
}

.show-title {
    color: var(--primary);
    font-weight: bold;
    font-size: clamp(0.77em, 4.4vw, 1.1em);
    text-transform: uppercase;
}

.show-location {
    color: #eee;
    font-weight: 500;
    margin-top: 2px;
}

.show-footer {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #444;
    font-size: clamp(0.59em, 3.4vw, 0.85em);
    color: #ccc;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-orc-action {
    flex: 1;
    padding: 8px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-orc-action:hover {
    background: #444;
}

.btn-orc-action-danger {
    padding: 8px;
    background: rgba(244, 67, 54, 0.1);
    color: #f44336;
    border: 1px solid #f44336;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
}

/* ======================================================
   5. UI MODERNIZATION - MODAL GESTÃO PARCELAS
   ====================================================== */
.modal-overlay-custom {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s;
}

.modal-box-modern {
    background: #222;
    border: 1px solid var(--gold);
    padding: 20px;
    border-radius: 15px;
    width: 85%;
    max-width: 350px;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.modal-header-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #444;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.modal-title-modern {
    color: var(--gold);
    margin: 0;
    font-size: clamp(0.77em, 4.4vw, 1.1em);
    text-transform: uppercase;
    font-weight: bold;
}

.btn-close-modern {
    background: none;
    border: none;
    color: #fff;
    font-size: clamp(1.05em, 6.0vw, 1.5em);
    cursor: pointer;
    line-height: 1;
    padding: 0 5px;
}

.modal-subtitle-modern {
    color: #fff;
    font-size: clamp(0.7em, 4.0vw, 1.0em);
    text-align: center;
    margin-bottom: 5px;
    font-weight: bold;
}

.modal-instruction-modern {
    color: #888;
    font-size: clamp(0.56em, 3.2vw, 0.8em);
    text-align: center;
    margin-bottom: 20px;
}

/* Resumo Financeiro Moderno */
.financial-summary-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #151515;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px dashed #333;
}

.summary-block {
    text-align: center;
    flex: 1;
}

.summary-label {
    display: block;
    font-size: 0.75em;
    color: #aaa;
    margin-bottom: 4px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.summary-divider {
    height: 30px;
    border-left: 1px solid #333;
    margin: 0 10px;
}

.val-paid {
    color: var(--success);
    font-weight: bold;
    font-size: clamp(0.77em, 4.4vw, 1.1em);
}

.val-remaining {
    color: var(--danger);
    font-weight: bold;
    font-size: clamp(0.77em, 4.4vw, 1.1em);
}

.installment-list-container {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;
    padding-right: 5px;
}

.btn-close-bottom {
    width: 100%;
    padding: 12px;
    background: #333;
    border: 1px solid #555;
    color: #fff;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
    font-size: clamp(0.7em, 4.0vw, 1.0em);
}

.btn-close-bottom:hover {
    background: #444;
}