:root {
    --primary-color: #6366f1;
    --primary-hover: #8b5cf6;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-sidebar: #ffffff;
    --bg-hover: #f1f5f9;
    --bg-active: #e0e7ff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --danger-color: #ef4444;
    --success-color: #22c55e;
    --warning-color: #f59e0b;
}

[data-theme="dark"] {
    --primary-color: #818cf8;
    --primary-hover: #6366f1;
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-sidebar: #1e293b;
    --bg-hover: #334155;
    --bg-active: #1e1b4b;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border-color: #334155;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
}

@media (prefers-color-scheme: dark) {
    [data-theme="system"] {
        --primary-color: #818cf8;
        --primary-hover: #6366f1;
        --bg-primary: #0f172a;
        --bg-secondary: #1e293b;
        --bg-sidebar: #1e293b;
        --bg-hover: #334155;
        --bg-active: #1e1b4b;
        --text-primary: #f1f5f9;
        --text-secondary: #94a3b8;
        --text-muted: #64748b;
        --border-color: #334155;
        --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
        --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
        --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow: hidden;
}

.app-container {
    display: flex;
    height: 100%;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: width 0.3s;
    flex-shrink: 0;
}

.sidebar.collapsed {
    width: 60px;
}

.sidebar.collapsed .logo-text,
.sidebar.collapsed .action-btn span,
.sidebar.collapsed .conv-title,
.sidebar.collapsed .conv-info,
.sidebar.collapsed .footer-btn span,
.sidebar.collapsed .conv-meta,
.sidebar.collapsed .sub-info {
    display: none;
}

.sidebar.collapsed .conv-header {
    justify-content: center;
}

.sidebar.collapsed .conversation-item {
    padding: 8px;
    justify-content: center;
}

.sidebar.collapsed .conv-actions {
    opacity: 1;
    position: static;
}

.sidebar-header {
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-color);
}

.logo .main-logo {
    width: 32px;
    height: 32px;
    color: var(--primary-color);
}

.logo-text {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.sidebar-actions {
    padding: 12px;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.action-btn svg {
    width: 16px;
    height: 16px;
}

.action-btn.primary {
    background: var(--primary-color);
    color: white;
}

.action-btn.primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

/* Subscription Status Badge */
.subscription-status {
    padding: 0 12px 8px;
}

.sub-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: linear-gradient(135deg, rgba(99,102,241,0.08) 0%, rgba(139,92,246,0.08) 100%);
    border: 1px solid rgba(99,102,241,0.2);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.sub-badge:hover {
    background: linear-gradient(135deg, rgba(99,102,241,0.12) 0%, rgba(139,92,246,0.12) 100%);
}

.sub-icon {
    width: 20px;
    height: 20px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.sub-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sub-plan {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sub-count {
    font-size: 11px;
    color: var(--text-muted);
}

.conversation-section {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.conv-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-color);
}

.conv-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.toggle-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s;
    font-size: 13px;
    font-weight: 600;
    width: 100%;
    justify-content: space-between;
}

.toggle-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.toggle-btn svg {
    width: 14px;
    height: 14px;
    transition: transform 0.2s;
}

.toggle-btn.collapsed svg {
    transform: rotate(-90deg);
}

.toggle-btn span {
    flex: 1;
    text-align: left;
}

.conversation-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

.conversation-list::-webkit-scrollbar {
    width: 6px;
}

.conversation-list::-webkit-scrollbar-track {
    background: transparent;
}

.conversation-list::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.conversation-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 4px;
}

.conversation-item:hover {
    background: var(--bg-hover);
}

.conversation-item.active {
    background: var(--bg-active);
}

.conv-info {
    flex: 1;
    overflow: hidden;
}

.conv-name {
    font-size: 14px;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.conv-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.conv-actions {
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.2s;
}

.conversation-item:hover .conv-actions {
    opacity: 1;
}

.conv-action-btn {
    background: transparent;
    border: none;
    padding: 4px;
    border-radius: 4px;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.2s;
}

.conv-action-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.conv-action-btn svg {
    width: 14px;
    height: 14px;
}

.conv-action-btn.delete:hover {
    color: #ef4444;
}

.empty-state {
    text-align: center;
    padding: 24px;
    color: var(--text-muted);
    font-size: 13px;
}

.sidebar-footer {
    padding: 12px;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    z-index: 10;
    flex-shrink: 0;
}

.footer-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 13px;
}

.footer-btn:hover {
    background: var(--bg-hover);
    border-color: var(--text-muted);
}

.footer-btn.primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.footer-btn.primary:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
}

.footer-btn svg {
    width: 16px;
    height: 16px;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--bg-secondary);
    min-width: 0;
}

