/* =========================================
   HEADER (GLOBAL)
   ========================================= */
.pwa-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pwa-header-right {
  display: flex;
  gap: .4rem;
}

/* =========================================
   HOME SECTION & HERO
   ========================================= */
#homeSection {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.home-hero {
  background: linear-gradient(135deg, #0B7A75 0%, #0f766e 50%, #134e4a 100%);
  border-radius: 1.5rem;
  padding: 1.5rem 1.2rem;
  color: #fff;
  box-shadow: 0 20px 40px rgba(11,122,117,.25), 0 8px 16px rgba(11,122,117,.15);
  position: relative;
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
}

.home-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255,255,255,.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.home-hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,.05) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.home-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 48px rgba(11,122,117,.3), 0 12px 20px rgba(11,122,117,.2);
}

.home-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: .5rem;
  position: relative;
  z-index: 1;
}

.home-hero-badge {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  padding: .4rem .75rem;
  font-size: .65rem;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  backdrop-filter: blur(10px);
  font-weight: 500;
  animation: fadeInDown .6s ease;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.home-hero-title {
  font-size: 1.3rem;
  font-weight: 800;
  margin-top: .5rem;
  letter-spacing: -.02em;
  line-height: 1.3;
  animation: fadeInUp .6s ease .2s both;
}

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

.home-hero-text {
  font-size: .75rem;
  opacity: .85;
  max-width: 18rem;
  line-height: 1.5;
  margin-top: .3rem;
  animation: fadeInUp .6s ease .3s both;
}

.home-hero-actions {
  display: flex;
  gap: .5rem;
  margin-top: .8rem;
  position: relative;
  z-index: 1;
  animation: fadeInUp .6s ease .4s both;
}

.home-hero-actions .btn {
  border-radius: 999px;
  font-weight: 600;
  padding: .6rem 1.2rem;
  font-size: .75rem;
  transition: all .3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
}

.home-hero-actions .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,.15);
}

.home-hero-actions .btn:active {
  transform: translateY(0);
}

.home-hero-stats {
  display: flex;
  gap: .4rem;
}

.home-hero-stat {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: .85rem;
  padding: .5rem .65rem;
  text-align: center;
  min-width: 70px;
  backdrop-filter: blur(10px);
  transition: all .3s ease;
}

.home-hero-stat:hover {
  background: rgba(255,255,255,.15);
  transform: scale(1.05);
}

.home-hero-stat .label {
  font-size: .6rem;
  opacity: .75;
  font-weight: 500;
}

.home-hero-stat .value {
  font-weight: 700;
  font-size: .9rem;
  margin-top: .1rem;
}

/* =========================================
   FEATURE STRIP (HOME)
   ========================================= */
.feature-strip {
  display: flex;
  gap: .6rem;
  overflow-x: auto;
  padding-bottom: .3rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(148,163,184,.3) transparent;
}

.feature-strip::-webkit-scrollbar {
  height: 6px;
}

.feature-strip::-webkit-scrollbar-thumb {
  background: rgba(148,163,184,.3);
  border-radius: 10px;
}

.feature-card {
  min-width: 90px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(2,6,23,.08);
  border-radius: 1.2rem;
  padding: .7rem .65rem .55rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  text-align: left;
  box-shadow: 0 8px 24px rgba(2,6,23,.08), 0 2px 6px rgba(2,6,23,.04);
  cursor: pointer;
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(11,122,117,.3), transparent);
  opacity: 0;
  transition: opacity .3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(2,6,23,.12), 0 4px 12px rgba(2,6,23,.08);
  border-color: rgba(11,122,117,.2);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card:active {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(2,6,23,.1);
}

.feature-icon {
  width: 38px;
  height: 38px;
  border-radius: 1rem;
  display: grid;
  place-items: center;
  font-size: 1rem;
  transition: transform .3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
}

