/* ===========================================================
   Indigo+ — Modern Professional Network
   Palette: Deep indigo, violet accents, crisp white surfaces
   Type: Inter (Google Fonts) — clean, modern, legible
   =========================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  /* Core brand */
  --indigo:        #4F46E5;
  --indigo-dark:   #3730A3;
  --indigo-deep:   #1E1B4B;
  --indigo-light:  #EEF2FF;
  --indigo-mid:    #C7D2FE;
  --violet:        #7C3AED;
  --violet-light:  #F5F3FF;

  /* Surfaces */
  --bg:            #F1F5F9;
  --surface:       #FFFFFF;
  --surface-2:     #F8FAFC;
  --glass:         rgba(255,255,255,0.85);

  /* Borders */
  --border:        #E2E8F0;
  --border-2:      #CBD5E1;

  /* Text */
  --text:          #0F172A;
  --text-2:        #475569;
  --muted:         #94A3B8;

  /* Status */
  --green:         #059669;
  --green-light:   #ECFDF5;
  --red:           #DC2626;
  --red-light:     #FEF2F2;
  --amber:         #D97706;
  --amber-light:   #FFFBEB;

  /* Shadows */
  --shadow-xs:  0 1px 2px rgba(0,0,0,0.05);
  --shadow:     0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:  0 4px 6px rgba(0,0,0,0.05), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg:  0 10px 15px rgba(0,0,0,0.07), 0 4px 6px rgba(0,0,0,0.04);
  --shadow-xl:  0 20px 25px rgba(0,0,0,0.08), 0 8px 10px rgba(0,0,0,0.04);
  --glow:       0 0 0 3px rgba(79,70,229,0.15);

  /* Shape */
  --radius:     12px;
  --radius-sm:  8px;
  --radius-xs:  6px;
  --radius-lg:  16px;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--indigo); text-decoration: none; }
a:hover { color: var(--indigo-dark); }
button { font-family: var(--font); cursor: pointer; }
.muted { color: var(--muted); }
.small { font-size: 0.8rem; }

::selection { background: var(--indigo-mid); color: var(--indigo-deep); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 18px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: 0.875rem; font-family: var(--font);
  background: transparent; color: var(--text);
  transition: all 0.15s ease;
  cursor: pointer; white-space: nowrap; letter-spacing: -0.01em;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--indigo), var(--violet));
  color: #fff; border-color: transparent;
  box-shadow: 0 2px 8px rgba(79,70,229,0.35);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--indigo-dark), #6D28D9);
  box-shadow: 0 4px 14px rgba(79,70,229,0.45);
  color: #fff;
}
.btn-outline { border-color: var(--indigo); color: var(--indigo); }
.btn-outline:hover { background: var(--indigo-light); border-color: var(--indigo-dark); color: var(--indigo-dark); }
.btn-ghost { border-color: var(--border); color: var(--text-2); background: var(--surface); box-shadow: var(--shadow-xs); }
.btn-ghost:hover { background: var(--bg); border-color: var(--border-2); color: var(--text); }
.btn-danger { border-color: var(--red); color: var(--red); }
.btn-danger:hover { background: var(--red-light); }
.btn-sm { padding: 5px 14px; font-size: 0.8rem; }
.btn-block { width: 100%; }

/* ============================================================
   FORM ELEMENTS
   ============================================================ */
label {
  display: block; font-size: 0.8rem; color: var(--text-2);
  margin-bottom: 14px; font-weight: 600; letter-spacing: 0.01em;
}
input[type=text], input[type=email], input[type=password], input[type=number],
textarea, select {
  display: block; width: 100%; margin-top: 5px;
  padding: 10px 14px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border); background: var(--surface);
  color: var(--text); font-family: var(--font); font-size: 0.9rem;
  resize: vertical; transition: all 0.15s;
  box-shadow: var(--shadow-xs);
}
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--indigo);
  box-shadow: var(--glow);
}
.form-row { display: flex; gap: 12px; }
.form-row label { flex: 1; }
.checkbox-label { display: flex; align-items: center; gap: 8px; font-weight: 500; color: var(--text); cursor: pointer; }
.checkbox-label input { width: auto; margin: 0; cursor: pointer; accent-color: var(--indigo); }

.alert {
  background: var(--amber-light); border: 1px solid #FDE68A;
  color: var(--amber); padding: 11px 16px; border-radius: var(--radius-sm);
  font-size: 0.875rem; margin-bottom: 14px; font-weight: 500;
}
.alert-error { background: var(--red-light); border-color: #FECACA; color: var(--red); }
.alert-success { background: var(--green-light); border-color: #A7F3D0; color: var(--green); }

/* ============================================================
   AUTH PAGES
   ============================================================ */
.auth-body {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--indigo-deep) 0%, #312E81 50%, #1E1B4B 100%);
  padding: 24px; position: relative; overflow: hidden;
}
.auth-body::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(124,58,237,0.3) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 80%, rgba(79,70,229,0.2) 0%, transparent 60%);
}
.auth-card {
  width: 100%; max-width: 420px; position: relative; z-index: 1;
  background: rgba(255,255,255,0.97); backdrop-filter: blur(20px);
  border-radius: var(--radius-lg); padding: 36px 32px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.25), 0 0 0 1px rgba(255,255,255,0.1);
}
.auth-logo { text-align: center; margin-bottom: 8px; }
.auth-tagline { text-align: center; font-size: 1rem; font-weight: 400; color: var(--text-2); margin: 0 0 26px; }
.auth-divider { text-align: center; color: var(--muted); font-size: 0.8rem; margin: 18px 0; position: relative; }
.auth-divider::before, .auth-divider::after { content: ''; position: absolute; top: 50%; width: 42%; height: 1px; background: var(--border); }
.auth-divider::before { left: 0; } .auth-divider::after { right: 0; }
.auth-switch { text-align: center; font-size: 0.875rem; color: var(--text-2); margin-top: 20px; border-top: 1px solid var(--border); padding-top: 16px; }
.auth-switch a { font-weight: 700; color: var(--indigo); }
.auth-reset-icon { font-size: 2.2rem; text-align: center; margin-bottom: 12px; }
.brand-text { font-size: 1.5rem; font-weight: 800; color: var(--indigo); letter-spacing: -0.5px; }

