/* App Info modal (#aboutapp) — shared on index, login, and logged-in app */

#aboutapp.app_popup_overlay {
  padding: 14px 10px;
  background: rgba(10, 22, 48, 0.68);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

#aboutapp .about-app-card.popup_app_section {
  width: min(560px, 96vw);
  max-width: 560px;
  height: auto !important;
  max-height: min(88dvh, 760px) !important;
  margin: 0 auto !important;
  padding: 0 !important;
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

#aboutapp .about-app-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 0;
  background: #f8fafc;
}

#aboutapp .modal-custom-header .modal-title-wrap {
  min-width: 0;
  flex: 1;
}

#aboutapp .modal-custom-header .modal-subtitle {
  display: block;
  white-space: normal;
  line-height: 1.3;
}

#aboutapp .about-app-tabs {
  width: 100%;
  height: auto;
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

#aboutapp .about-app-tabs > input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

#aboutapp .about-tab-labels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 12px 12px 0;
  background: #f8fafc;
}

#aboutapp .about-tab-labels label {
  float: none !important;
  margin: 0 !important;
  cursor: pointer;
  border: 0;
  border-radius: 12px;
  padding: 10px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  font-style: normal !important;
  font-family: inherit;
  letter-spacing: 0.03em;
  text-align: center;
  color: #64748b;
  background: #e2e8f0;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  line-height: 1.2;
  white-space: nowrap;
}

#aboutapp .about-tab-labels label i {
  flex: 0 0 auto;
  font-size: 0.82rem;
  line-height: 1;
}

#aboutapp .about-tab-labels label:hover {
  background: #cbd5e1;
  color: #334155;
}

#aboutapp .about-app-tabs input:nth-of-type(1):checked ~ .about-tab-labels label[for="about-one"],
#aboutapp .about-app-tabs input:nth-of-type(2):checked ~ .about-tab-labels label[for="about-two"],
#aboutapp .about-app-tabs input:nth-of-type(3):checked ~ .about-tab-labels label[for="about-three"] {
  color: #fff;
  background: linear-gradient(to right, var(--theme-color-lite), var(--theme-color-dark));
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16);
}

#aboutapp .about-tab-panels {
  float: none;
  clear: both;
  position: relative;
  width: 100%;
  min-height: 320px;
  max-height: min(62dvh, 520px);
  background: transparent;
  border-radius: 0;
  padding: 12px;
  box-sizing: border-box;
}

#aboutapp .about-tabpanel {
  opacity: 0;
  visibility: hidden;
  position: absolute;
  inset: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 4px 2px 8px;
  background: transparent;
  border-radius: 0;
  height: auto;
  transition: opacity 0.25s ease;
}

#aboutapp .about-app-tabs input:nth-of-type(1):checked ~ .about-tab-panels .about-tabpanel:nth-child(1),
#aboutapp .about-app-tabs input:nth-of-type(2):checked ~ .about-tab-panels .about-tabpanel:nth-child(2),
#aboutapp .about-app-tabs input:nth-of-type(3):checked ~ .about-tab-panels .about-tabpanel:nth-child(3) {
  opacity: 1;
  visibility: visible;
  position: relative;
  z-index: 2;
}

#aboutapp .about-contact-card {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  margin-bottom: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
  cursor: default;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

#aboutapp .about-contact-card.is-clickable {
  cursor: pointer;
}

#aboutapp .about-contact-card.is-clickable:hover {
  transform: translateY(-2px);
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.1);
}

#aboutapp .about-contact-icon {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  color: #fff;
  background: linear-gradient(135deg, var(--theme-color-lite), var(--theme-color-dark));
}

#aboutapp .about-contact-text {
  min-width: 0;
  flex: 1;
  font-size: 0.9rem;
  font-weight: 700;
  color: #0f172a;
  word-break: break-word;
}

#aboutapp .about-copy-card {
  margin-top: 4px;
  padding: 16px 14px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
}

#aboutapp .about-copy-title {
  margin: 0 0 10px;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--theme-color-dark, #4338ca);
}

#aboutapp .about-copy-card p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.6;
  color: #475569;
}

#aboutapp .about-license-text {
  font-size: 0.8rem;
  line-height: 1.55;
  color: #475569;
}

#aboutapp .about-license-text p {
  margin-bottom: 10px;
}

@media (max-width: 520px) {
  #aboutapp .about-tab-labels {
    grid-template-columns: 1fr;
  }

  #aboutapp .about-tab-labels label {
    width: 100%;
    justify-content: center;
  }
}
