/* ═══════════════════════════════════════════════════════
   VIBOO ADMIN — Premium Violet Design System
═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  /* Colors */
  --primary: #7c3aed;
  --primary-d: #6d28d9;
  --primary-glow: rgba(124, 58, 237, 0.25);
  --accent: #ec4899;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #0ea5e9;

  /* Backgrounds */
  --bg: #f5f3ff;
  --bg2: #ffffff;
  --bg3: #faf9ff;
  --card: #ffffff;
  --card-border: #e8e0ff;

  /* Text */
  --tx: #1e1b4b;
  --tx2: #4c4775;
  --tx3: #a09bb8;

  /* Layout */
  --sidebar: 260px;
  --radius: 16px;
  --radius-sm: 10px;
  --ease: cubic-bezier(.4, 0, .2, 1);
}

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

html {
  scroll-behavior: smooth
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--tx);
  min-height: 100vh;
  overflow-x: hidden;
  font-size: 14px;
  line-height: 1.6
}

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

button {
  cursor: pointer;
  font-family: inherit
}

input,
textarea,
select {
  font-family: inherit;
  color: var(--tx)
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px
}

::-webkit-scrollbar-track {
  background: transparent
}

::-webkit-scrollbar-thumb {
  background: var(--card-border);
  border-radius: 99px
}

.material-symbols-rounded {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0
}

.fire {
  color: var(--primary) !important
}

.flex-between {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px
}

.accent {
  color: var(--primary)
}

/* ════════════════════════════════════════════════════
   AUTH
════════════════════════════════════════════════════ */
.auth-wrap {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  background: #f8fafc;
  overflow: hidden
}

.auth-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none
}

.auth-bg .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.6;
  animation: floatOrb 10s infinite alternate ease-in-out
}

.auth-bg .orb-1 {
  width: 400px;
  height: 400px;
  background: rgba(59, 130, 246, 0.3);
  top: -100px;
  left: -100px;
  animation-delay: 0s
}

.auth-bg .orb-2 {
  width: 500px;
  height: 500px;
  background: rgba(139, 92, 246, 0.25);
  bottom: -150px;
  right: -100px;
  animation-delay: -3s
}

.auth-bg .orb-3 {
  width: 300px;
  height: 300px;
  background: rgba(236, 72, 153, 0.2);
  top: 40%;
  left: 60%;
  animation-delay: -6s
}

@keyframes floatOrb {
  0% {
    transform: translate(0, 0) scale(1)
  }

  100% {
    transform: translate(30px, -50px) scale(1.1)
  }
}

.auth-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 32px;
  padding: 48px 40px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, .04), inset 0 0 0 1px rgba(255, 255, 255, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center
}

.auth-logo {
  margin-bottom: 20px
}

.logo-icon-wrap {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 24px var(--primary-glow)
}

.logo-icon-wrap .material-symbols-rounded {
  font-size: 32px;
  color: #fff
}

.auth-brand {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -.5px;
  color: var(--tx);
  margin-bottom: 6px
}

.auth-sub {
  color: var(--tx2);
  font-size: 14px;
  margin-bottom: 32px;
  font-weight: 500
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%
}

.field {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 0 16px;
  transition: all .3s var(--ease);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .02)
}

.field:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow);
  transform: translateY(-1px)
}

.field-icon {
  color: var(--tx3);
  font-size: 22px
}

.field input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 16px 0;
  font-size: 15px;
  color: var(--tx);
  font-weight: 600
}

.field input::placeholder {
  color: var(--tx3);
  font-weight: 500
}

.btn-auth {
  margin-top: 8px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 16px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .5px;
  transition: all .3s var(--ease);
  box-shadow: 0 8px 24px var(--primary-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px
}

.btn-auth:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px var(--primary-glow)
}

.auth-error {
  color: var(--danger);
  font-size: 13px;
  min-height: 18px;
  text-align: center;
  font-weight: 600
}

/* ════════════════════════════════════════════════════
   LAYOUT
════════════════════════════════════════════════════ */
#adminPanel {
  display: flex;
  min-height: 100vh
}

#loginScreen {
  display: flex
}

/* ════════════════════════════════════════════════════
   SIDEBAR
════════════════════════════════════════════════════ */
.sidebar {
  width: var(--sidebar);
  flex-shrink: 0;
  background: var(--bg2);
  border-right: 1px solid var(--card-border);
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: sticky;
  top: 0;
  overflow-y: auto;
  box-shadow: 4px 0 24px rgba(0, 0, 0, .02);
}

.sb-top {
  flex: 1;
  padding: 24px 0
}

.sb-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 24px 24px;
  border-bottom: 1px solid var(--card-border);
  margin-bottom: 16px
}

.sb-logo .material-symbols-rounded {
  font-size: 28px;
  color: var(--primary)
}

.sb-brand {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.5px;
  color: var(--tx)
}

