* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Tema Romântico Moderno */
    --primary: #ec4899;       /* Pink 500 */
    --primary-dark: #be185d;  /* Pink 700 */
    --secondary: #8b5cf6;     /* Violet 500 */
    --accent: #f472b6;        /* Pink 400 */
    
    --danger: #ef4444;
    --success: #10b981;
    --warning: #f59e0b;
    
    --bg: #fdf2f8;           /* Pink 50 */
    --card: #ffffff;
    --text: #374151;         /* Gray 700 */
    --text-light: #4b5563;   /* Gray 600 - Melhor Contraste (AA) */
    --border: #fbcfe8;       /* Pink 200 */
    
    /* Espaçamento Grid 8px */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;

    /* Sombras */
    --shadow: 0 4px 6px -1px rgba(236, 72, 153, 0.1), 0 2px 4px -1px rgba(236, 72, 153, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(236, 72, 153, 0.1), 0 4px 6px -2px rgba(236, 72, 153, 0.05);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-tap-highlight-color: transparent;
}

/* Modal de Autenticação */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

/* Tela de Boas-Vindas */
.welcome-content {
    background: var(--card);
    padding: 60px 40px 40px;
    border-radius: 24px;
    max-width: 400px;
    width: 90%;
    box-shadow: var(--shadow-lg);
    text-align: center;
    animation: fadeIn 0.5s ease-out;
}

.welcome-logo {
    width: 120px;
    height: 120px;
    margin-bottom: 24px;
    border-radius: 24px;
    box-shadow: 0 8px 24px rgba(236, 72, 153, 0.3);
    animation: pulse 2s infinite;
}

.welcome-title {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}

.welcome-subtitle {
    color: var(--text-light);
    font-size: 15px;
    margin-bottom: 40px;
    line-height: 1.6;
}

.welcome-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.btn-welcome-primary {
    width: 100%;
    padding: 16px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
}

.btn-welcome-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(236, 72, 153, 0.4);
}

.btn-welcome-secondary {
    width: 100%;
    padding: 16px;
    background: var(--bg);
    color: var(--primary);
    border: 2px solid var(--border);
    border-radius: 16px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-welcome-secondary:hover {
    background: white;
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* Modal Content (Login/Cadastro) */
.modal-content {
    background: var(--card);
    padding: 40px;
    border-radius: 24px;
    max-width: 400px;
    width: 90%;
    box-shadow: var(--shadow-lg);
    text-align: center;
    position: relative;
    animation: slideUp 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* Botão Voltar no Modal */
.back-btn-modal {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--bg);
    border: 2px solid var(--border);
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    transition: all 0.2s;
}

.back-btn-modal:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Auth Logo */
.auth-logo {
    width: 96px;
    height: 96px;
    margin-bottom: 20px;
    border-radius: 24px;
    box-shadow: 0 8px 24px rgba(236, 72, 153, 0.3);
    animation: pulse 2s infinite;
}

/* Auth Footer */
.auth-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.auth-footer p {
    font-size: 12px;
    color: var(--text-light);
    margin: 0;
    text-align: center;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.modal-content h2 {
    margin-bottom: 10px;
    color: var(--primary-dark);
    font-size: 28px;
    font-weight: 800;
}

.modal-content p {
    color: var(--text-light);
    margin-bottom: 30px;
}

.modal-content form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: left;
}

/* Botão de Autenticação */
.btn-auth {
    width: 100%;
    padding: 16px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
    margin-top: 8px;
}

.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(236, 72, 153, 0.4);
}

/* Checkbox Lembrar de Mim */
.form-group-checkbox {
    display: flex;
    align-items: center;
    margin: -8px 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text);
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary);
}

.checkbox-label span {
    font-weight: 500;
}

/* Links de Autenticação */
.auth-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.auth-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.auth-links a:hover {
    color: var(--primary);
}

.auth-links a strong {
    color: var(--primary);
    font-weight: 700;
}

.error {
    color: var(--danger);
    font-size: 14px;
    margin-top: 10px;
    font-weight: 500;
    text-align: center;
}

.success {
    color: var(--success);
    font-size: 14px;
    margin-top: 10px;
    font-weight: 500;
    text-align: center;
    background: #d1fae5;
    padding: 12px;
    border-radius: 8px;
}

/* Header */
header {
    background: var(--card);
    padding: var(--spacing-md) 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
}

.header-left {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.header-right {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

/* Logo no Header */
.header-logo {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(236, 72, 153, 0.2);
    flex-shrink: 0;
}

/* Botão de Instalação no Header */
.install-btn-header {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    color: white;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(236, 72, 153, 0.2);
}

.install-btn-header:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
}

.install-btn-header:active {
    transform: scale(0.95);
}

/* Back Button */
.back-btn {
    background: var(--bg);
    border: 2px solid var(--border);
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    transition: all 0.2s;
    flex-shrink: 0;
}

.back-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateX(-2px);
}

.back-btn:active {
    transform: scale(0.95);
}

header h1 {
    font-size: 20px;
    font-weight: 800;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sync-badge {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s;
    position: relative;
    cursor: help;
}

.sync-badge.online {
    background: transparent;
    color: var(--success);
}

.sync-badge.online::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    top: 2px;
    right: 2px;
    box-shadow: 0 0 8px var(--success);
    animation: pulse-dot 2s infinite;
}

