:root,
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

:root {
  --primary: var(--brand-runtime, #1e3a8a);
  --primary-dark: color-mix(in srgb, var(--primary) 88%, #102347);
  --secondary: color-mix(in srgb, var(--accent-runtime, #06b6d4) 65%, #06b6d4);
  --secondary-light: color-mix(in srgb, var(--secondary) 72%, white);
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-dark: #0f172a;
  --text-primary: #0f172a;
  --text-secondary: #64748b;
  --text-light: #94a3b8;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
  --radius: 12px;
  --radius-lg: 16px;
  --radius-sm: 8px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

.flash {
  max-width: 1280px;
  margin: 100px auto 0;
  padding: 14px 18px;
  border-radius: 14px;
  font-weight: 600;
}

.flash.success {
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.24);
  color: #047857;
}

.flash.error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #b91c1c;
}

.storefront-main {
  max-width: none;
  margin: 0;
  padding: 0;
}

.storefront-catalog-main {
  background: var(--bg-secondary);
}

.learner-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 112px 24px 72px;
}

.storefront-main .flash {
  max-width: 1280px;
  margin: 92px auto 0;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  z-index: 1000;
  transition: all 0.3s ease;
  box-shadow: 0 1px 0 rgba(226, 232, 240, 0.8);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-icon,
.storefront-logo-image {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.logo-icon {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 18px;
}

.storefront-logo-image,
.storefront-footer-logo {
  object-fit: cover;
}

.logo-text {
  font-size: 24px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 10px 20px;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  background: rgba(30, 58, 138, 0.08);
}

.nav-cta,
.storefront-main .nav-cta {
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: none;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: white;
  z-index: 999;
  padding: 24px;
  flex-direction: column;
  gap: 8px;
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu .nav-link {
  padding: 16px;
  font-size: 18px;
  border-bottom: 1px solid var(--border);
}

.mobile-menu .nav-cta {
  margin-top: 16px;
  text-align: center;
}

.hero {
  padding: 140px 24px 100px;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, color-mix(in srgb, var(--secondary-light) 38%, white) 50%, var(--bg-secondary) 100%);
  position: relative;
  overflow: hidden;
  width: 100%;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, transparent 70%);
  animation: pulse 8s ease-in-out infinite;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(30, 58, 138, 0.1) 0%, transparent 70%);
  animation: pulse 10s ease-in-out infinite reverse;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.1); opacity: 1; }
}

.hero-container {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content,
.hero-image {
  animation: fadeInUp 0.8s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-badge,
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  color: color-mix(in srgb, var(--secondary) 86%, #0f172a);
}

.hero-badge {
  margin-bottom: 24px;
}

.hero-title {
  font-family: "Inter", sans-serif;
  font-size: 56px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero-title span {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 20px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 540px;
  line-height: 1.7;
}

.hero-buttons,
.cta-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.cta-actions {
  justify-content: center;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 40px -10px rgba(30, 58, 138, 0.4);
}

.btn-secondary {
  background: white;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: var(--shadow);
}

.compact-link {
  padding: 11px 18px;
  font-size: 14px;
  border-radius: 12px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
}

.stat-label {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.hero-image {
  position: relative;
}

.hero-image-main {
  width: 100%;
  height: 500px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-glass);
}

.hero-image-content {
  position: absolute;
  inset: 24px;
  background: white;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.mock-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.mock-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
}

.mock-text {
  flex: 1;
}

.mock-line {
  height: 12px;
  background: var(--bg-secondary);
  border-radius: 6px;
  margin-bottom: 8px;
}

.mock-line:nth-child(2) {
  width: 60%;
}

.mock-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  flex: 1;
}

.mock-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mock-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--secondary-light), var(--secondary));
}

.mock-card-line {
  height: 8px;
  background: var(--border);
  border-radius: 4px;
}

.float-card {
  position: absolute;
  background: white;
  padding: 16px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-glass);
  animation: float 4s ease-in-out infinite;
}

.float-card-1 {
  top: 40px;
  left: -20px;
}

.float-card-2 {
  bottom: 60px;
  right: -30px;
  animation-delay: 2s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.float-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #10b981, #34d399);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  margin-bottom: 8px;
}

.float-text {
  font-weight: 600;
  font-size: 14px;
}

