/* ==========================================================================
   GymActivity Premium Mobile Design System
   ========================================================================== */

/* --- CSS Variables & Design Tokens --- */
:root {
  --bg-base: #090a0f;
  --bg-surface: rgba(18, 20, 29, 0.7);
  --bg-surface-solid: #12141d;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-active: rgba(0, 242, 254, 0.3);
  
  /* Vibrant Accents */
  --primary: #00f2fe;        /* Neon Cyan */
  --primary-glow: rgba(0, 242, 254, 0.15);
  --secondary: #9b51e0;      /* Electric Purple */
  --success: #00e676;        /* Bright Green */
  --success-glow: rgba(0, 230, 118, 0.15);
  --danger: #ff1744;         /* Neon Red */
  --danger-glow: rgba(255, 23, 68, 0.15);
  
  /* Typography Colors */
  --text-primary: #f8f9fa;
  --text-secondary: #a0aec0;
  --text-muted: #718096;

  /* Glassmorphism token */
  --glass-blur: blur(16px);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Base Resets & Smartphone Optimization --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent; /* Disable blue highlight on tap */
}

html, body {
  width: 100%;
  height: 100%;
  background-color: #040406;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-primary);
  overflow: hidden; /* Prevent default browser bounces/scrolls */
}

/* Scrollbar Customization for Chrome/Safari/Firefox */
::-webkit-scrollbar {
  width: 4px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
}

/* --- Layout Architecture (Galaxy S24 Pro Optimized) --- */
#app-container {
  width: 100%;
  max-width: 480px; /* Force mobile width on desktop */
  height: 100%;
  margin: 0 auto;
  background-color: var(--bg-base);
  display: flex;
  flex-direction: column;
  position: relative;
  border-left: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  box-shadow: 0 0 100px rgba(0, 242, 254, 0.03);
  overflow: hidden;
}

/* --- Header System --- */
.app-header {
  height: 64px;
  min-height: 64px;
  background: rgba(9, 10, 15, 0.8);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 100;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  font-size: 20px;
  filter: drop-shadow(0 0 8px var(--primary));
}

.logo-area h1 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.status-badge {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 12px;
  background: rgba(0, 230, 118, 0.1);
  color: var(--success);
  border: 1px solid rgba(0, 230, 118, 0.2);
  display: flex;
  align-items: center;
  gap: 4px;
}

.status-badge::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--success);
  animation: pulse 1.5s infinite;
}

/* --- Scrollable Content System --- */
.app-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}

.app-view {
  display: none;
  flex-direction: column;
  gap: 16px;
  animation: fadeIn 0.2s ease-out;
  width: 100%;
}

.app-view.active {
  display: flex;
}

/* --- Navigation Bar --- */
.app-nav {
  height: 68px;
  min-height: 68px;
  background: rgba(9, 10, 15, 0.85);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding-bottom: 6px; /* Space for home indicator on mobile devices */
  z-index: 100;
}

.nav-item {
  background: none;
  border: none;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  width: 60px;
  padding: 6px 0;
  border-radius: 12px;
  transition: var(--transition-fast);
}

.nav-icon {
  width: 22px;
  height: 22px;
  transition: var(--transition-fast);
}

.nav-item:hover, .nav-item.active {
  color: var(--primary);
}

.nav-item.active .nav-icon {
  transform: translateY(-2px);
  filter: drop-shadow(0 0 6px var(--primary));
}

/* --- Premium UI Cards & Components --- */
.welcome-card {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.08) 0%, rgba(155, 81, 224, 0.08) 100%);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.welcome-card h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.welcome-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}

.section-header h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.2px;
}

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

.view-header h2 {
  font-size: 22px;
  font-weight: 800;
}

.view-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-top: -8px;
}

/* --- Buttons --- */
.btn {
  font-family: inherit;
  font-weight: 600;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition-fast);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #00d2fc 100%);
  color: #050608;
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.3);
}

.btn-primary:active {
  transform: scale(0.97);
  box-shadow: 0 2px 5px rgba(0, 242, 254, 0.2);
}

