/* ================================================
   Daily Sadaqa — Premium Dark Theme Stylesheet
   ================================================ */

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Color Palette — Deep night sky tones */
  --bg-primary: #0b0f1a;
  --bg-card: rgba(18, 24, 43, 0.75);
  --bg-card-hover: rgba(24, 32, 56, 0.85);
  --bg-input: rgba(255, 255, 255, 0.06);
  --bg-input-focus: rgba(255, 255, 255, 0.1);

  --text-primary: #eef2ff;
  --text-secondary: #8b95b8;
  --text-muted: #5a6380;

  --morning-accent: #f5a623;
  --morning-glow: rgba(245, 166, 35, 0.25);
  --morning-gradient: linear-gradient(135deg, #f5a623 0%, #f7c948 100%);

  --evening-accent: #7c5cbf;
  --evening-glow: rgba(124, 92, 191, 0.25);
  --evening-gradient: linear-gradient(135deg, #7c5cbf 0%, #a78bfa 100%);

  --success: #34d399;
  --danger: #f87171;
  --border: rgba(255, 255, 255, 0.07);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 28px;

  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.35);
  --shadow-btn: 0 4px 14px rgba(0, 0, 0, 0.3);

  --font: 'Outfit', sans-serif;
  --font-arabic: 'Amiri', serif;

  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* --- Animated Background Orbs --- */
.bg-orbs {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.35;
  animation: float 18s ease-in-out infinite;
}

.orb-1 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, var(--morning-accent), transparent 70%);
  top: -100px;
  right: -80px;
  animation-delay: 0s;
}

.orb-2 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, var(--evening-accent), transparent 70%);
  bottom: 50px;
  left: -120px;
  animation-delay: -6s;
}

.orb-3 {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, #3b82f6, transparent 70%);
  top: 50%;
  left: 50%;
  animation-delay: -12s;
}

@keyframes float {

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

  33% {
    transform: translate(30px, -40px) scale(1.05);
  }

  66% {
    transform: translate(-20px, 25px) scale(0.95);
  }
}

/* --- App Container --- */
.app-container {
  position: relative;
  z-index: 1;
  max-width: 480px;
  margin: 0 auto;
  padding: 24px 18px 40px;
}

/* --- Header --- */
.app-header {
  text-align: center;
  padding: 28px 0 20px;
}

.header-icon {
  font-size: 2.6rem;
  margin-bottom: 6px;
  animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes glow-pulse {

  0%,
  100% {
    text-shadow: 0 0 12px var(--morning-glow);
  }

  50% {
    text-shadow: 0 0 28px var(--morning-accent), 0 0 60px var(--morning-glow);
  }
}

.app-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--morning-accent), var(--evening-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.app-subtitle {
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 300;
  margin-top: 4px;
}

.date-display {
  margin-top: 12px;
  padding: 8px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50px;
  display: inline-block;
  font-size: 0.82rem;
  color: var(--text-secondary);
  backdrop-filter: blur(10px);
  line-height: 1.5;
  text-align: center;
}

.date-hijri {
  display: block;
  font-size: 0.72rem;
  color: var(--morning-accent);
  font-weight: 500;
  margin-top: 2px;
}

/* --- Sadaqa Card Collapse --- */
.sadaqa-collapse-toggle {
  cursor: pointer;
  position: relative;
}

.sadaqa-collapse-arrow {
  width: 20px;
  height: 20px;
  margin-left: auto;
  padding-left: 8px;
  flex-shrink: 0;
  position: relative;
  transition: transform var(--transition);
}

.sadaqa-collapse-arrow::after {
  content: '';
  position: absolute;
  top: 5px;
  right: 4px;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
  transition: border-color var(--transition);
}

.sadaqa-collapse-toggle:hover .sadaqa-collapse-arrow::after {
  border-color: var(--text-primary);
}

.sadaqa-collapse-toggle.collapsed .sadaqa-collapse-arrow {
  transform: rotate(-90deg);
}

.sadaqa-card-body {
  max-height: 800px;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  opacity: 1;
}

.sadaqa-card-body.collapsed {
  max-height: 0;
  opacity: 0;
}

/* --- Stats Bar --- */
.stats-bar {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 12px;
  margin-bottom: 22px;
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-card);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.stat-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  font-weight: 500;
}

.stat-value {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* --- Sadaqa Cards --- */
.sadaqa-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px 22px;
  margin-bottom: 20px;
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
}

.sadaqa-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.card-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.morning-icon-wrap {
  background: var(--morning-glow);
  box-shadow: 0 0 20px var(--morning-glow);
}

.evening-icon-wrap {
  background: var(--evening-glow);
  box-shadow: 0 0 20px var(--evening-glow);
}

.card-title {
  font-size: 1.15rem;
  font-weight: 600;
}

.card-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 300;
}

/* --- Amount Display --- */
.amount-display {
  text-align: center;
  padding: 20px 0;
  margin-bottom: 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.morning-card .amount-display {
  border-color: rgba(245, 166, 35, 0.15);
}

.evening-card .amount-display {
  border-color: rgba(124, 92, 191, 0.15);
}

.currency {
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--text-secondary);
  vertical-align: super;
  margin-right: 2px;
}

.amount-value {
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: -1px;
  transition: color var(--transition);
}

.morning-card .amount-value {
  color: var(--morning-accent);
}

.evening-card .amount-value {
  color: var(--evening-accent);
}

.amount-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-top: 4px;
}

/* --- Card Actions --- */
.card-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.input-row {
  display: flex;
  gap: 10px;
  width: 100%;
  overflow: hidden;
}

