.intro-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--color-bg);
  gap: 16px;
  padding: 20px;
  text-align: center;
  animation: fadeIn 0.5s ease;
}

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

.intro-logo {
  width: 180px;
  height: 180px;
  object-fit: contain;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.intro-name {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-primary);
}

.intro-tagline {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  max-width: 280px;
}

.intro-loader {
  width: 200px;
  height: 4px;
  background: var(--color-border);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 20px;
}

.intro-loader-bar {
  height: 100%;
  width: 0;
  background: var(--color-primary);
  animation: load 3s ease forwards;
}

@keyframes load {
  from { width: 0; }
  to { width: 100%; }
}

/* App Install Page */
.app-install-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  gap: 16px;
  background: var(--color-bg);
}

.app-install-icon {
  width: 160px;
  height: 160px;
  object-fit: contain;
  background: transparent !important;
  border-radius: 0 !important;
  margin-bottom: 8px;
}

.app-install-page h1 { font-size: 1.5rem; margin-bottom: 8px; }
.app-install-page p { font-size: 0.9rem; color: var(--color-text-muted); max-width: 320px; margin-bottom: 24px; }
.app-install-buttons { width: 100%; max-width: 320px; display: flex; flex-direction: column; gap: 12px; }
.app-skip-btn { background: none; border: none; color: var(--color-text-muted); font-size: 0.85rem; cursor: pointer; padding: 12px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: var(--transition);
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-sm { padding: 6px 12px; font-size: 0.8rem; }
.btn-md { padding: 10px 18px; font-size: 0.9rem; }
.btn-lg { padding: 14px 24px; font-size: 1rem; }
.btn-full { width: 100%; }

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}
.btn-primary:hover:not(:disabled) {
  background: var(--color-primary-light);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--color-card);
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn-secondary:hover:not(:disabled) {
  background: var(--color-card-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-muted);
}
.btn-ghost:hover:not(:disabled) {
  background: rgba(255,255,255,0.05);
  color: var(--color-text);
}

.btn-danger {
  background: var(--color-error);
  color: #fff;
}

.btn-icon { font-size: 1rem; }

.btn-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s ease;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.header-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
}

.header-title span {
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.85rem;
}

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

.header-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: var(--transition);
  background: transparent;
  color: var(--color-text);
}

.header-btn:hover {
  background: var(--color-card);
}

.header-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background: var(--color-error);
  color: #fff;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 100;
  padding-bottom: env(safe-area-inset-bottom);
  transition: background 0.3s ease;
}

.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 8px 4px;
  color: var(--color-text-muted);
  font-size: 0.65rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  text-decoration: none;
}

.bottom-nav-item .icon {
  font-size: 1.3rem;
  line-height: 1;
  transition: var(--transition);
}

.bottom-nav-item.active {
  color: var(--color-primary);
}

.bottom-nav-item.active .icon {
  transform: translateY(-2px);
}

.bottom-nav-item.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 0 0 3px 3px;
}

/* Nafasi ya chini kwa navbar */
.page-with-navbar {
  padding-bottom: 80px;
}
.app-footer {
  background: var(--color-card);
  border-top: 1px solid var(--color-border);
  padding: 24px 16px;
  margin-top: 24px;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.8rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--color-primary);
  font-weight: 700;
  font-size: 1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--color-text-muted);
  font-size: 0.8rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--color-primary);
}

.footer-copyright {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  opacity: 0.7;
}
.story-bar {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 12px 16px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x mandatory;
}

.story-bar::-webkit-scrollbar {
  display: none;
}

.story-card {
  flex-shrink: 0;
  width: 88px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  scroll-snap-align: start;
  transition: var(--transition);
}

.story-card:active {
  transform: scale(0.95);
}

.story-card-circle {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--color-card);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  border: 3px solid var(--color-primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.story-card-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-card-number {
  font-size: 2rem;
  font-weight: 900;
  color: var(--color-primary);
  font-family: var(--font-heading);
}

.story-card-icon {
  font-size: 2rem;
}

.story-card-label {
  font-size: 0.7rem;
  text-align: center;
  color: var(--color-text);
  line-height: 1.2;
  max-width: 88px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.story-card-sub {
  font-size: 0.65rem;
  color: var(--color-text-muted);
  text-align: center;
}

/* Empty state — hakuna story */
.story-bar-empty {
  padding: 16px;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.8rem;
}
.loader-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 40px;
  color: var(--color-text-muted);
}

.loader-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Skeleton */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--color-border) 0%,
    var(--color-card) 50%,
    var(--color-border) 100%
  );
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-line {
  height: 14px;
  margin-bottom: 8px;
}

