/* ============================================
   TodoSign - Plans & Pricing Page
   Editorial Luxury Design System
   ============================================ */

@import url('theme.css');

/* ==================== TYPOGRAPHY ==================== */
.main-content {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Header styles moved to /css/header.css (Floating Glass Header) */

.hero-title,
.plan-name,
.faq-title,
.history-title {
    font-family: 'Sora', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ==================== BASE STYLES ==================== */
.container {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 1.5rem 2.5rem 2.5rem;
    overflow-y: auto;
    font-family: var(--font-body);
}

/* ==================== FLOATING SHAPES ==================== */
.floating-shapes {
    position: fixed;
    top: 0;
    left: var(--sidebar-width);
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s ease-in-out infinite;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: rgba(6, 182, 212, 0.15);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: rgba(99, 102, 241, 0.1);
    bottom: 20%;
    left: 10%;
    animation-delay: -7s;
}

.shape-3 {
    width: 250px;
    height: 250px;
    background: rgba(6, 182, 212, 0.12);
    top: 50%;
    right: 20%;
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(20px, 10px) scale(1.02); }
}

[data-theme="light"] .shape {
    opacity: 0.25;
}

/* ==================== HERO SECTION ==================== */
.plans-hero {
    position: relative;
    z-index: 10;
    padding: 3.5rem 3rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-content {
    max-width: 700px;
}

/* Eyebrow */
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.5rem;
    animation: fadeSlideUp 0.6s ease-out;
}

.eyebrow-line {
    width: 32px;
    height: 2px;
    background: var(--blue-accent);
}

.eyebrow-text {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--blue-accent);
}

/* Title */
.hero-title {
    margin: 0 0 1.25rem;
    animation: fadeSlideUp 0.6s ease-out 0.1s both;
    overflow: visible;
}

.title-line {
    display: block;
    font-size: clamp(2.25rem, 4.5vw, 3.25rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--white);
    letter-spacing: -0.025em;
}

