/* ==========================================================================
   SON KALE EGM - Components Stylesheet
   Cards, Metrics, Badges, Modals, Forms, Buttons, and Tables
   ========================================================================== */

/* Glass Cards */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--border-radius-lg);
  backdrop-filter: var(--backdrop-blur);
  box-shadow: var(--shadow-card);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.12) 50%, transparent 100%);
}

.glass-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.55);
}

/* ==========================================================================
   MODERN TERMINAL DASHBOARD (1-to-1 Match with Approved Preview)
   ========================================================================== */
.modern-dashboard-layout {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  width: 100%;
}

.dashboard-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.15rem;
}

.dashboard-page-title {
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  font-size: 1.85rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
}

/* Main Grid: Left 2x2 cards + Right Kara Kutu Timeline */
.dashboard-grid-main {
  display: grid;
  grid-template-columns: 1.28fr 0.95fr;
  gap: 1.25rem;
  align-items: stretch;
}

/* Left Column: 2x2 Metric Cards Grid */
.metrics-2x2-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

/* Individual Modern Metric Card */
.modern-metric-card {
  background: rgba(13, 20, 36, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 1.15rem 1.25rem 0.95rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 180px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modern-metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.15) 50%, transparent 100%);
}

.modern-metric-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 210, 255, 0.12);
}

.modern-metric-card.cyan:hover {
  border-color: rgba(0, 210, 255, 0.35);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6), 0 0 25px rgba(0, 210, 255, 0.2);
}

.modern-metric-card.amber:hover {
  border-color: rgba(245, 158, 11, 0.35);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6), 0 0 25px rgba(245, 158, 11, 0.2);
}

.modern-metric-card.blue:hover {
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6), 0 0 25px rgba(59, 130, 246, 0.2);
}

.mmc-top {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  position: relative;
  z-index: 2;
}

.mmc-icon-badge {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mmc-icon-badge.cyan {
  background: rgba(0, 210, 255, 0.15);
  border: 1px solid rgba(0, 210, 255, 0.35);
  color: #00d2ff;
  box-shadow: 0 0 12px rgba(0, 210, 255, 0.25);
}

.mmc-icon-badge.amber {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.25);
}

.mmc-icon-badge.blue {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: #60a5fa;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.25);
}

.mmc-val-group {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.mmc-value {
  font-family: 'Outfit', sans-serif;
  font-size: 1.65rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.1;
}

.mmc-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 0.15rem;
}

.mmc-title-text {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.3;
  margin-top: 0.2rem;
}

.mmc-arrow {
  color: var(--text-muted);
  opacity: 0.4;
  display: flex;
  align-items: center;
  transition: all 0.2s;
}

.modern-metric-card:hover .mmc-arrow {
  opacity: 1;
  color: #fff;
  transform: translateX(3px);
}

.mmc-chart-container {
  width: 100%;
  height: 60px;
  position: relative;
  margin: 0.35rem 0;
  z-index: 1;
}

.mmc-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.mmc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.76rem;
  color: var(--text-secondary);
  position: relative;
  z-index: 2;
}

.mmc-footer-val {
  color: #ffffff;
  font-weight: 600;
}

/* Right Column: Kara Kutu Denetim Kayıtları */
.modern-audit-card {
  background: rgba(13, 20, 36, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

.mac-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.15rem;
}

.mac-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
}

.mac-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.mac-filter-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.16);
}

.mac-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding-left: 2.1rem;
  flex: 1;
}

.mac-timeline-line {
  position: absolute;
  left: 11px;
  top: 14px;
  bottom: 14px;
  width: 2px;
  background: linear-gradient(180deg, rgba(0, 210, 255, 0.5) 0%, rgba(59, 130, 246, 0.35) 60%, rgba(245, 158, 11, 0.2) 100%);
}

.mac-item {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0.5rem 0.8rem;
  border-radius: 10px;
  background: rgba(18, 27, 48, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: all 0.2s;
}

.mac-item:hover {
  background: rgba(23, 34, 60, 0.65);
  border-color: rgba(255, 255, 255, 0.08);
}

.mac-node {
  position: absolute;
  left: -2.35rem;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0b1222;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
  z-index: 2;
}

.mac-node.gold {
  color: #f5b041;
  border: 1.5px solid #f5b041;
  box-shadow: 0 0 10px rgba(245, 176, 65, 0.35);
}

.mac-node.blue {
  color: #38bdf8;
  border: 1.5px solid #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.35);
}

.mac-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mac-officer-name {
  font-size: 0.84rem;
  font-weight: 600;
  color: #f1f5f9;
}

.mac-timestamp {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.mac-item-bottom {
  margin-top: 0.2rem;
}

.mac-action-tag {
  display: inline-block;
  font-size: 0.74rem;
  color: var(--text-secondary);
}

.mac-footer {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: flex-end;
}

.mac-view-all-link {
  background: transparent;
  border: none;
  color: var(--cyan-primary);
  font-size: 0.82rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: all 0.2s;
}

.mac-view-all-link:hover {
  color: #ffffff;
  transform: translateX(3px);
}

/* Bottom Section: Modern Personnel Roster Card */
.modern-roster-card {
  background: rgba(13, 20, 36, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 1.25rem 1.4rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
}

.mrc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.15rem;
}

.mrc-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
}

.mrc-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.38rem 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.mrc-filter-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.mrc-table-wrapper {
  width: 100%;
  overflow-x: auto;
}

.mrc-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.mrc-table th {
  padding: 0.75rem 1rem;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: capitalize;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mrc-table td {
  padding: 0.85rem 1rem;
  font-size: 0.84rem;
  color: var(--text-primary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}

.mrc-table tbody tr {
  transition: background 0.2s;
}

.mrc-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.035);
}

.mrc-personnel-col {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mrc-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  background: #0f172a;
}

.mrc-name {
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
}

.mrc-rank-text {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-secondary);
  font-size: 0.82rem;
  white-space: nowrap;
}

.mrc-rank-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f59e0b;
}

.mrc-rank-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.mrc-action-dots {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.3rem 0.5rem;
  border-radius: 6px;
  font-size: 1.1rem;
  line-height: 1;
  letter-spacing: 2px;
  transition: all 0.2s;
}

.mrc-action-dots:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 1200px) {
  .dashboard-grid-main {
    grid-template-columns: 1fr;
  }
}

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

/* ==========================================================================
   Dashboard Header & Officer Info Banner
   ========================================================================== */
.dashboard-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  position: relative;
  padding: 0.5rem 0;
}

.hero-text-content {
  flex: 1;
  max-width: 850px;
}

.hero-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.hero-title-name {
  color: var(--gold-light);
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 20px rgba(230, 162, 60, 0.3);
}

.hero-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  font-weight: 400;
}

.hero-badges-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.officer-info-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.9rem;
  background: rgba(18, 27, 49, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  backdrop-filter: blur(8px);
  transition: all var(--transition-fast);
}

.officer-info-pill:hover {
  background: rgba(26, 38, 68, 0.8);
  border-color: var(--border-highlight);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.officer-info-pill .pill-icon {
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  font-size: 0.85rem;
}

.officer-info-pill .pill-val {
  color: var(--text-primary);
  font-weight: 600;
}

/* Header Emblem Graphic */
.hero-emblem-wrap {
  position: relative;
  width: 100px;
  height: 100px;
  max-width: 100px;
  max-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-emblem-glow {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230, 162, 60, 0.25) 0%, rgba(230, 162, 60, 0.05) 50%, transparent 70%);
  filter: blur(12px);
  pointer-events: none;
  animation: pulse-glow 4s ease-in-out infinite alternate;
}

