/* ============================================
   Dashboard — modern, rapi, responsif
   ============================================ */

.dashboard-page {
  padding-bottom: 2rem;
}

.dash-content {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* ---- Animasi masuk & ikon ---- */
@keyframes dash-fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes dash-icon-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-5px); }
}

@keyframes dash-icon-glow {
  0%, 100% { box-shadow: 0 0 0 0 var(--icon-glow, rgba(13, 148, 136, 0.25)); }
  50%      { box-shadow: 0 0 0 8px transparent; }
}

@keyframes dash-icon-shake {
  0%, 100% { transform: rotate(0deg); }
  25%      { transform: rotate(-6deg); }
  75%      { transform: rotate(6deg); }
}

.dash-animate-in {
  animation: dash-fade-up 0.55s ease both;
}

.dash-icon-anim {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.2);
  font-size: 1.25rem;
  flex-shrink: 0;
  animation: dash-icon-float 3.2s ease-in-out infinite, dash-icon-glow 3.2s ease-in-out infinite;
  --icon-glow: rgba(255, 255, 255, 0.2);
  transition: transform 0.25s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.dash-icon-blue  { --icon-glow: rgba(59, 130, 246, 0.3); background: rgba(59, 130, 246, 0.12); color: #2563eb; }
.dash-icon-rose  { --icon-glow: rgba(236, 72, 153, 0.3); background: rgba(236, 72, 153, 0.12); color: #db2777; }
.dash-icon-anim-warn { --icon-glow: rgba(245, 158, 11, 0.35); background: rgba(245, 158, 11, 0.15); color: #d97706; animation: dash-icon-float 2.8s ease-in-out infinite, dash-icon-shake 4s ease-in-out infinite; }

.dash-stat-card:hover .dash-icon-anim,
.dash-quick-card:hover .dash-icon-anim,
.yasiin-card-link:hover .dash-icon-anim {
  transform: scale(1.1) translateY(-2px);
}

/* ---- Hero Slider — full width, no round ---- */
.dash-hero {
  width: 100vw;
  max-width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  z-index: 0;
  isolation: isolate;
}

.dash-carousel {
  border-radius: 0 !important;
  overflow: hidden;
  box-shadow: none;
  margin: 0;
}

.dash-carousel .carousel-inner {
  border-radius: 0;
}

.dash-carousel-img {
  display: block;
  width: 100%;
  height: clamp(200px, 38vw, 420px);
  object-fit: cover;
  border-radius: 0 !important;
}

.dash-carousel-indicators {
  margin-bottom: 0.85rem;
  gap: 0.35rem;
}

.dash-carousel-indicators [data-bs-target] {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.45);
  opacity: 1;
  transition: width 0.25s ease, background 0.25s ease;
}

.dash-carousel-indicators .active {
  width: 24px;
  background: #fff;
}

.dash-carousel-control {
  width: 8%;
  opacity: 1;
}

.dash-carousel-control-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 1.1rem;
  transition: background 0.2s ease, transform 0.2s ease;
}

.dash-carousel-control:hover .dash-carousel-control-icon {
  background: rgba(15, 23, 42, 0.65);
  transform: scale(1.08);
}

/* ---- Toolbar: Search + WhatsApp — kartu glass 75% ---- */
.dash-action-bar {
  position: relative;
  z-index: 20;
  margin-top: -1.75rem;
  padding: 0 0.85rem 0.25rem;
  background: transparent;
  border: none;
  box-shadow: none;
}

.dash-action-bar-inner {
  max-width: 920px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: stretch;
  gap: 0.75rem;
}

.dash-action-card {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.1);
  padding: 0.7rem 0.9rem;
  transition: box-shadow 0.22s ease, transform 0.22s ease;
}

.dash-action-card:hover {
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.14);
}

.dash-action-card-search {
  min-width: 0;
}

.dash-action-card-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.7rem 1rem;
}

.dash-action-wa-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.dash-search-wrap {
  width: 100%;
}

.dash-search-wrap .form-control {
  border-radius: 999px;
  padding-left: 2.35rem;
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(255, 255, 255, 0.65);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.dash-search-wrap .form-control:focus {
  background: rgba(255, 255, 255, 0.82);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-ring);
}

