/* RESET */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    min-height: 100%;
}

/* BASE */
body.app-body {
    font-family: 'Segoe UI', Arial, sans-serif;
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
}

/* BACKGROUND */
.app-background {
    position: fixed;
    inset: 0;
    background: url('../images/bg.jpg') no-repeat center center;
    background-size: cover;
    z-index: 0;
}

.app-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.60);
    z-index: 1;
}

/* FRAME PRINCIPAL */
.app-frame {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* TOPO */
.app-topbar {
    padding: 18px 16px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.app-topbar-left {
    display: flex;
    align-items: center;
}

.app-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.app-logo {
    display: block;
    height: 56px;
    width: auto;
}

.app-topbar-right {
    text-align: right;
}

.app-welcome {
    display: block;
    font-size: 0.8rem;
    margin-bottom: 8px;
    color: #f4f4f4;
}

/* CONTEÚDO */
.app-content {
    flex: 1;
    width: 100%;
    padding: 20px 16px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* FOOTER */
.app-footer {
    padding: 12px 16px 18px;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.85);
}

/* CARD */
.card {
    width: 100%;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 24px;
    padding: 24px 20px;
    margin-bottom: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    color: #fff;
}

.card h1,
.card h2,
.card h3,
.card p,
.card label {
    color: #fff;
}

.card h1,
.card h2 {
    margin-bottom: 14px;
    font-size: 2rem;
    line-height: 1.1;
}

/* INPUTS */
input,
select,
textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.14);
    color: #fff;
    outline: none;
    margin-top: 8px;
    margin-bottom: 14px;
    font-size: 1rem;
}

input::placeholder,
textarea::placeholder {
    color: rgba(255,255,255,0.75);
}

label {
    display: block;
    font-weight: 600;
    margin-top: 6px;
    margin-bottom: 4px;
}

/* BOTÕES */
.btn {
    display: block;
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: none;
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    margin-top: 8px;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn:hover {
    transform: translateY(-1px);
    opacity: 0.96;
}

.btn-primary {
    background: linear-gradient(135deg, #20c05c, #119e47);
    color: #fff;
}

.btn-secondary {
    background: rgba(255,255,255,0.18);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.22);
}

.btn-inline {
    width: auto;
    display: inline-block;
    padding: 10px 14px;
    margin-top: 0;
}

/* LINKS */
a {
    color: #fff;
}

/* FLASH */
.flash {
    width: 100%;
    max-width: 420px;
    margin: 0 auto 14px;
    padding: 12px 14px;
    border-radius: 14px;
    font-weight: 600;
}

.flash-success {
    background: rgba(46, 125, 50, 0.92);
    color: #fff;
}

.flash-error {
    background: rgba(198, 40, 40, 0.92);
    color: #fff;
}

/* GRID FIGURINHAS */
.sticker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 8px;
}

/* FIGURINHA */
.sticker {
    padding: 12px;
    text-align: center;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
}

/* STATUS */
.missing {
    background: rgba(255,255,255,0.2);
}

.collected {
    background: #00c853;
}

.repeated {
    background: #ff9800;
}

/* TELAS DE AUTENTICAÇÃO */
.auth-card {
    width: 100%;
    max-width: 460px;
}

.auth-card .intro-text {
    margin-bottom: 18px;
    color: #f3f3f3;
    line-height: 1.45;
}

.auth-card .form-actions {
    margin-top: 8px;
}

.auth-card .bottom-link {
    margin-top: 18px;
    text-align: center;
    color: #f3f3f3;
}

.auth-card .bottom-link a {
    font-weight: 700;
}

body:not(.dark) .auth-card .bottom-link {
    color: #4b5563;
}

body:not(.dark) .auth-card .bottom-link a {
    color: #1d4ed8;
}

/* TELA INICIAL */
.public-card-title {
    margin-bottom: 4px;
    font-size: 1.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.public-card-kicker {
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    margin-bottom: 2px;
    white-space: nowrap;
}

.public-card-text {
    color: #f3f3f3;
    line-height: 1.45;
    margin-bottom: 18px;
}

.public-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}

/* RESPONSIVO */
@media (min-width: 768px) {
    .app-topbar {
        padding: 24px 28px 10px;
    }

    .app-content {
        padding: 24px 28px 36px;
    }

    .card {
        max-width: 460px;
        padding: 30px 26px;
    }

    .app-logo {
        height: 64px;
    }
}

.inline-alert {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.15);
}

.inline-alert-error {
    background: rgba(198, 40, 40, 0.92);
    color: #fff;
}

.inline-alert-success {
    background: rgba(46, 125, 50, 0.92);
    color: #fff;
}

.inline-alert-content {
    flex: 1;
    font-weight: 600;
    line-height: 1.4;
}

.inline-alert-close {
    appearance: none;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    margin: 0;
    opacity: 0.9;
}

.inline-alert-close:hover {
    opacity: 1;
}

.dashboard-wrap {
    width: 100%;
    max-width: 460px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.dashboard-card {
    width: 100%;
    max-width: 460px;
}

.section-title {
    margin-bottom: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
}

body:not(.dark) .section-title {
    color: #111827;
}

.album-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.album-item {
    display: block;
    text-decoration: none;
    color: #fff;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 18px;
    padding: 14px 16px;
    transition: transform 0.15s ease, background 0.15s ease;
}

.album-item:hover {
    transform: translateY(-1px);
    background: rgba(255,255,255,0.16);
}

.album-item-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.album-item-title {
    font-weight: 700;
    font-size: 1.05rem;
    color: #fff;
}

.album-item-chevron {
    font-size: 1.4rem;
    line-height: 1;
    opacity: 0.9;
}

.album-item-meta {
    margin-top: 6px;
    font-size: 0.92rem;
    color: rgba(255,255,255,0.82);
}

.album-page-wrap {
    width: 100%;
    max-width: 980px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.album-header-card {
    width: 100%;
    max-width: 980px;
}

.album-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.album-header-top > div:first-child {
    min-width: 0;
    flex: 1;
}

.album-summary {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 18px;
}

.album-summary div {
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 16px;
    padding: 12px 14px;
    text-align: center;
}

.album-summary strong {
    display: block;
    font-size: 1.35rem;
    color: #fff;
}

.album-summary span {
    display: block;
    margin-top: 4px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.82);
}

.album-filter-form {
    display: grid;
    gap: 10px;
}

.group-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.group-section-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    padding-left: 2px;
}

.team-card-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.team-card {
    width: 100%;
    max-width: none;
}

.team-card-header {
    margin-bottom: 14px;
}

.team-card-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.team-flag {
    width: 34px;
    height: 24px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.28);
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    background: rgba(255,255,255,0.15);
}

.team-icon-fallback {
    width: 34px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.18);
}

.team-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
}

.team-code {
    margin-top: 4px;
    font-size: 0.88rem;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.75);
}

.stickers-grid-panini {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}


.sticker-tile {
    appearance: none;
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 8px 6px;
    min-height: 44px;

    border-radius: 10px;
    font-weight: 700;
    font-size: 0.82rem;
    line-height: 1;
    text-align: center;
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease;
    color: #fff;
}



.sticker-tile:hover {
    transform: translateY(-1px);
    opacity: 0.96;
}
.sticker-tile-code {
    display: block;
    white-space: nowrap;
    font-size: 0.82rem;
    line-height: 1;
}


.status-missing {
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.18);
}

