/* ============================================
   U3 CHURCH — Design System
   Tema: Dark Mode com Amarelo Vibrante
   ============================================ */

/* --- CSS Variables --- */
:root {
    --bg-base: #0A0A0B;
    --bg-primary: #111113;
    --bg-secondary: #161618;
    --bg-card: #1A1A1D;
    --bg-elevated: #222225;
    --bg-hover: #2A2A2E;
    --bg-input: #1E1E21;

    --yellow: #F5C518;
    --yellow-light: #FFD84D;
    --yellow-dark: #C9A100;
    --yellow-glow: rgba(245, 197, 24, 0.15);
    --yellow-subtle: rgba(245, 197, 24, 0.08);

    --text-primary: #F5F5F7;
    --text-secondary: #A1A1AA;
    --text-muted: #636366;
    --text-inverse: #0A0A0B;

    --border: #2A2A2E;
    --border-light: #333338;

    --success: #34D399;
    --success-bg: rgba(52, 211, 153, 0.12);
    --danger: #F87171;
    --danger-bg: rgba(248, 113, 113, 0.12);
    --warning: #FBBF24;
    --warning-bg: rgba(251, 191, 36, 0.12);
    --info: #60A5FA;
    --info-bg: rgba(96, 165, 250, 0.12);

    --radius-xs: 6px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
    --shadow-yellow: 0 0 20px rgba(245, 197, 24, 0.2);

    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);

    --sidebar-width: 260px;
    --topbar-height: 64px;
    --bottomnav-height: 68px;

    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font);
    background: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

a { color: var(--yellow); text-decoration: none; }
a:hover { color: var(--yellow-light); }

img { max-width: 100%; display: block; }

input, button, select, textarea {
    font-family: inherit;
    font-size: inherit;
    outline: none;
    border: none;
    background: none;
    color: inherit;
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* --- Typography --- */
h1 { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
h2 { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }
h3 { font-size: 1.125rem; font-weight: 600; line-height: 1.4; }
h4 { font-size: 1rem; font-weight: 600; line-height: 1.4; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-yellow { color: var(--yellow); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }

/* --- Layout Utilities --- */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.gap-xs { gap: 4px; }
.gap-sm { gap: 8px; }
.gap-md { gap: 16px; }
.gap-lg { gap: 24px; }
.gap-xl { gap: 32px; }
.w-full { width: 100%; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* --- Grid --- */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

/* --- Login Page --- */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-base);
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--yellow-glow) 0%, transparent 70%);
    top: -200px;
    right: -100px;
    pointer-events: none;
}

.login-page::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(245, 197, 24, 0.06) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
    pointer-events: none;
}

.login-container {
    text-align: center;
    padding: 48px;
    max-width: 440px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.login-logo {
    width: 88px;
    height: 88px;
    background: linear-gradient(135deg, var(--yellow), var(--yellow-dark));
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 32px;
    font-size: 2.5rem;
    color: var(--text-inverse);
    box-shadow: var(--shadow-yellow);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.login-title {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-title span {
    background: linear-gradient(135deg, var(--yellow), var(--yellow-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 40px;
    line-height: 1.6;
}

.login-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 40px;
    text-align: left;
}

.login-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    transition: var(--transition-base);
}

.login-feature:hover {
    border-color: var(--yellow);
    background: var(--yellow-subtle);
}

.login-feature .material-icons-round {
    color: var(--yellow);
    font-size: 20px;
}

.login-feature span {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: var(--transition-base);
    border: 1px solid transparent;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
    opacity: 0;
    transition: var(--transition-fast);
}

.btn:hover::after { opacity: 1; }
.btn:active { transform: scale(0.97); }

.btn-primary {
    background: linear-gradient(135deg, var(--yellow), var(--yellow-dark));
    color: var(--text-inverse);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    box-shadow: var(--shadow-yellow);
    transform: translateY(-1px);
}

.btn-primary:active { transform: translateY(0) scale(0.97); }

.btn-secondary {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--yellow);
    background: var(--bg-hover);
}

.btn-outline {
    background: transparent;
    color: var(--yellow);
    border: 1px solid var(--yellow);
}

.btn-outline:hover {
    background: var(--yellow-subtle);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    padding: 8px 12px;
}

.btn-ghost:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-sm { padding: 8px 16px; font-size: 0.8125rem; }
.btn-lg { padding: 14px 32px; font-size: 1rem; }
.btn-icon {
    padding: 10px;
    border-radius: var(--radius-sm);
}
.btn-icon-sm { padding: 6px; }

.btn-google {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border);
    padding: 14px 32px;
    font-size: 1rem;
    width: 100%;
}

.btn-google:hover {
    border-color: var(--yellow);
    background: var(--bg-elevated);
    box-shadow: var(--shadow-md);
}

.btn-google img {
    width: 20px;
    height: 20px;
}

/* --- Inputs --- */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.input-group label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.input {
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9375rem;
    transition: var(--transition-base);
    width: 100%;
}

.input:focus {
    border-color: var(--yellow);
    box-shadow: 0 0 0 3px var(--yellow-glow);
}

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

textarea.input {
    min-height: 80px;
    resize: vertical;
    line-height: 1.5;
}

select.input {
    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='%23A1A1AA' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    cursor: pointer;
}

/* --- Cards --- */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: var(--transition-base);
}

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

.card-interactive:hover {
    border-color: var(--yellow);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    cursor: pointer;
}

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

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

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon.yellow {
    background: var(--yellow-subtle);
    color: var(--yellow);
}

.stat-icon.green {
    background: var(--success-bg);
    color: var(--success);
}

.stat-icon.red {
    background: var(--danger-bg);
    color: var(--danger);
}

.stat-icon.blue {
    background: var(--info-bg);
    color: var(--info);
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 2px;
}

