@import url("https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600;9..40,700;9..40,900&family=Playfair+Display:ital,wght@0,600;0,700;0,900;1,700;1,900&display=swap");

:root {
  color-scheme: light;
  --ink: #17130d;
  --muted: #756f66;
  --soft: #f7f2ea;
  --paper: #fffdf8;
  --line: #e5ddd0;
  --line-strong: #d3c7b7;
  --brand: #cf6421;
  --brand-dark: #7c3515;
  --olive: #55614a;
  --blue: #25465f;
  --shadow: 0 24px 70px rgba(54, 39, 24, 0.14);
  --radius: 24px;
  --rail: 86px;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--soft);
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--soft);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.boot {
  min-height: 100vh;
  display: grid;
  place-items: center;
  gap: 14px;
  align-content: center;
  color: var(--muted);
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: white;
  font-weight: 900;
  letter-spacing: 0;
}

.page {
  min-height: 100vh;
  padding: 42px clamp(22px, 4vw, 58px) 72px;
}

.shell {
  min-height: 100vh;
  padding-left: var(--rail);
}

.rail {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 10;
  width: var(--rail);
  border-right: 1px solid var(--line);
  background: rgba(255, 251, 244, 0.94);
  backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 16px;
  gap: 22px;
}

.rail .brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: white;
  color: var(--brand);
  border: 1px solid var(--line);
  box-shadow: 0 14px 32px rgba(45, 31, 18, 0.08);
}

.rail-nav {
  margin-top: 24px;
  display: grid;
  gap: 12px;
}

.rail-button,
.mobile-nav button,
.icon-button {
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
}

.rail-button {
  width: 48px;
  height: 48px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: #6f685f;
}

.rail-button svg,
.mobile-nav svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rail-auth {
  font-weight: 900;
  color: var(--brand);
}

.rail-button.active,
.rail-button:hover {
  border-color: var(--line);
  background: white;
  color: var(--brand);
  box-shadow: 0 16px 34px rgba(44, 34, 24, 0.1);
}

.rail-bottom {
  margin-top: auto;
}

.mobile-nav {
  display: none;
}

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 34px;
}

.app-title {
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 5.8rem);
  line-height: 0.9;
  letter-spacing: 0;
  font-weight: 900;
}

.eyebrow,
.overline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--brand);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.subtle {
  color: var(--muted);
}

.lead {
  max-width: 680px;
  color: #5f584f;
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.65;
}

.btn {
  min-height: 48px;
  border-radius: 15px;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  padding: 0 20px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
}

.btn.primary {
  border-color: var(--brand);
  background: var(--brand);
  color: white;
  box-shadow: 0 18px 40px rgba(207, 100, 33, 0.24);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.12);
  color: white;
  border-color: rgba(255, 255, 255, 0.24);
}

.btn.dark {
  background: var(--ink);
  color: white;
}

.btn.slim {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
}

.btn.soldout {
  border-color: #e6ded2;
  background: #f0e9dd;
  color: #8a8176;
  box-shadow: none;
}

.btn:disabled,
button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
  transform: none;
}

.landing {
  min-height: 100vh;
  background: #0e0c08;
  color: white;
}

.landing-hero {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: linear-gradient(160deg, #0e0c08 0%, #1a1208 35%, #1c1a10 64%, #0d1a12 100%);
}

.landing-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 70% 50% at 58% 38%, rgba(207, 100, 33, 0.16), transparent 60%),
    radial-gradient(ellipse 48% 58% at 20% 82%, rgba(61, 107, 53, 0.11), transparent 58%),
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: auto, auto, 64px 64px, 64px 64px;
}

.landing-hero-photo,
.landing-hero-center,
.landing-strips {
  position: absolute;
  top: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
}

.landing-hero-photo {
  left: 0;
  width: 38%;
  opacity: 0.88;
}

.landing-hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(14, 12, 8, 0.46), rgba(14, 12, 8, 0.24), rgba(14, 12, 8, 0.72));
}

.landing-hero-center {
  left: 30%;
  right: 30%;
  opacity: 0.42;
  filter: saturate(0.9);
}

.landing-hero-center::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(14, 12, 8, 0.42);
}

.landing-strips {
  right: 0;
  width: 39%;
  z-index: 0;
  display: flex;
  gap: 3px;
  overflow: hidden;
}

.landing-strips::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #0e0c08 0%, rgba(14, 12, 8, 0.58) 28%, rgba(14, 12, 8, 0.1));
}

.landing-strip {
  flex: 1;
  min-width: 0;
  position: relative;
  background-size: cover;
  background-position: center;
}

.landing-strip::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.54));
}

.landing-strip span {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 28px;
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.landing-nav {
  position: absolute;
  z-index: 4;
  top: 0;
  left: 0;
  right: 0;
  height: 76px;
  padding: 0 clamp(22px, 5vw, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.landing-nav button {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
}

.landing-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: white;
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 900;
}

.landing-brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 10px;
}

.landing-nav > div {
  display: flex;
  align-items: center;
  gap: 26px;
}

.landing-nav > div button:last-child {
  min-height: 42px;
  border-radius: 12px;
  padding: 0 20px;
  background: var(--brand);
  color: white;
  box-shadow: 0 16px 38px rgba(207, 100, 33, 0.24);
}

.landing-copy {
  position: relative;
  z-index: 3;
  width: min(760px, 64%);
  margin-left: clamp(26px, 10vw, 190px);
  padding-top: 64px;
}

.landing-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(207, 100, 33, 0.36);
  background: rgba(207, 100, 33, 0.13);
  color: #e87832;
  padding: 0 13px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.landing-badge span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
}

