/* =============================================
   DBC SUIT — Modern Dark SaaS Panel
   Premium design matching landing page
   ============================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --bg: #09090b; --bg2: #0c0c10; --bg3: #111116;
  --bg-card: #16161c; --bg-raised: #1c1c24; --bg-input: #16161c;
  --text: #fafafa; --text-sub: #a1a1aa; --text-muted: #71717a;
  --text-primary: #fafafa;
  --border: #27272a; --border-strong: #3f3f46; --border-soft: #1f1f26;
  --ring: #6366f1;

  --accent: #6366f1; --accent-hover: #4f46e5; --accent-light: #818cf8;
  --accent-soft: rgba(99,102,241,0.1); --accent-muted: rgba(99,102,241,0.2);
  --accent2: #22d3ee;

  --cpanel-navy: #111116; --cpanel-navy-light: #1c1c24; --cpanel-navy-dark: #09090b;
  --cpanel-orange: #6366f1; --cpanel-orange-hover: #4f46e5;
  --cpanel-orange-soft: rgba(99,102,241,0.1); --cpanel-orange-muted: rgba(99,102,241,0.2);
  --cpanel-section-bg: #1c1c24;
  --cpanel-bg: #09090b; --cpanel-card: #16161c;
  --cpanel-link: #818cf8; --cpanel-link-hover: #a5b4fc;
  --cpanel-text: #fafafa; --cpanel-text-sub: #a1a1aa; --cpanel-text-muted: #71717a;
  --cpanel-border: #27272a; --cpanel-border-strong: #3f3f46;

  --green: #34d399; --green-soft: rgba(52,211,153,0.12);
  --red: #f87171; --red-soft: rgba(248,113,113,0.12);
  --amber: #fbbf24; --amber-soft: rgba(251,191,36,0.12);
  --blue: #60a5fa; --blue-soft: rgba(96,165,250,0.12);
  --cyan: #22d3ee; --cyan-soft: rgba(34,211,238,0.12);

  --zinc-50: #18181b; --zinc-100: #1c1c24; --zinc-200: #27272a;
  --zinc-300: #3f3f46; --zinc-400: #52525b; --zinc-500: #71717a;
  --zinc-600: #a1a1aa; --zinc-700: #d4d4d8; --zinc-800: #e4e4e7;
  --zinc-900: #fafafa; --zinc-950: #ffffff;

  --navbar-h: 56px; --sidebar-w: 220px; --max-w: 1540px;
  --r-xs: 4px; --r-sm: 6px; --r: 10px; --r-lg: 14px; --r-xl: 18px; --r-2xl: 22px; --r-full: 9999px;
  --shadow-xs: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-sm: 0 2px 6px rgba(0,0,0,0.25);
  --shadow: 0 2px 8px rgba(0,0,0,0.3), 0 1px 3px rgba(0,0,0,0.2);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.35), 0 2px 4px rgba(0,0,0,0.2);
  --shadow-lg: 0 12px 28px rgba(0,0,0,0.35), 0 4px 8px rgba(0,0,0,0.25);
  --shadow-xl: 0 24px 48px rgba(0,0,0,0.4), 0 8px 16px rgba(0,0,0,0.3);
  --ease: cubic-bezier(0.4, 0, 0.2, 1); --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur: 180ms; --dur-md: 250ms; --dur-lg: 400ms;

  --gradient-accent: linear-gradient(135deg, #6366f1, #8b5cf6);
  --gradient-accent2: linear-gradient(135deg, #6366f1, #22d3ee);
  --gradient-card: linear-gradient(145deg, #16161c, #1a1a24);
  --surface: #16161c; --surface2: #1c1c24;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.5; min-height: 100vh;
  transition: background var(--dur-md) var(--ease), color var(--dur-md) var(--ease);
}
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 40% at 20% 0%, rgba(99,102,241,0.06), transparent),
    radial-gradient(ellipse 40% 50% at 80% 100%, rgba(34,211,238,0.04), transparent);
}
a { color: var(--accent-light); text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: #c7d2fe; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; font-size: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; }
h1, h2, h3, h4, h5, h6 { line-height: 1.3; font-weight: 600; color: var(--text); }
::selection { background: rgba(99,102,241,0.35); color: #fff; }

/* === NAVBAR — Glassmorphism top bar === */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; height: var(--navbar-h);
  background: rgba(9,9,11,0.7); backdrop-filter: blur(20px) saturate(1.3);
  z-index: 100; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-inner {
  display: flex; align-items: center; gap: 16px;
  height: 100%; padding: 0 24px; max-width: 100%;
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; margin-right: 8px; }
.brand-icon {
  width: 32px; height: 32px; border-radius: var(--r-sm);
  background: var(--gradient-accent);
  display: flex; align-items: center; justify-content: center;
  color: #fff; box-shadow: 0 2px 8px rgba(99,102,241,0.35);
}
.brand-icon svg { width: 16px; height: 16px; }
.brand-text { font-size: 16px; font-weight: 700; color: #ffffff; letter-spacing: -0.5px; }
.brand-dot { color: var(--accent-light); }
.nav-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; margin-left: auto; }
.nav-user {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 12px 5px 5px; border-radius: var(--r);
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.06);
  transition: all var(--dur) var(--ease);
}
.nav-user:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.1); }
.nav-user-avatar {
  width: 30px; height: 30px; border-radius: var(--r-sm);
  background: var(--gradient-accent); color: #fff; font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.nav-user-name {
  font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.8);
  max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.nav-logout-btn {
  width: 32px; height: 32px; border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.4); transition: all var(--dur) var(--ease);
}
.nav-logout-btn:hover { color: #fca5a5; background: rgba(248,113,113,0.12); }
.nav-logout-btn svg { width: 16px; height: 16px; }
.theme-toggle { display: none; }

/* === LAYOUT — Modern dark panel === */
.app-layout { display: flex; flex-direction: row; min-height: 100vh; padding-top: var(--navbar-h); }
.sidebar {
  position: fixed; top: var(--navbar-h); left: 0; bottom: 0;
  width: var(--sidebar-w); height: auto;
  background: rgba(12,12,16,0.85); backdrop-filter: blur(12px);
  border-right: 1px solid rgba(255,255,255,0.04);
  z-index: 50; overflow-x: hidden; overflow-y: auto;
}
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }
.sidebar-nav {
  display: flex; flex-direction: column; align-items: stretch;
  gap: 2px; padding: 12px 10px; min-width: unset;
}
.sidebar-btn {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px;
  border-radius: var(--r); font-size: 13px; font-weight: 500;
  color: var(--text-sub); background: transparent; white-space: nowrap;
  transition: all var(--dur-md) var(--ease); position: relative;
  border-left: none;
}
.sidebar-btn svg { width: 19px; height: 19px; flex-shrink: 0; color: var(--text-muted); transition: all var(--dur-md) var(--ease); }
.sidebar-btn span { font-size: 13px; transition: color var(--dur) var(--ease); }
.sidebar-btn:hover { color: #fff; background: rgba(255,255,255,0.06); }
.sidebar-btn:hover svg { color: rgba(255,255,255,0.7); }
.sidebar-btn.active {
  color: #fff; background: rgba(99,102,241,0.12); font-weight: 600;
  border-left: none; box-shadow: inset 0 0 0 1px rgba(99,102,241,0.15);
}
.sidebar-btn.active svg { color: var(--accent-light); }
.sidebar-btn.active::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 20px; border-radius: 0 3px 3px 0;
  background: var(--gradient-accent);
}
.main-content {
  flex: 1; margin-left: var(--sidebar-w);
  padding: 28px 36px 60px; width: calc(100% - var(--sidebar-w));
  max-width: var(--max-w);
}
.tab-content {
  display: none;
  animation: tabFadeIn var(--dur-lg) var(--ease-out);
}
.tab-content.active { display: block; }
@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* === PAGE HEADER === */
.page-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 28px; gap: 16px; flex-wrap: wrap;
}
.page-title {
  font-size: 26px; font-weight: 800; letter-spacing: -0.8px;
  background: linear-gradient(135deg, #fff 30%, var(--text-sub));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.page-subtitle { font-size: 14px; color: var(--text-muted); margin-top: 4px; }

/* === CARDS — Glass dark cards === */
.card {
  background: var(--gradient-card); border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.card:hover { border-color: rgba(255,255,255,0.1); }
.card__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 22px; border-bottom: 1px solid rgba(255,255,255,0.06); gap: 12px;
  background: rgba(255,255,255,0.02);
}
.card__header h3 {
  font-size: 14px; font-weight: 600;
  display: flex; align-items: center; gap: 8px; color: var(--text);
}
.card__body { padding: 22px; }

/* === BUTTONS — Modern gradient & glass === */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 22px; border-radius: var(--r); background: var(--gradient-accent); color: #fff;
  font-size: 13px; font-weight: 600; border: none;
  transition: all var(--dur-md) var(--ease);
  box-shadow: 0 2px 10px rgba(99,102,241,0.3), inset 0 1px 0 rgba(255,255,255,0.1);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(99,102,241,0.4), inset 0 1px 0 rgba(255,255,255,0.15); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-primary--send { width: 100%; padding: 13px 24px; font-size: 14px; letter-spacing: 0.3px; }
.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 18px; border-radius: var(--r);
  background: rgba(255,255,255,0.04); color: var(--text); font-size: 13px; font-weight: 500;
  border: 1px solid rgba(255,255,255,0.08); transition: all var(--dur) var(--ease);
}
.btn-secondary:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.14); }
.btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 22px; border-radius: var(--r); background: transparent; color: var(--accent-light);
  font-size: 13px; font-weight: 600; border: 1px solid rgba(99,102,241,0.4);
  transition: all var(--dur-md) var(--ease);
}
.btn-outline:hover { background: rgba(99,102,241,0.1); border-color: rgba(99,102,241,0.6); transform: translateY(-1px); }
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 7px 14px; border-radius: var(--r-sm); background: transparent;
  color: var(--text-sub); font-size: 13px; font-weight: 500;
  transition: all var(--dur) var(--ease);
}
.btn-ghost:hover { color: var(--text); background: rgba(255,255,255,0.06); }
.btn-ghost--danger { color: var(--red); }
.btn-ghost--danger:hover { background: var(--red-soft); color: var(--red); }
.btn-sm { padding: 5px 12px; font-size: 12px; }

/* === INPUTS — Dark glass inputs === */
.input-group { margin-bottom: 18px; }
.input-group label { display: block; font-size: 13px; font-weight: 500; color: var(--text-sub); margin-bottom: 8px; }
.input-group input, .input-group select, .input-group textarea {
  width: 100%; padding: 11px 16px; border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r); background: rgba(255,255,255,0.04); color: var(--text);
  font-size: 14px; transition: all var(--dur-md) var(--ease); outline: none;
}
.input-group input:focus, .input-group select:focus, .input-group textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
  background: rgba(99,102,241,0.04);
}
.input-group textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.input-group input::placeholder, .input-group textarea::placeholder { color: var(--text-muted); }
.input-hint { font-size: 12px; color: var(--text-muted); margin-top: 4px; display: block; }

