/* style.css - Desain Modern & Responsif untuk RencanaHari */
:root {
  --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Light Theme */
  --bg-primary: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-alt: #f1f5f9;
  --bg-card: #ffffff;
  --border-color: #e2e8f0;
  --border-focus: #6366f1;
  
  --text-primary: #020617;
  --text-secondary: #1e293b;
  --text-muted: #334155;
  
  --accent-primary: #6366f1;
  --accent-primary-hover: #4f46e5;
  --accent-light: #e0e7ff;
  
  --success: #10b981;
  --success-light: #d1fae5;
  --warning: #f59e0b;
  --warning-light: #fef3c7;
  --danger: #ef4444;
  --danger-light: #fee2e2;
  --info: #0284c7;
  --info-light: #e0f2fe;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
}

[data-theme="dark"] {
  --bg-primary: #090d16;
  --bg-surface: #111827;
  --bg-surface-alt: #1f2937;
  --bg-card: #131c2e;
  --border-color: #1e293b;
  --border-focus: #818cf8;
  
  --text-primary: #ffffff;
  --text-secondary: #f1f5f9;
  --text-muted: #cbd5e1;
  
  --accent-primary: #6366f1;
  --accent-primary-hover: #818cf8;
  --accent-light: rgba(99, 102, 241, 0.15);
  
  --success: #10b981;
  --success-light: rgba(16, 185, 129, 0.15);
  --warning: #f59e0b;
  --warning-light: rgba(245, 158, 11, 0.15);
  --danger: #ef4444;
  --danger-light: rgba(239, 68, 68, 0.15);
  --info: #38bdf8;
  --info-light: rgba(56, 189, 248, 0.15);

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  transition: background-color 0.25s ease, color 0.25s ease;
  min-height: 100vh;
}

/* App Header */
.app-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  padding: 0.85rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: var(--shadow-sm);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.header-brand-only {
  justify-content: flex-start;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent-primary), #a855f7);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  font-size: 1.25rem;
  box-shadow: 0 4px 10px rgba(99, 102, 241, 0.35);
}

.header-mth-emblem {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.45));
}

.brand-icon-logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, #1e293b 0%, #0f172a 100%);
  border: 1.5px solid #d4af37;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.4);
  flex-shrink: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.brand-icon-logo:hover {
  transform: scale(1.08);
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.65);
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

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

/* Date Navigator & Clock */
.center-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-surface-alt);
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
}

.nav-date-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-size: 0.825rem;
  font-weight: 600;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-date-btn:hover {
  background: var(--bg-surface);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.current-date-badge {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  padding: 0.2rem 0.5rem;
  cursor: pointer;
}

.date-picker-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.live-clock {
  font-size: 0.85rem;
  font-family: monospace;
  font-weight: 600;
  background: var(--bg-card);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  color: var(--accent-primary);
}

/* Header Controls */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-icon {
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s;
}

.btn-icon:hover {
  background: var(--accent-light);
  color: var(--accent-primary);
  border-color: var(--accent-primary);
}

.btn-icon.active {
  background: var(--accent-primary);
  color: white;
  border-color: var(--accent-primary);
}

/* Dashboard Container */
.dashboard-container {
  max-width: 1400px;
  margin: 1.5rem auto;
  padding: 0 1.5rem 3rem 1.5rem;
}

/* Daily Banner / Progress */
.daily-overview-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.overview-left {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.overview-date-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
}

.overview-hijri-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #047857;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.14), rgba(5, 150, 105, 0.08));
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 0.22rem 0.75rem;
  border-radius: var(--radius-full);
  width: fit-content;
  margin-top: 0.1rem;
  margin-bottom: 0.35rem;
  letter-spacing: 0.015em;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.25s ease;
  user-select: none;
}

.overview-hijri-badge .hijri-icon {
  font-size: 0.95rem;
  line-height: 1;
}

[data-theme="dark"] .overview-hijri-badge {
  color: #34d399;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(6, 95, 70, 0.3));
  border-color: rgba(52, 211, 153, 0.45);
  box-shadow: 0 0 14px rgba(52, 211, 153, 0.18);
}

[data-theme="dark"] .overview-hijri-badge .hijri-icon {
  filter: drop-shadow(0 0 6px rgba(52, 211, 153, 0.6));
}

.overview-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}

.stat-chip {
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.stat-chip-count {
  font-weight: 700;
  color: var(--accent-primary);
}

.progress-wrapper {
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.progress-bar-bg {
  width: 100%;
  height: 8px;
  background: var(--bg-surface-alt);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-primary), #10b981);
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
}

/* Two Columns Grid: Fokus & To-Do + Kebiasaan Rutin */
.planner-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .planner-grid {
    grid-template-columns: 1fr;
  }
}

/* Card Column Layout */
.column-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  height: fit-content;
}

.column-header {
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.column-title-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.column-title {
  font-size: 1.05rem;
  font-weight: 700;
}

.column-badge {
  font-size: 0.75rem;
  background: var(--bg-surface-alt);
  color: var(--text-secondary);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  font-weight: 600;
}

.column-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: none;
  overflow: visible;
}

/* Buttons */
.btn-primary {
  background: var(--accent-primary);
  color: white;
  border: none;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s;
}

.btn-primary:hover {
  background: var(--accent-primary-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-surface-alt);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: var(--border-color);
}

.btn-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
}

/* Timeline / Jadwal Section */
.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
}

.schedule-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
  transition: all 0.2s ease;
  border-left: 4px solid var(--border-color);
}

.schedule-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.schedule-card.status-ongoing {
  border-left-color: var(--warning);
  background: var(--warning-light);
}

.schedule-card.status-upcoming {
  border-left-color: var(--accent-primary);
}

.schedule-card.status-completed {
  border-left-color: var(--success);
  opacity: 0.65;
}

.schedule-card.status-completed .schedule-title {
  text-decoration: line-through;
}

.schedule-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.schedule-time-badge {
  font-size: 0.8rem;
  font-weight: 700;
  font-family: monospace;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.schedule-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--warning);
  box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
  animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(245, 158, 11, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
  }
}

.schedule-status-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.badge-ongoing {
  background: var(--warning);
  color: #fff;
}

.badge-upcoming {
  background: var(--accent-light);
  color: var(--accent-primary);
}

.badge-completed {
  background: var(--success-light);
  color: var(--success);
}

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

.schedule-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.tag-pill {
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.7rem;
}