.dash-search-wrap .search-results {
  position: absolute;
  z-index: 1060;
}

.dash-wa-slot .dropdown-menu {
  z-index: 1070;
}

.dash-action-card-wa .btn-wa {
  flex-shrink: 0;
}

/* ---- Welcome ---- */
.dash-welcome {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 1rem;
  text-align: left;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.35rem;
  box-shadow: var(--shadow-md);
}

.dash-welcome > *:not(.header-ornament) {
  position: relative;
  z-index: 1;
}

.dash-welcome-icon {
  background: rgba(255, 255, 255, 0.18) !important;
  color: #fff;
  width: 3rem;
  height: 3rem;
  font-size: 1.35rem;
}

.dash-welcome strong {
  display: block;
  font-weight: 700;
  font-size: 1.05rem;
}

.dash-welcome p {
  margin: 0.3rem 0 0;
  opacity: 0.92;
  font-size: 0.875rem;
  line-height: 1.5;
}

/* ---- Section heading ---- */
.dash-section-head {
  margin-top: 0.25rem;
}

.dash-section-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
}

.dash-section-sub {
  margin: 0.2rem 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ---- Stat grid ---- */
.dash-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.dash-stat-card {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.15rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.dash-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-ring);
}

.dash-stat-icon {
  background: var(--primary-light);
  color: var(--primary);
}

.dash-stat-male .dash-stat-icon { background: rgba(59, 130, 246, 0.12); color: #2563eb; }
.dash-stat-female .dash-stat-icon { background: rgba(236, 72, 153, 0.12); color: #db2777; }

.dash-stat-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.dash-stat-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.dash-stat-value {
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--text);
  margin: 0.15rem 0;
}

.dash-stat-sub {
  font-size: 0.78rem;
  color: var(--text-light);
}

/* ---- Quick menu ---- */
.dash-quick-section {
  background: color-mix(in srgb, var(--surface) 35%, transparent);
  border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  border-radius: var(--radius-lg);
  padding: 1rem 1.1rem 1.1rem;
  box-shadow: var(--shadow-sm);
}

.dash-quick-section-head {
  margin-bottom: 0.85rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 65%, transparent);
}

.dash-quick-section-head-text {
  min-width: 0;
}

.dash-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.dash-quick-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 4.5rem;
  padding: 0.85rem 0.9rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.dash-quick-card::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--quick-accent, var(--primary));
  opacity: 0;
  transition: opacity 0.2s ease;
}

.dash-quick-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: inherit;
  background: color-mix(in srgb, var(--surface) 92%, var(--quick-accent, var(--primary)) 8%);
}

.dash-quick-card:hover::before {
  opacity: 1;
}

