:root {
    --bg-dark: #F5F7FA;
    --bg-card: #FFFFFF;
    --bg-nav: #FFFFFF;
    --primary: #D6F341; 
    --primary-dark: #B8D928;
    --primary-light: #F4F832;
    --text: #151515;
    --text-secondary: #6B7280;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 25px rgba(0, 0, 0, 0.12);
    --radius: 20px;
    --radius-sm: 14px;
    --radius-lg: 28px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

body {
    background: var(--bg-dark);
    min-height: 100vh;
    padding-bottom: 120px;
    padding-top: 70px;
    color: var(--text);
}

.top-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-nav);
    padding: 14px 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow);
    z-index: 1000;
    height: 70px;
    border-bottom: 1px solid #E5E7EB;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-image {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    object-fit: cover;
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    font-weight: bold;
    font-size: 22px;
}

.logo-text {
    font-size: 26px;
    font-weight: bold;
    color: var(--text);
}

.bottom-menu {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-nav);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 12px 20px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    border-radius: 35px;
    width: calc(100% - 50px);
    max-width: 400px;
    gap: 10px;
    border: 1px solid #E5E7EB;
}

.menu-item {
    text-align: center;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.3s;
    padding: 10px 12px;
    border-radius: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.menu-item.active {
    color: var(--text);
    background: var(--primary);
    font-weight: bold;
}

.menu-item svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.menu-label {
    font-size: 12px;
    font-weight: 600;
}

.main-content {
    max-width: 700px;
    margin: 0 auto;
    padding: 25px;
}

.page {
    display: none;
}

.page.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.banner-container {
    margin: 20px 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.banner-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius);
}

.ad-container {
    margin: 20px 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
}

.ad-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-sm);
}

.section-title {
    font-size: 22px;
    font-weight: 700;
    margin: 30px 0 20px;
    color: var(--text);
    text-align: left;
}

.carousel {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    margin-bottom: 25px;
    background: var(--bg-card);
    height: 200px;
    box-shadow: var(--shadow);
    cursor: grab;
    touch-action: pan-y;
    border: 1px solid #E5E7EB;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s;
    height: 100%;
}

.carousel-slide {
    min-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    padding: 25px;
    text-align: center;
}

.carousel-slide:nth-child(1) { background: linear-gradient(135deg, #FFFFFF 0%, #F5F7FA 100%); }
.carousel-slide:nth-child(2) { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%); }
.carousel-slide:nth-child(3) { background: linear-gradient(135deg, #F5F7FA 0%, #FFFFFF 100%); }

.tool-categories {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin: 25px 0;
}

.tool-category {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 12px 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.tool-category:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.tool-category.active {
    border-color: var(--primary);
    background: rgba(214, 243, 65, 0.1);
}

.category-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 8px;
    background: var(--bg-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--primary-dark);
    fill: none;
    stroke-width: 2;
}

.tool-category span {
    font-weight: 600;
    color: var(--text);
    display: block;
    font-size: 11px;
}

.tools-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tool-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--bg-card);
    padding: 20px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.tool-item:hover {
    transform: translateX(5px);
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.tool-item-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: var(--bg-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tool-item-icon svg {
    width: 25px;
    height: 25px;
    stroke: var(--primary-dark);
    fill: none;
    stroke-width: 2;
}

.tool-item-title {
    font-weight: 700;
    color: var(--text);
    margin-bottom: 5px;
}

.tool-item-desc {
    font-size: 14px;
    color: var(--text-secondary);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 25px 0;
}

.tool-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    border: 2px solid transparent;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tool-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.tool-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background: var(--bg-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tool-icon svg {
    width: 30px;
    height: 30px;
    stroke: var(--primary-dark);
    fill: none;
    stroke-width: 2;
}

.tool-title {
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text);
    font-size: 18px;
}

.tool-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.search-bar {
    position: relative;
    margin: 20px 0;
}

.search-bar input {
    width: 100%;
    padding: 15px 45px 15px 50px;
    border: 2px solid #E5E7EB;
    border-radius: 30px;
    font-size: 16px;
    transition: all 0.3s;
    background: var(--bg-card);
    color: var(--text);
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(214, 243, 65, 0.3);
}

.search-bar svg {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    stroke: var(--text-secondary);
}

.btn {
    padding: 15px 25px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    margin-bottom: 12px;
    font-size: 16px;
}

.btn-primary {
    background: var(--primary);
    color: var(--text);
    width: 100%;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(214, 243, 65, 0.4);
}

.load-more-btn {
    display: block;
    width: 100%;
    padding: 16px;
    background: transparent;
    border: 2px solid var(--primary);
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text);
    transition: all 0.3s;
    margin: 25px 0;
    text-align: center;
    font-size: 16px;
}

.load-more-btn:hover {
    background: var(--primary);
    color: var(--text);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(214, 243, 65, 0.4);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 25px;
    backdrop-filter: blur(3px);
}

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

.modal {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 30px;
    max-width: 500px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
    box-shadow: var(--shadow-lg);
    border: 1px solid #E5E7EB;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

.modal-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
}

.close-btn {
    cursor: pointer;
    font-size: 32px;
    color: var(--text-secondary);
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    line-height: 1;
}

.close-btn:hover {
    background: var(--bg-dark);
    color: var(--text);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 15px;
    color: var(--text);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px;
    border: 2px solid #E5E7EB;
    border-radius: var(--radius-sm);
    font-size: 16px;
    transition: all 0.3s;
    background: var(--bg-card);
    color: var(--text);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(214, 243, 65, 0.3);
}

.loading-container {
    text-align: center;
    padding: 20px;
    margin: 15px 0;
}

.loading-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 15px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

.loading-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-dark);
    border-radius: 4px;
    overflow: hidden;
}

.loading-progress {
    width: 0%;
    height: 100%;
    background: var(--primary);
    border-radius: 4px;
    animation: loading 1.5s ease-in-out forwards;
}

@keyframes loading {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

.result-card {
    background: var(--bg-dark);
    border-radius: var(--radius-sm);
    padding: 20px;
    margin: 15px 0;
    border: 1px solid #E5E7EB;
}

.result-card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 15px;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #E5E7EB;
}

.result-item:last-child {
    border-bottom: none;
}

.result-label {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 14px;
}

.result-value {
    font-weight: 700;
    font-size: 18px;
    color: var(--text);
}

.result-value.positive {
    color: #4C8C00;
}

.unlock-share-container {
    background: linear-gradient(135deg, rgba(214, 243, 65, 0.15) 0%, rgba(214, 243, 65, 0.05) 100%);
    border: 2px solid var(--primary);
    border-radius: var(--radius-sm);
    padding: 20px;
    margin: 15px 0;
    text-align: center;
}

.unlock-share-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
}