.tag-work { background: #e0e7ff; color: #4338ca; }
.tag-personal { background: #fce7f3; color: #be185d; }
.tag-study { background: #e0f2fe; color: #0369a1; }
.tag-health { background: #dcfce7; color: #15803d; }
.tag-worship { background: #fef3c7; color: #b45309; }
.tag-general { background: #f1f5f9; color: #475569; }

.priority-high { color: var(--danger); font-weight: 600; }
.priority-medium { color: var(--warning); font-weight: 600; }
.priority-low { color: var(--info); font-weight: 600; }

.schedule-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  margin-top: 0.25rem;
}

.action-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem 0.4rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  transition: all 0.2s;
}

.action-btn:hover {
  color: var(--text-primary);
  background: var(--bg-surface-alt);
}

.action-btn.btn-delete:hover {
  color: var(--danger);
}

.badge-locked {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #047857;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-sm);
  cursor: default;
  user-select: none;
}

[data-theme="dark"] .badge-locked {
  color: #34d399;
  background: rgba(16, 185, 129, 0.22);
  border-color: rgba(52, 211, 153, 0.4);
}

.toast-btn-undo {
  background: var(--bg-surface);
  color: var(--accent-primary);
  border: 1.5px solid var(--accent-primary);
  font-weight: 800;
  font-size: 0.825rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
  margin-left: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.toast-btn-undo:hover, .toast-btn-undo:active {
  background: var(--accent-primary);
  color: #ffffff;
}

/* Quick Add Task Input */
.quick-add-box {
  display: flex;
  gap: 0.5rem;
}

.input-text {
  flex: 1;
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.2s;
}

.input-text:focus {
  border-color: var(--accent-primary);
  background: var(--bg-card);
}

/* Filters */
.task-filter-bar {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  padding-bottom: 0.2rem;
}

.filter-chip {
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.filter-chip.active {
  background: var(--accent-primary);
  color: white;
  border-color: var(--accent-primary);
}

/* Task List */
.task-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.task-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.7rem 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  transition: all 0.2s;
}

.task-item:hover {
  box-shadow: var(--shadow-sm);
}

.task-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex: 1;
  min-width: 0;
}

.custom-checkbox {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 2px solid var(--border-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
}

.custom-checkbox.checked {
  background: var(--success);
  border-color: var(--success);
  color: white;
}

.task-item.completed .task-label {
  text-decoration: line-through;
  color: var(--text-muted);
}

.task-details {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.task-label {
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.task-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  display: flex;
  gap: 0.4rem;
}

/* Habits / Rutinitas */
.habit-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.habit-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.habit-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.habit-streak,
.habit-streak-btn {
  font-size: 0.75rem;
  font-weight: 700;
  color: #ea580c;
  background: #ffedd5;
  border: 1px solid rgba(234, 88, 12, 0.25);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  line-height: 1;
}

.habit-streak-btn:hover {
  background: #fed7aa;
  transform: scale(1.05);
}

[data-theme="dark"] .habit-streak,
[data-theme="dark"] .habit-streak-btn {
  background: rgba(234, 88, 12, 0.2);
  color: #fb923c;
  border-color: rgba(251, 146, 60, 0.3);
}

.btn-inc-streak {
  font-weight: 800;
  font-size: 0.85rem;
  padding: 0.2rem 0.45rem;
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  line-height: 1;
  transition: all 0.2s;
}

.btn-inc-streak:hover {
  background: #ea580c;
  color: white;
  border-color: #ea580c;
}

/* Daily Focus & Notes */
.focus-card {
  background: var(--bg-surface-alt);
  border: 1.5px solid rgba(16, 185, 129, 0.4);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .focus-card {
  border-color: rgba(52, 211, 153, 0.35);
}

.focus-card-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #059669;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  letter-spacing: 0.02em;
}

[data-theme="dark"] .focus-card-title {
  color: #34d399;
}

.focus-input {
  background: transparent;
  border: none;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  width: 100%;
  outline: none;
  font-family: inherit;
  line-height: 1.45;
  resize: none;
  white-space: pre-wrap;
  word-break: break-word;
  min-height: 48px;
}

.notes-area {
  width: 100%;
  min-height: 100px;
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--text-primary);
  resize: vertical;
  outline: none;
}

.notes-area:focus {
  border-color: var(--accent-primary);
}

/* Active Floating Alert / Toast Reminder Banner */
.reminder-toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 400px;
  width: calc(100% - 3rem);
  pointer-events: none;
}

.reminder-toast {
  pointer-events: auto;
  background: var(--bg-surface);
  border: 2px solid var(--accent-primary);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  animation: slide-up 0.35s ease;
}

@keyframes slide-up {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.reminder-toast.urgent {
  border-color: var(--danger);
  animation: alert-pulse 2s infinite, slide-up 0.35s ease;
}

@keyframes alert-pulse {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

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

.toast-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.toast-body-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.toast-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem 0.75rem calc(1.5rem + env(safe-area-inset-bottom, 0px)) 0.75rem;
  overflow: hidden !important;
  box-sizing: border-box;
}

.modal-overlay.open {
  display: flex !important;
  pointer-events: auto !important;
}

.modal-overlay:not(.open) {
  display: none !important;
  pointer-events: none !important;
}

.modal-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.35), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 3.5rem);
  max-height: calc(100dvh - 3.5rem - env(safe-area-inset-bottom, 0px));
  overflow: hidden;
  animation: pop-modal 0.2s ease-out;
  position: relative;
  box-sizing: border-box;
}

/* KUNCI: Form di dalam modal-box HARUS bertindak sebagai flex column penuh */
.modal-box form {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  width: 100%;
}

@keyframes pop-modal {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

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

.modal-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
}

.modal-body {
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.form-select {
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.85rem;
  outline: none;
}

.modal-footer {
  padding: 0.85rem 1.25rem;
  border-top: 1px solid var(--border-color);
  background: var(--bg-surface-alt);
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-shrink: 0;
  position: sticky;
  bottom: 0;
  z-index: 10;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.empty-state-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  opacity: 0.6;
}


/* Kotak Khusus Pengingat Sholat: Tepat di Atas Jadwal Sholat & Ibadah Harian */
.prayer-reminder-banner {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(5, 150, 105, 0.14) 100%);
  border: 1.5px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-lg);
  padding: 0.75rem 1.15rem;
  margin-bottom: 0.9rem;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.08);
  display: flex;
  align-items: center;
  transition: all 0.25s ease;
}

[data-theme="dark"] .prayer-reminder-banner {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(16, 185, 129, 0.12) 100%);
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25), 0 0 10px rgba(16, 185, 129, 0.12);
}

.prayer-reminder-body {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}

.prayer-reminder-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #10b981;
}

[data-theme="dark"] .prayer-reminder-icon {
  color: #34d399;
  filter: drop-shadow(0 0 5px rgba(52, 211, 153, 0.4));
}

.prayer-reminder-text-wrap {
  flex: 1;
}

.prayer-reminder-text {
  font-size: 0.875rem;
  font-weight: 700;
  color: #047857;
  line-height: 1.45;
  margin: 0;
  letter-spacing: -0.01em;
}

[data-theme="dark"] .prayer-reminder-text {
  color: #34d399;
}

/* === SECTION 1: HITUNG MUNDUR SHOLAT BERIKUTNYA & LOKASI (PERSIS GAMBAR 1) === */
.prayer-countdown-card,
.prayer-card-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.35rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  position: relative;
  overflow: hidden;
  border-top: 4px solid #10b981; /* Emerald green Islamic accent */
}

.prayer-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.prayer-title-group {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.prayer-icon-badge {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #059669, #10b981);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.25);
}

.prayer-heading-text h3 {
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.prayer-heading-text p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.prayer-location-selector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.city-select {
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.825rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  max-width: 260px;
}

.city-select:focus {
  border-color: #10b981;
}

/* === HERO HIGH-CONTRAST DIGITAL PRAYER COUNTDOWN CARD === */
.prayer-next-banner {
  background: linear-gradient(135deg, #064e3b 0%, #065f46 45%, #047857 100%);
  border: 2px solid #059669;
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 10px 25px -5px rgba(6, 78, 59, 0.35), 0 4px 10px -2px rgba(0, 0, 0, 0.1);
  color: #ffffff;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.prayer-next-banner::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.22) 0%, transparent 70%);
  pointer-events: none;
  border-radius: 50%;
}

/* Top Meta Row */
.prayer-hero-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 0.75rem;
}

.prayer-hero-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(52, 211, 153, 0.45);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
}

.live-pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: #34d399;
  box-shadow: 0 0 10px #34d399;
  animation: pulseNeon 1.5s infinite;
}