.stat-label {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* --- Avatars --- */
.avatar {
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 2px solid var(--border);
    transition: var(--transition-base);
    flex-shrink: 0;
}

.avatar-xs { width: 28px; height: 28px; }
.avatar-sm { width: 36px; height: 36px; }
.avatar-md { width: 44px; height: 44px; }
.avatar-lg { width: 56px; height: 56px; }
.avatar-xl { width: 72px; height: 72px; }
.avatar-xxl { width: 96px; height: 96px; }

.avatar-yellow { border-color: var(--yellow); }
.avatar-success { border-color: var(--success); }
.avatar-danger { border-color: var(--danger); }

.avatar-stack {
    display: flex;
}

.avatar-stack .avatar {
    margin-left: -10px;
}

.avatar-stack .avatar:first-child { margin-left: 0; }

/* --- Badges --- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.badge-yellow { background: var(--yellow-subtle); color: var(--yellow); }
.badge-green { background: var(--success-bg); color: var(--success); }
.badge-red { background: var(--danger-bg); color: var(--danger); }
.badge-blue { background: var(--info-bg); color: var(--info); }
.badge-gray { background: var(--bg-elevated); color: var(--text-muted); }
.badge-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

/* --- App Shell --- */
.app-shell {
    display: flex;
    min-height: 100vh;
}

/* --- Sidebar --- */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-primary);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    transition: var(--transition-slow);
}

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

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-logo {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--yellow), var(--yellow-dark));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-inverse);
    font-weight: 900;
    font-size: 1.1rem;
}

.sidebar-brand-text {
    font-size: 1.125rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.sidebar-church-name {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-nav {
    flex: 1;
    padding: 12px;
    overflow-y: auto;
}

.sidebar-section-title {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 16px 12px 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition-base);
    margin-bottom: 2px;
    position: relative;
}

.nav-item:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.nav-item.active {
    color: var(--yellow);
    background: var(--yellow-subtle);
}

.nav-item.active .material-icons-round {
    color: var(--yellow);
}

.nav-item .material-icons-round {
    font-size: 20px;
    transition: var(--transition-base);
}

.nav-item .nav-badge {
    margin-left: auto;
    background: var(--danger);
    color: white;
    font-size: 0.6875rem;
    padding: 2px 7px;
    border-radius: var(--radius-full);
    font-weight: 700;
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--border);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-base);
}

.sidebar-user:hover { background: var(--bg-hover); }

.sidebar-user-info {
    flex: 1;
    min-width: 0;
}

.sidebar-user-name {
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-role {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* --- Main Content --- */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
}

.topbar {
    height: var(--topbar-height);
    background: rgba(10, 10, 11, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    position: sticky;
    top: 0;
    z-index: 50;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.topbar-title {
    font-size: 1.125rem;
    font-weight: 700;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 4px;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-content {
    padding: 32px;
    max-width: 1200px;
}

.page-header {
    margin-bottom: 32px;
}

.page-header h1 {
    margin-bottom: 4px;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

/* --- Schedule Card (KEY FEATURE) --- */
.schedule-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-base);
}

.schedule-card:hover {
    border-color: var(--yellow);
    box-shadow: 0 4px 20px rgba(245, 197, 24, 0.08);
}

.schedule-card-header {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
}

.schedule-date {
    display: flex;
    align-items: center;
    gap: 16px;
}

.schedule-date-box {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--yellow), var(--yellow-dark));
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-inverse);
}

.schedule-date-day {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1;
}

.schedule-date-month {
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.schedule-info h3 {
    font-size: 1rem;
    margin-bottom: 2px;
}

.schedule-info .schedule-type {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.schedule-stats {
    display: flex;
    gap: 12px;
}

.schedule-stat {
    text-align: center;
    padding: 4px 8px;
}

.schedule-stat-value {
    font-size: 1.125rem;
    font-weight: 700;
}

.schedule-stat-label {
    font-size: 0.6875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.schedule-members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    padding: 20px 24px;
}

.member-slot {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    transition: var(--transition-base);
}

.member-slot:hover {
    background: var(--bg-elevated);
}

.member-slot-info {
    flex: 1;
    min-width: 0;
}

.member-slot-name {
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.member-slot-instrument {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
    flex-shrink: 0;
}

.status-dot.confirmed { background: var(--success); box-shadow: 0 0 8px var(--success); }
.status-dot.pending { background: var(--warning); box-shadow: 0 0 8px var(--warning); }
.status-dot.declined { background: var(--danger); box-shadow: 0 0 8px var(--danger); }

/* --- Member Card --- */
.member-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition-base);
}

.member-card:hover {
    border-color: var(--border-light);
    background: var(--bg-secondary);
}

.member-card-info {
    flex: 1;
    min-width: 0;
}

.member-card-name {
    font-weight: 600;
    margin-bottom: 2px;
}

.member-card-instruments {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.member-card-actions {
    display: flex;
    gap: 8px;
}

/* --- Song Card --- */
.song-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition-base);
}

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

.song-number {
    width: 32px;
    height: 32px;
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

.song-info { flex: 1; min-width: 0; }

.song-title {
    font-weight: 600;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-artist {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.song-key {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    background: linear-gradient(135deg, var(--yellow), var(--yellow-dark));
    color: var(--text-inverse);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 800;
    flex-shrink: 0;
    min-width: 36px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(245, 197, 24, 0.25);
    letter-spacing: 0.02em;
}

.song-link {
    color: var(--danger);
    padding: 6px;
    border-radius: var(--radius-sm);
    transition: var(--transition-base);
}

.song-link:hover {
    background: var(--danger-bg);
}

/* --- Modals --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    opacity: 0;
    animation: fadeIn 200ms ease forwards;
}

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

.modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    transform: translateY(20px) scale(0.95);
    animation: modalSlideIn 300ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes modalSlideIn {
    to { transform: translateY(0) scale(1); }
}

.modal-header {
    padding: 24px 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h2 { font-size: 1.25rem; }

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-base);
}

.modal-close:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.modal-body { padding: 24px; }
.modal-footer {
    padding: 16px 24px 24px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* --- Toast --- */
#toast-container {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    font-size: 0.875rem;
    min-width: 280px;
    animation: toastIn 300ms ease forwards;
}

.toast.removing {
    animation: toastOut 200ms ease forwards;
}

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

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

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

/* --- Church Hub --- */
.church-hub {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.church-hub-container {
    max-width: 600px;
    width: 100%;
}

.church-hub-header {
    text-align: center;
    margin-bottom: 40px;
}

.church-hub-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 32px;
}

.church-hub-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-base);
}