/* ============================================================
   TOPBAR — Signature element: dark indigo with glow
   ============================================================ */
.app-shell { min-height: 100vh; }
.topbar {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center;
  padding: 0 20px; height: 56px;
  background: var(--indigo-deep);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 1px 0 rgba(255,255,255,0.04), 0 4px 20px rgba(0,0,0,0.2);
}
.topbar-brand { display: flex; align-items: center; margin-right: 10px; text-decoration: none !important; }
.topbar-brand svg { width: 36px; height: 36px; filter: drop-shadow(0 0 8px rgba(167,139,250,0.5)); }
.topbar-search { position: relative; margin-right: 10px; }
.topbar-search input {
  width: 230px; padding: 8px 14px 8px 38px; border-radius: var(--radius-sm);
  border: 1.5px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.07);
  margin: 0; font-size: 0.85rem; color: #fff;
  transition: all 0.2s;
}
.topbar-search input::placeholder { color: rgba(255,255,255,0.4); }
.topbar-search input:focus { border-color: rgba(167,139,250,0.6); background: rgba(255,255,255,0.1); box-shadow: 0 0 0 3px rgba(167,139,250,0.15); }
.topbar-search-icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: rgba(255,255,255,0.4); font-size: 0.85rem; pointer-events: none; }
.topbar-search-mobile {
  display: none; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  color: rgba(255,255,255,0.7); text-decoration: none !important;
  transition: background 0.15s;
}
.topbar-search-mobile:hover { background: rgba(255,255,255,0.1); color: #fff; }

.topnav { display: flex; align-items: stretch; flex: 1; margin: 0 6px; }
.topnav a {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 0 14px; color: rgba(255,255,255,0.55); font-size: 0.68rem; font-weight: 600;
  border-bottom: 2px solid transparent; gap: 3px; min-width: 60px;
  text-decoration: none !important; transition: all 0.15s; letter-spacing: 0.02em;
}
.topnav a:hover { color: rgba(255,255,255,0.9); }
.topnav a.active { color: #fff; border-bottom-color: #A78BFA; }
.topnav-icon { font-size: 1.15rem; line-height: 1; }

.topbar-right { display: flex; align-items: center; gap: 0; margin-left: auto; }
.topbar-me {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 0 10px; color: rgba(255,255,255,0.55); font-size: 0.68rem; font-weight: 600; gap: 3px;
  border-bottom: 2px solid transparent; height: 100%; text-decoration: none !important;
  min-width: 52px; transition: all 0.15s; letter-spacing: 0.02em;
}
.topbar-me:hover { color: rgba(255,255,255,0.9); }
.topbar-me .avatar { width: 24px; height: 24px; font-size: 0.6rem; }
.topbar-logout {
  padding: 0 10px; color: rgba(255,255,255,0.55); font-size: 0.68rem; font-weight: 600;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; cursor: pointer; height: 100%; border-bottom: 2px solid transparent;
  text-decoration: none !important; min-width: 52px; transition: all 0.15s; letter-spacing: 0.02em;
}
.topbar-logout:hover { color: rgba(255,255,255,0.9); }
.bell-wrap {
  position: relative; display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 0 10px; color: rgba(255,255,255,0.55); font-size: 0.68rem;
  font-weight: 600; gap: 3px; min-width: 52px; height: 100%;
  border-bottom: 2px solid transparent; text-decoration: none !important; transition: all 0.15s;
}
.bell-wrap:hover { color: rgba(255,255,255,0.9); }
.bell-wrap.active { color: #fff; border-bottom-color: #A78BFA; }
.bell-icon { font-size: 1.15rem; line-height: 1; }
.badge {
  position: absolute; top: 7px; right: 6px;
  background: linear-gradient(135deg, #EF4444, #DC2626); color: #fff;
  font-size: 0.6rem; font-weight: 700; border-radius: 999px;
  padding: 0 4px; line-height: 1.6; min-width: 14px; text-align: center;
  border: 1.5px solid var(--indigo-deep);
  pointer-events: none;
}
/* Badge on topnav links: sit on top-right of the icon, not the whole link */
.topnav a .badge {
  top: 8px; right: 8px;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.content { max-width: 1120px; margin: 0 auto; padding: 24px 16px; }
.layout {
  display: grid; grid-template-columns: minmax(0,1fr) 310px;
  gap: 20px; align-items: start;
}
.layout-single { grid-template-columns: minmax(0,1fr); max-width: 740px; margin: 0 auto; }
.layout-wide { grid-template-columns: 300px minmax(0,1fr); max-width: 980px; margin: 0 auto; }
.feed-col { min-width: 0; }

/* ============================================================
   AVATARS
   ============================================================ */
.avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, var(--indigo), var(--violet));
  background-size: cover; background-position: center;
  color: #fff; font-weight: 700; font-size: 1rem; user-select: none;
  box-shadow: 0 2px 6px rgba(79,70,229,0.25);
}
.avatar-sm  { width: 32px; height: 32px; font-size: 0.75rem; }
.avatar-md  { width: 44px; height: 44px; font-size: 1rem; }
.avatar-lg  { width: 72px; height: 72px; font-size: 1.6rem; }
.avatar-xl  { width: 112px; height: 112px; font-size: 2.2rem; border: 3px solid var(--surface); }

/* ============================================================
   PANELS / CARDS
   ============================================================ */
.panel, .card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.panel { padding: 18px; }
.card { padding: 0; overflow: hidden; }
.section-block { margin-bottom: 10px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.section-head h3 { margin: 0; font-size: 0.9rem; font-weight: 700; color: var(--text); letter-spacing: -0.01em; }
.section-divider { height: 1px; background: var(--border); margin: 14px -18px; }

.page-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.page-head h2 { margin: 0; font-size: 1.15rem; font-weight: 700; letter-spacing: -0.02em; }

/* ============================================================
   COMPOSER
   ============================================================ */
.panel.composer-panel { padding: 16px 18px; }
.composer-trigger {
  flex: 1; padding: 10px 16px; border: 1.5px solid var(--border);
  border-radius: 999px; font-size: 0.9rem; font-family: var(--font);
  color: var(--muted); background: var(--bg); cursor: pointer; text-align: left;
  transition: all 0.15s; font-weight: 500;
}
.composer-trigger:hover { background: var(--surface); border-color: var(--indigo); color: var(--text-2); box-shadow: var(--glow); }
.composer-actions {
  display: flex; align-items: center; padding-top: 6px; margin-top: 6px;
  border-top: 1px solid var(--border);
}
.composer-action {
  display: flex; align-items: center; gap: 6px; padding: 7px 12px;
  border-radius: 999px; border: none; background: none;
  font-weight: 600; font-size: 0.8rem; font-family: var(--font); color: var(--text-2);
  transition: all 0.15s;
}
.composer-action:hover { background: var(--indigo-light); color: var(--indigo); }
.composer-expand { display: none; margin-top: 12px; }
.composer-expand.open { display: block; }
.composer-expand textarea {
  border-radius: var(--radius-sm); min-height: 90px;
  border: 1.5px solid var(--border); font-size: 0.93rem;
}
.composer-expand-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.file-pick { font-size: 0.82rem; color: var(--text-2); cursor: pointer; font-weight: 600; padding: 6px 12px; border-radius: 999px; transition: all 0.15s; }
.file-pick:hover { color: var(--indigo); background: var(--indigo-light); }
.file-pick input { display: none; }

/* ============================================================
   POSTS / FEED
   ============================================================ */
.post {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 18px;
  margin-bottom: 10px; box-shadow: var(--shadow);
  transition: box-shadow 0.15s;
}
.post:hover { box-shadow: var(--shadow-md); }
.post-header { display: flex; gap: 12px; margin-bottom: 10px; align-items: flex-start; }
.post-header-info { flex: 1; min-width: 0; }
.post-author { font-weight: 700; font-size: 0.9rem; color: var(--text); letter-spacing: -0.01em; }
.post-author:hover { color: var(--indigo); }
.post-headline-text { font-size: 0.78rem; color: var(--text-2); margin-top: 1px; }
.post-time { font-size: 0.74rem; color: var(--muted); margin-top: 2px; }
.post-content { font-size: 0.9rem; line-height: 1.65; white-space: pre-wrap; word-wrap: break-word; margin: 0 0 12px; color: var(--text); }
.post-media { border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border); margin-bottom: 12px; }
.post-media img, .post-media video { display: block; width: 100%; max-height: 500px; object-fit: cover; }

.reaction-summary {
  display: flex; align-items: center; gap: 5px; margin-bottom: 8px;
  padding-bottom: 8px; border-bottom: 1px solid var(--border);
  font-size: 0.8rem; color: var(--muted); cursor: pointer;
}
.reaction-summary:hover { color: var(--indigo); }
.reaction-emojis { font-size: 0.85rem; letter-spacing: -1px; }

.post-actions { display: flex; align-items: center; border-top: 1px solid var(--border); padding-top: 4px; gap: 2px; }
.post-action-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 5px;
  padding: 8px 4px; border-radius: var(--radius-xs); border: none; background: none;
  font-weight: 600; font-size: 0.8rem; font-family: var(--font); color: var(--muted);
  cursor: pointer; transition: all 0.15s;
}
.post-action-btn:hover { background: var(--indigo-light); color: var(--indigo); }
.action-react { position: relative; }
.action-react.reacted { color: var(--indigo); }
.action-react .react-emoji { font-size: 1rem; }
.action-delete { flex: none; padding: 6px 10px; border-radius: var(--radius-xs); border: none; background: none; font-size: 0.78rem; color: var(--muted); cursor: pointer; transition: all 0.15s; }
.action-delete:hover { color: var(--red); background: var(--red-light); }

.reaction-control { position: relative; flex: 1; display: flex; }
.reaction-control .post-action-btn { width: 100%; }
.reaction-picker {
  position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%);
  display: flex; gap: 2px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; padding: 6px 10px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transition: opacity 0.15s, visibility 0.15s;
  z-index: 20; white-space: nowrap;
}
/* Click-triggered — no hover float */
.reaction-picker.picker-open { opacity: 1; visibility: visible; }
.reaction-option { background: none; border: none; font-size: 1.3rem; padding: 3px 5px; border-radius: 50%; transition: transform 0.12s; cursor: pointer; }
.reaction-option:hover { transform: scale(1.35); background: var(--indigo-light); }

/* ============================================================
   COMMENTS
   ============================================================ */
.comments { margin-top: 12px; border-top: 1px solid var(--border); padding-top: 12px; }
.comment { display: flex; gap: 8px; margin-bottom: 8px; }
.comment-bubble { background: var(--bg); border-radius: 0 var(--radius-sm) var(--radius-sm) var(--radius-sm); padding: 8px 12px; flex: 1; }
.comment-author { font-weight: 700; font-size: 0.8rem; color: var(--text); }
.comment-text { font-size: 0.84rem; margin-left: 6px; color: var(--text-2); }
.comment-form { display: flex; gap: 8px; margin-top: 10px; align-items: center; }
.comment-form input { flex: 1; border-radius: 999px; padding: 8px 16px; margin-top: 0; font-size: 0.85rem; }

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
  text-align: center; padding: 56px 20px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--muted); box-shadow: var(--shadow);
}
.empty-state h3 { color: var(--text); margin-bottom: 8px; font-size: 1rem; font-weight: 700; }
.empty-state p { font-size: 0.875rem; }

