* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

:root {
    --primary-white: #ffffff;
    --primary-black: #000000;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;
    --whatsapp-green: #25D366;
    --whatsapp-dark: #128C7E;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background-color: var(--primary-white);
  color: var(--gray-800);
  line-height: 1.6;
  overflow-x: hidden;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-content {
    padding-top: 80px;
    padding-bottom: 5rem;
    min-height: calc(100vh - 200px);
    display: flex;
    justify-content: center;
    background-color: var(--primary-white);
}

.section-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 5%;
}

.planos-header {
    text-align: center;
    margin-bottom: 3rem;
    animation: slideInUp 0.6s ease-out;
}

.planos-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-black);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.planos-header p {
    font-size: 1.1rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

.no-plans-message {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--gray-50);
    border-radius: 16px;
    border: 2px dashed var(--gray-300);
    animation: fadeIn 0.5s ease-out;
}

.no-plans-message i {
    font-size: 4rem;
    color: var(--gray-400);
    margin-bottom: 1rem;
}

.no-plans-message p {
    font-size: 1.1rem;
    color: var(--gray-600);
}

.tabs-container {
    animation: slideInUp 0.6s ease-out 0.2s both;
}

.tabs-header {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--gray-200);
    padding-bottom: 0;
    flex-wrap: wrap;
}

.tab-button {
    padding: 1rem 2rem;
    background: var(--primary-white);
    border: 2px solid var(--gray-200);
    border-bottom: none;
    border-radius: 12px 12px 0 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-600);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    top: 2px;
}

.tab-button:hover {
    background: var(--gray-100);
    color: var(--primary-black);
}

.tab-button.active {
    background: var(--primary-black);
    color: var(--primary-white);
    border-color: var(--primary-black);
}

.tabs-content {
    position: relative;
}

.tab-panel {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.tab-panel.active {
    display: block;
}

.plan-card {
    background: var(--primary-white);
    border-radius: 0 0 20px 20px;
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--gray-200);
    border-top: none;
}

.plan-card-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--gray-200);
}

.plan-card-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-black);
    margin-bottom: 0.5rem;
}

.plan-subtitle {
    font-size: 1.1rem;
    color: var(--gray-600);
    font-weight: 500;
}

.plan-card-body {
    margin-bottom: 2rem;
}

.plan-description {
    font-size: 1rem;
    color: var(--gray-700);
    line-height: 1.8;
    margin-bottom: 2rem;
    text-align: center;
}

.plan-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

.feature-check {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--gray-50);
    border-radius: 8px;
    transition: var(--transition);
}

.feature-check:hover {
    background: var(--gray-100);
    transform: translateX(5px);
}

.feature-check i {
    color: var(--primary-black);
    font-size: 1.2rem;
}

.feature-check span {
    font-size: 0.95rem;
    color: var(--gray-800);
    font-weight: 500;
}

.plan-card-footer {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
}

.btn-primary, .btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary-black);
    color: var(--primary-white);
    border: 2px solid var(--primary-black);
}

.btn-primary:hover {
    background: var(--primary-white);
    color: var(--primary-black);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-whatsapp {
    background: var(--whatsapp-green);
    color: var(--primary-white);
    border: 2px solid var(--whatsapp-green);
}

.btn-whatsapp:hover {
    background: var(--primary-white);
    color: var(--whatsapp-green);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.update-date {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
    color: var(--gray-500);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.update-date i {
    color: var(--primary-black);
}

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary-black);
    color: var(--primary-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-md);
    z-index: 998;
    transition: var(--transition);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--gray-800);
    transform: translateY(-3px);
}

@media (max-width: 767px) {
    .main-content {
        padding-top: 60px;
        padding-bottom: 3rem;
    }

    .planos-header h1 {
        font-size: 2rem;
    }

    .tabs-header {
        flex-direction: column;
    }

    .tab-button {
        width: 100%;
        border-radius: 8px;
        border-bottom: 2px solid var(--gray-200);
    }

    .tab-button.active {
        border-radius: 8px;
    }

    .plan-card {
        padding: 2rem;
        border-radius: 16px;
        border: 2px solid var(--gray-200);
    }

    .plan-card-header h2 {
        font-size: 1.6rem;
    }

    .plan-card-footer {
        flex-direction: column;
    }

    .btn-primary, .btn-whatsapp {
        width: 100%;
        justify-content: center;
    }

    .back-to-top {
        right: 1rem;
        bottom: 1rem;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 424px) {
    .planos-header h1 {
        font-size: 1.6rem;
    }

    .plan-card {
        padding: 1.5rem;
    }

    .tab-button {
        padding: 0.75rem 1rem;
    }
}