/* Modern Plans Page Design with Flip Cards */

/* Magnetic Card Effect */
.magnetic-card {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

.magnetic-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.magnetic-card:hover::after {
    width: 300px;
    height: 300px;
}

/* Hero Section */
.hero-text {
    text-align: center;
    padding: 80px 20px 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-text h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 20px 0;
    letter-spacing: -0.5px;
    position: relative;
}

.hero-text h1::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 20px;
    z-index: -1;
    filter: blur(40px);
}

/* Plans Description */
.plans-description {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
    font-size: 16pt !important;
    line-height: 1.7;
    color: #333;
    font-weight: 400;
    padding: 0 20px;
    position: relative;
}

.plans-description::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #b87333, transparent);
}

/* Plans Container */
.plans-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 80px;
    margin: 0 auto 80px auto;
    max-width: 1600px;
    padding: 0 20px;
    position: relative;
}

.plans-container::before {
    content: '';
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
}

/* Plan Card Wrapper */
.plan-card-wrapper {
    display: flex;
    flex-direction: column;
    gap: 50px;
    align-items: center;
}

/* Plan Card - 3D Flip Card */
.plan-card {
    width: 240px;
    height: 300px;
    min-width: 220px;
    min-height: 280px;
    perspective: 1000px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.plan-card.magnetic {
    transition: transform 0.2s ease-out;
}

.plan-card.clicked {
    animation: clickPulse 0.6s ease;
}

@keyframes clickPulse {
    0% { transform: scale(1); }
    50% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

.plan-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.4s;
    transform-style: preserve-3d;
}

.plan-card.flipped .plan-card-inner {
    transform: rotateY(180deg);
}

.plan-card-front,
.plan-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    box-sizing: border-box;
}

.plan-card-back {
    transform: rotateY(180deg);
}

/* Plan Badge */
.plan-badge {
    position: absolute;
    top: 8px;
    right: 20px;
    background: linear-gradient(135deg, #d4af37 0%, #f4e4bc 100%);
    color: #2c2416;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
    z-index: 10;
}

/* Plan Icon */
.plan-icon {
    margin-bottom: 10px;
    opacity: 0.8;
    flex-shrink: 0;
}

.plan-icon svg {
    transition: transform 0.3s ease;
    width: 35px;
    height: 35px;
}

.plan-card:hover .plan-icon svg {
    transform: scale(1.1);
}

/* Plan Front Content */
.plan-card-front h3 {
    font-size: 18px !important;
    font-weight: 800;
    margin: 0 0 5px 0;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    flex-shrink: 0;
}

.plan-tagline {
    font-size: 9px !important;
    color: #666;
    margin: 0 0 10px 0;
    font-weight: 500;
    flex-shrink: 0;
}

.plan-price {
    margin: 10px 0 15px 0;
    flex-shrink: 0;
}

.price-amount {
    font-size: 20px !important;
    font-weight: 800;
    line-height: 1;
    display: block;
}

.price-period {
    font-size: 10px !important;
    color: #666;
    font-weight: 500;
}

/* Plan Back Content */
.plan-card-back h3 {
    font-size: 18px !important;
    font-weight: 700;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    flex-shrink: 0;
}

.plan-card-back ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    text-align: left;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.plan-card-back li {
    font-size: 14px !important;
    line-height: 1.6;
    margin-bottom: 8px;
    padding-left: 22px;
    position: relative;
    font-weight: 500;
}

.plan-card-back li:before {
    content: "✓";
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 14px;
    top: 50%;
    transform: translateY(-50%);
}

/* Flip Buttons */
.flip-btn {
    background: linear-gradient(135deg, #90ee90 0%, #98fb98 100%);
    color: #2d5016;
    border: none;
    padding: 6px 12px;
    border-radius: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
    font-size: 8px !important;
    flex-shrink: 0;
}

.flip-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(144, 238, 144, 0.4);
}

/* Use Case Cards */
.use-case-card {
    width: 240px;
    height: 120px;
    min-width: 220px;
    min-height: 100px;
    perspective: 1000px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.use-case-card.magnetic {
    transition: transform 0.2s ease-out;
}

.use-case-card.clicked {
    animation: clickPulse 0.6s ease;
}

.use-case-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.4s;
    transform-style: preserve-3d;
}

.use-case-card.flipped .use-case-inner {
    transform: rotateY(180deg);
}

.use-case-front,
.use-case-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 12px;
    padding: 15px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    box-sizing: border-box;
}

.use-case-back {
    transform: rotateY(180deg);
}

.use-case-icon {
    margin-bottom: 8px;
    opacity: 0.7;
    flex-shrink: 0;
}

.use-case-icon svg {
    width: 25px;
    height: 25px;
}

.use-case-front h4 {
    font-size: 14px !important;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #333;
    flex-shrink: 0;
}

