.cert-hanging-wrapper {
      position: relative;
      max-width: 940px;
      margin: 0 auto;
      padding-top: 55px; /* space for the hanging cord / dori */
    }

    /* 3D Metallic Wall Pin/Hook at top center */
    .cert-wall-pin {
      position: absolute;
      top: 2px;
      left: 50%;
      transform: translateX(-50%);
      width: 26px;
      height: 26px;
      background: radial-gradient(circle at 35% 35%, #FEF08A 0%, #F59E0B 45%, #B45309 85%, #78350F 100%);
      border-radius: 50%;
      box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45), inset 0 2px 3px rgba(255, 255, 255, 0.8);
      z-index: 10;
    }

    .cert-wall-pin::after {
      content: '';
      position: absolute;
      top: 8px;
      left: 8px;
      width: 10px;
      height: 10px;
      background: #78350F;
      border-radius: 50%;
      box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.8);
    }

    /* Hanging Braided Cords / Strings (Dori) */
    .cert-hanging-cord-left {
      position: absolute;
      top: 13px;
      left: 50%;
      width: 48%;
      height: 46px;
      border-top: 3.5px dashed #B45309;
      border-left: 3.5px solid #D97706;
      transform-origin: top left;
      transform: rotate(-11deg) skewX(-14deg);
      box-shadow: -2px 3px 6px rgba(0, 0, 0, 0.15);
      pointer-events: none;
      z-index: 5;
    }

    .cert-hanging-cord-right {
      position: absolute;
      top: 13px;
      right: 50%;
      width: 48%;
      height: 46px;
      border-top: 3.5px dashed #B45309;
      border-right: 3.5px solid #D97706;
      transform-origin: top right;
      transform: rotate(11deg) skewX(14deg);
      box-shadow: 2px 3px 6px rgba(0, 0, 0, 0.15);
      pointer-events: none;
      z-index: 5;
    }

    /* Royal Framed Certificate Plaque */
    .sankalp-cert-frame {
      background: #FFFDF9;
      border: 4px double #D97706;
      border-radius: 12px;
      padding: 10px 16px;
      box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(217, 119, 6, 0.2);
      position: relative;
      overflow: hidden;
      box-sizing: border-box;
    }

    /* Floating Close Button for Modal */
    .btn-cert-modal-floating-close {
      position: absolute;
      top: 10px;
      right: 12px;
      width: 36px;
      height: 36px;
      border-radius: 50%;
      background: rgba(15, 23, 42, 0.75);
      color: #FFFFFF;
      border: 2px solid rgba(255, 255, 255, 0.85);
      font-size: 1.15rem;
      font-weight: 700;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      z-index: 1000;
      transition: all 0.2s ease;
      box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    }
    .btn-cert-modal-floating-close:hover {
      background: #EF4444;
      border-color: #FFFFFF;
      transform: scale(1.08);
    }

    /* Full Background Watermark Logo Layer (Single Centered Transparent Logo) */
    .cert-watermark-layer {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      width: 100%;
      height: 100%;
      pointer-events: none;
      z-index: 1;
      overflow: hidden;
      display: flex;
      justify-content: center;
      align-items: center;
      padding: 0;
      user-select: none;
      -webkit-user-select: none;
    }

    .cert-watermark-item {
      display: flex;
      justify-content: center;
      align-items: center;
      width: 100%;
      height: 100%;
    }

    .cert-wm-img {
      width: 70%;
      max-width: 520px;
      height: auto;
      max-height: 480px;
      object-fit: contain;
      opacity: 0.20; /* Transparent watermark - clearly visible */
      filter: none;
      mix-blend-mode: multiply;
      display: block;
    }

    .modal-header-logo-icon {
      height: 38px;
      width: auto;
      max-width: 120px;
      object-fit: contain;
      background: #FFFFFF;
      padding: 3px 6px;
      border-radius: 6px;
      box-shadow: 0 2px 6px rgba(0,0,0,0.18);
    }

    .cert-corner {
      display: none !important;
    }

    /* Certificate Header */
    .cert-header {
      text-align: center;
      padding-bottom: 1rem;
      border-bottom: 2px solid #FDE68A;
      margin-bottom: 1.25rem;
      position: relative;
      z-index: 2;
    }

    /* Top Official Logo Container */
    .cert-logo-container {
      display: flex;
      justify-content: center;
      align-items: center;
      margin-bottom: 0.65rem;
    }

    .cert-top-logo {
      height: 76px;
      width: auto;
      max-width: 260px;
      object-fit: contain;
      display: block;
      filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.08));
    }

    .cert-national-ribbon {
      height: 4px;
      display: flex;
      width: 170px;
      margin: 0 auto 0.75rem auto;
      border-radius: 2px;
      overflow: hidden;
    }
    .ribbon-saffron { flex: 1; background: #FF671F; }
    .ribbon-white { flex: 1; background: #FFFFFF; border-top: 1px solid #E2E8F0; }
    .ribbon-green { flex: 1; background: #046A38; }

    .cert-flag-pill {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      background: #FFF7ED;
      border: 1px solid #FDBA74;
      color: #C2410C;
      font-size: 0.78rem;
      font-weight: 800;
      padding: 3px 12px;
      border-radius: 20px;
      margin-bottom: 0.4rem;
      letter-spacing: 0.5px;
    }

    .cert-main-title {
      font-size: 1.7rem;
      font-weight: 900;
      color: #0F172A;
      margin: 0.25rem 0;
      letter-spacing: -0.3px;
    }

    .cert-subtitle {
      font-size: 0.9rem;
      color: #475569;
      font-weight: 600;
      margin: 0 0 0.25rem 0;
    }

    .cert-foundation-tag {
      font-size: 0.8rem;
      color: #B45309;
      margin: 0;
    }

    /* 4. Personalized Member Credentials Box */
    .cert-member-box {
      background: linear-gradient(135deg, rgba(255, 251, 235, 0.88) 0%, rgba(254, 243, 199, 0.88) 100%);
      backdrop-filter: blur(2px);
      -webkit-backdrop-filter: blur(2px);
      border: 1.5px solid #FDE68A;
      border-radius: 12px;
      padding: 14px 18px;
      margin-bottom: 1.25rem;
      box-shadow: 0 2px 8px rgba(245, 158, 11, 0.08);
      position: relative;
      z-index: 2;
    }

    .member-box-title {
      font-size: 0.86rem;
      font-weight: 800;
      color: #B45309;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      margin-bottom: 10px;
      display: flex;
      align-items: center;
      gap: 7px;
      border-bottom: 1px dashed #FCD34D;
      padding-bottom: 6px;
    }

    .member-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
      gap: 8px 14px;
    }

    .member-field {
      font-size: 0.84rem;
      color: #475569;
      display: flex;
      flex-direction: column;
    }

    .member-field .m-lbl {
      font-size: 0.72rem;
      color: #78350F;
      font-weight: 700;
      margin-bottom: 2px;
    }

    .member-field .m-val {
      font-weight: 700;
      color: #0F172A;
      font-size: 0.88rem;
    }

    .member-field .highlight-name {
      color: #EA580C;
      font-size: 1.05rem;
      font-weight: 800;
    }

    .member-field.highlight-field {
      background: #FFFFFF;
      padding: 6px 10px;
      border-radius: 8px;
      border: 1px solid #FDE68A;
    }

    .member-field.highlight-field-gold {
      background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
      padding: 6px 10px;
      border-radius: 8px;
      border: 1px solid #F59E0B;
    }
    .member-field.highlight-field-gold .m-val {
      color: #92400E;
    }

    /* Mind-Strike Alert Box inside Modal */
    .mind-strike-banner {
      background: linear-gradient(135deg, #FEF2F2 0%, #FEE2E2 100%);
      border: 1.8px solid #F87171;
      border-radius: 12px;
      padding: 14px 18px;
      margin-bottom: 1.25rem;
      box-shadow: 0 4px 14px rgba(220, 38, 38, 0.12);
    }

    .mind-strike-banner.banner-printed {
      background: linear-gradient(135deg, #F0FDF4 0%, #DCFCE7 100%);
      border-color: #86EFAC;
    }

    .mind-strike-content {
      display: flex;
      align-items: flex-start;
      gap: 12px;
      margin-bottom: 12px;
    }

    .mind-strike-icon {
      width: 38px;
      height: 38px;
      border-radius: 50%;
      background: #DC2626;
      color: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.15rem;
      flex-shrink: 0;
    }

    .mind-strike-text h4 {
      font-size: 1.08rem;
      font-weight: 800;
      color: #991B1B;
      margin: 0 0 4px 0;
    }

    .mind-strike-text p {
      font-size: 0.88rem;
      color: #7F1D1D;
      margin: 0;
      line-height: 1.45;
    }

    .mind-strike-actions {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-wrap: wrap;
    }

    .btn-cert-print-now {
      background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
      color: #FFFFFF;
      font-weight: 800;
      padding: 9px 20px;
      border-radius: 50px;
      border: none;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 7px;
      font-size: 0.9rem;
      box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
      transition: all 0.2s ease;
    }
    .btn-cert-print-now:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 16px rgba(220, 38, 38, 0.4);
    }

    .btn-cert-confirm-now {
      background: linear-gradient(135deg, #16A34A 0%, #15803D 100%);
      color: #FFFFFF;
      font-weight: 800;
      padding: 9px 20px;
      border-radius: 50px;
      border: none;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 7px;
      font-size: 0.9rem;
      box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
      transition: all 0.2s ease;
    }
    .btn-cert-confirm-now:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 16px rgba(220, 38, 38, 0.4);
    }

    .btn-cert-remind-later {
      background: #F1F5F9;
      color: #475569;
      font-weight: 700;
      padding: 8px 16px;
      border-radius: 50px;
      border: 1px solid #CBD5E1;
      cursor: pointer;
      font-size: 0.85rem;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      transition: all 0.2s ease;
    }
    .btn-cert-remind-later:hover {
      background: #E2E8F0;
      color: #1E293B;
    }

    /* Inspiring Motto Quote */
    .cert-motto-quote {
      text-align: center;
      font-size: 0.76rem;
      color: #78350F;
      font-style: italic;
      font-weight: 600;
      background: rgba(255, 251, 235, 0.88);
      backdrop-filter: blur(2px);
      -webkit-backdrop-filter: blur(2px);
      padding: 4px 10px;
      border-radius: 6px;
      margin-bottom: 0.35rem;
      border-left: 3px solid #D97706;
      line-height: 1.35;
      position: relative;
      z-index: 2;
    }

    /* 13 Sankalp Grid in Certificate - Compact 1-Page Layout */
    .cert-sankalp-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 3px 8px;
      margin-bottom: 0.35rem;
      position: relative;
      z-index: 2;
    }

    .cert-sankalp-card {
      background: rgba(255, 255, 255, 0.80);
      backdrop-filter: blur(2px);
      -webkit-backdrop-filter: blur(2px);
      border: 1px solid rgba(226, 232, 240, 0.9);
      border-radius: 6px;
      padding: 3px 7px;
      display: flex;
      align-items: flex-start;
      gap: 6px;
      box-shadow: 0 1px 2px rgba(0,0,0,0.02);
      page-break-inside: avoid;
      break-inside: avoid;
    }

    .cert-num {
      width: 19px;
      height: 19px;
      min-width: 19px;
      background: linear-gradient(135deg, #EA580C 0%, #C2410C 100%);
      color: #fff;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.68rem;
      font-weight: 800;
      flex-shrink: 0;
      margin-top: 1px;
    }

    .cert-text {
      font-size: 0.74rem;
      color: #334155;
      line-height: 1.25;
      flex: 1;
      margin: 0;
    }

    /* 5. Lamination & Bedroom Wall Recommendation Box */
    .lamination-icon {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      background: #D97706;
      color: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1rem;
      flex-shrink: 0;
    }

    .lamination-text h5 {
      font-size: 0.88rem;
      font-weight: 800;
      color: #92400E;
      margin: 0 0 2px 0;
    }

    .lamination-text p {
      font-size: 0.78rem;
      color: #78350F;
      margin: 0;
      line-height: 1.35;
    }

    .lamination-text p strong {
      color: #B45309;
      display: block;
      margin-bottom: 2px;
    }

    /* 6. Footer Signatures & Official Seal */
    .cert-footer {
      display: flex;
      align-items: center;
      justify-content: space-between;
      border-top: 1.5px dashed rgba(245, 158, 11, 0.45);
      padding-top: 4px;
      margin-top: 2px;
      gap: 10px;
      flex-wrap: nowrap;
      position: relative;
      z-index: 2;
    }

    .cert-sig-block {
      text-align: center;
      flex: 1;
      min-width: 110px;
    }

    .sig-line {
      width: 110px;
      height: 1.5px;
      background: #64748B;
      margin: 0 auto 2px auto;
    }

    .cert-sig-block span {
      display: block;
      font-size: 0.82rem;
      font-weight: 700;
      color: #334155;
      line-height: 1.15;
    }

    .cert-sig-block small {
      font-size: 0.64rem;
      color: #64748B;
      line-height: 1.1;
    }

    .cert-seal-wrap {
      text-align: center;
      flex-shrink: 0;
    }

    .cert-gold-seal {
      width: 44px;
      height: 44px;
      background: radial-gradient(circle at 35% 35%, #FDE68A 0%, #D97706 60%, #92400E 100%);
      border-radius: 50%;
      margin: 0 auto;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 2px 8px rgba(217, 119, 6, 0.3), inset 0 1px 3px rgba(255, 255, 255, 0.6);
      padding: 2px;
    }

    .seal-inner {
      width: 100%;
      height: 100%;
      border: 1px dashed #FFFFFF;
      border-radius: 50%;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      color: #FFFFFF;
      font-size: 0.52rem;
      font-weight: 800;
      text-align: center;
      line-height: 1.05;
    }

    .seal-caption {
      display: block;
      font-size: 0.62rem;
      font-weight: 800;
      color: #92400E;
      margin-top: 2px;
      letter-spacing: 0.3px;
    }

    /* ==========================================================================
       OFFICIAL SANKALP PATRA PRINT STYLES (Single-Page A4 Precision Engine)
       ========================================================================== */
    @page {
      size: A4 portrait;
      margin: 4mm 6mm !important;
    }

    @media print {
      /* 1. Hide all website UI outside the Sankalp Modal, and all modal headers/footers */
      body > *:not(#sankalpModal),
      .top-bar,
      .site-header,
      .daily-page-body,
      .main-wrapper,
      .sidebar,
      .sidebar-backdrop,
      .site-footer,
      .no-print,
      .no-print *,
      .modal-header-banner,
      .modal-footer-bar,
      .modal-footer-sticky,
      .mind-strike-banner,
      .cert-wall-pin,
      .cert-hanging-cord-left,
      .cert-hanging-cord-right,
      .btn-close-modal,
      .btn-cert-modal-floating-close,
      .btn-strike-view,
      .btn-cert-print-now,
      .ticker-sankalp-wrap,
      #profileModal,
      #videoModal,
      #changePasswordModal,
      #recordYogaModal,
      #toastMessage {
        display: none !important;
        visibility: hidden !important;
      }

      /* 2. Reset html & body for clean print layout */
      html, body {
        background: #FFFFFF !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        height: 100% !important;
        min-height: auto !important;
        overflow: visible !important;
      }

      body * {
        visibility: visible;
      }

      .no-print,
      .no-print * {
        display: none !important;
        visibility: hidden !important;
      }

      /* 3. Modal unwrap for print canvas */
      #sankalpModal {
        position: static !important;
        display: block !important;
        background: transparent !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: auto !important;
        overflow: visible !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        z-index: auto !important;
      }

      #sankalpModal .modal-box-large {
        position: static !important;
        display: block !important;
        max-width: 100% !important;
        width: 100% !important;
        max-height: none !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        background: transparent !important;
        overflow: visible !important;
      }

      #sankalpModal .modal-body,
      #sankalpModal .cert-hanging-wrapper {
        padding: 0 !important;
        margin: 0 !important;
        max-width: 100% !important;
        overflow: visible !important;
      }

      /* 4. Official Sankalp Plaque Frame - Single Page Precision */
      #printArea {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        padding: 8px 12px !important;
        border: 3.5px double #D97706 !important;
        border-radius: 10px !important;
        box-shadow: none !important;
        background: #FFFDF9 !important;
        overflow: hidden !important;
        page-break-inside: avoid !important;
        break-inside: avoid !important;
        page-break-before: avoid !important;
        page-break-after: avoid !important;
        box-sizing: border-box !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
      }
        print-color-adjust: exact !important;
      }

      /* 5. Corner brackets removed */
      .cert-corner {
        display: none !important;
      }

      /* 6. Full Background Watermark Logo - Single Centered Logo */
      .cert-watermark-layer {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        pointer-events: none !important;
        z-index: 1 !important;
        overflow: hidden !important;
        padding: 0 !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
      }

      .cert-watermark-item {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        height: 100% !important;
        max-height: none !important;
      }

      .cert-wm-img {
        display: block !important;
        width: 68% !important;
        max-width: 480px !important;
        height: auto !important;
        max-height: 440px !important;
        object-fit: contain !important;
        opacity: 0.22 !important; /* Clearly visible transparent watermark in print */
        filter: none !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
      }

      /* 7. Official Top Logo (Bas Upar logo lagana hai) */
      .cert-logo-container {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        margin-bottom: 0.65rem !important;
      }

      .cert-top-logo {
        height: 74px !important;
        width: auto !important;
        max-width: 250px !important;
        object-fit: contain !important;
        margin: 0 auto 8px auto !important;
        display: block !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
      }

      /* 8. Foregound Content Layering & Card Styling */
      .cert-header,
      .cert-member-box,
      .cert-quote-box,
      .cert-sankalp-grid,
      .cert-lamination-box,
      .cert-auth-footer {
        position: relative !important;
        z-index: 2 !important;
      }

      .cert-sankalp-card,
      .cert-member-box,
      .cert-lamination-box {
        background: rgba(255, 255, 255, 0.80) !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
      }

      .cert-member-box {
        background: linear-gradient(135deg, rgba(255, 251, 235, 0.90) 0%, rgba(254, 243, 199, 0.90) 100%) !important;
      }

      .cert-lamination-box {
        background: linear-gradient(135deg, rgba(254, 243, 199, 0.90) 0%, rgba(255, 251, 235, 0.90) 100%) !important;
      }

      .cert-sankalp-card {
        page-break-inside: avoid;
        break-inside: avoid;
      }
    }




