/* ==============================================================================
   CloudCampus / Academy LMS - Modern Student Portal Design System
   ============================================================================== */

:root {
  --sp-primary: #4f46e5;
  --sp-primary-rgb: 79, 70, 229;
  --sp-primary-hover: #4338ca;
  --sp-primary-light: #eef2ff;
  --sp-primary-dark: #3730a3;
  --sp-accent: #06b6d4;
  --sp-success: #10b981;
  --sp-warning: #f59e0b;
  --sp-danger: #ef4444;
  --sp-bg: #f8fafc;
  --sp-card-bg: #ffffff;
  --sp-sidebar-bg: #ffffff;
  --sp-border: #e2e8f0;
  --sp-border-subtle: #f1f5f9;
  --sp-text-heading: #0f172a;
  --sp-text-body: #334155;
  --sp-text-muted: #64748b;
  --sp-radius-sm: 8px;
  --sp-radius-md: 12px;
  --sp-radius-lg: 16px;
  --sp-radius-xl: 20px;
  --sp-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --sp-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --sp-shadow-lg: 0 10px 25px -5px rgba(15, 23, 42, 0.06), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --sp-transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Portal Shell */
.student-portal-wrapper {
  background-color: var(--sp-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--sp-text-body);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Hide legacy bulky breadcrumb on portal */
.student-portal-wrapper .bread-crumb {
  display: none !important;
}

/* Portal Top App Bar */
.sp-topbar {
  background: #ffffff;
  border-bottom: 1px solid var(--sp-border);
  padding: 0.85rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--sp-shadow-sm);
}

.sp-topbar-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.sp-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--sp-text-heading);
}

.sp-brand img {
  height: 34px;
  width: auto;
  object-fit: contain;
}

.sp-brand-badge {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  background: var(--sp-primary-light);
  color: var(--sp-primary);
  margin-left: 0.25rem;
}

.sp-topbar-search {
  position: relative;
  width: 320px;
}

.sp-topbar-search input {
  width: 100%;
  padding: 0.55rem 1rem 0.55rem 2.5rem;
  border-radius: 9999px;
  border: 1px solid var(--sp-border);
  background: var(--sp-bg);
  font-size: 0.875rem;
  color: var(--sp-text-body);
  transition: var(--sp-transition);
}

.sp-topbar-search input:focus {
  outline: none;
  border-color: var(--sp-primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(var(--sp-primary-rgb), 0.12);
}

.sp-topbar-search i {
  position: absolute;
  left: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--sp-text-muted);
  font-size: 0.875rem;
}

.sp-topbar-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.sp-greeting {
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--sp-text-heading);
}

.sp-greeting span {
  font-weight: 600;
  color: var(--sp-primary);
}

.sp-topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sp-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sp-text-muted);
  background: transparent;
  border: 1px solid var(--sp-border);
  position: relative;
  transition: var(--sp-transition);
  text-decoration: none;
}

.sp-icon-btn:hover {
  color: var(--sp-primary);
  background: var(--sp-primary-light);
  border-color: rgba(var(--sp-primary-rgb), 0.2);
}

.sp-icon-btn .badge-pill {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--sp-danger);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: 9999px;
  border: 2px solid #ffffff;
  line-height: 1;
}

.sp-user-dropdown {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0.75rem 0.35rem 0.35rem;
  border-radius: 9999px;
  border: 1px solid var(--sp-border);
  background: #ffffff;
  cursor: pointer;
  transition: var(--sp-transition);
  text-decoration: none;
}

.sp-user-dropdown:hover {
  border-color: var(--sp-primary);
  box-shadow: var(--sp-shadow-sm);
}

.sp-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.sp-user-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--sp-text-heading);
}

/* Portal Main Layout */
.sp-layout-container {
  display: flex;
  flex: 1;
  max-width: 100%;
  padding: 1.5rem 2rem;
  gap: 1.75rem;
}

/* Portal Sidebar */
.sp-sidebar {
  width: 280px;
  flex-shrink: 0;
}

