/* ============================================================
   BlueChat Frontend CSS v3.0 - Mobile-first SPA
   ============================================================ */

:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #93c5fd;
    --bg: #f5f5f5;
    --bg-white: #ffffff;
    --text: #1f2937;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --border: #e5e7eb;
    --danger: #ef4444;
    --success: #10b981;
    --warning: #f59e0b;
    --nav-height: 60px;
    --header-height: 48px;
    --status-height: 24px;
    --radius: 8px;
    --shadow: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-lg: 0 4px 12px rgba(0,0,0,0.15);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; }
img { max-width: 100%; }

/* ========= App Wrapper ========= */
.app-wrapper {
    max-width: 768px;
    margin: 0 auto;
    min-height: 100vh;
    background: var(--bg-white);
    position: relative;
}

/* ========= Status Bar ========= */
.status-bar {
    height: var(--status-height);
    background: #1a1a2e;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 12px;
    font-size: 11px;
}
.status-right { display: flex; gap: 6px; align-items: center; }

/* ========= Header ========= */
.app-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 12px;
    background: var(--primary);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    gap: 8px;
}
.header-logo { font-weight: 700; font-size: 16px; white-space: nowrap; }
.header-center { flex: 1; }
.search-bar {
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: rgba(255,255,255,0.8);
}
.header-badge {
    background: var(--danger);
    color: #fff;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 11px;
    min-width: 18px;
    text-align: center;
}

/* ========= Content ========= */
.app-content {
    min-height: calc(100vh - var(--status-height) - var(--header-height) - var(--nav-height));
    padding-bottom: var(--nav-height);
}
.page-loader {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    font-size: 24px;
    color: var(--primary);
}

/* ========= Bottom Nav ========= */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 768px;
    height: var(--nav-height);
    background: var(--bg-white);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 100;
    padding-bottom: env(safe-area-inset-bottom);
}
.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: 10px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px 0;
    position: relative;
    text-decoration: none;
}
.nav-item i { font-size: 20px; }
.nav-item.active { color: var(--primary); }
.nav-center-btn {
    width: 44px; height: 44px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    margin-top: -16px;
    box-shadow: var(--shadow-lg);
}
.nav-badge {
    position: absolute;
    top: 0; right: 8px;
    background: var(--danger);
    color: #fff;
    border-radius: 10px;
    padding: 1px 5px;
    font-size: 10px;
    min-width: 16px;
    text-align: center;
}

