:root {
  --ink: #211d1e;
  --muted: #756b6e;
  --red: #d52a2c;
  --gold: #e1a52e;
  --cream: #fff9f2;
  --line: #eaded8;
  --dark: #171316;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--ink);
  font-family:
    Inter,
    system-ui,
    -apple-system,
    Segoe UI,
    sans-serif;
  background: #fbf7f2;
}
.top {
  background: var(--dark);
  color: #fff;
  padding: 10px 24px;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.05em;
}
.nav {
  height: 78px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 0 max(24px, calc((100% - 1180px) / 2));
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 4;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 220px;
}
.brand img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 10px;
}
.brand strong {
  font-family: Georgia, serif;
  font-size: 19px;
  letter-spacing: 0.05em;
}
.brand small {
  display: block;
  color: var(--red);
  font-size: 9px;
  letter-spacing: 0.18em;
  font-weight: 800;
}
.search {
  flex: 1;
  display: flex;
  max-width: 540px;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}
.search input {
  flex: 1;
  border: 0;
  outline: 0;
  padding: 12px 17px;
  font: inherit;
}
.search button,
.cart,
.primary,
.seller-btn {
  border: 0;
  cursor: pointer;
  font-weight: 800;
}
.search button {
  background: var(--red);
  color: #fff;
  padding: 0 20px;
}
.cart {
  background: #fff;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
}
.badge {
  background: var(--red);
  color: #fff;
  border-radius: 99px;
  padding: 2px 6px;
  font-size: 10px;
  margin-left: 3px;
}
.page {
  max-width: 1180px;
  margin: auto;
  padding: 24px;
}
.hero {
  background: linear-gradient(110deg, #1e1719 0%, #3b1d20 55%, #9e2628 100%);
  color: #fff;
  border-radius: 24px;
  padding: 32px;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  overflow: hidden;
  position: relative;
}
.hero:after {
  content: "✦  ✧  ✦";
  position: absolute;
  right: 20px;
  bottom: 15px;
  color: #e8b74480;
  font-size: 62px;
  letter-spacing: 15px;
}
.hero h1 {
  font-family: Georgia, serif;
  font-size: clamp(32px, 5vw, 58px);
  font-weight: 500;
  margin: 0 0 10px;
  max-width: 650px;
}
.hero p {
  color: #f7ded2;
  max-width: 560px;
  line-height: 1.6;
  margin: 0 0 20px;
}
.primary {
  background: var(--gold);
  color: #241713;
  padding: 12px 18px;
  border-radius: 9px;
}
.hero-logo {
  width: 185px;
  height: 165px;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px #0007);
  z-index: 1;
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 30px 0 15px;
}
.section-head h2 {
  font-family: Georgia, serif;
  font-size: 28px;
  margin: 0;
  font-weight: 500;
}
.section-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.categories {
  display: flex;
  gap: 9px;
  overflow: auto;
  padding-bottom: 2px;
}
.cat {
  white-space: nowrap;
  border: 1px solid var(--line);
  background: #fff;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
}
.cat.active,
.cat:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.product {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: 0.2s;
  cursor: pointer;
}
.product:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px #55251a12;
}
.visual {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  position: relative;
}
.v1 {
  background: linear-gradient(135deg, #f7d7bf, #f7eee6);
}
.v2 {
  background: linear-gradient(135deg, #d9e9e1, #f4f8f1);
}
.v3 {
  background: linear-gradient(135deg, #efe0ba, #faf1cf);
}
.v4 {
  background: linear-gradient(135deg, #e2d7f2, #f4ebfb);
}
.v5 {
  background: linear-gradient(135deg, #f4d5da, #fff2f1);
}
.v6 {
  background: linear-gradient(135deg, #cde4ef, #f2faff);
}
.v7 {
  background: linear-gradient(135deg, #e7dfcf, #faf7ed);
}
.v8 {
  background: linear-gradient(135deg, #f4dec9, #fff8ef);
}
.tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #fff;
  color: var(--red);
  font-size: 10px;
  font-weight: 800;
  padding: 5px 8px;
  border-radius: 99px;
}
.pbody {
  padding: 14px;
}
.pbody h3 {
  font-size: 15px;
  margin: 0 0 7px;
}
.meta {
  font-size: 12px;
  color: var(--muted);
  min-height: 17px;
}
.price {
  font-size: 17px;
  color: var(--red);
  font-weight: 900;
  margin-top: 11px;
}
.contact-row {
  display: flex;
  gap: 7px;
  margin-top: 13px;
}
.contact-btn {
  flex: 1;
  text-align: center;
  text-decoration: none;
  border-radius: 8px;
  padding: 8px 5px;
  font-size: 11px;
  font-weight: 800;
}
.wa {
  background: #e5f7eb;
  color: #168344;
}
.shop {
  background: #f6e8e8;
  color: #a9282d;
}
.premium-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}
.premium {
  margin-top: 0;
  background: linear-gradient(110deg, #fff3cf, #fffaf1);
  border: 1px solid #ead09a;
  border-radius: 18px;
  padding: 21px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.premium h2 {
  font-family: Georgia, serif;
  font-weight: 500;
  margin: 0 0 5px;
}
.premium p {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
  line-height: 1.5;
}
.premium-grid .premium.locked {
  opacity: 0.58;
  filter: grayscale(0.7);
}
.premium-grid .premium.locked:after {
  content: "🔒";
  font-size: 24px;
}
.premium-status {
  display: block;
  margin-top: 10px;
  color: #876a31;
  font-size: 12px;
}
.premium-price {
  color: #a66a00;
  font-size: 18px;
  font-weight: 900;
  white-space: nowrap;
}
.premium-contact {
  margin-top: 12px;
  padding: 16px 20px;
  border: 1px solid #ead09a;
  border-radius: 14px;
  background: #fffdf6;
  text-align: center;
}
.premium-contact p {
  margin: 0 0 12px;
  color: var(--ink);
}
.premium-contact__links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}
.premium-contact__link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}
.premium-contact__whatsapp {
  background: #e5f7eb;
  color: #168344;
}
.premium-contact__email {
  background: #f6e8e8;
  color: #a9282d;
}
.premium-contact__link:focus-visible {
  outline: 3px solid #d52a2c;
  outline-offset: 3px;
}
.seller {
  margin-top: 30px;
  background: var(--cream);
  border: 1px solid #f0d9cd;
  border-radius: 18px;
  padding: 21px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.seller h2 {
  font-family: Georgia, serif;
  font-weight: 500;
  margin: 0 0 5px;
}
.seller p {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}
.seller-btn {
  background: var(--dark);
  color: #fff;
  padding: 12px 16px;
  border-radius: 9px;
  white-space: nowrap;
}
.footer {
  margin-top: 32px;
  padding: 22px 0;
  color: var(--muted);
  font-size: 12px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.modal {
  position: fixed;
  inset: 0;
  background: #1d1414b8;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal[hidden] {
  display: none;
}
.modalbox {
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  width: min(100%, 650px);
  max-height: 90vh;
  overflow: auto;
}
.modalhead {
  display: flex;
  justify-content: space-between;
  align-items: start;
}
.modal h2 {
  font-family: Georgia, serif;
  font-weight: 500;
  margin: 0 0 5px;
}
.close {
  border: 0;
  background: #f7eeee;
  border-radius: 8px;
  padding: 7px 10px;
  cursor: pointer;
}
.muted {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 17px;
}
.upload {
  border: 2px dashed #e0b1a7;
  border-radius: 14px;
  padding: 26px;
  text-align: center;
  background: #fffaf7;
  cursor: pointer;
}
.upload input {
  display: none;
}
.upload strong {
  display: block;
  color: var(--red);
  margin-bottom: 5px;
}
.previews {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 7px;
  margin-top: 14px;
}
.thumb {
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  background: #eee;
  position: relative;
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.thumb span {
  position: absolute;
  right: 3px;
  top: 3px;
  background: #fff;
  color: var(--red);
  font-size: 9px;
  border-radius: 5px;
  padding: 2px;
}
.formrow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 15px;
}
.field label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 6px;
}
.field input,
.field select {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}
.status {
  margin-top: 12px;
  color: var(--green, #3f8962);
  font-size: 12px;
}
.empty {
  text-align: center;
  grid-column: 1/-1;
  padding: 35px;
  color: var(--muted);
}
.ad-banner {
  border: 1px solid #ead09a;
  background: linear-gradient(100deg, #fff8dc, #fffdf3);
  border-radius: 12px;
  padding: 10px 14px;
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #7f5b13;
  font-size: 12px;
}
.ad-banner span {
  font-size: 9px;
  letter-spacing: 0.12em;
  font-weight: 900;
  color: #a66a00;
}
.ad-banner strong {
  font-size: 12px;
}
.ad-banner small {
  color: #a1844b;
}
.bottom-ad {
  margin: 28px 0 0;
}
.adbox {
  position: relative;
  background: #fff;
  border-radius: 16px;
  width: min(92vw, 430px);
  min-height: 260px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 20px 60px #0005;
}
.ad-label {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: #9b7a35;
  font-weight: 900;
}
.ad-placeholder {
  margin: 28px auto 14px;
  background: #f7f0d9;
  border: 1px dashed #d8bd76;
  border-radius: 10px;
  padding: 32px 10px;
  color: #9a7a35;
}
.ad-count {
  font-size: 40px;
  font-weight: 900;
  color: var(--red);
}
.adbox p {
  color: var(--muted);
  font-size: 12px;
}
.ad-close {
  position: absolute;
  right: 10px;
  top: 10px;
  border: 0;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  background: #eee;
  color: #777;
  font-weight: 900;
  cursor: not-allowed;
}
.ad-close.ready {
  background: var(--dark);
  color: #fff;
  cursor: pointer;
}
.language-setting {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}
.language-setting select {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px;
  background: #fff;
  font: inherit;
}
.authbox {
  max-width: 460px;
}
body.auth-pending > :not(#authModal),
body.auth-required > :not(#authModal) {
  visibility: hidden !important;
}
#authModal {
  z-index: 1000;
}
.logout-button {
  margin-top: 14px;
  color: var(--red);
}
.secondary-auth {
  width: 100%;
  margin-top: 9px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 10px;
  cursor: pointer;
  font-weight: 800;
}
.auth-help {
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}
.google-btn {
  width: 100%;
  border: 1px solid #cfcfcf;
  background: #fff;
  border-radius: 8px;
  padding: 11px;
  cursor: pointer;
  font-weight: 800;
}
.google-btn:disabled {
  color: var(--muted);
  background: #f7f4f0;
  cursor: not-allowed;
}
.or {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  margin: 18px 0;
}
.profile-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}
.profile-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.profile-item small {
  display: block;
  color: var(--muted);
}
.profile-actions {
  display: flex;
  gap: 5px;
}
.profile-actions button {
  border: 0;
  border-radius: 7px;
  padding: 7px 9px;
  cursor: pointer;
  font-size: 11px;
}
.manage-row {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}
.manage-row button {
  border: 0;
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 800;
}
.edit-btn {
  background: #f3e4c5;
  color: #765000;
}
.delete-btn {
  background: #f8dddd;
  color: #a52222;
}
.detail-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 16px 0;
}
.detail-gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
}
@media (max-width: 850px) {
  .premium-grid {
    grid-template-columns: 1fr;
  }
  .premium {
    margin-top: 0;
  }
  .nav {
    padding: 0 16px;
    gap: 10px;
  }
  .brand {
    min-width: auto;
  }
  .brand strong {
    font-size: 15px;
  }
  .search {
    order: 3;
    position: absolute;
    top: 84px;
    left: 16px;
    right: 16px;
    max-width: none;
  }
  .nav {
    margin-bottom: 62px;
  }
  .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-logo {
    width: 110px;
    height: 110px;
  }
  .seller {
    display: block;
  }
  .seller-btn {
    margin-top: 15px;
  }
}
@media (max-width: 500px) {
  .page {
    padding: 16px;
  }
  .hero {
    padding: 23px;
  }
  .hero-logo {
    display: none;
  }
  .products {
    gap: 10px;
  }
  .visual {
    height: 135px;
    font-size: 48px;
  }
  .section-head {
    display: block;
  }
  .section-head .categories {
    margin-top: 14px;
  }
  .previews {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 600px) {
  body {
    font-size: 14px;
    overflow-x: hidden;
  }
  .top {
    padding: 8px 10px;
    font-size: 10px;
    line-height: 1.35;
  }
  .nav {
    height: auto;
    min-height: 70px;
    padding: 10px 12px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    margin-bottom: 116px;
    align-items: center;
  }
  .brand {
    grid-column: 1;
    min-width: 0;
    gap: 7px;
  }
  .brand img {
    width: 36px;
    height: 36px;
  }
  .brand strong {
    font-size: 15px;
  }
  .brand small {
    font-size: 8px;
  }
  .nav .cart {
    grid-column: 2;
    grid-row: 1;
    padding: 9px 10px;
    font-size: 12px;
  }
  .nav #aboutBtn {
    display: none;
  }
  .nav .language-setting {
    grid-column: 1/-1;
    grid-row: 2;
    justify-content: flex-end;
  }
  .nav .language-setting span {
    font-size: 10px;
  }
  .nav .language-setting select {
    min-width: 104px;
    height: 34px;
  }
  .search {
    position: absolute;
    top: 124px;
    left: 12px;
    right: 12px;
    width: auto;
    max-width: none;
    height: 42px;
  }
  .search input {
    min-width: 0;
    padding: 10px 13px;
    font-size: 13px;
  }
  .search button {
    padding: 0 15px;
  }
  .page {
    width: 100%;
    padding: 12px;
  }
  .ad-banner {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2px 8px;
    padding: 9px 10px;
    margin-bottom: 12px;
  }
  .ad-banner span {
    grid-row: 1/3;
  }
  .ad-banner small {
    font-size: 10px;
  }
  .ad-banner strong {
    font-size: 11px;
  }
  .hero {
    padding: 22px 17px;
    border-radius: 16px;
    display: block;
  }
  .hero h1 {
    font-size: 34px;
    line-height: 1.05;
  }
  .hero p {
    font-size: 13px;
    line-height: 1.5;
  }
  .hero .primary,
  .seller-btn,
  .primary {
    min-height: 44px;
    padding: 12px 16px;
  }
  .hero-logo {
    display: none;
  }
  .section-head {
    margin: 24px 0 12px;
  }
  .section-head h2 {
    font-size: 25px;
  }
  .categories {
    margin-right: -12px;
    padding-right: 12px;
    gap: 7px;
  }
  .cat {
    padding: 9px 12px;
    font-size: 12px;
  }
  .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .visual {
    height: 118px;
  }
  .pbody {
    padding: 10px;
  }
  .pbody h3 {
    font-size: 13px;
  }
  .meta {
    font-size: 10px;
  }
  .price {
    font-size: 15px;
    margin-top: 7px;
  }
  .contact-row {
    gap: 5px;
    margin-top: 9px;
  }
  .contact-btn {
    font-size: 9px;
    padding: 7px 3px;
  }
  .seller {
    margin-top: 22px;
    padding: 17px;
    display: block;
    border-radius: 15px;
  }
  .seller h2 {
    font-size: 23px;
  }
  .seller p {
    font-size: 12px;
    line-height: 1.5;
  }
  .seller-btn {
    display: block;
    width: 100%;
    margin-top: 14px;
  }
  .premium-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .premium {
    padding: 17px;
    display: block;
    border-radius: 15px;
  }
  .premium h2 {
    font-size: 22px;
  }
  .premium-price {
    margin-top: 13px;
    font-size: 17px;
  }
  .footer {
    margin-top: 22px;
    padding: 18px 4px;
    line-height: 1.5;
  }
  .modal {
    padding: 0;
    align-items: flex-end;
  }
  .modalbox {
    width: 100%;
    max-height: 92vh;
    padding: 18px 15px;
    border-radius: 18px 18px 0 0;
  }
  .modalhead {
    gap: 10px;
  }
  .modal h2 {
    font-size: 23px;
  }
  .formrow {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 12px;
  }
  .field {
    margin-top: 12px !important;
  }
  .upload {
    padding: 22px 12px;
  }
  .previews {
    grid-template-columns: repeat(3, 1fr);
  }
  .detail-gallery {
    gap: 7px;
  }
  .manage-row {
    flex-wrap: wrap;
  }
  .manage-row button {
    flex: 1;
    min-height: 42px;
  }
  .profile-item {
    align-items: flex-start;
  }
  .profile-actions button {
    min-height: 36px;
  }
  .adbox {
    width: calc(100% - 24px);
    min-height: 250px;
    padding: 20px;
  }
  .ad-placeholder {
    margin: 22px auto 12px;
    padding: 28px 8px;
  }
  .bottom-ad {
    margin-top: 20px;
  }
}

.field select {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font: inherit;
}

/* Brand image and the new information/legal area */
.nav .brand img {
  width: 58px;
  height: 42px;
  object-fit: contain;
  background: transparent;
  border-radius: 8px;
}
.hero-logo {
  background: transparent;
  border-radius: 14px;
}
#aboutBtn {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.footer {
  line-height: 1.6;
}
.footer p {
  margin: 7px auto;
}
.ecosystem-credit {
  max-width: 860px;
  line-height: 1.65;
}
.broke-dev-token {
  color: #d52a2c;
  font-weight: 900;
}
.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 12px 0;
}
.footer-links a,
.complaint-line a {
  color: #8b2025;
  text-underline-offset: 3px;
}
.legal-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.legal-nav {
  min-height: 72px;
  padding: 12px max(20px, calc((100% - 1180px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.legal-wordmark {
  color: var(--ink);
  text-decoration: none;
  font:
    800 19px Georgia,
    serif;
  letter-spacing: 0.04em;
}
.legal-wordmark span {
  color: var(--red);
  display: block;
  font:
    800 9px Inter,
    system-ui,
    sans-serif;
  letter-spacing: 0.18em;
}
.legal-home {
  color: #8b2025;
  font-size: 13px;
  font-weight: 700;
  text-underline-offset: 3px;
}
.legal-page {
  flex: 1;
  width: min(100%, 960px);
  padding-top: 34px;
  padding-bottom: 34px;
}
.legal-card {
  padding: clamp(22px, 5vw, 48px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 15px 45px #55251a0a;
  line-height: 1.75;
}
.legal-card h1,
.legal-card h2 {
  font-family: Georgia, serif;
  font-weight: 500;
  line-height: 1.25;
}
.legal-card h1 {
  margin: 5px 0 8px;
  font-size: clamp(30px, 5vw, 42px);
}
.legal-card h2 {
  margin: 28px 0 8px;
  font-size: 22px;
}
.legal-card p,
.legal-card li {
  color: #51494b;
}
.legal-card a:not(.primary) {
  color: #8b2025;
  text-underline-offset: 3px;
}
.legal-card ul {
  padding-left: 23px;
}
.legal-eyebrow {
  margin: 0;
  color: #9b7120;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.18em;
}
.legal-updated {
  margin: 0 0 22px;
  color: var(--muted) !important;
  font-size: 12px;
}
.ecosystem-statement {
  margin: 25px 0;
  padding: 20px;
  border-left: 4px solid var(--red);
  border-radius: 0 12px 12px 0;
  background: #fff5f2;
  color: var(--ink) !important;
  font-size: clamp(17px, 3vw, 21px);
  font-weight: 700;
}
.legal-return {
  display: inline-block;
  margin-top: 10px;
  text-decoration: none;
}
.legal-footer {
  width: min(100% - 32px, 1180px);
  margin: 0 auto;
  padding: 18px 0 24px;
}
@media (max-width: 600px) {
  .nav .brand img {
    width: 48px;
    height: 35px;
  }
  .legal-nav {
    min-height: 62px;
    padding: 10px 14px;
  }
  .legal-page {
    padding: 18px 12px 28px;
  }
  .legal-footer {
    width: calc(100% - 24px);
  }
  .footer-links {
    gap: 8px 14px;
  }
}

.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}
.legal-brand img {
  width: 58px;
  height: 42px;
  object-fit: contain;
  background: transparent;
  border-radius: 8px;
}
.legal-wordmark small {
  color: var(--red);
  display: block;
  font:
    800 9px Inter,
    system-ui,
    sans-serif;
  letter-spacing: 0.18em;
}
@media (max-width: 600px) {
  .legal-brand img {
    width: 48px;
    height: 35px;
  }
}

.undangan-promo {
  margin: -6px 0 14px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 12px;
  background: #fffdf9;
  color: #5d4c4a;
  font-size: 12px;
}
.undangan-promo p {
  margin: 0;
  line-height: 1.5;
}
.undangan-promo-link {
  color: #8b2025;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
@media (max-width: 600px) {
  .undangan-promo {
    margin-bottom: 12px;
    padding: 8px 10px;
    border-radius: 10px;
  }
  .undangan-promo p {
    font-size: 11px;
  }
}


/* Shared catalog loading, pagination, and locked guest management controls */
.catalog-status {
  width: fit-content;
  max-width: 100%;
  margin: 14px auto 0;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fffdf9;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}
.catalog-status[hidden],
.load-more[hidden] {
  display: none !important;
}
.catalog-status.error {
  color: #8b2025;
  border-color: #e7b9b8;
  background: #fff5f4;
}
.load-more {
  display: block;
  margin: 18px auto 0;
  padding: 11px 22px;
  border: 1px solid #d5b56a;
  border-radius: 999px;
  background: #fff;
  color: #7e2225;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.load-more:hover:not(:disabled) {
  background: #fff7e5;
}
.load-more:disabled {
  opacity: 0.62;
  cursor: wait;
}
.manage-row button:disabled,
.profile-actions button:disabled {
  opacity: 0.56;
  cursor: not-allowed;
  filter: grayscale(0.2);
}
.local-only-tag {
  position: absolute;
  right: 9px;
  bottom: 9px;
  z-index: 2;
  padding: 5px 8px;
  border-radius: 999px;
  background: #6b5a46;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
}

.visual {
  position: relative;
}


/* Custom web launch screen shown immediately after the platform/PWA splash. */
.startup-splash {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: grid;
  place-items: center;
  padding: max(22px, env(safe-area-inset-top)) 20px
    max(22px, env(safe-area-inset-bottom));
  background: #fff;
  color-scheme: light;
  opacity: 1;
  visibility: visible;
  transition:
    opacity 280ms ease,
    visibility 280ms ease;
}
.startup-splash__content {
  display: flex;
  width: min(100%, 560px);
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.startup-splash__logo {
  display: block;
  width: clamp(215px, 52vw, 350px);
  max-height: 34vh;
  object-fit: contain;
}
.startup-splash__copy {
  max-width: 520px;
  margin: 0;
  color: #4b3d39;
  font: 600 clamp(14px, 3.6vw, 18px) / 1.58 Inter, system-ui, sans-serif;
  text-wrap: balance;
}
.startup-splash__brand {
  font-weight: 900;
}
.startup-splash__ecosystem {
  color: #c4262f;
  font-weight: 900;
}
.startup-splash.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
@media (max-height: 620px) {
  .startup-splash__content {
    gap: 10px;
  }
  .startup-splash__logo {
    width: clamp(165px, 38vw, 250px);
    max-height: 28vh;
  }
  .startup-splash__copy {
    font-size: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .startup-splash {
    transition: none;
  }
}