.hero-emblem-img {
  width: 85px;
  height: 85px;
  max-width: 85px;
  max-height: 85px;
  object-fit: contain;
  filter: drop-shadow(0 0 15px rgba(230, 162, 60, 0.45));
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hero-emblem-img:hover {
  transform: scale(1.06) rotate(3deg);
}

/* ==========================================================================
   4 Stat Metric Cards (Top Metrics Grid)
   ========================================================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.stat-card {
  padding: 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  min-height: 142px;
  justify-content: space-between;
  background: radial-gradient(130% 130% at 50% -10%, rgba(255, 255, 255, 0.05) 0%, rgba(13, 20, 38, 0.88) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  box-shadow: 0 12px 32px -5px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.04);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.75), 0 0 25px rgba(0, 210, 255, 0.12);
}

.stat-card-top {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.stat-drilldown-arrow {
  margin-left: auto;
  color: var(--text-muted);
  opacity: 0.4;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
}

.stat-card:hover .stat-drilldown-arrow {
  opacity: 1;
  color: var(--text-primary);
  transform: translateX(3px);
}

.stat-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--transition-normal);
}

.stat-card:hover .stat-icon-badge {
  transform: scale(1.1);
}

/* Stat Card Colors */
.stat-card.gold .stat-icon-badge {
  background: rgba(230, 162, 60, 0.15);
  border: 1px solid rgba(230, 162, 60, 0.3);
  color: var(--gold-light);
  box-shadow: 0 0 15px rgba(230, 162, 60, 0.2);
}

.stat-card.gold:hover {
  border-color: rgba(230, 162, 60, 0.35);
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.75), 0 0 25px rgba(230, 162, 60, 0.16);
}

.stat-card.cyan .stat-icon-badge {
  background: rgba(0, 210, 255, 0.15);
  border: 1px solid rgba(0, 210, 255, 0.3);
  color: var(--cyan-primary);
  box-shadow: 0 0 15px rgba(0, 210, 255, 0.2);
}

.stat-card.cyan:hover {
  border-color: rgba(0, 210, 255, 0.35);
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.75), 0 0 25px rgba(0, 210, 255, 0.16);
}

.stat-card.purple .stat-icon-badge {
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: var(--purple-primary);
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.2);
}

.stat-card.purple:hover {
  border-color: rgba(168, 85, 247, 0.35);
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.75), 0 0 25px rgba(168, 85, 247, 0.16);
}

.stat-card.amber .stat-icon-badge {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--amber-primary);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.2);
}

.stat-card.amber:hover {
  border-color: rgba(245, 158, 11, 0.35);
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.75), 0 0 25px rgba(245, 158, 11, 0.16);
}

.stat-meta-group {
  display: flex;
  flex-direction: column;
}

.stat-title {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.stat-value {
  font-family: 'Outfit', sans-serif;
  font-size: 1.85rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.15;
}

.stat-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.6rem;
  position: relative;
  z-index: 2;
}

.stat-trend {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--emerald-primary);
}

.stat-trend.up {
  color: #34d399;
}

.stat-trend.down {
  color: #fb7185;
}

.stat-sparkline {
  width: 100px;
  height: 32px;
}

/* ==========================================================================
   Two Column Grid: Son İşlemler & Yaklaşan Görevler
   ========================================================================== */
.two-col-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.panel-header {
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.panel-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
}

.btn-view-all {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.btn-view-all:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-card);
}

.panel-list {
  padding: 0.75rem 1.25rem;
  display: flex;
  flex-direction: column;
}

/* Recent Activity List Item */
.activity-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: all var(--transition-fast);
  border-radius: var(--border-radius-sm);
  position: relative;
}

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

.activity-item:hover {
  background: rgba(255, 255, 255, 0.035);
  transform: translateX(4px);
}

.activity-avatar-wrap {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}

.activity-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}

.activity-avatar-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 210, 255, 0.12);
  border: 1px solid rgba(0, 210, 255, 0.3);
  color: var(--cyan-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px rgba(0, 210, 255, 0.2);
}

.activity-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.activity-title {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.activity-sub {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.activity-time {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-right: 0.75rem;
  white-space: nowrap;
}

/* Status Badges */
.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.7rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.status-pill.success {
  background: var(--badge-success-bg);
  color: var(--badge-success-text);
  border: 1px solid var(--badge-success-border);
}

.status-pill.info {
  background: var(--badge-info-bg);
  color: var(--badge-info-text);
  border: 1px solid var(--badge-info-border);
}

.status-pill.warning {
  background: var(--badge-warning-bg);
  color: var(--badge-warning-text);
  border: 1px solid var(--badge-warning-border);
}

.status-pill.danger {
  background: var(--badge-danger-bg);
  color: var(--badge-danger-text);
  border: 1px solid var(--badge-danger-border);
}

.status-pill.gold {
  background: rgba(230, 162, 60, 0.15);
  color: #f5b041;
  border: 1px solid rgba(230, 162, 60, 0.35);
}

.status-pill.primary {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.35);
}

/* Category Filter Tabs & Badge Pills */
.badge-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
  background: rgba(18, 27, 49, 0.8);
  color: #94a3b8;
  backdrop-filter: blur(8px);
  white-space: nowrap;
  user-select: none;
  font-family: inherit;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.badge-pill:hover {
  background: rgba(88, 101, 242, 0.18);
  border-color: rgba(88, 101, 242, 0.45);
  color: #ffffff;
  transform: translateY(-1px);
}

.badge-pill.badge-primary,
.badge-pill.active {
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.4) 0%, rgba(0, 210, 255, 0.3) 100%);
  border: 1.5px solid #5865F2;
  color: #ffffff;
  box-shadow: 0 0 16px rgba(88, 101, 242, 0.4), inset 0 0 10px rgba(88, 101, 242, 0.2);
  font-weight: 700;
}

.badge-pill.badge-neutral {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
}

.badge-pill.badge-neutral:hover {
  background: rgba(30, 41, 59, 0.9);
  border-color: rgba(255, 255, 255, 0.18);
  color: #f1f5f9;
}

/* Custom Scrollbars */
.custom-scrollbar::-webkit-scrollbar {
  height: 6px;
  width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: rgba(88, 101, 242, 0.4);
  border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: rgba(88, 101, 242, 0.7);
}

/* Upcoming Tasks List */
.task-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  transition: all var(--transition-fast);
  border-radius: var(--border-radius-sm);
  cursor: pointer;
}

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

.task-item:hover {
  background: rgba(255, 255, 255, 0.03);
  transform: translateX(3px);
}

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

.task-icon-box.purple {
  background: rgba(168, 85, 247, 0.15);
  color: var(--purple-primary);
  border: 1px solid rgba(168, 85, 247, 0.25);
}

.task-icon-box.green {
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald-primary);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.task-icon-box.blue {
  background: rgba(0, 210, 255, 0.15);
  color: var(--cyan-primary);
  border: 1px solid rgba(0, 210, 255, 0.25);
}

