/* Retailer rankings (/retailer) — builds on portal.css tokens */
.rt-main { max-width: 860px; padding-bottom: 40px; }
.rt-signin { margin-left: auto; }
.rt-signin .ico { width: 17px; height: 17px; }

/* Hero */
.rt-hero {
  position: relative; overflow: hidden; display: flex; gap: 22px; align-items: center;
  padding: 28px; border-radius: 24px; color: #fff; background: var(--brand-gradient-v);
  box-shadow: var(--shadow-lg);
}
.rt-hero::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.18), rgba(255,255,255,0) 70%); pointer-events: none;
}
.rt-hero-mark { flex: none; width: 104px; height: 104px; padding: 8px; border-radius: 22px; background: #fff; box-shadow: 0 12px 30px rgba(0,0,0,.25); }
.rt-hero-mark img { width: 100%; height: 100%; object-fit: cover; border-radius: 15px; }
.rt-hero-text { position: relative; z-index: 1; min-width: 0; }
.rt-hero .eyebrow { color: #FFC7E6; }
.rt-hero h1 { font-family: var(--display); font-size: 40px; line-height: 1; text-transform: uppercase; letter-spacing: .01em; margin: 8px 0 8px; }
.rt-hero p { color: rgba(255,255,255,.85); font-weight: 500; max-width: 520px; }
.rt-hero-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.rt-hero-meta span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; background: rgba(255,255,255,.14); font-size: 12.5px; font-weight: 600; }
.rt-hero-meta .ico { width: 15px; height: 15px; opacity: .9; }

/* Lookup */
.rt-lookup { padding: 22px; }
.rt-lookup h2 { font-family: var(--display); font-size: 22px; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 12px; }
.rt-lookup-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: start; }
.rt-lookup-row .btn { margin-top: 26px; height: 52px; white-space: nowrap; }
.rt-lookup .control input { letter-spacing: .12em; font-weight: 700; }
.rt-lookup .field.has-error .control { border-color: var(--red); background: #FFF8FA; }
.rt-lookup .hint .err { color: var(--red); }
.rt-result-wrap { margin-top: 18px; scroll-margin-top: 90px; }
.rt-result-wrap .form-alert { margin: 0; }

/* Result */
.rt-result {
  display: flex; gap: 18px; align-items: center; padding: 18px; border-radius: 18px;
  background: linear-gradient(135deg, #F6F2FC, #FDF0F7); border: 1px solid #EBDDF3;
  animation: rt-pop .45s cubic-bezier(.2,.9,.3,1.3);
}
@keyframes rt-pop { from { transform: scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
.rt-rank-badge {
  flex: none; width: 108px; height: 108px; border-radius: 26px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #fff; background: var(--brand-gradient); box-shadow: 0 14px 28px rgba(220,39,142,.32);
}
.rt-rank-badge span { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.rt-rank-badge b { font-family: var(--display); font-size: 44px; line-height: 1; }
.rt-rank-badge small { font-size: 12px; font-weight: 600; opacity: .85; }
.rt-rank-badge.medal-1 { background: linear-gradient(145deg, #FFD54F, #F4A300); color: #3B2A00; box-shadow: 0 14px 28px rgba(244,163,0,.4); }
.rt-rank-badge.medal-2 { background: linear-gradient(145deg, #E6E9F0, #A9B1C2); color: #1F2A3D; box-shadow: 0 14px 28px rgba(120,130,150,.35); }
.rt-rank-badge.medal-3 { background: linear-gradient(145deg, #F2B98A, #C8733A); color: #3A1C05; box-shadow: 0 14px 28px rgba(200,115,58,.35); }
.rt-result-main { min-width: 0; }
.rt-result-main .eyebrow { color: var(--magenta); }
.rt-result-main h3 { font-family: var(--display); font-size: 28px; line-height: 1.05; text-transform: uppercase; color: var(--deep); margin: 3px 0 4px; overflow-wrap: anywhere; }
.rt-city { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 13px; font-weight: 600; }
.rt-city .ico { width: 14px; height: 14px; }
.rt-figs { display: flex; gap: 22px; margin-top: 12px; }
.rt-figs b { font-family: var(--display); font-size: 28px; color: var(--deep); line-height: 1; display: block; }
.rt-figs b small { font-size: 16px; color: var(--orange); margin-left: 2px; }
.rt-figs span { font-size: 12px; color: var(--muted); font-weight: 600; }
.rt-goals { list-style: none; display: grid; gap: 8px; margin-top: 12px; }
.rt-goals li { display: flex; gap: 10px; align-items: flex-start; padding: 11px 14px; border-radius: 12px; background: var(--field); border: 1px solid var(--line); font-size: 14px; }
.rt-goals li .ico { flex: none; width: 18px; height: 18px; color: var(--magenta); margin-top: 1px; }
.rt-goals li.good { background: var(--green-bg); border-color: #C7E8D7; }
.rt-goals li.good .ico { color: var(--green); }

/* Top 10 */
.rt-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: #FDEAF4; color: var(--magenta); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.rt-pill .ico { width: 15px; height: 15px; }
.rt-list { list-style: none; padding: 8px 12px 12px; }
.rt-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 10px; border-radius: 14px; }
.rt-row + .rt-row { border-top: 1px solid var(--line); }
.rt-pos { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-family: var(--display); font-size: 20px; font-weight: 700; background: #F1EDF9; color: var(--deep); }
.rt-row.rank-1 .rt-pos { background: linear-gradient(145deg, #FFD54F, #F4A300); color: #3B2A00; }
.rt-row.rank-2 .rt-pos { background: linear-gradient(145deg, #E6E9F0, #A9B1C2); color: #1F2A3D; }
.rt-row.rank-3 .rt-pos { background: linear-gradient(145deg, #F2B98A, #C8733A); color: #3A1C05; }
.rt-who { min-width: 0; }
.rt-who b { display: block; color: var(--deep); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rt-who b em { font-style: normal; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #fff; background: var(--magenta); padding: 2px 7px; border-radius: 999px; margin-left: 4px; vertical-align: 2px; }
.rt-who small { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.rt-who small .ico { width: 13px; height: 13px; }
.rt-bar { display: block; height: 6px; margin-top: 7px; border-radius: 99px; background: var(--line); overflow: hidden; }
.rt-bar i { display: block; height: 100%; border-radius: 99px; background: var(--brand-gradient); }
.rt-row.rank-1 .rt-bar i { background: linear-gradient(90deg, #F4A300, #FFD54F); }
.rt-vol { text-align: right; min-width: 96px; }
.rt-vol b { font-family: var(--display); font-size: 22px; color: var(--deep); line-height: 1; display: block; white-space: nowrap; }
.rt-vol b small { font-size: 14px; color: var(--orange); margin-left: 2px; }
.rt-vol span { font-size: 12px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.rt-row.mine { background: linear-gradient(90deg, #FDEAF4, #F6F2FC); border-top-color: transparent; box-shadow: inset 0 0 0 1.5px #F1B9D8; }
.rt-row.mine + .rt-row { border-top-color: transparent; }
.rt-foot { text-align: center; color: var(--muted); font-size: 12.5px; font-weight: 500; }

@media (max-width: 640px) {
  .rt-hero { flex-direction: column; align-items: flex-start; padding: 22px 20px; gap: 16px; }
  .rt-hero-mark { width: 76px; height: 76px; border-radius: 18px; padding: 6px; }
  .rt-hero h1 { font-size: 32px; }
  .rt-lookup { padding: 18px 16px; }
  .rt-lookup-row { grid-template-columns: 1fr; }
  .rt-lookup-row .btn { margin-top: 0; width: 100%; }
  .rt-result { flex-direction: column; align-items: flex-start; }
  .rt-rank-badge { width: 100%; height: auto; flex-direction: row; gap: 10px; padding: 14px; border-radius: 18px; }
  .rt-rank-badge b { font-size: 40px; }
  .rt-list { padding: 6px 6px 8px; }
  .rt-row { grid-template-columns: 36px minmax(0, 1fr) auto; gap: 10px; padding: 11px 8px; }
  .rt-pos { width: 34px; height: 34px; font-size: 18px; border-radius: 10px; }
  .rt-vol { min-width: 82px; } .rt-vol b { font-size: 19px; }
  .rt-signin span { display: none; }
  .rt-signin { width: 42px; padding: 0; justify-content: center; }
}
