/* ==============================================================================
   DragondarnDE - Mein Benutzerkonto (account.css)
   Next-Gen Gamer & Glassmorphic Account Cockpit Design System
   ============================================================================== */

/* ------------------------------------------------------------------------------
   1. Dynamic Gamer Dragon Ambient Header
   ------------------------------------------------------------------------------ */
.account-header-card {
  position: relative;
  background: radial-gradient(circle at 92% 15%, rgba(var(--current-rank-rgb, 255, 87, 34), 0.16) 0%, rgba(18, 24, 38, 0.94) 75%);
  border: 1px solid rgba(var(--current-rank-rgb, 255, 87, 34), 0.28);
  border-radius: 22px;
  padding: 1.85rem 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.45), 0 0 35px rgba(var(--current-rank-rgb, 255, 87, 34), 0.1);
  overflow: hidden;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  transition: border-color 0.4s ease, box-shadow 0.4s ease, background 0.4s ease;
}

.account-header-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--current-rank-color, #ff5722), #f59e0b, #a855f7, #00e5ff);
  box-shadow: 0 0 16px var(--current-rank-color, #ff5722);
}

/* Obere Hauptreihe: Profil links, Rang-Widget rechts */
.account-header-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  width: 100%;
}

.account-profile-main {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-width: 0;
  flex: 1;
}

.account-title-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.account-greeting-label {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--current-rank-color, var(--primary));
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.15rem;
  text-shadow: 0 0 12px rgba(var(--current-rank-rgb, 255, 87, 34), 0.4);
}

.account-greeting-label .greeting-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--current-rank-color, var(--primary));
  box-shadow: 0 0 8px var(--current-rank-color, var(--primary));
  display: inline-block;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  will-change: transform, opacity;
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 1; }
  50% { transform: translate3d(0, 0, 0) scale(1.3); opacity: 0.6; }
}

.account-user-headline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.account-user-headline h1 {
  font-size: 1.65rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.account-badges-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.account-email-sub {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.2rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.account-joined-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.account-joined-chip strong {
  color: rgba(255, 255, 255, 0.85);
}

.meta-separator {
  opacity: 0.35;
  font-size: 0.75rem;
}

/* User Badges in Header */
.account-badges-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.user-pill-role.role-verified {
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.user-pill-role.role-unverified {
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
  cursor: pointer;
  transition: all 0.2s ease;
}

.user-pill-role.role-unverified:hover {
  background: rgba(245, 158, 11, 0.25);
  transform: translateY(-1px);
}

.user-pill-role.role-security-score {
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid rgba(0, 229, 255, 0.35);
  color: #00e5ff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.user-pill-role.role-security-score:hover {
  background: rgba(0, 229, 255, 0.24);
  border-color: #00e5ff;
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.35);
  transform: translateY(-1px);
}

/* Header Mini Rank Level-Widget (Rechte Seite) */
.account-header-rank-track {
  background: rgba(10, 15, 26, 0.55);
  border: 1px solid rgba(var(--current-rank-rgb, 255, 87, 34), 0.25);
  border-radius: 16px;
  padding: 0.85rem 1.15rem;
  min-width: 280px;
  max-width: 380px;
  flex: 0 1 380px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.account-header-rank-track:hover {
  background: rgba(10, 15, 26, 0.85);
  border-color: rgba(var(--current-rank-rgb, 255, 87, 34), 0.6);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 20px rgba(var(--current-rank-rgb, 255, 87, 34), 0.25);
}

.header-rank-widget-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
  min-width: 0;
}

.header-rank-widget-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  flex: 1;
}

.header-rank-title-wrap {
  min-width: 0;
  flex: 1;
}

.header-rank-icon-bubble {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(var(--current-rank-rgb, 255, 87, 34), 0.2);
  border: 1px solid rgba(var(--current-rank-rgb, 255, 87, 34), 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--current-rank-color, #ff7043);
  font-size: 0.95rem;
  box-shadow: 0 0 10px rgba(var(--current-rank-rgb, 255, 87, 34), 0.3);
  flex-shrink: 0;
}

.header-rank-tiny-label {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.2rem;
  white-space: nowrap;
}

.header-rank-widget-title h4 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-rank-pct-pill {
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--current-rank-color, #ff7043);
  background: rgba(var(--current-rank-rgb, 255, 87, 34), 0.16);
  border: 1px solid rgba(var(--current-rank-rgb, 255, 87, 34), 0.35);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.3px;
  box-shadow: 0 0 8px rgba(var(--current-rank-rgb, 255, 87, 34), 0.2);
}

.header-rank-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-bottom: 0.45rem;
  position: relative;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4);
}

