/* ===================================================
   VARIÁVEIS
   =================================================== */
:root {
    --bg-dark: #0a0a0c;
    --bg-card: rgba(18, 18, 22, 0.9);
    --gold: #e5a93c;
    --gold-light: #f0c46a;
    --gold-glow: rgba(229, 169, 60, 0.35);
    --text-main: #e8e8ec;
    --text-muted: #9a9aa5;
    --danger: #ff4d4d;
    --success: #2ec4b6;
    --sidebar-bg: #111114;
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(229, 169, 60, 0.4);
    --radius: 12px;
}

/* ===================================================
   RESET & BASE
   =================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    min-height: 100vh;
    font-size: 15px;
    line-height: 1.5;
}

.hidden { display: none !important; }

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===================================================
   PALCO - MOVING LIGHTS
   =================================================== */
.stage-container {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: radial-gradient(ellipse at bottom, #120a1e 0%, #050508 75%);
    overflow: hidden;
}

.stage-floor {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 15vh;
    background: linear-gradient(0deg, rgba(229,169,60,0.1) 0%, transparent 100%);
    border-top: 1px solid rgba(229,169,60,0.2);
}

.spotlight {
    position: absolute;
    bottom: 0;
    width: 120px;
    height: 100vh;
    background: linear-gradient(180deg, transparent 0%, var(--gold-glow) 60%, rgba(255,255,255,0.5) 100%);
    clip-path: polygon(40% 0%, 60% 0%, 100% 100%, 0% 100%);
    opacity: 0.3;
    filter: blur(8px);
    transform-origin: bottom center;
    animation: sweep 6s infinite ease-in-out alternate;
}

.spotlight-1 { left: 15%; animation-delay: 0s; }
.spotlight-2 { left: 35%; animation-delay: 1.5s; }
.spotlight-3 { left: 60%; animation-delay: 0.7s; }
.spotlight-4 { left: 80%; animation-delay: 2.2s; }

@keyframes sweep {
    0% { transform: rotate(-25deg) scaleX(0.8); }
    100% { transform: rotate(25deg) scaleX(1.2); }
}

/* ===================================================
   GLASSMORPHISM
   =================================================== */
.glass-morphism {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* ===================================================
   LOGIN - SPLIT LAYOUT
   =================================================== */
.login-overlay {
    display: flex;
    min-height: 100vh;
    align-items: stretch;
}

.login-left {
    flex: 1.4;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-left::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(5,5,8,0.3) 0%, rgba(5,5,8,0.7) 60%, rgba(5,5,8,0.95) 100%);
}

.login-left .band-logo-hero {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    opacity: 0.8;
}

.login-left-text {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    text-align: center;
    width: 90%;
}

.band-name {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: 10px;
    color: #fff;
    text-shadow: 0 2px 20px rgba(0,0,0,0.9), 0 0 40px rgba(255,255,255,0.1);
}

.band-name span { color: #fff; }

.band-verse {
    margin-top: 15px;
    font-size: 0.95rem;
    font-style: italic;
    color: rgba(255,255,255,0.75);
    line-height: 1.6;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 8px rgba(0,0,0,0.9);
}

.login-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: rgba(10, 10, 12, 0.4);
    backdrop-filter: blur(4px);
}

.login-card {
    width: 100%;
    max-width: 420px;
    padding: 45px 40px 35px;
    text-align: center;
}

.login-header { margin-bottom: 30px; }

.login-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(229,169,60,0.2), rgba(229,169,60,0.05));
    border: 1px solid rgba(229,169,60,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.6rem;
    color: var(--gold);
    box-shadow: 0 0 30px rgba(229,169,60,0.15);
}

.login-card h2 {
    color: var(--gold);
    letter-spacing: 3px;
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.login-subtitle { font-size: 0.85rem; color: var(--text-muted); }

/* --- INPUTS --- */
.input-group { position: relative; margin-bottom: 16px; }

.input-group i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold);
    font-size: 0.9rem;
    opacity: 0.7;
}

