﻿@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;600;700;800&display=swap');

:root {
  --ar-blue: #74ACDF;
  --ar-blue-deep: #3388C8;
  --ar-blue-dark: #1B5F99;
  --ar-white: #FFFFFF;
  --ar-sky: #E8F4FC;
  --rolex: #006039;
  --rolex-light: #E6F3EC;
  --ink: #0F2A3D;
  --muted: #5A7385;
  --ok: #1F8A5B;
  --danger: #C0392B;
  --shadow: 0 18px 50px rgba(27, 95, 153, 0.18);
  --topbar-h: 64px;
  --bottom-nav-h: 64px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  padding: 0;
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  color: var(--ink);
  background: url('../Uploads/bg.png') center center / cover no-repeat fixed;
  direction: rtl;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
}
body.has-bottom-nav {
  padding-bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + 28px);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button, .btn, input, select, textarea { font-family: inherit; }
button, .btn {
  cursor: pointer;
  border: none;
  border-radius: 14px;
  padding: 12px 22px;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.3;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  touch-action: manipulation;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
button:active, .btn:active { transform: scale(.98); }
@media (hover: hover) {
  button:hover, .btn:hover { transform: translateY(-1px); }
}

.btn-primary {
  background: linear-gradient(135deg, var(--ar-blue), var(--ar-blue-deep));
  color: #fff;
  box-shadow: 0 10px 24px rgba(51, 136, 200, .35);
}
.btn-outline {
  background: rgba(255,255,255,.85);
  color: var(--ar-blue-dark);
  border: 2px solid rgba(116,172,223,.7);
}
.btn-logout {
  color: var(--danger) !important;
  border-color: rgba(192,57,43,.45) !important;
}
.btn-logout:hover {
  background: rgba(192,57,43,.08);
}
.btn-dark { background: var(--ar-blue-dark); color: #fff; }
.btn-block, .btn.btn-block { width: 100%; }
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.btn-row .btn { flex: 1 1 140px; }

/* ========== Topbar ========== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: var(--topbar-h);
  padding: 8px 12px;
  padding-top: calc(8px + env(safe-area-inset-top, 0px));
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(116,172,223,.35);
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--ar-blue-dark);
  flex-shrink: 0;
}
.brand-mark {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(160deg, #fff 0 33%, var(--ar-blue) 33% 66%, #fff 66%);
  border: 2px solid var(--ar-blue-deep);
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: auto;
  margin-left: 0;
}
.phone-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--ar-blue);
  color: #fff !important;
  padding: 7px 12px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: .2px;
  direction: ltr;
  unicode-bidi: isolate;
  font-size: .82rem;
  white-space: nowrap;
  flex-shrink: 1;
  min-width: 0;
}
.nav-toggle {
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 12px;
  background: var(--ar-sky);
  border: 1px solid rgba(116,172,223,.55);
  color: var(--ar-blue-dark);
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-links {
  display: none;
  position: fixed;
  top: calc(var(--topbar-h) + env(safe-area-inset-top, 0px));
  right: 0;
  left: 0;
  z-index: 99;
  flex-direction: column;
  gap: 0;
  padding: 8px 12px 16px;
  background: #fff;
  border-bottom: 1px solid rgba(116,172,223,.35);
  box-shadow: 0 16px 40px rgba(27,95,153,.12);
  max-height: calc(100vh - var(--topbar-h));
  max-height: calc(100dvh - var(--topbar-h));
  overflow-y: auto;
}
body.nav-open .nav-links { display: flex; }
.nav-links a {
  display: block;
  padding: 14px 12px;
  border-radius: 12px;
  color: var(--ar-blue-dark);
  font-weight: 600;
  font-size: 1rem;
  border-bottom: 1px solid rgba(116,172,223,.18);
}
.nav-links a:last-child { border-bottom: 0; }
.nav-links a:active { background: var(--ar-sky); }
.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(15,42,61,.35);
}
body.nav-open .nav-backdrop { display: block; }

/* ========== Bottom nav (mobile) ========== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 95;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: calc(var(--bottom-nav-h) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: rgba(255,255,255,.97);
  border-top: 1px solid rgba(116,172,223,.4);
  box-shadow: 0 -8px 24px rgba(27,95,153,.08);
}
.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: .68rem;
  font-weight: 700;
  color: var(--muted);
  padding: 6px 2px;
  min-height: var(--bottom-nav-h);
}
.bottom-nav a svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}
.bottom-nav a.active,
.bottom-nav a:active {
  color: var(--ar-blue-deep);
}

/* ========== Hero ========== */
.hero-home {
  min-height: calc(100vh - var(--topbar-h));
  min-height: calc(100dvh - var(--topbar-h));
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: transparent;
}
.hero-home::before {
  display: none;
}
@keyframes drift {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}
.hero-card {
  position: relative;
  z-index: 2;
  width: min(920px, 94vw);
  text-align: center;
  color: #fff;
  padding: 20px 12px 28px;
}
.hero-card h1 {
  margin: 0 0 8px;
  font-size: clamp(2rem, 9vw, 4rem);
  letter-spacing: .5px;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,.55), 0 0 40px rgba(0,0,0,.35);
  animation: rise .9s ease both;
}
.hero-card p {
  margin: 0 auto 22px;
  max-width: 520px;
  font-size: clamp(.95rem, 3.5vw, 1.05rem);
  line-height: 1.7;
  opacity: .98;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,.5);
  animation: rise 1.1s ease both;
  padding: 0 4px;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.choice-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  animation: rise 1.3s ease both;
}
.choice {
  display: block;
  padding: 22px 16px;
  border-radius: 20px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
  transition: transform .25s ease, background .25s ease;
}
.choice:active {
  transform: scale(.98);
  background: rgba(255,255,255,.28);
}
.choice strong {
  display: block;
  font-size: clamp(1.25rem, 5vw, 1.45rem);
  margin-bottom: 6px;
}
.choice span { opacity: .92; font-size: .92rem; }

