@font-face {
  font-family: "ShabnamFD";
  src: url("fonts/Shabnam-FD.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "ShabnamFD";
  src: url("fonts/Shabnam-Bold-FD.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --black: #000000;
  --gold: #d0ab67;
  --gold-bright: #e0c18a;
  --text: #f7f7f7;
  --muted: rgba(242, 242, 247, 0.56);
  --muted-strong: rgba(242, 242, 247, 0.72);
  --glass: rgba(38, 38, 42, 0.62);
  --glass-strong: rgba(51, 51, 56, 0.76);
  --glass-light: rgba(255, 255, 255, 0.105);
  --hairline: rgba(255, 255, 255, 0.135);
  --hairline-bright: rgba(255, 255, 255, 0.22);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 17px;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  background: var(--black);
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 84% -6%, rgba(208, 171, 103, 0.11), transparent 31%),
    radial-gradient(circle at -8% 92%, rgba(110, 112, 122, 0.13), transparent 34%),
    #000;
  font-family: "ShabnamFD", Tahoma, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
a {
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

button,
a {
  touch-action: manipulation;
}

button {
  color: inherit;
}

.ambient,
.ambient-orb {
  position: fixed;
  pointer-events: none;
}

.ambient {
  z-index: 0;
  inset: 0;
  overflow: hidden;
}

.ambient::before {
  position: absolute;
  top: 12%;
  left: 50%;
  width: min(86vw, 420px);
  height: min(86vw, 420px);
  border: 1px solid rgba(255, 255, 255, 0.035);
  border-radius: 47%;
  content: "";
  transform: translateX(-50%) rotate(23deg);
}

.ambient-orb {
  width: 210px;
  height: 210px;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.16;
}

.ambient-orb--gold {
  top: -115px;
  right: -95px;
  background: var(--gold);
}

.ambient-orb--silver {
  bottom: -130px;
  left: -95px;
  background: #8e8e93;
}

.splash {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  background: #000;
  transition: opacity 260ms ease, visibility 260ms ease;
}

.splash img {
  width: 124px;
  height: 124px;
  object-fit: contain;
}

.splash.hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.app-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 448px);
  height: 100vh;
  height: 100dvh;
  margin: 0 auto;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-width: none;
  padding:
    max(20px, env(safe-area-inset-top))
    max(18px, env(safe-area-inset-right))
    max(24px, env(safe-area-inset-bottom))
    max(18px, env(safe-area-inset-left));
}

.app-shell::-webkit-scrollbar,
.bottom-sheet::-webkit-scrollbar {
  display: none;
}

.screen {
  display: none;
  width: 100%;
}

.screen.active {
  display: block;
  animation: screen-in 320ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes screen-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.992);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.menu-list {
  display: grid;
  gap: 10px;
  padding-top: 4px;
}

.glass-surface,
.glass-button {
  border: 1px solid var(--hairline);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(255, 255, 255, 0.035),
    0 18px 44px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
}

.glass-button {
  position: relative;
  width: 100%;
  min-height: 66px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  padding: 9px 14px;
  text-align: right;
  background:
    linear-gradient(112deg, rgba(255, 255, 255, 0.112), rgba(255, 255, 255, 0.035) 58%, rgba(208, 171, 103, 0.035)),
    rgba(26, 26, 29, 0.62);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.glass-button::before {
  position: absolute;
  top: 0;
  right: 14%;
  left: 14%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
  content: "";
  opacity: 0.8;
}

.glass-button:hover {
  border-color: rgba(208, 171, 103, 0.34);
  background:
    linear-gradient(112deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.055) 58%, rgba(208, 171, 103, 0.075)),
    rgba(30, 30, 34, 0.68);
}

.glass-button:active {
  transform: scale(0.982);
}

.price-spotlight::after {
  position: absolute;
  z-index: 3;
  inset: -1px;
  padding: 1px;
  background: conic-gradient(
    from 0deg,
    transparent 0deg 268deg,
    rgba(208, 171, 103, 0.16) 286deg,
    rgba(208, 171, 103, 0.95) 318deg,
    transparent 352deg
  );
  border-radius: inherit;
  content: "";
  pointer-events: none;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: border-orbit 3.4s linear infinite;
}

@keyframes border-orbit {
  to {
    transform: rotate(1turn);
  }
}

.button-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: var(--gold);
  background:
    linear-gradient(145deg, rgba(208, 171, 103, 0.17), rgba(208, 171, 103, 0.055)),
    rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(208, 171, 103, 0.2);
  border-radius: 15px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.13);
}