/* ============================================================
   SIDEBAR — People suggestions
   ============================================================ */
.suggestion { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.suggestion:last-child { margin-bottom: 0; }
.suggestion-info { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 0.82rem; line-height: 1.3; }
.suggestion-info a { font-weight: 700; color: var(--text); font-size: 0.84rem; }
.suggestion-info a:hover { color: var(--indigo); }

/* ============================================================
   PROFILE
   ============================================================ */
.profile-cover {
  height: 200px;
  background: linear-gradient(135deg, var(--indigo-deep) 0%, var(--indigo) 50%, var(--violet) 100%);
  background-size: cover; background-position: center; position: relative;
}
.profile-cover-edit {
  position: absolute; bottom: 12px; right: 12px;
  background: rgba(0,0,0,0.5); backdrop-filter: blur(4px); color: #fff; border: none; border-radius: 50%;
  width: 34px; height: 34px; font-size: 1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: all 0.15s;
}
.profile-cover-edit:hover { background: rgba(0,0,0,0.7); }
.profile-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 10px; position: relative; box-shadow: var(--shadow); }
.profile-avatar-wrap { position: relative; display: inline-block; margin-left: 22px; margin-top: -44px; }
.profile-avatar-edit {
  position: absolute; bottom: 4px; right: 4px;
  background: var(--surface); border: 1.5px solid var(--border); border-radius: 50%;
  width: 28px; height: 28px; font-size: 0.8rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center; color: var(--text-2);
  box-shadow: var(--shadow);
}
.profile-avatar-edit:hover { background: var(--indigo-light); color: var(--indigo); border-color: var(--indigo); }
.profile-card-body { padding: 10px 22px 20px; }
.profile-name { font-size: 1.25rem; font-weight: 800; margin: 4px 0 2px; letter-spacing: -0.03em; color: var(--text); }
.profile-headline-text { font-size: 0.9rem; color: var(--text-2); margin: 0 0 4px; }
.profile-location { font-size: 0.82rem; color: var(--muted); margin-bottom: 6px; }
.profile-stats { display: flex; gap: 20px; margin-top: 12px; flex-wrap: wrap; }
.profile-stats a { font-size: 0.82rem; color: var(--indigo); font-weight: 700; }
.profile-stats a:hover { color: var(--indigo-dark); text-decoration: underline; }
.profile-stats span { font-size: 0.82rem; color: var(--muted); }
.profile-card-actions { position: absolute; top: 16px; right: 16px; display: flex; gap: 8px; }
.profile-about { font-size: 0.9rem; line-height: 1.7; color: var(--text-2); }

