@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800;900&display=swap');

/* ===== CSS Variables ===== */
:root {
  --primary:        #1a56db;
  --primary-dark:   #1e429f;
  --primary-light:  #e1effe;
  --secondary:      #7e3af2;
  --accent:         #0e9f6e;
  --accent-light:   #def7ec;
  --warning:        #c27803;
  --warning-light:  #fdf6b2;
  --danger:         #c81e1e;
  --danger-light:   #fde8e8;
  --orange:         #f97316;
  --text:           #111928;
  --text-2:         #4b5563;
  --text-3:         #9ca3af;
  --bg:             #f3f4f6;
  --bg-2:           #ffffff;
  --bg-3:           #f9fafb;
  --border:         #e5e7eb;
  --border-2:       #d1d5db;
  --shadow-sm:      0 1px 2px rgba(0,0,0,0.05);
  --shadow:         0 1px 3px rgba(0,0,0,0.1),0 1px 2px rgba(0,0,0,0.06);
  --shadow-md:      0 4px 6px -1px rgba(0,0,0,0.1),0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg:      0 10px 15px -3px rgba(0,0,0,0.1),0 4px 6px -2px rgba(0,0,0,0.05);
  --radius:         8px;
  --radius-lg:      12px;
  --radius-xl:      20px;
  --transition:     all 0.2s ease;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { direction: rtl; font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Vazirmatn', -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  min-height: 100vh;
  padding-bottom: 68px;
}
@media (min-width: 768px) { body { padding-bottom: 0; } }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
input, select, textarea, button { font-family: 'Vazirmatn', sans-serif; }
ul { list-style: none; }

/* ===== HEADER ===== */
.header {
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  box-shadow: var(--shadow);
}
.header-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 1rem;
  height: 64px; display: flex; align-items: center;
  justify-content: space-between; gap: 1rem;
}
.logo {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 1.2rem; font-weight: 800; color: var(--primary);
  white-space: nowrap;
}
.logo-icon {
  width: 38px; height: 38px; background: var(--primary);
  border-radius: var(--radius); display: flex; align-items: center;
  justify-content: center; color: white; font-size: 1.2rem; flex-shrink: 0;
}

/* Desktop Nav */
.nav { display: none; align-items: center; gap: 0.15rem; }
@media (min-width: 768px) { .nav { display: flex; } }
.nav-link {
  padding: 0.45rem 0.75rem; border-radius: var(--radius);
  font-size: 0.875rem; font-weight: 600; color: var(--text-2);
  transition: var(--transition); white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: var(--primary); background: var(--primary-light); }

.header-actions { display: flex; align-items: center; gap: 0.5rem; }

/* User Menu */
.user-menu {
  display: none; align-items: center; gap: 0.5rem;
  cursor: pointer; padding: 0.35rem 0.7rem;
  background: var(--bg-3); border-radius: var(--radius);
  font-size: 0.85rem; font-weight: 600; color: var(--text-2);
  border: 1.5px solid var(--border);
  transition: var(--transition); position: relative;
}
.user-menu:hover { border-color: var(--primary); color: var(--primary); }
.user-dropdown {
  position: absolute; top: calc(100% + 8px); left: 0;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  min-width: 180px; z-index: 200; overflow: hidden;
  display: none;
}
.user-menu:hover .user-dropdown, .user-menu.open .user-dropdown { display: block; }
.user-dropdown-item {
  padding: 0.65rem 1rem; font-size: 0.85rem; color: var(--text-2);
  display: flex; align-items: center; gap: 0.5rem; cursor: pointer;
  transition: var(--transition);
}
.user-dropdown-item:hover { background: var(--bg-3); color: var(--text); }
.user-dropdown-item.danger:hover { background: var(--danger-light); color: var(--danger); }