.church-hub-card:hover {
    border-color: var(--yellow);
    transform: translateY(-4px);
    box-shadow: var(--shadow-yellow);
}

.church-hub-card .material-icons-round {
    font-size: 40px;
    color: var(--yellow);
    margin-bottom: 16px;
}

.church-hub-card h3 {
    margin-bottom: 8px;
}

.church-hub-card p {
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* --- Empty States --- */
.empty-state {
    text-align: center;
    padding: 64px 24px;
}

.empty-state .material-icons-round {
    font-size: 48px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.empty-state h3 {
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.empty-state p {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 24px;
}

/* --- Instrument Tag --- */
.instrument-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 500;
    transition: var(--transition-base);
}

.instrument-tag .remove-tag {
    cursor: pointer;
    color: var(--text-muted);
    font-size: 16px;
    transition: var(--transition-base);
}

.instrument-tag .remove-tag:hover { color: var(--danger); }

/* --- Alert Cards --- */
.alert-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid;
    font-size: 0.875rem;
}

.alert-warning {
    background: var(--warning-bg);
    border-color: rgba(251, 191, 36, 0.2);
    color: var(--warning);
}

.alert-success {
    background: var(--success-bg);
    border-color: rgba(52, 211, 153, 0.2);
    color: var(--success);
}

.alert-danger {
    background: var(--danger-bg);
    border-color: rgba(248, 113, 113, 0.2);
    color: var(--danger);
}

/* --- Tabs --- */
.tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
}

.tab {
    padding: 12px 20px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-base);
    position: relative;
    border: none;
    background: none;
}

.tab:hover { color: var(--text-primary); }

.tab.active {
    color: var(--yellow);
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--yellow);
    border-radius: 2px 2px 0 0;
}

/* --- Search --- */
.search-bar {
    position: relative;
    max-width: 320px;
}

.search-bar .material-icons-round {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 20px;
}

.search-bar .input {
    padding-left: 40px;
}

/* --- Checkbox --- */
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 0.8125rem;
    transition: var(--transition-base);
}

.checkbox-item:hover { border-color: var(--yellow); }
.checkbox-item.selected {
    background: var(--yellow-subtle);
    border-color: var(--yellow);
    color: var(--yellow);
}

.checkbox-item input { display: none; }

/* --- Confirmation Buttons --- */
.confirm-btn-group {
    display: flex;
    gap: 8px;
}

.confirm-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    color: var(--text-secondary);
}

.confirm-btn:hover { border-color: var(--yellow); }

.confirm-btn.confirm-yes {
    background: var(--success-bg);
    border-color: var(--success);
    color: var(--success);
}

.confirm-btn.confirm-no {
    background: var(--danger-bg);
    border-color: var(--danger);
    color: var(--danger);
}

/* --- Divider --- */
.divider {
    height: 1px;
    background: var(--border);
    margin: 24px 0;
}

/* --- Church Search Results --- */
.church-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
}

.church-list-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-base);
}
.church-list-item:hover { border-color: var(--yellow); }

.church-list-logo {
    width: 44px;
    height: 44px;
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--yellow);
    font-size: 20px;
    flex-shrink: 0;
}

/* --- Loading Spinner --- */
.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--border);
    border-top-color: var(--yellow);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* --- Pulse animation --- */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* --- Bottom Navigation (Mobile) --- */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottomnav-height);
    background: rgba(17, 17, 19, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border);
    z-index: 100;
    padding: 0 8px;
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.bottom-nav-items {
    display: flex;
    height: 100%;
    align-items: center;
    justify-content: space-around;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 0.625rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-base);
    text-decoration: none;
}

.bottom-nav-item.active { color: var(--yellow); }
.bottom-nav-item .material-icons-round { font-size: 24px; }

/* --- Sidebar Overlay (mobile) --- */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 99;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .sidebar-overlay.open { display: block; }
    .main-content { margin-left: 0; padding-bottom: var(--bottomnav-height); }
    .bottom-nav { display: block; }
    .menu-toggle { display: flex; }
    .topbar { padding: 0 12px; }
    .topbar-title { font-size: 1rem; }
    .page-content { padding: 16px 12px; padding-bottom: calc(var(--bottomnav-height) + 16px); }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-auto { grid-template-columns: 1fr; }
    .schedule-members-grid { grid-template-columns: 1fr; }
    .church-hub-cards { grid-template-columns: 1fr; }
    .schedule-stats { display: none; }
    .stat-card { padding: 14px 12px; gap: 10px; }
    .stat-icon { width: 40px; height: 40px; }
    .stat-value { font-size: 1.25rem; }
    .stat-label { font-size: 0.75rem; }
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.125rem; }
    #toast-container { bottom: calc(var(--bottomnav-height) + 12px); right: 12px; left: 12px; }
    .toast { min-width: auto; font-size: 0.8125rem; padding: 10px 14px; }
    .login-container { padding: 20px 16px; }
    .login-title { font-size: 1.75rem; }
    .login-subtitle { font-size: 0.875rem; margin-bottom: 24px; }
    .login-logo { width: 72px; height: 72px; margin-bottom: 20px; }
    .btn { padding: 10px 20px; font-size: 0.875rem; min-height: 44px; }
    .btn-lg { padding: 12px 24px; }
    .btn-sm { padding: 8px 14px; min-height: 36px; }
    .input { padding: 12px 14px; font-size: 1rem; min-height: 44px; }
    .modal { max-height: 85vh; border-radius: var(--radius-lg); margin: 8px; }
    .modal-body { padding: 16px; }
    .modal-header { padding: 16px 16px 0; }
    .modal-footer { padding: 12px 16px 16px; flex-wrap: wrap; }
    .modal-footer .btn { flex: 1; min-width: 120px; }
    .page-header { margin-bottom: 20px; }
    .section { margin-bottom: 20px; }
    .section-header { flex-wrap: wrap; gap: 8px; }
    .member-card { padding: 12px; gap: 10px; flex-wrap: wrap; }
    .member-card-actions { flex-direction: row; width: 100%; margin-top: 4px; }
    .member-card-actions .btn { flex: 1; }
    .song-card { padding: 12px; gap: 10px; flex-wrap: wrap; }
    .schedule-card-header { padding: 14px 12px; flex-wrap: wrap; gap: 12px; }
    .schedule-date-box { width: 48px; height: 48px; }
    .schedule-date-day { font-size: 1.125rem; }
    .schedule-date-month { font-size: 0.5625rem; }
    .member-slot { padding: 10px; gap: 8px; }
    .church-hub-container { padding: 0 4px; }
    .church-hub-header h1 { font-size: 1.5rem; }
    .church-hub-card { padding: 20px 16px; }
    .church-hub-card .material-icons-round { font-size: 32px; margin-bottom: 10px; }
    .flex.justify-between.items-center { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; gap: 8px; }
    .page-content { padding: 12px 8px; }
    .card { padding: 14px; }
    .song-key { font-size: 0.6875rem; padding: 3px 8px; }
    .yt-thumbnail { display: none; }
    .filter-chips { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
    .filter-chip { flex-shrink: 0; }
}