.header-rank-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--current-rank-color, #ff5722), #f59e0b);
  box-shadow: 0 0 10px rgba(var(--current-rank-rgb, 255, 87, 34), 0.5);
  transition: width 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.header-rank-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  min-width: 0;
}

.header-rank-values {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1;
}

.header-rank-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
  flex-shrink: 0;
  opacity: 0.8;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.header-rank-hint i {
  font-size: 0.68rem;
  transition: transform 0.2s ease;
}

.account-header-rank-track:hover .header-rank-hint {
  color: var(--current-rank-color, #ff7043);
  opacity: 1;
}

.account-header-rank-track:hover .header-rank-hint i {
  transform: translateX(2px);
}

/* Untere Fußzeile: Status-Pills links, Schnellaktionen rechts */
.account-header-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  flex-wrap: wrap;
  gap: 1rem;
}

.account-header-status-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.account-header-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.btn-admin-shortcut {
  border-color: rgba(16, 185, 129, 0.45);
  color: #34d399;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.btn-admin-shortcut:hover {
  background: rgba(16, 185, 129, 0.12);
  border-color: #34d399;
}

.btn-logout-shortcut {
  padding: 0.55rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-color: rgba(255, 255, 255, 0.15);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

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

/* ------------------------------------------------------------------------------
   2. Clickable Holographic Stat Cards
   ------------------------------------------------------------------------------ */
.account-stat-card.clickable {
  cursor: pointer;
}

.account-stat-card.clickable:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}

.stat-card-hint {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.78rem;
  opacity: 0.4;
  transform: translateX(-3px);
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.account-stat-card.clickable:hover .stat-card-hint {
  opacity: 1;
  transform: translateX(2px);
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.15);
}

/* ------------------------------------------------------------------------------
   3. Tab 1: Profile Customizer & Metadata Box
   ------------------------------------------------------------------------------ */
.btn-avatar-random {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: var(--secondary);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.4rem 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-avatar-random:hover {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.4);
  color: #fbbf24;
  transform: translateY(-1px);
}

.profile-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-meta-item {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 0.95rem 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  transition: all 0.2s ease;
}

.profile-meta-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.15);
}

.profile-meta-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.profile-meta-content {
  min-width: 0;
  flex: 1;
}

.profile-meta-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
}

.profile-meta-val {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  margin-top: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ------------------------------------------------------------------------------
   4. Tab 2: Security Health Check & Password Tools
   ------------------------------------------------------------------------------ */
.security-score-card {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.08) 0%, rgba(18, 24, 38, 0.92) 100%);
  border: 1px solid rgba(0, 229, 255, 0.28);
  border-radius: 18px;
  padding: 1.6rem 2rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4), 0 0 25px rgba(0, 229, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.security-score-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.security-score-left {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex: 1;
  min-width: 280px;
}

.security-score-gauge {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  font-size: 1.28rem;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 0 25px rgba(0, 229, 255, 0.25);
  flex-shrink: 0;
}

.security-score-gauge svg {
  position: absolute;
  top: 0;
  left: 0;
  transform: rotate(-90deg);
}

.security-score-text h4 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.security-score-text p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

.security-checklist-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.75rem;
}

.security-check-pill {
  font-size: 0.76rem;
  padding: 0.25rem 0.7rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  transition: all 0.2s ease;
}

.security-check-pill.done {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.security-check-pill.todo {
  background: rgba(245, 158, 11, 0.14);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
  cursor: pointer;
}

.security-check-pill.todo:hover {
  background: rgba(245, 158, 11, 0.25);
  transform: translateY(-1px);
}

/* Password Generator Button */
.btn-generate-pw {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: var(--secondary);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.45rem 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 0.55rem;
}

.btn-generate-pw:hover {
  background: rgba(245, 158, 11, 0.18);
  border-color: rgba(245, 158, 11, 0.45);
  color: #fbbf24;
  transform: translateY(-1px);
}

/* CapsLock Warning */
.capslock-warning {
  display: none;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.38);
  border-radius: 6px;
  padding: 0.35rem 0.75rem;
  margin-top: 0.45rem;
}