.sb-menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 16px
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--tx2);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  transition: all .2s var(--ease);
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap
}

.nav-item .material-symbols-rounded {
  font-size: 20px
}

.nav-item:hover {
  background: var(--bg);
  color: var(--primary)
}

.nav-item.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 12px var(--primary-glow);
}

.nav-item.active .material-symbols-rounded {
  color: #fff
}

.nav-dropdown {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 4px 0
}

.nav-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--tx2);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all .2s var(--ease);
  border: 1px solid transparent
}

.nav-dropdown-header:hover {
  background: var(--bg);
  color: var(--primary)
}

.nav-dropdown-header .chevron {
  font-size: 20px;
  transition: transform .3s var(--ease)
}

.nav-dropdown.open .nav-dropdown-header .chevron {
  transform: rotate(180deg)
}

.nav-dropdown.open .nav-dropdown-header {
  color: var(--primary);
  background: var(--bg)
}

.nav-dropdown-content {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding-left: 14px;
  border-left: 2px solid var(--card-border);
  margin-left: 24px;
  margin-top: 4px
}

.nav-dropdown.open .nav-dropdown-content {
  display: flex
}

.sb-divider {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--tx3);
  padding: 20px 16px 8px;
  margin-top: 8px
}

.sb-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-top: 1px solid var(--card-border);
  background: var(--bg3)
}

.sb-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center
}

.sb-avatar .material-symbols-rounded {
  font-size: 20px;
  color: #fff
}

.sb-info {
  flex: 1;
  overflow: hidden
}

.sb-name {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--tx);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.sb-role {
  font-size: 11px;
  color: var(--tx2);
  font-weight: 600
}

.sb-logout {
  background: var(--bg2);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 8px;
  color: var(--tx2);
  display: flex;
  transition: all .2s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .02)
}

.sb-logout:hover {
  color: var(--danger);
  border-color: var(--danger);
  background: #fef2f2
}

/* ════════════════════════════════════════════════════
   MAIN
════════════════════════════════════════════════════ */
.main {
  flex: 1;
  overflow-y: auto;
  padding: 32px 40px
}

.page {
  display: none;
  animation: fadeIn .3s var(--ease)
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px)
  }

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

.page.active {
  display: block
}

#bot_mesajlari.active {
  display: flex;
}

.page-head {
  margin-bottom: 32px
}

.page-head h1 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -.5px;
  color: var(--tx)
}

.page-head p {
  color: var(--tx2);
  font-size: 14px;
  margin-top: 6px;
  font-weight: 500
}

/* ════════════════════════════════════════════════════
   CARD
════════════════════════════════════════════════════ */
.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .03)
}

/* ════════════════════════════════════════════════════
   KPI GRID (Dashboard)
════════════════════════════════════════════════════ */
.kpi-grid {
  margin-bottom: 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.kpi {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all .3s cubic-bezier(.4, 0, .2, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .02);
}

.kpi:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 12px 30px var(--primary-glow);
}

.kpi-top {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--tx2);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 12px
}

.kpi-val {
  font-size: 32px;
  font-weight: 800;
  color: var(--tx);
  letter-spacing: -1px
}

.kpi-sub {
  font-size: 12px;
  color: var(--tx3);
  margin-top: 8px;
  font-weight: 500
}

/* ════════════════════════════════════════════════════
   CHARTS
════════════════════════════════════════════════════ */
.charts-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px
}

.chart-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .02)
}

.chart-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--tx);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: .5px;
  display: flex;
  align-items: center;
  gap: 8px
}

.chart-title::before {
  content: "";
  display: block;
  width: 8px;
  height: 20px;
  background: var(--primary);
  border-radius: 4px
}

.chart-card canvas {
  max-height: 240px
}

/* ════════════════════════════════════════════════════
   TABLE
════════════════════════════════════════════════════ */
.table-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--card-border);
  background: var(--bg3)
}

.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg2);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 0 14px;
  transition: all .2s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .02)
}

.search-field:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow)
}

.search-field .material-symbols-rounded {
  font-size: 18px;
  color: var(--tx3)
}

.search-field input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--tx);
  font-size: 14px;
  padding: 12px 0;
  width: 240px;
  font-weight: 500
}

.tbl-wrap {
  overflow-x: auto
}

.tbl {
  width: 100%;
  border-collapse: collapse
}

.tbl th {
  background: var(--bg3);
  color: var(--tx2);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--card-border);
  white-space: nowrap
}

.tbl td {
  padding: 14px 20px;
  font-size: 14px;
  border-bottom: 1px solid var(--card-border);
  vertical-align: middle;
  color: var(--tx);
  font-weight: 500
}

.tbl tr:hover td {
  background: var(--bg3)
}

.tbl tr:last-child td {
  border-bottom: none
}

/* user cell */
.u-cell {
  display: flex;
  align-items: center;
  gap: 12px
}

