@font-face {
  font-family: Vazirmatn;
  src: url("/static/fonts/Vazirmatn-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Vazirmatn;
  src: url("/static/fonts/Vazirmatn-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Vazirmatn;
  src: url("/static/fonts/Vazirmatn-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Vazirmatn;
  src: url("/static/fonts/Vazirmatn-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Vazirmatn;
  src: url("/static/fonts/Vazirmatn-Black.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
:root {
  --navy: #1d2a3e; --orange: #f5a400; --blue: #238bd0; --green: #3cc28a;
  --red: #e45454; --text: #233146; --muted: #7f8997; --line: #e4e9ef;
  --background: #f4f7fa;
  --font: "Vazirmatn", Tahoma, sans-serif;
  font-family: var(--font);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--text);
  background: var(--background);
  font-family: var(--font);
  font-feature-settings: "ss01" on;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
.site-body {
  position: relative; min-height: 100vh; display: grid; place-items: start center;
  padding: 28px 12px 45px; overflow-x: hidden;
  background:
    radial-gradient(circle at 15% 10%, rgba(29,173,214,.25), transparent 32%),
    radial-gradient(circle at 88% 25%, rgba(245,164,0,.20), transparent 28%),
    linear-gradient(145deg, #091626 0%, #132c43 48%, #1a4058 100%);
  background-attachment: fixed;
}
.site-body::before {
  content: ""; position: fixed; inset: 0; opacity: .11; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.15) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.15) 1px, transparent 1px);
  background-size: 28px 28px;
}
.ambient { position: fixed; z-index: 0; border-radius: 50%; filter: blur(8px); opacity: .5; pointer-events: none; animation: float 8s ease-in-out infinite; }
.ambient-one { width: 190px; height: 190px; top: 8%; left: calc(50% - 310px); background: rgba(36,184,222,.28); }
.ambient-two { width: 150px; height: 150px; top: 50%; right: calc(50% - 300px); background: rgba(245,164,0,.22); animation-delay: -3s; }
.ambient-three { width: 120px; height: 120px; bottom: 4%; left: calc(50% - 250px); background: rgba(86,217,164,.18); animation-delay: -5s; }
@keyframes float { 50% { transform: translateY(-18px) translateX(8px); } }
.phone-shell {
  position: relative; z-index: 1; width: min(100%, 440px); overflow: hidden;
  background: rgba(240,248,255,.66); border: 1px solid rgba(255,255,255,.45);
  border-radius: 28px; box-shadow: 0 28px 70px rgba(0,8,20,.38), inset 0 1px rgba(255,255,255,.65);
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
}
.hero {
  position: relative; overflow: hidden; padding: 30px 22px 26px; text-align: center; color: #fff;
  background: linear-gradient(145deg, rgba(16,34,54,.94), rgba(29,61,85,.80));
  border-bottom: 1px solid rgba(255,255,255,.14);
}
.hero::after { content: ""; position: absolute; width: 180px; height: 180px; top: -110px; right: -50px; border-radius: 50%; background: rgba(245,164,0,.16); filter: blur(2px); }
.hero-badge { display: inline-block; padding: 6px 12px; color: #ffe0a0; background: rgba(245,164,0,.12); border: 1px solid rgba(245,190,75,.28); border-radius: 99px; font-size: 10px; font-weight: 800; }
.hero h1 { position: relative; z-index: 1; margin: 12px 0 4px; color: #ffb51b; font-size: 29px; text-shadow: 0 4px 18px rgba(245,164,0,.22); }
.hero h1 i { margin-left: 5px; font-size: 23px; }
.hero > p { margin: 0 0 19px; color: rgba(255,255,255,.66); font-size: 11px; }
.date-switcher { position: relative; z-index: 1; width: 100%; display: grid; grid-template-columns: 38px 1fr 38px; align-items: center; gap: 8px; padding: 8px; color: #fff; background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.18); border-radius: 17px; box-shadow: inset 0 1px rgba(255,255,255,.15); backdrop-filter: blur(12px); }
.date-switcher > a, .date-switcher > .disabled { display: grid; place-items: center; width: 38px; height: 38px; background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; font-size: 14px; transition: .2s; }
.date-switcher a:hover { color: var(--orange); background: rgba(255,255,255,.18); transform: translateY(-1px); }
.date-switcher .disabled { color: rgba(255,255,255,.25); }
.date-value { display: grid; gap: 3px; }
.date-value small { color: rgba(255,255,255,.55); font-size: 9px; }
.date-value b { font-size: 14px; }
.date-value b i { margin-left: 4px; color: #ffca5b; font-size: 13px; }
.content { padding: 16px; }
.glass-card { background: rgba(255,255,255,.48); border: 1px solid rgba(255,255,255,.68); box-shadow: 0 10px 28px rgba(20,46,65,.08), inset 0 1px rgba(255,255,255,.85); backdrop-filter: blur(14px); }
.program {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; text-align: center;
  padding: 22px 18px 20px; margin-bottom: 22px; border-radius: 18px;
  color: #fff;
  background:
    linear-gradient(115deg, transparent 0%, transparent 38%, rgba(255,255,255,.28) 50%, transparent 62%, transparent 100%),
    linear-gradient(155deg, #0f6e8c 0%, #1488a8 42%, #1aa3b8 100%);
  background-size: 220% 100%, 100% 100%;
  border: 1px solid rgba(255,255,255,.22);
  box-shadow:
    0 16px 36px rgba(15,90,110,.28),
    0 0 0 0 rgba(26,163,184,.35),
    inset 0 1px rgba(255,255,255,.28);
  animation:
    programIn .75s cubic-bezier(.22, 1, .36, 1) both,
    programShine 3.6s ease-in-out infinite .75s,
    programGlow 2.8s ease-in-out infinite .75s;
}
.program::before {
  content: ""; position: absolute; width: 180px; height: 180px;
  top: -90px; right: -50px; border-radius: 50%;
  background: rgba(255,255,255,.12); pointer-events: none;
  animation: programOrb 5.5s ease-in-out infinite;
}
.program::after {
  content: ""; position: absolute; width: 120px; height: 120px;
  bottom: -60px; left: -30px; border-radius: 50%;
  background: rgba(10,50,70,.2); pointer-events: none;
  animation: programOrb 6.5s ease-in-out infinite reverse;
}
.program-icon {
  position: relative; z-index: 1;
  display: grid; place-items: center;
  width: 54px; height: 54px; flex: 0 0 auto;
  color: #0f6e8c;
  background: rgba(255,255,255,.95);
  border-radius: 16px; font-size: 25px;
  box-shadow: 0 8px 18px rgba(8,40,55,.18);
  animation: programIcon 2.6s ease-in-out infinite .9s;
}
.program > span:nth-child(2) {
  position: relative; z-index: 1;
  display: grid; gap: 6px; justify-items: center; width: 100%;
}
.program small {
  color: rgba(255,255,255,.78); font-size: 12px; font-weight: 700;
  animation: programLabel 2.6s ease-in-out infinite 1s;
}
.program b {
  color: #fff; font-size: 19px; font-weight: 900; line-height: 1.4;
  text-shadow: 0 2px 14px rgba(0,40,55,.25);
  animation: programTitle 2.6s ease-in-out infinite 1.05s;
}
.program .live-dot { position: relative; z-index: 1; }
.live-dot {
  width: 11px; height: 11px; background: #7dffc2; border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(125,255,194,.22); animation: pulse 2s infinite;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 11px rgba(125,255,194,0); } }
@keyframes programIn {
  from { opacity: 0; transform: translateY(18px) scale(.92); filter: blur(4px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
@keyframes programShine {
  0%, 100% { background-position: 120% 0, 0 0; }
  50% { background-position: -20% 0, 0 0; }
}
@keyframes programGlow {
  0%, 100% {
    box-shadow:
      0 16px 36px rgba(15,90,110,.28),
      0 0 0 0 rgba(26,163,184,.0),
      inset 0 1px rgba(255,255,255,.28);
  }
  50% {
    box-shadow:
      0 22px 44px rgba(15,90,110,.36),
      0 0 28px 4px rgba(90,220,235,.28),
      inset 0 1px rgba(255,255,255,.4);
  }
}
@keyframes programOrb {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: .9; }
  50% { transform: translate(-18px, 14px) scale(1.15); opacity: 1; }
}
@keyframes programIcon {
  0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
  40% { transform: translateY(-5px) rotate(-4deg) scale(1.06); }
  70% { transform: translateY(-2px) rotate(3deg) scale(1.03); }
}
@keyframes programLabel {
  0%, 100% { opacity: .78; letter-spacing: .2px; }
  50% { opacity: 1; letter-spacing: .8px; }
}
@keyframes programTitle {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.035); }
}
@media (prefers-reduced-motion: reduce) {
  .program,
  .program::before,
  .program::after,
  .program-icon,
  .program small,
  .program b,
  .live-dot {
    animation: none !important;
  }
}
.list-heading { display: flex; align-items: center; justify-content: space-between; margin: 0 3px 12px; }
.list-heading h2 { margin: 0; font-size: 15px; }
.list-heading p { margin: 4px 0 0; color: #7b8898; font-size: 9px; }
.list-heading > span { padding: 6px 9px; color: #147550; background: rgba(53,194,132,.13); border: 1px solid rgba(53,194,132,.18); border-radius: 99px; font-size: 9px; font-weight: 800; }
.products { display: grid; gap: 10px; }
.product-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 63px; padding: 12px 14px; background: rgba(255,255,255,.56); border: 1px solid rgba(255,255,255,.80); border-radius: 16px; box-shadow: 0 8px 22px rgba(24,51,71,.07), inset 0 1px rgba(255,255,255,.8); transition: transform .2s, box-shadow .2s; }
.product-card:hover { transform: translateY(-2px); box-shadow: 0 13px 27px rgba(24,51,71,.12), inset 0 1px rgba(255,255,255,.9); }
.product-info { display: flex; align-items: center; gap: 10px; }
.product-icon { display: grid; place-items: center; width: 34px; height: 34px; color: #1686c4; background: linear-gradient(145deg, rgba(35,139,208,.16), rgba(35,139,208,.07)); border: 1px solid rgba(35,139,208,.14); border-radius: 11px; font-size: 15px; }
.product-name { font-size: 12px; font-weight: 800; }
.price-group { display: grid; justify-items: end; direction: ltr; }
.product-price { color: #172d43; font-size: 17px; font-weight: 900; letter-spacing: .3px; }
.price-group small { color: #8692a0; font-size: 8px; }
.product-card.unavailable { background: rgba(240,243,246,.48); color: #536072; }
.sold-out, .not-recorded { padding: 7px 10px; border-radius: 9px; font-size: 10px; font-weight: 800; }
.sold-out i { margin-left: 4px; }
.sold-out { color: #9b4d56; background: rgba(229,84,84,.09); border: 1px solid rgba(229,84,84,.12); }
.not-recorded { color: #8a6a20; background: rgba(255,204,71,.14); border: 1px solid rgba(209,159,34,.13); }
.not-recorded-card { opacity: .8; }
.copy-note { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px; margin: 12px 0 17px; color: #526377; cursor: pointer; background: rgba(255,255,255,.34); border: 1px dashed rgba(74,104,130,.24); border-radius: 13px; font-size: 10px; transition: .2s; }
.copy-note:hover { color: #167eb8; background: rgba(255,255,255,.58); }
.copy-note i { color: #1686c4; font-size: 13px; }
.rules { padding: 16px; margin: 0; border-radius: 18px; }
.card-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 13px; text-align: right; }
.card-heading > span { display: grid; place-items: center; width: 37px; height: 37px; flex: 0 0 auto; color: #d58b00; background: rgba(245,164,0,.12); border-radius: 11px; font-size: 17px; }
.card-heading h2 { margin: 0; font-size: 14px; }
.card-heading p { margin: 3px 0 0; color: #8793a1; font-size: 9px; }
.rules ul { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.rules li { display: flex; align-items: flex-start; gap: 7px; padding: 9px 10px; background: rgba(255,255,255,.42); border-radius: 10px; font-size: 10px; line-height: 1.8; }
.rules li i { margin-top: 2px; flex: 0 0 auto; font-size: 12px; }
.rules li i.success { color: #25a86f; }
.rules li i.warning { color: #e09a16; }
.support { padding: 16px; margin-top: 13px; text-align: center; border-radius: 18px; }
.support > p { margin: 0 0 12px; color: var(--muted); font-size: 10px; }
.call { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; margin-top: 8px; color: #fff; border-radius: 12px; font-size: 11px; transition: transform .2s; box-shadow: 0 7px 18px rgba(22,54,72,.12); }
.call:hover { transform: translateY(-2px); }
.call b { direction: ltr; font-size: 13px; }
.call span i { margin-left: 5px; font-size: 13px; }
.call.green { background: linear-gradient(135deg, #3bc68b, #22a972); }
.call.dark { background: linear-gradient(135deg, #4e6077, #34465e); }
footer { padding: 20px 4px 5px; text-align: center; font-size: 10px; color: #637285; }
footer p b { direction: ltr; display: inline-block; color: #263b50; }
.socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.socials a, .socials span {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 7px 9px; color: #fff; background: rgba(35,139,208,.9);
  border: 1px solid rgba(255,255,255,.28); border-radius: 99px;
  box-shadow: 0 5px 12px rgba(30,67,93,.1); font-style: normal; font-size: 11px;
}
.socials a:hover { transform: translateY(-1px); opacity: .95; }
.socials a:nth-child(2), .socials span:nth-child(2) { background: #f39323; }
.socials a:nth-child(3), .socials span:nth-child(3) { background: #7143aa; }
.socials a:nth-child(4), .socials span:nth-child(4) { background: #e5435e; }
.socials a:nth-child(5), .socials span:nth-child(5) { background: #1faa59; }
.empty-state { padding: 30px 15px; text-align: center; color: var(--muted); background: rgba(255,255,255,.5); border: 1px solid rgba(255,255,255,.7); border-radius: 16px; }
.notice { padding: 12px 16px; margin-bottom: 14px; border-radius: 8px; font-size: 14px; }
.notice.success { color: #126b48; background: #e4f8ef; border: 1px solid #9fe0c5; }
.notice.error { color: #9a2525; background: #ffeded; border: 1px solid #efb2b2; }
.login-shell {
  position: relative; z-index: 1;
  width: min(100%, 440px); margin: 8vh auto 4vh; padding: 0 8px;
}
.login-glow {
  position: absolute; border-radius: 50%; filter: blur(18px);
  pointer-events: none; z-index: 0;
}
.login-glow-a {
  width: 220px; height: 220px; top: -60px; right: -40px;
  background: rgba(36,184,222,.35);
}
.login-glow-b {
  width: 180px; height: 180px; bottom: -50px; left: -30px;
  background: rgba(243,147,35,.28);
}
.login-card {
  position: relative; z-index: 1;
  width: 100%; padding: 34px 32px 28px;
  text-align: center;
  color: #1d2a3e;
  background:
    linear-gradient(180deg, rgba(255,255,255,.97), rgba(248,251,253,.96));
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 22px;
  box-shadow:
    0 24px 60px rgba(8, 18, 32, .35),
    inset 0 1px 0 rgba(255,255,255,.8);
  backdrop-filter: blur(10px);
}
.login-brand {
  display: inline-flex; align-items: center; gap: 12px;
  margin: 0 auto 18px; text-align: right;
}
.login-brand-mark {
  display: inline-grid; place-items: center;
  width: 52px; height: 52px; border-radius: 16px;
  color: #fff;
  background: linear-gradient(145deg, #3d4f63, #1f3348);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 10px 22px rgba(20, 35, 55, .28);
  font-size: 23px;
}
.login-brand-mark i { line-height: 1; }
.login-brand strong {
  display: block; font-size: 18px; font-weight: 900; line-height: 1.2;
}
.login-brand small {
  display: block; margin-top: 3px; color: #6b7c90; font-size: 12px; font-weight: 700;
}
.login-card h1 {
  margin: 0 0 8px; font-size: 26px; font-weight: 900; letter-spacing: -.3px;
}
.login-lead {
  margin: 0 auto 20px; max-width: 28ch;
  color: #667386; font-size: 13px; line-height: 1.7;
}
.login-notice { text-align: right; margin-bottom: 14px; }
.login-form {
  display: grid; gap: 14px; margin: 0 0 16px; text-align: right;
}
.login-form label {
  display: grid; gap: 7px; font-size: 13px; font-weight: 700;
}
.login-form label > span:first-child { color: #334155; }
.login-field {
  position: relative; display: block;
}
.login-field i {
  position: absolute; top: 50%; left: 14px;
  transform: translateY(-50%);
  color: #8aa0b5; font-size: 16px; pointer-events: none;
}
.login-field input {
  width: 100%; padding: 13px 14px 13px 42px;
  direction: ltr; text-align: left;
  color: #0f172a; background: #f4f7fa;
  border: 1px solid #d5dee8; border-radius: 12px;
  outline: none; transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.login-field input::placeholder { color: #9aabbc; letter-spacing: .08em; }
.login-field input:focus {
  background: #fff; border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(32,140,199,.14);
}
.login-submit {
  margin-top: 6px; min-height: 48px; border-radius: 12px;
  font-size: 15px; letter-spacing: -.2px;
  box-shadow: 0 10px 22px rgba(23,111,160,.28);
}
.login-card label, .settings-grid label { display: grid; gap: 7px; font-size: 13px; font-weight: 700; }
input, select, textarea { width: 100%; padding: 11px 12px; color: var(--text); background: #fff; border: 1px solid #d8e0e8; border-radius: 8px; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(32,140,199,.12); }
input:invalid:not(:placeholder-shown), textarea:invalid:not(:placeholder-shown) { border-color: var(--red); }
.price-input { direction: ltr; text-align: right; font-weight: 800; }
.price-field { display: inline-flex; align-items: center; gap: 8px; }
.price-field .price-input { width: 150px; min-width: 0 !important; flex: 0 0 auto; }
.price-field .price-unit-input { width: 84px; min-width: 0 !important; flex: 0 0 auto; text-align: center; color: #536072; font-weight: 700; }
.price-table .availability-cell { white-space: nowrap; }
.primary-button { width: 100%; margin-top: 12px; padding: 12px 18px; color: #fff; font-weight: 700; cursor: pointer; border: 0; border-radius: 8px; background: linear-gradient(135deg,var(--blue),#176fa0); }
.primary-button.fit { width: auto; min-width: 170px; }
.admin-body {
  min-height: 100vh;
  background: #edf2f6;
}
.admin-shell {
  --sidebar-width: 248px;
  --sidebar-collapsed: 84px;
  --sidebar-ease: cubic-bezier(.22, 1, .36, 1);
  --sidebar-duration: .42s;
  display: flex; min-height: 100vh; align-items: stretch;
}
html.pref-sidebar-collapsed .admin-shell {
  --sidebar-width: var(--sidebar-collapsed);
}
html.pref-sidebar-collapsed .admin-shell .brand-text,
html.pref-sidebar-collapsed .admin-shell .toggle-label,
html.pref-sidebar-collapsed .admin-shell .nav-label {
  max-width: 0;
  opacity: 0;
  margin: 0;
}
.admin-shell.sidebar-no-anim,
.admin-shell.sidebar-no-anim * {
  transition: none !important;
}
.admin-sidebar {
  position: sticky; top: 0; z-index: 20;
  display: flex; flex-direction: column; gap: 14px;
  width: var(--sidebar-width); flex: 0 0 var(--sidebar-width);
  height: 100vh; padding: 16px 12px;
  color: #fff;
  background:
    radial-gradient(420px 220px at 100% 0%, rgba(243,147,35,.18), transparent 55%),
    linear-gradient(180deg, #1a2b40 0%, #132233 100%);
  border-left: 1px solid rgba(255,255,255,.08);
  box-shadow: -8px 0 28px rgba(14, 24, 38, .16);
  transition:
    width var(--sidebar-duration) var(--sidebar-ease),
    flex-basis var(--sidebar-duration) var(--sidebar-ease),
    padding var(--sidebar-duration) var(--sidebar-ease);
  overflow: hidden;
  will-change: width, flex-basis;
}
.admin-shell.sidebar-collapsed {
  --sidebar-width: var(--sidebar-collapsed);
}
.admin-shell.sidebar-collapsed .admin-sidebar {
  padding-left: 10px; padding-right: 10px;
}
.sidebar-top { display: grid; gap: 10px; }
.admin-sidebar .brand {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 46px; padding: 4px 6px;
  color: #fff; font-size: 18px; font-weight: 900; white-space: nowrap;
  transition: gap var(--sidebar-duration) var(--sidebar-ease), justify-content var(--sidebar-duration) var(--sidebar-ease);
}
.admin-sidebar .brand-mark {
  display: inline-grid; place-items: center; flex: 0 0 auto;
  width: 38px; height: 38px; border-radius: 12px;
  color: #fff;
  background: linear-gradient(145deg, #4a5f76, #24384f);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 6px 16px rgba(0,0,0,.22);
  font-size: 17px;
}
.admin-sidebar .brand-mark i { line-height: 1; color: #f3b45a; }
.admin-sidebar .brand-text,
.admin-sidebar .toggle-label,
.admin-sidebar .nav-label {
  display: inline-block;
  max-width: 160px;
  opacity: 1;
  overflow: hidden;
  white-space: nowrap;
  vertical-align: middle;
  transition:
    max-width var(--sidebar-duration) var(--sidebar-ease),
    opacity .28s ease,
    margin var(--sidebar-duration) var(--sidebar-ease);
}
.sidebar-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  width: 100%; min-height: 40px; padding: 8px 10px;
  color: #d7e4f0; cursor: pointer;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px; font-size: 12px; font-weight: 700;
  transition:
    background .18s ease, color .18s ease, gap var(--sidebar-duration) var(--sidebar-ease),
    justify-content var(--sidebar-duration) var(--sidebar-ease), padding var(--sidebar-duration) var(--sidebar-ease);
}
.sidebar-toggle:hover { background: rgba(255,255,255,.12); color: #fff; }
.sidebar-toggle i {
  flex: 0 0 auto; font-size: 16px;
  transition: transform var(--sidebar-duration) var(--sidebar-ease);
}
.admin-section-nav {
  display: grid; gap: 6px; flex: 1 1 auto; align-content: start;
  overflow-y: auto; overflow-x: hidden; padding: 2px;
  scrollbar-width: thin;
}
.admin-nav-link,
.sidebar-action {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 10px 12px;
  color: #c9d7e6; background: transparent; border: 1px solid transparent;
  border-radius: 12px; font-size: 13px; font-weight: 700; white-space: nowrap;
  transition:
    background .18s ease, color .18s ease, border-color .18s ease,
    gap var(--sidebar-duration) var(--sidebar-ease),
    padding var(--sidebar-duration) var(--sidebar-ease),
    justify-content var(--sidebar-duration) var(--sidebar-ease);
}
.admin-nav-link i,
.sidebar-action i {
  display: inline-grid; place-items: center;
  width: 22px; flex: 0 0 22px; font-size: 16px; opacity: .95;
}
.admin-nav-link:hover,
.sidebar-action:hover {
  color: #fff; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.1);
}
.admin-nav-link.active {
  color: #17324a; background: #fff; border-color: #fff;
  box-shadow: 0 8px 18px rgba(8, 18, 32, .22);
}
.admin-nav-link.active i { color: var(--orange); opacity: 1; }
.sidebar-foot {
  display: grid; gap: 6px; padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.sidebar-panel {
  display: flex; flex-direction: column; gap: 14px; flex: 1 1 auto; min-height: 0;
}
.sidebar-backdrop { display: none; }
.sidebar-foot form { margin: 0; }
.sidebar-action {
  width: 100%; cursor: pointer;
}
.sidebar-action.logout-action {
  color: #ffd7d7; border-color: rgba(255,120,120,.2); background: rgba(220,70,70,.12);
}
.sidebar-action.logout-action:hover { background: rgba(220,70,70,.22); color: #fff; }
.admin-shell.sidebar-collapsed .brand-text,
.admin-shell.sidebar-collapsed .toggle-label,
.admin-shell.sidebar-collapsed .nav-label {
  max-width: 0;
  opacity: 0;
  margin: 0;
  pointer-events: none;
}
.admin-shell.sidebar-collapsed .admin-sidebar .brand,
.admin-shell.sidebar-collapsed .sidebar-toggle,
.admin-shell.sidebar-collapsed .admin-nav-link,
.admin-shell.sidebar-collapsed .sidebar-action {
  justify-content: center;
  gap: 0;
  padding-left: 10px;
  padding-right: 10px;
}
.admin-shell.sidebar-collapsed .sidebar-toggle i {
  transform: scaleX(-1);
}
.admin-main {
  flex: 1 1 auto; min-width: 0;
  display: flex; flex-direction: column;
}
.admin-topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 22px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid #e4ebf1;
}
.topbar-copy { display: grid; gap: 2px; }
.topbar-copy strong { font-size: 15px; color: var(--navy); }
.topbar-copy span { color: var(--muted); font-size: 12px; }
.admin-header-actions {
  display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 10px; font-size: 13px;
}
.admin-user {
  padding: 7px 12px; color: #445468;
  background: #f2f6f9; border: 1px solid #e0e7ed;
  border-radius: 999px; font-size: 11px; font-weight: 700;
}
.link-button { padding: 0; color: #fff; cursor: pointer; background: none; border: 0; }
.admin-container {
  width: min(1200px, 100%);
  margin: 22px 20px 60px;
  margin-inline-end: auto;
}
.calculator-card { overflow: hidden; }
.calculator-layout {
  display: grid; grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 22px; align-items: start;
}
.calc-panel {
  padding: 16px; border-radius: 18px;
  background:
    radial-gradient(420px 180px at 0% 0%, rgba(243,147,35,.16), transparent 55%),
    linear-gradient(165deg, #1b2c40, #132233 70%);
  box-shadow: 0 16px 34px rgba(17, 30, 46, .18);
}
.calc-screen {
  margin-bottom: 14px; padding: 16px 16px 14px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px; text-align: left; direction: ltr;
}
.calc-expression {
  min-height: 18px; color: rgba(255,255,255,.55); font-size: 12px; font-weight: 700;
}
.calc-display {
  margin-top: 4px; color: #fff; font-size: 34px; font-weight: 900;
  letter-spacing: .3px; word-break: break-all; line-height: 1.15;
}
.calc-pad {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
}
.calc-btn {
  min-height: 52px; border: 0; border-radius: 12px; cursor: pointer;
  color: #edf3f9; background: rgba(255,255,255,.08);
  font-size: 18px; font-weight: 800;
  transition: transform .12s ease, background .12s ease;
}
.calc-btn:hover { background: rgba(255,255,255,.14); }
.calc-btn:active { transform: scale(.97); }
.calc-btn.calc-op { color: #ffd08a; background: rgba(243,147,35,.16); }
.calc-btn.calc-action { color: #b9d8ef; background: rgba(70,140,190,.18); }
.calc-btn.calc-eq {
  grid-column: span 2;
  color: #17324a; background: linear-gradient(135deg, #ffc56a, var(--orange));
  box-shadow: 0 8px 18px rgba(243,147,35,.28);
}
.calc-tools { display: grid; gap: 14px; }
.calc-tool {
  padding: 16px; background: #f6f9fc; border: 1px solid #e4ebf2; border-radius: 14px;
}
.calc-tool-head {
  display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px;
}
.calc-tool-head i {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: 12px;
  color: var(--blue); background: #e8f4fb; font-size: 18px;
}
.calc-tool-head strong { display: block; font-size: 14px; }
.calc-tool-head p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.calc-tool-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.calc-tool-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.calc-tool-grid label {
  display: grid; gap: 6px; font-size: 12px; font-weight: 700; color: #445468;
}
.calc-tool-grid input {
  background: #fff; border-radius: 10px; text-align: left;
}
.calc-tool-result {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 12px; padding: 12px 14px;
  background: #fff; border: 1px solid #e2eaf1; border-radius: 12px;
}
.calc-tool-result span { color: #667386; font-size: 12px; font-weight: 700; }
.calc-tool-result b { color: var(--navy); font-size: 18px; font-weight: 900; }
.calc-tool.tip {
  display: flex; align-items: flex-start; gap: 10px;
  color: #5d6f84; background: #fff8eb; border-color: #f0dfb7;
}
.calc-tool.tip i { color: #c9851d; font-size: 18px; margin-top: 2px; }
.calc-tool.tip p { margin: 0; font-size: 12px; line-height: 1.7; }
.welcome { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.welcome h1 { margin: 0; font-size: 27px; } .welcome p { margin: 7px 0 0; color: var(--muted); }
.welcome span, .selected-date { padding: 9px 13px; background: #fff; border-radius: 8px; box-shadow: 0 2px 10px rgba(20,35,53,.06); }
.admin-card { padding: 22px; margin-top: 20px; background: #fff; border-radius: 13px; box-shadow: 0 4px 18px rgba(28,44,65,.06); }
.price-editor { border-top: 4px solid var(--blue); }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 18px; }
.section-title h2 { margin: 0; font-size: 19px; } .section-title p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.date-loader { display: flex; align-items: end; flex-wrap: wrap; gap: 8px; }
.date-loader input { min-width: 160px; }
.jalali-picker { display: flex; align-items: end; flex-wrap: wrap; gap: 8px; }
.jalali-field { display: grid; gap: 4px; min-width: 0; }
.jalali-field span { color: #667386; font-size: 11px; font-weight: 800; }
.jalali-field select { min-width: 96px; padding: 9px 10px; }
.cleanup-form {
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between;
  gap: 14px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line);
}
.cleanup-copy { display: grid; gap: 4px; }
.cleanup-copy strong { font-size: 14px; }
.cleanup-copy p { margin: 0; color: var(--muted); font-size: 12px; }
.cleanup-controls { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; }
.archive-pagination {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line);
}
.pagination-meta { color: #667386; font-size: 12px; font-weight: 700; }
.pagination-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.page-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 34px; height: 34px; padding: 0 10px;
  color: #1d2a3e; background: #fff; border: 1px solid #d8e0e8; border-radius: 8px;
  font-size: 12px; font-weight: 800;
}
.page-btn:hover { border-color: var(--blue); color: var(--blue); }
.page-btn.current { color: #fff; background: var(--blue); border-color: var(--blue); }
.page-btn.disabled { color: #9aa6b5; background: #f3f6f9; pointer-events: none; }
.page-ellipsis { color: #9aa6b5; padding: 0 2px; }
.settings-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.settings-grid .wide { grid-column: 1/-1; } textarea { resize: vertical; }
.socials-editor {
  display: grid; gap: 12px; padding: 14px;
  background: #f7fafc; border: 1px solid #e4ebf1; border-radius: 10px;
}
.socials-editor-head strong { display: block; font-size: 13px; }
.socials-editor-head p { margin: 5px 0 0; color: var(--muted); font-size: 12px; font-weight: 500; }
.social-row {
  display: grid; grid-template-columns: 28px 1.1fr .9fr 1.4fr;
  align-items: end; gap: 10px;
}
.social-row-index {
  display: inline-flex; align-items: center; justify-content: center;
  height: 42px; color: #667386; font-size: 12px; font-weight: 800;
}
.social-row label { display: grid; gap: 6px; font-size: 12px; font-weight: 700; }
.password-grid { display: grid; grid-template-columns: repeat(3,1fr); align-items: end; gap: 14px; }
.password-grid label { display: grid; gap: 7px; font-size: 13px; font-weight: 700; }
.password-grid .primary-button { margin-top: 0; }
.permission-note { padding: 12px 14px; margin-top: 15px; color: #67551e; background: #fff8dd; border: 1px solid #eadb9a; border-radius: 8px; font-size: 13px; }
.role-guide { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.role-guide span { padding: 8px 10px; color: #536276; background: #f3f7fa; border: 1px solid #e0e7ed; border-radius: 8px; font-size: 11px; }
.new-admin { display: grid; grid-template-columns: 1.25fr 1fr 1.5fr auto; align-items: end; gap: 10px; padding-top: 18px; }
.new-admin .primary-button { margin-top: 0; }
.admins-table select { min-width: 150px; padding: 8px; }
.admins-table input[type="password"] { min-width: 160px; }
.small-button:disabled { cursor: not-allowed; opacity: .45; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; white-space: nowrap; }
th, td { padding: 11px 9px; text-align: right; border-bottom: 1px solid var(--line); font-size: 13px; }
th { color: #59677b; background: #f7f9fb; }
td input { min-width: 130px; padding: 8px; } td input[type="checkbox"] { min-width: auto; width: 18px; height: 18px; }
.actions, .availability-cell { display: flex; align-items: center; gap: 7px; }
.small-button { display: inline-block; padding: 8px 11px; color: #fff; cursor: pointer; background: var(--blue); border: 0; border-radius: 6px; }
.small-button.danger { background: var(--red); }
.empty { padding: 30px; color: var(--muted); text-align: center; }
.new-product { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 10px; padding-top: 18px; }
.toggle { position: relative; width: 42px; height: 23px; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle span { position: absolute; inset: 0; cursor: pointer; background: #c6ccd4; border-radius: 99px; transition: .2s; }
.toggle span:before { content: ""; position: absolute; width: 17px; height: 17px; right: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; }
.toggle input:checked + span { background: var(--green); }
.toggle input:checked + span:before { transform: translateX(-19px); }
@media (max-width:800px) {
  .settings-grid, .password-grid { grid-template-columns: 1fr 1fr; }
  .new-admin { grid-template-columns: 1fr 1fr; }
  .section-title { align-items: flex-start; flex-direction: column; }
  .date-loader { width: 100%; }
  .admin-shell,
  html.pref-sidebar-collapsed .admin-shell {
    --sidebar-width: 100%;
    --sidebar-collapsed: 100%;
    flex-direction: column;
  }
  html.pref-sidebar-collapsed .admin-shell .brand-text,
  .admin-shell .brand-text {
    max-width: 160px; opacity: 1; margin: 0;
  }
  html.pref-sidebar-collapsed .admin-shell .toggle-label {
    max-width: 70px; opacity: 1;
  }
  html.pref-sidebar-collapsed .admin-shell .nav-label {
    max-width: 160px; opacity: 1; margin: 0;
  }
  .admin-sidebar,
  .admin-shell.sidebar-collapsed .admin-sidebar {
    position: sticky; top: 0; z-index: 40;
    width: 100%; flex: 0 0 auto; height: auto;
    padding: 8px 12px;
    border-left: 0; border-bottom: 1px solid rgba(255,255,255,.1);
    box-shadow: 0 6px 18px rgba(14, 24, 38, .16);
    overflow: visible;
  }
  .sidebar-top {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
  }
  .admin-sidebar .brand {
    min-width: 0; flex: 1 1 auto; justify-content: flex-start !important;
    gap: 10px !important; padding: 2px 4px !important;
  }
  .sidebar-toggle {
    width: auto; flex: 0 0 auto; min-width: 42px;
    justify-content: center !important; gap: 6px !important;
    padding: 8px 10px !important;
  }
  .sidebar-toggle .toggle-label {
    max-width: 70px !important; opacity: 1 !important;
  }
  .sidebar-panel {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 10px; left: 10px;
    gap: 8px; padding: 10px;
    background: linear-gradient(180deg, #1d3048, #152636);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(8, 16, 28, .35);
    max-height: min(72vh, 520px);
    overflow: auto;
  }
  .admin-shell:not(.sidebar-collapsed) .sidebar-panel {
    display: flex; flex-direction: column;
    animation: mobile-menu-in .28s var(--sidebar-ease);
  }
  .admin-section-nav {
    display: grid; gap: 4px;
    flex: 0 0 auto; overflow: visible; padding: 0; margin: 0;
  }
  .admin-nav-link,
  .sidebar-action {
    width: 100%; min-height: 44px; padding: 10px 12px !important;
    justify-content: flex-start !important; gap: 10px !important;
  }
  .admin-nav-link .nav-label,
  .sidebar-action .nav-label {
    max-width: 200px !important; opacity: 1 !important; margin: 0 !important;
  }
  .sidebar-foot {
    display: grid; gap: 4px; padding-top: 8px; margin: 0;
    border-top: 1px solid rgba(255,255,255,.1);
  }
  .sidebar-foot form { margin: 0; }
  .sidebar-backdrop {
    display: none;
    position: fixed; inset: 0; z-index: 35;
    background: rgba(10, 18, 30, .45);
    backdrop-filter: blur(2px);
    border: 0; padding: 0;
  }
  body.menu-open .sidebar-backdrop {
    display: block;
  }
  .admin-topbar { display: none; }
  .admin-container { width: min(100% - 24px, 1200px); margin: 14px auto 40px; }
  .welcome h1 { font-size: 23px; }
}

@keyframes mobile-menu-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width:640px) {
  .admin-sidebar,
  .admin-shell.sidebar-collapsed .admin-sidebar {
    padding: 8px 10px;
  }
  .admin-sidebar .brand { font-size: 16px; }
  .admin-sidebar .brand-mark { width: 34px; height: 34px; border-radius: 10px; font-size: 15px; }
  .sidebar-toggle .toggle-label { display: none; }
  .admin-header-actions { gap: 8px; }
  .calculator-layout { grid-template-columns: 1fr; }
  .calc-tool-grid, .calc-tool-grid-3 { grid-template-columns: 1fr; }
  .calc-display { font-size: 30px; }
  .admin-container { width: 100%; margin: 0 0 35px; padding: 0 12px; }
  .welcome { padding: 18px 15px 12px; margin: 0; background: #fff; border-bottom: 1px solid var(--line); }
  .welcome h1 { font-size: 21px; }
  .welcome p { font-size: 12px; line-height: 1.7; }
  .notice { margin: 12px; }
  .admin-card { padding: 15px; margin: 12px; border-radius: 12px; }
  .section-title { margin-bottom: 14px; }
  .section-title h2 { font-size: 17px; }
  .section-title p { font-size: 12px; line-height: 1.7; }
  .date-loader { display: grid; grid-template-columns: 1fr; }
  .jalali-picker { display: grid; grid-template-columns: 1fr 1.4fr 1fr; width: 100%; }
  .date-loader input, .date-loader button, .jalali-field select { width: 100%; min-width: 0; }
  .cleanup-form, .cleanup-controls { display: grid; grid-template-columns: 1fr; }
  .cleanup-controls .jalali-picker { display: grid; grid-template-columns: 1fr 1.4fr 1fr; }
  .archive-pagination { align-items: stretch; flex-direction: column; }
  .pagination-nav { width: 100%; justify-content: center; }
  .selected-date { display: block; width: 100%; text-align: center; }
  .table-wrap { overflow: visible; }

  .responsive-table,
  .responsive-table tbody,
  .responsive-table tr,
  .responsive-table td { display: block; width: 100%; }
  .responsive-table { white-space: normal; }
  .responsive-table thead { display: none; }
  .responsive-table tr {
    padding: 13px;
    margin-bottom: 12px;
    background: #f8fafc;
    border: 1px solid #e3e9ef;
    border-radius: 10px;
    box-shadow: 0 2px 7px rgba(28,44,65,.04);
  }
  .responsive-table td {
    display: grid;
    grid-template-columns: minmax(95px, .8fr) minmax(0, 1.35fr);
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 8px 0;
    border-bottom: 1px dashed #dfe5eb;
    text-align: left;
  }
  .responsive-table td:last-child { padding-bottom: 0; border-bottom: 0; }
  .responsive-table td::before {
    content: attr(data-label);
    color: #667386;
    font-size: 11px;
    font-weight: 800;
    text-align: right;
  }
  .responsive-table td.mobile-title {
    display: block;
    min-height: 0;
    padding-top: 0;
    color: var(--navy);
    font-size: 15px;
    font-weight: 900;
    text-align: right;
  }
  .responsive-table td.mobile-title::before { display: none; }
  .responsive-table td input:not([type="checkbox"]) {
    min-width: 0;
    width: 100%;
    padding: 10px;
  }
  .responsive-table td input[type="checkbox"] { justify-self: end; }
  .responsive-table td select { min-width: 0; width: 100%; }
  .responsive-table .price-field { display: flex; width: 100%; }
  .responsive-table .price-field .price-input { width: auto; flex: 1 1 auto; }
  .responsive-table .price-field .price-unit-input { width: 76px; flex: 0 0 auto; }
  .responsive-table .availability-cell,
  .responsive-table .actions {
    display: grid;
    grid-template-columns: minmax(95px, .8fr) minmax(0, 1.35fr);
  }
  .responsive-table .availability-cell .toggle { grid-column: 2; grid-row: 1; justify-self: end; }
  .responsive-table .availability-cell > span:last-child { grid-column: 2; grid-row: 1; justify-self: start; margin-left: 52px; }
  .responsive-table .actions form { display: contents; }
  .responsive-table .actions .small-button { width: 100%; text-align: center; }
  .archive-table td { font-weight: 700; }
  .archive-table td .small-button { width: 100%; text-align: center; }
  .empty { display: block !important; padding: 24px !important; text-align: center !important; }
  .empty::before { display: none; }
  .mobile-full { width: 100% !important; margin-top: 5px; }
  .new-product { padding-top: 5px; }
  .new-product .primary-button { width: 100%; }
  .new-admin { padding-top: 5px; }
  .new-admin .primary-button { width: 100%; }
  .settings-grid, .password-grid { gap: 11px; }
  .settings-grid label, .password-grid label { font-size: 12px; }
  .social-row { grid-template-columns: 24px 1fr; }
  .social-row label:nth-child(n+3) { grid-column: 2; }
  .admin-user { display: none; }
  .topbar-copy span { display: none; }
}

@media (max-width:520px) {
  .phone-shell { border-radius: 0; } .site-body { padding: 0; }
  .settings-grid, .password-grid, .new-product, .new-admin { grid-template-columns: 1fr; }
  .welcome span { display: none; }
  .login-shell { margin: 5vh auto 3vh; }
  .login-card { padding: 28px 20px 22px; border-radius: 18px; }
  .login-card h1 { font-size: 23px; }
}
