/* ---------------------------------------------------
    Ethiora Net - 5 Premium Pricing Designs
    Version: 1.0
--------------------------------------------------------- */

:root {
    --p-indigo: #4c57d6;
    --p-indigo-dark: #120851;
    --p-ocean: #00a8ff;
    --p-ocean-dark: #004e92;
    --p-emerald: #2ecc71;
    --p-emerald-dark: #1b5e20;
    --p-sunset: #e67e22;
    --p-sunset-dark: #d35400;
    --p-luxury: #d4af37;
    --p-luxury-dark: #1a1a1a;
}

/* Base Pricing Item Structure Refinement */
.pricing__item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fff;
}

/* 1. COMPONENT: Discount Badge (Conditional) */
.pricing__discount {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ff4d4d;
    color: white;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 800;
    z-index: 11;
    box-shadow: 0 4px 10px rgba(255, 77, 77, 0.3);
    text-transform: uppercase;
    animation: badge-pulse 2s infinite;
}

@keyframes badge-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* 2. COMPONENT: Category Link */
.pricing__category {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
    text-decoration: none !important;
    transition: all 0.3s;
}

/* 3. COMPONENT: Popular/Featured Ribbon & Glow */
.pricing__item.is-popular {
    z-index: 5;
}

.pricing__item.is-popular::before {
    content: "MOST POPULAR";
    position: absolute;
    top: 20px;
    left: -35px;
    width: 140px;
    background: var(--p-indigo);
    color: white;
    font-size: 10px;
    font-weight: 900;
    text-align: center;
    transform: rotate(-45deg);
    padding: 5px 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 12;
}

/* ---------------------------------------------------
    ANIMO BOOST: 5 UNIQUE VISUAL ARCHETYPES
--------------------------------------------------------- */

