  @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease; }

  :root {
    --bg: #f8fafc; --bg2: #eff6ff; --surface: #ffffff; --surface2: rgba(255,255,255,0.95);
    --border: #e2e8f0; --text: #0f172a; --text2: #1e293b; --text3: #334155;
    --text4: #475569; --text5: #64748b; --blue: #2563eb; --blue2: #1d4ed8;
    --orange: #f97316; --orange2: #ea6e0d; --amber: #f59e0b; --green: #10b981;
    --red: #ef4444; --header-bg: rgba(255,255,255,0.85); --card-bg: #ffffff;
    --card-hover: #ffffff; --input-bg: rgba(255,255,255,0.8);
  }
  .dark {
    --bg: #1e293b; --bg2: #1e293b; --surface: #334155; --surface2: rgba(51,65,85,0.95);
    --border: #475569; --text: #f8fafc; --text2: #f1f5f9; --text3: #e2e8f0;
    --text4: #cbd5e1; --text5: #94a3b8; --header-bg: rgba(30,41,59,0.9);
    --card-bg: #334155; --card-hover: #3f4f67; --input-bg: rgba(51,65,85,0.8);
  }

  body { font-family: 'Inter', sans-serif; background: linear-gradient(135deg, var(--bg) 0%, var(--bg2) 100%); color: var(--text); min-height: 100vh; }

  /* ─── AUTH ─── */
  #login-screen { display: flex; min-height: 100vh; }
  .login-left { display: none; width: 25%; position: relative; background: linear-gradient(135deg, #1e3a5f 0%, #1e40af 50%, #1d4ed8 100%); padding: 24px; overflow: hidden; }
  .login-center { display: none; width: 50%; position: relative; overflow: hidden; }
  .login-right { width: 100%; position: relative; display: flex; align-items: center; justify-content: center; padding: 48px 16px; background: linear-gradient(135deg, #f8fafc 0%, #ffffff 50%, #eff6ff 100%); }
  @media(min-width: 1024px) { .login-left { display: flex; flex-direction: column; } .login-center { display: flex; } .login-right { width: 25%; } }

  .login-bg-overlay { position: absolute; inset: 0; background-image: url('https://i.ibb.co/QjFbzKwg/Gemini-Generated-Image-j63mf9j63mf9j63m.png'); background-size: cover; background-position: center; opacity: 0.3; }
  .login-center-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(30,58,95,0.8) 0%, rgba(37,99,235,0.65) 50%, rgba(249,115,22,0.7) 100%); display: flex; flex-direction: column; justify-content: center; align-items: center; color: white; padding: 48px; text-align: center; }
  .login-center-bg { position: absolute; inset: 0; background-image: url('https://mocha-cdn.com/0199ca76-4fb6-7fac-8471-da1cc8ad7756/tech-trade-split.jpg'); background-size: cover; background-position: center; }

  .login-icon-row { display: flex; gap: 24px; justify-content: center; margin-bottom: 32px; }
  .login-icon-btn { padding: 16px; background: rgba(255,255,255,0.2); backdrop-filter: blur(4px); border-radius: 50%; }
  .login-title-main { font-size: 2.5rem; font-weight: 800; line-height: 1.1; margin-bottom: 16px; }
  .login-title-accent { background: linear-gradient(to right, #fcd34d, #fbbf24); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
  .login-subtitle { font-size: 1.25rem; color: #bfdbfe; max-width: 400px; line-height: 1.6; margin-bottom: 32px; }
  .login-stats { display: flex; gap: 32px; justify-content: center; font-size: 0.875rem; color: #bfdbfe; }
  .login-stat-num { font-size: 1.5rem; font-weight: 700; color: white; }

  .login-form-wrapper { width: 100%; max-width: 360px; position: relative; z-index: 10; }
  .login-logo { display: flex; justify-content: center; margin-bottom: 16px; }
  .login-logo img { height: 80px; width: auto; }
  .login-tagline { text-align: center; font-size: 0.875rem; font-weight: 500; color: var(--text2); margin-bottom: 24px; }
  .login-card { background: rgba(255,255,255,0.92); backdrop-filter: blur(12px); border-radius: 16px; border: 1px solid rgba(226,232,240,0.5); box-shadow: 0 20px 60px rgba(0,0,0,0.12); padding: 24px; }
  .dark .login-card { background: rgba(51,65,85,0.95); border-color: rgba(71,85,105,0.5); }
  .login-card-title { text-align: center; font-size: 1.25rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
  .login-card-sub { text-align: center; font-size: 0.8rem; color: var(--text2); font-weight: 500; margin-bottom: 24px; }
  .form-group { margin-bottom: 16px; }
  .form-label { display: block; font-size: 0.75rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
  .form-input { width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 0.875rem; background: var(--input-bg); color: var(--text); outline: none; font-family: 'Inter', sans-serif; }
  .form-input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,0.15); }
  .form-input::placeholder { color: var(--text5); }
  .btn-login { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 16px; background: linear-gradient(to right, #2563eb, #f97316); color: white; border: none; border-radius: 8px; font-size: 0.875rem; font-weight: 600; cursor: pointer; box-shadow: 0 4px 15px rgba(37,99,235,0.3); transition: all 0.2s; font-family: 'Inter', sans-serif; }
  .btn-login:hover { background: linear-gradient(to right, #1d4ed8, #ea6e0d); box-shadow: 0 6px 20px rgba(37,99,235,0.4); transform: translateY(-1px); }
  .btn-login:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
  .error-box { padding: 12px; background: #fef2f2; border: 1px solid #fecaca; border-radius: 8px; color: #b91c1c; font-size: 0.75rem; font-weight: 500; margin-bottom: 16px; }
  .login-footer { text-align: center; font-size: 0.75rem; color: var(--text5); margin-top: 24px; }

  /* News left panel */
  .news-carousel { background: rgba(255,255,255,0.1); backdrop-filter: blur(8px); border-radius: 16px; padding: 16px; margin-bottom: 24px; color: white; }
  .news-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
  .news-title { font-size: 1.125rem; font-weight: 700; }
  .news-nav { display: flex; gap: 4px; }
  .news-nav-btn { padding: 4px; border-radius: 50%; border: none; background: transparent; cursor: pointer; color: white; transition: background 0.2s; }
  .news-nav-btn:hover { background: rgba(255,255,255,0.2); }
  .news-item-title { font-size: 0.875rem; font-weight: 600; line-height: 1.4; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .news-item-desc { font-size: 0.75rem; color: rgba(255,255,255,0.8); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 8px; }
  .news-dots { display: flex; justify-content: center; gap: 4px; margin-top: 12px; }
  .news-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.4); border: none; cursor: pointer; transition: background 0.2s; }
  .news-dot.active { background: white; }

  /* Weather */
  .weather-widget { background: linear-gradient(135deg, rgba(30,58,95,0.9) 0%, rgba(29,78,216,0.9) 100%); backdrop-filter: blur(8px); border-radius: 12px; border: 1px solid rgba(59,130,246,0.3); padding: 16px; color: white; }
  .weather-main { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
  .weather-temp { font-size: 2rem; font-weight: 700; text-align: right; }
  .weather-minmax { font-size: 0.75rem; color: #bfdbfe; }
  .weather-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
  .weather-item { display: flex; align-items: center; gap: 8px; }
  .weather-label { font-size: 0.7rem; color: #bfdbfe; }
  .weather-val { font-size: 0.875rem; font-weight: 500; }
  .weather-footer { display: flex; justify-content: space-between; font-size: 0.75rem; color: #bfdbfe; padding-top: 12px; border-top: 1px solid rgba(59,130,246,0.3); }

  /* ─── APP LAYOUT ─── */
  #app-screen { display: none; }
  .header { position: fixed; top: 0; left: 0; right: 0; background: var(--header-bg); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); z-index: 50; height: 64px; }
  .header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; padding: 0 24px; }
  .header-left { display: flex; align-items: center; gap: 24px; }
  .logo-link { display: flex; align-items: center; gap: 12px; text-decoration: none; cursor: pointer; }
  .logo-link:hover { opacity: 0.8; }
  .logo-img { height: 32px; width: auto; }
  .logo-text { font-size: 1.25rem; font-weight: 700; color: var(--text2); }
  .header-right { display: flex; align-items: center; gap: 16px; }

  /* Dropdown */
  .dropdown { position: relative; }
  .dropdown-trigger { display: flex; align-items: center; gap: 8px; padding: 8px 12px; font-size: 0.875rem; font-weight: 500; color: var(--text3); background: transparent; border: none; border-radius: 8px; cursor: pointer; transition: all 0.2s; font-family: 'Inter', sans-serif; }
  .dropdown-trigger:hover, .dropdown-trigger.open { background: var(--border); color: var(--text); }
  .dropdown-trigger svg { width: 16px; height: 16px; }
  .chevron { transition: transform 0.2s; }
  .chevron.open { transform: rotate(180deg); }
  .dropdown-menu { position: absolute; top: calc(100% + 8px); left: 0; min-width: 200px; background: var(--surface2); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,0.12); padding: 8px 0; z-index: 1000; display: none; backdrop-filter: blur(20px); }
  .dropdown-menu.open { display: block; }
  .dropdown-arrow { position: absolute; top: -5px; left: 16px; width: 10px; height: 10px; background: var(--surface2); border: 1px solid var(--border); border-bottom: none; border-right: none; transform: rotate(45deg); }
  .dropdown-item { display: flex; align-items: center; gap: 12px; padding: 10px 16px; font-size: 0.875rem; color: var(--text3); cursor: pointer; transition: all 0.15s; border: none; background: transparent; width: 100%; text-align: left; font-family: 'Inter', sans-serif; }
  .dropdown-item:hover { background: var(--border); color: var(--text); }
  .dropdown-item.danger { color: #ef4444; }
  .dropdown-item.danger:hover { background: #fef2f2; }
  .dark .dropdown-item.danger:hover { background: rgba(239,68,68,0.1); }
  .dropdown-item svg { width: 16px; height: 16px; }

  /* Search */
  .search-wrapper { position: relative; flex: 1; max-width: 400px; }
  .search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text5); width: 16px; height: 16px; pointer-events: none; }
  .search-input { width: 100%; padding: 8px 12px 8px 36px; border: 1px solid var(--border); border-radius: 8px; font-size: 0.875rem; background: var(--card-bg); color: var(--text); outline: none; font-family: 'Inter', sans-serif; }
  .search-input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,0.15); }
  .search-input::placeholder { color: var(--text5); }
  .search-results { position: absolute; top: calc(100% + 4px); left: 0; right: 0; background: var(--card-bg); border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); max-height: 320px; overflow-y: auto; z-index: 1000; display: none; }
  .search-results.show { display: block; }
  .search-result-item { display: flex; align-items: flex-start; gap: 12px; padding: 12px; cursor: pointer; border-bottom: 1px solid var(--border); }
  .search-result-item:last-child { border-bottom: none; }
  .search-result-item:hover { background: var(--border); }
  .search-result-icon { padding: 6px; background: #dcfce7; border-radius: 6px; flex-shrink: 0; }
  .dark .search-result-icon { background: rgba(16,185,129,0.15); }
  .search-result-title { font-size: 0.875rem; font-weight: 500; color: var(--text2); }
  .search-result-path { font-size: 0.75rem; color: var(--text5); margin-top: 2px; }
  .search-result-count { padding: 8px 12px; font-size: 0.75rem; font-weight: 500; color: var(--text5); border-bottom: 1px solid var(--border); }

  /* Theme toggle */
  .theme-toggle { padding: 8px; border-radius: 8px; background: var(--border); border: none; cursor: pointer; color: var(--text4); transition: all 0.2s; }
  .theme-toggle:hover { background: var(--text4); color: var(--surface); }
  .theme-toggle svg { width: 20px; height: 20px; }

  /* Main */
  main { padding: 80px 24px 24px; }

  /* Cards */
  .card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 1px 4px rgba(0,0,0,0.05); transition: all 0.2s; }
  .card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.1); border-color: #93c5fd; }
  .card.clickable { cursor: pointer; }
  .card.clickable:hover { transform: scale(1.02); }

  /* Trending section */
  .section-glow-amber { position: relative; }
  .section-glow-amber::before { content: ''; position: absolute; inset: -4px; background: linear-gradient(to right, #fbbf24, #f59e0b, #fbbf24); border-radius: 16px; opacity: 0.15; filter: blur(8px); z-index: -1; }
  .section-glow-green { position: relative; }
  .section-glow-green::before { content: ''; position: absolute; inset: -4px; background: linear-gradient(to right, #34d399, #10b981, #34d399); border-radius: 16px; opacity: 0.15; filter: blur(8px); z-index: -1; }
  .section-inner { background: rgba(255,255,255,0.85); border-radius: 12px; padding: 16px; border: 1px solid var(--border); backdrop-filter: blur(8px); }
  .dark .section-inner { background: rgba(51,65,85,0.85); }
  .section-inner.amber { border-color: #fde68a; }
  .dark .section-inner.amber { border-color: #92400e; }
  .section-inner.green { border-color: #a7f3d0; }
  .dark .section-inner.green { border-color: #064e3b; }

  .section-header { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
  .section-icon { padding: 6px; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
  .section-icon svg { width: 16px; height: 16px; color: white; }
  .section-icon.amber { background: linear-gradient(135deg, #f59e0b, #eab308); }
  .section-icon.green { background: linear-gradient(135deg, #10b981, #059669); }
  .section-title { font-size: 1rem; font-weight: 700; color: var(--text2); }
  .section-sub { font-size: 0.75rem; }
  .section-sub.amber { color: #b45309; }
  .dark .section-sub.amber { color: #fcd34d; }
  .section-sub.green { color: #065f46; }
  .dark .section-sub.green { color: #6ee7b7; }

  .reports-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
  .report-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 10px; padding: 12px; cursor: pointer; transition: all 0.2s; }
  .report-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.1); transform: scale(1.01); }
  .report-card.featured { background: linear-gradient(135deg, #fffbeb 0%, #fef9c3 100%); border-color: #fde68a; }
  .dark .report-card.featured { background: linear-gradient(135deg, rgba(120,53,15,0.2) 0%, rgba(113,63,18,0.2) 100%); border-color: #92400e; }
  .report-card-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 4px; gap: 8px; }
  .report-card-title { font-size: 0.75rem; font-weight: 600; color: var(--text2); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }
  .report-card-path { font-size: 0.7rem; color: var(--text5); margin-bottom: 4px; }
  .report-card-desc { font-size: 0.7rem; color: var(--text4); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 6px; }
  .tags-row { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
  .tag { padding: 2px 6px; border-radius: 20px; font-size: 0.65rem; }
  .tag.blue { background: #dbeafe; color: #1d4ed8; }
  .dark .tag.blue { background: rgba(37,99,235,0.2); color: #93c5fd; }
  .tag.amber { background: #fef3c7; color: #b45309; }
  .dark .tag.amber { background: rgba(245,158,11,0.2); color: #fcd34d; }
  .view-count { display: flex; align-items: center; gap: 4px; font-size: 0.75rem; font-weight: 500; color: var(--text4); }
  .view-count svg { width: 14px; height: 14px; }
  .fav-btn { background: transparent; border: none; cursor: pointer; padding: 2px; color: var(--text5); transition: color 0.2s; display: flex; align-items: center; justify-content: center; }
  .fav-btn:hover { color: #ef4444; }
  .fav-btn.active { color: #ef4444; }
  .fav-btn svg { width: 12px; height: 12px; }
  .star-icon { color: #f59e0b; }
  .star-icon svg { width: 12px; height: 12px; fill: #f59e0b; }

  /* Categories */
  .categories-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
  .categories-icon { padding: 8px; background: #dbeafe; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
  .dark .categories-icon { background: rgba(37,99,235,0.2); }
  .categories-icon svg { width: 20px; height: 20px; color: var(--blue); }
  .categories-title { font-size: 1.25rem; font-weight: 700; color: var(--text2); }
  .categories-sub { font-size: 0.875rem; color: var(--text5); }
  .categories-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
  .category-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; padding: 16px; cursor: pointer; transition: all 0.2s; animation: fadeIn 0.3s ease; }
  .category-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.1); border-color: #93c5fd; transform: scale(1.02); }
  .cat-icon-wrapper { padding: 6px; border-radius: 8px; display: inline-flex; margin-right: 8px; flex-shrink: 0; }
  .cat-icon-wrapper svg { width: 16px; height: 16px; }
  .cat-name-row { display: flex; align-items: center; margin-bottom: 8px; }
  .cat-name { font-size: 0.9rem; font-weight: 600; color: var(--text2); line-height: 1.3; }
  .cat-count { color: var(--text5); font-weight: 400; font-size: 0.85rem; }
  .cat-desc { font-size: 0.7rem; color: var(--text4); margin-bottom: 10px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .cat-link { display: flex; align-items: center; gap: 4px; font-size: 0.75rem; font-weight: 500; }
  .cat-link svg { width: 12px; height: 12px; }

  @keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes spin { to { transform: rotate(360deg); } }
  .animate-spin { animation: spin 1s linear infinite; }

  /* Report detail view */
  .report-view { display: none; }
  .report-view.show { display: block; }
  .report-breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.875rem; color: var(--text5); margin-bottom: 16px; flex-wrap: wrap; }
  .breadcrumb-link { color: var(--blue); cursor: pointer; background: none; border: none; font-size: 0.875rem; font-family: 'Inter', sans-serif; }
  .breadcrumb-link:hover { text-decoration: underline; }
  .report-header-card { padding: 20px; border-radius: 12px; background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%); border: 1px solid #bfdbfe; margin-bottom: 20px; }
  .dark .report-header-card { background: linear-gradient(135deg, rgba(37,99,235,0.1) 0%, var(--card-bg) 100%); border-color: rgba(37,99,235,0.3); }
  .report-header-title { font-size: 1.5rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
  .report-meta { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
  .report-meta-item { display: flex; align-items: center; gap: 6px; font-size: 0.875rem; color: var(--text4); }
  .report-meta-item svg { width: 14px; height: 14px; }
  .iframe-container { width: 100%; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); background: var(--card-bg); }
  .iframe-placeholder { height: 600px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--text5); }
  .iframe-placeholder svg { width: 48px; height: 48px; opacity: 0.4; }
  .iframe-placeholder-text { font-size: 0.875rem; }

  /* Admin panel */
  .admin-tabs { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
  .tab-btn { padding: 8px 16px; border-radius: 8px; border: 1px solid var(--border); background: var(--card-bg); color: var(--text4); font-size: 0.875rem; font-weight: 500; cursor: pointer; font-family: 'Inter', sans-serif; transition: all 0.15s; }
  .tab-btn:hover { border-color: var(--blue); color: var(--blue); }
  .tab-btn.active { background: var(--blue); border-color: var(--blue); color: white; }

  /* Loading */
  .loading-screen { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 64px; gap: 8px; }
  .loading-icon { color: var(--blue); }
  .loading-icon svg { width: 32px; height: 32px; animation: spin 1s linear infinite; }
  .loading-text { font-size: 0.875rem; color: var(--text5); }

  /* Page header */
  .page-header { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
  .page-icon { padding: 8px; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
  .page-icon svg { width: 20px; height: 20px; }
  .page-title { font-size: 1.25rem; font-weight: 700; color: var(--text2); }
  .page-sub { font-size: 0.875rem; color: var(--text5); }

  .back-btn { display: flex; align-items: center; gap: 8px; padding: 8px 16px; background: var(--card-bg); border: 1px solid var(--border); border-radius: 8px; cursor: pointer; font-size: 0.875rem; color: var(--text4); font-family: 'Inter', sans-serif; transition: all 0.15s; margin-bottom: 16px; }
  .back-btn:hover { border-color: var(--blue); color: var(--blue); }
  .back-btn svg { width: 16px; height: 16px; }

  /* Favorites page */
  .empty-state { text-align: center; padding: 48px; }
  .empty-icon { margin: 0 auto 16px; opacity: 0.4; }
  .empty-icon svg { width: 64px; height: 64px; color: var(--text5); }
  .empty-title { font-size: 1.25rem; font-weight: 600; color: var(--text3); margin-bottom: 8px; }
  .empty-desc { font-size: 0.875rem; color: var(--text5); }

  /* Active nav state */
  .nav-active-indicator { position: relative; }

  /* User profile chip */
  .user-chip { display: flex; align-items: center; gap: 6px; }
  .user-avatar { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--orange)); display: flex; align-items: center; justify-content: center; color: white; font-size: 0.75rem; font-weight: 700; overflow: hidden; flex-shrink: 0; }
  .user-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
  .profile-badge { font-size: 0.65rem; padding: 1px 6px; border-radius: 10px; background: #dbeafe; color: #1d4ed8; font-weight: 600; }
  .dark .profile-badge { background: rgba(37,99,235,0.2); color: #93c5fd; }
  .profile-badge.adm { background: #fef3c7; color: #b45309; }
  .dark .profile-badge.adm { background: rgba(245,158,11,0.2); color: #fcd34d; }

  /* Fullscreen */
  .fullscreen-mode { position: fixed; inset: 0; z-index: 200; background: var(--card-bg); display: flex; flex-direction: column; }
  .fullscreen-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
  .fullscreen-iframe { flex: 1; width: 100%; border: none; }
  .iframe-real { width: 100%; aspect-ratio: 16/9; border: none; }

  /* Annotation box */
  .annotation-box { position: absolute; background: rgba(255,255,255,0.95); border: 2px solid #3b82f6; border-radius: 8px; box-shadow: 0 4px 20px rgba(0,0,0,0.15); overflow: hidden; z-index: 100; min-width: 180px; min-height: 100px; }
  .dark .annotation-box { background: rgba(30,41,59,0.95); }
  .annotation-header { display: flex; align-items: center; justify-content: space-between; padding: 6px 8px; background: rgba(59,130,246,0.1); border-bottom: 1px solid rgba(59,130,246,0.3); cursor: move; user-select: none; }
  .annotation-actions { display: flex; gap: 2px; }
  .annotation-action-btn { padding: 3px; border: none; background: transparent; cursor: pointer; border-radius: 4px; color: var(--text4); }
  .annotation-action-btn:hover { background: rgba(0,0,0,0.08); }
  .annotation-textarea { width: 100%; height: calc(100% - 38px); resize: none; border: none; outline: none; padding: 8px; font-family: 'Inter', sans-serif; font-size: 13px; background: transparent; color: var(--text); }
  .annotation-textarea::placeholder { color: var(--text5); }
  .resize-handle { position: absolute; width: 10px; height: 10px; background: #3b82f6; border-radius: 50%; }
  .resize-se { bottom: -5px; right: -5px; cursor: se-resize; }
  .annotation-container { position: absolute; inset: 0; pointer-events: none; }
  .annotation-container .annotation-box { pointer-events: all; }
  #annotation-layer { position: relative; }

  /* News panel floating button */
  .news-fab { position: fixed; bottom: 24px; right: 24px; width: 52px; height: 52px; border-radius: 50%; background: var(--blue); color: white; border: none; cursor: pointer; box-shadow: 0 4px 16px rgba(37,99,235,0.4); display: flex; align-items: center; justify-content: center; z-index: 40; transition: all 0.2s; font-size: 1.3rem; }
  .news-fab:hover { transform: scale(1.1); box-shadow: 0 6px 20px rgba(37,99,235,0.5); }
  .news-fab-badge { position: absolute; top: -4px; right: -4px; width: 20px; height: 20px; background: #ef4444; color: white; border-radius: 50%; font-size: 0.65rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }

  /* Modal */
  .modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 9998; display: flex; align-items: center; justify-content: center; padding: 16px; }
  .modal-box { background: var(--card-bg); border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,0.2); width: 100%; max-width: 640px; max-height: 80vh; overflow-y: auto; }
  .modal-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--border); }
  .modal-title { display: flex; align-items: center; gap: 12px; font-size: 1.125rem; font-weight: 600; color: var(--text2); }
  .modal-close { padding: 6px; border: none; background: transparent; cursor: pointer; color: var(--text5); border-radius: 6px; }
  .modal-close:hover { background: var(--border); color: var(--text2); }
  .modal-body { padding: 20px 24px; display: flex; flex-direction: column; gap: 12px; }
  .news-item-card { padding: 16px; border: 1px solid var(--border); border-radius: 10px; display: flex; gap: 12px; }
  .news-type-icon { flex-shrink: 0; font-size: 1.2rem; }
  .news-item-header { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
  .news-item-card-title { font-size: 0.875rem; font-weight: 600; color: var(--text2); }
  .news-badge { font-size: 0.65rem; padding: 2px 6px; border-radius: 20px; font-weight: 600; }
  .badge-feature { background: #fef3c7; color: #b45309; }
  .badge-update { background: #dbeafe; color: #1d4ed8; }
  .badge-news { background: #dcfce7; color: #15803d; }
  .news-item-body { font-size: 0.8rem; color: var(--text4); line-height: 1.5; margin-bottom: 4px; }
  .news-item-date { font-size: 0.7rem; color: var(--text5); }

  /* Quick access favorites bar */
  .quick-fav-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
  .quick-fav-chip { display: flex; align-items: center; gap: 6px; padding: 4px 10px; background: var(--card-bg); border: 1px solid var(--border); border-radius: 20px; font-size: 0.75rem; color: var(--text4); cursor: pointer; transition: all 0.15s; white-space: nowrap; }
  .quick-fav-chip:hover { border-color: var(--blue); color: var(--blue); background: #eff6ff; }
  .dark .quick-fav-chip:hover { background: rgba(37,99,235,0.1); }
  .quick-fav-chip svg { width: 12px; height: 12px; }

  /* Report action buttons */
  .btn-action { display: flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 8px; font-size: 0.875rem; font-weight: 500; cursor: pointer; border: none; transition: all 0.15s; font-family: 'Inter', sans-serif; }
  .btn-action svg { width: 16px; height: 16px; }
  .btn-dark { background: #1e293b; color: white; }
  .dark .btn-dark { background: #475569; }
  .btn-dark:hover { background: #0f172a; }
  .btn-blue { background: var(--blue); color: white; }
  .btn-blue:hover { background: var(--blue2); }
  .btn-outline { background: var(--card-bg); border: 1px solid var(--border); color: var(--text4); }
  .btn-outline:hover { border-color: var(--blue); color: var(--blue); }
  .btn-actions-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

  /* Screenshots page */
  .screenshots-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
  .screenshot-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; cursor: pointer; transition: all 0.2s; }
  .screenshot-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.1); border-color: #93c5fd; }
  .screenshot-thumb { width: 100%; height: 160px; background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%); display: flex; align-items: center; justify-content: center; font-size: 3rem; }
  .screenshot-info { padding: 12px; }
  .screenshot-title { font-size: 0.875rem; font-weight: 600; color: var(--text2); margin-bottom: 4px; }
  .screenshot-meta { font-size: 0.7rem; color: var(--text5); }
  .screenshot-actions { display: flex; gap: 8px; margin-top: 8px; }
  .btn-sm { padding: 4px 10px; font-size: 0.75rem; border-radius: 6px; border: 1px solid var(--border); background: var(--card-bg); color: var(--text4); cursor: pointer; font-family: 'Inter', sans-serif; transition: all 0.15s; }
  .btn-sm:hover { border-color: var(--blue); color: var(--blue); }
  .btn-sm.danger:hover { border-color: #ef4444; color: #ef4444; }

  /* Scrollbar */
  ::-webkit-scrollbar { width: 6px; }
  ::-webkit-scrollbar-track { background: transparent; }
  ::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
  .dark ::-webkit-scrollbar-thumb { background: #475569; }

  /* Mobile */
  @media(max-width: 640px) {
    .header-left { gap: 8px; }
    .search-wrapper { display: none; }
    main { padding: 72px 16px 16px; }
    .reports-grid { grid-template-columns: 1fr 1fr; }
    .categories-grid { grid-template-columns: 1fr 1fr; }
  }

  /* Toast */
  #toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; }
  .toast { padding: 12px 16px; border-radius: 10px; font-size: 0.875rem; font-weight: 500; box-shadow: 0 4px 20px rgba(0,0,0,0.15); animation: toastIn 0.3s ease; max-width: 300px; }
  .toast.success { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
  .toast.error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
  .dark .toast.success { background: rgba(6,95,70,0.9); color: #6ee7b7; }
  .dark .toast.error { background: rgba(153,27,27,0.9); color: #fca5a5; }
  @keyframes toastIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