/* --- Skeleton Loading --- */
.skeleton {
    background: linear-gradient(90deg, var(--bg-elevated) 25%, var(--bg-hover) 50%, var(--bg-elevated) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* --- Presence confirmation section --- */
.presence-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-top: 24px;
}

.presence-section h3 {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* --- YouTube thumbnail --- */
.yt-thumbnail {
    width: 48px;
    height: 36px;
    border-radius: var(--radius-xs);
    object-fit: cover;
    flex-shrink: 0;
    background: var(--bg-elevated);
}

/* --- Helper for section spacing --- */
.section { margin-bottom: 32px; }
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

/* --- Dropdown menu --- */
.dropdown-menu {
    position: absolute;
    right: 0;
    top: 100%;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 6px;
    min-width: 180px;
    box-shadow: var(--shadow-lg);
    z-index: 200;
    display: none;
}

.dropdown-menu.open { display: block; }

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-xs);
    font-size: 0.8125rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
    width: 100%;
    border: none;
    background: none;
    text-align: left;
}

.dropdown-item:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.dropdown-item.danger { color: var(--danger); }
.dropdown-item.danger:hover { background: var(--danger-bg); }

/* --- Transitions for page --- */
.page-transition {
    animation: pageIn 300ms ease forwards;
}

@keyframes pageIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Quick Actions --- */
.quick-action-card {
    display: flex; align-items: center; gap: 16px;
    padding: 16px; background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-md); cursor: pointer; transition: var(--transition-base);
}
.quick-action-card:hover { border-color: var(--yellow); background: var(--bg-secondary); }
.quick-action-icon {
    width: 44px; height: 44px; border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.quick-action-title { font-weight: 600; font-size: 0.9375rem; }
.quick-action-desc { font-size: 0.8125rem; color: var(--text-muted); margin-top: 2px; }

/* --- My Status Banner --- */
.my-status-banner {
    display: flex; align-items: center; gap: 16px; padding: 16px 20px;
    background: linear-gradient(135deg, rgba(245,197,24,0.08), rgba(245,197,24,0.02));
    border: 1px solid rgba(245,197,24,0.2); border-radius: var(--radius-lg);
    animation: subtlePulse 3s ease-in-out infinite;
}
.my-status-icon {
    width: 48px; height: 48px; background: var(--yellow-subtle); border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center; color: var(--yellow); flex-shrink: 0;
}
.my-status-info { flex: 1; }
@keyframes subtlePulse {
    0%, 100% { border-color: rgba(245,197,24,0.2); }
    50% { border-color: rgba(245,197,24,0.4); }
}

/* --- Filter Chips --- */
.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-chip {
    padding: 8px 16px; border-radius: var(--radius-full); font-size: 0.8125rem;
    font-weight: 600; cursor: pointer; transition: var(--transition-base);
    background: var(--bg-elevated); border: 1px solid var(--border); color: var(--text-secondary);
}
.filter-chip:hover { border-color: var(--yellow); color: var(--text-primary); }
.filter-chip.active {
    background: var(--yellow-subtle); border-color: var(--yellow); color: var(--yellow);
}

/* --- Progress Bar --- */
.confirmation-progress { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px 24px; }
.progress-header { display: flex; justify-content: space-between; margin-bottom: 12px; }
.progress-bar { height: 8px; background: var(--bg-elevated); border-radius: var(--radius-full); display: flex; overflow: hidden; }
.progress-fill { height: 100%; transition: width 600ms cubic-bezier(0.4, 0, 0.2, 1); }
.progress-confirmed { background: linear-gradient(90deg, var(--success), #22c988); border-radius: var(--radius-full) 0 0 var(--radius-full); }
.progress-declined { background: var(--danger); }
.progress-legend { display: flex; gap: 16px; margin-top: 12px; flex-wrap: wrap; }
.legend-item { display: flex; align-items: center; gap: 6px; font-size: 0.75rem; color: var(--text-muted); }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; }

/* --- Share Message Box --- */
.share-message-box {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md);
    padding: 16px 20px; text-align: left; font-size: 0.875rem; line-height: 1.7;
}

/* --- Top Songs --- */
.top-songs-list { display: flex; flex-direction: column; gap: 4px; }
.top-song-item {
    display: flex; align-items: center; gap: 12px; padding: 10px 16px;
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md);
    transition: var(--transition-base);
}
.top-song-item:hover { border-color: var(--border-light); }
.top-song-rank {
    width: 28px; height: 28px; background: var(--yellow-subtle); color: var(--yellow);
    border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 0.8125rem; flex-shrink: 0;
}
.top-song-info { flex: 1; }
.top-song-name { font-weight: 600; font-size: 0.875rem; }
.top-song-count { font-size: 0.75rem; color: var(--text-muted); }