.landing-copy h1 {
  margin: 28px 0 26px;
  max-width: 840px;
  color: white;
  font-family: var(--serif);
  font-size: clamp(4rem, 8vw, 8.2rem);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.045em;
}

.landing-copy h1 em {
  color: #e06b25;
  font-style: italic;
}

.landing-copy > p:not(.landing-badge) {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.55);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.85;
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 38px 0 56px;
}

.landing-stats {
  display: flex;
  gap: clamp(22px, 4vw, 52px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 34px;
}

.landing-stats strong {
  display: block;
  color: #e06b25;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  line-height: 1;
}

.landing-stats span {
  display: block;
  max-width: 142px;
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.36);
  font-size: 0.82rem;
  line-height: 1.45;
}

.landing-section {
  padding: clamp(72px, 10vw, 132px) clamp(22px, 5vw, 72px);
}

.landing-warm {
  background: #faf7f2;
  color: var(--ink);
}

.landing-dark {
  position: relative;
  overflow: hidden;
  background: #17130d;
  color: white;
}

.landing-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 82% 42%, rgba(207, 100, 33, 0.09), transparent 62%);
  pointer-events: none;
}

.landing-market {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(320px, 460px);
  gap: clamp(32px, 7vw, 96px);
  align-items: center;
  background: #f2ede3;
  color: var(--ink);
}

.landing-section-grid {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.8fr);
  gap: clamp(34px, 7vw, 88px);
  align-items: center;
}

.landing-section h2,
.landing-section-head h2 {
  margin: 0 0 20px;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4.4vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.landing-body {
  max-width: 640px;
  color: #5d554d;
  line-height: 1.82;
  font-size: 1rem;
}

.landing-dark .landing-body {
  color: rgba(255, 255, 255, 0.52);
}

.section-eyebrow {
  margin: 0 0 14px;
  color: var(--brand);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.landing-problem-list {
  display: grid;
  gap: 16px;
}

.landing-problem-list article,
.landing-pillar {
  border: 1px solid rgba(26, 22, 18, 0.09);
  border-radius: 20px;
  background: #fffdf8;
  padding: 24px;
  box-shadow: 0 18px 45px rgba(26, 22, 18, 0.05);
}

.landing-problem-list strong,
.landing-problem-list span {
  display: block;
}

.landing-problem-list strong {
  color: var(--ink);
  font-size: 1rem;
}

.landing-problem-list span {
  margin-top: 7px;
  color: var(--muted);
  line-height: 1.55;
}

.landing-section-head,
.landing-pillars {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.landing-section-head {
  margin-bottom: 42px;
  text-align: center;
}

.landing-section-head h2 {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.landing-pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.landing-pillar {
  min-height: 245px;
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.landing-pillar span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(207, 100, 33, 0.42);
  background: rgba(207, 100, 33, 0.14);
  color: #e06b25;
  font-size: 0.78rem;
  font-weight: 900;
}

.landing-pillar h3 {
  margin: 26px 0 12px;
  color: white;
  font-size: 1.25rem;
}

.landing-pillar p {
  margin: 0;
  color: rgba(255, 255, 255, 0.48);
  line-height: 1.7;
}

.landing-trip-card {
  overflow: hidden;
  border: 1px solid rgba(26, 22, 18, 0.09);
  border-radius: 26px;
  background: #fffdf8;
  box-shadow: 0 24px 64px rgba(44, 31, 17, 0.12);
}

.landing-trip-image {
  position: relative;
  height: 260px;
  background-size: cover;
  background-position: center;
}

.landing-trip-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.16), transparent 45%, rgba(0, 0, 0, 0.54));
}

.landing-trip-image span {
  position: absolute;
  z-index: 1;
  top: 16px;
  min-height: 30px;
  border-radius: 999px;
  padding: 7px 12px;
  color: white;
  background: rgba(0, 0, 0, 0.46);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.landing-trip-image span:first-child {
  left: 16px;
}

.landing-trip-image span:last-child {
  right: 16px;
  background: var(--brand);
}

.landing-trip-card > div:last-child {
  padding: 22px;
}

.landing-trip-card p {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.landing-trip-card h3 {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: 1.55rem;
  line-height: 1.1;
}

.landing-trip-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 20px;
}

.landing-trip-meta span {
  border-radius: 999px;
  background: #f3eadb;
  color: #7a6d5f;
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 800;
}

.landing-trip-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.landing-trip-bottom strong {
  font-family: var(--serif);
  font-size: 1.75rem;
}

.landing-trip-bottom button {
  min-height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--brand);
  color: white;
  padding: 0 18px;
  font-weight: 900;
}

@media (max-width: 980px) {
  .landing-hero {
    align-items: end;
    min-height: 820px;
  }

  .landing-hero-photo {
    width: 100%;
    opacity: 0.52;
  }

  .landing-hero-center {
    display: none;
  }

  .landing-strips {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 34%;
    opacity: 0.82;
  }

  .landing-strips::after {
    background: linear-gradient(180deg, #0e0c08 0%, rgba(14, 12, 8, 0.54) 34%, rgba(14, 12, 8, 0.08));
  }

  .landing-copy {
    width: min(720px, calc(100% - 40px));
    margin: 0 auto;
    padding: 130px 0 260px;
  }

  .landing-section-grid,
  .landing-market {
    grid-template-columns: 1fr;
  }

  .landing-pillars {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .landing-nav {
    height: auto;
    padding: 18px;
    align-items: flex-start;
  }

  .landing-nav > div {
    gap: 10px;
  }

  .landing-nav > div button:not(:last-child) {
    display: none;
  }

  .landing-brand span {
    display: none;
  }

  .landing-copy {
    width: calc(100% - 32px);
    padding-bottom: 220px;
  }

  .landing-copy h1 {
    font-size: clamp(3.7rem, 18vw, 5.2rem);
    letter-spacing: -0.05em;
  }

  .landing-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .landing-section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .landing-section h2,
  .landing-section-head h2 {
    font-size: clamp(2.45rem, 12vw, 3.4rem);
  }

  .landing-trip-image {
    height: 210px;
  }
}

.hero {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  background: #11100d;
  color: white;
}

.hero-bg {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1.15fr 0.9fr 0.22fr 0.22fr 0.22fr 0.22fr;
}

.hero-panel {
  position: relative;
  min-width: 0;
  background-size: cover;
  background-position: center;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-panel:first-child {
  border-left: 0;
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 4, 3, 0.2), rgba(5, 4, 3, 0.5));
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(14, 10, 6, 0.78), rgba(14, 10, 6, 0.2) 54%, rgba(14, 10, 6, 0.52)),
    radial-gradient(circle at 46% 26%, rgba(207, 100, 33, 0.28), transparent 34%);
}

.hero-nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px clamp(22px, 5vw, 76px);
}

