.spinner {
    position: relative;
    width: 35.2px;
    height: 35.2px;
}

.spinner::before,
.spinner::after {
    --radius: 250;
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    animation: spinner-w7nm60 2.8s infinite linear;
    background: #3f97cb;
    border-radius: 50%;
}

.spinner::before {
    --radius: -250;
    background: #dbdcef;
}

@keyframes spinner-w7nm60 {
    0% {
        transform: scale(1) rotate(0deg) translateY(calc(var(--radius) * 1%));
    }

    50% {
        transform: scale(0.5) rotate(1440deg) translateY(0);
    }

    100% {
        transform: scale(1) rotate(2920deg) translateY(calc(var(--radius) * 1%));
    }
}

skeleton-text {
    display: inline-block;
    width: 100%;
    height: 2.5rem;
    background: linear-gradient(90deg,
            #f0f0f0 25%,
            #e0e0e0 50%,
            #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(-45deg, #94c2ff, hwb(120 58% 0%));
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    font-family: "Poppins", sans-serif;
    font-weight: 300;
    color: #333;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.highlight {
    background-color: #ffeeba;
    color: #856404;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.highlight:hover {
    background-color: #856404;
    color: #ffeeba;
}

.center-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    padding-bottom: 100px; /* Space for footer */
}

.card-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.card {
    display: flex;
        flex-direction: column;
        height: 100%;
    width: 340px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease,
        background-color 0.3s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    background-color: rgba(255, 255, 255, 1);
}

.image-container {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    opacity: 1;
    visibility: visible;
    position: relative;
    z-index: 2; /* Higher than skeleton loader */
}

.card:hover .image-container img {
    transform: scale(1.1);
}

.skeleton-loader {
    background: linear-gradient(90deg, #f0f0f0, #e0e0e0, #f0f0f0);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    position: absolute;
    z-index: 1; /* Lower than image */
}

.card-body {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    /* Reduced from 15px */
    color: #333;
    font-weight: 700;
}

.card-text {
    font-size: 0.9rem;
    /* Added for smaller text */
    color: #666;
    margin-bottom: 10px;
    /* Reduced from 15px */
    font-weight: 300;
}

#price-display {
    font-size: 1.8rem;
    /* Reduced from 2rem */
    color: #23a6d5;
    margin-bottom: 10px;
    /* Reduced from 15px */
    animation: pulse 2s infinite;
    font-weight: 600;
}

#price-display2 {
    font-size: 1.8rem;
    /* Reduced from 2rem */
    color: #23a6d5;
    margin-bottom: 10px;
    /* Reduced from 15px */
    animation: pulse 2s infinite;
    font-weight: 600;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.btn-primary {
    background-color: #23a6d5;
    border: none;
    transition: all 0.3s ease;
    font-weight: 400;
}

.btn-primary:hover {
    background-color: #1c8ab1;
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: #23a6d5;
    border-color: #23a6d5;
    background-color: transparent;
    transition: all 0.3s ease;
    font-weight: 400;
    position: relative;
}

.btn-outline-primary:hover {
    color: #fff;
    background-color: #23a6d5;
    border-color: #23a6d5;
    transform: translateY(-2px);
}

.btn-outline-primary::after {
    content: 'Login';
    position: absolute;
    top: -35px; /* Changed from bottom to top */
    left: 50%;
    transform: translateX(-50%) translateY(5px); /* Added Y translation for animation */
    background: rgba(70, 70, 70, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: all 0.2s ease;
    z-index: 10; /* Ensure tooltip stays above other elements */
}

.btn-outline-primary:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0); /* Remove Y translation on hover */
}

.dot {
    position: fixed;
    width: 6px;
    height: 6px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    pointer-events: none;
}

ul {
    padding-left: 20px;
}

li {
    margin-bottom: 5px;
}

@media (max-width: 768px) {
    .center-content {
        min-height: auto;
        margin-bottom: 0;
        padding: 10px;
        align-items: flex-start;
    }

    .card-grid {
        flex-direction: column;
        align-items: center;
        margin-bottom: 20px;
    }

    .card {
        width: 95%;
        max-width: 340px;
    }

    .footer {
        position: relative;
        margin-top: 20px;
    }

    body {
        min-height: 100vh;
        display: flex;
        flex-direction: column;
    }

    .card-grid {
        flex: 1;
        margin-bottom: 0;
    }
}

.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease-in-out;
}

.page-transition.active {
    opacity: 1;
    pointer-events: all;
}

a {
    font-size: small;
}

/* Popup Styles */
.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #1a1d24;
    width: 325px;
    height: 145px;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: opacity 0.3s ease;
}

.popup.active {
    opacity: 1;
}

.popup-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 16px 8px 16px;
}

.icon {
    font-size: 20px;
    transition: color 0.3s ease;
}

.popup-success .icon {
    color: #4caf50;
}

.popup-error .icon {
    color: #f44336;
}

.popup-info .icon {
    color: #2196f3;
}

.popup-title {
    color: white;
    margin: 0;
    font-size: 16px;
    font-weight: 500;
}

.popup-message {
    color: #a0a0a0;
    margin: 0;
    padding: 0 16px 16px 16px;
    font-size: 14px;
}
.btn {
    margin-top: auto;
}
.close-btn {
    position: absolute;
    bottom: 22px;
    right: 30px;
    background-color: #2d3239;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.close-btn:hover {
    background-color: #3d424a;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.overlay.active {
    display: block;
}

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.price-skeleton {
    height: 3rem;
    width: 150px;
    margin-bottom: 15px;
    background: linear-gradient(90deg,
            #f0f0f0 25%,
            #e0e0e0 50%,
            #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

.footer {
    text-align: center;
    padding: 12px;
    width: 100%;
    position: fixed;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.footer a {
    color: #23a6d5;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #1c8ab1;
}

.price-disclaimer {
    font-size: 0.75rem;
    color: #666;
    margin-top: 5px;
}

.button-container {
    display: flex;
    gap: 10px;
    margin-top: auto;
    align-items: center;
}

.button-container .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 38px;
    margin: 0;
    padding: 0.375rem 0.75rem;
}

.flex-70 {
    flex: 0 0 70%;
}

.flex-30 {
    flex: 0 0 28%;
}