/* --- Instrument Overview --- */
.instrument-overview { display: flex; flex-wrap: wrap; gap: 8px; }
.instrument-chip {
    display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px;
    background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-full);
    font-size: 0.8125rem; font-weight: 500; transition: var(--transition-base);
}
.instrument-chip.empty { opacity: 0.5; }
.instrument-card-full {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md);
    padding: 16px; transition: var(--transition-base);
}
.instrument-card-full:hover { border-color: var(--border-light); }
.instrument-icon {
    width: 36px; height: 36px; background: var(--yellow-subtle); border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* --- Song Key Overview --- */
.song-key-overview {
    display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px;
    background: var(--yellow-subtle); border: 1px solid rgba(245,197,24,0.2);
    border-radius: var(--radius-full); color: var(--yellow); font-size: 0.875rem;
}

/* --- Mini Stats (Settings) --- */
.mini-stat {
    background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-md);
    padding: 16px; text-align: center;
}
.mini-stat-value { font-size: 1.5rem; font-weight: 800; color: var(--yellow); }
.mini-stat-label { font-size: 0.75rem; color: var(--text-muted); margin-top: 4px; }

/* --- Past Schedules --- */
.past-schedule { opacity: 0.65; }
.past-schedule:hover { opacity: 1; }
.schedule-date-box.past { background: linear-gradient(135deg, var(--bg-elevated), var(--bg-hover)); }

/* --- Bottom Nav Badge --- */
.bottom-nav-item { position: relative; }
.bottom-nav-badge {
    position: absolute; top: 0; right: 4px; background: var(--danger); color: white;
    font-size: 0.5625rem; padding: 1px 5px; border-radius: var(--radius-full); font-weight: 700;
}

/* --- Responsive additions --- */
@media (max-width: 768px) {
    .my-status-banner { flex-direction: column; text-align: center; }
    .my-status-icon { margin: 0 auto; }
    .confirmation-progress { padding: 16px; }
    .progress-legend { justify-content: center; }
    .quick-action-card { padding: 12px; }
}

/* --- Invite Page --- */
.invite-church-info {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 24px; margin: 20px 0; text-align: center;
}
.invite-church-icon {
    width: 64px; height: 64px; background: var(--yellow-subtle); border-radius: var(--radius-xl);
    display: flex; align-items: center; justify-content: center; margin: 0 auto;
}
.invite-church-tag {
    display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px;
    background: var(--yellow-subtle); border: 1px solid rgba(245,197,24,0.2);
    border-radius: var(--radius-full); color: var(--yellow); font-size: 0.8125rem;
    font-weight: 600; margin-top: 8px;
}
.invite-link-box {
    display: flex; align-items: center; gap: 10px; padding: 14px 16px;
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md);
    cursor: pointer; transition: var(--transition-base); text-align: left;
}
.invite-link-box:hover { border-color: var(--yellow); background: var(--bg-secondary); }
.invite-link-box:active { transform: scale(0.98); }
.invite-link-text {
    flex: 1; font-size: 0.75rem; color: var(--text-secondary); word-break: break-all;
    font-family: monospace;
}

/* --- Repertório Alfabético --- */
.alpha-nav {
    display: flex; flex-wrap: wrap; gap: 4px; justify-content: center;
}
.alpha-letter {
    width: 32px; height: 32px; border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.8125rem; font-weight: 700; color: var(--yellow);
    background: var(--yellow-subtle); text-decoration: none;
    transition: var(--transition-base);
}
.alpha-letter:hover { background: var(--yellow); color: var(--text-inverse); }
.letter-group { margin-bottom: 20px; }
.letter-header {
    font-size: 1.25rem; font-weight: 800; color: var(--yellow);
    padding: 8px 0; margin-bottom: 8px;
    border-bottom: 2px solid var(--yellow-subtle);
}
.text-yellow { color: var(--yellow); font-weight: 600; }

/* --- Divider Text --- */
.divider-text {
    display: flex; align-items: center; gap: 16px; margin: 16px 0;
    color: var(--text-muted); font-size: 0.8125rem;
}
.divider-text::before, .divider-text::after {
    content: ''; flex: 1; height: 1px; background: var(--border);
}
.text-center { text-align: center; }

/* --- Spinner --- */
.spinner {
    width: 40px; height: 40px; border: 3px solid var(--border);
    border-top-color: var(--yellow); border-radius: 50%;
    animation: spin 0.8s linear infinite; margin: 20px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --- Role Chips (seletores de instrumento) --- */
.gap-xs { gap: 4px; }
.role-chip {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 10px; border-radius: var(--radius-full);
    background: var(--bg-secondary); border: 1px solid var(--border);
    color: var(--text-secondary); font-size: 0.75rem; font-weight: 500;
    cursor: pointer; transition: var(--transition-base);
    user-select: none; white-space: nowrap;
}
.role-chip input[type="checkbox"] { display: none; }
.role-chip:hover { border-color: var(--yellow); color: var(--text-primary); }
.role-chip.selected {
    background: var(--yellow-subtle); border-color: var(--yellow);
    color: var(--yellow); font-weight: 700;
}

/* ============ ADMIN PANEL ============ */
.admin-panel { max-width: 800px; margin: 0 auto; padding: 20px; }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.admin-tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--border); margin-bottom: 24px; overflow-x: auto; padding-bottom: 8px; }
.admin-tab { 
    background: none; border: none; padding: 8px 16px; color: var(--text-muted); 
    font-weight: 600; cursor: pointer; border-radius: var(--radius-md); transition: 0.2s; white-space: nowrap;
}
.admin-tab.active { background: var(--bg-hover); color: var(--yellow); }
.admin-tab:hover:not(.active) { color: var(--text-primary); }

