/* Profile card/button treatment shared by the public authentication pages. */
.auth-review-preview {
  --review-mirror-depth: 56px;
  --review-floor-space: 112px;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: 420px;
  margin: 0 auto;
  padding-bottom: var(--review-floor-space);
  color: #fff;
  --icon-accent: #26c6e6;
  --icon-muted: #757b91;
}
/* A wide floor pool extends beyond both cards. Let the blur fade naturally
   outside the preview instead of clipping it with a rectangular mask. */
.auth-review-preview::before {
  content: '';
  position: absolute;
  z-index: -1;
  left: -88px;
  right: -88px;
  bottom: calc(var(--review-floor-space) - 110px);
  height: 220px;
  pointer-events: none;
  background:
    radial-gradient(ellipse 28% 48% at 27% 50%, #7fe6ff59, #2ed1f426 45%, transparent 75%),
    radial-gradient(ellipse 28% 48% at 73% 50%, #7fe6ff59, #2ed1f426 45%, transparent 75%),
    radial-gradient(ellipse 50% 48% at 50% 50%, #2ed1f485, #22b8e859 32%, #1e8fd829 58%, transparent);
  filter: blur(24px);
}
.auth-review-card {
  --review-rgb: 46, 209, 244;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  height: 330px;
  padding: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  background: radial-gradient(120% 65% at 50% 110%, rgba(var(--review-rgb),.2), transparent 85%), linear-gradient(#090d19, #050812);
  box-shadow: inset 0 1px 0 #ffffff0a;
  transition: border-color 150ms cubic-bezier(.4,0,.2,1), box-shadow 150ms cubic-bezier(.4,0,.2,1);
  -webkit-box-reflect: below 6px linear-gradient(transparent calc(100% - var(--review-mirror-depth)), #ffffff33);
}
.auth-review-card--rated { --review-rgb: 139, 92, 246; }
.auth-review-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(130% 75% at 50% 104%, rgba(var(--review-rgb),.42), rgba(var(--review-rgb),.13) 50%, transparent 78%);
  opacity: 0;
  transform: scaleY(.3);
  transform-origin: 50% 100%;
  transition: opacity 320ms cubic-bezier(.4,0,.2,1), transform 380ms cubic-bezier(.4,0,.2,1);
}
@media (hover: hover) {
  .auth-review-card:hover { border-color: #ffffff3d; box-shadow: 0 10px 24px #0000004d, inset 0 1px 0 #ffffff0f; }
  .auth-review-card:hover::after { opacity: 1; transform: scaleY(1); transition: opacity 700ms cubic-bezier(.3,.1,.3,1) 140ms, transform 800ms cubic-bezier(.3,.1,.3,1) 140ms; }
}
.auth-review-shoe { position: relative; display: block; flex-shrink: 0; width: min(100%, 126px); aspect-ratio: 16 / 9; margin-bottom: 8px; }
.auth-review-shoe::before { content: ''; position: absolute; inset: 58% 4% 14%; background: radial-gradient(ellipse, #d6deec2b, transparent 70%); filter: blur(3px); }
.auth-review-shoe img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 8px 12px #0006); }
.auth-review-card h3 { margin: 0 0 4px; font-size: 13px; line-height: 20px; font-weight: 400; white-space: nowrap; }
.auth-review-divider { flex-shrink: 0; width: 85%; height: 1px; margin: 6px 0 0; background: #ffffff14; }
.auth-review-body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; width: 100%; }
.auth-review-rating { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: #ffffff9e; }
.auth-review-stars {
  --star-size: 10px;
  --star-color: #2ed1f4;
  display: inline-block;
  width: calc(var(--star-size) * 35 / 6);
  height: var(--star-size);
  background: linear-gradient(90deg, var(--star-color) var(--fill), #ffffff29 var(--fill));
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 2 3 6 7 1-5 5 1 7-6-3-6 3 1-7-5-5 7-1Z'/%3E%3C/svg%3E") left center / calc(var(--star-size) * 7 / 6) var(--star-size) repeat-x;
}
.auth-review-rating .auth-review-stars { --star-size: 17px; --star-color: #facc15; }
.auth-review-subscores { display: grid; grid-template-columns: repeat(2, max-content); gap: 6px 10px; margin: 0; padding: 0; list-style: none; }
.auth-review-subscores li { display: flex; align-items: center; gap: 5px; }
.auth-review-subscores svg { width: 20px; height: 20px; }
.auth-review-tag { border: 1px solid #757b9166; border-radius: 999px; padding: 1px 8px; font-size: 12px; line-height: 18px; box-shadow: inset 0 0 8px #757b9133; }
.auth-review-actions { display: flex; flex-shrink: 0; justify-content: center; gap: 8px; width: 70%; margin-bottom: 18px; padding-top: 8px; border-top: 1px solid #ffffff14; }
.auth-review-button {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(#ffffff1a, #ffffff00);
  color: #fff;
  cursor: pointer;
  box-shadow: inset 0 -6px 15px #38e6d740, inset 0 6px 15px #79f1ff40;
  --button-ring: linear-gradient(90deg, #79f1ff73, #38e6d773);
  --button-wash: linear-gradient(90deg, #2ed1f41f, #2ed1f40d);
}
.auth-review-button::before, .auth-review-button::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; transition: opacity 150ms cubic-bezier(.4,0,.2,1); }
.auth-review-button::before { padding: 1px; background: var(--button-ring); mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.auth-review-button::after { z-index: -1; background: var(--button-wash); opacity: 0; }
.auth-review-button--delete { --icon-accent: #ef646b; --button-ring: linear-gradient(90deg, #fca5a580, #f8717173); --button-wash: linear-gradient(90deg, #f8717124, #f871710f); box-shadow: inset 0 -6px 15px #f8717138, inset 0 6px 15px #fca5a533; }
.auth-review-button svg { width: 16px; height: 16px; }
@media (hover: hover) { .auth-review-button:hover::after { opacity: 1; } }
.auth-review-rate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 32px;
  max-width: 100%;
  padding: 0 14px;
  border: 1px solid #2ed1f4bf;
  border-radius: 999px;
  background: linear-gradient(#ffffff1a, #ffffff00);
  box-shadow: inset 0 1px 0 #ffffff1a;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  white-space: normal;
  cursor: pointer;
  transition: border-color 150ms cubic-bezier(.4,0,.2,1), box-shadow 150ms cubic-bezier(.4,0,.2,1);
}
.auth-review-rate svg { width: 14px; height: 14px; color: #facc15; }
.auth-review-rate:hover, .auth-review-rate:focus-visible { border-color: #facc15c7; background: linear-gradient(#facc151a,#facc1506); box-shadow: inset 0 -6px 15px #facc1540, inset 0 6px 15px #ffdd5740, 0 0 30px #facc1538, inset 0 1px 0 #ffffff2e; }
.auth-review-preview button:focus-visible, .auth-review-dialog button:focus-visible { outline: 2px solid #2ed1f4; outline-offset: 3px; }
.auth-review-dialog { position: fixed; inset: 0; width: min(420px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 40px 32px 32px; border: 1px solid #2ed1f43d; border-radius: 24px; background: #0a0e27; box-shadow: inset 0 0 24px #2ed1f421, 0 24px 80px #0009; color: #fff; text-align: center; }
.auth-review-dialog[open] { animation: review-dialog-in 180ms cubic-bezier(.2,.8,.2,1); }
.auth-review-dialog::backdrop { background: #020617b3; backdrop-filter: blur(5px); }
.auth-review-dialog h2 { margin: 0 0 12px; font-size: 24px; font-weight: 700; }
.auth-review-dialog p { margin: 0 0 24px; color: #a6b1c5; line-height: 1.7; font-size: 15px; }
.auth-review-close { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 8px; color: #a6b1c5; cursor: pointer; }
.auth-review-close:hover { background: #ffffff0d; color: #fff; }
.auth-review-close svg { width: 18px; height: 18px; margin: auto; }
@keyframes review-dialog-in { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }
@media (min-width: 1024px) and (max-width: 1199px) {
  .auth-review-subscores { column-gap: 5px; }
  .auth-review-subscores li { gap: 3px; }
  .auth-review-subscores svg { width: 18px; }
  .auth-review-subscores .auth-review-stars { --star-size: 9px; }
  .auth-review-rate { font-size: 12px; padding: 5px 8px; line-height: 1.25; }
}
@media (prefers-reduced-motion: reduce) {
  .auth-review-card, .auth-review-card::after, .auth-review-button::before, .auth-review-button::after, .auth-review-rate { transition: none !important; transform: none !important; }
  .auth-review-dialog[open] { animation: none; }
}
