/* BeMuslim Pro - Premium App-like Quran Reader Stylesheet */

/* --- CSS Variables & Design System --- */
:root {
  /* Fonts */
  --font-sans: 'Outfit', sans-serif;
  --font-serif: 'Amiri', 'Georgia', serif;
  --font-kufi: 'Reem Kufi', sans-serif;

  /* Accent Color Branding */
  --accent-brand: #15a895;
  --accent-brand-hover: #118778;
  --accent-brand-alpha: rgba(21, 168, 149, 0.15);
  --accent-brand-alpha-strong: rgba(21, 168, 149, 0.35);

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

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.2);

  /* Dimensions */
  --header-height: 64px;
  --tabs-height: 52px;
  --bottom-nav-height: 64px;
}

/* --- Theme Color Palettes --- */
.dark-theme {
  --bg-app: radial-gradient(circle at center, #0b2220 0%, #030e0d 100%);
  --bg-header: rgba(3, 14, 13, 0.85);
  --bg-card: rgba(8, 29, 27, 0.7);
  --bg-input: rgba(4, 18, 16, 0.85);
  --bg-hover: rgba(21, 168, 149, 0.15);
  --bg-drawer: #041412;
  --bg-page: #fbfaf7; /* Eye-friendly page background */
  
  --text-primary: #ffffff;
  --text-secondary: #a2c6c2;
  --text-muted: #5e8480;
  
  --border-color: rgba(21, 168, 149, 0.2);
  --border-focus: #15a895;
  --spine-shadow: linear-gradient(to right, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.05) 50%, rgba(0, 0, 0, 0.2) 100%);
  --book-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
}

.light-theme {
  --bg-app: radial-gradient(circle at center, #f5fbf9 0%, #ebf5f2 100%);
  --bg-header: rgba(255, 255, 255, 0.85);
  --bg-card: rgba(255, 255, 255, 0.8);
  --bg-input: rgba(230, 243, 240, 0.9);
  --bg-hover: rgba(21, 168, 149, 0.08);
  --bg-drawer: #ffffff;
  --bg-page: #ffffff;

  --text-primary: #082d28;
  --text-secondary: #2f5a54;
  --text-muted: #6e948f;

  --border-color: rgba(21, 168, 149, 0.18);
  --border-focus: #15a895;
  --spine-shadow: linear-gradient(to right, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.02) 50%, rgba(0, 0, 0, 0.08) 100%);
  --book-shadow: 0 25px 50px -12px rgba(21, 168, 149, 0.15);
}

/* --- Base & Reset Rules --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: var(--bg-app);
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  line-height: 1.5;
  transition: background var(--transition-slow);
}

select, input, button {
  font-family: inherit;
  color: inherit;
}

/* App Container Layout */
.app-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  position: relative;
}

/* --- Minimalist App Bar Header --- */
.main-header {
  height: var(--header-height);
  background: var(--bg-header);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 100;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-image {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.logo-text h1 {
  font-family: var(--font-kufi);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.2px;
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--accent-brand) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-sub {
  font-size: 10px;
  color: var(--text-secondary);
  display: block;
  margin-top: -3px;
  font-family: var(--font-sans);
}

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

/* Header Active Page Badge */
.active-page-badge {
  background: rgba(21, 168, 149, 0.08);
  border: 1px solid rgba(21, 168, 149, 0.25);
  border-radius: 20px;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--accent-brand);
  font-weight: 600;
  transition: all var(--transition-fast);
}

.active-page-badge:hover {
  background: var(--accent-brand);
  border-color: var(--accent-brand);
  color: #ffffff;
  transform: translateY(-1px) scale(1.03);
}

.active-page-badge strong {
  color: inherit;
  font-weight: 800;
}

/* Language selector */
.lang-selector-wrapper {
  position: relative;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  height: 34px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.lang-icon {
  font-size: 13px;
  color: var(--text-secondary);
}

.lang-select {
  background: transparent;
  border: none;
  font-size: 12px;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  color: inherit;
  padding-right: 4px;
  padding-left: 12px;
  appearance: none;
  -webkit-appearance: none;
}

.lang-selector-wrapper::after {
  content: '\f107';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 10px;
  position: absolute;
  left: 10px;
  pointer-events: none;
  color: var(--text-muted);
}

.icon-btn {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  transition: all var(--transition-fast);
}

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

/* --- Viewport Layout System --- */
.app-viewport {
  flex: 1;
  position: relative;
  overflow: hidden;
}

/* View Containers */
.view-container {
  display: none;
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  flex-direction: column;
}

.view-container.active {
  display: flex;
  opacity: 1;
  animation: fadeIn var(--transition-normal) forwards;
}

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

/* --- VIEW 1: READ LAYOUT --- */
#view-read {
  height: 100%;
}

.mushaf-tabs-bar {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  margin: 10px 24px;
}

.mushaf-tab {
  flex: 1;
  background: transparent;
  border: none;
  padding: 8px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-secondary);
  border-radius: 16px;
  font-size: 13px;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.mushaf-tab i {
  font-size: 13px;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.mushaf-tab:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.mushaf-tab.active {
  background: var(--accent-brand);
  color: #ffffff;
}

.mushaf-tab.active i {
  color: #ffffff;
}

.reader-area {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 12px;
  overflow: hidden;
}

/* Navigation page arrows */
.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--bg-header);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  z-index: 10;
  box-shadow: var(--shadow-md);
}

