html, body {
    font-family: 'Vazirmatn', Helvetica, Arial, sans-serif;
}

@font-face {
    font-family: Vazirmatn;
    src: url('../fonts/Vazirmatn-Regular.eot');
    src: url('../fonts/Vazirmatn-Regular.eot?#iefix') format('embedded-opentype'), url('../fonts/Vazirmatn-Regular.woff2') format('woff2'), url('../fonts/Vazirmatn-Regular.woff') format('woff'), url('../fonts/Vazirmatn-Regular.ttf') format('truetype');
    font-weight: normal;
    font-display: swap;
}

@font-face {
    font-family: Vazir;
    src: url('../fonts/Vazirmatn-Bold.eot');
    src: url('../fonts/Vazirmatn-Bold.eot?#iefix') format('embedded-opentype'), url('../fonts/Vazirmatn-Bold.woff2') format('woff2'), url('../fonts/Vazirmatn-Bold.woff') format('woff'), url('../fonts/Vazirmatn-Bold.ttf') format('truetype');
    font-weight: bold;
    font-display: swap;
}

@font-face {
    font-family: Vazir;
    src: url('../fonts/Vazirmatn-Thin.eot');
    src: url('../fonts/Vazirmatn-Thin.eot?#iefix') format('embedded-opentype'), url('../fonts/Vazirmatn-Thin.woff2') format('woff2'), url('../fonts/Vazirmatn-Thin.woff') format('woff'), url('../fonts/Vazirmatn-Thin.ttf') format('truetype');
    font-weight: 100;
    font-display: swap;
}

@font-face {
    font-family: Vazir;
    src: url('../fonts/Vazirmatn-Light.eot');
    src: url('../fonts/Vazirmatn-Light.eot?#iefix') format('embedded-opentype'), url('../fonts/Vazirmatn-Light.woff2') format('woff2'), url('../fonts/Vazirmatn-Light.woff') format('woff'), url('../fonts/Vazirmatn-Light.ttf') format('truetype');
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: Vazir;
    src: url('../fonts/Vazirmatn-Medium.eot');
    src: url('../fonts/Vazirmatn-Medium.eot?#iefix') format('embedded-opentype'), url('../fonts/Vazirmatn-Medium.woff2') format('woff2'), url('../fonts/Vazirmatn-Medium.woff') format('woff'), url('../fonts/Vazirmatn-Medium.ttf') format('truetype');
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: Vazir;
    src: url('../fonts/Vazirmatn-Black.eot');
    src: url('../fonts/Vazirmatn-Black.eot?#iefix') format('embedded-opentype'), url('../fonts/Vazirmatn-Black.woff2') format('woff2'), url('../fonts/Vazirmatn-Black.woff') format('woff'), url('../fonts/Vazirmatn-Black.ttf') format('truetype');
    font-weight: 900;
    font-display: swap;
}

    *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

    :root {
      --brand: #009DAE;
      --brand-light: #41CFE0;
      --brand-dark: #00707E;
      --bg-dark: #080f14;
      --bg-dark-rgb: 8,15,20;
      --bg-card: #101c24;
      --bg-section: #0b141b;
      --bg-footer: #07070d;
      --text-light: #eaf3f6;
      --text-muted: #8ea7b2;

      /* متن و سطح‌های نیمه‌شفاف؛ در حالت روشن وارونه می‌شوند */
      --text-soft: rgba(234,243,246,.62);
      --text-faint: rgba(234,243,246,.34);
      --surface-1: rgba(255,255,255,.03);
      --surface-2: rgba(255,255,255,.08);
      --on-brand: #080f14;
      --mobile-nav-bg: rgba(12,12,18,.98);
      --backdrop: rgba(4,4,8,.65);

      --panel-bg: rgba(18,18,26,.85);
      --panel-solid: rgba(18,18,26,.98);
      --panel-shadow: rgba(0,0,0,.5);
      --danger-bg: rgba(20,6,8,.82);

      --success-text: #7ee495;
      --danger-text: #ff9ca3;
      --warn-text: #ffd98a;
      --info-text: #6ab0ff;
      --accent-purple: #cbb4ff;

      /* ---- توکن‌های چیدمان (در موبایل بازنویسی می‌شوند) ---- */
      --nav-h: 68px;
      --section-pad: 100px;
      --container-pad: 24px;
      --container-max: 1200px;
    }


    /* ===== حالت روشن ===== */
    :root[data-theme="light"] {
      --brand: #00808f;
      --brand-light: #0a6d7a;
      --brand-dark: #00606c;

      --bg-dark: #f3f6f8;
      --bg-dark-rgb: 243,246,248;
      --bg-card: #ffffff;
      --bg-section: #e9eff2;
      --bg-footer: #e3eaee;
      --text-light: #12212a;
      --text-muted: #5b6b74;

      --text-soft: rgba(18,33,42,.72);
      --text-faint: rgba(18,33,42,.45);
      --surface-1: rgba(12,30,40,.035);
      --surface-2: rgba(12,30,40,.07);
      --on-brand: #ffffff;
      --mobile-nav-bg: rgba(255,255,255,.98);
      --backdrop: rgba(12,28,36,.45);

      --panel-bg: rgba(255,255,255,.92);
      --panel-solid: rgba(255,255,255,.98);
      --panel-shadow: rgba(12,28,36,.12);
      --danger-bg: rgba(220,53,69,.12);

      --success-text: #1c7c46;
      --danger-text: #b3252f;
      --warn-text: #8a5a00;
      --info-text: #1b62c7;
      --accent-purple: #6a4fb3;
    }

    /* اگر کاربر تم را دستی انتخاب نکرده باشد، ترجیح سیستم اعمال می‌شود. */
    @media (prefers-color-scheme: light) {
      :root:not([data-theme="dark"]) {
        --brand: #00808f;
        --brand-light: #0a6d7a;
        --brand-dark: #00606c;

        --bg-dark: #f3f6f8;
        --bg-dark-rgb: 243,246,248;
        --bg-card: #ffffff;
        --bg-section: #e9eff2;
        --bg-footer: #e3eaee;
        --text-light: #12212a;
        --text-muted: #5b6b74;

        --text-soft: rgba(18,33,42,.72);
        --text-faint: rgba(18,33,42,.45);
        --surface-1: rgba(12,30,40,.035);
        --surface-2: rgba(12,30,40,.07);
        --on-brand: #ffffff;
        --mobile-nav-bg: rgba(255,255,255,.98);
        --backdrop: rgba(12,28,36,.45);

        --panel-bg: rgba(255,255,255,.92);
        --panel-solid: rgba(255,255,255,.98);
        --panel-shadow: rgba(12,28,36,.12);
        --danger-bg: rgba(220,53,69,.12);

        --success-text: #1c7c46;
        --danger-text: #b3252f;
        --warn-text: #8a5a00;
        --info-text: #1b62c7;
        --accent-purple: #6a4fb3;
      }
    }

    html {
      scroll-behavior: smooth;
      -webkit-text-size-adjust: 100%;
      text-size-adjust: 100%;
    }

    body {
      background: var(--bg-dark);
      color: var(--text-light);
      overflow-x: hidden;
      -webkit-tap-highlight-color: rgba(0,157,174,0.15);
    }

    /* لینک پرش به محتوا (دسترس‌پذیری) */
    .skip-link {
      position: absolute;
      right: -9999px;
      top: 0;
      z-index: 2000;
      padding: 12px 20px;
      background: var(--brand);
      color: var(--on-brand);
      font-weight: 700;
      border-radius: 0 0 12px 0;
      text-decoration: none;
    }
    .skip-link:focus { right: 0; }

    /* svg مخصوص تعریف گرادیان‌ها — نباید فضایی بگیرد */
    .svg-defs {
      position: absolute;
      width: 0; height: 0;
      overflow: hidden;
    }

    img, svg { max-width: 100%; }

    /* ========== PARTICLES ========== */
    #particles {
      position: fixed;
      top: 0; left: 0;
      width: 100%; height: 100%;
      pointer-events: none;
      z-index: -1;
      overflow: hidden;
    }
    .particle {
      position: absolute;
      border-radius: 50%;
      background: var(--brand);
      opacity: 0;
      animation: floatParticle linear infinite;
    }
    @keyframes floatParticle {
      0%   { transform: translateY(100vh) scale(0); opacity: 0; }
      10%  { opacity: 0.6; }
      90%  { opacity: 0.2; }
      100% { transform: translateY(-10vh) scale(1); opacity: 0; }
    }

    /* ========== NAVBAR ========== */
    nav {
      position: fixed;
      top: 0; width: 100%;
      z-index: 1000;
      padding: 16px 40px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      background: rgba(var(--bg-dark-rgb), 0.85);
      backdrop-filter: blur(16px);
      border-bottom: 1px solid rgba(0,157,174,0.2);
      transition: all 0.3s;
    }
    nav.scrolled {
      padding: 10px 40px;
      background: rgba(var(--bg-dark-rgb), 0.97);
    }
    .nav-logo {
      display: flex;
      align-items: center;
      gap: 10px;
      text-decoration: none;
    }
    /* نشان برند — همان لوگوی تابلوی کافه */
    .brand-mark {
      display: block;
      width: auto;
      height: 30px;
      flex-shrink: 0;
    }
    .nav-logo .brand-mark {
      transition: transform 0.3s ease;
    }
    .nav-logo:hover .brand-mark { transform: scale(1.06); }

    .nav-logo span {
      font-size: 1.3rem;
      font-weight: 700;
      background: linear-gradient(135deg, var(--brand-light), var(--brand));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }
.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    list-style: none;
}
    .nav-links a {
      color: var(--text-muted);
      text-decoration: none;
      font-size: 0.95rem;
      font-weight: 500;
      transition: color 0.3s;
      position: relative;
    }
    .nav-links a::after {
      content: '';
      position: absolute;
      bottom: -4px; right: 0;
      width: 0; height: 2px;
      background: var(--brand);
      transition: width 0.3s;
    }
    .nav-links a:hover { color: var(--brand-light); }
    .nav-links a:hover::after { width: 100%; }

    /* ========== HERO ========== */
    #hero {
      position: relative;
      min-height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      padding: 120px 20px 60px;
      overflow: hidden;
    }
    /* پس‌زمینه‌ی هیرو: عکس تابلوی کافه، محو شده زیر لایه‌ی تیره و مه‌ی فیروزه‌ای
       — عکس فقط باید بافت و حس فضا بدهد، نه اینکه با لوگو رقابت کند */
    .hero-bg {
      position: absolute;
      inset: 0;
      overflow: hidden;
      background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-section) 100%);
    }
    .hero-bg::before {
      content: '';
      position: absolute;
      inset: -24px;
      background: url('../images/brand/storefront-sign.jpg') center 42% / cover no-repeat;
      filter: blur(4px) saturate(0.8);
      opacity: 0.5;
    }
    .hero-bg::after {
      content: '';
      position: absolute;
      inset: 0;
      background:
        radial-gradient(ellipse 80% 60% at 50% 30%, rgba(0,157,174,0.16) 0%, transparent 70%),
        radial-gradient(ellipse 40% 40% at 20% 80%, rgba(0,157,174,0.08) 0%, transparent 60%),
        linear-gradient(180deg, rgba(var(--bg-dark-rgb), 0.72) 0%, rgba(var(--bg-dark-rgb), 0.80) 45%, var(--bg-section) 100%);
    }
    .hero-mark {
      width: clamp(200px, 46vw, 420px);
      height: auto;
      margin: 0 auto 24px;
      display: block;
      position: relative;
      z-index: 1;
      animation: markGlow 4s ease-in-out infinite;
    }
    @keyframes markGlow {
      0%,100% { filter: drop-shadow(0 0 18px rgba(0,157,174,0.45)); }
      50%      { filter: drop-shadow(0 0 44px rgba(0,157,174,0.85)); }
    }
    @media (prefers-reduced-motion: reduce) {
      .hero-mark { animation: none; filter: drop-shadow(0 0 22px rgba(0,157,174,0.5)); }
    }
    /* روی نمایشگرهای کم‌ارتفاع، نشان کوچک‌تر می‌شود تا محتوای هیرو
       با نشانگر اسکرولِ پایین صفحه تداخل نکند */
    @media (min-width: 769px) and (max-height: 820px) {
      .hero-mark {
        width: clamp(180px, 30vw, 300px);
        margin-bottom: 16px;
      }
    }
    .hero-content { position: relative; z-index: 1; }
    .hero-badge {
      display: inline-block;
      padding: 6px 20px;
      border: 1px solid rgba(0,157,174,0.4);
      border-radius: 50px;
      font-size: 0.85rem;
      color: var(--brand);
      margin-bottom: 20px;
      letter-spacing: 2px;
      animation: fadeInDown 0.8s ease both;
    }
    .hero-title {
      font-size: clamp(2.5rem, 7vw, 5rem);
      font-weight: 900;
      line-height: 1.2;
      margin-bottom: 16px;
      animation: fadeInUp 0.9s ease both 0.2s;
    }
    .hero-title .brand-text {
      background: linear-gradient(135deg, var(--brand-light), var(--brand), var(--brand-dark));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }
    .hero-subtitle {
      font-size: clamp(1rem, 2.5vw, 1.3rem);
      color: var(--text-muted);
      margin-bottom: 40px;
      font-weight: 300;
      animation: fadeInUp 1s ease both 0.4s;
    }
    .hero-buttons {
      display: flex;
      gap: 16px;
      justify-content: center;
      flex-wrap: wrap;
      animation: fadeInUp 1s ease both 0.6s;
    }
    .btn-primary {
      padding: 14px 36px;
      background: linear-gradient(135deg, var(--brand), var(--brand-dark));
      color: var(--on-brand);
      border: none;
      border-radius: 50px;
      font-size: 1rem;
      font-weight: 700;
      cursor: pointer;
      text-decoration: none;
      transition: all 0.3s;
      box-shadow: 0 4px 20px rgba(0,157,174,0.3);
    }
    .btn-primary:hover {
      transform: translateY(-3px);
      box-shadow: 0 8px 30px rgba(0,157,174,0.5);
    }
    .btn-outline {
      padding: 14px 36px;
      background: transparent;
      color: var(--brand);
      border: 1.5px solid var(--brand);
      border-radius: 50px;
      font-size: 1rem;
      font-weight: 600;
      cursor: pointer;
      text-decoration: none;
      transition: all 0.3s;
    }
    .btn-outline:hover {
      background: rgba(0,157,174,0.1);
      transform: translateY(-3px);
    }
    .scroll-indicator {
      position: absolute;
      bottom: 30px;
      left: 50%;
      transform: translateX(-50%);
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 6px;
      color: var(--text-muted);
      font-size: 0.8rem;
      animation: bounce 2s infinite;
      z-index: 1;
    }
    .scroll-indicator .arrow { font-size: 1.2rem; }
    @keyframes bounce {
      0%,100% { transform: translateX(-50%) translateY(0); }
      50%      { transform: translateX(-50%) translateY(8px); }
    }

    /* ========== SECTION COMMON ========== */
    section { position: relative; z-index: 1; }
    .section-header {
      text-align: center;
      margin-bottom: 60px;
    }
    .section-tag {
      display: inline-block;
      padding: 4px 16px;
      background: rgba(0,157,174,0.1);
      border: 1px solid rgba(0,157,174,0.3);
      border-radius: 50px;
      font-size: 0.8rem;
      color: var(--brand);
      margin-bottom: 14px;
      letter-spacing: 1px;
    }
    .section-title {
      font-size: clamp(1.8rem, 4vw, 2.8rem);
      font-weight: 800;
      background: linear-gradient(135deg, var(--text-light), var(--brand-light));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      margin-bottom: 12px;
    }
    .section-line {
      width: 60px;
      height: 3px;
      background: linear-gradient(90deg, var(--brand), transparent);
      margin: 0 auto;
      border-radius: 2px;
    }
    .container {
      max-width: var(--container-max);
      margin: 0 auto;
      padding: 0 var(--container-pad);
    }

    /* ========== ABOUT ========== */
    #about {
      padding: var(--section-pad) 0;
      background: var(--bg-section);
    }
    .about-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 60px;
      align-items: center;
    }
    .about-text p {
      color: var(--text-muted);
      line-height: 2;
      font-size: 1.05rem;
      margin-bottom: 20px;
    }
    .about-stats {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 20px;
      margin-top: 40px;
    }
    .stat-card {
      background: var(--bg-card);
      border: 1px solid rgba(0,157,174,0.15);
      border-radius: 16px;
      padding: 20px;
      text-align: center;
      transition: all 0.3s;
    }
    .stat-card:hover {
      border-color: var(--brand);
      transform: translateY(-4px);
      box-shadow: 0 8px 25px rgba(0,157,174,0.15);
    }
    .stat-number {
      font-size: 2rem;
      font-weight: 900;
      color: var(--brand);
      display: block;
    }
    .stat-label {
      font-size: 0.8rem;
      color: var(--text-muted);
      margin-top: 4px;
    }
    .about-image-box { position: relative; }
    /* قاب عکس ویترین کافه */
    .about-photo {
      width: 100%;
      aspect-ratio: 4/3;
      margin: 0;
      border-radius: 24px;
      border: 1px solid rgba(0,157,174,0.25);
      background: var(--bg-card);
      position: relative;
      overflow: hidden;
    }
    .about-photo img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center;
      display: block;
      transition: transform 0.6s ease;
    }
    .about-photo::after {
      content: '';
      position: absolute;
      inset: 0;
      pointer-events: none;
      background: linear-gradient(180deg, rgba(0,157,174,0.10) 0%, transparent 35%, rgba(var(--bg-dark-rgb), 0.85) 100%);
    }
    /* سمت چپ می‌نشیند تا با نشان شناور گوشه‌ی راست تداخل نکند */
    .about-photo figcaption {
      position: absolute;
      left: 20px;
      bottom: 18px;
      z-index: 1;
      color: var(--text-light);
      font-size: 0.9rem;
      font-weight: 500;
      text-shadow: 0 2px 8px rgba(0,0,0,0.6);
    }
    .floating-badge {
      position: absolute;
      bottom: -16px;
      right: -16px;
      background: linear-gradient(135deg, var(--brand), var(--brand-dark));
      color: var(--on-brand);
      border-radius: 16px;
      padding: 16px 20px;
      font-weight: 700;
      font-size: 0.9rem;
      box-shadow: 0 8px 25px rgba(0,157,174,0.4);
      z-index: 2;
    }

    /* ========== SOCIAL / CONTACT ========== */
    #links {
      padding: var(--section-pad) 0;
      background: var(--bg-dark);
    }
    .links-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 24px;
    }
    .link-card {
      background: var(--bg-card);
      border: 1px solid rgba(0,157,174,0.15);
      border-radius: 24px;
      padding: 36px 28px;
      text-align: center;
      text-decoration: none;
      color: inherit;
      transition: transform 0.35s cubic-bezier(0.175,0.885,0.32,1.275),
                  border-color 0.3s, box-shadow 0.3s;
      position: relative;
      overflow: hidden;
      display: block;
    }
    .link-card::before {
      content: '';
      position: absolute;
      inset: 0;
      opacity: 0;
      transition: opacity 0.4s;
      border-radius: inherit;
      pointer-events: none;
    }
    .link-card.instagram::before {
      background: linear-gradient(135deg, rgba(131,58,180,0.15), rgba(253,29,29,0.1), rgba(252,176,69,0.15));
    }
    .link-card.phone::before {
      background: linear-gradient(135deg, rgba(0,157,174,0.16), rgba(65,207,224,0.06));
    }
    .link-card-content { position: relative; z-index: 1; }

    /* ---- آیکون SVG (جایگزین تصویر PNG بزرگ) ---- */
    .link-icon-wrapper {
      width: 84px;
      height: 84px;
      margin: 0 auto 18px;
      border-radius: 24px;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: transform 0.35s ease;
    }
    .link-svg {
      width: 42px;
      height: 42px;
      display: block;
      flex-shrink: 0;
    }
    .instagram-icon-bg {
      background: linear-gradient(135deg, #ffdd55 0%, #ff543e 45%, #c837ab 75%, #3f5bd9 100%);
      color: #fff;
      box-shadow: 0 10px 30px rgba(200,55,171,0.28);
    }
    .phone-icon-bg {
      background: linear-gradient(135deg, var(--brand-light), var(--brand-dark));
      color: var(--on-brand);
      box-shadow: 0 10px 30px rgba(0,157,174,0.28);
    }

    .link-title {
      font-size: 1.3rem;
      font-weight: 700;
      margin-bottom: 8px;
      color: var(--text-light);
    }
    .link-desc {
      font-size: 0.9rem;
      color: var(--text-muted);
      line-height: 1.7;
      margin-bottom: 20px;
    }
    .link-btn {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 11px 26px;
      border-radius: 50px;
      font-size: 0.9rem;
      font-weight: 700;
      transition: transform 0.3s, box-shadow 0.3s;
      direction: ltr;
    }
    .link-btn-arrow { transform: rotate(180deg); }
    .instagram .link-btn {
      background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
      color: #fff;
    }
    .phone .link-btn {
      background: linear-gradient(135deg, var(--brand), var(--brand-dark));
      color: var(--on-brand);
    }

    /* ========== MAP ========== */
    #map-section {
      padding: var(--section-pad) 0;
      background: var(--bg-section);
    }
    .map-wrapper {
      position: relative;
      border-radius: 24px;
      overflow: hidden;
      border: 1px solid rgba(0,157,174,0.25);
      box-shadow: 0 20px 60px var(--panel-shadow);
    }
    #leaflet-map {
      width: 100%;
      height: 480px;
      display: block;
    }

    /* Leaflet dark override */
    .leaflet-tile { filter: brightness(0.75) saturate(0.6) hue-rotate(180deg) invert(1); }
    .leaflet-container { background: var(--bg-section); }
    .leaflet-control-attribution {
      background: rgba(var(--bg-dark-rgb), 0.85) !important;
      color: var(--text-muted) !important;
      font-size: 0.7rem !important;
    }
    .leaflet-control-attribution a { color: var(--brand) !important; }
    .leaflet-control-zoom a {
      background: var(--bg-card) !important;
      color: var(--brand) !important;
      border-color: rgba(0,157,174,0.3) !important;
    }
    .leaflet-control-zoom a:hover {
      background: rgba(0,157,174,0.15) !important;
    }

    /* Custom Marker Popup */
    .leaflet-popup-content-wrapper {
      background: var(--bg-card) !important;
      border: 1px solid rgba(0,157,174,0.4) !important;
      border-radius: 16px !important;
      box-shadow: 0 10px 40px var(--panel-shadow) !important;
      color: var(--text-light) !important;
    }
    .leaflet-popup-tip {
      background: var(--bg-card) !important;
    }
    .popup-inner { padding: 6px 4px; text-align: center; }
    .popup-inner .popup-title {
      font-size: 1rem;
      font-weight: 700;
      color: var(--brand);
      margin-bottom: 6px;
    }
    .popup-inner .popup-sub {
      font-size: 0.82rem;
      color: var(--text-muted);
      margin-bottom: 12px;
    }
    .popup-inner .popup-btns {
      display: flex;
      gap: 8px;
      justify-content: center;
      flex-wrap: wrap;
    }
    .popup-inner .popup-btn {
      padding: 6px 14px;
      border-radius: 50px;
      font-size: 0.78rem;
      font-weight: 600;
      text-decoration: none;
      transition: all 0.3s;
      display: inline-block;
    }
    .popup-btn.google-btn {
      background: rgba(66,133,244,0.15);
      border: 1px solid rgba(66,133,244,0.4);
      color: var(--info-text);
    }
    .popup-btn.neshan-btn {
      background: rgba(0,157,174,0.15);
      border: 1px solid rgba(0,157,174,0.4);
      color: var(--brand);
    }
    .popup-btn:hover { opacity: 0.8; transform: scale(1.05); }

    .map-info {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 20px;
      margin-top: 28px;
    }
    .map-info-card {
      background: var(--bg-card);
      border: 1px solid rgba(0,157,174,0.15);
      border-radius: 16px;
      padding: 20px;
      display: flex;
      align-items: center;
      gap: 14px;
      transition: all 0.3s;
    }
    .map-info-card:hover {
      border-color: var(--brand);
      transform: translateY(-3px);
    }
    .map-info-icon { font-size: 28px; flex-shrink: 0; }
    .map-info-text strong {
      display: block;
      font-size: 0.85rem;
      color: var(--brand);
      margin-bottom: 3px;
    }
    .map-info-text span {
      font-size: 0.9rem;
      color: var(--text-muted);
    }

    .map-nav-buttons {
      display: flex;
      gap: 12px;
      margin-top: 20px;
      flex-wrap: wrap;
    }
    .map-nav-btn {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 12px 24px;
      border-radius: 50px;
      text-decoration: none;
      font-size: 0.9rem;
      font-weight: 600;
      transition: all 0.3s;
      border: 1.5px solid;
    }
    .map-nav-btn.google {
      background: rgba(66,133,244,0.1);
      border-color: rgba(66,133,244,0.4);
      color: var(--info-text);
    }
    .map-nav-btn.google:hover {
      background: rgba(66,133,244,0.2);
      transform: translateY(-2px);
      box-shadow: 0 6px 20px rgba(66,133,244,0.2);
    }
    .map-nav-btn.neshan {
      background: rgba(0,157,174,0.1);
      border-color: rgba(0,157,174,0.4);
      color: var(--brand);
    }
    .map-nav-btn.neshan:hover {
      background: rgba(0,157,174,0.2);
      transform: translateY(-2px);
      box-shadow: 0 6px 20px rgba(0,157,174,0.2);
    }

    /* ========== FOOTER ========== */
    footer {
      background: var(--bg-footer);
      border-top: 1px solid rgba(0,157,174,0.15);
      padding: 50px 0 30px;
    }
    .footer-inner {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 28px;
      text-align: center;
    }
    .footer-logo {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 14px;
      font-size: 1.8rem;
      font-weight: 900;
    }
    .footer-logo .brand-mark { height: 40px; }
    .footer-logo-text {
      background: linear-gradient(135deg, var(--brand-light), var(--brand));
      -webkit-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;
    }
    .footer-links {
      display: flex;
      gap: 24px;
      flex-wrap: wrap;
      justify-content: center;
    }
    .footer-links a {
      color: var(--text-muted);
      text-decoration: none;
      font-size: 0.9rem;
      transition: color 0.3s;
    }
    .footer-links a:hover { color: var(--brand); }
    .footer-social {
      display: flex;
      gap: 16px;
    }
    .footer-social a {
      width: 48px; height: 48px;
      border-radius: 50%;
      background: var(--bg-card);
      border: 1px solid rgba(0,157,174,0.2);
      display: flex; align-items: center; justify-content: center;
      color: var(--brand);
      text-decoration: none;
      transition: all 0.3s;
    }
    .footer-social .social-svg {
      width: 22px;
      height: 22px;
      display: block;
    }
    .footer-social a:hover {
      border-color: var(--brand);
      background: rgba(0,157,174,0.1);
      color: var(--brand-light);
      transform: translateY(-3px);
    }
    .footer-copy {
      color: var(--text-muted);
      font-size: 0.8rem;
      border-top: 1px solid rgba(0,157,174,0.1);
      padding-top: 24px;
      width: 100%;
      text-align: center;
    }
    .footer-copy a { color: var(--brand); text-decoration: none; }

    /* ========== ANIMATIONS ========== */
    @keyframes fadeInDown {
      from { opacity: 0; transform: translateY(-20px); }
      to   { opacity: 1; transform: translateY(0); }
    }
    @keyframes fadeInUp {
      from { opacity: 0; transform: translateY(30px); }
      to   { opacity: 1; transform: translateY(0); }
    }
    .reveal {
      opacity: 0;
      transform: translateY(40px);
      transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    .reveal.visible {
      opacity: 1;
      transform: translateY(0);
    }

    /* ========== RESPONSIVE (تبلت) ========== */
    @media (max-width: 1024px) {
      .about-grid { grid-template-columns: 1fr; gap: 40px; }
    }

    /* ===== MENU SECTION ===== */
#menu {
  padding: var(--section-pad) 0;
  background: var(--bg-dark);
}