.page {
  width: min(1100px, 100%);
  margin: 16px auto 24px;
  padding: 0 12px;
}
.section-title {
  margin: 4px 0 14px;
  color: var(--ar-blue-dark);
  font-size: clamp(1.25rem, 5vw, 1.6rem);
}
.section-sub {
  margin: -6px 0 18px;
  color: var(--muted);
  font-size: .92rem;
}
.rich-content {
  line-height: 2;
  word-wrap: break-word;
  color: var(--ink);
}
.rich-content ol,
.rich-content ul {
  padding-inline-start: 1.4rem;
  margin: 8px 0 14px;
}
.rich-content li { margin-bottom: 8px; }
.contact-meta {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}
.contact-row {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(116,172,223,.35);
}
.contact-row span {
  font-size: .82rem;
  color: var(--muted);
}
.contact-row strong { font-size: .95rem; line-height: 1.7; }
.grid-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.card-item {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(116,172,223,.35);
  box-shadow: 0 8px 22px rgba(27,95,153,.08);
  transition: transform .2s ease;
}
.card-item:active { transform: scale(.98); }
.card-item .thumb {
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
  background: linear-gradient(135deg, #cfe8f8, #74ACDF);
}
.card-item .body { padding: 10px 12px 14px; }
.card-item h3 {
  margin: 0 0 6px;
  font-size: .95rem;
  color: var(--ar-blue-dark);
  line-height: 1.45;
}
.price-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.price-old {
  text-decoration: line-through;
  color: #8aa0b0;
  font-size: .82rem;
}
.price-new { color: var(--ar-blue-deep); font-weight: 800; font-size: .92rem; }

.panel {
  background: #fff;
  border-radius: 18px;
  padding: 16px;
  border: 1px solid rgba(116,172,223,.35);
  box-shadow: 0 10px 26px rgba(27,95,153,.08);
}
.panel + .panel { margin-top: 12px; }
.form-row { margin-bottom: 14px; }
.form-row label { display: block; margin-bottom: 6px; color: var(--muted); font-size: .9rem; }
.form-row input, .form-row textarea, .form-row select,
input[type="text"], input[type="number"], input[type="tel"], input[type="password"], textarea, select {
  width: 100%;
  max-width: 100%;
  border: 1px solid rgba(116,172,223,.55);
  border-radius: 12px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 16px; /* prevents iOS zoom */
  background: #fff;
  -webkit-appearance: none;
  appearance: none;
}
.checkbox-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
  font-size: .95rem;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 12px 0;
  border-radius: 12px;
  border: 1px solid rgba(116,172,223,.35);
}
.spec-table {
  width: 100%;
  min-width: 320px;
  border-collapse: collapse;
  margin: 0;
  background: #fff;
}
.spec-table th, .spec-table td {
  border: 1px solid rgba(116,172,223,.35);
  padding: 10px 12px;
  text-align: right;
  font-size: .9rem;
  vertical-align: top;
}
.spec-table th {
  background: var(--ar-sky);
  color: var(--ar-blue-dark);
  width: 38%;
  white-space: nowrap;
}