.chat-view {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

/* Welcome Screen */
.welcome-screen {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.welcome-content {
    text-align: center;
    max-width: 600px;
}

.welcome-logo {
    margin-bottom: 24px;
}

.welcome-content .main-logo {
    width: 80px;
    height: 80px;
    color: var(--primary-color);
}

.welcome-content h1 {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.welcome-desc {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.mode-section {
    margin-bottom: 32px;
}

.mode-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.free-trial-section {
    margin-top: 20px;
    text-align: center;
}

.free-trial-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: linear-gradient(135deg, #7c7cff 0%, #5ddb8a 100%);
    border: none;
    border-radius: 100px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    box-shadow: 0 4px 20px rgba(124,124,255,0.2);
}

.free-trial-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(124,124,255,0.35);
}

.free-trial-icon {
    font-size: 18px;
}

.free-trial-section.hidden {
    display: none;
}

.mode-hint {
    display: none;
}

.quick-guide {
    margin-top: 16px;
}

.quick-guide h3 {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 12px;
    text-align: center;
}

.guide-items {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.guide-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.guide-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border-radius: 50%;
    font-size: 11px;
    font-weight: 500;
    flex-shrink: 0;
}

.guide-item span:last-child {
    font-size: 13px;
    color: var(--text-secondary);
}

.welcome-input-area {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    margin-top: 24px;
    padding: 10px 14px;
    background: var(--bg-primary);
    border: 1.5px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.welcome-input-area .input-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.image-preview {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    background: var(--bg-secondary);
    border-radius: 8px;
    max-width: 200px;
}

.image-preview img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
}

.image-preview .preview-info {
    flex: 1;
    font-size: 12px;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.image-preview .preview-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: transparent;
    border: none;
    border-radius: 4px;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.image-preview .preview-remove:hover {
    background: var(--bg-hover);
    color: #ef4444;
}

.image-preview.hidden {
    display: none;
}

.welcome-input-area textarea,
.welcome-textarea {
    flex: 1;
    padding: 12px 12px 12px 40px;
    background: transparent;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    resize: none;
    outline: none;
    font-family: inherit;
}

.welcome-input-area textarea:focus,
.welcome-textarea:focus {
    background: var(--bg-secondary);
}

.welcome-input-area textarea::placeholder,
.welcome-textarea::placeholder {
    color: var(--text-muted);
}

.welcome-input-area .send-button,
.welcome-send-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.welcome-input-area .send-button:hover,
.welcome-send-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.welcome-input-area .send-button:active,
.welcome-send-btn:active {
    transform: translateY(0);
}

.welcome-input-area .send-button svg,
.welcome-send-btn svg {
    width: 18px;
    height: 18px;
}

/* Usage Guide */
.usage-guide {
    text-align: left;
    padding: 20px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.usage-guide h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.usage-guide ul {
    list-style: none;
    padding: 0;
}

.usage-guide li {
    font-size: 14px;
    color: var(--text-secondary);
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.usage-guide li:last-child {
    border-bottom: none;
}

/* Chat Interface */
.chat-interface {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--bg-primary);
    min-height: 0;
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-primary);
}

.chat-header h2 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.header-actions {
    display: flex;
    gap: 8px;
}

.header-btn {
    padding: 8px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.header-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.header-btn svg {
    width: 18px;
    height: 18px;
}

.message-container {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.message-container::-webkit-scrollbar {
    width: 6px;
}

.message-container::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

.message-container::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.message {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
    max-width: 80%;
}

.message.user {
    align-items: flex-end;
}

.message.assistant {
    align-items: flex-start;
}

.message-content {
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.6;
    word-break: break-word;
}

.message.user .message-content {
    background: var(--primary-color);
    color: white;
    border-bottom-right-radius: 4px;
}

.message.user .message-content .message-image {
    display: block;
    max-width: 200px;
    max-height: 200px;
    border-radius: 8px;
    margin-bottom: 4px;
}

.message.assistant .message-content {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
    border: 1px solid var(--border-color);
}

.message-time {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
    padding: 0 4px;
}

.message.user .message-time {
    text-align: right;
}

.message.assistant .message-time {
    text-align: left;
}

.msg-copy-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 4px;
}

.msg-copy-btn svg {
    width: 13px;
    height: 13px;
}

.message:hover .msg-copy-btn {
    display: inline-flex;
}

.msg-copy-btn:hover {
    background: var(--bg-hover);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.msg-feedback .msg-copy-btn {
    display: flex;
    float: none;
    margin: 0;
    border-color: rgba(128,128,128,0.3);
    color: rgba(128,128,128,0.6);
}

.message.user .msg-copy-btn {
    float: right;
    margin-left: 6px;
}

/* Thinking Indicator */
.thinking-message {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border-radius: 16px;
    border-bottom-left-radius: 4px;
    border: 1px solid var(--border-color);
}

.thinking-dots {
    display: flex;
    gap: 4px;
}

.thinking-dots span {
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: thinking 1.4s infinite ease-in-out both;
}

.thinking-dots span:nth-child(1) { animation-delay: 0s; }
.thinking-dots span:nth-child(2) { animation-delay: 0.2s; }
.thinking-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes thinking {
    0%, 80%, 100% { transform: scale(0); opacity: 0.5; }
    40% { transform: scale(1); opacity: 1; }
}

/* Chat Input */
.chat-input-area {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    padding: 12px 20px 16px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-primary);
}

.chat-input-area .input-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.input-row {
    position: relative;
    display: flex;
    align-items: flex-end;
}

.input-row #messageInput {
    width: 100%;
    padding: 12px 18px 12px 44px;
    background: var(--bg-secondary);
    border: 1.5px solid var(--border-color);
    border-radius: 14px;
    font-size: 14px;
    color: var(--text-primary);
    resize: none;
    outline: none;
    transition: all 0.2s;
    font-family: inherit;
    min-height: 44px;
    max-height: 120px;
    line-height: 1.5;
}

.input-row #messageInput:focus {
    border-color: var(--primary-color);
    background: var(--bg-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.08);
}

.input-row #messageInput::placeholder {
    color: var(--text-muted);
}

.input-row .upload-button,
.welcome-upload-btn {
    position: absolute;
    right: auto;
    left: 6px;
    bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.input-row .upload-button:hover,
.welcome-upload-btn:hover {
    background: var(--bg-hover);
    color: var(--primary-color);
}

.input-row .upload-button:active,
.welcome-upload-btn:active {
    transform: scale(0.92);
}

.input-row .upload-button svg,
.welcome-upload-btn svg {
    width: 16px;
    height: 16px;
}

.welcome-input-area .send-button,
.chat-input-area .send-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #818cf8 100%);
    border: none;
    border-radius: 12px;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
    margin-bottom: 2px;
}

.welcome-input-area .send-button:hover,
.chat-input-area .send-button:hover {
    transform: translateY(-1px) scale(1.04);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35);
}

.welcome-input-area .send-button:active,
.chat-input-area .send-button:active {
    transform: translateY(0) scale(0.96);
    box-shadow: 0 1px 4px rgba(99, 102, 241, 0.2);
}

.welcome-input-area .send-button svg,
.chat-input-area .send-button svg {
    width: 18px;
    height: 18px;
    margin-left: 2px;
}

.chat-input-area .stop-button {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    margin-left: 6px;
}

.chat-input-area .stop-button:hover {
    transform: translateY(-1px) scale(1.04);
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.35);
}