.float-subtext {
  font-size: 12px;
  color: var(--text-secondary);
}

.section {
  padding: 100px 24px;
}

.section-header {
  max-width: 1280px;
  margin: 0 auto 60px;
  text-align: center;
}

.section-title {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.section-desc.compact {
  font-size: 15px;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.course-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.course-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glass);
  border-color: transparent;
}

.course-image {
  height: 180px;
  position: relative;
  overflow: hidden;
}

.course-image-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.course-image-bg {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: white;
  font-size: 48px;
}

.course-image-theme-1 { background: linear-gradient(135deg, #1d4ed8, #06b6d4); }
.course-image-theme-2 { background: linear-gradient(135deg, #10b981, #22c55e); }
.course-image-theme-3 { background: linear-gradient(135deg, #7c3aed, #8b5cf6); }
.course-image-theme-4 { background: linear-gradient(135deg, #ea580c, #f59e0b); }
.course-image-theme-5 { background: linear-gradient(135deg, #be123c, #f43f5e); }
.course-image-theme-6 { background: linear-gradient(135deg, #0f766e, #14b8a6); }

.course-image-glyph {
  display: inline-flex;
  width: 74px;
  height: 74px;
  border-radius: 24px;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 26px;
  font-weight: 800;
}

.course-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 12px;
  background: white;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
}

.course-wishlist {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 18px;
  box-shadow: none;
  color: var(--text-primary);
}

.course-wishlist:hover {
  background: white;
  transform: scale(1.1);
}

.course-body {
  padding: 20px;
}

.course-category {
  font-size: 12px;
  font-weight: 600;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.course-title {
  font-family: "Inter", sans-serif;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
}

.course-title a {
  color: inherit;
}

.course-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 13px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.course-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.course-divider {
  height: 1px;
  background: var(--border);
  margin: 16px 0;
}

.course-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.rating-stars {
  color: #fbbf24;
  font-size: 14px;
}

.rating-value {
  font-weight: 700;
  font-size: 14px;
}

.rating-count {
  font-size: 13px;
  color: var(--text-secondary);
}

.course-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.course-instructor {
  display: flex;
  align-items: center;
  gap: 10px;
}

.instructor-avatar,
.instructor-avatar-photo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.instructor-avatar {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 14px;
}

.instructor-avatar-photo {
  object-fit: cover;
}

.instructor-avatar-photo.small {
  width: 28px;
  height: 28px;
}

.instructor-name {
  font-size: 14px;
  font-weight: 600;
}

.course-price {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
}

.course-empty-card {
  display: grid;
  align-items: center;
}

.features {
  background: var(--bg-secondary);
}

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

.feature-card {
  background: white;
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.feature-card:hover {
  border-color: var(--secondary);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(30, 58, 138, 0.1));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 24px;
}

.feature-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 24px;
}

.testimonial-card {
  background: white;
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.testimonial-rating {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  color: #fbbf24;
  font-size: 18px;
}

.testimonial-text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 18px;
}

.avatar-1 { background: linear-gradient(135deg, #10b981, #34d399); }
.avatar-2 { background: linear-gradient(135deg, #f59e0b, #fbbf24); }
.avatar-3 { background: linear-gradient(135deg, #8b5cf6, #a78bfa); }

.testimonial-name {
  font-weight: 700;
}

.testimonial-role {
  font-size: 14px;
  color: var(--text-secondary);
}

.cta {
  padding: 100px 24px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  position: relative;
  overflow: hidden;
  width: 100%;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
}

.cta::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.3) 0%, transparent 70%);
  animation: pulse 8s ease-in-out infinite;
}

.cta-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta-title {
  font-size: 42px;
  font-weight: 800;
  color: white;
  margin-bottom: 16px;
}

.cta-subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 32px;
}

.page-header {
  padding: 120px 24px 40px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  position: relative;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
}

.page-header-content {
  max-width: 1280px;
  margin: 0 auto;
}

.page-title {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 8px;
}

.page-subtitle {
  font-size: 16px;
  opacity: 0.8;
}

.search-section {
  padding: 24px;
  background: white;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 72px;
  z-index: 100;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
}

.search-container {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 16px;
  align-items: center;
  width: 100%;
}

.search-box {
  flex: 1;
  min-width: 280px;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 14px 20px 14px 52px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: inherit;
  transition: all 0.2s ease;
}

.search-input:focus,
.sort-select:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

.search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
}

.sort-select {
  width: 100%;
  padding: 14px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: inherit;
  background: white;
  cursor: pointer;
  min-width: 220px;
}

.main-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 24px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
}

.sidebar {
  position: sticky;
  top: 180px;
  height: fit-content;
}

.filter-section {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 24px;
  margin-bottom: 24px;
}

.filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.filter-title {
  font-size: 18px;
  font-weight: 700;
}

.filter-clear {
  font-size: 14px;
  color: var(--secondary);
  text-decoration: none;
  font-weight: 600;
}

.filter-group {
  margin-bottom: 24px;
}

.filter-group:last-child {
  margin-bottom: 0;
}

.filter-group-title {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 4px 0;
}

.filter-option input {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--primary);
}

.filter-count {
  font-size: 13px;
  color: var(--text-light);
}

.sidebar-filter-button {
  width: 100%;
  justify-content: center;
}

.courses-section {
  min-width: 0;
}

.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.results-count {
  font-size: 16px;
  color: var(--text-secondary);
}

.results-count strong {
  color: var(--text-primary);
}

.catalog-card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.builder-badge,
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.05);
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
}

.builder-badge.accent,
.status-pill.warning {
  background: rgba(6, 182, 212, 0.12);
  border-color: rgba(6, 182, 212, 0.22);
  color: #0c85a1;
}

.builder-badge.success,
.status-pill.success {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.24);
  color: #047857;
}

.builder-badge.danger,
.status-pill.danger {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.18);
  color: #b91c1c;
}

.builder-badge img,
.status-pill img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
}

.ghost-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: white;
  color: var(--text-primary);
  font-weight: 600;
  transition: all 0.25s ease;
}

.ghost-link:hover {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: var(--shadow);
}

.clean-list {
  list-style: none;
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.clean-list li {
  position: relative;
  padding-left: 18px;
  color: var(--text-secondary);
}

.clean-list li::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.instructor-inline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
}

.instructor-inline img,
.avatar-fallback {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  font-size: 13px;
  font-weight: 700;
}

.stack-form {
  display: grid;
  gap: 14px;
}

.stack-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 14px 24px;
  border: none;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stack-form button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.checkout-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 120px 24px 72px;
}

.checkout-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.checkout-hero h1 {
  font-size: 44px;
  line-height: 1.08;
  margin: 10px 0 14px;
}

.checkout-hero p {
  max-width: 720px;
  color: var(--text-secondary);
  font-size: 18px;
  line-height: 1.7;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 26px;
}

.checkout-summary,
.checkout-payment-panel {
  background: white;
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.checkout-course-head {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}

.checkout-course-cover {
  aspect-ratio: 1 / 1;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: grid;
  place-items: center;
  color: white;
  font-size: 42px;
  font-weight: 800;
}

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

.checkout-course-head h2 {
  font-size: 30px;
  line-height: 1.15;
  margin: 14px 0 10px;
}

.checkout-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.checkout-line {
  display: grid;
  gap: 6px;
  padding: 18px 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 18px;
}

.checkout-line span {
  color: var(--text-secondary);
  font-size: 14px;
}

.checkout-line strong {
  font-size: 16px;
}

.checkout-trust {
  margin-top: 22px;
}

.checkout-payment-head h2 {
  font-size: 30px;
  margin-top: 10px;
}

.checkout-price-box {
  display: grid;
  gap: 12px;
  margin: 24px 0 18px;
}

.checkout-line.total {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.06), rgba(6, 182, 212, 0.08));
}

.checkout-provider-note,
.checkout-meta-note {
  color: var(--text-secondary);
  line-height: 1.7;
}

.checkout-provider-note {
  margin-bottom: 20px;
}

.checkout-meta-note {
  margin-top: 16px;
  font-size: 14px;
}

.auth-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 124px 24px 72px;
}

.auth-shell-compact {
  max-width: 920px;
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 460px;
  gap: 28px;
  align-items: stretch;
}

.auth-layout-single {
  grid-template-columns: 1fr;
}

.auth-aside,
.auth-panel {
  border: 1px solid var(--border);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}

.auth-aside {
  padding: 38px;
  background:
    radial-gradient(circle at top right, rgba(6, 182, 212, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(248, 250, 252, 0.98), rgba(255, 255, 255, 0.98));
}

.auth-aside h1 {
  font-size: 52px;
  line-height: 0.98;
  margin: 18px 0 18px;
}

.auth-aside p {
  max-width: 620px;
  color: var(--text-secondary);
  font-size: 18px;
  line-height: 1.75;
}

.auth-benefits {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.auth-benefit {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: start;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(15, 23, 42, 0.07);
}

.auth-benefit strong {
  display: inline-flex;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
}

.auth-benefit span {
  color: var(--text-secondary);
  line-height: 1.6;
}

.auth-panel {
  padding: 34px;
}

.auth-panel-head h2 {
  font-size: 34px;
  margin: 12px 0 10px;
}

.auth-panel-head p {
  color: var(--text-secondary);
  line-height: 1.7;
}

.auth-form {
  display: grid;
  gap: 16px;
  margin-top: 26px;
}

.auth-form label {
  display: grid;
  gap: 8px;
}

.auth-form label span {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.auth-form input {
  width: 100%;
  min-height: 54px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: white;
  color: var(--text-primary);
}

.auth-form input:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

.auth-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  margin-top: 8px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.auth-form button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.auth-links {
  display: grid;
  gap: 10px;
  margin-top: 20px;
  color: var(--text-secondary);
}

.auth-links a {
  color: var(--primary);
  font-weight: 600;
}

.footer {
  background: var(--bg-dark);
  color: white;
  padding: 60px 24px 32px;
  margin-top: 0;
  width: 100%;
  position: relative;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 40px;
  max-width: 1280px;
  margin: 0 auto 40px;
}

.footer-brand {
  max-width: 260px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-logo-icon,
.storefront-footer-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.footer-logo-icon {
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
}

.footer-logo-text {
  font-size: 20px;
  font-weight: 800;
}

.footer-desc {
  color: var(--text-light);
  line-height: 1.6;
  font-size: 14px;
}

.footer-column h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--secondary);
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: var(--text-light);
  font-size: 14px;
}

.learner-grid {
  align-items: start;
}

.learner-panel {
  min-width: 0;
}

.learner-course-list,
.learner-feed-list {
  display: grid;
  gap: 18px;
}

.learner-course-card {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: white;
}

.learner-course-cover {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  font-weight: 800;
  font-size: 28px;
}

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

.learner-course-body {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.learner-course-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.learner-course-head strong {
  display: block;
  font-size: 20px;
  line-height: 1.25;
}

.learner-course-head small {
  display: block;
  margin-top: 4px;
  color: var(--text-secondary);
}

.catalog-course-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--text-secondary);
  font-size: 14px;
}

.learner-progress-row {
  display: grid;
  gap: 8px;
}

.progress-line {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.2);
  overflow: hidden;
}

.progress-line span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
}

