*,
*::before,
*::after {
  box-shadow: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  font-family: "IRANYekan", Tahoma, sans-serif;
  font-size: 14px;
  background-color: #f0f4f8;
  color: #1a1a1a;
  height: 100dvh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

.page-wrapper {
  width: 100%;
  max-width: 480px;
  height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
}

#app {
  height: 100%;
}

.mobile-main {
  height: 100%;
  padding: 20px;
  box-sizing: border-box;
}

.id-card {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  padding: 0 20px 25px;
  box-sizing: border-box;
}

.blob {
  position: absolute;
  pointer-events: none;
}

.blob--top {
  top: 0;
  right: 0;
  width: 100%;
  height: 200px;
}

.id-card__logo {
  position: relative;
  z-index: 2;
  align-self: stretch;
  width: 100%;
  direction: rtl;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  padding: 15px 10px 0;
  color: #ffffff;
  box-sizing: border-box;
}

.logo-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.logo-icon {
  height: 50px;
  width: auto;
  max-width: 80px;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1);
}

.logo-brand-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  line-height: 1.25;
  text-align: center;
}

.logo-brand-title {
  font-size: 14px;
  font-weight: 700;
}

.logo-brand-sub {
  font-size: 10px;
  font-weight: 400;
  opacity: 0.95;
}

.logo-tag {
  font-size: 12px;
  font-weight: 700;
  align-self: flex-start;
  text-align: left;
  margin-top: 2px;
}

.id-card__photo-wrap {
  position: relative;
  z-index: 2;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 5px solid #ffffff;
  overflow: hidden;
  margin-top: -40px;
  margin-inline: auto;
  align-self: center;
  flex-shrink: 0;
}

.id-card__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  background-color: #e0f4fc;
}

.id-card__name {
  position: relative;
  z-index: 2;
  font-size: 14px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 12px 0 15px;
  text-align: center;
  line-height: 1.4;
}

.role-card {
  position: relative;
  z-index: 2;
  max-width: 90%;
  margin: 0 auto 25px;
  padding: 10px;
  background: linear-gradient(135deg, #e8f7fd 0%, #f0fbff 100%);
  border: 1px solid #b3e8fa;
  border-radius: 12px;
  text-align: center;
}

.role-card__text {
  font-size: 12px;
  font-weight: 400;
  color: #1a1a1a;
  margin: 0;
  line-height: 1.5;
}

.info-list {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 25px;
  min-height: 0;
  padding: 15px 0;
}

.info-item {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 15px;
  width: 100%;
  max-width: 280px;
  direction: rtl;
}

.info-label-group {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  white-space: nowrap;
  direction: rtl;
}

.info-item--email .info-value {
  min-width: 0;
  overflow: hidden;
  direction: ltr;
  text-align: left;
}

.info-item--email .info-link {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  font-size: 14px;
  line-height: 1.4;
  text-align: left;
}

.info-label {
  font-size: 14px;
  font-weight: 700;
  color: #23408f;
  text-align: right;
}

.info-colon {
  font-size: 14px;
  color: #1a1a1a;
}

.info-value {
  font-size: 14px;
  color: #1a1a1a;
  text-align: left;
  line-height: 1.4;
  min-width: 0;
  direction: ltr;
}

.info-link {
  color: #1a1a1a;
  text-decoration: none;
  direction: ltr;
  display: inline-block;
}

.info-link:active {
  opacity: 0.7;
}

.id-card__website {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  margin-top: 25px;
  font-size: 14px;
  font-weight: 600;
  color: #23408f;
  text-decoration: none;
}

.id-card__website:active {
  opacity: 0.7;
}

.state-card {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px 20px;
  font-size: 14px;
  color: #64748b;
}

.state-card--error {
  color: #dc2626;
}

.loader {
  width: 30px;
  height: 30px;
  border: 3px solid #b3e8fa;
  border-top-color: #23408f;
  border-radius: 50%;
  margin-bottom: 15px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-height: 700px) {
  .mobile-main {
    padding: 5px;
  }

  .id-card {
    padding: 0 15px 20px;
  }

  .blob--top {
    height: 160px;
  }

  .id-card__photo-wrap {
    width: 100px;
    height: 100px;
    margin-top: -32px;
  }

  .id-card__name {
    margin: 15px 0;
  }

  .role-card {
    margin-bottom: 15px;
    padding: 10px;
  }

  .info-list {
    gap: 30px;
    padding: 15px 0;
  }

  .id-card__website {
    margin-top: 15px;
  }
}