/* ------------------------------------------------------------------------------
   5. Tab 3: Watch History Overhaul (QoL)
   ------------------------------------------------------------------------------ */
.history-toolbar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  width: 100%;
}

.history-search-clear-btn {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: var(--text-secondary);
  font-size: 0.72rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.history-search-clear-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

/* History Sort Select */
.history-sort-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.history-sort-select {
  background: rgba(10, 15, 26, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 0.48rem 1.15rem;
  color: #fff;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
}

.history-sort-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 12px rgba(255, 87, 34, 0.35);
}

.history-sort-select option {
  background: #0f172a;
  color: #fff;
}

/* History View Mode Toggle */
.history-view-mode-toggle {
  display: inline-flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0.2rem;
  gap: 0.2rem;
}

.view-mode-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.88rem;
}

.view-mode-btn:hover {
  color: #fff;
}

.view-mode-btn.active {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.history-counter-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.history-counter-label strong {
  color: #fff;
}

/* Compact History List View */
.account-history-list-view {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.account-history-row {
  background: rgba(18, 24, 38, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.account-history-row:hover {
  background: rgba(24, 33, 50, 0.95);
  border-color: rgba(255, 87, 34, 0.4);
  transform: translateX(3px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.history-row-thumb {
  width: 90px;
  height: 52px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  background: #000;
}

.history-row-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.history-row-progress-mini {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
}

.history-row-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff5722, #f59e0b);
}

.history-row-progress-fill.completed {
  background: #10b981;
}

.history-row-info {
  flex: 1;
  min-width: 0;
}

.history-row-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.2rem;
}

.history-row-game {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.history-row-pct {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.history-row-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}

.history-row-time {
  font-size: 0.76rem;
  color: var(--text-secondary);
  white-space: nowrap;
  flex-shrink: 0;
}

.history-row-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.btn-history-share {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-history-share:hover {
  background: rgba(0, 229, 255, 0.15);
  border-color: rgba(0, 229, 255, 0.4);
  color: #00e5ff;
  transform: translateY(-2px);
}

/* ------------------------------------------------------------------------------
   6. Tab 5: Drachen-Ränge & Badges Roadmap Filters & Milestones
   ------------------------------------------------------------------------------ */
.rank-milestone-ticks {
  display: flex;
  justify-content: space-between;
  margin-top: 0.4rem;
  padding: 0 0.25rem;
}

.rank-milestone-tick {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
}

.rank-milestone-tick.passed {
  color: #38bdf8;
}

.rank-roadmap-filters {
  display: flex;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

/* ------------------------------------------------------------------------------
   7. Mobile & Responsive Adaptations
   ------------------------------------------------------------------------------ */
@media (max-width: 960px) {
  .account-header-top-row {
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
  }

  .account-profile-main {
    width: 100%;
  }

  .account-header-rank-track {
    min-width: 0;
    max-width: 100%;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .account-header-card {
    padding: 1.35rem 1.15rem;
    gap: 1rem;
    margin-bottom: 1.75rem;
  }

  .account-header-footer-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }

  .account-header-status-group {
    justify-content: flex-start;
  }

  .account-header-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .history-toolbar-top {
    flex-direction: column;
    align-items: stretch;
  }

  .history-sort-wrap {
    width: 100%;
    justify-content: space-between;
  }

  .history-sort-select {
    flex-grow: 1;
  }

  .security-score-card {
    padding: 1.25rem;
  }

  .account-history-row {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .history-row-time {
    width: 100%;
    order: 3;
  }

  .history-row-actions {
    width: 100%;
    order: 4;
    justify-content: flex-end;
  }
}

@media (max-width: 520px) {
  .account-profile-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .account-avatar-large {
    width: 68px;
    height: 68px;
    font-size: 1.85rem;
  }

  .account-user-headline h1 {
    font-size: 1.4rem;
  }

  .account-header-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .account-header-actions button,
  .account-header-actions a {
    justify-content: center;
    width: 100%;
  }
}