.chat-input-area .stop-button svg {
    width: 16px;
    height: 16px;
    margin-left: 0;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex !important;
    z-index: 1000 !important;
    background: rgba(0, 0, 0, 0.7) !important;
    backdrop-filter: blur(5px);
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
}

.modal-content {
    position: relative !important;
    background: var(--bg-primary);
    margin: auto !important;
    border-radius: 16px;
    width: 420px;
    max-width: 90%;
    max-height: 85vh;
    overflow: visible;
    box-shadow: var(--shadow-lg);
    z-index: 1002;
}

.modal-header {
    padding: 24px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    background: var(--bg-primary);
    z-index: 1003;
}

.modal-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-body {
    padding: 24px;
    max-height: calc(85vh - 120px);
    overflow-y: auto;
}

/* Auth Modal */
.auth-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.auth-tab {
    flex: 1;
    padding: 10px;
    background: transparent;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.auth-tab:hover {
    background: var(--bg-hover);
}

.temp-modal {
    z-index: 1001 !important;
}

.temp-modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-primary);
    padding: 24px;
    border-radius: 16px;
    z-index: 100002;
    color: var(--text-primary);
}

.auth-tab.active {
    background: var(--primary-color);
    color: white;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-form input {
    padding: 12px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 14px;
    color: var(--text-primary);
    outline: none;
    transition: all 0.2s;
}

.auth-form input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.auth-form input::placeholder {
    color: var(--text-muted);
}

.auth-submit {
    padding: 14px;
    background: var(--primary-color);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.auth-submit:hover {
    background: var(--primary-hover);
}

/* Subscribe Modal */
.subscribe-content {
    max-width: min(960px, 95vw) !important;
    width: auto !important;
}

/* 裂变邀请区 */
.referral-section {
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.referral-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    color: white;
}

.referral-banner h4 {
    margin: 0 0 8px 0;
    font-size: 18px;
}

/* Partner Recruitment */
.partner-recruit-section {
    margin: 24px 0;
}

.partner-recruit-banner {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    color: white;
    border: 1px solid rgba(255,255,255,0.1);
}

.partner-recruit-icon {
    margin-bottom: 12px;
}

.partner-recruit-icon svg {
    width: 40px;
    height: 40px;
    color: #7c7cff;
}

.partner-recruit-banner h4 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
}

.partner-recruit-banner p {
    font-size: 13px;
    opacity: 0.8;
    margin: 0 0 16px 0;
}

.partner-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
    text-align: left;
    display: inline-block;
}

.partner-benefits li {
    font-size: 13px;
    padding: 4px 0;
    padding-left: 20px;
    position: relative;
}

.partner-benefits li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #5ddb8a;
}

.partner-recruit-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #7c7cff 0%, #5ddb8a 100%);
    border: none;
    border-radius: 100px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.partner-recruit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(124,124,255,0.3);
}

.partner-recruit-btn svg {
    width: 16px;
    height: 16px;
}

.partner-disclaimer {
    font-size: 11px !important;
    opacity: 0.5 !important;
    margin-top: 12px !important;
    margin-bottom: 0 !important;
}

.referral-banner p {
    margin: 0 0 12px 0;
    font-size: 14px;
}

.referral-code-box {
    margin-top: 16px;
    padding: 12px;
    background: rgba(255,255,255,0.15);
    border-radius: 10px;
}

.ref-label {
    display: block;
    font-size: 12px;
    opacity: 0.8;
    margin-bottom: 6px;
}

.ref-code-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.ref-code {
    font-size: 22px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
}

.ref-copy-btn {
    padding: 4px 14px;
    background: var(--bg-primary);
    color: #667eea;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.ref-copy-btn:hover {
    transform: scale(1.05);
}

.ref-copy-btn.copied {
    background: #22c55e;
    color: white;
}

.referral-share {
    margin-top: 12px;
    text-align: center;
}

.referral-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: var(--bg-primary);
    color: #667eea;
    border: 1px solid rgba(102,126,234,0.3);
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    font-family: inherit;
}

.referral-share-btn:hover {
    background: rgba(102,126,234,0.05);
    border-color: #667eea;
}

.referral-share-btn svg {
    width: 16px;
    height: 16px;
}

