* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #12091d;
    color: #ffffff;
}

a {
    color: inherit;
    text-decoration: none;
}

.app-shell {
    max-width: 520px;
    margin: 0 auto;
    min-height: 100vh;
    background: linear-gradient(180deg, #2B123F 0%, #12091d 45%);
    padding-bottom: 78px;
}

.topbar {
    padding: 22px 18px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    font-size: 22px;
    font-weight: 800;
}

.hello {
    margin-top: 6px;
    font-size: 14px;
    color: #d8c9e8;
}

.profile-btn {
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,0.12);
    display: grid;
    place-items: center;
    border-radius: 50%;
}

.content {
    padding: 10px 18px 24px;
}

.search-hero {
    background: #ffffff;
    color: #211827;
    border-radius: 20px;
    padding: 18px;
    margin-bottom: 18px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.22);
}

.search-hero strong {
    display: block;
    font-size: 18px;
    margin-bottom: 10px;
}

.search-box {
    width: 100%;
    padding: 15px 16px;
    border: 0;
    border-radius: 14px;
    background: #f1edf5;
    font-size: 16px;
}

.card {
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 18px;
    padding: 16px;
    margin-bottom: 14px;
}

.card h2 {
    margin: 0 0 12px;
    font-size: 18px;
}

.muted {
    color: #c8b8d9;
    font-size: 14px;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.quick-btn {
    background: rgba(255,255,255,0.12);
    border-radius: 16px;
    padding: 14px 10px;
    text-align: center;
    font-size: 14px;
}

.quick-btn span {
    display: block;
    font-size: 24px;
    margin-bottom: 6px;
}

.primary-btn {
    display: inline-block;
    background: #D8A84F;
    color: #211827;
    font-weight: 700;
    border-radius: 14px;
    padding: 12px 16px;
    margin-top: 10px;
}

.bottom-nav {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 100%;
    max-width: 520px;
    background: #1a0d2a;
    border-top: 1px solid rgba(255,255,255,0.12);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 8px 0 10px;
}

.bottom-nav a {
    text-align: center;
    font-size: 20px;
    color: #d8c9e8;
}

.bottom-nav span {
    display: block;
    font-size: 11px;
    margin-top: 3px;
}

svg.lucide {
    width: 22px;
    height: 22px;
    stroke-width: 2;
}

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

.brand svg {
    color: #D8A84F;
}

.profile-btn svg {
    width: 22px;
    height: 22px;
}

.quick-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.quick-btn svg {
    width: 26px;
    height: 26px;
    color: #D8A84F;
}

.bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
}

.bottom-nav svg {
    width: 21px;
    height: 21px;
}

.music-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.music-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255,255,255,0.10);
    border-radius: 14px;
    padding: 14px;
}

.music-item strong {
    display: block;
    font-size: 16px;
    margin-bottom: 4px;
}

.music-item span {
    display: block;
    font-size: 13px;
    color: #c8b8d9;
}

.music-header-card {
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 20px;
    padding: 16px;
    margin-bottom: 14px;
}

.back-link {
    display: inline-block;
    color: #D8A84F;
    font-size: 14px;
    margin-bottom: 12px;
}

.music-header-card h1 {
    margin: 0;
    font-size: 24px;
}

.music-header-card p {
    margin: 6px 0 12px;
    color: #c8b8d9;
}

.music-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.music-meta span {
    background: rgba(216,168,79,0.18);
    color: #f5d894;
    border: 1px solid rgba(216,168,79,0.25);
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 13px;
}

.chord-card {
    background: #fffdf8;
    color: #211827;
    border-radius: 18px;
    padding: 18px;
    margin-bottom: 14px;
    overflow-x: auto;
}

.chord-content {
    margin: 0;
    white-space: pre-wrap;
    font-family: 'Courier New', monospace;
    font-size: 17px;
    line-height: 1.7;
}

.music-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 9px;
    margin-bottom: 14px;
}

.action-btn {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 14px;
    padding: 13px;
    text-align: center;
    color: #fff;
    font-weight: 700;
}

.form-input {
    width: 100%;
    border: 0;
    border-radius: 14px;
    padding: 14px;
    margin: 8px 0 14px;
    background: rgba(255,255,255,0.12);
    color: #fff;
    font-size: 15px;
    outline: none;
}

.form-input::placeholder {
    color: #bfaed1;
}

label {
    display: block;
    font-size: 14px;
    color: #d8c9e8;
}

.full-btn {
    border: 0;
    width: 100%;
    text-align: center;
    font-size: 15px;
    cursor: pointer;
}

.alert-error {
    background: rgba(255, 60, 60, 0.14);
    color: #ffb4b4;
    border: 1px solid rgba(255, 60, 60, 0.25);
    padding: 12px;
    border-radius: 14px;
}

.alert-success {
    background: rgba(46, 204, 113, 0.14);
    color: #a8f0c5;
    border: 1px solid rgba(46, 204, 113, 0.25);
    padding: 12px;
    border-radius: 14px;
}


.favorite-btn {
    display: inline-block;
    margin-top: 14px;
    background: rgba(216,168,79,0.18);
    color: #f5d894;
    border: 1px solid rgba(216,168,79,0.25);
    border-radius: 999px;
    padding: 9px 13px;
    font-size: 14px;
    font-weight: 700;
}

.blocos-lista {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.bloco-item {
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 18px;
    padding: 14px;
}

.bloco-topo {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.drag-handle {
    width: 34px;
    height: 34px;
    background: rgba(216,168,79,0.18);
    color: #f5d894;
    border-radius: 10px;
    display: grid;
    place-items: center;
    cursor: grab;
    font-weight: bold;
}

.bloco-info strong {
    display: block;
    font-size: 17px;
}

.bloco-info span {
    display: block;
    color: #c8b8d9;
    font-size: 13px;
    margin-top: 3px;
}

.bloco-acoes {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 12px 0;
}

.bloco-acoes a {
    background: rgba(255,255,255,0.12);
    border-radius: 999px;
    padding: 7px 10px;
    font-size: 13px;
    color: #fff;
}

.musicas-bloco {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.musica-mini {
    background: rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 10px;
    display: block;
}

.musica-mini small {
    display: block;
    color: #c8b8d9;
    margin-top: 3px;
}

.bloco-vazio {
    margin: 10px 0 0;
}

.music-item-form {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
}

.add-music-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.mini-input {
    width: 100%;
    border: 0;
    border-radius: 10px;
    padding: 10px;
    background: rgba(255,255,255,0.14);
    color: #fff;
    font-size: 13px;
    outline: none;
}

.mini-input::placeholder {
    color: #c8b8d9;
}

.small-gold-btn {
    grid-column: span 2;
    border: 0;
    border-radius: 12px;
    padding: 11px;
    background: #D8A84F;
    color: #211827;
    font-weight: 800;
    cursor: pointer;
}

.event-note {
    margin-top: 12px;
    background: rgba(216,168,79,0.14);
    border: 1px solid rgba(216,168,79,0.25);
    color: #f5d894;
    border-radius: 14px;
    padding: 10px 12px;
    font-size: 14px;
}

.check-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 14px 0;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.10);
    border-radius: 14px;
    padding: 12px;
    cursor: pointer;
}

.check-item input {
    width: 20px;
    height: 20px;
}

.check-item strong {
    display: block;
    font-size: 15px;
}

.check-item small {
    display: block;
    color: #c8b8d9;
    font-size: 12px;
    margin-top: 3px;
}

.participant-card {
    background: rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 10px;
}

.permission-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 10px;
    padding-left: 6px;
}

.permission-grid label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #d8c9e8;
}

.permission-grid input {
    width: 16px;
    height: 16px;
}

.personal-note {
    background: rgba(255,255,255,0.10);
    border-color: rgba(255,255,255,0.18);
    color: #ffffff;
}

.featured-event {
    border-color: rgba(216,168,79,0.35);
    background: linear-gradient(135deg, rgba(216,168,79,0.18), rgba(255,255,255,0.08));
}

.mini-label {
    display: inline-block;
    color: #f5d894;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.transpose-panel {
    display: grid;
    grid-template-columns: 54px 1fr 54px;
    gap: 10px;
    align-items: center;
    margin: 14px 0;
}

.transpose-btn {
    height: 54px;
    border: 0;
    border-radius: 16px;
    background: rgba(216,168,79,0.18);
    color: #f5d894;
    font-size: 28px;
    font-weight: 900;
    cursor: pointer;
}

.current-key-btn {
    min-height: 58px;
    border: 1px solid rgba(216,168,79,0.35);
    border-radius: 18px;
    background: rgba(216,168,79,0.16);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    cursor: pointer;
}

.current-key-btn span {
    font-size: 12px;
    color: #f5d894;
}

.current-key-btn strong {
    font-size: 26px;
    line-height: 1;
}

.current-key-btn small {
    font-size: 11px;
    color: #c8b8d9;
}

.key-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.68);
    display: none;
    align-items: flex-end;
    justify-content: center;
    z-index: 9999;
    padding: 16px;
}

.key-modal.active {
    display: flex;
}

.key-modal-box {
    width: 100%;
    max-width: 520px;
    background: #1a0d2a;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 24px 24px 18px 18px;
    padding: 18px;
    box-shadow: 0 -16px 40px rgba(0,0,0,0.35);
}

.key-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.key-modal-header strong {
    font-size: 18px;
}