.input-group input,
.modal-form input,
.modal-form select,
.modal-form textarea {
    width: 100%;
    padding: 14px 16px 14px 46px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: #fff;
    outline: none;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.modal-form input,
.modal-form select,
.modal-form textarea {
    padding: 12px 14px;
}

.input-group input::placeholder,
.modal-form input::placeholder,
.modal-form textarea::placeholder {
    color: rgba(255,255,255,0.35);
}

.input-group input:focus,
.modal-form input:focus,
.modal-form select:focus,
.modal-form textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(229,169,60,0.12);
}

.modal-form select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23e5a93c' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}

.modal-form select option { background: #1a1a1e; color: #fff; }

/* --- BOTÃO PRINCIPAL --- */
.btn-stage {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #e5a93c 0%, #c98a20 50%, #b87b14 100%);
    border: none;
    border-radius: 10px;
    color: #000;
    font-weight: 700;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 8px;
    position: relative;
    overflow: hidden;
}

.btn-stage::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.btn-stage:hover {
    box-shadow: 0 0 25px rgba(229,169,60,0.5);
    transform: translateY(-2px);
}

.btn-stage:hover::before { left: 100%; }

.error-msg { color: var(--danger); font-size: 0.85rem; margin-top: 15px; min-height: 20px; }

.login-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.75rem;
}

.login-footer i { color: var(--success); font-size: 0.7rem; }

.login-privacy { font-size: 0.78rem; color: var(--text-muted); margin-top: 14px; }

.termo-text p { font-size: 0.9rem; color: var(--text-main); margin-bottom: 12px; line-height: 1.6; }
.termo-text strong { color: var(--gold); }

/* ===================================================
   SIDEBAR
   =================================================== */
.app-container { display: flex; min-height: 100vh; }

.sidebar {
    width: 260px;
    min-height: 100vh;
    padding: 0;
    display: flex;
    flex-direction: column;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border);
    position: sticky;
    top: 0;
    height: 100vh;
}

.sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid var(--border);
}

.sidebar-brand {
    font-size: 1.25rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: 3px;
}

.sidebar-brand i { color: var(--gold); margin-right: 6px; }
.sidebar-brand span { color: var(--gold); }

.user-badge {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(229, 169, 60, 0.15);
    color: var(--gold);
    font-size: 0.72rem;
    font-weight: 600;
    border-radius: 20px;
    margin-top: 8px;
    border: 1px solid rgba(229, 169, 60, 0.25);
}

