/* =========================================================
   نام فروشگاه — Global stylesheet
   Palette: white / gold / black
   ========================================================= */

@font-face{
  font-family: 'Dana';
  src: url('../fonts/DanaFaNum-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face{
  font-family: 'Dana';
  src: url('../fonts/DanaFaNum-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face{
  /* covers 600–900 so bold/black headings use DemiBold instead of a synthetic bold */
  font-family: 'Dana';
  src: url('../fonts/DanaFaNum-DemiBold.woff2') format('woff2');
  font-weight: 600 900;
  font-style: normal;
  font-display: swap;
}

:root{
  --black: #121110;
  --charcoal: #201d1a;
  --gold: #c8a24d;
  --gold-bright: #e7c775;
  --gold-dim: #a9853a;
  --cream: #faf7f0;
  --white: #ffffff;
  --line: #e7dfcd;
  --text-soft: #6b6459;
  --radius: 16px;

  --red: #c0453b;
  --red-bg: #fbe9e7;
  --orange: #c8811f;
  --orange-bg: #fbf0dc;
  --green: #2f8a52;
  --green-bg: #e6f3ea;
  --blue: #3a6ea5;
  --blue-bg: #e8f0f9;
}

*{ box-sizing: border-box; margin: 0; padding: 0; }
html{ scroll-behavior: smooth; }

body{
  font-family: 'Dana', sans-serif;
  background: var(--cream);
  color: var(--black);
  line-height: 1.7;
}

a{ color: inherit; text-decoration: none; }
img{ max-width: 100%; display: block; }
button{ font-family: inherit; }

/* ===== Layout shell ===== */
main{ min-height: 40vh; }

/* ===== Header (static — scrolls away with the page) ===== */
header{
  background: var(--black);
  color: var(--white);
  border-radius: 0 0 28px 28px;
  box-shadow: 0 10px 30px rgba(18,17,16,0.18);
}

.header-inner{
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 32px 20px;
}

.brand-row{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 14px;
  position: relative;
}

.brand-mark{ height: 34px; width: auto; flex-shrink: 0; }
.brand-mark img{ height: 100%; width: auto; display: block; }

.brand-name{
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: linear-gradient(90deg, var(--gold-bright), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

nav{
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 14px;
  flex-wrap: wrap;
  gap: 10px;
}

.nav-links{
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  font-size: 0.98rem;
  font-weight: 500;
}

.nav-links a{
  position: relative;
  padding: 4px 2px;
  color: #eae6dc;
  transition: color .2s ease;
}

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

.nav-links a:hover{ color: var(--gold-bright); }
.nav-links a:hover::after{ transform: scaleX(1); }
.nav-links a.active{ color: var(--gold-bright); }
.nav-links a.active::after{ transform: scaleX(1); }

.logout-link{ color: #e2a3a3 !important; font-weight: 600; }
.logout-link::after{ background: #e2a3a3 !important; }

/* Hamburger toggle — hidden on desktop */
.menu-toggle-cb{ display: none; }
.nav-overlay{ display: none; }
.menu-btn{
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(200,162,77,0.4);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: absolute;
  left: 0;
  top: 2px;
}
.menu-btn span,
.menu-btn span::before,
.menu-btn span::after{
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: var(--gold-bright);
  position: relative;
  transition: transform .25s ease, opacity .25s ease;
}
.menu-btn span::before{ position: absolute; top: -6px; }
.menu-btn span::after{ position: absolute; top: 6px; }

/* ===== Section / page hero ===== */
.section-title{ text-align: center; padding: 56px 24px 34px; }
.section-title h1{ font-size: 1.6rem; font-weight: 700; color: var(--black); }
.section-title p.sub{ margin-top: 10px; color: var(--text-soft); font-size: 0.95rem; }
.section-title .rule{
  width: 64px; height: 3px; margin: 16px auto 0;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
  border-radius: 2px;
}

/* ===== Generic placeholder-image box (hatched gold pattern) ===== */
.img-placeholder{
  background: repeating-linear-gradient(135deg, rgba(200,162,77,0.07) 0 10px, rgba(200,162,77,0.13) 10px 20px);
  color: var(--gold-dim);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

/* ===== Buttons ===== */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 12px;
  font-size: 0.96rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.btn-gold{
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
  color: var(--black);
  box-shadow: 0 8px 20px rgba(200,162,77,0.35);
}
.btn-gold:hover{ transform: translateY(-2px); box-shadow: 0 12px 26px rgba(200,162,77,0.45); }

.btn-outline{
  background: transparent;
  color: var(--black);
  border: 1.5px solid var(--gold);
}
.btn-outline:hover{ background: rgba(200,162,77,0.08); }

.btn-block{ width: 100%; }
.btn-sm{ padding: 9px 16px; font-size: 0.85rem; border-radius: 9px; }

/* =========================================================
   HOME — app grid (list rows on desktop)
   ========================================================= */
.app-list{
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px 70px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.app-card{
  display: flex;
  align-items: stretch;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(18,17,16,0.04);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  cursor: pointer;
}

.app-card:hover, .app-card:focus-visible{
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(200,162,77,0.22);
  border-color: var(--gold);
  outline: none;
}

.app-name{
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: right;
  padding: 16px 24px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--black);
}

.app-thumb{
  flex: 0 0 150px;
  border-right: 1px solid var(--line);
  overflow: hidden;
}

.app-thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* =========================================================
   HOME — top banner carousel
   ========================================================= */
.banner-section{
  max-width: 1080px;
  margin: 20px auto 0;
  padding: 0 24px;
}

.banner-outer{
  position: relative;
  aspect-ratio: 1536/950;
  max-height: 480px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  direction: ltr; /* برای پیش‌بینی‌پذیر بودن جهت اسلاید، مستقل از RTL صفحه */
  background: var(--white);
}

.banner-track{
  display: flex;
  height: 100%;
  transition: transform .5s ease;
}

.banner-slide{
  flex: 0 0 100%;
  height: 100%;
  display: block;
}

.banner-slide img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.banner-nav{
  display: none; /* فقط دسکتاپ — طبق درخواست */
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(18,17,16,0.55);
  color: var(--white);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: background .2s ease;
}

.banner-nav:hover{ background: rgba(18,17,16,0.8); }
.banner-nav svg{ width: 20px; height: 20px; }
.banner-nav-prev{ left: 14px; }
.banner-nav-next{ right: 14px; }

.banner-dots{
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.banner-dot{
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.55);
  cursor: pointer;
  padding: 0;
  transition: background .2s ease, transform .2s ease;
}

.banner-dot.active{ background: var(--gold-bright); transform: scale(1.25); }

/* =========================================================
   HOME — discounted packages slider
   ========================================================= */
.discount-slider-wrap{
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
}

.slider-nav{
  display: none; /* فقط دسکتاپ */
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--black);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 4px 14px rgba(18,17,16,0.1);
  transition: border-color .2s ease, transform .2s ease;
}

.slider-nav:hover{ border-color: var(--gold); transform: translateY(-50%) scale(1.06); }
.slider-nav svg{ width: 18px; height: 18px; }
.slider-nav-prev{ right: -6px; }
.slider-nav-next{ left: -6px; }

@media (min-width: 641px){
  .banner-nav,
  .slider-nav{ display: flex; }
}

.discount-slider{
  max-width: 1080px;
  margin: 0 auto;
  padding: 4px 24px 70px;
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.discount-slider::-webkit-scrollbar{ display: none; }

.discount-card{
  position: relative;
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: 230px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 10px rgba(18,17,16,0.04);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.discount-card:hover, .discount-card:focus-visible{
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(200,162,77,0.22);
  border-color: var(--gold);
  outline: none;
}

.discount-badge{
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  background: var(--red);
  color: var(--white);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(192,69,59,0.35);
}

.discount-app{
  aspect-ratio: 16/10;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.discount-app img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.discount-info{ padding: 14px 16px 16px; }

.discount-name{
  font-weight: 700;
  font-size: 0.98rem;
  margin-bottom: 4px;
}

.discount-service{
  color: var(--text-soft);
  font-size: 0.8rem;
  margin-bottom: 10px;
}

.discount-price{
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.discount-price .price-original{ font-size: 0.8em; }
.discount-price .price-final{ font-size: 1.02rem; }

/* =========================================================
   SERVICES page — selected-app badge + vertical service buttons
   ========================================================= */
.selected-chip{
  max-width: 200px;
  margin: 0 auto 8px;
  aspect-ratio: 1/1;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--white);
  overflow: hidden;
}

.selected-chip img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.service-list{
  max-width: 700px;
  margin: 0 auto;
  padding: 0 24px 70px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.service-btn{
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 20px 24px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--black);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}

.service-btn:hover, .service-btn:focus-visible{
  transform: translateY(-2px);
  border-color: var(--gold);
  background: linear-gradient(90deg, rgba(200,162,77,0.08), rgba(231,199,117,0.14));
  box-shadow: 0 10px 24px rgba(200,162,77,0.18);
  outline: none;
}

/* =========================================================
   PACKAGE page — selected-service badge + price rows
   ========================================================= */
.package-heading{
  text-align: center;
  font-size: 1.15rem;
  font-weight: 700;
  padding: 0 24px 26px;
}

.package-list{
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.package-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 22px;
  transition: box-shadow .2s ease, border-color .2s ease;
}

.package-row:hover{
  border-color: var(--gold);
  box-shadow: 0 10px 22px rgba(200,162,77,0.15);
}

.package-qty{ font-weight: 700; font-size: 1.02rem; }
.package-price{ font-weight: 700; color: var(--gold-dim); font-size: 1rem; }

.package-price-discounted{
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.price-original{
  text-decoration: line-through;
  color: var(--text-soft);
  font-weight: 500;
  font-size: 0.85em;
}

.discount-tag{
  display: inline-block;
  background: var(--red-bg);
  color: var(--red);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.price-final{
  color: var(--red);
  font-weight: 700;
  font-size: 1rem;
}

.package-notes{
  max-width: 760px;
  margin: 40px auto 70px;
  padding: 0 24px;
}

.package-notes h2{
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.package-notes .notes-box{
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  min-height: 130px;
  color: var(--text-soft);
  text-align: center;
}

/* =========================================================
   CHECKOUT page
   ========================================================= */
.checkout-wrap{
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px 24px 80px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 30px;
  align-items: start;
}

.order-summary{
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.order-summary dl{
  display: grid;
  grid-template-columns: auto 1fr;
  row-gap: 14px;
  column-gap: 10px;
  margin-bottom: 22px;
}

.order-summary dt{
  font-weight: 700;
  color: var(--black);
  white-space: nowrap;
}

.order-summary dd{
  color: var(--gold-dim);
  font-weight: 600;
  text-align: left;
}

.order-summary dd.dd-discount{ color: var(--red); }
.order-summary dd.dd-final{ color: var(--green); font-size: 1.05em; font-weight: 800; }

.checkout-form{
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
}

.field{ margin-bottom: 24px; }
.field:last-child{ margin-bottom: 0; }

.field label{
  display: block;
  font-weight: 700;
  margin-bottom: 10px;
  font-size: 0.98rem;
}

.field .hint{
  font-weight: 400;
  color: var(--text-soft);
  font-size: 0.82rem;
}

.field input,
.field textarea{
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--cream);
  color: var(--black);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.field input:focus,
.field textarea:focus{
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200,162,77,0.18);
  background: var(--white);
}

.field textarea{ min-height: 130px; resize: vertical; }

.field-error{
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--red);
}

/* ===== site-wide django messages ===== */
.site-messages{
  max-width: 1080px;
  margin: 18px auto 0;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-message{
  border-radius: 10px;
  padding: 13px 18px;
  font-size: 0.9rem;
  font-weight: 600;
}

.site-message.error{ background: var(--red-bg); color: var(--red); }
.site-message.success{ background: var(--green-bg); color: var(--green); }

/* =========================================================
   DASHBOARD page
   ========================================================= */
.dash-top{
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 24px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.dash-profile{
  display: flex;
  align-items: center;
  gap: 14px;
}

.avatar-circle{
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  flex-shrink: 0;
  font-size: 0.7rem;
}

.dash-profile .phone{
  font-weight: 700;
  color: var(--black);
  direction: ltr;
  display: inline-block;
}

.dash-stats{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.stat-chip{
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 18px;
  font-weight: 700;
  font-size: 0.95rem;
}

.stat-chip .stat-icon{
  width: 28px; height: 28px;
  border-radius: 8px;
  flex-shrink: 0;
  font-size: 0.55rem;
}

.stat-chip.total .stat-num{ color: var(--gold-dim); }
.stat-chip.progress .stat-num{ color: var(--orange); }

/* Orders table — desktop */
.orders-wrap{
  max-width: 1080px;
  margin: 26px auto 80px;
  padding: 0 24px;
}

table.orders-table{
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.orders-table th{
  background: var(--black);
  color: var(--gold-bright);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 16px 14px;
  text-align: center;
}

.orders-table td{
  padding: 15px 14px;
  text-align: center;
  font-size: 0.92rem;
  border-top: 1px solid var(--line);
}

.orders-table tr:hover td{ background: rgba(200,162,77,0.05); }

.status-pill{
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.82rem;
}

.status-cancelled{ color: var(--red); background: var(--red-bg); }
.status-progress{ color: var(--orange); background: var(--orange-bg); }
.status-done{ color: var(--green); background: var(--green-bg); }
.status-unpaid{ color: var(--gold-dim); background: rgba(200,162,77,0.14); }
.status-registered{ color: var(--blue); background: var(--blue-bg); }

/* Orders — mobile stacked cards (built with same table markup via CSS) */
.order-cards{ display: none; }

.pagination{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 22px;
  padding-bottom: 10px;
}

.pagination .page-link{
  padding: 7px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--gold-dim);
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease;
}

.pagination .page-link:hover{ background: rgba(200,162,77,0.08); border-color: var(--gold); }

.pagination .page-current{
  color: var(--text-soft);
  font-size: 0.85rem;
}

/* =========================================================
   ABOUT page
   ========================================================= */
.about-wrap{
  max-width: 1000px;
  margin: 0 auto;
  padding: 10px 24px 80px;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 24px;
}

.about-decor{
  aspect-ratio: 1024/1536;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
}

.about-decor img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-text{
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-soft);
  font-size: 0.98rem;
}

/* ===== Footer ===== */
footer{
  background: var(--black);
  color: #d8d2c4;
  border-radius: 28px 28px 0 0;
  margin-top: 20px;
}

.footer-inner{
  max-width: 1180px;
  margin: 0 auto;
  padding: 46px 32px 30px;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 30px;
}

.footer-col h3{ color: var(--gold-bright); font-size: 1rem; font-weight: 700; margin-bottom: 16px; }
.footer-col p, .footer-col a{ display: block; font-size: 0.92rem; color: #c9c3b6; margin-bottom: 10px; }
.footer-col a:hover{ color: var(--gold-bright); }

.about-box{
  border: 1px solid rgba(200,162,77,0.35);
  border-radius: 12px;
  padding: 16px;
  font-size: 0.88rem;
  color: #b9b3a6;
  min-height: 110px;
}

.trust-badge{ display: flex; align-items: center; gap: 12px; }
.trust-badge .badge-box{
  width: 54px; height: 54px; flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}
.trust-badge .badge-box img{ width: 100%; height: 100%; object-fit: contain; display: block; }
.trust-badge span{ font-size: 0.8rem; color: #a39c8d; }

.footer-bottom{
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  padding: 18px;
  font-size: 0.8rem;
  color: #8a8578;
}

@media (max-width: 860px){
  .footer-inner{ grid-template-columns: 1fr 1fr; }
}

/* =========================================================
   MOBILE — distinct presentation, per page
   ========================================================= */
@media (max-width: 640px){

  /* Header becomes compact with a hamburger button on the right
     that opens a drawer sliding in from the right edge */
  header{ border-radius: 0 0 20px 20px; }
  .header-inner{ padding: 16px 18px 14px; }
  .brand-row{ margin-bottom: 0; justify-content: center; }
  .brand-name{ font-size: 1.3rem; }
  .brand-mark{ height: 28px; width: auto; }
  .menu-btn{ display: flex; left: auto; right: 0; }

  nav{ border-top: none; padding-top: 0; display: block; }

  .nav-overlay{
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(18,17,16,0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
    z-index: 60;
  }

  .nav-links{
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(78vw, 300px);
    background: var(--black);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 90px 26px 26px;
    margin: 0;
    border-top: none;
    box-shadow: -12px 0 34px rgba(0,0,0,0.35);
    transform: translateX(100%);
    transition: transform .32s ease;
    z-index: 70;
    overflow: visible;
  }

  .nav-links a{ width: 100%; text-align: right; padding: 15px 4px; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav-links a:last-child{ border-bottom: none; }
  .nav-links a::after{ display: none; }

  .menu-toggle-cb:checked ~ .nav-overlay{ opacity: 1; pointer-events: auto; }
  .menu-toggle-cb:checked ~ nav .nav-links{ transform: translateX(0); }
  .menu-toggle-cb:checked ~ .menu-btn span{ background: transparent; }
  .menu-toggle-cb:checked ~ .menu-btn span::before{ transform: rotate(45deg) translate(4px, 5px); }
  .menu-toggle-cb:checked ~ .menu-btn span::after{ transform: rotate(-45deg) translate(4px, -5px); }

  .section-title{ padding: 34px 18px 22px; }
  .section-title h1{ font-size: 1.15rem; }

  /* Home: app icon grid (2 columns) instead of rows */
  .app-list{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding: 0 16px 50px;
  }
  .app-card{ flex-direction: column; border-radius: 18px; text-align: center; }
  .app-thumb{ flex: none; width: 100%; aspect-ratio: 1/1; border-right: none; border-bottom: 1px solid var(--line); font-size: 0.75rem; }
  .app-name{ justify-content: center; text-align: center; padding: 14px 10px; font-size: 0.92rem; }

  /* Discount slider: narrower cards, tighter padding, still horizontally scrollable */
  .banner-section{ padding: 0 16px; margin-top: 14px; }
  .banner-outer{ border-radius: 14px; }
  .discount-slider-wrap{ padding: 0; }
  .discount-slider{ padding: 4px 16px 50px; gap: 12px; }
  .discount-card{ width: 190px; }
  .discount-info{ padding: 12px 14px 14px; }

  /* Services */
  .service-list{ padding: 0 18px 50px; gap: 12px; }
  .service-btn{ padding: 16px 18px; font-size: 0.95rem; }

  /* Package */
  .package-row{ flex-wrap: wrap; justify-content: center; text-align: center; padding: 16px; }
  .package-row .btn{ width: 100%; order: 3; }
  .package-qty, .package-price{ flex: 1 1 45%; }

  /* Checkout: single column, summary above form */
  .checkout-wrap{ grid-template-columns: 1fr; padding: 16px 18px 60px; gap: 18px; }
  .checkout-form{ padding: 20px; }
  .order-summary{ padding: 20px; }

  /* Dashboard */
  .dash-top{ flex-direction: column; align-items: flex-start; padding: 26px 18px 6px; }
  .dash-stats{ width: 100%; }
  .stat-chip{ flex: 1 1 auto; justify-content: center; }

  .orders-wrap{ padding: 0 16px; }
  table.orders-table{ display: none; }
  .order-cards{ display: flex; flex-direction: column; gap: 14px; }

  .order-card{
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px 18px;
  }
  .order-card .row{
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed var(--line);
    font-size: 0.9rem;
  }
  .order-card .row:last-child{ border-bottom: none; }
  .order-card .row .k{ color: var(--text-soft); font-weight: 600; }
  .order-card .row .v{ font-weight: 700; }

  /* About — روی موبایل هم همون نسبت ابعاد عمودیِ عکس واقعی رو نگه
     می‌داریم (نه ۱۶:۹ که قبلاً یه عکس بلند رو بد می‌بُرید) */
  .about-wrap{ grid-template-columns: 1fr; padding: 10px 18px 60px; }
  .about-decor{ max-width: 320px; margin: 0 auto; }
  .about-text{ padding: 22px; }
}

@media (prefers-reduced-motion: reduce){ *{ transition: none !important; } }