.u-cell img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .1)
}

.u-cell .u-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--tx)
}

.u-cell .u-sub {
  font-size: 12px;
  color: var(--tx2);
  margin-top: 2px
}

/* badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700
}

.badge-vip {
  background: #fef3c7;
  color: #d97706;
  border: 1px solid #fde68a
}

.badge-normal {
  background: var(--bg);
  color: var(--tx2);
  border: 1px solid var(--card-border)
}

.badge-online {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0
}

.badge-info {
  background: #dbeafe;
  color: #1d4ed8;
  border: 1px solid #bfdbfe
}

.diamond {
  font-weight: 800;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f3e8ff;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 12px
}

/* ════════════════════════════════════════════════════
   PROFILE GRID (Kız Profilleri)
════════════════════════════════════════════════════ */
.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px
}

.profile-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: all .3s var(--ease);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .03)
}

.profile-card:hover {
  border-color: var(--primary);
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(59, 130, 246, .15)
}

.profile-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block
}

.profile-card .pc-info {
  padding: 16px
}

.pc-info h4 {
  font-size: 15px;
  font-weight: 800;
  color: var(--tx)
}

.pc-info p {
  font-size: 13px;
  color: var(--tx2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 4px;
  font-weight: 500
}

.pc-info .pc-gems {
  font-size: 13px;
  color: var(--accent);
  font-weight: 800;
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 4px
}

/* ════════════════════════════════════════════════════
   CHAT LAYOUT
════════════════════════════════════════════════════ */
.chat-layout {
  display: grid;
  grid-template-columns: 260px 260px 1fr;
  gap: 20px;
  height: calc(100vh - 200px);
  min-height: 520px
}

.chat-col {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg2);
  border: 1px solid var(--card-border);
  border-radius: var(--radius)
}

.col-head {
  font-size: 13px;
  font-weight: 700;
  color: var(--tx);
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 20px 20px 0;
  display: flex;
  align-items: center;
  gap: 10px
}

.col-search {
  display: block;
  width: calc(100% - 40px);
  margin: 16px 20px;
  background: var(--bg3);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13px;
  color: var(--tx);
  outline: none;
  transition: all .2s;
  font-weight: 500
}

.col-search:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
  background: var(--bg2)
}

.list-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 8px 12px
}

/* list items */
.li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all .2s;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid transparent;
  color: var(--tx)
}

.li:hover {
  background: var(--bg3)
}

.li.active {
  background: rgba(59, 130, 246, .08);
  color: var(--primary);
  border-color: var(--primary-glow)
}

.li img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .1)
}

.li .li-sub {
  font-size: 12px;
  color: var(--tx2);
  margin-top: 2px;
  font-weight: 600
}

.empty-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--tx3);
  text-align: center;
  padding: 40px 20px;
  height: 100%
}

.empty-hint .material-symbols-rounded {
  font-size: 48px;
  color: var(--card-border)
}

.empty-hint p {
  font-size: 14px;
  font-weight: 600
}

/* chat main */
.chat-main {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg2);
  border: 1px solid var(--card-border);
  border-radius: var(--radius)
}

.chat-hdr {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--card-border);
  background: var(--bg3)
}

.chat-hdr img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .15)
}

.hdr-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--tx)
}

.hdr-sub {
  font-size: 13px;
  color: var(--tx2);
  font-weight: 600
}

.chat-msgs {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg)
}

.msg {
  max-width: 65%;
  padding: 12px 18px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.5;
  word-break: break-word;
  font-weight: 500;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .05)
}

.msg.kiz {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--primary), var(--primary-d));
  color: #fff;
  border-bottom-right-radius: 4px
}

.msg.erkek {
  align-self: flex-start;
  background: var(--bg2);
  border: 1px solid var(--card-border);
  color: var(--tx);
  border-bottom-left-radius: 4px
}

.msg .mtime {
  font-size: 11px;
  opacity: .7;
  margin-top: 6px;
  display: block;
  text-align: right;
  font-weight: 600
}

.chat-input-row {
  display: flex;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid var(--card-border);
  background: var(--bg2)
}

.chat-input-row input {
  flex: 1;
  background: var(--bg3);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  color: var(--tx);
  padding: 14px 18px;
  font-size: 14px;
  outline: none;
  transition: all .2s;
  font-weight: 500
}

.chat-input-row input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
  background: #fff
}

.send-btn {
  background: var(--primary);
  border: none;
  border-radius: var(--radius-sm);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
  transition: all .2s;
  box-shadow: 0 4px 12px var(--primary-glow)
}

.send-btn:hover {
  background: var(--primary-d);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px var(--primary-glow)
}

/* ════════════════════════════════════════════════════
   SETTINGS
════════════════════════════════════════════════════ */
.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  max-width: 1000px
}

.settings-block {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .02)
}

.settings-block h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 800;
  color: var(--tx);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--card-border)
}

