/**
 * AIGC 智能图文创作系统 - 移动端UI样式
 * 紫色轻奢风格
 */

:root {
    --primary: #8b5cf6;
    --primary-light: #a78bfa;
    --primary-dark: #7c3aed;
    --secondary: #c084fc;
    --accent: #f472b6;
    --bg: #faf5ff;
    --bg-card: #ffffff;
    --text: #1f2937;
    --text-light: #6b7280;
    --border: #e5e7eb;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --shadow: 0 4px 20px rgba(139, 92, 246, 0.15);
    --radius: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Helvetica Neue', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* App Container */
.app {
    max-width: 100%;
    min-height: 100vh;
    padding-bottom: 80px;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 15px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.header h1 { font-size: 18px; font-weight: 600; }

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon { font-size: 24px; }
.logo-text { font-size: 18px; font-weight: 700; }

.back-btn {
    font-size: 28px;
    color: white;
    text-decoration: none;
    margin-right: 10px;
}

.cost-tag {
    background: rgba(255,255,255,0.2);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.5);
}

.avatar img { width: 100%; height: 100%; object-fit: cover; }

.user-meta { text-align: right; }

.nickname { display: block; font-size: 14px; font-weight: 600; }

.vip-badge {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
    background: rgba(255,255,255,0.3);
}

.vip-badge.silver { background: linear-gradient(135deg, #c0c0c0, #a0a0a0); }
.vip-badge.gold { background: linear-gradient(135deg, #ffd700, #ffb347); color: #333; }
.vip-badge.diamond { background: linear-gradient(135deg, #b9f2ff, #89cff0); color: #333; }

/* Main Content */
.main-content {
    padding: 16px;
}

/* Hero Card */
.hero-card {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: var(--radius);
    padding: 24px;
    color: white;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}

.hero-bg {
    position: absolute;
    top: -50%;
    right: -30%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 50%);
}

.hero-content { position: relative; z-index: 1; }

.hero-card h1 { font-size: 22px; margin-bottom: 8px; }
.hero-card p { font-size: 14px; opacity: 0.9; }

.quick-stats {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.stat-item { text-align: center; }

.stat-value { font-size: 24px; font-weight: 700; display: block; }
.stat-label { font-size: 12px; opacity: 0.8; }

/* Section Title */
.section-title {
    margin: 20px 0 15px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 18px;
    background: linear-gradient(to bottom, var(--primary), var(--accent));
    border-radius: 2px;
}

/* Function Grid */
.function-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.func-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.func-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.2);
}

.func-card:active { transform: scale(0.98); }

.func-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.func-info h3 { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.func-info p { font-size: 11px; color: var(--text-light); }
.func-arrow { font-size: 20px; color: var(--text-light); margin-left: auto; }

/* Card */
.card {
    background: var(--bg-card);
    border-radius: var(--radius);
    margin-bottom: 16px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.card-header {
    padding: 16px;
    border-bottom: 1px solid var(--border);
}

.card-header h2 {
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-body { padding: 16px; }

/* Form */
.form-item { margin-bottom: 15px; }
.form-item label { display: block; font-size: 14px; color: var(--text-light); margin-bottom: 6px; }

.input-field {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 15px;
    background: var(--bg);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input-field:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.prompt-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 14px;
    background: var(--bg);
    resize: none;
}

.prompt-input:focus {
    outline: none;
    border-color: var(--primary);
}

/* Buttons */
.btn-primary {
    display: block;
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4); }
.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-generate { margin-top: 20px; }
.btn-icon { margin-right: 6px; }

.btn-action {
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    cursor: pointer;
}

.btn-action.secondary {
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
}

/* Upload Area */
.upload-area {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.upload-area:hover {
    border-color: var(--primary);
    background: rgba(139, 92, 246, 0.05);
}

.upload-placeholder { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.upload-icon { font-size: 40px; }
.upload-hint { font-size: 12px; color: var(--text-light); }

.preview-container { position: relative; }
.preview-container img { max-width: 100%; border-radius: 12px; }
.remove-btn {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 28px;
    height: 28px;
    background: var(--danger);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
}

/* Style Grid */
.style-grid, .type-grid, .avatar-style-grid, .poster-style-grid, .tag-style-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.style-item, .type-item {
    padding: 12px 8px;
    background: var(--bg);
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.style-item.active, .type-item.active {
    border-color: var(--primary);
    background: rgba(139, 92, 246, 0.1);
}

.style-icon { font-size: 28px; display: block; margin-bottom: 4px; }
.style-name { font-size: 12px; }

.type-icon { font-size: 24px; display: block; margin-bottom: 4px; }
.type-name { font-size: 13px; }

/* Platform Grid */
.platform-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.platform-item {
    padding: 12px;
    background: var(--bg);
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
}
.platform-item.active { border-color: var(--primary); background: rgba(139, 92, 246, 0.1); }

/* Tags */
.tag, .hashtag {
    display: inline-block;
    padding: 8px 14px;
    background: var(--bg);
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.tag.active, .tag:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Avatar Style Grid */
.avatar-style-grid { grid-template-columns: repeat(4, 1fr); }
.avatar-style-item {
    text-align: center;
    cursor: pointer;
}
.avatar-style-item.active .style-preview { box-shadow: 0 0 0 3px var(--primary); }
.style-preview {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 6px;
}
.avatar-style-item span { font-size: 11px; color: var(--text-light); }

/* Poster Style */
.poster-style-grid { grid-template-columns: repeat(3, 1fr); }
.poster-style-item { text-align: center; cursor: pointer; }
.poster-style-item.active .style-preview { box-shadow: 0 0 0 3px var(--primary); }
.poster-style-item span { font-size: 12px; margin-top: 6px; display: block; }

/* Ratio Grid */
.ratio-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.ratio-item {
    padding: 12px 8px;
    background: var(--bg);
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
}
.ratio-item.active { border-color: var(--primary); background: rgba(139, 92, 246, 0.1); }
.ratio-preview { width: 40px; height: 40px; margin: 0 auto 8px; border-radius: 8px; border: 1px solid var(--border); }
.ratio-1-1 { aspect-ratio: 1; }
.ratio-3-4 { aspect-ratio: 3/4; }
.ratio-16-9 { aspect-ratio: 16/9; }
.ratio-9-16 { aspect-ratio: 9/16; }
.ratio-item span { font-size: 13px; font-weight: 600; display: block; }
.ratio-item small { font-size: 10px; color: var(--text-light); }
.size-display { text-align: center; margin-top: 12px; font-size: 13px; color: var(--text-light); }

/* Result Card */
.result-card { margin-top: 20px; }
.btn-copy {
    padding: 6px 12px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
}
.result-text {
    background: var(--bg);
    padding: 16px;
    border-radius: 12px;
    white-space: pre-wrap;
    font-size: 14px;
    line-height: 1.8;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}
.modal.show { display: flex; }
.modal-content { background: white; border-radius: var(--radius); width: 100%; max-width: 400px; overflow: hidden; }
.modal-header {
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
}
.modal-header h3 { font-size: 16px; }
.close-btn { background: none; border: none; font-size: 24px; cursor: pointer; color: var(--text-light); }
.modal-body { padding: 16px; }
.result-image img { width: 100%; border-radius: 12px; }
.result-actions { display: flex; gap: 10px; margin-top: 15px; justify-content: center; }

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    display: flex;
    justify-content: space-around;
    padding: 8px 0 12px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-decoration: none;
    color: var(--text-light);
    transition: color 0.2s;
}
.nav-item.active { color: var(--primary); }
.nav-icon { font-size: 22px; }
.nav-text { font-size: 10px; }

/* Toast */
.toast {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    opacity: 0;
    transition: all 0.3s;
    z-index: 9999;
    pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Login Page */
.login-page { background: linear-gradient(135deg, var(--primary), var(--accent)); min-height: 100vh; }
.login-container { padding: 40px 24px; }
.login-header { text-align: center; color: white; margin-bottom: 40px; }
.login-logo { font-size: 60px; margin-bottom: 15px; }
.login-header h1 { font-size: 24px; margin-bottom: 8px; }
.login-header p { font-size: 14px; opacity: 0.9; }

.login-form { background: white; border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow); }

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper .input-icon {
    position: absolute;
    left: 14px;
    font-size: 18px;
    z-index: 1;
    pointer-events: none;
}

.input-wrapper .input-field {
    padding-left: 44px;
    padding-right: 44px;
}

.toggle-pwd {
    position: absolute;
    right: 14px;
    font-size: 18px;
    cursor: pointer;
    z-index: 1;
    user-select: none;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.toggle-pwd:hover { opacity: 1; }
.toggle-pwd.hidden { content: '🙈'; }

.login-form .btn-primary {
    margin-top: 8px;
    padding: 14px;
    font-size: 16px;
    letter-spacing: 4px;
}

.login-form .btn-primary:active { transform: scale(0.97); }

.login-form .input-field.error {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.checkbox label { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-light); cursor: pointer; }

/* 密码强度条 */
.pwd-strength {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    height: 6px;
}
.pwd-bar {
    flex: 1;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
    transition: background 0.3s;
}
.pwd-bar::after {
    content: '';
    display: block;
    width: 0;
    height: 100%;
    border-radius: 2px;
    transition: width 0.3s, background 0.3s;
}
.pwd-bar.weak::after { width: 33%; background: var(--danger); }
.pwd-bar.medium::after { width: 66%; background: var(--warning); }
.pwd-bar.strong::after { width: 100%; background: var(--success); }
.pwd-text { font-size: 11px; font-weight: 600; }
.pwd-text.weak { color: var(--danger); }
.pwd-text.medium { color: var(--warning); }
.pwd-text.strong { color: var(--success); }

/* 注册奖励提示 */
.reg-bonus {
    text-align: center;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 16px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
}
.reg-bonus strong { color: #ffd700; }

.login-footer {
    text-align: center;
    margin-top: 20px;
    color: white;
}
.login-footer a { color: white; font-weight: 600; text-decoration: underline; }

.demo-hint {
    text-align: center;
    margin-top: 30px;
    color: rgba(255,255,255,0.8);
    font-size: 12px;
}

/* Hero Mini */
.hero-mini {
    background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
    border-radius: var(--radius);
    padding: 20px;
    color: white;
    text-align: center;
    margin-bottom: 16px;
}
.hero-mini h2 { font-size: 18px; margin-bottom: 4px; }
.hero-mini p { font-size: 13px; opacity: 0.9; }

/* XHS Result */
.xhs-result {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    margin-top: 20px;
}
.result-cover { position: relative; }
.result-cover img { width: 100%; display: block; }
.cover-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 20px 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
}
.cover-overlay h3 { font-size: 18px; }
.result-content { padding: 16px; }
.content-header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 13px; }
.avatar-small { width: 30px; height: 30px; background: var(--bg); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.note-body { font-size: 14px; line-height: 1.8; white-space: pre-wrap; margin-bottom: 15px; }
.note-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.hashtag { background: rgba(239, 68, 68, 0.1); color: #ef4444; border: none; padding: 6px 12px; font-size: 12px; }
.note-actions { display: flex; gap: 10px; margin-top: 15px; padding-top: 15px; border-top: 1px solid var(--border); }

/* Avatar Results */
.avatar-results { margin-top: 20px; }
.results-title { font-size: 16px; font-weight: 600; margin-bottom: 12px; }
.results-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.result-item { cursor: pointer; border-radius: 12px; overflow: hidden; }
.result-item img { width: 100%; display: block; }

/* Poster Preview */
.poster-preview { margin-top: 20px; }
.preview-title { font-size: 16px; font-weight: 600; margin-bottom: 12px; }
.preview-wrapper { max-width: 300px; margin: 0 auto; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.preview-wrapper img { width: 100%; display: block; }
.preview-actions { display: flex; gap: 10px; margin-top: 15px; justify-content: center; }

/* Filter Tabs */
.filter-tabs { display: flex; gap: 8px; margin-bottom: 16px; overflow-x: auto; padding-bottom: 5px; }
.tab-item {
    padding: 8px 16px;
    background: white;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    border: none;
    color: var(--text-light);
}
.tab-item.active { background: var(--primary); color: white; }

/* History List */
.history-list { display: flex; flex-direction: column; gap: 12px; }
.history-item {
    background: white;
    border-radius: var(--radius);
    padding: 16px;
    display: flex;
    gap: 12px;
    box-shadow: var(--shadow);
}
.history-icon { font-size: 32px; }
.history-info { flex: 1; }
.history-info h4 { font-size: 15px; margin-bottom: 4px; }
.history-info p { font-size: 12px; color: var(--text-light); line-height: 1.5; }
.history-time { font-size: 11px; color: var(--text-light); }
.history-actions button {
    padding: 6px 12px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
}

.empty-state, .loading-state { text-align: center; padding: 40px; color: var(--text-light); }
.loading-icon { font-size: 30px; display: block; margin-bottom: 10px; }

/* VIP Page */
.header-vip { background: linear-gradient(135deg, #ffd700, #ff8c00); }

.vip-status-card {
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    border-radius: var(--radius);
    padding: 24px;
    color: white;
    position: relative;
    overflow: hidden;
    margin-bottom: 16px;
}
.vip-bg {
    position: absolute;
    top: -50%;
    right: -30%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 50%);
}
.vip-content { position: relative; z-index: 1; }
.level-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255,255,255,0.3);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}
.level-badge.silver { background: linear-gradient(135deg, #c0c0c0, #a0a0a0); }
.level-badge.gold { background: linear-gradient(135deg, #ffd700, #ffb347); color: #333; }
.level-badge.diamond { background: linear-gradient(135deg, #b9f2ff, #89cff0); color: #333; }
.vip-info { margin-top: 15px; font-size: 13px; opacity: 0.9; }
.vip-info p { margin-bottom: 4px; }

/* Privilege Grid */
.privilege-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.privilege-item { text-align: center; }
.priv-icon { font-size: 28px; display: block; margin-bottom: 4px; }
.priv-text { font-size: 12px; color: var(--text-light); }

/* VIP Plans */
.vip-plans { display: flex; flex-direction: column; gap: 12px; }
.vip-plan {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 20px;
    position: relative;
    border: 2px solid transparent;
}
.vip-plan.popular { border-color: var(--primary); background: rgba(139, 92, 246, 0.05); }
.plan-badge {
    position: absolute;
    top: -8px;
    right: 15px;
    padding: 4px 10px;
    background: var(--primary);
    color: white;
    font-size: 10px;
    border-radius: 10px;
}
.plan-badge.diamond { background: linear-gradient(135deg, #b9f2ff, #89cff0); color: #333; }
.plan-name { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.plan-price { font-size: 28px; font-weight: 700; color: var(--primary); }
.plan-price small { font-size: 14px; font-weight: normal; color: var(--text-light); }
.plan-points { font-size: 12px; color: var(--success); margin-bottom: 12px; }
.plan-features { list-style: none; font-size: 13px; color: var(--text-light); margin-bottom: 15px; }
.plan-features li { margin-bottom: 6px; }

.btn-plan {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.btn-plan.gold { background: linear-gradient(135deg, #ffd700, #ff8c00); color: #333; }
.btn-plan.diamond { background: linear-gradient(135deg, #b9f2ff, #89cff0); color: #333; }

/* Points Packages */
.points-packages { display: flex; gap: 10px; }
.points-item {
    flex: 1;
    padding: 15px 10px;
    background: var(--bg);
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
}
.points-item.selected { border-color: var(--primary); background: rgba(139, 92, 246, 0.1); }
.points-num { font-size: 20px; font-weight: 700; color: var(--primary); display: block; }
.points-label { font-size: 11px; color: var(--text-light); }
.points-price { font-size: 14px; color: var(--text); margin-top: 4px; display: block; }

/* Profile Page */
.profile-card {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: var(--radius);
    padding: 30px 20px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 16px;
}
.profile-bg {
    position: absolute;
    top: -50%;
    right: -30%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 50%);
}
.profile-content { position: relative; z-index: 1; }
.avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 15px;
    overflow: hidden;
    border: 3px solid rgba(255,255,255,0.5);
    position: relative;
}
.avatar-large img { width: 100%; height: 100%; object-fit: cover; }
.avatar-edit {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 24px;
    height: 24px;
    background: rgba(0,0,0,0.5);
    border: none;
    border-radius: 50%;
    font-size: 12px;
    cursor: pointer;
}
.profile-name { font-size: 20px; font-weight: 600; margin-bottom: 4px; }
.profile-username { font-size: 13px; opacity: 0.8; margin-bottom: 20px; }
.profile-stats { display: flex; justify-content: center; gap: 30px; }
.stat-num { font-size: 20px; font-weight: 700; display: block; }
.stat-label { font-size: 12px; opacity: 0.8; }

/* Quick Links */
.quick-links {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}
.link-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    text-decoration: none;
    color: var(--text);
    border-bottom: 1px solid var(--border);
}
.link-item:last-child { border-bottom: none; }
.link-icon { font-size: 24px; }
.link-item span:nth-child(2) { flex: 1; font-size: 15px; }
.link-arrow { font-size: 18px; color: var(--text-light); }

/* Settings List */
.settings-list { padding: 0; }
.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
}
.setting-item:last-child { border-bottom: none; }
.switch { position: relative; width: 50px; height: 28px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--border);
    border-radius: 28px;
    transition: 0.3s;
}
.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
}
input:checked + .slider { background: var(--primary); }
input:checked + .slider:before { transform: translateX(22px); }

.logout-section { margin-top: 20px; }
.btn-logout {
    display: block;
    width: 100%;
    padding: 14px;
    background: white;
    color: var(--danger);
    border: 1px solid var(--danger);
    border-radius: 12px;
    font-size: 16px;
    text-align: center;
    text-decoration: none;
}

.app-version { text-align: center; margin-top: 30px; padding-bottom: 30px; }
.app-version p { font-size: 12px; color: var(--text-light); }

/* Header Red */
.header-red { background: linear-gradient(135deg, #ef4444, #dc2626); }
.btn-red { background: linear-gradient(135deg, #ef4444, #dc2626); }

/* Title Suggestions */
.title-suggestions { display: flex; flex-direction: column; gap: 8px; }
.suggestion-item {
    padding: 12px;
    background: var(--bg);
    border-radius: 10px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s;
}
.suggestion-item:hover { background: rgba(139, 92, 246, 0.1); }

/* Tag Style Grid */
.tag-style-grid { grid-template-columns: repeat(2, 1fr); }
.tag-style-item {
    padding: 12px;
    background: var(--bg);
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    border: 2px solid transparent;
}
.tag-style-item.active { border-color: var(--primary); background: rgba(139, 92, 246, 0.1); }
.tag-style-item span:first-child { font-size: 20px; }

/* Dark Mode */
body.dark-mode { --bg: #1a1a2e; --bg-card: #16213e; --text: #e5e7eb; --text-light: #9ca3af; --border: #374151; }

/* Header Auth Buttons */
.header-auth { display: flex; align-items: center; gap: 10px; }
.btn-header-login {
    padding: 6px 18px;
    background: rgba(255,255,255,0.2);
    color: white;
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}
.btn-header-login:hover { background: rgba(255,255,255,0.3); }
.btn-header-reg {
    padding: 6px 18px;
    background: white;
    color: var(--primary);
    border: none;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}
.btn-header-reg:hover { transform: scale(1.05); }

/* Hero Guest CTA */
.hero-guest { margin-top: 16px; }
.hero-guest p { font-size: 14px; opacity: 0.95; margin-bottom: 14px; }
.hero-guest strong { color: #ffd700; }
.btn-hero-cta {
    display: inline-block;
    padding: 10px 28px;
    background: white;
    color: var(--primary);
    border-radius: 25px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-hero-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,0,0,0.3); }

/* Login Modal */
.login-modal-content { border-radius: var(--radius); }
.login-modal-content .btn-primary { letter-spacing: 2px; }

/* VIP Page Guest */
.vip-guest-banner {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: var(--radius);
    padding: 20px;
    color: white;
    text-align: center;
    margin-bottom: 20px;
}
.vip-guest-banner p { font-size: 14px; margin-bottom: 12px; opacity: 0.9; }
.vip-guest-banner a {
    display: inline-block;
    padding: 10px 30px;
    background: white;
    color: var(--primary);
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}