/* warna ikon dengan gradient modern */
.bg-f1 { 
  background: linear-gradient(135deg, #0B7A75 0%, #0d9488 100%);
  color: #fff;
}
.bg-f2 { 
  background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
  color: #fff;
}
.bg-f3 { 
  background: linear-gradient(135deg, #fb7185 0%, #f472b6 100%);
  color: #fff;
}
.bg-f4 { 
  background: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
  color: #fff;
}
.bg-f5 { 
  background: linear-gradient(135deg, #6366f1 0%, #818cf8 100%);
  color: #fff;
}
.bg-f6 { 
  background: linear-gradient(135deg, #0B7A75 0%, #22c55e 100%);
  color: #fff;
}
.bg-f7 { 
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #92400e;
}
.bg-f8-pine {
  background: linear-gradient(135deg, #14532D 0%, #22C55E 100%);
  color: #fff;
}

/* icon khusus Video */
.feature-icon-dark {
  background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 50%, #1e40af 100%);
  color: #fff;
  box-shadow: 0 8px 24px rgba(14,165,233,.3), inset 0 2px 8px rgba(255,255,255,.2);
  border: 1px solid rgba(255,255,255,.2);
}

.feature-card:hover .feature-icon-dark {
  transform: scale(1.1) rotate(5deg);
  filter: brightness(1.1);
}

.feature-label {
  font-size: .7rem;
  font-weight: 700;
  color: #0b1220;
  letter-spacing: -.01em;
}

.feature-sub {
  font-size: .6rem;
  color: #64748b;
  line-height: 1.3;
}

body.dark-mode .feature-card {
  background: linear-gradient(135deg, rgba(15,23,42,.4) 0%, rgba(15,23,42,.3) 100%);
  border-color: rgba(148,163,184,.1);
}

body.dark-mode .feature-label {
  color: #f1f5f9;
}

/* =========================================
   FORM PERASAAN (HOME)
   ========================================= */
.feeling-box {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(148,163,184,.1);
  border-radius: 1.3rem;
  padding: 1rem 1rem 1.1rem;
  box-shadow: 0 12px 32px rgba(15,23,42,.08), 0 4px 12px rgba(15,23,42,.04);
  transition: all .3s ease;
}

.feeling-box:hover {
  box-shadow: 0 16px 40px rgba(15,23,42,.12), 0 6px 16px rgba(15,23,42,.06);
  transform: translateY(-2px);
}

.feeling-box-label {
  font-size: .75rem;
  font-weight: 700;
  margin-bottom: .4rem;
  color: #0f172a;
  letter-spacing: -.01em;
}

.feeling-box small {
  font-size: .62rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.feeling-input-group {
  display: flex;
  gap: .5rem;
  margin-top: .65rem;
}

.feeling-input-group input {
  flex: 1;
  border-radius: .85rem;
  border: 1.5px solid rgba(148,163,184,.2);
  padding: .65rem .85rem;
  font-size: .7rem;
  transition: all .3s ease;
}

.feeling-input-group input:focus {
  border-color: #0B7A75;
  box-shadow: 0 0 0 3px rgba(11,122,117,.1);
  outline: none;
}

.feeling-input-group button {
  border-radius: .85rem;
  padding: .65rem 1rem;
  font-weight: 600;
  transition: all .3s ease;
  box-shadow: 0 4px 12px rgba(11,122,117,.2);
}

.feeling-input-group button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(11,122,117,.3);
}

/* =========================================
   AYAT PILIHAN (HOME)
   ========================================= */
.random-ayat {
  background: linear-gradient(135deg, rgba(11,122,117,.12) 0%, rgba(255,255,255,1) 60%);
  border: 1px solid rgba(11,122,117,.15);
  border-radius: 1.3rem;
  padding: 1rem 1rem .9rem;
  display: flex;
  gap: .8rem;
  align-items: flex-start;
  box-shadow: 0 12px 32px rgba(11,122,117,.08);
  transition: all .3s ease;
}

.random-ayat:hover {
  box-shadow: 0 16px 40px rgba(11,122,117,.12);
  transform: translateY(-2px);
}

body.dark-mode .random-ayat {
  background: linear-gradient(135deg, rgba(11,122,117,.15) 0%, rgba(15,23,42,.4) 60%);
}

.random-ayat-badge {
  min-width: 26px;
  height: 26px;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(11,122,117,.15) 0%, rgba(11,122,117,.08) 100%);
  border: 1px solid rgba(11,122,117,.3);
  display: grid;
  place-items: center;
  font-size: .7rem;
  color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(11,122,117,.15);
  transition: transform .3s ease;
}

.random-ayat:hover .random-ayat-badge {
  transform: rotate(15deg) scale(1.1);
}

.random-ayat-body { flex: 1; }

.random-ayat-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  margin-bottom: .4rem;
}

.random-ayat-meta-title {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: -.01em;
}

.random-ayat-arab {
  font-family: "LPMQ Isep Misbah", serif;
  direction: rtl;
  text-align: right;
  font-size: 1.35rem;
  line-height: 1.9;
  margin-bottom: .3rem;
}

.random-ayat-trans {
  font-size: .65rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.random-ayat-actions {
  margin-top: .5rem;
  display: flex;
  gap: .45rem;
}

.random-ayat-actions .btn {
  font-size: .6rem;
  border-radius: .75rem;
  padding: .45rem .85rem;
  font-weight: 600;
  transition: all .3s ease;
}

.random-ayat-actions .btn:hover {
  transform: translateY(-2px);
}

/* =========================================
   SHALAT WIDGET (HOME)
   ========================================= */
.home-shalat {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 1.3rem;
  border: 1px solid rgba(148,163,184,.1);
  padding: 1rem 1rem .9rem;
  box-shadow: 0 12px 32px rgba(15,23,42,.08), 0 4px 12px rgba(15,23,42,.04);
  transition: all .3s ease;
}

.home-shalat:hover {
  box-shadow: 0 16px 40px rgba(15,23,42,.12), 0 6px 16px rgba(15,23,42,.06);
  transform: translateY(-2px);
}

.home-shalat-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .5rem;
}

.home-shalat-title {
  font-weight: 700;
  font-size: .75rem;
  color: #0f172a;
  letter-spacing: -.01em;
}

.home-shalat-times {
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
}

.home-shalat-times .badge {
  background: linear-gradient(135deg, rgba(11,122,117,.1) 0%, rgba(11,122,117,.08) 100%);
  border: 1px solid rgba(11,122,117,.25);
  font-weight: 600;
  color: #0f172a;
  padding: .4rem .7rem;
  border-radius: .7rem;
  font-size: .65rem;
  transition: all .3s ease;
}

.home-shalat-times .badge:hover {
  background: linear-gradient(135deg, rgba(11,122,117,.15) 0%, rgba(11,122,117,.12) 100%);
  transform: translateY(-1px);
}

body.dark-mode .home-shalat {
  background: linear-gradient(135deg, rgba(15,23,42,.4) 0%, rgba(15,23,42,.35) 100%);
  border-color: rgba(148,163,184,.1);
}

body.dark-mode .home-shalat-title {
  color: #f1f5f9;
}

body.dark-mode .home-shalat-times .badge {
  color: #e2e8f0;
}

/* =========================================
   CONTINUE / LANJUTKAN BACAAN
   ========================================= */
#continueReadingContainer {
  width: 100%;
}

.continue-card {
  background: linear-gradient(135deg, rgba(11,122,117,.12) 0%, rgba(11,122,117,.08) 100%);
  border: 1px solid rgba(11,122,117,.2);
  border-radius: 1.3rem;
  padding: .9rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .85rem;
  box-shadow: 0 12px 32px rgba(11,122,117,.12), 0 4px 12px rgba(11,122,117,.06);
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.continue-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #0B7A75, #22c55e);
  opacity: 0;
  transition: opacity .3s ease;
}

.continue-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(11,122,117,.18), 0 6px 16px rgba(11,122,117,.1);
}

.continue-card:hover::before {
  opacity: 1;
}

body.dark-mode .continue-card {
  background: linear-gradient(135deg, rgba(15,23,42,.45) 0%, rgba(15,23,42,.4) 100%);
  border-color: rgba(11,122,117,.15);
}

.continue-label {
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #0B7A75;
  margin-bottom: .1rem;
  font-weight: 700;
}

body.dark-mode .continue-label {
  color: #5eead4;
}

.continue-title {
  font-weight: 700;
  font-size: .9rem;
  color: #0f172a;
  letter-spacing: -.01em;
  line-height: 1.3;
}

body.dark-mode .continue-title {
  color: #f1f5f9;
}

.continue-sub {
  font-size: .65rem;
  color: rgba(15,23,42,.65);
  margin-top: .1rem;
}

body.dark-mode .continue-sub {
  color: #94a3b8;
}

.continue-card .btn {
  width: 44px;
  height: 44px;
  border-radius: 1rem;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  box-shadow: 0 6px 16px rgba(11,122,117,.25);
  transition: all .3s ease;
}

.continue-card .btn:hover {
  transform: translateX(4px);
  box-shadow: 0 8px 20px rgba(11,122,117,.35);
}

@media (max-width: 480px) {
  .continue-card { gap: .7rem; }
  .continue-title { font-size: .85rem; }
}

/* =========================================
   QUICK SURAH STRIP (HOME)
   ========================================= */
.quick-surah-strip {
  background: linear-gradient(135deg, rgba(255,255,255,.8) 0%, rgba(248,250,252,.9) 100%);
  border: 1px solid rgba(148,163,184,.15);
  border-radius: 1.3rem;
  padding: 1rem 1rem .8rem;
  box-shadow: 0 12px 32px rgba(15,23,42,.08);
  transition: all .3s ease;
}

.quick-surah-strip:hover {
  box-shadow: 0 16px 40px rgba(15,23,42,.12);
}

.quick-surah-title {
  font-weight: 700;
  font-size: .85rem;
  color: #0f172a;
  letter-spacing: -.01em;
  margin-bottom: .6rem;
}

.quick-surah-list {
  display: flex;
  gap: .6rem;
  overflow-x: auto;
  padding-bottom: .3rem;
  scrollbar-width: thin;
}

.quick-surah-item {
  border: 0;
  background: linear-gradient(135deg, rgba(11,122,117,.1) 0%, rgba(11,122,117,.08) 100%);
  color: inherit;
  border-radius: 1rem;
  padding: .55rem .85rem;
  display: flex;
  flex-direction: column;
  min-width: 100px;
  cursor: pointer;
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(11,122,117,.08);
  border: 1px solid rgba(11,122,117,.15);
}

.quick-surah-item:hover {
  background: linear-gradient(135deg, rgba(11,122,117,.18) 0%, rgba(11,122,117,.12) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(11,122,117,.15);
}

.quick-surah-item:active {
  transform: translateY(0);
}

.qs-name {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: -.01em;
}

.qs-meta {
  font-size: .63rem;
  opacity: .75;
  margin-top: .1rem;
}

body.dark-mode .quick-surah-strip {
  background: linear-gradient(135deg, rgba(15,23,42,.4) 0%, rgba(15,23,42,.35) 100%);
}

body.dark-mode .quick-surah-title {
  color: #f1f5f9;
}

/* =========================================
   VIDEO SECTION STYLES
   ========================================= */
.home-video-section {
  margin: 1.5rem 0;
}

.home-video-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .8rem;
}

.home-video-title {
  font-size: .9rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -.01em;
}

.home-video-linkall {
  font-size: .7rem;
  color: #0B7A75;
  font-weight: 600;
  text-decoration: none;
  transition: all .3s ease;
}

.home-video-linkall:hover {
  color: #0d9488;
  transform: translateX(2px);
}

.home-video-rail {
  position: relative;
}

.hv-track {
  display: flex;
  gap: .8rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  padding-bottom: .5rem;
}

.hv-card {
  min-width: 160px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15,23,42,.08);
  transition: all .3s ease;
  border: 1px solid rgba(148,163,184,.08);
}

