.profile-card { display: flex; flex-direction: column; gap: 10px; padding: 12px; background: rgba(35, 30, 49, .7); border-radius: 10px; }
.profile-card h2 { margin: 0; }
.identity { flex-direction: row; align-items: center; gap: 12px; }
.identity-avatar { flex: none; font-size: 42px; line-height: 1; }
.identity-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; align-items: flex-start; }
.identity-text b { font-size: 24px; font-weight: 900; font-style: italic; line-height: 1.15; overflow-wrap: anywhere; }
.identity-text small { color: var(--muted); font-size: 13px; line-height: 1.35; }
.identity-text small.rainbow-name { color: transparent; font-weight: 800; }
.avatars { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.avatar {
  aspect-ratio: 1;
  padding: 0;
  font-size: 26px;
  line-height: 1;
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}
.avatar.on { border-color: var(--sun); }
.status-line { margin: 0; min-height: 1.3em; font-size: 14px; color: #7ef0c8; }
.status-line.bad { color: #ff9b85; }
#username[readonly] { opacity: .6; cursor: not-allowed; }
.identity-avatar.vip-hias { margin: 22px 26px 24px 14px; }
#shownVip { text-decoration: none; }
.vip-all { align-self: flex-start; margin-top: 6px; text-decoration: none; }
.vipav-title { margin-top: 8px !important; }
.vipav-groups { display: flex; flex-direction: column; gap: 14px; }
.vipav-group { display: flex; flex-direction: column; gap: 8px; }
.vipav-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px; }
.vipav { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 4px 7px; color: var(--ink); font: inherit; overflow: hidden; background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--rar) 28%, transparent), var(--panel) 70%); border: 2px solid color-mix(in srgb, var(--rar) 70%, transparent); border-radius: 12px; cursor: pointer; transition: transform .15s; }
.vipav:not(:disabled):hover { transform: translateY(-2px); }
.vipav-face { font-size: 34px; line-height: 1.1; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--rar) 80%, transparent)); }
.vipav small { max-width: 100%; overflow: hidden; font-size: 11px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.vipav i { color: var(--rar); font-size: 10px; font-style: normal; font-weight: 900; }
.vipav.on { border-color: var(--sun); box-shadow: 0 0 0 2px var(--sun), 0 0 14px color-mix(in srgb, var(--sun) 60%, transparent); }
.vipav.locked { cursor: not-allowed; }
.vipav.locked .vipav-face { filter: grayscale(1) brightness(.55); }
.vipav.locked small { opacity: .6; }
.vipav.rar-rare:not(.locked) { box-shadow: 0 0 10px color-mix(in srgb, var(--rar) 45%, transparent); }
.vipav.rar-epic:not(.locked) { box-shadow: 0 0 14px color-mix(in srgb, var(--rar) 55%, transparent); }
.vipav.rar-epic:not(.locked)::after, .vipav.rar-mythic:not(.locked)::after { content: ''; position: absolute; top: -50%; left: -120%; width: 50%; height: 200%; pointer-events: none; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent); transform: rotate(25deg); animation: vipav-kilau 3.5s ease-in-out infinite; }
.vipav.rar-mythic:not(.locked) { border-color: transparent; background: radial-gradient(circle at 50% 30%, rgba(255, 211, 74, .3), var(--panel) 70%) padding-box, conic-gradient(from var(--vip-a), #ffd34a, #ff5fd2, #b066ff, #22c7e8, #3ddc84, #ffd34a) border-box; box-shadow: 0 0 16px rgba(255, 211, 74, .45); animation: vip-putar 3s linear infinite; }
.vipav.rar-mythic:not(.locked)::after { animation-duration: 2.4s; }
@keyframes vipav-kilau { 0%, 40% { left: -120%; } 80%, 100% { left: 170%; } }
@media (prefers-reduced-motion: reduce) { .vipav, .vipav::after { animation: none !important; } }
.mine-groups { display: flex; flex-direction: column; gap: 12px; }
.mine-group { display: flex; flex-direction: column; gap: 6px; }
.mine-head { color: var(--sun); font-size: 14px; font-weight: 900; letter-spacing: .4px; text-transform: uppercase; }
.mine-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.mine-card { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 8px 6px; text-align: center; background: var(--panel); border: 2px solid var(--line); border-radius: 10px; }
.mine-card.on { border-color: var(--sun); box-shadow: 0 0 12px rgba(255, 194, 61, .35); }
.mine-card small { max-width: 100%; overflow: hidden; font-size: 12px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.mine-card .btn { width: 100%; text-decoration: none; }
.mine-on { color: #1d0f0a; background: var(--sun); border-color: var(--sun); }
.mine-preview { display: grid; place-items: center; width: 100%; min-height: 56px; overflow: hidden; background: rgba(255, 255, 255, .05); border-radius: 8px; overflow-wrap: anywhere; }
.mine-preview.mine-emoji { font-size: 34px; line-height: 1; }
.mine-preview.mine-stiker { min-height: 72px; }
.mine-preview b { font-size: 15px; font-weight: 900; }
.mine-preview .title-tag { margin-left: 0; }

/* ===== Reka bentuk baharu (2026-11-13): kad pemain, tab, darjat barang ===== */
.pf-page { gap: 12px; }
.pf-hero {
  position: relative; overflow: hidden; flex-direction: column; align-items: center; gap: 6px; padding: 26px 14px 14px; text-align: center;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(180, 140, 255, .35), transparent 60%),
    linear-gradient(160deg, #2c2150, #231a3a 55%, #1b1530);
  border: 1px solid rgba(180, 140, 255, .45); border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.pf-hero-glow {
  position: absolute; inset: -40%; pointer-events: none;
  background: conic-gradient(from 0deg, transparent 0 70%, rgba(255, 230, 150, .14) 80%, transparent 90%);
  animation: pf-putar 9s linear infinite;
}
@keyframes pf-putar { to { transform: rotate(1turn); } }
.pf-hero .identity-avatar { position: relative; display: grid; place-items: center; width: 84px; height: 84px; font-size: 56px; background: rgba(255, 255, 255, .07); border-radius: 50%; box-shadow: 0 0 0 3px rgba(255, 194, 61, .55), 0 0 22px rgba(255, 194, 61, .35); }
.pf-hero .identity-avatar.vip-hias { margin: 14px 24px 18px; width: 84px; height: 84px; font-size: 52px; border-radius: 20px; }
.pf-hero .identity-text { position: relative; align-items: center; }
.pf-name-line { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; }
.pf-hero .identity-text b { font-size: 26px; }
.pf-pop { animation: pf-pop .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes pf-pop { 0% { transform: scale(.7); } 60% { transform: scale(1.12); } 100% { transform: none; } }
.pf-stats { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; margin-top: 6px; }
.pf-stat {
  display: grid; justify-items: center; gap: 1px; padding: 8px 4px; font: inherit; color: var(--ink); text-decoration: none; cursor: pointer;
  background: rgba(0, 0, 0, .3); border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px; transition: transform .15s;
}
.pf-stat:active { transform: scale(.95); }
.pf-stat span { font-size: 18px; line-height: 1.1; }
.pf-stat b { color: var(--sun); font-size: 17px; font-weight: 900; font-variant-numeric: tabular-nums; }
.pf-stat small { color: var(--muted); font-size: 11px; font-weight: 800; }
.pf-coin { display: inline-block; width: 20px; height: 20px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff6c8, #ffd34d 40%, #e39a00 75%, #a86400); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .25), 0 0 8px rgba(255, 194, 61, .5); }

.pf-tabs {
  position: sticky; top: 0; z-index: 5; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 6px 0;
  background: linear-gradient(180deg, var(--night) 75%, transparent);
}
.pf-tabs button {
  display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; padding: 6px 8px; font: inherit; color: var(--ink); cursor: pointer;
  background: var(--panel); border: 2px solid var(--line); border-radius: 14px; transition: border-color .15s, transform .15s, background-color .15s;
}
.pf-tabs button span { font-size: 18px; }
.pf-tabs button b { font-size: 13px; font-weight: 900; white-space: nowrap; }
.pf-tabs button.on { color: var(--sun); background: rgba(255, 194, 61, .12); border-color: var(--sun); transform: translateY(-1px); }
.pf-tabs button:active { transform: scale(.96); }
.pf-hide { display: none !important; }
.pf-pane { animation: pf-masuk .25s ease-out; }
@keyframes pf-masuk { from { opacity: 0; transform: translateY(6px); } }
.pf-akaun { display: flex; flex-direction: column; gap: 12px; }

.avatars { gap: 8px; }
.avatar { font-size: 28px; border-radius: 12px; transition: transform .15s, border-color .15s; }
.avatar:active { transform: scale(.9); }
.avatar.on { background: rgba(255, 194, 61, .14); box-shadow: 0 0 12px rgba(255, 194, 61, .45); transform: scale(1.05); }

.pf-pane-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pf-shop-link { text-decoration: none; }
.pf-collection { display: grid; gap: 6px; }
.pf-collection-head { display: flex; justify-content: space-between; font-size: 13px; }
.pf-collection-head span { color: var(--sun); font-weight: 900; font-variant-numeric: tabular-nums; }
.pf-progress { height: 8px; overflow: hidden; background: rgba(255, 255, 255, .08); border-radius: 999px; }
.pf-progress i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, #ffc23d, #ff7a36); border-radius: inherit; transition: width .4s; }
.pf-filters { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.pf-filters::-webkit-scrollbar { display: none; }
.pf-chip { flex: none; padding: 6px 12px; font: inherit; font-size: 12px; font-weight: 900; color: var(--ink); white-space: nowrap; cursor: pointer; background: var(--panel); border: 1.5px solid var(--line); border-radius: 999px; }
.pf-chip.on { color: #1d0f0a; background: var(--sun); border-color: var(--sun); }

.mine-card {
  --c: #8c86a0; --glow: transparent;
  position: relative; overflow: hidden; border-width: 1.5px; border-radius: 14px; padding: 8px;
  border-color: color-mix(in srgb, var(--c) 55%, transparent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 16%, var(--panel)), var(--panel) 55%);
  box-shadow: 0 0 12px var(--glow);
}
.mine-card.jarang { --c: #4fa3ff; }
.mine-card.epik { --c: #b56bff; --glow: rgba(181, 107, 255, .25); }
.mine-card.legenda { --c: #ffb42a; --glow: rgba(255, 180, 42, .35); }
.mine-card.epik::after, .mine-card.legenda::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .2), transparent); transform: skewX(-18deg);
  animation: pf-kilau 3.6s ease-in-out infinite;
}
@keyframes pf-kilau { 0%, 55% { left: -60%; } 100% { left: 130%; } }
.mine-card.on { border-color: var(--sun); box-shadow: 0 0 0 2px var(--sun), 0 0 16px rgba(255, 194, 61, .4); }
.mine-top { display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 18px; }
.mine-worn { display: grid; place-items: center; width: 20px; height: 20px; font-size: 12px; font-weight: 900; color: #3b2200; background: var(--sun); border-radius: 50%; }
.pf-rarity { padding: 2px 7px; font-size: 10px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: #6d6780; border-radius: 999px; }
.pf-rarity.jarang { background: #2f7fe0; }
.pf-rarity.epik { background: linear-gradient(90deg, #8b3dff, #c46bff); }
.pf-rarity.legenda { color: #3b2200; background: linear-gradient(90deg, #ffd34d, #ff9d1c); }
.mine-preview { background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03) 70%); border-radius: 10px; }
.pf-empty {
  display: grid; justify-items: center; gap: 4px; padding: 22px 12px; color: var(--ink); text-align: center; text-decoration: none;
  background: linear-gradient(135deg, rgba(255, 194, 61, .14), rgba(180, 140, 255, .12)); border: 1px dashed rgba(255, 194, 61, .5); border-radius: 14px;
}
.pf-empty span { font-size: 40px; }
.pf-empty small { color: var(--sun); font-weight: 900; }

.pf-burst { position: fixed; z-index: 60; width: 0; height: 0; pointer-events: none; }
.pf-burst i { position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 2px; animation: pf-letup .8s cubic-bezier(.15, .8, .35, 1) forwards; }
@keyframes pf-letup { to { transform: translate(var(--x), var(--y)) rotate(200deg); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .pf-hero-glow, .mine-card::after { display: none; }
  .pf-pane, .pf-pop { animation: none; }
}
.pf-shop-link { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 4px 12px; }
