:root {
    --primary: #e8941a;
    --primary-dark: #c9780f;
    --primary-light: #f0ab40;
    --brand-orange: #e8941a;
    --brand-black: #111827;
    --brand-nav: #141a22;
    --brand-nav-top: #1c2430;
    --bg: #f4f6f9;
    --surface: #ffffff;
    --text: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --success: #10b981;
    --danger: #ef4444;
    --shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
    --shadow-lg: 0 16px 40px rgba(0,0,0,.14);
    --radius: 12px;
    --navbar-height: 56px;
    --bottom-nav-height: 64px;
}

* { box-sizing: border-box; }

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    -webkit-tap-highlight-color: transparent;
}

/* Navbar */
.app-navbar {
    background: linear-gradient(180deg, var(--brand-nav-top) 0%, var(--brand-nav) 100%);
    height: var(--navbar-height);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.22);
    border-bottom: 2px solid var(--primary);
}

.app-navbar .navbar-brand {
    color: #fff;
}

.app-navbar .navbar-brand:hover {
    color: #fff;
    opacity: 0.92;
}

.app-navbar .brand-text {
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
    color: #fff;
}

.app-navbar .btn-link.text-white {
    opacity: 0.95;
}

/* Main content */
.app-main {
    padding-bottom: calc(var(--bottom-nav-height) + 16px);
    min-height: calc(100vh - var(--navbar-height));
}

@media (min-width: 992px) {
    .app-main {
        padding-bottom: 24px;
    }
}

/* Bottom navigation (mobile) */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottom-nav-height);
    background: var(--surface);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1030;
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -2px 10px rgba(0,0,0,.05);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-decoration: none;
    color: var(--text-muted);
    font-size: .7rem;
    padding: 6px 12px;
    border-radius: 8px;
    transition: color .2s;
}

.bottom-nav-item i {
    font-size: 1.3rem;
}

.bottom-nav-item.active {
    color: var(--primary);
    font-weight: 600;
}

.bottom-nav-item.active i {
    transform: scale(1.08);
    color: var(--primary);
}

/* Login page */
.login-page {
    background:
        radial-gradient(ellipse 90% 55% at 50% -5%, rgba(232, 148, 26, 0.28), transparent 60%),
        linear-gradient(165deg, #0c1015 0%, #141a22 42%, #111827 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 20px;
}

.login-container {
    width: 100%;
    max-width: 440px;
}

.login-card {
    background: var(--surface);
    border-radius: 24px;
    padding: 2rem 1.75rem 1.75rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.65);
}

.login-card .btn-primary {
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(232, 148, 26, 0.35);
}

.login-domain {
    color: rgba(255, 255, 255, 0.42);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: lowercase;
}

.login-page a:not(.btn) {
    color: var(--primary-dark);
    font-weight: 600;
}

.cadastro-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.cadastro-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.cadastro-features .bi {
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.cadastro-trial-hint {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 0;
}

.cadastro-tradicao-option {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    height: 100%;
    padding: 0.85rem;
    border: 2px solid var(--border-color, #dee2e6);
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.cadastro-tradicao-option.is-selected,
.cadastro-tradicao-option:has(input:checked) {
    border-color: var(--primary);
    background: rgba(13, 110, 253, 0.06);
}

.cadastro-tradicao-icon {
    font-size: 1.35rem;
    color: var(--primary);
}

.cadastro-tradicao-title {
    font-weight: 700;
    font-size: 0.9rem;
}

.cadastro-tradicao-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.35;
}

.tradicao-badge-catolica,
.tradicao-badge-evangelica {
    display: inline-flex;
    align-items: center;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.tradicao-badge-catolica {
    background: rgba(124, 58, 237, 0.12);
    color: #6d28d9;
}

.tradicao-badge-evangelica {
    background: rgba(234, 88, 12, 0.12);
    color: #c2410c;
}

.login-card--wide {
    max-width: 440px;
}

.login-page a:not(.btn):hover {
    color: var(--primary);
}

.login-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.app-logo-full {
    display: block;
    width: min(280px, 82vw);
    height: auto;
    margin: 0 auto 0.5rem;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.12));
}

.app-logo-compact {
    width: min(200px, 72vw);
    margin-bottom: 0.25rem;
}

.app-logo-tagline {
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 1.1rem;
    font-weight: 600;
}

.app-brand-icon {
    display: inline-flex;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    flex-shrink: 0;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.app-brand-icon img {
    width: 32px;
    height: 32px;
    max-width: 32px;
    max-height: 32px;
    object-fit: contain;
    display: block;
}

.app-navbar .navbar-brand .brand-text .brand-my {
    color: var(--brand-orange);
    font-weight: 800;
}

/* Loading overlay global */
.app-loading {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(248, 250, 252, 0.92);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
}

.app-loading.is-visible {
    opacity: 1;
    visibility: visible;
}

html.app-ready .app-loading {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.app-loading-box {
    text-align: center;
    padding: 1.5rem;
}

.app-loading-logo {
    width: 40px;
    height: 40px;
    max-width: 40px;
    max-height: 40px;
    border-radius: 10px;
    margin: 0 auto 0.65rem;
    display: block;
    object-fit: contain;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.app-loading-spinner {
    width: 2.75rem;
    height: 2.75rem;
    border: 0.25rem solid rgba(232, 148, 26, 0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: appLoadingSpin 0.75s linear infinite;
    margin: 0 auto 1rem;
}

.app-loading-text {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
}

.app-loading-hint {
    margin: 0.35rem 0 0;
    font-size: 0.8rem;
    color: #94a3b8;
    animation: appLoadingPulse 1.5s ease-in-out infinite;
}

@keyframes appLoadingSpin {
    to { transform: rotate(360deg); }
}

@keyframes appLoadingPulse {
    0%, 100% { opacity: 0.55; }
    50% { opacity: 1; }
}

/* Cards */
.app-card {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: transform .15s, box-shadow .15s;
}

.app-card:hover {
    box-shadow: var(--shadow-lg);
}

.app-card.clickable {
    cursor: pointer;
}

.app-card.clickable:active {
    transform: scale(.98);
}

/* Stats */
.stat-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.25rem;
    border: 1px solid var(--border);
    text-align: center;
}

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: .5rem;
}

.stat-card .stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
}

.stat-card .stat-label {
    font-size: .8rem;
    color: var(--text-muted);
    margin-top: .25rem;
}

/* Song list */
.song-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: inherit;
    border-bottom: 1px solid var(--border);
    transition: background .15s;
}

a.song-item {
    padding: 14px 16px;
    text-decoration: none;
}

a.song-item .song-icon {
    margin-top: 2px;
}

.song-item:hover { background: #f1f5f9; }

.song-item-link {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex: 1;
    min-width: 0;
    padding: 14px 52px 14px 16px;
    text-decoration: none;
    color: inherit;
}

.song-item-chevron {
    flex-shrink: 0;
    margin-top: 4px;
}

.btn-song-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: #fff;
    color: #64748b;
    text-decoration: none;
    flex-shrink: 0;
    transition: background .15s, color .15s, border-color .15s;
}

.btn-song-action:hover {
    background: #eef2ff;
    border-color: #c7d2fe;
    color: var(--primary);
}

.song-item-actions {
    position: absolute;
    top: 10px;
    right: 34px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 0;
    z-index: 2;
}

.song-item-actions .btn-song-action {
    width: 30px;
    height: 30px;
    font-size: 0.85rem;
}

.btn-favorita.is-favorita,
.btn-favorita.is-favorita:hover {
    color: #d97706;
    border-color: #fcd34d;
    background: #fffbeb;
}

.btn-favorita.is-favorita:hover {
    background: #fef3c7;
}

.culto-btn-icon.btn-favorita.is-favorita {
    color: #fbbf24;
    border-color: rgba(251, 191, 36, .45);
    background: rgba(251, 191, 36, .12);
}

.culto-btn-icon.btn-favorita.is-favorita:hover {
    background: rgba(251, 191, 36, .2);
}

.song-favorita-icon {
    color: #d97706;
    font-size: .85rem;
    flex-shrink: 0;
}

.app-toast {
    position: fixed;
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translateX(-50%) translateY(12px);
    z-index: 10050;
    max-width: min(92vw, 360px);
    padding: 10px 16px;
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 500;
    color: #fff;
    background: #334155;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .25);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
}

.app-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.app-toast-success {
    background: #059669;
}

.app-toast-error {
    background: #dc2626;
}

@media (min-width: 992px) {
    .app-toast {
        bottom: 24px;
    }
}

.song-item:last-child { border-bottom: none; }

.song-item .song-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.song-item .song-title {
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.song-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
}

.song-header-info {
    min-width: 0;
}

.song-header-title {
    font-size: 1.45rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
    line-height: 1.25;
}

.song-header-artist {
    font-size: 1.18rem;
    font-weight: 600;
    color: #334155;
    line-height: 1.35;
    margin-bottom: 0.1rem;
}

.song-header-info .song-meta {
    margin-top: 0.4rem;
}

.song-item .song-artist {
    font-size: 1.02rem;
    font-weight: 600;
    color: #475569;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.song-meta {
    display: flex;
    align-items: center;
    gap: 0.35rem 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.3rem;
}

.song-item .song-artist.d-flex {
    display: block;
}

.song-item .song-artist > span:first-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.song-item .song-meta .song-key {
    font-size: .78rem;
    padding: 4px 10px;
}

.song-item .song-key {
    background: #eef2ff;
    color: var(--primary);
    font-weight: 600;
    font-size: .72rem;
    padding: 4px 10px;
    border-radius: 20px;
    flex-shrink: 0;
    white-space: nowrap;
}

.ultima-badge {
    display: inline-flex;
    align-items: center;
    font-size: .8rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}

.ultima-badge-sm {
    font-size: .7rem;
    padding: 2px 8px;
}

/* Seletor de músicas (playlist / escala) */
.musica-picker-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.musica-picker-search-wrap {
    flex: 1 1 12rem;
    min-width: 0;
}

.musica-picker-filter-estilo {
    flex: 0 1 10rem;
    min-width: 8rem;
}

.musica-picker-toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.musica-picker-body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .musica-picker-body {
        grid-template-columns: 1fr 1fr;
    }
}