.hero-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.hero-logo .brand-mark {
  background: white;
  color: var(--brand);
}

.hero-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(820px, calc(100% - 44px));
  margin: 11vh auto 0;
  text-align: left;
}

.hero-copy h1,
.serif {
  font-family: Georgia, "Times New Roman", serif;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(4rem, 9.4vw, 9.8rem);
  line-height: 0.84;
  letter-spacing: 0;
}

.accent {
  color: var(--brand);
  font-style: italic;
}

.hero-copy p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero-stats {
  position: relative;
  z-index: 2;
  width: min(820px, calc(100% - 44px));
  margin: 10vh auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.hero-stat strong {
  display: block;
  color: var(--brand);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.hero-stat span {
  color: rgba(255, 255, 255, 0.7);
}

.section {
  width: min(1280px, 100%);
  margin: 0 auto;
}

.explore-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.9fr);
  gap: clamp(24px, 5vw, 76px);
  align-items: center;
  margin-bottom: 34px;
}

.explore-hero h1,
.auth-copy h1,
.detail-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.2rem, 8vw, 7rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.collage {
  height: clamp(180px, 24vw, 260px);
  border-radius: 28px;
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  box-shadow: var(--shadow);
  background: #ddd2c1;
}

.collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-left: 2px solid var(--paper);
}

.collage img:first-child {
  border-left: 0;
}

.toolbar {
  display: flex;
  gap: 14px;
  align-items: center;
  margin: 26px 0 22px;
}

.search {
  flex: 1;
  position: relative;
}

.search input,
.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 56px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  padding: 0 18px;
  outline: none;
}

.field textarea {
  min-height: 128px;
  padding-top: 14px;
  resize: vertical;
}

.field label {
  display: block;
  margin-bottom: 8px;
  color: #463f36;
  font-weight: 900;
  font-size: 0.86rem;
}

.search input {
  padding-left: 48px;
}

.search::before,
.search::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.search::before {
  left: 20px;
  top: 50%;
  width: 15px;
  height: 15px;
  border: 2px solid #8a8176;
  border-radius: 999px;
  transform: translateY(-58%);
}

.search::after {
  left: 33px;
  top: calc(50% + 8px);
  width: 8px;
  height: 2px;
  border-radius: 999px;
  background: #8a8176;
  transform: rotate(45deg);
}

.chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.chip {
  min-height: 40px;
  border-radius: 999px;
  padding: 0 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: #6a6258;
  font-weight: 800;
}

.chip.active {
  background: var(--brand);
  color: white;
  border-color: var(--brand);
  box-shadow: 0 14px 28px rgba(207, 100, 33, 0.18);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin: 28px 0 18px;
}

.section-head h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

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

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

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

.featured-trips {
  gap: 24px;
}

.compact-trips {
  gap: 18px;
}

.card {
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.92);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 16px 46px rgba(52, 38, 21, 0.08);
}

