:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --success: #16a34a;
  --danger: #dc2626;
  --warning: #d97706;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-900: #111827;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,.1), 0 4px 6px rgba(0,0,0,.05);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: var(--gray-900); background: var(--gray-50); line-height: 1.5; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* HEADER */
.site-header { background: #fff; border-bottom: 1px solid var(--gray-200); position: sticky; top: 0; z-index: 100; }
.site-header .container { display: flex; align-items: center; gap: 16px; height: 60px; }
.logo { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.5px; }
.logo-an { color: var(--primary); }
.logo-zeyo { color: var(--gray-900); }
.main-nav { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav-link { padding: 8px 12px; border-radius: var(--radius); color: var(--gray-700); font-weight: 500; transition: background .15s; position: relative; }
.nav-link:hover { background: var(--gray-100); }
.badge { position: absolute; top: 2px; right: 2px; background: var(--danger); color: #fff; font-size: .65rem; font-weight: 700; min-width: 16px; height: 16px; border-radius: 8px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.nav-user-menu { position: relative; }
.nav-user-btn { display: flex; align-items: center; gap: 8px; background: none; border: none; cursor: pointer; padding: 8px 12px; border-radius: var(--radius); font-size: .9rem; font-weight: 500; color: var(--gray-700); }
.nav-user-btn:hover { background: var(--gray-100); }
.nav-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.nav-dropdown { display: none; position: absolute; right: 0; top: calc(100% + 4px); background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); box-shadow: var(--shadow-lg); min-width: 200px; overflow: hidden; }
.nav-user-menu:hover .nav-dropdown { display: block; }
.nav-dropdown a { display: flex; align-items: center; gap: 10px; padding: 10px 16px; color: var(--gray-700); font-size: .9rem; }
.nav-dropdown a:hover { background: var(--gray-50); }
.nav-dropdown .logout-link { color: var(--danger); border-top: 1px solid var(--gray-200); }
.nav-dropdown .admin-link { color: var(--primary); }
.btn-insert { margin-left: 8px; }
.mobile-menu-btn { display: none; background: none; border: none; cursor: pointer; font-size: 1.25rem; color: var(--gray-700); margin-left: auto; }
.mobile-nav { display: none; background: #fff; border-bottom: 1px solid var(--gray-200); padding: 8px 0; }
.mobile-nav a { display: flex; align-items: center; gap: 12px; padding: 12px 20px; color: var(--gray-700); font-weight: 500; }
.mobile-nav a:hover { background: var(--gray-50); }
.mobile-insert { background: var(--success); color: #fff !important; margin: 8px 16px; border-radius: var(--radius); }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: var(--radius); font-weight: 600; font-size: .9rem; cursor: pointer; border: none; transition: all .15s; white-space: nowrap; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #15803d; }
.btn-outline { border: 1.5px solid var(--gray-300); color: var(--gray-700); background: #fff; }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-lg { padding: 12px 24px; font-size: 1rem; }
.btn-sm { padding: 6px 12px; font-size: .8rem; }

/* HERO */
.hero { background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #3b82f6 100%); color: #fff; padding: 48px 0; }
.hero h1 { font-size: 2rem; font-weight: 800; margin-bottom: 8px; }
.hero p { opacity: .85; margin-bottom: 24px; font-size: 1.05rem; }
.search-bar { display: flex; gap: 8px; max-width: 700px; }
.search-bar input, .search-bar select { flex: 1; padding: 12px 16px; border: none; border-radius: var(--radius); font-size: 1rem; }
.search-bar select { flex: 0 0 200px; }
.search-bar .btn { flex: 0 0 auto; padding: 12px 20px; }
.hero-stats { display: flex; gap: 32px; margin-top: 24px; }
.hero-stat { text-align: center; }
.hero-stat strong { display: block; font-size: 1.5rem; font-weight: 800; }
.hero-stat span { font-size: .85rem; opacity: .75; }

/* KATEGORILER */
.categories-section { padding: 40px 0; }
.section-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 20px; color: var(--gray-900); }
.categories-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.category-card { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 20px 12px; text-align: center; cursor: pointer; transition: all .15s; }
.category-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.category-card i { font-size: 1.75rem; color: var(--primary); margin-bottom: 8px; display: block; }
.category-card span { font-size: .85rem; font-weight: 600; color: var(--gray-700); }
.category-card small { display: block; font-size: .75rem; color: var(--gray-500); margin-top: 2px; }

/* ILAN KARTI */
.ads-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.ad-card { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); overflow: hidden; transition: all .15s; }
.ad-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.ad-card-img { aspect-ratio: 4/3; overflow: hidden; background: var(--gray-100); position: relative; }
.ad-card-img img { width: 100%; height: 100%; object-fit: cover; }
.ad-card-img .no-img { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--gray-300); font-size: 3rem; }
.ad-card-badge { position: absolute; top: 8px; left: 8px; display: flex; gap: 4px; }
.badge-urgent { background: var(--danger); color: #fff; font-size: .7rem; font-weight: 700; padding: 2px 8px; border-radius: 4px; }
.badge-highlight { background: var(--warning); color: #fff; font-size: .7rem; font-weight: 700; padding: 2px 8px; border-radius: 4px; }
.ad-card-body { padding: 12px; }
.ad-card-title { font-weight: 600; font-size: .95rem; color: var(--gray-900); margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ad-card-price { font-size: 1.1rem; font-weight: 800; color: var(--primary); margin-bottom: 8px; }
.ad-card-price.free { color: var(--success); }
.ad-card-meta { display: flex; justify-content: space-between; align-items: center; font-size: .78rem; color: var(--gray-500); }
.ad-card-location { display: flex; align-items: center; gap: 4px; }
.ad-card-fav { background: none; border: none; cursor: pointer; color: var(--gray-300); font-size: 1rem; transition: color .15s; }
.ad-card-fav.active, .ad-card-fav:hover { color: var(--danger); }

/* FORMS */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--gray-700); }
.form-control { width: 100%; padding: 10px 14px; border: 1.5px solid var(--gray-300); border-radius: var(--radius); font-size: .95rem; color: var(--gray-900); background: #fff; transition: border-color .15s; }
.form-control:focus { outline: none; border-color: var(--primary); }
.form-control.error { border-color: var(--danger); }
.form-error { color: var(--danger); font-size: .8rem; margin-top: 4px; }
.form-hint { color: var(--gray-500); font-size: .8rem; margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control { cursor: pointer; }
.form-check { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.form-check input { width: 16px; height: 16px; cursor: pointer; }

/* AUTH PAGES */
.auth-page { min-height: calc(100vh - 60px); display: flex; align-items: center; justify-content: center; padding: 40px 16px; }
.auth-box { background: #fff; border: 1px solid var(--gray-200); border-radius: 12px; padding: 40px; width: 100%; max-width: 480px; box-shadow: var(--shadow-lg); }
.auth-box h1 { font-size: 1.5rem; font-weight: 800; margin-bottom: 4px; }
.auth-box p { color: var(--gray-500); margin-bottom: 24px; font-size: .9rem; }
.auth-divider { text-align: center; margin: 20px 0; color: var(--gray-500); font-size: .85rem; position: relative; }
.auth-divider::before { content: ""; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--gray-200); }
.auth-divider span { background: #fff; padding: 0 12px; position: relative; }
.auth-footer { text-align: center; margin-top: 20px; font-size: .9rem; color: var(--gray-500); }
.auth-footer a { color: var(--primary); font-weight: 600; }
.type-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 24px; }
.type-btn { padding: 12px; border: 2px solid var(--gray-200); border-radius: var(--radius); text-align: center; cursor: pointer; transition: all .15s; background: #fff; }
.type-btn.active { border-color: var(--primary); background: #eff6ff; }
.type-btn i { display: block; font-size: 1.5rem; color: var(--primary); margin-bottom: 4px; }
.type-btn span { font-size: .85rem; font-weight: 600; }

/* ALERTS */
.alert { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px; font-size: .9rem; display: flex; align-items: center; gap: 10px; }
.alert-success { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.alert-danger { background: #fef2f2; color: var(--danger); border: 1px solid #fecaca; }
.alert-warning { background: #fffbeb; color: var(--warning); border: 1px solid #fde68a; }
.alert-info { background: #eff6ff; color: var(--primary); border: 1px solid #bfdbfe; }

/* CARD */
.card { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 24px; }
.card-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 16px; }

/* PAGE LAYOUT */
.page-layout { display: grid; grid-template-columns: 280px 1fr; gap: 24px; padding: 32px 0; }
.page-header { padding: 24px 0 0; }
.page-header h1 { font-size: 1.5rem; font-weight: 800; }
.page-breadcrumb { display: flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--gray-500); margin-bottom: 8px; }
.page-breadcrumb a { color: var(--primary); }

/* FILTER SIDEBAR */
.filter-box { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
.filter-title { font-weight: 700; font-size: .95rem; margin-bottom: 16px; display: flex; justify-content: space-between; }
.filter-clear { color: var(--primary); font-size: .8rem; font-weight: 500; cursor: pointer; }
.price-range { display: flex; gap: 8px; align-items: center; }
.price-range input { flex: 1; }

/* AD DETAIL */
.ad-detail { padding: 32px 0; }
.ad-images { border-radius: var(--radius); overflow: hidden; margin-bottom: 24px; }
.ad-main-img { aspect-ratio: 16/9; background: var(--gray-100); }
.ad-main-img img { width: 100%; height: 100%; object-fit: cover; }
.ad-thumbs { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; }
.ad-thumb { width: 80px; height: 60px; border-radius: 4px; overflow: hidden; cursor: pointer; flex-shrink: 0; opacity: .7; transition: opacity .15s; }
.ad-thumb:hover, .ad-thumb.active { opacity: 1; }
.ad-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ad-title { font-size: 1.5rem; font-weight: 800; margin-bottom: 8px; }
.ad-price { font-size: 1.75rem; font-weight: 800; color: var(--primary); margin-bottom: 16px; }
.ad-meta-row { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 20px; font-size: .85rem; color: var(--gray-500); }
.ad-meta-item { display: flex; align-items: center; gap: 6px; }
.ad-description { line-height: 1.7; color: var(--gray-700); white-space: pre-line; }
.seller-box { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 20px; }
.seller-info { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.seller-avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--gray-200); overflow: hidden; }
.seller-avatar img { width: 100%; height: 100%; object-fit: cover; }
.seller-name { font-weight: 700; }
.seller-type { font-size: .8rem; color: var(--gray-500); }

/* UPLOAD AREA */
.upload-area { border: 2px dashed var(--gray-300); border-radius: var(--radius); padding: 40px; text-align: center; cursor: pointer; transition: all .15s; }
.upload-area:hover { border-color: var(--primary); background: #eff6ff; }
.upload-area i { font-size: 2.5rem; color: var(--gray-300); margin-bottom: 8px; }
.upload-preview { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.upload-thumb { width: 100px; height: 80px; border-radius: 4px; overflow: hidden; position: relative; border: 2px solid var(--gray-200); }
.upload-thumb img { width: 100%; height: 100%; object-fit: cover; }
.upload-thumb-remove { position: absolute; top: 2px; right: 2px; background: var(--danger); color: #fff; border: none; border-radius: 50%; width: 18px; height: 18px; font-size: .65rem; cursor: pointer; display: flex; align-items: center; justify-content: center; }

/* MESSAGES */
.messages-layout { display: grid; grid-template-columns: 300px 1fr; gap: 0; height: calc(100vh - 120px); background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); overflow: hidden; margin: 24px 0; }
.conv-list { border-right: 1px solid var(--gray-200); overflow-y: auto; }
.conv-item { padding: 16px; border-bottom: 1px solid var(--gray-100); cursor: pointer; transition: background .1s; display: flex; gap: 12px; }
.conv-item:hover, .conv-item.active { background: var(--gray-50); }
.conv-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--gray-200); flex-shrink: 0; overflow: hidden; }
.conv-info { flex: 1; min-width: 0; }
.conv-name { font-weight: 600; font-size: .9rem; }
.conv-preview { font-size: .8rem; color: var(--gray-500); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv-time { font-size: .75rem; color: var(--gray-400); }
.conv-unread { background: var(--primary); color: #fff; font-size: .7rem; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.chat-area { display: flex; flex-direction: column; }
.chat-header { padding: 16px; border-bottom: 1px solid var(--gray-200); display: flex; align-items: center; gap: 12px; }
.chat-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 70%; }
.msg-in { align-self: flex-start; }
.msg-out { align-self: flex-end; }
.msg-bubble { padding: 10px 14px; border-radius: 16px; font-size: .9rem; line-height: 1.5; }
.msg-in .msg-bubble { background: var(--gray-100); color: var(--gray-900); border-bottom-left-radius: 4px; }
.msg-out .msg-bubble { background: var(--primary); color: #fff; border-bottom-right-radius: 4px; }
.msg-time { font-size: .72rem; color: var(--gray-400); margin-top: 4px; }
.msg-out .msg-time { text-align: right; }
.chat-input { padding: 16px; border-top: 1px solid var(--gray-200); display: flex; gap: 8px; }
.chat-input textarea { flex: 1; border: 1.5px solid var(--gray-200); border-radius: 20px; padding: 10px 16px; font-size: .9rem; resize: none; max-height: 120px; font-family: inherit; }
.chat-input textarea:focus { outline: none; border-color: var(--primary); }

/* ADMIN */
.admin-layout { display: grid; grid-template-columns: 240px 1fr; min-height: calc(100vh - 60px); }
.admin-sidebar { background: var(--gray-900); color: #fff; padding: 24px 0; }
.admin-nav a { display: flex; align-items: center; gap: 10px; padding: 12px 20px; color: rgba(255,255,255,.7); font-size: .9rem; transition: all .15s; }
.admin-nav a:hover, .admin-nav a.active { background: rgba(255,255,255,.1); color: #fff; }
.admin-content { padding: 32px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 32px; }
.stat-card { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 20px; }
.stat-card .stat-value { font-size: 2rem; font-weight: 800; color: var(--primary); }
.stat-card .stat-label { font-size: .85rem; color: var(--gray-500); margin-top: 4px; }
.data-table { width: 100%; border-collapse: collapse; background: #fff; }
.data-table th { padding: 12px 16px; text-align: left; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--gray-500); border-bottom: 2px solid var(--gray-200); }
.data-table td { padding: 12px 16px; border-bottom: 1px solid var(--gray-100); font-size: .9rem; }
.data-table tr:hover td { background: var(--gray-50); }
.status-badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 20px; font-size: .78rem; font-weight: 600; }
.status-approved { background: #dcfce7; color: #15803d; }
.status-pending { background: #fef9c3; color: #a16207; }
.status-rejected { background: #fee2e2; color: var(--danger); }
.status-auto_approved { background: #dbeafe; color: var(--primary); }

/* PAGINATION */
.pagination { display: flex; gap: 4px; justify-content: center; margin-top: 32px; }
.page-btn { padding: 8px 14px; border: 1.5px solid var(--gray-200); border-radius: var(--radius); font-size: .9rem; cursor: pointer; background: #fff; color: var(--gray-700); }
.page-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* FOOTER */
.site-footer { background: #0f172a; color: rgba(255,255,255,.65); margin-top: 64px; padding: 52px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { font-size: .875rem; margin-top: 12px; line-height: 1.7; color: rgba(255,255,255,.55); }
.footer-brand .logo { font-size: 1.4rem; }
.footer-heading { font-weight: 700; color: #fff; margin-bottom: 14px; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; margin-top: 0; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 9px; }
.footer-links a { font-size: .875rem; color: rgba(255,255,255,.6); text-decoration: none; transition: color .15s; }
.footer-links a:hover { color: #fff; }
.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.08); color: rgba(255,255,255,.7); display: flex; align-items: center; justify-content: center; text-decoration: none; transition: background .15s, color .15s; }
.footer-social a:hover { background: var(--primary); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; font-size: .8rem; color: rgba(255,255,255,.4); flex-wrap: wrap; gap: 8px; }
.footer-flags { display: flex; gap: 8px; font-size: 1.1rem; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .main-nav { display: none; }
  .mobile-menu-btn { display: block; }
  .mobile-nav.open { display: block; }
  .hero h1 { font-size: 1.4rem; }
  .search-bar { flex-direction: column; }
  .search-bar select { flex: 1; }
  .hero-stats { gap: 16px; }
  .page-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .messages-layout { grid-template-columns: 1fr; }
  .conv-list { display: none; }
  .conv-list.show { display: block; }
  .form-row { grid-template-columns: 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .ads-grid { grid-template-columns: 1fr 1fr; }
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
}

/* DARK MODE */
@media (prefers-color-scheme: dark) {
  :root {
    --gray-50: #111827; --gray-100: #1f2937; --gray-200: #374151;
    --gray-300: #4b5563; --gray-500: #9ca3af; --gray-700: #d1d5db; --gray-900: #f9fafb;
  }
  body { background: #0f172a; }
  .site-header, .nav-dropdown, .auth-box, .card, .ad-card, .category-card, .filter-box, .seller-box, .messages-layout { background: #1e293b; }
  .form-control { background: #1e293b; color: #f1f5f9; border-color: #334155; }
  .data-table { background: #1e293b; }
  .site-footer { background: #020617; }
}

/* NOTIFICATIONS */
.notif-bell { position: relative; display: inline-block; }
.notif-btn { position: relative; padding: 6px 10px !important; }
.notif-badge { position: absolute; top: -6px; right: -6px; background: #ef4444; color: #fff; font-size: .65rem; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px; display: flex; align-items: center; justify-content: center; padding: 0 4px; line-height: 1; }
.notif-dropdown { position: absolute; top: calc(100% + 8px); right: 0; width: 320px; background: #fff; border-radius: 12px; box-shadow: 0 8px 32px rgba(0,0,0,.15); border: 1px solid var(--gray-200); z-index: 1000; overflow: hidden; }
.notif-header { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--gray-100); font-size: .9rem; }
.notif-item { display: flex; align-items: flex-start; gap: 12px; padding: 12px 16px; text-decoration: none; color: inherit; border-bottom: 1px solid var(--gray-100); transition: background .15s; }
.notif-item:hover { background: var(--gray-50); }
.notif-item.unread { background: #eff6ff; }
.notif-icon { width: 32px; height: 32px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: .8rem; flex-shrink: 0; }
.notif-body { flex: 1; min-width: 0; }
.notif-title { font-size: .82rem; font-weight: 500; color: var(--gray-800); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notif-time { font-size: .75rem; color: var(--gray-500); margin-top: 2px; }
.notif-empty { text-align: center; padding: 32px 16px; color: var(--gray-400); font-size: .85rem; }
.notif-footer { display: block; text-align: center; padding: 10px; font-size: .82rem; color: var(--primary); text-decoration: none; border-top: 1px solid var(--gray-100); }
.notif-footer:hover { background: var(--gray-50); }

/* PWA install banner */
#pwa-banner { display: none; position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); background: var(--primary); color: #fff; padding: 12px 20px; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,.2); z-index: 9999; display: flex; align-items: center; gap: 12px; font-size: .9rem; max-width: 90%; }
#pwa-banner button { background: #fff; color: var(--primary); border: none; border-radius: 8px; padding: 6px 14px; font-weight: 700; cursor: pointer; font-size: .85rem; }
#pwa-banner .close-pwa { background: transparent; color: rgba(255,255,255,.7); padding: 4px 8px; }

@media (prefers-color-scheme: dark) {
  .notif-dropdown { background: #1e293b; border-color: #334155; }
  .notif-item.unread { background: #1e3a5f; }
  .notif-item:hover { background: #273549; }
}
