/**
 * Jitara Web School (JWS) - Mobile-First PWA Stylesheet
 * Affan PWA Inspired Modern Design
 */

/* ==========================================================================
   1. ROOT VARIABLES & THEME TOKENS
   ========================================================================== */
:root {
  --pwa-primary: #1e60f2;
  --pwa-primary-hover: #154ec5;
  --pwa-primary-gradient: linear-gradient(140deg, #1e60f2 0%, #0d4cd3 65%, #083ba8 100%);
  --pwa-primary-soft: #eff6ff;
  --pwa-accent: #f59e0b;
  --pwa-accent-hover: #d97706;
  
  --pwa-bg: #f8fafc;
  --pwa-surface: #ffffff;
  --pwa-surface-subtle: #f1f5f9;
  --pwa-text: #0f172a;
  --pwa-text-muted: #64748b;
  --pwa-border: #e2e8f0;
  --pwa-border-light: rgba(226, 232, 240, 0.8);
  --pwa-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.06), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --pwa-shadow-lg: 0 20px 30px -10px rgba(15, 23, 42, 0.12);
  --pwa-radius-sm: 10px;
  --pwa-radius-md: 16px;
  --pwa-radius-lg: 22px;
}

/* Dark Mode Tokens */
[data-pwa-theme="dark"] {
  --pwa-bg: #0b0f17;
  --pwa-surface: #131b2a;
  --pwa-surface-subtle: #1c2639;
  --pwa-text: #f1f5f9;
  --pwa-text-muted: #94a3b8;
  --pwa-border: rgba(255, 255, 255, 0.09);
  --pwa-border-light: rgba(255, 255, 255, 0.05);
  --pwa-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
  --pwa-shadow-lg: 0 20px 35px -10px rgba(0, 0, 0, 0.6);
  --pwa-primary-soft: rgba(30, 96, 242, 0.15);
  
  background-color: var(--pwa-bg) !important;
  color: var(--pwa-text) !important;
}

[data-pwa-theme="dark"] body {
  background-color: var(--pwa-bg) !important;
  color: var(--pwa-text) !important;
}

[data-pwa-theme="dark"] .bg-white,
[data-pwa-theme="dark"] .card,
[data-pwa-theme="dark"] .section-padding {
  background-color: var(--pwa-surface) !important;
  color: var(--pwa-text) !important;
}

[data-pwa-theme="dark"] .border,
[data-pwa-theme="dark"] .border-top,
[data-pwa-theme="dark"] .border-bottom {
  border-color: var(--pwa-border) !important;
}

[data-pwa-theme="dark"] h1, 
[data-pwa-theme="dark"] h2, 
[data-pwa-theme="dark"] h3, 
[data-pwa-theme="dark"] h4, 
[data-pwa-theme="dark"] h5, 
[data-pwa-theme="dark"] h6 {
  color: #ffffff !important;
}

[data-pwa-theme="dark"] p,
[data-pwa-theme="dark"] span {
  color: var(--pwa-text-muted);
}

/* ==========================================================================
   2. MOBILE TOP APP BAR (VISIBLE ON < 992px)
   ========================================================================== */
.pwa-mobile-topbar {
  display: none;
}

@media (max-width: 991.98px) {
  /* Prevent horizontal scrolling on mobile */
  html, body {
    overflow-x: hidden;
  }

  /* Safe space at bottom of page for bottom nav bar */
  body {
    padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .pwa-mobile-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    height: 64px;
    padding: 0 16px;
    background: var(--pwa-surface);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--pwa-border);
    box-shadow: 0 2px 14px rgba(15, 23, 42, 0.05);
    transition: background-color 0.3s ease, border-color 0.3s ease;
  }

/* Hide Back to Top Arrow on Mobile / PWA to prevent blocking bottom navigation */
@media (max-width: 1199.98px) {
  .scroll-top {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transform: none !important;
  }
}