.trip-card {
  min-width: 0;
  border-color: rgba(32, 24, 15, 0.08);
  border-radius: 26px;
  background: rgba(255, 253, 248, 0.97);
  box-shadow: 0 18px 48px rgba(46, 34, 20, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.trip-card:hover {
  transform: translateY(-4px);
  border-color: rgba(32, 24, 15, 0.14);
  box-shadow: 0 30px 78px rgba(45, 31, 18, 0.15);
}

.trip-card.compact {
  border-radius: 22px;
  box-shadow: 0 14px 36px rgba(46, 34, 20, 0.075);
}

.trip-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1.56 / 1;
  overflow: hidden;
  border: 0;
  padding: 0;
  appearance: none;
  background: #d9d0c3;
  text-align: left;
}

.trip-card.compact .trip-media {
  aspect-ratio: 1.45 / 1;
}

.trip-media img,
.trip-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.06) contrast(1.03);
  transform: scale(1.01);
  transition: transform 420ms ease, filter 420ms ease;
}

.trip-card:hover .trip-media img,
.trip-card:hover .trip-media video {
  filter: saturate(1.12) contrast(1.05);
  transform: scale(1.055);
}

.media-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), transparent 42%, rgba(0, 0, 0, 0.7)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.22), transparent 42%);
}

.badges {
  position: absolute;
  z-index: 2;
  top: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  background: rgba(17, 13, 9, 0.68);
  color: white;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  backdrop-filter: blur(12px);
}

.badge.orange {
  background: var(--brand);
}

.badge.light {
  background: rgba(255, 253, 248, 0.86);
  color: var(--brand-dark);
}

.trip-media-caption {
  position: absolute;
  z-index: 2;
  left: 22px;
  right: 22px;
  bottom: 20px;
  color: white;
}

.trip-media-caption span,
.trip-media-caption strong {
  display: block;
}

.trip-media-caption span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.trip-media-caption strong {
  max-width: 92%;
  margin-top: 5px;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  line-height: 1.02;
  text-shadow: 0 3px 22px rgba(0, 0, 0, 0.34);
}

.trip-card.compact .trip-media-caption {
  left: 15px;
  right: 15px;
  bottom: 14px;
}

.trip-card.compact .trip-media-caption strong {
  font-size: 1.05rem;
}

.trip-content,
.post-content,
.profile-panel,
.auth-card,
.detail-panel,
.message-panel {
  padding: 22px;
}

.trip-card.compact .trip-content {
  padding: 16px;
}

.trip-content h3,
.post-author h3,
.profile-name,
.message-row h3 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.2;
}

.trip-content h3 {
  display: none;
}

.trip-meta,
.post-meta,
.micro {
  color: var(--muted);
  font-size: 0.9rem;
}

.trip-meta {
  min-height: 1.35em;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trip-quick-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 13px;
}

.trip-quick-meta span {
  min-height: 28px;
  border-radius: 999px;
  padding: 6px 10px;
  background: #f1eadc;
  color: #736a60;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
}

.trip-quick-meta .urgent {
  background: rgba(207, 100, 33, 0.13);
  color: var(--brand-dark);
}

.trip-bottom {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.price {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 900;
  font-size: 1.55rem;
}

.empty,
.notice,
.error {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px 20px;
  color: var(--muted);
  background: rgba(255, 253, 248, 0.72);
}

.error {
  border-color: rgba(196, 56, 45, 0.45);
  color: #a33d33;
  background: #fff2ef;
}

.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
  padding: clamp(24px, 6vw, 86px);
  background:
    radial-gradient(circle at 72% 26%, rgba(86, 97, 74, 0.12), transparent 34%),
    var(--soft);
}

.auth-copy {
  max-width: 720px;
}

.auth-card {
  max-width: 560px;
  width: 100%;
  margin-left: auto;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.76);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 8px;
  border-radius: 18px;
  background: rgba(22, 18, 13, 0.06);
  margin-bottom: 22px;
}

.tabs button {
  min-height: 48px;
  border-radius: 14px;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-weight: 900;
}

.tabs button.active {
  color: white;
  background: var(--brand);
}

.form-grid {
  display: grid;
  gap: 16px;
}

.form-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.app-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  background: #d9d0c3;
}

.avatar.large {
  width: 124px;
  height: 124px;
}

.feed-stack {
  display: grid;
  gap: 18px;
}

.post-card {
  border: 1px solid rgba(32, 24, 15, 0.08);
  border-radius: 28px;
  background: rgba(255, 253, 248, 0.86);
  box-shadow: 0 18px 54px rgba(46, 34, 20, 0.07);
  padding: clamp(18px, 2.6vw, 28px);
}

.post-card + .post-card {
  border-top: 1px solid rgba(32, 24, 15, 0.08);
}

.post-head,
.profile-head,
.message-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.post-head {
  justify-content: space-between;
  position: relative;
}

.post-author {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
}

.icon-pill {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.icon-pill:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.96);
  transform: translateY(-1px);
}

.icon-pill svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.post-menu {
  position: relative;
}

.post-menu-popover {
  position: absolute;
  z-index: 20;
  right: 0;
  top: 50px;
  width: 176px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.98);
  box-shadow: 0 20px 50px rgba(46, 34, 20, 0.16);
  padding: 8px;
}

.post-menu-popover button {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  font-weight: 900;
  cursor: pointer;
  text-align: left;
}