/* ==========================================================================
   HERO SECTION MODERN GURUKUL & CERTIFICATE PREVIEW ENHANCEMENTS
   ========================================================================== */

/* Modern Gurukul Hero Badge */
.hero-gurukul-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 14px !important;
  background: linear-gradient(135deg, #FFF7ED 0%, #FFFBEB 100%) !important;
  border: 2px solid #FDBA74 !important;
  border-radius: 999px !important;
  padding: 6px 20px 6px 8px !important;
  box-shadow: 0 4px 18px rgba(234, 88, 12, 0.15) !important;
  margin-bottom: 1.25rem !important;
  transition: all 0.25s ease !important;
  text-decoration: none !important;
}
.hero-gurukul-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(234, 88, 12, 0.25) !important;
  border-color: #EA580C !important;
}

.gurukul-icon-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(217, 119, 6, 0.35);
  border: 2.5px solid #EA580C;
  flex-shrink: 0;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gurukul-badge-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gurukul-badge-text {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.gurukul-title-main {
  font-size: 1.35rem;
  font-weight: 800;
  color: #9A3412;
  letter-spacing: 0.3px;
  line-height: 1.2;
}

.gurukul-subtitle-pill {
  font-size: 0.82rem;
  font-weight: 700;
  color: #047857;
  background: #D1FAE5;
  border: 1px solid #6EE7B7;
  border-radius: 999px;
  padding: 3px 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 1px 4px rgba(16, 185, 129, 0.15);
}

/* Hero Certificate Preview Plaque Layout */
.hero-cert-preview-card {
  position: relative;
  background: transparent;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}

.hero-cert-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  background: #FFFFFF;
  padding: 8px 14px;
  border-radius: 12px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 3px 10px rgba(0,0,0,0.06);
}