.amount-input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 0.95rem;
  outline: none;
  transition: all var(--transition);
}

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

.amount-input:focus {
  background: var(--bg-input-focus);
  border-color: rgba(255, 255, 255, 0.15);
}

.amount-input::-webkit-inner-spin-button,
.amount-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.amount-input[type="number"] {
  -moz-appearance: textfield;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 12px 16px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  box-shadow: var(--shadow-btn);
  flex-shrink: 0;
}

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

.btn-icon {
  font-size: 1.1rem;
  font-weight: 700;
}

.btn-add {
  background: var(--morning-gradient);
  color: #1a1a2e;
}

.evening-card .btn-add {
  background: var(--evening-gradient);
  color: #fff;
}

.btn-add:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.btn-reduce {
  background: rgba(248, 113, 113, 0.15);
  color: var(--danger);
  border: 1px solid rgba(248, 113, 113, 0.2);
}

.btn-reduce:hover {
  background: rgba(248, 113, 113, 0.25);
  transform: translateY(-1px);
}

/* --- History Section --- */
.history-section {
  margin-top: 18px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.history-toggle {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 0.82rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  transition: color var(--transition);
}

.history-toggle:hover {
  color: var(--text-secondary);
}

.toggle-arrow {
  display: inline-block;
  width: 10px;
  height: 10px;
  position: relative;
  transition: transform var(--transition);
  flex-shrink: 0;
}

.toggle-arrow::after {
  content: '';
  position: absolute;
  top: 1px;
  left: 1px;
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
  transition: border-color var(--transition);
}

.history-toggle.open .toggle-arrow {
  transform: rotate(180deg);
}

.history-list {
  list-style: none;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.history-list.open {
  max-height: 500px;
}

.history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  font-size: 0.85rem;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.history-item:last-child {
  border-bottom: none;
}

.history-type {
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.history-type .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.history-type .dot.add {
  background: var(--success);
}

.history-type .dot.reduce {
  background: var(--danger);
}

.history-amount {
  font-weight: 600;
}

.history-amount.positive {
  color: var(--success);
}

.history-amount.negative {
  color: var(--danger);
}

.history-time {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.history-empty {
  color: var(--text-muted);
  font-size: 0.82rem;
  text-align: center;
  padding: 14px 0;
}



/* --- Card Streak Strip (7-day, inside each card) --- */
.card-streak {
  margin-bottom: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.card-streak-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.card-streak-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* 7-day horizontal grid */
.card-streak-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.streak-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 2px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  cursor: default;
}

.streak-day-label {
  font-size: 0.62rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.streak-day-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid var(--border);
  transition: all var(--transition);
}

.streak-day-num {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Contributed state */
.streak-day.contributed .streak-day-dot {
  background: rgba(52, 211, 153, 0.25);
  border-color: rgba(52, 211, 153, 0.5);
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.2);
}

.streak-day.contributed .streak-day-num {
  color: var(--success);
}

/* Missed state — clickable */
.streak-day.missed {
  cursor: pointer;
}

.streak-day.missed .streak-day-dot {
  background: rgba(248, 113, 113, 0.12);
  border-color: rgba(248, 113, 113, 0.3);
}

.streak-day.missed .streak-day-num {
  color: rgba(248, 113, 113, 0.6);
}

.streak-day.missed:hover {
  background: rgba(248, 113, 113, 0.06);
  transform: translateY(-2px);
}

.streak-day.missed:hover .streak-day-dot {
  border-color: rgba(248, 113, 113, 0.6);
  box-shadow: 0 0 10px rgba(248, 113, 113, 0.2);
  animation: missedPulse 1.2s ease-in-out infinite;
}

@keyframes missedPulse {

  0%,
  100% {
    box-shadow: 0 0 6px rgba(248, 113, 113, 0.15);
  }

  50% {
    box-shadow: 0 0 14px rgba(248, 113, 113, 0.35);
  }
}

/* Today state */
.streak-day.today .streak-day-dot {
  border: 2px solid var(--morning-accent);
  box-shadow: 0 0 10px var(--morning-glow);
  background: rgba(245, 166, 35, 0.15);
}

.streak-day.today .streak-day-num {
  color: var(--morning-accent);
}

.streak-day.today.contributed .streak-day-dot {
  border-color: var(--success);
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.3);
  background: rgba(52, 211, 153, 0.25);
}

.streak-day.today.contributed .streak-day-num {
  color: var(--success);
}

/* --- Backfill Modal --- */
.backfill-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.backfill-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.backfill-modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  width: 100%;
  max-width: 360px;
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transform: translateY(20px) scale(0.95);
  transition: transform 0.3s ease;
}

.backfill-overlay.open .backfill-modal {
  transform: translateY(0) scale(1);
}

.backfill-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.backfill-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.backfill-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  transition: color var(--transition);
}

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

.backfill-date {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.backfill-period {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.backfill-input-row {
  display: flex;
  gap: 10px;
}

.backfill-input-row .amount-input {
  flex: 1;
}




/* --- Footer --- */
.app-footer {
  text-align: center;
  padding: 20px 0;
  border-top: 1px solid var(--border);
}

.footer-quote {
  font-family: var(--font-arabic);
  font-size: 1rem;
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.6;
  max-width: 340px;
  margin: 0 auto;
}

.footer-attr {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 6px;
}

/* --- Toast --- */
.toast {
  position: fixed;
  bottom: 86px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 500;
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 100;
  pointer-events: none;
  white-space: nowrap;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast.success {
  border-color: rgba(52, 211, 153, 0.3);
}

.toast.error {
  border-color: rgba(248, 113, 113, 0.3);
}

/* --- Amount change animation --- */
.amount-bump {
  animation: bump 0.35s ease;
}

@keyframes bump {
  0% {
    transform: scale(1);
  }

  40% {
    transform: scale(1.12);
  }

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

/* --- How to Use Section --- */
/* --- About the App Section --- */
.about-app {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px 22px;
  margin-top: 20px;
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-card);
}

.about-title {
  font-size: 1.15rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--morning-accent), var(--evening-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-card {
  padding: 16px;
  margin-bottom: 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
}

.about-card:last-of-type {
  margin-bottom: 0;
}

.about-heading {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.about-card p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.65;
  font-weight: 300;
  margin-bottom: 0;
}

.about-card p+p {
  margin-top: 10px;
}

.about-card strong {
  color: var(--text-primary);
  font-weight: 500;
}

.about-card em {
  color: var(--text-secondary);
  font-style: italic;
}

.about-quote {
  margin: 12px 0;
  padding: 12px 16px;
  border-left: 3px solid var(--morning-accent);
  background: rgba(245, 166, 35, 0.04);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-arabic);
  font-size: 0.9rem;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.6;
}

.about-quote cite {
  display: block;
  margin-top: 6px;
  font-size: 0.75rem;
  font-family: var(--font);
  font-style: normal;
  color: var(--text-muted);
}

.about-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.about-features li {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
  font-weight: 300;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
}

.about-features li strong {
  color: var(--text-primary);
  font-weight: 500;
}

/* --- About Section (collapsible) --- */
.about-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 700;
  padding: 0;
  cursor: pointer;
  text-align: center;
  background: linear-gradient(135deg, var(--morning-accent), var(--evening-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-toggle .toggle-arrow {
  transition: transform var(--transition);
}

.about-toggle .toggle-arrow::after {
  border-color: var(--text-muted);
}

.about-toggle.open .toggle-arrow {
  transform: rotate(180deg);
}

.about-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}

.about-body.open {
  max-height: 3000px;
  margin-top: 16px;
}

/* --- Settings Version --- */
.settings-version {
  text-align: center;
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

/* --- About Closing --- */
.about-closing {
  text-align: center;
  font-style: italic;
  color: var(--text-muted);
  margin-top: 18px;
  margin-bottom: 0;
  font-size: 0.78rem;
  line-height: 1.5;
}

/* --- Settings Button --- */
.settings-btn {
  position: absolute;
  top: 28px;
  right: 0;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 1.3rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.03);
}

.settings-btn:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
  transform: rotate(45deg);
}

.app-header {
  position: relative;
}

/* --- Hadith Banner --- */
.hadith-banner {
  text-align: center;
  padding: 18px 20px;
  margin-bottom: 22px;
  background: rgba(245, 166, 35, 0.04);
  border: 1px solid rgba(245, 166, 35, 0.12);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  animation: hadithFadeIn 0.8s ease;
}

@keyframes hadithFadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hadith-icon {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.hadith-text {
  font-family: var(--font-arabic);
  font-size: 0.92rem;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.65;
  margin-bottom: 6px;
}

.hadith-source {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* --- Settings Modal --- */
.settings-modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  width: 100%;
  max-width: 400px;
  max-height: 80vh;
  overflow-y: auto;
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transform: translateY(20px) scale(0.95);
  transition: transform 0.3s ease;
}

.backfill-overlay.open .settings-modal {
  transform: translateY(0) scale(1);
}

.settings-section {
  margin-top: 20px;
}

.settings-section-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

/* --- Currency List --- */
.currency-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.currency-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: var(--font);
  color: var(--text-primary);
  transition: all var(--transition);
  text-align: left;
}

.currency-option:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.currency-option.selected {
  background: rgba(245, 166, 35, 0.1);
  border-color: rgba(245, 166, 35, 0.35);
}

.currency-option-symbol {
  font-size: 1.1rem;
  font-weight: 700;
  min-width: 28px;
  text-align: center;
  color: var(--morning-accent);
}

.currency-option-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.currency-option-code {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
}

.currency-option-name {
  font-size: 0.68rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- Notification Settings --- */
.notif-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}

.notif-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Toggle Button */
.notif-toggle-btn {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 26px;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s;
}

.notif-toggle-btn[data-enabled="true"] {
  background: rgba(52, 211, 153, 0.3);
}

.notif-toggle-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: var(--text-secondary);
  border-radius: 50%;
  transition: transform 0.3s, background 0.3s;
  pointer-events: none;
}

.notif-toggle-btn[data-enabled="true"] .notif-toggle-knob {
  transform: translateX(20px);
  background: var(--success);
}

.notif-times {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.notif-time-row {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.notif-time-row label {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.time-input {
  padding: 8px 10px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 0.85rem;
  outline: none;
  transition: all var(--transition);
  color-scheme: dark;
}

.time-input:focus {
  background: var(--bg-input-focus);
  border-color: rgba(255, 255, 255, 0.15);
}

/* --- Dua Popup --- */
.dua-overlay {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.dua-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.dua-card {
  text-align: center;
  padding: 32px 28px;
  max-width: 380px;
  background: rgba(18, 24, 43, 0.92);
  border: 1px solid rgba(245, 166, 35, 0.25);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(24px);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(245, 166, 35, 0.08),
    inset 0 1px 0 rgba(245, 166, 35, 0.1);
  transform: scale(0.9) translateY(10px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: duaGlow 3s ease-in-out infinite;
}

.dua-overlay.open .dua-card {
  transform: scale(1) translateY(0);
}

@keyframes duaGlow {

  0%,
  100% {
    box-shadow:
      0 20px 60px rgba(0, 0, 0, 0.5),
      0 0 30px rgba(245, 166, 35, 0.06);
  }

  50% {
    box-shadow:
      0 20px 60px rgba(0, 0, 0, 0.5),
      0 0 50px rgba(245, 166, 35, 0.12);
  }
}

.dua-icon {
  font-size: 2.4rem;
  margin-bottom: 14px;
  animation: duaIconPulse 2s ease-in-out infinite;
}

@keyframes duaIconPulse {

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

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

.dua-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-weight: 500;
}

.dua-arabic {
  font-family: var(--font-arabic);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.8;
  direction: rtl;
  margin-bottom: 10px;
}

.dua-transliteration {
  font-family: var(--font);
  font-size: 0.85rem;
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 6px;
}

.dua-meaning {
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.55;
  margin-bottom: 8px;
}

.dua-source {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* --- Tab Bar --- */
.tab-bar {
  display: flex;
  gap: 3px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 4px;
  margin-bottom: 22px;
  backdrop-filter: blur(14px);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.tab-bar::-webkit-scrollbar { display: none; }

.tab-btn {
  flex: 1;
  min-width: 0;
  padding: 10px 4px;
  border: none;
  border-radius: 50px;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.tab-btn:hover {
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
}

.tab-btn.active {
  background: linear-gradient(135deg, var(--morning-accent), var(--evening-accent));
  color: #fff;
  box-shadow: 0 4px 16px rgba(245, 166, 35, 0.3);
}

.tab-icon {
  font-size: 0.82rem;
}

.tab-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* --- Tab Content --- */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: tabFadeIn 0.35s ease;
}

@keyframes tabFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Zakat Obligation Card --- */
.zakat-obligation-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px 22px;
  margin-bottom: 20px;
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
}

.zakat-obligation-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.zakat-obligation-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.zakat-obligation-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  background: rgba(16, 185, 129, 0.2);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.15);
}

.zakat-obligation-title {
  font-size: 1.15rem;
  font-weight: 600;
}

.zakat-obligation-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 300;
}

.zakat-set-row {
  display: flex;
  gap: 10px;
}

.zakat-set-row .amount-input {
  flex: 1;
}

.zakat-obligation-amount {
  text-align: center;
  padding: 18px 0;
  margin-bottom: 10px;
}

.zakat-obligation-amount .currency {
  font-size: 1.3rem;
  color: var(--text-secondary);
}

.zakat-obligation-amount #zakatObligationDisplay {
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: -1px;
  color: #10b981;
}

.zakat-edit-btn {
  display: block;
  margin: 0 auto;
  background: none;
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #10b981;
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 8px 20px;
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition);
}

.zakat-edit-btn:hover {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.4);
}

/* --- Zakat Progress Section --- */
.zakat-progress-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px 22px;
  margin-bottom: 20px;
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-card);
  text-align: center;
}

.zakat-progress-ring-wrap {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 20px;
}

.zakat-progress-ring {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.zakat-ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.06);
  stroke-width: 8;
}

