/* ==========================================================================
   Klik Ternak PWA App — Social, LMS & Mobile-First UI (v3.7.0)
   ========================================================================== */

:root {
  --kt-primary: #0f6b9b;
  --kt-primary-dark: #094b6f;
  --kt-accent: #13a0a5;
  --kt-accent-light: #e6f7f8;
  --kt-ink: #0c2a3a;
  --kt-muted: #637381;
  --kt-soft: #f4f8fb;
  --kt-card-bg: #ffffff;
  --kt-border: #dbe7ee;
  --kt-social-border: #e2ecf2;
  --kt-danger: #b42318;
  --kt-success: #166534;
  --kt-radius-sm: 8px;
  --kt-radius-md: 14px;
  --kt-radius-lg: 20px;
  --kt-radius-xl: 26px;
  --kt-shadow-sm: 0 4px 14px rgba(17, 58, 78, 0.04);
  --kt-shadow-md: 0 10px 30px rgba(17, 58, 78, 0.07);
  --kt-shadow-lg: 0 18px 45px rgba(17, 58, 78, 0.12);
  --kt-bottom-nav-height: 64px;
}

/* Container & Theme Shell Normalization */
.kt-pwa-theme-shell,
#katen-main.kt-pwa-landing-shell {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  background: #f8fafc;
}

.kt-pwa-app-site-wrapper {
  background: #f8fafc;
  min-height: 100vh;
}

.kt-pwa-brand-img {
  display: inline-block;
  vertical-align: middle;
  height: 34px;
  max-height: 38px;
  width: auto;
  object-fit: contain;
}

.kt-pwa-app {
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 16px calc(var(--kt-bottom-nav-height) + 32px + env(safe-area-inset-bottom));
  color: var(--kt-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  box-sizing: border-box;
  line-height: 1.55;
}

.kt-pwa-app * {
  box-sizing: border-box;
}

.kt-pwa-app :is(button, input, select, textarea) {
  font: inherit;
}

.kt-pwa-app :is(a, button, input, select, textarea):focus-visible {
  outline: 3px solid var(--kt-primary);
  outline-offset: 2px;
}

/* --- TOP HEADER BAR (ISOLATED & 100% ACCESSIBLE) --- */
.kt-pwa-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 18px;
  margin-bottom: 18px;
  border: 1px solid var(--kt-border);
  border-radius: var(--kt-radius-lg);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--kt-shadow-sm);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 12px;
  z-index: 45;
  isolation: isolate;
  pointer-events: auto !important;
  touch-action: manipulation;
  clear: both;
}

body.admin-bar .kt-pwa-top-bar {
  top: calc(32px + 12px);
}
@media (max-width: 782px) {
  body.admin-bar .kt-pwa-top-bar {
    top: calc(46px + 10px);
  }
}

.kt-pwa-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none !important;
  color: var(--kt-ink);
  pointer-events: auto !important;
  position: relative !important;
  z-index: 10 !important;
  cursor: pointer !important;
}

.kt-brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--kt-primary), var(--kt-accent));
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: -0.02em;
  pointer-events: auto;
}

.kt-pwa-brand strong {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.kt-pwa-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto !important;
  position: relative;
  z-index: 10;
}

.kt-top-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--kt-soft);
  color: var(--kt-ink) !important;
  text-decoration: none !important;
  font-size: 12px;
  font-weight: 700;
  transition: background 0.15s ease, transform 0.15s ease;
  pointer-events: auto !important;
  position: relative !important;
  z-index: 10 !important;
  cursor: pointer !important;
  touch-action: manipulation;
}

.kt-top-action-btn:hover {
  background: #e5f0f6;
  transform: translateY(-1px);
}

.kt-top-notif-btn {
  pointer-events: auto !important;
  position: relative !important;
  z-index: 10 !important;
  cursor: pointer !important;
  touch-action: manipulation;
}

.kt-pwa-user-avatar-btn {
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--kt-primary);
  pointer-events: auto !important;
  position: relative !important;
  z-index: 10 !important;
  cursor: pointer !important;
  touch-action: manipulation;
}

.kt-pwa-user-avatar-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.kt-pwa-login-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--kt-primary);
  color: #fff !important;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 800;
  pointer-events: auto !important;
  position: relative !important;
  z-index: 10 !important;
  cursor: pointer !important;
  touch-action: manipulation;
}

/* --- BOTTOM NAVIGATION BAR --- */
.kt-pwa-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: calc(var(--kt-bottom-nav-height) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(255, 255, 255, 0.94);
  border-top: 1px solid var(--kt-border);
  box-shadow: 0 -8px 30px rgba(17, 58, 78, 0.08);
  backdrop-filter: blur(20px) saturate(180%);
}

@media (min-width: 768px) {
  .kt-pwa-bottom-nav {
    max-width: 580px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 20px 20px 0 0;
    border: 1px solid var(--kt-border);
    border-bottom: 0;
  }
}

.kt-bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 100%;
  text-decoration: none !important;
  color: var(--kt-muted);
  font-size: 11px;
  font-weight: 700;
  transition: color 0.15s ease, transform 0.15s ease;
  position: relative;
}

.kt-bottom-nav-item .kt-nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  transition: transform 0.15s ease;
}

.kt-bottom-nav-item .kt-nav-icon svg {
  transition: stroke 0.15s ease;
}

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

.kt-bottom-nav-item.is-active {
  color: var(--kt-primary);
  font-weight: 800;
}

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

.kt-bottom-nav-item.is-active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 30%;
  right: 30%;
  height: 3px;
  background: var(--kt-primary);
  border-radius: 0 0 4px 4px;
}

/* --- PAGE HEADERS & HEROES --- */
.kt-pwa-page-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  padding: 24px 28px;
  margin-bottom: 20px;
  border-radius: var(--kt-radius-xl);
  background: linear-gradient(135deg, #eaf7fb 0%, #f6fbfb 60%, #eefbf5 100%);
  border: 1px solid var(--kt-border);
  box-shadow: var(--kt-shadow-sm);
}

.kt-pwa-page-head span,
.kt-pwa-course-copy > span,
.kt-pwa-lesson-kicker {
  display: block;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 900;
  color: var(--kt-primary);
}

.kt-pwa-page-head h1,
.kt-pwa-course-copy h1,
.kt-pwa-lesson-content h1 {
  margin: 5px 0 8px;
  color: var(--kt-ink);
  line-height: 1.15;
  font-size: clamp(24px, 3.8vw, 36px);
  font-weight: 900;
  letter-spacing: -0.025em;
}

.kt-pwa-page-head p,
.kt-pwa-course-copy p {
  margin: 0;
  max-width: 760px;
  color: var(--kt-muted);
  font-size: 14px;
  line-height: 1.6;
}

.kt-pwa-head-cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--kt-primary);
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 800;
  font-size: 13px;
  box-shadow: 0 6px 18px rgba(15, 107, 155, 0.2);
  transition: transform 0.15s ease, background 0.15s ease;
}

.kt-pwa-head-cta:hover {
  background: var(--kt-primary-dark);
  transform: translateY(-1px);
}

/* --- NOTICES & EMPTY STATES --- */
.kt-pwa-notice,
.kt-pwa-empty,
.kt-pwa-login-card {
  padding: 16px 20px;
  margin: 0 0 18px;
  border: 1px solid var(--kt-border);
  border-radius: var(--kt-radius-md);
  background: #fff;
  font-size: 14px;
}

.kt-pwa-notice.is-success {
  border-color: #a9dbbf;
  background: #effaf4;
  color: var(--kt-success);
}

.kt-pwa-notice.is-error {
  border-color: #f3bbb7;
  background: #fff4f3;
  color: var(--kt-danger);
}

