:root {
  color-scheme: light;
  --ink: #111827;
  --muted: #667085;
  --soft: rgba(255, 255, 255, 0.56);
  --panel: rgba(255, 255, 255, 0.68);
  --panel-strong: rgba(255, 255, 255, 0.82);
  --line: rgba(255, 255, 255, 0.72);
  --blue: #007aff;
  --cyan: #00b8d9;
  --green: #32d583;
  --rose: #ff6b8a;
  --amber: #ffb020;
  --shadow: 0 28px 80px rgba(44, 62, 92, 0.2);
  --inner: inset 0 1px 0 rgba(255, 255, 255, 0.92);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(120deg, rgba(0, 122, 255, 0.18) 0 18%, transparent 18% 100%),
    linear-gradient(215deg, rgba(50, 213, 131, 0.15) 0 24%, transparent 24% 100%),
    linear-gradient(340deg, rgba(255, 176, 32, 0.14) 0 20%, transparent 20% 100%),
    linear-gradient(135deg, #f8fbff 0%, #edf6ff 38%, #fff8f0 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.58) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.46) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent 72%);
}

button,
input,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

.shell {
  width: min(100%, 1120px);
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 34px 18px;
  margin: 0 auto;
}

.glass-card {
  position: relative;
  width: min(100%, 980px);
  overflow: hidden;
  padding: clamp(20px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 34px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.42)),
    rgba(255, 255, 255, 0.42);
  box-shadow: var(--shadow), var(--inner);
  backdrop-filter: blur(34px) saturate(1.45);
  -webkit-backdrop-filter: blur(34px) saturate(1.45);
}

.glass-card::before {
  content: "";
  position: absolute;
  inset: 1px;
  pointer-events: none;
  border-radius: 33px;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.92), transparent 32%),
    linear-gradient(320deg, rgba(255, 255, 255, 0.38), transparent 44%);
  mask-image: linear-gradient(#000, transparent 62%);
}

.light-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(110deg, transparent 0 48%, rgba(0, 122, 255, 0.11) 48% 62%, transparent 62%),
    linear-gradient(20deg, transparent 0 56%, rgba(255, 107, 138, 0.12) 56% 70%, transparent 70%),
    linear-gradient(160deg, transparent 0 72%, rgba(50, 213, 131, 0.12) 72% 86%, transparent 86%);
}

.header,
.description,
.metrics,
.mission-panel,
.products,
.donation-panel,
.wish-panel,
.story-panel,
.activity {
  position: relative;
}

.header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin: 0 0 12px;
  padding: 6px 11px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  box-shadow: var(--inner);
  color: #155eef;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 680px;
  font-size: clamp(2.7rem, 8vw, 6.4rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.currency-pill {
  flex: 0 0 auto;
  min-width: 68px;
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: var(--inner), 0 12px 32px rgba(0, 122, 255, 0.14);
  color: #174a7c;
  text-align: center;
  font-weight: 900;
}

.description {
  max-width: 760px;
  margin: 24px 0 26px;
  color: #38435a;
  font-size: clamp(1rem, 2vw, 1.16rem);
  line-height: 1.65;
}

.metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.metric,
.next-step,
.donation-panel,
.wish-panel,
.story-panel,
.activity {
  border: 1px solid rgba(255, 255, 255, 0.68);
  background: var(--soft);
  box-shadow: var(--inner), 0 18px 42px rgba(48, 64, 93, 0.1);
  backdrop-filter: blur(22px) saturate(1.3);
  -webkit-backdrop-filter: blur(22px) saturate(1.3);
}

.metric {
  min-width: 0;
  padding: 18px;
  border-radius: 24px;
}

.metric-right {
  text-align: right;
}

.metric-label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
}

.metric strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: clamp(1.6rem, 5vw, 3rem);
  line-height: 1;
}

.mission-panel {
  display: grid;
  gap: 18px;
  margin: 16px 0 18px;
}

.next-step {
  display: grid;
  gap: 6px;
  padding: 18px;
  border-radius: 26px;
}

.next-step strong {
  font-size: clamp(1.4rem, 4vw, 2.3rem);
  line-height: 1.05;
}

.next-step p {
  margin: 0;
  color: #42526e;
  font-weight: 720;
}

.progress-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}

.progress-track {
  position: relative;
  height: 34px;
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: inset 0 1px 10px rgba(47, 65, 94, 0.09), var(--inner);
}

