/* =====================================================================
   Zynox Dashboard Styles - Cyberpunk / Dark Obsidian & Orange Theme
   ===================================================================== */

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------------- Hero Profile Header Card ---------------- */
.dashboard-hero-card {
  background: rgba(18, 28, 43, 0.75);
  backdrop-filter: blur(16px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
}

.dashboard-hero-user-section {
  display: flex;
  align-items: center;
  gap: 20px;
}

.dashboard-avatar-container {
  position: relative;
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}

.dashboard-avatar-wrap {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--color-surface-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  border: 3px solid #ff6b2b;
  box-shadow: 0 0 20px rgba(255, 107, 43, 0.35);
  overflow: hidden;
}

.dashboard-avatar-edit-btn {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: #ff6b2b;
  color: #fff;
  border: 2px solid #0c1420;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  transition: all 0.2s ease;
}

[dir="rtl"] .dashboard-avatar-edit-btn {
  right: auto;
  left: 0;
}

.dashboard-avatar-edit-btn:hover {
  transform: scale(1.15);
  background: #ff7f45;
  box-shadow: 0 0 12px rgba(255, 107, 43, 0.7);
}

.dashboard-user-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dashboard-role-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #cbd5e1;
  padding: 2px 10px;
  border-radius: 999px;
}

.dashboard-user-name {
  font-family: var(--font-heading, inherit);
  font-size: 1.65rem;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #fff;
  margin: 2px 0 0;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.1);
}

.dashboard-user-email {
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

.dashboard-points-section {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

/* ---------------- Futuristic Horizontal Tab Bar ---------------- */
.dashboard-tabs-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(14, 22, 34, 0.85);
  backdrop-filter: blur(16px);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 6px 10px;
  margin-bottom: 24px;
  overflow-x: auto;
}

.dash-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 8px;
  background: transparent;
  border: 1.5px solid transparent;
  color: var(--color-text-muted);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.dash-tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.dash-tab-btn.active {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.12);
}

.dash-tab-btn.active span:first-child {
  filter: drop-shadow(0 0 8px rgba(255, 107, 43, 0.8));
}

.dash-tab-link {
  color: var(--color-text-muted);
}

.dash-tab-link:hover {
  color: #ff8c5a;
}

/* ---------------- Orders Card ---------------- */
.dashboard-order-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dashboard-order-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.dashboard-order-card__title {
  font-weight: 700;
  font-size: 1.05rem;
}

.dashboard-order-card__meta {
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

.copy-btn {
  background: var(--color-primary);
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  cursor: pointer;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .dashboard-hero-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;
  }
  .dashboard-points-section {
    width: 100%;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 14px;
  }
}