.status-owned {
    background: linear-gradient(135deg, #1fc457, #129847);
}

.status-repeated {
    background: linear-gradient(135deg, #ffb12b, #f18c00);
}

/* ── Wrap individual sticker + repeat counter ─────────────── */
.sticker-tile-wrap {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
}

.sticker-repeat-counter {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0;
    height: 22px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 177, 43, 0.18);
    border: 1px solid rgba(241, 140, 0, 0.35);
}

.sticker-repeat-counter.is-visible {
    display: flex;
}

.repeat-btn {
    appearance: none;
    background: none;
    border: none;
    color: #f18c00;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
    padding: 0 6px;
    height: 100%;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.12s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.repeat-btn:hover { background: rgba(241, 140, 0, 0.18); }
.repeat-btn:active { background: rgba(241, 140, 0, 0.32); }

.repeat-count {
    flex: 1;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #b45309;
    line-height: 1;
    min-width: 18px;
    pointer-events: none;
}

.dark .sticker-repeat-counter {
    background: rgba(255, 177, 43, 0.12);
    border-color: rgba(241, 140, 0, 0.28);
}
.dark .repeat-btn  { color: #fbbf24; }
.dark .repeat-count { color: #fcd34d; }
    .album-filter-panel {
        gap: 14px;
    }

    .team-flag {
        width: 24px;
        height: 18px;
    }

    .stickers-grid-panini {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 1100px) {
    .team-card-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .stickers-grid-panini {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

    
    
.stickers-grid-panini {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}
    
}

@media (min-width: 1100px) {
    .team-card-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.album-filter-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.status-filter-buttons {
    display: flex;
    gap: 6px;
    flex-wrap: nowrap;
}

.status-filter-btn {
    appearance: none;
    border: 1px solid rgba(255,255,255,0.22);
    background: rgba(255,255,255,0.10);
    color: #fff;
    border-radius: 10px;
    padding: 7px 10px;
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    flex: 1;
    text-align: center;
    white-space: nowrap;
    transition: background 0.15s ease, transform 0.15s ease;
}

.status-filter-btn:hover {
    transform: translateY(-1px);
    background: rgba(255,255,255,0.16);
}

.status-filter-btn.is-active {
    background: linear-gradient(135deg, #20c05c, #119e47);
    border-color: transparent;
}

.team-card-header {
    margin-bottom: 12px;
}

.team-card-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.team-title-texts {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.team-flag {
    width: 22px;
    height: 16px;
    object-fit: cover;
    border-radius: 3px;
    border: 1px solid rgba(255,255,255,0.25);
    box-shadow: 0 1px 4px rgba(0,0,0,0.18);
    background: rgba(255,255,255,0.12);
    flex: 0 0 auto;
}

.team-icon-fallback {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.18);
    font-size: 0.9rem;
    flex: 0 0 auto;
}

.team-name {
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
}

.team-code {
    margin-top: 2px;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.75);
}

.status-missing {
    background: rgba(65, 65, 65, 0.92);
    border: 1px solid rgba(255,255,255,0.10);
    color: #fff;
}

.status-owned {
    background: linear-gradient(135deg, #1fc457, #129847);
}

.status-repeated {
    background: linear-gradient(135deg, #ffb12b, #f18c00);
}

.sticker-tile {
    appearance: none;
    border-radius: 10px;
    padding: 10px 6px;
    min-height: 44px;
    font-weight: 800;
    font-size: 0.88rem;
    text-align: center;
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease;
    color: #fff;
}

.sticker-tile:disabled {
    opacity: 0.7;
    cursor: wait;
}

.sticker-tile-code {
    display: block;
    white-space: nowrap;
}

@media (min-width: 768px) {
    .album-filter-panel {
        gap: 14px;
    }

    .team-flag {
        width: 24px;
        height: 18px;
    }
}

.team-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.team-card-body {
    width: 100%;
}


.team-toggle-btn {
    background: rgba(255,255,255,0.1);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
}

.toggle-icon {
    font-size: 14px;
    transition: transform 0.2s ease;
    color: inherit;
}


.team-toggle-btn:hover {
    background: rgba(255,255,255,0.18);
    transform: translateY(-1px);
}

.team-card.is-collapsed .team-card-header {
    margin-bottom: 0;
}

.team-card.is-collapsed .team-card-body {
    display: none;
}

.team-card.is-collapsed .toggle-icon {
    transform: rotate(-90deg);
}
/* AJUSTES COPA 2026 */
.host-flags {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 10px;
    font-size: 1.1rem;
    line-height: 1;
}

.host-flags span {
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

.album-header-card {
    padding: 18px 16px;
}

.compact-summary {
    gap: 10px;
    margin-bottom: 14px;
}

.compact-summary div {
    padding: 10px 8px;
    border-radius: 14px;
}

.compact-summary strong {
    font-size: 1.05rem;
}

.compact-summary span {
    font-size: 0.84rem;
    margin-top: 2px;
}

.compact-filter-panel {
    gap: 10px;
}

.compact-filter-panel label {
    font-size: 0.95rem;
    margin-bottom: 0;
}

.compact-filter-panel input {
    padding: 12px 14px;
    margin-top: 4px;
    margin-bottom: 0;
    font-size: 0.96rem;
}

.btn-small {
    padding: 8px 12px;
    font-size: 0.95rem;
}

.status-filter-buttons {
    gap: 8px;
}

.status-filter-btn {
    padding: 8px 12px;
    font-size: 0.92rem;
    border-radius: 12px;
}

.list-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.list-action-buttons-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.btn-list-action {
    margin-top: 0;
    padding: 8px 10px;
    font-size: 0.82rem;
    border-radius: 12px;
    text-align: center;
    white-space: nowrap;
    flex: 1;
}

.btn-reset-repeated,
.btn-clear-all {
    margin-top: 0;
    padding: 8px 10px;
    font-size: 0.82rem;
    border-radius: 12px;
    text-align: center;
    white-space: nowrap;
    flex: 1;
}

/* Botão zerar repetidas */
.btn-reset-repeated {
    color: #b45309;
    border-color: rgba(180, 83, 9, 0.35);
}
.btn-reset-repeated:hover {
    background: rgba(180, 83, 9, 0.1);
    border-color: rgba(180, 83, 9, 0.6);
}
.dark .btn-reset-repeated { color: #fbbf24; border-color: rgba(251,191,36,0.35); }
.dark .btn-reset-repeated:hover { background: rgba(251,191,36,0.1); border-color: rgba(251,191,36,0.6); }

/* Botão zerar preenchidas */
.btn-clear-all {
    color: #dc2626;
    border-color: rgba(220, 38, 38, 0.35);
}
.btn-clear-all:hover {
    background: rgba(220, 38, 38, 0.1);
    border-color: rgba(220, 38, 38, 0.6);
}
.dark .btn-clear-all { color: #f87171; border-color: rgba(248,113,113,0.35); }
.dark .btn-clear-all:hover { background: rgba(248,113,113,0.1); border-color: rgba(248,113,113,0.6); }

.btn-toggle-all {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    border: none;
    margin-top: 0;
    width: 38px;
    height: 38px;
    min-width: 38px;
    padding: 0;
    font-size: 0.9rem;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn-toggle-all:hover {
    transform: translateY(-1px);
    opacity: 0.96;
}

.group-section-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.group-section-title {
    font-size: 1.16rem;
}

.group-section-progress {
    min-width: 48px;
    text-align: center;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 800;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.15);
}

.team-card {
    padding: 14px 12px;
    border-radius: 20px;
}

.team-card-header {
    margin-bottom: 10px;
}

.team-name-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.team-name {
    font-size: 0.98rem;
}

.team-code {
    font-size: 0.76rem;
}

.team-complete-star {
    display: none;
    font-size: 0.9rem;
    line-height: 1;
}

.team-complete-star.is-visible {
    display: inline-flex;
}

.stickers-grid-panini {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
}

.sticker-tile {
    min-height: 40px;
    padding: 8px 4px;
    font-size: 0.8rem;
}

.sticker-tile-code {
    font-size: 0.79rem;
}

.team-card.is-complete {
    border-color: rgba(255, 215, 0, 0.35);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22), inset 0 0 0 1px rgba(255, 215, 0, 0.12);
}

@media (max-width: 480px) {
    .app-topbar {
        padding: 14px 12px 8px;
    }

    .app-logo {
        height: 46px;
    }

    .host-flags {
        margin-left: 8px;
        font-size: 1rem;
        gap: 3px;
    }

    .app-content {
        padding: 14px 10px 24px;
        align-items: flex-start;
    }

    .album-header-card {
        padding: 14px 12px;
    }

    .public-card-title {
        font-size: 1.35rem !important;
        margin-bottom: 4px;
    }

    .public-card-kicker {
        font-size: 0.82rem;
        margin-bottom: 5px;
    }

    .album-header-top {
        margin-bottom: 12px;
    }

    .compact-summary {
        gap: 8px;
    }

    .compact-summary strong {
        font-size: 0.98rem;
    }

    .compact-summary span {
        font-size: 0.78rem;
    }

    .group-section {
        gap: 8px;
    }

    .team-card-list {
        gap: 10px;
    }

    .status-filter-btn,
    .btn-list-action {
        font-size: 0.84rem;
    }
}




.header-flags {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-left: 0;
}

.flag {
    width: 28px;
    height: 20px;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}


.team-progress-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 6px 0 10px;
    padding: 0 2px;
}

.team-progress-bar {
    flex: 1;
    height: 8px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.25);
}

.team-progress-fill {
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #0bbf53 0%, #21d06a 55%, #ffd54a 100%);
    transition: width 0.25s ease;
}

.team-progress-text {
    min-width: 42px;
    text-align: right;
    font-size: 12px;
    font-weight: 700;
    color: #f5f5f5;
}

.team-complete-star,
.team-almost-badge {
    display: none;
    margin-left: 6px;
    transform-origin: center;
}

.team-complete-star.is-visible,
.team-almost-badge.is-visible {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.team-card.is-almost-complete {
    box-shadow: 0 0 0 1px rgba(255, 153, 0, 0.45), 0 8px 24px rgba(255, 153, 0, 0.12);
}

.team-card.is-almost-complete .team-name {
    color: #ffe2b3;
}

.team-card.is-complete .team-progress-fill {
    background: linear-gradient(90deg, #f6c945 0%, #ffd95e 45%, #fff1a8 100%);
}

.team-card.is-complete .team-progress-bar {
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.2), 0 0 12px rgba(255, 220, 90, 0.25);
}

.animate-pop {
    animation: completeStarPop 0.6s ease;
}

@keyframes completeStarPop {
    0% {
        transform: scale(0.4) rotate(-20deg);
        opacity: 0;
    }
    45% {
        transform: scale(1.35) rotate(8deg);
        opacity: 1;
    }
    70% {
        transform: scale(0.92) rotate(-4deg);
    }
    100% {
        transform: scale(1) rotate(0);
        opacity: 1;
    }
}


.album-item {
    position: relative;
}

.album-item-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.album-item-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.album-item-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.album-delete-form {
    margin: 0;
}

.album-delete-icon-btn {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 10px;
    background: rgba(0,0,0,0.18);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    font-size: 15px;
    line-height: 1;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.album-delete-icon-btn:hover,
.album-delete-icon-btn:focus {
    background: rgba(180, 30, 30, 0.25);
    border-color: rgba(255,255,255,0.28);
    transform: scale(1.05);
}

.album-delete-icon-btn:active {
    transform: scale(0.96);
}

.album-summary-and-chart {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 14px;
    align-items: stretch;
}

.album-chart-card {
    min-height: 220px;
    padding: 10px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    position: relative;
}

.album-chart-card canvas {
    width: 100% !important;
    height: 100% !important;
}

@media (max-width: 768px) {
    .album-summary-and-chart {
        grid-template-columns: 1fr;
    }

    .album-chart-card {
        min-height: 240px;
    }
}



.album-header-actions {
    display: flex;
    align-items: center;
    gap: 3px;
    flex-shrink: 0;
}

.album-header-top > div:first-child .public-card-kicker {
    font-size: 0.7rem;
    margin-bottom: 1px;
}

.album-header-top > div:first-child .public-card-title {
    font-size: 1rem;
    margin-bottom: 0;
}

.album-header-actions .btn-small {
    padding: 6px 8px;
    font-size: 0.82rem;
}

.album-header-actions .btn-toggle-all {
    width: 32px;
    height: 32px;
    min-width: 32px;
    font-size: 0.8rem;
}

.album-chart-toggle-btn {
    min-width: 36px;
    padding: 6px 10px;
}

.album-chart-panel[hidden] {
    display: none !important;
}

.album-chart-card {
    min-height: 220px;
    padding: 10px 0 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.album-chart-panel {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-8px);
    transition:
        max-height 0.38s ease,
        opacity 0.28s ease,
        transform 0.32s ease,
        margin-top 0.32s ease;
    margin-top: 0;
    pointer-events: none;
}

.album-chart-panel.is-open {
    max-height: 260px;
    opacity: 1;
    transform: translateY(0);
    margin-top: 12px;
    pointer-events: auto;
}

.album-chart-card {
    height: 220px;
    max-height: 220px;
    padding: 8px 0 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    position: relative;
}

.album-chart-card canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-height: 220px !important;
}

@media (max-width: 480px) {
    .album-chart-panel.is-open {
        max-height: 230px;
    }

    .album-chart-card {
        height: 190px;
        max-height: 190px;
    }

    .album-chart-card canvas {
        max-height: 190px !important;
    }
}
.album-chart-toggle-btn {
    min-width: 36px;
    padding: 6px 10px;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.album-chart-toggle-btn:hover {
    transform: scale(1.06);
}

.album-chart-toggle-btn.is-open {
    transform: rotate(90deg);
}

body.dark {
    background: #0b0b0b;
}

body.dark .card {
    background: rgba(20,20,20,0.7);
    border: 1px solid rgba(255,255,255,0.08);
}

body.dark .app-overlay {
    background: rgba(0,0,0,0.8);
}

/* HISTÓRICO COMPACTO */

.dashboard-history-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
}

.dashboard-history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;

    font-size: 0.85rem;
    line-height: 1.2;

    padding: 6px 8px;
    border-radius: 10px;

    background: rgba(255,255,255,0.04);
}

/* Texto da ação */
.dashboard-history-text {
    flex: 1;
    font-size: 0.85rem;
    color: #f3f4f6;
}

/* Data menor e mais discreta */
.dashboard-history-date {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.6);
    white-space: nowrap;
}

/* Mobile ainda mais compacto */
@media (max-width: 480px) {
    .dashboard-history-item {
        font-size: 0.8rem;
        padding: 5px 6px;
    }

    .dashboard-history-date {
        font-size: 0.65rem;
    }
}
/* TOPO DO USUÁRIO */
.app-user-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 8px;
}

/* SWITCH DE TEMA */
.theme-switch {
    appearance: none;
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    line-height: 1;
}

.theme-switch-track {
    width: 52px;
    height: 30px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    padding: 3px;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.20);
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.2);
    transition: background 0.22s ease, border-color 0.22s ease;
}

.theme-switch-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ffffff;
    color: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(0);
    transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.theme-switch.is-dark .theme-switch-thumb {
    transform: translateX(22px);
    background: #111827;
    color: #fff;
}

.theme-switch.is-dark .theme-switch-track {
    background: rgba(70, 90, 140, 0.45);
    border-color: rgba(255,255,255,0.24);
}

.theme-switch-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.theme-icon-light {
    opacity: 1;
    transform: scale(1);
}

.theme-icon-dark {
    opacity: 0;
    transform: scale(0.7);
}

.theme-switch.is-dark .theme-icon-light {
    opacity: 0;
    transform: scale(0.7);
}

.theme-switch.is-dark .theme-icon-dark {
    opacity: 1;
    transform: scale(1);
}

/* TEMA ESCURO / CLARO */
body.app-body {
    transition: background-color 0.25s ease, color 0.25s ease;
}

body.dark .app-overlay {
    background: rgba(0, 0, 0, 0.78);
}

body:not(.dark) .app-overlay {
    background: rgba(255, 255, 255, 0.26);
}

body:not(.dark) .card {
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid rgba(255,255,255,0.35);
    color: #1f2937;
}

body:not(.dark) .card h1,
body:not(.dark) .card h2,
body:not(.dark) .card h3,
body:not(.dark) .card p,
body:not(.dark) .card label,
body:not(.dark) .public-card-title,
body:not(.dark) .section-title,
body:not(.dark) .team-name,
body:not(.dark) .album-item-title,
body:not(.dark) .group-section-title,
body:not(.dark) .group-section-progress,
body:not(.dark) .dashboard-history-text,
body:not(.dark) .dashboard-mini-name,
body:not(.dark) .dashboard-mini-meta,
body:not(.dark) .team-progress-text,
body:not(.dark) .app-welcome {
    color: #1f2937;
}

body:not(.dark) input,
body:not(.dark) select,
body:not(.dark) textarea {
    background: rgba(255,255,255,0.72);
    color: #1f2937;
    border: 1px solid rgba(0,0,0,0.10);
}

body:not(.dark) input::placeholder,
body:not(.dark) textarea::placeholder {
    color: rgba(31,41,55,0.55);
}

body:not(.dark) .btn-secondary {
    background: rgba(255,255,255,0.72);
    color: #1f2937;
    border: 1px solid rgba(0,0,0,0.10);
}

body:not(.dark) .album-summary div,
body:not(.dark) .album-item,
body:not(.dark) .dashboard-history-item,
body:not(.dark) .dashboard-mini-item,
body:not(.dark) .group-section-progress,
body:not(.dark) .team-progress-bar,
body:not(.dark) .status-filter-btn,
body:not(.dark) .team-toggle-btn {
    background: rgba(255,255,255,0.55);
    color: #1f2937;
    border-color: rgba(0,0,0,0.08);
}

body:not(.dark) .public-card-kicker,
body:not(.dark) .public-card-text,
body:not(.dark) .album-item-meta,
body:not(.dark) .team-code,
body:not(.dark) .list-action-help,
body:not(.dark) .dashboard-history-date {
    color: rgba(31,41,55,0.72);
}

/* ===== MELHOR CONTRASTE NO MODO CLARO ===== */

body:not(.dark) .album-summary div {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(0,0,0,0.08);
}

body:not(.dark) .album-summary strong {
    color: #111827; /* quase preto */
}

body:not(.dark) .album-summary span {
    color: #374151; /* cinza mais forte */
}


/* HISTÓRICO / LISTAS / CARDS */
body:not(.dark) .dashboard-history-item,
body:not(.dark) .dashboard-mini-item,
body:not(.dark) .album-item,
body:not(.dark) .group-section-progress {
    background: rgba(255,255,255,0.85);
    border: 1px solid rgba(0,0,0,0.08);
}


/* TEXTO PRINCIPAL */
body:not(.dark) .dashboard-history-text,
body:not(.dark) .dashboard-mini-name,
body:not(.dark) .album-item-title,
body:not(.dark) .group-section-title {
    color: #111827;
}


/* TEXTO SECUNDÁRIO */
body:not(.dark) .dashboard-history-date,
body:not(.dark) .dashboard-mini-meta,
body:not(.dark) .album-item-meta {
    color: #4b5563;
}


/* INPUT E BUSCA */
body:not(.dark) input {
    background: rgba(255,255,255,0.95);
    color: #111827;
    border: 1px solid rgba(0,0,0,0.12);
}

body:not(.dark) input::placeholder {
    color: rgba(0,0,0,0.45);
}


/* BOTÕES DE FILTRO */
body:not(.dark) .status-filter-btn {
    background: rgba(255,255,255,0.85);
    color: #111827;
    border: 1px solid rgba(0,0,0,0.1);
}

body:not(.dark) .status-filter-btn.is-active {
    background: #22c55e;
    color: white;
    border-color: #22c55e;
}


/* =========================================
   🌞 CORREÇÃO DEFINITIVA MODO CLARO (SEM QUEBRAR UI)
========================================= */

/* CARDS */
body:not(.dark) .card {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(0,0,0,0.08);
    color: #111827;
}

/* TÍTULOS */
body:not(.dark) .section-title,
body:not(.dark) .public-card-title {
    color: #111827;
}

/* TEXTO GERAL */
body:not(.dark) .card p,
body:not(.dark) .card label,
body:not(.dark) .app-welcome {
    color: #374151;
}

/* 🔥 SEUS ÁLBUNS (CORREÇÃO DO PRINT) */
body:not(.dark) .album-item {
    background: rgba(255,255,255,0.95);
    border: 1px solid rgba(0,0,0,0.08);
}

body:not(.dark) .album-item-title {
    color: #111827;
    font-weight: 700;
}

body:not(.dark) .album-item-meta {
    color: #4b5563;
}

/* HISTÓRICO */
body:not(.dark) .dashboard-history-item {
    background: rgba(255,255,255,0.75);
    border: 1px solid rgba(0,0,0,0.06);
}

body:not(.dark) .dashboard-history-text {
    color: #1f2937;
}

body:not(.dark) .dashboard-history-date {
    color: #6b7280;
}

/* RESUMO */
body:not(.dark) .album-summary div {
    background: rgba(255,255,255,0.9);
    border: 1px solid rgba(0,0,0,0.06);
}

body:not(.dark) .album-summary strong {
    color: #111827;
}

body:not(.dark) .album-summary span {
    color: #4b5563;
}

/* INPUT */
body:not(.dark) input {
    background: rgba(255,255,255,0.95);
    color: #111827;
    border: 1px solid rgba(0,0,0,0.1);
}

/* BOTÕES */
body:not(.dark) .btn-secondary {
    background: rgba(255,255,255,0.85);
    color: #111827;
    border: 1px solid rgba(0,0,0,0.1);
}

/* OVERLAY MAIS SUAVE */
body:not(.dark) .app-overlay {
    background: rgba(255,255,255,0.22);
}

/* =========================================
   🔗 CORREÇÃO LINKS (SEUS ÁLBUNS)
========================================= */

/* remove azul padrão */
.album-item a,
.album-item-link {
    color: inherit;
    text-decoration: none;
}

/* título */
body:not(.dark) .album-item-title {
    color: #111827;
}

/* porcentagem / meta */
body:not(.dark) .album-item-meta {
    color: #374151;
}

/* garante que qualquer texto dentro do link fique correto */
body:not(.dark) .album-item a * {
    color: inherit;
}

/* dark continua branco */
body.dark .album-item a * {
    color: #fff;
}









/* =========================
   📦 ALBUM ITEM MELHORADO
========================= */

.album-item-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* % */
.album-item-percent {
    font-weight: 800;
    font-size: 0.95rem;
    opacity: 0.9;
}

/* PROGRESSO */
.dashboard-album-progress {
    margin-top: 10px;
}

.dashboard-album-progress-bar {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255,255,255,0.15);
}

.dashboard-album-progress-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #22c55e, #16a34a);
    transition: width 0.3s ease;
}

.dashboard-album-progress-text {
    margin-top: 4px;
    font-size: 0.75rem;
    text-align: right;
    opacity: 0.8;
}

/* MODO CLARO */
body:not(.dark) .dashboard-album-progress-bar {
    background: rgba(0,0,0,0.08);
}

body:not(.dark) .dashboard-album-progress-text {
    color: #374151;
}


.dashboard-mini-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* linha nome + valor */
.ranking-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ranking-name {
    font-weight: 600;
}

.ranking-value {
    font-weight: 800;
}

/* barra */
.ranking-bar {
    width: 100%;
    height: 6px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255,255,255,0.15);
}

.ranking-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #22c55e, #16a34a);
}