.kt-pwa-empty {
  text-align: center;
  padding: 32px 20px;
  color: var(--kt-muted);
}

/* --- BUTTONS & INPUTS --- */
.kt-pwa-primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--kt-primary);
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.kt-pwa-primary-button:hover {
  background: var(--kt-primary-dark);
  transform: translateY(-1px);
}

.kt-pwa-primary-button:disabled,
.kt-pwa-primary-button.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
}

.kt-pwa-outline-btn,
.kt-pwa-secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid var(--kt-border);
  border-radius: 999px;
  background: #fff;
  color: var(--kt-ink) !important;
  text-decoration: none !important;
  font-size: 12px;
  font-weight: 800;
  transition: background 0.15s ease;
}

.kt-pwa-outline-btn:hover,
.kt-pwa-secondary-link:hover {
  background: var(--kt-soft);
}

/* --- KABAR COMPOSER --- */
.kt-pwa-composer {
  margin: 0 auto 18px auto;
  max-width: 680px;
  width: 100%;
  padding: 20px;
  border: 1px solid var(--kt-border);
  border-radius: var(--kt-radius-xl);
  background: #fff;
  box-shadow: var(--kt-shadow-sm);
}

.kt-pwa-composer-top {
  display: flex;
  gap: 14px;
}

.kt-pwa-avatar img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.kt-pwa-compose-main {
  flex: 1;
  min-width: 0;
}

.kt-pwa-compose-main textarea {
  width: 100%;
  min-height: 100px;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid var(--kt-border);
  outline: 0;
  resize: vertical;
  font-size: 15px;
  color: var(--kt-ink);
  background: transparent;
  line-height: 1.6;
}

.kt-pwa-compose-row {
  display: grid;
  grid-template-columns: 140px 140px minmax(0, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.kt-pwa-compose-row label {
  display: grid;
  gap: 4px;
  font-size: 11px;
  font-weight: 800;
  color: var(--kt-muted);
}

.kt-pwa-compose-row input,
.kt-pwa-compose-row select {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--kt-border);
  border-radius: 10px;
  padding: 6px 10px;
  background: #fff;
  color: var(--kt-ink);
  font-size: 13px;
}

.kt-pwa-location-options {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 10px;
  font-size: 12px;
  color: var(--kt-muted);
}

.kt-pwa-location-options label {
  display: flex;
  gap: 6px;
  align-items: center;
  cursor: pointer;
}

.kt-pwa-compose-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.kt-pwa-file-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid var(--kt-border);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  background: var(--kt-soft);
}

.kt-pwa-file-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}

/* --- SOCIAL FEED FILTERS & KABAR CARDS --- */
.kt-pwa-feed-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 14px;
  margin: 0 auto 12px auto;
  max-width: 680px;
  width: 100%;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.kt-pwa-feed-filters::-webkit-scrollbar {
  display: none;
}

.kt-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--kt-border);
  color: var(--kt-ink);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none !important;
  white-space: nowrap;
  transition: all 0.15s ease;
  box-shadow: 0 1px 3px rgba(12, 42, 58, 0.04);
}

.kt-filter-pill:hover {
  background: var(--kt-soft);
  color: var(--kt-primary);
  border-color: #bce1ee;
}

.kt-filter-pill.is-active {
  background: var(--kt-primary);
  color: #fff !important;
  border-color: var(--kt-primary);
  box-shadow: 0 4px 12px rgba(11, 107, 155, 0.25);
}

.kt-pwa-feed {
  display: grid;
  gap: 16px;
}

.kt-pwa-kabar-card,
.kt-pwa-article-card {
  padding: 20px;
  border: 1px solid var(--kt-social-border);
  border-radius: var(--kt-radius-xl);
  background: #fff;
  box-shadow: var(--kt-shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.kt-pwa-kabar-card:hover {
  box-shadow: var(--kt-shadow-md);
}

.kt-pwa-card--laporan {
  border-left: 4px solid #0d9488 !important;
}

.kt-pwa-card--darurat {
  border-left: 4px solid #dc2626 !important;
  background: #fffbfb;
}

.kt-pwa-card--informasi {
  border-left: 4px solid #2563eb !important;
}

.kt-pwa-card-author {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  gap: 12px;
  align-items: center;
}

.kt-pwa-avatar-link {
  display: block;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  overflow: hidden;
}

.kt-pwa-avatar-link img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
}

.kt-pwa-card-author strong a {
  color: var(--kt-ink);
  text-decoration: none !important;
  font-size: 15px;
  font-weight: 800;
}

.kt-pwa-card-author span {
  font-size: 12px;
  color: var(--kt-muted);
}

.kt-pwa-card-author > b,
.kt-badge-type {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  background: #eaf6fb;
  color: var(--kt-primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.kt-badge-type.is-laporan {
  background: #e6fffa !important;
  color: #0d9488 !important;
  border: 1px solid #99f6e4;
}

.kt-badge-type.is-darurat {
  background: #fef2f2 !important;
  color: #dc2626 !important;
  border: 1px solid #fecaca;
}

.kt-badge-type.is-informasi {
  background: #eff6ff !important;
  color: #2563eb !important;
  border: 1px solid #bfdbfe;
}

.kt-pwa-location-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 8px 0 0 0;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--kt-soft);
  color: var(--kt-primary);
  font-size: 11px;
  font-weight: 700;
}

/* WhatsApp Markdown & Text Content */
.kt-pwa-status,
.kt-repost-quote-content,
.kt-comment-text {
  margin: 12px 0 0 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--kt-ink);
  word-break: break-word;
}

.kt-pwa-status a,
.kt-repost-quote-content a,
.kt-comment-text a {
  color: var(--kt-primary);
  text-decoration: underline;
  word-break: break-all;
  font-weight: 600;
}

.kt-pwa-status code,
.kt-repost-quote-content code,
.kt-comment-text code {
  font-family: Consolas, Monaco, "Andale Mono", monospace;
  font-size: 13px;
  background: #edf3f7;
  padding: 2px 6px;
  border-radius: 6px;
  color: #0b4d70;
}

.kt-pwa-status pre,
.kt-repost-quote-content pre,
.kt-comment-text pre {
  margin: 10px 0;
  padding: 12px 14px;
  background: #0f2430;
  color: #e6f1f8;
  border-radius: 10px;
  overflow-x: auto;
}

.kt-pwa-status pre code,
.kt-repost-quote-content pre code,
.kt-comment-text pre code {
  background: transparent;
  padding: 0;
  color: inherit;
}

.kt-pwa-status strong,
.kt-repost-quote-content strong {
  font-weight: 800;
  color: var(--kt-ink);
}

.kt-pwa-status em,
.kt-repost-quote-content em {
  font-style: italic;
}

.kt-pwa-status del,
.kt-repost-quote-content del {
  text-decoration: line-through;
  opacity: 0.75;
}

/* Media Gallery Grid */
.kt-pwa-media-grid {
  display: grid;
  gap: 6px;
  margin: 12px 0 0 0;
  border-radius: 14px;
  overflow: hidden;
}

.kt-pwa-media-grid.is-1 { grid-template-columns: 1fr; }
.kt-pwa-media-grid.is-2 { grid-template-columns: repeat(2, 1fr); }
.kt-pwa-media-grid.is-3,
.kt-pwa-media-grid.is-4 { grid-template-columns: repeat(2, 1fr); }

.kt-pwa-media-grid a {
  display: block;
  min-height: 160px;
  background: var(--kt-soft);
  overflow: hidden;
}

.kt-pwa-media-grid img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.kt-pwa-media-grid img:hover {
  transform: scale(1.02);
}