.task-icon-box.gold {
  background: rgba(230, 162, 60, 0.15);
  color: var(--gold-light);
  border: 1px solid rgba(230, 162, 60, 0.25);
}

.task-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.task-title {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-primary);
}

.task-sub {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.task-date-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.task-date-badge.urgent {
  color: #fb7185;
  background: rgba(244, 63, 94, 0.1);
  border-color: rgba(244, 63, 94, 0.25);
}

.task-item:hover .task-date-badge {
  color: var(--text-primary);
  border-color: var(--border-card);
}

/* ==========================================================================
   Bottom Row Grid: Hızlı İşlemler & Sistem Duyuruları
   ========================================================================== */
.bottom-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 1.5rem;
}

/* Quick Actions Cards */
.quick-actions-panel {
  padding: 1.5rem;
}

.quick-actions-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
  margin-bottom: 1.25rem;
}

.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.85rem;
}

.quick-action-card {
  background: rgba(18, 28, 51, 0.55);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-md);
  padding: 1rem 0.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}

.quick-action-card:hover {
  background: rgba(230, 162, 60, 0.08);
  border-color: rgba(230, 162, 60, 0.35);
  box-shadow: 0 0 20px rgba(230, 162, 60, 0.15);
  transform: translateY(-3px);
}

.quick-action-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(230, 162, 60, 0.1);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.65rem;
  border: 1px solid rgba(230, 162, 60, 0.2);
  transition: all var(--transition-fast);
}

.quick-action-card:hover .quick-action-icon {
  transform: scale(1.1);
  background: rgba(230, 162, 60, 0.25);
  color: #ffffff;
  border-color: var(--gold-primary);
  box-shadow: 0 0 10px rgba(230, 162, 60, 0.4);
}

.quick-action-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
}

.quick-action-tag {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* System Announcements Panel */
.announcement-item {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.announcement-dot {
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-primary);
  box-shadow: 0 0 10px rgba(230, 162, 60, 0.8);
}

.announcement-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 0.35rem;
}

.announcement-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.announcement-date {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Modals & Popups
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(3, 6, 12, 0.78);
  backdrop-filter: blur(10px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-window {
  background: var(--bg-secondary);
  border: 1px solid var(--border-card);
  border-radius: var(--border-radius-xl);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.85);
  max-width: 650px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transform: scale(0.94) translateY(20px);
  transition: all var(--transition-smooth);
}

.modal-backdrop.active .modal-window {
  transform: scale(1) translateY(0);
}

.modal-window.modal-lg {
  max-width: 900px;
}

.modal-window.modal-xl {
  max-width: 1150px;
}

.modal-header {
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(14, 22, 40, 0.5);
}

.modal-title-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.modal-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.btn-modal-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.btn-modal-close:hover {
  background: rgba(244, 63, 94, 0.2);
  color: #fb7185;
}

.modal-body {
  padding: 1.75rem;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  padding: 1rem 1.75rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.85rem;
  background: rgba(14, 22, 40, 0.5);
}

/* ==========================================================================
   Form Controls & Buttons
   ========================================================================== */
.form-group {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.form-label.required::after {
  content: '*';
  color: var(--rose-primary);
}

.form-control {
  width: 100%;
  padding: 0.7rem 1rem;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-sm);
  font-size: 0.88rem;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.form-control:focus {
  background: var(--bg-input-focus);
  border-color: var(--border-highlight);
  box-shadow: 0 0 15px rgba(230, 162, 60, 0.2);
}

textarea.form-control {
  min-height: 110px;
  resize: vertical;
}

select.form-control option {
  background: var(--bg-secondary);
  color: var(--text-primary);
  padding: 0.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--border-radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.btn-primary {
  background: var(--gold-gradient);
  color: #080c15;
  box-shadow: 0 4px 15px rgba(230, 162, 60, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(230, 162, 60, 0.5);
  filter: brightness(1.08);
}

.btn-discord {
  background: #5865F2;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(88, 101, 242, 0.35);
}

.btn-discord:hover {
  background: #4752c4;
  box-shadow: 0 6px 20px rgba(88, 101, 242, 0.5);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border-color: var(--border-card);
}

.btn-danger {
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.35);
  color: #fb7185;
}

.btn-danger:hover {
  background: rgba(244, 63, 94, 0.3);
  color: #ffffff;
}

/* ==========================================================================
   Data Tables
   ========================================================================== */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.data-table th {
  padding: 1rem 1.25rem;
  background: rgba(14, 22, 40, 0.75);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.data-table td {
  padding: 1.05rem 1.25rem;
  font-size: 0.86rem;
  color: var(--text-primary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
  transition: background var(--transition-fast);
}

.data-table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

/* ==========================================================================
   Toast Notification System
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 1000;
  pointer-events: none;
}

.toast {
  padding: 0.9rem 1.25rem;
  border-radius: var(--border-radius-md);
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid var(--border-card);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 320px;
  pointer-events: auto;
  transform: translateX(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.toast-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.toast-message {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
}

.toast.toast-success {
  border-left: 4px solid var(--emerald-primary);
}
.toast.toast-success .toast-icon {
  color: var(--emerald-primary);
}

.toast.toast-error {
  border-left: 4px solid var(--rose-primary);
}
.toast.toast-error .toast-icon {
  color: var(--rose-primary);
}

.toast.toast-gold {
  border-left: 4px solid var(--gold-primary);
}
.toast.toast-gold .toast-icon {
  color: var(--gold-light);
}

/* ==========================================================================
   Discord Topbar Status Pill & Unit Category Cards
   ========================================================================== */
.discord-topbar-status-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  background: rgba(88, 101, 242, 0.1);
  border: 1px solid rgba(88, 101, 242, 0.3);
  border-radius: 20px;
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-right: 0.5rem;
}

.discord-topbar-status-pill:hover {
  background: rgba(88, 101, 242, 0.22);
  border-color: #5865F2;
  box-shadow: 0 0 15px rgba(88, 101, 242, 0.35);
  transform: translateY(-1px);
}

.discord-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulse-emerald 2s infinite;
}

.discord-status-text {
  font-size: 0.76rem;
  font-weight: 600;
  color: #c7d2fe;
}

.unit-category-card:hover {
  transform: translateY(-3px);
  border-color: rgba(230, 162, 60, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(88, 101, 242, 0.1);
}

@keyframes pulse-emerald {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.6; }
}

@keyframes slideInUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 1200px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .two-col-grid, .bottom-grid {
    grid-template-columns: 1fr;
  }
  .quick-actions-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .quick-actions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================================================
   Ultra-Luxurious Official Discord Auth Gate Screen
   ========================================================================== */
.auth-gate-wrapper {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: radial-gradient(circle at 50% 30%, #0c1427 0%, #060913 70%, #03050a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow-y: auto;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.auth-gate-wrapper.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.auth-gate-card {
  max-width: 500px;
  width: 100%;
  background: rgba(13, 19, 36, 0.75);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1.5px solid rgba(230, 162, 60, 0.25);
  border-radius: 20px;
  padding: 3rem 2.5rem;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9), 0 0 50px rgba(230, 162, 60, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  animation: modalScaleIn 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-gate-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #e6a23c, #00d2ff, #5865F2, transparent);
  animation: shineBorder 4s infinite linear;
}

@keyframes shineBorder {
  0% { transform: translateX(-30%); }
  100% { transform: translateX(30%); }
}

.auth-emblem-halo {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-emblem-halo::after {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230, 162, 60, 0.3) 0%, transparent 70%);
  animation: pulseGlow 3s infinite ease-in-out;
  z-index: 1;
}

.auth-emblem-img {
  width: 135px;
  height: 135px;
  object-fit: contain;
  border-radius: 50%;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 0 25px rgba(230, 162, 60, 0.7));
  animation: floatEmblem 4s ease-in-out infinite;
}

@keyframes floatEmblem {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
}

.auth-header-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.85rem;
  border-radius: 30px;
  background: rgba(230, 162, 60, 0.1);
  border: 1px solid rgba(230, 162, 60, 0.3);
  color: #f5b041;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.auth-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2.1rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.35rem;
  letter-spacing: -0.5px;
  line-height: 1.15;
}

.auth-title span {
  background: linear-gradient(135deg, #e6a23c 0%, #f5b041 50%, #ffd04b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 25px rgba(230, 162, 60, 0.4);
}

.auth-subtitle {
  font-size: 0.86rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.5;
}

.auth-features-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 1.1rem;
  margin-bottom: 2rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.auth-feature-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.82rem;
  color: #cbd5e1;
}

.auth-feature-item span.icon {
  font-size: 1rem;
  width: 22px;
  text-align: center;
}

.btn-discord-gate {
  width: 100%;
  padding: 1.1rem 1.5rem;
  background: linear-gradient(135deg, #5865F2 0%, #4752C4 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(88, 101, 242, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn-discord-gate:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(88, 101, 242, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  background: linear-gradient(135deg, #6775f5 0%, #4e5be0 100%);
}

.btn-discord-gate:active {
  transform: translateY(1px);
}

.btn-discord-gate::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(60deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: rotate(30deg);
  animation: btnShimmer 3.5s infinite;
}

@keyframes btnShimmer {
  0% { transform: translateX(-100%) rotate(30deg); }
  30%, 100% { transform: translateX(100%) rotate(30deg); }
}

.auth-gate-footer {
  margin-top: 1.75rem;
  font-size: 0.74rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* ==========================================================================
   7-Segment Discharge Warning Meter (7'lik İhraç Barı)
   ========================================================================== */
.discharge-meter-card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.85) 100%);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--border-radius-lg, 12px);
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

.discharge-meter-card.critical {
  border-color: rgba(239, 68, 68, 0.5);
  box-shadow: 0 10px 35px rgba(239, 68, 68, 0.15);
}

.discharge-meter-card.expelled {
  border-color: #dc2626;
  background: linear-gradient(135deg, rgba(30, 10, 15, 0.98) 0%, rgba(20, 5, 10, 0.98) 100%);
  box-shadow: 0 10px 40px rgba(220, 38, 38, 0.3);
}

.discharge-meter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.meter-title-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.meter-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.meter-slots-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.75rem;
  margin: 1.25rem 0;
}