.dash-quick-blue   { --quick-accent: #2563eb; }
.dash-quick-amber  { --quick-accent: #d97706; }
.dash-quick-rose   { --quick-accent: #dc2626; }
.dash-quick-violet { --quick-accent: #7c3aed; }
.dash-quick-teal   { --quick-accent: var(--primary); }

.dash-quick-blue:hover   { border-color: rgba(59, 130, 246, 0.35); }
.dash-quick-amber:hover  { border-color: rgba(217, 119, 6, 0.35); }
.dash-quick-rose:hover   { border-color: rgba(239, 68, 68, 0.35); }
.dash-quick-violet:hover { border-color: rgba(124, 58, 237, 0.35); }
.dash-quick-teal:hover   { border-color: var(--primary-ring); }

.dash-quick-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  font-size: 1.15rem;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.dash-quick-card:hover .dash-quick-icon {
  transform: scale(1.06);
}

.dash-quick-blue  .dash-quick-icon { background: rgba(59, 130, 246, 0.12); color: #2563eb; }
.dash-quick-amber .dash-quick-icon { background: rgba(217, 119, 6, 0.12); color: #d97706; }
.dash-quick-rose  .dash-quick-icon { background: rgba(239, 68, 68, 0.12); color: #dc2626; }
.dash-quick-violet .dash-quick-icon { background: rgba(124, 58, 237, 0.12); color: #7c3aed; }
.dash-quick-teal  .dash-quick-icon { background: var(--primary-light); color: var(--primary); }

.dash-quick-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  padding-right: 1.5rem;
}

.dash-quick-title {
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.3;
  color: var(--text);
}

.dash-quick-sub {
  font-size: 0.74rem;
  line-height: 1.4;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dash-quick-arrow {
  position: absolute;
  right: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.72rem;
  background: color-mix(in srgb, var(--bg) 55%, transparent);
  transition: transform 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.dash-quick-card:hover .dash-quick-arrow {
  transform: translateY(-50%) translateX(2px);
  color: var(--quick-accent, var(--primary));
  background: color-mix(in srgb, var(--quick-accent, var(--primary)) 12%, transparent);
}

/* ---- Layout utama: moment (kiri) · sidebar (kanan) ---- */
.dash-main-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 1rem;
  align-items: start;
}

.dash-main-layout--solo {
  grid-template-columns: 1fr;
}

.dash-main-layout--solo .dash-main-right {
  max-width: 560px;
  margin: 0 auto;
  width: 100%;
}

.dash-main-left {
  min-width: 0;
}

.dash-main-right {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

.dash-main-right > * {
  min-width: 0;
}

/* Legacy alias */
.dash-panels-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 1rem;
  align-items: stretch;
}

.dash-panels-grid .hadis-card:only-child {
  grid-column: 1 / -1;
}

/* ---- Moment panel (dashboard) ---- */
.dash-moment-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.dash-moment-header {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  background: var(--card-header-gradient);
  color: var(--header-text);
  flex-shrink: 0;
}

.dash-moment-header > :not(.header-ornament) {
  position: relative;
  z-index: 1;
}

.dash-moment-header-text {
  flex: 1;
  min-width: 0;
}

.dash-moment-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.2);
}

.dash-moment-title {
  margin: 0.2rem 0 0;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.25;
}

.dash-moment-sub {
  margin: 0.15rem 0 0;
  font-size: 0.75rem;
  color: var(--header-text-muted);
}

.dash-moment-header-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.dash-moment-filter .form-select {
  min-width: 130px;
  border-radius: 999px;
  font-size: 0.78rem;
}

.dash-moment-body {
  flex: 1;
  min-height: 0;
  max-height: min(720px, 75vh);
  overflow-y: auto;
  padding: 0.85rem;
}

.dash-moment-body .moment-layout {
  max-width: none;
  margin: 0;
}

.dash-moment-body .moment-feed-compact {
  gap: 0.85rem;
}

.dash-moment-body .moment-card-compact {
  padding: 0.75rem;
}

.dash-moment-body .moment-card-compact .moment-card-photo {
  max-height: 280px;
}

.dash-moment-body .moment-card-compact .moment-card-caption {
  font-size: 0.84rem;
  margin-bottom: 0.55rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dash-moment-body .moment-card-compact .moment-comments-list {
  max-height: 140px;
}

.dash-moment-body .moment-empty-compact {
  padding: 1.5rem 1rem;
}

.dash-moment-body .moment-pagination {
  margin-top: 0.75rem;
  padding-bottom: 0.25rem;
}

.dash-moment-login-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 180px;
}

#dash-moment > .moment-flash {
  margin: 0.75rem 0.85rem 0;
}

.page-dashboard .moment-fab {
  bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px));
}

/* ---- Sidebar kanan: hadis, ultah, yasin ---- */
.dash-main-right .hadis-card {
  height: auto;
}

.dash-main-right .hadis-card-body {
  --hadis-arab-base: 1.15rem;
  --hadis-indo-base: 0.82rem;
}

.dash-main-right .ultah-slider-sidebar {
  --ultah-card-h: 300px;
}

.dash-main-right .ultah-slider-sidebar .ultah-slider-head {
  flex-wrap: wrap;
  padding: 0.85rem 1rem;
  margin-bottom: 0.65rem;
}

.dash-main-right .ultah-slider-sidebar .ultah-slider-sub {
  font-size: 0.72rem;
}

.dash-main-right .ultah-slider-sidebar .ultah-slide-card {
  grid-template-columns: 1fr;
  grid-template-rows: 130px 1fr;
  min-height: var(--ultah-card-h);
  max-height: var(--ultah-card-h);
}

.dash-main-right .ultah-slider-sidebar .ultah-slide-photo {
  min-height: 130px;
  max-height: 130px;
}

.dash-main-right .ultah-slider-sidebar .ultah-slide-body {
  padding: 0.75rem 0.9rem;
  justify-content: flex-start;
}

.dash-main-right .ultah-slider-sidebar .ultah-slide-name {
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.dash-main-right .ultah-slider-sidebar .ultah-slide-meta {
  margin-bottom: 0.45rem;
}

.dash-main-right .ultah-slider-sidebar .ultah-slide-meta li {
  font-size: 0.72rem;
}

.dash-main-right .ultah-slider-sidebar .ultah-slide-wish {
  display: none;
}

.dash-main-right .ultah-slider-sidebar .ultah-slide-actions {
  flex-wrap: wrap;
  gap: 0.35rem;
}

.dash-main-right .ultah-slider-sidebar .ultah-slide-actions .btn {
  font-size: 0.72rem;
  padding: 0.25rem 0.65rem;
}

.dash-main-right .ultah-slider-sidebar .ultah-birthday-carousel {
  padding: 0 0.75rem;
}

/* ---- Ulang tahun — slider 1 anggota per slide ---- */
.ultah-slider-section {
  --ultah-card-h: 260px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 0 0 1.15rem;
  overflow: hidden;
}

.ultah-slider-head {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  padding: 1rem 1.15rem;
  background: var(--card-header-gradient);
  color: var(--header-text);
}

.ultah-slider-head > :not(.header-ornament) {
  position: relative;
  z-index: 1;
}

.ultah-slider-head-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.ultah-slider-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: fit-content;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.2);
  color: var(--header-text);
}

.ultah-slider-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--header-text);
}

