/* ================================================================ Görünüm paketleri — site geneli
   Yarışmacının satın aldığı çerçeve / isim tasarımı / giriş efekti, kartların dışında da görünür:
   sohbet (app.js chatAvatarHtml, ufx-name) ve profil pop-up'ı (mock-app.js applyModalLook).
   Renkler kart efektleriyle (app.css .hp-card.fx-*) aynıdır. --fx-ang ve fx-spin app.css'te tanımlı. */

/* ---------- çerçeve renkleri */
.ufx-av--gold, .ufx-frame--gold {
  --ufx-g: conic-gradient(from var(--fx-ang), #fff6d5, #f2c14e, #a86b12, #fde68a, #fff6d5, #f2c14e, #a86b12, #fff6d5);
  --ufx-glow: rgba(242, 193, 78, 0.7);
}
.ufx-av--neon, .ufx-frame--neon {
  --ufx-g: conic-gradient(from var(--fx-ang), #f0abfc, #ec4899, #8b5cf6, #22d3ee, #f0abfc, #ec4899, #8b5cf6, #f0abfc);
  --ufx-glow: rgba(236, 72, 153, 0.75);
}
.ufx-av--prism, .ufx-frame--prism {
  --ufx-g: conic-gradient(from var(--fx-ang), #f472b6, #fbbf24, #fff6d5, #c084fc, #f472b6 50%, #fbbf24, #fff6d5, #c084fc, #f472b6);
  --ufx-glow: rgba(236, 72, 153, 0.6);
}
.ufx-av--emerald, .ufx-frame--emerald {
  --ufx-g: conic-gradient(from var(--fx-ang), #d1fae5, #34d399, #047857, #a7f3d0, #d1fae5, #10b981, #065f46, #d1fae5);
  --ufx-glow: rgba(16, 185, 129, 0.7);
}
.ufx-av--fire, .ufx-frame--fire {
  --ufx-g: conic-gradient(from var(--fx-ang), #fef08a, #f97316, #dc2626, #fb923c, #fef08a, #ef4444, #b91c1c, #fef08a);
  --ufx-glow: rgba(239, 68, 68, 0.7);
}
.ufx-av--diamond, .ufx-frame--diamond {
  --ufx-g: conic-gradient(from var(--fx-ang), #ffffff, #bae6fd, #7dd3fc, #e0e7ff, #ffffff, #a5b4fc, #67e8f9, #ffffff);
  --ufx-glow: rgba(125, 211, 252, 0.75);
}

/* ---------- küçük avatar çerçevesi (sohbet) */
.ufx-av {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  align-self: flex-start;
  padding: 2px;
  border-radius: 50%;
  box-shadow: 0 0 9px -1px var(--ufx-glow);
}
.ufx-av::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--ufx-g);
  animation: fx-spin 4s linear infinite;
}
.ufx-av > img {
  position: relative;
  margin: 0 !important;
  box-shadow: 0 0 0 1.5px #120d1d !important;
}

/* ---------- profil pop-up'ı: fotoğrafın kenarında dönen çerçeve */
#modal-avatar-wrap.ufx-frame {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 46px -6px var(--ufx-glow),
    0 24px 50px -12px rgba(0, 0, 0, 0.7) !important;
}
#modal-avatar-wrap.ufx-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  border-radius: inherit;
  padding: 4px;
  background: var(--ufx-g);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: fx-spin 4s linear infinite;
  pointer-events: none;
}

/* ---------- isim tasarımları (sohbet + pop-up başlığı) */
.ufx-name {
  background-size: 200% 100% !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent;
  color: transparent !important;
  font-weight: 800 !important;
  animation: fx-name 3.2s linear infinite;
}
.ufx-name--glow {
  background-image: linear-gradient(90deg, #fff6d5, #fbbf24 30%, #f472b6 55%, #fff6d5 80%) !important;
  filter: drop-shadow(0 0 5px rgba(251, 191, 36, 0.5));
}
.ufx-name--ice {
  background-image: linear-gradient(90deg, #ffffff, #7dd3fc 30%, #a5b4fc 55%, #ffffff 80%) !important;
  filter: drop-shadow(0 0 5px rgba(125, 211, 252, 0.6));
}
.ufx-name--rose {
  background-image: linear-gradient(90deg, #ffe4e6, #fb7185 30%, #f0abfc 55%, #ffe4e6 80%) !important;
  filter: drop-shadow(0 0 5px rgba(251, 113, 133, 0.6));
}

/* ---------- giriş efekti: pop-up açılınca fotoğraftan konfeti */
.ufx-burst {
  position: fixed;
  z-index: 75;
  width: 0;
  height: 0;
  pointer-events: none;
}
.ufx-burst i {
  position: absolute;
  left: calc(var(--w, 10px) / -2);
  top: calc(var(--h, 14px) / -2);
  width: var(--w, 10px);
  height: var(--h, 14px);
  border-radius: 2px;
  opacity: 0;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.35);
  animation: ufx-burst var(--t, 2.6s) cubic-bezier(0.1, 0.8, 0.25, 1) forwards;
}
.ufx-burst i.is-star {
  background: none !important;
  box-shadow: none;
  width: auto;
  height: auto;
  font-style: normal;
  font-size: var(--w, 16px);
  line-height: 1;
  filter: drop-shadow(0 0 6px rgba(253, 230, 138, 0.9));
}
.ufx-burst b {
  position: absolute;
  left: -110px;
  top: -110px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 246, 213, 0.75), rgba(244, 114, 182, 0.35) 40%, transparent 70%);
  opacity: 0;
  animation: ufx-flash 0.9s ease-out forwards;
}
@keyframes ufx-flash {
  0% { opacity: 0; transform: scale(0.3); }
  25% { opacity: 1; }
  100% { opacity: 0; transform: scale(1.6); }
}
@keyframes ufx-burst {
  0% { opacity: 1; transform: translate(0, 0) scale(0.3) rotate(0); }
  12% { opacity: 1; transform: translate(calc(var(--dx) * 0.55), calc(var(--dy) * 0.55)) scale(1.15) rotate(calc(var(--r) * 0.3)); }
  75% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--dx), calc(var(--dy) + 170px)) rotate(var(--r)) scale(0.9); }
}