/* modo claro */
body:not(.dark) .ranking-bar {
    background: rgba(0,0,0,0.08);
}

/* MODAL DE EXCLUSÃO */
body.modal-open {
    overflow: hidden;
}

.btn-danger {
    background: linear-gradient(135deg, #d93b3b, #b91c1c);
    color: #fff;
    border: none;
}

.btn-danger:hover {
    transform: translateY(-1px);
    opacity: 0.97;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.58);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);

    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}
.modal-backdrop {
    pointer-events: auto;
}

.modal-backdrop[hidden] {
    pointer-events: none !important;
}

.modal-backdrop[hidden] {
    display: none !important;
}

[hidden] {
    display: none !important;
}

.modal-backdrop[hidden] {
    display: none !important;
    pointer-events: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

.modal-shell {
    width: 100%;
    max-width: 460px;
    background: rgba(255, 255, 255, 0.96);
    color: #1f2937;
    border-radius: 24px;
    padding: 22px 18px 18px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.28);
    position: relative;
    animation: modalEnter 0.22s ease;
}

.modal-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 12px;
    background: rgba(0,0,0,0.06);
    color: #1f2937;
    font-size: 1rem;
    cursor: pointer;
}

.modal-close-btn:hover {
    background: rgba(0,0,0,0.1);
}