@keyframes pulseNeon {
  0% { transform: scale(0.9); opacity: 0.8; box-shadow: 0 0 4px #34d399; }
  50% { transform: scale(1.25); opacity: 1; box-shadow: 0 0 12px #34d399; }
  100% { transform: scale(0.9); opacity: 0.8; box-shadow: 0 0 4px #34d399; }
}

.live-badge-text {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #a7f3d0;
  text-transform: uppercase;
}

.prayer-hero-prevoice-status {
  font-size: 0.8rem;
  font-weight: 600;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(0, 0, 0, 0.25);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Main Body Showcase Grid */
.prayer-hero-main-row {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  align-items: center;
  gap: 1.25rem;
}

@media (max-width: 768px) {
  .prayer-hero-main-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.prayer-hero-prayer-box {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.prayer-hero-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #93c5fd;
  text-transform: uppercase;
}

.prayer-hero-name-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.prayer-hero-name {
  font-size: 1.75rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  line-height: 1.1;
}

.prayer-type-pill {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
  background: #10b981;
  color: #ffffff;
  letter-spacing: 0.04em;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.prayer-hero-time-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1.5px solid rgba(251, 191, 36, 0.6);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-md);
  width: fit-content;
  margin-top: 0.25rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.prayer-hero-time {
  font-family: monospace;
  font-size: 1.35rem;
  font-weight: 800;
  color: #fde047;
  letter-spacing: 0.04em;
}

.time-zone-label {
  font-size: 0.75rem;
  font-weight: 800;
  color: #cbd5e1;
}

/* Digital Countdown Box */
.prayer-hero-countdown-box {
  background: rgba(0, 0, 0, 0.38);
  border: 1.5px solid rgba(16, 185, 129, 0.4);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.15rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.35);
}

.prayer-countdown-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #a7f3d0;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}

.digital-countdown-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.digital-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #0f172a;
  border: 1.5px solid #334155;
  border-radius: 8px;
  padding: 0.35rem 0.65rem;
  min-width: 58px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.digital-number {
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.6rem;
  font-weight: 900;
  color: #fbbf24;
  line-height: 1;
  text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

.digital-unit {
  font-size: 0.6rem;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 0.06em;
  margin-top: 0.2rem;
}

.digital-separator {
  font-family: monospace;
  font-size: 1.6rem;
  font-weight: 900;
  color: #fbbf24;
  margin-bottom: 0.6rem;
  animation: blinkColon 1s step-start infinite;
}

@keyframes blinkColon {
  50% { opacity: 0.3; }
}

.next-prayer-countdown-summary {
  font-size: 0.8rem;
  color: #e2e8f0;
  margin-top: 0.4rem;
  font-weight: 600;
}

/* Footer & Quick Voice Test Bar */
.prayer-hero-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.65rem;
  background: rgba(0, 0, 0, 0.28);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.prayer-voice-note {
  font-size: 0.8rem;
  color: #d1fae5;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex: 1;
}

.prayer-voice-note b {
  color: #fbbf24;
}

.btn-test-voice-hero {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.45rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.btn-test-voice-hero:hover {
  background: linear-gradient(135deg, #34d399, #10b981);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.4);
}

/* === DARK MODE ADJUSTMENTS FOR ULTRA CLARITY === */
[data-theme="dark"] .prayer-next-banner {
  background: linear-gradient(135deg, #022018 0%, #06392c 50%, #052e24 100%);
  border-color: #10b981;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 15px rgba(16, 185, 129, 0.25);
}

[data-theme="dark"] .digital-block {
  background: #090e17;
  border-color: #1e293b;
}

[data-theme="dark"] .digital-number {
  color: #fbbf24;
  text-shadow: 0 0 12px rgba(251, 191, 36, 0.6);
}

[data-theme="dark"] .prayer-hero-time {
  color: #fde047;
}

[data-theme="dark"] #preprayerVoiceCard {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(5, 150, 105, 0.22)) !important;
  border-color: rgba(52, 211, 153, 0.45) !important;
}

/* === SECTION 2: JADWAL SHOLAT LISTICLE LANDSCAPE (HEMAT TEMPAT & USER FRIENDLY) === */
.prayer-listicle-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid #10b981;
}

.prayer-listicle-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

.prayer-bell-info-badge {
  font-size: 0.775rem;
  font-weight: 700;
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.prayer-listicle-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (max-width: 800px) {
  .prayer-listicle-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.listicle-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  padding: 0 0.25rem;
}

.badge-auto-kemenag {
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-full);
}

.badge-sunnah-info {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.prayer-listicle-box {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.prayer-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.85rem;
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  cursor: pointer;
}

.prayer-list-row:hover {
  background: var(--bg-card);
  border-color: rgba(16, 185, 129, 0.4);
}

.prayer-list-row.active-next-row {
  background: rgba(16, 185, 129, 0.12);
  border: 1.5px solid #10b981;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.15);
}

.prayer-row-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
}

.prayer-row-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.badge-next-pill {
  font-size: 0.65rem;
  font-weight: 800;
  background: #10b981;
  color: white;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-full);
}

.prayer-row-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.prayer-row-time {
  font-family: monospace;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  min-width: 55px;
  text-align: right;
}

.active-next-row .prayer-row-time {
  color: #10b981;
}

.btn-prayer-bell {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 700;
  cursor: pointer;
  border: 1.5px solid;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-prayer-bell.active {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border-color: #10b981;
}

.btn-prayer-bell.active:hover {
  background: #10b981;
  color: white;
}

.btn-prayer-bell.muted {
  background: var(--bg-surface);
  color: var(--text-muted);
  border-color: var(--border-color);
}

.btn-prayer-bell.muted:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border-color: #ef4444;
}

.pill-terbit {
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(245, 158, 11, 0.15);
  color: #d97706;
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-full);
}

.sunnah-row-main {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.sunnah-range-pill {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Wajib Prayer Grid */
.prayer-wajib-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.75rem;
}

@media (max-width: 900px) {
  .prayer-wajib-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 550px) {
  .prayer-wajib-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.prayer-time-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.25rem;
  transition: all 0.2s ease;
  position: relative;
}

.prayer-time-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.prayer-time-card.active-next {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.08);
  box-shadow: 0 0 0 1px #10b981, 0 4px 12px rgba(16, 185, 129, 0.15);
}

.prayer-time-card.syuruq {
  opacity: 0.85;
  background: var(--bg-surface-alt);
}

.prayer-card-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.prayer-card-time {
  font-size: 1.15rem;
  font-weight: 800;
  font-family: monospace;
  color: var(--text-primary);
}

.prayer-time-card.active-next .prayer-card-time {
  color: #10b981;
}

.prayer-card-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.badge-wajib {
  background: #dcfce7;
  color: #15803d;
}

.badge-syuruq {
  background: #fef3c7;
  color: #b45309;
}

[data-theme="dark"] .badge-wajib {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
}

[data-theme="dark"] .badge-syuruq {
  background: rgba(245, 158, 11, 0.2);
  color: #fde68a;
}

/* Sunnah Muakkad Grid */
.prayer-sunnah-container {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  border-top: 1px solid var(--border-color);
  padding-top: 0.9rem;
}

.sunnah-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.prayer-sunnah-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

@media (max-width: 900px) {
  .prayer-sunnah-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 550px) {
  .prayer-sunnah-grid {
    grid-template-columns: 1fr;
  }
}

.sunnah-card {
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: all 0.2s;
}

.sunnah-card:hover {
  border-color: #10b981;
}

.sunnah-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sunnah-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.sunnah-time-range {
  font-size: 0.75rem;
  font-family: monospace;
  font-weight: 600;
  color: #059669;
}

[data-theme="dark"] .sunnah-time-range {
  color: #34d399;
}

.sunnah-desc {
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.btn-add-sunnah {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  align-self: flex-start;
  margin-top: 0.25rem;
  transition: all 0.2s;
}

.btn-add-sunnah:hover {
  background: #10b981;
  color: white;
  border-color: #10b981;
}

/* Prayer Actions Bar */
.prayer-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-color);
}

.btn-sync-prayer {
  background: linear-gradient(135deg, #059669, #10b981);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.825rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.25);
  transition: all 0.2s;
}

.btn-sync-prayer:hover {
  background: linear-gradient(135deg, #047857, #059669);
  transform: translateY(-1px);
}


/* === AUTOMATIC DAILY CAPTIONS (TAUSIYAH, DO'A, MOTIVASI) === */
.daily-captions-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

/* 1. Fixed Top Caption */
.caption-fixed-card {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(5, 150, 105, 0.22));
  border: 1.5px solid #10b981;
  border-radius: var(--radius-md);
  padding: 0.75rem 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.15);
}

.caption-fixed-icon {
  font-size: 1.35rem;
  flex-shrink: 0;
}

.caption-fixed-text {
  font-size: 0.875rem;
  font-weight: 700;
  color: #047857;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

[data-theme="dark"] .caption-fixed-text {
  color: #34d399;
}

/* 1b. Ayat Al-Qur'an & Hadits Shahih Card (Gold / Amber / Islamic Emerald) */
.caption-ayat-card {
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.09), rgba(16, 185, 129, 0.09));
  border: 1px solid rgba(217, 119, 6, 0.35);
  border-left: 4px solid #d97706;
  border-radius: var(--radius-md);
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: all 0.2s;
}

.header-amber {
  color: #b45309;
}

[data-theme="dark"] .header-amber {
  color: #fbbf24;
}

.caption-source-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  background: rgba(217, 119, 6, 0.15);
  color: #b45309;
}

[data-theme="dark"] .caption-source-badge {
  background: rgba(217, 119, 6, 0.25);
  color: #fcd34d;
}

.caption-ayat-arabic {
  font-family: 'Amiri', 'Scheherazade New', 'Traditional Arabic', serif;
  font-size: 1.25rem;
  line-height: 2.1;
  direction: rtl;
  text-align: right;
  color: var(--text-primary);
  font-weight: 700;
  padding: 0.4rem 0.2rem;
}

[data-theme="dark"] .caption-ayat-arabic {
  color: #fde68a;
}

.caption-ayat-terjemahan {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-secondary);
  font-style: italic;
  padding: 0.15rem 0;
}

.caption-hikmah-box {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 0.65rem 0.85rem;
  font-size: 0.825rem;
  line-height: 1.45;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: 0.4rem;
  transition: all 0.2s ease;
}