.ultah-slider-sub {
  margin: 0;
  font-size: 0.78rem;
  color: var(--header-text-muted);
}

.ultah-slider-meta {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.ultah-slide-counter {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--header-text);
  padding: 0.25rem 0.65rem;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  white-space: nowrap;
}

.ultah-slider-nav {
  display: flex;
  gap: 0.4rem;
}

.ultah-slider-btn {
  width: 2.15rem;
  height: 2.15rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: var(--header-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.ultah-slider-btn:hover {
  background: rgba(255, 255, 255, 0.32);
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--header-text);
}

.ultah-slider-btn:active {
  transform: scale(0.94);
}

.ultah-birthday-carousel {
  position: relative;
  padding: 0 1rem;
}

.ultah-birthday-carousel .carousel-inner {
  height: var(--ultah-card-h);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.ultah-birthday-carousel .carousel-item {
  height: var(--ultah-card-h);
}

.ultah-carousel-dots {
  position: static;
  margin: 0 0 0.75rem;
  padding: 0 1rem;
  justify-content: center;
  gap: 0.35rem;
}

.ultah-carousel-dots [data-bs-target] {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  background: var(--border);
  opacity: 1;
  transition: width 0.25s ease, background 0.25s ease;
}

.ultah-carousel-dots .active {
  width: 22px;
  background: var(--primary);
}

.ultah-slide-card {
  display: grid;
  grid-template-columns: 42% 1fr;
  height: 100%;
  min-height: var(--ultah-card-h);
  max-height: var(--ultah-card-h);
  background: linear-gradient(135deg, var(--bg) 0%, var(--surface) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.ultah-slide-photo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 0;
  align-self: stretch;
  background: linear-gradient(160deg, var(--primary-light), var(--primary));
  overflow: hidden;
}

.ultah-slide-photo-bg {
  position: absolute;
  inset: -10%;
  width: 120%;
  height: 120%;
  object-fit: cover;
  object-position: center center;
  filter: blur(16px) saturate(1.15);
  opacity: 0.55;
  pointer-events: none;
}

.ultah-slide-photo-img {
  position: relative;
  z-index: 1;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center center;
  display: block;
}

.ultah-slide-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.15rem 1.25rem;
  min-width: 0;
  height: 100%;
  overflow: hidden;
}

.ultah-slide-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: fit-content;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
  margin-bottom: 0.55rem;
}

.ultah-slide-name {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.25;
}

.ultah-slide-meta {
  list-style: none;
  margin: 0 0 0.55rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.ultah-slide-meta li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.ultah-slide-meta li i {
  color: var(--primary);
  font-size: 0.95rem;
  flex-shrink: 0;
}

.ultah-slide-wish {
  margin: 0 0 0.85rem;
  font-size: 0.8rem;
  color: var(--text-light);
  line-height: 1.45;
}

.ultah-slide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.btn-wa-ultah {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff !important;
  background: linear-gradient(135deg, #25d366, #1da851);
  border: none;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-wa-ultah:hover {
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.42);
}

.btn-wa-ultah i {
  font-size: 1.05rem;
}

@media (max-width: 767.98px) {
  .ultah-slider-section {
    --ultah-card-h: 240px;
  }

  .ultah-slide-body {
    padding: 0.85rem 0.95rem;
  }

  .ultah-slide-name {
    font-size: 1.02rem;
  }

  .ultah-slide-wish {
    display: none;
  }
}

@media (max-width: 575.98px) {
  .ultah-slider-section {
    --ultah-card-h: 220px;
    padding-bottom: 0.95rem;
  }

  .ultah-slider-head {
    flex-wrap: wrap;
    padding: 0.85rem 0.95rem;
  }

  .ultah-slider-meta {
    width: 100%;
    justify-content: space-between;
  }

  .ultah-birthday-carousel {
    padding: 0 0.75rem;
  }

  .ultah-carousel-dots {
    padding: 0 0.75rem;
  }

  .ultah-slide-name {
    font-size: 0.92rem;
    margin-bottom: 0.35rem;
  }

  .ultah-slide-meta li {
    font-size: 0.72rem;
  }

  .ultah-slide-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .ultah-slide-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ---- Legacy ultah list (compat) ---- */
.ultah-card-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.ultah-list-panel {
  flex: 1;
  overflow-y: auto;
  max-height: 320px;
  -webkit-overflow-scrolling: touch;
}

.ultah-list-panel .ultah-item {
  font-size: 0.875rem;
  padding: 0.65rem 1rem;
}

.ultah-list-panel .birthday-list-item {
  flex-wrap: wrap;
  gap: 0.35rem;
}

/* ---- Buku Yasin — kartu promo dashboard ---- */
.dash-yasin-section {
  margin-top: 0.25rem;
}

.yasin-promo-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.35rem;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow 0.22s ease, transform 0.22s ease;
}

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

.yasin-promo-visual {
  position: relative;
  flex-shrink: 0;
}

.yasin-promo-cover {
  width: 5.5rem;
  height: 7rem;
  border-radius: 0.65rem;
  background: linear-gradient(145deg, var(--primary-dark), var(--primary));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.35rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
  position: relative;
  z-index: 1;
}

.yasin-promo-deco {
  position: absolute;
  border-radius: 999px;
  background: var(--primary-light);
  opacity: 0.55;
}

.yasin-promo-deco-1 {
  width: 2.5rem;
  height: 2.5rem;
  top: -0.35rem;
  right: -0.5rem;
}

.yasin-promo-deco-2 {
  width: 1.5rem;
  height: 1.5rem;
  bottom: -0.25rem;
  left: -0.35rem;
}

.yasin-promo-body {
  min-width: 0;
}

.yasin-promo-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--primary-light);
  color: var(--primary);
}

.yasin-promo-title {
  margin: 0.55rem 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
}

.yasin-promo-text {
  margin: 0 0 0.85rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 520px;
}

.yasin-promo-btn {
  font-weight: 600;
  padding: 0.45rem 1.15rem;
  box-shadow: 0 4px 14px var(--primary-ring);
}

@media (max-width: 767.98px) {
  .yasin-promo-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 1.1rem 1rem;
    gap: 1rem;
  }

  .yasin-promo-visual {
    justify-self: center;
  }

  .yasin-promo-text {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 575.98px) {
  .yasin-promo-cover {
    width: 4.75rem;
    height: 6rem;
    font-size: 2rem;
  }

  .yasin-promo-title {
    font-size: 1.05rem;
  }

  .yasin-promo-btn {
    width: 100%;
    justify-content: center;
  }
}

.hadis-card,
.yasiin-card,
.ultah-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  height: 100%;
  transition: box-shadow 0.22s ease, transform 0.22s ease;
}

