.tab-content {
    display: none;
    animation: fadeInTab 0.5s ease forwards;
}

.tab-content.active {
    display: block;
}

@keyframes fadeInTab {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.plans-hero {
    padding: 100px 15% 150px;
    background-color: var(--bg-primary);
    transition: background-color 0.5s ease, color 0.5s ease;
}

.plans-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 150px 0 40px;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    padding-bottom: 0;
}

.plan-tab {
    width: 100%;
    background: none;
    border: none;
    padding: 20px 0;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.plan-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--electric-indigo);
    box-shadow: 0 0 10px var(--electric-indigo);
}

.plan-tab span.material-symbols-outlined {
    font-size: 32px;
    font-variation-settings: 'wght' 300;
}

.plan-tab .tab-text {
    font-size: 0.8rem;
    letter-spacing: 2px;
    white-space: nowrap;
}

.plan-tab.active {
    color: var(--electric-indigo);
}

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

.plan-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 1;
    transition: var(--transition-smooth);
}

.plan-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--noise);
    background-size: 100px 100px;
    background-repeat: repeat;
    opacity: 0.04;
    mix-blend-mode: overlay;
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    pointer-events: none;
    z-index: -1;
}

.plan-card.featured {
    border-color: var(--electric-indigo);
    background: radial-gradient(circle at top left, rgba(102, 45, 145, 0.05) 0%, transparent 70%);
}

.badge {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1px;
    border: 1px solid var(--border-color);
    padding: 4px 10px;
    border-radius: 4px;
    color: var(--text-secondary);
    transition: color 0.5s ease, border-color 0.5s ease;
}

.badge.purple {
    color: var(--electric-indigo);
    border-color: var(--electric-indigo);
}

.card-header h3 {
    font-size: 1.9rem;
    font-weight: 800;
    margin: 20px 0 10px;
}

.card-header p {
    font-size: 1rem;
    color: var(--text-secondary);
    opacity: 0.6;
    line-height: 1.5;
    min-height: 80px;
    transition: color 0.5s ease;
}

.card-price {
    margin: 40px 0;
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.currency {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--electric-indigo);
}

.amount {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -2px;
}

.features {
    list-style: none;
    margin-bottom: 40px;
    flex: 1;
}

.features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
    transition: color 0.5s ease;
}

.features .material-symbols-outlined {
    color: var(--electric-indigo);
    font-size: 18px;
}

.features li.has-sub-items {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

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

.sub-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.sub-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    opacity: 0.6;
    margin-bottom: 6px !important;
    transition: color 0.5s ease;
}

.sub-features li:last-child {
    margin-bottom: 10px !important;
}

.sub-features .material-symbols-outlined {
    font-size: 16px !important;
    color: var(--electric-indigo);
    opacity: 0.8;
}

.addon-section {
        padding: 250px 0% 0px;
}

.addon-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.addon-header .section-title {
    font-size: clamp(3rem, 5vw, 3.5rem);
    line-height: 1.1;
    margin: 0;
    font-weight: 800;
}

.addon-table-wrapper {
    width: 100%;
    overflow-x: auto;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    position: relative;
    transition: background-color 0.5s ease, border-color 0.5s ease;
}

.addon-table-wrapper::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--noise);
    background-size: 100px 100px;
    background-repeat: repeat;
    opacity: 0.04;
    mix-blend-mode: overlay;
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    pointer-events: none;
    z-index: -1;
}

.addon-table {
    width: 100%;
    border-collapse: collapse;
    color: var(--stellar-white);
    transition: color 0.5s ease;
}

.addon-table th {
    text-align: left;
    padding: 20px 30px;
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--electric-indigo);
    border-bottom: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.01);
    transition: background-color 0.5s ease, border-color 0.5s ease, color 0.5s ease;
}

.addon-table td {
    padding: 25px 30px;
    border-bottom: 1px solid var(--border-color);
    font-size: 1rem;
    vertical-align: middle;
    transition: border-color 0.5s ease, background-color 0.5s ease;
}

.addon-table tr:last-child td {
    border-bottom: none;
}

.addon-table tr:hover td {
    background: rgba(102, 45, 145, 0.03);
}

.feature-name {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    color: var(--stellar-white);
    transition: color 0.5s ease;
}

