:root {
  --sofl-dark: #0f172a;
  --sofl-dark-2: #111827;
  --sofl-gold: #d4a843;
  --sofl-gold-hover: #e7c873;
  --sofl-gold-deep: #c9982f;
  --sofl-gold-wash: #fff8e7;
  --sofl-bg: #f8fafc;
  --sofl-text: #1f2937;
  --sofl-muted: #6b7280;
  --sofl-border: #e5e7eb;
  --sofl-white: #ffffff;
  --sofl-success: #10b981;
  --sofl-danger: #ef4444;
  --sofl-warning: #f59e0b;
  --sofl-radius: 16px;
  --sofl-radius-sm: 14px;
  --sofl-shadow: 0 20px 55px rgba(15, 23, 42, .08);
  --sofl-shadow-soft: 0 10px 30px rgba(15, 23, 42, .06);
  --sofl-transition: 180ms ease;
}

/* Premium Saved Library / Collections */
.sofl-saved-library {
  display: grid;
  gap: 22px;
  color: var(--sofl-text);
}

.sofl-saved-library a {
  text-decoration: none;
}

.sofl-saved-hero {
  --collection-accent: var(--sofl-gold);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
  gap: 24px;
  align-items: stretch;
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid rgba(229, 231, 235, .95);
  border-radius: var(--sofl-radius);
  background: #fff;
  box-shadow: var(--sofl-shadow-soft);
}

.sofl-saved-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, color-mix(in srgb, var(--collection-accent) 14%, transparent), transparent 34%), radial-gradient(circle at 92% 10%, rgba(15, 23, 42, .08), transparent 28%);
}

.sofl-saved-hero > * {
  position: relative;
  z-index: 1;
}

.sofl-saved-hero h1 {
  margin: 8px 0 10px;
  color: var(--sofl-dark);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  line-height: 1.08;
}

.sofl-saved-hero p {
  max-width: 720px;
  margin: 0;
  color: var(--sofl-muted);
  line-height: 1.65;
}

.sofl-saved-hero-actions,
.sofl-save-modal-options,
.sofl-inline-create-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.sofl-saved-hero-actions {
  margin-top: 18px;
}

.sofl-saved-hero-panel {
  display: grid;
  align-content: center;
  gap: 8px;
  min-height: 168px;
  padding: 18px;
  border: 1px solid rgba(212, 168, 67, .25);
  border-radius: 16px;
  background: linear-gradient(180deg, #fff, var(--sofl-gold-wash));
}

.sofl-saved-hero-panel span {
  color: var(--sofl-dark);
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1;
}

.sofl-saved-hero-panel strong {
  color: var(--sofl-dark);
  font-weight: 900;
}

.sofl-saved-hero-panel small,
.sofl-collection-meta,
.sofl-saved-content-actions small,
.sofl-collection-card-foot small,
.sofl-modal-kicker {
  color: var(--sofl-muted);
}

.sofl-library-kicker,
.sofl-modal-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #9a6b16;
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.sofl-saved-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.sofl-library-stat {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 3px 12px;
  min-height: 112px;
  padding: 18px;
  border: 1px solid rgba(229, 231, 235, .95);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--sofl-shadow-soft);
  transition: transform var(--sofl-transition), border-color var(--sofl-transition), box-shadow var(--sofl-transition);
}

.sofl-library-stat:hover,
.sofl-collection-card:hover,
.sofl-saved-content-card:hover {
  transform: translateY(-3px);
  border-color: rgba(212, 168, 67, .5);
  box-shadow: var(--sofl-shadow);
}

.sofl-library-stat span,
.sofl-collection-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  grid-row: span 2;
  border-radius: 14px;
  background: rgba(212, 168, 67, .15);
  color: var(--sofl-gold-deep);
}

.sofl-library-stat strong {
  color: var(--sofl-dark);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}

.sofl-library-stat small {
  color: var(--sofl-muted);
  font-weight: 850;
}

.sofl-collection-card {
  --collection-accent: var(--sofl-gold);
  position: relative;
  display: grid;
  gap: 14px;
  min-height: 230px;
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(229, 231, 235, .95);
  border-top: 4px solid var(--collection-accent);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--sofl-shadow-soft);
  transition: transform var(--sofl-transition), border-color var(--sofl-transition), box-shadow var(--sofl-transition);
}

.sofl-card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.sofl-collection-card > *:not(.sofl-card-link) {
  position: relative;
  z-index: 2;
}

.sofl-collection-card-top,
.sofl-collection-card-foot,
.sofl-saved-content-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sofl-collection-icon {
  background: color-mix(in srgb, var(--collection-accent) 15%, white);
  color: var(--collection-accent);
}

.sofl-collection-pill,
.sofl-collection-count,
.sofl-module-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 900;
  white-space: nowrap;
}

.sofl-collection-pill,
.sofl-collection-count {
  background: color-mix(in srgb, var(--collection-accent) 12%, white);
  color: color-mix(in srgb, var(--collection-accent) 75%, #111827);
}

.sofl-module-badge {
  background: #eff6ff;
  color: #1d4ed8;
}

.sofl-collection-card h3,
.sofl-saved-content-card h3 {
  margin: 0;
  color: var(--sofl-dark);
  font-size: 1.08rem;
  font-weight: 900;
}

.sofl-saved-content-card h3 a {
  color: inherit;
}

.sofl-collection-card p,
.sofl-saved-content-card p,
.sofl-saved-empty p {
  margin: 0;
  color: var(--sofl-muted);
  line-height: 1.55;
}

.sofl-collection-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: .84rem;
  font-weight: 800;
}

.sofl-collection-meta span {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.sofl-collection-card-foot span {
  color: var(--sofl-dark);
  font-weight: 900;
}

.sofl-saved-content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.sofl-saved-content-card {
  display: grid;
  gap: 16px;
  min-height: 250px;
  padding: 18px;
  border: 1px solid rgba(229, 231, 235, .95);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--sofl-shadow-soft);
  transition: transform var(--sofl-transition), border-color var(--sofl-transition), box-shadow var(--sofl-transition);
}

.sofl-saved-content-main {
  display: grid;
  gap: 12px;
}

.sofl-save-button {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(212, 168, 67, .38);
  border-radius: 999px;
  background: #fff;
  color: #9a6b16;
  transition: transform var(--sofl-transition), background var(--sofl-transition), color var(--sofl-transition), border-color var(--sofl-transition);
}

.sofl-save-button:hover,
.sofl-save-button.is-favorite,
.sofl-save-button.is-saved {
  border-color: var(--sofl-gold);
  background: var(--sofl-gold);
  color: var(--sofl-dark);
  transform: scale(1.06);
}

.sofl-save-button.is-animating {
  animation: soflSavedPulse .18s ease;
}

@keyframes soflSavedPulse {
  50% {
    transform: scale(1.16);
  }
}

.sofl-saved-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.sofl-saved-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid var(--sofl-border);
  border-radius: 999px;
  background: #f8fafc;
  color: #475569;
  font-size: .76rem;
  font-weight: 800;
}

.sofl-saved-note {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(212, 168, 67, .24);
  border-radius: 14px;
  background: var(--sofl-gold-wash);
}

.sofl-saved-note span {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  color: #9a6b16;
  font-size: .78rem;
  font-weight: 900;
}

.sofl-saved-content-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--sofl-border);
}

.sofl-saved-content-actions small {
  margin-right: auto;
  font-weight: 800;
}

.sofl-collection-filter {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(150px, 190px) minmax(150px, 190px);
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(229, 231, 235, .95);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--sofl-shadow-soft);
}

.sofl-save-modal .modal-content {
  border: 0;
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .24);
}

.sofl-save-modal .modal-header,
.sofl-save-modal .modal-footer {
  border-color: var(--sofl-border);
}

.sofl-save-modal .modal-title {
  color: var(--sofl-dark);
  font-weight: 900;
}

.sofl-save-modal-options {
  margin-top: 14px;
}

.sofl-create-inline-toggle {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-top: 14px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #9a6b16;
  font-weight: 900;
}

.sofl-inline-create-panel {
  padding: 14px;
  border: 1px dashed rgba(212, 168, 67, .45);
  border-radius: 16px;
  background: var(--sofl-gold-wash);
}

.sofl-inline-create-actions {
  justify-content: flex-end;
  margin-top: 14px;
}

.sofl-saved-empty {
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 240px;
  padding: 30px;
  border: 1px dashed rgba(212, 168, 67, .5);
  border-radius: 16px;
  background: linear-gradient(180deg, #fff, var(--sofl-gold-wash));
  text-align: center;
}

.sofl-saved-empty span {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(212, 168, 67, .16);
  color: var(--sofl-gold-deep);
  font-size: 1.3rem;
}

.sofl-saved-empty h3 {
  margin: 0;
  color: var(--sofl-dark);
  font-size: 1.16rem;
  font-weight: 900;
}

@media (max-width: 1199.98px) {
  .sofl-saved-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .sofl-saved-hero,
  .sofl-saved-content-grid,
  .sofl-collection-filter {
    grid-template-columns: 1fr;
  }

  .sofl-saved-hero-panel {
    min-height: 130px;
  }
}

@media (max-width: 575.98px) {
  .sofl-saved-stats {
    grid-template-columns: 1fr;
  }

  .sofl-saved-content-actions,
  .sofl-saved-hero-actions,
  .sofl-inline-create-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .sofl-saved-content-actions small,
  .sofl-saved-content-actions .sofl-btn-gold,
  .sofl-saved-content-actions .sofl-btn-outline,
  .sofl-saved-content-actions form,
  .sofl-saved-content-actions .sofl-icon-button,
  .sofl-saved-hero-actions .sofl-btn-gold,
  .sofl-saved-hero-actions .sofl-btn-outline {
    width: 100%;
  }
}

/* SOFL premium support ticket module */
.sofl-support-dashboard {
  display: grid;
  gap: 22px;
  color: var(--sofl-text);
}

.sofl-support-dashboard a {
  text-decoration: none;
}

.sofl-support-hero,
.sofl-support-page-title,
.sofl-ticket-detail-header,
.sofl-support-main-panel,
.sofl-support-form,
.sofl-ticket-reply,
.sofl-ticket-sidebar > *,
.sofl-faq-suggestion {
  border: 1px solid rgba(229, 231, 235, .95);
  border-radius: var(--sofl-radius);
  background: #fff;
  box-shadow: var(--sofl-shadow-soft);
}

.sofl-support-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  overflow: hidden;
  position: relative;
  padding: clamp(22px, 4vw, 38px);
}

.sofl-support-hero::before,
.sofl-support-page-title::before,
.sofl-ticket-detail-header::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(212, 168, 67, .14), transparent 36%), radial-gradient(circle at 94% 12%, rgba(15, 23, 42, .07), transparent 28%);
}

.sofl-support-hero > *,
.sofl-support-page-title > *,
.sofl-ticket-detail-header > * {
  position: relative;
  z-index: 1;
}

.sofl-support-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #9a6b16;
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.sofl-support-hero h1,
.sofl-support-page-title h1,
.sofl-ticket-detail-header h1 {
  margin: 8px 0 10px;
  color: var(--sofl-dark);
  font-weight: 900;
  line-height: 1.08;
}

.sofl-support-hero h1 {
  max-width: 760px;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.sofl-support-page-title h1,
.sofl-ticket-detail-header h1 {
  font-size: clamp(1.75rem, 3vw, 2.45rem);
}

.sofl-support-hero p,
.sofl-support-page-title p {
  max-width: 720px;
  margin: 0;
  color: var(--sofl-muted);
  line-height: 1.65;
}

.sofl-support-hero-actions,
.sofl-ticket-badges,
.sofl-ticket-header-meta,
.sofl-ticket-reply-actions,
.sofl-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.sofl-support-page-title,
.sofl-ticket-detail-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 24px;
}

.sofl-support-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.sofl-support-dashboard-card {
  display: flex;
  gap: 14px;
  align-items: center;
  min-height: 126px;
  padding: 18px;
  border: 1px solid rgba(229, 231, 235, .95);
  border-radius: var(--sofl-radius);
  background: #fff;
  box-shadow: var(--sofl-shadow-soft);
}

.sofl-support-dashboard-card > span,
.sofl-support-panel-head > span,
.sofl-support-tip-card > span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 14px;
  background: rgba(212, 168, 67, .15);
  color: var(--sofl-gold-deep);
}

.sofl-support-dashboard-card small,
.sofl-support-dashboard-card em,
.sofl-ticket-card-side small,
.sofl-ticket-card-side span,
.sofl-ticket-meta,
.sofl-ticket-message-head span,
.sofl-faq-suggestion small,
.sofl-ticket-attachment small {
  color: var(--sofl-muted);
}

.sofl-support-dashboard-card small {
  display: block;
  font-weight: 800;
}

.sofl-support-dashboard-card strong {
  display: block;
  color: var(--sofl-dark);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.1;
}

.sofl-support-dashboard-card em {
  display: block;
  font-size: .84rem;
  font-style: normal;
}

.sofl-support-layout,
.sofl-ticket-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 22px;
  align-items: start;
}

.sofl-support-main-panel,
.sofl-support-form {
  padding: 20px;
}

.sofl-support-section-head,
.sofl-support-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.sofl-support-section-head h2 {
  margin: 0 0 4px;
  color: var(--sofl-dark);
  font-size: 1.15rem;
  font-weight: 900;
}

.sofl-support-section-head p,
.sofl-support-tip-card p {
  margin: 0;
  color: var(--sofl-muted);
  line-height: 1.55;
}

.sofl-support-section-head a {
  color: var(--sofl-dark);
  font-weight: 850;
}

.sofl-ticket-list {
  display: grid;
  gap: 14px;
}

.sofl-ticket-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 240px);
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(229, 231, 235, .95);
  border-radius: var(--sofl-radius-sm);
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .045);
  cursor: pointer;
  transition: transform var(--sofl-transition), border-color var(--sofl-transition), box-shadow var(--sofl-transition);
}

.sofl-ticket-card:hover {
  transform: translateY(-2px);
  border-color: rgba(212, 168, 67, .46);
  box-shadow: var(--sofl-shadow-soft);
}

.sofl-ticket-card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.sofl-ticket-number {
  color: var(--sofl-gold-deep);
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .02em;
}

.sofl-ticket-card h3 {
  margin: 0 0 8px;
  color: var(--sofl-dark);
  font-size: 1.05rem;
  font-weight: 900;
}

.sofl-ticket-card h3 a {
  color: inherit;
}

.sofl-ticket-card p {
  margin: 0 0 14px;
  color: var(--sofl-muted);
  line-height: 1.55;
}

.sofl-ticket-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  font-size: .84rem;
  font-weight: 750;
}

.sofl-ticket-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sofl-ticket-card-side {
  display: grid;
  align-content: center;
  gap: 3px;
  padding-left: 16px;
  border-left: 1px solid var(--sofl-border);
}

.sofl-ticket-card-side strong {
  color: var(--sofl-dark);
}

.sofl-ticket-status,
.sofl-ticket-priority {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 900;
  white-space: nowrap;
}

.sofl-ticket-status-open {
  background: #eff6ff;
  color: #1d4ed8;
}

.sofl-ticket-status-in-review {
  background: #fff7ed;
  color: #c2410c;
}

.sofl-ticket-status-waiting-on-student {
  background: #fef3c7;
  color: #92400e;
}

.sofl-ticket-status-closed {
  background: #ecfdf5;
  color: #047857;
}

.sofl-ticket-priority-low {
  background: #f1f5f9;
  color: #475569;
}

.sofl-ticket-priority-medium {
  background: #eff6ff;
  color: #2563eb;
}

.sofl-ticket-priority-high {
  background: #fff1f2;
  color: #be123c;
}

.sofl-ticket-priority-urgent {
  background: #7f1d1d;
  color: #fff;
}

.sofl-ticket-filterbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) repeat(3, minmax(150px, 190px)) auto;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(229, 231, 235, .95);
  border-radius: var(--sofl-radius);
  background: #fff;
  box-shadow: var(--sofl-shadow-soft);
}

.sofl-ticket-filterbar-admin {
  grid-template-columns: minmax(240px, 1fr) repeat(5, minmax(135px, 170px)) auto;
}

.sofl-filter-search {
  position: relative;
}

.sofl-filter-search i {
  position: absolute;
  left: 14px;
  top: 50%;
  z-index: 2;
  color: var(--sofl-muted);
  transform: translateY(-50%);
}

.sofl-filter-search .form-control {
  padding-left: 40px;
}

.sofl-support-form .form-label,
.sofl-ticket-reply-head strong {
  color: var(--sofl-dark);
  font-weight: 900;
}

.sofl-rich-textarea,
.sofl-ticket-reply textarea {
  border-radius: 14px;
  line-height: 1.7;
}

.sofl-upload-dropzone,
.sofl-upload-inline {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px dashed rgba(212, 168, 67, .55);
  border-radius: 16px;
  background: var(--sofl-gold-wash);
  color: var(--sofl-dark);
  cursor: pointer;
}

.sofl-upload-dropzone {
  justify-content: center;
  min-height: 150px;
  flex-direction: column;
  padding: 24px;
  text-align: center;
}

.sofl-upload-dropzone i {
  color: var(--sofl-gold-deep);
  font-size: 1.6rem;
}

.sofl-upload-dropzone span {
  color: var(--sofl-muted);
}

.sofl-upload-inline {
  min-height: 42px;
  padding: 0 12px;
  font-weight: 850;
}

.sofl-attachment-preview {
  color: var(--sofl-muted);
  font-size: .88rem;
  font-weight: 750;
}

.sofl-form-actions {
  justify-content: flex-end;
  margin-top: 18px;
}

.sofl-ticket-detail-layout > main {
  display: grid;
  gap: 16px;
}

.sofl-back-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
  color: var(--sofl-muted);
  font-weight: 850;
}

.sofl-ticket-header-meta span:not(.sofl-ticket-status):not(.sofl-ticket-priority) {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--sofl-muted);
  font-size: .88rem;
  font-weight: 800;
}

.sofl-ticket-thread {
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid rgba(229, 231, 235, .95);
  border-radius: var(--sofl-radius);
  background: linear-gradient(180deg, #fff, #fbfdff);
  box-shadow: var(--sofl-shadow-soft);
}

.sofl-ticket-message {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.sofl-ticket-message-avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 13px;
  background: var(--sofl-dark);
  color: #fff;
  font-weight: 900;
}

.sofl-ticket-message-admin .sofl-ticket-message-avatar {
  background: var(--sofl-gold);
  color: var(--sofl-dark);
}

.sofl-ticket-message-internal .sofl-ticket-message-avatar {
  background: #64748b;
}

.sofl-ticket-message-body {
  max-width: 760px;
  padding: 14px 16px;
  border: 1px solid var(--sofl-border);
  border-radius: 16px;
  background: #fff;
}

.sofl-ticket-message-student .sofl-ticket-message-body {
  background: #f8fafc;
}

.sofl-ticket-message-internal .sofl-ticket-message-body {
  border-color: rgba(100, 116, 139, .26);
  background: #f1f5f9;
}

.sofl-ticket-message-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.sofl-ticket-message-head strong {
  color: var(--sofl-dark);
}

.sofl-ticket-message-body p {
  margin: 0;
  color: var(--sofl-text);
  line-height: 1.65;
}

.sofl-ticket-attachments {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.sofl-ticket-attachment {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--sofl-border);
  border-radius: 14px;
  background: #fff;
  color: var(--sofl-dark);
}

.sofl-ticket-attachment > span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(212, 168, 67, .13);
  color: var(--sofl-gold-deep);
}