/* ========= Publish Modal ========= */
.publish-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 200;
    align-items: flex-end;
    justify-content: center;
}
.publish-overlay.active { display: flex; }
.publish-panel {
    background: var(--bg-white);
    border-radius: 16px 16px 0 0;
    width: 100%;
    max-width: 768px;
    padding: 20px;
    animation: slideUp 0.3s ease;
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.publish-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.publish-title { font-size: 18px; font-weight: 700; }
.publish-close { font-size: 24px; cursor: pointer; color: var(--text-muted); }
.publish-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.publish-action { display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer; }
.publish-action-icon {
    width: 56px; height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
}
.publish-action-icon.post { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.publish-action-icon.app { background: linear-gradient(135deg, #10b981, #059669); }
.publish-action-icon.site { background: linear-gradient(135deg, #f59e0b, #d97706); }
.publish-action-icon.task { background: linear-gradient(135deg, #ef4444, #dc2626); }
.publish-action-label { font-size: 12px; color: var(--text-secondary); }

/* ========= Toast ========= */
.toast-container {
    position: fixed;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 300;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 90%;
}
.toast {
    background: var(--text);
    color: #fff;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-size: 13px;
    box-shadow: var(--shadow-lg);
    transition: opacity 0.3s;
}
.toast-error { background: var(--danger); }
.toast-success { background: var(--success); }

/* ========= Common Components ========= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: var(--radius);
    border: none;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    gap: 6px;
}
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { padding: 4px 12px; font-size: 12px; }
.btn-block { width: 100%; }
.btn-back { background: none; border: none; color: #fff; font-size: 18px; cursor: pointer; padding: 4px; }

.input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    background: var(--bg-white);
}
.input:focus { border-color: var(--primary); }
.input-sm { width: auto; padding: 6px 10px; font-size: 13px; }
.textarea { min-height: 120px; resize: vertical; }

.avatar-xs { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }
.avatar-sm { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }

.tag { display: inline-block; padding: 1px 6px; border-radius: 3px; font-size: 11px; }
.tag-top { background: #fef3c7; color: #d97706; }
.tag-essence { background: #dbeafe; color: #2563eb; }

.error-msg { color: var(--danger); font-size: 12px; margin-top: 4px; }
.loading-center { display: flex; justify-content: center; align-items: center; padding: 40px; font-size: 24px; color: var(--primary); }
.empty-state { text-align: center; padding: 40px; color: var(--text-muted); }
.error-page { text-align: center; padding: 40px; color: var(--danger); }
.placeholder-page { text-align: center; padding: 60px 20px; }
.placeholder-icon { font-size: 48px; color: var(--primary-light); margin-bottom: 16px; }
.placeholder-page h2 { margin-bottom: 8px; }
.placeholder-page p { color: var(--text-secondary); }

.page-header { padding: 12px 16px; border-bottom: 1px solid var(--border); }
.page-header h2 { font-size: 18px; }

/* ========= Auth Page ========= */
.auth-page {
    min-height: calc(100vh - var(--status-height) - var(--header-height));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}
.auth-container { width: 100%; max-width: 360px; }
.auth-logo { text-align: center; color: #fff; margin-bottom: 24px; }
.auth-logo i { font-size: 48px; margin-bottom: 8px; }
.auth-logo h1 { font-size: 28px; }
.auth-logo p { opacity: 0.8; font-size: 13px; }
.auth-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-lg);
}
.auth-tabs { display: flex; margin-bottom: 20px; border-bottom: 1px solid var(--border); }
.auth-tab {
    flex: 1; padding: 8px; border: none; background: none;
    font-size: 15px; color: var(--text-muted); cursor: pointer;
    border-bottom: 2px solid transparent; transition: all 0.2s;
}
.auth-tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
.auth-card .input { margin-bottom: 12px; }

/* ========= Home Page ========= */
.home-tabs, .feed-tabs {
    display: flex;
    padding: 8px 12px;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
}
.home-tab, .feed-tab {
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    color: var(--text-secondary);
    transition: all 0.2s;
}
.home-tab.active, .feed-tab.active {
    background: var(--primary);
    color: #fff;
}
.quick-entry {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 12px;
    gap: 8px;
    border-bottom: 1px solid var(--border);
}
.quick-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--text-secondary);
    cursor: pointer;
    text-decoration: none;
}
.quick-item i { font-size: 22px; color: var(--primary); }

/* ========= Post/App Cards ========= */
.feed-list { padding: 8px 12px; }
.post-card {
    display: flex;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
}
.post-card-cover {
    width: 80px; height: 60px;
    border-radius: 6px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}
.post-card-body { flex: 1; min-width: 0; }
.post-card-title { font-size: 14px; font-weight: 500; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-card-meta { display: flex; gap: 10px; font-size: 11px; color: var(--text-muted); align-items: center; flex-wrap: wrap; }
.post-card-user { display: flex; align-items: center; gap: 4px; }
.post-card-time { margin-left: auto; }

.app-card {
    display: flex;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    align-items: center;
}
.app-card-icon { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.app-card-info { flex: 1; min-width: 0; }
.app-card-title { font-size: 14px; font-weight: 500; }
.app-card-desc { font-size: 12px; color: var(--text-secondary); margin: 2px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-card-meta { display: flex; gap: 10px; font-size: 11px; color: var(--text-muted); }

.feed-loading { text-align: center; padding: 16px; color: var(--text-muted); font-size: 13px; }

/* ========= Post Detail ========= */
.post-detail { padding: 16px; }
.post-detail-title { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.post-detail-author { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.post-detail-username { font-weight: 500; }
.post-detail-time { color: var(--text-muted); font-size: 12px; }
.post-detail-cover { width: 100%; border-radius: var(--radius); margin-bottom: 12px; }
.post-detail-content { font-size: 15px; line-height: 1.8; margin-bottom: 16px; word-break: break-word; }
.post-detail-actions { display: flex; gap: 20px; padding: 12px 0; border-top: 1px solid var(--border); color: var(--text-secondary); font-size: 13px; }
.post-detail-actions span { cursor: pointer; display: flex; align-items: center; gap: 4px; }
.pay-wall { text-align: center; padding: 24px; background: #fef3c7; border-radius: var(--radius); margin: 12px 0; }
.pay-wall p { margin-bottom: 12px; color: #92400e; }

/* ========= Chat Page ========= */
.chat-page { display: flex; flex-direction: column; height: calc(100vh - var(--status-height) - var(--header-height)); }
.chat-header {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 12px; background: var(--primary); color: #fff;
}
.chat-title { font-weight: 600; }
.chat-messages { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.msg-bubble { max-width: 75%; padding: 8px 12px; border-radius: 12px; font-size: 14px; }
.msg-sent { align-self: flex-end; background: var(--primary); color: #fff; border-bottom-right-radius: 4px; }
.msg-received { align-self: flex-start; background: #f3f4f6; border-bottom-left-radius: 4px; }
.msg-time { font-size: 10px; opacity: 0.7; margin-top: 2px; }
.chat-input-bar { display: flex; gap: 8px; padding: 8px 12px; border-top: 1px solid var(--border); background: var(--bg-white); }
.chat-input-bar .input { flex: 1; }

/* ========= Profile Page ========= */
.profile-header { text-align: center; padding: 24px 16px; background: linear-gradient(135deg, #3b82f6, #1d4ed8); color: #fff; }
.profile-avatar { width: 72px; height: 72px; border-radius: 50%; border: 3px solid rgba(255,255,255,0.3); object-fit: cover; }
.profile-name { font-size: 20px; margin-top: 8px; }
.profile-sig { font-size: 13px; opacity: 0.8; margin-top: 4px; }
.profile-stats { display: flex; justify-content: center; gap: 24px; margin-top: 12px; font-size: 13px; }
.profile-stats span { cursor: pointer; }
.profile-menu { padding: 8px 0; }
.profile-menu-item {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 16px; border-bottom: 1px solid var(--border);
    font-size: 15px; cursor: pointer; text-decoration: none; color: var(--text);
}
.profile-menu-item i { width: 24px; color: var(--primary); text-align: center; }

/* ========= Wallet Page ========= */
.wallet-card { margin: 16px; padding: 24px; background: linear-gradient(135deg, #3b82f6, #1d4ed8); border-radius: 16px; color: #fff; text-align: center; }
.wallet-balance { font-size: 36px; font-weight: 700; }
.wallet-label { font-size: 13px; opacity: 0.8; margin-bottom: 16px; }
.wallet-actions { display: flex; gap: 8px; justify-content: center; }
.wallet-actions .btn-outline { border-color: rgba(255,255,255,0.3); color: #fff; }
.wallet-stats { display: flex; justify-content: space-around; margin-top: 16px; font-size: 12px; opacity: 0.8; }

/* ========= Messages Page ========= */
.conv-item {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 16px; border-bottom: 1px solid var(--border); cursor: pointer;
}
.conv-info { flex: 1; min-width: 0; }
.conv-name { font-size: 15px; font-weight: 500; }
.conv-preview { font-size: 12px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv-badge { background: var(--danger); color: #fff; border-radius: 10px; padding: 2px 6px; font-size: 11px; }
.conv-time { font-size: 11px; color: var(--text-muted); }

/* ========= Friends Page ========= */
.friends-tabs { display: flex; border-bottom: 1px solid var(--border); }
.friend-tab { flex: 1; text-align: center; padding: 12px; cursor: pointer; font-size: 14px; color: var(--text-secondary); border-bottom: 2px solid transparent; }
.friend-tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
.friend-item { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--border); cursor: pointer; }

/* ========= Publish Page ========= */
.publish-page { padding: 16px; }
.publish-form { display: flex; flex-direction: column; gap: 12px; }
.publish-options { display: flex; align-items: center; gap: 8px; font-size: 13px; }

/* ========= Ranking Page ========= */
.ranking-tabs { display: flex; border-bottom: 1px solid var(--border); }
.ranking-tab { flex: 1; text-align: center; padding: 12px; cursor: pointer; font-size: 14px; color: var(--text-secondary); border-bottom: 2px solid transparent; }
.ranking-tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
.rank-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); cursor: pointer; }
.rank-num { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 13px; font-weight: 600; color: var(--text-muted); background: var(--bg); }
.rank-num.rank-top { color: #fff; background: var(--primary); }
.rank-info { flex: 1; min-width: 0; }
.rank-title { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-meta { display: flex; gap: 12px; font-size: 11px; color: var(--text-muted); margin-top: 4px; }

/* ========= Discover Page ========= */
.discover-search { display: flex; align-items: center; gap: 8px; margin: 12px 16px; padding: 10px 14px; background: var(--bg); border-radius: 20px; color: var(--text-muted); font-size: 13px; cursor: pointer; }
.discover-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 0 16px 16px; }
.discover-cat { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 8px; background: var(--bg); border-radius: 12px; cursor: pointer; font-size: 12px; color: var(--text-secondary); }
.discover-cat i { font-size: 24px; color: var(--primary); }
.user-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.user-card { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px; background: var(--bg); border-radius: 8px; cursor: pointer; font-size: 12px; }

/* ========= Shop Page ========= */
.shop-tabs { display: flex; border-bottom: 1px solid var(--border); }
.shop-tab { flex: 1; text-align: center; padding: 12px; cursor: pointer; font-size: 14px; color: var(--text-secondary); border-bottom: 2px solid transparent; }
.shop-tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }

/* ========= Tasks Page ========= */
.task-list { padding: 0 16px; }
.task-item { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.task-icon { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: var(--bg); border-radius: 10px; font-size: 18px; color: var(--primary); }
.task-info { flex: 1; }
.task-title { font-size: 14px; font-weight: 500; }
.task-desc { font-size: 12px; color: var(--text-muted); }
.task-status { font-size: 13px; color: var(--success); font-weight: 500; }

/* ========= Invite Page ========= */
.invite-card { margin: 16px; padding: 24px; background: var(--bg-white); border-radius: 16px; box-shadow: var(--shadow); text-align: center; }
.invite-icon { font-size: 48px; color: var(--warning); margin-bottom: 12px; }
.invite-card h3 { margin-bottom: 8px; }
.invite-card p { color: var(--text-secondary); font-size: 13px; margin-bottom: 16px; }
.invite-code-box { display: flex; justify-content: center; gap: 8px; padding: 12px; background: var(--bg); border-radius: 8px; margin-bottom: 16px; font-size: 14px; }
.invite-code-box strong { color: var(--primary); font-size: 18px; }
.invite-rules { text-align: left; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
.invite-rules h4 { font-size: 14px; margin-bottom: 8px; }
.invite-rules ul { padding-left: 20px; font-size: 12px; color: var(--text-secondary); line-height: 1.8; }

/* ========= App Detail Page ========= */
.app-detail { padding: 16px; }
.app-detail-hero { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.app-detail-icon { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; }
.app-detail-title-line h1 { font-size: 18px; }
.app-detail-dev { font-size: 12px; color: var(--text-muted); }
.app-detail-stats { display: flex; gap: 16px; padding: 12px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); font-size: 13px; color: var(--text-secondary); margin-bottom: 12px; }
.app-detail-desc { margin-bottom: 16px; }
.app-detail-desc h3 { font-size: 15px; margin-bottom: 8px; }
.app-detail-desc p { font-size: 14px; line-height: 1.7; color: var(--text-secondary); }
.app-detail-screenshots { margin-bottom: 16px; }
.app-detail-screenshots h3 { font-size: 15px; margin-bottom: 8px; }
.app-detail-actions { padding-top: 12px; }

/* ========= User Profile Page ========= */
.user-profile-header { text-align: center; padding: 24px 16px; background: linear-gradient(135deg, #3b82f6, #1d4ed8); color: #fff; }
.user-profile-avatar { width: 72px; height: 72px; border-radius: 50%; border: 3px solid rgba(255,255,255,0.3); object-fit: cover; }
.user-profile-header h2 { font-size: 20px; margin-top: 8px; }
.user-profile-header p { font-size: 13px; opacity: 0.8; margin-top: 4px; }
.user-profile-stats { display: flex; justify-content: center; gap: 24px; margin: 12px 0; font-size: 13px; }
.user-profile-stats span { cursor: pointer; }
.user-profile-header .btn { margin: 4px; }
.user-profile-posts { padding: 8px 12px; }

/* ========= Search Page ========= */
.search-header { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: var(--bg-white); }
.search-input-wrap { flex: 1; }
.search-tabs { display: flex; border-bottom: 1px solid var(--border); }
.search-tab { flex: 1; text-align: center; padding: 10px; cursor: pointer; font-size: 13px; color: var(--text-secondary); border-bottom: 2px solid transparent; }
.search-tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }

/* ========= Settings Page ========= */
.settings-section { margin-bottom: 16px; }
.settings-section-title { padding: 8px 16px; font-size: 12px; color: var(--text-muted); text-transform: uppercase; }
.settings-item { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; background: var(--bg-white); border-bottom: 1px solid var(--border); cursor: pointer; font-size: 14px; }
.settings-item i { color: var(--text-muted); font-size: 12px; }

/* ========= Orders Page ========= */
.order-item { margin: 8px 12px; padding: 12px; background: var(--bg-white); border-radius: var(--radius); box-shadow: var(--shadow); }
.order-header { display: flex; justify-content: space-between; margin-bottom: 8px; }
.order-no { font-size: 12px; color: var(--text-muted); }
.order-status { font-size: 12px; padding: 2px 8px; border-radius: 4px; }
.order-paid { background: #d1fae5; color: #065f46; }
.order-pending { background: #fef3c7; color: #92400e; }
.order-body { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 4px; }
.order-price { font-weight: 600; color: var(--danger); }
.order-time { font-size: 11px; color: var(--text-muted); }

/* ========= Responsive ========= */
@media (min-width: 768px) {
    .app-wrapper { border-left: 1px solid var(--border); border-right: 1px solid var(--border); }
    .post-card-cover { width: 120px; height: 80px; }
    .publish-actions { grid-template-columns: repeat(4, 1fr); max-width: 400px; margin: 0 auto; }
}

@media (min-width: 1024px) {
    .app-wrapper { max-width: 960px; }
    .feed-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .post-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; }
    .app-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; }
}