/* ============================================================
   IND VIEW — Main Stylesheet
   ============================================================ */

:root {
  --navy: #1a365d;
  --navy-dark: #0f2340;
  --navy-mid: #1e4080;
  --orange: #ff7a00;
  --orange-bright: #ff9533;
  --orange-glow: rgba(255,122,0,0.12);
  --gray-bg: #f7fafc;
  --gray-100: #edf2f7;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e0;
  --gray-400: #a0aec0;
  --gray-500: #718096;
  --gray-600: #4a5568;
  --white: #ffffff;
  --text-primary: #1a202c;
  --text-secondary: #4a5568;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 48px rgba(0,0,0,0.14);
}

[data-theme="dark"] {
  --gray-bg: #0d1117;
  --gray-100: #161b22;
  --gray-200: #21262d;
  --gray-300: #30363d;
  --gray-400: #484f58;
  --gray-500: #8b949e;
  --gray-600: #b1bac4;
  --white: #161b22;
  --text-primary: #e6edf3;
  --text-secondary: #8b949e;
  --shadow: 0 4px 24px rgba(0,0,0,0.35);
  --shadow-lg: 0 8px 48px rgba(0,0,0,0.5);
}

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

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--gray-bg);
  color: var(--text-primary);
  min-height: 100vh;
  transition: background 0.3s, color 0.3s;
  overflow-x: hidden;
}

/* ─── TOPNAV ─── */
.topnav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 60px;
  background: var(--navy);
  display: flex; align-items: center;
  padding: 0 24px; gap: 0;
  box-shadow: 0 1px 0 rgba(255,255,255,0.06), var(--shadow);
}
.nav-logo {
  font-family: 'Syne', sans-serif; font-weight: 800; font-size: 22px;
  color: white; text-decoration: none; letter-spacing: -0.5px;
  flex-shrink: 0; cursor: pointer;
}
.logo-dot { color: var(--orange); }
.nav-search { flex: 1; max-width: 360px; margin: 0 24px; position: relative; }
.nav-search input {
  width: 100%; height: 36px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px; padding: 0 16px 0 40px;
  color: white; font-family: 'DM Sans', sans-serif; font-size: 14px; outline: none;
  transition: all 0.2s;
}
.nav-search input::placeholder { color: rgba(255,255,255,0.4); }
.nav-search input:focus { background: rgba(255,255,255,0.15); border-color: var(--orange); }
.nav-search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: rgba(255,255,255,0.4); font-size: 14px; pointer-events: none; }
.nav-links { display: flex; align-items: center; gap: 4px; flex: 1; justify-content: center; }
.nav-link {
  padding: 6px 16px; border-radius: 20px; color: rgba(255,255,255,0.7);
  font-size: 14px; font-weight: 500; cursor: pointer; transition: all 0.2s;
  background: transparent; border: none; font-family: 'DM Sans', sans-serif; white-space: nowrap;
}
.nav-link:hover { color: white; background: rgba(255,255,255,0.08); }
.nav-link.active { color: white; background: rgba(255,122,0,0.2); }
.nav-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nav-btn-post {
  height: 34px; padding: 0 18px; background: var(--orange); color: white;
  border: none; border-radius: 20px; font-family: 'DM Sans', sans-serif;
  font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.2s; white-space: nowrap;
}
.nav-btn-post:hover { background: var(--orange-bright); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(255,122,0,0.4); }
.notif-btn {
  width: 36px; height: 36px; background: rgba(255,255,255,0.08);
  border: none; border-radius: 50%; color: rgba(255,255,255,0.7);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 16px; transition: all 0.2s; position: relative;
}
.notif-btn:hover { background: rgba(255,255,255,0.15); color: white; }
.notif-badge {
  position: absolute; top: -2px; right: -2px;
  width: 16px; height: 16px; background: var(--orange);
  border-radius: 50%; font-size: 9px; font-weight: 700; color: white;
  display: flex; align-items: center; justify-content: center;
}
.avatar-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), #ff4500);
  border: 2px solid rgba(255,255,255,0.2); cursor: pointer; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: white; font-family: 'Syne', sans-serif;
  transition: border-color 0.2s; background-size: cover; background-position: center;
}
.avatar-btn:hover { border-color: var(--orange); }

