/* ==========================================================================
   MergenFlow Design System & Application Stylesheet
   Pixel-Perfect Match with Modern Clean SaaS Architecture
   ========================================================================== */

:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* Brand Palette */
  --brand-blue: #2563eb;
  --brand-blue-hover: #1d4ed8;
  --brand-blue-subtle: #eff6ff;
  --brand-blue-border: #dbeafe;

  --brand-green: #16a34a;
  --brand-green-hover: #15803d;
  --brand-green-subtle: #f0fdf4;
  --brand-green-border: #dcfce7;

  /* Neutral Palette (Light) */
  --bg-body: #f8fafc;
  --bg-surface: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-muted: #e2e8f0;

  --border-color: #e2e8f0;
  --border-light: #f1f5f9;

  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;

  /* Dimensions & Radius */
  --sidebar-width: 250px;
  --header-height: 70px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.03);
}

/* Dark Mode Tokens */
[data-theme="dark"] {
  --bg-body: #0b0f17;
  --bg-surface: #111827;
  --bg-subtle: #1f2937;
  --bg-muted: #374151;

  --border-color: #1f2937;
  --border-light: #2d3748;

  --text-primary: #f9fafb;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-light: #64748b;

  --brand-blue-subtle: rgba(37, 99, 235, 0.15);
  --brand-blue-border: rgba(37, 99, 235, 0.3);
  --brand-green-subtle: rgba(22, 163, 74, 0.15);
  --brand-green-border: rgba(22, 163, 74, 0.3);
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-body);
  color: var(--text-primary);
  font-size: 13.5px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ==========================================================================
   Genel Temel Bileşenler (Buttons, Forms, Cards, Page Layout)
   ========================================================================== */

/* Kartlar */
.card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* Butonlar */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-md);
  padding: 8px 16px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1.4;
  white-space: nowrap;
  outline: none;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--brand-blue);
  color: #ffffff;
  border-color: var(--brand-blue);
}

.btn-primary:hover {
  background-color: var(--brand-blue-hover);
  border-color: var(--brand-blue-hover);
}

.btn-outline {
  background-color: var(--bg-surface);
  color: var(--text-secondary);
  border-color: var(--border-color);
}

.btn-outline:hover {
  background-color: var(--bg-subtle);
  color: var(--text-primary);
  border-color: #cbd5e1;
}

.btn-outline-danger {
  background-color: var(--bg-surface);
  color: #ef4444;
  border-color: #fecaca;
}

.btn-outline-danger:hover {
  background-color: #fef2f2;
  border-color: #f87171;
}

.btn-soft-primary {
  background-color: var(--brand-blue-subtle);
  color: var(--brand-blue);
  border-color: transparent;
}

.btn-soft-primary:hover {
  background-color: #dbeafe;
}

.btn-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Form Elemanları */
.form-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  width: 100%;
  margin-bottom: 0;
  box-sizing: border-box;
}

.form-label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
  text-align: left;
}

.form-control {
  display: block;
  width: 100%;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 13px;
  color: var(--text-primary);
  background-color: var(--bg-surface);
  outline: none;
  box-sizing: border-box;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.form-control::placeholder {
  color: var(--text-light);
}

.select-wrapper {
  position: relative;
  width: 100%;
}

.form-select {
  display: block;
  width: 100%;
  height: 40px;
  padding: 0 34px 0 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 13px;
  color: var(--text-primary);
  background-color: var(--bg-surface);
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%2364748B' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  box-sizing: border-box;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-select:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* Sayfa Üst Başlık Alanı */
.page-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.page-heading {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  letter-spacing: -0.4px;
}

.page-subheading {
  font-size: 13.5px;
  color: var(--text-muted);
  margin: 0;
}

/* App Container Layout */
.app-container {
  display: flex;
  min-height: 100vh;
}

/* ==========================================================================
   Sidebar Navigation (Sol Menü)
   ========================================================================== */
.app-sidebar {
  width: var(--sidebar-width);
  background-color: var(--bg-surface);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
}

.sidebar-header {
  height: var(--header-height);
  display: flex;
  align-items: center;
  padding: 0 22px;
  border-bottom: 1px solid var(--border-light);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-text {
  font-size: 19px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.brand-text span {
  color: #0284c7;
}

.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 13.5px;
  transition: all 0.15s ease;
}

.nav-link .nav-icon {
  width: 19px;
  height: 19px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: color 0.15s ease;
}

.nav-link:hover {
  background-color: var(--bg-subtle);
  color: var(--text-primary);
}

.nav-link:hover .nav-icon {
  color: var(--brand-blue);
}

.nav-link.active {
  background-color: var(--brand-blue-subtle);
  color: var(--brand-blue);
  font-weight: 600;
}

.nav-link.active .nav-icon {
  color: var(--brand-blue);
}

/* Sidebar Nav Dropdown (Modüller Alt Menüleri) */
.nav-item-dropdown {
  display: flex;
  flex-direction: column;
}

.nav-link-parent {
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
}

.nav-chevron {
  transition: transform 0.2s ease;
  color: var(--text-muted);
}

.nav-item-dropdown.open .nav-chevron {
  transform: rotate(180deg);
  color: var(--brand-blue);
}

.nav-sub-menu {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 4px 0 6px 14px;
  margin: 3px 0 3px 18px;
  border-left: 2px solid var(--border-color, #e2e8f0);
}

.nav-item-dropdown.open .nav-sub-menu {
  display: flex;
}

.nav-sub-link {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  border-radius: var(--radius-sm, 6px);
  color: var(--text-secondary, #64748b);
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s ease;
}

.nav-sub-link .sub-ico {
  width: 15px;
  font-size: 12px;
  text-align: center;
  flex-shrink: 0;
}

.nav-sub-link:hover {
  background-color: var(--bg-subtle, #f8fafc);
  color: var(--brand-blue, #2563eb);
}

.nav-sub-link.active {
  background-color: var(--brand-blue-subtle, #eff6ff);
  color: var(--brand-blue, #2563eb);
  font-weight: 600;
}

.nav-sub-link .sub-badge {
  margin-left: auto;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
  background: var(--bg-subtle, #f1f5f9);
  color: var(--text-muted, #64748b);
}

.nav-sub-link.active .sub-badge {
  background: #dbeafe;
  color: #1d4ed8;
}

/* Sidebar Pro Paket Card */
.sidebar-footer {
  padding: 12px;
  border-top: 1px solid var(--border-light);
}

.pro-package-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
}

.pro-pkg-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pro-pkg-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-primary);
}

.pro-crown {
  font-size: 14px;
}

.pro-pkg-chevron {
  width: 14px;
  height: 14px;
  color: var(--text-light);
}

.pro-upgrade-link {
  display: block;
  text-align: center;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  font-size: 11.5px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 6px;
  margin: 8px 0 12px 0;
  text-decoration: none;
  transition: all 0.2s ease;
}

.pro-upgrade-link:hover {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  color: #1e40af;
  border-color: #93c5fd;
  transform: translateY(-1px);
}

[data-theme="dark"] .pro-upgrade-link {
  background: rgba(37, 99, 235, 0.15);
  color: #60a5fa;
  border-color: rgba(96, 165, 250, 0.3);
}

[data-theme="dark"] .pro-upgrade-link:hover {
  background: rgba(37, 99, 235, 0.25);
  color: #93c5fd;
}

.pro-channel-quota {
  margin-top: 6px;
}

.pro-channel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  margin-bottom: 4px;
}

.pro-channel-lbl {
  color: var(--text-secondary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
}

.pro-channel-stat {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-primary);
}

.pro-progress-track {
  height: 5px;
  background-color: var(--bg-muted, #f1f5f9);
  border-radius: var(--radius-full);
  overflow: hidden;
}

[data-theme="dark"] .pro-progress-track {
  background-color: #334155;
}

.pro-progress-fill {
  height: 100%;
  background-color: var(--brand-blue);
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
}

.pro-progress-fill.fill-email {
  background: linear-gradient(90deg, #38bdf8, #2563eb);
}

.pro-progress-fill.fill-wa {
  background: linear-gradient(90deg, #34d399, #059669);
}

.pro-pkg-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.pro-pkg-usage {
  display: flex;
  flex-direction: column;
}

.usage-count {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-primary);
}

.usage-label {
  font-size: 11px;
  color: var(--text-muted);
}

.pro-pkg-percent {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
}

/* ==========================================================================
   Header (Üst Bar)
   ========================================================================== */
.app-main {
  margin-left: var(--sidebar-width);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.app-header {
  height: var(--header-height);
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 90;
}

.header-search-box {
  position: relative;
  display: flex;
  align-items: center;
  width: 380px;
  height: 42px;
  background-color: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0 12px;
  transition: border-color 0.15s;
}

.header-search-box:focus-within {
  border-color: var(--brand-blue);
  background-color: var(--bg-surface);
}

.search-icon {
  width: 17px;
  height: 17px;
  color: var(--text-light);
  margin-right: 8px;
  flex-shrink: 0;
}

.search-input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 13px;
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  color: var(--text-primary);
}

.search-input::placeholder {
  color: var(--text-light);
}

.search-shortcut {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  height: 22px;
  margin-left: 8px;
  padding: 0 7px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  color: var(--text-muted);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

/* Genel arama: açılır sonuç paneli */
.global-search-panel {
  display: none;
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  width: 100%;
  min-width: 320px;
  max-width: calc(100vw - 24px);
  max-height: 420px;
  overflow-y: auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  z-index: 1000;
}

.global-search-panel.show {
  display: block;
}

.global-search-group {
  padding: 10px 14px 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-light);
}

.global-search-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  color: inherit;
  text-decoration: none;
}

.global-search-item:hover,
.global-search-item.is-active {
  background-color: var(--bg-subtle);
}

.global-search-item-icon {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  background: var(--bg-subtle);
  color: var(--text-secondary);
}

.global-search-item-body {
  flex: 1;
  min-width: 0;
}

.global-search-item-title,
.global-search-item-sub {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.global-search-item-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.global-search-item-sub {
  font-size: 11.5px;
  color: var(--text-muted);
}

.global-search-empty {
  padding: 22px 14px;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-muted);
}

.header-right-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Tema Değiştirici Hap */
.theme-toggle-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 4px 10px;
  cursor: pointer;
}

.theme-icon.sun {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
}

.theme-moon-badge {
  background: #1e293b;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.theme-icon.moon {
  width: 12px;
  height: 12px;
}

.theme-chevron {
  width: 12px;
  height: 12px;
  color: var(--text-muted);
}

/* Bildirim Butonu */
.header-notification-btn {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.15s;
}

.header-notification-btn svg {
  width: 20px;
  height: 20px;
}

.header-notification-btn:hover {
  background-color: var(--bg-subtle);
}

.notification-badge-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 8px;
  height: 8px;
  background-color: #ef4444;
  border-radius: 50%;
  border: 2px solid var(--bg-surface);
}

/* Bildirim Çanı: okunmamış sayacı + açılır panel */
.header-notification-wrapper {
  position: relative;
}

button.header-notification-btn {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
}

.notification-badge-count {
  position: absolute;
  top: 2px;
  right: 1px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  background-color: #ef4444;
  color: #ffffff;
  border-radius: 9999px;
  border: 2px solid var(--bg-surface);
  font-size: 10px;
  font-weight: 700;
  line-height: 13px;
  text-align: center;
  box-sizing: border-box;
}

.notification-badge-count[hidden] {
  display: none;
}

.notification-panel {
  display: none;
  position: absolute;
  right: 0;
  top: 46px;
  width: 360px;
  max-width: calc(100vw - 24px);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  z-index: 1000;
  overflow: hidden;
}

.notification-panel.show {
  display: block;
}

.notification-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-light);
  font-size: 13px;
  color: var(--text-primary);
}

.notification-panel-header a {
  font-size: 12px;
  color: var(--brand-blue);
  text-decoration: none;
}

.notification-panel-list {
  max-height: 380px;
  overflow-y: auto;
}

.notification-panel-empty {
  padding: 28px 14px;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-muted);
}

.notification-item {
  display: flex;
  gap: 10px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border-light);
  color: inherit;
  text-decoration: none;
  transition: background 0.15s;
}

.notification-item:last-child {
  border-bottom: none;
}

a.notification-item:hover {
  background-color: var(--bg-subtle);
}

.notification-item.is-unread {
  background-color: rgba(37, 99, 235, 0.06);
}

.notification-item-icon {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  background: var(--bg-subtle);
  color: var(--text-secondary);
}

.notification-item-icon.nt-email_completed { background: rgba(37, 99, 235, 0.12); color: #2563eb; }
.notification-item-icon.nt-send_failed { background: rgba(239, 68, 68, 0.12); color: #ef4444; }
.notification-item-icon.nt-contact_added { background: rgba(16, 185, 129, 0.12); color: #10b981; }
.notification-item-icon.nt-automation_triggered { background: rgba(245, 158, 11, 0.14); color: #d97706; }

.notification-item-body {
  flex: 1;
  min-width: 0;
}

.notification-item-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-primary);
  overflow-wrap: anywhere;
}

.notification-unread-dot {
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-blue);
}

.notification-item-message {
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-secondary);
  overflow-wrap: anywhere;
}

.notification-item-time {
  margin-top: 3px;
  font-size: 11px;
  color: var(--text-muted);
}

.notification-panel-footer {
  display: block;
  padding: 10px 14px;
  border-top: 1px solid var(--border-light);
  text-align: center;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--brand-blue);
  text-decoration: none;
}

.notification-panel-footer:hover {
  background-color: var(--bg-subtle);
}

/* Ayarlar → Bildirimler tablosu */
.notifications-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.notifications-toolbar .form-select {
  width: auto;
  height: 36px;
  font-size: 12.5px;
}

#notifications-datatable .notification-item-icon {
  flex: none;
}

