/* ═══════════════════════════════════════════════════
   Telegram Panel — Navy Blue Premium Dark Theme
═══════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Colors — Navy Blue Premium */
  --bg:           #0b1626;
  --bg-card:      #1b2e4a;
  --bg-surface:   #243a5c;
  --bg-hover:     #2e4870;
  --bg-input:     #162238;
  --sidebar-bg:   #091220;

  /* Brand — Vivid Blue */
  --blue:         #4d9fff;
  --blue-dark:    #1d6fe0;
  --blue-light:   #a5d0ff;
  --blue-glow:    rgba(77,159,255,.28);
  --gradient:     linear-gradient(135deg, #4d9fff 0%, #00d4ff 100%);
  --gradient-soft:linear-gradient(135deg, rgba(77,159,255,.20) 0%, rgba(0,212,255,.20) 100%);

  /* Text */
  --text:         #ffffff;
  --text-sub:     #b0ccea;
  --text-muted:   #7aa4c8;

  /* Border */
  --border:       rgba(77,159,255,.30);
  --border-focus: rgba(77,159,255,.70);

  /* Status */
  --green:        #34d399;
  --yellow:       #fbbf24;
  --red:          #f87171;
  --purple:       #c084fc;
  --cyan:         #38bdf8;

  /* Sizes */
  --sidebar-w:    250px;
  --navbar-h:     58px;
  --radius:       12px;
  --radius-sm:    8px;
  --radius-lg:    16px;

  /* Shadows */
  --shadow:       0 4px 24px rgba(0,0,0,.60);
  --shadow-card:  0 2px 16px rgba(0,0,0,.50);
  --glow-blue:    0 0 20px rgba(79,157,255,.22);

  /* Aliases */
  --tg-blue:      #2390f0;
  --danger:       var(--red);
  --success:      var(--green);
  --text-primary: #e8f1ff;
  --bg-body:      #060d1b;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 13.5px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(79,157,255,.18); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(79,157,255,.32); }

/* ══════════════════════════════════════════════════
   SIDEBAR
══════════════════════════════════════════════════ */
.sidebar {
  position: fixed; top: 0; left: 0;
  width: var(--sidebar-w); height: 100vh;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  z-index: 1000;
  transition: transform .25s cubic-bezier(.4,0,.2,1);
  overflow: hidden;
}
.sidebar::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: var(--gradient);
  opacity: .7;
}

.sidebar-header {
  padding: 0 18px;
  height: var(--navbar-h);
  display: flex; align-items: center; gap: 10px;
  border-bottom: 1px solid var(--border);
}
.sidebar-logo {
  width: 34px; height: 34px;
  background: var(--gradient);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; color: #fff;
  box-shadow: 0 4px 12px rgba(79,157,255,.35);
  flex-shrink: 0;
}
.sidebar-brand {
  font-size: 15px; font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sidebar-menu { flex: 1; overflow-y: auto; padding: 8px 0 8px; }

.sidebar-section { margin-bottom: 2px; }
.sidebar-section-title {
  font-size: 10px; font-weight: 700;
  letter-spacing: .10em; text-transform: uppercase;
  color: var(--text-muted);
  padding: 12px 20px 5px;
}
.sidebar-link {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 12px;
  color: var(--text-sub);
  text-decoration: none;
  font-size: 13px; font-weight: 400;
  border-radius: 6px;
  margin: 1px 8px;
  position: relative;
  transition: color .15s, background .15s;
}
.sidebar-link i { font-size: 15px; width: 18px; text-align: center; flex-shrink: 0; opacity: .8; }
.sidebar-link:hover {
  background: rgba(79,157,255,.08);
  color: var(--text);
}
.sidebar-link:hover i { opacity: 1; }
.sidebar-link.active {
  background: rgba(79,157,255,.14);
  color: var(--blue-light);
  font-weight: 500;
}
.sidebar-link.active i { opacity: 1; color: var(--blue); }
.sidebar-link.active::before {
  content: '';
  position: absolute; left: 0; top: 5px; bottom: 5px;
  width: 3px; background: var(--gradient);
  border-radius: 0 3px 3px 0;
}

.sidebar-badge {
  margin-left: auto;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 20px;
  line-height: 1.6;
}

.sidebar-user-footer {
  padding: 12px 14px;
  border-top: 1px solid var(--border);
}
.sidebar-user-info {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  background: var(--bg-surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  margin-bottom: 8px;
}
.user-avatar {
  width: 34px; height: 34px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: #fff;
  flex-shrink: 0;
}
.user-name { font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.2; }
.user-role {
  font-size: 10px; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .05em;
}
.sidebar-logout-btn {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  width: 100%; padding: 8px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted); font-size: 12px; cursor: pointer;
  transition: all .15s; text-decoration: none; font-family: inherit;
}
.sidebar-logout-btn:hover {
  background: rgba(248,113,113,.08);
  border-color: rgba(248,113,113,.3);
  color: var(--red);
}

.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.65); z-index: 999; backdrop-filter: blur(2px); }