/* === BADGES & CHIPS === */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: var(--r-full);
  font-size: 11px; font-weight: 600; background: rgba(255,255,255,0.06); color: var(--text-sub);
}
.badge--blue { background: var(--blue-soft); color: var(--blue); }
.badge--green { background: var(--green-soft); color: var(--green); }
.badge--amber { background: var(--amber-soft); color: var(--amber); }
.badge--red { background: var(--red-soft); color: var(--red); }
.chip-bar { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.chip-bar--sm { margin-top: 8px; margin-bottom: 0; }
.chip {
  padding: 5px 12px; border-radius: var(--r-full); font-size: 12px; font-weight: 500;
  background: rgba(255,255,255,0.04); color: var(--text-sub); border: 1px solid rgba(255,255,255,0.08);
  transition: all var(--dur) var(--ease);
}
.chip:hover { border-color: var(--accent); color: var(--accent-light); background: var(--accent-soft); }
.chip--sm { padding: 3px 10px; font-size: 11px; }

/* === AUTH — Premium glass auth === */
.auth-wrapper {
  display: flex; gap: 28px; max-width: 860px; margin: 60px auto;
  flex-wrap: wrap; justify-content: center;
  animation: authFadeIn 0.6s var(--ease-out);
}
@keyframes authFadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.auth-card {
  flex: 1; min-width: 320px; max-width: 400px;
  background: rgba(22,22,28,0.8); backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--r-xl); overflow: hidden;
  transition: border-color var(--dur-md) var(--ease), box-shadow var(--dur-md) var(--ease);
}
.auth-card:hover { border-color: rgba(99,102,241,0.2); box-shadow: 0 8px 32px rgba(99,102,241,0.08); }
.auth-header { padding: 36px 30px 18px; text-align: center; }
.auth-icon {
  width: 58px; height: 58px; border-radius: var(--r-lg);
  background: rgba(99,102,241,0.12); color: var(--accent-light);
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px;
  box-shadow: 0 4px 16px rgba(99,102,241,0.15);
}
.auth-icon-alt { background: rgba(52,211,153,0.12); color: var(--green); box-shadow: 0 4px 16px rgba(52,211,153,0.15); }
.auth-header h2 { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.auth-subtitle { color: var(--text-muted); font-size: 13px; }
.auth-body { padding: 8px 30px 32px; }
.auth-status { margin-top: 12px; font-size: 13px; text-align: center; }
.auth-actions { display: flex; gap: 8px; }
.auth-actions .btn-primary { flex: 1; }
.auth-actions .btn-ghost { flex: 0; white-space: nowrap; }
/* =============================================
   STATS GRID (Dashboard)
   ============================================= */
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 16px; margin-bottom: 28px;
}
.stat-card {
  background: var(--gradient-card); border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--r-lg); padding: 20px;
  display: flex; align-items: center; gap: 14px;
  box-shadow: var(--shadow-xs); transition: all var(--dur-md) var(--ease);
}
.stat-card:hover { border-color: rgba(255,255,255,0.12); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.stat-card__icon {
  width: 44px; height: 44px; border-radius: var(--r);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.stat-card--success .stat-card__icon { background: var(--green-soft); color: var(--green); }
.stat-card--danger .stat-card__icon { background: var(--red-soft); color: var(--red); }
.stat-card--info .stat-card__icon { background: var(--blue-soft); color: var(--blue); }
.stat-card--warning .stat-card__icon { background: var(--amber-soft); color: var(--amber); }
.stat-card__data { display: flex; flex-direction: column; }
.stat-card__value {
  font-size: 28px; font-weight: 800; line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.stat-card__label { font-size: 13px; color: var(--text-muted); font-weight: 500; margin-top: 4px; }

/* Dashboard Grid */
.dashboard-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.today-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 20px 24px; }
.today-item { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05); border-radius: var(--r); padding: 20px 20px; text-align: center; }
.today-item__value { font-size: 32px; font-weight: 800; display: block; font-variant-numeric: tabular-nums; }
.today-item--success .today-item__value { color: var(--green); }
.today-item--danger .today-item__value { color: var(--red); }
.today-item__label { font-size: 11px; color: var(--text-muted); font-weight: 500; margin-top: 4px; display: block; }
.item-list { padding: 16px 24px; }
.item-list:empty::after {
  content: 'Veri yok'; display: block; text-align: center;
  color: var(--text-muted); font-size: 13px; padding: 20px 0;
}
.empty-state { text-align: center; padding: 32px 20px; color: var(--text-muted); }
.empty-state p { font-size: 13px; }

/* Scheduled Items */
.scheduled-item {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 13px;
}
.scheduled-item:last-child { border-bottom: none; }
.scheduled-subject { font-weight: 600; color: var(--text); margin-bottom: 2px; }
.scheduled-time { font-size: 12px; color: var(--text-muted); }
.scheduled-count { font-size: 12px; color: var(--text-muted); }
.scheduled-status {
  padding: 3px 10px; border-radius: var(--r-full); font-size: 11px; font-weight: 600; white-space: nowrap;
}
.scheduled-status.pending { background: var(--amber-soft); color: var(--amber); }
.scheduled-status.completed { background: var(--green-soft); color: var(--green); }
.scheduled-status.sending { background: var(--blue-soft); color: var(--blue); }

/* Failed Items */
.failed-item {
  padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 12px;
}
.failed-item:last-child { border-bottom: none; }
.failed-item-header {
  display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 4px;
}
.failed-email { font-weight: 600; color: var(--red); }
.failed-time { font-size: 10px; color: var(--text-muted); white-space: nowrap; }
.failed-error { font-size: 11px; color: var(--text-muted); margin-top: 6px; font-style: italic; }

/* Account Items (Admin) */
.account-item {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--r-lg); padding: 18px 20px; margin-bottom: 12px;
  transition: all var(--dur) var(--ease);
}
.account-item:hover { border-color: rgba(99,102,241,0.2); box-shadow: 0 4px 16px rgba(0,0,0,0.2); }
.account-item__name {
  font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 10px;
  display: flex; align-items: center; gap: 10px;
}
.account-item__info {
  display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--text-sub);
  margin-bottom: 14px;
}
.account-item__actions {
  display: flex; align-items: center; gap: 8px;
  padding-top: 12px; border-top: 1px solid var(--border);
}

