:root {
    --bg-dark: #000000;
    --primary-gold: var(--accent, #D4AF37);
    --primary-gold-hover: var(--accent-light, var(--primary-gold-hover));
    --accent-rgb: 212, 175, 55;
    --card-border: rgba(var(--accent-rgb), 0.2);
    --text-color: #ffffff;
    --font-heading: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;
}

/* Import FontAwesome for Back Arrow */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background: linear-gradient(to bottom, #170d30 0%, #0a0618 40vh, #000000 70vh);
    background-attachment: fixed;
    color: var(--text-color);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background Místico */
.mystical-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--primary-gold);
    border-radius: 50%;
    box-shadow: 0 0 3px rgba(212, 175, 55, 0.8), 0 0 6px rgba(212, 175, 55, 0.5);
    animation: twinkle 3s ease-in-out infinite;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.5);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ============================================
   HEADER NAVIGATION
   ============================================ */

.nav-left,
.nav-right {
    position: absolute;
    top: 25px;
    display: flex;
    gap: 16px;
    z-index: 100;
}

.nav-left {
    left: 30px;
}

.nav-right {
    right: 30px;
}

.nav-btn {
    font-family: var(--font-heading);
    color: #FFD700;
    background: rgba(23, 13, 48, 0.7);
    border: 1.5px solid rgba(255, 215, 0, 0.6);
    border-radius: 8px;
    padding: 8px 18px;
    font-size: 0.9rem;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 1.5px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3), inset 0 0 5px rgba(255, 215, 0, 0.1);
    position: relative;
    overflow: hidden;
    gap: 10px;
}

.nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(168, 85, 247, 0.15), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.nav-btn:hover {
    color: #a855f7 !important;
    border-color: #a855f7 !important;
    text-shadow:
        0 0 10px rgba(168, 85, 247, 0.8),
        0 0 20px rgba(168, 85, 247, 0.4) !important;
    box-shadow:
        0 5px 15px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(168, 85, 247, 0.5),
        0 0 40px rgba(168, 85, 247, 0.3),
        inset 0 0 15px rgba(168, 85, 247, 0.2) !important;
}

.nav-btn i {
    transition: transform 0.3s ease;
}

.nav-btn:hover i {
    transform: translateX(-5px);
}

.nav-btn:hover::before {
    opacity: 1;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

/* Hero */
.hero {
    text-align: center;
    padding: 30px 0 20px;
    /* Reduced top padding significantly (was 100px) */
    animation: fadeIn 1s ease-out;
}

.logo-subtitle-container {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    animation: fadeInScale 1.8s ease-out;
}

.subtitle-main {
    font-family: 'Aptos', 'Segoe UI', sans-serif;
    font-size: 1.3rem;
    color: var(--primary-gold);
    margin-bottom: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.subtitle-desc {
    font-family: var(--font-body);
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    margin: 0;
    margin-bottom: 50px;
}

/* Logo Styles - Official Asset Version */
.logo-row-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
    animation: fadeInScale 1.5s ease-out;
}

.plans-logo-img {
    height: calc(6rem + 5px);
    /* Igualado com a Home */
    width: auto;
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.4));
    display: block;
}

/* New Button Style (Transparent outline, Golden Hover) */
.btn-free-start {
    font-family: var(--font-heading);
    color: var(--primary-gold-hover);
    background: transparent;
    border: 1.5px solid #FFD700;
    border-radius: 8px;
    padding: 10px 24px;
    /* Larger padding than nav-btn */
    font-size: 0.9rem;
    /* Larger font */
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 1.5px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.2), inset 0 0 5px rgba(255, 215, 0, 0.1);
    width: 100%;
    /* Full width within container */
    margin-top: 15px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-free-start::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(255, 215, 0, 0.2), transparent 70%);
    /* Gold shine */
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.btn-free-start:hover {
    color: #FFD700;
    border-color: #FFD700;
    text-shadow: none;
    box-shadow: none;
}

.btn-free-start:hover::before {
    opacity: 1;
}

/* Plans Section */
.plans-section {
    padding: 40px 0 80px;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.plan-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: rgba(26, 22, 37, 0.6);
    border: 2px solid rgba(255, 215, 0, 0.4);
    /* Yellow Border matching Home */
    border-radius: 16px;
    padding: 40px 30px;
    position: relative;
    transition: all 0.3s ease;
    height: 100%;
}

.plan-card:hover {
    transform: translateY(-5px);
    border-color: #FFD700;
    /* Amarelo Ouro Sólido */
    box-shadow: none;
    /* Removido Brilho */
}

.plan-card.featured {
    background: rgba(26, 22, 37, 0.8);
}

.badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #7c3aed, #9333ea);
    color: #ffffff;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.plan-header {
    text-align: center;
    margin-bottom: 30px;
}

.plan-header h3 {
    font-family: var(--font-heading);
    font-size: 24px;
    color: var(--primary-gold);
    margin-bottom: 15px;
}

.plan-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
}

.currency {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
}

.price {
    font-size: 48px;
    font-weight: 700;
    color: #ffffff;
}

.period {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.5);
}

.plan-subtitle {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 5px;
    font-weight: 400;
}

/* New Features Structure */
.features {
    text-align: left;
    margin-top: 1rem;
    flex-grow: 1;
    /* Pushes content down to align footer/button */
}

.features h3 {
    font-size: 1.1rem;
    color: #ffd700;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    padding-bottom: 0.3rem;
}

.features ul {
    list-style: none;
    padding-left: 0;
}