/* TABS — نوار دسته‌بندی: چسبان زیر نوبار + اسکرول افقی */
.menu-tabs-wrap {
  position: sticky;
  /* --menu-tabs-top را اسکریپت منو با ارتفاع واقعی نوبار پر می‌کند */
  top: var(--menu-tabs-top, var(--nav-h));
  z-index: 60;
  margin-bottom: 36px;
  margin-inline: calc(var(--container-pad) * -1);
  padding: 10px var(--container-pad);
  background: var(--bg-dark);
}

.menu-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  /* `safe` یعنی وقتی چیپ‌ها جا نمی‌شوند به‌جای center از ابتدا شروع کند
     و اولین چیپ زیر لبه‌ی اسکرول قیچی نشود */
  justify-content: safe center;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-block: 2px;
  /* محو شدن دو لبه به‌عنوان نشانه‌ی اسکرول‌پذیر بودن نوار */
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 20px, #000 calc(100% - 20px), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 20px, #000 calc(100% - 20px), transparent 100%);
}

.menu-tabs::-webkit-scrollbar { display: none; }

.menu-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  scroll-snap-align: center;
  padding: 10px 20px;
  border-radius: 50px;
  border: 1.5px solid rgba(0,157,174, 0.3);
  background: transparent;
  color: var(--text-soft);
  font-family: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.menu-tab:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.menu-tab.active {
  background: linear-gradient(135deg, var(--brand-light), var(--brand));
  border-color: transparent;
  color: var(--on-brand);
  font-weight: 700;
}