/* ============================================================
   TIMELINE (experience / education)
   ============================================================ */
.timeline-item { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--border); }
.timeline-item:first-child { border-top: none; padding-top: 0; }
.timeline-icon { width: 42px; height: 42px; border-radius: var(--radius-sm); background: var(--indigo-light); border: 1px solid var(--indigo-mid); flex: none; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.timeline-main { flex: 1; min-width: 0; }
.timeline-main strong { font-size: 0.9rem; display: block; font-weight: 700; color: var(--text); }
.timeline-sub { font-size: 0.84rem; color: var(--text-2); }
.timeline-dates { font-size: 0.78rem; color: var(--muted); margin-top: 1px; }
.timeline-desc { font-size: 0.85rem; color: var(--text-2); margin: 6px 0 0; line-height: 1.55; }
.timeline-remove { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 0.8rem; padding: 4px; }
.timeline-remove:hover { color: var(--red); }

/* ============================================================
   SKILLS
   ============================================================ */
.skill-list { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.skill-chip {
  display: flex; align-items: center; gap: 6px;
  background: var(--indigo-light); border: 1px solid var(--indigo-mid);
  border-radius: var(--radius-sm); padding: 5px 12px; font-size: 0.82rem; color: var(--text);
}
.skill-count { font-size: 0.72rem; font-weight: 700; color: var(--indigo); background: white; padding: 1px 6px; border-radius: 999px; }
.skill-endorse, .skill-remove { background: none; border: none; font-size: 0.82rem; cursor: pointer; padding: 1px 4px; border-radius: 3px; }
.skill-endorse { color: var(--indigo); }
.skill-endorse:hover { background: white; }
.skill-endorse.endorsed { color: var(--green); font-weight: 700; }
.skill-remove { color: var(--muted); }
.skill-remove:hover { color: var(--red); }
.skill-add-form { display: flex; gap: 8px; }
.skill-add-form input { margin-top: 0; flex: 1; }

/* ============================================================
   RECOMMENDATIONS
   ============================================================ */
.recommendation { display: flex; gap: 12px; padding: 14px 0; border-top: 1px solid var(--border); }
.recommendation:first-child { border-top: none; padding-top: 0; }
.recommendation-body { flex: 1; font-size: 0.88rem; }
.recommendation-body p { margin: 6px 0 0; color: var(--text-2); line-height: 1.6; }
.recommendation.pending { background: var(--amber-light); border: 1px solid #FDE68A; border-radius: var(--radius-sm); padding: 12px; margin-bottom: 8px; }
.recommendation-actions { display: flex; gap: 8px; margin-top: 10px; }

/* ============================================================
   NOTIFICATIONS
   ============================================================ */
.notification-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; background: var(--surface); border-bottom: 1px solid var(--border);
  cursor: pointer; transition: background 0.1s;
}
.notification-row:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.notification-row:last-child { border-bottom: none; border-radius: 0 0 var(--radius) var(--radius); }
.notification-row:hover { background: var(--bg); }
.notification-row.unread { background: var(--indigo-light); }
.notification-row.unread:hover { background: #E0E7FF; }
.notification-body { flex: 1; font-size: 0.875rem; }
.notification-icon { margin-right: 4px; }
.notification-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--indigo); flex: none; }

/* ============================================================
   JOBS
   ============================================================ */
.job-filters { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.job-filters input[type=text] { flex: 1; min-width: 160px; margin-top: 0; }
.job-filters select { margin-top: 0; }
.job-card {
  display: flex; align-items: flex-start; gap: 14px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 18px; margin-bottom: 8px;
  transition: all 0.15s; cursor: pointer; box-shadow: var(--shadow);
}
.job-card:hover { box-shadow: var(--shadow-lg); border-color: var(--indigo-mid); text-decoration: none; transform: translateY(-1px); }
.job-card-info { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.job-card-info strong { font-size: 0.9rem; color: var(--text); font-weight: 700; }
.job-card-info strong:hover { color: var(--indigo); }
.tag-closed, .tag-applied {
  font-size: 0.7rem; font-weight: 700; padding: 2px 9px; border-radius: 999px;
  flex: none; height: fit-content;
}
.tag-closed { background: var(--bg); color: var(--muted); border: 1px solid var(--border); }
.tag-applied { background: var(--indigo-light); color: var(--indigo); border: 1px solid var(--indigo-mid); }
.job-detail-head { display: flex; gap: 14px; margin-bottom: 16px; align-items: flex-start; }
.job-detail-head h2 { font-size: 1.25rem; margin: 0 0 3px; font-weight: 800; letter-spacing: -0.02em; }
.job-description { font-size: 0.9rem; line-height: 1.75; color: var(--text-2); white-space: pre-wrap; margin-bottom: 18px; }
.applicant-row { display: flex; gap: 12px; padding: 14px 0; border-top: 1px solid var(--border); align-items: flex-start; }
.applicant-info { flex: 1; min-width: 0; }
.cover-note { font-size: 0.85rem; margin: 6px 0; color: var(--text-2); font-style: italic; }
.applicant-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.status-pill { font-size: 0.7rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; display: inline-block; letter-spacing: 0.02em; }
.status-applied  { background: var(--bg); color: var(--muted); border: 1px solid var(--border); }
.status-reviewed { background: var(--indigo-light); color: var(--indigo); }
.status-accepted { background: var(--green-light); color: var(--green); }
.status-rejected { background: var(--red-light); color: var(--red); }

/* ============================================================
   COMPANIES
   ============================================================ */
.company-logo { background: var(--bg); border-radius: var(--radius-sm) !important; border: 1px solid var(--border); }
.company-card {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 18px; margin-bottom: 8px;
  box-shadow: var(--shadow); transition: all 0.15s;
}
.company-card:hover { box-shadow: var(--shadow-lg); border-color: var(--indigo-mid); text-decoration: none; transform: translateY(-1px); }
.company-card-info { display: flex; flex-direction: column; gap: 2px; flex: 1; font-size: 0.85rem; }
.company-card-info strong { font-size: 0.9rem; color: var(--text); font-weight: 700; }

/* ============================================================
   ARTICLES
   ============================================================ */
.article-card { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 8px; cursor: pointer; box-shadow: var(--shadow); transition: all 0.15s; }
.article-card:hover { box-shadow: var(--shadow-lg); border-color: var(--indigo-mid); text-decoration: none; transform: translateY(-1px); }
.article-card-cover { height: 140px; background-size: cover; background-position: center; background-color: var(--indigo-light); }
.article-card-body { padding: 14px 18px; }
.article-card-body h3 { margin: 0 0 5px; font-size: 0.9rem; color: var(--text); font-weight: 700; }
.article-card-snippet { color: var(--muted); font-size: 0.82rem; margin: 0 0 10px; }
.article-card-meta { display: flex; align-items: center; gap: 8px; font-size: 0.78rem; color: var(--text-2); }
.article-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--border); font-size: 0.875rem; }
.article-row:first-child { border-top: none; padding-top: 0; }
.article-row a { color: var(--text); font-weight: 600; }
.article-row a:hover { color: var(--indigo); }
.article-reader { max-width: 100%; }
.article-cover { height: 280px; background-size: cover; background-position: center; border-radius: var(--radius) var(--radius) 0 0; background-color: var(--indigo-light); }
.article-reader h1 { font-size: 1.7rem; font-weight: 800; margin: 0 0 14px; line-height: 1.2; letter-spacing: -0.03em; }
.article-byline { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; padding-bottom: 22px; border-bottom: 1px solid var(--border); }
.article-body { font-size: 0.95rem; line-height: 1.85; color: var(--text-2); }
.article-body h2 { font-size: 1.15rem; font-weight: 700; margin: 28px 0 8px; color: var(--text); letter-spacing: -0.02em; }
.article-body h3 { font-size: 0.95rem; font-weight: 700; margin: 22px 0 6px; color: var(--text); }
.article-body p { margin: 0 0 16px; }
.article-body blockquote { border-left: 3px solid var(--indigo); margin: 16px 0; padding: 4px 0 4px 18px; color: var(--muted); font-style: italic; }
.article-body ul, .article-body ol { margin: 0 0 16px; padding-left: 22px; }
.article-body a { color: var(--indigo); }
.editor-toolbar { display: flex; gap: 3px; flex-wrap: wrap; margin-bottom: 8px; background: var(--bg); padding: 6px; border-radius: var(--radius-sm) var(--radius-sm) 0 0; border: 1px solid var(--border); border-bottom: none; }
.editor-toolbar button { background: var(--surface); border: 1px solid var(--border); color: var(--text-2); border-radius: var(--radius-xs); padding: 5px 10px; font-size: 0.8rem; transition: all 0.1s; }
.editor-toolbar button:hover { background: var(--indigo-light); color: var(--indigo); border-color: var(--indigo-mid); }
.editor-surface { min-height: 260px; background: var(--surface); border: 1.5px solid var(--border); border-radius: 0 0 var(--radius-sm) var(--radius-sm); padding: 16px; font-size: 0.93rem; line-height: 1.75; color: var(--text); }
.editor-surface:empty::before { content: attr(data-placeholder); color: var(--muted); }
.editor-surface:focus { outline: none; border-color: var(--indigo); box-shadow: var(--glow); }

/* ============================================================
   MESSAGES
   ============================================================ */
.messages-shell { display: grid; grid-template-columns: 300px minmax(0,1fr); gap: 0; height: calc(100vh - 82px); min-height: 500px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-md); }
.conv-list { border-right: 1px solid var(--border); overflow-y: auto; display: flex; flex-direction: column; }
.conv-list-head { padding: 16px 14px 10px; border-bottom: 1px solid var(--border); font-weight: 700; font-size: 0.9rem; letter-spacing: -0.01em; }
.conv-search { padding: 8px 10px; border-bottom: 1px solid var(--border); }
.conv-search input { margin-top: 0; font-size: 0.84rem; border-radius: 999px; padding: 7px 14px; }
.conv-search-results { border-bottom: 1px solid var(--border); }
.conv-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; cursor: pointer; border-bottom: 1px solid var(--border); transition: background 0.1s; }
.conv-item:hover { background: var(--bg); }
.conv-item.active { background: var(--indigo-light); border-left: 3px solid var(--indigo); }
.conv-info { display: flex; flex-direction: column; min-width: 0; }
.conv-name { font-weight: 700; font-size: 0.85rem; }
.conv-preview { font-size: 0.76rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); }
.conv-thread { display: flex; flex-direction: column; overflow: hidden; }
.thread-empty { display: flex; align-items: center; justify-content: center; color: var(--muted); }
.thread-header { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--border); font-weight: 700; }
.thread-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.bubble { max-width: 72%; padding: 10px 14px; border-radius: 16px; font-size: 0.875rem; line-height: 1.5; }
.bubble.theirs { align-self: flex-start; background: var(--bg); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.bubble.mine { align-self: flex-end; background: linear-gradient(135deg, var(--indigo), var(--violet)); color: #fff; border-bottom-right-radius: 4px; }
.bubble.mine .bubble-time { color: rgba(255,255,255,0.6); }
.bubble-time { display: block; font-size: 0.68rem; color: var(--muted); margin-top: 4px; }
.thread-compose { display: flex; gap: 10px; padding: 12px 14px; border-top: 1px solid var(--border); background: var(--surface); }
.thread-compose input { flex: 1; margin-top: 0; border-radius: 999px; }

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.5); backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.modal { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); color: var(--text); padding: 0; width: 92%; max-width: 480px; box-shadow: var(--shadow-xl); }
.modal::backdrop { background: rgba(15,23,42,0.6); backdrop-filter: blur(4px); }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.modal-header h3 { margin: 0; font-size: 1rem; font-weight: 700; letter-spacing: -0.01em; }
.modal-close { background: none; border: none; font-size: 1.1rem; color: var(--muted); cursor: pointer; padding: 4px; border-radius: 50%; transition: all 0.1s; }
.modal-close:hover { background: var(--bg); color: var(--text); }
.modal-body { padding: 22px; max-height: 70vh; overflow-y: auto; }
.modal-footer { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 22px; border-top: 1px solid var(--border); }