.hv-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(15,23,42,.15);
}

.hv-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.hv-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.hv-card:hover .hv-thumb img {
  transform: scale(1.05);
}

.badge-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: rgba(11,122,117,.9);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
  font-size: 1rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
  transition: all .3s ease;
}

.hv-card:hover .badge-play {
  background: rgba(11,122,117,1);
  transform: translate(-50%, -50%) scale(1.1);
}

.hv-title {
  padding: .7rem .8rem .3rem;
  font-size: .7rem;
  font-weight: 600;
  line-height: 1.3;
  color: #0f172a;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hv-sub {
  padding: 0 .8rem .7rem;
  font-size: .6rem;
  color: #64748b;
}

.hv-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,.95);
  border: 1px solid rgba(148,163,184,.2);
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 2;
  font-size: 1rem;
  color: #0B7A75;
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
  transition: all .3s ease;
}

.hv-nav:hover {
  background: rgba(11,122,117,.95);
  color: white;
  transform: translateY(-50%) scale(1.1);
}

.hv-prev {
  left: -12px;
}

.hv-next {
  right: -12px;
}

body.dark-mode .hv-card {
  background: linear-gradient(135deg, rgba(15,23,42,.4) 0%, rgba(15,23,42,.35) 100%);
}

body.dark-mode .hv-title {
  color: #f1f5f9;
}