.nav-arrow:hover {
  background: var(--accent-brand);
  color: #ffffff;
  border-color: var(--accent-brand);
  transform: translateY(-50%) scale(1.08);
}

.nav-arrow.prev { right: 16px; }
.nav-arrow.next { left: 16px; }

/* Book Frame Wrapper */
.book-frame {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 920px;
  height: calc(100% - 36px);
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px;
  box-shadow: var(--book-shadow);
  transform-origin: center center;
  transition: transform 0.1s ease-out;
}

.book-frame.dual-mode {
  max-width: 1250px;
}

.book-frame.dual-mode::before {
  content: '';
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  background: var(--spine-shadow);
  z-index: 5;
  pointer-events: none;
}

.page-slot {
  flex: 1;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.book-frame:not(.dual-mode) .page-slot.left {
  display: none !important;
}

.page-container {
  max-width: 100%;
  max-height: 100%;
  position: relative;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  border-radius: 6px;
  background: var(--bg-page);
  display: flex;
  align-items: center;
  justify-content: center;
}

.quran-page-img {
  max-width: 100%;
  max-height: calc(100vh - 250px);
  max-height: calc(100dvh - 250px);
  object-fit: contain;
  display: block;
  border-radius: 6px;
}

.page-number-badge {
  position: absolute;
  bottom: -24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
}

/* Floating Zoom / Toolbox Controllers */
.zoom-controls {
  position: absolute;
  bottom: 76px;
  right: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 10;
}

html[dir="ltr"] .zoom-controls { right: 16px; }
html[dir="rtl"] .zoom-controls { left: 16px; right: auto; }

.zoom-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-header);
  border: 1px solid var(--border-color);
  cursor: pointer;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.zoom-btn:hover {
  background: var(--accent-brand);
  border-color: var(--accent-brand);
  color: white;
}

/* Floating Audio Widget inside reading page */
.floating-audio-widget {
  position: absolute;
  bottom: 76px;
  left: 16px;
  background: var(--bg-header);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(12px);
  border-radius: 30px;
  padding: 6px 16px 6px 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-md);
  z-index: 10;
  max-width: 250px;
}

html[dir="ltr"] .floating-audio-widget { left: 16px; }
html[dir="rtl"] .floating-audio-widget { right: 16px; left: auto; }

.floating-play {
  background: var(--accent-brand);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.floating-play:hover {
  transform: scale(1.1);
  background: var(--accent-brand-hover);
}

.floating-audio-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.floating-audio-info span {
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.floating-audio-info #floating-reciter-name {
  font-size: 9px;
  color: var(--text-muted);
}

/* Spinner Loader */
.loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(3, 14, 13, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  z-index: 20;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
  border-radius: 12px;
}

.loading-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3.5px solid var(--accent-brand-alpha-strong);
  border-left-color: var(--accent-brand);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loading-overlay span {
  font-size: 13px;
  color: var(--accent-brand);
  font-weight: 600;
}

.page-slider-container {
  width: 100%;
  max-width: 500px;
  margin-top: 12px;
}

.page-slider-container input[type=range] {
  width: 100%;
  height: 5px;
  border-radius: 3px;
  background: var(--border-color);
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.page-slider-container input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-brand);
}

/* --- VIEW 2: INDEX LAYOUT (Clean App Table List) --- */
#view-index {
  padding: 16px;
  height: 100%;
}