/* ===== BOTTOM NAV ===== */
.bottom-nav {
  position: fixed; bottom: 0; right: 0; left: 0;
  background: var(--bg-2); border-top: 1px solid var(--border);
  display: flex; z-index: 100; height: 64px;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
}
@media (min-width: 768px) { .bottom-nav { display: none; } }
.bottom-nav-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 3px;
  color: var(--text-3); font-size: 0.6rem; font-weight: 600;
  cursor: pointer; transition: var(--transition); padding: 0.4rem;
}
.bottom-nav-item svg { width: 21px; height: 21px; }
.bottom-nav-item.active, .bottom-nav-item:hover { color: var(--primary); }
.bottom-nav-item.active svg { stroke: var(--primary); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.4rem; padding: 0.55rem 1.1rem; border-radius: var(--radius);
  font-size: 0.875rem; font-weight: 700; cursor: pointer;
  border: none; transition: var(--transition); white-space: nowrap;
  line-height: 1.4;
}
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover:not(:disabled) { background: var(--primary-dark); }
.btn-secondary { background: #6b7280; color: white; }
.btn-secondary:hover:not(:disabled) { background: #4b5563; }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover:not(:disabled) { background: var(--primary-light); }
.btn-ghost { background: var(--bg-3); color: var(--text-2); border: 1.5px solid var(--border); }
.btn-ghost:hover:not(:disabled) { background: var(--border); }
.btn-success { background: var(--accent); color: white; }
.btn-success:hover:not(:disabled) { background: #057a55; }
.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover:not(:disabled) { background: #9b1c1c; }
.btn-warning { background: #f59e0b; color: white; }
.btn-warning:hover:not(:disabled) { background: #d97706; }
.btn-sm { padding: 0.35rem 0.75rem; font-size: 0.78rem; }
.btn-lg { padding: 0.75rem 1.5rem; font-size: 1rem; }
.btn-block { width: 100%; }

/* ===== CONTAINER ===== */
.container { max-width: 1280px; margin: 0 auto; padding: 0 1rem; }
.container-sm { max-width: 720px; margin: 0 auto; padding: 0 1rem; }
.container-md { max-width: 960px; margin: 0 auto; padding: 0 1rem; }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, #1a56db 0%, #7e3af2 100%);
  padding: 3rem 1rem 3.5rem;
  text-align: center; color: white; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero h1 { font-size: 1.9rem; font-weight: 900; margin-bottom: 0.75rem; line-height: 1.3; position: relative; }
@media (min-width: 640px) { .hero h1 { font-size: 2.6rem; } }
@media (min-width: 1024px) { .hero h1 { font-size: 3rem; } }
.hero p { font-size: 1.05rem; opacity: 0.92; margin-bottom: 2rem; max-width: 580px; margin-left: auto; margin-right: auto; position: relative; }
.hero-search {
  max-width: 600px; margin: 0 auto; display: flex; gap: 0; background: white;
  border-radius: var(--radius-xl); padding: 0.3rem; box-shadow: var(--shadow-lg); position: relative;
}
.hero-search input {
  flex: 1; border: none; outline: none; padding: 0.6rem 1rem;
  font-family: 'Vazirmatn', sans-serif; font-size: 0.95rem;
  background: transparent; color: var(--text); direction: rtl; border-radius: var(--radius-xl);
}
.hero-stats { display: flex; justify-content: center; gap: 2.5rem; margin-top: 2.25rem; flex-wrap: wrap; position: relative; }
.hero-stat { text-align: center; }
.hero-stat-num { font-size: 1.75rem; font-weight: 900; display: block; }
.hero-stat-label { font-size: 0.82rem; opacity: 0.82; }

/* ===== CATEGORY FILTER ===== */
.category-filter {
  background: var(--bg-2); border-bottom: 1px solid var(--border);
  padding: 0.75rem 0; overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.category-filter::-webkit-scrollbar { height: 0; }
.category-filter-inner { display: flex; gap: 0.5rem; padding: 0 1rem; width: max-content; min-width: 100%; }
.cat-btn {
  display: flex; align-items: center; gap: 0.35rem; padding: 0.4rem 0.9rem;
  border-radius: 20px; font-size: 0.78rem; font-weight: 700;
  cursor: pointer; border: 1.5px solid var(--border); background: var(--bg-2);
  color: var(--text-2); transition: var(--transition); white-space: nowrap;
}
.cat-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.cat-btn.active { background: var(--primary); border-color: var(--primary); color: white; }

/* ===== SECTION ===== */
.section { padding: 2rem 0; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; gap: 1rem; }
.section-title { font-size: 1.2rem; font-weight: 800; }
.section-title span { color: var(--primary); }

/* ===== SITE CARDS GRID ===== */
.sites-grid {
  display: grid; grid-template-columns: 1fr; gap: 1rem;
}
@media (min-width: 500px) { .sites-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 768px) { .sites-grid { grid-template-columns: repeat(3,1fr); } }
@media (min-width: 1100px) { .sites-grid { grid-template-columns: repeat(4,1fr); } }

.site-card {
  background: var(--bg-2); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.1rem;
  cursor: pointer; transition: var(--transition); position: relative; overflow: hidden;
}
.site-card:hover { box-shadow: var(--shadow-lg); border-color: var(--primary); transform: translateY(-2px); }
.site-card.featured { border-color: #f59e0b; }
.site-card.featured::after {
  content: '★ ویژه'; position: absolute; top: 0; left: 0;
  background: linear-gradient(90deg,#f59e0b,#d97706); color: white;
  font-size: 0.65rem; font-weight: 800; padding: 0.2rem 0.6rem;
  border-radius: 0 0 var(--radius) 0; letter-spacing: 0.3px;
}
.site-card-header { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 0.7rem; }
.site-logo {
  width: 48px; height: 48px; border-radius: var(--radius); background: var(--bg-3);
  display: flex; align-items: center; justify-content: center; font-size: 1.35rem;
  flex-shrink: 0; overflow: hidden; border: 1px solid var(--border);
}
.site-logo img { width: 100%; height: 100%; object-fit: cover; }
.site-card-info { flex: 1; min-width: 0; }
.site-card-title { font-size: 0.93rem; font-weight: 800; color: var(--text); margin-bottom: 0.15rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-card-url { font-size: 0.72rem; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; direction: ltr; text-align: right; }
.site-card-desc {
  font-size: 0.8rem; color: var(--text-2); line-height: 1.5; margin-bottom: 0.7rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.site-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 0.4rem; }
.site-views { font-size: 0.72rem; color: var(--text-3); display: flex; align-items: center; gap: 0.25rem; }

/* ===== BADGES ===== */
.badge {
  display: inline-flex; align-items: center; padding: 0.2rem 0.55rem;
  border-radius: 20px; font-size: 0.7rem; font-weight: 700; white-space: nowrap;
}
.badge-primary { background: var(--primary-light); color: var(--primary); }
.badge-success { background: var(--accent-light); color: var(--accent); }
.badge-warning { background: var(--warning-light); color: var(--warning); }
.badge-danger { background: var(--danger-light); color: var(--danger); }
.badge-secondary { background: var(--bg-3); color: var(--text-2); border: 1px solid var(--border); }
.badge-purple { background: #f5f3ff; color: var(--secondary); }
.badge-orange { background: #fff7ed; color: var(--orange); }

/* ===== TAGS ===== */
.tags-wrap { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.5rem; }
.tag { background: var(--bg-3); color: var(--text-2); padding: 0.15rem 0.5rem; border-radius: 4px; font-size: 0.7rem; font-weight: 600; border: 1px solid var(--border); }
.tag:hover { background: var(--primary-light); color: var(--primary); cursor: pointer; }

/* ===== PAGINATION ===== */
.pagination { display: flex; align-items: center; justify-content: center; gap: 0.25rem; margin-top: 2rem; flex-wrap: wrap; }
.page-btn {
  width: 36px; height: 36px; border-radius: var(--radius); border: 1.5px solid var(--border);
  background: var(--bg-2); color: var(--text-2); font-size: 0.85rem; font-family: 'Vazirmatn',sans-serif;
  cursor: pointer; display: flex; align-items: center; justify-content: center; transition: var(--transition);
}
.page-btn:hover, .page-btn.active { background: var(--primary); border-color: var(--primary); color: white; }
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ===== FORMS ===== */
.form-group { margin-bottom: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .form-row.cols-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 640px) { .form-row.cols-3 { grid-template-columns: 1fr 1fr 1fr; } }
.form-label { display: block; font-size: 0.85rem; font-weight: 700; color: var(--text); margin-bottom: 0.4rem; }
.form-label .req { color: var(--danger); margin-right: 2px; }
.form-control {
  width: 100%; padding: 0.6rem 0.9rem; border: 1.5px solid var(--border-2);
  border-radius: var(--radius); font-family: 'Vazirmatn',sans-serif; font-size: 0.88rem;
  color: var(--text); background: var(--bg-2); transition: var(--transition); direction: rtl;
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,86,219,0.12); }
.form-control::placeholder { color: var(--text-3); }
textarea.form-control { resize: vertical; min-height: 110px; }
select.form-control { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239ca3af' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 0.75rem center; padding-left: 2rem; }
.form-hint { font-size: 0.75rem; color: var(--text-3); margin-top: 0.3rem; }
.form-error { font-size: 0.75rem; color: var(--danger); margin-top: 0.3rem; }

/* Tags Input */
.tags-input-wrap {
  border: 1.5px solid var(--border-2); border-radius: var(--radius);
  padding: 0.45rem; display: flex; flex-wrap: wrap; gap: 0.35rem;
  min-height: 48px; cursor: text; transition: var(--transition); background: var(--bg-2);
}
.tags-input-wrap:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,86,219,0.12); }
.tag-pill {
  display: flex; align-items: center; gap: 0.25rem; background: var(--primary-light);
  color: var(--primary); padding: 0.2rem 0.5rem; border-radius: 20px; font-size: 0.75rem; font-weight: 700;
}
.tag-pill button { background: none; border: none; cursor: pointer; color: var(--primary); padding: 0; font-size: 1rem; line-height: 1; display: flex; }
.tags-input-field { border: none; outline: none; font-family: 'Vazirmatn',sans-serif; font-size: 0.85rem; flex: 1; min-width: 80px; background: transparent; color: var(--text); }

/* Multi-select chips */
.chips-wrap { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip {
  padding: 0.3rem 0.65rem; border-radius: 20px; font-size: 0.78rem; font-weight: 600;
  cursor: pointer; transition: var(--transition); background: var(--bg-3); color: var(--text-2);
  border: 1.5px solid var(--border); user-select: none;
}
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.selected { background: var(--primary-light); color: var(--primary); border-color: var(--primary); }

/* Social inputs */
.social-list { display: flex; flex-direction: column; gap: 0.6rem; }
.social-row { display: flex; align-items: center; gap: 0.5rem; border: 1.5px solid var(--border-2); border-radius: var(--radius); padding: 0.45rem 0.8rem; transition: var(--transition); background: var(--bg-2); }
.social-row:focus-within { border-color: var(--primary); }
.social-label { font-size: 0.78rem; font-weight: 700; color: var(--text-2); white-space: nowrap; min-width: 80px; }
.social-row input { flex: 1; border: none; outline: none; font-family: 'Vazirmatn',sans-serif; font-size: 0.82rem; background: transparent; color: var(--text); direction: ltr; }

/* OTP Inputs */
.otp-row { display: flex; gap: 0.5rem; justify-content: center; direction: ltr; }
.otp-digit {
  width: 48px; height: 56px; text-align: center; font-size: 1.4rem; font-weight: 800;
  border: 2px solid var(--border-2); border-radius: var(--radius); background: var(--bg-2);
  color: var(--text); font-family: 'Vazirmatn',sans-serif; transition: var(--transition);
}
.otp-digit:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,86,219,0.15); }
.otp-digit.filled { border-color: var(--primary); background: var(--primary-light); }

/* ===== CARD ===== */
.card { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.card-header { padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.card-title { font-size: 1rem; font-weight: 800; }
.card-body { padding: 1.25rem; }
.card-footer { padding: 1rem 1.25rem; border-top: 1px solid var(--border); background: var(--bg-3); }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 200;
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; visibility: hidden; transition: all 0.25s ease;
}
@media (min-width: 640px) { .modal-overlay { align-items: center; } }
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  background: var(--bg-2); border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  width: 100%; max-width: 580px; max-height: 92vh; overflow-y: auto;
  transform: translateY(100%); transition: transform 0.3s ease;
}
@media (min-width: 640px) { .modal { border-radius: var(--radius-xl); transform: scale(0.92) translateY(0); } }
.modal-overlay.open .modal { transform: translateY(0) scale(1); }
.modal-header { padding: 1.1rem 1.25rem; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; background: var(--bg-2); z-index: 1; }
.modal-title { font-size: 1.05rem; font-weight: 800; }
.modal-close { background: var(--bg-3); border: none; width: 32px; height: 32px; border-radius: var(--radius); cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--text-2); transition: var(--transition); font-size: 1.1rem; }
.modal-close:hover { background: var(--danger-light); color: var(--danger); }
.modal-body { padding: 1.25rem; }
.modal-footer { padding: 1rem 1.25rem; border-top: 1px solid var(--border); display: flex; gap: 0.75rem; justify-content: flex-start; }

/* ===== TOAST ===== */
.toast-container { position: fixed; top: 76px; left: 50%; transform: translateX(-50%); z-index: 999; display: flex; flex-direction: column; gap: 0.5rem; pointer-events: none; width: 90%; max-width: 420px; }
.toast {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 0.75rem 1rem; display: flex; align-items: center; gap: 0.75rem;
  box-shadow: var(--shadow-lg); animation: toastIn 0.3s ease; pointer-events: all; font-size: 0.875rem; font-weight: 600;
}
.toast.success { border-right: 3px solid var(--accent); }
.toast.error   { border-right: 3px solid var(--danger); }
.toast.warning { border-right: 3px solid #f59e0b; }
.toast.info    { border-right: 3px solid var(--primary); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

/* ===== LOADING ===== */
.loading { display: flex; align-items: center; justify-content: center; padding: 3rem; }
.spinner { width: 40px; height: 40px; border: 3px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.75s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: linear-gradient(90deg, var(--bg-3) 25%, var(--border) 50%, var(--bg-3) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: var(--radius); }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ===== EMPTY STATE ===== */
.empty-state { text-align: center; padding: 3.5rem 1rem; }
.empty-icon { font-size: 3.5rem; margin-bottom: 1rem; }
.empty-state h3 { font-size: 1.1rem; font-weight: 700; color: var(--text-2); margin-bottom: 0.5rem; }
.empty-state p { font-size: 0.88rem; color: var(--text-3); margin-bottom: 1.25rem; }

/* ===== SITE DETAIL ===== */
.site-detail-hero { background: linear-gradient(135deg, var(--primary), var(--secondary)); padding: 2.5rem 1rem; color: white; }
.site-detail-top { max-width: 900px; margin: 0 auto; display: flex; align-items: flex-start; gap: 1.25rem; flex-wrap: wrap; }
.site-detail-logo { width: 80px; height: 80px; border-radius: var(--radius-lg); background: rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; font-size: 2rem; flex-shrink: 0; border: 3px solid rgba(255,255,255,0.35); overflow: hidden; }
.site-detail-logo img { width: 100%; height: 100%; object-fit: cover; }
.site-detail-info h1 { font-size: 1.5rem; font-weight: 900; margin-bottom: 0.25rem; }
.site-detail-url { opacity: 0.82; font-size: 0.88rem; direction: ltr; text-align: right; word-break: break-all; }
.site-detail-actions { margin-top: 1rem; display: flex; gap: 0.6rem; flex-wrap: wrap; }

.detail-content { max-width: 900px; margin: 0 auto; padding: 1.5rem 1rem; }
.detail-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 768px) { .detail-grid { grid-template-columns: 2fr 1fr; } }
.info-row { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.7rem 0; border-bottom: 1px solid var(--border); }
.info-row:last-child { border-bottom: none; }
.info-label { font-size: 0.78rem; font-weight: 700; color: var(--text-3); min-width: 100px; white-space: nowrap; }
.info-value { font-size: 0.88rem; color: var(--text); word-break: break-all; }

/* Social links */
.social-links { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.social-btn {
  display: flex; align-items: center; gap: 0.35rem; padding: 0.35rem 0.75rem;
  border-radius: 20px; font-size: 0.78rem; font-weight: 700; transition: var(--transition);
  border: 1.5px solid; text-decoration: none;
}
.social-btn:hover { opacity: 0.75; transform: translateY(-1px); }
.social-btn.instagram { color: #e1306c; border-color: #e1306c; }
.social-btn.telegram  { color: #0088cc; border-color: #0088cc; }
.social-btn.twitter   { color: #1da1f2; border-color: #1da1f2; }
.social-btn.linkedin  { color: #0077b5; border-color: #0077b5; }
.social-btn.youtube   { color: #ff0000; border-color: #ff0000; }
.social-btn.facebook  { color: #1877f2; border-color: #1877f2; }
.social-btn.aparat    { color: #e30613; border-color: #e30613; }
.social-btn.bale      { color: #006fb1; border-color: #006fb1; }
.social-btn.eitaa     { color: #12a760; border-color: #12a760; }
.social-btn.soroush   { color: #0b5f8a; border-color: #0b5f8a; }

/* ===== ARTICLES ===== */
.articles-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 600px) { .articles-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1024px) { .articles-grid { grid-template-columns: repeat(3,1fr); } }

.article-card { background: var(--bg-2); border: 1.5px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; cursor: pointer; transition: var(--transition); }
.article-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.article-card-img { aspect-ratio: 16/9; background: var(--bg-3); overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 3rem; }
.article-card-img img { width: 100%; height: 100%; object-fit: cover; }
.article-card-body { padding: 1rem; }
.article-card-title { font-size: 0.93rem; font-weight: 800; margin-bottom: 0.5rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-card-excerpt { font-size: 0.8rem; color: var(--text-2); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-card-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 0.75rem; font-size: 0.72rem; color: var(--text-3); }

/* ===== AD BANNER ===== */
.ad-wrap { border-radius: var(--radius-lg); overflow: hidden; border: 1.5px dashed var(--border); background: var(--bg-3); cursor: pointer; transition: var(--transition); text-align: center; padding: 0.75rem; }
.ad-wrap img { border-radius: var(--radius); width: 100%; }
.ad-wrap:hover { border-color: var(--primary); }
.ad-label { font-size: 0.65rem; color: var(--text-3); font-weight: 600; margin-top: 0.25rem; }

/* ===== STEPS (multi-step form) ===== */
.steps { display: flex; align-items: center; margin-bottom: 2rem; overflow-x: auto; }
.step-item { display: flex; flex-direction: column; align-items: center; flex: 1; position: relative; min-width: 72px; }
.step-item:not(:last-child)::after { content: ''; position: absolute; top: 16px; left: 0; width: 50%; height: 2px; background: var(--border); z-index: 0; }
.step-item:not(:first-child)::before { content: ''; position: absolute; top: 16px; right: 0; width: 50%; height: 2px; background: var(--border); z-index: 0; }
.step-item.done::after, .step-item.done::before, .step-item.active::before { background: var(--primary); }
.step-num { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--border); background: var(--bg-2); display: flex; align-items: center; justify-content: center; font-size: 0.82rem; font-weight: 700; color: var(--text-3); position: relative; z-index: 1; transition: var(--transition); }
.step-item.active .step-num, .step-item.done .step-num { background: var(--primary); border-color: var(--primary); color: white; }
.step-label { font-size: 0.68rem; color: var(--text-3); margin-top: 0.4rem; text-align: center; white-space: nowrap; }
.step-item.active .step-label { color: var(--primary); font-weight: 700; }

/* ===== FOOTER ===== */
.footer { background: #0f172a; color: white; padding: 3rem 1rem 2rem; margin-top: 3rem; }
.footer-grid { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-logo { display: flex; align-items: center; gap: 0.5rem; font-size: 1.2rem; font-weight: 900; color: white; margin-bottom: 0.75rem; }
.footer-logo-icon { width: 36px; height: 36px; background: var(--primary); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.footer-desc { font-size: 0.83rem; color: #94a3b8; line-height: 1.65; margin-bottom: 1rem; }
.footer-contact { display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.83rem; color: #94a3b8; }
.footer-contact a { color: #94a3b8; transition: var(--transition); }
.footer-contact a:hover { color: white; }
.footer-h { font-size: 0.88rem; font-weight: 800; color: white; margin-bottom: 0.9rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-link { font-size: 0.83rem; color: #94a3b8; transition: var(--transition); }
.footer-link:hover { color: white; padding-right: 4px; }
.footer-bottom { max-width: 1280px; margin: 2rem auto 0; padding-top: 1.5rem; border-top: 1px solid #1e293b; text-align: center; font-size: 0.78rem; color: #64748b; }

/* ===== TABLE ===== */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); }
.table { width: 100%; border-collapse: collapse; background: var(--bg-2); }
.table th { background: var(--bg-3); padding: 0.75rem 1rem; text-align: right; font-size: 0.78rem; font-weight: 800; color: var(--text-2); border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); font-size: 0.85rem; color: var(--text); }
.table tr:last-child td { border-bottom: none; }
.table tbody tr:hover td { background: var(--bg-3); }

/* ===== MARKETING PAGE ===== */
.feature-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 640px) { .feature-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1024px) { .feature-grid { grid-template-columns: repeat(3,1fr); } }
.feature-card { background: var(--bg-2); border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; text-align: center; transition: var(--transition); }
.feature-card:hover { box-shadow: var(--shadow-lg); border-color: var(--primary); }
.feature-icon { width: 60px; height: 60px; border-radius: var(--radius-lg); margin: 0 auto 1rem; display: flex; align-items: center; justify-content: center; font-size: 1.75rem; }
.feature-card h3 { font-size: 1rem; font-weight: 800; margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.85rem; color: var(--text-2); line-height: 1.6; }
.pricing-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 768px) { .pricing-grid { grid-template-columns: repeat(3,1fr); } }
.pricing-card { background: var(--bg-2); border: 2px solid var(--border); border-radius: var(--radius-xl); padding: 2rem 1.5rem; text-align: center; transition: var(--transition); position: relative; }
.pricing-card.featured { border-color: var(--primary); box-shadow: var(--shadow-lg); }
.pricing-card .popular-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--primary); color: white; font-size: 0.72rem; font-weight: 800; padding: 0.25rem 0.75rem; border-radius: 20px; }
.pricing-price { font-size: 2rem; font-weight: 900; color: var(--text); margin: 1rem 0 0.25rem; }
.pricing-price small { font-size: 0.9rem; color: var(--text-3); font-weight: 400; }
.pricing-features { list-style: none; text-align: right; margin: 1.25rem 0; display: flex; flex-direction: column; gap: 0.6rem; }
.pricing-features li { font-size: 0.85rem; color: var(--text-2); display: flex; align-items: center; gap: 0.5rem; }
.pricing-features li::before { content: '✓'; color: var(--accent); font-weight: 700; }

/* ===== CAREERS PAGE ===== */
.job-card { background: var(--bg-2); border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem; transition: var(--transition); }
.job-card:hover { box-shadow: var(--shadow-md); border-color: var(--primary); }
.job-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 0.75rem; }
.job-title { font-size: 1rem; font-weight: 800; }
.job-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.75rem; }
.job-desc { font-size: 0.85rem; color: var(--text-2); line-height: 1.6; }

/* ===== UTILITY ===== */
.divider { height: 1px; background: var(--border); margin: 1.5rem 0; }
.text-center { text-align: center; }
.text-muted { color: var(--text-3); }
.text-primary { color: var(--primary); }
.text-success { color: var(--accent); }
.text-danger { color: var(--danger); }
.fw-bold { font-weight: 800; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.w-full { width: 100%; }
.hidden { display: none !important; }
.show { display: block !important; }
