/* SeenGeem Packages – unified cards (packages + courses) */
.sgp-grid, .sgp-package, .sgp-course-box, .sgp-locked-msg, .sgp-switch-back { --sgp-primary: #6d28d9; --sgp-primary-2: #8b5cf6; --sgp-ink: #1f1235; --sgp-muted: #6b6480; --sgp-line: #e9e3f5; --sgp-bg: #fff; --sgp-soft: #f6f2ff; --sgp-good: #0f8a4a; }
.sgp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; margin: 18px 0 30px; direction: rtl; }
.sgp-card { position: relative; display: flex; flex-direction: column; background: var(--sgp-bg); border: 1px solid var(--sgp-line); border-radius: 16px; overflow: hidden; text-decoration: none !important; color: var(--sgp-ink) !important; box-shadow: 0 2px 10px rgba(60, 20, 120, .06); transition: transform .18s ease, box-shadow .18s ease; }
.sgp-card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(60, 20, 120, .14); }
.sgp-card-img { aspect-ratio: 16 / 9; background: var(--sgp-soft); overflow: hidden; }
.sgp-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sgp-card-img--empty { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--sgp-primary), var(--sgp-primary-2)); color: #fff; font-weight: 700; font-size: 20px; }
.sgp-card-body { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 16px; flex: 1; text-align: right; }
.sgp-card-teacher { font-size: 13px; color: var(--sgp-primary); font-weight: 700; }
.sgp-card-title { font-size: 16px !important; line-height: 1.6 !important; margin: 0 !important; color: var(--sgp-ink) !important; font-weight: 700; }
.sgp-card-note { font-size: 13px; color: var(--sgp-good); background: #e9f8f0; border-radius: 8px; padding: 4px 8px; align-self: flex-start; }
.sgp-card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 8px; border-top: 1px dashed var(--sgp-line); }
.sgp-price { font-weight: 800; color: var(--sgp-ink); }
.sgp-price small { font-weight: 400; color: var(--sgp-muted); font-size: 12px; }
.sgp-btn { display: inline-block; background: var(--sgp-primary); color: #fff !important; border: 0; border-radius: 10px; padding: 8px 16px; font-weight: 700; font-size: 14px; cursor: pointer; text-decoration: none !important; line-height: 1.5; }
.sgp-btn:hover { background: var(--sgp-primary-2); }
.sgp-btn--ghost { background: var(--sgp-soft); color: var(--sgp-primary) !important; }
.sgp-btn--done { background: #e9f8f0; color: var(--sgp-good) !important; cursor: default; }
.sgp-badge { position: absolute; top: 12px; right: 12px; z-index: 2; background: #f59e0b; color: #fff; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.sgp-badge--inline { position: static; display: inline-block; margin-bottom: 10px; }
.sgp-package { direction: rtl; text-align: right; }
.sgp-h2 { font-size: 22px; margin: 28px 0 12px; color: var(--sgp-ink); }
.sgp-durations { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.sgp-duration { border: 1px solid var(--sgp-line); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 8px; background: #fff; }
.sgp-duration.is-featured { border: 2px solid var(--sgp-primary); background: var(--sgp-soft); }
.sgp-duration-name { font-size: 18px; font-weight: 800; }
.sgp-duration-scope { font-size: 13px; color: var(--sgp-muted); }
.sgp-duration-price strong { font-size: 24px; color: var(--sgp-primary); }
.sgp-duration-price del { color: var(--sgp-muted); margin-left: 6px; }
.sgp-compare { font-size: 13px; color: var(--sgp-good); }
.sgp-duration form { margin: 0; }
.sgp-duration .sgp-btn { width: 100%; text-align: center; }
.sgp-info, .sgp-locked-msg { background: #fff7e6; border: 1px solid #f5c26b; color: #6b4500; border-radius: 12px; padding: 12px 16px; margin: 16px 0; direction: rtl; text-align: right; }
.sgp-topic-locked { opacity: .6; }
.sgp-lock-tag { display: inline-block; margin-right: 10px; font-size: 12px; background: #fdecec; color: #b32d2e; border-radius: 999px; padding: 2px 10px; }
.sgp-switch-back { position: fixed; bottom: 18px; left: 18px; z-index: 99999; background: #b32d2e; color: #fff !important; padding: 10px 16px; border-radius: 12px; font-weight: 700; text-decoration: none; box-shadow: 0 6px 18px rgba(0,0,0,.25); direction: rtl; }
@media (max-width: 600px) {
	.sgp-grid { grid-template-columns: 1fr; gap: 16px; }
	.sgp-durations { grid-template-columns: 1fr; }
}

/* Buy box inside Tutor course page (new-system courses) */
.sgp-course-box { direction: rtl; text-align: right; }
.sgp-box-title { font-weight: 800; font-size: 16px; margin: 4px 0 10px; }
.sgp-durations--compact { grid-template-columns: 1fr; gap: 10px; }
.sgp-durations--compact .sgp-duration { padding: 12px; }
.sgp-durations--compact .sgp-duration-price strong { font-size: 20px; }
.sgp-box-bundles { margin-top: 16px; }
.sgp-box-bundle { display: flex; justify-content: space-between; gap: 8px; padding: 10px 12px; border: 1px dashed #c4b5fd; border-radius: 10px; margin-bottom: 8px; text-decoration: none !important; color: #1f1235 !important; }
.sgp-box-bundle b { color: #6d28d9; white-space: nowrap; }
.sgp-muted { color: #6b6480; font-size: 13px; }