.certificate-detail-shell,
.certificate-verify-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 124px 24px 72px;
  display: grid;
  gap: 28px;
}

.certificate-detail-intro,
.certificate-verify-intro {
  max-width: 760px;
  display: grid;
  gap: 14px;
}

.certificate-detail-intro h1,
.certificate-verify-intro h1 {
  font-size: 48px;
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.certificate-detail-intro p,
.certificate-verify-intro p {
  color: var(--text-secondary);
  font-size: 18px;
  line-height: 1.75;
}

.certificate-detail-layout,
.certificate-verify-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 26px;
  align-items: start;
}

.certificate-preview-card,
.certificate-verify-card,
.certificate-side-panel {
  background: white;
  border: 1px solid var(--border);
  border-radius: 30px;
  box-shadow: var(--shadow-sm);
}

.certificate-preview-card {
  padding: 40px;
  background:
    radial-gradient(circle at top right, rgba(6, 182, 212, 0.14), transparent 32%),
    linear-gradient(135deg, rgba(248, 250, 252, 0.98), rgba(255, 255, 255, 0.98));
}

.certificate-preview-card-large {
  min-height: 420px;
}

.certificate-preview-header {
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
}

.certificate-preview-header h2 {
  font-size: 42px;
  line-height: 1.08;
}