.hero-cert-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.84rem;
  font-weight: 700;
  color: #92400E;
}
.hero-cert-status-badge .live-dot {
  width: 9px;
  height: 9px;
  background: #10B981;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
}

.hero-cert-btn-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-hero-action {
  padding: 6px 13px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  border: none;
}
.btn-hero-action.btn-hero-zoom {
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  color: #FFFFFF;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}
.btn-hero-action.btn-hero-zoom:hover {
  background: #1E40AF;
  transform: translateY(-1px);
}
.btn-hero-action.btn-hero-print {
  background: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 100%);
  color: #C2410C;
  border: 1px solid #FDBA74;
}
.btn-hero-action.btn-hero-print:hover {
  background: #EA580C;
  color: #FFFFFF;
  border-color: #EA580C;
}

/* Plaque in Hero */
.hero-cert-hanging-wrapper {
  margin-top: 25px !important;
  margin-bottom: 15px !important;
}

.hero-cert-frame {
  padding: 20px 22px !important;
  position: relative;
  box-shadow: 0 18px 45px rgba(0,0,0,0.18), 0 3px 12px rgba(217, 119, 6, 0.25) !important;
  border: 6px double #D97706 !important;
}

/* Scrollable Rules Container in Hero Preview */
.hero-rules-scrollbox {
  max-height: 200px;
  overflow-y: auto;
  border: 1.5px solid #FDE68A;
  border-radius: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(2px);
  margin: 10px 0;
  position: relative;
  scrollbar-width: thin;
  scrollbar-color: #D97706 #FEF3C7;
}
.hero-rules-scrollbox::-webkit-scrollbar {
  width: 6px;
}
.hero-rules-scrollbox::-webkit-scrollbar-track {
  background: #FEF3C7;
  border-radius: 4px;
}
.hero-rules-scrollbox::-webkit-scrollbar-thumb {
  background: #D97706;
  border-radius: 4px;
}

