    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    body {
      background-color: #38bdf8;
      font-family: 'Poppins', 'Mukta', sans-serif;
     
    }


    .site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(230,233,239,.85);
}

.nav-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 30px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -.7px;
}

.logo > span:last-child > span { color: var(--saffron); }
.logo-mark { font-size: 27px; line-height: 1; }

.main-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 30px;
}

.main-nav a {
  color: #566075;
  font-size: 14px;
  font-weight: 600;
  transition: color .2s ease;
}

.main-nav a:hover { color: var(--saffron); }

.nav-btn, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-weight: 700;
  border-radius: 12px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.nav-btn {
  padding: 11px 17px;
  background: var(--navy);
  color: #fff;
  font-size: 13px;
}

.nav-btn:hover, .btn:hover {
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background: var(--navy);
}


    .main-wrapper {
      display: flex;
      flex-direction: row;
      gap: 30px;
      align-items: flex-start;
      justify-content: center;
      max-width: 1200px;
      width: 100%;
      flex-wrap: wrap;
      margin:20px auto;
    }

    /* ================= CONTROL PANEL ================= */
    .control-panel {
      background: #ffffff;
      padding: 24px;
      border-radius: 16px;
      box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
      width: 100%;
      max-width: 380px;
    }

    .panel-title {
      font-size: 18px;
      font-weight: 800;
      color: #0f172a;
      margin-bottom: 18px;
      border-bottom: 2px solid #f28b00;
      padding-bottom: 6px;
    }

    .form-group {
      margin-bottom: 16px;
      display: flex;
      flex-direction: column;
      gap: 6px;
    }

    .form-group label {
      font-size: 13px;
      font-weight: 700;
      color: #334155;
    }

    .form-control {
      width: 100%;
      padding: 10px 12px;
      border: 1.5px solid #cbd5e1;
      border-radius: 8px;
      font-size: 14px;
      font-family: inherit;
      outline: none;
      transition: border-color 0.2s ease;
    }

    .form-control:focus {
      border-color: #f28b00;
    }

    .file-input-wrapper {
      position: relative;
    }

    .btn-download-hd {
      width: 100%;
      padding: 12px 16px;
      background-color: #13752d;
      color: #ffffff;
      font-size: 15px;
      font-weight: 800;
      border: none;
      border-radius: 10px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      box-shadow: 0 4px 12px rgba(19, 117, 45, 0.3);
      transition: all 0.2s ease;
      margin-top: 10px;
    }

    .btn-download-hd:hover {
      background-color: #0e5a22;
      transform: translateY(-1px);
    }

    .btn-download-hd:disabled {
      background-color: #94a3b8;
      cursor: not-allowed;
      transform: none;
    }

    /* ================= CARD CONTAINER ================= */
    .card-container {
      background-color: #faf8f2;
      border-radius: 20px;
      border: 7px solid #D2B036;
      box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
      padding: 0px;
      position: relative;
      flex-shrink: 0;
    }

    .card-frame-inner {
      border: 0px solid #e0c896;
      border-radius: 14px;
      overflow: hidden;
      background-color: #faf8f2;
      position: relative;
    }

    /* Header with Gradient Background */
    .card-header {
      background: linear-gradient(90deg, #FE9A33 0%, #FFAF50 50%, #FF8207 100%);
      padding: 12px 20px;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .header-left {
      display: flex;
      align-items: center;
      gap: 14px;
    }

    .chakra-circle {
      width: 44px;
      height: 44px;
      background-color: #ffffff;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
      flex-shrink: 0;
    }

    .header-text h1 {
      color: #ffffff;
      font-family: "Tiro Devanagari Hindi", serif;
      font-weight: 400;
      font-style: normal;
      font-size: 25px;
      font-weight: 800;
      line-height: 1.1;
      text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    }

    .header-text p {
      color: #ffffff;
      font-size: 8.5px;
      font-weight: 700;
      letter-spacing: 0.8px;
      margin-top: 1px;
      opacity: 0.95;
      text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    }

    .header-badge {
      background-color: #ffffff;
      border-radius: 20px;
      padding: 5px 14px;
      display: flex;
      align-items: center;
      gap: 6px;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    }

    .mini-flag {
      width: 20px;
      height: 13px;
      border: 0.5px solid #d1d5db;
      border-radius: 1px;
    }

    .badge-text {
      color: #b45309;
      font-size: 11px;
      font-weight: 800;
      font-family: 'Mukta', sans-serif;
      white-space: nowrap;
    }

    /* Body */
    .card-body {
      padding: 24px 22px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      background-color: #FEFDF6;
      position: relative;
      border-top: 4px solid #DBB640;
      border-bottom: 4px solid #DBB640;
    }

    .card-body::before, .card-body::after {
      content: "";
      position: absolute;
      top: 2px;
      bottom: 2px;
      width: 3px;
      border-left: 1px solid #eab308;
      border-right: 1px solid #eab308;
      opacity: 0.5;
    }
    .card-body::before { left: 4px; }
    .card-body::after { right: 4px; }

    .photo-gradient-container {
      width: 135px;
      height: 160px;
      padding: 4px;
      border-radius: 14px;
      background: linear-gradient(180deg, #f28b00 0%, #eab308 50%, #13752d 100%);
      box-shadow: 0 4px 12px rgba(19, 117, 45, 0.25);
      flex-shrink: 0;
    }

    .photo-inner-wrapper {
      width: 100%;
      height: 100%;
      background-color: #ffffff;
      border-radius: 10px;
      overflow: hidden;
    }

    .photo-inner-wrapper img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .details-container {
      flex-grow: 1;
      margin: 0 22px;
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .field-row {
      display: flex;
      align-items: center;
      border-bottom: 2px dashed #facc15;
      padding-bottom: 4px;
    }

    .field-label {
      width: 70px;
      font-family: 'Mukta', sans-serif;
      font-size: 19px;
      font-weight: 800;
      color: #1a1a1a;
    }

    .field-label.eng {
      font-family: 'Poppins', sans-serif;
      font-size: 14px;
      font-weight: 700;
    }

    .field-value {
      font-size: 18px;
      font-weight: 800;
      color: #000000;
    }

    .field-value.id-no {
      letter-spacing: 0.8px;
    }

    .meta-row {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-top: 2px;
    }

    .sim-chip-wrapper {
      width: 44px;
      height: 34px;
      flex-shrink: 0;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .divider-line {
      width: 2px;
      height: 28px;
      background-color: #f28b00;
    }

    .slogan-box {
      font-family: 'Mukta', sans-serif;
      font-size: 11px;
      font-weight: 800;
      line-height: 1.25;
    }

    .slogan-orange { color: #f28b00; }
    .slogan-dark { color: #334155; }
    .slogan-green { color: #13752d; }

    .flag-container {
      width: 120px;
      height: 75px;
      box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
      border: 1px solid #cbd5e1;
      display: flex;
      flex-direction: column;
      flex-shrink: 0;
      border-radius: 2px;
      overflow: hidden;
    }

    .flag-stripe { flex: 1; }
    .stripe-saffron { background-color: #f28b00; }
    .stripe-white {
      background-color: #ffffff;
      display: flex;
      justify-content: center;
      align-items: center;
    }
    .stripe-green { background-color: #13752d; }

    /* Footer */
    .card-footer {
      background: linear-gradient(90deg, #0D5D06 0%, #108202 50%, #0B4A05 100%);
      padding: 8px 18px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      position: relative;
    }

    .footer-left {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .emblem-svg {
      height: 38px;
      width: auto;
      display: block;
      fill: #ffffff;
    }

    .emblem-text h2 {
      color: #ffffff;
      font-family: 'Mukta', sans-serif;
      font-size: 17px;
      line-height: 1;
      font-weight: 800;
    }

    .emblem-text p {
      color: #ffffff;
      font-size: 7.5px;
      font-weight: 700;
      letter-spacing: 0.6px;
      margin-top: 1px;
      opacity: 0.9;
    }

    .footer-pill {
      position: absolute;
      left: 50%;
      transform: translateX(-50%);
      background-color: #ffffff;
      padding: 4px 14px;
      border-radius: 20px;
      border: 1px solid #f28b00;
      display: flex;
      align-items: center;
      gap: 6px;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }

    .pill-text {
      color: #b45309;
      font-size: 10.5px;
      font-weight: 800;
      font-family: 'Mukta', sans-serif;
    }

    .footer-right {
      display: flex;
      align-items: center;
      gap: 8px;
      text-align: right;
    }

    .brand-info .url {
      color: #a3e635;
      font-size: 9.5px;
      font-weight: 700;
      text-decoration: none;
      display: block;
    }

    .brand-info .sub {
      color: #ffffff;
      font-size: 7.5px;
      font-weight: 500;
      display: block;
    }

    .brand-logo-box {
      background-color: #ffffff;
      width: 32px;
      height: 26px;
      border-radius: 5px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 900;
      color: #0284c7;
      font-size: 13px;
      border: 1px solid #0284c7;
      letter-spacing: -1px;
    }

    /* ================= CROPPER MODAL ================= */
    .modal-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      background: rgba(15, 23, 42, 0.75);
      display: none;
      align-items: center;
      justify-content: center;
      z-index: 9999;
      padding: 20px;
    }

    .modal-overlay.active {
      display: flex;
    }

    .modal-box {
      background: #ffffff;
      border-radius: 16px;
      width: 100%;
      max-width: 520px;
      overflow: hidden;
      box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
      display: flex;
      flex-direction: column;
    }

    .modal-header {
      padding: 16px 20px;
      background-color: #f8fafc;
      border-bottom: 1px solid #e2e8f0;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .modal-header h3 {
      font-size: 16px;
      font-weight: 700;
      color: #0f172a;
    }

    .modal-body {
      padding: 20px;
      max-height: 420px;
      background-color: #0f172a;
      display: flex;
      justify-content: center;
      align-items: center;
      overflow: hidden;
    }

    .modal-body img {
      max-width: 100%;
      max-height: 380px;
      display: block;
    }

    .modal-footer {
      padding: 14px 20px;
      background-color: #f8fafc;
      border-top: 1px solid #e2e8f0;
      display: flex;
      justify-content: flex-end;
      gap: 12px;
    }

    .btn {
      padding: 9px 18px;
      border-radius: 8px;
      font-size: 13px;
      font-weight: 700;
      cursor: pointer;
      border: none;
      transition: opacity 0.2s;
    }

    .btn-secondary {
      background-color: #e2e8f0;
      color: #334155;
    }

    .btn-primary {
      background-color: #f28b00;
      color: #ffffff;
    }

    .btn:hover {
      opacity: 0.9;
    }

    #userAddress {
      font-weight: 600;
    }