/* =============================================
   LAMIM — REUSABLE COMPONENTS
   ============================================= */

/* === CARDS === */
.card {
  background: var(--color-glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-border);
  border-radius: var(--card-radius);
  padding: var(--space-6);
  transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
  transform: translateZ(0);
  color: var(--color-text-primary);
}

.card:hover {
  border-color: var(--color-border-active);
  box-shadow: var(--shadow-lg);
}

.card-glass {
  background: var(--color-glass);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--color-border);
  border-radius: var(--card-radius);
  padding: var(--space-6);
}

[data-theme="light"] .card,
[data-theme="light"] .card-glass {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.06);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}

.card-title {
  font-size: var(--text-lg);
  font-weight: var(--fw-semibold);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.card-title .icon {
  font-size: var(--text-xl);
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--fw-medium);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
  -webkit-user-select: none;
  user-select: none;
  white-space: nowrap;
}

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

.btn-primary {
  background: linear-gradient(135deg, #8b5cf6, #a78bfa);
  color: #fff;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.25);
}

.btn-primary:hover {
  filter: brightness(1.15);
  box-shadow: 0 0 28px rgba(139, 92, 246, 0.4);
}

[data-theme="light"] .btn-primary {
  background: rgba(139, 92, 246, 0.12);
  color: var(--color-text-on-primary);
  border: 1px solid rgba(139, 92, 246, 0.2);
  box-shadow: none;
}

[data-theme="light"] .btn-primary:hover {
  background: rgba(139, 92, 246, 0.2);
}

.btn-gold {
  background: linear-gradient(135deg, #f0c456, #fbbf24);
  color: #0a0a0f;
  box-shadow: 0 0 16px rgba(240, 196, 86, 0.2);
  font-weight: var(--fw-bold);
}

.btn-gold:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 28px rgba(240, 196, 86, 0.4);
}

[data-theme="light"] .btn-gold {
  background: rgba(240, 196, 86, 0.15);
  color: var(--color-text-on-gold);
  border: 1px solid rgba(240, 196, 86, 0.3);
  box-shadow: none;
}

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

.btn-secondary:hover {
  background: var(--color-divider-subtle);
  border-color: rgba(167, 139, 250, 0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-secondary);
  border: 1px solid transparent;
}

.btn-ghost:hover {
  background: var(--color-bg-tertiary);
  color: var(--color-text-primary);
  border-color: var(--color-border);
}

.btn-primary,
.btn-gold {
  animation: borderBreath 4s infinite ease-in-out;
}

.btn-danger {
  background: rgba(248, 113, 113, 0.12);
  color: var(--color-accent-red);
  border: 1px solid rgba(248, 113, 113, 0.25);
}

.btn-danger:hover {
  background: rgba(248, 113, 113, 0.2);
}

[data-theme="light"] .btn-danger {
  background: rgba(248, 113, 113, 0.1);
  color: var(--color-text-on-danger);
  border-color: rgba(248, 113, 113, 0.2);
}

.btn-sm {
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  border-radius: var(--radius-sm);
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-md);
}

.btn-icon-sm {
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: var(--radius-sm);
}

.btn-full {
  width: 100%;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* === BADGES === */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.02em;
}

.badge-purple {
  background: rgba(192, 132, 252, 0.15);
  color: var(--color-accent-purple);
  border: 1px solid rgba(192, 132, 252, 0.3);
}

/* History button styling to ensure visibility */
.history-btn-premium {
  color: var(--color-accent-purple);
  border: 1px solid var(--color-accent-purple);
  transition: all var(--transition-fast);
}

.history-btn-premium:hover {
  background: rgba(192, 132, 252, 0.1);
  transform: translateY(-1px);
}

.history-btn-premium:active {
  transform: translateY(0);
}

/* Ensure purple badge and history button have high contrast in light mode */
[data-theme="light"] .badge-purple {
  background: #e0e7ff !important;
  color: #312e81 !important;
  border-color: #c7d2fe !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05) !important;
  opacity: 1 !important;
}

[data-theme="light"] #nafl-date-label {
  background: transparent !important;
  background-color: transparent !important;
  color: #1e1b4b !important;
  border: none !important;
  box-shadow: none !important;
  opacity: 1 !important;
}