.sp-sidebar-card {
  background: var(--sp-card-bg);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius-lg);
  padding: 1.5rem 1.25rem;
  box-shadow: var(--sp-shadow-sm);
  position: sticky;
  top: 5rem;
}

/* Student Profile Widget */
.sp-profile-widget {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--sp-border-subtle);
  margin-bottom: 1.25rem;
}

.sp-profile-widget-avatar-wrap {
  position: relative;
  margin-bottom: 0.75rem;
}

.sp-profile-widget-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--sp-primary-light);
  box-shadow: var(--sp-shadow-sm);
}

.sp-online-status {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--sp-success);
  border: 2px solid #ffffff;
}

.sp-profile-widget-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--sp-text-heading);
  margin-bottom: 0.15rem;
  line-height: 1.2;
}

.sp-profile-widget-email {
  font-size: 0.775rem;
  color: var(--sp-text-muted);
  margin-bottom: 0.6rem;
  word-break: break-all;
}

.sp-profile-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.725rem;
  font-weight: 600;
  color: #065f46;
  background: #d1fae5;
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
}

.sp-profile-status-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
}

/* Sidebar Navigation */
.sp-nav-group-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.075em;
  color: var(--sp-text-muted);
  margin: 1.15rem 0 0.5rem 0.5rem;
}

.sp-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sp-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--sp-radius-md);
  color: var(--sp-text-body);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--sp-transition);
}

.sp-nav-link i, .sp-nav-link svg {
  font-size: 1rem;
  width: 20px;
  text-align: center;
  color: var(--sp-text-muted);
  transition: var(--sp-transition);
}

.sp-nav-link:hover {
  background: var(--sp-primary-light);
  color: var(--sp-primary);
}

.sp-nav-link:hover i, .sp-nav-link:hover svg {
  color: var(--sp-primary);
}

.sp-nav-link.active {
  background: var(--sp-primary);
  color: #ffffff !important;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(var(--sp-primary-rgb), 0.25);
}

.sp-nav-link.active i, .sp-nav-link.active svg {
  color: #ffffff !important;
}

.sp-nav-badge {
  margin-left: auto;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  background: var(--sp-danger);
  color: #ffffff;
}

.sp-nav-link.active .sp-nav-badge {
  background: #ffffff;
  color: var(--sp-primary);
}

/* Sidebar Footer */
.sp-sidebar-footer {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--sp-border-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.sp-sidebar-footer-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.825rem;
  font-weight: 500;
  color: var(--sp-text-muted);
  padding: 0.5rem 0.85rem;
  border-radius: var(--sp-radius-md);
  text-decoration: none;
  transition: var(--sp-transition);
}

.sp-sidebar-footer-link:hover {
  background: #fee2e2;
  color: var(--sp-danger);
}

.sp-sidebar-footer-link:hover i {
  color: var(--sp-danger);
}

/* Portal Main Content Area */
.sp-content-area {
  flex: 1;
  min-width: 0;
}

.sp-card {
  background: var(--sp-card-bg);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius-lg);
  box-shadow: var(--sp-shadow-sm);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}

.sp-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.75rem;
}

.sp-page-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--sp-text-heading);
  letter-spacing: -0.025em;
  margin: 0;
}

.sp-page-subtitle {
  font-size: 0.875rem;
  color: var(--sp-text-muted);
  margin-top: 0.25rem;
}

/* Messenger / Chat Specific Redesign */
.sp-messenger-container {
  display: flex;
  background: #ffffff;
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius-lg);
  box-shadow: var(--sp-shadow-sm);
  overflow: hidden;
  height: calc(100vh - 140px);
  min-height: 600px;
}

.sp-messenger-sidebar {
  width: 340px;
  border-right: 1px solid var(--sp-border);
  display: flex;
  flex-direction: column;
  background: #ffffff;
  flex-shrink: 0;
}

.sp-messenger-header {
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid var(--sp-border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sp-messenger-header h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--sp-text-heading);
  margin: 0;
}

.sp-new-msg-btn {
  background: var(--sp-primary-light);
  color: var(--sp-primary);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--sp-transition);
}

