/* 会员系统样式 */
.membership-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.membership-content {
    background: white;
    border-radius: 20px;
    padding: 30px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: #999;
}

.membership-content h2 {
    text-align: center;
    margin-bottom: 10px;
    color: #333;
}

.limit-message {
    text-align: center;
    color: #ff6b6b;
    font-weight: bold;
    margin-bottom: 20px;
    padding: 10px;
    background: #fff5f5;
    border-radius: 8px;
}

.membership-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.plan-card {
    border: 2px solid #e1e5e9;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

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

.plan-card.trial {
    border-color: #4ecdc4;
}

.plan-card.monthly {
    border-color: #667eea;
}

.plan-card.yearly {
    border-color: #f093fb;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.popular-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #ff6b6b;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.plan-card h3 {
    margin-bottom: 15px;
    font-size: 20px;
}

.price {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 10px;
}

.price span {
    font-size: 14px;
    opacity: 0.7;
}

.save {
    color: #ff6b6b;
    font-weight: bold;
    margin-bottom: 15px;
}

.plan-card ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.plan-card li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.plan-card button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.trial button {
    background: #4ecdc4;
    color: white;
}

.monthly button {
    background: #667eea;
    color: white;
}

.yearly button {
    background: white;
    color: #f5576c;
}

.plan-card button:hover {
    transform: scale(1.05);
}

/* 会员状态显示 */
#membershipInfo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}

.free-user {
    color: #999;
    font-size: 12px;
}

.premium-user {
    color: #667eea;
    font-weight: bold;
    font-size: 12px;
}

.expire-date {
    color: #666;
    font-size: 11px;
}

.upgrade-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 11px;
    cursor: pointer;
}

/* 广告样式 */
.ad-banner, .ad-sidebar {
    margin: 15px 0;
    text-align: center;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 10px;
    background: #f8f9fa;
}

.ad-label {
    font-size: 10px;
    color: #999;
    margin-bottom: 5px;
}

.ad-popup-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.ad-popup-content {
    background: white;
    border-radius: 15px;
    padding: 20px;
    position: relative;
    max-width: 400px;
    width: 90%;
}

.ad-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.ad-footer {
    margin-top: 15px;
    text-align: center;
}

.ad-footer button {
    background: #667eea;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
}

/* 会员状态详情 */
.membership-status {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e1e5e9;
}

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

.ads-enabled {
    color: #ff6b6b;
    font-size: 12px;
}

.ads-disabled {
    color: #51cf66;
    font-size: 12px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .membership-plans {
        grid-template-columns: 1fr;
    }
    
    .membership-content {
        padding: 20px;
        margin: 10px;
    }
    
    .plan-card {
        padding: 20px;
    }
}