/* Plans / Pricing Section - "Escolha o seu acesso ao cofre" */

.plans-section {
    background-color: var(--bg-primary, #0A0A0A);
    padding: 80px 20px 90px;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-primary, #FFFFFF);
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    scroll-margin-top: 70px;
}

.plans-container {
    max-width: 1140px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Faint background watermark text "COFRE" */
.plans-watermark {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: clamp(80px, 14vw, 160px);
    font-weight: 900;
    color: rgba(255, 255, 255, 0.018);
    letter-spacing: 16px;
    pointer-events: none;
    user-select: none;
    z-index: 0;
    font-family: 'Inter', system-ui, sans-serif;
    text-transform: uppercase;
}

/* Header */
.plans-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 52px;
    position: relative;
    z-index: 1;
}

.plans-title {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: -0.5px;
    margin-bottom: 10px;
    line-height: 1.25;
}

.plans-subtitle {
    font-size: 14.5px;
    color: #8E8E98;
    font-weight: 400;
    line-height: 1.5;
}

/* Top Plan Switcher Tabs (Matches user reference mockup) */
.plans-tabs-wrap {
    display: none; /* Hidden on desktop to match exact Image 1 design */
    justify-content: center;
    margin-bottom: 28px;
    position: relative;
    z-index: 2;
}

.plans-tabs {
    display: inline-flex;
    align-items: center;
    background: rgba(18, 19, 24, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    padding: 5px 6px;
    gap: 6px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.plan-tab-btn {
    background: transparent;
    border: none;
    color: #8E8E98;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    outline: none;
}

.plan-tab-btn:hover {
    color: #FFFFFF;
}

.plan-tab-btn.active {
    background: linear-gradient(135deg, #FFB82E 0%, #F59E0B 50%, #D97706 100%);
    color: #000000;
    font-weight: 800;
    box-shadow: 0 4px 18px rgba(245, 158, 11, 0.45);
}

.plan-tab-btn.active i {
    color: #000000;
}

/* Slider / Carousel Wrapper */
.plans-slider-wrapper {
    position: relative;
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.plans-slider-track {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
    transition: transform 0.3s ease;
}

/* Navigation Arrow Buttons */
.plans-slider-arrow {
    display: none; /* Visible on mobile & touch slider */
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(18, 19, 24, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 170, 0, 0.4);
    color: #FFAA00;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7), 0 0 14px rgba(255, 42, 85, 0.2);
    transition: all 0.22s ease;
    outline: none;
    font-size: 15px;
}

.plans-slider-arrow:hover {
    background: linear-gradient(135deg, #FF2A55 0%, #FFAA00 100%);
    color: #FFFFFF;
    border-color: transparent;
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 8px 25px rgba(255, 42, 85, 0.6);
}

.plans-slider-arrow.prev {
    left: -22px;
}

.plans-slider-arrow.next {
    right: -22px;
}

/* Base Card */
.plan-card {
    background: #0F1013;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 34px 28px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    box-sizing: border-box;
}

.plan-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

/* Featured Center Card */
.plan-card.featured {
    background: #111317;
    border: 1.5px solid rgba(255, 184, 46, 0.75);
    box-shadow: 0 0 32px rgba(255, 184, 46, 0.22), 0 20px 45px rgba(0, 0, 0, 0.65);
    padding: 26px 28px 34px;
}

.plan-card.featured:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 184, 46, 0.95);
    box-shadow: 0 0 42px rgba(255, 184, 46, 0.35), 0 24px 50px rgba(0, 0, 0, 0.75);
}

/* Top "MAIS POPULARES" Badge (Matches Image 1) */
.plan-badge-popular {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 184, 46, 0.5);
    background: rgba(255, 184, 46, 0.08);
    color: #FFB82E;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    align-self: flex-start;
    box-shadow: 0 2px 10px rgba(255, 184, 46, 0.12);
}

.plan-badge-popular i {
    font-size: 11px;
    color: #FFB82E;
}

/* Master Badge for Card 3 (Matches reference) */
.plan-badge-master {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
    color: #E4E4E7;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    margin-bottom: 12px;
    align-self: flex-start;
}

.plan-badge-master i {
    font-size: 10.5px;
    color: #A1A1AA;
}

/* Plan Labels & Titles */
.plan-sublabel {
    font-size: 13.5px;
    font-weight: 600;
    color: #8E8E98;
    margin-bottom: 8px;
}

/* Plan Pricing Row (Matches first reference image) */
.plan-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 20px;
}

.plan-old-price {
    color: #FF3B5C;
    font-size: 18px;
    font-weight: 700;
    text-decoration: line-through;
    opacity: 0.9;
    letter-spacing: -0.3px;
}

.plan-current-price {
    color: #FFFFFF;
    font-size: 42px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -1.5px;
    display: inline-flex;
    align-items: baseline;
}

.plan-price-period {
    color: #8E8E98;
    font-size: 14px;
    font-weight: 500;
    margin-left: 2px;
}

.plan-main-title {
    font-size: 20px;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: -0.3px;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.plan-main-title.golden-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 170, 0, 0.45);
    border-radius: 8px;
    padding: 6px 14px;
    margin-bottom: 22px;
    background: rgba(255, 170, 0, 0.05);
    width: fit-content;
    color: #FFAA00;
}

.plan-main-title.golden-title i {
    font-size: 16px;
    color: #FFAA00;
}

/* Bottom Pagination Dots (Matches user reference mockup) */
.plans-dots {
    display: none; /* Hidden on desktop to match exact Image 1 design */
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 22px;
    margin-bottom: 12px;
    position: relative;
    z-index: 2;
}

.plan-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #33363F;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.plan-dot:hover {
    background: #666A78;
}