.referral-guide {
    margin-top: 16px;
    padding: 18px 20px;
    background: linear-gradient(135deg, rgba(20, 20, 40, 0.95) 0%, rgba(30, 20, 50, 0.95) 100%);
    border: 1px solid rgba(102, 126, 234, 0.5);
    border-radius: 12px;
    text-align: left;
    font-size: 14px;
    line-height: 1.8;
    color: #ffffff;
    display: block !important;
    overflow: visible;
    min-height: 220px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.referral-guide p {
    margin: 4px 0;
    color: #d0d0d0;
}

.referral-guide strong {
    color: #ffffff;
    font-weight: 600;
}

.referral-guide h4 {
    margin: 0 0 12px 0;
    font-size: 14px;
    font-weight: 600;
    color: white;
}

.ref-guide-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}

.ref-guide-step {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: white;
}

.ref-guide-content {
    flex: 1;
}

.ref-guide-content strong {
    display: block;
    font-size: 13px;
    margin-bottom: 2px;
}

.ref-guide-content p {
    margin: 0;
    font-size: 13px;
    line-height: 1.7;
    color: #d8d8d8;
}

.ref-guide-divider {
    height: 1px;
    background: rgba(102, 126, 234, 0.4);
    margin: 16px 0;
}

.ref-guide-benefit {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3) 0%, rgba(118, 75, 162, 0.25) 100%);
    padding: 14px;
    border-radius: 10px;
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.ref-guide-benefit p {
    margin: 4px 0;
    font-size: 13px;
    color: #e0e0e0;
}

.referral-btn {
    background: var(--bg-primary);
    color: #667eea;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.referral-btn:hover {
    transform: scale(1.05);
}

.subscribe-plans {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 16px;
}

.subscribe-plan {
    position: relative;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 28px 20px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.subscribe-plan:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.subscribe-plan.featured {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    border-color: var(--primary-color);
    color: white;
    border-width: 2px;
    box-shadow: 0 6px 24px rgba(99, 102, 241, 0.3);
}

.subscribe-plan.featured:hover {
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.4);
}

.featured-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 16px;
    background: var(--primary-color);
    color: white;
    font-size: 12px;
    font-weight: 700;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.subscribe-plan h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.plan-price {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 4px;
    letter-spacing: -1px;
}

.period {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-muted);
    margin-left: 2px;
}

.subscribe-plan.featured .period {
    color: rgba(255, 255, 255, 0.8);
}

.plan-quota {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
    min-height: 1.2em;
}

.subscribe-plan.featured .plan-quota {
    color: rgba(255, 255, 255, 0.85);
}

.subscribe-plan ul {
    list-style: none;
    padding: 0;
    margin: 0 0 auto 0;
    text-align: left;
    padding: 0 4px;
}

.subscribe-plan li {
    padding: 7px 0;
    font-size: 13px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    padding-left: 16px;
}

.subscribe-plan li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
}

.subscribe-plan.featured li::before {
    color: rgba(255, 255, 255, 0.9);
}

.subscribe-plan li:last-child {
    border-bottom: none;
}

.subscribe-plan.featured li {
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.2);
}

.plan-note {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.subscribe-plan.featured .plan-note {
    color: rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 0.2);
}

/* 方案标签 */
.plan-tag {
    position: absolute;
    top: -8px;
    right: 12px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 12px;
}

.premium-tag {
    background: #f59e0b;
    color: white;
}

/* 邀请统计 */
.referral-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.stat-item {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
}

.referral-friends {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.friends-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.friends-list {
    max-height: 180px;
    overflow-y: auto;
}

.friends-empty {
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
    padding: 12px;
}

.friend-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: var(--bg-secondary);
    border-radius: 8px;
    margin-bottom: 6px;
}

.friend-email {
    font-size: 13px;
    color: var(--text-primary);
}

.friend-status {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 10px;
}

.friend-status.paid {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.friend-status.pending {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

/* 响应式调整 */
@media (max-width: 1024px) {
    .subscribe-plans {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .subscribe-plans {
        grid-template-columns: 1fr;
    }
    
    .referral-stats {
        flex-direction: column;
        gap: 20px;
    }
}

/* Settings Modal - 响应式缩放 */
.settings-content {
    max-width: min(900px, 95vw) !important;
    width: auto !important;
    min-width: 320px;
    max-height: 90vh;
    overflow: visible !important;
    display: flex;
    flex-direction: column;
}

.settings-body {
    display: flex;
    flex: 1;
    overflow: visible;
    min-height: 0;
}

/* 反馈功能样式 */
.feedback-form {
    padding: 16px 0;
}

.setting-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 14px;
    resize: vertical;
    min-height: 100px;
}

.setting-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.feedback-list {
    max-height: 300px;
    overflow-y: auto;
}

.feedback-item {
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: 8px;
    margin-bottom: 12px;
}

.feedback-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.feedback-type {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px;
    background: var(--primary-color);
    color: white;
}

.feedback-type.bug {
    background: #ef4444;
}

.feedback-type.suggestion {
    background: #22c55e;
}

.feedback-time {
    font-size: 12px;
    color: var(--text-muted);
}

.feedback-content {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.feedback-status {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
}

.settings-sidebar {
    width: 160px;
    padding: 12px 0;
    border-right: 1px solid var(--border-color);
    background: var(--bg-sidebar);
    flex-shrink: 0;
}

.settings-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 16px;
    border: none;
    background: none;
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.settings-nav svg {
    width: 16px;
    height: 16px;
}

.settings-nav:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.settings-nav.active {
    background: var(--bg-hover);
    color: var(--text-primary);
    font-weight: 600;
    border-left: 2px solid var(--primary-color);
}

.settings-main {
    flex: 1;
    padding: 20px 24px;
    overflow-y: auto;
    background: var(--bg-secondary);
    min-height: 400px;
}

.settings-section {
    display: block;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-item.toggle-item {
    align-items: flex-start;
}

.setting-label {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
}

.setting-value {
    font-size: 14px;
    color: var(--text-secondary);
}

.setting-value-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.setting-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.setting-action {
    padding: 16px 0;
}

.toggle-content {
    flex: 1;
}

.toggle-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
    line-height: 1.4;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.2s;
    border-radius: 24px;
}

.toggle-switch .slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.2s;
    border-radius: 50%;
}

.toggle-switch input:checked + .slider {
    background-color: var(--primary-color);
}

.toggle-switch input:checked + .slider:before {
    transform: translateX(20px);
}

.setting-select {
    padding: 8px 32px 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
}

.link-btn {
    padding: 4px 8px;
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 13px;
    cursor: pointer;
    text-decoration: underline;
}

.link-btn:hover {
    opacity: 0.8;
}

.action-btn {
    padding: 10px 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.action-btn:hover {
    background: var(--bg-hover);
}

.action-btn.secondary {
    border-color: var(--border-color);
    background: var(--bg-primary);
}

.action-btn.danger {
    border-color: #ef4444;
    color: #ef4444;
    background: var(--bg-primary);
}

.action-btn.danger:hover {
    background: rgba(239, 68, 68, 0.05);
}

.theme-options {
    display: flex;
    gap: 12px;
}

.theme-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 24px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-primary);
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 100px;
}

.theme-option svg {
    width: 20px;
    height: 20px;
}

.theme-option:hover {
    border-color: var(--primary-color);
    color: var(--text-primary);
}

.theme-option.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 14px;
    color: var(--text-primary);
    outline: none;
    transition: all 0.2s;
}

