* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Tajawal', 'Segoe UI', Tahoma, sans-serif;
  background-color: #f8fafc;
  color: #272b2e;
  direction: rtl;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Fullscreen Centered Ajax Loader */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}

.loader-gif {
  max-width: 90px;
  height: auto;
  object-fit: contain;
}

.verify-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  animation: fadeInContent 0.35s ease-in-out;
}

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

.not-found-box {
  text-align: center;
  padding: 32px 20px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 6px;
  margin: 16px 0 24px;
}

.not-found-icon {
  font-size: 38px;
  margin-bottom: 10px;
}

.not-found-title {
  color: #991b1b;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
}

.not-found-desc {
  color: #7f1d1d;
  font-size: 13.5px;
}

/* Header */
.verify-header {
  background-color: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 12px 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chamber-brand {
  display: flex;
  align-items: center;
}

.chamber-header-logo {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.vision-brand {
  display: flex;
  align-items: center;
}

.vision-logo {
  height: 50px;
  width: auto;
  object-fit: contain;
}

/* Main Content Area */
.verify-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.verify-card {
  background-color: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  max-width: 900px;
  width: 100%;
  padding: 28px 32px;
}

/* Card Header */
.card-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 16px;
}

.card-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.accent-bar {
  width: 4px;
  height: 22px;
  background-color: #2563eb;
  border-radius: 2px;
  display: inline-block;
}

.card-title {
  font-size: 19px;
  font-weight: 800;
  color: #1f2937;
}

.btn-back {
  background-color: #2563eb;
  color: #ffffff;
  border: none;
  padding: 5px 16px;
  border-radius: 4px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s;
}

.btn-back:hover {
  background-color: #1d4ed8;
}

/* Description */
.service-description {
  font-size: 13.5px;
  line-height: 1.6;
  color: #4b5563;
  margin-bottom: 24px;
  background-color: #f9fafb;
  padding: 10px 14px;
  border-radius: 4px;
  border-right: 3px solid #3b82f6;
}

/* Data Grid (2 Columns) */
.document-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 36px;
  margin-bottom: 28px;
}

.details-column {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px dashed #e5e7eb;
}

.detail-label {
  font-size: 13.5px;
  font-weight: 700;
  color: #374151;
}

.detail-value {
  font-size: 14px;
  font-weight: 800;
  color: #111827;
  text-align: left;
}

.company-name {
  color: #1e40af;
}

.font-mono {
  font-family: monospace, sans-serif;
  letter-spacing: 0.5px;
}

.status-active {
  color: #15803d;
  font-weight: 800;
  font-size: 13.5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.status-active::before {
  content: '✔';
  display: inline-block;
  font-size: 12px;
}

/* Action Buttons */
.card-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #2563eb;
  color: #ffffff;
  padding: 9px 24px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 700;
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
  transition: all 0.15s ease;
}

.btn-download svg {
  width: 17px;
  height: 17px;
}

.btn-download:hover {
  background-color: #1d4ed8;
}

.btn-reverify {
  background-color: #ffffff;
  color: #2563eb;
  border: 1px solid #2563eb;
  padding: 8px 20px;
  border-radius: 4px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-reverify:hover {
  background-color: #eff6ff;
}

/* Official Footer */
.verify-footer {
  background-color: #1e3a8a;
  color: #ffffff;
  padding: 24px 0;
  margin-top: auto;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.support-title {
  font-size: 12.5px;
  color: #93c5fd;
}

.support-phone {
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
  text-decoration: none;
  font-family: monospace, sans-serif;
  letter-spacing: 0.5px;
}

.footer-dev {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: #bfdbfe;
}

.dev-brand {
  display: flex;
  align-items: center;
}

.footer-logo {
  height: 38px;
  width: auto;
  object-fit: contain;
  filter: brightness(1.2);
}

.footer-misc {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.social-icons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-icons a {
  color: #ffffff;
  opacity: 0.85;
  transition: opacity 0.15s;
  display: flex;
}

.social-icons a:hover {
  opacity: 1;
}

.social-icons svg {
  width: 18px;
  height: 18px;
}

.browser-hint {
  font-size: 11.5px;
  color: #93c5fd;
}

html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

@media (max-width: 768px) {
  /* Header on mobile */
  .verify-header {
    padding: 10px 0;
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  }

  .header-container {
    justify-content: center;
    padding: 6px 16px;
    width: 100%;
  }

  .vision-brand {
    display: none;
  }

  .chamber-brand {
    justify-content: center;
    width: 100%;
  }

  .chamber-header-logo {
    height: 44px;
    margin: 0 auto;
  }

  /* Card on mobile */
  .verify-main {
    display: block !important;
    padding: 14px 10px 36px !important;
    background-color: #f4f6f8;
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
  }

  .verify-card {
    display: block !important;
    padding: 16px 12px !important;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
  }

  .card-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 14px;
  }

  .card-title-group {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .card-title {
    font-size: 16.5px;
    font-weight: 800;
    color: #1e293b;
  }

  .accent-bar {
    height: 18px;
    width: 4px;
    background-color: #2563eb;
  }

  .btn-back {
    padding: 5px 16px;
    font-size: 13px;
    background-color: #2563eb;
    border-radius: 4px;
  }

  .service-description {
    background: transparent;
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
    padding: 0 0 14px 0;
    margin-bottom: 16px;
    text-align: center;
    font-size: 12.5px;
    color: #475569;
    line-height: 1.55;
    border-radius: 0;
  }

  /* Single Column Data Grid matching mobile screenshot */
  .document-details-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 22px;
  }

  .detail-item {
    display: block;
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
    text-align: right;
    line-height: 1.5;
    direction: rtl;
  }

  .detail-label {
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
    display: inline;
    margin-left: 6px;
  }

  .detail-value {
    font-size: 14px;
    font-weight: 500;
    color: #334155;
    display: inline;
    text-align: right;
  }

  .company-name {
    color: #0f172a;
  }

  .status-active {
    color: #329cc2;
    font-weight: 700;
    font-size: 14px;
    display: inline;
  }

  .status-active::before {
    display: none;
  }

  /* Actions on mobile */
  .card-actions {
    flex-direction: column;
    gap: 10px;
    padding-top: 18px;
    border-top: 1px solid #e2e8f0;
  }

  .btn-download,
  .btn-reverify {
    width: 100%;
    justify-content: center;
    padding: 10px;
    font-size: 14.5px;
    box-sizing: border-box;
  }

  /* Footer on mobile */
  .verify-footer {
    padding: 20px 0;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 16px;
    padding: 0 16px;
    width: 100%;
    box-sizing: border-box;
  }

  .footer-misc {
    align-items: center;
  }
}