.plan-dot.active {
    width: 26px;
    height: 8px;
    border-radius: 999px;
    background: #FFAA00;
    box-shadow: 0 0 12px rgba(255, 170, 0, 0.55);
}

/* Buttons */
.plan-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 13px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    box-sizing: border-box;
}

.plan-btn.outline-btn {
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.03);
    color: #FFFFFF;
}

.plan-btn.outline-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
}

.plan-btn.solid-gold-btn {
    background: #FFB82E;
    background: linear-gradient(135deg, #FFB82E 0%, #F59E0B 100%);
    color: #0E0F12;
    font-weight: 800;
    font-size: 14.5px;
    border: none;
    box-shadow: 0 4px 18px rgba(245, 158, 11, 0.35);
}

.plan-btn.solid-gold-btn:hover {
    background: linear-gradient(135deg, #FFC147 0%, #FFA81B 100%);
    box-shadow: 0 6px 24px rgba(245, 158, 11, 0.5);
    transform: translateY(-1px);
}

/* Discrete Notice */
.plan-discrete-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 11px;
    color: #8E8E98;
    margin: 16px 0 24px;
    text-align: center;
}

.plan-discrete-notice i {
    color: #10B981;
    font-size: 11px;
}

/* Feature List */
.plan-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 13px;
    flex-grow: 1;
}

.plan-features li {
    font-size: 13px;
    color: #D4D4D8;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.plan-features li i {
    color: #FFFFFF;
    font-size: 11px;
    margin-top: 3px;
    flex-shrink: 0;
}

.plan-card.featured .plan-features li i {
    color: #FFAA00;
}

/* Payment Accepted Section Below Cards */
.plans-payment-footer {
    text-align: center;
    margin-top: 56px;
}

.plans-payment-title {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #71717A;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.plans-payment-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.payment-logo-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    color: #111111;
    border-radius: 4px;
    padding: 4px 10px;
    font-weight: 800;
    font-size: 11px;
    height: 26px;
    box-sizing: border-box;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.payment-logo-badge.badge-visa {
    font-family: sans-serif;
    font-weight: 900;
    font-style: italic;
    color: #1A1F71;
    font-size: 13px;
    letter-spacing: -0.5px;
}

.payment-logo-badge.badge-mastercard {
    background: #222226;
    padding: 4px 8px;
}

.payment-logo-badge.badge-mastercard .mc-circle {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
}

.payment-logo-badge.badge-mastercard .mc-red {
    background: #EB001B;
    margin-right: -6px;
}

.payment-logo-badge.badge-mastercard .mc-yellow {
    background: #F79E1B;
}

.payment-logo-badge.badge-amex {
    background: #006FCF;
    color: #FFFFFF;
    font-size: 10px;
    letter-spacing: 0.5px;
}

.payment-logo-badge.badge-discover {
    background: #FF6000;
    color: #FFFFFF;
    font-size: 9.5px;
}

.payment-logo-badge.badge-paypal {
    color: #003087;
    font-style: italic;
    font-weight: 900;
    font-size: 12px;
}

.payment-logo-badge.badge-apple {
    background: #000000;
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 11px;
    gap: 4px;
}

.payment-logo-badge.badge-gpay {
    background: #000000;
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 11px;
    gap: 4px;
}

/* Responsive — Mobile & Tablet Carousel (Side by Side) */
@media (max-width: 960px) {
    .plans-tabs-wrap {
        display: flex;
    }

    .plans-dots {
        display: flex;
    }

    .plans-section {
        padding: 50px 14px 60px;
    }

    .plans-header {
        margin-bottom: 24px;
    }

    .plans-slider-wrapper {
        overflow: visible;
        padding: 0;
        margin: 0 auto;
    }

    /* Cards side by side horizontally — NOT stacked! */
    .plans-slider-track {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 16px;
        padding: 10px 16px 20px;
        margin: 0 -14px;
        width: calc(100% + 28px);
        box-sizing: border-box;
    }

    .plans-slider-track::-webkit-scrollbar {
        display: none;
    }

    .plan-card {
        flex: 0 0 86%;
        max-width: 350px;
        min-width: 290px;
        scroll-snap-align: center;
        scroll-snap-stop: always;
        margin: 0 auto;
        padding: 28px 22px;
    }

    .plan-card.featured {
        padding: 24px 22px 30px;
    }

    /* Arrows on mobile */
    .plans-slider-arrow {
        display: flex;
        width: 38px;
        height: 38px;
        font-size: 13px;
    }

    .plans-slider-arrow.prev {
        left: 2px;
    }

    .plans-slider-arrow.next {
        right: 2px;
    }
}

@media (max-width: 480px) {
    .plan-tab-btn {
        padding: 7px 12px;
        font-size: 12px;
    }

    .plan-card {
        flex: 0 0 88%;
        min-width: 275px;
        padding: 24px 18px;
    }

    .plan-main-title {
        font-size: 18px;
    }
}
