/* ============================================================
   تاپ‌جاب — استایل کلی (معادل طراحی Next.js)
   ============================================================ */

@font-face { font-family: 'Vazirmatn'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/vazirmatn-arabic-400-normal.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }
@font-face { font-family: 'Vazirmatn'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/vazirmatn-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+2000-206F; }
@font-face { font-family: 'Vazirmatn'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('../fonts/vazirmatn-arabic-500-normal.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }
@font-face { font-family: 'Vazirmatn'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('../fonts/vazirmatn-latin-500-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+2000-206F; }
@font-face { font-family: 'Vazirmatn'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/vazirmatn-arabic-700-normal.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }
@font-face { font-family: 'Vazirmatn'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/vazirmatn-latin-700-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+2000-206F; }
@font-face { font-family: 'Vazirmatn'; font-style: normal; font-weight: 800; font-display: swap;
  src: url('../fonts/vazirmatn-arabic-800-normal.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }
@font-face { font-family: 'Vazirmatn'; font-style: normal; font-weight: 800; font-display: swap;
  src: url('../fonts/vazirmatn-latin-800-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+2000-206F; }

:root {
  --brand-50: #eff6ff; --brand-100: #dbeafe; --brand-200: #bfdffe; --brand-300: #93c5fd;
  --brand-400: #60a5fa; --brand-500: #3b8df8; --brand-600: #1a76f7; --brand-700: #1560d6;
  --brand-800: #1851a8; --brand-900: #194786;
  --slate-50: #f8fafc; --slate-100: #f1f5f9; --slate-200: #e2e8f0; --slate-300: #cbd5e1;
  --slate-400: #94a3b8; --slate-500: #64748b; --slate-600: #475569; --slate-700: #334155;
  --slate-800: #1e293b; --slate-900: #0f172a;
  --green-50: #ecfdf5; --green-600: #059669; --green-700: #047857;
  --amber-50: #fffbeb; --amber-200: #fde68a; --amber-500: #f59e0b; --amber-700: #b45309;
  --red-50: #fef2f2; --red-200: #fecaca; --red-500: #ef4444; --red-600: #dc2626; --red-700: #b91c1c;
  --purple-50: #faf5ff; --purple-600: #9333ea;
  --radius: 16px;
  --shadow: 0 1px 3px rgba(16,24,40,.07), 0 1px 2px rgba(16,24,40,.07);
  --shadow-hover: 0 10px 30px -8px rgba(16,24,40,.16);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  background: var(--slate-50); color: var(--slate-800);
  font-size: 14px; line-height: 1.8; text-rendering: optimizeLegibility;
}
::selection { background: rgba(26,118,247,.2); }
::-webkit-scrollbar { width: 10px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--slate-300); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--slate-400); }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }
ul { list-style: none; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .container { padding: 0 24px; } }

/* ---------- دکمه‌ها ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; cursor: pointer; user-select: none;
  border-radius: 12px; padding: 10px 16px; font-family: inherit;
  font-size: 14px; font-weight: 700; line-height: 1.6; text-align: center;
  transition: all .2s; text-decoration: none;
}
.btn:disabled { opacity: .6; cursor: not-allowed; }
.btn-primary { background: var(--brand-600); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--brand-700); }
.btn-secondary { background: #fff; color: var(--slate-700); border: 1px solid var(--slate-300); }
.btn-secondary:hover { background: var(--slate-50); }
.btn-danger { background: var(--red-600); color: #fff; }
.btn-danger:hover { background: var(--red-700); }
.btn-ghost { background: transparent; color: var(--slate-600); }
.btn-ghost:hover { background: var(--slate-100); }
.btn-sm { padding: 5px 10px; font-size: 12px; border-radius: 9px; }
.btn-lg { padding: 13px 28px; font-size: 15px; border-radius: 14px; }
.btn-block { width: 100%; }

/* ---------- فرم‌ها ---------- */
.form-group { margin-bottom: 16px; }
label, .lbl { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 500; color: var(--slate-700); }
.input, select.input, textarea.input {
  width: 100%; border: 1px solid var(--slate-300); background: #fff;
  border-radius: 12px; padding: 10px 14px; font-family: inherit; font-size: 14px;
  color: var(--slate-800); outline: none; transition: all .15s; box-shadow: 0 1px 2px rgba(16,24,40,.04);
}
.input:focus { border-color: var(--brand-500); box-shadow: 0 0 0 4px rgba(26,118,247,.1); }
.input:disabled { background: var(--slate-100); }
textarea.input { resize: vertical; min-height: 90px; }
.form-row { display: grid; gap: 16px; }
@media (min-width: 640px) { .form-row-2 { grid-template-columns: 1fr 1fr; } .form-row-3 { grid-template-columns: 1fr 1fr 1fr; } .form-row-4 { grid-template-columns: repeat(4, 1fr); } }
.checkbox-row { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border: 1px solid var(--slate-200); border-radius: 12px; cursor: pointer; }
.checkbox-row input { width: 17px; height: 17px; accent-color: var(--brand-600); }
.ltr { direction: ltr; text-align: left; }

/* ---------- کارت و نشان ---------- */
.card { background: #fff; border: 1px solid rgba(226,232,240,.7); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-p { padding: 24px; }
.badge { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 500; }
.badge-brand { background: var(--brand-50); color: var(--brand-700); }
.badge-green { background: var(--green-50); color: var(--green-700); }
.badge-amber { background: var(--amber-50); color: var(--amber-700); }
.badge-red { background: var(--red-50); color: var(--red-700); }
.badge-slate { background: var(--slate-100); color: var(--slate-600); }
.badge-purple { background: var(--purple-50); color: var(--purple-600); }

/* ---------- هدر ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.88); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(226,232,240,.7); }
.header-inner { display: flex; align-items: center; gap: 12px; height: 64px; }
.brand { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.brand img { width: 40px; height: 40px; border-radius: 12px; object-fit: contain; }
.brand b { font-size: 18px; font-weight: 800; color: var(--slate-800); }
.main-nav { display: none; margin-inline-start: 16px; gap: 4px; }
.main-nav a { padding: 8px 12px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--slate-600); }
.main-nav a:hover { background: var(--slate-100); }
.main-nav a.active { background: var(--brand-50); color: var(--brand-700); }
.header-actions { margin-inline-start: auto; display: none; align-items: center; gap: 8px; }
@media (min-width: 768px) { .main-nav { display: flex; } .header-actions { display: flex; } .menu-btn { display: none !important; } }
.menu-btn { margin-inline-start: auto; background: none; border: none; cursor: pointer; font-size: 22px; color: var(--slate-600); padding: 6px; }
.mobile-menu { border-top: 1px solid var(--slate-200); background: #fff; padding: 8px 16px 16px; }
.mobile-menu a { display: block; padding: 10px 12px; border-radius: 8px; font-weight: 500; color: var(--slate-700); }
.mobile-menu a:hover { background: var(--slate-100); }
.cat-bar { display: none; border-top: 1px solid var(--slate-100); background: rgba(255,255,255,.6); }
@media (min-width: 768px) { .cat-bar { display: block; } }
.cat-bar-inner { display: flex; gap: 4px; overflow-x: auto; padding: 6px 0; }
.cat-bar a { flex-shrink: 0; padding: 4px 10px; border-radius: 8px; font-size: 12px; font-weight: 500; color: var(--slate-500); white-space: nowrap; }
.cat-bar a:hover { background: var(--brand-50); color: var(--brand-700); }

/* ---------- فوتر ---------- */
.site-footer { margin-top: 64px; border-top: 1px solid var(--slate-200); background: #fff; }
.footer-grid { display: grid; gap: 40px; padding: 48px 0; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer h3 { font-size: 15px; margin-bottom: 16px; color: var(--slate-700); }
.site-footer li { margin-bottom: 10px; }
.site-footer a, .site-footer li { font-size: 13px; color: var(--slate-500); }
.site-footer a:hover { color: var(--brand-600); }
.footer-bottom { border-top: 1px solid var(--slate-100); padding: 20px 0; font-size: 12px; color: var(--slate-400); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }
.social-row { display: flex; gap: 8px; margin-top: 20px; }
.social-row a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--slate-200); border-radius: 12px; color: var(--slate-500); }
.social-row a:hover { border-color: var(--brand-300); color: var(--brand-600); }

/* ---------- هیرو صفحه اصلی ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(to bottom, var(--brand-50), transparent); text-align: center; padding: 56px 0; }
.hero::before { content: ''; position: absolute; top: -96px; left: 50%; transform: translateX(-50%); width: 384px; height: 384px; border-radius: 50%; background: rgba(191,223,254,.4); filter: blur(64px); }
.hero h1 { position: relative; font-size: 30px; font-weight: 800; line-height: 1.5; color: var(--slate-900); max-width: 720px; margin: 0 auto; }
.hero h1 span { color: var(--brand-600); }
.hero p { position: relative; margin: 16px auto 0; max-width: 640px; color: var(--slate-500); font-size: 16px; }
@media (min-width: 640px) { .hero { padding: 80px 0; } .hero h1 { font-size: 44px; } }
.search-box { position: relative; margin: 32px auto 0; max-width: 768px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px; display: flex; flex-direction: column; gap: 8px; }
@media (min-width: 640px) { .search-box { flex-direction: row; align-items: center; } }
.search-box .q { flex: 1; display: flex; align-items: center; gap: 8px; background: var(--slate-50); border-radius: 12px; padding: 12px 14px; }
.search-box .q input { border: none; outline: none; background: none; width: 100%; font-family: inherit; font-size: 14px; }
.search-box .loc { display: flex; align-items: center; gap: 8px; background: var(--slate-50); border-radius: 12px; padding: 12px 14px; }
.search-box .loc select { border: none; outline: none; background: none; width: 100%; font-family: inherit; font-size: 14px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 640px; margin: 32px auto 0; }
.hero-stat { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 8px; text-align: center; }
.hero-stat b { font-size: 20px; font-weight: 800; display: block; }
.hero-stat span { font-size: 12px; color: var(--slate-500); }

/* ---------- بخش‌ها ---------- */
.section { padding: 40px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-head h2 { font-size: 22px; font-weight: 800; color: var(--slate-800); }
.section-head p { margin-top: 4px; font-size: 13px; color: var(--slate-500); }
.section-head .more { font-size: 14px; font-weight: 700; color: var(--brand-600); }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-cats { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: 1fr 1fr; } .grid-cats { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-cats { grid-template-columns: repeat(8, 1fr); } }

.cat-card { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 20px 12px; text-align: center; transition: all .2s; }
.cat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.cat-card .ico { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 16px; background: var(--brand-50); color: var(--brand-600); font-size: 20px; transition: all .2s; }
.cat-card:hover .ico { background: var(--brand-600); color: #fff; }
.cat-card span { font-size: 12px; font-weight: 600; color: var(--slate-600); line-height: 1.6; }

.why-box { background: linear-gradient(to left, var(--brand-700), var(--brand-600), var(--brand-500)); border-radius: var(--radius); color: #fff; padding: 32px 24px; }
.why-box h2 { text-align: center; font-size: 26px; font-weight: 800; }
.why-grid { display: grid; gap: 32px; margin-top: 40px; text-align: center; }
@media (min-width: 640px) { .why-grid { grid-template-columns: repeat(3, 1fr); } }
.why-grid .ico { width: 64px; height: 64px; margin: 0 auto; display: grid; place-items: center; border-radius: 20px; background: rgba(255,255,255,.15); font-size: 26px; }
.why-grid h3 { margin-top: 16px; font-weight: 700; }
.why-grid p { margin-top: 8px; font-size: 13px; color: rgba(255,255,255,.85); line-height: 1.9; }

.cta-card { text-align: center; padding: 40px 24px; }
.cta-card h2 { font-size: 22px; font-weight: 800; }
.cta-card p { max-width: 560px; margin: 12px auto 0; color: var(--slate-500); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 20px; }

/* ---------- کارت آگهی ---------- */
.job-card { display: block; padding: 20px; transition: all .2s; }
.job-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.job-card .top { display: flex; gap: 16px; align-items: flex-start; }
.job-logo { width: 52px; height: 52px; flex-shrink: 0; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--slate-100); background: var(--slate-50); border-radius: 12px; }
.job-logo img { width: 100%; height: 100%; object-fit: contain; padding: 5px; }
.job-logo .txt { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand-100), var(--brand-50)); color: var(--brand-600); font-weight: 800; font-size: 14px; border-radius: 9px; }
.job-card h3 { font-size: 15px; font-weight: 700; color: var(--slate-800); }
.job-card:hover h3 { color: var(--brand-600); }
.job-meta { margin-top: 4px; font-size: 13px; color: var(--slate-500); display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.job-meta .dot { color: var(--slate-300); }
.job-tags { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 12px; }
.job-tags .salary { background: var(--green-50); color: var(--green-700); }
.job-time { margin-top: 10px; font-size: 12px; color: var(--slate-400); display: flex; align-items: center; gap: 6px; }
.title-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }

/* ---------- تبلیغ ---------- */
.ad-slot { margin-bottom: 8px; }
.ad-slot img { width: 100%; border-radius: 16px; display: block; }
.ad-slot a:hover img { opacity: .95; }

/* ---------- صفحه آگهی‌ها ---------- */
.page-layout { display: grid; gap: 24px; margin-top: 24px; }
@media (min-width: 1024px) { .page-layout { grid-template-columns: 280px 1fr; } .filters { position: sticky; top: 128px; align-self: start; } }
.filters form { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.filters h3 { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--slate-700); }
.results-count { font-size: 13px; color: var(--slate-400); font-weight: 400; margin-inline-start: 8px; }
.breadcrumb { font-size: 12px; color: var(--slate-400); margin-bottom: 16px; }
.breadcrumb a:hover { color: var(--brand-600); }
.breadcrumb span.sep { margin: 0 6px; }

/* ---------- صفحه‌بندی ---------- */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 32px; }
.pagination a { min-width: 40px; height: 40px; display: grid; place-items: center; padding: 0 10px; background: #fff; border: 1px solid var(--slate-200); border-radius: 12px; font-size: 13px; font-weight: 700; color: var(--slate-600); }
.pagination a:hover { background: var(--slate-100); }
.pagination a.active { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }

/* ---------- جزئیات آگهی ---------- */
.job-detail-grid { display: grid; gap: 24px; margin-top: 24px; }
@media (min-width: 1024px) { .job-detail-grid { grid-template-columns: 1fr 340px; } .job-side { position: sticky; top: 128px; align-self: start; display: flex; flex-direction: column; gap: 20px; } }
.job-head { display: flex; gap: 16px; padding: 24px; }
.job-head .logo { width: 64px; height: 64px; flex-shrink: 0; display: grid; place-items: center; overflow: hidden; background: var(--slate-50); border: 1px solid var(--slate-100); border-radius: 16px; }
.job-head h1 { font-size: 22px; font-weight: 800; line-height: 1.6; color: var(--slate-900); }
.detail-section { padding: 24px; margin-bottom: 20px; }
.detail-section h2 { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 800; margin-bottom: 12px; color: var(--slate-800); }
.detail-section h2 .i { color: var(--brand-500); }
.detail-section .body { white-space: pre-line; color: var(--slate-600); line-height: 2; font-size: 14px; }
.info-list li { display: flex; justify-content: space-between; padding: 8px 0; font-size: 13px; color: var(--slate-600); }
.company-mini { display: flex; gap: 12px; align-items: center; }

/* ---------- پیام‌ها و حالت خالی ---------- */
.alert { border-radius: 12px; padding: 12px 16px; font-size: 13px; margin-bottom: 16px; border: 1px solid; }
.alert-error { background: var(--red-50); color: var(--red-700); border-color: var(--red-200); }
.alert-success { background: var(--green-50); color: var(--green-700); border-color: #a7f3d0; }
.alert-info { background: var(--brand-50); color: var(--brand-700); border-color: var(--brand-200); }
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; border: 2px dashed var(--slate-300); border-radius: 16px; background: rgba(255,255,255,.6); padding: 56px 24px; }
.empty .ico { font-size: 44px; margin-bottom: 12px; opacity: .35; }
.empty h3 { font-weight: 700; color: var(--slate-700); }
.empty p { margin-top: 4px; max-width: 380px; font-size: 13px; color: var(--slate-500); }
.empty .btn { margin-top: 16px; }

/* ---------- احراز هویت ---------- */
.auth-wrap { min-height: 100vh; display: flex; flex-direction: column; background: linear-gradient(to bottom, var(--brand-50), #fff 40%, #fff); }
.auth-container { max-width: 512px; margin: 0 auto; width: 100%; padding: 0 16px; }
.auth-card { padding: 32px 24px; margin: 32px 0; }
.auth-card h1 { text-align: center; font-size: 22px; font-weight: 800; }
.auth-card .sub { text-align: center; margin-top: 8px; font-size: 13px; color: var(--slate-500); }
.auth-footer { text-align: center; padding: 20px; font-size: 12px; color: var(--slate-400); }
.role-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 24px 0; }
.role-tab { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px; border: 2px solid var(--slate-200); border-radius: 16px; background: #fff; cursor: pointer; font-family: inherit; color: var(--slate-500); transition: all .2s; }
.role-tab.on { border-color: var(--brand-500); background: rgba(239,246,255,.6); color: var(--brand-700); }
.role-tab .ico { font-size: 26px; }
.role-tab b { font-size: 14px; }
.role-tab span { font-size: 11px; opacity: .8; }
.seg-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--slate-100); border-radius: 12px; padding: 6px; margin: 24px 0; }
.seg-tabs button { border: none; background: none; padding: 8px; border-radius: 8px; font-family: inherit; font-size: 13px; font-weight: 700; color: var(--slate-500); cursor: pointer; }
.seg-tabs button.on { background: #fff; color: var(--brand-700); box-shadow: 0 1px 3px rgba(16,24,40,.1); }
.otp-row { display: flex; gap: 8px; justify-content: center; direction: ltr; margin: 20px 0; }
.otp-row input { width: 48px; height: 52px; border: 1px solid var(--slate-300); border-radius: 12px; text-align: center; font-size: 20px; font-weight: 800; font-family: inherit; outline: none; }
.otp-row input:focus { border-color: var(--brand-500); box-shadow: 0 0 0 4px rgba(26,118,247,.1); }
.dev-code { background: var(--amber-50); border: 1px solid var(--amber-200); color: var(--amber-700); border-radius: 12px; padding: 12px 16px; text-align: center; font-size: 13px; margin: 16px 0; }
.dev-code b { font-size: 18px; letter-spacing: 6px; }

/* ---------- پنل‌ها ---------- */
.panel-layout { display: grid; gap: 24px; padding: 32px 0; }
@media (min-width: 1024px) { .panel-layout { grid-template-columns: 260px 1fr; } .panel-side { position: sticky; top: 24px; align-self: start; } }
.panel-side .who { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--slate-100); }
.panel-side .avatar { width: 44px; height: 44px; flex-shrink: 0; display: grid; place-items: center; border-radius: 16px; background: linear-gradient(135deg, var(--brand-500), var(--brand-700)); color: #fff; font-size: 18px; font-weight: 800; }
.panel-side .who b { font-size: 14px; display: block; }
.panel-side .who span { font-size: 12px; color: var(--brand-600); }
.panel-nav { display: flex; gap: 4px; margin-top: 12px; overflow-x: auto; flex-direction: row; }
@media (min-width: 1024px) { .panel-nav { flex-direction: column; overflow: visible; } }
.panel-nav a { display: flex; align-items: center; gap: 10px; flex-shrink: 0; padding: 10px 14px; border-radius: 12px; font-size: 13px; font-weight: 500; color: var(--slate-600); white-space: nowrap; }
.panel-nav a:hover { background: var(--slate-100); }
.panel-nav a.active { background: var(--brand-600); color: #fff; box-shadow: 0 1px 3px rgba(16,24,40,.15); }
.panel-nav .n-badge { margin-inline-start: auto; min-width: 20px; height: 20px; display: grid; place-items: center; border-radius: 999px; background: var(--red-100, #fee2e2); color: var(--red-600); font-size: 10px; font-weight: 800; }
.panel-nav a.active .n-badge { background: rgba(255,255,255,.25); color: #fff; }
.panel-logout { border-top: 1px solid var(--slate-100); margin-top: 12px; padding-top: 12px; }
.panel-logout a { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; font-size: 13px; color: var(--red-500); }
.panel-logout a:hover { background: var(--red-50); }
.panel-main { min-width: 0; }
.panel-title { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.panel-sub { font-size: 13px; color: var(--slate-500); margin-bottom: 24px; }
.stat-grid { display: grid; gap: 16px; grid-template-columns: 1fr; margin-bottom: 24px; }
@media (min-width: 640px) { .stat-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .stat-grid.cols-4 { grid-template-columns: repeat(4, 1fr); } }
.stat-card { display: flex; align-items: center; gap: 16px; padding: 20px; }
.stat-card .ico { width: 48px; height: 48px; flex-shrink: 0; display: grid; place-items: center; border-radius: 14px; font-size: 22px; }
.stat-card .ico.brand { background: var(--brand-50); } .stat-card .ico.green { background: var(--green-50); }
.stat-card .ico.amber { background: var(--amber-50); } .stat-card .ico.purple { background: var(--purple-50); }
.stat-card .lbl { margin: 0; color: var(--slate-500); font-weight: 400; }
.stat-card b { font-size: 20px; font-weight: 800; }
.stat-card .hint { font-size: 12px; color: var(--slate-400); }
.list-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; }
.list-row + .list-row { border-top: 1px solid var(--slate-100); }

/* ---------- جدول ---------- */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; text-align: right; }
.tbl thead th { white-space: nowrap; background: rgba(248,250,252,.7); border-bottom: 1px solid var(--slate-200); padding: 12px 16px; font-weight: 700; color: var(--slate-600); }
.tbl tbody td { border-bottom: 1px solid var(--slate-100); padding: 12px 16px; color: var(--slate-700); vertical-align: middle; }
.tbl tbody tr:hover { background: rgba(248,250,252,.6); }

/* ---------- تب‌ها و جزئیات فرم ---------- */
.tab-bar { display: flex; gap: 6px; overflow-x: auto; background: var(--slate-100); border-radius: 12px; padding: 6px; margin-bottom: 20px; }
.tab-bar button { flex-shrink: 0; border: none; background: none; padding: 8px 16px; border-radius: 8px; font-family: inherit; font-size: 13px; font-weight: 700; color: var(--slate-500); cursor: pointer; }
.tab-bar button.on { background: #fff; color: var(--brand-700); box-shadow: 0 1px 3px rgba(16,24,40,.1); }
.tab-pane { display: none; }
.tab-pane.on { display: block; }
.sub-form { background: var(--slate-50); border-radius: 12px; padding: 16px; margin-top: 16px; }
.sub-form h4 { font-size: 13px; font-weight: 700; color: var(--slate-600); margin-bottom: 12px; }
.item-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; border: 1px solid var(--slate-200); border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; }
.item-row .del { background: none; border: none; color: var(--red-400); cursor: pointer; font-size: 15px; padding: 4px; }
.pkg-grid { display: grid; gap: 16px; margin-bottom: 24px; }
@media (min-width: 768px) { .pkg-grid { grid-template-columns: repeat(3, 1fr); } }
.pkg { position: relative; display: flex; flex-direction: column; text-align: right; background: #fff; border: 2px solid var(--slate-200); border-radius: 16px; padding: 24px; cursor: pointer; transition: all .2s; font-family: inherit; }
.pkg.on { border-color: var(--brand-500); background: rgba(239,246,255,.5); }
.pkg .badge { position: absolute; top: -12px; inset-inline-start: 50%; transform: translateX(50%); background: var(--amber-500); color: #fff; font-weight: 800; }
.pkg h4 { font-size: 17px; font-weight: 800; }
.pkg .price { margin-top: 8px; font-size: 22px; font-weight: 800; color: var(--brand-600); }
.pkg ul { flex: 1; margin: 16px 0; }
.pkg li { font-size: 13px; color: var(--slate-600); margin-bottom: 8px; }
.pkg li::before { content: '✓ '; color: var(--green-600); font-weight: 700; }
.pkg .pick { border-radius: 12px; padding: 8px; text-align: center; font-weight: 700; font-size: 13px; background: var(--slate-100); color: var(--slate-500); }
.pkg.on .pick { background: var(--brand-600); color: #fff; }
.gateway-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.gateway-row button { border: 2px solid var(--slate-200); background: #fff; border-radius: 12px; padding: 10px 20px; font-family: inherit; font-size: 13px; font-weight: 700; color: var(--slate-500); cursor: pointer; }
.gateway-row button.on { border-color: var(--brand-500); background: rgba(239,246,255,.6); color: var(--brand-700); }
.color-dots { display: flex; flex-wrap: wrap; gap: 10px; }
.color-dots label { cursor: pointer; }
.color-dots input { display: none; }
.color-dots span { display: block; width: 36px; height: 36px; border-radius: 50%; transition: all .15s; }
.color-dots input:checked + span { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--slate-800); }
.radio-cards label { display: block; cursor: pointer; border: 2px solid var(--slate-200); border-radius: 12px; padding: 14px 16px; transition: all .2s; margin-bottom: 10px; }
.radio-cards input { display: none; }
.radio-cards label:has(input:checked) { border-color: var(--brand-500); background: rgba(239,246,255,.5); }
.radio-cards b { font-size: 13px; }
.radio-cards small { display: block; color: var(--slate-400); font-size: 11px; }

/* ---------- رزومه ---------- */
.resume-doc { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(226,232,240,.7); box-shadow: var(--shadow); }
.resume-head { padding: 32px; color: #fff; }
.resume-head h1 { font-size: 24px; font-weight: 800; }
.resume-head .hl { margin-top: 6px; font-size: 14px; opacity: .9; }
.resume-head .contact { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 12px; opacity: .9; }
.resume-body { display: grid; }
@media (min-width: 768px) { .resume-body { grid-template-columns: 1fr 240px; } }
.resume-main { padding: 24px 32px; }
.resume-side { border-inline-start: 1px solid var(--slate-100); background: rgba(248,250,252,.6); padding: 24px; }
.rsec { margin-top: 24px; }
.rsec:first-child { margin-top: 0; }
.rsec h2 { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 800; padding-bottom: 8px; margin-bottom: 12px; border-bottom: 2px solid; }
.rsec .item { margin-bottom: 16px; }
.rsec .item .t { font-weight: 700; color: var(--slate-800); font-size: 14px; }
.rsec .item .t small { font-weight: 400; color: var(--slate-500); font-size: 13px; margin-inline-start: 8px; }
.rsec .item .p { font-size: 12px; color: var(--slate-400); margin-top: 2px; }
.rsec .item .d { margin-top: 4px; font-size: 12px; color: var(--slate-500); line-height: 1.9; }
.skill-chip { display: inline-block; border: 1px solid; border-radius: 999px; padding: 3px 10px; font-size: 11px; font-weight: 500; margin: 0 0 6px 6px; }
.no-print { }
@media print {
  body { background: #fff !important; }
  .no-print { display: none !important; }
  .resume-doc { border: none; box-shadow: none; }
  @page { margin: 12mm; }
}

/* ---------- وبلاگ ---------- */
.post-card { display: block; overflow: hidden; transition: all .2s; }
.post-card .cover { height: 140px; background: linear-gradient(135deg, var(--brand-200), var(--brand-50), #f5f3ff); }
.post-card .pc-body { padding: 20px; }
.post-card h2 { font-size: 15px; font-weight: 700; line-height: 1.9; color: var(--slate-800); }
.post-card:hover h2 { color: var(--brand-600); }
.post-card p { margin-top: 8px; font-size: 12px; color: var(--slate-500); line-height: 2; }
.post-card .meta { margin-top: 16px; display: flex; justify-content: space-between; font-size: 12px; color: var(--slate-400); }
.article { max-width: 768px; margin: 0 auto; }
.article .cover { height: 176px; border-radius: 16px; background: linear-gradient(135deg, var(--brand-600), var(--brand-500), #8b5cf6); }
.article .a-body { background: #fff; border-radius: 16px; box-shadow: var(--shadow); margin: -40px 12px 0; padding: 32px 24px; position: relative; }
.article .a-body h1 { font-size: 24px; font-weight: 800; line-height: 1.8; }
.article .content { margin-top: 24px; border-top: 1px solid var(--slate-100); padding-top: 24px; }
.article .content p { margin: 12px 0; color: var(--slate-600); line-height: 2; }
.article .content h2 { margin: 28px 0 12px; font-size: 20px; font-weight: 800; color: var(--slate-800); }
.article .content li { margin: 0 0 6px 20px; list-style: disc; color: var(--slate-600); }
.article .content strong { color: var(--slate-800); }

/* ---------- نمودار CSS ادمین ---------- */
.bars { display: flex; align-items: flex-end; gap: 8px; height: 200px; padding-top: 16px; direction: ltr; }
.bars .bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bars .bar i { display: block; width: 100%; max-width: 32px; background: var(--brand-600); border-radius: 6px 6px 0 0; }
.bars .bar span { font-size: 10px; color: var(--slate-400); }
.bars .bar b { font-size: 11px; color: var(--slate-600); }

/* ---------- درگاه آزمایشی ---------- */
.gateway-page { min-height: 70vh; display: flex; align-items: center; justify-content: center; padding: 40px 16px; }
.gateway-box { max-width: 448px; width: 100%; padding: 32px; text-align: center; }
.gateway-box .bank { width: 56px; height: 56px; margin: 0 auto 12px; display: grid; place-items: center; border-radius: 16px; background: var(--green-50); font-size: 26px; }
.gateway-box h1 { font-size: 17px; font-weight: 800; }
.gateway-box .note { margin-top: 4px; font-size: 12px; color: var(--slate-400); }
.tx-summary { margin-top: 24px; background: var(--slate-50); border-radius: 12px; padding: 16px; text-align: right; font-size: 13px; }
.tx-summary div { display: flex; justify-content: space-between; padding: 4px 0; }
.tx-summary .amt { color: var(--brand-600); font-weight: 800; }
.card-input { text-align: center; letter-spacing: .3em; font-size: 15px; }
.result-ico { width: 64px; height: 64px; margin: 0 auto; display: grid; place-items: center; border-radius: 50%; font-size: 30px; }
.result-ico.ok { background: var(--green-50); color: var(--green-600); }
.result-ico.fail { background: var(--red-50); color: var(--red-600); }

/* ---------- سایر ---------- */
.flex-between { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.muted { color: var(--slate-400); font-size: 12px; }
.upload-zone { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 6px; border: 2px dashed var(--slate-300); border-radius: 12px; padding: 24px; color: var(--slate-400); cursor: pointer; font-size: 12px; background: none; font-family: inherit; }
.upload-zone:hover { border-color: var(--brand-400); color: var(--brand-500); }
.upload-preview { display: flex; align-items: center; gap: 12px; border: 1px solid var(--slate-200); background: var(--slate-50); border-radius: 12px; padding: 12px; }
.upload-preview img { width: 56px; height: 56px; border-radius: 8px; object-fit: contain; background: #fff; padding: 4px; }
footer.mini { text-align: center; padding: 20px; font-size: 12px; color: var(--slate-400); }
.notfound { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 16px; }
.notfound img { width: 64px; height: 64px; border-radius: 16px; border: 1px solid var(--slate-200); background: #fff; object-fit: contain; padding: 6px; box-shadow: var(--shadow); }
.notfound h1 { font-size: 44px; font-weight: 800; margin-top: 20px; }