/* --- REPOST / QUOTE CARDS --- */
.kt-repost-quote-card {
  margin: 12px 0 0 0;
  padding: 14px 16px;
  border: 1px solid var(--kt-border);
  border-radius: var(--kt-radius-md);
  background: #f8fbfd;
  box-shadow: 0 2px 8px rgba(17, 58, 78, 0.03);
}

.kt-repost-quote-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.kt-repost-quote-header .kt-pwa-avatar-link {
  width: 32px;
  height: 32px;
}

.kt-repost-quote-header strong a {
  font-size: 13px;
  color: var(--kt-ink);
  text-decoration: none !important;
}

.kt-repost-quote-header span {
  font-size: 11px;
  color: var(--kt-muted);
}

.kt-repost-quote-content {
  margin: 0 0 8px 0;
  font-size: 14px;
  line-height: 1.55;
}

.kt-repost-media-grid {
  display: grid;
  gap: 6px;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 8px;
}

.kt-repost-media-grid.is-1 { grid-template-columns: 1fr; }
.kt-repost-media-grid.is-2 { grid-template-columns: repeat(2, 1fr); }

.kt-repost-media-grid img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 8px;
}

/* Card Actions */
.kt-pwa-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--kt-social-border);
  font-size: 12px;
  color: var(--kt-muted);
  flex-wrap: wrap;
}

.kt-pwa-card-actions button,
.kt-card-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--kt-soft);
  color: var(--kt-ink);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  touch-action: manipulation;
}

.kt-pwa-card-actions button:hover,
.kt-card-action-btn:hover {
  background: #e8f2f8;
  color: var(--kt-primary);
  transform: translateY(-1px);
}

.kt-card-action-btn.kt-love-btn[aria-pressed="true"],
.kt-pwa-card-actions button[data-kt-love][aria-pressed="true"] {
  color: #e11d48 !important;
  background: #ffe4e6 !important;
  border-color: #fecdd3 !important;
}

.kt-card-action-btn.kt-animating .kt-love-icon,
.kt-card-action-btn.kt-animating .kt-icon {
  animation: ktHeartBeat 0.35s ease-in-out;
}

@keyframes ktHeartBeat {
  0% { transform: scale(1); }
  50% { transform: scale(1.4); }
  100% { transform: scale(1); }
}

.kt-card-action-btn.kt-repost-btn:hover,
.kt-pwa-card-actions button[data-kt-repost]:hover {
  color: #059669;
  background: #ecfdf5;
}

.kt-card-action-btn.kt-comments-btn:hover,
.kt-pwa-card-actions button[data-kt-comments]:hover {
  color: #0284c7;
  background: #f0f9ff;
}

.kt-card-action-btn.kt-share-btn:hover,
.kt-pwa-card-actions button[data-kt-share]:hover {
  color: #7c3aed;
  background: #f5f3ff;
}

.kt-card-action-btn.kt-report-btn:hover {
  color: var(--kt-danger);
  background: #fff1f2;
}

.kt-card-action-static {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 36px;
  padding: 6px 12px;
  color: var(--kt-muted);
  font-size: 12px;
  font-weight: 700;
}

.kt-card-edit-link {
  font-size: 12px;
  color: var(--kt-muted);
  text-decoration: underline;
  margin-left: 4px;
}

.kt-card-delete-btn {
  background: transparent !important;
  border: 0 !important;
  color: var(--kt-danger) !important;
  padding: 4px 8px !important;
  min-height: auto !important;
  font-size: 12px !important;
  cursor: pointer;
}

.kt-pwa-privacy-label {
  font-size: 11px;
  color: var(--kt-muted);
  margin-right: auto;
  font-weight: 700;
}

/* --- ARTICLE CARD STYLING --- */
.kt-pwa-article-card {
  display: flex;
  flex-direction: column;
}

.kt-pwa-article-image {
  display: block;
  margin: 12px 0 14px 0;
  border-radius: var(--kt-radius-md);
  overflow: hidden;
  max-height: 280px;
  background: var(--kt-soft);
  position: relative;
}

.kt-pwa-article-image img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 280px;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.kt-pwa-article-image:hover img {
  transform: scale(1.02);
}

.kt-pwa-article-body {
  display: flex;
  flex-direction: column;
}

.kt-pwa-article-body h2 {
  margin: 0 0 8px 0;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
}

.kt-pwa-article-body h2 a {
  color: var(--kt-ink);
  text-decoration: none !important;
  transition: color 0.15s ease;
}

.kt-pwa-article-body h2 a:hover {
  color: var(--kt-primary);
}

.kt-pwa-article-body p {
  margin: 0 0 10px 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--kt-muted);
}

.kt-pwa-topic-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.kt-pwa-topic-row span {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 11px;
  font-weight: 700;
}

.kt-pwa-article-body .kt-pwa-card-actions a:last-child {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--kt-primary);
  color: #fff !important;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none !important;
  transition: background 0.15s ease, transform 0.15s ease;
}

.kt-pwa-article-body .kt-pwa-card-actions a:last-child:hover {
  background: var(--kt-primary-dark);
  transform: translateY(-1px);
}

/* --- QUICK COMPOSE BOX --- */
.kt-quick-compose {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding: 10px 14px;
  background: #ffffff;
  border: 1px solid var(--kt-social-border);
  border-radius: var(--kt-radius-lg);
  box-shadow: var(--kt-shadow-sm);
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.kt-quick-compose a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none !important;
  transition: all 0.15s ease;
}

.kt-quick-compose a:first-child {
  flex: 1;
  background: var(--kt-soft);
  color: var(--kt-primary) !important;
  border: 1px solid var(--kt-border);
  justify-content: flex-start;
}

.kt-quick-compose a:first-child:hover {
  background: #e2f1f8;
  border-color: #bce1ee;
}

.kt-quick-compose a:last-child {
  flex: 0 0 auto;
  background: var(--kt-primary);
  color: #ffffff !important;
  box-shadow: 0 3px 10px rgba(15, 107, 155, 0.2);
}

.kt-quick-compose a:last-child:hover {
  background: var(--kt-primary-dark);
  transform: translateY(-1px);
}

/* --- FEED TABS (FYP, Mengikuti, Terbaru, etc.) --- */
.kt-pwa-fyp-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding: 6px;
  margin-bottom: 14px;
  background: #ffffff;
  border: 1px solid var(--kt-border);
  border-radius: var(--kt-radius-lg);
  box-shadow: var(--kt-shadow-sm);
  scrollbar-width: none;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.kt-pwa-fyp-tabs::-webkit-scrollbar {
  display: none;
}

.kt-pwa-fyp-tabs a {
  flex: 1;
  min-width: 76px;
  text-align: center;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--kt-muted);
  text-decoration: none !important;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.kt-pwa-fyp-tabs a:hover {
  color: var(--kt-ink);
  background: var(--kt-soft);
}

.kt-pwa-fyp-tabs a.is-active {
  background: var(--kt-primary);
  color: #ffffff !important;
  box-shadow: 0 3px 10px rgba(15, 107, 155, 0.25);
}

/* --- FEED REASON NOTICE --- */
.kt-pwa-feed-reason {
  margin: 0 auto 14px auto;
  max-width: 680px;
  padding: 8px 14px;
  border-radius: var(--kt-radius-md);
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  font-size: 12px;
  font-weight: 600;
}

/* --- LAYOUT SWITCHER CONTROLS --- */
.kt-pwa-layout-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin: -4px auto 14px auto;
  max-width: 680px;
  width: 100%;
  font-size: 12px;
}

.kt-pwa-layout-controls a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 8px;
  background: transparent;
  color: var(--kt-muted);
  font-weight: 700;
  text-decoration: none !important;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}

.kt-pwa-layout-controls a:hover {
  background: var(--kt-soft);
  color: var(--kt-ink);
}