[data-theme="light"] .history-btn-premium {
  color: #312e81 !important;
  border-color: #c7d2fe !important;
  background: #ffffff !important;
  opacity: 1 !important;
}

[data-theme="light"] .history-btn-premium:hover {
  background: #eef2ff !important;
  border-color: #a5b4fc !important;
}

/* === INPUTS === */
.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-secondary);
  margin-left: 2px;
}

.input {
  width: 100%;
  padding: 12px 16px;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  color: var(--color-text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  transition: all 0.2s ease;
}

.input:hover {
  border-color: var(--color-accent-primary);
}

.input:focus {
  outline: none;
  border-color: var(--color-accent-primary);
  background: var(--color-bg-secondary);
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.15);
}

.input::placeholder {
  color: var(--color-text-muted);
}

/* Custom Select Dropdown */
select.input.custom-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
  cursor: pointer;
}

select.input option {
  color: var(--color-text-primary);
  background-color: var(--color-bg-secondary);
  font-weight: 500;
}

select.input option:disabled {
  color: var(--color-text-muted);
}

.input-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}

.field-error {
  font-size: 12px;
  color: #ef4444;
  margin-top: 4px;
  display: none;
}

.field-error.show {
  display: block;
  animation: fadeInDown 0.2s ease;
}

.input-icon {
  position: absolute;
  left: 14px;
  color: #71717a;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
}

.input-icon svg {
  width: 100%;
  height: 100%;
  stroke-width: 2px;
}

.input:focus~.input-icon,
.input:not(:placeholder-shown)~.input-icon {
  color: #a78bfa;
}

.input-with-icon {
  padding-left: 42px;
}

/* === PROGRESS BARS === */
.progress-bar {
  height: 8px;
  background: var(--color-bg-tertiary);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--gradient-blue);
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  animation: progressFill 0.8s ease both;
}

/* === TOGGLE / SWITCH === */
.toggle {
  position: relative;
  width: 48px;
  height: 26px;
  background: var(--color-bg-tertiary);
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.toggle::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-text-muted);
  transition: all var(--transition-fast);
}

.toggle.active {
  background: var(--color-accent-primary);
  border-color: var(--color-accent-primary);
}

.toggle.active::after {
  transform: translateX(22px);
  background: #fff;
}

[data-theme="light"] .toggle.active::after {
  background: var(--color-bg-primary);
}

/* === TOAST NOTIFICATIONS === */
.toast-container {
  position: fixed;
  top: var(--space-6);
  right: var(--space-6);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.toast {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  min-width: 280px;
  max-width: 380px;
  animation: toastSlideIn 0.3s ease both;
  font-size: var(--text-base);
}

.toast.hiding {
  animation: toastSlideOut 0.3s ease both;
}

.toast-icon {
  font-size: var(--text-xl);
  flex-shrink: 0;
}

/* === MODAL === */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: var(--color-overlay);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(var(--space-4), env(safe-area-inset-top, 16px)) var(--space-4) max(var(--space-4), env(safe-area-inset-bottom, 16px)) var(--space-4);
  animation: fadeIn 0.2s ease;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.modal-overlay.hidden {
  display: none;
}

.modal {
  background: var(--color-surface-card);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid var(--color-divider-strong);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  animation: scaleIn 0.3s var(--transition-bounce) both;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--color-surface-nested) inset;
}

[data-theme="light"] .modal {
  background: #FFFFFF;
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.15);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.modal-title {
  font-size: var(--text-xl);
  font-weight: var(--fw-bold);
  min-width: 0;
  overflow-wrap: anywhere;
}

.modal-close {
  font-size: var(--text-xl);
  color: var(--color-text-muted);
  cursor: pointer;
  background: none;
  border: none;
  padding: var(--space-1);
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.modal-close:empty::before {
  content: '✕';
  display: inline-block;
  font-family: system-ui, -apple-system, sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
}

.modal-close:hover {
  color: var(--color-text-primary);
}

.modal-footer {
  display: flex;
  gap: var(--space-3);
  justify-content: flex-end;
  margin-top: var(--space-6);
}

/* === SIDEBAR === */
/* === SIDEBAR (Ultra-Modern Animated) === */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-width);
  background: rgba(8, 10, 18, 0.92);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-right: 1px solid rgba(255, 255, 255, 0.04);
  z-index: var(--z-sidebar);
  display: flex;
  flex-direction: column;
  padding: calc(var(--space-6) + env(safe-area-inset-top, 0px)) 0 var(--space-6) 0;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