.sofl-ticket-attachment strong,
.sofl-ticket-attachment small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sofl-ticket-reply {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.sofl-ticket-reply-head {
  display: grid;
  gap: 2px;
}

.sofl-ticket-reply-head span,
.sofl-inline-check span {
  color: var(--sofl-muted);
}

.sofl-inline-check {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-weight: 800;
}

.sofl-ticket-reply-actions {
  justify-content: space-between;
}

.sofl-ticket-sidebar {
  display: grid;
  gap: 16px;
}

.sofl-support-tip-card,
.sofl-faq-suggestion {
  padding: 18px;
}

.sofl-support-tip-card {
  display: grid;
  gap: 10px;
}

.sofl-support-tip-card strong,
.sofl-faq-suggestion strong,
.sofl-support-panel-head strong {
  color: var(--sofl-dark);
  font-weight: 900;
}

.sofl-faq-suggestion {
  display: grid;
  gap: 12px;
}

.sofl-faq-suggestion a {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--sofl-border);
  border-radius: 14px;
  color: var(--sofl-dark);
  transition: border-color var(--sofl-transition), background var(--sofl-transition);
}

.sofl-faq-suggestion a:hover {
  border-color: rgba(212, 168, 67, .42);
  background: var(--sofl-gold-wash);
}

.sofl-ticket-empty-state {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 220px;
  padding: 28px;
  border: 1px dashed rgba(212, 168, 67, .42);
  border-radius: var(--sofl-radius);
  background: linear-gradient(180deg, #fff, var(--sofl-gold-wash));
  text-align: center;
}

.sofl-ticket-empty-state span {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(212, 168, 67, .16);
  color: var(--sofl-gold-deep);
}

.sofl-ticket-empty-state h3 {
  margin: 0;
  color: var(--sofl-dark);
  font-size: 1.1rem;
  font-weight: 900;
}

.sofl-ticket-empty-state p {
  max-width: 520px;
  margin: 0;
  color: var(--sofl-muted);
}

.sofl-faq-list {
  display: grid;
  gap: 12px;
}

.sofl-faq-item {
  padding: 16px;
  border: 1px solid var(--sofl-border);
  border-radius: 14px;
  background: #fff;
}

.sofl-faq-item h2 {
  margin: 0 0 6px;
  color: var(--sofl-dark);
  font-size: 1rem;
  font-weight: 900;
}

.sofl-faq-item p {
  margin: 0;
  color: var(--sofl-muted);
  line-height: 1.55;
}

.sofl-ticket-admin-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.sofl-ticket-admin-controls .form-select {
  width: auto;
  min-width: 150px;
}

.sofl-reply-count {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  min-height: 30px;
  border-radius: 999px;
  background: #f1f5f9;
  color: var(--sofl-dark);
  font-weight: 900;
}

@media (max-width: 1199.98px) {
  .sofl-support-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sofl-support-layout,
  .sofl-ticket-detail-layout {
    grid-template-columns: 1fr;
  }

  .sofl-ticket-filterbar,
  .sofl-ticket-filterbar-admin {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .sofl-support-hero,
  .sofl-support-page-title,
  .sofl-ticket-detail-header,
  .sofl-ticket-card {
    grid-template-columns: 1fr;
  }

  .sofl-support-page-title,
  .sofl-ticket-detail-header {
    align-items: stretch;
    flex-direction: column;
  }

  .sofl-support-metrics,
  .sofl-ticket-filterbar,
  .sofl-ticket-filterbar-admin {
    grid-template-columns: 1fr;
  }

  .sofl-ticket-card-side {
    padding: 12px 0 0;
    border-top: 1px solid var(--sofl-border);
    border-left: 0;
  }

  .sofl-ticket-message-body {
    max-width: 100%;
  }

  .sofl-ticket-reply-actions,
  .sofl-ticket-admin-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .sofl-ticket-admin-controls .form-select,
  .sofl-ticket-admin-controls .sofl-btn-gold {
    width: 100%;
  }
}

/* Premium Blog UI */
.sofl-blog-page {
  color: var(--sofl-text);
}

.sofl-blog-page a,
.sofl-blog-page button,
.sofl-blog-admin-page a,
.sofl-blog-admin-page button {
  cursor: pointer;
}

.sofl-blog-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--sofl-gold-deep);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.sofl-blog-listing-hero,
.sofl-blog-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: stretch;
  margin-bottom: 24px;
  padding: 34px;
  border: 1px solid rgba(212, 168, 67, .22);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, .98), rgba(15, 23, 42, .92)),
    var(--sofl-dark);
  box-shadow: var(--sofl-shadow);
}

.sofl-blog-listing-hero h1,
.sofl-blog-hero h1 {
  max-width: 880px;
  margin: 0;
  color: #ffffff;
  font-size: 2.7rem;
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: 0;
}

.sofl-blog-listing-hero p,
.sofl-blog-hero-copy > p {
  max-width: 740px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, .78);
  font-size: 1.02rem;
  line-height: 1.75;
}

.sofl-blog-hero-actions,
.sofl-blog-locked-actions,
.sofl-blog-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.sofl-blog-hero-panel {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 240px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .06));
}

.sofl-blog-hero-panel span {
  color: var(--sofl-gold-hover);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.sofl-blog-hero-panel strong {
  margin-top: 8px;
  color: #ffffff;
  font-size: 1.35rem;
  line-height: 1.2;
}

.sofl-blog-hero-panel p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, .72);
  line-height: 1.65;
}

.sofl-blog-filter {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) minmax(160px, .7fr) minmax(150px, .7fr) minmax(140px, .55fr) auto auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 28px;
  padding: 14px;
  border: 1px solid var(--sofl-border);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: var(--sofl-shadow-soft);
}

.sofl-blog-filter .form-control,
.sofl-blog-filter .form-select {
  min-height: 46px;
  border-color: var(--sofl-border);
  border-radius: 14px;
  box-shadow: none;
}

.sofl-blog-filter-search {
  position: relative;
}

.sofl-blog-filter-search i {
  position: absolute;
  top: 50%;
  left: 15px;
  color: var(--sofl-muted);
  transform: translateY(-50%);
}

.sofl-blog-filter-search .form-control {
  padding-left: 42px;
}

.sofl-blog-section {
  margin-top: 28px;
}

.sofl-blog-featured-grid,
.sofl-blog-card-grid,
.sofl-blog-related-grid,
.sofl-blog-takeaway-grid,
.sofl-blog-admin-stats {
  display: grid;
  gap: 18px;
}

.sofl-blog-featured-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sofl-blog-card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sofl-blog-card-grid.is-compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sofl-blog-featured,
.sofl-blog-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border: 1px solid var(--sofl-border);
  border-radius: 16px;
  background: #ffffff;
  color: var(--sofl-text);
  box-shadow: var(--sofl-shadow-soft);
  transition: transform var(--sofl-transition), border-color var(--sofl-transition), box-shadow var(--sofl-transition);
}

.sofl-blog-featured:hover,
.sofl-blog-card:hover {
  border-color: rgba(212, 168, 67, .48);
  color: var(--sofl-text);
  transform: translateY(-3px);
  box-shadow: var(--sofl-shadow);
}

.sofl-blog-featured-media,
.sofl-blog-card-media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #eef2f7;
}

.sofl-blog-featured-media img,
.sofl-blog-card-media img,
.sofl-blog-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sofl-blog-card-placeholder,
.sofl-blog-featured-media > span,
.sofl-blog-hero-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--sofl-gold-deep);
  background: linear-gradient(135deg, #f8fafc, var(--sofl-gold-wash));
  font-size: 2rem;
}

.sofl-blog-category-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid rgba(212, 168, 67, .34);
  border-radius: 999px;
  background: var(--sofl-gold-wash);
  color: #7c5a12;
  font-size: .76rem;
  font-weight: 900;
}

.sofl-blog-card-media .sofl-blog-category-badge {
  position: absolute;
  left: 14px;
  top: 14px;
}

.sofl-blog-lock-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(15, 23, 42, .92);
  color: #ffffff;
  font-size: .74rem;
  font-weight: 900;
}

.sofl-blog-card-media .sofl-blog-lock-pill {
  position: absolute;
  right: 14px;
  bottom: 14px;
}

.sofl-blog-featured-body,
.sofl-blog-card-body,
.sofl-blog-card-actions {
  padding: 18px;
}

.sofl-blog-featured-top {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.sofl-blog-card-body {
  flex: 1 1 auto;
}

.sofl-blog-featured h3,
.sofl-blog-card h3 {
  margin: 10px 0 9px;
  color: var(--sofl-dark);
  font-size: 1.1rem;
  line-height: 1.28;
  font-weight: 900;
}

.sofl-blog-card h3 a {
  color: inherit;
}

.sofl-blog-featured p,
.sofl-blog-card p {
  margin: 0;
  color: var(--sofl-muted);
  line-height: 1.58;
}

.sofl-blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  color: var(--sofl-muted);
  font-size: .84rem;
  font-weight: 760;
}

.sofl-blog-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.sofl-blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.sofl-blog-tags span {
  padding: 6px 9px;
  border-radius: 999px;
  background: #f3f4f6;
  color: var(--sofl-muted);
  font-size: .75rem;
  font-weight: 800;
}

.sofl-blog-card-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #edf1f5;
}

.sofl-blog-icon-btn,
.sofl-blog-action-btn {
  border: 1px solid var(--sofl-border);
  background: #ffffff;
  color: var(--sofl-dark);
  transition: border-color var(--sofl-transition), background var(--sofl-transition), transform var(--sofl-transition);
}

.sofl-blog-icon-btn {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 13px;
}

.sofl-blog-icon-btn:hover,
.sofl-blog-icon-btn.is-active,
.sofl-blog-action-btn:hover,
.sofl-blog-action-btn.is-active,
.sofl-blog-action-btn.is-copied {
  border-color: rgba(212, 168, 67, .52);
  background: var(--sofl-gold-wash);
  transform: translateY(-1px);
}

.sofl-blog-category-hero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-end;
  margin: 26px 0;
  padding: 24px;
  border: 1px solid var(--sofl-border);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: var(--sofl-shadow-soft);
}

.sofl-blog-category-hero h2 {
  margin: 0;
  color: var(--sofl-dark);
  font-size: 1.7rem;
  font-weight: 900;
}

.sofl-blog-category-hero p {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--sofl-muted);
  line-height: 1.65;
}

.sofl-blog-category-sort {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--sofl-border);
  border-radius: 999px;
  background: #f8fafc;
}

.sofl-blog-category-sort a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--sofl-muted);
  font-weight: 850;
}

.sofl-blog-category-sort a.active,
.sofl-blog-category-sort a:hover {
  background: #ffffff;
  color: var(--sofl-dark);
  box-shadow: var(--sofl-shadow-soft);
}

.sofl-blog-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
  color: var(--sofl-muted);
  font-size: .84rem;
  font-weight: 800;
}

.sofl-blog-breadcrumb a {
  color: var(--sofl-dark);
}

.sofl-blog-hero {
  grid-template-columns: minmax(0, 1fr) 42%;
  padding: 28px;
}

.sofl-blog-hero-image {
  overflow: hidden;
  min-height: 330px;
  border-radius: 14px;
  background: #0b1120;
}

.sofl-blog-hero-placeholder {
  min-height: 330px;
  gap: 10px;
  color: var(--sofl-gold-hover);
  background: rgba(255, 255, 255, .08);
}

.sofl-blog-hero-placeholder span {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 900;
}

.sofl-blog-reading-progress {
  position: sticky;
  z-index: 18;
  top: 0;
  overflow: hidden;
  margin: -8px 0 18px;
  border: 1px solid var(--sofl-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, .92);
  box-shadow: var(--sofl-shadow-soft);
  backdrop-filter: blur(14px);
}

.sofl-blog-reading-progress-bar {
  width: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--sofl-gold-hover), var(--sofl-gold), var(--sofl-gold-deep));
  transition: width 160ms ease;
}

.sofl-blog-reading-progress-inner {
  min-height: 42px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 8px 14px;
  color: var(--sofl-muted);
  font-size: .82rem;
  font-weight: 780;
}

.sofl-blog-reading-progress-inner span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sofl-blog-reading-progress-inner strong {
  color: var(--sofl-dark);
}

.sofl-blog-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
  align-items: start;
}

.sofl-blog-article-main {
  min-width: 0;
}

.sofl-blog-sidebar {
  position: sticky;
  top: 86px;
  display: grid;
  gap: 14px;
}

.sofl-blog-action-bar,
.sofl-blog-takeaways,
.sofl-blog-content,
.sofl-blog-related,
.sofl-blog-locked {
  margin-bottom: 22px;
  border: 1px solid var(--sofl-border);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: var(--sofl-shadow-soft);
}

.sofl-blog-action-bar {
  position: sticky;
  z-index: 16;
  top: 66px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px;
}

.sofl-blog-action-bar form {
  margin: 0;
}

.sofl-blog-action-btn {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  border-radius: 13px;
  font-weight: 850;
}

.sofl-blog-takeaways,
.sofl-blog-content,
.sofl-blog-related {
  padding: 24px;
}

.sofl-blog-takeaway-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 14px;
}

.sofl-blog-takeaway-grid > div {
  padding: 16px;
  border: 1px solid var(--sofl-border);
  border-radius: 14px;
  background: #f8fafc;
}

.sofl-blog-takeaway-grid strong,
.sofl-blog-takeaway-grid span {
  display: block;
}

.sofl-blog-takeaway-grid strong {
  color: var(--sofl-dark);
  font-weight: 900;
}

.sofl-blog-takeaway-grid span {
  margin-top: 6px;
  color: var(--sofl-muted);
  line-height: 1.55;
}

.sofl-blog-content {
  max-width: 920px;
}

.sofl-blog-richtext {
  color: var(--sofl-text);
  font-size: 1.05rem;
  line-height: 1.86;
}

.sofl-blog-richtext h1,
.sofl-blog-richtext h2,
.sofl-blog-richtext h3,
.sofl-blog-richtext h4 {
  margin: 1.45em 0 .55em;
  color: var(--sofl-dark);
  line-height: 1.18;
  font-weight: 900;
}

.sofl-blog-richtext h2 {
  font-size: 1.85rem;
}

.sofl-blog-richtext h3 {
  font-size: 1.35rem;
}

.sofl-blog-richtext p {
  margin: 0 0 1.1em;
}

.sofl-blog-richtext blockquote {
  margin: 1.4em 0;
  padding: 18px 20px;
  border-left: 4px solid var(--sofl-gold);
  border-radius: 0 14px 14px 0;
  background: var(--sofl-gold-wash);
  color: var(--sofl-dark);
  font-weight: 700;
}

.sofl-blog-richtext table {
  width: 100%;
  overflow: hidden;
  margin: 1.4em 0;
  border: 1px solid var(--sofl-border);
  border-radius: 14px;
  border-collapse: separate;
  border-spacing: 0;
}

.sofl-blog-richtext th,
.sofl-blog-richtext td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--sofl-border);
  vertical-align: top;
}

.sofl-blog-richtext th {
  background: #f8fafc;
  color: var(--sofl-dark);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.sofl-blog-richtext tr:last-child td {
  border-bottom: 0;
}

.sofl-blog-richtext .info-box,
.sofl-blog-richtext .financial-example,
.sofl-blog-richtext .example-box {
  margin: 1.4em 0;
  padding: 18px;
  border: 1px solid rgba(212, 168, 67, .36);
  border-radius: 14px;
  background: linear-gradient(135deg, #ffffff, var(--sofl-gold-wash));
}

.sofl-blog-lock-preview {
  position: relative;
  max-height: 420px;
  overflow: hidden;
}

.sofl-blog-lock-preview::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 170px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #ffffff);
}

.sofl-blog-locked {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 18px;
  padding: 24px;
  border-color: rgba(212, 168, 67, .34);
  background: linear-gradient(135deg, #ffffff, var(--sofl-gold-wash));
}

.sofl-blog-locked-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--sofl-dark);
  color: var(--sofl-gold-hover);
  font-size: 1.35rem;
}

.sofl-blog-locked h2 {
  margin: 0;
  color: var(--sofl-dark);
  font-weight: 900;
}

.sofl-blog-locked p {
  margin: 8px 0 0;
  color: var(--sofl-muted);
  line-height: 1.65;
}

.sofl-blog-lock-reason {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(212, 168, 67, .34);
  border-radius: 14px;
  background: rgba(255, 255, 255, .72);
  color: var(--sofl-dark);
  line-height: 1.6;
}

.sofl-blog-related-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sofl-focus-mode .sofl-sidebar,
.sofl-focus-mode .sofl-topbar,
.sofl-focus-mode .sofl-blog-sidebar,
.sofl-focus-mode .sofl-blog-breadcrumb,
.sofl-focus-mode .sofl-blog-action-bar {
  display: none !important;
}

.sofl-focus-mode .sofl-dashboard-main {
  margin-left: 0;
}

.sofl-focus-mode .sofl-blog-detail-layout {
  grid-template-columns: minmax(0, 920px);
  justify-content: center;
}

.sofl-quick-read .sofl-blog-richtext p:nth-of-type(n+5),
.sofl-quick-read .sofl-blog-richtext ul:nth-of-type(n+3),
.sofl-quick-read .sofl-blog-richtext ol:nth-of-type(n+3) {
  display: none;
}

.sofl-blog-admin-header {
  align-items: center;
}

.sofl-blog-admin-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
}

.sofl-blog-admin-stats > div {
  padding: 18px;
  border: 1px solid var(--sofl-border);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: var(--sofl-shadow-soft);
}

.sofl-blog-admin-stats span,
.sofl-blog-admin-stats strong {
  display: block;
}

.sofl-blog-admin-stats span {
  color: var(--sofl-muted);
  font-size: .78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.sofl-blog-admin-stats strong {
  margin-top: 6px;
  color: var(--sofl-dark);
  font-size: 1.65rem;
  font-weight: 900;
}

.sofl-admin-blog-title,
.sofl-admin-category-name {
  display: flex;
  gap: 12px;
  align-items: center;
}

.sofl-admin-blog-title img,
.sofl-admin-blog-title > span,
.sofl-category-tree-icon {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  border-radius: 14px;
}

.sofl-admin-blog-title img {
  object-fit: cover;
}

.sofl-admin-blog-title > span,
.sofl-category-tree-icon {
  display: grid;
  place-items: center;
  background: var(--sofl-gold-wash);
  color: var(--sofl-gold-deep);
}

.sofl-admin-blog-title strong,
.sofl-admin-category-name strong {
  display: block;
  color: var(--sofl-dark);
  line-height: 1.25;
  font-weight: 900;
}

.sofl-admin-blog-title small,
.sofl-admin-category-name small {
  display: block;
  margin-top: 4px;
  color: var(--sofl-muted);
}

.sofl-blog-admin-filter .form-control,
.sofl-blog-admin-filter .form-select {
  min-height: 44px;
  border-radius: 13px;
}

.sofl-blog-admin-form .sofl-form-sidebar {
  position: sticky;
  top: 86px;
}

.sofl-blog-publish-panel .form-check,
.sofl-admin-check-list .form-check {
  display: flex;
  gap: 9px;
  align-items: center;
  min-height: 38px;
  margin: 0;
  padding: 0;
}

.sofl-blog-publish-panel .form-check + .form-check,
.sofl-admin-check-list .form-check + .form-check {
  margin-top: 8px;
}

.sofl-admin-check-list {
  max-height: 290px;
  overflow: auto;
  padding-right: 4px;
}

.sofl-feature-preview {
  overflow: hidden;
  min-height: 172px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(212, 168, 67, .48);
  border-radius: 16px;
  background: #f8fafc;
  color: var(--sofl-muted);
  font-weight: 850;
}

.sofl-feature-preview img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.sofl-tinymce-wrapper {
  min-height: 280px;
}

.sofl-blog-seo-panel .sofl-form-section-title,
.sofl-form-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sofl-admin-mini-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.sofl-admin-mini-list span {
  padding: 7px 10px;
  border-radius: 999px;
  background: #f3f4f6;
  color: var(--sofl-muted);
  font-size: .78rem;
  font-weight: 850;
}

.sofl-sticky-save-bar {
  position: sticky;
  z-index: 20;
  bottom: 14px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-top: 18px;
  padding: 12px 14px;
  border: 1px solid rgba(212, 168, 67, .32);
  border-radius: 16px;
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--sofl-shadow);
  backdrop-filter: blur(14px);
}

