:root {
  --ink: #101a22;
  --muted: #65716d;
  --line: #d9e1dc;
  --surface: #ffffff;
  --soft: #f6f7f4;
  --green: #0b6d5d;
  --gold: #d9a441;
  --gold-soft: #f3d689;
  --blue: #1d6f9f;
  --deep: #08191d;
  --shadow: 0 22px 60px rgba(9, 25, 29, .16);
  --hero-image: url("hero-astana-modern.png");
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(217, 164, 65, .12), transparent 28%),
    linear-gradient(180deg, #fbfcfa 0%, var(--soft) 58%, #eef3f2 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .28;
  background-image:
    linear-gradient(135deg, transparent 0 46%, rgba(217, 164, 65, .35) 46% 54%, transparent 54% 100%),
    linear-gradient(45deg, transparent 0 46%, rgba(217, 164, 65, .28) 46% 54%, transparent 54% 100%);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, transparent 0, #000 18%, #000 72%, transparent 100%);
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 12px clamp(18px, 4vw, 54px);
  background: rgba(255, 255, 255, .82);
  border-bottom: 1px solid rgba(217, 225, 220, .72);
  box-shadow: 0 10px 30px rgba(8, 25, 29, .06);
  backdrop-filter: blur(20px);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  text-decoration: none;
}

.brand img {
  display: block;
  width: 184px;
  height: 48px;
}

.main-nav {
  display: flex;
  gap: 18px;
  margin-left: auto;
  color: var(--muted);
  font-size: 15px;
}

.main-nav a {
  position: relative;
  text-decoration: none;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .2s ease;
}

.main-nav a:hover,
.main-nav a:hover::after {
  color: var(--green);
}

.main-nav a:hover::after {
  transform: scaleX(1);
}

.nav-beta-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.beta-badge {
  display: inline-grid;
  place-items: center;
  min-height: 18px;
  padding: 2px 6px;
  color: #11170f;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  border: 1px solid rgba(243, 214, 137, .8);
  border-radius: 999px;
  box-shadow:
    0 0 12px rgba(217, 164, 65, .58),
    0 0 24px rgba(217, 164, 65, .28);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  animation: beta-glow 1.8s ease-in-out infinite alternate;
}