.zakat-ring-fill {
  fill: none;
  stroke: #10b981;
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 326.73;
  stroke-dashoffset: 326.73;
  transition: stroke-dashoffset 1s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.4));
}

.zakat-progress-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.zakat-progress-pct {
  font-size: 1.8rem;
  font-weight: 700;
  color: #10b981;
}

.zakat-progress-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

/* --- Zakat Balance Bar --- */
.zakat-balance-bar {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 16px 0 0;
  border-top: 1px solid var(--border);
}

.zakat-balance-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.zakat-balance-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  font-weight: 500;
}

.zakat-balance-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.zakat-balance-value.zakat-paid {
  color: #10b981;
}

.zakat-balance-value.zakat-remaining {
  color: var(--morning-accent);
}

/* --- Zakat Payment Card --- */
.zakat-payment-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px 22px;
  margin-bottom: 20px;
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-card);
}

.zakat-payment-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.zakat-payment-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.zakat-desc-input {
  font-size: 0.88rem;
}

.zakat-pay-btn {
  background: linear-gradient(135deg, #10b981 0%, #34d399 100%) !important;
  color: #fff !important;
}

.zakat-pay-btn:hover {
  filter: brightness(1.1);
}

/* --- Zakat Timeline Card --- */
.zakat-timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px 22px;
  margin-bottom: 20px;
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-card);
}

