/* ─────────────────────────────────────────────────────────────────────────────
   EP School Manager — Dashboard & Frontend Styles
   Palette: #e40079 (primary), #72b305 (success), #c191c2 (accent), #1c6de1 (info)
   Font: Quicksand (inherited from theme)
───────────────────────────────────────────────────────────────────────────── */

/* ── Reset / base ─────────────────────────────────────────────────────────── */
.ep-sm-dashboard *,
.ep-sm-register *,
.ep-sm-login-gate * {
  box-sizing: border-box;
}

/* ── Dashboard layout ────────────────────────────────────────────────────── */
.ep-sm-dashboard {
  display: flex;
  gap: 0;
  min-height: 80vh;
  max-width: 1068px;
  margin: 32px auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 24px rgba(0,0,0,.08);
  overflow: hidden;
}

/* ── Sidebar ──────────────────────────────────────────────────────────────── */
.ep-sm-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: #fafafa;
  border-right: 1px solid #efefef;
  display: flex;
  flex-direction: column;
  padding: 24px 0;
}

.ep-sm-sidebar__school {
  padding: 0 20px 20px;
  border-bottom: 1px solid #efefef;
  margin-bottom: 12px;
}

.ep-sm-sidebar__logo {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: contain;
  border: 1px solid #efefef;
  margin-bottom: 8px;
  background: #fff;
}

.ep-sm-sidebar__logo-placeholder {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  background: #f0e6f6;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c191c2;
  font-size: 28px;
  margin-bottom: 8px;
}

.ep-sm-sidebar__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ep-sm-sidebar__info strong {
  font-size: 13px;
  color: #231f20;
  line-height: 1.3;
}

/* ── Nav ──────────────────────────────────────────────────────────────────── */
.ep-sm-nav {
  flex: 1;
  padding: 0 8px;
}

.ep-sm-nav__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #595194;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background .15s, color .15s;
  margin-bottom: 2px;
  position: relative;
}

.ep-sm-nav__item:hover {
  background: #f0e6f6;
  color: #e40079;
  text-decoration: none;
}

.ep-sm-nav__item.is-active {
  background: #e40079;
  color: #fff;
}

.ep-sm-nav__item .fa {
  width: 18px;
  text-align: center;
  font-size: 15px;
}

.ep-sm-lock {
  margin-left: auto;
  opacity: .5;
  font-size: 12px;
}

.ep-sm-badge-count {
  margin-left: auto;
  background: #e40079;
  color: #fff;
  border-radius: 10px;
  padding: 1px 7px;
  font-size: 11px;
  font-weight: 700;
}

.ep-sm-nav__item.is-active .ep-sm-badge-count {
  background: #fff;
  color: #e40079;
}

/* ── Sidebar footer ───────────────────────────────────────────────────────── */
.ep-sm-sidebar__footer {
  padding: 16px 20px 0;
  border-top: 1px solid #efefef;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ep-sm-sidebar__logout {
  font-size: 13px;
  color: #999;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
}

.ep-sm-sidebar__logout:hover { color: #e40079; }

/* ── Main content ─────────────────────────────────────────────────────────── */
.ep-sm-main {
  flex: 1;
  padding: 32px;
  overflow-x: auto;
}

/* ── Upgrade banner ───────────────────────────────────────────────────────── */
.ep-sm-upgrade-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #fff0f8 0%, #fff 100%);
  border: 1px solid #f7b6d9;
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 24px;
  font-size: 14px;
  flex-wrap: wrap;
}

/* ── Page header ──────────────────────────────────────────────────────────── */
.ep-sm-page-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.ep-sm-page-header h2 {
  margin: 0;
  font-size: 22px;
  color: #231f20;
}

.ep-sm-subtitle {
  color: #7a7c7f;
  font-size: 14px;
  margin: 0;
}

/* ── Cards ────────────────────────────────────────────────────────────────── */
.ep-sm-card {
  background: #fff;
  border: 1px solid #efefef;
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 20px;
  position: relative;
}