.progress-fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--cyan), var(--green), var(--amber));
  box-shadow: 0 0 28px rgba(0, 122, 255, 0.32);
  transition: width 520ms cubic-bezier(0.2, 0.8, 0.2, 1), background 220ms ease, box-shadow 220ms ease;
}

.progress-fill.is-complete {
  background:
    linear-gradient(90deg, #b7791f, #f6c453, #ffe8a3, #d99a21);
  box-shadow:
    0 0 34px rgba(214, 154, 33, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.64);
}

.milestone-dot {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 16px;
  height: 16px;
  border: 3px solid rgba(255, 255, 255, 0.95);
  border-radius: 999px;
  background: #155eef;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.18);
  transform: translate(-50%, -50%);
}

.milestone-1 {
  left: 24.72%;
}

.milestone-2 {
  left: 56.86%;
  background: #12b76a;
}

.milestone-3 {
  left: 100%;
  background: #f79009;
}

.milestone-label {
  position: absolute;
  top: 42px;
  color: #44546f;
  font-size: 0.76rem;
  font-weight: 850;
  transform: translateX(-50%);
}

.milestone-label-1 {
  left: 24.72%;
}

.milestone-label-2 {
  left: 56.86%;
}

.milestone-label-3 {
  left: calc(100% - 2px);
}

#progress-label {
  min-width: 58px;
  color: #174a7c;
  font-weight: 950;
  text-align: right;
}

.products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 34px 0 18px;
}

.bonus-note {
  position: relative;
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.48);
  box-shadow: var(--inner);
  color: #42526e;
  font-size: 0.95rem;
  font-weight: 760;
}

.product-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.46);
  box-shadow: var(--inner);
  opacity: 0.72;
  transition: transform 180ms ease, opacity 180ms ease, background 180ms ease;
}

.product-card.is-active,
.product-card.is-done {
  opacity: 1;
}

.product-card.is-active {
  transform: translateY(-2px);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.52)),
    rgba(255, 255, 255, 0.7);
  box-shadow: var(--inner), 0 16px 34px rgba(0, 122, 255, 0.14);
}

.product-card.is-done {
  border-color: rgba(255, 236, 180, 0.92);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(255, 214, 102, 0.34)),
    linear-gradient(315deg, rgba(255, 176, 32, 0.34), rgba(255, 255, 255, 0.42));
  box-shadow:
    var(--inner),
    0 16px 34px rgba(181, 126, 16, 0.16),
    inset 0 -18px 40px rgba(255, 205, 77, 0.18);
}

.product-card.is-done .product-icon {
  border-color: rgba(255, 236, 180, 0.96);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(255, 214, 102, 0.52)),
    rgba(255, 224, 130, 0.56);
  color: #8a5a00;
  box-shadow:
    var(--inner),
    0 10px 24px rgba(181, 126, 16, 0.18);
}

.product-card.is-done a {
  background: rgba(181, 126, 16, 0.12);
  color: #7a4f00;
}

.product-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.4));
  color: #155eef;
  font-size: 0.82rem;
  font-weight: 950;
  box-shadow: var(--inner);
}

.product-stage {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 850;
  text-transform: uppercase;
}

.product-card h2 {
  margin: 4px 0 9px;
  font-size: 1rem;
  line-height: 1.15;
}

.product-card a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 122, 255, 0.1);
  color: #155eef;
  font-size: 0.84rem;
  font-weight: 850;
  text-decoration: none;
}

.product-card a:hover {
  background: rgba(0, 122, 255, 0.18);
}

.donation-panel {
  padding: 18px;
  border-radius: 28px;
}

.donation-panel label {
  display: block;
  margin-bottom: 10px;
  color: #344054;
  font-size: 0.92rem;
  font-weight: 850;
}

.amount-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 8px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--inner);
}

.amount-row input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 12px 10px;
  background: transparent;
  color: var(--ink);
  font-size: 1.5rem;
  font-weight: 900;
}

.amount-row span {
  color: #174a7c;
  font-weight: 900;
}

.quick-amounts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 14px 0;
}

.quick-amounts button {
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: var(--inner);
  color: #214666;
  cursor: pointer;
  font-weight: 900;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.quick-amounts button:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--inner), 0 10px 24px rgba(0, 122, 255, 0.14);
}

.paypal-slot {
  min-height: 48px;
}

.status {
  min-height: 22px;
  margin: 12px 0 0;
  color: #2c5a86;
  font-weight: 780;
}

