:root {
  --bg: linear-gradient(135deg, rgba(34, 33, 33, 0.486), rgba(58, 58, 58, 0.753));
  --card: linear-gradient(128deg, #0d556b, #bfdbe2);
  --white: #fff;
  --text: #ffffff;
  --muted: #ffffff;
  --shadow: 0 30px 80px rgba(121, 119, 119, 0.753);
  color-scheme: light;

}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "MyFont";
  background: #ffffff;
  color: var(--text);
  background-image: url("bg/bk.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;



}

@font-face {
  font-family: "MyFont";
  src: url("font/Morabba-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "arahooshf";
  src: url("font/Artin.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}



.screen {
  min-height: calc(100vh - 170px);
  display: grid;
  place-items: center;
  padding: calc(60px + env(safe-area-inset-top)) 16px calc(16px + env(safe-area-inset-bottom));
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--card);
  margin-bottom: -120px;



}

.screen::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.781), rgba(58, 58, 58, 0.753));

  backdrop-filter: blur(2px);
  z-index: 0;
}

.chips {
  display: flex;
  gap: 5px;
  justify-content: center;
  margin-top: 12px;
  flex-wrap: wrap;
}

.chips a {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(34, 33, 33, 0.349);
  padding: 8px 10px;
  border-radius: 999px;
  text-decoration: none;
}

.cta-row {
  display: flex;
  gap: 5px;
  justify-content: center;
  margin-top: 12px;
  flex-wrap: wrap;
}


.cta {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(34, 33, 33, 0.349);
  padding: 8px 10px;
  border-radius: 999px;
  font-weight: 600;
  display: grid;
  place-items: center;
  text-decoration: none;
}


.card {

  width: min(410px, 92vw);
  min-height: min(800px, 86svh);
  background: var(--card);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 15px;
  position: relative;
  align-items: center;
  max-height: calc(100svh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  overflow-y: auto;
  border-radius: 18px;
  z-index: 30;
  overflow-x: hidden;
  scrollbar-gutter: stable;
  scrollbar-width: none;


}


.profile {
  text-align: center;
  margin-top: 20px;
}

.avatar {
  width: 120px;
  height: 120px;
  border-radius: 999px;
  object-fit: cover;
  transform: scale(1.25);
  padding-top: 10px;

}


.name {
  font-size: 26px;
  font-weight: 700;
  margin: 2px 0 0;
  color: var(--muted);

}

.bio {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--muted);
  font-family: "MyFont";
}

.links {
  width: 85%;
  margin-top: 7px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}

.link-pill {
  font-size: 15px;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  width: 100%;
  background: #204d72;
  color: #ffffff;
  border: 0;
  padding: 16px 18px;
  border-radius: 18px;
  min-height: 52px;
  display: grid;
  grid-template-columns: 1fr 18px;
  align-items: center;
  cursor: pointer;
  transform: translateY(0) scale(1);
  transition:
    transform 220ms cubic-bezier(.16, 1, .3, 1),
    box-shadow 220ms cubic-bezier(.16, 1, .3, 1),
    filter 220ms cubic-bezier(.16, 1, .3, 1);
  will-change: transform;
  font-family: "MyFont";

}


.link-pill::before {
  content: "";
  position: absolute;
  inset: 0;

  background: radial-gradient(circle 120px at var(--x) var(--y),
      #254072,
      transparent 60%);

  opacity: 0;
  transition: opacity 0.2s;
  text-decoration: none;
}

.link-pill:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 18px 46px rgba(255, 255, 255, 0.35);
}





.link-pill:active {
  transform: scale(0.985);
}

.link-title {
  text-align: center;
  font-weight: 400px;
  line-height: 1.2;
  padding-left: 18px;
  text-decoration: none;

}

.kebab {
  width: 18px;
  height: 10px;
  display: grid;
  place-items: center;
  color: #ffffff;
  opacity: 0.8;
  transform: translateY(-4px);

}

.kebab:hover {
  opacity: 1;
}

.social {
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding-top: 2px;
  margin-top: 4px;
  margin-bottom: 6px;

}

.social a {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(22, 22, 22, 0.87);
  color: #fff;
  text-decoration: none;
  transition: transform 0.12s ease, background 0.12s ease;
}

.social a:active {
  transform: scale(0.96);
}

.menu {
  position: fixed;
  background: #2b2929;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 12px;
  padding: 8px;
  width: 170px;
  box-shadow: 0 24px 60px rgba(27, 27, 27, 0.9);
  z-index: 9999;
}

.menu button {
  width: 100%;
  background: transparent;
  border: 0;
  color: #fff;
  padding: 10px 10px;
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  font-size: 14px;
}

