/* ─────────────────────────────────────────────────────────
   MISConnect — Design System
   Tema: Beyaz, minimal, LinkedIn / kariyer.net stili
───────────────────────────────────────────────────────── */

/* ── CSS Variables ── */
:root {
  /* ─── Brand (tek kaynak — tüm uygulamada bu kullanılır) ─── */
  --brand:       #3b82f6;           /* blue-500  – primary                */
  --brand-dark:  #2563eb;           /* blue-600  – hover / pressed        */
  --brand-light: #60a5fa;           /* blue-400  – dark-mode primary      */
  --brand-soft:  rgba(59,130,246,.10);
  --brand-mid:   rgba(59,130,246,.20);

  /* Alias'lar (geriye dönük uyum — mevcut component'lar bozulmasın) */
  --accent:      var(--brand);
  --accent-soft: var(--brand-soft);
  --accent-mid:  var(--brand-mid);

  /* ─── Logo renkleri ─────────────────────────────────────── */
  --logo-text:   #0f172a;           /* "MIS" kısmı                        */
  --logo-accent: var(--brand);      /* "Connect" kısmı                    */
  --logo-text-dark:   #f1f5f9;      /* dark-mode "MIS"                    */
  --logo-accent-dark: var(--brand-light); /* dark-mode "Connect"          */

  /* ─── Tema Değişkenleri (Theme Tokens) ─── */
  --bg-primary:    #f1f5f9;
  --bg-secondary:  #ffffff;
  --card-bg:       #ffffff;
  --bg-soft:       #f8fafc;
  --text-primary:  #0f172a;
  --text-muted:    #64748b;
  --border-color:  #e2e8f0;

  /* ─── Merkezi Tema İsimleri (kullanıcı tarafından okunabilir) ─── */
  --bg-main:     var(--bg-primary);    /* sayfa zemini   #f1f5f9 */
  --bg-sidebar:  var(--bg-secondary);  /* kenar çubuğu   #ffffff */
  --bg-card:     var(--card-bg);       /* kart / panel   #ffffff */
  --input-bg:    var(--bg-soft);       /* girdi alanları #f8fafc */
  --hover-bg:    var(--bg-primary);    /* hover zemini   #f1f5f9 */
  --text-main:   var(--text-primary);  /* ana metin      #0f172a */
  --text-subtle: #94a3b8;              /* placeholder / ikon    */
  --primary-color: var(--brand-dark);  /* marka aksiyonu #2563eb */

  /* ─── Diğer tokenlar ────────────────────────────────────── */
  --dark:        #0f172a;
  --bg:          var(--bg-primary);
  --white:       var(--bg-secondary);
  --border:      var(--border-color);
  --muted:       var(--text-muted);
  --text:        var(--text-primary);
  --soft:        var(--bg-soft);
  --danger:      #ef4444;
  --danger-soft: #fee2e2;
  --shadow-sm:   0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md:   0 4px 16px rgba(0,0,0,.08);
  --shadow-lg:   0 20px 40px rgba(0,0,0,.10);
  --radius-sm:   10px;
  --radius-md:   14px;
  --radius-lg:   20px;
  --radius-xl:   24px;
  --font:        'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  /* ─── Hero Bölümü ─── */
  --hero-bg:     linear-gradient(160deg, #eff6ff 0%, #f0f7ff 50%, #ffffff 100%);
  --hero-border: #dbeafe;

  /* ─── Durum Badges ─── */
  --badge-aktif-bg: #dcfce7;
  --badge-aktif-text: #166534;
  --badge-pasif-bg: #fee2e2;
  --badge-pasif-text: #b91c1c;
  --badge-bekliyor-bg: #fef9c3;
  --badge-bekliyor-text: #854d0e;

  /* ─── Rol Badges ─── */
  --badge-ogrenci-bg: #eff6ff;
  --badge-ogrenci-text: #1d4ed8;
  --badge-mezun-bg: #f0fdf4;
  --badge-mezun-text: #166534;
  --badge-akademisyen-bg: #faf5ff;
  --badge-akademisyen-text: #6b21a8;
  --badge-sirket-bg: #fff7ed;
  --badge-sirket-text: #c2410c;
  --badge-admin-bg: var(--dark);
  --badge-admin-text: #f1f5f9;

  /* ─── Badges (ds-badge) ─── */
  --badge-blue-bg: rgba(37,99,235,.1);
  --badge-blue-text: #1d4ed8;
  --badge-green-bg: rgba(22,163,74,.1);
  --badge-green-text: #15803d;
  --badge-yellow-bg: rgba(217,119,6,.1);
  --badge-yellow-text: #92400e;
  --badge-red-bg: rgba(239,68,68,.1);
  --badge-red-text: #b91c1c;
  --badge-purple-bg: rgba(124,58,237,.1);
  --badge-purple-text: #6d28d9;
  --badge-gray-bg: rgba(100,116,139,.1);
  --badge-gray-text: #475569;
  --badge-teal-bg: rgba(20,184,166,.1);
  --badge-teal-text: #0f766e;

  /* ─── Buttons and Shadows ─── */
  --btn-primary-shadow: 0 2px 8px rgba(37,99,235,.2);

  /* ─── Loaders & Skeletons ─── */
  --loader-bg: var(--bg-secondary);
  --loader-dots-bg: var(--brand);
  --sk-gradient: linear-gradient(90deg, #f1f5f9 0%, #e2e8f0 40%, #f1f5f9 80%);
  --sk-card-border: #e9eef5;
}

/* ─── Unified Dark Mode Tokens ─── */
[data-theme="dark"],
.dark-mode {
  /* ─── Brand ─── */
  --brand:       #60a5fa;           /* brand-light */
  --brand-dark:  #3b82f6;           /* brand-dim */
  --brand-light: #93c5fd;
  --brand-soft:  rgba(96,165,250,0.10);
  --brand-mid:   rgba(96,165,250,0.18);
  
  --accent:      var(--brand-light);
  --accent-soft: var(--brand-soft);
  --accent-mid:  var(--brand-mid);

  /* ─── Logo ─── */
  --logo-text:   #f8fafc;
  --logo-accent: var(--brand);

  /* ─── Tema Değişkenleri (Theme Tokens) ─── */
  --bg-primary:    #0f172a;           /* Body background: #0f172a */
  --bg-secondary:  #1e293b;           /* Sidebar/Card background: #1e293b */
  --card-bg:       #1e293b;           /* Feed card background: #1e293b */
  --bg-soft:       #111827;           /* Input background: #111827 */
  --text-primary:  #f8fafc;           /* Primary text: #f8fafc */
  --text-muted:    #94a3b8;           /* Muted text: #94a3b8 */
  --border-color:  rgba(255,255,255,0.08); /* Border: rgba(255,255,255,0.08) */

  /* ─── Merkezi Tema İsimleri ─── */
  --bg-main:     var(--bg-primary);    /* sayfa zemini   #0f172a */
  --bg-sidebar:  var(--bg-secondary);  /* kenar çubuğu   #1e293b */
  --bg-card:     var(--card-bg);       /* kart / panel   #1e293b */
  --input-bg:    var(--bg-soft);       /* girdi alanları #111827 */
  --hover-bg:    rgba(255,255,255,0.04); /* Hover: rgba(255,255,255,0.04) */
  --text-main:   var(--text-primary);  /* ana metin      #f8fafc */
  --text-subtle: #cbd5e1;              /* Secondary text: #cbd5e1 */
  --primary-color: var(--brand);       /* marka aksiyonu */

  /* ─── Legacy EJS Support Değişkenleri (Backward Compatibility) ─── */
  --dm-base:       var(--bg-primary);
  --dm-surface:    var(--bg-secondary);
  --dm-raised:     var(--bg-soft);
  --dm-text:       var(--text-primary);
  --dm-sub:        var(--text-subtle);
  --dm-muted:      var(--text-muted);
  --dm-border:     var(--border-color);
  --dm-brand:      var(--brand);
  --dm-brand-dim:  var(--brand-dark);

  /* ─── Diğer tokenlar ─── */
  --dark:        #f8fafc;
  --bg:          var(--bg-primary);
  --white:       var(--bg-secondary);
  --border:      var(--border-color);
  --muted:       var(--text-muted);
  --text:        var(--text-primary);
  --soft:        var(--bg-soft);
  --danger:      #f87171;
  --danger-soft: rgba(248,113,113,0.12);
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.30);
  --shadow-md:   0 4px 12px rgba(0,0,0,0.40);
  --shadow-lg:   0 8px 28px rgba(0,0,0,0.55);

  /* ─── Hero Bölümü ─── */
  --hero-bg:     linear-gradient(160deg, #0f172a 0%, #1e293b 100%);
  --hero-border: rgba(255,255,255,0.08);

  /* ─── Loaders & Skeletons ─── */
  --loader-bg: var(--bg-secondary);
  --sk-gradient: linear-gradient(90deg, #111827 0%, #1e293b 40%, #111827 80%);
  --sk-card-border: rgba(255,255,255,0.08);
}

[data-theme="dark"] body,
body.dark-mode {
  background-color: var(--bg-main) !important;
  color: var(--text-main) !important;
}

/* ─── Unified Overrides for Local / EJS / Inline Dark Theme Styles ─── */
[data-theme="dark"] .pc-card, .dark-mode .pc-card,
[data-theme="dark"] .pf-post, .dark-mode .pf-post,
[data-theme="dark"] .ev-widget, .dark-mode .ev-widget,
[data-theme="dark"] .ai-coach-card, .dark-mode .ai-coach-card,
[data-theme="dark"] .profile-card, .dark-mode .profile-card,
[data-theme="dark"] .ai-suggestions-card, .dark-mode .ai-suggestions-card,
[data-theme="dark"] .pp-card, .dark-mode .pp-card,
[data-theme="dark"] .pp-views, .dark-mode .pp-views,
[data-theme="dark"] .pf-empty, .dark-mode .pf-empty,
[data-theme="dark"] .dm-box, .dark-mode .dm-box,
[data-theme="dark"] .sh-modal, .dark-mode .sh-modal,
[data-theme="dark"] .lm__panel, .dark-mode .lm__panel,
[data-theme="dark"] .skill-modal, .dark-mode .skill-modal {
  background: var(--bg-card) !important;
  border-color: var(--border-color) !important;
  color: var(--text-main) !important;
}

[data-theme="dark"] .sh-post-preview, .dark-mode .sh-post-preview,
[data-theme="dark"] .sh-search-wrap, .dark-mode .sh-search-wrap,
[data-theme="dark"] .sh-note, .dark-mode .sh-note,
[data-theme="dark"] .pf-file, .dark-mode .pf-file,
[data-theme="dark"] .pc-preview-grid, .dark-mode .pc-preview-grid {
  background: var(--input-bg) !important;
  border-color: var(--border-color) !important;
  color: var(--text-main) !important;
}

[data-theme="dark"] .ev-item, .dark-mode .ev-item,
[data-theme="dark"] .lm__item, .dark-mode .lm__item {
  border-color: var(--border-color) !important;
}

[data-theme="dark"] .ev-item:hover, .dark-mode .ev-item:hover,
[data-theme="dark"] .lm__item:hover, .dark-mode .lm__item:hover,
[data-theme="dark"] .pf-action:hover, .dark-mode .pf-action:hover {
  background: var(--hover-bg) !important;
  color: var(--text-main) !important;
}

[data-theme="dark"] .pc-form textarea, .dark-mode .pc-form textarea,
[data-theme="dark"] .pf-comment-input, .dark-mode .pf-comment-input {
  color: var(--text-main) !important;
}

[data-theme="dark"] .pf-post__name, .dark-mode .pf-post__name,
[data-theme="dark"] .pf-post__body, .dark-mode .pf-post__body,
[data-theme="dark"] .ev-item__title, .dark-mode .ev-item__title,
[data-theme="dark"] .dm-title, .dark-mode .dm-title,
[data-theme="dark"] .sh-modal__title, .dark-mode .sh-modal__title,
[data-theme="dark"] .lm__title, .dark-mode .lm__title {
  color: var(--text-main) !important;
}

[data-theme="dark"] .pf-post__fade, .dark-mode .pf-post__fade {
  background: linear-gradient(transparent, var(--bg-card)) !important;
}

[data-theme="dark"] .pc-footer, .dark-mode .pc-footer,
[data-theme="dark"] .pf-post__actions, .dark-mode .pf-post__actions,
[data-theme="dark"] .pf-comments, .dark-mode .pf-comments,
[data-theme="dark"] .lm__head, .dark-mode .lm__head,
[data-theme="dark"] .sh-modal__head, .dark-mode .sh-modal__head,
[data-theme="dark"] .sh-modal__foot, .dark-mode .sh-modal__foot,
[data-theme="dark"] .dm-head, .dark-mode .dm-head {
  border-color: var(--border-color) !important;
}

/* Form inputs & Select overrides */
[data-theme="dark"] input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]),
.dark-mode input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]),
[data-theme="dark"] textarea, .dark-mode textarea,
[data-theme="dark"] select, .dark-mode select {
  background-color: var(--input-bg) !important;
  color: var(--text-main) !important;
  border-color: var(--border-color) !important;
}

