/* Cards adapted from Uiverse.io (MIT, https://github.com/uiverse-io/galaxy). */

/* ── Uiverse.io by Kemboi-Dun: Cards/Kemboi-Dun_slimy-chicken-73 ─ check card ─ */
.uv-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.7rem;
  padding: clamp(1.4rem, 3vw, 2.3rem);
  border-radius: var(--r-card);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  transition: background-color 0.5s ease, box-shadow 0.5s ease, transform 0.5s var(--ease);
}

.uv-card:hover {
  background: var(--surface-2);
}

.uv-card__icon {
  display: grid;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  margin-bottom: 0.4rem;
  border-radius: 50%;
  background: var(--cobalt-600);
  color: var(--cream-50);
}

.uv-card__icon .icon {
  width: 1.5rem;
  height: 1.5rem;
}

/* ── Uiverse.io by dldrs: Cards/dldrs_cowardly-horse-9 ─ rent callout ─ */
.uv-callout {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 0.6rem;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
  box-shadow: 0 1px 4px rgb(0 0 0 / 0.08), 0 2px 3px rgb(0 0 0 / 0.08);
}

.uv-callout__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--cobalt-100);
  color: var(--cobalt-800);
}

.uv-callout__title {
  color: var(--text);
  font-weight: 600;
}

.uv-callout__text {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.uv-callout__btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 12px;
  padding: 5px 16px;
  border: 1px solid var(--cobalt-600);
  border-radius: 18px;
  background: var(--cobalt-100);
  color: var(--cobalt-800);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background-color 0.4s ease-in-out, color 0.4s ease-in-out;
}

.uv-callout__btn:hover,
.uv-callout__btn:focus-visible {
  background: var(--cobalt-600);
  color: #fff;
}

/* ── Uiverse.io by rmdhnkhsn: Cards/rmdhnkhsn_strong-quail-100 ─ role card ─ */
.uv-rolecard {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  padding: 56px clamp(22px, 3vw, 36px) 56px;
  border: 2px solid var(--surface-2);
  border-radius: 30px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
  color: var(--text);
  text-align: center;
  transition: background-color 0.4s, color 0.4s, transform 0.4s var(--ease), box-shadow 0.4s;
}

.uv-rolecard__icon {
  position: absolute;
  top: 0;
  left: 50%;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 5px solid var(--bg);
  border-radius: 50%;
  background: var(--cobalt-100);
  color: var(--cobalt-800);
  transform: translate(-50%, -50%);
}

.uv-rolecard__title {
  font-family: var(--font-display);
  font-size: var(--display-3);
  line-height: 1.1;
}

.uv-rolecard__sub {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 0.9375rem;
  transition: color 0.4s;
}

.uv-rolecard__list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
  font-size: 0.9375rem;
  line-height: 1.5;
  text-align: left;
}

.uv-rolecard__list li {
  position: relative;
  padding-left: 1.5em;
}

.uv-rolecard__list li::before {
  content: "";
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 0.55em;
  height: 0.55em;
  border-radius: 50%;
  background: var(--accent);
  transition: background-color 0.4s;
}

.uv-rolecard__go {
  position: absolute;
  bottom: 0;
  left: 50%;
  display: grid;
  place-items: center;
  width: 68px;
  height: 46px;
  border: 1px solid var(--cobalt-600);
  border-radius: var(--r-pill);
  background: var(--surface-2);
  color: var(--cobalt-600);
  transform: translate(-50%, 50%);
  transition: background-color 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.uv-rolecard:hover,
.uv-rolecard:focus-visible {
  background: var(--cobalt-600);
  color: var(--cream-50);
  transform: translateY(-4px);
}

.uv-rolecard:hover .uv-rolecard__sub,
.uv-rolecard:focus-visible .uv-rolecard__sub {
  color: rgb(246 244 238 / 0.9);
}

.uv-rolecard:hover .uv-rolecard__list li::before,
.uv-rolecard:focus-visible .uv-rolecard__list li::before {
  background: var(--gold-500);
}

.uv-rolecard:hover .uv-rolecard__go,
.uv-rolecard:focus-visible .uv-rolecard__go {
  border-color: var(--gold-500);
  background: var(--gold-500);
  color: var(--ink-900);
  box-shadow: 0 6px 10px rgb(48 54 51 / 0.25);
}

/* ── Uiverse.io by Prince4fff: Cards/Prince4fff_slippery-baboon-37 (card 1) ─ chip whose corner floods ─ */
.uv-corner {
  position: relative;
  z-index: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "icon title" "icon sub";
  gap: 2px 14px;
  align-items: center;
  height: 100%;
  padding: 22px 36px 22px 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--text);
  isolation: isolate;
  transition: color 0.3s ease-out, border-color 0.3s;
}

.uv-corner::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -16px;
  right: -16px;
  width: 32px;
  height: 32px;
  border-radius: 32px;
  background: var(--cobalt-600);
  transform: scale(1);
  transform-origin: 50% 50%;
  transition: transform 0.25s ease-out;
}

.uv-corner:hover::before,
.uv-corner:focus-visible::before {
  transform: scale(21);
}

.uv-corner:hover,
.uv-corner:focus-visible {
  color: var(--cream-50);
}

.uv-corner__icon {
  grid-area: icon;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--cobalt-100);
  color: var(--cobalt-800);
}

.uv-corner__title {
  grid-area: title;
  align-self: end;
  font-weight: 600;
  line-height: 1.25;
}

.uv-corner__sub {
  grid-area: sub;
  align-self: start;
  font-size: 0.8125rem;
  line-height: 1.4;
  opacity: 0.82;
}

.uv-corner__go {
  position: absolute;
  top: 5px;
  right: 8px;
  color: #fff;
  font-size: 14px;
  line-height: 1;
}

/* ── Uiverse.io by joe-watson-sbf: Cards/joe-watson-sbf_honest-bullfrog-6 ─ glass card ─ */
.uv-glass {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  max-width: 500px;
  padding: clamp(24px, 3.4vw, 38px);
  border: 0;
  border-radius: var(--r-card);
  background: rgb(48 54 51 / 0.88);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  backdrop-filter: blur(18px) saturate(1.25);
  box-shadow: var(--shadow-soft);
  color: var(--cream-50);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

@supports not (backdrop-filter: blur(1px)) {
  .uv-glass {
    background: rgb(30 41 39 / 0.9);
  }
}

.uv-glass::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -42px;
  right: 8%;
  width: 6.5rem;
  height: 6.5rem;
  border-radius: 50%;
  background: var(--gold-500);
  opacity: 0.85;
}

.uv-glass__title {
  font-size: var(--display-3);
  line-height: 1.05;
}