.sync-badge.offline {
    background: transparent;
    color: var(--danger);
}

.sync-badge.offline::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--danger);
    border-radius: 50%;
    top: 2px;
    right: 2px;
}

@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

.logout-btn {
    padding: var(--spacing-sm) var(--spacing-md);
    background: #fee2e2;
    color: var(--danger);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

.logout-btn:hover {
    background: var(--danger);
    color: white;
}

/* Container */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--spacing-lg) 20px 100px 20px;
    min-height: calc(100vh - 180px);
    display: flex;
    flex-direction: column;
}

/* Home Banner */
/* View de Lista específica */
#listaView.container {
    padding: var(--spacing-md) 20px 100px 20px;
}

#listaView #listsContainer {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Botão Finalizar Compra */
.finish-btn {
    position: fixed;
    bottom: 100px;
    left: 20px; /* Moved to left */
    right: auto;
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--success);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    transition: all 0.3s;
    z-index: 90;
    animation: slideUp 0.3s;
}

.finish-btn:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.5);
}

/* Menu Inferior Mobile */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--card);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-around;
    padding: 10px 0 calc(10px + env(safe-area-inset-bottom));
    z-index: 100;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.05);
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
    min-width: 0;
}

.nav-item svg {
    width: 24px;
    height: 24px;
    stroke-width: 2px;
}

.nav-item span {
    font-size: 12px;
    font-weight: 600;
}

.nav-item.active {
    color: var(--primary);
}

.nav-item.nav-item-fab {
    margin-top: -30px;
    width: 65px;
    height: 65px;
    flex: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-item.nav-item-fab button {
    width: 65px;
    height: 65px;
    min-width: 65px;
    min-height: 65px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(236, 72, 153, 0.5);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    padding: 0;
}

.nav-item.nav-item-fab button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.3), transparent);
    pointer-events: none;
    border-radius: 50%;
}

.nav-item.nav-item-fab button svg {
    width: 32px;
    height: 32px;
    stroke-width: 2.5;
    position: relative;
    z-index: 1;
}

.nav-item.nav-item-fab button:hover {
    transform: scale(1.12);
    box-shadow: 0 12px 32px rgba(236, 72, 153, 0.6);
}

.nav-item.nav-item-fab button:active {
    transform: scale(0.92);
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.4);
}

/* Animação de pulso para o botão FAB */
@keyframes fab-pulse {
    0% {
        box-shadow: 0 8px 24px rgba(236, 72, 153, 0.5);
    }
    50% {
        box-shadow: 0 8px 32px rgba(236, 72, 153, 0.7);
    }
    100% {
        box-shadow: 0 8px 24px rgba(236, 72, 153, 0.5);
    }
}

.nav-item.nav-item-fab button.pulse {
    animation: fab-pulse 2s infinite;
}

/* Modal Overlay e Bottom Sheet */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: flex-end;
    z-index: 200;
    animation: fadeIn 0.2s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-bottom {
    background: var(--card);
    border-radius: 24px 24px 0 0;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 -10px 40px rgba(0,0,0,0.1);
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.modal-bottom-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: var(--card);
    z-index: 10;
}

.modal-bottom-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
}

.modal-bottom-header button {
    background: #f3f4f6;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-bottom-content {
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.modal-bottom-content form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

/* Adicionar Item */
.add-section {
    background: var(--card);
    padding: var(--spacing-lg);
    border-radius: 20px;
    box-shadow: var(--shadow);
    margin-bottom: var(--spacing-lg);
    border: 1px solid var(--border);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.add-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.category-select {
    padding: var(--spacing-sm) var(--spacing-md);
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 14px;
    cursor: pointer;
    background: white;
    color: var(--primary-dark);
    font-weight: 600;
}

.add-section form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

/* --- DESIGN SYSTEM: INPUT GROUPS & LABELS --- */
.input-group {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
    width: 100%;
    max-width: 100%;
}

/* Regra de Proporção 75/25 (Nome Primeiro, Quantidade Depois) */
.input-group--70-30 {
    display: flex;
    gap: var(--spacing-sm);
    width: 100%;
}

.input-group--70-30 .form-group {
    margin: 0;
}

.input-group--70-30 .form-group:first-child {
    flex: 7; /* 70% */
    min-width: 0;
}

.input-group--70-30 .form-group:last-child {
    flex: 3; /* 30% */
    min-width: 0;
    max-width: 120px;
}

.input-group--70-30 .input-name {
    width: 100%;
}

.input-group--70-30 .input-quantity {
    width: 100%;
}

/* Estilo Global de Inputs e Form Controls */
input[type="text"],
input[type="number"],
input[type="password"],
input[type="email"],
input[type="url"],
input[type="date"],
input[type="color"],
textarea,
select {
    width: 100%;
    padding: var(--spacing-md);
    border: 2px solid var(--border);
    border-radius: 16px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--bg);
    color: var(--text);
    min-height: 52px; /* Altura touch-friendly */
    -webkit-appearance: none; /* Remove estilo nativo iOS */
    appearance: none;
}

/* Textarea específico */
textarea {
    resize: none;
    min-height: 80px;
    line-height: 1.5;
}

/* Foco */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.15);
}

