/* ==========================================================================
   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);
}

/* ==========================================================================
   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.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  min-height: 135px;
  justify-content: space-between;
}

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

.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.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.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.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-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.85rem 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  transition: background var(--transition-fast);
  border-radius: var(--border-radius-sm);
}

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

.activity-item:hover {
  background: rgba(255, 255, 255, 0.02);
}

.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.1);
}

.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.25);
  color: var(--cyan-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.activity-title {
  font-size: 0.86rem;
  font-weight: 500;
  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: 600;
  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);
}

/* 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: 0.9rem 1.1rem;
  background: rgba(14, 22, 40, 0.6);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-subtle);
}

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

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

/* ==========================================================================
   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: 80px;
  height: 80px;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 0 15px rgba(230, 162, 60, 0.6));
  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;
}