.hero-rules-grid {
  grid-template-columns: 1fr !important;
  gap: 7px !important;
}

.hero-rules-overlay-hint {
  text-align: center;
  padding: 8px 12px;
  background: linear-gradient(135deg, #FEF3C7 0%, #FFFBEB 100%);
  border: 1.5px dashed #F59E0B;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #B45309;
  cursor: pointer;
  margin-top: 8px;
  transition: all 0.2s ease;
  display: block;
}
.hero-rules-overlay-hint:hover {
  background: #FDE68A;
  color: #92400E;
  transform: translateY(-1px);
}

.hero-cert-footer-cta {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 14px;
}
.btn-hero-full-zoom {
  width: 100% !important;
  padding: 0.8rem 1.4rem !important;
  font-size: 1rem !important;
  font-weight: 800 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 9px !important;
  background: linear-gradient(135deg, #EA580C 0%, #C2410C 100%) !important;
  color: #FFFFFF !important;
  border: none !important;
  border-radius: 10px !important;
  box-shadow: 0 4px 16px rgba(234, 88, 12, 0.35) !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}
.btn-hero-full-zoom:hover {
  background: linear-gradient(135deg, #C2410C 0%, #9A3412 100%) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(234, 88, 12, 0.45) !important;
}

.btn-hero-full-print {
  width: 100%;
  padding: 0.72rem 1.3rem;
  font-size: 0.95rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #FFFBEB;
  color: #B45309;
  border: 1.5px solid #F59E0B;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-hero-full-print:hover {
  background: #F59E0B;
  color: #FFFFFF;
  transform: translateY(-1px);
}

.cert-placeholder-text {
  font-style: italic;
  color: #94A3B8;
  border-bottom: 1.5px dashed #CBD5E1;
  display: inline-block;
  padding: 0 4px;
}

.cert-guest-callout-strip {
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
  border: 1px solid #93C5FD;
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 0.78rem;
  color: #1E40AF;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
}
.cert-guest-callout-strip .guest-action-link {
  color: #1D4ED8;
  font-weight: 800;
  text-decoration: underline;
  white-space: nowrap;
}

/* Modal Box Responsive */
.modal-header-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #FFF7ED 0%, #FEF3C7 100%);
  padding: 14px 20px;
  border-bottom: 1.5px solid #FDE68A;
  border-radius: 24px 24px 0 0;
}
.modal-footer-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: #F8FAFC;
  border-top: 1px solid #E2E8F0;
  border-radius: 0 0 24px 24px;
  flex-wrap: wrap;
}
.btn-close-modal {
  background: transparent;
  border: none;
  font-size: 1.4rem;
  color: #64748B;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
  line-height: 1;
}
.btn-close-modal:hover {
  background: #E2E8F0;
  color: #0F172A;
}

.btn-strike-view {
  background: #F1F5F9;
  color: #475569;
  border: 1px solid #CBD5E1;
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
}
.btn-strike-view:hover {
  background: #E2E8F0;
}

@media (max-width: 991px) {
  .hero-cert-preview-card {
    max-width: 100%;
    margin-top: 1.5rem;
  }
}



/* ==========================================================================
   TASK 1 FIXES: GAP REDUCTION, BIG GURUKUL EMBLEM, POPUP MODAL ENGINE
   ========================================================================== */

/* 1. Eliminate Huge Left Panel Gap */
.hero {
  padding: 1.5rem 0 3rem !important;
}

.hero-grid {
  align-items: flex-start !important;
  gap: 2.5rem !important;
}

.hero-content {
  padding-top: 0.25rem !important;
}

/* 2. Grand Rishi & Shishya Gurukul Emblem Badge */
.hero-gurukul-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 16px !important;
  background: linear-gradient(135deg, #FFF7ED 0%, #FFFBEB 100%) !important;
  border: 2.5px solid #FDBA74 !important;
  border-radius: 999px !important;
  padding: 8px 24px 8px 10px !important;
  box-shadow: 0 6px 22px rgba(234, 88, 12, 0.18), 0 2px 8px rgba(217, 119, 6, 0.15) !important;
  margin-bottom: 1.35rem !important;
  transition: all 0.3s ease !important;
  text-decoration: none !important;
  max-width: 100% !important;
}
.hero-gurukul-badge:hover {
  transform: translateY(-2px) scale(1.01) !important;
  box-shadow: 0 10px 28px rgba(234, 88, 12, 0.26) !important;
  border-color: #EA580C !important;
}

.gurukul-icon-avatar {
  width: 78px !important;
  height: 78px !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.38), 0 0 0 3px #FFF7ED !important;
  border: 3px solid #EA580C !important;
  flex-shrink: 0 !important;
  background: #FFFFFF !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: transform 0.3s ease !important;
}
.hero-gurukul-badge:hover .gurukul-icon-avatar {
  transform: rotate(3deg) scale(1.05) !important;
}

