body.ssp-body,
body.ssp-body .wrapper,
body.ssp-body .ssp-portal {
  background: #f3f5f8;
}

.ssp-portal {
  background: #f3f5f8;
  min-height: calc(100vh - 64px);
  padding: 28px 20px 40px;
}

.ssp-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  max-width: 1480px;
  margin: 0 auto;
}

.ssp-sidebar {
  background: #0b1f3a;
  border-radius: 22px;
  padding: 28px 16px 18px;
  min-height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 88px;
}

.ssp-avatar {
  width: 74px;
  height: 74px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: #f5a623;
  color: #0b1f3a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.55rem;
  font-weight: 800;
  overflow: hidden;
}

.ssp-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ssp-profile {
  text-align: center;
  margin-bottom: 22px;
  padding: 0 8px;
}

.ssp-profile h4 {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 4px;
}

.ssp-profile p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.8rem;
  margin: 0;
  word-break: break-all;
}

.ssp-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.ssp-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
}

.ssp-nav a i {
  width: 18px;
  text-align: center;
}

.ssp-nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  text-decoration: none;
}

.ssp-nav a.active {
  background: #f6e6c8;
  color: #e08b12;
}

.ssp-nav a.logout {
  margin-top: auto;
  color: #ef4d3d;
}

.ssp-nav a.logout:hover {
  background: rgba(239, 77, 61, 0.12);
  color: #ef4d3d;
}

.ssp-main {
  min-width: 0;
}

.ssp-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 26px;
}

.ssp-kicker {
  display: block;
  color: #f5a623;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1.6px;
  margin-bottom: 6px;
}

.ssp-greeting {
  color: #0b1f3a;
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 8px;
  line-height: 1.2;
}

.ssp-sub {
  color: #7b8494;
  margin: 0;
  font-size: 0.98rem;
}

.ssp-btn-orange {
  background: #f5a623;
  border: 0;
  color: #fff;
  border-radius: 10px;
  padding: 11px 18px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(245, 166, 35, 0.28);
}

.ssp-btn-orange:hover {
  background: #e39614;
  color: #fff;
  text-decoration: none;
}

.ssp-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.ssp-stat {
  background: #fff;
  border-radius: 16px;
  padding: 18px 18px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
}