/* ============================================================
   MISC UTILITIES
   ============================================================ */
.inline-form { display: inline; }
.tag-new { background: var(--indigo-light); color: var(--indigo); font-size: 0.7rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--indigo-mid); }

/* ============================================================
   RESPONSIVE — Mobile-first improvements
   ============================================================ */

/* --- Tablet (≤900px) --- */
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .layout-wide { grid-template-columns: 1fr; }
  .side-col { order: -1; }
  .topnav a span:not(.topnav-icon):not(.badge):not(.msg-badge) { display: none; }
  .topbar-logout span:not(.topnav-icon) { display: none; }
  .topbar-search input { width: 150px; }
  /* Messages: switch to stacked layout */
  .messages-shell { grid-template-columns: 1fr; height: auto; }
  .conv-list { max-height: 240px; }
}

/* --- Mobile (≤640px) --- */
@media (max-width: 640px) {
  /* General layout */
  .content { padding: 12px 10px; }
  .topbar { padding: 0 10px; height: 52px; }
  .topbar-search { display: none; }          /* hide full search bar, show icon instead */
  .topbar-search-mobile { display: flex; }   /* show mobile search icon */
  .topbar-brand svg { width: 30px; height: 30px; }

  /* Nav: bottom tab bar on small screens */
  .topnav {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
    background: var(--indigo-deep);
    border-top: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.25);
    justify-content: space-around;
    padding: 0; margin: 0;
    height: 56px;
  }
  .topnav a {
    flex: 1; padding: 0 4px; min-width: 0;
    font-size: 0.6rem; border-bottom: none;
    border-top: 2px solid transparent;
  }
  .topnav a.active { border-top-color: #A78BFA; border-bottom-color: transparent; }
  .topnav a span:not(.topnav-icon):not(.badge):not(.msg-badge) { display: block; font-size: 0.58rem; }

  /* Push page content above bottom nav */
  .content { padding-bottom: 70px; }
  .app-shell > .content { padding-bottom: 70px; }

  /* Top-right strip: hide Me/logout labels */
  .topbar-me span:not(.avatar) { display: none; }
  .topbar-logout { display: none; }
  .topbar-right { gap: 4px; }

  /* Profile */
  .profile-cover { height: 110px; }
  .profile-avatar-wrap { margin-top: -34px; }
  .profile-avatar-wrap .avatar-xl { width: 68px; height: 68px; font-size: 1.4rem; }

  /* Cards/Posts */
  .card { border-radius: var(--radius-sm); }
  .post { border-radius: 0; border-left: none; border-right: none; }

  /* Auth pages */
  .auth-card { padding: 28px 20px; }

  /* Messages: full-screen experience */
  .messages-shell {
    position: fixed; inset: 52px 0 56px 0;
    height: auto; border-radius: 0; border: none; z-index: 50;
    display: flex; flex-direction: column;
  }
  .conv-list {
    max-height: 200px; min-height: 140px;
    border-bottom: 2px solid var(--border);
    flex-shrink: 0;
  }
  .conv-thread { flex: 1; overflow: hidden; }
  .thread-messages { flex: 1; }

  /* Compose bar */
  .thread-compose { padding: 8px 10px; gap: 6px; }
  .compose-send-label { display: none; }
  .compose-send-btn { padding: 0 12px; min-width: 40px; }

  /* Modals */
  .modal { margin: auto 0 0; border-radius: var(--radius-lg) var(--radius-lg) 0 0; max-height: 90vh; }
  .modal-overlay { align-items: flex-end; }
}