/* CATEGORY PANELS — همه با هم نمایش داده می‌شوند و با اسکرول ورق می‌خورند */
.menu-category {
  display: block;
  /* برای پرش لنگری (#cat-...) زیر نوبار + نوار چسبان دسته‌ها */
  scroll-margin-top: calc(var(--nav-h) + 72px);
}

.menu-category + .menu-category {
  margin-top: 44px;
}

.menu-cat-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0,157,174,0.15);
  color: var(--brand-light);
  font-size: 1.25rem;
  font-weight: 800;
}

.menu-cat-title-icon {
  font-size: 1.35rem;
  line-height: 1;
}

.menu-cat-title-count {
  margin-inline-start: auto;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 500;
}

/* GRID */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

/* CARD */
.menu-card {
  background: var(--surface-1);
  border: 1px solid rgba(0,157,174,0.15);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease,
              box-shadow 0.3s ease;
}

.menu-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0,157,174,0.5);
  box-shadow: 0 16px 40px rgba(0,157,174,0.1);
}

/* CARD IMAGE */
.menu-card-img {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: var(--surface-1);
}

.menu-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.menu-card:hover .menu-card-img img {
  transform: scale(1.06);
}

.menu-card-img--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-emoji {
  font-size: 3.5rem;
}

/* CARD BODY */
.menu-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.menu-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brand-light);
  margin: 0;
}