#notifications-datatable tr.is-unread td {
  background-color: rgba(37, 99, 235, 0.05);
}

/* Profil Menüsü */
.user-profile-wrapper {
  position: relative;
}

.user-profile-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-md);
  transition: background 0.15s;
}

.user-profile-badge:hover {
  background-color: var(--bg-subtle);
}

.avatar-circle-blue {
  width: 36px;
  height: 36px;
  background-color: var(--brand-blue);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  overflow: hidden;
  flex-shrink: 0;
}

.avatar-circle-blue img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: contain;
  display: block;
}

.user-profile-info {
  display: flex;
  flex-direction: column;
}

.user-profile-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.user-profile-sub {
  font-size: 11px;
  color: var(--text-muted);
}

.user-profile-chevron {
  width: 14px;
  height: 14px;
  color: var(--text-light);
}

.dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 48px;
  width: 200px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 6px 0;
  z-index: 1000;
}

.dropdown-menu.show {
  display: block;
}

.dropdown-user-header {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-light);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
}

.dropdown-user-header small {
  display: block;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 2px;
}

.dropdown-item {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 8px 14px;
  color: var(--text-secondary);
  font-size: 12.5px;
  cursor: pointer;
  transition: background 0.15s;
}

.dropdown-item:hover {
  background-color: var(--bg-subtle);
}

.dropdown-item.text-danger {
  color: #ef4444;
}

/* Superadmin Banner */
.superadmin-banner {
  background: #1e293b;
  color: #f8fafc;
  padding: 8px 32px;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #334155;
}

.badge-superadmin {
  background: #dc2626;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.exit-link {
  color: #60a5fa;
  font-weight: 600;
  text-decoration: underline;
  font-size: 11.5px;
}

/* ==========================================================================
   Dashboard Page (Kontrol Paneli Ana İçerik)
   ========================================================================== */
.page-content {
  padding: 32px;
}

/* Başlık ve Eylem Alanı */
.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.dash-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.dash-subtitle {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-top: 3px;
}

.btn-create-campaign {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--brand-blue);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
  transition: background 0.15s, transform 0.15s;
}

.btn-create-campaign:hover {
  background-color: var(--brand-blue-hover);
  transform: translateY(-1px);
}

/* 4 Metrik Kartı Izgarası */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.metric-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}

.metric-top {
  margin-bottom: 12px;
}

.metric-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.metric-icon-box {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.bg-blue-subtle {
  background-color: var(--brand-blue-subtle);
}

.text-blue {
  color: var(--brand-blue);
}

.bg-green-subtle {
  background-color: var(--brand-green-subtle);
}

.text-green {
  color: var(--brand-green);
}

.bg-emerald-subtle {
  background-color: #ecfdf5;
}

.text-emerald {
  color: #10b981;
}

.bg-purple-subtle {
  background-color: #eef2ff;
}

.text-purple {
  color: #4f46e5;
}

.metric-body {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.metric-info {
  display: flex;
  flex-direction: column;
}

.metric-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

.metric-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  margin: 3px 0 6px 0;
}

.metric-trend {
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 3px;
}

.trend-up {
  color: #16a34a;
}

.metric-link {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--brand-blue);
  display: inline-block;
  margin-top: 4px;
  transition: opacity 0.15s;
}

.metric-link:hover {
  opacity: 0.85;
}

/* Mini Bar Grafikleri */
.mini-bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 38px;
  width: 44px;
}

.mini-bar-chart span {
  width: 5px;
  border-radius: 2px 2px 0 0;
  display: block;
}

.chart-blue span {
  background: #3b82f6;
}

.chart-blue span:nth-child(1) {
  opacity: 0.35;
}

.chart-blue span:nth-child(2) {
  opacity: 0.50;
}

.chart-blue span:nth-child(3) {
  opacity: 0.65;
}

.chart-blue span:nth-child(4) {
  opacity: 0.85;
}

.chart-blue span:nth-child(5) {
  opacity: 1.00;
}

.chart-green span {
  background: #22c55e;
}

.chart-green span:nth-child(1) {
  opacity: 0.35;
}

.chart-green span:nth-child(2) {
  opacity: 0.50;
}

.chart-green span:nth-child(3) {
  opacity: 0.65;
}

.chart-green span:nth-child(4) {
  opacity: 0.85;
}

.chart-green span:nth-child(5) {
  opacity: 1.00;
}

.chart-emerald span {
  background: #10b981;
}

.chart-emerald span:nth-child(1) {
  opacity: 0.35;
}

.chart-emerald span:nth-child(2) {
  opacity: 0.50;
}

.chart-emerald span:nth-child(3) {
  opacity: 0.65;
}

.chart-emerald span:nth-child(4) {
  opacity: 0.85;
}

.chart-emerald span:nth-child(5) {
  opacity: 1.00;
}