@media (prefers-reduced-motion: reduce) {
  .ufx-av::before, #modal-avatar-wrap.ufx-frame::before, .ufx-name { animation: none; }
}

/* ---------- pop-up başlığı: Türkiye sırası (altın) + yanında aynı boyda il sırası (metalik gri) */
.pm-rank { display: flex; flex-direction: row; align-items: stretch; gap: 8px; }
#modal-username-rank, .pm-rank__city { min-width: 96px; }
#modal-username-rank .pm-rank__txt, .pm-rank__city .pm-rank__txt {
  display: flex; flex-direction: column; align-items: flex-start; line-height: 1; position: relative; z-index: 1; min-width: 0;
}
#modal-username-rank .pm-rank__txt small, .pm-rank__city .pm-rank__txt small {
  margin-bottom: 4px; font-size: 9px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  max-width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
#modal-username-rank .pm-rank__txt small { color: rgba(90, 55, 5, 0.85); }
#modal-username-rank .pm-rank__txt b, .pm-rank__city .pm-rank__txt b { font-weight: 900; }

.pm-rank__city {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 9px 14px 9px 10px;
  border-radius: 14px;
  overflow: hidden;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: #1d2129;
  border: 1px solid rgba(241, 245, 249, 0.5);
  background: linear-gradient(160deg, #f8fafc 0%, #cbd5e1 38%, #94a3b8 72%, #64748b 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    inset 0 -3px 8px rgba(30, 41, 59, 0.4),
    0 10px 22px -8px rgba(148, 163, 184, 0.45);
}
.pm-rank__city.hidden { display: none; }
.pm-rank__city::before {
  content: "location_on";
  font-family: "Material Symbols Outlined";
  font-variation-settings: "FILL" 1, "wght" 600;
  font-size: 20px;
  line-height: 1;
  color: #334155;
  -webkit-font-feature-settings: "liga";
  font-feature-settings: "liga";
}
.pm-rank__city::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.6) 50%, transparent 65%);
  background-size: 250% 100%;
  animation: badge-sweep 4.5s ease-in-out 1.2s infinite;
  pointer-events: none;
}
.pm-rank__city .pm-rank__txt small { color: rgba(30, 41, 59, 0.75); }
@media (max-width: 767px) {
  .pm-rank__city { font-size: 18px; padding: 7px 10px 7px 8px; border-radius: 12px; }
  .pm-rank__city::before { font-size: 17px; }
  #modal-username-rank, .pm-rank__city { min-width: 0; }
}
@media (prefers-reduced-motion: reduce) { .pm-rank__city::after { animation: none; } }

/* ---------- hesap menüsü: Öne Çıkar */
.um__boost {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0 2px;
  padding: 9px 10px 9px 9px;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  border: 1px solid rgba(253, 230, 138, 0.35);
  background: linear-gradient(135deg, rgba(242, 193, 78, 0.16), rgba(236, 72, 153, 0.1) 60%, rgba(139, 92, 246, 0.12));
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.um__boost::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 246, 213, 0.18) 50%, transparent 65%);
  background-size: 250% 100%;
  animation: badge-sweep 4s ease-in-out infinite;
  pointer-events: none;
}
.um__boost:hover { border-color: rgba(253, 230, 138, 0.7); }
.um__boost-ico {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  color: #3b2606;
  background: linear-gradient(160deg, #fff6d5, #f6cf5f 45%, #d99a1e);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 6px 14px -6px rgba(242, 193, 78, 0.8);
}
.um__boost-ico .material-symbols-outlined { font-size: 19px; font-variation-settings: "FILL" 1; }
.um__boost-lbl { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; font-size: 13.5px; font-weight: 800; color: #fde68a; }
.um__boost-lbl small { font-size: 11px; font-weight: 600; color: rgba(253, 230, 138, 0.62); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.um__boost-cta {
  flex-shrink: 0;
  height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #ec4899);
}
@media (prefers-reduced-motion: reduce) { .um__boost::after { animation: none; } }