.musica-picker-panel {
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    min-height: 0;
}

.musica-picker-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.55rem 0.75rem;
    background: #f8fafc;
    border-bottom: 1px solid var(--border);
}

.musica-picker-catalog {
    max-height: min(52vh, 420px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.musica-picker-item {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.65rem 0.75rem;
    margin: 0;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    user-select: none;
}

.musica-picker-item:last-child {
    border-bottom: none;
}

.musica-picker-item:hover {
    background: #f8fafc;
}

.musica-picker-item .form-check-input {
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.musica-picker-item-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.musica-picker-item-title {
    font-weight: 600;
    font-size: 0.92rem;
    line-height: 1.3;
}

.musica-picker-item-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.35;
}

.musica-picker-panel-selected {
    display: flex;
    flex-direction: column;
}

.musica-picker-panel-selected .musica-picker-empty {
    padding: 0.75rem;
}

.musica-picker-selected-list {
    max-height: min(52vh, 420px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.musica-picker-order-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
        "num info actions"
        "num tom actions";
    align-items: center;
    gap: 0.35rem 0.5rem;
    padding: 0.55rem 0.75rem;
    border-bottom: 1px solid #f1f5f9;
}

.musica-picker-order-row:last-child {
    border-bottom: none;
}

.musica-picker-order-num {
    grid-area: num;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: #eef2ff;
    color: #4338ca;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.musica-picker-order-info {
    grid-area: info;
    min-width: 0;
}

.musica-picker-order-title {
    display: block;
    font-weight: 600;
    font-size: 0.88rem;
    line-height: 1.25;
}

.musica-picker-order-meta {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.musica-picker-order-tom {
    grid-area: tom;
}

.musica-picker-order-actions {
    grid-area: actions;
    display: flex;
    gap: 0.2rem;
    align-self: start;
}

.musica-picker-order-actions .btn {
    padding: 0.15rem 0.35rem;
}

.musica-picker:not([data-com-tom="1"]) .musica-picker-order-row {
    grid-template-areas: "num info actions";
}

.ultima-recente {
    background: #d1fae5;
    color: #047857;
}

.ultima-ok {
    background: #e0f2fe;
    color: #0369a1;
}

.ultima-alerta {
    background: #fef3c7;
    color: #b45309;
}

.ultima-nunca {
    background: #fee2e2;
    color: #b91c1c;
}

.min-width-0 {
    min-width: 0;
}

/* Chord viewer */
.chord-viewer {
    background: #1e293b;
    color: #e2e8f0;
    border-radius: var(--radius);
    padding: 1.25rem;
    font-size: clamp(0.95rem, 2.5vw, 1.05rem);
    line-height: 1.85;
    word-wrap: break-word;
    overflow-x: auto;
}

.chord-viewer .cifra-line {
    font-family: 'Consolas', 'Courier New', monospace;
    white-space: pre-wrap;
}

.chord-viewer .cifra-line-gap {
    height: .45rem;
}

.chord-viewer .cifra-line-gap + .cifra-line-gap {
    display: none;
}

.chord-viewer .chord {
    color: #fbbf24;
    font-weight: 700;
}

.chord-viewer .tab-line {
    display: block;
    color: #94a3b8;
    letter-spacing: 0;
}

.chord-viewer:not(.is-rendered) {
    min-height: 4rem;
}

#btnToggleTab.active,
.culto-btn-icon.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* Transpose controls */
.transpose-bar {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.transpose-bar .btn-transpose {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    background: white;
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .15s;
}

.transpose-bar .btn-transpose:active {
    background: var(--primary);
    color: white;
}

.transpose-bar .current-key {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    min-width: 50px;
    text-align: center;
}

.tom-cantor-card {
    border-left: 3px solid var(--primary);
}

.tom-salvo-badge {
    font-weight: 400;
    font-size: .75rem;
}

.tom-salvo-badge strong {
    color: var(--primary);
}

/* YouTube embed */
.youtube-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius);
    background: #000;
}

.youtube-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Search bar */
.search-bar {
    position: sticky;
    top: var(--navbar-height);
    z-index: 100;
    background: var(--bg);
    padding: 12px 0;
}

.search-bar .form-control {
    border-radius: 24px;
    padding-left: 2.5rem;
    border: 1px solid var(--border);
    background: var(--surface);
}

.search-bar .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    z-index: 5;
}

/* Schedule */
.schedule-date {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    text-align: center;
}

.schedule-date .day {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.schedule-date .month-year {
    font-size: .85rem;
    opacity: .9;
}

.participant-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f1f5f9;
    border-radius: 20px;
    padding: 6px 12px;
    font-size: .85rem;
    margin: 4px;
}

.participant-badge .instrument-icon {
    color: var(--primary);
}

/* FAB button */
.fab {
    position: fixed;
    bottom: calc(var(--bottom-nav-height) + 16px);
    right: 16px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(232, 148, 26, .4);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1020;
    transition: transform .15s;
    text-decoration: none;
}

.fab:hover { color: white; transform: scale(1.05); }
.fab:active { transform: scale(.95); }

@media (min-width: 992px) {
    .fab {
        bottom: 24px;
    }
}

/* Forms */
.form-control:focus, .form-select:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(232, 148, 26, .15);
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3rem;
    opacity: .3;
    margin-bottom: 1rem;
}

/* Page header */
.page-header {
    padding: 1rem 0;
}

.page-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.25;
}