.ep-sm-card h3 {
  margin: 0 0 18px;
  font-size: 16px;
  color: #231f20;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ep-sm-card--highlight {
  border-color: #e40079;
  background: linear-gradient(135deg, #fff0f8 0%, #fff 100%);
}

.ep-sm-card--upgrade {
  background: linear-gradient(135deg, #fff0f8, #f0e6f6);
  border: none;
}

.ep-sm-card--locked {
  overflow: hidden;
}

/* ── Locked overlay ───────────────────────────────────────────────────────── */
.ep-sm-locked-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  border-radius: 10px;
}

/* ── Stats grid ───────────────────────────────────────────────────────────── */
.ep-sm-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.ep-sm-stat-card {
  background: #fff;
  border: 1px solid #efefef;
  border-radius: 10px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.ep-sm-stat-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.ep-sm-stat-card__icon--view    { background:#fff0f8; color:#e40079; }
.ep-sm-stat-card__icon--phone   { background:#f0f9e8; color:#72b305; }
.ep-sm-stat-card__icon--email   { background:#eef4ff; color:#1c6de1; }
.ep-sm-stat-card__icon--website { background:#f6f0fc; color:#c191c2; }
.ep-sm-stat-card__icon--form    { background:#fff8e6; color:#f59e0b; }
.ep-sm-stat-card__icon--news    { background:#fef0f0; color:#df4f47; }

.ep-sm-stat-card__number {
  font-size: 26px;
  font-weight: 700;
  color: #231f20;
  line-height: 1;
}

.ep-sm-stat-card__label {
  font-size: 12px;
  color: #7a7c7f;
  margin-top: 3px;
}

.ep-sm-stat-card__change {
  font-size: 11px;
  font-weight: 600;
  margin-top: 4px;
}
.ep-sm-stat-card__change.is-up   { color: #72b305; }
.ep-sm-stat-card__change.is-down { color: #df4f47; }

/* ── Progress bar ─────────────────────────────────────────────────────────── */
.ep-sm-progress-bar {
  height: 8px;
  background: #f0f0f0;
  border-radius: 4px;
  overflow: hidden;
  margin: 8px 0;
}

.ep-sm-progress-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, #e40079, #c191c2);
  border-radius: 4px;
  transition: width .4s ease;
}

.ep-sm-progress-pct {
  font-size: 13px;
  color: #e40079;
  font-weight: 700;
  margin-left: auto;
}

/* ── Quick actions ────────────────────────────────────────────────────────── */
.ep-sm-quick-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.ep-sm-quick-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 20px;
  border: 1px solid #efefef;
  border-radius: 10px;
  color: #595194;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  min-width: 80px;
  transition: all .15s;
}

.ep-sm-quick-action .fa { font-size: 22px; }
.ep-sm-quick-action:hover {
  background: #f0e6f6;
  border-color: #c191c2;
  color: #e40079;
  text-decoration: none;
}

/* ── Upgrade teaser ───────────────────────────────────────────────────────── */
.ep-sm-upgrade-teaser {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}

.ep-sm-upgrade-teaser__cta {
  flex-shrink: 0;
  text-align: center;
}

.ep-sm-price-highlight {
  font-size: 36px;
  font-weight: 800;
  color: #e40079;
  line-height: 1;
  margin-bottom: 8px;
}

.ep-sm-price-highlight small {
  font-size: 14px;
  font-weight: 500;
  color: #7a7c7f;
}

/* ── Feature list ─────────────────────────────────────────────────────────── */
.ep-sm-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ep-sm-feature-list li {
  padding: 4px 0;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ep-sm-feature-list li .fa-check { color: #72b305; }
.ep-sm-feature-list li .fa-times { color: #ccc; }
.ep-sm-feature-list__no { color: #bcbdc3; }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.ep-sm-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
  transition: all .15s;
  font-family: inherit;
  white-space: nowrap;
}

.ep-sm-btn--primary {
  background: #e40079;
  color: #fff;
  border-color: #e40079;
}
.ep-sm-btn--primary:hover { background: #c60069; border-color: #c60069; color:#fff; text-decoration:none; }

.ep-sm-btn--premium {
  background: linear-gradient(135deg, #595194, #c191c2);
  color: #fff;
  border-color: transparent;
}
.ep-sm-btn--premium:hover { opacity:.9; color:#fff; text-decoration:none; }

.ep-sm-btn--outline {
  background: transparent;
  color: #595194;
  border-color: #595194;
}
.ep-sm-btn--outline:hover { background:#595194; color:#fff; text-decoration:none; }

.ep-sm-btn--danger {
  background: #df4f47;
  color: #fff;
  border-color: #df4f47;
}
.ep-sm-btn--danger:hover { background: #c94040; color:#fff; text-decoration:none; }

.ep-sm-btn--danger-outline {
  background: transparent;
  color: #df4f47;
  border-color: #df4f47;
}
.ep-sm-btn--danger-outline:hover { background:#df4f47; color:#fff; text-decoration:none; }

.ep-sm-btn--sm  { padding: 6px 12px; font-size: 12px; }
.ep-sm-btn--lg  { padding: 14px 28px; font-size: 16px; }
.ep-sm-btn--block { width: 100%; justify-content: center; }
.ep-sm-btn[disabled] { opacity:.5; cursor:not-allowed; }

/* ── Badges ───────────────────────────────────────────────────────────────── */
.ep-sm-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.ep-sm-badge--plan.ep-sm-badge--free     { background:#f0f0f0; color:#7a7c7f; }
.ep-sm-badge--plan.ep-sm-badge--standard { background:#e8f5e9; color:#388e3c; }
.ep-sm-badge--plan.ep-sm-badge--premium  { background:linear-gradient(135deg,#595194,#c191c2); color:#fff; }
.ep-sm-badge--plan.ep-sm-badge--lg       { font-size:14px; padding:6px 16px; }

.ep-sm-badge--featured  { background:#fff8e1; color:#f59e0b; }
.ep-sm-badge--verified  { background:#e8f5e9; color:#388e3c; }

.ep-sm-plan-badge {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 700;
  text-transform: uppercase;
}
.ep-sm-plan-badge--standard { background:#e8f5e9; color:#388e3c; }
.ep-sm-plan-badge--premium  { background:linear-gradient(135deg,#595194,#c191c2); color:#fff; }

/* ── Forms ────────────────────────────────────────────────────────────────── */
.ep-sm-form-row {
  margin-bottom: 18px;
}

.ep-sm-form-row label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #231f20;
  margin-bottom: 6px;
}

.ep-sm-input,
.ep-sm-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #dfdfdf;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  color: #231f20;
  transition: border-color .15s;
  background: #fff;
}

.ep-sm-input:focus,
.ep-sm-textarea:focus {
  outline: none;
  border-color: #e40079;
  box-shadow: 0 0 0 3px rgba(228,0,121,.1);
}

.ep-sm-input[disabled],
.ep-sm-textarea[disabled] {
  background: #f8f8f8;
  color: #bcbdc3;
  cursor: not-allowed;
}

.ep-sm-textarea {
  resize: vertical;
  min-height: 100px;
}

.ep-sm-textarea--lg {
  min-height: 180px;
}

.ep-sm-input--sm { padding: 7px 10px; font-size: 13px; }
.ep-sm-textarea--sm { min-height: 80px; font-size: 13px; }

.ep-sm-char-counter {
  font-size: 12px;
  color: #7a7c7f;
  text-align: right;
  margin-top: 4px;
}

.ep-sm-field-lock {
  font-size: 12px;
  color: #bcbdc3;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.ep-sm-field-lock a { color: #e40079; }

.ep-sm-form-actions {
  display: flex;
  gap: 12px;
  padding-top: 8px;
  flex-wrap: wrap;
}

.ep-sm-form-row--check label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  cursor: pointer;
}

/* ── Image upload ─────────────────────────────────────────────────────────── */
.ep-sm-upload-placeholder {
  border: 2px dashed #dfdfdf;
  border-radius: 8px;
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s;
  position: relative;
}

.ep-sm-upload-placeholder:hover { border-color: #e40079; }
.ep-sm-upload-placeholder .fa { font-size: 32px; color: #c191c2; margin-bottom: 8px; }
.ep-sm-upload-placeholder p { font-size: 13px; color: #7a7c7f; margin: 0; }

.ep-sm-upload-placeholder--logo {
  padding: 20px;
}

.ep-sm-file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.ep-sm-image-preview {
  position: relative;
  display: inline-block;
  border-radius: 8px;
  overflow: hidden;
}

.ep-sm-image-preview img {
  max-width: 100%;
  max-height: 300px;
  border-radius: 8px;
  display: block;
}

.ep-sm-image-preview--logo img {
  max-height: 100px;
  max-width: 200px;
}

.ep-sm-image-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(0,0,0,.5);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

/* Gallery grid */
.ep-sm-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
}

.ep-sm-gallery-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  cursor: grab;
}

.ep-sm-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ep-sm-drag-handle {
  position: absolute;
  bottom: 4px;
  left: 4px;
  background: rgba(0,0,0,.4);
  color: #fff;
  border-radius: 4px;
  padding: 2px 5px;
  font-size: 10px;
}

.ep-sm-gallery-add {
  aspect-ratio: 1;
  border: 2px dashed #dfdfdf;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  color: #bcbdc3;
  font-size: 11px;
  gap: 4px;
  transition: border-color .15s;
}

.ep-sm-gallery-add:hover { border-color: #e40079; color: #e40079; }
.ep-sm-gallery-add .fa { font-size: 20px; }

/* ── Map ──────────────────────────────────────────────────────────────────── */
.ep-sm-map {
  height: 280px;
  border-radius: 8px;
  margin-top: 10px;
  border: 1px solid #efefef;
}

.ep-sm-input--map-search {
  margin-bottom: 0;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

/* ── Pricing cards ────────────────────────────────────────────────────────── */
.ep-sm-billing-toggle {
  display: flex;
  gap: 0;
  background: #f5f5f5;
  border-radius: 8px;
  padding: 4px;
  width: fit-content;
  margin-bottom: 24px;
}

.ep-sm-billing-btn {
  padding: 8px 20px;
  border: none;
  background: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: #7a7c7f;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all .15s;
}

.ep-sm-billing-btn.is-active {
  background: #e40079;
  color: #fff;
}

.ep-sm-save-badge {
  background: #72b305;
  color: #fff;
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 10px;
}

.ep-sm-pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.ep-sm-pricing-card {
  border: 1px solid #efefef;
  border-radius: 12px;
  padding: 24px;
  position: relative;
  transition: box-shadow .2s;
}

.ep-sm-pricing-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.08); }

.ep-sm-pricing-card--recommended {
  border-color: #e40079;
  box-shadow: 0 4px 20px rgba(228,0,121,.12);
}

.ep-sm-pricing-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #e40079;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 14px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.ep-sm-pricing-card__header h4 {
  font-size: 18px;
  margin: 0 0 8px;
}

.ep-sm-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 16px;
}

.ep-sm-price__amount {
  font-size: 36px;
  font-weight: 800;
  color: #231f20;
}

.ep-sm-price__currency {
  font-size: 14px;
  color: #7a7c7f;
}

.ep-sm-pricing-card.is-current {
  background: #fafafa;
}

/* ── Current plan display ─────────────────────────────────────────────────── */
.ep-sm-current-plan {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.ep-sm-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.ep-sm-status-badge--active  { background: #e8f5e9; color: #388e3c; }
.ep-sm-status-badge--trialing { background: #e3f2fd; color: #1565c0; }
.ep-sm-status-badge--cancelled { background: #fce4ec; color: #c62828; }
.ep-sm-status-badge--paid    { background: #e8f5e9; color: #388e3c; }
.ep-sm-status-badge--failed  { background: #fce4ec; color: #c62828; }
.ep-sm-status-badge--pending { background: #fff8e1; color: #f57f17; }

.ep-sm-status { font-size: 12px; padding: 2px 8px; border-radius: 4px; font-weight: 600; }
.ep-sm-status--publish  { background:#e8f5e9; color:#388e3c; }
.ep-sm-status--pending  { background:#fff8e1; color:#f57f17; }

/* ── Table ────────────────────────────────────────────────────────────────── */
.ep-sm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.ep-sm-table th {
  text-align: left;
  padding: 10px 12px;
  background: #f8f8f8;
  color: #7a7c7f;
  font-weight: 600;
  border-bottom: 1px solid #efefef;
}

.ep-sm-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #f5f5f5;
  color: #231f20;
}

.ep-sm-table tr:last-child td { border-bottom: none; }

/* ── Notices ──────────────────────────────────────────────────────────────── */
.ep-sm-notice {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ep-sm-notice--success  { background: #e8f5e9; color: #388e3c; border: 1px solid #c8e6c9; }
.ep-sm-notice--error    { background: #fce4ec; color: #c62828; border: 1px solid #ffcdd2; }
.ep-sm-notice--warning  { background: #fff8e1; color: #f57f17; border: 1px solid #ffe082; }
.ep-sm-notice--info     { background: #e3f2fd; color: #1565c0; border: 1px solid #bbdefb; }

/* ── Empty / locked states ────────────────────────────────────────────────── */
.ep-sm-empty-state,
.ep-sm-locked-page {
  text-align: center;
  padding: 60px 20px;
  color: #bcbdc3;
}

.ep-sm-empty-state .fa,
.ep-sm-locked-page .fa { margin-bottom: 16px; display: block; color: #dfdfdf; }
.ep-sm-locked-page h3 { color: #7a7c7f; margin-bottom: 16px; }

/* ── Requests ─────────────────────────────────────────────────────────────── */
.ep-sm-requests-list { display: flex; flex-direction: column; gap: 12px; }

.ep-sm-request-card {
  border: 1px solid #efefef;
  border-radius: 10px;
  padding: 16px 20px;
  background: #fff;
}

.ep-sm-request-card.is-unread {
  border-left: 4px solid #e40079;
  background: #fff8fc;
}

.ep-sm-request-card__header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 4px;
}

.ep-sm-request-card__contact {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: #595194;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.ep-sm-request-card__contact a { color: #595194; text-decoration: none; display: flex; align-items: center; gap: 4px; }
.ep-sm-request-card__contact a:hover { color: #e40079; }
.ep-sm-request-card__message { font-size: 13px; color: #7a7c7f; margin-bottom: 12px; }
.ep-sm-request-card__actions { display: flex; gap: 8px; }

/* ── News list ────────────────────────────────────────────────────────────── */
.ep-sm-news-list { display: flex; flex-direction: column; gap: 10px; }

.ep-sm-news-item {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid #efefef;
  border-radius: 8px;
  padding: 12px 16px;
}

.ep-sm-news-item__thumb { width: 60px; height: 60px; border-radius: 6px; overflow: hidden; flex-shrink: 0; }
.ep-sm-news-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.ep-sm-news-item__body { flex: 1; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ep-sm-news-item__actions { display: flex; gap: 6px; }

/* ── Period tabs ──────────────────────────────────────────────────────────── */
.ep-sm-period-tabs, .ep-sm-status-tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.ep-sm-period-tab, .ep-sm-status-tab {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: #7a7c7f;
  border: 1px solid #efefef;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all .15s;
}

.ep-sm-period-tab:hover, .ep-sm-status-tab:hover {
  border-color: #e40079;
  color: #e40079;
  text-decoration: none;
}

.ep-sm-period-tab.is-active, .ep-sm-status-tab.is-active {
  background: #e40079;
  color: #fff;
  border-color: #e40079;
}

/* ── Addon row ────────────────────────────────────────────────────────────── */
.ep-sm-addon-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ── Misc ─────────────────────────────────────────────────────────────────── */
.ep-sm-muted { color: #7a7c7f; }
.ep-sm-divider {
  text-align: center;
  position: relative;
  margin: 20px 0;
  color: #bcbdc3;
  font-size: 13px;
}
.ep-sm-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #efefef;
  z-index: 0;
}
.ep-sm-divider span, .ep-sm-divider {
  background: #fff;
  padding: 0 12px;
  position: relative;
  z-index: 1;
}

.ep-sm-quota { font-size: 12px; color: #7a7c7f; }
.ep-sm-quota--full { color: #df4f47; }

.ep-sm-upgrade-hint { font-size: 12px; color: #7a7c7f; margin-top: 8px; }
.ep-sm-upgrade-hint a { color: #e40079; }

.ep-sm-checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ep-sm-checkbox-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 400;
  font-size: 13px;
  cursor: pointer;
  padding: 5px 10px;
  border: 1px solid #efefef;
  border-radius: 20px;
  transition: all .15s;
}

.ep-sm-checkbox-label:hover { border-color: #c191c2; }
.ep-sm-checkbox-label input:checked + span, .ep-sm-checkbox-label:has(input:checked) {
  border-color: #e40079;
  color: #e40079;
}

/* ── Login gate ───────────────────────────────────────────────────────────── */
.ep-sm-login-gate {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
}

.ep-sm-login-gate__inner {
  text-align: center;
  max-width: 360px;
  padding: 40px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 32px rgba(0,0,0,.08);
}

.ep-sm-login-gate__inner h2 { margin: 16px 0 8px; }
.ep-sm-login-gate__register { font-size: 13px; color: #7a7c7f; margin-top: 16px; }
.ep-sm-login-gate__register a { color: #e40079; }

/* ── Registration ─────────────────────────────────────────────────────────── */
.ep-sm-register { max-width: 600px; margin: 0 auto; }

.ep-sm-step--hidden { display: none; }

.ep-sm-step-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.ep-sm-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e40079;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}

.ep-sm-step-header h3 { margin: 0; font-size: 18px; }

.ep-sm-step-complete { text-align: center; padding: 40px 20px; }
.ep-sm-step-complete h3 { margin: 20px 0 8px; }

.ep-sm-search-wrap { position: relative; }
.ep-sm-search-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #bcbdc3;
}

.ep-sm-school-results {
  border: 1px solid #efefef;
  border-top: none;
  border-radius: 0 0 6px 6px;
  max-height: 240px;
  overflow-y: auto;
}

.ep-sm-school-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  cursor: pointer;
  transition: background .1s;
  font-size: 13px;
  border-bottom: 1px solid #f5f5f5;
}

.ep-sm-school-result:hover { background: #f0e6f6; }
.ep-sm-school-result__city { color: #7a7c7f; font-size: 12px; }
.ep-sm-school-result--claimed .ep-sm-btn { opacity: .5; cursor: not-allowed; }

/* ── Listing page styles (injected into theme) ───────────────────────────── */
.ep-sm-badge {
  vertical-align: middle;
  margin-left: 6px;
}

.ep-sm-listing--featured {
  border: 3px solid #f59e0b !important;
  border-radius: 4px;
}

.ep-sm-listing--featured .ep-sm-badge--featured {
  animation: ep-sm-pulse 2s infinite;
}

@keyframes ep-sm-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .7; }
}

.ep-sm-video-embed {
  margin: 20px 0;
}
.ep-sm-video-embed iframe {
  width: 100%;
  border-radius: 8px;
}

.ep-sm-unclaimed-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8f8f8;
  border: 1px solid #efefef;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 13px;
  color: #7a7c7f;
  margin: 16px 0;
  flex-wrap: wrap;
}

.ep-sm-unclaimed-cta .fa { color: #c191c2; }

.ep-sm-locked-contact__body {
  text-align: center;
  padding: 16px;
  color: #bcbdc3;
}
.ep-sm-locked-contact__body .fa { font-size: 28px; margin-bottom: 8px; display: block; }
.ep-sm-locked-contact__body p { font-size: 13px; margin-bottom: 12px; }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .ep-sm-dashboard {
    flex-direction: column;
    margin: 0;
    border-radius: 0;
  }

  .ep-sm-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #efefef;
    padding: 16px 0 0;
  }

  .ep-sm-nav {
    display: flex;
    overflow-x: auto;
    padding: 0 16px 12px;
    gap: 4px;
  }

  .ep-sm-nav__item {
    white-space: nowrap;
    padding: 8px 14px;
  }

  .ep-sm-sidebar__school { display: none; }
  .ep-sm-sidebar__footer { flex-direction: row; padding: 8px 16px 12px; border-top: none; }

  .ep-sm-main { padding: 20px 16px; }

  .ep-sm-pricing-grid { grid-template-columns: 1fr; }

  .ep-sm-stats-grid { grid-template-columns: repeat(2, 1fr); }
}