.sofl-sticky-save-bar span {
  color: var(--sofl-muted);
  font-weight: 760;
}

.sofl-category-child-row .sofl-admin-category-name {
  padding-left: 18px;
}

.sofl-category-child-row .sofl-category-tree-icon {
  background: #f3f4f6;
  color: var(--sofl-muted);
}

.sofl-category-edit-form {
  padding: 18px;
  border: 1px solid var(--sofl-border);
  border-radius: 16px;
  background: #f8fafc;
}

@media (max-width: 1199.98px) {
  .sofl-blog-listing-hero,
  .sofl-blog-hero,
  .sofl-blog-detail-layout {
    grid-template-columns: 1fr;
  }

  .sofl-blog-filter {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sofl-blog-card-grid,
  .sofl-blog-featured-grid,
  .sofl-blog-card-grid.is-compact,
  .sofl-blog-admin-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sofl-blog-sidebar,
  .sofl-blog-admin-form .sofl-form-sidebar {
    position: static;
  }
}

@media (max-width: 767.98px) {
  .sofl-blog-listing-hero,
  .sofl-blog-hero,
  .sofl-blog-takeaways,
  .sofl-blog-content,
  .sofl-blog-related,
  .sofl-blog-locked {
    padding: 18px;
    border-radius: 14px;
  }

  .sofl-blog-listing-hero h1,
  .sofl-blog-hero h1 {
    font-size: 2rem;
  }

  .sofl-blog-filter,
  .sofl-blog-card-grid,
  .sofl-blog-featured-grid,
  .sofl-blog-card-grid.is-compact,
  .sofl-blog-related-grid,
  .sofl-blog-takeaway-grid,
  .sofl-blog-admin-stats,
  .sofl-blog-locked {
    grid-template-columns: 1fr;
  }

  .sofl-blog-category-hero,
  .sofl-sticky-save-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .sofl-blog-category-sort,
  .sofl-blog-action-bar {
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .sofl-blog-action-btn,
  .sofl-blog-category-sort a {
    white-space: nowrap;
  }

  .sofl-blog-hero-image,
  .sofl-blog-hero-placeholder {
    min-height: 220px;
  }
}

.sofl-video-page,
.sofl-admin-video-page {
  display: grid;
  gap: 28px;
  color: var(--sofl-text);
}

.sofl-video-page a,
.sofl-admin-video-page a {
  text-decoration: none;
}

.sofl-video-kicker,
.sofl-section-heading span,
.sofl-admin-video-card-head span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #9a6b16;
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.sofl-btn-gold,
.sofl-btn-outline {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 14px;
  padding: 10px 16px;
  font-weight: 800;
  border: 1px solid transparent;
  transition: transform var(--sofl-transition), box-shadow var(--sofl-transition), border-color var(--sofl-transition), background var(--sofl-transition);
}

.sofl-btn-gold {
  background: var(--sofl-gold);
  color: #1f1707;
  box-shadow: 0 12px 24px rgba(212, 168, 67, .22);
}

.sofl-btn-gold:hover {
  background: var(--sofl-gold-hover);
  color: #1f1707;
  transform: translateY(-1px);
}

.sofl-btn-outline {
  background: #fff;
  color: var(--sofl-dark);
  border-color: rgba(15, 23, 42, .1);
}

.sofl-btn-outline:hover {
  color: var(--sofl-dark);
  border-color: rgba(212, 168, 67, .55);
  box-shadow: var(--sofl-shadow-soft);
  transform: translateY(-1px);
}

.sofl-video-library-hero,
.sofl-admin-video-hero,
.sofl-simple-page-header,
.sofl-playlist-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, .9);
  border-radius: var(--sofl-radius);
  background: #fff;
  box-shadow: var(--sofl-shadow-soft);
}

.sofl-video-library-hero,
.sofl-admin-video-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 24px;
  align-items: end;
  padding: clamp(22px, 4vw, 40px);
}

.sofl-video-library-hero::before,
.sofl-admin-video-hero::before,
.sofl-simple-page-header::before,
.sofl-playlist-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(212, 168, 67, .14), transparent 36%), radial-gradient(circle at 94% 8%, rgba(15, 23, 42, .08), transparent 24%);
}

.sofl-video-library-hero > *,
.sofl-admin-video-hero > *,
.sofl-simple-page-header > *,
.sofl-playlist-hero > * {
  position: relative;
  z-index: 1;
}

.sofl-video-library-hero h1,
.sofl-admin-video-hero h1,
.sofl-simple-page-header h1,
.sofl-playlist-hero h1 {
  max-width: 780px;
  margin: 8px 0 12px;
  color: var(--sofl-dark);
  font-size: clamp(2rem, 4vw, 3.35rem);
  font-weight: 900;
  line-height: 1.05;
}

.sofl-video-library-hero p,
.sofl-admin-video-hero p,
.sofl-simple-page-header p,
.sofl-playlist-hero p {
  max-width: 720px;
  margin: 0;
  color: var(--sofl-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.sofl-video-hero-actions,
.sofl-playlist-hero-actions,
.sofl-watch-actions,
.sofl-playlist-actions,
.sofl-watch-toolbar,
.sofl-admin-sticky-save {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.sofl-video-hero-actions,
.sofl-playlist-hero-actions {
  margin-top: 24px;
}

.sofl-video-search,
.sofl-admin-video-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 8px 10px 8px 16px;
  border: 1px solid rgba(229, 231, 235, .95);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--sofl-shadow-soft);
}

.sofl-video-search input,
.sofl-video-search select {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--sofl-dark);
  background: transparent;
  font-weight: 700;
}

.sofl-video-search i,
.sofl-admin-video-filter label {
  color: var(--sofl-muted);
}

.sofl-video-search button {
  border: 0;
  border-radius: 12px;
  padding: 10px 16px;
  background: var(--sofl-dark);
  color: #fff;
  font-weight: 800;
}

.sofl-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.sofl-section-heading h2 {
  margin: 4px 0 0;
  color: var(--sofl-dark);
  font-size: 1.35rem;
  font-weight: 900;
}

.sofl-section-heading a,
.sofl-section-heading small {
  color: var(--sofl-muted);
  font-weight: 800;
}

.sofl-playlist-card {
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, .95);
  border-radius: var(--sofl-radius);
  background: #fff;
  box-shadow: var(--sofl-shadow-soft);
  transition: transform var(--sofl-transition), box-shadow var(--sofl-transition), border-color var(--sofl-transition);
}

.sofl-playlist-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 168, 67, .5);
  box-shadow: var(--sofl-shadow);
}

.sofl-playlist-card-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--sofl-dark);
}

.sofl-playlist-card-media img,
.sofl-playlist-hero-media img,
.sofl-continue-card img,
.sofl-video-card-thumb img,
.sofl-video-player img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sofl-video-count,
.sofl-lock-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: .78rem;
  font-weight: 850;
}

.sofl-video-count {
  left: 14px;
  bottom: 14px;
  color: #fff;
  background: rgba(15, 23, 42, .78);
  backdrop-filter: blur(8px);
}

.sofl-lock-chip {
  top: 14px;
  right: 14px;
  color: var(--sofl-dark);
  background: rgba(255, 255, 255, .92);
}

.sofl-playlist-card-body {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.sofl-video-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sofl-video-badges span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(212, 168, 67, .22);
  border-radius: 999px;
  padding: 6px 9px;
  background: var(--sofl-gold-wash);
  color: #7c5616;
  font-size: .75rem;
  font-weight: 850;
}

.sofl-playlist-card h3 {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1.3;
}

.sofl-playlist-card h3 a {
  color: var(--sofl-dark);
}

.sofl-playlist-card p {
  min-height: 44px;
  margin: 0;
  color: var(--sofl-muted);
  font-size: .92rem;
  line-height: 1.6;
}

.sofl-playlist-meta,
.sofl-watch-meta,
.sofl-playlist-hero-meta,
.sofl-video-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  color: var(--sofl-muted);
  font-size: .86rem;
  font-weight: 750;
}

.sofl-playlist-meta span,
.sofl-watch-meta span,
.sofl-playlist-hero-meta span,
.sofl-video-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sofl-watch-progress {
  display: block;
  width: 100%;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5e7eb;
}

.sofl-watch-progress-bar {
  display: block;
  height: 100%;
  min-width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--sofl-gold), var(--sofl-gold-hover));
}

.sofl-playlist-actions {
  justify-content: space-between;
}

.sofl-save-video-btn {
  flex: 0 0 42px;
}

.sofl-save-video-btn.is-active,
.sofl-icon-btn.is-active {
  color: var(--sofl-gold-deep);
  border-color: rgba(212, 168, 67, .5);
  background: var(--sofl-gold-wash);
}

.sofl-continue-watching {
  display: grid;
  gap: 2px;
}

.sofl-continue-card {
  height: 100%;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 14px;
  padding: 12px;
  border: 1px solid rgba(229, 231, 235, .95);
  border-radius: var(--sofl-radius-sm);
  background: #fff;
  color: var(--sofl-dark);
  box-shadow: var(--sofl-shadow-soft);
}

.sofl-continue-card img {
  aspect-ratio: 16 / 9;
  border-radius: 12px;
}

.sofl-continue-card span {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 7px;
}

.sofl-continue-card strong {
  overflow: hidden;
  color: var(--sofl-dark);
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sofl-continue-card small {
  color: var(--sofl-muted);
  font-weight: 750;
}

.sofl-playlist-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 28px;
  align-items: center;
  padding: clamp(22px, 4vw, 38px);
}

.sofl-playlist-hero-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: var(--sofl-shadow);
}

.sofl-video-list-panel,
.sofl-watch-content,
.sofl-related-learning section,
.sofl-video-sidebar,
.sofl-admin-video-card,
.sofl-admin-video-preview {
  border: 1px solid rgba(229, 231, 235, .95);
  border-radius: var(--sofl-radius);
  background: #fff;
  box-shadow: var(--sofl-shadow-soft);
}

.sofl-video-list-panel {
  padding: 20px;
}

.sofl-video-list,
.sofl-related-videos {
  display: grid;
  gap: 12px;
}

.sofl-video-card {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(229, 231, 235, .9);
  border-radius: 14px;
  color: var(--sofl-dark);
  background: #fff;
  transition: border-color var(--sofl-transition), transform var(--sofl-transition), box-shadow var(--sofl-transition);
}

.sofl-video-card:hover,
.sofl-video-card.is-complete {
  border-color: rgba(212, 168, 67, .5);
  box-shadow: var(--sofl-shadow-soft);
  transform: translateY(-1px);
}

.sofl-video-card.is-locked {
  background: #f9fafb;
}

.sofl-video-card-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  background: var(--sofl-dark);
}

.sofl-video-card-thumb span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(15, 23, 42, .18);
}

.sofl-video-card-body {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.sofl-video-card strong {
  color: var(--sofl-dark);
  font-weight: 900;
}

.sofl-video-card small {
  color: var(--sofl-muted);
  line-height: 1.5;
}

.sofl-video-player {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--sofl-radius);
  background: var(--sofl-dark);
  box-shadow: var(--sofl-shadow);
}

.sofl-video-player iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.sofl-video-player.is-locked::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .62);
}

.sofl-video-player .sofl-video-login-cta {
  position: absolute;
  inset: auto clamp(16px, 5vw, 44px) clamp(16px, 5vw, 44px);
  z-index: 2;
  max-width: 480px;
}

.sofl-video-player-empty {
  height: 100%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  color: #fff;
}

.sofl-watch-toolbar {
  margin: 16px 0;
}

.sofl-watch-content {
  padding: 22px;
}

.sofl-watch-content h1 {
  margin: 8px 0 10px;
  color: var(--sofl-dark);
  font-size: clamp(1.65rem, 3vw, 2.4rem);
  font-weight: 900;
  line-height: 1.14;
}

.sofl-watch-content p {
  color: var(--sofl-muted);
  line-height: 1.75;
}

.sofl-watch-actions {
  margin-top: 18px;
}

.sofl-video-sidebar {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 12px;
  padding: 16px;
}

.sofl-sidebar-section-title {
  display: grid;
  gap: 4px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--sofl-border);
}

.sofl-sidebar-section-title span {
  color: var(--sofl-dark);
  font-weight: 900;
}

.sofl-sidebar-section-title small {
  color: var(--sofl-muted);
}

.sofl-sidebar-current {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 14px;
  background: var(--sofl-dark);
  color: #fff;
}

.sofl-sidebar-current:hover {
  color: #fff;
}

.sofl-sidebar-current > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(212, 168, 67, .2);
  color: var(--sofl-gold);
}

.sofl-sidebar-current strong,
.sofl-sidebar-current small {
  display: block;
}

.sofl-sidebar-current small {
  color: rgba(255, 255, 255, .7);
}

.sofl-video-sidebar .sofl-video-card {
  grid-template-columns: 92px minmax(0, 1fr);
  padding: 8px;
}

.sofl-video-sidebar .sofl-video-card small {
  display: none;
}

.sofl-related-learning {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.sofl-related-learning section {
  padding: 18px;
}

.sofl-related-learning h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  color: var(--sofl-dark);
  font-size: 1rem;
  font-weight: 900;
}

.sofl-related-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.sofl-related-chips span {
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 999px;
  padding: 8px 11px;
  background: #f8fafc;
  color: var(--sofl-dark);
  font-size: .84rem;
  font-weight: 800;
}

.sofl-video-login-cta {
  display: grid;
  gap: 10px;
  padding: 22px;
  border: 1px solid rgba(212, 168, 67, .32);
  border-radius: var(--sofl-radius);
  background: linear-gradient(180deg, #fff, var(--sofl-gold-wash));
  box-shadow: var(--sofl-shadow-soft);
}

.sofl-video-login-banner {
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
}

.sofl-login-cta-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(212, 168, 67, .16);
  color: var(--sofl-gold-deep);
  font-size: 1.25rem;
}

.sofl-video-login-cta span {
  color: #9a6b16;
  font-size: .78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.sofl-video-login-cta h2 {
  margin: 0;
  color: var(--sofl-dark);
  font-size: 1.25rem;
  font-weight: 900;
}

.sofl-video-login-cta p {
  margin: 0;
  color: var(--sofl-muted);
  line-height: 1.65;
}

.sofl-simple-page-header {
  padding: clamp(22px, 4vw, 36px);
}

.sofl-watch-page.is-theatre .sofl-video-player {
  position: fixed;
  inset: 18px;
  z-index: 1080;
  border-radius: 18px;
}

.sofl-watch-page.is-theatre::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1070;
  background: rgba(15, 23, 42, .82);
}

.sofl-admin-video-card,
.sofl-admin-video-preview {
  padding: 20px;
}

.sofl-admin-video-card-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.sofl-admin-video-card-head strong {
  color: var(--sofl-dark);
  font-size: 1.05rem;
  font-weight: 900;
}

.sofl-admin-video-table th {
  color: var(--sofl-muted);
  font-size: .78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.sofl-admin-video-table td {
  padding: 16px;
}

.sofl-admin-thumb {
  width: 88px;
  height: 54px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, .08);
}

.sofl-order-pill,
.sofl-status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: .8rem;
  font-weight: 850;
}

.sofl-order-pill {
  color: var(--sofl-dark);
  background: #f1f5f9;
}

.sofl-status-pill.is-active {
  color: #047857;
  background: #d1fae5;
}

.sofl-status-pill.is-inactive {
  color: #64748b;
  background: #f1f5f9;
}

.sofl-admin-video-filter {
  max-width: 520px;
  padding: 12px 14px;
}

.sofl-admin-video-filter label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-weight: 850;
  white-space: nowrap;
}

.sofl-admin-video-preview {
  overflow: hidden;
  padding: 0;
}

.sofl-admin-video-preview img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--sofl-dark);
}

.sofl-admin-video-preview div {
  display: grid;
  gap: 4px;
  padding: 16px;
}

.sofl-admin-video-preview span {
  color: var(--sofl-muted);
  font-size: .78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.sofl-admin-video-preview strong {
  color: var(--sofl-dark);
  font-weight: 900;
}

.sofl-admin-toggle-list,
.sofl-admin-check-grid {
  display: grid;
  gap: 10px;
}

.sofl-admin-toggle-list label,
.sofl-admin-check-grid label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(229, 231, 235, .95);
  border-radius: 12px;
  color: var(--sofl-dark);
  background: #f8fafc;
  font-weight: 750;
}

.sofl-admin-check-grid {
  max-height: 280px;
  overflow: auto;
  padding-right: 4px;
}

.sofl-admin-sticky-save {
  position: sticky;
  bottom: 16px;
  z-index: 5;
  justify-content: flex-end;
  margin-top: 22px;
  padding: 14px;
  border: 1px solid rgba(229, 231, 235, .95);
  border-radius: 16px;
  background: rgba(255, 255, 255, .92);
  box-shadow: var(--sofl-shadow);
  backdrop-filter: blur(12px);
}

@media (max-width: 1199.98px) {
  .sofl-video-sidebar {
    position: static;
  }
}

@media (max-width: 991.98px) {
  .sofl-video-library-hero,
  .sofl-admin-video-hero,
  .sofl-playlist-hero {
    grid-template-columns: 1fr;
  }

  .sofl-video-login-banner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .sofl-section-heading,
  .sofl-playlist-actions,
  .sofl-watch-toolbar,
  .sofl-watch-actions,
  .sofl-admin-sticky-save {
    align-items: stretch;
    flex-direction: column;
  }

  .sofl-continue-card,
  .sofl-video-card,
  .sofl-video-sidebar .sofl-video-card {
    grid-template-columns: 1fr;
  }

  .sofl-video-search {
    align-items: stretch;
    flex-direction: column;
  }

  .sofl-video-search button,
  .sofl-btn-gold,
  .sofl-btn-outline {
    width: 100%;
  }

  .sofl-video-player .sofl-video-login-cta {
    inset: 12px;
    overflow: auto;
  }
}

.sofl-questionnaire-page {
  display: grid;
  gap: 24px;
}

.sofl-questionnaire-card {
  border: 1px solid rgba(229, 231, 235, .92);
  border-radius: var(--sofl-radius);
  background: var(--sofl-white);
  box-shadow: var(--sofl-shadow-soft);
}

.sofl-questionnaire-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 30px;
  align-items: stretch;
  padding: clamp(22px, 4vw, 38px);
  overflow: hidden;
  position: relative;
}

.sofl-questionnaire-hero::before,
.sofl-admin-questionnaire-hero::before,
.sofl-profile-summary-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(212, 168, 67, .12), transparent 34%),
    radial-gradient(circle at 92% 12%, rgba(212, 168, 67, .16), transparent 28%);
}

.sofl-questionnaire-hero > *,
.sofl-admin-questionnaire-hero > *,
.sofl-profile-summary-hero > * {
  position: relative;
  z-index: 1;
}

.sofl-questionnaire-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: #9a6b16;
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.sofl-questionnaire-hero h1,
.sofl-profile-summary-hero h1,
.sofl-admin-questionnaire-hero h1 {
  max-width: 760px;
  margin: 0 0 12px;
  color: var(--sofl-dark);
  font-size: clamp(1.85rem, 4vw, 3rem);
  font-weight: 900;
}

.sofl-questionnaire-hero p,
.sofl-profile-summary-hero p,
.sofl-admin-questionnaire-hero p {
  max-width: 680px;
  margin: 0;
  color: var(--sofl-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.sofl-questionnaire-actions,
.sofl-questionnaire-navigation-actions,
.sofl-builder-publish-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.sofl-questionnaire-actions {
  margin-top: 26px;
}

.sofl-questionnaire-unlock {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  border: 1px solid rgba(212, 168, 67, .28);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, var(--sofl-gold-wash));
}

.sofl-unlock-orb,
.sofl-thank-you-icon {
  width: 56px;
  height: 56px;
  display: inline-grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(212, 168, 67, .16);
  color: var(--sofl-gold-deep);
  font-size: 1.35rem;
}

.sofl-questionnaire-unlock strong {
  color: var(--sofl-dark);
  font-size: 1.15rem;
  font-weight: 900;
}

.sofl-questionnaire-unlock span {
  color: var(--sofl-muted);
  line-height: 1.65;
}

.sofl-questionnaire-stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: auto;
}