/* Validação Inválida */
input:invalid:not(:placeholder-shown),
textarea:invalid:not(:placeholder-shown) {
    border-color: var(--danger);
    background-color: #fef2f2;
}

/* Labels */
label.form-label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-left: 4px;
}

/* Container de Input com Label */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}

.btn-primary {
    padding: var(--spacing-md);
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.2);
    min-height: 52px;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(236, 72, 153, 0.3);
}

/* Listas */
.category-section {
    margin-bottom: var(--spacing-xl);
}

/* Container de Itens - Centralização quando vazio */
#listsContainer {
    display: flex;
    flex-direction: column;
    flex: 1;
}

#listsContainer .empty-state-small {
    margin-top: auto;
    margin-bottom: auto;
}

.category-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    padding-left: var(--spacing-sm);
}

.category-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
}

.badge {
    background: var(--primary);
    color: white;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.badge-new {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.05);
    }
}

.items-grid {
    display: grid;
    gap: var(--spacing-sm);
}

.item-card {
    background: var(--card);
    padding: var(--spacing-md);
    border-radius: 16px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    transition: all 0.3s;
    border: 1px solid transparent;
    position: relative;
}

/* Item Novo (< 24 horas) */
.item-card.new {
    background: linear-gradient(to right, #fdf2f8, white);
    border-left: 3px solid #ec4899;
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.15);
}

.item-card.new::before {
    content: 'NOVO';
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(236, 72, 153, 0.4);
    z-index: 1;
}

.item-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--border);
}

.item-card.completed {
    background: #f9fafb;
    opacity: 0.7;
}

.item-card.completed.new::before {
    display: none; /* Não mostra NOVO em itens comprados */
}

.item-card.completed .item-name {
    text-decoration: line-through;
    color: var(--text-light);
}

.checkbox-container {
    position: relative;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    display: block;
    width: 24px;
    height: 24px;
    border: 2px solid var(--border);
    border-radius: 8px;
    transition: all 0.2s;
    background: white;
}

.checkbox-container:hover .checkmark {
    border-color: var(--primary);
}

.checkbox-container input:checked ~ .checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

.checkbox-container input:checked ~ .checkmark:after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0; /* Permite truncamento de texto */
}

.item-row {
    display: flex;
    align-items: center; /* Mudado de baseline para center */
    gap: var(--spacing-sm);
    flex-wrap: nowrap; /* Evita quebra de linha */
}

/* Controles de Quantidade na Lista */
.qty-controls {
    display: flex;
    align-items: center;
    gap: 2px;
    background: var(--bg);
    border-radius: 8px;
    padding: 2px;
    flex-shrink: 0; /* Não encolhe */
}

.qty-btn {
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--primary);
    font-weight: bold;
    cursor: pointer;
    font-size: 16px;
    padding: 0;
    margin: 0;
    transition: all 0.2s;
}

.qty-btn:active {
    transform: scale(0.95);
    background: var(--bg);
    border-color: var(--primary);
}

.qty-btn:hover {
    background: var(--bg);
    border-color: var(--primary);
}

.item-quantity {
    font-weight: 700;
    color: var(--primary);
    font-size: 14px;
    padding: 0 6px;
    min-width: 32px;
    text-align: center;
    line-height: 1;
}

.item-name {
    font-size: 16px;
    font-weight: 500;
    color: var(--text);
    word-break: break-word;
    flex: 1;
    line-height: 1.4;
    display: flex;
    align-items: center;
}

/* Links Externos - Padrão Visual */
.item-link {
    color: var(--primary-dark);
    text-decoration: none;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    font-weight: 600;
    background: rgba(236, 72, 153, 0.1);
    padding: 4px 10px;
    border-radius: 8px;
    border: 1px solid rgba(236, 72, 153, 0.2);
    width: fit-content;
    transition: all 0.2s;
}

.item-link:hover {
    background: rgba(236, 72, 153, 0.2);
    transform: translateY(-1px);
}

.item-link::after {
    content: '↗';
    font-size: 12px;
}

/* Item Observations */
.item-observations {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 4px;
    padding: 4px 8px;
    background: rgba(139, 92, 246, 0.08);
    border-radius: 6px;
    border-left: 2px solid var(--secondary);
    line-height: 1.4;
}

.delete-btn {
    padding: var(--spacing-sm);
    background: transparent;
    color: var(--text-light);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
}

.delete-btn:hover {
    background: #fee2e2;
    color: var(--danger);
}

/* Cards de Lista */
.listas-grid {
    display: grid;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

/* Container de Listas - Centralização */
#listasContainer {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 300px);
    gap: var(--spacing-md);
}

#listasContainer:has(.empty-state) {
    justify-content: center;
    align-items: center;
}

/* Section Title */
.section-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-light);
    margin: var(--spacing-xl) 0 var(--spacing-md) 0;
    padding-left: var(--spacing-xs);
    letter-spacing: 0.5px;
}

/* Color Picker */
.color-picker {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.color-picker input[type="color"] {
    width: 60px;
    height: 48px;
    border: 2px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    padding: 4px;
}

.color-picker input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

.color-picker input[type="color"]::-webkit-color-swatch {
    border: none;
    border-radius: 8px;
}

.lista-card {
    background: var(--card);
    padding: var(--spacing-lg);
    border-radius: 20px;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 140px;
}

.lista-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.3s;
}