.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
.admin-stat-card { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 16px; text-align: center; }
.admin-stat-num { font-size: 2rem; font-weight: 800; color: var(--text-primary); line-height: 1; margin-bottom: 4px; }
.admin-stat-label { font-size: 0.8125rem; color: var(--text-muted); text-transform: uppercase; font-weight: 600; }

.admin-church-card { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 16px; margin-bottom: 12px; }
.admin-church-card.blocked { border-color: var(--danger); opacity: 0.8; }
.admin-church-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; gap: 12px; }
.admin-church-stats { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; font-size: 0.8125rem; color: var(--text-secondary); background: var(--bg-primary); padding: 12px; border-radius: var(--radius-sm); }
.admin-church-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; }

.admin-user-card { display: flex; align-items: center; gap: 12px; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 12px; }

/* --- Monthly Calendar --- */
.cal-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.cal-month-label {
    font-size: 1.25rem;
    font-weight: 700;
    text-align: center;
}
.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}
.cal-header-cell {
    text-align: center;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 8px 0;
}
.cal-cell {
    min-height: 70px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 6px;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}
.cal-cell:hover { border-color: var(--border-light); }
.cal-empty { background: transparent; border-color: transparent; }
.cal-today {
    border-color: var(--yellow) !important;
    background: var(--yellow-subtle);
}
.cal-today .cal-day-num {
    color: var(--yellow);
    font-weight: 800;
}
.cal-sunday .cal-day-num { color: var(--yellow-light); }
.cal-has-event { cursor: pointer; }
.cal-has-event:hover {
    border-color: var(--yellow);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.cal-day-num {
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 4px;
}
.cal-event {
    font-size: 0.5625rem;
    padding: 2px 4px;
    border-radius: 4px;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}
.cal-event-culto {
    background: var(--yellow-subtle);
    color: var(--yellow);
}
.cal-event-ensaio {
    background: var(--info-bg);
    color: var(--info);
}

/* Monthly Detail Cards */
.monthly-detail-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    cursor: pointer;
    transition: var(--transition-base);
}
.monthly-detail-card:hover {
    border-color: var(--yellow);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.monthly-detail-info { flex: 1; min-width: 0; }
.monthly-detail-info h3 { font-size: 1rem; margin-bottom: 4px; }
.monthly-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 8px;
}
.monthly-songs-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}
.monthly-song-chip {
    font-size: 0.6875rem;
    padding: 3px 8px;
    background: var(--bg-elevated);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
}
.monthly-song-chip strong { color: var(--yellow); }

/* --- New Songs Page --- */
.new-songs-info-banner {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: linear-gradient(135deg, var(--yellow-subtle), rgba(245, 197, 24, 0.03));
    border: 1px solid rgba(245, 197, 24, 0.2);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
}
.new-songs-info-banner .material-icons-round {
    font-size: 28px;
    flex-shrink: 0;
    margin-top: 2px;
}
.new-song-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 4px solid var(--yellow);
    border-radius: var(--radius-lg);
    padding: 20px;
    transition: var(--transition-base);
}
.new-song-card:hover {
    border-color: var(--yellow);
    box-shadow: var(--shadow-md);
}
.new-song-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.new-song-number {
    width: 32px;
    height: 32px;
    background: var(--yellow-subtle);
    color: var(--yellow);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.875rem;
    flex-shrink: 0;
}
.new-song-key {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8125rem;
    color: var(--yellow);
    margin-top: 4px;
}
.song-key-badge {
    background: linear-gradient(135deg, var(--yellow), var(--yellow-dark));
    color: var(--text-inverse);
    font-weight: 800;
    font-size: 0.875rem;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    flex-shrink: 0;
    min-width: 40px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(245, 197, 24, 0.3);
}
.new-song-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 12px;
    padding-left: 44px;
}
.new-song-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: var(--text-muted);
}
.new-song-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding-left: 44px;
}

/* --- Google Button --- */
.btn-google {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border);
    padding: 12px 24px;
    gap: 10px;
}
.btn-google:hover {
    border-color: #4285F4;
    background: var(--bg-elevated);
    box-shadow: 0 0 12px rgba(66, 133, 244, 0.15);
}
.btn-google svg { flex-shrink: 0; }

@media (max-width: 600px) {
    .cal-cell { min-height: 50px; padding: 4px; }
    .cal-day-num { font-size: 0.6875rem; }
    .cal-event { font-size: 0.5rem; padding: 1px 3px; }
    .new-song-meta, .new-song-actions { padding-left: 0; }
    .monthly-detail-card { padding: 12px; gap: 10px; }
}

/* ============================================
   NOVOS ESTILOS — CALENDÁRIO AVANÇADO v3
   ============================================ */