.skeleton-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
}

.skeleton-card {
  height: 200px;
  border-radius: var(--radius-md);
}
/* Image with Music */
.image-with-music {
  position: relative;
  width: 100%;
  background: var(--color-bg-light);
  overflow: hidden;
}

.image-with-music img {
  width: 100%;
  display: block;
  max-height: 500px;
  object-fit: cover;
}

.mute-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  z-index: 10;
  backdrop-filter: blur(4px);
  transition: var(--transition);
}

.mute-btn:hover {
  background: rgba(0,0,0,0.8);
}

/* Video Player */
.video-wrapper {
  position: relative;
  width: 100%;
  background: #000;
}

.video-wrapper video,
.video-wrapper iframe {
  width: 100%;
  display: block;
  max-height: 500px;
  object-fit: contain;
}

/* Multi Image (Swipe) */
.multi-image-container {
  position: relative;
  overflow: hidden;
}

.multi-image-slider {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.multi-image-slider::-webkit-scrollbar {
  display: none;
}

.multi-image-slider img {
  width: 100%;
  flex-shrink: 0;
  scroll-snap-align: center;
  max-height: 500px;
  object-fit: cover;
}

.multi-image-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.multi-image-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  transition: var(--transition);
}

.multi-image-dots span.active {
  background: #fff;
  width: 20px;
  border-radius: 4px;
}

/* Content Card */
.content-card {
  background: var(--color-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 16px;
  border: 1px solid var(--color-border);
}

.content-body {
  padding: 16px;
}

.content-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--color-text);
}

.content-desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 12px;
}

.content-actions {
  display: flex;
  gap: 20px;
  border-top: 1px solid var(--color-border);
  padding-top: 12px;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  background: none;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.action-btn:hover {
  color: var(--color-primary);
}

.action-btn.active {
  color: var(--color-primary);
}

/* Live Badge */
.live-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #ef4444;
  color: #fff;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 10;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.live-watchers {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  z-index: 10;
}

.content-media-wrapper {
  width: 100%;
  background: var(--color-bg-light);
}

.content-actions {
  display: flex;
  gap: 20px;
  padding: 12px 16px;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.content-card {
  background: var(--color-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 16px;
  border: 1px solid var(--color-border);
}

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

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

.content-logo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: contain;
}

.content-brand-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text);
}

.content-time {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.content-body {
  padding: 12px 16px;
}

.content-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 4px;
}

.content-desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.content-media-wrapper {
  width: 100%;
  background: #000;
  position: relative;
}

.content-actions {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-light);
}

.content-logo {
  width: 32px !important;
  height: 32px !important;
  border-radius: 50%;
  object-fit: contain;
}
.content-header {
  padding: 10px 16px;
}
.content-brand-name {
  font-size: 0.9rem;
}
.content-time {
  font-size: 0.75rem;
}

.content-card {
  background: var(--color-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 16px;
  border: 1px solid var(--color-border);
}

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

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

.content-logo {
  width: 32px !important;
  height: 32px !important;
  border-radius: 50%;
  object-fit: contain;
}

.content-brand-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
}

.content-time {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.content-body {
  padding: 12px 16px;
}

.content-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 4px;
}

.content-desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.content-media-wrapper {
  width: 100%;
  background: #000;
}

.content-actions {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-light);
}

.content-actions {
  display: flex;
  gap: 20px;
  padding: 12px 16px;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-light);
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  background: none;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.action-btn:hover, .action-btn.active {
  color: var(--color-primary);
}
.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.input-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.input-field {
  width: 100%;
  padding: 12px 14px;
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-size: 0.9rem;
  transition: var(--transition);
  font-family: inherit;
}

.input-field:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.15);
}

.input-field::placeholder {
  color: var(--color-text-muted);
  opacity: 0.6;
}

textarea.input-field {
  resize: vertical;
  min-height: 80px;
}

.input-hint {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.input-error {
  font-size: 0.75rem;
  color: var(--color-error);
}
.permission-slide-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

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

.permission-slide {
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  max-width: 380px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  animation: slideInRight 0.4s ease;
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(60px); }
  to { opacity: 1; transform: translateX(0); }
}

.permission-slide-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.permission-slide-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 8px;
  color: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.permission-slide-content h2 {
  font-size: 1.25rem;
}

.permission-slide-content p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

.permission-skip {
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 0.8rem;
  cursor: pointer;
  margin-top: 8px;
  padding: 8px;
}

