/* Subscriptions Page Styles */

.subscriptions-page {
    min-height: 100vh;
    padding: 48px 0;
    background-color: #0D0E12;
}

/* Lock Banner Styles */
.lock-banner {
    background: linear-gradient(135deg, rgba(255, 0, 110, 0.1), rgba(255, 184, 0, 0.1));
    border: 2px solid rgba(255, 0, 110, 0.3);
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 48px;
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.95);
    }
}

.lock-banner-content {
    display: flex;
    align-items: center;
    gap: 24px;
}

.lock-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 0, 110, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FF006E;
    flex-shrink: 0;
}

.lock-info {
    flex: 1;
}

.lock-title {
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
    margin: 0 0 8px 0;
}

.lock-message {
    font-size: 14px;
    color: #9CA3AF;
    margin: 0 0 16px 0;
}

/* Countdown Timer */
.countdown-timer {
    display: flex;
    align-items: center;
    gap: 12px;
}

.countdown-item {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 0, 110, 0.3);
    border-radius: 12px;
    padding: 16px 20px;
    text-align: center;
    min-width: 90px;
}

.countdown-value {
    display: block;
    font-size: 32px;
    font-weight: bold;
    color: #00D9FF;
    line-height: 1;
    margin-bottom: 6px;
}

.countdown-label {
    display: block;
    font-size: 12px;
    color: #9CA3AF;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.countdown-separator {
    font-size: 32px;
    font-weight: bold;
    color: #00D9FF;
}

/* Locked Plan Cards */
.plan-card.locked {
    opacity: 0.5;
    cursor: not-allowed;
    position: relative;
    pointer-events: none;
}

.plan-card.locked:hover {
    transform: none;
    box-shadow: none;
}

.plan-lock-overlay {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    color: #FF006E;
    opacity: 0.7;
}

/* Unlock Notification */
.unlock-notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: linear-gradient(135deg, #00FF9C, #00D9FF);
    border-radius: 12px;
    padding: 16px 24px;
    box-shadow: 0 8px 32px rgba(0, 255, 156, 0.3);
    z-index: 1000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
}

.unlock-notification.show {
    transform: translateX(0);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #0D0E12;
    font-weight: 600;
    font-size: 15px;
}

.notification-content svg {
    flex-shrink: 0;
}

/* Page Header */
.page-header {
    margin-bottom: 48px;
    text-align: center;
}

.page-title {
    font-size: 48px;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 12px;
    color: #ffffff;
}