.zakat-timeline-header {
  font-size: 1rem;
  font-weight: 600;
  padding: 4px 0;
  width: 100%;
}

.zakat-timeline {
  list-style: none;
}

.zakat-timeline-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  animation: slideIn 0.3s ease;
}

.zakat-timeline-item:last-child {
  border-bottom: none;
}

.zakat-timeline-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10b981;
  margin-top: 5px;
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.3);
}

.zakat-timeline-body {
  flex: 1;
  min-width: 0;
}

.zakat-timeline-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.zakat-timeline-desc {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.zakat-timeline-amount {
  font-size: 0.92rem;
  font-weight: 600;
  color: #10b981;
  white-space: nowrap;
}

.zakat-timeline-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.zakat-timeline-empty {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 20px 0;
}

/* --- Zakat Calculator Card --- */
.zakat-calc-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px 22px;
  margin-bottom: 20px;
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-card);
}

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

.zakat-calc-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.zakat-calc-title {
  font-size: 1.15rem;
  font-weight: 600;
}

.zakat-calc-toggle {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.zakat-calc-toggle:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
}

.zakat-calc-toggle .toggle-arrow {
  transition: transform var(--transition);
}

.zakat-calc-toggle.open .toggle-arrow {
  transform: rotate(180deg);
}

.zakat-calc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}