.title-line-2 em {
    font-style: italic;
    font-weight: 500;
    background: linear-gradient(135deg, var(--blue-accent) 0%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding-right: 0.1em;
    letter-spacing: 0.02em;
}

[data-theme="light"] .title-line {
    color: #0f172a;
}

/* Subtitle */
.hero-subtitle {
    font-size: 1.05rem;
    color: var(--gray-medium);
    line-height: 1.6;
    margin: 0;
    animation: fadeSlideUp 0.6s ease-out 0.2s both;
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== BILLING ROW ==================== */
.billing-row {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2.5rem;
    animation: fadeSlideUp 0.6s ease-out 0.3s both;
    width: 100%;
    max-width: 1000px;
    padding: 0 2rem;
    position: relative;
}

.billing-spacer {
    flex: 1;
    min-width: 200px;
}

.billing-control {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

/* ==================== PAYMENT SELECTOR - Glassmorphic ==================== */
.payment-selector-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    position: relative;
    z-index: 50;
    margin-left: auto;
}

.payment-selector-label {
    font-size: 0.65rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--gray-medium);
    opacity: 0.6;
    padding-right: 4px;
}

.payment-dropdown-wrapper {
    position: relative;
}

.payment-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 180px;
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.payment-dropdown-trigger:hover {
    border-color: rgba(6, 182, 212, 0.4);
    background: rgba(6, 182, 212, 0.08);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(6, 182, 212, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .payment-dropdown-trigger {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 0, 0, 0.06);
    color: #0f172a;
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .payment-dropdown-trigger:hover {
    border-color: rgba(6, 182, 212, 0.3);
    background: rgba(255, 255, 255, 0.9);
}

.payment-dropdown-trigger i:first-child {
    font-size: 0.95rem;
    color: var(--blue-accent);
    opacity: 0.9;
}

.payment-dropdown-trigger #paymentLabel {
    flex: 1;
    text-align: left;
}

.dropdown-arrow {
    font-size: 0.55rem;
    color: var(--gray-medium);
    transition: all 0.3s ease;
    opacity: 0.6;
}

.payment-dropdown-wrapper.open .dropdown-arrow {
    transform: rotate(180deg);
    opacity: 1;
}

.payment-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 240px;
    background: rgba(30, 41, 59, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.98);
    transform-origin: top right;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
    box-shadow:
        0 24px 64px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

[data-theme="light"] .payment-dropdown {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow:
        0 24px 64px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.8) inset;
}

.payment-dropdown-wrapper.open .payment-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.payment-dropdown-item {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 14px 16px;
    background: transparent;
    border: none;
    border-radius: 12px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-medium);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.payment-dropdown-item:hover {
    background: rgba(6, 182, 212, 0.1);
    color: var(--white);
}

[data-theme="light"] .payment-dropdown-item:hover {
    background: rgba(6, 182, 212, 0.08);
    color: #0f172a;
}

.payment-dropdown-item i:first-child {
    width: 22px;
    font-size: 1rem;
    color: var(--gray-medium);
    transition: all 0.2s ease;
}

.payment-dropdown-item:hover i:first-child {
    color: var(--blue-accent);
}

.payment-dropdown-item span {
    flex: 1;
}

.payment-dropdown-item .check-icon {
    opacity: 0;
    color: var(--blue-accent);
    font-size: 0.75rem;
    transition: all 0.2s ease;
    transform: scale(0.8);
}

.payment-dropdown-item.active {
    color: var(--white);
    background: rgba(6, 182, 212, 0.15);
}

[data-theme="light"] .payment-dropdown-item.active {
    color: #0f172a;
    background: rgba(6, 182, 212, 0.12);
}

.payment-dropdown-item.active i:first-child {
    color: var(--blue-accent);
}

.payment-dropdown-item.active .check-icon {
    opacity: 1;
    transform: scale(1);
}

/* ==================== BILLING TOGGLE - Premium Switch ==================== */
.billing-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 60px;
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

[data-theme="light"] .billing-toggle {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* Labels on sides */
.toggle-label {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-medium);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    user-select: none;
}

.toggle-label:hover {
    color: var(--white);
}

[data-theme="light"] .toggle-label:hover {
    color: #334155;
}

.toggle-label.active {
    color: var(--white);
    font-weight: 600;
}

[data-theme="light"] .toggle-label.active {
    color: #0f172a;
}

/* Annual label - highlighted */
.toggle-label[data-period="annual"] {
    color: var(--blue-accent);
    font-weight: 600;
}

.toggle-label[data-period="annual"].active {
    color: var(--blue-accent);
}

/* Switch container */
.toggle-switch {
    position: relative;
    width: 52px;
    height: 28px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.35s ease;
    padding: 0;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle-switch:hover {
    border-color: rgba(6, 182, 212, 0.4);
    background: rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .toggle-switch {
    background: rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .toggle-switch:hover {
    background: rgba(0, 0, 0, 0.08);
}

/* Switch knob */
.toggle-knob {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 4px;
    width: 20px;
    height: 20px;
    background: var(--gray-medium);
    border-radius: 50%;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* When Annual is active (default) - knob on the right, blue gradient */
.billing-toggle[data-active="annual"] .toggle-switch {
    background: rgba(6, 182, 212, 0.15);
    border-color: rgba(6, 182, 212, 0.3);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .billing-toggle[data-active="annual"] .toggle-switch {
    background: rgba(6, 182, 212, 0.12);
    border-color: rgba(6, 182, 212, 0.25);
}

.billing-toggle[data-active="annual"] .toggle-knob {
    left: calc(100% - 24px);
    transform: translateY(-50%);
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 2px 8px rgba(6, 182, 212, 0.4);
}

[data-theme="light"] .billing-toggle[data-active="annual"] .toggle-knob {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    box-shadow: 0 2px 6px rgba(6, 182, 212, 0.35);
}

/* When Monthly is active - knob on the left */
.billing-toggle[data-active="monthly"] .toggle-switch {
    background: rgba(255, 255, 255, 0.08);
}

.billing-toggle[data-active="monthly"] .toggle-knob {
    left: 4px;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .billing-toggle[data-active="monthly"] .toggle-knob {
    background: linear-gradient(135deg, #334155 0%, #1e293b 100%);
}

/* Save badge - more prominent */
.save-badge {
    padding: 4px 10px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(16, 185, 129, 0.1) 100%);
    color: #10b981;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* ==================== PRICING SECTION ==================== */
.pricing-section {
    position: relative;
    z-index: 1;
    padding: 1.5rem 2rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Ensure dropdown stays above pricing cards */
.plans-hero .payment-dropdown-wrapper {
    z-index: 100;
}

.plans-hero .payment-dropdown {
    z-index: 9999;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: stretch;
}

/* ==================== PLAN CARD ==================== */
.plan-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: visible;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: cardReveal 0.6s ease-out both;
    margin-top: 1rem;
}

.plan-card:nth-child(1) { animation-delay: 0.15s; }
.plan-card:nth-child(2) { animation-delay: 0.25s; }
.plan-card:nth-child(3) { animation-delay: 0.35s; }

@keyframes cardReveal {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.plan-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .plan-card {
    border: 1px solid var(--glass-border);
}

[data-theme="light"] .plan-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(6, 182, 212, 0.3);
}

.card-inner {
    padding: 1.75rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Plan Header */
.plan-header {
    text-align: center;
    margin-bottom: 1.25rem;
}

.plan-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 0.75rem;
    background: var(--navy-medium);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--blue-accent);
    transition: all 0.3s ease;
}

.plan-card:hover .plan-icon {
    background: rgba(6, 182, 212, 0.15);
    border-color: rgba(6, 182, 212, 0.3);
    transform: scale(1.05);
}

.plan-name {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--white);
    margin: 0 0 0.25rem;
}

[data-theme="light"] .plan-name {
    color: #0f172a;
}

.plan-tagline {
    font-size: 0.85rem;
    color: var(--gray-medium);
    margin: 0;
}

/* Plan Pricing */
.plan-pricing {
    text-align: center;
    padding: 1.25rem 0;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 1.25rem;
}

.price-container {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.currency {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-medium);
    margin-top: 6px;
}

.price-value {
    font-family: 'Sora', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
    letter-spacing: -0.02em;
}

[data-theme="light"] .price-value {
    color: #0f172a;
}

.price-period {
    font-size: 0.95rem;
    color: var(--gray-medium);
    align-self: flex-end;
    margin-bottom: 8px;
}

.price-note {
    font-size: 0.8rem;
    color: var(--gray-medium);
    margin: 0.5rem 0 0;
}

/* Plan Features */
.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    flex: 1;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--gray-medium);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

[data-theme="light"] .feature-item {
    border-bottom-color: rgba(0, 0, 0, 0.05);
}

.feature-item:last-child {
    border-bottom: none;
}

.feature-item strong {
    color: var(--white);
    font-weight: 600;
}

[data-theme="light"] .feature-item strong {
    color: #0f172a;
}

.feature-icon {
    width: 22px;
    height: 22px;
    background: rgba(16, 185, 129, 0.12);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon i {
    font-size: 0.65rem;
    color: #10b981;
}

.feature-icon.gold {
    background: rgba(245, 158, 11, 0.15);
}

.feature-icon.gold i {
    color: #f59e0b;
}

/* Plan CTA Button */
.plan-cta {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto;
}

.plan-cta i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.plan-cta:hover i {
    transform: translateX(4px);
}

.plan-cta.gold {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border: none;
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.plan-cta.gold:hover {
    box-shadow: 0 6px 25px rgba(245, 158, 11, 0.4);
    transform: translateY(-2px);
}

/* ==================== POPULAR CARD ==================== */
.plan-card.popular {
    border: 1px solid var(--blue-accent);
    transform: scale(1.02);
    z-index: 2;
}

.plan-card.popular:hover {
    transform: scale(1.02) translateY(-8px);
    box-shadow: 0 0 40px var(--blue-glow);
}

.popular-ribbon {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    background: var(--primary-gradient);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 15px var(--blue-glow);
    white-space: nowrap;
}

.popular-ribbon i {
    font-size: 0.75rem;
}

.plan-card.popular .plan-icon {
    background: rgba(6, 182, 212, 0.15);
    border-color: rgba(6, 182, 212, 0.3);
    color: var(--blue-accent);
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(180deg, rgba(6, 182, 212, 0.08) 0%, transparent 100%);
    pointer-events: none;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

/* ==================== PREMIUM CARD ==================== */
.plan-card.premium:hover {
    border-color: rgba(245, 158, 11, 0.4);
    box-shadow: 0 0 40px rgba(245, 158, 11, 0.2);
}

.premium-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { box-shadow: 0 0 15px rgba(245, 158, 11, 0.3); }
    50% { box-shadow: 0 0 30px rgba(245, 158, 11, 0.5); }
}

.premium-badge i {
    font-size: 0.9rem;
    color: #1a1a24;
}

.plan-card.premium .plan-icon {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.plan-card.premium:hover .plan-icon {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.4);
}

.premium-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.04) 0%, transparent 100%);
    pointer-events: none;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

/* Premium + Popular Combined */
.plan-card.premium.popular {
    border: 2px solid #f59e0b;
    transform: scale(1.04);
    z-index: 3;
}

.plan-card.premium.popular:hover {
    transform: scale(1.04) translateY(-8px);
    box-shadow: 0 0 50px rgba(245, 158, 11, 0.35);
}

.premium-ribbon {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4) !important;
    animation: premium-pulse 2s ease-in-out infinite;
}

@keyframes premium-pulse {
    0%, 100% { transform: translateX(-50%) translateY(-50%) scale(1); }
    50% { transform: translateX(-50%) translateY(-50%) scale(1.05); }
}

/* Current Plan Badge */
.current-plan-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
    z-index: 5;
}

.current-plan-badge i {
    font-size: 0.7rem;
}

.plan-card.current-plan {
    border: 2px solid #10b981;
}

.plan-card.current-plan .plan-cta {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    cursor: default;
    pointer-events: none;
}

.plan-card.current-plan .plan-cta span::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 8px;
}

.plan-card.current-plan .plan-cta i {
    display: none;
}

.feature-item.highlight {
    background: rgba(245, 158, 11, 0.05);
    margin: 0 -0.75rem;
    padding: 8px 0.75rem;
    border-radius: 6px;
}


/* ==================== FAQ SECTION ==================== */
.faq-section {
    position: relative;
    z-index: 1;
    padding: 2rem;
    max-width: 900px;
    margin: 0 auto;
    animation: fadeSlideUp 0.6s ease-out 0.6s both;
}

.faq-header {
    text-align: center;
    margin-bottom: 2rem;
}

.faq-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.75rem;
}

.label-line {
    width: 24px;
    height: 2px;
    background: var(--blue-accent);
}

.faq-label span:last-child {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--blue-accent);
}