.map-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  background: rgba(255,255,255,.92);
  color: var(--ar-blue-dark);
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: var(--shadow);
  min-height: 44px;
}
.footer-mini {
  text-align: center;
  padding: 20px 12px 28px;
  color: var(--muted);
  font-size: .85rem;
}

.auth-wrap {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 16px;
  background: transparent;
}
body.page-login {
  background: url('../Uploads/login-bg.jpg') center center / cover no-repeat fixed;
}
body.page-login .auth-wrap {
  background:
    linear-gradient(180deg, rgba(15,42,61,.28), rgba(15,42,61,.45));
}
.auth-box {
  width: min(420px, 100%);
  background: rgba(255,255,255,.96);
  border-radius: 22px;
  padding: 22px 16px;
  box-shadow: var(--shadow);
}
.auth-box h1 {
  margin: 0 0 8px;
  text-align: center;
  color: var(--ar-blue-dark);
  font-size: clamp(1.35rem, 5vw, 1.7rem);
}
.auth-box p { text-align: center; color: var(--muted); margin-top: 0; line-height: 1.7; }
.auth-box .phone-pill { max-width: none; margin: 0 auto; }
.msg { margin-top: 12px; color: var(--danger); text-align: center; display: block; }
.msg.ok { color: var(--ok); }

.lake-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.lake-tile {
  min-height: 160px;
  border-radius: 20px;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff !important;
  font-size: clamp(1.3rem, 5vw, 1.6rem);
  font-weight: 800;
  background: linear-gradient(145deg, rgba(116,172,223,.95), rgba(27,95,153,.95));
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform .25s ease;
  padding: 20px 12px;
  text-decoration: none !important;
  line-height: 1.5;
  border: 0;
  width: 100%;
}
.lake-tile:active { transform: scale(.98); }

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}
.gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
}
.video-wrap {
  position: relative;
  padding-top: 56.25%;
  margin: 14px 0;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
}
.video-wrap iframe, .video-wrap video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs a, .tabs span, .tabs .aspNet-HyperLink {
  flex: 0 0 auto;
  padding: 10px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(116,172,223,.45);
  color: var(--ar-blue-dark);
  font-size: .88rem;
  font-weight: 600;
  white-space: nowrap;
}
.tabs .active {
  background: var(--ar-blue);
  color: #fff !important;
  border-color: transparent;
}

.actions-sticky {
  position: sticky;
  bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + 8px);
  z-index: 40;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  margin: 16px -4px 0;
  background: rgba(255,255,255,.95);
  border: 1px solid rgba(116,172,223,.35);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(27,95,153,.12);
}
.actions-sticky .btn { flex: 1 1 140px; }