@media (max-width: 768px) {
  .meter-slots-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.meter-slot {
  background: rgba(255, 255, 255, 0.02);
  border: 1.5px dashed rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 0.85rem 0.5rem;
  text-align: center;
  position: relative;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.meter-slot-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
}

.meter-slot-icon {
  font-size: 1.1rem;
}

.meter-slot-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Slot 7 (İhraç Sınırı) Özel Tasarım */
.meter-slot-7 {
  border: 1.5px dashed rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.04);
}

.meter-slot-7 .meter-slot-number,
.meter-slot-7 .meter-slot-label {
  color: #f87171;
}

/* Aktif (Dolu) Slotlar */
.meter-slot.active-1,
.meter-slot.active-2 {
  background: rgba(245, 158, 11, 0.15);
  border: 1.5px solid #f59e0b;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.25);
}
.meter-slot.active-1 .meter-slot-number,
.meter-slot.active-2 .meter-slot-number,
.meter-slot.active-1 .meter-slot-label,
.meter-slot.active-2 .meter-slot-label {
  color: #fbbf24;
}

.meter-slot.active-3,
.meter-slot.active-4 {
  background: rgba(249, 115, 22, 0.2);
  border: 1.5px solid #f97316;
  box-shadow: 0 0 18px rgba(249, 115, 22, 0.3);
}
.meter-slot.active-3 .meter-slot-number,
.meter-slot.active-4 .meter-slot-number,
.meter-slot.active-3 .meter-slot-label,
.meter-slot.active-4 .meter-slot-label {
  color: #fdba74;
}

.meter-slot.active-5,
.meter-slot.active-6 {
  background: rgba(239, 68, 68, 0.25);
  border: 1.5px solid #ef4444;
  box-shadow: 0 0 22px rgba(239, 68, 68, 0.4);
}
.meter-slot.active-5 .meter-slot-number,
.meter-slot.active-6 .meter-slot-number,
.meter-slot.active-5 .meter-slot-label,
.meter-slot.active-6 .meter-slot-label {
  color: #fca5a5;
}

.meter-slot.active-7 {
  background: rgba(220, 38, 38, 0.4);
  border: 2px solid #dc2626;
  box-shadow: 0 0 30px rgba(220, 38, 38, 0.75);
  animation: ihraPulse 1.5s infinite;
}
.meter-slot.active-7 .meter-slot-number,
.meter-slot.active-7 .meter-slot-label {
  color: #ffffff;
  font-weight: 800;
}

@keyframes ihraPulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.4);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 35px rgba(220, 38, 38, 0.9);
    transform: scale(1.03);
  }
}

.meter-progress-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  overflow: hidden;
  margin: 1rem 0;
  position: relative;
}

.meter-progress-bar {
  height: 100%;
  border-radius: 6px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.meter-info-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.78rem;
  color: var(--text-secondary);
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.85rem;
  margin-top: 0.75rem;
}

.warning-history-box {
  margin-top: 1.5rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-sm);
  padding: 1.25rem;
}

/* ==========================================================================
   🚀 MODERNLEŞTIRME PAKETI v6 — Premium Micro-UX & Visual Excellence
   ========================================================================== */

/* ── 1. AUTH GATE: Animated Mesh Gradient Arka Plan ── */
.auth-gate-wrapper {
  background:
    radial-gradient(ellipse 80% 60% at 20% 20%, rgba(88, 101, 242, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(230, 162, 60, 0.15) 0%, transparent 55%),
    radial-gradient(ellipse 70% 70% at 50% 50%, rgba(0, 210, 255, 0.07) 0%, transparent 70%),
    linear-gradient(135deg, #060913 0%, #0a0f20 50%, #060913 100%);
  animation: meshShift 12s ease-in-out infinite alternate;
}

@keyframes meshShift {
  0%   { background-position: 0% 0%, 100% 100%, 50% 50%; }
  100% { background-position: 30% 30%, 70% 70%, 60% 40%; }
}

/* Auth Gate — Dönen Halkalar & Büyütülmüş Amblem */
.auth-emblem-halo {
  position: relative;
  width: 145px;
  height: 145px;
  margin: 0 auto 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-emblem-halo::before {
  content: '';
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: rgba(230, 162, 60, 0.85);
  border-right-color: rgba(230, 162, 60, 0.4);
  animation: orbitSpin 3.5s linear infinite;
  z-index: 0;
}

.auth-emblem-halo::after {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230, 162, 60, 0.35) 0%, rgba(230, 162, 60, 0.08) 55%, transparent 75%);
  animation: pulseGlow 3s infinite ease-in-out;
  z-index: 1;
}

/* Second orbit ring */
.auth-orbit-ring {
  position: absolute;
  inset: -24px;
  border-radius: 50%;
  border: 1.5px dashed rgba(0, 210, 255, 0.35);
  animation: orbitSpin 9s linear infinite reverse;
  z-index: 0;
}

@keyframes orbitSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.6; transform: scale(0.95); }
  50%       { opacity: 1;   transform: scale(1.05); }
}