.caption-hikmah-title {
  font-weight: 800;
  font-size: 0.775rem;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.caption-hikmah-text {
  font-size: 0.825rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

[data-theme="dark"] .caption-hikmah-text {
  color: #e2e8f0;
}

/* Kotak 1: Ayat Al-Qur'an (Emerald) */
.box-ayat-hikmah {
  background: rgba(16, 185, 129, 0.08);
  border-left: 3px solid #059669;
}
.box-ayat-hikmah .caption-hikmah-title {
  color: #059669;
}
[data-theme="dark"] .box-ayat-hikmah {
  background: rgba(6, 78, 59, 0.28);
  border-left-color: #34d399;
}
[data-theme="dark"] .box-ayat-hikmah .caption-hikmah-title {
  color: #34d399;
}

/* Kotak 2: Hadits Shahih (Sapphire Blue) */
.box-hadits-hikmah {
  background: rgba(14, 165, 233, 0.08);
  border-left: 3px solid #0284c7;
}
.box-hadits-hikmah .caption-hikmah-title {
  color: #0284c7;
}
[data-theme="dark"] .box-hadits-hikmah {
  background: rgba(12, 74, 110, 0.28);
  border-left-color: #38bdf8;
}
[data-theme="dark"] .box-hadits-hikmah .caption-hikmah-title {
  color: #38bdf8;
}

/* Kotak 3: Tausiyah & Amalan (Champagne Gold) */
.box-tausiyah-hikmah {
  background: rgba(245, 158, 11, 0.08);
  border-left: 3px solid #d97706;
}
.box-tausiyah-hikmah .caption-hikmah-title {
  color: #d97706;
}
[data-theme="dark"] .box-tausiyah-hikmah {
  background: rgba(180, 83, 9, 0.22);
  border-left-color: #fbbf24;
}
[data-theme="dark"] .box-tausiyah-hikmah .caption-hikmah-title {
  color: #fbbf24;
}

/* Kotak 4: Motivasi (Platinum Teal) */
.box-motivasi-hikmah {
  background: rgba(20, 184, 166, 0.08);
  border-left: 3px solid #0d9488;
}
.box-motivasi-hikmah .caption-hikmah-title {
  color: #0d9488;
}
[data-theme="dark"] .box-motivasi-hikmah {
  background: rgba(19, 78, 74, 0.28);
  border-left-color: #2dd4bf;
}
[data-theme="dark"] .box-motivasi-hikmah .caption-hikmah-title {
  color: #2dd4bf;
}

/* Card Mode Suara & Mode Senyap (Mute) */
.sound-mode-card {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.16));
  border: 1.5px solid #10b981;
  border-radius: var(--radius-md);
  padding: 0.95rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: all 0.25s ease;
}

.sound-mode-card.is-silent {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.09), rgba(220, 38, 38, 0.15));
  border-color: #ef4444;
}

.sound-mode-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.btn-toggle-silent {
  width: 100%;
  padding: 0.75rem 1rem;
  font-weight: 800;
  font-size: 0.925rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: 1.5px solid #ef4444;
  background: var(--bg-surface);
  color: #dc2626;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  transition: all 0.2s ease;
}

.btn-toggle-silent:hover, .btn-toggle-silent:active {
  background: #dc2626;
  color: #ffffff;
}

.sound-mode-card.is-silent .btn-toggle-silent {
  border-color: #10b981;
  color: #047857;
  background: var(--bg-surface);
}

.sound-mode-card.is-silent .btn-toggle-silent:hover {
  background: #10b981;
  color: #ffffff;
}

.audio-guarantee-note {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  line-height: 1.4;
  margin-top: 0.25rem;
}

[data-theme="dark"] .audio-guarantee-note {
  background: rgba(16, 185, 129, 0.15);
  color: #d1fae5;
  border-color: rgba(52, 211, 153, 0.35);
}

/* Floating Active Adzan Banner (Banner Melayang Saat Adzan Berkumandang) */
.active-adzan-banner {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2rem);
  max-width: 580px;
  background: linear-gradient(135deg, #065f46, #047857);
  color: #ffffff;
  border: 2px solid #34d399;
  border-radius: var(--radius-lg);
  padding: 0.85rem 1.25rem;
  box-shadow: 0 12px 28px -4px rgba(0, 0, 0, 0.45), 0 6px 12px -2px rgba(0, 0, 0, 0.25);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  animation: slide-in-top 0.3s ease-out;
}

@keyframes slide-in-top {
  from { transform: translate(-50%, -100%); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}

.adzan-banner-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.adzan-pulse-icon {
  font-size: 1.85rem;
  animation: pulse-ring 1.5s infinite;
  display: inline-block;
}

@keyframes pulse-ring {
  0% { transform: scale(1); }
  50% { transform: scale(1.18); }
  100% { transform: scale(1); }
}

.adzan-banner-title {
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

.adzan-banner-sub {
  font-size: 0.8rem;
  opacity: 0.92;
}

.btn-stop-adzan {
  background: #ffffff;
  color: #b91c1c;
  border: 2px solid #f87171;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.btn-stop-adzan:hover, .btn-stop-adzan:active {
  background: #fee2e2;
  transform: scale(1.03);
}

/* UI Pengaturan Nada & Suara Responsive */
.sound-tone-selector {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  width: 100%;
}

.sound-tone-selector .form-select {
  width: 100%;
  font-size: 1rem;
  padding: 0.75rem 0.85rem;
  line-height: 1.4;
  white-space: normal;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-primary);
  cursor: pointer;
}

.btn-test-sound {
  width: 100%;
  justify-content: center;
  padding: 0.75rem;
  font-weight: 700;
  font-size: 0.95rem;
  background: var(--bg-surface-alt);
  border: 1.5px solid var(--accent-primary);
  color: var(--accent-primary);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-test-sound:hover, .btn-test-sound:active {
  background: var(--accent-primary);
  color: #ffffff;
}

/* Save Status Banner */
.save-status-banner {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(5, 150, 105, 0.18));
  border: 1.5px solid #10b981;
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 0.5rem;
}

/* 2. Tausiyah & Do'a Card (Blue/Cyan/Indigo palette) */
.caption-tausiyah-card {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.08), rgba(99, 102, 241, 0.08));
  border: 1px solid rgba(14, 165, 233, 0.35);
  border-left: 4px solid #0284c7;
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: all 0.2s;
}

.caption-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.caption-header-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.header-blue {
  color: #0284c7;
}

[data-theme="dark"] .header-blue {
  color: #38bdf8;
}

.caption-quote-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: #0369a1;
  line-height: 1.45;
  font-style: italic;
}

[data-theme="dark"] .caption-quote-text {
  color: #7dd3fc;
}

.caption-doa-box {
  background: var(--bg-card);
  border: 1px dashed rgba(14, 165, 233, 0.3);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.caption-doa-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: #4338ca;
}

[data-theme="dark"] .caption-doa-title {
  color: #a5b4fc;
}

.caption-doa-arabic {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  font-family: inherit;
}

.caption-doa-arti {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.35;
}

.caption-amalan-chip {
  background: rgba(14, 165, 233, 0.12);
  color: #0369a1;
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  line-height: 1.3;
}

[data-theme="dark"] .caption-amalan-chip {
  background: rgba(14, 165, 233, 0.2);
  color: #bae6fd;
}

/* 3. Motivasi Harian & Penyemangat (Amber/Rose/Sunset palette) */
.caption-motivasi-card {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(244, 63, 94, 0.08));
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-left: 4px solid #f59e0b;
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  transition: all 0.2s;
}

.header-amber {
  color: #d97706;
}

[data-theme="dark"] .header-amber {
  color: #fbbf24;
}

.caption-motivasi-quote {
  font-size: 0.875rem;
  font-weight: 700;
  color: #b45309;
  line-height: 1.4;
}

[data-theme="dark"] .caption-motivasi-quote {
  color: #fcd34d;
}

.caption-penyemangat-text {
  font-size: 0.8rem;
  color: #be123c;
  line-height: 1.45;
  background: rgba(244, 63, 94, 0.08);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.6rem;
}

[data-theme="dark"] .caption-penyemangat-text {
  color: #fda4af;
  background: rgba(244, 63, 94, 0.15);
}

/* Caption Action Bar */
.caption-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.2rem 0;
}

.btn-caption-tool {
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.725rem;
  font-weight: 600;
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: all 0.2s;
}

.btn-caption-tool:hover {
  background: var(--accent-light);
  color: var(--accent-primary);
  border-color: var(--accent-primary);
}


/* === PENGATUR UKURAN TEKS BERTAHAP (A- / A+) === */
.zoom-controls-wrapper {
  display: flex;
  align-items: center;
  background: var(--bg-surface-alt);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2px 4px;
  gap: 2px;
}

.btn-zoom {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-weight: 800;
  font-size: 0.95rem;
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  min-width: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.btn-zoom:hover {
  background: var(--accent-light);
  color: var(--accent-primary);
}

.btn-zoom:active {
  transform: scale(0.92);
}

.zoom-badge {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent-primary);
  min-width: 42px;
  text-align: center;
  user-select: none;
}