[data-theme="light"] .sidebar {
  background: rgba(255, 255, 255, 0.92);
  border-right-color: rgba(0, 0, 0, 0.05);
  box-shadow: 8px 0 30px rgba(0, 0, 0, 0.05);
}

/* --- Sidebar Logo Header --- */
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 0 var(--space-5) var(--space-5);
  border-bottom: 1px solid var(--color-divider-subtle);
  margin-bottom: var(--space-3);
}

[data-theme="light"] .sidebar-logo {
  border-bottom-color: rgba(0, 0, 0, 0.05);
}

.sidebar-logo .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display, "Fraunces", Georgia, serif);
  font-style: italic;
  font-weight: 700;
  font-size: 1.38rem;
  color: var(--color-text-primary);
  letter-spacing: -0.015em;
  text-decoration: none;
}

.sidebar-logo .brand > span,
.topbar-brand > span {
  display: inline-block;
  transform: translateY(1px);
  line-height: 1;
}

/* --- Nav Items with Stagger Animation --- */
.sidebar-nav {
  flex: 1;
  padding: 0 var(--space-3);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 12px 16px;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-secondary);
  position: relative;
  opacity: 0;
  transform: translateX(-20px);
  animation: navItemSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Staggered entrance animations */
.nav-item:nth-child(1) {
  animation-delay: 0.05s;
}

.nav-item:nth-child(2) {
  animation-delay: 0.08s;
}

.nav-item:nth-child(3) {
  animation-delay: 0.11s;
}

.nav-item:nth-child(4) {
  animation-delay: 0.14s;
}

.nav-item:nth-child(5) {
  animation-delay: 0.17s;
}

.nav-item:nth-child(6) {
  animation-delay: 0.20s;
}

.nav-item:nth-child(7) {
  animation-delay: 0.23s;
}

.nav-item:nth-child(8) {
  animation-delay: 0.26s;
}

.nav-item:nth-child(9) {
  animation-delay: 0.29s;
}

.nav-item:nth-child(10) {
  animation-delay: 0.32s;
}

@keyframes navItemSlideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-text-primary);
  transform: translateX(4px);
}

[data-theme="light"] .nav-item:hover {
  background: rgba(99, 102, 241, 0.06);
}

/* Active state — glowing pill */
.nav-item.active {
  background: rgba(168, 85, 247, 0.12);
  color: var(--color-accent-primary);
  font-weight: 600;
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 55%;
  background: linear-gradient(to bottom, #a855f7, #38bdf8);
  border-radius: 0 6px 6px 0;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.5);
}

[data-theme="light"] .nav-item.active {
  background: rgba(99, 102, 241, 0.08);
}

/* --- Nav Icon --- */
.nav-icon {
  font-size: var(--text-xl);
  flex-shrink: 0;
  width: 22px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease;
}

.nav-icon svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.8px;
}

.nav-item:hover .nav-icon {
  transform: scale(1.12);
}

.nav-label {
  white-space: nowrap;
  letter-spacing: -0.01em;
}

/* --- Footer --- */
.sidebar-footer {
  padding: var(--space-3) var(--space-3) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

[data-theme="light"] .sidebar-footer {
  border-top-color: rgba(0, 0, 0, 0.05);
}

.sidebar-footer .nav-item {
  color: var(--color-text-muted);
  animation-delay: 0.35s;
}

.sidebar-footer .nav-item:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.08);
}

.sidebar-footer a.nav-item {
  text-decoration: none;
  color: var(--color-text-muted);
  cursor: pointer;
}

.sidebar-footer a.nav-item:hover {
  color: var(--color-accent-primary);
  background: rgba(168, 85, 247, 0.08);
}

/* Removed redundant light mode overrides as they are now handled by variables */

/* === BOTTOM NAV (mobile) === */
/* === BOTTOM NAV (mobile) === */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  left: 12px;
  right: 12px;
  height: 64px;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  background: rgba(6, 11, 19, 0.65);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  z-index: var(--z-sidebar);
  align-items: center;
  justify-content: flex-start;
  padding-left: var(--space-2);
  padding-right: var(--space-2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.bottom-nav::-webkit-scrollbar {
  display: none;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 12px;
  border-radius: 12px;
  scroll-snap-align: start;
  flex: 0 0 auto;
  cursor: pointer;
  color: var(--color-text-muted);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  min-width: 52px;
  font-size: 10px;
  font-weight: var(--fw-bold);
  position: relative;
  touch-action: manipulation;
  flex-shrink: 0;
}

.bottom-nav-item.active {
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.08);
}