.page-header-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    flex-shrink: 0;
}

.page-header-actions .btn {
    width: 38px;
    height: 38px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Desktop sidebar hint */
@media (min-width: 992px) {
    .desktop-sidebar {
        position: sticky;
        top: calc(var(--navbar-height) + 16px);
    }

    .desktop-sidebar .nav-link {
        border-radius: 8px;
        color: var(--text);
        padding: .6rem 1rem;
    }

    .desktop-sidebar .nav-link.active {
        background: #eef2ff;
        color: var(--primary);
        font-weight: 600;
    }

    .desktop-sidebar .nav-link i {
        width: 24px;
    }
}

/* Scrollbar */
.chord-viewer::-webkit-scrollbar { height: 6px; }
.chord-viewer::-webkit-scrollbar-thumb { background: #475569; border-radius: 3px; }

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn .3s ease;
}

/* Agenda / Calendário */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.calendar-weekday {
    text-align: center;
    font-size: .7rem;
    font-weight: 700;
    color: var(--text-muted);
    padding: 4px 0;
}

.calendar-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    background: #f8fafc;
    border: 1px solid transparent;
    padding: 4px 2px;
    transition: background .15s, border-color .15s;
}

.calendar-day.other-month {
    opacity: .35;
}

.calendar-day.today {
    border-color: var(--primary-light);
}

.calendar-day.selected {
    background: #eef2ff;
    border-color: var(--primary);
}

.calendar-day.has-events {
    font-weight: 600;
}

.calendar-day .day-num {
    font-size: .9rem;
    line-height: 1.2;
}

.calendar-day .day-dots {
    display: flex;
    gap: 3px;
    margin-top: 3px;
    flex-wrap: wrap;
    justify-content: center;
}

.dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
}

.dot-culto {
    background: var(--primary);
}

.dot-ensaio {
    background: #f59e0b;
}