.key-modal-header button {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

.key-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.key-grid button {
    height: 48px;
    border: 0;
    border-radius: 14px;
    background: rgba(255,255,255,0.10);
    color: #fff;
    font-size: 17px;
    font-weight: 800;
    cursor: pointer;
}

.key-grid button.active {
    background: #D8A84F;
    color: #211827;
}

.transpose-panel {
    display: grid;
    grid-template-columns: 54px 1fr 54px;
    gap: 10px;
    align-items: center;
    margin: 14px 0;
}

.transpose-btn {
    height: 54px;
    border: 0;
    border-radius: 16px;
    background: rgba(216,168,79,0.18);
    color: #f5d894;
    font-size: 28px;
    font-weight: 900;
    cursor: pointer;
}

.current-key-btn {
    min-height: 58px;
    border: 1px solid rgba(216,168,79,0.35);
    border-radius: 18px;
    background: rgba(216,168,79,0.16);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    cursor: pointer;
}

.current-key-btn span {
    font-size: 12px;
    color: #f5d894;
}

.current-key-btn strong {
    font-size: 26px;
    line-height: 1;
}

.current-key-btn small {
    font-size: 11px;
    color: #c8b8d9;
}

.key-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.68);
    display: none;
    align-items: flex-end;
    justify-content: center;
    z-index: 9999;
    padding: 16px;
}

.key-modal.active {
    display: flex;
}

.key-modal-box {
    width: 100%;
    max-width: 520px;
    background: #1a0d2a;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 24px 24px 18px 18px;
    padding: 18px;
    box-shadow: 0 -16px 40px rgba(0,0,0,0.35);
}

.key-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.key-modal-header strong {
    font-size: 18px;
}

.key-modal-header button {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

.key-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.key-grid button {
    height: 48px;
    border: 0;
    border-radius: 14px;
    background: rgba(255,255,255,0.10);
    color: #fff;
    font-size: 17px;
    font-weight: 800;
    cursor: pointer;
}

.key-grid button.active {
    background: #D8A84F;
    color: #211827;
}

.cifra-textarea {
    font-family: 'Courier New', monospace;
    line-height: 1.6;
    min-height: 320px;
}

.tags-box {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin: 8px 0 16px;
}

.tag-check {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.10);
    border-radius: 14px;
    padding: 10px;
    cursor: pointer;
}

.tag-check input {
    width: 18px;
    height: 18px;
}

.tag-check span {
    display: flex;
    flex-direction: column;
    font-size: 14px;
    color: #fff;
}

.tag-check small {
    color: #c8b8d9;
    font-size: 11px;
    margin-top: 2px;
}

.tuner-card {
    text-align: center;
}

.tuner-display {
    margin: 22px 0;
}

.note-name {
    font-size: 72px;
    font-weight: 900;
    color: #D8A84F;
    line-height: 1;
}

.frequency {
    color: #c8b8d9;
    margin-top: 8px;
}

.tuner-meter {
    position: relative;
    height: 80px;
    margin: 28px auto 16px;
    max-width: 280px;
    border-bottom: 2px solid rgba(255,255,255,0.18);
}

.meter-line.center {
    position: absolute;
    left: 50%;
    top: 0;
    width: 3px;
    height: 80px;
    background: #D8A84F;
    transform: translateX(-50%);
}

.meter-needle {
    position: absolute;
    left: 50%;
    bottom: -8px;
    width: 4px;
    height: 70px;
    background: #ffffff;
    border-radius: 999px;
    transform: translateX(0);
    transition: transform 0.12s linear;
}

.tuner-status {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
}

.tuner-page {
    padding-bottom: 20px;
}

.tuner-hero {
    text-align: center;
    margin: 10px 0 22px;
}

.tuner-hero h1 {
    font-size: 34px;
    margin: 6px 0;
}

.tuner-hero p {
    color: #c8b8d9;
    font-size: 14px;
    margin: 0 auto;
    max-width: 300px;
}

.tuner-orb {
    display: flex;
    justify-content: center;
    margin: 24px 0;
}

.tuner-ring {
    width: 230px;
    height: 230px;
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(216,168,79,0.22) 0%, rgba(43,18,63,0.9) 58%, rgba(18,9,29,1) 100%);
    border: 2px solid rgba(216,168,79,0.42);
    box-shadow:
        0 0 40px rgba(216,168,79,0.22),
        inset 0 0 38px rgba(216,168,79,0.12);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.note-name {
    font-size: 82px;
    font-weight: 900;
    color: #D8A84F;
    line-height: 1;
    text-shadow: 0 0 22px rgba(216,168,79,0.55);
}

.frequency {
    color: #f5d894;
    margin-top: 8px;
    font-weight: 700;
}

.tuner-scale {
    max-width: 320px;
    margin: 8px auto 6px;
    display: flex;
    justify-content: space-between;
    color: #8f7ca5;
    font-size: 11px;
}

.tuner-meter-tech {
    position: relative;
    max-width: 320px;
    height: 82px;
    margin: 0 auto 18px;
    border-radius: 22px;
    background:
        linear-gradient(90deg,
            rgba(255,80,80,0.28),
            rgba(255,255,255,0.08),
            rgba(216,168,79,0.35),
            rgba(255,255,255,0.08),
            rgba(255,80,80,0.28)
        );
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.12);
}

.tuner-meter-tech::before {
    content: "";
    position: absolute;
    inset: 16px;
    border-radius: 18px;
    border-top: 1px solid rgba(255,255,255,0.16);
}

.meter-center-glow {
    position: absolute;
    left: 50%;
    top: 0;
    width: 5px;
    height: 100%;
    transform: translateX(-50%);
    background: #D8A84F;
    box-shadow: 0 0 20px rgba(216,168,79,0.9);
}

.meter-needle-tech {
    position: absolute;
    left: 50%;
    top: 10px;
    width: 5px;
    height: 62px;
    background: #ffffff;
    border-radius: 999px;
    transform: translateX(0);
    transition: transform 0.12s linear;
    box-shadow: 0 0 18px rgba(255,255,255,0.8);
}

.tuner-status-tech {
    text-align: center;
    font-size: 20px;
    font-weight: 800;
    margin: 18px 0;
    color: #ffffff;
}

.tuner-start {
    margin-top: 12px;
}

.bottom-nav {
    background: rgba(26, 13, 42, 0.96);
    backdrop-filter: blur(12px);
}

.bottom-nav a {
    opacity: 0.78;
    transition: 0.2s ease;
}

.bottom-nav a:hover {
    opacity: 1;
    color: #D8A84F;
}

.bottom-nav svg {
    margin-bottom: 2px;
}

.auth-shell {
    min-height: 100vh;
    background:
        radial-gradient(circle at top, rgba(216,168,79,0.22), transparent 35%),
        linear-gradient(180deg, #2B123F 0%, #12091d 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 28px;
    padding: 24px;
    box-shadow: 0 18px 50px rgba(0,0,0,0.35);
}

.auth-logo {
    text-align: center;
    margin-bottom: 22px;
}

.auth-logo img {
    width: 96px;
    height: 96px;
    object-fit: contain;
    margin-bottom: 10px;
}

.auth-logo h1 {
    margin: 0;
    font-size: 28px;
    color: #fff;
}

.invite-box {
    background: rgba(0,0,0,0.18);
    border: 1px solid rgba(216,168,79,0.26);
    border-radius: 22px;
    padding: 18px;
    margin-bottom: 18px;
    text-align: center;
}

.invite-box h2 {
    margin: 8px 0;
    font-size: 24px;
}

.invite-event {
    margin-top: 14px;
    background: rgba(216,168,79,0.14);
    border-radius: 16px;
    padding: 12px;
}

.invite-event strong {
    display: block;
}

.invite-event span {
    color: #f5d894;
    font-size: 13px;
}

.secondary-btn {
    display: inline-block;
    background: rgba(255,255,255,0.12);
    color: #fff;
    font-weight: 700;
    border-radius: 14px;
    padding: 12px 16px;
    margin-top: 10px;
    text-align: center;
}

.invite-premium {
    width: 100%;
    max-width: 520px;
    min-height: 100vh;
    margin: 0 auto;
    padding: 34px 22px;
    color: #fff;
    text-align: center;
    background:
        radial-gradient(circle at top, rgba(216,168,79,0.28), transparent 34%),
        radial-gradient(circle at bottom, rgba(43,18,63,0.9), transparent 48%),
        linear-gradient(180deg, #05081d 0%, #12091d 100%);
    position: relative;
    overflow: hidden;
}

.invite-premium::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, transparent 0%, rgba(216,168,79,0.08) 48%, transparent 70%);
    pointer-events: none;
}

.invite-logo {
    position: relative;
    z-index: 1;
    margin: 20px auto 30px;
}

.invite-logo img {
    width: 260px;
    max-width: 90%;
    filter: drop-shadow(0 0 28px rgba(216,168,79,0.25));
}

.invite-subtitle {
    position: relative;
    z-index: 1;
    color: #e7dff0;
    font-size: 20px;
    line-height: 1.45;
    margin: 0 auto 14px;
    max-width: 360px;
}

.invite-space {
    position: relative;
    z-index: 1;
    color: #D8A84F;
    font-size: 36px;
    line-height: 1.1;
    margin: 0 0 24px;
    font-family: Georgia, serif;
}

.invite-info-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 20px 0 28px;
}

.invite-info-grid div {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: #f2edf8;
    font-size: 14px;
}

.invite-info-grid svg {
    color: #D8A84F;
    width: 20px;
    height: 20px;
}

