/* ==========================================================
   CerMusic — Design System
   Tema escuro · roxo profundo + dourado
   ========================================================== */
:root {
    --bg:        #0d0a1a;
    --bg-2:      #130f24;
    --surface:   rgba(255, 255, 255, .035);
    --surface-2: rgba(255, 255, 255, .06);
    --surface-3: rgba(255, 255, 255, .09);
    --border:    rgba(255, 255, 255, .08);
    --border-2:  rgba(255, 255, 255, .14);
    --text:      #eeeaf8;
    --muted:     #9a93b5;
    --dim:       #6b6487;

    --primary:   #8b5cf6;
    --primary-2: #a78bfa;
    --primary-d: #6d28d9;
    --gold:      #f5b942;
    --gold-2:    #fcd34d;
    --success:   #22c55e;
    --warning:   #f59e0b;
    --danger:    #ef4444;
    --info:      #38bdf8;

    --grad:      linear-gradient(135deg, #8b5cf6 0%, #c026d3 55%, #f5b942 120%);
    --grad-gold: linear-gradient(135deg, #f5b942, #f97316);
    --radius:    14px;
    --radius-sm: 10px;
    --radius-lg: 20px;
    --shadow:    0 10px 30px -10px rgba(0,0,0,.6);
    --glow:      0 0 0 1px rgba(139,92,246,.35), 0 8px 30px -6px rgba(139,92,246,.45);
    --sidebar-w: 260px;
    --ease:      cubic-bezier(.2,.8,.2,1);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
    font-family: 'Outfit', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}
body::before {
    content: ''; position: fixed; inset: 0; pointer-events: none; z-index: -1;
    background:
        radial-gradient(900px 600px at 85% -10%, rgba(139,92,246,.18), transparent 60%),
        radial-gradient(700px 500px at -10% 110%, rgba(245,185,66,.08), transparent 60%);
}
a { color: var(--primary-2); text-decoration: none; }
a:hover { color: #fff; }
h1, h2, h3, h4 { margin: 0 0 .4em; font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.05rem; }
p  { margin: 0 0 1em; }
small, .small { font-size: .82rem; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.grow { flex: 1; min-width: 0; }
.mt { margin-top: 1rem; } .mb { margin-bottom: 1rem; } .mb-0 { margin-bottom: 0; }
.row { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.hidden { display: none !important; }
.text-gold { color: var(--gold); }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.nowrap { white-space: nowrap; }
::selection { background: rgba(139,92,246,.45); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 10px; border: 2px solid var(--bg); }

/* ── Layout ─────────────────────────────────────────────── */
.app { display: flex; min-height: 100vh; }
.sidebar {
    width: var(--sidebar-w); flex-shrink: 0; position: sticky; top: 0; height: 100vh;
    display: flex; flex-direction: column; gap: 1rem; padding: 1.25rem 1rem;
    background: linear-gradient(180deg, rgba(19,15,36,.95), rgba(13,10,26,.95));
    border-right: 1px solid var(--border); backdrop-filter: blur(20px); z-index: 50;
}
.brand { display: flex; align-items: center; gap: .65rem; font-size: 1.35rem; font-weight: 300; color: #fff; padding: 0 .35rem; letter-spacing: -.02em; }
.brand b { font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand:hover { color: #fff; }
.brand-logo {
    width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
    background: var(--grad); color: #fff; font-size: 1.2rem; box-shadow: 0 6px 20px -4px rgba(192,38,211,.6);
}
.brand-lg { font-size: 1.8rem; justify-content: center; margin-bottom: 1.25rem; }
.brand-lg .brand-logo { width: 52px; height: 52px; font-size: 1.5rem; border-radius: 16px; }
.church-chip {
    display: flex; align-items: center; gap: .5rem; padding: .55rem .75rem; border-radius: var(--radius-sm);
    background: var(--surface); border: 1px solid var(--border); font-size: .85rem; color: var(--muted);
}
.church-chip i { color: var(--gold); }
.church-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav { display: flex; flex-direction: column; gap: 2px; overflow-y: auto; flex: 1; }
.nav-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: var(--dim); padding: .9rem .75rem .35rem; font-weight: 600; }
.nav-link {
    display: flex; align-items: center; gap: .75rem; padding: .62rem .75rem; border-radius: var(--radius-sm);
    color: var(--muted); font-weight: 500; transition: all .2s var(--ease); position: relative;
}
.nav-link i { font-size: 1.1rem; width: 20px; text-align: center; }
.nav-link:hover { background: var(--surface-2); color: #fff; transform: translateX(2px); }
.nav-link.active { background: linear-gradient(90deg, rgba(139,92,246,.22), rgba(139,92,246,.04)); color: #fff; }
.nav-link.active::before { content: ''; position: absolute; left: -1rem; top: 20%; bottom: 20%; width: 3px; border-radius: 0 3px 3px 0; background: var(--grad); }
.nav-link.active i { color: var(--primary-2); }
.sidebar-user { display: flex; align-items: center; gap: .65rem; padding: .75rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.sidebar-user b { display: block; font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user small { color: var(--dim); }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
    position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 1rem;
    padding: .9rem 2rem; background: rgba(13,10,26,.7); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border);
}
.topbar-title { font-weight: 600; font-size: 1.05rem; flex: 1; }
.topbar-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.content { padding: 1.75rem 2rem 3rem; max-width: 1400px; width: 100%; animation: fadeUp .45s var(--ease); }
.only-mobile { display: none !important; }
.sidebar-backdrop { display: none; }

/* ── Page header ────────────────────────────────────────── */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.page-head h1 { margin: 0; }
.page-head p { margin: .25rem 0 0; color: var(--muted); }

/* ── Cards ──────────────────────────────────────────────── */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem; position: relative; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1rem; }
.card-head h2, .card-head h3 { margin: 0; display: flex; align-items: center; gap: .5rem; }
.card-head h2 i, .card-head h3 i { color: var(--primary-2); }
.card.flush { padding: 0; overflow: hidden; }
.card.hover { transition: transform .25s var(--ease), border-color .25s, box-shadow .25s; }
.card.hover:hover { transform: translateY(-3px); border-color: var(--border-2); box-shadow: var(--shadow); }
.glass { background: rgba(255,255,255,.04); backdrop-filter: blur(24px); border: 1px solid var(--border-2); }
.grid { display: grid; gap: 1rem; }
.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(260px, 1fr)); }
.layout-side { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 1.25rem; align-items: start; }

/* ── Stats ──────────────────────────────────────────────── */
.stat { display: flex; align-items: center; gap: 1rem; }
.stat-icon { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; font-size: 1.35rem; flex-shrink: 0; background: color-mix(in srgb, var(--c, var(--primary)) 18%, transparent); color: var(--c, var(--primary-2)); }
.stat-value { font-size: 1.75rem; font-weight: 800; line-height: 1.1; }
.stat-label { color: var(--muted); font-size: .85rem; }

/* ── Buttons ────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .62rem 1.1rem; border-radius: var(--radius-sm); border: 1px solid var(--border-2);
    background: var(--surface-2); color: var(--text); font: inherit; font-weight: 600; font-size: .9rem;
    cursor: pointer; transition: all .2s var(--ease); white-space: nowrap; text-decoration: none;
}
.btn:hover { background: var(--surface-3); color: #fff; transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 6px 20px -6px rgba(139,92,246,.7); background-size: 150% 150%; }
.btn-primary:hover { background-position: 100% 0; box-shadow: 0 8px 28px -6px rgba(192,38,211,.75); }
.btn-gold { background: var(--grad-gold); border-color: transparent; color: #1a1205; box-shadow: 0 6px 20px -6px rgba(245,185,66,.6); }
.btn-gold:hover { color: #000; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-danger { background: rgba(239,68,68,.12); border-color: rgba(239,68,68,.3); color: #fca5a5; }
.btn-danger:hover { background: rgba(239,68,68,.25); color: #fff; }
.btn-success { background: rgba(34,197,94,.14); border-color: rgba(34,197,94,.35); color: #86efac; }
.btn-whats { background: #25d366; border-color: transparent; color: #04210f; }
.btn-whats:hover { background: #2ee673; color: #000; }
.btn-sm { padding: .4rem .75rem; font-size: .82rem; }
.btn-lg { padding: .85rem 1.4rem; font-size: 1rem; }
.btn-block { width: 100%; }
.icon-btn {
    width: 36px; height: 36px; display: inline-grid; place-items: center; border-radius: 10px; border: 1px solid transparent;
    background: transparent; color: var(--muted); cursor: pointer; font-size: 1.05rem; transition: all .2s; flex-shrink: 0;
}
.icon-btn:hover { background: var(--surface-2); color: #fff; border-color: var(--border); }
.icon-btn.danger:hover { color: #fca5a5; background: rgba(239,68,68,.12); }

/* ── Forms ──────────────────────────────────────────────── */
.form-stack { display: flex; flex-direction: column; gap: 1rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field > span { font-size: .82rem; font-weight: 500; color: var(--muted); }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=date], input[type=time], input[type=number], input[type=search], input[type=month], select, textarea {
    width: 100%; padding: .68rem .9rem; border-radius: var(--radius-sm); border: 1px solid var(--border-2);
    background: rgba(0,0,0,.25); color: var(--text); font: inherit; font-size: .92rem; transition: border-color .2s, box-shadow .2s, background .2s;
}
input::placeholder, textarea::placeholder { color: var(--dim); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(139,92,246,.25); background: rgba(0,0,0,.35); }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%239a93b5' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .85rem center; padding-right: 2.25rem; }
select option { background: #1a1530; color: var(--text); }
textarea { min-height: 90px; resize: vertical; }
input[type=color] { width: 46px; height: 40px; padding: 3px; border-radius: 10px; border: 1px solid var(--border-2); background: rgba(0,0,0,.25); cursor: pointer; }
input[type=date]::-webkit-calendar-picker-indicator, input[type=time]::-webkit-calendar-picker-indicator, input[type=month]::-webkit-calendar-picker-indicator { filter: invert(.7); cursor: pointer; }
.check { display: inline-flex; align-items: center; gap: .55rem; cursor: pointer; user-select: none; color: var(--text); font-size: .92rem; }
.check input { width: 18px; height: 18px; accent-color: var(--primary); }
.search-box { position: relative; }
.search-box i { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: var(--dim); }
.search-box input { padding-left: 2.4rem; }

/* Chips selecionáveis (funções do músico) */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip-toggle { position: relative; }
.chip-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.chip-toggle label {
    display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .85rem; border-radius: 999px; cursor: pointer;
    border: 1px solid var(--border-2); background: var(--surface); color: var(--muted); font-size: .88rem; font-weight: 500; transition: all .2s var(--ease);
}
.chip-toggle label:hover { border-color: var(--c); color: #fff; }
.chip-toggle input:checked + label { background: color-mix(in srgb, var(--c) 22%, transparent); border-color: var(--c); color: #fff; box-shadow: 0 0 18px -6px var(--c); }
.chip-toggle .star { display: none; color: var(--gold); cursor: pointer; }
.chip-toggle input:checked + label .star { display: inline; opacity: .35; }
.chip-toggle input:checked + label .star.on { opacity: 1; }

/* ── Badges / tags ──────────────────────────────────────── */
.badge {
    display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .6rem; border-radius: 999px; font-size: .74rem; font-weight: 600;
    background: color-mix(in srgb, var(--c, var(--primary)) 18%, transparent); color: color-mix(in srgb, var(--c, var(--primary)) 70%, white);
    border: 1px solid color-mix(in srgb, var(--c, var(--primary)) 35%, transparent); white-space: nowrap;
}
.badge.gold { --c: var(--gold); }
.badge.green { --c: var(--success); }
.badge.red { --c: var(--danger); }
.badge.amber { --c: var(--warning); }
.badge.gray { --c: #9ca3af; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--primary)); display: inline-block; flex-shrink: 0; box-shadow: 0 0 10px var(--c, var(--primary)); }
.func-icon { width: 34px; height: 34px; border-radius: 10px; display: inline-grid; place-items: center; flex-shrink: 0; background: color-mix(in srgb, var(--c) 18%, transparent); color: var(--c); font-size: 1rem; }
.func-icon.lg { width: 46px; height: 46px; font-size: 1.3rem; border-radius: 13px; }

/* ── Avatar ─────────────────────────────────────────────── */
.avatar {
    --h: 270; width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; flex-shrink: 0;
    font-weight: 700; font-size: .9rem; color: #fff; overflow: hidden;
    background: linear-gradient(135deg, hsl(var(--h) 70% 55%), hsl(calc(var(--h) + 40) 70% 42%));
    box-shadow: 0 0 0 2px rgba(255,255,255,.06);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.sm { width: 32px; height: 32px; font-size: .75rem; }
.avatar.xs { width: 26px; height: 26px; font-size: .65rem; }
.avatar.lg { width: 64px; height: 64px; font-size: 1.3rem; }
.avatar.xl { width: 96px; height: 96px; font-size: 2rem; }
.avatar-stack { display: flex; }
.avatar-stack .avatar { margin-left: -8px; box-shadow: 0 0 0 2px var(--bg); }
.avatar-stack .avatar:first-child { margin-left: 0; }

/* ── Tables / lists ─────────────────────────────────────── */
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); font-weight: 600; padding: .85rem 1rem; border-bottom: 1px solid var(--border); }
.table td { padding: .8rem 1rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .15s; }
.table tbody tr:hover { background: rgba(255,255,255,.025); }
.table-wrap { overflow-x: auto; }
.person { display: flex; align-items: center; gap: .75rem; }
.person b { display: block; font-weight: 600; }
.person small { color: var(--muted); }
.list { display: flex; flex-direction: column; }
.list-item { display: flex; align-items: center; gap: .8rem; padding: .75rem 0; border-bottom: 1px solid var(--border); }
.list-item:last-child { border-bottom: 0; }
.empty { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.empty i { font-size: 2.5rem; display: block; margin-bottom: .75rem; color: var(--dim); }

/* ── Alerts & toasts ────────────────────────────────────── */
.alert { display: flex; align-items: center; gap: .6rem; padding: .85rem 1rem; border-radius: var(--radius); margin-bottom: 1rem; border: 1px solid; font-size: .92rem; transition: opacity .4s, transform .4s; }
.alert-success { background: rgba(34,197,94,.1); border-color: rgba(34,197,94,.3); color: #bbf7d0; }
.alert-error   { background: rgba(239,68,68,.1); border-color: rgba(239,68,68,.3); color: #fecaca; }
.alert-info    { background: rgba(56,189,248,.1); border-color: rgba(56,189,248,.3); color: #bae6fd; }
.alert-warning { background: rgba(245,158,11,.1); border-color: rgba(245,158,11,.3); color: #fde68a; }
.toast-wrap { position: fixed; bottom: 1.25rem; right: 1.25rem; display: flex; flex-direction: column; gap: .5rem; z-index: 200; }
.toast { padding: .8rem 1.1rem; border-radius: var(--radius); background: #1d1735; border: 1px solid var(--border-2); box-shadow: var(--shadow); display: flex; gap: .6rem; align-items: center; animation: toastIn .35s var(--ease); font-size: .9rem; }
.toast.success i { color: var(--success); } .toast.error i { color: var(--danger); }

/* ── Modal (dialog) ─────────────────────────────────────── */
dialog.modal {
    border: 1px solid var(--border-2); border-radius: var(--radius-lg); padding: 0; background: #16112b; color: var(--text);
    width: min(560px, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); box-shadow: 0 30px 80px -20px rgba(0,0,0,.8);
}
dialog.modal[open] { animation: modalIn .3s var(--ease); }
dialog.modal::backdrop { background: rgba(5,3,12,.7); backdrop-filter: blur(6px); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 1.25rem; border-bottom: 1px solid var(--border); }
.modal-head h3 { margin: 0; }
.modal-body { padding: 1.25rem; overflow-y: auto; max-height: calc(100vh - 12rem); }
.modal-foot { display: flex; justify-content: flex-end; gap: .5rem; padding: 1rem 1.25rem; border-top: 1px solid var(--border); }

/* ── Tabs / segmented ───────────────────────────────────── */
.segmented { display: inline-flex; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 4px; gap: 2px; }
.segmented a, .segmented button { padding: .45rem .9rem; border-radius: 9px; color: var(--muted); font-weight: 500; font-size: .88rem; border: 0; background: transparent; cursor: pointer; font-family: inherit; }
.segmented .active { background: var(--surface-3); color: #fff; }

/* ── Calendário ─────────────────────────────────────────── */
.month-nav { display: flex; align-items: center; gap: .5rem; }
.month-nav h1 { margin: 0 .5rem; min-width: 210px; text-align: center; font-size: 1.6rem; }
.calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-dow { text-align: center; font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--dim); font-weight: 600; padding: .4rem 0; }
.cal-day {
    min-height: 128px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); padding: .45rem;
    display: flex; flex-direction: column; gap: 4px; transition: border-color .2s, background .2s; position: relative;
}
.cal-day:hover { border-color: var(--border-2); background: rgba(255,255,255,.05); }
.cal-day.out { opacity: .3; }
.cal-day.today { border-color: rgba(245,185,66,.55); box-shadow: inset 0 0 0 1px rgba(245,185,66,.25); }
.cal-day .num { font-size: .82rem; font-weight: 600; color: var(--muted); display: flex; justify-content: space-between; align-items: center; }
.cal-day.today .num span { background: var(--gold); color: #1a1205; border-radius: 6px; padding: 0 .4rem; }
.cal-day .add-ev { opacity: 0; width: 22px; height: 22px; font-size: .8rem; border-radius: 6px; }
.cal-day:hover .add-ev { opacity: 1; }
.cal-event {
    display: block; padding: .38rem .5rem; border-radius: 8px; font-size: .76rem; line-height: 1.25; color: #fff;
    background: color-mix(in srgb, var(--c) 20%, transparent); border-left: 3px solid var(--c); transition: transform .15s, background .15s;
}
.cal-event:hover { transform: translateX(2px); background: color-mix(in srgb, var(--c) 32%, transparent); color: #fff; }
.cal-event b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-event .meta { display: flex; justify-content: space-between; color: rgba(255,255,255,.7); margin-top: 2px; gap: 4px; }
.progress { height: 5px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: 99px; background: var(--grad); transition: width .5s var(--ease); }
.progress.full > span { background: var(--success); }
.cal-event .progress { margin-top: 4px; height: 3px; }

.legend { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .82rem; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: .4rem; }

/* ── Montagem de escala ─────────────────────────────────── */
.event-hero {
    border-radius: var(--radius-lg); padding: 1.5rem; margin-bottom: 1.25rem; position: relative; overflow: hidden;
    background: linear-gradient(135deg, color-mix(in srgb, var(--c) 30%, #16112b), #16112b 70%); border: 1px solid color-mix(in srgb, var(--c) 35%, transparent);
}
.event-hero::after { content: '\F4D9'; font-family: 'bootstrap-icons'; position: absolute; right: -10px; bottom: -40px; font-size: 11rem; opacity: .06; }
.event-date { display: flex; align-items: center; gap: 1rem; }
.date-box { width: 68px; text-align: center; border-radius: 14px; background: rgba(0,0,0,.3); border: 1px solid var(--border-2); padding: .4rem 0; flex-shrink: 0; }
.date-box b { display: block; font-size: 1.7rem; line-height: 1; }
.date-box small { text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-size: .7rem; }
.slots { display: flex; flex-direction: column; gap: .5rem; }
.slot {
    display: grid; grid-template-columns: 190px minmax(0, 1fr) auto; align-items: center; gap: .85rem;
    padding: .6rem .75rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); transition: border-color .2s, background .2s;
}
.slot:hover { border-color: var(--border-2); }
.slot.empty-slot { border-style: dashed; }
.slot.warn { border-color: rgba(245,158,11,.45); background: rgba(245,158,11,.05); }
.slot.bad { border-color: rgba(239,68,68,.45); background: rgba(239,68,68,.05); }
.slot-func { display: flex; align-items: center; gap: .6rem; font-weight: 600; font-size: .9rem; }
.slot-pick { position: relative; }
.picker-btn {
    width: 100%; display: flex; align-items: center; gap: .65rem; padding: .45rem .6rem; border-radius: var(--radius-sm);
    background: rgba(0,0,0,.2); border: 1px solid var(--border); color: var(--text); font: inherit; cursor: pointer; text-align: left; transition: all .2s;
}
.picker-btn:hover { border-color: var(--primary); background: rgba(139,92,246,.08); }
.picker-btn .ph { color: var(--dim); display: flex; align-items: center; gap: .5rem; }
.picker-btn .ph i { width: 32px; height: 32px; border-radius: 50%; border: 1px dashed var(--border-2); display: grid; place-items: center; }
.picker-btn .warn-txt { font-size: .76rem; color: var(--warning); display: block; }
.picker-btn .bad-txt { font-size: .76rem; color: #fca5a5; display: block; }
.dropdown {
    position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 60; background: #1b1533; border: 1px solid var(--border-2);
    border-radius: var(--radius); box-shadow: 0 20px 50px -10px rgba(0,0,0,.8); padding: .4rem; max-height: 340px; overflow-y: auto; animation: modalIn .18s var(--ease);
}
.dropdown input { margin-bottom: .35rem; }
.dd-item { display: flex; align-items: center; gap: .6rem; padding: .5rem .55rem; border-radius: 9px; cursor: pointer; transition: background .12s; }
.dd-item:hover, .dd-item.focus { background: var(--surface-3); }
.dd-item .grow b { font-weight: 500; font-size: .9rem; display: flex; align-items: center; gap: .35rem; }
.dd-item .grow small { color: var(--muted); display: block; font-size: .74rem; }
.dd-item.st-indisponivel { opacity: .5; }
.dd-item.st-indisponivel small { color: #fca5a5; }
.dd-item.st-mesmo_dia small, .dd-item.st-mesmo_evento small { color: var(--warning); }
.dd-item .load { font-size: .72rem; color: var(--dim); white-space: nowrap; }
.dd-sep { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--dim); padding: .5rem .55rem .25rem; }
.dd-clear { color: #fca5a5; }

.team-card { display: flex; align-items: center; gap: .75rem; padding: .75rem; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); cursor: pointer; transition: all .2s var(--ease); width: 100%; color: var(--text); font: inherit; text-align: left; }
.team-card:hover { border-color: var(--c); background: color-mix(in srgb, var(--c) 10%, transparent); transform: translateY(-1px); }
.team-card.active { border-color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); box-shadow: 0 0 20px -8px var(--c); }
.team-swatch { width: 38px; height: 38px; border-radius: 11px; background: var(--c); display: grid; place-items: center; color: #fff; font-weight: 700; flex-shrink: 0; box-shadow: 0 4px 14px -4px var(--c); }

/* Compartilhar / impressão */
.share-sheet { background: linear-gradient(160deg, #1c1438, #0f0b1f 70%); border-radius: 22px; padding: 2rem; border: 1px solid var(--border-2); max-width: 900px; margin: 0 auto; }
.share-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--border); }
.share-head h2 { font-size: 1.9rem; margin: 0; }
.share-head h2 span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.share-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.share-ev { border-radius: 16px; padding: 1rem; background: rgba(255,255,255,.04); border: 1px solid var(--border); border-top: 3px solid var(--c); }
.share-ev h4 { margin: 0 0 .1rem; font-size: 1rem; }
.share-ev .when { color: var(--gold); font-weight: 600; font-size: .85rem; }
.share-ev ul { list-style: none; padding: 0; margin: .65rem 0 0; display: flex; flex-direction: column; gap: .3rem; }
.share-ev li { display: flex; gap: .5rem; font-size: .86rem; }
.share-ev li span { color: var(--muted); min-width: 92px; }
.whats-preview { white-space: pre-wrap; font-family: inherit; background: #0b141a; color: #e9edef; border-radius: 14px; padding: 1rem; font-size: .88rem; max-height: 480px; overflow-y: auto; border: 1px solid #1f2c33; }

/* ── Grade Oficial Estilo Quadro CerMusic (Idêntica à Imagem) ── */
.quadro-oficial {
    background: #000;
    border: 3px solid #222;
    border-radius: 12px;
    padding: 10px;
    color: #fff;
    box-shadow: 0 20px 50px rgba(0,0,0,0.9);
    margin: 0 auto 1.5rem;
    overflow-x: auto;
}
.quadro-banner {
    background: #ffff00;
    color: #000;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    padding: 0.5rem 1rem;
    margin-bottom: 8px;
    text-transform: uppercase;
    font-family: 'Outfit', Arial, sans-serif;
    border-radius: 4px;
}
.quadro-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}
@media (max-width: 1200px) {
    .quadro-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
    .quadro-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 550px) {
    .quadro-grid { grid-template-columns: 1fr; }
}
.quadro-col {
    background: #050505;
    border: 1px solid #333;
    display: flex;
    flex-direction: column;
}
.quadro-col-head {
    text-align: center;
    font-weight: 800;
    font-size: 0.88rem;
    padding: 0.45rem 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.quadro-col-head.domingo {
    background: #f5b942;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}
.quadro-col-head.quarta {
    background: #00bfff;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}
.quadro-col-head.quinta {
    background: #22c55e;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}
.quadro-tabela {
    width: 100%;
    border-collapse: collapse;
}
.quadro-tabela td {
    border: 1px solid #3a3a3a;
    padding: 0.35rem 0.5rem;
    font-size: 0.82rem;
    text-transform: uppercase;
    line-height: 1.2;
}
.quadro-tabela td.funcao {
    font-weight: 700;
    color: #d1d5db;
    width: 48%;
    background: #0d0d0d;
}
.quadro-tabela td.musico {
    font-weight: 900;
    color: #ffffff;
    width: 52%;
    background: #141414;
    text-align: center;
}
.quadro-tabela td.musico.vazio {
    color: #ef4444;
    font-style: italic;
    font-weight: normal;
}

/* ── Auth ───────────────────────────────────────────────── */
.auth-page { display: grid; place-items: center; padding: 1.5rem; min-height: 100vh; overflow: hidden; }
.auth-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.auth-bg::before, .auth-bg::after { content: ''; position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; animation: float 14s ease-in-out infinite; }
.auth-bg::before { width: 520px; height: 520px; background: #7c3aed; top: -140px; left: -120px; }
.auth-bg::after { width: 460px; height: 460px; background: #c026d3; bottom: -160px; right: -100px; animation-delay: -7s; opacity: .4; }
.auth-card { width: min(430px, 100%); border-radius: 26px; padding: 2.25rem; animation: fadeUp .6s var(--ease); box-shadow: 0 40px 80px -30px rgba(0,0,0,.8); }
.auth-card h1 { text-align: center; font-size: 1.5rem; }
.auth-card > .muted { text-align: center; }
.notes { position: absolute; inset: 0; pointer-events: none; }
.notes i { position: absolute; color: rgba(255,255,255,.08); animation: rise linear infinite; font-size: 2rem; }

/* ── Animations ─────────────────────────────────────────── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes toastIn { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(60px, 40px); } }
@keyframes rise { from { transform: translateY(110vh) rotate(0); } to { transform: translateY(-20vh) rotate(25deg); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }
.stagger > * { animation: fadeUp .45s var(--ease) both; }
.stagger > *:nth-child(2) { animation-delay: .04s; } .stagger > *:nth-child(3) { animation-delay: .08s; }
.stagger > *:nth-child(4) { animation-delay: .12s; } .stagger > *:nth-child(5) { animation-delay: .16s; }
.stagger > *:nth-child(6) { animation-delay: .2s; }  .stagger > *:nth-child(n+7) { animation-delay: .24s; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1100px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .layout-side { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
    .only-mobile { display: inline-grid !important; }
    .sidebar { position: fixed; left: 0; transform: translateX(-100%); transition: transform .3s var(--ease); }
    .sidebar.open { transform: none; box-shadow: 20px 0 60px rgba(0,0,0,.6); }
    .sidebar-backdrop.open { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 45; }
    .topbar { padding: .75rem 1rem; }
    .content { padding: 1.25rem 1rem 3rem; }
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .calendar { grid-template-columns: 1fr; }
    .cal-dow, .cal-day.out, .cal-day.no-events { display: none; }
    .cal-day { min-height: auto; }
    .slot { grid-template-columns: 1fr; gap: .5rem; }
    .month-nav h1 { min-width: 0; font-size: 1.3rem; }
    .hide-mobile { display: none; }
}
@media (max-width: 520px) { .grid-4 { grid-template-columns: 1fr 1fr; } .stat-value { font-size: 1.4rem; } }

@media print {
    .sidebar, .topbar, .no-print, .toast-wrap { display: none !important; }
    body { background: #fff; }
    .content { padding: 0; }
}
