/* Subscription System Styles */

/* ===== Dashboard Container ===== */
.subscription-dashboard {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ===== Dashboard Header ===== */
.dashboard-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 30px;
    border-radius: 16px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.dashboard-header h1 {
    margin: 0;
    font-size: 2.5em;
    font-weight: 700;
}

.current-plan-badge {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.2);
    padding: 12px 24px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

.plan-price {
    font-size: 1.2em;
    font-weight: 600;
}

/* ===== Navigation ===== */
.dashboard-nav {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.nav-btn {
    padding: 12px 24px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-btn:hover {
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-2px);
}

.nav-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
}

/* ===== Plans Grid ===== */
.plans-view {
    animation: fadeIn 0.5s ease;
}

.plans-header {
    text-align: center;
    margin-bottom: 40px;
}

.plans-header h2 {
    font-size: 2.5em;
    margin-bottom: 10px;
    color: #333;
}

.plans-header p {
    font-size: 1.2em;
    color: #666;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* ===== Plan Cards ===== */
.plan-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 16px;
    padding: 30px;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.plan-card.popular {
    border-color: #667eea;
    border-width: 3px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

.plan-card.current-plan {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-color: #4a5568;
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
}

.plan-header {
    text-align: center;
    margin-bottom: 30px;
}

.plan-header h3 {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #333;
}

.plan-price-large {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
}

.plan-price-large .currency {
    font-size: 1.5em;
    color: #666;
}

.plan-price-large .price {
    font-size: 3em;
    font-weight: 700;
    color: #667eea;
}

.plan-price-large .interval {
    font-size: 1.2em;
    color: #666;
}

/* ===== Plan Features ===== */
.plan-features {
    flex: 1;
    margin-bottom: 30px;
}

.plan-features h4 {
    font-size: 1.1em;
    margin-bottom: 15px;
    color: #333;
}

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

.plan-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.feature-icon {
    font-size: 1.3em;
    flex-shrink: 0;
}

/* ===== Plan Actions ===== */
.plan-action {
    margin-top: auto;
}

.plan-action .btn {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.btn-current {
    background: #4a5568;
    color: white;
}

.btn-secondary {
    background: #e0e0e0;
    color: #333;
}

/* ===== Common Features ===== */
.plans-footer {
    text-align: center;
    margin-top: 40px;
    padding: 30px;
    background: #f5f7fa;
    border-radius: 12px;
}

.plans-footer h3 {
    margin-bottom: 20px;
    color: #333;
}

.common-features {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.common-features span {
    font-size: 1.1em;
    color: #667eea;
    font-weight: 600;
}

/* ===== Badges ===== */
.badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
}

.badge-free {
    background: #e0e0e0;
    color: #666;
}

.badge-starter {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.badge-professional {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.badge-enterprise {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: white;
}

/* ===== Current Subscription View ===== */
.current-subscription-view {
    animation: fadeIn 0.5s ease;
}

.subscription-info-card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.subscription-info-card h2 {
    margin-bottom: 30px;
    color: #333;
}

.subscription-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    background: #f5f7fa;
    border-radius: 8px;
}

.detail-item .label {
    font-weight: 600;
    color: #666;
}

.detail-item .value {
    font-weight: 700;
    color: #333;
}

.status-active {
    color: #10b981 !important;
}

.status-cancelled {
    color: #ef4444 !important;
}

.subscription-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* ===== Usage Overview ===== */
.quick-usage-overview {
    background: white;
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.quick-usage-overview h3 {
    margin-bottom: 25px;
    color: #333;
}

.usage-grid-small {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.usage-item-small {
    padding: 15px;
    background: #f5f7fa;
    border-radius: 8px;
}

.usage-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.usage-value {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.usage-bar {
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.usage-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

/* ===== Upgrade CTA ===== */
.upgrade-cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.upgrade-cta h3 {
    font-size: 2em;
    margin-bottom: 15px;
}

.upgrade-cta p {
    font-size: 1.2em;
    margin-bottom: 25px;
    opacity: 0.95;
}

.upgrade-cta .btn {
    background: white;
    color: #667eea;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 700;
}

.upgrade-cta .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .dashboard-header h1 {
        font-size: 1.8em;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .dashboard-nav {
        flex-direction: column;
    }
    
    .nav-btn {
        width: 100%;
    }
    
    .plans-grid {
        grid-template-columns: 1fr;
    }
    
    .subscription-details {
        grid-template-columns: 1fr;
    }
    
    .common-features {
        flex-direction: column;
        gap: 15px;
    }
}