.modal-icon {
    width: 64px;
    height: 64px;
    margin: 4px auto 14px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(217,59,59,0.14), rgba(185,28,28,0.18));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.9rem;
}

.modal-title {
    text-align: center;
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: #1f2937;
}

.modal-text {
    text-align: center;
    line-height: 1.45;
    color: #4b5563;
    margin-bottom: 14px;
}

.modal-warning-box {
    border-radius: 16px;
    background: #fff5f5;
    border: 1px solid #fecaca;
    padding: 14px;
    margin-bottom: 16px;
}

.modal-warning-title {
    font-weight: 800;
    color: #b91c1c;
    margin-bottom: 4px;
}

.modal-warning-text {
    color: #7f1d1d;
    line-height: 1.4;
}

.modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.modal-btn {
    margin-top: 0;
}

.modal-step2 {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(0,0,0,0.08);
}

.modal-step2-text {
    text-align: center;
    margin-bottom: 12px;
    font-weight: 700;
    color: #1f2937;
}

@keyframes modalEnter {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

body.dark .modal-shell {
    background: rgba(20, 20, 20, 0.98);
    color: #f9fafb;
}

body.dark .modal-title,
body.dark .modal-step2-text {
    color: #f9fafb;
}

body.dark .modal-text {
    color: rgba(255,255,255,0.78);
}

body.dark .modal-close-btn {
    background: rgba(255,255,255,0.08);
    color: #fff;
}

body.dark .modal-close-btn:hover {
    background: rgba(255,255,255,0.14);
}

body.dark .modal-warning-box {
    background: rgba(127, 29, 29, 0.18);
    border-color: rgba(248, 113, 113, 0.32);
}

body.dark .modal-warning-title {
    color: #fca5a5;
}

body.dark .modal-warning-text {
    color: #fecaca;
}

@media (max-width: 520px) {
    .modal-backdrop {
        padding: 12px;
        align-items: flex-end;
    }

    .modal-shell {
        max-width: none;
        border-radius: 24px 24px 18px 18px;
        padding: 20px 16px 16px;
        max-height: 92dvh;
        max-height: 92vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .modal-title {
        font-size: 1.35rem;
    }

    .modal-actions,
    .modal-actions-stack-mobile {
        grid-template-columns: 1fr;
    }

    .modal-close-btn {
        position: sticky;
        top: 0;
        float: right;
        margin-left: auto;
        margin-bottom: 4px;
        z-index: 10;
    }
}

.album-near-complete-card {
    width: 100%;
    max-width: 980px;
}

.album-near-complete-card .album-near-complete-box {
    margin-bottom: 0;
}

.album-near-complete-card .album-near-complete-box + .album-near-complete-box {
    margin-top: 12px;
}

.album-complete-section {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.album-complete-section .album-near-complete-title {
    color: #4ade80;
}

body:not(.dark) .album-complete-section {
    background: rgba(34, 197, 94, 0.08);
    border-color: rgba(34, 197, 94, 0.25);
}

body:not(.dark) .album-complete-section .album-near-complete-title {
    color: #15803d;
}

body:not(.dark) .album-complete-section .album-near-complete-item {
    color: #14532d;
}

/* =========================================
   🎯 CAIXA "QUASE COMPLETO"
========================================= */
.album-near-complete-box {
    background: rgba(255, 153, 0, 0.12);
    border: 1px solid rgba(255, 153, 0, 0.3);
    border-radius: 16px;
    padding: 12px 14px;
    margin-bottom: 14px;
}

.album-near-complete-title {
    font-weight: 800;
    font-size: 0.95rem;
    margin-bottom: 6px;
    color: #ffb84d;
}

.album-near-complete-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.album-near-complete-item {
    font-size: 0.88rem;
    line-height: 1.4;
    color: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    gap: 6px;
}

.near-complete-flag {
    width: 22px;
    height: 15px;
    object-fit: cover;
    border-radius: 3px;
    border: 1px solid rgba(255,255,255,0.2);
    flex-shrink: 0;
}

.near-complete-icon {
    font-size: 0.9rem;
    flex-shrink: 0;
}

body:not(.dark) .album-near-complete-box {
    background: rgba(255, 153, 0, 0.08);
    border-color: rgba(255, 153, 0, 0.25);
}

body:not(.dark) .album-near-complete-title {
    color: #b45309;
}

body:not(.dark) .album-near-complete-item {
    color: #78350f;
}

body:not(.dark) .near-complete-flag {
    border-color: rgba(0,0,0,0.12);
}

/* =========================================
   🌞 MODO CLARO — CORREÇÕES ÁLBUM
========================================= */

/* Figurinha faltante */
/* Figurinha colada/repetida — texto branco OK nos fundos coloridos */

/* Nome do país quando quase completo */
body:not(.dark) .team-card.is-almost-complete .team-name {
    color: #b45309;
}

/* Borda do card quase completo */
body:not(.dark) .team-card.is-almost-complete {
    box-shadow: 0 0 0 1px rgba(255, 153, 0, 0.35), 0 8px 24px rgba(255, 153, 0, 0.08);
}

/* Botão gráfico */
body:not(.dark) .album-chart-toggle-btn {
    background: rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.1);
    color: #374151;
}

/* Barra de progresso dentro do card de seleção */
body:not(.dark) .team-progress-bar {
    background: rgba(0, 0, 0, 0.08);
}

body:not(.dark) .team-progress-text {
    color: #374151;
}

/* Texto da figurinha faltante no modo claro */
body:not(.dark) .sticker-tile.status-missing {
    background: rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.15);
    color: #1f2937;
}

/* =========================================
   🏆 MODAL DE CELEBRAÇÃO — ÁLBUM COMPLETO
========================================= */
.celebration-backdrop {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: celebrationFadeIn 0.4s ease;
}

.celebration-backdrop.celebration-closing {
    animation: celebrationFadeOut 0.3s ease forwards;
}

.celebration-content {
    position: relative;
    text-align: center;
    max-width: 400px;
    width: 100%;
    animation: celebrationBounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.celebration-close {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, transform 0.15s ease;
    z-index: 1;
}

.celebration-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
}

.celebration-trophy {
    font-size: 10rem;
    line-height: 1;
    margin-bottom: 16px;
    filter: drop-shadow(0 8px 32px rgba(255, 200, 0, 0.5));
    animation: trophyPulse 2s ease-in-out infinite;
}

.celebration-title {
    font-size: 2.2rem;
    font-weight: 900;
    color: #ffd700;
    text-shadow: 0 2px 12px rgba(255, 215, 0, 0.4);
    margin-bottom: 10px;
}

.celebration-text {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

@keyframes celebrationFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes celebrationFadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes celebrationBounce {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(40px);
    }
    60% {
        transform: scale(1.05) translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes trophyPulse {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    25% {
        transform: scale(1.05) rotate(-3deg);
    }
    75% {
        transform: scale(1.05) rotate(3deg);
    }
}

/* =========================================
   👤 PÁGINA MINHA CONTA
========================================= */
.account-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.account-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
}

.account-label {
    font-weight: 700;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.7);
}

.account-value {
    font-weight: 600;
    font-size: 0.95rem;
}

.account-danger-text {
    color: rgba(255,255,255,0.8);
    line-height: 1.5;
    font-size: 0.92rem;
}

body:not(.dark) .account-info-row {
    background: rgba(0,0,0,0.04);
    border-color: rgba(0,0,0,0.08);
}

body:not(.dark) .account-label {
    color: #6b7280;
}

body:not(.dark) .account-value {
    color: #1f2937;
}

body:not(.dark) .account-danger-text {
    color: #4b5563;
}
/* ── Medidor de força de senha ──────────────────────────────── */
.password-strength-wrap {
    margin-top: 6px;
    margin-bottom: 4px;
}

.password-strength-bar {
    height: 5px;
    border-radius: 4px;
    background: rgba(255,255,255,0.12);
    overflow: hidden;
}

.password-strength-fill {
    height: 100%;
    width: 0%;
    border-radius: 4px;
    transition: width 0.3s ease, background 0.3s ease;
}

.password-strength-fill[data-level="1"] { background: #ef4444; width: 25%; }
.password-strength-fill[data-level="2"] { background: #f97316; width: 50%; }
.password-strength-fill[data-level="3"] { background: #eab308; width: 75%; }
.password-strength-fill[data-level="4"] { background: #22c55e; width: 100%; }

.password-strength-label {
    display: block;
    font-size: 0.75rem;
    margin-top: 3px;
    font-weight: 600;
}

.password-strength-label[data-level="1"] { color: #ef4444; }
.password-strength-label[data-level="2"] { color: #f97316; }
.password-strength-label[data-level="3"] { color: #eab308; }
.password-strength-label[data-level="4"] { color: #22c55e; }

body:not(.dark) .password-strength-bar {
    background: rgba(0,0,0,0.08);
}

/* ── Scan pack modal ────────────────────────────────────────── */
.scan-result-label {
    font-size: 0.85rem;
    font-weight: 600;
    margin: 10px 0 4px;
}
.scan-result-new      { color: #16a34a; }
.scan-result-repeated { color: #d97706; }
.scan-result-unknown  { color: #6b7280; font-weight: 400; font-size: 0.8rem; margin-top: 8px; }

.scan-result-codes {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 4px;
}
.scan-result-codes span {
    background: rgba(0,0,0,0.06);
    border-radius: 6px;
    padding: 2px 7px;
    font-size: 0.78rem;
    font-weight: 700;
    font-family: monospace;
    color: #1f2937;
}
.dark .scan-result-codes span {
    background: rgba(255,255,255,0.1);
    color: #f3f4f6;
}

/* ── Sticker tile wrap ──────────────────────────────────────── */
.sticker-tile-wrap {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    position: relative;
}

/* ── Repeat counter ─────────────────────────────────────────── */
.sticker-repeat-counter {
    display: none;
    align-items: center;
    justify-content: center;
    height: 22px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 177, 43, 0.18);
    border: 1px solid rgba(241, 140, 0, 0.35);
}

.sticker-repeat-counter.is-visible { display: flex; }

.repeat-btn {
    appearance: none;
    background: none;
    border: none;
    color: #f18c00;
    font-size: 1rem;
    font-weight: 700;
    padding: 0 6px;
    height: 100%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.12s;
    flex-shrink: 0;
}
.repeat-btn:hover  { background: rgba(241,140,0,0.18); }
.repeat-btn:active { background: rgba(241,140,0,0.32); }

.repeat-count {
    flex: 1;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #b45309;
    pointer-events: none;
}

.dark .sticker-repeat-counter { background: rgba(255,177,43,0.12); border-color: rgba(241,140,0,0.28); }
.dark .repeat-btn   { color: #fbbf24; }
.dark .repeat-count { color: #fcd34d; }

/* ── Tooltip de nome da figurinha ───────────────────────────── */
.sticker-label-tooltip {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: rgba(15, 23, 42, 0.95);
    color: #f1f5f9;
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
    padding: 4px 8px;
    border-radius: 8px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.18s ease, transform 0.18s ease;
    z-index: 100;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.sticker-label-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(15, 23, 42, 0.95);
}

.sticker-label-tooltip.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

body:not(.dark) .sticker-label-tooltip {
    background: rgba(30, 41, 59, 0.95);
}

/* ── Nome da figurinha visível em telas maiores ─────────────── */
.sticker-tile-name {
    display: none;
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    color: rgba(255,255,255,0.9);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    padding: 0 2px;
    margin-top: 2px;
    pointer-events: none;
}

body:not(.dark) .sticker-tile-name {
    color: rgba(30, 41, 59, 0.85);
}

/* A partir de 600px (tablet vertical), exibe o nome se a figurinha tiver um */
@media (min-width: 600px) {
    .sticker-tile-wrap.has-name .sticker-tile {
        flex-direction: column;
        gap: 2px;
        padding: 6px 4px;
    }

    .sticker-tile-wrap.has-name .sticker-tile-name {
        display: block;
    }

    /* Tooltip desabilitado em telas maiores — nome já está visível */
    .sticker-tile-wrap.has-name .sticker-label-tooltip {
        display: none !important;
    }
}

/* ══════════════════════════════════════════════════════════════
   DASHBOARD REDESIGN
══════════════════════════════════════════════════════════════ */

/* Card de álbum */
.db-album-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.db-album-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.db-album-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Progresso em destaque */
.db-progress-hero {
    display: flex;
    align-items: center;
    gap: 14px;
}

.db-progress-percent {
    font-size: 2.2rem;
    font-weight: 800;
    color: #22c55e;
    line-height: 1;
    flex-shrink: 0;
    min-width: 64px;
    text-align: right;
}

.db-progress-bar-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.db-progress-bar {
    height: 8px;
    border-radius: 6px;
    background: rgba(255,255,255,0.12);
    overflow: hidden;
}

.db-progress-fill {
    height: 100%;
    border-radius: 6px;
    background: linear-gradient(90deg, #22c55e, #16a34a);
    transition: width 0.4s ease;
}

.db-progress-label {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.65);
}

/* Stats secundários */
.db-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.db-stat {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 10px 8px;
    text-align: center;
}

.db-stat strong {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.db-stat span {
    display: block;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.6);
    margin-top: 3px;
}

/* CTA */
.db-cta {
    display: block;
    text-align: center;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 700;
    padding: 14px;
    border-radius: 14px;
}

/* Histórico colapsável */
.db-history-card {
    padding: 0;
    overflow: hidden;
}

.db-history-summary {
    padding: 14px 18px;
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255,255,255,0.75);
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.db-history-summary::-webkit-details-marker { display: none; }

.db-history-card[open] .db-history-summary {
    border-bottom: 1px solid rgba(255,255,255,0.08);
    color: #fff;
}

.db-history-card .dashboard-history-list {
    padding: 0 18px 14px;
}

/* Novo álbum */
.db-new-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.db-new-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.db-new-form {
    display: flex;
    gap: 10px;
    align-items: center;
}

.db-new-input {
    flex: 1;
    min-width: 0;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-size: 0.95rem;
}

.db-new-input::placeholder { color: rgba(255,255,255,0.4); }
.db-new-input:focus {
    outline: none;
    border-color: rgba(255,255,255,0.35);
    background: rgba(255,255,255,0.12);
}

.db-new-btn {
    display: inline-block !important;
    width: auto !important;
    flex-shrink: 0;
    padding: 12px 22px !important;
    margin-top: 0 !important;
    font-size: 0.9rem !important;
    white-space: nowrap;
}

.db-limit-card { opacity: 0.7; }

.db-limit-text {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    margin: 0;
}

/* Light mode */
body:not(.dark) .db-album-name { color: #1f2937; }
body:not(.dark) .db-progress-label { color: rgba(30,41,59,0.55); }
body:not(.dark) .db-stat { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.08); }
body:not(.dark) .db-stat strong { color: #111827; }
body:not(.dark) .db-stat span { color: rgba(30,41,59,0.55); }
body:not(.dark) .db-history-summary { color: rgba(30,41,59,0.65); }
body:not(.dark) .db-history-card[open] .db-history-summary { color: #1f2937; border-color: rgba(0,0,0,0.08); }
body:not(.dark) .db-new-title { color: rgba(30,41,59,0.55); }
body:not(.dark) .db-new-input { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.14); color: #1f2937; }
body:not(.dark) .db-new-input::placeholder { color: rgba(30,41,59,0.4); }
body:not(.dark) .db-limit-text { color: rgba(30,41,59,0.55); }

/* ── Stats menores ──────────────────────────────────────────── */
.db-stat-sm {
    padding: 7px 6px;
}

.db-stat-sm strong {
    font-size: 1rem;
}

.db-stat-sm span {
    font-size: 0.68rem;
}

/* ── Destaques por país ─────────────────────────────────────── */
.db-highlights {
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 12px;
}

.db-highlight-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.db-highlight-label {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.5);
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 105px;
}

.db-highlight-group {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
}

.db-highlight-flag {
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
}

.db-highlight-icon {
    font-size: 0.85rem;
    flex-shrink: 0;
}

.db-highlight-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.db-highlight-value {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.55);
    white-space: nowrap;
    flex-shrink: 0;
}

body:not(.dark) .app-topbar {
    background: rgba(255,255,255,0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

body:not(.dark) .app-welcome {
    color: #111827 !important;
    font-weight: 600;
}

body:not(.dark) .db-highlight-label {
    color: rgba(30,41,59,0.75) !important;
}

body:not(.dark) .db-highlight-name {
    color: #111827 !important;
}

body:not(.dark) .db-highlight-value {
    color: rgba(30,41,59,0.65) !important;
}

/* ── Search input com botão limpar ──────────────────────────── */
.search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-wrap #album-search {
    width: 100%;
    padding-right: 36px;
}

.search-clear-btn {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 0.8rem;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 6px;
    line-height: 1;
    transition: color 0.15s, background 0.15s;
}

.search-clear-btn:hover {
    color: #fff;
    background: rgba(255,255,255,0.12);
}

body:not(.dark) .search-clear-btn {
    color: rgba(30,41,59,0.45);
}

body:not(.dark) .search-clear-btn:hover {
    color: #111827;
    background: rgba(0,0,0,0.07);
}

/* ── Modal de sincronização ─────────────────────────────────── */
.sync-changes-body {
    max-height: 220px;
    overflow-y: auto;
    margin: 10px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sync-album-block {
    background: rgba(0,0,0,0.04);
    border-radius: 10px;
    padding: 10px 12px;
    border: 1px solid rgba(0,0,0,0.07);
}

.sync-album-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: #1f2937;
    margin-bottom: 6px;
}

.sync-changes {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sync-change-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #374151;
}

.sync-badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 20px;
    white-space: nowrap;
}

.sync-badge-new     { background: #dcfce7; color: #15803d; }
.sync-badge-renamed { background: #fef9c3; color: #a16207; }

.sync-change-detail {
    font-size: 0.75rem;
    color: #6b7280;
    padding-left: 8px;
}

.sync-more {
    font-style: italic;
    color: #9ca3af;
}

.sync-progress-bar {
    height: 6px;
    border-radius: 4px;
    background: rgba(0,0,0,0.08);
    overflow: hidden;
    margin: 12px 0 6px;
}

.sync-progress-fill {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, #22c55e, #16a34a);
    width: 0%;
    transition: width 0.4s ease;
}

.sync-progress-label {
    font-size: 0.82rem;
    color: #6b7280;
    text-align: center;
}

.sync-badge-orphaned { background: #fee2e2; color: #b91c1c; }

/* ── Indicadores do álbum ───────────────────────────────────── */
.db-indicators {
    display: flex;
    flex-direction: column;
    gap: 5px;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 10px;
}

.db-indicator-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.db-indicator-label {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.55);
}

.db-indicator-value {
    font-size: 0.82rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
}

body:not(.dark) .db-indicators {
    border-color: rgba(0,0,0,0.07);
}

body:not(.dark) .db-indicator-label {
    color: rgba(30,41,59,0.55);
}

body:not(.dark) .db-indicator-value {
    color: #111827;
}

/* ══════════════════════════════════════════════════════════════
   ALBUM REDESIGN
══════════════════════════════════════════════════════════════ */

/* ── Botões de ação do topo ─────────────────────────────────── */
.album-action-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 4px 0;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.85);
    font-size: 0.6rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s;
    width: 44px;
    height: 40px;
    flex-shrink: 0;
    text-align: center;
}

.album-action-btn:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.28);
    color: #fff;
}

.album-action-icon { font-size: 0.9rem; line-height: 1; }
.album-action-label { line-height: 1; }

.album-action-btn--collapse {
    width: 44px;
    height: 40px;
    font-size: 0.8rem;
}

body:not(.dark) .album-action-btn {
    border-color: rgba(0,0,0,0.12);
    background: rgba(0,0,0,0.04);
    color: #374151;
}
body:not(.dark) .album-action-btn:hover {
    background: rgba(0,0,0,0.08);
    color: #111827;
}

/* ── Progresso hero ─────────────────────────────────────────── */
.album-progress-hero {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.album-progress-hero-left {
    flex-shrink: 0;
    text-align: center;
    min-width: 64px;
}

.album-progress-pct {
    font-size: 2.8rem;
    font-weight: 800;
    color: #22c55e;
    line-height: 1;
}

.album-progress-sub {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.5);
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.album-progress-hero-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.album-progress-repeated {
    color: rgba(251,191,36,0.9) !important;
}

.album-progress-repeated .album-progress-sep {
    color: rgba(251,191,36,0.5) !important;
}

.album-progress-bar-big {
    height: 10px;
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
    overflow: hidden;
}

.album-progress-fill-big {
    height: 100%;
    border-radius: 8px;
    background: linear-gradient(90deg, #22c55e, #16a34a);
    transition: width 0.4s ease;
}

.album-progress-counts {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.65);
    display: flex;
    gap: 4px;
    align-items: center;
}

.album-progress-sep { color: rgba(255,255,255,0.35); }

body:not(.dark) .album-progress-sub    { color: rgba(30,41,59,0.45); }
body:not(.dark) .album-progress-counts { color: rgba(30,41,59,0.75); }
body:not(.dark) .album-progress-sep    { color: rgba(30,41,59,0.4); }
body:not(.dark) .album-progress-bar-big { background: rgba(0,0,0,0.08); }
body:not(.dark) .album-progress-repeated { color: #b45309 !important; }
body:not(.dark) .album-progress-repeated .album-progress-sep { color: rgba(180,83,9,0.5) !important; }

.db-optional-label {
    color: #7c3aed;
    font-weight: 600;
}
body.dark .db-optional-label { color: rgba(167,139,250,0.9); }

.album-progress-optional {
    color: rgba(139,92,246,0.9) !important;
}
.album-progress-optional .album-progress-sep {
    color: rgba(139,92,246,0.5) !important;
}
body:not(.dark) .album-progress-optional { color: #7c3aed !important; }
body:not(.dark) .album-progress-optional .album-progress-sep { color: rgba(124,58,237,0.5) !important; }

/* ── Filtros checkbox ───────────────────────────────────────── */
.status-filter-checks {
    display: flex;
    gap: 5px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.status-filter-checks::-webkit-scrollbar { display: none; }

.filter-check {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 9px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.65);
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    user-select: none;
    transition: all 0.25s ease;
    white-space: nowrap;
    flex-shrink: 0;
    overflow: hidden;
}

/* Label do filtro — colapsa quando ativo */
.filter-check > span:last-child {
    max-width: 80px;
    overflow: hidden;
    transition: max-width 0.25s ease, opacity 0.2s ease, margin 0.25s ease;
    opacity: 1;
}

.filter-check.is-active > span:last-child {
    max-width: 0;
    opacity: 0;
    margin: 0;
}

.filter-check-box {
    width: 12px;
    height: 12px;
    border: 1.5px solid rgba(255,255,255,0.3);
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
    transition: all 0.15s;
}

.filter-check.is-active {
    background: rgba(34,197,94,0.18);
    border-color: #22c55e;
    color: #fff;
}

.filter-check.is-active .filter-check-box {
    background: #22c55e;
    border-color: #22c55e;
}

.filter-check:hover:not(.is-active) {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

body:not(.dark) .filter-check {
    border-color: rgba(0,0,0,0.12);
    background: rgba(0,0,0,0.04);
    color: #374151;
}
body:not(.dark) .filter-check.is-active {
    background: rgba(34,197,94,0.12);
    border-color: #16a34a;
    color: #15803d;
}
body:not(.dark) .filter-check.is-active .filter-check-box {
    background: #16a34a;
    border-color: #16a34a;
    color: #fff;
}
body:not(.dark) .filter-check-box {
    border-color: rgba(0,0,0,0.2);
}

/* ── Separador linha de botões perigosos ────────────────────── */
.list-action-buttons-row--danger {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 8px;
    margin-top: 2px;
}

body:not(.dark) .list-action-buttons-row--danger {
    border-color: rgba(0,0,0,0.07);
}

/* ── Reduzir densidade dos cards ────────────────────────────── */
.team-card-header { margin-bottom: 8px !important; }
.team-name        { font-size: 1rem !important; }
.team-code        { font-size: 0.78rem !important; margin-top: 2px !important; }
.team-flag        { width: 28px !important; height: 20px !important; }
.team-progress-wrap { margin: 4px 0 6px !important; }
.stickers-grid-panini { gap: 6px !important; }
.sticker-tile     { padding: 6px 4px !important; min-height: 36px !important; }
/* ── Botão scroll-to-top ─────────────────────────────────────── */
.btn-scroll-top {
    position: fixed;
    bottom: 24px;
    right: 20px;
    z-index: 900;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--color-primary, #2563eb);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.25);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.25s, transform 0.25s;
    pointer-events: none;
}

.btn-scroll-top.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.btn-scroll-top:hover {
    filter: brightness(1.12);
}

.btn-scroll-top[hidden] {
    display: none !important;
}
/* QR trade */
.qr-trade-modal-shell {
    max-width: 520px;
}

.qr-trade-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 14px;
}

.qr-trade-status {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.18);
    color: #fff;
    font-weight: 600;
}

.qr-trade-status.is-success {
    background: rgba(32, 192, 92, 0.22);
    border-color: rgba(32, 192, 92, 0.45);
}

.qr-trade-status.is-error {
    background: rgba(220, 70, 70, 0.20);
    border-color: rgba(220, 70, 70, 0.38);
}

.qr-trade-status.is-loading {
    background: rgba(255, 193, 7, 0.18);
    border-color: rgba(255, 193, 7, 0.34);
}

.qr-trade-panel {
    margin-top: 14px;
    padding: 14px;
    border-radius: 18px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.16);
}

.qr-trade-panel-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.qr-trade-panel-text,
.qr-trade-result-meta,
.qr-reader-manual label,
.qr-trade-token-label,
.qr-trade-chip span,
.qr-trade-empty {
    color: rgba(255,255,255,0.85);
}

.qr-trade-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.qr-trade-panel-header .qr-trade-panel-title {
    margin-bottom: 0;
}

.qr-trade-panel-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qr-trade-pdf-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.20);
    background: rgba(255,255,255,0.10);
    color: rgba(255,255,255,0.85);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}

.qr-trade-pdf-btn:hover {
    background: rgba(255,255,255,0.22);
    color: #fff;
}

.qr-trade-pdf-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

body:not(.dark) .qr-trade-pdf-btn {
    border-color: rgba(0,0,0,0.16);
    background: rgba(0,0,0,0.06);
    color: rgba(0,0,0,0.7);
}

body:not(.dark) .qr-trade-pdf-btn:hover {
    background: rgba(0,0,0,0.12);
    color: #000;
}

.qr-trade-result-close-btn {
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.16);
    color: rgba(255,255,255,0.75);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.85rem;
    line-height: 1;
    transition: background 0.15s, color 0.15s;
    flex-shrink: 0;
}

.qr-trade-result-close-btn:hover {
    background: rgba(255,255,255,0.20);
    color: #fff;
}

body:not(.dark) .qr-trade-result-close-btn {
    background: rgba(0,0,0,0.07);
    border-color: rgba(0,0,0,0.14);
    color: rgba(0,0,0,0.55);
}

body:not(.dark) .qr-trade-result-close-btn:hover {
    background: rgba(0,0,0,0.14);
    color: #000;
}

.qr-trade-result-meta {
    font-size: 0.88rem;
    margin-bottom: 14px;
    padding: 8px 12px;
    background: rgba(255,255,255,0.06);
    border-radius: 10px;
}

body:not(.dark) .qr-trade-result-meta {
    background: rgba(0,0,0,0.05);
    color: rgba(0,0,0,0.75);
}

.qr-trade-same-user-warning {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(234, 179, 8, 0.15);
    border: 1px solid rgba(234, 179, 8, 0.35);
    color: rgba(255,255,255,0.9);
    font-size: 0.88rem;
    line-height: 1.45;
}

body:not(.dark) .qr-trade-same-user-warning {
    background: rgba(234, 179, 8, 0.12);
    border-color: rgba(180, 130, 0, 0.35);
    color: #6b4f00;
}

.qr-trade-code-box {
    margin: 16px auto 12px;
    width: 240px;
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 18px;
    padding: 10px;
}

.qr-trade-token-box {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: center;
}

.qr-reader-box {
    width: 100%;
    min-height: 260px;
    margin-top: 14px;
    overflow: hidden;
    border-radius: 18px;
    background: rgba(0,0,0,0.35);
}

.qr-reader-box video {
    border-radius: 18px;
}

.qr-reader-manual {
    margin-top: 14px;
}

.qr-reader-manual label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
}

.qr-reader-manual input[type="text"] {
    width: 100%;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.07);
    color: var(--text-primary, #fff);
    font-size: 0.95rem;
    box-sizing: border-box;
    margin-bottom: 10px;
    outline: none;
    transition: border-color 0.2s;
}

.qr-reader-manual input[type="text"]:focus {
    border-color: rgba(255,255,255,0.45);
}

body:not(.dark) .qr-reader-manual label {
    color: rgba(0,0,0,0.65);
}

body:not(.dark) .qr-reader-manual input[type="text"] {
    border-color: rgba(0,0,0,0.18);
    background: rgba(0,0,0,0.04);
    color: #111;
}

body:not(.dark) .qr-reader-manual input[type="text"]:focus {
    border-color: rgba(0,0,0,0.4);
}

body:not(.dark) .qr-trade-hint {
    color: rgba(0,0,0,0.5);
}

.qr-trade-result-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 14px;
}

.qr-trade-result-block {
    padding: 12px;
    border-radius: 16px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.14);
}

.qr-trade-result-block h4 {
    margin-bottom: 10px;
}

.qr-trade-result-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.qr-trade-chip {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255,255,255,0.10);
}

@media (max-width: 640px) {
    .qr-trade-choice-grid,
    .qr-trade-result-columns {
        grid-template-columns: 1fr;
    }

    .qr-trade-code-box {
        width: 220px;
        min-height: 220px;
    }
}


/* =========================
   QR TRADE - RESULTADOS
   ========================= */

.qr-trade-modal-body {
    max-height: calc(100vh - 180px);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding-right: 2px;
}

.qr-trade-results {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.qr-trade-results-scroll {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-height: 65vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 4px;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

.qr-trade-results-scroll::-webkit-scrollbar,
.qr-trade-modal-body::-webkit-scrollbar {
    width: 8px;
}

.qr-trade-results-scroll::-webkit-scrollbar-track,
.qr-trade-modal-body::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
}

.qr-trade-results-scroll::-webkit-scrollbar-thumb,
.qr-trade-modal-body::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.20);
    border-radius: 10px;
}

.qr-trade-section {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 26px;
    padding: 18px 14px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.qr-trade-section-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 14px;
}

.qr-trade-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.qr-trade-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    padding: 14px 14px;
    transition: all 0.2s ease;
}

.qr-trade-item:hover {
    background: rgba(255,255,255,0.16);
}

.qr-trade-item.is-checked {
    border-color: rgba(34, 197, 94, 0.60);
    background: rgba(34, 197, 94, 0.10);
    box-shadow: 0 0 0 1px rgba(34,197,94,0.18) inset;
}

.qr-trade-item-main {
    min-width: 0;
    flex: 1;
}

.qr-trade-item-code {
    display: block;
    color: #fff;
    font-size: 1.02rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 4px;
    word-break: break-word;
}

.qr-trade-item-sub {
    display: block;
    color: rgba(255,255,255,0.88);
    font-size: 0.95rem;
    line-height: 1.35;
    word-break: break-word;
}

.qr-trade-check {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    margin-left: 4px;
}

.qr-trade-check input {
    display: none;
}

.qr-trade-check-ui {
    width: 28px;
    height: 28px;
    border-radius: 10px;
    border: 2px solid rgba(255,255,255,0.28);
    background: rgba(255,255,255,0.07);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.18s ease;
    position: relative;
}

.qr-trade-check-ui::after {
    content: "✓";
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    opacity: 0;
    transform: scale(0.7);
    transition: all 0.18s ease;
}

.qr-trade-check input:checked + .qr-trade-check-ui {
    background: linear-gradient(180deg, #22c55e, #16a34a);
    border-color: #22c55e;
    box-shadow: 0 0 0 4px rgba(34,197,94,0.14);
}

.qr-trade-check input:checked + .qr-trade-check-ui::after {
    opacity: 1;
    transform: scale(1);
}

.qr-trade-empty {
    background: rgba(255,255,255,0.06);
    border: 1px dashed rgba(255,255,255,0.12);
    border-radius: 16px;
    padding: 14px;
    color: rgba(255,255,255,0.82);
    font-size: 0.95rem;
}

.qr-trade-hint {
    margin-top: 10px;
    font-size: 0.84rem;
    color: rgba(255,255,255,0.62);
}

.qr-trade-summary {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    padding: 12px 14px;
    color: rgba(255,255,255,0.88);
    font-size: 0.92rem;
    line-height: 1.45;
}

@media (max-width: 768px) {
    .qr-trade-modal-body {
        max-height: calc(100vh - 150px);
    }

    .qr-trade-results-scroll {
        max-height: 58vh;
    }

    .qr-trade-section {
        padding: 16px 12px;
        border-radius: 22px;
    }

    .qr-trade-item {
        padding: 12px;
        gap: 10px;
        border-radius: 16px;
    }

    .qr-trade-item-code {
        font-size: 1rem;
    }

    .qr-trade-item-sub {
        font-size: 0.92rem;
    }

    .qr-trade-check-ui {
        width: 26px;
        height: 26px;
        border-radius: 9px;
    }
}

/* ════════════════════════════════════════════════════════════
   LEGEND MODAL
════════════════════════════════════════════════════════════ */

.legend-modal-shell {
    max-width: 420px;
}

.legend-modal-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.legend-modal-icon {
    font-size: 2rem;
    line-height: 1;
    flex-shrink: 0;
}

.legend-modal-subtitle {
    font-size: 0.78rem;
    color: var(--text-muted, rgba(0,0,0,0.5));
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 2px;
}

.legend-modal-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary, #111);
}

body.dark .legend-modal-subtitle { color: rgba(255,255,255,0.45); }
body.dark .legend-modal-title    { color: #fff; }

/* ── Seções ─────────────────────────────────────────────── */

.legend-slots-section,
.legend-add-section {
    margin-bottom: 18px;
}

.legend-slots-label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted, rgba(0,0,0,0.45));
    margin-bottom: 8px;
}

body.dark .legend-slots-label { color: rgba(255,255,255,0.4); }

/* ── Lista de slots ──────────────────────────────────────── */

.legend-slots-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 180px;
    overflow-y: auto;
}

.legend-slots-empty {
    font-size: 0.88rem;
    color: var(--text-muted, rgba(0,0,0,0.4));
    font-style: italic;
    padding: 6px 0;
}

body.dark .legend-slots-empty { color: rgba(255,255,255,0.35); }

.legend-slot-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.08);
    gap: 8px;
}

