.content-wrapper {
    background: #f7f7f7;
    border-radius: 1rem;
}

#plan-content-wrapper {
    width: 100%;
    border-radius: 3rem;
    background: radial-gradient(
            circle at top left,
            #02b7ff 20%,
            transparent 50%
        ),
        radial-gradient(circle at top right, #001477 20%, transparent 50%),
        radial-gradient(circle at bottom left, #ebbc4a 30%, transparent 50%),
        radial-gradient(circle at bottom right, #02b7ff 20%, transparent 50%);
    /* background-blend-mode: screen; */
}

.free-plan-info-card,
.premium-plan-info-card {
    min-width: 200px;
    border-radius: 1.5rem 1.5rem 0 0;
    margin-top: -30px;
    width: 50%;
    text-wrap: no-wrap;
    line-height: 14px !important;
}

.free-plan-info-card {
    background: #e56a68;
    background: linear-gradient(
        180deg,
        rgba(229, 106, 104, 1) 51%,
        rgba(242, 168, 138, 1) 98%
    );
}

.premium-plan-info-card {
    background: #504ff6;
    background: linear-gradient(
        180deg,
        rgba(80, 79, 246, 1) 28%,
        rgba(79, 93, 246, 1) 48%,
        rgba(79, 112, 246, 1) 77%,
        rgba(125, 161, 248, 1) 100%
    );
}

.gap {
    gap: 1rem;
}

.plan-features {
    border-radius: 1.5rem;
}

.features-list li:nth-child(odd) {
    background-color: #f5f5f5;
}

.features-list li:nth-child(even) {
    background-color: #ffffff;
}

.feature-status {
    /* background-color: #fafafa; */
    width: 100%;
    text-align: center;
}

.free-plan-btn button {
    width: 100%;
    border-radius: 0.6rem;
    background: #e56a68;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px,
        rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
    background: linear-gradient(
        90deg,
        rgba(229, 106, 104, 1) 51%,
        rgba(242, 168, 138, 1) 98%
    );
}

.premium-plan-btn button {
    width: 100%;
    border-radius: 0.6rem;
    background: #504ff6;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px,
        rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
    background: linear-gradient(
        90deg,
        rgba(80, 79, 246, 1) 28%,
        rgba(79, 93, 246, 1) 48%,
        rgba(79, 112, 246, 1) 77%,
        rgba(125, 161, 248, 1) 100%
    );
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .content-wrapper {
        padding: 0.5rem;
        margin: 0.5rem;
    }

    #plan-content-wrapper {
        border-radius: 1.5rem;
    }

    .free-plan-info-card,
    .premium-plan-info-card {
        min-width: 80px;
        padding: 0.5rem;
        margin-top: -15px;
        width: 45%;
        line-height: 1.5px !important;
    }

    .gap {
        gap: 0.5rem;
    }

    .plan-features {
        padding: 0.5rem;
        border-radius: 1rem;
    }

    .features-list {
        font-size: 12px;
        padding: 0;
    }

    .features-list li {
        padding: 1px;
    }

    .feature-number i {
        font-size: 4px;
    }

    h3.mb-4 {
        font-size: 20px;
        margin-bottom: 1rem;
    }

    p.text-black {
        font-size: 14px;
        margin-bottom: 1rem;
    }

    .fs-24 {
        font-size: 18px;
    }

    .free-plan-info-card h3,
    .premium-plan-info-card h3 {
        font-size: 12px;
    }

    .free-plan-info-card h2,
    .premium-plan-info-card h2 {
        font-size: 18px;
    }

    .free-plan-info-card div,
    .premium-plan-info-card div {
        font-size: 8px;
    }

    .fs-18 {
        font-size: 14px;
    }

    .px-8 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .px-6 {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }

    .pb-6 {
        padding-bottom: 0.5rem !important;
    }

    .feature-status img {
        width: 12px;
        height: 12px;
    }

    .feature-key {
        line-height: 18px;
    }
}

.faq-item {
    border-radius: 1rem;
    margin-bottom: 1rem;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
}

.faq-question {
    padding: 0.5rem 1.5rem 0.5rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.faq-answer {
    padding: 1rem 1.5rem;
    list-style: none;
    display: none;
    font-size: 1rem;
}

.faq-answer.active {
    display: block;
}

.faq-question i {
    margin-right: 0.5rem;
    font-size: 0.375rem;
}

.faq-question h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #6c757d;
}

@media (max-width: 768px) {
    .faq-question h3 {
        font-size: 1rem !important;
    }

    .faq-question {
        padding: 0.3rem 1rem 0.3rem 1rem !important;
    }

    .faq-answer {
        padding: 0.8rem 1rem !important;
    }
}

.feature-key-div {
    color: #3b3b3b;
}

.plan-btn-div {
    color: white;
    width: 100%;
    border-radius: 3rem;
    background: #ebbc4a;
    background: linear-gradient(
        90deg,
        rgba(2, 183, 255, 1) 0%,
        rgba(156, 186, 136, 1) 30%,
        rgba(235, 188, 74, 1) 100%
    );
    background-size: 100% 100%;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    padding: 1rem 1.5rem;
    margin-top: 1rem;
    z-index: 999;
    transition: bottom 0.5s ease-in-out;
}

.plan-btn-div.visible {
    bottom: 1rem;
}

.premium-plan-btn button {
    width: 100%;
    min-width: 300px;
    border-radius: 2rem;
    font-size: 1rem;
    font-weight: 500;
}

@media (max-width: 576px) {
    .plan-btn-div {
        bottom: -100px;
        /* Start off-screen on mobile */
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
        font-weight: 400;
        flex-direction: column;
        position: fixed;
        left: 50%;
        background-color: transparent;
        background: transparent;
        box-shadow: none !important;
        transform: translateX(-50%);
        max-width: 90%;
    }

    .plan-btn-div.visible {
        bottom: 1rem;
        /* Slide up to visible position on mobile */
    }

    .plan-btn-div .fs-14,
    .plan-btn-div .fs-md-20 {
        font-size: 0.9rem !important;
    }

    .premium-plan-btn button {
        font-size: 0.9rem;
        min-width: 250px;
        padding: 0.5rem 0.75rem;
    }
}

/* Vibration animation */
@keyframes vibrate {
    0% {
        transform: translateX(0);
    }

    10% {
        transform: translateX(-3px);
    }

    20% {
        transform: translateX(3px);
    }

    30% {
        transform: translateX(-3px);
    }

    40% {
        transform: translateX(3px);
    }

    50% {
        transform: translateX(-2px);
    }

    60% {
        transform: translateX(2px);
    }

    70% {
        transform: translateX(-2px);
    }

    80% {
        transform: translateX(2px);
    }

    90% {
        transform: translateX(-1px);
    }

    100% {
        transform: translateX(0);
    }
}

.plan-btn-div.vibrate {
    animation: vibrate 1.2s ease-in-out;
}

:root {
    --primary-color: #021768;
    --secondary-color: #0eacff;
    --light-bg: #f8f9fa;
    --text-dark: #333;
    --radius-xl: 24px;
    --shadow-sm: 0 6px 18px rgba(2, 23, 104, 0.08);
    --shadow: 0 14px 36px rgba(2, 23, 104, 0.12);
    --transition: all 0.25s ease;
}

/* Promo banner */
.promo-card {
    background: #fff;
    border: 1px solid rgba(2, 23, 104, 0.08);
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
    padding: 24px;
    margin-bottom: 55px;
}

.promo-badge {
    display: inline-block;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: linear-gradient(
        90deg,
        rgba(2, 183, 255, 1) 0%,
        rgba(235, 188, 74, 1) 100%
    );
    color: #01204b;
    padding: 6px 10px;
    border-radius: 999px;
    margin-bottom: 10px;
}

.promo-title {
    margin: 0 0 6px 0;
    color: var(--primary-color);
    font-weight: 800;
    font-size: 26px;
    line-height: 1.25;
}

.promo-text {
    margin: 0;
    font-size: 16px;
    color: var(--text-dark);
}

.price-line {
    margin-top: 6px;
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
}

.price-line .old {
    text-decoration: line-through;
    color: #a2a5ac;
    font-weight: 600;
    margin-right: 6px;
}

.price-line .new {
    color: #0f6fff;
    font-weight: 800;
}

/* Join section */
.join-card {
    background: #fff;
    border: 1px solid rgba(2, 23, 104, 0.08);
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
    padding: 28px 24px;
    margin-top: 18px;
}

.join-title {
    margin: 0 0 6px 0;
    color: var(--primary-color);
    font-weight: 800;
    font-size: 24px;
    line-height: 1.2;
}

.join-text {
    margin: 0;
    font-size: 16px;
    color: var(--text-dark);
}

@media (max-width: 991.98px) {
    .promo-title {
        font-size: 22px;
    }
    .join-title {
        font-size: 22px;
    }
}

.fonctionnalite-pack-head {
    font-weight: 600 !important;
    font-size: 14px !important;
}

@media (min-width: 768px) {
    .fonctionnalite-pack-head {
        font-size: 24px !important;
    }
}

/* Subscription Status Section */
.subscription-status-section {
    margin: 1.5rem 0;
}

/* Premium Active Card */
.premium-active-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    border: 1px solid rgba(255, 193, 7, 0.2);
    border-radius: 3rem;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(255, 193, 7, 0.1);
    position: relative;
    overflow: hidden;
}