.kt-pwa-layout-controls a.is-active {
  background: #ffffff;
  color: var(--kt-primary);
  border-color: var(--kt-border);
  box-shadow: 0 1px 4px rgba(17, 58, 78, 0.05);
}

/* --- FEED LAYOUT MODES --- */
.kt-pwa-feed--list {
  max-width: 680px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  gap: 16px;
}

.kt-pwa-feed--grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  width: 100%;
}

.kt-pwa-feed--masonry {
  column-count: 2;
  column-gap: 16px;
  width: 100%;
}

.kt-pwa-feed--masonry > * {
  break-inside: avoid;
  margin-bottom: 16px;
}

@media (max-width: 640px) {
  .kt-pwa-feed--masonry {
    column-count: 1;
  }
}

/* --- PAGINATION --- */
.kt-pwa-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 28px 0 16px;
  padding: 12px;
}

.kt-pwa-pagination a,
.kt-pwa-pagination span.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 18px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--kt-border);
  color: var(--kt-ink);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none !important;
  transition: all 0.15s ease;
  box-shadow: var(--kt-shadow-sm);
}

.kt-pwa-pagination a:hover {
  background: var(--kt-primary);
  color: #ffffff !important;
  border-color: var(--kt-primary);
  transform: translateY(-1px);
}

.kt-pwa-pagination .current {
  background: var(--kt-primary);
  color: #ffffff !important;
  border-color: var(--kt-primary);
}

.kt-pwa-pagination ul.page-numbers {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 6px;
}

/* --- PROFILE PAGE STYLING --- */
.kt-pwa-profile-hero {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px;
  border: 1px solid var(--kt-border);
  border-radius: var(--kt-radius-xl);
  background: linear-gradient(135deg, #ffffff 0%, #f7fbfe 100%);
  box-shadow: var(--kt-shadow-sm);
  margin-bottom: 20px;
}

.kt-pwa-profile-avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #ffffff;
  box-shadow: 0 4px 14px rgba(17, 58, 78, 0.12);
  flex-shrink: 0;
}

.kt-pwa-profile-main {
  flex: 1;
  min-width: 0;
}

.kt-pwa-profile-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.kt-pwa-profile-name-row h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 900;
  color: var(--kt-ink);
  line-height: 1.2;
}

.kt-pwa-profile-name-row span {
  font-size: 13px;
  color: var(--kt-muted);
}

.kt-pwa-mutual-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: #e6fffa;
  color: #0d9488;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid #99f6e4;
}

.kt-pwa-profile-bio {
  margin: 6px 0 14px 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--kt-ink);
}

.kt-pwa-profile-stats {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.kt-pwa-profile-stats > * {
  display: flex;
  flex-direction: column;
  text-decoration: none !important;
  color: inherit;
}

.kt-pwa-profile-stats strong {
  font-size: 16px;
  font-weight: 800;
  color: var(--kt-ink);
}

.kt-pwa-profile-stats span {
  font-size: 11px;
  color: var(--kt-muted);
}

.kt-pwa-profile-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.kt-pwa-profile-self {
  font-size: 12px;
  font-weight: 700;
  color: var(--kt-muted);
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--kt-soft);
  display: inline-block;
}

.kt-pwa-profile-section {
  margin-bottom: 24px;
}

.kt-pwa-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.kt-pwa-section-title h2 {
  margin: 2px 0 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--kt-ink);
}

.kt-pwa-section-title span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 800;
  color: var(--kt-primary);
}

.kt-pwa-section-title a {
  font-size: 13px;
  font-weight: 700;
  color: var(--kt-primary);
  text-decoration: none !important;
}

.kt-pwa-profile-courses {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

/* --- SHORTS 9:16 FEED --- */
.kt-pwa-shorts-shell {
  max-width: 680px;
}

.kt-shorts-feed {
  display: grid;
  gap: 24px;
}

.kt-short-card {
  display: flex;
  justify-content: center;
}

.kt-short-screen {
  position: relative;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 9 / 16;
  border-radius: var(--kt-radius-xl);
  overflow: hidden;
  background: #000;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.kt-short-media-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kt-short-media-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kt-short-media-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.kt-short-media-gradient {
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, #09344c, #07718e, #13a0a5);
  color: #fff;
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.kt-short-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 14px;
}

.kt-short-media-gradient p {
  font-size: 18px;
  line-height: 1.5;
  font-weight: 600;
}

/* Floating Actions Bar on Short Card */
.kt-short-actions-bar {
  position: absolute;
  right: 14px;
  bottom: 120px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.kt-short-icon-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: rgba(0, 0, 0, 0.45);
  border: 0;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: transform 0.15s ease;
}

.kt-short-icon-btn:hover {
  transform: scale(1.1);
}

.kt-short-icon-btn .kt-icon {
  font-size: 18px;
  line-height: 1;
  margin-top: 6px;
}

.kt-short-icon-btn small {
  font-size: 10px;
  font-weight: 800;
}

.kt-short-icon-btn[aria-pressed="true"] {
  color: #ff3366;
}

/* Bottom Overlay Caption */
.kt-short-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 18px 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
  color: #fff;
  z-index: 5;
}

.kt-short-author-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.kt-short-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #fff;
}

.kt-short-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kt-short-author-row strong a {
  color: #fff;
  text-decoration: none !important;
  font-size: 14px;
}

.kt-short-author-row span {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  display: block;
}

.kt-short-caption {
  font-size: 13px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 8px;
  max-height: 60px;
  overflow: hidden;
}

.kt-short-sound-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 11px;
  backdrop-filter: blur(8px);
}

/* --- COMMENTS DIALOG / BOTTOM SHEET MODAL --- */
body.kt-comments-open {
  overflow: hidden !important;
}

.kt-comments-dialog {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.25s ease, opacity 0.25s ease;
}

.kt-comments-dialog.is-active {
  visibility: visible;
  opacity: 1;
}

.kt-comments-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 42, 58, 0.55);
  backdrop-filter: blur(4px);
}

.kt-comments-sheet {
  position: relative;
  width: 100%;
  max-width: 640px;
  max-height: 85vh;
  background: #fff;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.kt-comments-dialog.is-active .kt-comments-sheet {
  transform: translateY(0);
}

.kt-comments-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--kt-border);
  background: #fbfdfe;
}

.kt-comments-title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: var(--kt-ink);
}

.kt-comments-close-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: var(--kt-soft);
  color: var(--kt-muted);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.kt-comments-close-btn:hover {
  background: #e1edf3;
  color: var(--kt-ink);
}

.kt-comments-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  min-height: 200px;
  max-height: calc(85vh - 140px);
}

.kt-comments-list {
  display: grid;
  gap: 16px;
}

.kt-comment-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.kt-comment-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.kt-comment-main {
  flex: 1;
  min-width: 0;
  background: var(--kt-soft);
  padding: 10px 14px;
  border-radius: 14px;
}

.kt-comment-top {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.kt-comment-author {
  font-size: 13px;
  font-weight: 800;
  color: var(--kt-ink);
}

.kt-comment-time {
  font-size: 11px;
  color: var(--kt-muted);
}

.kt-comment-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--kt-ink);
}

.kt-comment-actions {
  display: flex;
  gap: 12px;
  margin-top: 6px;
}

.kt-comment-action-btn {
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 11px;
  font-weight: 700;
  color: var(--kt-muted);
  cursor: pointer;
  transition: color 0.15s ease;
}

.kt-comment-action-btn:hover {
  color: var(--kt-danger);
}

.kt-comment-action-btn.is-reply {
  color: var(--kt-primary) !important;
}

.kt-comment-action-btn.is-reply:hover {
  text-decoration: underline;
}

.kt-comment-action-btn.is-delete {
  color: var(--kt-danger) !important;
}

