/* ============================================
   MUASAMVUI.TOP - iOS Fintech Style
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #FF6B35;
    --primary-dark: #E55A2B;
    --primary-light: #FFF0E8;
    --secondary: #1B2838;
    --accent: #00D4AA;
    --accent-dark: #00B894;
    --danger: #FF4757;
    --warning: #FFA502;
    --success: #2ED573;
    --info: #3742FA;
    --bg: #F5F6FA;
    --bg-card: #FFFFFF;
    --bg-dark: #1B2838;
    --text: #2D3436;
    --text-secondary: #636E72;
    --text-light: #B2BEC3;
    --border: #E8ECEF;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 6px;
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --tab-height: 64px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 15px; -webkit-text-size-adjust: 100%; }
body {
    font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    padding-bottom: calc(var(--tab-height) + var(--safe-bottom) + 8px);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; outline: none; }
input, textarea, select { font-family: inherit; outline: none; }

/* ===== HEADER ===== */
.app-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: linear-gradient(135deg, var(--primary) 0%, #FF8F65 100%);
    padding: calc(var(--safe-top) + 8px) 16px 12px;
    color: white;
}
.header-top {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 8px;
}
.header-logo {
    font-size: 1.4rem; font-weight: 800; letter-spacing: -0.5px;
    display: flex; align-items: center; gap: 6px;
}
.header-logo span { font-size: 1.6rem; }
.header-actions { display: flex; gap: 8px; align-items: center; }
.header-btn {
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255,255,255,0.2); backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; color: white; position: relative;
    transition: all 0.2s;
}
.header-btn:active { transform: scale(0.92); }
.notif-badge {
    position: absolute; top: -2px; right: -2px;
    background: var(--danger); color: white;
    font-size: 0.6rem; font-weight: 700;
    min-width: 16px; height: 16px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    padding: 0 4px;
}
.user-xu {
    background: rgba(255,255,255,0.2); backdrop-filter: blur(8px);
    border-radius: 20px; padding: 6px 12px;
    font-size: 0.8rem; font-weight: 600;
    display: flex; align-items: center; gap: 4px;
}
.user-xu .coin { font-size: 1rem; }

/* ===== MAIN CONTENT ===== */
.app-content {
    padding-top: calc(var(--safe-top) + 100px);
    min-height: 100vh; min-height: 100dvh;
}
.tab-content { display: none; padding: 0 12px 20px; }
.tab-content.active { display: block; }

/* ===== BOTTOM TABS ===== */
.bottom-tabs {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 6px 0 calc(var(--safe-bottom) + 6px);
    display: flex;
}
.tab-item {
    flex: 1; display: flex; flex-direction: column;
    align-items: center; gap: 2px;
    padding: 6px 4px; background: none;
    color: var(--text-light); font-size: 0.65rem; font-weight: 500;
    transition: all 0.2s;
}
.tab-item .tab-icon { font-size: 1.3rem; transition: transform 0.2s; }
.tab-item.active { color: var(--primary); }
.tab-item.active .tab-icon { transform: scale(1.15); }
.tab-item:active { transform: scale(0.92); }

/* ===== SECTION HEADERS ===== */
.section-header {
    display: flex; justify-content: space-between; align-items: center;
    margin: 20px 0 12px; padding: 0 2px;
}
.section-title {
    font-size: 1.1rem; font-weight: 700; color: var(--secondary);
    display: flex; align-items: center; gap: 6px;
}
.section-title .icon { font-size: 1.2rem; }
.section-more {
    font-size: 0.8rem; color: var(--primary); font-weight: 600;
    display: flex; align-items: center; gap: 2px;
    padding: 4px 8px; background: var(--primary-light);
    border-radius: 20px;
}