.faq-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--white);
    margin: 0;
    letter-spacing: -0.02em;
}

[data-theme="light"] .faq-title {
    color: #0f172a;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.faq-item {
    border-bottom: 1px solid var(--glass-border);
}

.faq-item:first-child {
    border-top: 1px solid var(--glass-border);
}

.faq-trigger {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
}

.faq-question-text {
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    transition: color 0.2s ease;
}

[data-theme="light"] .faq-question-text {
    color: #0f172a;
}

.faq-trigger:hover .faq-question-text {
    color: var(--blue-accent);
}

.faq-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--navy-medium);
    border-radius: 50%;
    transition: all 0.3s ease;
}

[data-theme="light"] .faq-icon {
    background: rgba(241, 245, 249, 0.8);
}

.faq-icon i {
    font-size: 0.7rem;
    color: var(--gray-medium);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    background: var(--blue-accent);
}

.faq-item.active .faq-icon i {
    color: #ffffff;
    transform: rotate(45deg);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-content {
    max-height: 200px;
}

.faq-content p {
    padding: 0 0 1.25rem;
    margin: 0;
    font-size: 0.95rem;
    color: var(--gray-medium);
    line-height: 1.7;
}

/* ==================== HISTORY SECTION ==================== */
.history-section {
    position: relative;
    z-index: 1;
    padding: 2rem;
    max-width: 900px;
    margin: 0 auto;
    animation: fadeSlideUp 0.6s ease-out 0.5s both;
}

.history-header {
    margin-bottom: 1.5rem;
}

.history-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    margin: 0;
    text-align: center;
}