.kt-comment-item.is-reply {
  border-left: 2px solid #bce1ee;
  padding-left: 10px;
}

.kt-comment-reply-indicator {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  background: #eaf6fb;
  border-radius: 10px;
  font-size: 12px;
  color: var(--kt-primary);
  margin-bottom: 8px;
}

.kt-reply-cancel-btn {
  border: 0;
  background: transparent;
  color: var(--kt-muted);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 50%;
}

.kt-reply-cancel-btn:hover {
  background: rgba(0, 0, 0, 0.08);
  color: var(--kt-ink);
}

.kt-comments-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--kt-muted);
  font-size: 14px;
}

.kt-comments-empty span {
  font-size: 28px;
  display: block;
  margin-bottom: 8px;
}

.kt-comments-footer {
  padding: 12px 18px;
  border-top: 1px solid var(--kt-border);
  background: #fff;
}

.kt-comments-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.kt-comments-input {
  width: 100%;
  min-height: 42px;
  max-height: 120px;
  padding: 10px 14px;
  border: 1px solid var(--kt-border);
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--kt-ink);
  background: var(--kt-soft);
  resize: none;
  outline: 0;
  box-sizing: border-box;
}

.kt-comments-input:focus {
  border-color: var(--kt-primary);
  background: #fff;
}

.kt-comments-send-btn {
  align-self: flex-end;
  padding: 9px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--kt-primary);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.kt-comments-send-btn:hover {
  opacity: 0.92;
}

.kt-comments-send-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.kt-comments-status {
  font-size: 11px;
  color: var(--kt-primary);
  margin-top: 4px;
}

.kt-comments-login-notice {
  text-align: center;
  font-size: 13px;
  color: var(--kt-muted);
  padding: 6px 0;
}

.kt-comments-login-notice a {
  color: var(--kt-primary);
  font-weight: 800;
  text-decoration: none;
}

/* --- REPOST MODAL / ACTION SHEET --- */
body.kt-repost-open {
  overflow: hidden !important;
}

.kt-repost-dialog {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.25s ease, opacity 0.25s ease;
}

.kt-repost-dialog.is-active {
  visibility: visible;
  opacity: 1;
}

.kt-repost-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 42, 58, 0.55);
  backdrop-filter: blur(4px);
}

.kt-repost-sheet {
  position: relative;
  width: 100%;
  max-width: 520px;
  background: #fff;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

@media (min-width: 641px) {
  .kt-repost-dialog {
    align-items: center;
  }
  .kt-repost-sheet {
    border-radius: 20px;
    transform: scale(0.95) translateY(20px);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
  }
  .kt-repost-dialog.is-active .kt-repost-sheet {
    transform: scale(1) translateY(0);
  }
}

.kt-repost-dialog.is-active .kt-repost-sheet {
  transform: translateY(0);
}

.kt-repost-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--kt-border);
  background: #fbfdfe;
}

.kt-repost-title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: var(--kt-ink);
}

.kt-repost-close-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: var(--kt-soft);
  color: var(--kt-muted);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.kt-repost-close-btn:hover {
  background: #e1edf3;
  color: var(--kt-ink);
}

.kt-repost-body {
  padding: 18px 20px 24px;
  display: grid;
  gap: 12px;
}

.kt-repost-opt-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 18px;
  border-radius: 16px;
  border: 1px solid var(--kt-border);
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
}

.kt-repost-opt-btn:hover {
  background: var(--kt-soft);
  border-color: #bce1ee;
  transform: translateY(-1px);
}

.kt-repost-opt-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.kt-repost-opt-text strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: var(--kt-ink);
  margin-bottom: 2px;
}

.kt-repost-opt-text small {
  display: block;
  font-size: 12px;
  color: var(--kt-muted);
}

.kt-repost-quote-box {
  background: #f8fbfd;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--kt-border);
}

.kt-repost-quote-input {
  width: 100%;
  min-height: 80px;
  padding: 10px 14px;
  border: 1px solid var(--kt-border);
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--kt-ink);
  background: #fff;
  resize: vertical;
  outline: 0;
  box-sizing: border-box;
}

.kt-repost-quote-input:focus {
  border-color: var(--kt-primary);
}

.kt-repost-quote-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
}

.kt-repost-quote-cancel {
  padding: 8px 16px;
  border: 1px solid var(--kt-border);
  border-radius: 999px;
  background: #fff;
  color: var(--kt-muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.kt-repost-quote-submit {
  padding: 8px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--kt-primary);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.kt-repost-quote-submit:hover {
  opacity: 0.92;
}

/* --- FLOATING TOAST NOTICE --- */
.kt-toast-notice {
  position: fixed;
  bottom: calc(var(--kt-bottom-nav-height) + 20px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%) translateY(24px);
  z-index: 99999;
  padding: 10px 20px;
  background: rgba(15, 36, 48, 0.94);
  color: #fff;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.22s ease;
  white-space: nowrap;
}

.kt-toast-notice.is-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.kt-toast-notice.is-success {
  background: rgba(6, 78, 59, 0.95);
  border: 1px solid #10b981;
}

.kt-toast-notice.is-warning {
  background: rgba(120, 53, 15, 0.95);
  border: 1px solid #f59e0b;
}

.kt-toast-notice.is-error {
  background: rgba(127, 29, 29, 0.95);
  border: 1px solid #ef4444;
}

/* --- LMS, COURSES & CERTIFICATES --- */
.kt-pwa-lms-head {
  background: linear-gradient(135deg, #edf8fb 0%, #f8fbfd 55%, #eefaf6 100%);
}

.kt-pwa-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 0 0 18px;
  padding: 5px;
  border: 1px solid var(--kt-border);
  border-radius: 14px;
  background: #fff;
}

.kt-pwa-tabs a {
  flex: 0 0 auto;
  padding: 9px 16px;
  border-radius: 10px;
  text-decoration: none !important;
  color: var(--kt-muted);
  font-weight: 800;
  font-size: 13px;
}

.kt-pwa-tabs a.is-active {
  background: var(--kt-soft);
  color: var(--kt-primary);
}

.kt-pwa-course-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.kt-pwa-course-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--kt-border);
  border-radius: var(--kt-radius-xl);
  background: #fff;
  box-shadow: var(--kt-shadow-sm);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.kt-pwa-course-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--kt-shadow-md);
}

.kt-pwa-course-image {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--kt-soft);
  overflow: hidden;
  display: block;
}

.kt-pwa-course-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kt-pwa-course-image em {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(12, 42, 58, 0.88);
  color: #fff;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  backdrop-filter: blur(4px);
}

.kt-pwa-course-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px;
}

.kt-pwa-course-meta {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  color: var(--kt-muted);
  font-size: 11px;
  font-weight: 700;
}

.kt-pwa-course-meta span {
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--kt-soft);
}

.kt-pwa-course-card h2 {
  margin: 10px 0 7px;
  font-size: 18px;
  line-height: 1.3;
}

.kt-pwa-course-card h2 a {
  color: var(--kt-ink);
  text-decoration: none !important;
}

.kt-pwa-course-card p {
  margin: 0 0 12px;
  color: var(--kt-muted);
  font-size: 13px;
  line-height: 1.55;
}

.kt-pwa-progress {
  height: 8px;
  overflow: hidden;
  border-radius: 99px;
  background: #e9eef2;
}

.kt-pwa-progress i {
  display: block;
  height: 100%;
  background: var(--kt-accent);
  border-radius: 99px;
}

.kt-pwa-progress.is-lg {
  height: 10px;
}

.kt-pwa-course-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--kt-border);
}

.kt-pwa-course-foot strong {
  font-size: 13px;
}

.kt-pwa-course-foot a {
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--kt-soft);
  color: var(--kt-primary);
  text-decoration: none !important;
  font-weight: 800;
  font-size: 12px;
}

