/* Subscription Management Styles */
.subscription-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.plan-card {
    background: var(--surface-color);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-medium);
    border: 2px solid var(--border-color);
    transition: all 0.3s var(--ease-out);
    position: relative;
    overflow: hidden;
}

.plan-card.featured {
    border-color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: var(--shadow-large);
}

.plan-card.featured::before {
    content: 'Most Popular';
    position: absolute;
    top: 1rem;
    right: -2rem;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 3rem;
    font-size: 0.8rem;
    font-weight: 600;
    transform: rotate(45deg);
}

.plan-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.plan-price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    margin: 1rem 0;
}

.plan-period {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.plan-features {
    list-style: none;
    margin: 2rem 0;
}

.plan-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

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

.feature-icon {
    color: var(--success-color);
    font-size: 1.2rem;
}

.feature-unavailable {
    color: var(--text-muted);
    text-decoration: line-through;
}

.feature-unavailable .feature-icon {
    color: var(--error-color);
}

.plan-actions {
    margin-top: 2rem;
}

.current-plan-badge {
    background: var(--success-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: inline-block;
}

.subscription-status {
    background: var(--surface-color);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: var(--shadow-medium);
}

.status-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.status-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-active {
    background: var(--success-light);
    color: var(--success-color);
}

.status-expired {
    background: var(--error-light);
    color: var(--error-color);
}

.status-pending {
    background: var(--warning-light);
    color: var(--warning-color);
}

.status-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.status-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.status-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.status-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.payment-history {
    margin-top: 3rem;
}

.payment-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.payment-table th,
.payment-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.payment-table th {
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--background-light);
}

.payment-status-paid {
    color: var(--success-color);
    font-weight: 600;
}

.payment-status-failed {
    color: var(--error-color);
    font-weight: 600;
}

.payment-status-pending {
    color: var(--warning-color);
    font-weight: 600;
}

.upgrade-flow {
    background: var(--surface-color);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: var(--shadow-medium);
}

.upgrade-steps {
    display: flex;
    justify-content: space-between;
    margin: 2rem 0;
    position: relative;
}

.upgrade-steps::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--border-color);
    transform: translateY(-50%);
    z-index: 1;
}

.step {
    position: relative;
    z-index: 2;
    text-align: center;
    flex: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--background-light);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.3s var(--ease-out);
}

.step.active .step-number {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.step.completed .step-number {
    background: var(--success-color);
    border-color: var(--success-color);
    color: white;
}

.step-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.step.active .step-label {
    color: var(--primary-color);
    font-weight: 600;
}

.payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.payment-method {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.payment-method:hover {
    border-color: var(--primary-light);
}

.payment-method.selected {
    border-color: var(--primary-color);
    background: var(--primary-light);
}

.payment-method input[type="radio"] {
    margin: 0;
}

.payment-icon {
    font-size: 2rem;
    color: var(--text-secondary);
}

.payment-details {
    flex: 1;
}

.payment-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.payment-description {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.coupon-section {
    background: var(--background-light);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.coupon-input {
    display: flex;
    gap: 1rem;
    max-width: 400px;
}

.coupon-message {
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.coupon-success {
    color: var(--success-color);
}

.coupon-error {
    color: var(--error-color);
}

.plan-comparison {
    overflow-x: auto;
    margin: 3rem 0;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.comparison-table th,
.comparison-table td {
    padding: 1rem;
    text-align: center;
    border: 1px solid var(--border-light);
}

.comparison-table th:first-child,
.comparison-table td:first-child {
    text-align: left;
    font-weight: 600;
}

.comparison-table th {
    background: var(--background-light);
    font-weight: 600;
    color: var(--text-primary);
}

.feature-check {
    color: var(--success-color);
    font-size: 1.2rem;
}

.feature-cross {
    color: var(--error-color);
    font-size: 1.2rem;
}

.feature-limited {
    color: var(--warning-color);
    font-weight: 600;
}

@media (max-width: 768px) {
    .subscription-plans {
        grid-template-columns: 1fr;
    }
    
    .plan-card.featured {
        transform: none;
    }
    
    .upgrade-steps {
        flex-direction: column;
        gap: 2rem;
    }
    
    .upgrade-steps::before {
        display: none;
    }
    
    .step {
        display: flex;
        align-items: center;
        gap: 1rem;
        text-align: left;
    }
    
    .step-number {
        margin: 0;
        flex-shrink: 0;
    }
    
    .status-details {
        grid-template-columns: 1fr;
    }
    
    .payment-table {
        font-size: 0.8rem;
    }
}

/* Footer Top Responsive Styles */
.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background: #0099ff;
    color: white;
    padding: 6px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .footer-top {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .footer-top > div {
        padding: 4px !important;
    }
    
    #footer-clock {
        order: -1; /* Put clock at top on mobile */
        width: 100%;
    }
}

@media (max-width: 480px) {
    .footer-top {
        font-size: 12px !important;
    }
    
    #footer-clock {
        font-size: 11px !important;
    }
}