.lista-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--primary);
}

.lista-card:hover::before {
    opacity: 1;
}

.lista-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.lista-header h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin: 0;
    flex: 1;
}

.lista-count {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
    flex-shrink: 0;
}

.lista-desc {
    color: var(--text-light);
    font-size: 14px;
    margin: 0 0 16px 0;
    line-height: 1.4;
    flex: 1;
}

.lista-footer {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
}

.btn-secondary {
    flex: 1;
    padding: 10px 16px;
    background: var(--bg);
    color: var(--primary-dark);
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    min-height: 44px;
}

.btn-secondary:hover {
    background: #fce7f3;
}

.btn-icon {
    width: 44px; /* Minimo 44px para touch */
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 18px;
}

.btn-icon:hover {
    background: var(--success);
    color: white;
}

.btn-icon.danger:hover {
    background: var(--danger);
    color: white;
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
    min-height: calc(100vh - 300px); /* Altura da viewport menos header e footer */
    width: 100%;
}

.empty-state-small {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
    min-height: 300px;
    width: 100%;
}

.empty-state-small .empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

.empty-state-small h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.empty-state-small p {
    margin-bottom: 20px;
    font-size: 14px;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.empty-state h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

/* Toast */
.toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: var(--card);
    padding: 16px 24px;
    border-radius: 50px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 9999;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    opacity: 0;
    min-width: 300px;
    border: 1px solid var(--border);
}

.toast-show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast-success { border-left: 4px solid var(--success); }
.toast-error { border-left: 4px solid var(--danger); }
.toast-info { border-left: 4px solid var(--primary); }
.toast-warning { border-left: 4px solid var(--warning); }

/* Quick Actions Menu */
.quick-actions-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 100px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.quick-actions-menu.show {
    opacity: 1;
    pointer-events: auto;
}

.quick-actions-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
}

.quick-actions-content {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 1001;
    transform: translateY(20px);
    transition: transform 0.3s;
}

.quick-actions-menu.show .quick-actions-content {
    transform: translateY(0);
}

.quick-action-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    background: white;
    padding: 16px 24px;
    border-radius: 20px;
    border: none;
    box-shadow: 0 10px 25px rgba(236, 72, 153, 0.2);
    cursor: pointer;
    transition: all 0.2s;
    width: 240px;
}

.quick-action-btn:hover {
    transform: scale(1.05);
}

.quick-action-icon {
    font-size: 24px;
}

.quick-action-label {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}

/* More Section - Seções do Menu Mais */
.more-section {
    margin-bottom: var(--spacing-xl);
}

.more-section-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
    padding: 0 var(--spacing-xs);
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-icon {
    font-size: 16px;
}

/* Menu Header Melhorado */
.modal-bottom-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: var(--card);
    z-index: 10;
}

.menu-header-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    flex: 1;
}

.menu-logo {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(236, 72, 153, 0.2);
}

.menu-header-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.menu-subtitle {
    font-size: 12px;
    color: var(--text-light);
    margin: 4px 0 0 0;
}

.menu-close-btn {
    background: var(--bg);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.menu-close-btn:hover {
    background: #f3f4f6;
    color: var(--text);
}

/* Action Buttons - Botões de Ação Grandes */
.action-btn-large {
    width: 100%;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    border: 2px solid var(--border);
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: var(--spacing-md);
    text-align: left;
    position: relative;
    overflow: hidden;
}

.action-btn-large::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.action-btn-large:hover {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(236, 72, 153, 0.15);
}

.action-btn-large:hover::before {
    left: 100%;
}

.action-btn-large:active {
    transform: scale(0.98);
}

.action-btn-large.danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.08) 0%, rgba(239, 68, 68, 0.04) 100%);
    border-color: rgba(239, 68, 68, 0.3);
}

.action-btn-large.danger:hover {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(239, 68, 68, 0.1) 100%);
    border-color: var(--danger);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.15);
}

.action-btn-large.install-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border: none;
    color: white;
}

.action-btn-large.install-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(236, 72, 153, 0.4);
}

.action-btn-large.install-btn .action-btn-icon {
    color: white;
}

.action-btn-large.install-btn .action-btn-text,
.action-btn-large.install-btn .action-btn-desc {
    color: white;
}

.action-btn-icon {
    font-size: 28px;
    flex-shrink: 0;
    width: 40px;
    text-align: center;
}

.action-btn-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.action-btn-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
}

.action-btn-large.danger .action-btn-text {
    color: var(--danger);
}

.action-btn-desc {
    font-size: 12px;
    color: var(--text-light);
}

.action-btn-large.danger .action-btn-desc {
    color: rgba(239, 68, 68, 0.7);
}

.action-btn-arrow {
    font-size: 18px;
    color: var(--text-light);
    flex-shrink: 0;
    transition: all 0.3s;
}

.action-btn-large:hover .action-btn-arrow {
    color: var(--primary);
    transform: translateX(4px);
}

.action-btn-large.danger:hover .action-btn-arrow {
    color: var(--danger);
}
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.action-btn-label {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
}

.action-btn-desc {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.3;
}

/* Filter Buttons */
.filter-btn-large {
    width: 100%;
    padding: 16px 20px;
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: 16px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: var(--spacing-sm);
    text-align: left;
}