[data-theme="dark"] input:focus, .dark-mode input:focus,
[data-theme="dark"] textarea:focus, .dark-mode textarea:focus,
[data-theme="dark"] select:focus, .dark-mode select:focus {
  border-color: var(--primary-color) !important;
  background-color: var(--bg-card) !important;
}

/* ─── Messaging & Chat Dark Mode Overrides ─── */
[data-theme="dark"] .mc-left, .dark-mode .mc-left {
  background: var(--bg-card) !important;
  border-right-color: var(--border-color) !important;
}
[data-theme="dark"] .mc-left__head, .dark-mode .mc-left__head {
  border-bottom-color: var(--border-color) !important;
}
[data-theme="dark"] .mc-search-box, .dark-mode .mc-search-box {
  border-bottom-color: var(--border-color) !important;
}
[data-theme="dark"] .mc-conv:not(.mc-conv--unread), .dark-mode .mc-conv:not(.mc-conv--unread) {
  border-left-color: transparent !important;
}
[data-theme="dark"] .mc-conv--active, .dark-mode .mc-conv--active {
  background: var(--hover-bg) !important;
  border-left-color: var(--primary-color) !important;
}
[data-theme="dark"] .mc-conv:hover, .dark-mode .mc-conv:hover {
  background: var(--hover-bg) !important;
}
[data-theme="dark"] .mc-conv__name, .dark-mode .mc-conv__name {
  color: var(--text-main) !important;
}
[data-theme="dark"] .mc-online-dot, .dark-mode .mc-online-dot {
  border-color: var(--bg-card) !important;
}
[data-theme="dark"] .mc-date-sep::before, .dark-mode .mc-date-sep::before,
[data-theme="dark"] .mc-date-sep::after, .dark-mode .mc-date-sep::after {
  background: var(--border-color) !important;
}
[data-theme="dark"] .mc-new-btn, .dark-mode .mc-new-btn {
  background: var(--brand-soft) !important;
  color: var(--brand) !important;
}
[data-theme="dark"] .mc-new-btn:hover, .dark-mode .mc-new-btn:hover {
  background: var(--brand-mid) !important;
}
[data-theme="dark"] .mc-chat__head, .dark-mode .mc-chat__head {
  background: var(--bg-card) !important;
  border-bottom-color: var(--border-color) !important;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.3) !important;
}
[data-theme="dark"] .mc-chat__foot, .dark-mode .mc-chat__foot {
  background: var(--bg-card) !important;
  border-top-color: var(--border-color) !important;
}
[data-theme="dark"] .mc-msg__bubble, .dark-mode .mc-msg__bubble {
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2) !important;
}
[data-theme="dark"] .mc-msg--in .mc-msg__bubble, .dark-mode .mc-msg--in .mc-msg__bubble {
  background: var(--bg-secondary) !important;
}
[data-theme="dark"] .mc-msg__del, .dark-mode .mc-msg__del {
  background: var(--bg-secondary) !important;
  border-color: var(--danger) !important;
  color: var(--danger) !important;
}
[data-theme="dark"] .mc-msg__del:hover, .dark-mode .mc-msg__del:hover {
  background: var(--danger-soft) !important;
}
[data-theme="dark"] .mc-search-close:hover, .dark-mode .mc-search-close:hover {
  color: var(--text-main) !important;
}
[data-theme="dark"] .mc-conv-list::-webkit-scrollbar-thumb, .dark-mode .mc-conv-list::-webkit-scrollbar-thumb,
[data-theme="dark"] .mc-chat__body::-webkit-scrollbar-thumb, .dark-mode .mc-chat__body::-webkit-scrollbar-thumb {
  background: var(--border-color) !important;
}
[data-theme="dark"] .mc-placeholder, .dark-mode .mc-placeholder {
  background: var(--bg-main) !important;
}
[data-theme="dark"] .mc-placeholder__title, .dark-mode .mc-placeholder__title {
  color: var(--text-main) !important;
}
[data-theme="dark"] .mc-head-profile-link:hover, .dark-mode .mc-head-profile-link:hover {
  background: var(--hover-bg) !important;
}
[data-theme="dark"] .mc-head-profile-link:hover .mc-chat__head-name, .dark-mode .mc-head-profile-link:hover .mc-chat__head-name {
  color: var(--brand) !important;
}

/* ─── Layout Dropdowns & Header Dark Mode Overrides ─── */
[data-theme="dark"] .search-drop, .dark-mode .search-drop,
[data-theme="dark"] .notif-drop, .dark-mode .notif-drop,
[data-theme="dark"] .profile-menu__dropdown, .dark-mode .profile-menu__dropdown {
  background: var(--bg-card) !important;
  border-color: var(--border-color) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45) !important;
}

[data-theme="dark"] .sd-all, .dark-mode .sd-all,
[data-theme="dark"] .notif-drop__head, .dark-mode .notif-drop__head,
[data-theme="dark"] .notif-item, .dark-mode .notif-item,
[data-theme="dark"] .profile-menu__divider, .dark-mode .profile-menu__divider,
[data-theme="dark"] .profile-menu__header, .dark-mode .profile-menu__header {
  border-color: var(--border-color) !important;
}

[data-theme="dark"] .sd-all:hover, .dark-mode .sd-all:hover,
[data-theme="dark"] .notif-item:hover, .dark-mode .notif-item:hover,
[data-theme="dark"] .profile-menu__item:hover, .dark-mode .profile-menu__item:hover,
[data-theme="dark"] .profile-menu__logout:hover, .dark-mode .profile-menu__logout:hover {
  background: var(--hover-bg) !important;
  color: var(--text-main) !important;
}

[data-theme="dark"] .notif-badge, .dark-mode .notif-badge {
  border-color: var(--bg-card) !important;
}

[data-theme="dark"] .profile-menu__btn, .dark-mode .profile-menu__btn {
  color: var(--text-main) !important;
}
[data-theme="dark"] .profile-menu__btn:hover, .dark-mode .profile-menu__btn:hover {
  background: var(--hover-bg) !important;
}

/* Dynamic border-color override for inline styles */
[data-theme="dark"] .nav__item span[style*="border:2px solid #fff"],
.dark-mode .nav__item span[style*="border:2px solid #fff"],
[data-theme="dark"] .nav__item span[style*="border: 2px solid #fff"],
.dark-mode .nav__item span[style*="border: 2px solid #fff"] {
  border-color: var(--bg-sidebar) !important;
}

/* cvBanner and announcements detail dark mode support */
[data-theme="dark"] #cvBanner,
.dark-mode #cvBanner {
  background: linear-gradient(90deg, var(--bg-secondary), var(--bg-primary)) !important;
  border-color: var(--border-color) !important;
}
[data-theme="dark"] #cvBanner span,
.dark-mode #cvBanner span {
  color: var(--text-main) !important;
}
[data-theme="dark"] #bulkDetailIcerik,
.dark-mode #bulkDetailIcerik {
  background: var(--input-bg) !important;
  color: var(--text-main) !important;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--font);
  font-size: 14px;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
button { font-family: var(--font); }
img { display: block; max-width: 100%; }
.hidden { display: none !important; }