.permission-skip:hover {
  color: var(--color-text);
}
.home-page {
  min-height: 100vh;
  background: var(--color-bg);
  padding-bottom: 80px;
}

.home-feed {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 12px;
}

/* Live Card */
.live-card {
  position: relative;
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.live-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #ef4444;
  color: #fff;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 10;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.live-card-countdown {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  z-index: 5;
  gap: 8px;
}

.live-card-countdown .time {
  font-size: 2.5rem;
  font-weight: 900;
  font-family: var(--font-heading);
}

.live-card-countdown .label {
  font-size: 0.85rem;
  color: #ccc;
}
.detail-page {
  min-height: 100vh;
  background: var(--color-bg);
  padding-bottom: 24px;
}

.detail-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.back-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--color-text);
  font-size: 1.3rem;
  cursor: pointer;
  transition: var(--transition);
}

.back-btn:hover {
  background: var(--color-card);
}

.detail-header-title {
  font-size: 1rem;
  font-weight: 600;
}

.detail-content {
  padding: 0;
}

.detail-body {
  padding: 16px;
}

.detail-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.detail-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

/* Daily card specific */
.daily-section {
  padding: 16px;
  border-top: 1px solid var(--color-border);
}

.daily-section-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.daily-section-content {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-text);
  white-space: pre-wrap;
}

/* Masomo specific */
.masomo-somo {
  padding: 16px;
  border-top: 1px solid var(--color-border);
}

.masomo-kitabu {
  font-size: 0.8rem;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 8px;
}

.masomo-maneno {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--color-text);
  white-space: pre-wrap;
  font-style: italic;
  padding-left: 12px;
  border-left: 3px solid var(--color-primary);
}
.list-page {
  min-height: 100vh;
  background: var(--color-bg);
  padding-bottom: 80px;
}

.list-page-content {
  padding: 16px;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
  color: var(--color-text-muted);
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 12px;
  opacity: 0.5;
}
.list-page {
  min-height: 100vh;
  background: var(--color-bg);
  padding-bottom: 80px;
}

.list-page-content {
  padding: 16px;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
  color: var(--color-text-muted);
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 12px;
  opacity: 0.5;
}

/* Matukio Card */
.matukio-card {
  background: var(--color-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
}

.matukio-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: var(--color-bg-light);
}

.matukio-body {
  padding: 16px;
}

.matukio-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.matukio-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

.matukio-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Sala Card */
.sala-card {
  background: var(--color-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  margin-bottom: 16px;
}

.sala-header {
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.sala-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.sala-title {
  font-size: 1rem;
  font-weight: 700;
}

.sala-subtitle {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.sala-content {
  padding: 0 16px 16px;
  font-size: 0.9rem;
  line-height: 1.6;
  white-space: pre-wrap;
  border-top: 1px solid var(--color-border);
  padding-top: 16px;
}

.sala-expand-icon {
  margin-left: auto;
  transition: transform 0.2s;
  color: var(--color-text-muted);
}

.sala-expand-icon.open {
  transform: rotate(180deg);
}
.history-tabs {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid var(--color-border);
}

.history-tabs::-webkit-scrollbar {
  display: none;
}

.history-tab {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: var(--color-card);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition);
}

.history-tab.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.history-item {
  display: flex;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--color-border);
  cursor: pointer;
  transition: var(--transition);
}

.history-item:hover {
  background: var(--color-card);
}

.history-item-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  overflow: hidden;
}

.history-item-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.history-item-body {
  flex: 1;
}

.history-item-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.history-item-date {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.history-item-badge {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin-top: 6px;
  display: inline-block;
}

.history-item-badge.new {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.history-item-badge.seen {
  background: rgba(160, 160, 176, 0.15);
  color: var(--color-text-muted);
}
.notif-page {
  min-height: 100vh;
  background: var(--color-bg);
  padding-bottom: 80px;
}

.notif-list {
  padding: 0;
}

.notif-item {
  display: flex;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--color-border);
  transition: var(--transition);
  cursor: pointer;
}

.notif-item:hover {
  background: var(--color-card);
}

.notif-item.unread {
  background: rgba(147, 51, 234, 0.05);
}

.notif-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.notif-body {
  flex: 1;
}

.notif-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--color-text);
}

.notif-text {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.4;
  margin-bottom: 6px;
}

.notif-time {
  font-size: 0.7rem;
  color: var(--color-text-muted);
}

.notif-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
  flex-shrink: 0;
  margin-top: 6px;
}
.settings-section {
  padding: 16px;
  border-bottom: 1px solid var(--color-border);
}