.language-switch {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: rgba(239, 244, 241, .9);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.lang-btn {
  min-width: 42px;
  border: 0;
  border-radius: 999px;
  padding: 8px 10px;
  font-weight: 700;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.lang-btn.is-active {
  color: #11170f;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  box-shadow: 0 6px 16px rgba(217, 164, 65, .3);
}

.hero {
  position: relative;
  min-height: 690px;
  display: flex;
  align-items: flex-end;
  padding: 110px clamp(18px, 6vw, 76px) 46px;
  color: #fff;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(5, 18, 22, .9) 0%, rgba(7, 28, 32, .72) 43%, rgba(7, 28, 32, .18) 100%),
    linear-gradient(0deg, rgba(5, 18, 22, .6), rgba(5, 18, 22, 0) 48%),
    var(--hero-image) center/cover;
}

.hero::before,
.city-hero::before {
  content: "";
  position: absolute;
  inset: 24px clamp(18px, 4vw, 54px) 26px;
  pointer-events: none;
  border: 1px solid rgba(243, 214, 137, .42);
  background:
    linear-gradient(90deg, rgba(217, 164, 65, .9) 0 22px, transparent 22px calc(100% - 22px), rgba(217, 164, 65, .9) calc(100% - 22px)),
    linear-gradient(180deg, rgba(217, 164, 65, .9) 0 22px, transparent 22px calc(100% - 22px), rgba(217, 164, 65, .9) calc(100% - 22px));
  mask:
    linear-gradient(#000 0 0) top left / 110px 110px no-repeat,
    linear-gradient(#000 0 0) top right / 110px 110px no-repeat,
    linear-gradient(#000 0 0) bottom left / 110px 110px no-repeat,
    linear-gradient(#000 0 0) bottom right / 110px 110px no-repeat;
  -webkit-mask:
    linear-gradient(#000 0 0) top left / 110px 110px no-repeat,
    linear-gradient(#000 0 0) top right / 110px 110px no-repeat,
    linear-gradient(#000 0 0) bottom left / 110px 110px no-repeat,
    linear-gradient(#000 0 0) bottom right / 110px 110px no-repeat;
  opacity: .78;
}

.hero::after,
.city-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 18px;
  background:
    repeating-linear-gradient(135deg, transparent 0 12px, rgba(255, 255, 255, .2) 12px 18px, transparent 18px 30px),
    repeating-linear-gradient(90deg, var(--gold) 0 18px, var(--gold-soft) 18px 27px, transparent 27px 38px),
    linear-gradient(90deg, var(--green), var(--blue));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
}

.hero-content::before {
  content: "";
  position: absolute;
  left: -22px;
  top: -24px;
  width: 8px;
  height: 168px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold), transparent);
  box-shadow: 0 0 36px rgba(217, 164, 65, .42);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(42px, 7vw, 82px);
  line-height: .98;
  letter-spacing: 0;
  text-wrap: balance;
  text-shadow: 0 16px 48px rgba(0, 0, 0, .34);
}

.hero-text {
  max-width: 660px;
  margin: 22px 0 30px;
  color: rgba(255, 255, 255, .9);
  font-size: 20px;
  line-height: 1.55;
}

.hero-widget-slot {
  display: grid;
  width: min(980px, 100%);
  min-height: 96px;
  align-content: center;
  padding: 14px;
  background: rgba(255, 255, 255, .9);
  border-radius: 8px;
  border: 1px solid rgba(243, 214, 137, .85);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.widget-embed {
  width: 100%;
  min-height: 76px;
}

.tickets-results-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px clamp(18px, 4vw, 32px) 0;
}

#tpwl-tickets {
  width: 100%;
}

.intro-section,
.booking-section,
.cities-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 78px clamp(18px, 4vw, 32px);
}

.intro-section {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 36px;
  align-items: start;
}

h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature,
.widget {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(9, 25, 29, .08);
}

.feature {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  display: grid;
  grid-template-rows: 168px 1fr;
  padding: 0;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.feature:hover {
  transform: translateY(-4px);
  border-color: rgba(217, 164, 65, .56);
  box-shadow: 0 24px 50px rgba(9, 25, 29, .14);
}

.feature::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-top: 5px solid var(--gold);
  background:
    linear-gradient(135deg, transparent 0 47%, rgba(217, 164, 65, .2) 47% 53%, transparent 53% 100%) top right / 82px 82px no-repeat;
}

.feature-media {
  position: relative;
  min-height: 168px;
  background: var(--feature-image) center/cover;
}

.feature-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 107, 85, .06), rgba(13, 107, 85, .48));
}

.feature-body {
  padding: 22px 24px 26px;
}

.feature-icon {
  position: absolute;
  left: 20px;
  bottom: -22px;
  z-index: 1;
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: #fff;
  background: linear-gradient(135deg, var(--green), var(--blue));
  border-radius: 8px;
  box-shadow: 0 12px 24px rgba(9, 25, 29, .22);
  font-weight: 900;
  font-size: 22px;
}

.feature h3 {
  margin: 6px 0 10px;
  font-size: 24px;
}

.feature p,
.section-copy p,
.widget span {
  color: var(--muted);
  line-height: 1.65;
}

.feature-kicker {
  display: inline-flex;
  margin-top: 8px;
  color: var(--green);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0;
}

.feature-flights {
  --feature-image: url("feature-flights.png");
}

.feature-trains {
  --feature-image: url("feature-trains.png");
}

.feature-hotels {
  --feature-image: url("feature-hotels.png");
}

.booking-section {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 34px;
  align-items: center;
  position: relative;
}

.booking-section::before {
  content: "";
  position: absolute;
  left: clamp(18px, 4vw, 32px);
  right: clamp(18px, 4vw, 32px);
  top: 32px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(217, 164, 65, .6), transparent);
}

.booking-section.alt {
  direction: rtl;
}

.booking-section.alt > * {
  direction: ltr;
}

.section-copy p {
  max-width: 560px;
}

.widget {
  min-height: 240px;
  display: grid;
  place-items: center;
  align-content: center;
  padding: 18px;
  text-align: center;
  border-style: dashed;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, rgba(217, 164, 65, .55), rgba(11, 109, 93, .18), rgba(29, 111, 159, .24)) border-box;
}

.widget strong {
  font-size: 24px;
}

.companions-widget {
  min-height: 320px;
  padding: 0;
  overflow: hidden;
  border-style: solid;
}

.companions-widget-link {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 320px;
  overflow: hidden;
  color: var(--ink);
  text-decoration: none;
  border-radius: 8px;
  background:
    radial-gradient(circle at 22% 24%, rgba(243, 214, 137, .34), transparent 28%),
    linear-gradient(135deg, rgba(11, 109, 93, .1), rgba(29, 111, 159, .12));
}

.companions-widget-link::before {
  content: "";
  position: absolute;
  inset: 26px;
  border: 1px dashed rgba(217, 164, 65, .56);
  border-radius: 999px;
  transform: rotate(-7deg);
}

.mini-route {
  position: relative;
  min-height: 220px;
}

.mini-route-line {
  position: absolute;
  left: 16%;
  right: 16%;
  top: 48%;
  height: 2px;
  border-top: 2px dashed rgba(217, 164, 65, .72);
  transform: rotate(-8deg);
}

.mini-route-pin,
.mini-moving-user {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 900;
}

.mini-route-pin {
  width: 42px;
  height: 42px;
  color: #fff;
  background: linear-gradient(135deg, var(--green), var(--blue));
  box-shadow: 0 12px 24px rgba(9, 25, 29, .14);
}