/* ══════════════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════════════ */
.top-navbar {
  position: fixed; top: 0; left: var(--sidebar-w); right: 0;
  height: var(--navbar-h);
  background: rgba(9,18,32,.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px; z-index: 900;
  display: flex; align-items: center; justify-content: space-between;
}
.sidebar-toggle-btn {
  background: none; border: none; cursor: pointer;
  color: var(--text-sub); font-size: 20px; padding: 4px 6px;
  display: flex; align-items: center; border-radius: 6px;
  transition: background .15s;
}
.sidebar-toggle-btn:hover { background: var(--bg-hover); color: var(--text); }
.top-navbar-brand { font-weight: 700; font-size: 14px; color: var(--text); display: flex; align-items: center; gap: 8px; }
.navbar-user-chip {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 20px;
}
.navbar-user-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 6px var(--green); flex-shrink: 0; }
.navbar-user-name { font-size: 12px; font-weight: 500; color: var(--text-sub); }

.navbar-icon-btn {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-sub);
  font-size: 16px;
  text-decoration: none;
  transition: background .15s, color .15s;
  position: relative;
}
.navbar-icon-btn:hover { background: var(--bg-hover); color: var(--text); }
.navbar-notif-dot {
  position: absolute; top: 2px; right: 2px;
  min-width: 16px; height: 16px;
  background: var(--red); color: #fff;
  font-size: 9px; font-weight: 700;
  border-radius: 20px; padding: 0 3px;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
}
.navbar-user {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 20px;
}
.navbar-user-avatar {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.navbar-role-badge {
  font-size: 10px; padding: 1px 7px;
  border-radius: 20px;
  background: rgba(79,157,255,.14);
  color: var(--blue-light);
  font-weight: 500;
}

/* ══════════════════════════════════════════════════
   MAIN
══════════════════════════════════════════════════ */
.main-content { margin-left: var(--sidebar-w); margin-top: var(--navbar-h); min-height: calc(100vh - var(--navbar-h)); }
.content-wrapper { padding: 24px; max-width: 1440px; }
.page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.page-title {
  font-size: 20px; font-weight: 700; margin: 0;
  background: linear-gradient(135deg, #e8f1ff 0%, #93c5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.page-subtitle { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* ══════════════════════════════════════════════════
   CARDS
══════════════════════════════════════════════════ */
.card {
  background: var(--bg-card);
  border: 1px solid rgba(77,159,255,.35);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.08);
}
.card-header {
  padding: 13px 18px;
  background: rgba(77,159,255,.10) !important;
  border-bottom: 1px solid rgba(77,159,255,.22);
  font-size: 13px; font-weight: 600; color: var(--text);
  display: flex; align-items: center; justify-content: space-between;
}
.card-body { padding: 18px; }
.card:hover { border-color: rgba(77,159,255,.55); box-shadow: 0 6px 28px rgba(0,0,0,.60), 0 0 0 1px rgba(77,159,255,.15); }

/* Stat Cards */
.stat-card {
  position: relative; overflow: hidden;
  cursor: default;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,.50), var(--glow-blue);
}
.stat-card::after {
  content: ''; position: absolute;
  top: -40px; right: -40px;
  width: 120px; height: 120px;
  border-radius: 50%;
  opacity: .04; pointer-events: none;
}
.stat-card-blue::after  { background: var(--blue); }
.stat-card-green::after { background: var(--green); }
.stat-card-yellow::after{ background: var(--yellow); }
.stat-card-purple::after{ background: var(--purple); }

.stat-icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; flex-shrink: 0;
}
.stat-icon-blue   { background: rgba(79,157,255,.14); color: var(--blue); box-shadow: 0 4px 12px rgba(79,157,255,.15); }
.stat-icon-green  { background: rgba(52,211,153,.12);  color: var(--green); box-shadow: 0 4px 12px rgba(52,211,153,.12); }
.stat-icon-yellow { background: rgba(251,191,36,.12); color: var(--yellow); box-shadow: 0 4px 12px rgba(251,191,36,.12); }
.stat-icon-purple { background: rgba(192,132,252,.12);color: var(--purple); box-shadow: 0 4px 12px rgba(192,132,252,.12); }