.evento-badge {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.evento-badge-sm {
    font-size: .65rem;
    padding: 2px 8px;
}

.evento-culto {
    background: #eef2ff;
    color: var(--primary);
}

.evento-ensaio {
    background: #fef3c7;
    color: #b45309;
}

.calendar-legend .dot {
    vertical-align: middle;
    margin-right: 4px;
}

/* Modo culto — tela cheia para apresentação */
body.culto-page {
    overflow: hidden;
    background: #0f172a;
}

body.culto-page .app-loading {
    background: rgba(15, 23, 42, 0.92);
}

.culto-shell {
    display: flex;
    flex-direction: column;
    height: 100dvh;
    max-height: 100dvh;
    background: #0f172a;
    color: #e2e8f0;
}

.culto-top {
    flex-shrink: 0;
    padding: 0.4rem 0.65rem 0.35rem;
    padding-top: max(0.4rem, env(safe-area-inset-top));
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.culto-top-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    flex-shrink: 0;
}

.culto-top-actions .culto-btn-icon {
    width: 32px;
    height: 32px;
}

.culto-transpose {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 0.3rem 0.45rem;
    margin-top: 0.2rem;
    padding-top: 0.25rem;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.culto-transpose-tools {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.culto-transpose-center {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    min-width: 0;
}

.culto-top-row {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    margin-bottom: 0.25rem;
}

.culto-btn-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.culto-btn-icon:active {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.culto-top-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
}

.culto-momento-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    align-self: flex-start;
    max-width: 100%;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--momento-cor, #6366f1) 22%, #0f172a);
    color: color-mix(in srgb, var(--momento-cor, #6366f1) 65%, white);
    border: 1px solid color-mix(in srgb, var(--momento-cor, #6366f1) 45%, #334155);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.culto-momento-label[hidden] {
    display: none !important;
}

.culto-song-title {
    font-weight: 700;
    font-size: 1.15rem;
    line-height: 1.22;
    min-width: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.culto-song-artist {
    font-size: 0.95rem;
    font-weight: 600;
    color: #cbd5e1;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.culto-song-meta {
    display: flex;
    align-items: center;
    gap: 0.35rem 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.28rem;
}

.culto-meta-chip {
    display: inline-flex;
    align-items: center;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(232, 148, 26, 0.22);
    color: #c7d2fe;
    white-space: nowrap;
}

.culto-song-meta .estilo-badge {
    font-size: 0.74rem;
}

.culto-meta-ultima {
    font-size: 0.74rem;
    padding: 4px 10px;
}

.culto-counter {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--primary-light);
    background: rgba(232, 148, 26, 0.15);
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    flex-shrink: 0;
    margin-left: auto;
}

.culto-key-wrap {
    text-align: center;
    min-width: 72px;
}

.culto-key-label {
    display: block;
    font-size: 0.65rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.culto-transpose .current-key {
    font-size: 1.35rem;
    color: #fbbf24;
}

.culto-bateria {
    display: block;
    font-size: 0.7rem;
    color: #94a3b8;
    font-weight: 600;
}

.culto-bpm {
    display: block;
    font-size: 0.7rem;
    color: var(--primary-light);
    font-weight: 600;
}

.btn-transpose-sm {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
    border-color: rgba(129, 140, 248, 0.6);
    background: rgba(255, 255, 255, 0.05);
    color: #c7d2fe;
}

.btn-transpose-sm:active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.culto-btn-reset {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.culto-main {
    flex: 1;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.15rem 0.5rem 0.35rem;
    min-height: 0;
}

.culto-main:not(.has-scroll-controls) {
    padding-bottom: calc(5.25rem + env(safe-area-inset-bottom, 0px));
}

.culto-main.has-scroll-controls {
    padding-bottom: calc(8.75rem + env(safe-area-inset-bottom, 0px));
}

.culto-hint {
    font-size: 0.68rem;
    color: #64748b;
    text-align: center;
    padding: 0.2rem 0.4rem 0.35rem;
    line-height: 1.3;
    transition: opacity 0.4s, max-height 0.4s;
    max-height: 2.5rem;
    overflow: hidden;
}

.culto-hint.is-hidden {
    opacity: 0;
    max-height: 0;
    padding: 0;
    pointer-events: none;
}

.culto-roteiro {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.15);
}

.culto-youtube-hint {
    margin: 0.5rem 1rem 0;
    padding: 0.55rem 0.75rem;
    border-radius: 0.5rem;
    background: rgba(220, 38, 38, 0.15);
    color: #fecaca;
    font-size: 0.85rem;
}

.culto-youtube-hint[hidden] {
    display: none !important;
}

.culto-youtube-hint a {
    color: #fff;
    font-weight: 600;
}

.culto-chord-viewer {
    min-height: auto;
    border-radius: 10px;
    font-size: clamp(0.98rem, 3.9vw, 1.22rem);
    line-height: 1.75;
    padding: 0.75rem 0.7rem 0.5rem;
    margin: 0;
}

.culto-chord-viewer.is-loading-cifra {
    min-height: 8rem;
    opacity: 0.45;
    position: relative;
}

.culto-chord-viewer.is-loading-cifra::after {
    content: 'Carregando cifra…';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: #94a3b8;
    letter-spacing: 0.02em;
}

.culto-chord-viewer .chord {
    font-size: 1.05em;
}

.culto-focus-fab {
    position: fixed;
    top: max(0.75rem, env(safe-area-inset-top));
    right: 0.75rem;
    z-index: 10050;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: rgba(232, 148, 26, 0.85);
    color: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.culto-focus-fab:active {
    transform: scale(0.95);
}

.culto-nav {
    flex-shrink: 0;
    display: grid;
    grid-template-columns: 1fr minmax(0, 1.5fr) 1fr;
    gap: 0.45rem;
    align-items: center;
    padding: 0.55rem 0.65rem;
    background: transparent;
    border-top: none;
}

.culto-bottom {
    flex-shrink: 0;
    background: linear-gradient(0deg, #1e293b 0%, #172033 100%);
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    padding: 0.35rem 0.55rem;
    padding-bottom: max(0.45rem, env(safe-area-inset-bottom));
}

.culto-bottom-hint {
    font-size: 0.72rem;
    font-weight: 600;
    color: #94a3b8;
    text-align: center;
    padding: 0 0.35rem 0.35rem;
    min-height: 1rem;
}

.culto-bottom-hint:empty {
    display: none;
}

.culto-bottom-grid {
    display: grid;
    grid-template-columns: minmax(72px, 1fr) minmax(0, 1.65fr) minmax(72px, 1fr);
    gap: 0.45rem;
    align-items: stretch;
}

.culto-bottom-side {
    min-height: 74px;
    padding: 0.45rem 0.35rem;
    font-size: 0.82rem;
    border-radius: 14px;
    flex-direction: column;
    gap: 0.2rem;
}

.culto-bottom-side i {
    font-size: 1.55rem;
}

.culto-bottom-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-width: 0;
}

.culto-bottom .culto-scroll-live {
    position: static;
    left: auto;
    bottom: auto;
    transform: none;
    z-index: auto;
    width: 100%;
    max-width: none;
    margin: 0;
    border-radius: 12px;
    border: none;
    grid-template-columns: 46px minmax(0, 1fr) 46px;
    padding: 0.25rem 0.35rem;
    background: rgba(15, 23, 42, 0.65);
    box-shadow: none;
}

.culto-bottom .culto-scroll-play {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
}

.culto-bottom .culto-scroll-step {
    width: 46px;
    height: 46px;
    font-size: 1.65rem;
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.culto-bottom .culto-scroll-step:disabled {
    opacity: 0.3;
    pointer-events: none;
}

.culto-bottom .culto-counter-nav {
    font-size: 0.9rem;
    margin: 0;
}

.culto-bottom .culto-scroll-speed-val {
    max-height: 1rem;
    opacity: 1;
}

.culto-encerrar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    margin-top: 0.4rem;
    padding: 0.55rem 0.75rem;
    border: 1px solid rgba(74, 222, 128, 0.35);
    border-radius: 12px;
    background: rgba(22, 101, 52, 0.35);
    color: #bbf7d0;
    font-size: 0.84rem;
    font-weight: 700;
}

.culto-encerrar-btn i {
    font-size: 1.1rem;
}

.culto-encerrar-btn:active:not(:disabled) {
    transform: scale(0.98);
    background: rgba(22, 101, 52, 0.55);
}

.culto-encerrar-btn:disabled,
.culto-encerrar-btn.is-disabled {
    opacity: 0.45;
    pointer-events: none;
}

.culto-encerrar-btn.is-loading {
    opacity: 0.7;
}

.culto-nav-in-top {
    margin: 0 0 0.25rem;
    padding: 0 0 0.28rem;
    background: transparent;
    border-top: none;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.culto-nav-in-top .culto-nav-btn {
    flex-direction: row;
    gap: 0.2rem;
    min-height: 34px;
    padding: 0.15rem 0.45rem;
    font-size: 0.72rem;
    border-radius: 10px;
}

.culto-nav-in-top .culto-nav-center {
    flex-direction: column;
    gap: 0.08rem;
    min-height: auto;
}

.culto-counter-nav {
    display: inline-block;
    margin: 0;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.culto-nav-in-top .culto-nav-next-title {
    font-size: 0.68rem;
    color: #94a3b8;
    text-align: center;
    max-width: 100%;
}

.culto-nav-in-top .culto-nav-btn i {
    font-size: 1.1rem;
}

.culto-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.1rem;
    min-height: 46px;
    padding: 0.3rem 0.45rem;
    border-radius: 12px;
    text-decoration: none;
    color: #cbd5e1;
    font-size: 0.72rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.04);
}

.culto-nav-btn i {
    font-size: 1.25rem;
}

.culto-nav-btn:active {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.culto-nav-btn-primary {
    background: rgba(232, 148, 26, 0.2);
    color: #c7d2fe;
}

.culto-nav-btn-primary:active {
    background: var(--primary);
    color: #fff;
}

.culto-nav-btn.is-disabled,
.culto-nav-btn:disabled {
    opacity: 0.35;
    pointer-events: none;
}

.culto-nav-event {
    font-size: 0.68rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.culto-nav-next-title {
    font-size: 0.78rem;
    font-weight: 600;
    color: #e2e8f0;
    margin-top: 0.1rem;
}

.culto-start-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    color: #fff;
    font-weight: 700;
}

.culto-start-btn:active {
    opacity: 0.9;
    color: #fff;
}

.culto-fs-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(6px);
    padding: 1.5rem;
    cursor: pointer;
}

.culto-fs-overlay[hidden] {
    display: none !important;
}

.culto-fs-overlay-box {
    text-align: center;
    color: #e2e8f0;
    max-width: 280px;
}

.culto-fs-overlay-box i {
    font-size: 2.5rem;
    color: var(--primary-light);
    display: block;
    margin-bottom: 0.75rem;
}

.culto-fs-overlay-box p {
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0 0 0.35rem;
}

.culto-fs-overlay-box .small {
    color: #94a3b8;
    line-height: 1.35;
}

.culto-shell.culto-focused .culto-top {
    display: none;
}

.culto-shell.culto-focused .culto-bottom {
    display: block;
}

.culto-shell.culto-focused .culto-hint {
    display: none;
}

.culto-shell.culto-focused .culto-main {
    padding-top: max(0.35rem, env(safe-area-inset-top));
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.culto-scroll-bar {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.4rem 0.65rem;
    background: #172033;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.culto-nav-center {
    text-align: center;
    padding: 0 0.25rem;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
}

.culto-nav-in-top .culto-nav-center {
    min-height: auto;
}

.culto-nav-info {
    width: 100%;
    min-width: 0;
}

.culto-nav-info[hidden] {
    display: none !important;
}

.culto-scroll-live {
    position: fixed;
    left: 50%;
    bottom: calc(78px + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%);
    z-index: 9000;
    display: grid;
    grid-template-columns: 56px minmax(0, auto) 56px;
    align-items: center;
    justify-items: center;
    gap: 0.35rem;
    width: min(92vw, 320px);
    padding: 0.4rem 0.55rem;
    background: rgba(15, 23, 42, 0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 999px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
    touch-action: manipulation;
}

.culto-top .culto-scroll-live {
    position: static;
    left: auto;
    bottom: auto;
    transform: none;
    z-index: auto;
    width: 100%;
    max-width: none;
    margin-top: 0.28rem;
    border-radius: 10px;
    grid-template-columns: 40px 1fr 40px;
    padding: 0.22rem 0.4rem;
    background: rgba(15, 23, 42, 0.55);
    box-shadow: none;
}

.culto-top .culto-scroll-play {
    width: 44px;
    height: 44px;
    font-size: 1.35rem;
}

.culto-top .culto-scroll-step {
    width: 40px;
    height: 40px;
    font-size: 1.35rem;
}

.culto-scroll-live[hidden] {
    display: none !important;
}

.culto-scroll-live.is-playing {
    background: rgba(30, 41, 59, 0.96);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(232, 148, 26, 0.25);
}

.culto-scroll-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
    grid-column: 2;
}

.culto-scroll-play {
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    background: rgba(232, 148, 26, 0.4);
    color: #e0e7ff;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.65rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.15s ease, background 0.15s ease;
}

.culto-scroll-play:active {
    transform: scale(0.94);
}

.culto-scroll-play.is-playing {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(232, 148, 26, 0.3);
}

.culto-scroll-play:disabled {
    opacity: 0.35;
    pointer-events: none;
}

.culto-scroll-step {
    width: 56px;
    height: 56px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.85rem;
    font-weight: 700;
    line-height: 1;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    opacity: 0;
    transform: scale(0.85);
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease, background 0.15s ease;
}

.culto-scroll-live.is-playing .culto-scroll-step.is-active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.culto-scroll-step.is-active:active:not(:disabled) {
    background: rgba(255, 255, 255, 0.24);
    transform: scale(0.94);
}

.culto-scroll-step:disabled {
    opacity: 0.25;
    pointer-events: none;
}

.culto-scroll-speed-val {
    font-size: 0.65rem;
    font-weight: 700;
    color: #a5b4fc;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.2s ease, opacity 0.2s ease;
}

.culto-scroll-speed-val.is-visible {
    max-height: 1rem;
    opacity: 1;
}

.culto-shell.culto-focused .culto-chord-viewer {
    font-size: clamp(1.05rem, 4.8vw, 1.55rem);
    line-height: 1.88;
    padding: 0.65rem 0.55rem 0.75rem;
}

.culto-shell.culto-focused .culto-chord-viewer .chord {
    font-size: 1.08em;
}

/* Impressão / PDF da cifra */
.print-page {
    background: #f1f5f9;
    min-height: 100vh;
    padding: 1rem;
}

.print-toolbar {
    max-width: 800px;
    margin: 0 auto 1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.btn-print-action {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #334155;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}

.btn-print-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.print-hint {
    flex: 1 1 100%;
    font-size: 0.8rem;
    color: #64748b;
}

.print-layout-picker {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
}

.print-layout-label {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 600;
}

.btn-print-layout {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #475569;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
}

.btn-print-layout.active {
    background: #fff7ed;
    border-color: var(--primary);
    color: var(--primary-dark);
}

.print-sheet {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
    padding: 1rem 1.25rem;
}

.print-sheet.print-layout-2cols {
    max-width: 960px;
}

.print-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.35rem;
    margin-bottom: 0.25rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid #e2e8f0;
}

.print-title {
    font-size: 1.35rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.1;
    color: #0f172a;
}

.print-artist {
    margin: 0;
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.15;
}

.print-meta {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.print-key {
    display: inline-block;
    background: #eef2ff;
    color: #4338ca;
    font-weight: 700;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.9rem;
    white-space: nowrap;
}

.print-key-original {
    font-size: 0.75rem;
    color: #94a3b8;
}

.print-chord-viewer {
    background: #fff !important;
    color: #0f172a !important;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.5rem 0.65rem;
    font-size: 1.18rem;
    line-height: 1.45;
    min-height: auto;
    box-shadow: none;
}

.print-chord-viewer .chord {
    color: #b45309 !important;
}

.print-chord-viewer .tab-line {
    color: #64748b !important;
}

.print-chord-viewer.print-cols-2 {
    column-count: 2;
    column-gap: 0.65rem;
    column-fill: auto;
}

.print-chord-viewer .cifra-line {
    break-inside: avoid;
    page-break-inside: avoid;
    margin: 0;
    padding: 0;
}

.print-chord-viewer .cifra-line-gap {
    height: 0.1em;
    line-height: 0;
    overflow: hidden;
}

.print-chord-viewer .cifra-line-gap + .cifra-line-gap {
    display: none;
}

/* Modal de layout de impressão (estilo Cifra Club) */
.modal-print-layout {
    max-width: 420px;
}

.print-layout-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.print-layout-option {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    padding: 0.85rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    text-align: center;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.print-layout-option:hover,
.print-layout-option.active {
    border-color: var(--primary);
    background: #f8fafc;
    box-shadow: 0 0 0 3px rgba(232, 148, 26, 0.12);
}

.print-layout-option-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: #0f172a;
}

.print-layout-option-desc {
    font-size: 0.72rem;
    color: #64748b;
    line-height: 1.35;
}

.print-layout-preview {
    display: block;
    height: 72px;
    border-radius: 6px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    position: relative;
    overflow: hidden;
}

.print-layout-preview::before,
.print-layout-preview::after {
    content: '';
    position: absolute;
    left: 10%;
    right: 10%;
    height: 3px;
    border-radius: 2px;
    background: #cbd5e1;
}

.print-layout-preview::before { top: 18%; }
.print-layout-preview::after { top: 32%; width: 70%; }

.print-layout-preview-1::before { box-shadow: 0 12px 0 #cbd5e1, 0 24px 0 #cbd5e1, 0 36px 0 #cbd5e1; }
.print-layout-preview-2::before { left: 10%; right: 54%; box-shadow: 12px 0 0 #cbd5e1, 0 12px 0 #cbd5e1, 12px 12px 0 #cbd5e1; }
.print-layout-preview-2::after { left: 54%; right: 10%; width: auto; box-shadow: 0 12px 0 #cbd5e1, 0 24px 0 #cbd5e1; }

.print-notes {
    margin-top: 0.25rem;
    padding-top: 0.25rem;
    border-top: 1px solid #e2e8f0;
}

.print-notes h2 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    margin: 0 0 0.25rem;
}

.print-notes p {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.2;
    color: #475569;
}

.print-footer {
    margin-top: 0.25rem;
    padding-top: 0.15rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    font-size: 0.62rem;
    color: #94a3b8;
    line-height: 1.1;
}

/* Repertório completo (PDF offline) */
.print-repertorio-cover-head {
    border-bottom: none;
    margin-bottom: 0.75rem;
}

.print-repertorio-kicker {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
    font-weight: 700;
    margin: 0 0 0.35rem;
}

.print-repertorio-meta-line {
    margin: 0.15rem 0 0;
    font-size: 0.85rem;
    color: #64748b;
}

.print-repertorio-index h2,
.print-repertorio-event-notes h2 {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    margin: 0 0 0.5rem;
}

.print-repertorio-index ol {
    margin: 0;
    padding-left: 1.2rem;
    columns: 2;
    column-gap: 1.5rem;
}

.print-repertorio-index li {
    break-inside: avoid;
    margin-bottom: 0.35rem;
    font-size: 0.88rem;
    line-height: 1.35;
}

.print-repertorio-index-key {
    color: #64748b;
    font-size: 0.8rem;
}

.print-song-index {
    margin: 0 0 0.15rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #94a3b8;
}

.print-sheet-song {
    margin-top: 1rem;
}

@media print {
    .print-repertorio-cover {
        page-break-after: always;
    }

    .print-sheet-song {
        page-break-before: always;
        page-break-inside: avoid;
        margin-top: 0;
    }

    .print-repertorio-index ol {
        columns: 2;
    }
}

@media print {
    @page {
        margin: 7mm 9mm;
        size: A4;
    }

    html,
    body {
        height: auto !important;
        min-height: 0 !important;
    }

    .no-print {
        display: none !important;
    }

    .print-page {
        background: #fff;
        padding: 0;
        min-height: 0;
    }

    .print-sheet {
        box-shadow: none;
        border-radius: 0;
        max-width: none;
        padding: 0;
        page-break-after: auto;
        margin: 0;
    }

    .print-header {
        margin-bottom: 3.5mm;
        padding-bottom: 2mm;
        gap: 2mm;
        border-bottom-width: 0.5pt;
        align-items: flex-start;
    }

    .print-title {
        font-size: 11pt;
        margin: 0;
        line-height: 1.15;
        display: block;
    }

    .print-artist {
        font-size: 9pt;
        margin: 0.5mm 0 0;
        line-height: 1.2;
        display: block;
    }

    .print-artist::before {
        content: none;
    }

    .print-meta {
        gap: 2mm;
    }

    .print-key {
        padding: 1mm 2.5mm;
        font-size: 9pt;
        line-height: 1.2;
    }

    .print-key-original {
        font-size: 7.5pt;
        line-height: 1.2;
    }

    .print-chord-viewer,
    .print-page .chord-viewer.print-chord-viewer,
    .print-cifra.chord-viewer {
        border: none;
        padding: 0 !important;
        background: #fff !important;
        font-size: 13pt;
        line-height: 1.45;
        page-break-inside: auto;
        min-height: 0;
    }

    .print-chord-viewer .chord {
        font-weight: 700;
        font-size: 1em;
    }

    .print-chord-viewer .cifra-line:first-child,
    .print-chord-viewer .cifra-line:last-child {
        margin: 0;
    }

    .print-chord-viewer.print-cols-2 {
        column-count: 2;
        column-gap: 5mm;
        column-fill: auto;
        font-size: 12pt;
        line-height: 1.4;
    }

    .print-chord-viewer .cifra-line {
        break-inside: avoid;
        page-break-inside: avoid;
        line-height: inherit;
        margin: 0;
        padding: 0;
    }

    .print-chord-viewer .cifra-line-gap {
        height: 1.5mm;
        min-height: 1.5mm;
        margin: 0;
        padding: 0;
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .print-chord-viewer .cifra-line-gap + .cifra-line-gap {
        display: none;
    }

    .print-chord-viewer .cifra-line + .cifra-line:not(.cifra-line-gap) {
        margin-top: 0;
    }

    .print-chord-viewer .cifra-line-gap + .cifra-line:not(.cifra-line-gap) {
        margin-top: 0;
    }

    .print-chord-viewer .tab-line {
        line-height: 1.35;
        margin-top: 1mm;
        margin-bottom: 0.5mm;
    }

    .print-notes {
        margin-top: 3.5mm;
        padding-top: 2mm;
    }

    .print-notes h2 {
        margin-bottom: 1mm;
        font-size: 8pt;
        line-height: 1.2;
    }

    .print-notes p {
        font-size: 8pt;
        line-height: 1.3;
    }

    .print-footer {
        margin-top: 3.5mm;
        padding-top: 2mm;
        border-top: 0.5pt solid #e2e8f0;
        display: flex;
        justify-content: space-between;
        font-size: 7pt;
        line-height: 1.2;
        color: #aaa;
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .print-header,
    .print-notes {
        break-inside: avoid;
    }
}

/* Módulos: Igreja x Músico */
.modo-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.modo-badge-igreja {
    background: rgba(232, 148, 26, 0.15);
    color: #4338ca;
}

.modo-badge-solo {
    background: rgba(245, 158, 11, 0.18);
    color: #b45309;
}

.modo-card {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.modo-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(232, 148, 26, 0.12);
    transform: translateY(-1px);
}

.modo-card:has(input:checked),
.modo-card.is-selected {
    border-color: var(--primary);
    background: rgba(232, 148, 26, 0.06);
    box-shadow: 0 0 0 2px rgba(232, 148, 26, 0.2);
}

.modo-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* Estilos e playlists */
.estilo-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    background: color-mix(in srgb, var(--estilo-cor, var(--primary)) 14%, white);
    color: color-mix(in srgb, var(--estilo-cor, var(--primary)) 85%, black);
    border: 1px solid color-mix(in srgb, var(--estilo-cor, var(--primary)) 25%, transparent);
}

.estilo-chips {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;
}

.estilo-chip {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    color: color-mix(in srgb, var(--estilo-cor, var(--primary)) 80%, black);
    background: #fff;
    border: 1.5px solid color-mix(in srgb, var(--estilo-cor, var(--primary)) 35%, #e2e8f0);
    transition: all 0.15s;
}

.estilo-chip.active,
.estilo-chip:hover {
    background: var(--estilo-cor, var(--primary));
    color: #fff;
    border-color: var(--estilo-cor, var(--primary));
}

.estilo-chip-clear {
    --estilo-cor: var(--text-muted);
    color: var(--text-muted);
}

.estilo-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--estilo-cor, var(--primary));
    background: color-mix(in srgb, var(--estilo-cor, var(--primary)) 12%, white);
    flex-shrink: 0;
}

.playlist-tipo-badge {
    display: inline-flex;
    padding: 0.15rem 0.45rem;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    flex-shrink: 0;
}

.playlist-tipo-estilo {
    background: rgba(232, 148, 26, 0.12);
    color: var(--primary-dark);
}

.playlist-tipo-evento {
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
}

.playlist-card,
.playlist-card-mini {
    transition: box-shadow 0.15s, transform 0.15s;
}

.playlist-card-mini:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-1px);
}

.song-order {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--bg);
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Modo play na página da música */
body.musica-play-active {
    overflow: hidden;
}

body.musica-play-active .app-navbar,
body.musica-play-active .bottom-nav,
body.musica-play-active .container-fluid {
    visibility: hidden;
}

.musica-play-shell {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    flex-direction: column;
    background: #0f172a;
    color: #e2e8f0;
}

.musica-play-shell[hidden] {
    display: none !important;
}

.musica-play-top {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.75rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
    background: rgba(15, 23, 42, 0.98);
}

.musica-play-top-info {
    flex: 1;
    min-width: 0;
}

.musica-play-title {
    font-weight: 700;
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.musica-play-artist {
    font-size: 0.82rem;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.musica-play-transpose {
    padding: 0.45rem 0.75rem 0;
}

.musica-play-transpose .transpose-bar {
    margin-bottom: 0 !important;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 0.5rem 0.65rem;
}

.musica-play-main {
    flex: 1;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.35rem 0.65rem;
    min-height: 0;
}

.musica-play-main.has-scroll-controls {
    padding-bottom: 0.35rem;
}

.musica-play-bottom {
    padding: 0.55rem 0.75rem calc(0.65rem + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid rgba(148, 163, 184, 0.15);
    background: rgba(15, 23, 42, 0.98);
}

.musica-play-bottom .culto-scroll-live {
    position: static;
    transform: none;
    width: 100%;
    max-width: none;
    margin: 0;
    grid-template-columns: 46px minmax(0, 1fr) 46px;
    padding: 0.25rem 0.35rem;
    background: rgba(15, 23, 42, 0.65);
    border-radius: 12px;
}

.musica-play-hint {
    line-height: 1.35;
    margin-bottom: 0.5rem !important;
}

#musicaVelocidadeSalva.is-saved {
    color: #86efac;
}

/* Painel SaaS / Platform */
.platform-body {
    background: #f1f5f9;
    min-height: 100vh;
}

.biblioteca-cifra-field {
    font-size: 0.85rem;
    line-height: 1.45;
    min-height: 320px;
}

.platform-nav {
    background: #0f172a !important;
}

.platform-layout {
    display: flex;
    min-height: calc(100vh - 56px);
}

.platform-sidebar {
    width: 220px;
    flex-shrink: 0;
    background: #1e293b;
    padding: 1rem 0.75rem;
    display: none;
}

@media (min-width: 768px) {
    .platform-sidebar {
        display: block;
    }
}

.platform-nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 0.15rem;
}

.platform-nav-link:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.platform-nav-link.active {
    background: var(--primary);
    color: #fff;
}

.platform-main {
    flex: 1;
    min-width: 0;
}

.platform-stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: var(--shadow, 0 1px 3px rgba(0,0,0,.08));
    border-left: 4px solid var(--primary);
}

.platform-stat-info { border-left-color: #0ea5e9; }
.platform-stat-success { border-left-color: #22c55e; }
.platform-stat-danger { border-left-color: #ef4444; }

.platform-stat-value {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.platform-stat-label {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 0.35rem;
}

.platform-login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    padding: 1rem;
}

.platform-login-card {
    width: 100%;
    max-width: 400px;
}

/* Assinatura self-service */
.assinatura-plano-card {
    border: 2px solid rgba(232, 148, 26, 0.25);
}

.assinatura-plano-kicker {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
}

.assinatura-plano-preco {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--brand-black);
    line-height: 1.1;
}

.assinatura-plano-preco span {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
}

.assinatura-plano-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.assinatura-plano-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.35rem 0;
    font-size: 0.92rem;
}

.assinatura-plano-list .bi-check2 {
    color: var(--primary);
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 0.05rem;
}

/* Afinador */
.bottom-nav-item {
    padding: 6px 8px;
    font-size: .65rem;
}

.tuner-quick-card {
    border-left: 4px solid #0ea5e9;
    transition: box-shadow 0.2s, transform 0.15s;
}

.tuner-quick-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-1px);
}

.tuner-quick-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(14, 165, 233, 0.12);
    color: #0284c7;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.tuner-card {
    border: none;
    box-shadow: var(--shadow-lg);
}

.tuner-display {
    background: linear-gradient(165deg, #0f172a 0%, #1e293b 55%, #111827 100%);
    color: #f8fafc;
    padding: 1.5rem 1.25rem 1.25rem;
    text-align: center;
    transition: box-shadow 0.25s;
}

.tuner-display.is-in-tune {
    box-shadow: inset 0 0 0 2px rgba(16, 185, 129, 0.65);
}

.tuner-target-label {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-bottom: 0.35rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.tuner-note-wrap {
    line-height: 1;
    margin-bottom: 1rem;
}

.tuner-note {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #fbbf24;
}

.tuner-display.is-in-tune .tuner-note {
    color: #34d399;
}

.tuner-octave {
    font-size: 1.75rem;
    font-weight: 600;
    color: #94a3b8;
    vertical-align: super;
    margin-left: 0.15rem;
}

.tuner-meter {
    max-width: 280px;
    margin: 0 auto 0.75rem;
}

.tuner-meter-track {
    position: relative;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.tuner-meter-zones {
    position: absolute;
    inset: 0;
    display: flex;
}

.tuner-zone {
    flex: 1;
}

.tuner-zone-flat {
    background: rgba(239, 68, 68, 0.25);
}

.tuner-zone-ok {
    background: rgba(16, 185, 129, 0.35);
}

.tuner-zone-sharp {
    background: rgba(59, 130, 246, 0.25);
}

.tuner-meter-needle {
    position: absolute;
    top: -4px;
    width: 4px;
    height: 18px;
    margin-left: -2px;
    left: 50%;
    border-radius: 2px;
    background: #fff;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
    transition: left 0.08s linear;
}

.tuner-meter-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: #64748b;
    margin-top: 0.35rem;
    padding: 0 0.15rem;
}

.tuner-cents {
    font-size: 0.95rem;
    font-weight: 600;
    min-height: 1.4rem;
    color: #e2e8f0;
}

.tuner-freq {
    font-size: 0.8rem;
    color: #64748b;
    min-height: 1.2rem;
    margin-top: 0.15rem;
}

.tuner-strings {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tuner-string-btn {
    flex: 1 1 calc(33.333% - 0.5rem);
    min-width: 5.5rem;
    border: 1px solid var(--border);
    background: var(--bg);
    border-radius: 8px;
    padding: 0.45rem 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text);
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.tuner-string-btn:hover {
    border-color: var(--primary-light);
}

.tuner-string-btn.active {
    border-color: var(--primary);
    background: rgba(232, 148, 26, 0.12);
    color: var(--primary-dark);
}

.tuner-toggle-btn {
    font-weight: 600;
}

.momento-badge {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--momento-cor, #6366f1) 16%, white);
    color: var(--momento-cor, #6366f1);
    border: 1px solid color-mix(in srgb, var(--momento-cor, #6366f1) 35%, white);
    white-space: nowrap;
}

.momento-badge-more {
    --momento-cor: #64748b;
}

.escala-momentos-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.escala-momento-row {
    border: 1px solid color-mix(in srgb, var(--momento-cor, #6366f1) 24%, #e2e8f0);
    border-left: 4px solid var(--momento-cor, #6366f1);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    background: color-mix(in srgb, var(--momento-cor, #6366f1) 6%, white);
}

.escala-momento-head {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.escala-momento-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--momento-cor, #6366f1) 16%, white);
    color: var(--momento-cor, #6366f1);
    flex-shrink: 0;
}

.print-repertorio-momento {
    margin: 0 0 0.35rem;
}

.print-repertorio-momento .momento-badge {
    font-size: 0.75rem;
}

.momento-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--momento-cor, #6366f1) 18%, white);
    color: var(--momento-cor, #6366f1);
    font-size: 1.15rem;
    flex-shrink: 0;
}

.momento-check-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
    gap: 0.5rem 0.75rem;
}

.momento-check-grid .form-check {
    margin-bottom: 0;
}

.playlist-tipo-momento {
    background: rgba(14, 165, 233, 0.12);
    color: #0284c7;
}

.tuner-status {
    min-height: 1.25rem;
}

@media (min-width: 992px) {
    .bottom-nav-item {
        padding: 6px 12px;
        font-size: .7rem;
    }
}

/* PWA install banner */
.pwa-install-banner {
    position: fixed;
    bottom: calc(64px + env(safe-area-inset-bottom, 0px));
    left: 0;
    right: 0;
    z-index: 1040;
    padding: 0 0.75rem;
    pointer-events: none;
}

.pwa-install-inner {
    pointer-events: auto;
    max-width: 520px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 14px;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #f8fafc;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.35);
}

/* Página pública da escala */
.escala-publica-page {
    max-width: 640px;
    margin: 0 auto;
}

.escala-publica-hero {
    background: linear-gradient(180deg, rgba(232, 148, 26, 0.08), #fff);
}

.escala-publica-num {
    background: #6366f1 !important;
}

.escala-publica-song {
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.escala-publica-song:last-child {
    border-bottom: none;
}

/* Modo culto live */
.culto-live-bar {
    padding: 0.45rem 0.75rem;
    font-size: 0.78rem;
    color: #f8fafc;
    background: linear-gradient(90deg, #dc2626, #b91c1c);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.culto-live-bar.is-follower {
    background: linear-gradient(90deg, #2563eb, #1d4ed8);
}

.culto-live-bar.is-ended {
    background: #475569;
}

.culto-live-host {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.culto-shell.culto-follower-mode .culto-bottom .culto-nav-btn {
    opacity: 0.45;
    pointer-events: none;
}