.post-menu-popover button:hover {
  background: rgba(32, 24, 15, 0.05);
}

.post-menu-popover svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.post-menu-popover .danger {
  color: #b43a28;
}

.post-body {
  margin: 18px 0;
  font-size: clamp(1.12rem, 2vw, 1.45rem);
  line-height: 1.55;
}

.post-image,
.post-video {
  width: 100%;
  max-height: 620px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #d7cebf;
}

.post-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  color: var(--muted);
}

.post-actions button,
.plain-action {
  border: 0;
  background: transparent;
  color: inherit;
  font-weight: 900;
}

.post-actions button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.post-actions button:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.post-actions svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.post-actions button.active,
.plain-action.active {
  color: var(--brand);
}

.modal-backdrop {
  position: fixed;
  z-index: 80;
  inset: 0;
  background: rgba(16, 14, 12, 0.44);
  backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  padding: 24px;
}

.modal-card {
  width: min(680px, 100%);
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    radial-gradient(circle at 8% 0%, rgba(207, 100, 33, 0.08), transparent 32%),
    rgba(255, 253, 248, 0.98);
  box-shadow: 0 28px 90px rgba(17, 13, 9, 0.24);
  padding: clamp(18px, 3vw, 30px);
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.modal-head h2,
.confirm-card h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 0.95;
}

.post-edit-modal textarea {
  min-height: 150px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.danger-fill {
  border-color: #b43a28;
  background: #b43a28;
  color: white;
}

.confirm-preview {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  padding: 14px 16px;
  color: var(--muted);
  line-height: 1.55;
  max-height: 160px;
  overflow: hidden;
}

.composer {
  margin-bottom: 18px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 12% 0%, rgba(207, 100, 33, 0.08), transparent 34%),
    rgba(255, 253, 248, 0.94);
  box-shadow: 0 22px 70px rgba(46, 34, 20, 0.09);
}

.composer .field textarea {
  min-height: 112px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.84);
}

.media-picker-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.media-picker {
  min-height: 82px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.media-picker:hover,
.media-picker.selected {
  border-color: rgba(207, 100, 33, 0.48);
  box-shadow: 0 14px 34px rgba(207, 100, 33, 0.12);
  transform: translateY(-1px);
}

.media-picker input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.media-picker-icon {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(207, 100, 33, 0.12);
  color: var(--brand);
}

.media-picker-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.media-picker strong,
.media-picker small {
  display: block;
}

.media-picker strong {
  color: var(--ink);
}

.media-picker small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.84rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: min(340px, 42vw);
}

.comment-panel {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.64);
  padding: 14px;
}

.comment-list {
  display: grid;
  gap: 12px;
}

.comment-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
}

.comment-row .avatar {
  width: 36px;
  height: 36px;
}

.comment-row p {
  margin: 3px 0;
  color: #332b22;
  line-height: 1.45;
}

.comment-author {
  color: var(--ink);
}

.comment-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 14px;
}

.comment-form input {
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: white;
  padding: 0 16px;
  outline: none;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.profile-panel {
  position: sticky;
  top: 28px;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}

.profile-stat {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.62);
}

.profile-stat strong {
  display: block;
  font-size: 1.45rem;
}

.masonry {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--line);
}

.masonry button {
  aspect-ratio: 1 / 1;
  border: 0;
  padding: 0;
  background: #d7cebf;
  overflow: hidden;
}

.masonry .text-tile {
  padding: 18px;
  text-align: left;
  background: linear-gradient(145deg, #f7f0e5, #fffdf8);
  color: var(--ink);
  font-weight: 900;
  line-height: 1.28;
}

.masonry .text-tile span {
  display: -webkit-box;
  -webkit-line-clamp: 7;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.masonry img,
.masonry video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reel-page {
  width: min(1180px, 100%);
}

.reels-top {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 24px;
}

.reels-title {
  margin: 0;
  font-size: clamp(3rem, 7vw, 5.9rem);
  line-height: 0.86;
  letter-spacing: 0;
  font-weight: 950;
}

.reel-uploader {
  position: relative;
}

.reel-uploader summary {
  min-height: 48px;
  border-radius: 15px;
  border: 1px solid var(--brand);
  background: var(--brand);
  color: white;
  padding: 0 20px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  list-style: none;
  box-shadow: 0 18px 40px rgba(207, 100, 33, 0.24);
}

.reel-uploader summary::-webkit-details-marker {
  display: none;
}

.reel-uploader form {
  position: absolute;
  z-index: 5;
  right: 0;
  top: calc(100% + 14px);
  width: min(520px, calc(100vw - 42px));
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: var(--shadow);
}

.reels-layout {
  display: grid;
  grid-template-columns: minmax(320px, 430px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.reel-feature {
  position: sticky;
  top: 34px;
  width: min(430px, 100%);
  aspect-ratio: 9 / 16;
  height: clamp(560px, calc(100vh - 92px), 760px);
  border-radius: 34px;
  overflow: hidden;
  background: #090806;
  color: white;
  box-shadow: 0 32px 92px rgba(18, 12, 7, 0.28);
}

.reel-video-main {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #090806;
}

.reel-feature::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 22%, transparent 58%, rgba(0, 0, 0, 0.78)),
    linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.16));
}