.settings-block h3 .material-symbols-rounded {
  color: var(--primary);
  font-size: 24px;
  background: var(--bg3);
  padding: 6px;
  border-radius: 8px
}

.fields-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px
}

.settings-footer {
  grid-column: 1/-1;
  display: flex;
  justify-content: flex-end;
  padding-top: 8px
}

/* ════════════════════════════════════════════════════
   BUTTONS
════════════════════════════════════════════════════ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--primary), var(--primary-d));
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 4px 12px var(--primary-glow);
  transition: all .2s var(--ease)
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px var(--primary-glow)
}

.btn-primary .material-symbols-rounded {
  font-size: 20px
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg2);
  border: 1px solid var(--card-border);
  color: var(--tx);
  border-radius: var(--radius-sm);
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 600;
  transition: all .2s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .02)
}

.btn-secondary:hover {
  background: var(--bg3);
  border-color: var(--tx3)
}

.btn-ghost {
  background: transparent;
  border: 1px solid transparent;
  color: var(--tx2);
  border-radius: var(--radius-sm);
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 600;
  transition: all .2s
}

.btn-ghost:hover {
  color: var(--tx);
  background: var(--bg)
}

.icon-btn {
  background: var(--bg2);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tx2);
  transition: all .2s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .02)
}

.icon-btn:hover {
  color: var(--danger);
  border-color: var(--danger);
  background: #fef2f2
}

/* ════════════════════════════════════════════════════
   MODAL
════════════════════════════════════════════════════ */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 8000;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px
}

.overlay.open {
  display: flex;
  animation: fadeInModal .3s var(--ease)
}

@keyframes fadeInModal {
  from {
    opacity: 0;
    backdrop-filter: blur(0)
  }

  to {
    opacity: 1;
    backdrop-filter: blur(8px)
  }
}

.modal-box {
  width: 100%;
  max-width: 540px;
  background: var(--bg2);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .15);
  display: flex;
  flex-direction: column;
  transform: scale(0.95);
  animation: scaleUp .3s var(--ease) forwards;
}

@keyframes scaleUp {
  to {
    transform: scale(1)
  }
}

.modal-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px 16px;
  border-bottom: 1px solid var(--card-border)
}

.modal-hdr h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--tx);
  display: flex;
  align-items: center;
  gap: 10px
}

.modal-body {
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--card-border)
}

/* FORM FIELDS IN MODAL */
.fld {
  display: flex;
  flex-direction: column;
  gap: 8px
}

.fld label {
  font-size: 12px;
  font-weight: 800;
  color: var(--tx2);
  text-transform: uppercase;
  letter-spacing: .5px
}

.fld input,
.fld textarea,
.fld select {
  background: var(--bg3);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  color: var(--tx);
  padding: 14px 16px;
  font-size: 14px;
  outline: none;
  transition: all .2s;
  width: 100%;
  font-weight: 500
}

.fld input:focus,
.fld textarea:focus,
.fld select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
  background: var(--bg2)
}

.fld textarea {
  resize: vertical;
  min-height: 90px
}

.perm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 8px
}

.perm-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--bg2);
  border: 2px solid var(--card-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all .2s var(--ease);
}

.perm-card:hover {
  border-color: var(--primary-glow);
  background: var(--bg3)
}

.perm-card input {
  display: none
}

.perm-card span.material-symbols-rounded {
  font-size: 20px;
  color: var(--tx3);
  transition: color .2s
}

.perm-card span.perm-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--tx2);
  transition: color .2s
}

.perm-card:has(input:checked) {
  border-color: var(--primary);
  background: rgba(59, 130, 246, .05)
}

.perm-card:has(input:checked) span.material-symbols-rounded {
  color: var(--primary)
}

.perm-card:has(input:checked) span.perm-label {
  color: var(--primary-d)
}

/* Custom File Upload */
.file-upload-box {
  border: 2px dashed var(--card-border);
  border-radius: var(--radius-sm);
  padding: 32px 20px;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
  background: var(--bg3);
}

.file-upload-box:hover {
  border-color: var(--primary);
  background: rgba(59, 130, 246, .02);
}

.file-upload-box .material-symbols-rounded {
  font-size: 40px;
  color: var(--primary);
  margin-bottom: 12px
}

.file-upload-box p {
  font-size: 14px;
  font-weight: 700;
  color: var(--tx)
}

.file-upload-box span {
  font-size: 12px;
  color: var(--tx3);
  font-weight: 500
}

.img-pick {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 8px 0;
  margin-bottom: 16px
}

.img-pick img {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--card-border);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .08)
}

/* ════════════════════════════════════════════════════
   TOAST
════════════════════════════════════════════════════ */
.toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 9999;
  background: var(--tx);
  border: none;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .2);
  opacity: 0;
  transform: translateY(16px) scale(.95);
  transition: all .3s var(--ease);
  pointer-events: none;
  max-width: 360px
}

