/* Guest Checkout Styles */
.modal-footer {
    display: flex;
    flex-direction: column;
}

/* Hybrid iTunes + TGD Course Cards */
.recommended-course-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.recommended-course-card .rbt-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.recommended-course-card .rbt-card-bottom {
    margin-top: auto;
}

/* iTunes-like Music Player Section */
.album-group-container {
    padding: 15px 15px 0 15px;
}

.music-player-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 15px;
}

.album-art-container {
    margin-bottom: 10px;
}

.album-art-image {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
}

.course-info-left {
    width: 100%;
    text-align: center;
}

.course-title-main {
    font-size: 18px;
    font-weight: 600;
    color: #1d1d1f;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.course-title-main a {
    color: #1d1d1f;
    text-decoration: none;
}

.course-title-main a:hover {
    color: #007aff;
}

.creator-name {
    color: #86868b;
    font-size: 14px;
    margin: 0;
}

/* Course Details Section */
.recommended-course-card .rbt-card-body {
    padding: 0 15px 15px 15px;
}

/* CTA Button */
.recommended-course-card .tgd-course-card-cta {
    margin-top: 15px;
}

/* TGD Genius Club Layout Styling */
#sec-membership .advance-pricing .pricing-left {
    border-top-right-radius: 30px;
    border-bottom-right-radius: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 40px 30px;
    text-align: center;
}

@media only screen and (min-width: 768px) {
    #sec-membership .advance-pricing .pricing-left {
        border-top-right-radius: 0px;
        border-bottom-right-radius: 0px;
    }
}

#sec-membership .advance-pricing .pricing-right {
    background: #fff;
    padding: 40px 30px;
    border-top-left-radius: 30px;
    border-bottom-left-radius: 30px;
}

@media only screen and (min-width: 768px) {
    #sec-membership .advance-pricing .pricing-right {
        border-top-left-radius: 0px;
        border-bottom-left-radius: 0px;
    }
}

.main-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
}

/* Album Group Container */
.album-group-container {
    border: 2px solid #e5e5e7;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    background: #fafafa;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.album-group-container:hover {
    border-color: #d1d1d6;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

/* Music Player Style Album Interface */
.music-player-section {
    margin-bottom: 0;
}

.album-art-container {
    width: 100%;
    height: 300px;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    position: relative;
}

.album-art-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.album-art-image:hover {
    transform: scale(1.05);
}

.course-info-left {
    text-align: left;
    padding: 0 10px;
}

.course-title-main {
    color: #1d1d1f;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.creator-name {
    color: #86868b;
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 0;
    line-height: 1.4;
}

.price-description {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 10px;
}

/* Course Info Styling */
.course-info {
    text-align: center;
    margin-bottom: 20px;
}

.course-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 12px;
    line-height: 1.3;
}

.instructor-name {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 20px;
    font-style: italic;
}

.course-metrics {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.metric-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 1rem;
    color: #555;
    background: rgba(69, 183, 29, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 500;
}

.metric-item i {
    color: #45b71d;
    font-size: 0.8rem;
}

/* Enhanced Price Display */
.price-amount {
    font-size: 3rem;
    font-weight: bold;
    color: #333;
    display: block;
}

.price-amount.discounted {
    color: #e74c3c;
    font-size: 3.5rem;
    text-shadow: 0 2px 4px rgba(231, 76, 60, 0.2);
}

.price-row-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.price-original {
    font-size: 2rem;
    color: #999;
    text-decoration: line-through;
    font-weight: 500;
}

.savings-amount {
    margin-top: 10px;
}

.savings-text {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1rem;
    box-shadow: 0 3px 10px rgba(231, 76, 60, 0.3);
}

.discount-highlight {
    animation: pulse 2s infinite;
}

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

.conversion-rate-wrap {
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 8px;
}

.conversion-rate-wrap i {
    color: #3498db;
}

.pricing-btn-group {
    margin: 30px 0;
}

.rbt-btn-join {
    background: linear-gradient(135deg, #45b71d 0%, #3a9b16 100%);
    border: none;
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(69, 183, 29, 0.3);
}

.rbt-btn-join:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(69, 183, 29, 0.4);
    color: white;
}

/* Mega Button Styling */
.mega-button {
    background: linear-gradient(135deg, #45b71d 0%, #3a9b16 100%);
    border: none;
    color: white;
    padding: 20px 30px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(69, 183, 29, 0.4);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 80px;
    width: 100%;
}

.mega-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(69, 183, 29, 0.5);
    color: white;
}

.mega-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.mega-button:hover::before {
    left: 100%;
}

.button-text {
    display: block;
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 5px;
    line-height: 1.2;
    text-align: center;
}

.button-subtext {
    display: block;
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
}

.rating {
    margin: 20px 0;
}

.rating a {
    color: #ffc107;
    margin: 0 2px;
}

.pricing-offer {
    padding: 20px 0;
}

.pricing-offer p {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.4;
}

.price-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
}

.plan-offer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.plan-offer-list li {
    padding: 12px 0;
    font-size: 1.1rem;
    color: #555;
    border-bottom: 1px solid #f0f0f0;
}

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

.plan-offer-list li i {
    color: #45b71d;
    margin-right: 10px;
    font-weight: bold;
}

.plan-offer-list li strong {
    color: #333;
}

.ribbon-safe-text {
    padding-top: 40px;
    margin-bottom: 20px;
}

/* Ribbon CSS - More Red */
.ribbon {
    font-size: 28px;
    font-weight: bold;
    color: #fff;
}

.ribbon {
    --f: .5em; /* control the folded part */

    position: absolute;
    top: 0;
    right: 0;
    line-height: 1.8;
    padding-inline: 1lh;
    padding-bottom: var(--f);
    border-image: conic-gradient(#0008 0 0) 51%/var(--f);
    clip-path: polygon(
            100% calc(100% - var(--f)),100% 100%,calc(100% - var(--f)) calc(100% - var(--f)),var(--f) calc(100% - var(--f)), 0 100%,0 calc(100% - var(--f)),999px calc(100% - var(--f) - 999px),calc(100% - 999px) calc(100% - var(--f) - 999px));
    transform: translate(calc((1 - cos(45deg))*100%), -100%) rotate(45deg);
    transform-origin: 0% 100%;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 50%, #991b1b 100%);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .main-title {
        font-size: 2rem;
    }

    .price-amount {
        font-size: 2.5rem;
    }

    .pricing-offer p {
        font-size: 1.1rem;
    }

    .plan-offer-list li {
        font-size: 1rem;
    }
}