.reel-feature-top,
.reel-feature-bottom {
  position: absolute;
  z-index: 1;
  left: 22px;
  right: 22px;
  display: flex;
  align-items: center;
}

.reel-feature-top {
  top: 22px;
  justify-content: space-between;
}

.reel-duration {
  min-height: 32px;
  border-radius: 999px;
  padding: 6px 11px;
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: white;
  font-weight: 900;
}

.reel-feature-bottom {
  bottom: 22px;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.reel-feature-bottom p {
  margin: 14px 0 0;
  max-width: 280px;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.45;
}

.reel-feature .avatar {
  width: 46px;
  height: 46px;
  border: 2px solid rgba(255, 255, 255, 0.82);
}

.reel-feature-actions {
  display: grid;
  gap: 10px;
}

.reel-feature-actions button {
  width: 62px;
  min-height: 62px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(0, 0, 0, 0.28);
  color: white;
  backdrop-filter: blur(14px);
}

.reel-feature-actions button.active {
  background: rgba(207, 100, 33, 0.9);
  border-color: rgba(255, 255, 255, 0.34);
}

.reel-feature-actions strong,
.reel-feature-actions span {
  display: block;
}

.reel-feature-actions span {
  margin-top: 2px;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.72);
}

.reel-list-panel {
  min-width: 0;
}

.section-head.compact {
  margin-top: 0;
}

.reel-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.reel-thumb {
  position: relative;
  aspect-ratio: 9 / 14;
  min-height: 260px;
  border: 1px solid transparent;
  border-radius: 24px;
  overflow: hidden;
  background: #16120d;
  color: white;
  padding: 0;
  box-shadow: 0 18px 44px rgba(45, 33, 20, 0.12);
}

.reel-thumb.active {
  border-color: var(--brand);
  box-shadow: 0 20px 54px rgba(207, 100, 33, 0.22);
}

.reel-thumb video,
.reel-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reel-thumb-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 44%, rgba(0, 0, 0, 0.72));
}

.reel-thumb-meta {
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 13px;
  text-align: left;
}

.reel-thumb-meta strong,
.reel-thumb-meta small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reel-thumb-meta small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.74);
}

.ig-reels {
  min-height: 100vh;
  height: 100vh;
  overflow: hidden;
  position: relative;
  background: #070b0e;
  color: white;
}

.ig-reels-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 44% 50%, rgba(255, 255, 255, 0.055), transparent 19%),
    radial-gradient(circle at 24% 80%, rgba(207, 100, 33, 0.06), transparent 28%),
    linear-gradient(90deg, #080c0f, #0a0f13 48%, #070b0e);
}

.ig-reels svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ig-reels-topbar {
  position: fixed;
  z-index: 20;
  inset: 0 0 auto;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(18px, 4vw, 44px);
  pointer-events: none;
}

.ig-reels-topbar button,
.ig-reels-topbar details {
  pointer-events: auto;
}

.ig-reels-brand {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.86);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

.ig-reels-brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 9px;
}

.ig-reels-top-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ig-reels-close,
.ig-reel-login {
  border: 0;
  color: white;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.ig-reels-close {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  padding: 13px;
}

.ig-reel-login {
  min-height: 42px;
  border-radius: 999px;
  padding: 0 18px;
  font-weight: 900;
}

.ig-reel-uploader {
  position: relative;
}

.ig-reel-uploader summary {
  min-height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: white;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  list-style: none;
  font-weight: 900;
  backdrop-filter: blur(14px);
}

.ig-reel-uploader summary::-webkit-details-marker {
  display: none;
}

.ig-reel-uploader form {
  position: absolute;
  z-index: 30;
  right: 0;
  top: calc(100% + 12px);
  width: min(520px, calc(100vw - 32px));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 18px;
  background: rgba(18, 18, 18, 0.96);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.44);
}

.ig-reel-uploader .field label {
  color: rgba(255, 255, 255, 0.7);
}

.ig-reel-uploader input,
.ig-reel-uploader textarea {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  color: white;
}

.ig-reel-uploader .media-picker {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
}

.ig-reel-uploader .media-picker strong {
  color: white;
}

.ig-reel-uploader .media-picker small {
  color: rgba(255, 255, 255, 0.58);
}

.ig-reels-stage {
  position: relative;
  z-index: 2;
  width: min(1500px, calc(100vw - 48px));
  height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(250px, 360px) minmax(340px, 640px) minmax(92px, 150px);
  gap: clamp(26px, 4vw, 56px);
  align-items: center;
  justify-content: center;
  padding: 64px 0 42px;
}

.ig-reel-viewer {
  position: relative;
  justify-self: center;
  height: min(88vh, 910px);
  aspect-ratio: 9 / 16;
  border-radius: 8px;
  overflow: hidden;
  background: #111;
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.48);
}

.ig-reel-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #111;
}

.ig-reel-video-shade {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), transparent 54%, rgba(0, 0, 0, 0.22));
}

.ig-reel-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 86px;
  height: 86px;
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 999px;
  padding: 28px 27px 28px 31px;
  color: white;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(10px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.ig-reel-viewer.playing .ig-reel-play {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.92);
}