/* ===== DEAL CARDS ===== */
.deal-card {
    background: var(--bg-card); border-radius: var(--radius);
    box-shadow: var(--shadow); overflow: hidden;
    margin-bottom: 12px; transition: all 0.2s;
}
.deal-card:active { transform: scale(0.98); }
.deal-card-img {
    width: 100%; height: 180px; object-fit: cover;
    background: var(--bg);
}
.deal-card-body { padding: 12px; }
.deal-card-title {
    font-size: 0.9rem; font-weight: 600; line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
    margin-bottom: 8px;
}
.deal-prices {
    display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
}
.deal-price-sale {
    font-size: 1.15rem; font-weight: 800; color: var(--danger);
}
.deal-price-original {
    font-size: 0.8rem; color: var(--text-light);
    text-decoration: line-through;
}
.deal-discount {
    background: var(--danger); color: white;
    font-size: 0.65rem; font-weight: 700;
    padding: 2px 6px; border-radius: 4px;
}
.deal-meta {
    display: flex; align-items: center; justify-content: space-between;
    font-size: 0.75rem; color: var(--text-secondary);
}
.deal-votes {
    display: flex; align-items: center; gap: 12px;
}
.vote-btn {
    display: flex; align-items: center; gap: 4px;
    padding: 4px 10px; border-radius: 20px;
    background: var(--bg); font-size: 0.8rem;
    font-weight: 600; transition: all 0.2s;
}
.vote-btn.up:hover, .vote-btn.up.active { background: #E8F5E9; color: var(--success); }
.vote-btn.down:hover, .vote-btn.down.active { background: #FFEBEE; color: var(--danger); }
.deal-user {
    display: flex; align-items: center; gap: 6px;
}
.deal-user-avatar {
    width: 24px; height: 24px; border-radius: 50%;
    background: var(--primary-light); display: flex;
    align-items: center; justify-content: center;
    font-size: 0.7rem; font-weight: 700; color: var(--primary);
    overflow: hidden;
}
.deal-user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.deal-badge {
    display: inline-block; padding: 2px 8px; border-radius: 4px;
    font-size: 0.65rem; font-weight: 700; margin-bottom: 6px;
}
.badge-hot { background: #FF4757; color: white; }
.badge-trending { background: #3742FA; color: white; }
.badge-sponsored { background: var(--warning); color: white; }

/* ===== GRID LAYOUTS ===== */
.deal-grid {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.deal-grid .deal-card-img { height: 130px; }
.deal-grid .deal-card-body { padding: 8px; }
.deal-grid .deal-card-title { font-size: 0.8rem; -webkit-line-clamp: 2; }
.deal-grid .deal-price-sale { font-size: 0.95rem; }

/* ===== HORIZONTAL SCROLL ===== */
.scroll-row {
    display: flex; gap: 10px; overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 2px 0 8px; margin: 0 -12px;
    padding-left: 12px; padding-right: 12px;
    scrollbar-width: none;
}
.scroll-row::-webkit-scrollbar { display: none; }
.scroll-row .deal-card {
    min-width: 260px; max-width: 260px;
    scroll-snap-align: start; flex-shrink: 0;
    margin-bottom: 0;
}

/* ===== CATEGORY FILTER ===== */
.category-filter {
    position: relative; margin-bottom: 12px;
}
.filter-select {
    width: 100%; padding: 10px 40px 10px 14px;
    border: 1.5px solid var(--border); border-radius: var(--radius-sm);
    background: var(--bg-card); font-size: 0.85rem;
    font-weight: 500; color: var(--text);
    appearance: none; -webkit-appearance: none;
}
.filter-select-icon {
    position: absolute; right: 14px; top: 50%;
    transform: translateY(-50%); pointer-events: none;
    color: var(--text-secondary);
}

/* ===== GIFT CARDS ===== */
.gift-card {
    background: var(--bg-card); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 16px;
    margin-bottom: 12px; display: flex; gap: 14px;
    align-items: center;
}
.gift-icon { font-size: 2.5rem; }
.gift-info { flex: 1; }
.gift-title { font-size: 0.95rem; font-weight: 600; margin-bottom: 4px; }
.gift-desc { font-size: 0.75rem; color: var(--text-secondary); margin-bottom: 6px; }
.gift-cost {
    display: flex; align-items: center; gap: 4px;
    font-size: 0.85rem; font-weight: 700; color: var(--warning);
}
.gift-claim-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white; border-radius: var(--radius-sm);
    padding: 8px 16px; font-size: 0.8rem; font-weight: 600;
    white-space: nowrap;
}
.gift-claim-btn:disabled {
    background: var(--text-light); cursor: not-allowed;
}

/* ===== EVENT CARDS (Lottery/Auction) ===== */
.event-card {
    background: var(--bg-card); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 16px;
    margin-bottom: 12px; border-left: 4px solid var(--accent);
}
.event-card.lottery { border-left-color: var(--warning); }
.event-card.auction { border-left-color: var(--info); }
.event-card.completed { opacity: 0.7; border-left-color: var(--text-light); }
.event-header {
    display: flex; justify-content: space-between; align-items: flex-start;
    margin-bottom: 10px;
}
.event-title { font-size: 1rem; font-weight: 700; }
.event-status {
    padding: 3px 10px; border-radius: 20px;
    font-size: 0.7rem; font-weight: 600;
}
.status-active { background: #E8F5E9; color: var(--success); }
.status-locked { background: #FFF3E0; color: var(--warning); }
.status-completed { background: var(--bg); color: var(--text-secondary); }
.event-prize {
    font-size: 0.85rem; color: var(--text-secondary);
    margin-bottom: 8px;
}
.event-prize strong { color: var(--text); }
.event-timer {
    font-size: 0.8rem; color: var(--danger);
    font-weight: 600; margin-bottom: 10px;
}
.event-input-row {
    display: flex; gap: 8px; align-items: center;
}
.event-input {
    flex: 1; padding: 10px 14px; border: 1.5px solid var(--border);
    border-radius: var(--radius-sm); font-size: 0.85rem;
    background: var(--bg);
}
.event-submit {
    padding: 10px 20px; border-radius: var(--radius-sm);
    font-size: 0.85rem; font-weight: 600; color: white;
}
.event-submit.lottery-btn { background: var(--warning); }
.event-submit.auction-btn { background: var(--info); }
.event-winner {
    margin-top: 10px; padding: 10px; border-radius: var(--radius-sm);
    background: #FFF8E1; font-size: 0.85rem;
}

/* ===== COMMUNITY POSTS ===== */
.post-card {
    background: var(--bg-card); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 14px;
    margin-bottom: 10px;
}
.post-cat-tag {
    display: inline-block; padding: 2px 8px; border-radius: 4px;
    font-size: 0.65rem; font-weight: 700; margin-bottom: 6px;
}
.cat-thong-bao { background: #E3F2FD; color: #1565C0; }
.cat-hoi-dap { background: #E8F5E9; color: #2E7D32; }
.cat-canh-bao { background: #FFF3E0; color: #E65100; }
.post-title { font-size: 0.95rem; font-weight: 600; margin-bottom: 6px; }
.post-excerpt {
    font-size: 0.8rem; color: var(--text-secondary);
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
    margin-bottom: 8px;
}
.post-meta {
    display: flex; justify-content: space-between;
    font-size: 0.72rem; color: var(--text-light);
}
.post-pinned {
    background: var(--primary-light); border: 1px solid var(--primary);
}

/* ===== LEADERBOARD ===== */
.lb-tabs {
    display: flex; gap: 6px; margin-bottom: 14px;
    background: var(--bg); border-radius: var(--radius-sm);
    padding: 4px;
}
.lb-tab {
    flex: 1; padding: 8px; text-align: center;
    border-radius: var(--radius-xs); font-size: 0.8rem;
    font-weight: 600; color: var(--text-secondary);
    background: none; transition: all 0.2s;
}
.lb-tab.active {
    background: var(--bg-card); color: var(--primary);
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.lb-podium {
    display: flex; align-items: flex-end; justify-content: center;
    gap: 8px; margin-bottom: 20px; padding: 10px 0;
}
.podium-item {
    display: flex; flex-direction: column; align-items: center;
    gap: 6px;
}
.podium-item.first { order: 2; }
.podium-item.second { order: 1; }
.podium-item.third { order: 3; }
.podium-avatar {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--primary-light); display: flex;
    align-items: center; justify-content: center;
    font-size: 1.2rem; font-weight: 800; color: var(--primary);
    border: 3px solid var(--border);
}
.podium-item.first .podium-avatar {
    width: 64px; height: 64px; font-size: 1.4rem;
    border-color: #FFD700;
}
.podium-name { font-size: 0.75rem; font-weight: 600; text-align: center; max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podium-xp { font-size: 0.7rem; color: var(--primary); font-weight: 700; }
.podium-rank { font-size: 1.2rem; }

.lb-list { list-style: none; }
.lb-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; background: var(--bg-card);
    border-radius: var(--radius-sm); margin-bottom: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.lb-rank {
    width: 28px; font-size: 0.85rem; font-weight: 800;
    color: var(--text-light); text-align: center;
}
.lb-item:nth-child(-n+3) .lb-rank { color: var(--warning); }
.lb-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--bg); display: flex;
    align-items: center; justify-content: center;
    font-size: 0.8rem; font-weight: 700; color: var(--primary);
}
.lb-info { flex: 1; }
.lb-name { font-size: 0.85rem; font-weight: 600; }
.lb-rank-title { font-size: 0.7rem; color: var(--text-secondary); }
.lb-xp { font-size: 0.85rem; font-weight: 700; color: var(--primary); }

/* ===== MODALS ===== */
.modal-overlay {
    position: fixed; inset: 0; z-index: 200;
    background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
    display: none; align-items: flex-end; justify-content: center;
}
.modal-overlay.active { display: flex; }
.modal-sheet {
    background: var(--bg-card); width: 100%; max-width: 500px;
    border-radius: 20px 20px 0 0; max-height: 90vh;
    overflow-y: auto; padding: 0;
    animation: slideUp 0.3s ease;
}
@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}
.modal-handle {
    width: 36px; height: 4px; background: var(--border);
    border-radius: 2px; margin: 10px auto 6px;
}
.modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 20px; border-bottom: 1px solid var(--border);
}
.modal-title { font-size: 1.05rem; font-weight: 700; }
.modal-close {
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--bg); display: flex;
    align-items: center; justify-content: center;
    font-size: 1.1rem; color: var(--text-secondary);
}
.modal-body { padding: 16px 20px 32px; }

/* ===== FORMS ===== */
.form-group { margin-bottom: 14px; }
.form-label {
    display: block; font-size: 0.8rem; font-weight: 600;
    margin-bottom: 6px; color: var(--text-secondary);
}
.form-input {
    width: 100%; padding: 12px 14px;
    border: 1.5px solid var(--border); border-radius: var(--radius-sm);
    font-size: 0.9rem; background: var(--bg);
    transition: border-color 0.2s;
}
.form-input:focus { border-color: var(--primary); background: white; }
textarea.form-input { resize: vertical; min-height: 80px; }
select.form-input { appearance: none; -webkit-appearance: none; }
.form-row { display: flex; gap: 10px; }
.form-row .form-group { flex: 1; }

.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 6px; padding: 12px 24px; border-radius: var(--radius-sm);
    font-size: 0.9rem; font-weight: 600; transition: all 0.2s;
    width: 100%;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}
.btn-secondary { background: var(--bg); color: var(--text); border: 1.5px solid var(--border); }
.btn-success { background: var(--success); color: white; }
.btn-danger { background: var(--danger); color: white; }
.btn-sm { padding: 8px 14px; font-size: 0.8rem; width: auto; }

/* ===== USER PROFILE ===== */
.profile-header {
    background: linear-gradient(135deg, var(--primary), #FF8F65);
    border-radius: var(--radius); padding: 20px;
    color: white; margin-bottom: 16px; text-align: center;
}
.profile-avatar {
    width: 72px; height: 72px; border-radius: 50%;
    margin: 0 auto 10px; background: rgba(255,255,255,0.3);
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; font-weight: 800; border: 3px solid rgba(255,255,255,0.5);
    overflow: hidden;
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-name { font-size: 1.2rem; font-weight: 700; margin-bottom: 4px; }
.profile-rank { font-size: 0.8rem; opacity: 0.85; }
.profile-stats {
    display: flex; justify-content: center; gap: 24px; margin-top: 14px;
}
.profile-stat { text-align: center; }
.profile-stat-val { font-size: 1.3rem; font-weight: 800; }
.profile-stat-label { font-size: 0.7rem; opacity: 0.8; }
.profile-xp-bar {
    margin-top: 12px; background: rgba(255,255,255,0.2);
    border-radius: 10px; height: 8px; overflow: hidden;
}
.profile-xp-fill {
    height: 100%; background: white; border-radius: 10px;
    transition: width 0.5s ease;
}
.achievements-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 8px; margin-top: 12px;
}
.achievement-item {
    background: var(--bg-card); border-radius: var(--radius-sm);
    padding: 10px; text-align: center; box-shadow: var(--shadow);
}
.achievement-icon { font-size: 1.6rem; margin-bottom: 4px; }
.achievement-title { font-size: 0.65rem; font-weight: 600; }

/* ===== DETAIL PAGE ===== */
.detail-page {
    position: fixed; inset: 0; z-index: 150;
    background: var(--bg); overflow-y: auto;
    display: none;
}
.detail-page.active { display: block; }
.detail-header {
    position: sticky; top: 0; z-index: 10;
    background: var(--bg-card); padding: 12px 16px;
    display: flex; align-items: center; gap: 12px;
    border-bottom: 1px solid var(--border);
}
.detail-back {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--bg); display: flex;
    align-items: center; justify-content: center;
    font-size: 1.1rem;
}
.detail-body { padding: 16px; }
.detail-img {
    width: 100%; height: 240px; object-fit: cover;
    border-radius: var(--radius); margin-bottom: 16px;
    background: var(--bg);
}
.detail-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; line-height: 1.5; }
.detail-prices { margin-bottom: 12px; }
.detail-buy-btn {
    display: flex; align-items: center; justify-content: center;
    gap: 8px; padding: 14px; border-radius: var(--radius-sm);
    font-size: 1rem; font-weight: 700; color: white;
    margin-bottom: 16px; width: 100%;
}
.platform-shopee { background: #EE4D2D; }
.platform-lazada { background: #0F146D; }
.platform-tiktok { background: #000000; }
.platform-khac { background: var(--primary); }

.comment-list { margin-top: 16px; }
.comment-item {
    display: flex; gap: 10px; padding: 10px 0;
    border-bottom: 1px solid var(--border);
}
.comment-avatar {
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--primary-light); display: flex;
    align-items: center; justify-content: center;
    font-size: 0.7rem; font-weight: 700; color: var(--primary);
    flex-shrink: 0;
}
.comment-body { flex: 1; }
.comment-author { font-size: 0.8rem; font-weight: 600; margin-bottom: 2px; }
.comment-text { font-size: 0.85rem; line-height: 1.5; }
.comment-time { font-size: 0.7rem; color: var(--text-light); margin-top: 4px; }
.comment-input-row {
    position: sticky; bottom: 0;
    display: flex; gap: 8px; padding: 12px 0;
    background: var(--bg);
}

/* ===== LOADING & EMPTY ===== */
.loading-spinner {
    display: flex; align-items: center; justify-content: center;
    padding: 40px; color: var(--text-light);
}
.loading-spinner::after {
    content: ''; width: 28px; height: 28px;
    border: 3px solid var(--border); border-top-color: var(--primary);
    border-radius: 50%; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.empty-state {
    text-align: center; padding: 40px 20px; color: var(--text-light);
}
.empty-icon { font-size: 3rem; margin-bottom: 10px; }
.empty-text { font-size: 0.9rem; }

/* ===== TOAST ===== */
.toast-container {
    position: fixed; top: calc(var(--safe-top) + 80px);
    left: 50%; transform: translateX(-50%); z-index: 300;
    display: flex; flex-direction: column; gap: 8px;
    pointer-events: none; width: 90%; max-width: 400px;
}
.toast {
    background: var(--secondary); color: white;
    padding: 12px 16px; border-radius: var(--radius-sm);
    font-size: 0.85rem; font-weight: 500;
    box-shadow: var(--shadow-lg); pointer-events: auto;
    animation: fadeInDown 0.3s ease;
}
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== FAB ===== */
.fab {
    position: fixed; bottom: calc(var(--tab-height) + var(--safe-bottom) + 20px);
    right: 16px; width: 56px; height: 56px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white; font-size: 1.6rem; display: flex;
    align-items: center; justify-content: center;
    box-shadow: 0 4px 16px rgba(255,107,53,0.4);
    z-index: 50; transition: all 0.2s;
}
.fab:active { transform: scale(0.9); }

/* ===== NOTIFICATION LIST ===== */
.notif-item {
    display: flex; gap: 10px; padding: 12px; background: var(--bg-card);
    border-radius: var(--radius-sm); margin-bottom: 6px;
}
.notif-item.unread { background: var(--primary-light); }
.notif-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--primary); margin-top: 6px; flex-shrink: 0;
}
.notif-item:not(.unread) .notif-dot { background: transparent; }
.notif-content { flex: 1; }
.notif-title { font-size: 0.85rem; font-weight: 600; margin-bottom: 2px; }
.notif-msg { font-size: 0.78rem; color: var(--text-secondary); }
.notif-time { font-size: 0.68rem; color: var(--text-light); margin-top: 4px; }

/* ===== ADMIN PAGE ===== */
.admin-nav {
    display: flex; gap: 6px; overflow-x: auto; padding: 8px 0;
    scrollbar-width: none; margin-bottom: 14px;
}
.admin-nav::-webkit-scrollbar { display: none; }
.admin-nav-item {
    padding: 8px 14px; border-radius: var(--radius-sm);
    font-size: 0.8rem; font-weight: 600; white-space: nowrap;
    background: var(--bg); color: var(--text-secondary);
    transition: all 0.2s; border: none;
}
.admin-nav-item.active { background: var(--primary); color: white; }
.admin-card {
    background: var(--bg-card); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 14px; margin-bottom: 10px;
}
.admin-stat-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
    margin-bottom: 16px;
}
.admin-stat {
    background: var(--bg-card); border-radius: var(--radius-sm);
    padding: 14px; text-align: center; box-shadow: var(--shadow);
}
.admin-stat-val { font-size: 1.5rem; font-weight: 800; color: var(--primary); }
.admin-stat-label { font-size: 0.72rem; color: var(--text-secondary); margin-top: 2px; }
.admin-actions {
    display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px;
}

@media (min-width: 500px) {
    .app-content { max-width: 500px; margin: 0 auto; }
    .bottom-tabs { max-width: 500px; left: 50%; transform: translateX(-50%); }
    .modal-sheet { max-width: 500px; }
}