/* Category-specific Active Highlights */
.bottom-nav-item[data-section="home"].active {
  background: rgba(168, 85, 247, 0.15);
  box-shadow: inset 0 1px 0 rgba(168, 85, 247, 0.3), 0 4px 16px rgba(168, 85, 247, 0.2);
}

.bottom-nav-item[data-section="salah"].active {
  background: rgba(248, 113, 113, 0.15);
  box-shadow: inset 0 1px 0 rgba(248, 113, 113, 0.3), 0 4px 16px rgba(248, 113, 113, 0.2);
}

.bottom-nav-item[data-section="dhikr"].active {
  background: rgba(14, 165, 233, 0.15);
  box-shadow: inset 0 1px 0 rgba(14, 165, 233, 0.3), 0 4px 16px rgba(14, 165, 233, 0.2);
}

.bottom-nav-item[data-section="nafl"].active {
  background: rgba(34, 211, 238, 0.15);
  box-shadow: inset 0 1px 0 rgba(34, 211, 238, 0.3), 0 4px 16px rgba(34, 211, 238, 0.2);
}

.bottom-nav-item[data-section="mujahid"].active {
  background: rgba(236, 72, 153, 0.15);
  box-shadow: inset 0 1px 0 rgba(236, 72, 153, 0.3), 0 4px 16px rgba(236, 72, 153, 0.2);
}

.bottom-nav-item[data-section="finance"].active {
  background: rgba(16, 185, 129, 0.15);
  box-shadow: inset 0 1px 0 rgba(16, 185, 129, 0.3), 0 4px 16px rgba(16, 185, 129, 0.2);
}

.bottom-nav-item[data-section="analysis"].active {
  background: rgba(99, 102, 241, 0.15);
  box-shadow: inset 0 1px 0 rgba(99, 102, 241, 0.3), 0 4px 16px rgba(99, 102, 241, 0.2);
}

.bottom-nav-item[data-section="profile"].active {
  background: rgba(161, 161, 170, 0.15);
  box-shadow: inset 0 1px 0 rgba(161, 161, 170, 0.3), 0 4px 16px rgba(161, 161, 170, 0.2);
}

.bottom-nav-item[data-section="gym"].active {
  background: rgba(20, 184, 166, 0.15);
  box-shadow: inset 0 1px 0 rgba(20, 184, 166, 0.3), 0 4px 16px rgba(20, 184, 166, 0.2);
}

.bottom-nav-item[data-section="career"].active {
  background: rgba(249, 115, 22, 0.15);
  box-shadow: inset 0 1px 0 rgba(249, 115, 22, 0.3), 0 4px 16px rgba(249, 115, 22, 0.2);
}

[data-theme="light"] .bottom-nav-item.active {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.bottom-nav-item .bnav-icon {
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bottom-nav-item.active .bnav-icon {
  transform: scale(1.2) translateY(-2px);
}

.bottom-nav-item:active {
  transform: scale(0.92);
}

.bottom-nav-item .bnav-icon svg {
  width: 18px;
  height: 18px;
}

.bottom-nav-item.active,
.nav-item.active {
  color: #a78bfa;
}

/* Section Specific Colors (Active State) */
.nav-item[data-section="home"].active,
.bottom-nav-item[data-section="home"].active {
  color: #a855f7 !important;
}

.nav-item[data-section="home"].active .bnav-icon,
.nav-item[data-section="home"].active .nav-icon,
.bottom-nav-item[data-section="home"].active .bnav-icon {
  filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.4));
}

.nav-item[data-section="salah"].active,
.bottom-nav-item[data-section="salah"].active {
  color: #f87171 !important;
}

.nav-item[data-section="salah"].active .bnav-icon,
.nav-item[data-section="salah"].active .nav-icon,
.bottom-nav-item[data-section="salah"].active .bnav-icon {
  filter: drop-shadow(0 0 8px rgba(248, 113, 113, 0.4));
}