.ig-reel-sound {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  padding: 10px;
  color: white;
  background: rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(10px);
}

.ig-reel-sound.muted {
  color: rgba(255, 255, 255, 0.55);
}

.ig-reel-info {
  align-self: end;
  padding-bottom: 38px;
  max-width: 360px;
}

.ig-reel-creator {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.ig-reel-creator img {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  object-fit: cover;
  background: white;
}

.ig-reel-creator strong,
.ig-reel-creator span {
  display: block;
}

.ig-reel-creator strong {
  font-size: 0.98rem;
}

.ig-reel-creator span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.82rem;
}

.ig-reel-creator button {
  border: 0;
  background: transparent;
  color: #7d9cff;
  font-weight: 900;
}

.ig-reel-people {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.88rem;
  margin: 2px 0 24px 58px;
}

.ig-reel-people svg {
  width: 16px;
  height: 16px;
}

.ig-reel-info p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 1.15vw, 1.14rem);
  line-height: 1.5;
}

.ig-reel-actions {
  align-self: end;
  display: grid;
  gap: 19px;
  padding-bottom: 38px;
  color: white;
}

.ig-reel-actions button {
  width: 52px;
  border: 0;
  background: transparent;
  color: white;
  display: grid;
  justify-items: center;
  gap: 6px;
}

.ig-reel-actions button svg {
  width: 34px;
  height: 34px;
}

.ig-reel-actions button.active {
  color: #e06b25;
}

.ig-reel-actions span {
  font-size: 0.88rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
}

.ig-reel-mini-avatar {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  object-fit: cover;
  border: 2px solid white;
}

.ig-reel-nav {
  position: fixed;
  z-index: 10;
  right: clamp(24px, 4vw, 52px);
  top: 50%;
  display: grid;
  gap: 20px;
  transform: translateY(-50%);
}

.ig-reel-nav button {
  width: 72px;
  height: 72px;
  border: 0;
  border-radius: 999px;
  padding: 21px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  backdrop-filter: blur(14px);
}

.ig-reels-empty {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
}

.ig-reels .empty,
.ig-reels .notice,
.ig-reels .error {
  position: fixed;
  top: 86px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
}

.ig-reels-empty .empty {
  position: static;
  transform: none;
}

@media (max-width: 1120px) {
  .ig-reels-stage {
    width: min(980px, calc(100vw - 32px));
    grid-template-columns: minmax(320px, 560px) minmax(78px, 110px);
    gap: 24px;
  }

  .ig-reel-info {
    position: fixed;
    z-index: 8;
    left: 24px;
    bottom: 26px;
    width: min(330px, calc(100vw - 148px));
    padding: 0;
  }

  .ig-reel-actions {
    padding-bottom: 18px;
  }
}

@media (max-width: 760px) {
  .ig-reels {
    overflow: hidden;
  }

  .ig-reels-topbar {
    height: 64px;
    padding: 12px 14px;
  }

  .ig-reels-brand span {
    display: none;
  }

  .ig-reel-uploader summary {
    min-height: 38px;
    padding: 0 12px;
    font-size: 0.82rem;
  }

  .ig-reels-close {
    width: 42px;
    height: 42px;
    padding: 11px;
  }

  .ig-reels-stage {
    width: 100vw;
    grid-template-columns: 1fr;
    padding: 0;
  }

  .ig-reel-viewer {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
    aspect-ratio: auto;
  }

  .ig-reel-info {
    left: 16px;
    bottom: 28px;
    width: calc(100vw - 94px);
  }

  .ig-reel-info p {
    font-size: 0.98rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .ig-reel-people {
    margin-bottom: 12px;
  }

  .ig-reel-actions {
    position: fixed;
    z-index: 9;
    right: 14px;
    bottom: 70px;
    padding: 0;
    gap: 15px;
  }

  .ig-reel-actions button {
    width: 44px;
  }

  .ig-reel-actions button svg {
    width: 30px;
    height: 30px;
  }

  .ig-reel-nav {
    display: none;
  }

  .ig-reel-play {
    width: 74px;
    height: 74px;
    padding: 24px 23px 24px 27px;
  }
}

.detail-hero {
  min-height: 560px;
  border-radius: 34px;
  overflow: hidden;
  position: relative;
  color: white;
  display: flex;
  align-items: end;
  padding: clamp(24px, 5vw, 56px);
  background: #18130d;
  margin-bottom: 28px;
}

.detail-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 6, 4, 0.72), rgba(8, 6, 4, 0.1)), linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.62));
}

.detail-hero > div {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 28px;
  align-items: start;
}

.batch-list {
  display: grid;
  gap: 12px;
}

.batch {
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  background: white;
  border-radius: 18px;
  padding: 16px;
}

.batch.active {
  border-color: var(--brand);
  box-shadow: 0 12px 28px rgba(207, 100, 33, 0.13);
}

.batch.sold {
  opacity: 0.48;
}

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

.timeline-item {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.7);
}

.people-list,
.message-list {
  display: grid;
  gap: 14px;
}

.person-row,
.message-row {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 253, 248, 0.82);
  padding: 16px;
}

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

.person-main {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  text-align: left;
}