.mini-route-start {
  left: 12%;
  top: 55%;
}

.mini-route-end {
  right: 12%;
  top: 28%;
}

.mini-moving-user {
  left: 18%;
  top: 45%;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  box-shadow: 0 18px 34px rgba(9, 25, 29, .16);
  animation: companion-move 3.4s ease-in-out infinite alternate;
}

.mini-moving-user::before {
  content: "";
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: rgba(9, 25, 29, .72);
  box-shadow: 0 22px 0 8px rgba(9, 25, 29, .72);
}

.companions-widget-panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 6px;
  margin: 18px;
  padding: 18px 20px;
  color: #fff;
  text-align: left;
  background: rgba(5, 18, 22, .78);
  border: 1px solid rgba(243, 214, 137, .46);
  border-radius: 8px;
  backdrop-filter: blur(14px);
}

.companions-widget-panel span {
  color: rgba(255, 255, 255, .78);
}

.companions-widget-link:hover .mini-moving-user {
  animation-duration: 2s;
}

.partnership-widget {
  min-height: 320px;
  padding: 0;
  overflow: hidden;
  border-style: solid;
}

.partnership-link {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: stretch;
  width: 100%;
  min-height: 320px;
  overflow: hidden;
  color: var(--ink);
  text-decoration: none;
  border-radius: 8px;
  background:
    radial-gradient(circle at 22% 22%, rgba(243, 214, 137, .36), transparent 28%),
    linear-gradient(135deg, rgba(11, 109, 93, .1), rgba(29, 111, 159, .12));
}

.partnership-link::before {
  content: "";
  position: absolute;
  inset: 26px;
  border: 1px dashed rgba(217, 164, 65, .56);
  border-radius: 999px;
  transform: rotate(7deg);
}

.typing-scene {
  position: relative;
  min-height: 220px;
  overflow: hidden;
}

.typing-orbit {
  position: absolute;
  left: 50%;
  top: 42%;
  width: 250px;
  height: 112px;
  border: 1px solid rgba(217, 164, 65, .36);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-10deg);
}

.typing-orbit::before,
.typing-orbit::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 18px rgba(217, 164, 65, .45);
  animation: typing-dot 2.6s ease-in-out infinite;
}

.typing-orbit::before {
  left: 28px;
  top: 18px;
}

.typing-orbit::after {
  right: 30px;
  bottom: 16px;
  animation-delay: .8s;
}

.typing-person {
  position: absolute;
  left: 50%;
  top: 44px;
  width: 128px;
  height: 138px;
  transform: translateX(-50%);
}

.typing-head {
  position: absolute;
  left: 43px;
  top: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  box-shadow: 0 12px 24px rgba(9, 25, 29, .14);
}

.typing-head::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 13px;
  width: 24px;
  height: 9px;
  border-top: 3px solid rgba(9, 25, 29, .62);
  border-radius: 50%;
}

.typing-body {
  position: absolute;
  left: 25px;
  top: 46px;
  width: 78px;
  height: 82px;
  border-radius: 36px 36px 16px 16px;
  background: linear-gradient(135deg, var(--green), var(--blue));
  box-shadow: 0 18px 36px rgba(9, 25, 29, .16);
}

.typing-arm {
  position: absolute;
  top: 78px;
  width: 58px;
  height: 13px;
  border-radius: 999px;
  background: var(--gold);
  transform-origin: 10px 50%;
  box-shadow: 0 8px 16px rgba(9, 25, 29, .12);
}

.typing-arm-left {
  left: 18px;
  transform: rotate(20deg);
  animation: typing-left-hand .55s ease-in-out infinite alternate;
}

.typing-arm-right {
  right: 18px;
  transform: rotate(160deg);
  animation: typing-right-hand .55s ease-in-out infinite alternate;
}

.typing-desk {
  position: absolute;
  left: 50%;
  bottom: 28px;
  width: min(360px, 82%);
  height: 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green), var(--gold), var(--blue));
  transform: translateX(-50%);
  box-shadow: 0 18px 28px rgba(9, 25, 29, .12);
}

.typing-laptop {
  position: absolute;
  left: 50%;
  bottom: 42px;
  width: 136px;
  height: 86px;
  transform: translateX(-50%);
}