.nav-item[data-section="dhikr"].active,
.bottom-nav-item[data-section="dhikr"].active {
  color: #0ea5e9 !important;
}

.nav-item[data-section="dhikr"].active .bnav-icon,
.nav-item[data-section="dhikr"].active .nav-icon,
.bottom-nav-item[data-section="dhikr"].active .bnav-icon {
  filter: drop-shadow(0 0 8px rgba(14, 165, 233, 0.4));
}

.nav-item[data-section="nafl"].active,
.bottom-nav-item[data-section="nafl"].active {
  color: #22d3ee !important;
}

.nav-item[data-section="nafl"].active .bnav-icon,
.nav-item[data-section="nafl"].active .nav-icon,
.bottom-nav-item[data-section="nafl"].active .bnav-icon {
  filter: drop-shadow(0 0 8px rgba(34, 211, 238, 0.4));
}

.nav-item[data-section="mujahid"].active,
.bottom-nav-item[data-section="mujahid"].active {
  color: #ec4899 !important;
}

.nav-item[data-section="mujahid"].active .bnav-icon,
.nav-item[data-section="mujahid"].active .nav-icon,
.bottom-nav-item[data-section="mujahid"].active .bnav-icon {
  filter: drop-shadow(0 0 8px rgba(236, 72, 153, 0.4));
}

.nav-item[data-section="finance"].active,
.bottom-nav-item[data-section="finance"].active {
  color: #10b981 !important;
}

.nav-item[data-section="finance"].active .bnav-icon,
.nav-item[data-section="finance"].active .nav-icon,
.bottom-nav-item[data-section="finance"].active .bnav-icon {
  filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.4));
}

.nav-item[data-section="analysis"].active,
.bottom-nav-item[data-section="analysis"].active {
  color: #6366f1 !important;
}

.nav-item[data-section="analysis"].active .bnav-icon,
.nav-item[data-section="analysis"].active .nav-icon,
.bottom-nav-item[data-section="analysis"].active .bnav-icon {
  filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.4));
}

.nav-item[data-section="profile"].active,
.bottom-nav-item[data-section="profile"].active {
  color: #a1a1aa !important;
}

.nav-item[data-section="profile"].active .bnav-icon,
.nav-item[data-section="profile"].active .nav-icon,
.bottom-nav-item[data-section="profile"].active .bnav-icon {
  filter: drop-shadow(0 0 8px rgba(161, 161, 170, 0.4));
}

.nav-item[data-section="gym"].active,
.bottom-nav-item[data-section="gym"].active {
  color: #14b8a6 !important;
}

.nav-item[data-section="gym"].active .bnav-icon,
.nav-item[data-section="gym"].active .nav-icon,
.bottom-nav-item[data-section="gym"].active .bnav-icon {
  filter: drop-shadow(0 0 8px rgba(20, 184, 166, 0.4));
}

.nav-item[data-section="career"].active,
.bottom-nav-item[data-section="career"].active {
  color: #f97316 !important;
}

.nav-item[data-section="career"].active .bnav-icon,
.nav-item[data-section="career"].active .nav-icon,
.bottom-nav-item[data-section="career"].active .bnav-icon {
  filter: drop-shadow(0 0 8px rgba(249, 115, 22, 0.4));
}

[data-theme="light"] .bottom-nav {
  background: rgba(255, 255, 255, 0.8) !important;
  border: 1px solid rgba(99, 102, 241, 0.12) !important;
  box-shadow: 0 16px 40px rgba(99, 102, 241, 0.1);
}

@media (max-width: 1024px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
    box-shadow: var(--shadow-xl);
  }

  .bottom-nav {
    display: flex;
  }
}

/* === TOP BAR (Ultra-Modern) === */
.topbar {
  display: none;
  position: sticky;
  top: 0;
  z-index: var(--z-dropdown);
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding: calc(var(--space-3) + env(safe-area-inset-top, 0px)) var(--space-4) var(--space-3);
  height: calc(var(--header-height) + env(safe-area-inset-top, 0px));
  align-items: center;
  justify-content: space-between;
}

[data-theme="light"] .topbar {
  background: rgba(255, 255, 255, 0.8);
  border-bottom-color: rgba(0, 0, 0, 0.04);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.03);
}

@media (max-width: 1024px) {
  .topbar {
    display: flex;
  }
}