.nav-menu {
    flex: 1;
    padding: 20px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-item {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 13px 16px;
    text-align: left;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.92rem;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-item i { width: 20px; text-align: center; font-size: 0.95rem; }

.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
}

.nav-item.active {
    background: rgba(229, 169, 60, 0.12);
    color: var(--gold);
    border-left: 3px solid var(--gold);
    font-weight: 600;
}

.sidebar-footer { padding: 16px 12px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; }

.btn-install {
    width: 100%;
    padding: 12px;
    background: rgba(229,169,60,0.12);
    border: 1px solid rgba(229,169,60,0.35);
    border-radius: 8px;
    color: var(--gold);
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-install:hover { background: rgba(229,169,60,0.22); }

.btn-logout {
    width: 100%;
    padding: 12px;
    background: rgba(255, 77, 77, 0.1);
    border: 1px solid rgba(255, 77, 77, 0.2);
    border-radius: 8px;
    color: var(--danger);
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-logout:hover { background: rgba(255, 77, 77, 0.2); }

/* ===================================================
   CONTEÚDO PRINCIPAL
   =================================================== */
.main-content {
    flex: 1;
    padding: 30px 35px;
    width: 100%;
    max-width: 1400px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
    gap: 20px;
    flex-wrap: wrap;
}

.section-header h1 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
}

.section-header h1 i { color: var(--gold); margin-right: 8px; }

.section-sub { color: var(--text-muted); font-size: 0.85rem; margin-top: 4px; }

.header-actions { display: flex; gap: 10px; }

/* --- BOTÕES DE CRIAÇÃO --- */
.btn-create {
    padding: 11px 22px;
    background: linear-gradient(135deg, var(--gold), #c98a20);
    border: none;
    border-radius: 8px;
    color: #000;
    font-weight: 700;
    font-size: 0.88rem;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.25s;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.btn-create:hover {
    box-shadow: 0 0 20px rgba(229,169,60,0.4);
    transform: translateY(-1px);
}

.btn-create-sm {
    padding: 7px 14px;
    background: rgba(229, 169, 60, 0.15);
    border: 1px solid rgba(229, 169, 60, 0.3);
    border-radius: 6px;
    color: var(--gold);
    font-weight: 600;
    font-size: 0.8rem;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-create-sm:hover { background: rgba(229, 169, 60, 0.25); }

.btn-gold {
    background: rgba(229, 169, 60, 0.15);
    border: 1px solid rgba(229, 169, 60, 0.3);
    color: var(--gold);
}

.btn-gold:hover { background: rgba(229, 169, 60, 0.25); box-shadow: none; }

/* --- CARDS DE MISSÕES --- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
}

.missao-card {
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 4px solid var(--gold);
    border-radius: var(--radius);
    transition: all 0.25s;
}

.missao-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 4px 24px rgba(0,0,0,0.4);
    transform: translateY(-2px);
}

.missao-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.missao-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.missao-card p i { color: var(--gold); width: 16px; text-align: center; }

.badge-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #000;
    margin-top: 10px;
}

/* --- STATUS: cor da borda do card conforme o status --- */
.missao-card.st-EM_NEGOCIACAO { border-left-color: #f39c12; }
.missao-card.st-CONFIRMADO { border-left-color: #2ec4b6; }
.missao-card.st-ADIADO { border-left-color: #5b8def; }
.missao-card.st-CONCLUIDO { border-left-color: #27ae60; }
.missao-card.st-CANCELADO { border-left-color: #ff4d4d; }

/* --- STATUS: botões de marcação rápida no card --- */
.status-quick-group {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.status-quick {
    padding: 5px 12px;
    border: 1px solid transparent;
    border-radius: 20px;
    font-size: 0.74rem;
    font-weight: 700;
    color: #000;
    cursor: pointer;
    opacity: 0.45;
    transition: all 0.2s;
}

.status-quick:hover { opacity: 0.85; }

.status-quick.active { opacity: 1; box-shadow: 0 0 0 2px rgba(255,255,255,0.35); }

.stq-confirmado { background: #2ec4b6; }
.stq-adiado { background: #5b8def; }
.stq-concluido { background: #27ae60; }
.stq-cancelado { background: #ff4d4d; }

/* --- BUSCA DE MISSÕES --- */
.missoes-search {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 10px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.missoes-search i { color: var(--gold); }

.missoes-search input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 0.9rem;
}

.missoes-search input::placeholder { color: var(--text-muted); }

/* --- AGENDA --- */
.agenda-container { padding: 0; }

.agenda-item {
    display: flex;
    gap: 18px;
    align-items: center;
    padding: 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--gold);
    border-radius: var(--radius);
    margin-bottom: 12px;
    transition: all 0.2s;
}

.agenda-item:hover { border-color: var(--border-hover); }

.agenda-date {
    text-align: center;
    min-width: 80px;
    padding: 8px;
    background: rgba(229,169,60,0.1);
    border-radius: 8px;
}

.agenda-date .day { font-size: 2rem; font-weight: 900; color: var(--gold); line-height: 1; }
.agenda-date .month { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; font-weight: 600; }
.agenda-date .time { font-size: 0.85rem; color: var(--text-main); font-weight: 600; margin-top: 4px; }

.agenda-info { flex: 1; }
.agenda-info strong { color: #fff; font-size: 1.05rem; display: block; margin-bottom: 4px; }
.agenda-info p { color: var(--text-muted); font-size: 0.88rem; }

/* --- FINANCEIRO --- */
.finance-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 25px;
}

.summary-card {
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 16px;
}

.summary-card i { font-size: 1.5rem; width: 45px; height: 45px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }

.summary-card.in i { background: rgba(46,196,182,0.15); color: var(--success); }
.summary-card.out i { background: rgba(255,77,77,0.15); color: var(--danger); }
.summary-card.saldo i { background: rgba(229,169,60,0.15); color: var(--gold); }

.summary-label { display: block; font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
.summary-value { display: block; font-size: 1.3rem; font-weight: 800; color: #fff; }

/* --- TABELAS --- */
.table-responsive {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow-x: auto;
}

.data-table { width: 100%; border-collapse: collapse; }

.data-table th,
.data-table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.data-table th {
    color: var(--gold);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    background: rgba(255,255,255,0.02);
}

.data-table td { color: var(--text-main); }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(255,255,255,0.02); }

/* --- RIDER --- */
.rider-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.rider-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.rider-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    border-bottom: 1px solid var(--border);
}

.rider-panel-header h3 { font-size: 1.05rem; font-weight: 700; color: #fff; }
.rider-panel-header h3 i { color: var(--gold); margin-right: 8px; }

/* --- REPERTÓRIO SELECTOR --- */
.repertorio-selector {
    margin-bottom: 24px;
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.repertorio-selector label { color: var(--gold); font-weight: 700; font-size: 0.9rem; }

.repertorio-selector select {
    padding: 10px 40px 10px 14px;
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(229,169,60,0.4);
    border-radius: 8px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23e5a93c' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    cursor: pointer;
}

.repertorio-selector select option { background: #1a1a1e; }

.setlist-grid { display: flex; flex-direction: column; gap: 0; }

.setlist-hero {
    display: flex;
    align-items: center;
    gap: 18px;
}
.setlist-logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 12px;
    background: #000;
    border: 1px solid rgba(229,169,60,0.4);
    flex: none;
}
.setlist-hero-text { flex: 1; }
.setlist-count { color: var(--gold) !important; font-weight: 700; }

.setlist-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 4px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.setlist-num {
    width: 34px;
    height: 34px;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(229,169,60,0.12);
    border: 1px solid rgba(229,169,60,0.35);
    color: var(--gold);
    font-weight: 900;
    border-radius: 9px;
    font-size: 0.95rem;
}
.setlist-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.setlist-name { font-size: 1.05rem; font-weight: 700; color: #fff; }
.setlist-artist { font-size: 0.82rem; color: var(--text-muted); font-style: italic; }
.setlist-obs { font-size: 0.82rem; color: #d8c08a; }
.setlist-obs i { color: var(--gold); margin-right: 4px; }
.setlist-meta { display: flex; gap: 8px; flex: none; }
.meta-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 11px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 800;
}
.meta-tom { background: rgba(229,169,60,0.16); border: 1px solid rgba(229,169,60,0.45); color: var(--gold); }
.meta-bpm { background: rgba(46,196,182,0.12); border: 1px solid rgba(46,196,182,0.4); color: #5fe3d4; }
.setlist-actions { display: flex; gap: 8px; flex: none; }

/* Alça de arraste + reordenação */
.drag-handle {
    flex: none;
    width: 34px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    cursor: grab;
    touch-action: none;
    border-radius: 8px;
    font-size: 1rem;
}
.drag-handle:active { cursor: grabbing; color: var(--gold); background: rgba(229,169,60,0.12); }
.setlist-row.drag-src { opacity: 0.35; }
.setlist-ghost {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4000;
    background: rgba(20,20,25,0.97);
    border: 2px solid var(--gold);
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.7), 0 0 24px rgba(229,169,60,0.35);
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 14px;
}
.setlist-ghost .setlist-actions, .setlist-ghost .drag-handle { display: none; }

.add-music-row {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

/* --- EMPTY STATE --- */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state i { font-size: 3rem; color: rgba(229,169,60,0.3); margin-bottom: 15px; display: block; }
.empty-state p { font-size: 1rem; }

/* --- BOTÃO DELETAR (tabelas) --- */
.btn-delete {
    background: rgba(255,77,77,0.1);
    border: 1px solid rgba(255,77,77,0.2);
    color: var(--danger);
    border-radius: 6px;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.btn-delete:hover { background: rgba(255,77,77,0.25); }

/* ===================================================
   MODAIS
   =================================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal {
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 0;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 28px;
    border-bottom: 1px solid var(--border);
}

.modal-header h3 { font-size: 1.15rem; font-weight: 700; color: #fff; }
.modal-header h3 i { color: var(--gold); margin-right: 8px; }

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
    padding: 0 4px;
}

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

.modal-form { padding: 24px 28px 28px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-group { margin-bottom: 16px; }

.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group textarea { resize: vertical; min-height: 70px; }

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 8px;
}

.modal-actions .btn-stage { width: auto; margin-top: 0; padding: 12px 28px; }

.btn-cancel {
    padding: 12px 24px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
}

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

/* ===================================================
   TOAST
   =================================================== */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 16px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 4px solid var(--success);
    border-radius: 10px;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 2000;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    animation: toastIn 0.3s ease;
}

.toast.error { border-left-color: var(--danger); }

@keyframes toastIn {
    from { transform: translateX(100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.missao-card p.missao-obs {
    align-items: flex-start;
    background: rgba(229,169,60,0.08);
    border: 1px solid rgba(229,169,60,0.2);
    border-radius: 8px;
    padding: 10px 12px;
    margin-top: 8px;
    color: var(--text-main);
}
.missao-card p.missao-obs span { flex: 1; }

.backline-group td {
    background: rgba(229,169,60,0.1) !important;
    color: var(--gold) !important;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
}

/* ===================================================
   PRINT CSS - SETLIST / RIDER (tema dark/gold)
   =================================================== */
.print-header-r12 {
    background: linear-gradient(135deg, #111114 0%, #1a1408 100%);
    border: 1px solid rgba(229,169,60,0.4);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
}
.print-brand {
    color: var(--gold);
    font-weight: 900;
    letter-spacing: 4px;
    font-size: 1.1rem;
    margin-bottom: 6px;
}
.print-footer {
    margin-top: 20px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.8rem;
    text-align: center;
}

/* Área de impressão/PDF mantém tema dark/gold na tela */
.pdf-export {
    background: #0a0a0c !important;
    padding: 20px !important;
}

@media print {
    body { background: #fff !important; color: #000 !important; }
    .stage-container, .sidebar, .no-print, .section-header,
    .repertorio-selector, .modal-overlay, .toast, .mobile-topbar,
    .mobile-nav-overlay, .login-overlay { display: none !important; }
    .app-container { display: block !important; }

    .main-content { padding: 0 !important; max-width: none !important; }
    .content-section.hidden { display: none !important; }
    .content-section:not(.hidden) { display: block !important; }
    .printable-area { display: block !important; }

    .print-header, .print-header-r12 {
        text-align: center;
        margin-bottom: 24px;
        padding: 18px 12px;
        border: 2px solid #000;
        border-radius: 0;
        background: #fff !important;
    }
    .print-header-r12 .print-brand { color: #8a6a1a !important; }
    .print-header h2, .print-header-r12 h2 { font-size: 1.6rem; color: #000; letter-spacing: 3px; }
    .print-header p, .print-header-r12 p { font-size: 0.95rem; color: #333; margin-top: 6px; }
    .print-footer { color: #555 !important; border-top: 2px solid #000; }

    .setlist-item-print {
        font-size: 1.15rem !important;
        font-weight: 700 !important;
        padding: 8px 0 !important;
        border-bottom: 1px solid #999 !important;
        color: #000 !important;
    }
    .setlist-item-print small { font-size: 0.85rem !important; color: #555 !important; }

    .rider-panel { border: 2px solid #000 !important; margin-bottom: 16px; break-inside: avoid; }
    .rider-panel-header h3 { color: #000 !important; }
    .data-table th { color: #000 !important; background: #eee !important; border-bottom: 2px solid #000 !important; }
    .data-table td { color: #000 !important; border-bottom: 1px solid #999 !important; }
    .backline-group td { background: #eee !important; color: #000 !important; }
}

/* ===================================================
   MEMBROS (cards, busca, chips, badges)
   =================================================== */
.membros-toolbar {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 22px;
}

.membros-search { margin-bottom: 0; max-width: 420px; }

.membros-search input {
    width: 100%;
    padding: 12px 16px 12px 46px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: #fff;
    outline: none;
    font-size: 0.92rem;
    font-family: 'Inter', sans-serif;
}

.membros-search input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(229,169,60,0.12); }

.chips-row { display: flex; flex-wrap: wrap; gap: 8px; }

.chip {
    padding: 7px 14px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
}

.chip:hover { color: var(--text-main); border-color: var(--border-hover); }

.chip.active { background: rgba(229,169,60,0.15); border-color: var(--gold); color: var(--gold); }

.membro-card { border-left-color: var(--success); }

.membro-card.membro-inativo { opacity: 0.65; border-left-color: #8a8a93; }

.membro-top { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }

.membro-avatar {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(229,169,60,0.35), rgba(229,169,60,0.08));
    border: 1px solid rgba(229,169,60,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--gold);
}

.membro-voce { font-size: 0.75rem; font-weight: 600; color: var(--text-muted); }

.funcao-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }

.funcao-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #000;
}

.membro-actions { margin-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.funcoes-checks { display: flex; flex-wrap: wrap; gap: 8px; }

.funcao-check {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s;
}

.funcao-check:has(input:checked) { background: rgba(229,169,60,0.15); border-color: var(--gold); color: var(--gold); }

.funcao-check input { accent-color: var(--gold); width: 15px; height: 15px; cursor: pointer; }

/* ===================================================
   GESTÃO (relatórios)
   =================================================== */
.gestao-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    padding: 16px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.gestao-modes { display: flex; gap: 8px; flex-wrap: wrap; }
.gestao-modes .chip i { color: var(--gold); margin-right: 4px; }
.gestao-period { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.gestao-period input {
    padding: 10px 14px;
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(229,169,60,0.4);
    border-radius: 8px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color-scheme: dark;
}
.gestao-period-label {
    color: var(--gold);
    font-weight: 800;
    font-size: 1.05rem;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}
.gestao-panels { grid-template-columns: 1fr 1fr; }
.gestao-block { padding: 18px 22px; }
.gestao-totals { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; font-size: 0.9rem; color: var(--text-muted); }
.gestao-sub { color: var(--gold); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
.gestao-bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.gestao-bar-label { min-width: 130px; font-size: 0.85rem; color: var(--text-main); }
.gestao-bar-track { flex: 1; height: 10px; background: rgba(255,255,255,0.06); border-radius: 6px; overflow: hidden; }
.gestao-bar-fill { height: 100%; border-radius: 6px; transition: width 0.4s; }
.gestao-bar-val { min-width: 90px; text-align: right; font-size: 0.82rem; font-weight: 700; color: var(--text-muted); }
.gestao-evo-chart { display: flex; gap: 10px; align-items: flex-end; }
.gestao-evo-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.gestao-evo-num { font-size: 0.75rem; font-weight: 800; color: var(--text-main); white-space: nowrap; }
.gestao-evo-track { width: 100%; max-width: 64px; height: 110px; background: rgba(255,255,255,0.05); border-radius: 8px; display: flex; align-items: flex-end; overflow: hidden; }
.gestao-evo-fill { width: 100%; border-radius: 8px; }
.gestao-evo-lab { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; font-weight: 600; }

/* ===================================================
   ALERTAS (lembretes + avisos)
   =================================================== */
#alerts-banner {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
    position: relative;
    padding-right: 44px;
}
.alert-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.9rem;
    border: 1px solid;
}
.alert-row i { margin-top: 2px; }
.alert-missao { background: rgba(229,169,60,0.1); border-color: rgba(229,169,60,0.45); color: #f0d9a8; }
.alert-missao i { color: var(--gold); }
.alert-aviso { background: rgba(46,196,182,0.08); border-color: rgba(46,196,182,0.35); color: #c8ece8; }
.alert-aviso i { color: var(--success); }
.alert-close {
    position: absolute;
    top: 4px;
    right: 4px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px 10px;
}
.alert-close:hover { color: #fff; }

/* ===================================================
   MAPA DE PALCO
   =================================================== */
.palco-wrap { max-width: 900px; margin: 0 auto; }
.palco-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    background: linear-gradient(180deg, #1a1a20 0%, #101014 70%, #0a0a0c 100%);
    border: 2px solid rgba(229,169,60,0.5);
    border-radius: 16px;
    overflow: hidden;
    touch-action: none;
}
.palco-stage::before {
    content: '';
    position: absolute;
    inset: 12px;
    border: 1px dashed rgba(255,255,255,0.12);
    border-radius: 10px;
    pointer-events: none;
}
.palco-back, .palco-front {
    position: absolute;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 4px;
    color: rgba(255,255,255,0.3);
    pointer-events: none;
}
.palco-back { top: 8px; }
.palco-front { bottom: 8px; color: rgba(229,169,60,0.5); }
#palco-markers { position: absolute; inset: 0; }
.palco-marker {
    position: absolute;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(10,10,12,0.92);
    border: 2px solid var(--gold);
    border-radius: 12px;
    padding: 8px 12px;
    min-width: 90px;
    max-width: 180px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.6), 0 0 16px rgba(229,169,60,0.2);
    user-select: none;
    z-index: 2;
}
.palco-marker.draggable { cursor: grab; }
.palco-marker.dragging { cursor: grabbing; z-index: 10; box-shadow: 0 0 28px rgba(229,169,60,0.6); }
.palco-rotulo { font-weight: 800; font-size: 0.85rem; color: #fff; text-align: center; }
.palco-detalhe { font-size: 0.72rem; color: var(--gold-light); text-align: center; }
.palco-del {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--danger);
    color: #fff;
    border: none;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
}
.palco-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 0.9rem; padding: 20px; text-align: center; }
.palco-hint { text-align: center; color: var(--text-muted); font-size: 0.82rem; margin-top: 12px; }
.palco-hint i { color: var(--gold); }

/* ===================================================
   MURAL
   =================================================== */
.mural-card { border-left-color: var(--success); }
.mural-card.mural-fixado { border-left-color: var(--gold); background: linear-gradient(135deg, rgba(229,169,60,0.08), var(--bg-card)); }
.mural-msg { white-space: pre-wrap; color: var(--text-main) !important; align-items: flex-start !important; }
.mural-date { font-size: 0.78rem !important; }

/* ===================================================
   MODO APRESENTAÇÃO
   =================================================== */
#present-overlay {
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: #050507;
    display: flex;
    flex-direction: column;
    padding: 20px;
}
#present-overlay:fullscreen { padding: 40px; }
.present-top { display: flex; justify-content: space-between; align-items: center; }
.present-counter { color: var(--gold); font-weight: 800; font-size: 1.1rem; letter-spacing: 2px; }
.present-tools { display: flex; gap: 10px; }
.present-btn {
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    color: var(--text-main);
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 0.9rem;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}
.present-btn:hover { border-color: var(--gold); color: var(--gold); }
.present-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 12px;
    padding: 10px;
    overflow-y: auto;
}
.present-num { color: var(--gold); font-weight: 900; font-size: clamp(1.4rem, 4vw, 2.4rem); letter-spacing: 6px; }
.present-name { color: #fff; font-weight: 900; font-size: clamp(2.2rem, 8vw, 5rem); line-height: 1.1; }
.present-artist { color: var(--text-muted); font-style: italic; font-size: clamp(1rem, 3vw, 1.6rem); }
.present-badges { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.present-badge { padding: 10px 22px; border-radius: 30px; font-weight: 800; font-size: clamp(1rem, 3vw, 1.5rem); }
.present-tom { background: rgba(229,169,60,0.18); border: 2px solid var(--gold); color: var(--gold); }
.present-bpm { background: rgba(46,196,182,0.12); border: 2px solid var(--success); color: #5fe3d4; }
.present-obs { color: #d8c08a; font-size: clamp(0.95rem, 2.6vw, 1.4rem); max-width: 800px; margin-top: 8px; }
.present-nav { display: flex; gap: 12px; }
.present-nav-btn {
    flex: 1;
    padding: 16px;
    background: rgba(229,169,60,0.12);
    border: 1px solid rgba(229,169,60,0.35);
    color: var(--gold);
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}
.present-nav-btn:active { background: rgba(229,169,60,0.25); }
.present-next { background: linear-gradient(135deg, var(--gold), #c98a20); color: #000; border: none; }
.present-hint { text-align: center; color: rgba(255,255,255,0.3); font-size: 0.75rem; margin-top: 10px; }

/* ===================================================
   TELEPROMPTER
   =================================================== */
#tele-overlay {
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: #000;
    display: flex;
    flex-direction: column;
    padding: 20px;
}
#tele-overlay:fullscreen { padding: 40px; }
.tele-title { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tele-song { color: #fff; font-weight: 800; font-size: clamp(1rem, 2.6vw, 1.5rem); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 46vw; }
.tele-speed {
    align-self: center;
    color: var(--gold);
    font-weight: 800;
    font-size: 0.9rem;
    min-width: 30px;
    text-align: center;
}
.tele-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px 10px;
    scroll-behavior: auto;
}
.tele-lyrics {
    color: #fff;
    font-weight: 700;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
    max-width: 1100px;
    margin: 0 auto;
}
.tele-lyrics.tele-empty { color: rgba(255,255,255,0.35); font-weight: 400; font-style: italic; text-align: center; }
.meta-letra { background: rgba(124,108,240,0.15); border: 1px solid rgba(124,108,240,0.5); color: #b9aef5; }

/* ===================================================
   TROCA DE SENHA OBRIGATÓRIA
   =================================================== */
.senha-aviso {
    background: rgba(229,169,60,0.1);
    border: 1px solid rgba(229,169,60,0.4);
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 0.88rem;
    color: #f0d9a8;
    margin-bottom: 16px;
    display: flex;
    gap: 8px;
    align-items: flex-start;
}
.senha-aviso i { color: var(--gold); margin-top: 2px; }

/* ===================================================
   MOBILE NAV + RESPONSIVO
   =================================================== */
.mobile-topbar {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    background: var(--sidebar-bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 900;
}
.mobile-menu-btn {
    background: rgba(229,169,60,0.15);
    border: 1px solid rgba(229,169,60,0.3);
    color: var(--gold);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 1.1rem;
    cursor: pointer;
}
.mobile-brand { font-weight: 900; letter-spacing: 2px; color: #fff; font-size: 1rem; }
.mobile-brand span, .mobile-brand i { color: var(--gold); }
.mobile-user {
    font-size: 0.72rem;
    color: var(--gold);
    background: rgba(229,169,60,0.12);
    border: 1px solid rgba(229,169,60,0.25);
    padding: 5px 10px;
    border-radius: 20px;
    max-width: 40vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 940;
}

@media (max-width: 900px) {
    .rider-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .login-overlay { flex-direction: column; }
    .login-left { min-height: 35vh; flex: none; }
    .login-right { flex: none; padding: 25px; }
    .band-name { font-size: 2rem; letter-spacing: 5px; }
    .band-verse { font-size: 0.78rem; }

    .app-container { flex-direction: column; }
    .mobile-topbar { display: flex; }
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        z-index: 950;
        width: 270px;
        max-width: 85vw;
        height: 100vh;
        transform: translateX(-105%);
        transition: transform 0.28s ease;
        box-shadow: 8px 0 32px rgba(0,0,0,0.5);
    }
    .sidebar.mobile-open { transform: translateX(0); }

    .main-content { padding: 16px; max-width: 100vw; overflow-x: hidden; }
    .section-header { flex-direction: column; align-items: stretch; }
    .section-header h1 { font-size: 1.25rem; }
    .header-actions { flex-wrap: wrap; }
    .header-actions .btn-create, .header-actions .btn-gold { flex: 1 1 auto; justify-content: center; }
    .cards-grid { grid-template-columns: 1fr; }
    .missao-card { padding: 18px; }
    .missao-card p { flex-wrap: wrap; word-break: break-word; }

    .modal-overlay { padding: 12px; align-items: flex-start; }
    .modal { max-height: 92vh; margin-top: 12px; }
    .modal-form { padding: 18px; }
    .modal-header { padding: 16px 18px; }
    .modal-actions { flex-direction: column-reverse; }
    .modal-actions .btn-stage, .modal-actions .btn-cancel { width: 100%; }

    .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .data-table { min-width: 640px; }
    .data-table th, .data-table td { padding: 10px 12px; font-size: 0.82rem; }

    .finance-summary { grid-template-columns: 1fr; }
    .gestao-panels { grid-template-columns: 1fr; }
    .gestao-filters { flex-direction: column; align-items: stretch; }
    .gestao-bar-label { min-width: 90px; }
    .agenda-item { flex-direction: column; align-items: stretch; text-align: center; }
    .agenda-date { min-width: 0; }
    .repertorio-selector { flex-direction: column; align-items: stretch; }
    .repertorio-selector select { width: 100%; }
    .setlist-hero { flex-direction: row; align-items: center; }
    .setlist-logo { width: 54px; height: 54px; }
    .setlist-row { flex-wrap: wrap; }
    .setlist-actions { width: 100%; justify-content: flex-end; }
    .toast { left: 16px; right: 16px; bottom: 16px; }
}

@media (max-width: 380px) {
    .main-content { padding: 12px; }
    .section-header h1 { font-size: 1.1rem; }
}