/* === MODE RAMAH MATA / TEKS BESAR (AKSESIBILITAS LANSIA) === */
body.large-text {
  font-size: 18px;
  line-height: 1.6;
}

body.large-text .brand-title {
  font-size: 1.5rem;
}

body.large-text .brand-tagline,
body.large-text .overview-subtitle {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
}

body.large-text .schedule-title,
body.large-text .task-label,
body.large-text .sunnah-name {
  font-size: 1.15rem;
  font-weight: 700;
}

body.large-text .schedule-time-badge,
body.large-text .prayer-card-time {
  font-size: 1.25rem;
  font-weight: 800;
}

body.large-text .input-text,
body.large-text .form-select,
body.large-text .notes-area {
  font-size: 1.1rem;
  padding: 0.85rem 1rem;
}

body.large-text .btn-primary,
body.large-text .btn-secondary,
body.large-text .btn-sync-prayer {
  font-size: 1rem;
  padding: 0.65rem 1.1rem;
}

body.large-text .custom-checkbox {
  width: 26px;
  height: 26px;
  font-size: 1.1rem;
}

body.large-text .habit-streak-btn {
  font-size: 0.95rem;
  padding: 0.25rem 0.65rem;
}

body.large-text .caption-quote-text,
body.large-text .caption-motivasi-quote,
body.large-text .caption-ayat-terjemahan {
  font-size: 1.05rem;
}

body.large-text .caption-ayat-arabic {
  font-size: 1.45rem;
}

body.large-text .caption-doa-arti,
body.large-text .caption-penyemangat-text,
body.large-text .caption-hikmah-box {
  font-size: 0.95rem;
}

/* Tombol Pengurang Streak (-) */
.btn-dec-streak {
  font-weight: 800;
  font-size: 0.85rem;
  padding: 0.2rem 0.45rem;
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-dec-streak:hover {
  background: var(--danger);
  color: white;
  border-color: var(--danger);
}

/* === PENINGKATAN TAMPILAN MOBILE (HP) UMUM === */
@media (max-width: 768px) {
  body {
    font-size: 16px;
  }

  .app-header {
    padding: 0.75rem 1rem;
  }

  .header-container {
    gap: 0.75rem;
  }

  .center-nav {
    width: 100%;
    justify-content: space-between;
    padding: 0.4rem 0.75rem;
  }

  .brand-title {
    font-size: 1.2rem;
  }

  .brand-tagline {
    font-size: 0.85rem;
    font-weight: 600;
  }

  .overview-date-title {
    font-size: 1.25rem;
  }

  .overview-subtitle {
    font-size: 0.9rem;
    font-weight: 600;
  }

  .custom-checkbox {
    width: 24px;
    height: 24px;
  }

  .input-text,
  .form-select,
  .notes-area {
    font-size: 16px !important; /* Mencegah auto-zoom iPhone */
    padding: 0.75rem;
  }

  .schedule-title,
  .task-label {
    font-size: 1rem;
    font-weight: 600;
  }

  .schedule-time-badge {
    font-size: 0.9rem;
  }

  .btn-primary,
  .btn-secondary {
    min-height: 42px;
    font-size: 0.95rem;
  }

  /* === REORDER URUTAN TAMPILAN KHUSUS LAYAR HP (MOBILE VIEWPORT) === */
  /* Urutan di Layar HP Sesuai Permintaan User:
     1. App Header: Brand (Judul Rencana Harianku & Logo MTH)
     2. Banner Ka'bah HD (Jernih tanpa halangan)
     3. Doa Penyemangat (Di luar gambar banner)
     4. Dua Baris Thumbnail (Pilihan Hari s/d Mode Gelap/Terang)
     5. Daily Overview Card: Tanggal Masehi, Kalender Hijriyah & Progres
     6. Hitung Mundur Sholat Berikutnya + Lokasi (#prayerCountdownCard)
     7. Planner Grid (#plannerGrid):
        - 1. Fokus & To-Do (#colFocusTodo)
        - 2. Checklist Kebiasaan Rutin (#colHabitRoutine)
        - 3. Checklist Sholat Hari Ini (#colChecklistSholat)
     8. Jadwal Sholat & Ibadah Harian - Listicle Landscape Hemat Ruang (#prayerListicleCard)
     9. Catatan, Tausiyah & Motivasi Harian (.landscape-inspiration-section)
     10. Pengaturan Suara & Alarm s/d 100% Privat & Aman (.app-footer)
  */
  .dashboard-container {
    display: flex !important;
    flex-direction: column !important;
    padding: 0 0.75rem 3rem 0.75rem !important;
    margin: 0.75rem auto !important;
  }

  /* 1. Banner Ka'bah HD */
  .app-hero-banner {
    order: 1 !important;
    height: 185px !important;
    margin-bottom: 0.75rem !important;
  }

  /* 2. Doa Penyemangat di Luar Gambar */
  .prayer-motivation-banner {
    order: 2 !important;
    margin-bottom: 0.85rem !important;
  }

  /* 3. Dua Baris Thumbnail Kontrol */
  .quick-controls-card {
    order: 3 !important;
    margin-bottom: 1rem !important;
  }

  /* 4. Daily Overview Card */
  .daily-overview-card {
    order: 4 !important;
    margin-bottom: 0.85rem !important;
  }

  /* 5. Kotak Khusus Pengingat Sholat: Tepat di Atas Jadwal Sholat */
  .prayer-reminder-banner {
    order: 5 !important;
    margin-bottom: 0.85rem !important;
  }

  /* 6. Hitung Mundur Sholat Berikutnya & Lokasi */
  #prayerCountdownCard,
  .prayer-countdown-card {
    order: 6 !important;
    margin-bottom: 1.25rem !important;
  }

  /* 7. Planner Grid (Fokus & To-Do, Rutinitas, Checklist Sholat) */
  .planner-grid {
    order: 7 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 1.25rem !important;
    margin-bottom: 1.25rem !important;
  }

  /* - Fokus & To-Do */
  #colFocusTodo {
    order: 1 !important;
  }

  /* - Checklist Kebiasaan Rutin */
  #colHabitRoutine {
    order: 2 !important;
  }

  /* 8. Jadwal Sholat & Ibadah Harian (Listicle Landscape Hemat Ruang) */
  #prayerListicleCard,
  .prayer-listicle-card {
    order: 8 !important;
    margin-bottom: 1.25rem !important;
  }

  /* 9. Catatan, Tausiyah & Motivasi Harian */
  .landscape-inspiration-section {
    order: 9 !important;
    margin-top: 0 !important;
    margin-bottom: 1.5rem !important;
  }

  /* 10. Pengaturan Suara & Alarm s/d 100% Privat & Aman (Footer) */
  .app-footer {
    order: 10 !important;
    margin-top: 1rem !important;
    margin-bottom: 2rem !important;
  }

  /* Modals Optimization on Mobile Devices */
  .modal-overlay {
    padding: 0.75rem 0.65rem calc(1.5rem + env(safe-area-inset-bottom, 0px)) 0.65rem !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  .modal-box {
    max-height: calc(100dvh - 3.5rem - env(safe-area-inset-bottom, 0px)) !important;
    max-height: calc(100vh - 3.5rem) !important;
    border-radius: var(--radius-lg) !important;
    width: 100% !important;
    margin: 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  .modal-header {
    flex-shrink: 0 !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 30 !important;
    background: var(--bg-surface) !important;
    padding: 0.75rem 0.9rem !important;
  }

  .modal-header h3 {
    font-size: 0.95rem !important;
  }

  .modal-header .action-btn {
    min-width: 44px !important;
    min-height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    z-index: 40 !important;
    touch-action: manipulation !important;
  }

  .modal-body {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain !important;
    touch-action: pan-y !important;
    padding: 0.75rem 0.9rem !important;
    gap: 0.75rem !important;
  }

  .modal-footer {
    flex-shrink: 0 !important;
    position: sticky !important;
    bottom: 0 !important;
    z-index: 30 !important;
    background: var(--bg-surface-alt) !important;
    padding: 0.75rem 0.9rem calc(0.85rem + env(safe-area-inset-bottom, 0px)) 0.9rem !important;
    display: flex !important;
    gap: 0.5rem !important;
    border-top: 1px solid var(--border-color) !important;
    box-sizing: border-box !important;
  }

  .modal-footer button {
    flex: 1 !important;
    justify-content: center !important;
    padding: 0.75rem 0.75rem !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    min-height: 48px !important;
    touch-action: manipulation !important;
    border-radius: var(--radius-md) !important;
    box-sizing: border-box !important;
  }
}

/* ==========================================================================
   LANDSCAPE INSPIRATION SECTION (Catatan, Tausiyah & Motivasi 3 Kotak)
   ========================================================================== */
.landscape-inspiration-section {
  margin-top: 2rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
}

.landscape-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.25rem;
}