/* Auth feature items — more polished */
.auth-features-box {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(230, 162, 60, 0.12);
  border-radius: 14px;
  padding: 1.15rem 1.25rem;
  margin-bottom: 1.75rem;
}

.auth-feature-item {
  font-size: 0.83rem;
  color: #b8c4d4;
  padding: 0.25rem 0;
}

.auth-feature-item span.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: rgba(230, 162, 60, 0.12);
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* ── 2. SIDEBAR: Kullanıcı Widget'ı ── */
.sidebar-user-widget {
  padding: 0.85rem 1rem;
  margin: 0 0.75rem 0.5rem;
  border-radius: var(--border-radius-md);
  background: linear-gradient(135deg, rgba(230, 162, 60, 0.06) 0%, rgba(13, 20, 38, 0.4) 100%);
  border: 1px solid rgba(230, 162, 60, 0.15);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.sidebar-user-widget::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(230,162,60,0.08), transparent);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.sidebar-user-widget:hover {
  border-color: rgba(230, 162, 60, 0.35);
  box-shadow: 0 4px 20px rgba(230, 162, 60, 0.12);
  transform: translateY(-1px);
}

.sidebar-user-widget:hover::before { opacity: 1; }

.sidebar-user-avatar {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  border: 2px solid rgba(230, 162, 60, 0.5);
  object-fit: cover;
  box-shadow: 0 0 12px rgba(230, 162, 60, 0.25);
}

.sidebar-user-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.sidebar-user-name {
  font-size: 0.83rem;
  font-weight: 700;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-rank {
  font-size: 0.67rem;
  color: var(--gold-light);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0.85;
}

.sidebar-user-status {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.65rem;
  color: var(--emerald-primary);
  font-weight: 600;
  margin-top: 0.1rem;
}

.sidebar-user-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald-primary);
  box-shadow: 0 0 6px var(--emerald-primary);
  animation: pulse-emerald 2s infinite;
  flex-shrink: 0;
}

/* ── 3. TOPBAR: Canlı Saat ── */
.topbar-clock {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
  padding: 0.3rem 0.8rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  min-width: 90px;
}

.topbar-clock-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.05em;
  line-height: 1.2;
}

.topbar-clock-date {
  font-size: 0.62rem;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}

/* ── 4. IMPROVED NAV ITEM ACTIVE STATE ── */
.nav-item.active {
  background: linear-gradient(90deg, rgba(0, 210, 255, 0.14) 0%, rgba(0, 210, 255, 0.04) 100%);
  color: #ffffff;
  border-color: rgba(0, 210, 255, 0.25);
  box-shadow: 0 2px 15px rgba(0, 210, 255, 0.08);
}

.nav-item.active .nav-icon {
  color: var(--cyan-primary);
  filter: drop-shadow(0 0 6px rgba(0, 210, 255, 0.6));
}

/* ── 5. RIPPLE BUTON EFEKTİ ── */
.btn, .btn-primary, .btn-secondary, .btn-discord, .btn-danger,
.btn-discord-gate, .quick-action-card, .nav-item {
  position: relative;
  overflow: hidden;
}

.ripple-effect {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: rippleAnim 0.55s linear;
  background: rgba(255, 255, 255, 0.18);
  pointer-events: none;
  z-index: 10;
}

@keyframes rippleAnim {
  to { transform: scale(4); opacity: 0; }
}

/* ── 6. SKELETON LOADER ── */
.skeleton {
  background: linear-gradient(90deg,
    rgba(255,255,255,0.04) 25%,
    rgba(255,255,255,0.09) 50%,
    rgba(255,255,255,0.04) 75%
  );
  background-size: 200% 100%;
  animation: skeletonShimmer 1.6s infinite;
  border-radius: 8px;
}

@keyframes skeletonShimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-card {
  background: rgba(13, 20, 36, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  padding: 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.skeleton-line {
  height: 14px;
  border-radius: 7px;
}

.skeleton-line.sk-title { width: 45%; height: 18px; }
.skeleton-line.sk-full  { width: 100%; }
.skeleton-line.sk-half  { width: 60%; }
.skeleton-line.sk-short { width: 35%; }

.skeleton-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── 7. TOAST PROGRESS BAR ── */
.toast {
  position: relative;
  overflow: hidden;
}

.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  border-radius: 0 0 var(--border-radius-md) var(--border-radius-md);
  animation: toastProgress var(--toast-duration, 4s) linear forwards;
  transform-origin: left;
}

.toast.toast-success .toast-progress { background: var(--emerald-primary); }
.toast.toast-error   .toast-progress { background: var(--rose-primary); }
.toast.toast-gold    .toast-progress { background: var(--gold-primary); }
.toast.toast-info    .toast-progress { background: var(--cyan-primary); }

@keyframes toastProgress {
  from { width: 100%; }
  to   { width: 0%; }
}

/* ── 8. COUNT-UP ANİMASYONU — Sayı değiştiğinde flash ── */
.count-up-flash {
  animation: countFlash 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes countFlash {
  0%   { transform: scale(1.18); color: var(--cyan-primary); }
  100% { transform: scale(1);    color: inherit; }
}

/* ── 9. TABLO İYİLEŞTİRMELERİ ── */
.data-table {
  border-radius: 12px;
  overflow: hidden;
}

.data-table thead {
  position: sticky;
  top: 0;
  z-index: 2;
}

.data-table th {
  background: rgba(10, 15, 29, 0.92);
  backdrop-filter: blur(12px);
}

/* Zebra striping */
.data-table tbody tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.012);
}

.data-table tr:hover td {
  background: rgba(0, 210, 255, 0.04) !important;
  transition: background 0.15s ease;
}