/* --- Calendário Aprimorado --- */
.cal-cell-v2 {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 6px;
    min-height: 80px;
    cursor: pointer;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.cal-cell-v2:hover {
    border-color: var(--yellow);
    background: var(--bg-elevated);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.cal-cell-v2.cal-today-v2 {
    border-color: var(--yellow);
    background: var(--yellow-subtle);
}

.cal-cell-v2.cal-sunday-v2 { background: rgba(96, 165, 250, 0.04); }

.cal-cell-v2.cal-has-event-v2 {
    border-color: var(--border-light);
}

.cal-cell-v2.cal-empty-v2 {
    opacity: 0.2;
    cursor: default;
    pointer-events: none;
}

.cal-cell-v2.drag-over {
    border-color: var(--yellow);
    background: var(--yellow-subtle);
    box-shadow: 0 0 0 2px var(--yellow-glow);
}

.cal-day-num-v2 {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 4px;
    line-height: 1;
}

.cal-cell-v2.cal-today-v2 .cal-day-num-v2 {
    color: var(--yellow);
}

.cal-member-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    margin-bottom: 4px;
}

.cal-member-chip {
    width: 22px;
    height: 22px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.5rem;
    font-weight: 800;
    border: 2px solid var(--bg-base);
    flex-shrink: 0;
    cursor: grab;
    transition: var(--transition-fast);
    position: relative;
}

.cal-member-chip:active { cursor: grabbing; }
.cal-member-chip:hover { transform: scale(1.2); z-index: 2; }

.cal-member-chip.status-confirmed {
    background: linear-gradient(135deg, #34D399, #10B981);
    border-color: #34D399;
}

.cal-member-chip.status-pending {
    background: linear-gradient(135deg, #FBBF24, #F59E0B);
    border-color: #FBBF24;
}

.cal-member-chip.status-declined {
    background: linear-gradient(135deg, #F87171, #EF4444);
    border-color: #F87171;
}

.cal-status-dots {
    display: flex;
    gap: 2px;
    align-items: center;
}

.cal-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.cal-status-dot.confirmed { background: var(--success); }
.cal-status-dot.pending { background: var(--warning); }
.cal-status-dot.declined { background: var(--danger); }

.cal-event-mini {
    font-size: 0.55rem;
    font-weight: 600;
    padding: 1px 4px;
    border-radius: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

.cal-event-mini.culto {
    background: var(--yellow-subtle);
    color: var(--yellow);
}

.cal-event-mini.ensaio {
    background: var(--info-bg);
    color: var(--info);
}

/* --- Painel Lateral do Dia --- */
.day-panel-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 200;
    display: flex;
    justify-content: flex-end;
    animation: fadeIn 0.2s ease;
}

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

.day-panel {
    width: min(420px, 100vw);
    height: 100vh;
    background: var(--bg-primary);
    border-left: 1px solid var(--border);
    overflow-y: auto;
    animation: slideInRight 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

@keyframes slideInRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

.day-panel-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 10;
}

.day-panel-date {
    display: flex;
    align-items: center;
    gap: 12px;
}

.day-panel-date-box {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--yellow), var(--yellow-dark));
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-inverse);
    box-shadow: 0 4px 12px rgba(245, 197, 24, 0.3);
}

.day-panel-date-day {
    font-size: 1.375rem;
    font-weight: 900;
    line-height: 1;
}

.day-panel-date-month {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.day-panel-body {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.day-panel-section-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.day-panel-member {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    margin-bottom: 6px;
    transition: var(--transition-fast);
}

.day-panel-member:hover {
    border-color: var(--border-light);
}

.day-panel-member-info {
    flex: 1;
    min-width: 0;
}

.day-panel-member-name {
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.day-panel-member-role {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.day-panel-status-badge {
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

.day-panel-status-badge.confirmed {
    background: var(--success-bg);
    color: var(--success);
}

.day-panel-status-badge.pending {
    background: var(--warning-bg);
    color: var(--warning);
}

.day-panel-status-badge.declined {
    background: var(--danger-bg);
    color: var(--danger);
}

.day-panel-actions {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    background: var(--bg-card);
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: sticky;
    bottom: 0;
}

.day-panel-empty {
    text-align: center;
    padding: 32px 16px;
    color: var(--text-muted);
}

.day-panel-empty .material-icons-round {
    font-size: 40px;
    margin-bottom: 8px;
    display: block;
}

/* --- Drag & Drop --- */
.dragging {
    opacity: 0.5;
    cursor: grabbing;
}

.drag-ghost {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    background: var(--bg-elevated);
    border: 2px solid var(--yellow);
    border-radius: var(--radius-sm);
    padding: 6px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--yellow);
    box-shadow: var(--shadow-lg);
    transform: translate(-50%, -50%);
    display: none;
}

/* --- Painel do Líder --- */
.leader-panel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.leader-panel-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.leader-panel-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.leader-panel-card-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.leader-panel-card-icon.green {
    background: var(--success-bg);
    color: var(--success);
}

.leader-panel-card-icon.yellow {
    background: var(--yellow-subtle);
    color: var(--yellow);
}

.leader-panel-card-icon.red {
    background: var(--danger-bg);
    color: var(--danger);
}

.leader-panel-card-icon.blue {
    background: var(--info-bg);
    color: var(--info);
}

.leader-panel-card-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.leader-member-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.leader-member-row:last-child { border-bottom: none; }

.leader-member-name {
    flex: 1;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.leader-member-status {
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

.leader-member-status.confirmed {
    background: var(--success-bg);
    color: var(--success);
}

.leader-member-status.pending {
    background: var(--warning-bg);
    color: var(--warning);
}

.leader-member-status.declined {
    background: var(--danger-bg);
    color: var(--danger);
}

.leader-donut-chart {
    width: 100px;
    height: 100px;
    margin: 0 auto 16px;
}

/* --- Song Categories (Novas, Aprendendo, Dominadas) --- */
.song-category-tabs {
    display: flex;
    gap: 4px;
    background: var(--bg-elevated);
    padding: 4px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    overflow-x: auto;
    scrollbar-width: none;
}

.song-category-tabs::-webkit-scrollbar { display: none; }

.song-category-tab {
    flex: 1;
    min-width: 80px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
    text-align: center;
    white-space: nowrap;
    background: transparent;
    color: var(--text-muted);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.song-category-tab.active {
    background: var(--bg-card);
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}

.song-category-tab .tab-badge {
    background: var(--yellow);
    color: var(--text-inverse);
    font-size: 0.625rem;
    font-weight: 800;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.new-song-card-v2 {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px;
    transition: var(--transition-base);
    position: relative;
}

.new-song-card-v2:hover {
    border-color: var(--border-light);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.new-song-card-v2.category-nova {
    border-left: 3px solid var(--yellow);
}

.new-song-card-v2.category-aprendendo {
    border-left: 3px solid var(--info);
}

.new-song-card-v2.category-dominada {
    border-left: 3px solid var(--success);
}

.song-card-main {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.song-card-thumbnail {
    width: 48px;
    height: 36px;
    border-radius: var(--radius-xs);
    object-fit: cover;
    flex-shrink: 0;
    background: var(--bg-elevated);
}

.song-card-info { flex: 1; min-width: 0; }
.song-card-title {
    font-size: 0.9375rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-card-artist {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.song-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.mark-studied-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid var(--success);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-base);
}

.mark-studied-btn:hover {
    background: var(--success);
    color: white;
    transform: scale(1.02);
}

.mark-studied-btn.done {
    background: var(--success);
    color: white;
    cursor: default;
}

.studied-by {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 8px;
}

.studied-chip {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 8px;
    background: var(--success-bg);
    color: var(--success);
    border-radius: var(--radius-full);
    font-size: 0.625rem;
    font-weight: 600;
}

/* --- Move Category Button --- */
.move-category-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    background: var(--bg-elevated);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 0.6875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.move-category-btn:hover {
    background: var(--bg-hover);
    border-color: var(--yellow);
    color: var(--yellow);
}

/* --- WhatsApp Panel --- */
.wa-message-preview {
    background: #0b4f2e;
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 16px;
    font-size: 0.875rem;
    line-height: 1.6;
    white-space: pre-wrap;
    font-family: inherit;
    border: 1px solid rgba(37, 211, 102, 0.2);
    position: relative;
}

.wa-message-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(37,211,102,0.05), transparent);
    pointer-events: none;
}

.wa-member-select {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 16px;
}

.wa-member-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: var(--transition-fast);
}

.wa-member-item:hover { border-color: var(--yellow); }

.wa-member-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--yellow);
    cursor: pointer;
}

.wa-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #25D366, #1DB954);
    color: white;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: var(--transition-base);
    border: none;
    width: 100%;
    justify-content: center;
}

.wa-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
}

/* --- Confirm/Decline Simulation Buttons --- */
.confirm-btn-pair {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.confirm-sim-btn {
    flex: 1;
    padding: 10px;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
    text-align: center;
    border: 2px solid transparent;
}

.confirm-sim-btn.yes {
    background: var(--success-bg);
    color: var(--success);
    border-color: var(--success);
}

.confirm-sim-btn.yes:hover {
    background: var(--success);
    color: white;
}

.confirm-sim-btn.no {
    background: var(--danger-bg);
    color: var(--danger);
    border-color: var(--danger);
}

.confirm-sim-btn.no:hover {
    background: var(--danger);
    color: white;
}

/* --- Leader Summary Bar --- */
.leader-summary-bar {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.leader-summary-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    font-weight: 600;
}

.leader-summary-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* --- Enhanced Calendar Grid --- */
.cal-grid-v2 {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.cal-header-cell-v2 {
    padding: 8px 4px;
    text-align: center;
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* --- Mobile responsive calendar --- */
@media (max-width: 500px) {
    .cal-cell-v2 { min-height: 60px; padding: 4px; }
    .cal-member-chip { width: 18px; height: 18px; font-size: 0.4rem; }
    .day-panel { width: 100vw; }
    .leader-panel-grid { grid-template-columns: 1fr; }
    .song-category-tabs { flex-direction: row; }
}

/* --- Add/Remove Member Quick Buttons on Calendar Cell --- */
.cal-add-btn {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--yellow);
    color: var(--text-inverse);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    opacity: 0;
    transition: var(--transition-fast);
}

.cal-cell-v2:hover .cal-add-btn { opacity: 1; }

/* --- Notification Banner --- */
.notif-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(245,197,24,0.12), rgba(245,197,24,0.05));
    border: 1px solid rgba(245,197,24,0.3);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
}

.notif-banner .material-icons-round { color: var(--yellow); flex-shrink: 0; }
.notif-banner-text { flex: 1; }
.notif-banner-title { font-size: 0.875rem; font-weight: 700; margin-bottom: 2px; }
.notif-banner-sub { font-size: 0.75rem; color: var(--text-muted); }

/* --- Progress Ring (Líder) --- */
.progress-ring-container {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px;
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
}

.progress-ring {
    flex-shrink: 0;
}

.progress-ring-info { flex: 1; }
.progress-ring-value {
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--yellow);
    line-height: 1;
}

.progress-ring-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* --- Empty Day Panel Illustration --- */
.day-panel-no-schedule {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    gap: 12px;
    flex: 1;
}

.day-panel-no-schedule .material-icons-round {
    font-size: 48px;
    color: var(--text-muted);
    opacity: 0.5;
}

/* --- Schedule list in day panel --- */
.day-panel-schedule-item {
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
    padding: 12px;
    border: 1px solid var(--border);
    margin-bottom: 8px;
}

.day-panel-schedule-title {
    font-size: 0.9375rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.day-panel-schedule-type {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    margin-bottom: 8px;
}

.day-panel-schedule-type.culto {
    background: var(--yellow-subtle);
    color: var(--yellow);
}

.day-panel-schedule-type.ensaio {
    background: var(--info-bg);
    color: var(--info);
}

/* --- Tooltip for member chip --- */
.cal-member-chip:hover::after {
    content: attr(data-name);
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-elevated);
    color: var(--text-primary);
    padding: 4px 8px;
    border-radius: var(--radius-xs);
    font-size: 0.625rem;
    white-space: nowrap;
    pointer-events: none;
    border: 1px solid var(--border);
    z-index: 10;
}

/* --- Studies progress per musician --- */
.musician-studies-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    margin-bottom: 6px;
}

.musician-studies-info { flex: 1; min-width: 0; }
.musician-studies-name {
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.musician-studies-count {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.musician-studies-badge {
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: var(--radius-full);
}

.musician-studies-badge.all-done {
    background: var(--success-bg);
    color: var(--success);
}

.musician-studies-badge.partial {
    background: var(--warning-bg);
    color: var(--warning);
}

.musician-studies-badge.none-done {
    background: var(--danger-bg);
    color: var(--danger);
}