.menu-card-desc {
  font-size: 0.82rem;
  color: var(--text-soft);
  line-height: 1.6;
  margin: 0;
}

/* VARIANTS */
.menu-card-variants {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.variant-chip {
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(0,157,174,0.12);
  color: var(--brand);
  border: 1px solid rgba(0,157,174,0.25);
}

/* CARD FOOTER */
.menu-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  gap: 8px;
}

.menu-price-box {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.menu-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-light);
  direction: rtl;
  white-space: nowrap;
}

.menu-price-unit {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-soft);
}

.menu-price-old {
  font-size: 0.78rem;
  color: var(--text-faint);
  text-decoration: line-through;
  white-space: nowrap;
}

.menu-order-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 16px;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--brand-light), var(--brand));
  color: var(--on-brand);
  font-weight: 700;
  font-size: 0.82rem;
  text-decoration: none;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.menu-order-btn:hover {
  opacity: 0.85;
}

/* PLACEHOLDER */
/* حالا همه‌ی دسته‌ها پشت‌سرهم‌اند، پس جای خالیِ دسته‌ی بدون محصول باید کم‌ارتفاع باشد */
.menu-placeholder {
  grid-column: 1 / -1;
  text-align: center;
  padding: 26px 20px;
  border: 1.5px dashed rgba(0,157,174,0.2);
  border-radius: 16px;
  color: var(--text-faint);
}

.placeholder-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 12px;
}

/* CTA */
.menu-cta {
  text-align: center;
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.menu-cta-text {
  color: var(--text-soft);
  font-size: 0.95rem;
}

/* BADGE تخفیف — روی تصویر */
.menu-discount-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 107, 107, 0.45);
  border-radius: 999px;
  background: var(--danger-bg);
  backdrop-filter: blur(6px);
  color: var(--danger-text);
  font-size: 0.75rem;
  font-weight: 800;
  white-space: nowrap;
}
/* ========== USER DROPDOWN ========== */
.nav-links .nav-item {
    position: relative;
    display: flex;
    align-items: center;
}

/* دکمه‌ی کاربر (👤 نام) */
.user-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(0,157,174,0.08);
    border: 1px solid rgba(0,157,174,0.3);
    border-radius: 50px;
    color: var(--brand-light);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

    .user-toggle:hover {
        background: rgba(0,157,174,0.15);
        border-color: var(--brand);
    }

    .user-toggle .caret {
        font-size: 0.7rem;
        transition: transform 0.3s;
    }

.nav-item.open .user-toggle .caret {
    transform: rotate(180deg);
}

/* منوی کشویی */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 0; /* چون RTL هست، چپ‌چین باز می‌شود */
    min-width: 200px;
    background: var(--panel-solid);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(0,157,174,0.25);
    border-radius: 16px;
    padding: 8px;
    box-shadow: 0 12px 40px var(--panel-shadow);
    display: flex;
    flex-direction: column;
    gap: 2px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
    z-index: 1100;
}

.nav-item.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* آیتم‌های داخل منو */
.dropdown-menu a,
.dropdown-menu .logout-btn {
    display: block;
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: right;
    background: transparent;
    border: none;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
}

    .dropdown-menu a:hover,
    .dropdown-menu .logout-btn:hover {
        background: rgba(0,157,174,0.12);
        color: var(--brand-light);
    }
    /* حذف افکت زیرخط قبلی روی لینک‌های داخل dropdown */
    .dropdown-menu a::after {
        display: none;
    }

.logout-form {
    margin: 0;
}

.logout-btn {
    color: var(--danger-text) !important;
}

    .logout-btn:hover {
        background: rgba(220,53,69,0.16) !important;
        color: var(--danger-text) !important;
    }

/* دکمه‌ی ورود */
.btn-login {
    padding: 8px 20px;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: var(--on-brand) !important;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s;
}

    .btn-login:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0,157,174,0.4);
        color: var(--on-brand) !important;
    }

    .btn-login::after {
        display: none;
    }

/* ========== ACCOUNT / PROFILE PAGE ========== */
.account-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 60px;
    position: relative;
    z-index: 1;
}

.account-card {
    width: 100%;
    max-width: 460px;
    background: var(--panel-bg);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(0,157,174,0.25);
    border-radius: 24px;
    padding: 40px 32px;
    box-shadow: 0 20px 60px var(--panel-shadow);
    animation: fadeInUp 0.7s ease both;
}