/* ── 10. GELIŞMIŞ SAYFA GEÇİŞ ANİMASYONLARI ── */
@keyframes page-appear {
  0% {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
    filter: blur(2px);
  }
  60% {
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

/* ── 11. FORM FOCUS ── */
.form-control:focus {
  background: var(--bg-input-focus);
  border-color: rgba(0, 210, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(0, 210, 255, 0.08), 0 0 15px rgba(0, 210, 255, 0.12);
  outline: none;
}

/* Gelişmiş input hover state */
.form-control:hover:not(:focus) {
  border-color: rgba(255, 255, 255, 0.15);
}

/* ── 12. STAT CARD — Renk-aware hover glow ── */
.stat-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity var(--transition-normal);
  pointer-events: none;
}

.stat-card.gold::after  { background: radial-gradient(ellipse 100% 100% at 50% 120%, rgba(230,162,60,0.12) 0%, transparent 65%); }
.stat-card.cyan::after  { background: radial-gradient(ellipse 100% 100% at 50% 120%, rgba(0,210,255,0.1) 0%, transparent 65%); }
.stat-card.purple::after{ background: radial-gradient(ellipse 100% 100% at 50% 120%, rgba(168,85,247,0.1) 0%, transparent 65%); }
.stat-card.amber::after { background: radial-gradient(ellipse 100% 100% at 50% 120%, rgba(245,158,11,0.1) 0%, transparent 65%); }

.stat-card:hover::after { opacity: 1; }

/* ── 13. QUICK ACTION CARD — Renkli hover ── */
.quick-action-card {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.quick-action-card:hover {
  transform: translateY(-4px) scale(1.02);
}

/* ── 14. SIDEBAR BÖLÜM BAŞLIĞI — Taktiksel EGM Ayracı ── */
.nav-section-title {
  font-size: 0.65rem;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 1.5px;
  padding: 1.1rem 0.85rem 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
}

.nav-section-title span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.035);
  padding: 2px 8px;
  border-radius: 4px;
  border-left: 2px solid #e6a23c;
}

.nav-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(230, 162, 60, 0.25) 0%, rgba(255, 255, 255, 0.05) 50%, transparent 100%);
  border-radius: 1px;
}

/* ── 15. MODAL — İyileştirilmiş animasyon ── */
.modal-backdrop.active .modal-window {
  transform: scale(1) translateY(0);
}

.modal-window {
  transform: scale(0.92) translateY(24px);
  transition: all 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── 16. GLASS CARD — Subtle top shine ── */
.glass-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(180deg, rgba(255,255,255,0.025) 0%, transparent 100%);
  pointer-events: none;
  border-radius: inherit;
}

/* ── 17. SCROLLBAR — Cyan accent ── */
::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 210, 255, 0.5);
}

/* ── 18. DISCORD STATUS PILL — Canlı renk ── */
.discord-topbar-status-pill {
  background: rgba(88, 101, 242, 0.08);
}

/* ── 19. SIDEBAR COLLAPSED — User widget gizle ── */
.sidebar.collapsed .sidebar-user-widget {
  display: none;
}

.sidebar.collapsed .nav-section-title::after {
  display: none;
}

/* ── 20. BUTTON GROUP Spacing ── */
.btn + .btn {
  margin-left: 0.5rem;
}

/* ── 21. EMPTY STATE ── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
  gap: 1rem;
}

.empty-state-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 0.5rem;
  animation: float-subtle 4s ease-in-out infinite;
}

.empty-state-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.empty-state-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  max-width: 300px;
  line-height: 1.55;
}

/* ── 22. ACTIVITY ITEM HOVER — Slide with glow ── */
.activity-item:hover {
  background: rgba(0, 210, 255, 0.03);
  border-radius: var(--border-radius-sm);
}

/* ── 23. Shimmer animasyonu — genel hizmet ── */
@keyframes shimmerSlide {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ── 24. Badge pulse for notification ── */
.badge-counter {
  animation: badgePop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes badgePop {
  0%   { transform: scale(0); }
  100% { transform: scale(1); }
}

/* ==========================================================================
   EGM POLİS KOMUTA KONTROL & TAKTİKSEL GÖRSEL SİSTEMİ (V5.6.0)
   ========================================================================== */

/* ── 1. POLİS GÖREV KİMLİK BANNERI (DASHBOARD) ── */
.police-tactical-banner {
  background: linear-gradient(135deg, rgba(11, 18, 36, 0.95) 0%, rgba(6, 10, 22, 0.98) 100%);
  border: 1.5px solid rgba(230, 162, 60, 0.3);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  box-shadow: 0 12px 35px -5px rgba(0, 0, 0, 0.65), 0 0 30px rgba(230, 162, 60, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.police-tactical-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #f5b041, #00d2ff);
  box-shadow: 0 0 12px rgba(245, 176, 65, 0.6);
}

.ptb-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.ptb-emblem-wrap {
  position: relative;
  width: 68px;
  height: 68px;
  min-width: 68px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230, 162, 60, 0.2) 0%, rgba(10, 16, 32, 0.9) 100%);
  border: 1.5px solid rgba(212, 175, 55, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 18px rgba(230, 162, 60, 0.35);
}

.ptb-emblem {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 50%;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.7));
}

.ptb-pulse-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #10b981;
  border: 2px solid #060a14;
  box-shadow: 0 0 8px #10b981;
}

.ptb-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.ptb-official-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}

.ptb-tag-pill {
  background: rgba(0, 210, 255, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(0, 210, 255, 0.3);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.5px;
}

.ptb-welcome-title {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: #ffffff;
  margin: 0;
  line-height: 1.25;
}

.ptb-welcome-title span {
  color: var(--gold-light);
  text-shadow: 0 0 16px rgba(245, 176, 65, 0.4);
}

.ptb-officer-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: 0.15rem;
}

.ptb-badge-no {
  font-family: 'JetBrains Mono', monospace;
  color: #38bdf8;
  background: rgba(0, 210, 255, 0.08);
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid rgba(0, 210, 255, 0.2);
}

.ptb-rank {
  color: #fbbf24;
  font-weight: 600;
}

.ptb-name {
  color: #ffffff;
  font-weight: 600;
}

.ptb-meta-sep {
  color: rgba(255, 255, 255, 0.2);
}

.ptb-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.ptb-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1.1rem;
  border-radius: var(--border-radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: 1px solid transparent;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.ptb-action-btn.primary {
  background: linear-gradient(135deg, rgba(0, 168, 255, 0.2) 0%, rgba(37, 99, 235, 0.3) 100%);
  border-color: rgba(0, 210, 255, 0.4);
  color: #38bdf8;
}

.ptb-action-btn.primary:hover {
  background: linear-gradient(135deg, rgba(0, 168, 255, 0.35) 0%, rgba(37, 99, 235, 0.45) 100%);
  box-shadow: 0 0 16px rgba(0, 210, 255, 0.3);
  transform: translateY(-2px);
}

.ptb-action-btn.secondary {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  color: #f1f5f9;
}

.ptb-action-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}

.ptb-action-btn.gold {
  background: linear-gradient(135deg, rgba(245, 176, 65, 0.18) 0%, rgba(212, 175, 55, 0.08) 100%);
  border-color: rgba(245, 176, 65, 0.4);
  color: #fbbf24;
}

.ptb-action-btn.gold:hover {
  background: linear-gradient(135deg, rgba(245, 176, 65, 0.3) 0%, rgba(212, 175, 55, 0.16) 100%);
  box-shadow: 0 0 16px rgba(245, 176, 65, 0.3);
  transform: translateY(-2px);
}

/* ── 2. TOPBAR TAKTİKSEL KONTROLLER (HUD) ── */
.tactical-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.09);
  border: 1px solid rgba(16, 185, 129, 0.28);
  border-radius: 999px;
  padding: 0.38rem 0.85rem;
  font-size: 0.74rem;
  color: var(--text-secondary);
  letter-spacing: 0.4px;
}

.tactical-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: radarPulse 2s infinite ease-in-out;
}

@keyframes radarPulse {
  0%, 100% { transform: scale(0.9); opacity: 0.8; }
  50%      { transform: scale(1.25); opacity: 1; }
}