.feature-name .material-symbols-outlined {
    font-size: 18px;
    color: var(--electric-indigo);
    font-variation-settings: 'wght' 200;
}

.price-cell {
    text-align: right !important;
    vertical-align: middle;
    font-weight: 800;
    color: var(--electric-indigo);
    white-space: nowrap;
    transition: color 0.5s ease;
}

.text-right {
    text-align: right !important;
}

.readout-section {
    padding: 250px 0% 0px;
    background-color: var(--bg-primary);
    transition: background-color 0.5s ease, color 0.5s ease;
}

.readout-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 80px;
    text-align: left;
}

.readout-header .detail-text {
    color: var(--electric-indigo);
    font-size: 0.8rem;
    letter-spacing: 3px;
    font-weight: 500;
    opacity: 0.8;
}

.readout-header .section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin: 0;
    font-weight: 800;
}

.readout-list {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.readout-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 40px;
    align-items: flex-start;
    transition: var(--transition-smooth);
}

.item-index {
    font-size: 1.2rem;
    font-weight: 100;
    color: var(--electric-indigo);
    opacity: 0.4;
    padding-top: 5px;
    transition: color 0.5s ease, opacity 0.5s ease, text-shadow 0.5s ease;
}

.item-title-group {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.item-title-group .material-symbols-outlined {
    font-size: 28px;
    color: var(--electric-indigo);
    font-variation-settings: 'wght' 200;
}

.item-content h3 {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--stellar-white);
    transition: opacity 0.5s ease, color 0.5s ease;
}

.item-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 800px;
    opacity: 0.7;
    transition: opacity 0.5s ease, color 0.5s ease;
}

.readout-item:hover {
    transform: translateX(10px);
}

.readout-item:hover .item-index {
    opacity: 1;
    text-shadow: 0 0 10px var(--electric-indigo);
}

.readout-item:hover p {
    opacity: 1;
    color: var(--stellar-white);
}

.typing-effect::after {
    content: '|';
    margin-left: 5px;
    color: var(--electric-indigo);
    animation: blink 1s step-end infinite;
}

@keyframes blink {

    from,
    to {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.section-title {
    min-height: 1.2em;
    margin-top: 0px;
    display: inline-block;
}

.faq-section {
    padding: 250px 0% 100px;
    background-color: var(--bg-primary);
    transition: background-color 0.5s ease, color 0.5s ease;
}

.faq-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 60px;
}

.faq-container {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
    transition: border-color 0.5s ease;
}

.faq-trigger {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 35px 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: var(--transition-smooth);
}

.faq-question {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--stellar-white);
    opacity: 0.8;
    transition: all 0.5s ease;
}

.faq-trigger .material-symbols-outlined {
    font-size: 24px;
    color: var(--electric-indigo);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
    opacity: 0;
}

.faq-content p {
    padding-bottom: 35px;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 850px;
    transition: color 0.5s ease;
}

.faq-item.active .faq-content {
    opacity: 1;
}

.faq-item.active .faq-trigger .material-symbols-outlined {
    transform: rotate(45deg);
    opacity: 0.5;
}

.faq-item.active .faq-question {
    opacity: 1;
    color: var(--electric-indigo);
}

.faq-trigger:hover .faq-question {
    opacity: 1;
    transform: translateX(5px);
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 15px;
}

.checkbox-wrapper input[type="checkbox"] {
    appearance: none;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    border: 1px solid var(--electric-indigo);
    border-radius: 4px;
    background: transparent;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    aspect-ratio: 1 / 1; 
}

.checkbox-wrapper input[type="checkbox"]:checked {
    background: var(--electric-indigo);
    box-shadow: 0 0 10px var(--electric-indigo);
}

.checkbox-wrapper input[type="checkbox"]:checked::after {
    content: 'L';
    position: absolute;
    color: white;
    font-size: 10px;
    transform: rotate(45deg) scaleX(-1);
    left: 6px;
    top: 2px;
}

.addon-item-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.addon-control-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    height: 36px;
    padding: 2px;
    transition: all 0.5s ease;
}

.quantity-selector:focus-within,
.quantity-selector:hover {
    border-color: var(--electric-indigo);
    box-shadow: 0 0 10px rgba(102, 45, 145, 0.2);
}