.sp-new-msg-btn:hover {
  background: var(--sp-primary);
  color: #ffffff;
}

.sp-messenger-search {
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--sp-border-subtle);
  position: relative;
}

.sp-messenger-search input {
  width: 100%;
  padding: 0.5rem 0.85rem 0.5rem 2.2rem;
  border-radius: var(--sp-radius-md);
  border: 1px solid var(--sp-border);
  background: var(--sp-bg);
  font-size: 0.825rem;
}

.sp-messenger-search i {
  position: absolute;
  left: 2rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--sp-text-muted);
  font-size: 0.8rem;
}

.sp-threads-list {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem;
}

.sp-thread-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem;
  border-radius: var(--sp-radius-md);
  cursor: pointer;
  transition: var(--sp-transition);
  margin-bottom: 0.25rem;
  border-left: 3px solid transparent;
}

.sp-thread-item:hover {
  background: var(--sp-bg);
}

.sp-thread-item.active {
  background: var(--sp-primary-light);
  border-left-color: var(--sp-primary);
}

.sp-thread-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.sp-thread-info {
  flex: 1;
  min-width: 0;
}

.sp-thread-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.15rem;
}

.sp-thread-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--sp-text-heading);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sp-thread-time {
  font-size: 0.725rem;
  color: var(--sp-text-muted);
}

.sp-thread-preview {
  font-size: 0.775rem;
  color: var(--sp-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}

.sp-thread-item.active .sp-thread-name {
  color: var(--sp-primary);
}

/* Messenger Chat Pane */
.sp-messenger-chat {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #ffffff;
}

.sp-chat-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--sp-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
}

.sp-chat-user-info {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.sp-chat-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.sp-chat-user-details h5 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--sp-text-heading);
  margin: 0;
}

.sp-chat-user-details p {
  font-size: 0.775rem;
  color: var(--sp-text-muted);
  margin: 0;
}

.sp-chat-messages-stream {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  background: #fdfdfd;
}

.sp-msg-row {
  display: flex;
  gap: 0.75rem;
  max-width: 75%;
}

.sp-msg-row.outgoing {
  margin-left: auto;
  flex-direction: row-reverse;
}

.sp-msg-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  margin-top: auto;
}

.sp-msg-bubble {
  padding: 0.85rem 1.15rem;
  border-radius: var(--sp-radius-lg);
  font-size: 0.875rem;
  line-height: 1.5;
  box-shadow: var(--sp-shadow-sm);
}

.sp-msg-row.incoming .sp-msg-bubble {
  background: #f1f5f9;
  color: var(--sp-text-body);
  border-bottom-left-radius: 4px;
}

.sp-msg-row.outgoing .sp-msg-bubble {
  background: var(--sp-primary);
  color: #ffffff;
  border-bottom-right-radius: 4px;
}

.sp-msg-time {
  font-size: 0.675rem;
  margin-top: 0.35rem;
  color: var(--sp-text-muted);
  text-align: right;
}

.sp-msg-row.outgoing .sp-msg-time {
  color: rgba(255, 255, 255, 0.8);
}

.sp-chat-input-area {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--sp-border);
  background: #ffffff;
}

.sp-chat-input-form {
  display: flex;
  gap: 0.75rem;
  align-items: flex-end;
}

.sp-chat-textarea {
  flex: 1;
  border-radius: var(--sp-radius-md);
  border: 1px solid var(--sp-border);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  resize: none;
  height: 48px;
  outline: none;
  transition: var(--sp-transition);
}

.sp-chat-textarea:focus {
  border-color: var(--sp-primary);
  box-shadow: 0 0 0 3px rgba(var(--sp-primary-rgb), 0.12);
}

.sp-chat-send-btn {
  background: var(--sp-primary);
  color: #ffffff;
  border: none;
  height: 48px;
  padding: 0 1.5rem;
  border-radius: var(--sp-radius-md);
  font-weight: 600;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: var(--sp-transition);
}

.sp-chat-send-btn:hover {
  background: var(--sp-primary-hover);
  transform: translateY(-1px);
}