@media (max-width: 480px) {
  .topbar {
    padding: calc(var(--space-3) + env(safe-area-inset-top, 0px)) var(--space-3) var(--space-3);
  }
}

/* --- Animated Hamburger Menu --- */
.topbar-hamburger {
  width: 40px;
  height: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 12px;
  transition: background 0.2s ease;
}

.topbar-hamburger:hover {
  background: rgba(255, 255, 255, 0.06);
}

[data-theme="light"] .topbar-hamburger:hover {
  background: rgba(0, 0, 0, 0.04);
}

.hamburger-line {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-text-secondary);
  border-radius: 2px;
  transition: all 0.35s cubic-bezier(0.68, -0.6, 0.32, 1.6);
  transform-origin: center;
}

.hamburger-line:nth-child(1) {
  width: 20px;
}

.hamburger-line:nth-child(2) {
  width: 16px;
  margin-left: -4px;
}

.hamburger-line:nth-child(3) {
  width: 12px;
  margin-left: -8px;
}

.topbar-hamburger:hover .hamburger-line {
  background: var(--color-text-primary);
}

.topbar-hamburger:hover .hamburger-line:nth-child(2) {
  width: 20px;
  margin-left: 0;
}

.topbar-hamburger:hover .hamburger-line:nth-child(3) {
  width: 20px;
  margin-left: 0;
}

/* --- Center Brand with Animated Orb --- */
.topbar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.topbar-logo-orb {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orb-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1.5px solid transparent;
}

.orb-ring-1 {
  border-top-color: #a855f7;
  border-right-color: #6366f1;
  animation: orbRingSpin1 3s linear infinite;
}

.orb-ring-2 {
  border-bottom-color: #38bdf8;
  border-left-color: #a855f7;
  animation: orbRingSpin2 4s linear infinite reverse;
  width: 80%;
  height: 80%;
  top: 10%;
  left: 10%;
}

@keyframes orbRingSpin1 {
  to {
    transform: rotate(360deg);
  }
}

@keyframes orbRingSpin2 {
  to {
    transform: rotate(360deg);
  }
}

.orb-core {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a855f7, #6366f1, #38bdf8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.4);
  animation: orbCoreGlow 3s ease-in-out infinite;
}

@keyframes orbCoreGlow {

  0%,
  100% {
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.4);
    transform: scale(1);
  }

  50% {
    box-shadow: 0 0 22px rgba(139, 92, 246, 0.6), 0 0 6px rgba(56, 189, 248, 0.3);
    transform: scale(1.05);
  }
}

.orb-core svg {
  width: 12px;
  height: 12px;
}

.topbar-brand-name {
  font-family: var(--font-display, "Fraunces", Georgia, serif);
  font-style: italic;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--color-text-primary);
  line-height: 1;
}


50% {
  background-position: 100% 50%;
}
}

/* --- Actions --- */
.topbar-actions {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 10px !important;
  flex-shrink: 0 !important;
}