.status.error {
  color: #b42318;
}

.status.success {
  color: #027a48;
}

.wish-panel {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding: 18px;
  border-radius: 28px;
}

.wish-head {
  display: grid;
  gap: 5px;
}

.wish-head h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3.4vw, 2.6rem);
  line-height: 1;
}

.wish-head p {
  margin: 0;
  color: #42526e;
  font-weight: 720;
  line-height: 1.5;
}

.wish-actions,
.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.wish-button {
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: var(--inner);
  color: #214666;
  cursor: pointer;
  font-weight: 900;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.wish-button.primary {
  background:
    linear-gradient(145deg, rgba(0, 122, 255, 0.18), rgba(255, 255, 255, 0.68)),
    rgba(255, 255, 255, 0.72);
  color: #155eef;
  box-shadow: var(--inner), 0 12px 28px rgba(0, 122, 255, 0.16);
}

.wish-button:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.82);
}

.story-panel {
  display: grid;
  gap: 16px;
  margin-top: 18px;
  padding: 18px;
  border-radius: 28px;
}

.story-head {
  display: grid;
  gap: 4px;
}

.story-head h2 {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 3.2rem);
  line-height: 0.98;
}

.story-languages {
  display: grid;
  gap: 12px;
}

.language-panel,
.story-chapter {
  border: 1px solid rgba(255, 255, 255, 0.68);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.4)),
    rgba(255, 255, 255, 0.5);
  box-shadow: var(--inner);
  overflow: hidden;
}

.language-panel {
  border-radius: 24px;
}

.story-chapter {
  border-radius: 18px;
}

.language-panel summary,
.story-chapter summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 14px 16px;
  cursor: pointer;
  font-weight: 900;
  list-style: none;
}

.language-panel summary::-webkit-details-marker,
.story-chapter summary::-webkit-details-marker {
  display: none;
}

.language-panel summary::after,
.story-chapter summary::after {
  content: "+";
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  color: #155eef;
  font-weight: 950;
  line-height: 1;
}

.language-panel[open] > summary::after,
.story-chapter[open] > summary::after {
  content: "-";
}

.language-panel summary span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: clamp(1.1rem, 2.6vw, 1.65rem);
  line-height: 1.05;
}

.language-panel summary span:last-child {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 122, 255, 0.1);
  color: #155eef;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.story-intro,
.story-copy {
  color: #344054;
  font-size: 1rem;
  line-height: 1.72;
}

.story-intro {
  padding: 0 16px 16px;
}

.story-copy {
  padding: 0 16px 16px;
}

.story-intro p,
.story-copy p {
  margin: 0;
}

.story-intro p + p,
.story-copy p + p,
.story-copy p + .story-list,
.story-copy .story-list + p {
  margin-top: 0.8em;
}

.story-copy h3,
.story-intro h3 {
  margin: 1.1em 0 0.45em;
  color: #1d2939;
  font-size: 1.02rem;
  line-height: 1.25;
}

.story-list {
  display: grid;
  gap: 0.4em;
  margin: 0.7em 0 0;
  padding-left: 1.25rem;
}

.story-list li {
  padding-left: 0.1rem;
}

.story-chapters {
  display: grid;
  gap: 10px;
  padding: 0 12px 12px;
}

.story-chapter summary {
  color: #1d2939;
  font-size: 0.98rem;
}

.story-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 0 12px 12px;
}

.story-photo-grid .photo-card {
  min-height: 230px;
}

.story-photo-grid .photo-card img,
.story-photo-grid .photo-placeholder {
  height: 190px;
}

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.photo-card {
  position: relative;
  min-width: 0;
  min-height: 172px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.42)),
    rgba(255, 255, 255, 0.5);
  box-shadow: var(--inner);
}

.photo-card img,
.photo-placeholder {
  width: 100%;
  height: 142px;
}

.photo-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: zoom-in;
}

.photo-open:focus-visible {
  outline: 3px solid rgba(0, 122, 255, 0.58);
  outline-offset: -3px;
}

.photo-card img {
  display: block;
  object-fit: cover;
  transition: transform 220ms ease;
}

.photo-card:not(.is-missing) .photo-open:hover img {
  transform: scale(1.03);
}

.photo-card.is-missing img {
  display: none;
}

.photo-placeholder {
  display: none;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(0, 122, 255, 0.13), rgba(255, 176, 32, 0.14)),
    rgba(255, 255, 255, 0.48);
  color: #667085;
  font-weight: 950;
}