.certificate-preview-header p {
  color: var(--text-secondary);
  font-size: 20px;
}

.certificate-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.certificate-preview-grid div {
  display: grid;
  gap: 6px;
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(15, 23, 42, 0.07);
}

.certificate-preview-grid span {
  color: var(--text-secondary);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.certificate-preview-grid strong {
  font-size: 18px;
}

.certificate-detail-side,
.certificate-verify-side {
  display: grid;
  gap: 18px;
}

.certificate-side-panel {
  padding: 24px;
}

.certificate-side-panel h3 {
  font-size: 26px;
  margin: 12px 0 10px;
}

.certificate-side-panel p {
  color: var(--text-secondary);
  line-height: 1.7;
}

.certificate-verify-card {
  padding: 28px;
}

.certificate-verify-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.certificate-scroll-frame {
  padding: 18px;
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.08), rgba(6, 182, 212, 0.12));
}

@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    order: 2;
  }

  .hero-image {
    order: 1;
    max-width: 500px;
    margin: 0 auto;
  }

  .hero-buttons,
  .hero-stats {
    justify-content: center;
  }

  .hero-title {
    font-size: 42px;
  }

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

@media (max-width: 900px) {
  .main-content {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .checkout-layout,
  .checkout-course-head,
  .checkout-summary-grid,
  .auth-layout,
  .certificate-detail-layout,
  .certificate-verify-grid,
  .certificate-preview-grid {
    grid-template-columns: 1fr;
  }

  .checkout-hero {
    flex-direction: column;
    align-items: start;
  }

  .auth-aside h1 {
    font-size: 40px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-container {
    padding: 0 18px;
    height: 68px;
  }

  .logo-text {
    font-size: 20px;
  }

  .logo-icon,
  .storefront-logo-image {
    width: 36px;
    height: 36px;
  }

  .mobile-menu {
    top: 68px;
    padding: 16px 16px 24px;
    gap: 2px;
  }

  .mobile-menu .nav-link {
    padding: 14px 12px;
    font-size: 16px;
  }

  .mobile-menu .nav-cta {
    width: 100%;
    margin-top: 12px;
  }

  .hero {
    padding: 88px 20px 48px;
  }

  .hero-container {
    gap: 28px;
  }

  .hero-content {
    order: 1;
    text-align: left;
  }

  .hero-image {
    order: 2;
    max-width: 100%;
    margin: 0;
    display: none;
  }

  .hero-badge {
    margin-bottom: 18px;
  }

  .hero-title {
    font-size: 36px;
  }

  .section-title {
    font-size: 32px;
  }

  .courses-grid,
  .features-grid,
  .testimonials-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    gap: 40px;
  }

  .float-card {
    display: none;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .hero-buttons,
  .cta-actions {
    justify-content: stretch;
  }

  .hero-buttons a,
  .cta-actions a,
  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .hero-stats {
    gap: 18px;
    margin-top: 32px;
    padding-top: 24px;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .hero-subtitle,
  .section-desc,
  .certificate-detail-intro p,
  .certificate-verify-intro p {
    max-width: none;
  }

  .page-header {
    padding: 96px 20px 28px;
  }

  .search-section {
    top: 68px;
    padding: 18px 20px;
  }

  .search-container {
    grid-template-columns: 1fr;
  }

  .sort-select,
  .sidebar-filter-button,
  .search-container .nav-cta {
    width: 100%;
  }

  .course-footer,
  .catalog-card-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .learner-course-card {
    grid-template-columns: 1fr;
  }

  .learner-course-cover {
    width: 72px;
    height: 72px;
  }

  .learner-course-head {
    flex-direction: column;
    align-items: start;
  }

  .certificate-detail-shell,
  .certificate-verify-shell {
    padding: 96px 20px 48px;
  }

  .certificate-detail-intro h1,
  .certificate-verify-intro h1,
  .certificate-preview-header h2 {
    font-size: 34px;
  }

  .auth-shell {
    padding: 96px 20px 48px;
  }

  .auth-aside,
  .auth-panel {
    padding: 24px;
    border-radius: 24px;
  }

  .auth-aside h1,
  .auth-panel-head h2 {
    font-size: 32px;
  }

  .learner-shell {
    padding: 96px 20px 48px;
  }
}