/* هدر */
.account-header {
    text-align: center;
    margin-bottom: 32px;
}

.account-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    background: linear-gradient(135deg, rgba(65,207,224,0.2), rgba(0,157,174,0.1));
    border: 2px solid rgba(0,157,174,0.4);
    box-shadow: 0 0 30px rgba(0,157,174,0.2);
}

.account-title {
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--brand-light), var(--brand));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 6px;
}

.account-username {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* اطلاعات */
.account-info {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 32px;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: var(--surface-1);
    border: 1px solid rgba(0,157,174,0.12);
    border-radius: 14px;
    transition: all 0.3s;
}

    .info-row:hover {
        border-color: rgba(0,157,174,0.4);
        background: rgba(0,157,174,0.06);
    }

.info-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
}

.info-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
    overflow: hidden;
}

.info-label {
    font-size: 0.75rem;
    color: var(--brand);
    font-weight: 600;
}

.info-value {
    font-size: 0.95rem;
    color: var(--text-light);
    word-break: break-all;
    direction: ltr; /* ایمیل و شماره تلفن چپ‌چین */
    text-align: right;
}

/* دکمه‌ها */
.account-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.account-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 24px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
}

.account-btn--primary {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: var(--on-brand);
    box-shadow: 0 4px 20px rgba(0,157,174,0.3);
}

    .account-btn--primary:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 30px rgba(0,157,174,0.5);
    }

.account-btn--secondary {
    background: transparent;
    color: var(--brand);
    border: 1.5px solid rgba(0,157,174,0.4);
}

    .account-btn--secondary:hover {
        background: rgba(0,157,174,0.1);
        transform: translateY(-3px);
    }

/* موبایل */
@media (max-width: 480px) {
    .account-card {
        padding: 32px 20px;
    }

    .account-title {
        font-size: 1.4rem;
    }
}
/* ==================================================
   AUTH / FORM PAGES — سیستم عمومی
   قابل استفاده در: ورود، ثبت‌نام، تغییر رمز، پروفایل
   ================================================== */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 60px;
    position: relative;
    z-index: 1;
}

/* کارت اصلی */
.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--panel-bg);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(0,157,174,0.25);
    border-radius: 24px;
    padding: 40px 32px;
    box-shadow: 0 20px 60px var(--panel-shadow);
    animation: fadeInUp 0.7s ease both;
}

/* هدر */
.auth-header {
    text-align: center;
    margin-bottom: 28px;
}

.auth-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: linear-gradient(135deg, rgba(65,207,224,0.2), rgba(0,157,174,0.1));
    border: 2px solid rgba(0,157,174,0.4);
    box-shadow: 0 0 30px rgba(0,157,174,0.2);
}

    .auth-icon img {
        display: block;
        width: 46px;
        height: auto;
    }

.auth-title {
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--brand-light), var(--brand));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 6px;
}

.auth-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* فرم */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* فیلد */
.auth-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--brand);
}

.auth-input {
    width: 100%;
    padding: 13px 16px;
    background: var(--surface-1);
    border: 1.5px solid rgba(0,157,174,0.2);
    border-radius: 12px;
    color: var(--text-light);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s;
    outline: none;
}

    .auth-input::placeholder {
        color: var(--text-faint);
    }

    .auth-input:focus {
        border-color: var(--brand);
        background: rgba(0,157,174,0.06);
        box-shadow: 0 0 0 3px rgba(0,157,174,0.12);
    }

/* پیام خطای هر فیلد */
.auth-error {
    color: var(--danger-text);
    font-size: 0.8rem;
    min-height: 1em;
}

    .auth-error:empty {
        display: none;
    }

/* خلاصه‌ی اعتبارسنجی */
.auth-validation {
    color: var(--danger-text);
    font-size: 0.85rem;
}

    .auth-validation ul {
        margin: 0;
        padding-right: 18px;
    }

    .auth-validation:empty {
        display: none;
    }

/* هشدارها */
.auth-alert {
    padding: 13px 18px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

.auth-alert--success {
    background: rgba(40,167,69,0.15);
    border: 1px solid rgba(40,167,69,0.4);
    color: var(--success-text);
}

.auth-alert--error {
    background: rgba(220,53,69,0.15);
    border: 1px solid rgba(220,53,69,0.4);
    color: var(--danger-text);
}

/* دکمه‌ها */
.auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 24px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    font-family: inherit;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 4px;
}

.auth-btn--primary {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: var(--on-brand);
    box-shadow: 0 4px 20px rgba(0,157,174,0.3);
}

    .auth-btn--primary:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 30px rgba(0,157,174,0.5);
    }

.auth-btn--secondary {
    background: transparent;
    color: var(--brand);
    border: 1.5px solid rgba(0,157,174,0.4);
}

    .auth-btn--secondary:hover {
        background: rgba(0,157,174,0.1);
        transform: translateY(-3px);
    }

/* موبایل */
@media (max-width: 480px) {
    .auth-card {
        padding: 32px 20px;
    }

    .auth-title {
        font-size: 1.4rem;
    }
}
/* ========== لیست اطلاعات (پروفایل و ...) ========== */
.info-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 18px;
    background: var(--surface-1);
    border: 1px solid rgba(0,157,174,0.12);
    border-radius: 14px;
    transition: all 0.3s;
}

    .info-row:hover {
        border-color: rgba(0,157,174,0.4);
        background: rgba(0,157,174,0.06);
    }

.info-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
}

.info-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
    overflow: hidden;
}

.info-label {
    font-size: 0.75rem;
    color: var(--brand);
    font-weight: 600;
}

.info-value {
    font-size: 0.95rem;
    color: var(--text-light);
    word-break: break-all;
    direction: ltr; /* برای ایمیل/شماره تلفن */
    text-align: right;
}

/* ==================================================
   MOBILE NAVIGATION — همبرگر + منوی کشویی
   ================================================== */

#navbar {
    min-height: var(--nav-h);
    gap: 12px;
}

/* دکمه همبرگر (فقط موبایل) */
.nav-burger {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 46px;
    height: 46px;
    padding: 0;
    flex-shrink: 0;
    background: rgba(0,157,174,0.08);
    border: 1px solid rgba(0,157,174,0.28);
    border-radius: 14px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.25s, border-color 0.25s;
}

    .nav-burger:active { background: rgba(0,157,174,0.18); }

    .nav-burger span {
        display: block;
        width: 20px;
        height: 2px;
        border-radius: 2px;
        background: var(--brand-light);
        transition: transform 0.3s ease, opacity 0.2s ease;
    }

body.nav-open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(-45deg); }
body.nav-open .nav-burger span:nth-child(2) { opacity: 0; }
body.nav-open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(45deg); }

/* پرده پشت منو */
.mobile-nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1150;
    background: var(--backdrop);
    backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

body.nav-open .mobile-nav-backdrop {
    opacity: 1;
    visibility: visible;
}