/* ============================================================
   TOPBAR WORDMARK
   ============================================================ */
.topbar-wordmark {
  font-size: 1.05rem; font-weight: 800; color: #fff;
  letter-spacing: -0.03em; margin-left: 8px;
  display: none; /* show on wider screens */
}
.topbar-wordmark span { color: #A78BFA; }
@media (min-width: 1000px) { .topbar-wordmark { display: inline; } }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
  background: linear-gradient(135deg, var(--indigo-deep) 0%, #2D2694 40%, var(--violet) 100%);
  position: relative; overflow: hidden;
  margin: -24px -16px 28px; /* bleed past .content padding */
  padding: 44px 24px 44px;
}
.hero-section::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 15% 50%, rgba(167,139,250,0.25) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 20%, rgba(99,102,241,0.2) 0%, transparent 50%);
  pointer-events: none;
}
.hero-section::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
}
.hero-inner {
  max-width: 1088px; margin: 0 auto;
  display: flex; align-items: center; gap: 40px; position: relative; z-index: 1;
}
.hero-left { flex: 1; min-width: 0; }
.hero-logo-link { display: inline-block; margin-bottom: 18px; transition: transform 0.2s; }
.hero-logo-link:hover { transform: scale(1.06); }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: #A78BFA; margin-bottom: 10px;
}
.hero-eyebrow svg { color: #F59E0B; }
.hero-headline {
  font-size: 1.65rem; font-weight: 800; color: #fff; line-height: 1.25;
  letter-spacing: -0.03em; margin: 0 0 14px; max-width: 520px;
}
.hero-meta {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 0.8rem; color: rgba(255,255,255,0.6); margin-bottom: 22px;
}
.hero-author { display: flex; align-items: center; gap: 5px; color: rgba(255,255,255,0.8); font-weight: 500; }
.hero-dot { color: rgba(255,255,255,0.3); }
.hero-time { color: rgba(255,255,255,0.5); }
.hero-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hero-btn-post {
  display: inline-flex; align-items: center; gap: 7px;
  background: #fff; color: var(--indigo-deep); border: none;
  padding: 10px 20px; border-radius: 999px; font-weight: 700; font-size: 0.875rem;
  font-family: var(--font); cursor: pointer; transition: all 0.15s;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}
.hero-btn-post:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.25); }
.hero-btn-feed {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,0.12); color: #fff;
  border: 1.5px solid rgba(255,255,255,0.25);
  padding: 10px 20px; border-radius: 999px; font-weight: 600; font-size: 0.875rem;
  transition: all 0.15s; backdrop-filter: blur(4px);
}
.hero-btn-feed:hover { background: rgba(255,255,255,0.2); color: #fff; text-decoration: none; transform: translateY(-2px); }

/* Hero right side */
.hero-media {
  width: 280px; flex: none; border-radius: var(--radius-lg);
  overflow: hidden; border: 2px solid rgba(255,255,255,0.15);
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}
.hero-media img { display: block; width: 100%; height: 180px; object-fit: cover; }
.hero-stats {
  display: flex; flex-direction: column; gap: 12px;
}
.hero-stat {
  background: rgba(255,255,255,0.08); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius);
  padding: 14px 20px; min-width: 160px;
  font-size: 1.6rem; font-weight: 800; color: #fff; letter-spacing: -0.03em;
  display: flex; flex-direction: column; gap: 2px;
}
.hero-stat span { font-size: 0.74rem; font-weight: 500; color: rgba(255,255,255,0.55); letter-spacing: 0.04em; text-transform: uppercase; }

