/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Dark Theme Colors for Pricing Section */
    --bg-dark: #0a0a0a;
    --card-dark: #1a1a1a;
    --card-border: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --accent-blue: #3b82f6;
    --accent-yellow: #fbbf24;
    --accent-purple: #8b5cf6;
    --featured-glow: rgba(251, 191, 36, 0.15);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;

    background:
        linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.65)),
        url("/img/desktop-background_1.png") center / cover no-repeat;

    color: #fff;
}


/* ===== HEADER SECTION ===== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
    z-index: 10;
}

.logo img {
    height: 40px;
}

.menu {
    position: relative;
}

.hamburger {
    font-size: 28px;
    cursor: pointer;
    display: none;
    color: #333;
}

.menu-dropdown {
    display: flex;
    gap: 20px;
    transition: all 0.3s ease;
}

.menu-item {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.menu-item:hover {
    color: #007BFF;
}

/* ===== MAIN PRICING CONTAINER ===== */
.pricing-container {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 10px;
    flex: 1;
}

/* ===== BILLING TOGGLE ===== */
.billing-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    margin-bottom: 10px;
    background: var(--card-dark);
    border-radius: 50px;
    padding: 6px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid var(--card-border);
}

.toggle-btn {
    padding: 12px 32px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.toggle-btn.active {
    background: var(--text-primary);
    color: var(--bg-dark);
}

.toggle-btn:hover:not(.active) {
    color: var(--text-primary);
}

/* ===== PRICING CARDS CONTAINER ===== */
.pricing-cards {
    display: flex;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
    perspective: 1000px;
    transition: all 0.5s ease;
}

/* ===== SINGLE PRICING CARD ===== */
.pricing-card {
    position: relative;
    background: var(--card-dark);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    cursor: pointer;
    min-height: 600px;
    opacity: 0;
    transform: translateY(20px);
}

/* Card visibility states */
.pricing-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.pricing-card.hidden {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    position: absolute;
    visibility: hidden;
}

/* Normal state - show card content */
.pricing-card .card-content {
    padding: 40px 32px;
    position: relative;
    z-index: 2;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.5s ease;
}

/* Normal state - hide detailed info */
.pricing-card .detailed-info {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--card-dark);
    padding: 40px 32px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.5s ease;
    overflow-y: auto;
    z-index: 1;
}

/* HOVER STATE - Hide card content, show detailed info */
.pricing-card:hover .card-content {
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
}

.pricing-card:hover .detailed-info {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    z-index: 3;
}

/* Card hover effects */
.pricing-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border-color: var(--accent-blue);
}

/* ===== FEATURED CARD ===== */
.pricing-card.featured {
    border: 2px solid var(--accent-yellow);
    box-shadow: 0 0 40px var(--featured-glow);
}

.pricing-card.featured:hover {
    box-shadow: 0 20px 60px rgba(251, 191, 36, 0.3);
    border-color: var(--accent-yellow);
}

/* Featured Badge */
.featured-badge {
    position: absolute;
    top: -1px;
    left: 50%;
    width: 80%;
    text-align: center;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--accent-yellow), #f59e0b);
    color: var(--bg-dark);
    padding: 8px 24px;
    border-radius: 0 0 12px 12px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4);
}

.featured-badge i {
    margin-right: 6px;
}

/* ===== PLAN ICON ===== */
.plan-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.icon-3d {
    width: 60px;
    height: 60px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    position: relative;
}