/* ========== Desktop / tablet ========== */
@media (min-width: 640px) {
  .choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .lake-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lake-tile { min-height: 200px; }
  .grid-cards { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
  .gallery { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
  .panel { padding: 22px; border-radius: 20px; }
  .page { margin: 24px auto 48px; padding: 0 16px; width: min(1100px, 94vw); }
}

@media (min-width: 900px) {
  body.has-bottom-nav { padding-bottom: 28px; }
  .bottom-nav { display: none; }
  .nav-toggle { display: none; }
  .nav-backdrop { display: none !important; }
  .topbar {
    padding: 10px 20px;
    gap: 16px;
  }
  .topbar-actions { order: 3; margin-right: 0; margin-left: 0; }
  .phone-pill { max-width: none; font-size: .9rem; }
  .nav-links {
    display: flex !important;
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 14px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    max-height: none;
    overflow: visible;
    order: 2;
    flex: 1;
    justify-content: center;
  }
  .nav-links a {
    padding: 6px 4px;
    border: 0;
    font-size: .92rem;
    border-radius: 0;
  }
  .nav-links a:hover { color: var(--ar-blue-deep); }
  .nav-links a:active { background: transparent; }
  .hero-card { padding: 28px 18px 36px; }
  .choice { padding: 28px 18px; }
  .choice:hover:not(.choice-photo) {
    transform: translateY(-6px) scale(1.02);
    background: rgba(255,255,255,.28);
  }
  .card-item:hover { transform: translateY(-4px); }
  .lake-tile:hover { transform: scale(1.03); }
  .actions-sticky {
    position: static;
    margin: 16px 0 0;
    box-shadow: none;
    background: transparent;
    border: 0;
    padding: 0;
  }
  .grid-cards { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}

@media (max-width: 380px) {
  .phone-pill { display: none; }
  .brand { font-size: 1.05rem; }
  .grid-cards { gap: 8px; }
  .card-item .body { padding: 8px; }
  .card-item h3 { font-size: .88rem; }
}


/* ===== Fancy blue nav (primary) + sparse solid green accents ===== */
.brand-text { font-weight: 800; letter-spacing: .2px; color: var(--ar-blue-dark); }
.brand-mark {
  background: linear-gradient(160deg, #fff 0 33%, var(--ar-blue) 33% 66%, #fff 66%);
  border: 2px solid var(--ar-blue-deep);
}
.topbar-fancy {
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid rgba(116,172,223,.35);
  box-shadow: 0 8px 28px rgba(27,95,153,.08);
}
.phone-pill { background: var(--ar-blue); }
.btn-primary {
  background: linear-gradient(135deg, var(--ar-blue), var(--ar-blue-deep));
  box-shadow: 0 10px 24px rgba(51, 136, 200, .35);
}
.btn-outline {
  border-color: rgba(116,172,223,.7);
  color: var(--ar-blue-dark);
}
.price-new { color: var(--ar-blue-deep); }
.nav-links a.nav-cta {
  background: var(--ar-blue-deep);
  color: #fff !important;
  border: 0 !important;
  border-radius: 999px !important;
  padding: 8px 14px !important;
}
.bottom-nav a.active, .bottom-nav a:active { color: var(--ar-blue-deep); }
.tabs .active { background: var(--ar-blue); color: #fff !important; }

/* فقط چند نقطه سبز خالص (بدون ترکیب با آبی) */
.msg.ok { color: var(--rolex); }
.ticket-note.ok { color: var(--rolex); font-weight: 700; }
.sum-row.accent strong { color: var(--rolex); }
.wallet-toggle {
  background: var(--rolex-light);
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(0,96,57,.22);
}
.map-chip { border: 1px solid rgba(0,96,57,.25); }
.choice-overlay-green {
  background: linear-gradient(180deg, rgba(0,96,57,.25), rgba(0,96,57,.8));
}

@media (min-width: 900px) {
  .topbar-fancy .nav-links {
    background: rgba(255,255,255,.7);
    border: 1px solid rgba(116,172,223,.35);
    border-radius: 999px;
    padding: 6px 10px !important;
    box-shadow: 0 8px 24px rgba(27,95,153,.08);
    gap: 2px 4px;
  }
  .topbar-fancy .nav-links a {
    padding: 8px 12px !important;
    border-radius: 999px !important;
    font-size: .88rem;
    transition: background .2s ease, color .2s ease;
  }
  .topbar-fancy .nav-links a:hover {
    background: var(--ar-sky);
    color: var(--ar-blue-deep);
  }
}

/* XL photo choices on home */
.choice-grid-xl { gap: 16px; }
.choice-photo {
  position: relative;
  min-height: 160px;
  padding: 0 !important;
  overflow: hidden;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  border: 2px solid rgba(255,255,255,.55);
  transition:
    border-color .35s ease,
    box-shadow .4s ease,
    filter .4s ease;
}
.choice-overlay {
  position: absolute; inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(15,42,61,.15), rgba(27,95,153,.72));
  transition: background .4s ease, opacity .4s ease;
}
.choice-content {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 140px; padding: 14px 14px; text-align: right; color: #fff;
  transition: transform .4s cubic-bezier(.22,.61,.36,1);
}
.choice-content strong {
  font-size: clamp(1.25rem, 4.5vw, 1.7rem);
  margin-bottom: 4px;
  text-shadow: 0 4px 16px rgba(0,0,0,.35);
  transition: letter-spacing .35s ease;
}
.choice-content span { opacity: .95; font-size: .85rem; }
@media (hover: hover) and (min-width: 900px) {
  .choice-photo:hover {
    border-color: rgba(255,255,255,.95);
    box-shadow: 0 16px 42px rgba(8,30,48,.4);
    filter: brightness(1.08);
    transform: none;
  }
  .choice-photo:hover .choice-overlay {
    background: linear-gradient(180deg, rgba(15,42,61,.05), rgba(27,95,153,.5));
  }
  .choice-photo:hover .choice-overlay-green {
    background: linear-gradient(180deg, rgba(15,42,61,.05), rgba(0,96,57,.48));
  }
  .choice-photo:hover .choice-content {
    transform: translateY(-6px);
  }
  .choice-photo:hover .choice-content strong {
    letter-spacing: .8px;
  }
}

/* Home: single screen, no scroll */
html:has(body.page-home) {
  height: 100%;
  overflow: hidden;
}
body.page-home {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  padding-bottom: 0 !important;
  display: flex;
  flex-direction: column;
}
body.page-home form#form1 {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}
body.page-home .topbar {
  flex-shrink: 0;
}
body.page-home .hero-home {
  flex: 1;
  min-height: 0;
  height: auto;
  display: flex;
  align-items: stretch;
  justify-content: center;
  overflow: hidden;
  padding: 8px 10px calc(var(--bottom-nav-h) + 28px);
}
@media (min-width: 900px) {
  body.page-home .hero-home {
    padding-bottom: 32px;
  }
}
body.page-home .hero-card {
  width: min(920px, 100%);
  max-height: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 4px 4px 8px;
  box-sizing: border-box;
}
body.page-home .hero-card h1 {
  font-size: clamp(1.45rem, 5.5vw, 2.35rem);
  margin: 0;
  flex-shrink: 0;
}
body.page-home .hero-card > p {
  margin: 0 auto;
  font-size: clamp(.78rem, 2.6vw, .95rem);
  line-height: 1.45;
  max-width: 480px;
  flex-shrink: 0;
}
body.page-home .choice-grid-xl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  flex: 1 1 auto;
  min-height: 0;
  max-height: 38vh;
  margin: 4px 0;
}
body.page-home .choice-photo {
  min-height: 0 !important;
  height: 100%;
  max-height: 38vh;
  display: flex !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  background-position: center !important;
}
body.page-home .choice-content {
  min-height: 0 !important;
  flex: 1;
  height: 100%;
  padding: 10px 12px;
  justify-content: flex-end;
}
body.page-home .choice-content strong {
  font-size: clamp(1rem, 3.8vw, 1.45rem);
  margin-bottom: 2px;
}
body.page-home .choice-content span {
  font-size: clamp(.68rem, 2.4vw, .85rem);
  line-height: 1.35;
}
body.page-home .map-chip {
  flex-shrink: 0;
  margin: 4px auto 0;
  padding: 8px 14px;
  font-size: .82rem;
}
body.page-home .footer-mini {
  display: none;
}
@media (min-width: 900px) {
  body.page-home .choice-grid-xl {
    gap: 14px;
  }
}

/* OTP boxes */
.otp-boxes {
  display: flex; gap: 10px; justify-content: center; margin: 8px 0 4px;
}
.otp-box {
  width: 56px !important; height: 56px; text-align: center;
  font-size: 1.4rem !important; font-weight: 800;
  border: 2px solid rgba(116,172,223,.65) !important;
  border-radius: 14px !important; padding: 0 !important;
}
.otp-box:focus {
  border-color: var(--ar-blue-deep) !important;
  outline: none;
  box-shadow: 0 0 0 3px rgba(51,136,200,.18);
}
.ltr-input { direction: ltr; text-align: left; }
.fa-digits { font-variant-numeric: normal; }

/* Bag / cart invoice */
.bag-invoice {
  background: #fff; border-radius: 22px; overflow: hidden;
  border: 1px solid rgba(116,172,223,.35);
  box-shadow: 0 16px 40px rgba(27,95,153,.1);
}
.bag-header {
  display: flex; gap: 14px; align-items: center;
  padding: 18px; background: var(--ar-sky);
  border-bottom: 1px dashed rgba(116,172,223,.45);
}
.bag-header h2 { margin: 0 0 4px; color: var(--ar-blue-dark); font-size: 1.2rem; }
.bag-header p { margin: 0; color: var(--muted); font-size: .9rem; }
.bag-icon {
  width: 52px; height: 52px; border-radius: 16px;
  display: grid; place-items: center; font-size: 1.5rem;
  background: #fff; box-shadow: 0 8px 20px rgba(27,95,153,.12);
}
.bag-items { padding: 8px 14px; }
.bag-item {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 10px;
  align-items: center; padding: 12px 0;
  border-bottom: 1px solid rgba(116,172,223,.25);
}
.bag-item img { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; }
.bag-item-body strong { display: block; margin-bottom: 4px; color: var(--ar-blue-dark); }
.bag-item-body { font-size: .88rem; color: var(--muted); }
.bag-item-total { font-weight: 800; color: var(--ar-blue-deep); white-space: nowrap; }
.bag-summary { padding: 14px 18px 18px; background: #fbfefe; }
.sum-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; color: var(--ink);
}
.sum-row.pay {
  margin-top: 6px; padding-top: 12px;
  border-top: 2px solid rgba(116,172,223,.35);
  font-size: 1.05rem;
}
.sum-row.pay strong { color: var(--ar-blue-dark); font-size: 1.15rem; }
.bag-invoice .btn { margin: 0 18px 18px; width: calc(100% - 36px); }

/* Ticket style */
.ticket {
  position: relative; max-width: 480px; margin: 0 auto;
  background: #fff; border-radius: 18px; overflow: hidden;
  box-shadow: 0 18px 44px rgba(27,95,153,.14);
  border: 1px solid rgba(116,172,223,.35);
}
.ticket-stub {
  background: linear-gradient(135deg, var(--ar-blue), var(--ar-blue-dark));
  color: #fff; padding: 20px 18px; text-align: center;
}
.ticket-brand { font-size: 1.5rem; font-weight: 800; letter-spacing: 1px; }
.ticket-type { opacity: .9; margin-top: 4px; }
.ticket-body { padding: 18px; }
.ticket-row {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 10px 0; border-bottom: 1px dashed rgba(116,172,223,.45);
}
.ticket-row span { color: var(--muted); }
.ticket-row.pay strong { color: var(--ar-blue-dark); font-size: 1.15rem; }
.ticket-note { margin: 14px 0; color: var(--muted); line-height: 1.7; font-size: .92rem; }
.ticket-perforation {
  height: 18px;
  background:
    radial-gradient(circle at 10px 0, transparent 8px, #E8F4FC 9px) left top / 20px 18px repeat-x;
}

.lake-tile {
  background: linear-gradient(145deg, rgba(116,172,223,.95), rgba(27,95,153,.95));
}
.lake-tile-b:not(.lake-tile-photo) {
  background: linear-gradient(145deg, #74ACDF, #0F2A3D);
}
.lake-tile-photo {
  position: relative;
  background-color: #1B5F99;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  overflow: hidden;
  isolation: isolate;
}
.lake-tile-b.lake-tile-photo {
  background-color: #0F2A3D;
}
.lake-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(145deg, rgba(27,95,153,.72), rgba(15,42,61,.78));
  pointer-events: none;
}
.lake-overlay-b {
  background: linear-gradient(145deg, rgba(15,42,61,.7), rgba(0,96,57,.55));
}
.lake-tile-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.lake-label { display: block; }
.lake-price { display: block; font-size: .95rem; font-weight: 600; opacity: .95; margin-top: 6px; }

.sample-grid { display: grid; gap: 18px; }
@media (min-width: 900px) {
  .sample-grid { grid-template-columns: 1fr 1fr; align-items: start; }
}
.sample-card { margin: 0; }

/* Cart button in header */
.cart-btn {
  position: relative;
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: var(--ar-sky);
  border: 1px solid rgba(116,172,223,.55);
  color: var(--ar-blue-dark);
  flex-shrink: 0;
}
.cart-badge {
  position: absolute; top: 2px; left: 2px;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px;
  background: var(--rolex);
  color: #fff; font-size: .7rem; font-weight: 800;
  display: grid; place-items: center;
  line-height: 1;
}
@media (max-width: 899px) {
  .topbar-actions {
    order: 2;
    margin-right: 0;
    margin-left: auto;
  }
  .cart-btn {
    order: 0;
    width: 46px; height: 46px;
    background: #fff;
    border: 2px solid var(--ar-blue);
    box-shadow: 0 2px 8px rgba(27,95,153,.15);
  }
  .phone-pill { font-size: .72rem; padding: 6px 8px; }
  .nav-toggle { order: 2; }
}

/* Qty +/- */
.qty-control {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ar-sky);
  border: 1px solid rgba(116,172,223,.45);
  border-radius: 14px;
  padding: 4px;
}
.qty-btn {
  width: 40px; height: 40px; min-height: 40px; padding: 0 !important;
  border-radius: 10px !important;
  background: #fff;
  border: 1px solid rgba(116,172,223,.5);
  color: var(--ar-blue-dark);
  font-size: 1.25rem; font-weight: 800;
  display: inline-flex !important; align-items: center; justify-content: center;
  text-decoration: none !important;
  box-shadow: none !important;
}
.qty-btn:hover { background: var(--ar-blue); color: #fff; }
.qty-input {
  width: 56px !important; text-align: center; border: 0 !important;
  background: transparent !important; font-weight: 800; font-size: 1.1rem !important;
  padding: 0 !important;
}
.qty-label {
  min-width: 36px; text-align: center; font-weight: 800; font-size: 1.1rem;
  color: var(--ar-blue-dark);
}
.qty-mini { padding: 2px; }
.qty-mini .qty-btn { width: 32px; height: 32px; min-height: 32px; font-size: 1rem; }
.cart-remove {
  display: inline-block; margin-top: 8px; color: var(--danger);
  font-size: .85rem; font-weight: 700;
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(15,42,61,.88);
  display: none; align-items: center; justify-content: center;
  padding: 20px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(96vw, 900px);
  max-height: 88vh;
  border-radius: 12px;
  object-fit: contain;
}
.lightbox-close {
  position: absolute; top: 14px; left: 14px;
  width: 44px; height: 44px; min-height: 44px; padding: 0;
  border-radius: 50%; background: #fff; color: var(--ink);
  font-size: 1.6rem; line-height: 1;
}

/* Bottom nav active background */
.bottom-nav a.active {
  color: #fff !important;
  background: var(--ar-blue-deep);
  border-radius: 14px;
  margin: 6px 4px;
  min-height: calc(var(--bottom-nav-h) - 12px);
}
.bottom-nav a.active svg { stroke: #fff; }

/* Site footer Iran Appco — end of page content (not fixed) */
.site-footer {
  position: relative;
  text-align: center;
  margin: 8px 0 4px;
  padding: 10px 12px 14px;
  background: transparent;
  font-size: .72rem;
  line-height: 1.3;
}
body.has-bottom-nav .site-footer {
  margin-bottom: 8px;
}
.site-footer a {
  color: rgba(90, 115, 133, .55);
  font-weight: 500;
  border-bottom: none;
  letter-spacing: .2px;
}
.site-footer a:hover { color: rgba(51, 136, 200, .75); }

/* hide number spinners / money input */
.money-input,
input.money-input {
  -moz-appearance: textfield;
  appearance: textfield;
  direction: ltr;
  text-align: left;
  font-weight: 700;
  letter-spacing: .3px;
}
.money-input::-webkit-outer-spin-button,
.money-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.final-price-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0 4px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--ar-sky);
  border: 1px solid rgba(116,172,223,.45);
}
.final-price-box span { color: var(--muted); font-weight: 600; }
.final-price-box strong {
  color: var(--ar-blue-dark);
  font-size: 1.15rem;
}

.msg.toast-msg {
  opacity: 0;
  transform: translateY(8px);
  transition: .35s ease;
  pointer-events: none;
  min-height: 1.2em;
}
.msg.toast-msg.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.msg.toast-msg:empty,
.msg.toast-msg:not(.show) {
  margin: 0;
  min-height: 0;
}

.history-row.is-collapsed { display: none; }

.lake-features {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  width: 100%;
  max-width: 280px;
  text-align: right;
  font-size: .68rem;
  font-weight: 500;
  line-height: 1.55;
  opacity: .92;
}
.lake-features li {
  position: relative;
  padding-right: 12px;
  margin: 1px 0;
}
.lake-features li::before {
  content: "";
  position: absolute;
  right: 0;
  top: .55em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
}
.lake-tile {
  align-items: flex-start !important;
  text-align: right !important;
  min-height: 200px;
  padding: 18px 16px !important;
  font-size: 1rem;
}
.lake-label {
  width: 100%;
  font-size: 1.15rem;
  font-weight: 800;
}
.lake-price {
  width: 100%;
  font-size: .85rem;
  font-weight: 600;
}

/* Header: logo image, active pill, profile icon */
.brand-mark,
.topbar-fancy .brand-mark {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: #fff;
  color: var(--ar-blue-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(18,59,92,.12);
}
.brand-mark img,
.brand-mark svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand-text { font-size: 1.25rem; font-weight: 900; letter-spacing: -.3px; }
.nav-links a.active { color: var(--ar-blue-deep); font-weight: 800; }
@media (min-width: 900px) {
  .topbar-fancy .nav-links a.active {
    background: var(--ar-sky);
    color: var(--ar-blue-dark);
    box-shadow: inset 0 0 0 1px rgba(116,172,223,.55);
  }
}
@media (max-width: 899px) {
  .user-btn { display: none !important; }
}