.zakat-calc-body.open {
  max-height: 2000px;
}

.calc-section {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.calc-section:first-child {
  border-top: none;
  margin-top: 16px;
}

.calc-section-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.calc-section-hint {
  font-weight: 300;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.calc-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.calc-row label {
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.calc-unit {
  color: var(--text-muted);
  font-size: 0.72rem;
}

.calc-input {
  font-size: 0.9rem !important;
  padding: 10px 12px !important;
}

.calc-row-with-value .calc-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.calc-row-with-value .calc-input-wrap .calc-input {
  flex: 1;
}

.calc-computed-value {
  font-size: 0.78rem;
  color: #10b981;
  font-weight: 500;
  white-space: nowrap;
  min-width: 60px;
}

.calc-summary {
  margin-top: 20px;
  padding: 18px 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.calc-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.calc-summary-row span:last-child {
  font-weight: 600;
  color: var(--text-primary);
}

.calc-summary-net {
  border-top: 1px solid var(--border);
  margin-top: 4px;
  padding-top: 12px;
  font-weight: 600;
}

.calc-summary-net span:first-child {
  color: var(--text-primary);
}

.calc-summary-net span:last-child {
  font-size: 1rem;
  color: #10b981;
}

.calc-nisab-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.calc-nisab-row span:last-child {
  font-weight: 500;
  color: var(--text-secondary);
}

.calc-status {
  padding: 12px 0;
  text-align: center;
}

.calc-status-info {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.calc-status-eligible {
  font-size: 0.88rem;
  font-weight: 600;
  color: #10b981;
}

.calc-status-below {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.calc-due-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid rgba(16, 185, 129, 0.2);
  margin-top: 4px;
}

.calc-due-row span:first-child {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-primary);
}

.calc-due-amount {
  font-size: 1.2rem;
  font-weight: 700;
  color: #10b981;
}

.btn-calc-clear {
  display: block;
  width: 100%;
  margin-top: 12px;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 0.78rem;
  padding: 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}

.btn-calc-clear:hover {
  color: var(--text-secondary);
  border-color: rgba(255, 255, 255, 0.15);
}

/* --- Fetch Live Prices Button --- */
.btn-fetch-prices {
  display: block;
  width: 100%;
  margin-bottom: 14px;
  padding: 10px 16px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #10b981;
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}

.btn-fetch-prices:hover {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
}

.btn-fetch-prices:disabled {
  opacity: 0.6;
  cursor: wait;
}

.fetch-prices-note {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-align: center;
  padding: 6px 0 10px;
  line-height: 1.4;
}

/* --- Zakat Period --- */
.zakat-period-inputs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.zakat-period-row {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.zakat-period-row label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.date-input {
  color-scheme: dark;
  font-size: 0.82rem;
  padding: 8px 10px;
}

/* --- Zakat Payment Edit --- */
.zakat-edit-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.zakat-edit-actions {
  display: flex;
  gap: 10px;
}

.zakat-edit-actions .btn {
  flex: 1;
}

/* --- Zakat Timeline Edit Button --- */
.zakat-timeline-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2px;
}

.zakat-edit-payment-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all var(--transition);
}

.zakat-edit-payment-btn:hover {
  color: var(--morning-accent);
  background: rgba(245, 166, 35, 0.1);
}

/* --- Zakat Timeline Collapsible --- */
.zakat-timeline.history-list {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  list-style: none;
}

.zakat-timeline.history-list.open {
  max-height: 600px;
  overflow-y: auto;
}

.zakat-timeline-empty.history-list {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.zakat-timeline-empty.history-list.open {
  max-height: 100px;
}

/* --- Fidyah & Kaffarah Tab --- */
.fk-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px 22px;
  margin-bottom: 20px;
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-card);
}

.fk-card-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.fk-card-header > .zakat-obligation-icon {
  flex-shrink: 0;
}

.fk-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}

.fk-card-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 300;
  margin: 2px 0 0;
}

/* Meal Cost */
.fk-meal-saved {
  font-size: 0.78rem;
  color: #10b981;
  margin-top: 8px;
}

/* FK Calculator */
.fk-calc-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fk-form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.fk-form-group label {
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.fk-select {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 0.88rem;
  outline: none;
  transition: all var(--transition);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%238b95b8'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.fk-select:focus {
  background-color: var(--bg-input-focus);
  border-color: rgba(255, 255, 255, 0.15);
}

.fk-select option {
  background: #1a1f35;
  color: var(--text-primary);
}

.fk-calc-result {
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.fk-calc-breakdown {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
  line-height: 1.5;
}

.fk-calc-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.fk-calc-total-row span:first-child {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-primary);
}

.fk-calc-total {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--morning-accent);
}

.fk-calc-btn {
  background: linear-gradient(135deg, var(--morning-accent), var(--evening-accent)) !important;
  color: #fff !important;
}

.fk-add-btn {
  background: linear-gradient(135deg, #10b981, #34d399) !important;
  color: #fff !important;
}

/* Obligations List */
.fk-obligations-list, .fk-debts-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fk-obl-item, .fk-debt-item {
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}

.fk-obl-item:hover, .fk-debt-item:hover {
  border-color: rgba(255, 255, 255, 0.1);
}

.fk-obl-done {
  opacity: 0.65;
}

.fk-obl-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 10px;
}