.index-dashboard {
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Segments Toggle Header */
.index-toggle-tabs {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 4px;
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
}

.index-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  border-radius: 8px;
  padding: 8px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.index-tab-btn.active {
  background: var(--accent-brand);
  color: white;
}

.index-scroll-area {
  flex: 1;
  overflow-y: auto;
  padding-right: 4px;
  padding-left: 4px;
}

.index-list {
  list-style: none;
  display: none;
  flex-direction: column;
  gap: 8px;
}

.index-list.active {
  display: flex;
}

/* Index Items Rows */
.index-row-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.index-row-item:hover {
  border-color: var(--accent-brand);
  background: var(--bg-hover);
  transform: translateX(-4px);
}

html[dir="ltr"] .index-row-item:hover {
  transform: translateX(4px);
}

.index-item-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chevron-icon {
  font-size: 11px;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.index-row-item:hover .chevron-icon {
  color: var(--accent-brand);
  transform: scale(1.1) rotate(0deg);
}

html[dir="ltr"] .index-row-item:hover .chevron-icon {
  transform: scale(1.1) rotate(180deg);
}

html[dir="ltr"] .chevron-icon {
  transform: rotate(180deg);
}

.index-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.index-number-badge {
  background: var(--accent-brand-alpha);
  border: 1px solid var(--border-color);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-brand);
}

.index-names {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.index-name-ar {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
}

.index-name-en {
  font-size: 11px;
  color: var(--text-muted);
}

.index-item-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.index-page-badge {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-secondary);
}

/* --- VIEW 3: FULL AUDIO DASHBOARD VIEW --- */
#view-audio {
  padding: 24px;
  height: 100%;
}

.audio-dashboard {
  max-width: 500px;
  width: 100%;
  margin: 0 auto;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
}

.audio-dashboard-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.select-card label {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Rotating Disc Artwork style */
.audio-visualizer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin: 12px 0;
}

.artwork-disk {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0b2220 0%, var(--accent-brand) 100%);
  border: 6px solid var(--border-color);
  padding: 6px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: rotateDisk 15s linear infinite;
  animation-play-state: paused;
  transition: all var(--transition-normal);
}

.artwork-disk.playing {
  animation-play-state: running;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45), 0 0 25px rgba(21, 168, 149, 0.4);
}

.artwork-disk img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

@keyframes rotateDisk {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.audio-meta {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.audio-meta h2 {
  font-size: 20px;
  font-family: var(--font-kufi);
  color: var(--accent-brand);
}

.audio-meta p {
  font-size: 12px;
  color: var(--text-secondary);
}

.audio-state-badge {
  background: var(--accent-brand-alpha);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2px 10px;
  font-size: 10px;
  font-weight: 600;
  color: var(--accent-brand);
  margin-top: 4px;
}

/* Audio Player control buttons */
.audio-dashboard-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
}

.dashboard-ctrl-btn {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.dashboard-ctrl-btn.sec-btn {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--text-secondary);
  font-size: 14px;
}

.dashboard-ctrl-btn.sec-btn:hover {
  border-color: var(--accent-brand);
  color: var(--accent-brand);
  transform: scale(1.05);
}

.dashboard-ctrl-btn.main-play-btn {
  background: var(--accent-brand);
  border: none;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  color: white;
  font-size: 20px;
  box-shadow: 0 8px 16px rgba(21, 168, 149, 0.3);
}

.dashboard-ctrl-btn.main-play-btn:hover {
  transform: scale(1.08);
  background: var(--accent-brand-hover);
}

.dashboard-ctrl-btn.main-play-btn.playing {
  box-shadow: 0 0 20px rgba(21, 168, 149, 0.45);
}

.progress-container {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 12px;
}

.progress-container span {
  font-size: 10px;
  color: var(--text-muted);
  width: 32px;
}

.progress-bar-wrapper {
  flex: 1;
  height: 5px;
  border-radius: 3px;
  background: var(--border-color);
  cursor: pointer;
  position: relative;
}

.progress-bar {
  height: 100%;
  width: 0%;
  border-radius: 3px;
  background: var(--accent-brand);
  transition: width 0.1s linear;
}

.volume-card {
  flex-direction: row !important;
  align-items: center;
  gap: 12px;
}

.volume-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 14px;
}

.volume-card input[type=range] {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--border-color);
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.volume-card input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-brand);
}

