/* ===================================
   PRICING SECTION - PREMIUM STYLING
   =================================== */

.pricing-section {
    padding: var(--spacing-xxl) 0;
    background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-light) 50%, var(--bg-white) 100%);
    position: relative;
    overflow: hidden;
}

/* Subtle background decoration */
.pricing-section::before {
    content: '';
    position: absolute;
    top: 10%;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(217, 180, 95, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.pricing-section::after {
    content: '';
    position: absolute;
    bottom: 10%;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(217, 180, 95, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.section-description {
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--spacing-md);
    color: var(--text-medium);
    font-size: 1.05rem;
    line-height: 1.7;
}

/* ===================================
   PRICING GRID
   =================================== */

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
    position: relative;
    z-index: 1;
}

@media (min-width: 1024px) {
    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-md);
        align-items: start;
    }
}

/* ===================================
   PACKAGE CARDS
   =================================== */

.package-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    border: 2px solid rgba(217, 180, 95, 0.15);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Elegant corner decoration */
.package-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, transparent 0%, rgba(217, 180, 95, 0.05) 100%);
    clip-path: polygon(100% 0, 0 0, 100% 100%);
    transition: all 0.4s ease;
}

.package-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
    border-color: rgba(217, 180, 95, 0.3);
}

.package-card:hover::before {
    background: linear-gradient(135deg, transparent 0%, rgba(217, 180, 95, 0.1) 100%);
}

/* ===================================
   FEATURED CARD (Pathway Package)
   =================================== */

.package-card.featured {
    border-color: var(--primary-gold);
    box-shadow: 0 12px 40px rgba(217, 180, 95, 0.2);
    position: relative;
}

@media (min-width: 1024px) {
    .package-card.featured {
        transform: scale(1.05);
        z-index: 2;
    }
    
    .package-card.featured:hover {
        transform: scale(1.05) translateY(-8px);
    }
}

/* Popular badge */
.popular-badge {
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold-gradient);
    color: white;
    padding: 8px 24px;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(217, 180, 95, 0.3);
    display: flex;
    align-items: center;
    gap: 6px;
}

.popular-badge svg {
    animation: pulse 2s ease-in-out infinite;
}

/* ===================================
   PREMIUM CARD (Sanctuary Package)
   =================================== */

.package-card.premium {
    background: linear-gradient(135deg, rgba(217, 180, 95, 0.02) 0%, white 50%, rgba(217, 180, 95, 0.02) 100%);
    border-color: rgba(217, 180, 95, 0.25);
}

.package-card.premium::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gold-gradient);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.package-card.premium:hover::after {
    opacity: 1;
}

/* ===================================
   PACKAGE HEADER
   =================================== */

.package-header {
    text-align: center;
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid rgba(217, 180, 95, 0.1);
    margin-bottom: var(--spacing-md);
}

.package-name {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
    position: relative;
}

.package-card.featured .package-name {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.package-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin: var(--spacing-md) 0;
    line-height: 1;
}

.package-price .currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-medium);
    margin-right: 4px;
}

.package-price .amount {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-dark-grey);
    letter-spacing: -2px;
}

.package-card.featured .package-price .amount {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.package-price .price-suffix {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-medium);
    margin-left: 4px;
}

.package-description {
    color: var(--text-medium);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* ===================================
   PACKAGE FEATURES
   =================================== */

.package-features {
    flex: 1;
    padding: var(--spacing-md) 0;
}

.package-features ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.package-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(217, 180, 95, 0.08);
    transition: all 0.3s ease;
}

.package-features li:last-child {
    border-bottom: none;
}

.package-features li:hover {
    padding-left: 8px;
    background: rgba(217, 180, 95, 0.03);
    margin: 0 -var(--spacing-sm);
    padding-left: calc(var(--spacing-sm) + 8px);
    padding-right: var(--spacing-sm);
}

.check-icon {
    width: 20px;
    height: 20px;
    color: var(--primary-gold);
    flex-shrink: 0;
    margin-top: 2px;
}

