:root {
  --bg: #141414;
  --surface: #2a2c32;
  --surface-soft: #1f2025;
  --text: #f3f4f8;
  --muted: #b8bdc8;
  --danger: #bf0f11;
  --danger-soft: #911113;
  --line: #32353d;
}

body.theme-light {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --surface-soft: #eef0f3;
  --text: #101114;
  --muted: #5d6472;
  --line: #d7dbe3;
}

body.no-scroll {
  overflow: hidden;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", sans-serif;
}

.app {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 0;
}

.phone {
  width: min(100%, 760px);
  background: var(--bg);
  min-height: 100vh;
  padding: 18px 16px 24px;
  border-radius: 0;
}

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

.lang-btn,
.icon-btn {
  background: #27292f;
  color: #fff;
  border: 0;
  border-radius: 10px;
  height: 38px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: normal;
}

.icon-btn {
  width: 38px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-btn img {
  width: 16px;
  height: 16px;
  display: block;
  object-fit: contain;
}

.cover {
  width: 100%;
  border-radius: 12px;
  display: block;
  max-height: 520px;
  object-fit: cover;
  margin-bottom: 14px;
}

.venue-row {
  display: flex;
  gap: 14px;
  align-items: center;
  margin: 0 0 16px;
}

.logo {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
  outline: 1px solid #9f7729;
}

h1 {
  margin: 0;
  font-size: clamp(26px, 3.2vw, 34px);
  font-weight: 600;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.venue-row p {
  margin: 6px 0 0;
  font-size: 13px;
  color: #d6d9e2;
}

.menu-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  color: #fff;
  background: #9f7729;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
}

.menu-left {
  display: inline-flex;
  align-items: center;
}

.menu-icon {
  width: 20px;
  height: 20px;
  margin-right: 10px;
  flex-shrink: 0;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.menu-arrow {
  margin-left: 14px;
}

.line-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  color: #e6e8ee;
  padding: 8px 16px 12px;
  font-size: 14px;
  margin-bottom: 14px;
}

.line-left {
  display: inline-flex;
  align-items: center;
}

.line-icon {
  width: 20px;
  height: 20px;
  margin-right: 10px;
  object-fit: contain;
  filter: invert(52%) sepia(35%) saturate(714%) hue-rotate(7deg) brightness(89%)
    contrast(90%);
}

.line-link span {
  color: white;
}

.card {
  background: var(--surface);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 12px;
}

.card h2 {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
}

.card h2 img {
  width: 20px;
  height: 20px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 10px;
  object-fit: contain;
  /* icons8/sf-black kimi rəngli ikonları ağ göstərmək üçün */
  filter: brightness(0) invert(1);
}

.wifi-card .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 6px;
  margin-top: 6px;
  font-size: 14px;
}

.wifi-card .row:first-of-type {
  border-top: 1px solid #3b3f49;
  padding-top: 10px;
  margin-top: 10px;
}

.wifi-card .row span {
  color: var(--muted);
}

.wifi-card .row strong {
  font-size: 14px;
  color: #e8eaf0;
}

.wifi-card .row strong img {
  width: 15px;
  height: 15px;
  margin-left: 6px;
  vertical-align: -2px;
  object-fit: contain;
  opacity: 0.9;
  cursor: pointer;
  transition: opacity 0.15s ease;
  filter: invert(55%) sepia(10%) saturate(412%) hue-rotate(176deg) brightness(90%)
    contrast(88%);
}

.wifi-card .row strong img:hover {
  opacity: 1;
}

.hours {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hours strong {
  font-size: 14px;
  font-weight: 600;
}

.hours-status-open {
  color: #61d489;
}

.hours-status-closed {
  color: #e25353;
}

.card p {
  margin: 0;
  font-size: 13px;
  color: #c2c7d1;
}

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

.contact-row span {
  color: var(--muted);
  font-size: 14px;
}

.contact-row p {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  text-align: right;
}

.phone-copy {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.copy-phone-icon {
  width: 15px;
  height: 15px;
  display: block;
  object-fit: contain;
  cursor: pointer;
  opacity: 0.9;
  transition: opacity 0.15s ease;
  filter: invert(55%) sepia(10%) saturate(412%) hue-rotate(176deg) brightness(90%)
    contrast(88%);
}

.copy-phone-icon:hover {
  opacity: 1;
}

.address {
  margin-top: 14px;
  padding-top: 4px;
}

.address h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.15;
}

.address p {
  margin: 6px 0 0;
  font-size: 13px;
  color: #f0f2f9;
}

.address a {
  display: inline-block;
  margin-top: 6px;
  color: #9f7729;
  font-size: 13px;
  text-underline-offset: 2px;
}

.map {
  width: 100%;
  margin-top: 9px;
  border-radius: 3px;
  display: block;
  aspect-ratio: 1024 / 430;
  object-fit: cover;
}

.map-frame {
  border: 0;
}

.socials {
  margin-top: 18px;
}

.socials h2 {
  margin: 0 0 10px;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
}

.social-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  row-gap: 10px;
}

.social-grid a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #f5f6fb;
  font-size: 14px;
}