.gold-divider {
    position: relative;
    z-index: 1;
    height: 1px;
    margin: 28px auto;
    max-width: 360px;
    background: linear-gradient(90deg, transparent, #D8A84F, transparent);
}

.invite-premium h2 {
    position: relative;
    z-index: 1;
    color: #D8A84F;
    font-size: 20px;
    margin-bottom: 20px;
}

.invite-features {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-bottom: 34px;
}

.invite-features div {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 18px;
    padding: 16px 10px;
}

.invite-features svg {
    color: #D8A84F;
    width: 32px;
    height: 32px;
    margin-bottom: 8px;
}

.invite-features span {
    display: block;
    font-size: 13px;
    color: #fff;
    line-height: 1.35;
}

.invite-primary,
.invite-secondary {
    position: relative;
    z-index: 1;
    min-height: 58px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 14px;
}

.invite-primary {
    background: linear-gradient(135deg, #D8A84F, #f0ca72);
    color: #07112b;
}

.invite-secondary {
    border: 1px solid #D8A84F;
    color: #D8A84F;
    background: rgba(255,255,255,0.04);
}

.invite-primary svg,
.invite-secondary svg {
    width: 22px;
    height: 22px;
}

.invite-secure {
    position: relative;
    z-index: 1;
    margin-top: 26px;
    color: #c8b8d9;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.invite-secure svg {
    width: 18px;
    height: 18px;
}

.login-premium {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-logo {
    text-align: center;
    margin-bottom: 20px;
}

.login-logo img {
    width: 240px;
    max-width: 100%;
}

.login-premium h1 {
    text-align: center;
    color: #fff;
    margin-bottom: 10px;
    font-size: 32px;
}

.login-subtitle {
    text-align: center;
    color: #c8b8d9;
    margin-bottom: 30px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.login-form label {
    color: #f0e8f8;
    font-size: 14px;
}

.login-input {
    height: 56px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.08);
    color: #fff;
    padding: 0 16px;
    font-size: 16px;
}

.login-input:focus {
    outline: none;
    border-color: #D8A84F;
}

.login-btn {
    height: 58px;
    border: 0;
    border-radius: 16px;
    margin-top: 12px;
    font-weight: 800;
    font-size: 16px;
    background: linear-gradient(
        135deg,
        #D8A84F,
        #f0ca72
    );
    color: #081225;
    cursor: pointer;
}

.login-secondary {
    height: 58px;
    border-radius: 16px;
    border: 1px solid #D8A84F;
    color: #D8A84F;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 14px;
    font-weight: 700;
}

.login-divider {
    text-align: center;
    margin: 22px 0 8px;
    position: relative;
}

.login-divider::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: rgba(255,255,255,0.12);
}

.login-divider span {
    background: #12091d;
    color: #c8b8d9;
    padding: 0 14px;
    position: relative;
}

.login-footer {
    text-align: center;
    margin-top: 26px;
    color: #a898bb;
}

.login-error {
    background: rgba(255,80,80,.15);
    border: 1px solid rgba(255,80,80,.25);
    color: #ffd1d1;
    border-radius: 14px;
    padding: 12px;
    margin-bottom: 18px;
}

/* =========================
   MODO TOCAR - VERSÃO LIMPA
   ========================= */

.play-tools {
    padding: 12px;
}

.play-mode {
    position: fixed;
    inset: 0;
    background: #050812;
    color: #fff;
    z-index: 99999;
    display: none;
    overflow-y: auto;
    padding: 78px 16px 112px;
}

.play-mode.active {
    display: block;
}

.no-scroll {
    overflow: hidden;
}

.play-topbar {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 520px;
    height: 58px;
    background: rgba(5, 8, 18, 0.97);
    border-bottom: 1px solid rgba(255,255,255,0.10);
    display: grid;
    grid-template-columns: 42px 1fr 42px;
    gap: 8px;
    align-items: center;
    padding: 7px 12px;
    z-index: 100000;
}

.play-topbar button,
.play-repertorio-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border: 0;
    border-radius: 50%;
    background: rgba(216,168,79,0.18);
    color: #D8A84F;
    font-size: 21px;
    font-weight: 900;
    display: grid;
    place-items: center;
}

.play-title-info {
    min-width: 0;
    line-height: 1.15;
}

.play-title-info strong {
    display: block;
    font-size: 14px;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.play-title-info span {
    display: block;
    color: #f5d894;
    font-size: 11px;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.play-nav-event {
    position: fixed;
    left: 50%;
    top: 58px;
    transform: translateX(-50%);
    width: 100%;
    max-width: 520px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: rgba(13,16,34,0.98);
    border-bottom: 1px solid rgba(255,255,255,0.10);
    z-index: 100000;
}

.play-nav-event a,
.play-nav-event span {
    padding: 9px 5px;
    text-align: center;
    font-size: 12px;
    color: #f5d894;
    border-right: 1px solid rgba(255,255,255,0.08);
}

.play-nav-event span {
    color: #685a78;
}

.play-cifra {
    font-family: 'Courier New', monospace;
    white-space: pre-wrap;
    font-size: 22px;
    line-height: 1.75;
    margin: 0 auto;
    max-width: 520px;
    color: #fffdf8;
    padding-top: 18px;
    padding-bottom: 120px;
}

.play-controls {
    position: fixed;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    width: calc(100% - 28px);
    max-width: 492px;
    z-index: 100000;
    background: rgba(13,16,34,0.92);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 18px;
    padding: 8px;
    display: grid;
    gap: 7px;
    backdrop-filter: blur(12px);
}

.play-control-row {
    display: grid;
    grid-template-columns: 52px 1fr 52px;
    gap: 7px;
    align-items: center;
}

.play-control-row button,
.play-scroll-main {
    border: 1px solid rgba(216,168,79,0.30);
    background: rgba(216,168,79,0.14);
    color: #f5d894;
    border-radius: 12px;
    padding: 8px 6px;
    font-weight: 900;
    min-height: 38px;
    font-size: 13px;
}

.play-scroll-main {
    font-size: 13px !important;
}

.play-scroll-main strong {
    color: #fff;
}

.play-control-label {
    text-align: center;
    color: #c8b8d9;
    font-size: 10px;
    line-height: 1.05;
}

.play-control-label strong {
    display: block;
    color: #fff;
    font-size: 15px;
    margin-top: 1px;
}


.musica-mini-wrap {
    position: relative;
}

.remove-mini {
    display: inline-block;
    margin-top: 6px;
    color: #ffb4b4;
    font-size: 12px;
    padding-left: 10px;
}

.evento-hero-card {
    overflow: hidden;
}

.evento-hero-top {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    align-items: start;
}

.evento-date-badge {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: rgba(216,168,79,0.16);
    border: 1px solid rgba(216,168,79,0.28);
    color: #f5d894;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 6px;
}

.evento-date-badge strong {
    display: block;
    font-size: 22px;
    line-height: 1;
}

.evento-date-badge span {
    display: block;
    font-size: 10px;
    color: #c8b8d9;
    margin-top: -8px;
}

.evento-toolbar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 16px;
}

.evento-toolbar a {
    min-height: 62px;
    border-radius: 16px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.10);
    color: #fff;
    text-decoration: none;
    display: grid;
    place-items: center;
    gap: 4px;
    padding: 8px 4px;
    transition: .2s ease;
}

.evento-toolbar a:hover {
    transform: translateY(-2px);
    border-color: rgba(216,168,79,0.35);
}

.evento-toolbar svg {
    width: 23px;
    height: 23px;
    color: #D8A84F;
}

.evento-toolbar span {
    font-size: 10px;
    line-height: 1;
    color: #d8c9e8;
    font-weight: 700;
}

.evento-toolbar .yt-link svg {
    color: #ff6b64;
}

.evento-toolbar .sp-link svg {
    color: #1DB954;
}

.musica-mini-wrap {
    position: relative;
}

.remove-mini {
    display: inline-block;
    margin-top: 6px;
    color: #ffb4b4;
    font-size: 12px;
    padding-left: 10px;
}

.home-hero {
    background:
        radial-gradient(circle at top right, rgba(216,168,79,0.24), transparent 38%),
        linear-gradient(135deg, rgba(43,18,63,0.95), rgba(18,9,29,0.95));
    border: 1px solid rgba(216,168,79,0.20);
    border-radius: 24px;
    padding: 22px;
    margin-bottom: 14px;
    color: #fff;
}

.home-hero h1 {
    margin: 6px 0 8px;
    font-size: 30px;
}

.home-hero p {
    margin: 0;
    color: #c8b8d9;
    line-height: 1.45;
}

.home-search {
    margin-top: 0;
}

.home-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 14px 0;
}

.home-stats div {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 18px;
    padding: 14px 8px;
    text-align: center;
}

.home-stats strong {
    display: block;
    color: #D8A84F;
    font-size: 24px;
    line-height: 1;
}

.home-stats span {
    display: block;
    color: #c8b8d9;
    font-size: 12px;
    margin-top: 6px;
}

.premium-next-event {
    position: relative;
    overflow: hidden;
}

.premium-next-event::after {
    content: "";
    position: absolute;
    right: -30px;
    top: -40px;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: rgba(216,168,79,0.12);
}

.next-event-header {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    align-items: start;
    position: relative;
    z-index: 1;
}

.next-date {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: rgba(216,168,79,0.18);
    border: 1px solid rgba(216,168,79,0.30);
    color: #f5d894;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 6px;
}