.premium-active-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ffc107, #ff9800, #ff5722);
    border-radius: 16px 16px 0 0;
}

.premium-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.premium-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #ffc107, #ff9800);
    color: white;
    padding: 8px 16px !important;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

.premium-badge i {
    font-size: 16px;
}

.status-indicator.active {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #28a745;
    font-size: 14px;
    font-weight: 500;
    background: rgba(40, 167, 69, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
}

.status-indicator.active i {
    font-size: 8px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.premium-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
    margin-bottom: 24px;
}

@media (max-width: 768px) {
    .premium-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

.premium-title {
    color: #333;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
}

.premium-description {
    color: #666;
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 24px;
}

.premium-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #333;
    font-size: 15px;
}

.feature-item i {
    font-size: 18px;
}

.content-sidebar {
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.expiration-info {
    text-align: center;
}

.expiration-label {
    color: #666;
    font-size: 14px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.expiration-date {
    color: #333;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
}

.days-left {
    margin-top: 16px;
}

.progress-bar-container {
    margin-bottom: 12px;
}

.progress-bar-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    font-size: 14px;
    color: #666;
}

.progress-bar-bg {
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #4caf50, #8bc34a);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.renewal-reminder {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-top: 12px;
}

.premium-footer {
    display: flex;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.btn-manage,
.btn-upgrade {
    flex: 1;
    padding: 12px 24px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-upgrade {
    background: linear-gradient(135deg, #ffc107, #ff9800);
    border: none;
    color: white;
}

.btn-upgrade:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.3);
}

/* Upgrade Card */
.upgrade-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    border: 1px solid rgba(33, 150, 243, 0.2);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 10px 30px rgba(33, 150, 243, 0.1);
    position: relative;
    overflow: hidden;
}

.upgrade-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2196f3, #03a9f4, #00bcd4);
    border-radius: 16px 16px 0 0;
}

.upgrade-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.upgrade-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #2196f3, #03a9f4);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 8px 20px rgba(33, 150, 243, 0.3);
}