body.dark-mode .hv-nav {
  background: rgba(15,23,42,.95);
  border-color: rgba(148,163,184,.1);
  color: #5eead4;
}

body.dark-mode .hv-nav:hover {
  background: rgba(11,122,117,.95);
  color: white;
}

/* =========================================
   SMOOTH SCROLLING & ANIMATIONS
   ========================================= */
* {
  -webkit-tap-highlight-color: transparent;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* Loading shimmer effect */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.loading-shimmer {
  animation: shimmer 2s infinite;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.3) 50%,
    rgba(255,255,255,0) 100%
  );
  background-size: 1000px 100%;
}

/* Pulse animation untuk interactive elements */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: .8;
  }
}

/* =========================================
   RESPONSIVE ADJUSTMENTS
   ========================================= */
@media (max-width: 640px) {
  .home-hero {
    padding: 1.2rem 1rem;
  }
  
  .home-hero-title {
    font-size: 1.15rem;
  }
  
  .home-hero-text {
    font-size: .7rem;
  }
  
  .home-hero-actions .btn {
    font-size: .7rem;
    padding: .55rem 1rem;
  }
  
  .feature-card {
    min-width: 85px;
  }
  
  .feature-icon {
    width: 36px;
    height: 36px;
    font-size: .95rem;
  }
  
  .hv-card {
    min-width: 140px;
  }
}