@media (display-mode: standalone) {
  .scroll-top {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transform: none !important;
  }
}

  .pwa-topbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none !important;
    max-width: calc(100% - 105px);
  }

  .pwa-topbar-logo-wrap {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid var(--pwa-border);
    padding: 2px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    flex-shrink: 0;
  }

  .pwa-topbar-logo-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
  }

  .pwa-topbar-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }

  .pwa-topbar-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--pwa-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
    letter-spacing: -0.01em;
  }

  .pwa-topbar-subtitle {
    font-size: 11px;
    font-weight: 500;
    color: var(--pwa-primary);
    line-height: 1.1;
    margin-top: 1px;
  }

  .pwa-topbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
  }

  .pwa-topbar-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1.5px solid var(--pwa-border);
    background: var(--pwa-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pwa-text);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
    text-decoration: none;
  }

  .pwa-topbar-btn:active {
    transform: scale(0.94);
    background: var(--pwa-surface-subtle);
  }

  .pwa-topbar-btn svg {
    width: 20px;
    height: 20px;
    stroke: var(--pwa-text);
    transition: stroke 0.2s ease;
  }

  .pwa-topbar-search-btn:hover,
  .pwa-topbar-search-btn:active {
    border-color: var(--pwa-primary);
    background: var(--pwa-primary-soft);
    color: var(--pwa-primary);
  }

  .pwa-topbar-search-btn:hover svg,
  .pwa-topbar-search-btn:active svg {
    stroke: var(--pwa-primary);
  }

  .pwa-topbar-toggler:hover,
  .pwa-topbar-toggler:active {
    border-color: var(--pwa-primary);
  }

  /* Hide default transhub topbars and desktop header on mobile to provide 100% clean PWA app feel */
  .header-2 .header-top,
  .top-bar-1,
  .header .header-nav-wrapper {
    display: none !important;
  }

  .header {
    min-height: 0 !important;
    height: auto !important;
  }
  
  .header .sticky-height {
    display: none !important;
  }
}

/* ==========================================================================
   3. AFFAN STYLE OFFCANVAS DRAWER (SCREENSHOT 1)
   ========================================================================== */
.affan-pwa-drawer {
  width: 310px !important;
  max-width: 85vw !important;
  border: none !important;
  border-radius: 0 26px 26px 0 !important;
  box-shadow: 10px 0 40px rgba(2, 14, 40, 0.25) !important;
  background: var(--pwa-surface) !important;
  color: var(--pwa-text) !important;
  overflow: hidden !important;
  z-index: 1060 !important;
}

/* Vibrant Blue Profile Header Card */
.affan-drawer-header {
  position: relative;
  background: var(--pwa-primary-gradient);
  padding: 32px 20px 22px;
  color: #ffffff;
  overflow: hidden;
  text-align: center;
}

/* Organic Background Watermark / Leaf Shapes */
.affan-drawer-header::before {
  content: "";
  position: absolute;
  bottom: -20px;
  left: -20px;
  width: 110px;
  height: 110px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.affan-drawer-header::after {
  content: "";
  position: absolute;
  top: -15px;
  right: 25px;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.affan-btn-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 5;
}

.affan-btn-close:hover,
.affan-btn-close:active {
  background: rgba(255, 255, 255, 0.35);
  transform: rotate(90deg);
}

.affan-avatar-wrap {
  width: 80px;
  height: 80px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: #ffffff;
  border: 3.5px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.affan-avatar-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.affan-school-name {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 2px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.affan-school-subtitle {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 500;
  margin: 0;
}

/* Drawer Body Navigation */
.affan-drawer-body {
  padding: 14px 10px !important;
  overflow-y: auto;
  scrollbar-width: thin;
}

/* In-Drawer Quick Search Bar */
.affan-drawer-search-wrap {
  padding: 2px 4px 12px;
}

.affan-search-input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.affan-search-icon {
  position: absolute;
  left: 14px;
  color: var(--pwa-text-muted);
  font-size: 14px;
  pointer-events: none;
}

.affan-search-input {
  width: 100%;
  padding: 10px 42px 10px 38px !important;
  border-radius: 12px !important;
  border: 1.5px solid var(--pwa-border) !important;
  background: var(--pwa-surface-subtle) !important;
  color: var(--pwa-text) !important;
  font-size: 13.5px !important;
  transition: all 0.2s ease !important;
}

.affan-search-input:focus {
  background: var(--pwa-surface) !important;
  border-color: var(--pwa-primary) !important;
  box-shadow: 0 0 0 3px rgba(30, 96, 242, 0.15) !important;
  outline: none !important;
}

.affan-search-submit {
  position: absolute;
  right: 6px;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: none;
  background: var(--pwa-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.affan-search-submit:active {
  transform: scale(0.92);
}

.affan-menu-group {
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
}

.affan-menu-item {
  margin-bottom: 4px;
}

.affan-menu-link {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-radius: 14px;
  color: var(--pwa-text) !important;
  font-weight: 600;
  font-size: 14.5px;
  text-decoration: none !important;
  transition: all 0.2s ease;
  position: relative;
}

.affan-menu-link:hover {
  background: var(--pwa-surface-subtle);
  color: var(--pwa-primary) !important;
}

.affan-menu-link.active {
  background: var(--pwa-primary-soft);
  color: var(--pwa-primary) !important;
  font-weight: 700;
}

.affan-menu-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(30, 96, 242, 0.08);
  color: var(--pwa-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  margin-right: 14px;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.affan-menu-link:hover .affan-menu-icon,
.affan-menu-link.active .affan-menu-icon {
  background: var(--pwa-primary);
  color: #ffffff;
}

.affan-menu-text {
  flex-grow: 1;
}

/* Modern Pill Badges */
.affan-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  margin-left: 8px;
}

.affan-badge-red {
  background: #ef4444;
  color: #ffffff;
}

.affan-badge-green {
  background: #10b981;
  color: #ffffff;
}

.affan-badge-blue {
  background: #3b82f6;
  color: #ffffff;
}

/* Accordion Dropdown Submenu in Drawer */
.affan-accordion-btn {
  width: 100%;
  border: none;
  background: transparent;
  cursor: pointer;
}

.affan-accordion-btn .fa-chevron-down {
  font-size: 12px;
  transition: transform 0.2s ease;
  color: var(--pwa-text-muted);
}

.affan-accordion-btn[aria-expanded="true"] .fa-chevron-down {
  transform: rotate(180deg);
}

.affan-submenu {
  list-style: none;
  padding: 4px 0 6px 46px;
  margin: 0;
}

.affan-submenu-link {
  display: block;
  padding: 8px 12px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--pwa-text-muted) !important;
  text-decoration: none !important;
  border-radius: 8px;
  transition: all 0.2s;
}

.affan-submenu-link:hover,
.affan-submenu-link.active {
  color: var(--pwa-primary) !important;
  background: var(--pwa-surface-subtle);
}

/* Divider */
.affan-drawer-divider {
  height: 1px;
  background: var(--pwa-border);
  margin: 12px 10px;
}

/* Dark Mode Switcher Row */
.affan-darkmode-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--pwa-surface-subtle);
  margin: 8px 6px;
}

.affan-darkmode-left {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--pwa-text);
  font-weight: 600;
  font-size: 14px;
}

.affan-darkmode-left i {
  color: #8b5cf6;
  font-size: 16px;
}

/* Toggle Switch */
.pwa-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.pwa-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.pwa-toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #cbd5e1;
  transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 34px;
}