.sofl-questionnaire-stat-row div {
  padding: 12px;
  border: 1px solid rgba(229, 231, 235, .9);
  border-radius: 14px;
  background: #fff;
}

.sofl-questionnaire-stat-row small,
.sofl-profile-score small,
.sofl-financial-profile-card span {
  display: block;
  color: var(--sofl-muted);
  font-size: .78rem;
  font-weight: 700;
}

.sofl-questionnaire-stat-row b {
  display: block;
  margin-top: 4px;
  color: var(--sofl-dark);
  font-size: .92rem;
}

.sofl-financial-profile-card {
  height: 100%;
  display: grid;
  gap: 10px;
  padding: 20px;
  border: 1px solid rgba(229, 231, 235, .92);
  border-radius: var(--sofl-radius-sm);
  background: #fff;
  box-shadow: var(--sofl-shadow-soft);
}

.sofl-financial-profile-card i {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(212, 168, 67, .14);
  color: var(--sofl-gold-deep);
}

.sofl-financial-profile-card strong {
  color: var(--sofl-dark);
  font-size: 1.05rem;
  font-weight: 900;
}

.sofl-questionnaire-flow {
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
}

.sofl-question-progress {
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid rgba(229, 231, 235, .9);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--sofl-shadow-soft);
}

.sofl-question-progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
  color: var(--sofl-muted);
  font-size: .88rem;
  font-weight: 800;
}

.sofl-question-progress-meta strong {
  color: var(--sofl-dark);
}

.sofl-question-progress-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef2f7;
}

.sofl-question-progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--sofl-gold-deep), var(--sofl-gold-hover));
  transition: width 500ms ease;
}

.sofl-question-progress-title {
  margin-top: 10px;
  color: var(--sofl-dark);
  font-size: .92rem;
  font-weight: 850;
}

.sofl-question-step-card {
  padding: clamp(20px, 3vw, 32px);
}

.sofl-question-step-header {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--sofl-border);
}

.sofl-question-step-header h1 {
  margin: 0 0 8px;
  color: var(--sofl-dark);
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 900;
}

.sofl-question-step-header p,
.sofl-question-help {
  margin: 0;
  color: var(--sofl-muted);
  line-height: 1.65;
}

.sofl-question-list {
  display: grid;
  gap: 24px;
}

.sofl-question-block {
  padding: 20px;
  border: 1px solid rgba(229, 231, 235, .88);
  border-radius: var(--sofl-radius-sm);
  background: #fff;
  transition: opacity var(--sofl-transition), transform var(--sofl-transition), border-color var(--sofl-transition);
}

.sofl-question-block:focus-within {
  border-color: rgba(212, 168, 67, .58);
  box-shadow: 0 16px 36px rgba(15, 23, 42, .07);
}

.sofl-question-block.is-condition-hidden {
  display: none;
}

.sofl-question-label-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.sofl-question-label {
  color: var(--sofl-dark);
  font-weight: 850;
  line-height: 1.45;
}

.sofl-question-required {
  color: var(--sofl-danger);
  font-weight: 900;
}

.sofl-question-type {
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 999px;
  background: #f8fafc;
  color: var(--sofl-muted);
  font-size: .72rem;
  font-weight: 850;
}

.sofl-question-control {
  min-height: 48px;
  border-radius: 14px;
  border-color: var(--sofl-border);
}

.sofl-question-control:focus {
  border-color: rgba(212, 168, 67, .72);
  box-shadow: 0 0 0 .2rem rgba(212, 168, 67, .14);
}

.sofl-question-option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.sofl-question-option {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--sofl-border);
  border-radius: 14px;
  background: #fff;
  color: var(--sofl-dark);
  cursor: pointer;
  transition: transform var(--sofl-transition), border-color var(--sofl-transition), box-shadow var(--sofl-transition), background var(--sofl-transition);
}

.sofl-question-option:hover {
  transform: translateY(-1px);
  border-color: rgba(212, 168, 67, .55);
  box-shadow: 0 14px 30px rgba(15, 23, 42, .08);
}

.sofl-question-option input {
  flex: 0 0 auto;
}

.sofl-question-option span {
  flex: 1;
  min-width: 0;
  font-weight: 750;
}

.sofl-question-option i {
  opacity: 0;
  color: var(--sofl-gold-deep);
}

.sofl-question-option.is-selected {
  border-color: rgba(212, 168, 67, .78);
  background: var(--sofl-gold-wash);
}

.sofl-question-option.is-selected i {
  opacity: 1;
}

.sofl-rating-input {
  display: inline-flex;
  flex-direction: row-reverse;
  gap: 8px;
  margin-top: 12px;
}

.sofl-rating-input input {
  position: absolute;
  opacity: 0;
}

.sofl-rating-input label {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--sofl-border);
  border-radius: 12px;
  color: #cbd5e1;
  cursor: pointer;
  transition: color var(--sofl-transition), border-color var(--sofl-transition), background var(--sofl-transition);
}

.sofl-rating-input label:hover,
.sofl-rating-input label:hover ~ label,
.sofl-rating-input input:checked ~ label {
  border-color: rgba(212, 168, 67, .6);
  background: var(--sofl-gold-wash);
  color: var(--sofl-gold-deep);
}

.sofl-slider-wrap {
  margin-top: 14px;
}

.sofl-slider-wrap .form-range::-webkit-slider-thumb {
  background: var(--sofl-gold-deep);
}

.sofl-slider-wrap .form-range::-moz-range-thumb {
  background: var(--sofl-gold-deep);
}

.sofl-slider-scale {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--sofl-muted);
  font-size: .82rem;
  font-weight: 800;
}

.sofl-slider-scale strong {
  min-width: 42px;
  min-height: 32px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(212, 168, 67, .14);
  color: var(--sofl-gold-deep);
}

.sofl-questionnaire-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(229, 231, 235, .9);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--sofl-shadow-soft);
}

.sofl-save-button.is-loading {
  pointer-events: none;
  opacity: .82;
}

.sofl-thank-you-card {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 54px);
  text-align: center;
}

.sofl-thank-you-icon {
  margin: 0 auto 18px;
  background: rgba(16, 185, 129, .13);
  color: #059669;
}

.sofl-thank-you-card h1 {
  color: var(--sofl-dark);
  font-size: clamp(1.75rem, 4vw, 2.7rem);
  font-weight: 900;
}

.sofl-thank-you-card p {
  max-width: 620px;
  margin: 0 auto;
  color: var(--sofl-muted);
  line-height: 1.7;
}

.sofl-profile-summary-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 24px;
  align-items: center;
  padding: clamp(24px, 4vw, 38px);
  overflow: hidden;
}

.sofl-profile-score {
  display: grid;
  gap: 8px;
  padding: 22px;
  border: 1px solid rgba(212, 168, 67, .28);
  border-radius: 16px;
  background: #fff;
  text-align: center;
}

.sofl-profile-score strong {
  color: var(--sofl-dark);
  font-size: 3rem;
  font-weight: 900;
}

.sofl-profile-score span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--sofl-muted);
  font-size: .85rem;
  font-weight: 850;
}

.sofl-profile-score span.is-unlocked {
  color: #047857;
}

.sofl-blog-unlock-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  border-color: rgba(212, 168, 67, .3);
}

.sofl-blog-unlock-cta h2,
.sofl-admin-table-header h2,
.sofl-builder-panel-header h2,
.sofl-builder-section-header h2 {
  margin: 0;
  color: var(--sofl-dark);
  font-size: 1.2rem;
  font-weight: 900;
}

.sofl-blog-unlock-cta p,
.sofl-admin-table-header p,
.sofl-builder-panel-header p,
.sofl-builder-section-header p {
  margin: 5px 0 0;
  color: var(--sofl-muted);
  line-height: 1.6;
}

.sofl-admin-questionnaire-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(229, 231, 235, .92);
  border-radius: var(--sofl-radius);
  background: #fff;
  box-shadow: var(--sofl-shadow-soft);
  overflow: hidden;
}

.sofl-admin-table-card {
  overflow: hidden;
}

.sofl-admin-table-header {
  padding: 22px 24px;
  border-bottom: 1px solid var(--sofl-border);
}

.sofl-admin-table-card table thead th {
  background: #f8fafc;
  color: var(--sofl-muted);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.sofl-builder-settings {
  padding: 24px;
}

.sofl-builder-panel,
.sofl-builder-section {
  padding: 20px;
  margin-bottom: 20px;
}

.sofl-builder-panel-header,
.sofl-builder-section-header,
.sofl-builder-question-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.sofl-builder-panel-header > span {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 14px;
  background: rgba(212, 168, 67, .14);
  color: var(--sofl-gold-deep);
}

.sofl-condition-box {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px dashed rgba(212, 168, 67, .55);
  border-radius: 14px;
  background: var(--sofl-gold-wash);
}

.sofl-condition-title,
.sofl-condition-box.is-compact {
  color: #8a6417;
  font-size: .86rem;
  font-weight: 850;
}

.sofl-condition-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sofl-condition-box.is-compact {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
}

.sofl-builder-empty {
  padding: 18px;
  border: 1px dashed var(--sofl-border);
  border-radius: 14px;
  color: var(--sofl-muted);
  text-align: center;
}

.sofl-builder-question-list {
  display: grid;
  gap: 16px;
}

.sofl-builder-question {
  padding: 16px;
  border: 1px solid var(--sofl-border);
  border-radius: 14px;
  background: #fff;
}

.sofl-builder-question-title {
  color: var(--sofl-dark);
  font-weight: 900;
}

.sofl-builder-question-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 7px;
}

.sofl-builder-question-meta span {
  padding: 4px 9px;
  border-radius: 999px;
  background: #f8fafc;
  color: var(--sofl-muted);
  font-size: .74rem;
  font-weight: 800;
}

.sofl-option-editor {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.sofl-option-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(120px, .55fr) 90px 90px 42px;
  gap: 8px;
  align-items: center;
}

.sofl-option-row.is-new {
  padding-top: 10px;
  border-top: 1px dashed var(--sofl-border);
}

.sofl-builder-publish-row {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--sofl-border);
}

.sofl-response-detail {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 14px;
  background: #f8fafc;
}

.sofl-response-answer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.sofl-response-answer-grid div {
  padding: 12px;
  border-radius: 12px;
  background: #fff;
}

.sofl-response-answer-grid small,
.sofl-response-answer-grid span {
  display: block;
  overflow-wrap: anywhere;
}

.sofl-response-answer-grid small {
  color: var(--sofl-muted);
  font-size: .72rem;
}

.sofl-response-answer-grid span {
  color: var(--sofl-dark);
  font-weight: 750;
}

@media (max-width: 991.98px) {
  .sofl-questionnaire-hero,
  .sofl-profile-summary-hero {
    grid-template-columns: 1fr;
  }

  .sofl-admin-questionnaire-hero,
  .sofl-blog-unlock-cta,
  .sofl-questionnaire-navigation {
    align-items: stretch;
    flex-direction: column;
  }

  .sofl-questionnaire-navigation-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .sofl-option-row {
    grid-template-columns: 1fr 1fr;
  }

  .sofl-option-row button {
    min-height: 36px;
  }
}

@media (max-width: 767.98px) {
  .sofl-questionnaire-option-grid,
  .sofl-question-option-grid,
  .sofl-questionnaire-stat-row {
    grid-template-columns: 1fr;
  }

  .sofl-questionnaire-card,
  .sofl-question-block,
  .sofl-builder-settings,
  .sofl-builder-panel,
  .sofl-builder-section {
    border-radius: 14px;
  }

  .sofl-question-label-row,
  .sofl-builder-question-head {
    flex-direction: column;
  }

  .sofl-questionnaire-navigation-actions,
  .sofl-questionnaire-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .sofl-questionnaire-navigation .btn,
  .sofl-questionnaire-navigation .sofl-btn-gold,
  .sofl-questionnaire-actions .btn,
  .sofl-questionnaire-actions .sofl-btn-gold {
    width: 100%;
    justify-content: center;
  }

  .sofl-option-row {
    grid-template-columns: 1fr;
  }
}

/* Premium subscription, checkout, payment, and invoice experience */
.sofl-subscription-page,
.sofl-checkout-page,
.sofl-invoice-page {
  display: grid;
  gap: 24px;
}

.sofl-subscription-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 24px;
  align-items: center;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(212, 168, 67, .24);
  border-radius: 16px;
  background: linear-gradient(135deg, #ffffff, #fff9eb);
  box-shadow: var(--sofl-shadow-soft);
}

.sofl-subscription-hero h1 {
  max-width: 760px;
  margin: 0 0 12px;
  color: var(--sofl-dark);
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.05;
  font-weight: 900;
}

.sofl-subscription-hero p,
.sofl-unlock-panel p,
.sofl-plan-card p,
.sofl-billing-card p,
.sofl-checkout-summary p,
.sofl-payment-status p {
  color: var(--sofl-muted);
  line-height: 1.7;
}

.sofl-unlock-panel,
.sofl-subscription-active,
.sofl-plan-card,
.sofl-checkout-summary,
.sofl-billing-card,
.sofl-payment-status,
.sofl-invoice-card {
  border: 1px solid rgba(229, 231, 235, .92);
  border-radius: 16px;
  background: var(--sofl-white);
  box-shadow: var(--sofl-shadow-soft);
}

.sofl-unlock-panel {
  display: grid;
  gap: 12px;
  padding: 22px;
}

.sofl-unlock-panel > span,
.sofl-summary-heading > span,
.sofl-payment-status-icon {
  width: 56px;
  height: 56px;
  display: inline-grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(212, 168, 67, .15);
  color: var(--sofl-gold-deep);
  font-size: 1.25rem;
}

.sofl-unlock-panel strong,
.sofl-subscription-active h2,
.sofl-plan-card h2,
.sofl-checkout-summary h2,
.sofl-billing-card h2,
.sofl-payment-status h1,
.sofl-invoice-card h2 {
  margin: 0;
  color: var(--sofl-dark);
  font-weight: 900;
}

.sofl-subscription-active {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
}

.sofl-plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.sofl-plan-card {
  position: relative;
  display: grid;
  gap: 20px;
  padding: 24px;
  transition: transform var(--sofl-transition), border-color var(--sofl-transition), box-shadow var(--sofl-transition);
}

.sofl-plan-card:hover {
  transform: translateY(-3px);
  border-color: rgba(212, 168, 67, .48);
  box-shadow: var(--sofl-shadow);
}

.sofl-plan-card.is-featured {
  border-color: rgba(212, 168, 67, .55);
}

.sofl-plan-card.is-featured::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  border-radius: 16px 16px 0 0;
  background: linear-gradient(90deg, var(--sofl-gold), var(--sofl-gold-hover));
}

.sofl-plan-card.is-current {
  background: linear-gradient(180deg, #ffffff, #f7fff9);
}

.sofl-plan-card-top,
.sofl-card-title-row,
.sofl-summary-heading,
.sofl-status-actions,
.sofl-form-actions,
.sofl-invoice-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sofl-plan-popular,
.sofl-payment-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 850;
}

.sofl-plan-popular {
  background: var(--sofl-gold-wash);
  color: #8a6417;
}

.sofl-payment-badge.success {
  background: rgba(16, 185, 129, .12);
  color: #047857;
}

.sofl-payment-badge.warning {
  background: rgba(245, 158, 11, .14);
  color: #92400e;
}

.sofl-payment-badge.danger {
  background: rgba(239, 68, 68, .12);
  color: #b91c1c;
}

.sofl-payment-badge.muted {
  background: #f3f4f6;
  color: var(--sofl-muted);
}

.sofl-plan-price strong {
  display: block;
  color: var(--sofl-dark);
  font-size: 2.35rem;
  line-height: 1;
  font-weight: 950;
}

.sofl-plan-price span {
  display: block;
  margin-top: 6px;
  color: var(--sofl-muted);
  font-weight: 750;
}

.sofl-plan-features {
  display: grid;
  gap: 11px;
}

.sofl-plan-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--sofl-text);
  font-weight: 720;
}

.sofl-plan-feature i {
  margin-top: 3px;
  color: var(--sofl-gold-deep);
}

.sofl-checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 400px);
  gap: 22px;
  align-items: start;
}

.sofl-checkout-main {
  display: grid;
  gap: 18px;
}

.sofl-checkout-side {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 16px;
}

.sofl-checkout-summary {
  padding: 22px;
}

.sofl-price-breakdown {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.sofl-price-breakdown div,
.sofl-invoice-totals div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #eef2f6;
}

.sofl-price-breakdown span,
.sofl-invoice-totals span,
.sofl-detail-grid small {
  color: var(--sofl-muted);
  font-size: .84rem;
  font-weight: 780;
}

.sofl-price-total {
  margin-top: 2px;
  padding: 14px !important;
  border: 0 !important;
  border-radius: 14px;
  background: var(--sofl-gold-wash);
}

.sofl-price-total strong {
  color: var(--sofl-dark);
  font-size: 1.25rem;
}

.sofl-address-lines,
.sofl-detail-grid {
  display: grid;
  gap: 8px;
}

.sofl-address-lines span,
.sofl-detail-grid strong {
  color: var(--sofl-text);
}

.sofl-gst-line {
  margin-top: 6px;
  font-weight: 850;
}

.sofl-empty-soft {
  display: grid;
  gap: 8px;
  justify-items: center;
  padding: 28px;
  border: 1px dashed rgba(107, 114, 128, .32);
  border-radius: 16px;
  background: #f8fafc;
  color: var(--sofl-muted);
  text-align: center;
}

.sofl-empty-soft i {
  color: var(--sofl-gold-deep);
  font-size: 1.45rem;
}

.sofl-empty-soft strong {
  color: var(--sofl-dark);
}

.sofl-secure-payment-box {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(212, 168, 67, .28);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, var(--sofl-gold-wash));
}

.sofl-secure-payment-box div {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--sofl-dark);
  font-weight: 820;
}

.sofl-secure-payment-box i {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #ffffff;
  color: var(--sofl-gold-deep);
}

.sofl-payment-cta,
.sofl-billing-form {
  display: grid;
  gap: 16px;
}

.sofl-terms-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--sofl-muted);
  font-size: .92rem;
  line-height: 1.5;
}

.sofl-payment-status {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 56px);
  text-align: center;
}

.sofl-payment-status.success .sofl-payment-status-icon {
  background: rgba(16, 185, 129, .12);
  color: #047857;
}

.sofl-payment-status.failed .sofl-payment-status-icon {
  background: rgba(239, 68, 68, .12);
  color: #b91c1c;
}

.sofl-status-actions {
  justify-content: center;
  margin-top: 22px;
}

.sofl-copy-chip,
.sofl-copy-link {
  border: 0;
  background: transparent;
  color: var(--sofl-dark);
  font-weight: 820;
}

.sofl-copy-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--sofl-border);
  border-radius: 999px;
  background: #ffffff;
}

.sofl-copy-link {
  max-width: 260px;
  padding: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}

.sofl-copy-link:hover,
.sofl-copy-chip:hover {
  color: #8a6417;
}

.sofl-premium-table .sofl-table {
  margin-bottom: 0;
}

.sofl-invoice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.sofl-invoice-card {
  display: grid;
  gap: 18px;
  padding: 20px;
}

.sofl-invoice-card-total {
  color: var(--sofl-dark);
  font-size: 1.7rem;
  font-weight: 950;
}

.sofl-invoice-box {
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid rgba(229, 231, 235, .95);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: var(--sofl-shadow-soft);
}

.sofl-invoice-header,
.sofl-invoice-parties {
  display: grid;
  gap: 20px;
}

.sofl-invoice-header {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--sofl-border);
}

.sofl-invoice-header h1 {
  margin: 0;
  color: var(--sofl-dark);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 950;
}

.sofl-invoice-status {
  text-align: right;
}