.hadis-card-body {
  --hadis-arab-base: 1.3rem;
  --hadis-indo-base: 0.875rem;
  --hadis-scale: 1;
  padding: 1.25rem 1.35rem 1.35rem;
  background: var(--hadis-body-bg, linear-gradient(165deg, var(--primary-light) 0%, var(--surface) 45%, var(--bg) 100%));
  border-top: 1px solid var(--primary-ring);
}

.hadis-header-tools {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.hadis-card-body .hadis-bismillah {
  width: 100%;
  margin: 0 0 1rem;
  text-align: center;
  font-family: 'Amiri', 'Traditional Arabic', serif;
  font-size: calc(1.05rem * var(--hadis-scale, 1));
  line-height: 1.6;
  color: var(--primary) !important;
  direction: rtl;
}

.hadis-font-controls {
  display: flex;
  gap: 0.35rem;
}

.hadis-font-btn {
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: var(--header-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.hadis-font-btn:hover {
  background: rgba(255, 255, 255, 0.32);
  border-color: rgba(255, 255, 255, 0.45);
}

.hadis-font-btn:active {
  transform: scale(0.94);
}

.hadis-meta {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--primary-ring);
}

.yasiin-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

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

.hadis-card-inner,
.yasiin-card-inner,
.ultah-card-inner {
  padding: 1.2rem 1.35rem;
}

.hadis-header,
.yasiin-header,
.ultah-header {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.hadis-header > :not(.header-ornament),
.yasiin-header > :not(.header-ornament),
.ultah-header > :not(.header-ornament) {
  position: relative;
  z-index: 1;
}

.hadis-badge,
.yasiin-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--primary-light);
  color: var(--primary);
}

.hadis-title,
.yasiin-title {
  margin: 0.5rem 0 0;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text);
}