.filter-btn-large:hover {
    background: white;
    border-color: var(--primary);
}

.filter-btn-large.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Botão Nova Lista */
.btn-create-lista {
    width: 100%;
    padding: var(--spacing-md);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    min-height: 56px;
}

.btn-create-lista:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(236, 72, 153, 0.3);
}

.btn-create-lista .btn-icon-small {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Select Lista Modal */
.select-lista-container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.select-lista-btn {
    width: 100%;
    padding: 16px;
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.select-lista-btn:hover {
    background: white;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.15);
}

.select-lista-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.select-lista-info {
    flex: 1;
    min-width: 0;
}

.select-lista-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.select-lista-desc {
    font-size: 13px;
    color: var(--text-light);
}

.select-lista-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
}

.select-lista-empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.select-lista-empty-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.select-lista-empty-hint {
    font-size: 14px;
    color: var(--text-light);
}

/* App Info Logo */
.app-info-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(236, 72, 153, 0.3);
}

.app-info-content h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 8px;
}

.app-info-version {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.app-info-desc {
    font-size: 15px;
    color: var(--text);
    margin-bottom: 24px;
    line-height: 1.5;
}

.app-info-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}

.app-info-feature {
    font-size: 14px;
    color: var(--text);
    padding: 8px;
    background: var(--bg);
    border-radius: 8px;
}

/* App Info Copyright */
.app-info-copyright {
    font-size: 12px;
    color: var(--text-light);
    margin: 20px 0;
    padding: 12px;
    background: var(--bg);
    border-radius: 8px;
    border: 1px solid var(--border);
}

/* FAB Adicionar Item na Lista */
.fab-add-item {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 90;
    transition: all 0.3s;
    animation: slideUp 0.3s;
}

.fab-add-item svg {
    width: 28px;
    height: 28px;
    stroke-width: 2.5;
}

.fab-add-item:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 20px rgba(236, 72, 153, 0.5);
}

/* Desktop */
@media (min-width: 768px) {
    .bottom-nav { display: none; }
    .container { padding: var(--spacing-lg); max-width: 1000px; }
    .listas-grid { grid-template-columns: repeat(2, 1fr); }
    .back-btn { display: none !important; }
    .finish-btn { bottom: 30px; }
    .add-section { margin-top: 0; }
    
    /* Melhor proporção no desktop */
    .input-group--70-30 .form-group:first-child {
        flex: 7;
    }
    
    .input-group--70-30 .form-group:last-child {
        flex: 2;
        max-width: 100px;
    }
}

@media (min-width: 1024px) {
    .listas-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Mobile - Ajustes específicos */
@media (max-width: 767px) {
    .add-section {
        padding: var(--spacing-md);
    }
    
    .input-group--70-30 {
        gap: var(--spacing-xs);
    }
    
    .input-group--70-30 .form-group:last-child {
        max-width: 90px;
        flex: 2.5;
    }
    
    /* Garante que inputs não quebrem */
    input[type="text"],
    input[type="number"] {
        font-size: 16px; /* Previne zoom no iOS */
    }
}

/* Acessibilidade - Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Desktop Only */
.desktop-only {
    display: none;
}

@media (min-width: 768px) {
    .desktop-only {
        display: inline-block;
    }
}

/* Notification Prompt */
#notificationPrompt {
    position: fixed;
    bottom: 90px;
    left: 20px;
    right: 20px;
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    color: white;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(236, 72, 153, 0.4);
    z-index: 9999;
    animation: slideUp 0.3s ease-out;
    max-width: 500px;
    margin: 0 auto;
}

#notificationPrompt button {
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
}

#notificationPrompt button:first-of-type {
    flex: 1;
    background: white;
    color: #ec4899;
}

#notificationPrompt button:first-of-type:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

#notificationPrompt button:last-of-type {
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

#notificationPrompt button:last-of-type:hover {
    background: rgba(255, 255, 255, 0.3);
}


/* ===== LISTA DE METAS (OBJETIVOS DE LONGO PRAZO) ===== */

/* Item concluído em lista de METAS */
.item-card.completed.meta-item {
    background: linear-gradient(135deg, #fef3c7, #fde68a) !important;
    border-left: 4px solid #f59e0b !important;
    opacity: 1 !important; /* Não fica transparente */
}

.item-card.completed.meta-item .item-name {
    text-decoration: none !important; /* Não risca o texto */
    color: #92400e;
    font-weight: 600;
}

/* Badge de "Concluído" para metas */
.item-card.completed.meta-item::after {
    content: '✅ Concluído';
    position: absolute;
    top: 8px;
    right: 48px;
    background: #10b981;
    color: white;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    z-index: 1;
}

/* Item de meta pendente */
.item-card.meta-item:not(.completed) {
    border-left: 4px solid #f59e0b;
}

/* Checkbox de meta concluída */
.item-card.completed.meta-item .checkmark {
    background: #10b981 !important;
    border-color: #10b981 !important;
}

/* Animação ao concluir meta */
.item-card.meta-item.completed {
    animation: metaCompleted 0.5s ease-out;
}

@keyframes metaCompleted {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Ajuste para o botão de deletar não sobrepor o badge */
.item-card.completed.meta-item .delete-btn {
    z-index: 2;
}


/* ===== BOTÕES DE REORDENAÇÃO DE LISTAS ===== */

.lista-reorder-buttons {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 4px;
    z-index: 10;
}

.btn-reorder {
    width: 28px;
    height: 28px;
    border: none;
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    color: white;
    border-radius: 8px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-reorder:hover:not(.disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(236, 72, 153, 0.3);
}

.btn-reorder:active:not(.disabled) {
    transform: translateY(0);
}

.btn-reorder.disabled {
    background: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
    opacity: 0.5;
}

/* Ajuste no card da lista para dar espaço aos botões */
.lista-card {
    position: relative;
    padding-top: 48px; /* Espaço para os botões */
}

.lista-card .lista-header {
    padding-right: 70px; /* Espaço para não sobrepor os botões */
}


/* Modal de Confirmação */
.confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 300;
    animation: fadeIn 0.2s;
}

.confirm-modal {
    background: var(--card);
    border-radius: 20px;
    padding: 32px 24px;
    max-width: 320px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
}

.confirm-modal h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
    line-height: 1.4;
}

.confirm-modal p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 24px;
    line-height: 1.5;
}