.kt-pwa-course-foot a.is-primary {
  background: var(--kt-primary);
  color: #fff;
}

/* Course Detail & Focus Mode */
.kt-pwa-nav-back-row {
  margin-bottom: 12px;
}

.kt-pwa-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none !important;
  font-weight: 800;
  color: var(--kt-primary);
  font-size: 13px;
}

.kt-pwa-course-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr);
  gap: 24px;
  align-items: center;
  padding: 26px;
  margin-bottom: 18px;
  border: 1px solid var(--kt-border);
  border-radius: var(--kt-radius-xl);
  background: linear-gradient(135deg, #f1f9fc, #fff);
}

.kt-pwa-course-cover {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--kt-radius-lg);
}

.kt-pwa-course-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
  align-items: start;
}

.kt-pwa-content-card,
.kt-pwa-enroll-card {
  padding: 22px;
  margin-bottom: 16px;
  border: 1px solid var(--kt-border);
  border-radius: var(--kt-radius-xl);
  background: #fff;
}

.kt-pwa-lesson-list {
  display: grid;
  gap: 8px;
}

.kt-pwa-lesson-list > a {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--kt-border);
  border-radius: var(--kt-radius-md);
  text-decoration: none !important;
  color: var(--kt-ink);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.kt-pwa-lesson-list > a:hover {
  background: var(--kt-soft);
  border-color: #c5dce7;
}

.kt-pwa-lesson-list > a > b {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--kt-soft);
  color: var(--kt-primary);
  font-size: 13px;
  font-weight: 800;
}

.kt-pwa-lesson-list > a span strong {
  font-size: 14px;
}

.kt-pwa-lesson-list > a span small {
  color: var(--kt-muted);
  font-size: 11px;
}

.kt-pwa-lesson-list > a em {
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  color: var(--kt-primary);
}

.kt-pwa-lesson-list > a.is-locked {
  opacity: 0.55;
  background: #fafafa;
  cursor: not-allowed;
}

.kt-pwa-lesson-list > a.is-locked em {
  color: var(--kt-muted);
}

.kt-pwa-lesson-list > a.is-completed em {
  color: var(--kt-success);
}

/* Learning Focus Mode */
.kt-pwa-learning {
  max-width: 1320px;
  margin: 10px auto;
}

.kt-pwa-focusbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  border: 1px solid var(--kt-border);
  border-radius: 18px 18px 0 0;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 4px 20px rgba(17, 58, 78, 0.05);
  backdrop-filter: blur(12px);
}

.kt-focusbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.kt-focus-back-btn,
.kt-focus-lms-btn {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--kt-soft);
  color: var(--kt-ink) !important;
  text-decoration: none !important;
  font-size: 12px;
  font-weight: 800;
  transition: background 0.15s ease;
}

.kt-focus-back-btn:hover,
.kt-focus-lms-btn:hover {
  background: #e2eff5;
  color: var(--kt-primary) !important;
}

.kt-focusbar-title {
  text-align: center;
}

.kt-focusbar-title span {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: var(--kt-ink);
}

.kt-focusbar-title strong {
  font-size: 11px;
  color: var(--kt-muted);
}

.kt-curriculum-toggle-btn {
  display: none;
  padding: 6px 12px;
  border: 1px solid var(--kt-border);
  border-radius: 999px;
  background: #fff;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.kt-pwa-focus-progress {
  height: 4px;
  background: #e5edf0;
}

.kt-pwa-focus-progress i {
  display: block;
  height: 100%;
  background: var(--kt-accent);
}

.kt-pwa-learn-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.kt-pwa-curriculum {
  position: sticky;
  top: 74px;
  max-height: calc(100vh - 96px);
  overflow-y: auto;
  padding: 14px;
  border: 1px solid var(--kt-border);
  border-radius: var(--kt-radius-xl);
  background: #fff;
}

.kt-pwa-curriculum-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 4px 6px 12px;
  border-bottom: 1px solid var(--kt-border);
  margin-bottom: 10px;
}

.kt-pwa-curriculum-head span {
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 900;
  color: var(--kt-primary);
}

.kt-pwa-curriculum-head h2 {
  margin: 2px 0 0;
  font-size: 16px;
}

.kt-pwa-curriculum a {
  display: grid;
  grid-template-columns: 26px 1fr 20px;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border-radius: 10px;
  text-decoration: none !important;
  color: var(--kt-ink);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
}

.kt-pwa-curriculum a.is-current {
  background: var(--kt-soft);
  color: var(--kt-primary);
  font-weight: 800;
}

.kt-pwa-curriculum a.is-locked {
  opacity: 0.5;
  cursor: not-allowed;
}

.kt-pwa-curriculum b {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: #edf3f6;
  font-size: 11px;
}

.kt-pwa-curriculum i {
  font-style: normal;
  color: var(--kt-success);
}

.kt-pwa-lesson-content {
  padding: 32px 40px;
  border: 1px solid var(--kt-border);
  border-radius: var(--kt-radius-xl);
  background: #fff;
  box-shadow: var(--kt-shadow-sm);
}

.kt-pwa-lesson-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 20px;
}

.kt-pwa-lesson-meta span {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--kt-soft);
  color: var(--kt-muted);
  font-size: 11px;
  font-weight: 800;
}

.kt-pwa-video {
  position: relative;
  aspect-ratio: 16 / 9;
  margin: 20px 0;
  overflow: hidden;
  border-radius: var(--kt-radius-md);
  background: #000;
}

.kt-pwa-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.kt-pwa-lesson-text {
  font-size: 16px;
  line-height: 1.8;
}

.kt-pwa-file-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 10px 16px;
  border: 1px solid var(--kt-border);
  border-radius: var(--kt-radius-md);
  background: var(--kt-soft);
  color: var(--kt-ink) !important;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 800;
}

/* Locked Gate Notice */
.kt-pwa-lesson-locked-notice {
  text-align: center;
  padding: 50px 24px;
  border: 1px dashed #d0dee8;
  border-radius: var(--kt-radius-xl);
  background: #fbfdfe;
}

.kt-locked-icon {
  font-size: 42px;
  margin-bottom: 12px;
}

.kt-pwa-lesson-locked-notice h2 {
  font-size: 22px;
  margin: 0 0 10px;
  color: var(--kt-ink);
}

.kt-pwa-lesson-locked-notice p {
  max-width: 500px;
  margin: 0 auto 20px;
  color: var(--kt-muted);
  font-size: 14px;
}

/* Quiz Block */
.kt-pwa-quiz {
  margin: 32px 0 16px;
  padding: 24px;
  border: 1px solid var(--kt-border);
  border-radius: var(--kt-radius-xl);
  background: linear-gradient(135deg, #f9fcfd, #fff);
}

.kt-pwa-quiz-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.kt-pwa-quiz-head span {
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 900;
  color: var(--kt-primary);
}

.kt-pwa-quiz-head h2 {
  margin: 4px 0 0;
  font-size: 20px;
}

.kt-pwa-quiz-head > div:last-child {
  padding: 8px 14px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--kt-border);
  text-align: center;
}

.kt-pwa-quiz-head strong {
  font-size: 20px;
  color: var(--kt-primary);
}

.kt-pwa-quiz-head small {
  display: block;
  font-size: 10px;
  color: var(--kt-muted);
}

.kt-pwa-quiz-question {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
  padding: 16px;
  border: 1px solid var(--kt-border);
  border-radius: var(--kt-radius-md);
  background: #fff;
}

.kt-pwa-quiz-question legend {
  display: flex;
  gap: 8px;
  align-items: center;
  font-weight: 800;
  font-size: 14px;
  padding: 0 4px;
}

.kt-pwa-quiz-question legend span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: var(--kt-soft);
  color: var(--kt-primary);
  font-size: 11px;
}