/* --- Theme Toggle (iOS-style) --- */
.topbar-theme-toggle {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

.theme-toggle-track {
  width: 52px;
  height: 28px;
  border-radius: 14px;
  background: #1e293b;
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 4px;
  justify-content: space-between;
  transition: background 0.4s ease;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .theme-toggle-track {
  background: #dbeafe;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.08);
}

.theme-icon {
  font-size: 12px;
  z-index: 1;
  transition: opacity 0.3s ease;
  line-height: 1;
}

.theme-icon-sun {
  opacity: 0.4;
}

.theme-icon-moon {
  opacity: 1;
}

[data-theme="light"] .theme-icon-sun {
  opacity: 1;
}

[data-theme="light"] .theme-icon-moon {
  opacity: 0.4;
}

.theme-toggle-thumb {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  top: 3px;
  right: 3px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

[data-theme="light"] .theme-toggle-thumb {
  transform: translateX(-24px);
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

/* --- Avatar --- */
.topbar .avatar {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  width: 34px;
  height: 34px;
  font-size: 13px;
  font-weight: 800 !important;
  color: #FFFFFF !important;
  background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.topbar .avatar:hover {
  border-color: #c084fc;
  box-shadow: 0 0 16px rgba(192, 132, 252, 0.4);
  transform: scale(1.08);
}

[data-theme="light"] .topbar .avatar {
  background: linear-gradient(135deg, #4f46e5, #7c3aed) !important;
  color: #FFFFFF !important;
  border-color: rgba(255, 255, 255, 0.6) !important;
  box-shadow: 0 2px 10px rgba(79, 70, 229, 0.35) !important;
}

[data-theme="light"] .topbar .avatar:hover {
  border-color: #4338ca !important;
  box-shadow: 0 0 16px rgba(79, 70, 229, 0.4) !important;
}

/* Section Topbar Title */
.topbar-section-title {
  font-family: var(--font-display) !important;
  font-size: 19px !important;
  font-weight: 800 !important;
  letter-spacing: -0.01em !important;
  color: var(--color-text-primary) !important;
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: initial !important;
  background-clip: unset !important;
  animation: none !important;
}

[data-theme="light"] .topbar-section-title {
  color: #0F172A !important;
}

/* === STREAK BADGE === */
.streak-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: 10px 20px;
  background: rgba(212, 168, 67, 0.12);
  border: 1px solid rgba(212, 168, 67, 0.4);
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 900;
  color: var(--color-accent-gold);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
}

.streak-badge .badge-icon-animated {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: flameFlicker 2s ease-in-out infinite;
}

@keyframes flameFlicker {

  0%,
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 5px rgba(212, 168, 67, 0.6));
  }

  50% {
    transform: scale(1.1);
    filter: drop-shadow(0 0 12px rgba(212, 168, 67, 0.9));
  }
}

/* === STAT CARD === */
.stat-card {
  text-align: center;
}

.stat-value {
  font-size: var(--text-4xl);
  font-weight: var(--fw-extrabold);
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}

/* === AVATAR === */
.avatar {
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #ffffff;
  flex-shrink: 0;
}

/* === DIVIDER === */
.divider {
  height: 1px;
  background: var(--color-border);
  margin: var(--space-4) 0;
}

/* === TABS === */
.tabs {
  display: flex;
  gap: var(--space-1);
  background: var(--color-surface-card);
  padding: var(--space-1);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-surface-nested);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  flex: 1 0 auto;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--color-text-muted);
  cursor: pointer;
  background: none;
  border: none;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.tab-btn:hover {
  color: var(--color-text-secondary);
}

.tab-btn.active {
  background: rgba(167, 139, 250, 0.15);
  color: #a78bfa;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.1);
}

[data-theme="light"] .tab-btn.active {
  background: rgba(167, 139, 250, 0.12);
  color: var(--color-text-on-primary);
  box-shadow: none;
}

/* === SECTION HEADER (Premium Modern) === */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-5);
  gap: var(--space-3);
  flex-wrap: nowrap;
  padding: 16px 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.45);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.02),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

[data-theme="dark"] .section-header {
  background: rgba(25, 27, 33, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.section-title {
  font-size: var(--text-xl);
  font-weight: var(--fw-extrabold);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--gradient-brand-text);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s ease-in-out infinite;
}

.section-title .icon {
  font-size: var(--text-2xl);
}

@media (min-width: 768px) {
  .section-header {
    margin-bottom: var(--space-6);
  }

  .section-title {
    font-size: var(--text-2xl);
  }

  .section-title .icon {
    font-size: var(--text-3xl);
  }
}

/* === EMPTY STATE === */
.empty-state {
  text-align: center;
  padding: var(--space-12) var(--space-6);
  color: var(--color-text-muted);
}

.empty-state .empty-icon {
  font-size: 4rem;
  margin-bottom: var(--space-4);
  opacity: 0.5;
}

.empty-state h3 {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-2);
}

/* === COUNTDOWN === */
.countdown {
  font-size: var(--text-3xl);
  font-weight: var(--fw-bold);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.05em;
}

/* === CONFETTI === */
.confetti-piece {
  position: fixed;
  top: -20px;
  border-radius: 3px;
  animation: confettiFall 2.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  pointer-events: none;
  z-index: var(--z-toast);
}

/* === SIDEBAR OVERLAY (mobile) === */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: calc(var(--z-sidebar) - 1);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

[data-theme="light"] .sidebar-overlay {
  background: rgba(0, 0, 0, 0.15);
}

.sidebar-overlay.show {
  display: block;
  animation: fadeIn 0.3s ease;
}

/* === CUSTOM CONFIRM POPUP === */
.custom-confirm-panel {
  text-align: center;
  padding: 32px !important;
  border-radius: 24px !important;
  max-width: 320px !important;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6) !important;
  animation: modalPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both !important;
}