.sofl-invoice-status strong {
  display: block;
  margin-top: 10px;
  color: var(--sofl-dark);
  font-size: 1.5rem;
}

.sofl-invoice-parties {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 24px 0;
}

.sofl-invoice-parties div {
  display: grid;
  gap: 5px;
  padding: 16px;
  border-radius: 14px;
  background: #f8fafc;
}

.sofl-invoice-parties small {
  color: var(--sofl-muted);
  font-weight: 850;
  text-transform: uppercase;
}

.sofl-invoice-parties strong {
  color: var(--sofl-dark);
}

.sofl-invoice-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid var(--sofl-border);
  border-radius: 14px;
}

.sofl-invoice-table th,
.sofl-invoice-table td {
  padding: 14px;
  border-bottom: 1px solid #eef2f6;
  vertical-align: top;
}

.sofl-invoice-table th {
  background: #f8fafc;
  color: var(--sofl-muted);
  font-size: .78rem;
  text-transform: uppercase;
}

.sofl-invoice-table td span {
  display: block;
  margin-top: 4px;
  color: var(--sofl-muted);
  font-size: .86rem;
}

.sofl-invoice-totals {
  max-width: 420px;
  margin: 22px 0 0 auto;
}

.sofl-gateway-settings .sofl-secret-mask {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 10px;
  background: #f8fafc;
  color: var(--sofl-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.sofl-gateway-warning {
  display: flex;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(245, 158, 11, .28);
  border-radius: 16px;
  background: #fffbeb;
  color: #78350f;
}

.sofl-gateway-warning i {
  margin-top: 2px;
  color: #b45309;
}

.sofl-gateway-warning strong,
.sofl-gateway-warning span {
  display: block;
}

.sofl-gateway-warning span {
  margin-top: 2px;
  color: #92400e;
}

.sofl-input-prefix {
  display: flex;
  align-items: stretch;
}

.sofl-input-prefix span {
  display: inline-grid;
  place-items: center;
  min-width: 46px;
  border: 1px solid var(--sofl-border);
  border-right: 0;
  border-radius: 14px 0 0 14px;
  background: #f8fafc;
  color: var(--sofl-muted);
  font-weight: 850;
}

.sofl-input-prefix .form-control {
  border-radius: 0 14px 14px 0;
}

.sofl-detail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.sofl-detail-grid div {
  min-width: 0;
  padding: 14px;
  border-radius: 14px;
  background: #f8fafc;
}

.sofl-inline-action-form {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.sofl-inline-action-form .form-control {
  width: min(220px, 42vw);
}

@media print {
  .sofl-sidebar,
  .sofl-topbar,
  .sofl-print-hidden,
  .sofl-sticky-actions {
    display: none !important;
  }

  .sofl-dashboard-shell,
  .sofl-main,
  .sofl-content {
    display: block !important;
    padding: 0 !important;
    background: #ffffff !important;
  }

  .sofl-invoice-box {
    border: 0;
    box-shadow: none;
  }
}

@media (max-width: 991.98px) {
  .sofl-subscription-hero,
  .sofl-checkout-layout,
  .sofl-invoice-header,
  .sofl-invoice-parties {
    grid-template-columns: 1fr;
  }

  .sofl-checkout-side {
    position: static;
  }

  .sofl-invoice-status {
    text-align: left;
  }
}

@media (max-width: 767.98px) {
  .sofl-subscription-active,
  .sofl-card-title-row,
  .sofl-status-actions,
  .sofl-inline-action-form {
    align-items: stretch;
    flex-direction: column;
  }

  .sofl-detail-grid {
    grid-template-columns: 1fr;
  }

  .sofl-inline-action-form .form-control,
  .sofl-status-actions > *,
  .sofl-invoice-card-actions > * {
    width: 100%;
  }
}

html,
body {
  min-height: 100%;
}

body.sofl-dashboard-body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--sofl-text);
  background:
    radial-gradient(circle at 85% -10%, rgba(212, 168, 67, .10), transparent 28%),
    var(--sofl-bg);
}

a {
  text-decoration: none;
}

.sofl-dashboard-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
}

.sofl-sidebar {
  position: sticky;
  top: 0;
  z-index: 1030;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-right: 1px solid rgba(255, 255, 255, .08);
  background:
    linear-gradient(180deg, rgba(212, 168, 67, .10), transparent 34%),
    linear-gradient(180deg, var(--sofl-dark), var(--sofl-dark-2));
  color: #ffffff;
  transition: width var(--sofl-transition), transform var(--sofl-transition);
}

.sofl-sidebar-brand {
  min-height: 86px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 18px 14px;
}

.sofl-sidebar-logo {
  width: 218px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.sofl-sidebar-collapse {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  margin-left: auto;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 12px;
  background: rgba(255, 255, 255, .06);
  color: rgba(255, 255, 255, .78);
  transition: background-color var(--sofl-transition), color var(--sofl-transition), border-color var(--sofl-transition);
}

.sofl-sidebar-collapse:hover {
  border-color: rgba(212, 168, 67, .36);
  background: rgba(212, 168, 67, .16);
  color: #ffffff;
}

.sofl-sidebar-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 4px 12px 18px;
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 168, 67, .35) transparent;
}

.sofl-sidebar-section {
  margin: 18px 0 7px;
  padding: 0 10px;
  color: rgba(255, 255, 255, .42);
  font-size: .72rem;
  font-weight: 820;
  letter-spacing: 0;
  text-transform: uppercase;
}

.sofl-nav-link,
.sofl-nav-toggle {
  position: relative;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 2px 0;
  padding: 0 12px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: rgba(255, 255, 255, .76);
  font-size: .92rem;
  font-weight: 720;
  text-align: left;
  transition: background-color var(--sofl-transition), color var(--sofl-transition), transform var(--sofl-transition);
}

.sofl-nav-link i,
.sofl-nav-toggle i {
  width: 20px;
  color: rgba(231, 200, 115, .82);
  text-align: center;
}

.sofl-nav-link:hover,
.sofl-nav-toggle:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, .07);
  transform: translateX(2px);
}

.sofl-nav-link.active,
.sofl-nav-toggle.active {
  color: #ffffff;
  background: rgba(212, 168, 67, .16);
  box-shadow: inset 0 0 0 1px rgba(212, 168, 67, .18);
}

.sofl-nav-link.active::before,
.sofl-nav-toggle.active::before {
  content: "";
  position: absolute;
  left: -12px;
  width: 3px;
  height: 24px;
  border-radius: 999px;
  background: var(--sofl-gold);
}

.sofl-nav-caret {
  margin-left: auto;
  color: rgba(255, 255, 255, .44);
  transition: transform var(--sofl-transition);
}

.sofl-nav-toggle[aria-expanded="true"] .sofl-nav-caret {
  transform: rotate(180deg);
}

.sofl-submenu {
  display: grid;
  gap: 2px;
  margin: 4px 0 8px;
  padding-left: 32px;
}

.sofl-submenu .sofl-nav-link {
  min-height: 38px;
  padding-left: 12px;
  font-size: .86rem;
  color: rgba(255, 255, 255, .64);
}

.sofl-sidebar-footer {
  padding: 14px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.sofl-sidebar-upgrade {
  padding: 14px;
  border: 1px solid rgba(212, 168, 67, .20);
  border-radius: 16px;
  background: rgba(212, 168, 67, .10);
}

.sofl-sidebar-upgrade strong {
  display: block;
  color: #ffffff;
  font-size: .9rem;
}

.sofl-sidebar-upgrade span {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, .58);
  font-size: .78rem;
  line-height: 1.45;
}

.sofl-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.sofl-topbar {
  position: sticky;
  top: 0;
  z-index: 1020;
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 28px;
  border-bottom: 1px solid rgba(229, 231, 235, .92);
  background: rgba(255, 255, 255, .90);
  backdrop-filter: blur(16px);
}

.sofl-mobile-menu {
  width: 42px;
  height: 42px;
  display: none;
  place-items: center;
  border: 1px solid var(--sofl-border);
  border-radius: 14px;
  background: #ffffff;
  color: var(--sofl-dark);
}

.sofl-topbar-title {
  min-width: 170px;
}

.sofl-topbar-title h1 {
  margin: 0;
  color: var(--sofl-dark);
  font-size: 1.18rem;
  line-height: 1.25;
  font-weight: 830;
  letter-spacing: 0;
}

.sofl-topbar-title span {
  display: block;
  margin-top: 3px;
  color: var(--sofl-muted);
  font-size: .8rem;
  font-weight: 650;
}

.sofl-topbar-search {
  position: relative;
  width: min(430px, 36vw);
  margin-left: auto;
}

.sofl-topbar-search i {
  position: absolute;
  left: 15px;
  top: 50%;
  color: #9ca3af;
  transform: translateY(-50%);
}

.sofl-topbar-search .form-control {
  min-height: 44px;
  padding-left: 42px;
  border-radius: 14px;
  background: #ffffff;
}

.sofl-topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sofl-icon-btn {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--sofl-border);
  border-radius: 14px;
  background: #ffffff;
  color: var(--sofl-dark);
  transition: border-color var(--sofl-transition), background-color var(--sofl-transition), transform var(--sofl-transition);
}

.sofl-icon-btn:hover {
  border-color: rgba(212, 168, 67, .52);
  background: var(--sofl-gold-wash);
  transform: translateY(-1px);
}

.sofl-subscription-badge,
.sofl-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(212, 168, 67, .36);
  border-radius: 999px;
  background: var(--sofl-gold-wash);
  color: #7c5a12;
  font-size: .8rem;
  font-weight: 820;
  white-space: nowrap;
}

.sofl-badge.success { border-color: rgba(16, 185, 129, .22); background: rgba(16, 185, 129, .10); color: #047857; }
.sofl-badge.danger { border-color: rgba(239, 68, 68, .18); background: rgba(239, 68, 68, .10); color: #b91c1c; }
.sofl-badge.warning { border-color: rgba(245, 158, 11, .24); background: rgba(245, 158, 11, .12); color: #92400e; }
.sofl-badge.dark { border-color: rgba(15, 23, 42, .12); background: rgba(15, 23, 42, .07); color: var(--sofl-dark); }

.sofl-content {
  flex: 1;
  min-width: 0;
  padding: 28px;
}

.sofl-page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.sofl-page-header h2,
.sofl-page-title {
  margin: 0;
  color: var(--sofl-dark);
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  line-height: 1.08;
  font-weight: 850;
  letter-spacing: 0;
}

.sofl-page-header p {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--sofl-muted);
  font-size: .98rem;
  line-height: 1.65;
}

.sofl-section-title {
  margin: 0;
  color: var(--sofl-dark);
  font-size: 1.12rem;
  line-height: 1.25;
  font-weight: 820;
  letter-spacing: 0;
}

.sofl-card,
.sofl-kpi-card {
  border: 1px solid var(--sofl-border);
  border-radius: var(--sofl-radius);
  background: var(--sofl-white);
  box-shadow: var(--sofl-shadow-soft);
}

.sofl-card {
  padding: 20px;
}

.sofl-kpi-card {
  position: relative;
  overflow: hidden;
  min-height: 148px;
  padding: 20px;
  transition: transform var(--sofl-transition), box-shadow var(--sofl-transition), border-color var(--sofl-transition);
}

.sofl-kpi-card:hover {
  transform: translateY(-2px);
  border-color: rgba(212, 168, 67, .38);
  box-shadow: var(--sofl-shadow);
}

.sofl-kpi-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--sofl-gold-wash);
  color: var(--sofl-gold-deep);
}

.sofl-kpi-label {
  margin-top: 16px;
  color: var(--sofl-muted);
  font-size: .82rem;
  font-weight: 760;
}

.sofl-kpi-value {
  margin-top: 6px;
  color: var(--sofl-dark);
  font-size: 2rem;
  line-height: 1;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}

.sofl-kpi-trend {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 12px;
  color: #047857;
  font-size: .8rem;
  font-weight: 780;
}

.sofl-btn-gold {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 16px;
  border: 1px solid var(--sofl-gold-deep);
  border-radius: 14px;
  background: linear-gradient(135deg, var(--sofl-gold-hover), var(--sofl-gold), var(--sofl-gold-deep));
  color: var(--sofl-dark);
  font-weight: 820;
  box-shadow: 0 14px 32px rgba(201, 152, 47, .22);
  transition: transform var(--sofl-transition), box-shadow var(--sofl-transition), color var(--sofl-transition);
}

.sofl-btn-gold:hover {
  color: var(--sofl-dark);
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(201, 152, 47, .30);
}

.sofl-btn-outline {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 16px;
  border: 1px solid var(--sofl-border);
  border-radius: 14px;
  background: #ffffff;
  color: var(--sofl-dark);
  font-weight: 780;
}

.sofl-btn-outline:hover {
  border-color: rgba(212, 168, 67, .52);
  background: var(--sofl-gold-wash);
  color: var(--sofl-dark);
}

.sofl-form-page {
  max-width: 1480px;
  margin: 0 auto;
  padding-bottom: 92px;
}

.sofl-form-page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.sofl-form-page-header h1 {
  margin: 0;
  color: var(--sofl-dark);
  font-size: clamp(1.65rem, 2.4vw, 2.35rem);
  line-height: 1.1;
  font-weight: 850;
  letter-spacing: 0;
}

.sofl-form-page-header p {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--sofl-muted);
  font-size: .98rem;
  line-height: 1.65;
}

.sofl-form-page-actions,
.sofl-sticky-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.sofl-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  align-items: start;
}

.sofl-form-main,
.sofl-form-sidebar {
  display: grid;
  gap: 18px;
}

.sofl-form-card,
.sofl-form-section,
.sofl-publish-panel,
.sofl-category-tag-panel {
  border: 1px solid var(--sofl-border);
  border-radius: var(--sofl-radius);
  background: var(--sofl-white);
  box-shadow: var(--sofl-shadow-soft);
}

.sofl-form-card {
  overflow: hidden;
}

.sofl-form-card-header {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px 22px;
  border-bottom: 1px solid var(--sofl-border);
  background: linear-gradient(180deg, #ffffff, #fbfdff);
}

.sofl-form-card-header h2 {
  margin: 0;
  color: var(--sofl-dark);
  font-size: 1.06rem;
  font-weight: 830;
  letter-spacing: 0;
}

.sofl-form-card-header p,
.sofl-help-text,
.sofl-publish-panel p,
.sofl-category-tag-panel p {
  margin: 5px 0 0;
  color: var(--sofl-muted);
  font-size: .86rem;
  line-height: 1.55;
}

.sofl-form-card-icon {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 14px;
  background: var(--sofl-gold-wash);
  color: var(--sofl-gold-deep);
}

.sofl-form-card-body {
  padding: 22px;
}

.sofl-form-section {
  padding: 18px;
}

.sofl-form-section-title {
  margin: 0 0 14px;
  color: var(--sofl-dark);
  font-size: .92rem;
  font-weight: 830;
}

.sofl-form-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 7px;
  color: var(--sofl-dark);
  font-size: .86rem;
  font-weight: 760;
}

.sofl-required {
  color: var(--sofl-danger);
  font-weight: 850;
}

.sofl-form-card .form-control,
.sofl-form-card .form-select,
.sofl-form-section .form-control,
.sofl-form-section .form-select,
.sofl-publish-panel .form-control,
.sofl-publish-panel .form-select,
.sofl-publish-panel .form-check-input,
.sofl-category-tag-panel .form-control,
.sofl-category-tag-panel .form-select {
  border-color: var(--sofl-border);
  border-radius: 14px;
  color: var(--sofl-text);
  font-size: .93rem;
  box-shadow: none;
}

.sofl-form-card .form-control,
.sofl-form-card .form-select,
.sofl-form-section .form-control,
.sofl-form-section .form-select,
.sofl-publish-panel .form-control,
.sofl-publish-panel .form-select,
.sofl-category-tag-panel .form-control,
.sofl-category-tag-panel .form-select {
  min-height: 46px;
  padding: 10px 13px;
}

.sofl-form-card textarea.form-control,
.sofl-form-section textarea.form-control {
  min-height: auto;
}

.sofl-form-card .form-control:focus,
.sofl-form-card .form-select:focus,
.sofl-form-section .form-control:focus,
.sofl-form-section .form-select:focus,
.sofl-publish-panel .form-control:focus,
.sofl-publish-panel .form-select:focus,
.sofl-category-tag-panel .form-control:focus,
.sofl-category-tag-panel .form-select:focus {
  border-color: rgba(212, 168, 67, .74);
  box-shadow: 0 0 0 .22rem rgba(212, 168, 67, .14);
}

.sofl-tag-select {
  display: grid;
  gap: 10px;
}

.sofl-tag-select .select2-container--default .select2-selection--multiple {
  min-height: 46px;
  border-color: var(--sofl-border);
  border-radius: 14px;
  padding: 5px 8px;
}

.sofl-tag-select .select2-container--default.select2-container--focus .select2-selection--multiple,
.sofl-tag-select .select2-container--default.select2-container--open .select2-selection--multiple {
  border-color: rgba(212, 168, 67, .74);
  box-shadow: 0 0 0 .22rem rgba(212, 168, 67, .14);
}

.sofl-tag-select .select2-selection__choice {
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--sofl-gold-wash) !important;
  color: var(--sofl-dark) !important;
  font-size: .76rem;
  font-weight: 800;
}

.sofl-selected-tag-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.sofl-selected-tag-preview:empty {
  display: none;
}

.sofl-selected-tag-preview.is-inline {
  min-width: 140px;
}

.sofl-inline-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--sofl-gold-deep);
  font-size: .82rem;
  font-weight: 820;
  text-decoration: none;
}

.sofl-inline-action:hover {
  color: var(--sofl-dark);
}

.sofl-select2-tag-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sofl-tag-dot {
  width: 12px;
  height: 12px;
  border: 1px solid;
  border-radius: 999px;
  flex: 0 0 auto;
}

.sofl-form-card .form-control[readonly],
.sofl-form-card .form-control:disabled,
.sofl-form-card .form-select:disabled {
  background: #f3f4f6;
  color: #6b7280;
}

.sofl-slug-group {
  display: flex;
  gap: 8px;
}

.sofl-slug-group .form-control {
  flex: 1 1 auto;
}

.sofl-icon-button {
  width: 46px;
  min-width: 46px;
  min-height: 46px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--sofl-border);
  border-radius: 14px;
  background: #ffffff;
  color: var(--sofl-dark);
}

.sofl-icon-button:hover {
  border-color: rgba(212, 168, 67, .52);
  background: var(--sofl-gold-wash);
}

.sofl-toggle-row {
  display: grid;
  gap: 12px;
}

.sofl-toggle-switch {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  border: 1px solid var(--sofl-border);
  border-radius: 14px;
  background: #fbfdff;
  cursor: pointer;
}

.sofl-toggle-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.sofl-toggle-slider {
  position: relative;
  width: 44px;
  height: 24px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #cbd5e1;
  transition: background-color var(--sofl-transition);
}

.sofl-toggle-slider::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .18);
  transition: transform var(--sofl-transition);
}

.sofl-toggle-switch input:checked + .sofl-toggle-slider {
  background: var(--sofl-gold);
}

.sofl-toggle-switch input:checked + .sofl-toggle-slider::after {
  transform: translateX(20px);
}

.sofl-toggle-switch strong {
  display: block;
  color: var(--sofl-dark);
  font-size: .9rem;
  font-weight: 780;
}

.sofl-toggle-switch small {
  display: block;
  margin-top: 3px;
  color: var(--sofl-muted);
  font-size: .78rem;
  line-height: 1.45;
}

.sofl-file-upload {
  position: relative;
  display: grid;
  gap: 12px;
  justify-items: center;
  padding: 20px;
  border: 1.5px dashed rgba(107, 114, 128, .36);
  border-radius: var(--sofl-radius);
  background: #fbfdff;
  color: var(--sofl-muted);
  text-align: center;
}

.sofl-file-upload input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.sofl-file-upload:hover,
.sofl-file-upload.is-dragging {
  border-color: rgba(212, 168, 67, .72);
  background: var(--sofl-gold-wash);
}