.gurukul-badge-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

.gurukul-badge-text {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 4px !important;
}

.gurukul-title-main {
  font-size: 1.65rem !important;
  font-weight: 900 !important;
  color: #9A3412 !important;
  letter-spacing: 0.5px !important;
  line-height: 1.15 !important;
  text-shadow: 0 1px 2px rgba(154, 52, 18, 0.15) !important;
}

.gurukul-subtitle-pill {
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  color: #047857 !important;
  background: #D1FAE5 !important;
  border: 1.5px solid #6EE7B7 !important;
  border-radius: 999px !important;
  padding: 3px 12px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.15) !important;
}

/* 3. Modal Overlay & Popup Window Engine */
.modal-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(15, 23, 42, 0.8) !important;
  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;
  z-index: 999999 !important;
  display: none;
  align-items: center !important;
  justify-content: center !important;
  padding: 1.5rem !important;
  overflow-y: auto !important;
  box-sizing: border-box !important;
}

.modal-overlay.active {
  display: flex !important;
  animation: modalBackdropFadeIn 0.25s ease-out forwards !important;
}

@keyframes modalBackdropFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-box-large {
  background: #FFFFFF !important;
  border-radius: 24px !important;
  max-width: 950px !important;
  width: 100% !important;
  max-height: 92vh !important;
  overflow-y: auto !important;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.1) !important;
  border: 1.5px solid #E2E8F0 !important;
  position: relative !important;
  margin: auto !important;
  display: flex !important;
  flex-direction: column !important;
  animation: modalBoxSlideUp 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

@keyframes modalBoxSlideUp {
  from { transform: translateY(30px) scale(0.97); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.modal-header-banner {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%) !important;
  color: #FFFFFF !important;
  padding: 1.15rem 1.5rem !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 20 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  border-bottom: 3px solid #EA580C !important;
  border-radius: 22px 22px 0 0 !important;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2) !important;
}

.modal-header-banner h3 {
  font-size: 1.2rem !important;
  font-weight: 800 !important;
  color: #FFFFFF !important;
  margin: 0 !important;
}

.modal-header-banner p {
  font-size: 0.85rem !important;
  color: #CBD5E1 !important;
  margin: 3px 0 0 0 !important;
}

.modal-header-logo-icon {
  height: 42px !important;
  width: auto !important;
  max-width: 130px !important;
  object-fit: contain !important;
  background: #FFFFFF !important;
  padding: 4px 8px !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25) !important;
}

.btn-close-modal {
  background: rgba(255, 255, 255, 0.15) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  color: #FFFFFF !important;
  font-size: 1.25rem !important;
  width: 38px !important;
  height: 38px !important;
  border-radius: 50% !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s ease !important;
  line-height: 1 !important;
}
.btn-close-modal:hover {
  background: #EF4444 !important;
  border-color: #EF4444 !important;
  transform: rotate(90deg) !important;
}

.modal-body {
  padding: 1.5rem 1.5rem !important;
  overflow-y: visible !important;
  background: #FAFAF9 !important;
}

.modal-footer-bar {
  padding: 1rem 1.5rem !important;
  border-top: 1px solid #E2E8F0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 12px !important;
  background: #F8FAFC !important;
  border-radius: 0 0 22px 22px !important;
  position: sticky !important;
  bottom: 0 !important;
  z-index: 20 !important;
  box-shadow: 0 -3px 12px rgba(0,0,0,0.06) !important;
}