.landscape-title-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.landscape-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.landscape-inspiration-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}

@media (max-width: 992px) {
  .landscape-inspiration-grid {
    grid-template-columns: 1fr;
  }
}

/* 3 Kotak Berwarna Berbeda & Elegan */
.inspiration-box {
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  border: 1px solid;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow-sm);
}

.inspiration-box:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .box-header {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.box-header-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.95rem;
  font-weight: 800;
}

/* Kotak 1: Ayat Al-Qur'an (Emerald Royal Theme) */
.box-ayat {
  background: linear-gradient(150deg, #f0fdf4 0%, #ffffff 100%);
  border-color: rgba(16, 185, 129, 0.45);
}

[data-theme="dark"] .box-ayat {
  background: linear-gradient(150deg, rgba(6, 78, 59, 0.28) 0%, rgba(15, 23, 42, 0.75) 100%);
  border-color: rgba(52, 211, 153, 0.45);
}

/* Kotak 2: Hadits Shahih Pilihan (Deep Ocean Sapphire Theme) */
.box-hadits {
  background: linear-gradient(150deg, #f0f9ff 0%, #ffffff 100%);
  border-color: rgba(14, 165, 233, 0.45);
}

[data-theme="dark"] .box-hadits {
  background: linear-gradient(150deg, rgba(12, 74, 110, 0.28) 0%, rgba(15, 23, 42, 0.75) 100%);
  border-color: rgba(56, 189, 248, 0.45);
}

/* Kotak 3: Tausiyah, Do'a & Amalan (Imperial Champagne Gold Theme - Cerah & Berwibawa) */
.box-tausiyah {
  background: linear-gradient(150deg, #fffbeb 0%, #ffffff 100%);
  border-color: rgba(245, 158, 11, 0.45);
}

[data-theme="dark"] .box-tausiyah {
  background: linear-gradient(150deg, rgba(180, 83, 9, 0.22) 0%, rgba(15, 23, 42, 0.75) 100%);
  border-color: rgba(251, 191, 36, 0.45);
}

/* Kotak 4: Motivasi & Catatan Pribadi (Marine Platinum Teal Theme - Elegan & Segar, Bebas Ungu) */
.box-motivasi {
  background: linear-gradient(150deg, #f0fdfa 0%, #ffffff 100%);
  border-color: rgba(20, 184, 166, 0.45);
}

[data-theme="dark"] .box-motivasi {
  background: linear-gradient(150deg, rgba(19, 78, 74, 0.28) 0%, rgba(15, 23, 42, 0.75) 100%);
  border-color: rgba(45, 212, 191, 0.45);
}

/* Textarea Catatan Pribadi di Dalam Kotak Landscape */
.notes-heading-highlight {
  font-size: 0.975rem;
  font-weight: 800;
  color: #047857;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

[data-theme="dark"] .notes-heading-highlight {
  color: #2dd4bf;
  text-shadow: 0 0 10px rgba(45, 212, 191, 0.4);
}

.notes-area-landscape {
  width: 100%;
  min-height: 105px;
  max-height: 220px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--text-primary);
  resize: vertical;
  line-height: 1.5;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.notes-area-landscape:focus {
  outline: none;
  border-color: #0d9488;
  box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.25);
}

/* ==========================================================================
   PRAYER ALARM CONTROLS & SUNNAH CARDS
   ========================================================================== */
.prayer-alarm-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid;
  transition: all 0.2s;
  margin-top: 0.35rem;
  width: 100%;
}

.prayer-alarm-pill.active {
  background: rgba(16, 185, 129, 0.15);
  border-color: #10b981;
  color: #10b981;
}

.prayer-alarm-pill.active:hover {
  background: #10b981;
  color: white;
}

.prayer-alarm-pill.muted {
  background: var(--bg-surface-alt);
  border-color: var(--border-color);
  color: var(--text-muted);
  opacity: 0.75;
}

.prayer-alarm-pill.muted:hover {
  border-color: #ef4444;
  color: #ef4444;
  opacity: 1;
}

/* Sunnah Alarm Row */
.sunnah-alarm-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.4rem;
  padding-top: 0.4rem;
  border-top: 1px dashed var(--border-color);
}

.btn-sunnah-alarm {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.725rem;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-sunnah-alarm:hover {
  border-color: #10b981;
  color: #10b981;
}

.btn-sunnah-alarm.active {
  border-color: #10b981;
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
}

.btn-sunnah-alarm.muted {
  border-color: var(--border-color);
  color: var(--text-muted);
}

/* Alarm Toggle Group (Modal Sholat Gambar 3) */
.alarm-toggle-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

@media (max-width: 500px) {
  .alarm-toggle-group {
    grid-template-columns: 1fr 1fr; /* Pertahankan 2 kolom agar hemat tempat di HP */
    gap: 0.45rem;
  }
}

.alarm-toggle-option {
  cursor: pointer;
  display: block;
}

.alarm-toggle-option input[type="radio"] {
  display: none;
}

.alarm-toggle-card {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.65rem;
  background: var(--bg-surface-alt);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: all 0.2s;
}

.alarm-toggle-option input[type="radio"]:checked + .alarm-toggle-card {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.12);
}

.alarm-toggle-option:last-child input[type="radio"]:checked + .alarm-toggle-card {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

/* Preset Pills for Sunnah Prayers */
.preset-pill-container {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.preset-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  background: var(--bg-surface-alt);
  font-size: 0.775rem;
  font-weight: 700;
  font-family: monospace;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.preset-pill:hover,
.preset-pill.active {
  background: rgba(16, 185, 129, 0.15);
  border-color: #10b981;
  color: #047857;
}

[data-theme="dark"] .preset-pill:hover,
[data-theme="dark"] .preset-pill.active {
  background: rgba(16, 185, 129, 0.25);
  border-color: #34d399;
  color: #6ee7b7;
}

/* Checklist Sholat Row Alarm Toggle Pill */
.checklist-alarm-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  transition: all 0.2s;
}

.checklist-alarm-toggle.active {
  border-color: #10b981;
  color: #10b981;
}

.checklist-alarm-toggle.muted {
  border-color: var(--border-color);
  color: var(--text-muted);
}

/* Habit Icon Picker in Modal */
.habit-icon-picker {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.habit-icon-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  background: var(--bg-surface-alt);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.habit-icon-pill:hover {
  border-color: var(--accent-primary);
  transform: translateY(-1px);
}

.habit-icon-pill.active {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(99, 102, 241, 0.35);
}

/* ==========================================================================
   GRAND ISLAMIC HERO BANNER (100% Bersih, Tajam & Ka'bah Jelas)
   ========================================================================== */
.app-hero-banner {
  position: relative;
  width: 100%;
  height: 240px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 0.85rem;
  border: 1.5px solid rgba(212, 175, 55, 0.45);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.25), 0 0 15px rgba(212, 175, 55, 0.15);
  background: #090d16;
}

.hero-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 50%;
  display: block;
  transform: scale(1);
  transition: transform 0.6s ease;
  filter: brightness(1.02) contrast(1.04); /* Kecerahan dan kontras alami */
}

.app-hero-banner:hover .hero-banner-img {
  transform: scale(1.02);
}

.hero-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.4) 0%,
    transparent 35%,
    transparent 65%,
    rgba(0, 0, 0, 0.35) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  pointer-events: none;
}

/* Badge Thumbnail BISMILLAH & Tombol Ganti Foto Minimalis */
.brand-badge-personal {
  display: inline-block;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  font-size: 0.62rem;
  padding: 0.15rem 0.55rem;
  border-radius: 9999px;
  vertical-align: middle;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-left: 0.4rem;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.4);
}

.hero-banner-badge-top {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  pointer-events: auto;
}

.hero-banner-badge-bottom {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  pointer-events: auto;
}

.btn-camera-float {
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
  transition: all 0.2s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* Memperluas area sentuhan jari (hit area 46px) agar sangat mudah diketuk */
.btn-camera-float::after {
  content: '';
  position: absolute;
  top: -8px;
  bottom: -8px;
  left: -8px;
  right: -8px;
  border-radius: 50%;
}

.btn-camera-float:hover {
  background: rgba(15, 23, 42, 0.92);
  border-color: #fbbf24;
  color: #fbbf24;
  transform: scale(1.08);
}

.btn-camera-float:active {
  transform: scale(0.92);
}

.btn-camera-float .camera-icon {
  font-size: 0.85rem;
  line-height: 1;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6));
}

.banner-tips-box {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
}

.banner-tips-text {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-primary);
  margin: 0;
}