.confirm-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.confirm-btn {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 100px;
}

.confirm-btn-cancel {
    background: #f3f4f6;
    color: var(--text);
    border: 1px solid var(--border);
}

.confirm-btn-cancel:hover {
    background: #e5e7eb;
    transform: translateY(-1px);
}

.confirm-btn-confirm {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
}

.confirm-btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(236, 72, 153, 0.4);
}

.confirm-btn-confirm:active {
    transform: translateY(0);
}

.confirm-btn-danger {
    background: var(--danger);
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.confirm-btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4);
}

.confirm-btn-danger:active {
    transform: translateY(0);
}


/* ============================================
   CARDS DE LISTAS - DESIGN MELHORADO
   ============================================ */

.lista-card {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.1), rgba(139, 92, 246, 0.1));
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.08);
    position: relative;
    overflow: hidden;
}

.lista-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.lista-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(236, 72, 153, 0.15);
    border-color: var(--primary);
}

.lista-card:active {
    transform: translateY(-2px);
}

.lista-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.lista-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.lista-count {
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    min-width: 32px;
    text-align: center;
}

.lista-desc {
    font-size: 13px;
    color: var(--text-light);
    margin: 0;
    line-height: 1.4;
}

/* ============================================
   CARDS DE ITENS - DESIGN MELHORADO
   ============================================ */

.item-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.item-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    border-color: var(--primary);
}

.item-card input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary);
    flex-shrink: 0;
}

.item-card span {
    flex: 1;
    font-size: 15px;
    color: var(--text);
    word-break: break-word;
}

.item-card input[type="checkbox"]:checked + span {
    color: var(--text-light);
    text-decoration: line-through;
}

.item-card button {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.item-card button:hover {
    background: rgba(239, 68, 68, 0.1);
}

/* ============================================
   FORMULÁRIO DE ADICIONAR ITEM
   ============================================ */

.add-section {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.05), rgba(139, 92, 246, 0.05));
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
}

.add-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.add-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.add-section form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.input-group {
    display: flex;
    gap: 12px;
}

.input-group--70-30 {
    grid-template-columns: 1fr 0.3fr;
}

.input-group--70-30 .form-group:first-child {
    flex: 2;
}

.input-group--70-30 .form-group:last-child {
    flex: 1;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.1);
}

.input-name {
    font-size: 15px;
}

.input-quantity {
    font-size: 14px;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(236, 72, 153, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

/* ============================================
   MENU INFERIOR
   ============================================ */

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 70px;
    z-index: 100;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.08);
}

.nav-item {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    color: var(--text-light);
    font-size: 11px;
    font-weight: 600;
    transition: all 0.2s;
    flex: 1;
    height: 100%;
    justify-content: center;
}

.nav-item:hover {
    color: var(--primary);
}

.nav-item.active {
    color: var(--primary);
}

.nav-item svg {
    width: 24px;
    height: 24px;
    stroke-width: 2;
}

.nav-item-fab {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
    transition: all 0.3s;
}

.nav-item-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(236, 72, 153, 0.4);
}

.nav-item-fab:active {
    transform: scale(0.95);
}

.nav-item-fab span {
    display: none;
}

/* ============================================
   MENU DE AÇÕES RÁPIDAS
   ============================================ */

.quick-actions-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: flex-end;
    z-index: 200;
}

.quick-actions-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.quick-actions-content {
    position: relative;
    background: white;
    border-radius: 24px 24px 0 0;
    padding: 24px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    animation: slideUp 0.3s ease-out;
}

.quick-action-btn {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.1), rgba(139, 92, 246, 0.1));
    border: 2px solid var(--border);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.quick-action-btn:hover {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.15), rgba(139, 92, 246, 0.15));
    border-color: var(--primary);
}

.quick-action-icon {
    font-size: 24px;
}

.quick-action-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}

/* ============================================
   MODAL BOTTOM
   ============================================ */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: flex-end;
    z-index: 200;
}

.modal-bottom {
    background: white;
    border-radius: 24px 24px 0 0;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease-out;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.1);
}

.modal-bottom-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
}