.typing-screen {
  position: absolute;
  left: 14px;
  top: 0;
  width: 108px;
  height: 64px;
  border-radius: 8px 8px 4px 4px;
  background:
    linear-gradient(90deg, rgba(243, 214, 137, .75) 0 34%, transparent 34%),
    linear-gradient(180deg, #153339, #091c21);
  border: 3px solid rgba(243, 214, 137, .68);
}

.typing-screen::after {
  content: "";
  position: absolute;
  left: 14px;
  top: 18px;
  width: 58px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  box-shadow:
    0 13px 0 rgba(255, 255, 255, .5),
    0 26px 0 rgba(255, 255, 255, .34);
}

.typing-keyboard {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 136px;
  height: 24px;
  border-radius: 5px 5px 12px 12px;
  background: linear-gradient(180deg, #f6f4e9, #d9e1dc);
}

.typing-keyboard::after {
  content: "";
  position: absolute;
  left: 28px;
  top: 8px;
  width: 80px;
  height: 5px;
  border-radius: 999px;
  background: repeating-linear-gradient(90deg, rgba(9, 25, 29, .35) 0 7px, transparent 7px 12px);
}

.typing-bubble {
  position: absolute;
  width: 82px;
  height: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(217, 164, 65, .42);
  animation: typing-bubble 2.4s ease-in-out infinite;
}

.typing-bubble::after {
  content: "";
  position: absolute;
  left: 14px;
  top: 8px;
  width: 48px;
  height: 4px;
  border-radius: 999px;
  background: rgba(11, 109, 93, .56);
}

.typing-bubble-one {
  left: 24px;
  top: 44px;
}

.typing-bubble-two {
  right: 28px;
  top: 82px;
  width: 70px;
  animation-delay: .7s;
}

.partnership-panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 6px;
  margin: 18px;
  padding: 18px 20px;
  text-align: left;
  color: #fff;
  background: rgba(5, 18, 22, .78);
  border: 1px solid rgba(243, 214, 137, .46);
  border-radius: 8px;
  backdrop-filter: blur(14px);
}

.partnership-panel strong {
  font-size: 24px;
}

.partnership-panel span {
  color: rgba(255, 255, 255, .78);
}

.partnership-link:hover .typing-arm-left,
.partnership-link:hover .typing-arm-right {
  animation-duration: .32s;
}

.flight-jump {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 190px;
  overflow: hidden;
  text-decoration: none;
  border-radius: 8px;
  background:
    radial-gradient(circle at 22% 24%, rgba(243, 214, 137, .34), transparent 28%),
    linear-gradient(135deg, rgba(11, 109, 93, .1), rgba(29, 111, 159, .12));
}

.flight-jump::before {
  content: "";
  position: absolute;
  inset: 28px;
  border-radius: 999px;
  border: 1px dashed rgba(217, 164, 65, .58);
  transform: rotate(-8deg);
}

.flight-jump::after {
  content: "К поиску авиабилетов";
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--green);
  font-weight: 850;
  white-space: nowrap;
}

.flight-path {
  position: relative;
  width: min(360px, 82%);
  height: 96px;
}

.flight-plane {
  position: absolute;
  left: 0;
  top: 42px;
  display: inline-grid;
  place-items: center;
  width: 62px;
  height: 62px;
  color: #fff;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  border-radius: 50%;
  box-shadow: 0 16px 34px rgba(9, 25, 29, .18);
  font-size: 31px;
  line-height: 1;
  transform: rotate(20deg);
  animation: plane-fly 3.2s ease-in-out infinite;
}

.flight-jump:hover .flight-plane {
  animation-duration: 1.8s;
}

.widget-status {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  min-height: 190px;
}

.progress-spinner {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 4px solid rgba(217, 164, 65, .2);
  border-top-color: var(--gold);
  border-right-color: var(--green);
  box-shadow: 0 0 0 8px rgba(217, 164, 65, .08);
  animation: spin 1s linear infinite;
}

.widget-status strong {
  color: var(--ink);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes typing-left-hand {
  from {
    transform: rotate(14deg) translateY(0);
  }

  to {
    transform: rotate(26deg) translateY(5px);
  }
}

@keyframes typing-right-hand {
  from {
    transform: rotate(166deg) translateY(4px);
  }

  to {
    transform: rotate(154deg) translateY(0);
  }
}

@keyframes typing-bubble {
  0%,
  100% {
    opacity: .5;
    transform: translateY(6px);
  }

  50% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes typing-dot {
  0%,
  100% {
    opacity: .35;
    transform: scale(.8);
  }

  50% {
    opacity: 1;
    transform: scale(1.25);
  }
}

@keyframes plane-fly {
  0% {
    left: 0;
    top: 54px;
    transform: rotate(18deg) scale(.94);
  }

  45% {
    top: 16px;
    transform: rotate(28deg) scale(1.04);
  }

  100% {
    left: calc(100% - 62px);
    top: 54px;
    transform: rotate(18deg) scale(.94);
  }
}

@keyframes companion-move {
  0% {
    left: 18%;
    top: 48%;
    transform: scale(.95);
  }

  50% {
    top: 36%;
    transform: scale(1.04);
  }

  100% {
    left: 70%;
    top: 30%;
    transform: scale(.95);
  }
}

@keyframes beta-glow {
  from {
    box-shadow:
      0 0 8px rgba(217, 164, 65, .45),
      0 0 18px rgba(217, 164, 65, .18);
  }

  to {
    box-shadow:
      0 0 14px rgba(217, 164, 65, .75),
      0 0 30px rgba(217, 164, 65, .36);
  }
}

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

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.city-card {
  position: relative;
  min-height: 270px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 22px;
  color: #fff;
  text-decoration: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .03), rgba(5, 18, 22, .78)),
    var(--image) center/cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
  isolation: isolate;
}

