/* ===========================================
   pages.css - Sub-Page Styles
   =========================================== */

/* ----- Page Container ----- */
#page-container {
  min-height: 100vh;
  padding-bottom: calc(var(--nav-height) + 30px);
}

/* ----- Page Header ----- */
.page-header {
  position: sticky;
  top: 0;
  background: rgba(245, 239, 224, 0.98);
  backdrop-filter: blur(20px);
  padding: 15px 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  border-bottom: 1px solid var(--border-gold);
  z-index: 50;
  box-shadow: 0 2px 8px rgba(139,100,60,0.1);
}

.page-header h1 {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
}

.back-btn {
  background: var(--bg-elevated);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.back-btn:hover {
  background: var(--bg-elevated);
}

.header-spacer {
  width: 36px;
}

/* ----- Page Content ----- */
.page-content {
  padding: 20px;
  max-width: 800px;
  margin: 0 auto;
}

/* ----- Search Bar ----- */
.search-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.search-bar input {
  flex: 1;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 14px;
}

.search-bar input::placeholder {
  color: var(--text-muted);
}

/* ----- Filter Bar ----- */
.filter-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  overflow-x: auto;
  padding-bottom: 5px;
}

.filter-btn {
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s;
}

.filter-btn.active {
  background: rgba(26, 92, 58, 0.12);
  border-color: var(--primary);
  color: var(--primary);
}

/* ----- Filter Chips (for Jobs) ----- */
.filter-chips {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.chip {
  padding: 8px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  color: var(--text-secondary);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s;
}

.chip.active {
  background: rgba(26, 92, 58, 0.12);
  border-color: var(--primary);
  color: var(--primary);
}

/* ----- Tabs Bar ----- */
.tabs-bar {
  display: flex;
  gap: 5px;
  margin-bottom: 20px;
  overflow-x: auto;
  padding-bottom: 5px;
}

.tabs-bar .tab {
  padding: 10px 16px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.3s;
}

.tabs-bar .tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* ----- List Container ----- */
.list-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ----- List Item ----- */
.list-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 15px;
  display: flex;
  gap: 12px;
  cursor: pointer;
  transition: all 0.3s;
}

.list-item:hover {
  background: var(--bg-card-warm);
  transform: translateX(5px);
}

.item-icon {
  font-size: 28px;
  width: 45px;
  height: 45px;
  background: rgba(26, 92, 58, 0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.item-info {
  flex: 1;
  min-width: 0;
}

.item-info h4 {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-info .name-jp {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.item-info .address {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.item-info .tag {
  display: inline-block;
  padding: 3px 8px;
  background: var(--bg-elevated);
  border-radius: 12px;
  font-size: 10px;
  margin-right: 5px;
  margin-bottom: 4px;
}

.item-info .rating {
  color: #f39c12;
  font-size: 12px;
}

.item-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}

.verified-badge {
  color: var(--primary);
  font-size: 16px;
}

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

/* ----- Job Card ----- */
.job-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 15px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.3s;
}

.job-card:hover {
  background: var(--bg-card-warm);
}

.job-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.job-header h4 {
  font-size: 16px;
  font-weight: 500;
}

.job-type {
  padding: 4px 10px;
  background: rgba(52, 152, 219, 0.2);
  color: #3498db;
  border-radius: 12px;
  font-size: 11px;
}

.job-card .company {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.job-card .location,
.job-card .salary {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.muslim-friendly-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.mf-tag {
  padding: 4px 10px;
  background: rgba(46, 204, 113, 0.15);
  color: var(--primary);
  border-radius: 12px;
  font-size: 11px;
}

.job-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border-color);
}

.job-footer .verified {
  color: var(--primary);
  font-size: 12px;
}

.job-footer .date {
  font-size: 11px;
  color: var(--text-muted);
}

/* ----- Post Card ----- */
.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 15px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.3s;
}

.post-card:hover {
  background: var(--bg-card-warm);
}

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

.author-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2ecc71, #27ae60);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
}

.author-name {
  font-weight: 500;
  font-size: 14px;
}

.post-time {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
}

.category-tag {
  padding: 4px 10px;
  background: var(--bg-elevated);
  border-radius: 12px;
  font-size: 11px;
  color: var(--text-secondary);
}

.post-title {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 8px;
}

.post-content {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.post-image {
  margin-top: 12px;
  border-radius: 12px;
  overflow: hidden;
}

.post-image img {
  width: 100%;
  display: block;
}

.post-footer {
  display: flex;
  gap: 15px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border-color);
}

.post-footer .stat {
  font-size: 13px;
  color: var(--text-muted);
}

/* ----- Scanner Page ----- */
.scanner-section {
  text-align: center;
}

.scanner-preview {
  width: 100%;
  max-width: 350px;
  height: 250px;
  margin: 0 auto 20px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}

.scanner-placeholder {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.scanner-placeholder .scanner-icon {
  font-size: 48px;
  margin-bottom: 10px;
}

.scanner-placeholder p {
  font-size: 13px;
  color: var(--text-muted);
}

#scanner-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

#scanner-video.active {
  display: block;
}

.scanner-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  border: 2px solid var(--primary);
  border-radius: 10px;
  pointer-events: none;
}

.scanner-controls {
  margin-bottom: 20px;
}

.btn-large {
  padding: 14px 28px;
  font-size: 16px;
}

.divider {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 25px 0;
  color: var(--text-muted);
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

.manual-input {
  max-width: 350px;
  margin: 0 auto;
}

.input-group {
  display: flex;
  gap: 10px;
}

.input-group input {
  flex: 1;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 14px;
}

/* ----- Scan Result ----- */
.scan-result {
  margin-top: 25px;
}

.product-result {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
  text-align: left;
}

.product-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid;
  margin-bottom: 15px;
}

.status-icon {
  font-size: 20px;
}

.status-text {
  font-weight: 600;
  font-size: 14px;
}

.product-info h3 {
  font-size: 18px;
  margin-bottom: 5px;
}

.product-info .name-jp {
  font-size: 14px;
  color: var(--text-muted);
}

.product-info .brand {
  font-size: 13px;
  color: var(--text-secondary);
}

.haram-reason {
  background: rgba(231, 76, 60, 0.1);
  padding: 12px;
  border-radius: 10px;
  margin: 15px 0;
  font-size: 13px;
}

.ingredients {
  margin: 15px 0;
  font-size: 13px;
  color: var(--text-secondary);
}

.verification-info {
  margin: 15px 0;
  font-size: 13px;
}

.verified {
  color: var(--primary);
}

.unverified {
  color: #f39c12;
}

.proof-section {
  margin-top: 15px;
}

/* ----- Recent Scans ----- */
.recent-scans {
  margin-top: 30px;
  text-align: left;
}

.recent-scans h3 {
  font-size: 16px;
  margin-bottom: 15px;
}

.scan-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg-card);
  border-radius: 12px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

.scan-item:hover {
  background: var(--bg-card-warm);
}

.scan-status {
  font-size: 20px;
}

.scan-info {
  flex: 1;
}

.scan-name {
  display: block;
  font-size: 14px;
  font-weight: 500;
}

.scan-barcode {
  font-size: 11px;
  color: var(--text-muted);
}

.scan-arrow {
  color: var(--text-muted);
}

/* ----- Prayer Page ----- */
.location-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  background: var(--bg-card);
  border-radius: 12px;
  margin-bottom: 20px;
}

.hijri-date {
  text-align: center;
  padding: 15px;
  background: linear-gradient(135deg, rgba(46, 204, 113, 0.2), rgba(26, 92, 69, 0.3));
  border-radius: 16px;
  margin-bottom: 20px;
}

.hijri-date .hijri-day {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
}

.hijri-date .hijri-month {
  display: block;
  font-size: 18px;
  margin: 5px 0;
}

.hijri-date .hijri-year {
  font-size: 14px;
  color: var(--text-muted);
}

.prayer-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 25px;
  text-align: center;
  margin-bottom: 20px;
}

.next-prayer .label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.next-prayer .prayer-name {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
}

.next-prayer .prayer-time {
  display: block;
  font-size: 20px;
  margin: 5px 0;
}

.next-prayer .countdown {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(46, 204, 113, 0.15);
  border-radius: 20px;
  font-size: 24px;
  font-weight: 600;
  color: var(--primary);
  font-family: monospace;
  margin-top: 10px;
}

.prayer-times-full {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 25px;
}

.prayer-row {
  display: flex;
  justify-content: space-between;
  padding: 15px 20px;
  border-bottom: 1px solid var(--border-color);
}

.prayer-row:last-child {
  border-bottom: none;
}

.prayer-row .name {
  font-size: 14px;
}

.prayer-row .time {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
}

/* ----- Qibla Section ----- */
.qibla-section {
  text-align: center;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
}

.qibla-section h3 {
  margin-bottom: 20px;
}

.qibla-compass {
  width: 180px;
  height: 180px;
  margin: 0 auto 15px;
  background: linear-gradient(135deg, rgba(46, 204, 113, 0.1), rgba(26, 92, 69, 0.2));
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.compass-arrow {
  font-size: 48px;
  color: var(--primary);
  transition: transform 0.3s;
}

.compass-degree {
  font-size: 18px;
  font-weight: 600;
  margin-top: 5px;
}

.qibla-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 10px;
}

/* ----- Contribute Page ----- */
.contribute-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.contribute-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
}

.contribute-card:hover {
  background: rgba(26, 92, 58, 0.08);
  border-color: var(--primary);
  transform: translateY(-3px);
}

.contribute-card .icon {
  font-size: 32px;
  display: block;
  margin-bottom: 10px;
}

.contribute-card .title {
  display: block;
  font-weight: 500;
  font-size: 14px;
  margin-bottom: 4px;
}

.contribute-card .desc {
  font-size: 11px;
  color: var(--text-muted);
}

/* ----- Info Card ----- */
.info-card {
  background: linear-gradient(135deg, rgba(46, 204, 113, 0.15), rgba(26, 92, 69, 0.2));
  border: 1px solid rgba(46, 204, 113, 0.3);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
}

.info-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.info-card p {
  font-size: 14px;
  color: var(--text-secondary);
}

/* ----- Help/FAQ Page ----- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
}

.faq-question {
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 500;
}

.faq-question .arrow {
  transition: transform 0.3s;
  font-size: 12px;
  color: var(--text-muted);
}

.faq-item.open .faq-question .arrow {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 15px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s;
}

.faq-item.open .faq-answer {
  padding: 0 15px 15px;
  max-height: 500px;
}

.faq-answer p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.contact-section {
  margin-top: 30px;
  text-align: center;
  padding: 20px;
  background: var(--bg-card);
  border-radius: 16px;
}

.contact-section h3 {
  margin-bottom: 10px;
}

.contact-section p {
  font-size: 14px;
  color: var(--text-secondary);
}

/* ----- FAB (Floating Action Button) ----- */
.fab {
  position: fixed;
  bottom: calc(var(--nav-height) + 30px);
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border: none;
  color: var(--text-primary);
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(46, 204, 113, 0.4);
  transition: all 0.3s;
  z-index: 40;
}

.fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(46, 204, 113, 0.5);
}

/* ----- Loading & Empty States ----- */
.loading {
  text-align: center;
  padding: 40px;
  color: var(--text-muted);
}

.empty-state {
  text-align: center;
  padding: 40px;
  color: var(--text-muted);
}

.empty-state .icon {
  font-size: 48px;
  display: block;
  margin-bottom: 15px;
}

.empty-state .hint {
  font-size: 13px;
  margin-top: 5px;
}

.error {
  text-align: center;
  padding: 40px;
  color: #e74c3c;
}

/* ----- Not Found Page ----- */
.not-found {
  text-align: center;
  padding: 60px 20px;
}

.not-found .icon {
  font-size: 64px;
  display: block;
  margin-bottom: 20px;
}

.not-found h2 {
  margin-bottom: 10px;
}

.not-found p {
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* ----- Button Variants ----- */
.btn-small {
  padding: 6px 12px;
  font-size: 12px;
}

/* ----- Medicine Page ----- */
.ingredient-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: var(--bg-card);
  border-radius: 10px;
  margin-bottom: 8px;
}

.ingredient-item span {
  font-size: 20px;
}

.ingredient-item strong {
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
}

.ingredient-item p {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
}

.ingredient-item.haram {
  border-left: 3px solid #e74c3c;
}

.ingredient-item.doubtful {
  border-left: 3px solid #f39c12;
}

/* ----- Responsive ----- */
@media (max-width: 500px) {
  .contribute-options {
    grid-template-columns: 1fr;
  }
  
  .qibla-compass {
    width: 150px;
    height: 150px;
  }
  
  .compass-arrow {
    font-size: 40px;
  }
}

/* ============================================
   PHRASES PAGE
   ============================================ */

.phrases-cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 8px;
}

.phrase-cat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px 16px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.phrase-cat-card:active { transform: scale(0.96); }
.phrase-cat-card:hover { border-color: var(--primary); }

.phrase-cat-icon { font-size: 32px; }
.phrase-cat-label { font-weight: 600; font-size: 14px; }
.phrase-cat-count { font-size: 11px; color: var(--text-muted); }

.phrases-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.back-link {
  background: var(--bg-card-warm);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  color: var(--primary);
  padding: 6px 14px;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}

.phrases-list { display: flex; flex-direction: column; gap: 16px; }

.phrase-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 18px;
}

.phrase-ja {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.phrase-romaji {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 12px;
}

.phrase-tab-row {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}

.phrase-tab {
  padding: 4px 14px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.phrase-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--text-primary);
}

.phrase-trans {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.6;
}

.phrase-context {
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 12px;
  border-left: 2px solid var(--primary);
  padding-left: 8px;
}

.phrase-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.phrase-copy-btn,
.phrase-speak-btn {
  padding: 7px 14px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.phrase-copy-btn:hover,
.phrase-speak-btn:hover {
  border-color: var(--primary);
  background: rgba(46,204,113,0.1);
}

/* ============================================
   JANAZAH PAGE
   ============================================ */

.janazah-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0;
}