.pwa-toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.pwa-toggle input:checked + .pwa-toggle-slider {
  background-color: var(--pwa-primary);
}

.pwa-toggle input:checked + .pwa-toggle-slider:before {
  transform: translateX(20px);
}

/* Portal Access Link (Login Guru / Admin) */
.affan-portal-link {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-radius: 14px;
  margin: 6px;
  background: rgba(239, 68, 68, 0.06);
  color: #ef4444 !important;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none !important;
  transition: all 0.2s;
}

.affan-portal-link:hover {
  background: rgba(239, 68, 68, 0.12);
}

.affan-portal-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
}

/* Drawer Footer */
.affan-drawer-footer {
  padding: 18px 16px 24px;
  text-align: center;
  border-top: 1px solid var(--pwa-border);
  background: var(--pwa-surface);
}

.affan-social-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
}

.affan-social-link {
  color: var(--pwa-text-muted);
  font-size: 15px;
  transition: all 0.2s;
  text-decoration: none !important;
}

.affan-social-link:hover {
  color: var(--pwa-primary);
  transform: translateY(-2px);
}

.affan-social-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--pwa-border);
}

.affan-drawer-copy {
  font-size: 12px;
  color: var(--pwa-text-muted);
  margin: 0;
}

/* ==========================================================================
   4. DOCKED FLOATING BOTTOM NAVIGATION BAR (SCREENSHOT 2)
   ========================================================================== */
.pwa-bottom-nav {
  display: none;
}

@media (max-width: 991.98px) {
  .pwa-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(64px + env(safe-area-inset-bottom, 0px));
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
    background: var(--pwa-surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--pwa-border);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
    z-index: 1045;
    align-items: center;
    justify-content: space-around;
  }

  .pwa-bottom-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    color: var(--pwa-text-muted) !important;
    text-decoration: none !important;
    padding: 4px 2px;
    border-radius: 12px;
    transition: all 0.2s ease;
    position: relative;
  }

  .pwa-bottom-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 26px;
    margin-bottom: 2px;
  }

  .pwa-bottom-icon-wrap i {
    font-size: 18px;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.2s ease;
  }

  .pwa-bottom-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1;
    transition: color 0.2s ease;
  }

  .pwa-bottom-item.active {
    color: var(--pwa-primary) !important;
  }

  .pwa-bottom-item.active .pwa-bottom-icon-wrap i {
    transform: scale(1.15);
    color: var(--pwa-primary);
  }

  .pwa-bottom-item.active .pwa-bottom-label {
    font-weight: 800;
    color: var(--pwa-primary);
  }

  /* Soft dot indicator above active tab */
  .pwa-bottom-item.active::after {
    content: "";
    position: absolute;
    top: 2px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--pwa-primary);
  }
}