.city-card span {
  position: relative;
  z-index: 1;
  font-size: 28px;
  font-weight: 850;
}

.city-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, transparent 0 45%, rgba(243, 214, 137, .2) 45% 55%, transparent 55% 100%) top right / 96px 96px no-repeat,
    rgba(13, 107, 85, .08);
  transition: background .2s ease, transform .2s ease;
}

.city-card:hover::before {
  background:
    linear-gradient(135deg, transparent 0 45%, rgba(243, 214, 137, .34) 45% 55%, transparent 55% 100%) top right / 96px 96px no-repeat,
    rgba(13, 107, 85, .28);
  transform: scale(1.02);
}

.companions-hero,
.companions-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 78px clamp(18px, 4vw, 32px);
}

.companions-hero {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 34px;
  align-items: center;
  min-height: 520px;
}

.companions-hero-copy h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1;
}

.companions-hero-copy p:not(.eyebrow) {
  max-width: 620px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.65;
}

.companions-hero-card {
  position: relative;
  min-height: 340px;
  overflow: hidden;
  border: 1px solid rgba(217, 164, 65, .45);
  border-radius: 8px;
  background:
    radial-gradient(circle at 24% 28%, rgba(243, 214, 137, .32), transparent 30%),
    linear-gradient(135deg, rgba(11, 109, 93, .1), rgba(29, 111, 159, .14));
  box-shadow: var(--shadow);
}

.route-line {
  position: absolute;
  left: 16%;
  right: 16%;
  top: 50%;
  height: 2px;
  border-top: 2px dashed rgba(217, 164, 65, .74);
  transform: rotate(-8deg);
}

.route-pin,
.moving-user {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 900;
}

.route-pin {
  width: 48px;
  height: 48px;
  color: #fff;
  background: linear-gradient(135deg, var(--green), var(--blue));
  box-shadow: 0 12px 24px rgba(9, 25, 29, .16);
}

.route-pin-start {
  left: 13%;
  top: 56%;
}

.route-pin-end {
  right: 13%;
  top: 35%;
}

.moving-user {
  left: 18%;
  top: 48%;
  width: 62px;
  height: 62px;
  color: #11170f;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  box-shadow: 0 18px 34px rgba(9, 25, 29, .18);
  animation: companion-move 3.4s ease-in-out infinite alternate;
}

.moving-user::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(9, 25, 29, .7);
  box-shadow: 0 23px 0 8px rgba(9, 25, 29, .7);
}

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

.companions-filters,
.companion-form {
  display: grid;
  gap: 14px;
}

.account-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
  padding: 18px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, rgba(217, 164, 65, .55), rgba(11, 109, 93, .2), rgba(29, 111, 159, .22)) border-box;
  border: 1px solid transparent;
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(9, 25, 29, .08);
}

.account-panel > div:first-child {
  display: grid;
  gap: 5px;
}

.account-panel strong {
  font-size: 22px;
}

.account-panel span {
  color: var(--muted);
}

.account-actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.companions-filters {
  grid-template-columns: repeat(4, 1fr) auto auto;
  align-items: end;
  margin-bottom: 24px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(9, 25, 29, .08);
}

.companions-filters label,
.companion-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.companions-filters input,
.companions-filters select,
.companion-form input,
.companion-form select,
.companion-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

.checkbox-filter {
  align-items: center;
  grid-auto-flow: column;
  justify-content: start;
  min-height: 44px;
  padding: 0 4px;
}

.checkbox-filter input {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
}

.companions-layout {
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 18px;
  align-items: start;
}

.companions-list {
  display: grid;
  gap: 14px;
}

.companion-card,
.safety-panel,
.empty-state {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(9, 25, 29, .08);
}

.companion-card {
  display: grid;
  gap: 12px;
  padding: 20px;
}