.stat-value { font-size: 26px; font-weight: 800; line-height: 1; letter-spacing: -.5px; }
.stat-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; margin-top: 3px; }
.stat-sub   { font-size: 11px; color: var(--text-muted); margin-top: 6px; }

/* ══════════════════════════════════════════════════
   STAT CARD — RENKLİ VARYANTLAR
══════════════════════════════════════════════════ */
.stat-card { border: 1px solid rgba(79,157,255,.12); }

.stat-card-blue {
  border-top: 2px solid rgba(79,157,255,.7) !important;
  background: linear-gradient(160deg, rgba(79,157,255,.07) 0%, var(--bg-card) 60%) !important;
}
.stat-card-green {
  border-top: 2px solid rgba(52,211,153,.6) !important;
  background: linear-gradient(160deg, rgba(52,211,153,.06) 0%, var(--bg-card) 60%) !important;
}
.stat-card-yellow {
  border-top: 2px solid rgba(251,191,36,.6) !important;
  background: linear-gradient(160deg, rgba(251,191,36,.06) 0%, var(--bg-card) 60%) !important;
}
.stat-card-purple {
  border-top: 2px solid rgba(192,132,252,.6) !important;
  background: linear-gradient(160deg, rgba(192,132,252,.06) 0%, var(--bg-card) 60%) !important;
}
.stat-card-cyan {
  border-top: 2px solid rgba(56,189,248,.6) !important;
  background: linear-gradient(160deg, rgba(56,189,248,.06) 0%, var(--bg-card) 60%) !important;
}
.stat-card-red {
  border-top: 2px solid rgba(248,113,113,.6) !important;
  background: linear-gradient(160deg, rgba(248,113,113,.06) 0%, var(--bg-card) 60%) !important;
}