.package-features li span {
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Included tier styling */
.package-features li.included-tier {
    opacity: 0.7;
    font-style: italic;
}

.package-features li.included-tier .check-icon {
    opacity: 0.6;
}

/* ===================================
   PACKAGE FOOTER
   =================================== */

.package-footer {
    margin-top: auto;
    padding-top: var(--spacing-md);
}

.package-button {
    display: block;
    width: 100%;
    padding: 16px 32px;
    background: linear-gradient(135deg, rgba(217, 180, 95, 0.1) 0%, rgba(217, 180, 95, 0.15) 100%);
    color: var(--primary-dark-gold);
    border: 2px solid var(--primary-gold);
    border-radius: var(--radius-full);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.package-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gold-gradient);
    transition: left 0.5s ease;
    z-index: -1;
}

.package-button:hover {
    color: white;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(217, 180, 95, 0.3);
}

.package-button:hover::before {
    left: 0;
}

/* Featured package button */
.package-card.featured .package-button {
    background: var(--gold-gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 6px 20px rgba(217, 180, 95, 0.3);
}

.package-card.featured .package-button::before {
    background: linear-gradient(135deg, var(--primary-light-gold) 0%, var(--primary-gold) 100%);
}

.package-card.featured .package-button:hover {
    box-shadow: 0 10px 30px rgba(217, 180, 95, 0.4);
}

/* Scarcity note */
.scarcity-note {
    margin-top: var(--spacing-sm);
    text-align: center;
    font-size: 0.85rem;
    color: #c74444;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    animation: urgentPulse 2s ease-in-out infinite;
}

.scarcity-note svg {
    color: #c74444;
}

@keyframes urgentPulse {
    0%, 100% {
        opacity: 0.8;
    }
    50% {
        opacity: 1;
    }
}

/* ===================================
   GUARANTEE BADGE
   =================================== */

.guarantee-badge {
    max-width: 700px;
    margin: var(--spacing-xxl) auto 0;
    padding: var(--spacing-lg);
    background: linear-gradient(135deg, rgba(217, 180, 95, 0.05) 0%, rgba(217, 180, 95, 0.1) 100%);
    border: 2px solid rgba(217, 180, 95, 0.2);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    box-shadow: 0 8px 30px rgba(217, 180, 95, 0.1);
}

.guarantee-badge svg {
    color: var(--primary-gold);
    flex-shrink: 0;
}

.guarantee-badge h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--spacing-xs);
}

.guarantee-badge p {
    font-size: 0.95rem;
    color: var(--text-medium);
    line-height: 1.6;
    margin-bottom: 0;
}

/* ===================================
   RESPONSIVE ADJUSTMENTS
   =================================== */

@media (max-width: 1024px) {
    .pricing-grid {
        gap: var(--spacing-lg);
    }
    
    .package-card.featured {
        transform: none;
    }
    
    .package-card.featured:hover {
        transform: translateY(-8px);
    }
}

@media (max-width: 768px) {
    .pricing-section {
        padding: var(--spacing-xl) 0;
    }
    
    .package-price .amount {
        font-size: 3rem;
    }
    
    .guarantee-badge {
        flex-direction: column;
        text-align: center;
        padding: var(--spacing-md);
    }
}

@media (max-width: 480px) {
    .package-card {
        padding: var(--spacing-md);
    }
    
    .package-price .amount {
        font-size: 2.5rem;
    }
    
    .package-button {
        padding: 14px 28px;
        font-size: 1rem;
    }
}

/* ===================================
   ACCESSIBILITY & REDUCED MOTION
   =================================== */

@media (prefers-reduced-motion: reduce) {
    .package-card,
    .package-button,
    .popular-badge svg {
        animation: none !important;
        transition-duration: 0.01ms !important;
    }
    
    .package-card:hover {
        transform: none;
    }
}

/* Focus states */
.package-button:focus-visible {
    outline: 2px solid var(--primary-gold);
    outline-offset: 4px;
}