body.dark .legend-slot-item {
    background: rgba(255,255,255,0.07);
    border-color: rgba(255,255,255,0.10);
}

.legend-slot-player {
    font-size: 0.92rem;
    font-weight: 500;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.legend-slot-remove {
    background: none;
    border: none;
    color: rgba(0,0,0,0.35);
    cursor: pointer;
    font-size: 0.85rem;
    padding: 2px 4px;
    border-radius: 6px;
    flex-shrink: 0;
    transition: color 0.15s, background 0.15s;
}

.legend-slot-remove:hover {
    color: #dc2626;
    background: rgba(220,38,38,0.08);
}

body.dark .legend-slot-remove         { color: rgba(255,255,255,0.3); }
body.dark .legend-slot-remove:hover   { color: #f87171; background: rgba(248,113,113,0.12); }

/* ── Input + botão ───────────────────────────────────────── */

.legend-input-wrap {
    display: flex;
    gap: 8px;
    align-items: center;
}

.legend-player-input {
    flex: 1 1 0;
    min-width: 0;
    padding: 10px 13px;
    border-radius: 10px;
    border: 1.5px solid rgba(0,0,0,0.16);
    background: #fff;
    font-size: 0.93rem;
    color: #111;
    outline: none;
    transition: border-color 0.18s, box-shadow 0.18s;
    box-sizing: border-box;
}

.legend-player-input:focus {
    border-color: #6d28d9;
    box-shadow: 0 0 0 3px rgba(109,40,217,0.12);
}

body.dark .legend-player-input {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.18);
    color: #fff;
}

body.dark .legend-player-input:focus {
    border-color: #a78bfa;
    box-shadow: 0 0 0 3px rgba(167,139,250,0.15);
}

.legend-add-btn {
    /* Neutraliza o .btn base */
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: auto !important;
    flex-shrink: 0;
    white-space: nowrap;
    margin-top: 0 !important;
    padding: 10px 18px !important;
    font-size: 0.92rem !important;
    border-radius: 10px !important;
}

/* ── Autocomplete ────────────────────────────────────────── */

.legend-autocomplete {
    margin-top: 4px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.12);
    box-shadow: 0 6px 18px rgba(0,0,0,0.10);
    overflow: hidden;
}