/* --- VIEW 4: BOOKMARKS LIST VIEW --- */
#view-bookmarks {
  padding: 16px;
  height: 100%;
}

.bookmarks-dashboard {
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.bookmarks-header-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.header-bookmark-icon {
  font-size: 26px;
  color: var(--accent-brand);
}

.bookmarks-header-section h2 {
  font-size: 18px;
  font-family: var(--font-kufi);
  color: var(--text-primary);
}

.bookmarks-scroll-area {
  flex: 1;
  overflow-y: auto;
}

.bookmarks-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bookmark-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.bookmark-item:hover {
  border-color: var(--accent-brand);
  background: var(--bg-hover);
}

.bookmark-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

html[dir="rtl"] .bookmark-info { text-align: right; }
html[dir="ltr"] .bookmark-info { text-align: left; }

.bookmark-title {
  font-size: 13px;
  font-weight: 700;
}

.bookmark-meta {
  font-size: 10px;
  color: var(--text-muted);
}

.delete-bookmark-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  transition: color var(--transition-fast);
}

.delete-bookmark-btn:hover {
  color: #ef4444;
}

.empty-bookmarks {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 200px;
  color: var(--text-muted);
  text-align: center;
  gap: 12px;
}

.empty-bookmarks i { font-size: 28px; }
.empty-bookmarks p { font-size: 11px; max-width: 220px; }

/* --- PERSISTENT BOTTOM NAVIGATION TAB BAR (APP BAR STYLE) --- */
.app-bottom-nav {
  height: var(--bottom-nav-height);
  background: var(--bg-header);
  border-top: 1px solid var(--border-color);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 100;
}

.nav-tab-btn {
  background: transparent;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 10px;
  font-weight: 500;
  transition: all var(--transition-fast);
  flex: 1;
  height: 100%;
}

.nav-tab-btn i {
  font-size: 18px;
  color: var(--text-muted);
  transition: color var(--transition-fast), transform var(--transition-fast);
}

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

.nav-tab-btn.active {
  color: var(--accent-brand);
  font-weight: 700;
}

.nav-tab-btn.active i {
  color: var(--accent-brand);
  transform: translateY(-2px);
}

/* Helper utilities */
.w-full { width: 100%; }

/* --- Animations --- */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-3px); }
  100% { transform: translateY(0px); }
}

/* --- Responsive Layout Adjustments --- */
@media (max-width: 1024px) {
  .nav-arrow.prev { right: 8px; }
  .nav-arrow.next { left: 8px; }
}

@media (max-width: 768px) {
  .desktop-only {
    display: none !important;
  }

  /* Compact Header */
  .main-header {
    height: 56px;
    padding: 0 12px;
  }
  
  .logo-image {
    width: 32px;
    height: 32px;
  }

  .logo-text h1 {
    font-size: 16px;
  }
  .logo-sub {
    font-size: 8px;
  }

  .active-page-badge {
    padding: 3px 6px;
    font-size: 9px;
  }

  .lang-selector-wrapper {
    height: 30px;
    padding: 0 8px;
  }
  
  .lang-select {
    font-size: 11px;
    padding-left: 8px;
  }

  .icon-btn {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }

  /* Mushaf Tabs Segmented Control */
  .mushaf-tabs-bar {
    margin: 8px 12px;
    padding: 3px;
    border-radius: 10px;
    gap: 3px;
  }
  
  .mushaf-tab {
    padding: 6px 4px;
    border-radius: 7px;
    font-size: 11px;
    gap: 4px;
  }

  .mushaf-tab i {
    font-size: 11px;
  }

  .mushaf-tab.active {
    background: var(--accent-brand);
    color: #ffffff;
    border: none;
  }

  /* Mobile Viewport Reader Adjustments */
  .reader-area {
    padding: 6px;
  }

  .nav-arrow {
    display: none !important; /* Hide left/right arrows, use swipes */
  }

  .zoom-controls {
    bottom: 64px;
    right: 8px;
  }

  .book-frame {
    height: calc(100% - 20px);
    padding: 4px;
    border-radius: 8px;
  }
  
  .book-frame.dual-mode {
    flex-direction: column;
  }
  
  .book-frame.dual-mode::before {
    display: none;
  }

  .page-slot.left {
    display: none !important; /* Force single page on mobile */
  }

  .quran-page-img {
    max-height: calc(100vh - 190px);
    max-height: calc(100dvh - 190px);
  }

  .page-slider-container {
    margin-top: 6px;
  }

  /* Floating audio controller widget in read page position */
  .floating-audio-widget {
    bottom: 64px;
    left: 8px;
    padding: 4px 12px 4px 6px;
  }

  .floating-play {
    width: 28px;
    height: 28px;
    font-size: 10px;
  }

  .floating-audio-info span {
    font-size: 10px;
  }

  /* Bottom tabs dock padding adjustment */
  .app-bottom-nav {
    height: 56px;
  }

  .nav-tab-btn i {
    font-size: 16px;
  }

  .nav-tab-btn {
    font-size: 9px;
  }
}