/* Dark mode improvements */
body.dark-mode {
  --color-surface: rgba(15,23,42,.35);
  --color-text-muted: #94a3b8;
}

body.dark-mode .feeling-box {
  background: linear-gradient(135deg, rgba(15,23,42,.45) 0%, rgba(15,23,42,.4) 100%);
  border-color: rgba(148,163,184,.1);
}

body.dark-mode .feeling-box-label {
  color: #f1f5f9;
}

body.dark-mode .feeling-input-group input {
  background: rgba(15,23,42,.3);
  border-color: rgba(148,163,184,.15);
  color: #f1f5f9;
}

body.dark-mode .feeling-input-group input:focus {
  border-color: #5eead4;
  box-shadow: 0 0 0 3px rgba(94,234,212,.1);
}

/* Micro-interactions */
.btn {
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.3);
  transform: translate(-50%, -50%);
  transition: width .6s, height .6s;
}

.btn:active::before {
  width: 300px;
  height: 300px;
}

/* Smooth transitions for theme switching */
.home-hero,
.feature-card,
.feeling-box,
.home-shalat,
.continue-card,
.quick-surah-strip,
.random-ayat,
.hv-card {
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease, transform .3s ease;
}

/* Focus visible for accessibility */
*:focus-visible {
  outline: 2px solid #0B7A75;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Custom scrollbar for webkit browsers */
.feature-strip::-webkit-scrollbar,
.quick-surah-list::-webkit-scrollbar,
.hv-track::-webkit-scrollbar {
  height: 6px;
}

.feature-strip::-webkit-scrollbar-track,
.quick-surah-list::-webkit-scrollbar-track,
.hv-track::-webkit-scrollbar-track {
  background: transparent;
}

.feature-strip::-webkit-scrollbar-thumb,
.quick-surah-list::-webkit-scrollbar-thumb,
.hv-track::-webkit-scrollbar-thumb {
  background: rgba(148,163,184,.3);
  border-radius: 10px;
}

.feature-strip::-webkit-scrollbar-thumb:hover,
.quick-surah-list::-webkit-scrollbar-thumb:hover,
.hv-track::-webkit-scrollbar-thumb:hover {
  background: rgba(148,163,184,.5);
}

/* Glassmorphism effect option */
.glass-effect {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

body.dark-mode .glass-effect {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.2);
}