.use-case-front p {
    font-size: 12px !important;
    color: #666;
    margin: 0;
    font-weight: 500;
    flex-shrink: 0;
    line-height: 1.4;
}

.use-case-back h4 {
    font-size: 14px !important;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #333;
    flex-shrink: 0;
}

.use-case-back ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    text-align: left;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.use-case-back li {
    font-size: 11px !important;
    line-height: 1.5;
    margin-bottom: 6px;
    padding-left: 18px;
    position: relative;
    font-weight: 500;
    color: #555;
}

.use-case-back li:before {
    content: "•";
    position: absolute;
    left: 0;
    font-weight: bold;
    top: 0;
    font-size: 12px;
}

.use-case-flip {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border: 1px solid rgba(102, 126, 234, 0.3);
    padding: 4px 8px;
    border-radius: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
    font-size: 8px;
}

.use-case-flip:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: translateY(-1px);
}

/* Plan Themes */

/* FREE Plan - Grey Theme */
.plan-card[data-plan="free"] .plan-card-front,
.plan-card[data-plan="free"] .plan-card-back {
    background: linear-gradient(145deg, #f8f9fa 0%, #e9ecef 100%);
    border-color: rgba(108, 117, 125, 0.2);
}

.plan-card[data-plan="free"] .plan-card-front h3,
.plan-card[data-plan="free"] .plan-card-back h3 {
    color: #495057;
}

.plan-card[data-plan="free"] .plan-card-back li:before {
    color: #6c757d;
}

.use-case-card[data-use-case="free"] .use-case-front,
.use-case-card[data-use-case="free"] .use-case-back {
    background: linear-gradient(145deg, #f8f9fa 0%, #e9ecef 100%);
    border-color: rgba(108, 117, 125, 0.2);
}

/* PREMIUM Plan - Gold Theme */
.plan-card[data-plan="premium"] .plan-card-front,
.plan-card[data-plan="premium"] .plan-card-back {
    background: linear-gradient(145deg, #fff9e6 0%, #f4e4bc 100%);
    border-color: rgba(212, 175, 55, 0.3);
}

.plan-card[data-plan="premium"] .plan-card-front h3,
.plan-card[data-plan="premium"] .plan-card-back h3 {
    color: #2c2416;
}

.plan-card[data-plan="premium"] .plan-card-back li:before {
    color: #d4af37;
}

.use-case-card[data-use-case="premium"] .use-case-front,
.use-case-card[data-use-case="premium"] .use-case-back {
    background: linear-gradient(145deg, #fff9e6 0%, #f4e4bc 100%);
    border-color: rgba(212, 175, 55, 0.3);
}

/* BUSINESS Plan - Blue Theme */
.plan-card[data-plan="business"] .plan-card-front,
.plan-card[data-plan="business"] .plan-card-back {
    background: linear-gradient(145deg, #e6f3ff 0%, #cce7ff 100%);
    border-color: rgba(52, 152, 219, 0.3);
}

.plan-card[data-plan="business"] .plan-card-front h3,
.plan-card[data-plan="business"] .plan-card-back h3 {
    color: #2c3e50;
}

.plan-card[data-plan="business"] .plan-card-back li:before {
    color: #3498db;
}

.use-case-card[data-use-case="business"] .use-case-front,
.use-case-card[data-use-case="business"] .use-case-back {
    background: linear-gradient(145deg, #e6f3ff 0%, #cce7ff 100%);
    border-color: rgba(52, 152, 219, 0.3);
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 60px;
    gap: 20px;
    flex-wrap: wrap;
}

.cta-logo {
    height: auto;
    transition: transform 0.3s ease;
    max-width: 200px;
}

.cta-logo:hover {
    transform: scale(1.05);
}

/* Background decorations */
.hero-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: radial-gradient(circle at 20% 20%, rgba(102, 126, 234, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(118, 75, 162, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Responsive design */
@media (max-width: 768px) {
    .hero-text {
        padding: 60px 20px 30px 20px;
    }
    
    .plans-container {
        flex-direction: column;
        gap: 30px;
        margin: 0 auto 60px auto;
        padding: 0 15px;
    }
    
    .plan-card {
        width: 100%;
        max-width: 320px;
        min-width: 280px;
        min-height: 260px;
    }
    
    .use-case-card {
        width: 100%;
        max-width: 320px;
        min-width: 280px;
        min-height: 90px;
    }
    
    .plan-card-front h3 {
        font-size: 28px;
    }
    
    .plans-description {
        font-size: 14pt;
        margin: 0 auto 40px auto;
    }
}

@media (max-width: 480px) {
    .plan-card {
        min-width: 260px;
        min-height: 240px;
    }
    
    .use-case-card {
        min-width: 260px;
        min-height: 80px;
    }
    
    .plan-card-front h3 {
        font-size: 24px;
    }
    
    .plan-card-back li {
        font-size: 15px;
    }
    
    .plans-description {
        font-size: 13pt;
    }
}