.person-main span {
  min-width: 0;
}

.person-main h3,
.person-main p {
  margin: 0;
}

.person-main p + p {
  margin-top: 8px;
}

.person-main:hover h3,
.post-author:hover h3,
.comment-author:hover {
  color: var(--brand);
}

.public-profile {
  max-width: 1040px;
}

.public-profile-hero {
  margin-bottom: 22px;
  padding: clamp(20px, 3vw, 34px);
  border-radius: 30px;
  background:
    radial-gradient(circle at 18% 0%, rgba(207, 100, 33, 0.1), transparent 36%),
    rgba(255, 253, 248, 0.92);
}

.public-profile-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: center;
  margin-top: 18px;
}

.public-profile-head h1 {
  margin: 0 0 6px;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 0.95;
}

.public-profile-bio {
  max-width: 720px;
  color: #4a4239;
  font-size: 1.05rem;
  line-height: 1.65;
}

.profile-package-list {
  align-items: start;
}

.chat-layout {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 18px;
  min-height: 70vh;
}

.chat-thread {
  display: flex;
  flex-direction: column;
  min-height: 70vh;
}

.bubble-stack {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  overflow: auto;
}

.bubble {
  width: fit-content;
  max-width: min(72%, 620px);
  padding: 12px 14px;
  border-radius: 18px;
  background: white;
  border: 1px solid var(--line);
}

.bubble.mine {
  align-self: flex-end;
  background: var(--brand);
  color: white;
  border-color: var(--brand);
}

.chat-input {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid var(--line);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.stat-card {
  padding: 20px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: white;
}

.stat-card strong {
  display: block;
  font-size: 2rem;
}

@media (max-width: 1120px) {
  .grid,
  .grid.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reel-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 860px) {
  .shell {
    padding-left: 0;
    padding-bottom: 74px;
  }

  .rail {
    display: none;
  }

  .mobile-nav {
    position: fixed;
    z-index: 20;
    inset: auto 0 0;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    border-top: 1px solid var(--line);
    background: rgba(255, 253, 248, 0.92);
    backdrop-filter: blur(18px);
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  }

  .mobile-nav button {
    min-height: 44px;
    border-radius: 14px;
    color: #756f66;
    font-size: 1.15rem;
  }

  .mobile-nav button.active {
    color: var(--brand);
    background: rgba(207, 100, 33, 0.1);
  }

  .page {
    padding: 28px 18px 90px;
  }

  .app-header,
  .reels-top,
  .toolbar,
  .section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-bg {
    grid-template-columns: 1fr 0.26fr 0.26fr;
  }

  .hero-panel:nth-child(n + 4) {
    display: none;
  }

  .hero-copy {
    margin-top: 8vh;
  }

  .hero-stats,
  .explore-hero,
  .auth-page,
  .profile-layout,
  .detail-grid,
  .chat-layout,
  .reels-layout {
    grid-template-columns: 1fr;
  }

  .auth-card {
    margin: 0;
  }

  .grid,
  .grid.two,
  .grid.four,
  .reel-list,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .reel-feature {
    position: relative;
    top: auto;
    width: min(430px, 100%);
    height: auto;
    min-height: auto;
    margin: 0 auto;
  }

  .reel-uploader form {
    position: static;
    width: 100%;
    margin-top: 12px;
  }

  .reel-thumb {
    min-height: 420px;
  }

  .person-row {
    grid-template-columns: 1fr;
  }

  .person-row .app-actions {
    grid-column: auto;
  }

  .media-picker-grid {
    grid-template-columns: 1fr;
  }

  .post-actions {
    flex-wrap: wrap;
  }

  .post-actions button {
    flex: 1 1 132px;
    justify-content: center;
  }

  .comment-form {
    grid-template-columns: 1fr;
  }

  .public-profile-head {
    grid-template-columns: 1fr;
  }

  .public-profile-head .avatar {
    width: 96px;
    height: 96px;
  }
}

@media (max-width: 560px) {
  .hero-nav {
    padding: 20px;
  }

  .hero-links {
    gap: 8px;
  }

  .hero-links .btn {
    min-height: 42px;
    padding: 0 12px;
  }

  .hero-copy h1,
  .explore-hero h1,
  .auth-copy h1,
  .detail-title {
    font-size: clamp(3.3rem, 17vw, 5.2rem);
  }

  .hero-stats,
  .form-grid.two {
    grid-template-columns: 1fr;
  }

  .collage {
    height: 150px;
    border-radius: 20px;
  }

  .detail-hero {
    min-height: 480px;
    border-radius: 24px;
  }

  .reels-title {
    font-size: clamp(3rem, 18vw, 4.8rem);
  }

  .reel-feature {
    border-radius: 26px;
  }

  .reel-feature-bottom {
    left: 16px;
    right: 16px;
    bottom: 16px;
    align-items: stretch;
    flex-direction: column;
  }

  .reel-feature-actions {
    grid-template-columns: repeat(3, 1fr);
  }

  .reel-feature-actions button {
    width: 100%;
  }

  .reel-thumb {
    min-height: 360px;
  }

  .app-title {
    font-size: clamp(2.6rem, 15vw, 4.2rem);
  }
}