.companion-card-head,
.companion-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.companion-card-head {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.transport-badge {
  display: inline-flex;
  padding: 6px 10px;
  color: #11170f;
  background: rgba(217, 164, 65, .22);
  border-radius: 999px;
}

.status-badge,
.report-note {
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
}

.status-badge {
  color: var(--green);
  background: rgba(11, 109, 93, .1);
}

.companion-status-closed .status-badge {
  color: var(--muted);
  background: rgba(101, 113, 109, .12);
}

.companion-status-review .status-badge,
.report-note {
  color: #8a5b12;
  background: rgba(217, 164, 65, .18);
}

.companion-status-review {
  border-color: rgba(217, 164, 65, .5);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.trust-badge {
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  color: var(--green);
  background: rgba(11, 109, 93, .1);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
}

.trust-badge.is-muted {
  color: var(--muted);
  background: rgba(101, 113, 109, .1);
}

.companion-card h3 {
  margin: 0;
  font-size: 26px;
}

.companion-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.companion-card-foot a,
.primary-action,
.secondary-action,
.ghost-action {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 11px 16px;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}

.companion-card-foot a,
.primary-action {
  color: #11170f;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  box-shadow: 0 10px 22px rgba(217, 164, 65, .22);
}

.secondary-action {
  color: var(--green);
  background: rgba(11, 109, 93, .08);
}

.secondary-action.is-danger,
.delete-request {
  color: #8a2c24;
  background: rgba(138, 44, 36, .08);
}

.ghost-action,
.delete-request {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 11px 16px;
  font-weight: 850;
  cursor: pointer;
}

.ghost-action {
  color: var(--green);
  background: rgba(11, 109, 93, .08);
}

.chat-action {
  gap: 7px;
}

.unread-badge {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  color: #11170f;
  background: var(--gold);
  border-radius: 999px;
  font-size: 12px;
  line-height: 1;
}

.safety-panel {
  position: sticky;
  top: 104px;
  padding: 22px;
}

.safety-panel h3 {
  margin: 0 0 12px;
  font-size: 24px;
}

.safety-panel ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.5;
}

.moderation-toggle {
  width: 100%;
  margin-top: 18px;
}

.moderation-panel {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.moderation-panel[hidden] {
  display: none;
}

.moderation-list {
  display: grid;
  gap: 10px;
}

.moderation-empty {
  color: var(--muted);
}

.moderation-item {
  display: grid;
  gap: 7px;
  padding: 12px;
  background: rgba(246, 247, 244, .85);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.moderation-item span,
.moderation-item small {
  color: var(--muted);
  line-height: 1.45;
}

.moderation-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
}

.moderation-actions button {
  min-height: 36px;
  border: 0;
  border-radius: 8px;
  color: var(--green);
  background: rgba(11, 109, 93, .08);
  font-weight: 850;
  cursor: pointer;
}

.empty-state {
  display: grid;
  gap: 8px;
  padding: 28px;
  color: var(--muted);
}

.empty-state strong {
  color: var(--ink);
  font-size: 22px;
}

.companion-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(8, 25, 29, .56);
  backdrop-filter: blur(12px);
}

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

.companion-modal-panel {
  position: relative;
  width: min(680px, 100%);
  max-height: min(760px, 92vh);
  overflow: auto;
  padding: 28px;
  background: #fff;
  border: 1px solid rgba(217, 164, 65, .42);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  right: 16px;
  top: 14px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: rgba(11, 109, 93, .08);
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
}

.chat-modal-panel {
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  width: min(760px, 100%);
}

.chat-route {
  margin: -4px 0 14px;
  color: var(--muted);
  font-weight: 800;
}

.chat-messages {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 280px;
  max-height: 420px;
  overflow: auto;
  padding: 16px;
  background:
    radial-gradient(circle at 18% 12%, rgba(243, 214, 137, .16), transparent 28%),
    #f8faf7;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.chat-message {
  display: grid;
  gap: 4px;
  max-width: min(420px, 86%);
  padding: 12px 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(9, 25, 29, .06);
}

.chat-message.is-me {
  justify-self: end;
  color: #11170f;
  background: linear-gradient(135deg, rgba(243, 214, 137, .92), rgba(217, 164, 65, .74));
  border-color: rgba(217, 164, 65, .38);
}

.chat-message small {
  color: rgba(9, 25, 29, .62);
  font-size: 11px;
  font-weight: 800;
}

.chat-empty {
  display: grid;
  place-items: center;
  align-self: center;
  justify-self: center;
  gap: 8px;
  min-height: 210px;
  color: var(--muted);
  text-align: center;
}

.chat-empty strong {
  color: var(--ink);
  font-size: 22px;
}

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

.chat-form input {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--ink);
  font: inherit;
}

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

.modal-open {
  overflow: hidden;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 14px 0 18px;
  padding: 5px;
  background: rgba(11, 109, 93, .08);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.auth-tab {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  color: var(--green);
  background: transparent;
  font-weight: 850;
  cursor: pointer;
}

.auth-tab.is-active {
  color: #11170f;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  box-shadow: 0 8px 18px rgba(217, 164, 65, .18);
}

.form-note {
  min-height: 20px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.profile-link {
  color: var(--green);
  text-decoration: none;
}

.profile-link:hover {
  text-decoration: underline;
}

.profile-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 42px clamp(18px, 4vw, 32px) 78px;
}

.profile-cover {
  position: relative;
  min-height: 360px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 38px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(5, 18, 22, .9), rgba(5, 18, 22, .38)),
    var(--hero-image) center/cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.profile-cover-pattern {
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(243, 214, 137, .45);
  background:
    linear-gradient(135deg, transparent 0 47%, rgba(217, 164, 65, .3) 47% 53%, transparent 53% 100%) top right / 110px 110px no-repeat;
  pointer-events: none;
}

.profile-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: end;
  gap: 22px;
}