/* DESIGN 1: INDIGO (Professional Corporate) */
.p-design-indigo {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    transition: all 0.4s ease;
}
.p-design-indigo:hover {
    border-color: var(--p-indigo);
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(76, 87, 214, 0.12);
}
.p-design-indigo .pricing__category { color: var(--p-indigo); }
.p-design-indigo h3 { color: var(--p-indigo-dark); }
.p-design-indigo .primary-btn { background: var(--p-indigo); border-color: var(--p-indigo); color: #fff; }

/* DESIGN 2: OCEAN (Modern Tech / Cloud) */
.p-design-ocean {
    background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 100%);
    border: 1px solid rgba(0, 168, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 168, 255, 0.05);
}
.p-design-ocean .pricing__category { color: var(--p-ocean); }
.p-design-ocean h3 { 
    background: linear-gradient(90deg, var(--p-ocean), var(--p-ocean-dark)); 
    -webkit-background-clip: text; 
    background-clip: text;
    -webkit-text-fill-color: transparent; 
}
.p-design-ocean .primary-btn { background: var(--p-ocean); border: none; color: #fff; box-shadow: 0 8px 20px rgba(0, 168, 255, 0.2); }
.p-design-ocean:hover { transform: translateY(-10px) scale(1.02); box-shadow: 0 20px 40px rgba(0, 168, 255, 0.15); }

/* DESIGN 3: EMERALD (Security / High-Trust) */
.p-design-emerald {
    background: #ffffff;
    border-top: 8px solid var(--p-emerald);
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
}
.p-design-emerald .pricing__category { background: var(--p-emerald); color: #fff; padding: 2px 8px; border-radius: 4px; }
.p-design-emerald ul li i { color: var(--p-emerald); }
.p-design-emerald .primary-btn { background: #1a1a1a; color: #fff; border-radius: 8px; }
.p-design-emerald:hover { border-top-width: 15px; transform: translateY(-8px); }

/* DESIGN 4: SUNSET (Creative / High-Energy) */
.p-design-sunset {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: #ffffff;
    border: none;
}
.p-design-sunset h3, .p-design-sunset h4, .p-design-sunset .pricing__category, .p-design-sunset ul li { color: #ffffff !important; }
.p-design-sunset .primary-btn { background: #fff; color: var(--p-sunset); font-weight: 800; border: none; }
.p-design-sunset .primary-btn:hover { background: var(--p-sunset-dark); color: #fff; }
.p-design-sunset:hover { transform: rotate(-1deg) scale(1.05); box-shadow: 0 30px 60px rgba(230, 126, 34, 0.4); }

/* DESIGN 5: LUXURY (Enterprise / Managed) */
.p-design-luxury {
    background: #111111;
    border: 1px solid #333;
    color: #eeeeee;
}
.p-design-luxury h4 { color: #d4af37; letter-spacing: 2px; }
.p-design-luxury h3 { color: #ffffff; }
.p-design-luxury ul li { color: #bbbbbb; }
.p-design-luxury ul li i { color: #d4af37; }
.p-design-luxury .primary-btn { 
    background: transparent; 
    border: 2px solid #d4af37; 
    color: #d4af37; 
    text-transform: uppercase;
    letter-spacing: 1px;
}
.p-design-luxury .primary-btn:hover { background: #d4af37; color: #111; }
.p-design-luxury:hover { 
    border-color: #d4af37; 
    box-shadow: 0 0 50px rgba(212, 175, 55, 0.2);
    transform: translateY(-15px);
}
.p-design-luxury::after {
    content: '';
    position: absolute;
    top: -50%; left: -60%;
    width: 20%; height: 200%;
    background: rgba(255, 255, 255, 0.05);
    transform: rotate(30deg);
    transition: 0.7s;
    z-index: 5;
}
.p-design-luxury:hover::after { left: 150%; }

/* Utility Animations */
.pricing__item .primary-btn {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.pricing__item:hover .primary-btn {
    transform: scale(1.05);
}

@keyframes badge-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Layout Consistency */
.pricing__item_inner { position: relative; z-index: 10; }

/* ---------------------------------------------------
    NEW CONSOLIDATED PRODUCT CARD STYLES (CONVERSION BOOSTED)
--------------------------------------------------------- */

@keyframes shine-sweep {
    0% { left: -100%; transform: skewX(-20deg); opacity: 0; }
    50% { opacity: 0.5; }
    100% { left: 100%; transform: skewX(-20deg); opacity: 0; }
}

@keyframes price-breathe {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.03); }
}

@keyframes button-glow {
    0%, 100% { box-shadow: 0 10px 30px var(--p-glow, rgba(225, 29, 72, 0.4)); transform: scale(1); }
    50% { box-shadow: 0 15px 50px var(--p-glow, rgba(225, 29, 72, 0.7)); transform: scale(1.02); opacity: 0.9; }
}

.product-card {
    position: relative;
    overflow: visible;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border-radius: 30px;
    box-shadow: 0 15px 45px rgba(0,0,0,0.05);
    margin-top: 55px;
    border: 1px solid rgba(0,0,0,0.03);
}

.product-card:hover {
    transform: translateY(-20px);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.15) !important;
}

.product-card .card-shine-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.4), transparent);
    z-index: 60;
    pointer-events: none;
    border-radius: 30px;
    opacity: 0;
}

.product-card:hover .card-shine-overlay {
    animation: shine-sweep 1.2s ease-in-out;
}

.product-card.is-popular {
    transform: scale(1.06);
    z-index: 20;
    box-shadow: 0 30px 120px rgba(225, 29, 72, 0.15) !important;
}

/* 1. ARCHETYPE: ROSE (PREMIUM MESH & TOP PRICE) */
.product-card.p-design-rose {
    background: #fff;
}
.product-card.p-design-rose .card-header-section {
    padding: 5rem 2rem 7rem;
    clip-path: polygon(0 0, 100% 0, 100% 88%, 50% 100%, 0 88%);
    position: relative;
    /* Dynamic Mesh Gradient Variables */
    background: radial-gradient(circle at 20% 30%, var(--p-mesh-1, #fb7185) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, var(--p-mesh-2, #e11d48) 0%, transparent 50%),
                linear-gradient(135deg, var(--p-mesh-3, #f43f5e) 0%, var(--p-mesh-4, #be123c) 100%);
}

.product-card.p-design-rose .price-badge-circle {
    position: absolute;
    top: 0; left: 50%;
    animation: price-breathe 4s infinite ease-in-out;
    width: 115px; height: 115px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center; justify-content: center;
    box-shadow: 0 15px 50px rgba(225, 29, 72, 0.15);
    z-index: 50;
    border: 10px solid #fff;
}

/* 2. ARCHETYPE: EMERALD (TECH WAVE & FLAT) */
.product-card.p-design-emerald .card-header-section {
    padding: 4.5rem 2rem 5rem;
    background: radial-gradient(circle at 10% 20%, var(--p-mesh-1, #34d399) 0%, transparent 40%),
                linear-gradient(135deg, var(--p-mesh-2, #10b981) 0%, var(--p-mesh-3, #059669) 100%);
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%230099ff' fill-opacity='1' d='M0,224L48,213.3C96,203,192,181,288,181.3C384,181,480,203,576,213.3C672,224,768,224,864,197.3C960,171,1056,117,1152,101.3C1248,85,1344,107,1392,117.3L1440,128L1440,0L1392,0C1344,0,1248,0,1152,0C1056,0,960,0,864,0C768,0,672,0,576,0C480,0,384,0,288,0C192,0,96,0,48,0L0,0Z'%3E%3C/path%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%230099ff' fill-opacity='1' d='M0,224L48,213.3C96,203,192,181,288,181.3C384,181,480,203,576,213.3C672,224,768,224,864,197.3C960,171,1056,117,1152,101.3C1248,85,1344,107,1392,117.3L1440,128L1440,0L1392,0C1344,0,1248,0,1152,0C1056,0,960,0,864,0C768,0,672,0,576,0C480,0,384,0,288,0C192,0,96,0,48,0L0,0Z'%3E%3C/path%3E%3C/svg%3E");
    -webkit-mask-size: cover; mask-size: cover;
}

/* 3. ARCHETYPE: INDIGO (LUXURY DARK MESH) */
.product-card.p-design-indigo {
    background: var(--p-background, #0a0a10);
    border-color: rgba(255,255,255,0.05);
}
.product-card.p-design-indigo .card-header-section {
    padding: 4rem 2rem 6rem;
    background: radial-gradient(circle at 70% 20%, var(--p-mesh-1, #6366f1) 0%, transparent 60%),
                radial-gradient(circle at 10% 80%, var(--p-mesh-2, #4338ca) 0%, transparent 60%),
                linear-gradient(135deg, var(--p-mesh-3, #1e1b4b) 0%, var(--p-mesh-4, #0c0a09) 100%);
    clip-path: ellipse(110% 100% at 50% 0%);
}

/* Featured Neon Boost */
.product-card.is-popular .primary-btn {
    animation: button-glow 3s infinite ease-in-out;
}

/* High Fidelity Layout Components */
.featured-bar {
    width: 90%;
    background: rgba(255, 255, 255, 0.15);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    padding: 10px 15px;
    border-radius: 100px;
    font-weight: 900;
    font-size: 8.5px;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    margin: 2.5rem auto 0;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.product-features li:hover i {
    transform: scale(1.3) rotate(10deg);
    color: #10b981;
}

.product-features li i {
    transition: all 0.3s ease;
}

/* ---------------------------------------------------
    NEW: PREMIUM TOGGLE SWITCH
--------------------------------------------------------- */
.switch-premium {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}
.switch-premium input { opacity: 0; width: 0; height: 0; }
.switch-premium .slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #e2e8f0;
    transition: .4s;
    border-radius: 34px;
}
.switch-premium .slider:before {
    position: absolute;
    content: "";
    height: 22px; width: 22px;
    left: 4px; bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.switch-premium input:checked + .slider { background-color: var(--p-indigo); }
.switch-premium input:checked + .slider:before { transform: translateX(30px); }

/* ---------------------------------------------------
    NEW: MARKETING RIBBONS & HIGHLIGHTS
--------------------------------------------------------- */
.promo-ribbon {
    position: absolute;
    top: 0; right: 0;
    width: 150px; height: 150px;
    overflow: hidden;
    z-index: 100;
}
.promo-ribbon span {
    position: absolute;
    display: block;
    width: 225px;
    padding: 10px 0;
    background-color: #f43f5e;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    color: #fff;
    font: 900 12px/1 'Montserrat', sans-serif;
    text-shadow: 0 1px 1px rgba(0,0,0,0.2);
    text-transform: uppercase;
    text-align: center;
    right: -55px; top: 35px;
    transform: rotate(45deg);
}

.product-card.is-recommended {
    border: 2px solid #10b981;
    box-shadow: 0 30px 60px rgba(16, 185, 129, 0.1) !important;
}

.js-pricing-value {
    transition: opacity 0.15s ease-in-out;
}

.product-card-inner { z-index: 10; height: 100%; position: relative; }
.backdrop-blur-md { -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }

/* Tier Icons & Addon Enhancements */
.tier-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 0.5rem;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.product-card:hover .tier-icon {
    transform: scale(1.1) rotate(5deg);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.addon-item {
    padding: 0.25rem 0;
    transition: all 0.3s ease;
}

.addon-item:hover {
    padding-left: 0.5rem;
}

.product-addons h5 {
    letter-spacing: 0.15em;
    opacity: 0.6;
}