/* --- AYAH LOOKUP MODAL DIALOG --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 16px;
  animation: fadeIn var(--transition-fast) ease-out;
}

.modal-card {
  background: var(--bg-header);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  animation: slideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.modal-header h3 {
  font-size: 14px;
  font-weight: 700;
  margin: 0;
}

.close-modal-btn {
  background: transparent;
  border: none;
  font-size: 22px;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  transition: color var(--transition-fast);
}

.close-modal-btn:hover {
  color: #ef4444;
}

.modal-body {
  padding: 16px 20px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.lookup-inputs {
  display: flex;
  gap: 12px;
}

.input-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.input-group label {
  font-size: 11px;
  color: var(--text-secondary);
}

.styled-input {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  outline: none;
  transition: border-color var(--transition-fast);
  width: 100%;
  box-sizing: border-box;
}

.styled-input:focus {
  border-color: var(--accent-brand);
}

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

.action-btn-primary, .action-btn-secondary {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 10px;
  padding: 10px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
}

.action-btn-primary {
  background: var(--accent-brand);
  color: #ffffff;
}

.action-btn-primary:hover {
  background: #118475;
}

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

.action-btn-secondary:hover {
  background: var(--bg-hover);
}

.lookup-results-box {
  background: var(--bg-app);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 200px;
  overflow-y: auto;
}

.arabic-text {
  font-family: 'Amiri', serif;
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-primary);
  text-align: right;
  direction: rtl;
}

.translation-text {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-secondary);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* --- VIEW 0: HOME DASHBOARD & WIDGETS --- */
.home-dashboard {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px 20px;
  overflow-y: auto;
  height: 100%;
  box-sizing: border-box;
}

.home-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.welcome-card {
  background: linear-gradient(135deg, rgba(20, 110, 95, 0.95), rgba(8, 62, 53, 0.95));
  border: none;
  color: #ffffff;
}

.welcome-header h2 {
  font-family: 'Reem Kufi', sans-serif;
  font-size: 20px;
  margin: 0 0 4px 0;
}

#home-date-hijri {
  font-size: 11px;
  opacity: 0.8;
  margin: 0;
}

#home-date-gregorian {
  font-size: 12px;
  opacity: 0.9;
  margin: 8px 0 0 0;
  font-weight: 500;
}

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

.prayer-widget-header h3 {
  font-size: 13px;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.next-prayer-ticker {
  font-size: 10px;
  color: var(--text-secondary);
}

.next-prayer-ticker strong {
  color: var(--accent-brand);
}

.prayer-times-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.prayer-time-row {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 10px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: all var(--transition-fast);
}

.prayer-time-row span {
  font-size: 10px;
  color: var(--text-muted);
}

.prayer-time-row strong {
  font-size: 13px;
  color: var(--text-primary);
}

.prayer-time-row.active {
  background: var(--accent-brand);
  border-color: var(--accent-brand);
}

.prayer-time-row.active span,
.prayer-time-row.active strong {
  color: #ffffff;
}

/* Quick Actions */
.home-quick-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.quick-action-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
  color: var(--text-primary);
}

.quick-action-btn:hover {
  background: var(--bg-hover);
  border-color: var(--accent-brand);
  transform: translateY(-2px);
}

.quick-action-btn i {
  font-size: 20px;
  color: var(--accent-brand);
}

.quick-action-btn span {
  font-size: 11px;
  font-weight: 600;
}

/* Daily Verse */
.daily-verse-card .verse-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.daily-verse-card h3 {
  font-size: 13px;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

#daily-verse-ref {
  font-size: 10px;
  color: var(--accent-brand);
  font-weight: 600;
}

