body {
  margin: 0;
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  background: #fff;
  color: #222;
  text-align: center;
  min-height: 100vh;
  direction: rtl;
  box-sizing: border-box;
}
.pattern-bg {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 390px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.16;
  background:
    url('Logos/Amir_formula_logo.png') 5vw 15px/80px 80px no-repeat,
    url('Logos/Amir_formula_logo.png') 15vw 60px/56px 56px no-repeat,
    url('Logos/Amir_formula_logo.png') 25vw 18px/72px 72px no-repeat,
    url('Logos/Amir_formula_logo.png') 38vw 95px/64px 64px no-repeat,
    url('Logos/Amir_formula_logo.png') 50vw 35px/90px 90px no-repeat,
    url('Logos/Amir_formula_logo.png') 60vw 85px/60px 60px no-repeat,
    url('Logos/Amir_formula_logo.png') 72vw 10px/70px 70px no-repeat,
    url('Logos/Amir_formula_logo.png') 87vw 55px/60px 60px no-repeat,
    url('Logos/Amir_formula_logo.png') 95vw 110px/80px 80px no-repeat,
    url('Logos/formula1-icon.png') 12vw 120px/50px 50px no-repeat,
    url('Logos/formula1-icon.png') 32vw 40px/60px 60px no-repeat,
    url('Logos/formula1-icon.png') 65vw 70px/42px 42px no-repeat,
    url('Logos/formula1-icon.png') 92vw 145px/54px 54px no-repeat,
    url('Logos/data-analysis-icon.png') 4vw 180px/54px 54px no-repeat,
    url('Logos/data-analysis-icon.png') 28vw 160px/56px 56px no-repeat,
    url('Logos/data-analysis-icon.png') 55vw 145px/50px 50px no-repeat,
    url('Logos/data-analysis-icon.png') 85vw 180px/54px 54px no-repeat;
}
main {
  position: relative;
  z-index: 1;
  max-width: 430px;
  margin: 36px auto 0 auto;
  background: rgba(255,255,255,0.97);
  border-radius: 24px;
  box-shadow: 0 10px 40px #0001;
  padding: 44px 28px 22px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.avatar {
  width: 110px; height: 110px;
  border-radius: 22px;
  margin: 8px auto 0;
  display: block;
  background: #fff;
  border: 2px solid #eee;
  object-fit: cover;
}
h2 {
  margin: 20px 0 2px 0;
  font-size: 2em;
  font-weight: bold;
}
.subtitle {
  color: #666;
  font-size: 1.15em;
  margin-bottom: 12px;
}
h3 {
  margin: 28px 0 12px 0;
  font-size: 1.17em;
  font-weight: normal;
}
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 350px;
  margin: 10px auto;
  padding: 15px 0;
  border-radius: 18px;
  font-size: 1.15em;
  font-weight: bold;
  text-decoration: none;
  color: #fff;
  transition: filter .18s, box-shadow .18s;
  box-shadow: 0 3px 14px #0001;
  border: none;
  gap: 10px;
}
.btn .icon { font-size: 1.2em; vertical-align: middle;}
.btn.instagram {
  background: linear-gradient(90deg, #f58529 0%, #dd2a7b 60%, #515bd4 100%);
}
.btn.telegram { background: #2196F3; }
.btn.x { background: #222; }
.btn.youtube { background: #ff0000; }
.btn:hover, .btn:focus { filter: brightness(.94) saturate(1.2); box-shadow: 0 8px 30px #0002;}
.btn-icon {
  width: 1.5em;
  height: 1.5em;
  margin-left: 8px;
  display: inline-block;
  vertical-align: middle;
  object-fit: contain;
}
h4 {
  margin: 32px 0 14px 0;
  font-weight: normal;
  font-size: 1.12em;
}
/* حمایت مالی box */
.support-links {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 18px;
  width: 100%;
}
.quick.coffeete {
  background: linear-gradient(90deg, #b58e4a 0%, #ffd700 100%);
  color: #fff;
  border: none;
  box-shadow: 0 2px 10px #b58e4a30;
  font-weight: bold;
  font-size: 1.15em;
  width: 100%;
  max-width: 350px;
  padding: 0 5px;
  margin: 0 auto;
  height: 48px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .14s, color .14s, transform .1s;
  text-decoration: none;
  gap: 10px;
  position: relative;
}
.quick.coffeete:hover {
  background: linear-gradient(90deg, #d4b06c 0%, #ffe17c 100%);
  color: #fff;
  transform: translateY(-2px) scale(1.05);
}
.coffeete-icon {
  width: 1.5em;
  height: 1.5em;
  display: inline-block;
  vertical-align: middle;
  object-fit: contain;
  margin-left: 8px;
}
.support-text {
  font-size: 1em;
  font-weight: bold;
  color: #fff;
  margin-right: 0;
  padding-left: 0;
  /* Make sure text doesn't wrap on small screens */
  white-space: nowrap;
}
.quick-links {
  display: grid;
  grid-template-columns: repeat(4, 48px);
  justify-content: center;
  gap: 14px;
  margin-bottom: 28px;
}
.quick {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 16px;
  background: #eee;
  color: #555;
  transition: background .14s, color .14s, transform .1s;
  box-shadow: 0 1px 4px #0002;
  text-decoration: none;
  font-size: 1.55em;
  padding: 0;
}
.quick.discord { background: #dbeafe; color: #5865F2;} /* lighter discord */
.quick.whatsapp { background: #25d366; color: #fff;}
.quick.telegram { background: #2196F3; color: #fff;}
.quick.email { background: #fff;}
.quick:hover { transform: translateY(-3px) scale(1.07); filter: brightness(.95);}
.quick-icon {
  width: 1.3em;
  height: 1.3em;
  display: inline-block;
  vertical-align: middle;
  object-fit: contain;
}
.gmail-icon {
  width: 1.2em;
  height: auto;
  aspect-ratio: 1.4 / 1;
  background: none;
  object-fit: contain;
  margin-left: 0;
}
.web-link {
  display: flex;
  align-items: center;
  background: #ffe025;
  color: #222;
  border-radius: 16px;
  padding: 15px 13px;
  max-width: 350px;
  margin: 18px auto 24px auto;
  font-weight: 700;
  font-size: 1.08em;
  box-shadow: 0 1px 6px #0001;
  text-decoration: none;
  transition: box-shadow .16s, background .16s;
  gap: 12px;
}
.web-link:hover { background: #ffe97a; box-shadow: 0 4px 18px #0002;}
.web-icon {
  font-size: 2em; margin-left: 10px;
}
.web-link small {
  font-size: .96em;
  font-weight: normal;
  color: #333;
  display: block;
  margin-top: 2px;
}
.accordion-container {
  width: 100%;
  max-width: 350px;
  margin: 0 auto 20px auto;
  text-align: right;
}
.accordion {
  background-color: #f1f1f1;
  color: #444;
  cursor: pointer;
  padding: 15px 18px;
  width: 100%;
  border: none;
  border-radius: 10px 10px 0 0;
  text-align: right;
  outline: none;
  font-size: 1.08em;
  font-weight: bold;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.accordion-title {
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-weight: bold;
  font-size: 1.09em;
  color: #222;
}
.accordion.active, .accordion:hover {
  background-color: #e5e5e5;
}
.arrow {
  font-size: 1.0em;
  margin-right: 8px;
  color: #505050;
  transition: transform 0.2s;
}
.panel {
  padding: 0 18px;
  background-color: #fafafa;
  border-radius: 0 0 10px 10px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  direction: rtl;
}
.panel p {
  margin: 14px 0 14px 0;
  color: #444;
  font-size: 1em;
  line-height: 1.7;
}
footer {
  margin-top: 36px;
  color: #777;
  font-size: 1em;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.footer-logo {
  width: 70px;
  margin: 0 auto 4px auto;
  display: block;
}
.footer-text {
  font-size: 1.12em;
  color: #333;
  font-weight: bold;
  margin-bottom: 6px;
}

@media (max-width: 600px) {
  main {
    max-width: 99vw;
    margin: 0;
    border-radius: 0;
    padding: 30px 7px 12px 7px;
  }
  .avatar {
    width: 85px; height: 85px; border-radius: 14px;
  }
  .btn, .web-link, .accordion-container { max-width: 98vw; font-size: 1em;}
  .web-link, .accordion { padding: 10px 6px; }
  .quick-links { grid-template-columns: repeat(4, 38px); gap: 10px;}
  .quick { width: 38px; height: 38px; font-size: 1.15em; border-radius: 10px;}
  .support-links .quick.coffeete { height: 38px; font-size: 0.95em;}
  h2 { font-size: 1.22em;}
  .pattern-bg { height: 200px; }
}

@media (min-width: 800px) {
  main {
    margin-top: 64px;
    padding: 54px 38px 30px 38px;
    max-width: 500px;
  }
  .avatar { width: 140px; height: 140px; border-radius: 28px;}
  .btn, .web-link, .accordion-container { font-size: 1.17em;}
  .quick-links { grid-template-columns: repeat(4, 56px); gap: 18px;}
  .quick { width: 56px; height: 56px; font-size: 1.9em;}
  .support-links .quick.coffeete { height: 56px; font-size: 1.19em;}
}