.fk-obl-desc {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.4;
}

.fk-obl-progress-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.fk-obl-progress-bar {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  overflow: hidden;
}

.fk-obl-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #34d399);
  border-radius: 3px;
  transition: width 0.6s ease;
}

.fk-obl-pct {
  font-size: 0.75rem;
  font-weight: 600;
  color: #10b981;
  min-width: 32px;
  text-align: right;
}

.fk-obl-amounts {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.fk-pay-obl-btn {
  width: 100%;
  margin-top: 4px;
}

.fk-obl-complete {
  display: block;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: #10b981;
  padding: 8px 0 0;
}

.fk-empty {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
  padding: 18px 0;
  line-height: 1.5;
}

.fk-pay-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
  line-height: 1.4;
}

/* --- Debt-specific --- */
.loan-proof-hint {
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 2px;
}

.loan-quran-reminder {
  font-size: 0.75rem;
  color: var(--text-secondary);
  padding: 10px 14px;
  background: rgba(245, 166, 35, 0.04);
  border: 1px solid rgba(245, 166, 35, 0.1);
  border-radius: var(--radius-sm);
  line-height: 1.5;
  margin-top: 4px;
}

.loan-quran-ref {
  color: var(--text-muted);
  font-style: normal;
  font-size: 0.7rem;
}

/* Debt-specific */
.debt-header-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.debt-desc-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 300;
}

.debt-due {
  display: block;
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.debt-overdue {
  color: var(--danger);
  font-weight: 500;
}

.debt-soon {
  color: var(--morning-accent);
}

.debt-recent-payments {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.debt-payment-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-muted);
  padding: 3px 0;
}

/* --- Nisab Tracker Card --- */
.nisab-tracker-card {
  background: var(--bg-card);
  border: 1px solid rgba(16, 185, 129, 0.15);
  border-radius: var(--radius-xl);
  padding: 24px 22px;
  margin-bottom: 20px;
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-card);
}

.nisab-prices-row {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.nisab-price-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nisab-price-item label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.nisab-values {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.nisab-value-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.nisab-amount {
  font-weight: 600;
  color: #10b981;
}

/* --- Hijri Date Badge --- */
.hijri-date-display {
  font-size: 0.75rem;
  color: #10b981;
  margin-top: 4px;
}

.hijri-date-badge {
  text-align: center;
  padding: 10px 0;
  margin-bottom: 10px;
}

.hijri-date-badge span:first-child {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-primary);
}

.hijri-gregorian {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* --- Dua Dismiss --- */
.dua-dismiss {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 14px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* --- Upcoming Obligations Banner --- */
.upcoming-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  margin-bottom: 18px;
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.15);
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  color: var(--text-primary);
}

.upcoming-banner.upcoming-warning {
  background: rgba(245, 166, 35, 0.08);
  border-color: rgba(245, 166, 35, 0.2);
}

.upcoming-banner.upcoming-urgent {
  background: rgba(248, 113, 113, 0.08);
  border-color: rgba(248, 113, 113, 0.25);
  animation: pulse-border 2s ease-in-out infinite;
}

@keyframes pulse-border {
  0%, 100% { border-color: rgba(248, 113, 113, 0.25); }
  50% { border-color: rgba(248, 113, 113, 0.6); }
}

.upcoming-banner-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.upcoming-banner-text {
  flex: 1;
  line-height: 1.4;
}

.upcoming-banner-text strong {
  display: block;
  font-size: 0.82rem;
}

.upcoming-days {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* --- Family Profile --- */
.family-head-badge {
  font-size: 0.65rem;
  background: rgba(245, 166, 35, 0.15);
  color: var(--morning-accent);
  padding: 2px 8px;
  border-radius: 50px;
  font-weight: 600;
  margin-left: 6px;
}

/* --- Udhiyah --- */
.udhiyah-status-text {
  font-size: 0.78rem;
  line-height: 1.5;
  padding: 10px 0;
}

.udhiyah-fulfill-btn {
  background: rgba(248, 113, 113, 0.1) !important;
  border-color: rgba(248, 113, 113, 0.3) !important;
  color: var(--danger) !important;
}

.udhiyah-fulfill-btn:hover:not(:disabled) {
  background: rgba(248, 113, 113, 0.2) !important;
}

.udhiyah-fulfill-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* --- Eid Obligations --- */
.eid-subsection {
  margin-top: 16px;
}

.eid-subsection-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.eid-divider {
  height: 1px;
  background: var(--border);
  margin: 20px 0;
}

/* --- Deadline Bars --- */
.deadline-bar {
  padding: 12px 0;
  margin-bottom: 4px;
}

.deadline-bar-label {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
  line-height: 1.4;
}

.deadline-bar-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  overflow: hidden;
}

.deadline-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.5s ease, background 0.3s;
  width: 0%;
}