.social-grid a img {
  width: clamp(18px, 2.4vw, 24px);
  height: clamp(18px, 2.4vw, 24px);
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}

.footer {
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
  text-align: center;
  font-size: 12px;
  color: #878d9a;
}

.footer span {
  color: #9f7729;
}

.copy-toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%) translateY(12px);
  background: #1f2128;
  color: #f3f4f8;
  border: 1px solid #3a3d46;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 9999;
}

.copy-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

body.theme-light .copy-toast {
  background: var(--surface);
  color: var(--text);
  border-color: var(--line);
}

/* Dil toggle (settings) */
.lang-toggle-wrap {
  margin-bottom: 8px;
}

.lang-toggle {
  display: flex;
  gap: 0;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  margin-top: 8px;
}

body.theme-light .lang-toggle {
  border-color: var(--line);
}

.lang-toggle-btn {
  flex: 1;
  padding: 12px 10px;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--surface-soft);
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.06em;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease, color 0.15s ease;
}

.lang-toggle-btn:last-child {
  border-right: 0;
}

body.theme-light .lang-toggle-btn {
  border-right-color: var(--line);
}

.lang-toggle-btn:hover {
  color: var(--text);
}

.lang-toggle-btn.active {
  background: #9f7729;
  color: #fff;
}

body.theme-light .lang-toggle-btn.active {
  color: #fff;
}

/* Dəyərləndirmə düyməsi */
button.line-link {
  width: 100%;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
  border: 0;
  padding: 8px 16px 12px;
}

/* Dəyərləndirmə modal */
.rating-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 10000;
}

.rating-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.96);
  width: min(360px, calc(100% - 32px));
  max-height: min(90vh, 520px);
  background: #1c1c1e;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 20px 20px 24px;
  z-index: 10001;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.rating-modal.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.rating-handle {
  width: 40px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  margin-bottom: 8px;
}

.rating-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.rating-title {
  margin: 8px 0 12px;
  font-size: 18px;
  font-weight: 800;
  color: #f3f4f8;
}

.rating-illustration {
  color: rgba(255, 255, 255, 0.85);
  margin: 8px 0 16px;
}

.rating-stars {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 8px 0 20px;
  flex-wrap: wrap;
}

.rating-star-btn {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.35);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.rating-star-btn.active {
  color: #e8c547;
  border-color: rgba(232, 197, 71, 0.5);
  background: rgba(232, 197, 71, 0.12);
}

.rating-msg {
  margin: 0 0 12px;
  font-size: 14px;
  color: #a8d4a8;
  min-height: 1.2em;
}

.rating-next {
  width: 100%;
  max-width: 280px;
  padding: 14px 20px;
  border: 0;
  border-radius: 12px;
  background: #9f7729;
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.15s ease;
}

.rating-next:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.rating-next:not(:disabled):hover {
  opacity: 0.92;
}

body.theme-light .rating-modal {
  background: #f0f1f4;
  border-color: var(--line);
}

body.theme-light .rating-title {
  color: var(--text);
}

body.theme-light .rating-star-btn {
  border-color: var(--line);
  background: #fff;
  color: #c4c8d0;
}

body.theme-light .rating-star-btn.active {
  color: #9f7729;
  border-color: rgba(159, 119, 41, 0.45);
  background: rgba(159, 119, 41, 0.1);
}

body.theme-light .rating-next {
  background: #9f2323;
}

body.theme-light .rating-close {
  background: rgba(0, 0, 0, 0.06);
  color: var(--text);
}

/* Light mode — ümumi düzəlişlər */
body.theme-light .phone {
  background: var(--bg);
}

body.theme-light .lang-btn,
body.theme-light .icon-btn {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
}

body.theme-light .venue-row p {
  color: var(--muted);
}

body.theme-light .menu-btn {
  color: #fff;
}

body.theme-light .line-link span {
  color: var(--text);
}

body.theme-light .card p {
  color: var(--muted);
}

body.theme-light .wifi-card .row:first-of-type {
  border-top-color: var(--line);
}

body.theme-light .wifi-card .row strong {
  color: var(--text);
}

body.theme-light .address p {
  color: var(--muted);
}

body.theme-light .social-grid a {
  color: var(--text);
}

body.theme-light .footer {
  color: var(--muted);
}

body.theme-light .footer span[style] {
  color: var(--muted) !important;
}

/* ─── Light mode: icon rəng düzəlişləri ─── */
body.theme-light .card h2 img {
  filter: brightness(0) saturate(100%) invert(28%) sepia(60%) saturate(600%) hue-rotate(20deg) brightness(95%) contrast(90%);
}

body.theme-light .icon-btn img {
  filter: brightness(0) saturate(100%) invert(28%) sepia(60%) saturate(600%) hue-rotate(20deg) brightness(95%) contrast(90%);
}

body.theme-light .sheet-back img {
  filter: brightness(0) saturate(100%) invert(28%) sepia(60%) saturate(600%) hue-rotate(20deg) brightness(95%) contrast(90%);
}