@keyframes modalPop {
  0% {
    transform: scale(0.8) translateY(20px);
    opacity: 0;
  }

  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.confirm-icon-wrap {
  width: 64px;
  height: 64px;
  background: rgba(255, 59, 48, 0.1);
  color: #ff3b30;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 20px;
  animation: iconPulse 2s infinite ease-in-out;
}

@keyframes iconPulse {

  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 59, 48, 0);
  }

  50% {
    transform: scale(1.05);
    box-shadow: 0 0 20px 5px rgba(255, 59, 48, 0.15);
  }
}

.confirm-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--color-text-primary);
}

.confirm-msg {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin-bottom: 24px;
}

.confirm-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.confirm-btn {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.confirm-btn.cancel {
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-text-secondary);
}

.confirm-btn.cancel:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-text-primary);
}

.confirm-btn.proceed {
  background: #ff3b30;
  color: #fff;
}

.confirm-btn.proceed:hover {
  background: #ff453a;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 59, 48, 0.3);
}

[data-theme="light"] .custom-confirm-panel {
  background: #ffffff;
  border-color: #e2e8f0;
}

[data-theme="light"] .confirm-btn.cancel {
  background: #f1f5f9;
  color: #64748b;
}

/* === THEMED DANGER CONFIRM (Logout / Delete / Factory Reset) === */
.danger-confirm {
  text-align: center;
  max-width: 360px;
  padding: 34px 28px 24px;
  border-radius: var(--radius-xl);
  animation: modalPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.danger-icon {
  width: 78px;
  height: 78px;
  margin: 0 auto 18px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  box-shadow: 0 0 0 6px rgba(239, 68, 68, 0.06), 0 12px 30px rgba(239, 68, 68, 0.18);
  animation: dangerPulse 2.4s infinite ease-in-out;
}

@keyframes dangerPulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.06);
  }
}

.danger-icon svg {
  width: 38px;
  height: 38px;
}

.danger-title {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  color: var(--color-text-primary);
}

.danger-msg {
  font-size: 14px;
  line-height: 1.65;
  color: var(--color-text-secondary);
  margin-bottom: 26px;
}

.danger-actions {
  display: flex;
  gap: 12px;
}

.danger-actions .btn {
  flex: 1;
  padding: 14px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 14px;
}

.danger-proceed {
  color: #fff;
  border: none;
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.danger-proceed:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

[data-theme="light"] .danger-confirm {
  background: #ffffff;
}

/* Finance Live Pulse */
.fin-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(52, 199, 89, 0.1);
  color: #34c759;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.fin-pulse-dot {
  width: 6px;
  height: 6px;
  background: #34c759;
  border-radius: 50%;
  box-shadow: 0 0 8px #34c759;
  animation: finPulse 2s infinite;
}

@keyframes finPulse {
  0% {
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(52, 199, 89, 0.7);
  }

  70% {
    transform: scale(1.1);
    opacity: 0.8;
    box-shadow: 0 0 0 6px rgba(52, 199, 89, 0);
  }

  100% {
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(52, 199, 89, 0);
  }
}


/* --- DE-DUPLICATED COMPONENTS --- */

/* mujahid-habit-option styles in mujahid.css */

/* Habit option styles moved to mujahid.css */

/* All .mujahid-habit-option styles consolidated in mujahid.css */

/* Profile edit character counter */
.edit-char-count {
  text-align: right;
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-top: 6px;
  letter-spacing: 0.02em;
}

.edit-char-count.warn {
  color: var(--fin-orange);
}

.edit-char-count.max {
  color: var(--fin-red);
}



/* --- Precise Round Green Dot for i in wordmark --- */
.i-green-dot {
  position: relative;
  display: inline-block;
  color: inherit;
  text-align: center;
  font-family: var(--font-display, 'Fraunces', Georgia, serif);
  font-style: italic;
  letter-spacing: 0 !important;
}

.i-green-dot::after {
  content: "";
  position: absolute;
  top: 0.05em;
  left: 48%;
  transform: translateX(-50%);
  width: .22em;
  height: .22em;
  background-color: #97D84C;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(151, 216, 76, 0.75);
  pointer-events: none;
  -webkit-text-fill-color: initial;
}