.deadline-normal .deadline-bar-fill { background: #10b981; }
.deadline-normal .deadline-bar-label { color: #10b981; }
.deadline-warning .deadline-bar-fill { background: var(--morning-accent); }
.deadline-warning .deadline-bar-label { color: var(--morning-accent); }

.deadline-urgent .deadline-bar-fill {
  background: var(--danger);
  animation: pulse-fill 1.5s ease-in-out infinite;
}
.deadline-urgent .deadline-bar-label { color: var(--danger); font-weight: 600; }

@keyframes pulse-fill {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.deadline-dormant .deadline-bar-fill { background: rgba(255, 255, 255, 0.1); }
.deadline-dormant .deadline-bar-label { color: var(--text-muted); }

/* --- Fitra Per-Member Toggles --- */
.fitra-member-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fitra-member-amount {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

.fitra-paid-toggle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.fitra-paid-toggle.paid {
  background: rgba(16, 185, 129, 0.15);
  border-color: #10b981;
  color: #10b981;
}

.fitra-member-paid { opacity: 0.6; }

.fitra-summary-row {
  display: flex;
  justify-content: center;
  padding: 8px 0 0;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

/* --- Zakatul Fitra --- */
.fitra-members-list {
  margin: 12px 0;
}

.fitra-member-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  margin-bottom: 6px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.fitra-member-name {
  font-size: 0.88rem;
  color: var(--text-primary);
}

.fitra-remove-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0 4px;
  transition: color var(--transition);
}

.fitra-remove-btn:hover {
  color: var(--danger);
}

.fitra-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}

.fitra-total-row > span:first-child {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-primary);
}

.fitra-total-amount {
  font-size: 1rem;
  font-weight: 700;
  color: #10b981;
}

.fitra-paid-badge {
  text-align: center;
  font-size: 0.88rem;
  font-weight: 600;
  color: #10b981;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  margin-top: 10px;
}

/* --- Haul Tracker --- */
.haul-explain {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.haul-progress-section {
  padding: 4px 0;
}

.haul-dates {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.haul-date-item {
  flex: 1;
  text-align: center;
}

.haul-date-label {
  display: block;
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.haul-date-value {
  display: block;
  font-size: 0.85rem;
  color: var(--text-primary);
  font-weight: 600;
}

.haul-date-hijri {
  display: block;
  font-size: 0.72rem;
  color: var(--morning-accent);
  margin-top: 2px;
}

.haul-bar-section {
  margin-bottom: 14px;
}

.haul-bar-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  overflow: hidden;
}

.haul-bar-fill {
  height: 100%;
  border-radius: 4px;
  background: #10b981;
  transition: width 0.5s ease;
  width: 0%;
}

.haul-bar-fill.haul-soon {
  background: var(--morning-accent);
}

.haul-bar-fill.haul-complete {
  background: var(--danger);
  animation: pulse-fill 1.5s ease-in-out infinite;
}

.haul-bar-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.haul-checkin {
  padding: 14px;
  background: rgba(245, 166, 35, 0.06);
  border: 1px solid rgba(245, 166, 35, 0.15);
  border-radius: var(--radius-sm);
  margin-top: 14px;
}

.haul-checkin-text {
  font-size: 0.82rem;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.haul-checkin-actions {
  display: flex;
  gap: 8px;
}

.haul-checkin-actions .btn {
  flex: 1;
  font-size: 0.78rem;
  padding: 8px 10px;
}

.haul-due-alert {
  padding: 14px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-sm);
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--text-primary);
  line-height: 1.5;
}

/* --- Haul Advanced Balance Tracking --- */
.haul-advanced {
  margin-top: 16px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.haul-advanced-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0;
  cursor: pointer;
  transition: color var(--transition);
}

.haul-advanced-toggle:hover {
  color: var(--text-primary);
}

.haul-advanced-toggle.open .toggle-arrow {
  transform: rotate(180deg);
}

.haul-advanced-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.haul-advanced-body.open {
  max-height: 800px;
  margin-top: 14px;
}

.haul-advanced-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 12px;
}

.haul-nisab-row {
  margin-bottom: 10px;
}

.haul-nisab-label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.haul-nisab-value-row {
  display: flex;
  gap: 6px;
}

.haul-entry-row {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.haul-entries-list {
  margin-bottom: 10px;
}

.haul-entry-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  margin-bottom: 4px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
}

.haul-entry-below {
  border-color: rgba(248, 113, 113, 0.3);
  background: rgba(248, 113, 113, 0.04);
}

.haul-entry-date {
  color: var(--text-muted);
  min-width: 80px;
}

.haul-entry-amount {
  color: var(--text-primary);
  font-weight: 500;
  flex: 1;
  text-align: right;
  margin-right: 8px;
}

.haul-entry-warn {
  font-size: 0.65rem;
  color: var(--danger);
  font-weight: 600;
}

.haul-entry-remove {
  font-size: 1rem;
}

.haul-lowest-bar {
  padding: 12px;
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.15);
  border-radius: var(--radius-sm);
  margin-top: 10px;
}

.haul-lowest-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.haul-lowest-value {
  font-weight: 600;
  color: var(--text-primary);
}

.haul-zakat-due {
  color: #10b981;
  font-size: 0.9rem;
}

/* --- Will (Wasiyyah) --- */
.will-hadith-prompt {
  padding: 16px;
  background: rgba(245, 166, 35, 0.04);
  border: 1px solid rgba(245, 166, 35, 0.1);
  border-radius: var(--radius-sm);
  text-align: center;
}

.will-hadith-text {
  font-size: 0.85rem;
  color: var(--text-primary);
  line-height: 1.6;
  font-family: var(--font-arabic), serif;
}

.will-hadith-source {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.will-info-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 4px 0;
}

.will-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.will-info-row:last-child {
  border-bottom: none;
}

.will-info-label {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.will-info-value {
  font-size: 0.82rem;
  color: var(--text-primary);
  font-weight: 500;
}

.will-warning {
  font-size: 0.78rem;
  color: var(--morning-accent);
  padding: 10px 14px;
  background: rgba(245, 166, 35, 0.06);
  border: 1px solid rgba(245, 166, 35, 0.12);
  border-radius: var(--radius-sm);
  margin-top: 12px;
}

/* --- Faraid Calculator --- */
.faraid-disclaimer {
  padding: 14px 18px;
  margin-bottom: 20px;
  background: rgba(245, 166, 35, 0.06);
  border: 1px solid rgba(245, 166, 35, 0.15);
  border-radius: var(--radius-md);
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.faraid-heirs-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faraid-heir-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
}

.faraid-heir-row label {
  font-size: 0.82rem;
  color: var(--text-secondary);
  flex: 1;
}

.faraid-input {
  width: 70px !important;
  flex: none !important;
  text-align: center;
  padding: 8px 6px !important;
  font-size: 0.9rem !important;
}

/* Faraid Results */
.faraid-summary-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.faraid-summary-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-secondary);
  padding: 4px 0;
}