.photo-card.is-missing .photo-placeholder {
  display: grid;
}

.photo-card figcaption {
  min-height: 54px;
  padding: 10px;
  color: #344054;
  font-size: 0.82rem;
  font-weight: 780;
  line-height: 1.25;
}

body.is-lightbox-open {
  overflow: hidden;
}

body.is-modal-open {
  overflow: hidden;
}

.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: clamp(14px, 3vw, 34px);
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.22), transparent 34%),
    rgba(14, 24, 39, 0.74);
  backdrop-filter: blur(28px) saturate(1.25);
  -webkit-backdrop-filter: blur(28px) saturate(1.25);
}

.photo-lightbox[hidden] {
  display: none;
}

.lightbox-figure {
  display: grid;
  gap: 12px;
  width: min(100%, 1180px);
  max-height: calc(100vh - 56px);
  margin: 0;
}

.lightbox-figure img {
  max-width: 100%;
  max-height: calc(100vh - 132px);
  justify-self: center;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 24px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.34), var(--inner);
  object-fit: contain;
}

.lightbox-figure figcaption {
  justify-self: center;
  max-width: min(100%, 760px);
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--inner);
  color: #1d2939;
  font-size: 0.92rem;
  font-weight: 850;
  text-align: center;
}

.lightbox-close {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 21;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--inner), 0 12px 32px rgba(0, 0, 0, 0.18);
  color: #111827;
  cursor: pointer;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.92);
}

.wish-modal {
  position: fixed;
  inset: 0;
  z-index: 22;
  display: grid;
  place-items: center;
  padding: clamp(14px, 3vw, 34px);
  background:
    radial-gradient(circle at 20% 20%, rgba(0, 122, 255, 0.2), transparent 28%),
    radial-gradient(circle at 78% 12%, rgba(255, 176, 32, 0.22), transparent 30%),
    rgba(14, 24, 39, 0.72);
  backdrop-filter: blur(30px) saturate(1.3);
  -webkit-backdrop-filter: blur(30px) saturate(1.3);
}

.wish-modal[hidden] {
  display: none;
}

.wish-modal-card,
.birthday-card-wrap {
  position: relative;
  width: min(100%, 720px);
}

.wish-modal-card {
  display: grid;
  gap: 16px;
  padding: clamp(18px, 4vw, 28px);
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.58)),
    rgba(255, 255, 255, 0.72);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.28), var(--inner);
}

.wish-modal-card h2 {
  margin: 0;
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  line-height: 1;
}

.wish-modal-card form {
  display: grid;
  gap: 10px;
}

.wish-modal-card label {
  color: #344054;
  font-size: 0.88rem;
  font-weight: 900;
  text-transform: uppercase;
}

.wish-modal-card input,
.wish-modal-card textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 18px;
  outline: 0;
  padding: 12px 13px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--inner);
  color: var(--ink);
  resize: vertical;
}

.wish-modal-card textarea {
  min-height: 128px;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--inner), 0 10px 24px rgba(0, 0, 0, 0.14);
  color: #111827;
  cursor: pointer;
  font-size: 1.55rem;
  line-height: 1;
}

.card-modal {
  overflow: auto;
}

.birthday-card-wrap {
  width: min(100%, 960px);
}

.birthday-card {
  position: relative;
  display: flex;
  flex-direction: column;
  max-height: min(840px, calc(100vh - 44px));
  min-height: min(760px, calc(100vh - 44px));
  overflow: hidden;
  padding: clamp(22px, 5vw, 46px);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 34px;
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 232, 163, 0.95) 0 2px, transparent 3px),
    radial-gradient(circle at 72% 22%, rgba(255, 255, 255, 0.9) 0 1px, transparent 2px),
    radial-gradient(circle at 84% 58%, rgba(255, 232, 163, 0.85) 0 2px, transparent 3px),
    linear-gradient(145deg, rgba(11, 27, 58, 0.96), rgba(21, 94, 239, 0.78) 48%, rgba(10, 21, 42, 0.96));
  box-shadow: 0 30px 110px rgba(0, 0, 0, 0.35), var(--inner);
  color: white;
}

.birthday-card::before {
  content: "";
  position: absolute;
  right: -110px;
  bottom: -130px;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.95), rgba(246, 196, 83, 0.9) 18%, rgba(217, 154, 33, 0.35) 34%, transparent 58%);
}