/* Admin Panel - Account Cards */
.adm-accounts-grid {
    display: flex; flex-direction: column; gap: 10px;
}
.adm-account-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    padding: 18px 22px;
    transition: all 0.2s var(--ease);
}
.adm-account-card:hover {
    border-color: rgba(99,102,241,0.25);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.adm-acc-top {
    display: flex; align-items: center; gap: 14px; margin-bottom: 10px;
}
.adm-acc-avatar {
    width: 42px; height: 42px; border-radius: 12px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff; font-weight: 800; font-size: 18px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.adm-acc-info { flex: 1; min-width: 0; }
.adm-acc-name { font-size: 15px; font-weight: 700; color: var(--text); }
.adm-acc-email { font-size: 13px; color: var(--text-sub, var(--text-muted)); margin-top: 2px; }
.adm-badge {
    display: inline-block; padding: 3px 10px; border-radius: 20px;
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px;
}
.adm-acc-meta {
    display: flex; gap: 20px; font-size: 13px; color: var(--text-sub, var(--text-muted));
    margin-bottom: 10px; padding-left: 56px;
}
.adm-acc-modules {
    display: flex; flex-wrap: wrap; gap: 5px; padding-left: 56px; margin-bottom: 12px;
}
.adm-mod-pill {
    display: inline-block; padding: 2px 10px; border-radius: 20px;
    font-size: 11px; font-weight: 600;
    background: rgba(99,102,241,.08); color: #818cf8;
    border: 1px solid rgba(99,102,241,.15);
}
.adm-acc-actions {
    display: flex; gap: 8px; padding-top: 12px;
    border-top: 1px solid var(--border); padding-left: 56px;
}
.adm-btn {
    padding: 6px 16px; border-radius: 8px; font-size: 13px; font-weight: 600;
    cursor: pointer; border: 1px solid var(--border); background: var(--bg-raised);
    color: var(--text); transition: all 0.15s;
}
.adm-btn:hover { border-color: var(--accent, #6366f1); }
.adm-btn-edit { background: rgba(99,102,241,.08); color: #818cf8; border-color: rgba(99,102,241,.2); }
.adm-btn-edit:hover { background: rgba(99,102,241,.15); }
.adm-btn-approve { background: rgba(34,197,94,.08); color: #16a34a; border-color: rgba(34,197,94,.2); }
.adm-btn-approve:hover { background: rgba(34,197,94,.15); }
.adm-btn-reject { background: rgba(245,158,11,.08); color: #f59e0b; border-color: rgba(245,158,11,.2); }
.adm-btn-reject:hover { background: rgba(245,158,11,.15); }
.adm-btn-delete { background: rgba(239,68,68,.06); color: #dc2626; border-color: rgba(239,68,68,.15); margin-left: auto; }
.adm-btn-delete:hover { background: rgba(239,68,68,.12); }
@media (max-width: 768px) {
    .adm-acc-meta, .adm-acc-modules, .adm-acc-actions { padding-left: 0; }
}

/* =============================================
   SEND SECTION
   ============================================= */
.send-sub-tab { display: none; }
.send-sub-tab.active { display: block; }
.send-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
/* Saved lists items */
.saved-list-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--r);
  margin-bottom: 8px; cursor: pointer; transition: border-color var(--dur) var(--ease);
}
.saved-list-item:hover { border-color: var(--border-strong); background: var(--bg-raised); }
.saved-list-item.active-list { border-color: var(--cpanel-orange); background: var(--accent-soft); }
.saved-list-meta { display: flex; flex-direction: column; gap: 2px; }
.saved-list-name { font-weight: 600; font-size: 13px; color: var(--text); }
.saved-list-info { font-size: 11px; color: var(--text-muted); }
.saved-list-actions { display: flex; gap: 6px; align-items: center; }
/* Quick list selector in compose tab */
.quick-list-select { width: 100%; padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--r); font-size: 13px; background: var(--bg-input); color: var(--text); }
.template-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px; padding: 20px 24px;
}
.template-item {
  background: var(--bg-raised); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 18px 20px;
  transition: all var(--dur) var(--ease);
}
.template-item:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.template-item-name {
  font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 8px;
  display: flex; align-items: center; gap: 6px;
}
.template-item-name::before { content: '😊'; }
.template-item-preview {
  font-size: 13px; color: var(--text-muted); line-height: 1.55;
  margin-bottom: 14px; word-break: break-word;
  display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.template-item-actions {
  display: flex; align-items: center; gap: 10px;
  padding-top: 12px; border-top: 1px solid var(--border);
}
.upload-area {
  border: 2px dashed rgba(255,255,255,0.1); border-radius: var(--r-lg);
  padding: 44px 24px; text-align: center; cursor: pointer;
  transition: all var(--dur-md) var(--ease); color: var(--text-muted);
  background: rgba(255,255,255,0.02);
}
.upload-area:hover, .upload-area.drag-over { border-color: var(--accent); background: rgba(99,102,241,0.06); color: var(--accent-light); }
.upload-text { display: block; font-size: 13px; font-weight: 500; margin-top: 12px; }
.upload-hint { font-size: 12px; color: var(--text-muted); margin-top: 4px; display: block; }
.upload-status {
  margin-top: 12px; padding: 10px 14px; border-radius: var(--r);
  font-size: 13px; background: var(--green-soft); color: var(--green);
}
.email-list { margin-top: 12px; max-height: 200px; overflow-y: auto; }
.info-box {
  background: var(--blue-soft); border: 1px solid rgba(59,130,246,0.15);
  border-radius: var(--r); padding: 14px 16px; margin: 16px 0;
}
.info-box strong { font-size: 13px; color: var(--blue); display: block; margin-bottom: 8px; }
.info-table { display: flex; flex-direction: column; gap: 4px; }
.info-table div { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.info-table code {
  background: rgba(59,130,246,0.15); padding: 1px 6px; border-radius: var(--r-xs);
  font-size: 11px; font-weight: 600; color: var(--blue);
  font-family: 'JetBrains Mono', 'Cascadia Code', monospace;
}
.info-table span { color: var(--text-muted); }
.delay-control {
  display: flex; align-items: center; gap: 4px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r); padding: 4px; width: fit-content;
}
.delay-btn {
  width: 32px; height: 32px; border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 600; color: var(--text-sub);
  transition: all var(--dur) var(--ease);
}
.delay-btn:hover { background: var(--bg-card); color: var(--text); }
.delay-control input[type="number"] {
  width: 48px; text-align: center; border: none; background: transparent;
  color: var(--text); font-weight: 600; font-size: 14px; -moz-appearance: textfield; appearance: textfield;
}
.delay-control input::-webkit-inner-spin-button { display: none; }
.delay-unit { font-size: 12px; color: var(--text-muted); padding-right: 8px; }
.result-container { margin-top: 24px; }

/* Pending Screen */
.pending-screen { display: flex; align-items: center; justify-content: center; min-height: 50vh; }
.pending-card {
  text-align: center; max-width: 480px;
  background: var(--gradient-card); border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--r-xl); padding: 48px 36px;
  box-shadow: var(--shadow-lg);
}
.pending-icon { font-size: 48px; margin-bottom: 16px; }
.pending-card h2 { font-size: 22px; margin-bottom: 4px; }
.pending-subtitle { color: var(--text-muted); margin-bottom: 20px; }
.pending-info {
  background: var(--amber-soft); border-radius: var(--r);
  padding: 16px; margin-bottom: 20px; text-align: left;
}
.pending-info h3 { font-size: 14px; color: var(--amber); margin-bottom: 4px; }
.pending-info p { font-size: 13px; color: var(--text-sub); }
.pending-note { font-size: 12px; color: var(--text-muted); margin-top: 8px; display: block; }
.pending-features { margin-bottom: 24px; }
.pending-features-title { font-size: 13px; color: var(--text-sub); margin-bottom: 12px; }
.pending-features-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pending-features-grid span {
  font-size: 13px; padding: 8px 12px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--r-sm); color: var(--text-sub);
}
/* =============================================
   CERTIFICATE SECTION
   ============================================= */
.cert-subtab {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 18px; border: none; border-radius: 10px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  background: transparent; color: var(--text-sub);
  font-family: inherit; transition: all .2s;
}
.cert-subtab:hover { color: var(--text-primary); background: rgba(255,255,255,.04); }
.cert-subtab.active {
  background: linear-gradient(135deg, rgba(99,102,241,.15), rgba(139,92,246,.1));
  color: #818cf8; box-shadow: 0 1px 4px rgba(99,102,241,.15);
}
.cert-subtab svg { opacity: .7; }
.cert-subtab.active svg { opacity: 1; }
.cert-db-row {
  display: grid; grid-template-columns: 140px 1.2fr 1fr 100px 100px 60px;
  gap: 12px; align-items: center; padding: 12px 16px;
  border: 1px solid var(--border); border-radius: 10px; margin-bottom: 8px;
  font-size: 13px; transition: background .15s;
}
.cert-db-row:hover { background: rgba(255,255,255,.02); }
.cert-db-header {
  display: grid; grid-template-columns: 140px 1.2fr 1fr 100px 100px 60px;
  gap: 12px; padding: 8px 16px; font-size: 11px; font-weight: 700;
  color: var(--text-muted); letter-spacing: .5px; text-transform: uppercase;
  margin-bottom: 4px;
}
.cert-db-license { font-family: monospace; font-weight: 700; color: #818cf8; letter-spacing: 1px; font-size: 12px; }
.cert-db-name { font-weight: 600; }
.cert-db-del {
  padding: 6px 10px; border: none; border-radius: 6px;
  background: rgba(239,68,68,.08); color: #dc2626; cursor: pointer;
  font-size: 12px; font-weight: 600; transition: background .15s;
}
.cert-db-del:hover { background: rgba(239,68,68,.18); }
.cert-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-lg); margin-bottom: 20px;
  transition: border-color var(--dur) var(--ease);
}
.cert-card-header {
  display: flex; align-items: center; gap: 14px;
  padding: 20px 24px; border-bottom: 1px solid var(--border);
}
.cert-step-badge {
  width: 34px; height: 34px; border-radius: var(--r);
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700; flex-shrink: 0;
}
.cert-card-header h3 { font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.cert-card-header p { font-size: 13px; color: var(--text-muted); margin: 0; }
.cert-card-body { padding: 24px; }
.cert-template-row { display: flex; gap: 10px; flex-wrap: wrap; }
.cert-default-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: var(--r); background: var(--zinc-100);
  color: var(--text); font-size: 13px; font-weight: 500;
  border: 1px solid var(--border); transition: all var(--dur) var(--ease);
}
.cert-default-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.cert-file-status {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; background: var(--green-soft); border-radius: var(--r);
  margin-top: 12px; gap: 12px;
}
.cert-file-info { display: flex; align-items: center; gap: 10px; color: var(--green); }
.cert-file-info strong { font-size: 13px; display: block; }
.cert-file-info span { font-size: 12px; color: var(--text-muted); }
.cert-remove-btn {
  width: 28px; height: 28px; border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); transition: all var(--dur) var(--ease);
}
.cert-remove-btn:hover { color: var(--red); background: var(--red-soft); }

/* Logo Editor */
.logo-editor { border-radius: var(--r); overflow: hidden; }
.logo-editor__canvas {
  position: relative; width: 100%; aspect-ratio: 1.414;
  background: var(--zinc-100); border: 1px solid var(--border);
  border-radius: var(--r); overflow: hidden; cursor: crosshair;
}
.logo-editor__bg { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.logo-editor__logo {
  position: absolute; cursor: grab; user-select: none;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
  z-index: 2;
}
.logo-editor__logo:active { cursor: grabbing; }
.logo-editor__empty {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
  cursor: pointer; color: var(--text-muted); font-size: 13px;
  transition: color var(--dur) var(--ease);
}
.logo-editor__empty:hover { color: var(--accent); }
.logo-editor__empty-icon { opacity: 0.4; }
.logo-editor__controls {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; background: var(--zinc-100);
  border: 1px solid var(--border); border-top: none;
  border-radius: 0 0 var(--r) var(--r); gap: 12px;
}
.logo-editor__size-control {
  display: flex; align-items: center; gap: 8px; flex: 1; color: var(--text-muted);
}
.logo-editor__size-control input[type="range"] {
  flex: 1; accent-color: var(--accent); height: 4px;
}
.logo-editor__size-control span { font-size: 12px; font-weight: 600; color: var(--text-sub); min-width: 28px; }
.logo-editor__actions { display: flex; gap: 6px; }
.logo-editor__change-btn, .logo-editor__delete-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 12px; border-radius: var(--r-sm); font-size: 12px; font-weight: 500;
  border: 1px solid var(--border); background: var(--bg-card); color: var(--text-sub);
  transition: all var(--dur) var(--ease);
}
.logo-editor__change-btn:hover { border-color: var(--accent); color: var(--accent); }
.logo-editor__delete-btn:hover { border-color: var(--red); color: var(--red); background: var(--red-soft); }

/* Cert Upload */
.cert-upload-box {
  border: 2px dashed var(--border); border-radius: var(--r-lg);
  padding: 32px 20px; text-align: center; cursor: pointer;
  transition: all var(--dur) var(--ease); color: var(--text-muted);
}
.cert-upload-box:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.cert-upload-icon { margin-bottom: 8px; }
.cert-upload-text { font-size: 13px; font-weight: 500; display: block; }
.cert-upload-hint { font-size: 12px; color: var(--text-muted); margin-top: 4px; display: block; }

/* Cert Mapping */
.cert-mapping-grid { display: flex; flex-direction: column; gap: 12px; }

/* Cert Titles */
.cert-titles-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cert-title-field { display: flex; flex-direction: column; gap: 6px; }
.cert-title-field label { font-size: 13px; font-weight: 600; color: var(--text-sub); }
@media (max-width: 768px) { .cert-titles-grid { grid-template-columns: 1fr; } }

.cert-action-card { text-align: center; padding: 24px 20px; }
.cert-generate-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 28px; border-radius: var(--r); background: var(--accent); color: #fff;
  font-size: 14px; font-weight: 600; border: none;
  transition: background var(--dur) var(--ease);
}
.cert-generate-btn:hover { background: var(--accent-hover); }
.cert-generate-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.cert-action-hint { font-size: 12px; color: var(--text-muted); margin-top: 8px; }

/* Cert Results */
.cert-results-card { display: flex; flex-direction: column; }
.cert-results-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 20px; border-bottom: 1px solid var(--border); gap: 16px;
}
.cert-results-header h2 { font-size: 18px; font-weight: 700; }
.cert-results-header p { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.cert-results-actions { display: flex; gap: 10px; padding: 20px; flex-wrap: wrap; }
.cert-email-toggle-btn { cursor: pointer; }
.cert-email-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cert-email-field { display: flex; flex-direction: column; }
.cert-email-field label { display: block; font-size: 13px; font-weight: 500; color: var(--text-sub); margin-bottom: 6px; }
.cert-email-field input, .cert-email-field select, .cert-email-field textarea {
  width: 100%; padding: 9px 14px; border: 1px solid var(--border);
  border-radius: var(--r); background: var(--bg-input); color: var(--text);
  font-size: 13px; outline: none; transition: border-color var(--dur) var(--ease);
}
.cert-email-field input:focus, .cert-email-field select:focus, .cert-email-field textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-muted);
}
.cert-email-field-full { grid-column: 1 / -1; }
.cert-email-chips { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.cert-email-progress { margin-top: 16px; }
.progress-bar {
  height: 6px; border-radius: var(--r-full); background: var(--zinc-200); overflow: hidden;
}
.progress-fill { height: 100%; border-radius: var(--r-full); background: var(--accent); transition: width 0.3s var(--ease); }

/* Cert Loading */
.cert-loading {
  position: fixed; inset: 0; z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(9,9,11,0.5); backdrop-filter: blur(4px);
}
.cert-loading-box {
  background: var(--bg-card); border-radius: var(--r-xl);
  padding: 40px; text-align: center; border: 1px solid var(--border);
  box-shadow: var(--shadow-xl);
}
.cert-loading-box p { font-size: 14px; font-weight: 600; margin-top: 16px; }
.cert-loading-box small { font-size: 12px; color: var(--text-muted); }
.cert-spinner {
  width: 40px; height: 40px; margin: 0 auto;
  border: 3px solid var(--zinc-200); border-top-color: var(--accent);
  border-radius: 50%; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
/* =============================================
   BLOG SECTION
   ============================================= */
.blog-conn-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 12px; border-radius: var(--r-full); font-size: 11px; font-weight: 600;
}
.blog-conn-on { background: var(--green-soft); color: var(--green); }
.blog-conn-off { background: var(--zinc-100); color: var(--text-muted); }
.blog-settings-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.blog-settings-actions { display: flex; gap: 8px; margin-top: 4px; }
.blog-row-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.blog-image-upload {
  border: 2px dashed var(--border); border-radius: var(--r);
  overflow: hidden; cursor: pointer; transition: all var(--dur) var(--ease);
}
.blog-image-upload:hover { border-color: var(--accent); }
.blog-image-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 32px; color: var(--text-muted); font-size: 13px;
}
.blog-image-preview { position: relative; }
.blog-image-preview img { width: 100%; max-height: 200px; object-fit: cover; }
.blog-image-remove {
  position: absolute; top: 8px; right: 8px;
  width: 28px; height: 28px; border-radius: var(--r-full);
  background: rgba(0,0,0,0.6); color: #fff; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--dur) var(--ease);
}
.blog-image-remove:hover { background: var(--red); }
.blog-toolbar {
  display: flex; align-items: center; gap: 2px; padding: 8px 10px;
  border: 1px solid rgba(255,255,255,0.06); border-bottom: none;
  border-radius: var(--r) var(--r) 0 0; background: rgba(255,255,255,0.03);
  flex-wrap: wrap;
}
.blog-tb-btn {
  width: 32px; height: 32px; border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--text-sub); transition: all var(--dur) var(--ease);
}
.blog-tb-btn:hover { background: var(--bg-card); color: var(--text); }
.blog-tb-sep { width: 1px; height: 20px; background: var(--border); margin: 0 4px; }
.blog-tb-heading {
  padding: 4px 8px; border: 1px solid var(--border);
  border-radius: var(--r-sm); background: var(--bg-card); color: var(--text);
  font-size: 12px; outline: none;
}
.blog-editor {
  min-height: 200px; padding: 16px; border: 1px solid var(--border);
  border-radius: 0 0 var(--r) var(--r); background: var(--bg-card);
  color: var(--text); font-size: 14px; line-height: 1.7; outline: none;
}
.blog-editor:focus { border-color: var(--accent); }
.blog-editor:empty::before {
  content: attr(placeholder); color: var(--text-muted);
}
.blog-posts-list { padding: 0; }
.blog-posts-list .blog-post-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; border-bottom: 1px solid var(--border);
  transition: background var(--dur) var(--ease);
}
.blog-posts-list .blog-post-item:hover { background: rgba(255,255,255,0.03); }
.blog-posts-list .blog-post-item:last-child { border-bottom: none; }