.modal-bottom-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.modal-bottom-header button {
    background: #f3f4f6;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.modal-bottom-header button:hover {
    background: #e5e7eb;
}

.modal-bottom-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.more-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.more-section-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0 12px;
}

.action-btn-large {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.1), rgba(139, 92, 246, 0.1));
    border: 2px solid var(--border);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}

.action-btn-large:hover {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.15), rgba(139, 92, 246, 0.15));
    border-color: var(--primary);
}

.action-btn-large.danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.05));
    border-color: rgba(239, 68, 68, 0.3);
    color: var(--danger);
}

.action-btn-large.danger:hover {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(239, 68, 68, 0.1));
    border-color: var(--danger);
}

.action-btn-icon {
    font-size: 20px;
    min-width: 24px;
}

.action-btn-text {
    flex: 1;
}

/* ============================================
   CONTAINER E PADDING
   ============================================ */

.container {
    padding: 20px;
    padding-bottom: 100px;
    max-width: 100%;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}


/* ============================================
   HEADER MELHORADO
   ============================================ */

header {
    background: linear-gradient(135deg, #fdf2f8 0%, #fff 100%);
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

header h1 {
    font-size: 20px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.back-btn {
    background: white;
    border: 2px solid var(--border);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: var(--primary);
}

.back-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.sync-badge {
    font-size: 18px;
    cursor: help;
    transition: all 0.3s;
}

.logout-btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: none;
}

.logout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
}

@media (min-width: 768px) {
    .logout-btn {
        display: block;
    }
    
    .desktop-only {
        display: block;
    }
}

.desktop-only {
    display: none;
}

/* ============================================
   BOTÃO FAB DE FINALIZAR COMPRA
   ============================================ */

.finish-btn {
    position: fixed;
    bottom: 90px;
    right: 20px;
    background: linear-gradient(135deg, var(--success), #06b6d4);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    transition: all 0.3s;
    z-index: 90;
}

.finish-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

.finish-btn:active {
    transform: translateY(-2px);
}

/* ============================================
   FAB ADICIONAR ITEM
   ============================================ */

.fab-add-item {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
    transition: all 0.3s;
    z-index: 90;
}

.fab-add-item:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(236, 72, 153, 0.4);
}

.fab-add-item:active {
    transform: scale(0.95);
}

/* ============================================
   ANIMAÇÕES
   ============================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.lista-card {
    animation: slideDown 0.3s ease-out;
}

.item-card {
    animation: slideDown 0.2s ease-out;
}


/* ============================================
   DRAG AND DROP - REORDENAÇÃO DE LISTAS
   ============================================ */

.lista-card {
    cursor: grab;
    transition: all 0.2s ease;
    position: relative;
}

.lista-card:active {
    cursor: grabbing;
}

.lista-card.dragging {
    opacity: 0.5;
    transform: scale(0.98);
    box-shadow: 0 8px 24px rgba(236, 72, 153, 0.3);
}

.lista-card.drag-over {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.1), rgba(139, 92, 246, 0.1));
    border: 2px dashed var(--primary);
    transform: scale(1.02);
}

.lista-card.drag-over::after {
    content: '↕ Solte para reordenar';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--primary);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.4);
}

/* Indicador de posição de drop */
.lista-card.drop-above {
    border-top: 3px solid var(--primary);
    padding-top: calc(var(--spacing-lg) - 3px);
}

.lista-card.drop-below {
    border-bottom: 3px solid var(--primary);
    padding-bottom: calc(var(--spacing-lg) - 3px);
}

/* Ícone de drag handle */
.drag-handle {
    cursor: grab;
    color: var(--text-light);
    transition: all 0.2s;
    opacity: 0;
    margin-right: 8px;
}

.lista-card:hover .drag-handle {
    opacity: 1;
    color: var(--primary);
}

.lista-card.dragging .drag-handle {
    opacity: 1;
    color: var(--primary);
}

/* Animação de reordenação */
@keyframes reorder {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.lista-card.reordered {
    animation: reorder 0.3s ease-out;
}

/* Feedback visual durante drag */
.listas-grid.dragging-active {
    opacity: 0.8;
}

/* Tooltip de ajuda */
.drag-hint {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 12px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    z-index: 999;
    pointer-events: none;
    animation: slideUp 0.3s ease-out;
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.4);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* ============================================
   MELHORIAS DE UX - CARDS DE LISTA
   ============================================ */

.lista-card {
    background: var(--card);
    padding: var(--spacing-lg);
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    overflow: hidden;
}

.lista-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.3s;
}

.lista-card:hover::before {
    opacity: 1;
}

.lista-card:hover {
    box-shadow: 0 8px 24px rgba(236, 72, 153, 0.15);
    transform: translateY(-2px);
}

.lista-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 12px;
}

.lista-header h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin: 0;
    flex: 1;
}

.lista-count {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
    flex-shrink: 0;
}

.lista-desc {
    color: var(--text-light);
    font-size: 14px;
    margin: 0 0 16px 0;
    line-height: 1.4;
}

.lista-footer {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
}

.btn-secondary {
    flex: 1;
    padding: 10px 16px;
    background: var(--bg);
    color: var(--primary-dark);
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    min-height: 44px;
}

.btn-secondary:hover {
    background: #fce7f3;
    transform: translateY(-1px);
}

