#asp-root { direction: rtl; width: 100%; max-width: 100%; margin: 0 auto; color: #2d3748; box-sizing: border-box; }
.asp-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 24px; margin-bottom: 16px; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.asp-card h2 { margin: 0 0 16px; font-size: 20px; }
.asp-btn { display: inline-block; padding: 10px 20px; border-radius: 8px; border: none; font-size: 15px; cursor: pointer; margin-left: 8px; font-family: inherit; }
.asp-btn-primary { background: var(--ast-global-color-0, #2b6cb0); color: #fff; }
.asp-btn-primary:hover { opacity: .88; }
.asp-btn-secondary { background: #e2e8f0; color: inherit; }
.asp-btn-sm { padding: 6px 12px; font-size: 13px; }
.asp-msg { margin-top: 8px; font-size: 14px; display: block; }
.asp-header { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; margin-bottom: 16px; border-bottom: 1px solid #e2e8f0; }
.asp-tabs { display: flex; gap: 8px; margin-bottom: 20px; border-bottom: 2px solid #e2e8f0; }
.asp-tab { background: none; border: none; padding: 10px 16px; font-size: 15px; cursor: pointer; color: inherit; opacity: .6; border-bottom: 2px solid transparent; margin-bottom: -2px; font-family: inherit; }
.asp-tab.active { color: var(--ast-global-color-0, #2b6cb0); border-bottom-color: var(--ast-global-color-0, #2b6cb0); font-weight: bold; opacity: 1; }
.asp-card-item { background: #fff; border: 1px solid #e2e8f0; border-right: 4px solid var(--ast-global-color-0, #2b6cb0); border-radius: 10px; padding: 16px; margin-bottom: 12px; box-shadow: 0 2px 8px rgba(0,0,0,.06); color: #2d3748; }
.asp-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; color: #1a202c; font-size: 15px; font-weight: bold; }
.asp-card-body { font-size: 14px; color: #4a5568; }
.asp-finance { display: flex; gap: 20px; margin-top: 8px; flex-wrap: wrap; }
.asp-badge { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: bold; }
.asp-badge-active    { background: #38a169 !important; color: #fff !important; }
.asp-badge-pending   { background: #d69e2e !important; color: #fff !important; }
.asp-badge-completed { background: #3182ce !important; color: #fff !important; }
.asp-badge-cancelled { background: #e53e3e !important; color: #fff !important; }
.asp-badge-reserved  { background: #805ad5 !important; color: #fff !important; }
.asp-badge-attended  { background: #38a169 !important; color: #fff !important; }
.asp-badge-absent    { background: #dd6b20 !important; color: #fff !important; }
.asp-green { color: #276749; }
.asp-red { color: #c53030; }
.asp-empty { opacity: .5; text-align: center; padding: 20px 0; }
.asp-error { color: #c53030; }
.asp-loading { opacity: .5; }
.asp-table { width: 100%; border-collapse: collapse; font-size: 14px; color: #2d3748; }
.asp-table th { background: #edf2f7; padding: 10px; text-align: right; font-weight: bold; color: #2d3748; }
.asp-table td { padding: 10px; border-bottom: 1px solid #e2e8f0; color: #4a5568; }
.asp-slots { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0; }
.asp-slot { padding: 8px 16px; border: 2px solid #cbd5e0; border-radius: 8px; background: #fff; cursor: pointer; font-size: 14px; font-family: inherit; color: #2d3748; }
.asp-slot.selected { border-color: var(--ast-global-color-0, #2b6cb0); background: #ebf8ff; color: var(--ast-global-color-0, #2b6cb0); font-weight: bold; }
#asp-tab-reserve label { display: block; margin: 10px 0 4px; font-size: 14px; font-weight: bold; }
#asp-tab-reserve select, #asp-tab-reserve input[type=date] { display: block; width: 100%; max-width: 300px; margin-bottom: 8px; }

/* ─── فرم ثبت‌نام ─────────────────────────────────────────────────────────── */
.asp-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 600px) { .asp-form-grid { grid-template-columns: 1fr; } }
.asp-form-group { display: flex; flex-direction: column; }
.asp-form-group label { font-size: 13px; font-weight: bold; margin-bottom: 4px; }
.asp-form-group input, .asp-form-group select { width: 100%; }
.asp-discount-row { display: flex; align-items: center; gap: 8px; margin: 12px 0; flex-wrap: wrap; }
.asp-discount-row input { flex: 1; min-width: 160px; }
.asp-price-box { background: #f0fff4; border: 1px solid #9ae6b4; border-radius: 10px; padding: 14px 18px; margin: 12px 0; }
.asp-price-row { display: flex; justify-content: space-between; padding: 4px 0; font-size: 14px; }
.asp-price-final { font-weight: bold; font-size: 16px; color: #276749; border-top: 1px solid #9ae6b4; margin-top: 6px; padding-top: 8px; }

/* ─── tab مالی ──────────────────────────────────────────────────────────── */
.asp-fin-card { background: #fff; border: 1px solid #e2e8f0; border-right: 4px solid var(--ast-global-color-0, #2b6cb0); border-radius: 10px; padding: 18px; margin-bottom: 20px; box-shadow: 0 2px 8px rgba(0,0,0,.06); color: #2d3748; }
.asp-fin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-size: 15px; font-weight: bold; }
.asp-fin-summary { display: flex; gap: 24px; flex-wrap: wrap; margin-bottom: 14px; }
.asp-fin-row { font-size: 14px; }
.asp-fin-row span { color: #718096; margin-left: 6px; }
.asp-fin-progress-wrap { background: #edf2f7; border-radius: 999px; height: 8px; margin-bottom: 4px; overflow: hidden; }
.asp-fin-progress { background: var(--ast-global-color-0, #2b6cb0); height: 100%; border-radius: 999px; transition: width .4s; }
.asp-fin-pct { font-size: 12px; color: #718096; margin-bottom: 14px; }
.asp-fin-history { margin-top: 14px; }
.asp-fin-history-title { font-weight: bold; font-size: 13px; color: #4a5568; margin-bottom: 8px; }
.asp-fin-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.asp-fin-pay-msg { display: block; font-size: 13px; margin-top: 6px; }
.asp-pay-success { background: #c6f6d5; color: #276749; border: 1px solid #9ae6b4; border-radius: 10px; padding: 14px 18px; margin-bottom: 16px; font-size: 14px; }
.asp-pay-failed  { background: #fed7d7; color: #822727; border: 1px solid #fc8181; border-radius: 10px; padding: 14px 18px; margin-bottom: 16px; font-size: 14px; }

/* ─── بخش بانکی ─────────────────────────────────────────────────────────── */
.asp-bank-box { background: #ebf8ff; border: 1px solid #bee3f8; border-radius: 12px; padding: 20px; }
.asp-bank-details { color: #2d3748; }
.asp-bank-title { font-size: 15px; font-weight: bold; margin-bottom: 14px; color: #2b6cb0; }
.asp-bank-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 14px; flex-wrap: wrap; }
.asp-bank-row span { color: #4a5568; min-width: 120px; }
.asp-bank-row strong { font-size: 15px; letter-spacing: 1px; }
.asp-ltr { direction: ltr; display: inline-block; }
.asp-copy-btn { background: var(--ast-global-color-0, #2b6cb0); color: #fff !important; border: none; border-radius: 6px; padding: 4px 12px; font-size: 12px; cursor: pointer; font-family: inherit; }
.asp-copy-btn:hover { opacity: .85; }
.asp-bank-note { margin-top: 14px; background: #fefcbf; border: 1px solid #ecc94b; border-radius: 8px; padding: 10px 14px; font-size: 13px; color: #744210; }

/* ─── Jalali Datepicker ──────────────────────────────────────────────────── */
.asp-jdp { position: fixed; z-index: 99999; background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.15); width: 290px; direction: rtl; }
.asp-jdp-hdr { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; gap: 2px; }
.asp-jdp-nav { background: none; border: 1px solid #e2e8f0; border-radius: 5px; width: 26px; height: 26px; cursor: pointer; font-size: 15px; line-height: 1; font-family: inherit; padding: 0; flex-shrink: 0; color: #2d3748; }
.asp-jdp-nav:hover { background: #f7fafc; }
.asp-jdp-title { font-weight: bold; font-size: 13px; text-align: center; flex: 1; }
.asp-jdp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.asp-jdp-dh { text-align: center; font-size: 11px; font-weight: bold; color: #a0aec0; padding: 4px 0; }
.asp-jdp-day { background: none; border: none; border-radius: 6px; padding: 6px 2px; cursor: pointer; font-size: 13px; font-family: inherit; text-align: center; width: 100%; color: #2d3748; }
.asp-jdp-day:hover:not(:disabled) { background: #ebf8ff; }
.asp-jdp-today { background: #fefcbf; font-weight: bold; }
.asp-jdp-sel { background: var(--ast-global-color-0, #2b6cb0) !important; color: #fff; }
.asp-jdp-past { color: #e2e8f0; cursor: not-allowed; }