.chart-purple span {
  background: #818cf8;
}

.chart-purple span:nth-child(1) {
  opacity: 0.35;
}

.chart-purple span:nth-child(2) {
  opacity: 0.50;
}

.chart-purple span:nth-child(3) {
  opacity: 0.65;
}

.chart-purple span:nth-child(4) {
  opacity: 0.85;
}

.chart-purple span:nth-child(5) {
  opacity: 1.00;
}

/* 2 Büyük Hızlı İşlem Kartı */
.actions-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 24px;
}

.action-card-box {
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.action-card-email {
  background-color: var(--brand-blue-subtle);
  border: 1px solid var(--brand-blue-border);
}

.action-card-whatsapp {
  background-color: var(--brand-green-subtle);
  border: 1px solid var(--brand-green-border);
}

.action-card-header {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.action-card-icon-wrap {
  width: 48px;
  height: 48px;
  background-color: #ffffff;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  flex-shrink: 0;
}

.email-icon-wrap {
  border: 1px solid var(--brand-blue-border);
}

.whatsapp-icon-wrap {
  border: 1px solid var(--brand-green-border);
}

.action-card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.action-card-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}

.action-card-buttons {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.btn-action-primary,
.btn-action-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.email-btn {
  background-color: var(--brand-blue);
  color: #ffffff;
}

.email-btn:hover {
  background-color: var(--brand-blue-hover);
}

.email-outline {
  background-color: #ffffff;
  color: var(--brand-blue);
  border: 1px solid var(--brand-blue-border);
}

.email-outline:hover {
  background-color: var(--brand-blue-subtle);
}

.whatsapp-btn {
  background-color: var(--brand-green);
  color: #ffffff;
}

.whatsapp-btn:hover {
  background-color: var(--brand-green-hover);
}

.whatsapp-outline {
  background-color: #ffffff;
  color: var(--brand-green);
  border: 1px solid var(--brand-green-border);
}

.whatsapp-outline:hover {
  background-color: var(--brand-green-subtle);
}

/* Alt Kısım: Aktif Otomasyonlar & Son Gönderimler */
.bottom-split-grid {
  display: grid;
  grid-template-columns: 38% calc(62% - 18px);
  gap: 18px;
}

.card-panel {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.panel-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.panel-heading {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.panel-top-link {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--brand-blue);
}

.panel-top-link:hover {
  text-decoration: underline;
}

/* Otomasyonlar Listesi */
.automation-items-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auto-row-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  transition: background 0.15s ease;
}

.auto-row-item:hover {
  background-color: var(--bg-body);
}

.auto-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.auto-icon-square {
  width: 40px;
  height: 40px;
  background-color: var(--brand-blue-subtle);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.auto-details {
  display: flex;
  flex-direction: column;
}

.auto-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
}

.auto-desc {
  font-size: 12px;
  color: var(--text-muted);
}

.auto-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.auto-chevron {
  width: 16px;
  height: 16px;
  color: var(--text-light);
}

/* iOS Tarzı Yeşil Toggle Switch */
.ios-switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 24px;
}

.ios-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.ios-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e1;
  transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 24px;
}

.ios-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.ios-switch input:checked+.ios-slider {
  background-color: #22c55e;
}

.ios-switch input:checked+.ios-slider:before {
  transform: translateX(16px);
}

/* ==========================================================================
   Server-Side DataTable Özel Tasarım (DataTables Overrides)
   ========================================================================== */
.table-container {
  overflow-x: auto;
}

/* Tablo Başlık ve Hücreleri */
table.custom-datatable {
  width: 100% !important;
  border-collapse: collapse !important;
  border-spacing: 0 !important;
}

table.custom-datatable thead th {
  font-size: 12px !important;
  font-weight: 600 !important;
  color: var(--text-muted) !important;
  border-bottom: 1px solid var(--border-color) !important;
  border-top: none !important;
  padding: 10px 12px !important;
  background-color: transparent !important;
  text-align: left !important;
}

table.custom-datatable tbody td {
  padding: 12px !important;
  border-bottom: 1px solid var(--border-light) !important;
  border-top: none !important;
  font-size: 13px !important;
  color: var(--text-primary) !important;
  vertical-align: middle !important;
}

table.custom-datatable tbody tr:hover td {
  background-color: var(--bg-body) !important;
}

/* Kanal Simgesi */
.tbl-channel-box {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tbl-mail {
  background-color: var(--brand-blue-subtle);
}

.tbl-wa {
  background-color: var(--brand-green-subtle);
}

.tbl-subject-title {
  font-weight: 600;
  color: var(--text-primary);
}

.tbl-recipients {
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.tbl-date-text {
  color: var(--text-muted);
  font-size: 12px;
}

/* Durum Rozetleri (Status Pills) */
.tbl-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1;
}

.pill-success {
  background-color: #dcfce7;
  color: #15803d;
}

.pill-sending {
  background-color: #dbeafe;
  color: #1d4ed8;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background-color: #2563eb;
  border-radius: 50%;
  display: inline-block;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7);
  }

  70% {
    transform: scale(1.1);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
  }
}

.pill-danger {
  background-color: #fee2e2;
  color: #b91c1c;
}

/* İşlem Butonu ••• */
.tbl-dots-btn {
  background: transparent;
  border: none;
  color: var(--text-light);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}

.tbl-dots-btn:hover {
  background-color: var(--bg-muted);
  color: var(--text-primary);
}

/* DataTables Alt Çubuk & Sayfalama Temizliği */
.dataTables_wrapper .dataTables_paginate {
  margin-top: 14px !important;
  display: flex !important;
  justify-content: flex-end !important;
  gap: 4px !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
  padding: 4px 10px !important;
  border-radius: 6px !important;
  font-size: 12px !important;
  border: 1px solid var(--border-color) !important;
  background: var(--bg-surface) !important;
  color: var(--text-secondary) !important;
  cursor: pointer !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background: var(--brand-blue) !important;
  color: #ffffff !important;
  border-color: var(--brand-blue) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background: var(--brand-blue-subtle) !important;
  color: var(--brand-blue) !important;
}

.dataTables_wrapper .dataTables_filter {
  margin-bottom: 12px !important;
}

.dataTables_wrapper .dataTables_filter input {
  border: 1px solid var(--border-color) !important;
  border-radius: 6px !important;
  padding: 5px 10px !important;
  font-size: 12px !important;
  outline: none !important;
  background-color: var(--bg-body) !important;
}

.dataTables_wrapper .dataTables_filter input:focus {
  border-color: var(--brand-blue) !important;
  background-color: var(--bg-surface) !important;
}

/* Alerts */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  font-size: 13px;
}

.alert-success {
  background-color: var(--brand-green-subtle);
  color: #065f46;
  border: 1px solid #a7f3d0;
}

/* Kırmızı Metrik Rozet ve Grafikleri */
.bg-red-subtle {
  background-color: #fef2f2;
}

.text-red {
  color: #ef4444;
}

.trend-down {
  color: #ef4444;
}

.chart-red span {
  background: #f87171;
}

.chart-red span:nth-child(1) {
  opacity: 0.35;
}

.chart-red span:nth-child(2) {
  opacity: 0.50;
}

.chart-red span:nth-child(3) {
  opacity: 0.65;
}

.chart-red span:nth-child(4) {
  opacity: 0.85;
}

.chart-red span:nth-child(5) {
  opacity: 1.00;
}

/* ==========================================================================
   E-posta Gönderimi Sayfası Özel Stilleri (Birebir Ekran Tasarımı)
   ========================================================================== */
.page-title-row {
  margin-bottom: 24px;
}

/* Ana Bölüm Grid (Sol Tablo Alanı: ~74% | Sağ Kartlar: ~26%) */
.email-layout-grid {
  display: grid;
  grid-template-columns: calc(100% - 330px) 310px;
  gap: 20px;
  align-items: start;
}

/* Filtre ve Arama Barı */
.email-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.filter-pills-group {
  display: flex;
  gap: 8px;
}

.filter-pill {
  padding: 8px 18px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-secondary);
  transition: all 0.15s ease;
}

.filter-pill:hover {
  background-color: var(--bg-subtle);
  color: var(--text-primary);
}

.filter-pill.active {
  background-color: var(--brand-blue);
  color: #ffffff;
  border-color: var(--brand-blue);
  font-weight: 600;
}

.filter-controls-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-date-picker {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 8px 14px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: border-color 0.15s;
}

.btn-date-picker:hover {
  border-color: var(--brand-blue);
}

.table-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0 12px;
  height: 38px;
  width: 170px;
  transition: border-color 0.15s;
}

.table-search-box:focus-within {
  border-color: var(--brand-blue);
  width: 200px;
}

.table-search-box svg {
  color: var(--text-light);
  flex-shrink: 0;
}

.filter-search-input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 12.5px;
  color: var(--text-primary);
  width: 100%;
}

.filter-search-input::placeholder {
  color: var(--text-light);
}

/* Tablo Kart Paneli */
.table-card-panel {
  padding: 0 !important;
  overflow: hidden;
}

.custom-checkbox {
  width: 17px;
  height: 17px;
  border-radius: 4px;
  border: 1.5px solid #cbd5e1;
  accent-color: var(--brand-blue);
  cursor: pointer;
}

/* Tablo Hücre Tasarımları */
.tbl-col-subject {
  display: flex;
  flex-direction: column;
}