[data-theme="light"] .history-title {
    color: #0f172a;
}

.history-empty {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
}

.empty-visual {
    margin-bottom: 1rem;
}

.empty-circle {
    width: 64px;
    height: 64px;
    margin: 0 auto;
    background: var(--navy-medium);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

[data-theme="light"] .empty-circle {
    background: rgba(241, 245, 249, 0.8);
}

.empty-circle i {
    font-size: 1.5rem;
    color: var(--gray-medium);
}

.empty-text {
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    margin: 0 0 0.25rem;
}

[data-theme="light"] .empty-text {
    color: #0f172a;
}

.empty-hint {
    font-size: 0.85rem;
    color: var(--gray-medium);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .main-content {
        margin-left: 0;
    }

    .floating-shapes {
        left: 0;
    }

    .pricing-cards {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .plan-card.popular {
        transform: none;
        order: -1;
    }

    .plan-card.popular:hover {
        transform: translateY(-8px);
    }
}

@media (max-width: 768px) {
    .plans-hero {
        padding: 2.5rem 1.5rem 1.5rem;
    }

    .title-line {
        font-size: 1.75rem;
    }

    .billing-row {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }

    .billing-spacer {
        display: none;
    }

    .billing-control {
        position: relative;
        left: auto;
        transform: none;
    }

    .payment-selector-wrapper {
        align-items: center;
        order: 2;
        margin-left: 0;
    }

    .billing-toggle {
        justify-content: center;
    }

    .pricing-section,
    .faq-section,
    .history-section {
        padding: 1.5rem;
    }

    .faq-title {
        font-size: 1.4rem;
    }
}

/* ==================== BUTTON STYLES (OVERRIDE) ==================== */
.btn-outline {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--white);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--blue-accent);
}