.sofl-file-upload-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #ffffff;
  color: var(--sofl-gold-deep);
  box-shadow: var(--sofl-shadow-soft);
}

.sofl-file-upload strong,
.sofl-file-upload span {
  display: block;
}

.sofl-file-upload strong {
  color: var(--sofl-dark);
  font-weight: 820;
}

.sofl-file-upload span {
  margin-top: 4px;
  font-size: .86rem;
}

.sofl-image-preview {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border: 1px solid var(--sofl-border);
  border-radius: 14px;
  background: #f3f4f6;
}

.sofl-image-upload-field {
  display: grid;
  gap: 10px;
}

.sofl-image-upload-preview {
  overflow: hidden;
  min-height: 168px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(107, 114, 128, .36);
  border-radius: 14px;
  background: #f8fafc;
}

.sofl-image-upload-preview.has-image {
  border-style: solid;
  background: #111827;
}

.sofl-image-upload-preview img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.sofl-image-upload-empty {
  display: grid;
  gap: 7px;
  justify-items: center;
  color: var(--sofl-muted);
  font-weight: 800;
}

.sofl-image-upload-empty i {
  color: var(--sofl-gold-deep);
  font-size: 1.5rem;
}

.sofl-image-upload-box {
  min-height: 112px;
  cursor: pointer;
}

.sofl-image-upload-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sofl-image-upload-actions .sofl-btn-outline,
.sofl-image-upload-actions a.sofl-btn-outline {
  min-height: 38px;
  padding: 0 11px;
  border-radius: 12px;
  font-size: .82rem;
  text-decoration: none;
}

.sofl-image-upload-advanced {
  display: grid;
  gap: 6px;
}

.sofl-image-upload-status {
  min-height: 18px;
  color: #047857;
  font-size: .82rem;
  font-weight: 760;
}

.sofl-image-upload-status.is-error {
  color: #b91c1c;
}

.sofl-publish-panel,
.sofl-category-tag-panel {
  padding: 18px;
}

.sofl-panel-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--sofl-muted);
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.sofl-panel-eyebrow i {
  color: var(--sofl-gold-deep);
}

.sofl-publish-status {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(212, 168, 67, .26);
  border-radius: 999px;
  background: var(--sofl-gold-wash);
  color: var(--sofl-dark);
  font-size: .82rem;
  font-weight: 820;
}

.sofl-tag-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sofl-validation-summary {
  padding: 14px 16px;
  border: 1px solid rgba(239, 68, 68, .22);
  border-radius: 16px;
  background: rgba(239, 68, 68, .08);
  color: #991b1b;
}

.sofl-validation-summary ul {
  margin-bottom: 0;
}

.field-validation-error,
.validation-summary-errors {
  color: #b91c1c;
  font-size: .82rem;
  font-weight: 680;
}

.sofl-editor-wrapper {
  overflow: hidden;
  border: 1px solid var(--sofl-border);
  border-radius: var(--sofl-radius);
  background: #ffffff;
}

.sofl-editor-wrapper .tox.tox-tinymce {
  min-height: 360px;
  border: 0;
}

.sofl-editor-note {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 10px 12px;
  border-top: 1px solid var(--sofl-border);
  background: #fbfdff;
  color: var(--sofl-muted);
  font-size: .8rem;
  line-height: 1.45;
}

.sofl-password-wrap {
  position: relative;
}

.sofl-password-wrap .form-control {
  padding-right: 52px;
}

.sofl-password-toggle {
  position: absolute;
  right: 6px;
  top: 6px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--sofl-muted);
}

.sofl-password-toggle:hover {
  background: var(--sofl-gold-wash);
  color: var(--sofl-dark);
}

.sofl-sticky-actions {
  position: sticky;
  bottom: 0;
  z-index: 1015;
  margin-top: 24px;
  padding: 12px 0 0;
}

.sofl-sticky-actions-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px;
  border: 1px solid rgba(229, 231, 235, .9);
  border-radius: 18px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 -16px 42px rgba(15, 23, 42, .10);
  backdrop-filter: blur(12px);
}

.sofl-sticky-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--sofl-muted);
  font-size: .84rem;
  font-weight: 700;
}

.sofl-sticky-meta i {
  color: var(--sofl-success);
}

.sofl-table-shell {
  overflow: hidden;
  border: 1px solid var(--sofl-border);
  border-radius: var(--sofl-radius);
  background: #ffffff;
  box-shadow: var(--sofl-shadow-soft);
}

.sofl-filter-card,
.sofl-table-card {
  margin-bottom: 18px;
  border: 1px solid var(--sofl-border);
  border-radius: var(--sofl-radius);
  background: #ffffff;
  box-shadow: var(--sofl-shadow-soft);
}

.sofl-filter-card {
  padding: 18px;
}

.sofl-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) repeat(4, minmax(150px, .7fr)) auto;
  align-items: end;
  gap: 14px;
}

.sofl-filter-search {
  min-width: 0;
}

.sofl-filter-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  color: #9ca3af;
  transform: translateY(-50%);
  pointer-events: none;
}

.sofl-filter-icon + .form-control {
  padding-left: 42px;
}

.sofl-toolbar-actions {
  display: flex;
  align-items: end;
  gap: 10px;
}

.sofl-table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  border-bottom: 1px solid var(--sofl-border);
}

.sofl-table-toolbar .form-control,
.sofl-table-toolbar .form-select {
  min-height: 42px;
  border-radius: 13px;
}

.sofl-table,
.premium-table {
  width: 100%;
  margin: 0;
  vertical-align: middle;
}

.sofl-table-card .table-responsive,
.sofl-table-shell .table-responsive {
  max-width: 100%;
}

.sofl-table thead th,
.premium-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 14px 18px;
  border-bottom: 1px solid var(--sofl-border);
  background: #fbfcfe;
  color: var(--sofl-muted);
  font-size: .74rem;
  font-weight: 850;
  text-transform: uppercase;
}

.sofl-table tbody td,
.premium-table tbody td {
  padding: 16px 18px;
  border-color: #eef0f3;
  color: #374151;
  font-weight: 560;
}

.sofl-table tbody tr,
.premium-table tbody tr {
  transition: background-color var(--sofl-transition);
}

.sofl-table tbody tr:hover,
.premium-table tbody tr:hover {
  background: #fffaf0;
}

.sofl-table tbody tr[data-row-href] {
  cursor: pointer;
}

.sofl-table .sofl-truncate {
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sofl-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 840;
  white-space: nowrap;
}

.sofl-status-badge.active,
.sofl-status-badge.published,
.sofl-status-badge.success {
  background: rgba(16, 185, 129, .10);
  color: #047857;
}

.sofl-status-badge.inactive,
.sofl-status-badge.draft,
.sofl-status-badge.neutral {
  background: rgba(107, 114, 128, .10);
  color: #4b5563;
}

.sofl-status-badge.pending,
.sofl-status-badge.important {
  background: rgba(245, 158, 11, .13);
  color: #92400e;
}

.sofl-status-badge.failed {
  background: rgba(239, 68, 68, .10);
  color: #b91c1c;
}

.sofl-status-badge.closed,
.sofl-status-badge.locked {
  background: rgba(15, 23, 42, .08);
  color: var(--sofl-dark);
}

.sofl-tag-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid var(--sofl-border);
  border-radius: 999px;
  background: #ffffff;
  color: #4b5563;
  font-size: .72rem;
  font-weight: 760;
}

.sofl-avatar {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--sofl-gold-hover), var(--sofl-gold-deep));
  color: var(--sofl-dark);
  font-size: .82rem;
  font-weight: 850;
  text-transform: uppercase;
}

.sofl-action-dropdown .dropdown-menu,
.dropdown-menu {
  border: 1px solid var(--sofl-border);
  border-radius: 14px;
  box-shadow: 0 18px 46px rgba(15, 23, 42, .12);
}

.sofl-action-dropdown .dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  font-weight: 680;
}

.sofl-action-dropdown .dropdown-item i {
  width: 16px;
  color: var(--sofl-muted);
}

.sofl-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-top: 1px solid var(--sofl-border);
  background: #ffffff;
}

.sofl-pagination .page-link {
  min-width: 36px;
  min-height: 36px;
  display: grid;
  place-items: center;
  border-color: var(--sofl-border);
  color: var(--sofl-muted);
  font-weight: 760;
}

.sofl-pagination .page-link:hover {
  border-color: rgba(212, 168, 67, .48);
  background: var(--sofl-gold-wash);
  color: var(--sofl-dark);
}

.sofl-pagination .page-item.active .page-link {
  border-color: var(--sofl-gold-deep);
  background: var(--sofl-gold);
  color: var(--sofl-dark);
}

.sofl-breadcrumb .breadcrumb {
  --bs-breadcrumb-divider-color: #9ca3af;
  font-size: .82rem;
  font-weight: 720;
}

.sofl-breadcrumb a {
  color: var(--sofl-muted);
}

.sofl-breadcrumb a:hover {
  color: var(--sofl-gold-deep);
}

.sofl-confirmation-modal {
  border: 1px solid var(--sofl-border);
  border-radius: 18px;
  box-shadow: var(--sofl-shadow);
}

.sofl-empty-state {
  padding: 44px 24px;
  text-align: center;
}

.sofl-empty-state-icon {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border-radius: 22px;
  background: var(--sofl-gold-wash);
  color: var(--sofl-gold-deep);
  font-size: 1.7rem;
}

.sofl-empty-state h3 {
  margin: 0;
  color: var(--sofl-dark);
  font-size: 1.08rem;
  font-weight: 830;
}

.sofl-empty-state p {
  max-width: 420px;
  margin: 8px auto 0;
  color: var(--sofl-muted);
  line-height: 1.6;
}

.sofl-progress {
  height: 9px;
  border-radius: 999px;
  background: #edf0f4;
  overflow: hidden;
}

.sofl-progress > span,
.sofl-progress .progress-bar {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--sofl-gold-hover), var(--sofl-gold-deep));
}

.sofl-learning-card {
  height: 100%;
  display: block;
  padding: 18px;
  border: 1px solid var(--sofl-border);
  border-radius: var(--sofl-radius);
  background: #ffffff;
  color: var(--sofl-text);
  box-shadow: var(--sofl-shadow-soft);
  transition: transform var(--sofl-transition), border-color var(--sofl-transition), box-shadow var(--sofl-transition);
}

.sofl-student-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: end;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid rgba(212, 168, 67, .22);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, .98), rgba(17, 24, 39, .94)),
    var(--sofl-dark);
  color: #fff;
  box-shadow: var(--sofl-shadow);
}

.sofl-student-hero::after {
  content: "";
  position: absolute;
  inset: auto -12% -45% 42%;
  height: 220px;
  background: radial-gradient(circle, rgba(212, 168, 67, .28), transparent 70%);
  pointer-events: none;
}

.sofl-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--sofl-gold-hover);
  font-size: .78rem;
  font-weight: 840;
  text-transform: uppercase;
}

.sofl-student-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.02;
  font-weight: 860;
}

.sofl-student-hero p {
  max-width: 690px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, .72);
  font-size: 1rem;
  line-height: 1.7;
}

.sofl-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.sofl-hero-status {
  position: relative;
  z-index: 1;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 16px;
  background: rgba(255, 255, 255, .07);
}

.sofl-hero-status strong,
.sofl-hero-status small {
  display: block;
}

.sofl-hero-status strong {
  margin-top: 18px;
  color: #fff;
  font-size: 1.08rem;
}

.sofl-hero-status small {
  margin-top: 8px;
  color: rgba(255, 255, 255, .62);
  line-height: 1.55;
}

.sofl-dashboard-grid,
.sofl-library-layout,
.sofl-catalog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  align-items: start;
}

.sofl-library-layout,
.sofl-catalog-layout {
  grid-template-columns: 300px minmax(0, 1fr);
}

.sofl-dashboard-main,
.sofl-dashboard-side,
.sofl-catalog-main {
  display: grid;
  gap: 22px;
}

.sofl-student-section {
  padding: 22px;
  border: 1px solid var(--sofl-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--sofl-shadow-soft);
}

.sofl-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.sofl-section-heading h2 {
  margin: 0;
  color: var(--sofl-dark);
  font-size: 1.18rem;
  font-weight: 850;
}

.sofl-section-heading p {
  margin: 5px 0 0;
  color: var(--sofl-muted);
  line-height: 1.55;
}

.sofl-section-heading a {
  color: var(--sofl-gold-deep);
  font-weight: 820;
  white-space: nowrap;
}

.sofl-content-card,
.sofl-continue-card,
.sofl-recommendation-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 18px;
  border: 1px solid var(--sofl-border);
  border-radius: 16px;
  background: #fff;
  color: var(--sofl-text);
  box-shadow: 0 12px 30px rgba(15, 23, 42, .05);
  transition: transform var(--sofl-transition), border-color var(--sofl-transition), box-shadow var(--sofl-transition);
}

.sofl-content-card:hover,
.sofl-continue-card:hover,
.sofl-recommendation-card:hover,
.sofl-quick-access:hover {
  color: var(--sofl-text);
  transform: translateY(-3px);
  border-color: rgba(212, 168, 67, .46);
  box-shadow: var(--sofl-shadow);
}

.sofl-content-card-top,
.sofl-content-card-actions,
.sofl-card-footerline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sofl-content-card-body {
  flex: 1;
  margin-top: 16px;
}

.sofl-content-card h3,
.sofl-continue-card h3 {
  margin: 0;
  color: var(--sofl-dark);
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 850;
}

.sofl-content-card h3 a {
  color: inherit;
}

.sofl-content-card p,
.sofl-continue-card p {
  margin: 9px 0 0;
  color: var(--sofl-muted);
  font-size: .9rem;
  line-height: 1.58;
}

.sofl-content-meta,
.sofl-card-footerline {
  flex-wrap: wrap;
  margin-top: 14px;
  color: var(--sofl-muted);
  font-size: .78rem;
  font-weight: 720;
}

.sofl-content-meta {
  display: flex;
  gap: 10px;
}

.sofl-content-card-actions {
  margin-top: 18px;
}

.sofl-card-primary-action {
  flex: 1 1 auto;
}

.sofl-module-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 999px;
  background: #f8fafc;
  color: var(--sofl-dark);
  font-size: .74rem;
  font-weight: 850;
  text-transform: uppercase;
}

.sofl-save-button {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--sofl-border);
  border-radius: 12px;
  background: #fff;
  color: var(--sofl-muted);
}

.sofl-save-button:hover,
.sofl-save-button.is-saved,
.sofl-save-button.is-active {
  border-color: rgba(212, 168, 67, .44);
  background: var(--sofl-gold-wash);
  color: var(--sofl-gold-deep);
}

.sofl-locked-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(212, 168, 67, .34);
  background: linear-gradient(180deg, #fff, #fffaf0);
}

.sofl-lock-note {
  color: #7c5a12;
  font-size: .78rem;
  line-height: 1.4;
}

.sofl-lock-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 16px;
  background: var(--sofl-gold-wash);
  color: var(--sofl-gold-deep);
}

.sofl-progress-card,
.sofl-subscription-card {
  padding: 22px;
  border: 1px solid var(--sofl-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--sofl-shadow-soft);
}

.sofl-progress-ring {
  width: 152px;
  height: 152px;
  display: grid;
  place-items: center;
  margin: 8px auto 20px;
  border-radius: 50%;
  background:
    radial-gradient(circle closest-side, #fff 74%, transparent 76%),
    conic-gradient(var(--sofl-gold) calc(var(--progress) * 1%), #edf0f4 0);
}

.sofl-progress-ring span {
  color: var(--sofl-dark);
  font-size: 1.8rem;
  font-weight: 850;
}

.sofl-progress-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.sofl-progress-grid div {
  padding: 10px;
  border-radius: 14px;
  background: #f8fafc;
  text-align: center;
}

.sofl-progress-grid span,
.sofl-progress-grid strong {
  display: block;
}

.sofl-progress-grid span {
  color: var(--sofl-muted);
  font-size: .72rem;
  font-weight: 760;
}

.sofl-progress-grid strong {
  color: var(--sofl-dark);
  font-size: 1.25rem;
}

.sofl-quick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.sofl-quick-access {
  min-height: 132px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--sofl-border);
  border-radius: 16px;
  background: #fff;
  color: var(--sofl-text);
  box-shadow: 0 10px 26px rgba(15, 23, 42, .04);
  transition: transform var(--sofl-transition), border-color var(--sofl-transition), box-shadow var(--sofl-transition);
}

.sofl-quick-access span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--sofl-gold-wash);
  color: var(--sofl-gold-deep);
}

.sofl-quick-access strong {
  color: var(--sofl-dark);
  font-weight: 850;
}

.sofl-quick-access small {
  color: var(--sofl-muted);
  line-height: 1.4;
}

.sofl-price {
  color: var(--sofl-dark);
  font-size: 2.1rem;
  font-weight: 860;
}

.sofl-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sofl-chip-list.compact {
  gap: 6px;
}

.sofl-filter-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--sofl-border);
  border-radius: 999px;
  background: #fff;
  color: var(--sofl-muted);
  font-size: .76rem;
  font-weight: 760;
}

.sofl-filter-chip:hover,
.sofl-filter-chip.active {
  border-color: rgba(212, 168, 67, .52);
  background: var(--sofl-gold-wash);
  color: var(--sofl-dark);
}

.sofl-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid;
  border-radius: 999px;
  color: #334155;
  background: #f8fafc;
  font-size: .76rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

.sofl-tag:hover {
  filter: brightness(.98);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, .08);
}

.sofl-tag-trending {
  box-shadow: inset 0 0 0 1px rgba(245, 158, 11, .25);
}

.sofl-tag-new {
  box-shadow: inset 0 0 0 1px rgba(34, 197, 94, .25);
}

.sofl-tag-popular {
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, .25);
}

.sofl-library-filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  color: var(--sofl-text);
  font-weight: 760;
}

.sofl-library-filter:hover,
.sofl-library-filter.active {
  background: var(--sofl-gold-wash);
  color: var(--sofl-dark);
}

.sofl-library-filter strong {
  color: var(--sofl-gold-deep);
}

.sofl-learning-callout {
  display: flex;
  gap: 10px;
  padding: 16px 18px;
  border: 1px solid rgba(212, 168, 67, .26);
  border-radius: 16px;
  background: var(--sofl-gold-wash);
}

.sofl-learning-callout span {
  color: var(--sofl-muted);
}

.sofl-pronunciation {
  display: block;
  margin-top: 6px;
  color: var(--sofl-muted);
  font-size: .82rem;
}

.sofl-term-detail {
  max-width: 1320px;
  margin: 0 auto;
}

.sofl-term-hero {
  padding: 26px;
  border: 1px solid var(--sofl-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--sofl-shadow-soft);
}

.sofl-term-hero h1 {
  margin: 0;
  color: var(--sofl-dark);
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.04;
  font-weight: 860;
}

.sofl-term-hero p {
  margin: 12px 0 0;
  color: var(--sofl-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.sofl-mode-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sofl-term-image {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: var(--sofl-shadow-soft);
}

.sofl-reading-card {
  padding: 24px;
  border: 1px solid var(--sofl-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--sofl-shadow-soft);
}

.sofl-reading-card h2 {
  color: var(--sofl-dark);
  font-weight: 850;
}

.sofl-flowchart-box {
  overflow: auto;
  padding: 16px;
  border: 1px solid var(--sofl-border);
  border-radius: 14px;
  background: #f8fafc;
}

.sofl-profile-photo {
  width: 122px;
  height: 122px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  object-fit: cover;
  background: linear-gradient(135deg, var(--sofl-gold-hover), var(--sofl-gold-deep));
  color: var(--sofl-dark);
  font-size: 2.1rem;
  font-weight: 860;
}

.sofl-preview-card .sofl-section-heading {
  margin-bottom: 8px;
}

.sofl-activity-item span {
  display: block;
  margin-top: 3px;
  color: var(--sofl-muted);
  font-size: .84rem;
}

.sofl-activity-item.is-important .sofl-activity-dot {
  background: var(--sofl-gold-wash);
  color: var(--sofl-gold-deep);
}

.sofl-support-mini {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 14px;
  background: #f8fafc;
}

.sofl-support-mini > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--sofl-gold-wash);
  color: var(--sofl-gold-deep);
}

