/* ============================================
   PayPal 订阅系统样式 - MBTI 风格
   ============================================ */

/* 订阅模态框 */
.subscription-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* MBTI 风格的内容容器 */
.subscription-modal-content {
    max-width: 1100px;
    width: 98%;
    max-height: 85vh;
    height: auto;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #2d2e38 0%, #252530 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* MBTI 风格的头部 */
.subscription-header {
    background: linear-gradient(135deg, rgba(16, 163, 127, 0.15) 0%, rgba(16, 163, 127, 0.05) 100%);
    border-bottom: 2px solid rgba(16, 163, 127, 0.25);
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.subscription-header h2 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 600;
    color: #ececf1;
}

.subscription-header h2::before {
    content: '👑';
    font-size: 24px;
}

.close-btn {
    background: none;
    border: none;
    color: #8e8ea0;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s;
    font-size: 24px;
    line-height: 1;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ececf1;
}

/* MBTI 风格的主体内容 */
.subscription-body {
    padding: 20px 24px;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: auto;
    padding-right: 24px;
    box-sizing: border-box;
}

.subscription-body::-webkit-scrollbar {
    width: 6px;
}

.subscription-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.subscription-body::-webkit-scrollbar-thumb {
    background: rgba(16, 163, 127, 0.3);
    border-radius: 3px;
}

.subscription-body::-webkit-scrollbar-thumb:hover {
    background: rgba(16, 163, 127, 0.5);
}

/* 套餐容器 - MBTI 风格卡片 */
.plans-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

@media (max-width: 768px) {
    .plans-container {
        grid-template-columns: 1fr;
    }
}

/* MBTI 风格套餐卡片 */
.plan-card {
    background: rgba(32, 33, 35, 0.6);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
}

.plan-card:hover {
    border-color: rgba(16, 163, 127, 0.3);
    background: rgba(32, 33, 35, 0.8);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.plan-card.selected {
    border-color: #10a37f;
    background: linear-gradient(135deg, rgba(16, 163, 127, 0.15) 0%, rgba(16, 163, 127, 0.05) 100%);
    box-shadow: 0 4px 20px rgba(16, 163, 127, 0.2);
}

.plan-card.popular {
    border-color: #f59e0b;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(245, 158, 11, 0.05) 100%);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    font-size: 12px;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

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

.plan-header h3 {
    margin: 0 0 6px 0;
    font-size: 18px;
    font-weight: 600;
    color: #ececf1;
}

.plan-description {
    margin: 0;
    font-size: 13px;
    color: #8e8ea0;
}

.plan-price {
    text-align: center;
    margin-bottom: 16px;
}

.plan-price .price {
    font-size: 36px;
    font-weight: 700;
    color: #10a37f;
}

.plan-price .period {
    font-size: 14px;
    color: #8e8ea0;
}

/* MBTI 风格功能列表 */
.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    font-size: 13px;
    color: #ececf1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.plan-features li .check {
    color: #10a37f;
    font-weight: bold;
    flex-shrink: 0;
}

.plan-features li.not-included {
    color: #6e6e80;
}

.plan-features li.not-included .cross {
    color: #ef4444;
    flex-shrink: 0;
}

/* 选择按钮 - MBTI 风格 */
.select-plan-btn {
    width: 100%;
    padding: 14px 24px;
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: #ececf1;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.select-plan-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
}

.plan-card.selected .select-plan-btn {
    background: linear-gradient(135deg, #10a37f 0%, #0d8c6d 100%);
    border-color: #10a37f;
    color: white;
    box-shadow: 0 4px 16px rgba(16, 163, 127, 0.3);
}

.plan-card.selected .select-plan-btn:hover {
    background: linear-gradient(135deg, #0d8c6d 0%, #0a7558 100%);
    box-shadow: 0 6px 20px rgba(16, 163, 127, 0.4);
    transform: translateY(-2px);
}

/* 价格汇总 - MBTI 风格 */
.price-summary {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 14px;
    color: #8e8ea0;
}

.summary-row:last-child {
    margin-bottom: 0;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.summary-row.total {
    font-size: 16px;
    font-weight: 600;
    color: #ececf1;
}

.summary-row.total .price {
    font-size: 24px;
    font-weight: 700;
    color: #10a37f;
}

/* PayPal 按钮容器 */
#paypal-button-container {
    margin-bottom: 12px;
}

/* 左右布局容器 */
.subscription-layout {
    display: flex;
    gap: 24px;
    align-items: stretch;
}

.subscription-layout .plans-container {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    align-items: stretch;
    margin-bottom: 0;
}

.subscription-layout .plan-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.subscription-layout .plan-card .plan-features {
    flex: 1;
}

.subscription-layout .plan-card .select-plan-btn {
    margin-top: auto;
}

/* 右侧支付面板 */
.payment-panel {
    width: 280px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, rgba(16, 163, 127, 0.08) 0%, rgba(16, 163, 127, 0.02) 100%);
    border: 1px solid rgba(16, 163, 127, 0.2);
    border-radius: 12px;
    padding: 16px;
    align-self: stretch;
}

/* 安全提示 - MBTI 风格 */
.security-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    background: rgba(16, 163, 127, 0.1);
    border-radius: 10px;
    font-size: 12px;
    color: #8e8ea0;
    border: 1px solid rgba(16, 163, 127, 0.2);
    margin-top: auto;
}

.security-notice svg {
    color: #10a37f;
}

/* 订阅状态弹窗 - MBTI 风格 */
.subscription-status-content {
    max-width: 600px;
    width: 90%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #2d2e38 0%, #252530 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
}

/* MBTI风格头部 */
.subscription-status-header {
    background: linear-gradient(135deg, rgba(16, 163, 127, 0.15) 0%, rgba(16, 163, 127, 0.05) 100%);
    border-bottom: 2px solid rgba(16, 163, 127, 0.25);
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.subscription-status-header h2 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 600;
    color: #ececf1;
}

.subscription-status-header h2 svg {
    color: #10a37f;
}

.subscription-status-close {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #8e8ea0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.subscription-status-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ececf1;
}

/* MBTI风格内容区 */
.subscription-status-body {
    padding: 24px;
    flex: 1;
    overflow-y: auto;
}

.subscription-status-body::-webkit-scrollbar {
    width: 6px;
}

.subscription-status-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.subscription-status-body::-webkit-scrollbar-thumb {
    background: rgba(16, 163, 127, 0.3);
    border-radius: 3px;
}

/* 当前套餐卡片 - MBTI风格 */
.mbti-current-plan-card {
    background: linear-gradient(135deg, var(--tier-bg, rgba(16, 163, 127, 0.15)) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid var(--tier-border, rgba(16, 163, 127, 0.3));
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}

.mbti-current-plan-card.active {
    background: linear-gradient(135deg, rgba(16, 163, 127, 0.15) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-color: rgba(16, 163, 127, 0.3);
}

.mbti-current-plan-card.expired {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-color: rgba(239, 68, 68, 0.3);
}

.plan-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.plan-tier-badge {
    padding: 6px 14px;
    background: var(--tier-bg, rgba(16, 163, 127, 0.2));
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--tier-text, #10a37f);
}

.plan-status-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 20px;
}

.plan-status-tag.active {
    background: rgba(16, 163, 127, 0.15);
    color: #10a37f;
}

.plan-status-tag.expired {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

.plan-status-tag.active .status-dot {
    animation: pulse-dot 2s ease-in-out infinite;
}

.plan-card-body {
    text-align: center;
}

.expiry-info-mbti {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.days-remaining {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.days-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--tier-text, #10a37f);
    line-height: 1;
}

.days-label {
    font-size: 16px;
    color: #8e8ea0;
}

.expiry-date-mbti {
    font-size: 14px;
    color: #8e8ea0;
}

.expiry-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-radius: 10px;
    font-size: 14px;
}

.expiry-message.expired {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* 权益网格 - MBTI风格 */
.mbti-features-section {
    margin-bottom: 24px;
}

.mbti-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.mbti-feature-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    opacity: 0;
    animation: fade-in-up 0.4s ease forwards;
}

.mbti-feature-item:hover {
    transform: translateY(-2px);
    border-color: rgba(16, 163, 127, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.feature-icon-wrapper {
    width: 32px;
    height: 32px;
    background: rgba(16, 163, 127, 0.15);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #10a37f;
    flex-shrink: 0;
}

.feature-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.feature-label {
    font-size: 12px;
    color: #8e8ea0;
}

.feature-value {
    font-size: 14px;
    font-weight: 600;
    color: #ececf1;
}

/* 订阅历史 - MBTI风格 */
.mbti-history-section {
    margin-bottom: 24px;
}

.mbti-history-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mbti-history-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    opacity: 0;
    animation: fade-in-up 0.4s ease forwards;
}

.mbti-history-item:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.history-main {
    display: flex;
    align-items: center;
    gap: 12px;
}

.history-tier-badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.history-tier-badge.basic {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.history-tier-badge.pro {
    background: rgba(16, 163, 127, 0.15);
    color: #10a37f;
}

.history-tier-badge.vip {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.history-amount {
    font-size: 14px;
    font-weight: 600;
    color: #ececf1;
}

.history-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.history-date {
    font-size: 12px;
    color: #8e8ea0;
}

.history-status-badge {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
}

.history-status-badge.active {
    background: rgba(16, 163, 127, 0.15);
    color: #10a37f;
}

.history-status-badge.expired {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

/* MBTI风格底部 */
.subscription-status-footer {
    padding: 16px 24px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 当前套餐卡片 */
.current-plan-card {
    background: linear-gradient(135deg, rgba(16, 163, 127, 0.15) 0%, rgba(16, 163, 127, 0.05) 100%);
    border: 1px solid rgba(16, 163, 127, 0.3);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    text-align: center;
}

.current-plan-card h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: #10a37f;
}

.plan-status-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}

.plan-status-badge.active {
    background: rgba(16, 163, 127, 0.2);
    color: #10a37f;
}

.plan-status-badge.expired {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.plan-dates {
    display: flex;
    justify-content: center;
    gap: 32px;
    font-size: 14px;
    color: #8e8ea0;
}

.plan-dates .date-value {
    color: #ececf1;
    font-weight: 500;
}

/* 使用统计 */
.usage-stats {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.usage-stats h4 {
    margin: 0 0 16px 0;
    font-size: 15px;
    color: #ececf1;
}

.usage-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.usage-bar .usage-fill {
    height: 100%;
    background: linear-gradient(90deg, #10a37f, #0d8c6d);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.usage-text {
    font-size: 13px;
    color: #8e8ea0;
    text-align: right;
}

/* 历史记录 */
.history-section {
    margin-bottom: 24px;
}

.history-section h4 {
    margin: 0 0 16px 0;
    font-size: 15px;
    color: #ececf1;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.history-tier {
    font-weight: 600;
    color: #ececf1;
}

.history-amount {
    color: #10a37f;
    font-weight: 600;
}

.history-date {
    font-size: 13px;
    color: #8e8ea0;
}

.history-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.history-status.active {
    background: rgba(16, 163, 127, 0.2);
    color: #10a37f;
}

.history-status.expired {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

/* 按钮 - MBTI 风格 */
.subscription-modal .btn-primary,
.payment-success-modal .btn-primary {
    background: linear-gradient(135deg, #10a37f 0%, #0d8c6d 100%);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(16, 163, 127, 0.3);
}

.subscription-modal .btn-primary:hover,
.payment-success-modal .btn-primary:hover {
    background: linear-gradient(135deg, #0d8c6d 0%, #0a7558 100%);
    box-shadow: 0 6px 20px rgba(16, 163, 127, 0.4);
    transform: translateY(-2px);
}

.subscription-modal .btn-full,
.payment-success-modal .btn-full {
    width: 100%;
}

/* 用户菜单中的订阅项 */
.user-menu-item[data-action="subscription"] {
    color: #f59e0b;
}

.user-menu-item[data-action="subscription"] .menu-item-icon {
    color: #f59e0b;
}

/* 支付成功弹窗 - MBTI风格 */
.payment-success-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.payment-success-modal.show {
    opacity: 1;
}

/* MBTI风格卡片 */
.payment-success-card {
    max-width: 520px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #2d2e38 0%, #252530 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.payment-success-modal.show .payment-success-card {
    transform: scale(1);
}

/* MBTI风格头部 */
.payment-success-header {
    background: linear-gradient(135deg, rgba(16, 163, 127, 0.15) 0%, rgba(16, 163, 127, 0.05) 100%);
    border-bottom: 2px solid rgba(16, 163, 127, 0.25);
    padding: 24px;
    position: relative;
}

.success-header-bg {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.success-icon-mbti {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #10a37f 0%, #0d8c6d 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 16px;
    box-shadow: 0 8px 24px rgba(16, 163, 127, 0.3);
}

.payment-success-header h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 600;
    color: #ececf1;
}

.payment-success-header h2 svg {
    color: #10a37f;
}

.header-subtitle {
    margin: 0;
    font-size: 14px;
    color: #8e8ea0;
}

.payment-success-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #8e8ea0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-success-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ececf1;
}

/* MBTI风格内容区 */
.payment-success-body {
    padding: 24px;
    flex: 1;
    overflow: hidden;
}

/* 会员信息卡片 - MBTI风格 */
.mbti-membership-card {
    background: linear-gradient(135deg, var(--tier-bg, rgba(16, 163, 127, 0.1)) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid var(--tier-border, rgba(16, 163, 127, 0.2));
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.membership-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.tier-badge-large {
    padding: 6px 14px;
    background: var(--tier-bg, rgba(16, 163, 127, 0.2));
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--tier-text, #10a37f);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #10a37f;
}

.status-pulse {
    width: 8px;
    height: 8px;
    background: #10a37f;
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.membership-price-mbti {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
}

.membership-price-mbti .currency {
    font-size: 20px;
    font-weight: 600;
    color: var(--tier-text, #10a37f);
}

.membership-price-mbti .amount {
    font-size: 36px;
    font-weight: 700;
    color: #ececf1;
}

.membership-price-mbti .period {
    font-size: 14px;
    color: #8e8ea0;
}

/* 权益网格 - MBTI风格 */
.mbti-benefits-section {
    margin-bottom: 20px;
}

.section-title-mbti {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px 0;
    font-size: 15px;
    font-weight: 600;
    color: #ececf1;
}

.mbti-benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.mbti-benefit-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    opacity: 0;
    animation: fade-in-up 0.4s ease forwards;
}

.mbti-benefit-card:hover {
    transform: translateY(-2px);
    border-color: rgba(16, 163, 127, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.benefit-icon-mbti {
    width: 28px;
    height: 28px;
    background: rgba(16, 163, 127, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #10a37f;
    flex-shrink: 0;
}

.benefit-name {
    font-size: 13px;
    color: #c5c5d2;
    line-height: 1.4;
}

/* MBTI风格提示框 */
.mbti-note-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(16, 163, 127, 0.08);
    border: 1px solid rgba(16, 163, 127, 0.15);
    border-radius: 10px;
    font-size: 13px;
    color: #8e8ea0;
}

.mbti-note-box svg {
    color: #10a37f;
    flex-shrink: 0;
}

/* MBTI风格底部 */
.payment-success-footer {
    padding: 16px 24px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mbti-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #10a37f 0%, #0d8c6d 100%);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(16, 163, 127, 0.3);
}

.mbti-btn-primary:hover {
    background: linear-gradient(135deg, #0d8c6d 0%, #0a7558 100%);
    box-shadow: 0 6px 20px rgba(16, 163, 127, 0.4);
    transform: translateY(-1px);
}

.mbti-btn-secondary {
    width: 100%;
    padding: 12px 24px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: #8e8ea0;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mbti-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.25);
    color: #ececf1;
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式 */
@media (max-width: 768px) {
    .subscription-modal-content {
        width: 100%;
        height: 100%;
        max-height: 100vh;
        border-radius: 0;
        min-height: auto;
    }
    
    .subscription-header {
        padding: 16px 20px;
    }
    
    .subscription-header h2 {
        font-size: 18px;
    }
    
    .subscription-body {
        padding: 20px;
    }
    
    .subscription-layout {
        flex-direction: column;
    }
    
    .subscription-layout .plans-container {
        grid-template-columns: 1fr;
    }
    
    .payment-panel {
        width: 100%;
    }
    
    .plans-container {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .plan-card {
        padding: 20px;
    }
    
    .plan-price .price {
        font-size: 28px;
    }
    
    .price-summary {
        padding: 16px 20px;
    }
    
    .summary-row.total .price {
        font-size: 24px;
    }
}

/* PayPal SDK 加载状态 */
.paypal-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    gap: 16px;
    color: #8e8ea0;
}

.paypal-loading .loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(16, 163, 127, 0.2);
    border-top-color: #10a37f;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* PayPal SDK 加载错误 */
.paypal-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
}

.paypal-error .error-title {
    font-size: 18px;
    font-weight: 600;
    color: #ef4444;
    margin: 16px 0 8px;
}

.paypal-error .error-desc {
    font-size: 14px;
    color: #ececf1;
    margin: 0 0 8px;
}

.paypal-error .error-hint {
    font-size: 12px;
    color: #8e8ea0;
    margin: 0 0 20px;
}

.paypal-error .retry-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #10a37f 0%, #0d8c6d 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(16, 163, 127, 0.3);
}

.paypal-error .retry-btn:hover {
    background: linear-gradient(135deg, #0d8c6d 0%, #0a7558 100%);
    box-shadow: 0 6px 16px rgba(16, 163, 127, 0.4);
    transform: translateY(-2px);
}
