/*
 * DAICYNTECH Learning & Skills Platform
 * Modern Responsive UI Layer — v1.2.1
 * Loaded after app.css to preserve backward compatibility.
 */
:root {
  --font-display: "Kanit", "Sarabun", system-ui, sans-serif;
  --font-body: "Sarabun", "Kanit", system-ui, sans-serif;
  --navy-950: #071426;
  --navy-900: #0a1f3d;
  --navy-800: #0b2e73;
  --blue-700: #1457d9;
  --blue-600: #2468ea;
  --blue-100: #eaf1ff;
  --cyan-500: #28a9e0;
  --orange-500: #f28c28;
  --surface: #ffffff;
  --surface-soft: #f5f8fc;
  --surface-blue: #f0f5ff;
  --text: #10233f;
  --text-soft: #5f6f86;
  --border: #e3e9f2;
  --border-strong: #cbd6e6;
  --shadow-xs: 0 2px 8px rgba(15, 35, 66, .05);
  --shadow-sm: 0 10px 30px rgba(15, 35, 66, .08);
  --shadow-md: 0 22px 60px rgba(15, 35, 66, .12);
  --shadow-blue: 0 18px 38px rgba(20, 87, 217, .22);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-xl: 34px;
  --header-height: 78px;
}

html { scroll-padding-top: calc(var(--header-height) + 24px); }
body {
  min-width: 320px;
  overflow-x: hidden;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--surface);
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
main { min-height: calc(100vh - 360px); }
img, svg, video, canvas { max-width: 100%; height: auto; }
iframe { max-width: 100%; }
::selection { background: rgba(20, 87, 217, .16); color: var(--navy-900); }

h1, h2, h3, h4, h5, h6, .brand, .button, .eyebrow, .main-nav, .admin-shell-nav {
  font-family: var(--font-display);
}
p { text-wrap: pretty; }
a, button, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid rgba(40, 169, 224, .42); outline-offset: 3px; }

.container { width: min(1220px, calc(100% - 48px)); }
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 999;
  transform: translateY(-140%);
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--navy-950);
  color: #fff;
  font-weight: 600;
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }

/* Header and primary navigation */
.site-header {
  height: var(--header-height);
  background: rgba(255, 255, 255, .86);
  border-bottom: 1px solid rgba(217, 226, 239, .82);
  box-shadow: 0 1px 0 rgba(255,255,255,.9);
  transition: background .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 12px 36px rgba(18, 42, 77, .08);
}
.nav-wrap { height: var(--header-height); gap: 24px; }
.brand { gap: 12px; flex: 0 0 auto; }
.brand-mark {
  position: relative;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border-radius: 15px;
  background: linear-gradient(145deg, var(--blue-600), var(--navy-800));
  box-shadow: 0 12px 26px rgba(20, 87, 217, .24);
}
.brand-mark::after {
  content: "";
  position: absolute;
  width: 28px;
  height: 28px;
  top: -10px;
  right: -8px;
  border-radius: 50%;
  background: rgba(40, 169, 224, .55);
}
.brand-mark i, .brand-mark b {
  position: absolute;
  z-index: 1;
  font-style: normal;
  line-height: 1;
}
.brand-mark i { left: 9px; top: 10px; font-size: 22px; font-weight: 700; }
.brand-mark b { right: 5px; bottom: 7px; font-size: 8px; letter-spacing: -.03em; color: #dff6ff; }
.brand-copy strong { font-size: 16px; letter-spacing: .065em; color: var(--navy-900); }
.brand-copy small { margin-top: 3px; font-size: 10px; letter-spacing: .03em; color: var(--text-soft); }
.main-nav { flex: 1; justify-content: space-between; min-width: 0; gap: 20px; }
.nav-primary, .nav-actions { display: flex; align-items: center; gap: 6px; }
.nav-primary { margin-left: auto; }
.nav-actions { margin-left: 10px; }
.main-nav .nav-item, .nav-login {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 12px;
  color: #40516a;
  font-size: 14px;
  font-weight: 400;
  white-space: nowrap;
  transition: color .2s ease, background .2s ease;
}
.main-nav .nav-item::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 5px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue-600), var(--cyan-500));
  transform: scaleX(0);
  transition: transform .2s ease;
}
.main-nav .nav-item:hover, .main-nav .nav-item.active, .nav-login:hover { color: var(--blue-700); background: var(--surface-blue); }
.main-nav .nav-item.active::after { transform: scaleX(1); }
.main-nav .nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 17px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--blue-700), var(--navy-800));
  box-shadow: 0 10px 24px rgba(20, 87, 217, .22);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  transition: transform .2s ease, box-shadow .2s ease;
}
.main-nav .nav-cta:hover { transform: translateY(-1px); box-shadow: var(--shadow-blue); color: #fff; }
.admin-entry {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 11px;
  background: #f3f0ff;
  color: #5e42a6 !important;
  font-size: 12px;
  font-weight: 500;
}
.admin-entry.active { box-shadow: inset 0 0 0 1px #cfc3f2; }
.user-nav {
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: 180px;
  min-width: 0;
  padding: 5px 9px 5px 5px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-xs);
}
.user-avatar {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: linear-gradient(145deg, #e8f0ff, #d7e5ff);
  color: var(--blue-700);
  font-weight: 700;
}
.user-nav > span:last-child { min-width: 0; }
.user-nav strong, .user-nav small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-nav strong { font-size: 11px; color: var(--navy-900); }
.user-nav small { margin-top: 1px; font-size: 9px; text-transform: uppercase; color: var(--text-soft); }
.nav-icon-button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--text-soft);
  transition: .2s ease;
}
.nav-icon-button:hover { border-color: #f2c5c9; background: #fff3f4; color: #b3333d; }
.menu-toggle {
  width: 44px;
  height: 44px;
  padding: 11px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: #fff;
  box-shadow: var(--shadow-xs);
}
.menu-toggle span { display: block; width: 100%; height: 2px; margin: 4px 0; border-radius: 999px; background: var(--navy-900); transition: transform .2s ease, opacity .2s ease; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav-scrim { position: fixed; inset: var(--header-height) 0 0; z-index: 45; background: rgba(5, 18, 38, .45); backdrop-filter: blur(2px); }

/* Shared UI */
.eyebrow { font-size: 11px; letter-spacing: .19em; color: var(--blue-700); }
.button {
  min-height: 46px;
  gap: 9px;
  border-radius: 14px;
  padding: 12px 20px;
  box-shadow: none;
  font-weight: 500;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-1px); }
.button.primary { background: linear-gradient(135deg, var(--blue-600), var(--navy-800)); box-shadow: 0 12px 28px rgba(20, 87, 217, .2); }
.button.primary:hover { box-shadow: var(--shadow-blue); }
.button.secondary { border-color: var(--border-strong); color: var(--navy-900); box-shadow: var(--shadow-xs); }
.button.secondary:hover { border-color: #9fb5d5; background: #f9fbff; }
.button.light { background: #fff; color: var(--navy-800); box-shadow: 0 14px 30px rgba(0,0,0,.16); }
.button-arrow span { transition: transform .2s ease; }
.button-arrow:hover span { transform: translateX(3px); }
.button[disabled], button.is-loading { cursor: wait; opacity: .68; transform: none !important; }
.button.tiny { min-height: 34px; padding: 7px 11px; }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-size: 14px; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.section { padding: clamp(64px, 7vw, 96px) 0; }
.section-heading { align-items: flex-end; margin-bottom: 34px; }
.section-heading > div { max-width: 760px; }
.section h2, .section-heading h2 { letter-spacing: -.03em; color: var(--navy-900); }
.section-lead { margin: 11px 0 0; color: var(--text-soft); line-height: 1.7; }
.soft-section { position: relative; background: linear-gradient(180deg, #f7faff, #f2f6fc); }
.empty-state { border-color: #aebed4; background: linear-gradient(145deg, #fbfdff, #f3f7fd); }
.muted { color: var(--text-soft); }
.top-gap { margin-top: 36px; }

/* Hero */
.modern-hero {
  position: relative;
  padding: clamp(64px, 7vw, 100px) 0 82px;
  background:
    radial-gradient(circle at 8% 5%, rgba(242, 140, 40, .11), transparent 21%),
    radial-gradient(circle at 88% 20%, rgba(40, 169, 224, .17), transparent 28%),
    linear-gradient(180deg, #f8fbff 0%, #fff 88%);
}
.modern-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .35;
  pointer-events: none;
  background-image: linear-gradient(rgba(20,87,217,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(20,87,217,.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, #000, transparent 82%);
}
.modern-hero .hero-grid { position: relative; z-index: 1; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 82px); }
.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 7px 12px;
  border: 1px solid #d9e5f7;
  border-radius: 999px;
  background: rgba(255,255,255,.8);
  box-shadow: var(--shadow-xs);
  color: #4e6078;
  font-family: var(--font-display);
  font-size: 11px;
}
.hero-status span { width: 7px; height: 7px; border-radius: 50%; background: #22a06b; box-shadow: 0 0 0 5px rgba(34,160,107,.11); }
.modern-hero h1 { max-width: 760px; margin-bottom: 24px; font-size: clamp(44px, 5.3vw, 76px); line-height: 1.02; letter-spacing: -.055em; color: var(--navy-900); }
.modern-hero .hero-copy > p { max-width: 670px; font-size: clamp(16px, 1.45vw, 19px); line-height: 1.8; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 10px 18px; color: var(--text-soft); font-size: 12px; }
.hero-proof span { display: inline-flex; align-items: center; gap: 7px; }
.hero-proof b { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #e7f7f0; color: #19865c; font-size: 10px; }
.modern-hero .hero-metrics { gap: 0; margin-top: 38px; padding-top: 25px; border-top: 1px solid var(--border); }
.modern-hero .hero-metrics div { min-width: 115px; padding-right: 28px; margin-right: 28px; border-right: 1px solid var(--border); }
.modern-hero .hero-metrics div:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.modern-hero .hero-metrics strong { font-size: 29px; color: var(--navy-900); }
.modern-hero .hero-visual { min-height: 540px; }
.hero-glow { position: absolute; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(40,169,224,.22), rgba(20,87,217,.08) 45%, transparent 70%); filter: blur(3px); }
.platform-window {
  position: relative;
  z-index: 3;
  width: min(520px, 92%);
  overflow: hidden;
  transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
  border: 1px solid rgba(255,255,255,.95);
  border-radius: 25px;
  background: #fff;
  box-shadow: 0 40px 90px rgba(15, 43, 84, .22), 0 0 0 1px rgba(19, 62, 132, .06);
}
.platform-window-top { display: flex; align-items: center; gap: 6px; height: 42px; padding: 0 14px; border-bottom: 1px solid var(--border); background: #f8fafc; }
.platform-window-top > span { width: 8px; height: 8px; border-radius: 50%; background: #d5deea; }
.platform-window-top > span:first-child { background: #ffaaa9; }
.platform-window-top > span:nth-child(2) { background: #ffd48b; }
.platform-window-top > span:nth-child(3) { background: #8cd6ad; }
.platform-window-top small { margin-left: auto; color: #7b899c; font-size: 9px; }
.platform-window-body { display: grid; grid-template-columns: 58px 1fr; min-height: 340px; }
.mock-sidebar { display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 20px 0; background: var(--navy-950); }
.mock-sidebar b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: linear-gradient(145deg, var(--blue-600), var(--cyan-500)); color: #fff; }
.mock-sidebar i { width: 18px; height: 4px; border-radius: 99px; background: #496079; }
.mock-sidebar i:nth-child(2) { background: #fff; }
.mock-content { padding: 28px; background: linear-gradient(180deg, #fff, #f7f9fc); }
.mock-welcome small, .mock-welcome strong, .mock-welcome span { display: block; }
.mock-welcome small { color: var(--blue-700); font-size: 8px; letter-spacing: .17em; }
.mock-welcome strong { margin-top: 7px; font-family: var(--font-display); font-size: 23px; color: var(--navy-900); }
.mock-welcome span { margin-top: 5px; color: #8190a4; font-size: 10px; }
.mock-progress-card { margin-top: 24px; padding: 17px; border: 1px solid var(--border); border-radius: 16px; background: #fff; box-shadow: var(--shadow-xs); }
.mock-progress-card > div:first-child { display: flex; justify-content: space-between; color: #65758b; font-size: 9px; }
.mock-progress-card strong { font-size: 15px; color: var(--blue-700); }
.mock-progress { height: 7px; margin-top: 12px; overflow: hidden; border-radius: 99px; background: #e8edf4; }
.mock-progress i { display: block; width: 72%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue-600), var(--cyan-500)); }
.mock-course-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 15px; }
.mock-course-grid > div { min-width: 0; padding: 15px; border: 1px solid var(--border); border-radius: 15px; background: #fff; }
.mock-course-grid span { display: grid; place-items: center; width: 31px; height: 31px; margin-bottom: 19px; border-radius: 10px; background: var(--surface-blue); color: var(--blue-700); font-family: var(--font-display); font-size: 10px; font-weight: 600; }
.mock-course-grid div:nth-child(2) span { background: #fff2e3; color: #b76208; }
.mock-course-grid strong, .mock-course-grid small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock-course-grid strong { font-size: 9px; }
.mock-course-grid small { margin-top: 5px; color: #8795a8; font-size: 8px; }
.modern-float-card { display: flex; align-items: center; gap: 10px; width: auto; min-width: 154px; padding: 13px 15px; color: var(--text-soft); }
.modern-float-card > span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--surface-blue); color: var(--blue-700); font-size: 16px; }
.modern-float-card strong { font-size: 13px; }
.modern-hero .card-a { top: 38px; left: -8px; }
.modern-hero .card-b { top: 116px; right: -18px; }
.modern-hero .card-c { bottom: 34px; right: 26px; }

/* Experience strip */
.experience-strip { position: relative; z-index: 4; margin-top: -25px; }
.experience-grid { display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden; border: 1px solid var(--border); border-radius: 22px; background: #fff; box-shadow: var(--shadow-md); }
.experience-grid article { display: flex; align-items: center; gap: 13px; min-width: 0; padding: 22px 24px; border-right: 1px solid var(--border); }
.experience-grid article:last-child { border-right: 0; }
.experience-grid article > span { font-family: var(--font-display); font-size: 12px; font-weight: 600; color: var(--blue-700); }
.experience-grid strong, .experience-grid small { display: block; }
.experience-grid strong { font-family: var(--font-display); font-size: 14px; }
.experience-grid small { margin-top: 3px; color: var(--text-soft); font-size: 10px; line-height: 1.35; }

/* Cards and course catalog */
.cards-grid { gap: 24px; }
.course-card { border-color: var(--border); border-radius: 24px; box-shadow: var(--shadow-xs); }
.course-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.course-cover { position: relative; height: 170px; overflow: hidden; background: linear-gradient(135deg, #10233f, #1457d9); }
.course-cover::before, .course-cover::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.08); }
.course-cover::before { width: 160px; height: 160px; right: -45px; top: -70px; }
.course-cover::after { width: 90px; height: 90px; left: -24px; bottom: -48px; }
.course-theme-1 .course-cover { background: linear-gradient(135deg, #0f6650, #21a378); }
.course-theme-2 .course-cover { background: linear-gradient(135deg, #5c35a7, #8b62d8); }
.course-theme-3 .course-cover { background: linear-gradient(135deg, #a64b0e, #ef8c2f); }
.course-cover-top { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; }
.course-cover-top i { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 50%; background: rgba(255,255,255,.13); font-style: normal; }
.course-cover strong { position: relative; z-index: 1; font-size: 54px; opacity: .24; }
.course-body { padding: 24px; }
.course-body h3 { margin: 12px 0 9px; font-size: 20px; letter-spacing: -.015em; }
.course-body h3 a:hover { color: var(--blue-700); }
.course-body p { min-height: 74px; font-size: 14px; line-height: 1.72; }
.course-footer-line { align-items: center; padding-top: 16px; }
.course-footer-line a { font-weight: 600; }
.catalog-layout { grid-template-columns: 290px minmax(0, 1fr); gap: 36px; }
.filter-panel { top: calc(var(--header-height) + 24px); border-color: var(--border); border-radius: 22px; background: #fff; box-shadow: var(--shadow-sm); }
.filter-panel input, .filter-panel select, .form-stack input, .form-stack select, .form-stack textarea, .search-inline input, .row-form select {
  min-height: 46px;
  border-color: var(--border-strong);
  border-radius: 12px;
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.filter-panel input:focus, .filter-panel select:focus, .form-stack input:focus, .form-stack select:focus, .form-stack textarea:focus, .search-inline input:focus, .row-form select:focus {
  outline: 0;
  border-color: var(--blue-600);
  box-shadow: 0 0 0 4px rgba(36, 104, 234, .11);
}
.result-bar { padding: 0 2px; }

/* Skills and paths */
.skill-cloud { gap: 13px; }
.skill-cloud a { position: relative; overflow: hidden; border-color: var(--border); padding: 13px 17px; box-shadow: var(--shadow-xs); transition: .2s ease; }
.skill-cloud a::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: linear-gradient(145deg, var(--blue-600), var(--cyan-500)); }
.skill-cloud a:hover { transform: translateY(-2px); border-color: #b8cae6; box-shadow: var(--shadow-sm); }
.path-grid { gap: 20px; }
.path-card { position: relative; align-items: center; border-color: var(--border); border-radius: 23px; padding: 26px; background: #fff; box-shadow: var(--shadow-xs); transition: .22s ease; }
.path-card:hover { transform: translateY(-4px); border-color: #c7d5e9; box-shadow: var(--shadow-md); }
.path-number { display: grid; place-items: center; align-content: center; width: 76px; min-height: 76px; border: 1px solid #d8e4f5; border-radius: 21px; background: linear-gradient(145deg, #f3f7ff, #e8f0ff); color: var(--blue-700); }
.path-number small, .path-number strong { display: block; }
.path-number small { font-size: 8px; letter-spacing: .15em; }
.path-number strong { font-size: 24px; line-height: 1.1; }
.path-card h3, .path-card h2 { margin: 0 0 7px; font-size: 21px; color: var(--navy-900); }
.path-card p { color: var(--text-soft); line-height: 1.65; }
.path-arrow { position: absolute; right: 21px; top: 21px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--surface-blue); color: var(--blue-700); }
.skill-card { border-color: var(--border); border-radius: 22px; box-shadow: var(--shadow-xs); transition: .2s ease; }
.skill-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.skill-symbol { background: var(--surface-blue); color: var(--blue-700); }

/* Credential callout */
.credential-callout-section { padding-top: 26px; }
.credential-callout { position: relative; display: grid; grid-template-columns: 1.45fr .55fr; align-items: center; min-height: 380px; overflow: hidden; padding: 56px 62px; border-radius: 34px; background: radial-gradient(circle at 85% 15%, rgba(40,169,224,.35), transparent 28%), linear-gradient(135deg, #0a2450, #0b2e73 55%, #1457d9); color: #fff; box-shadow: 0 30px 70px rgba(11, 46, 115, .25); }
.credential-callout::before { content: ""; position: absolute; inset: 0; opacity: .15; background-image: linear-gradient(rgba(255,255,255,.18) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.18) 1px, transparent 1px); background-size: 36px 36px; }
.credential-callout-copy { position: relative; z-index: 2; max-width: 720px; }
.credential-callout .eyebrow { color: #8fddff; }
.credential-callout h2 { margin: 0; font-size: clamp(32px, 4.3vw, 54px); line-height: 1.1; letter-spacing: -.04em; color: #fff; }
.credential-callout p { max-width: 650px; margin: 17px 0 26px; color: #c5d6eb; font-size: 16px; line-height: 1.75; }
.credential-art { position: relative; z-index: 2; display: grid; place-items: center; min-height: 260px; }
.credential-medal { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 190px; height: 190px; border: 9px double rgba(255,255,255,.8); border-radius: 50%; background: radial-gradient(circle at 35% 30%, #2f77ee, #0c347d 70%); box-shadow: 0 25px 55px rgba(0,0,0,.28), inset 0 0 0 8px rgba(255,255,255,.08); }
.credential-medal span { font-size: 36px; color: #8fddff; }
.credential-medal strong { margin-top: 5px; font-family: var(--font-display); font-size: 20px; letter-spacing: .08em; }
.credential-medal small { margin-top: 3px; color: #b6d2f0; font-size: 9px; letter-spacing: .13em; }
.credential-art > i { position: absolute; bottom: 7px; width: 65px; height: 120px; background: linear-gradient(180deg, #28a9e0, #1457d9); clip-path: polygon(0 0,100% 0,100% 100%,50% 75%,0 100%); }
.credential-art .ribbon-left { transform: translateX(-36px) rotate(8deg); }
.credential-art .ribbon-right { transform: translateX(36px) rotate(-8deg); }

/* Page heroes and content */
.page-hero, .dashboard-hero, .learn-header, .course-detail-hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 86% 10%, rgba(40,169,224,.14), transparent 25%), linear-gradient(180deg, #f5f9ff, #fff);
}
.page-hero::after, .dashboard-hero::after, .learn-header::after, .course-detail-hero::after { content: ""; position: absolute; right: -80px; top: -140px; width: 350px; height: 350px; border: 1px solid rgba(20,87,217,.08); border-radius: 50%; box-shadow: 0 0 0 45px rgba(20,87,217,.025), 0 0 0 90px rgba(20,87,217,.018); }
.page-hero .container, .dashboard-hero .container, .learn-header .container, .course-detail-hero .container { position: relative; z-index: 1; }
.page-hero.compact { padding: 68px 0 50px; }
.page-hero h1, .dashboard-hero h1, .learn-header h1, .course-detail-hero h1, .admin-page h1 { color: var(--navy-900); letter-spacing: -.045em; }
.course-detail-grid { grid-template-columns: minmax(0, 1fr) 370px; }
.enroll-card { border: 1px solid rgba(221,229,240,.9); box-shadow: var(--shadow-md); }
.content-grid { grid-template-columns: minmax(0, 1fr) 330px; }
.info-panel, .side-card, .admin-panel, .quiz-card, .assignment-layout > *, .learning-component { border: 1px solid var(--border); border-radius: 22px; box-shadow: var(--shadow-xs); }
.prose { color: #33445c; line-height: 1.85; }
.prose h2, .prose h3 { color: var(--navy-900); }
.prose a { color: var(--blue-700); text-decoration: underline; text-underline-offset: 3px; }
.video-frame, .embed-frame { overflow: hidden; border-radius: 18px; background: #071426; box-shadow: var(--shadow-sm); }

/* Learner dashboard and course player */
.dashboard-grid { gap: 34px; }
.review-alert { border: 1px solid #c9e6da; border-radius: 18px; background: linear-gradient(145deg, #f1fbf7, #e9f8f2); box-shadow: var(--shadow-xs); }
.learning-list { display: grid; gap: 13px; }
.learning-row { border: 1px solid var(--border); border-radius: 18px; padding: 16px; background: #fff; box-shadow: var(--shadow-xs); transition: .2s ease; }
.learning-row:hover { transform: translateY(-2px); border-color: #c3d2e8; box-shadow: var(--shadow-sm); }
.learning-thumb { border-radius: 14px; background: linear-gradient(145deg, var(--blue-600), var(--navy-800)); }
.progress-track { overflow: hidden; background: #e8edf4; }
.progress-track span { background: linear-gradient(90deg, var(--blue-600), var(--cyan-500)); }
.dashboard-side { gap: 18px; }
.side-card { background: #fff; box-shadow: var(--shadow-sm); }
.course-sidebar { top: calc(var(--header-height) + 24px); border-color: var(--border); border-radius: 22px; box-shadow: var(--shadow-sm); }
.sidebar-lesson { border-radius: 12px; }
.sidebar-lesson:hover { background: var(--surface-blue); }
.sidebar-lesson.done > span { background: #e8f7f1; color: #16875a; }
.learn-overview { border-radius: 26px; }
.feature-link { border-color: var(--border); border-radius: 18px; box-shadow: var(--shadow-xs); }
.feature-link:hover { border-color: #bed0eb; box-shadow: var(--shadow-sm); }
.lesson-layout { gap: 34px; }
.lesson-context { top: calc(var(--header-height) + 24px); }
.lesson-content { min-width: 0; }
.learning-component { padding: 24px; background: #fff; }
.lesson-actions { position: sticky; bottom: 14px; z-index: 10; padding: 12px; border: 1px solid rgba(220,228,239,.9); border-radius: 18px; background: rgba(255,255,255,.9); backdrop-filter: blur(15px); box-shadow: var(--shadow-sm); }

/* Authentication */
.modern-auth-section { padding: 42px 0 70px; background: linear-gradient(180deg, #f5f9ff, #fff); }
.auth-shell { display: grid; grid-template-columns: 1.05fr .95fr; min-height: 680px; overflow: hidden; border: 1px solid var(--border); border-radius: 32px; background: #fff; box-shadow: var(--shadow-md); }
.auth-showcase { position: relative; display: flex; align-items: center; overflow: hidden; padding: clamp(42px, 5vw, 72px); background: radial-gradient(circle at 20% 10%, rgba(40,169,224,.28), transparent 26%), linear-gradient(145deg, #071a35, #0b2e73 60%, #1457d9); color: #fff; }
.register-showcase { background: radial-gradient(circle at 80% 10%, rgba(242,140,40,.3), transparent 27%), linear-gradient(145deg, #0b2e73, #1457d9 70%, #2677ef); }
.auth-showcase-content { position: relative; z-index: 2; max-width: 550px; }
.auth-brand-chip { display: inline-flex; padding: 8px 12px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; background: rgba(255,255,255,.08); color: #cde7ff; font-family: var(--font-display); font-size: 10px; letter-spacing: .16em; }
.auth-showcase h1 { margin: 24px 0 17px; font-size: clamp(38px, 4.4vw, 58px); line-height: 1.08; letter-spacing: -.045em; }
.auth-showcase p { max-width: 520px; color: #c2d4e9; font-size: 16px; line-height: 1.75; }
.auth-benefits { display: grid; gap: 13px; margin-top: 34px; }
.auth-benefits > div { display: grid; grid-template-columns: 34px 1fr; column-gap: 11px; padding: 13px 15px; border: 1px solid rgba(255,255,255,.11); border-radius: 15px; background: rgba(255,255,255,.06); backdrop-filter: blur(8px); }
.auth-benefits > div > span { grid-row: 1 / 3; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: rgba(91,218,167,.15); color: #7fe5ba; }
.auth-benefits strong, .auth-benefits small { display: block; }
.auth-benefits strong { font-size: 13px; }
.auth-benefits small { margin-top: 2px; color: #aebfd4; font-size: 10px; }
.auth-stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 35px; }
.auth-stat-grid > div { padding: 16px; border: 1px solid rgba(255,255,255,.14); border-radius: 16px; background: rgba(255,255,255,.07); }
.auth-stat-grid strong, .auth-stat-grid span { display: block; }
.auth-stat-grid strong { font-size: 23px; color: #91dcff; }
.auth-stat-grid span { margin-top: 4px; color: #c4d7eb; font-size: 10px; }
.auth-orb { position: absolute; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; }
.auth-orb.orb-one { width: 360px; height: 360px; right: -180px; bottom: -130px; }
.auth-orb.orb-two { width: 220px; height: 220px; right: -105px; bottom: -55px; }
.modern-auth-card { align-self: center; width: 100%; max-width: none; margin: 0; padding: clamp(38px, 5vw, 70px); border: 0; border-radius: 0; box-shadow: none; }
.auth-card-head h2 { margin: 0 0 10px; font-size: 38px; letter-spacing: -.035em; color: var(--navy-900); }
.auth-card-head p { margin: 0 0 27px; color: var(--text-soft); line-height: 1.65; }
.auth-form { gap: 18px; }
.auth-form label > span { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; color: #34445a; font-family: var(--font-display); font-size: 12px; font-weight: 500; }
.auth-form label small { color: var(--text-soft); font-size: 9px; font-weight: 400; }
.input-with-icon { position: relative; }
.input-with-icon > i { position: absolute; z-index: 2; left: 14px; top: 50%; transform: translateY(-50%); color: #8190a4; font-style: normal; font-size: 12px; }
.input-with-icon input { padding-left: 40px !important; padding-right: 44px !important; }
.password-toggle { position: absolute; z-index: 3; right: 7px; top: 50%; transform: translateY(-50%); min-width: 34px; height: 34px; border: 0; border-radius: 9px; background: transparent; color: #65758b; font-size: 11px; }
.password-toggle:hover { background: #f1f5fa; }
.auth-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.auth-security { display: flex; align-items: center; gap: 8px; margin-top: 18px; color: #738297; font-size: 10px; line-height: 1.45; }
.auth-security span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 8px; background: #eef4ff; color: var(--blue-700); }
.auth-foot { margin-top: 25px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--text-soft); }
.auth-foot a { color: var(--blue-700); font-weight: 600; }

/* Admin */
.admin-shell-nav { position: sticky; top: var(--header-height); z-index: 39; border-bottom: 1px solid var(--border); background: rgba(248,250,253,.95); backdrop-filter: blur(16px); }
.admin-nav-inner { min-height: 58px; gap: 16px; }
.admin-nav-scroll { display: flex; align-items: center; gap: 5px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.admin-nav-scroll::-webkit-scrollbar { display: none; }
.admin-nav-scroll a { flex: 0 0 auto; padding: 8px 12px; border-radius: 10px; color: #53637a; font-size: 12px; transition: .2s ease; }
.admin-nav-scroll a:hover { background: #fff; color: var(--blue-700); }
.admin-nav-scroll a.active { background: #fff; color: var(--blue-700); box-shadow: var(--shadow-xs), inset 0 0 0 1px var(--border); font-weight: 500; }
.admin-role { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border-radius: 999px; background: #eaf8f2; color: #15724e; font-size: 9px; letter-spacing: .06em; text-transform: uppercase; }
.admin-role i { width: 6px; height: 6px; border-radius: 50%; background: #22a06b; box-shadow: 0 0 0 4px rgba(34,160,107,.12); }
.admin-page { background: linear-gradient(180deg, #f7f9fc, #fff 300px); }
.admin-page-head { align-items: center; }
.admin-page h1 { font-size: clamp(36px, 4.6vw, 58px); }
.metric-grid { gap: 15px; }
.metric-card { border: 1px solid var(--border); border-radius: 19px; background: #fff; box-shadow: var(--shadow-xs); }
.metric-card strong { color: var(--navy-900); }
.admin-panel { overflow: hidden; background: #fff; }
.panel-head { padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.actions-cell { flex-wrap: wrap; gap: 6px; }

/* Tables: desktop and mobile card conversion */
.table-wrap { max-width: 100%; overflow-x: auto; border-radius: 16px; scrollbar-width: thin; scrollbar-color: #b9c7da transparent; }
table { width: 100%; border-collapse: separate; border-spacing: 0; }
th { position: sticky; top: 0; z-index: 1; background: #f7f9fc; color: #526176; font-family: var(--font-display); font-size: 10px; letter-spacing: .04em; text-transform: uppercase; }
th, td { padding: 14px 13px; border-bottom-color: var(--border); vertical-align: middle; }
tbody tr { transition: background .15s ease; }
tbody tr:hover { background: #fbfcfe; }
.table-sub { margin-top: 4px; color: var(--text-soft); }
.status-pill { border-radius: 999px; font-weight: 500; }

/* Flash / feedback */
.flash-wrap { top: calc(var(--header-height) + 12px); }
.flash { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 780px; border-radius: 15px; box-shadow: var(--shadow-md); transition: opacity .25s ease, transform .25s ease; pointer-events: auto; }
.flash button { display: grid; place-items: center; flex: 0 0 auto; width: 29px; height: 29px; border: 0; border-radius: 9px; background: rgba(255,255,255,.55); color: currentColor; font-size: 18px; }
.flash.is-closing { opacity: 0; transform: translateY(-8px); }

/* Footer */
.site-footer { position: relative; overflow: hidden; padding: 68px 0 24px; background: radial-gradient(circle at 85% 0, rgba(20,87,217,.24), transparent 28%), var(--navy-950); }
.site-footer::before { content: ""; position: absolute; inset: 0; opacity: .08; background-image: linear-gradient(rgba(255,255,255,.2) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.2) 1px, transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(to bottom, #000, transparent); }
.modern-footer-grid { position: relative; z-index: 1; grid-template-columns: 1.7fr .65fr .65fr; gap: clamp(35px, 6vw, 80px); }
.footer-about p { max-width: 620px; color: #91a3ba; }
.footer-brand .brand-copy strong { color: #fff; }
.footer-brand .brand-copy small { color: #8498b0; }
.footer-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.footer-badges span { padding: 6px 9px; border: 1px solid #243851; border-radius: 999px; color: #9fb0c5; font-size: 9px; }
.footer-links-group { display: flex; flex-direction: column; gap: 10px; }
.footer-links-group h2 { margin: 3px 0 8px; color: #fff; font-size: 13px; letter-spacing: .05em; }
.footer-links-group a { color: #9fb0c5; font-size: 12px; transition: color .2s ease, transform .2s ease; }
.footer-links-group a:hover { transform: translateX(3px); color: #fff; }
.modern-footer-bottom { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 20px; }
.back-to-top { position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 40; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 14px; background: var(--navy-900); color: #fff; box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transform: translateY(10px); transition: .2s ease; }
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* Credential / verification polish */
.credential-card-v2, .credential-info-panel, .verify-card { border-color: var(--border); box-shadow: var(--shadow-sm); }
.credential-card-visual { background: radial-gradient(circle at 50% 20%, #fff, #eef4fc); }
.credential-showcase > img { box-shadow: var(--shadow-md); }
.verify-section { background: radial-gradient(circle at 50% 0, rgba(40,169,224,.12), transparent 32%), linear-gradient(180deg, #f5f9ff, #fff); }
.verify-card { border-radius: 28px; }

/* Loading indicator added by JS */
button.is-loading::after { content: ""; width: 15px; height: 15px; margin-left: 8px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: ui-spin .7s linear infinite; }
@keyframes ui-spin { to { transform: rotate(360deg); } }

/* Responsive */
@media (max-width: 1160px) {
  .brand-copy small { display: none; }
  .main-nav .nav-item { padding-inline: 9px; font-size: 13px; }
  .user-nav { max-width: 142px; }
  .admin-entry { padding-inline: 9px; }
  .modern-hero .card-a { left: -20px; }
  .modern-hero .card-b { right: -24px; }
}

@media (max-width: 1020px) {
  :root { --header-height: 72px; }
  .container { width: min(100% - 36px, 1220px); }
  .menu-toggle { display: block; margin-left: auto; }
  .main-nav {
    position: fixed;
    top: var(--header-height);
    right: 0;
    bottom: 0;
    z-index: 50;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    width: min(390px, 88vw);
    padding: 24px 20px max(28px, env(safe-area-inset-bottom));
    overflow-y: auto;
    background: #fff;
    box-shadow: -20px 0 50px rgba(10,31,61,.18);
    transform: translateX(105%);
    transition: transform .24s ease;
  }
  .main-nav.open { transform: translateX(0); }
  .nav-primary, .nav-actions { flex-direction: column; align-items: stretch; gap: 6px; margin: 0; }
  .nav-primary { padding-bottom: 18px; border-bottom: 1px solid var(--border); }
  .nav-actions { padding-top: 18px; }
  .main-nav .nav-item, .nav-login, .admin-entry { justify-content: flex-start; min-height: 48px; padding: 0 14px; border-radius: 13px; font-size: 14px; }
  .main-nav .nav-item::after { display: none; }
  .main-nav .nav-cta { justify-content: center; min-height: 49px; margin-top: 4px; }
  .user-nav { max-width: none; padding: 8px; }
  .logout-form { width: 100%; }
  .nav-icon-button { width: 100%; min-height: 44px; }
  .modern-hero .hero-grid { grid-template-columns: 1fr; }
  .modern-hero .hero-copy { max-width: 780px; }
  .modern-hero .hero-visual { width: min(700px, 100%); margin: -10px auto 0; }
  .experience-grid { grid-template-columns: repeat(2, 1fr); }
  .experience-grid article:nth-child(2) { border-right: 0; }
  .experience-grid article:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .credential-callout { grid-template-columns: 1fr .5fr; padding: 48px; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-showcase { min-height: 460px; }
  .modern-auth-card { max-width: 720px; margin: auto; }
  .catalog-layout { grid-template-columns: 250px minmax(0, 1fr); }
  .modern-footer-grid { grid-template-columns: 1.4fr .7fr .7fr; gap: 38px; }
}

@media (max-width: 820px) {
  .cards-grid, .cards-grid.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-layout { grid-template-columns: 1fr; }
  .filter-panel { position: static; }
  .credential-callout { grid-template-columns: 1fr; text-align: center; }
  .credential-callout-copy { margin: auto; }
  .credential-callout p { margin-inline: auto; }
  .credential-art { min-height: 220px; }
  .modern-footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
  .course-detail-grid, .content-grid, .dashboard-grid, .learn-layout, .lesson-layout { grid-template-columns: 1fr; }
  .course-sidebar, .lesson-context { position: static; }
  .course-sidebar { max-height: none; }
  .lesson-actions { position: static; }
  .admin-nav-inner { width: calc(100% - 24px); }
  .admin-role { display: none; }
}

@media (max-width: 700px) {
  .container { width: min(100% - 28px, 1220px); }
  .brand-mark { width: 40px; height: 40px; border-radius: 13px; }
  .brand-copy strong { font-size: 14px; }
  .modern-hero { padding-top: 52px; }
  .modern-hero h1 { font-size: clamp(40px, 12vw, 58px); }
  .modern-hero .hero-copy > p { font-size: 16px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .button { width: 100%; }
  .hero-proof { display: grid; grid-template-columns: 1fr; }
  .modern-hero .hero-metrics { justify-content: space-between; }
  .modern-hero .hero-metrics div { min-width: 0; margin-right: 14px; padding-right: 14px; }
  .modern-hero .hero-metrics strong { font-size: 24px; }
  .modern-hero .hero-visual { min-height: 400px; }
  .platform-window { width: 100%; transform: none; }
  .platform-window-body { grid-template-columns: 45px 1fr; min-height: 290px; }
  .mock-sidebar { gap: 17px; }
  .mock-content { padding: 19px; }
  .mock-course-grid { gap: 8px; }
  .modern-float-card { display: none; }
  .experience-strip { margin-top: -16px; }
  .experience-grid { grid-template-columns: 1fr; }
  .experience-grid article { border-right: 0; border-bottom: 1px solid var(--border); }
  .experience-grid article:last-child { border-bottom: 0; }
  .section { padding: 62px 0; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .cards-grid, .cards-grid.two-col { grid-template-columns: 1fr; }
  .course-body p { min-height: auto; }
  .path-card { grid-template-columns: 66px minmax(0, 1fr); padding: 21px; }
  .path-number { width: 62px; min-height: 62px; border-radius: 17px; }
  .path-arrow { display: none; }
  .credential-callout { padding: 38px 24px; border-radius: 26px; }
  .credential-callout h2 { font-size: 36px; }
  .credential-medal { width: 160px; height: 160px; }
  .modern-auth-section { padding: 18px 0 46px; }
  .auth-shell { width: min(100% - 20px, 1220px); min-height: 0; border-radius: 24px; }
  .auth-showcase { min-height: 390px; padding: 38px 28px; }
  .auth-showcase h1 { font-size: 40px; }
  .auth-benefits > div:nth-child(n+3) { display: none; }
  .auth-stat-grid { grid-template-columns: 1fr; }
  .auth-stat-grid > div { display: flex; align-items: center; gap: 12px; }
  .modern-auth-card { padding: 38px 25px; }
  .auth-card-head h2 { font-size: 34px; }
  .auth-form-row { grid-template-columns: 1fr; }
  .modern-footer-grid { grid-template-columns: 1fr; }
  .footer-about { grid-column: auto; }
  .modern-footer-bottom { flex-direction: column; font-size: 11px; }
  .back-to-top { width: 42px; height: 42px; }
  .page-hero.compact { padding: 52px 0 38px; }
  .page-hero h1 { font-size: 39px; }
  .admin-page-head { align-items: stretch; flex-direction: column; }
  .admin-page-head .button { width: 100%; }
  .metric-grid, .credential-metrics, .analytics-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* Mobile tables become readable cards; labels are injected by modern-ui.js */
  .table-wrap { overflow: visible; }
  .table-wrap table, .table-wrap thead, .table-wrap tbody, .table-wrap tr, .table-wrap th, .table-wrap td { display: block; width: 100%; }
  .table-wrap thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .table-wrap tbody { display: grid; gap: 13px; }
  .table-wrap tbody tr { overflow: hidden; border: 1px solid var(--border); border-radius: 17px; background: #fff; box-shadow: var(--shadow-xs); }
  .table-wrap tbody td { display: grid; grid-template-columns: minmax(95px, 38%) minmax(0, 1fr); align-items: start; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--border); text-align: right; overflow-wrap: anywhere; }
  .table-wrap tbody td:last-child { border-bottom: 0; }
  .table-wrap tbody td::before { content: attr(data-label); text-align: left; color: var(--text-soft); font-family: var(--font-display); font-size: 10px; font-weight: 500; text-transform: none; }
  .table-wrap tbody td.actions-cell { display: flex; justify-content: flex-end; }
  .table-wrap tbody td.actions-cell::before { margin-right: auto; }
  .table-wrap tbody tr.empty-row td { display: block; text-align: center; }
}

@media (max-width: 430px) {
  .container { width: min(100% - 22px, 1220px); }
  .brand-copy strong { font-size: 13px; letter-spacing: .04em; }
  .modern-hero h1 { font-size: 39px; }
  .modern-hero .hero-metrics span { font-size: 10px; }
  .mock-content { padding: 15px; }
  .mock-welcome strong { font-size: 19px; }
  .mock-course-grid { grid-template-columns: 1fr; }
  .mock-course-grid > div:nth-child(2) { display: none; }
  .experience-grid article { padding: 18px; }
  .course-cover { height: 150px; }
  .path-card { grid-template-columns: 1fr; }
  .path-number { width: 58px; }
  .credential-callout { padding-inline: 20px; }
  .credential-callout h2 { font-size: 32px; }
  .auth-showcase { min-height: 350px; padding: 30px 22px; }
  .auth-showcase h1 { font-size: 34px; }
  .modern-auth-card { padding-inline: 21px; }
  .metric-grid, .credential-metrics, .analytics-metrics { grid-template-columns: 1fr 1fr; }
  .metric-card { padding: 16px; }
  .table-wrap tbody td { grid-template-columns: 1fr; text-align: left; }
  .table-wrap tbody td::before { margin-bottom: 3px; }
  .table-wrap tbody td.actions-cell { justify-content: flex-start; }
  .table-wrap tbody td.actions-cell::before { width: 100%; margin: 0 0 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media print {
  .site-header, .site-footer, .admin-shell-nav, .back-to-top, .flash-wrap { display: none !important; }
  main { min-height: 0; }
  body { background: #fff; color: #000; }
  .admin-panel, .course-card, .side-card { box-shadow: none !important; }
}