.qty-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.5s ease;
}

.qty-btn:hover {
    color: var(--electric-indigo);
    background: rgba(102, 45, 145, 0.1);
    border-radius: 6px;
}

.qty-input {
    width: 35px;
    padding: 0;
    margin: 0;
    background: transparent;
    border: none;
    color: var(--stellar-white);
    text-align: center;
    font-weight: 800;
    font-size: 1rem;
    pointer-events: none;
    appearance: textfield;
    -moz-appearance: textfield;
    outline: none;
    transition: color 0.5s ease;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.price-cell .unit {
    display: block;
    font-size: 0.6rem;
    opacity: 0.4;
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.budget-bar {
    position: fixed;
    bottom: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: clamp(320px, 60%, 800px);
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(102, 45, 145, 0.3);
    border-radius: 24px;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(102, 45, 145, 0.1);
    transition: bottom 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
                background-color 0.5s ease, 
                border-color 0.5s ease, 
                box-shadow 0.5s ease;
}

.budget-bar.active {
    bottom: 40px;
}

.budget-bar::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--noise);
    background-size: 100px 100px;
    background-repeat: repeat;
    opacity: 0.04;
    mix-blend-mode: overlay;
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    pointer-events: none;
    z-index: -1;
}

.budget-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.budget-label {
    color: var(--electric-indigo);
    font-size: 0.8rem;
    letter-spacing: 3px;
    font-weight: 500;
    transition: color 0.5s ease, opacity 0.5s ease;
}

.budget-total {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--stellar-white);
    letter-spacing: -1px;
    font-variant-numeric: tabular-nums;
    transition: color 0.5s ease;
}

body.light-theme .budget-bar {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(102, 45, 145, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08),
        0 0 20px rgba(102, 45, 145, 0.05);
}

body.light-theme .budget-total {
    color: #0A0A0A;
}

body.light-theme .budget-bar::before {
    opacity: 0.02;
}

body.light-theme .budget-label {
    color: var(--electric-indigo);
    opacity: 1;
}

@media (max-width: 1024px) {
    .plan-card {
        padding: 20px;
    }

    .card-header h3 {
        font-size: 1.5rem;
    }

    .amount {
        font-size: 2.5rem;
    }
}

@media (max-width: 992px) {
    .plans-hero {
        padding: 150px 10% !important;
    }

    .plans-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .budget-bar {
        bottom: -300px; 
        width: 80%;
        padding: 20px;
        flex-direction: column;
        gap: 20px;
        text-align: center;
        border-radius: 16px;
        left: 50%;
        transform: translateX(-50%);
    }

    .budget-bar.active {
        bottom: 20px;
    }

    .plans-nav {
        gap: 10px;
        align-items: stretch;
    }

    .plan-tab .tab-text {
        display: none;
    }

    .plan-tab.active .tab-text {
        display: block;
        white-space: normal;
        text-align: center;
        font-size: 0.65rem;
        line-height: 1.1;
        max-width: 100%;
        animation: fadeInTab 0.4s ease forwards;
    }

    .plan-tab span.material-symbols-outlined {
        margin: 0;
        font-size: 24px;
    }

    .plan-tab {
        padding: 10px 5px;
        flex-direction: column;
        gap: 5px;
        justify-content: center;
    }

    .addon-table thead {
        display: none;
    }

    .addon-table td {
        display: block;
        padding: 15px 20px;
        text-align: left !important;
        border: none;
    }

    .addon-table tr:hover td {
        background: transparent;
    }

    .addon-table tr {
        display: block;
        padding: 20px 0;
        border-bottom: 1px solid var(--border-color);
    }

    .price-cell {
        color: var(--stellar-white);
        font-size: 1.1rem;
        padding-top: 0 !important;
    }

    .price-cell::before {
        content: "INVESTIMENTO: ";
        font-size: 0.6rem;
        opacity: 0.5;
        margin-right: 10px;
    }

    .readout-section {
        padding: 80px 0 !important;
        width: 100%;
    }

    .readout-item {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .readout-list {
        gap: 60px
    }

    .faq-section {
        padding: 80px 0 !important;
        width: 100%;
    }

    .item-content p,
    .faq-content p {
        max-width: 100%;
    }

    .plan-card {
        padding: 25px;
    }

}