/* 剧本豆 - 顶部状态栏美化 */
.header-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.beans-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 20px;
    padding: 0.35rem 0.5rem 0.35rem 0.8rem;
    gap: 0.8rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

.beans-badge:hover {
    background: rgba(102, 126, 234, 0.15);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.15);
}

.beans-icon {
    font-size: 1.2rem;
    line-height: 1;
}

.beans-count {
    color: #e4e7f1;
    font-weight: 700;
    font-size: 1.1rem;
    font-family: 'Inter', monospace;
    min-width: 2ch;
    text-align: center;
}

.btn-recharge-sm {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    padding: 0.4rem 1rem;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
}

.btn-recharge-sm:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.5);
    filter: brightness(1.1);
}

/* 充值弹窗样式优化 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: #1e2433;
    border: 1px solid #2a3142;
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.modal-header h3 {
    margin: 0;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.5rem;
}

.close-modal {
    font-size: 1.5rem;
    color: #a0a8c1;
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover {
    color: white;
}

.recharge-info {
    text-align: center;
    margin-bottom: 2rem;
    color: #a0a8c1;
}

.recharge-info strong {
    color: #e4e7f1;
    display: block;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.qr-code-box {
    background: #131720;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    border: 2px dashed #2a3142;
}

.redeem-section {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.redeem-input {
    flex: 1;
    background: #131720;
    border: 1px solid #2a3142;
    padding: 0.75rem;
    border-radius: 8px;
    color: white;
    font-size: 1rem;
}

.redeem-input:focus {
    outline: none;
    border-color: #667eea;
}

.btn-redeem {
    background: #667eea;
    border: none;
    border-radius: 8px;
    color: white;
    padding: 0 1.5rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.redeem-message {
    text-align: center;
    height: 1.5rem;
    font-size: 0.9rem;
}

.tool-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn-tool {
    background: transparent;
    border: 1px solid var(--border-color);
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-tool:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent-purple);
    color: var(--text-primary);
    transform: translateY(-1px);
}