.button-icon svg,
.navigation-bar svg,
.search-box svg,
.inline-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button-icon .menu-brand-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.button-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.button-copy strong {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.55;
}

.button-copy small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chevron {
  color: rgba(255, 255, 255, 0.28);
  font-family: Arial, sans-serif;
  font-size: 25px;
  font-weight: 300;
  direction: ltr;
  transform: translateY(-1px);
}

.site-link {
  display: block;
  width: max-content;
  margin: 20px auto 0;
  color: rgba(255, 255, 255, 0.32);
  font-family: Arial, sans-serif;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-decoration: none;
  direction: ltr;
}

.site-link:active {
  color: rgba(255, 255, 255, 0.52);
}

.search-screen {
  padding-bottom: 6px;
}

.navigation-bar {
  min-height: 58px;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 8px;
  padding: 6px;
  margin-bottom: 14px;
  background: rgba(35, 35, 39, 0.68);
  border-radius: 20px;
}

.navigation-bar h2 {
  margin: 0;
  text-align: center;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
}

.back-button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--text);
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 15px;
  cursor: pointer;
}

.back-button:active {
  transform: scale(0.94);
}

.nav-spacer {
  width: 44px;
}

.search-box {
  min-height: 58px;
  display: grid;
  grid-template-columns: 23px 1fr;
  align-items: center;
  gap: 11px;
  padding: 0 17px;
  color: var(--gold);
  background: rgba(43, 43, 47, 0.66);
  border-radius: 19px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.search-box:focus-within {
  border-color: rgba(208, 171, 103, 0.52);
  box-shadow:
    0 0 0 3px rgba(208, 171, 103, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 18px 44px rgba(0, 0, 0, 0.24);
}

.search-box input {
  width: 100%;
  height: 56px;
  padding: 0;
  color: var(--text);
  caret-color: var(--gold);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 14px;
  line-height: 1.7;
}

.search-box input::placeholder {
  color: rgba(255, 255, 255, 0.34);
}

.search-meta {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 4px 6px;
}

.search-meta p {
  margin: 0;
  color: var(--muted-strong);
  font-size: 11px;
  line-height: 1.6;
}

.live-state {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 10px;
  line-height: 1;
}

.live-state i {
  width: 6px;
  height: 6px;
  background: #8e8e93;
  border-radius: 50%;
}

.live-state.live i {
  background: #32d74b;
  box-shadow: 0 0 10px rgba(50, 215, 75, 0.55);
}

.live-state.cached i {
  background: var(--gold);
}

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

.result-card,
.empty-state {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.025)),
    rgba(24, 24, 27, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.105);
  border-radius: var(--radius-md);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.result-card {
  padding: 14px 15px;
}

.result-name {
  margin: 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.85;
}

.result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 9px;
}

.result-price {
  margin: 0;
  color: var(--gold-bright);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
}

.call-price,
.download-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 13px;
  color: #070707;
  background: var(--gold);
  border: 0;
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34), 0 7px 18px rgba(208, 171, 103, 0.13);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.call-price:active,
.download-button:active,
.dismiss-button:active,
.action-button:active {
  transform: scale(0.97);
}

.download-button svg,
.call-price svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.empty-state {
  padding: 36px 22px;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
  line-height: 2;
}

.sheet-backdrop {
  position: fixed;
  z-index: 60;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding:
    18px
    max(14px, env(safe-area-inset-right))
    max(14px, env(safe-area-inset-bottom))
    max(14px, env(safe-area-inset-left));
  visibility: hidden;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  backdrop-filter: blur(13px);
  -webkit-backdrop-filter: blur(13px);
  transition: opacity 230ms ease, visibility 230ms ease;
}