.next-date strong {
    display: block;
    font-size: 22px;
    line-height: 1;
}

.next-date span {
    display: block;
    font-size: 10px;
    color: #c8b8d9;
    margin-top: -8px;
}

.event-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 14px 0;
}

.event-info-grid div {
    background: rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 10px 8px;
    color: #fff;
    font-size: 12px;
    text-align: center;
}

.event-info-grid svg {
    display: block;
    margin: 0 auto 5px;
    width: 18px;
    height: 18px;
    color: #D8A84F;
}

.section-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.section-title-row h2 {
    margin: 0;
}

.section-title-row a {
    color: #D8A84F;
    font-size: 13px;
    font-weight: 700;
}

.premium-empty {
    border-color: rgba(216,168,79,0.20);
}

.premium-quick-grid .quick-btn {
    min-height: 92px;
}

.chord-dictionary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.chord-card-mini {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 18px;
    padding: 14px;
    text-align: center;
}

.chord-card-mini strong {
    display: block;
    font-size: 22px;
    color: #D8A84F;
}

.chord-card-mini small {
    display: block;
    font-size: 11px;
    color: #c8b8d9;
    margin-bottom: 10px;
}

.chord-diagram {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 3px;
    margin-top: 8px;
}

.string {
    display: grid;
    grid-template-rows: repeat(5, 24px);
    border-top: 3px solid rgba(255,255,255,0.75);
}

.fret {
    border-left: 1px solid rgba(255,255,255,0.45);
    border-bottom: 1px solid rgba(255,255,255,0.20);
    font-size: 13px;
    color: #D8A84F;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fret:last-child {
    border-right: 1px solid rgba(255,255,255,0.45);
}

.fret.active {
    color: #fff;
    font-size: 18px;
}

.campo-harmonico-box {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 14px;
}

.campo-harmonico-box div {
    background: rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 12px;
    text-align: center;
}

.campo-harmonico-box span {
    display: block;
    font-size: 12px;
    color: #c8b8d9;
}

.campo-harmonico-box strong {
    display: block;
    font-size: 22px;
    color: #D8A84F;
}

.dictionary-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 14px 0;
}

.dictionary-tabs button,
.dictionary-groups button {
    border: 1px solid rgba(216,168,79,0.25);
    background: rgba(255,255,255,0.07);
    color: #f5d894;
    border-radius: 14px;
    padding: 11px;
    font-weight: 800;
}

.dictionary-tabs button.active,
.dictionary-groups button.active {
    background: #D8A84F;
    color: #1a0d2a;
}

.dictionary-groups {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    margin-top: 12px;
    padding-bottom: 4px;
}

.dictionary-groups button {
    white-space: nowrap;
    padding: 9px 12px;
    font-size: 12px;
}

.chord-dictionary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.chord-card-mini {
    background: #fff;
    color: #111;
    border-radius: 16px;
    padding: 12px 8px;
    text-align: center;
    box-shadow: 0 10px 22px rgba(0,0,0,0.18);
    border: 1px solid rgba(216,168,79,0.25);
}

.chord-card-mini strong {
    display: block;
    font-size: 17px;
    color: #111;
    line-height: 1.1;
}

.chord-card-mini small {
    display: block;
    min-height: 24px;
    color: #333;
    font-size: 10px;
    margin: 3px 0 6px;
}

.chord-paper {
    width: 112px;
    margin: 0 auto;
}

.nut-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    width: 112px;
    margin: 0 auto 3px;
    color: #111;
    font-size: 12px;
    font-weight: 900;
    height: 15px;
    line-height: 15px;
}

.fretboard-standard {
    position: relative;
    width: 112px;
    height: 132px;
    margin: 0 auto;
}

.v-string {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1.5px;
    background: #111;
    transform: translateX(-50%);
}

.h-fret {
    position: absolute;
    left: 0;
    right: 0;
    height: 1.5px;
    background: #111;
    transform: translateY(-50%);
}

.h-fret.nut {
    height: 4px;
}

.finger-standard {
    position: absolute;
    width: 22px;
    height: 22px;
    background: #111;
    color: #fff;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 11px;
    font-weight: 900;
    z-index: 3;
}

.barre-standard {
    position: absolute;
    height: 16px;
    background: #111;
    border-radius: 999px;
    z-index: 2;
}

.barre-standard span {
    position: absolute;
    left: 50%;
    top: -1px;
    transform: translateX(-50%);
    color: #fff;
    font-size: 10px;
    font-weight: 900;
}

.start-fret-standard {
    position: absolute;
    left: -24px;
    top: 14px;
    color: #111;
    font-size: 11px;
    font-weight: 900;
}

.campo-harmonico-box {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 14px;
}

.campo-harmonico-box div {
    background: rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 12px;
    text-align: center;
}

.campo-harmonico-box span {
    display: block;
    font-size: 12px;
    color: #c8b8d9;
}

.campo-harmonico-box strong {
    display: block;
    font-size: 22px;
    color: #D8A84F;
}

.campo-harmonico-box small {
    display: block;
    font-size: 10px;
    color: #a994bd;
    margin-top: 4px;
}

@media (min-width: 700px) {
    .chord-dictionary-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.dictionary-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin: 14px 0;
}

.dictionary-tabs button,
.dictionary-groups button {
    border: 1px solid rgba(216,168,79,0.25);
    background: rgba(255,255,255,0.07);
    color: #f5d894;
    border-radius: 14px;
    padding: 11px 6px;
    font-weight: 800;
    font-size: 12px;
}

.dictionary-tabs button.active,
.dictionary-groups button.active {
    background: #D8A84F;
    color: #1a0d2a;
}

.dictionary-groups {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    margin-top: 12px;
    padding-bottom: 4px;
}

.dictionary-groups button {
    white-space: nowrap;
    padding: 9px 12px;
}

.chord-dictionary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.chord-card-mini {
    background: #fff;
    color: #111;
    border-radius: 16px;
    padding: 12px 8px;
    text-align: center;
    box-shadow: 0 10px 22px rgba(0,0,0,0.18);
    border: 1px solid rgba(216,168,79,0.25);
}

.chord-card-mini strong {
    display: block;
    font-size: 17px;
    color: #111;
    line-height: 1.1;
}

.chord-card-mini small {
    display: block;
    min-height: 24px;
    color: #333;
    font-size: 10px;
    margin: 3px 0 6px;
}

.chord-paper {
    width: 112px;
    margin: 0 auto;
}

.ukulele-paper {
    width: 86px;
}

.nut-row {
    display: grid;
    width: 112px;
    margin: 0 auto 3px;
    color: #111;
    font-size: 12px;
    font-weight: 900;
    height: 15px;
    line-height: 15px;
}

.ukulele-paper .nut-row {
    width: 86px;
}

.fretboard-standard {
    position: relative;
    width: 112px;
    height: 132px;
    margin: 0 auto;
}

.ukulele-paper .fretboard-standard {
    width: 86px;
}

.v-string {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1.5px;
    background: #111;
    transform: translateX(-50%);
}

.h-fret {
    position: absolute;
    left: 0;
    right: 0;
    height: 1.5px;
    background: #111;
    transform: translateY(-50%);
}

.h-fret.nut {
    height: 4px;
}

.finger-standard {
    position: absolute;
    width: 22px;
    height: 22px;
    background: #111;
    color: #fff;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 11px;
    font-weight: 900;
    z-index: 3;
}

.barre-standard {
    position: absolute;
    height: 16px;
    background: #111;
    border-radius: 999px;
    z-index: 2;
}

.barre-standard span {
    position: absolute;
    left: 50%;
    top: -1px;
    transform: translateX(-50%);
    color: #fff;
    font-size: 10px;
    font-weight: 900;
}

.start-fret-standard {
    position: absolute;
    left: -24px;
    top: 14px;
    color: #111;
    font-size: 11px;
    font-weight: 900;
}

.keyboard-card {
    padding-bottom: 16px;
}

.keyboard-notes {
    color: #2B123F;
    font-size: 12px;
    font-weight: 900;
    margin-bottom: 8px;
}

.keyboard-diagram {
    position: relative;
    height: 100px;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    border: 2px solid #111;
    background: #fff;
    margin: 0 auto;
    max-width: 180px;
}

.white-key {
    position: relative;
    border-right: 1px solid #111;
    background: #fff;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 5px;
    font-size: 10px;
    font-weight: 900;
}

.white-key:last-child {
    border-right: 0;
}

.white-key.active {
    background: #D8A84F;
    color: #111;
}

.black-key {
    position: absolute;
    top: 0;
    width: 18px;
    height: 58px;
    background: #111;
    transform: translateX(-50%);
    z-index: 2;
    border-radius: 0 0 4px 4px;
    color: #fff;
    display: grid;
    place-items: end center;
    padding-bottom: 4px;
    font-size: 8px;
    font-weight: 900;
}

.black-key.active {
    background: #2B123F;
    outline: 3px solid #D8A84F;
}

.campo-harmonico-box {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 14px;
}

.campo-harmonico-box div {
    background: rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 12px;
    text-align: center;
}

.campo-harmonico-box span {
    display: block;
    font-size: 12px;
    color: #c8b8d9;
}

.campo-harmonico-box strong {
    display: block;
    font-size: 22px;
    color: #D8A84F;
}

.campo-harmonico-box small {
    display: block;
    font-size: 10px;
    color: #a994bd;
    margin-top: 4px;
}