.unlock-share-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.unlock-share-btn {
    background: var(--primary);
    color: var(--text);
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    width: 100%;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.unlock-share-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.unlock-share-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.unlock-complete {
    background: #4C8C00;
    color: white;
    padding: 12px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 15px;
    animation: pulse 1.5s infinite;
}

.expense-list {
    margin-bottom: 15px;
}

.expense-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
    position: relative;
    background: var(--bg-dark);
    border-radius: var(--radius-sm);
    padding: 15px;
    padding-top: 30px;
    border: 1px solid #E5E7EB;
}

.expense-item input {
    width: 100%;
    padding: 12px;
    border: 2px solid #E5E7EB;
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: all 0.3s;
    background: var(--bg-card);
    color: var(--text);
}

.expense-item input:focus {
    outline: none;
    border-color: var(--primary);
}

.remove-expense-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: transparent;
    color: #9CA3AF;
    border: none;
    width: 25px;
    height: 25px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    line-height: 1;
    padding: 0;
}

.remove-expense-btn:hover {
    color: var(--text);
}

.add-expense-btn {
    background: transparent;
    border: 2px dashed var(--primary);
    color: var(--text);
    padding: 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s;
    font-size: 14px;
}

.add-expense-btn:hover {
    background: rgba(214, 243, 65, 0.1);
    border-color: var(--primary-dark);
}

.expense-summary-item {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    font-size: 14px;
}

.expense-summary-item .label {
    color: var(--text-secondary);
    font-weight: 600;
}

.expense-summary-item .value {
    font-weight: 700;
    color: var(--text);
}

.life-indicator {
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
    text-align: center;
    margin-top: 10px;
}

.life-indicator.normal {
    background: rgba(76, 140, 0, 0.15);
    color: #4C8C00;
}

.life-indicator.attention {
    background: rgba(214, 243, 65, 0.2);
    color: #5A6B00;
}

.life-indicator.warning {
    background: rgba(245, 158, 11, 0.15);
    color: #B45309;
}

.life-indicator.critical {
    background: rgba(220, 38, 38, 0.15);
    color: #DC2626;
}

.cost-breakdown {
    margin: 15px 0;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    padding: 15px;
    border: 1px solid #E5E7EB;
}

.cost-breakdown-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
    text-align: center;
}

.cost-breakdown-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #E5E7EB;
    font-size: 14px;
}

.cost-breakdown-item:last-child {
    border-bottom: none;
}

.cost-breakdown-item .label {
    color: var(--text-secondary);
    font-weight: 600;
}

.cost-breakdown-item .value {
    font-weight: 700;
    color: var(--text);
}

.cost-breakdown-total {
    display: flex;
    justify-content: space-between;
    padding-top: 10px;
    margin-top: 5px;
    border-top: 2px solid var(--primary);
    font-weight: 800;
    font-size: 16px;
    color: var(--text);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-avatar svg {
    width: 40px;
    height: 40px;
    stroke: var(--text);
}

.settings-list {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.settings-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #E5E7EB;
    cursor: pointer;
    transition: all 0.2s;
}

.settings-item:last-child {
    border-bottom: none;
}

.settings-item:hover {
    background: var(--bg-dark);
}

.settings-label {
    font-weight: 600;
    font-size: 16px;
    color: var(--text);
}

@media (max-width: 600px) {
    .tool-categories {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
}
/* Blur para resultados */
.blur-value {
    filter: blur(6px);
    user-select: none;
    transition: filter 0.3s ease;
}

/* Botão Compartilhar Resultado */
.share-result-btn {
    background: #D6F341;
    color: #000000;
    padding: 15px 25px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    font-weight: 700;
    font-size: 16px;
    width: 100%;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.share-result-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(214, 243, 65, 0.4);
}

.share-result-btn svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}