/**
 * پنل‌های مدیریت فروشگاه/تور ورزشی — استایل ساده جدولی
 */
.spa-body {
  margin: 0;
  background: #f5f3fb;
  color: #2a1750;
  font-family: 'Vazirmatn', 'Segoe UI', Tahoma, sans-serif;
}
.spa-body * { box-sizing: border-box; }
.spa-wrap { max-width: 1200px; margin: 0 auto; padding: 20px clamp(14px, 3vw, 30px) 60px; }

.spa-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 0 20px; }
.spa-header h1 { font-size: 19px; margin: 0; }
.spa-header a { color: #7c3aed; font-size: 13px; font-weight: 700; text-decoration: none; }

.spa-token-box { display: flex; gap: 8px; margin-bottom: 18px; }
.spa-token-box input { flex: 1; padding: 9px 12px; border-radius: 10px; border: 1.5px solid rgba(124,58,237,.2); font-family: monospace; font-size: 12px; }
.spa-token-box button { padding: 9px 16px; border: none; border-radius: 10px; background: #7c3aed; color: #fff; font-weight: 700; font-size: 13px; cursor: pointer; }

.spa-tabs { display: flex; gap: 6px; margin-bottom: 18px; flex-wrap: wrap; }
.spa-tab { padding: 9px 16px; border-radius: 10px; border: 1.5px solid rgba(124,58,237,.18); background: #fff; color: #2a1750; font-size: 13px; font-weight: 700; cursor: pointer; }
.spa-tab.is-active { background: linear-gradient(135deg, #7c3aed, #d946ef); color: #fff; border-color: transparent; }

.spa-card { background: #fff; border-radius: 16px; border: 1px solid rgba(124,58,237,.14); padding: 18px; margin-bottom: 20px; box-shadow: 0 4px 18px rgba(124,58,237,.06); }
.spa-card h3 { margin: 0 0 14px; font-size: 15px; }

.spa-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin-bottom: 12px; }
.spa-field { display: flex; flex-direction: column; gap: 4px; }
.spa-field label { font-size: 11.5px; font-weight: 700; color: #6e6088; }
.spa-field input, .spa-field select, .spa-field textarea {
  padding: 8px 10px; border-radius: 8px; border: 1.5px solid rgba(124,58,237,.18); font-size: 13px; font-family: inherit;
}
.spa-btn { padding: 9px 18px; border: none; border-radius: 10px; background: #7c3aed; color: #fff; font-weight: 700; font-size: 13px; cursor: pointer; }
.spa-btn--ghost { background: #fff; border: 1.5px solid rgba(124,58,237,.25); color: #7c3aed; }
.spa-btn--danger { background: #ef4444; }
.spa-btn--sm { padding: 5px 10px; font-size: 11.5px; border-radius: 7px; }

.spa-table-wrap { overflow-x: auto; }
.spa-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.spa-table th { text-align: right; padding: 9px 8px; color: #6e6088; font-weight: 700; border-bottom: 2px solid rgba(124,58,237,.1); white-space: nowrap; }
.spa-table td { padding: 9px 8px; border-bottom: 1px solid rgba(124,58,237,.08); white-space: nowrap; }
.spa-table td.spa-td-wrap { white-space: normal; min-width: 160px; }
.spa-table input[type="checkbox"] { width: 16px; height: 16px; }
.spa-table input.spa-inline { width: 90px; padding: 5px 7px; border-radius: 7px; border: 1px solid rgba(124,58,237,.2); font-size: 12px; }
.spa-pill { padding: 3px 9px; border-radius: 999px; font-size: 10.5px; font-weight: 800; display: inline-block; }
.spa-pill--paid { background: #ecfdf5; color: #047857; }
.spa-pill--pending { background: #fef3c7; color: #92400e; }
.spa-pill--failed, .spa-pill--cancelled { background: #fef2f2; color: #b91c1c; }
.spa-empty { text-align: center; color: #6e6088; padding: 30px; }
.spa-msg { font-size: 12px; margin-top: 8px; }
.spa-msg--error { color: #b91c1c; }
.spa-msg--ok { color: #047857; }