[data-theme="light"] .btn-outline {
    color: #0f172a;
}

[data-theme="light"] .btn-outline:hover {
    background: rgba(6, 182, 212, 0.08);
}

.btn-primary {
    background: var(--primary-gradient);
    border: none;
    color: #ffffff;
    box-shadow: 0 4px 15px var(--blue-glow);
}

.btn-primary:hover {
    box-shadow: 0 6px 25px var(--blue-glow);
    transform: translateY(-2px);
}

/* Plan-specific CTA buttons */
.btn-basic,
.btn-starter {
    background: linear-gradient(135deg, #22d3ee 0%, #818cf8 100%);
    border: none;
    color: #ffffff;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(34, 211, 238, 0.3);
}

.btn-basic:hover,
.btn-starter:hover {
    box-shadow: 0 6px 25px rgba(34, 211, 238, 0.4);
    transform: translateY(-2px);
}

.btn-premium {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border: none;
    color: #ffffff;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-premium:hover {
    box-shadow: 0 6px 25px rgba(245, 158, 11, 0.4);
    transform: translateY(-2px);
}

/* ==================== CHECKOUT MODAL ==================== */
.checkout-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.checkout-modal.active {
    opacity: 1;
    visibility: visible;
}

.checkout-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
}

.checkout-modal-content {
    position: relative;
    width: 90%;
    max-width: 420px;
    padding: 2rem;
    border-radius: 20px;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
}

.checkout-modal.active .checkout-modal-content {
    transform: scale(1) translateY(0);
}

.checkout-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.checkout-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.checkout-modal-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.checkout-modal-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: white;
}

.checkout-modal-icon.success {
    background: linear-gradient(135deg, #10b981, #059669);
}

.checkout-modal-icon.pix {
    background: linear-gradient(135deg, #00b4a0, #008b7d);
}

.checkout-modal-icon.boleto {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
}

.checkout-modal-icon.animate-success {
    animation: successPulse 0.6s ease;
}

@keyframes successPulse {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.checkout-modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.checkout-modal-header p {
    color: var(--gray-medium);
    font-size: 0.9rem;
}

.checkout-modal-body {
    margin-bottom: 1.5rem;
}

.checkout-modal-body .form-group {
    margin-bottom: 1rem;
}

.checkout-modal-body .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--white);
    font-weight: 500;
    font-size: 0.9rem;
}

.checkout-modal-body .form-group input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s ease;
}

.checkout-modal-body .form-group input:focus {
    outline: none;
    border-color: var(--blue-accent);
    background: rgba(255, 255, 255, 0.08);
}

.checkout-modal-body .form-group input::placeholder {
    color: var(--gray-medium);
}

.checkout-modal-actions {
    display: flex;
    gap: 0.75rem;
}

.checkout-modal-actions button,
.checkout-modal-actions a {
    flex: 1;
    padding: 0.875rem 1.25rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

.checkout-modal-actions .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    color: var(--white);
}

.checkout-modal-actions .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.checkout-modal-actions .btn-primary {
    background: var(--primary-gradient);
    border: none;
    color: white;
}

.checkout-modal-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--blue-glow);
}

.checkout-modal-actions .btn-primary.full-width {
    width: 100%;
}

/* PIX Modal Styles */
.pix-modal .checkout-modal-content {
    max-width: 380px;
}