.btn-secondary {
  background: var(--bg-surface-solid);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.btn-secondary:active {
  background: rgba(255, 255, 255, 0.05);
}

.btn-success {
  background: var(--success);
  color: #050608;
  box-shadow: 0 4px 12px var(--success-glow);
}

.btn-success:active {
  transform: scale(0.97);
}

.btn-large {
  padding: 14px 20px;
  font-size: 15px;
  width: 100%;
}

.btn-sm {
  padding: 8px 14px;
  font-size: 12px;
}

.btn-full {
  width: 100%;
  padding: 12px;
}

.btn-icon {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: var(--transition-fast);
}

.btn-icon:active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.btn-text {
  background: none;
  border: none;
  color: var(--primary);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.btn-danger-text {
  background: none;
  border: 1px solid rgba(255, 23, 68, 0.2);
  color: var(--danger);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
}
.btn-danger-text:active {
  background: rgba(255, 23, 68, 0.05);
}

/* --- Form Elements --- */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
  width: 100%;
}

.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-group input, .form-group textarea, .form-group select {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 12px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14px;
  transition: var(--transition-fast);
  outline: none;
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
  background: rgba(255, 255, 255, 0.06);
}

/* --- Routine Templates Stack --- */
.templates-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.template-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: var(--transition-normal);
  cursor: pointer;
}

.template-card:active {
  transform: scale(0.98);
  border-color: var(--primary);
}

.template-info h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.template-info p {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-top: 2px;
}

.template-ex-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ex-pill {
  font-size: 10px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  padding: 4px 8px;
  border-radius: 8px;
  color: var(--text-secondary);
}

.templates-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* --- Workout Panel (Floating Active Workout Dashboard) --- */
.workout-panel {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(100% - 64px); /* Fills screen up to header */
  background: #090a0f;
  border-top: 1px solid var(--border-color);
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  z-index: 150;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.1, 0.76, 0.55, 0.94);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.6);
}

.workout-panel.hidden {
  transform: translateY(105%);
}

.workout-panel.minimized {
  transform: translateY(calc(100% - 60px)); /* Leaves headers showing at bottom */
}

.workout-panel.minimized .panel-body {
  display: none;
}

.panel-header {
  height: 60px;
  min-height: 60px;
  padding: 0 16px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(18, 20, 29, 0.9);
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

.panel-title-area {
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel-title-area h2 {
  font-size: 15px;
  font-weight: 700;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--primary);
  animation: pulse 1.5s infinite;
}

#workout-timer {
  font-family: monospace;
  font-size: 14px;
  color: var(--primary);
  background: rgba(0, 242, 254, 0.07);
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 600;
  border: 1px solid rgba(0, 242, 254, 0.15);
}

.panel-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.workout-meta textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-primary);
  padding: 10px;
  font-family: inherit;
  font-size: 13px;
  resize: none;
  outline: none;
}

.workout-meta textarea:focus {
  border-color: var(--border-color-active);
}

/* --- Active Workout Exercise Blocks --- */
.active-exercise-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.active-ex-header h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
}