.kt-pwa-quiz-question label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.kt-pwa-quiz-question label:hover {
  background: var(--kt-soft);
}

.kt-pwa-quiz-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
}

.kt-pwa-quiz-feedback,
.kt-pwa-quiz-result {
  padding: 12px 16px;
  border-radius: var(--kt-radius-md);
  font-size: 13px;
  font-weight: 700;
  margin-top: 10px;
}

.kt-pwa-quiz-feedback.is-pass,
.kt-pwa-quiz-result.is-pass {
  background: #effaf4;
  color: var(--kt-success);
  border: 1px solid #c3e6d3;
}

.kt-pwa-quiz-feedback.is-fail {
  background: #fff3f3;
  color: var(--kt-danger);
  border: 1px solid #f9cdcb;
}

.kt-pwa-lesson-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--kt-border);
}

.kt-pwa-complete-badge {
  padding: 8px 14px;
  border-radius: 999px;
  background: #effaf4;
  color: var(--kt-success);
  font-size: 12px;
  font-weight: 800;
}

/* --- 100% CLAIM CERTIFICATE & CERTIFICATE BANNER --- */
.kt-pwa-claim-cert-card {
  padding: 24px;
  margin: 20px 0;
  border: 2px solid #99d5c9;
  border-radius: var(--kt-radius-xl);
  background: linear-gradient(135deg, #f0fbf8, #ffffff);
  box-shadow: 0 10px 30px rgba(19, 160, 165, 0.12);
}

.kt-pwa-claim-cert-card.is-inline {
  margin-top: 30px;
}

.kt-claim-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}

.kt-claim-icon {
  font-size: 32px;
}

.kt-claim-header h3 {
  margin: 0 0 6px;
  font-size: 19px;
  color: #0b595c;
}

.kt-claim-header p {
  margin: 0;
  color: var(--kt-muted);
  font-size: 14px;
}

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

.kt-claim-input-group input {
  flex: 1;
  min-width: 240px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid #bce1db;
  border-radius: 999px;
  font-size: 14px;
  background: #fff;
  color: var(--kt-ink);
}

.kt-claim-input-group input:focus {
  border-color: var(--kt-accent);
  outline: 2px solid rgba(19, 160, 165, 0.2);
}

.kt-pwa-cert-success-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  margin: 20px 0;
  border: 1px solid #a4dfc8;
  border-radius: var(--kt-radius-xl);
  background: linear-gradient(135deg, #f0fdf4, #ffffff);
  box-shadow: 0 8px 24px rgba(22, 101, 52, 0.08);
}

.kt-pwa-cert-success-banner.is-inline {
  margin-top: 24px;
}

.kt-cert-badge-icon {
  font-size: 36px;
}

.kt-pwa-cert-success-banner h3 {
  margin: 0 0 4px;
  font-size: 17px;
  color: var(--kt-success);
}

.kt-pwa-cert-success-banner p {
  margin: 0;
  font-size: 13px;
  color: var(--kt-muted);
}

/* --- "LIST SERTIFIKAT SAYA" & CERTIFICATE PAPER --- */
.kt-pwa-certificate-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.kt-pwa-certificate-card {
  padding: 24px;
  border: 1px solid var(--kt-border);
  border-radius: var(--kt-radius-xl);
  background: linear-gradient(135deg, #ffffff 0%, #f6fafc 100%);
  box-shadow: var(--kt-shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.kt-pwa-certificate-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--kt-shadow-md);
}

.kt-cert-card-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e6f7f8;
  color: var(--kt-accent);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.kt-pwa-certificate-card h2 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.35;
  color: var(--kt-ink);
}

.kt-cert-card-recipient {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--kt-muted);
}

.kt-cert-card-recipient strong {
  color: var(--kt-ink);
}

.kt-cert-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  color: var(--kt-muted);
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed var(--kt-border);
}

.kt-cert-card-meta code {
  color: var(--kt-primary);
  font-weight: 700;
}

.kt-cert-card-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
}

/* Printable Certificate View */
.kt-pwa-cert-view-wrap {
  margin: 20px auto;
  max-width: 860px;
}

.kt-cert-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.kt-certificate-paper {
  background: #fff;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(17, 58, 78, 0.15);
  border: 1px solid #d0dfe7;
}

.kt-cert-border-inner {
  border: 4px double #13a0a5;
  padding: 40px 36px;
  border-radius: 12px;
  text-align: center;
  background: radial-gradient(circle at center, #ffffff 60%, #f6fbfd 100%);
}

.kt-cert-logo-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 999px;
  background: #0f6b9b;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}

.kt-cert-header h1 {
  font-size: 32px;
  margin: 0;
  color: #0c2a3a;
  letter-spacing: 0.04em;
}

.kt-cert-subtitle {
  margin: 4px 0 24px;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: #637381;
}

.kt-cert-given-to {
  font-size: 13px;
  color: #637381;
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.kt-cert-recipient-name {
  font-size: 28px;
  color: #0f6b9b;
  margin: 0 0 16px;
  text-decoration: underline;
  text-underline-offset: 6px;
}

.kt-cert-desc {
  max-width: 580px;
  margin: 0 auto 14px;
  font-size: 14px;
  line-height: 1.6;
  color: #334155;
}

.kt-cert-course-name {
  font-size: 20px;
  color: #0c2a3a;
  margin: 0 0 36px;
}

.kt-cert-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  border-top: 1px solid #dbe7ee;
  padding-top: 20px;
  text-align: left;
}

.kt-cert-meta-item span {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  color: #637381;
}

.kt-cert-meta-item strong {
  font-size: 13px;
  color: #0c2a3a;
}

.kt-cert-sign {
  text-align: right;
}

.kt-cert-signature {
  font-family: cursive;
  font-size: 20px;
  color: #0f6b9b;
  margin: 6px 0;
}

@media print {
  body * {
    visibility: hidden;
  }
  .kt-certificate-paper,
  .kt-certificate-paper * {
    visibility: visible;
  }
  .kt-certificate-paper {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    box-shadow: none;
    border: none;
  }
  .kt-cert-toolbar {
    display: none;
  }
}

/* --- TOP NOTIFICATION BUTTON & BADGE --- */
.kt-top-notif-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--kt-border);
  background: #fff;
  color: var(--kt-ink);
  cursor: pointer;
  transition: all 0.15s ease;
}

.kt-top-notif-btn:hover {
  background: var(--kt-soft);
  color: var(--kt-primary);
  border-color: var(--kt-primary);
}

.kt-notif-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: #e53935;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(229, 57, 53, 0.4);
  animation: ktPulse 2s infinite;
}

@keyframes ktPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* --- INSTAGRAM-STYLE NOTIFICATIONS MODAL --- */
body.kt-notif-open {
  overflow: hidden;
}

.kt-notif-dialog {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
}

@media (min-width: 641px) {
  .kt-notif-dialog {
    align-items: center;
  }
}

.kt-notif-dialog.is-active {
  pointer-events: auto;
}

.kt-notif-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 42, 58, 0.45);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.kt-notif-dialog.is-active .kt-notif-backdrop {
  opacity: 1;
}