.card-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.8) 0 1px, transparent 1.6px),
    radial-gradient(circle, rgba(255, 232, 163, 0.7) 0 1px, transparent 1.5px);
  background-position: 0 0, 22px 34px;
  background-size: 74px 74px, 98px 98px;
  opacity: 0.58;
}

.birthday-card header,
.wish-card-messages {
  position: relative;
}

.birthday-card header {
  flex: 0 0 auto;
  max-width: 720px;
  margin-bottom: 24px;
}

.birthday-card header span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 6px 11px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.birthday-card h2 {
  margin: 12px 0 8px;
  font-size: clamp(2.1rem, 7vw, 5.2rem);
  line-height: 0.9;
}

.birthday-card header p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
  font-weight: 760;
}

.wish-card-messages {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 14px;
  padding: 4px 8px 26px 4px;
  scrollbar-color: rgba(255, 255, 255, 0.62) transparent;
}

.wish-note {
  display: block;
  width: 100%;
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.16), var(--inner);
  color: #162033;
  transform: rotate(var(--tilt));
}

.wish-note p {
  margin: 0 0 10px;
  line-height: 1.45;
}

.wish-note strong {
  display: block;
  color: #155eef;
  font-size: 0.9rem;
}

.wish-note:first-child,
.wish-note:nth-child(2) {
  margin-top: 2px;
}

.empty-wishes {
  margin: 0;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.86);
  font-weight: 820;
}

.activity {
  margin-top: 18px;
  padding: 16px;
  border-radius: 24px;
}

.activity h2 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.activity ul {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.activity li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 13px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.48);
  box-shadow: var(--inner);
  color: #344054;
}

.activity li span:last-child {
  flex: 0 0 auto;
  font-weight: 900;
}

.admin-shell {
  place-items: start center;
}

.admin-card {
  width: min(100%, 980px);
}

.admin-back {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: var(--inner);
  color: #174a7c;
  font-weight: 900;
  text-decoration: none;
}

.admin-login,
.admin-dashboard,
.admin-form {
  position: relative;
}

.admin-login,
.admin-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 28px;
  background: var(--soft);
  box-shadow: var(--inner), 0 18px 42px rgba(48, 64, 93, 0.1);
}

.admin-login label,
.admin-form label {
  color: #344054;
  font-size: 0.88rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-dashboard {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.admin-form h2 {
  margin: 0;
  font-size: clamp(1.3rem, 3vw, 2rem);
}

.admin-card-download p {
  margin: 0;
  color: #42526e;
  font-weight: 720;
}

.admin-form > input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 18px;
  outline: 0;
  padding: 12px 13px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--inner);
  color: var(--ink);
}

.admin-history {
  margin-top: 0;
}

.admin-history .positive {
  color: #027a48;
}

.admin-history .negative {
  color: #b42318;
}

@media (max-width: 820px) {
  .products {
    grid-template-columns: 1fr;
  }

  .admin-metrics {
    grid-template-columns: 1fr;
  }

  .photo-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .story-photo-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .shell {
    padding: 10px;
    align-items: stretch;
  }

  .glass-card {
    min-height: calc(100vh - 20px);
    border-radius: 28px;
  }

  .header {
    display: grid;
  }

  .currency-pill {
    justify-self: start;
  }

  .metrics {
    grid-template-columns: 1fr;
  }

  .metric-right {
    text-align: left;
  }

  .progress-wrap {
    grid-template-columns: 1fr;
  }

  #progress-label {
    min-width: 0;
    text-align: left;
  }

  .milestone-label {
    font-size: 0.7rem;
  }

  .quick-amounts {
    grid-template-columns: repeat(2, 1fr);
  }

  .wish-actions,
  .modal-actions {
    display: grid;
  }

  .language-panel summary,
  .story-chapter summary {
    align-items: flex-start;
  }

  .language-panel summary span:last-child {
    font-size: 0.7rem;
  }

  .photo-gallery {
    grid-template-columns: 1fr;
  }

  .birthday-card {
    max-height: calc(100vh - 24px);
    min-height: calc(100vh - 24px);
    padding: 22px 16px;
    border-radius: 26px;
  }

  .birthday-card h2 {
    font-size: clamp(2rem, 14vw, 3.4rem);
  }

  .birthday-card header p {
    font-size: 0.95rem;
  }

  .wish-card-messages {
    grid-template-columns: 1fr;
    padding-right: 4px;
  }

  .wish-note {
    transform: none;
  }
}