.upgrade-badge {
    background: #ff4081;
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.upgrade-title {
    color: #333;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
}

.upgrade-description {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 32px;
}

.upgrade-benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

@media (max-width: 992px) {
    .upgrade-benefits {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .upgrade-benefits {
        grid-template-columns: 1fr;
    }
}

.benefit-item {
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
    width: 48px;
    height: 48px;
    background: rgba(33, 150, 243, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 20px;
}

.benefit-content h4 {
    color: #333;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.benefit-content p {
    color: #666;
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
}

.pricing-section {
    text-align: center;
    margin-bottom: 32px;
    padding: 24px;
    background: linear-gradient(135deg, #f8f9ff, #ffffff);
    border-radius: 12px;
    border: 1px solid #e8e8e8;
}

.price-display {
    margin-bottom: 12px;
}

.price-amount {
    color: #2196f3;
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
}

.price-period {
    color: #666;
    font-size: 18px;
    font-weight: 500;
}

.price-note {
    color: #999;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.upgrade-footer {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.btn-premium-gradient {
    background: linear-gradient(135deg, #2196f3, #03a9f4);
    border: none;
    color: white;
    padding: 16px 32px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(33, 150, 243, 0.3);
}

.btn-premium-gradient:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(33, 150, 243, 0.4);
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #666;
    font-size: 14px;
    padding: 8px 16px;
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 20px;
}

.trust-badge i {
    color: #2196f3;
}

/* RTL Support */
[dir="rtl"] .premium-header,
[dir="rtl"] .upgrade-header {
    flex-direction: row-reverse;
}

[dir="rtl"] .premium-badge,
[dir="rtl"] .trust-badge,
[dir="rtl"] .feature-item {
    flex-direction: row-reverse;
}

[dir="rtl"] .premium-footer,
[dir="rtl"] .upgrade-footer {
    direction: rtl;
}