.btn-strike-view {
  background: #F1F5F9 !important;
  color: #475569 !important;
  border: 1.5px solid #CBD5E1 !important;
  padding: 0.65rem 1.25rem !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  font-size: 0.88rem !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}
.btn-strike-view:hover {
  background: #E2E8F0 !important;
  color: #0F172A !important;
}

/* 4. Mobile Responsiveness */
@media (max-width: 991px) {
  .hero-grid {
    grid-template-columns: 1fr !important;
    gap: 1.75rem !important;
  }
  .hero {
    padding: 1.25rem 0 2.5rem !important;
  }
  .hero-cert-preview-card {
    max-width: 100% !important;
    margin-top: 1rem !important;
  }
  .modal-overlay {
    padding: 0.75rem !important;
  }
  .modal-box-large {
    max-height: 95vh !important;
    border-radius: 16px !important;
  }
  .modal-header-banner {
    border-radius: 14px 14px 0 0 !important;
    padding: 10px 14px !important;
  }
  .modal-footer-bar {
    border-radius: 0 0 14px 14px !important;
    padding: 10px 14px !important;
  }
  .hero-gurukul-badge {
    padding: 6px 18px 6px 8px !important;
    gap: 12px !important;
    margin-bottom: 1.1rem !important;
  }
  .gurukul-icon-avatar {
    width: 62px !important;
    height: 62px !important;
    border-width: 2.5px !important;
  }
  .gurukul-title-main {
    font-size: 1.4rem !important;
  }
  .gurukul-subtitle-pill {
    font-size: 0.78rem !important;
    padding: 2px 10px !important;
  }
}

@media (max-width: 480px) {
  .hero-gurukul-badge {
    padding: 5px 14px 5px 6px !important;
    gap: 10px !important;
  }
  .gurukul-icon-avatar {
    width: 52px !important;
    height: 52px !important;
  }
  .gurukul-title-main {
    font-size: 1.25rem !important;
  }
  .gurukul-subtitle-pill {
    font-size: 0.72rem !important;
    padding: 2px 8px !important;
  }
}



/* ==========================================================================
   DAILY ROUTINE & HABITS BANNER (SWAMI VIVEKANANDA)
   ========================================================================== */
.hero-habits-banner-wrap {
  margin-top: 1.75rem !important;
  width: 100% !important;
  max-width: 620px !important;
  cursor: pointer !important;
  border-radius: 20px !important;
  overflow: hidden !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(234, 88, 12, 0.1) !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  background: #FFFFFF !important;
  border: 1.5px solid rgba(254, 215, 170, 0.8) !important;
  position: relative !important;
  display: block !important;
}

.hero-habits-banner-wrap:hover {
  transform: translateY(-4px) scale(1.01) !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.14), 0 4px 16px rgba(234, 88, 12, 0.22) !important;
  border-color: #EA580C !important;
}

.hero-habits-banner-img {
  width: 100% !important;
  height: auto !important;
  display: block !important;
  object-fit: contain !important;
}

@media (max-width: 768px) {
  .hero-habits-banner-wrap {
    margin-top: 1.25rem !important;
    border-radius: 14px !important;
  }
}



/* ==========================================================================
   ANIMATED 30-MINUTE ROUTINE TRACKER CARD (HERO SECTION - TASK FIX)
   ========================================================================== */
.hero-routine-tracker-card {
  margin-top: 1rem !important;
  width: 100% !important;
  max-width: 620px !important;
  background: linear-gradient(135deg, #FFFFFF 0%, #FFFDF9 60%, #FFF7ED 100%) !important;
  border: 1.5px solid #FED7AA !important;
  border-radius: 18px !important;
  padding: 13px 16px !important;
  box-shadow: 0 10px 30px rgba(234, 88, 12, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04) !important;
  position: relative !important;
  overflow: hidden !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
}

.hero-routine-tracker-card:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 16px 36px rgba(234, 88, 12, 0.16), 0 4px 14px rgba(0, 0, 0, 0.08) !important;
  border-color: #EA580C !important;
}

/* Top Header */
.tracker-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 10px !important;
  margin-bottom: 9px !important;
  flex-wrap: wrap !important;
}

.tracker-title-wrap {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.tracker-icon-pulse {
  width: 36px !important;
  height: 36px !important;
  border-radius: 10px !important;
  background: linear-gradient(135deg, #EA580C 0%, #C2410C 100%) !important;
  color: #FFFFFF !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.05rem !important;
  box-shadow: 0 3px 10px rgba(234, 88, 12, 0.35) !important;
  animation: pulseIconGlow 2.5s infinite !important;
  flex-shrink: 0 !important;
}

@keyframes pulseIconGlow {
  0%, 100% { transform: scale(1); box-shadow: 0 3px 10px rgba(234, 88, 12, 0.35); }
  50% { transform: scale(1.06); box-shadow: 0 5px 16px rgba(234, 88, 12, 0.55); }
}

.tracker-heading {
  font-size: 0.96rem !important;
  font-weight: 800 !important;
  color: #9A3412 !important;
  margin: 0 !important;
  line-height: 1.2 !important;
}

.tracker-subheading {
  font-size: 0.73rem !important;
  color: #64748B !important;
  display: block !important;
  margin-top: 2px !important;
}

.tracker-live-chip {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: #ECFDF5 !important;
  border: 1px solid #A7F3D0 !important;
  border-radius: 999px !important;
  padding: 3px 10px !important;
  font-size: 0.74rem !important;
  font-weight: 700 !important;
  color: #065F46 !important;
  box-shadow: 0 1px 4px rgba(16, 185, 129, 0.12) !important;
  white-space: nowrap !important;
}

.live-dot-pulse {
  width: 8px !important;
  height: 8px !important;
  background: #10B981 !important;
  border-radius: 50% !important;
  display: inline-block !important;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7) !important;
  animation: liveDotPulseAnim 1.8s infinite !important;
}

@keyframes liveDotPulseAnim {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* 5 Routine Chips Grid */
.tracker-routine-grid {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr) !important;
  gap: 6px !important;
  margin-bottom: 9px !important;
}

.routine-chip-card {
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 10px !important;
  padding: 6px 3px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  gap: 3px !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

.routine-chip-card:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08) !important;
}