@media (max-width: 700px) {
  .hero-stats, .hero-media { display: none; }
  .hero-headline { font-size: 1.3rem; }
  .hero-section { padding: 32px 16px 28px; }
}

/* ============================================================
   FEED LABEL
   ============================================================ */
.feed-label {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.74rem; font-weight: 700; color: var(--muted);
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 10px; padding: 0 2px;
}
.feed-label svg { color: var(--indigo); }

/* ============================================================
   COMPOSER CARD
   ============================================================ */
.composer-card .composer-top-row { display: flex; gap: 10px; align-items: center; }

/* ============================================================
   EMPTY STATE ICON
   ============================================================ */
.empty-icon { color: var(--indigo-mid); margin-bottom: 12px; }

/* ============================================================
   SIDEBAR — Profile mini card
   ============================================================ */
.profile-mini-card { overflow: visible !important; }
.profile-mini-cover {
  height: 52px; border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(135deg, var(--indigo-deep), var(--violet));
}
.profile-mini-body { padding: 0 16px 16px; }
.profile-mini-avatar {
  display: inline-flex; margin-top: -28px; margin-bottom: 8px;
  border: 3px solid var(--surface); box-shadow: 0 2px 8px rgba(79,70,229,0.25);
}
.profile-mini-name { font-weight: 700; font-size: 0.9rem; margin-bottom: 2px; }
.profile-mini-name a { color: var(--text); }
.profile-mini-name a:hover { color: var(--indigo); }
.profile-mini-headline { font-size: 0.78rem; color: var(--text-2); margin-bottom: 10px; line-height: 1.4; }
.profile-mini-link {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.78rem; font-weight: 600; color: var(--indigo);
}
.profile-mini-link svg { transform: rotate(-90deg); }
.profile-mini-link:hover { color: var(--indigo-dark); }

/* ============================================================
   SIDEBAR — Quick links
   ============================================================ */
.sidebar-links { display: flex; flex-direction: column; gap: 2px; padding: 10px; }
.sidebar-links a {
  display: flex; align-items: center; gap: 9px; padding: 8px 10px;
  border-radius: var(--radius-sm); font-size: 0.84rem; font-weight: 600;
  color: var(--text-2); transition: all 0.12s;
}
.sidebar-links a:hover { background: var(--indigo-light); color: var(--indigo); text-decoration: none; }
.sidebar-links a svg { color: var(--indigo); flex-shrink: 0; }