.janazah-tab-btn {
  padding: 10px 14px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.janazah-tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.janazah-alert {
  background: rgba(231,76,60,0.12);
  border: 1px solid rgba(231,76,60,0.35);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.janazah-steps { display: flex; flex-direction: column; gap: 14px; }

.janazah-step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 16px;
}

.janazah-step-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.janazah-step-icon { font-size: 24px; flex-shrink: 0; }

.janazah-step-num {
  font-size: 11px;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.janazah-step-title {
  font-weight: 600;
  font-size: 15px;
  color: var(--text-primary);
}

.janazah-step-actions {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.janazah-step-actions li {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.janazah-ja-hint {
  color: var(--text-muted);
  font-size: 11px;
}

.janazah-region { margin-bottom: 20px; }

.janazah-region-title {
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.janazah-cemetery-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 10px;
}

.janazah-cem-name { font-weight: 600; font-size: 14px; margin-bottom: 2px; }
.janazah-cem-alt { color: var(--text-muted); font-size: 12px; margin-bottom: 6px; }
.janazah-cem-location { color: var(--text-secondary); font-size: 13px; margin-bottom: 2px; }
.janazah-cem-address { color: var(--text-muted); font-size: 12px; margin-bottom: 6px; }
.janazah-cem-capacity { color: var(--text-muted); font-size: 12px; margin-top: 4px; }
.janazah-cem-notes { color: var(--text-muted); font-size: 12px; font-style: italic; margin-top: 6px; }

.janazah-cem-phone {
  display: inline-block;
  color: var(--primary);
  font-size: 13px;
  text-decoration: none;
  margin-bottom: 4px;
}

.janazah-cem-map {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  color: #3498db;
  text-decoration: none;
}

.janazah-emergency-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 12px;
}

.janazah-em-name { font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.janazah-em-area { color: var(--text-muted); font-size: 13px; margin-bottom: 8px; }

.janazah-em-phone {
  display: inline-block;
  background: rgba(46,204,113,0.15);
  border: 1px solid rgba(46,204,113,0.35);
  color: var(--primary);
  padding: 8px 18px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
}

.janazah-em-note {
  color: var(--text-muted);
  font-size: 12px;
  font-style: italic;
}

/* ============================================
   KONBINI HALAL TRACKER
   ============================================ */

.konbini-tab-bar {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 16px;
}

.konbini-tab-btn {
  padding: 10px 14px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.konbini-tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.konbini-filters {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.konbini-search-input {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 14px;
  box-sizing: border-box;
}

.konbini-filter-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.konbini-select {
  flex: 1;
  min-width: 100px;
  padding: 8px 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 12px;
}

.konbini-stats-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.kstat-pill {
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.kstat-green { background: rgba(34,197,94,0.15); color: #22c55e; }
.kstat-red { background: rgba(239,68,68,0.15); color: #ef4444; }
.kstat-yellow { background: rgba(245,158,11,0.15); color: #f59e0b; }
.kstat-grey { background: var(--bg-card-warm); color: var(--text-muted); }

.konbini-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.konbini-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 14px 16px;
  border-left: 4px solid var(--border-color);
}

.konbini-card.k-halal { border-left-color: #22c55e; }
.konbini-card.k-haram { border-left-color: #ef4444; }
.konbini-card.k-check { border-left-color: #f59e0b; }
.konbini-card.k-unknown { border-left-color: #6b7280; }

.konbini-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.k-badge {
  padding: 3px 10px;
  border-radius: 20px;
  color: var(--text-primary);
  font-size: 11px;
  font-weight: 700;
}

.k-store {
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg-card);
  padding: 2px 8px;
  border-radius: 10px;
}

.k-name {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 2px;
}

.k-name-ja {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.k-cat {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.k-reason {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 6px;
}

.k-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

.k-flag {
  background: rgba(245,158,11,0.15);
  color: #f59e0b;
  border: 1px solid rgba(245,158,11,0.3);
  border-radius: 10px;
  padding: 2px 8px;
  font-size: 10px;
}

/* Ingredients tab */
.k-ing-intro { margin-bottom: 16px; font-size: 13px; color: var(--text-secondary); line-height: 1.6; }
.k-ing-title { margin: 20px 0 10px; font-size: 14px; }
.k-red-title { color: #ef4444; }
.k-yellow-title { color: #f59e0b; }

.k-ing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.k-ing-card {
  border-radius: 10px;
  padding: 10px 12px;
  border: 1px solid;
}

.k-ing-haram { background: rgba(239,68,68,0.08); border-color: rgba(239,68,68,0.25); }
.k-ing-check { background: rgba(245,158,11,0.08); border-color: rgba(245,158,11,0.25); }

.k-ing-ja {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 2px;
}

.k-ing-romaji { font-size: 11px; color: var(--text-muted); font-style: italic; }
.k-ing-en { font-size: 11px; color: var(--text-secondary); margin-top: 3px; line-height: 1.4; }

.k-tip-box {
  background: rgba(46,204,113,0.08);
  border: 1px solid rgba(46,204,113,0.2);
  border-radius: 10px;
  padding: 14px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-top: 8px;
}

/* Submit tab */
.k-submit-intro { margin-bottom: 20px; font-size: 13px; color: var(--text-secondary); line-height: 1.6; }

.k-form { display: flex; flex-direction: column; gap: 14px; }

.k-form-group { display: flex; flex-direction: column; gap: 5px; }

.k-label { font-size: 13px; color: var(--text-secondary); font-weight: 500; }

.k-input {
  padding: 10px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 14px;
  width: 100%;
  box-sizing: border-box;
}

.k-input:focus { outline: none; border-color: var(--primary); }

.k-success {
  background: rgba(34,197,94,0.12);
  border: 1px solid rgba(34,197,94,0.3);
  border-radius: 10px;
  padding: 12px;
  color: #22c55e;
  font-size: 13px;
}

.k-error {
  background: rgba(239,68,68,0.12);
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: 10px;
  padding: 12px;
  color: #ef4444;
  font-size: 13px;
}

/* ============================================
   TRANSIT PRAYER HUBS
   ============================================ */

.transit-intro { margin-bottom: 4px; }

.transit-section { margin-bottom: 24px; }

.transit-type-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.transit-spots-list { display: flex; flex-direction: column; gap: 12px; }

.transit-spot-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 14px 16px;
}

.transit-spot-name {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 2px;
  line-height: 1.4;
}

.transit-spot-name-ja {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.transit-spot-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 8px;
}

.transit-tag {
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  background: var(--bg-card-warm);
  color: var(--text-muted);
}

.transit-tag-green {
  background: rgba(34,197,94,0.12);
  color: #22c55e;
}

.transit-floor {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 3px;
}

.transit-hours {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.transit-notes {
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.5;
  margin-bottom: 8px;
}

.transit-map-link {
  display: inline-block;
  font-size: 12px;
  color: #3498db;
  text-decoration: none;
}

/* ============================================
   WORKPLACE TEMPLATES
   ============================================ */

.workplace-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.workplace-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.workplace-card:hover { border-color: var(--primary); transform: translateY(-1px); }

.workplace-card-icon { font-size: 28px; flex-shrink: 0; }

.workplace-card-title { font-weight: 700; font-size: 15px; margin-bottom: 2px; }

.workplace-card-title-ja {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

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

.workplace-back-btn {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 13px;
  cursor: pointer;
  padding: 0;
  margin-bottom: 16px;
}

.workplace-detail-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.workplace-detail-icon { font-size: 32px; }

.workplace-detail-title { font-weight: 700; font-size: 17px; margin-bottom: 2px; }

.workplace-detail-title-ja {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px;
  color: var(--text-muted);
}

.workplace-lang-toggle {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}

.workplace-lang-btn {
  padding: 6px 16px;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.workplace-lang-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--text-primary);
}

.workplace-subject-label, .workplace-body-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.workplace-subject-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.workplace-body-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.8;
  white-space: pre-wrap;
  word-break: break-word;
  margin-bottom: 16px;
  font-family: 'Noto Sans JP', sans-serif;
}

.workplace-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.workplace-action-btn {
  padding: 10px 20px;
  background: var(--primary);
  border: none;
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.workplace-action-btn:hover { opacity: 0.85; }

.workplace-action-btn-secondary {
  background: var(--bg-card-warm);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.workplace-tips {
  background: rgba(46,204,113,0.08);
  border: 1px solid rgba(46,204,113,0.2);
  border-radius: 12px;
  padding: 14px;
}

.workplace-tips-title {
  font-size: 13px;
  font-weight: 700;
  color: #2ecc71;
  margin-bottom: 8px;
}

.workplace-tips-list {
  margin: 0;
  padding-left: 18px;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================
   ISLAMIC EVENTS
   ============================================ */

.events-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.events-filter-btn {
  padding: 5px 12px;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  background: transparent;
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.events-filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--text-primary);
}

.events-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }

.events-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 14px 16px;
}

.events-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.events-type-badge {
  padding: 3px 10px;
  border-radius: 20px;
  color: var(--text-primary);
  font-size: 11px;
  font-weight: 700;
}

.events-free-tag {
  padding: 3px 8px;
  border-radius: 20px;
  background: rgba(34,197,94,0.15);
  color: #22c55e;
  font-size: 11px;
  font-weight: 600;
}

.events-card-title { font-weight: 700; font-size: 15px; margin-bottom: 2px; }

.events-card-title-ja {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.events-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.events-card-venue { font-size: 13px; font-weight: 600; margin-bottom: 2px; }

.events-card-address { font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }

.events-card-desc { font-size: 12px; color: var(--text-secondary); line-height: 1.5; margin-bottom: 6px; }

.events-card-lang, .events-card-contact {
  font-size: 11px;
  color: var(--text-muted);
}

.events-submit-section {
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
  margin-top: 8px;
}

.events-submit-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; }

.events-form { display: flex; flex-direction: column; gap: 12px; }

.events-form-group { display: flex; flex-direction: column; gap: 4px; }

.events-label { font-size: 12px; color: var(--text-secondary); font-weight: 500; }

.events-input {
  padding: 10px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 14px;
  width: 100%;
  box-sizing: border-box;
}

.events-input:focus { outline: none; border-color: var(--primary); }

.events-submit-btn {
  padding: 12px;
  background: var(--primary);
  border: none;
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.events-submit-btn:hover { opacity: 0.85; }

.events-success {
  background: rgba(34,197,94,0.12);
  border: 1px solid rgba(34,197,94,0.3);
  border-radius: 10px;
  padding: 12px;
  color: #22c55e;
  font-size: 13px;
  margin-bottom: 8px;
}

.events-error {
  background: rgba(239,68,68,0.12);
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: 10px;
  padding: 12px;
  color: #ef4444;
  font-size: 13px;
  margin-bottom: 8px;
}

/* ============================================
   HEALTHCARE DIRECTORY
   ============================================ */

.hc-intro-box {
  background: rgba(52,152,219,0.1);
  border: 1px solid rgba(52,152,219,0.3);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.hc-tab-bar {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 16px;
}

.hc-tab-btn {
  padding: 10px 14px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.hc-tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }

.hc-filters { margin-bottom: 16px; }

.hc-search-input {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 14px;
  box-sizing: border-box;
  margin-bottom: 8px;
}

.hc-filter-row { display: flex; gap: 8px; flex-wrap: wrap; }

.hc-select {
  flex: 1;
  min-width: 130px;
  padding: 8px 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 12px;
}

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

.hc-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 14px 16px;
}

.hc-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.hc-type-badge {
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(52,152,219,0.15);
  color: #3498db;
  font-size: 11px;
  font-weight: 700;
}

.hc-prefecture {
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg-card);
  padding: 2px 8px;
  border-radius: 10px;
}

.hc-name { font-weight: 700; font-size: 15px; margin-bottom: 2px; }

.hc-name-ja {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.hc-address, .hc-phone {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.hc-phone a { color: #3498db; text-decoration: none; }

.hc-langs { font-size: 12px; color: var(--text-secondary); margin-bottom: 6px; }

.hc-features { display: flex; flex-wrap: wrap; gap: 4px; margin: 8px 0; }

.hc-feature-tag {
  background: rgba(46,204,113,0.12);
  color: #2ecc71;
  border: 1px solid rgba(46,204,113,0.25);
  border-radius: 10px;
  padding: 2px 8px;
  font-size: 11px;
}

.hc-notes {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 6px 0;
  font-style: italic;
}

.hc-website-btn {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  color: #3498db;
  text-decoration: none;
  padding: 4px 10px;
  border: 1px solid rgba(52,152,219,0.3);
  border-radius: 8px;
}

.hc-phrases-intro {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.hc-phrases-list { display: flex; flex-direction: column; gap: 12px; }

.hc-phrase-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 14px;
}

.phrase-situation {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary);
  margin-bottom: 6px;
  font-weight: 700;
}

.phrase-en { font-size: 13px; color: var(--text-primary); margin-bottom: 6px; line-height: 1.5; }

.phrase-ja {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.phrase-romaji { font-size: 11px; color: var(--text-muted); font-style: italic; margin-bottom: 10px; }

.phrase-copy-btn {
  padding: 5px 12px;
  background: var(--bg-card-warm);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.hc-submit-form { display: flex; flex-direction: column; gap: 12px; }
.hc-form-group { display: flex; flex-direction: column; gap: 4px; }
.hc-label { font-size: 12px; color: var(--text-secondary); font-weight: 500; }

.hc-input {
  padding: 10px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 14px;
  width: 100%;
  box-sizing: border-box;
}

.hc-input:focus { outline: none; border-color: var(--primary); }

.hc-submit-btn {
  padding: 12px;
  background: var(--primary);
  border: none;
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.hc-success {
  background: rgba(34,197,94,0.12);
  border: 1px solid rgba(34,197,94,0.3);
  border-radius: 10px;
  padding: 12px;
  color: #22c55e;
  font-size: 13px;
  margin-top: 8px;
}

.hc-error {
  background: rgba(239,68,68,0.12);
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: 10px;
  padding: 12px;
  color: #ef4444;
  font-size: 13px;
  margin-top: 8px;
}

/* ============================================
   SURVIVAL GUIDE
   ============================================ */

.survival-chapter {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  margin-bottom: 12px;
  overflow: hidden;
}

.survival-chapter-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
}

.survival-chapter-icon { font-size: 24px; flex-shrink: 0; }

.survival-chapter-title { font-weight: 700; font-size: 15px; margin-bottom: 2px; }

.survival-chapter-subtitle { font-size: 12px; color: var(--text-muted); }

.survival-chapter-progress {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  margin-left: auto;
  flex-shrink: 0;
}

.survival-chapter-steps { padding: 4px 0; }

.survival-step {
  padding: 14px 16px;
  border: 1px solid var(--border-color);
  transition: background 0.2s;
}

.survival-step:last-child { border-bottom: none; }

.survival-step-done { opacity: 0.6; }

.survival-step-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  margin-bottom: 8px;
}

.survival-checkbox { margin-top: 2px; flex-shrink: 0; accent-color: var(--primary); width: 16px; height: 16px; }

.survival-step-title { font-weight: 600; font-size: 14px; line-height: 1.4; }

.survival-step-done .survival-step-title { text-decoration: line-through; }

.survival-step-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-left: 26px;
  margin-bottom: 8px;
}

.survival-tip {
  font-size: 12px;
  color: #f59e0b;
  background: rgba(245,158,11,0.08);
  border: 1px solid rgba(245,158,11,0.2);
  border-radius: 8px;
  padding: 8px 10px;
  margin-left: 26px;
  line-height: 1.5;
}

/* ============================================
   COMMUNITY CONNECT
   ============================================ */

.cc-tab-bar {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 16px;
}

.cc-tab-btn {
  padding: 10px 14px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.cc-tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }

.cc-filters { margin-bottom: 16px; }

.cc-filter-row { display: flex; gap: 8px; flex-wrap: wrap; }

.cc-select {
  flex: 1;
  min-width: 130px;
  padding: 8px 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 12px;
}

.cc-helpers-list { display: flex; flex-direction: column; gap: 12px; }

.cc-helper-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 14px 16px;
}

.cc-helper-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.cc-helper-avatar {
  font-size: 28px;
  flex-shrink: 0;
}

.cc-helper-name { font-weight: 700; font-size: 15px; margin-bottom: 2px; }

.cc-helper-location { font-size: 12px; color: var(--text-secondary); margin-bottom: 2px; }

.cc-helper-nationality { font-size: 11px; color: var(--text-muted); }

.cc-contact-badge {
  padding: 3px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
}

.cc-mosque-badge { background: rgba(52,152,219,0.15); color: #3498db; }

.cc-msg-badge { background: rgba(46,204,113,0.15); color: #2ecc71; }

.cc-langs-row { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; font-size: 11px; color: var(--text-muted); }

.cc-lang-tag {
  background: var(--bg-card);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 11px;
}

.cc-helper-bio {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 10px;
  font-style: italic;
}

.cc-help-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; }

.cc-help-tag {
  background: rgba(155,89,182,0.12);
  color: #9b59b6;
  border: 1px solid rgba(155,89,182,0.25);
  border-radius: 10px;
  padding: 2px 8px;
  font-size: 11px;
}

.cc-message-btn {
  padding: 8px 16px;
  background: var(--primary);
  border: none;
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 13px;
  cursor: pointer;
  margin-bottom: 8px;
}

.cc-message-form { margin-top: 8px; display: flex; flex-direction: column; gap: 8px; }

.cc-input {
  padding: 10px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 13px;
  width: 100%;
  box-sizing: border-box;
}

.cc-input:focus { outline: none; border-color: var(--primary); }

.cc-send-btn {
  padding: 8px 16px;
  background: #2ecc71;
  border: none;
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.cc-volunteer-form { display: flex; flex-direction: column; gap: 12px; }

.cc-form-group { display: flex; flex-direction: column; gap: 4px; }

.cc-label { font-size: 12px; color: var(--text-secondary); font-weight: 500; }

.cc-help-checkboxes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }

.cc-checkbox-label { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-secondary); cursor: pointer; }

.cc-submit-btn {
  padding: 12px;
  background: var(--primary);
  border: none;
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.cc-success {
  background: rgba(34,197,94,0.12);
  border: 1px solid rgba(34,197,94,0.3);
  border-radius: 10px;
  padding: 12px;
  color: #22c55e;
  font-size: 13px;
  margin-top: 8px;
}

.cc-error {
  background: rgba(239,68,68,0.12);
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: 10px;
  padding: 12px;
  color: #ef4444;
  font-size: 13px;
  margin-top: 8px;
}

/* ============================================
   ISLAMIC EDUCATION
   ============================================ */

.edu-tab-bar {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.edu-tab-bar::-webkit-scrollbar { display: none; }

.edu-tab-btn {
  padding: 9px 12px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  flex-shrink: 0;
}
.edu-tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }

.edu-loading { text-align: center; padding: 30px; color: var(--text-muted); font-size: 13px; }
.edu-error { text-align: center; padding: 20px; color: var(--text-muted); font-size: 13px; }

.edu-progress-bar { margin-bottom: 14px; }
.edu-progress-label { font-size: 12px; color: var(--text-secondary); margin-bottom: 6px; }
.edu-progress-track { height: 6px; background: var(--bg-card-warm); border-radius: 3px; overflow: hidden; }
.edu-progress-fill { height: 100%; background: var(--primary); border-radius: 3px; transition: width 0.4s ease; }

.edu-list { display: flex; flex-direction: column; gap: 8px; }

.edu-surah-card, .edu-prophet-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: background 0.2s;
}
.edu-surah-card:active, .edu-prophet-card:active { background: var(--bg-card); }
.edu-surah-card.edu-done, .edu-prophet-card.edu-done { opacity: 0.65; }

.edu-surah-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(52,152,219,0.15);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.edu-surah-body, .edu-prophet-body { flex: 1; min-width: 0; }
.edu-arabic-sm { font-size: 18px; color: var(--text-primary); margin-bottom: 2px; direction: rtl; }
.edu-surah-name, .edu-prophet-name { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.edu-surah-meta, .edu-prophet-lesson { font-size: 11px; color: var(--text-muted); }
.edu-prophet-title { font-size: 12px; color: var(--text-secondary); margin-bottom: 2px; }
.edu-prophet-ar { font-size: 22px; direction: rtl; flex-shrink: 0; min-width: 50px; text-align: center; }

.edu-chevron { color: var(--text-muted); font-size: 18px; flex-shrink: 0; }

.edu-back-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 13px;
  padding: 6px 12px;
  cursor: pointer;
  margin-bottom: 16px;
}

.edu-surah-header, .edu-prophet-header {
  text-align: center;
  padding: 16px;
  background: rgba(52,152,219,0.06);
  border: 1px solid rgba(52,152,219,0.15);
  border-radius: 14px;
  margin-bottom: 16px;
}

.edu-arabic-title { font-size: 32px; direction: rtl; margin-bottom: 8px; line-height: 1.4; }
.edu-surah-header-name, .edu-prophet-header-name { font-size: 18px; font-weight: 700; margin: 4px 0; }
.edu-roman-sm { font-size: 12px; color: var(--text-muted); font-style: italic; margin-bottom: 8px; }
.edu-surah-meaning-text { font-size: 12px; color: var(--text-secondary); line-height: 1.6; }
.edu-prophet-header-title { font-size: 14px; color: var(--text-secondary); margin-bottom: 4px; }
.edu-prophet-ref { font-size: 11px; color: var(--text-muted); }

.edu-verses { display: flex; flex-direction: column; gap: 14px; margin-bottom: 20px; }

.edu-verse {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 14px;
}
.edu-verse-num {
  font-size: 10px;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.edu-verse-arabic {
  font-size: 22px;
  direction: rtl;
  text-align: right;
  line-height: 2;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.edu-verse-roman { font-size: 12px; color: var(--text-muted); font-style: italic; margin-bottom: 6px; line-height: 1.6; }
.edu-verse-meaning { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }

.edu-mark-btn {
  display: block;
  width: 100%;
  padding: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: 14px;
  cursor: pointer;
  margin-bottom: 16px;
  transition: all 0.2s;
}
.edu-mark-btn.edu-marked { background: rgba(46,204,113,0.12); border-color: rgba(46,204,113,0.3); color: #2ecc71; }

.edu-story-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 16px;
}

.edu-key-lesson {
  background: rgba(245,158,11,0.08);
  border: 1px solid rgba(245,158,11,0.2);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 16px;
}
.edu-key-lesson-label { font-size: 12px; font-weight: 700; color: #f59e0b; margin-bottom: 6px; }
.edu-key-lesson-text { font-size: 13px; color: var(--text-secondary); line-height: 1.7; font-style: italic; }

/* Pillars */
.edu-pillars-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}
.edu-pillars-tab {
  flex: 1;
  padding: 9px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.edu-pillars-tab.active { background: rgba(52,152,219,0.15); border-color: rgba(52,152,219,0.3); color: var(--primary); font-weight: 600; }

.edu-pillars-list { display: flex; flex-direction: column; gap: 12px; }

.edu-pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.edu-pillar-icon { font-size: 28px; flex-shrink: 0; }
.edu-pillar-body { flex: 1; min-width: 0; }
.edu-pillar-num { font-size: 10px; color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.edu-pillar-ar { font-size: 20px; direction: rtl; margin-bottom: 4px; }
.edu-pillar-name { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.edu-pillar-quote { font-size: 16px; direction: rtl; text-align: right; color: var(--primary); margin-bottom: 4px; line-height: 1.8; }
.edu-pillar-roman { font-size: 11px; color: var(--text-muted); font-style: italic; margin-bottom: 4px; }
.edu-pillar-meaning { font-size: 12px; color: var(--text-secondary); margin-bottom: 8px; }
.edu-prayer-times { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.edu-prayer-time { background: rgba(52,152,219,0.12); color: var(--primary); padding: 2px 8px; border-radius: 8px; font-size: 11px; }
.edu-pillar-desc { font-size: 12px; color: var(--text-secondary); line-height: 1.7; }

/* Vocabulary */
.edu-vocab-cats {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.edu-vocab-cat-btn {
  padding: 7px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.edu-vocab-cat-btn.active { background: rgba(52,152,219,0.15); border-color: rgba(52,152,219,0.3); color: var(--primary); font-weight: 600; }

.edu-vocab-list { display: flex; flex-direction: column; gap: 10px; }

.edu-vocab-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px 14px;
  transition: opacity 0.2s;
}
.edu-vocab-card.edu-done { opacity: 0.6; }
.edu-vocab-ar { font-size: 24px; direction: rtl; margin-bottom: 4px; line-height: 1.6; }
.edu-vocab-roman { font-size: 12px; color: var(--text-muted); font-style: italic; margin-bottom: 4px; }
.edu-vocab-meaning { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.edu-vocab-usage { font-size: 11px; color: var(--text-secondary); margin-bottom: 8px; }
.edu-vocab-btn {
  padding: 5px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.edu-vocab-btn.edu-vocab-known { background: rgba(46,204,113,0.12); border-color: rgba(46,204,113,0.3); color: #2ecc71; }

/* Weekend Schools */
.edu-schools-intro {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 14px;
}
.edu-schools-list { display: flex; flex-direction: column; gap: 12px; }
.edu-school-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 14px 16px;
}
.edu-school-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.edu-school-name { font-weight: 700; font-size: 14px; flex: 1; }
.edu-school-pref { font-size: 11px; color: var(--text-muted); background: var(--bg-card); padding: 2px 8px; border-radius: 8px; flex-shrink: 0; }
.edu-school-mosque, .edu-school-schedule, .edu-school-ages, .edu-school-langs { font-size: 12px; color: var(--text-secondary); margin-bottom: 4px; }
.edu-school-subjects { display: flex; flex-wrap: wrap; gap: 4px; margin: 8px 0; }
.edu-subject-tag { background: rgba(155,89,182,0.12); color: #9b59b6; border: 1px solid rgba(155,89,182,0.25); border-radius: 8px; padding: 2px 7px; font-size: 11px; }
.edu-school-notes { font-size: 12px; color: var(--text-secondary); line-height: 1.6; margin: 6px 0; font-style: italic; }
.edu-school-phone { font-size: 12px; margin-top: 6px; }
.edu-school-phone a { color: var(--primary); text-decoration: none; }
.edu-unverified { font-size: 11px; color: #f59e0b; background: rgba(245,158,11,0.08); border: 1px solid rgba(245,158,11,0.2); border-radius: 6px; padding: 4px 8px; margin-top: 6px; }


/* ISLAMIC EDUCATION MODULE v2 */

.education-container { padding: 0 0 2rem 0; }

.edu-tabs {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
  padding: 1rem 1rem 0;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 0;
  position: sticky;
  top: 67px;
  z-index: 100;
  background: rgba(245, 239, 224, 0.98);
}
.edu-tab {
  padding: 0.5rem 0.9rem;
  border-radius: 8px 8px 0 0;
  border: 1px solid var(--border-color);
  border-bottom: none;
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer; font-size: 0.82rem; font-weight: 500; transition: all 0.2s;
}
.edu-tab:hover { color: var(--text-primary); }
.edu-tab.active { background: var(--primary); color: #000; font-weight: 700; border-color: var(--primary); }
.edu-content { padding: 1rem; }
.edu-progress-bar-wrap { margin: 0 0 1rem; }
.edu-progress-label { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 0.4rem; }
.edu-progress-bar { height: 8px; background: var(--bg-card-warm); border-radius: 4px; overflow: hidden; }
.edu-progress-fill { height: 100%; background: var(--primary); border-radius: 4px; transition: width 0.4s ease; }
.edu-back-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.5rem 1rem; margin: 0 0 1rem;
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: 8px; color: var(--primary); cursor: pointer; font-size: 0.9rem;
}
.edu-surah-list { display: flex; flex-direction: column; gap: 0.75rem; }
.edu-surah-card {
  display: flex; align-items: center; gap: 1rem; padding: 1rem;
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: 12px; cursor: pointer; transition: border-color 0.2s;
}
.edu-surah-card:hover { border-color: var(--primary); }
.edu-surah-card.learned { border-color: #22c55e; opacity: 0.85; }
.edu-surah-number {
  min-width: 2.4rem; height: 2.4rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary); color: #000; border-radius: 50%; font-weight: 700; font-size: 0.85rem; flex-shrink: 0;
}
.edu-surah-arabic { font-size: 1.3rem; color: var(--primary); direction: rtl; margin-bottom: 2px; }
.edu-surah-name { font-weight: 600; font-size: 0.92rem; }
.edu-surah-meta { font-size: 0.78rem; color: var(--text-secondary); }
.edu-surah-right { margin-left: auto; }
.edu-arrow { font-size: 1.3rem; color: var(--text-secondary); }
.edu-learned-badge { font-size: 1.1rem; }
.edu-surah-detail-header {
  text-align: center; padding: 1.25rem; background: var(--bg-card); border-radius: 12px; margin-bottom: 1.25rem;
}
.edu-surah-detail-arabic { font-size: 2.2rem; color: var(--primary); direction: rtl; margin-bottom: 0.4rem; }
.edu-surah-detail-title { font-size: 1.2rem; font-weight: 700; }
.edu-surah-detail-sub { color: var(--text-secondary); font-size: 0.88rem; margin: 0.25rem 0; }
.edu-surah-detail-meaning { margin-top: 0.6rem; font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; }
.edu-verses-list { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.25rem; }
.edu-verse-card {
  padding: 1.1rem; background: var(--bg-card);
  border-left: 3px solid var(--primary); border-radius: 0 12px 12px 0;
}
.edu-verse-num { font-size: 0.72rem; color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.5rem; }
.edu-verse-arabic { font-size: 1.5rem; direction: rtl; text-align: right; line-height: 2; margin-bottom: 0.5rem; }
.edu-verse-transliteration { font-size: 0.88rem; color: var(--primary); font-style: italic; margin-bottom: 0.35rem; }
.edu-verse-meaning-ja { font-size: 0.9rem; margin-bottom: 0.2rem; }
.edu-verse-meaning-en { font-size: 0.8rem; color: var(--text-secondary); }
.edu-mark-btn {
  display: block; width: 100%; padding: 0.8rem;
  background: var(--bg-card); border: 2px dashed var(--border-color);
  border-radius: 12px; color: var(--text-secondary); cursor: pointer;
  font-size: 0.92rem; text-align: center; transition: all 0.2s;
}
.edu-mark-btn:hover { border-color: var(--primary); color: var(--primary); }
.edu-mark-btn.marked { background: rgba(34,197,94,0.08); border-style: solid; border-color: #22c55e; color: #22c55e; }

.edu-prophet-list { display: flex; flex-direction: column; gap: 0.75rem; }
.edu-prophet-card {
  display: flex; align-items: center; gap: 1rem; padding: 1rem;
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: 12px; cursor: pointer; transition: border-color 0.2s;
}
.edu-prophet-card:hover { border-color: #a78bfa; }
.edu-prophet-card.learned { border-color: #22c55e; opacity: 0.85; }
.edu-prophet-arabic { font-size: 1.7rem; color: #a78bfa; min-width: 3rem; text-align: center; direction: rtl; flex-shrink: 0; }
.edu-prophet-name { font-weight: 600; font-size: 0.92rem; }
.edu-prophet-title { font-size: 0.8rem; color: var(--text-secondary); }
.edu-prophet-lesson { font-size: 0.78rem; color: #a78bfa; margin-top: 0.15rem; }
.edu-prophet-right { margin-left: auto; }
.edu-prophet-detail-header {
  text-align: center; padding: 1.25rem; background: var(--bg-card); border-radius: 12px; margin-bottom: 1rem;
}
.edu-prophet-detail-arabic { font-size: 2rem; color: #a78bfa; direction: rtl; margin-bottom: 0.4rem; }
.edu-prophet-detail-name { font-size: 1.15rem; font-weight: 700; }
.edu-prophet-detail-title-ja { color: var(--text-secondary); font-size: 0.88rem; margin: 0.25rem 0; }
.edu-prophet-quran-ref { font-size: 0.8rem; color: var(--primary); margin-top: 0.4rem; }
.edu-story-tabs { display: flex; gap: 0.5rem; margin-bottom: 0.75rem; }
.edu-story-tab {
  padding: 0.4rem 1rem; border-radius: 20px; border: 1px solid var(--border-color);
  background: var(--bg-card); color: var(--text-secondary); cursor: pointer; font-size: 0.82rem;
}
.edu-story-tab.active { background: #a78bfa; color: #000; border-color: #a78bfa; font-weight: 700; }
.edu-story-text {
  background: var(--bg-card); padding: 1.1rem; border-radius: 12px;
  line-height: 1.9; font-size: 0.9rem; margin-bottom: 0.75rem;
}
.edu-key-lesson {
  background: rgba(245,158,11,0.05); border-left: 3px solid #f59e0b;
  border-radius: 0 12px 12px 0; padding: 0.9rem; margin-bottom: 0.75rem;
}
.edu-key-lesson-label { color: #f59e0b; font-weight: 700; font-size: 0.82rem; margin-bottom: 0.4rem; }
.edu-key-lesson-ja { font-size: 0.9rem; margin-bottom: 0.25rem; }
.edu-key-lesson-en { font-size: 0.8rem; color: var(--text-secondary); }
.edu-pillars-subtabs { display: flex; gap: 0.5rem; margin-bottom: 1rem; }
.edu-subtab {
  padding: 0.5rem 1.2rem; border-radius: 20px; border: 1px solid var(--border-color);
  background: var(--bg-card); color: var(--text-secondary); cursor: pointer; font-size: 0.85rem;
}
.edu-subtab.active { background: var(--primary); color: #000; font-weight: 700; border-color: var(--primary); }
.edu-pillars-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.edu-pillar-card {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: 14px; padding: 1.1rem; display: flex; flex-direction: column; gap: 0.4rem;
}
.edu-pillar-icon { font-size: 2rem; }
.edu-pillar-number { font-size: 0.72rem; color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.edu-pillar-arabic { font-size: 1.4rem; color: var(--primary); direction: rtl; }
.edu-pillar-name-en { font-size: 1rem; font-weight: 700; }
.edu-pillar-name-ja { font-size: 0.85rem; color: var(--text-secondary); }
.edu-pillar-text-arabic {
  font-size: 1.2rem; direction: rtl; line-height: 1.8;
  padding: 0.6rem; background: var(--bg-card); border-radius: 8px; margin: 0.3rem 0;
}
.edu-pillar-transliteration { font-size: 0.82rem; font-style: italic; color: var(--primary); }
.edu-pillar-meaning { font-size: 0.82rem; color: var(--text-secondary); }
.edu-pillar-desc { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.7; }
.edu-pillar-times { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.2rem; }
.edu-time-tag {
  background: rgba(46,204,113,0.1); color: var(--primary);
  border: 1px solid rgba(46,204,113,0.2); border-radius: 10px; padding: 0.15rem 0.55rem; font-size: 0.75rem;
}

.edu-vocab-cats { display: flex; flex-direction: column; gap: 1.25rem; }
.edu-vocab-category {
  background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 14px; overflow: hidden;
}
.edu-vocab-cat-header {
  display: flex; align-items: center; gap: 0.5rem; padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--border-color); background: rgba(255,255,255,0.02);
}
.edu-vocab-cat-icon { font-size: 1.2rem; }
.edu-vocab-cat-label { font-weight: 700; font-size: 0.9rem; }
.edu-vocab-cat-label-ja { font-size: 0.8rem; color: var(--text-secondary); margin-left: auto; }
.edu-vocab-cards { display: flex; flex-direction: column; }
.edu-vocab-card { padding: 0.9rem 1rem; border-bottom: 1px solid var(--border-color); }
.edu-vocab-card:last-child { border-bottom: none; }
.edu-vocab-card.known { opacity: 0.6; background: rgba(34,197,94,0.03); }
.edu-vocab-arabic { font-size: 1.7rem; direction: rtl; line-height: 1.6; margin-bottom: 0.25rem; }
.edu-vocab-transliteration { font-size: 0.82rem; font-style: italic; color: var(--primary); margin-bottom: 0.25rem; }
.edu-vocab-meaning-ja { font-size: 0.92rem; font-weight: 600; margin-bottom: 0.15rem; }
.edu-vocab-meaning-en { font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 0.35rem; }
.edu-vocab-usage {
  font-size: 0.78rem; color: var(--text-secondary); margin-bottom: 0.5rem;
  padding: 0.3rem 0.5rem; background: rgba(255,255,255,0.02); border-radius: 6px;
}
.edu-vocab-mark {
  padding: 0.3rem 0.75rem; border-radius: 8px; border: 1px solid var(--border-color);
  background: transparent; color: var(--text-secondary); font-size: 0.8rem; cursor: pointer; transition: all 0.2s;
}
.edu-vocab-mark:hover { border-color: var(--primary); color: var(--primary); }
.edu-vocab-mark.known { background: rgba(34,197,94,0.08); border-color: #22c55e; color: #22c55e; }
.edu-schools-intro { color: var(--text-secondary); font-size: 0.88rem; line-height: 1.7; margin-bottom: 1rem; }
.edu-schools-list { display: flex; flex-direction: column; gap: 1rem; }
.edu-school-card {
  background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 14px; padding: 1.1rem;
}
.edu-school-card.unverified { border-color: rgba(245,158,11,0.3); }
.edu-school-header { margin-bottom: 0.6rem; }
.edu-school-name { font-weight: 700; font-size: 1rem; }
.edu-school-name-en { font-size: 0.83rem; color: var(--text-secondary); margin-top: 0.1rem; }
.edu-unverified-badge {
  display: inline-block; font-size: 0.75rem; color: #f59e0b;
  background: rgba(245,158,11,0.08); border: 1px solid rgba(245,158,11,0.22);
  border-radius: 6px; padding: 0.12rem 0.45rem; margin-top: 0.25rem;
}
.edu-school-details { display: flex; flex-direction: column; gap: 0.25rem; margin-bottom: 0.6rem; }
.edu-school-detail { font-size: 0.83rem; color: var(--text-secondary); }
.edu-phone { color: var(--primary); text-decoration: none; }
.edu-school-subjects { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.6rem; }
.edu-school-notes { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.6; font-style: italic; }
.edu-loading { text-align: center; padding: 2rem; color: var(--text-secondary); font-size: 0.9rem; }
.edu-error { text-align: center; padding: 1.25rem; color: #f87171; font-size: 0.88rem; }

/* === Education: Audio Playback === */
.edu-verse-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.5rem; }
.edu-audio-btn {
  background: rgba(46,204,113,0.1); border: 1px solid rgba(46,204,113,0.3); color: var(--primary);
  border-radius: 50%; width: 2rem; height: 2rem; font-size: 0.75rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: background 0.2s;
}
.edu-audio-btn:hover { background: rgba(46,204,113,0.25); }
.edu-play-all-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: rgba(46,204,113,0.12); border: 1px solid rgba(46,204,113,0.4);
  color: var(--primary); border-radius: 1.5rem; padding: 0.4rem 1rem;
  font-size: 0.82rem; cursor: pointer; margin-top: 0.6rem;
  transition: background 0.2s;
}
.edu-play-all-btn:hover { background: rgba(46,204,113,0.22); }

/* === Education: Tafsir === */
.edu-tafsir {
  background: rgba(167,139,250,0.06); border: 1px solid rgba(167,139,250,0.2);
  border-radius: 0.75rem; padding: 1rem; margin: 1.25rem 0;
}
.edu-tafsir-title { color: #a78bfa; font-weight: 700; font-size: 0.82rem; margin-bottom: 0.6rem; text-transform: uppercase; letter-spacing: 0.05em; }
.edu-tafsir-ja { font-size: 0.9rem; line-height: 1.8; margin-bottom: 0.5rem; }
.edu-tafsir-en { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.75; }

/* === Education: Prophet Family Connections === */
.edu-prophet-family { font-size: 0.76rem; color: #34d399; margin-top: 0.2rem; }
.edu-prophet-family-detail {
  font-size: 0.83rem; color: #34d399; margin: 0.4rem 0;
  background: rgba(52,211,153,0.08); border-radius: 0.5rem; padding: 0.4rem 0.6rem;
}

/* === Education: Vocabulary Note === */
.edu-vocab-note { font-size: 0.75rem; color: var(--text-secondary); font-style: italic; margin-top: 0.2rem; margin-bottom: 0.35rem; border-left: 2px solid rgba(46,204,113,0.3); padding-left: 0.5rem; }

/* === Education: Pillar Steps === */
.edu-pillar-steps { margin-top: 0.75rem; }
.edu-pillar-steps-title { font-size: 0.78rem; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.4rem; }
.edu-pillar-steps-list { margin: 0; padding-left: 1.2rem; font-size: 0.83rem; display: flex; flex-direction: column; gap: 0.3rem; }
.edu-pillar-steps-list li { line-height: 1.5; }
.edu-step-desc { font-size: 0.78rem; color: var(--text-secondary); margin-top: 0.15rem; }

/* === Education: Article Explanation === */
.edu-article-explanation { margin-top: 0.75rem; border-top: 1px solid var(--border-color); padding-top: 0.6rem; }
.edu-explanation-ja { font-size: 0.85rem; line-height: 1.75; margin-bottom: 0.35rem; }
.edu-explanation-en { font-size: 0.78rem; color: var(--text-secondary); line-height: 1.7; }

/* === Education: Quiz Mode === */
.edu-quiz-start-btn {
  display: flex; align-items: center; gap: 0.5rem; margin: 0.75rem 0 1.25rem;
  background: linear-gradient(135deg, #a78bfa, #7c3aed);
  color: var(--text-primary); border: none; border-radius: 1.5rem; padding: 0.55rem 1.25rem;
  font-size: 0.88rem; font-weight: 700; cursor: pointer;
  transition: opacity 0.2s;
}
.edu-quiz-start-btn:hover { opacity: 0.88; }
.edu-quiz-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1rem; font-size: 0.85rem;
}
.edu-quiz-progress { color: var(--text-secondary); }
.edu-quiz-score { color: var(--primary); font-weight: 700; }
.edu-quiz-card {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: 1rem; padding: 1.5rem; text-align: center;
  cursor: pointer; transition: border-color 0.2s, background 0.2s;
  min-height: 10rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.6rem;
  margin-bottom: 1rem;
}
.edu-quiz-card:hover { border-color: rgba(167,139,250,0.4); background: rgba(167,139,250,0.04); }
.edu-quiz-card.revealed { border-color: rgba(46,204,113,0.4); cursor: default; }
.edu-quiz-arabic { font-size: 2.5rem; direction: rtl; line-height: 1.4; }
.edu-quiz-transliteration { font-size: 0.9rem; font-style: italic; color: #a78bfa; }
.edu-quiz-tap-hint { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.75rem; }
.edu-quiz-answer { text-align: center; margin-top: 0.5rem; }
.edu-quiz-meaning-ja { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.25rem; }
.edu-quiz-meaning-en { font-size: 0.85rem; color: var(--text-secondary); }
.edu-quiz-usage { font-size: 0.78rem; color: var(--text-secondary); margin-top: 0.35rem; font-style: italic; }
.edu-quiz-actions { display: flex; gap: 0.75rem; margin-bottom: 1.5rem; }
.edu-quiz-btn {
  flex: 1; padding: 0.65rem 1rem; border-radius: 0.75rem;
  font-size: 0.88rem; font-weight: 700; cursor: pointer; border: none;
  transition: opacity 0.2s;
}
.edu-quiz-btn:hover { opacity: 0.85; }
.edu-quiz-btn-knew { background: rgba(34,197,94,0.2); color: #22c55e; border: 1px solid rgba(34,197,94,0.4); }
.edu-quiz-btn-review { background: rgba(245,158,11,0.15); color: #f59e0b; border: 1px solid rgba(245,158,11,0.3); }
.edu-quiz-summary {
  text-align: center; padding: 2rem 1rem; display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
}
.edu-quiz-summary-icon { font-size: 3rem; }
.edu-quiz-summary-title { font-size: 1.2rem; font-weight: 700; }
.edu-quiz-summary-score { font-size: 2rem; font-weight: 800; color: var(--primary); }
.edu-quiz-summary-pct { font-size: 0.9rem; color: var(--text-secondary); }

/* === Education: Kana Toggle Bar === */
.edu-kana-bar {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.6rem 1rem; background: rgba(167,139,250,0.08);
  border-bottom: 1px solid rgba(167,139,250,0.15); border-radius: 0.75rem 0.75rem 0 0;
  flex-wrap: wrap;
}
.edu-kana-label { font-size: 0.82rem; color: var(--text-secondary); }
.edu-kana-toggle-btn {
  padding: 0.3rem 0.85rem; border-radius: 1rem;
  font-size: 0.82rem; font-weight: 700; cursor: pointer;
  background: var(--bg-card-warm); color: var(--text-secondary);
  border: 1px solid var(--border-strong); transition: all 0.2s;
}
.edu-kana-toggle-btn.active {
  background: rgba(167,139,250,0.25); color: #a78bfa;
  border-color: rgba(167,139,250,0.5);
}

/* === Education: Dua Cards === */
.edu-section-intro { padding: 0.75rem 0 1rem; color: var(--text-secondary); font-size: 0.88rem; }
.edu-duas-list { display: flex; flex-direction: column; gap: 1rem; }
.edu-dua-card {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: 1rem; padding: 1rem 1.25rem;
  display: flex; align-items: center; gap: 0.75rem;
  cursor: pointer; transition: border-color 0.2s, background 0.2s;
}
.edu-dua-card:hover, .edu-dua-card:active { border-color: #a78bfa; background: rgba(167,139,250,0.06); }
.edu-dua-card .edu-dua-occasion {
  font-size: 0.85rem; font-weight: 700; color: #a78bfa; flex: 1;
}
.edu-dua-card .edu-dua-arabic {
  font-size: 1.1rem; direction: rtl; color: #f8e8a0; flex-shrink: 0; max-width: 120px;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.edu-dua-preview-arrow { color: var(--text-secondary); font-size: 1.3rem; flex-shrink: 0; }
.edu-dua-detail { display: flex; flex-direction: column; gap: 0.75rem; }
.edu-dua-detail-header { padding-bottom: 0.5rem; border-bottom: 1px solid rgba(167,139,250,0.2); margin-bottom: 0.25rem; }
.edu-dua-detail .edu-dua-occasion { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: #a78bfa; }
.edu-dua-detail .edu-dua-arabic { font-size: 2rem; direction: rtl; text-align: right; line-height: 2; color: #f8e8a0; }
.edu-dua-detail .edu-dua-transliteration { font-size: 0.9rem; font-style: italic; color: #a78bfa; }
.edu-dua-detail .edu-dua-meaning { font-size: 1rem; line-height: 1.7; }
.edu-dua-detail .edu-dua-when { font-size: 0.85rem; color: var(--text-secondary); }
.edu-dua-nav { display: flex; gap: 0.5rem; margin-top: 0.75rem; }

/* === Education: Prayer Guide === */
.edu-prayer-phase {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: 1rem; padding: 1rem; margin-bottom: 1.25rem;
}
.edu-prayer-phase-title {
  font-size: 1rem; font-weight: 700; color: #a78bfa;
  padding-bottom: 0.6rem; margin-bottom: 0.75rem;
  border-bottom: 1px solid rgba(167,139,250,0.2);
}
.edu-prayer-step {
  display: flex; gap: 0.75rem; align-items: flex-start;
  padding: 0.65rem 0; border: 1px solid var(--border-color);
}
.edu-prayer-step:last-child { border-bottom: none; }
.edu-prayer-step-num {
  min-width: 1.75rem; height: 1.75rem; border-radius: 50%;
  background: rgba(167,139,250,0.2); color: #a78bfa;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700; flex-shrink: 0;
}
.edu-prayer-step-body { flex: 1; }
.edu-prayer-step-title { font-size: 0.92rem; font-weight: 700; margin-bottom: 0.2rem; }
.edu-prayer-step-desc { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 0.3rem; }
.edu-prayer-arabic { font-size: 1.3rem; direction: rtl; text-align: right; color: #f8e8a0; line-height: 1.8; }
.edu-prayer-transliteration { font-size: 0.82rem; font-style: italic; color: #a78bfa; margin-top: 0.15rem; }
.edu-prayer-meaning-kana { font-size: 0.82rem; color: var(--text-secondary); margin-top: 0.15rem; }

/* === Education: Akhlaq Cards === */
.edu-akhlaq-list { display: flex; flex-direction: column; gap: 1rem; }
.edu-akhlaq-card {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: 1rem; padding: 1.25rem; display: flex; flex-direction: column; gap: 0.5rem;
}
.edu-akhlaq-header { display: flex; flex-direction: column; gap: 0.2rem; margin-bottom: 0.5rem; }
.edu-akhlaq-arabic { font-size: 1.5rem; direction: rtl; text-align: right; color: #f8e8a0; line-height: 1.6; }
.edu-akhlaq-trait { font-size: 1rem; font-weight: 700; color: #a78bfa; }
.edu-akhlaq-meaning { font-size: 0.82rem; color: var(--text-secondary); }
.edu-akhlaq-story { font-size: 0.88rem; line-height: 1.7; }
.edu-akhlaq-hadith {
  font-size: 0.82rem; color: var(--text-secondary); font-style: italic;
  border-left: 2px solid rgba(167,139,250,0.4); padding-left: 0.6rem;
}
.edu-akhlaq-opposite {
  font-size: 0.78rem; color: var(--text-muted);
  border-top: 1px solid rgba(255,255,255,0.06); padding-top: 0.4rem; margin-top: 0.2rem;
}

/* === Education: Ramadan Sections === */
.edu-ramadan-section {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: 1rem; padding: 1rem 1.25rem; margin-bottom: 1rem;
}
.edu-ramadan-section-title {
  font-size: 0.95rem; font-weight: 700; color: #a78bfa;
  margin-bottom: 0.75rem; padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(167,139,250,0.2);
}
.edu-ramadan-points { padding-left: 1.25rem; margin: 0; }
.edu-ramadan-points li { font-size: 0.88rem; line-height: 1.7; margin-bottom: 0.3rem; }
.edu-ramadan-script { display: flex; flex-direction: column; gap: 0.6rem; }
.edu-ramadan-situation {
  font-size: 0.85rem; background: var(--bg-card);
  border-radius: 0.5rem; padding: 0.5rem 0.75rem; color: var(--text-secondary);
}
.edu-ramadan-answer {
  font-size: 0.88rem; background: rgba(167,139,250,0.1);
  border-radius: 0.5rem; padding: 0.5rem 0.75rem; color: #c4b5fd; font-weight: 600;
}

/* === Ramadan scripts (v18 additions) === */
.edu-ramadan-points { padding: 12px 16px 12px 28px; }
.edu-ramadan-points li { margin-bottom: 8px; font-size: 0.95rem; line-height: 1.6; }
.edu-ramadan-scripts { padding: 12px; display: flex; flex-direction: column; gap: 12px; }
.edu-script-card { background: var(--bg-card); border-radius: 8px; padding: 12px; }
.edu-script-situation { font-size: 0.82rem; color: #888; margin-bottom: 6px; }
.edu-script-answer { font-size: 0.93rem; line-height: 1.6; color: #e0e0e0; border-left: 3px solid var(--green,#00c896); padding-left: 10px; }
.edu-ramadan-desc { padding: 12px 16px; font-size: 0.93rem; line-height: 1.7; color: #ccc; }

/* === Prayer Times Widget + Dua Audio (v19) === */
.prayer-widget { padding: 12px; }
.hijri-date { text-align: center; font-size: 0.9rem; color: #aaa; margin-bottom: 14px; }
.prayer-times-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 14px; }
@media (min-width: 600px) { .prayer-times-grid { grid-template-columns: repeat(3, 1fr); } }
.prayer-time-card { background: var(--bg-base); border-top: 3px solid #b8860b; border-radius: 10px; padding: 14px 10px; text-align: center; position: relative; }
.prayer-time-card.next-prayer { border-top-color: var(--green, #00c896); box-shadow: 0 0 12px rgba(0,200,150,0.3); }
.prayer-icon { font-size: 1.5rem; margin-bottom: 4px; }
.prayer-name-kana { font-size: 0.85rem; color: #ccc; margin-bottom: 4px; }
.prayer-time-val { font-size: 1.25rem; font-weight: 700; color: var(--text-primary); }
.next-badge { position: absolute; top: 6px; right: 8px; font-size: 0.65rem; background: var(--green, #00c896); color: #000; border-radius: 4px; padding: 1px 5px; font-weight: 700; }
.next-prayer-banner { background: rgba(0,200,150,0.12); border: 1px solid rgba(0,200,150,0.3); border-radius: 8px; padding: 12px 16px; text-align: center; font-size: 0.95rem; color: #e0e0e0; margin-bottom: 14px; }
.qibla-card { background: var(--bg-base); border-radius: 10px; padding: 16px; text-align: center; }
.qibla-card p { font-size: 0.85rem; color: #aaa; margin-top: 10px; }
.qibla-compass { display: inline-block; margin: 0 auto; }
.compass-ring { width: 80px; height: 80px; border: 3px solid #b8860b; border-radius: 50%; position: relative; margin: 0 auto; }
.compass-needle { position: absolute; top: 50%; left: 50%; width: 3px; height: 34px; background: linear-gradient(to bottom, var(--green,#00c896) 50%, #555 50%); transform-origin: bottom center; margin-left: -1.5px; margin-top: -34px; border-radius: 2px 2px 0 0; }
.compass-label-n { position: absolute; top: 2px; left: 50%; transform: translateX(-50%); font-size: 0.65rem; color: #b8860b; font-weight: 700; }
.dua-play-btn { margin-top: 8px; background: rgba(0,200,150,0.12); border: 1px solid rgba(0,200,150,0.4); color: var(--green, #00c896); border-radius: 6px; padding: 5px 14px; font-size: 0.82rem; cursor: pointer; }
.dua-play-btn:hover { background: rgba(0,200,150,0.22); }

/* ── Mosque Directory UI ─────────────────────────────────────────── */
#mosque-ui { margin-bottom: 0.5rem; }
.mosque-stats-bar { display: flex; gap: 1rem; flex-wrap: wrap; padding: 0.6rem 1rem; background: var(--bg-card); border-radius: 10px; font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 0.75rem; }
.mosque-type-filter { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 0.6rem; }
.mosque-type-btn { padding: 6px 12px; border-radius: 20px; border: 1px solid var(--border-strong); background: var(--bg-card); color: var(--text-secondary); font-size: 0.78rem; cursor: pointer; transition: all 0.2s; white-space: nowrap; }
.mosque-type-btn.active { border-color: #2ecc71; background: rgba(46,204,113,0.15); color: #2ecc71; }
.mosque-pref-section { margin-bottom: 0.5rem; }
.mosque-pref-toggle { width: 100%; padding: 8px 14px; background: var(--bg-card); border: 1px solid rgba(255,255,255,0.12); border-radius: 8px; color: var(--text-secondary); font-size: 0.82rem; cursor: pointer; text-align: left; }
.mosque-pref-grid { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0.6rem 0; }
.mosque-pref-btn { padding: 5px 10px; border-radius: 16px; border: 1px solid rgba(255,255,255,0.12); background: var(--bg-card); color: rgba(255,255,255,0.55); font-size: 0.75rem; cursor: pointer; transition: all 0.18s; }
.mosque-pref-btn.active { border-color: #a78bfa; background: rgba(167,139,250,0.15); color: #a78bfa; }
.mosque-pref-btn:hover { border-color: var(--text-muted); color: rgba(255,255,255,0.85); }
.mosque-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 1rem; padding: 1rem 1.1rem; margin-bottom: 0.6rem; cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.mosque-card:hover, .mosque-card:active { border-color: #2ecc71; background: rgba(46,204,113,0.05); }
.mosque-card-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.5rem; margin-bottom: 0.35rem; }
.mosque-card-names { flex: 1; min-width: 0; }
.mosque-card-name { font-size: 0.95rem; font-weight: 700; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mosque-card-name-jp { font-size: 0.78rem; color: rgba(255,255,255,0.55); margin: 2px 0 0; }
.mosque-card-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.mosque-type-badge { font-size: 0.7rem; padding: 2px 8px; border-radius: 10px; background: rgba(167,139,250,0.15); color: #a78bfa; white-space: nowrap; border: 1px solid rgba(167,139,250,0.25); }
.mosque-card-location { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 0.2rem; }
.mosque-card-address { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 0.4rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mosque-card-amenities { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.amenity-chip { font-size: 0.7rem; padding: 3px 8px; border-radius: 10px; background: var(--bg-card); border: 1px solid var(--border-color); color: var(--text-secondary); white-space: nowrap; }


/* ===== POPULATION PAGE (v23) ===== */
.pop-container { padding: 0 1rem 6rem; max-width: 680px; margin: 0 auto; }
.pop-lang-row { display: flex; justify-content: flex-end; padding: 0.75rem 0 0.25rem; }
.lang-toggle { display: flex; gap: 0; background: var(--bg-card-warm); border-radius: 20px; padding: 2px; }
.lang-btn { background: transparent; border: none; border-radius: 18px; padding: 0.25rem 0.75rem; font-size: 0.75rem; color: var(--text-muted); cursor: pointer; }
.lang-btn.active { background: var(--primary); color: #000; font-weight: 600; }
.pop-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; margin: 0.75rem 0; }
.pop-stat { background: var(--bg-card); border-radius: 12px; padding: 1rem; text-align: center; border: 1px solid var(--border-color); }
.stat-num { display: block; font-size: 1.5rem; font-weight: 700; color: var(--primary); }
.stat-label { font-size: 0.7rem; color: var(--text-secondary); margin-top: 0.25rem; display: block; }
.pop-section { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 1rem; margin-bottom: 1rem; }
.section-title { font-size: 1rem; font-weight: 600; margin-bottom: 0.75rem; color: var(--text-primary); }
.pop-chart-svg { width: 100%; height: auto; display: block; }
.pop-search { width: 100%; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 8px; padding: 0.6rem 1rem; color: var(--text-primary); font-size: 0.9rem; margin-bottom: 0.75rem; box-sizing: border-box; }
.pop-search::placeholder { color: var(--text-muted); }
.region-pills { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.75rem; }
.region-pill { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 20px; padding: 0.3rem 0.75rem; font-size: 0.75rem; color: var(--text-secondary); cursor: pointer; }
.region-pill.active { background: var(--primary); color: #000; border-color: var(--primary); font-weight: 600; }
.view-toggle { display: flex; gap: 0.5rem; margin-bottom: 0.75rem; }
.view-btn { flex: 1; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 8px; padding: 0.5rem; font-size: 0.8rem; color: var(--text-secondary); cursor: pointer; }
.view-btn.active { background: var(--primary); color: #000; font-weight: 600; border-color: var(--primary); }
.pref-card { display: flex; align-items: center; gap: 0.75rem; background: var(--bg-card); border-radius: 10px; padding: 0.75rem; margin-bottom: 0.5rem; cursor: pointer; transition: background 0.2s; border: 1px solid var(--border-color); }
.pref-card:hover { background: var(--bg-elevated); }
.pref-rank { min-width: 36px; text-align: center; font-size: 0.9rem; font-weight: 700; color: var(--text-muted); }
.pref-rank.top3 { color: #f59e0b; }
.pref-info { flex: 1; min-width: 0; }
.pref-name { font-size: 0.95rem; font-weight: 600; color: var(--text-primary); }
.pref-name-en { font-size: 0.75rem; font-weight: 400; color: var(--text-muted); }
.pref-bar-wrap { height: 4px; background: var(--bg-elevated); border-radius: 2px; margin: 0.35rem 0; }
.pref-bar { height: 4px; background: var(--primary); border-radius: 2px; }
.pref-stats { font-size: 0.8rem; color: var(--text-secondary); }
.pref-pct { color: var(--text-muted); }
.pref-arrow { color: var(--text-muted); font-size: 1.2rem; }
.no-results { text-align: center; padding: 2rem; color: var(--text-muted); }
.pop-table-wrap { overflow-x: auto; }
.pop-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.pop-table th { text-align: left; padding: 0.5rem 0.75rem; color: var(--text-muted); border-bottom: 1px solid var(--border-color); font-weight: 500; font-size: 0.75rem; }
.pop-table-row { cursor: pointer; transition: background 0.15s; }
.pop-table-row:hover { background: var(--bg-card); }
.pop-table td { padding: 0.6rem 0.75rem; color: var(--text-primary); border: 1px solid var(--border-color); }
.pop-table td small { color: var(--text-muted); font-size: 0.75rem; }
.mini-bar { width: 60px; height: 4px; background: var(--bg-elevated); border-radius: 2px; }
.mini-bar-fill { height: 4px; background: var(--primary); border-radius: 2px; }
.sources-header { cursor: pointer; font-size: 0.9rem; font-weight: 600; color: var(--text-primary); display: flex; justify-content: space-between; align-items: center; padding: 0.25rem 0; }
.sources-body { margin-top: 0.75rem; }
.sources-body.hidden { display: none; }
.source-item { display: flex; gap: 0.75rem; margin-bottom: 0.75rem; }
.source-num { min-width: 24px; height: 24px; background: var(--primary); color: #000; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; flex-shrink: 0; }
.source-text { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.5; }
.source-link { color: var(--primary); text-decoration: none; }
.source-note { font-size: 0.78rem; color: var(--text-muted); background: var(--bg-card); border-radius: 8px; padding: 0.75rem; margin-top: 0.5rem; border-left: 3px solid var(--warning); }
.pop-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: flex-end; justify-content: center; }
.pop-modal.hidden { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.7); }
.modal-card { position: relative; background: var(--bg-base); border-radius: 20px 20px 0 0; width: 100%; max-width: 680px; padding: 1.5rem; z-index: 1; max-height: 85vh; overflow-y: auto; border: 1px solid var(--border-color); }
.modal-header { margin-bottom: 1rem; position: relative; }
.modal-header h3 { font-size: 1.3rem; color: var(--text-primary); margin: 0; }
.modal-sub { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.25rem; }
.modal-close { position: absolute; top: 0; right: 0; background: var(--bg-elevated); border: none; color: var(--text-primary); width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 1rem; }
.modal-stat-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 0.75rem; margin-bottom: 1rem; }
.modal-stat { background: var(--bg-card); border-radius: 10px; padding: 0.75rem; text-align: center; }
.modal-stat-val { font-size: 1.2rem; font-weight: 700; color: var(--primary); }
.modal-stat-label { font-size: 0.7rem; color: var(--text-muted); margin-top: 0.25rem; }
.modal-bar-label { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 0.4rem; }
.modal-bar-track { height: 6px; background: var(--bg-elevated); border-radius: 3px; margin-bottom: 1rem; }
.modal-bar-fill { height: 6px; background: var(--primary); border-radius: 3px; }
.modal-notable { font-size: 0.85rem; color: var(--text-secondary); background: var(--bg-card); border-radius: 8px; padding: 0.75rem; margin-bottom: 0.75rem; }
.modal-total { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 1rem; }
.modal-mosque-link { display: block; background: var(--primary); color: #000; text-align: center; padding: 0.8rem; border-radius: 10px; font-weight: 600; font-size: 0.9rem; cursor: pointer; }
/* Fix homepage feature card text color */
.feature-card h4 { color: var(--text-primary) !important; }
.feature-card p { color: var(--text-secondary) !important; }

/* ===== KIDS PAGE (v24) ===== */
.kids-container { padding: 0 1rem 6rem; max-width: 680px; margin: 0 auto; }

/* Stars bar */
.kids-stars-bar { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem 0 0.5rem; font-size: 0.9rem; color: var(--text-secondary); }
.kids-change-age { background: var(--bg-card-warm); border: none; border-radius: 20px; padding: 0.3rem 0.75rem; font-size: 0.75rem; color: var(--text-muted); cursor: pointer; }

/* Age selector */
.kids-age-screen { max-width: 440px; margin: 0 auto; }
.kids-age-card { display: flex; align-items: center; gap: 1rem; background: var(--bg-card); border-radius: 20px; padding: 1.2rem 1.5rem; border: 3px solid transparent; cursor: pointer; transition: all 0.25s; width: 100%; text-align: left; color: var(--text-primary); }
.kids-age-card:hover { border-color: var(--primary); transform: scale(1.02); box-shadow: 0 0 18px rgba(46,204,113,0.35); }
.kids-age-card.beginner { background: linear-gradient(135deg, #1a3a2a, #0f2a1a); }
.kids-age-card.junior   { background: linear-gradient(135deg, #1a2a3a, #0f1a2a); }
.kids-age-card.senior   { background: linear-gradient(135deg, #2a1a3a, #1a0f2a); }

/* Daily challenge */
.kids-daily { background: linear-gradient(135deg, #2d1b69, #1a0a40); border: 2px solid #7c3aed; border-radius: 16px; padding: 1.2rem; margin-bottom: 1rem; }
.kids-daily-title { font-size: 0.8rem; color: #a78bfa; font-weight: 600; margin-bottom: 0.4rem; }
.kids-daily-q { font-size: 1rem; font-weight: 600; color: var(--text-primary); margin-bottom: 0.5rem; line-height: 1.4; }
.kids-daily-answer { text-align: center; margin-top: 0.5rem; }
.kids-reveal-btn { background: #7c3aed; border: none; border-radius: 10px; padding: 0.5rem 1.2rem; color: var(--text-primary); font-size: 0.85rem; cursor: pointer; font-weight: 600; }
.kids-star-btn { background: rgba(245,158,11,0.2); border: 2px solid #f59e0b; border-radius: 20px; padding: 0.35rem 0.9rem; color: #f59e0b; font-size: 0.8rem; cursor: pointer; font-weight: 600; transition: all 0.2s; }
.kids-star-btn:hover, .kids-star-btn.active { background: #f59e0b; color: #000; }

/* Tabs */
.kids-tabs { display: flex; gap: 0.4rem; overflow-x: auto; margin-bottom: 1rem; padding-bottom: 0.4rem; scrollbar-width: none; }
.kids-tabs::-webkit-scrollbar { display: none; }
.kids-tab { background: var(--bg-card); border: 2px solid transparent; border-radius: 12px; padding: 0.45rem 0.8rem; font-size: 0.78rem; white-space: nowrap; cursor: pointer; color: var(--text-secondary); flex-shrink: 0; transition: all 0.2s; }
.kids-tab.active { background: var(--primary); color: #000; font-weight: 700; border-color: var(--primary); box-shadow: 0 0 14px rgba(46,204,113,0.45); }

/* Surah cards */
.kids-surah-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-bottom: 1rem; }
.kids-surah-card { background: var(--bg-card); border-radius: 14px; padding: 1rem 0.75rem; border: 2px solid var(--border-color); text-align: center; transition: all 0.25s; }
.kids-surah-card.memorized { border-color: var(--primary); background: rgba(46,204,113,0.08); }
.kids-surah-arabic { font-size: 1.4rem; color: #f59e0b; margin-bottom: 0.4rem; line-height: 1.5; }
.kids-surah-jp { font-size: 0.8rem; color: var(--text-primary); font-weight: 600; }
.kids-surah-sub { font-size: 0.68rem; color: var(--text-muted); margin: 0.2rem 0 0.6rem; }
.kids-mem-btn { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 20px; padding: 0.3rem 0.7rem; font-size: 0.72rem; color: var(--text-muted); cursor: pointer; transition: all 0.2s; }
.kids-mem-btn.active { background: rgba(26, 92, 58, 0.12); border-color: var(--primary); color: var(--primary); }

/* Pillars */
.kids-pillars-row { display: flex; gap: 0.4rem; margin-bottom: 0.75rem; }
.kids-pillar-col { flex: 1; background: linear-gradient(to bottom, rgba(46,204,113,0.15), rgba(46,204,113,0.04)); border: 2px solid rgba(46,204,113,0.25); border-radius: 12px; padding: 0.7rem 0.2rem; text-align: center; cursor: pointer; transition: all 0.25s; }
.kids-pillar-col:hover, .kids-pillar-col.active { background: rgba(46,204,113,0.25); border-color: var(--primary); transform: translateY(-3px); }
.kids-pillar-num { font-size: 1.2rem; font-weight: 700; color: var(--primary); }
.kids-pillar-expand { background: var(--bg-card); border-radius: 14px; padding: 1.2rem; border: 2px solid var(--primary); margin-bottom: 0.75rem; display: none; animation: kids-slide-down 0.3s ease; }
.kids-pillar-expand.show { display: block; }
@keyframes kids-slide-down { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

/* Manners cards */
.kids-manner-card { background: var(--bg-card); border-radius: 14px; border: 2px solid var(--border-color); min-height: 110px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s; }
.kids-manner-card:hover { border-color: var(--primary); }
.kids-manner-card.flipped { border-color: #f59e0b; background: rgba(245,158,11,0.06); }

/* Dua cards */
.kids-dua-card { background: var(--bg-card); border-radius: 16px; padding: 1.2rem; margin-bottom: 0.75rem; border: 2px solid var(--border-color); text-align: center; transition: border-color 0.25s; }
.kids-dua-card.learned { border-color: #f59e0b; }
.kids-dua-arabic { font-size: 1.5rem; color: #f59e0b; line-height: 1.8; margin: 0.5rem 0; direction: rtl; }
.kids-dua-roman { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 0.3rem; }
.kids-dua-jp { font-size: 0.88rem; color: var(--text-secondary); }

/* Story */
.kids-story-select { display: flex; align-items: center; gap: 1rem; background: var(--bg-card); border: 2px solid var(--border-color); border-radius: 14px; padding: 1rem; cursor: pointer; transition: all 0.2s; width: 100%; }
.kids-story-select:hover { border-color: var(--primary); }
.kids-story-select.done { border-color: rgba(46,204,113,0.4); }
.kids-story-panel { background: linear-gradient(135deg, #1a1a3e, #0f0f28); border-radius: 16px; padding: 1.5rem; border: 2px solid #4f46e5; text-align: center; min-height: 260px; }
.kids-story-emoji { font-size: 3.5rem; display: block; margin-bottom: 0.75rem; }
.kids-story-text { font-size: 0.95rem; line-height: 1.85; color: var(--text-primary); text-align: left; }
.kids-story-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 1rem; }
.kids-story-btn { background: var(--primary); color: #000; border: none; border-radius: 10px; padding: 0.55rem 1.1rem; font-weight: 600; cursor: pointer; font-size: 0.85rem; }
.kids-back-btn { background: var(--bg-card); border: none; border-radius: 8px; padding: 0.4rem 0.9rem; color: var(--text-muted); font-size: 0.8rem; cursor: pointer; margin-bottom: 0.75rem; }

/* Cards game */
.kids-deck-btn { flex: 1; background: var(--bg-card); border: 2px solid var(--border-color); border-radius: 10px; padding: 0.6rem 0.3rem; font-size: 0.75rem; color: var(--text-primary); cursor: pointer; transition: all 0.2s; }
.kids-deck-btn:hover { border-color: var(--primary); }
.kids-cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; }
.kids-card { aspect-ratio: 1; perspective: 600px; cursor: pointer; }
.kids-card-inner { width: 100%; height: 100%; transition: transform 0.5s; transform-style: preserve-3d; position: relative; }
.kids-card.flipped .kids-card-inner { transform: rotateY(180deg); }
.kids-card-front, .kids-card-back { position: absolute; inset: 0; backface-visibility: hidden; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 0.72rem; text-align: center; padding: 0.3rem; font-weight: 600; border: 2px solid var(--border-color); }
.kids-card-front { background: linear-gradient(135deg, #1a3a1a, #0f2a0f); font-size: 1.3rem; }
.kids-card-back { background: var(--bg-card); transform: rotateY(180deg); color: var(--text-primary); }
.kids-card.matched .kids-card-back { background: rgba(46,204,113,0.18); border-color: var(--primary); }
.kids-card.wrong .kids-card-inner { animation: kids-shake 0.4s ease; }
@keyframes kids-shake { 0%,100%{transform:rotateY(180deg) translateX(0)} 30%{transform:rotateY(180deg) translateX(-5px)} 70%{transform:rotateY(180deg) translateX(5px)} }

/* Quiz */
.kids-quiz-cat-btn { background: var(--bg-card); border: 2px solid var(--border-color); border-radius: 12px; padding: 0.9rem; cursor: pointer; color: var(--text-primary); transition: all 0.2s; text-align: center; }
.kids-quiz-cat-btn:hover { border-color: var(--primary); }
.kids-quiz-option { width: 100%; background: var(--bg-card); border: 2px solid var(--border-color); border-radius: 12px; padding: 0.85rem 1rem; margin-bottom: 0.55rem; text-align: left; color: var(--text-primary); font-size: 0.92rem; cursor: pointer; transition: all 0.15s; display: block; }
.kids-quiz-option:hover:not([disabled]) { background: var(--bg-elevated); border-color: var(--primary); }
.kids-quiz-option.correct { background: rgba(46,204,113,0.22); border-color: var(--primary); }
.kids-quiz-option.wrong { background: rgba(231,76,60,0.22); border-color: #e74c3c; }
.kids-progress-bar-wrap { height: 8px; background: var(--bg-elevated); border-radius: 4px; margin-bottom: 1rem; }
.kids-progress-bar { height: 8px; background: var(--primary); border-radius: 4px; transition: width 0.4s; }

/* Badges */
.kids-section { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 1rem; }
.kids-badges-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; }
.kids-badge { background: var(--bg-card); border-radius: 12px; padding: 0.7rem 0.5rem; text-align: center; border: 2px solid var(--border-color); opacity: 0.38; transition: all 0.3s; }
.kids-badge.earned { opacity: 1; border-color: #f59e0b; background: rgba(245,158,11,0.1); box-shadow: 0 0 12px rgba(245,158,11,0.25); }
.kids-badge-icon { font-size: 1.7rem; display: block; }
.kids-badge-name { font-size: 0.6rem; color: var(--text-muted); margin-top: 0.25rem; line-height: 1.3; }

/* Animations */
@keyframes star-fly { 0%{transform:scale(0) rotate(0deg);opacity:1;bottom:30%;} 50%{transform:scale(2) rotate(180deg);opacity:1;} 100%{transform:scale(0.5) rotate(360deg) translateY(-200px);opacity:0;} }
.star-anim { position:fixed;font-size:2.5rem;z-index:9999;animation:star-fly 1.5s ease forwards;pointer-events:none;bottom:40%; }
@keyframes confetti-fall { to { transform:translateY(110vh) rotate(720deg);opacity:0; } }

@media (max-width: 480px) {
  /* Card game: 3 cols on mobile for better tap size (was 4 = 84px each, too small) */
  .kids-cards-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
  }

  /* Badges: 2 cols on mobile so icon+name text isn't cramped (was 4 cols = 74px) */
  .kids-badges-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }

  /* Tab bar: right-side fade hint so kids know it scrolls */
  .kids-tabs {
    -webkit-mask-image: linear-gradient(to right, black 78%, transparent 100%);
    mask-image: linear-gradient(to right, black 78%, transparent 100%);
  }

  /* Pillar columns: tighter padding so labels don't clip on narrow screens */
  .kids-pillar-col {
    padding: 0.5rem 0.1rem;
    font-size: 0.7rem;
  }

  /* Daily challenge text: slightly smaller on very small screens */
  .kids-daily-q {
    font-size: 0.92rem;
  }

  /* Story emoji: scale down from 3.5rem to 2.5rem */
  .kids-story-emoji {
    font-size: 2.5rem;
  }
}

/* ===========================================
   PARCHMENT LIGHT — SUB-PAGE OVERRIDES
   =========================================== */

/* ── Page container base ── */
#page-container {
  background: var(--bg-base);
  color: var(--text-primary);
}

/* ── Location / detail cards ── */
.location-card, .detail-card, .result-card,
.restaurant-card, .mosque-card, .shop-card,
.hospital-card, .doctor-card, .job-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}
.location-card:hover, .detail-card:hover,
.restaurant-card:hover, .mosque-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

/* ── List items ── */
.list-item {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
}
.list-item:hover, .list-item:active {
  background: var(--bg-card-warm);
}
.list-item h3, .list-item h4, .list-item .item-name {
  color: var(--text-primary);
}
.list-item p, .list-item .item-desc, .list-item .item-address {
  color: var(--text-secondary);
}
.list-item .item-meta, .list-item .item-tag {
  color: var(--text-muted);
}

/* ── Filter chips / tabs ── */
.filter-chip, .tab-btn, .filter-btn {
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  border-radius: 20px;
  font-size: 13px;
  padding: 6px 14px;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-chip:hover, .tab-btn:hover, .filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(26,92,58,0.06);
}
.filter-chip.active, .tab-btn.active, .filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

/* ── Status badges ── */
.badge-halal, .badge-certified {
  background: rgba(26,92,58,0.1);
  color: var(--primary);
  border: 1px solid rgba(26,92,58,0.25);
  border-radius: 20px;
  font-size: 11px;
  padding: 2px 10px;
  font-weight: 600;
}
.badge-warning, .badge-check {
  background: rgba(200,149,42,0.1);
  color: var(--accent-gold);
  border: 1px solid rgba(200,149,42,0.25);
  border-radius: 20px;
  font-size: 11px;
  padding: 2px 10px;
  font-weight: 600;
}
.badge-danger, .badge-haram {
  background: rgba(192,57,43,0.1);
  color: var(--danger);
  border: 1px solid rgba(192,57,43,0.25);
  border-radius: 20px;
  font-size: 11px;
  padding: 2px 10px;
  font-weight: 600;
}

/* ── Info boxes ── */
.info-box, .alert-box, .notice-box {
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 13px;
  border-left: 3px solid;
}
.info-box { background: rgba(26,92,58,0.07); border-color: var(--primary); color: var(--text-secondary); }
.alert-box { background: rgba(192,57,43,0.07); border-color: var(--danger); color: var(--text-secondary); }
.notice-box { background: rgba(200,149,42,0.07); border-color: var(--accent-gold); color: var(--text-secondary); }

/* ── Modal / bottom sheet ── */
.modal-content, .bottom-sheet, .modal-body {
  background: var(--bg-card);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  border-top: 1px solid var(--border-gold);
  box-shadow: 0 -4px 24px rgba(139,100,60,0.15);
  color: var(--text-primary);
}
.modal-header, .sheet-header {
  border-bottom: 1px solid var(--border-color);
  padding: 16px 20px;
}
.modal-header h2, .modal-header h3,
.sheet-header h2, .sheet-header h3 {
  color: var(--text-primary);
}

/* ── Form elements ── */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="tel"],
textarea, select {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-color) !important;
  color: var(--text-primary) !important;
  border-radius: var(--radius-md);
}
input:focus, textarea:focus, select:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(26,92,58,0.1) !important;
  outline: none;
}
input::placeholder, textarea::placeholder {
  color: var(--text-muted) !important;
}
label { color: var(--text-secondary); font-size: 13px; }

/* ── Tags ── */
.tag, .pill, .chip {
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  border-radius: 20px;
  font-size: 11px;
  padding: 3px 10px;
}

/* ── Section titles inside sub-pages ── */
.page-content h2, .page-content h3 {
  color: var(--text-primary);
}
.page-content h2 {
  font-size: 16px;
  font-weight: 700;
  padding-left: 10px;
  border-left: 3px solid var(--accent-gold);
  margin: 20px 0 12px;
}

/* ── Empty state ── */
.empty-state, .no-results {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-muted);
}
.empty-state .empty-icon { font-size: 48px; margin-bottom: 12px; }
.empty-state p { font-size: 14px; color: var(--text-muted); }

/* ── Loading skeleton ── */
.skeleton-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
}
.skeleton-line {
  background: var(--bg-elevated);
  border-radius: 4px;
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
  0% { opacity: 0.6; }
  50% { opacity: 1; }
  100% { opacity: 0.6; }
}

/* ── Map container ── */
.map-container, #map {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

/* ── Rating stars ── */
.stars, .rating { color: var(--accent-gold); }
.rating-count { color: var(--text-muted); font-size: 12px; }

/* ── Verification badge ── */
.verified-badge, .staff-verified {
  background: rgba(26,92,58,0.1);
  color: var(--primary);
  border: 1px solid rgba(26,92,58,0.2);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
}

/* ── Prayer times table ── */
.prayer-time-row {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
}
.prayer-time-row.active,
.prayer-time-row.next-prayer {
  background: rgba(26,92,58,0.08);
  border-left: 3px solid var(--primary);
}
.prayer-name { color: var(--text-primary); font-weight: 600; }
.prayer-time-val { color: var(--primary); font-weight: 700; font-variant-numeric: tabular-nums; }

/* ── Scanner result cards ── */
.scan-result-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}
.scan-result-halal  { border-color: var(--primary); background: rgba(26,92,58,0.04); }
.scan-result-haram  { border-color: var(--danger);  background: rgba(192,57,43,0.04); }
.scan-result-check  { border-color: var(--accent-gold); background: rgba(200,149,42,0.04); }

/* ── Community posts ── */
.post-card, .community-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.post-author { color: var(--text-primary); font-weight: 600; }
.post-time, .post-meta { color: var(--text-muted); font-size: 12px; }
.post-body { color: var(--text-secondary); }

/* ── Job cards ── */
.job-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--accent-gold);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.job-title { color: var(--text-primary); font-weight: 600; }
.job-company { color: var(--primary); }
.job-location, .job-salary { color: var(--text-muted); font-size: 12px; }

/* ── Blog overrides for parchment ── */
.blog-hero {
  background: linear-gradient(135deg, rgba(26,92,58,0.08), rgba(200,149,42,0.06)) !important;
  border-color: var(--border-gold) !important;
}
.blog-featured {
  background: var(--bg-card) !important;
  border-color: var(--border-gold) !important;
}
.blog-card {
  background: var(--bg-card) !important;
  border-color: var(--border-color) !important;
}
.blog-card:hover {
  border-color: var(--primary) !important;
  background: var(--bg-card-warm) !important;
}
.blog-sidebar-card {
  background: var(--bg-card) !important;
  border-color: var(--border-color) !important;
}
.blog-category-item:hover { background: rgba(26,92,58,0.08) !important; color: var(--primary) !important; }
.blog-category-item.active { background: rgba(26,92,58,0.12) !important; color: var(--primary) !important; }
.blog-toc { background: var(--bg-card-warm) !important; border-color: var(--border-gold) !important; }
.blog-content h2 { border-color: var(--primary) !important; color: var(--text-primary) !important; }
.blog-content { color: var(--text-secondary) !important; }
.blog-box-green { background: rgba(26,92,58,0.07) !important; border-color: rgba(26,92,58,0.25) !important; }
.blog-box-green .blog-box-title { color: var(--primary) !important; }
.blog-box-green li, .blog-box-green p { color: var(--text-secondary) !important; }
.blog-box-yellow { background: rgba(200,149,42,0.07) !important; border-color: rgba(200,149,42,0.25) !important; }
.blog-box-yellow .blog-box-title { color: var(--accent-gold) !important; }
.blog-box-blue { background: rgba(91,127,166,0.07) !important; border-color: rgba(91,127,166,0.25) !important; }
.blog-box-blue .blog-box-title { color: var(--secondary) !important; }
.blog-box-red { background: rgba(192,57,43,0.07) !important; border-color: rgba(192,57,43,0.25) !important; }
.blog-box-red .blog-box-title { color: var(--danger) !important; }
.blog-summary { background: linear-gradient(135deg, rgba(26,92,58,0.08), rgba(200,149,42,0.05)) !important; border-color: var(--border-gold) !important; }
.blog-back-btn { color: var(--text-secondary) !important; }
.blog-back-btn:hover { color: var(--primary) !important; }
.blog-breadcrumb a { color: var(--primary) !important; }
.blog-search { background: var(--bg-card) !important; border-color: var(--border-color) !important; }
.blog-search input { color: var(--text-primary) !important; }
.blog-related-card { background: var(--bg-card) !important; border-color: var(--border-color) !important; }
.blog-related-card:hover { border-color: var(--primary) !important; background: var(--bg-card-warm) !important; }
.blog-article-desc { background: rgba(26,92,58,0.06) !important; border-color: var(--primary) !important; color: var(--text-secondary) !important; }

/* ── Konbini page ── */
.kstat-grey { background: var(--bg-elevated) !important; color: var(--text-muted) !important; }

/* ── Dark mode preserves dark aesthetic ── */
html.dark-mode #page-container { background: var(--bg-base); }
html.dark-mode .list-item { background: var(--bg-card); border-color: var(--border-color); }
html.dark-mode .list-item h3, html.dark-mode .list-item h4 { color: var(--text-primary); }
html.dark-mode .modal-content, html.dark-mode .bottom-sheet { background: #1a1a0a; }
html.dark-mode .page-header { background: rgba(15,18,8,0.98) !important; }
html.dark-mode input, html.dark-mode textarea, html.dark-mode select { background: var(--bg-card) !important; color: var(--text-primary) !important; }
html.dark-mode .filter-chip, html.dark-mode .tab-btn { background: var(--bg-elevated); color: var(--text-secondary); }
html.dark-mode .blog-hero { background: linear-gradient(135deg, rgba(58,170,110,0.1), rgba(210,160,50,0.06)) !important; }
html.dark-mode .blog-card, html.dark-mode .blog-featured,
html.dark-mode .blog-sidebar-card { background: var(--bg-card) !important; }

/* ============================================
   MOBILE RESPONSIVENESS FIX — June 2026
   ============================================ */
@media (max-width: 480px) {
  /* Prayer times grid — 2 cols on mobile */
  .prayer-times-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 8px !important; }
  .prayer-card { padding: 10px 8px !important; }
  .prayer-name { font-size: 11px !important; }
  .prayer-time { font-size: 16px !important; }

  /* Modal stat row — 2 cols not 3 */
  .modal-stat-row { grid-template-columns: repeat(2, 1fr) !important; }
  .pop-stats { grid-template-columns: repeat(2, 1fr) !important; }

  /* Kids section */
  .kids-tabs { padding: 0 8px !important; gap: 6px !important; }
  .kids-tab { padding: 6px 10px !important; font-size: 11px !important; }
  .kids-surah-grid { grid-template-columns: 1fr !important; }
  .kids-cards-grid { grid-template-columns: repeat(3, 1fr) !important; }
  .kids-badges-grid { grid-template-columns: repeat(2, 1fr) !important; }

  /* Scanner tabs */
  .scanner-tabs { overflow-x: auto !important; flex-wrap: nowrap !important; }
  .scanner-tab { white-space: nowrap !important; flex-shrink: 0 !important; padding: 8px 12px !important; font-size: 12px !important; }

  /* Konbini ingredients grid */
  .k-ing-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 8px !important; }
  .k-ing-card { padding: 10px 8px !important; }
  .k-ing-ja { font-size: 16px !important; }
  .k-ing-romaji { font-size: 11px !important; }
  .k-ing-en { font-size: 11px !important; }

  /* Organizations grid */
  .org-grid { grid-template-columns: 1fr !important; }
  .org-card { padding: 12px !important; }

  /* Blog cards */
  .blog-grid { grid-template-columns: 1fr !important; }
  .blog-card { padding: 14px !important; }
  .blog-card-title { font-size: 15px !important; }

  /* Halal companies */
  .companies-grid { grid-template-columns: 1fr !important; }

  /* Location list map height */
  #location-list-map { height: 300px !important; }

  /* Detail modal on mobile — full screen */
  .detail-modal { padding: 0 !important; }
  .detail-modal .modal-content { 
    margin: 0 !important; 
    border-radius: 16px 16px 0 0 !important; 
    max-height: 95vh !important;
    overflow-y: auto !important;
  }

  /* Form inputs */
  .k-input { font-size: 16px !important; } /* prevents iOS zoom on focus */
  input[type="text"], input[type="email"], input[type="password"], select, textarea {
    font-size: 16px !important; /* prevents iOS zoom */
  }

  /* Qibla compass */
  .qibla-compass { width: 200px !important; height: 200px !important; }

  /* Hero next prayer widget */
  .hero-prayer-name { font-size: 13px !important; }
  .hero-prayer-time { font-size: 20px !important; }

  /* Page headers */
  .page-header { padding: 12px 16px !important; }
  .page-title { font-size: 18px !important; }
}

/* ============================================
   ARABIC LETTER MINI-GAMES — added June 2026
   ============================================ */

/* ── Balloon Pop ── */
@keyframes balloon-sway {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50%       { transform: translateY(-14px) rotate(2deg); }
}
@keyframes balloon-shake {
  0%, 100% { transform: translateX(0) rotate(0); background: #e74c3c !important; }
  25%      { transform: translateX(-10px) rotate(-4deg); }
  75%      { transform: translateX(10px)  rotate(4deg);  }
}
@keyframes balloon-pop {
  0%   { transform: scale(1);   opacity: 1; }
  40%  { transform: scale(1.5); opacity: 0.7; }
  100% { transform: scale(0);   opacity: 0; }
}
.balloon-wrap {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
  padding: 0.25rem 0 0.75rem;
}
.balloon-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  aspect-ratio: 0.85;
  border-radius: 50% 50% 50% 50% / 58% 58% 42% 42%;
  border: none;
  cursor: pointer;
  padding: 0.5rem 0.25rem;
  animation: balloon-sway 2.2s ease-in-out infinite;
  transition: transform 0.15s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}
.balloon-btn:nth-child(1) { animation-delay: 0s; }
.balloon-btn:nth-child(2) { animation-delay: 0.55s; }
.balloon-btn:nth-child(3) { animation-delay: 1.1s; }
.balloon-btn:nth-child(4) { animation-delay: 1.65s; }
.balloon-btn.wrong  { animation: balloon-shake 0.45s ease !important; }
.balloon-btn.popped { animation: balloon-pop   0.4s ease forwards !important; }

/* ── Speed Round timer bar ── */
.speed-timer-bar-wrap {
  height: 10px;
  background: rgba(255,255,255,0.1);
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}
.speed-timer-bar {
  height: 100%;
  border-radius: 5px;
  transition: width 0.18s linear, background 0.3s;
}

/* ── Listen & Find cards ── */
.listen-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
  margin: 0.5rem 0;
}
.listen-card-btn {
  aspect-ratio: 1;
  border-radius: 14px;
  border: 2px solid var(--border-color);
  background: var(--bg-card);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.4rem;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}
.listen-card-btn:active { transform: scale(0.94); }
.listen-card-btn.correct {
  border-color: var(--primary);
  background: rgba(46,204,113,0.15);
}
.listen-card-btn.wrong {
  border-color: #e74c3c;
  background: rgba(231,76,60,0.1);
}
.listen-card-btn:disabled { cursor: default; }

@media (max-width: 480px) {
  .balloon-wrap { gap: 0.6rem; }
  .listen-cards-grid { gap: 0.4rem; }
}


/* ============================================
   KIDS REDESIGN v2 — modern 2025 kids app
   ============================================ */

/* === Home Screen Wrapper === */
.kids-container .kids-home-wrap {
  background: #ffffff;
  margin: 0 -1rem;
  padding: 0 1rem 1.5rem;
  min-height: 80vh;
  color: #1a1a2e;
}

/* === Top Stats Bar === */
.kids-container .kids-home-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0 0.6rem;
  gap: 0.4rem;
  background: #ffffff;
}
.kids-container .kids-home-stars {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}
.kids-container .kids-home-star-badge {
  display: inline-flex;
  align-items: center;
  background: #FEF9C3;
  border-radius: 20px;
  padding: 0.3rem 0.75rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: #92400e;
  box-shadow: 0 2px 0 #fcd34d;
}
.kids-container .kids-home-streak-badge {
  display: inline-flex;
  align-items: center;
  background: #FFF7ED;
  border-radius: 20px;
  padding: 0.3rem 0.75rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: #c2410c;
  box-shadow: 0 2px 0 #fb923c;
}
.kids-container .kids-home-age-btn {
  background: #f0fdf4;
  border: 2px solid #86efac;
  border-radius: 20px;
  padding: 0.3rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #15803d;
  cursor: pointer;
  min-height: 40px;
  box-shadow: 0 2px 0 #86efac;
}

/* === Home Titles === */
.kids-container .kids-home-title {
  text-align: center;
  font-size: 1.35rem;
  font-weight: 800;
  color: #1a1a2e;
  margin: 0.2rem 0 0.1rem;
  letter-spacing: -0.02em;
}
.kids-container .kids-home-subtitle {
  text-align: center;
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 0.85rem;
}

/* === 6 Big Icon Cards — 2 col x 3 row === */
.kids-container .kids-home-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 0.85rem;
}
.kids-container .kids-home-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  border-radius: 28px;
  padding: 1rem 0.5rem 0.85rem;
  cursor: pointer;
  min-height: 100px;
  box-shadow: 0 6px 0 rgba(0,0,0,0.15);
  transition: transform 0.1s, box-shadow 0.1s;
  -webkit-tap-highlight-color: transparent;
}
.kids-container .kids-home-card:active {
  transform: translateY(4px) scale(0.97);
  box-shadow: 0 2px 0 rgba(0,0,0,0.15);
}
.kids-container .kids-home-card-green  { background: #4CAF50; box-shadow: 0 6px 0 #388E3C; }
.kids-container .kids-home-card-green:active  { box-shadow: 0 2px 0 #388E3C; }
.kids-container .kids-home-card-blue   { background: #2196F3; box-shadow: 0 6px 0 #1565C0; }
.kids-container .kids-home-card-blue:active   { box-shadow: 0 2px 0 #1565C0; }
.kids-container .kids-home-card-orange { background: #FF9800; box-shadow: 0 6px 0 #E65100; }
.kids-container .kids-home-card-orange:active { box-shadow: 0 2px 0 #E65100; }
.kids-container .kids-home-card-purple { background: #9C27B0; box-shadow: 0 6px 0 #6A1B9A; }
.kids-container .kids-home-card-purple:active { box-shadow: 0 2px 0 #6A1B9A; }
.kids-container .kids-home-card-teal   { background: #00BCD4; box-shadow: 0 6px 0 #00838F; }
.kids-container .kids-home-card-teal:active   { box-shadow: 0 2px 0 #00838F; }
.kids-container .kids-home-card-red    { background: #F44336; box-shadow: 0 6px 0 #B71C1C; }
.kids-container .kids-home-card-red:active    { box-shadow: 0 2px 0 #B71C1C; }
.kids-container .kids-home-card-icon   { font-size: 2.8rem; line-height: 1; filter: drop-shadow(0 2px 3px rgba(0,0,0,0.2)); }
.kids-container .kids-home-card-label  { font-size: 1rem; font-weight: 800; color: #fff; text-align: center; line-height: 1.2; text-shadow: 0 1px 3px rgba(0,0,0,0.25); }

/* === More Buttons Row — horizontal scroll === */
.kids-container .kids-home-more-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 4px;
}
.kids-container .kids-home-more-row::-webkit-scrollbar { display: none; }
.kids-container .kids-home-more-btn {
  background: #f9fafb;
  border: 2px solid #e5e7eb;
  border-radius: 24px;
  padding: 0.4rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #374151;
  cursor: pointer;
  min-height: 40px;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 2px 0 #d1d5db;
}
.kids-container .kids-home-more-btn:active {
  transform: translateY(2px);
  box-shadow: none;
}

/* === Daily Challenge override (white card + orange left border) === */
.kids-container .kids-home-wrap .kids-daily,
.kids-container .kids-daily {
  background: #ffffff !important;
  border: 2px solid #e5e7eb !important;
  border-left: 4px solid #FF9800 !important;
  border-radius: 16px !important;
  margin-bottom: 1rem;
}
.kids-container .kids-home-wrap .kids-daily-title,
.kids-container .kids-daily-title { color: #1a1a2e !important; font-size: 0.9rem !important; font-weight: 700 !important; }
.kids-container .kids-home-wrap .kids-daily-q,
.kids-container .kids-daily-q { color: #374151 !important; font-size: 0.85rem !important; }
.kids-container .kids-home-wrap .kids-streak-row { background: transparent; }

/* === Streak override for white bg === */
.kids-container .kids-home-wrap .kids-streak-row { background: transparent; }

/* === Badges override — 4-column grid === */
.kids-container .kids-badges-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 0.5rem !important;
}
.kids-container .kids-badge {
  border-radius: 14px;
  background: #f9fafb;
  border: 2px solid #e5e7eb;
}
.kids-container .kids-badge.earned {
  background: #fefce8;
  border-color: #fde047;
  filter: none;
}
.kids-container .kids-badge:not(.earned) {
  opacity: 0.4;
  filter: grayscale(1);
}

/* === Section Header (back button row) === */
.kids-container .kids-section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1rem 0.75rem;
  border-bottom: 3px solid #f3f4f6;
  margin-bottom: 0.75rem;
  background: #ffffff;
  margin-left: -1rem;
  margin-right: -1rem;
  position: sticky;
  top: 0;
  z-index: 10;
}
.kids-container .kids-back-big-btn {
  background: #f3f4f6;
  border: none;
  border-radius: 14px;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  font-weight: 800;
  color: #1a1a2e;
  cursor: pointer;
  min-height: 48px;
  white-space: nowrap;
  box-shadow: 0 3px 0 #d1d5db;
}
.kids-container .kids-back-big-btn:active {
  transform: translateY(2px);
  box-shadow: none;
}
.kids-container .kids-section-title-label {
  font-size: 1.1rem;
  font-weight: 800;
  color: #1a1a2e;
}

/* Section content area */
.kids-container #kids-tab-content {
  background: #ffffff;
  margin-left: -1rem;
  margin-right: -1rem;
  padding: 0.5rem 1rem;
}

/* === Footer home button === */
.kids-container .kids-home-footer {
  text-align: center;
  padding: 1rem 0 0.5rem;
  background: #ffffff;
  margin-left: -1rem;
  margin-right: -1rem;
}
.kids-container .kids-home-footer-btn {
  background: #4CAF50;
  border: none;
  border-radius: 18px;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  min-height: 54px;
  box-shadow: 0 5px 0 #388E3C;
}
.kids-container .kids-home-footer-btn:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 #388E3C;
}

/* === Arabic Letter Cards === */
.kids-container .kids-letter-grid-big {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.55rem;
  margin-bottom: 0.75rem;
}
.kids-container .kids-letter-card-big {
  background: #fff;
  border-radius: 16px;
  padding: 0.65rem 0.2rem 0.55rem;
  text-align: center;
  border: 2px solid #e5e7eb;
  cursor: pointer;
  position: relative;
  width: 100%;
  min-height: 82px;
  box-shadow: 0 4px 0 #d1d5db;
  transition: transform 0.1s;
}
.kids-container .kids-letter-card-big:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #d1d5db;
}
.kids-container .kids-letter-sound-icon {
  position: absolute;
  top: 4px;
  right: 5px;
  font-size: 0.6rem;
  opacity: 0.5;
}
.kids-container .kids-letter-ar-big {
  font-size: 2.2rem;
  color: #FF9800;
  line-height: 1.2;
}
.kids-container .kids-letter-name-big {
  font-size: 0.65rem;
  color: #374151;
  font-weight: 700;
  margin-top: 0.2rem;
}
.kids-container .kids-letter-roman-big {
  font-size: 0.58rem;
  color: #6b7280;
  margin-top: 0.08rem;
}

/* === Quiz === */
.kids-container .kids-quiz-q-big {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 1rem;
  line-height: 1.5;
  background: #f9fafb;
  border-radius: 14px;
  padding: 0.75rem 1rem;
  border: 2px solid #e5e7eb;
}
.kids-container .kids-quiz-option {
  min-height: 64px !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  border-radius: 14px !important;
  background: #fff !important;
  border: 2px solid #e5e7eb !important;
  color: #1a1a2e !important;
  margin-bottom: 0.5rem !important;
  width: 100% !important;
  padding: 0.75rem 1rem !important;
  cursor: pointer !important;
  text-align: left !important;
  display: block !important;
  box-shadow: 0 3px 0 #d1d5db !important;
}
.kids-container .kids-quiz-option:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #d1d5db !important;
}
.kids-container .kids-quiz-option.correct {
  background: #dcfce7 !important;
  border-color: #4CAF50 !important;
  color: #15803d !important;
  box-shadow: 0 3px 0 #388E3C !important;
}
.kids-container .kids-quiz-option.wrong {
  background: #fee2e2 !important;
  border-color: #F44336 !important;
  color: #dc2626 !important;
  box-shadow: 0 3px 0 #B71C1C !important;
}

/* === Surah Cards === */
.kids-container .kids-surah-grid {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 1rem;
}
.kids-container .kids-surah-card-big {
  background: #fff !important;
  border: 2px solid #e5e7eb !important;
  border-radius: 16px !important;
  padding: 0.75rem 1rem !important;
  min-height: 70px !important;
  box-shadow: 0 3px 0 #d1d5db !important;
  text-align: left !important;
}
.kids-container .kids-surah-ar-big {
  font-size: 1.5rem !important;
  color: #FF9800 !important;
  margin-bottom: 0.3rem !important;
}
.kids-container .kids-mem-btn-big {
  min-height: 48px !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  border-radius: 12px !important;
  padding: 0.5rem 1rem !important;
  margin-top: 0.35rem !important;
  cursor: pointer !important;
  border: 2px solid #e5e7eb !important;
  background: #f9fafb !important;
  color: #374151 !important;
  display: block !important;
  box-shadow: 0 3px 0 #d1d5db !important;
}
.kids-container .kids-mem-btn-big.active {
  background: #dcfce7 !important;
  border-color: #4CAF50 !important;
  color: #15803d !important;
  box-shadow: 0 3px 0 #388E3C !important;
}

/* === Override dark age cards === */
.kids-container .kids-age-card.beginner,
.kids-container .kids-age-card.junior,
.kids-container .kids-age-card.senior {
  background: #fff !important;
  border: 2px solid #e5e7eb !important;
  color: #1a1a2e !important;
  box-shadow: 0 4px 0 #d1d5db !important;
}

/* Global min size for all kids buttons */
.kids-container button { min-height: 44px; }


/* ===== FORCE KIDS LIGHT THEME ===== */
html.dark-mode .kids-container .kids-home-wrap {
  background: linear-gradient(160deg, #f0f8ff 0%, #fff9f0 100%) !important;
  color: #1a1a2e !important;
}
html.dark-mode .kids-container .kids-home-card-green  { background: #4CAF50 !important; }
html.dark-mode .kids-container .kids-home-card-blue   { background: #2196F3 !important; }
html.dark-mode .kids-container .kids-home-card-orange { background: #FF9800 !important; }
html.dark-mode .kids-container .kids-home-card-purple { background: #9C27B0 !important; }
html.dark-mode .kids-container .kids-home-card-teal   { background: #00BCD4 !important; }
html.dark-mode .kids-container .kids-home-card-red    { background: #F44336 !important; }
html.dark-mode .kids-container .kids-home-card-label  { color: #fff !important; }
html.dark-mode .kids-container .kids-home-title { color: #1a1a2e !important; }
html.dark-mode .kids-container .kids-home-subtitle { color: #444 !important; }
html.dark-mode .kids-container .kids-home-star-badge { background: #FFD700 !important; color: #1a1a2e !important; }
html.dark-mode .kids-container .kids-home-streak-badge { background: #FF9800 !important; color: #fff !important; }
html.dark-mode .kids-container .kids-home-age-btn { background: #f0f0f0 !important; color: #1a1a2e !important; }
html.dark-mode .kids-container .kids-daily { background: #fff !important; color: #1a1a2e !important; }
html.dark-mode .kids-container .kids-home-grid { background: transparent !important; }
html.dark-mode #kids-content { background: linear-gradient(160deg, #f0f8ff 0%, #fff9f0 100%) !important; }


/* ===== FORCE KIDS LIGHT THEME ===== */
html.dark-mode .kids-container .kids-home-wrap {
  background: linear-gradient(160deg, #f0f8ff 0%, #fff9f0 100%) !important;
  color: #1a1a2e !important;
}
html.dark-mode .kids-container .kids-home-card-green  { background: #4CAF50 !important; }
html.dark-mode .kids-container .kids-home-card-blue   { background: #2196F3 !important; }
html.dark-mode .kids-container .kids-home-card-orange { background: #FF9800 !important; }
html.dark-mode .kids-container .kids-home-card-purple { background: #9C27B0 !important; }
html.dark-mode .kids-container .kids-home-card-teal   { background: #00BCD4 !important; }
html.dark-mode .kids-container .kids-home-card-red    { background: #F44336 !important; }
html.dark-mode .kids-container .kids-home-card-label  { color: #fff !important; }
html.dark-mode .kids-container .kids-home-title { color: #1a1a2e !important; }
html.dark-mode .kids-container .kids-home-subtitle { color: #444 !important; }
html.dark-mode .kids-container .kids-home-star-badge { background: #FFD700 !important; color: #1a1a2e !important; }
html.dark-mode .kids-container .kids-home-streak-badge { background: #FF9800 !important; color: #fff !important; }
html.dark-mode .kids-container .kids-home-age-btn { background: #f0f0f0 !important; color: #1a1a2e !important; }
html.dark-mode .kids-container .kids-daily { background: #fff !important; color: #1a1a2e !important; }
html.dark-mode .kids-container .kids-home-grid { background: transparent !important; }
html.dark-mode #kids-content { background: linear-gradient(160deg, #f0f8ff 0%, #fff9f0 100%) !important; }


/* ===== FORCE KIDS LIGHT THEME ===== */
html.dark-mode .kids-container .kids-home-wrap {
  background: linear-gradient(160deg, #f0f8ff 0%, #fff9f0 100%) !important;
  color: #1a1a2e !important;
}
html.dark-mode .kids-container .kids-home-card-green  { background: #4CAF50 !important; }
html.dark-mode .kids-container .kids-home-card-blue   { background: #2196F3 !important; }
html.dark-mode .kids-container .kids-home-card-orange { background: #FF9800 !important; }
html.dark-mode .kids-container .kids-home-card-purple { background: #9C27B0 !important; }
html.dark-mode .kids-container .kids-home-card-teal   { background: #00BCD4 !important; }
html.dark-mode .kids-container .kids-home-card-red    { background: #F44336 !important; }
html.dark-mode .kids-container .kids-home-card-label  { color: #fff !important; }
html.dark-mode .kids-container .kids-home-title { color: #1a1a2e !important; }
html.dark-mode .kids-container .kids-home-subtitle { color: #444 !important; }
html.dark-mode .kids-container .kids-home-star-badge { background: #FFD700 !important; color: #1a1a2e !important; }
html.dark-mode .kids-container .kids-home-streak-badge { background: #FF9800 !important; color: #fff !important; }
html.dark-mode .kids-container .kids-home-age-btn { background: #f0f0f0 !important; color: #1a1a2e !important; }
html.dark-mode .kids-container .kids-daily { background: #fff !important; color: #1a1a2e !important; }
html.dark-mode .kids-container .kids-home-grid { background: transparent !important; }
html.dark-mode #kids-content { background: linear-gradient(160deg, #f0f8ff 0%, #fff9f0 100%) !important; }

/* ===== INSPIRATIONS CARDS ===== */
.insp-card { transition: transform 0.15s, box-shadow 0.15s; }
.insp-card:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.15); }
.insp-card:active { transform: translateY(0); }
