@charset "UTF-8";

:root {
  --sl-brand: #ff5b5b;
  --sl-brand-deep: #d92121;
  --sl-brand-soft: #fff0ee;
  --sl-cta: #ff8a0f;
  --sl-cta-deep: #ee6c00;
  --sl-cta-gradient: linear-gradient(180deg, #ff8a0f 0%, #ee6c00 100%);
  --sl-cta-shadow: 0 8px 20px rgba(238, 108, 0, 0.32);
  --sl-page: #fff6f4;
  --sl-surface: #ffffff;
  --sl-ink: #111111;
  --sl-muted: #6b6b6b;
  --sl-line: #f3e2de;
  --sl-radius-ctl: 10px;
  --sl-radius-card: 16px;
  --sl-shadow: 0 6px 18px rgba(150, 15, 15, 0.06);
  --sl-shadow-hover: 0 10px 24px rgba(150, 15, 15, 0.1);
  --brand: #ff5b5b;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body.prestige-body {
  margin: 0;
  background: var(--sl-page);
  color: var(--sl-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", sans-serif;
}

.prestige-app {
  width: 100%;
  max-width: 440px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--sl-page);
}

.prestige-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: calc(56px + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 16px 0;
  color: #fff;
  background: linear-gradient(180deg, #ff6b6b 0%, var(--sl-brand) 100%);
  box-shadow: 0 2px 12px rgba(150, 15, 15, 0.14);
}

.prestige-header--titled {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  justify-content: initial;
  box-shadow: none;
}

.prestige-header-title {
  grid-column: 2;
  min-width: 0;
  max-width: min(70vw, 280px);
  margin: 0;
  overflow: hidden;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.01em;
  text-align: center;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.prestige-header--titled .prestige-header-actions {
  grid-column: 3;
  justify-self: end;
}

.prestige-back {
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  margin-left: -4px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.18s ease;
}

.prestige-header--titled .prestige-back {
  grid-column: 1;
  justify-self: start;
}

.prestige-back svg {
  width: 22px;
  height: 22px;
}

.prestige-back:active {
  background: rgba(255, 255, 255, 0.18);
}

.prestige-contact {
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  margin-right: -4px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.18s ease;
}

.prestige-header--titled .prestige-contact {
  grid-column: 3;
  justify-self: end;
}

.prestige-contact svg {
  width: 22px;
  height: 22px;
}

.prestige-contact:active {
  background: rgba(255, 255, 255, 0.32);
}

.prestige-contact:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.prestige-brand {
  display: flex;
  align-items: center;
  min-width: 0;
  max-width: 180px;
  height: 40px;
}

.prestige-brand a {
  display: flex;
  align-items: center;
  height: 100%;
  text-decoration: none;
}

.prestige-brand img {
  display: block;
  width: auto;
  max-width: 180px;
  height: 100%;
  object-fit: contain;
}

.prestige-brand-fallback {
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prestige-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.prestige-lang-select {
  max-width: 110px;
  height: 32px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.prestige-lang-select option {
  background: #333;
  color: #fff;
}

.prestige-header-link {
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.prestige-header-sep {
  color: rgba(255, 255, 255, 0.45);
  font-size: 12px;
}

.prestige-header-user {
  max-width: 90px;
  overflow: hidden;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prestige-main {
  position: relative;
  z-index: 1;
  padding-bottom: calc(84px + env(safe-area-inset-bottom));
}

.prestige-body--no-tabbar .prestige-main {
  padding-bottom: calc(16px + env(safe-area-inset-bottom));
}

/* Bottom nav */
.prestige-bottom-nav {
  position: fixed;
  z-index: 24;
  bottom: 0;
  left: 50%;
  width: min(440px, 100%);
  height: calc(64px + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  transform: translateX(-50%);
  border-top: 1px solid var(--sl-line);
  background: var(--sl-surface);
  box-shadow: 0 -4px 18px rgba(150, 15, 15, 0.06);
}

.prestige-nav-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  padding: 0 4px;
  border: 0;
  color: var(--sl-muted);
  background: transparent;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.18s ease;
}

.prestige-nav-item span:last-child {
  max-width: 100%;
  overflow: hidden;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.prestige-nav-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  transition: transform 0.18s ease;
}

.prestige-nav-icon svg {
  display: block;
  width: 26px;
  height: 26px;
}

.prestige-nav-item:nth-child(3) .prestige-nav-icon {
  width: 54px;
  height: 54px;
  margin-top: -26px;
  border: 4px solid var(--sl-surface);
  border-radius: 50%;
  color: #fff;
  background: var(--sl-cta-gradient);
  box-shadow: var(--sl-cta-shadow);
}

.prestige-nav-item:nth-child(3) .prestige-nav-icon svg {
  width: 24px;
  height: 24px;
}

.prestige-nav-item:nth-child(3) span:last-child {
  margin-top: 1px;
}

.prestige-nav-item.active {
  color: var(--sl-brand-deep);
}

.prestige-nav-item:active .prestige-nav-icon {
  transform: scale(0.94);
}

/* Home notice */
.home-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  margin: 12px 16px 0;
  padding: 0 14px;
  overflow: hidden;
  border: 1px solid rgba(226, 91, 91, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 20px rgba(191, 91, 91, 0.06);
}

.home-notice-icon {
  display: inline-flex;
  flex: 0 0 30px;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  color: #f15b62;
  border-radius: 10px;
  background: #fff0f0;
}

.home-notice-icon svg {
  width: 18px;
  height: 18px;
}

.home-notice-viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}

.home-notice-track {
  display: inline-flex;
  align-items: center;
  min-width: max-content;
  animation: home-notice-marquee 24s linear infinite;
}

.home-notice-copy {
  flex: 0 0 auto;
  padding-right: 72px;
  color: #655653;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}

@keyframes home-notice-marquee {
  0% { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Quick actions */
.home-quick-actions {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  margin: 22px 16px 0;
  padding: 6px;
  overflow: hidden;
  border: 1px solid #f1dcd8;
  border-radius: 20px;
  background: linear-gradient(180deg, #fff 0%, #fffaf8 100%);
  box-shadow: 0 8px 24px rgba(139, 71, 48, 0.07);
}

.home-quick-action {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 82px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 2px 10px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--sl-ink);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.home-quick-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--sl-brand-soft);
  color: var(--sl-brand-deep);
  box-shadow: inset 0 0 0 1px #fff, 0 3px 8px rgba(184, 32, 32, 0.06);
}

.home-quick-icon svg,
.home-quick-icon i {
  display: block;
  width: 22px;
  height: 22px;
  font-size: 20px;
  line-height: 22px;
}

.home-quick-action:nth-child(1) .home-quick-icon { background: #fff0f0; color: var(--sl-brand-deep); }
.home-quick-action:nth-child(2) .home-quick-icon { background: #f3eeff; color: #7c3aed; }
.home-quick-action:nth-child(3) .home-quick-icon { background: #eefbf3; color: #059669; }
.home-quick-action:nth-child(4) .home-quick-icon { background: #fff4e7; color: var(--sl-cta-deep); }
.home-quick-action:nth-child(5) .home-quick-icon { background: #eef5ff; color: #2563eb; }

.home-quick-label {
  max-width: 100%;
  overflow: hidden;
  color: var(--sl-ink);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-quick-action:active {
  background: var(--sl-brand-soft);
  transform: translateY(1px);
}

/* Recommendations */
.home-recommendations {
  margin-top: 22px;
  padding-inline: 16px;
}

.home-section-heading {
  margin-bottom: 12px;
}

.home-section-heading h2 {
  margin: 0;
  color: var(--sl-ink);
  font-size: 22px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.home-profile-list {
  display: grid;
  gap: 12px;
}

.home-profile-card {
  display: flex;
  align-items: stretch;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--sl-line);
  border-radius: var(--sl-radius-card);
  background: var(--sl-surface);
  box-shadow: var(--sl-shadow);
  color: inherit;
  text-decoration: none;
}

.home-profile-portrait {
  position: relative;
  flex: 0 0 120px;
  min-height: 150px;
  overflow: hidden;
  border-radius: 12px;
  background: var(--sl-brand-soft);
}

.home-profile-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 150px;
  object-fit: cover;
  object-position: center 25%;
  transition: opacity 0.35s ease;
}

.home-profile-portrait img.lazy-load {
  opacity: 0.5;
}

.home-profile-portrait img.lazy-loaded {
  opacity: 1;
}

.home-profile-badges {
  position: absolute;
  z-index: 1;
  top: 8px;
  left: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: calc(100% - 16px);
}

.home-profile-badge {
  display: inline-block;
  padding: 3px 7px;
  border-radius: 6px;
  background: linear-gradient(135deg, #ff7a7a, var(--sl-brand-deep));
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 6px rgba(150, 15, 15, 0.25);
}

.home-profile-badge.is-video {
  background: linear-gradient(135deg, #ffb347, #ee6c00);
}

.home-profile-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  padding: 2px 0 0;
}

.home-profile-info h3 {
  min-width: 0;
  margin: 0 0 6px;
  color: var(--sl-ink);
  font-size: 18px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.home-profile-params {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-bottom: 6px;
  color: var(--sl-muted);
  font-size: 12px;
  line-height: 1.5;
}

.home-profile-params .param-label {
  color: #999;
}

.home-profile-params .param-value {
  color: #333;
  font-weight: 500;
}

.profile-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
  max-height: 56px;
  margin: 4px 0 10px;
  overflow: hidden;
}

.profile-tag {
  display: inline-block;
  min-width: 0;
  max-width: 100%;
  padding: 3px 7px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.home-profile-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  margin-top: auto;
  padding: 6px 12px;
  border-radius: var(--sl-radius-ctl);
  background: var(--sl-cta-gradient);
  box-shadow: 0 4px 10px rgba(238, 108, 0, 0.22), inset 0 1px rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
}

.home-profile-action svg {
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
}

.home-empty {
  text-align: center;
  padding: 40px 16px;
  color: var(--sl-muted);
  font-size: 14px;
}

@media (max-width: 359px) {
  .home-quick-actions {
    gap: 2px;
    margin: 18px 12px 0;
    padding: 4px;
  }
  .home-quick-action {
    min-height: 76px;
  }
  .home-quick-icon {
    width: 38px;
    height: 38px;
  }
  .home-quick-label {
    font-size: 10px;
  }
  .home-recommendations {
    padding-inline: 12px;
  }
  .home-notice {
    margin-inline: 12px;
  }
  .home-profile-portrait {
    flex-basis: 104px;
    min-height: 140px;
  }
}