@media (min-width: 700px) {
    .chord-dictionary-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Acordes usados na música */
.music-chords-tools {
    padding: 12px;
}

.used-chords-box {
    display: none;
    margin-top: 12px;
}

.instrument-mini-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 12px 0;
}

.instrument-mini-tabs button {
    border: 1px solid rgba(216,168,79,0.25);
    background: rgba(255,255,255,0.07);
    color: #f5d894;
    border-radius: 14px;
    padding: 10px 6px;
    font-weight: 800;
    font-size: 12px;
}

.instrument-mini-tabs button.active {
    background: #D8A84F;
    color: #1a0d2a;
}

.chord-unavailable {
    opacity: .75;
}

/* Capotraste inteligente */
.capo-smart-panel {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 18px;
    padding: 14px;
    margin: 14px 0;
}

.capo-smart-panel strong {
    display: block;
    color: #fff;
    font-size: 15px;
    margin-bottom: 3px;
}

.capo-smart-panel span {
    display: block;
    color: #c8b8d9;
    font-size: 13px;
}

.capo-smart-panel b {
    color: #D8A84F;
}

.capo-buttons {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    margin-top: 12px;
}

.capo-buttons button {
    border: 1px solid rgba(216,168,79,0.25);
    background: rgba(255,255,255,0.07);
    color: #f5d894;
    border-radius: 12px;
    padding: 10px 0;
    font-weight: 900;
}

.capo-buttons button.active {
    background: #D8A84F;
    color: #1a0d2a;
}

.pad-card {
    border: 1px solid rgba(216,168,79,0.20);
}

.pad-status {
    background: rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 12px;
    margin: 12px 0;
    color: #c8b8d9;
}

.pad-status strong {
    color: #D8A84F;
}

.pad-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 12px 0;
}

#padVolume {
    width: 100%;
}

/* Perfil e preferências */
.profile-card h3 {
    margin-top: 22px;
    margin-bottom: 10px;
}

.required {
    color: #D8A84F;
}

.profile-check-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.profile-check,
.profile-switch {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 14px;
    padding: 12px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.profile-check input,
.profile-switch input {
    width: 18px;
    height: 18px;
    accent-color: #D8A84F;
    flex: 0 0 auto;
}

.profile-switch-list {
    display: grid;
    gap: 10px;
}

.profile-switch span {
    display: grid;
    gap: 3px;
}

.profile-switch strong {
    color: #fff;
}

.profile-switch small {
    color: #c8b8d9;
    font-size: 12px;
    line-height: 1.35;
}

/* Pad ambiente */
.pad-card {
    border: 1px solid rgba(216,168,79,0.20);
}

.pad-status {
    background: rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 12px;
    margin: 12px 0;
    color: #c8b8d9;
}

.pad-status strong {
    color: #D8A84F;
}

.pad-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 12px 0;
}

#padVolume {
    width: 100%;
}

/* Tela premium da música */
.music-premium-card {
    background:
        radial-gradient(circle at top right, rgba(216,168,79,0.18), transparent 38%),
        rgba(255,255,255,0.10);
    border: 1px solid rgba(216,168,79,0.18);
    border-radius: 24px;
    padding: 16px;
    margin-bottom: 14px;
}

.music-context {
    margin: 0 0 8px;
    color: #f5d894;
    font-size: 12px;
}

.music-title-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: start;
}

.music-title-row h1 {
    margin: 0;
    font-size: 26px;
    line-height: 1.05;
}

.music-title-row p {
    margin: 6px 0 0;
    color: #c8b8d9;
    font-size: 14px;
}

.music-fav-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(216,168,79,0.16);
    border: 1px solid rgba(216,168,79,0.25);
    color: #D8A84F;
    font-size: 22px;
}

.compact-transpose {
    margin: 16px 0 10px;
}

.compact-capo {
    margin: 10px 0;
    padding: 12px;
}

.compact-capo .capo-buttons {
    gap: 7px;
}

.compact-capo .capo-buttons button {
    padding: 9px 0;
}

.compact-meta {
    margin-top: 10px;
}

.music-action-bar {
    display: grid;
    grid-template-columns: 1.2fr repeat(3, 0.9fr);
    gap: 8px;
    margin-top: 14px;
}

.music-action-main,
.music-action-pill {
    border: 0;
    min-height: 54px;
    border-radius: 16px;
    font-weight: 900;
    display: grid;
    place-items: center;
    gap: 3px;
    text-align: center;
    cursor: pointer;
}

.music-action-main {
    background: #D8A84F;
    color: #211827;
}

.music-action-pill {
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.10);
    color: #fff;
}

.music-action-pill.active {
    border-color: rgba(216,168,79,0.55);
    background: rgba(216,168,79,0.16);
    color: #f5d894;
}

.music-action-bar svg {
    width: 20px;
    height: 20px;
}

.music-action-bar span {
    font-size: 11px;
}

.pad-compact-card,
.compact-chords-panel {
    animation: fadePanel .18s ease;
}

@keyframes fadePanel {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.pad-compact-head {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: center;
}

.pad-compact-head h2 {
    margin-bottom: 4px;
}

.compact-pad-status {
    margin: 0;
    white-space: nowrap;
}

.premium-chord-card {
    margin-top: 0;
}

.compact-extra-actions {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 430px) {
    .music-action-bar {
        grid-template-columns: repeat(4, 1fr);
    }

    .music-action-main,
    .music-action-pill {
        min-height: 50px;
    }

    .music-action-bar span {
        font-size: 10px;
    }
}

/* Parceiros musicais */
.parceiros-hero {
    background:
        radial-gradient(circle at top right, rgba(216,168,79,0.18), transparent 38%),
        rgba(255,255,255,0.10);
    border-color: rgba(216,168,79,0.20);
}

.parceiro-item small {
    display: block;
    margin-top: 4px;
    color: #f5d894;
    font-size: 11px;
}

.parceiro-profile h2 {
    margin-bottom: 6px;
    font-size: 26px;
}

/* Parceiros em espaços e eventos */
.partner-action-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin: 12px 0 16px;
}

.partner-suggestion {
    border-color: rgba(216,168,79,0.28);
    background: rgba(216,168,79,0.08);
}

.partner-select-item small {
    line-height: 1.35;
}

.partner-already-added {
    opacity: 0.58;
}

/* Notificações */
.topbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.notification-btn {
    position: relative;
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,0.12);
    display: grid;
    place-items: center;
    border-radius: 50%;
}

.notification-btn span {
    position: absolute;
    right: -2px;
    top: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #D8A84F;
    color: #211827;
    font-size: 10px;
    font-weight: 900;
    display: grid;
    place-items: center;
}

.notifications-list {
    display: grid;
    gap: 10px;
}

.notification-item {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 12px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 16px;
    padding: 12px;
}

.notification-item.unread {
    border-color: rgba(216,168,79,0.35);
    background: rgba(216,168,79,0.10);
}

.notification-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgba(216,168,79,0.16);
    display: grid;
    place-items: center;
    font-size: 20px;
}

.notification-item strong {
    display: block;
    font-size: 14px;
}

.notification-item span {
    display: block;
    color: #c8b8d9;
    font-size: 12px;
    margin-top: 3px;
}

.notification-item small {
    display: block;
    color: #8f7ca5;
    font-size: 11px;
    margin-top: 6px;
}

/* Ministérios */
.ministerios-hero,
.ministerio-profile {
    background:
        radial-gradient(circle at top right, rgba(216,168,79,0.18), transparent 38%),
        rgba(255,255,255,0.10);
    border-color: rgba(216,168,79,0.20);
}
.ministerio-item span { line-height: 1.35; }
.partner-already-added { opacity: .58; }

/* Dashboard - ajustes ministérios */
.home-stats-four {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 430px) {
    .home-stats-four strong {
        font-size: 20px;
    }

    .home-stats-four span {
        font-size: 10px;
    }
}

/* Botões PDF / PowerPoint no evento */
.pdf-toolbar {
    margin-top: 12px;
    grid-template-columns: repeat(3, 1fr);
}

.pdf-toolbar a {
    min-height: 68px;
}

/* Identidade visual e exportação */
.profile-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
}

.identity-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 10px 0 14px;
}

.identity-preview-grid div {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 16px;
    padding: 10px;
    min-height: 92px;
    display: grid;
    gap: 6px;
    align-items: center;
    justify-items: center;
    text-align: center;
}

.identity-preview-grid strong {
    font-size: 12px;
    color: #f5d894;
}

.identity-preview-grid span {
    font-size: 11px;
    color: #c8b8d9;
}

.identity-preview-grid img {
    width: 62px;
    height: 62px;
    border-radius: 14px;
    object-fit: cover;
}

.profile-switch-inline {
    margin: 8px 0 14px;
}

.evento-tool-btn {
    min-height: 62px;
    border-radius: 16px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.10);
    color: #fff;
    text-decoration: none;
    display: grid;
    place-items: center;
    gap: 4px;
    padding: 8px 4px;
    transition: .2s ease;
    cursor: pointer;
    font: inherit;
}

.evento-tool-btn svg {
    width: 23px;
    height: 23px;
    color: #D8A84F;
}

.evento-tool-btn span {
    font-size: 10px;
    line-height: 1;
    color: #d8c9e8;
    font-weight: 700;
}

.export-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.72);
    z-index: 99999;
    display: none;
    align-items: flex-end;
    justify-content: center;
    padding: 16px;
}

.export-modal.active {
    display: flex;
}