.features li {
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.features li.excluded {
    opacity: 0.5;
    text-decoration: line-through;
    /* Optional: Strikethrough for excluded items */
}

/* Badge Popular */
.badge-popular {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);

    /* Estado Inicial: Cor que combina com o fundo para mascarar a borda do card */
    background: #170d30;
    color: #FFD700;
    border: 1px solid #FFD700;

    padding: 6px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    width: max-content;

    text-shadow: none;
    box-shadow: none;
    z-index: 2;
    transition: all 0.3s ease;
}

/* Hover no Card Premium altera o selo popular */
.plan-card:hover .badge-popular {
    background: #FFD700;
    color: #000000;
}


/* ============================================
   FOOTER
   ============================================ */

.hypper-footer {
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px 0;
    text-align: center;
    width: 100%;
    margin-top: 50px;
    /* Separar do container de planos */
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.footer-developed {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Aptos', 'Segoe UI', sans-serif;
}

.footer-text {
    font-size: 0.8rem;
    opacity: 0.5;
    color: #fff;
    margin: 0;
}

.hypper-logo {
    height: 48px;
    width: auto;
    opacity: 0.8;
}


/* Responsive Grid adjustment */
/* Responsive Grid adjustment */
@media (max-width: 992px) {
    .plans-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .plans-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
}

/* ============================================
   BILLING TOGGLE & BENEFITS
   ============================================ */
.billing-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 50px;
}

.billing-toggle-container {
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: var(--font-body);
}

.toggle-label {
    font-size: 1rem;
    font-weight: 500;
    color: white;
}

.toggle-label.active {
    color: white;
}

/* Custom "Annual" active logic will be handled via JS toggling a class on the container or label directly. 
   Default state is Monthly Active. 
*/

.annual-group {
    display: flex;
    flex-direction: row;
    /* Badge NEXT to text */
    align-items: center;
    gap: 8px;
    /* Space between text and badge */
    position: relative;
}

/* Badge Styling */
.discount-badge {
    position: relative;
    top: auto;
    white-space: nowrap;

    /* Mensal State (Gold Border + Gold Text) */
    background: transparent;
    color: #FFD700;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    border: 1px solid #FFD700;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.discount-badge.solid-gold {
    /* Anual State (Gold Background + Black Text) */
    background: #FFD700;
    color: #000000;
    border-color: #FFD700;
}

#label-annual.active {
    color: white;
    /* Remains white */
    opacity: 1;
}

/* Switch Styling */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
    margin: 0 10px;
    /* Spacing */
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: .4s;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
}

input:checked+.slider {
    background-color: #FFD700;
    /* Amarelo Ouro Sólido */
    border-color: #FFD700;
}

input:checked+.slider:before {
    transform: translateX(22px);
    background-color: white;
    /* Knob branco para contraste */
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Benefits List */
.benefits-list {
    display: flex;
    gap: 30px;
    list-style: none;
    padding: 0;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 10px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 4px;
    color: white;
    /* Pure white */
    font-size: 1rem;
    /* Reduced from 1.1rem as requested (-1 point approx) */
}

.check-icon {
    width: 20px;
    height: 20px;
}

/* Card Icons */
.card-icon-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 10px;
    /* Centered */
    width: 60px;
    /* Match Home */
    height: 60px;
    /* Match Home */
    background: rgba(255, 215, 0, 0.2);
    /* Sphere BG */
    border-radius: 50%;
    transition: all 0.3s ease;
}

/* Fix syntax error and ensure proper closing */
.plan-icon-svg {
    width: 32px;
    /* Match Home */
    height: 32px;
    /* Match Home */
    filter: none;
    /* Remove previous shadow */
    stroke: var(--primary-gold-hover);
}

.plan-header h2 {
    margin-top: 15px;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary-gold-hover);
    /* Match Home Gold */
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0px;
}

/* ============================================
   COMPARISON TABLE
   ============================================ */

.comparison-section {
    max-width: 1000px;
    margin: 80px auto;
    padding: 0 20px;
}

.comparison-title {
    text-align: center;
    font-family: var(--font-heading);
    color: var(--primary-gold-hover);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.comparison-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.table-responsive {
    overflow-x: auto;
    background: rgba(26, 22, 37, 0.6);
    border: 1px solid rgba(167, 139, 250, 0.2);
    border-radius: 16px;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
    /* Ensure scroll on mobile */
}

.comparison-table th,
.comparison-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 0.95rem;
}

.comparison-table th {
    /* Sticky Header if desired, but simple for now */
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
    padding-bottom: 20px;
    vertical-align: bottom;
}

.feature-header {
    font-family: var(--font-heading);
    color: var(--primary-gold-hover);
    font-size: 1.1rem;
    width: 30%;
}

.plan-header-cell {
    text-align: center;
    width: 23%;
}

.plan-name {
    display: block;
    font-family: var(--font-heading);
    color: var(--primary-gold-hover);
    font-size: 1.7rem;
    /* Standardized size */
    margin-bottom: 5px;
}

.section-row td {
    background: rgba(255, 215, 0, 0.05);
    font-family: var(--font-heading);
    color: var(--primary-gold-hover);
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding-top: 25px;
    padding-bottom: 10px;
    border-bottom: none;
}

.comparison-table td:not(:first-child) {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
}


.check-icon-gold {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: var(--primary-gold-hover);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    display: inline-block;
    vertical-align: middle;
}

.dash-cell {
    font-weight: 700;
    color: rgba(255, 255, 255, 0.3) !important;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table tr:hover td:not(.section-row td) {
    background: rgba(255, 255, 255, 0.02);
}