/* ================== هدر مدرن و اختصاصی ================== */
.app-header {
  background: linear-gradient(180deg, #0e172a 0%, #0a1120 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0 26px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.header-zone {
  display: flex;
  align-items: center;
}

/* بخش ۱: برند و هویت */
.brand-zone {
  gap: 14px;
}

.header-logo-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: #ffffff;
  border: 1.5px solid rgba(201, 164, 74, 0.55);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 2px;
}

.header-logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
}

.brand-text-lockup {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

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

.brand-name {
  font-size: 19px;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: -0.3px;
}

.db-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(13, 122, 95, 0.2);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.brand-sub {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 400;
}

/* بخش ۲: تیکر زنده آمار */
.metrics-ticker {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 8px 18px;
  gap: 16px;
}

.ticker-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.ticker-label {
  font-size: 10.5px;
  color: #94a3b8;
  font-weight: 500;
}

.ticker-val {
  font-size: 13.5px;
  font-weight: 800;
  color: #f1f5f9;
}

.ticker-val.gold { color: #f1d78a; }
.ticker-val.green { color: #34d399; }
.ticker-val.blue { color: #60a5fa; }

.ticker-divider {
  width: 1px;
  height: 26px;
  background: rgba(255, 255, 255, 0.1);
}

/* بخش ۳: اکشن‌ها و پروفایل */
.actions-zone {
  gap: 12px;
}

.date-widget {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 12.5px;
  color: #cbd5e1;
  font-weight: 500;
}

.date-widget svg {
  width: 15px;
  height: 15px;
  color: #c9a44a;
}

.btn-quick-trade {
  background: linear-gradient(135deg, #c9a44a 0%, #b38e36 100%);
  color: #0f172a;
  border: none;
  border-radius: 10px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(201, 164, 74, 0.35);
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-quick-trade:hover {
  background: linear-gradient(135deg, #d6b35d 0%, #c49c3e 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(201, 164, 74, 0.45);
}

.btn-quick-trade svg {
  width: 16px;
  height: 16px;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 5px 12px 5px 8px;
  border-radius: 10px;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #2b558f 0%, #17345f 100%);
  color: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.user-meta {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-size: 12.5px;
  font-weight: 700;
  color: #f1f5f9;
}

.user-role {
  font-size: 10.5px;
  color: #94a3b8;
}

.btn-logout {
  background: transparent;
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-family: inherit;
  transition: all 0.2s;
}

.btn-logout:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

.btn-logout svg {
  width: 15px;
  height: 15px;
}

@media(max-width: 1024px) {
  .metrics-ticker { display: none; }
}

@media(max-width: 700px) {
  .app-header { padding: 0 14px; }
  .user-meta { display: none; }
  .date-widget { display: none; }
}