/* ════════════════════════════════════════
   APP LAYOUT
════════════════════════════════════════ */
.app {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
  gap: 0;
}

/* ════════════════════════════════════════
   SIDEBAR
════════════════════════════════════════ */
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: var(--white);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 28px 20px;
  overflow-y: auto;
}

/* Brand */
.sidebar__brand {
  padding: 0 6px 28px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

/* ── Unified Logo Component ─────────────────────────────────
   Hem sidebar hem loading ekranında aynı class kullanılır.
   Boyut farkı için variant modifier'lar: --sidebar / --loader
────────────────────────────────────────────────────────── */
.mc-logo {
  font-family: var(--font);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--logo-text);
  line-height: 1.1;
  user-select: none;
}
.mc-logo span {
  color: var(--logo-accent);
}

/* Sidebar boyutu */
.mc-logo--sidebar {
  font-size: 22px;
  letter-spacing: -0.5px;
}

/* Loading ekranı boyutu */
.mc-logo--loader {
  font-size: 2rem;
  letter-spacing: -0.04em;
}

/* Geriye dönük uyum: eski .brand__logo hâlâ çalışsın */
.brand__logo {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--logo-text);
  line-height: 1.2;
}
.brand__logo span { color: var(--logo-accent); }

.brand__sub {
  margin-top: 5px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}

/* Nav */
.sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.nav__section-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-subtle, #94a3b8);
  padding: 12px 14px 4px;
  margin-top: 6px;
}

.nav__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 13px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  border: none;
  position: relative;
  transition: background 0.15s ease, color 0.15s ease, transform 0.12s ease;
  overflow: hidden;
}
.nav__item::before {
  content: '';
  position: absolute;
  left: 0; top: 25%; bottom: 25%;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--accent, var(--brand));
  opacity: 0;
  transition: opacity 0.15s ease, top 0.15s ease, bottom 0.15s ease;
}
.nav__item:hover {
  background: var(--soft);
  color: var(--dark);
  transform: translateX(2px);
}
.nav__item--active {
  background: var(--brand-soft, rgba(59,130,246,.09));
  color: var(--brand-dark, #2563eb);
  font-weight: 700;
}
.nav__item--active::before { opacity: 1; top: 15%; bottom: 15%; }
.nav__item--active .nav__icon { stroke: var(--brand-dark, #2563eb); }

.nav__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke: currentColor;
  transition: transform 0.15s ease;
}
.nav__item:hover .nav__icon { transform: scale(1.08); }

/* ════════════════════════════════════════
   MAIN AREA
════════════════════════════════════════ */
.main {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── TOPBAR ── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 10px 28px;
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Search wrap — genişlemesi için flex:1 */
.topbar__search-wrap {
  flex: 1;
  min-width: 0;
  max-width: 640px;
}

/* Search */
.topbar__search {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--input-bg);
  border: 1.5px solid var(--border-color);
  border-radius: 999px;
  padding: 0 6px 0 18px;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.topbar__search:focus-within {
  border-color: var(--accent, #6366f1);
  box-shadow: 0 0 0 3px rgba(99,102,241,.12);
  background: var(--bg-card);
}

.search__icon {
  width: 16px;
  height: 16px;
  color: var(--text-subtle);
  flex-shrink: 0;
  margin-right: 10px;
}

.search__input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 400;
  color: var(--text);
  padding: 12px 0;
  min-width: 0;
}
.search__input::placeholder { color: var(--text-subtle); }

.search__btn {
  flex-shrink: 0;
  padding: 7px 18px;
  border-radius: 999px;
  border: none;
  background: var(--accent, #6366f1);
  color: #fff;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}
.search__btn:hover { background: #4f46e5; }

/* Actions */
.topbar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.topbar__icon-btn {
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--border);
  background: var(--white);
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.topbar__icon-btn:hover {
  border-color: var(--dark);
  color: var(--dark);
  background: var(--soft);
}

.topbar__ai-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid var(--border-color);
  background: var(--input-bg);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.topbar__ai-btn:hover {
  background: #f0f6ff;
  color: #2563eb;
  border-color: #bfdbfe;
}

/* ── Profile Menu ── */
.profile-menu { position: relative; }

.profile-menu__btn {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 12px 6px 6px;
  border: 1.5px solid var(--border);
  background: var(--white);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.profile-menu__btn:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* ── mc-av: Universal Avatar Component ── */
.mc-av {
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}
.mc-av img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mc-av img.mc-av__co { object-fit: contain; padding: 6px; }
.mc-av__ini { font-weight: 800; line-height: 1; position: relative; }
.mc-av--small  { width: 32px;  height: 32px;  font-size: .6rem;  }
.mc-av--medium { width: 48px;  height: 48px;  font-size: .9rem;  }
.mc-av--large  { width: 96px;  height: 96px;  font-size: 1.8rem; }
.mc-av--company { background: #e0e7ff; color: #6366f1; }
.mc-av--has-img { background: transparent !important; }
.mc-av--company.mc-av--has-img { background: var(--bg-card) !important; }
.mc-av__co-icon {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%; color: #6366f1;
}

.profile-menu__name {
  font-size: 13px;
  font-weight: 700;
  color: var(--dark);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-menu__chev { color: var(--muted); }

/* Dropdown */
.profile-menu__dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 230px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  z-index: 100;
  animation: dropFade 0.15s ease;
}

@keyframes dropFade {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.profile-menu__header {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 6px 4px 10px;
}

.profile-menu__fullname {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
}
.profile-menu__role {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.profile-menu__divider {
  height: 1px;
  background: var(--border);
  margin: 6px 0;
}

.profile-menu__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  transition: background 0.12s;
}
.profile-menu__item svg { color: var(--muted); flex-shrink: 0; }
.profile-menu__item:hover { background: var(--soft); }

.profile-menu__logout {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px;
  border-radius: var(--radius-sm);
  border: none;
  background: var(--danger-soft);
  color: var(--danger);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.12s;
}
.profile-menu__logout:hover { background: #fecaca; }

/* ── CONTENT ── */
.content {
  flex: 1;
  padding: 28px 28px;
}

/* ════════════════════════════════════════
   AI DRAWER
════════════════════════════════════════ */
.ai-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.30);
  backdrop-filter: blur(2px);
  z-index: 40;
}

.ai-drawer {
  position: fixed;
  top: 16px;
  right: 16px;
  width: 370px;
  height: calc(100vh - 32px);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  z-index: 50;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: drawerIn 0.22s ease;
}

@keyframes drawerIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

.ai-drawer__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border);
}

.ai-drawer__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 800;
  color: var(--dark);
}
.ai-drawer__title svg { color: var(--accent); }

.ai-drawer__sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.ai-drawer__close {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  background: var(--soft);
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  flex-shrink: 0;
  transition: background 0.12s;
}
.ai-drawer__close:hover { background: var(--border); color: var(--dark); }

.ai-drawer__chips {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 16px;
  width: 100%;
}
.ai-drawer__chip {
  padding: 9px 14px;
  border: 1.5px solid var(--border);
  background: var(--white);
  border-radius: 999px;
  font-family: var(--font);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.12s, background 0.12s, color 0.12s, transform 0.1s;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ai-drawer__chip:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
  transform: translateY(-1px);
}

.ai-drawer__chat {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 16px 20px 20px;
  gap: 12px;
  overflow: hidden;
}

.ai-drawer__msgs {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ai-drawer__welcome {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--muted);
  text-align: center;
  gap: 10px;
}
.ai-drawer__welcome-emoji { font-size: 36px; }
.ai-drawer__welcome p { font-size: 13px; }

.ai-drawer__msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.5;
}
.ai-drawer__msg--user {
  align-self: flex-end;
  background: var(--dark);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.ai-drawer__msg--bot {
  align-self: flex-start;
  background: var(--soft);
  color: var(--text);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}

.ai-drawer__input-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.ai-drawer__input {
  flex: 1;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font);
  font-size: 14px;
  background: var(--soft);
  outline: none;
  transition: border-color 0.15s;
}
.ai-drawer__input:focus {
  border-color: var(--accent);
  background: var(--white);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.ai-drawer__send {
  width: 44px;
  height: 44px;
  border: none;
  background: var(--dark);
  color: #fff;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s;
}
.ai-drawer__send:hover { background: var(--accent); }

/* ════════════════════════════════════════
   DASHBOARD — HOME PAGE
════════════════════════════════════════ */
.dashboard {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.dashboard__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dashboard__title {
  font-size: 26px;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.5px;
}
.dashboard__sub {
  font-size: 14px;
  color: var(--muted);
  margin-top: 5px;
}

.dashboard__all-link {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  padding: 8px 14px;
  border: 1.5px solid var(--accent);
  border-radius: var(--radius-sm);
  transition: background 0.12s;
}
.dashboard__all-link:hover { background: var(--accent-soft); }

/* Jobs Grid */
.jobs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

/* Job Card */
.job-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  box-shadow: var(--shadow-sm);
}
.job-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.job-card__top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.job-card__logo {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.job-card__info { flex: 1; min-width: 0; }

.job-card__title {
  font-size: 15px;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.3;
}

.job-card__meta {
  font-size: 13px;
  color: var(--muted);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.job-card__badge {
  flex-shrink: 0;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--accent-mid);
  white-space: nowrap;
}

/* Tags */
.job-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.job-card__tag {
  background: var(--soft);
  border: 1px solid var(--border);
  color: #475569;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 999px;
}

/* Description */
.job-card__desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* Actions */
.job-card__actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.job-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  border: none;
}

.job-card__btn--primary {
  background: var(--dark);
  color: #fff;
}
.job-card__btn--primary:hover { background: var(--accent); color: #fff; }

.job-card__btn--secondary {
  background: var(--white);
  border: 1.5px solid var(--border);
  color: var(--dark);
}
.job-card__btn--secondary:hover {
  border-color: var(--dark);
  background: var(--soft);
}

.job-card__btn--saved {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

/* Empty State */
.empty-state {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 40px;
  background: var(--white);
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-xl);
  gap: 12px;
  text-align: center;
}
.empty-state__icon { font-size: 48px; }
.empty-state__title { font-size: 18px; font-weight: 800; color: var(--dark); }
.empty-state__sub { font-size: 14px; color: var(--muted); }

/* ════════════════════════════════════════
   GENEL BUTONLAR
════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  text-decoration: none;
}
.btn--primary  { background: var(--dark); color: #fff; }
.btn--primary:hover  { background: var(--accent); color: #fff; }
.btn--secondary { background: var(--white); border: 1.5px solid var(--border); color: var(--dark); }
.btn--secondary:hover { border-color: var(--dark); background: var(--soft); }

/* ════════════════════════════════════════
   PROFİL SAYFASI
════════════════════════════════════════ */
.profile-page {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ── Hero Kartı ── */
.profile-hero {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  position: relative;
}

.profile-hero__cover {
  height: 120px;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 40%, #bfdbfe 100%);
}

.profile-hero__avatar-wrap {
  position: relative;
  display: inline-block;
  margin: -44px 0 0 28px;
}

.profile-hero__edit-btn {
  position: absolute;
  bottom: 0;
  right: -8px;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--white);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.12s, color 0.12s;
  text-decoration: none;
}
.profile-hero__edit-btn:hover { border-color: var(--accent); color: var(--accent); }

.profile-hero__info {
  padding: 14px 28px 0;
}

.profile-hero__name-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.profile-hero__name {
  font-size: 22px;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.3px;
}

.profile-hero__badge {
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent-mid);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}

.profile-hero__bio {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 600px;
}

.profile-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 10px;
}

.profile-hero__meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}
.profile-hero__meta-link {
  text-decoration: none;
  color: var(--accent);
  transition: opacity 0.12s;
}
.profile-hero__meta-link:hover { opacity: 0.75; }

.profile-hero__actions {
  display: flex;
  gap: 10px;
  padding: 20px 28px 24px;
  flex-wrap: wrap;
}

/* ── Grid ── */
.profile-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
  align-items: start;
}

.profile-col { display: flex; flex-direction: column; gap: 16px; }

/* ── Kart ── */
.profile-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.profile-card__title {
  font-size: 15px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 16px;
}

.profile-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.profile-card__count {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  background: var(--soft);
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
}

/* ── İstatistikler ── */
.profile-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.profile-stat {
  background: var(--soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 12px;
  text-align: center;
  transition: border-color 0.12s;
}
.profile-stat:hover { border-color: var(--accent); }

.profile-stat__value {
  font-size: 22px;
  font-weight: 800;
  color: var(--dark);
  line-height: 1;
}

.profile-stat__label {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ── Bilgi Listesi ── */
.profile-info-list { display: flex; flex-direction: column; gap: 10px; }

.profile-info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}
.profile-info-item svg { flex-shrink: 0; color: var(--accent); }
.profile-info-item strong { color: var(--dark); }

/* ── Yetkinlikler ── */
.skill-group { margin-bottom: 16px; }
.skill-group:last-child { margin-bottom: 0; }

.skill-group__label {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 8px;
}

.skill-group__items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid;
  font-size: 12px;
  font-weight: 600;
  transition: transform 0.12s, box-shadow 0.12s;
}
.skill-badge:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }

.skill-badge__name { white-space: nowrap; }

.skill-badge__dots { display: flex; gap: 3px; align-items: center; }

.skill-badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  opacity: 0.4;
}
.skill-badge__dot--filled { opacity: 1; }