.form-group input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group input:disabled {
    background: var(--bg-hover);
    color: var(--text-muted);
    cursor: not-allowed;
}

/* Theme Options */
.theme-options {
    display: flex;
    gap: 12px;
}

.theme-option {
    flex: 1;
    padding: 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.theme-option:hover {
    border-color: var(--primary-color);
}

.theme-option.active {
    background: var(--bg-active);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Toggle Item */
.toggle-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    cursor: pointer;
}

.toggle-item input[type="checkbox"] {
    width: 48px;
    height: 26px;
    position: relative;
    appearance: none;
    background: var(--border-color);
    border-radius: 26px;
    cursor: pointer;
    transition: all 0.3s;
}

.toggle-item input[type="checkbox"]::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle-item input[type="checkbox"]:checked {
    background: var(--primary-color);
}

.toggle-item input[type="checkbox"]:checked::before {
    transform: translateX(22px);
}

.toggle-item span:first-of-type {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.toggle-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-left: auto;
}

/* Data Actions */
.data-action {
    display: block;
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.data-action:hover {
    background: var(--bg-hover);
    border-color: var(--text-muted);
}

.data-action.danger {
    background: rgba(239, 68, 68, 0.05);
    border-color: #fecaca;
    color: #dc2626;
}

.data-action.danger:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: #fca5a5;
}

/* About Links */
.about-link {
    display: block;
    width: 100%;
    padding: 12px;
    background: transparent;
    border: none;
    text-align: left;
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.about-link:hover {
    text-decoration: underline;
}

/* Agreement Body */
.agreement-body {
    max-height: 400px;
    overflow-y: auto;
}

#agreementModal .modal-content {
    width: 640px;
    max-width: 90%;
}

.agreement-body h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 20px;
    margin-bottom: 12px;
}

.agreement-body h3:first-child {
    margin-top: 0;
}

.agreement-body p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 12px;
}

.agreement-body ul {
    margin: 0 0 12px 20px;
    padding: 0;
}

.agreement-body li {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 8px;
}

/* ==================== 支付弹窗 ==================== */

.payment-content {
    max-width: 420px;
    width: 90%;
}

.payment-body {
    text-align: center;
}

.payment-info {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 24px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: 12px;
}

.payment-plan, .payment-amount, .payment-channel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.payment-plan-label, .payment-amount-label, .payment-channel-label {
    font-size: 12px;
    color: var(--text-muted);
}

.payment-channel-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.payment-plan-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.payment-amount-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

.payment-qr-wrapper {
    margin: 24px auto;
    max-width: 240px;
}

.payment-qr-image {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.payment-qr-hint {
    margin-top: 12px;
    font-size: 14px;
    color: var(--text-secondary);
}

.payment-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 20px;
}

.payment-confirm-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.payment-confirm-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}

.payment-cancel-btn {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.payment-cancel-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.payment-success {
    text-align: center;
    padding: 20px;
}

.payment-success-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: bold;
}

.payment-success p {
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.payment-success-hint {
    font-size: 12px;
    color: var(--text-muted);
}

/* ==================== 支付管理（设置面板） ==================== */

.settings-qr-preview {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.settings-qr-preview.hidden {
    display: none;
}

.settings-qr-status {
    font-size: 13px;
    color: var(--text-muted);
}

.settings-qr-status.active {
    color: #22c55e;
    font-weight: 500;
}

.payment-setting-qr {
    display: flex;
    align-items: center;
    gap: 12px;
}

.settings-empty-hint {
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
    padding: 12px;
}

.pending-payments-list {
    flex: 1;
}

.pending-payment-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    background: var(--bg-secondary);
    border-radius: 8px;
    margin-bottom: 8px;
}

.pp-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.pp-email {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
}

.pp-plan {
    font-size: 12px;
    color: var(--text-primary);
}

.pp-amount {
    font-size: 12px;
    color: var(--primary-color);
    font-weight: 600;
}

.pp-time {
    font-size: 11px;
    color: var(--text-muted);
}

.pp-verify-btn {
    padding: 6px 14px;
    background: var(--primary-color);
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
    font-family: inherit;
}

.pp-verify-btn:hover {
    background: var(--primary-hover);
}

/* ==================== 营收面板 ==================== */

.section-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.revenue-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.revenue-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 12px;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.rev-label {
    font-size: 12px;
    color: var(--text-muted);
}

.rev-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
}

