body {
      font-family: 'Hind Siliguri', 'Inter', sans-serif;
      background-color: #f3f8f5;
      background-image:
        radial-gradient(rgba(10, 99, 66, 0.085) 1.25px, transparent 1.25px),
        radial-gradient(rgba(217, 119, 6, 0.055) 1.25px, #f3f8f5 1.25px),
        url("data:image/svg+xml,%3Csvg width='64' height='64' viewBox='0 0 64 64' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%230a6342' stroke-width='0.6' stroke-opacity='0.055'%3E%3Cpath d='M32 0L64 32L32 64L0 32Z'/%3E%3Ccircle cx='32' cy='32' r='14'/%3E%3Cpath d='M32 8L40 24L56 32L40 40L32 56L24 40L8 32L24 24Z'/%3E%3C/g%3E%3C/svg%3E");
      background-size: 28px 28px, 28px 28px, 64px 64px;
      background-position: 0 0, 14px 14px, 0 0;
      background-attachment: fixed;
      color: #0f172a;
      overflow-x: hidden;
    }
    .font-arabic {
      font-family: 'Amiri', serif;
    }
    .auth-hidden-state {
      display: none !important;
    }
    .tabular-nums {
      font-variant-numeric: tabular-nums;
    }
    ::-webkit-scrollbar {
      width: 6px;
      height: 6px;
    }
    ::-webkit-scrollbar-track {
      background: #f1f5f9;
    }
    ::-webkit-scrollbar-thumb {
      background: #cbd5e1;
      border-radius: 9999px;
    }
    ::-webkit-scrollbar-thumb:hover {
      background: #94a3b8;
    }
    .hikmah-topbar {
      background: linear-gradient(90deg, #063d29 0%, #0a6342 55%, #063d29 100%);
    }
    .hikmah-hero-overlay {
      background: linear-gradient(105deg, rgba(3, 38, 25, 0.96) 0%, rgba(6, 61, 41, 0.90) 58%, rgba(8, 79, 53, 0.72) 100%);
    }
    .id-card-gradient {
      background: linear-gradient(135deg, #063d29 0%, #0a6342 60%, #0d7a52 100%);
    }
    .iqra-pvc-pattern {
      background-color: #ffffff;
      background-image: url("data:image/svg+xml,%3Csvg width='56' height='56' viewBox='0 0 56 56' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%2394a3b8' stroke-width='0.55' stroke-opacity='0.18'%3E%3Cpath d='M28 0L56 28L28 56L0 28Z'/%3E%3Ccircle cx='28' cy='28' r='13'/%3E%3Cpath d='M28 6L35 21L50 28L35 35L28 50L21 35L6 28L21 21Z'/%3E%3C/g%3E%3C/svg%3E");
      background-size: 44px 44px;
    }
    .id-card-photo-zoom {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center 22%;
      transform: scale(1.14);
      transform-origin: center center;
    }
    @media print {
      @page {
        size: A4 portrait;
        margin: 0.8in;
        background: #ffffff !important;
      }
      html, body {
        width: 100% !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #ffffff !important;
        background-color: #ffffff !important;
        background-image: none !important;
        color: #0f172a !important;
        overflow: visible !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
      }
      body:not(.printing-notice-modal) > *:not(#printableModal) {
        display: none !important;
      }
      body.printing-notice-modal > *:not(#noticeDetailModal) {
        display: none !important;
      }
      #printableModal,
      body.printing-notice-modal #noticeDetailModal {
        position: static !important;
        inset: auto !important;
        display: block !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        background: #ffffff !important;
        background-color: #ffffff !important;
        backdrop-filter: none !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: visible !important;
      }
      #printableModal > div,
      body.printing-notice-modal #noticeDetailModal > div {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        box-shadow: none !important;
        border: none !important;
        border-radius: 0 !important;
        background: #ffffff !important;
        background-color: #ffffff !important;
        margin: 0 !important;
        padding: 0 !important;
      }
      #printableModal > div > div:first-child,
      body.printing-notice-modal #noticeDetailModal > div > div:first-child,
      body.printing-notice-modal #noticeDetailModal > div > div:last-child {
        display: none !important;
      }
      #pdfModalContent,
      #noticeModalPrintableArea {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: none !important;
        background: #ffffff !important;
        background-color: #ffffff !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: visible !important;
        box-sizing: border-box !important;
      }
      #pdfModalContent *,
      #noticeModalPrintableArea * {
        max-width: 100% !important;
        box-sizing: border-box !important;
      }
      #pdfModalContent .overflow-x-auto,
      #pdfModalContent .overflow-y-auto,
      #noticeModalPrintableArea .overflow-x-auto,
      #noticeModalPrintableArea .overflow-y-auto {
        overflow: visible !important;
        max-height: none !important;
      }
      #pdfModalContent table,
      #noticeModalPrintableArea table {
        width: 100% !important;
        min-width: 0 !important;
        border-collapse: collapse !important;
        page-break-inside: auto !important;
        break-inside: auto !important;
      }
      #pdfModalContent thead,
      #noticeModalPrintableArea thead {
        display: table-header-group !important;
      }
      #pdfModalContent tfoot,
      #noticeModalPrintableArea tfoot {
        display: table-footer-group !important;
      }
      #pdfModalContent tr,
      #noticeModalPrintableArea tr,
      .pdf-avoid-break,
      .iqra-pvc-card {
        break-inside: avoid !important;
        page-break-inside: avoid !important;
      }
      .pdf-page-break-before,
      .html2pdf__page-break {
        page-break-before: always !important;
        break-before: page !important;
      }
      .pdf-page-break-after {
        page-break-after: always !important;
        break-after: page !important;
      }
      #pdfModalContent th,
      #pdfModalContent td,
      #noticeModalPrintableArea th,
      #noticeModalPrintableArea td {
        white-space: normal !important;
        word-break: break-word !important;
      }
    }
    /* System Admin Direct Click-to-Edit Styling */
    body.sysadmin-direct-edit-active [contenteditable="true"]:hover {
      outline: 2px dashed #10b981;
      outline-offset: 2px;
      cursor: text;
      border-radius: 4px;
    }
    body.sysadmin-direct-edit-active [contenteditable="true"]:focus {
      outline: 2px solid #f59e0b;
      outline-offset: 3px;
      background-color: rgba(254, 243, 199, 0.35);
      border-radius: 4px;
    }
    @keyframes live-radar {
      0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.75); }
      70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
      100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
    }
    .live-admission-dot {
      animation: live-radar 1.8s infinite;
    }
    @keyframes azic-star-spin {
      from { transform: rotate(0deg); }
      to { transform: rotate(360deg); }
    }
    .azic-title-star {
      animation: azic-star-spin 4s linear infinite;
    }
    @keyframes iqra-notice-marquee {
      0% { transform: translateX(0%); }
      100% { transform: translateX(-50%); }
    }
    .iqra-marquee-track {
      display: inline-flex;
      align-items: center;
      white-space: nowrap;
      width: max-content;
      animation: iqra-notice-marquee 42s linear infinite;
    }
    .iqra-marquee-track:hover {
      animation-play-state: paused;
    }

    html {
      font-size: 15.25px;
      scroll-behavior: smooth;
    }
    body {
      line-height: 1.65;
      letter-spacing: normal;
    }
    p, li {
      line-height: 1.68;
    }
    h1, h2, h3, h4 {
      line-height: 1.32;
      letter-spacing: normal;
    }
    /* Bengali & Arabic shaping protection for html2canvas / html2pdf capture */
    .iqra-pdf-capture-root,
    .iqra-pdf-capture-root *,
    .iqra-pdf-capture-root *::before,
    .iqra-pdf-capture-root *::after {
      font-family: "Hind Siliguri", "Noto Sans Bengali", "Inter", sans-serif !important;
      letter-spacing: 0px !important;
      word-spacing: 0px !important;
      font-kerning: normal !important;
      font-variant-ligatures: normal !important;
      font-variant-numeric: normal !important;
      text-rendering: auto !important;
      word-break: normal !important;
      overflow-wrap: normal !important;
      hyphens: none !important;
    }
    .iqra-pdf-capture-root .font-arabic,
    .iqra-pdf-capture-root [lang="ar"] {
      font-family: "Amiri", "Hind Siliguri", serif !important;
    }
    .iqra-pdf-capture-root .font-extrabold,
    .iqra-pdf-capture-root .font-black {
      font-weight: 700 !important;
    }
    .pdf-page-break-before,
    .html2pdf__page-break {
      page-break-before: always !important;
      break-before: page !important;
    }
    .pdf-page-break-after {
      page-break-after: always !important;
      break-after: page !important;
    }
    /* Bulk Class-wise A4 Front ID Card Sheet (3x3 = 9 cards per A4 page, 2.125in x 3.375in, horizontally & vertically distributed) */
    .bulk-id-sheet-scroll {
      width: 100%;
      overflow-x: auto;
      padding-bottom: 8px;
    }
    .bulk-id-a4-page {
      width: 794px;
      min-width: 794px;
      box-sizing: border-box;
      background: #ffffff;
      margin-left: auto;
      margin-right: auto;
    }
    .bulk-id-a4-page.bulk-id-a4-export {
      width: 794px;
      height: 1122px;
      padding: 46px 58px;
      margin: 0;
      overflow: hidden;
      background: #ffffff;
    }
    .bulk-id-a4-page.bulk-id-a4-preview {
      padding: 20px 24px 28px 24px;
    }
    .bulk-id-a4-page.has-next-page {
      page-break-after: always;
      break-after: page;
    }
    .bulk-id-sheet-canvas {
      width: 794px;
      height: 1122px;
      padding: 46px 58px;
      box-sizing: border-box;
      background: #ffffff;
      margin: 0 auto;
      border: 1px solid #e2e8f0;
      box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
    }
    .bulk-id-a4-export .bulk-id-sheet-canvas {
      width: 100%;
      height: 100%;
      padding: 0;
      border: none;
      box-shadow: none;
    }
    .bulk-id-grid-3x3 {
      display: grid;
      grid-template-columns: repeat(3, 204px);
      grid-template-rows: repeat(3, 324px);
      justify-content: space-between;
      align-content: space-between;
      width: 100%;
      height: 100%;
      box-sizing: border-box;
    }
    .iqra-bulk-id-card {
      width: 204px;
      height: 324px;
      position: relative;
      overflow: hidden;
      background-color: #ffffff !important;
      color: #14375a !important;
      border: none;
      border-radius: 6px;
      box-sizing: border-box;
      break-inside: avoid;
      page-break-inside: avoid;
    }
    @media print {
      body.printing-bulk-id-sheet @page {
        size: A4 portrait;
        margin: 0;
      }
      body.printing-bulk-id-sheet #pdfModalContent {
        padding: 0 !important;
        margin: 0 !important;
      }
      body.printing-bulk-id-sheet .bulk-id-a4-page,
      body.printing-bulk-id-sheet .bulk-id-a4-page.bulk-id-a4-export {
        width: 8.27in !important;
        min-width: 8.27in !important;
        height: 11.69in !important;
        padding: 0.48in 0.60in !important;
        margin: 0 !important;
        border: none !important;
        box-shadow: none !important;
        overflow: hidden !important;
      }
      body.printing-bulk-id-sheet .bulk-id-grid-3x3 {
        grid-template-columns: repeat(3, 2.125in) !important;
        grid-template-rows: repeat(3, 3.375in) !important;
        justify-content: space-between !important;
        align-content: space-between !important;
        width: 100% !important;
        height: 100% !important;
      }
      body.printing-bulk-id-sheet .iqra-bulk-id-card {
        width: 2.125in !important;
        height: 3.375in !important;
      }
    }
    html.dark .iqra-bulk-id-card,
    html.dark .iqra-bulk-id-card * {
      color: #14375a !important;
    }
    html.dark .iqra-bulk-id-card {
      background-color: #ffffff !important;
      border: none !important;
    }

    /* =========================================================================
       COMPLETE SITE-WIDE DEEP DARK & LIGHT MODE THEME ENGINE
       (True Pitch-Dark Surfaces, Zero White Gradient Bleed, Crisp Contrast,
        while Preserving Physical PVC ID Card & Printable Sheets in Print Colors)
       ========================================================================= */
    .iqra-outline-icon {
      stroke: currentColor;
      fill: none;
    }
    html.dark {
      color-scheme: dark;
      background-color: #030907 !important;
    }
    html.dark body {
      background-color: #030907 !important;
      background-image:
        radial-gradient(rgba(16, 185, 129, 0.08) 1px, transparent 1px),
        radial-gradient(rgba(16, 185, 129, 0.04) 1px, #030907 1px) !important;
      background-size: 32px 32px !important;
      color: #f1f5f9 !important;
    }
    html.dark ::-webkit-scrollbar-track {
      background: #050d0a;
    }
    html.dark ::-webkit-scrollbar-thumb {
      background: #16382b;
    }
    html.dark .hikmah-topbar {
      background: #020604 !important;
      border-color: rgba(16, 185, 129, 0.18) !important;
    }
    html.dark header.sticky {
      background-color: rgba(5, 13, 10, 0.97) !important;
      border-color: rgba(16, 185, 129, 0.2) !important;
      backdrop-filter: blur(14px);
    }
    html.dark :not(#idCardFrontWrapper):not(#idCardFrontWrapper *):not(#idCardBackWrapper):not(#idCardBackWrapper *):not(#pdfModalContent):not(#pdfModalContent *) {
      transition: background-color 0.18s ease, border-color 0.18s ease, color 0.15s ease;
    }

    /* CRITICAL FIX: Neutralize Light-Mode White/Mint Gradients on Cards in Dark Mode
       (Fixes 'কেন অভিভাবকদের প্রথম পছন্দ ইক্বরা ইসলামী একাডেমী?' & 'বিশেষ আয়োজন' cards!) */
    html.dark .bg-gradient-to-b:not(#idCardFrontWrapper *):not(#idCardBackWrapper *):not(#pdfModalContent *),
    html.dark .from-\[\#f2fbf7\]\/80:not(#idCardFrontWrapper *):not(#idCardBackWrapper *),
    html.dark .from-\[\#f2fbf7\]:not(#idCardFrontWrapper *):not(#idCardBackWrapper *),
    html.dark .to-white:not(#idCardFrontWrapper *):not(#idCardBackWrapper *),
    html.dark .via-white:not(#idCardFrontWrapper *):not(#idCardBackWrapper *) {
      background-image: none !important;
      background-color: #0b1914 !important;
      border-color: rgba(16, 185, 129, 0.24) !important;
    }
    html.dark .bg-gradient-to-b:hover:not(#idCardFrontWrapper *):not(#idCardBackWrapper *) {
      background-color: #0f221b !important;
      border-color: #10b981 !important;
    }

    /* Deep Dark Banner Gradients */
    html.dark .hikmah-hero-overlay {
      background: linear-gradient(125deg, #04110c 0%, #071f16 58%, #0a291d 100%) !important;
      border-color: rgba(16, 185, 129, 0.25) !important;
    }
    html.dark .bg-gradient-to-r.from-\[\#063d29\],
    html.dark .bg-gradient-to-br.from-\[\#063d29\] {
      background-image: linear-gradient(135deg, #05130e 0%, #092218 55%, #05130e 100%) !important;
      border-color: rgba(16, 185, 129, 0.25) !important;
    }

    /* Primary Section & Card Surfaces in Deep Dark Mode */
    html.dark .bg-white:not(#idCardFrontWrapper):not(#idCardFrontWrapper *):not(#idCardBackWrapper):not(#idCardBackWrapper *):not(#pdfModalContent):not(#pdfModalContent *),
    html.dark .bg-white\/95:not(#idCardFrontWrapper *):not(#idCardBackWrapper *),
    html.dark .bg-white\/90:not(#idCardFrontWrapper *):not(#idCardBackWrapper *),
    html.dark .bg-white\/85:not(#idCardFrontWrapper *):not(#idCardBackWrapper *) {
      background-color: #07110d !important;
      color: #f1f5f9 !important;
    }
    html.dark #heroLiveAdmissionBadge {
      background-color: #0b1d16 !important;
      border-color: #10b981 !important;
      color: #f8fafc !important;
    }
    html.dark .bg-slate-50:not(#idCardFrontWrapper *):not(#idCardBackWrapper *):not(#pdfModalContent *),
    html.dark .bg-slate-50\/50:not(#idCardFrontWrapper *):not(#idCardBackWrapper *),
    html.dark .bg-slate-50\/60:not(#idCardFrontWrapper *):not(#idCardBackWrapper *),
    html.dark .bg-slate-50\/70:not(#idCardFrontWrapper *):not(#idCardBackWrapper *),
    html.dark .bg-slate-50\/80:not(#idCardFrontWrapper *):not(#idCardBackWrapper *),
    html.dark .bg-slate-100:not(#idCardFrontWrapper *):not(#idCardBackWrapper *):not(#pdfModalContent *),
    html.dark .bg-slate-100\/90:not(#idCardFrontWrapper *):not(#idCardBackWrapper *),
    html.dark .bg-slate-200:not(#idCardFrontWrapper *):not(#idCardBackWrapper *) {
      background-color: #0c1c16 !important;
      color: #e2e8f0 !important;
    }

    /* Icon Boxes & Accent Surfaces in Dark Mode (Single-Color Emerald Harmony) */
    html.dark .bg-\[\#f2fbf7\]:not(#idCardFrontWrapper *):not(#idCardBackWrapper *):not(#pdfModalContent *),
    html.dark .bg-\[\#f2fbf7\]\/60:not(#idCardFrontWrapper *):not(#idCardBackWrapper *),
    html.dark .bg-\[\#f2fbf7\]\/70:not(#idCardFrontWrapper *):not(#idCardBackWrapper *),
    html.dark .bg-\[\#f4f9f6\]:not(#idCardFrontWrapper *):not(#idCardBackWrapper *),
    html.dark .bg-\[\#dcfce7\]:not(#idCardFrontWrapper *):not(#idCardBackWrapper *),
    html.dark .bg-emerald-50:not(#idCardFrontWrapper *):not(#idCardBackWrapper *),
    html.dark .bg-emerald-50\/30:not(#idCardFrontWrapper *):not(#idCardBackWrapper *),
    html.dark .bg-emerald-50\/50:not(#idCardFrontWrapper *):not(#idCardBackWrapper *),
    html.dark .bg-emerald-50\/70:not(#idCardFrontWrapper *):not(#idCardBackWrapper *),
    html.dark .bg-emerald-50\/80:not(#idCardFrontWrapper *):not(#idCardBackWrapper *) {
      background-color: #102920 !important;
      border-color: rgba(52, 211, 153, 0.3) !important;
      color: #34d399 !important;
    }
    html.dark .bg-emerald-100:not(#idCardFrontWrapper *):not(#idCardBackWrapper *),
    html.dark .bg-emerald-100\/80:not(#idCardFrontWrapper *):not(#idCardBackWrapper *) {
      background-color: rgba(16, 185, 129, 0.2) !important;
      color: #6ee7b7 !important;
    }
    html.dark .bg-amber-50:not(#idCardFrontWrapper *):not(#idCardBackWrapper *),
    html.dark .bg-amber-50\/40:not(#idCardFrontWrapper *):not(#idCardBackWrapper *),
    html.dark .bg-amber-50\/60:not(#idCardFrontWrapper *):not(#idCardBackWrapper *),
    html.dark .bg-amber-50\/70:not(#idCardFrontWrapper *):not(#idCardBackWrapper *),
    html.dark .bg-amber-50\/80:not(#idCardFrontWrapper *):not(#idCardBackWrapper *),
    html.dark .bg-amber-100:not(#idCardFrontWrapper *):not(#idCardBackWrapper *),
    html.dark .bg-amber-200\/80:not(#idCardFrontWrapper *):not(#idCardBackWrapper *) {
      background-color: #11221b !important;
      border-color: rgba(245, 158, 11, 0.32) !important;
    }
    html.dark .bg-blue-50:not(#idCardFrontWrapper *):not(#idCardBackWrapper *),
    html.dark .bg-blue-50\/70:not(#idCardFrontWrapper *):not(#idCardBackWrapper *),
    html.dark .bg-blue-100:not(#idCardFrontWrapper *):not(#idCardBackWrapper *),
    html.dark .bg-purple-50:not(#idCardFrontWrapper *):not(#idCardBackWrapper *),
    html.dark .bg-purple-50\/70:not(#idCardFrontWrapper *):not(#idCardBackWrapper *),
    html.dark .bg-purple-100:not(#idCardFrontWrapper *):not(#idCardBackWrapper *) {
      background-color: #10261e !important;
      border-color: rgba(52, 211, 153, 0.28) !important;
    }
    html.dark .bg-rose-50:not(#idCardFrontWrapper *):not(#idCardBackWrapper *),
    html.dark .bg-rose-100:not(#idCardFrontWrapper *):not(#idCardBackWrapper *),
    html.dark .bg-red-50:not(#idCardFrontWrapper *):not(#idCardBackWrapper *) {
      background-color: rgba(244, 63, 94, 0.15) !important;
    }

    /* Crisp High-Contrast Typography in Dark Mode */
    html.dark .text-slate-950:not(.bg-amber-400):not(.bg-amber-500):not(.bg-emerald-400):not(.bg-emerald-500):not(#idCardFrontWrapper *):not(#idCardBackWrapper *):not(#pdfModalContent *),
    html.dark .text-slate-900:not(#idCardFrontWrapper *):not(#idCardBackWrapper *):not(#pdfModalContent *),
    html.dark .text-slate-800:not(#idCardFrontWrapper *):not(#idCardBackWrapper *):not(#pdfModalContent *),
    html.dark .text-emerald-950:not(#idCardFrontWrapper *):not(#idCardBackWrapper *),
    html.dark .text-blue-950:not(#idCardFrontWrapper *):not(#idCardBackWrapper *),
    html.dark .text-amber-950:not(#idCardFrontWrapper *):not(#idCardBackWrapper *),
    html.dark .text-purple-950:not(#idCardFrontWrapper *):not(#idCardBackWrapper *) {
      color: #f8fafc !important;
    }
    html.dark .text-slate-700:not(#idCardFrontWrapper *):not(#idCardBackWrapper *):not(#pdfModalContent *),
    html.dark .text-slate-600:not(#idCardFrontWrapper *):not(#idCardBackWrapper *):not(#pdfModalContent *) {
      color: #cbd5e1 !important;
    }
    html.dark .text-slate-500:not(#idCardFrontWrapper *):not(#idCardBackWrapper *):not(#pdfModalContent *),
    html.dark .text-slate-400:not(#idCardFrontWrapper *):not(#idCardBackWrapper *):not(#pdfModalContent *) {
      color: #94a3b8 !important;
    }
    html.dark .text-\[\#0a6342\]:not(#idCardFrontWrapper *):not(#idCardBackWrapper *):not(#pdfModalContent *),
    html.dark .text-\[\#063d29\]:not(#idCardFrontWrapper *):not(#idCardBackWrapper *):not(#pdfModalContent *),
    html.dark .text-emerald-900:not(#idCardFrontWrapper *):not(#idCardBackWrapper *),
    html.dark .text-emerald-800:not(#idCardFrontWrapper *):not(#idCardBackWrapper *),
    html.dark .text-emerald-700:not(#idCardFrontWrapper *):not(#idCardBackWrapper *),
    html.dark .text-emerald-600:not(#idCardFrontWrapper *):not(#idCardBackWrapper *),
    html.dark .text-blue-800:not(#idCardFrontWrapper *):not(#idCardBackWrapper *),
    html.dark .text-blue-700:not(#idCardFrontWrapper *):not(#idCardBackWrapper *),
    html.dark .text-purple-800:not(#idCardFrontWrapper *):not(#idCardBackWrapper *),
    html.dark .text-purple-700:not(#idCardFrontWrapper *):not(#idCardBackWrapper *) {
      color: #34d399 !important;
    }
    html.dark .text-\[\#14375a\]:not(#idCardFrontWrapper *):not(#idCardBackWrapper *):not(#pdfModalContent *) {
      color: #6ee7b7 !important;
    }
    html.dark .text-amber-900:not(#idCardFrontWrapper *):not(#idCardBackWrapper *),
    html.dark .text-amber-800:not(#idCardFrontWrapper *):not(#idCardBackWrapper *),
    html.dark .text-amber-700:not(#idCardFrontWrapper *):not(#idCardBackWrapper *) {
      color: #fbbf24 !important;
    }
    html.dark .text-rose-900:not(#idCardFrontWrapper *):not(#idCardBackWrapper *),
    html.dark .text-rose-800:not(#idCardFrontWrapper *):not(#idCardBackWrapper *),
    html.dark .text-rose-700:not(#idCardFrontWrapper *):not(#idCardBackWrapper *),
    html.dark .text-red-700:not(#idCardFrontWrapper *):not(#idCardBackWrapper *),
    html.dark .text-red-600:not(#idCardFrontWrapper *):not(#idCardBackWrapper *) {
      color: #fda4af !important;
    }

    /* Borders & Dividers in Deep Dark Mode */
    html.dark .border-slate-100:not(#idCardFrontWrapper *):not(#idCardBackWrapper *),
    html.dark .border-slate-200:not(#idCardFrontWrapper *):not(#idCardBackWrapper *):not(#pdfModalContent *),
    html.dark .border-slate-200\/70:not(#idCardFrontWrapper *):not(#idCardBackWrapper *),
    html.dark .border-slate-200\/80:not(#idCardFrontWrapper *):not(#idCardBackWrapper *),
    html.dark .border-slate-200\/90:not(#idCardFrontWrapper *):not(#idCardBackWrapper *),
    html.dark .border-slate-300:not(#idCardFrontWrapper):not(#idCardFrontWrapper *):not(#idCardBackWrapper):not(#idCardBackWrapper *) {
      border-color: rgba(148, 163, 184, 0.18) !important;
    }
    html.dark .border-emerald-100:not(#idCardFrontWrapper *):not(#idCardBackWrapper *),
    html.dark .border-emerald-200:not(#idCardFrontWrapper *):not(#idCardBackWrapper *),
    html.dark .border-emerald-300:not(#idCardFrontWrapper *):not(#idCardBackWrapper *),
    html.dark .border-\[\#86efac\]:not(#idCardFrontWrapper *):not(#idCardBackWrapper *) {
      border-color: rgba(16, 185, 129, 0.28) !important;
    }
    html.dark .divide-slate-200 > :not([hidden]) ~ :not([hidden]),
    html.dark .divide-slate-100 > :not([hidden]) ~ :not([hidden]) {
      border-color: rgba(148, 163, 184, 0.15) !important;
    }

    /* Form Inputs, Selects & Textareas in Deep Dark Mode */
    html.dark input:not([type="file"]):not([type="checkbox"]):not([type="radio"]),
    html.dark select,
    html.dark textarea {
      background-color: #050e0b !important;
      color: #f8fafc !important;
      border-color: rgba(52, 211, 153, 0.3) !important;
    }
    html.dark input::placeholder,
    html.dark textarea::placeholder {
      color: #64748b !important;
    }
    html.dark footer#footerContact {
      background-color: #020604 !important;
    }

    /* =========================================================================
       SITE-WIDE COLOR VARIATION ENGINE (LIGHT & DARK MODE, PRINT/ID-CARD SAFE)
       Covers Topbar, Header, Hero, Footer, Cards, Buttons & Dashboard Bars
       ========================================================================= */
    :root {
      --brand-primary: #0a6342;
      --brand-dark: #063d29;
      --brand-deeper: #032619;
      --brand-mid: #0f4c3a;
      --brand-tint: #f2fbf7;
      --brand-soft: #d1fae5;
      --brand-border: #a7f3d0;
      --brand-text-dark: #34d399;
      --brand-dark-tint: rgba(16, 185, 129, 0.12);
    }
    html[data-color-theme="teal"] {
      --brand-primary: #0f766e;
      --brand-dark: #115e59;
      --brand-deeper: #042f2e;
      --brand-mid: #134e4a;
      --brand-tint: #f0fdfa;
      --brand-soft: #ccfbf1;
      --brand-border: #99f6e4;
      --brand-text-dark: #2dd4bf;
      --brand-dark-tint: rgba(20, 184, 166, 0.14);
    }
    html[data-color-theme="navy"] {
      --brand-primary: #1e40af;
      --brand-dark: #172554;
      --brand-deeper: #0b1538;
      --brand-mid: #1e3a8a;
      --brand-tint: #eff6ff;
      --brand-soft: #dbeafe;
      --brand-border: #bfdbfe;
      --brand-text-dark: #60a5fa;
      --brand-dark-tint: rgba(59, 130, 246, 0.14);
    }
    html[data-color-theme="olive"] {
      --brand-primary: #3f6212;
      --brand-dark: #274009;
      --brand-deeper: #172605;
      --brand-mid: #365314;
      --brand-tint: #f7fee7;
      --brand-soft: #ecfccb;
      --brand-border: #bef264;
      --brand-text-dark: #a3e635;
      --brand-dark-tint: rgba(132, 204, 22, 0.14);
    }
    html[data-color-theme="burgundy"] {
      --brand-primary: #881337;
      --brand-dark: #4c0519;
      --brand-deeper: #2e0310;
      --brand-mid: #6b0f2a;
      --brand-tint: #fff1f2;
      --brand-soft: #ffe4e6;
      --brand-border: #fecdd3;
      --brand-text-dark: #fb7185;
      --brand-dark-tint: rgba(244, 63, 94, 0.14);
    }

    /* Topbar, Hero Section, Header & Footer (Light + Dark Mode) */
    html[data-color-theme]:not([data-color-theme="emerald"]) .hikmah-topbar {
      background: linear-gradient(90deg, var(--brand-dark) 0%, var(--brand-primary) 55%, var(--brand-dark) 100%) !important;
    }
    html[data-color-theme]:not([data-color-theme="emerald"]) .hikmah-hero-overlay {
      background: linear-gradient(105deg, var(--brand-deeper) 0%, var(--brand-dark) 58%, var(--brand-primary) 100%) !important;
      border-color: var(--brand-mid) !important;
    }
    html.dark[data-color-theme]:not([data-color-theme="emerald"]) .hikmah-hero-overlay {
      background: linear-gradient(125deg, var(--brand-deeper) 0%, var(--brand-dark) 62%, var(--brand-mid) 100%) !important;
      border-color: var(--brand-primary) !important;
    }
    html[data-color-theme]:not([data-color-theme="emerald"]) #footerContact,
    html[data-color-theme]:not([data-color-theme="emerald"]) .bg-\[\#032619\] {
      background-color: var(--brand-deeper) !important;
    }
    html[data-color-theme]:not([data-color-theme="emerald"]) header {
      border-bottom-color: var(--brand-border) !important;
    }
    html.dark[data-color-theme]:not([data-color-theme="emerald"]) header {
      border-bottom-color: var(--brand-mid) !important;
    }
    html[data-color-theme]:not([data-color-theme="emerald"]):not(.dark) .hover\:bg-\[\#f2fbf7\]:hover {
      background-color: var(--brand-tint) !important;
    }
    html[data-color-theme]:not([data-color-theme="emerald"]):not(.dark) .hover\:text-\[\#0a6342\]:hover {
      color: var(--brand-primary) !important;
    }
    html.dark[data-color-theme]:not([data-color-theme="emerald"]) .hover\:text-\[\#0a6342\]:hover {
      color: var(--brand-text-dark) !important;
    }

    /* Core Brand Backgrounds, Buttons, Tabs & Gradients */
    html[data-color-theme]:not([data-color-theme="emerald"]) .bg-\[\#0a6342\]:not(.iqra-theme-swatch):not(#idCardFrontWrapper *):not(#idCardBackWrapper *):not(#pdfModalContent *):not(.iqra-pdf-capture-root *) {
      background-color: var(--brand-primary) !important;
    }
    html[data-color-theme]:not([data-color-theme="emerald"]) .bg-\[\#063d29\]:not(.iqra-theme-swatch):not(#idCardFrontWrapper *):not(#idCardBackWrapper *):not(#pdfModalContent *):not(.iqra-pdf-capture-root *) {
      background-color: var(--brand-dark) !important;
    }
    html[data-color-theme]:not([data-color-theme="emerald"]) .hover\:bg-\[\#063d29\]:hover:not(.iqra-theme-swatch),
    html[data-color-theme]:not([data-color-theme="emerald"]) .hover\:bg-emerald-800:hover:not(.iqra-theme-swatch) {
      background-color: var(--brand-dark) !important;
    }
    html[data-color-theme]:not([data-color-theme="emerald"]) .hover\:bg-\[\#0a6342\]:hover:not(.iqra-theme-swatch) {
      background-color: var(--brand-primary) !important;
    }
    html[data-color-theme]:not([data-color-theme="emerald"]) .bg-emerald-900\/70:not(.iqra-theme-swatch),
    html[data-color-theme]:not([data-color-theme="emerald"]) .bg-emerald-800:not(.iqra-theme-swatch) {
      background-color: var(--brand-mid) !important;
    }
    html[data-color-theme]:not([data-color-theme="emerald"]):not(.dark) .bg-\[\#f2fbf7\]:not(.iqra-theme-swatch):not(#idCardFrontWrapper *):not(#idCardBackWrapper *):not(#pdfModalContent *),
    html[data-color-theme]:not([data-color-theme="emerald"]):not(.dark) .bg-emerald-50:not(.iqra-theme-swatch):not(#pdfModalContent *),
    html[data-color-theme]:not([data-color-theme="emerald"]):not(.dark) .bg-emerald-50\/70:not(.iqra-theme-swatch),
    html[data-color-theme]:not([data-color-theme="emerald"]):not(.dark) .bg-emerald-50\/60:not(.iqra-theme-swatch) {
      background-color: var(--brand-tint) !important;
    }
    html[data-color-theme]:not([data-color-theme="emerald"]):not(.dark) .bg-emerald-100:not(.iqra-theme-swatch):not(#pdfModalContent *) {
      background-color: var(--brand-soft) !important;
    }
    html[data-color-theme]:not([data-color-theme="emerald"]):not(.dark) .text-\[\#0a6342\]:not(.iqra-theme-swatch):not(#idCardFrontWrapper *):not(#idCardBackWrapper *):not(#pdfModalContent *),
    html[data-color-theme]:not([data-color-theme="emerald"]):not(.dark) .text-\[\#063d29\]:not(.iqra-theme-swatch):not(#idCardFrontWrapper *):not(#idCardBackWrapper *):not(#pdfModalContent *),
    html[data-color-theme]:not([data-color-theme="emerald"]):not(.dark) .text-emerald-800:not(.iqra-theme-swatch):not(#pdfModalContent *),
    html[data-color-theme]:not([data-color-theme="emerald"]):not(.dark) .text-emerald-700:not(.iqra-theme-swatch):not(#pdfModalContent *) {
      color: var(--brand-primary) !important;
    }
    html[data-color-theme]:not([data-color-theme="emerald"]) .from-\[\#063d29\]:not(.iqra-theme-swatch) {
      --tw-gradient-from: var(--brand-dark) var(--tw-gradient-from-position) !important;
      --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to) !important;
    }
    html[data-color-theme]:not([data-color-theme="emerald"]) .via-\[\#0a6342\]:not(.iqra-theme-swatch) {
      --tw-gradient-stops: var(--tw-gradient-from), var(--brand-primary) var(--tw-gradient-via-position), var(--tw-gradient-to) !important;
    }
    html[data-color-theme]:not([data-color-theme="emerald"]) .to-\[\#063d29\]:not(.iqra-theme-swatch),
    html[data-color-theme]:not([data-color-theme="emerald"]) .to-\[\#0f4c3a\]:not(.iqra-theme-swatch),
    html[data-color-theme]:not([data-color-theme="emerald"]) .to-\[\#0a6342\]:not(.iqra-theme-swatch) {
      --tw-gradient-to: var(--brand-mid) var(--tw-gradient-to-position) !important;
    }
    html.dark[data-color-theme]:not([data-color-theme="emerald"]) .bg-gradient-to-r.from-\[\#063d29\],
    html.dark[data-color-theme]:not([data-color-theme="emerald"]) .bg-gradient-to-br.from-\[\#063d29\] {
      background-image: linear-gradient(135deg, var(--brand-deeper) 0%, var(--brand-dark) 55%, var(--brand-deeper) 100%) !important;
      border-color: var(--brand-primary) !important;
    }
    html[data-color-theme]:not([data-color-theme="emerald"]) .border-emerald-200:not(.iqra-theme-swatch),
    html[data-color-theme]:not([data-color-theme="emerald"]) .border-emerald-300:not(.iqra-theme-swatch) {
      border-color: var(--brand-border) !important;
    }
    html[data-color-theme]:not([data-color-theme="emerald"]) .border-emerald-700:not(.iqra-theme-swatch),
    html[data-color-theme]:not([data-color-theme="emerald"]) .border-emerald-800:not(.iqra-theme-swatch),
    html[data-color-theme]:not([data-color-theme="emerald"]) .border-\[\#0a6342\]:not(.iqra-theme-swatch) {
      border-color: var(--brand-primary) !important;
    }
    html.dark[data-color-theme]:not([data-color-theme="emerald"]) .text-\[\#0a6342\]:not(.iqra-theme-swatch):not(#idCardFrontWrapper *):not(#idCardBackWrapper *):not(#pdfModalContent *),
    html.dark[data-color-theme]:not([data-color-theme="emerald"]) .text-\[\#063d29\]:not(.iqra-theme-swatch):not(#idCardFrontWrapper *):not(#idCardBackWrapper *):not(#pdfModalContent *),
    html.dark[data-color-theme]:not([data-color-theme="emerald"]) .text-emerald-800:not(.iqra-theme-swatch):not(#pdfModalContent *),
    html.dark[data-color-theme]:not([data-color-theme="emerald"]) .text-emerald-700:not(.iqra-theme-swatch):not(#pdfModalContent *),
    html.dark[data-color-theme]:not([data-color-theme="emerald"]) .text-emerald-600:not(.iqra-theme-swatch):not(#pdfModalContent *) {
      color: var(--brand-text-dark) !important;
    }
    html.dark[data-color-theme]:not([data-color-theme="emerald"]) .bg-\[\#f2fbf7\]:not(.iqra-theme-swatch):not(#idCardFrontWrapper *):not(#idCardBackWrapper *):not(#pdfModalContent *),
    html.dark[data-color-theme]:not([data-color-theme="emerald"]) .bg-emerald-50:not(.iqra-theme-swatch):not(#pdfModalContent *),
    html.dark[data-color-theme]:not([data-color-theme="emerald"]) .bg-emerald-100:not(.iqra-theme-swatch):not(#pdfModalContent *) {
      background-color: var(--brand-dark-tint) !important;
    }