.toast.show {
  opacity: 1;
  transform: translateY(0) scale(1)
}

.toast.err {
  background: var(--danger)
}

/* ════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════ */
@media(max-width:1200px) {
  .charts-row {
    grid-template-columns: 1fr
  }
}

@media(max-width:1024px) {
  .chat-layout {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 240px 1fr
  }

  .chat-main {
    grid-column: 1/-1
  }

  .perm-grid {
    grid-template-columns: 1fr
  }
}

@media(max-width:768px) {
  .sidebar {
    width: 72px
  }

  .sb-brand,
  .sb-menu span:not(.material-symbols-rounded),
  .sb-info,
  .sb-divider {
    display: none
  }

  .sb-logo {
    padding: 16px;
    justify-content: center
  }

  .sb-menu {
    padding: 0 8px
  }

  .nav-item {
    padding: 14px;
    justify-content: center
  }

  .sb-user {
    justify-content: center;
    padding: 16px 8px
  }

  .main {
    padding: 24px 20px
  }

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

  .fields-row {
    grid-template-columns: 1fr
  }

  .chat-layout {
    grid-template-columns: 1fr;
    height: auto
  }

  .bekleyen-layout {
    grid-template-columns: 1fr;
    height: auto
  }

  .bekleyen-list-col {
    max-height: 300px
  }
}

/* ════════════════════════════════════════════════════
   KEŞFET & BEĞEN
════════════════════════════════════════════════════ */
.kesfet-kiz-list {
  padding: 16px 20px
}

.kesfet-kiz-chip:hover {
  background: rgba(59, 130, 246, .08) !important;
  border-color: var(--primary-glow) !important
}

.kesfet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.kesfet-kart {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all .3s var(--ease);
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .03)
}

.kesfet-kart:hover {
  border-color: var(--primary);
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(59, 130, 246, .15)
}

.kart-foto-wrap {
  position: relative;
  aspect-ratio: 1
}

.kart-foto {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block
}

.kart-match-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 20px;
  box-shadow: 0 4px 12px var(--primary-glow)
}

.kart-bilgi {
  padding: 16px 20px 12px
}

.kart-isim {
  font-size: 16px;
  font-weight: 800;
  color: var(--tx);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.kart-adi {
  font-size: 13px;
  color: var(--tx2);
  margin-top: 4px;
  font-weight: 600
}

.kart-aksiyonlar {
  padding: 12px 20px 20px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
}

.btn-kart {
  flex: 1;
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s var(--ease);
  white-space: nowrap;
}

.btn-begen {
  background: linear-gradient(135deg, var(--primary), var(--primary-d));
  color: #fff;
  box-shadow: 0 4px 12px var(--primary-glow)
}

.btn-begen:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--primary-glow)
}

.btn-begendi {
  background: linear-gradient(135deg, #a855f7, #7e22ce);
  color: #fff;
  box-shadow: 0 4px 12px rgba(168, 85, 247, .3)
}

.btn-begendi:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(168, 85, 247, .4)
}

.btn-eslestir {
  background: linear-gradient(135deg, #0ea5e9, #0369a1);
  color: #fff;
  box-shadow: 0 4px 12px rgba(14, 165, 233, .3)
}

.btn-eslestir:hover {
  transform: translateY(-2px)
}

.btn-eslesti {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
  cursor: default
}

.btn-kart:disabled:not(.btn-eslesti) {
  opacity: .5;
  cursor: not-allowed
}

/* ════════════════════════════════════════════════════
   BEKLEYEN MESAJLAR
════════════════════════════════════════════════════ */
.bekleyen-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 20px;
  height: calc(100vh - 200px);
  min-height: 560px;
}

.bekleyen-list-col {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg2);
  border: 1px solid var(--card-border);
  border-radius: var(--radius)
}

.bekleyen-chat-col {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg2);
  border: 1px solid var(--card-border);
  border-radius: var(--radius)
}

.bekleyen-li.bekleyen-urgent {
  background: rgba(239, 68, 68, .05)
}

.bekleyen-li.bekleyen-urgent:hover {
  background: rgba(239, 68, 68, .1)
}

.bekleyen-hdr {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--card-border);
  background: var(--bg3);
  flex-shrink: 0;
}

.bh-bot,
.bh-erkek {
  display: flex;
  align-items: center;
  gap: 12px
}

.bh-bot img,
.bh-erkek img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--card-border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .08)
}

.bh-bot img {
  border-color: var(--primary-glow)
}

.bh-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--tx3);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 2px
}

.bh-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--tx)
}

.bh-bot .bh-name {
  color: var(--primary)
}

.bh-arrow {
  color: var(--tx3);
  background: var(--bg2);
  padding: 6px;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .05)
}