.pix-qr-container {
    background: white;
    padding: 1rem;
    border-radius: 16px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pix-qr-image {
    width: 200px;
    height: 200px;
}

.pix-value {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: rgba(0, 180, 160, 0.1);
    border-radius: 10px;
}

.pix-value .label {
    color: var(--gray-medium);
    font-size: 0.9rem;
}

.pix-value .value {
    color: #00b4a0;
    font-size: 1.25rem;
    font-weight: 700;
}

.pix-code-container {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.pix-code-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    font-size: 0.75rem;
    font-family: monospace;
}

.btn-copy {
    padding: 0.75rem 1rem;
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-copy:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--blue-accent);
}

.pix-expiration {
    text-align: center;
    color: var(--gray-medium);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.pix-expiration i {
    color: #f59e0b;
}

/* Boleto Modal Styles */
.boleto-value {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 12px;
}

.boleto-value .label {
    color: var(--gray-medium);
    font-size: 0.9rem;
}

.boleto-value .value {
    color: #818cf8;
    font-size: 1.5rem;
    font-weight: 700;
}

.boleto-info {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin-bottom: 1rem;
}

.boleto-info p {
    color: var(--gray-medium);
    font-size: 0.85rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 0;
}

.boleto-info i {
    color: var(--blue-accent);
    margin-top: 2px;
}

.checkout-info {
    color: var(--gray-medium);
    font-size: 0.9rem;
    text-align: center;
    line-height: 1.6;
}

.success-message {
    color: var(--gray-medium);
    font-size: 0.95rem;
    text-align: center;
    line-height: 1.6;
}

/* Toast Notification */
.toast-notification {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: var(--white);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.toast-notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast-notification.toast-success i {
    color: #10b981;
}

.toast-notification.toast-error i {
    color: #ef4444;
}

.toast-notification.toast-info i {
    color: var(--blue-accent);
}

/* History List Styles */
.history-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-radius: 12px;
}

.history-item-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.history-date {
    font-size: 0.75rem;
    color: var(--gray-medium);
}

.history-description {
    font-size: 0.9rem;
    color: var(--white);
    font-weight: 500;
}

.history-item-details {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.history-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
}

.history-status {
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: capitalize;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
}

.history-status.status-pending {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.history-status.status-success {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.history-status.status-danger {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.history-status.status-warning {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.history-action {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-medium);
    transition: all 0.2s ease;
}

.history-action:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--blue-accent);
}

/* Light Theme Overrides */
[data-theme="light"] .checkout-modal-overlay {
    background: rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .checkout-modal-header h3 {
    color: #0f172a;
}

[data-theme="light"] .checkout-modal-body .form-group label {
    color: #0f172a;
}

[data-theme="light"] .checkout-modal-body .form-group input {
    background: rgba(0, 0, 0, 0.05);
    color: #0f172a;
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .checkout-modal-actions .btn-secondary {
    background: rgba(0, 0, 0, 0.05);
    color: #0f172a;
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .pix-code-input {
    background: rgba(0, 0, 0, 0.05);
    color: #0f172a;
}

[data-theme="light"] .btn-copy {
    background: rgba(0, 0, 0, 0.05);
    color: #0f172a;
}

[data-theme="light"] .toast-notification {
    background: rgba(255, 255, 255, 0.95);
    color: #0f172a;
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .history-description {
    color: #0f172a;
}

[data-theme="light"] .history-value {
    color: #0f172a;
}

[data-theme="light"] .history-status.status-pending {
    background: rgba(245, 158, 11, 0.15);
    color: #b45309;
    border: 1px solid rgba(245, 158, 11, 0.4);
}

[data-theme="light"] .history-status.status-success {
    background: rgba(16, 185, 129, 0.15);
    color: #047857;
    border: 1px solid rgba(16, 185, 129, 0.4);
}

[data-theme="light"] .history-status.status-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #b91c1c;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

[data-theme="light"] .history-status.status-warning {
    background: rgba(245, 158, 11, 0.15);
    color: #b45309;
    border: 1px solid rgba(245, 158, 11, 0.4);
}

/* Responsive */
@media (max-width: 480px) {
    .checkout-modal-content {
        padding: 1.5rem;
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }

    .checkout-modal-actions {
        flex-direction: column;
    }

    .pix-qr-image {
        width: 160px;
        height: 160px;
    }
}