/* Course Progress Cards Redesign */
.sp-courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.sp-course-card {
  background: #ffffff;
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius-lg);
  overflow: hidden;
  box-shadow: var(--sp-shadow-sm);
  transition: var(--sp-transition);
  display: flex;
  flex-direction: column;
}

.sp-course-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sp-shadow-lg);
  border-color: rgba(var(--sp-primary-rgb), 0.3);
}

.sp-course-thumb-wrap {
  position: relative;
  aspect-ratio: 16/9;
  background: #f1f5f9;
  overflow: hidden;
}

.sp-course-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.sp-course-card:hover .sp-course-thumb {
  transform: scale(1.03);
}

.sp-course-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.sp-course-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--sp-text-heading);
  margin-bottom: 0.5rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sp-course-title a {
  color: inherit;
  text-decoration: none;
}

.sp-course-title a:hover {
  color: var(--sp-primary);
}

.sp-course-meta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.775rem;
  color: var(--sp-text-muted);
  margin-bottom: 1rem;
}

.sp-progress-wrap {
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid var(--sp-border-subtle);
}

.sp-progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.775rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--sp-text-heading);
}

.sp-progress-bar-bg {
  height: 6px;
  background: #e2e8f0;
  border-radius: 9999px;
  overflow: hidden;
  margin-bottom: 0.85rem;
}

.sp-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--sp-primary) 0%, var(--sp-accent) 100%);
  border-radius: 9999px;
  transition: width 0.4s ease;
}

.sp-course-btn {
  width: 100%;
  padding: 0.55rem 1rem;
  border-radius: var(--sp-radius-md);
  background: var(--sp-primary-light);
  color: var(--sp-primary);
  font-weight: 600;
  font-size: 0.825rem;
  text-align: center;
  text-decoration: none;
  display: block;
  transition: var(--sp-transition);
}

.sp-course-btn:hover {
  background: var(--sp-primary);
  color: #ffffff;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .sp-layout-container {
    flex-direction: column;
    padding: 1rem;
  }
  .sp-sidebar {
    width: 100%;
  }
  .sp-sidebar-card {
    position: static;
  }
  .sp-messenger-container {
    flex-direction: column;
    height: auto;
  }
  .sp-messenger-sidebar {
    width: 100%;
    height: 300px;
  }
}

/* ==============================================================================
   CloudCampus - Modern Courses Catalog & Filter System
   ============================================================================== */

.sp-catalog-wrapper {
  background-color: #f8fafc;
  min-height: 85vh;
}

.sp-catalog-hero {
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.sp-filter-card {
  background: #ffffff;
  border-radius: var(--sp-radius-lg);
  border: 1px solid var(--sp-border);
  box-shadow: var(--sp-shadow-sm);
  overflow: hidden;
}

.sp-custom-check .form-check-input {
  cursor: pointer;
  border-color: #cbd5e1;
}

.sp-custom-check .form-check-input:checked {
  background-color: var(--sp-primary);
  border-color: var(--sp-primary);
}

.sp-level-indicator {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.sp-badge-glass {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.7rem;
  letter-spacing: 0.03em;
}

.sp-course-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  background: #ffffff;
  border: 1px solid var(--sp-border) !important;
}

.sp-course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px -10px rgba(15, 23, 42, 0.12) !important;
  border-color: #cbd5e1 !important;
}

.sp-card-thumb-wrapper {
  height: 195px;
  background-color: #e2e8f0;
}

.sp-course-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.sp-course-card:hover .sp-course-thumb {
  transform: scale(1.04);
}

.sp-wishlist-btn {
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--sp-transition);
  z-index: 5;
}

.sp-wishlist-btn:hover {
  background: #ffffff;
  transform: scale(1.1);
}

.sp-course-title a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
  transition: color 0.15s ease;
}