/* ─── DROPDOWN ─── */
.dropdown {
  position: absolute; top: 50px; right: 0;
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  min-width: 200px; overflow: hidden; animation: dropIn 0.15s ease; z-index: 200;
}
@keyframes dropIn { from { opacity:0; transform:translateY(-8px); } to { opacity:1; transform:translateY(0); } }
.dropdown-item { padding: 12px 16px; cursor: pointer; font-size: 14px; color: var(--text-primary); display: flex; align-items: center; gap: 10px; transition: background 0.15s; }
.dropdown-item:hover { background: var(--gray-100); }
.dropdown-item.danger { color: #e53e3e; }
.dropdown-divider { height: 1px; background: var(--gray-200); margin: 4px 0; }

/* ─── LAYOUT ─── */
.app-layout {
  display: grid; grid-template-columns: 280px 1fr 320px;
  max-width: 1200px; margin: 0 auto;
  padding-top: 60px; min-height: 100vh;
}
.left-sidebar {
  padding: 24px 16px; position: sticky; top: 60px;
  height: calc(100vh - 60px); overflow-y: auto;
  border-right: 1px solid var(--gray-200);
}
.sidebar-section { margin-bottom: 24px; }
.sidebar-title { font-family: 'Syne', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--gray-400); padding: 0 12px; margin-bottom: 8px; }
.sidebar-link {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  border-radius: var(--radius-sm); color: var(--text-secondary);
  font-size: 14px; font-weight: 500; cursor: pointer; transition: all 0.15s;
  width: 100%; background: none; border: none; font-family: 'DM Sans', sans-serif; text-align: left;
}
.sidebar-link:hover { background: var(--gray-100); color: var(--text-primary); }
.sidebar-link.active { background: var(--orange-glow); color: var(--orange); font-weight: 600; }
.sidebar-link .icon { width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.sidebar-badge { margin-left: auto; background: var(--orange); color: white; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 10px; }
.right-sidebar { padding: 24px 16px; position: sticky; top: 60px; height: calc(100vh - 60px); overflow-y: auto; }

/* ─── MAIN FEED ─── */
.main-feed { border-right: 1px solid var(--gray-200); }
.feed-header {
  position: sticky; top: 60px; z-index: 50;
  background: var(--gray-bg); border-bottom: 1px solid var(--gray-200);
  padding: 16px 24px; display: flex; align-items: center; justify-content: space-between;
}
.feed-header h1 { font-family: 'Syne', sans-serif; font-size: 20px; font-weight: 700; }

/* ─── COMPOSER ─── */
.composer { padding: 20px 24px; border-bottom: 1px solid var(--gray-200); background: var(--white); }
.composer-inner { display: flex; gap: 12px; }
.composer-avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--orange), #ff4500); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; color: white; font-family: 'Syne', sans-serif; overflow: hidden; background-size: cover; background-position: center; }
.composer-body { flex: 1; }
.composer-textarea { width: 100%; border: none; outline: none; resize: none; font-family: 'DM Sans', sans-serif; font-size: 16px; color: var(--text-primary); background: transparent; min-height: 80px; line-height: 1.6; }
.composer-textarea::placeholder { color: var(--gray-400); }
.composer-tools { display: flex; align-items: center; gap: 4px; padding-top: 12px; border-top: 1px solid var(--gray-200); margin-top: 12px; }
.composer-tool-btn { width: 36px; height: 36px; border: none; border-radius: 8px; background: transparent; color: var(--orange); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 16px; transition: background 0.15s; }
.composer-tool-btn:hover { background: var(--orange-glow); }
.composer-submit { margin-left: auto; height: 36px; padding: 0 20px; background: var(--orange); color: white; border: none; border-radius: 20px; font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.composer-submit:hover { background: var(--orange-bright); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(255,122,0,0.4); }
.composer-submit:disabled { opacity: 0.6; transform: none; cursor: not-allowed; }

/* ─── POST CARD ─── */
.post-card { padding: 20px 24px; border-bottom: 1px solid var(--gray-200); background: var(--white); transition: background 0.15s; animation: fadeUp 0.3s ease both; }
@keyframes fadeUp { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:translateY(0); } }
.post-card:hover { background: var(--gray-100); }
.post-header { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.post-avatar { width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; color: white; font-family: 'Syne', sans-serif; overflow: hidden; }
.post-meta { flex: 1; }
.post-author { font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.post-username { color: var(--gray-500); font-size: 13px; margin-top: 1px; }
.post-time { color: var(--gray-400); }
.post-more { width: 32px; height: 32px; border: none; border-radius: 50%; background: transparent; color: var(--gray-400); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 18px; transition: background 0.15s; }
.post-more:hover { background: var(--orange-glow); color: var(--orange); }
.post-body { font-size: 15px; line-height: 1.65; color: var(--text-primary); margin-bottom: 12px; word-break: break-word; }
.post-media { border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 12px; background: var(--gray-200); aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center; color: var(--gray-400); font-size: 32px; }
.post-media img, .post-media video { width: 100%; height: 100%; object-fit: cover; }
.post-actions { display: flex; align-items: center; flex-wrap: wrap; margin-top: 4px; }
.post-action { display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 20px; border: none; background: transparent; color: var(--gray-500); font-size: 13px; cursor: pointer; transition: all 0.15s; font-family: 'DM Sans', sans-serif; margin-right: 4px; }
.post-action:hover { background: var(--orange-glow); color: var(--orange); }
.post-action.liked { color: var(--orange); }
.verified-badge { width: 18px; height: 18px; background: var(--orange); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; color: white; flex-shrink: 0; }
.chip { display: inline-flex; align-items: center; height: 22px; padding: 0 10px; border-radius: 11px; background: var(--orange-glow); color: var(--orange); font-size: 11px; font-weight: 600; }

/* ─── WIDGETS ─── */
.widget { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
.widget-title { font-family: 'Syne', sans-serif; font-size: 16px; font-weight: 700; margin-bottom: 16px; }
.trending-item { padding: 10px 0; border-bottom: 1px solid var(--gray-100); cursor: pointer; transition: all 0.15s; }
.trending-item:last-child { border-bottom: none; }
.trending-item:hover .trending-tag { color: var(--orange); }
.trending-cat { font-size: 11px; color: var(--gray-400); text-transform: uppercase; letter-spacing: 0.5px; }
.trending-tag { font-weight: 600; font-size: 15px; margin: 2px 0; color: var(--text-primary); transition: color 0.15s; }
.trending-count { font-size: 12px; color: var(--gray-500); }
.suggest-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.suggest-avatar { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; color: white; font-family: 'Syne', sans-serif; }
.suggest-info { flex: 1; min-width: 0; }
.suggest-name { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 4px; }
.suggest-handle { font-size: 12px; color: var(--gray-500); }
.follow-btn { height: 30px; padding: 0 14px; border: 1.5px solid var(--orange); border-radius: 15px; background: transparent; color: var(--orange); font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.2s; font-family: 'DM Sans', sans-serif; flex-shrink: 0; }
.follow-btn:hover, .follow-btn.following { background: var(--orange); color: white; }

/* ─── SCREENS ─── */
.screen { display: none; }
.screen.active { display: block; }

/* ─── AUTH ─── */
.auth-overlay { position: fixed; inset: 0; z-index: 300; background: rgba(10,18,38,0.85); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; padding: 20px; animation: fadeIn 0.2s ease; }
@keyframes fadeIn { from{opacity:0} to{opacity:1} }
.auth-card { background: var(--white); border-radius: 20px; padding: 40px; width: 100%; max-width: 460px; box-shadow: var(--shadow-lg); animation: slideUp 0.3s ease; position: relative; max-height: 90vh; overflow-y: auto; }
@keyframes slideUp { from{opacity:0;transform:translateY(24px)} to{opacity:1;transform:translateY(0)} }
.auth-logo { font-family: 'Syne', sans-serif; font-size: 28px; font-weight: 800; color: var(--navy); margin-bottom: 4px; }
.auth-tagline { color: var(--gray-500); font-size: 15px; margin-bottom: 24px; }
.auth-title { font-family: 'Syne', sans-serif; font-size: 22px; font-weight: 700; margin-bottom: 20px; }
.auth-close { position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; border: none; border-radius: 50%; background: var(--gray-100); color: var(--gray-500); cursor: pointer; font-size: 16px; display: flex; align-items: center; justify-content: center; transition: all 0.15s; }
.auth-close:hover { background: var(--gray-200); }
.auth-footer { text-align: center; margin-top: 20px; font-size: 14px; color: var(--gray-500); }
.auth-link { color: var(--orange); font-weight: 600; cursor: pointer; text-decoration: none; }
.form-group { margin-bottom: 14px; }
.form-label { display: block; font-size: 12px; font-weight: 700; color: var(--text-secondary); margin-bottom: 5px; text-transform: uppercase; letter-spacing: 0.5px; }
.form-input { width: 100%; height: 44px; border: 1.5px solid var(--gray-200); border-radius: 10px; padding: 0 14px; font-family: 'DM Sans', sans-serif; font-size: 15px; color: var(--text-primary); background: var(--gray-bg); outline: none; transition: all 0.2s; }
.form-input:focus { border-color: var(--orange); background: var(--white); box-shadow: 0 0 0 3px rgba(255,122,0,0.1); }
.form-check { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-secondary); cursor: pointer; padding: 4px 0; }
.form-check input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--orange); cursor: pointer; }
.btn-primary { width: 100%; height: 48px; background: var(--orange); color: white; border: none; border-radius: 12px; font-family: 'DM Sans', sans-serif; font-size: 16px; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.btn-primary:hover { background: var(--orange-bright); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(255,122,0,0.4); }
.btn-primary:disabled { opacity: 0.6; transform: none; cursor: not-allowed; }

/* ─── PROFILE ─── */
.profile-cover { height: 180px; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 50%, #1a4a8a 100%); position: relative; }
.profile-cover-pattern { position: absolute; inset: 0; background-image: radial-gradient(circle at 20% 50%, rgba(255,122,0,0.15) 0%, transparent 50%), radial-gradient(circle at 80% 50%, rgba(255,122,0,0.08) 0%, transparent 50%); }
.profile-header { padding: 0 24px; background: var(--white); border-bottom: 1px solid var(--gray-200); position: relative; }
.profile-avatar-wrap { position: absolute; top: -50px; left: 24px; width: 96px; height: 96px; border-radius: 50%; border: 4px solid var(--white); background: linear-gradient(135deg, var(--orange), #ff4500); display: flex; align-items: center; justify-content: center; font-size: 32px; font-weight: 800; color: white; font-family: 'Syne', sans-serif; box-shadow: var(--shadow); overflow: hidden; }
.profile-actions { display: flex; justify-content: flex-end; padding: 12px 0; gap: 10px; }
.btn-outline { height: 36px; padding: 0 18px; border: 1.5px solid var(--gray-300); border-radius: 20px; background: transparent; color: var(--text-primary); font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.btn-outline:hover { border-color: var(--gray-400); background: var(--gray-100); }
.btn-follow { height: 36px; padding: 0 22px; border: none; border-radius: 20px; background: var(--navy); color: white; font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.btn-follow:hover { background: var(--orange); }
.profile-info { padding: 56px 0 16px; }
.profile-name { font-family: 'Syne', sans-serif; font-size: 22px; font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.profile-handle { color: var(--gray-500); font-size: 15px; margin: 4px 0 10px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.profile-bio { font-size: 15px; line-height: 1.6; color: var(--text-secondary); }
.profile-stats { display: flex; gap: 24px; margin-top: 14px; font-size: 14px; color: var(--gray-500); flex-wrap: wrap; }
.profile-stat strong { color: var(--text-primary); font-weight: 700; }
.profile-tabs { display: flex; border-top: 1px solid var(--gray-200); margin-top: 4px; }
.profile-tab { padding: 14px 20px; font-size: 14px; font-weight: 600; color: var(--gray-500); cursor: pointer; border-bottom: 2px solid transparent; transition: all 0.2s; background: none; border-left: none; border-right: none; border-top: none; font-family: 'DM Sans', sans-serif; }
.profile-tab:hover { color: var(--text-primary); }
.profile-tab.active { color: var(--orange); border-bottom-color: var(--orange); }

/* ─── COMMUNITIES ─── */
.page-content { padding: 24px; }
.comm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-top: 16px; }
.comm-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); overflow: hidden; transition: all 0.2s; cursor: pointer; }
.comm-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--orange); }
.comm-banner { height: 80px; display: flex; align-items: center; justify-content: center; font-size: 28px; }
.comm-body { padding: 16px; }
.comm-name { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 16px; display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.comm-desc { font-size: 13px; color: var(--text-secondary); margin-bottom: 12px; line-height: 1.5; }
.comm-footer { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--gray-400); }

/* ─── GROUPS ─── */
.group-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 20px; transition: all 0.2s; cursor: pointer; display: flex; gap: 16px; align-items: flex-start; }
.group-card:hover { box-shadow: var(--shadow); border-color: var(--navy); }
.group-icon { width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0; }
.group-info { flex: 1; }
.group-name { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 16px; margin-bottom: 4px; }
.group-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }
.group-meta { font-size: 12px; color: var(--gray-400); margin-top: 8px; }
.join-btn { height: 34px; padding: 0 18px; border: 1.5px solid var(--navy); border-radius: 20px; background: transparent; color: var(--navy); font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.2s; flex-shrink: 0; align-self: center; font-family: 'DM Sans', sans-serif; }
.join-btn:hover, .join-btn.joined { background: var(--navy); color: white; }

/* ─── NOTIFICATIONS ─── */
.notif-panel { background: var(--white); border-left: 4px solid transparent; padding: 16px 24px; border-bottom: 1px solid var(--gray-100); display: flex; align-items: flex-start; gap: 12px; cursor: pointer; transition: all 0.15s; }
.notif-panel:hover { background: var(--gray-100); }
.notif-panel.unread { border-left-color: var(--orange); background: rgba(255,122,0,0.02); }
.notif-icon-wrap { width: 40px; height: 40px; border-radius: 50%; background: var(--orange-glow); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.notif-text { font-size: 14px; line-height: 1.5; color: var(--text-secondary); }
.notif-text strong { color: var(--text-primary); }
.notif-time { font-size: 12px; color: var(--gray-400); margin-top: 3px; }

/* ─── SETTINGS ─── */
.settings-layout { display: grid; grid-template-columns: 220px 1fr; }
.settings-nav { border-right: 1px solid var(--gray-200); padding: 24px 16px; }
.settings-nav-item { padding: 10px 12px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 500; cursor: pointer; color: var(--text-secondary); transition: all 0.15s; margin-bottom: 2px; }
.settings-nav-item:hover { background: var(--gray-100); color: var(--text-primary); }
.settings-nav-item.active { background: var(--orange-glow); color: var(--orange); font-weight: 600; }
.settings-content { padding: 24px 32px; }
.settings-section-title { font-family: 'Syne', sans-serif; font-size: 18px; font-weight: 700; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--gray-200); }
.toggle-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--gray-100); }
.toggle-info { flex: 1; }
.toggle-label { font-size: 15px; font-weight: 500; }
.toggle-desc { font-size: 13px; color: var(--gray-500); margin-top: 2px; }
.toggle { width: 44px; height: 24px; background: var(--gray-300); border-radius: 12px; cursor: pointer; position: relative; transition: background 0.2s; flex-shrink: 0; border: none; }
.toggle::after { content: ''; position: absolute; width: 18px; height: 18px; border-radius: 50%; background: white; top: 3px; left: 3px; transition: transform 0.2s; box-shadow: 0 1px 4px rgba(0,0,0,0.2); }
.toggle.on { background: var(--orange); }
.toggle.on::after { transform: translateX(20px); }

