html, body {
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE10+/Edge */
    user-select: none; /* Standard */
    -webkit-tap-highlight-color: transparent;
    overflow-y: auto; /* Always show scrollbar to prevent layout shift, but hide it below */
    /* Hide scrollbar for IE, Edge and Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */    
}

/* Hide scrollbar for Chrome, Safari and Opera */
body::-webkit-scrollbar {
    display: none;
}


.generic-view-h1 {
    text-align: center;
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-top: 0px;
    margin-bottom: 40px;
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.badge-secondary {
  background-color: rgba(107, 206, 187, 0.1);
  color: var(--secondary-color);
}

h2 {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0rem;
    margin-top:0rem;
}

#creditsView, #creditsViewLoggedIn {
    overflow-y: auto; /* Allow vertical scrolling */
    width: 100%;
    padding-top: 60px;
    margin-bottom: 0px;
    padding-bottom:0px;
}

#creditsViewLoggedIn {
    padding-top: 0px;
}

/* === NEW: Tiers Page Styles === */
.tiers-page-container {
    /*max-width: 1500px !important;*/
    width: 100% !important;
    margin-bottom: 0px;
    /*overflow-y: scroll !important;*/
}

.tiers-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.tier-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    border: 2px solid transparent;
    padding: 15px;
    width: max(0.3vw, 350px);
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    cursor: pointer;
}

.tier-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(37, 45, 90, 0.1);
}

.tier-card.recommended {
    /* Remove the permanent border-color */
    /* border-color: var(--primary-color); */
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(81, 98, 212, 0.2);
}

.tier-card.recommended:hover {
    transform: scale(1.05) translateY(-10px);
}

/* Only show blue border when actually selected */
.tier-card:has(input[type="radio"]:checked) {
    border-color: var(--primary-color) !important;
    box-shadow: 0 20px 40px rgba(80, 101, 229, 0.2);
}

/* Ensure non-selected cards have transparent border */
.tier-card:not(:has(input[type="radio"]:checked)) {
    border-color: transparent;
}

.tier-card input[type="radio"] {
    display: none; /* Hide the actual radio button */
}

.tier-card input[type="radio"]:checked + .tier-label {
    /* Styles for when the tier is selected can go here */
    /* For now, the card border will indicate selection */
}

.tier-label h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
    color: var(--primary-color);
    margin: 0 0 10px 0;
}

.tier-description {
    font-size: 0.95rem;
    color: #64748B;
    min-height: 60px;
    margin-bottom:5px;
    margin-top:5px;
}

.tier-description2 {
    font-size: 0.9rem;
    color: #71ac7f;
    min-height: 25px;
    margin-bottom:5px;
    margin-top:0px;
}


.tier-price {
    font-family: 'Poppins', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0px 0;
}

.price-period {
    font-size: 1rem;
    font-weight: 400;
    color: #64748B;
}

.tier-benefits {
    list-style: none;
    padding: 0;
    font-size: 1rem;
    margin: 20px 0;
    text-align: left;
    flex-grow: 1;
    font-weight:600;
}

.tier-benefits li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px; /* Add padding to make space for the pseudo-element */
}

.tier-benefits li::before {
    content: '✓';
    color: #28a745; /* A nice green color */
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

.recommended-badge {
    background-color: var(--primary-color);
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
}

.decide-later-link {
    margin-top: 15px;
    font-size: 0.9rem;
}

.decide-later-link a {
    color: var(--text-color);
    text-decoration: underline;
    opacity: 0.8;
    transition: opacity 0.2s ease-in-out;
}

.decide-later-link a:hover {
    opacity: 1;
    color: var(--primary-color);
}

.tier-card.recommended .tier-content {
    padding-top: 40px; /* Extra padding to not overlap the badge */
}
/* === End of Tiers Page Styles === */

@media (max-width: 768px) {
    #creditsView, #creditsViewLoggedIn {
        overflow-y: auto; /* Allow vertical scrolling */
        height: 100%;
        padding: 1rem;
        padding-top: 80px; /* Add padding to avoid header overlap */
        box-sizing: border-box;
    }

    #creditsView, #creditsViewLoggedIn {
        padding-top: 0px; /* Add padding to avoid header overlap */
    }    

    #creditsView::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }

    #creditsView::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }

    #creditsViewLoggedIn::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }

    .tiers-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .tier-card {
        width: 85%;
        max-width: 350px;
        transform: scale(1) !important; /* Reset desktop scaling */
    }
}