/* =============================================
   CRM SECTION  v3 — Professional Redesign
   ============================================= */

/* Hero Header */
.crm-hero {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(99,102,241,0.1) 0%, rgba(34,211,238,0.05) 100%);
  border: 1px solid rgba(99,102,241,0.15);
  border-radius: var(--r-lg); color: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.crm-hero-left { display: flex; align-items: center; gap: 16px; }
.crm-hero-icon {
  width: 48px; height: 48px; border-radius: var(--r);
  background: rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; backdrop-filter: blur(8px);
}
.crm-hero-icon svg { color: #fff; }
.crm-hero-title { font-size: 18px; font-weight: 700; margin: 0; line-height: 1.3; color: #fff; }
.crm-hero-desc { font-size: 12px; color: rgba(255,255,255,0.65); margin-top: 2px; }
.crm-hero-actions { display: flex; gap: 8px; }

/* Upload button */
.crm-upload-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px; border-radius: var(--r); font-size: 13px; font-weight: 600;
  background: rgba(255,255,255,0.15); color: #fff; border: 1px solid rgba(255,255,255,0.2);
  cursor: pointer; transition: all var(--dur) var(--ease);
  backdrop-filter: blur(8px);
}
.crm-upload-btn:hover { background: rgba(255,255,255,0.25); border-color: rgba(255,255,255,0.35); }

/* Sub-tabs */
.crm-subtabs {
  display: flex; gap: 2px; padding: 3px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-lg);
  margin-bottom: 20px; overflow-x: auto;
  box-shadow: var(--shadow-xs);
}
.crm-subtab {
  padding: 10px 18px; border-radius: var(--r); font-size: 13px; font-weight: 500;
  color: var(--text-sub); background: transparent; border: none; cursor: pointer;
  transition: all var(--dur) var(--ease); white-space: nowrap;
  display: inline-flex; align-items: center; gap: 7px;
}
.crm-subtab svg { opacity: 0.5; transition: opacity var(--dur) var(--ease); }
.crm-subtab:hover { color: var(--text); background: var(--bg-raised); }
.crm-subtab:hover svg { opacity: 0.8; }
.crm-subtab.active {
  color: var(--accent); background: var(--accent-soft);
  box-shadow: var(--shadow-xs); font-weight: 600;
}
.crm-subtab.active svg { opacity: 1; color: var(--accent); }

/* Panel show/hide */
.crm-panel { display: none; }
.crm-panel.active { display: block; animation: crmFadeIn 0.2s ease; }
@keyframes crmFadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* Badge */
.crm-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; border-radius: var(--r-full);
  background: var(--red); color: #fff; font-size: 11px; font-weight: 700;
  padding: 0 5px; line-height: 1;
}
.crm-badge-success { background: rgba(34,197,94,0.12); color: var(--green); padding: 2px 8px; border-radius: var(--r-full); font-size: 11px; font-weight: 600; }
.crm-badge-muted  { background: var(--bg-raised); color: var(--text-muted); padding: 2px 8px; border-radius: var(--r-full); font-size: 11px; font-weight: 500; }

/* ── Stat Cards ── */
.crm-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.crm-stat-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 18px 20px; display: flex; align-items: center; gap: 16px;
  transition: all var(--dur) var(--ease); position: relative; overflow: hidden;
}
.crm-stat-card::after {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}
.crm-stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--border-strong); }
.crm-stat-blue::after { background: var(--blue); }
.crm-stat-green::after { background: var(--green); }
.crm-stat-amber::after { background: var(--amber); }
.crm-stat-purple::after { background: #8b5cf6; }

.crm-stat-icon-wrap {
  width: 44px; height: 44px; border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.crm-icon-blue   { background: var(--blue-soft);  color: var(--blue);  }
.crm-icon-green  { background: var(--green-soft); color: var(--green); }
.crm-icon-amber  { background: var(--amber-soft); color: var(--amber); }
.crm-icon-purple { background: rgba(139,92,246,0.1); color: #8b5cf6; }

.crm-stat-body { flex: 1; }
.crm-stat-val { font-size: 24px; font-weight: 800; color: var(--text); line-height: 1.2; letter-spacing: -0.5px; }
.crm-stat-lbl { font-size: 12px; color: var(--text-muted); margin-top: 2px; font-weight: 500; }

/* ── Progress Card ── */
.crm-progress-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 16px 20px; margin-bottom: 20px;
}
.crm-progress-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.crm-progress-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--text);
}
.crm-progress-title svg { color: var(--accent); }
.crm-progress-count { font-size: 13px; font-weight: 600; color: var(--accent); }
.crm-progress-bar {
  height: 10px; background: var(--bg-raised); border-radius: var(--r-full); overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.06);
}
.crm-progress-fill {
  height: 100%; border-radius: var(--r-full); transition: width 0.8s cubic-bezier(0.4,0,0.2,1);
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent2) 100%);
  box-shadow: 0 1px 6px rgba(99,102,241,0.3);
}

/* ── Action Buttons ── */
.crm-actions-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 14px 18px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.crm-action-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px; border-radius: var(--r); font-size: 13px; font-weight: 500;
  background: var(--bg-card); color: var(--text); border: 1px solid var(--border);
  cursor: pointer; transition: all var(--dur) var(--ease); font-family: inherit;
}
.crm-action-btn:hover { background: var(--bg-raised); border-color: var(--border-strong); box-shadow: var(--shadow-xs); }
.crm-action-btn.crm-action-primary {
  background: var(--accent); color: #fff; border-color: var(--accent);
  font-weight: 600; box-shadow: 0 2px 8px rgba(255,108,44,0.25);
}
.crm-action-btn.crm-action-primary:hover {
  background: var(--accent-hover); border-color: var(--accent-hover);
  box-shadow: 0 3px 12px rgba(255,108,44,0.35);
}
.crm-last-check { font-size: 12px; color: var(--text-muted); margin-left: auto; font-style: italic; }

/* ── Section Title ── */
.crm-section-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 600; color: var(--text); margin: 0 0 12px 0;
}
.crm-section-title svg { color: var(--accent); }

/* ── Toolbar ── */
.crm-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.crm-toolbar-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-wrap: wrap; }

/* Spin animation for loading */
@keyframes crmSpin { to { transform: rotate(360deg); } }
.crm-spin { animation: crmSpin 1s linear infinite; }

/* Search */
.crm-search-wrap {
  display: flex; align-items: center; gap: 8px;
  padding: 0 14px; height: 40px; border: 1px solid var(--border); border-radius: var(--r);
  background: var(--bg-card); flex: 1; max-width: 380px;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.crm-search-wrap:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.crm-search-wrap svg { color: var(--text-muted); flex-shrink: 0; }
.crm-search-input {
  border: none; background: transparent; outline: none; flex: 1;
  font-size: 13px; color: var(--text); font-family: inherit;
}
.crm-search-input::placeholder { color: var(--text-muted); }

/* Select */
.crm-select {
  padding: 8px 32px 8px 12px; border: 1px solid var(--border); border-radius: var(--r);
  background: var(--bg-card); color: var(--text); font-size: 13px; font-family: inherit;
  cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
  transition: border-color var(--dur) var(--ease);
}
.crm-select:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }

/* ── Table ── */
.crm-table-wrap {
  overflow-x: auto; margin-bottom: 12px;
  border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden;
}
.crm-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.crm-table th {
  text-align: left; padding: 12px 16px; font-weight: 600; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.6px; color: var(--text-muted);
  border-bottom: 2px solid var(--border); background: var(--bg-raised);
}
.crm-table td {
  padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: middle;
}
.crm-table tbody tr { transition: background var(--dur) var(--ease); }
.crm-table tbody tr:hover { background: rgba(99,102,241,0.06); }
.crm-table tbody tr:last-child td { border-bottom: none; }
.crm-td-name { white-space: nowrap; }
.crm-td-date { font-size: 12px; color: var(--text-sub); white-space: nowrap; }

/* Status tags */
.crm-status {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: var(--r-full); font-size: 11px; font-weight: 600;
}
.crm-status-ok { background: rgba(34,197,94,0.15); color: #16a34a; font-weight: 700; }
.crm-status-changed { background: rgba(245,158,11,0.15); color: #d97706; font-weight: 700; }
.crm-status-new { background: rgba(100,116,139,0.1); color: #64748b; }

/* LinkedIn icon link */
.crm-linkedin-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 6px;
  transition: background var(--dur) var(--ease), transform 0.15s ease;
}
.crm-linkedin-link:hover { background: rgba(10,102,194,0.1); transform: scale(1.15); }
.crm-linkedin-link svg { flex-shrink: 0; }

/* Row highlights */
.crm-row-checked { background: rgba(34,197,94,0.04); }
.crm-row-checked:hover { background: rgba(34,197,94,0.09) !important; }
.crm-row-checked td:first-child { border-left: 3px solid #22c55e; }
.crm-row-changed { background: rgba(245,158,11,0.04); }
.crm-row-changed:hover { background: rgba(245,158,11,0.09) !important; }
.crm-row-changed td:first-child { border-left: 3px solid #f59e0b; }

.crm-verify-btn {
  padding: 3px 10px; border-radius: 4px; font-size: 12px; font-weight: 600;
  cursor: pointer; border: none; transition: all 0.15s ease;
}
.crm-verify-yes {
  background: #dcfce7; color: #16a34a;
}
.crm-verify-yes:hover { background: #22c55e; color: #fff; }
.crm-verify-no {
  background: #f1f5f9; color: #64748b;
}
.crm-verify-no:hover { background: #94a3b8; color: #fff; }

/* Change filter buttons */
.crm-change-filters { display: flex; gap: 4px; }
.crm-filter-btn {
  padding: 7px 16px; border-radius: var(--r); font-size: 12px; font-weight: 500;
  color: var(--text-sub); background: transparent; border: 1px solid transparent;
  cursor: pointer; transition: all var(--dur) var(--ease);
}
.crm-filter-btn:hover { background: var(--bg-raised); }
.crm-filter-btn.active { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); font-weight: 600; }
.crm-bulk-actions { margin-left: auto; display: flex; gap: 6px; }

/* Changes list */
.crm-changes-list { display: flex; flex-direction: column; gap: 8px; }
.crm-change-item {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 16px 20px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-lg); transition: all var(--dur) var(--ease);
}
.crm-change-item:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.crm-change-main { flex: 1; min-width: 0; }
.crm-change-type { font-size: 12px; color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: 0.3px; }
.crm-change-diff { margin-top: 4px; font-size: 13px; }
.crm-old { text-decoration: line-through; color: var(--text-muted); }
.crm-new { color: var(--green); font-weight: 600; }
.crm-change-date { color: var(--text-muted); font-size: 12px; }
.crm-change-actions { display: flex; gap: 6px; flex-shrink: 0; }

/* History + Activity lists */
.crm-history-list, .crm-activity-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.crm-history-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r);
  font-size: 13px; flex-wrap: wrap;
  transition: border-color var(--dur) var(--ease);
}
.crm-history-item:hover { border-color: var(--border-strong); }
.crm-history-name { font-weight: 600; min-width: 140px; }
.crm-history-type { font-size: 11px; color: var(--accent); background: var(--accent-soft); padding: 2px 10px; border-radius: var(--r-full); font-weight: 600; }
.crm-history-diff { flex: 1; min-width: 200px; }
.crm-history-status { font-size: 11px; }
.crm-history-date { font-size: 12px; color: var(--text-muted); margin-left: auto; }

.crm-activity-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r);
  font-size: 13px;
  transition: border-color var(--dur) var(--ease);
}
.crm-activity-item:hover { border-color: var(--border-strong); }
.crm-activity-icon { font-size: 16px; flex-shrink: 0; }
.crm-activity-text { flex: 1; }
.crm-activity-date { font-size: 12px; color: var(--text-muted); white-space: nowrap; }