.kt-notif-sheet {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 85vh;
  background: #fff;
  border-radius: 20px 20px 0 0;
  box-shadow: var(--kt-shadow-lg);
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

@media (min-width: 641px) {
  .kt-notif-sheet {
    border-radius: 20px;
    transform: scale(0.95) translateY(20px);
    opacity: 0;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
  }
  .kt-notif-dialog.is-active .kt-notif-sheet {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.kt-notif-dialog.is-active .kt-notif-sheet {
  transform: translateY(0);
}

.kt-notif-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--kt-border);
  background: #fbfdfe;
}

.kt-notif-title {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: var(--kt-ink);
}

.kt-notif-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.kt-notif-mark-read-btn {
  border: 0;
  background: transparent;
  color: var(--kt-primary);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
}

.kt-notif-mark-read-btn:hover {
  background: var(--kt-soft);
}

.kt-notif-close-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: var(--kt-soft);
  color: var(--kt-muted);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.kt-notif-close-btn:hover {
  background: #e1edf3;
  color: var(--kt-ink);
}

.kt-notif-body {
  flex: 1;
  overflow-y: auto;
  padding: 0 0 16px 0;
  min-height: 250px;
  max-height: calc(85vh - 70px);
}

.kt-notif-list {
  display: flex;
  flex-direction: column;
}

.kt-notif-group-title {
  padding: 14px 20px 8px;
  font-size: 13px;
  font-weight: 800;
  color: var(--kt-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 2;
}

.kt-notif-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 20px;
  transition: background 0.15s ease;
  border-bottom: 1px solid rgba(220, 230, 236, 0.4);
}

.kt-notif-item:hover {
  background: #f8fafc;
}

.kt-notif-item.is-unread {
  background: rgba(15, 107, 155, 0.05);
}

.kt-notif-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.kt-notif-avatar,
.kt-notif-avatar-placeholder {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--kt-soft);
  font-size: 20px;
}

.kt-notif-type-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.kt-notif-content {
  flex: 1;
  min-width: 0;
}

.kt-notif-text {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--kt-ink);
  word-break: break-word;
}

.kt-notif-actor-name {
  font-weight: 800;
  color: var(--kt-ink);
  text-decoration: none;
}

.kt-notif-actor-name:hover {
  text-decoration: underline;
}

.kt-notif-action-text {
  color: #334e60;
}

.kt-notif-time {
  font-size: 11.5px;
  color: var(--kt-muted);
}

.kt-notif-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.kt-notif-follow-btn {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
}

.kt-notif-follow-btn.is-follow {
  background: var(--kt-primary);
  color: #fff;
}

.kt-notif-follow-btn.is-follow:hover {
  background: #0c567c;
}

.kt-notif-follow-btn.is-following {
  background: var(--kt-soft);
  color: var(--kt-ink);
  border-color: var(--kt-border);
}

.kt-notif-follow-btn.is-following:hover {
  background: #fed7d7;
  color: #c53030;
  border-color: #feb2b2;
}

.kt-notif-thumb {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
}

.kt-notif-unread-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--kt-primary);
  flex-shrink: 0;
}

.kt-notif-empty {
  text-align: center;
  padding: 50px 20px;
  color: var(--kt-muted);
}

.kt-notif-empty-icon {
  font-size: 36px;
  display: block;
  margin-bottom: 12px;
}

.kt-notif-empty h4 {
  margin: 0 0 6px 0;
  font-size: 16px;
  color: var(--kt-ink);
}

.kt-notif-empty p {
  margin: 0;
  font-size: 13px;
}

.kt-notif-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 40px 20px;
  color: var(--kt-muted);
  font-size: 14px;
}

/* --- RECORDING HUB & STATS --- */
.kt-pwa-recording-hub .kt-pwa-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.kt-pwa-recording-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 20px 0;
}

@media (max-width: 768px) {
  .kt-pwa-recording-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.kt-pwa-stat-card {
  background: #fff;
  border: 1px solid var(--kt-border);
  border-radius: var(--kt-radius-md);
  padding: 20px 16px;
  box-shadow: var(--kt-shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.kt-pwa-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--kt-shadow-md);
}

.kt-pwa-stat-card .kt-stat-label {
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--kt-muted);
  margin-bottom: 6px;
}

.kt-pwa-stat-card .kt-stat-val {
  font-size: 28px;
  font-weight: 800;
  color: var(--kt-primary);
  line-height: 1.1;
  margin-bottom: 6px;
}

.kt-pwa-stat-card small {
  font-size: 12px;
  color: var(--kt-muted);
}

.kt-pwa-recording-stats-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 920px) {
  .kt-pwa-course-grid,
  .kt-pwa-certificate-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .kt-pwa-course-layout {
    grid-template-columns: 1fr;
  }
  .kt-pwa-course-hero {
    grid-template-columns: 1fr;
  }
  .kt-pwa-learn-layout {
    grid-template-columns: 1fr;
  }
  .kt-curriculum-toggle-btn {
    display: inline-flex;
  }
  .kt-pwa-curriculum {
    display: none;
    position: fixed;
    left: 14px;
    right: 14px;
    top: 68px;
    z-index: 80;
    max-height: 70vh;
    box-shadow: var(--kt-shadow-lg);
  }
  .kt-pwa-curriculum.is-open {
    display: block;
  }
}

@media (max-width: 640px) {
  .kt-pwa-app {
    padding: 8px 12px calc(var(--kt-bottom-nav-height) + 24px + env(safe-area-inset-bottom));
  }
  .kt-pwa-top-bar {
    padding: 8px 12px;
    gap: 8px;
    border-radius: var(--kt-radius-md);
    margin-bottom: 12px;
  }
  .kt-pwa-top-actions {
    gap: 6px;
  }
  .kt-top-action-btn small {
    display: none !important;
  }
  .kt-top-action-btn {
    padding: 6px 8px;
    min-width: 34px;
    justify-content: center;
  }
  .kt-top-action-btn span {
    font-size: 15px;
    line-height: 1;
  }
  .kt-pwa-user-avatar-btn {
    width: 32px;
    height: 32px;
  }
  .kt-pwa-brand strong.kt-brand-title {
    font-size: 15px;
  }
  .kt-pwa-page-head {
    padding: 16px 14px;
    border-radius: var(--kt-radius-lg);
    margin-bottom: 12px;
  }
  .kt-pwa-page-head h1 {
    font-size: 22px;
  }
  .kt-quick-compose {
    padding: 8px 10px;
    gap: 8px;
    margin-bottom: 12px;
  }
  .kt-quick-compose a {
    font-size: 12px;
    padding: 7px 12px;
  }
  .kt-pwa-fyp-tabs {
    padding: 4px;
    gap: 4px;
    margin-bottom: 12px;
  }
  .kt-pwa-fyp-tabs a {
    padding: 6px 10px;
    font-size: 12px;
    min-width: 60px;
  }
  .kt-pwa-composer {
    padding: 14px;
    border-radius: var(--kt-radius-lg);
  }
  .kt-pwa-composer-top {
    flex-direction: column;
    gap: 10px;
  }
  .kt-pwa-avatar {
    display: none;
  }
  .kt-pwa-compose-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .kt-pwa-kabar-card,
  .kt-pwa-article-card {
    padding: 14px 12px;
    border-radius: var(--kt-radius-lg);
  }
  .kt-pwa-location-pill,
  .kt-pwa-status,
  .kt-pwa-media-grid,
  .kt-repost-quote-card,
  .kt-pwa-card-actions {
    margin-left: 0;
  }
  .kt-pwa-card-actions {
    gap: 6px;
  }
  .kt-pwa-card-actions button,
  .kt-card-action-btn {
    min-height: 32px;
    padding: 5px 10px;
    font-size: 11px;
  }
  .kt-pwa-course-grid,
  .kt-pwa-certificate-grid {
    grid-template-columns: 1fr;
  }
  .kt-pwa-lesson-content {
    padding: 20px 16px;
    border-radius: var(--kt-radius-lg);
  }
  .kt-cert-border-inner {
    padding: 24px 16px;
  }
  .kt-cert-header h1 {
    font-size: 24px;
  }
  .kt-cert-recipient-name {
    font-size: 22px;
  }
  .kt-cert-footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .kt-cert-sign {
    text-align: center;
  }
}
