/* أشكال وطبقات — بدون إيموجي */

.icon {
  display: block;
  flex-shrink: 0;
}

.icon--badge {
  width: 20px;
  height: 20px;
}

.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--green-100), #fff);
  color: var(--green-700);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 4px 12px rgba(27, 94, 52, 0.1);
  margin-bottom: 6px;
}

[data-theme="dark"] .icon-badge {
  background: linear-gradient(145deg, #2a1a1d, #1e1e22);
  color: var(--green-400);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 6px 18px rgba(0, 0, 0, 0.35);
}

.icon-badge--done {
  background: var(--accent-gradient);
  color: #fff;
}

.card {
  border-radius: 22px;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(45, 138, 82, 0.35), transparent 55%, rgba(45, 138, 82, 0.12));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.card-grid {
  gap: 8px;
}

.tile-card {
  min-height: 88px;
  padding: 10px 6px;
  align-items: center;
  text-align: center;
  border-radius: 16px;
}

.tile-title {
  font-size: 0.82rem;
  line-height: 1.35;
  font-weight: 800;
  display: block;
  color: var(--text);
}

.tile-card .progress-bar {
  width: 100%;
  margin-top: 8px;
}

.tile-card--active {
  outline: 2px solid var(--green-500);
  outline-offset: 1px;
}

.tile-card .chip {
  margin-top: 4px;
  font-size: 0.62rem;
  padding: 2px 7px;
}

.tile-card--dhikr {
  padding: 10px 6px 12px;
  justify-content: flex-start;
  align-items: stretch;
  text-align: right;
}

.tile-dhikr-row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 6px;
  width: 100%;
  direction: rtl;
}

.tile-card--dhikr .tile-title {
  font-size: 0.78rem;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  box-sizing: border-box;
  text-align: right;
}

.tile-card--dhikr .fav-btn {
  position: static;
  flex-shrink: 0;
}

.tile-card--dhikr-home {
  text-align: right;
  align-items: stretch;
}

.tile-card--dua .tile-title {
  padding-inline: 4px;
  text-align: right;
}

.tile-card--dhikr-home .tile-title {
  padding-inline: 4px;
  text-align: right;
}

.tile-text-col {
  flex: 1 1 auto;
  min-width: 0;
  text-align: right;
}

.tile-sub {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.35;
}

.tile-card--bundle {
  grid-column: 1 / -1;
  min-height: 72px;
}

.tile-card--bundle .tile-title {
  font-size: 0.9rem;
}

.stat-mini {
  border-radius: 20px;
  min-height: 96px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-card {
  padding: 18px;
  border-radius: 26px;
  background: linear-gradient(160deg, var(--bg-card) 0%, var(--green-100) 120%);
}

[data-theme="dark"] .hero-card {
  background: linear-gradient(160deg, var(--bg-card) 0%, #2a1a1d 120%);
}

.bottom-nav {
  left: 12px;
  right: 12px;
  max-width: calc(480px - 24px);
  margin: 0 auto;
  bottom: calc(10px + var(--safe-bottom));
  height: auto;
  min-height: 64px;
  padding: 8px 6px calc(8px + var(--safe-bottom));
  border-radius: 22px;
  border: 1px solid var(--border);
  box-shadow: 0 12px 40px rgba(27, 77, 46, 0.18);
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--bg-card) 92%, transparent);
}

[data-theme="dark"] .bottom-nav {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.nav-item {
  gap: 4px;
  border-radius: 14px;
  padding: 6px 2px;
  transition: background 0.2s, color 0.2s;
}

.nav-item.active {
  background: var(--green-100);
}

[data-theme="dark"] .nav-item.active {
  background: rgba(196, 58, 79, 0.15);
}

.nav-item .ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.nav-item.active .ico {
  color: var(--green-700);
}

.theme-toggle,
.toolbar-btn {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--green-700);
  box-shadow: 0 4px 14px rgba(27, 77, 46, 0.08);
}

[data-theme="dark"] .theme-toggle,
[data-theme="dark"] .toolbar-btn {
  color: var(--green-400);
}

.login-card {
  border-radius: 28px;
  padding: 28px 22px;
}

.check-box.on {
  color: #fff;
}

.check-box .icon {
  width: 16px;
  height: 16px;
}

.fav-star {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--bg-card) 85%, transparent);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--green-500);
}

.fav-star.is-on {
  color: var(--green-700);
  background: var(--green-100);
}

.btn-primary {
  border-radius: 16px;
  min-height: 50px;
  box-shadow: 0 8px 22px rgba(27, 94, 52, 0.25);
}

.btn-with-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.counter-ring {
  width: 232px;
  height: 232px;
  box-shadow: 0 16px 48px rgba(27, 94, 52, 0.28), inset 0 0 0 6px rgba(255, 255, 255, 0.15);
}

.counter-ring::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, 0.25);
  pointer-events: none;
}

.counter-ring {
  position: relative;
}

.list-line {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  color: var(--text);
}

.list-line .icon {
  color: var(--green-500);
  transform: scaleX(-1);
}
