/* ===== PACKAGE GRID STYLES ===== */
.packages-section {
    margin-top: 16px;
    margin-bottom: 20px;
}

.package-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.package-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 24px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.5);
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    cursor: pointer;
}

.package-card:hover {
    transform: translateY(-8px) scale(1.02);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 20px 50px rgba(27, 94, 32, 0.15);
    border-color: rgba(102, 187, 106, 0.5);
}

.package-card::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 2px;
    border-radius: 24px;
    background: linear-gradient(135deg, transparent, rgba(102, 187, 106, 0.3), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: 0.4s opacity;
}

.package-card:hover::before {
    opacity: 1;
}

.package-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    gap: 15px;
}

.package-main-info {
    display: flex;
    gap: 15px;
    align-items: center;
    flex: 1;
}

.package-visual {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(27, 94, 32, 0.08), rgba(102, 187, 106, 0.15));
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    box-shadow: 0 10px 25px rgba(27, 94, 32, 0.1);
    flex-shrink: 0;
}

.package-visual img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.1));
    animation: packageFloat 3s infinite ease-in-out;
}

@keyframes packageFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0);
    }

    50% {
        transform: translateY(-8px) rotate(2deg);
    }
}

.package-details {
    flex: 1;
    min-width: 0;
}

.package-title {
    font-family: 'Outfit', 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #0B3D2E;
    margin-bottom: 4px;
    letter-spacing: -0.3px;
}

.package-tagline {
    font-size: 12px;
    color: #5a7d6e;
    font-weight: 500;
    margin-bottom: 10px;
    line-height: 1.3;
}

.package-price-wrap {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.package-old-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
    font-weight: 600;
}

.package-price {
    font-size: 24px;
    font-weight: 900;
    color: #1B5E20;
    font-family: 'Outfit', 'Poppins', sans-serif;
}

.package-period {
    font-size: 11px;
    color: #888;
    font-weight: 600;
}

.package-offer-pill {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 10px;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    animation: pulseOffer 1.5s infinite;
}

.package-offer-pill.emerald {
    background: linear-gradient(135deg, #00C853, #64DD17);
    color: white;
}

.package-offer-pill.gold {
    background: linear-gradient(135deg, #C8A951, #E8C35E);
    color: black;
}

.package-offer-pill.ruby {
    background: linear-gradient(135deg, #FF5252, #FF1744);
    color: white;
}

.package-offer-pill.sapphire {
    background: linear-gradient(135deg, #2979FF, #00B0FF);
    color: white;
}

.package-offer-pill.neon {
    background: linear-gradient(135deg, #6200EA, #D500F9);
    color: white;
}

@keyframes pulseOffer {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.package-features {
    list-style: none;
    margin: 12px 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px;
    background: rgba(27, 94, 32, 0.03);
    border-radius: 16px;
}

.package-features li {
    font-size: 12px;
    color: #3e5e4e;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.package-features i {
    color: #66BB6A;
    font-size: 12px;
    background: white;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

.package-footer {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.package-btn-main {
    flex: 2;
    background: linear-gradient(135deg, #1B5E20, #43A047);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(27, 94, 32, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.package-btn-main:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 30px rgba(27, 94, 32, 0.4);
}

.package-btn-secondary {
    flex: 1;
    background: white;
    color: #1B5E20;
    border: 2px solid rgba(27, 94, 32, 0.1);
    padding: 12px;
    border-radius: 16px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.package-btn-secondary:hover {
    background: rgba(27, 94, 32, 0.05);
    border-color: #1B5E20;
}

.package-popular-label {
    position: absolute;
    top: 20px;
    right: -35px;
    background: linear-gradient(135deg, #C8A951, #E0C068);
    color: white;
    padding: 6px 40px;
    font-size: 9px;
    font-weight: 900;
    transform: rotate(45deg);
    box-shadow: 0 4px 15px rgba(200, 169, 81, 0.4);
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

/* Dark Mode Support */
body.dark-mode .package-card {
    background: rgba(17, 24, 39, 0.95);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .package-card:hover {
    background: rgba(17, 24, 39, 1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

body.dark-mode .package-title {
    color: #e5e7eb;
}

body.dark-mode .package-tagline {
    color: #9ca3af;
}

body.dark-mode .package-features {
    background: rgba(27, 94, 32, 0.1);
}

body.dark-mode .package-features li {
    color: #d1d5db;
}

body.dark-mode .package-btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #66BB6A;
    border-color: rgba(102, 187, 106, 0.2);
}

body.dark-mode .package-btn-secondary:hover {
    background: rgba(102, 187, 106, 0.1);
    border-color: #66BB6A;
}

/* Responsive Design */
@media (min-width: 768px) {
    .package-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .package-visual {
        width: 100px;
        height: 100px;
    }

    .package-title {
        font-size: 20px;
    }

    .package-tagline {
        font-size: 13px;
    }

    .package-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

@media (min-width: 1024px) {
    .package-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