/* ── Başvuru Listesi ── */
.application-list { display: flex; flex-direction: column; gap: 0; }

.application-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.12s;
}
.application-item:last-child { border-bottom: none; padding-bottom: 0; }

.application-item__logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.application-item__info { flex: 1; min-width: 0; }

.application-item__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.application-item__meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.application-item__date {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}

.application-item__badge {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ── Boş State ── */
.profile-empty {
  background: var(--white);
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-xl);
  padding: 60px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.profile-empty__icon { font-size: 40px; }
.profile-empty p { font-size: 14px; color: var(--muted); }

/* ════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════ */
@media (max-width: 1100px) {
  .jobs-grid { grid-template-columns: 1fr; }
  .empty-state { grid-column: span 1; }
  .profile-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }

  .sidebar {
    position: fixed;
    left: -100%;
    top: 0;
    z-index: 200;
    width: 260px;
    height: 100vh;
    transition: left 0.3s ease;
    box-shadow: var(--shadow-lg);
  }
  .sidebar.sidebar--open { left: 0; }

  .main { min-height: 100vh; }

  .topbar { padding: 10px 16px; }

  .topbar__search { max-width: 100%; }

  .profile-menu__name { display: none; }

  .content { padding: 20px 16px; }

  .ai-drawer { width: calc(100vw - 32px); }
}

@media (max-width: 560px) {
  .topbar__ai-btn span { display: none; }
  .dashboard__all-link span { display: none; }
  .search__btn { display: none; }
}

/* ════════════════════════════════════════
   PROFİL DÜZENLE SAYFASI
════════════════════════════════════════ */
.pedit {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 800px;
}

.pedit__header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.pedit__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  transition: border-color 0.12s, color 0.12s;
}
.pedit__back:hover { border-color: var(--dark); color: var(--dark); }

.pedit__title {
  font-size: 22px;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.3px;
}

.pedit__alert {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
}
.pedit__alert--ok  { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.pedit__alert--err { background: #fee2e2; color: #dc2626; border: 1px solid #fecaca; }

.pedit__card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.pedit__card-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 16px;
}

.pedit__card-sub {
  font-size: 13px;
  color: var(--muted);
  margin: -10px 0 16px;
}

/* Fotoğraf */
.pedit__photo-row {
  display: flex;
  align-items: center;
  gap: 24px;
}


.pedit__photo-actions { display: flex; flex-direction: column; gap: 8px; }

.pedit__upload-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
}

.pedit__file-input { display: none; }

.pedit__photo-hint {
  font-size: 12px;
  color: var(--muted);
}

/* Grid */
.pedit__grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.pedit__field { display: flex; flex-direction: column; gap: 6px; }
.pedit__field--full { grid-column: span 2; }

.pedit__label {
  font-size: 13px;
  font-weight: 700;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 5px;
}

