/* 🎖️ Rütbələr və Nişanlar — store cards, the profile badge, the buy dialog and the admin rows.
   Only .mq-rank* / .mq-ranks* / .ranks-admin-* classes: nothing else on the site is styled from here. */
.mq-ranks { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.mq-rank-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 14px 14px; border-radius: 18px; text-align: center; background: radial-gradient(120% 80% at 50% 0%, rgba(250, 204, 21, .18), transparent 60%), linear-gradient(170deg, #131d33, #080e1c); border: 1px solid rgba(250, 204, 21, .3); transition: transform .25s ease, box-shadow .25s ease; }
.mq-rank-card:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -18px rgba(250, 204, 21, .7); }
.mq-rank-card.is-active { border-color: #22c55e; box-shadow: 0 0 0 2px rgba(34, 197, 94, .3) inset; }
.mq-rank-card.is-owned { border-color: rgba(96, 165, 250, .6); }
.mq-rank-card__icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; font-size: 34px; line-height: 1; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); }
.mq-rank-card__name { font-size: 16px; font-weight: 900; color: #fff; }
.mq-rank-card__price { font-size: 13px; font-weight: 800; color: #fde68a; }
.mq-rank-card__btn { width: 100%; margin-top: 4px; padding: 10px 8px; border: 0; border-radius: 12px; cursor: pointer; font-weight: 900; color: #0b1120; background: linear-gradient(135deg, #fde68a, #facc15 50%, #f59e0b); }
.mq-rank-card.is-owned .mq-rank-card__btn { color: #fff; background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.mq-rank-card.is-active .mq-rank-card__btn { color: #fff; background: linear-gradient(135deg, #22c55e, #15803d); }
.mq-rank-card__btn:disabled { cursor: default; }
.mq-rank-card:not(.is-active) .mq-rank-card__btn:disabled { opacity: .55; filter: grayscale(.4); }
.mq-ranks__hide { grid-column: 1 / -1; justify-self: center; padding: 6px 12px; border: 0; background: none; cursor: pointer; font-size: 13px; font-weight: 700; color: #94a3b8; text-decoration: underline; }
/* Profil: next to the name. */
.mq-rank-namewrap { display: inline-flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 6px; min-width: 0; text-align: right; }
.mq-rank-namewrap .mq-rank-badge { margin-left: 0; }
.mq-rank-badge { display: inline-flex; align-items: center; gap: 5px; margin-left: 8px; padding: 3px 10px 3px 7px; border-radius: 999px; vertical-align: middle; font-size: 13px; font-weight: 800; color: #fde68a; background: rgba(250, 204, 21, .12); border: 1px solid rgba(250, 204, 21, .45); white-space: nowrap; }
.mq-rank-badge[hidden] { display: none !important; }
.mq-rank-badge__icon { font-size: 15px; line-height: 1; }
.mq-rank-badge.is-tick { color: #bfdbfe; background: rgba(59, 130, 246, .16); border-color: rgba(96, 165, 250, .6); }
/* Buy dialog (reuses the site's modal frame). */
.mq-rank-dialog__icon { font-size: 52px; line-height: 1; margin-bottom: 6px; }
.mq-rank-dialog__text { margin: 4px 0 16px; font-size: 14px; line-height: 1.55; color: #cbd5e1; }
.mq-rank-dialog__actions { display: flex; gap: 10px; }
.mq-rank-dialog__actions button { flex: 1; padding: 12px 10px; border: 0; border-radius: 12px; cursor: pointer; font-weight: 900; }
.mq-rank-dialog__actions button[hidden] { display: none; }
.mq-rank-dialog__no { color: #e5e7eb; background: rgba(255, 255, 255, .1); }
.mq-rank-dialog__yes { color: #0b1120; background: linear-gradient(135deg, #fde68a, #facc15 50%, #f59e0b); }
.mq-rank-dialog__yes:disabled { opacity: .6; cursor: wait; }
/* Admin rows. */
#ranks-admin-card .store-admin-form.ranks-admin-form { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, .8fr) auto; }
.ranks-admin-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ranks-admin-row__icon { font-size: 22px; }
.ranks-admin-row strong { flex: 1 1 120px; }
.ranks-admin-row__price { width: 110px; margin: 0; }
@media (max-width: 760px) { #ranks-admin-card .store-admin-form.ranks-admin-form { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .mq-ranks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .mq-rank-card__icon { width: 54px; height: 54px; font-size: 28px; } }
body.light-mode .mq-rank-card { background: #fff; border-color: #f59e0b; }
body.light-mode .mq-rank-card__name { color: #0f172a; }
body.light-mode .mq-rank-card__price { color: #92400e; }
body.light-mode .mq-rank-badge { color: #92400e; background: #fffbeb; }
body.light-mode .mq-rank-badge.is-tick { color: #1d4ed8; background: #eff6ff; }