.daily-verse-card .verse-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.daily-verse-card .arabic-text {
  font-family: 'Amiri', serif;
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-primary);
  text-align: right;
  direction: rtl;
}

.daily-verse-card .translation-text {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-secondary);
}

@media (min-width: 769px) {
  .home-dashboard {
    display: grid !important;
    grid-template-columns: 1.1fr 0.9fr;
    grid-gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
    align-content: start;
    padding: 32px 24px;
  }
  .welcome-card {
    grid-column: 1;
    grid-row: 1;
  }
  .daily-verse-card {
    grid-column: 1;
    grid-row: 2;
  }
  .prayer-widget {
    grid-column: 2;
    grid-row: 1;
  }
  .home-quick-actions {
    grid-column: 2;
    grid-row: 3;
  }
  .challenge-card {
    grid-column: 2;
    grid-row: 2;
  }
}

/* Daily Challenge Card Styles */
.challenge-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.challenge-header h3 {
  font-size: 13px;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

#challenge-streak-badge {
  background: rgba(230, 92, 0, 0.15);
  border: 1px solid rgba(230, 92, 0, 0.3);
  border-radius: 12px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  color: #ff6a00;
  display: flex;
  align-items: center;
  gap: 4px;
}

.challenge-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#challenge-text {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-secondary);
}

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

.challenge-actions .action-btn-primary {
  flex: 1;
  background: var(--accent-brand);
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

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

.challenge-actions .action-btn-primary.completed {
  background: #115040;
  color: rgba(255,255,255,0.7);
  cursor: not-allowed;
  border: 1px solid var(--border-color);
}

.challenge-actions .action-btn-secondary {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.challenge-actions .action-btn-secondary:hover {
  border-color: var(--accent-brand);
  color: var(--accent-brand);
}

/* --- VIEW 3: TOOLS PANEL & SUBVIEWS --- */
.tools-grid-menu {
  padding: 20px;
  height: 100%;
  overflow-y: auto;
  box-sizing: border-box;
}

.tools-grid-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.tool-menu-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.tool-menu-card:hover {
  border-color: var(--accent-brand);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.tool-card-icon {
  font-size: 28px;
  color: var(--accent-brand);
  margin-bottom: 12px;
}

.tool-menu-card h3 {
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 6px 0;
  color: var(--text-primary);
}

.tool-menu-card p {
  font-size: 10px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}

/* Active Tool Module Wrapper */
.tool-active-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
}

.tool-active-header {
  padding: 12px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-header);
}

.back-to-tools-btn {
  background: transparent;
  border: none;
  color: var(--accent-brand);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

#active-tool-title {
  font-size: 14px;
  font-weight: 700;
  margin: 0;
}

.tool-active-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  box-sizing: border-box;
}

/* Tool Module: Tasbih */
.tasbih-engine {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.tasbih-selectors {
  display: flex;
  gap: 12px;
  width: 100%;
  max-width: 320px;
}

.tasbih-circle-container {
  position: relative;
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.progress-ring-svg {
  position: absolute;
  top: 0;
  left: 0;
  transform: rotate(-90deg);
}

.progress-ring {
  stroke-dasharray: 565.48; /* 2 * PI * r (r=90) */
  stroke-dashoffset: 565.48;
  transition: stroke-dashoffset 0.1s linear;
  stroke-linecap: round;
}

.tasbih-click-button {
  width: 168px;
  height: 168px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--bg-card) 0%, rgba(3, 14, 13, 0.8) 100%);
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--text-primary);
  outline: none;
  transition: transform var(--transition-fast);
}

.tasbih-click-button:active {
  transform: scale(0.95);
}

#tasbih-count {
  font-family: 'Outfit', sans-serif;
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
}

#tasbih-target-badge {
  font-size: 11px;
  color: var(--text-muted);
}

.tasbih-controls {
  display: flex;
  gap: 12px;
}

/* Tool Module: Qibla */
.qibla-engine {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.qibla-instructions {
  font-size: 11px;
  color: var(--text-secondary);
  max-width: 280px;
  line-height: 1.5;
}

.compass-wrapper {
  position: relative;
  width: 220px;
  height: 220px;
}

.compass-dial {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 3px solid var(--border-color);
  background: var(--bg-card);
  position: relative;
  transition: transform 0.2s ease-out;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.3);
}