/* ════════════════════════════════════════════════════
   BOT YÖNETİMİ
════════════════════════════════════════════════════ */
.bot-dashboard-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.bot-create-card {
  flex: 0 0 380px;
  background: linear-gradient(135deg, #a855f7, #ec4899);
  border-radius: 24px;
  padding: 32px;
  color: #fff;
  box-shadow: 0 20px 40px rgba(168, 85, 247, 0.25);
}

.bot-card-hdr {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.bot-card-hdr .bot-icon-wrap {
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.bot-card-hdr h3 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 4px;
  letter-spacing: -0.5px;
}

.bot-card-hdr p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  line-height: 1.4;
}

.bot-form .form-row {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.bot-form .fld {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bot-form label {
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.9);
}

.bot-form label .material-symbols-rounded {
  font-size: 18px;
}

.bot-form input,
.bot-form select {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  padding: 14px 16px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  outline: none;
  transition: all 0.2s;
}

.bot-form input:focus,
.bot-form select:focus {
  border-color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.25);
}

.bot-form option {
  color: #333;
}

.bot-form .format-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.15);
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 14px;
  font-weight: 600;
}

.bot-actions {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}

.btn-bot-primary {
  flex: 1;
  background: #fff;
  color: #a855f7;
  border: none;
  padding: 16px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.2s;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-bot-primary:hover {
  transform: translateY(-2px);
}

.btn-bot-secondary {
  flex: 1;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 16px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-bot-secondary:hover {
  background: rgba(255, 255, 255, 0.3);
}

.bot-right-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.bot-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.bot-stat-box {
  padding: 24px;
  border-radius: 20px;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
}

.box-purple {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
}

.box-green {
  background: linear-gradient(135deg, #10b981, #059669);
}

.box-pink {
  background: linear-gradient(135deg, #f43f5e, #be123c);
}

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

.stat-top .material-symbols-rounded {
  font-size: 32px;
  opacity: 0.9;
}

.stat-top .badge {
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
}

.stat-val {
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -1px;
}

.stat-label {
  font-size: 15px;
  font-weight: 600;
  opacity: 0.9;
}

.bot-list-header {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg2);
  padding: 20px 24px;
  border-radius: 20px;
  border: 1px solid var(--card-border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.bot-list-header h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--tx);
  margin-bottom: 2px;
}

.bot-list-header p {
  font-size: 13px;
  color: var(--tx2);
  font-weight: 500;
}

.bot-profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.bot-card {
  background: var(--bg2);
  border-radius: 20px;
  padding: 20px;
  border: 1px solid var(--card-border);
  transition: all 0.2s;
  position: relative;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bot-card:hover {
  border-color: var(--primary);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.bot-status {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--bg3);
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--tx2);
  border: 1px solid var(--card-border);
}

.bot-status.online {
  color: #10b981;
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.1);
}

.bot-card-top {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 4px;
}

.bot-avatar-wrap {
  position: relative;
}

.bot-avatar-wrap img {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  object-fit: cover;
  border: 2px solid var(--primary);
}

.bot-gender-badge {
  position: absolute;
  bottom: -6px;
  right: -6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ec4899;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  border: 2px solid var(--bg2);
}

.bot-info h4 {
  font-size: 16px;
  font-weight: 800;
  color: var(--tx);
  margin-bottom: 4px;
}

.bot-info p {
  font-size: 13px;
  color: var(--tx2);
  font-weight: 500;
}

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

.bot-btn-outline {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--card-border);
  padding: 10px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--tx);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: 0.2s;
}

.bot-btn-outline:hover {
  background: var(--bg);
  border-color: var(--tx3);
}

.bot-quick-actions {
  display: flex;
  gap: 8px;
}

.bqa-btn {
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
  font-size: 18px;
}

.bqa-heart {
  background: rgba(244, 63, 94, 0.1);
  color: #f43f5e;
}

.bqa-heart:hover {
  background: #f43f5e;
  color: #fff;
}

.bqa-star {
  background: rgba(234, 179, 8, 0.1);
  color: #eab308;
}

.bqa-star:hover {
  background: #eab308;
  color: #fff;
}

.bqa-delete {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.bqa-delete:hover {
  background: #ef4444;
  color: #fff;
}

/* Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 24px;
}

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

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.3);
  transition: .4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

.switch input:checked+.slider {
  background-color: #fff;
}

.switch input:checked+.slider:before {
  transform: translateX(16px);
  background-color: #a855f7;
}

.stat-badge {
  background: #10b981;
  color: #fff;
  padding: 8px 16px;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.status-dot {
  width: 10px;
  height: 10px;
  background: #fff;
  border-radius: 50%;
  display: inline-block;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0);
  }

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

/* ════════════════════════════════════════════════════
   BOT FOTO GRID (Modal)
════════════════════════════════════════════════════ */
.bot-foto-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.foto-slot {
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.foto-slot-inner {
  width: 100%;
  height: 100%;
  position: relative;
  background: var(--bg3);
  border: 2px dashed var(--card-border);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.foto-slot-inner:hover {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.05);
}

.foto-slot-inner.has-photo {
  border-style: solid;
  border-color: var(--primary);
}

.foto-slot-inner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
}

.foto-slot-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--tx3);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  pointer-events: none;
}