/* Pagination */
.crm-pagination { display: flex; gap: 4px; justify-content: center; margin-top: 14px; }
.crm-page-btn {
  min-width: 34px; height: 34px; border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 500; color: var(--text-sub);
  background: var(--bg-card); border: 1px solid var(--border);
  cursor: pointer; transition: all var(--dur) var(--ease);
}
.crm-page-btn:hover { background: var(--bg-raised); color: var(--text); border-color: var(--border-strong); }
.crm-page-btn.active { background: var(--accent); color: #fff; font-weight: 600; border-color: var(--accent); box-shadow: 0 2px 6px rgba(255,108,44,0.2); }

/* Empty state */
.crm-empty {
  text-align: center; padding: 48px 20px; color: var(--text-muted); font-size: 14px;
  background: var(--bg-raised); border-radius: var(--r-lg); border: 1px dashed var(--border);
}

/* Scheduler badge */
.crm-scheduler-badge {
  display: inline-flex; align-items: center; padding: 3px 12px;
  border-radius: var(--r-full); font-size: 11px; font-weight: 600;
  background: var(--bg-raised); color: var(--text-muted);
  border: 1px solid var(--border);
}
.crm-scheduler-badge.active { background: rgba(34,197,94,0.12); color: var(--green); border-color: rgba(34,197,94,0.3); }

/* ── Settings Card ── */
.crm-settings-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm);
}
.crm-settings-header {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 24px;
  background: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(34,211,238,0.06));
  color: #fff;
}
.crm-settings-icon {
  width: 44px; height: 44px; border-radius: var(--r);
  background: rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.crm-settings-icon svg { color: #fff; }
.crm-settings-header h3 { font-size: 16px; font-weight: 700; margin: 0; color: #fff; }
.crm-settings-header p { font-size: 12px; color: rgba(255,255,255,0.6); margin-top: 2px; }
.crm-settings-body { padding: 0; }
.crm-settings-section { padding: 20px 24px; }
.crm-settings-section-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--text);
  margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.5px;
}
.crm-settings-section-title svg { color: var(--accent); }
.crm-settings-divider { height: 1px; background: var(--border); margin: 0; }
.crm-settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.crm-input-group { display: flex; flex-direction: column; gap: 4px; }
.crm-input-group label { font-size: 13px; font-weight: 500; color: var(--text); }
.crm-input-group small { font-size: 11px; color: var(--text-muted); }
.crm-input {
  padding: 9px 14px; border: 1px solid var(--border); border-radius: var(--r);
  background: var(--bg-input); color: var(--text); font-size: 13px; font-family: inherit;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  width: 100%;
}
.crm-input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.crm-input::placeholder { color: var(--text-muted); }

/* Toggle switch */
.crm-toggle-row { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.crm-toggle { position: relative; display: inline-block; width: 42px; height: 24px; flex-shrink: 0; }
.crm-toggle input { opacity: 0; width: 0; height: 0; }
.crm-toggle-slider {
  position: absolute; cursor: pointer; inset: 0;
  background: var(--border-strong); border-radius: var(--r-full);
  transition: background var(--dur) var(--ease);
}
.crm-toggle-slider::before {
  content: ''; position: absolute; height: 18px; width: 18px;
  left: 3px; bottom: 3px; background: #fff;
  border-radius: 50%; transition: transform var(--dur) var(--ease);
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.crm-toggle input:checked + .crm-toggle-slider { background: var(--green); }
.crm-toggle input:checked + .crm-toggle-slider::before { transform: translateX(18px); }

.crm-settings-footer {
  padding: 16px 24px; display: flex; gap: 10px;
  background: var(--bg-raised); border-top: 1px solid var(--border);
}

/* Button extras */
.btn-xs { padding: 4px 12px; font-size: 12px; border-radius: var(--r-sm); }
.btn-sm { padding: 7px 14px; font-size: 13px; }

/* Responsive */
@media (max-width: 900px) {
  .crm-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .crm-settings-grid { grid-template-columns: 1fr; }
  .crm-history-item { flex-direction: column; align-items: flex-start; }
  .crm-history-date { margin-left: 0; }
}
@media (max-width: 600px) {
  .crm-stats-grid { grid-template-columns: 1fr; }
  .crm-subtabs { flex-wrap: wrap; }
  .crm-toolbar { flex-direction: column; align-items: stretch; }
  .crm-search-wrap { max-width: none; }
  .crm-change-item { flex-direction: column; align-items: flex-start; }
  .crm-bulk-actions { margin-left: 0; }
  .crm-hero { flex-direction: column; align-items: flex-start; }
  .crm-settings-grid { grid-template-columns: 1fr; }
}

/* =============================================
   CONFIRM MODAL
   ============================================= */
.modal-overlay {
  position: fixed; inset: 0; z-index: 10002;
  display: flex; align-items: center; justify-content: center;
}
.modal-backdrop {
  position: absolute; inset: 0; background: rgba(9,9,11,0.5);
  backdrop-filter: blur(4px);
}
.modal-box {
  position: relative; z-index: 1;
  background: var(--bg-card); border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-xl); padding: 32px; text-align: center;
  min-width: 320px; max-width: 420px;
  box-shadow: var(--shadow-xl);
  animation: modalSlideIn var(--dur-md) var(--ease-out);
}
.modal-icon { color: var(--amber); margin-bottom: 12px; }
.modal-message { font-size: 14px; font-weight: 500; margin-bottom: 20px; line-height: 1.5; }
.modal-actions { display: flex; gap: 8px; justify-content: center; }

/* =============================================
   TOAST
   ============================================= */
.toast-container {
  position: fixed; top: calc(var(--navbar-h) + 12px); right: 16px;
  z-index: 10003; display: flex; flex-direction: column; gap: 8px;
}
.toast {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 20px; border-radius: var(--r);
  background: rgba(22,22,28,0.95); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow-lg); font-size: 13px; font-weight: 500;
  min-width: 280px; max-width: 420px;
  animation: toastIn 0.35s var(--ease-spring);
}
@keyframes toastIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
.toast-success { border-left: 3px solid var(--green); }
.toast-error { border-left: 3px solid var(--red); }
.toast-info { border-left: 3px solid var(--blue); }
.toast-warning { border-left: 3px solid var(--amber); }

/* =============================================
   FOOTER
   ============================================= */
.footer {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; padding: 16px 24px;
  font-size: 12px; color: var(--text-muted);
  border-top: 1px solid rgba(255,255,255,0.04); background: transparent;
}

/* =============================================
   SCROLLBAR
   ============================================= */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: var(--r-full); }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.18); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}


/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1200px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .crm-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .crm-intel-two-col { grid-template-columns: 1fr; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .send-layout { grid-template-columns: 1fr; }
  .cert-email-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .sidebar {
    position: fixed; top: auto; bottom: 0; left: 0; right: 0;
    width: 100%; height: 60px; border-right: none;
    border-top: 1px solid rgba(255,255,255,0.06);
    background: rgba(9,9,11,0.9); backdrop-filter: blur(20px);
    z-index: 50;
  }
  .sidebar-nav {
    flex-direction: row; align-items: center; justify-content: space-around;
    gap: 0; padding: 4px 8px; height: 100%;
  }
  .sidebar-btn { flex-direction: column; gap: 2px; padding: 6px 8px; font-size: 10px; border-left: none !important; }
  .sidebar-btn.active { border-left: none !important; box-shadow: none; }
  .sidebar-btn.active::before { display: none; }
  .sidebar-btn span { display: none; }
  .sidebar-btn svg { width: 20px; height: 20px; }
  .main-content { margin-left: 0; width: 100%; padding: 20px 16px 76px; }
  .nav-inner { padding: 0 16px; }
  .stats-grid { grid-template-columns: 1fr; }
  .crm-stats-grid { grid-template-columns: 1fr; }
  .page-header { flex-direction: column; align-items: flex-start; }
  .crm-header-actions { width: 100%; }
  .auth-wrapper { flex-direction: column; align-items: center; margin: 30px auto; }
  .auth-card { min-width: unset; width: 100%; }
  .crm-company-modal { width: 98%; max-height: 95vh; }
  .crm-company-stats-row { grid-template-columns: repeat(2, 1fr); }
  .crm-intel-row { flex-direction: column; align-items: stretch; }
  .crm-intel-ring { margin: 0 auto; }
  .crm-table-actions { flex-direction: column; align-items: stretch; }
  .crm-before-after { grid-template-columns: 1fr; }
  .blog-row-2col { grid-template-columns: 1fr; }
  .sirket-grid { grid-template-columns: 1fr; }
  .nav-user-name { display: none; }
  .brand-text { display: none; }
}
@media (max-width: 480px) {
  .sidebar-btn svg { width: 22px; height: 22px; }
  .sidebar-btn { padding: 6px 6px; }
  .main-content { padding: 16px 12px 72px; }
}

/* ============================================
   PROFILE & TEAM MANAGEMENT
   ============================================ */

.profile-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}
@media (max-width: 900px) {
    .profile-layout { grid-template-columns: 1fr; }
}

/* Profile Card */
.profile-card {
    grid-row: span 2;
}
.profile-card__header {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 32px 28px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.profile-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}
.profile-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: var(--gradient-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 32px;
    font-weight: 700;
    overflow: hidden;
    border: 3px solid rgba(99,102,241,0.3);
    box-shadow: 0 4px 20px rgba(99,102,241,0.25);
}
.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.profile-avatar-upload {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 30px;
    height: 30px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    border: 2px solid var(--bg-card);
    transition: background 0.2s, transform 0.2s;
}
.profile-avatar-upload:hover {
    background: var(--accent-light);
    transform: scale(1.1);
}
.profile-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.profile-info h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}
.profile-team {
    font-size: 14px;
    color: var(--accent-light);
    font-weight: 500;
    margin: 0;
}
.profile-meta {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

.profile-card__body {
    padding: 24px 28px;
}
.profile-card__body h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 16px;
}

/* Team Card */
.team-card { display: flex; flex-direction: column; }

.team-add-form {
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.team-add-form h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-sub);
    margin: 0 0 12px;
}

.team-add-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

/* Team member item */
.team-member-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    margin-bottom: 8px;
    transition: all 0.2s var(--ease);
}
.team-member-item:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(99,102,241,0.2);
}

.team-member-item__avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--gradient-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
    overflow: hidden;
}
.team-member-item__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.team-member-item__info {
    flex: 1;
    min-width: 0;
}
.team-member-item__name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.team-member-item__meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.team-member-item__actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.team-members-list {
    max-height: 400px;
    overflow-y: auto;
}

/* =============================================
   SEND MODE TOGGLE (E-posta / Takvim Daveti)
   ============================================= */
.send-mode-toggle {
    display: flex;
    gap: 0;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--r-lg);
    padding: 4px;
    margin-bottom: 20px;
}
.send-mode-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: var(--r);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-sub);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all var(--dur-md) var(--ease);
    position: relative;
}
.send-mode-btn:hover {
    color: var(--text);
    background: var(--bg-card);
}
.send-mode-btn.active {
    color: var(--accent);
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
    font-weight: 600;
}
.send-mode-btn.active svg {
    stroke: var(--accent);
}
.send-mode-btn svg {
    flex-shrink: 0;
    stroke: var(--text-muted);
    transition: stroke var(--dur) var(--ease);
}