.sp-course-title a:hover,
.hover-primary:hover {
  color: var(--sp-primary) !important;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.radius-8 {
  border-radius: 8px !important;
}

.text-xs {
  font-size: 0.75rem !important;
}

.text-10px {
  font-size: 10px !important;
}

.text-12px {
  font-size: 12px !important;
}

.text-13px {
  font-size: 13px !important;
}

.text-14px {
  font-size: 14px !important;
}

.cursor-pointer {
  cursor: pointer;
}

/* ==============================================================================
   Vibrant Hero & Header Colors & Micro-Animations
   ============================================================================== */

.sp-catalog-hero {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

/* Ambient Glowing Background Orbs */
.sp-hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
}

.sp-glow-cyan {
  width: 280px;
  height: 280px;
  background: #06b6d4;
  top: -40px;
  left: 20%;
}

.sp-glow-purple {
  width: 320px;
  height: 320px;
  background: #8b5cf6;
  bottom: -60px;
  left: 45%;
}

.sp-glow-pink {
  width: 260px;
  height: 260px;
  background: #ec4899;
  top: 20px;
  right: 10%;
}

.sp-glow-amber {
  width: 220px;
  height: 220px;
  background: #f59e0b;
  bottom: -40px;
  right: -30px;
}

/* Gradient Headings & Text */
.sp-hero-heading {
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.sp-gradient-text-cyan {
  background: linear-gradient(135deg, #38bdf8 0%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sp-gradient-text-purple {
  background: linear-gradient(135deg, #c084fc 0%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sp-gradient-text-pink {
  background: linear-gradient(135deg, #f472b6 0%, #fb7185 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sp-gradient-text-gold {
  background: linear-gradient(135deg, #fde047 0%, #fbbf24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Hero Badge */
.sp-hero-badge {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.sp-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* Multi-Color Trust Chips */
.sp-trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.775rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  backdrop-filter: blur(8px);
  transition: transform 0.2s ease;
}

.sp-trust-chip:hover {
  transform: translateY(-2px);
}

.sp-chip-emerald {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #6ee7b7;
}
.sp-chip-emerald i { color: #10b981; }

.sp-chip-cyan {
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.35);
  color: #67e8f9;
}
.sp-chip-cyan i { color: #06b6d4; }

.sp-chip-amber {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fcd34d;
}
.sp-chip-amber i { color: #f59e0b; }

.sp-chip-rose {
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.35);
  color: #fda4af;
}
.sp-chip-rose i { color: #f43f5e; }

/* Quick Category Tags */
.sp-tag-pill {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  text-decoration: none;
  transition: all 0.2s ease;
}

.sp-tag-pill:hover,
.sp-tag-pill.active {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  border-color: #818cf8;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
}

/* Colorful Hero Stat Cards */
.sp-stat-card {
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.25s ease;
}

.sp-stat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.3);
}

.sp-stat-icon-wrap {
  width: 36px;
  height: 36px;
  font-size: 1rem;
}

.sp-stat-card-blue {
  background: linear-gradient(145deg, rgba(30, 58, 138, 0.4) 0%, rgba(15, 23, 42, 0.6) 100%);
  border-left: 3px solid #3b82f6 !important;
}

.sp-stat-card-gold {
  background: linear-gradient(145deg, rgba(120, 53, 15, 0.4) 0%, rgba(15, 23, 42, 0.6) 100%);
  border-left: 3px solid #f59e0b !important;
}

.sp-stat-card-green {
  background: linear-gradient(145deg, rgba(6, 78, 59, 0.4) 0%, rgba(15, 23, 42, 0.6) 100%);
  border-left: 3px solid #10b981 !important;
}

.sp-stat-card-purple {
  background: linear-gradient(145deg, rgba(88, 28, 135, 0.4) 0%, rgba(15, 23, 42, 0.6) 100%);
  border-left: 3px solid #a855f7 !important;
}

.sp-btn-gradient {
  background: linear-gradient(135deg, #06b6d4 0%, #4f46e5 50%, #9333ea 100%);
  color: #ffffff !important;
  border: none;
  transition: all 0.3s ease;
}

.sp-btn-gradient:hover {
  background: linear-gradient(135deg, #0891b2 0%, #4338ca 50%, #7e22ce 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(79, 70, 229, 0.45);
}

/* Sub-header color accent */
.sub-header {
  background: linear-gradient(90deg, #0f172a 0%, #1e1b4b 100%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}