.faraid-summary-item span:last-child {
  font-weight: 500;
  color: var(--text-primary);
}

.faraid-summary-total {
  border-top: 1px solid var(--border);
  padding-top: 10px;
  margin-top: 4px;
}

.faraid-summary-total span:first-child {
  font-weight: 600;
  color: var(--text-primary);
}

.faraid-summary-total span:last-child {
  font-weight: 700;
  color: #10b981;
  font-size: 1rem;
}

.faraid-results {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faraid-result-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.faraid-result-info {
  flex: 1;
  min-width: 0;
}

.faraid-result-heir {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-primary);
}

.faraid-result-note {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.faraid-result-amount {
  text-align: right;
  flex-shrink: 0;
}

.faraid-result-value {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: #10b981;
}

.faraid-result-pct {
  display: block;
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.faraid-remainder {
  border-color: rgba(245, 166, 35, 0.2);
  background: rgba(245, 166, 35, 0.04);
}

.faraid-remainder .faraid-result-value {
  color: var(--morning-accent);
}

/* --- Hijri Adjustment --- */
.hijri-adjust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
}

.hijri-adj-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hijri-adj-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
}

.hijri-adj-btn.active {
  background: rgba(245, 166, 35, 0.15);
  border-color: var(--morning-accent);
  color: var(--morning-accent);
}

.hijri-adj-current {
  font-size: 0.78rem;
  color: var(--text-muted);
  min-width: 90px;
  text-align: center;
}

.hijri-adj-preview {
  font-size: 0.75rem;
  color: var(--morning-accent);
  text-align: center;
  margin-top: 8px;
}

/* --- Settings Collapsible --- */
.settings-collapse-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0;
  cursor: pointer;
  transition: color var(--transition);
}

.settings-collapse-toggle:hover {
  color: var(--morning-accent);
}

.settings-collapse-toggle .toggle-arrow {
  transition: transform var(--transition);
}

.settings-collapse-toggle.open .toggle-arrow {
  transform: rotate(180deg);
}

.settings-collapse-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.settings-collapse-body.open {
  max-height: 600px;
  margin-top: 12px;
}

/* --- Backup & Restore --- */
.settings-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.4;
}

.backup-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-backup {
  display: block;
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}

.btn-backup:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}

.btn-backup:active {
  transform: scale(0.98);
}

.btn-backup-import {
  border-color: rgba(16, 185, 129, 0.25);
  color: #10b981;
}

.btn-backup-import:hover {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.4);
}

.backup-preview {
  margin-top: 14px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.backup-preview-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.backup-preview-list {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
}

.backup-preview-list li {
  font-size: 0.78rem;
  color: var(--text-secondary);
  padding: 4px 0;
  line-height: 1.4;
}

.backup-warning {
  font-size: 0.75rem;
  color: var(--danger);
  margin-bottom: 12px;
  font-weight: 500;
}

/* --- Feedback Floating Button --- */
.feedback-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--morning-accent), var(--evening-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(245, 166, 35, 0.35);
  z-index: 90;
  text-decoration: none;
  transition: all var(--transition);
}

.feedback-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(245, 166, 35, 0.5);
}

.feedback-fab:active {
  transform: scale(0.95);
}

.feedback-fab-icon {
  font-size: 1.3rem;
  line-height: 1;
}

/* --- Responsive --- */
@media (max-width: 520px) {
  .app-container {
    padding: 16px 14px 32px;
  }

  .sadaqa-card, .fk-card {
    padding: 20px 16px;
  }

  .amount-value {
    font-size: 2.2rem;
  }

  .stats-bar {
    padding: 14px 8px;
  }

  .stat-value {
    font-size: 1rem;
  }

  .currency-list {
    grid-template-columns: 1fr;
  }

  .settings-modal {
    max-height: 85vh;
  }

  .hadith-banner {
    padding: 14px 16px;
  }

  .tab-btn {
    font-size: 0.62rem;
    padding: 8px 2px;
    gap: 1px;
  }

  .tab-icon {
    font-size: 0.72rem;
  }

  .tab-bar {
    gap: 2px;
    padding: 3px;
  }

  .tab-label {
    font-size: 0.58rem;
  }

  .fk-obl-amounts {
    flex-wrap: wrap;
    gap: 4px;
  }

  .fk-select {
    font-size: 0.82rem;
    padding: 10px 12px;
  }

  .zakat-calc-card {
    padding: 20px 16px;
  }

  .nisab-prices-row {
    flex-direction: column;
    gap: 8px;
  }

  .feedback-fab {
    bottom: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
  }
}