/* ─── VERIFICATION ─── */
.verify-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 32px; max-width: 600px; margin: 0 auto; }
.verify-step { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--gray-100); }
.verify-step:last-child { border-bottom: none; }
.step-num { width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: white; font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-family: 'Syne', sans-serif; }
.step-num.done { background: #38a169; }

/* ─── MODALS ─── */
.modal-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,0.5); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 20px; animation: fadeIn 0.2s; }
.modal-card { background: var(--white); border-radius: 20px; width: 100%; max-width: 600px; max-height: 85vh; overflow-y: auto; box-shadow: var(--shadow-lg); animation: slideUp 0.3s ease; }
.modal-header { padding: 16px 20px; border-bottom: 1px solid var(--gray-200); display: flex; align-items: center; gap: 12px; position: sticky; top: 0; background: var(--white); z-index: 5; }
.modal-back { width: 36px; height: 36px; border: none; border-radius: 50%; background: var(--gray-100); color: var(--text-primary); font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.15s; }
.modal-back:hover { background: var(--gray-200); }

/* ─── SEARCH ─── */
.search-filters { display: flex; gap: 8px; padding: 16px 24px; border-bottom: 1px solid var(--gray-200); background: var(--white); flex-wrap: wrap; }
.filter-pill { height: 32px; padding: 0 16px; border-radius: 16px; border: 1.5px solid var(--gray-200); background: transparent; font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 500; cursor: pointer; color: var(--text-secondary); transition: all 0.15s; }
.filter-pill:hover { border-color: var(--orange); color: var(--orange); }
.filter-pill.active { background: var(--orange); border-color: var(--orange); color: white; }