.menu button:hover {
  background: rgba(255, 255, 255, 0.08);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(22px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  background: rgba(27, 27, 27, 0.9);
  color: #fff;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 13px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.toast.show {
  opacity: 1;
}



.social a img {
  width: 18px;
  height: 18px;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.social a:hover img {
  opacity: 1;
}

.links:hover .link-pill {
  filter: brightness(0.97);
  opacity: 0.78;
  transform: translateY(0) scale(0.995);
}

.links:hover .link-pill:hover {
  opacity: 1;
  filter: none;
  transform: translateY(-6px) scale(1.03);
}


.logoArahoosh {
  margin-top: auto;
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding-top: 6px;
  margin-top: -6px;
  margin-bottom: -6px;


}



@media (max-width: 360px) {
  .card {
    padding-top: 10px;
    gap: 18px;
    width: 100vw;
    min-height: 100svh;
    max-height: 100svh;

    border-radius: 0;
    box-shadow: none;

    overflow-y: auto;
  }

}

@media (max-height: 700px) {
  .card {
    gap: 12px;
    padding-top: 10px;
  }

  .avatar {
    width: 78px;
    height: 78px;
  }

  .logo {
    width: 82px;
    height: 82px;
  }

  .links {
    gap: 12px;
    margin-top: 10px;
  }

  .social {
    margin-top: 30px;
    padding-bottom: 8px;
  }
}

@media (max-width: 768px) {

  body {
    background: #000 !important;
    background-image: none !important;
  }

  .screen::before {
    display: none !important;
  }

  .screen {
    padding: 0 !important;
  }

  .card {
    width: 100vw;
    min-height: 100svh;
    max-height: 100svh;

    border-radius: 0;
    box-shadow: none;
    padding-top: 10px;

    overflow-y: auto;
  }

  .viweOnMobile {
    display: none;
  }
}


.btnAra {
  position: absolute;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: url("icons/arahoosh.png") no-repeat center;
  background-size: 20px;
  cursor: pointer;
  left: 16px;
}


.arahoosh {
  position: absolute;
  top: 16px;
  left: 0;
  right: 0;
  height: 20px;
  z-index: 20;
}

.btnShare {
  position: absolute;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: url("icons/share.png") no-repeat center;
  background-size: 20px;
  cursor: pointer;
  right: 16px;
}

.btnAra:after {
  content: attr(data-tip);
  position: absolute;
  top: 120%;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: rgba(20, 20, 20, 0.836);
  color: #fff;
  font-size: 12px;
  font-family: "MyFont";
  padding: 6px 10px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 150ms ease, transform 150ms ease;
  z-index: 50;
}

.btnAra:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.btnShare:after {
  content: attr(data-tip);
  position: absolute;
  top: 120%;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: rgba(20, 20, 20, 0.89);
  color: #fff;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 150ms ease, transform 150ms ease;
  z-index: 50;
}

.btnShare:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}


.text-link {
  font-size: 9px;
  font-weight: 600;
  color: #000000;
  display: grid;
  place-items: center;
  text-decoration: none;

}


.footer {

  background-color: #ffffff;
  color: #000;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 38px 38px 0 0;
  align-items: center;
  align-items: center;
  justify-content: center;
  margin-bottom: -1000px;


}


.arahooshR {
  font-size: 13px;
  font-family: "arahooshf";
  font-weight: 600;
  margin-top: 20px;
  color: #121c33;
  place-items: center;
  text-decoration: solid;
  padding-bottom: 20px;

}




.arahooshR:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}


.viweOnMobile {
  position: fixed;
  bottom: 20px;
  right: 10px;
  width: 130px;
  height: auto;
  z-index: 999;
}



.facts {
  width: 95%;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 20px;
  padding: 14px 10px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 12px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.fact {
  text-align: center;
  padding: 10px 8px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.442);
  border: 1.5px solid rgba(20, 15, 70, 0.06);
  display: grid;
  gap: 6px;
  align-content: center;
  min-height: 40px;
}

.fact b {
  display: block;
  font-size: 12px;
  font-weight: bold;
  color: #1b1b1b;
  line-height: 1.2;
}

.fact small {
  display: block;
  font-size: 11px;
  color: #0000008c;
  line-height: 1.4;
}


@media (max-width: 420px) {
  .facts {
    grid-template-columns: repeat(2, 1fr);
    padding: 12px 10px;
  }

  .fact {
    min-height: 64px;

  }
}



.tabs {
  width: 97%;
  margin-top: 23px;
  margin-bottom: 10px;
  display: flex;
  gap: 9px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.tab {
  appearance: none;
  border: 0;
  cursor: pointer;
  font-family: "MyFont";
  padding: 10px 14px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.85);
  color: rgba(23, 54, 100, 0.7);
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.136);
  border: 1px solid rgba(255, 255, 255, 0.35);
  transition: transform 180ms cubic-bezier(.16, 1, .3, 1),
    background 180ms cubic-bezier(.16, 1, .3, 1),
    color 180ms cubic-bezier(.16, 1, .3, 1),
    box-shadow 180ms cubic-bezier(.16, 1, .3, 1);
}

.tab:hover {
  transform: translateY(-2px);
}

.tab.active {
  background: rgba(36, 73, 129, 0.95);
  color: #fff;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
  border-color: rgba(255, 255, 255, 0.20);
}

.tab:active {
  transform: translateY(0) scale(0.985);
}



.tabpanes {
  width: 88%;
  margin-top: 12px;
  display: grid;
  gap: 12px;
  padding-bottom: 10px;
}

.pane {
  display: none;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 22px;
  padding: 16px 14px;
  margin-bottom: 40px;
  color: #254072;
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.17);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.pane.active {
  display: block;
  animation: paneIn 1100ms cubic-bezier(.16, 1, .3, 1);
}

@keyframes paneIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pane h2 {
  margin: 0 0 10px 0;
  font-size: 25px;
  color: #192542;
  font-weight: bold;
}

.pane p {
  margin: 0;
  font-size: 14px;
  line-height: 1.9;
  color: #192542;
}

.pane h3 {
  margin: 20px 0 0 0;
  font-size: 16px;
  line-height: 1.6;
  color: #192542;
  font-weight: bold;

}



.news-ticker {
  width: 100%;
  overflow: hidden;
  background-color: #f3f3f300;
  font-family: "MyFont";
  margin-top: 20px;
  margin-bottom: 50px;
}

#ticker-wrapper {
  display: inline-block;
  white-space: nowrap;
  font-weight: bold;
  opacity: 0;
  color: #111;
  transform: translateX(-100%);


}


.ticker {
  position: absolute;
  white-space: nowrap;
  font-weight: bold;
  font-size: 14px;
  color: #111;

}