.chip-icon-box {
  width: 25px !important;
  height: 25px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 0.78rem !important;
}

.chip-yoga .chip-icon-box { background: #FFEDD5 !important; color: #EA580C !important; }
.chip-yoga:hover { border-color: #FB923C !important; }

.chip-pranayam .chip-icon-box { background: #FEF3C7 !important; color: #D97706 !important; }
.chip-pranayam:hover { border-color: #FBBF24 !important; }

.chip-dhyan .chip-icon-box { background: #EDE9FE !important; color: #7C3AED !important; }
.chip-dhyan:hover { border-color: #A78BFA !important; }

.chip-book .chip-icon-box { background: #E0F2FE !important; color: #0284C7 !important; }
.chip-book:hover { border-color: #38BDF8 !important; }

.chip-report .chip-icon-box { background: #D1FAE5 !important; color: #059669 !important; }
.chip-report:hover { border-color: #34D399 !important; }

.chip-info {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  line-height: 1.15 !important;
}

.chip-time {
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  color: #0F172A !important;
}

.chip-label {
  font-size: 0.64rem !important;
  font-weight: 600 !important;
  color: #64748B !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 100% !important;
}

/* Animated Segmented Progress Bar */
.tracker-progress-track {
  display: flex !important;
  height: 14px !important;
  border-radius: 999px !important;
  overflow: hidden !important;
  position: relative !important;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.15) !important;
  margin-bottom: 8px !important;
}

.tracker-seg {
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 0.58rem !important;
  font-weight: 800 !important;
  color: #FFFFFF !important;
  text-shadow: 0 1px 1px rgba(0,0,0,0.25) !important;
  position: relative !important;
  transition: opacity 0.2s ease !important;
}

.seg-yoga { background: linear-gradient(90deg, #EA580C 0%, #F97316 100%) !important; }
.seg-pranayam { background: linear-gradient(90deg, #F59E0B 0%, #FBBF24 100%) !important; }
.seg-dhyan { background: linear-gradient(90deg, #7C3AED 0%, #8B5CF6 100%) !important; }
.seg-book { background: linear-gradient(90deg, #0284C7 0%, #38BDF8 100%) !important; }
.seg-report { background: linear-gradient(90deg, #059669 0%, #10B981 100%) !important; }

.tracker-shimmer {
  position: absolute !important;
  top: 0 !important;
  left: -100% !important;
  width: 100% !important;
  height: 100% !important;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.45) 50%, transparent 100%) !important;
  animation: shimmerAnim 3s infinite linear !important;
  pointer-events: none !important;
}

@keyframes shimmerAnim {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Footer Row */
.tracker-footer-row {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  font-size: 0.72rem !important;
  color: #475569 !important;
  padding-top: 5px !important;
  border-top: 1px dashed #FED7AA !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
}

.tracker-tag-left, .tracker-tag-right {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
}

@media (max-width: 600px) {
  .tracker-routine-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 5px !important;
  }
  .tracker-footer-row {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
}



/* Tighten hero cert plaque slightly for perfect symmetrical balance */
.hero-cert-hanging-wrapper {
  margin-top: 15px !important;
  margin-bottom: 10px !important;
}

.hero-cert-frame {
  padding: 15px 18px !important;
}

.hero-rules-scrollbox {
  max-height: 160px !important;
}

/* Enriched Hero Routine Tracker Card */
.hero-routine-tracker-card {
  margin-top: 1.15rem !important;
  padding: 15px 18px !important;
  border-radius: 20px !important;
  box-shadow: 0 12px 32px rgba(234, 88, 12, 0.1), 0 2px 8px rgba(0, 0, 0, 0.04) !important;
  border: 1.5px solid #FDBA74 !important;
}

.tracker-community-strip {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-top: 8px !important;
  padding-top: 7px !important;
  border-top: 1px dashed #FED7AA !important;
  font-size: 0.74rem !important;
  color: #7C2D12 !important;
  background: rgba(254, 243, 199, 0.5) !important;
  padding: 6px 10px !important;
  border-radius: 8px !important;
}

.tracker-community-strip a {
  color: #C2410C !important;
  font-weight: 800 !important;
  text-decoration: underline !important;
}



/* ==========================================================================
   GRAND MODERN GURUKUL ICON (98px) & PERFECT VERTICAL SYMMETRY
   ========================================================================== */

/* Grand Gurukul Emblem Badge */
.hero-gurukul-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 18px !important;
  background: linear-gradient(135deg, #FFF7ED 0%, #FFFBEB 100%) !important;
  border: 3px solid #FDBA74 !important;
  border-radius: 999px !important;
  padding: 8px 30px 8px 10px !important;
  box-shadow: 0 8px 28px rgba(234, 88, 12, 0.22), 0 2px 10px rgba(217, 119, 6, 0.18) !important;
  margin-bottom: 1.6rem !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  text-decoration: none !important;
  max-width: 100% !important;
}

.hero-gurukul-badge:hover {
  transform: translateY(-3px) scale(1.015) !important;
  box-shadow: 0 12px 34px rgba(234, 88, 12, 0.3) !important;
  border-color: #EA580C !important;
}

.gurukul-icon-avatar {
  width: 98px !important;
  height: 98px !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.45), 0 0 0 4px #FFF7ED !important;
  border: 3.5px solid #EA580C !important;
  flex-shrink: 0 !important;
  background: #FFFFFF !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: transform 0.3s ease !important;
}

.hero-gurukul-badge:hover .gurukul-icon-avatar {
  transform: rotate(4deg) scale(1.05) !important;
}

.gurukul-badge-text {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 6px !important;
}

.gurukul-title-main {
  font-size: 1.85rem !important;
  font-weight: 900 !important;
  color: #9A3412 !important;
  letter-spacing: 0.6px !important;
  line-height: 1.15 !important;
  text-shadow: 0 1px 2px rgba(154, 52, 18, 0.18) !important;
}

.gurukul-subtitle-pill {
  font-size: 0.92rem !important;
  font-weight: 700 !important;
  color: #047857 !important;
  background: #D1FAE5 !important;
  border: 1.5px solid #6EE7B7 !important;
  border-radius: 999px !important;
  padding: 4px 15px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.18) !important;
}

/* Perfect Baseline Symmetry between Left & Right */
@media (min-width: 992px) {
  .hero-content {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
  }
  
  .hero-habits-banner-wrap {
    margin-top: 1.6rem !important;
  }
  
  .hero-routine-tracker-card {
    margin-top: 1.25rem !important;
  }
  
  .hero-cert-preview-card {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
  }
}

/* Mobile Responsiveness for 98px Avatar */
@media (max-width: 991px) {
  .hero-gurukul-badge {
    padding: 7px 20px 7px 8px !important;
    gap: 14px !important;
    margin-bottom: 1.25rem !important;
  }
  .gurukul-icon-avatar {
    width: 72px !important;
    height: 72px !important;
    border-width: 3px !important;
  }
  .gurukul-title-main {
    font-size: 1.45rem !important;
  }
  .gurukul-subtitle-pill {
    font-size: 0.8rem !important;
    padding: 3px 10px !important;
  }
}

@media (max-width: 480px) {
  .hero-gurukul-badge {
    padding: 6px 14px 6px 6px !important;
    gap: 10px !important;
  }
  .gurukul-icon-avatar {
    width: 60px !important;
    height: 60px !important;
    border-width: 2.5px !important;
  }
  .gurukul-title-main {
    font-size: 1.28rem !important;
  }
  .gurukul-subtitle-pill {
    font-size: 0.74rem !important;
    padding: 2px 8px !important;
  }
}



/* ==========================================================================
   PERFECT VERTICAL BASELINE SYMMETRY (DESKTOP)
   ========================================================================== */
@media (min-width: 992px) {
  .hero-grid {
    align-items: stretch !important;
    overflow: visible !important;
  }

  .hero-content {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    height: 100% !important;
    box-sizing: border-box !important;
    position: relative !important;
    z-index: 50 !important;
  }

  .hero-visual {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    height: 100% !important;
    box-sizing: border-box !important;
  }

  .hero-cert-preview-card {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    height: 100% !important;
  }
}


/* ==========================================================================
   CLEAN OFFICIAL CERTIFICATE HEADER STYLES (Single Page Fit)
   ========================================================================== */
.cert-clean-header {
  margin-bottom: 0.35rem;
  position: relative;
  z-index: 2;
}

.cert-top-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.3rem;
  padding-bottom: 0.2rem;
  border-bottom: 1px dashed rgba(245, 158, 11, 0.35);
}

.cert-reg-badge {
  font-size: 0.8rem;
  color: #334155;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
}

.cert-reg-val {
  color: #C2410C;
  font-weight: 800;
  margin-left: 5px;
  font-size: 0.88rem;
  letter-spacing: 0.3px;
}

.cert-flag-pill {
  background: #FFF7ED;
  border: 1px solid #FFEDD5;
  color: #9A3412;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.cert-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 0.3rem;
}

.cert-logos-brand-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cert-brand-logos {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cert-logo-vb {
  height: 42px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.08));
}

.cert-logo-gurukul {
  height: 46px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.08));
}

.cert-brand-text-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cert-brand-name {
  font-size: 1.75rem;
  font-weight: 900;
  color: #991B1B;
  margin: 0;
  letter-spacing: -0.5px;
  line-height: 1;
}

.cert-free-pill {
  background: #ECFDF5;
  color: #059669;
  border: 1px solid #A7F3D0;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.cert-dates-stacked {
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: flex-end;
}

.cert-date-chip {
  background: #FEF3C7;
  border: 1px solid #FDE68A;
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 0.72rem;
  color: #78350F;
  white-space: nowrap;
}

.cert-date-chip strong {
  color: #92400E;
  font-weight: 800;
  margin-left: 3px;
}

.cert-divider-ribbon {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin: 0.25rem auto 0.2rem auto;
}

.ribbon-bar {
  height: 2.5px;
  width: 30px;
  border-radius: 2px;
}
.ribbon-bar.saffron { background: #EA580C; }
.ribbon-bar.white { background: #CBD5E1; }
.ribbon-bar.green { background: #10B981; }

.cert-main-title {
  font-size: 1.25rem;
  font-weight: 900;
  color: #0F172A;
  text-align: center;
  margin: 0.15rem 0 0.35rem 0;
  letter-spacing: -0.3px;
}

/* Compact 3-Column Member Box */
.cert-member-box {
  background: linear-gradient(135deg, rgba(255, 251, 235, 0.95) 0%, rgba(254, 243, 199, 0.85) 100%);
  border: 1px solid #FDE68A;
  border-radius: 8px;
  padding: 5px 14px;
  margin-bottom: 0.35rem;
  box-shadow: 0 1px 4px rgba(245, 158, 11, 0.05);
  position: relative;
  z-index: 2;
}

.cert-member-3cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px 14px;
}

.cert-member-3cols .member-field {
  display: flex;
  flex-direction: column;
}

.cert-member-3cols .m-lbl {
  font-size: 0.7rem;
  color: #78350F;
  font-weight: 700;
  margin-bottom: 1px;
}

.cert-member-3cols .m-val {
  font-weight: 700;
  color: #0F172A;
  font-size: 0.84rem;
}

.cert-member-3cols .highlight-name {
  color: #EA580C;
  font-size: 1.02rem;
  font-weight: 800;
}

@media screen and (max-width: 640px) {
  .cert-member-3cols { grid-template-columns: 1fr; }
  .cert-dates-stacked { align-items: flex-start; }
  .cert-brand-row { flex-direction: column; align-items: flex-start; }
}

.cert-motto-quote {
  text-align: center;
  font-size: 0.76rem;
  color: #78350F;
  font-style: italic;
  font-weight: 600;
  background: rgba(255, 251, 235, 0.92);
  padding: 4px 12px;
  border-radius: 6px;
  margin-bottom: 0.35rem;
  border-left: 3px solid #D97706;
  line-height: 1.35;
  position: relative;
  z-index: 2;
}