body.dark .legend-autocomplete {
    background: #2a2a2a;
    border-color: rgba(255,255,255,0.12);
}

.legend-ac-item {
    padding: 9px 14px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.12s;
}

.legend-ac-item:hover,
.legend-ac-item:focus {
    background: rgba(0,0,0,0.05);
    outline: none;
}

body.dark .legend-ac-item:hover,
body.dark .legend-ac-item:focus {
    background: rgba(255,255,255,0.08);
}

/* ── Badge de contagem no tile ───────────────────────────── */

.sticker-tile-wrap.is-legend .sticker-tile {
    position: relative;
}

.legend-slot-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #7c3aed;
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 6px;
    line-height: 1.4;
    pointer-events: none;
}

/* Mobile */
@media (max-width: 640px) {
    .legend-modal-shell {
        max-width: none;
    }

    .legend-slots-list {
        max-height: 140px;
    }
}

.legend-slots-hint {
    font-size: 0.72rem;
    font-weight: 400;
    color: var(--text-muted, rgba(0,0,0,0.38));
    text-transform: none;
    letter-spacing: 0;
}

body.dark .legend-slots-hint { color: rgba(255,255,255,0.3); }

.legend-remove-all-btn {
    margin-top: 8px;
    width: 100%;
    padding: 7px;
    border-radius: 8px;
    border: 1px solid rgba(220,38,38,0.25);
    background: rgba(220,38,38,0.06);
    color: #dc2626;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.legend-remove-all-btn:hover {
    background: rgba(220,38,38,0.12);
}