/* Calendar invite preview info box */
.calendar-invite-preview {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: var(--accent-soft);
    border: 1px solid var(--accent-muted);
    border-radius: var(--r-lg);
    padding: 16px 18px;
    margin-bottom: 20px;
}
.cal-preview-icon {
    font-size: 28px;
    flex-shrink: 0;
    line-height: 1;
}
.calendar-invite-preview p {
    font-size: 13px;
    color: var(--text-sub);
    line-height: 1.6;
    margin: 0;
}

/* Calendar datetime row */
.cal-datetime-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 600px) {
    .cal-datetime-row { grid-template-columns: 1fr; }
}

/* =============================================
   SEND ACTIONS ROW (Gönder + Önizle)
   ============================================= */
.send-actions-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
}
.send-actions-row .btn-primary--send {
    flex: 1;
}
.btn-preview {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 18px;
    font-size: 13px;
    font-weight: 500;
    border-radius: var(--r);
    white-space: nowrap;
    cursor: pointer;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text);
}

/* =============================================
   CANLI İLERLEME BARI
   ============================================= */
.progress-container {
    margin-top: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 20px;
    animation: slideDown 0.3s ease;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.progress-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}
.progress-count {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 4px 10px;
    border-radius: 20px;
}
.progress-bar-track {
    width: 100%;
    height: 10px;
    background: var(--bg-raised);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
}
.progress-bar-fill {
    height: 100%;
    background: var(--gradient-accent);
    border-radius: 10px;
    transition: width 0.4s ease;
    position: relative;
}
.progress-bar-fill::after { display: none; }
.progress-details {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}
.progress-detail {
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}
.progress-detail--success { color: #22c55e; }
.progress-detail--fail { color: #ef4444; }
.progress-detail--current { color: var(--text-muted); font-weight: 400; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.progress-status {
    margin-top: 10px;
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
}
.progress-container.completed .progress-bar-fill {
    background: #22c55e;
}
.progress-container.completed .progress-bar-fill::after {
    animation: none;
}
.progress-container.error .progress-bar-fill {
    background: #ef4444;
}

/* =============================================
   E-POSTA ÖNİZLEME MODAL
   ============================================= */
.modal-box--lg {
    width: 90%;
    max-width: 680px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}
.modal-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}
.modal-preview-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
}
.modal-preview-body {
    flex: 1;
    padding: 0;
    overflow: hidden;
    min-height: 300px;
}
.preview-iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border: none;
    background: #f9fafb;
}
.modal-preview-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--border);
    text-align: center;
}

/* =============================================
   TAKVİM DAVETİ ŞABLON SEÇİCİ
   ============================================= */