/* ============================================================
   POST ACTION ICON ALIGNMENT
   ============================================================ */
.post-action-btn { gap: 6px; }
.post-action-btn svg { flex-shrink: 0; }
.action-react.reacted svg { color: var(--indigo); }

/* ============================================================
   MESSAGE COMPOSE — image attach UI
   ============================================================ */
.thread-compose { align-items: flex-end; }
.compose-input-wrap { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.compose-img-btn {
  cursor: pointer; color: var(--text-2); display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%; transition: background 0.15s; flex-shrink: 0;
  margin-bottom: 2px;
}
.compose-img-btn:hover { background: var(--bg); color: var(--indigo); }
.compose-img-preview-wrap { position: relative; display: inline-block; }
.compose-img-preview {
  max-height: 120px; max-width: 220px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); object-fit: cover; display: block;
}
.compose-img-clear {
  position: absolute; top: -6px; right: -6px;
  background: var(--text-1); color: #fff; border: none; border-radius: 50%;
  width: 18px; height: 18px; font-size: 0.65rem; line-height: 18px;
  cursor: pointer; text-align: center; padding: 0;
}
.compose-send-btn { flex-shrink: 0; display: flex; align-items: center; gap: 6px; height: 38px; }

/* ============================================================
   MESSAGE BUBBLES — image support
   ============================================================ */
.bubble-img {
  max-width: 220px; max-height: 200px; border-radius: var(--radius-sm);
  object-fit: cover; display: block; cursor: pointer;
  margin-bottom: 4px;
}
.bubble-text { display: block; }

/* ============================================================
   ARTICLE SHARE BUTTON
   ============================================================ */
.action-share-article {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.8rem; font-weight: 600; color: var(--text-2);
  background: none; border: none; cursor: pointer; padding: 5px 10px;
  border-radius: var(--radius-sm); transition: all 0.15s;
}
.action-share-article:hover { background: var(--bg); color: var(--indigo); }
.action-share-article svg { flex-shrink: 0; }

/* ============================================================
   SHARE MODAL — platform grid
   ============================================================ */
.share-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px;
}
.share-btn {
  display: flex; align-items: center; gap: 9px;
  padding: 11px 14px; border-radius: var(--radius-sm);
  font-size: 0.85rem; font-weight: 600; text-decoration: none !important;
  transition: filter 0.15s, transform 0.1s;
  color: #fff;
}
.share-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.share-btn:active { transform: translateY(0); }
.share-twitter  { background: #000; }
.share-linkedin { background: #0A66C2; }
.share-facebook { background: #1877F2; }
.share-whatsapp { background: #25D366; }
.share-copy-row { display: flex; gap: 8px; align-items: center; margin-top: 4px; }
.share-url-input {
  flex: 1; margin: 0; font-size: 0.78rem; color: var(--text-2);
  background: var(--bg); border-color: var(--border); border-radius: var(--radius-sm);
  padding: 7px 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ============================================================
   SEARCH PAGE
   ============================================================ */
.search-page-bar {
  display: flex; align-items: center; padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.search-tabs {
  display: flex; border-bottom: 1px solid var(--border);
}
.search-tab {
  flex: 1; text-align: center; padding: 12px 8px;
  font-size: 0.82rem; font-weight: 600; color: var(--text-2);
  text-decoration: none !important; border-bottom: 2px solid transparent;
  transition: all 0.15s;
}
.search-tab:hover { color: var(--indigo); background: var(--bg); }
.search-tab.active { color: var(--indigo); border-bottom-color: var(--indigo); }
.search-result-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 20px; text-decoration: none !important; color: var(--text);
  border-bottom: 1px solid var(--border); transition: background 0.1s;
}
.search-result-row:last-child { border-bottom: none; }
.search-result-row:hover { background: var(--bg); }
.search-result-info {
  display: flex; flex-direction: column; gap: 2px; min-width: 0;
}
.search-result-info strong { font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ============================================================
   INSTAGRAM EMBED
   ============================================================ */
.post-instagram-embed {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #fafafa;
  border: 1px solid var(--border);
  margin-top: 10px;
  text-align: center;
}
.post-instagram-embed iframe {
  width: 100%;
  min-height: 480px;
  max-width: 540px;
  display: block;
  margin: 0 auto;
  border: none;
}

/* ============================================================
   SHARED POST PREVIEW (reshare)
   ============================================================ */
.shared-post-preview {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-top: 10px;
  background: var(--bg);
}
.shared-post-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.shared-post-author {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text);
  text-decoration: none;
}
.shared-post-author:hover { color: var(--indigo); }
.shared-post-headline {
  font-size: 0.75rem;
  color: var(--muted);
}
.shared-post-content {
  font-size: 0.87rem;
  color: var(--text-2);
  margin: 0 0 8px;
  white-space: pre-wrap;
  word-break: break-word;
}
.shared-post-img {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: var(--radius-xs);
  display: block;
}
.shared-post-ig-note {
  font-size: 0.78rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}

/* ============================================================
   SHARE POST MODAL
   ============================================================ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000;
  padding: 16px;
}
.modal-box {
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 20px;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.modal-header h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}
.modal-close {
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--muted);
  cursor: pointer;
  line-height: 1;
  padding: 2px 6px;
  border-radius: var(--radius-xs);
}
.modal-close:hover { color: var(--text); background: var(--bg); }
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.share-composer-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.share-composer-row textarea {
  flex: 1;
  resize: none;
  font-size: 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
}
.share-composer-row textarea:focus {
  outline: none;
  border-color: var(--indigo);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
}
.share-preview-wrap {
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  max-height: 300px;
  overflow-y: auto;
}
.share-post-clone {
  pointer-events: none;
  opacity: 0.85;
  padding: 12px 14px;
}
