/* Subscription Management Styles - Dark Theme with Glowing Effects */

/* Main Container */
.subscription-management {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
}

/* Page Title */
.subscription-management-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 40px 0;
    text-align: left;
    letter-spacing: -0.02em;
}

/* Subscription Card */
.subscription-card {
    background: #1a1a1a;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 24px;
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* Glowing border effect (blue to purple gradient) */
.subscription-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #00a8ff 0%, #7b2cbf 50%, #9d4edd 100%);
    border-radius: 16px;
    z-index: -1;
    opacity: 0.8;
    animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% {
        opacity: 0.6;
        box-shadow: 0 0 20px rgba(0, 168, 255, 0.3), 0 0 40px rgba(123, 44, 191, 0.2);
    }
    50% {
        opacity: 0.9;
        box-shadow: 0 0 30px rgba(0, 168, 255, 0.5), 0 0 60px rgba(123, 44, 191, 0.4);
    }
}

/* Card Header */
.subscription-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    flex-wrap: wrap;
}

/* Plan Info Section */
.subscription-plan-info {
    flex: 1;
    min-width: 300px;
}

.subscription-plan-name {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 12px 0;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.subscription-renewal-date {
    font-size: 1rem;
    color: #b0b0b0;
    margin: 0;
    font-weight: 400;
}

.subscription-cancellation-date {
    font-size: 1rem;
    color: #ef5350;
    margin: 0;
    font-weight: 500;
}

/* Status and Actions Section */
.subscription-status-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* Status Badge */
.subscription-status-badge {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
    cursor: default;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.subscription-status-active {
    background: linear-gradient(135deg, #00d4aa 0%, #00b894 100%);
    color: #ffffff;
    box-shadow: 0 0 20px rgba(0, 212, 170, 0.4), 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: status-glow 2s ease-in-out infinite;
}

@keyframes status-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 212, 170, 0.4), 0 4px 12px rgba(0, 0, 0, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(0, 212, 170, 0.6), 0 4px 12px rgba(0, 0, 0, 0.3);
    }
}

.subscription-status-trialing {
    background: linear-gradient(135deg, #ffa726 0%, #ff9800 100%);
    color: #ffffff;
    box-shadow: 0 0 20px rgba(255, 167, 38, 0.4), 0 4px 12px rgba(0, 0, 0, 0.3);
}

.subscription-status-canceling {
    background: linear-gradient(135deg, #ef5350 0%, #e53935 100%);
    color: #ffffff;
    box-shadow: 0 0 20px rgba(239, 83, 80, 0.4), 0 4px 12px rgba(0, 0, 0, 0.3);
}

.subscription-status-cancelled,
.subscription-status-past_due,
.subscription-status-paused {
    background: linear-gradient(135deg, #78909c 0%, #546e7a 100%);
    color: #ffffff;
    box-shadow: 0 0 20px rgba(120, 144, 156, 0.3), 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Manage Dropdown */
.subscription-manage-dropdown {
    position: relative;
}

.subscription-manage-button {
    background: #2a2a2a;
    color: #ffffff;
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.subscription-manage-button:hover {
    background: #3a3a3a;
    border-color: #4a4a4a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.subscription-manage-button[aria-expanded="true"] {
    background: #3a3a3a;
    border-color: #00a8ff;
    box-shadow: 0 0 15px rgba(0, 168, 255, 0.3);
}

.dropdown-arrow {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.subscription-manage-button[aria-expanded="true"] .dropdown-arrow {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.subscription-manage-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    min-width: 240px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow: hidden;
}

.subscription-menu-item-form {
    margin: 0;
    padding: 0;
}

.subscription-menu-item {
    width: 100%;
    background: transparent;
    border: none;
    color: #ffffff;
    padding: 12px 16px;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border-bottom: 1px solid #3a3a3a;
}

.subscription-menu-item:last-child {
    border-bottom: none;
}

.subscription-menu-item:hover {
    background: #3a3a3a;
    color: #00a8ff;
}

.menu-item-icon {
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

/* Upgrade Plan with Select */
.subscription-menu-item-select {
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    gap: 12px;
}

.subscription-menu-item-select label {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    font-weight: 500;
    margin-bottom: 8px;
    cursor: pointer;
}

.subscription-plan-select {
    width: 100%;
    background: #1a1a1a;
    border: 1px solid #3a3a3a;
    border-radius: 6px;
    padding: 8px 12px;
    color: #ffffff;
    font-size: 0.875rem;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.subscription-plan-select:hover {
    border-color: #00a8ff;
}

.subscription-plan-select:focus {
    outline: none;
    border-color: #00a8ff;
    box-shadow: 0 0 0 2px rgba(0, 168, 255, 0.2);
}

.subscription-update-button {
    background: linear-gradient(135deg, #00a8ff 0%, #7b2cbf 100%);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.subscription-update-button:hover {
    background: linear-gradient(135deg, #0099e6 0%, #6a1bb8 100%);
    box-shadow: 0 4px 12px rgba(0, 168, 255, 0.4);
    transform: translateY(-1px);
}

/* Notice Messages */
.cb-notice {
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    position: relative;
}

.cb-notice-success {
    border-color: #00d4aa;
    background: rgba(0, 212, 170, 0.1);
}

.cb-notice-error {
    border-color: #ef5350;
    background: rgba(239, 83, 80, 0.1);
}

.cb-notice-info {
    border-color: #00a8ff;
    background: rgba(0, 168, 255, 0.1);
}

.cb-notice-close {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.cb-notice-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* No Subscriptions Message */
.no-subscriptions-message {
    text-align: center;
    color: #b0b0b0;
    font-size: 1.125rem;
    padding: 60px 20px;
    background: #1a1a1a;
    border-radius: 16px;
    border: 2px solid #2a2a2a;
}

/* Responsive Design */
@media (max-width: 768px) {
    .subscription-management {
        padding: 20px 16px;
    }
    
    .subscription-management-title {
        font-size: 2rem;
        margin-bottom: 24px;
    }
    
    .subscription-card {
        padding: 24px;
    }
    
    .subscription-card-header {
        flex-direction: column;
    }
    
    .subscription-status-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .subscription-plan-name {
        font-size: 1.5rem;
    }
    
    .subscription-manage-menu {
        right: auto;
        left: 0;
        min-width: 100%;
    }
}

/* Dark background overlay effect (optional) */
.subscription-management::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(0, 168, 255, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(123, 44, 191, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}


.pricing-plan-card img {
    width: 100%;
}

.upgrade-plan-container .plan-perks li{
    color: #aaa;
}

.pricing-plan-card {
    display: flex;
    justify-content: space-between;
}

.upgrade-plan-container span.price-billing {
    font-size: 17px;
}

.upgrade-plan-container .plan-header {
    min-height: 54px;
}
.upgrade-plan-container .plan-perks{
    min-height: 168px;
}

/* ================== upgrade plan ================== */

/* 
.pricing_sec .lqd-price-table.flex.flex-col{
    padding: 35px 30px 35px 30px;
    background: radial-gradient(circle at 50% -10%, #93A8C73B 0%, #34374B00 100%);
    border-radius: 11px 11px 11px 11px;
    box-shadow: 0px 1px 1px 0px rgba(255, 255, 255, 0.1803921568627451) inset;
} */