.hero-banner-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fbbf24;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(251, 191, 36, 0.45);
  padding: 0.22rem 0.65rem;
  border-radius: 9999px;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45), 0 0 10px rgba(251, 191, 36, 0.25);
  backdrop-filter: blur(4px);
}

.hero-badge-sparkle {
  font-size: 0.75rem;
}

@media (max-width: 640px) {
  .app-hero-banner {
    height: 190px;
    margin-bottom: 0.75rem;
  }
  .hero-banner-overlay {
    padding: 0.75rem 0.85rem;
  }
  .hero-banner-badge {
    font-size: 0.58rem;
    padding: 0.18rem 0.5rem;
  }
  .btn-camera-float {
    width: 27px;
    height: 27px;
  }
  .btn-camera-float .camera-icon {
    font-size: 0.76rem;
  }
  .btn-camera-float::after {
    top: -9px;
    bottom: -9px;
    left: -9px;
    right: -9px;
  }
}

/* ==========================================================================
   DOA PENYEMANGAT CARD (Di Luar Gambar Banner)
   ========================================================================== */
.prayer-motivation-banner {
  position: relative;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(245, 158, 11, 0.09) 100%);
  border: 1.5px solid rgba(212, 175, 55, 0.45);
  border-radius: var(--radius-lg);
  padding: 0.95rem 1.25rem;
  margin-bottom: 0.85rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05), 0 0 10px rgba(212, 175, 55, 0.1);
  display: flex;
  align-items: center;
  overflow: hidden;
}

[data-theme="dark"] .prayer-motivation-banner {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(30, 41, 59, 0.85) 100%);
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25), 0 0 12px rgba(212, 175, 55, 0.15);
}

.prayer-motivation-body {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
}

.prayer-icon-star {
  font-size: 1.4rem;
  color: #fbbf24;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.5));
}

.prayer-text-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.prayer-text-arabic {
  font-size: 0.925rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.5;
  font-style: italic;
  letter-spacing: 0.01em;
}

[data-theme="dark"] .prayer-text-arabic {
  color: #f1f5f9;
}

.prayer-text-amin {
  font-size: 0.775rem;
  font-weight: 800;
  color: #d97706;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

[data-theme="dark"] .prayer-text-amin {
  color: #fbbf24;
}

@media (max-width: 640px) {
  .prayer-motivation-banner {
    padding: 0.8rem 0.95rem;
    margin-bottom: 0.75rem;
  }
  .prayer-text-arabic {
    font-size: 0.825rem;
    line-height: 1.4;
  }
  .prayer-text-amin {
    font-size: 0.72rem;
  }
}

/* ==========================================================================
   QUICK CONTROLS CARD (2 Baris Thumbnail di Bawah Doa)
   ========================================================================== */
.quick-controls-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 0.85rem 1.15rem;
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: var(--shadow-sm);
}

.controls-row-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  background: var(--bg-surface-alt);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
}

.btn-today-badge {
  background: var(--bg-surface) !important;
  font-weight: 700 !important;
}

.controls-row-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Master Mute / Silent Button (Saklar Darurat Masjid, Rapat & Ujian) */
.btn-sound-master {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  border: 1.5px solid #10b981;
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-sound-master:hover {
  background: #10b981;
  color: #ffffff;
}

.btn-sound-master.is-silent {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.18);
  color: #ef4444;
}

.btn-sound-master.is-silent:hover {
  background: #ef4444;
  color: #ffffff;
}

/* Satu-satunya Pintu Masuk Pengaturan Suara (Ikon Gerigi) */
.btn-sound-settings {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid var(--border-color);
  background: var(--bg-surface-alt);
  color: var(--text-primary);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-sound-settings:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

/* Tombol Masuk Mode Siaga Malam */
.btn-nightstand-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 700;
  cursor: pointer;
  border: 1.5px solid rgba(129, 140, 248, 0.4);
  background: rgba(30, 27, 75, 0.35);
  color: #c7d2fe;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-nightstand-trigger:hover {
  background: #4338ca;
  color: #ffffff;
  border-color: #818cf8;
  transform: translateY(-1px);
}

/* ==========================================================================
   MODE SIAGA MALAM (Pure Black AMOLED #000000 - Anti-Silau & Hemat Baterai)
   ========================================================================== */
.nightstand-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background-color: #000000 !important; /* Murni hitam pekat OLED (pixel mati 0% watt) */
  color: #ffffff;
  z-index: 9999;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 2.5rem 1.5rem calc(2rem + env(safe-area-inset-bottom, 0px)) 1.5rem;
  box-sizing: border-box;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  animation: fadeIn 0.4s ease-out;
}

.nightstand-overlay.open,
.nightstand-overlay.active {
  display: flex !important;
  pointer-events: auto !important;
}

.nightstand-overlay:not(.active):not(.open) {
  display: none !important;
  pointer-events: none !important;
}

.nightstand-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  max-width: 520px;
  text-align: center;
  transition: opacity 0.4s ease;
}

/* Saat mode Gelap Total aktif: layar 100% hitam pekat (0 Watt AMOLED, tanpa emisi cahaya sama sekali) */
.nightstand-content.is-blackout {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.nightstand-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.nightstand-badge {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  font-weight: 700;
  text-transform: uppercase;
  color: rgba(251, 191, 36, 0.45); /* Muted warm amber */
}

.nightstand-lock-status {
  font-size: 0.76rem;
  color: rgba(148, 163, 184, 0.4);
}

.nightstand-clock-wrap {
  display: flex;
  align-items: baseline;
  justify-content: center;
  margin: auto 0;
}

.nightstand-clock {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  font-size: 5rem;
  font-weight: 200;
  letter-spacing: -0.02em;
  color: rgba(251, 191, 36, 0.45); /* Sangat redup, nyaman untuk mata terlelap */
  line-height: 1;
}

.nightstand-seconds {
  font-size: 1.6rem;
  font-weight: 200;
  color: rgba(251, 191, 36, 0.28);
  margin-left: 0.35rem;
}

.nightstand-prayer-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
}

.nightstand-prayer-name {
  font-size: 1.15rem;
  font-weight: 600;
  color: rgba(52, 211, 153, 0.6); /* Soft muted emerald */
}

.nightstand-prayer-time {
  font-size: 1.75rem;
  font-weight: 300;
  color: rgba(248, 250, 252, 0.5);
}

.nightstand-countdown {
  font-size: 0.85rem;
  color: rgba(148, 163, 184, 0.45);
}