.profile-avatar {
  display: grid;
  place-items: center;
  width: 128px;
  height: 128px;
  flex: 0 0 auto;
  color: #11170f;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  border: 5px solid rgba(255, 255, 255, .85);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(5, 18, 22, .28);
  font-size: 58px;
  font-weight: 900;
}

.profile-head h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1;
}

.profile-head p:not(.eyebrow) {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, .86);
  font-size: 18px;
}

.profile-content {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 18px;
  margin-top: 18px;
  align-items: start;
}

.profile-sidebar,
.profile-feed,
.profile-list,
.profile-info {
  display: grid;
  gap: 14px;
}

.profile-sidebar {
  position: sticky;
  top: 104px;
}

.profile-card,
.profile-feed-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(9, 25, 29, .08);
}

.profile-card {
  padding: 22px;
}

.profile-info span {
  display: grid;
  gap: 4px;
  color: var(--muted);
  line-height: 1.45;
}

.profile-info strong {
  color: var(--ink);
}

.profile-info a {
  color: var(--green);
  font-weight: 850;
  text-decoration: none;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.profile-stats article {
  display: grid;
  gap: 4px;
  padding: 14px;
  background: rgba(11, 109, 93, .06);
  border: 1px solid rgba(11, 109, 93, .1);
  border-radius: 8px;
}

.profile-stats strong {
  color: var(--green);
  font-size: 28px;
  line-height: 1;
}

.profile-stats span,
.profile-feed-item span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.profile-feed-item {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.profile-feed-item h3 {
  margin: 0;
  font-size: 24px;
}

.profile-feed-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.review-rating {
  color: var(--gold);
  font-size: 20px;
  letter-spacing: 0;
}

.admin-link {
  text-decoration: none;
}

.admin-page,
.admin-dashboard,
.admin-login {
  max-width: 1180px;
  margin: 0 auto;
  padding: 52px clamp(18px, 4vw, 32px);
}

.admin-hero {
  min-height: 360px;
  display: grid;
  align-items: end;
  padding: 78px clamp(18px, 4vw, 32px);
  color: #fff;
  background:
    linear-gradient(90deg, rgba(5, 18, 22, .88), rgba(5, 18, 22, .42)),
    var(--hero-image) center/cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.admin-hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1;
}

.admin-hero p:not(.eyebrow) {
  max-width: 620px;
  color: rgba(255, 255, 255, .86);
  font-size: 19px;
  line-height: 1.55;
}

.admin-login-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  width: min(680px, 100%);
}

.admin-login-form input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--ink);
  font: inherit;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}

.admin-stats article,
.admin-panel,
.admin-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(9, 25, 29, .08);
}

.admin-stats article {
  display: grid;
  gap: 6px;
  padding: 20px;
}

.admin-stats strong {
  color: var(--green);
  font-size: 34px;
  line-height: 1;
}

.admin-stats span,
.admin-item span,
.admin-item p {
  color: var(--muted);
}

.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}

.admin-panel {
  padding: 20px;
}

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

.admin-item {
  display: grid;
  gap: 9px;
  padding: 16px;
}

.admin-item strong {
  font-size: 20px;
}

.admin-item p {
  margin: 0;
  line-height: 1.5;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-actions button {
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  padding: 9px 12px;
  color: var(--green);
  background: rgba(11, 109, 93, .08);
  font-weight: 850;
  cursor: pointer;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 34px clamp(18px, 4vw, 54px);
  color: #fff;
  background:
    repeating-linear-gradient(135deg, transparent 0 20px, rgba(217, 164, 65, .08) 20px 28px, transparent 28px 48px),
    #0d221d;
}

.footer-copy {
  color: rgba(255, 255, 255, .72);
  font-size: 14px;
  white-space: nowrap;
}

.city-hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  padding: 120px clamp(18px, 6vw, 76px) 58px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(8, 26, 24, .86), rgba(8, 26, 24, .24)),
    var(--hero-image) center/cover;
}

.city-hero .hero-content {
  width: min(780px, 100%);
}

.city-hero h1 {
  margin: 0;
  font-size: clamp(46px, 8vw, 92px);
  line-height: 1;
}

.city-hero p {
  max-width: 680px;
  font-size: 20px;
  line-height: 1.55;
}

.city-content {
  max-width: 1040px;
  margin: 0 auto;
  padding: 64px clamp(18px, 4vw, 32px);
}

.city-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.city-hotels-widget {
  margin-top: 48px;
}

.city-widget {
  min-height: 430px;
  margin-top: 22px;
  padding: 14px;
  overflow: hidden;
  border-style: solid;
  text-align: left;
}

.city-widget .widget-embed {
  max-width: 100%;
  min-height: 400px;
  overflow: hidden;
}

.city-widget iframe {
  display: block;
  max-width: 100%;
  margin: 0 auto;
}