.active-sets-table {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sets-header-row, .set-row {
  display: grid;
  grid-template-columns: 35px 75px 65px 45px 1fr;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.sets-header-row {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 2px;
  padding: 0 4px;
}

.set-index {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 600;
}

.set-row input {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 6px 4px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 13px;
  text-align: center;
  width: 100%;
  outline: none;
}

.set-row input:focus {
  border-color: var(--primary);
}

/* Checkbox Toggle Button */
.btn-check-set {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  transition: var(--transition-fast);
}

.btn-check-set svg {
  width: 16px;
  height: 16px;
  transform: scale(0);
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-check-set.completed {
  background: var(--success);
  border-color: var(--success);
  color: #050608;
}

.btn-check-set.completed svg {
  transform: scale(1);
}

.active-ex-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed rgba(255, 255, 255, 0.05);
}

.active-workout-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

/* --- Modals Systems (Standard Overlays) --- */
.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 300;
  display: flex;
  align-items: flex-end; /* Mobile drawer style */
  justify-content: center;
  transition: opacity 0.3s ease;
}

.modal-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.modal-overlay.hidden .modal-content {
  transform: translateY(100%);
}

.modal-content {
  width: 100%;
  max-width: 480px;
  background: var(--bg-surface-solid);
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  max-height: 85%;
  transition: transform 0.3s cubic-bezier(0.1, 0.76, 0.55, 0.94);
}

.modal-fit-content {
  height: 85%;
}

.modal-header {
  height: 56px;
  padding: 0 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h2 {
  font-size: 16px;
  font-weight: 700;
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

.scrollable-body {
  overflow-y: auto;
}

.modal-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.flex-column {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

/* Selected Exercises List in Routine Editor */
.selected-exercises-list {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 80px;
  max-height: 180px;
  overflow-y: auto;
}

.selected-ex-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  border: 1px solid var(--border-color);
}

/* Custom Exercise Creator Form */
.custom-exercise-inline {
  display: grid;
  grid-template-columns: 1fr 100px 60px;
  gap: 8px;
  width: 100%;
}

.custom-exercise-inline input, .custom-exercise-inline select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 8px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 12px;
  outline: none;
}

/* --- Exercise Selector Grid/Search --- */
.modal-search {
  padding: 12px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-search input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 10px 14px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 13px;
  outline: none;
  transition: var(--transition-fast);
}

.modal-search input:focus {
  border-color: var(--primary);
}

.category-filters {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}

.category-filters::-webkit-scrollbar {
  display: none; /* Hide category scrolls */
}

.filter-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 5px 12px;
  font-size: 11px;
  color: var(--text-secondary);
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  font-weight: 500;
  transition: var(--transition-fast);
}

.filter-chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #050608;
  font-weight: 600;
}

.exercise-selection-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.exercise-select-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 10px 14px;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.exercise-select-card:active {
  background: rgba(0, 242, 254, 0.05);
  border-color: var(--primary);
}

.ex-info h4 {
  font-size: 14px;
  font-weight: 600;
}

.ex-info span {
  font-size: 11px;
  color: var(--text-secondary);
}

.ex-add-indicator {
  font-size: 18px;
  color: var(--text-muted);
}

/* --- History Cards --- */
.history-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.history-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 14px;
}

.history-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-color);
}

.history-header h4 {
  font-size: 14px;
  font-weight: 700;
}

.history-header .history-date {
  font-size: 11px;
  color: var(--text-secondary);
}

.history-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.history-ex-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.history-ex-item h5 {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
}

.history-set-text {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.4;
  padding-left: 6px;
}

/* --- Analytics Style --- */
.stats-row {
  display: grid;
  grid-template-columns: 1fr 100px;
  gap: 12px;
}

.stats-row {
  grid-template-columns: 1fr 1fr;
}

.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
}

.stat-value {
  font-size: 24px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 500;
}

.chart-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chart-card h3 {
  font-size: 14px;
  font-weight: 600;
}

.chart-wrapper {
  width: 100%;
  height: 160px;
}

.chart-wrapper svg {
  width: 100%;
  height: 100%;
}

.pr-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pr-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pr-ex-name {
  font-size: 13px;
  font-weight: 600;
}

.pr-ex-cat {
  font-size: 10px;
  color: var(--text-secondary);
  display: block;
}

.pr-value-area {
  text-align: right;
}

.pr-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
}

.pr-date {
  font-size: 10px;
  color: var(--text-muted);
  display: block;
}

/* --- Misc Helper Styles --- */
.empty-state {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  padding: 20px 0;
  width: 100%;
}

.loading-spinner {
  font-size: 12px;
  color: var(--text-secondary);
  text-align: center;
  padding: 20px;
}

.hidden {
  display: none !important;
}

/* --- Animations --- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.7; }
  100% { transform: scale(1); opacity: 1; }
}

/* --- Auth & Profile Styles --- */
.login-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 30px 24px;
  margin-top: 40px;
  display: flex;
  flex-direction: column;
}

.login-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  margin: 20px 0;
}

.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-color);
}

.login-divider:not(:empty)::before {
  margin-right: .5em;
}

.login-divider:not(:empty)::after {
  margin-left: .5em;
}

.user-profile-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.avatar-img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
}

.btn-logout-icon {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 11px;
  cursor: pointer;
  margin-left: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  transition: var(--transition-fast);
}

.btn-logout-icon:hover {
  color: var(--danger);
  background: rgba(255, 23, 68, 0.1);
}