.revenue-card.verified .rev-value {
    color: #22c55e;
}

.revenue-card.pending-card .rev-value {
    color: #f59e0b;
}

.payment-table-wrapper {
    overflow-x: auto;
    margin-bottom: 16px;
}

.payment-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.payment-table th {
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 2px solid var(--border-color);
    white-space: nowrap;
}

.payment-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.payment-table tr:hover td {
    background: var(--bg-hover);
}

.payment-table .table-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 24px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge.verified {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.status-badge.pending {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.table-verify-btn {
    padding: 4px 12px;
    background: var(--primary-color);
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.table-verify-btn:hover {
    background: var(--primary-hover);
}

.table-verify-btn:disabled {
    background: var(--border-color);
    color: var(--text-muted);
    cursor: default;
}

/* Notification */
.notification {
    position: fixed;
    top: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: var(--bg-primary);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    z-index: 1003;
    transform: translateX(120%);
    transition: transform 0.3s;
}

.notification.show {
    transform: translateX(0);
}

.notification-icon {
    font-size: 18px;
}

.notification-text {
    font-size: 14px;
    color: var(--text-primary);
}

/* Login Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: var(--bg-primary);
    border-radius: 16px;
    padding: 32px;
    width: 420px;
    max-width: 90%;
    max-height: 85vh;
    overflow: visible;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 1002;
    animation: slideUp 0.3s ease;
}

.subscribe-content {
    max-width: min(960px, 95vw) !important;
    width: auto !important;
    max-height: 90vh !important;
}

.report-content {
    max-width: min(900px, 95vw) !important;
    width: auto !important;
    max-height: 90vh !important;
}

/* 统一所有模态框内容区域响应式大小 */
@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: var(--bg-secondary);
    border-radius: 8px;
    font-size: 20px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.login-modal h2 {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 24px;
    text-align: center;
}

.login-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.tab-btn {
    flex: 1;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.tab-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.tab-btn:hover:not(.active) {
    background: var(--bg-hover);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.form-group {
    margin-bottom: 16px;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-secondary);
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    font-size: 14px;
    color: var(--text-primary);
    outline: none;
    transition: all 0.2s;
    font-family: inherit;
}

.form-group input:focus {
    border-color: var(--primary-color);
    background: var(--bg-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.08);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.sms-group {
    display: flex;
    gap: 10px;
}

.sms-group input {
    flex: 1;
}

.sms-btn {
    padding: 14px 20px;
    background: var(--bg-secondary);
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.sms-btn:hover:not(:disabled) {
    background: var(--bg-hover);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.sms-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.primary-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.primary-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.form-link {
    text-align: center;
    margin-top: 16px;
}

.form-link a {
    color: var(--primary-color);
    font-size: 14px;
    text-decoration: none;
}

.form-link a:hover {
    text-decoration: underline;
}

/* ==================== 移动端响应式设计 ==================== */

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 1001;
    width: 44px;
    height: 44px;
    border: none;
    background: var(--bg-primary);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    color: var(--text-primary);
    transition: all 0.2s;
}

.mobile-menu-btn:hover {
    background: var(--bg-hover);
}

.mobile-menu-btn svg {
    width: 24px;
    height: 24px;
}

/* 移动端遮罩层 */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
    opacity: 0;
    transition: opacity 0.3s;
}

.mobile-overlay.active {
    display: block;
    opacity: 1;
}

/* 移动端主内容区域 */
.main-content {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

/* 移动端欢迎屏幕 */
.welcome-screen {
    padding: 20px;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.welcome-content {
    max-width: 100%;
    padding: 20px;
    text-align: center;
}

.welcome-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.welcome-logo svg {
    width: 100%;
    height: 100%;
}

.welcome-content h1 {
    font-size: 28px;
    margin-bottom: 12px;
}

.welcome-desc {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.welcome-input-area {
    margin-top: 24px;
}

.welcome-textarea {
    font-size: 14px;
    padding: 12px;
}

/* 移动端聊天界面 */
.chat-interface {
    padding: 16px;
}

.chat-messages {
    padding: 16px;
}

.message {
    max-width: 90%;
}

.message.user {
    margin-left: auto;
}

.message.assistant {
    margin-right: auto;
}

.message-content {
    font-size: 14px;
    line-height: 1.6;
    padding: 12px 16px;
}

/* 移动端输入区域 */
.chat-input-area {
    padding: 12px 16px;
}

.input-row {
    gap: 8px;
}

.chat-input {
    font-size: 14px;
    padding: 12px 16px;
}

.send-btn {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

/* 移动端模态框 */
.modal-content {
    width: 95%;
    max-height: 90vh;
    margin: 5vh auto;
    border-radius: 16px;
}

.modal-header {
    padding: 16px 20px;
}

.modal-header h2 {
    font-size: 18px;
}

.modal-body {
    padding: 16px 20px;
    max-height: calc(90vh - 120px);
}

.modal-footer {
    padding: 16px 20px;
}

/* 移动端订阅卡片 */
.subscribe-plans {
    grid-template-columns: 1fr;
    gap: 16px;
}

.subscribe-plan {
    padding: 20px;
}

/* 移动端表单 */
.form-group {
    margin-bottom: 16px;
}

.form-input {
    font-size: 14px;
    padding: 12px;
}

/* 移动端按钮 */
.primary-btn {
    padding: 12px;
    font-size: 14px;
}

/* 移动端发现阶段 */
.discovery-container {
    padding: 16px;
}

.discovery-header {
    padding: 16px;
}

.discovery-header h2 {
    font-size: 18px;
}

.discovery-progress {
    padding: 12px 16px;
}

.discovery-question {
    padding: 16px;
}

.discovery-question h3 {
    font-size: 16px;
}

.discovery-question p {
    font-size: 14px;
}

.discovery-input {
    font-size: 14px;
    padding: 12px;
}

.discovery-actions {
    padding: 16px;
}

/* 移动端确认分析栏 */
.confirm-analysis-bar {
    padding: 16px;
    flex-direction: column;
    gap: 12px;
}

.confirm-analysis-bar .confirm-btn {
    width: 100%;
}

/* 移动端报告阶段 */
.report-container {
    padding: 16px;
}

.report-content {
    padding: 20px;
    font-size: 14px;
}

/* 移动端通知 */
.notification {
    padding: 12px 16px;
    font-size: 14px;
}

/* 移动端响应式断点 */
@media (max-width: 768px) {
    /* 显示移动端菜单按钮 */
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* 侧边栏默认隐藏 */
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        height: 100%;
        z-index: 1000;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        box-shadow: var(--shadow-lg);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    /* 主内容区域调整 */
    .main-content {
        width: 100%;
        flex: 1;
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    /* 聊天视图修复 - 解决移动端欢迎页面不显示问题 */
    .chat-view {
        flex: 1;
        display: flex;
        flex-direction: column;
        min-height: 0;
        overflow: hidden;
    }

    /* 聊天界面调整 */
    .chat-interface {
        padding: 12px;
        padding-top: 60px; /* 为移动端菜单按钮留出空间 */
    }

    /* 欢迎屏幕调整 */
    .welcome-screen {
        padding: 16px;
        padding-top: 60px;
    }

    /* 模态框调整 */
    .modal {
        padding: 10px;
        align-items: flex-start;
        padding-top: 20px;
    }

    .modal-content {
        position: relative !important;
        width: 100%;
        max-width: 100%;
        max-height: 90vh;
        margin: 0 auto !important;
        border-radius: 12px;
        overflow-y: auto;
    }

    /* 输入区域调整 */
    .chat-input-area {
        padding: 12px;
    }

    .chat-input {
        font-size: 16px; /* 防止iOS自动缩放 */
    }

    /* 消息气泡调整 */
    .message {
        max-width: 85%;
    }

    .message-content {
        font-size: 14px;
        padding: 10px 14px;
    }

    /* 按钮调整 */
    .action-btn,
    .footer-btn {
        padding: 12px;
        font-size: 14px;
    }

    /* 对话列表调整 */
    .conversation-item {
        padding: 12px;
    }

    .conv-title {
        font-size: 14px;
    }

    .conv-info {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    /* 超小屏幕进一步优化 */
    .welcome-content h1 {
        font-size: 24px;
    }

    .welcome-desc {
        font-size: 13px;
    }

    .message {
        max-width: 80%;
    }

    .message-content {
        font-size: 13px;
        padding: 8px 12px;
    }

    .chat-input-area {
        padding: 8px 12px;
    }

    .chat-input {
        padding: 10px 12px;
    }

    .send-btn {
        width: 40px;
        height: 40px;
    }

    /* 模态框进一步调整 */
    .modal-header {
        padding: 12px 16px;
    }

    .modal-header h2 {
        font-size: 16px;
    }

    .modal-body {
        padding: 12px 16px;
    }

    .modal-footer {
        padding: 12px 16px;
    }

    /* 模态框内容宽度修复 - 解决登录模态框显示问题 */
    .modal-content {
        width: 95% !important;
        max-width: 95% !important;
    }

    /* 欢迎页面移动端显示修复 */
    .welcome-screen {
        display: flex !important;
        align-items: center;
        justify-content: center;
        min-height: calc(100vh - 80px);
    }

    .welcome-content {
        width: 100%;
        max-width: 100%;
        padding: 0 16px;
    }
}

/* 横屏模式优化 */
@media (max-height: 500px) and (orientation: landscape) {
    .welcome-screen {
        padding: 10px;
    }

    .welcome-content {
        padding: 10px;
    }

    .chat-interface {
        padding: 8px;
    }

    .chat-messages {
        padding: 8px;
    }

    .chat-input-area {
        padding: 8px;
    }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    .action-btn:active,
    .footer-btn:active,
    .send-btn:active {
        transform: scale(0.95);
    }

    .message:active {
        opacity: 0.8;
    }
}

.register-form {
    margin-top: 16px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.register-form h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    text-align: center;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    padding: 14px 24px;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    border-radius: 10px;
    font-size: 14px;
    z-index: 2000;
    animation: toastIn 0.3s ease;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.notification.success .notification-icon::before {
    content: '✓';
    color: #22c55e;
}

.notification.error .notification-icon::before {
    content: '✗';
    color: #ef4444;
}

.notification.info .notification-icon::before {
    content: 'i';
    color: var(--primary-color);
}

/* Hidden Class */
.hidden {
    display: none !important;
}

/* Chat Interface Hidden */
.chat-interface.hidden {
    display: none !important;
}

/* Welcome Screen Hidden */
.welcome-screen.hidden {
    display: none !important;
}

/* Settings Section Hidden */
.settings-section.hidden {
    display: none !important;
}

/* Auth Form Hidden */
.auth-form.hidden {
    display: none !important;
}

.auth-method-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.auth-method-tabs .auth-tab {
    flex: 1;
    padding: 8px 10px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.auth-method-tabs .auth-tab:hover {
    background: var(--bg-hover);
}

.auth-method-tabs .auth-tab.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        position: absolute;
        z-index: 100;
        height: 100%;
        transform: translateX(-100%);
        transition: transform 0.3s;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .subscribe-content,
    .report-content,
    .settings-content {
        width: 95%;
        max-height: 90vh;
        overflow-y: auto;
    }

    .subscribe-plans {
        grid-template-columns: 1fr;
    }
}

/* ==================== 报告系统 ==================== */

.report-content {
    width: 800px;
    max-width: 95%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

.report-time {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 400;
}

.report-body {
    padding: 24px;
    background: var(--bg-secondary);
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-primary);
    max-height: 55vh;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

.report-actions {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.report-center-content {
    width: 600px;
    max-width: 95%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.report-list {
    max-height: 60vh;
    overflow-y: auto;
}

.report-list .empty-text,
.report-list .loading-text {
    text-align: center;
    color: var(--text-muted);
    padding: 40px;
    font-size: 14px;
}

.report-list-item {
    padding: 14px 16px;
    background: var(--bg-secondary);
    border-radius: 10px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.report-list-item:hover {
    background: var(--bg-hover);
    transform: translateX(2px);
}

.report-list-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.report-list-badge {
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}

.report-list-badge.deep {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
}

.report-list-badge.supplement {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.report-list-time {
    font-size: 12px;
    color: var(--text-muted);
}

.report-list-preview {
    font-size: 13px;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ==================== 确认分析栏 ==================== */

.confirm-analysis-bar {
    padding: 16px 20px;
    background: var(--bg-primary);
    border-top: 2px solid var(--primary-color);
    box-shadow: 0 -4px 16px rgba(0,0,0,0.08);
}

.confirm-bar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.confirm-bar-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.confirm-bar-actions {
    display: flex;
    gap: 10px;
}

.confirm-bar-btn {
    padding: 8px 18px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.confirm-bar-btn.primary {
    background: var(--primary-color);
    color: white;
}

.confirm-bar-btn.primary:hover {
    background: var(--primary-hover);
}

.confirm-bar-btn.secondary {
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

.confirm-bar-btn.secondary:hover {
    background: var(--border-color);
}

/* Confirm Modal */
.confirm-content {
    width: 360px;
    border-radius: 16px;
    overflow: visible;
}

.confirm-body {
    text-align: center;
    padding: 32px 24px 16px;
}

.confirm-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    color: #f59e0b;
}

.confirm-icon svg {
    width: 100%;
    height: 100%;
}

.confirm-message {
    font-size: 15px;
    color: var(--text-primary);
    line-height: 1.6;
    margin: 0;
}

.confirm-footer {
    display: flex;
    gap: 12px;
    padding: 16px 24px 24px;
    justify-content: center;
}

.confirm-btn {
    flex: 1;
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.confirm-btn.primary {
    background: var(--primary-color);
    color: white;
}

.confirm-btn.primary:hover {
    background: var(--primary-hover);
}

.confirm-btn.secondary {
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

.confirm-btn.secondary:hover {
    background: var(--border-color);
    color: var(--text-primary);
}
.partner-form {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.partner-input {
    flex: 1;
    min-width: 180px;
    max-width: 280px;
    padding: 10px 14px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 100px;
    background: rgba(255,255,255,0.08);
    color: white;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s;
}

.partner-input::placeholder {
    color: rgba(255,255,255,0.4);
}

.partner-input:focus {
    border-color: rgba(124,124,255,0.6);
    background: rgba(255,255,255,0.12);
}


/* Message Feedback */
.msg-feedback {
    display: flex;
    gap: 6px;
    padding: 4px 0 0 0;
    opacity: 0;
    transition: opacity 0.3s;
}
.message:hover .msg-feedback {
    opacity: 1;
}
.msg-feedback.hidden {
    display: none;
}
.fb-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid rgba(128,128,128,0.3);
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s;
    color: rgba(128,128,128,0.6);
}
.fb-btn svg {
    width: 14px;
    height: 14px;
}
.fb-btn:hover {
    border-color: rgba(128,128,128,0.6);
    color: rgba(128,128,128,0.9);
    background: rgba(128,128,128,0.08);
}
.fb-btn.active {
    border-color: var(--primary-color, #7c7cff);
    color: var(--primary-color, #7c7cff);
    background: rgba(124,124,255,0.1);
}
.fb-useful.active {
    border-color: #5ddb8a;
    color: #5ddb8a;
    background: rgba(93,219,138,0.1);
}
.fb-not-useful.active {
    border-color: #ff6b6b;
    color: #ff6b6b;
    background: rgba(255,107,107,0.1);
}
.fb-voted {
    opacity: 1 !important;
}

/* Prompt Dialog */
.prompt-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
    margin-top: 12px;
    box-sizing: border-box;
}
.prompt-input:focus {
    border-color: var(--primary-color);
}