.settings-section-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-muted);
  margin-bottom: 12px;
  font-weight: 700;
}

.settings-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  color: var(--color-text);
}

.settings-item:hover {
  background: var(--color-card);
}

.settings-item-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  background: var(--color-card);
  flex-shrink: 0;
}

.settings-item-body {
  flex: 1;
}

.settings-item-title {
  font-size: 0.9rem;
  font-weight: 600;
}

.settings-item-desc {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 2px;
}

.settings-item-chevron {
  color: var(--color-text-muted);
  font-size: 1rem;
}

/* Toggle switch */
.toggle-switch {
  position: relative;
  width: 48px;
  height: 26px;
  background: var(--color-border);
  border-radius: 999px;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.toggle-switch.active {
  background: var(--color-primary);
}

.toggle-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: var(--transition);
}

.toggle-switch.active::after {
  left: 25px;
}

/* Version */
.settings-version {
  text-align: center;
  padding: 24px;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}
.about-page {
  min-height: 100vh;
  background: var(--color-bg);
  padding-bottom: 80px;
}

.about-hero {
  padding: 32px 16px;
  text-align: center;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
}

.about-logo {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  margin: 0 auto 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.about-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.about-subtitle {
  font-size: 0.85rem;
  opacity: 0.9;
}

.about-body {
  padding: 24px 16px;
}

.about-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-text);
  white-space: pre-wrap;
  margin-bottom: 24px;
}

.about-media {
  width: 100%;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.about-section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

.about-section-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
:root {
  /* Fonts */
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Poppins', sans-serif;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Shadow */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.12);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.18);

  /* Transition */
  --transition: 0.25s ease;

  /* Liturgical Colors (default: kijani) */
  --liturgical-color: #16a34a;
  --liturgical-color-light: #22c55e;
  --liturgical-color-dark: #15803d;
}

/* DARK MODE (default) */
:root[data-theme="dark"] {
  --color-bg: #0f0f1a;
  --color-bg-light: #1a1a2e;
  --color-card: #16213e;
  --color-card-hover: #1e2a4a;
  --color-text: #ffffff;
  --color-text-muted: #a0a0b0;
  --color-border: #2a2a4a;
  --color-primary: var(--liturgical-color);
  --color-primary-light: var(--liturgical-color-light);
  --color-primary-dark: var(--liturgical-color-dark);
  --color-success: #22c55e;
  --color-warning: #f59e0b;
  --color-error: #ef4444;
}

/* LIGHT MODE */
:root[data-theme="light"] {
  --color-bg: #f5f5f7;
  --color-bg-light: #ffffff;
  --color-card: #ffffff;
  --color-card-hover: #f9f9fb;
  --color-text: #1a1a2e;
  --color-text-muted: #6b6b7b;
  --color-border: #e0e0e8;
  --color-primary: var(--liturgical-color);
  --color-primary-light: var(--liturgical-color-light);
  --color-primary-dark: var(--liturgical-color-dark);
  --color-success: #16a34a;
  --color-warning: #d97706;
  --color-error: #dc2626;
}

/* Liturgical Color Variants */
:root[data-liturgical="nyeupe"] {
  --liturgical-color: #e5e5e5;
  --liturgical-color-light: #f5f5f5;
  --liturgical-color-dark: #b8b8b8;
}

:root[data-liturgical="nyekundu"] {
  --liturgical-color: #dc2626;
  --liturgical-color-light: #ef4444;
  --liturgical-color-dark: #b91c1c;
}

:root[data-liturgical="zambarau"] {
  --liturgical-color: #9333ea;
  --liturgical-color-light: #a855f7;
  --liturgical-color-dark: #7e22ce;
}

:root[data-liturgical="kijani"] {
  --liturgical-color: #16a34a;
  --liturgical-color-light: #22c55e;
  --liturgical-color-dark: #15803d;
}

/* Kwa light mode, rangi ya nyeupe inahitaji text tofauti */
:root[data-theme="light"][data-liturgical="nyeupe"] {
  --color-primary: #b8b8b8;
  --color-primary-light: #d4d4d4;
  --color-primary-dark: #8a8a8a;
}
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

body {
  font-family: var(--font-main);
  background: var(--color-bg);
  color: var(--color-text);
  transition: background 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: 1.75rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }

#root {
  min-height: 100vh;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-muted);
}
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

.text-center { text-align: center; }
.text-muted { color: var(--color-text-muted); }
.text-primary { color: var(--color-primary); }

.w-full { width: 100%; }
.h-full { height: 100%; }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }

.hidden { display: none; }
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
