:root {
  --bg: #f4effb;
  --panel: rgba(251, 248, 255, 0.82);
  --panel-strong: rgba(255, 253, 255, 0.93);
  --line: rgba(104, 109, 147, 0.22);
  --line-strong: rgba(91, 97, 140, 0.34);
  --text: #43425a;
  --muted: #8f8bac;
  --shadow: 0 20px 60px rgba(105, 101, 154, 0.14);
  --radius-xl: 22px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Nunito", sans-serif;
  background:
    radial-gradient(circle at top, rgba(255, 245, 252, 0.94), transparent 34%),
    radial-gradient(circle at left 20%, rgba(201, 228, 255, 0.45), transparent 32%),
    linear-gradient(180deg, #f8f0fb 0%, #edf3ff 100%);
  color: var(--text);
}

button,
select {
  font: inherit;
}

.page-shell {
  min-height: 100vh;
  padding: 0 0 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.browser-frame {
  width: 100%;
  min-height: 620px;
  background: var(--panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-left: 0;
  border-right: 0;
  border-radius: 0;
  box-shadow: var(--shadow);
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.browser-chrome {
  height: 48px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(113, 113, 113, 0.1);
}

.browser-dots {
  display: flex;
  gap: 8px;
}

.browser-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(214, 214, 214, 0.45);
}

.browser-nav {
  display: flex;
  gap: 16px;
}

.browser-arrow {
  width: 10px;
  height: 10px;
  border-top: 1.8px solid var(--line-strong);
  border-right: 1.8px solid var(--line-strong);
  display: inline-block;
}

.browser-arrow.left {
  transform: rotate(-135deg);
}

.browser-arrow.right {
  transform: rotate(45deg);
}

.browser-address {
  flex: 1;
  height: 20px;
  border-radius: 999px;
  border: 1px solid rgba(113, 113, 113, 0.12);
  background: rgba(255, 255, 255, 0.58);
}

.browser-content {
  position: relative;
  padding: 40px 132px 36px;
  background-image:
    linear-gradient(rgba(171, 180, 216, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(171, 180, 216, 0.12) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: 0 0;
}

.browser-content > * {
  position: relative;
  z-index: 1;
}

.profile-row {
  display: flex;
  align-items: center;
  gap: 0;
}

.profile-card {
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 30px;
  border-radius: 24px;
  background: var(--panel-strong);
  border: 1px solid var(--line);
  box-shadow: 0 14px 28px rgba(111, 111, 111, 0.08);
}

.profile-main {
  display: flex;
  align-items: center;
  gap: 22px;
  min-width: 0;
}

.avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  flex: none;
  overflow: hidden;
  border: 1px solid rgba(116, 116, 116, 0.2);
  background: linear-gradient(180deg, #e5e5e5, #d0d0d0);
}

.avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.profile-copy h1,
.profile-copy p,
.section-heading h2 {
  margin: 0;
}

.profile-copy h1 {
  font-size: clamp(1.9rem, 3.2vw, 2.5rem);
  line-height: 1.05;
  font-weight: 800;
}

.profile-copy p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 1.08rem;
}

.social-row {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.social-row a {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  text-decoration: none;
  border: 1px solid var(--line);
  color: #888;
  background: rgba(244, 244, 244, 0.95);
  transition:
    background-color 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.social-row a svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.social-row a:hover,
.social-row a:focus-visible {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 0 0 1px rgba(145, 145, 145, 0.18);
  color: #6f6f6f;
  transform: translateY(-1px);
  outline: none;
}

.profile-badges {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-left: auto;
  padding-bottom: 1px;
}

.profile-badge {
  min-width: 88px;
  height: 34px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  text-decoration: none;
  border: 1px solid var(--line);
  color: #888;
  background: rgba(244, 244, 244, 0.95);
  font-weight: 700;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.profile-badge.is-active {
  background: rgba(255, 255, 255, 0.98);
  box-shadow:
    inset 0 0 0 1px rgba(145, 145, 145, 0.22),
    0 8px 16px rgba(111, 111, 111, 0.08);
  color: #626262;
}

.profile-badge:hover,
.profile-badge:focus-visible {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 0 0 1px rgba(145, 145, 145, 0.18);
  color: #6f6f6f;
  transform: translateY(-1px);
  outline: none;
}

.gallery-section {
  margin-top: 28px;
}

.section-heading {
  margin-bottom: 14px;
}

.section-heading h2 {
  font-size: clamp(1.7rem, 2.5vw, 2.1rem);
  font-weight: 800;
}

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

.gallery-card {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(176, 176, 176, 0.18);
  background: linear-gradient(180deg, rgba(243, 243, 243, 0.96), rgba(224, 224, 224, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(0.82) contrast(0.96) brightness(1.03);
  transition:
    opacity 180ms ease,
    transform 220ms ease,
    filter 180ms ease;
}

.gallery-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(91, 91, 91, 0.03));
  pointer-events: none;
}

.card-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px;
  background: linear-gradient(
    180deg,
    rgba(245, 245, 245, 0.82),
    rgba(228, 228, 228, 0.74)
  );
  opacity: 0;
  transition: opacity 180ms ease;
  pointer-events: none;
}

.gallery-card:hover .card-overlay,
.gallery-card:focus-within .card-overlay {
  opacity: 1;
}

.gallery-card:hover img,
.gallery-card:focus-within img {
  opacity: 0.34;
  filter: saturate(0.72) contrast(0.92) brightness(0.98);
  transform: scale(1.02);
}

.price-tag {
  font-size: 1.85rem;
  font-weight: 800;
  position: relative;
  z-index: 1;
  color: #4a4a4a;
}

.buy-button {
  width: 100%;
  border: 0;
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 0 0 1px rgba(145, 145, 145, 0.18);
  color: #848484;
  font-weight: 700;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease,
    transform 160ms ease;
  pointer-events: auto;
}

.buy-button:hover,
.buy-button:focus-visible {
  background: rgba(255, 255, 255, 0.98);
  box-shadow:
    inset 0 0 0 1px rgba(145, 145, 145, 0.22),
    0 8px 16px rgba(111, 111, 111, 0.08);
  color: #6f6f6f;
  transform: translateY(-1px);
  outline: none;
}

.gallery-item-button {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.primary-button,
.secondary-button {
  border-radius: 999px;
  padding: 12px 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.84);
  color: #878787;
  font-weight: 700;
  cursor: pointer;
}

.shop-modal {
  width: min(92vw, 740px);
  border: 0;
  padding: 0;
  background: transparent;
}

.shop-modal::backdrop {
  background: rgba(58, 50, 42, 0.38);
  backdrop-filter: blur(4px);
}

.shop-modal-card {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 18px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(121, 121, 121, 0.18);
  background: rgba(251, 249, 247, 0.96);
  box-shadow: 0 24px 50px rgba(74, 66, 59, 0.18);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #888;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.modal-image-wrap {
  min-height: 320px;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, #ececec, #d8d8d8);
}

.modal-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.modal-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.modal-eyebrow,
.modal-price,
.modal-description,
.checkout-note {
  margin: 0;
}

.modal-eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.modal-copy h3 {
  margin: 8px 0 4px;
  font-size: 2rem;
  line-height: 1.04;
}

.modal-price {
  font-size: 1.45rem;
  font-weight: 800;
}

.modal-description {
  margin-top: 12px;
  color: #777;
  line-height: 1.5;
}

.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.primary-button {
  color: white;
  border-color: transparent;
  background: #6b6865;
}

.secondary-button {
  background: transparent;
}

.checkout-note {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(107, 104, 101, 0.16);
  color: #666;
}

@media (max-width: 900px) {
  .page-shell {
    padding: 24px 16px;
  }

  .browser-content {
    padding: 28px 24px 28px;
  }

  .profile-row {
    align-items: flex-start;
  }

  .browser-frame {
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
    border-radius: 18px;
  }

  .gallery-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .shop-modal-card {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px;
  }

  .modal-image-wrap {
    min-height: 200px;
  }
}

@media (max-width: 640px) {
  .page-shell {
    padding: 18px 10px;
  }

  .browser-frame {
    min-height: auto;
    border-radius: 30px;
  }

  .browser-chrome {
    display: none;
  }

  .browser-content {
    padding: 28px 18px 18px;
    background-size: 18px 18px;
  }

  .profile-card {
    width: 100%;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    padding: 18px 16px;
    background: transparent;
    box-shadow: none;
    border: 0;
    border-bottom: 1px solid rgba(113, 113, 113, 0.18);
    border-radius: 0;
  }

  .profile-main {
    flex-direction: column;
    gap: 12px;
  }

  .social-row {
    justify-content: center;
  }

  .profile-badges {
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-left: 0;
    padding-bottom: 0;
  }

  .gallery-section {
    margin-top: 18px;
  }

  .section-heading h2 {
    font-size: 1.9rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .gallery-card {
    aspect-ratio: 1 / 1;
  }

  .featured-card .price-tag {
    font-size: 1.55rem;
  }

  .buy-button,
  .primary-button,
  .secondary-button {
    padding: 10px 14px;
  }

  .modal-actions {
    flex-direction: column;
    margin-top: 14px;
  }
}