.tbl-subject-main {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 13.5px;
}

.tbl-subject-sub {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

.tbl-col-recipients {
  display: flex;
  flex-direction: column;
}

.tbl-recipients-main {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.tbl-recipients-sub {
  font-size: 11px;
  color: var(--text-light);
  font-variant-numeric: tabular-nums;
}

.tbl-col-date {
  font-size: 12.5px;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.tbl-actions-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-tbl-action {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background-color: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-tbl-action:hover {
  background-color: var(--brand-blue-subtle);
  border-color: #bfdbfe;
  color: var(--brand-blue);
}

/* Ek Durum Rozetleri */
.pill-scheduled {
  background-color: #eef2ff;
  color: #4f46e5;
}

.pill-draft {
  background-color: #f1f5f9;
  color: #64748b;
}

/* Tablo Alt Bilgi & Sayfalama Barı */
.email-table-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-top: 1px solid var(--border-light);
  background-color: var(--bg-surface);
}

.tbl-total-info {
  font-size: 12.5px;
  color: var(--text-muted);
  font-weight: 500;
}

.email-pagination-wrap .dataTables_paginate {
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
}

.email-pagination-wrap .paginate_button {
  min-width: 28px !important;
  height: 28px !important;
  padding: 0 8px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 6px !important;
  border: 1px solid var(--border-color) !important;
  background: var(--bg-surface) !important;
  color: var(--text-secondary) !important;
  font-size: 12px !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

.email-pagination-wrap .paginate_button.current {
  background-color: var(--brand-blue-subtle) !important;
  border-color: #bfdbfe !important;
  color: var(--brand-blue) !important;
  font-weight: 600 !important;
}

.email-pagination-wrap .paginate_button:hover:not(.current) {
  background-color: var(--bg-subtle) !important;
  color: var(--text-primary) !important;
}

/* Sağ Kolon Kartları */
.email-sidebar-cards {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.card-panel-title {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 18px;
}

/* Stepper Kartı */
.stepper-card {
  padding: 22px;
}

.stepper-list {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.step-item {
  display: flex;
  gap: 14px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  transition: background 0.15s ease;
  position: relative;
}

.step-item.active {
  background-color: var(--brand-blue-subtle);
}

.step-icon-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 24px;
}

.step-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid #cbd5e1;
  color: var(--text-muted);
  font-size: 11.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  z-index: 2;
}

.step-circle-active {
  background-color: var(--brand-blue);
  border-color: var(--brand-blue);
  color: #ffffff;
}

.step-connector {
  width: 1.5px;
  flex: 1;
  background-color: #e2e8f0;
  margin: 4px 0;
  min-height: 22px;
}

.step-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.step-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.step-subtitle {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 1px;
}

.btn-start-wizard {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background-color: var(--brand-blue);
  color: #ffffff;
  border-radius: var(--radius-md);
  padding: 11px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
  transition: background 0.15s, transform 0.15s;
}

.btn-start-wizard:hover {
  background-color: var(--brand-blue-hover);
  transform: translateY(-1px);
}

/* Hızlı İşlemler Kartı */
.quick-ops-card {
  padding: 22px;
}

.quick-ops-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quick-op-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background-color: var(--bg-surface);
  text-decoration: none;
  transition: all 0.15s ease;
}

.quick-op-row:hover {
  border-color: #bfdbfe;
  background-color: var(--bg-body);
  transform: translateY(-1px);
}

.quick-op-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.quick-op-info {
  display: flex;
  flex-direction: column;
}

.quick-op-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.quick-op-desc {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 1px;
}

/* ==========================================================================
   WhatsApp Gönderimi Sayfası Özel Stilleri
   ========================================================================== */
.nav-link.active-wa {
  background-color: var(--brand-green-subtle) !important;
  color: var(--brand-green) !important;
  font-weight: 600 !important;
}

.nav-link.active-wa .nav-icon {
  color: var(--brand-green) !important;
}

/* Sekmeler Çubuğu (Tabs) */
.wa-tabs-bar {
  display: flex;
  gap: 28px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 18px;
}

.wa-tab-item {
  background: none;
  border: none;
  padding: 8px 0 12px 0;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  transition: color 0.15s ease;
}

.wa-tab-item:hover {
  color: var(--text-primary);
}

.wa-tab-item.active {
  color: var(--brand-green);
  font-weight: 600;
}

.wa-tab-item.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2.5px;
  background-color: var(--brand-green);
  border-radius: 2px 2px 0 0;
}

/* Filtre ve Arama Çubuğu */
.wa-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  gap: 16px;
  flex-wrap: wrap;
}

.wa-search-box {
  flex: 1;
  min-width: 260px;
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0 14px;
  height: 40px;
  transition: border-color 0.15s ease;
}

.wa-search-box:focus-within {
  border-color: var(--brand-green);
}

.wa-search-box svg {
  color: var(--text-light);
  flex-shrink: 0;
}

.wa-search-input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 13px;
  color: var(--text-primary);
  width: 100%;
}

.wa-search-input::placeholder {
  color: var(--text-light);
}

.wa-filter-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wa-filter-select {
  appearance: none;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 9px 34px 9px 14px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  outline: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%2364748B' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  transition: border-color 0.15s ease;
}

.wa-filter-select:hover {
  border-color: var(--brand-green);
}

.btn-wa-adjust {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background-color: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-wa-adjust:hover {
  border-color: var(--brand-green);
  color: var(--brand-green);
}

/* WhatsApp Stepper & Form Kartı */
.wa-wizard-card {
  padding: 22px;
}

.step-item.active-wa-step {
  background-color: var(--brand-green-subtle);
}

.step-circle-wa {
  background-color: var(--brand-green);
  border-color: var(--brand-green);
  color: #ffffff;
}

.wa-form-group {
  margin-bottom: 14px;
}

.wa-form-label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.wa-form-control {
  width: 100%;
  appearance: none;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 34px 10px 12px;
  font-size: 13px;
  color: var(--text-primary);
  cursor: pointer;
  outline: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%2364748B' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  transition: border-color 0.15s ease;
}

.wa-form-control:focus {
  border-color: var(--brand-green);
}

.wa-or-divider {
  position: relative;
  text-align: center;
  margin: 14px 0;
}

.wa-or-divider::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background-color: var(--border-color);
}

.wa-or-divider span {
  position: relative;
  background-color: var(--bg-surface);
  padding: 0 10px;
  font-size: 11.5px;
  color: var(--text-muted);
}

.btn-wa-upload {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  background-color: #ffffff;
  border: 1px solid #bfdbfe;
  color: var(--brand-blue);
  border-radius: var(--radius-md);
  padding: 9px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
}

.btn-wa-upload:hover {
  background-color: var(--brand-blue-subtle);
}

.wa-upload-hint {
  display: block;
  text-align: center;
  font-size: 11px;
  color: var(--text-light);
  margin-top: 6px;
}

.wa-new-template-link {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-blue);
  margin-top: 8px;
  text-decoration: none;
}

.wa-new-template-link:hover {
  text-decoration: underline;
}

.btn-wa-continue {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background-color: var(--brand-green);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  padding: 12px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 20px;
  box-shadow: 0 2px 4px rgba(22, 163, 74, 0.2);
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn-wa-continue:hover {
  background-color: var(--brand-green-hover);
  transform: translateY(-1px);
}

/* WhatsApp Tablo Altı Kontroller */
.wa-table-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wa-pagination-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wa-page-size-select {
  appearance: none;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 4px 24px 4px 10px;
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  outline: none;
  background-image: url("data:image/svg+xml,%3Csvg width='8' height='5' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%2364748B' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  transition: border-color 0.15s ease;
}

.wa-page-size-select:hover {
  border-color: var(--brand-green);
}

/* ==========================================================================
   Yeni Ekran Tasarımları: Kişiler, Geçmiş, Entegrasyonlar, Ayarlar
   ========================================================================== */

/* 2 Sütunlu Sayfa Düzeni (Sol Ana Tablo/İçerik + Sağ Widget Sütunu) */
.content-two-columns {
  display: grid;
  grid-template-columns: calc(100% - 330px) 310px;
  gap: 20px;
  align-items: start;
}

/* Kişiler Sayfası Stilleri */
.page-contacts .custom-tabs-nav,
.page-integrations .custom-tabs-nav {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 18px;
}

.custom-tabs-nav .tab-item {
  padding: 10px 4px;
  background: none;
  border: none;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  position: relative;
  transition: color 0.15s ease;
}

.custom-tabs-nav .tab-item:hover {
  color: var(--text-primary);
}

.custom-tabs-nav .tab-item.active {
  color: var(--brand-blue);
  font-weight: 600;
}

.custom-tabs-nav .tab-item.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--brand-blue);
  border-radius: 2px 2px 0 0;
}

.table-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  gap: 12px;
  flex-wrap: wrap;
}

.search-input-wrapper {
  position: relative;
  flex: 1;
  max-width: 380px;
}

.search-input-wrapper .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
}

.search-input-wrapper .form-control {
  padding-left: 38px;
  border-radius: var(--radius-md);
  height: 38px;
  font-size: 13px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-surface);
}

.search-input-wrapper .form-control:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.filter-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.filter-controls .form-select {
  height: 38px;
  padding: 0 32px 0 12px;
  border-radius: var(--radius-md);
  font-size: 13px;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  background-color: var(--bg-surface);
  cursor: pointer;
}