.sofl-learning-card:hover {
  color: var(--sofl-text);
  transform: translateY(-2px);
  border-color: rgba(212, 168, 67, .42);
  box-shadow: var(--sofl-shadow);
}

.sofl-activity-item {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #f0f2f5;
}

.sofl-activity-item:last-child {
  border-bottom: 0;
}

.sofl-activity-dot {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 12px;
  background: var(--sofl-gold-wash);
  color: var(--sofl-gold-deep);
}

.sofl-overlay {
  position: fixed;
  inset: 0;
  z-index: 1025;
  display: none;
  background: rgba(15, 23, 42, .46);
}

.sofl-dashboard-shell.sidebar-collapsed {
  grid-template-columns: 92px minmax(0, 1fr);
}

.sofl-dashboard-shell.sidebar-collapsed .sofl-sidebar {
  width: 92px;
}

.sofl-dashboard-shell.sidebar-collapsed .sofl-sidebar-logo {
  width: 46px;
  height: 46px;
  object-fit: cover;
  object-position: left center;
}

.sofl-dashboard-shell.sidebar-collapsed .sofl-sidebar-section,
.sofl-dashboard-shell.sidebar-collapsed .sofl-nav-text,
.sofl-dashboard-shell.sidebar-collapsed .sofl-nav-caret,
.sofl-dashboard-shell.sidebar-collapsed .sofl-sidebar-footer {
  display: none;
}

.sofl-dashboard-shell.sidebar-collapsed .sofl-nav-link,
.sofl-dashboard-shell.sidebar-collapsed .sofl-nav-toggle {
  justify-content: center;
  padding: 0;
}

.sofl-dashboard-shell.sidebar-collapsed .sofl-nav-link i,
.sofl-dashboard-shell.sidebar-collapsed .sofl-nav-toggle i {
  width: auto;
}

@media (max-width: 1199.98px) {
  .sofl-dashboard-shell {
    grid-template-columns: 1fr;
  }

  .sofl-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(292px, 86vw);
    transform: translateX(-100%);
  }

  .sofl-dashboard-shell.sidebar-open .sofl-sidebar {
    transform: translateX(0);
  }

  .sofl-dashboard-shell.sidebar-open .sofl-overlay {
    display: block;
  }

  .sofl-mobile-menu {
    display: inline-grid;
  }

  .sofl-sidebar-collapse {
    display: none;
  }

  .sofl-topbar {
    padding: 0 18px;
  }

  .sofl-topbar-search {
    width: min(360px, 34vw);
  }

  .sofl-form-grid {
    grid-template-columns: 1fr;
  }

  .sofl-form-sidebar {
    order: -1;
  }

  .sofl-student-hero,
  .sofl-dashboard-grid,
  .sofl-library-layout,
  .sofl-catalog-layout {
    grid-template-columns: 1fr;
  }

  .sofl-catalog-sidebar,
  .sofl-library-sidebar {
    order: -1;
  }

  .sofl-quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .sofl-topbar {
    min-height: auto;
    align-items: stretch;
    flex-wrap: wrap;
    padding: 14px 16px;
  }

  .sofl-topbar-title {
    flex: 1;
  }

  .sofl-topbar-search {
    order: 3;
    width: 100%;
    margin: 0;
  }

  .sofl-content {
    padding: 20px 16px;
  }

  .sofl-page-header {
    align-items: stretch;
    flex-direction: column;
  }

  .sofl-form-page-header {
    align-items: stretch;
    flex-direction: column;
  }

  .sofl-form-page-actions,
  .sofl-sticky-buttons {
    justify-content: stretch;
  }

  .sofl-form-page-actions > *,
  .sofl-sticky-buttons > * {
    flex: 1 1 100%;
  }

  .sofl-form-card-body,
  .sofl-form-card-header {
    padding: 16px;
  }

  .sofl-slug-group {
    flex-direction: column;
  }

  .sofl-icon-button {
    width: 100%;
  }

  .sofl-table-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .sofl-toolbar {
    grid-template-columns: 1fr;
  }

  .sofl-toolbar-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .sofl-pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .sofl-sticky-actions {
    margin-left: -12px;
    margin-right: -12px;
  }

  .sofl-sticky-actions-inner {
    align-items: stretch;
    flex-direction: column;
    border-radius: 18px 18px 0 0;
  }

  .sofl-subscription-badge {
    display: none;
  }

  .sofl-student-hero,
  .sofl-student-section,
  .sofl-term-hero,
  .sofl-reading-card,
  .sofl-progress-card,
  .sofl-subscription-card {
    border-radius: 14px;
    padding: 18px;
  }

  .sofl-section-heading,
  .sofl-content-card-actions,
  .sofl-learning-callout {
    align-items: stretch;
    flex-direction: column;
  }

  .sofl-quick-grid {
    grid-template-columns: 1fr;
  }

  .sofl-progress-grid {
    grid-template-columns: 1fr;
  }

  .sofl-card-primary-action {
    width: 100%;
  }
}

/* FinLexicon premium term detail experience */
.sofl-reading-progress {
  position: sticky;
  top: 78px;
  z-index: 1010;
  margin: -28px -28px 28px;
  border-bottom: 1px solid rgba(229, 231, 235, .82);
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(18px);
}

.sofl-reading-progress-track {
  height: 4px;
  overflow: hidden;
  background: #e9edf3;
}

.sofl-reading-progress-track span,
.sofl-sidebar-progress span,
.sofl-audio-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--sofl-gold-hover), var(--sofl-gold), var(--sofl-gold-deep));
  transition: width 160ms ease;
}

.sofl-reading-progress-inner {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 28px;
}

.sofl-reading-progress-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  color: var(--sofl-muted);
  font-size: .82rem;
  font-weight: 760;
}

.sofl-complete-pill {
  display: none;
  align-items: center;
  gap: 6px;
  color: #047857;
}

.sofl-complete-pill.is-complete {
  display: inline-flex;
}

.sofl-progress-resume {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  border: 1px solid rgba(212, 168, 67, .34);
  border-radius: 999px;
  background: var(--sofl-gold-wash);
  color: #7c5a12;
  font-size: .78rem;
  font-weight: 820;
}

.sofl-term-page {
  max-width: 1320px;
  margin: 0 auto;
  padding-bottom: 80px;
}

.sofl-reading-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 4vw, 46px);
  border: 1px solid rgba(212, 168, 67, .20);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(255, 250, 240, .72)),
    #ffffff;
  box-shadow: var(--sofl-shadow);
}

.sofl-reading-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--sofl-gold-hover), var(--sofl-gold), var(--sofl-gold-deep));
}

.sofl-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.sofl-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  gap: 26px;
  align-items: end;
}

.sofl-reading-hero h1 {
  max-width: 860px;
  margin: 0;
  color: var(--sofl-dark);
  font-size: clamp(2.3rem, 5vw, 5.2rem);
  line-height: .98;
  font-weight: 860;
  letter-spacing: 0;
}

.sofl-reading-hero p {
  max-width: 820px;
  margin: 18px 0 0;
  color: #475569;
  font-size: clamp(1.02rem, 1.4vw, 1.22rem);
  line-height: 1.72;
}

.sofl-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
}

.sofl-pronunciation-button,
.sofl-available-date {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 13px;
  border: 1px solid var(--sofl-border);
  border-radius: 999px;
  background: #ffffff;
  color: var(--sofl-dark);
  font-size: .86rem;
  font-weight: 780;
}

.sofl-pronunciation-button:hover {
  border-color: rgba(212, 168, 67, .52);
  background: var(--sofl-gold-wash);
}

.sofl-hero-stat-panel {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 16px;
  background: rgba(255, 255, 255, .74);
  box-shadow: 0 14px 34px rgba(15, 23, 42, .06);
}

.sofl-hero-stat-panel div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #f8fafc;
}

.sofl-hero-stat-panel span {
  color: var(--sofl-muted);
  font-size: .78rem;
  font-weight: 780;
}

.sofl-hero-stat-panel strong {
  color: var(--sofl-dark);
  font-size: 1.25rem;
  font-weight: 850;
}

.sofl-term-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 348px;
  gap: 28px;
  align-items: start;
  margin-top: 28px;
}

.sofl-term-main {
  min-width: 0;
  display: grid;
  gap: 22px;
}

.sofl-quick-action-bar {
  position: sticky;
  top: 128px;
  z-index: 1000;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(229, 231, 235, .86);
  border-radius: 16px;
  background: rgba(255, 255, 255, .88);
  box-shadow: var(--sofl-shadow-soft);
  backdrop-filter: blur(16px);
}

.sofl-quick-action-bar form {
  margin: 0;
}

.sofl-action-chip {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #f8fafc;
  color: var(--sofl-dark);
  font-size: .83rem;
  font-weight: 800;
  transition: transform var(--sofl-transition), background-color var(--sofl-transition), border-color var(--sofl-transition), color var(--sofl-transition);
}

.sofl-action-chip:hover,
.sofl-action-chip.is-active,
.sofl-action-chip.is-copied {
  border-color: rgba(212, 168, 67, .42);
  background: var(--sofl-gold-wash);
  color: var(--sofl-dark);
  transform: translateY(-1px);
}

.sofl-reading-section,
.sofl-key-takeaway,
.sofl-audio-player,
.sofl-related-learning,
.sofl-ai-helper,
.sofl-case-study,
.sofl-lock-overlay,
.sofl-lock-preview {
  border: 1px solid var(--sofl-border);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: var(--sofl-shadow-soft);
}

.sofl-reading-section,
.sofl-key-takeaway,
.sofl-related-learning,
.sofl-ai-helper,
.sofl-case-study,
.sofl-lock-overlay,
.sofl-lock-preview {
  padding: clamp(22px, 3vw, 34px);
}

.sofl-reading-section-soft,
.sofl-key-takeaway {
  border-color: rgba(212, 168, 67, .24);
  background: linear-gradient(180deg, #ffffff, #fffaf0);
}

.sofl-section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--sofl-gold-deep);
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.sofl-reading-content {
  max-width: 820px;
  color: #243041;
  font-size: 1.035rem;
  line-height: 1.88;
}

.sofl-reading-content h2,
.sofl-reading-content h3,
.sofl-reading-content h4 {
  margin: 1.4em 0 .55em;
  color: var(--sofl-dark);
  line-height: 1.2;
  font-weight: 850;
}

.sofl-reading-content h2:first-child,
.sofl-reading-content h3:first-child,
.sofl-reading-content h4:first-child,
.sofl-reading-content p:first-child {
  margin-top: 0;
}

.sofl-reading-content p,
.sofl-reading-content ul,
.sofl-reading-content ol,
.sofl-reading-content blockquote {
  margin-bottom: 1.15em;
}

.sofl-reading-content a {
  color: #8a6518;
  font-weight: 800;
  box-shadow: inset 0 -2px 0 rgba(212, 168, 67, .24);
}

.sofl-reading-content blockquote {
  padding: 18px 20px;
  border-left: 4px solid var(--sofl-gold);
  border-radius: 0 14px 14px 0;
  background: var(--sofl-gold-wash);
  color: var(--sofl-dark);
}

.sofl-reading-content table {
  width: 100%;
  margin: 20px 0;
  overflow: hidden;
  border: 1px solid var(--sofl-border);
  border-radius: 14px;
  border-collapse: separate;
  border-spacing: 0;
}

.sofl-reading-content th,
.sofl-reading-content td {
  padding: 12px 14px;
  border-bottom: 1px solid #eef2f6;
}

.sofl-reading-content th {
  background: #f8fafc;
  color: var(--sofl-dark);
  font-size: .78rem;
  text-transform: uppercase;
}

.sofl-takeaway-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.sofl-takeaway-item {
  display: flex;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(212, 168, 67, .20);
  border-radius: 14px;
  background: rgba(255, 255, 255, .72);
}

.sofl-takeaway-item span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 11px;
  background: var(--sofl-gold-wash);
  color: var(--sofl-gold-deep);
}

.sofl-takeaway-item p {
  margin: 0;
  color: var(--sofl-dark);
  line-height: 1.55;
  font-weight: 680;
}

.sofl-audio-player {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 22px;
  border-color: rgba(15, 23, 42, .10);
}

.sofl-audio-main {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sofl-audio-icon,
.sofl-ai-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 16px;
  background: var(--sofl-gold-wash);
  color: var(--sofl-gold-deep);
  font-size: 1.1rem;
}

.sofl-audio-player h2,
.sofl-ai-helper h2,
.sofl-case-study h2,
.sofl-lock-overlay h2 {
  margin: 0;
  color: var(--sofl-dark);
  font-size: 1.18rem;
  font-weight: 850;
}

.sofl-audio-player p,
.sofl-ai-helper p,
.sofl-lock-overlay p {
  margin: 5px 0 0;
  color: var(--sofl-muted);
  line-height: 1.55;
}

.sofl-audio-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sofl-audio-controls .form-select {
  width: 96px;
  min-height: 40px;
  border-radius: 12px;
}

.sofl-audio-button {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--sofl-border);
  border-radius: 12px;
  background: #ffffff;
  color: var(--sofl-dark);
}

.sofl-audio-button:hover {
  border-color: rgba(212, 168, 67, .52);
  background: var(--sofl-gold-wash);
}

.sofl-audio-progress {
  grid-column: 1 / -1;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef2f6;
}

.sofl-case-study {
  border-color: rgba(212, 168, 67, .26);
  background:
    linear-gradient(135deg, rgba(15, 23, 42, .98), rgba(17, 24, 39, .94)),
    var(--sofl-dark);
  color: #ffffff;
}

.sofl-case-study .sofl-section-kicker,
.sofl-case-study h2,
.sofl-case-study .sofl-reading-content,
.sofl-case-study .sofl-reading-content h2,
.sofl-case-study .sofl-reading-content h3 {
  color: #ffffff;
}

.sofl-case-study .sofl-reading-content {
  color: rgba(255, 255, 255, .80);
}

.sofl-history-note {
  display: flex;
  gap: 14px;
  margin-top: 22px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 16px;
  background: rgba(255, 255, 255, .06);
}

.sofl-history-note > span {
  color: var(--sofl-gold-hover);
}

.sofl-ai-helper-header,
.sofl-case-study-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

.sofl-ai-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.sofl-ai-prompts button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(212, 168, 67, .30);
  border-radius: 999px;
  background: var(--sofl-gold-wash);
  color: #7c5a12;
  font-weight: 800;
}

.sofl-ai-form {
  display: grid;
  gap: 10px;
}

.sofl-ai-result {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--sofl-border);
  border-radius: 14px;
  background: #f8fafc;
}

.sofl-ai-result-link {
  display: block;
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid var(--sofl-border);
  border-radius: 12px;
  background: #ffffff;
  color: var(--sofl-dark);
}

.sofl-ai-result-link span,
.sofl-ai-result-link small {
  display: block;
}

.sofl-ai-result-link small {
  margin-top: 2px;
  color: var(--sofl-muted);
}

.sofl-related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.sofl-related-card {
  min-height: 148px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--sofl-border);
  border-radius: 16px;
  background: #ffffff;
  color: var(--sofl-text);
  transition: transform var(--sofl-transition), border-color var(--sofl-transition), box-shadow var(--sofl-transition);
}

.sofl-related-card:hover {
  color: var(--sofl-text);
  transform: translateY(-3px);
  border-color: rgba(212, 168, 67, .44);
  box-shadow: var(--sofl-shadow);
}

.sofl-related-card span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--sofl-gold-wash);
  color: var(--sofl-gold-deep);
}

.sofl-related-card strong {
  color: var(--sofl-dark);
  line-height: 1.3;
}

.sofl-related-card small,
.sofl-empty-related span {
  color: var(--sofl-muted);
  line-height: 1.48;
}

.sofl-empty-related {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  justify-items: center;
  padding: 30px;
  border: 1px dashed rgba(107, 114, 128, .32);
  border-radius: 16px;
  background: #f8fafc;
  text-align: center;
}

.sofl-lock-preview {
  position: relative;
  max-height: 360px;
  overflow: hidden;
}

.sofl-lock-preview::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 180px;
  background: linear-gradient(180deg, rgba(255,255,255,0), #ffffff);
}

.sofl-lock-overlay {
  display: flex;
  gap: 18px;
  border-color: rgba(212, 168, 67, .30);
  background: linear-gradient(135deg, #ffffff, #fff7df);
}

.sofl-lock-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.sofl-lock-benefits span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .74);
  color: var(--sofl-dark);
  font-size: .8rem;
  font-weight: 800;
}

.sofl-reading-sidebar {
  position: sticky;
  top: 146px;
}

.sofl-sidebar-stack {
  display: grid;
  gap: 14px;
}

.sofl-sidebar-panel {
  padding: 18px;
  border: 1px solid var(--sofl-border);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: var(--sofl-shadow-soft);
}

.sofl-sidebar-panel-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.sofl-sidebar-panel-title span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--sofl-gold-wash);
  color: var(--sofl-gold-deep);
}

.sofl-sidebar-panel-title strong {
  color: var(--sofl-dark);
  font-weight: 850;
}

.sofl-sidebar-progress {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.sofl-sidebar-progress div {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef2f6;
}

.sofl-sidebar-progress strong {
  color: var(--sofl-dark);
  font-weight: 850;
}

.sofl-save-form {
  display: grid;
  gap: 10px;
}

.sofl-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sofl-term-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid;
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 800;
}

.sofl-term-tag:hover {
  filter: brightness(.98);
  transform: translateY(-1px);
}

.sofl-sidebar-links {
  display: grid;
  gap: 4px;
}

.sofl-sidebar-links a {
  display: block;
  padding: 11px 0;
  border-bottom: 1px solid #f0f2f5;
  color: var(--sofl-text);
}

.sofl-sidebar-links a:last-child {
  border-bottom: 0;
}

.sofl-sidebar-links strong,
.sofl-sidebar-links small {
  display: block;
}

.sofl-sidebar-links strong {
  color: var(--sofl-dark);
  font-size: .93rem;
  line-height: 1.35;
}

.sofl-sidebar-links small,
.sofl-sidebar-empty {
  margin: 4px 0 0;
  color: var(--sofl-muted);
  font-size: .8rem;
  line-height: 1.45;
}

@media (max-width: 1199.98px) {
  .sofl-reading-progress {
    top: 0;
  }

  .sofl-term-layout {
    grid-template-columns: 1fr;
  }

  .sofl-reading-sidebar {
    position: static;
  }

  .sofl-sidebar-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .sofl-reading-progress {
    margin: -20px -16px 20px;
  }

  .sofl-reading-progress-inner {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
    padding: 10px 16px;
  }

  .sofl-hero-grid,
  .sofl-audio-player,
  .sofl-takeaway-grid,
  .sofl-related-grid,
  .sofl-sidebar-stack {
    grid-template-columns: 1fr;
  }

  .sofl-reading-hero,
  .sofl-reading-section,
  .sofl-key-takeaway,
  .sofl-audio-player,
  .sofl-related-learning,
  .sofl-ai-helper,
  .sofl-case-study,
  .sofl-lock-overlay,
  .sofl-lock-preview {
    border-radius: 14px;
  }

  .sofl-quick-action-bar {
    position: static;
    overflow-x: auto;
    flex-wrap: nowrap;
    margin-left: -2px;
    margin-right: -2px;
  }

  .sofl-action-chip {
    white-space: nowrap;
  }

  .sofl-reading-content {
    font-size: 1rem;
    line-height: 1.78;
  }

  .sofl-audio-controls,
  .sofl-lock-overlay {
    align-items: stretch;
    flex-direction: column;
  }

  .sofl-audio-controls .form-select {
    width: 100%;
  }
}