.pedit__input {
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 14px;
  background: var(--soft);
  color: var(--text);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
}
.pedit__input:focus {
  border-color: var(--accent);
  background: var(--white);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.pedit__textarea {
  min-height: 100px;
  resize: vertical;
}

/* Yetkinlikler */
.pedit__skills-current {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.pedit__skill-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.pedit__select { flex: 1; }

.pedit__select--sm {
  width: 130px;
  flex: none;
}

.pedit__skill-remove {
  width: 34px;
  height: 34px;
  border: 1.5px solid var(--border);
  background: var(--white);
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  flex-shrink: 0;
  transition: border-color 0.12s, color 0.12s, background 0.12s;
}
.pedit__skill-remove:hover { border-color: var(--danger); color: var(--danger); background: var(--danger-soft); }

.pedit__skill-add {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border: 1.5px dashed var(--border);
  background: var(--soft);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.12s, color 0.12s;
}
.pedit__skill-add:hover { border-color: var(--accent); color: var(--accent); }

/* Kaydet Aksiyonlar */
.pedit__actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding-bottom: 20px;
}

@media (max-width: 640px) {
  .pedit__grid-2 { grid-template-columns: 1fr; }
  .pedit__field--full { grid-column: span 1; }
  .pedit__skill-row { flex-wrap: wrap; }
  .pedit__select--sm { width: 100%; }
}
.pp-card__head--between { justify-content: space-between; }

.skill-edit-btn{
  width: 38px; height: 38px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  display:flex;align-items:center;justify-content:center;
  cursor:pointer;
  transition: all .2s;
  color:var(--text-main);
}
.skill-edit-btn:hover{ border-color:#2563eb; color:#2563eb; transform: translateY(-1px); }

.skill-modal-overlay{
  position: fixed; inset:0;
  background: rgba(0,0,0,0.45);
  display:flex; align-items:center; justify-content:center;
  padding: 1rem;
  opacity:0; pointer-events:none;
  transition: opacity .2s;
  z-index: 9999;
}
.skill-modal-overlay.active{ opacity:1; pointer-events:all; }

.skill-modal{
  width:100%; max-width: 720px;
  background:var(--bg-card);
  border-radius: 18px;
  border: 1px solid var(--border-color);
  overflow:hidden;
  box-shadow: 0 25px 60px rgba(0,0,0,.2);
  transform: translateY(14px);
  transition: transform .2s;
  display:flex; flex-direction:column;
  max-height: 82vh;
}
.skill-modal-overlay.active .skill-modal{ transform: translateY(0); }

.skill-modal__head{
  padding: 1rem 1.25rem;
  display:flex; align-items:center; justify-content:space-between;
  border-bottom: 1px solid #f1f5f9;
}
.skill-modal__title{ font-weight:800; color:var(--text-main); }
.skill-modal__subtitle{ font-size:.78rem; color:var(--text-muted); margin-top:2px; }
.skill-modal__close{
  width: 34px; height:34px;
  border-radius: 10px;
  border: none;
  background:var(--hover-bg);
  cursor:pointer;
  font-size: 1.1rem;
}
.skill-modal__close:hover{ background:#e2e8f0; }

.skill-modal__body{ padding: 1rem 1.25rem; overflow:auto; }
.skill-modal__footer{
  padding: .9rem 1.25rem;
  border-top: 1px solid #f1f5f9;
  display:flex; justify-content:flex-end; gap:.6rem;
}

.skill-toolbar{ display:flex; gap:.6rem; margin-bottom:.8rem; flex-wrap:wrap; }
.skill-search{
  flex:1; min-width: 220px;
  padding: .65rem .9rem;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background:var(--input-bg);
}
.skill-filter{
  min-width: 180px;
  padding: .65rem .9rem;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background:var(--input-bg);
}

.skill-list{ display:flex; flex-direction:column; gap:.5rem; }
.skill-row{
  border: 1.5px solid var(--border-color);
  border-radius: 12px;
  padding: .7rem .8rem;
  display:flex; align-items:center; justify-content:space-between;
  gap:.8rem;
  background:var(--bg-card);
}
.skill-row:hover{ border-color:#2563eb; background:#f0f7ff; }
.skill-left{ display:flex; align-items:center; gap:.7rem; min-width:0; flex:1; }
.skill-check{ width: 16px; height:16px; }
.skill-name{ font-weight:700; color:var(--text-main); font-size:.88rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.skill-kat{ font-size:.75rem; color:var(--text-muted); margin-top:2px; }
.skill-right{ display:flex; align-items:center; gap:.5rem; flex-shrink:0; }
.skill-level{
  width: 72px;
  padding: .45rem .55rem;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background:var(--input-bg);
}
.skill-pill{
  font-size:.72rem;
  font-weight:700;
  padding: 3px 8px;
  border-radius: 999px;
  background:var(--hover-bg);
  color:var(--text-muted);
}

/* ✅ Skill Modal */
.skill-modal-overlay{
  position:fixed; inset:0; background:rgba(0,0,0,0.5);
  display:none; align-items:center; justify-content:center;
  z-index:9999; padding:1rem;
}
.skill-modal-overlay.active{ display:flex; }

.skill-modal{
  background:var(--bg-card); border-radius:18px;
  width:100%; max-width:680px;
  max-height:82vh; overflow:hidden;
  display:flex; flex-direction:column;
  border:1px solid var(--border-color);
  box-shadow:0 25px 60px rgba(0,0,0,0.25);
}
.skill-modal__head{
  padding:1rem 1.25rem;
  border-bottom:1px solid #f1f5f9;
  display:flex; align-items:center; justify-content:space-between;
}
.skill-modal__title{ font-weight:800; color:var(--text-main); }
.skill-modal__subtitle{ font-size:.8rem; color:var(--text-muted); margin-top:2px; }
.skill-modal__close{
  width:34px; height:34px; border-radius:10px;
  border:none; background:var(--hover-bg); cursor:pointer;
}
.skill-modal__body{ padding:1rem 1.25rem; overflow:auto; flex:1; }
.skill-modal__footer{
  padding:1rem 1.25rem;
  border-top:1px solid #f1f5f9;
  display:flex; justify-content:flex-end; gap:.6rem;
}

.skill-toolbar{ display:flex; gap:.6rem; margin-bottom:1rem; }
.skill-search{
  flex:1; padding:.65rem .8rem; border-radius:10px;
  border:1px solid var(--border-color); background:var(--input-bg);
}
.skill-filter{
  width:180px; padding:.65rem .8rem; border-radius:10px;
  border:1px solid var(--border-color); background:var(--input-bg);
}

.skill-list{ display:flex; flex-direction:column; gap:.5rem; }
.skill-row{
  display:flex; justify-content:space-between; align-items:center;
  padding:.7rem .85rem; border:1px solid var(--border-color); border-radius:12px;
  background:var(--bg-card);
}
.skill-left{ display:flex; align-items:center; gap:.6rem; min-width:0; }
.skill-name{ font-weight:700; color:var(--text-main); font-size:.9rem; }
.skill-kat{ font-size:.78rem; color:var(--text-muted); }
.skill-right{ display:flex; align-items:center; gap:.6rem; }
.skill-pill{
  font-size:.75rem; padding:3px 10px; border-radius:999px;
  background:var(--hover-bg); color:#475569; border:1px solid var(--border-color);
}
.skill-level{
  padding:.4rem .55rem; border-radius:10px;
  border:1px solid var(--border-color); background:var(--input-bg);
}


/* ── Custom skill ekleme alanı ─────────────────────────────────────────────── */
.skill-custom-section {
  margin-bottom: 1.2rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed var(--border-color);
}
.skill-custom-divider {
  text-align: center;
  margin-bottom: .85rem;
  position: relative;
}
.skill-custom-divider span {
  background: var(--bg-card);
  padding: 0 .6rem;
  font-size: .78rem;
  color: var(--text-subtle);
  position: relative;
  z-index: 1;
}
.skill-custom-form {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  align-items: center;
}
.skill-custom-input {
  flex: 1;
  min-width: 140px;
  padding: .45rem .7rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: .85rem;
  outline: none;
}
.skill-custom-input:focus { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.skill-custom-select {
  padding: .45rem .5rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: .82rem;
  background: var(--input-bg);
  cursor: pointer;
}
.skill-custom-add {
  padding: .45rem .9rem;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: .83rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s;
}
.skill-custom-add:hover { background: var(--brand-dark); }
.skill-custom-msg {
  width: 100%;
  font-size: .8rem;
  margin-top: .35rem;
  padding: .3rem .5rem;
  border-radius: 6px;
}
.skill-custom-msg--ok  { color: var(--success); background: var(--success-soft); border: 1px solid rgba(74, 222, 128, 0.2); }
.skill-custom-msg--err { color: var(--danger); background: var(--danger-soft); border: 1px solid rgba(248, 113, 113, 0.2); }

.post-create-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.post-create-top { display: flex; gap: 1rem; align-items: center; }
.post-form { display: flex; flex: 1; gap: 0.5rem; }
.post-form input {
  flex: 1;
  padding: 0.8rem 1.25rem;
  border-radius: 50px;
  border: 1px solid #cbd5e1;
  background: var(--input-bg);
}

.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: transform 0.2s;
}

.post-header { display: flex; gap: 0.75rem; align-items: center; margin-bottom: 1rem; }
.post-user-info strong { display: block; font-size: 0.95rem; color: var(--text-main); }
.post-date { font-size: 0.75rem; color: var(--text-muted); }
.post-content { color: var(--text-main); line-height: 1.6; font-size: 0.95rem; }

/* ════════════════════════════════════════════════════════════════
   DESIGN SYSTEM — Shared Page Components  (prefix: .ds-)
   Tüm sayfalar (öğrenci & akademisyen) bu component'ları kullanır.
   Tek kaynak — tek görsel dil.
════════════════════════════════════════════════════════════════ */

/* ── Page wrapper ── */
.ds-page {
  background: var(--bg);
  min-height: calc(100vh - 56px);
}

/*
  Full-bleed layout: .content'in padding'ini sıfırla.
  .ds-page kendi iç padding'ini (ds-hero, cn-page) yönetir.
  :has() — Chrome 105+, Firefox 121+, Safari 15.4+ destekli.
*/
.content:has(> .ds-page) {
  padding: 0;
}

/* ann-wrap pages: aynı full-bleed yaklaşımı */
.content:has(> .ann-wrap) {
  padding: 0;
}
/* :has() çalışan tarayıcılarda negatif margin sıfırla */
.content:has(> .ann-wrap) > .ann-wrap {
  margin: 0;
}

/* ── Hero section ── */
.ds-hero {
  background: var(--hero-bg);
  border-bottom: 1px solid var(--hero-border);
  padding: 22px 24px 28px;
  position: relative;
}
.ds-hero::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(37,99,235,.05);
  pointer-events: none;
}
.ds-hero__inner {
  max-width: 1160px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.ds-hero__title {
  font-size: 1.55rem;
  font-weight: 900;
  color: var(--text-main);
  margin: 0 0 4px;
  letter-spacing: -.03em;
  line-height: 1.2;
}
.ds-hero__sub {
  font-size: .88rem;
  color: var(--text-muted);
  margin: 0;
}
/* Hero with side-by-side layout (title left, action/search right) */
.ds-hero--row .ds-hero__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

/* ── Hero integrated search bar ── */
.ds-hero-search {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(37,99,235,.12), 0 1px 4px rgba(2,6,23,.06);
  border: 1.5px solid #dbeafe;
  overflow: hidden;
  height: 50px;
  min-width: 300px;
  max-width: 460px;
  flex: 1;
  transition: box-shadow .2s, border-color .2s;
}
.ds-hero-search:focus-within {
  box-shadow: 0 0 0 3px rgba(37,99,235,.15), 0 6px 24px rgba(37,99,235,.15);
  border-color: #93c5fd;
}
.ds-hero-search__field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  flex: 1;
}
.ds-hero-search__field svg { color: var(--text-subtle); flex-shrink: 0; }
.ds-hero-search__input {
  border: none;
  outline: none;
  font-size: .88rem;
  font-family: var(--font);
  color: var(--text-main);
  background: transparent;
  width: 100%;
}
.ds-hero-search__input::placeholder { color: var(--text-subtle); }
.ds-hero-search__btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 20px;
  height: 100%;
  background: var(--brand-dark, #2563eb);
  color: #fff;
  border: none;
  font-size: .85rem;
  font-weight: 800;
  cursor: pointer;
  transition: background .15s;
  flex-shrink: 0;
  font-family: var(--font);
}
.ds-hero-search__btn:hover { background: #1d4ed8; }

/* ── Body — overlaps hero by 22px ── */
.ds-body {
  max-width: 1160px;
  margin: 0 auto 0;
  padding: 24px 20px 48px;
  position: relative;
  z-index: 1;
}
.ds-body--sm  { max-width: 860px; }
.ds-body--md  { max-width: 1040px; }

/* ── Card ── */
.ds-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 22px 24px;
  transition: transform .18s, box-shadow .18s;
}
.ds-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.ds-card + .ds-card { margin-top: 12px; }
.ds-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0f4f8;
}
.ds-card__title {
  font-size: .9rem;
  font-weight: 800;
  color: var(--text);
}

/* ── Buttons ── */
.ds-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: .6rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: .84rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: background .15s, box-shadow .15s, transform .1s;
  white-space: nowrap;
  font-family: var(--font);
  line-height: 1;
}
.ds-btn:active { transform: scale(.97); }
.ds-btn--primary {
  background: var(--brand-dark, #2563eb);
  color: #fff;
  box-shadow: 0 2px 8px rgba(37,99,235,.2);
}
.ds-btn--primary:hover {
  background: #1a43b5;
  box-shadow: 0 4px 16px rgba(37,99,235,.3);
}
.ds-btn--outline {
  background: transparent;
  color: var(--brand-dark, #2563eb);
  border: 1.5px solid var(--brand-dark, #2563eb);
}
.ds-btn--outline:hover { background: #eff6ff; }
.ds-btn--ghost {
  background: transparent;
  color: var(--muted);
  border: 1.5px solid var(--border);
}
.ds-btn--ghost:hover { background: var(--soft); color: var(--dark); }
.ds-btn--danger {
  background: transparent;
  color: var(--danger);
  border: 1.5px solid #fecaca;
}
.ds-btn--danger:hover { background: var(--danger-soft); }
.ds-btn--sm { padding: .42rem .9rem; font-size: .78rem; }
.ds-btn--lg { padding: .75rem 1.75rem; font-size: .92rem; }

/* ── Badges ── */
.ds-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: .71rem;
  font-weight: 800;
  letter-spacing: .02em;
}
.ds-badge--blue   { background: var(--badge-blue-bg);   color: var(--badge-blue-text); }
.ds-badge--green  { background: var(--badge-green-bg);  color: var(--badge-green-text); }
.ds-badge--yellow { background: var(--badge-yellow-bg); color: var(--badge-yellow-text); }
.ds-badge--red    { background: var(--badge-red-bg);    color: var(--badge-red-text); }
.ds-badge--purple { background: var(--badge-purple-bg); color: var(--badge-purple-text); }
.ds-badge--gray   { background: var(--badge-gray-bg);   color: var(--badge-gray-text); }
.ds-badge--teal   { background: var(--badge-teal-bg);   color: var(--badge-teal-text); }

/* ── Input ── */
.ds-input {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: .88rem;
  font-family: var(--font);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  color: var(--text);
  background: var(--bg-card);
  box-sizing: border-box;
}
.ds-input:focus {
  border-color: var(--brand-dark, #2563eb);
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
.ds-input::placeholder { color: var(--muted); }
textarea.ds-input { resize: vertical; min-height: 100px; }

/* ── Empty state ── */
.ds-empty {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 5rem 2rem;
  text-align: center;
  color: var(--text-subtle);
  box-shadow: var(--shadow-sm);
}
.ds-empty__icon { margin-bottom: 14px; color: var(--text-subtle); }
.ds-empty__title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0 0 6px;
}
.ds-empty__sub {
  font-size: .84rem;
  color: var(--muted);
  margin: 0 0 20px;
}

/* ── Results bar ── */
.ds-results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 0 2px;
}
.ds-results-count { font-size: .82rem; color: var(--muted); }
.ds-results-count strong { color: var(--text); }
.ds-clear-link {
  font-size: .78rem;
  color: var(--danger);
  font-weight: 700;
  text-decoration: none;
}
.ds-clear-link:hover { text-decoration: underline; }

/* ── Responsive ── */
@media (max-width: 600px) {
  .ds-hero { padding: 24px 16px 36px; }
  .ds-hero--row .ds-hero__inner { flex-direction: column; align-items: flex-start; }
  .ds-hero-search { min-width: unset; width: 100%; max-width: 100%; }
  .ds-body { padding: 20px 12px 40px; }
}
/* .content:has(.ds-page) zaten responsive'de de padding: 0 uygular — ayrıca breakpoint gerekmez */
/* ══════════════════════════════════════════════════════════════ */

/* ════════════════════════════════════════
   HAMBURGER MENÜSÜ & SIDEBAR OVERLAY
════════════════════════════════════════ */
.topbar__menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--border);
  background: var(--white);
  border-radius: var(--radius-sm);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  flex-shrink: 0;
  transition: border-color 0.15s, color 0.15s;
}
.topbar__menu-btn:hover { border-color: var(--dark); color: var(--dark); }
.dark-mode .topbar__menu-btn {
  background: #1e1e30 !important;
  border-color: #2a2a3d !important;
  color: var(--text-subtle) !important;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 199;
  backdrop-filter: blur(2px);
}
.sidebar-overlay--visible { display: block; }

/* ════════════════════════════════════════
   MOBİL RESPONSIVE — GENİŞLETİLMİŞ
════════════════════════════════════════ */

/* Yatay taşma engeli — sadece html üzerinde (body'de iOS scroll bozulur) */
html { overflow-x: hidden; }

@media (max-width: 900px) {
  /* Hamburger göster */
  .topbar__menu-btn { display: flex; }

  /* Topbar arama wrap — tam genişlik */
  .topbar__search-wrap { max-width: none; }

  /* AI Drawer — dar kenarlarda */
  .ai-drawer {
    top: 12px;
    right: 12px;
    bottom: 12px;
    height: auto;
    border-radius: var(--radius-lg);
  }

  /* Bildirim dropdown — sağa taşmasın */
  .notif-drop { right: 0; }

  /* Karanlık mod butonu konumu */
  #darkBtn { left: 16px; bottom: 16px; }

  /* Dashboard başlık font */
  .dashboard__title { font-size: 20px; }

  /* Profil menü dropdown — sağa taşmasın */
  .profile-menu__dropdown { right: 0; max-width: calc(100vw - 32px); }

  /* Profile hero daha kompakt */
  .profile-hero__info { padding: 12px 20px 0; }
  .profile-hero__actions { padding: 14px 20px 20px; }
}

@media (max-width: 767.98px) {
  .profile-menu__name, .profile-menu__chev, .topbar__ai-btn-text, .search__btn { display: none !important; }
  .profile-menu__btn { padding: 4px; border: none; background: transparent; }
  .topbar__ai-btn { padding: 8px; border-radius: 50%; width: 36px; height: 36px; justify-content: center; align-items: center; }
  #darkBtn { left: auto !important; right: 16px !important; bottom: 16px !important; }
}

@media (max-width: 640px) {
  /* Topbar daha kompakt */
  .topbar { padding: 8px 12px; gap: 10px; }
  .topbar__actions { gap: 6px; }

  /* İçerik padding azalt */
  .content { padding: 14px 12px; }

  /* AI butonu metni zaten gizli (560px'de), ikon bırak */
  .topbar__ai-btn { padding: 7px 9px; }

  /* AI Drawer — küçük ekranda tam ekran */
  .ai-drawer {
    top: 0; right: 0; bottom: 0; left: 0;
    width: 100%; height: 100%;
    border-radius: 0;
  }

  /* Bildirim dropdown — dar ekranlarda tam genişlik */
  .notif-drop { width: calc(100vw - 24px); right: -12px; }

  /* Dashboard header — wraplar */
  .dashboard__header { flex-wrap: wrap; gap: 8px; }
  .dashboard__title { font-size: 17px; }
  .dashboard__sub { font-size: 13px; }

  /* İş kartı aksiyonları wrap */
  .job-card__actions { flex-wrap: wrap; }
  .job-card__btn { flex: 1; min-width: 120px; justify-content: center; }

  /* Profil hero */
  .profile-hero__info { padding: 10px 14px 0; }
  .profile-hero__actions { padding: 12px 14px 16px; gap: 8px; flex-wrap: wrap; }
  .profile-hero__name { font-size: 18px; }
  .profile-hero__cover { height: 90px; }

  /* Profil düzenleme kaydet — alt alta */
  .pedit__actions { flex-direction: column-reverse; }

  /* Boş state daha küçük */
  .profile-empty { padding: 40px 20px; }
  .empty-state { padding: 50px 20px; }

  /* Karanlık mod butonu küçük */
  #darkBtn { padding: 8px 12px; font-size: 12px; }
  #darkBtn #darkText { display: none; }
}

@media (max-width: 420px) {
  /* Çok küçük telefonlar (320-420px) */
  .topbar { padding: 8px 10px; gap: 8px; }
  .content { padding: 12px 10px; }

  /* Profil hero küçük */
  .profile-hero__name { font-size: 16px; }
  .profile-hero__avatar { width: 72px; height: 72px; font-size: 24px; }
  .profile-hero__avatar-wrap { margin: -36px 0 0 16px; }

  /* Stats 2 sütun koru */
  .profile-stats { grid-template-columns: 1fr 1fr; }

  /* İş butonu tam genişlik */
  .job-card__btn { width: 100%; justify-content: center; }

  /* Topbar arama — çok küçük ekranda gizle, sadece ikon göster */
  .search__input { font-size: 13px; }
}
/* ── AI Günlük Öneri Kartı (shared component) ── */
.ai-suggestions-card {
  background: #f5f3ff;
  border: 1px solid #e0e7ff;
  border-radius: 16px;
  padding: 18px;
  transition: box-shadow .2s, border-color .2s;
}
.ai-suggestions-card:hover {
  box-shadow: 0 4px 16px rgba(99,102,241,.14);
  border-color: #c7d2fe;
}
.ai-sug__head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.ai-sug__title {
  display: flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 800; color: #4f46e5; letter-spacing: -.01em;
}
.ai-sug__icon {
  width: 28px; height: 28px; background: rgba(99,102,241,.1);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
}
.ai-sug__refresh {
  background: rgba(99,102,241,.08); border: none; border-radius: 7px;
  width: 26px; height: 26px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .15s; color: #818cf8;
}
.ai-sug__refresh:hover { background: rgba(99,102,241,.18); }
.ai-sug__body { min-height: 60px; margin-bottom: 14px; }
.ai-sug__skeleton {
  display: flex; flex-direction: column; gap: 8px;
}
.ai-sug__sk {
  height: 10px; border-radius: 6px; background: rgba(99,102,241,.1);
  animation: aiSugPulse 1.4s ease-in-out infinite;
}
.ai-sug__sk:nth-child(2) { width: 70%; animation-delay: .2s; }
.ai-sug__sk:nth-child(3) { width: 80%; animation-delay: .4s; }
@keyframes aiSugPulse { 0%,100%{opacity:.4} 50%{opacity:.9} }
.ai-sug__item {
  display: flex; align-items: flex-start; gap: 7px;
  padding: 8px 10px;
  background: rgba(99,102,241,.06);
  border-left: 2px solid #818cf8;
  border-radius: 0 8px 8px 0;
  margin-bottom: 6px;
}
.ai-sug__item:last-child { margin-bottom: 0; }
.ai-sug__bullet { color: #818cf8; font-size: .65rem; flex-shrink: 0; margin-top: 3px; }
.ai-sug__text { font-size: .76rem; color: #3730a3; line-height: 1.5; }
.ai-sug__cta {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  background: rgba(99,102,241,.1); border: 1px solid rgba(99,102,241,.2);
  color: #4f46e5; font-size: .73rem; font-weight: 700; padding: 7px 14px;
  border-radius: 9px; text-decoration: none; transition: background .15s;
  width: 100%; box-sizing: border-box; cursor: pointer; font-family: inherit;
}
.ai-sug__cta:hover { background: rgba(99,102,241,.18); }

.mention-link {
  color: #6366f1; /* Modern Indigo (mavi/mor blend) */
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease, text-decoration 0.15s ease;
  display: inline;
  cursor: pointer;
}
.mention-link:hover {
  color: #4f46e5;
  text-decoration: underline;
}
.dark-mode .mention-link {
  color: #a5b4fc; /* Light Indigo for dark mode readability */
}
.dark-mode .mention-link:hover {
  color: #c7d2fe;
}

.mention-suggestions-dropdown {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-height: 220px;
  overflow-y: auto;
  z-index: 99999;
  width: 280px;
  display: none;
  animation: dropFade 0.15s ease;
}
.mention-suggestion-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  cursor: pointer;
  transition: background 0.12s;
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}
.mention-suggestion-item:last-child {
  border-bottom: none;
}
.mention-suggestion-item:hover,
.mention-suggestion-item.is-selected {
  background: var(--hover-bg);
}
.mention-suggestion-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}
.mention-suggestion-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mention-suggestion-role {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: capitalize;
}
[data-theme="dark"] .mention-suggestion-item,
.dark-mode .mention-suggestion-item {
  border-bottom-color: rgba(255, 255, 255, 0.05);
}

/* ═══════════════════════════════════════════════════════════
   DEPRECATED OVERRIDES (MIGRATED FROM DARK.CSS)
   ═══════════════════════════════════════════════════════════ */

/* Tarayıcı varsayılanları */
[data-theme="dark"] input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="submit"]):not([type="button"]),
[data-theme="dark"] textarea,
[data-theme="dark"] select,
.dark-mode input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="submit"]):not([type="button"]),
.dark-mode textarea,
.dark-mode select {
  background-color: var(--input-bg) !important;
  border-color: var(--border) !important;
  color: var(--text) !important;
  color-scheme: dark;
}
[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder,
.dark-mode input::placeholder,
.dark-mode textarea::placeholder { color: var(--muted) !important; }

[data-theme="dark"] input:focus,
[data-theme="dark"] textarea:focus,
[data-theme="dark"] select:focus,
.dark-mode input:focus,
.dark-mode textarea:focus,
.dark-mode select:focus {
  border-color: var(--brand-dark) !important;
  box-shadow: 0 0 0 2px var(--brand-soft) !important;
  outline: none !important;
}
[data-theme="dark"] input[type="checkbox"],
[data-theme="dark"] input[type="radio"],
.dark-mode input[type="checkbox"],
.dark-mode input[type="radio"] { accent-color: var(--brand) !important; }

/* Post medya görselleri */
[data-theme="dark"] .pf-post img:not([class*="avatar"]):not([style*="border-radius:50"]):not([style*="border-radius: 50"]),
[data-theme="dark"] .pf-media img,
[data-theme="dark"] .pf-media video,
.dark-mode .pf-post img:not([class*="avatar"]):not([style*="border-radius:50"]):not([style*="border-radius: 50"]),
.dark-mode .pf-media img,
.dark-mode .pf-media video {
  opacity: 0.90;
  border-radius: 10px;
  border: 1px solid var(--border);
}

/* KF (Kariyer Fırsatı) kartı */
[data-theme="dark"] .pf-post--kf,
.dark-mode .pf-post--kf {
  background: linear-gradient(to right, rgba(124,58,237,0.07) 0%, var(--bg-card) 65%) !important;
  border-left-color: #a78bfa !important;
}

/* Devamını oku fade */
[data-theme="dark"] .pf-post__fade,
.dark-mode .pf-post__fade {
  background: linear-gradient(transparent, var(--bg-card)) !important;
}

/* Yorum alanı focus */
[data-theme="dark"] .pf-comment-field,
[data-theme="dark"] .pf-comment-field:focus-within,
.dark-mode .pf-comment-field,
.dark-mode .pf-comment-field:focus-within {
  background-color: var(--soft) !important;
  border-color: var(--border) !important;
}
[data-theme="dark"] .pf-comment-field:focus-within,
.dark-mode .pf-comment-field:focus-within {
  border-color: var(--brand-dark) !important;
}

/* Akademisyen profil sayfası */
[data-theme="dark"] .ap-hero,
.dark-mode .ap-hero { background: var(--bg-card) !important; border-color: var(--border) !important; }
[data-theme="dark"] .ap-hero__cover::after,
.dark-mode .ap-hero__cover::after { background: linear-gradient(to bottom, transparent, var(--bg-card)) !important; }
[data-theme="dark"] .ap-hero__stats,
.dark-mode .ap-hero__stats { border-top-color: var(--border) !important; }
[data-theme="dark"] .ap-hstat + .ap-hstat::before,
.dark-mode .ap-hstat + .ap-hstat::before { background: var(--border) !important; }
[data-theme="dark"] .ap-hstat__val,
.dark-mode .ap-hstat__val { color: var(--text) !important; }
[data-theme="dark"] .ap-hstat__lbl,
.dark-mode .ap-hstat__lbl { color: var(--muted) !important; }
[data-theme="dark"] .ap-tabs,
.dark-mode .ap-tabs { background: var(--bg-card) !important; border-color: var(--border) !important; }
[data-theme="dark"] .ap-tab,
.dark-mode .ap-tab { color: var(--muted) !important; background: transparent !important; }
[data-theme="dark"] .ap-tab:hover,
.dark-mode .ap-tab:hover { color: var(--brand) !important; background: var(--soft) !important; }
[data-theme="dark"] .ap-tab.active,
.dark-mode .ap-tab.active { color: var(--brand) !important; border-bottom-color: var(--brand) !important; background: var(--soft) !important; }
[data-theme="dark"] .ap-tab__count,
.dark-mode .ap-tab__count { background: var(--soft) !important; color: var(--muted) !important; }
[data-theme="dark"] .ap-tab.active .ap-tab__count,
.dark-mode .ap-tab.active .ap-tab__count { background: var(--brand-soft) !important; color: var(--brand) !important; }
[data-theme="dark"] .ap-card,
.dark-mode .ap-card { background: var(--bg-card) !important; border-color: var(--border) !important; }
[data-theme="dark"] .ap-card__head,
.dark-mode .ap-card__head { border-bottom-color: var(--border) !important; }
[data-theme="dark"] .ap-card__title,
.dark-mode .ap-card__title { color: var(--text) !important; }
[data-theme="dark"] .ap-card__action,
.dark-mode .ap-card__action { color: var(--brand) !important; }
[data-theme="dark"] .ap-card__pill,
.dark-mode .ap-card__pill { background: var(--soft) !important; border-color: var(--border) !important; color: var(--muted) !important; }
[data-theme="dark"] .ap-info-row,
.dark-mode .ap-info-row { color: var(--muted) !important; border-bottom-color: var(--border) !important; }
[data-theme="dark"] .ap-info-row strong,
.dark-mode .ap-info-row strong { color: var(--text) !important; }
[data-theme="dark"] .ap-info-row__icon,
.dark-mode .ap-info-row__icon { background: var(--soft) !important; color: var(--muted) !important; }
[data-theme="dark"] .ap-btn--dark,
.dark-mode .ap-btn--dark { background: var(--soft) !important; color: var(--text) !important; border-color: var(--border) !important; }
[data-theme="dark"] .ap-btn--outline,
.dark-mode .ap-btn--outline { color: var(--muted) !important; border-color: var(--border) !important; background: transparent !important; }
[data-theme="dark"] .ap-btn--outline:hover,
.dark-mode .ap-btn--outline:hover { border-color: var(--brand-dark) !important; color: var(--brand) !important; background: var(--brand-soft) !important; }
[data-theme="dark"] .ap-btn--ghost,
.dark-mode .ap-btn--ghost { background: var(--soft) !important; color: var(--text) !important; border-color: var(--border) !important; }
[data-theme="dark"] .ap-btn--primary,
.dark-mode .ap-btn--primary { background: var(--brand-dark) !important; }
[data-theme="dark"] .ap-avatar,
.dark-mode .ap-avatar { border-color: var(--bg-card) !important; }
[data-theme="dark"] .edu-yil,
.dark-mode .edu-yil { background: var(--soft) !important; border-color: var(--border) !important; color: var(--muted) !important; }
[data-theme="dark"] .edu-dot,
.dark-mode .edu-dot { border-color: var(--bg-card) !important; }
[data-theme="dark"] .gorev-item,
.dark-mode .gorev-item { border-bottom-color: var(--border) !important; }
[data-theme="dark"] .gorev-badge,
.dark-mode .gorev-badge { background: var(--success-soft) !important; color: var(--success) !important; border-color: rgba(74,222,128,0.22) !important; }

/* Bağlantılar sayfası tab çubuğu */
[data-theme="dark"] .cn-tabs,
.dark-mode .cn-tabs { background: var(--soft) !important; }
[data-theme="dark"] .cn-tab,
.dark-mode .cn-tab { color: var(--muted) !important; }
[data-theme="dark"] .cn-tab:hover,
.dark-mode .cn-tab:hover { background: rgba(255,255,255,0.06) !important; color: var(--text) !important; }
[data-theme="dark"] .cn-tab.is-active,
.dark-mode .cn-tab.is-active { background: var(--bg-card) !important; color: var(--brand) !important; box-shadow: 0 2px 8px rgba(0,0,0,0.30) !important; }
[data-theme="dark"] .cn-tab.is-active svg,
.dark-mode .cn-tab.is-active svg { color: var(--brand) !important; }
[data-theme="dark"] .cn-tab__badge,
.dark-mode .cn-tab__badge { background: var(--soft) !important; color: var(--muted) !important; }
[data-theme="dark"] .cn-tab__badge--alert,
.dark-mode .cn-tab__badge--alert { background: var(--danger-soft) !important; color: var(--danger) !important; }
[data-theme="dark"] .cn-av,
.dark-mode .cn-av { border-color: var(--bg-card) !important; }
[data-theme="dark"] .cn-new-badge,
.dark-mode .cn-new-badge { border-color: var(--bg-card) !important; }
[data-theme="dark"] .cn-section-title,
.dark-mode .cn-section-title { color: var(--muted) !important; }
[data-theme="dark"] .cn-section-incoming,
.dark-mode .cn-section-incoming { background: linear-gradient(135deg, rgba(37,99,235,.10), rgba(37,99,235,.05)) !important; border-color: rgba(99,102,241,.3) !important; }
[data-theme="dark"] .cn-section-outgoing,
.dark-mode .cn-section-outgoing { background: rgba(245,158,11,.06) !important; border-color: rgba(245,158,11,.2) !important; }

/* Dropdown / modal */
[data-theme="dark"] .profile-menu__dropdown,
[data-theme="dark"] .search-drop,
[data-theme="dark"] .notif-drop,
[data-theme="dark"] .jb-filter-panel,
[data-theme="dark"] .pf-post__dropdown,
[data-theme="dark"] .cn-kebab-menu,
.dark-mode .profile-menu__dropdown,
.dark-mode .search-drop,
.dark-mode .notif-drop,
.dark-mode .jb-filter-panel,
.dark-mode .pf-post__dropdown,
.dark-mode .cn-kebab-menu {
  background-color: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  box-shadow: var(--shadow-lg) !important;
}
[data-theme="dark"] .pf-post__drop-item:hover,
[data-theme="dark"] .profile-menu__item:hover,
[data-theme="dark"] .sd-item:hover,
[data-theme="dark"] .notif-item:hover,
[data-theme="dark"] .cn-kebab-item:hover,
.dark-mode .pf-post__drop-item:hover,
.dark-mode .profile-menu__item:hover,
.dark-mode .sd-item:hover,
.dark-mode .notif-item:hover,
.dark-mode .cn-kebab-item:hover { background-color: var(--soft) !important; }
[data-theme="dark"] .cn-kebab-item--danger,
.dark-mode .cn-kebab-item--danger { color: var(--danger) !important; }
[data-theme="dark"] .cn-kebab-item--danger:hover,
.dark-mode .cn-kebab-item--danger:hover { background: var(--danger-soft) !important; }

/* Modal / skill panel */
[data-theme="dark"] .skill-modal,
[data-theme="dark"] .sh-modal,
[data-theme="dark"] .modal,
.dark-mode .skill-modal,
.dark-mode .sh-modal,
.dark-mode .modal { background-color: var(--bg-card) !important; border: 1px solid var(--border) !important; }
[data-theme="dark"] .skill-modal__head,
[data-theme="dark"] .sh-modal__head,
.dark-mode .skill-modal__head,
.dark-mode .sh-modal__head { background-color: var(--soft) !important; border-bottom: 1px solid var(--border) !important; }
[data-theme="dark"] .skill-modal__footer,
[data-theme="dark"] .sh-modal__foot,
.dark-mode .skill-modal__footer,
.dark-mode .sh-modal__foot { background-color: var(--soft) !important; border-top: 1px solid var(--border) !important; }

/* Toast / alert */
[data-theme="dark"] .pedit__alert--ok,
[data-theme="dark"] .jd-toast-item--success,
[data-theme="dark"] .adm-alert-success,
.dark-mode .pedit__alert--ok,
.dark-mode .jd-toast-item--success,
.dark-mode .adm-alert-success {
  background-color: var(--success-soft) !important; color: var(--success) !important; border-color: rgba(74,222,128,0.22) !important;
}
[data-theme="dark"] .pedit__alert--err,
[data-theme="dark"] .jd-toast-item--danger,
[data-theme="dark"] .adm-alert-danger,
.dark-mode .pedit__alert--err,
.dark-mode .jd-toast-item--danger,
.dark-mode .adm-alert-danger {
  background-color: var(--danger-soft) !important; color: var(--danger) !important; border-color: rgba(248,113,113,0.22) !important;
}

/* Mesajlaşma baloncukları */
[data-theme="dark"] .msg-bubble--me,
.dark-mode .msg-bubble--me { background-color: var(--brand-dark) !important; color: #fff !important; }
[data-theme="dark"] .msg-bubble--them,
.dark-mode .msg-bubble--them { background-color: var(--soft) !important; border: 1px solid var(--border) !important; }

/* Bildirim okunmamış */
[data-theme="dark"] .notif-item.unread,
.dark-mode .notif-item.unread { background-color: rgba(59,130,246,0.06) !important; }

/* AI suggestions card */
[data-theme="dark"] .ai-suggestions-card,
.dark-mode .ai-suggestions-card {
  background: linear-gradient(145deg, #1e293b 0%, #1a253a 100%) !important;
  border: 1px solid rgba(96,165,250,0.14) !important;
}

/* Hero bölümleri */
[data-theme="dark"] .ds-hero,
[data-theme="dark"] .cn-hero,
[data-theme="dark"] .ann-hero,
.dark-mode .ds-hero,
.dark-mode .cn-hero,
.dark-mode .ann-hero {
  background: var(--hero-bg) !important;
  border-bottom: 1px solid var(--border) !important;
}

/* Profil kapak */
[data-theme="dark"] .profile-hero__cover,
.dark-mode .profile-hero__cover {
  background: linear-gradient(135deg, #0c1527 0%, #1a2540 60%, var(--bg-card)) !important;
}
[data-theme="dark"] .profile-card__header,
.dark-mode .profile-card__header {
  background: linear-gradient(135deg, var(--soft), var(--bg-card)) !important;
}

/* Crop modal */
[data-theme="dark"] #mc-crop-modal,
.dark-mode #mc-crop-modal { background-color: rgba(0,0,0,0.70) !important; }
[data-theme="dark"] #mc-crop-dialog,
.dark-mode #mc-crop-dialog { background-color: var(--bg-card) !important; box-shadow: var(--shadow-lg) !important; }
[data-theme="dark"] #mc-crop-dialog button:not(#mc-crop-apply),
.dark-mode #mc-crop-dialog button:not(#mc-crop-apply) {
  background-color: var(--soft) !important; border: 1px solid var(--border) !important; color: var(--text) !important;
}

/* Inline style attribute overrides */
[data-theme="dark"] [style*="background:#fff"],
[data-theme="dark"] [style*="background: #fff"],
[data-theme="dark"] [style*="background-color:#fff"],
[data-theme="dark"] [style*="background-color: #fff"],
[data-theme="dark"] [style*="background:white"],
[data-theme="dark"] [style*="background: white"],
.dark-mode [style*="background:#fff"],
.dark-mode [style*="background: #fff"],
.dark-mode [style*="background-color:#fff"],
.dark-mode [style*="background-color: #fff"],
.dark-mode [style*="background:white"],
.dark-mode [style*="background: white"] { background-color: var(--bg-card) !important; }

[data-theme="dark"] [style*="background:#f8fafc"],
[data-theme="dark"] [style*="background: #f8fafc"],
[data-theme="dark"] [style*="background:#f1f5f9"],
[data-theme="dark"] [style*="background: #f1f5f9"],
[data-theme="dark"] [style*="background:#f9fafb"],
[data-theme="dark"] [style*="background: #f9fafb"],
.dark-mode [style*="background:#f8fafc"],
.dark-mode [style*="background: #f8fafc"],
.dark-mode [style*="background:#f1f5f9"],
.dark-mode [style*="background: #f1f5f9"],
.dark-mode [style*="background:#f9fafb"],
.dark-mode [style*="background: #f9fafb"] { background-color: var(--soft) !important; }

[data-theme="dark"] [style*="color:#0f172a"],
[data-theme="dark"] [style*="color: #0f172a"],
[data-theme="dark"] [style*="color:#1e293b"],
[data-theme="dark"] [style*="color: #1e293b"],
[data-theme="dark"] [style*="color:#334155"],
[data-theme="dark"] [style*="color: #334155"],
.dark-mode [style*="color:#0f172a"],
.dark-mode [style*="color: #0f172a"],
.dark-mode [style*="color:#1e293b"],
.dark-mode [style*="color: #1e293b"],
.dark-mode [style*="color:#334155"],
.dark-mode [style*="color: #334155"] { color: var(--text) !important; }

[data-theme="dark"] [style*="color:#64748b"],
[data-theme="dark"] [style*="color: #64748b"],
[data-theme="dark"] [style*="color:#94a3b8"],
[data-theme="dark"] [style*="color: #94a3b8"],
.dark-mode [style*="color:#64748b"],
.dark-mode [style*="color: #64748b"],
.dark-mode [style*="color:#94a3b8"],
.dark-mode [style*="color: #94a3b8"] { color: var(--muted) !important; }

[data-theme="dark"] [style*="border:1px solid #e"],
[data-theme="dark"] [style*="border: 1px solid #e"],
[data-theme="dark"] [style*="border-bottom:1px solid #e"],
[data-theme="dark"] [style*="border-bottom: 1px solid #e"],
.dark-mode [style*="border:1px solid #e"],
.dark-mode [style*="border: 1px solid #e"],
.dark-mode [style*="border-bottom:1px solid #e"],
.dark-mode [style*="border-bottom: 1px solid #e"] { border-color: var(--border) !important; }

/* Uyarı kutuları (askıya alınmış hesap vs.) */
[data-theme="dark"] [style*="background:#fff7ed"],
[data-theme="dark"] [style*="background: #fff7ed"],
.dark-mode [style*="background:#fff7ed"],
.dark-mode [style*="background: #fff7ed"] { background-color: var(--warning-soft) !important; border-color: rgba(251,191,36,0.22) !important; }

/* Scrollbar */
[data-theme="dark"] * { scrollbar-color: rgba(255,255,255,0.10) transparent; }
.dark-mode * { scrollbar-color: rgba(255,255,255,0.10) transparent; }
[data-theme="dark"] ::-webkit-scrollbar-track,
.dark-mode ::-webkit-scrollbar-track { background: transparent; }
[data-theme="dark"] ::-webkit-scrollbar-thumb,
.dark-mode ::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.10); border-radius: 4px; }
[data-theme="dark"] ::-webkit-scrollbar-thumb:hover,
.dark-mode ::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.18); }