.foto-slot-placeholder .material-symbols-rounded {
  font-size: 32px;
  color: var(--tx3);
}

.foto-slot-inner.has-photo .foto-slot-placeholder {
  display: none;
}

.foto-slot-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 24px;
  height: 24px;
  background: var(--primary);
  color: #fff;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.foto-slot:first-child .foto-slot-badge {
  background: linear-gradient(135deg, #a855f7, #ec4899);
}

.foto-slot-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  background: rgba(239, 68, 68, 0.9);
  color: #fff;
  border-radius: 99px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: 0.2s;
}

.foto-slot-remove .material-symbols-rounded {
  font-size: 16px;
}

.foto-slot-remove:hover {
  background: #ef4444;
  transform: scale(1.1);
}

/* ════════════════════════════════════════════════════
   BOT MESAJLARI (BM)
════════════════════════════════════════════════════ */
.bm-status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 99px;
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  font-weight: 700;
  font-size: 13px;
  border: none;
}

.bm-btn-outline {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 99px;
  background: var(--bg2);
  color: var(--tx2);
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}

.bm-btn-outline .material-symbols-rounded {
  font-size: 16px;
}

.bm-container {
  display: flex;
  flex: 1;
  background: var(--card);
  border-radius: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid var(--card-border);
  min-height: 500px;
}

.bm-sidebar {
  width: 320px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  background: var(--card);
}

.bm-sidebar-actions {
  display: flex;
  gap: 10px;
  padding: 20px;
}

.bm-btn-green {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #10b981;
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}

.bm-btn-purple {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #8b5cf6;
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}

.bm-btn-green .material-symbols-rounded,
.bm-btn-purple .material-symbols-rounded {
  font-size: 18px;
}

.bm-search-box {
  margin: 0 20px 20px;
  position: relative;
}

.bm-search-box .material-symbols-rounded {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--tx3);
  font-size: 20px;
}

.bm-search-box input {
  width: 100%;
  padding: 10px 10px 10px 40px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 13px;
  color: var(--tx1);
  outline: none;
  background: var(--bg);
  transition: 0.2s;
}

.bm-search-box input:focus {
  border-color: #8b5cf6;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.bm-sidebar-stats {
  display: flex;
  gap: 16px;
  padding: 0 20px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  color: var(--tx2);
  font-weight: 600;
}

.bm-sidebar-stats span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.bm-sidebar-stats .material-symbols-rounded {
  font-size: 16px;
  color: #ec4899;
}

.bm-chat-list {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
}

.bm-chat-list::-webkit-scrollbar {
  width: 6px;
}

.bm-chat-list::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 10px;
}

.bm-chat-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: 0.2s;
  border-bottom: 1px solid transparent;
}

.bm-chat-item:hover {
  background: var(--bg);
  border-bottom-color: var(--border);
}

.bm-chat-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}

.bm-chat-info {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bm-chat-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}

.bm-chat-top h4 {
  margin: 0;
  font-size: 14px;
  color: var(--tx1);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bm-chat-top .bm-time {
  font-size: 11px;
  color: var(--tx3);
  font-weight: 600;
  flex-shrink: 0;
}

.bm-preview {
  margin: 0 0 6px;
  font-size: 13px;
  color: var(--tx2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bm-bot-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #8b5cf6;
  font-weight: 700;
}

.bm-bot-badge .material-symbols-rounded {
  font-size: 14px;
}

.bm-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}

.bm-empty-state {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.bm-empty-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(236, 72, 153, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ec4899;
}

.bm-empty-icon .material-symbols-rounded {
  font-size: 40px;
}

.bm-empty-state h2 {
  margin: 0;
  font-size: 22px;
  color: var(--tx1);
}

.bm-empty-state p {
  margin: 0;
  font-size: 14px;
  color: var(--tx2);
  line-height: 1.5;
  font-weight: 500;
}

.tm-quick-btn {
  padding: 6px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--tx1);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: 0.2s;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.tm-quick-btn:hover {
  background: var(--bg2);
  border-color: #10b981;
  color: #10b981;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(16, 185, 129, 0.1);
}

/* Switch Toggle */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  margin: 0;
}

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

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--border);
  transition: .3s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
}

input:checked+.slider {
  background-color: #10b981;
}

input:focus+.slider {
  box-shadow: 0 0 1px #10b981;
}

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

.slider.round {
  border-radius: 24px;
}

.slider.round:before {
  border-radius: 50%;
}

/* Custom Scrollbar for Bot List */
.bot-checkbox-list::-webkit-scrollbar {
  width: 6px;
}