/* Premium admin user detail */
.sofl-user-detail-page {
  display: grid;
  gap: 22px;
  color: var(--sofl-text);
}

.sofl-user-detail-page a {
  text-decoration: none;
}

.sofl-user-detail-header,
.sofl-user-summary-strip,
.sofl-user-card {
  border: 1px solid var(--sofl-border);
  border-radius: var(--sofl-radius);
  background: var(--sofl-white);
  box-shadow: var(--sofl-shadow-soft);
}

.sofl-user-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(18px, 3vw, 26px);
}

.sofl-user-avatar {
  width: 62px;
  height: 62px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--sofl-gold-hover), var(--sofl-gold-deep));
  color: var(--sofl-dark);
  font-weight: 900;
}

.sofl-user-eyebrow,
.sofl-user-section-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #9a6b16;
  font-size: .76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.sofl-user-detail-header h1 {
  margin: 5px 0 5px;
  color: var(--sofl-dark);
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  font-weight: 900;
  line-height: 1.12;
}

.sofl-user-header-meta,
.sofl-user-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.sofl-user-header-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--sofl-muted);
  font-size: .85rem;
}

.sofl-user-actions .dropdown-toggle::after {
  margin-left: 4px;
}

.sofl-user-action-menu {
  min-width: 230px;
  border: 1px solid var(--sofl-border);
  border-radius: 14px;
  padding: 8px;
}

.sofl-user-action-menu .dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  border-radius: 10px;
  color: var(--sofl-text);
  font-weight: 720;
}

.sofl-user-action-menu .dropdown-item:hover {
  background: var(--sofl-gold-wash);
  color: var(--sofl-dark);
}

.sofl-user-summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
}

.sofl-user-summary-strip > div {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border-right: 1px solid var(--sofl-border);
}

.sofl-user-summary-strip > div:last-child {
  border-right: 0;
}

.sofl-user-summary-strip span:first-child {
  color: var(--sofl-muted);
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.sofl-user-column {
  display: grid;
  gap: 22px;
}

.sofl-user-card {
  overflow: hidden;
}

.sofl-user-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--sofl-border);
}

.sofl-user-card-header p {
  margin: 5px 0 0;
  color: var(--sofl-muted);
  font-size: .86rem;
}

.sofl-user-card-body {
  display: grid;
  gap: 0;
  padding: 6px 20px 14px;
}

.sofl-user-info-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  min-height: 48px;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
}

.sofl-user-info-row:last-child {
  border-bottom: 0;
}

.sofl-user-info-row span {
  color: var(--sofl-muted);
  font-size: .84rem;
  font-weight: 760;
}

.sofl-user-info-row strong {
  min-width: 0;
  color: var(--sofl-dark);
  font-size: .92rem;
  font-weight: 800;
}

.sofl-user-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  width: fit-content;
  padding: 0 10px;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 850;
  white-space: nowrap;
}

.sofl-user-status-badge.active,
.sofl-user-status-badge.success,
.sofl-user-status-badge.paid,
.sofl-user-status-badge.verified {
  background: rgba(16, 185, 129, .11);
  color: #047857;
}

.sofl-user-status-badge.inactive,
.sofl-user-status-badge.unverified,
.sofl-user-status-badge.neutral {
  background: rgba(107, 114, 128, .11);
  color: #4b5563;
}

.sofl-user-status-badge.pending {
  background: rgba(245, 158, 11, .13);
  color: #92400e;
}

.sofl-user-status-badge.failed,
.sofl-user-status-badge.expired {
  background: rgba(239, 68, 68, .1);
  color: #b91c1c;
}

.sofl-profile-progress {
  padding: 16px 0 12px;
  border-bottom: 1px solid #f1f5f9;
}

.sofl-profile-progress span {
  color: var(--sofl-muted);
  font-size: .84rem;
  font-weight: 800;
}

.sofl-profile-progress strong {
  color: var(--sofl-dark);
  font-weight: 900;
}

.sofl-profile-progress .progress {
  height: 10px;
  border-radius: 999px;
  background: #eef2f7;
}

.sofl-profile-progress .progress-bar {
  border-radius: inherit;
  background: linear-gradient(90deg, var(--sofl-gold), var(--sofl-gold-hover));
  transition: width 700ms ease;
}

.sofl-subscription-table,
.sofl-login-table {
  color: var(--sofl-text);
}

.sofl-subscription-table thead th,
.sofl-login-table thead th {
  padding: 13px 16px;
  border-bottom: 1px solid var(--sofl-border);
  background: #fbfcfe;
  color: var(--sofl-muted);
  font-size: .72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.sofl-subscription-table tbody td,
.sofl-login-table tbody td {
  padding: 15px 16px;
  border-bottom: 1px solid #f1f5f9;
  font-size: .86rem;
  vertical-align: middle;
}

.sofl-subscription-table tbody tr:last-child td,
.sofl-login-table tbody tr:last-child td {
  border-bottom: 0;
}

.sofl-subscription-table tbody tr:hover,
.sofl-login-table tbody tr:hover {
  background: #fffaf0;
}

.sofl-billing-card .sofl-user-card-body {
  padding-bottom: 20px;
}

.sofl-billing-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 24px;
}

.sofl-billing-grid .span-2 {
  grid-column: 1 / -1;
}

.sofl-user-empty {
  display: grid;
  place-items: center;
  gap: 6px;
  min-height: 130px;
  padding: 24px;
  color: var(--sofl-muted);
  text-align: center;
}

.sofl-user-empty i {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--sofl-gold-wash);
  color: var(--sofl-gold-deep);
}

.sofl-user-empty strong {
  color: var(--sofl-dark);
  font-weight: 900;
}

.sofl-user-empty span {
  font-size: .86rem;
}

.sofl-user-link,
.sofl-user-icon-link {
  color: #9a6b16;
  font-weight: 850;
}

.sofl-user-icon-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sofl-user-link:hover,
.sofl-user-icon-link:hover {
  color: var(--sofl-dark);
}

.sofl-user-method {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
}

@media (max-width: 1199.98px) {
  .sofl-user-detail-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .sofl-user-actions {
    width: 100%;
  }
}

@media (max-width: 991.98px) {
  .sofl-user-summary-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sofl-user-summary-strip > div:nth-child(2) {
    border-right: 0;
  }

  .sofl-user-summary-strip > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--sofl-border);
  }
}

@media (max-width: 575.98px) {
  .sofl-user-detail-header {
    padding: 18px;
  }

  .sofl-user-avatar {
    width: 52px;
    height: 52px;
    border-radius: 16px;
  }

  .sofl-user-actions,
  .sofl-user-actions .sofl-btn-outline,
  .sofl-user-actions .dropdown,
  .sofl-user-actions .sofl-btn-gold {
    width: 100%;
  }

  .sofl-user-summary-strip,
  .sofl-billing-grid {
    grid-template-columns: 1fr;
  }

  .sofl-user-summary-strip > div {
    border-right: 0;
    border-bottom: 1px solid var(--sofl-border);
  }

  .sofl-user-summary-strip > div:last-child {
    border-bottom: 0;
  }

  .sofl-user-card-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px;
  }

  .sofl-user-card-body {
    padding-left: 16px;
    padding-right: 16px;
  }

  .sofl-user-info-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}
.sofl-saved-library-page {
  display: grid;
  gap: 1.5rem;
}

.sofl-saved-hero {
  align-items: flex-end;
  border-left: 4px solid #d8a028;
}

.sofl-library-kicker {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: #8a6a20;
  font-weight: 800;
  font-size: .78rem;
  text-transform: uppercase;
}

.sofl-saved-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.sofl-saved-stats a {
  border: 1px solid rgba(20, 24, 31, .08);
  background: #fff;
  border-radius: 8px;
  padding: 1rem;
  color: #14181f;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(20, 24, 31, .06);
  transition: transform .2s ease, box-shadow .2s ease;
}

.sofl-saved-stats a:hover,
.sofl-collection-card:hover,
.sofl-saved-content:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(20, 24, 31, .1);
}

.sofl-saved-stats strong {
  display: block;
  font-size: 1.7rem;
  line-height: 1;
}

.sofl-saved-stats span {
  color: #6b7280;
  font-weight: 700;
  font-size: .85rem;
}

.sofl-collection-card {
  --collection-accent: #d8a028;
  min-height: 220px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(20, 24, 31, .08);
  border-top: 4px solid var(--collection-accent);
  padding: 1.2rem;
  box-shadow: 0 12px 30px rgba(20, 24, 31, .06);
  transition: transform .2s ease, box-shadow .2s ease;
}

.sofl-collection-card-top,
.sofl-collection-card-foot,
.sofl-saved-content-top,
.sofl-saved-content-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}

.sofl-collection-icon {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--collection-accent);
  background: color-mix(in srgb, var(--collection-accent) 14%, white);
}

.sofl-collection-pill,
.sofl-collection-count {
  border-radius: 999px;
  padding: .35rem .65rem;
  background: #f4f0e6;
  color: #7a5a12;
  font-size: .78rem;
  font-weight: 800;
}

.sofl-collection-card h3,
.sofl-saved-content h3 {
  margin: 1rem 0 .45rem;
  font-size: 1.05rem;
  font-weight: 800;
}

.sofl-collection-card p,
.sofl-saved-content p,
.sofl-library-empty-state p {
  color: #6b7280;
}

.sofl-collection-card-foot {
  margin-top: 1.25rem;
}

.sofl-collection-card-foot a,
.sofl-saved-content h3 a {
  color: #14181f;
  font-weight: 800;
  text-decoration: none;
}

.sofl-saved-content {
  display: grid;
  gap: 1rem;
  height: 100%;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(20, 24, 31, .08);
  padding: 1.1rem;
  box-shadow: 0 12px 30px rgba(20, 24, 31, .06);
  transition: transform .2s ease, box-shadow .2s ease;
}

.sofl-save-button {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(216, 160, 40, .35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #8a6a20;
  background: #fff9ea;
  transition: transform .18s ease, background .18s ease, color .18s ease;
}

.sofl-save-button:hover,
.sofl-save-button.is-favorite,
.sofl-save-button.is-saved {
  transform: scale(1.05);
  background: #d8a028;
  color: #fff;
}

.sofl-saved-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: .75rem;
}

.sofl-saved-tags span {
  border-radius: 999px;
  background: #f3f4f6;
  color: #4b5563;
  padding: .25rem .55rem;
  font-size: .76rem;
  font-weight: 700;
}

.sofl-saved-note {
  margin-top: .8rem;
  padding: .65rem .75rem;
  border-radius: 8px;
  background: #f9fafb;
  color: #4b5563;
  font-size: .86rem;
}

.sofl-favorite-card {
  --collection-accent: #d8a028;
}

.sofl-watch-later {
  --collection-accent: #8e5cf7;
}

.sofl-revision-card {
  --collection-accent: #2f80ed;
}

.sofl-library-empty-state {
  border: 1px dashed rgba(20, 24, 31, .18);
  border-radius: 8px;
  background: #fff;
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.sofl-library-empty-state span {
  width: 58px;
  height: 58px;
  margin: 0 auto 1rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff7e4;
  color: #d8a028;
  font-size: 1.35rem;
}

.sofl-modal-content {
  border-radius: 8px;
  border: 0;
}

@media (max-width: 768px) {
  .sofl-saved-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sofl-saved-content-actions {
    align-items: stretch;
    flex-wrap: wrap;
  }
}

/* Saved Library final overrides */
.sofl-saved-library {
  display: grid;
  gap: 22px;
  color: var(--sofl-text);
}

.sofl-saved-library a {
  text-decoration: none;
}

.sofl-saved-library .sofl-saved-hero {
  --collection-accent: var(--sofl-gold);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
  gap: 24px;
  align-items: stretch;
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid rgba(229, 231, 235, .95);
  border-radius: var(--sofl-radius);
  background: #fff;
  box-shadow: var(--sofl-shadow-soft);
}

.sofl-saved-library .sofl-saved-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, color-mix(in srgb, var(--collection-accent) 14%, transparent), transparent 34%), radial-gradient(circle at 92% 10%, rgba(15, 23, 42, .08), transparent 28%);
}

.sofl-saved-library .sofl-saved-hero > * {
  position: relative;
  z-index: 1;
}

.sofl-saved-library .sofl-saved-hero h1 {
  margin: 8px 0 10px;
  color: var(--sofl-dark);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  line-height: 1.08;
}

.sofl-saved-library .sofl-saved-hero p {
  max-width: 720px;
  margin: 0;
  color: var(--sofl-muted);
  line-height: 1.65;
}

.sofl-saved-hero-actions,
.sofl-save-modal-options,
.sofl-inline-create-actions,
.sofl-collection-meta,
.sofl-saved-content-actions,
.sofl-saved-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.sofl-saved-hero-actions {
  margin-top: 18px;
}

.sofl-saved-hero-panel {
  display: grid;
  align-content: center;
  gap: 8px;
  min-height: 168px;
  padding: 18px;
  border: 1px solid rgba(212, 168, 67, .25);
  border-radius: 16px;
  background: linear-gradient(180deg, #fff, var(--sofl-gold-wash));
}

.sofl-saved-hero-panel span {
  color: var(--sofl-dark);
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1;
}

.sofl-saved-hero-panel strong,
.sofl-collection-card h3,
.sofl-saved-content-card h3,
.sofl-saved-empty h3 {
  color: var(--sofl-dark);
  font-weight: 900;
}

.sofl-saved-hero-panel small,
.sofl-collection-meta,
.sofl-saved-content-actions small,
.sofl-collection-card-foot small,
.sofl-modal-kicker {
  color: var(--sofl-muted);
}

.sofl-library-kicker,
.sofl-modal-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #9a6b16;
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.sofl-saved-library .sofl-saved-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.sofl-library-stat,
.sofl-saved-library .sofl-collection-card,
.sofl-saved-content-card {
  border: 1px solid rgba(229, 231, 235, .95);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--sofl-shadow-soft);
  transition: transform var(--sofl-transition), border-color var(--sofl-transition), box-shadow var(--sofl-transition);
}

.sofl-library-stat:hover,
.sofl-saved-library .sofl-collection-card:hover,
.sofl-saved-content-card:hover {
  transform: translateY(-3px);
  border-color: rgba(212, 168, 67, .5);
  box-shadow: var(--sofl-shadow);
}

.sofl-library-stat {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 3px 12px;
  min-height: 112px;
  padding: 18px;
}

.sofl-library-stat span,
.sofl-saved-library .sofl-collection-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  grid-row: span 2;
  border-radius: 14px;
  background: rgba(212, 168, 67, .15);
  color: var(--sofl-gold-deep);
}

.sofl-library-stat strong {
  color: var(--sofl-dark);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}

.sofl-library-stat small {
  color: var(--sofl-muted);
  font-weight: 850;
}

.sofl-saved-library .sofl-collection-card {
  --collection-accent: var(--sofl-gold);
  position: relative;
  display: grid;
  gap: 14px;
  min-height: 230px;
  overflow: hidden;
  padding: 18px;
  border-top: 4px solid var(--collection-accent);
}

.sofl-card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.sofl-saved-library .sofl-collection-card > *:not(.sofl-card-link) {
  position: relative;
  z-index: 2;
}

.sofl-saved-library .sofl-collection-card-top,
.sofl-saved-library .sofl-collection-card-foot,
.sofl-saved-content-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sofl-saved-library .sofl-collection-icon {
  background: color-mix(in srgb, var(--collection-accent) 15%, white);
  color: var(--collection-accent);
}

.sofl-collection-pill,
.sofl-collection-count,
.sofl-saved-library .sofl-module-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 900;
  white-space: nowrap;
}

.sofl-collection-pill,
.sofl-collection-count {
  background: color-mix(in srgb, var(--collection-accent) 12%, white);
  color: color-mix(in srgb, var(--collection-accent) 75%, #111827);
}

.sofl-saved-library .sofl-module-badge {
  background: #eff6ff;
  color: #1d4ed8;
}

.sofl-saved-library .sofl-collection-card p,
.sofl-saved-content-card p,
.sofl-saved-empty p {
  margin: 0;
  color: var(--sofl-muted);
  line-height: 1.55;
}

.sofl-collection-meta {
  font-size: .84rem;
  font-weight: 800;
}

.sofl-collection-meta span {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.sofl-saved-content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.sofl-saved-content-card {
  display: grid;
  gap: 16px;
  min-height: 250px;
  padding: 18px;
}

.sofl-saved-content-main {
  display: grid;
  gap: 12px;
}

.sofl-save-button {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(212, 168, 67, .38);
  border-radius: 999px;
  background: #fff;
  color: #9a6b16;
  transition: transform var(--sofl-transition), background var(--sofl-transition), color var(--sofl-transition), border-color var(--sofl-transition);
}

.sofl-save-button:hover,
.sofl-save-button.is-favorite,
.sofl-save-button.is-saved {
  border-color: var(--sofl-gold);
  background: var(--sofl-gold);
  color: var(--sofl-dark);
  transform: scale(1.06);
}

.sofl-save-button.is-animating {
  animation: soflSavedPulse .18s ease;
}

@keyframes soflSavedPulse {
  50% {
    transform: scale(1.16);
  }
}

.sofl-saved-tags span {
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid var(--sofl-border);
  border-radius: 999px;
  background: #f8fafc;
  color: #475569;
  font-size: .76rem;
  font-weight: 800;
}

.sofl-saved-note {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(212, 168, 67, .24);
  border-radius: 14px;
  background: var(--sofl-gold-wash);
}

.sofl-saved-note span {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  color: #9a6b16;
  font-size: .78rem;
  font-weight: 900;
}

.sofl-saved-content-actions {
  padding-top: 14px;
  border-top: 1px solid var(--sofl-border);
}

.sofl-saved-content-actions small {
  margin-right: auto;
  font-weight: 800;
}

.sofl-collection-filter {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(150px, 190px) minmax(150px, 190px);
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(229, 231, 235, .95);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--sofl-shadow-soft);
}

.sofl-save-modal .modal-content {
  border: 0;
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .24);
}

.sofl-save-modal .modal-header,
.sofl-save-modal .modal-footer {
  border-color: var(--sofl-border);
}

.sofl-save-modal .modal-title {
  color: var(--sofl-dark);
  font-weight: 900;
}

.sofl-save-modal-options {
  margin-top: 14px;
}

.sofl-create-inline-toggle {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-top: 14px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #9a6b16;
  font-weight: 900;
}

.sofl-inline-create-panel {
  padding: 14px;
  border: 1px dashed rgba(212, 168, 67, .45);
  border-radius: 16px;
  background: var(--sofl-gold-wash);
}

.sofl-inline-create-actions {
  justify-content: flex-end;
  margin-top: 14px;
}

.sofl-saved-empty {
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 240px;
  padding: 30px;
  border: 1px dashed rgba(212, 168, 67, .5);
  border-radius: 16px;
  background: linear-gradient(180deg, #fff, var(--sofl-gold-wash));
  text-align: center;
}

.sofl-saved-empty span {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(212, 168, 67, .16);
  color: var(--sofl-gold-deep);
  font-size: 1.3rem;
}

@media (max-width: 1199.98px) {
  .sofl-saved-library .sofl-saved-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .sofl-saved-library .sofl-saved-hero,
  .sofl-saved-content-grid,
  .sofl-collection-filter {
    grid-template-columns: 1fr;
  }

  .sofl-saved-hero-panel {
    min-height: 130px;
  }
}

@media (max-width: 575.98px) {
  .sofl-saved-library .sofl-saved-stats {
    grid-template-columns: 1fr;
  }

  .sofl-saved-content-actions,
  .sofl-saved-hero-actions,
  .sofl-inline-create-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .sofl-saved-content-actions small,
  .sofl-saved-content-actions .sofl-btn-gold,
  .sofl-saved-content-actions .sofl-btn-outline,
  .sofl-saved-content-actions form,
  .sofl-saved-content-actions .sofl-icon-button,
  .sofl-saved-hero-actions .sofl-btn-gold,
  .sofl-saved-hero-actions .sofl-btn-outline {
    width: 100%;
  }
}