.ssp-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.ssp-stat-icon.navy { background: #0b1f3a; }
.ssp-stat-icon.orange { background: #f5a623; }
.ssp-stat-icon.green { background: #1fa463; }

.ssp-stat h3 {
  margin: 0;
  color: #0b1f3a;
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.1;
}

.ssp-stat p {
  margin: 2px 0 0;
  color: #8a93a3;
  font-size: 0.88rem;
}

.ssp-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.ssp-action {
  background: #fff;
  border-radius: 14px;
  padding: 18px 10px;
  text-align: center;
  color: #0b1f3a;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
  font-weight: 600;
  font-size: 0.92rem;
}

.ssp-action i {
  display: block;
  color: #f5a623;
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.ssp-action:hover {
  color: #0b1f3a;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}

.ssp-panel {
  background: #fff;
  border-radius: 18px;
  padding: 20px 22px 22px;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
  margin-bottom: 20px;
}

.ssp-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.ssp-panel-head h3 {
  margin: 0;
  color: #0b1f3a;
  font-size: 1.15rem;
  font-weight: 800;
}

.ssp-link {
  color: #2f80ed;
  font-weight: 600;
  font-size: 0.92rem;
}

.ssp-link:hover {
  color: #1b6fd6;
  text-decoration: none;
}

.ssp-empty {
  text-align: center;
  padding: 42px 16px 28px;
}

.ssp-empty-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 12px;
  border-radius: 16px;
  background: #eef3fb;
  color: #9bb3d3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.ssp-empty p {
  color: #7b8494;
  margin: 0 0 16px;
}

.ssp-order-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid #eef1f4;
}

.ssp-order-row:last-child {
  border-bottom: 0;
}

.ssp-order-row h5 {
  margin: 0 0 3px;
  font-size: 0.98rem;
  color: #0b1f3a;
  font-weight: 700;
}

.ssp-order-row p {
  margin: 0;
  color: #8a93a3;
  font-size: 0.85rem;
}

.ssp-page-title {
  color: #0b1f3a;
  font-weight: 800;
  margin: 0 0 18px;
}

.ssp-table {
  background: #fff;
  border-radius: 16px;
  padding: 8px 8px 4px;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
}

.ssp-table .table {
  margin-bottom: 0;
}

.ssp-table .table th {
  border-top: 0;
  color: #6b7280;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

@media (max-width: 1199.98px) {
  .ssp-layout {
    grid-template-columns: 240px minmax(0, 1fr);
  }

  .ssp-greeting {
    font-size: 1.7rem;
  }
}

@media (max-width: 991.98px) {
  .ssp-layout {
    grid-template-columns: 1fr;
  }

  .ssp-sidebar {
    position: relative;
    top: 0;
    min-height: 0;
  }

  .ssp-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .ssp-nav a.logout {
    margin-top: 0;
  }

  .ssp-stats,
  .ssp-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .ssp-portal {
    padding: 16px 12px 28px;
  }

  .ssp-top {
    flex-direction: column;
  }

  .ssp-stats,
  .ssp-actions {
    grid-template-columns: 1fr;
  }

  .ssp-greeting {
    font-size: 1.45rem;
  }
}

.ssp-course-filters {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.ssp-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ssp-filter-pills a {
  background: #fff;
  color: #334155;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
  font-size: 13px;
}

.ssp-filter-pills a.active,
.ssp-filter-pills a:hover {
  background: #0b1f3a;
  color: #fff;
  text-decoration: none;
}

.ssp-search {
  display: flex;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

.ssp-search input {
  border: 0;
  padding: 10px 14px;
  min-width: 220px;
}

.ssp-search button {
  background: #f5a623;
  border: 0;
  color: #fff;
  padding: 0 16px;
}

.ssp-course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.ssp-course-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
}

.ssp-course-thumb {
  position: relative;
  height: 150px;
  background: #eef2f7;
}

.ssp-course-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ssp-course-thumb .badge {
  position: absolute;
  top: 10px;
  left: 10px;
}

.ssp-course-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.ssp-course-body h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0 0 4px;
  color: #0b1f3a;
}

.ssp-course-desc {
  color: #6b7280;
  font-size: 13px;
  min-height: 40px;
}

.ssp-progress-wrap {
  margin: 10px 0 12px;
}

.ssp-progress-wrap .progress {
  height: 8px;
  border-radius: 999px;
  background: #eef2f7;
}

.ssp-progress-wrap .progress-bar {
  background: #f5a623;
}

.ssp-course-meta {
  display: flex;
  justify-content: space-between;
  color: #6b7280;
  font-size: 12px;
  margin-bottom: 12px;
}

.ssp-course-actions {
  margin-top: auto;
}

.ssp-filter-pills a span {
  display: inline-block;
  min-width: 18px;
  margin-left: 4px;
  opacity: 0.75;
}

.ssp-enroll-status {
  color: #6b7280;
  font-size: 12px;
}

.ssp-course-hero {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 16px;
}

@media (max-width: 767.98px) {
  .ssp-search input {
    min-width: 0;
    width: 100%;
  }
  .ssp-course-filters {
    display: block;
  }
  .ssp-search {
    margin-top: 10px;
  }
}

.ssp-panel .embed-responsive {
  background: #0b1f3a;
  border-radius: 12px;
  overflow: hidden;
}
.ssp-panel video {
  border-radius: 12px;
  background: #0b1f3a;
}

.att-cell {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  background: #e2e8f0;
  margin: 0 4px 6px 0;
}
.att-p { background: #dcfce7; color: #166534; }
.att-a { background: #fee2e2; color: #991b1b; }
.att-lv { background: #dbeafe; color: #1d4ed8; }
.att-l { background: #fef3c7; color: #92400e; }
.att-h { background: #ede9fe; color: #6d28d9; }

.ssa-cam-wrap {
  background: #0b1f3a;
  border-radius: 14px;
  overflow: hidden;
  min-height: 240px;
  margin-bottom: 12px;
}
.ssa-cam-wrap video {
  width: 100%;
  display: block;
  max-height: 360px;
  object-fit: cover;
}
.ssa-crop-stage {
  position: relative;
  overflow: hidden;
  background: #000;
  text-align: center;
}
.ssa-crop-inner {
  position: relative;
  display: inline-block;
  max-width: 100%;
  vertical-align: top;
}
.ssa-crop-stage img {
  max-width: 100%;
  max-height: 420px;
  width: auto;
  height: auto;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}
.ssa-crop-box {
  position: absolute;
  border: 2px solid #f97316;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.45);
  cursor: move;
  touch-action: none;
}
.ssa-crop-handle {
  position: absolute;
  width: 16px;
  height: 16px;
  background: #fff;
  border: 2px solid #f97316;
  border-radius: 50%;
  touch-action: none;
}
.ssa-crop-handle.nw { left: -8px; top: -8px; cursor: nwse-resize; }
.ssa-crop-handle.ne { right: -8px; top: -8px; cursor: nesw-resize; }
.ssa-crop-handle.sw { left: -8px; bottom: -8px; cursor: nesw-resize; }
.ssa-crop-handle.se { right: -8px; bottom: -8px; cursor: nwse-resize; }
.ssa-crop-handle.n { left: 50%; top: -8px; margin-left: -8px; cursor: ns-resize; }
.ssa-crop-handle.s { left: 50%; bottom: -8px; margin-left: -8px; cursor: ns-resize; }
.ssa-crop-handle.e { right: -8px; top: 50%; margin-top: -8px; cursor: ew-resize; }
.ssa-crop-handle.w { left: -8px; top: 50%; margin-top: -8px; cursor: ew-resize; }
.ssa-crop-box.is-square .ssa-crop-handle.n,
.ssa-crop-box.is-square .ssa-crop-handle.s,
.ssa-crop-box.is-square .ssa-crop-handle.e,
.ssa-crop-box.is-square .ssa-crop-handle.w { display: none; }
.ssa-crop-modes { display: flex; gap: 8px; margin-bottom: 8px; }
.ssa-cam-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
#ssaSubmit {
  position: relative;
  z-index: 3;
  width: 100%;
  justify-content: center;
  cursor: pointer;
}
.ssa-thumb {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 8px;
}

.ssp-panel form label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #334155;
  margin: 0 0 6px;
}