/* ─── LANDING ─── */
.landing-hero { min-height: 100vh; display: flex; align-items: center; justify-content: center; flex-direction: column; text-align: center; padding: 40px 24px; background: linear-gradient(160deg, #0f1e3d 0%, #1a365d 40%, #1a2740 100%); }
.hero-title { font-family: 'Syne', sans-serif; font-size: clamp(42px, 8vw, 80px); font-weight: 800; color: white; line-height: 1.1; margin-bottom: 20px; letter-spacing: -2px; }
.hero-title span { color: var(--orange); }
.hero-sub { font-size: 18px; color: rgba(255,255,255,0.6); max-width: 500px; line-height: 1.6; margin-bottom: 36px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.btn-hero-primary { height: 52px; padding: 0 32px; background: var(--orange); color: white; border: none; border-radius: 26px; font-family: 'DM Sans', sans-serif; font-size: 16px; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.btn-hero-primary:hover { background: var(--orange-bright); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,122,0,0.5); }
.btn-hero-secondary { height: 52px; padding: 0 32px; background: transparent; color: white; border: 2px solid rgba(255,255,255,0.3); border-radius: 26px; font-family: 'DM Sans', sans-serif; font-size: 16px; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.btn-hero-secondary:hover { border-color: white; background: rgba(255,255,255,0.08); }
.hero-features { display: flex; gap: 40px; margin-top: 56px; flex-wrap: wrap; justify-content: center; }
.hero-feature { color: rgba(255,255,255,0.6); font-size: 14px; text-align: center; }
.hero-feature-icon { font-size: 28px; margin-bottom: 8px; }
.hero-feature strong { display: block; color: white; font-size: 16px; margin-bottom: 4px; }

/* ─── TOAST ─── */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--navy); color: white; padding: 12px 24px; border-radius: 40px; font-size: 14px; font-weight: 500; box-shadow: var(--shadow-lg); z-index: 500; animation: toastIn 0.3s ease, toastOut 0.3s ease 2.5s forwards; white-space: nowrap; }
@keyframes toastIn { from{opacity:0;transform:translateX(-50%) translateY(20px)} to{opacity:1;transform:translateX(-50%) translateY(0)} }
@keyframes toastOut { from{opacity:1;transform:translateX(-50%) translateY(0)} to{opacity:0;transform:translateX(-50%) translateY(20px)} }

/* ─── UTILITIES ─── */
.hidden { display: none !important; }

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 3px; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .app-layout { grid-template-columns: 60px 1fr 0; }
  .left-sidebar { padding: 16px 8px; }
  .sidebar-link span:not(.icon) { display: none; }
  .sidebar-badge { display: none; }
  .sidebar-title { display: none; }
  .right-sidebar { display: none; }
}
@media (max-width: 768px) {
  .app-layout { grid-template-columns: 0 1fr 0; }
  .left-sidebar { display: none; }
  .nav-links { display: none; }
  .nav-search { display: none; }
  .post-card { padding: 16px; }
  .settings-layout { grid-template-columns: 1fr; }
  .settings-nav { border-right: none; border-bottom: 1px solid var(--gray-200); display: flex; overflow-x: auto; gap: 4px; padding: 8px; }
  .settings-content { padding: 20px 16px; }
}