/* ==========================================================================
   5. QUICK ACTION APP GRID (SCREENSHOT 2)
   ========================================================================== */
.pwa-app-grid-section {
  padding: 16px 0 8px;
}

.pwa-app-grid-card {
  background: var(--pwa-surface);
  border: 1px solid var(--pwa-border);
  border-radius: var(--pwa-radius-lg);
  padding: 22px 14px 16px;
  box-shadow: var(--pwa-shadow);
  margin-bottom: 20px;
}

.pwa-app-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px 8px;
}

@media (max-width: 480px) {
  .pwa-app-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 14px 4px;
  }
}

.pwa-app-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none !important;
}

.pwa-app-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--pwa-primary-soft);
  color: var(--pwa-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 8px;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 14px rgba(30, 96, 242, 0.12);
}

.pwa-app-item:hover .pwa-app-icon,
.pwa-app-item:active .pwa-app-icon {
  transform: translateY(-3px) scale(1.06);
  background: var(--pwa-primary);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(30, 96, 242, 0.25);
}

.pwa-app-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--pwa-text);
  text-align: center;
  line-height: 1.25;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Distinct pastel palettes for icons */
.pwa-icon-ppdb { background: #e0e7ff; color: #4338ca; }
.pwa-icon-news { background: #dbeafe; color: #1d4ed8; }
.pwa-icon-announcement { background: #fef3c7; color: #b45309; }
.pwa-icon-agenda { background: #fce7f3; color: #be185d; }
.pwa-icon-gtk { background: #ecfdf5; color: #047857; }
.pwa-icon-download { background: #ccfbf1; color: #0f766e; }
.pwa-icon-gallery { background: #fae8ff; color: #86198f; }
.pwa-icon-digiakses { background: #e0f2fe; color: #0369a1; }

/* ==========================================================================
   6. HIGHLIGHT CARD ("READY TO USE ELEMENTS" STYLE - SCREENSHOT 2)
   ========================================================================== */
.pwa-highlight-card {
  position: relative;
  border-radius: var(--pwa-radius-lg);
  overflow: hidden;
  padding: 28px 22px;
  background: #0f172a;
  color: #ffffff;
  box-shadow: var(--pwa-shadow-lg);
  margin-bottom: 24px;
}

.pwa-highlight-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.28;
  transform: scale(1.02);
  pointer-events: none;
}

.pwa-highlight-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 58, 138, 0.82) 100%);
  pointer-events: none;
}

.pwa-highlight-content {
  position: relative;
  z-index: 2;
}

.pwa-highlight-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fef08a;
  margin-bottom: 12px;
}

.pwa-highlight-title {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.pwa-highlight-text {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  margin-bottom: 20px;
}

.pwa-highlight-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--pwa-accent);
  color: #0f172a !important;
  font-weight: 800;
  font-size: 13px;
  border-radius: 12px;
  padding: 10px 20px;
  text-decoration: none !important;
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.4);
  transition: all 0.2s ease;
}

.pwa-highlight-btn:hover,
.pwa-highlight-btn:active {
  background: #fbbf24;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.5);
}

.pwa-highlight-btn i {
  transition: transform 0.2s ease;
}

.pwa-highlight-btn:hover i {
  transform: translateX(4px);
}

/* ==========================================================================
   7. PWA INSTALL BANNER
   ========================================================================== */
.pwa-install-banner {
  display: none;
  position: fixed;
  bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  left: 14px;
  right: 14px;
  background: var(--pwa-surface);
  border: 1px solid var(--pwa-border);
  border-radius: var(--pwa-radius-md);
  padding: 14px 16px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.16);
  z-index: 1040;
  animation: pwaSlideUp 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.pwa-install-inner {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pwa-install-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--pwa-primary-gradient);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(30, 96, 242, 0.25);
}

.pwa-install-info {
  flex-grow: 1;
  min-width: 0;
}

.pwa-install-title {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--pwa-text);
  margin-bottom: 2px;
  line-height: 1.2;
}

.pwa-install-desc {
  font-size: 11.5px;
  color: var(--pwa-text-muted);
  margin: 0;
  line-height: 1.3;
}

.pwa-install-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.pwa-btn-install {
  background: var(--pwa-primary);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 12px;
  padding: 8px 14px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(30, 96, 242, 0.2);
}

.pwa-btn-dismiss {
  background: transparent;
  color: var(--pwa-text-muted);
  border: none;
  font-size: 16px;
  padding: 6px;
  cursor: pointer;
}