.compass-arrow-kaaba {
  position: absolute;
  top: 15px;
  left: 50%;
  width: 8px;
  height: 95px;
  background: linear-gradient(to bottom, var(--accent-brand) 50%, var(--text-muted) 50%);
  transform: translateX(-50%);
  border-radius: 4px;
}

.compass-arrow-kaaba::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 12px solid var(--accent-brand);
}

.compass-mark-n, .compass-mark-e, .compass-mark-s, .compass-mark-w {
  position: absolute;
  font-size: 12px;
  font-weight: 800;
  color: var(--text-muted);
}

.compass-mark-n { top: 8px; left: 50%; transform: translateX(-50%); color: #ef4444; }
.compass-mark-e { right: 8px; top: 50%; transform: translateY(-50%); }
.compass-mark-s { bottom: 8px; left: 50%; transform: translateX(-50%); }
.compass-mark-w { left: 8px; top: 50%; transform: translateY(-50%); }

.qibla-metadata {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-brand);
}

/* Tool Module: Names of Allah */
.names-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.name-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: border-color var(--transition-fast);
}

.name-card:hover {
  border-color: var(--accent-brand);
}

.name-num {
  font-size: 9px;
  background: var(--bg-hover);
  color: var(--text-muted);
  padding: 2px 6px;
  border-radius: 10px;
  align-self: flex-start;
}

.name-ar {
  font-family: 'Amiri', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--accent-brand);
  margin: 2px 0;
}

.name-trans {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-primary);
}

.name-meaning {
  font-size: 9px;
  color: var(--text-muted);
  line-height: 1.3;
}

/* Tool Module: Duas */
.duas-engine {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.duas-category-tabs {
  display: flex;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 3px;
  gap: 4px;
}

.dua-cat-btn {
  flex: 1;
  background: transparent;
  border: none;
  padding: 8px 4px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.dua-cat-btn.active {
  background: var(--accent-brand);
  color: #ffffff;
}

.duas-list-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dua-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dua-card-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-brand);
  border-bottom: 1px dashed var(--border-color);
  padding-bottom: 6px;
}

.dua-card-ar {
  font-family: 'Amiri', serif;
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-primary);
  text-align: right;
  direction: rtl;
}

.dua-card-trans {
  font-size: 10px;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.4;
}

.dua-card-meaning {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* --- VIEW 7: JUROK HEART PROGRAM --- */
.pulse {
  animation: breathe 3s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

.jurok-screen {
  animation: jurokFade 0.4s ease;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
@keyframes jurokFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.jurok-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 12px 16px;
  cursor: pointer;
  transition: all var(--transition-fast);
  width: 100%;
  font-family: inherit;
  text-align: left;
  color: var(--text-primary);
}

.jurok-opt:hover {
  border-color: var(--accent-brand);
  background: var(--bg-hover);
}

.jurok-opt.sel {
  border-color: var(--accent-brand);
  background: var(--bg-input);
}

.jurok-opt .emo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--bg-hover);
  display: grid;
  place-items: center;
  font-size: 18px;
  flex: none;
}

.jurok-opt.sel .emo {
  background: var(--accent-brand);
  color: white;
}

.jurok-opt .tk {
  margin-left: auto;
  margin-right: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  display: grid;
  place-items: center;
  color: transparent;
  font-size: 10px;
  transition: all var(--transition-fast);
}

.jurok-opt.sel .tk {
  background: var(--accent-brand);
  border-color: var(--accent-brand);
  color: white;
}

.jurok-deed-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 12px 14px;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  text-align: left;
}

.jurok-deed-card:hover {
  transform: translateY(-1px);
  border-color: var(--accent-brand);
}

.jurok-deed-card.done {
  background: var(--bg-input);
  opacity: 0.85;
}

.jurok-deed-card.done .d-title {
  text-decoration: line-through;
  color: var(--text-muted);
}

.jurok-deed-card .d-ic {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 20px;
  flex: none;
}

.jurok-deed-card .d-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  display: grid;
  place-items: center;
  color: transparent;
  font-size: 11px;
  margin-left: auto;
  margin-right: 0;
  transition: all var(--transition-fast);
}

.jurok-deed-card.done .d-check {
  background: #15a895;
  border-color: #15a895;
  color: white;
}

.jurok-addmore-btn {
  border: 2px dashed var(--border-color);
  background: var(--bg-input);
  border-radius: 16px;
  padding: 14px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.jurok-addmore-btn:hover {
  border-color: var(--accent-brand);
  background: var(--bg-hover);
}