.btn-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 18px;
    flex-shrink: 0;
}

.btn-icon:hover {
    background: var(--success);
    color: white;
    transform: translateY(-1px);
}

.btn-icon.danger:hover {
    background: var(--danger);
    color: white;
}

/* ============================================
   EMPTY STATE MELHORADO
   ============================================ */

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
    min-height: calc(100vh - 300px);
    width: 100%;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.empty-state h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.empty-state p {
    margin-bottom: 20px;
    font-size: 14px;
}

/* ============================================
   RESPONSIVIDADE
   ============================================ */

@media (max-width: 640px) {
    .lista-card {
        padding: var(--spacing-md);
    }
    
    .lista-header h4 {
        font-size: 16px;
    }
    
    .lista-count {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .btn-secondary {
        font-size: 13px;
        padding: 8px 12px;
    }
    
    .btn-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

@media (min-width: 768px) {
    .listas-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .listas-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


/* ============================================
   MODAL DE NOTIFICAÇÕES
   ============================================ */

.notification-prompt {
    position: fixed;
    bottom: 100px;
    left: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(236, 72, 153, 0.4);
    z-index: 999;
    animation: slideUp 0.3s ease-out;
    max-width: 400px;
    margin: 0 auto;
}

.notification-prompt-content {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.notification-prompt-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.notification-prompt-text {
    flex: 1;
}

.notification-prompt-title {
    font-weight: 700;
    margin-bottom: 4px;
    font-size: 16px;
}

.notification-prompt-desc {
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.4;
}

.notification-prompt-buttons {
    display: flex;
    gap: 12px;
}

.notification-btn {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-btn-accept {
    background: white;
    color: var(--primary);
}

.notification-btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.notification-btn-accept:active {
    transform: translateY(0);
}

.notification-btn-reject {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.notification-btn-reject:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.notification-btn-reject:active {
    transform: translateY(0);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   INSTALL PROMPT
   ============================================ */

.install-prompt {
    position: fixed;
    bottom: 100px;
    left: 20px;
    right: 20px;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    color: white;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
    z-index: 999;
    animation: slideUp 0.3s ease-out;
    max-width: 400px;
    margin: 0 auto;
}

.install-prompt-content {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.install-prompt-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.install-prompt-text {
    flex: 1;
}

.install-prompt-title {
    font-weight: 700;
    margin-bottom: 4px;
    font-size: 16px;
}

.install-prompt-desc {
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.4;
}

.install-prompt-buttons {
    display: flex;
    gap: 12px;
}

.install-btn {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.install-btn-accept {
    background: white;
    color: #3b82f6;
}

.install-btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.install-btn-accept:active {
    transform: translateY(0);
}

.install-btn-reject {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.install-btn-reject:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.install-btn-reject:active {
    transform: translateY(0);
}


/* ============================================
   WELCOME MODAL
   ============================================ */

.welcome-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

/* ============================================
   WELCOME MODAL
   ============================================ */

.welcome-content {
    position: relative;
    background: var(--card);
    border-radius: 24px;
    max-width: 400px;
    width: 90%;
    padding: 40px 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.welcome-header {
    margin-bottom: 30px;
}

.welcome-logo {
    width: 100px;
    height: 100px;
    border-radius: 24px;
    box-shadow: 0 8px 24px rgba(236, 72, 153, 0.3);
    animation: float 3s ease-in-out infinite;
}

.welcome-body h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--text);
    margin: 0 0 8px 0;
}

.welcome-title {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0 0 12px 0;
}

.welcome-desc {
    font-size: 14px;
    color: var(--text-light);
    margin: 0 0 24px 0;
    line-height: 1.6;
}

.welcome-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.feature-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.feature-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

.welcome-footer {
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.welcome-hint {
    font-size: 12px;
    color: var(--text-light);
    margin: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* ============================================
   APP INFO INLINE (no menu)
   ============================================ */

.app-info-inline {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%);
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.app-info-inline-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.app-info-inline-logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(236, 72, 153, 0.2);
}

.app-info-inline-header h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.app-info-inline-header p {
    font-size: 12px;
    color: var(--text-light);
    margin: 4px 0 0 0;
}

.app-info-inline-desc {
    font-size: 13px;
    color: var(--text-light);
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.app-info-inline-copyright {
    font-size: 11px;
    color: var(--text-light);
    margin: 0;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}

.app-info-header {
    position: relative;
    padding: 40px 30px 30px;
    text-align: center;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    border-bottom: 1px solid var(--border);
}

.app-info-logo {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(236, 72, 153, 0.3);
}

.app-info-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg);
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.app-info-close:hover {
    background: #f3f4f6;
    color: var(--text);
}

.app-info-body {
    padding: 30px;
    text-align: center;
}

.app-info-body h2 {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0 0 8px 0;
}

.app-version {
    font-size: 14px;
    color: var(--text-light);
    margin: 0 0 12px 0;
    font-weight: 600;
}

.app-desc {
    font-size: 14px;
    color: var(--text);
    margin: 0;
    line-height: 1.6;
}

.app-info-divider {
    height: 1px;
    background: var(--border);
    margin: 20px 0;
}

.app-copyright {
    font-size: 12px;
    color: var(--text-light);
    margin: 0;
}