.hadis-bismillah {
  font-family: 'Amiri', 'Traditional Arabic', serif;
  font-size: 1rem;
  color: var(--primary);
  text-align: right;
}

.hadis-divider,
.yasiin-divider,
.ultah-divider {
  height: 1px;
  background: var(--border);
  margin: 0.85rem 0;
}

.hadis-arab {
  font-family: 'Amiri', 'Traditional Arabic', serif;
  font-size: calc(var(--hadis-arab-base, 1.3rem) * var(--hadis-scale, 1));
  line-height: 1.85;
  direction: rtl;
  text-align: right;
  color: var(--text);
  margin-bottom: 0.65rem;
}

.hadis-indo,
.yasiin-subtitle,
.ultah-subtitle {
  color: var(--text-muted);
  margin: 0;
  font-size: calc(var(--hadis-indo-base, 0.875rem) * var(--hadis-scale, 1));
  line-height: 1.65;
}

.hadis-label {
  color: var(--text-light);
  font-size: 0.75rem;
  font-weight: 600;
}

.hadis-source {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: var(--primary-light);
  color: var(--primary-dark);
  border: 1px solid var(--primary-ring);
  font-size: 0.78rem;
  font-weight: 600;
}

.yasiin-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding: 0.5rem 1rem;
  background: var(--primary);
  color: #fff !important;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
}

.yasiin-cta-icon {
  width: 1.75rem !important;
  height: 1.75rem !important;
  font-size: 0.95rem !important;
  background: rgba(255, 255, 255, 0.2) !important;
  border-radius: 999px !important;
}

/* ---- Birthday ---- */
.dash-birthday-alert {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  border-radius: var(--radius-lg);
  padding: 1rem 1.15rem;
  box-shadow: var(--shadow-sm);
}

.dash-birthday-alert-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
}

.dash-birthday-item {
  padding-bottom: 0.65rem;
  margin-bottom: 0.65rem;
  border-bottom: 1px solid rgba(251, 191, 36, 0.35);
}

.dash-birthday-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.ultah-card {
  max-width: none;
  margin: 0;
}

.ultah-header-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ultah-title {
  margin: 0;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
}

.ultah-item {
  background: var(--bg);
  color: var(--text);
  border-color: var(--border);
}

.ultah-item .badge {
  background: var(--primary) !important;
}

/* ---- Legacy compat (themes.css header ornaments) ---- */
.stat-card-islami,
.quick-card,
.quick-card-link {
  display: none;
}

/* ---- Responsive ---- */
@media (min-width: 992px) {
  .dash-content {
    padding: 1.25rem 0 0;
  }

  .dash-quick-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
  }

  .dash-quick-card {
    min-height: 4.75rem;
    padding: 0.95rem 1rem;
  }
}