/* کشوی منو (از سمت راست باز می‌شود) */
.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1200;
    width: min(86vw, 340px);
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: calc(env(safe-area-inset-top, 0px) + 18px) 18px calc(env(safe-area-inset-bottom, 0px) + 22px);
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--mobile-nav-bg);
    backdrop-filter: blur(20px);
    border-left: 1px solid rgba(0,157,174,0.2);
    box-shadow: -24px 0 60px var(--panel-shadow);
    transform: translateX(105%);
    visibility: hidden;
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1), visibility 0.35s;
}

body.nav-open .mobile-nav {
    transform: translateX(0);
    visibility: visible;
}

body.nav-open { overflow: hidden; }

.mobile-nav-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(0,157,174,0.15);
}

.mobile-nav-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.15rem;
    font-weight: 800;
}

    .mobile-nav-title .brand-mark { height: 26px; }

.mobile-nav-title-text {
    background: linear-gradient(135deg, var(--brand-light), var(--brand));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mobile-nav-close {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-1);
    border: 1px solid rgba(0,157,174,0.2);
    border-radius: 12px;
    color: var(--text-muted);
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: all 0.25s;
}

    .mobile-nav-close:active {
        background: rgba(0,157,174,0.15);
        color: var(--brand-light);
    }

.mobile-nav-links,
.mobile-nav-foot {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* قانون سراسری `nav` (بالای همین فایل) روی این <nav> هم می‌افتد و آن را
   fixed + padding 16px 40px می‌کند؛ اینجا خنثی می‌شود تا داخل کشو جریان طبیعی داشته باشد */
.mobile-nav-links {
    position: static;
    z-index: auto;
    width: 100%;
    padding: 0;
    background: none;
    backdrop-filter: none;
    border-bottom: 0;
    transition: none;
}

.mobile-nav-foot {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid rgba(0,157,174,0.15);
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 54px;
    padding: 14px 16px;
    border-radius: 14px;
    background: var(--surface-1);
    border: 1px solid rgba(0,157,174,0.1);
    color: var(--text-light);
    font-family: inherit;
    font-size: 0.98rem;
    font-weight: 500;
    text-align: right;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.25s, border-color 0.25s, transform 0.15s;
}

    .mobile-nav-link:active {
        background: rgba(0,157,174,0.12);
        border-color: rgba(0,157,174,0.35);
        transform: scale(0.985);
    }

.mobile-nav-emoji {
    font-size: 1.15rem;
    line-height: 1;
    flex-shrink: 0;
}

.mobile-nav-arrow {
    margin-right: auto;
    color: var(--brand);
    opacity: 0.5;
    font-size: 0.9rem;
}

.mobile-nav-logout {
    color: var(--danger-text);
    border-color: rgba(220,53,69,0.25);
    background: rgba(220,53,69,0.08);
}

.mobile-nav-login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 54px;
    padding: 15px 20px;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: var(--on-brand);
    font-weight: 800;
    font-size: 1rem;
    text-decoration: none;
    box-shadow: 0 6px 22px rgba(0,157,174,0.28);
}

.mobile-nav-call {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 13px 18px;
    border-radius: 14px;
    border: 1px dashed rgba(0,157,174,0.35);
    color: var(--brand-light);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    direction: ltr;
}

.mobile-nav-user {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
    padding: 4px 6px;
    color: var(--brand-light);
    font-weight: 700;
    font-size: 0.95rem;
}

.mobile-nav-avatar {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0,157,174,0.12);
    border: 1px solid rgba(0,157,174,0.3);
}

.mobile-nav-username {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-nav .logout-form { margin: 0; }


/* ==================================================
   BREAKPOINT: ≤ 900px — سوییچ به منوی موبایل
   ================================================== */
@media (max-width: 900px) {
    .nav-links { display: none !important; }
    .nav-burger { display: flex; }
}


/* ==================================================
   BREAKPOINT: ≤ 768px — بازطراحی موبایل
   ================================================== */
@media (max-width: 768px) {

    :root {
        --nav-h: 58px;
        --section-pad: 64px;
        --container-pad: 16px;
    }

    /* ---- NAVBAR ---- */
    nav#navbar {
        padding: 8px var(--container-pad);
        padding-top: calc(env(safe-area-inset-top, 0px) + 8px);
    }

        nav#navbar.scrolled { padding: 6px var(--container-pad); }

    .nav-logo { gap: 8px; }
        .nav-logo .brand-mark { height: 24px; }
        .nav-logo span { font-size: 1.1rem; }

    /* ---- HERO ---- */
    #hero {
        min-height: 100vh;
        min-height: 100svh;
        padding: calc(var(--nav-h) + 36px) var(--container-pad) 72px;
    }

    .hero-badge {
        font-size: 0.75rem;
        letter-spacing: 1px;
        padding: 6px 16px;
        margin-bottom: 14px;
    }

    .hero-mark {
        width: clamp(180px, 62vw, 300px);
        margin-bottom: 14px;
    }

    .hero-content { width: 100%; }

    .hero-title { margin-bottom: 12px; }

    .hero-subtitle {
        margin-bottom: 30px;
        line-height: 1.9;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }

        .hero-buttons .btn-primary,
        .hero-buttons .btn-outline {
            width: 100%;
            padding: 15px 24px;
            text-align: center;
        }

    .scroll-indicator {
        bottom: calc(env(safe-area-inset-bottom, 0px) + 14px);
        font-size: 0.72rem;
    }

    /* ---- SECTION HEADER ---- */
    .section-header { margin-bottom: 34px; }
    .section-tag { font-size: 0.72rem; padding: 4px 14px; }

    /* ---- ABOUT ---- */
    .about-grid { gap: 32px; }

    .about-text p {
        font-size: 0.96rem;
        line-height: 1.95;
        margin-bottom: 14px;
    }

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        margin-top: 26px;
    }

    .stat-card { padding: 14px 8px; border-radius: 14px; }
    .stat-number { font-size: 1.5rem; }
    .stat-label { font-size: 0.7rem; line-height: 1.4; }
    .about-photo { border-radius: 20px; }
        .about-photo figcaption { font-size: 0.8rem; left: 14px; bottom: 14px; }

    .floating-badge {
        bottom: -12px;
        right: 12px;
        padding: 10px 14px;
        font-size: 0.8rem;
        border-radius: 12px;
    }

    /* ---- LINKS / CONTACT ---- */
    .links-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .link-card {
        padding: 24px 20px;
        border-radius: 20px;
    }

    .link-icon-wrapper {
        width: 64px;
        height: 64px;
        border-radius: 19px;
        margin-bottom: 14px;
    }

    .link-svg { width: 32px; height: 32px; }
    .link-title { font-size: 1.15rem; }

    .link-desc {
        font-size: 0.86rem;
        margin-bottom: 16px;
    }

    .link-btn {
        width: 100%;
        justify-content: center;
        min-height: 46px;
        padding: 12px 20px;
    }

    /* ---- MENU: تب‌های افقی اسکرول‌شونده ---- */
    .menu-tabs-wrap {
        margin-bottom: 22px;
        padding-block: 8px;
    }

    .menu-tabs {
        gap: 8px;
    }

    .menu-tab {
        padding: 9px 16px;
        font-size: 0.85rem;
        min-height: 42px;
    }

    .menu-category + .menu-category { margin-top: 32px; }

    .menu-cat-title {
        margin-bottom: 14px;
        padding-bottom: 10px;
        font-size: 1.05rem;
    }

    /* ---- MENU: کارت افقی و فشرده ---- */
    .menu-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .menu-card {
        display: grid;
        grid-template-columns: 116px minmax(0, 1fr);
        border-radius: 14px;
    }

    .menu-card-img {
        height: 100%;
        min-height: 132px;
    }

    .menu-card-img--placeholder { min-height: 132px; }
    .card-emoji { font-size: 2.4rem; }

    .menu-discount-badge {
        top: 7px;
        right: 7px;
        padding: 3px 8px;
        font-size: 0.66rem;
    }

    .menu-card-body {
        padding: 12px 14px;
        gap: 6px;
        justify-content: center;
    }

    .menu-card-title { font-size: 1rem; }

    .menu-card-desc {
        font-size: 0.78rem;
        line-height: 1.65;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .menu-card-variants { gap: 5px; }
    .variant-chip { font-size: 0.68rem; padding: 2px 8px; }

    .menu-card-footer {
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 2px;
    }

    .menu-price { font-size: 0.95rem; }

    .menu-order-btn {
        padding: 8px 14px;
        font-size: 0.78rem;
        min-height: 36px;
    }

    .menu-cta { margin-top: 32px; gap: 12px; }
    .menu-cta-text { font-size: 0.88rem; }

        .menu-cta .btn-primary {
            width: 100%;
            max-width: 320px;
            text-align: center;
            direction: ltr;
        }

    /* ---- MAP ---- */
    .map-wrapper { border-radius: 18px; }
    #leaflet-map { height: 280px; }

    .map-info {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 20px;
    }

    .map-info-card {
        padding: 14px 16px;
        border-radius: 14px;
    }

    .map-info-icon { font-size: 22px; }

    .map-nav-buttons {
        flex-direction: column;
        gap: 10px;
        margin-top: 16px;
    }

    .map-nav-btn {
        justify-content: center;
        width: 100%;
        min-height: 50px;
    }

    /* ---- FOOTER ---- */
    footer {
        padding: 40px 0 calc(env(safe-area-inset-bottom, 0px) + 24px);
    }

    .footer-inner { gap: 22px; }
    .footer-logo { font-size: 1.4rem; gap: 10px; }
        .footer-logo .brand-mark { height: 30px; }

    .footer-links {
        gap: 4px 6px;
        font-size: 0.86rem;
    }

        /* ناحیه‌ی لمسی بزرگ‌تر برای لینک‌های فوتر */
        .footer-links a {
            display: inline-flex;
            align-items: center;
            min-height: 44px;
            padding: 0 12px;
        }

    .footer-social { gap: 12px; }

    .footer-copy {
        font-size: 0.75rem;
        line-height: 1.9;
        padding-top: 18px;
    }

        .footer-copy a {
            display: inline-block;
            padding: 6px 4px;
        }

    /* ---- AUTH / ACCOUNT ---- */
    .auth-page,
    .account-page {
        min-height: 100svh;
        padding: calc(var(--nav-h) + 32px) var(--container-pad) 48px;
    }

    .auth-card,
    .account-card {
        border-radius: 20px;
    }

    .auth-input {
        font-size: 16px; /* جلوگیری از زوم خودکار iOS هنگام فوکوس */
        padding: 14px 16px;
    }

    .auth-btn,
    .account-btn { min-height: 50px; }
}