.btn-filter,
.btn-filter-icon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background-color: var(--bg-surface);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
}

.btn-filter:hover,
.btn-filter-icon:hover {
  background-color: var(--bg-subtle);
  border-color: #cbd5e1;
  color: var(--text-primary);
}

/* Avatar Letter & Kişi Tablosu */
.contact-user-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar-letter-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #e0f2fe;
  color: #0284c7;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-name-text {
  font-weight: 600;
  font-size: 13px;
  color: var(--text-primary);
}

/* Grup Hapları (Pills) */
.pill-group {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 600;
}

.pill-group-vip {
  background-color: #e0f2fe;
  color: #0284c7;
}

.pill-group-ecom {
  background-color: #dcfce7;
  color: #16a34a;
}

.pill-group-wholesale {
  background-color: #ccfbf1;
  color: #0d9488;
}

.pill-group-members {
  background-color: #ecfdf5;
  color: #059669;
}

.pill-group-newsletter {
  background-color: #f3e8ff;
  color: #7e22ce;
}

.pill-group-campaign {
  background-color: #fef3c7;
  color: #d97706;
}

/* Sipariş Rozeti (Contacts Tablosu) */
.pill-order-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  background-color: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
}

.pill-order-badge:hover {
  background-color: #dbeafe;
  border-color: #93c5fd;
  color: #1d4ed8;
  transform: translateY(-1px);
}

.order-badge-icon {
  font-size: 12px;
}

.tbl-order-zero {
  font-size: 11.5px;
  color: #94a3b8;
  font-weight: 500;
}

/* Durum Hapları */
.badge-status-active {
  background-color: #ecfdf5;
  color: #059669;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 600;
}

.badge-status-inactive {
  background-color: #f1f5f9;
  color: #64748b;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 600;
}

.badge-status-blocked {
  background-color: #fef2f2;
  color: #dc2626;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 600;
}

/* Contacts Filtreler Açılır Paneli */
.contacts-filter-drawer {
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  animation: fadeInDown 0.2s ease-out;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.filter-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color, #f1f5f9);
}

.filter-drawer-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary, #1e293b);
}

.btn-reset-filters-link {
  background: none;
  border: none;
  color: #64748b;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.15s;
}

.btn-reset-filters-link:hover {
  background: #f1f5f9;
  color: #ef4444;
}

.filter-drawer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 14px;
}

.filter-grid-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filter-item-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary, #64748b);
}

.filter-drawer-select {
  height: 38px;
  font-size: 13px;
  border-radius: 8px;
  border: 1px solid var(--border-color, #cbd5e1);
  padding: 0 12px;
  background-color: var(--bg-card, #ffffff);
  color: var(--text-primary, #1e293b);
}

.filter-drawer-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px dashed var(--border-color, #f1f5f9);
}

.pills-hint {
  font-size: 11.5px;
  font-weight: 600;
  color: #94a3b8;
  margin-right: 4px;
}

.filter-quick-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  font-size: 11.5px;
  font-weight: 500;
  padding: 5px 11px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-quick-pill:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.filter-quick-pill.active {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
}

.filter-active-badge {
  background: #2563eb;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 9999px;
  padding: 1px 6px;
  margin-left: 5px;
}

.btn-filter.active {
  background-color: #eff6ff;
  border-color: #3b82f6;
  color: #1d4ed8;
}

[data-theme="dark"] .contacts-filter-drawer {
  background: #1e293b;
  border-color: #334155;
}

[data-theme="dark"] .filter-drawer-header,
[data-theme="dark"] .filter-drawer-pills {
  border-color: #334155;
}

[data-theme="dark"] .filter-drawer-select {
  background: #0f172a;
  border-color: #334155;
  color: #f8fafc;
}

[data-theme="dark"] .filter-quick-pill {
  background: #334155;
  border-color: #475569;
  color: #cbd5e1;
}

[data-theme="dark"] .filter-quick-pill:hover {
  background: #475569;
  color: #ffffff;
}

/* Sağ Sütun Widgetları */
.action-widget-card,
.groups-widget-card,
.quick-filters-card,
.summary-widget-card,
.help-widget-card {
  padding: 20px;
  margin-bottom: 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
}

.widget-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.widget-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.widget-header-row .widget-title {
  margin-bottom: 0;
}

.link-arrow,
.link-clear {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--brand-blue);
  text-decoration: none;
}

.link-arrow:hover,
.link-clear:hover {
  text-decoration: underline;
}

.action-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.action-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.action-item:hover {
  background-color: var(--bg-subtle);
}

.action-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-light-blue {
  background-color: #eff6ff;
  color: #2563eb;
}

.icon-light-green {
  background-color: #f0fdf4;
  color: #16a34a;
}

.icon-light-red {
  background-color: #fef2f2;
  color: #ef4444;
}

.action-text {
  display: flex;
  flex-direction: column;
}

.action-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.action-desc {
  font-size: 11.5px;
  color: var(--text-secondary);
}

/* Gruplar Dağılımı Listesi */
.group-counts-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.group-count-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  padding: 4px 0;
}

.group-label-dot {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dot-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot-blue {
  background-color: #2563eb;
}

.dot-cyan {
  background-color: #06b6d4;
}

.dot-green {
  background-color: #10b981;
}

.dot-lime {
  background-color: #84cc16;
}

.dot-emerald {
  background-color: #14b8a6;
}

.dot-coral {
  background-color: #f43f5e;
}

.dot-amber {
  background-color: #f59e0b;
}

.dot-gray {
  background-color: #94a3b8;
}

/* Doğrulanmış Müşteri Rozeti (Etkinlik ve Kampanyalardan Gelenler) */
.badge-verified-customer {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  padding: 2.5px 8px;
  border-radius: 9999px;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.2px;
  box-shadow: 0 1px 2px rgba(16, 185, 129, 0.08);
  white-space: nowrap;
}

.badge-verified-customer i {
  color: #059669;
  font-size: 11px;
}

.contact-user-cell-wrap {
  display: flex;
  align-items: center;
}

.contact-name-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

.group-title {
  color: var(--text-secondary);
  font-weight: 500;
}

.group-count-val {
  font-weight: 600;
  color: var(--text-primary);
}

/* Hızlı Filtreler Dropdownları */
.quick-filter-dropdowns {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.filter-select-group .select-compact {
  width: 100%;
  height: 36px;
  font-size: 12.5px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0 10px;
  color: var(--text-secondary);
  background-color: var(--bg-surface);
}

/* Gönderim Geçmişi (Logs) Stilleri */
.logs-filter-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  gap: 12px;
  flex-wrap: wrap;
}

.pill-tabs-nav {
  display: flex;
  gap: 6px;
  background-color: var(--bg-subtle);
  padding: 4px;
  border-radius: var(--radius-md);
}

.pill-tab {
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 500;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pill-tab:hover {
  color: var(--text-primary);
}

.pill-tab.active {
  background-color: #ffffff;
  color: var(--brand-blue);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.toolbar-controls-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.date-range-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
}

.search-input-wrapper.search-sm .form-control {
  height: 36px;
  width: 180px;
  font-size: 12px;
}

/* Gönderim Kanal İkonları */
.channel-icon-pill {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.channel-icon-email {
  background-color: #eff6ff;
  color: #2563eb;
}

.channel-icon-wa {
  background-color: #ecfdf5;
  color: #10b981;
}

/* Durum Rozeti (Pulse Noktalı Gönderiliyor vb.) */
.badge-status-sending {
  background-color: #eff6ff;
  color: #2563eb;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #2563eb;
  display: inline-block;
  animation: pulse-animation 1.5s infinite;
}

@keyframes pulse-animation {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }

  50% {
    transform: scale(1.3);
    opacity: 1;
  }

  100% {
    transform: scale(0.95);
    opacity: 0.8;
  }
}

/* Geçmiş Özeti & Kanal Dağılımı */
.stat-rows-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 16px;
  margin-bottom: 16px;
}

.summary-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.summary-stat-row .stat-left {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
}

.summary-stat-row .stat-indent {
  padding-left: 24px;
}

.channel-distribution-section {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 16px;
  margin-bottom: 16px;
}

.section-subtitle-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.distribution-item {
  margin-bottom: 12px;
}

.dist-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  margin-bottom: 6px;
}

.dist-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  color: var(--text-secondary);
}

.dist-nums {
  display: flex;
  gap: 6px;
  font-weight: 600;
}

.dist-percent {
  color: var(--text-secondary);
  font-weight: 500;
}

.progress-bar-bg {
  width: 100%;
  height: 6px;
  background-color: #f1f5f9;
  border-radius: 9999px;
  overflow: hidden;
}

.progress-bar-fill.fill-blue {
  height: 100%;
  background-color: #2563eb;
  border-radius: 9999px;
}

.progress-bar-fill.fill-emerald {
  height: 100%;
  background-color: #10b981;
  border-radius: 9999px;
}

/* Son Aktiviteler Zaman Çizelgesi */
.recent-activities-section {
  margin-bottom: 20px;
}

.activity-timeline {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.activity-icon-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-badge-green {
  background-color: #ecfdf5;
  color: #10b981;
}

.icon-badge-blue {
  background-color: #eff6ff;
  color: #2563eb;
}

.icon-badge-red {
  background-color: #fef2f2;
  color: #ef4444;
}

.activity-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.act-title {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-primary);
}

