body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #1c1c1e;
    color: #f2f2f7;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    margin: 0;
    position: relative;
    min-height: 100vh;
    box-sizing: border-box;
}
h1 { color: #de5833; margin-bottom: 5px; }

.alerts-container {
    width: 100%;
    max-width: 500px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.popup-alert {
    background-color: #ffe066;
    color: #1c1c1e;
    padding: 12px 35px 12px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: bold;
    text-align: left;
    box-sizing: border-box;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    position: relative;
}

.storage-alert { background-color: #ff9f0a; color: #ffffff; }
.delete-confirm-alert { background-color: #ff453a; color: #ffffff; padding: 15px; border-left: 5px solid #b32e25; }
.progress-alert { background-color: #007aff; color: #ffffff; }

.progress-bar-bg {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 4px;
    height: 8px;
    overflow: hidden;
    margin: 6px 0;
}
.progress-bar-fill {
    background: #ffffff;
    width: 0%;
    height: 100%;
    transition: width 0.1s linear;
}

.close-alert-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: inherit;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.minimized-badge {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: #de5833;
    color: white;
    padding: 10px 14px;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    font-size: 14px;
    font-weight: bold;
    display: none;
    align-items: center;
    gap: 8px;
    z-index: 999;
    transition: transform 0.2s, background-color 0.2s;
}
.minimized-badge:hover { transform: scale(1.05); background-color: #ff5e3a; }

/* NOVO BOTÃO DE ATALHO DA PÁGINA INICIAL (DESKTOP) */
.homepage-shortcut-btn {
    position: fixed;
    right: 20px;
    bottom: 80px;
    background-color: #2c2c2e;
    border: 2px solid #007aff;
    color: #ffffff;
    padding: 12px 18px;
    border-radius: 30px;
    font-size: 13px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.4);
    z-index: 998;
}
.homepage-shortcut-btn:hover {
    background-color: #007aff;
    transform: translateY(-2px);
}

.container {
    width: 100%;
    max-width: 500px;
    background: #2c2c2e;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    box-sizing: border-box;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    gap: 15px;
    width: 100%;
    box-sizing: border-box;
}
.header-text { flex: 1; min-width: 0; }
.header-text h1, .header-text p { margin: 0; }

.icon-wrapper { position: relative; flex-shrink: 0; }
.header-icon {
    width: 65px;
    height: 65px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    border: 2px solid #de5833;
    cursor: pointer;
    transition: transform 0.2s ease;
}
.header-icon:hover { transform: scale(1.08); }

.bio-popover {
    position: absolute;
    top: 75px;
    right: 0;
    width: 260px;
    background: #1e1e20;
    border: 1px solid #48484a;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    z-index: 100;
    display: none;
}
.bio-popover.active { display: block; }
.bio-popover h3 { margin: 0 0 6px 0; color: #de5833; font-size: 14px; }
.bio-popover p { margin: 0; font-size: 11px; color: #f2f2f7; line-height: 1.4; }
.popover-arrow {
    position: absolute;
    top: -6px;
    right: 25px;
    width: 0; height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #1e1e20;
}

.explanation-box { margin-bottom: 20px; }

.config-group {
    background: #3a3a3c;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
}

/* NOVO BLOCO DO SELETOR SUSPENSO GLOBAL */
.config-group-select {
    background: #3a3a3c;
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
}
.config-group-select select {
    background: #1c1c1e;
    color: white;
    border: 1px solid #48484a;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
}

.config-help { font-size: 11px; font-style: italic; color: #a2a2a7; margin-bottom: 20px; padding-left: 12px; }

.input-section-simple {
    display: flex;
    gap: 10px;
    background-color: #1a1a1a;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #333;
    margin-bottom: 20px;
    box-sizing: border-box;
}
.input-section-simple input[type="text"] {
    flex: 1;
    padding: 12px;
    border: 1px solid #48484a;
    border-radius: 8px;
    background: #2a2a2a;
    color: #fff;
    font-size: 15px;
}
.input-section-simple input[type="text"]:focus { outline: 2px solid #de5833; }

.btn-add { background-color: #de5833; color: #fff; padding: 12px 20px; flex-shrink: 0; }
.btn-add:hover { background-color: #bf4322; }

.btn-remove { background-color: #ff453a; color: #fff; padding: 6px 12px; font-size: 14px; border-radius: 6px; }
.btn-remove:hover { background-color: #d9382f; }

.btn-open-all { width: 100%; background-color: #de5833; color: #fff; padding: 14px; font-size: 16px; margin-top: 20px; }
.btn-open-all:hover { background-color: #bf4322; }

/* MODAL OVERLAY */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}
.modal-overlay.active { display: flex; }

.modal-box {
    background: #2c2c2e;
    border: 2px solid #de5833;
    border-radius: 14px;
    padding: 25px;
    width: 90%;
    max-width: 440px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.6);
    box-sizing: border-box;
}
.modal-box h3 { margin: 0 0 10px 0; color: #de5833; }
.modal-box p { font-size: 14px; color: #f2f2f7; margin-bottom: 20px; line-height: 1.4; }

.modal-fields-hidden { display: none; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.modal-fields-hidden.expanded { display: flex; }

.category-row-setup { display: flex; gap: 10px; width: 100%; }
.category-row-setup select, .category-row-setup input {
    flex: 1; padding: 11px; border: 1px solid #48484a; border-radius: 8px; background: #1c1c1e; color: #fff; font-size: 14px;
}
.category-row-setup input { text-transform: uppercase; }
.btn-edit-action { background: #48484a; color: #fff; padding: 0 12px; font-size: 13px; }

.modal-box input[type="text"] {
    width: 100%; padding: 11px; border: 1px solid #48484a; border-radius: 8px; background: #1c1c1e; color: #fff; font-size: 14px; box-sizing: border-box;
}

.modal-footer-buttons { display: flex; justify-content: flex-end; gap: 10px; }
.btn-modal-cancel { background: #48484a; color: white; padding: 10px 18px; }
.btn-modal-confirm { background: #de5833; color: white; padding: 10px 18px; }
.btn-modal-save { background: #30d158; color: white; padding: 10px 22px; }

/* LISTA CONFIGURADA */
ul { list-style: none; padding: 0; margin: 0; }
li {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px; background: #3a3a3c; margin-bottom: 8px; border-radius: 8px; border-left: 4px solid #de5833;
}
.li-left { display: flex; align-items: center; gap: 12px; width: 100%; overflow: hidden; }
.li-info { display: flex; flex-direction: column; overflow: hidden; width: 100%; }
.item-header { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.item-name { color: #64d2ff; font-weight: bold; text-decoration: none; font-size: 15px; }
.item-name:hover { text-decoration: underline; }
.item-cat { font-size: 9px; background-color: #de5833; color: white; padding: 2px 6px; border-radius: 4px; font-weight: bold; letter-spacing: 0.5px; }
.item-desc { font-size: 12px; color: #aeaea2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.badge-type { font-size: 16px; margin-left: auto; margin-right: 10px; }

.backup-warning-text { font-size: 11px; line-height: 1.4; color: #aeaea2; text-align: center; background: #232325; padding: 10px; border-radius: 6px; margin-top: 25px; border-left: 3px solid #007aff; }
.backup-zone { margin-top: 10px; display: flex; gap: 10px; }
.btn-backup { flex: 1; background-color: #3a3a3c; color: #f2f2f7; font-size: 13px; padding: 10px; display: flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid #48484a; }
.btn-backup:hover { background-color: #48484a; }

.footer { margin-top: 35px; font-size: 12px; color: #8e8e93; display: flex; flex-direction: column; align-items: center; gap: 15px; }
.creator-link { color: #de5833; text-decoration: none; font-weight: bold; }
.creator-link:hover { color: #ff764d; text-decoration: underline; }

.lang-area { display: flex; flex-direction: column; align-items: center; gap: 5px; background: #2c2c2e; padding: 10px 15px; border-radius: 20px; }
.lang-selectors { display: flex; gap: 15px; }
.lang-selectors label { display: flex; align-items: center; gap: 5px; cursor: pointer; font-size: 12px; }
.lang-selectors input[type="radio"] { margin: 0; width: 14px; height: 14px; accent-color: #de5833; }
.lang-notice { font-size: 10px; font-style: italic; color: #727276; }

.final-credits { margin-top: 40px; padding: 20px; text-align: center; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.9rem; color: #8e8e93; width: 100%; max-width: 500px; box-sizing: border-box; }
.social-btn { text-decoration: none; font-weight: bold; padding: 6px 12px; border-radius: 4px; font-size: 13px; }
.discord-color { color: #5865F2; border: 1px solid #5865F2; }
.tip-color { color: #FFD700; border: 1px solid #FFD700; }

.lang-start-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(15, 15, 15, 0.98); z-index: 10000; justify-content: center; align-items: center; }
.lang-modal-content { background-color: #1e1e1e; border: 2px solid #de5833; border-radius: 16px; padding: 35px; text-align: center; max-width: 480px; width: 90%; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7); }
.lang-modal-content h2 { color: #fff; font-size: 16px; margin-bottom: 25px; line-height: 1.6; }
.lang-options-container { display: flex; flex-direction: column; gap: 15px; }
.lang-modal-btn { background-color: #2a2a2a; color: #fff; border: 1px solid #444; padding: 14px 20px; font-size: 16px; border-radius: 8px; display: flex; align-items: center; justify-content: center; gap: 12px; }
.lang-modal-btn:hover { background-color: #de5833; border-color: #de5833; }
.flag-icon { font-size: 24px; }

.glow-effect { border: 2px solid #de5833 !important; box-shadow: 0 0 15px #de5833 !important; transition: all 0.5s ease; }
.pulsing { animation: pulse 1s infinite; }
@keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.02); } 100% { transform: scale(1); } }
.hidden-element { display: none !important; }

/* ==========================================================================
   📌 AJUSTE MOBILE EXTENDIDO (ELIMINA ATALHO INICIAL E COMPACTA LISTAS)
   ========================================================================== */
@media (max-width: 600px) {
    body { padding: 20px 10px; }
    .header-container { flex-direction: column-reverse; text-align: center; gap: 15px; }
    .input-section-simple { flex-direction: column; }
    .btn-add { width: 100%; }
    li { flex-direction: column; align-items: flex-start; gap: 10px; }
    .badge-type { display: none !important; } /* Oculta ícone interno no celular */
    .btn-remove { width: 100%; text-align: center; }
    
    /* ESCONDE O BOTÃO DE ATALHO DE PÁGINA INICIAL NO CELULAR */
    .homepage-shortcut-btn { display: none !important; }
}