.sheet-backdrop.visible {
  visibility: visible;
  opacity: 1;
}

.bottom-sheet {
  width: min(100%, 430px);
  max-height: calc(100dvh - 34px);
  overflow-y: auto;
  padding: 10px 16px 16px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.035)),
    rgba(24, 24, 27, 0.91);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 30px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.23),
    0 30px 80px rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(38px) saturate(150%);
  -webkit-backdrop-filter: blur(38px) saturate(150%);
  scrollbar-width: none;
  transform: translateY(26px) scale(0.985);
  transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

.sheet-backdrop.visible .bottom-sheet {
  transform: translateY(0) scale(1);
}

.sheet-handle {
  width: 38px;
  height: 4px;
  margin: 2px auto 15px;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 99px;
}

.sheet-header {
  padding: 0 4px 12px;
  text-align: center;
}

.sheet-header h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.65;
}

.sheet-header p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.action-list {
  display: grid;
  gap: 9px;
}

.action-button {
  width: 100%;
  min-height: 58px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 11px;
  padding: 8px 11px;
  color: var(--text);
  text-align: right;
  background: rgba(255, 255, 255, 0.065);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 17px;
  cursor: pointer;
}

.action-button:hover {
  background: rgba(255, 255, 255, 0.095);
  border-color: rgba(208, 171, 103, 0.24);
}

.action-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--gold);
  background: rgba(208, 171, 103, 0.095);
  border: 1px solid rgba(208, 171, 103, 0.16);
  border-radius: 13px;
}

.action-icon svg,
.action-icon img {
  width: 24px;
  height: 24px;
}

.action-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.action-icon.brand-whatsapp {
  color: #25d366;
  background: rgba(8, 12, 10, 0.92);
  border-color: rgba(37, 211, 102, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 6px 18px rgba(37, 211, 102, 0.08);
}

.action-icon.brand-telegram {
  color: #2aabee;
  background: rgba(8, 11, 13, 0.92);
  border-color: rgba(42, 171, 238, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 6px 18px rgba(42, 171, 238, 0.08);
}

.action-icon.brand-telegram svg {
  fill: currentColor;
  stroke: none;
}

.action-icon.brand-bale {
  background: rgba(7, 12, 11, 0.92);
  border-color: rgba(10, 203, 157, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 6px 18px rgba(10, 203, 157, 0.08);
}

.action-icon.brand-bale img {
  width: 28px;
  height: 28px;
}

.action-icon img {
  object-fit: contain;
}

.phone-number {
  direction: ltr;
  unicode-bidi: isolate;
}

.action-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.action-copy strong {
  font-size: 14px;
  line-height: 1.6;
}

.action-copy small {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.action-arrow {
  color: rgba(255, 255, 255, 0.28);
  font-family: Arial, sans-serif;
  font-size: 22px;
  direction: ltr;
}

.dismiss-button {
  width: 100%;
  min-height: 48px;
  margin-top: 12px;
  color: #050505;
  background: var(--gold);
  border: 0;
  border-radius: 15px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.38);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

noscript {
  position: fixed;
  z-index: 120;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 30px;
  color: white;
  background: black;
  text-align: center;
}

@media (max-height: 720px) {
  .app-shell {
    padding-top: max(12px, env(safe-area-inset-top));
  }

  .menu-list {
    gap: 8px;
  }

  .glass-button {
    min-height: 59px;
  }

  .button-icon {
    width: 40px;
    height: 40px;
    border-radius: 13px;
  }
}

@media (min-width: 700px) {
  .app-shell {
    padding-top: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }

  .price-spotlight::after {
    background: rgba(208, 171, 103, 0.62);
  }
}

@media (prefers-contrast: more) {
  :root {
    --hairline: rgba(255, 255, 255, 0.3);
    --muted: rgba(255, 255, 255, 0.75);
  }
}