.act-sub {
  font-size: 11.5px;
  color: var(--text-secondary);
}

.act-time {
  font-size: 11.5px;
  color: #94a3b8;
}

.btn-download-report {
  width: 100%;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-blue);
  border: 1px solid #bfdbfe;
  background-color: #eff6ff;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-download-report:hover {
  background-color: #dbeafe;
  border-color: #93c5fd;
}

/* Entegrasyonlar Sayfası Stilleri */
.integration-promo-banner {
  background-color: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 16px;
}

.banner-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.banner-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #dbeafe;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.banner-heading {
  font-size: 14.5px;
  font-weight: 700;
  color: #1e3a8a;
  margin-bottom: 3px;
}

.banner-desc {
  font-size: 12.5px;
  color: #3b82f6;
  margin: 0;
}

.banner-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-banner-guide {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  background-color: #ffffff;
  border: 1px solid #bfdbfe;
  color: #2563eb;
  border-radius: var(--radius-md);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

.banner-close-btn {
  background: none;
  border: none;
  color: #64748b;
  font-size: 14px;
  cursor: pointer;
}

.integrations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.integration-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 175px;
  transition: all 0.15s ease;
}

.integration-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.card-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.int-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.btn-dots {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 16px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
}

.card-app-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.card-app-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 14px;
}

.card-footer-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-color);
  padding-top: 12px;
  margin-top: auto;
}

.card-status-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
}

.card-status-indicator.status-active .status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #10b981;
}

.card-status-indicator.status-active .status-text {
  color: #10b981;
}

.card-status-indicator.status-inactive .status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #94a3b8;
}

.card-status-indicator.status-inactive .status-text {
  color: #94a3b8;
}

.btn-manage-settings {
  height: 30px;
  padding: 0 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--border-color);
  background-color: var(--bg-surface);
  color: var(--text-primary);
  cursor: pointer;
}

.btn-connect-app {
  height: 30px;
  padding: 0 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  border: none;
  background-color: #eff6ff;
  color: #2563eb;
  cursor: pointer;
}

.btn-connect-app:hover {
  background-color: #dbeafe;
}

.popular-nav-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  text-decoration: none;
  border-bottom: 1px solid #f1f5f9;
}

.popular-nav-item:last-child {
  border-bottom: none;
}

.pop-app-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pop-icon-square {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bg-green-light {
  background-color: #e6f4ea;
}

.bg-yellow-light {
  background-color: #fff9e6;
}

.bg-blue-light {
  background-color: #e8f4fb;
}

.bg-purple-light {
  background-color: #f3eefb;
}

.bg-orange-light {
  background-color: #fef0eb;
}

.pop-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-primary);
}

.pop-category {
  font-size: 11px;
  color: var(--text-secondary);
  display: block;
}

.pop-chevron {
  color: #94a3b8;
  font-size: 18px;
}

.help-widget-card {
  background-color: #f8fafc;
  border: 1px solid var(--border-color);
}

.help-header-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.help-icon-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #eff6ff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.help-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.help-desc {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.help-action-link {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--brand-blue);
  text-decoration: none;
}

/* Ayarlar (Settings) Sayfası Stilleri */
.settings-tabs-nav {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.settings-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.settings-tab-btn:hover {
  background-color: var(--bg-surface);
  color: var(--text-primary);
}

.settings-tab-btn.active {
  background-color: #eff6ff;
  color: var(--brand-blue);
  border-color: #bfdbfe;
  font-weight: 600;
}

.settings-row-grid {
  display: grid;
  gap: 20px;
  margin-bottom: 20px;
}

.grid-account-top {
  grid-template-columns: calc(100% - 350px) 330px;
  align-items: stretch;
}

.grid-account-middle {
  grid-template-columns: 1.3fr 1fr;
  align-items: stretch;
}

.grid-account-bottom {
  grid-template-columns: 1.3fr 1fr;
  align-items: stretch;
}

.settings-card {
  padding: 24px 28px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.settings-card>form {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.settings-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  padding-bottom: 4px;
}

.settings-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 3px;
  letter-spacing: -0.2px;
}

.settings-card-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  margin: 0;
}

.btn-save-changes {
  height: 38px;
  padding: 0 18px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-md);
  background-color: var(--brand-blue);
  color: #ffffff;
  border: none;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.2);
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.btn-save-changes:hover {
  background-color: var(--brand-blue-hover);
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.3);
}

.settings-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 24px;
  width: 100%;
}

.phone-input-combo {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 40px;
  width: 100%;
  background-color: var(--bg-surface);
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.phone-input-combo:focus-within {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.country-prefix-box {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  background-color: var(--bg-subtle);
  border-right: 1px solid var(--border-color);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  height: 100%;
  flex-shrink: 0;
  cursor: pointer;
  user-select: none;
}

.country-prefix-box .country-flag {
  font-size: 14px;
  line-height: 1;
}

.country-prefix-box .prefix-val {
  font-size: 13px;
  font-weight: 600;
}

.phone-input-combo .form-control {
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  height: 100% !important;
  flex: 1;
  padding: 0 12px;
}

/* Profil Fotoğrafı Kartı */
.profile-photo-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.photo-upload-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
}

.large-avatar-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: var(--brand-blue);
  color: #ffffff;
  font-size: 26px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
}

.photo-upload-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}

#btn-change-avatar {
  height: 36px;
  padding: 0 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-primary);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

#btn-change-avatar:hover {
  background-color: var(--bg-subtle);
  border-color: #cbd5e1;
}

.file-hint {
  font-size: 11px;
  color: var(--text-muted);
}

.settings-info-callout {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background-color: #eff6ff;
  border-radius: var(--radius-md);
  font-size: 12px;
  color: #1e40af;
  line-height: 1.45;
  margin-top: auto;
}

/* Tercihler Listesi */
.preference-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.preference-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.preference-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.pref-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pref-icon-box {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background-color: #eff6ff;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pref-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  display: block;
}

.pref-sub {
  font-size: 11.5px;
  color: var(--text-secondary);
  display: block;
}

.select-preference {
  height: 34px;
  font-size: 12px;
  padding: 0 28px 0 10px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  min-width: 170px;
}

/* Bildirim Ayarları iOS Switchler */
.notification-toggle-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

.toggle-label-side {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-primary);
}

/* iOS Switch Bileşeni */
.ios-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.ios-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.ios-switch .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #e2e8f0;
  transition: .3s;
  border-radius: 24px;
}

.ios-switch .slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.ios-switch input:checked+.slider {
  background-color: #2563eb;
}

.ios-switch input:checked+.slider:before {
  transform: translateX(20px);
}

/* Hesabı Yönet Kartı */
.account-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.account-action-box {
  padding: 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.account-action-box .box-left {
  display: flex;
  gap: 12px;
}

.account-action-box .box-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.account-action-box .box-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.account-action-box .box-desc {
  font-size: 11.5px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin: 0;
}

.btn-export {
  align-self: flex-start;
  height: 30px;
  padding: 0 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-blue);
  border: 1px solid #bfdbfe;
  background-color: var(--bg-surface);
  cursor: pointer;
}

.btn-deactivate {
  align-self: flex-start;
  height: 30px;
  padding: 0 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #ef4444;
  border: 1px solid #fecaca;
  background-color: var(--bg-surface);
  cursor: pointer;
}

/* Tehlikeli Bölge Kartı */
.danger-zone-card {
  background-color: var(--bg-surface);
}

.danger-action-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background-color: #fef2f2;
  border: 1px solid #fee2e2;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.danger-action-link:hover {
  background-color: #fee2e2;
}

.danger-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.danger-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background-color: #fee2e2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.danger-texts {
  display: flex;
  flex-direction: column;
}

.danger-title {
  font-size: 13px;
  font-weight: 700;
  color: #ef4444;
}

.danger-desc {
  font-size: 11.5px;
  color: #991b1b;
}

.danger-chevron {
  font-size: 20px;
  color: #ef4444;
}

/* Tehlikeli Bölge: koyu tema */
[data-theme="dark"] .danger-action-link {
  background-color: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
}

[data-theme="dark"] .danger-action-link:hover {
  background-color: rgba(239, 68, 68, 0.18);
}

[data-theme="dark"] .danger-icon-box {
  background-color: rgba(239, 68, 68, 0.18);
}

[data-theme="dark"] .danger-title,
[data-theme="dark"] .danger-chevron {
  color: #f87171;
}

[data-theme="dark"] .danger-desc {
  color: #fca5a5;
}

[data-theme="dark"] .account-action-box .icon-light-red {
  background-color: rgba(239, 68, 68, 0.15);
}

[data-theme="dark"] .account-action-box .icon-light-blue {
  background-color: var(--brand-blue-subtle);
}

[data-theme="dark"] .btn-export {
  border-color: var(--brand-blue-border);
}

[data-theme="dark"] .btn-deactivate {
  border-color: rgba(239, 68, 68, 0.35);
}