.free-icon {
    background: linear-gradient(135deg, #4b5563, #374151);
    color: #9ca3af;
}

.pro-icon {
    background: linear-gradient(135deg, var(--accent-yellow), #f59e0b);
    color: var(--bg-dark);
}

.enterprise-icon {
    background: linear-gradient(135deg, var(--accent-purple), #7c3aed);
    color: var(--text-primary);
}

/* ===== PLAN HEADER ===== */
.plan-header {
    text-align: center;
    margin-bottom: 24px;
}

.plan-name {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.plan-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== PRICING ===== */
.plan-price {
    text-align: center;
    margin: 10px 0;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.currency {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
}

.amount {
    font-size: 56px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.period {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Discount Badge */
.discount-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    margin: 0 auto 16px;
    text-align: center;
}

/* Savings Badge */
.savings-badge {
    text-align: center;
    color: #10b981;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
    display: none;
}

.yearly-label {
    color: var(--text-secondary);
    font-size: 11px;
}

/* ===== CTA BUTTON ===== */
.cta-button {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--accent-blue), #2563eb);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.cta-button:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
}

.featured .cta-button {
    background: linear-gradient(135deg, var(--accent-yellow), #f59e0b);
    color: var(--bg-dark);
}

.featured .cta-button:hover {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 8px 24px rgba(251, 191, 36, 0.4);
}

/* ===== FEATURES LIST ===== */
.features-list {
    margin-bottom: 24px;
}

.features-list h4 {
    font-size: 11px;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

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

.features-list li {
    padding: 3px 0;
    color: var(--text-secondary);
    font-size: 14px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border-bottom: 1px solid var(--card-border);
}

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

.features-list li i {
    color: #10b981;
    margin-top: 2px;
    flex-shrink: 0;
}

/* ===== BUILD PLAN SECTION ===== */
.build-plan-section {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--card-border);
}

.build-plan-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 12px;
}

.build-plan-button {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--accent-purple), #7c3aed);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.build-plan-button:hover {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.4);
}

/* ===== EXPAND BUTTON ===== */
.expand-btn {
    position: absolute;
    bottom: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--card-border);
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.expand-btn:hover {
    background: var(--accent-blue);
    color: white;
    transform: scale(1.1);
}

.pricing-card:hover .expand-btn {
    opacity: 0;
}

/* ===== DETAILED INFO SECTIONS ===== */
.detail-section {
    margin-bottom: 32px;
}

.detail-section h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-section h4 i {
    color: var(--accent-blue);
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid var(--card-border);
}

.detail-item .label {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-item .value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Feature Highlights */
.feature-highlights {
    list-style: none;
    padding: 0;
}

.feature-highlights li {
    padding: 10px 0;
    padding-left: 24px;
    color: var(--text-secondary);
    font-size: 14px;
    position: relative;
    border-bottom: 1px solid var(--card-border);
}

.feature-highlights li:last-child {
    border-bottom: none;
}

.feature-highlights li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

/* Notes Text */
.notes-text {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border-left: 3px solid var(--accent-blue);
}

/* Scrollbar for detailed info */
.detailed-info::-webkit-scrollbar {
    width: 6px;
}

.detailed-info::-webkit-scrollbar-track {
    background: var(--card-dark);
}

.detailed-info::-webkit-scrollbar-thumb {
    background: var(--card-border);
    border-radius: 3px;
}

.detailed-info::-webkit-scrollbar-thumb:hover {
    background: var(--accent-blue);
}

/* ===== NO PLANS MESSAGE ===== */
.no-plans {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.no-plans i {
    font-size: 48px;
    margin-bottom: 20px;
    opacity: 0.3;
}


/* ===== FOOTER SECTION ===== */
.footer {
    display: flex;
    justify-content: space-between;
    padding: 20px 30px;
    background: #ffffff;
    border-top: 1px solid #ddd;
    font-size: 0.9em;
    margin-top: auto;
}

.footer-left, 
.footer-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-left a,
.footer-right a {
    color: #555;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-left a:hover,
.footer-right a:hover {
    color: #007BFF;
}

.social-btn {
    font-size: 1.2em;
    color: #555;
    transition: color 0.3s;
    text-decoration: none;
}

.social-btn:hover {
    color: #007BFF;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pricing-card {
    animation: fadeIn 0.6s ease forwards;
}

.pricing-card:nth-child(1) {
    animation-delay: 0.1s;
}

.pricing-card:nth-child(2) {
    animation-delay: 0.2s;
}

.pricing-card:nth-child(3) {
    animation-delay: 0.3s;
}

.pricing-card:nth-child(4) {
    animation-delay: 0.4s;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet */
@media (max-width: 968px) {
    .pricing-cards {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 25px;
    }

    .plan-name {
        font-size: 24px;
    }

    .amount {
        font-size: 48px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    /* Header Mobile */
    .menu-dropdown {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 30px;
        background: #ffffff;
        border: 1px solid #ddd;
        padding: 10px;
        border-radius: 8px;
        width: 180px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        z-index: 20;
    }

    .menu-dropdown.show {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    /* Pricing Container */
    .pricing-container {
        padding: 30px 15px;
    }

    .billing-toggle {
        margin-bottom: 40px;
    }

    .toggle-btn {
        padding: 10px 24px;
        font-size: 14px;
    }

    .pricing-cards {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 60px;
    }

    .pricing-card {
        min-height: 550px;
    }

    .featured-badge {
        font-size: 10px;
        padding: 6px 20px;
    }

    .icon-3d {
        width: 70px;
        height: 70px;
        font-size: 32px;
    }

    .plan-name {
        font-size: 22px;
    }

    .plan-description {
        font-size: 13px;
    }

    .amount {
        font-size: 44px;
    }

    .currency {
        font-size: 24px;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    /* Footer Mobile */
    .footer {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .footer-left,
    .footer-right {
        justify-content: center;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .header {
        padding: 12px 20px;
    }

    .card-content {
        padding: 32px 24px;
    }

    .detailed-info {
        padding: 32px 24px;
    }

    .plan-name {
        font-size: 20px;
    }

    .amount {
        font-size: 40px;
    }

    .cta-button {
        font-size: 14px;
        padding: 14px 20px;
    }

    .features-list li {
        font-size: 13px;
    }

    .footer {
        padding: 15px 20px;
        font-size: 0.85em;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}