.bot-checkbox-list::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 10px;
}

.ai-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.ai-tabs span {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--tx2);
  font-size: 12px;
  font-weight: 700;
}

.ai-section {
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}

.ai-section:first-of-type {
  padding-top: 0;
}

.ai-section h3 {
  margin: 0 0 16px;
  color: var(--tx1);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
}

.ai-section h3 .material-symbols-rounded {
  color: var(--primary);
}

.ai-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.ai-field label {
  display: block;
  margin-bottom: 7px;
  font-weight: 700;
  color: var(--tx2);
  font-size: 12px;
  text-transform: uppercase;
}

.ai-field input,
.ai-field select,
.ai-field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg2);
  color: var(--tx1);
  font-size: 14px;
}

.ai-field textarea {
  resize: vertical;
  min-height: 88px;
}

.ai-field p,
.ai-toggle small {
  display: block;
  margin: 6px 0 0;
  color: var(--tx3);
  font-size: 11px;
  line-height: 1.45;
}

.ai-toggle {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg2);
  cursor: pointer;
}

.ai-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  margin-top: 2px;
}

.ai-toggle strong {
  display: block;
  color: var(--tx1);
  font-size: 14px;
}

.ai-save-row {
  display: flex;
  justify-content: flex-end;
  padding-top: 24px;
}
.ai-preset-field {
  grid-column: 1 / -1;
}

.ai-preset-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ai-preset-actions .btn-secondary {
  min-height: 38px;
}

.ai-voice-fixed-box {
  grid-column: 1 / -1;
}

.ai-voice-fixed-values {
  border: 1px solid var(--card-border);
  background: var(--bg3);
  border-radius: 14px;
  padding: 16px 18px;
}

.ai-voice-fixed-values p {
  margin: 0 0 8px;
  color: var(--tx2);
}

.ai-voice-fixed-values p:last-child {
  margin-bottom: 0;
}

.ai-vapi-dashboard-note {
  border-color: rgba(14, 165, 233, 0.22) !important;
  background: rgba(14, 165, 233, 0.06) !important;
}

.ai-vapi-dashboard-note p {
  color: var(--tx2);
}

.bot-create-modal-box {
  max-width: 760px !important;
}

.bot-create-form {
  gap: 16px;
}

.bot-create-grid {
  display: grid;
  gap: 14px;
}

.bot-create-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bot-create-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--tx);
  font-size: 14px;
  padding-top: 4px;
}

.bot-create-section-title .material-symbols-rounded {
  color: var(--primary);
  font-size: 20px;
}

.bot-create-checks {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.bot-create-checks label {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg3);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  color: var(--tx2);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 12px;
}

.bot-create-checks input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.bot-create-photo-slot {
  min-height: 112px;
}

.bot-create-status {
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  padding: 12px 14px;
}

.bot-create-status.info {
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary);
}

.bot-create-status.success {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
}

.bot-create-status.error {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}

.bot-create-inline-panel {
  display: block;
  position: relative;
  background: transparent;
  backdrop-filter: none;
  padding: 0;
  margin: 0 0 24px;
}

.bot-create-inline-panel .bot-create-modal-box {
  width: 100%;
  max-width: none !important;
  max-height: none;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
  transform: none;
}

.bot-create-inline-panel .modal-hdr {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.12), rgba(16, 185, 129, 0.08));
}

@media (max-width: 720px) {
  .bot-create-grid.two {
    grid-template-columns: 1fr;
  }

  .bot-create-modal-box {
    max-height: 94vh;
  }
}

.approval-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.approval-stat-card {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.approval-stat-card .material-symbols-rounded {
  color: var(--primary);
  background: rgba(124, 58, 237, 0.1);
  border-radius: 12px;
  padding: 10px;
}

.approval-stat-card strong {
  display: block;
  color: var(--tx);
  font-size: 26px;
  line-height: 1;
}

.approval-stat-card small {
  color: var(--tx3);
  font-weight: 700;
}

.approval-toolbar {
  justify-content: space-between;
  gap: 12px;
}

.approval-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.approval-tab {
  border: 1px solid var(--card-border);
  background: #fff;
  color: var(--tx2);
  border-radius: 10px;
  padding: 9px 14px;
  font-weight: 800;
  cursor: pointer;
}

.approval-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.approval-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
}

.approval-badge.pending {
  color: #9a3412;
  background: #ffedd5;
}

.approval-badge.approved {
  color: #047857;
  background: #d1fae5;
}

.approval-badge.rejected {
  color: #be123c;
  background: #ffe4e6;
}

.approval-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.btn-mini {
  border: 0;
  border-radius: 9px;
  padding: 8px 11px;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.btn-mini.ok {
  background: #10b981;
}

.btn-mini.danger {
  background: #ef4444;
}

.btn-mini:disabled {
  opacity: 0.6;
  cursor: wait;
}

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

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