/* Responsive Düzen */
@media (max-width: 1200px) {

  .email-layout-grid,
  .content-two-columns {
    grid-template-columns: 1fr;
  }

  .grid-account-top,
  .grid-account-middle,
  .grid-account-bottom {
    grid-template-columns: 1fr;
  }

  .integrations-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bottom-split-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 992px) {
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .app-sidebar {
    transform: translateX(-100%);
  }

  .app-main {
    margin-left: 0;
  }

  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .actions-split-grid {
    grid-template-columns: 1fr;
  }

  .app-header {
    padding: 0 16px;
  }

  .header-search-box {
    width: 200px;
  }

  .page-content {
    padding: 16px;
  }
}

/* ==========================================================================
   MergenFlow Global AJAX Toast Notification System
   ========================================================================== */
.mergen-toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 420px;
  width: calc(100% - 48px);
  pointer-events: none;
}

.mergen-toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 18px;
  border-radius: var(--radius-lg, 12px);
  background: var(--bg-surface, #ffffff);
  border: 1px solid var(--border-color, #e2e8f0);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-primary, #1e293b);
  animation: toastSlideIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.mergen-toast.toast-hiding {
  opacity: 0;
  transform: translateX(30px) scale(0.95);
}

.mergen-toast .toast-icon {
  flex-shrink: 0;
  margin-top: 1px;
}

.mergen-toast .toast-body {
  flex: 1;
}

.mergen-toast .toast-title {
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 2px;
  display: block;
}

.mergen-toast .toast-message {
  font-size: 12.5px;
  color: var(--text-secondary, #64748b);
}

.mergen-toast .toast-close {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-muted, #94a3b8);
  padding: 0;
  margin-left: 6px;
  font-size: 16px;
  line-height: 1;
}

.mergen-toast .toast-close:hover {
  color: var(--text-primary, #1e293b);
}

.mergen-toast.toast-success {
  border-left: 4px solid #10b981;
}

.mergen-toast.toast-success .toast-title {
  color: #059669;
}

.mergen-toast.toast-error {
  border-left: 4px solid #ef4444;
}

.mergen-toast.toast-error .toast-title {
  color: #dc2626;
}

.mergen-toast.toast-warning {
  border-left: 4px solid #f59e0b;
}

.mergen-toast.toast-warning .toast-title {
  color: #d97706;
}

.mergen-toast.toast-info {
  border-left: 4px solid #2563eb;
}

.mergen-toast.toast-info .toast-title {
  color: #2563eb;
}

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateY(-12px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* AJAX Button Spinner Helper */
.btn-loading {
  position: relative;
  pointer-events: none !important;
  opacity: 0.85 !important;
}

.btn-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  border-top-color: currentColor;
  animation: btnSpin 0.7s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

@keyframes btnSpin {
  to {
    transform: rotate(360deg);
  }
}

/* Mergen Modal & Action Buttons */
.mergen-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 16px;
}

.mergen-modal-card {
  background: var(--bg-surface, #ffffff);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 14px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  animation: modalScaleIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.mergen-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color, #e2e8f0);
}

.mergen-modal-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary, #0f172a);
  margin: 0;
}

.mergen-modal-close {
  background: transparent;
  border: none;
  font-size: 22px;
  color: var(--text-muted, #94a3b8);
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.mergen-modal-close:hover {
  color: var(--text-primary, #0f172a);
}

.mergen-modal-body {
  padding: 20px;
}

.mergen-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 20px;
  background: var(--bg-subtle, #f8fafc);
  border-top: 1px solid var(--border-color, #e2e8f0);
}

.tbl-action-btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: transparent;
  border: 1px solid transparent;
  color: #ef4444;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tbl-action-btn-danger:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #b91c1c;
}

/* Priority Integrations (ikas, Ticimax, Shopify) & Coming Soon Styles */
.priority-section-title-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.priority-section-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.priority-tag {
  background: rgba(37, 99, 235, 0.1);
  color: var(--brand-blue);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.priority-integrations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 30px;
}

.priority-card {
  background-color: var(--bg-surface);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.priority-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.08);
}

.priority-card.is-connected {
  border-color: #10b981;
  background: linear-gradient(to bottom, rgba(16, 185, 129, 0.02), var(--bg-surface));
}

.priority-card-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #f1f5f9;
  color: #475569;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}

.priority-card.is-connected .priority-card-badge {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.priority-card-desc {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.45;
  margin: 10px 0 16px;
  min-height: 52px;
}

.store-meta-box {
  background: var(--bg-subtle, #f8fafc);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 14px;
  font-size: 11.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.store-meta-domain {
  font-weight: 600;
  color: var(--text-primary);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.priority-card-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
}

.btn-sync-app {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #dbeafe;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-sync-app:hover {
  background: #dbeafe;
}

.btn-disconnect-app {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  background: #fef2f2;
  color: #ef4444;
  border: 1px solid #fee2e2;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-disconnect-app:hover {
  background: #fee2e2;
  color: #b91c1c;
}

.badge-coming-soon {
  background: #f1f5f9;
  color: #64748b;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-block;
  border: 1px solid #e2e8f0;
}

.card-coming-soon {
  opacity: 0.85;
}

.card-coming-soon:hover {
  opacity: 1;
}

/* Kişiler Listesi Müşteri 360 Link & Buton Stilleri */
.contact-link-hover {
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.contact-link-hover:hover .contact-name-text {
  color: var(--brand-blue);
  text-decoration: underline;
}

.contact-link-hover:hover .avatar-letter-circle {
  transform: scale(1.08);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.tbl-action-view-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
}

.tbl-action-view-btn:hover {
  background: var(--brand-blue-subtle);
  color: var(--brand-blue);
  border-color: var(--brand-blue-border);
  transform: translateX(2px);
}

/* Kişiler Tablosu Aksiyon Butonları (İncele, Engelle, Sil) */
.tbl-action-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
}

.tbl-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-md, 6px);
  background: var(--bg-subtle, #1e293b);
  color: var(--text-muted, #94a3b8);
  border: 1px solid var(--border-color, #334155);
  transition: all 0.2s ease;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
}

.tbl-action-btn:hover {
  transform: translateY(-2px);
}

.tbl-action-btn.btn-view:hover {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
  border-color: rgba(59, 130, 246, 0.4);
}

.tbl-action-btn.btn-whatsapp:hover {
  background: rgba(37, 211, 102, 0.15);
  color: #25d366;
  border-color: rgba(37, 211, 102, 0.4);
}

.tbl-action-btn.btn-block:hover {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.4);
}

.tbl-action-btn.btn-block.is-blocked {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
  border-color: #f59e0b;
}

.tbl-action-btn.btn-delete:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.4);
}

/* İletişim İzni Rozetleri & Hapları */
.badge-consent-all {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background-color: #ecfdf5;
  color: #059669;
  border: 1px solid rgba(5, 150, 105, 0.2);
  padding: 3px 9px;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}

.badge-consent-partial {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background-color: #eff6ff;
  color: #2563eb;
  border: 1px solid rgba(37, 99, 235, 0.2);
  padding: 3px 9px;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}

.badge-consent-none {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background-color: #f1f5f9;
  color: #64748b;
  border: 1px solid rgba(100, 116, 139, 0.2);
  padding: 3px 9px;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
}

.consent-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.dot-green {
  background-color: #10b981;
}

.dot-blue {
  background-color: #3b82f6;
}

.dot-emerald {
  background-color: #059669;
}

.dot-gray {
  background-color: #94a3b8;
}

/* Doğrulanmış Müşteri Rozeti (Etkinlik ve Kampanyalardan Gelenler) */
.badge-verified-customer {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  padding: 2.5px 8px;
  border-radius: 9999px;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.2px;
  box-shadow: 0 1px 2px rgba(16, 185, 129, 0.08);
  white-space: nowrap;
}

.badge-verified-customer i {
  color: #059669;
  font-size: 11px;
}

.contact-user-cell-wrap {
  display: flex;
  align-items: center;
}

.contact-name-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

/* Müşteri 360 İletişim İzni Rozetleri */
.cd-consent-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

.pill-consent-all {
  background-color: #ecfdf5;
  color: #047857;
  border: 1px solid rgba(4, 120, 87, 0.25);
}

.pill-consent-partial {
  background-color: #eff6ff;
  color: #1d4ed8;
  border: 1px solid rgba(29, 78, 216, 0.25);
}

.pill-consent-none {
  background-color: #f8fafc;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

/* ==========================================================================
   Contacts Table Customizations & Modals
   ========================================================================== */

/* Hide DataTables default search box */
#contacts-datatable_filter {
  display: none !important;
}

/* Modal Backdrop & Dialog */
body.modal-open {
  overflow: hidden;
}

.custom-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: modalFadeIn 0.15s ease-out;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.custom-modal-dialog {
  background: var(--bg-card, #ffffff);
  border-radius: 14px;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--border-color, #e2e8f0);
  overflow: hidden;
  animation: modalSlideUp 0.18s ease-out;
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: scale(0.97) translateY(10px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.custom-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border-color, #f1f5f9);
}

.modal-title-with-icon {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.modal-icon-box.icon-blue {
  background: #eff6ff;
  color: #2563eb;
}

.modal-icon-box.icon-green {
  background: #ecfdf5;
  color: #059669;
}

.modal-icon-box.icon-purple {
  background: #f5f3ff;
  color: #7c3aed;
}

.modal-icon-box.icon-light-blue {
  background: #f0fdfa;
  color: #0284c7;
}

.custom-modal-heading {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary, #0f172a);
  margin: 0 0 2px 0;
}

.custom-modal-sub {
  font-size: 12.5px;
  color: var(--text-secondary, #64748b);
  margin: 0;
}

.btn-modal-close {
  background: none;
  border: none;
  font-size: 22px;
  line-height: 1;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.15s;
}

.btn-modal-close:hover {
  background: #f1f5f9;
  color: #334155;
}

.custom-modal-body {
  padding: 20px 24px;
  max-height: calc(85vh - 130px);
  overflow-y: auto;
}

.custom-modal-footer {
  padding: 14px 24px;
  background: var(--bg-hover, #f8fafc);
  border-top: 1px solid var(--border-color, #f1f5f9);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Consent Checkbox Cards */
.consent-checkbox-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.consent-check-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 8px;
  background: var(--bg-card, #ffffff);
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}

.consent-check-card:hover {
  border-color: #93c5fd;
  background: #f8fafc;
}

.consent-check-card input[type="checkbox"] {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: #2563eb;
  cursor: pointer;
}

.consent-card-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.consent-card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary, #1e293b);
}

.consent-card-desc {
  font-size: 11.5px;
  color: var(--text-secondary, #64748b);
}

/* Upload Dropzone */
.upload-dropzone {
  border: 2px dashed #93c5fd;
  background: #f0f7ff;
  border-radius: 10px;
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.upload-dropzone:hover,
.upload-dropzone.dragover {
  border-color: #2563eb;
  background: #e0f2fe;
}

.dropzone-text {
  font-size: 13.5px;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 4px;
}

.dropzone-browse {
  color: #2563eb;
  text-decoration: underline;
}

.dropzone-hint {
  font-size: 11.5px;
  color: #64748b;
}

.selected-file-name {
  margin-top: 10px;
  padding: 6px 12px;
  background: #2563eb;
  color: #ffffff;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
}

.template-download-box {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #64748b;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.link-download-template {
  color: #2563eb;
  font-weight: 600;
  text-decoration: underline;
}

.link-download-template:hover {
  color: #1d4ed8;
}

/* Color Picker */
.color-picker-grid {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
}

.color-picker-option {
  position: relative;
  cursor: pointer;
}

.color-picker-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.color-circle {
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  transition: transform 0.15s, border-color 0.15s;
}

.color-circle.bg-blue {
  background: #3b82f6;
}

.color-circle.bg-green {
  background: #10b981;
}

.color-circle.bg-purple {
  background: #8b5cf6;
}

.color-circle.bg-amber {
  background: #f59e0b;
}

.color-circle.bg-coral {
  background: #f43f5e;
}

.color-circle.bg-cyan {
  background: #06b6d4;
}

.color-picker-option input[type="radio"]:checked+.color-circle {
  border-color: #0f172a;
  transform: scale(1.15);
}

/* Bulk Action Cards */
.bulk-action-selection-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bulk-action-card {
  position: relative;
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
  transition: all 0.15s ease;
  background: var(--bg-card, #ffffff);
}

.bulk-action-card:hover {
  border-color: #93c5fd;
  background: #f8fafc;
}

.bulk-action-card input[type="radio"] {
  position: absolute;
  top: 14px;
  right: 14px;
  accent-color: #2563eb;
}

.bulk-action-card:has(input[type="radio"]:checked) {
  border-color: #2563eb;
  background: #eff6ff;
}

.bulk-action-card.danger:has(input[type="radio"]:checked) {
  border-color: #ef4444;
  background: #fef2f2;
}

.bulk-card-inner {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bulk-icon {
  font-size: 20px;
}

.bulk-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bulk-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary, #1e293b);
}

.bulk-desc {
  font-size: 11.5px;
  color: var(--text-secondary, #64748b);
}

.badge-count-pill {
  display: inline-block;
  background: #2563eb;
  color: #ffffff;
  padding: 2px 8px;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 11px;
}

/* Groups Sidebar Create Button */
.btn-create-group-pill {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #2563eb;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-create-group-pill:hover {
  background: #2563eb;
  color: #ffffff;
}

/* Dark Theme Overrides */
[data-theme="dark"] .custom-modal-dialog {
  background: #1e293b;
  border-color: #334155;
}

[data-theme="dark"] .custom-modal-header,
[data-theme="dark"] .custom-modal-footer {
  border-color: #334155;
  background: #0f172a;
}

[data-theme="dark"] .consent-check-card,
[data-theme="dark"] .bulk-action-card {
  background: #0f172a;
  border-color: #334155;
}

[data-theme="dark"] .upload-dropzone {
  background: #0f172a;
  border-color: #3b82f6;
}

[data-theme="dark"] .template-download-box {
  background: #0f172a;
  border-color: #334155;
}

/* Contacts Redesign & Wizard Enhancements */
.input-with-fa {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.input-fa-icon {
  position: absolute;
  left: 14px;
  color: #94a3b8;
  pointer-events: none;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.input-with-fa .form-control {
  padding-left: 38px;
}

.group-chips-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 140px;
  overflow-y: auto;
  padding: 4px 2px;
}

.group-chip-label {
  display: inline-flex;
  cursor: pointer;
  user-select: none;
  margin: 0;
}

.group-chip-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.group-chip-box {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
  transition: all 0.15s ease;
}

.group-chip-label:hover .group-chip-box {
  background: #e2e8f0;
}

.group-chip-label input[type="checkbox"]:checked+.group-chip-box {
  background: #e0e7ff;
  color: #4338ca;
  border-color: #a5b4fc;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(67, 56, 202, 0.08);
}

.contact-groups-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

.btn-group-add-mini {
  background: #f1f5f9;
  border: 1px dashed #cbd5e1;
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 10.5px;
  color: #64748b;
  cursor: pointer;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.btn-group-add-mini:hover {
  background: #e2e8f0;
  color: #1e293b;
  border-color: #94a3b8;
}

.table-mapping {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}

.table-mapping th {
  background: #f8fafc;
  font-weight: 600;
  padding: 10px 12px;
  border-bottom: 2px solid #e2e8f0;
  color: #475569;
  text-align: left;
}

.table-mapping td {
  padding: 10px 12px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.mapping-select {
  width: 100%;
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 12.5px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #1e293b;
}

.step-alert-info {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: #166534;
  font-size: 13px;
}

.consent-rules-panel {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 14px 16px;
  margin-top: 14px;
}

.form-hint-text {
  font-size: 11.5px;
  color: #64748b;
  margin-top: 4px;
}

/* Dark Theme Additions */
[data-theme="dark"] .group-chip-box {
  background: #1e293b;
  color: #cbd5e1;
  border-color: #334155;
}

[data-theme="dark"] .group-chip-label:hover .group-chip-box {
  background: #334155;
}

[data-theme="dark"] .group-chip-label input[type="checkbox"]:checked+.group-chip-box {
  background: #312e81;
  color: #c7d2fe;
  border-color: #6366f1;
}

[data-theme="dark"] .btn-group-add-mini {
  background: #1e293b;
  border-color: #334155;
  color: #94a3b8;
}

[data-theme="dark"] .btn-group-add-mini:hover {
  background: #334155;
  color: #f1f5f9;
}

[data-theme="dark"] .table-mapping th {
  background: #0f172a;
  border-color: #334155;
  color: #cbd5e1;
}

[data-theme="dark"] .table-mapping td {
  border-color: #1e293b;
}

[data-theme="dark"] .mapping-select {
  background: #0f172a;
  color: #f1f5f9;
  border-color: #334155;
}

[data-theme="dark"] .consent-rules-panel {
  background: #0f172a;
  border-color: #334155;
}

[data-theme="dark"] .step-alert-info {
  background: #052e16;
  border-color: #14532d;
  color: #86efac;
}




/* ==========================================================================
   Admin Panel Styles & Helpers
   ========================================================================== */
.admin-badge-super {
  background: #fef3c7;
  color: #92400e;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.admin-badge-role {
  background: #e0e7ff;
  color: #3730a3;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
}

.panel-header-title {
  font-size: 16px;
  font-weight: 600;
  color: #0f172a;
}

.admin-card-metric {
  background: #ffffff;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}

.admin-table-container {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.admin-table-container table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table-container th {
  background: #f8fafc;
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
}

.admin-table-container td {
  padding: 14px 18px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13.5px;
  color: #0f172a;
  vertical-align: middle;
}

.admin-table-container tr:hover td {
  background: #fbfcfe;
}

/* ==========================================================================
   Ortak yardımcı sınıflar (butonlar, uyarılar, metin renkleri)
   ========================================================================== */
.text-primary { color: #2563eb; }
.text-success { color: #059669; }
.text-warning { color: #d97706; }
.text-info { color: #0284c7; }
.nowrap { white-space: nowrap; }
.font-bold { font-weight: 700; }

.btn-sm { padding: 6px 12px; font-size: 12.5px; }
.btn-xs { padding: 3px 9px; font-size: 11.5px; }

.btn-secondary,
.btn-outline-secondary {
  background: var(--bg-surface, #ffffff);
  color: var(--text-primary, #0f172a);
  border-color: var(--border-color, #cbd5e1);
}

.btn-secondary:hover,
.btn-outline-secondary:hover {
  background: var(--bg-hover, #f1f5f9);
}

.alert-warning {
  background-color: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}

.form-control-sm {
  height: 32px;
  padding: 0 10px;
  font-size: 12.5px;
}