.stat-card-blue   .stat-value { color: #60a5fa; }
.stat-card-green  .stat-value { color: #34d399; }
.stat-card-yellow .stat-value { color: #fbbf24; }
.stat-card-purple .stat-value { color: #c084fc; }
.stat-card-cyan   .stat-value { color: #38bdf8; }
.stat-card-red    .stat-value { color: #f87171; }

.stat-card-blue:hover   { border-color: rgba(79,157,255,.50) !important; box-shadow: 0 8px 32px rgba(79,157,255,.18) !important; }
.stat-card-green:hover  { border-color: rgba(52,211,153,.40) !important; box-shadow: 0 8px 32px rgba(52,211,153,.14) !important; }
.stat-card-yellow:hover { border-color: rgba(251,191,36,.40) !important; box-shadow: 0 8px 32px rgba(251,191,36,.14) !important; }
.stat-card-purple:hover { border-color: rgba(192,132,252,.40) !important; box-shadow: 0 8px 32px rgba(192,132,252,.14) !important; }
.stat-card-cyan:hover   { border-color: rgba(56,189,248,.40) !important; box-shadow: 0 8px 32px rgba(56,189,248,.14) !important; }
.stat-card-red:hover    { border-color: rgba(248,113,113,.40) !important; box-shadow: 0 8px 32px rgba(248,113,113,.14) !important; }

/* ══════════════════════════════════════════════════
   TABLES
══════════════════════════════════════════════════ */
.table { color: var(--text); border-color: var(--border); margin: 0; }
.table thead th {
  background: rgba(77,159,255,.12) !important;
  border-color: var(--border);
  border-bottom: 2px solid rgba(77,159,255,.28) !important;
  font-size: 10.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em;
  color: #b0ccea !important; padding: 10px 16px;
  white-space: nowrap;
}
.table tbody td { padding: 12px 16px; border-color: rgba(77,159,255,.15); vertical-align: middle; }
.table tbody tr:nth-child(even) td { background: rgba(77,159,255,.04); }
.table-hover tbody tr:hover td { background: rgba(77,159,255,.10) !important; }
.table tbody tr { transition: background .1s; }

/* ══════════════════════════════════════════════════
   FORMS
══════════════════════════════════════════════════ */
.form-control, .form-select {
  background: var(--bg-input);
  border: 1px solid rgba(77,159,255,.32) !important;
  color: var(--text);
  border-radius: var(--radius-sm);
  font-size: 13px; padding: 9px 13px;
  transition: border-color .15s, box-shadow .15s;
  font-family: inherit;
}
.form-control:focus, .form-select:focus {
  background: var(--bg-input);
  border-color: rgba(79,157,255,.65) !important;
  color: var(--text);
  box-shadow: 0 0 0 3px rgba(79,157,255,.14) !important;
  outline: none;
}
.form-control::placeholder { color: var(--text-muted); }
.form-label { font-size: 12px; font-weight: 600; color: var(--text-sub); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .04em; }
.form-text { font-size: 11px; color: var(--text-muted); margin-top: 5px; }
.input-group-text {
  background: rgba(77,159,255,.12) !important;
  border: 1px solid rgba(77,159,255,.32) !important;
  color: var(--text-muted);
}
.form-check-input { background-color: var(--bg-surface); border-color: var(--border); }
.form-check-input:checked { background-color: var(--blue); border-color: var(--blue); }
textarea.form-control { resize: vertical; min-height: 90px; }

/* ══════════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════════ */
.btn { font-size: 13px; font-weight: 500; border-radius: var(--radius-sm); transition: all .15s; font-family: inherit; display: inline-flex; align-items: center; gap: 5px; }
.btn:focus { box-shadow: none; }

.btn-primary {
  background: var(--gradient);
  border: none; color: #fff;
  box-shadow: 0 4px 12px rgba(79,157,255,.30);
}
.btn-primary:hover { background: linear-gradient(135deg, #3b8ef0 0%, #00b0e8 100%); box-shadow: 0 6px 18px rgba(79,157,255,.42); color: #fff; transform: translateY(-1px); }
.btn-primary:active { transform: none; }
.btn-login { padding: 12px; font-size: 14px; font-weight: 600; letter-spacing: .3px; }

.btn-outline-secondary {
  border: 1px solid var(--border); color: var(--text-sub);
  background: transparent;
}
.btn-outline-secondary:hover { background: var(--bg-hover); color: var(--text); border-color: rgba(79,157,255,.25); }

.btn-outline-success { border: 1px solid rgba(52,211,153,.3); color: var(--green); background: transparent; }
.btn-outline-success:hover { background: rgba(52,211,153,.08); color: var(--green); }

.btn-outline-danger { border: 1px solid rgba(248,113,113,.3); color: var(--red); background: transparent; }
.btn-outline-danger:hover { background: rgba(248,113,113,.08); color: var(--red); }

.btn-danger { background: var(--red); border: none; color: #fff; }
.btn-danger:hover { background: #ef4444; color: #fff; }
.btn-success { background: var(--green); border: none; color: #000; font-weight: 600; }
.btn-success:hover { background: #6ee7b7; }
.btn-warning { background: var(--yellow); border: none; color: #000; font-weight: 600; }
.btn-ghost { background: none; border: none; padding: 5px 7px; color: var(--text-muted); border-radius: var(--radius-sm); }
.btn-ghost:hover { background: var(--bg-hover); color: var(--text); }

.btn-icon {
  width: 34px; height: 34px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
}

/* ══════════════════════════════════════════════════
   BADGES
══════════════════════════════════════════════════ */
.badge { font-weight: 600; font-size: 10.5px; padding: 3px 9px; border-radius: 5px; letter-spacing: .02em; }
.bg-success  { background: rgba(52,211,153,.16) !important; color: #34d399 !important; border: 1px solid rgba(52,211,153,.28) !important; }
.bg-danger   { background: rgba(248,113,113,.16) !important; color: #f87171 !important; border: 1px solid rgba(248,113,113,.28) !important; }
.bg-warning  { background: rgba(251,191,36,.16) !important; color: #fbbf24 !important; border: 1px solid rgba(251,191,36,.28) !important; }
.bg-info     { background: rgba(56,189,248,.16) !important; color: #38bdf8 !important; border: 1px solid rgba(56,189,248,.28) !important; }
.bg-primary  { background: rgba(79,157,255,.15) !important; color: #93c5fd !important; border: 1px solid rgba(79,157,255,.26) !important; }
.bg-secondary{ background: rgba(255,255,255,.06)!important; color: var(--text-sub)!important; border: 1px solid var(--border); }
.bg-dark     { background: rgba(248,113,113,.15) !important; color: #fca5a5 !important; border: 1px solid rgba(248,113,113,.25) !important; }

.badge-source { font-size: 11px; padding: 2px 9px; border-radius: 20px; font-weight: 500; }
.badge-channel{ background: rgba(79,157,255,.14); color: #93c5fd; border: 1px solid rgba(79,157,255,.22); }
.badge-phone  { background: rgba(52,211,153,.10); color: var(--green); border: 1px solid rgba(52,211,153,.20); }

/* ══════════════════════════════════════════════════
   AVATARS
══════════════════════════════════════════════════ */
.mini-avatar {
  width: 30px; height: 30px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #fff;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════
   ALERTS
══════════════════════════════════════════════════ */
.alert { border-radius: var(--radius-sm); font-size: 13px; padding: 10px 14px; }
.alert-success  { background: rgba(52,211,153,.08);  border: 1px solid rgba(52,211,153,.22);  color: #6ee7b7; }
.alert-danger   { background: rgba(248,113,113,.08); border: 1px solid rgba(248,113,113,.22); color: #fca5a5; }
.alert-warning  { background: rgba(251,191,36,.08);  border: 1px solid rgba(251,191,36,.22);  color: #fbbf24; }
.alert-info     { background: rgba(79,157,255,.08);  border: 1px solid rgba(79,157,255,.20);  color: var(--blue-light); }
.alert-secondary{ background: var(--bg-surface); border: 1px solid var(--border); color: var(--text-sub); }
.btn-close { filter: invert(1) brightness(.5); }

/* ══════════════════════════════════════════════════
   PROGRESS
══════════════════════════════════════════════════ */
.progress { background: rgba(255,255,255,.05); border-radius: 10px; overflow: hidden; }
.progress-bar { background: var(--gradient); border-radius: 10px; transition: width .4s ease; }

/* ══════════════════════════════════════════════════
   EMPTY STATE
══════════════════════════════════════════════════ */
.empty-state {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: var(--text-muted); text-align: center;
  padding: 48px 32px;
}
.empty-state .empty-icon {
  width: 72px; height: 72px;
  background: var(--bg-surface);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; color: var(--text-muted);
  margin-bottom: 16px;
  border: 1px solid var(--border);
}

/* ══════════════════════════════════════════════════
   LOGIN PAGE
══════════════════════════════════════════════════ */
.login-body {
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh;
  background: var(--bg);
  position: relative; overflow: hidden;
}
.login-body::before {
  content: '';
  position: fixed; top: -30%; left: -20%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(79,157,255,.09) 0%, transparent 70%);
  pointer-events: none;
}
.login-body::after {
  content: '';
  position: fixed; bottom: -20%; right: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0,198,255,.07) 0%, transparent 70%);
  pointer-events: none;
}
.login-wrapper { width: 100%; padding: 20px; position: relative; z-index: 1; }
.login-card {
  max-width: 400px; margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow), 0 0 60px rgba(79,157,255,.06);
}
.login-logo { text-align: center; margin-bottom: 32px; }
.login-logo-icon {
  width: 64px; height: 64px;
  background: var(--gradient);
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; color: #fff;
  margin: 0 auto 16px;
  box-shadow: 0 8px 24px rgba(79,157,255,.35);
}
.login-title { font-size: 22px; font-weight: 800; letter-spacing: -.3px; }
.login-subtitle { color: var(--text-muted); font-size: 13px; margin-top: 6px; }
.login-footer-text { text-align: center; font-size: 11px; color: var(--text-muted); margin-top: 20px; margin-bottom: 0; }
.login-orb {
  position: fixed; border-radius: 50%; pointer-events: none; z-index: 0;
  animation: orbFloat 8s ease-in-out infinite;
}
.login-orb-1 { width: 500px; height: 500px; top: -200px; left: -150px; background: radial-gradient(circle, rgba(79,157,255,.08) 0%, transparent 70%); animation-delay: 0s; }
.login-orb-2 { width: 400px; height: 400px; bottom: -150px; right: -100px; background: radial-gradient(circle, rgba(0,198,255,.07) 0%, transparent 70%); animation-delay: -3s; }
.login-orb-3 { width: 300px; height: 300px; top: 50%; right: 10%; background: radial-gradient(circle, rgba(147,197,253,.04) 0%, transparent 70%); animation-delay: -5s; }
@keyframes orbFloat { 0%,100%{transform:translate(0,0)} 50%{transform:translate(20px,-20px)} }
@keyframes toastIn { from{transform:translateX(40px);opacity:0} to{transform:translateX(0);opacity:1} }

/* ══════════════════════════════════════════════════
   ACCOUNT CARDS
══════════════════════════════════════════════════ */
.account-card {
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.account-card:hover {
  transform: translateY(-2px);
  border-color: rgba(79,157,255,.32);
  box-shadow: 0 8px 28px rgba(0,0,0,.50);
}
.account-avatar {
  width: 46px; height: 46px;
  background: var(--gradient-soft);
  border: 1px solid rgba(79,157,255,.22);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: var(--blue);
  flex-shrink: 0;
}
.account-status-dot {
  width: 9px; height: 9px; border-radius: 50%;
  display: inline-block; flex-shrink: 0;
}
.dot-active  { background: #34d399; box-shadow: 0 0 8px rgba(52,211,153,.70), 0 0 16px rgba(52,211,153,.30); }
.dot-inactive{ background: var(--text-muted); }
.dot-error   { background: var(--red); box-shadow: 0 0 6px var(--red); }
.dot-banned  { background: var(--yellow); }

/* ══════════════════════════════════════════════════
   STATUS DOT GLOW
══════════════════════════════════════════════════ */
.navbar-user-dot { background: #34d399; box-shadow: 0 0 6px #34d399, 0 0 12px rgba(52,211,153,.50); }

/* ══════════════════════════════════════════════════
   STEP INDICATOR
══════════════════════════════════════════════════ */
.step-indicator { display: flex; align-items: center; justify-content: center; gap: 0; }
.step-item { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.step-num {
  width: 32px; height: 32px; border-radius: 50%;
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: var(--text-muted);
  transition: all .25s;
}
.step-item.active .step-num { border-color: var(--blue); background: var(--blue); color: #fff; box-shadow: 0 0 12px rgba(79,157,255,.45); }
.step-item.done .step-num { border-color: var(--green); background: var(--green); color: #000; }
.step-label { font-size: 10px; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: .05em; }
.step-line { flex: 1; height: 2px; background: var(--border); min-width: 40px; margin: 0 8px 18px; }
.step-item.done ~ .step-line { background: var(--green); }

/* ══════════════════════════════════════════════════
   INBOX
══════════════════════════════════════════════════ */
.inbox-layout {
  display: flex;
  height: calc(100vh - var(--navbar-h));
  margin-left: var(--sidebar-w);
  margin-top: var(--navbar-h);
}
.conv-list {
  width: 300px; min-width: 280px;
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
}
.conv-list-header {
  padding: 14px 14px 10px;
  border-bottom: 1px solid var(--border);
}
.conv-list-body { flex: 1; overflow-y: auto; }
.conv-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.04);
  transition: background .15s; cursor: pointer;
}
.conv-item:hover { background: rgba(79,157,255,.06); }
.conv-item.active { background: rgba(79,157,255,.12); border-left: 2px solid var(--blue); }
.conv-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.conv-info { flex: 1; min-width: 0; }
.conv-name { font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv-time { font-size: 10px; color: var(--text-muted); white-space: nowrap; }
.conv-preview { font-size: 12px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.conv-account { font-size: 11px; color: var(--text-muted); }
.unread-badge { background: var(--blue); color: #fff; font-size: 10px; font-weight: 700; padding: 1px 7px; border-radius: 10px; min-width: 20px; text-align: center; }
.chat-area { flex: 1; display: flex; flex-direction: column; min-width: 0; overflow: hidden; position: relative; }
.chat-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  min-height: 64px;
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(255,255,255,.04);
}
.chat-messages {
  flex: 1; overflow-y: auto;
  padding: 20px 24px;
  display: flex; flex-direction: column; gap: 6px;
  background: var(--bg);
  background-image: radial-gradient(ellipse at 20% 50%, rgba(79,157,255,.04) 0%, transparent 60%),
                    radial-gradient(ellipse at 80% 20%, rgba(0,198,255,.03) 0%, transparent 60%);
}
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: rgba(79,157,255,.14); border-radius: 4px; }
.chat-empty { flex: 1; display: flex; align-items: center; justify-content: center; background: var(--bg); }
.msg-bubble { max-width: 68%; }
.msg-in  { align-self: unset; }
.msg-out { align-self: unset; }
.msg-content {
  padding: 10px 15px; border-radius: 18px;
  font-size: 13.5px; line-height: 1.6; word-break: break-word;
}
.msg-in .msg-content {
  background: var(--bg-surface);
  border-bottom-left-radius: 4px;
  border: 1px solid rgba(79,157,255,.10);
  color: var(--text);
}
.msg-out .msg-content {
  background: linear-gradient(135deg, #4f9dff 0%, #00c6ff 100%);
  color: #fff;
  border-bottom-right-radius: 4px;
  box-shadow: 0 4px 14px rgba(79,157,255,.28);
}
.msg-meta { font-size: 10.5px; color: var(--text-muted); padding: 3px 5px 0; display: flex; align-items: center; gap: 3px; }
.msg-out .msg-meta { justify-content: flex-end; }
.msg-out .msg-meta .msg-ts { color: rgba(255,255,255,.55); }

.chat-input-area {
  padding: 12px 16px 14px;
  background: var(--bg-card);
  border-top: 1px solid rgba(79,157,255,.08);
  box-shadow: 0 -1px 0 rgba(255,255,255,.03);
}
.chat-input-wrap { display: flex; align-items: flex-end; gap: 10px; }
.chat-input {
  flex: 1;
  background: var(--bg-input);
  border: 1.5px solid rgba(79,157,255,.18);
  border-radius: 22px;
  padding: 11px 18px;
  color: var(--text);
  font-size: 13.5px;
  resize: none;
  min-height: 44px;
  max-height: 120px;
  overflow-y: auto;
  line-height: 1.5;
  font-family: inherit;
  transition: border-color .2s, box-shadow .2s;
}
.chat-input:focus { outline: none; border-color: rgba(79,157,255,.50); box-shadow: 0 0 0 3px rgba(79,157,255,.10); }
.chat-input::placeholder { color: var(--text-muted); }
.chat-send-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f9dff 0%, #00c6ff 100%);
  border: none; color: #fff; font-size: 16px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(79,157,255,.38);
  transition: all .2s cubic-bezier(.4,0,.2,1);
}
.chat-send-btn:hover { transform: scale(1.08); box-shadow: 0 6px 20px rgba(79,157,255,.52); }
.chat-send-btn:active { transform: scale(.93); }
.chat-send-btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

/* ══════════════════════════════════════════════════
   BULK BAR
══════════════════════════════════════════════════ */
.bulk-bar { position: sticky; bottom: 0; background: var(--blue); padding: 10px 18px; display: flex; align-items: center; color: #fff; font-size: 13px; }

/* ══════════════════════════════════════════════════
   NAV TABS
══════════════════════════════════════════════════ */
.nav-tabs { border-color: var(--border); gap: 0; }
.nav-link { color: var(--text-muted); font-size: 13px; border: none; padding: 9px 16px; border-radius: 0; transition: all .15s; font-weight: 500; }
.nav-link:hover { color: var(--text); background: rgba(79,157,255,.05); }
.nav-link.active { color: var(--blue-light); border-bottom: 2px solid var(--blue); background: rgba(79,157,255,.07); }

/* ══════════════════════════════════════════════════
   MODAL
══════════════════════════════════════════════════ */
.modal-content {
  background: #1b2e4a;
  border: 1px solid rgba(77,159,255,.35);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 64px rgba(0,0,0,.80);
}
.modal-header { border-color: rgba(77,159,255,.22); padding: 16px 20px; background: rgba(77,159,255,.10); }
.modal-footer { border-color: rgba(77,159,255,.22); padding: 12px 20px; }
.modal-title { font-size: 14px; font-weight: 700; }
.modal-backdrop { backdrop-filter: blur(4px); }

/* ══════════════════════════════════════════════════
   CAMPAIGN
══════════════════════════════════════════════════ */
.campaign-card:hover { border-color: rgba(79,157,255,.28); }

/* ══════════════════════════════════════════════════
   PAGINATION
══════════════════════════════════════════════════ */
.page-link { background: var(--bg-card); border-color: var(--border); color: var(--text-sub); font-size: 12px; }
.page-link:hover { background: var(--bg-hover); color: var(--text); border-color: var(--border); }
.page-item.active .page-link { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ══════════════════════════════════════════════════
   LIST GROUP
══════════════════════════════════════════════════ */
.list-group-item { background: transparent; border-color: var(--border); color: var(--text); }
.list-group-flush .list-group-item { border-right: 0; border-left: 0; }
.list-group-item:first-child { border-top: 0; }

/* ══════════════════════════════════════════════════
   QR CODE AREA
══════════════════════════════════════════════════ */
.qr-wrapper {
  background: #1b2e4a;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.qr-wrapper img { border-radius: 8px; display: block; }
.qr-status { font-size: 12px; text-align: center; }

/* ══════════════════════════════════════════════════
   MISC
══════════════════════════════════════════════════ */
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.text-gradient {
  background: linear-gradient(135deg, #4f9dff 0%, #93c5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.divider { height: 1px; background: var(--border); margin: 16px 0; }
.letter-spacing-3 { letter-spacing: .3em; }

/* ══════════════════════════════════════════════════
   PLATFORM RENK SİSTEMİ (TG + WA)
══════════════════════════════════════════════════ */
:root {
  --tg-blue: #2390f0;
  --wa-green: #25d366;
  --wa-green-dark: #128c7e;
}

.sidebar-link-tg.active,
.sidebar-link-tg.tg-active {
  background: rgba(35,144,240,.12) !important;
  color: #60a5fa !important;
}
.sidebar-link-tg.active i,
.sidebar-link-tg.tg-active i { color: #2390f0 !important; opacity: 1 !important; }
.sidebar-link-tg.active::before,
.sidebar-link-tg.tg-active::before { background: #2390f0 !important; }
.sidebar-link-tg:hover { background: rgba(35,144,240,.07) !important; color: #60a5fa !important; }

.sidebar-link-wa.active,
.sidebar-link-wa.wa-active {
  background: rgba(37,211,102,.12) !important;
  color: #34d399 !important;
}
.sidebar-link-wa.active i,
.sidebar-link-wa.wa-active i { color: #25d366 !important; opacity: 1 !important; }
.sidebar-link-wa.active::before,
.sidebar-link-wa.wa-active::before { background: #25d366 !important; }
.sidebar-link-wa:hover { background: rgba(37,211,102,.07) !important; color: #34d399 !important; }

/* ══════════════════════════════════════════════════
   STAFF PERF
══════════════════════════════════════════════════ */
.staff-perf-item { padding: 4px 0; }
.staff-perf-item .progress { background: rgba(255,255,255,.05); }

/* ══════════════════════════════════════════════════
   YAZI GÖRÜNÜRLÜĞÜ — TÜM METİNLER NET OLSUN
══════════════════════════════════════════════════ */

/* Bootstrap .text-muted override */
.text-muted { color: #8ec5e8 !important; }

/* Tüm paragraf ve span metinler */
p, span, li, td, th, label, div {
  color: inherit;
}

/* Genel body metin */
body { color: #ffffff; }

/* Kart içi metinler */
.card-body p,
.card-body span:not(.badge),
.card-body small,
.card-body div:not([class*="btn"]):not([class*="progress"]) {
  color: var(--text);
}

/* Form etiketleri */
.form-label { color: #c8dff5 !important; }
.form-text  { color: #8ec5e8 !important; }

/* Küçük yardımcı metinler */
small { color: #8ec5e8 !important; }

/* Sidebar section title */
.sidebar-section-title { color: #7aa8cc !important; }

/* Tablo hücreleri */
.table td, .table th { color: #ffffff !important; }
.table thead th { color: #b8d8f0 !important; }

/* Sayfa alt başlığı */
.page-subtitle { color: #8ec5e8 !important; }

/* Stat alt yazı */
.stat-label { color: #8ec5e8 !important; }
.stat-sub   { color: #8ec5e8 !important; }

/* Nav link */
.nav-link { color: #9ec8e8 !important; }
.nav-link.active { color: #a5d0ff !important; }

/* Input placeholder */
::placeholder { color: #5a80aa !important; opacity: 1; }

/* Konuşma önizleme */
.conv-preview, .conv-time, .conv-account { color: #8ec5e8 !important; }
.conv-name { color: #ffffff !important; }

/* Mesaj meta */
.msg-meta { color: #8ec5e8 !important; }

/* user-role */
.user-role { color: #7aa8cc !important; }

/* Boş durum */
.empty-state { color: #8ec5e8 !important; }

/* ══════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════ */
@media (max-width: 991px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-overlay.show { display: block; }
  .main-content { margin-left: 0; }
  .top-navbar { left: 0; }
  .inbox-layout { margin-left: 0; position: relative; }
  .conv-list { position: absolute; z-index: 100; top: 0; left: 0; height: 100%; transform: translateX(-100%); transition: transform .25s; }
  .conv-list.show-mobile { transform: translateX(0); }
}
@media (max-width: 767px) {
  .content-wrapper { padding: 14px; }
  .page-header { flex-direction: column; gap: 10px; }
  .login-card { padding: 28px 22px; }
  .msg-bubble { max-width: 85%; }
  .stat-value { font-size: 22px; }
}