body.dark .legend-remove-all-btn {
    border-color: rgba(248,113,113,0.25);
    background: rgba(248,113,113,0.08);
    color: #f87171;
}

body.dark .legend-remove-all-btn:hover {
    background: rgba(248,113,113,0.15);
}

.legend-legacy-warning {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(234,179,8,0.10);
    border: 1px solid rgba(234,179,8,0.30);
    color: #92400e;
    font-size: 0.86rem;
    line-height: 1.45;
    margin-bottom: 10px;
}

body.dark .legend-legacy-warning {
    background: rgba(234,179,8,0.08);
    border-color: rgba(234,179,8,0.25);
    color: #fcd34d;
}

.legend-legacy-clear-btn {
    align-self: flex-start;
    padding: 6px 16px;
    border-radius: 8px;
    border: 1px solid rgba(220,38,38,0.30);
    background: rgba(220,38,38,0.08);
    color: #dc2626;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.legend-legacy-clear-btn:hover {
    background: rgba(220,38,38,0.15);
}

body.dark .legend-legacy-clear-btn {
    border-color: rgba(248,113,113,0.30);
    background: rgba(248,113,113,0.08);
    color: #f87171;
}


/* ════════════════════════════════════════════════════════════
   FORGOT / RESET PASSWORD
════════════════════════════════════════════════════════════ */

.forgot-password-link {
    text-align: right;
    margin: -4px 0 16px;
}

.forgot-password-link a {
    font-size: 0.85rem;
    color: var(--text-muted, rgba(0,0,0,0.5));
    text-decoration: none;
    transition: color 0.15s;
}

.forgot-password-link a:hover {
    color: var(--accent, #16a34a);
    text-decoration: underline;
}

body.dark .forgot-password-link a {
    color: rgba(255,255,255,0.45);
}

body.dark .forgot-password-link a:hover {
    color: #4ade80;
}

.reset-icon,
.reset-success-icon {
    font-size: 2.8rem;
    text-align: center;
    margin: 0 auto 12px;
    line-height: 1;
}