@media (max-width: 767.98px) {
  .dash-action-bar {
    margin-top: -1.25rem;
    padding: 0 0.65rem 0.15rem;
  }

  .dash-action-bar-inner {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .dash-action-card {
    padding: 0.65rem 0.8rem;
  }

  .dash-action-card-search {
    position: relative;
    z-index: 15;
  }

  .dash-action-card-search:has(.search-results.show) {
    z-index: 30;
  }

  .dash-search-wrap .search-results {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    min-width: 0;
    width: 100%;
    margin-top: 0.45rem;
    max-height: min(45vh, 280px);
  }

  .dash-action-card-wa {
    justify-content: space-between;
    padding: 0.65rem 0.85rem;
    position: relative;
    z-index: 10;
  }

  .dash-action-wa-label {
    font-size: 0.78rem;
  }
}

@media (max-width: 575.98px) {
  .dash-action-bar {
    margin-top: -1rem;
  }

  .dash-action-bar-inner {
    padding: 0;
    gap: 0.55rem;
  }

  .dash-action-card-wa {
    flex-direction: row;
  }

  .dash-search-wrap .form-control {
    font-size: 0.9rem;
  }
}

@media (max-width: 991.98px) {
  .dash-main-layout,
  .dash-panels-grid {
    grid-template-columns: 1fr;
  }

  .dash-main-layout--solo .dash-main-right {
    max-width: none;
  }

  .dash-moment-body {
    max-height: none;
  }

  .dash-main-right .ultah-slider-sidebar {
    --ultah-card-h: 260px;
  }

  .dash-main-right .ultah-slider-sidebar .ultah-slide-card {
    grid-template-columns: 42% 1fr;
    grid-template-rows: none;
  }

  .dash-main-right .ultah-slider-sidebar .ultah-slide-photo {
    min-height: 0;
    max-height: none;
  }

  .ultah-list-panel {
    max-height: none;
  }

  .yasiin-body-row {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 1.15rem;
    padding-right: 1.15rem;
  }

  .dash-carousel-img {
    height: clamp(180px, 42vw, 280px);
  }
}

@media (max-width: 767.98px) {
  .dash-stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.65rem;
  }

  .dash-stat-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0.85rem 0.65rem;
  }

  .dash-stat-icon {
    width: 2.35rem;
    height: 2.35rem;
    font-size: 1.05rem;
  }

  .dash-stat-value {
    font-size: 1.45rem;
  }

  .dash-stat-sub {
    display: none;
  }

  .dash-welcome {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .dash-quick-section {
    padding: 0.9rem;
  }

  .dash-quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .dash-quick-card {
    min-height: 4.25rem;
    padding: 0.75rem 0.8rem;
    gap: 0.65rem;
  }

  .dash-quick-icon {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 1.05rem;
  }

  .dash-quick-title {
    font-size: 0.84rem;
  }

  .dash-quick-sub {
    font-size: 0.7rem;
    -webkit-line-clamp: 1;
  }
}

@media (max-width: 575.98px) {
  .dash-stats-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .dash-stat-card {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    padding: 0.95rem 1rem;
  }

  .dash-stat-sub {
    display: block;
  }

  .dash-stat-value {
    font-size: 1.65rem;
  }

  .dash-content {
    gap: 1rem;
    padding-top: 1rem;
  }

  .dash-carousel-img {
    height: 200px;
  }

  .dash-carousel-control {
    display: none;
  }

  .hadis-card-body {
    --hadis-arab-base: 1.15rem;
    padding: 1rem 1rem 1.1rem;
  }

  .hadis-header-tools {
    margin-left: 0;
  }

  .hadis-card-body .hadis-bismillah {
    font-size: calc(0.95rem * var(--hadis-scale, 1));
  }

  .dash-moment-header {
    flex-wrap: wrap;
    padding: 0.9rem;
  }

  .dash-moment-header-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .dash-moment-body {
    max-height: none;
  }

  .dash-welcome strong {
    font-size: 0.98rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dash-animate-in,
  .dash-icon-anim {
    animation: none !important;
  }

  .dash-stat-card:hover,
  .dash-quick-card:hover,
  .yasiin-card-link:hover .yasiin-card {
    transform: none;
  }
}