.btn-topbar-tactical {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--border-radius-sm);
  padding: 0.42rem 0.8rem;
  color: var(--text-secondary);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
  font-family: inherit;
}

.btn-topbar-tactical:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(230, 162, 60, 0.35);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-topbar-tactical.is-muted {
  opacity: 0.6;
}

/* ── 3. 10-KODLARI TELSİZ MODALI ── */
.ten-codes-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 5, 12, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.ten-codes-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.ten-codes-modal-card {
  background: linear-gradient(135deg, rgba(13, 20, 38, 0.98) 0%, rgba(8, 12, 24, 0.99) 100%);
  border: 1.5px solid rgba(230, 162, 60, 0.35);
  border-radius: 18px;
  width: 100%;
  max-width: 680px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.8), 0 0 35px rgba(230, 162, 60, 0.15);
  animation: modalScaleIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.ten-codes-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.ten-codes-header-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.ten-codes-icon {
  font-size: 1.75rem;
}

.ten-codes-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--gold-light);
  margin: 0;
  letter-spacing: 0.5px;
}

.ten-codes-sub {
  font-size: 0.74rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.ten-codes-close-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.ten-codes-close-btn:hover {
  background: rgba(244, 63, 94, 0.2);
  color: #fb7185;
  border-color: rgba(244, 63, 94, 0.4);
}

.ten-codes-toolbar {
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ten-codes-search-box {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(15, 23, 44, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0.45rem 0.85rem;
}

.ten-codes-search-box input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 0.82rem;
  width: 100%;
  font-family: inherit;
}

.ten-codes-channel-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-family: 'JetBrains Mono', monospace;
  color: #38bdf8;
  background: rgba(0, 210, 255, 0.08);
  border: 1px solid rgba(0, 210, 255, 0.25);
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
}

.ten-codes-list {
  padding: 1rem 1.5rem;
  overflow-y: auto;
  max-height: 480px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ten-code-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 0.65rem 0.95rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.ten-code-item:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateX(4px);
  border-color: rgba(230, 162, 60, 0.35);
}

.ten-code-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.ten-code-badge {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  font-size: 0.84rem;
  padding: 0.2rem 0.6rem;
  border-radius: 5px;
  min-width: 58px;
  text-align: center;
}

.ten-code-badge.success {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.ten-code-badge.danger {
  background: rgba(244, 63, 94, 0.15);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.35);
}

.ten-code-badge.warning {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.ten-code-badge.info {
  background: rgba(0, 210, 255, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(0, 210, 255, 0.35);
}

.ten-code-badge.neutral {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.ten-code-info {
  display: flex;
  flex-direction: column;
}

.ten-code-label {
  font-size: 0.84rem;
  font-weight: 700;
  color: #f8fafc;
}

.ten-code-desc {
  font-size: 0.74rem;
  color: var(--text-secondary);
}

.ten-code-category {
  font-size: 0.7rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 2px 6px;
  border-radius: 4px;
}

.ten-codes-footer {
  padding: 0.95rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.25);
  font-size: 0.74rem;
  color: var(--text-muted);
}

.btn-ten-codes-done {
  background: var(--gold-gradient);
  border: none;
  border-radius: 6px;
  padding: 0.45rem 1.2rem;
  font-weight: 700;
  color: #060913;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.8rem;
  transition: transform var(--transition-fast);
}

.btn-ten-codes-done:hover {
  transform: scale(1.04);
}

/* ── 4. MODERN METRIC CARD (EMERALD RADAR) ── */
.modern-metric-card.emerald {
  border-color: rgba(16, 185, 129, 0.25);
}

.modern-metric-card.emerald:hover {
  border-color: rgba(16, 185, 129, 0.6);
  box-shadow: 0 12px 35px -5px rgba(0, 0, 0, 0.7), 0 0 25px rgba(16, 185, 129, 0.2);
}

.mmc-icon-badge.emerald {
  background: rgba(16, 185, 129, 0.12);
  border: 1.5px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
}

/* Responsive adjustments for banner */
@media (max-width: 900px) {
  .police-tactical-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .ptb-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

/* ── 5. TEŞKİLAT KOMUTA KADEMESİ & DEVELOPER KARE KARTLARI ── */
.commanders-row-container {
  margin-bottom: 1.5rem;
}

.commanders-section-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
  padding: 0 0.25rem;
}

.csb-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.csb-shield {
  font-size: 1.1rem;
}

.csb-heading {
  font-family: 'Outfit', sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: #e2e8f0;
  text-transform: uppercase;
}

.csb-badge {
  font-size: 0.68rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  background: rgba(230, 162, 60, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(230, 162, 60, 0.35);
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.commanders-square-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}

.commander-card {
  aspect-ratio: 1 / 1;
  min-height: 200px;
  background: linear-gradient(145deg, rgba(14, 22, 44, 0.88) 0%, rgba(7, 11, 22, 0.96) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius-md);
  padding: 1rem 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 25px -4px rgba(0, 0, 0, 0.6);
  transition: transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.32s ease, border-color 0.32s ease;
  cursor: default;
}

.commander-card:hover {
  transform: translateY(-6px) scale(1.02);
}

.commander-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  pointer-events: none;
}

/* Theme variations */
.commander-card.gold {
  border-color: rgba(230, 162, 60, 0.4);
}
.commander-card.gold:hover {
  border-color: rgba(230, 162, 60, 0.8);
  box-shadow: 0 16px 40px -5px rgba(0, 0, 0, 0.8), 0 0 25px rgba(230, 162, 60, 0.25);
}
.commander-card.gold::before {
  background: linear-gradient(90deg, transparent, #f5b041, transparent);
}

.commander-card.amber {
  border-color: rgba(245, 158, 11, 0.35);
}
.commander-card.amber:hover {
  border-color: rgba(245, 158, 11, 0.75);
  box-shadow: 0 16px 40px -5px rgba(0, 0, 0, 0.8), 0 0 25px rgba(245, 158, 11, 0.22);
}
.commander-card.amber::before {
  background: linear-gradient(90deg, transparent, #fbbf24, transparent);
}

.commander-card.cyan {
  border-color: rgba(0, 210, 255, 0.35);
}
.commander-card.cyan:hover {
  border-color: rgba(0, 210, 255, 0.75);
  box-shadow: 0 16px 40px -5px rgba(0, 0, 0, 0.8), 0 0 25px rgba(0, 210, 255, 0.25);
}
.commander-card.cyan::before {
  background: linear-gradient(90deg, transparent, #38bdf8, transparent);
}

.commander-card.blue {
  border-color: rgba(59, 130, 246, 0.35);
}
.commander-card.blue:hover {
  border-color: rgba(59, 130, 246, 0.75);
  box-shadow: 0 16px 40px -5px rgba(0, 0, 0, 0.8), 0 0 25px rgba(59, 130, 246, 0.22);
}
.commander-card.blue::before {
  background: linear-gradient(90deg, transparent, #60a5fa, transparent);
}

/* 💻 DEVELOPER SPECIAL CYBER CARD */
.commander-card.cyber {
  background: linear-gradient(145deg, rgba(10, 24, 48, 0.95) 0%, rgba(5, 10, 24, 0.98) 100%);
  border-color: rgba(0, 210, 255, 0.55);
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.7), 0 0 20px rgba(0, 210, 255, 0.18);
}
.commander-card.cyber:hover {
  border-color: #00d2ff;
  box-shadow: 0 18px 45px -5px rgba(0, 0, 0, 0.85), 0 0 35px rgba(0, 210, 255, 0.35), 0 0 20px rgba(168, 85, 247, 0.3);
}
.commander-card.cyber::before {
  background: linear-gradient(90deg, #00d2ff, #a855f7, #f5b041);
  height: 2.5px;
}

/* Card internals */
.cc-avatar-wrapper {
  position: relative;
  width: 60px;
  height: 60px;
  margin-bottom: 0.55rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cc-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s ease;
}

.commander-card:hover .cc-avatar {
  transform: scale(1.05);
}

.cc-insignia-badge {
  position: absolute;
  bottom: -6px;
  right: -8px;
  background: #080d1d;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.8);
}

.cc-name {
  font-size: 0.86rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.cc-rank-tag {
  font-size: 0.67rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  margin-bottom: 0.25rem;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.2px;
}

.cc-rank-tag.gold {
  background: rgba(230, 162, 60, 0.14);
  color: #fbbf24;
  border: 1px solid rgba(230, 162, 60, 0.35);
}

.cc-rank-tag.amber {
  background: rgba(245, 158, 11, 0.14);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.cc-rank-tag.cyan {
  background: rgba(0, 210, 255, 0.14);
  color: #38bdf8;
  border: 1px solid rgba(0, 210, 255, 0.35);
}

.cc-rank-tag.blue {
  background: rgba(59, 130, 246, 0.14);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.35);
}

.cc-rank-tag.cyber {
  background: linear-gradient(135deg, rgba(0, 210, 255, 0.2) 0%, rgba(168, 85, 247, 0.2) 100%);
  color: #38bdf8;
  border: 1px solid rgba(0, 210, 255, 0.4);
}

.cc-role {
  font-size: 0.68rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* Responsive Grid for Square Cards */
@media (max-width: 1300px) {
  .commanders-square-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

/* ==========================================================================
   TACTICAL RADAR & PATROL DISPATCH WIDGET (CYBER-HUD)
   ========================================================================== */
.tactical-radar-card {
  background: radial-gradient(circle at 50% 50%, rgba(10, 25, 47, 0.88) 0%, rgba(5, 11, 24, 0.96) 100%);
  border: 1px solid rgba(0, 229, 255, 0.22);
  border-radius: 18px;
  padding: 1.25rem;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55), inset 0 0 30px rgba(0, 229, 255, 0.05);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tactical-radar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #00e5ff 50%, transparent 100%);
}

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

.radar-title-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: #00e5ff;
  letter-spacing: 0.5px;
}

.radar-signal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00e5ff;
  box-shadow: 0 0 10px #00e5ff;
  animation: radar-blip-pulse 2s infinite;
}

.radar-screen-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 180px;
  background: rgba(2, 6, 18, 0.75);
  border-radius: 12px;
  border: 1px solid rgba(0, 229, 255, 0.15);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Radar concentric rings */
.radar-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(0, 229, 255, 0.18);
  pointer-events: none;
}
.radar-ring.r1 { width: 45px; height: 45px; }
.radar-ring.r2 { width: 95px; height: 95px; }
.radar-ring.r3 { width: 145px; height: 145px; }

/* Radar crosshairs */
.radar-crosshair-h {
  position: absolute;
  width: 100%;
  height: 1px;
  background: rgba(0, 229, 255, 0.12);
}
.radar-crosshair-v {
  position: absolute;
  height: 100%;
  width: 1px;
  background: rgba(0, 229, 255, 0.12);
}

/* Radar sweeping beam */
.radar-sweep-beam {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(0, 229, 255, 0.35) 0deg, rgba(0, 229, 255, 0) 55deg);
  animation: radar-sweep 4s linear infinite;
  pointer-events: none;
}

/* Live Patrol Unit Blips */
.radar-blip-node {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 4px;
  transform: translate(-50%, -50%);
  cursor: pointer;
  z-index: 10;
  transition: transform 0.2s ease;
}

.radar-blip-node:hover {
  transform: translate(-50%, -50%) scale(1.15);
}

.blip-core {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #00e5ff;
  border: 1.5px solid #ffffff;
  box-shadow: 0 0 8px #00e5ff;
}

.blip-core.amber {
  background: #fbbf24;
  box-shadow: 0 0 8px #fbbf24;
}

.blip-core.emerald {
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.blip-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 700;
  color: #ffffff;
  background: rgba(4, 9, 23, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 1px 5px;
  border-radius: 4px;
  white-space: nowrap;
}

/* Radar Live Unit Feed list */
.radar-unit-ticker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.6rem;
}

.radar-unit-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 0.4rem 0.65rem;
  font-size: 0.74rem;
  color: #e2e8f0;
}

/* ==========================================================================
   TOP STATUS DEFCON CHIPS & TELEMETRY
   ========================================================================== */
.tactical-status-strip {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.32rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

.status-chip.defcon-safe {
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.1);
}

.status-chip.defcon-safe .chip-dot {
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
}

.status-chip.crypto-ssl {
  color: #00e5ff;
  border-color: rgba(0, 229, 255, 0.3);
  background: rgba(0, 229, 255, 0.08);
}

.status-chip.crypto-ssl .chip-dot {
  background: #00e5ff;
  box-shadow: 0 0 6px #00e5ff;
}

.status-chip.gold-badge {
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.08);
}

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

/* ==========================================================================
   QUICK FILTER CHIPS FOR PERSONNEL DIRECTORY
   ========================================================================== */
.quick-filters-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.quick-filter-chip {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.quick-filter-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

.quick-filter-chip.active {
  background: rgba(0, 229, 255, 0.15);
  border-color: #00e5ff;
  color: #00e5ff;
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.25);
}

.quick-filter-chip.danger.active {
  background: rgba(239, 68, 68, 0.18);
  border-color: #ef4444;
  color: #ef4444;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.3);
}

/* ==========================================================================
   PERSONNEL HOVER PREVIEW CARD (POPOVER)
   ========================================================================== */
.personnel-hover-trigger {
  position: relative;
  display: inline-block;
}

.personnel-hover-popover {
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: 260px;
  background: rgba(11, 19, 39, 0.98);
  border: 1px solid rgba(0, 229, 255, 0.35);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.75), 0 0 20px rgba(0, 229, 255, 0.12);
  backdrop-filter: blur(20px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.personnel-hover-trigger:hover .personnel-hover-popover {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.php-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}

.php-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid #00e5ff;
  object-fit: cover;
}

.php-meta-name {
  font-weight: 700;
  font-size: 0.88rem;
  color: #ffffff;
}

.php-meta-rank {
  font-size: 0.72rem;
  color: #fbbf24;
}

.php-unit-badge {
  font-size: 0.68rem;
  color: #94a3b8;
  margin-top: 2px;
}

.php-discipline-strip {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
}

/* ==========================================================================
   HIGH-TECH 7-SEGMENT HUD DISCIPLINE METER UPGRADE
   ========================================================================== */
.hud-telemetry-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 0.25rem 0.55rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
}

.hud-telemetry-badge .val-danger {
  color: #ef4444;
  font-weight: 800;
}

.hud-telemetry-badge .val-safe {
  color: #10b981;
  font-weight: 800;
}