.page-subtitle {
    font-size: 16px;
    color: #9CA3AF;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Current Status Card */
.current-status {
    margin-bottom: 48px;
}

.status-card {
    background: linear-gradient(135deg, #1A1C24, #242630);
    border: 1px solid #2A2D3A;
    border-radius: 20px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 8px 32px rgba(0, 217, 255, 0.1);
}

.status-icon {
    width: 56px;
    height: 56px;
    background: rgba(0, 217, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00D9FF;
    flex-shrink: 0;
}

.status-info {
    flex: 1;
}

.status-label {
    font-size: 13px;
    color: #9CA3AF;
    margin-bottom: 4px;
}

.status-value {
    font-size: 22px;
    font-weight: bold;
    color: #ffffff;
}

.status-badge {
    flex-shrink: 0;
}

.badge {
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge.active {
    background: rgba(0, 255, 156, 0.1);
    color: #00FF9C;
    border: 1px solid #00FF9C;
}

.badge.inactive {
    background: rgba(255, 0, 110, 0.1);
    color: #FF006E;
    border: 1px solid #FF006E;
}

.badge.pending {
    background: rgba(255, 184, 0, 0.1);
    color: #FFB800;
    border: 1px solid #FFB800;
}

/* Subscription Section */
.subscription-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 64px;
}

.plans-column {
    background: transparent;
}

.column-header {
    background: linear-gradient(135deg, #D946A6, #E85D9E);
    border-radius: 20px 20px 0 0;
    padding: 20px;
    text-align: center;
    position: relative;
}

.column-header::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 15px solid #E85D9E;
}

.column-title {
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
    margin: 0;
    letter-spacing: 1px;
}

.plans-list {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Plan Card */
.plan-card {
    background: #1E2938;
    border: 2px dashed #00D9FF;
    border-radius: 16px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.plan-card:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 24px rgba(0, 217, 255, 0.2);
    border-color: #00FF9C;
}

.plan-card.selected {
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.1), rgba(139, 92, 246, 0.1));
    border-style: solid;
    border-color: #00D9FF;
}

.plan-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.plan-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.plan-number {
    font-size: 28px;
    font-weight: bold;
    color: #00D9FF;
    min-width: 50px;
}

.plan-divider {
    width: 2px;
    height: 40px;
    background: #00D9FF;
}

.plan-price {
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
}

.plan-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: linear-gradient(135deg, #00D9FF, #8B5CF6);
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Features Section */
.features-section {
    margin-bottom: 64px;
}

.section-title {
    font-size: 36px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 48px;
    color: #ffffff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.feature-card {
    background: #1A1C24;
    border: 1px solid #2A2D3A;
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 217, 255, 0.15);
    border-color: #00D9FF;
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: rgba(0, 217, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00D9FF;
}

.feature-title {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 12px;
}

.feature-description {
    font-size: 14px;
    color: #9CA3AF;
    line-height: 1.6;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    background: #1A1C24;
    border: 1px solid #2A2D3A;
    border-radius: 24px;
    width: 100%;
    max-width: 500px;
    padding: 40px;
    animation: modalSlideIn 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: #9CA3AF;
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #ffffff;
}

.modal-header {
    text-align: center;
    margin-bottom: 32px;
}

.modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: rgba(0, 217, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00D9FF;
}

.modal-icon.success {
    background: rgba(0, 255, 156, 0.1);
    color: #00FF9C;
}

.modal-title {
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
    margin: 0;
}

.modal-body {
    margin-bottom: 32px;
}

.purchase-details {
    background: #242630;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #2A2D3A;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-size: 14px;
    color: #9CA3AF;
}

.detail-value {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
}

.modal-warning {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: rgba(255, 184, 0, 0.1);
    border: 1px solid rgba(255, 184, 0, 0.3);
    border-radius: 12px;
    color: #FFB800;
}

.modal-warning svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.modal-warning p {
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}

.success-message {
    text-align: center;
    font-size: 15px;
    color: #9CA3AF;
    line-height: 1.6;
    margin: 0;
}

.modal-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.btn-primary,
.btn-secondary {
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #00D9FF, #8B5CF6);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 217, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 217, 255, 0.4);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-secondary {
    background: transparent;
    color: #9CA3AF;
    border: 1px solid #2A2D3A;
}

.btn-secondary:hover {
    border-color: #00D9FF;
    color: #00D9FF;
}

.btn-loader {
    display: flex;
    align-items: center;
}

.btn-loader.hidden {
    display: none;
}

.spinner-small {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .subscription-section {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .lock-banner-content {
        flex-direction: column;
        text-align: center;
    }
    
    .countdown-timer {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .subscriptions-page {
        padding: 24px 0;
    }

    .page-header {
        margin-bottom: 32px;
    }

    .page-title {
        font-size: 36px;
    }

    .page-subtitle {
        font-size: 15px;
    }
    
    .lock-banner {
        padding: 24px;
        margin-bottom: 32px;
    }
    
    .lock-title {
        font-size: 20px;
    }
    
    .countdown-item {
        min-width: 70px;
        padding: 12px 16px;
    }
    
    .countdown-value {
        font-size: 24px;
    }
    
    .countdown-separator {
        font-size: 24px;
    }

    .current-status {
        margin-bottom: 32px;
    }

    .status-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .status-icon {
        width: 48px;
        height: 48px;
    }

    .status-value {
        font-size: 18px;
    }

    .subscription-section {
        gap: 32px;
        margin-bottom: 48px;
    }

    .column-title {
        font-size: 20px;
    }

    .plan-card {
        padding: 16px 20px;
    }

    .plan-number {
        font-size: 24px;
        min-width: 40px;
    }

    .plan-price {
        font-size: 20px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 28px;
        margin-bottom: 32px;
    }

    .feature-card {
        padding: 24px 20px;
    }

    .modal-content {
        padding: 32px 24px;
    }

    .modal-footer {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .unlock-notification {
        right: 10px;
        left: 10px;
        width: auto;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 32px;
    }

    .page-subtitle {
        font-size: 14px;
    }
    
    .lock-banner {
        padding: 20px;
    }
    
    .lock-icon {
        width: 48px;
        height: 48px;
    }
    
    .lock-title {
        font-size: 18px;
    }
    
    .countdown-timer {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .countdown-item {
        min-width: 60px;
        padding: 10px 12px;
    }
    
    .countdown-value {
        font-size: 20px;
    }
    
    .countdown-label {
        font-size: 10px;
    }
    
    .countdown-separator {
        display: none;
    }

    .status-value {
        font-size: 16px;
    }

    .plan-card:hover {
        transform: translateX(4px);
    }

    .column-title {
        font-size: 18px;
    }

    .plan-number {
        font-size: 20px;
    }

    .plan-price {
        font-size: 18px;
    }

    .section-title {
        font-size: 24px;
    }
}