.nightstand-actions {
  display: flex;
  gap: 0.75rem;
  width: 100%;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-nightstand-opt {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(30, 41, 59, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(241, 245, 249, 0.65);
  padding: 0.65rem 1.15rem;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-nightstand-opt:hover {
  background: rgba(30, 41, 59, 0.75);
  color: #ffffff;
}

.btn-nightstand-exit {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(220, 38, 38, 0.25);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: rgba(252, 165, 165, 0.85);
  padding: 0.65rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-nightstand-exit:hover {
  background: rgba(220, 38, 38, 0.6);
  color: #ffffff;
}

.nightstand-hint {
  font-size: 0.72rem;
  color: rgba(148, 163, 184, 0.35);
  margin-top: 1rem;
  line-height: 1.45;
}

@media (max-width: 480px) {
  .nightstand-clock {
    font-size: 4rem;
  }
}

@media (max-width: 640px) {
  .quick-controls-card {
    padding: 0.75rem 0.85rem;
    gap: 0.65rem;
    margin-bottom: 1rem;
  }
  .controls-row-nav {
    justify-content: space-between;
    width: 100%;
    padding: 0.35rem 0.6rem;
  }
  .controls-row-actions {
    justify-content: center;
    width: 100%;
  }
}

/* ==========================================================================
   MODAL MINI HERO HEADER (Pilihan A: Ka'bah Siang 3 Menara)
   ========================================================================== */
.modal-hero-header {
  position: relative;
  width: 100%;
  height: 130px;
  overflow: hidden;
  flex-shrink: 0;
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
  background: #090d16;
}

.modal-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

.modal-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(9, 13, 22, 0.95) 0%,
    rgba(15, 23, 42, 0.5) 60%,
    rgba(9, 13, 22, 0.25) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0.85rem 1.15rem;
}

.modal-hero-badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #34d399;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.modal-hero-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff !important;
  margin: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.modal-hero-sub {
  font-size: 0.72rem;
  color: #cbd5e1;
  margin: 0.15rem 0 0 0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.modal-hero-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 5;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
}

.modal-hero-close:hover {
  background: rgba(239, 68, 68, 0.85);
  border-color: #ef4444;
  transform: scale(1.08);
}

/* ==========================================================================
   FOOTER MTH LUXURY SEAL & ACTIONS (Lega, Rapi & Elegan)
   ========================================================================== */
.app-footer {
  margin-top: 3rem;
  padding: 2.25rem 1rem 3.5rem;
  text-align: center;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.825rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.65rem; /* Jarak spasi lega dan nyaman antara semua komponen */
}

.footer-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-sound-btn {
  font-size: 0.875rem;
  padding: 0.65rem 1.35rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1.5px solid var(--accent-primary);
  color: var(--text-primary);
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
  cursor: pointer;
}

.footer-sound-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
  border-color: var(--accent-primary-hover);
}

/* Footer MTH Signature Edition (FinTrack Luxury Pill Card - Ultra Responsive) */
.footer-signature-pill {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 0.5rem 1.1rem;
  background: linear-gradient(135deg, rgba(10, 18, 38, 0.92) 0%, rgba(6, 11, 24, 0.98) 100%);
  border: 1px solid rgba(245, 158, 11, 0.38);
  border-radius: 9999px;
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  box-sizing: border-box;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-signature-pill:hover {
  border-color: rgba(245, 158, 11, 0.65);
  box-shadow: 0 0 35px rgba(245, 158, 11, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.footer-brand-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

.footer-brand-name-wrap {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.footer-brand-icon {
  font-size: 0.85rem;
  line-height: 1;
}

.footer-brand-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.footer-tagline {
  font-size: 0.6rem;
  color: #94a3b8;
  font-weight: 500;
  margin-top: 0.1rem;
  line-height: 1.25;
  white-space: normal;
  max-width: 100%;
}

.footer-divider-gold {
  height: 28px;
  width: 1px;
  background: linear-gradient(180deg, transparent 0%, rgba(245, 158, 11, 0.45) 50%, transparent 100%);
  flex-shrink: 0;
  margin: 0 0.2rem;
}

.footer-mth-side {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.footer-mth-emblem {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.4));
}

.footer-mth-text-wrap {
  display: flex;
  flex-direction: column;
}

.gold-signature-text {
  font-size: 0.65rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: linear-gradient(90deg, #fef08a 0%, #f59e0b 50%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
  margin: 0;
}

.footer-guarantee-badge {
  margin-top: 0.75rem;
  padding: 0 0.5rem;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-align: center;
}

.footer-guarantee-check {
  width: 15px;
  height: 15px;
  color: #34d399;
  flex-shrink: 0;
}

.footer-guarantee-text {
  font-size: 0.72rem;
  font-weight: 600;
  color: #34d399;
  line-height: 1.4;
  margin: 0;
}

.footer-guarantee-sub {
  opacity: 0.82;
  font-weight: 400;
}

/* Responsif Layar Kecil (Mobile Phone <= 380px) */
@media (max-width: 380px) {
  .footer-signature-pill {
    padding: 0.45rem 0.75rem;
    gap: 0.35rem;
  }
  .footer-brand-title {
    font-size: 0.75rem;
  }
  .footer-tagline {
    font-size: 0.55rem;
  }
  .footer-mth-emblem {
    width: 24px;
    height: 24px;
  }
  .gold-signature-text {
    font-size: 0.58rem;
    letter-spacing: 0.08em;
  }
}

/* Light mode overrides */
[data-theme="light"] .footer-signature-pill {
  background: linear-gradient(135deg, #ffffff 0%, #fef9c3 100%);
  border-color: rgba(217, 119, 6, 0.35);
  box-shadow: 0 4px 20px rgba(217, 119, 6, 0.12);
}

[data-theme="light"] .footer-brand-title {
  color: #0f172a;
}

[data-theme="light"] .footer-tagline {
  color: #64748b;
}

[data-theme="light"] .footer-guarantee-text {
  color: #059669;
}

/* === TOMBOL KATEGORI PILIHAN NADA ALARM KEGIATAN === */
.tone-category-switch {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
  width: 100%;
}

.tone-category-pill {
  flex: 1;
  padding: 0.6rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  user-select: none;
}

.tone-category-pill:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  border-color: #cbd5e1;
}

#btnCategoryIslamic.active {
  background: linear-gradient(135deg, #059669, #10b981) !important;
  color: #ffffff !important;
  border-color: #059669 !important;
  box-shadow: 0 3px 8px rgba(16, 185, 129, 0.35);
}

#btnCategoryClassic.active {
  background: linear-gradient(135deg, #4f46e5, #6366f1) !important;
  color: #ffffff !important;
  border-color: #4f46e5 !important;
  box-shadow: 0 3px 8px rgba(79, 70, 229, 0.35);
}

/* === CARD BANTUAN ALARM SAAT LAYAR HP MATI & IZIN NOTIFIKASI === */
.lockscreen-card {
  transition: all 0.25s ease;
}

.lockscreen-card:hover {
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15);
}

[data-theme="dark"] .tone-category-pill {
  background: #1e293b;
  color: #94a3b8;
  border-color: #334155;
}

[data-theme="dark"] .tone-category-pill:hover {
  background: #334155;
  color: #f1f5f9;
}

[data-theme="dark"] .lockscreen-card {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.16), rgba(99, 102, 241, 0.22)) !important;
  border-color: rgba(99, 102, 241, 0.45) !important;
}

[data-theme="dark"] #lockscreenCardTitle {
  color: #a5b4fc !important;
}

/* === TOMBOL FOOTER PANDUAN & KEAMANAN DATA === */
.footer-guide-action-wrap {
  margin-top: 0.85rem;
  padding: 0 0.5rem;
  display: flex;
  justify-content: center;
  width: 100%;
}

.btn-footer-guide {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.55rem 1rem;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 9999px;
  color: #059669;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.08);
  max-width: 440px;
  width: 100%;
}

.btn-footer-guide:hover {
  background: rgba(16, 185, 129, 0.16);
  border-color: #059669;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.15);
}

.btn-footer-guide .guide-btn-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.btn-footer-guide .guide-btn-label {
  flex: 1;
  text-align: left;
  line-height: 1.3;
}

.btn-footer-guide .guide-btn-arrow {
  font-size: 1.25rem;
  color: #10b981;
  font-weight: 700;
  line-height: 1;
}

[data-theme="dark"] .btn-footer-guide {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(52, 211, 153, 0.35);
  color: #34d399;
}

[data-theme="dark"] .btn-footer-guide:hover {
  background: rgba(16, 185, 129, 0.22);
  border-color: #34d399;
}

/* === MODAL PANDUAN & KEAMANAN DATA === */
.modal-guide-box {
  max-width: 620px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
}

.modal-guide-body {
  overflow-y: auto;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.guide-section-card {
  background: var(--bg-surface-alt, rgba(0,0,0,0.02));
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md, 12px);
  padding: 1rem;
  transition: all 0.2s ease;
}

.guide-section-header {
  margin-bottom: 0.65rem;
}

.guide-section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  background: rgba(79, 70, 229, 0.1);
  color: #4f46e5;
  border: 1px solid rgba(79, 70, 229, 0.2);
}

.guide-section-badge.green {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  border-color: rgba(16, 185, 129, 0.25);
}

.guide-text-lead {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-primary);
  margin: 0 0 0.5rem 0;
}

.guide-text-desc {
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 0;
}

.guide-step-list {
  margin: 0;
  padding-left: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--text-primary);
}

.guide-tip-box {
  background: rgba(16, 185, 129, 0.08);
  border-left: 3px solid #10b981;
  padding: 0.65rem 0.85rem;
  border-radius: 0 8px 8px 0;
  font-size: 0.82rem;
  line-height: 1.45;
}

.highlight-security {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(5, 150, 105, 0.08));
  border-color: rgba(16, 185, 129, 0.35);
}

.guide-security-points {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.guide-security-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.guide-security-item .sec-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.guide-security-item b {
  display: block;
  font-size: 0.875rem;
  color: #059669;
  margin-bottom: 0.2rem;
}

.guide-security-item p {
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-secondary);
  margin: 0;
}

.backup-step-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.75rem;
  font-size: 0.83rem;
  line-height: 1.45;
}

.guide-performance-box {
  background: var(--bg-surface-elevated, #f8fafc);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
}

[data-theme="dark"] .guide-performance-box {
  background: rgba(30, 41, 59, 0.7);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .guide-section-badge {
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
  border-color: rgba(99, 102, 241, 0.4);
}

[data-theme="dark"] .guide-section-badge.green {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
  border-color: rgba(16, 185, 129, 0.4);
}

[data-theme="dark"] .guide-security-item b {
  color: #34d399;
}

[data-theme="dark"] .highlight-security {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(6, 78, 59, 0.2));
  border-color: rgba(52, 211, 153, 0.35);
}