.cal-template-row {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.cal-tpl-save-btn, .cal-tpl-del-btn {
    white-space: nowrap;
    padding: 8px 12px !important;
    min-height: 38px;
}

.badge--violet {
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 600;
}

/* Module permission checkboxes */
.module-checkboxes {
    display: flex; flex-wrap: wrap; gap: 8px;
}
.module-cb {
    display: flex; align-items: center; gap: 5px;
    padding: 5px 12px; border-radius: 6px; font-size: 13px;
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
    cursor: pointer; transition: all 0.15s; color: var(--text-sub);
}
.module-cb:hover { border-color: var(--accent); }
.module-cb input[type="checkbox"] { accent-color: var(--accent); }

/* ════════════════════════════════════════════════════════════════
   WHATSAPP MODULE
   ════════════════════════════════════════════════════════════════ */
.wp-main-grid { display: grid; grid-template-columns: 320px 1fr; gap: 16px; }
.wp-mid-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.wp-field { margin-bottom: 10px; }
.wp-label { display: block; font-size: 13px; font-weight: 600; color: var(--text-sub); margin-bottom: 4px; }
.wp-label-sm { font-size: 12px; color: var(--text-muted); white-space: nowrap; }
.wp-input {
    width: 100%; padding: 8px 12px; font-size: 13px;
    border: 1px solid var(--border); border-radius: 8px;
    background: var(--bg); color: var(--text); transition: border-color 0.15s;
    box-sizing: border-box;
}
.wp-input:focus { border-color: #25D366; outline: none; }
.wp-input-sm { width: 64px; padding: 5px 8px; font-size: 13px; border: 1px solid var(--border); border-radius: 6px; background: var(--bg); color: var(--text); text-align: center; }
.wp-select {
    width: 100%; padding: 8px 12px; font-size: 13px;
    border: 1px solid var(--border); border-radius: 8px;
    background: var(--bg); color: var(--text); cursor: pointer;
}
.wp-select:focus { border-color: #25D366; outline: none; }
.wp-textarea {
    width: 100%; padding: 12px; font-size: 14px; font-family: inherit;
    border: 1px solid var(--border); border-radius: 8px;
    background: var(--bg); color: var(--text); resize: vertical; transition: border-color 0.15s;
    box-sizing: border-box;
}
.wp-textarea:focus { border-color: #25D366; outline: none; }

/* Sessions card */
.wp-sessions-card .card__header { display: flex; align-items: center; justify-content: space-between; }
.wp-btn-add {
    background: #25D366; color: #fff; border: none; padding: 5px 14px;
    border-radius: 6px; font-size: 12px; font-weight: 700; cursor: pointer; transition: background 0.15s;
}
.wp-btn-add:hover { background: #1da851; }
.wp-sessions-empty { text-align: center; padding: 24px 12px; color: var(--text-muted); }
.wp-sessions-empty p { margin: 8px 0 4px; font-weight: 600; font-size: 14px; color: var(--text-sub); }
.wp-sessions-empty span { font-size: 12px; }
.wp-session-item {
    display: flex; align-items: center; gap: 10px; padding: 10px 0;
    border-bottom: 1px solid var(--border-soft, var(--border));
}
.wp-session-item:last-child { border-bottom: none; }
.wp-session-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.wp-session-dot.online { background: #25D366; box-shadow: 0 0 6px rgba(37,211,102,0.5); }
.wp-session-dot.offline { background: #ef4444; }
.wp-session-dot.syncing { background: var(--text-muted, #94a3b8); opacity: 0.9; }
.wp-session-dot.pending { background: #f59e0b; animation: wpPulse 1.5s infinite; }

/* Status info tooltip */
.wp-status-info-trigger {
    position: relative; display: inline-flex; align-items: center;
}
.wp-status-info-tooltip {
    display: none; position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%);
    width: 280px; padding: 14px 16px; border-radius: 12px; z-index: 100;
    background: var(--bg-card, #1a1a2e); border: 1px solid var(--border);
    box-shadow: 0 8px 30px rgba(0,0,0,.25);
    font-size: 13px; font-weight: 400; line-height: 1.6;
}
.wp-status-info-tooltip::before {
    content: ''; position: absolute; top: -6px; left: 50%; transform: translateX(-50%) rotate(45deg);
    width: 12px; height: 12px; background: var(--bg-card, #1a1a2e); border-left: 1px solid var(--border); border-top: 1px solid var(--border);
}
.wp-status-info-trigger:hover .wp-status-info-tooltip,
.wp-status-info-trigger:focus .wp-status-info-tooltip,
.wp-status-info-trigger:focus-within .wp-status-info-tooltip { display: block; }
.wp-status-info-row {
    display: flex; align-items: center; gap: 10px; padding: 5px 0;
}
.wp-status-info-row strong { min-width: 58px; }
.wp-session-info { flex: 1; min-width: 0; }
.wp-session-label { font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wp-session-phone { font-size: 11px; color: var(--text-muted); }
.wp-session-del { background: none; border: none; color: var(--text-muted); cursor: pointer; padding: 4px; font-size: 16px; line-height: 1; opacity: 0.5; transition: opacity 0.15s; }
.wp-session-del:hover { opacity: 1; color: #ef4444; }
.wp-session-reconnect {
    background: #fef3c7; color: #92400e; border: 1px solid #fcd34d;
    padding: 4px 10px; border-radius: 6px; font-size: 11px; font-weight: 700;
    cursor: pointer; transition: background 0.15s; margin-right: 6px;
}
.wp-session-reconnect:hover { background: #fde68a; }
.wp-gateway-banner {
    background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5;
    border-radius: 8px; padding: 10px 12px; font-size: 13px; margin-bottom: 12px;
}

@keyframes wpPulse { 0%,100%{ opacity:1; } 50%{ opacity:0.4; } }

/* Editor controls */
.wp-editor-controls { margin-bottom: 12px; }
.wp-var-buttons { display: flex; gap: 6px; flex-wrap: wrap; }
.wp-var-btn {
    padding: 3px 10px; font-size: 12px; font-weight: 600;
    background: rgba(37, 211, 102, 0.1); color: #25D366;
    border: 1px solid rgba(37, 211, 102, 0.3); border-radius: 6px;
    cursor: pointer; transition: all 0.15s;
}
.wp-var-btn:hover { background: #25D366; color: #fff; }

/* Attachment row */
.wp-attach-row { display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.wp-attach-btn {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 5px 12px; font-size: 12px; font-weight: 500;
    background: var(--bg-raised, var(--bg)); border: 1px solid var(--border);
    border-radius: 6px; cursor: pointer; color: var(--text-sub); transition: all 0.15s;
}
.wp-attach-btn:hover { border-color: #25D366; color: #25D366; }
.wp-attach-info { font-size: 12px; color: #25D366; font-weight: 500; }

/* Send row */
.wp-send-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.wp-delay-group { display: flex; align-items: center; gap: 8px; }
.wp-delay-hint { font-size: 11px; color: var(--text-muted); }
.wp-send-buttons { display: flex; gap: 8px; }
.wp-btn-send {
    background: #25D366; color: #fff; border: none;
    padding: 8px 24px; border-radius: 8px; font-size: 14px; font-weight: 700;
    cursor: pointer; transition: background 0.15s;
}
.wp-btn-send:hover { background: #1da851; }
.wp-btn-send:disabled { opacity: 0.5; cursor: not-allowed; }
.wp-btn-test {
    background: transparent; color: #25D366; border: 1.5px solid #25D366;
    padding: 7px 18px; border-radius: 8px; font-size: 13px; font-weight: 600;
    cursor: pointer; transition: all 0.15s;
}
.wp-btn-test:hover { background: rgba(37, 211, 102, 0.08); }
.wp-btn-stop {
    background: #ef4444; color: #fff; border: none;
    padding: 8px 20px; border-radius: 8px; font-size: 13px; font-weight: 600;
    cursor: pointer;
}
.wp-btn-stop:hover { background: #dc2626; }

/* Progress */
.wp-progress-header { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 13px; color: var(--text-sub); }
.wp-progress-bar-wrap { width: 100%; height: 8px; background: var(--bg-raised, var(--bg)); border-radius: 4px; overflow: hidden; }
.wp-progress-bar { height: 100%; background: linear-gradient(90deg, #25D366, #128C7E); border-radius: 4px; transition: width 0.3s; }
.wp-progress-stats { display: flex; gap: 16px; margin-top: 6px; font-size: 12px; }
.wp-stat-sent { color: #25D366; font-weight: 600; }
.wp-stat-failed { color: #ef4444; font-weight: 600; }
.wp-stat-current { color: var(--text-muted); }

/* Result */
.wp-result { padding: 12px 16px; border-radius: 8px; font-size: 13px; }
.wp-result-success { background: rgba(37, 211, 102, 0.08); border: 1px solid rgba(37, 211, 102, 0.3); color: var(--text); }
.wp-result-error { background: rgba(239, 68, 68, 0.08); border: 1px solid rgba(239, 68, 68, 0.3); color: #ef4444; }
.wp-error-list { margin: 8px 0 0; padding-left: 18px; font-size: 12px; }
.wp-error-list li { margin-bottom: 2px; }

/* Upload area */
.wp-upload-area {
    border: 2px dashed var(--border); border-radius: 12px;
    padding: 28px 16px; text-align: center; cursor: pointer; transition: all 0.2s;
}
.wp-upload-area:hover, .wp-upload-area.wp-drag-over { border-color: #25D366; background: rgba(37, 211, 102, 0.04); }

/* Quick form */
.wp-quick-form { display: flex; flex-direction: column; gap: 10px; }

/* Table */
.wp-table-wrap { overflow-x: auto; }
.wp-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.wp-table th {
    text-align: left; padding: 10px 12px; font-weight: 600; font-size: 12px;
    color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.4px;
    border-bottom: 1px solid var(--border);
}
.wp-table td { padding: 10px 12px; border-bottom: 1px solid var(--border-soft, var(--border)); }
.wp-table tbody tr { transition: background 0.15s; }
.wp-table tbody tr:hover { background: rgba(37, 211, 102, 0.04); }
.wp-pagination { padding: 12px 16px; }
.wp-pagination-inner { display: flex; align-items: center; justify-content: center; gap: 8px; }
.wp-page-btn {
    padding: 6px 14px; border-radius: 6px; font-size: 13px; font-weight: 500;
    background: var(--bg); border: 1px solid var(--border); color: var(--text);
    cursor: pointer; transition: all 0.15s;
}
.wp-page-btn:hover:not([disabled]) { border-color: #25D366; color: #25D366; }
.wp-page-btn[disabled] { opacity: 0.4; cursor: not-allowed; }
.wp-page-info { font-size: 13px; color: var(--text-muted); }

/* QR / Test Modal */
.wp-modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.55); backdrop-filter: blur(4px);
    z-index: 9999; display: flex; align-items: center; justify-content: center;
}
.wp-modal {
    background: var(--bg-card, var(--bg)); border: 1px solid var(--border);
    border-radius: 16px; width: 440px; max-width: 94vw; max-height: 90vh;
    overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.wp-modal-sm { width: 360px; }
.wp-modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px; border-bottom: 1px solid var(--border);
}
.wp-modal-header h3 { margin: 0; font-size: 16px; }
.wp-modal-close {
    background: none; border: none; font-size: 22px; color: var(--text-muted);
    cursor: pointer; padding: 0; line-height: 1; transition: color 0.15s;
}
.wp-modal-close:hover { color: var(--text); }
.wp-modal-body { padding: 20px; }

/* QR display */
.wp-qr-container {
    display: flex; align-items: center; justify-content: center;
    min-height: 260px; background: #fff; border-radius: 12px;
    margin-bottom: 16px; overflow: hidden;
}
.wp-qr-container img { width: 256px; height: 256px; }
.wp-qr-loading { text-align: center; color: #666; }
.wp-qr-connected { text-align: center; color: #25D366; font-weight: 700; font-size: 18px; }
.wp-qr-connected svg { display: block; margin: 0 auto 8px; }
.wp-spinner {
    width: 36px; height: 36px; border: 3px solid #e5e7eb;
    border-top-color: #25D366; border-radius: 50%;
    animation: wpSpin 0.8s linear infinite; margin: 0 auto 12px;
}
@keyframes wpSpin { to { transform: rotate(360deg); } }
.wp-qr-instructions { display: flex; flex-direction: column; gap: 8px; }
.wp-qr-step {
    display: flex; align-items: center; gap: 10px;
    font-size: 13px; color: var(--text-sub);
}
.wp-qr-step span {
    width: 24px; height: 24px; border-radius: 50%;
    background: rgba(37,211,102,0.12); color: #25D366;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700; flex-shrink: 0;
}

@media (max-width: 900px) {
    .wp-main-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .wp-mid-grid { grid-template-columns: 1fr; }
    .wp-send-row { flex-direction: column; align-items: stretch; }
    .wp-send-buttons { justify-content: stretch; }
    .wp-send-buttons .btn { flex: 1; }
}

/* ═══ SOHBET ANALİZİ — GELİŞTİRİLİYOR ═══ */
.ms-dev-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 16px; border-radius: 20px; font-size: 12px; font-weight: 700;
    background: linear-gradient(135deg, rgba(245,158,11,.15), rgba(251,191,36,.1));
    border: 1px solid rgba(245,158,11,.3); color: #f59e0b;
    letter-spacing: .5px; text-transform: uppercase;
    animation: msDevPulse 2.5s ease-in-out infinite;
}
@keyframes msDevPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .7; }
}

.ms-dev-overlay { margin-top: 16px; }
.ms-dev-overlay__inner { }

.ms-dev-hero {
    text-align: center; padding: 48px 24px 36px;
    background: linear-gradient(135deg, rgba(99,102,241,.06), rgba(139,92,246,.04));
    border: 1px solid rgba(99,102,241,.15); border-radius: 20px;
}
.ms-dev-hero__icon {
    width: 80px; height: 80px; border-radius: 20px; margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(245,158,11,.15), rgba(251,191,36,.1));
    display: flex; align-items: center; justify-content: center; color: #f59e0b;
    animation: msDevPulse 2.5s ease-in-out infinite;
}
.ms-dev-hero__title {
    font-size: 22px; font-weight: 800; margin-bottom: 10px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.ms-dev-hero__desc {
    font-size: 15px; color: var(--text-muted); max-width: 520px; margin: 0 auto; line-height: 1.6;
}

.ms-dev-features { margin-top: 28px; }
.ms-dev-features__title {
    font-size: 16px; font-weight: 700; margin-bottom: 18px; padding-left: 4px;
}
.ms-dev-features__grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px;
}
.ms-dev-feature-card {
    padding: 22px; border-radius: 16px;
    border: 1px solid var(--border); background: var(--bg-card, #1a1a2e);
    transition: all .2s;
}
.ms-dev-feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,.12);
    border-color: rgba(99,102,241,.3);
}
.ms-dev-feature-card__icon {
    width: 44px; height: 44px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.ms-dev-feature-card h4 {
    font-size: 15px; font-weight: 700; margin-bottom: 8px;
}
.ms-dev-feature-card p {
    font-size: 13px; color: var(--text-muted); line-height: 1.6; margin: 0;
}

.ms-dev-footer {
    display: flex; align-items: flex-start; gap: 10px;
    margin-top: 28px; padding: 16px 20px; border-radius: 12px;
    background: rgba(99,102,241,.05); border: 1px solid rgba(99,102,241,.12);
}
.ms-dev-footer p {
    font-size: 13px; color: var(--text-muted); line-height: 1.5; margin: 0;
}

@media (max-width: 768px) {
    .ms-dev-features__grid { grid-template-columns: 1fr; }
    .ms-dev-hero { padding: 32px 16px 24px; }
    .ms-dev-hero__title { font-size: 18px; }
}

/* ═══ EMR DOSYA TALEPLERİ ═══ */
.emr-refresh-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 16px; border-radius: 8px; font-size: 13px; font-weight: 600;
    background: var(--bg-raised, rgba(0,0,0,.04)); border: 1px solid var(--border);
    color: var(--text-sub); cursor: pointer; transition: all .15s;
}
.emr-refresh-btn:hover { border-color: var(--accent, #6366f1); color: var(--accent, #6366f1); }

/* Talep oluşturma kartı */
.emr-create-card {
    display: flex; gap: 20px; align-items: flex-start;
    margin-top: 16px; padding: 24px; border-radius: 16px;
    background: linear-gradient(135deg, rgba(99,102,241,.06), rgba(139,92,246,.04));
    border: 1px solid rgba(99,102,241,.18);
}
.emr-create-card__icon {
    width: 52px; height: 52px; border-radius: 14px; flex-shrink: 0;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    display: flex; align-items: center; justify-content: center; color: #fff;
}
.emr-create-card__form { flex: 1; min-width: 0; }
.emr-create-card__form h3 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.emr-create-hint { font-size: 13px; color: var(--text-muted); margin-bottom: 14px; }
.emr-create-hint em { color: var(--text-sub); font-style: normal; font-weight: 500; }
.emr-form-row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.emr-form-group { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.emr-form-group label {
    font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .3px;
}
.emr-form-group label span { text-transform: none; font-weight: 400; opacity: .7; }
.emr-form-group input {
    padding: 9px 14px; font-size: 14px; border: 1px solid var(--border); border-radius: 10px;
    background: var(--bg); color: var(--text); transition: border-color .15s; width: 100%;
}
.emr-form-group input:focus { border-color: #6366f1; outline: none; }
.emr-create-btn {
    display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
    padding: 9px 20px; border-radius: 10px; border: none; font-size: 14px; font-weight: 700;
    background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff; cursor: pointer;
    transition: opacity .15s, transform .15s;
}
.emr-create-btn:hover { opacity: .9; transform: translateY(-1px); }

.emr-section-card { margin-top: 20px; }

/* Talep kartları */
.emr-req-card {
    border: 1px solid var(--border); border-radius: 14px; margin: 14px;
    overflow: hidden; transition: box-shadow .2s;
}
.emr-req-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.08); }
.emr-req-card__head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 14px 18px;
    background: linear-gradient(135deg, rgba(99,102,241,.05), rgba(139,92,246,.03));
    border-bottom: 1px solid var(--border);
}
.emr-req-card__head-title { font-size: 15px; font-weight: 700; }
.emr-req-card__head-id { font-size: 12px; color: var(--text-muted); margin-left: 8px; font-family: monospace; }
.emr-req-card__head-date { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.emr-req-card__body { padding: 16px 18px; }
.emr-req-desc { font-size: 13px; color: var(--text-sub); margin: 0 0 14px; line-height: 1.5; }
.emr-close-btn {
    padding: 5px 14px; border-radius: 8px; font-size: 12px; font-weight: 600;
    border: 1px solid rgba(239,68,68,.3); background: rgba(239,68,68,.08);
    color: #ef4444; cursor: pointer; transition: all .15s;
}
.emr-close-btn:hover { background: #ef4444; color: #fff; }
.emr-delete-btn {
    width: 30px; height: 30px; border-radius: 8px; border: 1px solid rgba(239,68,68,.2);
    background: rgba(239,68,68,.06); color: #ef4444; font-size: 14px; cursor: pointer;
    display: flex; align-items: center; justify-content: center; transition: all .15s;
}
.emr-delete-btn:hover { background: #ef4444; color: #fff; }
.emr-status-closed {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 12px; border-radius: 20px; font-size: 11px; font-weight: 600;
    background: rgba(107,114,128,.12); color: var(--text-muted);
}

/* Üye tablosu */
.emr-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.emr-table thead { background: var(--bg-raised, rgba(0,0,0,.02)); }
.emr-table th {
    padding: 10px 14px; text-align: left; font-size: 11px; font-weight: 700;
    color: var(--text-muted); text-transform: uppercase; letter-spacing: .4px;
    border-bottom: 2px solid var(--border);
}
.emr-table td {
    padding: 12px 14px; border-bottom: 1px solid var(--border-soft, var(--border));
    vertical-align: middle;
}
.emr-table tr:last-child td { border-bottom: none; }
.emr-table tr:hover { background: rgba(99,102,241,.03); }
.emr-member-name { font-weight: 600; font-size: 13px; }
.emr-member-user { font-size: 11px; color: var(--text-muted); }
.emr-status-badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 600;
}
.emr-status-badge--ok { background: rgba(34,197,94,.1); color: #22c55e; }
.emr-status-badge--wait { background: rgba(245,158,11,.1); color: #f59e0b; }
.emr-dl-btn {
    padding: 4px 12px; border-radius: 6px; font-size: 12px; font-weight: 600;
    background: rgba(99,102,241,.1); color: #6366f1; border: none; cursor: pointer; transition: all .15s;
}
.emr-dl-btn:hover { background: #6366f1; color: #fff; }
.emr-note-input {
    padding: 5px 10px; font-size: 12px; border: 1px solid var(--border); border-radius: 8px;
    background: var(--bg); color: var(--text); width: 100%; max-width: 200px; transition: border-color .15s;
}
.emr-note-input:focus { border-color: #6366f1; outline: none; }
.emr-review-btn {
    padding: 4px 12px; border-radius: 6px; font-size: 11px; font-weight: 600;
    background: rgba(34,197,94,.1); color: #22c55e; border: none; cursor: pointer; transition: all .15s;
}
.emr-review-btn:hover { background: #22c55e; color: #fff; }

/* Audit log */
.emr-log-subtitle { font-size: 12px; color: var(--text-muted); font-weight: 400; }
.emr-log-item {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 12px 18px; border-bottom: 1px solid var(--border-soft, var(--border));
    transition: background .1s;
}
.emr-log-item:last-child { border-bottom: none; }
.emr-log-item:hover { background: rgba(99,102,241,.03); }
.emr-log-icon {
    width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.emr-log-icon--create { background: rgba(99,102,241,.12); color: #6366f1; }
.emr-log-icon--upload { background: rgba(34,197,94,.12); color: #22c55e; }
.emr-log-icon--review { background: rgba(245,158,11,.12); color: #f59e0b; }
.emr-log-icon--close { background: rgba(239,68,68,.12); color: #ef4444; }
.emr-log-icon--notify { background: rgba(6,182,212,.12); color: #06b6d4; }
.emr-log-icon--default { background: rgba(107,114,128,.12); color: var(--text-muted); }
.emr-log-body { flex: 1; min-width: 0; }
.emr-log-action { font-size: 13px; font-weight: 600; color: var(--text); }
.emr-log-actor { font-weight: 400; color: var(--text-sub); }
.emr-log-detail { font-size: 12px; color: var(--text-muted); margin-top: 3px; line-height: 1.4; }
.emr-log-time { font-size: 11px; color: var(--text-muted); white-space: nowrap; margin-top: 2px; }

/* Üye bildirim banner */
.emr-notify-banner {
    display: flex; align-items: center; gap: 12px;
    padding: 16px 20px; border-radius: 14px; margin-bottom: 16px;
    background: linear-gradient(135deg, rgba(245,158,11,.1), rgba(251,191,36,.06));
    border: 1px solid rgba(245,158,11,.3);
}
.emr-notify-banner__icon {
    width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
    background: rgba(245,158,11,.15); display: flex; align-items: center; justify-content: center;
    font-size: 20px;
}
.emr-notify-banner__text { font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.4; }
.emr-notify-banner__text strong { color: #f59e0b; }

/* Üye talep kartları */
.emr-member-card {
    border: 1px solid var(--border); border-radius: 14px; margin-bottom: 16px; overflow: hidden;
}
.emr-member-card__head {
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(245,158,11,.06), transparent);
    border-bottom: 1px solid var(--border);
}
.emr-member-card__title { font-size: 15px; font-weight: 700; color: #f59e0b; margin-bottom: 4px; }
.emr-member-card__desc { font-size: 13px; color: var(--text-muted); }
.emr-member-card__body { padding: 16px 20px; }
.emr-upload-done {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 16px; border-radius: 10px; margin-bottom: 14px;
    background: rgba(34,197,94,.06); border: 1px solid rgba(34,197,94,.15);
}
.emr-upload-done__icon { color: #22c55e; flex-shrink: 0; }
.emr-upload-done__info { font-size: 13px; color: var(--text); line-height: 1.5; }
.emr-upload-done__info strong { font-weight: 600; }
.emr-upload-done__info small { display: block; font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.emr-leader-note {
    margin-top: 8px; padding: 10px 14px; border-radius: 8px;
    background: rgba(99,102,241,.06); border-left: 3px solid #6366f1;
    font-size: 13px; color: var(--text-sub);
}
.emr-upload-row {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px;
}
.emr-file-input {
    font-size: 13px; color: var(--text-sub);
}
.emr-send-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 20px; border-radius: 10px; border: none; font-size: 13px; font-weight: 700;
    background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff; cursor: pointer;
    transition: opacity .15s, transform .15s;
}
.emr-send-btn:hover { opacity: .9; transform: translateY(-1px); }
.emr-up-status { font-size: 12px; color: var(--text-muted); }

/* Sidebar bildirim badge */
.emr-notif-badge {
    position: absolute; top: 6px; right: 8px;
    min-width: 18px; height: 18px; border-radius: 9px; padding: 0 5px;
    background: #ef4444; color: #fff; font-size: 10px; font-weight: 700;
    display: flex; align-items: center; justify-content: center; line-height: 1;
    animation: emrBadgePulse 2s infinite;
}
@keyframes emrBadgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* Bildirim zili */
.emr-bell-wrap { position: relative; }
.emr-bell-btn {
    position: relative; display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border);
    background: var(--bg-raised, rgba(0,0,0,.04)); color: var(--text-sub); cursor: pointer;
    transition: all .15s;
}
.emr-bell-btn:hover { border-color: var(--accent, #6366f1); color: var(--accent, #6366f1); }
.emr-bell-badge {
    position: absolute; top: -4px; right: -4px;
    min-width: 18px; height: 18px; border-radius: 9px; padding: 0 5px;
    background: #ef4444; color: #fff; font-size: 10px; font-weight: 700;
    display: flex; align-items: center; justify-content: center; line-height: 1;
    border: 2px solid var(--bg, #fff);
}
.emr-bell-btn.has-unread { color: #6366f1; animation: emrBellShake .6s ease-in-out; }
@keyframes emrBellShake {
    0% { transform: rotate(0); }
    15% { transform: rotate(14deg); }
    30% { transform: rotate(-14deg); }
    45% { transform: rotate(8deg); }
    60% { transform: rotate(-8deg); }
    75% { transform: rotate(3deg); }
    100% { transform: rotate(0); }
}

/* Bildirim paneli */
.emr-notif-panel {
    position: absolute; top: calc(100% + 8px); right: 0; z-index: 200;
    width: 360px; max-height: 440px; border-radius: 14px;
    background: var(--bg-card, #1a1a2e); border: 1px solid var(--border);
    box-shadow: 0 12px 40px rgba(0,0,0,.3);
    display: flex; flex-direction: column; overflow: hidden;
}
.emr-notif-panel__header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 18px; border-bottom: 1px solid var(--border);
    font-size: 14px;
}
.emr-notif-panel__readall {
    font-size: 12px; color: #6366f1; background: none; border: none; cursor: pointer;
    font-weight: 600; transition: opacity .15s;
}
.emr-notif-panel__readall:hover { opacity: .7; }
.emr-notif-panel__list {
    flex: 1; overflow-y: auto; max-height: 380px;
}
.emr-notif-empty {
    padding: 30px; text-align: center; color: var(--text-muted); font-size: 13px;
}

/* Tekil bildirim */
.emr-notif-item {
    display: flex; gap: 12px; padding: 12px 18px;
    border-bottom: 1px solid var(--border-soft, var(--border));
    cursor: pointer; transition: background .1s;
}
.emr-notif-item:last-child { border-bottom: none; }
.emr-notif-item:hover { background: rgba(99,102,241,.04); }
.emr-notif-item.unread { background: rgba(99,102,241,.06); }
.emr-notif-item.unread .emr-notif-item__dot { display: block; }
.emr-notif-item__icon {
    width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.emr-notif-item__icon--request { background: rgba(99,102,241,.12); color: #6366f1; }
.emr-notif-item__icon--upload { background: rgba(34,197,94,.12); color: #22c55e; }
.emr-notif-item__icon--review { background: rgba(245,158,11,.12); color: #f59e0b; }
.emr-notif-item__icon--closed { background: rgba(239,68,68,.12); color: #ef4444; }
.emr-notif-item__body { flex: 1; min-width: 0; }
.emr-notif-item__title {
    font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.4;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.emr-notif-item__text {
    font-size: 12px; color: var(--text-muted); line-height: 1.4; margin-top: 2px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.emr-notif-item__time { font-size: 11px; color: var(--text-muted); margin-top: 3px; }
.emr-notif-item__dot {
    display: none; width: 8px; height: 8px; border-radius: 50%; background: #6366f1;
    flex-shrink: 0; margin-top: 6px;
}

@media (max-width: 768px) {
    .emr-create-card { flex-direction: column; }
    .emr-form-row { flex-direction: column; }
    .emr-table { font-size: 12px; }
    .emr-table th, .emr-table td { padding: 8px 10px; }
    .emr-notif-panel { width: 300px; right: -40px; }
}

/* ════════════════════════════════════════════════════════════
   SOSYAL MEDYA (Instagram + LinkedIn) panel
   ════════════════════════════════════════════════════════════ */
.social-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
@media (max-width: 960px) { .social-grid { grid-template-columns: 1fr; } }

.social-card .card__header { gap: 12px; flex-wrap: wrap; }
.social-connect-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.social-connect-btn {
    display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px;
    font-size: 13px; font-weight: 600;
}

.social-conn-item {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--r-lg);
    margin-bottom: 10px; background: rgba(255,255,255,0.02);
    transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.social-conn-item:hover { border-color: var(--border-strong); }
.social-conn-icon {
    width: 38px; height: 38px; border-radius: var(--r); display: flex;
    align-items: center; justify-content: center; flex-shrink: 0; color: #fff;
}
.social-conn-icon--instagram { background: linear-gradient(135deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.social-conn-icon--linkedin { background: #0a66c2; }
.social-conn-info { flex: 1; min-width: 0; }
.social-conn-name { font-weight: 600; color: var(--text); font-size: 14px; }
.social-conn-meta { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

.social-media-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.social-media-info { font-size: 12px; color: var(--text-muted); }
.social-media-preview {
    margin-top: 10px; max-width: 100%; max-height: 280px; overflow: hidden;
    border-radius: var(--r); border: 1px solid var(--border);
}
.social-media-preview img, .social-media-preview video {
    width: 100%; max-height: 280px; object-fit: contain; display: block; background: #000;
}

.social-status {
    margin-top: 10px; padding: 10px 14px; border-radius: var(--r);
    border: 1px solid var(--border); background: rgba(255,255,255,0.03); font-size: 13px;
}

.social-job-list { display: flex; flex-direction: column; gap: 10px; padding: 4px; }
.social-job-item {
    display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: start;
    padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--r-lg);
    background: rgba(255,255,255,0.02);
}
.social-job-item--failed { border-color: rgba(248,113,113,0.35); }
.social-job-item--completed { border-color: rgba(52,211,153,0.3); }
.social-job-head {
    grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between;
    gap: 10px; flex-wrap: wrap;
}
.social-job-platform { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text); }
.social-job-status {
    padding: 4px 10px; border-radius: var(--r-full); font-size: 11px; font-weight: 700;
    white-space: nowrap;
}
.social-job-status--pending { background: var(--amber-soft); color: var(--amber); }
.social-job-status--publishing { background: var(--blue-soft); color: var(--blue); }
.social-job-status--completed { background: var(--green-soft); color: var(--green); }
.social-job-status--failed { background: var(--red-soft); color: var(--red); }

.social-job-body { grid-column: 1; min-width: 0; }
.social-job-caption {
    font-size: 13px; color: var(--text); line-height: 1.55; white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.social-job-meta {
    display: flex; gap: 14px; flex-wrap: wrap;
    font-size: 12px; color: var(--text-muted); margin-top: 6px;
}
.social-job-error {
    margin-top: 8px; padding: 8px 12px; border-radius: var(--r-sm);
    background: var(--red-soft); color: var(--red); font-size: 12px;
}

/* Toplu modül işlemi */
.bulk-mod-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 16px; align-items: start;
}
@media (max-width: 960px) { .bulk-mod-grid { grid-template-columns: 1fr; } }
.bulk-mod-targets { display: flex; flex-direction: column; gap: 6px; }
.bulk-mod-actions {
    display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 12px;
}
.bulk-mod-actions .btn-primary,
.bulk-mod-actions .btn-secondary { padding: 10px 18px; font-size: 13px; }