.export-modal-box {
    width: 100%;
    max-width: 520px;
    background: #1a0d2a;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 24px;
    padding: 16px;
    box-shadow: 0 -20px 50px rgba(0,0,0,.35);
}

.export-modal-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 14px;
}

.export-modal-header strong {
    display: block;
    font-size: 20px;
}

.export-modal-header span {
    display: block;
    color: #c8b8d9;
    font-size: 13px;
    margin-top: 3px;
}

.export-modal-header button {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    color: #fff;
    font-size: 25px;
    cursor: pointer;
}

.export-grid {
    display: grid;
    gap: 10px;
}

.export-grid a {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 12px;
    align-items: center;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 16px;
    padding: 12px;
}

.export-grid svg {
    color: #D8A84F;
}

.export-grid strong {
    display: block;
}

.export-grid span {
    display: block;
    color: #c8b8d9;
    font-size: 12px;
    margin-top: 3px;
}

.cover-preview-card {
    background: rgba(255,255,255,0.08);
    border-radius: 18px;
    padding: 10px;
    margin: 12px 0;
}

.cover-preview-card img {
    width: 100%;
    max-height: 260px;
    object-fit: cover;
    border-radius: 14px;
}


/* ===== Ajustes 2026: responsivo, tema, rede musical e PWA ===== */
:root {
    --cor-principal: #2B123F;
    --cor-principal-2: color-mix(in srgb, var(--cor-principal), #12091d 42%);
    --cor-destaque: #D8A84F;
    --app-bg: #12091d;
    --app-card: rgba(255,255,255,0.10);
    --app-card-border: rgba(255,255,255,0.12);
}

body {
    background: var(--app-bg);
}

.app-shell {
    max-width: 1180px;
    width: min(100%, 1180px);
    background: linear-gradient(180deg, var(--cor-principal) 0%, var(--app-bg) 48%);
    box-shadow: 0 0 60px rgba(0,0,0,.22);
}

.topbar {
    max-width: 1180px;
    margin: 0 auto;
}

.content {
    max-width: 1120px;
    margin: 0 auto;
}

.card,
.music-item,
.quick-btn,
.search-hero,
.featured-event,
.premium-empty {
    border-color: var(--app-card-border);
}

.brand svg,
.quick-btn svg,
.bottom-nav a:hover,
.play-topbar button,
.play-repertorio-icon,
.play-nav-event a,
.play-scroll-main,
.play-control-row button {
    color: var(--cor-destaque);
}

.primary-btn,
.login-btn {
    background: var(--cor-destaque);
}

.bottom-nav {
    max-width: 1180px;
    grid-template-columns: repeat(5, 1fr) !important;
    background: color-mix(in srgb, var(--cor-principal), #000 58%);
}

.profile-btn,
.notification-btn,
.card,
.quick-btn,
.music-item {
    background: color-mix(in srgb, var(--cor-principal), transparent 78%);
}

[data-modo="claro"] body,
body:has(.app-shell)[data-modo="claro"] {
    background: #f4f6fb;
    color: #1f2430;
}

html[data-modo="claro"] body {
    background: #f4f6fb;
    color: #1f2430;
}

html[data-modo="claro"] .app-shell {
    background: linear-gradient(180deg, color-mix(in srgb, var(--cor-principal), #ffffff 12%) 0%, #f4f6fb 42%);
    color: #1f2430;
}

html[data-modo="claro"] .card,
html[data-modo="claro"] .music-item,
html[data-modo="claro"] .quick-btn {
    background: rgba(255,255,255,.92);
    border-color: rgba(15,23,42,.08);
    color: #1f2430;
}

html[data-modo="claro"] .muted,
html[data-modo="claro"] .hello,
html[data-modo="claro"] .music-item span {
    color: #667085;
}

.quick-grid-wide {
    grid-template-columns: repeat(3, 1fr);
}

.remember-login {
    display: flex;
    gap: 9px;
    align-items: center;
    margin: 12px 0 16px;
    font-size: 13px;
    color: #d8c9e8;
}

.rede-result-item {
    gap: 12px;
}

.inline-form {
    margin: 0;
}

.mini-action-btn,
.status-pill {
    border: 0;
    border-radius: 999px;
    padding: 9px 12px;
    font-weight: 800;
    font-size: 12px;
    white-space: nowrap;
}

.mini-action-btn {
    background: var(--cor-destaque);
    color: #211827;
}

.status-pill {
    background: rgba(255,255,255,.12);
    color: #f5d894;
}

.play-mode,
.play-topbar,
.play-nav-event,
.play-controls {
    max-width: none;
}

.play-cifra {
    max-width: 980px;
}

@media (min-width: 721px) {
    .content {
        padding: 18px 26px 96px;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
        align-items: start;
    }

    .home-hero,
    .search-hero,
    .featured-event,
    .premium-empty,
    .profile-card,
    .parceiros-hero,
    .play-mode,
    .music-header-card {
        grid-column: 1 / -1;
    }

    .card {
        margin-bottom: 0;
    }

    .quick-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .music-list {
        gap: 12px;
    }
}

@media (min-width: 980px) {
    .content {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .home-hero,
    .search-hero,
    .featured-event,
    .premium-empty,
    .profile-card,
    .parceiros-hero {
        grid-column: 1 / -1;
    }

    .home-stats-four {
        grid-column: 1 / -1;
    }

    .bottom-nav {
        left: 50%;
        bottom: 14px;
        width: min(92%, 760px);
        border-radius: 24px;
        border: 1px solid rgba(255,255,255,.12);
        box-shadow: 0 18px 40px rgba(0,0,0,.25);
    }

    .app-shell {
        padding-bottom: 104px;
    }
}

@media (max-width: 720px) {
    .app-shell,
    .bottom-nav,
    .play-topbar,
    .play-nav-event {
        max-width: 520px;
    }

    .quick-grid-wide {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 430px) {
    .quick-grid-wide {
        grid-template-columns: repeat(2, 1fr);
    }
}
.secondary-mini {
    background: rgba(255,255,255,.12) !important;
    color: #f5d894 !important;
}

.pending-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}


/* =========================================================
   AJUSTE GERAL DE USABILIDADE - TABLET / NOTEBOOK / CORES
   ========================================================= */
:root {
    --accent: var(--cor-principal, #D8A84F);
    --gold: #D8A84F;
    --app-bg: #10071a;
    --app-bg-2: #1b0b2c;
    --app-panel: rgba(255,255,255,0.085);
    --app-panel-strong: rgba(255,255,255,0.13);
    --app-border: rgba(255,255,255,0.13);
    --app-text: #ffffff;
    --app-muted: #d7c8e8;
    --input-bg: rgba(255,255,255,0.10);
    --input-text: #ffffff;
    --radius-lg: 24px;
}

html[data-modo="claro"] {
    --app-bg: #f7f3fb;
    --app-bg-2: #ebe2f4;
    --app-panel: rgba(255,255,255,0.88);
    --app-panel-strong: #ffffff;
    --app-border: rgba(39,22,54,0.11);
    --app-text: #211827;
    --app-muted: #655573;
    --input-bg: #f0eaf6;
    --input-text: #211827;
}

body {
    background:
        radial-gradient(circle at top left, color-mix(in srgb, var(--accent) 24%, transparent), transparent 34%),
        linear-gradient(135deg, var(--app-bg-2), var(--app-bg) 55%);
    color: var(--app-text);
}

.app-shell {
    width: 100%;
    max-width: none;
    background:
        radial-gradient(circle at 18% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 30%),
        linear-gradient(180deg, var(--app-bg-2) 0%, var(--app-bg) 44%);
}

.topbar,
.content {
    width: 100%;
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
}

.content {
    padding: 14px 18px 28px;
}

.brand svg,
.quick-btn svg,
.evento-toolbar svg,
.note-name,
.back-link,
.notification-btn:hover,
.bottom-nav a:hover,
.sidebar-brand svg,
.sidebar-nav svg,
.mini-label {
    color: var(--accent) !important;
}

.card,
.music-header-card,
.bloco-item,
.participant-card,
.profile-card {
    background: var(--app-panel);
    border-color: var(--app-border);
    color: var(--app-text);
}

.search-hero {
    background: var(--app-panel-strong);
    border: 1px solid var(--app-border);
    color: var(--app-text);
    backdrop-filter: blur(14px);
}

.search-box,
.form-input,
.login-input,
.mini-input {
    background: var(--input-bg);
    color: var(--input-text);
    border: 1px solid var(--app-border);
}

.search-box::placeholder,
.form-input::placeholder,
.mini-input::placeholder {
    color: color-mix(in srgb, var(--app-muted) 80%, transparent);
}

.muted,
.hello,
.music-item span,
.bloco-info span,
label,
.tuner-hero p,
.login-subtitle {
    color: var(--app-muted) !important;
}

.primary-btn,
.small-gold-btn,
.login-btn,
.key-grid button.active {
    background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 70%, white));
    color: #12091d;
    border: 0;
}

.secondary-btn,
.action-btn,
.quick-btn,
.music-item,
.bloco-acoes a,
.check-item,
.tag-check,
.profile-switch,
.profile-check {
    background: var(--app-panel-strong);
    border: 1px solid var(--app-border);
}

.music-meta span,
.favorite-btn,
.drag-handle,
.event-note,
.transpose-btn,
.current-key-btn,
.play-topbar button,
.play-repertorio-icon,
.play-control-row button,
.play-scroll-main {
    background: color-mix(in srgb, var(--accent) 18%, transparent);
    color: color-mix(in srgb, var(--accent) 72%, white);
    border-color: color-mix(in srgb, var(--accent) 35%, transparent);
}

.desktop-sidebar {
    display: none;
}

.profile-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
}

.notification-btn {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    position: relative;
    border-radius: 50%;
    background: rgba(255,255,255,0.10);
}

.notification-btn span {
    position: absolute;
    right: 2px;
    top: 1px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 999px;
    background: #ff4d6d;
    color: #fff;
    font-size: 10px;
    display: grid;
    place-items: center;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.home-stats,
.event-info-grid,
.identity-preview-grid,
.profile-check-grid {
    display: grid;
    gap: 12px;
}
.home-stats-four { grid-template-columns: repeat(4, 1fr); }
.home-stats > div {
    background: var(--app-panel);
    border: 1px solid var(--app-border);
    border-radius: 18px;
    padding: 14px;
    text-align: center;
}
.home-stats strong { display:block; font-size: 24px; color: var(--accent); }
.home-stats span { color: var(--app-muted); font-size: 12px; }
.section-title-row,
.next-event-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}
.section-title-row a { color: var(--accent); font-weight: 700; font-size: 13px; }

@media (min-width: 720px) {
    .topbar { padding: 28px 28px 16px; }
    .content { padding: 18px 28px 34px; }
    .search-hero { padding: 22px; border-radius: 26px; }
    .search-box { height: 58px; font-size: 17px; }
    .quick-grid { grid-template-columns: repeat(4, minmax(120px, 1fr)); }
    .premium-quick-grid { grid-template-columns: repeat(4, minmax(130px, 1fr)); }
    .music-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .card { border-radius: 24px; padding: 20px; }
    .music-actions { grid-template-columns: repeat(4, 1fr); }
    .tags-box, .profile-check-grid { grid-template-columns: repeat(2, 1fr); }
    .identity-preview-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
    .app-shell {
        min-height: 100vh;
        padding-left: 270px;
        padding-bottom: 0;
    }

    .desktop-sidebar {
        display: flex;
        position: fixed;
        left: 22px;
        top: 22px;
        bottom: 22px;
        width: 226px;
        border-radius: 28px;
        padding: 22px 16px;
        background: rgba(255,255,255,0.08);
        border: 1px solid var(--app-border);
        backdrop-filter: blur(18px);
        box-shadow: 0 24px 60px rgba(0,0,0,0.22);
        flex-direction: column;
        z-index: 50;
    }

    .sidebar-brand {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 21px;
        font-weight: 900;
        margin-bottom: 28px;
    }

    .sidebar-nav {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .sidebar-nav a {
        display: flex;
        align-items: center;
        gap: 11px;
        min-height: 46px;
        padding: 0 12px;
        border-radius: 16px;
        color: var(--app-muted);
        font-weight: 700;
        transition: .18s ease;
    }

    .sidebar-nav a:hover {
        color: var(--app-text);
        background: var(--app-panel-strong);
        transform: translateX(2px);
    }

    .bottom-nav { display: none; }
    .topbar { padding-top: 30px; }
    .brand { display: none; }
    .hello { font-size: 15px; }
    .content { padding-bottom: 60px; }
    .home-hero h1 { font-size: 42px; margin: 4px 0 8px; }
    .home-hero p { font-size: 18px; max-width: 620px; }
    .home-search { margin-top: 18px; }
    .home-stats { margin: 18px 0; }
    .home-stats > div { text-align: left; padding: 20px; }
    .home-stats strong { font-size: 32px; }
    .quick-grid { grid-template-columns: repeat(6, minmax(120px, 1fr)); }
    .premium-quick-grid { grid-template-columns: repeat(5, minmax(130px, 1fr)); }
    .music-item { min-height: 78px; }
    .play-topbar, .play-nav-event { max-width: none; left: 0; transform: none; }
    .play-controls { max-width: 760px; }
    .play-cifra { max-width: 980px; font-size: 24px; }
}

@media (min-width: 1260px) {
    .topbar, .content { max-width: 1240px; }
    .premium-quick-grid { grid-template-columns: repeat(6, minmax(130px, 1fr)); }
}

@media (max-width: 520px) {
    .home-stats-four { grid-template-columns: repeat(2, 1fr); }
    .quick-grid { grid-template-columns: repeat(3, 1fr); }
}


.theme-preview {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 12px;
    align-items: stretch;
    margin: 8px 0 16px;
}
.theme-color-input {
    height: 86px;
    padding: 8px;
    cursor: pointer;
}
.theme-preview-card {
    border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
    background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 18%, transparent), var(--app-panel));
    border-radius: 18px;
    padding: 14px;
}
.theme-preview-card strong,
.theme-preview-card span,
.theme-preview-card em { display:block; }
.theme-preview-card strong { color: var(--app-text); margin-bottom: 5px; }
.theme-preview-card span { color: var(--app-muted); font-size: 13px; }
.theme-preview-card em { color: color-mix(in srgb, var(--accent) 75%, white); font-style: normal; font-size: 12px; margin-top: 8px; }
@media (max-width: 520px){ .theme-preview { grid-template-columns: 1fr; } .theme-color-input { height: 58px; } }

/* =========================================================
   ACORDES DE FÉ 2.0 - layout premium desktop/tablet/celular
   ========================================================= */
:root{
    --accent: var(--cor-principal, #D8A84F);
    --dash-bg: #07050b;
    --dash-bg-2: #100718;
    --dash-panel: rgba(255,255,255,.075);
    --dash-panel-2: rgba(255,255,255,.105);
    --dash-border: rgba(255,255,255,.115);
    --dash-text: #fff;
    --dash-muted: rgba(255,255,255,.68);
}

html[data-modo="claro"]{
    --dash-bg: #f6f2fb;
    --dash-bg-2: #efe7f8;
    --dash-panel: rgba(255,255,255,.84);
    --dash-panel-2: #fff;
    --dash-border: rgba(38,18,56,.11);
    --dash-text: #1f1728;
    --dash-muted: rgba(31,23,40,.66);
}

body{
    background:
        radial-gradient(circle at 8% -10%, color-mix(in srgb, var(--accent) 24%, transparent), transparent 28%),
        radial-gradient(circle at 90% 0%, rgba(124,58,237,.20), transparent 32%),
        linear-gradient(135deg, var(--dash-bg), var(--dash-bg-2) 58%, var(--dash-bg));
}

.app-shell{
    background: transparent !important;
    box-shadow: none !important;
}

.topbar{position: sticky; top:0; z-index:40; backdrop-filter: blur(16px);}

@media (min-width:1024px){
    .topbar{max-width:none; margin:0; padding:22px 28px 10px 0; justify-content:flex-end;}
    .topbar .hello{display:none;}
    .topbar-actions{gap:14px;}
    .notification-btn,.profile-btn{background:var(--dash-panel-2); border:1px solid var(--dash-border); box-shadow:0 16px 38px rgba(0,0,0,.18);}
    .desktop-sidebar{width:250px; left:18px; top:18px; bottom:18px; border-radius:30px; background:rgba(255,255,255,.065); border:1px solid var(--dash-border);}
    .sidebar-brand{font-size:22px;}
    .sidebar-brand svg{width:34px;height:34px;}
    .sidebar-nav a{position:relative; color:var(--dash-muted);}
    .sidebar-nav a.active{background:linear-gradient(90deg, color-mix(in srgb, var(--accent) 30%, transparent), rgba(255,255,255,.055)); color:var(--dash-text);}
    .sidebar-nav a.active:before{content:""; position:absolute; left:-16px; top:12px; bottom:12px; width:4px; border-radius:999px; background:var(--accent); box-shadow:0 0 16px color-mix(in srgb, var(--accent) 70%, transparent);}
    .sidebar-nav svg{color:inherit!important;}
    .app-shell{padding-left:290px!important;}
}

@media (min-width:720px) and (max-width:1023px){
    .app-shell{padding-left:88px!important; padding-bottom:0!important;}
    .desktop-sidebar{display:flex!important; position:fixed; left:14px; top:14px; bottom:14px; width:64px; border-radius:24px; padding:14px 9px; background:rgba(255,255,255,.07); border:1px solid var(--dash-border); backdrop-filter:blur(18px); flex-direction:column; z-index:50;}
    .sidebar-brand{justify-content:center; margin-bottom:18px;}
    .sidebar-brand span,.sidebar-nav span{display:none;}
    .sidebar-nav{gap:8px; display:flex; flex-direction:column;}
    .sidebar-nav a{height:46px; display:grid; place-items:center; border-radius:14px; color:var(--dash-muted);}
    .sidebar-nav a.active,.sidebar-nav a:hover{background:color-mix(in srgb, var(--accent) 20%, transparent); color:var(--accent);}
    .bottom-nav{display:none!important;}
    .topbar{padding:18px 18px 8px 0; justify-content:flex-end;}
    .brand,.hello{display:none!important;}
}

.content{max-width:1260px!important; width:100%;}
.content:has(.dashboard-v2){display:block!important; padding-top:0!important;}
.dashboard-v2{display:flex; flex-direction:column; gap:18px; color:var(--dash-text);}
.dash-welcome{display:flex; justify-content:space-between; gap:18px; align-items:flex-end; padding:4px 0 0;}
.dash-welcome h1{font-size:clamp(30px,4vw,44px); margin:0 0 8px; letter-spacing:-.04em;}
.dash-welcome p{margin:0; color:var(--dash-muted); font-size:15px;}
.dash-event-pill{min-width:240px; padding:18px; border-radius:20px; border:1px solid var(--dash-border); background:var(--dash-panel); display:grid; gap:5px; box-shadow:0 20px 50px rgba(0,0,0,.18);}
.dash-event-pill i{color:var(--accent)!important;}
.dash-event-pill span{font-size:12px; color:var(--dash-muted);}
.dash-event-pill strong{font-size:18px;}

.dash-search-panel{display:grid; grid-template-columns:1fr auto; gap:18px; align-items:center;}
.dash-search-panel form{height:58px; border:1px solid var(--dash-border); background:rgba(255,255,255,.07); border-radius:14px; display:flex; align-items:center; gap:12px; padding:0 14px; box-shadow:0 16px 38px rgba(0,0,0,.18);}
.dash-search-panel input{flex:1; min-width:0; border:0; outline:0; background:transparent; color:var(--dash-text); font-size:15px;}
.dash-search-panel input::placeholder{color:var(--dash-muted);}
.dash-search-panel i{color:var(--dash-muted)!important;}
.dash-search-panel kbd{background:rgba(255,255,255,.10); color:var(--dash-muted); border-radius:8px; padding:6px 8px; font-size:12px;}
.dash-new-btn{height:58px; padding:0 24px; border-radius:14px; display:flex; gap:8px; align-items:center; justify-content:center; font-weight:800; background:linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 70%, white)); color:#12091d; box-shadow:0 18px 40px color-mix(in srgb, var(--accent) 25%, transparent);}

.dash-stats-grid{display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:16px;}
.dash-stat-card{min-height:138px; padding:18px; border-radius:18px; background:var(--dash-panel); border:1px solid var(--dash-border); display:grid; grid-template-columns:58px 1fr; grid-template-areas:"icon small" "icon strong" "icon em"; align-items:center; column-gap:14px; box-shadow:0 18px 42px rgba(0,0,0,.18); transition:.2s ease;}
.dash-stat-card:hover{transform:translateY(-3px); border-color:color-mix(in srgb, var(--accent) 42%, transparent);}
.dash-stat-icon{grid-area:icon; width:52px;height:52px;border-radius:14px;display:grid;place-items:center;background:color-mix(in srgb, var(--accent) 25%, transparent); color:var(--accent);}
.dash-stat-icon.red{background:rgba(244,63,94,.18);color:#fb7185}.dash-stat-icon.green{background:rgba(16,185,129,.18);color:#34d399}.dash-stat-icon.blue{background:rgba(59,130,246,.18);color:#60a5fa}.dash-stat-icon.amber{background:rgba(245,158,11,.18);color:#fbbf24}
.dash-stat-card small{grid-area:small;color:var(--dash-muted);font-size:12px;font-weight:800;}
.dash-stat-card strong{grid-area:strong;font-size:28px;line-height:1;}
.dash-stat-card em{grid-area:em;color:var(--dash-muted);font-style:normal;font-size:12px;line-height:1.35;}
.dash-next{grid-template-columns:52px 1fr;}

.dash-main-grid{display:grid; grid-template-columns:minmax(0,1fr) 320px; gap:18px; align-items:start;}
.dash-left{display:flex; flex-direction:column; gap:18px; min-width:0;}
.dash-right{display:flex; flex-direction:column; gap:18px; min-width:0;}
.dash-card{background:var(--dash-panel); border:1px solid var(--dash-border); border-radius:20px; padding:18px; box-shadow:0 18px 42px rgba(0,0,0,.16); backdrop-filter:blur(14px);}
.dash-card h2{font-size:18px;margin:0;}
.dash-categories-grid{display:grid; grid-template-columns:repeat(9,minmax(86px,1fr)); gap:10px; margin-top:14px;}
.dash-category-item{min-height:88px; border:1px solid var(--dash-border); background:rgba(255,255,255,.045); border-radius:14px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:9px; text-align:center; font-size:12px; font-weight:800;}
.dash-category-item i{color:var(--accent)!important; width:28px; height:28px;}
.dash-category-item:hover{background:color-mix(in srgb, var(--accent) 15%, transparent); transform:translateY(-2px);}

.dash-repertorio-grid{display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; margin-top:14px;}
.dash-repertorio-card{min-height:148px; border-radius:16px; padding:18px; display:flex; flex-direction:column; justify-content:flex-end; overflow:hidden; position:relative; background:linear-gradient(140deg, rgba(216,168,79,.34), rgba(0,0,0,.36)); border:1px solid var(--dash-border);}
.dash-repertorio-card:before{content:""; position:absolute; inset:0; background:radial-gradient(circle at 20% 0%, rgba(255,255,255,.30), transparent 34%), linear-gradient(180deg, transparent, rgba(0,0,0,.68));}
.dash-repertorio-card>*{position:relative; z-index:1;}
.dash-repertorio-card span{font-weight:900; font-size:17px; margin-bottom:6px;}.dash-repertorio-card strong,.dash-repertorio-card em{font-size:12px; color:rgba(255,255,255,.82); font-style:normal;}.tone-2{background:linear-gradient(140deg, rgba(124,58,237,.42), rgba(0,0,0,.34));}.tone-3{background:linear-gradient(140deg, rgba(245,158,11,.45), rgba(0,0,0,.34));}.tone-4{background:linear-gradient(140deg, rgba(20,184,166,.38), rgba(0,0,0,.34));}

.dash-network-list,.dash-mini-list{display:flex; flex-direction:column; gap:10px; margin-top:14px;}
.dash-network-item{display:grid; grid-template-columns:44px 1fr 10px; gap:10px; align-items:center; padding:8px; border-radius:14px;}
.dash-network-item:hover,.dash-mini-list a:hover{background:rgba(255,255,255,.06);}
.dash-avatar{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:color-mix(in srgb, var(--accent) 28%, transparent); color:#fff;font-weight:900;overflow:hidden;}.dash-avatar img{width:100%;height:100%;object-fit:cover;}
.dash-network-item strong{display:block;font-size:14px;}.dash-network-item em{display:block;color:var(--dash-muted);font-size:12px;font-style:normal;}.dash-network-item small{width:8px;height:8px;border-radius:50%;background:#4ade80;box-shadow:0 0 12px #4ade80;}
.dash-outline-btn{height:44px;border:1px solid color-mix(in srgb,var(--accent) 52%,transparent);border-radius:12px;display:grid;place-items:center;color:var(--accent);font-weight:800;margin-top:12px;}
.dash-mini-list a{display:block; padding:11px; border-radius:12px; border:1px solid rgba(255,255,255,.055);}.dash-mini-list strong{display:block;font-size:14px;}.dash-mini-list span{display:block;margin-top:3px;color:var(--dash-muted);font-size:12px;}

.theme-choice-grid{display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin:8px 0 16px;}
.theme-choice{position:relative; min-height:76px; display:grid; grid-template-columns:40px 1fr; column-gap:10px; align-items:center; padding:12px; border-radius:16px; border:1px solid var(--dash-border); background:var(--dash-panel); cursor:pointer;}
.theme-choice input{position:absolute; opacity:0; pointer-events:none;}.theme-dot{width:36px;height:36px;border-radius:50%;background:var(--theme-color);box-shadow:0 0 22px color-mix(in srgb,var(--theme-color) 40%,transparent);grid-row:1 / span 2;}.theme-choice strong{font-size:14px;}.theme-choice small{color:var(--dash-muted);font-size:12px;}.theme-choice:has(input:checked){border-color:var(--theme-color); background:color-mix(in srgb,var(--theme-color) 14%, transparent);}.theme-preview-wide{margin:0 0 16px;}

@media (max-width:1180px){
    .dash-stats-grid{grid-template-columns:repeat(5,minmax(150px,1fr)); overflow-x:auto; padding-bottom:4px;}
    .dash-stat-card{min-width:160px;}
    .dash-categories-grid{grid-template-columns:repeat(6,minmax(86px,1fr));}
    .dash-repertorio-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (max-width:900px){
    .dash-main-grid{grid-template-columns:1fr;}
    .dash-right{display:grid; grid-template-columns:1fr 1fr; gap:16px;}
    .dash-categories-grid{grid-template-columns:repeat(5,minmax(78px,1fr));}
    .dash-welcome{align-items:flex-start;}
}
@media (max-width:720px){
    .topbar{position:relative;}
    .content:has(.dashboard-v2){padding:10px 16px 86px!important;}
    .dashboard-v2{gap:14px;}
    .dash-welcome{display:block;}.dash-welcome h1{font-size:28px;}.dash-event-pill{margin-top:14px;min-width:0;}
    .dash-search-panel{grid-template-columns:1fr; gap:10px;}.dash-search-panel kbd{display:none;}.dash-new-btn{height:50px;}
    .dash-stats-grid{display:grid;grid-template-columns:repeat(2,1fr);overflow:visible;gap:10px;}.dash-stat-card{min-width:0;min-height:112px;grid-template-columns:42px 1fr;padding:12px;}.dash-stat-icon{width:40px;height:40px;}.dash-stat-card strong{font-size:22px;}.dash-stat-card em{display:none;}
    .dash-categories-grid{grid-template-columns:repeat(3,1fr);}.dash-category-item{min-height:82px;}
    .dash-repertorio-grid,.dash-right{grid-template-columns:1fr;}.dash-repertorio-card{min-height:118px;}
    .theme-choice-grid{grid-template-columns:1fr;}
}