body.theme-light .line-icon {
  filter: brightness(0) saturate(100%) invert(28%) sepia(60%) saturate(600%) hue-rotate(20deg) brightness(95%) contrast(90%);
}

body.theme-light .menu-icon {
  filter: brightness(0) saturate(100%) invert(100%);
}

body.theme-light .wifi-card .row strong img {
  filter: brightness(0) saturate(100%) invert(35%) sepia(10%) saturate(400%) hue-rotate(180deg) brightness(90%) contrast(88%);
}

body.theme-light .copy-phone-icon {
  filter: brightness(0) saturate(100%) invert(35%) sepia(10%) saturate(400%) hue-rotate(180deg) brightness(90%) contrast(88%);
}

.sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 9998;
}

.sheet {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 92vw);
  height: 100vh;
  background: var(--bg);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  transform: translateX(110%);
  transition: transform 0.25s ease;
  z-index: 9999;
  display: flex;
  flex-direction: column;
}

body.theme-light .sheet {
  border-left: 1px solid var(--line);
}

.sheet.open {
  transform: translateX(0);
}

.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body.theme-light .sheet-header {
  border-bottom: 1px solid var(--line);
}

.sheet-back {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 0;
  background: var(--surface-soft);
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}

.sheet-back img {
  width: clamp(18px, 5vw, 24px);
  height: auto;
  max-height: 24px;
  display: block;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.sheet-title {
  font-weight: 800;
  font-size: 16px;
}

.sheet-spacer {
  width: 40px;
}

.sheet-body {
  padding: 16px;
  overflow: auto;
}

.sheet-section-title {
  color: var(--text);
  font-weight: 800;
  margin: 12px 0 10px;
  font-size: 14px;
}

.sheet-row {
  width: 100%;
  background: transparent;
  border: 0;
  padding: 10px 0;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body.theme-light .sheet-row {
  border-bottom: 1px solid var(--line);
}

.sheet-row-left {
  text-align: left;
}

.sheet-row-label {
  font-weight: 700;
  font-size: 14px;
}

.sheet-row-sub {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.sheet-row-right {
  color: var(--muted);
  font-size: 18px;
}

.lang-options {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.lang-option {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  text-align: left;
  font-weight: 700;
}

body.theme-light .lang-option {
  border: 1px solid var(--line);
}

.theme-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.theme-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px 10px;
  color: var(--text);
  cursor: pointer;
  display: grid;
  gap: 8px;
  justify-items: center;
}

body.theme-light .theme-card {
  border: 1px solid var(--line);
}

.theme-card.active {
  outline: 2px solid #0b86d6;
}

body.theme-light .theme-card.active {
  outline-color: #9f7729;
}

.theme-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--surface-soft);
  display: grid;
  place-items: center;
  font-size: 20px;
}

.theme-label {
  font-weight: 800;
  font-size: 13px;
}

.version-pill {
  margin: 16px auto 0;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--muted);
  font-size: 12px;
}

body.theme-light .version-pill {
  border: 1px solid var(--line);
}

@media (max-width: 480px) {
  .phone {
    width: 100%;
    border-radius: 0;
    padding: 16px 16px 20px;
  }

  .lang-btn,
  .icon-btn {
    height: 38px;
  }

  .logo {
    width: 72px;
    height: 72px;
  }

  .venue-row h1 {
    font-size: clamp(20px, 5.4vw, 28px);
    line-height: 1.15;
  }

  .venue-row p {
    font-size: 14px;
  }

  .menu-btn {
    font-size: 16px;
    padding: 14px 16px;
  }

  .menu-icon {
    width: 20px;
    height: 20px;
  }

  .card {
    border-radius: 14px;
    padding: 13px 14px;
  }

  .card h2 {
    font-size: 15px;
  }

  .wifi-card .row {
    font-size: 14px;
  }

  .wifi-card .row strong,
  .hours strong {
    font-size: 14px;
  }

  .address {
    margin-top: 14px;
  }

  .address h2 {
    font-size: 24px;
  }

  .address p {
    font-size: 13px;
  }

  .address a {
    font-size: 13px;
  }

  .map {
    margin-top: 10px;
  }
}

@media (min-width: 390px) and (max-width: 440px) {
  .phone {
    max-width: 425px;
    margin: 0 auto;
    padding: 18px 18px 22px;
  }

  .cover {
    border-radius: 14px;
  }

  .venue-row h1 {
    font-size: clamp(22px, 5vw, 30px);
  }

  .menu-btn {
    min-height: 48px;
    font-size: 15px;
  }

  .card h2 {
    font-size: 15px;
  }

  .address h2 {
    font-size: 24px;
  }

  .address p {
    font-size: 13px;
  }

  .address a {
    font-size: 13px;
  }
}

@media (min-width: 992px) {
  .phone {
    width: min(90vw, 920px);
    padding: 24px 22px 28px;
  }

  .cover {
    max-height: 660px;
  }

  .logo {
    width: 76px;
    height: 76px;
  }
}

@media (min-width: 1400px) {
  .phone {
    width: min(84vw, 1100px);
    padding: 26px 24px 30px;
  }

  .cover {
    max-height: 760px;
  }
}