.detail {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.back-link {
  display: inline-flex;
  margin-top: 34px;
  color: var(--green);
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 900px) {
  .site-header {
    flex-wrap: wrap;
  }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    margin-left: 0;
    overflow-x: auto;
  }

  .language-switch {
    margin-left: auto;
  }

  .hero {
    min-height: 720px;
  }

  .hero-widget-slot,
  .intro-section,
  .booking-section,
  .companions-hero,
  .companions-layout,
  .profile-content,
  .admin-grid,
  .cards,
  .feature-grid,
  .city-details {
    grid-template-columns: 1fr;
  }

  .companions-filters {
    grid-template-columns: 1fr 1fr;
  }

  .admin-stats,
  .admin-login-form {
    grid-template-columns: 1fr 1fr;
  }

  .companions-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .account-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .account-actions {
    justify-content: flex-start;
  }

  .safety-panel {
    position: static;
  }

  .profile-sidebar {
    position: static;
  }

}

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

  .hero h1 {
    font-size: 42px;
  }

  .hero-text,
  .city-hero p {
    font-size: 17px;
  }

  .section-heading,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .city-card {
    min-height: 220px;
  }

  .companions-filters,
  .form-grid,
  .chat-form,
  .admin-stats,
  .admin-login-form {
    grid-template-columns: 1fr;
  }

  .companions-hero {
    min-height: auto;
  }

  .companions-hero-card {
    min-height: 260px;
  }

  .profile-cover {
    min-height: 430px;
    padding: 24px;
  }

  .profile-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-avatar {
    width: 104px;
    height: 104px;
    font-size: 46px;
  }

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

  .companion-card-head,
  .companion-card-foot {
    align-items: flex-start;
    flex-direction: column;
  }
}


.card-user-line,
.conversation-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.user-avatar,
.conversation-avatar {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  overflow: hidden;
  color: #11170f;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  border-radius: 50%;
  font-size: 14px;
  font-weight: 900;
}

.user-avatar img,
.conversation-avatar img,
.profile-avatar img,
.avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-weight: 800;
}

.avatar-preview img {
  width: 64px;
  height: 64px;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(5, 18, 22, .16);
}

.conversation-list {
  display: grid;
  gap: 10px;
  max-height: 420px;
  overflow: auto;
}

.conversation-list[hidden] {
  display: none;
}

.conversation-item {
  width: 100%;
  padding: 12px;
  color: var(--ink);
  text-align: left;
  background: #f8faf7;
  border: 1px solid rgba(12, 29, 34, .09);
  border-radius: 8px;
  cursor: pointer;
}

.conversation-item:hover {
  border-color: rgba(11, 109, 93, .28);
  box-shadow: 0 12px 26px rgba(5, 18, 22, .08);
}

.conversation-item span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.conversation-item small,
.conversation-item em {
  overflow: hidden;
  color: var(--muted);
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}


.header-account {
  position: relative;
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.header-auth-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-auth-btn,
.header-profile-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid rgba(12, 29, 34, .12);
  border-radius: 999px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.header-auth-btn {
  padding: 0 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, .88);
}

.header-auth-btn.is-primary {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
}

.header-auth-btn:hover,
.header-profile-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(5, 18, 22, .12);
}

.header-profile-button {
  gap: 9px;
  padding: 3px 12px 3px 3px;
  color: var(--ink);
  background: #fff;
}

.header-profile-avatar {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  overflow: hidden;
  color: #11170f;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  border-radius: 50%;
  font-size: 14px;
  font-weight: 900;
}

.header-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.header-profile-name {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-profile-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 30;
  display: grid;
  min-width: 210px;
  padding: 8px;
  background: #fff;
  border: 1px solid rgba(12, 29, 34, .1);
  border-radius: 8px;
  box-shadow: 0 20px 46px rgba(5, 18, 22, .16);
}

.header-profile-menu[hidden] {
  display: none;
}

.header-profile-menu a,
.header-profile-menu button {
  display: flex;
  width: 100%;
  padding: 10px 11px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 6px;
  font: inherit;
  font-weight: 800;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.header-profile-menu a:hover,
.header-profile-menu button:hover {
  background: rgba(239, 244, 241, .95);
  color: var(--green);
}

@media (max-width: 900px) {
  .header-account {
    margin-left: 0;
  }

  .header-auth-actions {
    gap: 6px;
  }

  .header-auth-btn {
    min-height: 34px;
    padding: 0 11px;
    font-size: 13px;
  }

  .header-profile-name {
    display: none;
  }

  .header-profile-button {
    min-height: 38px;
    padding-right: 3px;
  }
}


.verification-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: -8px 0 18px;
}

.verify-chip,
.verify-action {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.verify-chip.is-ok {
  color: #0b6d5d;
  background: rgba(11, 109, 93, .12);
}

.verify-chip.is-warn {
  color: #8a5a00;
  background: rgba(217, 164, 65, .2);
}

.verify-action {
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(12, 29, 34, .12);
  cursor: pointer;
}

.verify-action:hover {
  border-color: rgba(11, 109, 93, .28);
  color: var(--green);
}