/* ==================================================
   BREAKPOINT: ≤ 360px — گوشی‌های کوچک
   ================================================== */
@media (max-width: 360px) {
    :root { --container-pad: 12px; }

    .nav-logo span { font-size: 1rem; }
    .menu-card { grid-template-columns: 96px minmax(0, 1fr); }
    .menu-card-img,
    .menu-card-img--placeholder { min-height: 118px; }
    .about-stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .stat-card { padding: 12px 4px; }
    .stat-label { font-size: 0.65rem; }
    .menu-card-footer { flex-direction: column; align-items: stretch; }
    .menu-order-btn { justify-content: center; }
}


/* ==================================================
   افکت hover فقط روی دستگاه‌های دارای ماوس
   (روی لمسی باعث «چسبیدن» حالت hover می‌شود)
   ================================================== */
@media (hover: hover) and (pointer: fine) {
    .about-photo:hover img { transform: scale(1.04); }

    .link-card:hover {
        transform: translateY(-10px) scale(1.02);
        border-color: var(--brand);
        box-shadow: 0 20px 50px rgba(0,157,174,0.2);
    }

        .link-card:hover::before { opacity: 1; }
        .link-card:hover .link-icon-wrapper { transform: scale(1.08) rotate(-4deg); }

        .link-card:hover .link-btn {
            transform: scale(1.04);
            box-shadow: 0 6px 18px var(--panel-shadow);
        }
}

@media (hover: none) {
    .menu-card:hover,
    .stat-card:hover,
    .map-info-card:hover,
    .btn-primary:hover,
    .btn-outline:hover,
    .map-nav-btn:hover,
    .footer-social a:hover,
    .account-btn--primary:hover,
    .account-btn--secondary:hover,
    .auth-btn--primary:hover,
    .auth-btn--secondary:hover,
    .btn-login:hover {
        transform: none;
    }

    .menu-card:active { transform: scale(0.99); }
}


/* ==================================================
   دسترس‌پذیری
   ================================================== */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }

    #particles { display: none; }
}

:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 3px;
    border-radius: 6px;
}

/* ===== کلید حالت روشن/تیره ===== */
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid rgba(0,157,174,0.3);
    border-radius: 50px;
    background: var(--surface-1);
    color: var(--text-light);
    font: inherit;
    font-size: 0.95rem;
    line-height: 1;
    cursor: pointer;
    transition: border-color .3s, background .3s;
}

.theme-toggle:hover {
    border-color: var(--brand);
    background: rgba(0,157,174,0.12);
}

.theme-toggle:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

/* کلید در گوشه‌ی نوار می‌نشیند؛ لینک‌ها سر جای قبلی‌شان می‌مانند. */
.nav-links {
    margin-inline-start: auto;
}

nav > .theme-toggle {
    flex-shrink: 0;
    margin-inline-start: 14px;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 12px;
}

/* صفحه‌های مستقل (مثل ورود) نوار ندارند؛ کلید شناور در گوشه می‌نشیند. */
.theme-toggle--floating {
    position: fixed;
    top: 16px;
    inset-inline-start: 16px;
    z-index: 50;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 12px;
    background: var(--panel-bg);
    backdrop-filter: blur(8px);
}

@media (max-width: 768px) {
    .theme-toggle--floating {
        top: 12px;
        inset-inline-start: 12px;
    }

    nav > .theme-toggle {
        width: 38px;
        height: 38px;
        margin-inline-start: 0;
        margin-inline-end: 8px;
    }
}

/* قیمت و دکمه‌ی همه‌ی کارت‌ها هم‌تراز و با فاصله‌ی یکسان از کف کارت */
@media (min-width: 769px) {
    .menu-card {
        display: flex;
        flex-direction: column;
    }

    .menu-card-body {
        flex: 1 1 auto;
    }

    .menu-card-footer {
        margin-top: auto;
        padding-top: 10px;
    }
}
